Files

161 lines
128 KiB
JavaScript
Raw Normal View History

2025-05-09 16:55:09 +08:00
var Sa=Object.create;var Nt=Object.defineProperty;var qa=Object.getOwnPropertyDescriptor;var Fa=Object.getOwnPropertyNames;var Ra=Object.getPrototypeOf,Ma=Object.prototype.hasOwnProperty;var v=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Ia=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Fa(e))!Ma.call(t,i)&&i!==r&&Nt(t,i,{get:()=>e[i],enumerable:!(n=qa(e,i))||n.enumerable});return t};var zt=(t,e,r)=>(r=t!=null?Sa(Ra(t)):{},Ia(e||!t||!t.__esModule?Nt(r,"default",{value:t,enumerable:!0}):r,t));var Pt=v((Lr,Or)=>{(function(t,e){typeof Lr=="object"&&typeof Or<"u"?Or.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.DOMPurify=e())})(Lr,function(){"use strict";function t(g){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},t(g)}function e(g,k){return e=Object.setPrototypeOf||function(F,B){return F.__proto__=B,F},e(g,k)}function r(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function n(g,k,T){return r()?n=Reflect.construct:n=function(B,re,se){var te=[null];te.push.apply(te,re);var Re=Function.bind.apply(B,te),Me=new Re;return se&&e(Me,se.prototype),Me},n.apply(null,arguments)}function i(g){return o(g)||s(g)||a(g)||u()}function o(g){if(Array.isArray(g))return l(g)}function s(g){if(typeof Symbol<"u"&&g[Symbol.iterator]!=null||g["@@iterator"]!=null)return Array.from(g)}function a(g,k){if(!!g){if(typeof g=="string")return l(g,k);var T=Object.prototype.toString.call(g).slice(8,-1);if(T==="Object"&&g.constructor&&(T=g.constructor.name),T==="Map"||T==="Set")return Array.from(g);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return l(g,k)}}function l(g,k){(k==null||k>g.length)&&(k=g.length);for(var T=0,F=new Array(k);T<k;T++)F[T]=g[T];return F}function u(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f=Object.hasOwnProperty,p=Object.setPrototypeOf,d=Object.isFrozen,h=Object.getPrototypeOf,y=Object.getOwnPropertyDescriptor,_=Object.freeze,C=Object.seal,E=Object.create,x=typeof Reflect<"u"&&Reflect,D=x.apply,S=x.construct;D||(D=function(k,T,F){return k.apply(T,F)}),_||(_=function(k){return k}),C||(C=function(k){return k}),S||(S=function(k,T){return n(k,i(T))});var R=z(Array.prototype.forEach),A=z(Array.prototype.pop),M=z(Array.prototype.push),P=z(String.prototype.toLowerCase),fe=z(String.prototype.toString),I=z(String.prototype.match),L=z(String.prototype.replace),qe=z(String.prototype.indexOf),xe=z(String.prototype.trim),H=z(RegExp.prototype.test),pe=Fe(TypeError);function z(g){return function(k){for(var T=arguments.length,F=new Array(T>1?T-1:0),B=1;B<T;B++)F[B-1]=arguments[B];return D(g,k,F)}}function Fe(g){return function(){for(var k=arguments.length,T=new Array(k),F=0;F<k;F++)T[F]=arguments[F];return S(g,T)}}function q(g,k,T){T=T||P,p&&p(g,null);for(var F=k.length;F--;){var B=k[F];if(typeof B=="string"){var re=T(B);re!==B&&(d(k)||(k[F]=re),B=re)}g[B]=!0}return g}function he(g){var k=E(null),T;for(T in g)D(f,g,[T])&&(k[T]=g[T]);return k}function Ue(g,k){for(;g!==null;){var T=y(g,k);if(T){if(T.get)return z(T.get);if(typeof T.value=="function")return z(T.value)}g=h(g)}function F(B){return console.warn("fallback value for",B),null}return F}var ut=_(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),pr=_(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),hr=_(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Zo=_(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),dr=_(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Wo=_(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ct=_(["#text"]),ft=_(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","co
`+$),ke&&($=L($,xr," "),$=L($,kr," "),$=L($,vr," ")),Q&&Ze?Q.createHTML($):$},k.setConfig=function(w){Fr(w),Er=!0},k.clearConfig=function(){Ee=null,Er=!1},k.isValidAttribute=function(w,c,m){Ee||Fr({});var b=V(w),O=V(c);return Mt(b,O,m)},k.addHook=function(w,c){typeof c=="function"&&(ne[w]=ne[w]||[],M(ne[w],c))},k.removeHook=function(w){if(ne[w])return A(ne[w])},k.removeHooks=function(w){ne[w]&&(ne[w]=[])},k.removeAllHooks=function(){ne={}},k}var aa=ht();return aa})});var Bt=v((Xl,La)=>{La.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230
`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u01
`," "],Ha=["{","}","|","\\","^","`"].concat(Ua),Ga=["'"].concat(Ha),Kt=["%","/","?",";","#"].concat(Ga),Xt=["/","?","#"],ja=255,Qt=/^[+a-z0-9A-Z_-]{0,63}$/,Va=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,en={javascript:!0,"javascript:":!0},rn={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function $a(t,e){if(t&&t instanceof rr)return t;var r=new rr;return r.parse(t,e),r}rr.prototype.parse=function(t,e){var r,n,i,o,s,a=t;if(a=a.trim(),!e&&t.split("#").length===1){var l=Ba.exec(a);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var u=za.exec(a);if(u&&(u=u[0],i=u.toLowerCase(),this.protocol=u,a=a.substr(u.length)),(e||u||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(s=a.substr(0,2)==="//",s&&!(u&&en[u])&&(a=a.substr(2),this.slashes=!0)),!en[u]&&(s||u&&!rn[u])){var f=-1;for(r=0;r<Xt.length;r++)o=a.indexOf(Xt[r]),o!==-1&&(f===-1||o<f)&&(f=o);var p,d;for(f===-1?d=a.lastIndexOf("@"):d=a.lastIndexOf("@",f),d!==-1&&(p=a.slice(0,d),a=a.slice(d+1),this.auth=p),f=-1,r=0;r<Kt.length;r++)o=a.indexOf(Kt[r]),o!==-1&&(f===-1||o<f)&&(f=o);f===-1&&(f=a.length),a[f-1]===":"&&f--;var h=a.slice(0,f);a=a.slice(f),this.parseHost(h),this.hostname=this.hostname||"";var y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y){var _=this.hostname.split(/\./);for(r=0,n=_.length;r<n;r++){var C=_[r];if(!!C&&!C.match(Qt)){for(var E="",x=0,D=C.length;x<D;x++)C.charCodeAt(x)>127?E+="x":E+=C[x];if(!E.match(Qt)){var S=_.slice(0,r),R=_.slice(r+1),A=C.match(Va);A&&(S.push(A[1]),R.unshift(A[2])),R.length&&(a=R.join(".")+a),this.hostname=S.join(".");break}}}}this.hostname.length>ja&&(this.hostname=""),y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var M=a.indexOf("#");M!==-1&&(this.hash=a.substr(M),a=a.slice(0,M));var P=a.indexOf("?");return P!==-1&&(this.search=a.substr(P),a=a.slice(0,P)),a&&(this.pathname=a),rn[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};rr.prototype.parseHost=function(t){var e=Pa.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};tn.exports=$a});var zr=v((ou,Ne)=>{"use strict";Ne.exports.encode=Vt();Ne.exports.decode=Wt();Ne.exports.format=Jt();Ne.exports.parse=nn()});var Pr=v((au,on)=>{on.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/});var Br=v((su,an)=>{an.exports=/[\0-\x1F\x7F-\x9F]/});var ln=v((lu,sn)=>{sn.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/});var Ur=v((uu,un)=>{un.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/});var cn=v(we=>{"use strict";we.Any=Pr();we.Cc=Br();we.Cf=ln();we.P=Xe();we.Z=Ur()});var N=v(G=>{"use strict";function Za(t){return Object.prototype.toString.call(t)}function Wa(t){return Za(t)==="[object String]"}var Ya=Object.prototype.hasOwnProperty;function pn(t,e){return Ya.call(t,e)}function Ja(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(r){if(!!r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(n){t[n]=r[n]})}}),t}function Ka(t,e,r){return[].concat(t.slice(0,e),r,t.slice(e+1))}function hn(t){return!(t>=55296&&t<=57343||t>=64976&&t<=65007||(t&65535)===65535||(t&65535)===65534||t>=0&&t<=8||t===11||t>=14&&t<=31||t>=127&&t<=159||t>1114111)}function dn(t){if(t>65535){t-=65536;var e=55296+(t>>10),r=56320+(t&1023);return String.fromCharCode(e,r)}return String.fromCharCode(t)}var mn=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,Xa=/&([a-z#][a-z0-9]{1,31});/gi,Qa=new RegExp(mn.source+"|"+Xa.source,"gi"),es=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,fn=Nr();function rs(t,e){var r=0;return pn(fn,e)?fn[e]:e.charCodeAt(0)===35&&es.test(e)&&(r=e[1].toLowerCase()==="x"?parseInt(e.slice(2),16):parseInt(e.slice(1),10),hn(r))?dn(r):t}function ts(t){return t.indexOf("\\")<0?t:t.replace(mn,"$1")}function ns(t){return t.indexOf
`};ie.fence=function(t,e,r,n,i){var o=t[e],s=o.info?xs(o.info).trim():"",a="",l="",u,f,p,d,h;return s&&(p=s.split(/(\s+)/g),a=p[0],l=p.slice(2).join("")),r.highlight?u=r.highlight(o.content,a,l)||_e(o.content):u=_e(o.content),u.indexOf("<pre")===0?u+`
`:s?(f=o.attrIndex("class"),d=o.attrs?o.attrs.slice():[],f<0?d.push(["class",r.langPrefix+a]):(d[f]=d[f].slice(),d[f][1]+=" "+r.langPrefix+a),h={attrs:d},"<pre><code"+i.renderAttrs(h)+">"+u+`</code></pre>
`):"<pre><code"+i.renderAttrs(o)+">"+u+`</code></pre>
`};ie.image=function(t,e,r,n,i){var o=t[e];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,r,n),i.renderToken(t,e,r)};ie.hardbreak=function(t,e,r){return r.xhtmlOut?`<br />
`:`<br>
`};ie.softbreak=function(t,e,r){return r.breaks?r.xhtmlOut?`<br />
`:`<br>
`:`
`};ie.text=function(t,e){return _e(t[e].content)};ie.html_block=function(t,e){return t[e].content};ie.html_inline=function(t,e){return t[e].content};function De(){this.rules=bs({},ie)}De.prototype.renderAttrs=function(e){var r,n,i;if(!e.attrs)return"";for(i="",r=0,n=e.attrs.length;r<n;r++)i+=" "+_e(e.attrs[r][0])+'="'+_e(e.attrs[r][1])+'"';return i};De.prototype.renderToken=function(e,r,n){var i,o="",s=!1,a=e[r];return a.hidden?"":(a.block&&a.nesting!==-1&&r&&e[r-1].hidden&&(o+=`
`),o+=(a.nesting===-1?"</":"<")+a.tag,o+=this.renderAttrs(a),a.nesting===0&&n.xhtmlOut&&(o+=" /"),a.block&&(s=!0,a.nesting===1&&r+1<e.length&&(i=e[r+1],(i.type==="inline"||i.hidden||i.nesting===-1&&i.tag===a.tag)&&(s=!1))),o+=s?`>
`:">",o)};De.prototype.renderInline=function(t,e,r){for(var n,i="",o=this.rules,s=0,a=t.length;s<a;s++)n=t[s].type,typeof o[n]<"u"?i+=o[n](t,s,e,r,this):i+=this.renderToken(t,s,e);return i};De.prototype.renderInlineAsText=function(t,e,r){for(var n="",i=0,o=t.length;i<o;i++)t[i].type==="text"?n+=t[i].content:t[i].type==="image"?n+=this.renderInlineAsText(t[i].children,e,r):t[i].type==="softbreak"&&(n+=`
`);return n};De.prototype.render=function(t,e,r){var n,i,o,s="",a=this.rules;for(n=0,i=t.length;n<i;n++)o=t[n].type,o==="inline"?s+=this.renderInline(t[n].children,e,r):typeof a[o]<"u"?s+=a[t[n].type](t,n,e,r,this):s+=this.renderToken(t,n,e,r);return s};Cn.exports=De});var nr=v((gu,wn)=>{"use strict";function ee(){this.__rules__=[],this.__cache__=null}ee.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};ee.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(r){!r.enabled||r.alt.forEach(function(n){e.indexOf(n)<0&&e.push(n)})}),t.__cache__={},e.forEach(function(r){t.__cache__[r]=[],t.__rules__.forEach(function(n){!n.enabled||r&&n.alt.indexOf(r)<0||t.__cache__[r].push(n.fn)})})};ee.prototype.at=function(t,e,r){var n=this.__find__(t),i=r||{};if(n===-1)throw new Error("Parser rule not found: "+t);this.__rules__[n].fn=e,this.__rules__[n].alt=i.alt||[],this.__cache__=null};ee.prototype.before=function(t,e,r,n){var i=this.__find__(t),o=n||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i,0,{name:e,enabled:!0,fn:r,alt:o.alt||[]}),this.__cache__=null};ee.prototype.after=function(t,e,r,n){var i=this.__find__(t),o=n||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i+1,0,{name:e,enabled:!0,fn:r,alt:o.alt||[]}),this.__cache__=null};ee.prototype.push=function(t,e,r){var n=r||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:n.alt||[]}),this.__cache__=null};ee.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var r=[];return t.forEach(function(n){var i=this.__find__(n);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[i].enabled=!0,r.push(n)},this),this.__cache__=null,r};ee.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(t,e)};ee.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var r=[];return t.forEach(function(n){var i=this.__find__(n);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[i].enabled=!1,r.push(n)},this),this.__cache__=null,r};ee.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};wn.exports=ee});var Tn=v((bu,Dn)=>{"use strict";var ks=/\r\n?|\n/g,vs=/\0/g;Dn.exports=function(e){var r;r=e.src.replace(ks,`
`),r=r.replace(vs,"\uFFFD"),e.src=r}});var qn=v((xu,Sn)=>{"use strict";Sn.exports=function(e){var r;e.inlineMode?(r=new e.Token("inline","",0),r.content=e.src,r.map=[0,1],r.children=[],e.tokens.push(r)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}});var Rn=v((ku,Fn)=>{"use strict";Fn.exports=function(e){var r=e.tokens,n,i,o;for(i=0,o=r.length;i<o;i++)n=r[i],n.type==="inline"&&e.md.inline.parse(n.content,e.md,e.env,n.children)}});var In=v((vu,Mn)=>{"use strict";var As=N().arrayReplaceAt;function ys(t){return/^<a[>\s]/i.test(t)}function Cs(t){return/^<\/a\s*>/i.test(t)}Mn.exports=function(e){var r,n,i,o,s,a,l,u,f,p,d,h,y,_,C,E,x=e.tokens,D;if(!!e.md.options.linkify){for(n=0,i=x.length;n<i;n++)if(!(x[n].type!=="inline"||!e.md.linkify.pretest(x[n].content)))for(o=x[n].children,y=0,r=o.length-1;r>=0;r--){if(a=o[r],a.type==="link_close"){for(r--;o[r].level!==a.level&&o[r].type!=="link_open";)r--;continue}if(a.type==="html_inline"&&(ys(a.content)&&y>0&&y--,Cs(a.content)&&y++),!(y>0)&&a.type==="text"&&e.md.linkify.test(a.content)){for(f=a.content,D=e.md.linkify.match(f),l=[],h=a.level,d=0,u=0;u<D.length;u++)_=D[u].url,C=e.md.normalizeLink(_),e.md.validateLink(C)&&(E=D[u].text,D[u].schema?D[u].schema==="mailto:"&&!/^mailto:/i.test(E)?E=e.md.normalizeLinkText("mailto:"+E).replace(/^mailto:/,""):E=e.md.normalizeLinkText(E):E=e.md.normalizeLinkText("http://"+E).replace(/^http:\/\//,""),p=D[u].index,p>d&&(s=new e.Token("text","",0),s.content=f.slice(d,p),s.level=h,l.push(s)),s=new e.Token("link_open","a",1),s.attrs=[["href",C]],s.level=h++,s.markup="linkify",s.info="auto",l.push(s),s=new e.Token("text","",0),s.content=E,s.level=h,l.push(s),s=new e.Token("link_close","a",-1),s.level=--h,s.markup="linkify",s.info="auto",l.push(s),d=D[u].lastIndex);d<f.length&&(s=new e.Token("text","",0),s.content=f.slice(d),s.level=h,l.push(s)),x[n].children=o=As(o,r,l)}}}}});var Nn=v((Au,On)=>{"use strict";var Ln=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Es=/\((c|tm|r|p)\)/i,ws=/\((c|tm|r|p)\)/ig,Ds={c:"\xA9",r:"\xAE",p:"\xA7",tm:"\u2122"};function Ts(t,e){return Ds[e.toLowerCase()]}function Ss(t){var e,r,n=0;for(e=t.length-1;e>=0;e--)r=t[e],r.type==="text"&&!n&&(r.content=r.content.replace(ws,Ts)),r.type==="link_open"&&r.info==="auto"&&n--,r.type==="link_close"&&r.info==="auto"&&n++}function qs(t){var e,r,n=0;for(e=t.length-1;e>=0;e--)r=t[e],r.type==="text"&&!n&&Ln.test(r.content)&&(r.content=r.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),r.type==="link_open"&&r.info==="auto"&&n--,r.type==="link_close"&&r.info==="auto"&&n++}On.exports=function(e){var r;if(!!e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)e.tokens[r].type==="inline"&&(Es.test(e.tokens[r].content)&&Ss(e.tokens[r].children),Ln.test(e.tokens[r].content)&&qs(e.tokens[r].children))}});var jn=v((yu,Gn)=>{"use strict";var zn=N().isWhiteSpace,Pn=N().isPunctChar,Bn=N().isMdAsciiPunct,Fs=/['"]/,Un=/['"]/g,Hn="\u2019";function ir(t,e,r){return t.substr(0,e)+r+t.substr(e+1)}function Rs(t,e){var r,n,i,o,s,a,l,u,f,p,d,h,y,_,C,E,x,D,S,R,A;for(S=[],r=0;r<t.length;r++){for(n=t[r],l=t[r].level,x=S.length-1;x>=0&&!(S[x].level<=l);x--);if(S.length=x+1,n.type!=="text")continue;i=n.content,s=0,a=i.length;e:for(;s<a&&(Un.lastIndex=s,o=Un.exec(i),!!o);){if(C=E=!0,s=o.index+1,D=o[0]==="'",f=32,o.index-1>=0)f=i.charCodeAt(o.index-1);else for(x=r-1;x>=0&&!(t[x].type==="softbreak"||t[x].type==="hardbreak");x--)if(!!t[x].content){f=t[x].content.charCodeAt(t[x].content.length-1);break}if(p=32,s<a)p=i.charCodeAt(s);else for(x=r+1;x<t.length&&!(t[x].type==="softbreak"||t[x].type==="hardbreak");x++)if(!!t[x].content){p=t[x].content.charCodeAt(0);break}if(d=Bn(f)||Pn(String.fromCharCode(f)),h=Bn(p)||Pn(String.fromCharCode(p)),y=zn(f),_=zn(p),_?C=!1:h&&(y||d||(C=!1)),y?E=!1:d&&(_||h||(E=!1)),p===34&&o[0]==='"'&&f>=48&&f<=57&&(E=C=!1),C&&E&&(C=d,E=h),!C&&!E){D&&(n.content=ir(n.content,o.ind
`,s.map=[r,e.line],!0}});var ni=v((Su,ti)=>{"use strict";ti.exports=function(e,r,n,i){var o,s,a,l,u,f,p,d=!1,h=e.bMarks[r]+e.tShift[r],y=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||h+3>y||(o=e.src.charCodeAt(h),o!==126&&o!==96)||(u=h,h=e.skipChars(h,o),s=h-u,s<3)||(p=e.src.slice(u,h),a=e.src.slice(h,y),o===96&&a.indexOf(String.fromCharCode(o))>=0))return!1;if(i)return!0;for(l=r;l++,!(l>=n||(h=u=e.bMarks[l]+e.tShift[l],y=e.eMarks[l],h<y&&e.sCount[l]<e.blkIndent));)if(e.src.charCodeAt(h)===o&&!(e.sCount[l]-e.blkIndent>=4)&&(h=e.skipChars(h,o),!(h-u<s)&&(h=e.skipSpaces(h),!(h<y)))){d=!0;break}return s=e.sCount[r],e.line=l+(d?1:0),f=e.push("fence","code",0),f.info=a,f.content=e.getLines(r+1,l,s,!0),f.markup=p,f.map=[r,e.line],!0}});var ai=v((qu,oi)=>{"use strict";var ii=N().isSpace;oi.exports=function(e,r,n,i){var o,s,a,l,u,f,p,d,h,y,_,C,E,x,D,S,R,A,M,P,fe=e.lineMax,I=e.bMarks[r]+e.tShift[r],L=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||e.src.charCodeAt(I++)!==62)return!1;if(i)return!0;for(l=h=e.sCount[r]+1,e.src.charCodeAt(I)===32?(I++,l++,h++,o=!1,S=!0):e.src.charCodeAt(I)===9?(S=!0,(e.bsCount[r]+h)%4===3?(I++,l++,h++,o=!1):o=!0):S=!1,y=[e.bMarks[r]],e.bMarks[r]=I;I<L&&(s=e.src.charCodeAt(I),ii(s));){s===9?h+=4-(h+e.bsCount[r]+(o?1:0))%4:h++;I++}for(_=[e.bsCount[r]],e.bsCount[r]=e.sCount[r]+1+(S?1:0),f=I>=L,x=[e.sCount[r]],e.sCount[r]=h-l,D=[e.tShift[r]],e.tShift[r]=I-e.bMarks[r],A=e.md.block.ruler.getRules("blockquote"),E=e.parentType,e.parentType="blockquote",d=r+1;d<n&&(P=e.sCount[d]<e.blkIndent,I=e.bMarks[d]+e.tShift[d],L=e.eMarks[d],!(I>=L));d++){if(e.src.charCodeAt(I++)===62&&!P){for(l=h=e.sCount[d]+1,e.src.charCodeAt(I)===32?(I++,l++,h++,o=!1,S=!0):e.src.charCodeAt(I)===9?(S=!0,(e.bsCount[d]+h)%4===3?(I++,l++,h++,o=!1):o=!0):S=!1,y.push(e.bMarks[d]),e.bMarks[d]=I;I<L&&(s=e.src.charCodeAt(I),ii(s));){s===9?h+=4-(h+e.bsCount[d]+(o?1:0))%4:h++;I++}f=I>=L,_.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(S?1:0),x.push(e.sCount[d]),e.sCount[d]=h-l,D.push(e.tShift[d]),e.tShift[d]=I-e.bMarks[d];continue}if(f)break;for(R=!1,a=0,u=A.length;a<u;a++)if(A[a](e,d,n,!0)){R=!0;break}if(R){e.lineMax=d,e.blkIndent!==0&&(y.push(e.bMarks[d]),_.push(e.bsCount[d]),D.push(e.tShift[d]),x.push(e.sCount[d]),e.sCount[d]-=e.blkIndent);break}y.push(e.bMarks[d]),_.push(e.bsCount[d]),D.push(e.tShift[d]),x.push(e.sCount[d]),e.sCount[d]=-1}for(C=e.blkIndent,e.blkIndent=0,M=e.push("blockquote_open","blockquote",1),M.markup=">",M.map=p=[r,0],e.md.block.tokenize(e,r,d),M=e.push("blockquote_close","blockquote",-1),M.markup=">",e.lineMax=fe,e.parentType=E,p[1]=e.line,a=0;a<D.length;a++)e.bMarks[a+r]=y[a],e.tShift[a+r]=D[a],e.sCount[a+r]=x[a],e.bsCount[a+r]=_[a];return e.blkIndent=C,!0}});var li=v((Fu,si)=>{"use strict";var Ls=N().isSpace;si.exports=function(e,r,n,i){var o,s,a,l,u=e.bMarks[r]+e.tShift[r],f=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||(o=e.src.charCodeAt(u++),o!==42&&o!==45&&o!==95))return!1;for(s=1;u<f;){if(a=e.src.charCodeAt(u++),a!==o&&!Ls(a))return!1;a===o&&s++}return s<3?!1:(i||(e.line=r+1,l=e.push("hr","hr",0),l.map=[r,e.line],l.markup=Array(s+1).join(String.fromCharCode(o))),!0)}});var hi=v((Ru,pi)=>{"use strict";var fi=N().isSpace;function ui(t,e){var r,n,i,o;return n=t.bMarks[e]+t.tShift[e],i=t.eMarks[e],r=t.src.charCodeAt(n++),r!==42&&r!==45&&r!==43||n<i&&(o=t.src.charCodeAt(n),!fi(o))?-1:n}function ci(t,e){var r,n=t.bMarks[e]+t.tShift[e],i=n,o=t.eMarks[e];if(i+1>=o||(r=t.src.charCodeAt(i++),r<48||r>57))return-1;for(;;){if(i>=o)return-1;if(r=t.src.charCodeAt(i++),r>=48&&r<=57){if(i-n>=10)return-1;continue}if(r===41||r===46)break;return-1}return i<o&&(r=t.src.charCodeAt(i),!fi(r))?-1:i}function Os(t,e){var r,n,i=t.level+2;for(r=e+2,n=t.tokens.length-2;r<n;r++)t.tokens[r].level===i&&t.tokens[r].type==="paragraph_open"&&(t.tokens[r+2].hidden=!0,t.tokens[r].hidden=!0,r+=2)}pi.exports=function(e,r,n,i){var o,s,a,l,u,f,p,d,h,y,_,C,E,x,D,S,R,A,M,P,fe,I,L,qe,xe,H,pe,z,Fe=!1,q=!0;if(e.sCount[r]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[r]-e.listIndent>=4&&e.sCount[r]<e.blkIndent)return!1;if(i&&e.parentType==="paragraph"&&e.sCount[r]>=e.blkI
.emptyMarkdownCell::before {
content: "${document.documentElement.style.getPropertyValue("--notebook-cell-markup-empty-content")}";
font-style: italic;
opacity: 0.6;
}
img {
max-width: 100%;
max-height: 100%;
}
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a:focus,
input:focus,
select:focus,
textarea:focus {
outline: 1px solid -webkit-focus-ring-color;
outline-offset: -1px;
}
hr {
border: 0;
height: 2px;
border-bottom: 2px solid;
}
h2, h3, h4, h5, h6 {
font-weight: normal;
}
h1 {
font-size: 2.3em;
}
h2 {
font-size: 2em;
}
h3 {
font-size: 1.7em;
}
h3 {
font-size: 1.5em;
}
h4 {
font-size: 1.3em;
}
h5 {
font-size: 1.2em;
}
h1,
h2,
h3 {
font-weight: normal;
}
div {
width: 100%;
}
/* Adjust margin of first item in markdown cell */
*:first-child {
margin-top: 0px;
}
/* h1 tags don't need top margin */
h1:first-child {
margin-top: 0;
}
/* Removes bottom margin when only one item exists in markdown cell */
#preview > *:only-child,
#preview > *:last-child {
margin-bottom: 0;
padding-bottom: 0;
}
/* makes all markdown cells consistent */
div {
min-height: var(--notebook-markdown-min-height);
}
table {
border-collapse: collapse;
border-spacing: 0;
}
table th,
table td {
border: 1px solid;
}
table > thead > tr > th {
text-align: left;
border-bottom: 1px solid;
}
table > thead > tr > th,
table > thead > tr > td,
table > tbody > tr > th,
table > tbody > tr > td {
padding: 5px 10px;
}
table > tbody > tr + tr > td {
border-top: 1px solid;
}
blockquote {
margin: 0 7px 0 5px;
padding: 0 16px 0 10px;
border-left-width: 5px;
border-left-style: solid;
}
code {
font-size: 1em;
font-family: var(--vscode-editor-font-family);
}
pre code {
line-height: 1.357em;
white-space: pre-wrap;
}
`;let n=document.createElement("template");return n.classList.add("markdown-style"),n.content.appendChild(r),document.head.appendChild(n),{renderOutputItem:(i,o)=>{let s;if(o.shadowRoot)s=o.shadowRoot.getElementById("preview");else{let l=o.attachShadow({mode:"open"}),u=document.getElementById("_defaultStyles");l.appendChild(u.cloneNode(!0));for(let f of document.getElementsByClassName("markdown-style"))f instanceof HTMLTemplateElement?l.appendChild(f.content.cloneNode(!0)):l.appendChild(f.cloneNode(!0));s=document.createElement("div"),s.id="preview",l.appendChild(s)}let a=i.text();if(a.trim().length===0)s.innerText="",s.classList.add("emptyMarkdownCell");else{s.classList.remove("emptyMarkdownCell");let l=i.mime.startsWith("text/x-")?`\`\`\`${i.mime.substr(7)}
${a}
\`\`\``:i.mime.startsWith("application/")?`\`\`\`${i.mime.substr(12)}
${a}
\`\`\``:a,u=e.render(l,{outputItem:i});s.innerHTML=t.workspace.isTrusted?u:Vo.sanitize(u,Zl)}},extendMarkdownIt:i=>{i(e)}}};function Wl(t){let e=new Map,r=t.renderer.rules.heading_open;t.renderer.rules.heading_open=(i,o,s,a,l)=>{let u=i[o+1].children.reduce((p,d)=>p+d.content,""),f=lt(u);if(e.has(f)){let p=e.get(f);e.set(f,p+1),f=lt(f+"-"+(p+1))}else e.set(f,0);return i[o].attrSet("id",f),r?r(i,o,s,a,l):l.renderToken(i,o,s)};let n=t.render;t.render=function(){return e.clear(),n.apply(this,arguments)}}function Yl(t){let e=t.renderer.rules.link_open;t.renderer.rules.link_open=(r,n,i,o,s)=>{let a=r[n],l=a.attrGet("href");return typeof l=="string"&&l.startsWith("#")&&a.attrSet("href","#"+lt(l.slice(1))),e?e(r,n,i,o,s):s.renderToken(r,n,i)}}function lt(t){return encodeURI(t.trim().toLowerCase().replace(/\s+/g,"-").replace(/[\]\[\!\/\'\"\#\$\%\&\(\)\*\+\,\.\/\:\;\<\=\>\?\@\\\^\{\|\}\~\`。,、;:?!…—·ˉ¨‘’“”々~‖∶"'`|〃〔〕〈〉《》「」『』.〖〗【】()[]{}]/g,"").replace(/^\-+/,"").replace(/\-+$/,""))}export{fc as activate};
/*! @license DOMPurify 2.4.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.1/LICENSE */