107 lines
595 KiB
JavaScript
107 lines
595 KiB
JavaScript
/*
|
||
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
||
if you want to view the source, please visit the github repository of this plugin
|
||
*/
|
||
|
||
var Fy=Object.create;var Xs=Object.defineProperty,By=Object.defineProperties,jy=Object.getOwnPropertyDescriptor,Hy=Object.getOwnPropertyDescriptors,Uy=Object.getOwnPropertyNames,Uh=Object.getOwnPropertySymbols,Gy=Object.getPrototypeOf,Gh=Object.prototype.hasOwnProperty,qy=Object.prototype.propertyIsEnumerable;var Qc=(e,t,r)=>t in e?Xs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,J=(e,t)=>{for(var r in t||(t={}))Gh.call(t,r)&&Qc(e,r,t[r]);if(Uh)for(var r of Uh(t))qy.call(t,r)&&Qc(e,r,t[r]);return e},Fe=(e,t)=>By(e,Hy(t)),qh=e=>Xs(e,"__esModule",{value:!0});var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var U=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),zh=(e,t)=>{qh(e);for(var r in t)Xs(e,r,{get:t[r],enumerable:!0})},zy=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Uy(t))!Gh.call(e,n)&&n!=="default"&&Xs(e,n,{get:()=>t[n],enumerable:!(r=jy(t,n))||r.enumerable});return e},Xe=e=>zy(qh(Xs(e!=null?Fy(Gy(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var Vh=(e,t,r)=>(Qc(e,typeof t!="symbol"?t+"":t,r),r);function qe(){}function Vy(e,t){for(let r in t)e[r]=t[r];return e}function $c(e){return e()}function Kh(){return Object.create(null)}function lr(e){e.forEach($c)}function Li(e){return typeof e=="function"}function ot(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Xc(e,t){return Du||(Du=document.createElement("a")),Du.href=t,e===Du.href}function Wh(e){return Object.keys(e).length===0}function Yh(e,...t){if(e==null)return qe;let r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Su(e,t,r){e.$$.on_destroy.push(Yh(t,r))}function Mi(e,t,r,n){if(e){let i=Qh(e,t,r,n);return e[0](i)}}function Qh(e,t,r,n){return e[1]&&n?Vy(r.ctx.slice(),e[1](n(t))):r.ctx}function ki(e,t,r,n){if(e[2]&&n){let i=e[2](n(r));if(t.dirty===void 0)return i;if(typeof i=="object"){let s=[],a=Math.max(t.dirty.length,i.length);for(let u=0;u<a;u+=1)s[u]=t.dirty[u]|i[u];return s}return t.dirty|i}return t.dirty}function Fi(e,t,r,n,i,s){if(i){let a=Qh(t,r,n,s);e.p(a,i)}}function Bi(e){if(e.ctx.length>32){let t=[],r=e.ctx.length/32;for(let n=0;n<r;n++)t[n]=-1;return t}return-1}function $h(e){return e&&Li(e.destroy)?e.destroy:qe}function Ky(){Zh=!0}function Wy(){Zh=!1}function j(e,t){e.appendChild(t)}function ae(e,t,r){e.insertBefore(t,r||null)}function se(e){e.parentNode&&e.parentNode.removeChild(e)}function Ou(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function V(e){return document.createElement(e)}function dt(e){return document.createTextNode(e)}function ue(){return dt(" ")}function Zs(){return dt("")}function ht(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function Z(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function Yy(e){return Array.from(e.childNodes)}function xr(e,t){t=""+t,e.data!==t&&(e.data=t)}function Zc(e,t){e.value=t??""}function zt(e,t,r,n){r==null?e.style.removeProperty(t):e.style.setProperty(t,r,n?"important":"")}function Jc(e,t,r){e.classList[r?"add":"remove"](t)}function Qy(e,t,{bubbles:r=!1,cancelable:n=!1}={}){let i=document.createEvent("CustomEvent");return i.initCustomEvent(e,r,n,t),i}function ea(e){Js=e}function el(){if(!Js)throw new Error("Function called outside component initialization");return Js}function ta(e){el().$$.on_mount.push(e)}function ra(e){el().$$.on_destroy.push(e)}function tl(){let e=el();return(t,r,{cancelable:n=!1}={})=>{let i=e.$$.callbacks[t];if(i){let s=Qy(t,r,{cancelable:n});return i.slice().forEach(a=>{a.call(e,s)}),!s.defaultPrevented}return!0}}function Vt(e,t){let r=e.$$.callbacks[t.type];r&&r.slice().forEach(n=>n.call(this,t))}function t0(){rl||(rl=!0,e0.then(r0))}function mn(){return t0(),e0}function nl(e){Hi.push(e)}function r0(){if(Ui!==0)return;let e=Js;do{try{for(;Ui<ji.length;){let t=ji[Ui];Ui++,ea(t),$y(t.$$)}}catch(t){throw ji.length=0,Ui=0,t}for(ea(null),ji.length=0,Ui=0;Yr.length;)Yr.pop()();for(let t=0;t<Hi.length;t+=1){let r=Hi[t];il.has(r)||(il.add(r),r())}Hi.length=0}while(ji.length);for(;Jh.length;)Jh.pop()();rl=!1,il.clear(),ea(e)}function $y(e){if(e.fragment!==null){e.update(),lr(e.before_update);let t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(nl)}}function Xy(e){let t=[],r=[];Hi.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),Hi=t}function ei(){Jn={r:0,c:[],p:Jn}}function ti(){Jn.r||lr(Jn.c),Jn=Jn.p}function Ee(e,t){e&&e.i&&(Nu.delete(e),e.i(t))}function Oe(e,t,r,n){if(e&&e.o){if(Nu.has(e))return;Nu.add(e),Jn.c.push(()=>{Nu.delete(e),n&&(r&&e.d(1),n())}),e.o(t)}else n&&n()}function Lt(e){e&&e.c()}function Dt(e,t,r,n){let{fragment:i,after_update:s}=e.$$;i&&i.m(t,r),n||nl(()=>{let a=e.$$.on_mount.map($c).filter(Li);e.$$.on_destroy?e.$$.on_destroy.push(...a):lr(a),e.$$.on_mount=[]}),s.forEach(nl)}function Tt(e,t){let r=e.$$;r.fragment!==null&&(Xy(r.after_update),lr(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function Jy(e,t){e.$$.dirty[0]===-1&&(ji.push(e),t0(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function bt(e,t,r,n,i,s,a,u=[-1]){let o=Js;ea(e);let c=e.$$={fragment:null,ctx:[],props:s,update:qe,not_equal:i,bound:Kh(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(o?o.$$.context:[])),callbacks:Kh(),dirty:u,skip_bound:!1,root:t.target||o.$$.root};a&&a(c.root);let d=!1;if(c.ctx=r?r(e,t.props||{},(h,f,...p)=>{let A=p.length?p[0]:f;return c.ctx&&i(c.ctx[h],c.ctx[h]=A)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](A),d&&Jy(e,h)),f}):[],c.update(),d=!0,lr(c.before_update),c.fragment=n?n(c.ctx):!1,t.target){if(t.hydrate){Ky();let h=Yy(t.target);c.fragment&&c.fragment.l(h),h.forEach(se)}else c.fragment&&c.fragment.c();t.intro&&Ee(e.$$.fragment),Dt(e,t.target,t.anchor,t.customElement),Wy(),r0()}ea(o)}var Du,Xh,xu,Zh,Js,ji,Yr,Hi,Jh,e0,rl,il,Ui,Nu,Jn,Zy,UM,eI,pt,rr=x(()=>{Xh=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global,xu=class{constructor(t){this.options=t,this._listeners="WeakMap"in Xh?new WeakMap:void 0}observe(t,r){return this._listeners.set(t,r),this._getObserver().observe(t,this.options),()=>{this._listeners.delete(t),this._observer.unobserve(t)}}_getObserver(){var t;return(t=this._observer)!==null&&t!==void 0?t:this._observer=new ResizeObserver(r=>{var n;for(let i of r)xu.entries.set(i.target,i),(n=this._listeners.get(i.target))===null||n===void 0||n(i)})}};xu.entries="WeakMap"in Xh?new WeakMap:void 0;Zh=!1;ji=[],Yr=[],Hi=[],Jh=[],e0=Promise.resolve(),rl=!1;il=new Set,Ui=0;Nu=new Set;Zy=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],UM=new Set([...Zy]);typeof HTMLElement=="function"&&(eI=class extends HTMLElement{constructor(){super();this.attachShadow({mode:"open"})}connectedCallback(){let{on_mount:e}=this.$$;this.$$.on_disconnect=e.map($c).filter(Li);for(let t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){lr(this.$$.on_disconnect)}$destroy(){Tt(this,1),this.$destroy=qe}$on(e,t){if(!Li(t))return qe;let r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{let n=r.indexOf(t);n!==-1&&r.splice(n,1)}}$set(e){this.$$set&&!Wh(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});pt=class{$destroy(){Tt(this,1),this.$destroy=qe}$on(t,r){if(!Li(r))return qe;let n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{let i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!Wh(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}});var wu=x(()=>{rr()});var sl,n0=x(()=>{sl=class{constructor(){this.handlers=new Map;this.disabled=[]}on(t,r,n){if(t.includes("@")||r.includes("@"))throw new Error("Invalid context/event name - Cannot contain @");this.handlers.set(`${t}@${r}`,n)}off(t,r){if(r)this.handlers.delete(`${t}@${r}`);else for(let[n]of this.handlers.entries())n.startsWith(`${t}@`)&&this.handlers.delete(n)}disable(t){this.enable(t),this.disabled.push(t)}enable(t){this.disabled=this.disabled.filter(r=>r!==t)}emit(t,...r){let n=[...this.handlers.entries()].filter(([i,s])=>!this.disabled.includes(i.split("@")[0]));for(let[i,s]of n)i.endsWith(`@${t}`)&&s(...r)}}});function Ru(e,t=qe){let r,n=new Set;function i(u){if(ot(e,u)&&(e=u,r)){let o=!Gi.length;for(let c of n)c[1](),Gi.push(c,e);if(o){for(let c=0;c<Gi.length;c+=2)Gi[c][0](Gi[c+1]);Gi.length=0}}}function s(u){i(u(e))}function a(u,o=qe){let c=[u,o];return n.add(c),n.size===1&&(r=t(i)||qe),u(e),()=>{n.delete(c),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:a}}var Gi,al=x(()=>{rr();rr();Gi=[]});function ul(e){a0=e}function ol(){return a0}var i0,s0,na,ia,ce,Pu,nr,_e,gn,a0,tI,sa,u0,Or=x(()=>{n0();al();i0=/[\u4e00-\u9fa5]/,s0=100,na=300,ia="omnisearch-disabled",ce=new sl,Pu={ToggleExcerpts:"toggle-excerpts"},nr=(s=>(s[s.Done=0]="Done",s[s.LoadingCache=1]="LoadingCache",s[s.ReadingFiles=2]="ReadingFiles",s[s.IndexingFiles=3]="IndexingFiles",s[s.WritingCache=4]="WritingCache",s))(nr||{}),_e=(h=>(h.Enter="enter",h.OpenInBackground="open-in-background",h.CreateNote="create-note",h.OpenInNewPane="open-in-new-pane",h.InsertLink="insert-link",h.Tab="tab",h.ArrowUp="arrow-up",h.ArrowDown="arrow-down",h.PrevSearchHistory="prev-search-history",h.NextSearchHistory="next-search-history",h.OpenInNewLeaf="open-in-new-leaf",h))(_e||{}),gn=Ru(0),a0=!1;tI=/[|\t\n\r\^"= -#%-*,.`\/<>:;?@[-\]_{}\u00A0\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u1680\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2000-\u200A\u2010-\u2029\u202F-\u2043\u2045-\u2051\u2053-\u205F\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u3000-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/.toString().slice(1,-1),sa=new RegExp(`${tI}+`,"u"),u0=/[|\[\]\(\)<>\{\} \t\n\r]/u});function rI(e){let t,r,n,i,s,a,u,o,c=e[9].default,d=Mi(c,e,e[8],null);return{c(){t=V("div"),r=V("div"),n=V("input"),s=ue(),d&&d.c(),Z(n,"class","prompt-input"),Z(n,"placeholder",e[0]),Z(n,"spellcheck","false"),Z(n,"type","text"),Z(r,"class","omnisearch-input-field"),Z(t,"class","omnisearch-input-container")},m(h,f){ae(h,t,f),j(t,r),j(r,n),e[10](n),Zc(n,e[1]),j(t,s),d&&d.m(t,null),a=!0,u||(o=[ht(n,"input",e[11]),ht(n,"compositionend",e[12]),ht(n,"compositionstart",e[13]),ht(n,"input",e[4]),$h(i=e[3].call(null,n))],u=!0)},p(h,[f]){(!a||f&1)&&Z(n,"placeholder",h[0]),f&2&&n.value!==h[1]&&Zc(n,h[1]),d&&d.p&&(!a||f&256)&&Fi(d,c,h,h[8],a?ki(c,h[8],f,null):Bi(h[8]),null)},i(h){a||(Ee(d,h),a=!0)},o(h){Oe(d,h),a=!1},d(h){h&&se(t),e[10](null),d&&d.d(h),u=!1,lr(o)}}}function nI(e,t,r){let{$$slots:n={},$$scope:i}=t,{initialValue:s=""}=t,{placeholder:a=""}=t,{plugin:u}=t,o=!1,c="",d,h=tl();function f(T){r(1,c=T)}function p(T){T&&!o&&!c&&(o=!0,r(1,c=T),A())}function A(T){mn().then(()=>(d.focus(),mn())).then(()=>{d.select()})}let b=(0,o0.debounce)(()=>{u.cacheManager.addToSearchHistory(""),h("input",c)},300);function D(T){Yr[T?"unshift":"push"](()=>{d=T,r(2,d)})}function g(){c=this.value,r(1,c)}let v=T=>ul(!1),I=T=>ul(!0);return e.$$set=T=>{"initialValue"in T&&r(5,s=T.initialValue),"placeholder"in T&&r(0,a=T.placeholder),"plugin"in T&&r(6,u=T.plugin),"$$scope"in T&&r(8,i=T.$$scope)},e.$$.update=()=>{if(e.$$.dirty&32){e:p(s)}},[a,c,d,A,b,s,u,f,i,n,D,g,v,I]}var o0,c0,Lu,cl=x(()=>{rr();o0=Xe(require("obsidian"));Or();wu();c0=class extends pt{constructor(t){super();bt(this,t,nI,rI,ot,{initialValue:5,placeholder:0,plugin:6,setInputValue:7})}get setInputValue(){return this.$$.ctx[7]}},Lu=c0});function iI(e){let t,r,n,i,s=e[1].default,a=Mi(s,e,e[0],null);return{c(){t=V("div"),a&&a.c(),Z(t,"class","prompt-results")},m(u,o){ae(u,t,o),a&&a.m(t,null),r=!0,n||(i=ht(t,"mousedown",sI),n=!0)},p(u,[o]){a&&a.p&&(!r||o&1)&&Fi(a,s,u,u[0],r?ki(s,u[0],o,null):Bi(u[0]),null)},i(u){r||(Ee(a,u),r=!0)},o(u){Oe(a,u),r=!1},d(u){u&&se(t),a&&a.d(u),n=!1,i()}}}function aI(e,t,r){let{$$slots:n={},$$scope:i}=t;return e.$$set=s=>{"$$scope"in s&&r(0,i=s.$$scope)},[i,n]}var sI,l0,Mu,ll=x(()=>{rr();sI=e=>e.preventDefault();l0=class extends pt{constructor(t){super();bt(this,t,aI,iI,ot,{})}},Mu=l0});async function ku(e,t,r=0,n=!1,i=!1){let s=!1;e.workspace.iterateAllLeaves(o=>{o.view instanceof fl.MarkdownView&&!n&&o.getViewState().state?.file===t.path&&o.getViewState()?.pinned&&(e.workspace.setActiveLeaf(o,{focus:!0}),s=!0)}),s||await e.workspace.openLinkText(t.path,"",i?"split":n);let a=e.workspace.getActiveViewOfType(fl.MarkdownView);if(!a)return;let u=a.editor.offsetToPos(r);a.editor.setCursor(u),a.editor.scrollIntoView({from:{line:u.line-10,ch:0},to:{line:u.line+10,ch:0}})}async function f0(e,t,r=!1){try{let n;switch(e.vault.getConfig("newFileLocation")){case"current":n=(e.workspace.getActiveFile()?.parent?.path??"")+"/";break;case"folder":n=e.vault.getConfig("newFileFolderPath")+"/";break;default:n="";break}await e.workspace.openLinkText(`${n}${t}.md`,"",r)}catch(n){throw n.message="OmniSearch - Could not create note: "+n.message,console.error(n),n}}function d0(e,t,r){return(r.links??[]).map(n=>{let i=dl(n.link);return e.metadataCache.getFirstLinkpathDest(i,t.path)?"":n.link}).filter(n=>!!n)}function dl(e){return e.split(/[\^#]+/)[0]}var fl,aa=x(()=>{fl=Xe(require("obsidian"))});var h0=U((ua,hl)=>{(function(e,t){if(typeof ua=="object"&&typeof hl=="object")hl.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else{var r=t();for(var n in r)(typeof ua=="object"?ua:e)[n]=r[n]}})(typeof self!="undefined"?self:ua,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(n,i,s){r.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:s})},r.r=function(n){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,i){if(1&i&&(n=r(n)),8&i||4&i&&typeof n=="object"&&n&&n.__esModule)return n;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:n}),2&i&&typeof n!="string")for(var a in n)r.d(s,a,function(u){return n[u]}.bind(null,a));return s},r.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(i,"a",i),i},r.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";r.r(t),r.d(t,"md5",function(){return b});var n="0123456789abcdef".split(""),i=function(D){for(var g="",v=0;v<4;v++)g+=n[D>>8*v+4&15]+n[D>>8*v&15];return g},s=function(D){for(var g=D.length,v=0;v<g;v++)D[v]=i(D[v]);return D.join("")},a=function(D,g){return D+g&4294967295},u=function(D,g,v,I,T,E,C){return function(S,N,P){return a(S<<N|S>>>32-N,P)}(g=function(S,N,P,q){return N=a(a(N,S),a(P,q))}(D,g,I,E),T,v)},o=function(D,g,v,I,T,E,C,S){return u(v&I|~v&T,g,v,E,C,S,D)},c=function(D,g,v,I,T,E,C,S){return u(v&T|I&~T,g,v,E,C,S,D)},d=function(D,g,v,I,T,E,C,S){return u(v^I^T,g,v,E,C,S,D)},h=function(D,g,v,I,T,E,C,S){return u(I^(v|~T),g,v,E,C,S,D)},f=function(D,g,v){v===void 0&&(v=a);var I=D[0],T=D[1],E=D[2],C=D[3],S=o.bind(null,v);I=S(I,T,E,C,g[0],7,-680876936),C=S(C,I,T,E,g[1],12,-389564586),E=S(E,C,I,T,g[2],17,606105819),T=S(T,E,C,I,g[3],22,-1044525330),I=S(I,T,E,C,g[4],7,-176418897),C=S(C,I,T,E,g[5],12,1200080426),E=S(E,C,I,T,g[6],17,-1473231341),T=S(T,E,C,I,g[7],22,-45705983),I=S(I,T,E,C,g[8],7,1770035416),C=S(C,I,T,E,g[9],12,-1958414417),E=S(E,C,I,T,g[10],17,-42063),T=S(T,E,C,I,g[11],22,-1990404162),I=S(I,T,E,C,g[12],7,1804603682),C=S(C,I,T,E,g[13],12,-40341101),E=S(E,C,I,T,g[14],17,-1502002290),T=S(T,E,C,I,g[15],22,1236535329);var N=c.bind(null,v);I=N(I,T,E,C,g[1],5,-165796510),C=N(C,I,T,E,g[6],9,-1069501632),E=N(E,C,I,T,g[11],14,643717713),T=N(T,E,C,I,g[0],20,-373897302),I=N(I,T,E,C,g[5],5,-701558691),C=N(C,I,T,E,g[10],9,38016083),E=N(E,C,I,T,g[15],14,-660478335),T=N(T,E,C,I,g[4],20,-405537848),I=N(I,T,E,C,g[9],5,568446438),C=N(C,I,T,E,g[14],9,-1019803690),E=N(E,C,I,T,g[3],14,-187363961),T=N(T,E,C,I,g[8],20,1163531501),I=N(I,T,E,C,g[13],5,-1444681467),C=N(C,I,T,E,g[2],9,-51403784),E=N(E,C,I,T,g[7],14,1735328473),T=N(T,E,C,I,g[12],20,-1926607734);var P=d.bind(null,v);I=P(I,T,E,C,g[5],4,-378558),C=P(C,I,T,E,g[8],11,-2022574463),E=P(E,C,I,T,g[11],16,1839030562),T=P(T,E,C,I,g[14],23,-35309556),I=P(I,T,E,C,g[1],4,-1530992060),C=P(C,I,T,E,g[4],11,1272893353),E=P(E,C,I,T,g[7],16,-155497632),T=P(T,E,C,I,g[10],23,-1094730640),I=P(I,T,E,C,g[13],4,681279174),C=P(C,I,T,E,g[0],11,-358537222),E=P(E,C,I,T,g[3],16,-722521979),T=P(T,E,C,I,g[6],23,76029189),I=P(I,T,E,C,g[9],4,-640364487),C=P(C,I,T,E,g[12],11,-421815835),E=P(E,C,I,T,g[15],16,530742520),T=P(T,E,C,I,g[2],23,-995338651);var q=h.bind(null,v);I=q(I,T,E,C,g[0],6,-198630844),C=q(C,I,T,E,g[7],10,1126891415),E=q(E,C,I,T,g[14],15,-1416354905),T=q(T,E,C,I,g[5],21,-57434055),I=q(I,T,E,C,g[12],6,1700485571),C=q(C,I,T,E,g[3],10,-1894986606),E=q(E,C,I,T,g[10],15,-1051523),T=q(T,E,C,I,g[1],21,-2054922799),I=q(I,T,E,C,g[8],6,1873313359),C=q(C,I,T,E,g[15],10,-30611744),E=q(E,C,I,T,g[6],15,-1560198380),T=q(T,E,C,I,g[13],21,1309151649),I=q(I,T,E,C,g[4],6,-145523070),C=q(C,I,T,E,g[11],10,-1120210379),E=q(E,C,I,T,g[2],15,718787259),T=q(T,E,C,I,g[9],21,-343485551),D[0]=v(I,D[0]),D[1]=v(T,D[1]),D[2]=v(E,D[2]),D[3]=v(C,D[3])},p=function(D){for(var g=[],v=0;v<64;v+=4)g[v>>2]=D.charCodeAt(v)+(D.charCodeAt(v+1)<<8)+(D.charCodeAt(v+2)<<16)+(D.charCodeAt(v+3)<<24);return g},A=function(D,g){var v,I=D.length,T=[1732584193,-271733879,-1732584194,271733878];for(v=64;v<=I;v+=64)f(T,p(D.substring(v-64,v)),g);var E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],C=(D=D.substring(v-64)).length;for(v=0;v<C;v++)E[v>>2]|=D.charCodeAt(v)<<(v%4<<3);if(E[v>>2]|=128<<(v%4<<3),v>55)for(f(T,E,g),v=16;v--;)E[v]=0;return E[14]=8*I,f(T,E,g),T};function b(D){var g;return s(A("hello"))!=="5d41402abc4b2a76b9719d911017c592"&&(g=function(v,I){var T=(65535&v)+(65535&I);return(v>>16)+(I>>16)+(T>>16)<<16|65535&T}),s(A(D,g))}}])})});function p0(e){let t=e.split("/");return t.pop(),t.join("/")}function Fu(e,t){return e.headings?.filter(r=>r.level===t).map(r=>r.heading)??[]}function Bu(e,t){return(e+t)%t}function m0(e){return e.replace(/(\*|_)+(.+?)(\*|_)+/g,(t,r,n)=>n)}function g0(e){return e?.frontmatter?(0,qi.parseFrontMatterAliases)(e.frontmatter)??[]:[]}function _0(e){let t=e?(0,qi.getAllTags)(e)??[]:[];return t=[...new Set(t.reduce((r,n)=>[...r,...n.split("/").filter(i=>i).map(i=>i.startsWith("#")?i:`#${i}`),n],[]))],t}function Qr(e,t=!1){if(e==null)return"";let n=["\\u30FC","\\u309A","\\u3099"].join("|"),i=new RegExp(`(?!${n})\\p{Diacritic}`,"gu");if(t){e=e.replace(/([^\u0621-\u063A\u0641-\u064A\u0660-\u0669a-zA-Z 0-9])/g,"").replace(/(آ|إ|أ)/g,"\u0627").replace(/(ة)/g,"\u0647").replace(/(ئ|ؤ)/g,"\u0621").replace(/(ى)/g,"\u064A");for(let s=0;s<10;s++)e.replace(String.fromCharCode(1632+s),String.fromCharCode(48+s))}return e=e.replaceAll("`","[__omnisearch__backtick__]"),e=e.replaceAll("^","[__omnisearch__caret__]"),e=e.normalize("NFD").replace(i,"").normalize("NFC"),e=e.replaceAll("[__omnisearch__backtick__]","`"),e=e.replaceAll("[__omnisearch__caret__]","^"),e}function _n(){return qi.Platform.isMacOS?"\u2318":"ctrl"}function Tn(e){let t=En(e);return t==="png"||t==="jpg"||t==="jpeg"||t==="webp"}function bn(e){return En(e)==="pdf"}function T0(e){let t=En(e);return t==="docx"||t==="xlsx"}function ri(e){return e.endsWith(".canvas")}function b0(e){return e.endsWith(".excalidraw")}function oa(e){return e.endsWith(".loom")}function En(e){let t=e.split(".");return t[t.length-1]??""}function E0(e,t){let r=[],n=0,i=e.length;for(;n<i;)r.push(e.slice(n,n+=t));return r}function pl(e){return/[a-z][A-Z]/.test(e)?e.replace(/([a-z](?=[A-Z]))/g,"$1 ").split(" ").filter(r=>r):[]}function ml(e){return e.includes("-")?e.split("-").filter(t=>t):[]}function ve(...e){I0(console.log,...e)}function A0(...e){I0(console.warn,...e)}function gl(e){y0=e}function I0(e,...t){if(y0){let r=new Date,n=`${r.getMinutes()}:${r.getSeconds()}:${r.getMilliseconds()}`;e("Omnisearch -",n+" -",...t)}}var qi,uI,oI,y0,ir=x(()=>{qi=Xe(require("obsidian"));Or();uI=Xe(require("crypto")),oI=Xe(h0());y0=!1});var cI,ju,_l=x(()=>{cI=typeof global=="object"&&global&&global.Object===Object&&global,ju=cI});var lI,fI,Ze,fr=x(()=>{_l();lI=typeof self=="object"&&self&&self.Object===Object&&self,fI=ju||lI||Function("return this")(),Ze=fI});var dI,St,zi=x(()=>{fr();dI=Ze.Symbol,St=dI});function mI(e){var t=hI.call(e,ca),r=e[ca];try{e[ca]=void 0;var n=!0}catch{}var i=pI.call(e);return n&&(t?e[ca]=r:delete e[ca]),i}var v0,hI,pI,ca,C0,D0=x(()=>{zi();v0=Object.prototype,hI=v0.hasOwnProperty,pI=v0.toString,ca=St?St.toStringTag:void 0;C0=mI});function TI(e){return _I.call(e)}var gI,_I,S0,x0=x(()=>{gI=Object.prototype,_I=gI.toString;S0=TI});function AI(e){return e==null?e===void 0?EI:bI:O0&&O0 in Object(e)?C0(e):S0(e)}var bI,EI,O0,dr,Vi=x(()=>{zi();D0();x0();bI="[object Null]",EI="[object Undefined]",O0=St?St.toStringTag:void 0;dr=AI});function yI(e){return e!=null&&typeof e=="object"}var hr,Ki=x(()=>{hr=yI});function vI(e){return typeof e=="symbol"||hr(e)&&dr(e)==II}var II,pr,Wi=x(()=>{Vi();Ki();II="[object Symbol]";pr=vI});function CI(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Yi,Tl=x(()=>{Yi=CI});var DI,Qe,mr=x(()=>{DI=Array.isArray,Qe=DI});function R0(e){if(typeof e=="string")return e;if(Qe(e))return Yi(e,R0)+"";if(pr(e))return w0?w0.call(e):"";var t=e+"";return t=="0"&&1/e==-SI?"-0":t}var SI,N0,w0,P0,L0=x(()=>{zi();Tl();mr();Wi();SI=1/0,N0=St?St.prototype:void 0,w0=N0?N0.toString:void 0;P0=R0});function OI(e){for(var t=e.length;t--&&xI.test(e.charAt(t)););return t}var xI,M0,k0=x(()=>{xI=/\s/;M0=OI});function wI(e){return e&&e.slice(0,M0(e)+1).replace(NI,"")}var NI,F0,B0=x(()=>{k0();NI=/^\s+/;F0=wI});function RI(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Kt,ni=x(()=>{Kt=RI});function FI(e){if(typeof e=="number")return e;if(pr(e))return j0;if(Kt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Kt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=F0(e);var r=LI.test(e);return r||MI.test(e)?kI(e.slice(2),r?2:8):PI.test(e)?j0:+e}var j0,PI,LI,MI,kI,bl,H0=x(()=>{B0();ni();Wi();j0=0/0,PI=/^[-+]0x[0-9a-f]+$/i,LI=/^0b[01]+$/i,MI=/^0o[0-7]+$/i,kI=parseInt;bl=FI});function BI(e){return e}var An,la=x(()=>{An=BI});function qI(e){if(!Kt(e))return!1;var t=dr(e);return t==HI||t==UI||t==jI||t==GI}var jI,HI,UI,GI,Hu,El=x(()=>{Vi();ni();jI="[object AsyncFunction]",HI="[object Function]",UI="[object GeneratorFunction]",GI="[object Proxy]";Hu=qI});var zI,Uu,U0=x(()=>{fr();zI=Ze["__core-js_shared__"],Uu=zI});function VI(e){return!!G0&&G0 in e}var G0,q0,z0=x(()=>{U0();G0=function(){var e=/[^.]+$/.exec(Uu&&Uu.keys&&Uu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();q0=VI});function YI(e){if(e!=null){try{return WI.call(e)}catch{}try{return e+""}catch{}}return""}var KI,WI,$r,Al=x(()=>{KI=Function.prototype,WI=KI.toString;$r=YI});function rv(e){if(!Kt(e)||q0(e))return!1;var t=Hu(e)?tv:$I;return t.test($r(e))}var QI,$I,XI,ZI,JI,ev,tv,V0,K0=x(()=>{El();z0();ni();Al();QI=/[\\^$.*+?()[\]{}|]/g,$I=/^\[object .+?Constructor\]$/,XI=Function.prototype,ZI=Object.prototype,JI=XI.toString,ev=ZI.hasOwnProperty,tv=RegExp("^"+JI.call(ev).replace(QI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");V0=rv});function nv(e,t){return e==null?void 0:e[t]}var W0,Y0=x(()=>{W0=nv});function iv(e,t){var r=W0(e,t);return V0(r)?r:void 0}var Mt,yn=x(()=>{K0();Y0();Mt=iv});var sv,Gu,Q0=x(()=>{yn();fr();sv=Mt(Ze,"WeakMap"),Gu=sv});function av(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var $0,X0=x(()=>{$0=av});function lv(e){var t=0,r=0;return function(){var n=cv(),i=ov-(n-r);if(r=n,i>0){if(++t>=uv)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var uv,ov,cv,Z0,J0=x(()=>{uv=800,ov=16,cv=Date.now;Z0=lv});function fv(e){return function(){return e}}var ep,tp=x(()=>{ep=fv});var dv,yl,rp=x(()=>{yn();dv=function(){try{var e=Mt(Object,"defineProperty");return e({},"",{}),e}catch{}}(),yl=dv});var hv,np,ip=x(()=>{tp();rp();la();hv=yl?function(e,t){return yl(e,"toString",{configurable:!0,enumerable:!1,value:ep(t),writable:!0})}:An,np=hv});var pv,sp,ap=x(()=>{ip();J0();pv=Z0(np),sp=pv});function _v(e,t){var r=typeof e;return t=t??mv,!!t&&(r=="number"||r!="symbol"&&gv.test(e))&&e>-1&&e%1==0&&e<t}var mv,gv,Qi,qu=x(()=>{mv=9007199254740991,gv=/^(?:0|[1-9]\d*)$/;Qi=_v});function Tv(e,t){return e===t||e!==e&&t!==t}var $i,zu=x(()=>{$i=Tv});function bv(e,t,r){return t=up(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=up(n.length-t,0),a=Array(s);++i<s;)a[i]=n[t+i];i=-1;for(var u=Array(t+1);++i<t;)u[i]=n[i];return u[t]=r(a),$0(e,this,u)}}var up,op,cp=x(()=>{X0();up=Math.max;op=bv});function Ev(e,t){return sp(op(e,t,An),e+"")}var lp,fp=x(()=>{la();cp();ap();lp=Ev});function yv(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Av}var Av,Xi,Vu=x(()=>{Av=9007199254740991;Xi=yv});function Iv(e){return e!=null&&Xi(e.length)&&!Hu(e)}var In,fa=x(()=>{El();Vu();In=Iv});function vv(e,t,r){if(!Kt(r))return!1;var n=typeof t;return(n=="number"?In(r)&&Qi(t,r.length):n=="string"&&t in r)?$i(r[t],e):!1}var Il,dp=x(()=>{zu();fa();qu();ni();Il=vv});function Dv(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Cv;return e===r}var Cv,hp,pp=x(()=>{Cv=Object.prototype;hp=Dv});function Sv(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var mp,gp=x(()=>{mp=Sv});function Ov(e){return hr(e)&&dr(e)==xv}var xv,vl,_p=x(()=>{Vi();Ki();xv="[object Arguments]";vl=Ov});var Tp,Nv,wv,Rv,Zi,Ku=x(()=>{_p();Ki();Tp=Object.prototype,Nv=Tp.hasOwnProperty,wv=Tp.propertyIsEnumerable,Rv=vl(function(){return arguments}())?vl:function(e){return hr(e)&&Nv.call(e,"callee")&&!wv.call(e,"callee")},Zi=Rv});function Pv(){return!1}var bp,Ep=x(()=>{bp=Pv});var Ap,yp,Lv,Ip,Mv,kv,da,Cl=x(()=>{fr();Ep();Ap=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yp=Ap&&typeof module=="object"&&module&&!module.nodeType&&module,Lv=yp&&yp.exports===Ap,Ip=Lv?Ze.Buffer:void 0,Mv=Ip?Ip.isBuffer:void 0,kv=Mv||bp,da=kv});function uC(e){return hr(e)&&Xi(e.length)&&!!Be[dr(e)]}var Fv,Bv,jv,Hv,Uv,Gv,qv,zv,Vv,Kv,Wv,Yv,Qv,$v,Xv,Zv,Jv,eC,tC,rC,nC,iC,sC,aC,Be,vp,Cp=x(()=>{Vi();Vu();Ki();Fv="[object Arguments]",Bv="[object Array]",jv="[object Boolean]",Hv="[object Date]",Uv="[object Error]",Gv="[object Function]",qv="[object Map]",zv="[object Number]",Vv="[object Object]",Kv="[object RegExp]",Wv="[object Set]",Yv="[object String]",Qv="[object WeakMap]",$v="[object ArrayBuffer]",Xv="[object DataView]",Zv="[object Float32Array]",Jv="[object Float64Array]",eC="[object Int8Array]",tC="[object Int16Array]",rC="[object Int32Array]",nC="[object Uint8Array]",iC="[object Uint8ClampedArray]",sC="[object Uint16Array]",aC="[object Uint32Array]",Be={};Be[Zv]=Be[Jv]=Be[eC]=Be[tC]=Be[rC]=Be[nC]=Be[iC]=Be[sC]=Be[aC]=!0;Be[Fv]=Be[Bv]=Be[$v]=Be[jv]=Be[Xv]=Be[Hv]=Be[Uv]=Be[Gv]=Be[qv]=Be[zv]=Be[Vv]=Be[Kv]=Be[Wv]=Be[Yv]=Be[Qv]=!1;vp=uC});function oC(e){return function(t){return e(t)}}var Wu,Dl=x(()=>{Wu=oC});var Dp,ha,cC,Sl,lC,xl,Sp=x(()=>{_l();Dp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ha=Dp&&typeof module=="object"&&module&&!module.nodeType&&module,cC=ha&&ha.exports===Dp,Sl=cC&&ju.process,lC=function(){try{var e=ha&&ha.require&&ha.require("util").types;return e||Sl&&Sl.binding&&Sl.binding("util")}catch{}}(),xl=lC});var xp,fC,Yu,Ol=x(()=>{Cp();Dl();Sp();xp=xl&&xl.isTypedArray,fC=xp?Wu(xp):vp,Yu=fC});function pC(e,t){var r=Qe(e),n=!r&&Zi(e),i=!r&&!n&&da(e),s=!r&&!n&&!i&&Yu(e),a=r||n||i||s,u=a?mp(e.length,String):[],o=u.length;for(var c in e)(t||hC.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Qi(c,o)))&&u.push(c);return u}var dC,hC,Op,Np=x(()=>{gp();Ku();mr();Cl();qu();Ol();dC=Object.prototype,hC=dC.hasOwnProperty;Op=pC});function mC(e,t){return function(r){return e(t(r))}}var wp,Rp=x(()=>{wp=mC});var gC,Pp,Lp=x(()=>{Rp();gC=wp(Object.keys,Object),Pp=gC});function bC(e){if(!hp(e))return Pp(e);var t=[];for(var r in Object(e))TC.call(e,r)&&r!="constructor"&&t.push(r);return t}var _C,TC,Mp,kp=x(()=>{pp();Lp();_C=Object.prototype,TC=_C.hasOwnProperty;Mp=bC});function EC(e){return In(e)?Op(e):Mp(e)}var Ji,Qu=x(()=>{Np();kp();fa();Ji=EC});function IC(e,t){if(Qe(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||pr(e)?!0:yC.test(e)||!AC.test(e)||t!=null&&e in Object(t)}var AC,yC,es,$u=x(()=>{mr();Wi();AC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yC=/^\w*$/;es=IC});var vC,Xr,pa=x(()=>{yn();vC=Mt(Object,"create"),Xr=vC});function CC(){this.__data__=Xr?Xr(null):{},this.size=0}var Fp,Bp=x(()=>{pa();Fp=CC});function DC(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var jp,Hp=x(()=>{jp=DC});function NC(e){var t=this.__data__;if(Xr){var r=t[e];return r===SC?void 0:r}return OC.call(t,e)?t[e]:void 0}var SC,xC,OC,Up,Gp=x(()=>{pa();SC="__lodash_hash_undefined__",xC=Object.prototype,OC=xC.hasOwnProperty;Up=NC});function PC(e){var t=this.__data__;return Xr?t[e]!==void 0:RC.call(t,e)}var wC,RC,qp,zp=x(()=>{pa();wC=Object.prototype,RC=wC.hasOwnProperty;qp=PC});function MC(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Xr&&t===void 0?LC:t,this}var LC,Vp,Kp=x(()=>{pa();LC="__lodash_hash_undefined__";Vp=MC});function ts(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}var Nl,Wp=x(()=>{Bp();Hp();Gp();zp();Kp();ts.prototype.clear=Fp;ts.prototype.delete=jp;ts.prototype.get=Up;ts.prototype.has=qp;ts.prototype.set=Vp;Nl=ts});function kC(){this.__data__=[],this.size=0}var Yp,Qp=x(()=>{Yp=kC});function FC(e,t){for(var r=e.length;r--;)if($i(e[r][0],t))return r;return-1}var vn,ma=x(()=>{zu();vn=FC});function HC(e){var t=this.__data__,r=vn(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():jC.call(t,r,1),--this.size,!0}var BC,jC,$p,Xp=x(()=>{ma();BC=Array.prototype,jC=BC.splice;$p=HC});function UC(e){var t=this.__data__,r=vn(t,e);return r<0?void 0:t[r][1]}var Zp,Jp=x(()=>{ma();Zp=UC});function GC(e){return vn(this.__data__,e)>-1}var em,tm=x(()=>{ma();em=GC});function qC(e,t){var r=this.__data__,n=vn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var rm,nm=x(()=>{ma();rm=qC});function rs(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}var Cn,ga=x(()=>{Qp();Xp();Jp();tm();nm();rs.prototype.clear=Yp;rs.prototype.delete=$p;rs.prototype.get=Zp;rs.prototype.has=em;rs.prototype.set=rm;Cn=rs});var zC,Dn,Xu=x(()=>{yn();fr();zC=Mt(Ze,"Map"),Dn=zC});function VC(){this.size=0,this.__data__={hash:new Nl,map:new(Dn||Cn),string:new Nl}}var im,sm=x(()=>{Wp();ga();Xu();im=VC});function KC(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var am,um=x(()=>{am=KC});function WC(e,t){var r=e.__data__;return am(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Sn,_a=x(()=>{um();Sn=WC});function YC(e){var t=Sn(this,e).delete(e);return this.size-=t?1:0,t}var om,cm=x(()=>{_a();om=YC});function QC(e){return Sn(this,e).get(e)}var lm,fm=x(()=>{_a();lm=QC});function $C(e){return Sn(this,e).has(e)}var dm,hm=x(()=>{_a();dm=$C});function XC(e,t){var r=Sn(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var pm,mm=x(()=>{_a();pm=XC});function ns(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}var ii,Zu=x(()=>{sm();cm();fm();hm();mm();ns.prototype.clear=im;ns.prototype.delete=om;ns.prototype.get=lm;ns.prototype.has=dm;ns.prototype.set=pm;ii=ns});function wl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ZC);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var a=e.apply(this,n);return r.cache=s.set(i,a)||s,a};return r.cache=new(wl.Cache||ii),r}var ZC,gm,_m=x(()=>{Zu();ZC="Expected a function";wl.Cache=ii;gm=wl});function eD(e){var t=gm(e,function(n){return r.size===JC&&r.clear(),n}),r=t.cache;return t}var JC,Tm,bm=x(()=>{_m();JC=500;Tm=eD});var tD,rD,nD,Em,Am=x(()=>{bm();tD=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rD=/\\(\\)?/g,nD=Tm(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(tD,function(r,n,i,s){t.push(i?s.replace(rD,"$1"):n||r)}),t}),Em=nD});function iD(e){return e==null?"":P0(e)}var Ju,Rl=x(()=>{L0();Ju=iD});function sD(e,t){return Qe(e)?e:es(e,t)?[e]:Em(Ju(e))}var eo,Pl=x(()=>{mr();$u();Am();Rl();eo=sD});function uD(e){if(typeof e=="string"||pr(e))return e;var t=e+"";return t=="0"&&1/e==-aD?"-0":t}var aD,xn,Ta=x(()=>{Wi();aD=1/0;xn=uD});function oD(e,t){t=eo(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[xn(t[r++])];return r&&r==n?e:void 0}var is,to=x(()=>{Pl();Ta();is=oD});function cD(e,t,r){var n=e==null?void 0:is(e,t);return n===void 0?r:n}var ym,Im=x(()=>{to();ym=cD});function lD(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var ro,Ll=x(()=>{ro=lD});function fD(e){return Qe(e)||Zi(e)||!!(vm&&e&&e[vm])}var vm,Cm,Dm=x(()=>{zi();Ku();mr();vm=St?St.isConcatSpreadable:void 0;Cm=fD});function Sm(e,t,r,n,i){var s=-1,a=e.length;for(r||(r=Cm),i||(i=[]);++s<a;){var u=e[s];t>0&&r(u)?t>1?Sm(u,t-1,r,n,i):ro(i,u):n||(i[i.length]=u)}return i}var xm,Om=x(()=>{Ll();Dm();xm=Sm});function dD(){this.__data__=new Cn,this.size=0}var Nm,wm=x(()=>{ga();Nm=dD});function hD(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Rm,Pm=x(()=>{Rm=hD});function pD(e){return this.__data__.get(e)}var Lm,Mm=x(()=>{Lm=pD});function mD(e){return this.__data__.has(e)}var km,Fm=x(()=>{km=mD});function _D(e,t){var r=this.__data__;if(r instanceof Cn){var n=r.__data__;if(!Dn||n.length<gD-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ii(n)}return r.set(e,t),this.size=r.size,this}var gD,Bm,jm=x(()=>{ga();Xu();Zu();gD=200;Bm=_D});function ss(e){var t=this.__data__=new Cn(e);this.size=t.size}var as,Ml=x(()=>{ga();wm();Pm();Mm();Fm();jm();ss.prototype.clear=Nm;ss.prototype.delete=Rm;ss.prototype.get=Lm;ss.prototype.has=km;ss.prototype.set=Bm;as=ss});function TD(e,t){for(var r=-1,n=e==null?0:e.length,i=0,s=[];++r<n;){var a=e[r];t(a,r,e)&&(s[i++]=a)}return s}var Hm,Um=x(()=>{Hm=TD});function bD(){return[]}var Gm,qm=x(()=>{Gm=bD});var ED,AD,zm,yD,Vm,Km=x(()=>{Um();qm();ED=Object.prototype,AD=ED.propertyIsEnumerable,zm=Object.getOwnPropertySymbols,yD=zm?function(e){return e==null?[]:(e=Object(e),Hm(zm(e),function(t){return AD.call(e,t)}))}:Gm,Vm=yD});function ID(e,t,r){var n=t(e);return Qe(e)?n:ro(n,r(e))}var Wm,Ym=x(()=>{Ll();mr();Wm=ID});function vD(e){return Wm(e,Ji,Vm)}var kl,Qm=x(()=>{Ym();Km();Qu();kl=vD});var CD,no,$m=x(()=>{yn();fr();CD=Mt(Ze,"DataView"),no=CD});var DD,io,Xm=x(()=>{yn();fr();DD=Mt(Ze,"Promise"),io=DD});var SD,so,Zm=x(()=>{yn();fr();SD=Mt(Ze,"Set"),so=SD});var Jm,xD,eg,tg,rg,ng,OD,ND,wD,RD,PD,si,Fl,ig=x(()=>{$m();Xu();Xm();Zm();Q0();Vi();Al();Jm="[object Map]",xD="[object Object]",eg="[object Promise]",tg="[object Set]",rg="[object WeakMap]",ng="[object DataView]",OD=$r(no),ND=$r(Dn),wD=$r(io),RD=$r(so),PD=$r(Gu),si=dr;(no&&si(new no(new ArrayBuffer(1)))!=ng||Dn&&si(new Dn)!=Jm||io&&si(io.resolve())!=eg||so&&si(new so)!=tg||Gu&&si(new Gu)!=rg)&&(si=function(e){var t=dr(e),r=t==xD?e.constructor:void 0,n=r?$r(r):"";if(n)switch(n){case OD:return ng;case ND:return Jm;case wD:return eg;case RD:return tg;case PD:return rg}return t});Fl=si});var LD,Bl,sg=x(()=>{fr();LD=Ze.Uint8Array,Bl=LD});function kD(e){return this.__data__.set(e,MD),this}var MD,ag,ug=x(()=>{MD="__lodash_hash_undefined__";ag=kD});function FD(e){return this.__data__.has(e)}var og,cg=x(()=>{og=FD});function ao(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new ii;++t<r;)this.add(e[t])}var lg,fg=x(()=>{Zu();ug();cg();ao.prototype.add=ao.prototype.push=ag;ao.prototype.has=og;lg=ao});function BD(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var dg,hg=x(()=>{dg=BD});function jD(e,t){return e.has(t)}var pg,mg=x(()=>{pg=jD});function GD(e,t,r,n,i,s){var a=r&HD,u=e.length,o=t.length;if(u!=o&&!(a&&o>u))return!1;var c=s.get(e),d=s.get(t);if(c&&d)return c==t&&d==e;var h=-1,f=!0,p=r&UD?new lg:void 0;for(s.set(e,t),s.set(t,e);++h<u;){var A=e[h],b=t[h];if(n)var D=a?n(b,A,h,t,e,s):n(A,b,h,e,t,s);if(D!==void 0){if(D)continue;f=!1;break}if(p){if(!dg(t,function(g,v){if(!pg(p,v)&&(A===g||i(A,g,r,n,s)))return p.push(v)})){f=!1;break}}else if(!(A===b||i(A,b,r,n,s))){f=!1;break}}return s.delete(e),s.delete(t),f}var HD,UD,uo,jl=x(()=>{fg();hg();mg();HD=1,UD=2;uo=GD});function qD(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var gg,_g=x(()=>{gg=qD});function zD(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Tg,bg=x(()=>{Tg=zD});function iS(e,t,r,n,i,s,a){switch(r){case nS:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case rS:return!(e.byteLength!=t.byteLength||!s(new Bl(e),new Bl(t)));case WD:case YD:case XD:return $i(+e,+t);case QD:return e.name==t.name&&e.message==t.message;case ZD:case eS:return e==t+"";case $D:var u=gg;case JD:var o=n&VD;if(u||(u=Tg),e.size!=t.size&&!o)return!1;var c=a.get(e);if(c)return c==t;n|=KD,a.set(e,t);var d=uo(u(e),u(t),n,i,s,a);return a.delete(e),d;case tS:if(Hl)return Hl.call(e)==Hl.call(t)}return!1}var VD,KD,WD,YD,QD,$D,XD,ZD,JD,eS,tS,rS,nS,Eg,Hl,Ag,yg=x(()=>{zi();sg();zu();jl();_g();bg();VD=1,KD=2,WD="[object Boolean]",YD="[object Date]",QD="[object Error]",$D="[object Map]",XD="[object Number]",ZD="[object RegExp]",JD="[object Set]",eS="[object String]",tS="[object Symbol]",rS="[object ArrayBuffer]",nS="[object DataView]",Eg=St?St.prototype:void 0,Hl=Eg?Eg.valueOf:void 0;Ag=iS});function oS(e,t,r,n,i,s){var a=r&sS,u=kl(e),o=u.length,c=kl(t),d=c.length;if(o!=d&&!a)return!1;for(var h=o;h--;){var f=u[h];if(!(a?f in t:uS.call(t,f)))return!1}var p=s.get(e),A=s.get(t);if(p&&A)return p==t&&A==e;var b=!0;s.set(e,t),s.set(t,e);for(var D=a;++h<o;){f=u[h];var g=e[f],v=t[f];if(n)var I=a?n(v,g,f,t,e,s):n(g,v,f,e,t,s);if(!(I===void 0?g===v||i(g,v,r,n,s):I)){b=!1;break}D||(D=f=="constructor")}if(b&&!D){var T=e.constructor,E=t.constructor;T!=E&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof E=="function"&&E instanceof E)&&(b=!1)}return s.delete(e),s.delete(t),b}var sS,aS,uS,Ig,vg=x(()=>{Qm();sS=1,aS=Object.prototype,uS=aS.hasOwnProperty;Ig=oS});function fS(e,t,r,n,i,s){var a=Qe(e),u=Qe(t),o=a?Dg:Fl(e),c=u?Dg:Fl(t);o=o==Cg?oo:o,c=c==Cg?oo:c;var d=o==oo,h=c==oo,f=o==c;if(f&&da(e)){if(!da(t))return!1;a=!0,d=!1}if(f&&!d)return s||(s=new as),a||Yu(e)?uo(e,t,r,n,i,s):Ag(e,t,o,r,n,i,s);if(!(r&cS)){var p=d&&Sg.call(e,"__wrapped__"),A=h&&Sg.call(t,"__wrapped__");if(p||A){var b=p?e.value():e,D=A?t.value():t;return s||(s=new as),i(b,D,r,n,s)}}return f?(s||(s=new as),Ig(e,t,r,n,i,s)):!1}var cS,Cg,Dg,oo,lS,Sg,xg,Og=x(()=>{Ml();jl();yg();vg();ig();mr();Cl();Ol();cS=1,Cg="[object Arguments]",Dg="[object Array]",oo="[object Object]",lS=Object.prototype,Sg=lS.hasOwnProperty;xg=fS});function Ng(e,t,r,n,i){return e===t?!0:e==null||t==null||!hr(e)&&!hr(t)?e!==e&&t!==t:xg(e,t,r,n,Ng,i)}var co,Ul=x(()=>{Og();Ki();co=Ng});function pS(e,t,r,n){var i=r.length,s=i,a=!n;if(e==null)return!s;for(e=Object(e);i--;){var u=r[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<s;){u=r[i];var o=u[0],c=e[o],d=u[1];if(a&&u[2]){if(c===void 0&&!(o in e))return!1}else{var h=new as;if(n)var f=n(c,d,o,e,t,h);if(!(f===void 0?co(d,c,dS|hS,n,h):f))return!1}}return!0}var dS,hS,wg,Rg=x(()=>{Ml();Ul();dS=1,hS=2;wg=pS});function mS(e){return e===e&&!Kt(e)}var lo,Gl=x(()=>{ni();lo=mS});function gS(e){for(var t=Ji(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,lo(i)]}return t}var Pg,Lg=x(()=>{Gl();Qu();Pg=gS});function _S(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var fo,ql=x(()=>{fo=_S});function TS(e){var t=Pg(e);return t.length==1&&t[0][2]?fo(t[0][0],t[0][1]):function(r){return r===e||wg(r,e,t)}}var Mg,kg=x(()=>{Rg();Lg();ql();Mg=TS});function bS(e,t){return e!=null&&t in Object(e)}var Fg,Bg=x(()=>{Fg=bS});function ES(e,t,r){t=eo(t,e);for(var n=-1,i=t.length,s=!1;++n<i;){var a=xn(t[n]);if(!(s=e!=null&&r(e,a)))break;e=e[a]}return s||++n!=i?s:(i=e==null?0:e.length,!!i&&Xi(i)&&Qi(a,i)&&(Qe(e)||Zi(e)))}var jg,Hg=x(()=>{Pl();Ku();mr();qu();Vu();Ta();jg=ES});function AS(e,t){return e!=null&&jg(e,t,Fg)}var Ug,Gg=x(()=>{Bg();Hg();Ug=AS});function vS(e,t){return es(e)&&lo(t)?fo(xn(e),t):function(r){var n=ym(r,e);return n===void 0&&n===t?Ug(r,e):co(t,n,yS|IS)}}var yS,IS,qg,zg=x(()=>{Ul();Im();Gg();$u();Gl();ql();Ta();yS=1,IS=2;qg=vS});function CS(e){return function(t){return t==null?void 0:t[e]}}var Vg,Kg=x(()=>{Vg=CS});function DS(e){return function(t){return is(t,e)}}var Wg,Yg=x(()=>{to();Wg=DS});function SS(e){return es(e)?Vg(xn(e)):Wg(e)}var Qg,$g=x(()=>{Kg();Yg();$u();Ta();Qg=SS});function xS(e){return typeof e=="function"?e:e==null?An:typeof e=="object"?Qe(e)?qg(e[0],e[1]):Mg(e):Qg(e)}var Xg,Zg=x(()=>{kg();zg();la();mr();$g();Xg=xS});function OS(e){return function(t,r,n){for(var i=-1,s=Object(t),a=n(t),u=a.length;u--;){var o=a[e?u:++i];if(r(s[o],o,s)===!1)break}return t}}var Jg,e_=x(()=>{Jg=OS});var NS,t_,r_=x(()=>{e_();NS=Jg(),t_=NS});function wS(e,t){return e&&t_(e,t,Ji)}var n_,i_=x(()=>{r_();Qu();n_=wS});function RS(e,t){return function(r,n){if(r==null)return r;if(!In(r))return e(r,n);for(var i=r.length,s=t?i:-1,a=Object(r);(t?s--:++s<i)&&n(a[s],s,a)!==!1;);return r}}var s_,a_=x(()=>{fa();s_=RS});var PS,u_,o_=x(()=>{i_();a_();PS=s_(n_),u_=PS});var LS,ho,c_=x(()=>{fr();LS=function(){return Ze.Date.now()},ho=LS});function BS(e,t,r){var n,i,s,a,u,o,c=0,d=!1,h=!1,f=!0;if(typeof e!="function")throw new TypeError(MS);t=bl(t)||0,Kt(r)&&(d=!!r.leading,h="maxWait"in r,s=h?kS(bl(r.maxWait)||0,t):s,f="trailing"in r?!!r.trailing:f);function p(C){var S=n,N=i;return n=i=void 0,c=C,a=e.apply(N,S),a}function A(C){return c=C,u=setTimeout(g,t),d?p(C):a}function b(C){var S=C-o,N=C-c,P=t-S;return h?FS(P,s-N):P}function D(C){var S=C-o,N=C-c;return o===void 0||S>=t||S<0||h&&N>=s}function g(){var C=ho();if(D(C))return v(C);u=setTimeout(g,b(C))}function v(C){return u=void 0,f&&n?p(C):(n=i=void 0,a)}function I(){u!==void 0&&clearTimeout(u),c=0,n=o=i=u=void 0}function T(){return u===void 0?a:v(ho())}function E(){var C=ho(),S=D(C);if(n=arguments,i=this,o=C,S){if(u===void 0)return A(o);if(h)return clearTimeout(u),u=setTimeout(g,t),p(o)}return u===void 0&&(u=setTimeout(g,t)),a}return E.cancel=I,E.flush=T,E}var MS,kS,FS,ba,l_=x(()=>{ni();c_();H0();MS="Expected a function",kS=Math.max,FS=Math.min;ba=BS});function HS(e){return e=Ju(e),e&&jS.test(e)?e.replace(f_,"\\$&"):e}var f_,jS,On,d_=x(()=>{Rl();f_=/[\\^$.*+?()[\]{}|]/g,jS=RegExp(f_.source);On=HS});function US(e,t){var r=-1,n=In(e)?Array(e.length):[];return u_(e,function(i,s,a){n[++r]=t(i,s,a)}),n}var h_,p_=x(()=>{o_();fa();h_=US});function GS(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var m_,g_=x(()=>{m_=GS});function qS(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,s=pr(e),a=t!==void 0,u=t===null,o=t===t,c=pr(t);if(!u&&!c&&!s&&e>t||s&&a&&o&&!u&&!c||n&&a&&o||!r&&o||!i)return 1;if(!n&&!s&&!c&&e<t||c&&r&&i&&!n&&!s||u&&r&&i||!a&&i||!o)return-1}return 0}var __,T_=x(()=>{Wi();__=qS});function zS(e,t,r){for(var n=-1,i=e.criteria,s=t.criteria,a=i.length,u=r.length;++n<a;){var o=__(i[n],s[n]);if(o){if(n>=u)return o;var c=r[n];return o*(c=="desc"?-1:1)}}return e.index-t.index}var b_,E_=x(()=>{T_();b_=zS});function VS(e,t,r){t.length?t=Yi(t,function(s){return Qe(s)?function(a){return is(a,s.length===1?s[0]:s)}:s}):t=[An];var n=-1;t=Yi(t,Wu(Xg));var i=h_(e,function(s,a,u){var o=Yi(t,function(c){return c(s)});return{criteria:o,index:++n,value:s}});return m_(i,function(s,a){return b_(s,a,r)})}var A_,y_=x(()=>{Tl();to();Zg();p_();g_();Dl();E_();la();mr();A_=VS});var KS,zl,I_=x(()=>{Om();y_();fp();dp();KS=lp(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Il(e,t[0],t[1])?t=[]:r>2&&Il(t[0],t[1],t[2])&&(t=[t[0]]),A_(e,xm(t,1),[])}),zl=KS});var Ea=x(()=>{l_();d_();I_();});function mo(e){return{useCache:!0,hideExcluded:!1,downrankedFoldersFilters:[],ignoreDiacritics:!0,ignoreArabicDiacritics:!1,indexedFileTypes:[],displayTitle:"",PDFIndexing:!1,officeIndexing:!1,imagesIndexing:!1,aiImageIndexing:!1,unsupportedFilesIndexing:"default",splitCamelCase:!1,openInNewPane:!1,vimLikeNavigationShortcut:e.vault.getConfig("vimMode"),ribbonIcon:!0,showExcerpt:!0,renderLineReturnInExcerpts:!0,showCreateButton:!1,highlight:!0,showPreviousQueryResults:!0,simpleSearch:!1,tokenizeUrls:!1,fuzziness:"1",weightBasename:3,weightDirectory:2,weightH1:1.5,weightH2:1.3,weightH3:1.1,weightUnmarkedTags:1.1,weightCustomProperties:[],httpApiEnabled:!1,httpApiPort:"51361",httpApiNotice:!0,welcomeMessage:"",verboseLogging:!1,DANGER_httpHost:null,DANGER_forceSaveCache:!1}}function sr(e){let t=new DocumentFragment;return t.createSpan({},r=>{r.innerHTML=e}),t}async function v_(e){return z=Object.assign({},mo(e.app),await e.loadData()),ai.set(z.showExcerpt),gl(z.verboseLogging),z}async function pe(e){await e.saveData(z)}function Kl(e){return e.loadLocalStorage(ia)==="1"}function Nn(){return!ee.Platform.isIosApp&&z.useCache}var ee,ai,po,Vl,z,Wl=x(()=>{ee=Xe(require("obsidian"));al();Or();ir();Ea();ai=Ru(!1),po='<strong style="color: var(--text-accent)">Needs a restart to fully take effect.</strong>',Vl=class extends ee.PluginSettingTab{constructor(t){super(t.app,t);this.plugin=t,ai.subscribe(async r=>{z.showExcerpt=r,await pe(this.plugin)})}display(){let{containerEl:t}=this,r=this.plugin.database,n=this.plugin.getTextExtractor(),i=ba(async()=>{await r.clearCache()},1e3),s=this.plugin.getAIImageAnalyzer();if(t.empty(),this.app.loadLocalStorage(ia)=="1"){let f=t.createEl("span");f.innerHTML='<strong style="color: var(--text-accent)">\u26A0\uFE0F OMNISEARCH IS DISABLED \u26A0\uFE0F</strong>'}t.createEl("h1",{text:"Omnisearch"});let a=t.createDiv();a.innerHTML=`
|
||
<iframe sandbox="allow-top-navigation-by-user-activation" src="https://github.com/sponsors/scambier/button" title="Sponsor scambier" height="35" width="116" style="border: 0;"></iframe>
|
||
<a href='https://ko-fi.com/B0B6LQ2C' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://cdn.ko-fi.com/cdn/kofi2.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
|
||
`,new DocumentFragment().createSpan({},f=>{f.innerHTML='\u26A0\uFE0F <span style="color: var(--text-accent)">Changing indexing settings will clear the cache, and requires a restart of Obsidian.</span><br/><br/>',n?f.innerHTML+=`
|
||
\u{1F44D} You have installed <a href="https://github.com/scambier/obsidian-text-extractor">Text Extractor</a>, Omnisearch can use it to index PDFs and images contents.
|
||
<br />Text extraction only works on desktop, but the cache can be synchronized with your mobile device.`:f.innerHTML+='\u26A0\uFE0F Omnisearch requires <a href="https://github.com/scambier/obsidian-text-extractor">Text Extractor</a> to index PDFs and images.',s?f.innerHTML+='<br/>\u{1F44D} You have installed <a href="https://github.com/Swaggeroo/obsidian-ai-image-analyzer">AI Image Analyzer</a>, Omnisearch can use it to index images contents with ai.':f.innerHTML+='<br/>\u26A0\uFE0F Omnisearch requires <a href="https://github.com/Swaggeroo/obsidian-ai-image-analyzer">AI Image Analyzer</a> to index images with ai.'}),new ee.Setting(t).setName("Indexing").setHeading().setDesc(sr(`\u26A0\uFE0F <span style="color: var(--text-accent)">Changing indexing settings will clear the cache, and requires a restart of Obsidian.</span><br/><br/>
|
||
${n?`\u{1F44D} You have installed <a href="https://github.com/scambier/obsidian-text-extractor">Text Extractor</a>, Omnisearch can use it to index PDFs and images contents.
|
||
<br />Text extraction only works on desktop, but the cache can be synchronized with your mobile device.`:'\u26A0\uFE0F Omnisearch requires <a href="https://github.com/scambier/obsidian-text-extractor">Text Extractor</a> to index PDFs and images.'}`)),new ee.Setting(t).setName(`PDFs content indexing ${n?"":"\u26A0\uFE0F Disabled"}`).setDesc(sr("Omnisearch will use Text Extractor to index the content of your PDFs.")).addToggle(f=>f.setValue(z.PDFIndexing).onChange(async p=>{await r.clearCache(),z.PDFIndexing=p,await pe(this.plugin)})).setDisabled(!n),new ee.Setting(t).setName(`Images OCR indexing ${n?"":"\u26A0\uFE0F Disabled"}`).setDesc(sr("Omnisearch will use Text Extractor to OCR your images and index their content.")).addToggle(f=>f.setValue(z.imagesIndexing).onChange(async p=>{await r.clearCache(),z.imagesIndexing=p,await pe(this.plugin)})).setDisabled(!n);let o=new DocumentFragment;o.createSpan({},f=>{f.innerHTML='Omnisearch will use Text Extractor to index the content of your office documents (currently <pre style="display:inline">.docx</pre> and <pre style="display:inline">.xlsx</pre>).'}),new ee.Setting(t).setName(`Documents content indexing ${n?"":"\u26A0\uFE0F Disabled"}`).setDesc(o).addToggle(f=>f.setValue(z.officeIndexing).onChange(async p=>{await r.clearCache(),z.officeIndexing=p,await pe(this.plugin)})).setDisabled(!n);let c=new DocumentFragment;c.createSpan({},f=>{f.innerHTML="Omnisearch will use AI Image Analyzer to index the content of your images with ai."}),new ee.Setting(t).setName(`Images AI indexing ${s?"":"\u26A0\uFE0F Disabled"}`).setDesc(c).addToggle(f=>f.setValue(z.aiImageIndexing).onChange(async p=>{await r.clearCache(),z.aiImageIndexing=p,await pe(this.plugin)})).setDisabled(!s),new ee.Setting(t).setName("Index paths of unsupported files").setDesc(sr(`
|
||
Omnisearch can index file<strong>names</strong> of "unsupported" files, such as e.g. <pre style="display:inline">.mp4</pre>
|
||
or non-extracted PDFs & images.<br/>
|
||
"Obsidian setting" will respect the value of "Files & Links > Detect all file extensions".`)).addDropdown(f=>{f.addOptions({yes:"Yes",no:"No",default:"Obsidian setting"}).setValue(z.unsupportedFilesIndexing).onChange(async p=>{await i(),z.unsupportedFilesIndexing=p,await pe(this.plugin)})}),new ee.Setting(t).setName("Set frontmatter property key as title").setDesc(sr(`If you have a custom property in your notes that you want to use as the title in search results.<br>
|
||
Leave empty to disable.`)).addText(f=>{f.setValue(z.displayTitle).onChange(async p=>{await i(),z.displayTitle=p,await pe(this.plugin)})}),new ee.Setting(t).setName("Additional TEXT files to index").setDesc(sr(`In addition to standard <code>md</code> files, Omnisearch can also index other <strong style="color: var(--text-accent)">PLAINTEXT</strong> files.<br/>
|
||
Add extensions separated by a space, without the dot. Example: "<code>txt org csv</code>".<br />
|
||
\u26A0\uFE0F <span style="color: var(--text-accent)">Using extensions of non-plaintext files (like .pptx) WILL cause crashes,
|
||
because Omnisearch will try to index their content.</span>`)).addText(f=>{f.setValue(z.indexedFileTypes.join(" ")).setPlaceholder("Example: txt org csv").onChange(async p=>{await r.clearCache(),z.indexedFileTypes=p.split(" "),await pe(this.plugin)})}),new ee.Setting(t).setName("Behavior").setHeading(),new ee.Setting(t).setName("Save index to cache").setDesc("Enable caching to speed up indexing time. In rare cases, the cache write may cause a crash in Obsidian. This option will disable itself if it happens.").addToggle(f=>f.setValue(z.useCache).onChange(async p=>{z.useCache=p,await pe(this.plugin)})),new ee.Setting(t).setName("Show previous query results").setDesc("Re-executes the previous query when opening Omnisearch.").addToggle(f=>f.setValue(z.showPreviousQueryResults).onChange(async p=>{z.showPreviousQueryResults=p,await pe(this.plugin)})),new ee.Setting(t).setName(`Respect Obsidian's "Excluded Files"`).setDesc(`By default, files that are in Obsidian's "Options > Files & Links > Excluded Files" list are downranked in results.
|
||
Enable this option to completely hide them.`).addToggle(f=>f.setValue(z.hideExcluded).onChange(async p=>{z.hideExcluded=p,await pe(this.plugin)})),new ee.Setting(t).setName("Folders to downrank in search results").setDesc("Folders to downrank in search results. Files in these folders will be downranked in results. They will still be indexed for tags, unlike excluded files. Folders should be comma delimited.").addText(f=>{f.setValue(z.downrankedFoldersFilters.join(",")).setPlaceholder("Example: src,p2/dir").onChange(async p=>{let A=p.split(",");A=A.map(b=>b.trim()),z.downrankedFoldersFilters=A,await pe(this.plugin)})}),new ee.Setting(t).setName("Split CamelCaseWords").setDesc(sr(`Enable this if you want to be able to search for CamelCaseWords as separate words.<br/>
|
||
\u26A0\uFE0F <span style="color: var(--text-accent)">Changing this setting will clear the cache.</span><br>
|
||
${po}`)).addToggle(f=>f.setValue(z.splitCamelCase).onChange(async p=>{await r.clearCache(),z.splitCamelCase=p,await pe(this.plugin)})),new ee.Setting(t).setName("Simpler search").setDesc(`Enable this if Obsidian often freezes while making searches.
|
||
Words shorter than 3 characters won't be used as prefixes; this can reduce search delay but will return fewer results.`).addToggle(f=>f.setValue(z.simpleSearch).onChange(async p=>{z.simpleSearch=p,await pe(this.plugin)})),ee.Platform.isIosApp||new ee.Setting(t).setName("Tokenize URLs").setDesc(`Enable this if you want to be able to search for URLs as separate words.
|
||
This setting has a strong impact on indexing performance, and can crash Obsidian under certain conditions.`).addToggle(f=>f.setValue(z.tokenizeUrls).onChange(async p=>{z.tokenizeUrls=p,await pe(this.plugin)})),new ee.Setting(t).setName("Open in new pane").setDesc("Open and create files in a new pane instead of the current pane.").addToggle(f=>f.setValue(z.openInNewPane).onChange(async p=>{z.openInNewPane=p,await pe(this.plugin)})),new ee.Setting(t).setName("Set Vim like navigation keys").setDesc("Navigate down the results with Ctrl/\u2318 + J/N, or navigate up with Ctrl/\u2318 + K/P").addToggle(f=>f.setValue(z.vimLikeNavigationShortcut).onChange(async p=>{z.vimLikeNavigationShortcut=p,await pe(this.plugin)})),new ee.Setting(t).setName("Fuzziness").setDesc("Define the level of fuzziness for the search. The higher the fuzziness, the more results you'll get.").addDropdown(f=>f.addOptions({0:"Exact match",1:"Not too fuzzy",2:"Fuzzy enough"}).setValue(z.fuzziness).onChange(async p=>{["0","1","2"].includes(p)||(p="2"),z.fuzziness=p,await pe(this.plugin)})),new ee.Setting(t).setName("User Interface").setHeading(),new ee.Setting(t).setName("Show ribbon button").setDesc("Add a button on the sidebar to open the Vault search modal.").addToggle(f=>f.setValue(z.ribbonIcon).onChange(async p=>{z.ribbonIcon=p,await pe(this.plugin),p?this.plugin.addRibbonButton():this.plugin.removeRibbonButton()})),new ee.Setting(t).setName("Show excerpts").setDesc("Shows the contextual part of the note that matches the search. Disable this to only show filenames in results.").addToggle(f=>f.setValue(z.showExcerpt).onChange(async p=>{ai.set(p)})),new ee.Setting(t).setName("Render line return in excerpts").setDesc("Activate this option to render line returns in result excerpts.").addToggle(f=>f.setValue(z.renderLineReturnInExcerpts).onChange(async p=>{z.renderLineReturnInExcerpts=p,await pe(this.plugin)})),new ee.Setting(t).setName('Show "Create note" button').setDesc(sr(`Shows a button next to the search input, to create a note.
|
||
Acts the same as the <code>shift \u21B5</code> shortcut, can be useful for mobile device users.`)).addToggle(f=>f.setValue(z.showCreateButton).onChange(async p=>{z.showCreateButton=p,await pe(this.plugin)})),new ee.Setting(t).setName("Highlight matching words in results").setDesc("Will highlight matching results when enabled. See README for more customization options.").addToggle(f=>f.setValue(z.highlight).onChange(async p=>{z.highlight=p,await pe(this.plugin)}));let d=mo(this.app);new ee.Setting(t).setName("Results weighting").setHeading(),new ee.Setting(t).setName(`File name & declared aliases (default: ${d.weightBasename})`).addSlider(f=>this.weightSlider(f,"weightBasename")),new ee.Setting(t).setName(`File directory (default: ${d.weightDirectory})`).addSlider(f=>this.weightSlider(f,"weightDirectory")),new ee.Setting(t).setName(`Headings level 1 (default: ${d.weightH1})`).addSlider(f=>this.weightSlider(f,"weightH1")),new ee.Setting(t).setName(`Headings level 2 (default: ${d.weightH2})`).addSlider(f=>this.weightSlider(f,"weightH2")),new ee.Setting(t).setName(`Headings level 3 (default: ${d.weightH3})`).addSlider(f=>this.weightSlider(f,"weightH3")),new ee.Setting(t).setName(`Tags (default: ${d.weightUnmarkedTags})`).addSlider(f=>this.weightSlider(f,"weightUnmarkedTags")),new ee.Setting(t).setName("Header properties fields").setDesc('You can set custom weights for values of header properties (e.g. "keywords"). Weights under 1.0 will downrank the results.');for(let f=0;f<z.weightCustomProperties.length;f++){let p=z.weightCustomProperties[f];new ee.Setting(t).setName((f+1).toString()+".").addText(A=>{A.setPlaceholder("Property name").setValue(p.name).onChange(async b=>{p.name=b,await pe(this.plugin)})}).addSlider(A=>{A.setLimits(.1,5,.1).setValue(p.weight).setDynamicTooltip().onChange(async b=>{p.weight=b,await pe(this.plugin)})}).addButton(A=>{A.setButtonText("Remove"),A.onClick(async()=>{z.weightCustomProperties.splice(f,1),await pe(this.plugin),this.display()})})}new ee.Setting(t).addButton(f=>{f.setButtonText("Add a new property"),f.onClick(p=>{z.weightCustomProperties.push({name:"",weight:1}),this.display()})}),ee.Platform.isMobile||(new ee.Setting(t).setName("API Access Through HTTP").setHeading().setDesc(sr('Omnisearch can be used through a simple HTTP server (<a href="https://publish.obsidian.md/omnisearch/Public+API+%26+URL+Scheme#HTTP+Server">more information</a>).')),new ee.Setting(t).setName("Enable the HTTP server").addToggle(f=>f.setValue(z.httpApiEnabled).onChange(async p=>{z.httpApiEnabled=p,p?this.plugin.apiHttpServer.listen(z.httpApiPort):this.plugin.apiHttpServer.close(),await pe(this.plugin)})),new ee.Setting(t).setName("HTTP Port").addText(f=>{f.setValue(z.httpApiPort).setPlaceholder("51361").onChange(async p=>{parseInt(p)>65535&&(p=z.httpApiPort,f.setValue(z.httpApiPort)),z.httpApiPort=p,z.httpApiEnabled&&(this.plugin.apiHttpServer.close(),this.plugin.apiHttpServer.listen(z.httpApiPort)),await pe(this.plugin)})}),new ee.Setting(t).setName("Show a notification when the server starts").setDesc("Will display a notification if the server is enabled, at Obsidian startup.").addToggle(f=>f.setValue(z.httpApiNotice).onChange(async p=>{z.httpApiNotice=p,await pe(this.plugin)}))),new ee.Setting(t).setName("Debugging").setHeading(),new ee.Setting(t).setName("Enable verbose logging").setDesc("Adds a LOT of logs for debugging purposes. Don't forget to disable it.").addToggle(f=>f.setValue(z.verboseLogging).onChange(async p=>{z.verboseLogging=p,gl(p),await pe(this.plugin)})),new ee.Setting(t).setName("Danger Zone").setHeading(),new ee.Setting(t).setName("Ignore diacritics").setDesc(sr(`Normalize diacritics in search terms. Words like "br\xFBl\xE9e" or "\u017Elu\u0165ou\u010Dk\xFD" will be indexed as "brulee" and "zlutoucky".<br/>
|
||
\u26A0\uFE0F <span style="color: var(--text-accent)">You probably should <strong>NOT</strong> disable this.</span><br>
|
||
\u26A0\uFE0F <span style="color: var(--text-accent)">Changing this setting will clear the cache.</span><br>
|
||
${po}`)).addToggle(f=>f.setValue(z.ignoreDiacritics).onChange(async p=>{await r.clearCache(),z.ignoreDiacritics=p,await pe(this.plugin)})),new ee.Setting(t).setName("Ignore Arabic diacritics (beta)").addToggle(f=>f.setValue(z.ignoreArabicDiacritics).onChange(async p=>{await r.clearCache(),z.ignoreArabicDiacritics=p,await pe(this.plugin)}));let h=new DocumentFragment;h.createSpan({},f=>{f.innerHTML=`Disable Omnisearch on this device only.<br>
|
||
${po}`}),new ee.Setting(t).setName("Disable on this device").setDesc(h).addToggle(f=>f.setValue(Kl(this.app)).onChange(async p=>{p?(this.app.saveLocalStorage(ia,"1"),new ee.Notice("Omnisearch - Disabled. Please restart Obsidian.")):(this.app.saveLocalStorage(ia),new ee.Notice("Omnisearch - Enabled. Please restart Obsidian."))})),new ee.Setting(t).setName("Force save the cache").setDesc(sr(`Omnisearch has a security feature that automatically disables cache writing if it cannot fully perform the operation.<br>
|
||
Use this option to force the cache to be saved, even if it causes a crash.<br>
|
||
\u26A0\uFE0F <span style="color: var(--text-accent)">Enabling this setting could lead to crash loops</span>`)).addToggle(f=>f.setValue(z.DANGER_forceSaveCache).onChange(async p=>{z.DANGER_forceSaveCache=p,await pe(this.plugin)})),Nn()&&new ee.Setting(t).setName("Clear cache data").setDesc(sr(`Erase all Omnisearch cache data.
|
||
Use this if Omnisearch results are inconsistent, missing, or appear outdated.<br>
|
||
${po}`)).addButton(f=>{f.setButtonText("Clear cache"),f.onClick(async()=>{await r.clearCache()})})}weightSlider(t,r){t.setLimits(1,5,.1).setValue(z[r]).setDynamicTooltip().onChange(async n=>{z[r]=n,await pe(this.plugin)})}}});function WS(e){let t;return{c(){t=V("span"),t.innerHTML='<svg viewBox="0 0 100 100" class="add-note-glyph" width="16" height="16"><path fill="currentColor" stroke="currentColor" d="M23.3,6.7c-3.7,0-6.7,3-6.7,6.7v73.3c0,3.7,3,6.7,6.7,6.7h28.4c-3.2-4.8-5.1-10.5-5.1-16.7c0-16.6,13.4-30,30-30 c2.3,0,4.5,0.3,6.7,0.8V31.7c0-0.9-0.3-1.7-1-2.4L60.7,7.6c-0.6-0.6-1.5-1-2.4-1L23.3,6.7z M56.7,13L77,33.3H60 c-1.8,0-3.3-1.5-3.3-3.3L56.7,13z M76.7,53.3c-12.9,0-23.3,10.4-23.3,23.3S63.8,100,76.7,100S100,89.6,100,76.7 S89.6,53.3,76.7,53.3z M76.7,63.3c1.8,0,3.3,1.5,3.3,3.3v6.7h6.7c1.8,0,3.3,1.5,3.3,3.3c0,1.8-1.5,3.3-3.3,3.3H80v6.7 c0,1.8-1.5,3.3-3.3,3.3c-1.8,0-3.3-1.5-3.3-3.3V80h-6.7c-1.8,0-3.3-1.5-3.3-3.3s1.5-3.3,3.3-3.3h6.7v-6.7 C73.3,64.8,74.8,63.3,76.7,63.3L76.7,63.3z"></path></svg>',Z(t,"class","suggestion-flair"),Z(t,"aria-label","Not created yet, select to create")},m(r,n){ae(r,t,n)},p:qe,i:qe,o:qe,d(r){r&&se(t)}}}function YS(e){"use strict";return[]}var C_,D_,S_=x(()=>{rr();C_=class extends pt{constructor(t){super();bt(this,t,YS,WS,ot,{})}},D_=C_});function x_(e){let t,r;return t=new D_({}),{c(){Lt(t.$$.fragment)},m(n,i){Dt(t,n,i),r=!0},i(n){r||(Ee(t.$$.fragment,n),r=!0)},o(n){Oe(t.$$.fragment,n),r=!1},d(n){Tt(t,n)}}}function QS(e){let t,r,n,i,s,a=e[2]&&x_(e),u=e[4].default,o=Mi(u,e,e[3],null);return{c(){t=V("div"),a&&a.c(),r=ue(),o&&o.c(),Z(t,"data-result-id",e[0]),Z(t,"class","suggestion-item omnisearch-result"),Jc(t,"is-selected",e[1])},m(c,d){ae(c,t,d),a&&a.m(t,null),j(t,r),o&&o.m(t,null),n=!0,i||(s=[ht(t,"mousemove",e[5]),ht(t,"click",e[6]),ht(t,"keypress",e[7]),ht(t,"auxclick",e[8])],i=!0)},p(c,[d]){c[2]?a?d&4&&Ee(a,1):(a=x_(c),a.c(),Ee(a,1),a.m(t,r)):a&&(ei(),Oe(a,1,1,()=>{a=null}),ti()),o&&o.p&&(!n||d&8)&&Fi(o,u,c,c[3],n?ki(u,c[3],d,null):Bi(c[3]),null),(!n||d&1)&&Z(t,"data-result-id",c[0]),(!n||d&2)&&Jc(t,"is-selected",c[1])},i(c){n||(Ee(a),Ee(o,c),n=!0)},o(c){Oe(a),Oe(o,c),n=!1},d(c){c&&se(t),a&&a.d(),o&&o.d(c),i=!1,lr(s)}}}function $S(e,t,r){let{$$slots:n={},$$scope:i}=t,{id:s}=t,{selected:a=!1}=t,{glyph:u=!1}=t;function o(f){Vt.call(this,e,f)}function c(f){Vt.call(this,e,f)}function d(f){Vt.call(this,e,f)}function h(f){Vt.call(this,e,f)}return e.$$set=f=>{"id"in f&&r(0,s=f.id),"selected"in f&&r(1,a=f.selected),"glyph"in f&&r(2,u=f.glyph),"$$scope"in f&&r(3,i=f.$$scope)},[s,a,u,i,n,o,c,d,h]}var O_,go,Yl=x(()=>{rr();S_();O_=class extends pt{constructor(t){super();bt(this,t,$S,QS,ot,{id:0,selected:1,glyph:2})}},go=O_});function N_(e){let t,r=e[1].matches.length+"",n,i,s=(e[1].matches.length>1?"matches":"match")+"",a;return{c(){t=V("span"),n=dt(r),i=dt("\xA0"),a=dt(s),Z(t,"class","omnisearch-result__counter")},m(u,o){ae(u,t,o),j(t,n),j(t,i),j(t,a)},p(u,o){o&2&&r!==(r=u[1].matches.length+"")&&xr(n,r),o&2&&s!==(s=(u[1].matches.length>1?"matches":"match")+"")&&xr(a,s)},d(u){u&&se(t)}}}function w_(e){let t,r,n,i,s=e[2].textProcessor.highlightText(e[4],e[10])+"";return{c(){t=V("div"),r=V("span"),n=ue(),i=V("span"),Z(t,"class","omnisearch-result__folder-path")},m(a,u){ae(a,t,u),j(t,r),e[14](r),j(t,n),j(t,i),i.innerHTML=s},p(a,u){u&1044&&s!==(s=a[2].textProcessor.highlightText(a[4],a[10])+"")&&(i.innerHTML=s)},d(a){a&&se(t),e[14](null)}}}function R_(e){let t,r=e[2].textProcessor.highlightText(e[9],e[1].matches)+"";return{c(){t=V("div"),Z(t,"class","omnisearch-result__body")},m(n,i){ae(n,t,i),t.innerHTML=r},p(n,i){i&518&&r!==(r=n[2].textProcessor.highlightText(n[9],n[1].matches)+"")&&(t.innerHTML=r)},d(n){n&&se(t)}}}function P_(e){let t,r,n;return{c(){t=V("div"),r=V("img"),zt(r,"width","100px"),Xc(r.src,n=e[7])||Z(r,"src",n),Z(r,"alt",""),Z(t,"class","omnisearch-result__image-container")},m(i,s){ae(i,t,s),j(t,r)},p(i,s){s&128&&!Xc(r.src,n=i[7])&&Z(r,"src",n)},d(i){i&&se(t)}}}function XS(e){let t,r,n,i,s,a,u=e[2].textProcessor.highlightText(e[3],e[11])+"",o,c,d,h=En(e[1].path)+"",f,p,A,b,D,g,v=e[1].matches.length>0&&N_(e),I=e[4]&&w_(e),T=e[12]&&R_(e),E=e[7]&&P_(e);return{c(){t=V("div"),r=V("div"),n=V("span"),i=V("span"),s=ue(),a=V("span"),o=ue(),c=V("span"),d=dt("."),f=dt(h),p=ue(),v&&v.c(),A=ue(),I&&I.c(),b=ue(),D=V("div"),T&&T.c(),g=ue(),E&&E.c(),Z(c,"class","omnisearch-result__extension"),Z(n,"class","omnisearch-result__title"),Z(r,"class","omnisearch-result__title-container"),zt(D,"display","flex"),zt(D,"flex-direction","row")},m(C,S){ae(C,t,S),j(t,r),j(r,n),j(n,i),e[13](i),j(n,s),j(n,a),a.innerHTML=u,j(n,o),j(n,c),j(c,d),j(c,f),j(n,p),v&&v.m(n,null),j(t,A),I&&I.m(t,null),j(t,b),j(t,D),T&&T.m(D,null),j(D,g),E&&E.m(D,null)},p(C,S){S&2060&&u!==(u=C[2].textProcessor.highlightText(C[3],C[11])+"")&&(a.innerHTML=u),S&2&&h!==(h=En(C[1].path)+"")&&xr(f,h),C[1].matches.length>0?v?v.p(C,S):(v=N_(C),v.c(),v.m(n,null)):v&&(v.d(1),v=null),C[4]?I?I.p(C,S):(I=w_(C),I.c(),I.m(t,b)):I&&(I.d(1),I=null),C[12]?T?T.p(C,S):(T=R_(C),T.c(),T.m(D,g)):T&&(T.d(1),T=null),C[7]?E?E.p(C,S):(E=P_(C),E.c(),E.m(D,null)):E&&(E.d(1),E=null)},d(C){C&&se(t),e[13](null),v&&v.d(),I&&I.d(),T&&T.d(),E&&E.d()}}}function ZS(e){let t,r;return t=new go({props:{glyph:e[8],id:e[1].path,selected:e[0],$$slots:{default:[XS]},$$scope:{ctx:e}}}),t.$on("auxclick",e[15]),t.$on("click",e[16]),t.$on("mousemove",e[17]),{c(){Lt(t.$$.fragment)},m(n,i){Dt(t,n,i),r=!0},p(n,[i]){let s={};i&256&&(s.glyph=n[8]),i&2&&(s.id=n[1].path),i&1&&(s.selected=n[0]),i&270078&&(s.$$scope={dirty:i,ctx:n}),t.$set(s)},i(n){r||(Ee(t.$$.fragment,n),r=!0)},o(n){Oe(t.$$.fragment,n),r=!1},d(n){Tt(t,n)}}}function JS(e,t,r){let n,i,s,a,u;Su(e,ai,E=>r(12,u=E));let{selected:o=!1}=t,{note:c}=t,{plugin:d}=t,h=null,f="",p="",A,b;function D(E){Yr[E?"unshift":"push"](()=>{b=E,r(6,b)})}function g(E){Yr[E?"unshift":"push"](()=>{A=E,r(5,A)})}function v(E){Vt.call(this,e,E)}function I(E){Vt.call(this,e,E)}function T(E){Vt.call(this,e,E)}e.$$set=E=>{"selected"in E&&r(0,o=E.selected),"note"in E&&r(1,c=E.note),"plugin"in E&&r(2,d=E.plugin)},e.$$.update=()=>{if(e.$$.dirty&6){e:if(r(7,h=null),Tn(c.path)){let E=d.app.vault.getAbstractFileByPath(c.path);E instanceof wn.TFile&&r(7,h=d.app.vault.getResourcePath(E))}}if(e.$$.dirty&98){e:r(3,f=c.displayTitle||c.basename),r(4,p=p0(c.path)),A&&(0,wn.setIcon)(A,"folder-open"),b&&(Tn(c.path)?(0,wn.setIcon)(b,"image"):bn(c.path)?(0,wn.setIcon)(b,"file-text"):ri(c.path)||b0(c.path)?(0,wn.setIcon)(b,"layout-dashboard"):(0,wn.setIcon)(b,"file"))}if(e.$$.dirty&14){e:r(11,n=d.textProcessor.getMatches(f,c.foundWords))}if(e.$$.dirty&22){e:r(10,i=d.textProcessor.getMatches(p,c.foundWords))}if(e.$$.dirty&6){e:r(9,s=d.textProcessor.makeExcerpt(c.content,c.matches[0]?.offset??-1))}};e:r(8,a=!1);return[o,c,d,f,p,A,b,h,a,s,i,n,u,D,g,v,I,T]}var wn,L_,M_,k_=x(()=>{rr();Wl();ir();Yl();wn=Xe(require("obsidian"));L_=class extends pt{constructor(t){super();bt(this,t,JS,ZS,ot,{selected:0,note:1,plugin:2})}},M_=L_});var F_=U(_o=>{_o.parse=function(e,t){if(t?t.offsets=typeof t.offsets=="undefined"?!0:t.offsets:t={offsets:!0},e||(e=""),e.indexOf(":")===-1&&!t.tokenize)return e;if(!t.keywords&&!t.ranges&&!t.tokenize)return e;var r={text:[]};t.offsets&&(r.offsets=[]);for(var n={},i=[],s=/(\S+:'(?:[^'\\]|\\.)*')|(\S+:"(?:[^"\\]|\\.)*")|(-?"(?:[^"\\]|\\.)*")|(-?'(?:[^'\\]|\\.)*')|\S+|\S+:\S+/g,a;(a=s.exec(e))!==null;){var f=a[0],u=f.indexOf(":");if(u!==-1){var o=f.split(":"),c=f.slice(0,u),d=f.slice(u+1);d=d.replace(/^\"|\"$|^\'|\'$/g,""),d=(d+"").replace(/\\(.?)/g,function(C,S){switch(S){case"\\":return"\\";case"0":return"\0";case"":return"";default:return S}}),i.push({keyword:c,value:d,offsetStart:a.index,offsetEnd:a.index+f.length})}else{var h=!1;f[0]==="-"&&(h=!0,f=f.slice(1)),f=f.replace(/^\"|\"$|^\'|\'$/g,""),f=(f+"").replace(/\\(.?)/g,function(C,S){switch(S){case"\\":return"\\";case"0":return"\0";case"":return"";default:return S}}),h?n.text?(n.text instanceof Array||(n.text=[n.text]),n.text.push(f)):n.text=f:i.push({text:f,offsetStart:a.index,offsetEnd:a.index+f.length})}}i.reverse();for(var f;f=i.pop();)if(f.text)r.text.push(f.text),t.offsets&&r.offsets.push(f);else{var c=f.keyword;t.keywords=t.keywords||[];var p=!1,A=!1;if(!/^-/.test(c))p=t.keywords.indexOf(c)!==-1;else if(c[0]==="-"){var b=c.slice(1);p=t.keywords.indexOf(b)!==-1,p&&(c=b,A=!0)}t.ranges=t.ranges||[];var D=t.ranges.indexOf(c)!==-1;if(p){t.offsets&&r.offsets.push({keyword:c,value:f.value,offsetStart:A?f.offsetStart+1:f.offsetStart,offsetEnd:f.offsetEnd});var g=f.value;if(g.length){var v=g.split(",");A?n[c]?n[c]instanceof Array?v.length>1?n[c]=n[c].concat(v):n[c].push(g):(n[c]=[n[c]],n[c].push(g)):v.length>1?n[c]=v:t.alwaysArray?n[c]=[g]:n[c]=g:r[c]?r[c]instanceof Array?v.length>1?r[c]=r[c].concat(v):r[c].push(g):(r[c]=[r[c]],r[c].push(g)):v.length>1?r[c]=v:t.alwaysArray?r[c]=[g]:r[c]=g}}else if(D){t.offsets&&r.offsets.push(f);var g=f.value,I=g.split("-");r[c]={},I.length===2?(r[c].from=I[0],r[c].to=I[1]):!I.length%2||(r[c].from=g)}else{var T=f.keyword+":"+f.value;r.text.push(T),t.offsets&&r.offsets.push({text:T,offsetStart:f.offsetStart,offsetEnd:f.offsetEnd})}}return r.text.length?t.tokenize||(r.text=r.text.join(" ").trim()):delete r.text,r.exclude=n,r};_o.stringify=function(e,t,r){if(t||(t={offsets:!0}),!e)return"";if(typeof e=="string")return e;if(Array.isArray(e))return e.join(" ");if(!Object.keys(e).length)return"";if(Object.keys(e).length===3&&!!e.text&&!!e.offsets&&!!e.exclude&&typeof e.text=="string")return e.text;r||(r="");var n=function(u){return u.indexOf(" ")>-1?JSON.stringify(u):u},i=function(u){return r+u},s=[];if(e.text){var a=[];typeof e.text=="string"?a.push(e.text):a.push.apply(a,e.text),a.length>0&&s.push(a.map(n).map(i).join(" "))}return t.keywords&&t.keywords.forEach(function(u){if(!!e[u]){var o=[];typeof e[u]=="string"?o.push(e[u]):o.push.apply(o,e[u]),o.length>0&&s.push(i(u+":"+o.map(n).join(",")))}}),t.ranges&&t.ranges.forEach(function(u){if(!!e[u]){var o=e[u].from,c=e[u].to;c&&(o=o+"-"+c),o&&s.push(i(u+":"+o))}}),e.exclude&&Object.keys(e.exclude).length>0&&s.push(_o.stringify(e.exclude,t,"-")),s.join(" ")}});var j_=U((q9,B_)=>{B_.exports=F_()});var H_,Ql,ui,To=x(()=>{ir();H_=Xe(j_()),Ql=["ext","path"],ui=class{#e;constructor(t="",r){r.ignoreDiacritics&&(t=Qr(t,r.ignoreArabicDiacritics));let n=(0,H_.parse)(t.toLowerCase(),{tokenize:!0,keywords:Ql});n.text=n.text??[],n.exclude=n.exclude??{},n.exclude.text=n.exclude.text??[],Array.isArray(n.exclude.text)||(n.exclude.text=[n.exclude.text]),n.exclude.text=n.exclude.text.filter(s=>s.length);for(let s of Ql){let a=n[s];a&&(n[s]=Array.isArray(a)?a:[a]);let u=n.exclude[s];u&&(n.exclude[s]=Array.isArray(u)?u:[u])}this.query=n;let i=this.query.text.filter(s=>s.startsWith(".")).map(s=>s.slice(1));this.query.ext=[...new Set([...i,...this.query.ext??[]])],this.query.text=this.query.text.filter(s=>!s.startsWith(".")),this.#e=t.match(/"([^"]+)"/g)?.map(s=>s.replace(/"/g,""))??[]}isEmpty(){for(let t of Ql)if(this.query[t]?.length||this.query.text.length)return!1;return!0}segmentsToStr(){return this.query.text.join(" ")}getTags(){return this.query.text.filter(t=>t.startsWith("#"))}getTagsWithoutHashtag(){return this.getTags().map(t=>t.replace(/^#/,""))}getExactTerms(){return[...new Set([...this.query.text.filter(t=>t.split(" ").length>1),...this.#e].map(t=>t.toLowerCase()))]}getBestStringForExcerpt(){return this.#e.length?this.#e.sort((t,r)=>r.length-t.length)[0]??"":this.segmentsToStr()}}});var U_=U(bo=>{function $l(e){return $l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$l(e)}(function(e,t){if(typeof define=="function"&&define.amd)define(["exports"],t);else if(typeof bo!="undefined")t(bo);else{var r={exports:{}};t(r.exports),e.CancelablePromise=r.exports}})(typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:bo,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancelablePromise=void 0,e.cancelable=ge,e.default=void 0,e.isCancelablePromise=W;function t(R,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(F&&F.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),F&&r(R,F)}function r(R,F){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(te,de){return te.__proto__=de,te},r(R,F)}function n(R){var F=a();return function(){var te=u(R),de;if(F){var we=u(this).constructor;de=Reflect.construct(te,arguments,we)}else de=te.apply(this,arguments);return i(this,de)}}function i(R,F){if(F&&($l(F)==="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s(R)}function s(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function a(){if(typeof Reflect=="undefined"||!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 u(R){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(H){return H.__proto__||Object.getPrototypeOf(H)},u(R)}function o(R,F){var H=typeof Symbol!="undefined"&&R[Symbol.iterator]||R["@@iterator"];if(!H){if(Array.isArray(R)||(H=c(R))||F&&R&&typeof R.length=="number"){H&&(R=H);var te=0,de=function(){};return{s:de,n:function(){return te>=R.length?{done:!0}:{done:!1,value:R[te++]}},e:function(X){throw X},f:de}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var we=!0,tt=!1,Kr;return{s:function(){H=H.call(R)},n:function(){var X=H.next();return we=X.done,X},e:function(X){tt=!0,Kr=X},f:function(){try{!we&&H.return!=null&&H.return()}finally{if(tt)throw Kr}}}}function c(R,F){if(!!R){if(typeof R=="string")return d(R,F);var H=Object.prototype.toString.call(R).slice(8,-1);if(H==="Object"&&R.constructor&&(H=R.constructor.name),H==="Map"||H==="Set")return Array.from(R);if(H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return d(R,F)}}function d(R,F){(F==null||F>R.length)&&(F=R.length);for(var H=0,te=new Array(F);H<F;H++)te[H]=R[H];return te}function h(R,F){if(!(R instanceof F))throw new TypeError("Cannot call a class as a function")}function f(R,F){for(var H=0;H<F.length;H++){var te=F[H];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(R,te.key,te)}}function p(R,F,H){return F&&f(R.prototype,F),H&&f(R,H),Object.defineProperty(R,"prototype",{writable:!1}),R}function A(R,F,H){return F in R?Object.defineProperty(R,F,{value:H,enumerable:!0,configurable:!0,writable:!0}):R[F]=H,R}function b(R,F,H){D(R,F),F.set(R,H)}function D(R,F){if(F.has(R))throw new TypeError("Cannot initialize the same private elements twice on an object")}function g(R,F){var H=T(R,F,"get");return v(R,H)}function v(R,F){return F.get?F.get.call(R):F.value}function I(R,F,H){var te=T(R,F,"set");return E(R,te,H),H}function T(R,F,H){if(!F.has(R))throw new TypeError("attempted to "+H+" private field on non-instance");return F.get(R)}function E(R,F,H){if(F.set)F.set.call(R,H);else{if(!F.writable)throw new TypeError("attempted to set read only private field");F.value=H}}var C=typeof Symbol!="undefined"?Symbol.toStringTag:"@@toStringTag",S=new WeakMap,N=new WeakMap,P=function(){function R(F){var H=F.executor,te=H===void 0?function(){}:H,de=F.internals,we=de===void 0?Ke():de,tt=F.promise,Kr=tt===void 0?new Promise(function(_t,X){return te(_t,X,function($e){we.onCancelList.push($e)})}):tt;h(this,R),b(this,S,{writable:!0,value:void 0}),b(this,N,{writable:!0,value:void 0}),A(this,C,"CancelablePromise"),this.cancel=this.cancel.bind(this),I(this,S,we),I(this,N,Kr||new Promise(function(_t,X){return te(_t,X,function($e){we.onCancelList.push($e)})}))}return p(R,[{key:"then",value:function(H,te){return ke(g(this,N).then(he(H,g(this,S)),he(te,g(this,S))),g(this,S))}},{key:"catch",value:function(H){return ke(g(this,N).catch(he(H,g(this,S))),g(this,S))}},{key:"finally",value:function(H,te){var de=this;return te&&g(this,S).onCancelList.push(H),ke(g(this,N).finally(he(function(){if(H)return te&&(g(de,S).onCancelList=g(de,S).onCancelList.filter(function(we){return we!==H})),H()},g(this,S))),g(this,S))}},{key:"cancel",value:function(){g(this,S).isCanceled=!0;var H=g(this,S).onCancelList;g(this,S).onCancelList=[];var te=o(H),de;try{for(te.s();!(de=te.n()).done;){var we=de.value;if(typeof we=="function")try{we()}catch(tt){console.error(tt)}}}catch(tt){te.e(tt)}finally{te.f()}}},{key:"isCanceled",value:function(){return g(this,S).isCanceled===!0}}]),R}(),q=function(R){t(H,R);var F=n(H);function H(te){return h(this,H),F.call(this,{executor:te})}return p(H)}(P);e.CancelablePromise=q,A(q,"all",function(F){return Ie(F,Promise.all(F))}),A(q,"allSettled",function(F){return Ie(F,Promise.allSettled(F))}),A(q,"any",function(F){return Ie(F,Promise.any(F))}),A(q,"race",function(F){return Ie(F,Promise.race(F))}),A(q,"resolve",function(F){return ge(Promise.resolve(F))}),A(q,"reject",function(F){return ge(Promise.reject(F))}),A(q,"isCancelable",W);var $=q;e.default=$;function ge(R){return ke(R,Ke())}function W(R){return R instanceof q||R instanceof P}function he(R,F){if(R)return function(H){if(!F.isCanceled){var te=R(H);return W(te)&&F.onCancelList.push(te.cancel),te}return H}}function ke(R,F){return new P({internals:F,promise:R})}function Ie(R,F){var H=Ke();return H.onCancelList.push(function(){var te=o(R),de;try{for(te.s();!(de=te.n()).done;){var we=de.value;W(we)&&we.cancel()}}catch(tt){te.e(tt)}finally{te.f()}}),new P({internals:H,promise:F})}function Ke(){return{isCanceled:!1,onCancelList:[]}}})});function q_(e,t,r){let n=e.slice();return n[40]=t[r],n[42]=r,n}function z_(e){let t,r,n;return{c(){t=V("button"),t.textContent="Create note"},m(i,s){ae(i,t,s),r||(n=ht(t,"click",e[14]),r=!0)},p:qe,d(i){i&&se(t),r=!1,n()}}}function ex(e){let t,r,n;return{c(){t=V("button"),t.textContent="In-File search"},m(i,s){ae(i,t,s),r||(n=ht(t,"click",e[15]),r=!0)},p:qe,d(i){i&&se(t),r=!1,n()}}}function tx(e){let t,r,n=e[0].settings.showCreateButton&&z_(e),i=gr.Platform.isMobile&&ex(e);return{c(){t=V("div"),n&&n.c(),r=ue(),i&&i.c(),Z(t,"class","omnisearch-input-container__buttons")},m(s,a){ae(s,t,a),n&&n.m(t,null),j(t,r),i&&i.m(t,null)},p(s,a){s[0].settings.showCreateButton?n?n.p(s,a):(n=z_(s),n.c(),n.m(t,r)):n&&(n.d(1),n=null),gr.Platform.isMobile&&i.p(s,a)},d(s){s&&se(t),n&&n.d(),i&&i.d()}}}function V_(e){let t,r,n;return{c(){t=V("div"),r=dt("\u23F3 Work in progress: "),n=dt(e[4]),zt(t,"text-align","center"),zt(t,"color","var(--text-accent)"),zt(t,"margin-top","10px")},m(i,s){ae(i,t,s),j(t,r),j(t,n)},p(i,s){s[0]&16&&xr(n,i[4])},d(i){i&&se(t)}}}function K_(e){let t,r;function n(...i){return e[21](e[42],...i)}return t=new M_({props:{plugin:e[0],selected:e[42]===e[1],note:e[40]}}),t.$on("mousemove",n),t.$on("click",e[12]),t.$on("auxclick",e[22]),{c(){Lt(t.$$.fragment)},m(i,s){Dt(t,i,s),r=!0},p(i,s){e=i;let a={};s[0]&1&&(a.plugin=e[0]),s[0]&2&&(a.selected=e[42]===e[1]),s[0]&8&&(a.note=e[40]),t.$set(a)},i(i){r||(Ee(t.$$.fragment,i),r=!0)},o(i){Oe(t.$$.fragment,i),r=!1},d(i){Tt(t,i)}}}function rx(e){let t;return{c(){t=dt("Searching...")},m(r,n){ae(r,t,n)},p:qe,d(r){r&&se(t)}}}function nx(e){let t,r=e[0].settings.simpleSearch&&e[2].split(sa).some(Y_),n,i=r&&W_(e);return{c(){t=dt(`We found 0 result for your search here.
|
||
`),i&&i.c(),n=Zs()},m(s,a){ae(s,t,a),i&&i.m(s,a),ae(s,n,a)},p(s,a){a[0]&5&&(r=s[0].settings.simpleSearch&&s[2].split(sa).some(Y_)),r?i||(i=W_(s),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(s){s&&se(t),i&&i.d(s),s&&se(n)}}}function W_(e){let t,r,n;return{c(){t=V("br"),r=ue(),n=V("span"),n.textContent=`You have enabled "Simpler Search" in the settings, try to type more
|
||
characters.`,zt(n,"color","var(--text-accent)"),zt(n,"font-size","small")},m(i,s){ae(i,t,s),ae(i,r,s),ae(i,n,s)},d(i){i&&se(t),i&&se(r),i&&se(n)}}}function ix(e){let t,r,n,i=e[3],s=[];for(let d=0;d<i.length;d+=1)s[d]=K_(q_(e,i,d));let a=d=>Oe(s[d],1,1,()=>{s[d]=null});function u(d,h){if(!d[3].length&&d[2]&&!d[5])return nx;if(d[5])return rx}let o=u(e,[-1,-1]),c=o&&o(e);return{c(){for(let d=0;d<s.length;d+=1)s[d].c();t=ue(),r=V("div"),c&&c.c(),zt(r,"text-align","center")},m(d,h){for(let f=0;f<s.length;f+=1)s[f]&&s[f].m(d,h);ae(d,t,h),ae(d,r,h),c&&c.m(r,null),n=!0},p(d,h){if(h[0]&12299){i=d[3];let f;for(f=0;f<i.length;f+=1){let p=q_(d,i,f);s[f]?(s[f].p(p,h),Ee(s[f],1)):(s[f]=K_(p),s[f].c(),Ee(s[f],1),s[f].m(t.parentNode,t))}for(ei(),f=i.length;f<s.length;f+=1)a(f);ti()}o===(o=u(d,h))&&c?c.p(d,h):(c&&c.d(1),c=o&&o(d),c&&(c.c(),c.m(r,null)))},i(d){if(!n){for(let h=0;h<i.length;h+=1)Ee(s[h]);n=!0}},o(d){s=s.filter(Boolean);for(let h=0;h<s.length;h+=1)Oe(s[h]);n=!1},d(d){Ou(s,d),d&&se(t),d&&se(r),c&&c.d()}}}function sx(e){let t,r,n,i,s,a,u,o,c,d,h,f,p,A,b,D,g,v,I,T,E,C,S,N,P,q,$,ge,W,he,ke,Ie,Ke,R,F,H,te,de,we,tt,Kr,_t,X,$e,Wr,cr,Zn,Pi,pn,ky={plugin:e[0],initialValue:e[2],placeholder:"Omnisearch - Vault",$$slots:{default:[tx]},$$scope:{ctx:e}};t=new Lu({props:ky}),e[19](t),t.$on("input",e[20]);let Pt=e[4]&&V_(e);return i=new Mu({props:{$$slots:{default:[ix]},$$scope:{ctx:e}}}),{c(){Lt(t.$$.fragment),r=ue(),Pt&&Pt.c(),n=ue(),Lt(i.$$.fragment),s=ue(),a=V("div"),u=V("div"),u.innerHTML='<span class="prompt-instruction-command">\u2191\u2193</span><span>to navigate</span>',o=ue(),c=V("div"),c.innerHTML=`<span class="prompt-instruction-command">alt \u2191\u2193</span>
|
||
<span>to cycle history</span>`,d=ue(),h=V("div"),f=V("span"),p=dt(e[8]),A=ue(),b=V("span"),b.textContent="to open",D=ue(),g=V("div"),g.innerHTML=`<span class="prompt-instruction-command">tab</span>
|
||
<span>to switch to In-File Search</span>`,v=ue(),I=V("div"),T=V("span"),E=dt(e[7]),C=ue(),S=V("span"),S.textContent="to open in a new pane",N=ue(),P=V("div"),q=V("span"),q.textContent=`${e[11]}`,$=ue(),ge=V("span"),ge.textContent="to open in a new split",W=ue(),he=V("div"),he.innerHTML=`<span class="prompt-instruction-command">alt o</span>
|
||
<span>to open in the background</span>`,ke=ue(),Ie=V("div"),Ke=V("span"),R=dt(e[10]),F=ue(),H=V("span"),H.textContent="to create",te=ue(),de=V("div"),we=V("span"),tt=dt(e[9]),Kr=ue(),_t=V("span"),_t.textContent="to create in a new pane",X=ue(),$e=V("div"),$e.innerHTML=`<span class="prompt-instruction-command">alt \u21B5</span>
|
||
<span>to insert a link</span>`,Wr=ue(),cr=V("div"),cr.innerHTML=`<span class="prompt-instruction-command">ctrl g</span>
|
||
<span>to toggle excerpts</span>`,Zn=ue(),Pi=V("div"),Pi.innerHTML='<span class="prompt-instruction-command">esc</span><span>to close</span>',Z(u,"class","prompt-instruction"),Z(c,"class","prompt-instruction"),Z(f,"class","prompt-instruction-command"),Z(h,"class","prompt-instruction"),Z(g,"class","prompt-instruction"),Z(T,"class","prompt-instruction-command"),Z(I,"class","prompt-instruction"),Z(q,"class","prompt-instruction-command"),Z(P,"class","prompt-instruction"),Z(he,"class","prompt-instruction"),Z(Ke,"class","prompt-instruction-command"),Z(Ie,"class","prompt-instruction"),Z(we,"class","prompt-instruction-command"),Z(de,"class","prompt-instruction"),Z($e,"class","prompt-instruction"),Z(cr,"class","prompt-instruction"),Z(Pi,"class","prompt-instruction"),Z(a,"class","prompt-instructions")},m(me,Ye){Dt(t,me,Ye),ae(me,r,Ye),Pt&&Pt.m(me,Ye),ae(me,n,Ye),Dt(i,me,Ye),ae(me,s,Ye),ae(me,a,Ye),j(a,u),j(a,o),j(a,c),j(a,d),j(a,h),j(h,f),j(f,p),j(h,A),j(h,b),j(a,D),j(a,g),j(a,v),j(a,I),j(I,T),j(T,E),j(I,C),j(I,S),j(a,N),j(a,P),j(P,q),j(P,$),j(P,ge),j(a,W),j(a,he),j(a,ke),j(a,Ie),j(Ie,Ke),j(Ke,R),j(Ie,F),j(Ie,H),j(a,te),j(a,de),j(de,we),j(we,tt),j(de,Kr),j(de,_t),j(a,X),j(a,$e),j(a,Wr),j(a,cr),j(a,Zn),j(a,Pi),pn=!0},p(me,Ye){let Cu={};Ye[0]&1&&(Cu.plugin=me[0]),Ye[0]&4&&(Cu.initialValue=me[2]),Ye[0]&1|Ye[1]&4096&&(Cu.$$scope={dirty:Ye,ctx:me}),t.$set(Cu),me[4]?Pt?Pt.p(me,Ye):(Pt=V_(me),Pt.c(),Pt.m(n.parentNode,n)):Pt&&(Pt.d(1),Pt=null);let Hh={};Ye[0]&47|Ye[1]&4096&&(Hh.$$scope={dirty:Ye,ctx:me}),i.$set(Hh),(!pn||Ye[0]&256)&&xr(p,me[8]),(!pn||Ye[0]&128)&&xr(E,me[7]),(!pn||Ye[0]&1024)&&xr(R,me[10]),(!pn||Ye[0]&512)&&xr(tt,me[9])},i(me){pn||(Ee(t.$$.fragment,me),Ee(i.$$.fragment,me),pn=!0)},o(me){Oe(t.$$.fragment,me),Oe(i.$$.fragment,me),pn=!1},d(me){e[19](null),Tt(t,me),me&&se(r),Pt&&Pt.d(me),me&&se(n),Tt(i,me),me&&se(s),me&&se(a)}}}function ax(e,t,r){let n,i;Su(e,gn,X=>r(18,i=X));let{modal:s}=t,{previousQuery:a}=t,{plugin:u}=t,o=0,c=0,d,h=[],f,p="",A=!0,b,D,g,v,I,T=_n()+" alt \u21B5";ta(async()=>{ce.enable("vault"),ce.on("vault",_e.Enter,$),ce.on("vault",_e.OpenInBackground,ge),ce.on("vault",_e.CreateNote,R),ce.on("vault",_e.OpenInNewPane,W),ce.on("vault",_e.InsertLink,F),ce.on("vault",_e.Tab,H),ce.on("vault",_e.ArrowUp,()=>te(-1)),ce.on("vault",_e.ArrowDown,()=>te(1)),ce.on("vault",_e.PrevSearchHistory,E),ce.on("vault",_e.NextSearchHistory,C),ce.on("vault",_e.OpenInNewLeaf,he),await u.notesIndexer.refreshIndex(),await P()}),ra(()=>{ce.disable("vault")});async function E(){let X=(await u.cacheManager.getSearchHistory()).filter($e=>$e);++c>=X.length&&(c=0),r(2,d=X[c]),b?.setInputValue(d??"")}async function C(){let X=(await u.cacheManager.getSearchHistory()).filter($e=>$e);--c<0&&(c=X.length?X.length-1:0),r(2,d=X[c]),b?.setInputValue(d??"")}let S=null;async function N(){r(5,A=!0),S&&(S.cancel(),S=null),f=new ui(d,{ignoreDiacritics:u.settings.ignoreDiacritics,ignoreArabicDiacritics:u.settings.ignoreArabicDiacritics}),S=(0,G_.cancelable)(new Promise(X=>{X(u.searchEngine.getSuggestions(f))})),r(3,h=await S),r(1,o=0),await de(),r(5,A=!1)}let P=ba(N,0);function q(X){!n||(X?.ctrlKey?W():$(),s.close())}function $(){!n||(Ie(n),s.close())}function ge(){!n||Ie(n,!0)}function W(){!n||(Ie(n,!0),s.close())}function he(){!n||(Ie(n,!0,!0),s.close())}function ke(){d&&u.cacheManager.addToSearchHistory(d)}function Ie(X,$e=!1,Wr=!1){ke();let cr=X.matches?.[0]?.offset??0;ku(u.app,X,cr,$e,Wr)}async function Ke(X){await R()}async function R(X){if(d){try{await f0(u.app,d,X?.newLeaf)}catch($e){new gr.Notice($e.message);return}s.close()}}function F(){if(!n)return;let X=u.app.vault.getMarkdownFiles().find(Pi=>Pi.path===n.path),$e=u.app.workspace.getActiveFile(),Wr=u.app.workspace.getActiveViewOfType(gr.MarkdownView);if(!Wr?.editor){new gr.Notice("Omnisearch - Error - No active editor",3e3);return}let cr;X&&$e?cr=u.app.fileManager.generateMarkdownLink(X,$e.path):cr=`[[${n.basename}.${En(n.path)}]]`;let Zn=Wr.editor.getCursor();Wr.editor.replaceRange(cr,Zn,Zn),Zn.ch+=cr.length,Wr.editor.setCursor(Zn),s.close()}function H(){if(!(n&&(bn(n?.path)||!n?.matches.length)))if(ke(),s.close(),n){let X=u.app.vault.getAbstractFileByPath(n.path);X&&X instanceof gr.TFile&&new us(u,X,d).open()}else{let X=u.app.workspace.getActiveViewOfType(gr.MarkdownView);X?.file&&new us(u,X.file,d).open()}}function te(X){r(1,o=Bu(o+X,h.length)),de()}async function de(){await mn(),n&&activeWindow.document.querySelector(`[data-result-id="${n.path}"]`)?.scrollIntoView({behavior:"auto",block:"nearest"})}function we(X){Yr[X?"unshift":"push"](()=>{b=X,r(6,b)})}let tt=X=>r(2,d=X.detail),Kr=(X,$e)=>r(1,o=X),_t=X=>{X.button==1&&W()};return e.$$set=X=>{"modal"in X&&r(16,s=X.modal),"previousQuery"in X&&r(17,a=X.previousQuery),"plugin"in X&&r(0,u=X.plugin)},e.$$.update=()=>{if(e.$$.dirty[0]&131076){e:r(2,d=d??a)}if(e.$$.dirty[0]&4){e:d?P():(r(5,A=!1),r(3,h=[]))}if(e.$$.dirty[0]&10){e:n=h[o]}if(e.$$.dirty[0]&1){e:u.settings.openInNewPane?(r(7,D="\u21B5"),r(8,g=_n()+" \u21B5"),r(9,v="shift \u21B5"),r(10,I=_n()+" shift \u21B5")):(r(7,D=_n()+" \u21B5"),r(8,g="\u21B5"),r(9,v=_n()+" shift \u21B5"),r(10,I="shift \u21B5"))}if(e.$$.dirty[0]&262144){e:switch(i){case nr.LoadingCache:r(4,p="Loading cache...");break;case nr.ReadingFiles:r(4,p="Reading files...");break;case nr.IndexingFiles:r(4,p="Indexing files...");break;case nr.WritingCache:P(),r(4,p="Updating cache...");break;default:P(),r(4,p="");break}}},[u,o,d,h,p,A,b,D,g,v,I,T,q,W,Ke,H,s,a,i,we,tt,Kr,_t]}var gr,G_,Y_,Q_,$_,X_=x(()=>{rr();gr=Xe(require("obsidian"));wu();cl();ll();Or();aa();ir();Aa();k_();To();G_=Xe(U_());Ea();Y_=e=>e.length<3;Q_=class extends pt{constructor(t){super();bt(this,t,ax,sx,ot,{modal:16,previousQuery:17,plugin:0},null,[-1,-1])}},$_=Q_});function ux(e){let t,r=e[0].textProcessor.highlightText(e[4],e[1].matches)+"";return{c(){t=V("div"),Z(t,"class","omnisearch-result__body")},m(n,i){ae(n,t,i),t.innerHTML=r},p(n,i){i&19&&r!==(r=n[0].textProcessor.highlightText(n[4],n[1].matches)+"")&&(t.innerHTML=r)},d(n){n&&se(t)}}}function ox(e){let t,r;return t=new go({props:{id:e[2].toString(),selected:e[3],$$slots:{default:[ux]},$$scope:{ctx:e}}}),t.$on("auxclick",e[6]),t.$on("click",e[7]),t.$on("mousemove",e[8]),{c(){Lt(t.$$.fragment)},m(n,i){Dt(t,n,i),r=!0},p(n,[i]){let s={};i&4&&(s.id=n[2].toString()),i&8&&(s.selected=n[3]),i&531&&(s.$$scope={dirty:i,ctx:n}),t.$set(s)},i(n){r||(Ee(t.$$.fragment,n),r=!0)},o(n){Oe(t.$$.fragment,n),r=!1},d(n){Tt(t,n)}}}function cx(e,t,r){let n,{plugin:i}=t,{offset:s}=t,{note:a}=t,{index:u=0}=t,{selected:o=!1}=t;function c(f){Vt.call(this,e,f)}function d(f){Vt.call(this,e,f)}function h(f){Vt.call(this,e,f)}return e.$$set=f=>{"plugin"in f&&r(0,i=f.plugin),"offset"in f&&r(5,s=f.offset),"note"in f&&r(1,a=f.note),"index"in f&&r(2,u=f.index),"selected"in f&&r(3,o=f.selected)},e.$$.update=()=>{if(e.$$.dirty&35){e:r(4,n=i.textProcessor.makeExcerpt(a?.content??"",s))}},[i,a,u,o,n,s,c,d,h]}var Z_,J_,eT=x(()=>{rr();Yl();Z_=class extends pt{constructor(t){super();bt(this,t,cx,ox,ot,{plugin:0,offset:5,note:1,index:2,selected:3})}},J_=Z_});function tT(e,t,r){let n=e.slice();return n[20]=t[r],n[22]=r,n}function lx(e){let t,r,n;return{c(){t=V("button"),t.textContent="Vault search"},m(i,s){ae(i,t,s),r||(n=ht(t,"click",e[8]),r=!0)},p:qe,d(i){i&&se(t),r=!1,n()}}}function fx(e){let t,r=ya.Platform.isMobile&&lx(e);return{c(){t=V("div"),r&&r.c(),Z(t,"class","omnisearch-input-container__buttons")},m(n,i){ae(n,t,i),r&&r.m(t,null)},p(n,i){ya.Platform.isMobile&&r.p(n,i)},d(n){n&&se(t),r&&r.d()}}}function dx(e){let t;return{c(){t=V("div"),t.textContent="We found 0 result for your search here.",zt(t,"text-align","center")},m(r,n){ae(r,t,n)},p:qe,i:qe,o:qe,d(r){r&&se(t)}}}function hx(e){let t,r,n=e[5],i=[];for(let a=0;a<n.length;a+=1)i[a]=rT(tT(e,n,a));let s=a=>Oe(i[a],1,1,()=>{i[a]=null});return{c(){for(let a=0;a<i.length;a+=1)i[a].c();t=Zs()},m(a,u){for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(a,u);ae(a,t,u),r=!0},p(a,u){if(u&241){n=a[5];let o;for(o=0;o<n.length;o+=1){let c=tT(a,n,o);i[o]?(i[o].p(c,u),Ee(i[o],1)):(i[o]=rT(c),i[o].c(),Ee(i[o],1),i[o].m(t.parentNode,t))}for(ei(),o=n.length;o<i.length;o+=1)s(o);ti()}},i(a){if(!r){for(let u=0;u<n.length;u+=1)Ee(i[u]);r=!0}},o(a){i=i.filter(Boolean);for(let u=0;u<i.length;u+=1)Oe(i[u]);r=!1},d(a){Ou(i,a),a&&se(t)}}}function rT(e){let t,r;function n(...i){return e[13](e[22],...i)}return t=new J_({props:{plugin:e[0],offset:e[20],note:e[4],index:e[22],selected:e[22]===e[6]}}),t.$on("mousemove",n),t.$on("click",e[14]),t.$on("auxclick",e[15]),{c(){Lt(t.$$.fragment)},m(i,s){Dt(t,i,s),r=!0},p(i,s){e=i;let a={};s&1&&(a.plugin=e[0]),s&32&&(a.offset=e[20]),s&16&&(a.note=e[4]),s&64&&(a.selected=e[22]===e[6]),t.$set(a)},i(i){r||(Ee(t.$$.fragment,i),r=!0)},o(i){Oe(t.$$.fragment,i),r=!1},d(i){Tt(t,i)}}}function px(e){let t,r,n,i,s=[hx,dx],a=[];function u(o,c){return o[5].length&&o[4]?0:1}return t=u(e,-1),r=a[t]=s[t](e),{c(){r.c(),n=Zs()},m(o,c){a[t].m(o,c),ae(o,n,c),i=!0},p(o,c){let d=t;t=u(o,c),t===d?a[t].p(o,c):(ei(),Oe(a[d],1,1,()=>{a[d]=null}),ti(),r=a[t],r?r.p(o,c):(r=a[t]=s[t](o),r.c()),Ee(r,1),r.m(n.parentNode,n))},i(o){i||(Ee(r),i=!0)},o(o){Oe(r),i=!1},d(o){a[t].d(o),o&&se(n)}}}function mx(e){let t;return{c(){t=V("span"),t.textContent="to close"},m(r,n){ae(r,t,n)},d(r){r&&se(t)}}}function gx(e){let t;return{c(){t=V("span"),t.textContent="to go back to Vault Search"},m(r,n){ae(r,t,n)},d(r){r&&se(t)}}}function _x(e){let t,r,n,i,s,a,u,o,c,d,h,f,p,A,b,D,g,v,I,T;t=new Lu({props:{plugin:e[0],placeholder:"Omnisearch - File",initialValue:e[2],$$slots:{default:[fx]},$$scope:{ctx:e}}}),t.$on("input",e[12]),n=new Mu({props:{$$slots:{default:[px]},$$scope:{ctx:e}}});function E(N,P){return N[1]?gx:mx}let C=E(e,-1),S=C(e);return{c(){Lt(t.$$.fragment),r=ue(),Lt(n.$$.fragment),i=ue(),s=V("div"),a=V("div"),a.innerHTML='<span class="prompt-instruction-command">\u2191\u2193</span><span>to navigate</span>',u=ue(),o=V("div"),o.innerHTML='<span class="prompt-instruction-command">\u21B5</span><span>to open</span>',c=ue(),d=V("div"),d.innerHTML=`<span class="prompt-instruction-command">tab</span>
|
||
<span>to switch to Vault Search</span>`,h=ue(),f=V("div"),p=V("span"),p.textContent="esc",A=ue(),S.c(),b=ue(),D=V("div"),g=V("span"),g.textContent=`${_n()} \u21B5`,v=ue(),I=V("span"),I.textContent="to open in a new pane",Z(a,"class","prompt-instruction"),Z(o,"class","prompt-instruction"),Z(d,"class","prompt-instruction"),Z(p,"class","prompt-instruction-command"),Z(f,"class","prompt-instruction"),Z(g,"class","prompt-instruction-command"),Z(D,"class","prompt-instruction"),Z(s,"class","prompt-instructions")},m(N,P){Dt(t,N,P),ae(N,r,P),Dt(n,N,P),ae(N,i,P),ae(N,s,P),j(s,a),j(s,u),j(s,o),j(s,c),j(s,d),j(s,h),j(s,f),j(f,p),j(f,A),S.m(f,null),j(s,b),j(s,D),j(D,g),j(D,v),j(D,I),T=!0},p(N,[P]){let q={};P&1&&(q.plugin=N[0]),P&4&&(q.initialValue=N[2]),P&8388608&&(q.$$scope={dirty:P,ctx:N}),t.$set(q);let $={};P&8388721&&($.$$scope={dirty:P,ctx:N}),n.$set($),C!==(C=E(N,P))&&(S.d(1),S=C(N),S&&(S.c(),S.m(f,null)))},i(N){T||(Ee(t.$$.fragment,N),Ee(n.$$.fragment,N),T=!0)},o(N){Oe(t.$$.fragment,N),Oe(n.$$.fragment,N),T=!1},d(N){Tt(t,N),N&&se(r),Tt(n,N),N&&se(i),N&&se(s),S.d()}}}function Tx(e,t,r){let n=e.find(i=>i.offset>t);return n?e.filter(i=>i.offset>t&&i.offset<=n.offset+r):[]}function bx(e,t,r){let{plugin:n}=t,{modal:i}=t,{parent:s=null}=t,{singleFilePath:a=""}=t,{previousQuery:u}=t,o,c=[],d=0,h,f;ta(()=>{ce.enable("infile"),ce.on("infile",_e.Enter,g),ce.on("infile",_e.OpenInNewPane,D),ce.on("infile",_e.ArrowUp,()=>A(-1)),ce.on("infile",_e.ArrowDown,()=>A(1)),ce.on("infile",_e.Tab,v)}),ra(()=>{ce.disable("infile")});function p(S){let N=[],P=-1,q=0;for(;++q<100;){let $=Tx(S,P,na);if(!$.length)break;P=$.last().offset,N.push($)}return N}function A(S){r(6,d=Bu(d+S,c.length)),b()}async function b(){await mn(),document.querySelector(`[data-result-id="${d}"]`)?.scrollIntoView({behavior:"auto",block:"nearest"})}async function D(){return g(!0)}async function g(S=!1){if(h){i.close(),s&&s.close();let N=n.textProcessor.stringsToRegex(h.foundWords);N.exec(h.content),await ku(n.app,h,N.lastIndex,S);let P=n.app.workspace.getActiveViewOfType(ya.MarkdownView);if(!P)return;let q=c[d]??0,$=P.editor.offsetToPos(q);$.ch=0,P.editor.setCursor($),P.editor.scrollIntoView({from:{line:$.line-10,ch:0},to:{line:$.line+10,ch:0}})}}function v(){new Rn(n,o??u).open(),i.close()}let I=S=>r(3,o=S.detail),T=(S,N)=>r(6,d=S),E=S=>g(S.ctrlKey),C=S=>{S.button==1&&g(!0)};return e.$$set=S=>{"plugin"in S&&r(0,n=S.plugin),"modal"in S&&r(9,i=S.modal),"parent"in S&&r(1,s=S.parent),"singleFilePath"in S&&r(10,a=S.singleFilePath),"previousQuery"in S&&r(2,u=S.previousQuery)},e.$$.update=()=>{if(e.$$.dirty&4){e:r(3,o=u??"")}if(e.$$.dirty&3081){e:(async()=>{o&&(r(11,f=new ui(o,{ignoreDiacritics:n.settings.ignoreDiacritics})),r(4,h=(await n.searchEngine.getSuggestions(f,{singleFilePath:a}))[0]??null)),r(6,d=0),await b()})()}if(e.$$.dirty&2064){e:if(h){let S=p(h.matches),N=f.getExactTerms();N.length&&(S=S.filter(P=>N.every(q=>P.some($=>$.match.includes(q))))),r(5,c=S.map(P=>Math.round(P.first().offset)))}}},[n,s,u,o,h,c,d,g,v,i,a,f,I,T,E,C]}var ya,nT,iT,sT=x(()=>{rr();cl();Or();ir();wu();ya=Xe(require("obsidian"));ll();Aa();eT();To();aa();nT=class extends pt{constructor(t){super();bt(this,t,bx,_x,ot,{plugin:0,modal:9,parent:1,singleFilePath:10,previousQuery:2})}},iT=nT});var Eo,Xl,Rn,us,Aa=x(()=>{Eo=Xe(require("obsidian"));X_();sT();Or();Xl=class extends Eo.Modal{constructor(t){super(t.app);let r=t.settings;this.modalEl.replaceChildren(),this.modalEl.addClass("omnisearch-modal","prompt"),this.modalEl.removeClass("modal"),this.modalEl.tabIndex=-1,this.scope.register([],"ArrowDown",o=>{o.preventDefault(),ce.emit(_e.ArrowDown)}),this.scope.register([],"ArrowUp",o=>{o.preventDefault(),ce.emit(_e.ArrowUp)});for(let o of[{k:"J",dir:"down"},{k:"K",dir:"up"}])for(let c of["Ctrl","Mod"])this.scope.register([c],o.k,d=>{r.vimLikeNavigationShortcut&&ce.emit("arrow-"+o.dir)});for(let o of[{k:"N",dir:"down"},{k:"P",dir:"up"}])for(let c of["Ctrl","Mod"])this.scope.register([c],o.k,d=>{r.vimLikeNavigationShortcut&&ce.emit("arrow-"+o.dir)});let n,i,s,a,u=["Mod","Alt"];r.openInNewPane?(n=["Mod"],i=[],s=["Mod","Shift"],a=["Shift"]):(n=[],i=["Mod"],s=["Shift"],a=["Mod","Shift"]),this.scope.register(i,"Enter",o=>{o.preventDefault(),ce.emit(_e.OpenInNewPane)}),this.scope.register(u,"Enter",o=>{o.preventDefault(),ce.emit(_e.OpenInNewLeaf)}),this.scope.register(["Alt"],"Enter",o=>{o.preventDefault(),ce.emit(_e.InsertLink)}),this.scope.register(s,"Enter",o=>{o.preventDefault(),ce.emit(_e.CreateNote)}),this.scope.register(a,"Enter",o=>{o.preventDefault(),ce.emit(_e.CreateNote,{newLeaf:!0})}),this.scope.register(n,"Enter",o=>{ol()||(o.preventDefault(),ce.emit(_e.Enter))}),this.scope.register(["Ctrl"],"O",o=>{ol()||(o.preventDefault(),ce.emit(_e.OpenInBackground))}),this.scope.register([],"Tab",o=>{o.preventDefault(),ce.emit(_e.Tab)}),this.scope.register(["Alt"],"ArrowDown",o=>{o.preventDefault(),ce.emit(_e.NextSearchHistory)}),this.scope.register(["Alt"],"ArrowUp",o=>{o.preventDefault(),ce.emit(_e.PrevSearchHistory)}),this.scope.register(["Ctrl"],"G",o=>{ce.emit(Pu.ToggleExcerpts)})}},Rn=class extends Xl{constructor(t,r){super(t);let n=t.app.workspace.getActiveViewOfType(Eo.MarkdownView)?.editor.getSelection();t.cacheManager.getSearchHistory().then(i=>{let s=t.settings.showPreviousQueryResults?i[0]:null,a=new $_({target:this.modalEl,props:{plugin:t,modal:this,previousQuery:r||n||s||""}});this.onClose=()=>{a.$destroy()}})}},us=class extends Xl{constructor(t,r,n="",i){super(t);let s=new iT({target:this.modalEl,props:{plugin:t,modal:this,singleFilePath:r.path,parent:i,previousQuery:n}});i&&i.containerEl.toggleVisibility(!1),this.onClose=()=>{i&&i.containerEl.toggleVisibility(!0),s.$destroy()}}}});function Ex(e,t){return t.map(r=>{let{score:n,path:i,basename:s,foundWords:a,matches:u,content:o}=r,c=e.textProcessor.makeExcerpt(o,u[0]?.offset??-1);return{score:n,vault:e.app.vault.getName(),path:i,basename:s,foundWords:a,matches:u.map(h=>({match:h.match,offset:h.offset})),excerpt:c}})}function uT(){aT=!0,Ao.forEach(e=>e())}function cT(e){if(oT)return;oT=!0,e.registerObsidianProtocolHandler("omnisearch",r=>{new Rn(e,r.query).open()});let t=Zl(e);globalThis.omnisearch=t,e.app.plugins.plugins.omnisearch.api=t}function Zl(e){return{async search(t){let r=new ui(t,{ignoreDiacritics:e.settings.ignoreDiacritics,ignoreArabicDiacritics:e.settings.ignoreArabicDiacritics}),n=await e.searchEngine.getSuggestions(r);return Ex(e,n)},registerOnIndexed(t){Ao.push(t),aT&&t()},unregisterOnIndexed(t){Ao=Ao.filter(r=>r!==t)},refreshIndex:e.notesIndexer.refreshIndex}}var aT,Ao,oT,Jl=x(()=>{To();Aa();aT=!1,Ao=[];oT=!1});var Ob=U(Re=>{"use strict";function $o(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}Re.defaults=$o();function pb(e){Re.defaults=e}var mb=/[&<>"']/,e2=new RegExp(mb.source,"g"),gb=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,t2=new RegExp(gb.source,"g"),r2={"&":"&","<":"<",">":">",'"':""","'":"'"},_b=e=>r2[e];function Qt(e,t){if(t){if(mb.test(e))return e.replace(e2,_b)}else if(gb.test(e))return e.replace(t2,_b);return e}var n2=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function i2(e){return e.replace(n2,(t,r)=>(r=r.toLowerCase(),r==="colon"?":":r.charAt(0)==="#"?r.charAt(1)==="x"?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):""))}var s2=/(^|[^\[])\^/g;function Se(e,t){let r=typeof e=="string"?e:e.source;t=t||"";let n={replace:(i,s)=>{let a=typeof s=="string"?s:s.source;return a=a.replace(s2,"$1"),r=r.replace(i,a),n},getRegex:()=>new RegExp(r,t)};return n}function Tb(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}var qa={exec:()=>null};function bb(e,t){let r=e.replace(/\|/g,(s,a,u)=>{let o=!1,c=a;for(;--c>=0&&u[c]==="\\";)o=!o;return o?"|":" |"}),n=r.split(/ \|/),i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(/\\\|/g,"|");return n}function Xo(e,t,r){let n=e.length;if(n===0)return"";let i=0;for(;i<n;){let s=e.charAt(n-i-1);if(s===t&&!r)i++;else if(s!==t&&r)i++;else break}return e.slice(0,n-i)}function a2(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return-1}function Eb(e,t,r,n){let i=t.href,s=t.title?Qt(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){n.state.inLink=!0;let u={type:"link",raw:r,href:i,title:s,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,u}return{type:"image",raw:r,href:i,title:s,text:Qt(a)}}function u2(e,t){let r=e.match(/^(\s+)(?:```)/);if(r===null)return t;let n=r[1];return t.split(`
|
||
`).map(i=>{let s=i.match(/^\s+/);if(s===null)return i;let[a]=s;return a.length>=n.length?i.slice(n.length):i}).join(`
|
||
`)}var Es=class{options;rules;lexer;constructor(t){this.options=t||Re.defaults}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let n=r[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Xo(n,`
|
||
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let n=r[0],i=u2(n,r[3]||"");return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:i}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let n=r[2].trim();if(/#$/.test(n)){let i=Xo(n,"#");(this.options.pedantic||!i||/ $/.test(i))&&(n=i.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:r[0]}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let n=r[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
|
||
$1`);n=Xo(n.replace(/^ *>[ \t]?/gm,""),`
|
||
`);let i=this.lexer.state.top;this.lexer.state.top=!0;let s=this.lexer.blockTokens(n);return this.lexer.state.top=i,{type:"blockquote",raw:r[0],tokens:s,text:n}}}list(t){let r=this.rules.block.list.exec(t);if(r){let n=r[1].trim(),i=n.length>1,s={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");let a=new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),u="",o="",c=!1;for(;t;){let d=!1;if(!(r=a.exec(t))||this.rules.block.hr.test(t))break;u=r[0],t=t.substring(u.length);let h=r[2].split(`
|
||
`,1)[0].replace(/^\t+/,g=>" ".repeat(3*g.length)),f=t.split(`
|
||
`,1)[0],p=0;this.options.pedantic?(p=2,o=h.trimStart()):(p=r[2].search(/[^ ]/),p=p>4?1:p,o=h.slice(p),p+=r[1].length);let A=!1;if(!h&&/^ *$/.test(f)&&(u+=f+`
|
||
`,t=t.substring(f.length+1),d=!0),!d){let g=new RegExp(`^ {0,${Math.min(3,p-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),v=new RegExp(`^ {0,${Math.min(3,p-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),I=new RegExp(`^ {0,${Math.min(3,p-1)}}(?:\`\`\`|~~~)`),T=new RegExp(`^ {0,${Math.min(3,p-1)}}#`);for(;t;){let E=t.split(`
|
||
`,1)[0];if(f=E,this.options.pedantic&&(f=f.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),I.test(f)||T.test(f)||g.test(f)||v.test(t))break;if(f.search(/[^ ]/)>=p||!f.trim())o+=`
|
||
`+f.slice(p);else{if(A||h.search(/[^ ]/)>=4||I.test(h)||T.test(h)||v.test(h))break;o+=`
|
||
`+f}!A&&!f.trim()&&(A=!0),u+=E+`
|
||
`,t=t.substring(E.length+1),h=f.slice(p)}}s.loose||(c?s.loose=!0:/\n *\n *$/.test(u)&&(c=!0));let b=null,D;this.options.gfm&&(b=/^\[[ xX]\] /.exec(o),b&&(D=b[0]!=="[ ] ",o=o.replace(/^\[[ xX]\] +/,""))),s.items.push({type:"list_item",raw:u,task:!!b,checked:D,loose:!1,text:o,tokens:[]}),s.raw+=u}s.items[s.items.length-1].raw=u.trimEnd(),s.items[s.items.length-1].text=o.trimEnd(),s.raw=s.raw.trimEnd();for(let d=0;d<s.items.length;d++)if(this.lexer.state.top=!1,s.items[d].tokens=this.lexer.blockTokens(s.items[d].text,[]),!s.loose){let h=s.items[d].tokens.filter(p=>p.type==="space"),f=h.length>0&&h.some(p=>/\n.*\n/.test(p.raw));s.loose=f}if(s.loose)for(let d=0;d<s.items.length;d++)s.items[d].loose=!0;return s}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let n=r[1].toLowerCase().replace(/\s+/g," "),i=r[2]?r[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:i,title:s}}}table(t){let r=this.rules.block.table.exec(t);if(!r||!/[:|]/.test(r[2]))return;let n=bb(r[1]),i=r[2].replace(/^\||\| *$/g,"").split("|"),s=r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split(`
|
||
`):[],a={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let u of i)/^ *-+: *$/.test(u)?a.align.push("right"):/^ *:-+: *$/.test(u)?a.align.push("center"):/^ *:-+ *$/.test(u)?a.align.push("left"):a.align.push(null);for(let u of n)a.header.push({text:u,tokens:this.lexer.inline(u)});for(let u of s)a.rows.push(bb(u,a.header.length).map(o=>({text:o,tokens:this.lexer.inline(o)})));return a}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let n=r[1].charAt(r[1].length-1)===`
|
||
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:Qt(r[1])}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&/^<a /i.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let n=r[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;let a=Xo(n.slice(0,-1),"\\");if((n.length-a.length)%2==0)return}else{let a=a2(r[2],"()");if(a>-1){let o=(r[0].indexOf("!")===0?5:4)+r[1].length+a;r[2]=r[2].substring(0,a),r[0]=r[0].substring(0,o).trim(),r[3]=""}}let i=r[2],s="";if(this.options.pedantic){let a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);a&&(i=a[1],s=a[3])}else s=r[3]?r[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/>$/.test(n)?i=i.slice(1):i=i.slice(1,-1)),Eb(r,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer)}}reflink(t,r){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let i=(n[2]||n[1]).replace(/\s+/g," "),s=r[i.toLowerCase()];if(!s){let a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return Eb(n,s,n[0],this.lexer)}}emStrong(t,r,n=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!n||this.rules.inline.punctuation.exec(n)){let a=[...i[0]].length-1,u,o,c=a,d=0,h=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,r=r.slice(-1*t.length+a);(i=h.exec(r))!=null;){if(u=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!u)continue;if(o=[...u].length,i[3]||i[4]){c+=o;continue}else if((i[5]||i[6])&&a%3&&!((a+o)%3)){d+=o;continue}if(c-=o,c>0)continue;o=Math.min(o,o+c+d);let f=[...i[0]][0].length,p=t.slice(0,a+i.index+f+o);if(Math.min(a,o)%2){let b=p.slice(1,-1);return{type:"em",raw:p,text:b,tokens:this.lexer.inlineTokens(b)}}let A=p.slice(2,-2);return{type:"strong",raw:p,text:A,tokens:this.lexer.inlineTokens(A)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(/\n/g," "),i=/[^ ]/.test(n),s=/^ /.test(n)&&/ $/.test(n);return i&&s&&(n=n.substring(1,n.length-1)),n=Qt(n,!0),{type:"codespan",raw:r[0],text:n}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let n,i;return r[2]==="@"?(n=Qt(r[1]),i="mailto:"+n):(n=Qt(r[1]),i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(t){let r;if(r=this.rules.inline.url.exec(t)){let n,i;if(r[2]==="@")n=Qt(r[0]),i="mailto:"+n;else{let s;do s=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(s!==r[0]);n=Qt(r[0]),r[1]==="www."?i="http://"+r[0]:i=r[0]}return{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let n;return this.lexer.state.inRawBlock?n=r[0]:n=Qt(r[0]),{type:"text",raw:r[0],text:n}}}},o2=/^(?: *(?:\n|$))+/,c2=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,l2=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,za=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,f2=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ab=/(?:[*+-]|\d{1,9}[.)])/,yb=Se(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Ab).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),id=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,d2=/^[^\n]+/,sd=/(?!\s*\])(?:\\.|[^\[\]\\])+/,h2=Se(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",sd).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),p2=Se(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ab).getRegex(),Zo="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ad=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,m2=Se("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",ad).replace("tag",Zo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ib=Se(id).replace("hr",za).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zo).getRegex(),g2=Se(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ib).getRegex(),ud={blockquote:g2,code:c2,def:h2,fences:l2,heading:f2,hr:za,html:m2,lheading:yb,list:p2,newline:o2,paragraph:Ib,table:qa,text:d2},vb=Se("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",za).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zo).getRegex(),_2=Fe(J({},ud),{table:vb,paragraph:Se(id).replace("hr",za).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",vb).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zo).getRegex()}),T2=Fe(J({},ud),{html:Se(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ad).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:qa,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Se(id).replace("hr",za).replace("heading",` *#{1,6} *[^
|
||
]`).replace("lheading",yb).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),Cb=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,b2=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Db=/^( {2,}|\\)\n(?!\s*$)/,E2=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Va="\\p{P}\\p{S}",A2=Se(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Va).getRegex(),y2=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,I2=Se(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Va).getRegex(),v2=Se("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Va).getRegex(),C2=Se("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Va).getRegex(),D2=Se(/\\([punct])/,"gu").replace(/punct/g,Va).getRegex(),S2=Se(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),x2=Se(ad).replace("(?:-->|$)","-->").getRegex(),O2=Se("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",x2).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Jo=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,N2=Se(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Jo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Sb=Se(/^!?\[(label)\]\[(ref)\]/).replace("label",Jo).replace("ref",sd).getRegex(),xb=Se(/^!?\[(ref)\](?:\[\])?/).replace("ref",sd).getRegex(),w2=Se("reflink|nolink(?!\\()","g").replace("reflink",Sb).replace("nolink",xb).getRegex(),od={_backpedal:qa,anyPunctuation:D2,autolink:S2,blockSkip:y2,br:Db,code:b2,del:qa,emStrongLDelim:I2,emStrongRDelimAst:v2,emStrongRDelimUnd:C2,escape:Cb,link:N2,nolink:xb,punctuation:A2,reflink:Sb,reflinkSearch:w2,tag:O2,text:E2,url:qa},R2=Fe(J({},od),{link:Se(/^!?\[(label)\]\((.*?)\)/).replace("label",Jo).getRegex(),reflink:Se(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Jo).getRegex()}),cd=Fe(J({},od),{escape:Se(Cb).replace("])","~|])").getRegex(),url:Se(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),P2=Fe(J({},cd),{br:Se(Db).replace("{2,}","*").getRegex(),text:Se(cd.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),ec={normal:ud,gfm:_2,pedantic:T2},Ka={normal:od,gfm:cd,breaks:P2,pedantic:R2},ar=class{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Re.defaults,this.options.tokenizer=this.options.tokenizer||new Es,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={block:ec.normal,inline:Ka.normal};this.options.pedantic?(r.block=ec.pedantic,r.inline=Ka.pedantic):this.options.gfm&&(r.block=ec.gfm,this.options.breaks?r.inline=Ka.breaks:r.inline=Ka.gfm),this.tokenizer.rules=r}static get rules(){return{block:ec,inline:Ka}}static lex(t,r){return new ar(r).lex(t)}static lexInline(t,r){return new ar(r).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
|
||
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(u,o,c)=>o+" ".repeat(c.length));let n,i,s,a;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(u=>(n=u.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length),n.raw.length===1&&r.length>0?r[r.length-1].raw+=`
|
||
`:r.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length),i=r[r.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
|
||
`+n.raw,i.text+=`
|
||
`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):r.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length),i=r[r.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
|
||
`+n.raw,i.text+=`
|
||
`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(s=t,this.options.extensions&&this.options.extensions.startBlock){let u=1/0,o=t.slice(1),c;this.options.extensions.startBlock.forEach(d=>{c=d.call({lexer:this},o),typeof c=="number"&&c>=0&&(u=Math.min(u,c))}),u<1/0&&u>=0&&(s=t.substring(0,u+1))}if(this.state.top&&(n=this.tokenizer.paragraph(s))){i=r[r.length-1],a&&i.type==="paragraph"?(i.raw+=`
|
||
`+n.raw,i.text+=`
|
||
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):r.push(n),a=s.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length),i=r[r.length-1],i&&i.type==="text"?(i.raw+=`
|
||
`+n.raw,i.text+=`
|
||
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):r.push(n);continue}if(t){let u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let n,i,s,a=t,u,o,c;if(this.tokens.links){let d=Object.keys(this.tokens.links);if(d.length>0)for(;(u=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)d.includes(u[0].slice(u[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,u.index)+"["+"a".repeat(u[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(u=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,u.index)+"["+"a".repeat(u[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(u=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,u.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(o||(c=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(d=>(n=d.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),i=r[r.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length),i=r[r.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(n=this.tokenizer.emStrong(t,a,c)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.codespan(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.br(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.del(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.autolink(t)){t=t.substring(n.raw.length),r.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(t))){t=t.substring(n.raw.length),r.push(n);continue}if(s=t,this.options.extensions&&this.options.extensions.startInline){let d=1/0,h=t.slice(1),f;this.options.extensions.startInline.forEach(p=>{f=p.call({lexer:this},h),typeof f=="number"&&f>=0&&(d=Math.min(d,f))}),d<1/0&&d>=0&&(s=t.substring(0,d+1))}if(n=this.tokenizer.inlineText(s)){t=t.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(c=n.raw.slice(-1)),o=!0,i=r[r.length-1],i&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(t){let d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return r}},As=class{options;constructor(t){this.options=t||Re.defaults}code(t,r,n){let i=(r||"").match(/^\S*/)?.[0];return t=t.replace(/\n$/,"")+`
|
||
`,i?'<pre><code class="language-'+Qt(i)+'">'+(n?t:Qt(t,!0))+`</code></pre>
|
||
`:"<pre><code>"+(n?t:Qt(t,!0))+`</code></pre>
|
||
`}blockquote(t){return`<blockquote>
|
||
${t}</blockquote>
|
||
`}html(t,r){return t}heading(t,r,n){return`<h${r}>${t}</h${r}>
|
||
`}hr(){return`<hr>
|
||
`}list(t,r,n){let i=r?"ol":"ul",s=r&&n!==1?' start="'+n+'"':"";return"<"+i+s+`>
|
||
`+t+"</"+i+`>
|
||
`}listitem(t,r,n){return`<li>${t}</li>
|
||
`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(t){return`<p>${t}</p>
|
||
`}table(t,r){return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
||
<thead>
|
||
`+t+`</thead>
|
||
`+r+`</table>
|
||
`}tablerow(t){return`<tr>
|
||
${t}</tr>
|
||
`}tablecell(t,r){let n=r.header?"th":"td";return(r.align?`<${n} align="${r.align}">`:`<${n}>`)+t+`</${n}>
|
||
`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return"<br>"}del(t){return`<del>${t}</del>`}link(t,r,n){let i=Tb(t);if(i===null)return n;t=i;let s='<a href="'+t+'"';return r&&(s+=' title="'+r+'"'),s+=">"+n+"</a>",s}image(t,r,n){let i=Tb(t);if(i===null)return n;t=i;let s=`<img src="${t}" alt="${n}"`;return r&&(s+=` title="${r}"`),s+=">",s}text(t){return t}},Wa=class{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,r,n){return""+n}image(t,r,n){return""+n}br(){return""}},ur=class{options;renderer;textRenderer;constructor(t){this.options=t||Re.defaults,this.options.renderer=this.options.renderer||new As,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Wa}static parse(t,r){return new ur(r).parse(t)}static parseInline(t,r){return new ur(r).parseInline(t)}parse(t,r=!0){let n="";for(let i=0;i<t.length;i++){let s=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){let a=s,u=this.options.extensions.renderers[a.type].call({parser:this},a);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(a.type)){n+=u||"";continue}}switch(s.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{let a=s;n+=this.renderer.heading(this.parseInline(a.tokens),a.depth,i2(this.parseInline(a.tokens,this.textRenderer)));continue}case"code":{let a=s;n+=this.renderer.code(a.text,a.lang,!!a.escaped);continue}case"table":{let a=s,u="",o="";for(let d=0;d<a.header.length;d++)o+=this.renderer.tablecell(this.parseInline(a.header[d].tokens),{header:!0,align:a.align[d]});u+=this.renderer.tablerow(o);let c="";for(let d=0;d<a.rows.length;d++){let h=a.rows[d];o="";for(let f=0;f<h.length;f++)o+=this.renderer.tablecell(this.parseInline(h[f].tokens),{header:!1,align:a.align[f]});c+=this.renderer.tablerow(o)}n+=this.renderer.table(u,c);continue}case"blockquote":{let a=s,u=this.parse(a.tokens);n+=this.renderer.blockquote(u);continue}case"list":{let a=s,u=a.ordered,o=a.start,c=a.loose,d="";for(let h=0;h<a.items.length;h++){let f=a.items[h],p=f.checked,A=f.task,b="";if(f.task){let D=this.renderer.checkbox(!!p);c?f.tokens.length>0&&f.tokens[0].type==="paragraph"?(f.tokens[0].text=D+" "+f.tokens[0].text,f.tokens[0].tokens&&f.tokens[0].tokens.length>0&&f.tokens[0].tokens[0].type==="text"&&(f.tokens[0].tokens[0].text=D+" "+f.tokens[0].tokens[0].text)):f.tokens.unshift({type:"text",text:D+" "}):b+=D+" "}b+=this.parse(f.tokens,c),d+=this.renderer.listitem(b,A,!!p)}n+=this.renderer.list(d,u,o);continue}case"html":{let a=s;n+=this.renderer.html(a.text,a.block);continue}case"paragraph":{let a=s;n+=this.renderer.paragraph(this.parseInline(a.tokens));continue}case"text":{let a=s,u=a.tokens?this.parseInline(a.tokens):a.text;for(;i+1<t.length&&t[i+1].type==="text";)a=t[++i],u+=`
|
||
`+(a.tokens?this.parseInline(a.tokens):a.text);n+=r?this.renderer.paragraph(u):u;continue}default:{let a='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}parseInline(t,r){r=r||this.renderer;let n="";for(let i=0;i<t.length;i++){let s=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){let a=this.options.extensions.renderers[s.type].call({parser:this},s);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){n+=a||"";continue}}switch(s.type){case"escape":{let a=s;n+=r.text(a.text);break}case"html":{let a=s;n+=r.html(a.text);break}case"link":{let a=s;n+=r.link(a.href,a.title,this.parseInline(a.tokens,r));break}case"image":{let a=s;n+=r.image(a.href,a.title,a.text);break}case"strong":{let a=s;n+=r.strong(this.parseInline(a.tokens,r));break}case"em":{let a=s;n+=r.em(this.parseInline(a.tokens,r));break}case"codespan":{let a=s;n+=r.codespan(a.text);break}case"br":{n+=r.br();break}case"del":{let a=s;n+=r.del(this.parseInline(a.tokens,r));break}case"text":{let a=s;n+=r.text(a.text);break}default:{let a='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}},mi=class{options;constructor(t){this.options=t||Re.defaults}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}};Vh(mi,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var ld=class{defaults=$o();options=this.setOptions;parse=this.#e(ar.lex,ur.parse);parseInline=this.#e(ar.lexInline,ur.parseInline);Parser=ur;Renderer=As;TextRenderer=Wa;Lexer=ar;Tokenizer=Es;Hooks=mi;constructor(...t){this.use(...t)}walkTokens(t,r){let n=[];for(let i of t)switch(n=n.concat(r.call(this,i)),i.type){case"table":{let s=i;for(let a of s.header)n=n.concat(this.walkTokens(a.tokens,r));for(let a of s.rows)for(let u of a)n=n.concat(this.walkTokens(u.tokens,r));break}case"list":{let s=i;n=n.concat(this.walkTokens(s.items,r));break}default:{let s=i;this.defaults.extensions?.childTokens?.[s.type]?this.defaults.extensions.childTokens[s.type].forEach(a=>{let u=s[a].flat(1/0);n=n.concat(this.walkTokens(u,r))}):s.tokens&&(n=n.concat(this.walkTokens(s.tokens,r)))}}return n}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let i=J({},n);if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let a=r.renderers[s.name];a?r.renderers[s.name]=function(...u){let o=s.renderer.apply(this,u);return o===!1&&(o=a.apply(this,u)),o}:r.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=r[s.level];a?a.unshift(s.tokenizer):r[s.level]=[s.tokenizer],s.start&&(s.level==="block"?r.startBlock?r.startBlock.push(s.start):r.startBlock=[s.start]:s.level==="inline"&&(r.startInline?r.startInline.push(s.start):r.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(r.childTokens[s.name]=s.childTokens)}),i.extensions=r),n.renderer){let s=this.defaults.renderer||new As(this.defaults);for(let a in n.renderer){if(!(a in s))throw new Error(`renderer '${a}' does not exist`);if(a==="options")continue;let u=a,o=n.renderer[u],c=s[u];s[u]=(...d)=>{let h=o.apply(s,d);return h===!1&&(h=c.apply(s,d)),h||""}}i.renderer=s}if(n.tokenizer){let s=this.defaults.tokenizer||new Es(this.defaults);for(let a in n.tokenizer){if(!(a in s))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let u=a,o=n.tokenizer[u],c=s[u];s[u]=(...d)=>{let h=o.apply(s,d);return h===!1&&(h=c.apply(s,d)),h}}i.tokenizer=s}if(n.hooks){let s=this.defaults.hooks||new mi;for(let a in n.hooks){if(!(a in s))throw new Error(`hook '${a}' does not exist`);if(a==="options")continue;let u=a,o=n.hooks[u],c=s[u];mi.passThroughHooks.has(a)?s[u]=d=>{if(this.defaults.async)return Promise.resolve(o.call(s,d)).then(f=>c.call(s,f));let h=o.call(s,d);return c.call(s,h)}:s[u]=(...d)=>{let h=o.apply(s,d);return h===!1&&(h=c.apply(s,d)),h}}i.hooks=s}if(n.walkTokens){let s=this.defaults.walkTokens,a=n.walkTokens;i.walkTokens=function(u){let o=[];return o.push(a.call(this,u)),s&&(o=o.concat(s.call(this,u))),o}}this.defaults=J(J({},this.defaults),i)}),this}setOptions(t){return this.defaults=J(J({},this.defaults),t),this}lexer(t,r){return ar.lex(t,r??this.defaults)}parser(t,r){return ur.parse(t,r??this.defaults)}#e(t,r){return(n,i)=>{let s=J({},i),a=J(J({},this.defaults),s);this.defaults.async===!0&&s.async===!1&&(a.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),a.async=!0);let u=this.#t(!!a.silent,!!a.async);if(typeof n=="undefined"||n===null)return u(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(a.hooks&&(a.hooks.options=a),a.async)return Promise.resolve(a.hooks?a.hooks.preprocess(n):n).then(o=>t(o,a)).then(o=>a.hooks?a.hooks.processAllTokens(o):o).then(o=>a.walkTokens?Promise.all(this.walkTokens(o,a.walkTokens)).then(()=>o):o).then(o=>r(o,a)).then(o=>a.hooks?a.hooks.postprocess(o):o).catch(u);try{a.hooks&&(n=a.hooks.preprocess(n));let o=t(n,a);a.hooks&&(o=a.hooks.processAllTokens(o)),a.walkTokens&&this.walkTokens(o,a.walkTokens);let c=r(o,a);return a.hooks&&(c=a.hooks.postprocess(c)),c}catch(o){return u(o)}}}#t(t,r){return n=>{if(n.message+=`
|
||
Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error occurred:</p><pre>"+Qt(n.message+"",!0)+"</pre>";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}},gi=new ld;function Ce(e,t){return gi.parse(e,t)}Ce.options=Ce.setOptions=function(e){return gi.setOptions(e),Ce.defaults=gi.defaults,pb(Ce.defaults),Ce};Ce.getDefaults=$o;Ce.defaults=Re.defaults;Ce.use=function(...e){return gi.use(...e),Ce.defaults=gi.defaults,pb(Ce.defaults),Ce};Ce.walkTokens=function(e,t){return gi.walkTokens(e,t)};Ce.parseInline=gi.parseInline;Ce.Parser=ur;Ce.parser=ur.parse;Ce.Renderer=As;Ce.TextRenderer=Wa;Ce.Lexer=ar;Ce.lexer=ar.lex;Ce.Tokenizer=Es;Ce.Hooks=mi;Ce.parse=Ce;var L2=Ce.options,M2=Ce.setOptions,k2=Ce.use,F2=Ce.walkTokens,B2=Ce.parseInline,j2=Ce,H2=ur.parse,U2=ar.lex;Re.Hooks=mi;Re.Lexer=ar;Re.Marked=ld;Re.Parser=ur;Re.Renderer=As;Re.TextRenderer=Wa;Re.Tokenizer=Es;Re.getDefaults=$o;Re.lexer=U2;Re.marked=Ce;Re.options=L2;Re.parse=j2;Re.parseInline=B2;Re.parser=H2;Re.setOptions=M2;Re.use=k2;Re.walkTokens=F2});var wb=U(Nb=>{"use strict";Object.defineProperty(Nb,"__esModule",{value:!0})});var fd=U(_i=>{"use strict";var tc=_i&&_i.__assign||function(){return tc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},tc.apply(this,arguments)};Object.defineProperty(_i,"__esModule",{value:!0});_i.flatten=void 0;var G2={xml:!1,decodeEntities:!0};_i.default=G2;var Rb={_useHtmlParser2:!0,xmlMode:!0};function q2(e){return(e==null?void 0:e.xml)?typeof e.xml=="boolean"?Rb:tc(tc({},Rb),e.xml):e??void 0}_i.flatten=q2});var ys=U(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.Doctype=He.CDATA=He.Tag=He.Style=He.Script=He.Comment=He.Directive=He.Text=He.Root=He.isTag=He.ElementType=void 0;var $t;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})($t=He.ElementType||(He.ElementType={}));function z2(e){return e.type===$t.Tag||e.type===$t.Script||e.type===$t.Style}He.isTag=z2;He.Root=$t.Root;He.Text=$t.Text;He.Directive=$t.Directive;He.Comment=$t.Comment;He.Script=$t.Script;He.Style=$t.Style;He.Tag=$t.Tag;He.CDATA=$t.CDATA;He.Doctype=$t.Doctype});var md=U(le=>{"use strict";var jn=le&&le.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ya=le&&le.__assign||function(){return Ya=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ya.apply(this,arguments)};Object.defineProperty(le,"__esModule",{value:!0});le.cloneNode=le.hasChildren=le.isDocument=le.isDirective=le.isComment=le.isText=le.isCDATA=le.isTag=le.Element=le.Document=le.CDATA=le.NodeWithChildren=le.ProcessingInstruction=le.Comment=le.Text=le.DataNode=le.Node=void 0;var kt=ys(),dd=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),hd(this,t)},e}();le.Node=dd;var rc=function(e){jn(t,e);function t(r){var n=e.call(this)||this;return n.data=r,n}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),t}(dd);le.DataNode=rc;var Pb=function(e){jn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=kt.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(rc);le.Text=Pb;var Lb=function(e){jn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=kt.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(rc);le.Comment=Lb;var Mb=function(e){jn(t,e);function t(r,n){var i=e.call(this,n)||this;return i.name=r,i.type=kt.ElementType.Directive,i}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(rc);le.ProcessingInstruction=Mb;var nc=function(e){jn(t,e);function t(r){var n=e.call(this)||this;return n.children=r,n}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t}(dd);le.NodeWithChildren=nc;var kb=function(e){jn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=kt.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(nc);le.CDATA=kb;var Fb=function(e){jn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=kt.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(nc);le.Document=Fb;var Bb=function(e){jn(t,e);function t(r,n,i,s){i===void 0&&(i=[]),s===void 0&&(s=r==="script"?kt.ElementType.Script:r==="style"?kt.ElementType.Style:kt.ElementType.Tag);var a=e.call(this,i)||this;return a.name=r,a.attribs=n,a.type=s,a}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var i,s;return{name:n,value:r.attribs[n],namespace:(i=r["x-attribsNamespace"])===null||i===void 0?void 0:i[n],prefix:(s=r["x-attribsPrefix"])===null||s===void 0?void 0:s[n]}})},enumerable:!1,configurable:!0}),t}(nc);le.Element=Bb;function jb(e){return(0,kt.isTag)(e)}le.isTag=jb;function Hb(e){return e.type===kt.ElementType.CDATA}le.isCDATA=Hb;function Ub(e){return e.type===kt.ElementType.Text}le.isText=Ub;function Gb(e){return e.type===kt.ElementType.Comment}le.isComment=Gb;function qb(e){return e.type===kt.ElementType.Directive}le.isDirective=qb;function zb(e){return e.type===kt.ElementType.Root}le.isDocument=zb;function V2(e){return Object.prototype.hasOwnProperty.call(e,"children")}le.hasChildren=V2;function hd(e,t){t===void 0&&(t=!1);var r;if(Ub(e))r=new Pb(e.data);else if(Gb(e))r=new Lb(e.data);else if(jb(e)){var n=t?pd(e.children):[],i=new Bb(e.name,Ya({},e.attribs),n);n.forEach(function(o){return o.parent=i}),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=Ya({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=Ya({},e["x-attribsPrefix"])),r=i}else if(Hb(e)){var n=t?pd(e.children):[],s=new kb(n);n.forEach(function(c){return c.parent=s}),r=s}else if(zb(e)){var n=t?pd(e.children):[],a=new Fb(n);n.forEach(function(c){return c.parent=a}),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),r=a}else if(qb(e)){var u=new Mb(e.name,e.data);e["x-name"]!=null&&(u["x-name"]=e["x-name"],u["x-publicId"]=e["x-publicId"],u["x-systemId"]=e["x-systemId"]),r=u}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}le.cloneNode=hd;function pd(e){for(var t=e.map(function(n){return hd(n,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}});var yt=U(Rr=>{"use strict";var K2=Rr&&Rr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),W2=Rr&&Rr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&K2(t,e,r)};Object.defineProperty(Rr,"__esModule",{value:!0});Rr.DomHandler=void 0;var gd=ys(),Hn=md();W2(md(),Rr);var Vb={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},Kb=function(){function e(t,r,n){this.dom=[],this.root=new Hn.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(n=r,r=Vb),typeof t=="object"&&(r=t,t=void 0),this.callback=t??null,this.options=r??Vb,this.elementCB=n??null}return e.prototype.onparserinit=function(t){this.parser=t},e.prototype.onreset=function(){this.dom=[],this.root=new Hn.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(t){this.handleCallback(t)},e.prototype.onclosetag=function(){this.lastNode=null;var t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)},e.prototype.onopentag=function(t,r){var n=this.options.xmlMode?gd.ElementType.Tag:void 0,i=new Hn.Element(t,r,void 0,n);this.addNode(i),this.tagStack.push(i)},e.prototype.ontext=function(t){var r=this.lastNode;if(r&&r.type===gd.ElementType.Text)r.data+=t,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{var n=new Hn.Text(t);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===gd.ElementType.Comment){this.lastNode.data+=t;return}var r=new Hn.Comment(t);this.addNode(r),this.lastNode=r},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var t=new Hn.Text(""),r=new Hn.CDATA([t]);this.addNode(r),t.parent=r,this.lastNode=t},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(t,r){var n=new Hn.ProcessingInstruction(t,r);this.addNode(n)},e.prototype.handleCallback=function(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t},e.prototype.addNode=function(t){var r=this.tagStack[this.tagStack.length-1],n=r.children[r.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),r.children.push(t),n&&(t.prev=n,n.next=t),t.parent=r,this.lastNode=null},e}();Rr.DomHandler=Kb;Rr.default=Kb});var Wb=U(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.default=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(function(e){return e.charCodeAt(0)}))});var Yb=U(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.default=new Uint16Array("\u0200aglq \u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(function(e){return e.charCodeAt(0)}))});var Ed=U(Un=>{"use strict";var bd;Object.defineProperty(Un,"__esModule",{value:!0});Un.replaceCodePoint=Un.fromCodePoint=void 0;var Y2=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);Un.fromCodePoint=(bd=String.fromCodePoint)!==null&&bd!==void 0?bd:function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Qb(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Y2.get(e))!==null&&t!==void 0?t:e}Un.replaceCodePoint=Qb;function Q2(e){return(0,Un.fromCodePoint)(Qb(e))}Un.default=Q2});var Is=U(fe=>{"use strict";var $2=fe&&fe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),X2=fe&&fe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Z2=fe&&fe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&$2(t,e,r);return X2(t,e),t},$b=fe&&fe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fe,"__esModule",{value:!0});fe.decodeXML=fe.decodeHTMLStrict=fe.decodeHTMLAttribute=fe.decodeHTML=fe.determineBranch=fe.EntityDecoder=fe.DecodingMode=fe.BinTrieFlags=fe.fromCodePoint=fe.replaceCodePoint=fe.decodeCodePoint=fe.xmlDecodeTree=fe.htmlDecodeTree=void 0;var Xb=$b(Wb());fe.htmlDecodeTree=Xb.default;var Zb=$b(Yb());fe.xmlDecodeTree=Zb.default;var Ad=Z2(Ed());fe.decodeCodePoint=Ad.default;var Jb=Ed();Object.defineProperty(fe,"replaceCodePoint",{enumerable:!0,get:function(){return Jb.replaceCodePoint}});Object.defineProperty(fe,"fromCodePoint",{enumerable:!0,get:function(){return Jb.fromCodePoint}});var ct;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(ct||(ct={}));var J2=32,Ti;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ti=fe.BinTrieFlags||(fe.BinTrieFlags={}));function yd(e){return e>=ct.ZERO&&e<=ct.NINE}function eN(e){return e>=ct.UPPER_A&&e<=ct.UPPER_F||e>=ct.LOWER_A&&e<=ct.LOWER_F}function tN(e){return e>=ct.UPPER_A&&e<=ct.UPPER_Z||e>=ct.LOWER_A&&e<=ct.LOWER_Z||yd(e)}function rN(e){return e===ct.EQUALS||tN(e)}var lt;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(lt||(lt={}));var Pr;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Pr=fe.DecodingMode||(fe.DecodingMode={}));var eE=function(){function e(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=lt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Pr.Strict}return e.prototype.startEntity=function(t){this.decodeMode=t,this.state=lt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},e.prototype.write=function(t,r){switch(this.state){case lt.EntityStart:return t.charCodeAt(r)===ct.NUM?(this.state=lt.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=lt.NamedEntity,this.stateNamedEntity(t,r));case lt.NumericStart:return this.stateNumericStart(t,r);case lt.NumericDecimal:return this.stateNumericDecimal(t,r);case lt.NumericHex:return this.stateNumericHex(t,r);case lt.NamedEntity:return this.stateNamedEntity(t,r)}},e.prototype.stateNumericStart=function(t,r){return r>=t.length?-1:(t.charCodeAt(r)|J2)===ct.LOWER_X?(this.state=lt.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=lt.NumericDecimal,this.stateNumericDecimal(t,r))},e.prototype.addToNumericResult=function(t,r,n,i){if(r!==n){var s=n-r;this.result=this.result*Math.pow(i,s)+parseInt(t.substr(r,s),i),this.consumed+=s}},e.prototype.stateNumericHex=function(t,r){for(var n=r;r<t.length;){var i=t.charCodeAt(r);if(yd(i)||eN(i))r+=1;else return this.addToNumericResult(t,n,r,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,n,r,16),-1},e.prototype.stateNumericDecimal=function(t,r){for(var n=r;r<t.length;){var i=t.charCodeAt(r);if(yd(i))r+=1;else return this.addToNumericResult(t,n,r,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,n,r,10),-1},e.prototype.emitNumericEntity=function(t,r){var n;if(this.consumed<=r)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===ct.SEMI)this.consumed+=1;else if(this.decodeMode===Pr.Strict)return 0;return this.emitCodePoint((0,Ad.replaceCodePoint)(this.result),this.consumed),this.errors&&(t!==ct.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},e.prototype.stateNamedEntity=function(t,r){for(var n=this.decodeTree,i=n[this.treeIndex],s=(i&Ti.VALUE_LENGTH)>>14;r<t.length;r++,this.excess++){var a=t.charCodeAt(r);if(this.treeIndex=rE(n,i,this.treeIndex+Math.max(1,s),a),this.treeIndex<0)return this.result===0||this.decodeMode===Pr.Attribute&&(s===0||rN(a))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],s=(i&Ti.VALUE_LENGTH)>>14,s!==0){if(a===ct.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Pr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},e.prototype.emitNotTerminatedNamedEntity=function(){var t,r=this,n=r.result,i=r.decodeTree,s=(i[n]&Ti.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,s,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed},e.prototype.emitNamedEntityData=function(t,r,n){var i=this.decodeTree;return this.emitCodePoint(r===1?i[t]&~Ti.VALUE_LENGTH:i[t+1],n),r===3&&this.emitCodePoint(i[t+2],n),n},e.prototype.end=function(){var t;switch(this.state){case lt.NamedEntity:return this.result!==0&&(this.decodeMode!==Pr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case lt.NumericDecimal:return this.emitNumericEntity(0,2);case lt.NumericHex:return this.emitNumericEntity(0,3);case lt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case lt.EntityStart:return 0}},e}();fe.EntityDecoder=eE;function tE(e){var t="",r=new eE(e,function(n){return t+=(0,Ad.fromCodePoint)(n)});return function(i,s){for(var a=0,u=0;(u=i.indexOf("&",u))>=0;){t+=i.slice(a,u),r.startEntity(s);var o=r.write(i,u+1);if(o<0){a=u+r.end();break}a=u+o,u=o===0?a+1:a}var c=t+i.slice(a);return t="",c}}function rE(e,t,r,n){var i=(t&Ti.BRANCH_LENGTH)>>7,s=t&Ti.JUMP_TABLE;if(i===0)return s!==0&&n===s?r:-1;if(s){var a=n-s;return a<0||a>=i?-1:e[r+a]-1}for(var u=r,o=u+i-1;u<=o;){var c=u+o>>>1,d=e[c];if(d<n)u=c+1;else if(d>n)o=c-1;else return e[c+i]}return-1}fe.determineBranch=rE;var Id=tE(Xb.default),nN=tE(Zb.default);function iN(e,t){return t===void 0&&(t=Pr.Legacy),Id(e,t)}fe.decodeHTML=iN;function sN(e){return Id(e,Pr.Attribute)}fe.decodeHTMLAttribute=sN;function aN(e){return Id(e,Pr.Strict)}fe.decodeHTMLStrict=aN;function uN(e){return nN(e,Pr.Strict)}fe.decodeXML=uN});var nE=U(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});function ic(e){for(var t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}vd.default=new Map(ic([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(ic([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(ic([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(ic([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]))});var Qa=U(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.escapeText=it.escapeAttribute=it.escapeUTF8=it.escape=it.encodeXML=it.getCodePoint=it.xmlReplacer=void 0;it.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var iE=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);it.getCodePoint=String.prototype.codePointAt!=null?function(e,t){return e.codePointAt(t)}:function(e,t){return(e.charCodeAt(t)&64512)==55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)};function sE(e){for(var t="",r=0,n;(n=it.xmlReplacer.exec(e))!==null;){var i=n.index,s=e.charCodeAt(i),a=iE.get(s);a!==void 0?(t+=e.substring(r,i)+a,r=i+1):(t+="".concat(e.substring(r,i),"&#x").concat((0,it.getCodePoint)(e,i).toString(16),";"),r=it.xmlReplacer.lastIndex+=Number((s&64512)==55296))}return t+e.substr(r)}it.encodeXML=sE;it.escape=sE;function Cd(e,t){return function(n){for(var i,s=0,a="";i=e.exec(n);)s!==i.index&&(a+=n.substring(s,i.index)),a+=t.get(i[0].charCodeAt(0)),s=i.index+1;return a+n.substring(s)}}it.escapeUTF8=Cd(/[&<>'"]/g,iE);it.escapeAttribute=Cd(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]]));it.escapeText=Cd(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))});var Dd=U(Gn=>{"use strict";var oN=Gn&&Gn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Gn,"__esModule",{value:!0});Gn.encodeNonAsciiHTML=Gn.encodeHTML=void 0;var cN=oN(nE()),aE=Qa(),lN=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function fN(e){return uE(lN,e)}Gn.encodeHTML=fN;function dN(e){return uE(aE.xmlReplacer,e)}Gn.encodeNonAsciiHTML=dN;function uE(e,t){for(var r="",n=0,i;(i=e.exec(t))!==null;){var s=i.index;r+=t.substring(n,s);var a=t.charCodeAt(s),u=cN.default.get(a);if(typeof u=="object"){if(s+1<t.length){var o=t.charCodeAt(s+1),c=typeof u.n=="number"?u.n===o?u.o:void 0:u.n.get(o);if(c!==void 0){r+=c,n=e.lastIndex+=1;continue}}u=u.v}if(u!==void 0)r+=u,n=s+1;else{var d=(0,aE.getCodePoint)(t,s);r+="&#x".concat(d.toString(16),";"),n=e.lastIndex+=Number(d!==a)}}return r+t.substr(n)}});var lE=U(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.decodeXMLStrict=re.decodeHTML5Strict=re.decodeHTML4Strict=re.decodeHTML5=re.decodeHTML4=re.decodeHTMLAttribute=re.decodeHTMLStrict=re.decodeHTML=re.decodeXML=re.DecodingMode=re.EntityDecoder=re.encodeHTML5=re.encodeHTML4=re.encodeNonAsciiHTML=re.encodeHTML=re.escapeText=re.escapeAttribute=re.escapeUTF8=re.escape=re.encodeXML=re.encode=re.decodeStrict=re.decode=re.EncodingMode=re.EntityLevel=void 0;var Sd=Is(),oE=Dd(),sc=Qa(),vs;(function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"})(vs=re.EntityLevel||(re.EntityLevel={}));var $a;(function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"})($a=re.EncodingMode||(re.EncodingMode={}));function cE(e,t){t===void 0&&(t=vs.XML);var r=typeof t=="number"?t:t.level;if(r===vs.HTML){var n=typeof t=="object"?t.mode:void 0;return(0,Sd.decodeHTML)(e,n)}return(0,Sd.decodeXML)(e)}re.decode=cE;function hN(e,t){var r;t===void 0&&(t=vs.XML);var n=typeof t=="number"?{level:t}:t;return(r=n.mode)!==null&&r!==void 0||(n.mode=Sd.DecodingMode.Strict),cE(e,n)}re.decodeStrict=hN;function pN(e,t){t===void 0&&(t=vs.XML);var r=typeof t=="number"?{level:t}:t;return r.mode===$a.UTF8?(0,sc.escapeUTF8)(e):r.mode===$a.Attribute?(0,sc.escapeAttribute)(e):r.mode===$a.Text?(0,sc.escapeText)(e):r.level===vs.HTML?r.mode===$a.ASCII?(0,oE.encodeNonAsciiHTML)(e):(0,oE.encodeHTML)(e):(0,sc.encodeXML)(e)}re.encode=pN;var Xa=Qa();Object.defineProperty(re,"encodeXML",{enumerable:!0,get:function(){return Xa.encodeXML}});Object.defineProperty(re,"escape",{enumerable:!0,get:function(){return Xa.escape}});Object.defineProperty(re,"escapeUTF8",{enumerable:!0,get:function(){return Xa.escapeUTF8}});Object.defineProperty(re,"escapeAttribute",{enumerable:!0,get:function(){return Xa.escapeAttribute}});Object.defineProperty(re,"escapeText",{enumerable:!0,get:function(){return Xa.escapeText}});var ac=Dd();Object.defineProperty(re,"encodeHTML",{enumerable:!0,get:function(){return ac.encodeHTML}});Object.defineProperty(re,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return ac.encodeNonAsciiHTML}});Object.defineProperty(re,"encodeHTML4",{enumerable:!0,get:function(){return ac.encodeHTML}});Object.defineProperty(re,"encodeHTML5",{enumerable:!0,get:function(){return ac.encodeHTML}});var br=Is();Object.defineProperty(re,"EntityDecoder",{enumerable:!0,get:function(){return br.EntityDecoder}});Object.defineProperty(re,"DecodingMode",{enumerable:!0,get:function(){return br.DecodingMode}});Object.defineProperty(re,"decodeXML",{enumerable:!0,get:function(){return br.decodeXML}});Object.defineProperty(re,"decodeHTML",{enumerable:!0,get:function(){return br.decodeHTML}});Object.defineProperty(re,"decodeHTMLStrict",{enumerable:!0,get:function(){return br.decodeHTMLStrict}});Object.defineProperty(re,"decodeHTMLAttribute",{enumerable:!0,get:function(){return br.decodeHTMLAttribute}});Object.defineProperty(re,"decodeHTML4",{enumerable:!0,get:function(){return br.decodeHTML}});Object.defineProperty(re,"decodeHTML5",{enumerable:!0,get:function(){return br.decodeHTML}});Object.defineProperty(re,"decodeHTML4Strict",{enumerable:!0,get:function(){return br.decodeHTMLStrict}});Object.defineProperty(re,"decodeHTML5Strict",{enumerable:!0,get:function(){return br.decodeHTMLStrict}});Object.defineProperty(re,"decodeXMLStrict",{enumerable:!0,get:function(){return br.decodeXML}})});var fE=U(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.attributeNames=Cs.elementNames=void 0;Cs.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(e){return[e.toLowerCase(),e]}));Cs.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(e){return[e.toLowerCase(),e]}))});var xd=U(Xt=>{"use strict";var Ds=Xt&&Xt.__assign||function(){return Ds=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ds.apply(this,arguments)},mN=Xt&&Xt.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),gN=Xt&&Xt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),_N=Xt&&Xt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&mN(t,e,r);return gN(t,e),t};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.render=void 0;var un=_N(ys()),uc=lE(),dE=fE(),TN=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function bN(e){return e.replace(/"/g,""")}function EN(e,t){var r;if(!!e){var n=((r=t.encodeEntities)!==null&&r!==void 0?r:t.decodeEntities)===!1?bN:t.xmlMode||t.encodeEntities!=="utf8"?uc.encodeXML:uc.escapeAttribute;return Object.keys(e).map(function(i){var s,a,u=(s=e[i])!==null&&s!==void 0?s:"";return t.xmlMode==="foreign"&&(i=(a=dE.attributeNames.get(i))!==null&&a!==void 0?a:i),!t.emptyAttrs&&!t.xmlMode&&u===""?i:"".concat(i,'="').concat(n(u),'"')}).join(" ")}}var hE=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function oc(e,t){t===void 0&&(t={});for(var r=("length"in e)?e:[e],n="",i=0;i<r.length;i++)n+=AN(r[i],t);return n}Xt.render=oc;Xt.default=oc;function AN(e,t){switch(e.type){case un.Root:return oc(e.children,t);case un.Doctype:case un.Directive:return CN(e);case un.Comment:return xN(e);case un.CDATA:return SN(e);case un.Script:case un.Style:case un.Tag:return vN(e,t);case un.Text:return DN(e,t)}}var yN=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),IN=new Set(["svg","math"]);function vN(e,t){var r;t.xmlMode==="foreign"&&(e.name=(r=dE.elementNames.get(e.name))!==null&&r!==void 0?r:e.name,e.parent&&yN.has(e.parent.name)&&(t=Ds(Ds({},t),{xmlMode:!1}))),!t.xmlMode&&IN.has(e.name)&&(t=Ds(Ds({},t),{xmlMode:"foreign"}));var n="<".concat(e.name),i=EN(e.attribs,t);return i&&(n+=" ".concat(i)),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&hE.has(e.name))?(t.xmlMode||(n+=" "),n+="/>"):(n+=">",e.children.length>0&&(n+=oc(e.children,t)),(t.xmlMode||!hE.has(e.name))&&(n+="</".concat(e.name,">"))),n}function CN(e){return"<".concat(e.data,">")}function DN(e,t){var r,n=e.data||"";return((r=t.encodeEntities)!==null&&r!==void 0?r:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&TN.has(e.parent.name))&&(n=t.xmlMode||t.encodeEntities!=="utf8"?(0,uc.encodeXML)(n):(0,uc.escapeText)(n)),n}function SN(e){return"<![CDATA[".concat(e.children[0].data,"]]>")}function xN(e){return"<!--".concat(e.data,"-->")}});var wd=U(Ft=>{"use strict";var ON=Ft&&Ft.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ft,"__esModule",{value:!0});Ft.innerText=Ft.textContent=Ft.getText=Ft.getInnerHTML=Ft.getOuterHTML=void 0;var Lr=yt(),NN=ON(xd()),wN=ys();function pE(e,t){return(0,NN.default)(e,t)}Ft.getOuterHTML=pE;function RN(e,t){return(0,Lr.hasChildren)(e)?e.children.map(function(r){return pE(r,t)}).join(""):""}Ft.getInnerHTML=RN;function cc(e){return Array.isArray(e)?e.map(cc).join(""):(0,Lr.isTag)(e)?e.name==="br"?`
|
||
`:cc(e.children):(0,Lr.isCDATA)(e)?cc(e.children):(0,Lr.isText)(e)?e.data:""}Ft.getText=cc;function Od(e){return Array.isArray(e)?e.map(Od).join(""):(0,Lr.hasChildren)(e)&&!(0,Lr.isComment)(e)?Od(e.children):(0,Lr.isText)(e)?e.data:""}Ft.textContent=Od;function Nd(e){return Array.isArray(e)?e.map(Nd).join(""):(0,Lr.hasChildren)(e)&&(e.type===wN.ElementType.Tag||(0,Lr.isCDATA)(e))?Nd(e.children):(0,Lr.isText)(e)?e.data:""}Ft.innerText=Nd});var _E=U(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.prevElementSibling=ft.nextElementSibling=ft.getName=ft.hasAttrib=ft.getAttributeValue=ft.getSiblings=ft.getParent=ft.getChildren=void 0;var Rd=yt();function mE(e){return(0,Rd.hasChildren)(e)?e.children:[]}ft.getChildren=mE;function gE(e){return e.parent||null}ft.getParent=gE;function PN(e){var t,r,n=gE(e);if(n!=null)return mE(n);for(var i=[e],s=e.prev,a=e.next;s!=null;)i.unshift(s),t=s,s=t.prev;for(;a!=null;)i.push(a),r=a,a=r.next;return i}ft.getSiblings=PN;function LN(e,t){var r;return(r=e.attribs)===null||r===void 0?void 0:r[t]}ft.getAttributeValue=LN;function MN(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}ft.hasAttrib=MN;function kN(e){return e.name}ft.getName=kN;function FN(e){for(var t,r=e.next;r!==null&&!(0,Rd.isTag)(r);)t=r,r=t.next;return r}ft.nextElementSibling=FN;function BN(e){for(var t,r=e.prev;r!==null&&!(0,Rd.isTag)(r);)t=r,r=t.prev;return r}ft.prevElementSibling=BN});var TE=U(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.prepend=Bt.prependChild=Bt.append=Bt.appendChild=Bt.replaceElement=Bt.removeElement=void 0;function Za(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children,r=t.lastIndexOf(e);r>=0&&t.splice(r,1)}e.next=null,e.prev=null,e.parent=null}Bt.removeElement=Za;function jN(e,t){var r=t.prev=e.prev;r&&(r.next=t);var n=t.next=e.next;n&&(n.prev=t);var i=t.parent=e.parent;if(i){var s=i.children;s[s.lastIndexOf(e)]=t,e.parent=null}}Bt.replaceElement=jN;function HN(e,t){if(Za(t),t.next=null,t.parent=e,e.children.push(t)>1){var r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null}Bt.appendChild=HN;function UN(e,t){Za(t);var r=e.parent,n=e.next;if(t.next=n,t.prev=e,e.next=t,t.parent=r,n){if(n.prev=t,r){var i=r.children;i.splice(i.lastIndexOf(n),0,t)}}else r&&r.children.push(t)}Bt.append=UN;function GN(e,t){if(Za(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){var r=e.children[1];r.prev=t,t.next=r}else t.next=null}Bt.prependChild=GN;function qN(e,t){Za(t);var r=e.parent;if(r){var n=r.children;n.splice(n.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}Bt.prepend=qN});var Pd=U(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.findAll=jt.existsOne=jt.findOne=jt.findOneChild=jt.find=jt.filter=void 0;var lc=yt();function zN(e,t,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),bE(e,Array.isArray(t)?t:[t],r,n)}jt.filter=zN;function bE(e,t,r,n){for(var i=[],s=[t],a=[0];;){if(a[0]>=s[0].length){if(a.length===1)return i;s.shift(),a.shift();continue}var u=s[0][a[0]++];if(e(u)&&(i.push(u),--n<=0))return i;r&&(0,lc.hasChildren)(u)&&u.children.length>0&&(a.unshift(0),s.unshift(u.children))}}jt.find=bE;function VN(e,t){return t.find(e)}jt.findOneChild=VN;function EE(e,t,r){r===void 0&&(r=!0);for(var n=null,i=0;i<t.length&&!n;i++){var s=t[i];if((0,lc.isTag)(s))e(s)?n=s:r&&s.children.length>0&&(n=EE(e,s.children,!0));else continue}return n}jt.findOne=EE;function AE(e,t){return t.some(function(r){return(0,lc.isTag)(r)&&(e(r)||AE(e,r.children))})}jt.existsOne=AE;function KN(e,t){for(var r=[],n=[t],i=[0];;){if(i[0]>=n[0].length){if(n.length===1)return r;n.shift(),i.shift();continue}var s=n[0][i[0]++];!(0,lc.isTag)(s)||(e(s)&&r.push(s),s.children.length>0&&(i.unshift(0),n.unshift(s.children)))}}jt.findAll=KN});var Ld=U(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.getElementsByTagType=or.getElementsByTagName=or.getElementById=or.getElements=or.testElement=void 0;var bi=yt(),fc=Pd(),dc={tag_name:function(e){return typeof e=="function"?function(t){return(0,bi.isTag)(t)&&e(t.name)}:e==="*"?bi.isTag:function(t){return(0,bi.isTag)(t)&&t.name===e}},tag_type:function(e){return typeof e=="function"?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return typeof e=="function"?function(t){return(0,bi.isText)(t)&&e(t.data)}:function(t){return(0,bi.isText)(t)&&t.data===e}}};function yE(e,t){return typeof t=="function"?function(r){return(0,bi.isTag)(r)&&t(r.attribs[e])}:function(r){return(0,bi.isTag)(r)&&r.attribs[e]===t}}function WN(e,t){return function(r){return e(r)||t(r)}}function IE(e){var t=Object.keys(e).map(function(r){var n=e[r];return Object.prototype.hasOwnProperty.call(dc,r)?dc[r](n):yE(r,n)});return t.length===0?null:t.reduce(WN)}function YN(e,t){var r=IE(e);return r?r(t):!0}or.testElement=YN;function QN(e,t,r,n){n===void 0&&(n=1/0);var i=IE(e);return i?(0,fc.filter)(i,t,r,n):[]}or.getElements=QN;function $N(e,t,r){return r===void 0&&(r=!0),Array.isArray(t)||(t=[t]),(0,fc.findOne)(yE("id",e),t,r)}or.getElementById=$N;function XN(e,t,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,fc.filter)(dc.tag_name(e),t,r,n)}or.getElementsByTagName=XN;function ZN(e,t,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,fc.filter)(dc.tag_type(e),t,r,n)}or.getElementsByTagType=ZN});var DE=U(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.uniqueSort=Er.compareDocumentPosition=Er.DocumentPosition=Er.removeSubsets=void 0;var vE=yt();function JN(e){for(var t=e.length;--t>=0;){var r=e[t];if(t>0&&e.lastIndexOf(r,t-1)>=0){e.splice(t,1);continue}for(var n=r.parent;n;n=n.parent)if(e.includes(n)){e.splice(t,1);break}}return e}Er.removeSubsets=JN;var Mr;(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})(Mr=Er.DocumentPosition||(Er.DocumentPosition={}));function CE(e,t){var r=[],n=[];if(e===t)return 0;for(var i=(0,vE.hasChildren)(e)?e:e.parent;i;)r.unshift(i),i=i.parent;for(i=(0,vE.hasChildren)(t)?t:t.parent;i;)n.unshift(i),i=i.parent;for(var s=Math.min(r.length,n.length),a=0;a<s&&r[a]===n[a];)a++;if(a===0)return Mr.DISCONNECTED;var u=r[a-1],o=u.children,c=r[a],d=n[a];return o.indexOf(c)>o.indexOf(d)?u===t?Mr.FOLLOWING|Mr.CONTAINED_BY:Mr.FOLLOWING:u===e?Mr.PRECEDING|Mr.CONTAINS:Mr.PRECEDING}Er.compareDocumentPosition=CE;function e3(e){return e=e.filter(function(t,r,n){return!n.includes(t,r+1)}),e.sort(function(t,r){var n=CE(t,r);return n&Mr.PRECEDING?-1:n&Mr.FOLLOWING?1:0}),e}Er.uniqueSort=e3});var xE=U(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.getFeed=void 0;var t3=wd(),Ja=Ld();function r3(e){var t=hc(u3,e);return t?t.name==="feed"?n3(t):i3(t):null}pc.getFeed=r3;function n3(e){var t,r=e.children,n={type:"atom",items:(0,Ja.getElementsByTagName)("entry",r).map(function(a){var u,o=a.children,c={media:SE(o)};Ht(c,"id","id",o),Ht(c,"title","title",o);var d=(u=hc("link",o))===null||u===void 0?void 0:u.attribs.href;d&&(c.link=d);var h=qn("summary",o)||qn("content",o);h&&(c.description=h);var f=qn("updated",o);return f&&(c.pubDate=new Date(f)),c})};Ht(n,"id","id",r),Ht(n,"title","title",r);var i=(t=hc("link",r))===null||t===void 0?void 0:t.attribs.href;i&&(n.link=i),Ht(n,"description","subtitle",r);var s=qn("updated",r);return s&&(n.updated=new Date(s)),Ht(n,"author","email",r,!0),n}function i3(e){var t,r,n=(r=(t=hc("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&r!==void 0?r:[],i={type:e.name.substr(0,3),id:"",items:(0,Ja.getElementsByTagName)("item",e.children).map(function(a){var u=a.children,o={media:SE(u)};Ht(o,"id","guid",u),Ht(o,"title","title",u),Ht(o,"link","link",u),Ht(o,"description","description",u);var c=qn("pubDate",u)||qn("dc:date",u);return c&&(o.pubDate=new Date(c)),o})};Ht(i,"title","title",n),Ht(i,"link","link",n),Ht(i,"description","description",n);var s=qn("lastBuildDate",n);return s&&(i.updated=new Date(s)),Ht(i,"author","managingEditor",n,!0),i}var s3=["url","type","lang"],a3=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function SE(e){return(0,Ja.getElementsByTagName)("media:content",e).map(function(t){for(var r=t.attribs,n={medium:r.medium,isDefault:!!r.isDefault},i=0,s=s3;i<s.length;i++){var a=s[i];r[a]&&(n[a]=r[a])}for(var u=0,o=a3;u<o.length;u++){var a=o[u];r[a]&&(n[a]=parseInt(r[a],10))}return r.expression&&(n.expression=r.expression),n})}function hc(e,t){return(0,Ja.getElementsByTagName)(e,t,!0,1)[0]}function qn(e,t,r){return r===void 0&&(r=!1),(0,t3.textContent)((0,Ja.getElementsByTagName)(e,t,r,1)).trim()}function Ht(e,t,r,n,i){i===void 0&&(i=!1);var s=qn(r,n,i);s&&(e[t]=s)}function u3(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}});var Ar=U(Ue=>{"use strict";var o3=Ue&&Ue.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Ei=Ue&&Ue.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&o3(t,e,r)};Object.defineProperty(Ue,"__esModule",{value:!0});Ue.hasChildren=Ue.isDocument=Ue.isComment=Ue.isText=Ue.isCDATA=Ue.isTag=void 0;Ei(wd(),Ue);Ei(_E(),Ue);Ei(TE(),Ue);Ei(Pd(),Ue);Ei(Ld(),Ue);Ei(DE(),Ue);Ei(xE(),Ue);var Ss=yt();Object.defineProperty(Ue,"isTag",{enumerable:!0,get:function(){return Ss.isTag}});Object.defineProperty(Ue,"isCDATA",{enumerable:!0,get:function(){return Ss.isCDATA}});Object.defineProperty(Ue,"isText",{enumerable:!0,get:function(){return Ss.isText}});Object.defineProperty(Ue,"isComment",{enumerable:!0,get:function(){return Ss.isComment}});Object.defineProperty(Ue,"isDocument",{enumerable:!0,get:function(){return Ss.isDocument}});Object.defineProperty(Ue,"hasChildren",{enumerable:!0,get:function(){return Ss.hasChildren}})});var yi=U(Ve=>{"use strict";var Ai=Ve&&Ve.__assign||function(){return Ai=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ai.apply(this,arguments)},c3=Ve&&Ve.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),l3=Ve&&Ve.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),f3=Ve&&Ve.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&c3(t,e,r);return l3(t,e),t};Object.defineProperty(Ve,"__esModule",{value:!0});Ve.merge=Ve.contains=Ve.root=Ve.parseHTML=Ve.text=Ve.xml=Ve.html=void 0;var d3=Ar(),Md=f3(fd());function OE(e,t,r){return e?e(t??e._root.children,null,void 0,r).toString():""}function h3(e,t){return!t&&typeof e=="object"&&e!=null&&!("length"in e)&&!("type"in e)}function p3(e,t){var r=h3(e)?(t=e,void 0):e,n=Ai(Ai(Ai({},Md.default),this===null||this===void 0?void 0:this._options),(0,Md.flatten)(t??{}));return OE(this,r,n)}Ve.html=p3;function m3(e){var t=Ai(Ai({},this._options),{xmlMode:!0});return OE(this,e,t)}Ve.xml=m3;function g3(e){for(var t=e||(this?this.root():[]),r="",n=0;n<t.length;n++)r+=(0,d3.textContent)(t[n]);return r}Ve.text=g3;function _3(e,t,r){if(r===void 0&&(r=typeof t=="boolean"?t:!1),!e||typeof e!="string")return null;typeof t=="boolean"&&(r=t);var n=this.load(e,Md.default,!1);return r||n("script").remove(),n.root()[0].children.slice()}Ve.parseHTML=_3;function T3(){return this(this._root)}Ve.root=T3;function b3(e,t){if(t===e)return!1;for(var r=t;r&&r!==r.parent;)if(r=r.parent,r===e)return!0;return!1}Ve.contains=b3;function E3(e,t){if(!(!NE(e)||!NE(t))){for(var r=e.length,n=+t.length,i=0;i<n;i++)e[r++]=t[i];return e.length=r,e}}Ve.merge=E3;function NE(e){if(Array.isArray(e))return!0;if(typeof e!="object"||!Object.prototype.hasOwnProperty.call(e,"length")||typeof e.length!="number"||e.length<0)return!1;for(var t=0;t<e.length;t++)if(!(t in e))return!1;return!0}});var vi=U(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.isHtml=It.cloneDom=It.domEach=It.cssCase=It.camelCase=It.isCheerio=It.isTag=void 0;var kd=yt(),A3=yt();Object.defineProperty(It,"isTag",{enumerable:!0,get:function(){return A3.isTag}});function y3(e){return e.cheerio!=null}It.isCheerio=y3;function I3(e){return e.replace(/[_.-](\w|$)/g,function(t,r){return r.toUpperCase()})}It.camelCase=I3;function v3(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()}It.cssCase=v3;function C3(e,t){for(var r=e.length,n=0;n<r;n++)t(e[n],n);return e}It.domEach=C3;function D3(e){var t="length"in e?Array.prototype.map.call(e,function(n){return(0,kd.cloneNode)(n,!0)}):[(0,kd.cloneNode)(e,!0)],r=new kd.Document(t);return t.forEach(function(n){n.parent=r}),t}It.cloneDom=D3;var Ii;(function(e){e[e.LowerA=97]="LowerA",e[e.LowerZ=122]="LowerZ",e[e.UpperA=65]="UpperA",e[e.UpperZ=90]="UpperZ",e[e.Exclamation=33]="Exclamation"})(Ii||(Ii={}));function S3(e){var t=e.indexOf("<");if(t<0||t>e.length-3)return!1;var r=e.charCodeAt(t+1);return(r>=Ii.LowerA&&r<=Ii.LowerZ||r>=Ii.UpperA&&r<=Ii.UpperZ||r===Ii.Exclamation)&&e.includes(">",t+2)}It.isHtml=S3});var UE=U(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.toggleClass=et.removeClass=et.addClass=et.hasClass=et.removeAttr=et.val=et.data=et.prop=et.attr=void 0;var wE=yi(),De=vi(),RE=Ar(),xs=Object.prototype.hasOwnProperty,eu=/\s+/,Fd="data-",PE={null:null,true:!0,false:!1},Bd=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,x3=/^{[^]*}$|^\[[^]*]$/;function mc(e,t,r){var n;if(!(!e||!(0,De.isTag)(e))){if((n=e.attribs)!==null&&n!==void 0||(e.attribs={}),!t)return e.attribs;if(xs.call(e.attribs,t))return!r&&Bd.test(t)?t:e.attribs[t];if(e.name==="option"&&t==="value")return(0,wE.text)(e.children);if(e.name==="input"&&(e.attribs.type==="radio"||e.attribs.type==="checkbox")&&t==="value")return"on"}}function Os(e,t,r){r===null?FE(e,t):e.attribs[t]="".concat(r)}function O3(e,t){if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e!="string")throw new Error("Bad combination of arguments.");return(0,De.domEach)(this,function(r,n){(0,De.isTag)(r)&&Os(r,e,t.call(r,n,r.attribs[e]))})}return(0,De.domEach)(this,function(r){!(0,De.isTag)(r)||(typeof e=="object"?Object.keys(e).forEach(function(n){var i=e[n];Os(r,n,i)}):Os(r,e,t))})}return arguments.length>1?this:mc(this[0],e,this.options.xmlMode)}et.attr=O3;function LE(e,t,r){return t in e?e[t]:!r&&Bd.test(t)?mc(e,t,!1)!==void 0:mc(e,t,r)}function jd(e,t,r,n){t in e?e[t]=r:Os(e,t,!n&&Bd.test(t)?r?"":null:"".concat(r))}function N3(e,t){var r=this,n;if(typeof e=="string"&&t===void 0){var i=this[0];if(!i||!(0,De.isTag)(i))return;switch(e){case"style":{var s=this.css(),a=Object.keys(s);return a.forEach(function(o,c){s[c]=o}),s.length=a.length,s}case"tagName":case"nodeName":return i.name.toUpperCase();case"href":case"src":{var u=(n=i.attribs)===null||n===void 0?void 0:n[e];return typeof URL!="undefined"&&(e==="href"&&(i.tagName==="a"||i.name==="link")||e==="src"&&(i.tagName==="img"||i.tagName==="iframe"||i.tagName==="audio"||i.tagName==="video"||i.tagName==="source"))&&u!==void 0&&this.options.baseURI?new URL(u,this.options.baseURI).href:u}case"innerText":return(0,RE.innerText)(i);case"textContent":return(0,RE.textContent)(i);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return LE(i,e,this.options.xmlMode)}}if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e=="object")throw new Error("Bad combination of arguments.");return(0,De.domEach)(this,function(o,c){(0,De.isTag)(o)&&jd(o,e,t.call(o,c,LE(o,e,r.options.xmlMode)),r.options.xmlMode)})}return(0,De.domEach)(this,function(o){!(0,De.isTag)(o)||(typeof e=="object"?Object.keys(e).forEach(function(c){var d=e[c];jd(o,c,d,r.options.xmlMode)}):jd(o,e,t,r.options.xmlMode))})}}et.prop=N3;function ME(e,t,r){var n,i=e;(n=i.data)!==null&&n!==void 0||(i.data={}),typeof t=="object"?Object.assign(i.data,t):typeof t=="string"&&r!==void 0&&(i.data[t]=r)}function kE(e,t){var r,n,i;t==null?(r=Object.keys(e.attribs).filter(function(o){return o.startsWith(Fd)}),n=r.map(function(o){return(0,De.camelCase)(o.slice(Fd.length))})):(r=[Fd+(0,De.cssCase)(t)],n=[t]);for(var s=0;s<r.length;++s){var a=r[s],u=n[s];if(xs.call(e.attribs,a)&&!xs.call(e.data,u)){if(i=e.attribs[a],xs.call(PE,i))i=PE[i];else if(i===String(Number(i)))i=Number(i);else if(x3.test(i))try{i=JSON.parse(i)}catch{}e.data[u]=i}}return t==null?e.data:i}function w3(e,t){var r,n=this[0];if(!(!n||!(0,De.isTag)(n))){var i=n;return(r=i.data)!==null&&r!==void 0||(i.data={}),e?typeof e=="object"||t!==void 0?((0,De.domEach)(this,function(s){(0,De.isTag)(s)&&(typeof e=="object"?ME(s,e):ME(s,e,t))}),this):xs.call(i.data,e)?i.data[e]:kE(i,e):kE(i)}}et.data=w3;function R3(e){var t=arguments.length===0,r=this[0];if(!r||!(0,De.isTag)(r))return t?void 0:this;switch(r.name){case"textarea":return this.text(e);case"select":{var n=this.find("option:selected");if(!t){if(this.attr("multiple")==null&&typeof e=="object")return this;this.find("option").removeAttr("selected");for(var i=typeof e!="object"?[e]:e,s=0;s<i.length;s++)this.find('option[value="'.concat(i[s],'"]')).attr("selected","");return this}return this.attr("multiple")?n.toArray().map(function(a){return(0,wE.text)(a.children)}):n.attr("value")}case"input":case"option":return t?this.attr("value"):this.attr("value",e)}}et.val=R3;function FE(e,t){!e.attribs||!xs.call(e.attribs,t)||delete e.attribs[t]}function gc(e){return e?e.trim().split(eu):[]}function P3(e){for(var t=gc(e),r=function(s){(0,De.domEach)(n,function(a){(0,De.isTag)(a)&&FE(a,t[s])})},n=this,i=0;i<t.length;i++)r(i);return this}et.removeAttr=P3;function L3(e){return this.toArray().some(function(t){var r=(0,De.isTag)(t)&&t.attribs.class,n=-1;if(r&&e.length)for(;(n=r.indexOf(e,n+1))>-1;){var i=n+e.length;if((n===0||eu.test(r[n-1]))&&(i===r.length||eu.test(r[i])))return!0}return!1})}et.hasClass=L3;function BE(e){if(typeof e=="function")return(0,De.domEach)(this,function(c,d){if((0,De.isTag)(c)){var h=c.attribs.class||"";BE.call([c],e.call(c,d,h))}});if(!e||typeof e!="string")return this;for(var t=e.split(eu),r=this.length,n=0;n<r;n++){var i=this[n];if(!!(0,De.isTag)(i)){var s=mc(i,"class",!1);if(!s)Os(i,"class",t.join(" ").trim());else{for(var a=" ".concat(s," "),u=0;u<t.length;u++){var o="".concat(t[u]," ");a.includes(" ".concat(o))||(a+=o)}Os(i,"class",a.trim())}}}return this}et.addClass=BE;function jE(e){if(typeof e=="function")return(0,De.domEach)(this,function(i,s){(0,De.isTag)(i)&&jE.call([i],e.call(i,s,i.attribs.class||""))});var t=gc(e),r=t.length,n=arguments.length===0;return(0,De.domEach)(this,function(i){if(!!(0,De.isTag)(i))if(n)i.attribs.class="";else{for(var s=gc(i.attribs.class),a=!1,u=0;u<r;u++){var o=s.indexOf(t[u]);o>=0&&(s.splice(o,1),a=!0,u--)}a&&(i.attribs.class=s.join(" "))}})}et.removeClass=jE;function HE(e,t){if(typeof e=="function")return(0,De.domEach)(this,function(h,f){(0,De.isTag)(h)&&HE.call([h],e.call(h,f,h.attribs.class||"",t),t)});if(!e||typeof e!="string")return this;for(var r=e.split(eu),n=r.length,i=typeof t=="boolean"?t?1:-1:0,s=this.length,a=0;a<s;a++){var u=this[a];if(!!(0,De.isTag)(u)){for(var o=gc(u.attribs.class),c=0;c<n;c++){var d=o.indexOf(r[c]);i>=0&&d<0?o.push(r[c]):i<=0&&d>=0&&o.splice(d,1)}u.attribs.class=o.join(" ")}}return this}et.toggleClass=HE});var _c=U(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.AttributeAction=kr.IgnoreCaseMode=kr.SelectorType=void 0;var M3;(function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"})(M3=kr.SelectorType||(kr.SelectorType={}));kr.IgnoreCaseMode={Unknown:null,QuirksMode:"quirks",IgnoreCase:!0,CaseSensitive:!1};var k3;(function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"})(k3=kr.AttributeAction||(kr.AttributeAction={}))});var KE=U(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.parse=Ns.isTraversal=void 0;var Ae=_c(),GE=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,F3=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,B3=new Map([[126,Ae.AttributeAction.Element],[94,Ae.AttributeAction.Start],[36,Ae.AttributeAction.End],[42,Ae.AttributeAction.Any],[33,Ae.AttributeAction.Not],[124,Ae.AttributeAction.Hyphen]]),j3=new Set(["has","not","matches","is","where","host","host-context"]);function qE(e){switch(e.type){case Ae.SelectorType.Adjacent:case Ae.SelectorType.Child:case Ae.SelectorType.Descendant:case Ae.SelectorType.Parent:case Ae.SelectorType.Sibling:case Ae.SelectorType.ColumnCombinator:return!0;default:return!1}}Ns.isTraversal=qE;var H3=new Set(["contains","icontains"]);function U3(e,t,r){var n=parseInt(t,16)-65536;return n!==n||r?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,n&1023|56320)}function tu(e){return e.replace(F3,U3)}function Hd(e){return e===39||e===34}function zE(e){return e===32||e===9||e===10||e===12||e===13}function G3(e){var t=[],r=VE(t,"".concat(e),0);if(r<e.length)throw new Error("Unmatched selector: ".concat(e.slice(r)));return t}Ns.parse=G3;function VE(e,t,r){var n=[];function i(W){var he=t.slice(r+W).match(GE);if(!he)throw new Error("Expected name, found ".concat(t.slice(r)));var ke=he[0];return r+=W+ke.length,tu(ke)}function s(W){for(r+=W;r<t.length&&zE(t.charCodeAt(r));)r++}function a(){r+=1;for(var W=r,he=1;he>0&&r<t.length;r++)t.charCodeAt(r)===40&&!u(r)?he++:t.charCodeAt(r)===41&&!u(r)&&he--;if(he)throw new Error("Parenthesis not matched");return tu(t.slice(W,r-1))}function u(W){for(var he=0;t.charCodeAt(--W)===92;)he++;return(he&1)==1}function o(){if(n.length>0&&qE(n[n.length-1]))throw new Error("Did not expect successive traversals.")}function c(W){if(n.length>0&&n[n.length-1].type===Ae.SelectorType.Descendant){n[n.length-1].type=W;return}o(),n.push({type:W})}function d(W,he){n.push({type:Ae.SelectorType.Attribute,name:W,action:he,value:i(1),namespace:null,ignoreCase:"quirks"})}function h(){if(n.length&&n[n.length-1].type===Ae.SelectorType.Descendant&&n.pop(),n.length===0)throw new Error("Empty sub-selector");e.push(n)}if(s(0),t.length===r)return r;e:for(;r<t.length;){var f=t.charCodeAt(r);switch(f){case 32:case 9:case 10:case 12:case 13:{(n.length===0||n[0].type!==Ae.SelectorType.Descendant)&&(o(),n.push({type:Ae.SelectorType.Descendant})),s(1);break}case 62:{c(Ae.SelectorType.Child),s(1);break}case 60:{c(Ae.SelectorType.Parent),s(1);break}case 126:{c(Ae.SelectorType.Sibling),s(1);break}case 43:{c(Ae.SelectorType.Adjacent),s(1);break}case 46:{d("class",Ae.AttributeAction.Element);break}case 35:{d("id",Ae.AttributeAction.Equals);break}case 91:{s(1);var p=void 0,A=null;t.charCodeAt(r)===124?p=i(1):t.startsWith("*|",r)?(A="*",p=i(2)):(p=i(0),t.charCodeAt(r)===124&&t.charCodeAt(r+1)!==61&&(A=p,p=i(1))),s(0);var b=Ae.AttributeAction.Exists,D=B3.get(t.charCodeAt(r));if(D){if(b=D,t.charCodeAt(r+1)!==61)throw new Error("Expected `=`");s(2)}else t.charCodeAt(r)===61&&(b=Ae.AttributeAction.Equals,s(1));var g="",v=null;if(b!=="exists"){if(Hd(t.charCodeAt(r))){for(var I=t.charCodeAt(r),T=r+1;T<t.length&&(t.charCodeAt(T)!==I||u(T));)T+=1;if(t.charCodeAt(T)!==I)throw new Error("Attribute value didn't end");g=tu(t.slice(r+1,T)),r=T+1}else{for(var E=r;r<t.length&&(!zE(t.charCodeAt(r))&&t.charCodeAt(r)!==93||u(r));)r+=1;g=tu(t.slice(E,r))}s(0);var C=t.charCodeAt(r)|32;C===115?(v=!1,s(1)):C===105&&(v=!0,s(1))}if(t.charCodeAt(r)!==93)throw new Error("Attribute selector didn't terminate");r+=1;var S={type:Ae.SelectorType.Attribute,name:p,action:b,value:g,namespace:A,ignoreCase:v};n.push(S);break}case 58:{if(t.charCodeAt(r+1)===58){n.push({type:Ae.SelectorType.PseudoElement,name:i(2).toLowerCase(),data:t.charCodeAt(r)===40?a():null});continue}var N=i(1).toLowerCase(),P=null;if(t.charCodeAt(r)===40)if(j3.has(N)){if(Hd(t.charCodeAt(r+1)))throw new Error("Pseudo-selector ".concat(N," cannot be quoted"));if(P=[],r=VE(P,t,r+1),t.charCodeAt(r)!==41)throw new Error("Missing closing parenthesis in :".concat(N," (").concat(t,")"));r+=1}else{if(P=a(),H3.has(N)){var q=P.charCodeAt(0);q===P.charCodeAt(P.length-1)&&Hd(q)&&(P=P.slice(1,-1))}P=tu(P)}n.push({type:Ae.SelectorType.Pseudo,name:N,data:P});break}case 44:{h(),n=[],s(1);break}default:{if(t.startsWith("/*",r)){var $=t.indexOf("*/",r+2);if($<0)throw new Error("Comment was not terminated");r=$+2,n.length===0&&s(0);break}var A=null,ge=void 0;if(f===42)r+=1,ge="*";else if(f===124){if(ge="",t.charCodeAt(r+1)===124){c(Ae.SelectorType.ColumnCombinator),s(2);break}}else if(GE.test(t.slice(r)))ge=i(0);else break e;t.charCodeAt(r)===124&&t.charCodeAt(r+1)!==124&&(A=ge,t.charCodeAt(r+1)===42?(ge="*",r+=2):ge=i(1)),n.push(ge==="*"?{type:Ae.SelectorType.Universal,namespace:A}:{type:Ae.SelectorType.Tag,name:ge,namespace:A})}}}return h(),r}});var JE=U(Rs=>{"use strict";var Tc=Rs&&Rs.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};Object.defineProperty(Rs,"__esModule",{value:!0});Rs.stringify=void 0;var We=_c(),WE=["\\",'"'],YE=Tc(Tc([],WE,!0),["(",")"],!1),q3=new Set(WE.map(function(e){return e.charCodeAt(0)})),QE=new Set(YE.map(function(e){return e.charCodeAt(0)})),ws=new Set(Tc(Tc([],YE,!0),["~","^","$","*","+","!","|",":","[","]"," ","."],!1).map(function(e){return e.charCodeAt(0)}));function $E(e){return e.map(function(t){return t.map(z3).join("")}).join(", ")}Rs.stringify=$E;function z3(e,t,r){switch(e.type){case We.SelectorType.Child:return t===0?"> ":" > ";case We.SelectorType.Parent:return t===0?"< ":" < ";case We.SelectorType.Sibling:return t===0?"~ ":" ~ ";case We.SelectorType.Adjacent:return t===0?"+ ":" + ";case We.SelectorType.Descendant:return" ";case We.SelectorType.ColumnCombinator:return t===0?"|| ":" || ";case We.SelectorType.Universal:return e.namespace==="*"&&t+1<r.length&&"name"in r[t+1]?"":"".concat(ZE(e.namespace),"*");case We.SelectorType.Tag:return XE(e);case We.SelectorType.PseudoElement:return"::".concat(on(e.name,ws)).concat(e.data===null?"":"(".concat(on(e.data,QE),")"));case We.SelectorType.Pseudo:return":".concat(on(e.name,ws)).concat(e.data===null?"":"(".concat(typeof e.data=="string"?on(e.data,QE):$E(e.data),")"));case We.SelectorType.Attribute:{if(e.name==="id"&&e.action===We.AttributeAction.Equals&&e.ignoreCase==="quirks"&&!e.namespace)return"#".concat(on(e.value,ws));if(e.name==="class"&&e.action===We.AttributeAction.Element&&e.ignoreCase==="quirks"&&!e.namespace)return".".concat(on(e.value,ws));var n=XE(e);return e.action===We.AttributeAction.Exists?"[".concat(n,"]"):"[".concat(n).concat(V3(e.action),'="').concat(on(e.value,q3),'"').concat(e.ignoreCase===null?"":e.ignoreCase?" i":" s","]")}}}function V3(e){switch(e){case We.AttributeAction.Equals:return"";case We.AttributeAction.Element:return"~";case We.AttributeAction.Start:return"^";case We.AttributeAction.End:return"$";case We.AttributeAction.Any:return"*";case We.AttributeAction.Not:return"!";case We.AttributeAction.Hyphen:return"|";case We.AttributeAction.Exists:throw new Error("Shouldn't be here")}}function XE(e){return"".concat(ZE(e.namespace)).concat(on(e.name,ws))}function ZE(e){return e!==null?"".concat(e==="*"?"*":on(e,ws),"|"):""}function on(e,t){for(var r=0,n="",i=0;i<e.length;i++)t.has(e.charCodeAt(i))&&(n+="".concat(e.slice(r,i),"\\").concat(e.charAt(i)),r=i+1);return n.length>0?n+e.slice(r):e}});var Ps=U(Zt=>{"use strict";var K3=Zt&&Zt.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),W3=Zt&&Zt.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&K3(t,e,r)};Object.defineProperty(Zt,"__esModule",{value:!0});Zt.stringify=Zt.parse=Zt.isTraversal=void 0;W3(_c(),Zt);var e1=KE();Object.defineProperty(Zt,"isTraversal",{enumerable:!0,get:function(){return e1.isTraversal}});Object.defineProperty(Zt,"parse",{enumerable:!0,get:function(){return e1.parse}});var Y3=JE();Object.defineProperty(Zt,"stringify",{enumerable:!0,get:function(){return Y3.stringify}})});var zn=U((_H,t1)=>{t1.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}});var Ud=U(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.isTraversal=void 0;var Jt=Ps(),r1=new Map([[Jt.SelectorType.Universal,50],[Jt.SelectorType.Tag,30],[Jt.SelectorType.Attribute,1],[Jt.SelectorType.Pseudo,0]]);function Q3(e){return!r1.has(e.type)}ru.isTraversal=Q3;var $3=new Map([[Jt.AttributeAction.Exists,10],[Jt.AttributeAction.Equals,8],[Jt.AttributeAction.Not,7],[Jt.AttributeAction.Start,6],[Jt.AttributeAction.End,6],[Jt.AttributeAction.Any,5]]);function X3(e){for(var t=e.map(n1),r=1;r<e.length;r++){var n=t[r];if(!(n<0))for(var i=r-1;i>=0&&n<t[i];i--){var s=e[i+1];e[i+1]=e[i],e[i]=s,t[i+1]=t[i],t[i]=n}}}ru.default=X3;function n1(e){var t,r,n=(t=r1.get(e.type))!==null&&t!==void 0?t:-1;return e.type===Jt.SelectorType.Attribute?(n=(r=$3.get(e.action))!==null&&r!==void 0?r:4,e.action===Jt.AttributeAction.Equals&&e.name==="id"&&(n=9),e.ignoreCase&&(n>>=1)):e.type===Jt.SelectorType.Pseudo&&(e.data?e.name==="has"||e.name==="contains"?n=0:Array.isArray(e.data)?(n=Math.min.apply(Math,e.data.map(function(i){return Math.min.apply(Math,i.map(n1))})),n<0&&(n=0)):n=2:n=3),n}});var s1=U(Ls=>{"use strict";var Z3=Ls&&Ls.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ls,"__esModule",{value:!0});Ls.attributeRules=void 0;var bc=Z3(zn()),J3=/[-[\]{}()*+?.,\\^$|#\s]/g;function i1(e){return e.replace(J3,"\\$&")}var ew=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function Ci(e,t){return typeof e.ignoreCase=="boolean"?e.ignoreCase:e.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&ew.has(e.name)}Ls.attributeRules={equals:function(e,t,r){var n=r.adapter,i=t.name,s=t.value;return Ci(t,r)?(s=s.toLowerCase(),function(a){var u=n.getAttributeValue(a,i);return u!=null&&u.length===s.length&&u.toLowerCase()===s&&e(a)}):function(a){return n.getAttributeValue(a,i)===s&&e(a)}},hyphen:function(e,t,r){var n=r.adapter,i=t.name,s=t.value,a=s.length;return Ci(t,r)?(s=s.toLowerCase(),function(o){var c=n.getAttributeValue(o,i);return c!=null&&(c.length===a||c.charAt(a)==="-")&&c.substr(0,a).toLowerCase()===s&&e(o)}):function(o){var c=n.getAttributeValue(o,i);return c!=null&&(c.length===a||c.charAt(a)==="-")&&c.substr(0,a)===s&&e(o)}},element:function(e,t,r){var n=r.adapter,i=t.name,s=t.value;if(/\s/.test(s))return bc.default.falseFunc;var a=new RegExp("(?:^|\\s)".concat(i1(s),"(?:$|\\s)"),Ci(t,r)?"i":"");return function(o){var c=n.getAttributeValue(o,i);return c!=null&&c.length>=s.length&&a.test(c)&&e(o)}},exists:function(e,t,r){var n=t.name,i=r.adapter;return function(s){return i.hasAttrib(s,n)&&e(s)}},start:function(e,t,r){var n=r.adapter,i=t.name,s=t.value,a=s.length;return a===0?bc.default.falseFunc:Ci(t,r)?(s=s.toLowerCase(),function(u){var o=n.getAttributeValue(u,i);return o!=null&&o.length>=a&&o.substr(0,a).toLowerCase()===s&&e(u)}):function(u){var o;return!!((o=n.getAttributeValue(u,i))===null||o===void 0?void 0:o.startsWith(s))&&e(u)}},end:function(e,t,r){var n=r.adapter,i=t.name,s=t.value,a=-s.length;return a===0?bc.default.falseFunc:Ci(t,r)?(s=s.toLowerCase(),function(u){var o;return((o=n.getAttributeValue(u,i))===null||o===void 0?void 0:o.substr(a).toLowerCase())===s&&e(u)}):function(u){var o;return!!((o=n.getAttributeValue(u,i))===null||o===void 0?void 0:o.endsWith(s))&&e(u)}},any:function(e,t,r){var n=r.adapter,i=t.name,s=t.value;if(s==="")return bc.default.falseFunc;if(Ci(t,r)){var a=new RegExp(i1(s),"i");return function(o){var c=n.getAttributeValue(o,i);return c!=null&&c.length>=s.length&&a.test(c)&&e(o)}}return function(u){var o;return!!((o=n.getAttributeValue(u,i))===null||o===void 0?void 0:o.includes(s))&&e(u)}},not:function(e,t,r){var n=r.adapter,i=t.name,s=t.value;return s===""?function(a){return!!n.getAttributeValue(a,i)&&e(a)}:Ci(t,r)?(s=s.toLowerCase(),function(a){var u=n.getAttributeValue(a,i);return(u==null||u.length!==s.length||u.toLowerCase()!==s)&&e(a)}):function(a){return n.getAttributeValue(a,i)!==s&&e(a)}}}});var u1=U(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.parse=void 0;var tw=new Set([9,10,12,13,32]),a1="0".charCodeAt(0),rw="9".charCodeAt(0);function nw(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];var t=0,r=0,n=s(),i=a();if(t<e.length&&e.charAt(t)==="n"&&(t++,r=n*(i??1),u(),t<e.length?(n=s(),u(),i=a()):n=i=0),i===null||t<e.length)throw new Error("n-th rule couldn't be parsed ('".concat(e,"')"));return[r,n*i];function s(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function a(){for(var o=t,c=0;t<e.length&&e.charCodeAt(t)>=a1&&e.charCodeAt(t)<=rw;)c=c*10+(e.charCodeAt(t)-a1),t++;return t===o?null:c}function u(){for(;t<e.length&&tw.has(e.charCodeAt(t));)t++}}Ec.parse=nw});var c1=U(Vn=>{"use strict";var iw=Vn&&Vn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vn,"__esModule",{value:!0});Vn.generate=Vn.compile=void 0;var o1=iw(zn());function sw(e){var t=e[0],r=e[1]-1;if(r<0&&t<=0)return o1.default.falseFunc;if(t===-1)return function(s){return s<=r};if(t===0)return function(s){return s===r};if(t===1)return r<0?o1.default.trueFunc:function(s){return s>=r};var n=Math.abs(t),i=(r%n+n)%n;return t>1?function(s){return s>=r&&s%n===i}:function(s){return s<=r&&s%n===i}}Vn.compile=sw;function aw(e){var t=e[0],r=e[1]-1,n=0;if(t<0){var i=-t,s=(r%i+i)%i;return function(){var a=s+i*n++;return a>r?null:a}}return t===0?r<0?function(){return null}:function(){return n++==0?r:null}:(r<0&&(r+=t*Math.ceil(-r/t)),function(){return t*n+++r})}Vn.generate=aw});var l1=U(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.sequence=yr.generate=yr.compile=yr.parse=void 0;var Gd=u1();Object.defineProperty(yr,"parse",{enumerable:!0,get:function(){return Gd.parse}});var Ac=c1();Object.defineProperty(yr,"compile",{enumerable:!0,get:function(){return Ac.compile}});Object.defineProperty(yr,"generate",{enumerable:!0,get:function(){return Ac.generate}});function uw(e){return(0,Ac.compile)((0,Gd.parse)(e))}yr.default=uw;function ow(e){return(0,Ac.generate)((0,Gd.parse)(e))}yr.sequence=ow});var d1=U(Di=>{"use strict";var f1=Di&&Di.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Di,"__esModule",{value:!0});Di.filters=void 0;var yc=f1(l1()),er=f1(zn());function Ic(e,t){return function(r){var n=t.getParent(r);return n!=null&&t.isTag(n)&&e(r)}}Di.filters={contains:function(e,t,r){var n=r.adapter;return function(s){return e(s)&&n.getText(s).includes(t)}},icontains:function(e,t,r){var n=r.adapter,i=t.toLowerCase();return function(a){return e(a)&&n.getText(a).toLowerCase().includes(i)}},"nth-child":function(e,t,r){var n=r.adapter,i=r.equals,s=(0,yc.default)(t);return s===er.default.falseFunc?er.default.falseFunc:s===er.default.trueFunc?Ic(e,n):function(u){for(var o=n.getSiblings(u),c=0,d=0;d<o.length&&!i(u,o[d]);d++)n.isTag(o[d])&&c++;return s(c)&&e(u)}},"nth-last-child":function(e,t,r){var n=r.adapter,i=r.equals,s=(0,yc.default)(t);return s===er.default.falseFunc?er.default.falseFunc:s===er.default.trueFunc?Ic(e,n):function(u){for(var o=n.getSiblings(u),c=0,d=o.length-1;d>=0&&!i(u,o[d]);d--)n.isTag(o[d])&&c++;return s(c)&&e(u)}},"nth-of-type":function(e,t,r){var n=r.adapter,i=r.equals,s=(0,yc.default)(t);return s===er.default.falseFunc?er.default.falseFunc:s===er.default.trueFunc?Ic(e,n):function(u){for(var o=n.getSiblings(u),c=0,d=0;d<o.length;d++){var h=o[d];if(i(u,h))break;n.isTag(h)&&n.getName(h)===n.getName(u)&&c++}return s(c)&&e(u)}},"nth-last-of-type":function(e,t,r){var n=r.adapter,i=r.equals,s=(0,yc.default)(t);return s===er.default.falseFunc?er.default.falseFunc:s===er.default.trueFunc?Ic(e,n):function(u){for(var o=n.getSiblings(u),c=0,d=o.length-1;d>=0;d--){var h=o[d];if(i(u,h))break;n.isTag(h)&&n.getName(h)===n.getName(u)&&c++}return s(c)&&e(u)}},root:function(e,t,r){var n=r.adapter;return function(i){var s=n.getParent(i);return(s==null||!n.isTag(s))&&e(i)}},scope:function(e,t,r,n){var i=r.equals;return!n||n.length===0?Di.filters.root(e,t,r):n.length===1?function(s){return i(n[0],s)&&e(s)}:function(s){return n.includes(s)&&e(s)}},hover:qd("isHovered"),visited:qd("isVisited"),active:qd("isActive")};function qd(e){return function(r,n,i){var s=i.adapter,a=s[e];return typeof a!="function"?er.default.falseFunc:function(o){return a(o)&&r(o)}}}});var h1=U(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.verifyPseudoArgs=Ms.pseudos=void 0;Ms.pseudos={empty:function(e,t){var r=t.adapter;return!r.getChildren(e).some(function(n){return r.isTag(n)||r.getText(n)!==""})},"first-child":function(e,t){var r=t.adapter,n=t.equals;if(r.prevElementSibling)return r.prevElementSibling(e)==null;var i=r.getSiblings(e).find(function(s){return r.isTag(s)});return i!=null&&n(e,i)},"last-child":function(e,t){for(var r=t.adapter,n=t.equals,i=r.getSiblings(e),s=i.length-1;s>=0;s--){if(n(e,i[s]))return!0;if(r.isTag(i[s]))break}return!1},"first-of-type":function(e,t){for(var r=t.adapter,n=t.equals,i=r.getSiblings(e),s=r.getName(e),a=0;a<i.length;a++){var u=i[a];if(n(e,u))return!0;if(r.isTag(u)&&r.getName(u)===s)break}return!1},"last-of-type":function(e,t){for(var r=t.adapter,n=t.equals,i=r.getSiblings(e),s=r.getName(e),a=i.length-1;a>=0;a--){var u=i[a];if(n(e,u))return!0;if(r.isTag(u)&&r.getName(u)===s)break}return!1},"only-of-type":function(e,t){var r=t.adapter,n=t.equals,i=r.getName(e);return r.getSiblings(e).every(function(s){return n(e,s)||!r.isTag(s)||r.getName(s)!==i})},"only-child":function(e,t){var r=t.adapter,n=t.equals;return r.getSiblings(e).every(function(i){return n(e,i)||!r.isTag(i)})}};function cw(e,t,r,n){if(r===null){if(e.length>n)throw new Error("Pseudo-class :".concat(t," requires an argument"))}else if(e.length===n)throw new Error("Pseudo-class :".concat(t," doesn't have any arguments"))}Ms.verifyPseudoArgs=cw});var p1=U(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.aliases=void 0;vc.aliases={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
|
||
:is(button, input, select, textarea, optgroup, option)[disabled],
|
||
optgroup[disabled] > option,
|
||
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
|
||
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"}});var Cc=U(Nt=>{"use strict";var m1=Nt&&Nt.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))},lw=Nt&&Nt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Nt,"__esModule",{value:!0});Nt.subselects=Nt.getNextSiblings=Nt.ensureIsTag=Nt.PLACEHOLDER_ELEMENT=void 0;var Ir=lw(zn()),fw=Ud();Nt.PLACEHOLDER_ELEMENT={};function g1(e,t){return e===Ir.default.falseFunc?Ir.default.falseFunc:function(r){return t.isTag(r)&&e(r)}}Nt.ensureIsTag=g1;function _1(e,t){var r=t.getSiblings(e);if(r.length<=1)return[];var n=r.indexOf(e);return n<0||n===r.length-1?[]:r.slice(n+1).filter(t.isTag)}Nt.getNextSiblings=_1;function zd(e){return{xmlMode:!!e.xmlMode,lowerCaseAttributeNames:!!e.lowerCaseAttributeNames,lowerCaseTags:!!e.lowerCaseTags,quirksMode:!!e.quirksMode,cacheResults:!!e.cacheResults,pseudos:e.pseudos,adapter:e.adapter,equals:e.equals}}var Vd=function(e,t,r,n,i){var s=i(t,zd(r),n);return s===Ir.default.trueFunc?e:s===Ir.default.falseFunc?Ir.default.falseFunc:function(a){return s(a)&&e(a)}};Nt.subselects={is:Vd,matches:Vd,where:Vd,not:function(e,t,r,n,i){var s=i(t,zd(r),n);return s===Ir.default.falseFunc?e:s===Ir.default.trueFunc?Ir.default.falseFunc:function(a){return!s(a)&&e(a)}},has:function(e,t,r,n,i){var s=r.adapter,a=zd(r);a.relativeSelector=!0;var u=t.some(function(f){return f.some(fw.isTraversal)})?[Nt.PLACEHOLDER_ELEMENT]:void 0,o=i(t,a,u);if(o===Ir.default.falseFunc)return Ir.default.falseFunc;var c=g1(o,s);if(u&&o!==Ir.default.trueFunc){var d=o.shouldTestNextSiblings,h=d===void 0?!1:d;return function(f){if(!e(f))return!1;u[0]=f;var p=s.getChildren(f),A=h?m1(m1([],p,!0),_1(f,s),!0):p;return s.existsOne(c,A)}}return function(f){return e(f)&&s.existsOne(c,s.getChildren(f))}}}});var Yd=U(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.compilePseudoSelector=Fr.aliases=Fr.pseudos=Fr.filters=void 0;var dw=Ps(),Kd=d1();Object.defineProperty(Fr,"filters",{enumerable:!0,get:function(){return Kd.filters}});var nu=h1();Object.defineProperty(Fr,"pseudos",{enumerable:!0,get:function(){return nu.pseudos}});var T1=p1();Object.defineProperty(Fr,"aliases",{enumerable:!0,get:function(){return T1.aliases}});var Wd=Cc();function hw(e,t,r,n,i){var s,a=t.name,u=t.data;if(Array.isArray(u)){if(!(a in Wd.subselects))throw new Error("Unknown pseudo-class :".concat(a,"(").concat(u,")"));return Wd.subselects[a](e,u,r,n,i)}var o=(s=r.pseudos)===null||s===void 0?void 0:s[a],c=typeof o=="string"?o:T1.aliases[a];if(typeof c=="string"){if(u!=null)throw new Error("Pseudo ".concat(a," doesn't have any arguments"));var d=(0,dw.parse)(c);return Wd.subselects.is(e,d,r,n,i)}if(typeof o=="function")return(0,nu.verifyPseudoArgs)(o,a,u,1),function(f){return o(f,u)&&e(f)};if(a in Kd.filters)return Kd.filters[a](e,u,r,n);if(a in nu.pseudos){var h=nu.pseudos[a];return(0,nu.verifyPseudoArgs)(h,a,u,2),function(f){return h(f,r,u)&&e(f)}}throw new Error("Unknown pseudo-class :".concat(a))}Fr.compilePseudoSelector=hw});var b1=U(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});Dc.compileGeneralSelector=void 0;var pw=s1(),mw=Yd(),vr=Ps();function Qd(e,t){var r=t.getParent(e);return r&&t.isTag(r)?r:null}function gw(e,t,r,n,i){var s=r.adapter,a=r.equals;switch(t.type){case vr.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case vr.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case vr.SelectorType.Attribute:{if(t.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),pw.attributeRules[t.action](e,t,r)}case vr.SelectorType.Pseudo:return(0,mw.compilePseudoSelector)(e,t,r,n,i);case vr.SelectorType.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");var u=t.name;return(!r.xmlMode||r.lowerCaseTags)&&(u=u.toLowerCase()),function(d){return s.getName(d)===u&&e(d)}}case vr.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet=="undefined")return function(d){for(var h=d;h=Qd(h,s);)if(e(h))return!0;return!1};var o=new WeakSet;return function(d){for(var h=d;h=Qd(h,s);)if(!o.has(h)){if(s.isTag(h)&&e(h))return!0;o.add(h)}return!1}}case"_flexibleDescendant":return function(d){var h=d;do if(e(h))return!0;while(h=Qd(h,s));return!1};case vr.SelectorType.Parent:return function(d){return s.getChildren(d).some(function(h){return s.isTag(h)&&e(h)})};case vr.SelectorType.Child:return function(d){var h=s.getParent(d);return h!=null&&s.isTag(h)&&e(h)};case vr.SelectorType.Sibling:return function(d){for(var h=s.getSiblings(d),f=0;f<h.length;f++){var p=h[f];if(a(d,p))break;if(s.isTag(p)&&e(p))return!0}return!1};case vr.SelectorType.Adjacent:return s.prevElementSibling?function(d){var h=s.prevElementSibling(d);return h!=null&&e(h)}:function(d){for(var h=s.getSiblings(d),f,p=0;p<h.length;p++){var A=h[p];if(a(d,A))break;s.isTag(A)&&(f=A)}return!!f&&e(f)};case vr.SelectorType.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}Dc.compileGeneralSelector=gw});var I1=U(vt=>{"use strict";var _w=vt&&vt.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Tw=vt&&vt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),bw=vt&&vt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&_w(t,e,r);return Tw(t,e),t},Ew=vt&&vt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vt,"__esModule",{value:!0});vt.compileToken=vt.compileUnsafe=vt.compile=void 0;var cn=Ps(),Kn=Ew(zn()),$d=bw(Ud()),Aw=b1(),E1=Cc();function yw(e,t,r){var n=A1(e,t,r);return(0,E1.ensureIsTag)(n,t.adapter)}vt.compile=yw;function A1(e,t,r){var n=typeof e=="string"?(0,cn.parse)(e):e;return Xd(n,t,r)}vt.compileUnsafe=A1;function y1(e){return e.type===cn.SelectorType.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(function(t){return t.some(y1)}))}var Iw={type:cn.SelectorType.Descendant},vw={type:"_flexibleDescendant"},Cw={type:cn.SelectorType.Pseudo,name:"scope",data:null};function Dw(e,t,r){for(var n=t.adapter,i=!!(r==null?void 0:r.every(function(o){var c=n.isTag(o)&&n.getParent(o);return o===E1.PLACEHOLDER_ELEMENT||c&&n.isTag(c)})),s=0,a=e;s<a.length;s++){var u=a[s];if(!(u.length>0&&(0,$d.isTraversal)(u[0])&&u[0].type!==cn.SelectorType.Descendant))if(i&&!u.some(y1))u.unshift(Iw);else continue;u.unshift(Cw)}}function Xd(e,t,r){var n;e.forEach($d.default),r=(n=t.context)!==null&&n!==void 0?n:r;var i=Array.isArray(r),s=r&&(Array.isArray(r)?r:[r]);if(t.relativeSelector!==!1)Dw(e,t,s);else if(e.some(function(o){return o.length>0&&(0,$d.isTraversal)(o[0])}))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");var a=!1,u=e.map(function(o){if(o.length>=2){var c=o[0],d=o[1];c.type!==cn.SelectorType.Pseudo||c.name!=="scope"||(i&&d.type===cn.SelectorType.Descendant?o[1]=vw:(d.type===cn.SelectorType.Adjacent||d.type===cn.SelectorType.Sibling)&&(a=!0))}return Sw(o,t,s)}).reduce(xw,Kn.default.falseFunc);return u.shouldTestNextSiblings=a,u}vt.compileToken=Xd;function Sw(e,t,r){var n;return e.reduce(function(i,s){return i===Kn.default.falseFunc?Kn.default.falseFunc:(0,Aw.compileGeneralSelector)(i,s,t,r,Xd)},(n=t.rootFunc)!==null&&n!==void 0?n:Kn.default.trueFunc)}function xw(e,t){return t===Kn.default.falseFunc||e===Kn.default.trueFunc?e:e===Kn.default.falseFunc||t===Kn.default.trueFunc?t:function(n){return e(n)||t(n)}}});var th=U(Te=>{"use strict";var Ow=Te&&Te.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Nw=Te&&Te.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),ww=Te&&Te.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Ow(t,e,r);return Nw(t,e),t},Rw=Te&&Te.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Te,"__esModule",{value:!0});Te.aliases=Te.pseudos=Te.filters=Te.is=Te.selectOne=Te.selectAll=Te.prepareContext=Te._compileToken=Te._compileUnsafe=Te.compile=void 0;var v1=ww(Ar()),C1=Rw(zn()),iu=I1(),Pw=Cc(),D1=function(e,t){return e===t},Lw={adapter:v1,equals:D1};function Zd(e){var t,r,n,i,s=e??Lw;return(t=s.adapter)!==null&&t!==void 0||(s.adapter=v1),(r=s.equals)!==null&&r!==void 0||(s.equals=(i=(n=s.adapter)===null||n===void 0?void 0:n.equals)!==null&&i!==void 0?i:D1),s}function Jd(e){return function(r,n,i){var s=Zd(n);return e(r,s,i)}}Te.compile=Jd(iu.compile);Te._compileUnsafe=Jd(iu.compileUnsafe);Te._compileToken=Jd(iu.compileToken);function S1(e){return function(r,n,i){var s=Zd(i);typeof r!="function"&&(r=(0,iu.compileUnsafe)(r,s,n));var a=x1(n,s.adapter,r.shouldTestNextSiblings);return e(r,a,s)}}function x1(e,t,r){return r===void 0&&(r=!1),r&&(e=Mw(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}Te.prepareContext=x1;function Mw(e,t){for(var r=Array.isArray(e)?e.slice(0):[e],n=r.length,i=0;i<n;i++){var s=(0,Pw.getNextSiblings)(r[i],t);r.push.apply(r,s)}return r}Te.selectAll=S1(function(e,t,r){return e===C1.default.falseFunc||!t||t.length===0?[]:r.adapter.findAll(e,t)});Te.selectOne=S1(function(e,t,r){return e===C1.default.falseFunc||!t||t.length===0?null:r.adapter.findOne(e,t)});function kw(e,t,r){var n=Zd(r);return(typeof t=="function"?t:(0,iu.compile)(t,n))(e)}Te.is=kw;Te.default=Te.selectAll;var eh=Yd();Object.defineProperty(Te,"filters",{enumerable:!0,get:function(){return eh.filters}});Object.defineProperty(Te,"pseudos",{enumerable:!0,get:function(){return eh.pseudos}});Object.defineProperty(Te,"aliases",{enumerable:!0,get:function(){return eh.aliases}})});var rh=U(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.getLimit=ln.isFilter=ln.filterNames=void 0;ln.filterNames=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function O1(e){return e.type!=="pseudo"?!1:ln.filterNames.has(e.name)?!0:e.name==="not"&&Array.isArray(e.data)?e.data.some(function(t){return t.some(O1)}):!1}ln.isFilter=O1;function Fw(e,t,r){var n=t!=null?parseInt(t,10):NaN;switch(e){case"first":return 1;case"nth":case"eq":return isFinite(n)?n>=0?n+1:1/0:0;case"lt":return isFinite(n)?n>=0?Math.min(n,r):1/0:0;case"gt":return isFinite(n)?1/0:0;case"odd":return 2*r;case"even":return 2*r-1;case"last":case"not":return 1/0}}ln.getLimit=Fw});var N1=U(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.groupSelectors=ks.getDocumentRoot=void 0;var Bw=rh();function jw(e){for(;e.parent;)e=e.parent;return e}ks.getDocumentRoot=jw;function Hw(e){for(var t=[],r=[],n=0,i=e;n<i.length;n++){var s=i[n];s.some(Bw.isFilter)?t.push(s):r.push(s)}return[r,t]}ks.groupSelectors=Hw});var F1=U(Pe=>{"use strict";var Wn=Pe&&Pe.__assign||function(){return Wn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Wn.apply(this,arguments)},Uw=Pe&&Pe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Gw=Pe&&Pe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),w1=Pe&&Pe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Uw(t,e,r);return Gw(t,e),t},R1=Pe&&Pe.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.select=Pe.filter=Pe.some=Pe.is=Pe.aliases=Pe.pseudos=Pe.filters=void 0;var Cr=Ps(),su=th(),Br=w1(Ar()),nh=w1(zn()),Sc=N1(),ih=rh(),sh=th();Object.defineProperty(Pe,"filters",{enumerable:!0,get:function(){return sh.filters}});Object.defineProperty(Pe,"pseudos",{enumerable:!0,get:function(){return sh.pseudos}});Object.defineProperty(Pe,"aliases",{enumerable:!0,get:function(){return sh.aliases}});var qw={type:Cr.SelectorType.Universal,namespace:null},zw={type:Cr.SelectorType.Pseudo,name:"scope",data:null};function Vw(e,t,r){return r===void 0&&(r={}),P1([e],t,r)}Pe.is=Vw;function P1(e,t,r){if(r===void 0&&(r={}),typeof t=="function")return e.some(t);var n=(0,Sc.groupSelectors)((0,Cr.parse)(t)),i=n[0],s=n[1];return i.length>0&&e.some((0,su._compileToken)(i,r))||s.some(function(a){return M1(a,e,r).length>0})}Pe.some=P1;function Kw(e,t,r,n){var i=typeof r=="string"?parseInt(r,10):NaN;switch(e){case"first":case"lt":return t;case"last":return t.length>0?[t[t.length-1]]:t;case"nth":case"eq":return isFinite(i)&&Math.abs(i)<t.length?[i<0?t[t.length+i]:t[i]]:[];case"gt":return isFinite(i)?t.slice(i+1):[];case"even":return t.filter(function(a,u){return u%2==0});case"odd":return t.filter(function(a,u){return u%2==1});case"not":{var s=new Set(L1(r,t,n));return t.filter(function(a){return!s.has(a)})}}}function Ww(e,t,r){return r===void 0&&(r={}),L1((0,Cr.parse)(e),t,r)}Pe.filter=Ww;function L1(e,t,r){if(t.length===0)return[];var n=(0,Sc.groupSelectors)(e),i=n[0],s=n[1],a;if(i.length){var u=uh(t,i,r);if(s.length===0)return u;u.length&&(a=new Set(u))}for(var o=0;o<s.length&&(a==null?void 0:a.size)!==t.length;o++){var c=s[o],d=a?t.filter(function(f){return Br.isTag(f)&&!a.has(f)}):t;if(d.length===0)break;var u=M1(c,t,r);if(u.length)if(a)u.forEach(function(f){return a.add(f)});else{if(o===s.length-1)return u;a=new Set(u)}}return typeof a!="undefined"?a.size===t.length?t:t.filter(function(h){return a.has(h)}):[]}function M1(e,t,r){var n;if(e.some(Cr.isTraversal)){var i=(n=r.root)!==null&&n!==void 0?n:(0,Sc.getDocumentRoot)(t[0]),s=Wn(Wn({},r),{context:t,relativeSelector:!1});return e.push(zw),xc(i,e,s,!0,t.length)}return xc(t,e,r,!1,t.length)}function Yw(e,t,r,n){if(r===void 0&&(r={}),n===void 0&&(n=1/0),typeof e=="function")return k1(t,e);var i=(0,Sc.groupSelectors)((0,Cr.parse)(e)),s=i[0],a=i[1],u=a.map(function(o){return xc(t,o,r,!0,n)});return s.length&&u.push(ah(t,s,r,n)),u.length===0?[]:u.length===1?u[0]:Br.uniqueSort(u.reduce(function(o,c){return R1(R1([],o,!0),c,!0)}))}Pe.select=Yw;function xc(e,t,r,n,i){var s=t.findIndex(ih.isFilter),a=t.slice(0,s),u=t[s],o=t.length-1===s?i:1/0,c=(0,ih.getLimit)(u.name,u.data,o);if(c===0)return[];var d=a.length===0&&!Array.isArray(e)?Br.getChildren(e).filter(Br.isTag):a.length===0?(Array.isArray(e)?e:[e]).filter(Br.isTag):n||a.some(Cr.isTraversal)?ah(e,[a],r,c):uh(e,[a],r),h=d.slice(0,c),f=Kw(u.name,h,u.data,r);if(f.length===0||t.length===s+1)return f;var p=t.slice(s+1),A=p.some(Cr.isTraversal);if(A){if((0,Cr.isTraversal)(p[0])){var b=p[0].type;(b===Cr.SelectorType.Sibling||b===Cr.SelectorType.Adjacent)&&(f=(0,su.prepareContext)(f,Br,!0)),p.unshift(qw)}r=Wn(Wn({},r),{relativeSelector:!1,rootFunc:function(D){return f.includes(D)}})}else r.rootFunc&&r.rootFunc!==nh.trueFunc&&(r=Wn(Wn({},r),{rootFunc:nh.trueFunc}));return p.some(ih.isFilter)?xc(f,p,r,!1,i):A?ah(f,[p],r,i):uh(f,[p],r)}function ah(e,t,r,n){var i=(0,su._compileToken)(t,r,e);return k1(e,i,n)}function k1(e,t,r){r===void 0&&(r=1/0);var n=(0,su.prepareContext)(e,Br,t.shouldTestNextSiblings);return Br.find(function(i){return Br.isTag(i)&&t(i)},n,!0,r)}function uh(e,t,r){var n=(Array.isArray(e)?e:[e]).filter(Br.isTag);if(n.length===0)return n;var i=(0,su._compileToken)(t,r);return i===nh.trueFunc?n:n.filter(i)}});var B1=U(K=>{"use strict";var Qw=K&&K.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),$w=K&&K.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Xw=K&&K.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Qw(t,e,r);return $w(t,e),t},oh=K&&K.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};Object.defineProperty(K,"__esModule",{value:!0});K.addBack=K.add=K.end=K.slice=K.index=K.toArray=K.get=K.eq=K.last=K.first=K.has=K.not=K.is=K.filterArray=K.filter=K.map=K.each=K.contents=K.children=K.siblings=K.prevUntil=K.prevAll=K.prev=K.nextUntil=K.nextAll=K.next=K.closest=K.parentsUntil=K.parents=K.parent=K.find=void 0;var Oc=yt(),Fs=Xw(F1()),Dr=vi(),Zw=yi(),jr=Ar(),Jw=/^\s*[~+]/;function eR(e){var t;if(!e)return this._make([]);var r=this.toArray();if(typeof e!="string"){var n=(0,Dr.isCheerio)(e)?e.toArray():[e];return this._make(n.filter(function(a){return r.some(function(u){return(0,Zw.contains)(u,a)})}))}var i=Jw.test(e)?r:this.children().toArray(),s={context:r,root:(t=this._root)===null||t===void 0?void 0:t[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(Fs.select(e,i,s))}K.find=eR;function ch(e){return function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return function(i){var s,a=e(t,this);return i&&(a=dh(a,i,this.options.xmlMode,(s=this._root)===null||s===void 0?void 0:s[0])),this._make(this.length>1&&a.length>1?r.reduce(function(u,o){return o(u)},a):a)}}}var au=ch(function(e,t){for(var r,n=[],i=0;i<t.length;i++){var s=e(t[i]);n.push(s)}return(r=new Array).concat.apply(r,n)}),lh=ch(function(e,t){for(var r=[],n=0;n<t.length;n++){var i=e(t[n]);i!==null&&r.push(i)}return r});function fh(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=null,i=ch(function(s,a){var u=[];return(0,Dr.domEach)(a,function(o){for(var c;(c=s(o))&&!(n==null?void 0:n(c,u.length));o=c)u.push(c)}),u}).apply(void 0,oh([e],t,!1));return function(s,a){var u=this;n=typeof s=="string"?function(c){return Fs.is(c,s,u.options)}:s?uu(s):null;var o=i.call(this,a);return n=null,o}}function Bs(e){return Array.from(new Set(e))}K.parent=lh(function(e){var t=e.parent;return t&&!(0,Oc.isDocument)(t)?t:null},Bs);K.parents=au(function(e){for(var t=[];e.parent&&!(0,Oc.isDocument)(e.parent);)t.push(e.parent),e=e.parent;return t},jr.uniqueSort,function(e){return e.reverse()});K.parentsUntil=fh(function(e){var t=e.parent;return t&&!(0,Oc.isDocument)(t)?t:null},jr.uniqueSort,function(e){return e.reverse()});function tR(e){var t,r=[];if(!e)return this._make(r);var n={xmlMode:this.options.xmlMode,root:(t=this._root)===null||t===void 0?void 0:t[0]},i=typeof e=="string"?function(s){return Fs.is(s,e,n)}:uu(e);return(0,Dr.domEach)(this,function(s){for(;s&&(0,Dr.isTag)(s);){if(i(s,0)){r.includes(s)||r.push(s);break}s=s.parent}}),this._make(r)}K.closest=tR;K.next=lh(function(e){return(0,jr.nextElementSibling)(e)});K.nextAll=au(function(e){for(var t=[];e.next;)e=e.next,(0,Dr.isTag)(e)&&t.push(e);return t},Bs);K.nextUntil=fh(function(e){return(0,jr.nextElementSibling)(e)},Bs);K.prev=lh(function(e){return(0,jr.prevElementSibling)(e)});K.prevAll=au(function(e){for(var t=[];e.prev;)e=e.prev,(0,Dr.isTag)(e)&&t.push(e);return t},Bs);K.prevUntil=fh(function(e){return(0,jr.prevElementSibling)(e)},Bs);K.siblings=au(function(e){return(0,jr.getSiblings)(e).filter(function(t){return(0,Dr.isTag)(t)&&t!==e})},jr.uniqueSort);K.children=au(function(e){return(0,jr.getChildren)(e).filter(Dr.isTag)},Bs);function rR(){var e=this.toArray().reduce(function(t,r){return(0,Oc.hasChildren)(r)?t.concat(r.children):t},[]);return this._make(e)}K.contents=rR;function nR(e){for(var t=0,r=this.length;t<r&&e.call(this[t],t,this[t])!==!1;)++t;return this}K.each=nR;function iR(e){for(var t=[],r=0;r<this.length;r++){var n=this[r],i=e.call(n,r,n);i!=null&&(t=t.concat(i))}return this._make(t)}K.map=iR;function uu(e){return typeof e=="function"?function(t,r){return e.call(t,r,t)}:(0,Dr.isCheerio)(e)?function(t){return Array.prototype.includes.call(e,t)}:function(t){return e===t}}function sR(e){var t;return this._make(dh(this.toArray(),e,this.options.xmlMode,(t=this._root)===null||t===void 0?void 0:t[0]))}K.filter=sR;function dh(e,t,r,n){return typeof t=="string"?Fs.filter(t,e,{xmlMode:r,root:n}):e.filter(uu(t))}K.filterArray=dh;function aR(e){var t=this.toArray();return typeof e=="string"?Fs.some(t.filter(Dr.isTag),e,this.options):e?t.some(uu(e)):!1}K.is=aR;function uR(e){var t=this.toArray();if(typeof e=="string"){var r=new Set(Fs.filter(e,t,this.options));t=t.filter(function(i){return!r.has(i)})}else{var n=uu(e);t=t.filter(function(i,s){return!n(i,s)})}return this._make(t)}K.not=uR;function oR(e){var t=this;return this.filter(typeof e=="string"?":has(".concat(e,")"):function(r,n){return t._make(n).find(e).length>0})}K.has=oR;function cR(){return this.length>1?this._make(this[0]):this}K.first=cR;function lR(){return this.length>0?this._make(this[this.length-1]):this}K.last=lR;function fR(e){var t;return e=+e,e===0&&this.length<=1?this:(e<0&&(e=this.length+e),this._make((t=this[e])!==null&&t!==void 0?t:[]))}K.eq=fR;function dR(e){return e==null?this.toArray():this[e<0?this.length+e:e]}K.get=dR;function hR(){return Array.prototype.slice.call(this)}K.toArray=hR;function pR(e){var t,r;return e==null?(t=this.parent().children(),r=this[0]):typeof e=="string"?(t=this._make(e),r=this[0]):(t=this,r=(0,Dr.isCheerio)(e)?e[0]:e),Array.prototype.indexOf.call(t,r)}K.index=pR;function mR(e,t){return this._make(Array.prototype.slice.call(this,e,t))}K.slice=mR;function gR(){var e;return(e=this.prevObject)!==null&&e!==void 0?e:this._make([])}K.end=gR;function _R(e,t){var r=this._make(e,t),n=(0,jr.uniqueSort)(oh(oh([],this.get(),!0),r.get(),!0));return this._make(n)}K.add=_R;function TR(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this}K.addBack=TR});var hh=U(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.update=js.getParse=void 0;var bR=Ar(),j1=yt();function ER(e){return function(r,n,i,s){if(typeof Buffer!="undefined"&&Buffer.isBuffer(r)&&(r=r.toString()),typeof r=="string")return e(r,n,i,s);var a=r;if(!Array.isArray(a)&&(0,j1.isDocument)(a))return a;var u=new j1.Document([]);return H1(a,u),u}}js.getParse=ER;function H1(e,t){var r=Array.isArray(e)?e:[e];t?t.children=r:t=null;for(var n=0;n<r.length;n++){var i=r[n];i.parent&&i.parent.children!==r&&(0,bR.removeElement)(i),t?(i.prev=r[n-1]||null,i.next=r[n+1]||null):i.prev=i.next=null,i.parent=t}return t}js.update=H1});var z1=U(oe=>{"use strict";var AR=oe&&oe.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};Object.defineProperty(oe,"__esModule",{value:!0});oe.clone=oe.text=oe.toString=oe.html=oe.empty=oe.replaceWith=oe.remove=oe.insertBefore=oe.before=oe.insertAfter=oe.after=oe.wrapAll=oe.unwrap=oe.wrapInner=oe.wrap=oe.prepend=oe.append=oe.prependTo=oe.appendTo=oe._makeDomArray=void 0;var Hr=yt(),Hs=hh(),U1=yi(),st=vi(),yR=Ar();function IR(e,t){var r=this;return e==null?[]:(0,st.isCheerio)(e)?t?(0,st.cloneDom)(e.get()):e.get():Array.isArray(e)?e.reduce(function(n,i){return n.concat(r._makeDomArray(i,t))},[]):typeof e=="string"?this._parse(e,this.options,!1,null).children:t?(0,st.cloneDom)([e]):[e]}oe._makeDomArray=IR;function G1(e){return function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=this.length-1;return(0,st.domEach)(this,function(s,a){if(!!(0,Hr.hasChildren)(s)){var u=typeof r[0]=="function"?r[0].call(s,a,t._render(s.children)):r,o=t._makeDomArray(u,a<i);e(o,s.children,s)}})}}function Yn(e,t,r,n,i){for(var s,a,u=AR([t,r],n,!0),o=t===0?null:e[t-1],c=t+r>=e.length?null:e[t+r],d=0;d<n.length;++d){var h=n[d],f=h.parent;if(f){var p=f.children,A=p.indexOf(h);A>-1&&(f.children.splice(A,1),i===f&&t>A&&u[0]--)}h.parent=i,h.prev&&(h.prev.next=(s=h.next)!==null&&s!==void 0?s:null),h.next&&(h.next.prev=(a=h.prev)!==null&&a!==void 0?a:null),h.prev=d===0?o:n[d-1],h.next=d===n.length-1?c:n[d+1]}return o&&(o.next=n[0]),c&&(c.prev=n[n.length-1]),e.splice.apply(e,u)}function vR(e){var t=(0,st.isCheerio)(e)?e:this._make(e);return t.append(this),this}oe.appendTo=vR;function CR(e){var t=(0,st.isCheerio)(e)?e:this._make(e);return t.prepend(this),this}oe.prependTo=CR;oe.append=G1(function(e,t,r){Yn(t,t.length,0,e,r)});oe.prepend=G1(function(e,t,r){Yn(t,0,0,e,r)});function q1(e){return function(t){for(var r=this.length-1,n=this.parents().last(),i=0;i<this.length;i++){var s=this[i],a=typeof t=="function"?t.call(s,i,s):typeof t=="string"&&!(0,st.isHtml)(t)?n.find(t).clone():t,u=this._makeDomArray(a,i<r)[0];if(!(!u||!(0,Hr.hasChildren)(u))){for(var o=u,c=0;c<o.children.length;){var d=o.children[c];(0,st.isTag)(d)?(o=d,c=0):c++}e(s,o,[u])}}return this}}oe.wrap=q1(function(e,t,r){var n=e.parent;if(!!n){var i=n.children,s=i.indexOf(e);(0,Hs.update)([e],t),Yn(i,s,0,r,n)}});oe.wrapInner=q1(function(e,t,r){!(0,Hr.hasChildren)(e)||((0,Hs.update)(e.children,t),(0,Hs.update)(r,e))});function DR(e){var t=this;return this.parent(e).not("body").each(function(r,n){t._make(n).replaceWith(n.children)}),this}oe.unwrap=DR;function SR(e){var t=this[0];if(t){for(var r=this._make(typeof e=="function"?e.call(t,0,t):e).insertBefore(t),n=void 0,i=0;i<r.length;i++)r[i].type==="tag"&&(n=r[i]);for(var s=0;n&&s<n.children.length;){var a=n.children[s];a.type==="tag"?(n=a,s=0):s++}n&&this._make(n).append(this)}return this}oe.wrapAll=SR;function xR(){for(var e=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=this.length-1;return(0,st.domEach)(this,function(i,s){var a=i.parent;if(!(!(0,Hr.hasChildren)(i)||!a)){var u=a.children,o=u.indexOf(i);if(!(o<0)){var c=typeof t[0]=="function"?t[0].call(i,s,e._render(i.children)):t,d=e._makeDomArray(c,s<n);Yn(u,o+1,0,d,a)}}})}oe.after=xR;function OR(e){var t=this;typeof e=="string"&&(e=this._make(e)),this.remove();var r=[];return this._makeDomArray(e).forEach(function(n){var i=t.clone().toArray(),s=n.parent;if(!!s){var a=s.children,u=a.indexOf(n);u<0||(Yn(a,u+1,0,i,s),r.push.apply(r,i))}}),this._make(r)}oe.insertAfter=OR;function NR(){for(var e=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=this.length-1;return(0,st.domEach)(this,function(i,s){var a=i.parent;if(!(!(0,Hr.hasChildren)(i)||!a)){var u=a.children,o=u.indexOf(i);if(!(o<0)){var c=typeof t[0]=="function"?t[0].call(i,s,e._render(i.children)):t,d=e._makeDomArray(c,s<n);Yn(u,o,0,d,a)}}})}oe.before=NR;function wR(e){var t=this,r=this._make(e);this.remove();var n=[];return(0,st.domEach)(r,function(i){var s=t.clone().toArray(),a=i.parent;if(!!a){var u=a.children,o=u.indexOf(i);o<0||(Yn(u,o,0,s,a),n.push.apply(n,s))}}),this._make(n)}oe.insertBefore=wR;function RR(e){var t=e?this.filter(e):this;return(0,st.domEach)(t,function(r){(0,yR.removeElement)(r),r.prev=r.next=r.parent=null}),this}oe.remove=RR;function PR(e){var t=this;return(0,st.domEach)(this,function(r,n){var i=r.parent;if(!!i){var s=i.children,a=typeof e=="function"?e.call(r,n,r):e,u=t._makeDomArray(a);(0,Hs.update)(u,null);var o=s.indexOf(r);Yn(s,o,1,u,i),u.includes(r)||(r.parent=r.prev=r.next=null)}})}oe.replaceWith=PR;function LR(){return(0,st.domEach)(this,function(e){!(0,Hr.hasChildren)(e)||(e.children.forEach(function(t){t.next=t.prev=t.parent=null}),e.children.length=0)})}oe.empty=LR;function MR(e){var t=this;if(e===void 0){var r=this[0];return!r||!(0,Hr.hasChildren)(r)?null:this._render(r.children)}return(0,st.domEach)(this,function(n){if(!!(0,Hr.hasChildren)(n)){n.children.forEach(function(s){s.next=s.prev=s.parent=null});var i=(0,st.isCheerio)(e)?e.toArray():t._parse("".concat(e),t.options,!1,n).children;(0,Hs.update)(i,n)}})}oe.html=MR;function kR(){return this._render(this)}oe.toString=kR;function FR(e){var t=this;return e===void 0?(0,U1.text)(this):typeof e=="function"?(0,st.domEach)(this,function(r,n){return t._make(r).text(e.call(r,n,(0,U1.text)([r])))}):(0,st.domEach)(this,function(r){if(!!(0,Hr.hasChildren)(r)){r.children.forEach(function(i){i.next=i.prev=i.parent=null});var n=new Hr.Text("".concat(e));(0,Hs.update)(n,r)}})}oe.text=FR;function BR(){return this._make((0,st.cloneDom)(this.get()))}oe.clone=BR});var W1=U(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.css=void 0;var ph=vi();function jR(e,t){if(e!=null&&t!=null||typeof e=="object"&&!Array.isArray(e))return(0,ph.domEach)(this,function(r,n){(0,ph.isTag)(r)&&V1(r,e,t,n)});if(this.length!==0)return K1(this[0],e)}Nc.css=jR;function V1(e,t,r,n){if(typeof t=="string"){var i=K1(e),s=typeof r=="function"?r.call(e,n,i[t]):r;s===""?delete i[t]:s!=null&&(i[t]=s),e.attribs.style=HR(i)}else typeof t=="object"&&Object.keys(t).forEach(function(a,u){V1(e,a,t[a],u)})}function K1(e,t){if(!(!e||!(0,ph.isTag)(e))){var r=UR(e.attribs.style);if(typeof t=="string")return r[t];if(Array.isArray(t)){var n={};return t.forEach(function(i){r[i]!=null&&(n[i]=r[i])}),n}return r}}function HR(e){return Object.keys(e).reduce(function(t,r){return"".concat(t).concat(t?" ":"").concat(r,": ").concat(e[r],";")},"")}function UR(e){if(e=(e||"").trim(),!e)return{};for(var t={},r,n=0,i=e.split(";");n<i.length;n++){var s=i[n],a=s.indexOf(":");if(a<1||a===s.length-1){var u=s.trimEnd();u.length>0&&r!==void 0&&(t[r]+=";".concat(u))}else r=s.slice(0,a).trim(),t[r]=s.slice(a+1).trim()}return t}});var $1=U(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.serializeArray=Us.serialize=void 0;var GR=vi(),Y1="input,select,textarea,keygen",qR=/%20/g,Q1=/\r?\n/g;function zR(){var e=this.serializeArray(),t=e.map(function(r){return"".concat(encodeURIComponent(r.name),"=").concat(encodeURIComponent(r.value))});return t.join("&").replace(qR,"+")}Us.serialize=zR;function VR(){var e=this;return this.map(function(t,r){var n=e._make(r);return(0,GR.isTag)(r)&&r.name==="form"?n.find(Y1).toArray():n.filter(Y1).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map(function(t,r){var n,i=e._make(r),s=i.attr("name"),a=(n=i.val())!==null&&n!==void 0?n:"";return Array.isArray(a)?a.map(function(u){return{name:s,value:u.replace(Q1,`\r
|
||
`)}}):{name:s,value:a.replace(Q1,`\r
|
||
`)}}).toArray()}Us.serializeArray=VR});var X1=U(Ur=>{"use strict";var KR=Ur&&Ur.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),WR=Ur&&Ur.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),ou=Ur&&Ur.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&KR(t,e,r);return WR(t,e),t};Object.defineProperty(Ur,"__esModule",{value:!0});Ur.Cheerio=void 0;var YR=ou(UE()),QR=ou(B1()),$R=ou(z1()),XR=ou(W1()),ZR=ou($1()),cu=function(){function e(t,r,n){if(this.length=0,this.options=n,this._root=r,t){for(var i=0;i<t.length;i++)this[i]=t[i];this.length=t.length}}return e}();Ur.Cheerio=cu;cu.prototype.cheerio="[cheerio object]";cu.prototype.splice=Array.prototype.splice;cu.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(cu.prototype,YR,QR,$R,XR,ZR)});var J1=U(Ut=>{"use strict";var JR=Ut&&Ut.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Gs=Ut&&Ut.__assign||function(){return Gs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Gs.apply(this,arguments)},eP=Ut&&Ut.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),tP=Ut&&Ut.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Z1=Ut&&Ut.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&eP(t,e,r);return tP(t,e),t};Object.defineProperty(Ut,"__esModule",{value:!0});Ut.getLoad=void 0;var mh=Z1(fd()),rP=Z1(yi()),nP=X1(),lu=vi();function iP(e,t){return function r(n,i,s){if(s===void 0&&(s=!0),n==null)throw new Error("cheerio.load() expects a string");var a=Gs(Gs({},mh.default),(0,mh.flatten)(i)),u=e(n,a,s,null),o=function(d){JR(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype._make=function(f,p){var A=c(f,p);return A.prevObject=this,A},h.prototype._parse=function(f,p,A,b){return e(f,p,A,b)},h.prototype._render=function(f){return t(f,this.options)},h}(nP.Cheerio);function c(d,h,f,p){if(f===void 0&&(f=u),d&&(0,lu.isCheerio)(d))return d;var A=Gs(Gs({},a),(0,mh.flatten)(p)),b=typeof f=="string"?[e(f,A,!1,null)]:"length"in f?f:[f],D=(0,lu.isCheerio)(b)?b:new o(b,null,A);if(D._root=D,!d)return new o(void 0,D,A);var g=typeof d=="string"&&(0,lu.isHtml)(d)?e(d,A,!1,null).children:sP(d)?[d]:Array.isArray(d)?d:void 0,v=new o(g,D,A);if(g)return v;if(typeof d!="string")throw new Error("Unexpected type of selector");var I=d,T=h?typeof h=="string"?(0,lu.isHtml)(h)?new o([e(h,A,!1,null)],D,A):(I="".concat(h," ").concat(I),D):(0,lu.isCheerio)(h)?h:new o(Array.isArray(h)?h:[h],D,A):D;return T?T.find(I):v}return Object.assign(c,rP,{load:r,_root:u,_options:a,fn:o.prototype,prototype:o.prototype}),c}}Ut.getLoad=iP;function sP(e){return!!e.name||e.type==="root"||e.type==="text"||e.type==="comment"}});var wc=U(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.isUndefinedCodePoint=at.isControlCodePoint=at.getSurrogatePairCodePoint=at.isSurrogatePair=at.isSurrogate=at.SEQUENCES=at.CODE_POINTS=at.REPLACEMENT_CHARACTER=void 0;var aP=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);at.REPLACEMENT_CHARACTER="\uFFFD";var uP;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",e[e.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_F=102]="LATIN_SMALL_F",e[e.LATIN_SMALL_X=120]="LATIN_SMALL_X",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",e[e.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"})(uP=at.CODE_POINTS||(at.CODE_POINTS={}));at.SEQUENCES={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function oP(e){return e>=55296&&e<=57343}at.isSurrogate=oP;function cP(e){return e>=56320&&e<=57343}at.isSurrogatePair=cP;function lP(e,t){return(e-55296)*1024+9216+t}at.getSurrogatePairCodePoint=lP;function fP(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}at.isControlCodePoint=fP;function dP(e){return e>=64976&&e<=65007||aP.has(e)}at.isUndefinedCodePoint=dP});var du=U(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.ERR=void 0;var hP;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(hP=fu.ERR||(fu.ERR={}))});var tA=U(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.Preprocessor=void 0;var wt=wc(),gh=du(),pP=1<<16,eA=class{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=pP,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t){let{line:r,col:n,offset:i}=this;return{code:t,startLine:r,endLine:r,startCol:n,endCol:n,startOffset:i,endOffset:i}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){let r=this.html.charCodeAt(this.pos+1);if((0,wt.isSurrogatePair)(r))return this.pos++,this._addGap(),(0,wt.getSurrogatePairCodePoint)(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,wt.CODE_POINTS.EOF;return this._err(gh.ERR.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,r){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,r){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(t,this.pos);for(let n=0;n<t.length;n++)if((this.html.charCodeAt(this.pos+n)|32)!==t.charCodeAt(n))return!1;return!0}peek(t){let r=this.pos+t;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,wt.CODE_POINTS.EOF;let n=this.html.charCodeAt(r);return n===wt.CODE_POINTS.CARRIAGE_RETURN?wt.CODE_POINTS.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,wt.CODE_POINTS.EOF;let t=this.html.charCodeAt(this.pos);return t===wt.CODE_POINTS.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,wt.CODE_POINTS.LINE_FEED):t===wt.CODE_POINTS.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,(0,wt.isSurrogate)(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===wt.CODE_POINTS.LINE_FEED||t===wt.CODE_POINTS.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){(0,wt.isControlCodePoint)(t)?this._err(gh.ERR.controlCharacterInInputStream):(0,wt.isUndefinedCodePoint)(t)&&this._err(gh.ERR.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}};Rc.Preprocessor=eA});var Pc=U(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.getTokenAttr=Si.TokenType=void 0;var mP;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(mP=Si.TokenType||(Si.TokenType={}));function gP(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}Si.getTokenAttr=gP});var fn=U(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.hasUnescapedText=Ge.isNumberedHeader=Ge.SPECIAL_ELEMENTS=Ge.getTagID=Ge.TAG_ID=Ge.TAG_NAMES=Ge.DOCUMENT_MODE=Ge.ATTRS=Ge.NS=void 0;var xi;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(xi=Ge.NS||(Ge.NS={}));var _P;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(_P=Ge.ATTRS||(Ge.ATTRS={}));var TP;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(TP=Ge.DOCUMENT_MODE||(Ge.DOCUMENT_MODE={}));var O;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(O=Ge.TAG_NAMES||(Ge.TAG_NAMES={}));var w;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"})(w=Ge.TAG_ID||(Ge.TAG_ID={}));var bP=new Map([[O.A,w.A],[O.ADDRESS,w.ADDRESS],[O.ANNOTATION_XML,w.ANNOTATION_XML],[O.APPLET,w.APPLET],[O.AREA,w.AREA],[O.ARTICLE,w.ARTICLE],[O.ASIDE,w.ASIDE],[O.B,w.B],[O.BASE,w.BASE],[O.BASEFONT,w.BASEFONT],[O.BGSOUND,w.BGSOUND],[O.BIG,w.BIG],[O.BLOCKQUOTE,w.BLOCKQUOTE],[O.BODY,w.BODY],[O.BR,w.BR],[O.BUTTON,w.BUTTON],[O.CAPTION,w.CAPTION],[O.CENTER,w.CENTER],[O.CODE,w.CODE],[O.COL,w.COL],[O.COLGROUP,w.COLGROUP],[O.DD,w.DD],[O.DESC,w.DESC],[O.DETAILS,w.DETAILS],[O.DIALOG,w.DIALOG],[O.DIR,w.DIR],[O.DIV,w.DIV],[O.DL,w.DL],[O.DT,w.DT],[O.EM,w.EM],[O.EMBED,w.EMBED],[O.FIELDSET,w.FIELDSET],[O.FIGCAPTION,w.FIGCAPTION],[O.FIGURE,w.FIGURE],[O.FONT,w.FONT],[O.FOOTER,w.FOOTER],[O.FOREIGN_OBJECT,w.FOREIGN_OBJECT],[O.FORM,w.FORM],[O.FRAME,w.FRAME],[O.FRAMESET,w.FRAMESET],[O.H1,w.H1],[O.H2,w.H2],[O.H3,w.H3],[O.H4,w.H4],[O.H5,w.H5],[O.H6,w.H6],[O.HEAD,w.HEAD],[O.HEADER,w.HEADER],[O.HGROUP,w.HGROUP],[O.HR,w.HR],[O.HTML,w.HTML],[O.I,w.I],[O.IMG,w.IMG],[O.IMAGE,w.IMAGE],[O.INPUT,w.INPUT],[O.IFRAME,w.IFRAME],[O.KEYGEN,w.KEYGEN],[O.LABEL,w.LABEL],[O.LI,w.LI],[O.LINK,w.LINK],[O.LISTING,w.LISTING],[O.MAIN,w.MAIN],[O.MALIGNMARK,w.MALIGNMARK],[O.MARQUEE,w.MARQUEE],[O.MATH,w.MATH],[O.MENU,w.MENU],[O.META,w.META],[O.MGLYPH,w.MGLYPH],[O.MI,w.MI],[O.MO,w.MO],[O.MN,w.MN],[O.MS,w.MS],[O.MTEXT,w.MTEXT],[O.NAV,w.NAV],[O.NOBR,w.NOBR],[O.NOFRAMES,w.NOFRAMES],[O.NOEMBED,w.NOEMBED],[O.NOSCRIPT,w.NOSCRIPT],[O.OBJECT,w.OBJECT],[O.OL,w.OL],[O.OPTGROUP,w.OPTGROUP],[O.OPTION,w.OPTION],[O.P,w.P],[O.PARAM,w.PARAM],[O.PLAINTEXT,w.PLAINTEXT],[O.PRE,w.PRE],[O.RB,w.RB],[O.RP,w.RP],[O.RT,w.RT],[O.RTC,w.RTC],[O.RUBY,w.RUBY],[O.S,w.S],[O.SCRIPT,w.SCRIPT],[O.SECTION,w.SECTION],[O.SELECT,w.SELECT],[O.SOURCE,w.SOURCE],[O.SMALL,w.SMALL],[O.SPAN,w.SPAN],[O.STRIKE,w.STRIKE],[O.STRONG,w.STRONG],[O.STYLE,w.STYLE],[O.SUB,w.SUB],[O.SUMMARY,w.SUMMARY],[O.SUP,w.SUP],[O.TABLE,w.TABLE],[O.TBODY,w.TBODY],[O.TEMPLATE,w.TEMPLATE],[O.TEXTAREA,w.TEXTAREA],[O.TFOOT,w.TFOOT],[O.TD,w.TD],[O.TH,w.TH],[O.THEAD,w.THEAD],[O.TITLE,w.TITLE],[O.TR,w.TR],[O.TRACK,w.TRACK],[O.TT,w.TT],[O.U,w.U],[O.UL,w.UL],[O.SVG,w.SVG],[O.VAR,w.VAR],[O.WBR,w.WBR],[O.XMP,w.XMP]]);function EP(e){var t;return(t=bP.get(e))!==null&&t!==void 0?t:w.UNKNOWN}Ge.getTagID=EP;var B=w;Ge.SPECIAL_ELEMENTS={[xi.HTML]:new Set([B.ADDRESS,B.APPLET,B.AREA,B.ARTICLE,B.ASIDE,B.BASE,B.BASEFONT,B.BGSOUND,B.BLOCKQUOTE,B.BODY,B.BR,B.BUTTON,B.CAPTION,B.CENTER,B.COL,B.COLGROUP,B.DD,B.DETAILS,B.DIR,B.DIV,B.DL,B.DT,B.EMBED,B.FIELDSET,B.FIGCAPTION,B.FIGURE,B.FOOTER,B.FORM,B.FRAME,B.FRAMESET,B.H1,B.H2,B.H3,B.H4,B.H5,B.H6,B.HEAD,B.HEADER,B.HGROUP,B.HR,B.HTML,B.IFRAME,B.IMG,B.INPUT,B.LI,B.LINK,B.LISTING,B.MAIN,B.MARQUEE,B.MENU,B.META,B.NAV,B.NOEMBED,B.NOFRAMES,B.NOSCRIPT,B.OBJECT,B.OL,B.P,B.PARAM,B.PLAINTEXT,B.PRE,B.SCRIPT,B.SECTION,B.SELECT,B.SOURCE,B.STYLE,B.SUMMARY,B.TABLE,B.TBODY,B.TD,B.TEMPLATE,B.TEXTAREA,B.TFOOT,B.TH,B.THEAD,B.TITLE,B.TR,B.TRACK,B.UL,B.WBR,B.XMP]),[xi.MATHML]:new Set([B.MI,B.MO,B.MN,B.MS,B.MTEXT,B.ANNOTATION_XML]),[xi.SVG]:new Set([B.TITLE,B.FOREIGN_OBJECT,B.DESC]),[xi.XLINK]:new Set,[xi.XML]:new Set,[xi.XMLNS]:new Set};function AP(e){return e===B.H1||e===B.H2||e===B.H3||e===B.H4||e===B.H5||e===B.H6}Ge.isNumberedHeader=AP;var yP=new Set([O.STYLE,O.SCRIPT,O.XMP,O.IFRAME,O.NOEMBED,O.NOFRAMES,O.PLAINTEXT]);function IP(e,t){return yP.has(e)||t&&e===O.NOSCRIPT}Ge.hasUnescapedText=IP});var bh=U(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.Tokenizer=qs.TokenizerMode=void 0;var vP=tA(),m=wc(),Gt=Pc(),Gr=Is(),L=du(),_h=fn(),CP=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),_;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(_||(_={}));qs.TokenizerMode={DATA:_.DATA,RCDATA:_.RCDATA,RAWTEXT:_.RAWTEXT,SCRIPT_DATA:_.SCRIPT_DATA,PLAINTEXT:_.PLAINTEXT,CDATA_SECTION:_.CDATA_SECTION};function hu(e){return e>=m.CODE_POINTS.DIGIT_0&&e<=m.CODE_POINTS.DIGIT_9}function pu(e){return e>=m.CODE_POINTS.LATIN_CAPITAL_A&&e<=m.CODE_POINTS.LATIN_CAPITAL_Z}function DP(e){return e>=m.CODE_POINTS.LATIN_SMALL_A&&e<=m.CODE_POINTS.LATIN_SMALL_Z}function Qn(e){return DP(e)||pu(e)}function Th(e){return Qn(e)||hu(e)}function rA(e){return e>=m.CODE_POINTS.LATIN_CAPITAL_A&&e<=m.CODE_POINTS.LATIN_CAPITAL_F}function nA(e){return e>=m.CODE_POINTS.LATIN_SMALL_A&&e<=m.CODE_POINTS.LATIN_SMALL_F}function SP(e){return hu(e)||rA(e)||nA(e)}function Lc(e){return e+32}function iA(e){return e===m.CODE_POINTS.SPACE||e===m.CODE_POINTS.LINE_FEED||e===m.CODE_POINTS.TABULATION||e===m.CODE_POINTS.FORM_FEED}function xP(e){return e===m.CODE_POINTS.EQUALS_SIGN||Th(e)}function sA(e){return iA(e)||e===m.CODE_POINTS.SOLIDUS||e===m.CODE_POINTS.GREATER_THAN_SIGN}var aA=class{constructor(t,r){this.options=t,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=_.DATA,this.returnState=_.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new vP.Preprocessor(r),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var r,n;(n=(r=this.handler).onParseError)===null||n===void 0||n.call(r,this.preprocessor.getError(t))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,r,n){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||n==null||n()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}_reconsumeInState(t,r){this.state=t,this._callState(r)}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let r=0;r<t;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,r){return this.preprocessor.startsWith(t,r)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Gt.TokenType.START_TAG,tagName:"",tagID:_h.TAG_ID.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Gt.TokenType.END_TAG,tagName:"",tagID:_h.TAG_ID.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Gt.TokenType.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Gt.TokenType.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,r){this.currentCharacterToken={type:t,chars:r,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,r;let n=this.currentToken;if((0,Gt.getTokenAttr)(n,this.currentAttr.name)===null){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){let i=(t=(r=n.location).attrs)!==null&&t!==void 0?t:r.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(L.ERR.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let t=this.currentToken;this.prepareToken(t),t.tagID=(0,_h.getTagID)(t.tagName),t.type===Gt.TokenType.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(L.ERR.endTagWithAttributes),t.selfClosing&&this._err(L.ERR.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Gt.TokenType.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Gt.TokenType.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Gt.TokenType.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){let t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Gt.TokenType.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==t)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=r;return}this._createCharacterToken(t,r)}_emitCodePoint(t){let r=iA(t)?Gt.TokenType.WHITESPACE_CHARACTER:t===m.CODE_POINTS.NULL?Gt.TokenType.NULL_CHARACTER:Gt.TokenType.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Gt.TokenType.CHARACTER,t)}_matchNamedCharacterReference(t){let r=null,n=0,i=!1;for(let s=0,a=Gr.htmlDecodeTree[0];s>=0&&(s=(0,Gr.determineBranch)(Gr.htmlDecodeTree,a,s+1,t),!(s<0));t=this._consume()){n+=1,a=Gr.htmlDecodeTree[s];let u=a&Gr.BinTrieFlags.VALUE_LENGTH;if(u){let o=(u>>14)-1;if(t!==m.CODE_POINTS.SEMICOLON&&this._isCharacterReferenceInAttribute()&&xP(this.preprocessor.peek(1))?(r=[m.CODE_POINTS.AMPERSAND],s+=o):(r=o===0?[Gr.htmlDecodeTree[s]&~Gr.BinTrieFlags.VALUE_LENGTH]:o===1?[Gr.htmlDecodeTree[++s]]:[Gr.htmlDecodeTree[++s],Gr.htmlDecodeTree[++s]],n=0,i=t!==m.CODE_POINTS.SEMICOLON),o===0){this._consume();break}}}return this._unconsume(n),i&&!this.preprocessor.endOfChunkHit&&this._err(L.ERR.missingSemicolonAfterCharacterReference),this._unconsume(1),r}_isCharacterReferenceInAttribute(){return this.returnState===_.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===_.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===_.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case _.DATA:{this._stateData(t);break}case _.RCDATA:{this._stateRcdata(t);break}case _.RAWTEXT:{this._stateRawtext(t);break}case _.SCRIPT_DATA:{this._stateScriptData(t);break}case _.PLAINTEXT:{this._statePlaintext(t);break}case _.TAG_OPEN:{this._stateTagOpen(t);break}case _.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case _.TAG_NAME:{this._stateTagName(t);break}case _.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case _.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case _.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case _.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case _.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case _.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case _.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case _.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case _.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case _.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case _.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case _.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case _.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case _.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case _.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case _.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case _.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case _.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case _.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case _.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case _.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case _.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case _.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case _.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case _.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case _.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case _.BOGUS_COMMENT:{this._stateBogusComment(t);break}case _.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case _.COMMENT_START:{this._stateCommentStart(t);break}case _.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case _.COMMENT:{this._stateComment(t);break}case _.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case _.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case _.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case _.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case _.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case _.COMMENT_END:{this._stateCommentEnd(t);break}case _.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case _.DOCTYPE:{this._stateDoctype(t);break}case _.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case _.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case _.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case _.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case _.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case _.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case _.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case _.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case _.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case _.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case _.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case _.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case _.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case _.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case _.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case _.CDATA_SECTION:{this._stateCdataSection(t);break}case _.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case _.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case _.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case _.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case _.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case _.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case _.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case _.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case _.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case _.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case m.CODE_POINTS.LESS_THAN_SIGN:{this.state=_.TAG_OPEN;break}case m.CODE_POINTS.AMPERSAND:{this.returnState=_.DATA,this.state=_.CHARACTER_REFERENCE;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this._emitCodePoint(t);break}case m.CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case m.CODE_POINTS.AMPERSAND:{this.returnState=_.RCDATA,this.state=_.CHARACTER_REFERENCE;break}case m.CODE_POINTS.LESS_THAN_SIGN:{this.state=_.RCDATA_LESS_THAN_SIGN;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this._emitChars(m.REPLACEMENT_CHARACTER);break}case m.CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case m.CODE_POINTS.LESS_THAN_SIGN:{this.state=_.RAWTEXT_LESS_THAN_SIGN;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this._emitChars(m.REPLACEMENT_CHARACTER);break}case m.CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case m.CODE_POINTS.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_LESS_THAN_SIGN;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this._emitChars(m.REPLACEMENT_CHARACTER);break}case m.CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this._emitChars(m.REPLACEMENT_CHARACTER);break}case m.CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Qn(t))this._createStartTagToken(),this.state=_.TAG_NAME,this._stateTagName(t);else switch(t){case m.CODE_POINTS.EXCLAMATION_MARK:{this.state=_.MARKUP_DECLARATION_OPEN;break}case m.CODE_POINTS.SOLIDUS:{this.state=_.END_TAG_OPEN;break}case m.CODE_POINTS.QUESTION_MARK:{this._err(L.ERR.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=_.BOGUS_COMMENT,this._stateBogusComment(t);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(L.ERR.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=_.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Qn(t))this._createEndTagToken(),this.state=_.TAG_NAME,this._stateTagName(t);else switch(t){case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.missingEndTagName),this.state=_.DATA;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(L.ERR.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=_.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:{this.state=_.BEFORE_ATTRIBUTE_NAME;break}case m.CODE_POINTS.SOLIDUS:{this.state=_.SELF_CLOSING_START_TAG;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentTagToken();break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),r.tagName+=m.REPLACEMENT_CHARACTER;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(pu(t)?Lc(t):t)}}_stateRcdataLessThanSign(t){t===m.CODE_POINTS.SOLIDUS?this.state=_.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=_.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Qn(t)?(this.state=_.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=_.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();let r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=_.BEFORE_ATTRIBUTE_NAME,!1;case m.CODE_POINTS.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=_.SELF_CLOSING_START_TAG,!1;case m.CODE_POINTS.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=_.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=_.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===m.CODE_POINTS.SOLIDUS?this.state=_.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=_.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Qn(t)?(this.state=_.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=_.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=_.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case m.CODE_POINTS.SOLIDUS:{this.state=_.SCRIPT_DATA_END_TAG_OPEN;break}case m.CODE_POINTS.EXCLAMATION_MARK:{this.state=_.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=_.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Qn(t)?(this.state=_.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=_.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=_.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===m.CODE_POINTS.HYPHEN_MINUS?(this.state=_.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=_.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===m.CODE_POINTS.HYPHEN_MINUS?(this.state=_.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=_.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case m.CODE_POINTS.HYPHEN_MINUS:{this.state=_.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case m.CODE_POINTS.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this._emitChars(m.REPLACEMENT_CHARACTER);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case m.CODE_POINTS.HYPHEN_MINUS:{this.state=_.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case m.CODE_POINTS.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this.state=_.SCRIPT_DATA_ESCAPED,this._emitChars(m.REPLACEMENT_CHARACTER);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=_.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case m.CODE_POINTS.HYPHEN_MINUS:{this._emitChars("-");break}case m.CODE_POINTS.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this.state=_.SCRIPT_DATA,this._emitChars(">");break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this.state=_.SCRIPT_DATA_ESCAPED,this._emitChars(m.REPLACEMENT_CHARACTER);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=_.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===m.CODE_POINTS.SOLIDUS?this.state=_.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Qn(t)?(this._emitChars("<"),this.state=_.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=_.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Qn(t)?(this.state=_.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=_.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=_.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(m.SEQUENCES.SCRIPT,!1)&&sA(this.preprocessor.peek(m.SEQUENCES.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<m.SEQUENCES.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=_.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case m.CODE_POINTS.HYPHEN_MINUS:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case m.CODE_POINTS.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this._emitChars(m.REPLACEMENT_CHARACTER);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case m.CODE_POINTS.HYPHEN_MINUS:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case m.CODE_POINTS.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(m.REPLACEMENT_CHARACTER);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case m.CODE_POINTS.HYPHEN_MINUS:{this._emitChars("-");break}case m.CODE_POINTS.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this.state=_.SCRIPT_DATA,this._emitChars(">");break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(m.REPLACEMENT_CHARACTER);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===m.CODE_POINTS.SOLIDUS?(this.state=_.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(m.SEQUENCES.SCRIPT,!1)&&sA(this.preprocessor.peek(m.SEQUENCES.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<m.SEQUENCES.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=_.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:break;case m.CODE_POINTS.SOLIDUS:case m.CODE_POINTS.GREATER_THAN_SIGN:case m.CODE_POINTS.EOF:{this.state=_.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case m.CODE_POINTS.EQUALS_SIGN:{this._err(L.ERR.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=_.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=_.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:case m.CODE_POINTS.SOLIDUS:case m.CODE_POINTS.GREATER_THAN_SIGN:case m.CODE_POINTS.EOF:{this._leaveAttrName(),this.state=_.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case m.CODE_POINTS.EQUALS_SIGN:{this._leaveAttrName(),this.state=_.BEFORE_ATTRIBUTE_VALUE;break}case m.CODE_POINTS.QUOTATION_MARK:case m.CODE_POINTS.APOSTROPHE:case m.CODE_POINTS.LESS_THAN_SIGN:{this._err(L.ERR.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this.currentAttr.name+=m.REPLACEMENT_CHARACTER;break}default:this.currentAttr.name+=String.fromCodePoint(pu(t)?Lc(t):t)}}_stateAfterAttributeName(t){switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:break;case m.CODE_POINTS.SOLIDUS:{this.state=_.SELF_CLOSING_START_TAG;break}case m.CODE_POINTS.EQUALS_SIGN:{this.state=_.BEFORE_ATTRIBUTE_VALUE;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentTagToken();break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=_.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:break;case m.CODE_POINTS.QUOTATION_MARK:{this.state=_.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case m.CODE_POINTS.APOSTROPHE:{this.state=_.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.missingAttributeValue),this.state=_.DATA,this.emitCurrentTagToken();break}default:this.state=_.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case m.CODE_POINTS.QUOTATION_MARK:{this.state=_.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case m.CODE_POINTS.AMPERSAND:{this.returnState=_.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=_.CHARACTER_REFERENCE;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this.currentAttr.value+=m.REPLACEMENT_CHARACTER;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case m.CODE_POINTS.APOSTROPHE:{this.state=_.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case m.CODE_POINTS.AMPERSAND:{this.returnState=_.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=_.CHARACTER_REFERENCE;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this.currentAttr.value+=m.REPLACEMENT_CHARACTER;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:{this._leaveAttrValue(),this.state=_.BEFORE_ATTRIBUTE_NAME;break}case m.CODE_POINTS.AMPERSAND:{this.returnState=_.ATTRIBUTE_VALUE_UNQUOTED,this.state=_.CHARACTER_REFERENCE;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=_.DATA,this.emitCurrentTagToken();break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this.currentAttr.value+=m.REPLACEMENT_CHARACTER;break}case m.CODE_POINTS.QUOTATION_MARK:case m.CODE_POINTS.APOSTROPHE:case m.CODE_POINTS.LESS_THAN_SIGN:case m.CODE_POINTS.EQUALS_SIGN:case m.CODE_POINTS.GRAVE_ACCENT:{this._err(L.ERR.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:{this._leaveAttrValue(),this.state=_.BEFORE_ATTRIBUTE_NAME;break}case m.CODE_POINTS.SOLIDUS:{this._leaveAttrValue(),this.state=_.SELF_CLOSING_START_TAG;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=_.DATA,this.emitCurrentTagToken();break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInTag),this._emitEOFToken();break}default:this._err(L.ERR.missingWhitespaceBetweenAttributes),this.state=_.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case m.CODE_POINTS.GREATER_THAN_SIGN:{let r=this.currentToken;r.selfClosing=!0,this.state=_.DATA,this.emitCurrentTagToken();break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInTag),this._emitEOFToken();break}default:this._err(L.ERR.unexpectedSolidusInTag),this.state=_.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentComment(r);break}case m.CODE_POINTS.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),r.data+=m.REPLACEMENT_CHARACTER;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(m.SEQUENCES.DASH_DASH,!0)?(this._createCommentToken(m.SEQUENCES.DASH_DASH.length+1),this.state=_.COMMENT_START):this._consumeSequenceIfMatch(m.SEQUENCES.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(m.SEQUENCES.DOCTYPE.length+1),this.state=_.DOCTYPE):this._consumeSequenceIfMatch(m.SEQUENCES.CDATA_START,!0)?this.inForeignNode?this.state=_.CDATA_SECTION:(this._err(L.ERR.cdataInHtmlContent),this._createCommentToken(m.SEQUENCES.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=_.BOGUS_COMMENT):this._ensureHibernation()||(this._err(L.ERR.incorrectlyOpenedComment),this._createCommentToken(2),this.state=_.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case m.CODE_POINTS.HYPHEN_MINUS:{this.state=_.COMMENT_START_DASH;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.abruptClosingOfEmptyComment),this.state=_.DATA;let r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=_.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.HYPHEN_MINUS:{this.state=_.COMMENT_END;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.abruptClosingOfEmptyComment),this.state=_.DATA,this.emitCurrentComment(r);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=_.COMMENT,this._stateComment(t)}}_stateComment(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.HYPHEN_MINUS:{this.state=_.COMMENT_END_DASH;break}case m.CODE_POINTS.LESS_THAN_SIGN:{r.data+="<",this.state=_.COMMENT_LESS_THAN_SIGN;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),r.data+=m.REPLACEMENT_CHARACTER;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.EXCLAMATION_MARK:{r.data+="!",this.state=_.COMMENT_LESS_THAN_SIGN_BANG;break}case m.CODE_POINTS.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=_.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===m.CODE_POINTS.HYPHEN_MINUS?this.state=_.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=_.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===m.CODE_POINTS.HYPHEN_MINUS?this.state=_.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=_.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==m.CODE_POINTS.GREATER_THAN_SIGN&&t!==m.CODE_POINTS.EOF&&this._err(L.ERR.nestedComment),this.state=_.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.HYPHEN_MINUS:{this.state=_.COMMENT_END;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=_.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentComment(r);break}case m.CODE_POINTS.EXCLAMATION_MARK:{this.state=_.COMMENT_END_BANG;break}case m.CODE_POINTS.HYPHEN_MINUS:{r.data+="-";break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=_.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.HYPHEN_MINUS:{r.data+="--!",this.state=_.COMMENT_END_DASH;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.incorrectlyClosedComment),this.state=_.DATA,this.emitCurrentComment(r);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=_.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:{this.state=_.BEFORE_DOCTYPE_NAME;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this.state=_.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(L.ERR.missingWhitespaceBeforeDoctypeName),this.state=_.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(pu(t))this._createDoctypeToken(String.fromCharCode(Lc(t))),this.state=_.DOCTYPE_NAME;else switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:break;case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this._createDoctypeToken(m.REPLACEMENT_CHARACTER),this.state=_.DOCTYPE_NAME;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.missingDoctypeName),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=_.DATA;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=_.DOCTYPE_NAME}}_stateDoctypeName(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:{this.state=_.AFTER_DOCTYPE_NAME;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentDoctype(r);break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),r.name+=m.REPLACEMENT_CHARACTER;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(pu(t)?Lc(t):t)}}_stateAfterDoctypeName(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:break;case m.CODE_POINTS.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentDoctype(r);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(m.SEQUENCES.PUBLIC,!1)?this.state=_.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(m.SEQUENCES.SYSTEM,!1)?this.state=_.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(L.ERR.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:{this.state=_.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case m.CODE_POINTS.QUOTATION_MARK:{this._err(L.ERR.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=_.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case m.CODE_POINTS.APOSTROPHE:{this._err(L.ERR.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=_.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=_.DATA,this.emitCurrentDoctype(r);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(L.ERR.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:break;case m.CODE_POINTS.QUOTATION_MARK:{r.publicId="",this.state=_.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case m.CODE_POINTS.APOSTROPHE:{r.publicId="",this.state=_.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=_.DATA,this.emitCurrentDoctype(r);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(L.ERR.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.QUOTATION_MARK:{this.state=_.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),r.publicId+=m.REPLACEMENT_CHARACTER;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=_.DATA;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.APOSTROPHE:{this.state=_.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),r.publicId+=m.REPLACEMENT_CHARACTER;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=_.DATA;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:{this.state=_.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentDoctype(r);break}case m.CODE_POINTS.QUOTATION_MARK:{this._err(L.ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case m.CODE_POINTS.APOSTROPHE:{this._err(L.ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(L.ERR.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:break;case m.CODE_POINTS.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=_.DATA;break}case m.CODE_POINTS.QUOTATION_MARK:{r.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case m.CODE_POINTS.APOSTROPHE:{r.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(L.ERR.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:{this.state=_.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case m.CODE_POINTS.QUOTATION_MARK:{this._err(L.ERR.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case m.CODE_POINTS.APOSTROPHE:{this._err(L.ERR.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=_.DATA,this.emitCurrentDoctype(r);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(L.ERR.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:break;case m.CODE_POINTS.QUOTATION_MARK:{r.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case m.CODE_POINTS.APOSTROPHE:{r.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=_.DATA,this.emitCurrentDoctype(r);break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(L.ERR.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.QUOTATION_MARK:{this.state=_.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),r.systemId+=m.REPLACEMENT_CHARACTER;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=_.DATA;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.APOSTROPHE:{this.state=_.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),r.systemId+=m.REPLACEMENT_CHARACTER;break}case m.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=_.DATA;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.SPACE:case m.CODE_POINTS.LINE_FEED:case m.CODE_POINTS.TABULATION:case m.CODE_POINTS.FORM_FEED:break;case m.CODE_POINTS.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=_.DATA;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(L.ERR.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){let r=this.currentToken;switch(t){case m.CODE_POINTS.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=_.DATA;break}case m.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter);break}case m.CODE_POINTS.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}default:}}_stateCdataSection(t){switch(t){case m.CODE_POINTS.RIGHT_SQUARE_BRACKET:{this.state=_.CDATA_SECTION_BRACKET;break}case m.CODE_POINTS.EOF:{this._err(L.ERR.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===m.CODE_POINTS.RIGHT_SQUARE_BRACKET?this.state=_.CDATA_SECTION_END:(this._emitChars("]"),this.state=_.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case m.CODE_POINTS.GREATER_THAN_SIGN:{this.state=_.DATA;break}case m.CODE_POINTS.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=_.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(t){t===m.CODE_POINTS.NUMBER_SIGN?this.state=_.NUMERIC_CHARACTER_REFERENCE:Th(t)?(this.state=_.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(t)):(this._flushCodePointConsumedAsCharacterReference(m.CODE_POINTS.AMPERSAND),this._reconsumeInState(this.returnState,t))}_stateNamedCharacterReference(t){let r=this._matchNamedCharacterReference(t);if(!this._ensureHibernation())if(r){for(let n=0;n<r.length;n++)this._flushCodePointConsumedAsCharacterReference(r[n]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(m.CODE_POINTS.AMPERSAND),this.state=_.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(t){Th(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===m.CODE_POINTS.SEMICOLON&&this._err(L.ERR.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,t))}_stateNumericCharacterReference(t){this.charRefCode=0,t===m.CODE_POINTS.LATIN_SMALL_X||t===m.CODE_POINTS.LATIN_CAPITAL_X?this.state=_.HEXADEMICAL_CHARACTER_REFERENCE_START:hu(t)?(this.state=_.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(t)):(this._err(L.ERR.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(m.CODE_POINTS.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(m.CODE_POINTS.NUMBER_SIGN),this._reconsumeInState(this.returnState,t))}_stateHexademicalCharacterReferenceStart(t){SP(t)?(this.state=_.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(t)):(this._err(L.ERR.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(m.CODE_POINTS.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(m.CODE_POINTS.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState)}_stateHexademicalCharacterReference(t){rA(t)?this.charRefCode=this.charRefCode*16+t-55:nA(t)?this.charRefCode=this.charRefCode*16+t-87:hu(t)?this.charRefCode=this.charRefCode*16+t-48:t===m.CODE_POINTS.SEMICOLON?this.state=_.NUMERIC_CHARACTER_REFERENCE_END:(this._err(L.ERR.missingSemicolonAfterCharacterReference),this.state=_.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}_stateDecimalCharacterReference(t){hu(t)?this.charRefCode=this.charRefCode*10+t-48:t===m.CODE_POINTS.SEMICOLON?this.state=_.NUMERIC_CHARACTER_REFERENCE_END:(this._err(L.ERR.missingSemicolonAfterCharacterReference),this.state=_.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}_stateNumericCharacterReferenceEnd(t){if(this.charRefCode===m.CODE_POINTS.NULL)this._err(L.ERR.nullCharacterReference),this.charRefCode=m.CODE_POINTS.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(L.ERR.characterReferenceOutsideUnicodeRange),this.charRefCode=m.CODE_POINTS.REPLACEMENT_CHARACTER;else if((0,m.isSurrogate)(this.charRefCode))this._err(L.ERR.surrogateCharacterReference),this.charRefCode=m.CODE_POINTS.REPLACEMENT_CHARACTER;else if((0,m.isUndefinedCodePoint)(this.charRefCode))this._err(L.ERR.noncharacterCharacterReference);else if((0,m.isControlCodePoint)(this.charRefCode)||this.charRefCode===m.CODE_POINTS.CARRIAGE_RETURN){this._err(L.ERR.controlCharacterReference);let r=CP.get(this.charRefCode);r!==void 0&&(this.charRefCode=r)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}};qs.Tokenizer=aA});var lA=U(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.OpenElementStack=void 0;var k=fn(),uA=new Set([k.TAG_ID.DD,k.TAG_ID.DT,k.TAG_ID.LI,k.TAG_ID.OPTGROUP,k.TAG_ID.OPTION,k.TAG_ID.P,k.TAG_ID.RB,k.TAG_ID.RP,k.TAG_ID.RT,k.TAG_ID.RTC]),oA=new Set([...uA,k.TAG_ID.CAPTION,k.TAG_ID.COLGROUP,k.TAG_ID.TBODY,k.TAG_ID.TD,k.TAG_ID.TFOOT,k.TAG_ID.TH,k.TAG_ID.THEAD,k.TAG_ID.TR]),Mc=new Map([[k.TAG_ID.APPLET,k.NS.HTML],[k.TAG_ID.CAPTION,k.NS.HTML],[k.TAG_ID.HTML,k.NS.HTML],[k.TAG_ID.MARQUEE,k.NS.HTML],[k.TAG_ID.OBJECT,k.NS.HTML],[k.TAG_ID.TABLE,k.NS.HTML],[k.TAG_ID.TD,k.NS.HTML],[k.TAG_ID.TEMPLATE,k.NS.HTML],[k.TAG_ID.TH,k.NS.HTML],[k.TAG_ID.ANNOTATION_XML,k.NS.MATHML],[k.TAG_ID.MI,k.NS.MATHML],[k.TAG_ID.MN,k.NS.MATHML],[k.TAG_ID.MO,k.NS.MATHML],[k.TAG_ID.MS,k.NS.MATHML],[k.TAG_ID.MTEXT,k.NS.MATHML],[k.TAG_ID.DESC,k.NS.SVG],[k.TAG_ID.FOREIGN_OBJECT,k.NS.SVG],[k.TAG_ID.TITLE,k.NS.SVG]]),OP=[k.TAG_ID.H1,k.TAG_ID.H2,k.TAG_ID.H3,k.TAG_ID.H4,k.TAG_ID.H5,k.TAG_ID.H6],NP=[k.TAG_ID.TR,k.TAG_ID.TEMPLATE,k.TAG_ID.HTML],wP=[k.TAG_ID.TBODY,k.TAG_ID.TFOOT,k.TAG_ID.THEAD,k.TAG_ID.TEMPLATE,k.TAG_ID.HTML],RP=[k.TAG_ID.TABLE,k.TAG_ID.TEMPLATE,k.TAG_ID.HTML],PP=[k.TAG_ID.TD,k.TAG_ID.TH],cA=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,r,n){this.treeAdapter=r,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=k.TAG_ID.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===k.TAG_ID.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===k.NS.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,r){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,r,!0)}pop(){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,r){let n=this._indexOf(t);this.items[n]=r,n===this.stackTop&&(this.current=r)}insertAfter(t,r,n){let i=this._indexOf(t)+1;this.items.splice(i,0,r),this.tagIDs.splice(i,0,n),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(t,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==k.NS.HTML);this.shortenToLength(r<0?0:r)}shortenToLength(t){for(;this.stackTop>=t;){let r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<t)}}popUntilElementPopped(t){let r=this._indexOf(t);this.shortenToLength(r<0?0:r)}popUntilPopped(t,r){let n=this._indexOfTagNames(t,r);this.shortenToLength(n<0?0:n)}popUntilNumberedHeaderPopped(){this.popUntilPopped(OP,k.NS.HTML)}popUntilTableCellPopped(){this.popUntilPopped(PP,k.NS.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let n=this.stackTop;n>=0;n--)if(t.includes(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===r)return n;return-1}clearBackTo(t,r){let n=this._indexOfTagNames(t,r);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(RP,k.NS.HTML)}clearBackToTableBodyContext(){this.clearBackTo(wP,k.NS.HTML)}clearBackToTableRowContext(){this.clearBackTo(NP,k.NS.HTML)}remove(t){let r=this._indexOf(t);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===k.TAG_ID.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let r=this._indexOf(t)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===k.TAG_ID.HTML}hasInScope(t){for(let r=this.stackTop;r>=0;r--){let n=this.tagIDs[r],i=this.treeAdapter.getNamespaceURI(this.items[r]);if(n===t&&i===k.NS.HTML)return!0;if(Mc.get(n)===i)return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t],n=this.treeAdapter.getNamespaceURI(this.items[t]);if((0,k.isNumberedHeader)(r)&&n===k.NS.HTML)return!0;if(Mc.get(r)===n)return!1}return!0}hasInListItemScope(t){for(let r=this.stackTop;r>=0;r--){let n=this.tagIDs[r],i=this.treeAdapter.getNamespaceURI(this.items[r]);if(n===t&&i===k.NS.HTML)return!0;if((n===k.TAG_ID.UL||n===k.TAG_ID.OL)&&i===k.NS.HTML||Mc.get(n)===i)return!1}return!0}hasInButtonScope(t){for(let r=this.stackTop;r>=0;r--){let n=this.tagIDs[r],i=this.treeAdapter.getNamespaceURI(this.items[r]);if(n===t&&i===k.NS.HTML)return!0;if(n===k.TAG_ID.BUTTON&&i===k.NS.HTML||Mc.get(n)===i)return!1}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--){let n=this.tagIDs[r];if(this.treeAdapter.getNamespaceURI(this.items[r])===k.NS.HTML){if(n===t)return!0;if(n===k.TAG_ID.TABLE||n===k.TAG_ID.TEMPLATE||n===k.TAG_ID.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===k.NS.HTML){if(r===k.TAG_ID.TBODY||r===k.TAG_ID.THEAD||r===k.TAG_ID.TFOOT)return!0;if(r===k.TAG_ID.TABLE||r===k.TAG_ID.HTML)return!1}}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--){let n=this.tagIDs[r];if(this.treeAdapter.getNamespaceURI(this.items[r])===k.NS.HTML){if(n===t)return!0;if(n!==k.TAG_ID.OPTION&&n!==k.TAG_ID.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;uA.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;oA.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&oA.has(this.currentTagId);)this.pop()}};kc.OpenElementStack=cA});var hA=U(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.FormattingElementList=Oi.EntryType=void 0;var Eh=3,$n;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})($n=Oi.EntryType||(Oi.EntryType={}));var fA={type:$n.Marker},dA=class{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){let n=[],i=r.length,s=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let u=0;u<this.entries.length;u++){let o=this.entries[u];if(o.type===$n.Marker)break;let{element:c}=o;if(this.treeAdapter.getTagName(c)===s&&this.treeAdapter.getNamespaceURI(c)===a){let d=this.treeAdapter.getAttrList(c);d.length===i&&n.push({idx:u,attrs:d})}}return n}_ensureNoahArkCondition(t){if(this.entries.length<Eh)return;let r=this.treeAdapter.getAttrList(t),n=this._getNoahArkConditionCandidates(t,r);if(n.length<Eh)return;let i=new Map(r.map(a=>[a.name,a.value])),s=0;for(let a=0;a<n.length;a++){let u=n[a];u.attrs.every(o=>i.get(o.name)===o.value)&&(s+=1,s>=Eh&&this.entries.splice(u.idx,1))}}insertMarker(){this.entries.unshift(fA)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:$n.Element,element:t,token:r})}insertElementAfterBookmark(t,r){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:$n.Element,element:t,token:r})}removeEntry(t){let r=this.entries.indexOf(t);r>=0&&this.entries.splice(r,1)}clearToLastMarker(){let t=this.entries.indexOf(fA);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){let r=this.entries.find(n=>n.type===$n.Marker||this.treeAdapter.getTagName(n.element)===t);return r&&r.type===$n.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===$n.Element&&r.element===t)}};Oi.FormattingElementList=dA});var Fc=U(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.defaultTreeAdapter=void 0;var LP=fn();function pA(e){return{nodeName:"#text",value:e,parentNode:null}}dn.defaultTreeAdapter={createDocument(){return{nodeName:"#document",mode:LP.DOCUMENT_MODE.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){let n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,n){let i=e.childNodes.find(s=>s.nodeName==="#documentType");if(i)i.name=t,i.publicId=r,i.systemId=n;else{let s={nodeName:"#documentType",name:t,publicId:r,systemId:n,parentNode:null};dn.defaultTreeAdapter.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let r=e.childNodes[e.childNodes.length-1];if(dn.defaultTreeAdapter.isTextNode(r)){r.value+=t;return}}dn.defaultTreeAdapter.appendChild(e,pA(t))},insertTextBefore(e,t,r){let n=e.childNodes[e.childNodes.indexOf(r)-1];n&&dn.defaultTreeAdapter.isTextNode(n)?n.value+=t:dn.defaultTreeAdapter.insertBefore(e,pA(t),r)},adoptAttributes(e,t){let r=new Set(e.attrs.map(n=>n.name));for(let n=0;n<t.length;n++)r.has(t[n].name)||e.attrs.push(t[n])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation=Object.assign(Object.assign({},e.sourceCodeLocation),t)}}});var bA=U(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.getDocumentMode=Vs.isConforming=void 0;var zs=fn(),mA="html",MP="about:legacy-compat",kP="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",gA=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],FP=[...gA,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],BP=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),_A=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],jP=[..._A,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function TA(e,t){return t.some(r=>e.startsWith(r))}function HP(e){return e.name===mA&&e.publicId===null&&(e.systemId===null||e.systemId===MP)}Vs.isConforming=HP;function UP(e){if(e.name!==mA)return zs.DOCUMENT_MODE.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===kP)return zs.DOCUMENT_MODE.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),BP.has(r))return zs.DOCUMENT_MODE.QUIRKS;let n=t===null?FP:gA;if(TA(r,n))return zs.DOCUMENT_MODE.QUIRKS;if(n=t===null?_A:jP,TA(r,n))return zs.DOCUMENT_MODE.LIMITED_QUIRKS}return zs.DOCUMENT_MODE.NO_QUIRKS}Vs.getDocumentMode=UP});var Ah=U(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.isIntegrationPoint=mt.adjustTokenSVGTagName=mt.adjustTokenXMLAttrs=mt.adjustTokenSVGAttrs=mt.adjustTokenMathMLAttrs=mt.causesExit=mt.SVG_TAG_NAMES_ADJUSTMENT_MAP=void 0;var G=fn(),EA={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},GP="definitionurl",qP="definitionURL",zP=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),VP=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:G.NS.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:G.NS.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:G.NS.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:G.NS.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:G.NS.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:G.NS.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:G.NS.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:G.NS.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:G.NS.XML}],["xml:space",{prefix:"xml",name:"space",namespace:G.NS.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:G.NS.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:G.NS.XMLNS}]]);mt.SVG_TAG_NAMES_ADJUSTMENT_MAP=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e]));var KP=new Set([G.TAG_ID.B,G.TAG_ID.BIG,G.TAG_ID.BLOCKQUOTE,G.TAG_ID.BODY,G.TAG_ID.BR,G.TAG_ID.CENTER,G.TAG_ID.CODE,G.TAG_ID.DD,G.TAG_ID.DIV,G.TAG_ID.DL,G.TAG_ID.DT,G.TAG_ID.EM,G.TAG_ID.EMBED,G.TAG_ID.H1,G.TAG_ID.H2,G.TAG_ID.H3,G.TAG_ID.H4,G.TAG_ID.H5,G.TAG_ID.H6,G.TAG_ID.HEAD,G.TAG_ID.HR,G.TAG_ID.I,G.TAG_ID.IMG,G.TAG_ID.LI,G.TAG_ID.LISTING,G.TAG_ID.MENU,G.TAG_ID.META,G.TAG_ID.NOBR,G.TAG_ID.OL,G.TAG_ID.P,G.TAG_ID.PRE,G.TAG_ID.RUBY,G.TAG_ID.S,G.TAG_ID.SMALL,G.TAG_ID.SPAN,G.TAG_ID.STRONG,G.TAG_ID.STRIKE,G.TAG_ID.SUB,G.TAG_ID.SUP,G.TAG_ID.TABLE,G.TAG_ID.TT,G.TAG_ID.U,G.TAG_ID.UL,G.TAG_ID.VAR]);function WP(e){let t=e.tagID;return t===G.TAG_ID.FONT&&e.attrs.some(({name:n})=>n===G.ATTRS.COLOR||n===G.ATTRS.SIZE||n===G.ATTRS.FACE)||KP.has(t)}mt.causesExit=WP;function YP(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===GP){e.attrs[t].name=qP;break}}mt.adjustTokenMathMLAttrs=YP;function QP(e){for(let t=0;t<e.attrs.length;t++){let r=zP.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}mt.adjustTokenSVGAttrs=QP;function $P(e){for(let t=0;t<e.attrs.length;t++){let r=VP.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}mt.adjustTokenXMLAttrs=$P;function XP(e){let t=mt.SVG_TAG_NAMES_ADJUSTMENT_MAP.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=(0,G.getTagID)(e.tagName))}mt.adjustTokenSVGTagName=XP;function ZP(e,t){return t===G.NS.MATHML&&(e===G.TAG_ID.MI||e===G.TAG_ID.MO||e===G.TAG_ID.MN||e===G.TAG_ID.MS||e===G.TAG_ID.MTEXT)}function JP(e,t,r){if(t===G.NS.MATHML&&e===G.TAG_ID.ANNOTATION_XML){for(let n=0;n<r.length;n++)if(r[n].name===G.ATTRS.ENCODING){let i=r[n].value.toLowerCase();return i===EA.TEXT_HTML||i===EA.APPLICATION_XML}}return t===G.NS.SVG&&(e===G.TAG_ID.FOREIGN_OBJECT||e===G.TAG_ID.DESC||e===G.TAG_ID.TITLE)}function e6(e,t,r,n){return(!n||n===G.NS.HTML)&&JP(e,t,r)||(!n||n===G.NS.MATHML)&&ZP(e,t)}mt.isIntegrationPoint=e6});var xh=U(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.Parser=void 0;var Rt=bh(),t6=lA(),AA=hA(),r6=Fc(),yA=bA(),qr=Ah(),gt=du(),IA=wc(),l=fn(),ut=Pc(),n6="hidden",i6=8,s6=3,y;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(y||(y={}));var a6={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},vA=new Set([l.TAG_ID.TABLE,l.TAG_ID.TBODY,l.TAG_ID.TFOOT,l.TAG_ID.THEAD,l.TAG_ID.TR]),CA={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:r6.defaultTreeAdapter,onParseError:null},DA=class{constructor(t,r,n=null,i=null){this.fragmentContext=n,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=y.INITIAL,this.originalInsertionMode=y.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options=Object.assign(Object.assign({},CA),t),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=r??this.treeAdapter.createDocument(),this.tokenizer=new Rt.Tokenizer(this.options,this),this.activeFormattingElements=new AA.FormattingElementList(this.treeAdapter),this.fragmentContextID=n?(0,l.getTagID)(this.treeAdapter.getTagName(n)):l.TAG_ID.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new t6.OpenElementStack(this.document,this.treeAdapter,this)}static parse(t,r){let n=new this(r);return n.tokenizer.write(t,!0),n.document}static getFragmentParser(t,r){let n=Object.assign(Object.assign({},CA),r);t??(t=n.treeAdapter.createElement(l.TAG_NAMES.TEMPLATE,l.NS.HTML,[]));let i=n.treeAdapter.createElement("documentmock",l.NS.HTML,[]),s=new this(n,i,t);return s.fragmentContextID===l.TAG_ID.TEMPLATE&&s.tmplInsertionModeStack.unshift(y.IN_TEMPLATE),s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}getFragment(){let t=this.treeAdapter.getFirstChild(this.document),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,r),r}_err(t,r,n){var i;if(!this.onParseError)return;let s=(i=t.location)!==null&&i!==void 0?i:a6,a={code:r,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:n?s.startLine:s.endLine,endCol:n?s.startCol:s.endCol,endOffset:n?s.startOffset:s.endOffset};this.onParseError(a)}onItemPush(t,r,n){var i,s;(s=(i=this.treeAdapter).onItemPush)===null||s===void 0||s.call(i,t),n&&this.openElements.stackTop>0&&this._setContextModes(t,r)}onItemPop(t,r){var n,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(n=this.treeAdapter).onItemPop)===null||i===void 0||i.call(n,t,this.openElements.current),r){let s,a;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,a=this.fragmentContextID):{current:s,currentTagId:a}=this.openElements,this._setContextModes(s,a)}}_setContextModes(t,r){let n=t===this.document||this.treeAdapter.getNamespaceURI(t)===l.NS.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,l.NS.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=y.TEXT}switchToPlaintextParsing(){this.insertionMode=y.TEXT,this.originalInsertionMode=y.IN_BODY,this.tokenizer.state=Rt.TokenizerMode.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===l.TAG_NAMES.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==l.NS.HTML))switch(this.fragmentContextID){case l.TAG_ID.TITLE:case l.TAG_ID.TEXTAREA:{this.tokenizer.state=Rt.TokenizerMode.RCDATA;break}case l.TAG_ID.STYLE:case l.TAG_ID.XMP:case l.TAG_ID.IFRAME:case l.TAG_ID.NOEMBED:case l.TAG_ID.NOFRAMES:case l.TAG_ID.NOSCRIPT:{this.tokenizer.state=Rt.TokenizerMode.RAWTEXT;break}case l.TAG_ID.SCRIPT:{this.tokenizer.state=Rt.TokenizerMode.SCRIPT_DATA;break}case l.TAG_ID.PLAINTEXT:{this.tokenizer.state=Rt.TokenizerMode.PLAINTEXT;break}default:}}_setDocumentType(t){let r=t.name||"",n=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,n,i),t.location){let a=this.treeAdapter.getChildNodes(this.document).find(u=>this.treeAdapter.isDocumentTypeNode(u));a&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){let n=r&&Object.assign(Object.assign({},r),{startTag:r});this.treeAdapter.setNodeSourceCodeLocation(t,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{let n=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(n,t)}}_appendElement(t,r){let n=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(n,t.location)}_insertElement(t,r){let n=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID)}_insertFakeElement(t,r){let n=this.treeAdapter.createElement(t,l.NS.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,r)}_insertTemplate(t){let r=this.treeAdapter.createElement(t.tagName,l.NS.HTML,t.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,n),this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let t=this.treeAdapter.createElement(l.TAG_NAMES.HTML,l.NS.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,l.TAG_ID.HTML)}_appendCommentNode(t,r){let n=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(r,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,t.location)}_insertCharacters(t){let r,n;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(r,t.chars,n):this.treeAdapter.insertText(r,t.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,t.chars)),!t.location)return;let i=this.treeAdapter.getChildNodes(r),s=n?i.lastIndexOf(n):i.length,a=i[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){let{endLine:o,endCol:c,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:o,endCol:c,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}_adoptNodes(t,r){for(let n=this.treeAdapter.getFirstChild(t);n;n=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(r,n)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){let n=r.location,i=this.treeAdapter.getTagName(t),s=r.type===ut.TokenType.END_TAG&&i===r.tagName?{endTag:Object.assign({},n),endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let r,n;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,n=this.fragmentContextID):{current:r,currentTagId:n}=this.openElements,t.tagID===l.TAG_ID.SVG&&this.treeAdapter.getTagName(r)===l.TAG_NAMES.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===l.NS.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===l.TAG_ID.MGLYPH||t.tagID===l.TAG_ID.MALIGNMARK)&&!this._isIntegrationPoint(n,r,l.NS.HTML)}_processToken(t){switch(t.type){case ut.TokenType.CHARACTER:{this.onCharacter(t);break}case ut.TokenType.NULL_CHARACTER:{this.onNullCharacter(t);break}case ut.TokenType.COMMENT:{this.onComment(t);break}case ut.TokenType.DOCTYPE:{this.onDoctype(t);break}case ut.TokenType.START_TAG:{this._processStartTag(t);break}case ut.TokenType.END_TAG:{this.onEndTag(t);break}case ut.TokenType.EOF:{this.onEof(t);break}case ut.TokenType.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,n){let i=this.treeAdapter.getNamespaceURI(r),s=this.treeAdapter.getAttrList(r);return qr.isIntegrationPoint(t,i,s,n)}_reconstructActiveFormattingElements(){let t=this.activeFormattingElements.entries.length;if(t){let r=this.activeFormattingElements.entries.findIndex(i=>i.type===AA.EntryType.Marker||this.openElements.contains(i.element)),n=r<0?t-1:r-1;for(let i=n;i>=0;i--){let s=this.activeFormattingElements.entries[i];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=y.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(l.TAG_ID.P),this.openElements.popUntilTagNamePopped(l.TAG_ID.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case l.TAG_ID.TR:{this.insertionMode=y.IN_ROW;return}case l.TAG_ID.TBODY:case l.TAG_ID.THEAD:case l.TAG_ID.TFOOT:{this.insertionMode=y.IN_TABLE_BODY;return}case l.TAG_ID.CAPTION:{this.insertionMode=y.IN_CAPTION;return}case l.TAG_ID.COLGROUP:{this.insertionMode=y.IN_COLUMN_GROUP;return}case l.TAG_ID.TABLE:{this.insertionMode=y.IN_TABLE;return}case l.TAG_ID.BODY:{this.insertionMode=y.IN_BODY;return}case l.TAG_ID.FRAMESET:{this.insertionMode=y.IN_FRAMESET;return}case l.TAG_ID.SELECT:{this._resetInsertionModeForSelect(t);return}case l.TAG_ID.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case l.TAG_ID.HTML:{this.insertionMode=this.headElement?y.AFTER_HEAD:y.BEFORE_HEAD;return}case l.TAG_ID.TD:case l.TAG_ID.TH:{if(t>0){this.insertionMode=y.IN_CELL;return}break}case l.TAG_ID.HEAD:{if(t>0){this.insertionMode=y.IN_HEAD;return}break}}this.insertionMode=y.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){let n=this.openElements.tagIDs[r];if(n===l.TAG_ID.TEMPLATE)break;if(n===l.TAG_ID.TABLE){this.insertionMode=y.IN_SELECT_IN_TABLE;return}}this.insertionMode=y.IN_SELECT}_isElementCausesFosterParenting(t){return vA.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){let r=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case l.TAG_ID.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===l.NS.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case l.TAG_ID.TABLE:{let n=this.treeAdapter.getParentNode(r);return n?{parent:n,beforeElement:r}:{parent:this.openElements.items[t-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){let r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_isSpecialElement(t,r){let n=this.treeAdapter.getNamespaceURI(t);return l.SPECIAL_ELEMENTS[n].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){kL(this,t);return}switch(this.insertionMode){case y.INITIAL:{mu(this,t);break}case y.BEFORE_HTML:{gu(this,t);break}case y.BEFORE_HEAD:{_u(this,t);break}case y.IN_HEAD:{Tu(this,t);break}case y.IN_HEAD_NO_SCRIPT:{bu(this,t);break}case y.AFTER_HEAD:{Eu(this,t);break}case y.IN_BODY:case y.IN_CAPTION:case y.IN_CELL:case y.IN_TEMPLATE:{xA(this,t);break}case y.TEXT:case y.IN_SELECT:case y.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case y.IN_TABLE:case y.IN_TABLE_BODY:case y.IN_ROW:{Ch(this,t);break}case y.IN_TABLE_TEXT:{kA(this,t);break}case y.IN_COLUMN_GROUP:{Hc(this,t);break}case y.AFTER_BODY:{qc(this,t);break}case y.AFTER_AFTER_BODY:{zc(this,t);break}default:}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){ML(this,t);return}switch(this.insertionMode){case y.INITIAL:{mu(this,t);break}case y.BEFORE_HTML:{gu(this,t);break}case y.BEFORE_HEAD:{_u(this,t);break}case y.IN_HEAD:{Tu(this,t);break}case y.IN_HEAD_NO_SCRIPT:{bu(this,t);break}case y.AFTER_HEAD:{Eu(this,t);break}case y.TEXT:{this._insertCharacters(t);break}case y.IN_TABLE:case y.IN_TABLE_BODY:case y.IN_ROW:{Ch(this,t);break}case y.IN_COLUMN_GROUP:{Hc(this,t);break}case y.AFTER_BODY:{qc(this,t);break}case y.AFTER_AFTER_BODY:{zc(this,t);break}default:}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Ih(this,t);return}switch(this.insertionMode){case y.INITIAL:case y.BEFORE_HTML:case y.BEFORE_HEAD:case y.IN_HEAD:case y.IN_HEAD_NO_SCRIPT:case y.AFTER_HEAD:case y.IN_BODY:case y.IN_TABLE:case y.IN_CAPTION:case y.IN_COLUMN_GROUP:case y.IN_TABLE_BODY:case y.IN_ROW:case y.IN_CELL:case y.IN_SELECT:case y.IN_SELECT_IN_TABLE:case y.IN_TEMPLATE:case y.IN_FRAMESET:case y.AFTER_FRAMESET:{Ih(this,t);break}case y.IN_TABLE_TEXT:{Iu(this,t);break}case y.AFTER_BODY:{h6(this,t);break}case y.AFTER_AFTER_BODY:case y.AFTER_AFTER_FRAMESET:{p6(this,t);break}default:}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case y.INITIAL:{m6(this,t);break}case y.BEFORE_HEAD:case y.IN_HEAD:case y.IN_HEAD_NO_SCRIPT:case y.AFTER_HEAD:{this._err(t,gt.ERR.misplacedDoctype);break}case y.IN_TABLE_TEXT:{Iu(this,t);break}default:}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,gt.ERR.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?FL(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case y.INITIAL:{mu(this,t);break}case y.BEFORE_HTML:{g6(this,t);break}case y.BEFORE_HEAD:{T6(this,t);break}case y.IN_HEAD:{Sr(this,t);break}case y.IN_HEAD_NO_SCRIPT:{A6(this,t);break}case y.AFTER_HEAD:{I6(this,t);break}case y.IN_BODY:{Ct(this,t);break}case y.IN_TABLE:{Ks(this,t);break}case y.IN_TABLE_TEXT:{Iu(this,t);break}case y.IN_CAPTION:{bL(this,t);break}case y.IN_COLUMN_GROUP:{Dh(this,t);break}case y.IN_TABLE_BODY:{Uc(this,t);break}case y.IN_ROW:{Gc(this,t);break}case y.IN_CELL:{yL(this,t);break}case y.IN_SELECT:{jA(this,t);break}case y.IN_SELECT_IN_TABLE:{vL(this,t);break}case y.IN_TEMPLATE:{DL(this,t);break}case y.AFTER_BODY:{xL(this,t);break}case y.IN_FRAMESET:{OL(this,t);break}case y.AFTER_FRAMESET:{wL(this,t);break}case y.AFTER_AFTER_BODY:{PL(this,t);break}case y.AFTER_AFTER_FRAMESET:{LL(this,t);break}default:}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?BL(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case y.INITIAL:{mu(this,t);break}case y.BEFORE_HTML:{_6(this,t);break}case y.BEFORE_HEAD:{b6(this,t);break}case y.IN_HEAD:{E6(this,t);break}case y.IN_HEAD_NO_SCRIPT:{y6(this,t);break}case y.AFTER_HEAD:{v6(this,t);break}case y.IN_BODY:{jc(this,t);break}case y.TEXT:{cL(this,t);break}case y.IN_TABLE:{Au(this,t);break}case y.IN_TABLE_TEXT:{Iu(this,t);break}case y.IN_CAPTION:{EL(this,t);break}case y.IN_COLUMN_GROUP:{AL(this,t);break}case y.IN_TABLE_BODY:{Sh(this,t);break}case y.IN_ROW:{BA(this,t);break}case y.IN_CELL:{IL(this,t);break}case y.IN_SELECT:{HA(this,t);break}case y.IN_SELECT_IN_TABLE:{CL(this,t);break}case y.IN_TEMPLATE:{SL(this,t);break}case y.AFTER_BODY:{GA(this,t);break}case y.IN_FRAMESET:{NL(this,t);break}case y.AFTER_FRAMESET:{RL(this,t);break}case y.AFTER_AFTER_BODY:{zc(this,t);break}default:}}onEof(t){switch(this.insertionMode){case y.INITIAL:{mu(this,t);break}case y.BEFORE_HTML:{gu(this,t);break}case y.BEFORE_HEAD:{_u(this,t);break}case y.IN_HEAD:{Tu(this,t);break}case y.IN_HEAD_NO_SCRIPT:{bu(this,t);break}case y.AFTER_HEAD:{Eu(this,t);break}case y.IN_BODY:case y.IN_TABLE:case y.IN_CAPTION:case y.IN_COLUMN_GROUP:case y.IN_TABLE_BODY:case y.IN_ROW:case y.IN_CELL:case y.IN_SELECT:case y.IN_SELECT_IN_TABLE:{LA(this,t);break}case y.TEXT:{lL(this,t);break}case y.IN_TABLE_TEXT:{Iu(this,t);break}case y.IN_TEMPLATE:{UA(this,t);break}case y.AFTER_BODY:case y.IN_FRAMESET:case y.AFTER_FRAMESET:case y.AFTER_AFTER_BODY:case y.AFTER_AFTER_FRAMESET:{vh(this,t);break}default:}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===IA.CODE_POINTS.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case y.IN_HEAD:case y.IN_HEAD_NO_SCRIPT:case y.AFTER_HEAD:case y.TEXT:case y.IN_COLUMN_GROUP:case y.IN_SELECT:case y.IN_SELECT_IN_TABLE:case y.IN_FRAMESET:case y.AFTER_FRAMESET:{this._insertCharacters(t);break}case y.IN_BODY:case y.IN_CAPTION:case y.IN_CELL:case y.IN_TEMPLATE:case y.AFTER_BODY:case y.AFTER_AFTER_BODY:case y.AFTER_AFTER_FRAMESET:{SA(this,t);break}case y.IN_TABLE:case y.IN_TABLE_BODY:case y.IN_ROW:{Ch(this,t);break}case y.IN_TABLE_TEXT:{MA(this,t);break}default:}}};Vc.Parser=DA;function u6(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):PA(e,t),r}function o6(e,t){let r=null,n=e.openElements.stackTop;for(;n>=0;n--){let i=e.openElements.items[n];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[n])&&(r=i)}return r||(e.openElements.shortenToLength(n<0?0:n),e.activeFormattingElements.removeEntry(t)),r}function c6(e,t,r){let n=t,i=e.openElements.getCommonAncestor(t);for(let s=0,a=i;a!==r;s++,a=i){i=e.openElements.getCommonAncestor(a);let u=e.activeFormattingElements.getElementEntry(a),o=u&&s>=s6;!u||o?(o&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(a)):(a=l6(e,u),n===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(a,n),n=a)}return n}function l6(e,t){let r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function f6(e,t,r){let n=e.treeAdapter.getTagName(t),i=(0,l.getTagID)(n);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(r);else{let s=e.treeAdapter.getNamespaceURI(t);i===l.TAG_ID.TEMPLATE&&s===l.NS.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function d6(e,t,r){let n=e.treeAdapter.getNamespaceURI(r.element),{token:i}=r,s=e.treeAdapter.createElement(i.tagName,n,i.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,i),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,s,i.tagID)}function yh(e,t){for(let r=0;r<i6;r++){let n=u6(e,t);if(!n)break;let i=o6(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;let s=c6(e,i,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(s),a&&f6(e,a,s),d6(e,i,n)}}function Ih(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function h6(e,t){e._appendCommentNode(t,e.openElements.items[0])}function p6(e,t){e._appendCommentNode(t,e.document)}function vh(e,t){if(e.stopped=!0,t.location){let r=e.fragmentContext?0:2;for(let n=e.openElements.stackTop;n>=r;n--)e._setEndLocation(e.openElements.items[n],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let n=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(n);if(i&&!i.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){let s=e.openElements.items[1],a=e.treeAdapter.getNodeSourceCodeLocation(s);a&&!a.endTag&&e._setEndLocation(s,t)}}}}function m6(e,t){e._setDocumentType(t);let r=t.forceQuirks?l.DOCUMENT_MODE.QUIRKS:yA.getDocumentMode(t);yA.isConforming(t)||e._err(t,gt.ERR.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=y.BEFORE_HTML}function mu(e,t){e._err(t,gt.ERR.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,l.DOCUMENT_MODE.QUIRKS),e.insertionMode=y.BEFORE_HTML,e._processToken(t)}function g6(e,t){t.tagID===l.TAG_ID.HTML?(e._insertElement(t,l.NS.HTML),e.insertionMode=y.BEFORE_HEAD):gu(e,t)}function _6(e,t){let r=t.tagID;(r===l.TAG_ID.HTML||r===l.TAG_ID.HEAD||r===l.TAG_ID.BODY||r===l.TAG_ID.BR)&&gu(e,t)}function gu(e,t){e._insertFakeRootElement(),e.insertionMode=y.BEFORE_HEAD,e._processToken(t)}function T6(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.HEAD:{e._insertElement(t,l.NS.HTML),e.headElement=e.openElements.current,e.insertionMode=y.IN_HEAD;break}default:_u(e,t)}}function b6(e,t){let r=t.tagID;r===l.TAG_ID.HEAD||r===l.TAG_ID.BODY||r===l.TAG_ID.HTML||r===l.TAG_ID.BR?_u(e,t):e._err(t,gt.ERR.endTagWithoutMatchingOpenElement)}function _u(e,t){e._insertFakeElement(l.TAG_NAMES.HEAD,l.TAG_ID.HEAD),e.headElement=e.openElements.current,e.insertionMode=y.IN_HEAD,e._processToken(t)}function Sr(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.BASE:case l.TAG_ID.BASEFONT:case l.TAG_ID.BGSOUND:case l.TAG_ID.LINK:case l.TAG_ID.META:{e._appendElement(t,l.NS.HTML),t.ackSelfClosing=!0;break}case l.TAG_ID.TITLE:{e._switchToTextParsing(t,Rt.TokenizerMode.RCDATA);break}case l.TAG_ID.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Rt.TokenizerMode.RAWTEXT):(e._insertElement(t,l.NS.HTML),e.insertionMode=y.IN_HEAD_NO_SCRIPT);break}case l.TAG_ID.NOFRAMES:case l.TAG_ID.STYLE:{e._switchToTextParsing(t,Rt.TokenizerMode.RAWTEXT);break}case l.TAG_ID.SCRIPT:{e._switchToTextParsing(t,Rt.TokenizerMode.SCRIPT_DATA);break}case l.TAG_ID.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=y.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(y.IN_TEMPLATE);break}case l.TAG_ID.HEAD:{e._err(t,gt.ERR.misplacedStartTagForHeadElement);break}default:Tu(e,t)}}function E6(e,t){switch(t.tagID){case l.TAG_ID.HEAD:{e.openElements.pop(),e.insertionMode=y.AFTER_HEAD;break}case l.TAG_ID.BODY:case l.TAG_ID.BR:case l.TAG_ID.HTML:{Tu(e,t);break}case l.TAG_ID.TEMPLATE:{Ni(e,t);break}default:e._err(t,gt.ERR.endTagWithoutMatchingOpenElement)}}function Ni(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==l.TAG_ID.TEMPLATE&&e._err(t,gt.ERR.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(l.TAG_ID.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,gt.ERR.endTagWithoutMatchingOpenElement)}function Tu(e,t){e.openElements.pop(),e.insertionMode=y.AFTER_HEAD,e._processToken(t)}function A6(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.BASEFONT:case l.TAG_ID.BGSOUND:case l.TAG_ID.HEAD:case l.TAG_ID.LINK:case l.TAG_ID.META:case l.TAG_ID.NOFRAMES:case l.TAG_ID.STYLE:{Sr(e,t);break}case l.TAG_ID.NOSCRIPT:{e._err(t,gt.ERR.nestedNoscriptInHead);break}default:bu(e,t)}}function y6(e,t){switch(t.tagID){case l.TAG_ID.NOSCRIPT:{e.openElements.pop(),e.insertionMode=y.IN_HEAD;break}case l.TAG_ID.BR:{bu(e,t);break}default:e._err(t,gt.ERR.endTagWithoutMatchingOpenElement)}}function bu(e,t){let r=t.type===ut.TokenType.EOF?gt.ERR.openElementsLeftAfterEof:gt.ERR.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=y.IN_HEAD,e._processToken(t)}function I6(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.BODY:{e._insertElement(t,l.NS.HTML),e.framesetOk=!1,e.insertionMode=y.IN_BODY;break}case l.TAG_ID.FRAMESET:{e._insertElement(t,l.NS.HTML),e.insertionMode=y.IN_FRAMESET;break}case l.TAG_ID.BASE:case l.TAG_ID.BASEFONT:case l.TAG_ID.BGSOUND:case l.TAG_ID.LINK:case l.TAG_ID.META:case l.TAG_ID.NOFRAMES:case l.TAG_ID.SCRIPT:case l.TAG_ID.STYLE:case l.TAG_ID.TEMPLATE:case l.TAG_ID.TITLE:{e._err(t,gt.ERR.abandonedHeadElementChild),e.openElements.push(e.headElement,l.TAG_ID.HEAD),Sr(e,t),e.openElements.remove(e.headElement);break}case l.TAG_ID.HEAD:{e._err(t,gt.ERR.misplacedStartTagForHeadElement);break}default:Eu(e,t)}}function v6(e,t){switch(t.tagID){case l.TAG_ID.BODY:case l.TAG_ID.HTML:case l.TAG_ID.BR:{Eu(e,t);break}case l.TAG_ID.TEMPLATE:{Ni(e,t);break}default:e._err(t,gt.ERR.endTagWithoutMatchingOpenElement)}}function Eu(e,t){e._insertFakeElement(l.TAG_NAMES.BODY,l.TAG_ID.BODY),e.insertionMode=y.IN_BODY,Bc(e,t)}function Bc(e,t){switch(t.type){case ut.TokenType.CHARACTER:{xA(e,t);break}case ut.TokenType.WHITESPACE_CHARACTER:{SA(e,t);break}case ut.TokenType.COMMENT:{Ih(e,t);break}case ut.TokenType.START_TAG:{Ct(e,t);break}case ut.TokenType.END_TAG:{jc(e,t);break}case ut.TokenType.EOF:{LA(e,t);break}default:}}function SA(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function xA(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function C6(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function D6(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function S6(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,l.NS.HTML),e.insertionMode=y.IN_FRAMESET)}function x6(e,t){e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),e._insertElement(t,l.NS.HTML)}function O6(e,t){e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),(0,l.isNumberedHeader)(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,l.NS.HTML)}function N6(e,t){e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),e._insertElement(t,l.NS.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function w6(e,t){let r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),e._insertElement(t,l.NS.HTML),r||(e.formElement=e.openElements.current))}function R6(e,t){e.framesetOk=!1;let r=t.tagID;for(let n=e.openElements.stackTop;n>=0;n--){let i=e.openElements.tagIDs[n];if(r===l.TAG_ID.LI&&i===l.TAG_ID.LI||(r===l.TAG_ID.DD||r===l.TAG_ID.DT)&&(i===l.TAG_ID.DD||i===l.TAG_ID.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==l.TAG_ID.ADDRESS&&i!==l.TAG_ID.DIV&&i!==l.TAG_ID.P&&e._isSpecialElement(e.openElements.items[n],i))break}e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),e._insertElement(t,l.NS.HTML)}function P6(e,t){e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),e._insertElement(t,l.NS.HTML),e.tokenizer.state=Rt.TokenizerMode.PLAINTEXT}function L6(e,t){e.openElements.hasInScope(l.TAG_ID.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.TAG_ID.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,l.NS.HTML),e.framesetOk=!1}function M6(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(l.TAG_NAMES.A);r&&(yh(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,l.NS.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function k6(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,l.NS.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function F6(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(l.TAG_ID.NOBR)&&(yh(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,l.NS.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function B6(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,l.NS.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function j6(e,t){e.treeAdapter.getDocumentMode(e.document)!==l.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),e._insertElement(t,l.NS.HTML),e.framesetOk=!1,e.insertionMode=y.IN_TABLE}function OA(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,l.NS.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function NA(e){let t=(0,ut.getTokenAttr)(e,l.ATTRS.TYPE);return t!=null&&t.toLowerCase()===n6}function H6(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,l.NS.HTML),NA(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function U6(e,t){e._appendElement(t,l.NS.HTML),t.ackSelfClosing=!0}function G6(e,t){e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),e._appendElement(t,l.NS.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function q6(e,t){t.tagName=l.TAG_NAMES.IMG,t.tagID=l.TAG_ID.IMG,OA(e,t)}function z6(e,t){e._insertElement(t,l.NS.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Rt.TokenizerMode.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=y.TEXT}function V6(e,t){e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Rt.TokenizerMode.RAWTEXT)}function K6(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Rt.TokenizerMode.RAWTEXT)}function wA(e,t){e._switchToTextParsing(t,Rt.TokenizerMode.RAWTEXT)}function W6(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,l.NS.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===y.IN_TABLE||e.insertionMode===y.IN_CAPTION||e.insertionMode===y.IN_TABLE_BODY||e.insertionMode===y.IN_ROW||e.insertionMode===y.IN_CELL?y.IN_SELECT_IN_TABLE:y.IN_SELECT}function Y6(e,t){e.openElements.currentTagId===l.TAG_ID.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,l.NS.HTML)}function Q6(e,t){e.openElements.hasInScope(l.TAG_ID.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,l.NS.HTML)}function $6(e,t){e.openElements.hasInScope(l.TAG_ID.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(l.TAG_ID.RTC),e._insertElement(t,l.NS.HTML)}function X6(e,t){e._reconstructActiveFormattingElements(),qr.adjustTokenMathMLAttrs(t),qr.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,l.NS.MATHML):e._insertElement(t,l.NS.MATHML),t.ackSelfClosing=!0}function Z6(e,t){e._reconstructActiveFormattingElements(),qr.adjustTokenSVGAttrs(t),qr.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,l.NS.SVG):e._insertElement(t,l.NS.SVG),t.ackSelfClosing=!0}function RA(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,l.NS.HTML)}function Ct(e,t){switch(t.tagID){case l.TAG_ID.I:case l.TAG_ID.S:case l.TAG_ID.B:case l.TAG_ID.U:case l.TAG_ID.EM:case l.TAG_ID.TT:case l.TAG_ID.BIG:case l.TAG_ID.CODE:case l.TAG_ID.FONT:case l.TAG_ID.SMALL:case l.TAG_ID.STRIKE:case l.TAG_ID.STRONG:{k6(e,t);break}case l.TAG_ID.A:{M6(e,t);break}case l.TAG_ID.H1:case l.TAG_ID.H2:case l.TAG_ID.H3:case l.TAG_ID.H4:case l.TAG_ID.H5:case l.TAG_ID.H6:{O6(e,t);break}case l.TAG_ID.P:case l.TAG_ID.DL:case l.TAG_ID.OL:case l.TAG_ID.UL:case l.TAG_ID.DIV:case l.TAG_ID.DIR:case l.TAG_ID.NAV:case l.TAG_ID.MAIN:case l.TAG_ID.MENU:case l.TAG_ID.ASIDE:case l.TAG_ID.CENTER:case l.TAG_ID.FIGURE:case l.TAG_ID.FOOTER:case l.TAG_ID.HEADER:case l.TAG_ID.HGROUP:case l.TAG_ID.DIALOG:case l.TAG_ID.DETAILS:case l.TAG_ID.ADDRESS:case l.TAG_ID.ARTICLE:case l.TAG_ID.SECTION:case l.TAG_ID.SUMMARY:case l.TAG_ID.FIELDSET:case l.TAG_ID.BLOCKQUOTE:case l.TAG_ID.FIGCAPTION:{x6(e,t);break}case l.TAG_ID.LI:case l.TAG_ID.DD:case l.TAG_ID.DT:{R6(e,t);break}case l.TAG_ID.BR:case l.TAG_ID.IMG:case l.TAG_ID.WBR:case l.TAG_ID.AREA:case l.TAG_ID.EMBED:case l.TAG_ID.KEYGEN:{OA(e,t);break}case l.TAG_ID.HR:{G6(e,t);break}case l.TAG_ID.RB:case l.TAG_ID.RTC:{Q6(e,t);break}case l.TAG_ID.RT:case l.TAG_ID.RP:{$6(e,t);break}case l.TAG_ID.PRE:case l.TAG_ID.LISTING:{N6(e,t);break}case l.TAG_ID.XMP:{V6(e,t);break}case l.TAG_ID.SVG:{Z6(e,t);break}case l.TAG_ID.HTML:{C6(e,t);break}case l.TAG_ID.BASE:case l.TAG_ID.LINK:case l.TAG_ID.META:case l.TAG_ID.STYLE:case l.TAG_ID.TITLE:case l.TAG_ID.SCRIPT:case l.TAG_ID.BGSOUND:case l.TAG_ID.BASEFONT:case l.TAG_ID.TEMPLATE:{Sr(e,t);break}case l.TAG_ID.BODY:{D6(e,t);break}case l.TAG_ID.FORM:{w6(e,t);break}case l.TAG_ID.NOBR:{F6(e,t);break}case l.TAG_ID.MATH:{X6(e,t);break}case l.TAG_ID.TABLE:{j6(e,t);break}case l.TAG_ID.INPUT:{H6(e,t);break}case l.TAG_ID.PARAM:case l.TAG_ID.TRACK:case l.TAG_ID.SOURCE:{U6(e,t);break}case l.TAG_ID.IMAGE:{q6(e,t);break}case l.TAG_ID.BUTTON:{L6(e,t);break}case l.TAG_ID.APPLET:case l.TAG_ID.OBJECT:case l.TAG_ID.MARQUEE:{B6(e,t);break}case l.TAG_ID.IFRAME:{K6(e,t);break}case l.TAG_ID.SELECT:{W6(e,t);break}case l.TAG_ID.OPTION:case l.TAG_ID.OPTGROUP:{Y6(e,t);break}case l.TAG_ID.NOEMBED:{wA(e,t);break}case l.TAG_ID.FRAMESET:{S6(e,t);break}case l.TAG_ID.TEXTAREA:{z6(e,t);break}case l.TAG_ID.NOSCRIPT:{e.options.scriptingEnabled?wA(e,t):RA(e,t);break}case l.TAG_ID.PLAINTEXT:{P6(e,t);break}case l.TAG_ID.COL:case l.TAG_ID.TH:case l.TAG_ID.TD:case l.TAG_ID.TR:case l.TAG_ID.HEAD:case l.TAG_ID.FRAME:case l.TAG_ID.TBODY:case l.TAG_ID.TFOOT:case l.TAG_ID.THEAD:case l.TAG_ID.CAPTION:case l.TAG_ID.COLGROUP:break;default:RA(e,t)}}function J6(e,t){if(e.openElements.hasInScope(l.TAG_ID.BODY)&&(e.insertionMode=y.AFTER_BODY,e.options.sourceCodeLocationInfo)){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function eL(e,t){e.openElements.hasInScope(l.TAG_ID.BODY)&&(e.insertionMode=y.AFTER_BODY,GA(e,t))}function tL(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function rL(e){let t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(l.TAG_ID.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(l.TAG_ID.FORM):r&&e.openElements.remove(r))}function nL(e){e.openElements.hasInButtonScope(l.TAG_ID.P)||e._insertFakeElement(l.TAG_NAMES.P,l.TAG_ID.P),e._closePElement()}function iL(e){e.openElements.hasInListItemScope(l.TAG_ID.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(l.TAG_ID.LI),e.openElements.popUntilTagNamePopped(l.TAG_ID.LI))}function sL(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function aL(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function uL(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function oL(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(l.TAG_NAMES.BR,l.TAG_ID.BR),e.openElements.pop(),e.framesetOk=!1}function PA(e,t){let r=t.tagName,n=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){let s=e.openElements.items[i],a=e.openElements.tagIDs[i];if(n===a&&(n!==l.TAG_ID.UNKNOWN||e.treeAdapter.getTagName(s)===r)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(s,a))break}}function jc(e,t){switch(t.tagID){case l.TAG_ID.A:case l.TAG_ID.B:case l.TAG_ID.I:case l.TAG_ID.S:case l.TAG_ID.U:case l.TAG_ID.EM:case l.TAG_ID.TT:case l.TAG_ID.BIG:case l.TAG_ID.CODE:case l.TAG_ID.FONT:case l.TAG_ID.NOBR:case l.TAG_ID.SMALL:case l.TAG_ID.STRIKE:case l.TAG_ID.STRONG:{yh(e,t);break}case l.TAG_ID.P:{nL(e);break}case l.TAG_ID.DL:case l.TAG_ID.UL:case l.TAG_ID.OL:case l.TAG_ID.DIR:case l.TAG_ID.DIV:case l.TAG_ID.NAV:case l.TAG_ID.PRE:case l.TAG_ID.MAIN:case l.TAG_ID.MENU:case l.TAG_ID.ASIDE:case l.TAG_ID.BUTTON:case l.TAG_ID.CENTER:case l.TAG_ID.FIGURE:case l.TAG_ID.FOOTER:case l.TAG_ID.HEADER:case l.TAG_ID.HGROUP:case l.TAG_ID.DIALOG:case l.TAG_ID.ADDRESS:case l.TAG_ID.ARTICLE:case l.TAG_ID.DETAILS:case l.TAG_ID.SECTION:case l.TAG_ID.SUMMARY:case l.TAG_ID.LISTING:case l.TAG_ID.FIELDSET:case l.TAG_ID.BLOCKQUOTE:case l.TAG_ID.FIGCAPTION:{tL(e,t);break}case l.TAG_ID.LI:{iL(e);break}case l.TAG_ID.DD:case l.TAG_ID.DT:{sL(e,t);break}case l.TAG_ID.H1:case l.TAG_ID.H2:case l.TAG_ID.H3:case l.TAG_ID.H4:case l.TAG_ID.H5:case l.TAG_ID.H6:{aL(e);break}case l.TAG_ID.BR:{oL(e);break}case l.TAG_ID.BODY:{J6(e,t);break}case l.TAG_ID.HTML:{eL(e,t);break}case l.TAG_ID.FORM:{rL(e);break}case l.TAG_ID.APPLET:case l.TAG_ID.OBJECT:case l.TAG_ID.MARQUEE:{uL(e,t);break}case l.TAG_ID.TEMPLATE:{Ni(e,t);break}default:PA(e,t)}}function LA(e,t){e.tmplInsertionModeStack.length>0?UA(e,t):vh(e,t)}function cL(e,t){var r;t.tagID===l.TAG_ID.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function lL(e,t){e._err(t,gt.ERR.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Ch(e,t){if(vA.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=y.IN_TABLE_TEXT,t.type){case ut.TokenType.CHARACTER:{kA(e,t);break}case ut.TokenType.WHITESPACE_CHARACTER:{MA(e,t);break}}else yu(e,t)}function fL(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,l.NS.HTML),e.insertionMode=y.IN_CAPTION}function dL(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,l.NS.HTML),e.insertionMode=y.IN_COLUMN_GROUP}function hL(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(l.TAG_NAMES.COLGROUP,l.TAG_ID.COLGROUP),e.insertionMode=y.IN_COLUMN_GROUP,Dh(e,t)}function pL(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,l.NS.HTML),e.insertionMode=y.IN_TABLE_BODY}function mL(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(l.TAG_NAMES.TBODY,l.TAG_ID.TBODY),e.insertionMode=y.IN_TABLE_BODY,Uc(e,t)}function gL(e,t){e.openElements.hasInTableScope(l.TAG_ID.TABLE)&&(e.openElements.popUntilTagNamePopped(l.TAG_ID.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function _L(e,t){NA(t)?e._appendElement(t,l.NS.HTML):yu(e,t),t.ackSelfClosing=!0}function TL(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,l.NS.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Ks(e,t){switch(t.tagID){case l.TAG_ID.TD:case l.TAG_ID.TH:case l.TAG_ID.TR:{mL(e,t);break}case l.TAG_ID.STYLE:case l.TAG_ID.SCRIPT:case l.TAG_ID.TEMPLATE:{Sr(e,t);break}case l.TAG_ID.COL:{hL(e,t);break}case l.TAG_ID.FORM:{TL(e,t);break}case l.TAG_ID.TABLE:{gL(e,t);break}case l.TAG_ID.TBODY:case l.TAG_ID.TFOOT:case l.TAG_ID.THEAD:{pL(e,t);break}case l.TAG_ID.INPUT:{_L(e,t);break}case l.TAG_ID.CAPTION:{fL(e,t);break}case l.TAG_ID.COLGROUP:{dL(e,t);break}default:yu(e,t)}}function Au(e,t){switch(t.tagID){case l.TAG_ID.TABLE:{e.openElements.hasInTableScope(l.TAG_ID.TABLE)&&(e.openElements.popUntilTagNamePopped(l.TAG_ID.TABLE),e._resetInsertionMode());break}case l.TAG_ID.TEMPLATE:{Ni(e,t);break}case l.TAG_ID.BODY:case l.TAG_ID.CAPTION:case l.TAG_ID.COL:case l.TAG_ID.COLGROUP:case l.TAG_ID.HTML:case l.TAG_ID.TBODY:case l.TAG_ID.TD:case l.TAG_ID.TFOOT:case l.TAG_ID.TH:case l.TAG_ID.THEAD:case l.TAG_ID.TR:break;default:yu(e,t)}}function yu(e,t){let r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Bc(e,t),e.fosterParentingEnabled=r}function MA(e,t){e.pendingCharacterTokens.push(t)}function kA(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Iu(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)yu(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}var FA=new Set([l.TAG_ID.CAPTION,l.TAG_ID.COL,l.TAG_ID.COLGROUP,l.TAG_ID.TBODY,l.TAG_ID.TD,l.TAG_ID.TFOOT,l.TAG_ID.TH,l.TAG_ID.THEAD,l.TAG_ID.TR]);function bL(e,t){let r=t.tagID;FA.has(r)?e.openElements.hasInTableScope(l.TAG_ID.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.TAG_ID.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=y.IN_TABLE,Ks(e,t)):Ct(e,t)}function EL(e,t){let r=t.tagID;switch(r){case l.TAG_ID.CAPTION:case l.TAG_ID.TABLE:{e.openElements.hasInTableScope(l.TAG_ID.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.TAG_ID.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=y.IN_TABLE,r===l.TAG_ID.TABLE&&Au(e,t));break}case l.TAG_ID.BODY:case l.TAG_ID.COL:case l.TAG_ID.COLGROUP:case l.TAG_ID.HTML:case l.TAG_ID.TBODY:case l.TAG_ID.TD:case l.TAG_ID.TFOOT:case l.TAG_ID.TH:case l.TAG_ID.THEAD:case l.TAG_ID.TR:break;default:jc(e,t)}}function Dh(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.COL:{e._appendElement(t,l.NS.HTML),t.ackSelfClosing=!0;break}case l.TAG_ID.TEMPLATE:{Sr(e,t);break}default:Hc(e,t)}}function AL(e,t){switch(t.tagID){case l.TAG_ID.COLGROUP:{e.openElements.currentTagId===l.TAG_ID.COLGROUP&&(e.openElements.pop(),e.insertionMode=y.IN_TABLE);break}case l.TAG_ID.TEMPLATE:{Ni(e,t);break}case l.TAG_ID.COL:break;default:Hc(e,t)}}function Hc(e,t){e.openElements.currentTagId===l.TAG_ID.COLGROUP&&(e.openElements.pop(),e.insertionMode=y.IN_TABLE,e._processToken(t))}function Uc(e,t){switch(t.tagID){case l.TAG_ID.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,l.NS.HTML),e.insertionMode=y.IN_ROW;break}case l.TAG_ID.TH:case l.TAG_ID.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(l.TAG_NAMES.TR,l.TAG_ID.TR),e.insertionMode=y.IN_ROW,Gc(e,t);break}case l.TAG_ID.CAPTION:case l.TAG_ID.COL:case l.TAG_ID.COLGROUP:case l.TAG_ID.TBODY:case l.TAG_ID.TFOOT:case l.TAG_ID.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=y.IN_TABLE,Ks(e,t));break}default:Ks(e,t)}}function Sh(e,t){let r=t.tagID;switch(t.tagID){case l.TAG_ID.TBODY:case l.TAG_ID.TFOOT:case l.TAG_ID.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=y.IN_TABLE);break}case l.TAG_ID.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=y.IN_TABLE,Au(e,t));break}case l.TAG_ID.BODY:case l.TAG_ID.CAPTION:case l.TAG_ID.COL:case l.TAG_ID.COLGROUP:case l.TAG_ID.HTML:case l.TAG_ID.TD:case l.TAG_ID.TH:case l.TAG_ID.TR:break;default:Au(e,t)}}function Gc(e,t){switch(t.tagID){case l.TAG_ID.TH:case l.TAG_ID.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,l.NS.HTML),e.insertionMode=y.IN_CELL,e.activeFormattingElements.insertMarker();break}case l.TAG_ID.CAPTION:case l.TAG_ID.COL:case l.TAG_ID.COLGROUP:case l.TAG_ID.TBODY:case l.TAG_ID.TFOOT:case l.TAG_ID.THEAD:case l.TAG_ID.TR:{e.openElements.hasInTableScope(l.TAG_ID.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=y.IN_TABLE_BODY,Uc(e,t));break}default:Ks(e,t)}}function BA(e,t){switch(t.tagID){case l.TAG_ID.TR:{e.openElements.hasInTableScope(l.TAG_ID.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=y.IN_TABLE_BODY);break}case l.TAG_ID.TABLE:{e.openElements.hasInTableScope(l.TAG_ID.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=y.IN_TABLE_BODY,Sh(e,t));break}case l.TAG_ID.TBODY:case l.TAG_ID.TFOOT:case l.TAG_ID.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(l.TAG_ID.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=y.IN_TABLE_BODY,Sh(e,t));break}case l.TAG_ID.BODY:case l.TAG_ID.CAPTION:case l.TAG_ID.COL:case l.TAG_ID.COLGROUP:case l.TAG_ID.HTML:case l.TAG_ID.TD:case l.TAG_ID.TH:break;default:Au(e,t)}}function yL(e,t){let r=t.tagID;FA.has(r)?(e.openElements.hasInTableScope(l.TAG_ID.TD)||e.openElements.hasInTableScope(l.TAG_ID.TH))&&(e._closeTableCell(),Gc(e,t)):Ct(e,t)}function IL(e,t){let r=t.tagID;switch(r){case l.TAG_ID.TD:case l.TAG_ID.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=y.IN_ROW);break}case l.TAG_ID.TABLE:case l.TAG_ID.TBODY:case l.TAG_ID.TFOOT:case l.TAG_ID.THEAD:case l.TAG_ID.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),BA(e,t));break}case l.TAG_ID.BODY:case l.TAG_ID.CAPTION:case l.TAG_ID.COL:case l.TAG_ID.COLGROUP:case l.TAG_ID.HTML:break;default:jc(e,t)}}function jA(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.OPTION:{e.openElements.currentTagId===l.TAG_ID.OPTION&&e.openElements.pop(),e._insertElement(t,l.NS.HTML);break}case l.TAG_ID.OPTGROUP:{e.openElements.currentTagId===l.TAG_ID.OPTION&&e.openElements.pop(),e.openElements.currentTagId===l.TAG_ID.OPTGROUP&&e.openElements.pop(),e._insertElement(t,l.NS.HTML);break}case l.TAG_ID.INPUT:case l.TAG_ID.KEYGEN:case l.TAG_ID.TEXTAREA:case l.TAG_ID.SELECT:{e.openElements.hasInSelectScope(l.TAG_ID.SELECT)&&(e.openElements.popUntilTagNamePopped(l.TAG_ID.SELECT),e._resetInsertionMode(),t.tagID!==l.TAG_ID.SELECT&&e._processStartTag(t));break}case l.TAG_ID.SCRIPT:case l.TAG_ID.TEMPLATE:{Sr(e,t);break}default:}}function HA(e,t){switch(t.tagID){case l.TAG_ID.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===l.TAG_ID.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===l.TAG_ID.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===l.TAG_ID.OPTGROUP&&e.openElements.pop();break}case l.TAG_ID.OPTION:{e.openElements.currentTagId===l.TAG_ID.OPTION&&e.openElements.pop();break}case l.TAG_ID.SELECT:{e.openElements.hasInSelectScope(l.TAG_ID.SELECT)&&(e.openElements.popUntilTagNamePopped(l.TAG_ID.SELECT),e._resetInsertionMode());break}case l.TAG_ID.TEMPLATE:{Ni(e,t);break}default:}}function vL(e,t){let r=t.tagID;r===l.TAG_ID.CAPTION||r===l.TAG_ID.TABLE||r===l.TAG_ID.TBODY||r===l.TAG_ID.TFOOT||r===l.TAG_ID.THEAD||r===l.TAG_ID.TR||r===l.TAG_ID.TD||r===l.TAG_ID.TH?(e.openElements.popUntilTagNamePopped(l.TAG_ID.SELECT),e._resetInsertionMode(),e._processStartTag(t)):jA(e,t)}function CL(e,t){let r=t.tagID;r===l.TAG_ID.CAPTION||r===l.TAG_ID.TABLE||r===l.TAG_ID.TBODY||r===l.TAG_ID.TFOOT||r===l.TAG_ID.THEAD||r===l.TAG_ID.TR||r===l.TAG_ID.TD||r===l.TAG_ID.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(l.TAG_ID.SELECT),e._resetInsertionMode(),e.onEndTag(t)):HA(e,t)}function DL(e,t){switch(t.tagID){case l.TAG_ID.BASE:case l.TAG_ID.BASEFONT:case l.TAG_ID.BGSOUND:case l.TAG_ID.LINK:case l.TAG_ID.META:case l.TAG_ID.NOFRAMES:case l.TAG_ID.SCRIPT:case l.TAG_ID.STYLE:case l.TAG_ID.TEMPLATE:case l.TAG_ID.TITLE:{Sr(e,t);break}case l.TAG_ID.CAPTION:case l.TAG_ID.COLGROUP:case l.TAG_ID.TBODY:case l.TAG_ID.TFOOT:case l.TAG_ID.THEAD:{e.tmplInsertionModeStack[0]=y.IN_TABLE,e.insertionMode=y.IN_TABLE,Ks(e,t);break}case l.TAG_ID.COL:{e.tmplInsertionModeStack[0]=y.IN_COLUMN_GROUP,e.insertionMode=y.IN_COLUMN_GROUP,Dh(e,t);break}case l.TAG_ID.TR:{e.tmplInsertionModeStack[0]=y.IN_TABLE_BODY,e.insertionMode=y.IN_TABLE_BODY,Uc(e,t);break}case l.TAG_ID.TD:case l.TAG_ID.TH:{e.tmplInsertionModeStack[0]=y.IN_ROW,e.insertionMode=y.IN_ROW,Gc(e,t);break}default:e.tmplInsertionModeStack[0]=y.IN_BODY,e.insertionMode=y.IN_BODY,Ct(e,t)}}function SL(e,t){t.tagID===l.TAG_ID.TEMPLATE&&Ni(e,t)}function UA(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(l.TAG_ID.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):vh(e,t)}function xL(e,t){t.tagID===l.TAG_ID.HTML?Ct(e,t):qc(e,t)}function GA(e,t){var r;if(t.tagID===l.TAG_ID.HTML){if(e.fragmentContext||(e.insertionMode=y.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===l.TAG_ID.HTML){e._setEndLocation(e.openElements.items[0],t);let n=e.openElements.items[1];n&&!((r=e.treeAdapter.getNodeSourceCodeLocation(n))===null||r===void 0?void 0:r.endTag)&&e._setEndLocation(n,t)}}else qc(e,t)}function qc(e,t){e.insertionMode=y.IN_BODY,Bc(e,t)}function OL(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.FRAMESET:{e._insertElement(t,l.NS.HTML);break}case l.TAG_ID.FRAME:{e._appendElement(t,l.NS.HTML),t.ackSelfClosing=!0;break}case l.TAG_ID.NOFRAMES:{Sr(e,t);break}default:}}function NL(e,t){t.tagID===l.TAG_ID.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==l.TAG_ID.FRAMESET&&(e.insertionMode=y.AFTER_FRAMESET))}function wL(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.NOFRAMES:{Sr(e,t);break}default:}}function RL(e,t){t.tagID===l.TAG_ID.HTML&&(e.insertionMode=y.AFTER_AFTER_FRAMESET)}function PL(e,t){t.tagID===l.TAG_ID.HTML?Ct(e,t):zc(e,t)}function zc(e,t){e.insertionMode=y.IN_BODY,Bc(e,t)}function LL(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.NOFRAMES:{Sr(e,t);break}default:}}function ML(e,t){t.chars=IA.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function kL(e,t){e._insertCharacters(t),e.framesetOk=!1}function qA(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==l.NS.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function FL(e,t){if(qr.causesExit(t))qA(e),e._startTagOutsideForeignContent(t);else{let r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===l.NS.MATHML?qr.adjustTokenMathMLAttrs(t):n===l.NS.SVG&&(qr.adjustTokenSVGTagName(t),qr.adjustTokenSVGAttrs(t)),qr.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}function BL(e,t){if(t.tagID===l.TAG_ID.P||t.tagID===l.TAG_ID.BR){qA(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){let n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===l.NS.HTML){e._endTagOutsideForeignContent(t);break}let i=e.treeAdapter.getTagName(n);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(r);break}}}});var QA=U(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.serializeOuter=Ws.serialize=void 0;var Le=fn(),zA=Qa(),jL=Fc(),HL=new Set([Le.TAG_NAMES.AREA,Le.TAG_NAMES.BASE,Le.TAG_NAMES.BASEFONT,Le.TAG_NAMES.BGSOUND,Le.TAG_NAMES.BR,Le.TAG_NAMES.COL,Le.TAG_NAMES.EMBED,Le.TAG_NAMES.FRAME,Le.TAG_NAMES.HR,Le.TAG_NAMES.IMG,Le.TAG_NAMES.INPUT,Le.TAG_NAMES.KEYGEN,Le.TAG_NAMES.LINK,Le.TAG_NAMES.META,Le.TAG_NAMES.PARAM,Le.TAG_NAMES.SOURCE,Le.TAG_NAMES.TRACK,Le.TAG_NAMES.WBR]);function VA(e,t){return t.treeAdapter.isElementNode(e)&&t.treeAdapter.getNamespaceURI(e)===Le.NS.HTML&&HL.has(t.treeAdapter.getTagName(e))}var KA={treeAdapter:jL.defaultTreeAdapter,scriptingEnabled:!0};function UL(e,t){let r=Object.assign(Object.assign({},KA),t);return VA(e,r)?"":WA(e,r)}Ws.serialize=UL;function GL(e,t){let r=Object.assign(Object.assign({},KA),t);return YA(e,r)}Ws.serializeOuter=GL;function WA(e,t){let r="",n=t.treeAdapter.isElementNode(e)&&t.treeAdapter.getTagName(e)===Le.TAG_NAMES.TEMPLATE&&t.treeAdapter.getNamespaceURI(e)===Le.NS.HTML?t.treeAdapter.getTemplateContent(e):e,i=t.treeAdapter.getChildNodes(n);if(i)for(let s of i)r+=YA(s,t);return r}function YA(e,t){return t.treeAdapter.isElementNode(e)?qL(e,t):t.treeAdapter.isTextNode(e)?VL(e,t):t.treeAdapter.isCommentNode(e)?KL(e,t):t.treeAdapter.isDocumentTypeNode(e)?WL(e,t):""}function qL(e,t){let r=t.treeAdapter.getTagName(e);return`<${r}${zL(e,t)}>${VA(e,t)?"":`${WA(e,t)}</${r}>`}`}function zL(e,{treeAdapter:t}){let r="";for(let n of t.getAttrList(e)){if(r+=" ",!n.namespace)r+=n.name;else switch(n.namespace){case Le.NS.XML:{r+=`xml:${n.name}`;break}case Le.NS.XMLNS:{n.name!=="xmlns"&&(r+="xmlns:"),r+=n.name;break}case Le.NS.XLINK:{r+=`xlink:${n.name}`;break}default:r+=`${n.prefix}:${n.name}`}r+=`="${(0,zA.escapeAttribute)(n.value)}"`}return r}function VL(e,t){let{treeAdapter:r}=t,n=r.getTextNodeContent(e),i=r.getParentNode(e),s=i&&r.isElementNode(i)&&r.getTagName(i);return s&&r.getNamespaceURI(i)===Le.NS.HTML&&(0,Le.hasUnescapedText)(s,t.scriptingEnabled)?n:(0,zA.escapeText)(n)}function KL(e,{treeAdapter:t}){return`<!--${t.getCommentNodeContent(e)}-->`}function WL(e,{treeAdapter:t}){return`<!DOCTYPE ${t.getDocumentTypeNodeName(e)}>`}});var Oh=U(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.parseFragment=Me.parse=Me.TokenizerMode=Me.Tokenizer=Me.Token=Me.html=Me.foreignContent=Me.ErrorCodes=Me.serializeOuter=Me.serialize=Me.Parser=Me.defaultTreeAdapter=void 0;var $A=xh(),YL=Fc();Object.defineProperty(Me,"defaultTreeAdapter",{enumerable:!0,get:function(){return YL.defaultTreeAdapter}});var QL=xh();Object.defineProperty(Me,"Parser",{enumerable:!0,get:function(){return QL.Parser}});var XA=QA();Object.defineProperty(Me,"serialize",{enumerable:!0,get:function(){return XA.serialize}});Object.defineProperty(Me,"serializeOuter",{enumerable:!0,get:function(){return XA.serializeOuter}});var $L=du();Object.defineProperty(Me,"ErrorCodes",{enumerable:!0,get:function(){return $L.ERR}});Me.foreignContent=Ah();Me.html=fn();Me.Token=Pc();var ZA=bh();Object.defineProperty(Me,"Tokenizer",{enumerable:!0,get:function(){return ZA.Tokenizer}});Object.defineProperty(Me,"TokenizerMode",{enumerable:!0,get:function(){return ZA.TokenizerMode}});function XL(e,t){return $A.Parser.parse(e,t)}Me.parse=XL;function ZL(e,t,r){typeof e=="string"&&(r=t,t=e,e=null);let n=$A.Parser.getFragmentParser(e,r);return n.tokenizer.write(t,!0),n.getFragment()}Me.parseFragment=ZL});var ry=U(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.adapter=zr.serializeDoctypeContent=void 0;var JL=Oh(),tr=yt();function JA(e){return new tr.Text(e)}function ey(e){let t=e.includes('"')?"'":'"';return t+e+t}function ty(e,t,r){let n="!DOCTYPE ";return e&&(n+=e),t?n+=` PUBLIC ${ey(t)}`:r&&(n+=" SYSTEM"),r&&(n+=` ${ey(r)}`),n}zr.serializeDoctypeContent=ty;zr.adapter={isCommentNode:tr.isComment,isElementNode:tr.isTag,isTextNode:tr.isText,createDocument(){let e=new tr.Document([]);return e["x-mode"]=JL.html.DOCUMENT_MODE.NO_QUIRKS,e},createDocumentFragment(){return new tr.Document([])},createElement(e,t,r){let n=Object.create(null),i=Object.create(null),s=Object.create(null);for(let u=0;u<r.length;u++){let o=r[u].name;n[o]=r[u].value,i[o]=r[u].namespace,s[o]=r[u].prefix}let a=new tr.Element(e,n,[]);return a.namespace=t,a["x-attribsNamespace"]=i,a["x-attribsPrefix"]=s,a},createCommentNode(e){return new tr.Comment(e)},appendChild(e,t){let r=e.children[e.children.length-1];r&&(r.next=t,t.prev=r),e.children.push(t),t.parent=e},insertBefore(e,t,r){let n=e.children.indexOf(r),{prev:i}=r;i&&(i.next=t,t.prev=i),r.prev=t,t.next=r,e.children.splice(n,0,t),t.parent=e},setTemplateContent(e,t){zr.adapter.appendChild(e,t)},getTemplateContent(e){return e.children[0]},setDocumentType(e,t,r,n){let i=ty(t,r,n),s=e.children.find(a=>(0,tr.isDirective)(a)&&a.name==="!doctype");s?s.data=i??null:(s=new tr.ProcessingInstruction("!doctype",i),zr.adapter.appendChild(e,s)),s["x-name"]=t??void 0,s["x-publicId"]=r??void 0,s["x-systemId"]=n??void 0},setDocumentMode(e,t){e["x-mode"]=t},getDocumentMode(e){return e["x-mode"]},detachNode(e){if(e.parent){let t=e.parent.children.indexOf(e),{prev:r,next:n}=e;e.prev=null,e.next=null,r&&(r.next=n),n&&(n.prev=r),e.parent.children.splice(t,1),e.parent=null}},insertText(e,t){let r=e.children[e.children.length-1];r&&(0,tr.isText)(r)?r.data+=t:zr.adapter.appendChild(e,JA(t))},insertTextBefore(e,t,r){let n=e.children[e.children.indexOf(r)-1];n&&(0,tr.isText)(n)?n.data+=t:zr.adapter.insertBefore(e,JA(t),r)},adoptAttributes(e,t){for(let r=0;r<t.length;r++){let n=t[r].name;typeof e.attribs[n]=="undefined"&&(e.attribs[n]=t[r].value,e["x-attribsNamespace"][n]=t[r].namespace,e["x-attribsPrefix"][n]=t[r].prefix)}},getFirstChild(e){return e.children[0]},getChildNodes(e){return e.children},getParentNode(e){return e.parent},getAttrList(e){return e.attributes},getTagName(e){return e.name},getNamespaceURI(e){return e.namespace},getTextNodeContent(e){return e.data},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){var t;return(t=e["x-name"])!==null&&t!==void 0?t:""},getDocumentTypeNodePublicId(e){var t;return(t=e["x-publicId"])!==null&&t!==void 0?t:""},getDocumentTypeNodeSystemId(e){var t;return(t=e["x-systemId"])!==null&&t!==void 0?t:""},isDocumentTypeNode(e){return(0,tr.isDirective)(e)&&e.name==="!doctype"},setNodeSourceCodeLocation(e,t){t&&(e.startIndex=t.startOffset,e.endIndex=t.endOffset),e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){t.endOffset!=null&&(e.endIndex=t.endOffset),e.sourceCodeLocation=Object.assign(Object.assign({},e.sourceCodeLocation),t)}}});var iy=U(Xn=>{"use strict";var eM=Xn&&Xn.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};Object.defineProperty(Xn,"__esModule",{value:!0});Xn.renderWithParse5=Xn.parseWithParse5=void 0;var tM=yt(),Nh=Oh(),ny=ry();function rM(e,t,r,n){var i={scriptingEnabled:typeof t.scriptingEnabled=="boolean"?t.scriptingEnabled:!0,treeAdapter:ny.adapter,sourceCodeLocationInfo:t.sourceCodeLocationInfo};return r?(0,Nh.parse)(e,i):(0,Nh.parseFragment)(n,e,i)}Xn.parseWithParse5=rM;var nM={treeAdapter:ny.adapter};function iM(e){for(var t,r=("length"in e)?e:[e],n=0;n<r.length;n+=1){var i=r[n];(0,tM.isDocument)(i)&&(t=Array.prototype.splice).call.apply(t,eM([r,n,1],i.children,!1))}for(var s="",n=0;n<r.length;n+=1){var i=r[n];s+=(0,Nh.serializeOuter)(i,nM)}return s}Xn.renderWithParse5=iM});var wh=U(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.QuoteType=void 0;var wi=Is(),Q;(function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"})(Q||(Q={}));var M;(function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"})(M||(M={}));function hn(e){return e===Q.Space||e===Q.NewLine||e===Q.Tab||e===Q.FormFeed||e===Q.CarriageReturn}function Kc(e){return e===Q.Slash||e===Q.Gt||hn(e)}function sy(e){return e>=Q.Zero&&e<=Q.Nine}function sM(e){return e>=Q.LowerA&&e<=Q.LowerZ||e>=Q.UpperA&&e<=Q.UpperZ}function aM(e){return e>=Q.UpperA&&e<=Q.UpperF||e>=Q.LowerA&&e<=Q.LowerF}var Ys;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(Ys=Qs.QuoteType||(Qs.QuoteType={}));var qt={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},uM=function(){function e(t,r){var n=t.xmlMode,i=n===void 0?!1:n,s=t.decodeEntities,a=s===void 0?!0:s;this.cbs=r,this.state=M.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=M.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=i,this.decodeEntities=a,this.entityTrie=i?wi.xmlDecodeTree:wi.htmlDecodeTree}return e.prototype.reset=function(){this.state=M.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=M.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},e.prototype.write=function(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()},e.prototype.end=function(){this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},e.prototype.getIndex=function(){return this.index},e.prototype.getSectionStart=function(){return this.sectionStart},e.prototype.stateText=function(t){t===Q.Lt||!this.decodeEntities&&this.fastForwardTo(Q.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=M.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===Q.Amp&&(this.state=M.BeforeEntity)},e.prototype.stateSpecialStartSequence=function(t){var r=this.sequenceIndex===this.currentSequence.length,n=r?Kc(t):(t|32)===this.currentSequence[this.sequenceIndex];if(!n)this.isSpecial=!1;else if(!r){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=M.InTagName,this.stateInTagName(t)},e.prototype.stateInSpecialTag=function(t){if(this.sequenceIndex===this.currentSequence.length){if(t===Q.Gt||hn(t)){var r=this.index-this.currentSequence.length;if(this.sectionStart<r){var n=this.index;this.index=r,this.cbs.ontext(this.sectionStart,r),this.index=n}this.isSpecial=!1,this.sectionStart=r+2,this.stateInClosingTagName(t);return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===qt.TitleEnd?this.decodeEntities&&t===Q.Amp&&(this.state=M.BeforeEntity):this.fastForwardTo(Q.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(t===Q.Lt)},e.prototype.stateCDATASequence=function(t){t===qt.Cdata[this.sequenceIndex]?++this.sequenceIndex===qt.Cdata.length&&(this.state=M.InCommentLike,this.currentSequence=qt.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=M.InDeclaration,this.stateInDeclaration(t))},e.prototype.fastForwardTo=function(t){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===t)return!0;return this.index=this.buffer.length+this.offset-1,!1},e.prototype.stateInCommentLike=function(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===qt.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=M.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},e.prototype.isTagStartChar=function(t){return this.xmlMode?!Kc(t):sM(t)},e.prototype.startSpecial=function(t,r){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=r,this.state=M.SpecialStartSequence},e.prototype.stateBeforeTagName=function(t){if(t===Q.ExclamationMark)this.state=M.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===Q.Questionmark)this.state=M.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){var r=t|32;this.sectionStart=this.index,!this.xmlMode&&r===qt.TitleEnd[2]?this.startSpecial(qt.TitleEnd,3):this.state=!this.xmlMode&&r===qt.ScriptEnd[2]?M.BeforeSpecialS:M.InTagName}else t===Q.Slash?this.state=M.BeforeClosingTagName:(this.state=M.Text,this.stateText(t))},e.prototype.stateInTagName=function(t){Kc(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=M.BeforeAttributeName,this.stateBeforeAttributeName(t))},e.prototype.stateBeforeClosingTagName=function(t){hn(t)||(t===Q.Gt?this.state=M.Text:(this.state=this.isTagStartChar(t)?M.InClosingTagName:M.InSpecialComment,this.sectionStart=this.index))},e.prototype.stateInClosingTagName=function(t){(t===Q.Gt||hn(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=M.AfterClosingTagName,this.stateAfterClosingTagName(t))},e.prototype.stateAfterClosingTagName=function(t){(t===Q.Gt||this.fastForwardTo(Q.Gt))&&(this.state=M.Text,this.baseState=M.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeAttributeName=function(t){t===Q.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=M.InSpecialTag,this.sequenceIndex=0):this.state=M.Text,this.baseState=this.state,this.sectionStart=this.index+1):t===Q.Slash?this.state=M.InSelfClosingTag:hn(t)||(this.state=M.InAttributeName,this.sectionStart=this.index)},e.prototype.stateInSelfClosingTag=function(t){t===Q.Gt?(this.cbs.onselfclosingtag(this.index),this.state=M.Text,this.baseState=M.Text,this.sectionStart=this.index+1,this.isSpecial=!1):hn(t)||(this.state=M.BeforeAttributeName,this.stateBeforeAttributeName(t))},e.prototype.stateInAttributeName=function(t){(t===Q.Eq||Kc(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=M.AfterAttributeName,this.stateAfterAttributeName(t))},e.prototype.stateAfterAttributeName=function(t){t===Q.Eq?this.state=M.BeforeAttributeValue:t===Q.Slash||t===Q.Gt?(this.cbs.onattribend(Ys.NoValue,this.index),this.state=M.BeforeAttributeName,this.stateBeforeAttributeName(t)):hn(t)||(this.cbs.onattribend(Ys.NoValue,this.index),this.state=M.InAttributeName,this.sectionStart=this.index)},e.prototype.stateBeforeAttributeValue=function(t){t===Q.DoubleQuote?(this.state=M.InAttributeValueDq,this.sectionStart=this.index+1):t===Q.SingleQuote?(this.state=M.InAttributeValueSq,this.sectionStart=this.index+1):hn(t)||(this.sectionStart=this.index,this.state=M.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))},e.prototype.handleInAttributeValue=function(t,r){t===r||!this.decodeEntities&&this.fastForwardTo(r)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(r===Q.DoubleQuote?Ys.Double:Ys.Single,this.index),this.state=M.BeforeAttributeName):this.decodeEntities&&t===Q.Amp&&(this.baseState=this.state,this.state=M.BeforeEntity)},e.prototype.stateInAttributeValueDoubleQuotes=function(t){this.handleInAttributeValue(t,Q.DoubleQuote)},e.prototype.stateInAttributeValueSingleQuotes=function(t){this.handleInAttributeValue(t,Q.SingleQuote)},e.prototype.stateInAttributeValueNoQuotes=function(t){hn(t)||t===Q.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(Ys.Unquoted,this.index),this.state=M.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===Q.Amp&&(this.baseState=this.state,this.state=M.BeforeEntity)},e.prototype.stateBeforeDeclaration=function(t){t===Q.OpeningSquareBracket?(this.state=M.CDATASequence,this.sequenceIndex=0):this.state=t===Q.Dash?M.BeforeComment:M.InDeclaration},e.prototype.stateInDeclaration=function(t){(t===Q.Gt||this.fastForwardTo(Q.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=M.Text,this.sectionStart=this.index+1)},e.prototype.stateInProcessingInstruction=function(t){(t===Q.Gt||this.fastForwardTo(Q.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=M.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeComment=function(t){t===Q.Dash?(this.state=M.InCommentLike,this.currentSequence=qt.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=M.InDeclaration},e.prototype.stateInSpecialComment=function(t){(t===Q.Gt||this.fastForwardTo(Q.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=M.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeSpecialS=function(t){var r=t|32;r===qt.ScriptEnd[3]?this.startSpecial(qt.ScriptEnd,4):r===qt.StyleEnd[3]?this.startSpecial(qt.StyleEnd,4):(this.state=M.InTagName,this.stateInTagName(t))},e.prototype.stateBeforeEntity=function(t){this.entityExcess=1,this.entityResult=0,t===Q.Number?this.state=M.BeforeNumericEntity:t===Q.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=M.InNamedEntity,this.stateInNamedEntity(t))},e.prototype.stateInNamedEntity=function(t){if(this.entityExcess+=1,this.trieIndex=(0,wi.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,t),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var r=this.trieCurrent&wi.BinTrieFlags.VALUE_LENGTH;if(r){var n=(r>>14)-1;if(!this.allowLegacyEntity()&&t!==Q.Semi)this.trieIndex+=n;else{var i=this.index-this.entityExcess+1;i>this.sectionStart&&this.emitPartial(this.sectionStart,i),this.entityResult=this.trieIndex,this.trieIndex+=n,this.entityExcess=0,this.sectionStart=this.index+1,n===0&&this.emitNamedEntity()}}},e.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var t=(this.entityTrie[this.entityResult]&wi.BinTrieFlags.VALUE_LENGTH)>>14;switch(t){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~wi.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},e.prototype.stateBeforeNumericEntity=function(t){(t|32)===Q.LowerX?(this.entityExcess++,this.state=M.InHexEntity):(this.state=M.InNumericEntity,this.stateInNumericEntity(t))},e.prototype.emitNumericEntity=function(t){var r=this.index-this.entityExcess-1,n=r+2+Number(this.state===M.InHexEntity);n!==this.index&&(r>this.sectionStart&&this.emitPartial(this.sectionStart,r),this.sectionStart=this.index+Number(t),this.emitCodePoint((0,wi.replaceCodePoint)(this.entityResult))),this.state=this.baseState},e.prototype.stateInNumericEntity=function(t){t===Q.Semi?this.emitNumericEntity(!0):sy(t)?(this.entityResult=this.entityResult*10+(t-Q.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.stateInHexEntity=function(t){t===Q.Semi?this.emitNumericEntity(!0):sy(t)?(this.entityResult=this.entityResult*16+(t-Q.Zero),this.entityExcess++):aM(t)?(this.entityResult=this.entityResult*16+((t|32)-Q.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===M.Text||this.baseState===M.InSpecialTag)},e.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===M.Text||this.state===M.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===M.InAttributeValueDq||this.state===M.InAttributeValueSq||this.state===M.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},e.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},e.prototype.parse=function(){for(;this.shouldContinue();){var t=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case M.Text:{this.stateText(t);break}case M.SpecialStartSequence:{this.stateSpecialStartSequence(t);break}case M.InSpecialTag:{this.stateInSpecialTag(t);break}case M.CDATASequence:{this.stateCDATASequence(t);break}case M.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(t);break}case M.InAttributeName:{this.stateInAttributeName(t);break}case M.InCommentLike:{this.stateInCommentLike(t);break}case M.InSpecialComment:{this.stateInSpecialComment(t);break}case M.BeforeAttributeName:{this.stateBeforeAttributeName(t);break}case M.InTagName:{this.stateInTagName(t);break}case M.InClosingTagName:{this.stateInClosingTagName(t);break}case M.BeforeTagName:{this.stateBeforeTagName(t);break}case M.AfterAttributeName:{this.stateAfterAttributeName(t);break}case M.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(t);break}case M.BeforeAttributeValue:{this.stateBeforeAttributeValue(t);break}case M.BeforeClosingTagName:{this.stateBeforeClosingTagName(t);break}case M.AfterClosingTagName:{this.stateAfterClosingTagName(t);break}case M.BeforeSpecialS:{this.stateBeforeSpecialS(t);break}case M.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(t);break}case M.InSelfClosingTag:{this.stateInSelfClosingTag(t);break}case M.InDeclaration:{this.stateInDeclaration(t);break}case M.BeforeDeclaration:{this.stateBeforeDeclaration(t);break}case M.BeforeComment:{this.stateBeforeComment(t);break}case M.InProcessingInstruction:{this.stateInProcessingInstruction(t);break}case M.InNamedEntity:{this.stateInNamedEntity(t);break}case M.BeforeEntity:{this.stateBeforeEntity(t);break}case M.InHexEntity:{this.stateInHexEntity(t);break}case M.InNumericEntity:{this.stateInNumericEntity(t);break}default:this.stateBeforeNumericEntity(t)}this.index++}this.cleanup()},e.prototype.finish=function(){this.state===M.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},e.prototype.handleTrailingData=function(){var t=this.buffer.length+this.offset;this.state===M.InCommentLike?this.currentSequence===qt.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===M.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===M.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===M.InTagName||this.state===M.BeforeAttributeName||this.state===M.BeforeAttributeValue||this.state===M.AfterAttributeName||this.state===M.InAttributeName||this.state===M.InAttributeValueSq||this.state===M.InAttributeValueDq||this.state===M.InAttributeValueNq||this.state===M.InClosingTagName||this.cbs.ontext(this.sectionStart,t)},e.prototype.emitPartial=function(t,r){this.baseState!==M.Text&&this.baseState!==M.InSpecialTag?this.cbs.onattribdata(t,r):this.cbs.ontext(t,r)},e.prototype.emitCodePoint=function(t){this.baseState!==M.Text&&this.baseState!==M.InSpecialTag?this.cbs.onattribentity(t):this.cbs.ontextentity(t)},e}();Qs.default=uM});var Rh=U(Vr=>{"use strict";var oM=Vr&&Vr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),cM=Vr&&Vr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),lM=Vr&&Vr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&oM(t,e,r);return cM(t,e),t};Object.defineProperty(Vr,"__esModule",{value:!0});Vr.Parser=void 0;var Wc=lM(wh()),ay=Is(),$s=new Set(["input","option","optgroup","select","button","datalist","textarea"]),xe=new Set(["p"]),uy=new Set(["thead","tbody"]),oy=new Set(["dd","dt"]),cy=new Set(["rt","rp"]),fM=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",xe],["h1",xe],["h2",xe],["h3",xe],["h4",xe],["h5",xe],["h6",xe],["select",$s],["input",$s],["output",$s],["button",$s],["datalist",$s],["textarea",$s],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",oy],["dt",oy],["address",xe],["article",xe],["aside",xe],["blockquote",xe],["details",xe],["div",xe],["dl",xe],["fieldset",xe],["figcaption",xe],["figure",xe],["footer",xe],["form",xe],["header",xe],["hr",xe],["main",xe],["nav",xe],["ol",xe],["pre",xe],["section",xe],["table",xe],["ul",xe],["rt",cy],["rp",cy],["tbody",uy],["tfoot",uy]]),dM=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),ly=new Set(["math","svg"]),fy=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),hM=/\s|\//,pM=function(){function e(t,r){r===void 0&&(r={});var n,i,s,a,u;this.options=r,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t??{},this.lowerCaseTagNames=(n=r.lowerCaseTags)!==null&&n!==void 0?n:!r.xmlMode,this.lowerCaseAttributeNames=(i=r.lowerCaseAttributeNames)!==null&&i!==void 0?i:!r.xmlMode,this.tokenizer=new((s=r.Tokenizer)!==null&&s!==void 0?s:Wc.default)(this.options,this),(u=(a=this.cbs).onparserinit)===null||u===void 0||u.call(a,this)}return e.prototype.ontext=function(t,r){var n,i,s=this.getSlice(t,r);this.endIndex=r-1,(i=(n=this.cbs).ontext)===null||i===void 0||i.call(n,s),this.startIndex=r},e.prototype.ontextentity=function(t){var r,n,i=this.tokenizer.getSectionStart();this.endIndex=i-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,(0,ay.fromCodePoint)(t)),this.startIndex=i},e.prototype.isVoidElement=function(t){return!this.options.xmlMode&&dM.has(t)},e.prototype.onopentagname=function(t,r){this.endIndex=r;var n=this.getSlice(t,r);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},e.prototype.emitOpenTag=function(t){var r,n,i,s;this.openTagStart=this.startIndex,this.tagname=t;var a=!this.options.xmlMode&&fM.get(t);if(a)for(;this.stack.length>0&&a.has(this.stack[this.stack.length-1]);){var u=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,u,!0)}this.isVoidElement(t)||(this.stack.push(t),ly.has(t)?this.foreignContext.push(!0):fy.has(t)&&this.foreignContext.push(!1)),(s=(i=this.cbs).onopentagname)===null||s===void 0||s.call(i,t),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(t){var r,n;this.startIndex=this.openTagStart,this.attribs&&((n=(r=this.cbs).onopentag)===null||n===void 0||n.call(r,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1},e.prototype.onclosetag=function(t,r){var n,i,s,a,u,o;this.endIndex=r;var c=this.getSlice(t,r);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),(ly.has(c)||fy.has(c))&&this.foreignContext.pop(),this.isVoidElement(c))!this.options.xmlMode&&c==="br"&&((i=(n=this.cbs).onopentagname)===null||i===void 0||i.call(n,"br"),(a=(s=this.cbs).onopentag)===null||a===void 0||a.call(s,"br",{},!0),(o=(u=this.cbs).onclosetag)===null||o===void 0||o.call(u,"br",!1));else{var d=this.stack.lastIndexOf(c);if(d!==-1)if(this.cbs.onclosetag)for(var h=this.stack.length-d;h--;)this.cbs.onclosetag(this.stack.pop(),h!==0);else this.stack.length=d;else!this.options.xmlMode&&c==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1},e.prototype.onselfclosingtag=function(t){this.endIndex=t,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)},e.prototype.closeCurrentTag=function(t){var r,n,i=this.tagname;this.endOpenTag(t),this.stack[this.stack.length-1]===i&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,i,!t),this.stack.pop())},e.prototype.onattribname=function(t,r){this.startIndex=t;var n=this.getSlice(t,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},e.prototype.onattribdata=function(t,r){this.attribvalue+=this.getSlice(t,r)},e.prototype.onattribentity=function(t){this.attribvalue+=(0,ay.fromCodePoint)(t)},e.prototype.onattribend=function(t,r){var n,i;this.endIndex=r,(i=(n=this.cbs).onattribute)===null||i===void 0||i.call(n,this.attribname,this.attribvalue,t===Wc.QuoteType.Double?'"':t===Wc.QuoteType.Single?"'":t===Wc.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(t){var r=t.search(hM),n=r<0?t:t.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(t,r){this.endIndex=r;var n=this.getSlice(t,r);if(this.cbs.onprocessinginstruction){var i=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(i),"!".concat(n))}this.startIndex=r+1},e.prototype.onprocessinginstruction=function(t,r){this.endIndex=r;var n=this.getSlice(t,r);if(this.cbs.onprocessinginstruction){var i=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(i),"?".concat(n))}this.startIndex=r+1},e.prototype.oncomment=function(t,r,n){var i,s,a,u;this.endIndex=r,(s=(i=this.cbs).oncomment)===null||s===void 0||s.call(i,this.getSlice(t,r-n)),(u=(a=this.cbs).oncommentend)===null||u===void 0||u.call(a),this.startIndex=r+1},e.prototype.oncdata=function(t,r,n){var i,s,a,u,o,c,d,h,f,p;this.endIndex=r;var A=this.getSlice(t,r-n);this.options.xmlMode||this.options.recognizeCDATA?((s=(i=this.cbs).oncdatastart)===null||s===void 0||s.call(i),(u=(a=this.cbs).ontext)===null||u===void 0||u.call(a,A),(c=(o=this.cbs).oncdataend)===null||c===void 0||c.call(o)):((h=(d=this.cbs).oncomment)===null||h===void 0||h.call(d,"[CDATA[".concat(A,"]]")),(p=(f=this.cbs).oncommentend)===null||p===void 0||p.call(f)),this.startIndex=r+1},e.prototype.onend=function(){var t,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(r=(t=this.cbs).onend)===null||r===void 0||r.call(t)},e.prototype.reset=function(){var t,r,n,i;(r=(t=this.cbs).onreset)===null||r===void 0||r.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(i=(n=this.cbs).onparserinit)===null||i===void 0||i.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(t){this.reset(),this.end(t)},e.prototype.getSlice=function(t,r){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(t-this.bufferOffset,r-this.bufferOffset);r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(t){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)},e.prototype.end=function(t){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".end() after done!"));return}t&&this.write(t),this.ended=!0,this.tokenizer.end()},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},e.prototype.parseChunk=function(t){this.write(t)},e.prototype.done=function(t){this.end(t)},e}();Vr.Parser=pM});var Ty=U(be=>{"use strict";var mM=be&&be.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),gM=be&&be.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),dy=be&&be.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&mM(t,e,r);return gM(t,e),t},_M=be&&be.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(be,"__esModule",{value:!0});be.DomUtils=be.parseFeed=be.getFeed=be.ElementType=be.Tokenizer=be.createDomStream=be.parseDOM=be.parseDocument=be.DefaultHandler=be.DomHandler=be.Parser=void 0;var hy=Rh(),TM=Rh();Object.defineProperty(be,"Parser",{enumerable:!0,get:function(){return TM.Parser}});var py=yt(),my=yt();Object.defineProperty(be,"DomHandler",{enumerable:!0,get:function(){return my.DomHandler}});Object.defineProperty(be,"DefaultHandler",{enumerable:!0,get:function(){return my.DomHandler}});function gy(e,t){var r=new py.DomHandler(void 0,t);return new hy.Parser(r,t).end(e),r.root}be.parseDocument=gy;function _y(e,t){return gy(e,t).children}be.parseDOM=_y;function bM(e,t,r){var n=new py.DomHandler(e,t,r);return new hy.Parser(n,t)}be.createDomStream=bM;var EM=wh();Object.defineProperty(be,"Tokenizer",{enumerable:!0,get:function(){return _M(EM).default}});be.ElementType=dy(ys());var AM=Ar(),yM=Ar();Object.defineProperty(be,"getFeed",{enumerable:!0,get:function(){return yM.getFeed}});var IM={xmlMode:!0};function vM(e,t){return t===void 0&&(t=IM),(0,AM.getFeed)(_y(e,t))}be.parseFeed=vM;be.DomUtils=dy(Ar())});var Ay=U(ye=>{"use strict";var by=ye&&ye.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),CM=ye&&ye.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),DM=ye&&ye.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&by(t,e,r)},SM=ye&&ye.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&by(t,e,r);return CM(t,e),t},xM=ye&&ye.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ye,"__esModule",{value:!0});ye.root=ye.parseHTML=ye.merge=ye.contains=ye.text=ye.xml=ye.html=ye.load=void 0;DM(wb(),ye);var OM=J1(),NM=hh(),Ey=iy(),wM=xM(xd()),RM=Ty(),PM=(0,NM.getParse)(function(e,t,r,n){return t.xmlMode||t._useHtmlParser2?(0,RM.parseDocument)(e,t):(0,Ey.parseWithParse5)(e,t,r,n)});ye.load=(0,OM.getLoad)(PM,function(e,t){return t.xmlMode||t._useHtmlParser2?(0,wM.default)(e,t):(0,Ey.renderWithParse5)(e)});ye.default=(0,ye.load)([]);var Ph=yi();Object.defineProperty(ye,"html",{enumerable:!0,get:function(){return Ph.html}});Object.defineProperty(ye,"xml",{enumerable:!0,get:function(){return Ph.xml}});Object.defineProperty(ye,"text",{enumerable:!0,get:function(){return Ph.text}});var Yc=SM(yi());ye.contains=Yc.contains;ye.merge=Yc.merge;ye.parseHTML=Yc.parseHTML;ye.root=Yc.root});var Iy=U((uU,yy)=>{"use strict";var LM=Ay();function MM(e){let t=LM.load(e),r=[];return[{tagName:"a",attr:"href"},{tagName:"area",attr:"href"},{tagName:"link",attr:"href"},{tagName:"audio",attr:"src"},{tagName:"embed",attr:"src"},{tagName:"iframe",attr:"src"},{tagName:"input",attr:"src"},{tagName:"img",attr:"src"},{tagName:"javascript",attr:"src"},{tagName:"source",attr:"src"},{tagName:"track",attr:"src"},{tagName:"video",attr:"src"}].forEach(({tagName:n,attr:i})=>{t(n).each((s,a)=>{t(a).attr(i)&&r.push(t(a).attr(i))})}),r}yy.exports=MM});var Dy=U((oU,Cy)=>{"use strict";var{marked:vy}=Ob(),kM=Iy();Cy.exports=function(t,r=!1){vy.setOptions({mangle:!1});let n=vy(t);return kM(n)}});var Ly={};zh(Ly,{default:()=>BM,getServer:()=>Py});function Py(e){let t=Zl(e),r=wy.createServer(async function(n,i){i.setHeader("Access-Control-Allow-Origin","*"),i.setHeader("Access-Control-Allow-Methods","GET, HEAD, POST, OPTIONS, PUT, PATCH, DELETE"),i.setHeader("Access-Control-Allow-Headers","Access-Control-Allow-Headers, Origin, Authorization,Accept,x-client-id, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers, hypothesis-client-version"),i.setHeader("Access-Control-Allow-Credentials","true");try{if(n.url){let s=Ry.parse(n.url,!0);if(s.pathname==="/search"){let a=s.query.q,u=await t.search(a);i.statusCode=200,i.setHeader("Content-Type","application/json"),i.end(JSON.stringify(u))}else i.end()}}catch(s){i.statusCode=500,i.end(s)}});return{listen(n){console.log(`Omnisearch - Starting HTTP server on port ${n}`),r.listen({port:parseInt(n),host:e.settings.DANGER_httpHost??"localhost"},()=>{console.log(`Omnisearch - Started HTTP server on port ${n}`),e.settings.DANGER_httpHost&&e.settings.DANGER_httpHost!=="localhost"?new vu.Notice(`Omnisearch - Started non-localhost HTTP server at ${e.settings.DANGER_httpHost}:${n}`,12e4):e.settings.httpApiNotice&&new vu.Notice(`Omnisearch - Started HTTP server on port ${n}`)}),r.on("error",i=>{console.error(i),new vu.Notice(`Omnisearch - Cannot start HTTP server on ${n}. See console for more details.`)})},close(){r.close(),console.log("Omnisearch - Terminated HTTP server"),e.settings.httpApiEnabled&&e.settings.httpApiNotice&&new vu.Notice("Omnisearch - Terminated HTTP server")}}}var wy,Ry,vu,BM,My=x(()=>{wy=Xe(require("http")),Ry=Xe(require("url")),vu=Xe(require("obsidian"));Jl();BM=Py});zh(exports,{default:()=>jh});var Ri=Xe(require("obsidian"));Aa();Wl();Or();Jl();var je=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Je=Object.keys,Et=Array.isArray;typeof Promise!="undefined"&&!je.Promise&&(je.Promise=Promise);function xt(e,t){return typeof t!="object"||Je(t).forEach(function(r){e[r]=t[r]}),e}var Ia=Object.getPrototypeOf,Ax={}.hasOwnProperty;function Wt(e,t){return Ax.call(e,t)}function os(e,t){typeof t=="function"&&(t=t(Ia(e))),(typeof Reflect=="undefined"?Je:Reflect.ownKeys)(t).forEach(r=>{Zr(e,r,t[r])})}var lT=Object.defineProperty;function Zr(e,t,r,n){lT(e,t,xt(r&&Wt(r,"get")&&typeof r.get=="function"?{get:r.get,set:r.set,configurable:!0}:{value:r,configurable:!0,writable:!0},n))}function cs(e){return{from:function(t){return e.prototype=Object.create(t.prototype),Zr(e.prototype,"constructor",e),{extend:os.bind(null,e.prototype)}}}}var yx=Object.getOwnPropertyDescriptor;function ef(e,t){let r=yx(e,t),n;return r||(n=Ia(e))&&ef(n,t)}var Ix=[].slice;function yo(e,t,r){return Ix.call(e,t,r)}function fT(e,t){return t(e)}function va(e){if(!e)throw new Error("Assertion Failed")}function dT(e){je.setImmediate?setImmediate(e):setTimeout(e,0)}function hT(e,t){return e.reduce((r,n,i)=>{var s=t(n,i);return s&&(r[s[0]]=s[1]),r},{})}function vx(e,t,r){try{e.apply(null,r)}catch(n){t&&t(n)}}function Jr(e,t){if(typeof t=="string"&&Wt(e,t))return e[t];if(!t)return e;if(typeof t!="string"){for(var r=[],n=0,i=t.length;n<i;++n){var s=Jr(e,t[n]);r.push(s)}return r}var a=t.indexOf(".");if(a!==-1){var u=e[t.substr(0,a)];return u==null?void 0:Jr(u,t.substr(a+1))}}function _r(e,t,r){if(!(!e||t===void 0)&&!("isFrozen"in Object&&Object.isFrozen(e)))if(typeof t!="string"&&"length"in t){va(typeof r!="string"&&"length"in r);for(var n=0,i=t.length;n<i;++n)_r(e,t[n],r[n])}else{var s=t.indexOf(".");if(s!==-1){var a=t.substr(0,s),u=t.substr(s+1);if(u==="")r===void 0?Et(e)&&!isNaN(parseInt(a))?e.splice(a,1):delete e[a]:e[a]=r;else{var o=e[a];(!o||!Wt(e,a))&&(o=e[a]={}),_r(o,u,r)}}else r===void 0?Et(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=r}}function Cx(e,t){typeof t=="string"?_r(e,t,void 0):"length"in t&&[].map.call(t,function(r){_r(e,r,void 0)})}function pT(e){var t={};for(var r in e)Wt(e,r)&&(t[r]=e[r]);return t}var Dx=[].concat;function mT(e){return Dx.apply([],e)}var gT="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(mT([8,16,32,64].map(e=>["Int","Uint","Float"].map(t=>t+e+"Array")))).filter(e=>je[e]),Sx=gT.map(e=>je[e]);hT(gT,e=>[e,!0]);var Pn=null;function Ca(e){Pn=typeof WeakMap!="undefined"&&new WeakMap;let t=tf(e);return Pn=null,t}function tf(e){if(!e||typeof e!="object")return e;let t=Pn&&Pn.get(e);if(t)return t;if(Et(e)){t=[],Pn&&Pn.set(e,t);for(var r=0,n=e.length;r<n;++r)t.push(tf(e[r]))}else if(Sx.indexOf(e.constructor)>=0)t=e;else{let s=Ia(e);t=s===Object.prototype?{}:Object.create(s),Pn&&Pn.set(e,t);for(var i in e)Wt(e,i)&&(t[i]=tf(e[i]))}return t}var{toString:xx}={};function rf(e){return xx.call(e).slice(8,-1)}var nf=typeof Symbol!="undefined"?Symbol.iterator:"@@iterator",Ox=typeof nf=="symbol"?function(e){var t;return e!=null&&(t=e[nf])&&t.apply(e)}:function(){return null},ls={};function en(e){var t,r,n,i;if(arguments.length===1){if(Et(e))return e.slice();if(this===ls&&typeof e=="string")return[e];if(i=Ox(e)){for(r=[];n=i.next(),!n.done;)r.push(n.value);return r}if(e==null)return[e];if(t=e.length,typeof t=="number"){for(r=new Array(t);t--;)r[t]=e[t];return r}return[e]}for(t=arguments.length,r=new Array(t);t--;)r[t]=arguments[t];return r}var sf=typeof Symbol!="undefined"?e=>e[Symbol.toStringTag]==="AsyncFunction":()=>!1,Nr=typeof location!="undefined"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function _T(e,t){Nr=e,TT=t}var TT=()=>!0,Nx=!new Error("").stack;function oi(){if(Nx)try{throw oi.arguments,new Error}catch(e){return e}return new Error}function af(e,t){var r=e.stack;return r?(t=t||0,r.indexOf(e.name)===0&&(t+=(e.name+e.message).split(`
|
||
`).length),r.split(`
|
||
`).slice(t).filter(TT).map(n=>`
|
||
`+n).join("")):""}var wx=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"],bT=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],uf=wx.concat(bT),Rx={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function fs(e,t){this._e=oi(),this.name=e,this.message=t}cs(fs).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+af(this._e,2))}},toString:function(){return this.name+": "+this.message}});function ET(e,t){return e+". Errors: "+Object.keys(t).map(r=>t[r].toString()).filter((r,n,i)=>i.indexOf(r)===n).join(`
|
||
`)}function Io(e,t,r,n){this._e=oi(),this.failures=t,this.failedKeys=n,this.successCount=r,this.message=ET(e,t)}cs(Io).from(fs);function Da(e,t){this._e=oi(),this.name="BulkError",this.failures=Object.keys(t).map(r=>t[r]),this.failuresByPos=t,this.message=ET(e,t)}cs(Da).from(fs);var of=uf.reduce((e,t)=>(e[t]=t+"Error",e),{}),Px=fs,ie=uf.reduce((e,t)=>{var r=t+"Error";function n(i,s){this._e=oi(),this.name=r,i?typeof i=="string"?(this.message=`${i}${s?`
|
||
`+s:""}`,this.inner=s||null):typeof i=="object"&&(this.message=`${i.name} ${i.message}`,this.inner=i):(this.message=Rx[t]||r,this.inner=null)}return cs(n).from(Px),e[t]=n,e},{});ie.Syntax=SyntaxError;ie.Type=TypeError;ie.Range=RangeError;var AT=bT.reduce((e,t)=>(e[t+"Error"]=ie[t],e),{});function Lx(e,t){if(!e||e instanceof fs||e instanceof TypeError||e instanceof SyntaxError||!e.name||!AT[e.name])return e;var r=new AT[e.name](t||e.message,e);return"stack"in e&&Zr(r,"stack",{get:function(){return this.inner.stack}}),r}var vo=uf.reduce((e,t)=>(["Syntax","Type","Range"].indexOf(t)===-1&&(e[t+"Error"]=ie[t]),e),{});vo.ModifyError=Io;vo.DexieError=fs;vo.BulkError=Da;function Ne(){}function Sa(e){return e}function Mx(e,t){return e==null||e===Sa?t:function(r){return t(e(r))}}function ci(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function kx(e,t){return e===Ne?t:function(){var r=e.apply(this,arguments);r!==void 0&&(arguments[0]=r);var n=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var s=t.apply(this,arguments);return n&&(this.onsuccess=this.onsuccess?ci(n,this.onsuccess):n),i&&(this.onerror=this.onerror?ci(i,this.onerror):i),s!==void 0?s:r}}function Fx(e,t){return e===Ne?t:function(){e.apply(this,arguments);var r=this.onsuccess,n=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),r&&(this.onsuccess=this.onsuccess?ci(r,this.onsuccess):r),n&&(this.onerror=this.onerror?ci(n,this.onerror):n)}}function Bx(e,t){return e===Ne?t:function(r){var n=e.apply(this,arguments);xt(r,n);var i=this.onsuccess,s=this.onerror;this.onsuccess=null,this.onerror=null;var a=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?ci(i,this.onsuccess):i),s&&(this.onerror=this.onerror?ci(s,this.onerror):s),n===void 0?a===void 0?void 0:a:xt(n,a)}}function jx(e,t){return e===Ne?t:function(){return t.apply(this,arguments)===!1?!1:e.apply(this,arguments)}}function cf(e,t){return e===Ne?t:function(){var r=e.apply(this,arguments);if(r&&typeof r.then=="function"){for(var n=this,i=arguments.length,s=new Array(i);i--;)s[i]=arguments[i];return r.then(function(){return t.apply(n,s)})}return t.apply(this,arguments)}}var xa={},Hx=100,Ux=20,yT=100,[lf,Co,ff]=typeof Promise=="undefined"?[]:(()=>{let e=Promise.resolve();if(typeof crypto=="undefined"||!crypto.subtle)return[e,Ia(e),e];let t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,Ia(t),e]})(),IT=Co&&Co.then,Do=lf&&lf.constructor,df=!!ff,hf=!1,Gx=ff?()=>{ff.then(No)}:je.setImmediate?setImmediate.bind(null,No):je.MutationObserver?()=>{var e=document.createElement("div");new MutationObserver(()=>{No(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:()=>{setTimeout(No,0)},Oa=function(e,t){Na.push([e,t]),So&&(Gx(),So=!1)},pf=!0,So=!0,li=[],xo=[],mf=null,gf=Sa,ds={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:PT,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(e=>{try{PT(e[0],e[1])}catch{}})}},ne=ds,Na=[],fi=0,Oo=[];function Y(e){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=Ne,this._lib=!1;var t=this._PSD=ne;if(Nr&&(this._stackHolder=oi(),this._prev=null,this._numPrev=0),typeof e!="function"){if(e!==xa)throw new TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],this._state===!1&&Tf(this,this._value);return}this._state=null,this._value=null,++t.ref,CT(this,e)}var _f={get:function(){var e=ne,t=Po;function r(n,i){var s=!e.global&&(e!==ne||t!==Po);let a=s&&!tn();var u=new Y((o,c)=>{bf(this,new vT(Mo(n,e,s,a),Mo(i,e,s,a),o,c,e))});return Nr&&xT(u,this),u}return r.prototype=xa,r},set:function(e){Zr(this,"then",e&&e.prototype===xa?_f:{get:function(){return e},set:_f.set})}};os(Y.prototype,{then:_f,_then:function(e,t){bf(this,new vT(null,null,e,t,ne))},catch:function(e){if(arguments.length===1)return this.then(null,e);var t=arguments[0],r=arguments[1];return typeof t=="function"?this.then(null,n=>n instanceof t?r(n):wo(n)):this.then(null,n=>n&&n.name===t?r(n):wo(n))},finally:function(e){return this.then(t=>(e(),t),t=>(e(),wo(t)))},stack:{get:function(){if(this._stack)return this._stack;try{hf=!0;var e=ST(this,[],Ux),t=e.join(`
|
||
From previous: `);return this._state!==null&&(this._stack=t),t}finally{hf=!1}}},timeout:function(e,t){return e<1/0?new Y((r,n)=>{var i=setTimeout(()=>n(new ie.Timeout(t)),e);this.then(r,n).finally(clearTimeout.bind(null,i))}):this}});typeof Symbol!="undefined"&&Symbol.toStringTag&&Zr(Y.prototype,Symbol.toStringTag,"Dexie.Promise");ds.env=OT();function vT(e,t,r,n,i){this.onFulfilled=typeof e=="function"?e:null,this.onRejected=typeof t=="function"?t:null,this.resolve=r,this.reject=n,this.psd=i}os(Y,{all:function(){var e=en.apply(null,arguments).map(Lo);return new Y(function(t,r){e.length===0&&t([]);var n=e.length;e.forEach((i,s)=>Y.resolve(i).then(a=>{e[s]=a,--n||t(e)},r))})},resolve:e=>{if(e instanceof Y)return e;if(e&&typeof e.then=="function")return new Y((r,n)=>{e.then(r,n)});var t=new Y(xa,!0,e);return xT(t,mf),t},reject:wo,race:function(){var e=en.apply(null,arguments).map(Lo);return new Y((t,r)=>{e.map(n=>Y.resolve(n).then(t,r))})},PSD:{get:()=>ne,set:e=>ne=e},totalEchoes:{get:()=>Po},newPSD:Ln,usePSD:ps,scheduler:{get:()=>Oa,set:e=>{Oa=e}},rejectionMapper:{get:()=>gf,set:e=>{gf=e}},follow:(e,t)=>new Y((r,n)=>Ln((i,s)=>{var a=ne;a.unhandleds=[],a.onunhandled=s,a.finalize=ci(function(){zx(()=>{this.unhandleds.length===0?i():s(this.unhandleds[0])})},a.finalize),e()},t,r,n))});Do&&(Do.allSettled&&Zr(Y,"allSettled",function(){let e=en.apply(null,arguments).map(Lo);return new Y(t=>{e.length===0&&t([]);let r=e.length,n=new Array(r);e.forEach((i,s)=>Y.resolve(i).then(a=>n[s]={status:"fulfilled",value:a},a=>n[s]={status:"rejected",reason:a}).then(()=>--r||t(n)))})}),Do.any&&typeof AggregateError!="undefined"&&Zr(Y,"any",function(){let e=en.apply(null,arguments).map(Lo);return new Y((t,r)=>{e.length===0&&r(new AggregateError([]));let n=e.length,i=new Array(n);e.forEach((s,a)=>Y.resolve(s).then(u=>t(u),u=>{i[a]=u,--n||r(new AggregateError(i))}))})}));function CT(e,t){try{t(r=>{if(e._state===null){if(r===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&&wa();r&&typeof r.then=="function"?CT(e,(i,s)=>{r instanceof Y?r._then(i,s):r.then(i,s)}):(e._state=!0,e._value=r,DT(e)),n&&Ra()}},Tf.bind(null,e))}catch(r){Tf(e,r)}}function Tf(e,t){if(xo.push(t),e._state===null){var r=e._lib&&wa();t=gf(t),e._state=!1,e._value=t,Nr&&t!==null&&typeof t=="object"&&!t._promise&&vx(()=>{var n=ef(t,"stack");t._promise=e,Zr(t,"stack",{get:()=>hf?n&&(n.get?n.get.apply(t):n.value):e.stack})}),Vx(e),DT(e),r&&Ra()}}function DT(e){var t=e._listeners;e._listeners=[];for(var r=0,n=t.length;r<n;++r)bf(e,t[r]);var i=e._PSD;--i.ref||i.finalize(),fi===0&&(++fi,Oa(()=>{--fi==0&&Ef()},[]))}function bf(e,t){if(e._state===null){e._listeners.push(t);return}var r=e._state?t.onFulfilled:t.onRejected;if(r===null)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++fi,Oa(qx,[r,e,t])}function qx(e,t,r){try{mf=t;var n,i=t._value;t._state?n=e(i):(xo.length&&(xo=[]),n=e(i),xo.indexOf(i)===-1&&Kx(t)),r.resolve(n)}catch(s){r.reject(s)}finally{mf=null,--fi==0&&Ef(),--r.psd.ref||r.psd.finalize()}}function ST(e,t,r){if(t.length===r)return t;var n="";if(e._state===!1){var i=e._value,s,a;i!=null?(s=i.name||"Error",a=i.message||i,n=af(i,0)):(s=i,a=""),t.push(s+(a?": "+a:"")+n)}return Nr&&(n=af(e._stackHolder,2),n&&t.indexOf(n)===-1&&t.push(n),e._prev&&ST(e._prev,t,r)),t}function xT(e,t){var r=t?t._numPrev+1:0;r<Hx&&(e._prev=t,e._numPrev=r)}function No(){wa()&&Ra()}function wa(){var e=pf;return pf=!1,So=!1,e}function Ra(){var e,t,r;do for(;Na.length>0;)for(e=Na,Na=[],r=e.length,t=0;t<r;++t){var n=e[t];n[0].apply(null,n[1])}while(Na.length>0);pf=!0,So=!0}function Ef(){var e=li;li=[],e.forEach(n=>{n._PSD.onunhandled.call(null,n._value,n)});for(var t=Oo.slice(0),r=t.length;r;)t[--r]()}function zx(e){function t(){e(),Oo.splice(Oo.indexOf(t),1)}Oo.push(t),++fi,Oa(()=>{--fi==0&&Ef()},[])}function Vx(e){li.some(t=>t._value===e._value)||li.push(e)}function Kx(e){for(var t=li.length;t;)if(li[--t]._value===e._value){li.splice(t,1);return}}function wo(e){return new Y(xa,!1,e)}function ze(e,t){var r=ne;return function(){var n=wa(),i=ne;try{return Mn(r,!0),e.apply(this,arguments)}catch(s){t&&t(s)}finally{Mn(i,!1),n&&Ra()}}}var At={awaits:0,echoes:0,id:0},Wx=0,Ro=[],Af=0,Po=0,Yx=0;function Ln(e,t,r,n){var i=ne,s=Object.create(i);s.parent=i,s.ref=0,s.global=!1,s.id=++Yx;var a=ds.env;s.env=df?{Promise:Y,PromiseProp:{value:Y,configurable:!0,writable:!0},all:Y.all,race:Y.race,allSettled:Y.allSettled,any:Y.any,resolve:Y.resolve,reject:Y.reject,nthen:wT(a.nthen,s),gthen:wT(a.gthen,s)}:{},t&&xt(s,t),++i.ref,s.finalize=function(){--this.parent.ref||this.parent.finalize()};var u=ps(s,e,r,n);return s.ref===0&&s.finalize(),u}function hs(){return At.id||(At.id=++Wx),++At.awaits,At.echoes+=yT,At.id}function tn(){return At.awaits?(--At.awaits==0&&(At.id=0),At.echoes=At.awaits*yT,!0):!1}(""+IT).indexOf("[native code]")===-1&&(hs=tn=Ne);function Lo(e){return At.echoes&&e&&e.constructor===Do?(hs(),e.then(t=>(tn(),t),t=>(tn(),rt(t)))):e}function Qx(e){++Po,(!At.echoes||--At.echoes==0)&&(At.echoes=At.id=0),Ro.push(ne),Mn(e,!0)}function $x(){var e=Ro[Ro.length-1];Ro.pop(),Mn(e,!1)}function Mn(e,t){var r=ne;if((t?At.echoes&&(!Af++||e!==ne):Af&&(!--Af||e!==ne))&&NT(t?Qx.bind(null,e):$x),e!==ne&&(ne=e,r===ds&&(ds.env=OT()),df)){var n=ds.env.Promise,i=e.env;Co.then=i.nthen,n.prototype.then=i.gthen,(r.global||e.global)&&(Object.defineProperty(je,"Promise",i.PromiseProp),n.all=i.all,n.race=i.race,n.resolve=i.resolve,n.reject=i.reject,i.allSettled&&(n.allSettled=i.allSettled),i.any&&(n.any=i.any))}}function OT(){var e=je.Promise;return df?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(je,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:Co.then,gthen:e.prototype.then}:{}}function ps(e,t,r,n,i){var s=ne;try{return Mn(e,!0),t(r,n,i)}finally{Mn(s,!1)}}function NT(e){IT.call(lf,e)}function Mo(e,t,r,n){return typeof e!="function"?e:function(){var i=ne;r&&hs(),Mn(t,!0);try{return e.apply(this,arguments)}finally{Mn(i,!1),n&&NT(tn)}}}function wT(e,t){return function(r,n){return e.call(this,Mo(r,t),Mo(n,t))}}var RT="unhandledrejection";function PT(e,t){var r;try{r=t.onuncatched(e)}catch{}if(r!==!1)try{var n,i={promise:t,reason:e};if(je.document&&document.createEvent?(n=document.createEvent("Event"),n.initEvent(RT,!0,!0),xt(n,i)):je.CustomEvent&&(n=new CustomEvent(RT,{detail:i}),xt(n,i)),n&&je.dispatchEvent&&(dispatchEvent(n),!je.PromiseRejectionEvent&&je.onunhandledrejection))try{je.onunhandledrejection(n)}catch{}Nr&&n&&!n.defaultPrevented&&console.warn(`Unhandled rejection: ${e.stack||e}`)}catch{}}var rt=Y.reject;function yf(e,t,r,n){if(!e.idbdb||!e._state.openComplete&&!ne.letThrough&&!e._vip){if(e._state.openComplete)return rt(new ie.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return rt(new ie.DatabaseClosed);e.open().catch(Ne)}return e._state.dbReadyPromise.then(()=>yf(e,t,r,n))}else{var i=e._createTransaction(t,r,e._dbSchema);try{i.create(),e._state.PR1398_maxLoop=3}catch(s){return s.name===of.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(()=>yf(e,t,r,n))):rt(s)}return i._promise(t,(s,a)=>Ln(()=>(ne.trans=i,n(s,a,i)))).then(s=>i._completion.then(()=>s))}}var LT="3.2.7",di=String.fromCharCode(65535),If=-1/0,rn="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",MT="String expected.",Pa=[],ko=typeof navigator!="undefined"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),Xx=ko,Zx=ko,kT=e=>!/(dexie\.js|dexie\.min\.js)/.test(e),Fo="__dbnames",vf="readonly",Cf="readwrite";function hi(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var FT={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Bo(e){return typeof e=="string"&&!/\./.test(e)?t=>(t[e]===void 0&&e in t&&(t=Ca(t),delete t[e]),t):t=>t}var BT=class{_trans(t,r,n){let i=this._tx||ne.trans,s=this.name;function a(o,c,d){if(!d.schema[s])throw new ie.NotFound("Table "+s+" not part of transaction");return r(d.idbtrans,d)}let u=wa();try{return i&&i.db===this.db?i===ne.trans?i._promise(t,a,n):Ln(()=>i._promise(t,a,n),{trans:i,transless:ne.transless||ne}):yf(this.db,t,[this.name],a)}finally{u&&Ra()}}get(t,r){return t&&t.constructor===Object?this.where(t).first(r):this._trans("readonly",n=>this.core.get({trans:n,key:t}).then(i=>this.hook.reading.fire(i))).then(r)}where(t){if(typeof t=="string")return new this.db.WhereClause(this,t);if(Et(t))return new this.db.WhereClause(this,`[${t.join("+")}]`);let r=Je(t);if(r.length===1)return this.where(r[0]).equals(t[r[0]]);let n=this.schema.indexes.concat(this.schema.primKey).filter(c=>{if(c.compound&&r.every(d=>c.keyPath.indexOf(d)>=0)){for(let d=0;d<r.length;++d)if(r.indexOf(c.keyPath[d])===-1)return!1;return!0}return!1}).sort((c,d)=>c.keyPath.length-d.keyPath.length)[0];if(n&&this.db._maxKey!==di){let c=n.keyPath.slice(0,r.length);return this.where(c).equals(c.map(d=>t[d]))}!n&&Nr&&console.warn(`The query ${JSON.stringify(t)} on ${this.name} would benefit of a compound index [${r.join("+")}]`);let{idxByName:i}=this.schema,s=this.db._deps.indexedDB;function a(c,d){try{return s.cmp(c,d)===0}catch{return!1}}let[u,o]=r.reduce(([c,d],h)=>{let f=i[h],p=t[h];return[c||f,c||!f?hi(d,f&&f.multi?A=>{let b=Jr(A,h);return Et(b)&&b.some(D=>a(p,D))}:A=>a(p,Jr(A,h))):d]},[null,null]);return u?this.where(u.name).equals(t[u.keyPath]).filter(o):n?this.filter(o):this.where(r).equals("")}filter(t){return this.toCollection().and(t)}count(t){return this.toCollection().count(t)}offset(t){return this.toCollection().offset(t)}limit(t){return this.toCollection().limit(t)}each(t){return this.toCollection().each(t)}toArray(t){return this.toCollection().toArray(t)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(t){return new this.db.Collection(new this.db.WhereClause(this,Et(t)?`[${t.join("+")}]`:t))}reverse(){return this.toCollection().reverse()}mapToClass(t){this.schema.mappedClass=t;let r=n=>{if(!n)return n;let i=Object.create(t.prototype);for(var s in n)if(Wt(n,s))try{i[s]=n[s]}catch{}return i};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=r,this.hook("reading",r),t}defineClass(){function t(r){xt(this,r)}return this.mapToClass(t)}add(t,r){let{auto:n,keyPath:i}=this.schema.primKey,s=t;return i&&n&&(s=Bo(i)(t)),this._trans("readwrite",a=>this.core.mutate({trans:a,type:"add",keys:r!=null?[r]:null,values:[s]})).then(a=>a.numFailures?Y.reject(a.failures[0]):a.lastResult).then(a=>{if(i)try{_r(t,i,a)}catch{}return a})}update(t,r){if(typeof t=="object"&&!Et(t)){let n=Jr(t,this.schema.primKey.keyPath);if(n===void 0)return rt(new ie.InvalidArgument("Given object does not contain its primary key"));try{typeof r!="function"?Je(r).forEach(i=>{_r(t,i,r[i])}):r(t,{value:t,primKey:n})}catch{}return this.where(":id").equals(n).modify(r)}else return this.where(":id").equals(t).modify(r)}put(t,r){let{auto:n,keyPath:i}=this.schema.primKey,s=t;return i&&n&&(s=Bo(i)(t)),this._trans("readwrite",a=>this.core.mutate({trans:a,type:"put",values:[s],keys:r!=null?[r]:null})).then(a=>a.numFailures?Y.reject(a.failures[0]):a.lastResult).then(a=>{if(i)try{_r(t,i,a)}catch{}return a})}delete(t){return this._trans("readwrite",r=>this.core.mutate({trans:r,type:"delete",keys:[t]})).then(r=>r.numFailures?Y.reject(r.failures[0]):void 0)}clear(){return this._trans("readwrite",t=>this.core.mutate({trans:t,type:"deleteRange",range:FT})).then(t=>t.numFailures?Y.reject(t.failures[0]):void 0)}bulkGet(t){return this._trans("readonly",r=>this.core.getMany({keys:t,trans:r}).then(n=>n.map(i=>this.hook.reading.fire(i))))}bulkAdd(t,r,n){let i=Array.isArray(r)?r:void 0;n=n||(i?void 0:r);let s=n?n.allKeys:void 0;return this._trans("readwrite",a=>{let{auto:u,keyPath:o}=this.schema.primKey;if(o&&i)throw new ie.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(i&&i.length!==t.length)throw new ie.InvalidArgument("Arguments objects and keys must have the same length");let c=t.length,d=o&&u?t.map(Bo(o)):t;return this.core.mutate({trans:a,type:"add",keys:i,values:d,wantResults:s}).then(({numFailures:h,results:f,lastResult:p,failures:A})=>{let b=s?f:p;if(h===0)return b;throw new Da(`${this.name}.bulkAdd(): ${h} of ${c} operations failed`,A)})})}bulkPut(t,r,n){let i=Array.isArray(r)?r:void 0;n=n||(i?void 0:r);let s=n?n.allKeys:void 0;return this._trans("readwrite",a=>{let{auto:u,keyPath:o}=this.schema.primKey;if(o&&i)throw new ie.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(i&&i.length!==t.length)throw new ie.InvalidArgument("Arguments objects and keys must have the same length");let c=t.length,d=o&&u?t.map(Bo(o)):t;return this.core.mutate({trans:a,type:"put",keys:i,values:d,wantResults:s}).then(({numFailures:h,results:f,lastResult:p,failures:A})=>{let b=s?f:p;if(h===0)return b;throw new Da(`${this.name}.bulkPut(): ${h} of ${c} operations failed`,A)})})}bulkDelete(t){let r=t.length;return this._trans("readwrite",n=>this.core.mutate({trans:n,type:"delete",keys:t})).then(({numFailures:n,lastResult:i,failures:s})=>{if(n===0)return i;throw new Da(`${this.name}.bulkDelete(): ${n} of ${r} operations failed`,s)})}};function La(e){var t={},r=function(u,o){if(o){for(var c=arguments.length,d=new Array(c-1);--c;)d[c-1]=arguments[c];return t[u].subscribe.apply(null,d),e}else if(typeof u=="string")return t[u]};r.addEventType=s;for(var n=1,i=arguments.length;n<i;++n)s(arguments[n]);return r;function s(u,o,c){if(typeof u=="object")return a(u);o||(o=jx),c||(c=Ne);var d={subscribers:[],fire:c,subscribe:function(h){d.subscribers.indexOf(h)===-1&&(d.subscribers.push(h),d.fire=o(d.fire,h))},unsubscribe:function(h){d.subscribers=d.subscribers.filter(function(f){return f!==h}),d.fire=d.subscribers.reduce(o,c)}};return t[u]=r[u]=d,d}function a(u){Je(u).forEach(function(o){var c=u[o];if(Et(c))s(o,u[o][0],u[o][1]);else if(c==="asap")var d=s(o,Sa,function(){for(var f=arguments.length,p=new Array(f);f--;)p[f]=arguments[f];d.subscribers.forEach(function(A){dT(function(){A.apply(null,p)})})});else throw new ie.InvalidArgument("Invalid event config")})}}function Ma(e,t){return cs(t).from({prototype:e}),t}function Jx(e){return Ma(BT.prototype,function(r,n,i){this.db=e,this._tx=i,this.name=r,this.schema=n,this.hook=e._allTables[r]?e._allTables[r].hook:La(null,{creating:[kx,Ne],reading:[Mx,Sa],updating:[Bx,Ne],deleting:[Fx,Ne]})})}function ms(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function Df(e,t){e.filter=hi(e.filter,t)}function Sf(e,t,r){var n=e.replayFilter;e.replayFilter=n?()=>hi(n(),t()):t,e.justLimit=r&&!n}function eO(e,t){e.isMatch=hi(e.isMatch,t)}function jo(e,t){if(e.isPrimKey)return t.primaryKey;let r=t.getIndexByKeyPath(e.index);if(!r)throw new ie.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return r}function jT(e,t,r){let n=jo(e,t.schema);return t.openCursor({trans:r,values:!e.keysOnly,reverse:e.dir==="prev",unique:!!e.unique,query:{index:n,range:e.range}})}function Ho(e,t,r,n){let i=e.replayFilter?hi(e.filter,e.replayFilter()):e.filter;if(e.or){let s={},a=(u,o,c)=>{if(!i||i(o,c,f=>o.stop(f),f=>o.fail(f))){var d=o.primaryKey,h=""+d;h==="[object ArrayBuffer]"&&(h=""+new Uint8Array(d)),Wt(s,h)||(s[h]=!0,t(u,o,c))}};return Promise.all([e.or._iterate(a,r),HT(jT(e,n,r),e.algorithm,a,!e.keysOnly&&e.valueMapper)])}else return HT(jT(e,n,r),hi(e.algorithm,i),t,!e.keysOnly&&e.valueMapper)}function HT(e,t,r,n){var i=n?(a,u,o)=>r(n(a),u,o):r,s=ze(i);return e.then(a=>{if(a)return a.start(()=>{var u=()=>a.continue();(!t||t(a,o=>u=o,o=>{a.stop(o),u=Ne},o=>{a.fail(o),u=Ne}))&&s(a.value,a,o=>u=o),u()})})}function Ot(e,t){try{let r=UT(e),n=UT(t);if(r!==n)return r==="Array"?1:n==="Array"?-1:r==="binary"?1:n==="binary"?-1:r==="string"?1:n==="string"?-1:r==="Date"?1:n!=="Date"?NaN:-1;switch(r){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return rO(GT(e),GT(t));case"Array":return tO(e,t)}}catch{}return NaN}function tO(e,t){let r=e.length,n=t.length,i=r<n?r:n;for(let s=0;s<i;++s){let a=Ot(e[s],t[s]);if(a!==0)return a}return r===n?0:r<n?-1:1}function rO(e,t){let r=e.length,n=t.length,i=r<n?r:n;for(let s=0;s<i;++s)if(e[s]!==t[s])return e[s]<t[s]?-1:1;return r===n?0:r<n?-1:1}function UT(e){let t=typeof e;if(t!=="object")return t;if(ArrayBuffer.isView(e))return"binary";let r=rf(e);return r==="ArrayBuffer"?"binary":r}function GT(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}var qT=class{_read(t,r){var n=this._ctx;return n.error?n.table._trans(null,rt.bind(null,n.error)):n.table._trans("readonly",t).then(r)}_write(t){var r=this._ctx;return r.error?r.table._trans(null,rt.bind(null,r.error)):r.table._trans("readwrite",t,"locked")}_addAlgorithm(t){var r=this._ctx;r.algorithm=hi(r.algorithm,t)}_iterate(t,r){return Ho(this._ctx,t,r,this._ctx.table.core)}clone(t){var r=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return t&&xt(n,t),r._ctx=n,r}raw(){return this._ctx.valueMapper=null,this}each(t){var r=this._ctx;return this._read(n=>Ho(r,t,n,r.table.core))}count(t){return this._read(r=>{let n=this._ctx,i=n.table.core;if(ms(n,!0))return i.count({trans:r,query:{index:jo(n,i.schema),range:n.range}}).then(a=>Math.min(a,n.limit));var s=0;return Ho(n,()=>(++s,!1),r,i).then(()=>s)}).then(t)}sortBy(t,r){let n=t.split(".").reverse(),i=n[0],s=n.length-1;function a(c,d){return d?a(c[n[d]],d-1):c[i]}var u=this._ctx.dir==="next"?1:-1;function o(c,d){var h=a(c,s),f=a(d,s);return h<f?-u:h>f?u:0}return this.toArray(function(c){return c.sort(o)}).then(r)}toArray(t){return this._read(r=>{var n=this._ctx;if(n.dir==="next"&&ms(n,!0)&&n.limit>0){let{valueMapper:i}=n,s=jo(n,n.table.core.schema);return n.table.core.query({trans:r,limit:n.limit,values:!0,query:{index:s,range:n.range}}).then(({result:a})=>i?a.map(i):a)}else{let i=[];return Ho(n,s=>i.push(s),r,n.table.core).then(()=>i)}},t)}offset(t){var r=this._ctx;return t<=0?this:(r.offset+=t,ms(r)?Sf(r,()=>{var n=t;return(i,s)=>n===0?!0:n===1?(--n,!1):(s(()=>{i.advance(n),n=0}),!1)}):Sf(r,()=>{var n=t;return()=>--n<0}),this)}limit(t){return this._ctx.limit=Math.min(this._ctx.limit,t),Sf(this._ctx,()=>{var r=t;return function(n,i,s){return--r<=0&&i(s),r>=0}},!0),this}until(t,r){return Df(this._ctx,function(n,i,s){return t(n.value)?(i(s),r):!0}),this}first(t){return this.limit(1).toArray(function(r){return r[0]}).then(t)}last(t){return this.reverse().first(t)}filter(t){return Df(this._ctx,function(r){return t(r.value)}),eO(this._ctx,t),this}and(t){return this.filter(t)}or(t){return new this.db.WhereClause(this._ctx.table,t,this)}reverse(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(t){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(n,i){t(i.key,i)})}eachUniqueKey(t){return this._ctx.unique="unique",this.eachKey(t)}eachPrimaryKey(t){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(n,i){t(i.primaryKey,i)})}keys(t){var r=this._ctx;r.keysOnly=!r.isMatch;var n=[];return this.each(function(i,s){n.push(s.key)}).then(function(){return n}).then(t)}primaryKeys(t){var r=this._ctx;if(r.dir==="next"&&ms(r,!0)&&r.limit>0)return this._read(i=>{var s=jo(r,r.table.core.schema);return r.table.core.query({trans:i,values:!1,limit:r.limit,query:{index:s,range:r.range}})}).then(({result:i})=>i).then(t);r.keysOnly=!r.isMatch;var n=[];return this.each(function(i,s){n.push(s.primaryKey)}).then(function(){return n}).then(t)}uniqueKeys(t){return this._ctx.unique="unique",this.keys(t)}firstKey(t){return this.limit(1).keys(function(r){return r[0]}).then(t)}lastKey(t){return this.reverse().firstKey(t)}distinct(){var t=this._ctx,r=t.index&&t.table.schema.idxByName[t.index];if(!r||!r.multi)return this;var n={};return Df(this._ctx,function(i){var s=i.primaryKey.toString(),a=Wt(n,s);return n[s]=!0,!a}),this}modify(t){var r=this._ctx;return this._write(n=>{var i;if(typeof t=="function")i=t;else{var s=Je(t),a=s.length;i=function(b){for(var D=!1,g=0;g<a;++g){var v=s[g],I=t[v];Jr(b,v)!==I&&(_r(b,v,I),D=!0)}return D}}let u=r.table.core,{outbound:o,extractKey:c}=u.schema.primaryKey,d=this.db._options.modifyChunkSize||200,h=[],f=0,p=[],A=(b,D)=>{let{failures:g,numFailures:v}=D;f+=b-v;for(let I of Je(g))h.push(g[I])};return this.clone().primaryKeys().then(b=>{let D=g=>{let v=Math.min(d,b.length-g);return u.getMany({trans:n,keys:b.slice(g,g+v),cache:"immutable"}).then(I=>{let T=[],E=[],C=o?[]:null,S=[];for(let P=0;P<v;++P){let q=I[P],$={value:Ca(q),primKey:b[g+P]};i.call($,$.value,$)!==!1&&($.value==null?S.push(b[g+P]):!o&&Ot(c(q),c($.value))!==0?(S.push(b[g+P]),T.push($.value)):(E.push($.value),o&&C.push(b[g+P])))}let N=ms(r)&&r.limit===1/0&&(typeof t!="function"||t===xf)&&{index:r.index,range:r.range};return Promise.resolve(T.length>0&&u.mutate({trans:n,type:"add",values:T}).then(P=>{for(let q in P.failures)S.splice(parseInt(q),1);A(T.length,P)})).then(()=>(E.length>0||N&&typeof t=="object")&&u.mutate({trans:n,type:"put",keys:C,values:E,criteria:N,changeSpec:typeof t!="function"&&t}).then(P=>A(E.length,P))).then(()=>(S.length>0||N&&t===xf)&&u.mutate({trans:n,type:"delete",keys:S,criteria:N}).then(P=>A(S.length,P))).then(()=>b.length>g+v&&D(g+d))})};return D(0).then(()=>{if(h.length>0)throw new Io("Error modifying one or more objects",h,f,p);return b.length})})})}delete(){var t=this._ctx,r=t.range;return ms(t)&&(t.isPrimKey&&!Zx||r.type===3)?this._write(n=>{let{primaryKey:i}=t.table.core.schema,s=r;return t.table.core.count({trans:n,query:{index:i,range:s}}).then(a=>t.table.core.mutate({trans:n,type:"deleteRange",range:s}).then(({failures:u,lastResult:o,results:c,numFailures:d})=>{if(d)throw new Io("Could not delete some values",Object.keys(u).map(h=>u[h]),a-d);return a-d}))}):this.modify(xf)}},xf=(e,t)=>t.value=null;function nO(e){return Ma(qT.prototype,function(r,n){this.db=e;let i=FT,s=null;if(n)try{i=n()}catch(c){s=c}let a=r._ctx,u=a.table,o=u.hook.reading.fire;this._ctx={table:u,index:a.index,isPrimKey:!a.index||u.schema.primKey.keyPath&&a.index===u.schema.primKey.name,range:i,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:s,or:a.or,valueMapper:o!==Sa?o:null}})}function iO(e,t){return e<t?-1:e===t?0:1}function sO(e,t){return e>t?-1:e===t?0:1}function Yt(e,t,r){var n=e instanceof Of?new e.Collection(e):e;return n._ctx.error=r?new r(t):new TypeError(t),n}function gs(e){return new e.Collection(e,()=>zT("")).limit(0)}function aO(e){return e==="next"?t=>t.toUpperCase():t=>t.toLowerCase()}function uO(e){return e==="next"?t=>t.toLowerCase():t=>t.toUpperCase()}function oO(e,t,r,n,i,s){for(var a=Math.min(e.length,n.length),u=-1,o=0;o<a;++o){var c=t[o];if(c!==n[o])return i(e[o],r[o])<0?e.substr(0,o)+r[o]+r.substr(o+1):i(e[o],n[o])<0?e.substr(0,o)+n[o]+r.substr(o+1):u>=0?e.substr(0,u)+t[u]+r.substr(u+1):null;i(e[o],c)<0&&(u=o)}return a<n.length&&s==="next"?e+r.substr(e.length):a<e.length&&s==="prev"?e.substr(0,r.length):u<0?null:e.substr(0,u)+n[u]+r.substr(u+1)}function Uo(e,t,r,n){var i,s,a,u,o,c,d,h=r.length;if(!r.every(b=>typeof b=="string"))return Yt(e,MT);function f(b){i=aO(b),s=uO(b),a=b==="next"?iO:sO;var D=r.map(function(g){return{lower:s(g),upper:i(g)}}).sort(function(g,v){return a(g.lower,v.lower)});u=D.map(function(g){return g.upper}),o=D.map(function(g){return g.lower}),c=b,d=b==="next"?"":n}f("next");var p=new e.Collection(e,()=>kn(u[0],o[h-1]+n));p._ondirectionchange=function(b){f(b)};var A=0;return p._addAlgorithm(function(b,D,g){var v=b.key;if(typeof v!="string")return!1;var I=s(v);if(t(I,o,A))return!0;for(var T=null,E=A;E<h;++E){var C=oO(v,I,u[E],o[E],a,c);C===null&&T===null?A=E+1:(T===null||a(T,C)>0)&&(T=C)}return D(T!==null?function(){b.continue(T+d)}:g),!1}),p}function kn(e,t,r,n){return{type:2,lower:e,upper:t,lowerOpen:r,upperOpen:n}}function zT(e){return{type:1,lower:e,upper:e}}var Of=class{get Collection(){return this._ctx.table.db.Collection}between(t,r,n,i){n=n!==!1,i=i===!0;try{return this._cmp(t,r)>0||this._cmp(t,r)===0&&(n||i)&&!(n&&i)?gs(this):new this.Collection(this,()=>kn(t,r,!n,!i))}catch{return Yt(this,rn)}}equals(t){return t==null?Yt(this,rn):new this.Collection(this,()=>zT(t))}above(t){return t==null?Yt(this,rn):new this.Collection(this,()=>kn(t,void 0,!0))}aboveOrEqual(t){return t==null?Yt(this,rn):new this.Collection(this,()=>kn(t,void 0,!1))}below(t){return t==null?Yt(this,rn):new this.Collection(this,()=>kn(void 0,t,!1,!0))}belowOrEqual(t){return t==null?Yt(this,rn):new this.Collection(this,()=>kn(void 0,t))}startsWith(t){return typeof t!="string"?Yt(this,MT):this.between(t,t+di,!0,!0)}startsWithIgnoreCase(t){return t===""?this.startsWith(t):Uo(this,(r,n)=>r.indexOf(n[0])===0,[t],di)}equalsIgnoreCase(t){return Uo(this,(r,n)=>r===n[0],[t],"")}anyOfIgnoreCase(){var t=en.apply(ls,arguments);return t.length===0?gs(this):Uo(this,(r,n)=>n.indexOf(r)!==-1,t,"")}startsWithAnyOfIgnoreCase(){var t=en.apply(ls,arguments);return t.length===0?gs(this):Uo(this,(r,n)=>n.some(i=>r.indexOf(i)===0),t,di)}anyOf(){let t=en.apply(ls,arguments),r=this._cmp;try{t.sort(r)}catch{return Yt(this,rn)}if(t.length===0)return gs(this);let n=new this.Collection(this,()=>kn(t[0],t[t.length-1]));n._ondirectionchange=s=>{r=s==="next"?this._ascending:this._descending,t.sort(r)};let i=0;return n._addAlgorithm((s,a,u)=>{let o=s.key;for(;r(o,t[i])>0;)if(++i,i===t.length)return a(u),!1;return r(o,t[i])===0?!0:(a(()=>{s.continue(t[i])}),!1)}),n}notEqual(t){return this.inAnyRange([[If,t],[t,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){let t=en.apply(ls,arguments);if(t.length===0)return new this.Collection(this);try{t.sort(this._ascending)}catch{return Yt(this,rn)}let r=t.reduce((n,i)=>n?n.concat([[n[n.length-1][1],i]]):[[If,i]],null);return r.push([t[t.length-1],this.db._maxKey]),this.inAnyRange(r,{includeLowers:!1,includeUppers:!1})}inAnyRange(t,r){let n=this._cmp,i=this._ascending,s=this._descending,a=this._min,u=this._max;if(t.length===0)return gs(this);if(!t.every(T=>T[0]!==void 0&&T[1]!==void 0&&i(T[0],T[1])<=0))return Yt(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",ie.InvalidArgument);let o=!r||r.includeLowers!==!1,c=r&&r.includeUppers===!0;function d(T,E){let C=0,S=T.length;for(;C<S;++C){let N=T[C];if(n(E[0],N[1])<0&&n(E[1],N[0])>0){N[0]=a(N[0],E[0]),N[1]=u(N[1],E[1]);break}}return C===S&&T.push(E),T}let h=i;function f(T,E){return h(T[0],E[0])}let p;try{p=t.reduce(d,[]),p.sort(f)}catch{return Yt(this,rn)}let A=0,b=c?T=>i(T,p[A][1])>0:T=>i(T,p[A][1])>=0,D=o?T=>s(T,p[A][0])>0:T=>s(T,p[A][0])>=0;function g(T){return!b(T)&&!D(T)}let v=b,I=new this.Collection(this,()=>kn(p[0][0],p[p.length-1][1],!o,!c));return I._ondirectionchange=T=>{T==="next"?(v=b,h=i):(v=D,h=s),p.sort(f)},I._addAlgorithm((T,E,C)=>{for(var S=T.key;v(S);)if(++A,A===p.length)return E(C),!1;return g(S)?!0:(this._cmp(S,p[A][1])===0||this._cmp(S,p[A][0])===0||E(()=>{h===i?T.continue(p[A][0]):T.continue(p[A][1])}),!1)}),I}startsWithAnyOf(){let t=en.apply(ls,arguments);return t.every(r=>typeof r=="string")?t.length===0?gs(this):this.inAnyRange(t.map(r=>[r,r+di])):Yt(this,"startsWithAnyOf() only works with strings")}};function cO(e){return Ma(Of.prototype,function(r,n,i){this.db=e,this._ctx={table:r,index:n===":id"?null:n,or:i};let s=e._deps.indexedDB;if(!s)throw new ie.MissingAPI;this._cmp=this._ascending=s.cmp.bind(s),this._descending=(a,u)=>s.cmp(u,a),this._max=(a,u)=>s.cmp(a,u)>0?a:u,this._min=(a,u)=>s.cmp(a,u)<0?a:u,this._IDBKeyRange=e._deps.IDBKeyRange})}function wr(e){return ze(function(t){return ka(t),e(t.target.error),!1})}function ka(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var Fa="storagemutated",Fn="x-storagemutated-1",Bn=La(null,Fa),VT=class{_lock(){return va(!ne.global),++this._reculock,this._reculock===1&&!ne.global&&(ne.lockOwnerFor=this),this}_unlock(){if(va(!ne.global),--this._reculock==0)for(ne.global||(ne.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var t=this._blockedFuncs.shift();try{ps(t[1],t[0])}catch{}}return this}_locked(){return this._reculock&&ne.lockOwnerFor!==this}create(t){if(!this.mode)return this;let r=this.db.idbdb,n=this.db._state.dbOpenError;if(va(!this.idbtrans),!t&&!r)switch(n&&n.name){case"DatabaseClosedError":throw new ie.DatabaseClosed(n);case"MissingAPIError":throw new ie.MissingAPI(n.message,n);default:throw new ie.OpenFailed(n)}if(!this.active)throw new ie.TransactionInactive;return va(this._completion._state===null),t=this.idbtrans=t||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):r.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})),t.onerror=ze(i=>{ka(i),this._reject(t.error)}),t.onabort=ze(i=>{ka(i),this.active&&this._reject(new ie.Abort(t.error)),this.active=!1,this.on("abort").fire(i)}),t.oncomplete=ze(()=>{this.active=!1,this._resolve(),"mutatedParts"in t&&Bn.storagemutated.fire(t.mutatedParts)}),this}_promise(t,r,n){if(t==="readwrite"&&this.mode!=="readwrite")return rt(new ie.ReadOnly("Transaction is readonly"));if(!this.active)return rt(new ie.TransactionInactive);if(this._locked())return new Y((s,a)=>{this._blockedFuncs.push([()=>{this._promise(t,r,n).then(s,a)},ne])});if(n)return Ln(()=>{var s=new Y((a,u)=>{this._lock();let o=r(a,u,this);o&&o.then&&o.then(a,u)});return s.finally(()=>this._unlock()),s._lib=!0,s});var i=new Y((s,a)=>{var u=r(s,a,this);u&&u.then&&u.then(s,a)});return i._lib=!0,i}_root(){return this.parent?this.parent._root():this}waitFor(t){var r=this._root();let n=Y.resolve(t);if(r._waitingFor)r._waitingFor=r._waitingFor.then(()=>n);else{r._waitingFor=n,r._waitingQueue=[];var i=r.idbtrans.objectStore(r.storeNames[0]);(function a(){for(++r._spinCount;r._waitingQueue.length;)r._waitingQueue.shift()();r._waitingFor&&(i.get(-1/0).onsuccess=a)})()}var s=r._waitingFor;return new Y((a,u)=>{n.then(o=>r._waitingQueue.push(ze(a.bind(null,o))),o=>r._waitingQueue.push(ze(u.bind(null,o)))).finally(()=>{r._waitingFor===s&&(r._waitingFor=null)})})}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new ie.Abort))}table(t){let r=this._memoizedTables||(this._memoizedTables={});if(Wt(r,t))return r[t];let n=this.schema[t];if(!n)throw new ie.NotFound("Table "+t+" not part of transaction");let i=new this.db.Table(t,n,this);return i.core=this.db.core.table(t),r[t]=i,i}};function lO(e){return Ma(VT.prototype,function(r,n,i,s,a){this.db=e,this.mode=r,this.storeNames=n,this.schema=i,this.chromeTransactionDurability=s,this.idbtrans=null,this.on=La(this,"complete","error","abort"),this.parent=a||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Y((u,o)=>{this._resolve=u,this._reject=o}),this._completion.then(()=>{this.active=!1,this.on.complete.fire()},u=>{var o=this.active;return this.active=!1,this.on.error.fire(u),this.parent?this.parent._reject(u):o&&this.idbtrans&&this.idbtrans.abort(),rt(u)})})}function Nf(e,t,r,n,i,s,a){return{name:e,keyPath:t,unique:r,multi:n,auto:i,compound:s,src:(r&&!a?"&":"")+(n?"*":"")+(i?"++":"")+KT(t)}}function KT(e){return typeof e=="string"?e:e?"["+[].join.call(e,"+")+"]":""}function WT(e,t,r){return{name:e,primKey:t,indexes:r,mappedClass:null,idxByName:hT(r,n=>[n.name,n])}}function fO(e){return e.length===1?e[0]:e}var Ba=e=>{try{return e.only([[]]),Ba=()=>[[]],[[]]}catch{return Ba=()=>di,di}};function wf(e){return e==null?()=>{}:typeof e=="string"?dO(e):t=>Jr(t,e)}function dO(e){return e.split(".").length===1?r=>r[e]:r=>Jr(r,e)}function YT(e){return[].slice.call(e)}var hO=0;function ja(e){return e==null?":id":typeof e=="string"?e:`[${e.join("+")}]`}function pO(e,t,r){function n(d,h){let f=YT(d.objectStoreNames);return{schema:{name:d.name,tables:f.map(p=>h.objectStore(p)).map(p=>{let{keyPath:A,autoIncrement:b}=p,D=Et(A),g=A==null,v={},I={name:p.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:g,compound:D,keyPath:A,autoIncrement:b,unique:!0,extractKey:wf(A)},indexes:YT(p.indexNames).map(T=>p.index(T)).map(T=>{let{name:E,unique:C,multiEntry:S,keyPath:N}=T,P=Et(N),q={name:E,compound:P,keyPath:N,unique:C,multiEntry:S,extractKey:wf(N)};return v[ja(N)]=q,q}),getIndexByKeyPath:T=>v[ja(T)]};return v[":id"]=I.primaryKey,A!=null&&(v[ja(A)]=I.primaryKey),I})},hasGetAll:f.length>0&&"getAll"in h.objectStore(f[0])&&!(typeof navigator!="undefined"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}function i(d){if(d.type===3)return null;if(d.type===4)throw new Error("Cannot convert never type to IDBKeyRange");let{lower:h,upper:f,lowerOpen:p,upperOpen:A}=d;return h===void 0?f===void 0?null:t.upperBound(f,!!A):f===void 0?t.lowerBound(h,!!p):t.bound(h,f,!!p,!!A)}function s(d){let h=d.name;function f({trans:b,type:D,keys:g,values:v,range:I}){return new Promise((T,E)=>{T=ze(T);let C=b.objectStore(h),S=C.keyPath==null,N=D==="put"||D==="add";if(!N&&D!=="delete"&&D!=="deleteRange")throw new Error("Invalid operation type: "+D);let{length:P}=g||v||{length:1};if(g&&v&&g.length!==v.length)throw new Error("Given keys array must have same length as given values array.");if(P===0)return T({numFailures:0,failures:{},results:[],lastResult:void 0});let q,$=[],ge=[],W=0,he=Ie=>{++W,ka(Ie)};if(D==="deleteRange"){if(I.type===4)return T({numFailures:W,failures:ge,results:[],lastResult:void 0});I.type===3?$.push(q=C.clear()):$.push(q=C.delete(i(I)))}else{let[Ie,Ke]=N?S?[v,g]:[v,null]:[g,null];if(N)for(let R=0;R<P;++R)$.push(q=Ke&&Ke[R]!==void 0?C[D](Ie[R],Ke[R]):C[D](Ie[R])),q.onerror=he;else for(let R=0;R<P;++R)$.push(q=C[D](Ie[R])),q.onerror=he}let ke=Ie=>{let Ke=Ie.target.result;$.forEach((R,F)=>R.error!=null&&(ge[F]=R.error)),T({numFailures:W,failures:ge,results:D==="delete"?g:$.map(R=>R.result),lastResult:Ke})};q.onerror=Ie=>{he(Ie),ke(Ie)},q.onsuccess=ke})}function p({trans:b,values:D,query:g,reverse:v,unique:I}){return new Promise((T,E)=>{T=ze(T);let{index:C,range:S}=g,N=b.objectStore(h),P=C.isPrimaryKey?N:N.index(C.name),q=v?I?"prevunique":"prev":I?"nextunique":"next",$=D||!("openKeyCursor"in P)?P.openCursor(i(S),q):P.openKeyCursor(i(S),q);$.onerror=wr(E),$.onsuccess=ze(ge=>{let W=$.result;if(!W){T(null);return}W.___id=++hO,W.done=!1;let he=W.continue.bind(W),ke=W.continuePrimaryKey;ke&&(ke=ke.bind(W));let Ie=W.advance.bind(W),Ke=()=>{throw new Error("Cursor not started")},R=()=>{throw new Error("Cursor not stopped")};W.trans=b,W.stop=W.continue=W.continuePrimaryKey=W.advance=Ke,W.fail=ze(E),W.next=function(){let F=1;return this.start(()=>F--?this.continue():this.stop()).then(()=>this)},W.start=F=>{let H=new Promise((de,we)=>{de=ze(de),$.onerror=wr(we),W.fail=we,W.stop=tt=>{W.stop=W.continue=W.continuePrimaryKey=W.advance=R,de(tt)}}),te=()=>{if($.result)try{F()}catch(de){W.fail(de)}else W.done=!0,W.start=()=>{throw new Error("Cursor behind last entry")},W.stop()};return $.onsuccess=ze(de=>{$.onsuccess=te,te()}),W.continue=he,W.continuePrimaryKey=ke,W.advance=Ie,te(),H},T(W)},E)})}function A(b){return D=>new Promise((g,v)=>{g=ze(g);let{trans:I,values:T,limit:E,query:C}=D,S=E===1/0?void 0:E,{index:N,range:P}=C,q=I.objectStore(h),$=N.isPrimaryKey?q:q.index(N.name),ge=i(P);if(E===0)return g({result:[]});if(b){let W=T?$.getAll(ge,S):$.getAllKeys(ge,S);W.onsuccess=he=>g({result:he.target.result}),W.onerror=wr(v)}else{let W=0,he=T||!("openKeyCursor"in $)?$.openCursor(ge):$.openKeyCursor(ge),ke=[];he.onsuccess=Ie=>{let Ke=he.result;if(!Ke)return g({result:ke});if(ke.push(T?Ke.value:Ke.primaryKey),++W===E)return g({result:ke});Ke.continue()},he.onerror=wr(v)}})}return{name:h,schema:d,mutate:f,getMany({trans:b,keys:D}){return new Promise((g,v)=>{g=ze(g);let I=b.objectStore(h),T=D.length,E=new Array(T),C=0,S=0,N,P=$=>{let ge=$.target;(E[ge._pos]=ge.result)!=null,++S===C&&g(E)},q=wr(v);for(let $=0;$<T;++$)D[$]!=null&&(N=I.get(D[$]),N._pos=$,N.onsuccess=P,N.onerror=q,++C);C===0&&g(E)})},get({trans:b,key:D}){return new Promise((g,v)=>{g=ze(g);let T=b.objectStore(h).get(D);T.onsuccess=E=>g(E.target.result),T.onerror=wr(v)})},query:A(u),openCursor:p,count({query:b,trans:D}){let{index:g,range:v}=b;return new Promise((I,T)=>{let E=D.objectStore(h),C=g.isPrimaryKey?E:E.index(g.name),S=i(v),N=S?C.count(S):C.count();N.onsuccess=ze(P=>I(P.target.result)),N.onerror=wr(T)})}}}let{schema:a,hasGetAll:u}=n(e,r),o=a.tables.map(d=>s(d)),c={};return o.forEach(d=>c[d.name]=d),{stack:"dbcore",transaction:e.transaction.bind(e),table(d){if(!c[d])throw new Error(`Table '${d}' not found`);return c[d]},MIN_KEY:-1/0,MAX_KEY:Ba(t),schema:a}}function mO(e,t){return t.reduce((r,{create:n})=>J(J({},r),n(r)),e)}function gO(e,t,{IDBKeyRange:r,indexedDB:n},i){return{dbcore:mO(pO(t,r,i),e.dbcore)}}function Rf({_novip:e},t){let r=t.db,n=gO(e._middlewares,r,e._deps,t);e.core=n.dbcore,e.tables.forEach(i=>{let s=i.name;e.core.schema.tables.some(a=>a.name===s)&&(i.core=e.core.table(s),e[s]instanceof e.Table&&(e[s].core=i.core))})}function Go({_novip:e},t,r,n){r.forEach(i=>{let s=n[i];t.forEach(a=>{let u=ef(a,i);(!u||"value"in u&&u.value===void 0)&&(a===e.Transaction.prototype||a instanceof e.Transaction?Zr(a,i,{get(){return this.table(i)},set(o){lT(this,i,{value:o,writable:!0,configurable:!0,enumerable:!0})}}):a[i]=new e.Table(i,s))})})}function Pf({_novip:e},t){t.forEach(r=>{for(let n in r)r[n]instanceof e.Table&&delete r[n]})}function _O(e,t){return e._cfg.version-t._cfg.version}function TO(e,t,r,n){let i=e._dbSchema,s=e._createTransaction("readwrite",e._storeNames,i);s.create(r),s._completion.catch(n);let a=s._reject.bind(s),u=ne.transless||ne;Ln(()=>{ne.trans=s,ne.transless=u,t===0?(Je(i).forEach(o=>{Lf(r,o,i[o].primKey,i[o].indexes)}),Rf(e,r),Y.follow(()=>e.on.populate.fire(s)).catch(a)):bO(e,t,s,r).catch(a)})}function bO({_novip:e},t,r,n){let i=[],s=e._versions,a=e._dbSchema=kf(e,e.idbdb,n),u=!1;s.filter(d=>d._cfg.version>=t).forEach(d=>{i.push(()=>{let h=a,f=d._cfg.dbschema;Ff(e,h,n),Ff(e,f,n),a=e._dbSchema=f;let p=QT(h,f);p.add.forEach(b=>{Lf(n,b[0],b[1].primKey,b[1].indexes)}),p.change.forEach(b=>{if(b.recreate)throw new ie.Upgrade("Not yet support for changing primary key");{let D=n.objectStore(b.name);b.add.forEach(g=>Mf(D,g)),b.change.forEach(g=>{D.deleteIndex(g.name),Mf(D,g)}),b.del.forEach(g=>D.deleteIndex(g))}});let A=d._cfg.contentUpgrade;if(A&&d._cfg.version>t){Rf(e,n),r._memoizedTables={},u=!0;let b=pT(f);p.del.forEach(I=>{b[I]=h[I]}),Pf(e,[e.Transaction.prototype]),Go(e,[e.Transaction.prototype],Je(b),b),r.schema=b;let D=sf(A);D&&hs();let g,v=Y.follow(()=>{if(g=A(r),g&&D){var I=tn.bind(null,null);g.then(I,I)}});return g&&typeof g.then=="function"?Y.resolve(g):v.then(()=>g)}}),i.push(h=>{if(!u||!Xx){let f=d._cfg.dbschema;AO(f,h)}Pf(e,[e.Transaction.prototype]),Go(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),r.schema=e._dbSchema})});function c(){return i.length?Y.resolve(i.shift()(r.idbtrans)).then(c):Y.resolve()}return c().then(()=>{EO(a,n)})}function QT(e,t){let r={del:[],add:[],change:[]},n;for(n in e)t[n]||r.del.push(n);for(n in t){let i=e[n],s=t[n];if(!i)r.add.push([n,s]);else{let a={name:n,def:s,recreate:!1,del:[],add:[],change:[]};if(""+(i.primKey.keyPath||"")!=""+(s.primKey.keyPath||"")||i.primKey.auto!==s.primKey.auto&&!ko)a.recreate=!0,r.change.push(a);else{let u=i.idxByName,o=s.idxByName,c;for(c in u)o[c]||a.del.push(c);for(c in o){let d=u[c],h=o[c];d?d.src!==h.src&&a.change.push(h):a.add.push(h)}(a.del.length>0||a.add.length>0||a.change.length>0)&&r.change.push(a)}}}return r}function Lf(e,t,r,n){let i=e.db.createObjectStore(t,r.keyPath?{keyPath:r.keyPath,autoIncrement:r.auto}:{autoIncrement:r.auto});return n.forEach(s=>Mf(i,s)),i}function EO(e,t){Je(e).forEach(r=>{t.db.objectStoreNames.contains(r)||Lf(t,r,e[r].primKey,e[r].indexes)})}function AO(e,t){[].slice.call(t.db.objectStoreNames).forEach(r=>e[r]==null&&t.db.deleteObjectStore(r))}function Mf(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function kf(e,t,r){let n={};return yo(t.objectStoreNames,0).forEach(s=>{let a=r.objectStore(s),u=a.keyPath,o=Nf(KT(u),u||"",!1,!1,!!a.autoIncrement,u&&typeof u!="string",!0),c=[];for(let h=0;h<a.indexNames.length;++h){let f=a.index(a.indexNames[h]);u=f.keyPath;var d=Nf(f.name,u,!!f.unique,!!f.multiEntry,!1,u&&typeof u!="string",!1);c.push(d)}n[s]=WT(s,o,c)}),n}function yO({_novip:e},t,r){e.verno=t.version/10;let n=e._dbSchema=kf(e,t,r);e._storeNames=yo(t.objectStoreNames,0),Go(e,[e._allTables],Je(n),n)}function IO(e,t){let r=kf(e,e.idbdb,t),n=QT(r,e._dbSchema);return!(n.add.length||n.change.some(i=>i.add.length||i.change.length))}function Ff({_novip:e},t,r){let n=r.db.objectStoreNames;for(let i=0;i<n.length;++i){let s=n[i],a=r.objectStore(s);e._hasGetAll="getAll"in a;for(let u=0;u<a.indexNames.length;++u){let o=a.indexNames[u],c=a.index(o).keyPath,d=typeof c=="string"?c:"["+yo(c).join("+")+"]";if(t[s]){let h=t[s].idxByName[d];h&&(h.name=o,delete t[s].idxByName[d],t[s].idxByName[o]=h)}}}typeof navigator!="undefined"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&je.WorkerGlobalScope&&je instanceof je.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}function vO(e){return e.split(",").map((t,r)=>{t=t.trim();let n=t.replace(/([&*]|\+\+)/g,""),i=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return Nf(n,i||null,/\&/.test(t),/\*/.test(t),/\+\+/.test(t),Et(i),r===0)})}var $T=class{_parseStoresSpec(t,r){Je(t).forEach(n=>{if(t[n]!==null){var i=vO(t[n]),s=i.shift();if(s.multi)throw new ie.Schema("Primary key cannot be multi-valued");i.forEach(a=>{if(a.auto)throw new ie.Schema("Only primary key can be marked as autoIncrement (++)");if(!a.keyPath)throw new ie.Schema("Index must have a name and cannot be an empty string")}),r[n]=WT(n,s,i)}})}stores(t){let r=this.db;this._cfg.storesSource=this._cfg.storesSource?xt(this._cfg.storesSource,t):t;let n=r._versions,i={},s={};return n.forEach(a=>{xt(i,a._cfg.storesSource),s=a._cfg.dbschema={},a._parseStoresSpec(i,s)}),r._dbSchema=s,Pf(r,[r._allTables,r,r.Transaction.prototype]),Go(r,[r._allTables,r,r.Transaction.prototype,this._cfg.tables],Je(s),s),r._storeNames=Je(s),this}upgrade(t){return this._cfg.contentUpgrade=cf(this._cfg.contentUpgrade||Ne,t),this}};function CO(e){return Ma($T.prototype,function(r){this.db=e,this._cfg={version:r,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}function Bf(e,t){let r=e._dbNamesDB;return r||(r=e._dbNamesDB=new sn(Fo,{addons:[],indexedDB:e,IDBKeyRange:t}),r.version(1).stores({dbnames:"name"})),r.table("dbnames")}function jf(e){return e&&typeof e.databases=="function"}function DO({indexedDB:e,IDBKeyRange:t}){return jf(e)?Promise.resolve(e.databases()).then(r=>r.map(n=>n.name).filter(n=>n!==Fo)):Bf(e,t).toCollection().primaryKeys()}function SO({indexedDB:e,IDBKeyRange:t},r){!jf(e)&&r!==Fo&&Bf(e,t).put({name:r}).catch(Ne)}function xO({indexedDB:e,IDBKeyRange:t},r){!jf(e)&&r!==Fo&&Bf(e,t).delete(r).catch(Ne)}function Hf(e){return Ln(function(){return ne.letThrough=!0,e()})}function OO(){var e=!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent);if(!e||!indexedDB.databases)return Promise.resolve();var t;return new Promise(function(r){var n=function(){return indexedDB.databases().finally(r)};t=setInterval(n,100),n()}).finally(function(){return clearInterval(t)})}function NO(e){let t=e._state,{indexedDB:r}=e._deps;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then(()=>t.dbOpenError?rt(t.dbOpenError):e);Nr&&(t.openCanceller._stackHolder=oi()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;let n=t.openCanceller;function i(){if(t.openCanceller!==n)throw new ie.DatabaseClosed("db.open() was cancelled")}let s=t.dbReadyResolve,a=null,u=!1,o=()=>new Y((c,d)=>{if(i(),!r)throw new ie.MissingAPI;let h=e.name,f=t.autoSchema?r.open(h):r.open(h,Math.round(e.verno*10));if(!f)throw new ie.MissingAPI;f.onerror=wr(d),f.onblocked=ze(e._fireOnBlocked),f.onupgradeneeded=ze(p=>{if(a=f.transaction,t.autoSchema&&!e._options.allowEmptyDB){f.onerror=ka,a.abort(),f.result.close();let b=r.deleteDatabase(h);b.onsuccess=b.onerror=ze(()=>{d(new ie.NoSuchDatabase(`Database ${h} doesnt exist`))})}else{a.onerror=wr(d);var A=p.oldVersion>Math.pow(2,62)?0:p.oldVersion;u=A<1,e._novip.idbdb=f.result,TO(e,A/10,a,d)}},d),f.onsuccess=ze(()=>{a=null;let p=e._novip.idbdb=f.result,A=yo(p.objectStoreNames);if(A.length>0)try{let b=p.transaction(fO(A),"readonly");t.autoSchema?yO(e,p,b):(Ff(e,e._dbSchema,b),IO(e,b)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),Rf(e,b)}catch{}Pa.push(e),p.onversionchange=ze(b=>{t.vcFired=!0,e.on("versionchange").fire(b)}),p.onclose=ze(b=>{e.on("close").fire(b)}),u&&SO(e._deps,h),c()},d)}).catch(c=>c&&c.name==="UnknownError"&&t.PR1398_maxLoop>0?(t.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),o()):Y.reject(c));return Y.race([n,(typeof navigator=="undefined"?Y.resolve():OO()).then(o)]).then(()=>(i(),t.onReadyBeingFired=[],Y.resolve(Hf(()=>e.on.ready.fire(e.vip))).then(function c(){if(t.onReadyBeingFired.length>0){let d=t.onReadyBeingFired.reduce(cf,Ne);return t.onReadyBeingFired=[],Y.resolve(Hf(()=>d(e.vip))).then(c)}}))).finally(()=>{t.onReadyBeingFired=null,t.isBeingOpened=!1}).then(()=>e).catch(c=>{t.dbOpenError=c;try{a&&a.abort()}catch{}return n===t.openCanceller&&e._close(),rt(c)}).finally(()=>{t.openComplete=!0,s()})}function Uf(e){var t=a=>e.next(a),r=a=>e.throw(a),n=s(t),i=s(r);function s(a){return u=>{var o=a(u),c=o.value;return o.done?c:!c||typeof c.then!="function"?Et(c)?Promise.all(c).then(n,i):n(c):c.then(n,i)}}return s(t)()}function wO(e,t,r){var n=arguments.length;if(n<2)throw new ie.InvalidArgument("Too few arguments");for(var i=new Array(n-1);--n;)i[n-1]=arguments[n];r=i.pop();var s=mT(i);return[e,s,r]}function XT(e,t,r,n,i){return Y.resolve().then(()=>{let s=ne.transless||ne,a=e._createTransaction(t,r,e._dbSchema,n),u={trans:a,transless:s};if(n)a.idbtrans=n.idbtrans;else try{a.create(),e._state.PR1398_maxLoop=3}catch(h){return h.name===of.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(()=>XT(e,t,r,null,i))):rt(h)}let o=sf(i);o&&hs();let c,d=Y.follow(()=>{if(c=i.call(a,a),c)if(o){var h=tn.bind(null,null);c.then(h,h)}else typeof c.next=="function"&&typeof c.throw=="function"&&(c=Uf(c))},u);return(c&&typeof c.then=="function"?Y.resolve(c).then(h=>a.active?h:rt(new ie.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))):d.then(()=>c)).then(h=>(n&&a._resolve(),a._completion.then(()=>h))).catch(h=>(a._reject(h),rt(h)))})}function qo(e,t,r){let n=Et(e)?e.slice():[e];for(let i=0;i<r;++i)n.push(t);return n}function RO(e){return Fe(J({},e),{table(t){let r=e.table(t),{schema:n}=r,i={},s=[];function a(f,p,A){let b=ja(f),D=i[b]=i[b]||[],g=f==null?0:typeof f=="string"?1:f.length,v=p>0,I=Fe(J({},A),{isVirtual:v,keyTail:p,keyLength:g,extractKey:wf(f),unique:!v&&A.unique});if(D.push(I),I.isPrimaryKey||s.push(I),g>1){let T=g===2?f[0]:f.slice(0,g-1);a(T,p+1,A)}return D.sort((T,E)=>T.keyTail-E.keyTail),I}let u=a(n.primaryKey.keyPath,0,n.primaryKey);i[":id"]=[u];for(let f of n.indexes)a(f.keyPath,0,f);function o(f){let p=i[ja(f)];return p&&p[0]}function c(f,p){return{type:f.type===1?2:f.type,lower:qo(f.lower,f.lowerOpen?e.MAX_KEY:e.MIN_KEY,p),lowerOpen:!0,upper:qo(f.upper,f.upperOpen?e.MIN_KEY:e.MAX_KEY,p),upperOpen:!0}}function d(f){let p=f.query.index;return p.isVirtual?Fe(J({},f),{query:{index:p,range:c(f.query.range,p.keyTail)}}):f}return Fe(J({},r),{schema:Fe(J({},n),{primaryKey:u,indexes:s,getIndexByKeyPath:o}),count(f){return r.count(d(f))},query(f){return r.query(d(f))},openCursor(f){let{keyTail:p,isVirtual:A,keyLength:b}=f.query.index;if(!A)return r.openCursor(f);function D(g){function v(T){T!=null?g.continue(qo(T,f.reverse?e.MAX_KEY:e.MIN_KEY,p)):f.unique?g.continue(g.key.slice(0,b).concat(f.reverse?e.MIN_KEY:e.MAX_KEY,p)):g.continue()}return Object.create(g,{continue:{value:v},continuePrimaryKey:{value(T,E){g.continuePrimaryKey(qo(T,e.MAX_KEY,p),E)}},primaryKey:{get(){return g.primaryKey}},key:{get(){let T=g.key;return b===1?T[0]:T.slice(0,b)}},value:{get(){return g.value}}})}return r.openCursor(d(f)).then(g=>g&&D(g))}})}})}var PO={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:RO};function Gf(e,t,r,n){return r=r||{},n=n||"",Je(e).forEach(i=>{if(!Wt(t,i))r[n+i]=void 0;else{var s=e[i],a=t[i];if(typeof s=="object"&&typeof a=="object"&&s&&a){let u=rf(s),o=rf(a);u!==o?r[n+i]=t[i]:u==="Object"?Gf(s,a,r,n+i+"."):s!==a&&(r[n+i]=t[i])}else s!==a&&(r[n+i]=t[i])}}),Je(t).forEach(i=>{Wt(e,i)||(r[n+i]=t[i])}),r}function LO(e,t){return t.type==="delete"?t.keys:t.keys||t.values.map(e.extractKey)}var MO={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>Fe(J({},e),{table(t){let r=e.table(t),{primaryKey:n}=r.schema;return Fe(J({},r),{mutate(s){let a=ne.trans,{deleting:u,creating:o,updating:c}=a.table(t).hook;switch(s.type){case"add":if(o.fire===Ne)break;return a._promise("readwrite",()=>d(s),!0);case"put":if(o.fire===Ne&&c.fire===Ne)break;return a._promise("readwrite",()=>d(s),!0);case"delete":if(u.fire===Ne)break;return a._promise("readwrite",()=>d(s),!0);case"deleteRange":if(u.fire===Ne)break;return a._promise("readwrite",()=>h(s),!0)}return r.mutate(s);function d(p){let A=ne.trans,b=p.keys||LO(n,p);if(!b)throw new Error("Keys missing");return p=p.type==="add"||p.type==="put"?Fe(J({},p),{keys:b}):J({},p),p.type!=="delete"&&(p.values=[...p.values]),p.keys&&(p.keys=[...p.keys]),kO(r,p,b).then(D=>{let g=b.map((v,I)=>{let T=D[I],E={onerror:null,onsuccess:null};if(p.type==="delete")u.fire.call(E,v,T,A);else if(p.type==="add"||T===void 0){let C=o.fire.call(E,v,p.values[I],A);v==null&&C!=null&&(v=C,p.keys[I]=v,n.outbound||_r(p.values[I],n.keyPath,v))}else{let C=Gf(T,p.values[I]),S=c.fire.call(E,C,v,T,A);if(S){let N=p.values[I];Object.keys(S).forEach(P=>{Wt(N,P)?N[P]=S[P]:_r(N,P,S[P])})}}return E});return r.mutate(p).then(({failures:v,results:I,numFailures:T,lastResult:E})=>{for(let C=0;C<b.length;++C){let S=I?I[C]:b[C],N=g[C];S==null?N.onerror&&N.onerror(v[C]):N.onsuccess&&N.onsuccess(p.type==="put"&&D[C]?p.values[C]:S)}return{failures:v,results:I,numFailures:T,lastResult:E}}).catch(v=>(g.forEach(I=>I.onerror&&I.onerror(v)),Promise.reject(v)))})}function h(p){return f(p.trans,p.range,1e4)}function f(p,A,b){return r.query({trans:p,values:!1,query:{index:n,range:A},limit:b}).then(({result:D})=>d({type:"delete",keys:D,trans:p}).then(g=>g.numFailures>0?Promise.reject(g.failures[0]):D.length<b?{failures:[],numFailures:0,lastResult:void 0}:f(p,Fe(J({},A),{lower:D[D.length-1],lowerOpen:!0}),b)))}}})}})};function kO(e,t,r){return t.type==="add"?Promise.resolve([]):e.getMany({trans:t.trans,keys:r,cache:"immutable"})}function ZT(e,t,r){try{if(!t||t.keys.length<e.length)return null;let n=[];for(let i=0,s=0;i<t.keys.length&&s<e.length;++i)Ot(t.keys[i],e[s])===0&&(n.push(r?Ca(t.values[i]):t.values[i]),++s);return n.length===e.length?n:null}catch{return null}}var FO={stack:"dbcore",level:-1,create:e=>({table:t=>{let r=e.table(t);return Fe(J({},r),{getMany:n=>{if(!n.cache)return r.getMany(n);let i=ZT(n.keys,n.trans._cache,n.cache==="clone");return i?Y.resolve(i):r.getMany(n).then(s=>(n.trans._cache={keys:n.keys,values:n.cache==="clone"?Ca(s):s},s))},mutate:n=>(n.type!=="add"&&(n.trans._cache=null),r.mutate(n))})}})};function qf(e){return!("from"in e)}var nn=function(e,t){if(this)xt(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0});else{let r=new nn;return e&&"d"in e&&xt(r,e),r}};os(nn.prototype,{add(e){return zo(this,e),this},addKey(e){return Ha(this,e,e),this},addKeys(e){return e.forEach(t=>Ha(this,t,t)),this},[nf](){return zf(this)}});function Ha(e,t,r){let n=Ot(t,r);if(isNaN(n))return;if(n>0)throw RangeError();if(qf(e))return xt(e,{from:t,to:r,d:1});let i=e.l,s=e.r;if(Ot(r,e.from)<0)return i?Ha(i,t,r):e.l={from:t,to:r,d:1,l:null,r:null},JT(e);if(Ot(t,e.to)>0)return s?Ha(s,t,r):e.r={from:t,to:r,d:1,l:null,r:null},JT(e);Ot(t,e.from)<0&&(e.from=t,e.l=null,e.d=s?s.d+1:1),Ot(r,e.to)>0&&(e.to=r,e.r=null,e.d=e.l?e.l.d+1:1);let a=!e.r;i&&!e.l&&zo(e,i),s&&a&&zo(e,s)}function zo(e,t){function r(n,{from:i,to:s,l:a,r:u}){Ha(n,i,s),a&&r(n,a),u&&r(n,u)}qf(t)||r(e,t)}function BO(e,t){let r=zf(t),n=r.next();if(n.done)return!1;let i=n.value,s=zf(e),a=s.next(i.from),u=a.value;for(;!n.done&&!a.done;){if(Ot(u.from,i.to)<=0&&Ot(u.to,i.from)>=0)return!0;Ot(i.from,u.from)<0?i=(n=r.next(u.from)).value:u=(a=s.next(i.from)).value}return!1}function zf(e){let t=qf(e)?null:{s:0,n:e};return{next(r){let n=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&Ot(r,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||Ot(r,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function JT(e){var t,r;let n=(((t=e.r)===null||t===void 0?void 0:t.d)||0)-(((r=e.l)===null||r===void 0?void 0:r.d)||0),i=n>1?"r":n<-1?"l":"";if(i){let s=i==="r"?"l":"r",a=J({},e),u=e[i];e.from=u.from,e.to=u.to,e[i]=u[i],a[i]=u[s],e[s]=a,a.d=eb(a)}e.d=eb(e)}function eb({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}var jO={stack:"dbcore",level:0,create:e=>{let t=e.schema.name,r=new nn(e.MIN_KEY,e.MAX_KEY);return Fe(J({},e),{table:n=>{let i=e.table(n),{schema:s}=i,{primaryKey:a}=s,{extractKey:u,outbound:o}=a,c=Fe(J({},i),{mutate:f=>{let p=f.trans,A=p.mutatedParts||(p.mutatedParts={}),b=C=>{let S=`idb://${t}/${n}/${C}`;return A[S]||(A[S]=new nn)},D=b(""),g=b(":dels"),{type:v}=f,[I,T]=f.type==="deleteRange"?[f.range]:f.type==="delete"?[f.keys]:f.values.length<50?[[],f.values]:[],E=f.trans._cache;return i.mutate(f).then(C=>{if(Et(I)){v!=="delete"&&(I=C.results),D.addKeys(I);let S=ZT(I,E);!S&&v!=="add"&&g.addKeys(I),(S||T)&&HO(b,s,S,T)}else if(I){let S={from:I.lower,to:I.upper};g.add(S),D.add(S)}else D.add(r),g.add(r),s.indexes.forEach(S=>b(S.name).add(r));return C})}}),d=({query:{index:f,range:p}})=>{var A,b;return[f,new nn((A=p.lower)!==null&&A!==void 0?A:e.MIN_KEY,(b=p.upper)!==null&&b!==void 0?b:e.MAX_KEY)]},h={get:f=>[a,new nn(f.key)],getMany:f=>[a,new nn().addKeys(f.keys)],count:d,query:d,openCursor:d};return Je(h).forEach(f=>{c[f]=function(p){let{subscr:A}=ne;if(A){let b=T=>{let E=`idb://${t}/${n}/${T}`;return A[E]||(A[E]=new nn)},D=b(""),g=b(":dels"),[v,I]=h[f](p);if(b(v.name||"").add(I),!v.isPrimaryKey)if(f==="count")g.add(r);else{let T=f==="query"&&o&&p.values&&i.query(Fe(J({},p),{values:!1}));return i[f].apply(this,arguments).then(E=>{if(f==="query"){if(o&&p.values)return T.then(({result:S})=>(D.addKeys(S),E));let C=p.values?E.result.map(u):E.result;p.values?D.addKeys(C):g.addKeys(C)}else if(f==="openCursor"){let C=E,S=p.values;return C&&Object.create(C,{key:{get(){return g.addKey(C.primaryKey),C.key}},primaryKey:{get(){let N=C.primaryKey;return g.addKey(N),N}},value:{get(){return S&&D.addKey(C.primaryKey),C.value}}})}return E})}}return i[f].apply(this,arguments)}}),c}})}};function HO(e,t,r,n){function i(s){let a=e(s.name||"");function u(c){return c!=null?s.extractKey(c):null}let o=c=>s.multiEntry&&Et(c)?c.forEach(d=>a.addKey(d)):a.addKey(c);(r||n).forEach((c,d)=>{let h=r&&u(r[d]),f=n&&u(n[d]);Ot(h,f)!==0&&(h!=null&&o(h),f!=null&&o(f))})}t.indexes.forEach(i)}var sn=class{constructor(t,r){this._middlewares={},this.verno=0;let n=sn.dependencies;this._options=r=J({addons:sn.addons,autoOpen:!0,indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange},r),this._deps={indexedDB:r.indexedDB,IDBKeyRange:r.IDBKeyRange};let{addons:i}=r;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;let s={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:Ne,dbReadyPromise:null,cancelOpen:Ne,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};s.dbReadyPromise=new Y(a=>{s.dbReadyResolve=a}),s.openCanceller=new Y((a,u)=>{s.cancelOpen=u}),this._state=s,this.name=t,this.on=La(this,"populate","blocked","versionchange","close",{ready:[cf,Ne]}),this.on.ready.subscribe=fT(this.on.ready.subscribe,a=>(u,o)=>{sn.vip(()=>{let c=this._state;if(c.openComplete)c.dbOpenError||Y.resolve().then(u),o&&a(u);else if(c.onReadyBeingFired)c.onReadyBeingFired.push(u),o&&a(u);else{a(u);let d=this;o||a(function h(){d.on.ready.unsubscribe(u),d.on.ready.unsubscribe(h)})}})}),this.Collection=nO(this),this.Table=Jx(this),this.Transaction=lO(this),this.Version=CO(this),this.WhereClause=cO(this),this.on("versionchange",a=>{a.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()}),this.on("blocked",a=>{!a.newVersion||a.newVersion<a.oldVersion?console.warn(`Dexie.delete('${this.name}') was blocked`):console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${a.oldVersion/10}`)}),this._maxKey=Ba(r.IDBKeyRange),this._createTransaction=(a,u,o,c)=>new this.Transaction(a,u,o,this._options.chromeTransactionDurability,c),this._fireOnBlocked=a=>{this.on("blocked").fire(a),Pa.filter(u=>u.name===this.name&&u!==this&&!u._state.vcFired).map(u=>u.on("versionchange").fire(a))},this.use(PO),this.use(MO),this.use(jO),this.use(FO),this.vip=Object.create(this,{_vip:{value:!0}}),i.forEach(a=>a(this))}version(t){if(isNaN(t)||t<.1)throw new ie.Type("Given version is not a positive number");if(t=Math.round(t*10)/10,this.idbdb||this._state.isBeingOpened)throw new ie.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,t);let r=this._versions;var n=r.filter(i=>i._cfg.version===t)[0];return n||(n=new this.Version(t),r.push(n),r.sort(_O),n.stores({}),this._state.autoSchema=!1,n)}_whenReady(t){return this.idbdb&&(this._state.openComplete||ne.letThrough||this._vip)?t():new Y((r,n)=>{if(this._state.openComplete)return n(new ie.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen){n(new ie.DatabaseClosed);return}this.open().catch(Ne)}this._state.dbReadyPromise.then(r,n)}).then(t)}use({stack:t,create:r,level:n,name:i}){i&&this.unuse({stack:t,name:i});let s=this._middlewares[t]||(this._middlewares[t]=[]);return s.push({stack:t,create:r,level:n??10,name:i}),s.sort((a,u)=>a.level-u.level),this}unuse({stack:t,name:r,create:n}){return t&&this._middlewares[t]&&(this._middlewares[t]=this._middlewares[t].filter(i=>n?i.create!==n:r?i.name!==r:!1)),this}open(){return NO(this)}_close(){let t=this._state,r=Pa.indexOf(this);if(r>=0&&Pa.splice(r,1),this.idbdb){try{this.idbdb.close()}catch{}this._novip.idbdb=null}t.dbReadyPromise=new Y(n=>{t.dbReadyResolve=n}),t.openCanceller=new Y((n,i)=>{t.cancelOpen=i})}close(){this._close();let t=this._state;this._options.autoOpen=!1,t.dbOpenError=new ie.DatabaseClosed,t.isBeingOpened&&t.cancelOpen(t.dbOpenError)}delete(){let t=arguments.length>0,r=this._state;return new Y((n,i)=>{let s=()=>{this.close();var a=this._deps.indexedDB.deleteDatabase(this.name);a.onsuccess=ze(()=>{xO(this._deps,this.name),n()}),a.onerror=wr(i),a.onblocked=this._fireOnBlocked};if(t)throw new ie.InvalidArgument("Arguments not allowed in db.delete()");r.isBeingOpened?r.dbReadyPromise.then(s):s()})}backendDB(){return this.idbdb}isOpen(){return this.idbdb!==null}hasBeenClosed(){let t=this._state.dbOpenError;return t&&t.name==="DatabaseClosed"}hasFailed(){return this._state.dbOpenError!==null}dynamicallyOpened(){return this._state.autoSchema}get tables(){return Je(this._allTables).map(t=>this._allTables[t])}transaction(){let t=wO.apply(this,arguments);return this._transaction.apply(this,t)}_transaction(t,r,n){let i=ne.trans;(!i||i.db!==this||t.indexOf("!")!==-1)&&(i=null);let s=t.indexOf("?")!==-1;t=t.replace("!","").replace("?","");let a,u;try{if(u=r.map(c=>{var d=c instanceof this.Table?c.name:c;if(typeof d!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return d}),t=="r"||t===vf)a=vf;else if(t=="rw"||t==Cf)a=Cf;else throw new ie.InvalidArgument("Invalid transaction mode: "+t);if(i){if(i.mode===vf&&a===Cf)if(s)i=null;else throw new ie.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");i&&u.forEach(c=>{if(i&&i.storeNames.indexOf(c)===-1)if(s)i=null;else throw new ie.SubTransaction("Table "+c+" not included in parent transaction.")}),s&&i&&!i.active&&(i=null)}}catch(c){return i?i._promise(null,(d,h)=>{h(c)}):rt(c)}let o=XT.bind(null,this,a,u,i,n);return i?i._promise(a,o,"lock"):ne.trans?ps(ne.transless,()=>this._whenReady(o)):this._whenReady(o)}table(t){if(!Wt(this._allTables,t))throw new ie.InvalidTable(`Table ${t} does not exist`);return this._allTables[t]}},UO=typeof Symbol!="undefined"&&"observable"in Symbol?Symbol.observable:"@@observable",tb=class{constructor(t){this._subscribe=t}subscribe(t,r,n){return this._subscribe(!t||typeof t=="function"?{next:t,error:r,complete:n}:t)}[UO](){return this}};function rb(e,t){return Je(t).forEach(r=>{let n=e[r]||(e[r]=new nn);zo(n,t[r])}),e}function GO(e){let t=!1,r,n=new tb(i=>{let s=sf(e);function a(D){s&&hs();let g=()=>Ln(e,{subscr:D,trans:null}),v=ne.trans?ps(ne.transless,g):g();return s&&v.then(tn,tn),v}let u=!1,o={},c={},d={get closed(){return u},unsubscribe:()=>{u=!0,Bn.storagemutated.unsubscribe(A)}};i.start&&i.start(d);let h=!1,f=!1;function p(){return Je(c).some(D=>o[D]&&BO(o[D],c[D]))}let A=D=>{rb(o,D),p()&&b()},b=()=>{if(h||u)return;o={};let D={},g=a(D);f||(Bn(Fa,A),f=!0),h=!0,Promise.resolve(g).then(v=>{t=!0,r=v,h=!1,!u&&(p()?b():(o={},c=D,i.next&&i.next(v)))},v=>{h=!1,t=!1,i.error&&i.error(v),d.unsubscribe()})};return b(),d});return n.hasValue=()=>t,n.getValue=()=>r,n}var Vf;try{Vf={indexedDB:je.indexedDB||je.mozIndexedDB||je.webkitIndexedDB||je.msIndexedDB,IDBKeyRange:je.IDBKeyRange||je.webkitIDBKeyRange}}catch{Vf={indexedDB:null,IDBKeyRange:null}}var pi=sn;os(pi,Fe(J({},vo),{delete(e){return new pi(e,{addons:[]}).delete()},exists(e){return new pi(e,{addons:[]}).open().then(t=>(t.close(),!0)).catch("NoSuchDatabaseError",()=>!1)},getDatabaseNames(e){try{return DO(pi.dependencies).then(e)}catch{return rt(new ie.MissingAPI)}},defineClass(){function e(t){xt(this,t)}return e},ignoreTransaction(e){return ne.trans?ps(ne.transless,e):e()},vip:Hf,async:function(e){return function(){try{var t=Uf(e.apply(this,arguments));return!t||typeof t.then!="function"?Y.resolve(t):t}catch(r){return rt(r)}}},spawn:function(e,t,r){try{var n=Uf(e.apply(r,t||[]));return!n||typeof n.then!="function"?Y.resolve(n):n}catch(i){return rt(i)}},currentTransaction:{get:()=>ne.trans||null},waitFor:function(e,t){let r=Y.resolve(typeof e=="function"?pi.ignoreTransaction(e):e).timeout(t||6e4);return ne.trans?ne.trans.waitFor(r):r},Promise:Y,debug:{get:()=>Nr,set:e=>{_T(e,e==="dexie"?()=>!0:kT)}},derive:cs,extend:xt,props:os,override:fT,Events:La,on:Bn,liveQuery:GO,extendObservabilitySet:rb,getByKeyPath:Jr,setByKeyPath:_r,delByKeyPath:Cx,shallowClone:pT,deepClone:Ca,getObjectDiff:Gf,cmp:Ot,asap:dT,minKey:If,addons:[],connections:Pa,errnames:of,dependencies:Vf,semVer:LT,version:LT.split(".").map(e=>parseInt(e)).reduce((e,t,r)=>e+t/Math.pow(10,r*2))}));pi.maxKey=Ba(pi.dependencies.IDBKeyRange);typeof dispatchEvent!="undefined"&&typeof addEventListener!="undefined"&&(Bn(Fa,e=>{if(!an){let t;ko?(t=document.createEvent("CustomEvent"),t.initCustomEvent(Fn,!0,!0,e)):t=new CustomEvent(Fn,{detail:e}),an=!0,dispatchEvent(t),an=!1}}),addEventListener(Fn,({detail:e})=>{an||Vo(e)}));function Vo(e){let t=an;try{an=!0,Bn.storagemutated.fire(e)}finally{an=t}}var an=!1;if(typeof BroadcastChannel!="undefined"){let e=new BroadcastChannel(Fn);typeof e.unref=="function"&&e.unref(),Bn(Fa,t=>{an||e.postMessage(t)}),e.onmessage=t=>{t.data&&Vo(t.data)}}else if(typeof self!="undefined"&&typeof navigator!="undefined"){Bn(Fa,t=>{try{an||(typeof localStorage!="undefined"&&localStorage.setItem(Fn,JSON.stringify({trig:Math.random(),changedParts:t})),typeof self.clients=="object"&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(r=>r.postMessage({type:Fn,changedParts:t})))}catch{}}),typeof addEventListener!="undefined"&&addEventListener("storage",t=>{if(t.key===Fn){let r=JSON.parse(t.newValue);r&&Vo(r.changedParts)}});let e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",qO)}function qO({data:e}){e&&e.type===Fn&&Vo(e.changedParts)}Y.rejectionMapper=Lx;_T(Nr,kT);var Kf=Xe(require("obsidian")),_s=class extends sn{constructor(t){super(_s.getDbName(t.app.appId));this.plugin=t;this.version(_s.dbVersion).stores({searchHistory:"++id",minisearch:"date"})}static getDbName(t){return"omnisearch/cache/"+t}async getMinisearchCache(){try{return(await this.plugin.database.minisearch.toArray())[0]}catch(t){return new Kf.Notice("Omnisearch - Cache missing or invalid. Some freezes may occur while Omnisearch indexes your vault."),console.error("Omnisearch - Error while loading Minisearch cache"),console.error(t),null}}async writeMinisearchCache(t,r){let n=Array.from(r).map(([s,a])=>({path:s,mtime:a})),i=this.plugin.database;await i.minisearch.clear(),await i.minisearch.add({date:new Date().toISOString(),paths:n,data:t.toJSON()}),console.log("Omnisearch - Search cache written")}async clearOldDatabases(){let t=(await indexedDB.databases()).filter(r=>r.name===_s.getDbName(this.plugin.app.appId)&&r.version!==_s.dbVersion*10);if(t.length){console.log("Omnisearch - Those IndexedDb databases will be deleted:");for(let r of t)r.name&&indexedDB.deleteDatabase(r.name)}}async clearCache(){new Kf.Notice("Omnisearch - Cache cleared. Please restart Obsidian."),await this.minisearch.clear()}},Ko=_s;Ko.dbVersion=8;var nb="ENTRIES",Wf="KEYS",Yf="VALUES",nt="",Ua=class{constructor(t,r){let n=t._tree,i=Array.from(n.keys());this.set=t,this._type=r,this._path=i.length>0?[{node:n,keys:i}]:[]}next(){let t=this.dive();return this.backtrack(),t}dive(){if(this._path.length===0)return{done:!0,value:void 0};let{node:t,keys:r}=Ts(this._path);if(Ts(r)===nt)return{done:!1,value:this.result()};let n=t.get(Ts(r));return this._path.push({node:n,keys:Array.from(n.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;let t=Ts(this._path).keys;t.pop(),!(t.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:t})=>Ts(t)).filter(t=>t!==nt).join("")}value(){return Ts(this._path).node.get(nt)}result(){switch(this._type){case Yf:return this.value();case Wf:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}},Ts=e=>e[e.length-1];var zO=(e,t,r)=>{let n=new Map;if(t===void 0)return n;let i=t.length+1,s=i+r,a=new Uint8Array(s*i).fill(r+1);for(let u=0;u<i;++u)a[u]=u;for(let u=1;u<s;++u)a[u*i]=u;return ib(e,t,r,n,a,1,i,""),n},ib=(e,t,r,n,i,s,a,u)=>{let o=s*a;e:for(let c of e.keys())if(c===nt){let d=i[o-1];d<=r&&n.set(u,[e.get(c),d])}else{let d=s;for(let h=0;h<c.length;++h,++d){let f=c[h],p=a*d,A=p-a,b=i[p],D=Math.max(0,d-r-1),g=Math.min(a-1,d+r);for(let v=D;v<g;++v){let I=f!==t[v],T=i[A+v]+ +I,E=i[A+v+1]+1,C=i[p+v]+1,S=i[p+v+1]=Math.min(T,E,C);S<b&&(b=S)}if(b>r)continue e}ib(e.get(c),t,r,n,i,d,a,u+c)}},sb=zO;var Tr=class{constructor(t=new Map,r=""){this._size=void 0;this._tree=t,this._prefix=r}atPrefix(t){if(!t.startsWith(this._prefix))throw new Error("Mismatched prefix");let[r,n]=Wo(this._tree,t.slice(this._prefix.length));if(r===void 0){let[i,s]=Xf(n);for(let a of i.keys())if(a!==nt&&a.startsWith(s)){let u=new Map;return u.set(a.slice(s.length),i.get(a)),new Tr(u,t)}}return new Tr(r,t)}clear(){this._size=void 0,this._tree.clear()}delete(t){return this._size=void 0,VO(this._tree,t)}entries(){return new Ua(this,nb)}forEach(t){for(let[r,n]of this)t(r,n,this)}fuzzyGet(t,r){return sb(this._tree,t,r)}get(t){let r=Qf(this._tree,t);return r!==void 0?r.get(nt):void 0}has(t){let r=Qf(this._tree,t);return r!==void 0&&r.has(nt)}keys(){return new Ua(this,Wf)}set(t,r){if(typeof t!="string")throw new Error("key must be a string");return this._size=void 0,$f(this._tree,t).set(nt,r),this}get size(){if(this._size)return this._size;this._size=0;let t=this.entries();for(;!t.next().done;)this._size+=1;return this._size}update(t,r){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;let n=$f(this._tree,t);return n.set(nt,r(n.get(nt))),this}fetch(t,r){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;let n=$f(this._tree,t),i=n.get(nt);return i===void 0&&n.set(nt,i=r()),i}values(){return new Ua(this,Yf)}[Symbol.iterator](){return this.entries()}static from(t){let r=new Tr;for(let[n,i]of t)r.set(n,i);return r}static fromObject(t){return Tr.from(Object.entries(t))}},Wo=(e,t,r=[])=>{if(t.length===0||e==null)return[e,r];for(let n of e.keys())if(n!==nt&&t.startsWith(n))return r.push([e,n]),Wo(e.get(n),t.slice(n.length),r);return r.push([e,t]),Wo(void 0,"",r)},Qf=(e,t)=>{if(t.length===0||e==null)return e;for(let r of e.keys())if(r!==nt&&t.startsWith(r))return Qf(e.get(r),t.slice(r.length))},$f=(e,t)=>{let r=t.length;e:for(let n=0;e&&n<r;){for(let s of e.keys())if(s!==nt&&t[n]===s[0]){let a=Math.min(r-n,s.length),u=1;for(;u<a&&t[n+u]===s[u];)++u;let o=e.get(s);if(u===s.length)e=o;else{let c=new Map;c.set(s.slice(u),o),e.set(t.slice(n,n+u),c),e.delete(s),e=c}n+=u;continue e}let i=new Map;return e.set(t.slice(n),i),i}return e},VO=(e,t)=>{let[r,n]=Wo(e,t);if(r!==void 0){if(r.delete(nt),r.size===0)ab(n);else if(r.size===1){let[i,s]=r.entries().next().value;ub(n,i,s)}}},ab=e=>{if(e.length===0)return;let[t,r]=Xf(e);if(t.delete(r),t.size===0)ab(e.slice(0,-1));else if(t.size===1){let[n,i]=t.entries().next().value;n!==nt&&ub(e.slice(0,-1),n,i)}},ub=(e,t,r)=>{if(e.length===0)return;let[n,i]=Xf(e);n.set(i+t,r),n.delete(i)},Xf=e=>e[e.length-1];var Zf="or",ob="and",KO="and_not",Ga=class{constructor(t){if(t?.fields==null)throw new Error('MiniSearch: option "fields" must be provided');let r=t.autoVacuum==null||t.autoVacuum===!0?nd:t.autoVacuum;this._options=Fe(J(J({},ed),t),{autoVacuum:r,searchOptions:J(J({},cb),t.searchOptions||{}),autoSuggestOptions:J(J({},XO),t.autoSuggestOptions||{})}),this._index=new Tr,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=rd,this.addFields(this._options.fields)}add(t){let{extractField:r,tokenize:n,processTerm:i,fields:s,idField:a}=this._options,u=r(t,a);if(u==null)throw new Error(`MiniSearch: document does not have ID field "${a}"`);if(this._idToShortId.has(u))throw new Error(`MiniSearch: duplicate ID ${u}`);let o=this.addDocumentId(u);this.saveStoredFields(o,t);for(let c of s){let d=r(t,c);if(d==null)continue;let h=n(d.toString(),c),f=this._fieldIds[c],p=new Set(h).size;this.addFieldLength(o,f,this._documentCount-1,p);for(let A of h){let b=i(A,c);if(Array.isArray(b))for(let D of b)this.addTerm(f,o,D);else b&&this.addTerm(f,o,b)}}}addAll(t){for(let r of t)this.add(r)}addAllAsync(t,r={}){let{chunkSize:n=10}=r,i={chunk:[],promise:Promise.resolve()},{chunk:s,promise:a}=t.reduce(({chunk:u,promise:o},c,d)=>(u.push(c),(d+1)%n==0?{chunk:[],promise:o.then(()=>new Promise(h=>setTimeout(h,0))).then(()=>this.addAll(u))}:{chunk:u,promise:o}),i);return a.then(()=>this.addAll(s))}remove(t){let{tokenize:r,processTerm:n,extractField:i,fields:s,idField:a}=this._options,u=i(t,a);if(u==null)throw new Error(`MiniSearch: document does not have ID field "${a}"`);let o=this._idToShortId.get(u);if(o==null)throw new Error(`MiniSearch: cannot remove document with ID ${u}: it is not in the index`);for(let c of s){let d=i(t,c);if(d==null)continue;let h=r(d.toString(),c),f=this._fieldIds[c],p=new Set(h).size;this.removeFieldLength(o,f,this._documentCount,p);for(let A of h){let b=n(A,c);if(Array.isArray(b))for(let D of b)this.removeTerm(f,o,D);else b&&this.removeTerm(f,o,b)}}this._storedFields.delete(o),this._documentIds.delete(o),this._idToShortId.delete(u),this._fieldLength.delete(o),this._documentCount-=1}removeAll(t){if(t)for(let r of t)this.remove(r);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new Tr,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(t){let r=this._idToShortId.get(t);if(r==null)throw new Error(`MiniSearch: cannot discard document with ID ${t}: it is not in the index`);this._idToShortId.delete(t),this._documentIds.delete(r),this._storedFields.delete(r),(this._fieldLength.get(r)||[]).forEach((n,i)=>{this.removeFieldLength(r,i,this._documentCount,n)}),this._fieldLength.delete(r),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;let{minDirtFactor:t,minDirtCount:r,batchSize:n,batchWait:i}=this._options.autoVacuum;this.conditionalVacuum({batchSize:n,batchWait:i},{minDirtCount:r,minDirtFactor:t})}discardAll(t){let r=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(let n of t)this.discard(n)}finally{this._options.autoVacuum=r}this.maybeAutoVacuum()}replace(t){let{idField:r,extractField:n}=this._options,i=n(t,r);this.discard(i),this.add(t)}vacuum(t={}){return this.conditionalVacuum(t)}conditionalVacuum(t,r){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&r,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{let n=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=rd,this.performVacuuming(t,n)}),this._enqueuedVacuum)):this.vacuumConditionsMet(r)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(t),this._currentVacuum)}async performVacuuming(t,r){let n=this._dirtCount;if(this.vacuumConditionsMet(r)){let i=t.batchSize||td.batchSize,s=t.batchWait||td.batchWait,a=1;for(let[u,o]of this._index){for(let[c,d]of o)for(let[h]of d)this._documentIds.has(h)||(d.size<=1?o.delete(c):d.delete(h));this._index.get(u).size===0&&this._index.delete(u),a%i==0&&await new Promise(c=>setTimeout(c,s)),a+=1}this._dirtCount-=n}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(t){if(t==null)return!0;let{minDirtCount:r,minDirtFactor:n}=t;return r=r||nd.minDirtCount,n=n||nd.minDirtFactor,this.dirtCount>=r&&this.dirtFactor>=n}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(t){return this._idToShortId.has(t)}getStoredFields(t){let r=this._idToShortId.get(t);if(r!=null)return this._storedFields.get(r)}search(t,r={}){let n=this.executeQuery(t,r),i=[];for(let[s,{score:a,terms:u,match:o}]of n){let c=u.length||1,d={id:this._documentIds.get(s),score:a*c,terms:Object.keys(o),queryTerms:u,match:o};Object.assign(d,this._storedFields.get(s)),(r.filter==null||r.filter(d))&&i.push(d)}return t===Ga.wildcard&&r.boostDocument==null&&this._options.searchOptions.boostDocument==null||i.sort(fb),i}autoSuggest(t,r={}){r=J(J({},this._options.autoSuggestOptions),r);let n=new Map;for(let{score:s,terms:a}of this.search(t,r)){let u=a.join(" "),o=n.get(u);o!=null?(o.score+=s,o.count+=1):n.set(u,{score:s,terms:a,count:1})}let i=[];for(let[s,{score:a,terms:u,count:o}]of n)i.push({suggestion:s,terms:u,score:a/o});return i.sort(fb),i}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(t,r){if(r==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(t),r)}static async loadJSONAsync(t,r){if(r==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(t),r)}static getDefault(t){if(ed.hasOwnProperty(t))return Jf(ed,t);throw new Error(`MiniSearch: unknown option "${t}"`)}static loadJS(t,r){let{index:n,documentIds:i,fieldLength:s,storedFields:a,serializationVersion:u}=t,o=this.instantiateMiniSearch(t,r);o._documentIds=Yo(i),o._fieldLength=Yo(s),o._storedFields=Yo(a);for(let[c,d]of o._documentIds)o._idToShortId.set(d,c);for(let[c,d]of n){let h=new Map;for(let f of Object.keys(d)){let p=d[f];u===1&&(p=p.ds),h.set(parseInt(f,10),Yo(p))}o._index.set(c,h)}return o}static async loadJSAsync(t,r){let{index:n,documentIds:i,fieldLength:s,storedFields:a,serializationVersion:u}=t,o=this.instantiateMiniSearch(t,r);o._documentIds=await Qo(i),o._fieldLength=await Qo(s),o._storedFields=await Qo(a);for(let[d,h]of o._documentIds)o._idToShortId.set(h,d);let c=0;for(let[d,h]of n){let f=new Map;for(let p of Object.keys(h)){let A=h[p];u===1&&(A=A.ds),f.set(parseInt(p,10),await Qo(A))}++c%1e3==0&&await hb(0),o._index.set(d,f)}return o}static instantiateMiniSearch(t,r){let{documentCount:n,nextId:i,fieldIds:s,averageFieldLength:a,dirtCount:u,serializationVersion:o}=t;if(o!==1&&o!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");let c=new Ga(r);return c._documentCount=n,c._nextId=i,c._idToShortId=new Map,c._fieldIds=s,c._avgFieldLength=a,c._dirtCount=u||0,c._index=new Tr,c}executeQuery(t,r={}){if(t===Ga.wildcard)return this.executeWildcardQuery(r);if(typeof t!="string"){let f=Fe(J(J({},r),t),{queries:void 0}),p=t.queries.map(A=>this.executeQuery(A,f));return this.combineResults(p,f.combineWith)}let{tokenize:n,processTerm:i,searchOptions:s}=this._options,a=J(J({tokenize:n,processTerm:i},s),r),{tokenize:u,processTerm:o}=a,h=u(t).flatMap(f=>o(f)).filter(f=>!!f).map($O(a)).map(f=>this.executeQuerySpec(f,a));return this.combineResults(h,a.combineWith)}executeQuerySpec(t,r){let n=J(J({},this._options.searchOptions),r),i=(n.fields||this._options.fields).reduce((b,D)=>Fe(J({},b),{[D]:Jf(n.boost,D)||1}),{}),{boostDocument:s,weights:a,maxFuzzy:u,bm25:o}=n,{fuzzy:c,prefix:d}=J(J({},cb.weights),a),h=this._index.get(t.term),f=this.termResults(t.term,t.term,1,h,i,s,o),p,A;if(t.prefix&&(p=this._index.atPrefix(t.term)),t.fuzzy){let b=t.fuzzy===!0?.2:t.fuzzy,D=b<1?Math.min(u,Math.round(t.term.length*b)):b;D&&(A=this._index.fuzzyGet(t.term,D))}if(p)for(let[b,D]of p){let g=b.length-t.term.length;if(!g)continue;A?.delete(b);let v=d*b.length/(b.length+.3*g);this.termResults(t.term,b,v,D,i,s,o,f)}if(A)for(let b of A.keys()){let[D,g]=A.get(b);if(!g)continue;let v=c*b.length/(b.length+g);this.termResults(t.term,b,v,D,i,s,o,f)}return f}executeWildcardQuery(t){let r=new Map,n=J(J({},this._options.searchOptions),t);for(let[i,s]of this._documentIds){let a=n.boostDocument?n.boostDocument(s,"",this._storedFields.get(i)):1;r.set(i,{score:a,terms:[],match:{}})}return r}combineResults(t,r=Zf){if(t.length===0)return new Map;let n=r.toLowerCase(),i=WO[n];if(!i)throw new Error(`Invalid combination operator: ${r}`);return t.reduce(i)||new Map}toJSON(){let t=[];for(let[r,n]of this._index){let i={};for(let[s,a]of n)i[s]=Object.fromEntries(a);t.push([r,i])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:t,serializationVersion:2}}termResults(t,r,n,i,s,a,u,o=new Map){if(i==null)return o;for(let c of Object.keys(s)){let d=s[c],h=this._fieldIds[c],f=i.get(h);if(f==null)continue;let p=f.size,A=this._avgFieldLength[h];for(let b of f.keys()){if(!this._documentIds.has(b)){this.removeTerm(h,b,r),p-=1;continue}let D=a?a(this._documentIds.get(b),r,this._storedFields.get(b)):1;if(!D)continue;let g=f.get(b),v=this._fieldLength.get(b)[h],I=QO(g,p,this._documentCount,v,A,u),T=n*d*D*I,E=o.get(b);if(E){E.score+=T,ZO(E.terms,t);let C=Jf(E.match,r);C?C.push(c):E.match[r]=[c]}else o.set(b,{score:T,terms:[t],match:{[r]:[c]}})}}return o}addTerm(t,r,n){let i=this._index.fetch(n,db),s=i.get(t);if(s==null)s=new Map,s.set(r,1),i.set(t,s);else{let a=s.get(r);s.set(r,(a||0)+1)}}removeTerm(t,r,n){if(!this._index.has(n)){this.warnDocumentChanged(r,t,n);return}let i=this._index.fetch(n,db),s=i.get(t);s==null||s.get(r)==null?this.warnDocumentChanged(r,t,n):s.get(r)<=1?s.size<=1?i.delete(t):s.delete(r):s.set(r,s.get(r)-1),this._index.get(n).size===0&&this._index.delete(n)}warnDocumentChanged(t,r,n){for(let i of Object.keys(this._fieldIds))if(this._fieldIds[i]===r){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(t)} has changed before removal: term "${n}" was not present in field "${i}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(t){let r=this._nextId;return this._idToShortId.set(t,r),this._documentIds.set(r,t),this._documentCount+=1,this._nextId+=1,r}addFields(t){for(let r=0;r<t.length;r++)this._fieldIds[t[r]]=r}addFieldLength(t,r,n,i){let s=this._fieldLength.get(t);s==null&&this._fieldLength.set(t,s=[]),s[r]=i;let u=(this._avgFieldLength[r]||0)*n+i;this._avgFieldLength[r]=u/(n+1)}removeFieldLength(t,r,n,i){if(n===1){this._avgFieldLength[r]=0;return}let s=this._avgFieldLength[r]*n-i;this._avgFieldLength[r]=s/(n-1)}saveStoredFields(t,r){let{storeFields:n,extractField:i}=this._options;if(n==null||n.length===0)return;let s=this._storedFields.get(t);s==null&&this._storedFields.set(t,s={});for(let a of n){let u=i(r,a);u!==void 0&&(s[a]=u)}}},bs=Ga;bs.wildcard=Symbol("*");var Jf=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0,WO={[Zf]:(e,t)=>{for(let r of t.keys()){let n=e.get(r);if(n==null)e.set(r,t.get(r));else{let{score:i,terms:s,match:a}=t.get(r);n.score=n.score+i,n.match=Object.assign(n.match,a),lb(n.terms,s)}}return e},[ob]:(e,t)=>{let r=new Map;for(let n of t.keys()){let i=e.get(n);if(i==null)continue;let{score:s,terms:a,match:u}=t.get(n);lb(i.terms,a),r.set(n,{score:i.score+s,terms:i.terms,match:Object.assign(i.match,u)})}return r},[KO]:(e,t)=>{for(let r of t.keys())e.delete(r);return e}},YO={k:1.2,b:.7,d:.5},QO=(e,t,r,n,i,s)=>{let{k:a,b:u,d:o}=s;return Math.log(1+(r-t+.5)/(t+.5))*(o+e*(a+1)/(e+a*(1-u+u*n/i)))},$O=e=>(t,r,n)=>{let i=typeof e.fuzzy=="function"?e.fuzzy(t,r,n):e.fuzzy||!1,s=typeof e.prefix=="function"?e.prefix(t,r,n):e.prefix===!0;return{term:t,fuzzy:i,prefix:s}},ed={idField:"id",extractField:(e,t)=>e[t],tokenize:e=>e.split(JO),processTerm:e=>e.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(e,t)=>{typeof console?.[e]=="function"&&console[e](t)},autoVacuum:!0},cb={combineWith:Zf,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:YO},XO={combineWith:ob,prefix:(e,t,r)=>t===r.length-1},td={batchSize:1e3,batchWait:10},rd={minDirtFactor:.1,minDirtCount:20},nd=J(J({},td),rd),ZO=(e,t)=>{e.includes(t)||e.push(t)},lb=(e,t)=>{for(let r of t)e.includes(r)||e.push(r)},fb=({score:e},{score:t})=>t-e,db=()=>new Map,Yo=e=>{let t=new Map;for(let r of Object.keys(e))t.set(parseInt(r,10),e[r]);return t},Qo=async e=>{let t=new Map,r=0;for(let n of Object.keys(e))t.set(parseInt(n,10),e[n]),++r%1e3==0&&await hb(0);return t},hb=e=>new Promise(t=>setTimeout(t,e)),JO=/[\n\r\p{Z}\p{P}]/u;ir();var xy=Xe(require("obsidian"));Ea();Or();ir();var Sy=Dy(),Lh=class{constructor(t){this.plugin=t}tokenizeForIndexing(t){try{let r=this.tokenizeWords(t),n=[];if(this.plugin.settings.tokenizeUrls)try{n=Sy(t)}catch(s){ve("Error extracting urls",s)}let i=this.tokenizeTokens(t,{skipChs:!0});return i=[...i,...i.flatMap(ml)],i=[...i,...i.flatMap(pl)],i=[...i,...r],n.length&&(i=[...i,...n]),i=[...new Set(i)],i}catch(r){return console.error("Error tokenizing text, skipping document",r),[]}}tokenizeForSearch(t){let r=Sy(t);t=r.reduce((i,s)=>i.replace(s,""),t);let n=[...this.tokenizeTokens(t),...r].filter(Boolean);return{combineWith:"OR",queries:[{combineWith:"AND",queries:n},{combineWith:"AND",queries:this.tokenizeWords(t).filter(Boolean)},{combineWith:"AND",queries:n.flatMap(ml)},{combineWith:"AND",queries:n.flatMap(pl)}]}}tokenizeWords(t,{skipChs:r=!1}={}){let n=t.split(u0);return r?n:this.tokenizeChsWord(n)}tokenizeTokens(t,{skipChs:r=!1}={}){let n=t.split(sa);return r?n:this.tokenizeChsWord(n)}tokenizeChsWord(t){let r=this.plugin.getChsSegmenter();return r?t.flatMap(n=>i0.test(n)?r.cut(n,{search:!0}):[n]):t}};var Mh=class{constructor(t){this.plugin=t;this.indexedDocuments=new Map;this.tokenizer=new Lh(t),this.minisearch=new bs(this.getOptions())}async loadCache(){let t=await this.plugin.database.getMinisearchCache();return t?(this.minisearch=await bs.loadJSAsync(t.data,this.getOptions()),this.indexedDocuments=new Map(t.paths.map(r=>[r.path,r.mtime])),!0):(console.log("Omnisearch - No cache found"),!1)}getDiff(t){let r=new Map(t.map(s=>[s.path,s.mtime])),n=t.filter(s=>!this.indexedDocuments.has(s.path)||this.indexedDocuments.get(s.path)!==s.mtime),i=[...this.indexedDocuments].filter(([s,a])=>!r.has(s)||r.get(s)!==a).map(s=>({path:s[0],mtime:s[1]}));return{toAdd:n,toRemove:i}}async addFromPaths(t){ve("Adding files",t);let r=(await Promise.all(t.map(async i=>await this.plugin.cacheManager.getDocument(i)))).filter(i=>!!i?.path);ve("Sorting documents to first index markdown"),r=zl(r,i=>i.path.endsWith(".md")?0:1),this.removeFromPaths(r.filter(i=>this.indexedDocuments.has(i.path)).map(i=>i.path));let n=E0(r,500);for(let i of n){ve("Indexing into search engine",i),i.forEach(a=>this.indexedDocuments.set(a.path,a.mtime));let s=i.filter(a=>this.minisearch.has(a.path));this.removeFromPaths(s.map(a=>a.path)),await this.minisearch.addAllAsync(i)}}removeFromPaths(t){t.forEach(n=>this.indexedDocuments.delete(n));let r=t.filter(n=>this.minisearch.has(n));this.minisearch.discardAll(r)}async search(t,r){let n=this.plugin.settings;if(t.isEmpty())return[];ve("=== New search ==="),ve("Starting search for",t);let i;switch(n.fuzziness){case"0":i=0;break;case"1":i=.1;break;default:i=.2;break}let s=this.tokenizer.tokenizeForSearch(t.segmentsToStr());ve(JSON.stringify(s,null,1));let a=this.minisearch.search(s,{prefix:h=>h.length>=r.prefixLength,fuzzy:h=>h.length<=3?0:h.length<=5?i/2:i,boost:{basename:n.weightBasename,aliases:n.weightBasename,displayTitle:n.weightBasename,directory:n.weightDirectory,headings1:n.weightH1,headings2:n.weightH2,headings3:n.weightH3,tags:n.weightUnmarkedTags,unmarkedTags:n.weightUnmarkedTags},tokenize:h=>[h]});if(ve("Found",a.length,"results"),t.query.ext?.length&&(a=a.filter(h=>{let f="."+h.id.split(".").pop();return t.query.ext?.some(p=>f.startsWith(p.startsWith(".")?p:"."+p))})),t.query.path&&(a=a.filter(h=>t.query.path?.some(f=>h.id.toLowerCase().includes(f.toLowerCase())))),t.query.exclude.path&&(a=a.filter(h=>!t.query.exclude.path?.some(f=>h.id.toLowerCase().includes(f.toLowerCase())))),!a.length)return[];if(r.singleFilePath)return a.filter(h=>h.id===r.singleFilePath);ve("searching with downranked folders",n.downrankedFoldersFilters),n.hideExcluded?a=a.filter(h=>!(this.plugin.app.metadataCache.isUserIgnored&&this.plugin.app.metadataCache.isUserIgnored(h.id))):a.forEach(h=>{this.plugin.app.metadataCache.isUserIgnored&&this.plugin.app.metadataCache.isUserIgnored(h.id)&&(h.score/=10)});let u=t.getTags();for(let h of a){let f=h.id;if(n.downrankedFoldersFilters.length>0){let A=!1;n.downrankedFoldersFilters.forEach(g=>{f.startsWith(g)&&(f===g||f.startsWith(g+"/"))&&(ve("searching with downranked folders in path: ",f),A=!0)}),A&&(h.score/=10);let b=f.split("/"),D=b.length;for(let g=0;g<D;g++){let v=b[g];if(n.downrankedFoldersFilters.includes(v)){h.score/=10;break}}}let p=this.plugin.app.metadataCache.getCache(f);if(p)for(let{name:A,weight:b}of n.weightCustomProperties){let D=p?.frontmatter?.[A];D&&h.terms.some(g=>D.includes(g))&&(ve(`Boosting field "${A}" x${b} for ${f}`),h.score*=b)}for(let A of u)(h.tags??[]).includes(A)&&(h.score*=100)}ve("Sorting and limiting results"),a=a.sort((h,f)=>f.score-h.score).slice(0,50),a.length&&ve("First result:",a[0]);let o=await Promise.all(a.map(async h=>await this.plugin.cacheManager.getDocument(h.id))),c=t.getExactTerms();c.length&&(ve("Filtering with quoted terms: ",c),a=a.filter(h=>{let f=o.find(b=>b.path===h.id),p=f?.path.toLowerCase()??"",A=(f?.cleanedContent??"").toLowerCase();return c.every(b=>A.includes(b)||Qr(p,this.plugin.settings.ignoreArabicDiacritics).includes(b))}));let d=t.query.exclude.text;return d.length&&(ve("Filtering with exclusions"),a=a.filter(h=>{let f=(o.find(p=>p.path===h.id)?.content??"").toLowerCase();return d.every(p=>!f.includes(p))})),ve("Deduping"),a=a.filter((h,f,p)=>p.findIndex(A=>A.id===h.id)===f),a}async getSuggestions(t,r){let n;this.plugin.settings.simpleSearch?n=await this.search(t,{prefixLength:3,singleFilePath:r?.singleFilePath}):n=await this.search(t,{prefixLength:1,singleFilePath:r?.singleFilePath});let i=await Promise.all(n.map(async a=>await this.plugin.cacheManager.getDocument(a.id)));return n.map(a=>{ve("Locating matches for",a.id);let u=i.find(h=>h.path===a.id);u||(console.warn(`Omnisearch - Note "${a.id}" not in the live cache`),u={content:"",basename:a.id,path:a.id});let o=[...a.terms,...t.getExactTerms(),...t.getTags()];ve("Matching tokens:",o),ve("Getting matches locations...");let c=this.plugin.textProcessor.getMatches(u.content,o,t);return ve(`Matches for ${u.basename}`,c),J({score:a.score,foundWords:o,matches:c},u)})}async writeToCache(){await this.plugin.database.writeMinisearchCache(this.minisearch,this.indexedDocuments)}getOptions(){return{tokenize:this.tokenizer.tokenizeForIndexing.bind(this.tokenizer),extractField:(t,r)=>{if(r==="directory"){let n=t.path.split("/");return n.pop(),n.join("/")}return t[r]},processTerm:t=>(this.plugin.settings.ignoreDiacritics?Qr(t,this.plugin.settings.ignoreArabicDiacritics):t).toLowerCase(),idField:"path",fields:["basename","directory","aliases","content","headings1","headings2","headings3"],storeFields:["tags"],logger(t,r,n){n==="version_conflict"&&new xy.Notice("Omnisearch - Your index cache may be incorrect or corrupted. If this message keeps appearing, go to Settings to clear the cache.",5e3)}}}};var Oy=Xe(require("obsidian"));ir();aa();var kh=class{constructor(t){this.plugin=t;this.nextQueryIsEmpty=!1;this.documents=new Map}async addToLiveCache(t){try{let r=await this.getAndMapIndexedDocument(t);if(!r.path){console.error(`Missing .path field in IndexedDocument "${r.basename}", skipping`);return}this.documents.set(t,r)}catch(r){console.warn(`Omnisearch: Error while adding "${t}" to live cache`,r),this.removeFromLiveCache(t)}}removeFromLiveCache(t){this.documents.delete(t)}async getDocument(t){return this.documents.has(t)?this.documents.get(t):(ve("Generating IndexedDocument from",t),await this.addToLiveCache(t),this.documents.get(t))}async addToSearchHistory(t){if(!t){this.nextQueryIsEmpty=!0;return}this.nextQueryIsEmpty=!1;let r=this.plugin.database,n=await r.searchHistory.toArray();n=n.filter(i=>i.query!==t).reverse(),n.unshift({query:t}),n=n.slice(0,10),await r.searchHistory.clear(),await r.searchHistory.bulkAdd(n)}async getSearchHistory(){let t=(await this.plugin.database.searchHistory.toArray()).reverse().map(r=>r.query);return this.nextQueryIsEmpty&&t.unshift(""),t}async getAndMapIndexedDocument(t){let r=this.plugin.app,n=r.vault.getAbstractFileByPath(t);if(!n)throw new Error(`Invalid file path: "${t}"`);if(!(n instanceof Oy.TFile))throw new Error(`Not a TFile: "${t}"`);let i=null,s=this.plugin.getTextExtractor(),a=this.plugin.getAIImageAnalyzer();if(this.plugin.notesIndexer.isFilePlaintext(t))i=await r.vault.cachedRead(n);else if(ri(t)){let d=JSON.parse(await r.vault.cachedRead(n)),h=[];for(let f of d.nodes)f.type==="text"?h.push(f.text):f.type==="file"&&h.push(f.file);for(let f of d.edges.filter(p=>!!p.label))h.push(f.label);i=h.join(`\r
|
||
`)}else if(oa(t))try{let d=JSON.parse(await r.vault.cachedRead(n)),h=[],f=p=>{for(let A in p)typeof p[A]=="object"?f(p[A]):A==="content"&&h.push(p[A])};f(d),i=h.join(`\r
|
||
`)}catch(d){console.error("Omnisearch: Error while parsing Dataloom file",t),console.error(d)}else Tn(t)&&(this.plugin.settings.imagesIndexing&&s?.canFileBeExtracted(t)||this.plugin.settings.aiImageIndexing&&a?.canBeAnalyzed(n))?(this.plugin.settings.imagesIndexing&&s?.canFileBeExtracted(t)&&(i=await s.extractText(n)),this.plugin.settings.aiImageIndexing&&a?.canBeAnalyzed(n)&&(i=await a.analyzeImage(n)+(i??""))):bn(t)&&this.plugin.settings.PDFIndexing&&s?.canFileBeExtracted(t)?i=await s.extractText(n):T0(t)&&this.plugin.settings.officeIndexing&&s?.canFileBeExtracted(t)?i=await s.extractText(n):this.plugin.notesIndexer.isFilenameIndexable(t)&&(i=n.path);i==null&&(console.warn(`Omnisearch: ${i} content for file`,n.path),i="");let u=r.metadataCache.getFileCache(n);if(u){let d=d0(this.plugin.app,n,u);for(let h of d.filter(f=>!this.documents.has(f))){let f=this.plugin.notesIndexer.generateIndexableNonexistingDocument(h,n.path)}if(u.frontmatter?.["excalidraw-plugin"]){let h=u.sections?.filter(f=>f.type==="comment")??[];for(let{start:f,end:p}of h.map(A=>A.position))i=i.substring(0,f.offset-1)+i.substring(p.offset)}}let o=u?.frontmatter?.[this.plugin.settings.displayTitle]??"",c=_0(u);return{basename:n.basename,displayTitle:o,content:i,cleanedContent:m0(Qr(i)),path:n.path,mtime:n.stat.mtime,tags:c,unmarkedTags:c.map(d=>d.replace("#","")),aliases:g0(u).join(""),headings1:u?Fu(u,1).join(" "):"",headings2:u?Fu(u,2).join(" "):"",headings3:u?Fu(u,3).join(" "):""}}};ir();aa();ir();var Fh=class{constructor(t){this.plugin=t;this.notesToReindex=new Set}flagNoteForReindex(t){this.notesToReindex.add(t)}async refreshIndex(){for(let r of this.notesToReindex)ve("Updating file",r.path),await this.plugin.cacheManager.addToLiveCache(r.path);let t=[...this.notesToReindex].map(r=>r.path);t.length&&(this.plugin.searchEngine.removeFromPaths(t),await this.plugin.searchEngine.addFromPaths(t),this.notesToReindex.clear())}isFileIndexable(t){return this.isFilenameIndexable(t)||this.isContentIndexable(t)}isContentIndexable(t){let r=this.plugin.settings,n=!!this.plugin.getTextExtractor(),i=!!this.plugin.getAIImageAnalyzer(),s=n&&r.PDFIndexing,a=n&&r.imagesIndexing,u=i&&r.aiImageIndexing;return this.isFilePlaintext(t)||ri(t)||oa(t)||s&&bn(t)||a&&Tn(t)||u&&Tn(t)}isFilenameIndexable(t){return this.canIndexUnsupportedFiles()||this.isFilePlaintext(t)||ri(t)||oa(t)}canIndexUnsupportedFiles(){return this.plugin.settings.unsupportedFilesIndexing==="yes"||this.plugin.settings.unsupportedFilesIndexing==="default"&&!!this.plugin.app.vault.getConfig("showUnsupportedFiles")}generateIndexableNonexistingDocument(t,r){return t=dl(t),{path:t+(t.endsWith(".md")?"":".md"),basename:t,displayTitle:"",mtime:0,content:"",cleanedContent:"",tags:[],unmarkedTags:[],aliases:"",headings1:"",headings2:"",headings3:"",doesNotExist:!0,parent:r}}isFilePlaintext(t){return[...this.plugin.settings.indexedFileTypes,"md"].some(r=>t.endsWith(`.${r}`))}};Or();ir();var Ny=Xe(require("obsidian"));Ea();var Bh=class{constructor(t){this.plugin=t}highlightText(t,r){let n=`suggestion-highlight omnisearch-highlight ${this.plugin.settings.highlight?"omnisearch-default-highlight":""}`;if(!r.length)return t;try{let i=new RegExp(r.map(u=>{let o=On(u.match);return`\\b${o}\\b${/[a-zA-Z]/.test(u.match)?"":`|${o}`}`}).join("|"),"giu"),s=u=>r.find(c=>u.match(new RegExp(`\\b${On(c.match)}\\b${/[a-zA-Z]/.test(c.match)?"":`|${On(c.match)}`}`,"giu")))?`<span class="${n}">${u}</span>`:u,a=t.replace(i,s);if(a===t){let u=new RegExp(r.map(o=>On(o.match)).join("|"),"giu");a=t.replace(u,s)}return a}catch(i){return console.error("Omnisearch - Error in highlightText()",i),t}}escapeHTML(t){return t.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}stringsToRegex(t){if(!t.length)return/^$/g;t.sort((n,i)=>i.length-n.length);let r=`(${t.map(n=>`\\b${On(n)}\\b|${On(n)}`).join("|")})`;return new RegExp(`${r}`,"gui")}getMatches(t,r,n){let i=this.stringsToRegex(r),s=t;this.plugin.settings.ignoreDiacritics&&(t=Qr(t,this.plugin.settings.ignoreArabicDiacritics));let a=new Date().getTime(),u=null,o=[],c=0;for(;(u=i.exec(t))!==null;){if(++c>=100||new Date().getTime()-a>50){A0("Stopped getMatches at",c,"results");break}let d=u.index,h=d+u[0].length,f=s.substring(d,h).trim();f&&u.index>=0&&o.push({match:f,offset:u.index})}if(n&&(n.query.text.length>1||n.getExactTerms().length>0)){let d=t.indexOf(n.getBestStringForExcerpt());d>-1&&o.find(h=>h.offset===d)&&o.unshift({offset:d,match:n.getBestStringForExcerpt()})}return o}makeExcerpt(t,r){let n=this.plugin.settings;try{let i=r??-1,s=Math.max(0,i-s0),a=Math.min(t.length,i+na);if(i>-1?t=(s>0?"\u2026":"")+t.slice(s,a).trim()+(a<t.length-1?"\u2026":""):t=t.slice(0,na),n.renderLineReturnInExcerpts){let u=new RegExp(/(?:\r\n|\r|\n)/g);t=t.split(u).filter(c=>c).join(`
|
||
`);let o=t.lastIndexOf(`
|
||
`,i-s);o>0&&(t=t.slice(o))}return t=FM(t),n.renderLineReturnInExcerpts&&(t=t.trim().replaceAll(`
|
||
`,"<br>")),t}catch(i){return new Ny.Notice("Omnisearch - Error while creating excerpt, see developer console"),console.error("Omnisearch - Error while creating excerpt"),console.error(i),""}}};function FM(e){return e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}var jh=class extends Ri.Plugin{constructor(t,r){super(t,r);this.apiHttpServer=null;this.settings=mo(this.app);this.database=new Ko(this);this.notesIndexer=new Fh(this);this.textProcessor=new Bh(this);this.searchEngine=new Mh(this);this.cacheManager=new kh(this)}async onload(){if(this.settings=await v_(this),this.addSettingTab(new Vl(this)),Ri.Platform.isMobile||Promise.resolve().then(()=>(My(),Ly)).then(n=>this.apiHttpServer=n.getServer(this)),Kl(this.app)){console.log("Omnisearch - Plugin disabled");return}await jM(this.app),await this.database.clearOldDatabases(),cT(this);let t=this.settings;t.ribbonIcon&&this.addRibbonButton(),ce.disable("vault"),ce.disable("infile"),ce.on("global",Pu.ToggleExcerpts,()=>{ai.set(!t.showExcerpt)}),this.addCommand({id:"show-modal",name:"Vault search",callback:()=>{new Rn(this).open()}}),this.addCommand({id:"show-modal-infile",name:"In-file search",editorCallback:(n,i)=>{i.file&&new us(this,i.file).open()}});let r=this.searchEngine;this.app.workspace.onLayoutReady(async()=>{this.registerEvent(this.app.vault.on("create",n=>{this.notesIndexer.isFileIndexable(n.path)&&(ve("Indexing new file",n.path),r.addFromPaths([n.path]))})),this.registerEvent(this.app.vault.on("delete",n=>{ve("Removing file",n.path),this.cacheManager.removeFromLiveCache(n.path),r.removeFromPaths([n.path])})),this.registerEvent(this.app.vault.on("modify",async n=>{this.notesIndexer.isFileIndexable(n.path)&&this.notesIndexer.flagNoteForReindex(n)})),this.registerEvent(this.app.vault.on("rename",async(n,i)=>{this.notesIndexer.isFileIndexable(n.path)&&(ve("Renaming file",n.path),this.cacheManager.removeFromLiveCache(i),await this.cacheManager.addToLiveCache(n.path),r.removeFromPaths([i]),await r.addFromPaths([n.path]))})),this.refreshIndexCallback=this.notesIndexer.refreshIndex.bind(this.notesIndexer),addEventListener("blur",this.refreshIndexCallback),removeEventListener,await this.executeFirstLaunchTasks(),await this.populateIndex(),this.apiHttpServer&&t.httpApiEnabled&&this.apiHttpServer.listen(t.httpApiPort)})}async executeFirstLaunchTasks(){let t="1.21.0";this.settings.welcomeMessage=t,await this.saveData(this.settings)}async onunload(){delete globalThis.omnisearch,this.refreshIndexCallback&&removeEventListener("blur",this.refreshIndexCallback),await this.database.clearCache(),this.apiHttpServer.close()}addRibbonButton(){this.ribbonButton=this.addRibbonIcon("search","Omnisearch",t=>{new Rn(this).open()})}removeRibbonButton(){this.ribbonButton&&this.ribbonButton.parentNode?.removeChild(this.ribbonButton)}getChsSegmenter(){return this.app.plugins.plugins["cm-chs-patch"]}getTextExtractor(){return this.app.plugins?.plugins?.["text-extractor"]?.api}getAIImageAnalyzer(){return this.app.plugins?.plugins?.["ai-image-analyzer"]?.api}async populateIndex(){console.time("Omnisearch - Indexing total time"),gn.set(nr.ReadingFiles);let t=this.app.vault.getFiles().filter(i=>this.notesIndexer.isFileIndexable(i.path));console.log(`Omnisearch - ${t.length} files total`),console.log(`Omnisearch - Cache is ${Nn()?"enabled":"disabled"}`);let r=this.searchEngine;Nn()&&(console.time("Omnisearch - Loading index from cache"),gn.set(nr.LoadingCache),await r.loadCache()&&console.timeEnd("Omnisearch - Loading index from cache"));let n=r.getDiff(t.map(i=>({path:i.path,mtime:i.stat.mtime})));if(Nn()&&(n.toAdd.length&&console.log("Omnisearch - Total number of files to add/update: "+n.toAdd.length),n.toRemove.length&&console.log("Omnisearch - Total number of files to remove: "+n.toRemove.length)),n.toAdd.length>=1e3&&Nn()&&new Ri.Notice(`Omnisearch - ${n.toAdd.length} files need to be indexed. Obsidian may experience stutters and freezes during the process`,1e4),gn.set(nr.IndexingFiles),r.removeFromPaths(n.toRemove.map(i=>i.path)),await r.addFromPaths(n.toAdd.map(i=>i.path)),(n.toRemove.length||n.toAdd.length)&&Nn()){gn.set(nr.WritingCache);let i=this.settings.useCache;i&&!this.settings.DANGER_forceSaveCache&&(this.settings.useCache=!1,await pe(this)),await r.writeToCache(),i&&(this.settings.useCache=!0,await pe(this))}console.timeEnd("Omnisearch - Indexing total time"),n.toAdd.length>=1e3&&Nn()&&new Ri.Notice("Omnisearch - Your files have been indexed."),gn.set(nr.Done),uT()}};async function jM(e){let t=[`${e.vault.configDir}/plugins/omnisearch/searchIndex.json`,`${e.vault.configDir}/plugins/omnisearch/notesCache.json`,`${e.vault.configDir}/plugins/omnisearch/notesCache.data`,`${e.vault.configDir}/plugins/omnisearch/searchIndex.data`,`${e.vault.configDir}/plugins/omnisearch/historyCache.json`,`${e.vault.configDir}/plugins/omnisearch/pdfCache.data`];for(let r of t)if(await e.vault.adapter.exists(r))try{await e.vault.adapter.remove(r)}catch{}}
|