mirror of
https://github.com/SeriousBug/dotfiles
synced 2025-02-22 22:29:50 -06:00
14 lines
76 KiB
JavaScript
14 lines
76 KiB
JavaScript
const An=function(){const ot=document.createElement("link").relList;if(ot&&ot.supports&&ot.supports("modulepreload"))return;for(const q of document.querySelectorAll('link[rel="modulepreload"]'))Mt(q);new MutationObserver(q=>{for(const _t of q)if(_t.type==="childList")for(const R of _t.addedNodes)R.tagName==="LINK"&&R.rel==="modulepreload"&&Mt(R)}).observe(document,{childList:!0,subtree:!0});function Qt(q){const _t={};return q.integrity&&(_t.integrity=q.integrity),q.referrerpolicy&&(_t.referrerPolicy=q.referrerpolicy),q.crossorigin==="use-credentials"?_t.credentials="include":q.crossorigin==="anonymous"?_t.credentials="omit":_t.credentials="same-origin",_t}function Mt(q){if(q.ep)return;q.ep=!0;const _t=Qt(q);fetch(q.href,_t)}};An();var pn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Cn={exports:{}};/*! For license information please see lsplugin.user.js.LICENSE.txt */(function(Q,ot){(function(Qt,Mt){Q.exports=Mt()})(self,()=>(()=>{var Qt={227:(R,p,S)=>{var N=S(155);p.formatArgs=function(E){if(E[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+E[0]+(this.useColors?"%c ":" ")+"+"+R.exports.humanize(this.diff),!this.useColors)return;const U="color: "+this.color;E.splice(1,0,U,"color: inherit");let m=0,l=0;E[0].replace(/%[a-zA-Z%]/g,g=>{g!=="%%"&&(m++,g==="%c"&&(l=m))}),E.splice(l,0,U)},p.save=function(E){try{E?p.storage.setItem("debug",E):p.storage.removeItem("debug")}catch{}},p.load=function(){let E;try{E=p.storage.getItem("debug")}catch{}return!E&&N!==void 0&&"env"in N&&(E=N.env.DEBUG),E},p.useColors=function(){return!(typeof window>"u"||!window.process||window.process.type!=="renderer"&&!window.process.__nwjs)||(typeof navigator>"u"||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},p.storage=function(){try{return localStorage}catch{}}(),p.destroy=(()=>{let E=!1;return()=>{E||(E=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),p.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],p.log=console.debug||console.log||(()=>{}),R.exports=S(447)(p);const{formatters:w}=R.exports;w.j=function(E){try{return JSON.stringify(E)}catch(U){return"[UnexpectedJSONParseError]: "+U.message}}},447:(R,p,S)=>{R.exports=function(N){function w(m){let l,g,y,z=null;function I(...k){if(!I.enabled)return;const $=I,A=Number(new Date),L=A-(l||A);$.diff=L,$.prev=l,$.curr=A,l=A,k[0]=w.coerce(k[0]),typeof k[0]!="string"&&k.unshift("%O");let i=0;k[0]=k[0].replace(/%([a-zA-Z%])/g,(s,h)=>{if(s==="%%")return"%";i++;const x=w.formatters[h];if(typeof x=="function"){const H=k[i];s=x.call($,H),k.splice(i,1),i--}return s}),w.formatArgs.call($,k),($.log||w.log).apply($,k)}return I.namespace=m,I.useColors=w.useColors(),I.color=w.selectColor(m),I.extend=E,I.destroy=w.destroy,Object.defineProperty(I,"enabled",{enumerable:!0,configurable:!1,get:()=>z!==null?z:(g!==w.namespaces&&(g=w.namespaces,y=w.enabled(m)),y),set:k=>{z=k}}),typeof w.init=="function"&&w.init(I),I}function E(m,l){const g=w(this.namespace+(l===void 0?":":l)+m);return g.log=this.log,g}function U(m){return m.toString().substring(2,m.toString().length-2).replace(/\.\*\?$/,"*")}return w.debug=w,w.default=w,w.coerce=function(m){return m instanceof Error?m.stack||m.message:m},w.disable=function(){const m=[...w.names.map(U),...w.skips.map(U).map(l=>"-"+l)].join(",");return w.enable(""),m},w.enable=function(m){let l;w.save(m),w.namespaces=m,w.names=[],w.skips=[];const g=(typeof m=="string"?m:"").split(/[\s,]+/),y=g.length;for(l=0;l<y;l++)g[l]&&((m=g[l].replace(/\*/g,".*?"))[0]==="-"?w.skips.push(new RegExp("^"+m.slice(1)+"$")):w.names.push(new RegExp("^"+m+"$")))},w.enabled=function(m){if(m[m.length-1]==="*")return!0;let l,g;for(l=0,g=w.skips.length;l<g;l++)if(w.skips[l].test(m))return!1;for(l=0,g=w.names.length;l<g;l++)if(w.names[l].test(m))return!0;return!1},w.humanize=S(824),w.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(N).forEach(m=>{w[m]=N[m]}),w.names=[],w.skips=[],w.formatters={},w.selectColor=function(m){let l=0;for(let g=0;g<m.length;g++)l=(l<<5)-l+m.charCodeAt(g),l|=0;return w.colors[Math.abs(l)%w.colors.length]},w.enable(w.load()),w}},856:function(R){R.exports=function(){function p(P){return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},p(P)}function S(P,b){return S=Object.setPrototypeOf||function(T,W){return T.__proto__=W,T},S(P,b)}function N(){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 w(P,b,T){return w=N()?Reflect.construct:function(W,et,Ct){var Wt=[null];Wt.push.apply(Wt,et);var Ut=new(Function.bind.apply(W,Wt));return Ct&&S(Ut,Ct.prototype),Ut},w.apply(null,arguments)}function E(P){return function(b){if(Array.isArray(b))return U(b)}(P)||function(b){if(typeof Symbol<"u"&&b[Symbol.iterator]!=null||b["@@iterator"]!=null)return Array.from(b)}(P)||function(b,T){if(b){if(typeof b=="string")return U(b,T);var W=Object.prototype.toString.call(b).slice(8,-1);return W==="Object"&&b.constructor&&(W=b.constructor.name),W==="Map"||W==="Set"?Array.from(b):W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W)?U(b,T):void 0}}(P)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function U(P,b){(b==null||b>P.length)&&(b=P.length);for(var T=0,W=new Array(b);T<b;T++)W[T]=P[T];return W}var m=Object.hasOwnProperty,l=Object.setPrototypeOf,g=Object.isFrozen,y=Object.getPrototypeOf,z=Object.getOwnPropertyDescriptor,I=Object.freeze,k=Object.seal,$=Object.create,A=typeof Reflect<"u"&&Reflect,L=A.apply,i=A.construct;L||(L=function(P,b,T){return P.apply(b,T)}),I||(I=function(P){return P}),k||(k=function(P){return P}),i||(i=function(P,b){return w(P,E(b))});var s,h=c(Array.prototype.forEach),x=c(Array.prototype.pop),H=c(Array.prototype.push),G=c(String.prototype.toLowerCase),tt=c(String.prototype.match),it=c(String.prototype.replace),wt=c(String.prototype.indexOf),vt=c(String.prototype.trim),st=c(RegExp.prototype.test),qt=(s=TypeError,function(){for(var P=arguments.length,b=new Array(P),T=0;T<P;T++)b[T]=arguments[T];return i(s,b)});function c(P){return function(b){for(var T=arguments.length,W=new Array(T>1?T-1:0),et=1;et<T;et++)W[et-1]=arguments[et];return L(P,b,W)}}function u(P,b){l&&l(P,null);for(var T=b.length;T--;){var W=b[T];if(typeof W=="string"){var et=G(W);et!==W&&(g(b)||(b[T]=et),W=et)}P[W]=!0}return P}function F(P){var b,T=$(null);for(b in P)L(m,P,[b])&&(T[b]=P[b]);return T}function V(P,b){for(;P!==null;){var T=z(P,b);if(T){if(T.get)return c(T.get);if(typeof T.value=="function")return c(T.value)}P=y(P)}return function(W){return console.warn("fallback value for",W),null}}var gt=I(["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"]),ut=I(["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"]),B=I(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),at=I(["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"]),ht=I(["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"]),dt=I(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Rt=I(["#text"]),xt=I(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),ct=I(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Y=I(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),pt=I(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Et=k(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Bt=k(/<%[\w\W]*|[\w\W]*%>/gm),Pt=k(/^data-[\-\w.\u00B7-\uFFFF]/),Dt=k(/^aria-[\-\w]+$/),ue=k(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),te=k(/^(?:\w+script|data):/i),ze=k(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fn=k(/^html$/i),$e=function(){return typeof window>"u"?null:window},hn=function(P,b){if(p(P)!=="object"||typeof P.createPolicy!="function")return null;var T=null,W="data-tt-policy-suffix";b.currentScript&&b.currentScript.hasAttribute(W)&&(T=b.currentScript.getAttribute(W));var et="dompurify"+(T?"#"+T:"");try{return P.createPolicy(et,{createHTML:function(Ct){return Ct}})}catch{return console.warn("TrustedTypes policy "+et+" could not be created."),null}};return function P(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$e(),T=function(r){return P(r)};if(T.version="2.3.8",T.removed=[],!b||!b.document||b.document.nodeType!==9)return T.isSupported=!1,T;var W=b.document,et=b.document,Ct=b.DocumentFragment,Wt=b.HTMLTemplateElement,Ut=b.Node,He=b.Element,be=b.NodeFilter,pe=b.NamedNodeMap,_e=pe===void 0?b.NamedNodeMap||b.MozNamedAttrMap:pe,qe=b.HTMLFormElement,we=b.DOMParser,Be=b.trustedTypes,ee=He.prototype,We=V(ee,"cloneNode"),Ge=V(ee,"nextSibling"),dn=V(ee,"childNodes"),xe=V(ee,"parentNode");if(typeof Wt=="function"){var fe=et.createElement("template");fe.content&&fe.content.ownerDocument&&(et=fe.content.ownerDocument)}var It=hn(Be,W),Je=It?It.createHTML(""):"",K=et,he=K.implementation,ne=K.createNodeIterator,Ce=K.createDocumentFragment,Ze=K.getElementsByTagName,Ke=W.importNode,Se={};try{Se=F(et).documentMode?et.documentMode:{}}catch{}var St={};T.isSupported=typeof xe=="function"&&he&&he.createHTMLDocument!==void 0&&Se!==9;var re,zt,Oe=Et,de=Bt,mn=Pt,gn=Dt,yn=te,Ve=ze,me=ue,ft=null,Ye=u({},[].concat(E(gt),E(ut),E(B),E(ht),E(Rt))),mt=null,Ae=u({},[].concat(E(xt),E(ct),E(Y),E(pt))),lt=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Gt=null,Ee=null,Xe=!0,ke=!0,Qe=!1,Jt=!1,kt=!1,Zt=!1,Te=!1,Kt=!1,ge=!1,oe=!1,je=!0,Vt=!0,ie=!1,Ft={},Yt=null,tn=u({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ie=null,Nt=u({},["audio","video","img","source","image","track"]),Fe=null,en=u({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),se="http://www.w3.org/1998/Math/MathML",Ne="http://www.w3.org/2000/svg",Lt="http://www.w3.org/1999/xhtml",ye=Lt,nn=!1,rn=["application/xhtml+xml","text/html"],Le="text/html",Xt=null,vn=et.createElement("form"),on=function(r){return r instanceof RegExp||r instanceof Function},Me=function(r){Xt&&Xt===r||(r&&p(r)==="object"||(r={}),r=F(r),ft="ALLOWED_TAGS"in r?u({},r.ALLOWED_TAGS):Ye,mt="ALLOWED_ATTR"in r?u({},r.ALLOWED_ATTR):Ae,Fe="ADD_URI_SAFE_ATTR"in r?u(F(en),r.ADD_URI_SAFE_ATTR):en,Ie="ADD_DATA_URI_TAGS"in r?u(F(Nt),r.ADD_DATA_URI_TAGS):Nt,Yt="FORBID_CONTENTS"in r?u({},r.FORBID_CONTENTS):tn,Gt="FORBID_TAGS"in r?u({},r.FORBID_TAGS):{},Ee="FORBID_ATTR"in r?u({},r.FORBID_ATTR):{},Ft="USE_PROFILES"in r&&r.USE_PROFILES,Xe=r.ALLOW_ARIA_ATTR!==!1,ke=r.ALLOW_DATA_ATTR!==!1,Qe=r.ALLOW_UNKNOWN_PROTOCOLS||!1,Jt=r.SAFE_FOR_TEMPLATES||!1,kt=r.WHOLE_DOCUMENT||!1,Kt=r.RETURN_DOM||!1,ge=r.RETURN_DOM_FRAGMENT||!1,oe=r.RETURN_TRUSTED_TYPE||!1,Te=r.FORCE_BODY||!1,je=r.SANITIZE_DOM!==!1,Vt=r.KEEP_CONTENT!==!1,ie=r.IN_PLACE||!1,me=r.ALLOWED_URI_REGEXP||me,ye=r.NAMESPACE||Lt,r.CUSTOM_ELEMENT_HANDLING&&on(r.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(lt.tagNameCheck=r.CUSTOM_ELEMENT_HANDLING.tagNameCheck),r.CUSTOM_ELEMENT_HANDLING&&on(r.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(lt.attributeNameCheck=r.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),r.CUSTOM_ELEMENT_HANDLING&&typeof r.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(lt.allowCustomizedBuiltInElements=r.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),re=re=rn.indexOf(r.PARSER_MEDIA_TYPE)===-1?Le:r.PARSER_MEDIA_TYPE,zt=re==="application/xhtml+xml"?function(C){return C}:G,Jt&&(ke=!1),ge&&(Kt=!0),Ft&&(ft=u({},E(Rt)),mt=[],Ft.html===!0&&(u(ft,gt),u(mt,xt)),Ft.svg===!0&&(u(ft,ut),u(mt,ct),u(mt,pt)),Ft.svgFilters===!0&&(u(ft,B),u(mt,ct),u(mt,pt)),Ft.mathMl===!0&&(u(ft,ht),u(mt,Y),u(mt,pt))),r.ADD_TAGS&&(ft===Ye&&(ft=F(ft)),u(ft,r.ADD_TAGS)),r.ADD_ATTR&&(mt===Ae&&(mt=F(mt)),u(mt,r.ADD_ATTR)),r.ADD_URI_SAFE_ATTR&&u(Fe,r.ADD_URI_SAFE_ATTR),r.FORBID_CONTENTS&&(Yt===tn&&(Yt=F(Yt)),u(Yt,r.FORBID_CONTENTS)),Vt&&(ft["#text"]=!0),kt&&u(ft,["html","head","body"]),ft.table&&(u(ft,["tbody"]),delete Gt.tbody),I&&I(r),Xt=r)},Tt=u({},["mi","mo","mn","ms","mtext"]),ae=u({},["foreignobject","desc","title","annotation-xml"]),sn=u({},["title","style","font","a","script"]),$t=u({},ut);u($t,B),u($t,at);var Re=u({},ht);u(Re,dt);var an=function(r){var C=xe(r);C&&C.tagName||(C={namespaceURI:Lt,tagName:"template"});var v=G(r.tagName),Z=G(C.tagName);return r.namespaceURI===Ne?C.namespaceURI===Lt?v==="svg":C.namespaceURI===se?v==="svg"&&(Z==="annotation-xml"||Tt[Z]):Boolean($t[v]):r.namespaceURI===se?C.namespaceURI===Lt?v==="math":C.namespaceURI===Ne?v==="math"&&ae[Z]:Boolean(Re[v]):r.namespaceURI===Lt&&!(C.namespaceURI===Ne&&!ae[Z])&&!(C.namespaceURI===se&&!Tt[Z])&&!Re[v]&&(sn[v]||!$t[v])},jt=function(r){H(T.removed,{element:r});try{r.parentNode.removeChild(r)}catch{try{r.outerHTML=Je}catch{r.remove()}}},Pe=function(r,C){try{H(T.removed,{attribute:C.getAttributeNode(r),from:C})}catch{H(T.removed,{attribute:null,from:C})}if(C.removeAttribute(r),r==="is"&&!mt[r])if(Kt||ge)try{jt(C)}catch{}else try{C.setAttribute(r,"")}catch{}},cn=function(r){var C,v;if(Te)r="<remove></remove>"+r;else{var Z=tt(r,/^[\r\n\t ]+/);v=Z&&Z[0]}re==="application/xhtml+xml"&&(r='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+r+"</body></html>");var rt=It?It.createHTML(r):r;if(ye===Lt)try{C=new we().parseFromString(rt,re)}catch{}if(!C||!C.documentElement){C=he.createDocument(ye,"template",null);try{C.documentElement.innerHTML=nn?"":rt}catch{}}var e=C.body||C.documentElement;return r&&v&&e.insertBefore(et.createTextNode(v),e.childNodes[0]||null),ye===Lt?Ze.call(C,kt?"html":"body")[0]:kt?C.documentElement:e},ve=function(r){return ne.call(r.ownerDocument||r,r,be.SHOW_ELEMENT|be.SHOW_COMMENT|be.SHOW_TEXT,null,!1)},bn=function(r){return r instanceof qe&&(typeof r.nodeName!="string"||typeof r.textContent!="string"||typeof r.removeChild!="function"||!(r.attributes instanceof _e)||typeof r.removeAttribute!="function"||typeof r.setAttribute!="function"||typeof r.namespaceURI!="string"||typeof r.insertBefore!="function")},ce=function(r){return p(Ut)==="object"?r instanceof Ut:r&&p(r)==="object"&&typeof r.nodeType=="number"&&typeof r.nodeName=="string"},bt=function(r,C,v){St[r]&&h(St[r],function(Z){Z.call(T,C,v,Xt)})},le=function(r){var C;if(bt("beforeSanitizeElements",r,null),bn(r)||st(/[\u0080-\uFFFF]/,r.nodeName))return jt(r),!0;var v=zt(r.nodeName);if(bt("uponSanitizeElement",r,{tagName:v,allowedTags:ft}),r.hasChildNodes()&&!ce(r.firstElementChild)&&(!ce(r.content)||!ce(r.content.firstElementChild))&&st(/<[/\w]/g,r.innerHTML)&&st(/<[/\w]/g,r.textContent)||v==="select"&&st(/<template/i,r.innerHTML))return jt(r),!0;if(!ft[v]||Gt[v]){if(!Gt[v]&&De(v)&&(lt.tagNameCheck instanceof RegExp&&st(lt.tagNameCheck,v)||lt.tagNameCheck instanceof Function&<.tagNameCheck(v)))return!1;if(Vt&&!Yt[v]){var Z=xe(r)||r.parentNode,rt=dn(r)||r.childNodes;if(rt&&Z)for(var e=rt.length-1;e>=0;--e)Z.insertBefore(We(rt[e],!0),Ge(r))}return jt(r),!0}return r instanceof He&&!an(r)?(jt(r),!0):v!=="noscript"&&v!=="noembed"||!st(/<\/no(script|embed)/i,r.innerHTML)?(Jt&&r.nodeType===3&&(C=r.textContent,C=it(C,Oe," "),C=it(C,de," "),r.textContent!==C&&(H(T.removed,{element:r.cloneNode()}),r.textContent=C)),bt("afterSanitizeElements",r,null),!1):(jt(r),!0)},ln=function(r,C,v){if(je&&(C==="id"||C==="name")&&(v in et||v in vn))return!1;if(!(ke&&!Ee[C]&&st(mn,C))){if(!(Xe&&st(gn,C))){if(!mt[C]||Ee[C]){if(!(De(r)&&(lt.tagNameCheck instanceof RegExp&&st(lt.tagNameCheck,r)||lt.tagNameCheck instanceof Function&<.tagNameCheck(r))&&(lt.attributeNameCheck instanceof RegExp&&st(lt.attributeNameCheck,C)||lt.attributeNameCheck instanceof Function&<.attributeNameCheck(C))||C==="is"&<.allowCustomizedBuiltInElements&&(lt.tagNameCheck instanceof RegExp&&st(lt.tagNameCheck,v)||lt.tagNameCheck instanceof Function&<.tagNameCheck(v))))return!1}else if(!Fe[C]){if(!st(me,it(v,Ve,""))){if((C!=="src"&&C!=="xlink:href"&&C!=="href"||r==="script"||wt(v,"data:")!==0||!Ie[r])&&!(Qe&&!st(yn,it(v,Ve,"")))){if(v)return!1}}}}}return!0},De=function(r){return r.indexOf("-")>0},un=function(r){var C,v,Z,rt;bt("beforeSanitizeAttributes",r,null);var e=r.attributes;if(e){var t={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:mt};for(rt=e.length;rt--;){var n=C=e[rt],o=n.name,a=n.namespaceURI;if(v=o==="value"?C.value:vt(C.value),Z=zt(o),t.attrName=Z,t.attrValue=v,t.keepAttr=!0,t.forceKeepAttr=void 0,bt("uponSanitizeAttribute",r,t),v=t.attrValue,!t.forceKeepAttr&&(Pe(o,r),t.keepAttr))if(st(/\/>/i,v))Pe(o,r);else{Jt&&(v=it(v,Oe," "),v=it(v,de," "));var f=zt(r.nodeName);if(ln(f,Z,v))try{a?r.setAttributeNS(a,o,v):r.setAttribute(o,v),x(T.removed)}catch{}}}bt("afterSanitizeAttributes",r,null)}},_n=function r(C){var v,Z=ve(C);for(bt("beforeSanitizeShadowDOM",C,null);v=Z.nextNode();)bt("uponSanitizeShadowNode",v,null),le(v)||(v.content instanceof Ct&&r(v.content),un(v));bt("afterSanitizeShadowDOM",C,null)};return T.sanitize=function(r,C){var v,Z,rt,e,t;if((nn=!r)&&(r="<!-->"),typeof r!="string"&&!ce(r)){if(typeof r.toString!="function")throw qt("toString is not a function");if(typeof(r=r.toString())!="string")throw qt("dirty is not a string, aborting")}if(!T.isSupported){if(p(b.toStaticHTML)==="object"||typeof b.toStaticHTML=="function"){if(typeof r=="string")return b.toStaticHTML(r);if(ce(r))return b.toStaticHTML(r.outerHTML)}return r}if(Zt||Me(C),T.removed=[],typeof r=="string"&&(ie=!1),ie){if(r.nodeName){var n=zt(r.nodeName);if(!ft[n]||Gt[n])throw qt("root node is forbidden and cannot be sanitized in-place")}}else if(r instanceof Ut)(Z=(v=cn("<!---->")).ownerDocument.importNode(r,!0)).nodeType===1&&Z.nodeName==="BODY"||Z.nodeName==="HTML"?v=Z:v.appendChild(Z);else{if(!Kt&&!Jt&&!kt&&r.indexOf("<")===-1)return It&&oe?It.createHTML(r):r;if(!(v=cn(r)))return Kt?null:oe?Je:""}v&&Te&&jt(v.firstChild);for(var o=ve(ie?r:v);rt=o.nextNode();)rt.nodeType===3&&rt===e||le(rt)||(rt.content instanceof Ct&&_n(rt.content),un(rt),e=rt);if(e=null,ie)return r;if(Kt){if(ge)for(t=Ce.call(v.ownerDocument);v.firstChild;)t.appendChild(v.firstChild);else t=v;return mt.shadowroot&&(t=Ke.call(W,t,!0)),t}var a=kt?v.outerHTML:v.innerHTML;return kt&&ft["!doctype"]&&v.ownerDocument&&v.ownerDocument.doctype&&v.ownerDocument.doctype.name&&st(fn,v.ownerDocument.doctype.name)&&(a="<!DOCTYPE "+v.ownerDocument.doctype.name+`>
|
|
`+a),Jt&&(a=it(a,Oe," "),a=it(a,de," ")),It&&oe?It.createHTML(a):a},T.setConfig=function(r){Me(r),Zt=!0},T.clearConfig=function(){Xt=null,Zt=!1},T.isValidAttribute=function(r,C,v){Xt||Me({});var Z=zt(r),rt=zt(C);return ln(Z,rt,v)},T.addHook=function(r,C){typeof C=="function"&&(St[r]=St[r]||[],H(St[r],C))},T.removeHook=function(r){if(St[r])return x(St[r])},T.removeHooks=function(r){St[r]&&(St[r]=[])},T.removeAllHooks=function(){St={}},T}()}()},729:R=>{var p=Object.prototype.hasOwnProperty,S="~";function N(){}function w(l,g,y){this.fn=l,this.context=g,this.once=y||!1}function E(l,g,y,z,I){if(typeof y!="function")throw new TypeError("The listener must be a function");var k=new w(y,z||l,I),$=S?S+g:g;return l._events[$]?l._events[$].fn?l._events[$]=[l._events[$],k]:l._events[$].push(k):(l._events[$]=k,l._eventsCount++),l}function U(l,g){--l._eventsCount==0?l._events=new N:delete l._events[g]}function m(){this._events=new N,this._eventsCount=0}Object.create&&(N.prototype=Object.create(null),new N().__proto__||(S=!1)),m.prototype.eventNames=function(){var l,g,y=[];if(this._eventsCount===0)return y;for(g in l=this._events)p.call(l,g)&&y.push(S?g.slice(1):g);return Object.getOwnPropertySymbols?y.concat(Object.getOwnPropertySymbols(l)):y},m.prototype.listeners=function(l){var g=S?S+l:l,y=this._events[g];if(!y)return[];if(y.fn)return[y.fn];for(var z=0,I=y.length,k=new Array(I);z<I;z++)k[z]=y[z].fn;return k},m.prototype.listenerCount=function(l){var g=S?S+l:l,y=this._events[g];return y?y.fn?1:y.length:0},m.prototype.emit=function(l,g,y,z,I,k){var $=S?S+l:l;if(!this._events[$])return!1;var A,L,i=this._events[$],s=arguments.length;if(i.fn){switch(i.once&&this.removeListener(l,i.fn,void 0,!0),s){case 1:return i.fn.call(i.context),!0;case 2:return i.fn.call(i.context,g),!0;case 3:return i.fn.call(i.context,g,y),!0;case 4:return i.fn.call(i.context,g,y,z),!0;case 5:return i.fn.call(i.context,g,y,z,I),!0;case 6:return i.fn.call(i.context,g,y,z,I,k),!0}for(L=1,A=new Array(s-1);L<s;L++)A[L-1]=arguments[L];i.fn.apply(i.context,A)}else{var h,x=i.length;for(L=0;L<x;L++)switch(i[L].once&&this.removeListener(l,i[L].fn,void 0,!0),s){case 1:i[L].fn.call(i[L].context);break;case 2:i[L].fn.call(i[L].context,g);break;case 3:i[L].fn.call(i[L].context,g,y);break;case 4:i[L].fn.call(i[L].context,g,y,z);break;default:if(!A)for(h=1,A=new Array(s-1);h<s;h++)A[h-1]=arguments[h];i[L].fn.apply(i[L].context,A)}}return!0},m.prototype.on=function(l,g,y){return E(this,l,g,y,!1)},m.prototype.once=function(l,g,y){return E(this,l,g,y,!0)},m.prototype.removeListener=function(l,g,y,z){var I=S?S+l:l;if(!this._events[I])return this;if(!g)return U(this,I),this;var k=this._events[I];if(k.fn)k.fn!==g||z&&!k.once||y&&k.context!==y||U(this,I);else{for(var $=0,A=[],L=k.length;$<L;$++)(k[$].fn!==g||z&&!k[$].once||y&&k[$].context!==y)&&A.push(k[$]);A.length?this._events[I]=A.length===1?A[0]:A:U(this,I)}return this},m.prototype.removeAllListeners=function(l){var g;return l?(g=S?S+l:l,this._events[g]&&U(this,g)):(this._events=new N,this._eventsCount=0),this},m.prototype.off=m.prototype.removeListener,m.prototype.addListener=m.prototype.on,m.prefixed=S,m.EventEmitter=m,R.exports=m},824:R=>{var p=1e3,S=60*p,N=60*S,w=24*N;function E(U,m,l,g){var y=m>=1.5*l;return Math.round(U/l)+" "+g+(y?"s":"")}R.exports=function(U,m){m=m||{};var l,g,y=typeof U;if(y==="string"&&U.length>0)return function(z){if(!((z=String(z)).length>100)){var I=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(z);if(I){var k=parseFloat(I[1]);switch((I[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*k;case"weeks":case"week":case"w":return 6048e5*k;case"days":case"day":case"d":return k*w;case"hours":case"hour":case"hrs":case"hr":case"h":return k*N;case"minutes":case"minute":case"mins":case"min":case"m":return k*S;case"seconds":case"second":case"secs":case"sec":case"s":return k*p;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return k;default:return}}}}(U);if(y==="number"&&isFinite(U))return m.long?(l=U,(g=Math.abs(l))>=w?E(l,g,w,"day"):g>=N?E(l,g,N,"hour"):g>=S?E(l,g,S,"minute"):g>=p?E(l,g,p,"second"):l+" ms"):function(z){var I=Math.abs(z);return I>=w?Math.round(z/w)+"d":I>=N?Math.round(z/N)+"h":I>=S?Math.round(z/S)+"m":I>=p?Math.round(z/p)+"s":z+"ms"}(U);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(U))}},520:(R,p,S)=>{var N=S(155),w=N.platform==="win32",E=S(539);function U(i,s){for(var h=[],x=0;x<i.length;x++){var H=i[x];H&&H!=="."&&(H===".."?h.length&&h[h.length-1]!==".."?h.pop():s&&h.push(".."):h.push(H))}return h}function m(i){for(var s=i.length-1,h=0;h<=s&&!i[h];h++);for(var x=s;x>=0&&!i[x];x--);return h===0&&x===s?i:h>x?[]:i.slice(h,x+1)}var l=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,g=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,y={};function z(i){var s=l.exec(i),h=(s[1]||"")+(s[2]||""),x=s[3]||"",H=g.exec(x);return[h,H[1],H[2],H[3]]}function I(i){var s=l.exec(i),h=s[1]||"",x=!!h&&h[1]!==":";return{device:h,isUnc:x,isAbsolute:x||!!s[2],tail:s[3]}}function k(i){return"\\\\"+i.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}y.resolve=function(){for(var i="",s="",h=!1,x=arguments.length-1;x>=-1;x--){var H;if(x>=0?H=arguments[x]:i?(H=N.env["="+i])&&H.substr(0,3).toLowerCase()===i.toLowerCase()+"\\"||(H=i+"\\"):H=N.cwd(),!E.isString(H))throw new TypeError("Arguments to path.resolve must be strings");if(H){var G=I(H),tt=G.device,it=G.isUnc,wt=G.isAbsolute,vt=G.tail;if((!tt||!i||tt.toLowerCase()===i.toLowerCase())&&(i||(i=tt),h||(s=vt+"\\"+s,h=wt),i&&h))break}}return it&&(i=k(i)),i+(h?"\\":"")+(s=U(s.split(/[\\\/]+/),!h).join("\\"))||"."},y.normalize=function(i){var s=I(i),h=s.device,x=s.isUnc,H=s.isAbsolute,G=s.tail,tt=/[\\\/]$/.test(G);return(G=U(G.split(/[\\\/]+/),!H).join("\\"))||H||(G="."),G&&tt&&(G+="\\"),x&&(h=k(h)),h+(H?"\\":"")+G},y.isAbsolute=function(i){return I(i).isAbsolute},y.join=function(){for(var i=[],s=0;s<arguments.length;s++){var h=arguments[s];if(!E.isString(h))throw new TypeError("Arguments to path.join must be strings");h&&i.push(h)}var x=i.join("\\");return/^[\\\/]{2}[^\\\/]/.test(i[0])||(x=x.replace(/^[\\\/]{2,}/,"\\")),y.normalize(x)},y.relative=function(i,s){i=y.resolve(i),s=y.resolve(s);for(var h=i.toLowerCase(),x=s.toLowerCase(),H=m(s.split("\\")),G=m(h.split("\\")),tt=m(x.split("\\")),it=Math.min(G.length,tt.length),wt=it,vt=0;vt<it;vt++)if(G[vt]!==tt[vt]){wt=vt;break}if(wt==0)return s;var st=[];for(vt=wt;vt<G.length;vt++)st.push("..");return(st=st.concat(H.slice(wt))).join("\\")},y._makeLong=function(i){if(!E.isString(i))return i;if(!i)return"";var s=y.resolve(i);return/^[a-zA-Z]\:\\/.test(s)?"\\\\?\\"+s:/^\\\\[^?.]/.test(s)?"\\\\?\\UNC\\"+s.substring(2):i},y.dirname=function(i){var s=z(i),h=s[0],x=s[1];return h||x?(x&&(x=x.substr(0,x.length-1)),h+x):"."},y.basename=function(i,s){var h=z(i)[2];return s&&h.substr(-1*s.length)===s&&(h=h.substr(0,h.length-s.length)),h},y.extname=function(i){return z(i)[3]},y.format=function(i){if(!E.isObject(i))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof i);var s=i.root||"";if(!E.isString(s))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof i.root);var h=i.dir,x=i.base||"";return h?h[h.length-1]===y.sep?h+x:h+y.sep+x:x},y.parse=function(i){if(!E.isString(i))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof i);var s=z(i);if(!s||s.length!==4)throw new TypeError("Invalid path '"+i+"'");return{root:s[0],dir:s[0]+s[1].slice(0,-1),base:s[2],ext:s[3],name:s[2].slice(0,s[2].length-s[3].length)}},y.sep="\\",y.delimiter=";";var $=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,A={};function L(i){return $.exec(i).slice(1)}A.resolve=function(){for(var i="",s=!1,h=arguments.length-1;h>=-1&&!s;h--){var x=h>=0?arguments[h]:N.cwd();if(!E.isString(x))throw new TypeError("Arguments to path.resolve must be strings");x&&(i=x+"/"+i,s=x[0]==="/")}return(s?"/":"")+(i=U(i.split("/"),!s).join("/"))||"."},A.normalize=function(i){var s=A.isAbsolute(i),h=i&&i[i.length-1]==="/";return(i=U(i.split("/"),!s).join("/"))||s||(i="."),i&&h&&(i+="/"),(s?"/":"")+i},A.isAbsolute=function(i){return i.charAt(0)==="/"},A.join=function(){for(var i="",s=0;s<arguments.length;s++){var h=arguments[s];if(!E.isString(h))throw new TypeError("Arguments to path.join must be strings");h&&(i+=i?"/"+h:h)}return A.normalize(i)},A.relative=function(i,s){i=A.resolve(i).substr(1),s=A.resolve(s).substr(1);for(var h=m(i.split("/")),x=m(s.split("/")),H=Math.min(h.length,x.length),G=H,tt=0;tt<H;tt++)if(h[tt]!==x[tt]){G=tt;break}var it=[];for(tt=G;tt<h.length;tt++)it.push("..");return(it=it.concat(x.slice(G))).join("/")},A._makeLong=function(i){return i},A.dirname=function(i){var s=L(i),h=s[0],x=s[1];return h||x?(x&&(x=x.substr(0,x.length-1)),h+x):"."},A.basename=function(i,s){var h=L(i)[2];return s&&h.substr(-1*s.length)===s&&(h=h.substr(0,h.length-s.length)),h},A.extname=function(i){return L(i)[3]},A.format=function(i){if(!E.isObject(i))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof i);var s=i.root||"";if(!E.isString(s))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof i.root);return(i.dir?i.dir+A.sep:"")+(i.base||"")},A.parse=function(i){if(!E.isString(i))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof i);var s=L(i);if(!s||s.length!==4)throw new TypeError("Invalid path '"+i+"'");return s[1]=s[1]||"",s[2]=s[2]||"",s[3]=s[3]||"",{root:s[0],dir:s[0]+s[1].slice(0,-1),base:s[2],ext:s[3],name:s[2].slice(0,s[2].length-s[3].length)}},A.sep="/",A.delimiter=":",R.exports=w?y:A,R.exports.posix=A,R.exports.win32=y},155:R=>{var p,S,N=R.exports={};function w(){throw new Error("setTimeout has not been defined")}function E(){throw new Error("clearTimeout has not been defined")}function U(A){if(p===setTimeout)return setTimeout(A,0);if((p===w||!p)&&setTimeout)return p=setTimeout,setTimeout(A,0);try{return p(A,0)}catch{try{return p.call(null,A,0)}catch{return p.call(this,A,0)}}}(function(){try{p=typeof setTimeout=="function"?setTimeout:w}catch{p=w}try{S=typeof clearTimeout=="function"?clearTimeout:E}catch{S=E}})();var m,l=[],g=!1,y=-1;function z(){g&&m&&(g=!1,m.length?l=m.concat(l):y=-1,l.length&&I())}function I(){if(!g){var A=U(z);g=!0;for(var L=l.length;L;){for(m=l,l=[];++y<L;)m&&m[y].run();y=-1,L=l.length}m=null,g=!1,function(i){if(S===clearTimeout)return clearTimeout(i);if((S===E||!S)&&clearTimeout)return S=clearTimeout,clearTimeout(i);try{S(i)}catch{try{return S.call(null,i)}catch{return S.call(this,i)}}}(A)}}function k(A,L){this.fun=A,this.array=L}function $(){}N.nextTick=function(A){var L=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)L[i-1]=arguments[i];l.push(new k(A,L)),l.length!==1||g||U(I)},k.prototype.run=function(){this.fun.apply(null,this.array)},N.title="browser",N.browser=!0,N.env={},N.argv=[],N.version="",N.versions={},N.on=$,N.addListener=$,N.once=$,N.off=$,N.removeListener=$,N.removeAllListeners=$,N.emit=$,N.prependListener=$,N.prependOnceListener=$,N.listeners=function(A){return[]},N.binding=function(A){throw new Error("process.binding is not supported")},N.cwd=function(){return"/"},N.chdir=function(A){throw new Error("process.chdir is not supported")},N.umask=function(){return 0}},496:R=>{typeof Object.create=="function"?R.exports=function(p,S){p.super_=S,p.prototype=Object.create(S.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}})}:R.exports=function(p,S){p.super_=S;var N=function(){};N.prototype=S.prototype,p.prototype=new N,p.prototype.constructor=p}},384:R=>{R.exports=function(p){return p&&typeof p=="object"&&typeof p.copy=="function"&&typeof p.fill=="function"&&typeof p.readUInt8=="function"}},539:(R,p,S)=>{var N=S(155),w=/%[sdj%]/g;p.format=function(c){if(!i(c)){for(var u=[],F=0;F<arguments.length;F++)u.push(m(arguments[F]));return u.join(" ")}F=1;for(var V=arguments,gt=V.length,ut=String(c).replace(w,function(at){if(at==="%%")return"%";if(F>=gt)return at;switch(at){case"%s":return String(V[F++]);case"%d":return Number(V[F++]);case"%j":try{return JSON.stringify(V[F++])}catch{return"[Circular]"}default:return at}}),B=V[F];F<gt;B=V[++F])A(B)||!x(B)?ut+=" "+B:ut+=" "+m(B);return ut},p.deprecate=function(c,u){if(s(S.g.process))return function(){return p.deprecate(c,u).apply(this,arguments)};if(N.noDeprecation===!0)return c;var F=!1;return function(){if(!F){if(N.throwDeprecation)throw new Error(u);N.traceDeprecation?console.trace(u):console.error(u),F=!0}return c.apply(this,arguments)}};var E,U={};function m(c,u){var F={seen:[],stylize:g};return arguments.length>=3&&(F.depth=arguments[2]),arguments.length>=4&&(F.colors=arguments[3]),$(u)?F.showHidden=u:u&&p._extend(F,u),s(F.showHidden)&&(F.showHidden=!1),s(F.depth)&&(F.depth=2),s(F.colors)&&(F.colors=!1),s(F.customInspect)&&(F.customInspect=!0),F.colors&&(F.stylize=l),y(F,c,F.depth)}function l(c,u){var F=m.styles[u];return F?"\x1B["+m.colors[F][0]+"m"+c+"\x1B["+m.colors[F][1]+"m":c}function g(c,u){return c}function y(c,u,F){if(c.customInspect&&u&&tt(u.inspect)&&u.inspect!==p.inspect&&(!u.constructor||u.constructor.prototype!==u)){var V=u.inspect(F,c);return i(V)||(V=y(c,V,F)),V}var gt=function(ct,Y){if(s(Y))return ct.stylize("undefined","undefined");if(i(Y)){var pt="'"+JSON.stringify(Y).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ct.stylize(pt,"string")}return L(Y)?ct.stylize(""+Y,"number"):$(Y)?ct.stylize(""+Y,"boolean"):A(Y)?ct.stylize("null","null"):void 0}(c,u);if(gt)return gt;var ut=Object.keys(u),B=function(ct){var Y={};return ct.forEach(function(pt,Et){Y[pt]=!0}),Y}(ut);if(c.showHidden&&(ut=Object.getOwnPropertyNames(u)),G(u)&&(ut.indexOf("message")>=0||ut.indexOf("description")>=0))return z(u);if(ut.length===0){if(tt(u)){var at=u.name?": "+u.name:"";return c.stylize("[Function"+at+"]","special")}if(h(u))return c.stylize(RegExp.prototype.toString.call(u),"regexp");if(H(u))return c.stylize(Date.prototype.toString.call(u),"date");if(G(u))return z(u)}var ht,dt="",Rt=!1,xt=["{","}"];return k(u)&&(Rt=!0,xt=["[","]"]),tt(u)&&(dt=" [Function"+(u.name?": "+u.name:"")+"]"),h(u)&&(dt=" "+RegExp.prototype.toString.call(u)),H(u)&&(dt=" "+Date.prototype.toUTCString.call(u)),G(u)&&(dt=" "+z(u)),ut.length!==0||Rt&&u.length!=0?F<0?h(u)?c.stylize(RegExp.prototype.toString.call(u),"regexp"):c.stylize("[Object]","special"):(c.seen.push(u),ht=Rt?function(ct,Y,pt,Et,Bt){for(var Pt=[],Dt=0,ue=Y.length;Dt<ue;++Dt)qt(Y,String(Dt))?Pt.push(I(ct,Y,pt,Et,String(Dt),!0)):Pt.push("");return Bt.forEach(function(te){te.match(/^\d+$/)||Pt.push(I(ct,Y,pt,Et,te,!0))}),Pt}(c,u,F,B,ut):ut.map(function(ct){return I(c,u,F,B,ct,Rt)}),c.seen.pop(),function(ct,Y,pt){return ct.reduce(function(Et,Bt){return Bt.indexOf(`
|
|
`),Et+Bt.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?pt[0]+(Y===""?"":Y+`
|
|
`)+" "+ct.join(`,
|
|
`)+" "+pt[1]:pt[0]+Y+" "+ct.join(", ")+" "+pt[1]}(ht,dt,xt)):xt[0]+dt+xt[1]}function z(c){return"["+Error.prototype.toString.call(c)+"]"}function I(c,u,F,V,gt,ut){var B,at,ht;if((ht=Object.getOwnPropertyDescriptor(u,gt)||{value:u[gt]}).get?at=ht.set?c.stylize("[Getter/Setter]","special"):c.stylize("[Getter]","special"):ht.set&&(at=c.stylize("[Setter]","special")),qt(V,gt)||(B="["+gt+"]"),at||(c.seen.indexOf(ht.value)<0?(at=A(F)?y(c,ht.value,null):y(c,ht.value,F-1)).indexOf(`
|
|
`)>-1&&(at=ut?at.split(`
|
|
`).map(function(dt){return" "+dt}).join(`
|
|
`).substr(2):`
|
|
`+at.split(`
|
|
`).map(function(dt){return" "+dt}).join(`
|
|
`)):at=c.stylize("[Circular]","special")),s(B)){if(ut&>.match(/^\d+$/))return at;(B=JSON.stringify(""+gt)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(B=B.substr(1,B.length-2),B=c.stylize(B,"name")):(B=B.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),B=c.stylize(B,"string"))}return B+": "+at}function k(c){return Array.isArray(c)}function $(c){return typeof c=="boolean"}function A(c){return c===null}function L(c){return typeof c=="number"}function i(c){return typeof c=="string"}function s(c){return c===void 0}function h(c){return x(c)&&it(c)==="[object RegExp]"}function x(c){return typeof c=="object"&&c!==null}function H(c){return x(c)&&it(c)==="[object Date]"}function G(c){return x(c)&&(it(c)==="[object Error]"||c instanceof Error)}function tt(c){return typeof c=="function"}function it(c){return Object.prototype.toString.call(c)}function wt(c){return c<10?"0"+c.toString(10):c.toString(10)}p.debuglog=function(c){if(s(E)&&(E=N.env.NODE_DEBUG||""),c=c.toUpperCase(),!U[c])if(new RegExp("\\b"+c+"\\b","i").test(E)){var u=N.pid;U[c]=function(){var F=p.format.apply(p,arguments);console.error("%s %d: %s",c,u,F)}}else U[c]=function(){};return U[c]},p.inspect=m,m.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},m.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},p.isArray=k,p.isBoolean=$,p.isNull=A,p.isNullOrUndefined=function(c){return c==null},p.isNumber=L,p.isString=i,p.isSymbol=function(c){return typeof c=="symbol"},p.isUndefined=s,p.isRegExp=h,p.isObject=x,p.isDate=H,p.isError=G,p.isFunction=tt,p.isPrimitive=function(c){return c===null||typeof c=="boolean"||typeof c=="number"||typeof c=="string"||typeof c=="symbol"||c===void 0},p.isBuffer=S(384);var vt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function st(){var c=new Date,u=[wt(c.getHours()),wt(c.getMinutes()),wt(c.getSeconds())].join(":");return[c.getDate(),vt[c.getMonth()],u].join(" ")}function qt(c,u){return Object.prototype.hasOwnProperty.call(c,u)}p.log=function(){console.log("%s - %s",st(),p.format.apply(p,arguments))},p.inherits=S(496),p._extend=function(c,u){if(!u||!x(u))return c;for(var F=Object.keys(u),V=F.length;V--;)c[F[V]]=u[F[V]];return c}}},Mt={};function q(R){var p=Mt[R];if(p!==void 0)return p.exports;var S=Mt[R]={exports:{}};return Qt[R].call(S.exports,S,S.exports,q),S.exports}q.n=R=>{var p=R&&R.__esModule?()=>R.default:()=>R;return q.d(p,{a:p}),p},q.d=(R,p)=>{for(var S in p)q.o(p,S)&&!q.o(R,S)&&Object.defineProperty(R,S,{enumerable:!0,get:p[S]})},q.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),q.o=(R,p)=>Object.prototype.hasOwnProperty.call(R,p),q.r=R=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(R,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(R,"__esModule",{value:!0})};var _t={};return(()=>{q.r(_t),q.d(_t,{LSPluginUser:()=>Z,setupPluginUserInstance:()=>rt});var R=q(520);q(856);const p=function(e,t){return e===t||e!=e&&t!=t},S=function(e,t){for(var n=e.length;n--;)if(p(e[n][0],t))return n;return-1};var N=Array.prototype.splice;function w(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}w.prototype.clear=function(){this.__data__=[],this.size=0},w.prototype.delete=function(e){var t=this.__data__,n=S(t,e);return!(n<0||(n==t.length-1?t.pop():N.call(t,n,1),--this.size,0))},w.prototype.get=function(e){var t=this.__data__,n=S(t,e);return n<0?void 0:t[n][1]},w.prototype.has=function(e){return S(this.__data__,e)>-1},w.prototype.set=function(e,t){var n=this.__data__,o=S(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};const E=w,U=typeof pn=="object"&&pn&&pn.Object===Object&&pn;var m=typeof self=="object"&&self&&self.Object===Object&&self;const l=U||m||Function("return this")(),g=l.Symbol;var y=Object.prototype,z=y.hasOwnProperty,I=y.toString,k=g?g.toStringTag:void 0,$=Object.prototype.toString,A=g?g.toStringTag:void 0;const L=function(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":A&&A in Object(e)?function(t){var n=z.call(t,k),o=t[k];try{t[k]=void 0;var a=!0}catch{}var f=I.call(t);return a&&(n?t[k]=o:delete t[k]),f}(e):function(t){return $.call(t)}(e)},i=function(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")},s=function(e){if(!i(e))return!1;var t=L(e);return t=="[object Function]"||t=="[object GeneratorFunction]"||t=="[object AsyncFunction]"||t=="[object Proxy]"},h=l["__core-js_shared__"];var x,H=(x=/[^.]+$/.exec(h&&h.keys&&h.keys.IE_PROTO||""))?"Symbol(src)_1."+x:"",G=Function.prototype.toString,tt=/^\[object .+?Constructor\]$/,it=Function.prototype,wt=Object.prototype,vt=it.toString,st=wt.hasOwnProperty,qt=RegExp("^"+vt.call(st).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const c=function(e){return!(!i(e)||(t=e,H&&H in t))&&(s(e)?qt:tt).test(function(n){if(n!=null){try{return G.call(n)}catch{}try{return n+""}catch{}}return""}(e));var t},u=function(e,t){var n=function(o,a){return o?.[a]}(e,t);return c(n)?n:void 0},F=u(l,"Map"),V=u(Object,"create");var gt=Object.prototype.hasOwnProperty,ut=Object.prototype.hasOwnProperty;function B(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}B.prototype.clear=function(){this.__data__=V?V(null):{},this.size=0},B.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},B.prototype.get=function(e){var t=this.__data__;if(V){var n=t[e];return n==="__lodash_hash_undefined__"?void 0:n}return gt.call(t,e)?t[e]:void 0},B.prototype.has=function(e){var t=this.__data__;return V?t[e]!==void 0:ut.call(t,e)},B.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=V&&t===void 0?"__lodash_hash_undefined__":t,this};const at=B,ht=function(e,t){var n,o,a=e.__data__;return((o=typeof(n=t))=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null)?a[typeof t=="string"?"string":"hash"]:a.map};function dt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}dt.prototype.clear=function(){this.size=0,this.__data__={hash:new at,map:new(F||E),string:new at}},dt.prototype.delete=function(e){var t=ht(this,e).delete(e);return this.size-=t?1:0,t},dt.prototype.get=function(e){return ht(this,e).get(e)},dt.prototype.has=function(e){return ht(this,e).has(e)},dt.prototype.set=function(e,t){var n=ht(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this};const Rt=dt;function xt(e){var t=this.__data__=new E(e);this.size=t.size}xt.prototype.clear=function(){this.__data__=new E,this.size=0},xt.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},xt.prototype.get=function(e){return this.__data__.get(e)},xt.prototype.has=function(e){return this.__data__.has(e)},xt.prototype.set=function(e,t){var n=this.__data__;if(n instanceof E){var o=n.__data__;if(!F||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Rt(o)}return n.set(e,t),this.size=n.size,this};const ct=xt,Y=function(){try{var e=u(Object,"defineProperty");return e({},"",{}),e}catch{}}(),pt=function(e,t,n){t=="__proto__"&&Y?Y(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Et=function(e,t,n){(n!==void 0&&!p(e[t],n)||n===void 0&&!(t in e))&&pt(e,t,n)},Bt=function(e,t,n){for(var o=-1,a=Object(e),f=n(e),d=f.length;d--;){var O=f[++o];if(t(a[O],O,a)===!1)break}return e};var Pt=ot&&!ot.nodeType&&ot,Dt=Pt&&!0&&Q&&!Q.nodeType&&Q,ue=Dt&&Dt.exports===Pt?l.Buffer:void 0,te=ue?ue.allocUnsafe:void 0;const ze=l.Uint8Array,fn=function(e,t){var n,o,a=t?(n=e.buffer,o=new n.constructor(n.byteLength),new ze(o).set(new ze(n)),o):e.buffer;return new e.constructor(a,e.byteOffset,e.length)};var $e=Object.create;const hn=function(){function e(){}return function(t){if(!i(t))return{};if($e)return $e(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),P=(b=Object.getPrototypeOf,T=Object,function(e){return b(T(e))});var b,T,W=Object.prototype;const et=function(e){var t=e&&e.constructor;return e===(typeof t=="function"&&t.prototype||W)},Ct=function(e){return e!=null&&typeof e=="object"},Wt=function(e){return Ct(e)&&L(e)=="[object Arguments]"};var Ut=Object.prototype,He=Ut.hasOwnProperty,be=Ut.propertyIsEnumerable;const pe=Wt(function(){return arguments}())?Wt:function(e){return Ct(e)&&He.call(e,"callee")&&!be.call(e,"callee")},_e=Array.isArray,qe=function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991},we=function(e){return e!=null&&qe(e.length)&&!s(e)};var Be=ot&&!ot.nodeType&&ot,ee=Be&&!0&&Q&&!Q.nodeType&&Q,We=ee&&ee.exports===Be?l.Buffer:void 0;const Ge=(We?We.isBuffer:void 0)||function(){return!1};var dn=Function.prototype,xe=Object.prototype,fe=dn.toString,It=xe.hasOwnProperty,Je=fe.call(Object),K={};K["[object Float32Array]"]=K["[object Float64Array]"]=K["[object Int8Array]"]=K["[object Int16Array]"]=K["[object Int32Array]"]=K["[object Uint8Array]"]=K["[object Uint8ClampedArray]"]=K["[object Uint16Array]"]=K["[object Uint32Array]"]=!0,K["[object Arguments]"]=K["[object Array]"]=K["[object ArrayBuffer]"]=K["[object Boolean]"]=K["[object DataView]"]=K["[object Date]"]=K["[object Error]"]=K["[object Function]"]=K["[object Map]"]=K["[object Number]"]=K["[object Object]"]=K["[object RegExp]"]=K["[object Set]"]=K["[object String]"]=K["[object WeakMap]"]=!1;var he=ot&&!ot.nodeType&&ot,ne=he&&!0&&Q&&!Q.nodeType&&Q,Ce=ne&&ne.exports===he&&U.process,Ze=function(){try{return ne&&ne.require&&ne.require("util").types||Ce&&Ce.binding&&Ce.binding("util")}catch{}}(),Ke=Ze&&Ze.isTypedArray;const Se=Ke?function(e){return function(t){return e(t)}}(Ke):function(e){return Ct(e)&&qe(e.length)&&!!K[L(e)]},St=function(e,t){if((t!=="constructor"||typeof e[t]!="function")&&t!="__proto__")return e[t]};var re=Object.prototype.hasOwnProperty;const zt=function(e,t,n){var o=e[t];re.call(e,t)&&p(o,n)&&(n!==void 0||t in e)||pt(e,t,n)};var Oe=/^(?:0|[1-9]\d*)$/;const de=function(e,t){var n=typeof e;return!!(t=t??9007199254740991)&&(n=="number"||n!="symbol"&&Oe.test(e))&&e>-1&&e%1==0&&e<t};var mn=Object.prototype.hasOwnProperty;const gn=function(e,t){var n=_e(e),o=!n&&pe(e),a=!n&&!o&&Ge(e),f=!n&&!o&&!a&&Se(e),d=n||o||a||f,O=d?function(M,D){for(var J=-1,X=Array(M);++J<M;)X[J]=D(J);return X}(e.length,String):[],j=O.length;for(var _ in e)!t&&!mn.call(e,_)||d&&(_=="length"||a&&(_=="offset"||_=="parent")||f&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||de(_,j))||O.push(_);return O};var yn=Object.prototype.hasOwnProperty;const Ve=function(e){if(!i(e))return function(a){var f=[];if(a!=null)for(var d in Object(a))f.push(d);return f}(e);var t=et(e),n=[];for(var o in e)(o!="constructor"||!t&&yn.call(e,o))&&n.push(o);return n},me=function(e){return we(e)?gn(e,!0):Ve(e)},ft=function(e){return function(t,n,o,a){var f=!o;o||(o={});for(var d=-1,O=n.length;++d<O;){var j=n[d],_=a?a(o[j],t[j],j,o,t):void 0;_===void 0&&(_=t[j]),f?pt(o,j,_):zt(o,j,_)}return o}(e,me(e))},Ye=function(e,t,n,o,a,f,d){var O,j=St(e,n),_=St(t,n),M=d.get(_);if(M)Et(e,n,M);else{var D=f?f(j,_,n+"",e,t,d):void 0,J=D===void 0;if(J){var X=_e(_),yt=!X&&Ge(_),Ht=!X&&!yt&&Se(_);D=_,X||yt||Ht?_e(j)?D=j:Ct(O=j)&&we(O)?D=function(nt,At){var Ot=-1,Ue=nt.length;for(At||(At=Array(Ue));++Ot<Ue;)At[Ot]=nt[Ot];return At}(j):yt?(J=!1,D=function(nt,At){if(At)return nt.slice();var Ot=nt.length,Ue=te?te(Ot):new nt.constructor(Ot);return nt.copy(Ue),Ue}(_,!0)):Ht?(J=!1,D=fn(_,!0)):D=[]:function(nt){if(!Ct(nt)||L(nt)!="[object Object]")return!1;var At=P(nt);if(At===null)return!0;var Ot=It.call(At,"constructor")&&At.constructor;return typeof Ot=="function"&&Ot instanceof Ot&&fe.call(Ot)==Je}(_)||pe(_)?(D=j,pe(j)?D=ft(j):i(j)&&!s(j)||(D=function(nt){return typeof nt.constructor!="function"||et(nt)?{}:hn(P(nt))}(_))):J=!1}J&&(d.set(_,D),a(D,_,o,f,d),d.delete(_)),Et(e,n,D)}},mt=function e(t,n,o,a,f){t!==n&&Bt(n,function(d,O){if(f||(f=new ct),i(d))Ye(t,n,O,o,e,a,f);else{var j=a?a(St(t,O),d,O+"",t,n,f):void 0;j===void 0&&(j=d),Et(t,O,j)}},me)},Ae=function(e){return e},lt=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var Gt=Math.max;const Ee=Y?function(e,t){return Y(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Ae;var Xe=Date.now;const ke=function(e){var t=0,n=0;return function(){var o=Xe(),a=16-(o-n);if(n=o,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Ee),Qe=function(e,t){return ke(function(n,o,a){return o=Gt(o===void 0?n.length-1:o,0),function(){for(var f=arguments,d=-1,O=Gt(f.length-o,0),j=Array(O);++d<O;)j[d]=f[o+d];d=-1;for(var _=Array(o+1);++d<o;)_[d]=f[d];return _[o]=a(j),lt(n,this,_)}}(e,t,Ae),e+"")},Jt=(kt=function(e,t,n){mt(e,t,n)},Qe(function(e,t){var n=-1,o=t.length,a=o>1?t[o-1]:void 0,f=o>2?t[2]:void 0;for(a=kt.length>3&&typeof a=="function"?(o--,a):void 0,f&&function(O,j,_){if(!i(_))return!1;var M=typeof j;return!!(M=="number"?we(_)&&de(j,_.length):M=="string"&&j in _)&&p(_[j],O)}(t[0],t[1],f)&&(a=o<3?void 0:a,o=1),e=Object(e);++n<o;){var d=t[n];d&&kt(e,d,n)}return e}));var kt,Zt=function(){return Zt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Zt.apply(this,arguments)};function Te(e){return e.toLowerCase()}var Kt=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],ge=/[^A-Z0-9]+/gi;function oe(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce(function(o,a){return o.replace(a,n)},e)}const je=navigator.platform.toLowerCase()==="win32"?R.win32:R.posix,Vt=function(e,t){return t===void 0&&(t={}),function(n,o){return o===void 0&&(o={}),function(a,f){f===void 0&&(f={});for(var d=f.splitRegexp,O=d===void 0?Kt:d,j=f.stripRegexp,_=j===void 0?ge:j,M=f.transform,D=M===void 0?Te:M,J=f.delimiter,X=J===void 0?" ":J,yt=oe(oe(a,O,"$1\0$2"),_,"\0"),Ht=0,nt=yt.length;yt.charAt(Ht)==="\0";)Ht++;for(;yt.charAt(nt-1)==="\0";)nt--;return yt.slice(Ht,nt).split("\0").map(D).join(X)}(n,Zt({delimiter:"."},o))}(e,Zt({delimiter:"_"},t))},ie=Jt;function Ft(e,t){let n,o,a=!1;const f=O=>j=>{e&&clearTimeout(e),O(j),a=!0},d=new Promise((O,j)=>{n=f(O),o=f(j),e&&(e=setTimeout(()=>o(new Error(`[deferred timeout] ${t}`)),e))});return{created:Date.now(),setTag:O=>t=O,resolve:n,reject:o,promise:d,get settled(){return a}}}const Yt=new Map;window.__injectedUIEffects=Yt;var tn=q(227),Ie=q.n(tn);const Nt="application/x-postmate-v1+json";let Fe=0;const en={handshake:1,"handshake-reply":1,call:1,emit:1,reply:1,request:1},se=(e,t)=>!(typeof t=="string"&&e.origin!==t||!e.data||typeof e.data=="object"&&!("postmate"in e.data)||e.data.type!==Nt||!en[e.data.postmate]);class Ne{parent;frame;child;events={};childOrigin;listener;constructor(t){this.parent=t.parent,this.frame=t.frame,this.child=t.child,this.childOrigin=t.childOrigin,this.listener=n=>{if(!se(n,this.childOrigin))return!1;const{data:o,name:a}=((n||{}).data||{}).value||{};n.data.postmate==="emit"&&a in this.events&&this.events[a].forEach(f=>{f.call(this,o)})},this.parent.addEventListener("message",this.listener,!1)}get(t){return new Promise(n=>{const o=++Fe,a=f=>{f.data.uid===o&&f.data.postmate==="reply"&&(this.parent.removeEventListener("message",a,!1),n(f.data.value))};this.parent.addEventListener("message",a,!1),this.child.postMessage({postmate:"request",type:Nt,property:t,uid:o},this.childOrigin)})}call(t,n){this.child.postMessage({postmate:"call",type:Nt,property:t,data:n},this.childOrigin)}on(t,n){this.events[t]||(this.events[t]=[]),this.events[t].push(n)}destroy(){window.removeEventListener("message",this.listener,!1),this.frame.parentNode.removeChild(this.frame)}}class Lt{model;parent;parentOrigin;child;constructor(t){this.model=t.model,this.parent=t.parent,this.parentOrigin=t.parentOrigin,this.child=t.child,this.child.addEventListener("message",n=>{if(!se(n,this.parentOrigin))return;const{property:o,uid:a,data:f}=n.data;n.data.postmate!=="call"?((d,O)=>{const j=typeof d[O]=="function"?d[O]():d[O];return Promise.resolve(j)})(this.model,o).then(d=>{n.source.postMessage({property:o,postmate:"reply",type:Nt,uid:a,value:d},n.origin)}):o in this.model&&typeof this.model[o]=="function"&&this.model[o](f)})}emit(t,n){this.parent.postMessage({postmate:"emit",type:Nt,value:{name:t,data:n}},this.parentOrigin)}}class ye{static debug=!1;container;parent;frame;child;childOrigin;url;model;static Model;constructor(t){this.container=t.container,this.url=t.url,this.parent=window,this.frame=document.createElement("iframe"),t.id&&(this.frame.id=t.id),t.name&&(this.frame.name=t.name),this.frame.classList.add.apply(this.frame.classList,t.classListArray||[]),this.container.appendChild(this.frame),this.child=this.frame.contentWindow,this.model=t.model||{}}sendHandshake(t){const n=(f=>{const d=document.createElement("a");d.href=f;const O=d.protocol.length>4?d.protocol:window.location.protocol,j=d.host.length?d.port==="80"||d.port==="443"?d.hostname:d.host:window.location.host;return d.origin||`${O}//${j}`})(t=t||this.url);let o,a=0;return new Promise((f,d)=>{const O=_=>!!se(_,n)&&(_.data.postmate==="handshake-reply"?(clearInterval(o),this.parent.removeEventListener("message",O,!1),this.childOrigin=_.origin,f(new Ne(this))):d("Failed handshake"));this.parent.addEventListener("message",O,!1);const j=()=>{a++,this.child.postMessage({postmate:"handshake",type:Nt,model:this.model},n),a===5&&clearInterval(o)};this.frame.addEventListener("load",()=>{j(),o=setInterval(j,500)}),this.frame.src=t})}destroy(){this.frame.parentNode.removeChild(this.frame)}}class nn{child;model;parent;parentOrigin;constructor(t){this.child=window,this.model=t,this.parent=this.child.parent}sendHandshakeReply(){return new Promise((t,n)=>{const o=a=>{if(a.data.postmate){if(a.data.postmate==="handshake"){this.child.removeEventListener("message",o,!1),a.source.postMessage({postmate:"handshake-reply",type:Nt},a.origin),this.parentOrigin=a.origin;const f=a.data.model;return f&&Object.keys(f).forEach(d=>{this.model[d]=f[d]}),t(new Lt(this))}return n("Handshake Reply Failed")}};this.child.addEventListener("message",o,!1)})}}var rn=q(729),Le=q.n(rn);const{importHTML:Xt,createSandboxContainer:vn}=window.QSandbox||{};function on(e,t){return e.startsWith("http")?fetch(e,t):(e=e.replace("file://",""),new Promise(async(n,o)=>{try{const a=await window.apis.doAction(["readFile",e]);n({text:()=>a})}catch(a){console.error(a),o(a)}}))}class Me extends Le(){_pluginLocal;_frame;_root;_loaded=!1;_unmountFns=[];constructor(t){super(),this._pluginLocal=t,t._dispose(()=>{this._unmount()})}async load(){const{name:t,entry:n}=this._pluginLocal.options;if(this.loaded||!n)return;const{template:o,execScripts:a}=await Xt(n,{fetch:on});this._mount(o,document.body);const f=vn(t,{elementGetter:()=>this._root?.firstChild}).instance.proxy;f.__shadow_mode__=!0,f.LSPluginLocal=this._pluginLocal,f.LSPluginShadow=this,f.LSPluginUser=f.logseq=new Z(this._pluginLocal.toJSON(),this._pluginLocal.caller);const d=await a(f,!0);this._unmountFns.push(d.unmount),this._loaded=!0}_mount(t,n){const o=this._frame=document.createElement("div");o.classList.add("lsp-shadow-sandbox"),o.id=this._pluginLocal.id,this._root=o.attachShadow({mode:"open"}),this._root.innerHTML=`<div>${t}</div>`,n.appendChild(o),this.emit("mounted")}_unmount(){for(const t of this._unmountFns)t&&t.call(null)}destroy(){this.frame?.parentNode?.removeChild(this.frame)}get loaded(){return this._loaded}get document(){return this._root?.firstChild}get frame(){return this._frame}}const Tt=Ie()("LSPlugin:caller"),ae="#await#response#",sn="#lspmsg#error#",$t=e=>`#lspmsg#${e}`;class Re extends Le(){_pluginLocal;_connected=!1;_parent;_child;_shadow;_status;_userModel={};_call;_callUserModel;_debugTag="";constructor(t){super(),this._pluginLocal=t,t&&(this._debugTag=t.debugTag)}async connectToChild(){if(this._connected)return;const{shadow:t}=this._pluginLocal;t?await this._setupShadowSandbox():await this._setupIframeSandbox()}async connectToParent(t={}){if(this._connected)return;const n=this,o=this._pluginLocal!=null;let a=0;const f=new Map,d=Ft(6e4),O=this._extendUserModel({"#lspmsg#ready#":async _=>{O[$t(_?.pid)]=({type:M,payload:D})=>{Tt(`[host (_call) -> *user] ${this._debugTag}`,M,D),n.emit(M,D)},await d.resolve()},"#lspmsg#beforeunload#":async _=>{const M=Ft(1e4);n.emit("beforeunload",Object.assign({actor:M},_)),await M.promise},"#lspmsg#settings#":async({type:_,payload:M})=>{n.emit("settings:changed",M)},"#lspmsg#":async({ns:_,type:M,payload:D})=>{Tt(`[host (async) -> *user] ${this._debugTag} ns=${_} type=${M}`,D),_&&_.startsWith("hook")?n.emit(`${_}:${M}`,D):n.emit(M,D)},"#lspmsg#reply#":({_sync:_,result:M})=>{if(Tt(`[sync host -> *user] #${_}`,M),f.has(_)){const D=f.get(_);D&&(M?.hasOwnProperty(sn)?D.reject(M[sn]):D.resolve(M),f.delete(_))}},...t});if(o)return await d.promise,JSON.parse(JSON.stringify(this._pluginLocal?.toJSON()));const j=new nn(O).sendHandshakeReply();return this._status="pending",await j.then(_=>{this._child=_,this._connected=!0,this._call=async(M,D={},J)=>{if(J){const X=++a;f.set(X,J),D._sync=X,J.setTag(`async call #${X}`),Tt(`async call #${X}`)}return _.emit($t(O.baseInfo.id),{type:M,payload:D}),J?.promise},this._callUserModel=async(M,D)=>{try{O[M](D)}catch{Tt(`[model method] #${M} not existed`)}},setInterval(()=>{if(f.size>100)for(const[M,D]of f)D.settled&&f.delete(M)},18e5)}).finally(()=>{this._status=void 0}),await d.promise,O.baseInfo}async call(t,n={}){return this._call?.call(this,t,n)}async callAsync(t,n={}){const o=Ft(1e4);return this._call?.call(this,t,n,o)}async callUserModel(t,n={}){return this._callUserModel?.call(this,t,n)}async _setupIframeSandbox(){const t=this._pluginLocal,n=t.id,o=`${n}_lsp_main`,a=new URL(t.options.entry);a.searchParams.set("__v__",t.options.version);const f=document.querySelector(`#${o}`);f&&f.parentElement.removeChild(f);const d=document.createElement("div");d.classList.add("lsp-iframe-sandbox-container"),d.id=o,d.dataset.pid=n;try{const M=(await this._pluginLocal._loadLayoutsData())?.$$0;if(M){d.dataset.inited_layout="true";const{width:D,height:J,left:X,top:yt}=M;Object.assign(d.style,{width:D+"px",height:J+"px",left:X+"px",top:yt+"px"})}}catch(M){console.error("[Restore Layout Error]",M)}document.body.appendChild(d);const O=new ye({id:n+"_iframe",container:d,url:a.href,classListArray:["lsp-iframe-sandbox"],model:{baseInfo:JSON.parse(JSON.stringify(t.toJSON()))}});let j,_=O.sendHandshake();return this._status="pending",new Promise((M,D)=>{j=setTimeout(()=>{D(new Error("handshake Timeout")),O.destroy()},4e3),_.then(J=>{this._parent=J,this._connected=!0,this.emit("connected"),J.on($t(t.id),({type:X,payload:yt})=>{Tt("[user -> *host] ",X,yt),this._pluginLocal?.emit(X,yt||{})}),this._call=async(...X)=>{await J.call($t(t.id),{type:X[0],payload:Object.assign(X[1]||{},{$$pid:t.id})})},this._callUserModel=async(X,yt)=>{if(X.startsWith(ae))return await J.get(X.replace(ae,""));J.call(X,yt)},M(null)}).catch(J=>{D(J)}).finally(()=>{clearTimeout(j)})}).catch(M=>{throw Tt("[iframe sandbox] error",M),M}).finally(()=>{this._status=void 0})}async _setupShadowSandbox(){const t=this._pluginLocal,n=this._shadow=new Me(t);try{this._status="pending",await n.load(),this._connected=!0,this.emit("connected"),this._call=async(o,a={},f)=>(f&&(a.actor=f),this._pluginLocal?.emit(o,Object.assign(a,{$$pid:t.id})),f?.promise),this._callUserModel=async(...o)=>{let a=o[0];a?.startsWith(ae)&&(a=a.replace(ae,""));const f=o[1]||{},d=this._userModel[a];typeof d=="function"&&await d.call(null,f)}}catch(o){throw Tt("[shadow sandbox] error",o),o}finally{this._status=void 0}}_extendUserModel(t){return Object.assign(this._userModel,t)}_getSandboxIframeContainer(){return this._parent?.frame.parentNode}_getSandboxShadowContainer(){return this._shadow?.frame.parentNode}_getSandboxIframeRoot(){return this._parent?.frame}_getSandboxShadowRoot(){return this._shadow?.frame}set debugTag(t){this._debugTag=t}async destroy(){let t=null;this._parent&&(t=this._getSandboxIframeContainer(),await this._parent.destroy()),this._shadow&&(t=this._getSandboxShadowContainer(),this._shadow.destroy()),t?.parentNode.removeChild(t)}}class an{ctx;opts;constructor(t,n){this.ctx=t,this.opts=n}get ctxId(){return this.ctx.baseInfo.id}setItem(t,n){return this.ctx.caller.callAsync("api:call",{method:"write-plugin-storage-file",args:[this.ctxId,t,n,this.opts?.assets]})}getItem(t){return this.ctx.caller.callAsync("api:call",{method:"read-plugin-storage-file",args:[this.ctxId,t,this.opts?.assets]})}removeItem(t){return this.ctx.caller.call("api:call",{method:"unlink-plugin-storage-file",args:[this.ctxId,t,this.opts?.assets]})}allKeys(){return this.ctx.caller.callAsync("api:call",{method:"list-plugin-storage-files",args:[this.ctxId,this.opts?.assets]})}clear(){return this.ctx.caller.call("api:call",{method:"clear-plugin-storage-files",args:[this.ctxId,this.opts?.assets]})}hasItem(t){return this.ctx.caller.callAsync("api:call",{method:"exist-plugin-storage-file",args:[this.ctxId,t,this.opts?.assets]})}}class jt{ctx;constructor(t){this.ctx=t}get React(){return this.ensureHostScope().React}get ReactDOM(){return this.ensureHostScope().ReactDOM}get pluginLocal(){return this.ensureHostScope().LSPluginCore.ensurePlugin(this.ctx.baseInfo.id)}invokeExperMethod(t,...n){const o=this.ensureHostScope();return t=Vt(t)?.toLowerCase(),o.logseq.api["exper_"+t]?.apply(o,n)}async loadScripts(...t){(t=t.map(n=>n?.startsWith("http")?n:this.ctx.resolveResourceFullUrl(n))).unshift(this.ctx.baseInfo.id),await this.invokeExperMethod("loadScripts",...t)}registerFencedCodeRenderer(t,n){return this.ensureHostScope().logseq.api.exper_register_fenced_code_renderer(this.ctx.baseInfo.id,t,n)}registerExtensionsEnhancer(t,n){const o=this.ensureHostScope();return t==="katex"&&o.katex&&n(o.katex).catch(console.error),o.logseq.api.exper_register_extensions_enhancer(this.ctx.baseInfo.id,t,n)}ensureHostScope(){if(window===top)throw new Error("Can not access host scope!");return top}}const Pe=e=>`task_callback_${e}`;class cn{_client;_requestId;_requestOptions;_promise;_aborted=!1;constructor(t,n,o={}){this._client=t,this._requestId=n,this._requestOptions=o,this._promise=new Promise((O,j)=>{if(!this._requestId)return j(null);this._client.once(Pe(this._requestId),_=>{_&&_ instanceof Error?j(_):O(_)})});const{success:a,fail:f,final:d}=this._requestOptions;this._promise.then(O=>{a?.(O)}).catch(O=>{f?.(O)}).finally(()=>{d?.()})}abort(){this._requestOptions.abortable&&!this._aborted&&(this._client.ctx._execCallableAPI("http_request_abort",this._requestId),this._aborted=!0)}get promise(){return this._promise}get client(){return this._client}get requestId(){return this._requestId}}class ve extends rn.EventEmitter{_ctx;constructor(t){super(),this._ctx=t,this.ctx.caller.on("#lsp#request#callback",n=>{const o=n?.requestId;o&&this.emit(Pe(o),n?.payload)})}static createRequestTask(t,n,o){return new cn(t,n,o)}async _request(t){const n=this.ctx.baseInfo.id,{success:o,fail:a,final:f,...d}=t,O=this.ctx.Experiments.invokeExperMethod("request",n,d),j=ve.createRequestTask(this.ctx.Request,O,t);return d.abortable?j:j.promise}get ctx(){return this._ctx}}const bn=Symbol.for("proxy-continue"),ce=Ie()("LSPlugin:user");function bt(e,t,n){if(typeof n!="function")return!1;const{key:o,label:a,desc:f,palette:d,keybinding:O,extras:j}=t,_=`SimpleCommandHook${o}${++De}`;this.Editor["on"+_](n),this.caller?.call("api:call",{method:"register-plugin-simple-command",args:[this.baseInfo.id,[{key:o,label:a,type:e,desc:f,keybinding:O,extras:j},["editor/hook",_]],d]})}let le=null;const ln={async getInfo(e){return le||(le=await this._execCallableAPIAsync("get-app-info")),typeof e=="string"?le[e]:le},registerCommand:bt,registerCommandPalette(e,t){const{key:n,label:o,keybinding:a}=e;return bt.call(this,"$palette$",{key:n,label:o,palette:!0,keybinding:a},t)},registerCommandShortcut(e,t){const{binding:n}=e,o="$shortcut$",a=o+Vt(n);return bt.call(this,o,{key:a,palette:!1,keybinding:e},t)},registerUIItem(e,t){const n=this.baseInfo.id;this.caller?.call("api:call",{method:"register-plugin-ui-item",args:[n,e,t]})},registerPageMenuItem(e,t){if(typeof t!="function")return!1;const n=e+"_"+this.baseInfo.id,o=e;bt.call(this,"page-menu-item",{key:n,label:o},t)},setFullScreen(e){const t=(...n)=>this._callWin("setFullScreen",...n);e==="toggle"?this._callWin("isFullScreen").then(n=>{n?t():t(!0)}):e?t(!0):t()}};let De=0;const un={newBlockUUID(){return this._execCallableAPIAsync("new_block_uuid")},registerSlashCommand(e,t){ce("Register slash command #",this.baseInfo.id,e,t),typeof t=="function"&&(t=[["editor/clear-current-slash",!1],["editor/restore-saved-cursor"],["editor/hook",t]]),t=t.map(n=>{const[o,...a]=n;if(o==="editor/hook"){let f=a[0],d=()=>{this.caller?.callUserModel(f)};typeof f=="function"&&(d=f);const O=`SlashCommandHook${o}${++De}`;n[1]=O,this.Editor["on"+O](d)}return n}),this.caller?.call("api:call",{method:"register-plugin-slash-command",args:[this.baseInfo.id,[e,t]]})},registerBlockContextMenuItem(e,t){if(typeof t!="function")return!1;const n=e+"_"+this.baseInfo.id;bt.call(this,"block-context-menu-item",{key:n,label:e},t)},registerHighlightContextMenuItem(e,t,n){if(typeof t!="function")return!1;const o=e+"_"+this.baseInfo.id;bt.call(this,"highlight-context-menu-item",{key:o,label:e,extras:n},t)},scrollToBlockInPage(e,t,n){const o="block-content-"+t;n?.replaceState?this.App.replaceState("page",{name:e},{anchor:o}):this.App.pushState("page",{name:e},{anchor:o})}},_n={onBlockChanged(e,t){const n=this.baseInfo.id,o=`hook:db:${Vt(`block:${e}`)}`,a=({block:f,txData:d,txMeta:O})=>{f.uuid===e&&t(f,d,O)};return this.caller.on(o,a),this.App._installPluginHook(n,o),()=>{this.caller.off(o,a),this.App._uninstallPluginHook(n,o)}}},r={},C={},v={makeSandboxStorage(){return new an(this,{assets:!0})}};class Z extends Le(){_baseInfo;_caller;_version="0.0.10";_debugTag="";_settingsSchema;_connected=!1;_ui=new Map;_mFileStorage;_mRequest;_mExperiments;_beforeunloadCallback;constructor(t,n){super(),this._baseInfo=t,this._caller=n,n.on("sys:ui:visible",o=>{o?.toggle&&this.toggleMainUI()}),n.on("settings:changed",o=>{const a=Object.assign({},this.settings),f=Object.assign(this._baseInfo.settings,o);this.emit("settings:changed",{...f},a)}),n.on("beforeunload",async o=>{const{actor:a,...f}=o,d=this._beforeunloadCallback;try{d&&await d(f),a?.resolve(null)}catch(O){console.debug(`${n.debugTag} [beforeunload] `,O),a?.reject(O)}})}async ready(t,n){if(!this._connected)try{typeof t=="function"&&(n=t,t={});let o=await this._caller.connectToParent(t);this._connected=!0,o=ie(this._baseInfo,o),this._settingsSchema&&(o.settings=function(a,f){const d=(f||[]).reduce((O,j)=>("default"in j&&(O[j.key]=j.default),O),{});return Object.assign(d,a)}(o.settings,this._settingsSchema),await this.useSettingsSchema(this._settingsSchema)),o?.id&&(this._debugTag=this._caller.debugTag=`#${o.id} [${o.name}]`);try{await this._execCallableAPIAsync("setSDKMetadata",{version:this._version})}catch(a){console.warn(a)}n&&n.call(this,o)}catch(o){console.error(`${this._debugTag} [Ready Error]`,o)}}ensureConnected(){if(!this._connected)throw new Error("not connected")}beforeunload(t){typeof t=="function"&&(this._beforeunloadCallback=t)}provideModel(t){return this.caller._extendUserModel(t),this}provideTheme(t){return this.caller.call("provider:theme",t),this}provideStyle(t){return this.caller.call("provider:style",t),this}provideUI(t){return this.caller.call("provider:ui",t),this}useSettingsSchema(t){return this.connected&&this.caller.call("settings:schema",{schema:t,isSync:!0}),this._settingsSchema=t,this}updateSettings(t){this.caller.call("settings:update",t)}onSettingsChanged(t){const n="settings:changed";return this.on(n,t),()=>this.off(n,t)}showSettingsUI(){this.caller.call("settings:visible:changed",{visible:!0})}hideSettingsUI(){this.caller.call("settings:visible:changed",{visible:!1})}setMainUIAttrs(t){this.caller.call("main-ui:attrs",t)}setMainUIInlineStyle(t){this.caller.call("main-ui:style",t)}hideMainUI(t){const n={key:0,visible:!1,cursor:t?.restoreEditingCursor};this.caller.call("main-ui:visible",n),this.emit("ui:visible:changed",n),this._ui.set(n.key,n)}showMainUI(t){const n={key:0,visible:!0,autoFocus:t?.autoFocus};this.caller.call("main-ui:visible",n),this.emit("ui:visible:changed",n),this._ui.set(n.key,n)}toggleMainUI(){const t=this._ui.get(0);t&&t.visible?this.hideMainUI():this.showMainUI()}get version(){return this._version}get isMainUIVisible(){const t=this._ui.get(0);return Boolean(t&&t.visible)}get connected(){return this._connected}get baseInfo(){return this._baseInfo}get settings(){return this.baseInfo?.settings}get caller(){return this._caller}resolveResourceFullUrl(t){if(this.ensureConnected(),t)return t=t.replace(/^[.\\/]+/,""),function(n,...o){try{const a=new URL(n);if(!a.origin)throw new Error(null);const f=je.join(n.substr(a.origin.length),...o);return a.origin+f}catch{return je.join(n,...o)}}(this._baseInfo.lsr,t)}_makeUserProxy(t,n){const o=this,a=this.caller;return new Proxy(t,{get(f,d,O){const j=f[d];return function(..._){if(j){const D=j.apply(o,_.concat(n));if(D!==bn)return D}if(n){const D=d.toString().match(/^(once|off|on)/i);if(D!=null){const J=D[0].toLowerCase(),X=D.input.slice(J.length),yt=J==="off",Ht=o.baseInfo.id,nt=`hook:${n}:${Vt(X)}`,At=_[0];a[J](nt,At);const Ot=()=>{a.off(nt,At),a.listenerCount(nt)||o.App._uninstallPluginHook(Ht,nt)};return yt?void Ot():(o.App._installPluginHook(Ht,nt),Ot)}}let M=d;return["git","ui","assets"].includes(n)&&(M=n+"_"+M),a.callAsync("api:call",{tag:n,method:M,args:_})}}})}_execCallableAPIAsync(t,...n){return this._caller.callAsync("api:call",{method:t,args:n})}_execCallableAPI(t,...n){this._caller.call("api:call",{method:t,args:n})}_callWin(...t){return this._execCallableAPIAsync("_callMainWin",...t)}get App(){return this._makeUserProxy(ln,"app")}get Editor(){return this._makeUserProxy(un,"editor")}get DB(){return this._makeUserProxy(_n,"db")}get Git(){return this._makeUserProxy(r,"git")}get UI(){return this._makeUserProxy(C,"ui")}get Assets(){return this._makeUserProxy(v,"assets")}get FileStorage(){let t=this._mFileStorage;return t||(t=this._mFileStorage=new an(this)),t}get Request(){let t=this._mRequest;return t||(t=this._mRequest=new ve(this)),t}get Experiments(){let t=this._mExperiments;return t||(t=this._mExperiments=new jt(this)),t}}function rt(e,t){return new Z(e,t)}if(window.__LSP__HOST__==null){const e=new Re(null);window.logseq=rt({},e)}})(),_t})())})(Cn,Cn.exports);const xn={id:"_pengx17-logseq-bullet-threading",icon:"./logo.png"},On="logseq-bullet-threading",En=()=>JSON.parse(localStorage.getItem(On)??"null"),wn=En(),kn=Q=>{localStorage.setItem(On,JSON.stringify(Q))},Tn=async()=>(await fetch("https://api.github.com/repos/pengx17/logseq-dev-theme/releases?per_page=1").then(ot=>ot.json()))[0].name,jn=Q=>fetch(`https://cdn.jsdelivr.net/gh/pengx17/logseq-dev-theme@${Q}/bullet_threading.css`).then(ot=>ot.text());function Sn(){let Q=logseq.settings?.width??2;const ot=logseq.settings?.customColor&&logseq.settings?.color;(""+Q).endsWith("px")||(Q=Q+"px");const Qt=[["--ls-block-bullet-threading-width-overwrite",Q]];ot&&Qt.push(["--ls-block-bullet-threading-active-color-overwrite",ot]);const Mt=Qt.map(q=>q.join(": ")+";").join(`
|
|
`);logseq.provideStyle({key:xn.id+"-vars",style:`:root { ${Mt} }`})}async function In(){Sn(),logseq.onSettingsChanged(Sn),wn&&logseq.provideStyle({key:xn.id,style:wn.css});const Q=await Tn();if(Q!==wn?.version){console.log("logseq-bullet-threading: updating to latest version "+Q);const ot=await jn(Q);logseq.provideStyle({key:xn.id+"-styles",style:ot}),kn({css:ot,version:Q})}}logseq.useSettingsSchema([{key:"width",default:"2px",description:"Width of the bullet threading.",title:"Width of the bullet threading path",type:"enum",enumPicker:"radio",enumChoices:["1px","2px","3px"]},{key:"customColor",default:!1,description:"Overwrite threading path color?",title:"Whether or not to overwrite threading path color.",type:"boolean"},{key:"color",default:"",description:"Color of the bullet threading. You need to enable 'Overwrite threading path color?' first",title:"Color of the bullet threading path.",type:"string",inputAs:"color"}]).ready(In).catch(console.error);
|