copy-paste-bookmarks/plugin/markdown/markdown.js

2 lines
77 KiB
JavaScript
Raw Normal View History

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).RevealMarkdown=t()}(this,(function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var n=function(e){return e&&e.Math==Math&&e},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")(),i=function(e){try{return!!e()}catch(e){return!0}},o=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,s={f:l&&!a.call({1:2},1)?function(e){var t=l(this,e);return!!t&&t.enumerable}:a},c=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},u={}.toString,f=function(e){return u.call(e).slice(8,-1)},p="".split,h=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==f(e)?p.call(e,""):Object(e)}:Object,g=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},d=function(e){return h(g(e))},v=function(e){return"object"==typeof e?null!==e:"function"==typeof e},y=function(e,t){if(!v(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!v(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!v(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!v(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},k={}.hasOwnProperty,m=function(e,t){return k.call(e,t)},b=r.document,x=v(b)&&v(b.createElement),w=function(e){return x?b.createElement(e):{}},S=!o&&!i((function(){return 7!=Object.defineProperty(w("div"),"a",{get:function(){return 7}}).a})),_=Object.getOwnPropertyDescriptor,A={f:o?_:function(e,t){if(e=d(e),t=y(t,!0),S)try{return _(e,t)}catch(e){}if(m(e,t))return c(!s.f.call(e,t),e[t])}},E=function(e){if(!v(e))throw TypeError(String(e)+" is not an object");return e},O=Object.defineProperty,T={f:o?O:function(e,t,n){if(E(e),t=y(t,!0),E(n),S)try{return O(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},R=o?function(e,t,n){return T.f(e,t,c(1,n))}:function(e,t,n){return e[t]=n,e},I=function(e,t){try{R(r,e,t)}catch(n){r[e]=t}return t},j="__core-js_shared__",$=r[j]||I(j,{}),z=Function.toString;"function"!=typeof $.inspectSource&&($.inspectSource=function(e){return z.call(e)});var P,C,L,M=$.inspectSource,N=r.WeakMap,U="function"==typeof N&&/native code/.test(M(N)),q=t((function(e){(e.exports=function(e,t){return $[e]||($[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.7.0",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),D=0,Z=Math.random(),F=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++D+Z).toString(36)},G=q("keys"),H=function(e){return G[e]||(G[e]=F(e))},W={},B=r.WeakMap;if(U){var V=$.state||($.state=new B),K=V.get,X=V.has,Y=V.set;P=function(e,t){return t.facade=e,Y.call(V,e,t),t},C=function(e){return K.call(V,e)||{}},L=function(e){return X.call(V,e)}}else{var J=H("state");W[J]=!0,P=function(e,t){return t.facade=e,R(e,J,t),t},C=function(e){return m(e,J)?e[J]:{}},L=function(e){return m(e,J)}}var Q,ee,te={set:P,get:C,has:L,enforce:function(e){return L(e)?C(e):P(e,{})},getterFor:function(e){return function(t){var n;if(!v(t)||(n=C(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},ne=t((function(e){var t=te.get,n=te.enforce,i=String(String).split("String");(e.exports=function(e,t,o,a){var l,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,u=!!a&&!!a.noTargetGet;"function"==typeof o&&("string"!=typeof t||m(o,"name")||R(o,"name",t),(l=n(o)).source||(l.sourc