/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/

var uI=Object.create;var ku=Object.defineProperty;var cI=Object.getOwnPropertyDescriptor;var lI=Object.getOwnPropertyNames;var fI=Object.getPrototypeOf,dI=Object.prototype.hasOwnProperty;var hI=(e,t,r)=>t in e?ku(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var v=(e,t)=>()=>(e&&(t=e(e=0)),t);var Mi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Nn=(e,t)=>{for(var r in t)ku(e,r,{get:t[r],enumerable:!0})},B_=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of lI(t))!dI.call(e,i)&&i!==r&&ku(e,i,{get:()=>t[i],enumerable:!(n=cI(t,i))||n.enumerable});return e};var ln=(e,t,r)=>(r=e!=null?uI(fI(e)):{},B_(t||!e||!e.__esModule?ku(r,"default",{value:e,enumerable:!0}):r,e)),$_=e=>B_(ku({},"__esModule",{value:!0}),e);var zl=(e,t,r)=>(hI(e,typeof t!="symbol"?t+"":t,r),r),hp=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var Fi=(e,t,r)=>(hp(e,t,"read from private field"),r?r.call(e):t.get(e)),Ru=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},pp=(e,t,r,n)=>(hp(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var H_=(e,t,r)=>(hp(e,t,"access private method"),r);var U_,V_=v(()=>{U_="5"});var Wn=v(()=>{V_();typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(U_)});var va,is,as,Bi,Pt,Ht,q_,z_,bt=v(()=>{va="[",is="[!",as="]",Bi={},Pt=Symbol(),Ht=Symbol("filename"),q_=Symbol("hmr"),z_="http://www.w3.org/1999/xhtml"});var Yl,Y_=v(()=>{Yl=!0});var K_,se,j_=v(()=>{K_=globalThis.process?.env?.NODE_ENV,se=K_&&!K_.toLowerCase().startsWith("prod")});var W_=v(()=>{});var mt=v(()=>{Y_();j_();W_()});var xr,ss,Lu,G_,Nt=v(()=>{xr=Symbol("$state"),ss=Symbol("$state metadata"),Lu=Symbol("legacy props"),G_=Symbol("")});function xa(e){return typeof e=="function"}function Z_(e){return e()}function os(e){for(var t=0;t<e.length;t++)e[t]()}var fn,Q_,Pu,mp,Kt,Kr,Kl,gp,X_,Ta,Ut,it=v(()=>{fn=Array.isArray,Q_=Array.prototype.indexOf,Pu=Array.from,mp=Object.keys,Kt=Object.defineProperty,Kr=Object.getOwnPropertyDescriptor,Kl=Object.getOwnPropertyDescriptors,gp=Object.prototype,X_=Array.prototype,Ta=Object.getPrototypeOf;Ut=()=>{}});function J_(){var e=Mu;Mu=[],os(e)}function eb(){var e=Fu;Fu=[],os(e)}function dn(e){Mu.length===0&&queueMicrotask(J_),Mu.push(e)}function tb(e){Fu.length===0&&pI(eb),Fu.push(e)}function _p(){Mu.length>0&&J_(),Fu.length>0&&eb()}var pI,Mu,Fu,On=v(()=>{it();pI=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback,Mu=[],Fu=[]});function jl(e){return e===this.v}function eo(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function to(e){return!eo(e,this.v)}var us=v(()=>{});function bp(){if(se){let e=new Error("bind_invalid_checkbox_value\nUsing `bind:value` together with a checkbox input is not allowed. Use `bind:checked` instead\nhttps://svelte.dev/e/bind_invalid_checkbox_value");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/bind_invalid_checkbox_value")}function rb(){if(se){let e=new Error(`derived_references_self
A derived value cannot reference itself recursively
https://svelte.dev/e/derived_references_self`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/derived_references_self")}function nb(e){if(se){let t=new Error(`effect_in_teardown
\`${e}\` cannot be used inside an effect cleanup function
https://svelte.dev/e/effect_in_teardown`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function ib(){if(se){let e=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ab(e){if(se){let t=new Error(`effect_orphan
\`${e}\` can only be used inside an effect (e.g. during component initialisation)
https://svelte.dev/e/effect_orphan`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_orphan")}function sb(){if(se){let e=new Error(`effect_update_depth_exceeded
Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
https://svelte.dev/e/effect_update_depth_exceeded`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ob(){if(se){let e=new Error(`hydration_failed
Failed to hydrate the application
https://svelte.dev/e/hydration_failed`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/hydration_failed")}function ub(e){if(se){let t=new Error(`props_invalid_value
Cannot do \`bind:${e}={undefined}\` when \`${e}\` has a fallback value
https://svelte.dev/e/props_invalid_value`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/props_invalid_value")}function cb(e){if(se){let t=new Error(`rune_outside_svelte
The \`${e}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
https://svelte.dev/e/rune_outside_svelte`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function lb(){if(se){let e=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function fb(){if(se){let e=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function db(){if(se){let e=new Error("state_unsafe_local_read\nReading state that was created inside the same derived is forbidden. Consider using `untrack` to read locally created state\nhttps://svelte.dev/e/state_unsafe_local_read");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function hb(){if(se){let e=new Error("state_unsafe_mutation\nUpdating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var hn=v(()=>{mt()});function pb(){gi=!0}var gi,_i,$i=v(()=>{gi=!1,_i=!1});var Ep=v(()=>{mt()});var Bu=v(()=>{mt();Ep();it()});function Hi(e){let t=Error(),r=t.stack;if(r){let n=r.split(`
`),i=[`
`];for(let a=0;a<n.length;a++){let u=n[a];if(u!=="Error"){if(u.includes("validate_each_keys"))return null;u.includes("svelte/src/internal")||i.push(u)}}if(i.length===1)return null;Kt(t,"stack",{value:i.join(`
`)}),Kt(t,"name",{value:`${e}Error`})}return t}var $u,ro=v(()=>{bt();Bu();it();Nt();He();Ge();$u=null});function yp(e){cs=e}function Mt(e,t){var r={f:0,v:e,reactions:null,equals:jl,rv:0,wv:0};return se&&_i&&(r.created=t??Hi("CreatedAt"),r.debug=null),r}function Xn(e){return gb(Mt(e))}function bi(e,t=!1){let r=Mt(e);return t||(r.equals=to),gi&&Pe!==null&&Pe.l!==null&&(Pe.l.s??=[]).push(r),r}function ft(e,t=!1){return gb(bi(e,t))}function gb(e){return $e!==null&&!gn&&$e.f&2&&(Gn===null?bb([e]):Gn.push(e)),e}function oe(e,t){return $e!==null&&!gn&&Ei()&&$e.f&18&&(Gn===null||!Gn.includes(e))&&hb(),io(e,t)}function io(e,t){if(!e.equals(t)){var r=e.v;if(fs?no.set(e,t):no.set(e,r),e.v=t,e.wv=Uu(),se&&_i&&(e.updated=Hi("UpdatedAt"),Oe!=null&&(e.trace_need_increase=!0,e.trace_v??=r)),_b(e,2048),Ei()&&Oe!==null&&Oe.f&1024&&!(Oe.f&96)&&(pn===null?Eb([e]):pn.push(e)),se&&cs.size>0){let n=Array.from(cs);for(let i of n)i.f&1024&&Ar(i,4096),Vi(i)&&ds(i);cs.clear()}}return t}function _b(e,t){var r=e.reactions;if(r!==null)for(var n=Ei(),i=r.length,a=0;a<i;a++){var u=r[a],l=u.f;if(!(l&2048)&&!(!n&&u===Oe)){if(se&&l&262144){cs.add(u);continue}Ar(u,t),l&1280&&(l&2?_b(u,4096):ao(u))}}}var cs,no,yr=v(()=>{mt();Ge();us();Nt();hn();$i();ro();Ot();cs=new Set,no=new Map});function kn(e){var t=2050,r=$e!==null&&$e.f&2?$e:null;Oe===null||r!==null&&r.f&256?t|=256:Oe.f|=1048576;let n={ctx:Pe,deps:null,effects:null,equals:jl,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??Oe};return se&&_i&&(n.created=Hi("CreatedAt")),n}function Br(e){let t=kn(e);return t.equals=to,t}function Wl(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)lr(t[r])}}function mI(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t;t=t.parent}return null}function gI(e){var t,r=Oe;if(Wt(mI(e)),se){let n=cs;yp(new Set);try{Ap.includes(e)&&rb(),Ap.push(e),Wl(e),t=Gl(e)}finally{Wt(r),yp(n),Ap.pop()}}else try{Wl(e),t=Gl(e)}finally{Wt(r)}return t}function Sp(e){var t=gI(e),r=(qi||e.f&256)&&e.deps!==null?4096:1024;Ar(e,r),e.equals(t)||(e.v=t,e.wv=Uu())}var Ap,hs=v(()=>{mt();Nt();Ge();us();hn();He();yr();ro();$i();Ot();Ap=[]});function vb(e,t,r){se?console.warn(`%c[svelte] hydration_attribute_changed
%cThe \`${e}\` attribute on \`${t}\` changed its value between server and client renders. The client value, \`${r}\`, will be ignored in favour of the server value
https://svelte.dev/e/hydration_attribute_changed`,so,oo):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Tb(e){se?console.warn(`%c[svelte] hydration_html_changed
%c${e?`The value of an \`{@html ...}\` block ${e} changed between server and client renders. The client value will be ignored in favour of the server value`:"The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}
https://svelte.dev/e/hydration_html_changed`,so,oo):console.warn("https://svelte.dev/e/hydration_html_changed")}function ps(e){se?console.warn(`%c[svelte] hydration_mismatch
%c${e?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${e}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
https://svelte.dev/e/hydration_mismatch`,so,oo):console.warn("https://svelte.dev/e/hydration_mismatch")}function xb(){se?console.warn(`%c[svelte] lifecycle_double_unmount
%cTried to unmount a component that was not mounted
https://svelte.dev/e/lifecycle_double_unmount`,so,oo):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Cp(e,t){se?console.warn(`%c[svelte] ownership_invalid_mutation
%c${e?`${e} mutated a value owned by ${t}. This is strongly discouraged. Consider passing values to child components with \`bind:\`, or use a callback instead`:"Mutating a value outside the component that created it is strongly discouraged. Consider passing values to child components with `bind:`, or use a callback instead"}
https://svelte.dev/e/ownership_invalid_mutation`,so,oo):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function Ql(e){se?console.warn(`%c[svelte] state_proxy_equality_mismatch
%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${e}\` will produce unexpected results
https://svelte.dev/e/state_proxy_equality_mismatch`,so,oo):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var so,oo,Wr=v(()=>{mt();so="font-weight: bold",oo="font-weight: normal"});function $r(e){ge=e}function wt(e){if(e===null)throw ps(),Bi;return De=e}function Vt(){return wt(fr(De))}function Te(e){if(ge){if(fr(De)!==null)throw ps(),Bi;De=e}}function wr(e=1){if(ge){for(var t=e,r=De;t--;)r=fr(r);De=r}}function uo(){for(var e=0,t=De;;){if(t.nodeType===8){var r=t.data;if(r===as){if(e===0)return t;e-=1}else(r===va||r===is)&&(e+=1)}var n=fr(t);t.remove(),t=n}}var ge,De,Et=v(()=>{bt();Wr();Gr();ge=!1});function er(e,t=null,r){var n=null;if(se&&_i&&(n=Hi("CreatedAt")),typeof e!="object"||e===null||xr in e)return e;let i=Ta(e);if(i!==gp&&i!==X_)return e;var a=new Map,u=fn(e),l=Mt(0);u&&a.set("length",Mt(e.length,n));var d;if(se)if(d={parent:t,owners:null},r){let p=r.v?.[ss]?.owners;d.owners=p?new Set(p):null}else d.owners=t===null?Pe!==null?new Set([Pe.function]):null:new Set;return new Proxy(e,{defineProperty(p,g,E){(!("value"in E)||E.configurable===!1||E.enumerable===!1||E.writable===!1)&&lb();var _=a.get(g);return _===void 0?(_=Mt(E.value,n),a.set(g,_)):oe(_,er(E.value,d)),!0},deleteProperty(p,g){var E=a.get(g);if(E===void 0)g in p&&a.set(g,Mt(Pt,n));else{if(u&&typeof g=="string"){var _=a.get("length"),y=Number(g);Number.isInteger(y)&&y<_.v&&oe(_,y)}oe(E,Pt),yb(l)}return!0},get(p,g,E){if(se&&g===ss)return d;if(g===xr)return e;var _=a.get(g),y=g in p;if(_===void 0&&(!y||Kr(p,g)?.writable)&&(_=Mt(er(y?p[g]:Pt,d),n),a.set(g,_)),_!==void 0){var C=q(_);if(se){var D=C?.[ss];D&&D?.parent!==d&&Ip(d,D)}return C===Pt?void 0:C}return Reflect.get(p,g,E)},getOwnPropertyDescriptor(p,g){var E=Reflect.getOwnPropertyDescriptor(p,g);if(E&&"value"in E){var _=a.get(g);_&&(E.value=q(_))}else if(E===void 0){var y=a.get(g),C=y?.v;if(y!==void 0&&C!==Pt)return{enumerable:!0,configurable:!0,value:C,writable:!0}}return E},has(p,g){if(se&&g===ss||g===xr)return!0;var E=a.get(g),_=E!==void 0&&E.v!==Pt||Reflect.has(p,g);if(E!==void 0||Oe!==null&&(!_||Kr(p,g)?.writable)){E===void 0&&(E=Mt(_?er(p[g],d):Pt,n),a.set(g,E));var y=q(E);if(y===Pt)return!1}return _},set(p,g,E,_){var y=a.get(g),C=g in p;if(u&&g==="length")for(var D=E;D<y.v;D+=1){var P=a.get(D+"");P!==void 0?oe(P,Pt):D in p&&(P=Mt(Pt,n),a.set(D+"",P))}if(y===void 0?(!C||Kr(p,g)?.writable)&&(y=Mt(void 0,n),oe(y,er(E,d)),a.set(g,y)):(C=y.v!==Pt,oe(y,er(E,d))),se){var N=E?.[ss];N&&N?.parent!==d&&Ip(d,N),Ab(d)}var L=Reflect.getOwnPropertyDescriptor(p,g);if(L?.set&&L.set.call(_,E),!C){if(u&&typeof g=="string"){var H=a.get("length"),R=Number(g);Number.isInteger(R)&&R>=H.v&&oe(H,R+1)}yb(l)}return!0},ownKeys(p){q(l);var g=Reflect.ownKeys(p).filter(y=>{var C=a.get(y);return C===void 0||C.v!==Pt});for(var[E,_]of a)_.v!==Pt&&!(E in p)&&g.push(E);return g},setPrototypeOf(){fb()}})}function yb(e,t=1){oe(e,e.v+t)}function Xl(e){return e!==null&&typeof e=="object"&&xr in e?e[xr]:e}var co=v(()=>{mt();Ge();Ot();it();Vu();yr();Nt();bt();hn();ro();$i()});function wb(){let e=Array.prototype,t=Array.__svelte_cleanup;t&&t();let{indexOf:r,lastIndexOf:n,includes:i}=e;e.indexOf=function(a,u){let l=r.call(this,a,u);if(l===-1){for(let d=u??0;d<this.length;d+=1)if(Xl(this[d])===a){Ql("array.indexOf(...)");break}}return l},e.lastIndexOf=function(a,u){let l=n.call(this,a,u??this.length-1);if(l===-1){for(let d=0;d<=(u??this.length-1);d+=1)if(Xl(this[d])===a){Ql("array.lastIndexOf(...)");break}}return l},e.includes=function(a,u){let l=i.call(this,a,u);if(!l){for(let d=0;d<this.length;d+=1)if(Xl(this[d])===a){Ql("array.includes(...)");break}}return l},Array.__svelte_cleanup=()=>{e.indexOf=r,e.lastIndexOf=n,e.includes=i}}var Np=v(()=>{Wr();co()});function Zl(){if(Op===void 0){Op=window,Sb=document,qu=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype;Cb=Kr(t,"firstChild").get,Ib=Kr(t,"nextSibling").get,e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0,Text.prototype.__t=void 0,se&&(e.__svelte_meta=null,wb())}}function Qr(e=""){return document.createTextNode(e)}function qt(e){return Cb.call(e)}function fr(e){return Ib.call(e)}function xe(e,t){if(!ge)return qt(e);var r=qt(De);if(r===null)r=De.appendChild(Qr());else if(t&&r.nodeType!==3){var n=Qr();return r?.before(n),wt(n),n}return wt(r),r}function Sr(e,t){if(!ge){var r=qt(e);return r instanceof Comment&&r.data===""?fr(r):r}if(t&&De?.nodeType!==3){var n=Qr();return De?.before(n),wt(n),n}return De}function Ye(e,t=1,r=!1){let n=ge?De:e;for(var i;t--;)i=n,n=fr(n);if(!ge)return n;var a=n?.nodeType;if(r&&a!==3){var u=Qr();return n===null?i?.after(u):n.before(u),wt(u),u}return wt(n),n}function zu(e){e.textContent=""}var Op,Sb,qu,Cb,Ib,Gr=v(()=>{Et();mt();Np();it()});function Rp(e){fs=e}function tr(e){$e=e}function Wt(e){Oe=e}function bb(e){Gn=e}function Eb(e){pn=e}function Uu(){return++Lb}function Vi(e){var t=e.f;if(t&2048)return!0;if(t&4096){var r=e.deps,n=(t&256)!==0;if(r!==null){var i,a,u=(t&512)!==0,l=n&&Oe!==null&&!qi,d=r.length;if(u||l){var p=e,g=p.parent;for(i=0;i<d;i++)a=r[i],(u||!a?.reactions?.includes(p))&&(a.reactions??=[]).push(p);u&&(p.f^=512),l&&g!==null&&!(g.f&256)&&(p.f^=256)}for(i=0;i<d;i++)if(a=r[i],Vi(a)&&Sp(a),a.wv>e.wv)return!0}(!n||Oe!==null&&!qi)&&Ar(e,1024)}return!1}function Ob(e,t){for(var r=t;r!==null;){if(r.f&128)try{r.fn(e);return}catch{r.f^=128}r=r.parent}throw Jl=!1,e}function Db(e){return(e.f&16384)===0&&(e.parent===null||(e.parent.f&128)===0)}function fo(e,t,r,n){if(Jl){if(r===null&&(Jl=!1),Db(t))throw e;return}if(r!==null&&(Jl=!0),!se||n===null||!(e instanceof Error)||Nb.has(e)){Ob(e,t);return}Nb.add(e);let i=[],a=t.fn?.name;a&&i.push(a);let u=n;for(;u!==null;){if(se){var l=u.function?.[Ht];if(l){let g=l.split("/").pop();i.push(g)}}u=u.p}let d=qu?"  ":"	";Kt(e,"message",{value:e.message+`
${i.map(g=>`
${d}in ${g}`).join("")}
`}),Kt(e,"component_stack",{value:i});let p=e.stack;if(p){let g=p.split(`
`),E=[];for(let _=0;_<g.length;_++){let y=g[_];y.includes("svelte/src/internal")||E.push(y)}Kt(e,"stack",{value:E.join(`
`)})}if(Ob(e,t),Db(t))throw e}function Pb(e,t,r=!0){var n=e.reactions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];a.f&2?Pb(a,t,!1):t===a&&(r?Ar(a,2048):a.f&1024&&Ar(a,4096),ao(a))}}function Gl(e){var t=Hr,r=bn,n=pn,i=$e,a=qi,u=Gn,l=Pe,d=gn,p=e.f;Hr=null,bn=0,pn=null,qi=(p&256)!==0&&(gn||!ms||$e===null),$e=p&96?null:e,Gn=null,Gu(e.ctx),gn=!1,rf++;try{var g=(0,e.fn)(),E=e.deps;if(Hr!==null){var _;if(Wu(e,bn),E!==null&&bn>0)for(E.length=bn+Hr.length,_=0;_<Hr.length;_++)E[bn+_]=Hr[_];else e.deps=E=Hr;if(!qi)for(_=bn;_<E.length;_++)(E[_].reactions??=[]).push(e)}else E!==null&&bn<E.length&&(Wu(e,bn),E.length=bn);if(Ei()&&pn!==null&&!gn&&E!==null&&!(e.f&6146))for(_=0;_<pn.length;_++)Pb(pn[_],e);return i!==null&&(rf++,pn!==null&&(n===null?n=pn:n.push(...pn))),g}finally{Hr=t,bn=r,pn=n,$e=i,qi=a,Gn=u,Gu(l),gn=d}}function _I(e,t){let r=t.reactions;if(r!==null){var n=Q_.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&t.f&2&&(Hr===null||!Hr.includes(t))&&(Ar(t,4096),t.f&768||(t.f^=512),Wl(t),Wu(t,0))}function Wu(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)_I(e,r[n])}function ds(e){var t=e.f;if(!(t&16384)){Ar(e,1024);var r=Oe,n=Pe,i=ms;if(Oe=e,ms=!0,se){var a=Xr;Qu(e.component_function)}try{t&16?Mb(e):Pp(e),Lp(e);var u=Gl(e);e.teardown=typeof u=="function"?u:null,e.wv=Lb;var l=e.deps;if(se&&_i&&e.f&2048&&l!==null)for(let p=0;p<l.length;p++){var d=l[p];d.trace_need_increase&&(d.wv=Uu(),d.trace_need_increase=void 0,d.trace_v=void 0)}se&&tf.push(e)}catch(p){fo(p,e,r,n||e.ctx)}finally{ms=i,Oe=r,se&&Qu(a)}}}function kb(){console.error("Last ten effects were: ",tf.slice(-10).map(e=>e.fn)),tf=[]}function bI(){try{sb()}catch(e){if(se&&Kt(e,"stack",{value:""}),Yu!==null)if(se)try{fo(e,Yu,null,null)}catch(t){throw kb(),t}else fo(e,Yu,null,null);else throw se&&kb(),e}}function Dp(){var e=ms;try{var t=0;for(ms=!0;Ku.length>0;){t++>1e3&&bI();var r=Ku,n=r.length;Ku=[];for(var i=0;i<n;i++){var a=vI(r[i]);EI(a)}}}finally{ju=!1,ms=e,Yu=null,se&&(tf=[]),no.clear()}}function EI(e){var t=e.length;if(t!==0)for(var r=0;r<t;r++){var n=e[r];if(!(n.f&24576))try{Vi(n)&&(ds(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Mp(n):n.fn=null))}catch(i){fo(i,n,null,n.ctx)}}}function ao(e){ju||(ju=!0,queueMicrotask(Dp));for(var t=Yu=e;t.parent!==null;){t=t.parent;var r=t.f;if(r&96){if(!(r&1024))return;t.f^=1024}}Ku.push(t)}function vI(e){for(var t=[],r=e;r!==null;){var n=r.f,i=(n&96)!==0,a=i&&(n&1024)!==0;if(!a&&!(n&8192)){if(n&4)t.push(r);else if(i)r.f^=1024;else{var u=$e;try{$e=r,Vi(r)&&ds(r)}catch(p){fo(p,r,null,r.ctx)}finally{$e=u}}var l=r.first;if(l!==null){r=l;continue}}var d=r.parent;for(r=r.next;r===null&&d!==null;)r=d.next,d=d.parent}return t}function ho(e){var t;for(e&&(ju=!0,Dp(),t=e()),_p();Ku.length>0;)ju=!0,Dp(),_p();return t}async function vi(){await Promise.resolve(),ho()}function q(e){var t=e.f,r=(t&2)!==0;if(Hu!==null&&Hu.add(e),$e!==null&&!gn){Gn!==null&&Gn.includes(e)&&db();var n=$e.deps;e.rv<rf&&(e.rv=rf,Hr===null&&n!==null&&n[bn]===e?bn++:Hr===null?Hr=[e]:(!qi||!Hr.includes(e))&&Hr.push(e))}else if(r&&e.deps===null&&e.effects===null){var i=e,a=i.parent;a!==null&&!(a.f&256)&&(i.f^=256)}if(r&&(i=e,Vi(i)&&Sp(i)),se&&_i&&$u!==null&&$e!==null&&$u.reaction===$e){if(e.debug)e.debug();else if(e.created){var u=$u.entries.get(e);u===void 0&&(u={read:[]},$u.entries.set(e,u)),u.read.push(Hi("TracedAt"))}}return fs&&no.has(e)?no.get(e):e.v}function at(e){var t=gn;try{return gn=!0,e()}finally{gn=t}}function Ar(e,t){e.f=e.f&TI|t}function vt(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(xr in e)nf(e);else if(!Array.isArray(e))for(let t in e){let r=e[t];typeof r=="object"&&r&&xr in r&&nf(r)}}}function nf(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{nf(e[n],t)}catch{}let r=Ta(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){let n=Kl(r);for(let i in n){let a=n[i].get;if(a)try{a.call(e)}catch{}}}}}var Nb,Jl,ju,Yu,ms,fs,Ku,tf,$e,gn,Oe,Gn,Hr,bn,pn,Lb,rf,qi,Hu,TI,Ge=v(()=>{mt();it();He();Nt();On();yr();hs();hn();bt();$i();ro();Ot();Gr();Nb=new WeakSet,Jl=!1,ju=!1,Yu=null,ms=!1,fs=!1;Ku=[],tf=[],$e=null,gn=!1;Oe=null;Gn=null;Hr=null,bn=0,pn=null;Lb=1,rf=0,qi=!1,Hu=null;TI=-7169});function Bp(e){Oe===null&&$e===null&&ab(e),$e!==null&&$e.f&256&&Oe===null&&ib(),fs&&nb(e)}function xI(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function gs(e,t,r,n=!0){var i=Oe;if(se)for(;i!==null&&i.f&262144;)i=i.parent;var a={ctx:Pe,deps:null,nodes_start:null,nodes_end:null,f:e|2048,first:null,fn:t,last:null,next:null,parent:i,prev:null,teardown:null,transitions:null,wv:0};if(se&&(a.component_function=Xr),r)try{ds(a),a.f|=32768}catch(d){throw lr(a),d}else t!==null&&ao(a);var u=r&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!u&&n&&(i!==null&&xI(a,i),$e!==null&&$e.f&2)){var l=$e;(l.effects??=[]).push(a)}return a}function Cr(e){let t=gs(8,null,!1);return Ar(t,1024),t.teardown=e,t}function Ti(e){Bp("$effect");var t=Oe!==null&&(Oe.f&32)!==0&&Pe!==null&&!Pe.m;if(se&&Kt(e,"name",{value:"$effect"}),t){var r=Pe;(r.e??=[]).push({fn:e,effect:Oe,reaction:$e})}else{var n=Gt(e);return n}}function po(e){return Bp("$effect.pre"),se&&Kt(e,"name",{value:"$effect.pre"}),zt(e)}function sf(e){let t=gs(64,e,!0);return()=>{lr(t)}}function Bb(e){let t=gs(64,e,!0);return(r={})=>new Promise(n=>{r.outro?Ln(t,()=>{lr(t),n(void 0)}):(lr(t),n(void 0))})}function Gt(e){return gs(4,e,!1)}function Qt(e,t){var r=Pe,n={effect:null,ran:!1};r.l.r1.push(n),n.effect=zt(()=>{e(),!n.ran&&(n.ran=!0,oe(r.l.r2,!0),at(t))})}function Jn(){var e=Pe;zt(()=>{if(q(e.l.r2)){for(var t of e.l.r1){var r=t.effect;r.f&1024&&Ar(r,4096),Vi(r)&&ds(r),t.ran=!1}e.l.r2.v=!1}})}function zt(e){return gs(8,e,!0)}function rr(e,t=[],r=kn){let n=t.map(r),i=()=>e(...n.map(q));return se&&Kt(i,"name",{value:"{expression}"}),Ir(i)}function Ir(e,t=0){return gs(24|t,e,!0)}function nr(e,t=!0){return gs(40,e,!0,t)}function Lp(e){var t=e.teardown;if(t!==null){let r=fs,n=$e;Rp(!0),tr(null);try{t.call(null)}finally{Rp(r),tr(n)}}}function Pp(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){var n=r.next;r.f&64?r.parent=null:lr(r,t),r=n}}function Mb(e){for(var t=e.first;t!==null;){var r=t.next;t.f&32||lr(t),t=r}}function lr(e,t=!0){var r=!1;if((t||e.f&524288)&&e.nodes_start!==null){for(var n=e.nodes_start,i=e.nodes_end;n!==null;){var a=n===i?null:fr(n);n.remove(),n=a}r=!0}Pp(e,t&&!r),Wu(e,0),Ar(e,16384);var u=e.transitions;if(u!==null)for(let d of u)d.stop();Lp(e);var l=e.parent;l!==null&&l.first!==null&&Mp(e),se&&(e.component_function=null),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function Mp(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Ln(e,t){var r=[];of(e,r,!0),$p(r,()=>{lr(e),t&&t()})}function $p(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function of(e,t,r){if(!(e.f&8192)){if(e.f^=8192,e.transitions!==null)for(let u of e.transitions)(u.is_global||r)&&t.push(u);for(var n=e.first;n!==null;){var i=n.next,a=(n.f&65536)!==0||(n.f&32)!==0;of(n,t,a?r:!1),n=i}}}function ya(e){$b(e,!0)}function $b(e,t){if(e.f&8192){e.f^=8192,e.f&1024||(e.f^=1024),Vi(e)&&(Ar(e,2048),ao(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&65536)!==0||(r.f&32)!==0;$b(r,i?t:!1),r=n}if(e.transitions!==null)for(let a of e.transitions)(a.is_global||t)&&a.in()}}var He=v(()=>{Ge();Nt();yr();hn();mt();it();Gr();hs();Ot()});function SI(){let e=new Error().stack;if(!e)return null;let t=[];for(let r of e.split(`
`)){let n=AI.exec(r)??wI.exec(r);n&&t.push({file:n[1],line:+n[2],column:+n[3]})}return t}function Hb(){let e=SI()?.slice(4);if(!e)return null;for(let t=0;t<e.length;t++){let r=e[t],n=yI[r.file];if(!n){if(t===0)return null;continue}for(let i of n){if(i.end==null)return null;if(i.start.line<r.line&&i.end.line>r.line)return i.component}}return null}function Ip(e,t){if(t.owners!==null)for(;e;){if(e.owners===null){t.owners=null;break}for(let r of e.owners)t.owners.add(r);e=e.parent}}function Ub(e,t){return e.owners===null?!0:e.owners.has(t)||Ht in t&&[...e.owners].some(r=>r[Ht]===t[Ht])||e.parent!==null&&Ub(e.parent,t)}function Vb(e){return e?.owners?.values().next().value??Vb(e.parent)}function Ab(e){if(II)return;let t=Hb();if(t&&!Ub(e,t)){let r=Vb(e);r[Ht]!==t[Ht]?Cp(t[Ht],r[Ht]):Cp()}}var yI,AI,wI,CI,II,Vu=v(()=>{Nt();He();Ot();it();Wr();bt();yI={},AI=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,wI=/@(.+):(\d+):(\d+)$/;CI=Symbol("ADD_OWNER");II=!1});function mo(e){if(se){let t=new Error(`lifecycle_outside_component
\`${e}(...)\` can only be used during component initialisation
https://svelte.dev/e/lifecycle_outside_component`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var go=v(()=>{mt()});function Gu(e){Pe=e}function Qu(e){Xr=e}function dr(e,t=!1,r){var n=Pe={p:Pe,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};gi&&!t&&(Pe.l={s:null,u:null,r1:[],r2:Mt(!1)}),Cr(()=>{n.d=!0}),se&&(Pe.function=r,Xr=r)}function hr(e){let t=Pe;if(t!==null){e!==void 0&&(t.x=e);let u=t.e;if(u!==null){var r=Oe,n=$e;t.e=null;try{for(var i=0;i<u.length;i++){var a=u[i];Wt(a.effect),tr(a.reaction),Gt(a.fn)}}finally{Wt(r),tr(n)}}Pe=t.p,se&&(Xr=t.p?.function??null),t.m=!0}return e||{}}function Ei(){return!gi||Pe!==null&&Pe.l===null}var Pe,Xr,Ot=v(()=>{mt();Vu();go();yr();Ge();He();$i();Pe=null;Xr=null});function qb(e){e=e.replace(DI,"");let t=5381,r=e.length;for(;r--;)t=(t<<5)-t^e.charCodeAt(r);return(t>>>0).toString(36)}function zb(e){return RI.includes(e)}function Hp(e){return e?.replace(/\//g,"/\u200B")}var DI,kI,mB,RI,_s=v(()=>{DI=/\r/g;kI=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"],mB=[...kI,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"],RI=["touchstart","touchmove"]});var Yb=v(()=>{_s();Ge();Wr()});var Up=v(()=>{});var Kb=v(()=>{bt();Et()});function uf(){jb||(jb=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t.__on_r?.()})},{capture:!0}))}var jb,cf=v(()=>{Et();Gr();On();jb=!1});function _o(e){var t=$e,r=Oe;tr(null),Wt(null);try{return e()}finally{tr(t),Wt(r)}}function Vp(e,t,r,n=r){e.addEventListener(t,()=>_o(r));let i=e.__on_r;i?e.__on_r=()=>{i(),n(!0)}:e.__on_r=()=>n(!0),uf()}var xi=v(()=>{He();Ge();cf()});function Gb(e,t,r,n={}){function i(a){if(n.capture||bo.call(t,a),!a.cancelBubble)return _o(()=>r?.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?dn(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function pr(e,t,r,n,i){var a={capture:n,passive:i},u=Gb(e,t,r,a);(t===document.body||t===window||t===document)&&Cr(()=>{t.removeEventListener(e,u,a)})}function bo(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],a=i[0]||e.target,u=0,l=e.__root;if(l){var d=i.indexOf(l);if(d!==-1&&(t===document||t===window)){e.__root=t;return}var p=i.indexOf(t);if(p===-1)return;d<=p&&(u=d)}if(a=i[u]||e.target,a!==t){Kt(e,"currentTarget",{configurable:!0,get(){return a||r}});var g=$e,E=Oe;tr(null),Wt(null);try{for(var _,y=[];a!==null;){var C=a.assignedSlot||a.parentNode||a.host||null;try{var D=a["__"+n];if(D!=null&&(!a.disabled||e.target===a))if(fn(D)){var[P,...N]=D;P.apply(a,[e,...N])}else D.call(a,e)}catch(L){_?y.push(L):_=L}if(e.cancelBubble||C===t||C===null)break;a=C}if(_){for(let L of y)queueMicrotask(()=>{throw L});throw _}}finally{e.__root=t,delete e.currentTarget,tr(g),Wt(E)}}}var Wb,qp,Zu=v(()=>{He();it();Et();On();bt();Wr();Ge();xi();Wb=new Set,qp=new Set});function Qb(){LI=void 0}var LI,zp=v(()=>{Et();Gr();He();Nt();bt()});function Ju(e){var t=document.createElement("template");return t.innerHTML=e,t.content}var lf=v(()=>{});function Zr(e,t){var r=Oe;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Le(e,t){var r=(t&1)!==0,n=(t&2)!==0,i,a=!e.startsWith("<!>");return()=>{if(ge)return Zr(De,null),De;i===void 0&&(i=Ju(a?e:"<!>"+e),r||(i=qt(i)));var u=n||qu?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=qt(u),d=u.lastChild;Zr(l,d)}else Zr(u,u);return u}}function ec(e=""){if(!ge){var t=Qr(e+"");return Zr(t,t),t}var r=De;return r.nodeType!==3&&(r.before(r=Qr()),wt(r)),Zr(r,r),r}function zi(){if(ge)return Zr(De,null),De;var e=document.createDocumentFragment(),t=document.createComment(""),r=Qr();return e.append(t,r),Zr(t,r),e}function we(e,t){if(ge){Oe.nodes_end=De,Vt();return}e!==null&&e.before(t)}var bs=v(()=>{Et();Gr();lf();Ge();bt()});function ir(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Es(e,t){return Xb(e,t)}function Kp(e,t){Zl(),t.intro=t.intro??!1;let r=t.target,n=ge,i=De;try{for(var a=qt(r);a&&(a.nodeType!==8||a.data!==va);)a=fr(a);if(!a)throw Bi;$r(!0),wt(a),Vt();let u=Xb(e,{...t,anchor:a});if(De===null||De.nodeType!==8||De.data!==as)throw ps(),Bi;return $r(!1),u}catch(u){if(u===Bi)return t.recover===!1&&ob(),Zl(),zu(r),$r(!1),Es(e,t);throw u}finally{$r(n),wt(i),Qb()}}function Xb(e,{target:t,anchor:r,props:n={},events:i,context:a,intro:u=!0}){Zl();var l=new Set,d=E=>{for(var _=0;_<E.length;_++){var y=E[_];if(!l.has(y)){l.add(y);var C=zb(y);t.addEventListener(y,bo,{passive:C});var D=Eo.get(y);D===void 0?(document.addEventListener(y,bo,{passive:C}),Eo.set(y,1)):Eo.set(y,D+1)}}};d(Pu(Wb)),qp.add(d);var p=void 0,g=Bb(()=>{var E=r??t.appendChild(Qr());return nr(()=>{if(a){dr({});var _=Pe;_.c=a}i&&(n.$$events=i),ge&&Zr(E,null),ff=u,p=e(E,n)||{},ff=!0,ge&&(Oe.nodes_end=De),a&&hr()}),()=>{for(var _ of l){t.removeEventListener(_,bo);var y=Eo.get(_);--y===0?(document.removeEventListener(_,bo),Eo.delete(_)):Eo.set(_,y)}qp.delete(d),E!==r&&E.parentNode?.removeChild(E)}});return Yp.set(p,g),p}function vo(e,t){let r=Yp.get(e);return r?(Yp.delete(e),r(t)):(se&&xb(),Promise.resolve())}var ff,Eo,Yp,vs=v(()=>{mt();Gr();bt();Ge();Ot();He();Et();it();Zu();zp();Wr();hn();bs();_s();ff=!0;Eo=new Map;Yp=new WeakMap});var Zb=v(()=>{bt();Nt();Et();He();yr();vs();Ge()});var Jb=v(()=>{hn();Ot();bt();Vu()});var eE=v(()=>{bt();Bu();He()});var tE=v(()=>{mt();it();He();yr();Ge();Et();On();bt();Ot()});function tt(e,t,[r,n]=[0,0]){ge&&r===0&&Vt();var i=e,a=null,u=null,l=Pt,d=r>0?65536:0,p=!1;let g=(_,y=!0)=>{p=!0,E(y,_)},E=(_,y)=>{if(l===(l=_))return;let C=!1;if(ge&&n!==-1){if(r===0){let P=i.data;P===va?n=0:P===is?n=1/0:(n=parseInt(P.substring(1)),n!==n&&(n=l?1/0:-1))}let D=n>r;!!l===D&&(i=uo(),wt(i),$r(!1),C=!0,n=-1)}l?(a?ya(a):y&&(a=nr(()=>y(i))),u&&Ln(u,()=>{u=null})):(u?ya(u):y&&(u=nr(()=>y(i,[r+1,n]))),a&&Ln(a,()=>{a=null})),C&&$r(!0)};Ir(()=>{p=!1,t(g),p||E(null,null)},d),ge&&(i=De)}var rE=v(()=>{Nt();Et();He();bt()});var nE=v(()=>{bt();He();us();Ot();Et()});var iE=v(()=>{He();Et();Gr()});function rc(e,t){return t}function HI(e,t,r,n){for(var i=[],a=t.length,u=0;u<a;u++)of(t[u].e,i,!0);var l=a>0&&i.length===0&&r!==null;if(l){var d=r.parentNode;zu(d),d.append(r),n.clear(),Aa(e,t[0].prev,t[a-1].next)}$p(i,()=>{for(var p=0;p<a;p++){var g=t[p];l||(n.delete(g.k),Aa(e,g.prev,g.next)),lr(g.e,!l)}})}function nc(e,t,r,n,i,a=null){var u=e,l={flags:t,items:new Map,first:null},d=(t&4)!==0;if(d){var p=e;u=ge?wt(qt(p)):p.appendChild(Qr())}ge&&Vt();var g=null,E=!1,_=Br(()=>{var y=r();return fn(y)?y:y==null?[]:Pu(y)});Ir(()=>{var y=q(_),C=y.length;if(E&&C===0)return;E=C===0;let D=!1;if(ge){var P=u.data===is;P!==(C===0)&&(u=uo(),wt(u),$r(!1),D=!0)}if(ge){for(var N=null,L,H=0;H<C;H++){if(De.nodeType===8&&De.data===as){u=De,D=!0,$r(!1);break}var R=y[H],B=n(R,H);L=oE(De,l,N,null,R,B,H,i,t,r),l.items.set(B,L),N=L}C>0&&wt(uo())}ge||UI(y,l,u,i,t,n,r),a!==null&&(C===0?g?ya(g):g=nr(()=>a(u)):g!==null&&Ln(g,()=>{g=null})),D&&$r(!0),q(_)}),ge&&(u=De)}function UI(e,t,r,n,i,a,u){var l=(i&8)!==0,d=(i&3)!==0,p=e.length,g=t.items,E=t.first,_=E,y,C=null,D,P=[],N=[],L,H,R,B;if(l)for(B=0;B<p;B+=1)L=e[B],H=a(L,B),R=g.get(H),R!==void 0&&(R.a?.measure(),(D??=new Set).add(R));for(B=0;B<p;B+=1){if(L=e[B],H=a(L,B),R=g.get(H),R===void 0){var V=_?_.e.nodes_start:r;C=oE(V,t,C,C===null?t.first:C.next,L,H,B,n,i,u),g.set(H,C),P=[],N=[],_=C.next;continue}if(d&&VI(R,L,B,i),R.e.f&8192&&(ya(R.e),l&&(R.a?.unfix(),(D??=new Set).delete(R))),R!==_){if(y!==void 0&&y.has(R)){if(P.length<N.length){var X=N[0],ce;C=X.prev;var ve=P[0],Re=P[P.length-1];for(ce=0;ce<P.length;ce+=1)aE(P[ce],X,r);for(ce=0;ce<N.length;ce+=1)y.delete(N[ce]);Aa(t,ve.prev,Re.next),Aa(t,C,ve),Aa(t,Re,X),_=X,C=Re,B-=1,P=[],N=[]}else y.delete(R),aE(R,_,r),Aa(t,R.prev,R.next),Aa(t,R,C===null?t.first:C.next),Aa(t,C,R),C=R;continue}for(P=[],N=[];_!==null&&_.k!==H;)_.e.f&8192||(y??=new Set).add(_),N.push(_),_=_.next;if(_===null)continue;R=_}P.push(R),C=R,_=R.next}if(_!==null||y!==void 0){for(var qe=y===void 0?[]:Pu(y);_!==null;)_.e.f&8192||qe.push(_),_=_.next;var St=qe.length;if(St>0){var Dt=i&4&&p===0?r:null;if(l){for(B=0;B<St;B+=1)qe[B].a?.measure();for(B=0;B<St;B+=1)qe[B].a?.fix()}HI(t,qe,Dt,g)}}l&&dn(()=>{if(D!==void 0)for(R of D)R.a?.apply()}),Oe.first=t.first&&t.first.e,Oe.last=C&&C.e}function VI(e,t,r,n){n&1&&io(e.v,t),n&2?io(e.i,r):e.i=r}function oE(e,t,r,n,i,a,u,l,d,p){var g=tc,E=(d&1)!==0,_=(d&16)===0,y=E?_?bi(i):Mt(i):i,C=d&2?Mt(u):u;se&&E&&(y.debug=()=>{var P=typeof C=="number"?u:C.v;p()[P]});var D={i:C,v:y,k:a,a:null,e:null,prev:r,next:n};tc=D;try{return D.e=nr(()=>l(e,y,C,p),ge),D.e.prev=r&&r.e,D.e.next=n&&n.e,r===null?t.first=D:(r.next=D,r.e.next=D.e),n!==null&&(n.prev=D,n.e.prev=D.e),D}finally{tc=g}}function aE(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,a=e.e.nodes_start;a!==n;){var u=fr(a);i.before(a),a=u}}function Aa(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}var tc,df=v(()=>{bt();Et();Gr();He();yr();it();Nt();On();Ge();mt();hs();tc=null});function qI(e,t,r){if(!t||t===qb(String(r??"")))return;let n,i=e.__svelte_meta?.loc;i?n=`near ${i.file}:${i.line}:${i.column}`:Xr?.[Ht]&&(n=`in ${Xr[Ht]}`),Tb(Hp(n))}function Ts(e,t,r,n,i){var a=e,u="",l;Ir(()=>{if(u===(u=t()??"")){ge&&Vt();return}l!==void 0&&(lr(l),l=void 0),u!==""&&(l=nr(()=>{if(ge){for(var d=De.data,p=Vt(),g=p;p!==null&&(p.nodeType!==8||p.data!=="");)g=p,p=fr(p);if(p===null)throw ps(),Bi;se&&!i&&qI(p.parentNode,d,u),Zr(De,g),a=wt(p);return}var E=u+"";r?E=`<svg>${E}</svg>`:n&&(E=`<math>${E}</math>`);var _=Ju(E);if((r||n)&&(_=qt(_)),Zr(qt(_),_.lastChild),r||n)for(;qt(_);)a.before(qt(_));else a.before(_)}))})}var uE=v(()=>{bt();He();Et();lf();bs();Wr();_s();mt();Ot();Gr()});function Yi(e,t,r,n,i){ge&&Vt();var a=t.$$slots?.[r],u=!1;a===!0&&(a=t[r==="default"?"children":r],u=!0),a===void 0?i!==null&&i(e):a(e,u?()=>n:n)}var cE=v(()=>{Et()});var Gp=v(()=>{Nt();He();Ot();Et();lf();bs();Wr();hn();mt();Gr();it()});function Qp(e,t,r){ge&&Vt();var n=e,i,a;Ir(()=>{i!==(i=t())&&(a&&(Ln(a),a=null),i&&(a=nr(()=>r(n,i))))},65536),ge&&(n=De)}var lE=v(()=>{Nt();He();Et()});var fE=v(()=>{bt();Et();Gr();He();vs();df();Ge();Ot();mt();Nt();bs();_s()});var dE=v(()=>{mt();On();Up()});function wa(e,t,r){Gt(()=>{var n=at(()=>t(e,r?.())||{});if(r&&n?.update){var i=!1,a={};zt(()=>{var u=r();vt(u),i&&eo(a,u)&&(a=u,n.update(u))}),i=!0}if(n?.destroy)return()=>n.destroy()})}var hE=v(()=>{He();us();Ge()});var pE=v(()=>{});function mE(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=mE(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function gE(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=mE(e))&&(n&&(n+=" "),n+=t);return n}var _E=v(()=>{});function xs(e){return typeof e=="object"?gE(e):e??""}function vE(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),r){for(var i in r)if(r[i])n=n?n+" "+i:i;else if(n.length)for(var a=i.length,u=0;(u=n.indexOf(i,u))>=0;){var l=u+a;(u===0||bE.includes(n[u-1]))&&(l===n.length||bE.includes(n[l]))?n=(u===0?"":n.substring(0,u))+n.substring(l+1):u=l}}return n===""?null:n}function EE(e,t=!1){var r=t?" !important;":";",n="";for(var i in e){var a=e[i];a!=null&&a!==""&&(n+=" "+i+": "+a+r)}return n}function Xp(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function TE(e,t){if(t){var r="",n,i;if(Array.isArray(t)?(n=t[0],i=t[1]):n=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,u=0,l=!1,d=[];n&&d.push(...Object.keys(n).map(Xp)),i&&d.push(...Object.keys(i).map(Xp));var p=0,g=-1;let D=e.length;for(var E=0;E<D;E++){var _=e[E];if(l?_==="/"&&e[E-1]==="*"&&(l=!1):a?a===_&&(a=!1):_==="/"&&e[E+1]==="*"?l=!0:_==='"'||_==="'"?a=_:_==="("?u++:_===")"&&u--,!l&&a===!1&&u===0){if(_===":"&&g===-1)g=E;else if(_===";"||E===D-1){if(g!==-1){var y=Xp(e.substring(p,g).trim());if(!d.includes(y)){_!==";"&&E++;var C=e.substring(p,E).trim();r+=" "+C+";"}}p=E+1,g=-1}}}}return n&&(r+=EE(n)),i&&(r+=EE(i,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}var bE,ic=v(()=>{pE();_E();bE=[...` 	
\r\f\xA0\v\uFEFF`]});function Ki(e,t,r,n,i,a){var u=e.__className;if(ge||u!==r){var l=vE(r,n,a);(!ge||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):t?e.className=l:e.setAttribute("class",l)),e.__className=r}else if(a&&i!==a)for(var d in a){var p=!!a[d];(i==null||p!==!!i[d])&&e.classList.toggle(d,p)}return a}var Zp=v(()=>{ic();Et()});function Jp(e,t={},r,n){for(var i in r){var a=r[i];t[i]!==a&&(r[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,n))}}function ac(e,t,r,n){var i=e.__style;if(ge||i!==t){var a=TE(t,n);(!ge||a!==e.getAttribute("style"))&&(a==null?e.removeAttribute("style"):e.style.cssText=a),e.__style=t}else n&&(Array.isArray(n)?(Jp(e,r?.[0],n[0]),Jp(e,r?.[1],n[1],"important")):Jp(e,r,n));return n}var em=v(()=>{ic();Et()});function rm(e){if(ge){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;ji(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var i=e.checked;ji(e,"checked",null),e.checked=i}}};e.__on_r=r,tb(r),uf()}}function ji(e,t,r,n){var i=XI(e);if(ge&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")){n||JI(e,t,r??"");return}i[t]!==(i[t]=r)&&(t==="loading"&&(e[G_]=r),r==null?e.removeAttribute(t):typeof r!="string"&&ZI(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function XI(e){return e.__attributes??={[GI]:e.nodeName.includes("-"),[QI]:e.namespaceURI===z_}}function ZI(e){var t=xE.get(e.nodeName);if(t)return t;xE.set(e.nodeName,t=[]);for(var r,n=e,i=Element.prototype;i!==n;){r=Kl(n);for(var a in r)r[a].set&&t.push(a);n=Ta(n)}return t}function JI(e,t,r){se&&(t==="srcset"&&e3(e,r)||tm(e.getAttribute(t)??"",r)||vb(t,e.outerHTML.replace(e.innerHTML,e.innerHTML&&"..."),String(r)))}function tm(e,t){return e===t?!0:new URL(e,document.baseURI).href===new URL(t,document.baseURI).href}function yE(e){return e.split(",").map(t=>t.trim().split(" ").filter(Boolean))}function e3(e,t){var r=yE(e.srcset),n=yE(t);return n.length===r.length&&n.every(([i,a],u)=>a===r[u][1]&&(tm(r[u][0],i)||tm(i,r[u][0])))}var jI,WI,GI,QI,xE,AE=v(()=>{mt();Et();it();Zu();cf();Wr();Nt();On();_s();Ge();ic();Zp();em();bt();jI=Symbol("class"),WI=Symbol("style"),GI=Symbol("is custom element"),QI=Symbol("is html");xE=new Map});var t3,ei,nm=v(()=>{it();mt();t3=Yl?()=>performance.now():()=>Date.now(),ei={tick:e=>(Yl?requestAnimationFrame:Ut)(e),now:()=>t3(),tasks:new Set}});function wE(){let e=ei.now();ei.tasks.forEach(t=>{t.c(e)||(ei.tasks.delete(t),t.f())}),ei.tasks.size!==0&&ei.tick(wE)}function SE(e){let t;return ei.tasks.size===0&&ei.tick(wE),{promise:new Promise(r=>{ei.tasks.add(t={c:e,f:r})}),abort(){ei.tasks.delete(t)}}}var CE=v(()=>{nm()});function hf(e,t){_o(()=>{e.dispatchEvent(new CustomEvent(t))})}function a3(e){if(e==="float")return"cssFloat";if(e==="offset")return"cssOffset";if(e.startsWith("--"))return e;let t=e.split("-");return t.length===1?t[0]:t[0]+t.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("")}function IE(e){let t={},r=e.split(";");for(let n of r){let[i,a]=n.split(":");if(!i||a===void 0)break;let u=a3(i.trim());t[u]=a.trim()}return t}function am(e,t,r,n){var i=(e&1)!==0,a=(e&2)!==0,u=i&&a,l=(e&4)!==0,d=u?"both":i?"in":"out",p,g=t.inert,E=t.style.overflow,_,y;function C(){var H=$e,R=Oe;tr(null),Wt(null);try{return p??=r()(t,n?.()??{},{direction:d})}finally{tr(H),Wt(R)}}var D={is_global:l,in(){if(t.inert=g,!i){y?.abort(),y?.reset?.();return}a||_?.abort(),hf(t,"introstart"),_=im(t,C(),y,1,()=>{hf(t,"introend"),_?.abort(),_=p=void 0,t.style.overflow=E})},out(H){if(!a){H?.(),p=void 0;return}t.inert=!0,hf(t,"outrostart"),y=im(t,C(),_,0,()=>{hf(t,"outroend"),H?.()})},stop:()=>{_?.abort(),y?.abort()}},P=Oe;if((P.transitions??=[]).push(D),i&&ff){var N=l;if(!N){for(var L=P.parent;L&&L.f&65536;)for(;(L=L.parent)&&!(L.f&16););N=!L||(L.f&32768)!==0}N&&Gt(()=>{at(()=>D.in())})}}function im(e,t,r,n,i){var a=n===1;if(xa(t)){var u,l=!1;return dn(()=>{if(!l){var P=t({direction:a?"in":"out"});u=im(e,P,r,n,i)}}),{abort:()=>{l=!0,u?.abort()},deactivate:()=>u.deactivate(),reset:()=>u.reset(),t:()=>u.t()}}if(r?.deactivate(),!t?.duration)return i(),{abort:Ut,deactivate:Ut,reset:Ut,t:()=>n};let{delay:d=0,css:p,tick:g,easing:E=s3}=t;var _=[];if(a&&r===void 0&&(g&&g(0,1),p)){var y=IE(p(0,1));_.push(y,y)}var C=()=>1-n,D=e.animate(_,{duration:d});return D.onfinish=()=>{var P=r?.t()??1-n;r?.abort();var N=n-P,L=t.duration*Math.abs(N),H=[];if(L>0){var R=!1;if(p)for(var B=Math.ceil(L/16.666666666666668),V=0;V<=B;V+=1){var X=P+N*E(V/B),ce=IE(p(X,1-X));H.push(ce),R||=ce.overflow==="hidden"}R&&(e.style.overflow="hidden"),C=()=>{var ve=D.currentTime;return P+N*E(ve/L)},g&&SE(()=>{if(D.playState!=="running")return!1;var ve=C();return g(ve,1-ve),!0})}D=e.animate(H,{duration:L,fill:"forwards"}),D.onfinish=()=>{C=()=>n,g?.(n,1-n),i()}},{abort:()=>{D&&(D.cancel(),D.effect=null,D.onfinish=Ut)},deactivate:()=>{i=Ut},reset:()=>{n===0&&g?.(1,0)},t:()=>C()}}var s3,NE=v(()=>{it();He();Ge();CE();vs();df();bt();Nt();On();xi();s3=e=>e});var OE=v(()=>{xi()});function um(e,t,r=t){var n=Ei();Vp(e,"input",i=>{se&&e.type==="checkbox"&&bp();var a=i?e.defaultValue:e.value;if(a=sm(e)?om(a):a,r(a),n&&a!==(a=t())){var u=e.selectionStart,l=e.selectionEnd;e.value=a??"",l!==null&&(e.selectionStart=u,e.selectionEnd=Math.min(l,e.value.length))}}),(ge&&e.defaultValue!==e.value||at(t)==null&&e.value)&&r(sm(e)?om(e.value):e.value),zt(()=>{se&&e.type==="checkbox"&&bp();var i=t();sm(e)&&i===om(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function sm(e){var t=e.type;return t==="number"||t==="range"}function om(e){return e===""?null:+e}var DE=v(()=>{mt();He();xi();hn();co();On();Et();Ge();Ot()});var kE=v(()=>{Et();He();xi()});var RE=v(()=>{xi()});function cm(e,t,r){var n=Kr(e,t);n&&n.set&&(e[t]=r,Cr(()=>{e[t]=null}))}var LE=v(()=>{He();it()});var PE=v(()=>{He();xi();Ge();co()});var Sa,To,sc,mf,ME,fm,lm,FE=v(()=>{He();Ge();fm=class{constructor(t){Ru(this,mf);Ru(this,Sa,new WeakMap);Ru(this,To,void 0);Ru(this,sc,void 0);pp(this,sc,t)}observe(t,r){var n=Fi(this,Sa).get(t)||new Set;return n.add(r),Fi(this,Sa).set(t,n),H_(this,mf,ME).call(this).observe(t,Fi(this,sc)),()=>{var i=Fi(this,Sa).get(t);i.delete(r),i.size===0&&(Fi(this,Sa).delete(t),Fi(this,To).unobserve(t))}}},lm=fm;Sa=new WeakMap,To=new WeakMap,sc=new WeakMap,mf=new WeakSet,ME=function(){return Fi(this,To)??pp(this,To,new ResizeObserver(t=>{for(var r of t){fm.entries.set(r.target,r);for(var n of Fi(this,Sa).get(r.target)||[])n(r)}}))},zl(lm,"entries",new WeakMap)});function BE(e,t){return e===t||e?.[xr]===t}function ys(e={},t,r,n){return Gt(()=>{var i,a;return zt(()=>{i=a,a=n?.()||[],at(()=>{e!==r(...a)&&(t(e,...a),i&&BE(r(...i),e)&&t(null,...i))})}),()=>{dn(()=>{a&&BE(r(...a),e)&&t(null,...a)})}}),e}var $E=v(()=>{Nt();He();Ge();On()});var HE=v(()=>{He();xi()});var UE=v(()=>{He();xi()});var dm=v(()=>{it();He();Zu()});function En(e=!1){let t=Pe,r=t.l.u;if(!r)return;let n=()=>vt(t.s);if(e){let i=0,a={},u=kn(()=>{let l=!1,d=t.s;for(let p in d)d[p]!==a[p]&&(a[p]=d[p],l=!0);return l&&i++,i});n=()=>q(u)}r.b.length&&po(()=>{VE(t,n),os(r.b)}),Ti(()=>{let i=at(()=>r.m.map(Z_));return()=>{for(let a of i)typeof a=="function"&&a()}}),r.a.length&&Ti(()=>{VE(t,n),os(r.a)})}function VE(e,t){if(e.l.s)for(let r of e.l.s)q(r);t()}var qE=v(()=>{it();Ot();hs();He();Ge()});function Jr(e,t){var r=e.$$events?.[t.type],n=fn(r)?r.slice():r==null?[]:[r];for(var i of n)i.call(this,t)}var zE=v(()=>{yr();Ge();it()});function As(e){Pe===null&&mo("onMount"),gi&&Pe.l!==null?c3(Pe).m.push(e):Ti(()=>{let t=at(e);if(typeof t=="function")return t})}function gf(e){Pe===null&&mo("onDestroy"),As(()=>()=>at(e))}function u3(e,t,{bubbles:r=!1,cancelable:n=!1}={}){return new CustomEvent(e,{detail:t,bubbles:r,cancelable:n})}function YE(){let e=Pe;return e===null&&mo("createEventDispatcher"),(t,r,n)=>{let i=e.s.$$events?.[t];if(i){let a=fn(i)?i.slice():[i],u=u3(t,r,n);for(let l of a)l.call(e.x,u);return!u.defaultPrevented}return!0}}function c3(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}var ws=v(()=>{Ge();it();Pn();hn();go();$i();Ot();mt();Ge();Ot();vs();Ge();Gp();if(se){let e=function(t){if(!(t in globalThis)){let r;Object.defineProperty(globalThis,t,{configurable:!0,get:()=>{if(r!==void 0)return r;cb(t)},set:n=>{r=n}})}};e("$state"),e("$effect"),e("$derived"),e("$inspect"),e("$props"),e("$bindable")}});function _f(e,t,r){if(e==null)return t(void 0),r&&r(void 0),Ut;let n=at(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}var hm=v(()=>{ws();it()});function yo(e,t=Ut){let r=null,n=new Set;function i(l){if(eo(e,l)&&(e=l,r)){let d=!xo.length;for(let p of n)p[1](),xo.push(p,e);if(d){for(let p=0;p<xo.length;p+=2)xo[p][0](xo[p+1]);xo.length=0}}}function a(l){i(l(e))}function u(l,d=Ut){let p=[l,d];return n.add(p),n.size===1&&(r=t(i,a)||Ut),l(e),()=>{n.delete(p),n.size===0&&r&&(r(),r=null)}}return{set:i,update:a,subscribe:u}}function bf(e){let t;return _f(e,r=>t=r)(),t}var xo,Ef=v(()=>{it();us();hm();xo=[]});function oc(e,t,r){let n=r[t]??={store:null,source:bi(void 0),unsubscribe:Ut};if(n.store!==e&&!(pm in r))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=Ut;else{var i=!0;n.unsubscribe=_f(e,a=>{i?n.source.v=a:oe(n.source,a)}),i=!1}return e&&pm in r?bf(e):q(n.source)}function uc(){let e={};function t(){Cr(()=>{for(var r in e)e[r].unsubscribe();Kt(e,pm,{enumerable:!1,value:!0})})}return[e,t]}function mm(e){var t=vf;try{return vf=!1,[e(),vf]}finally{vf=t}}var vf,pm,Tf=v(()=>{hm();Ef();it();Ge();He();yr();vf=!1,pm=Symbol()});function gm(...e){return new Proxy({props:e},g3)}function KE(e){return e.ctx?.d??!1}function ze(e,t,r,n){var i=(r&1)!==0,a=!gi||(r&2)!==0,u=(r&8)!==0,l=(r&16)!==0,d=!1,p;u?[p,d]=mm(()=>e[t]):p=e[t];var g=xr in e||Lu in e,E=u&&(Kr(e,t)?.set??(g&&t in e&&(X=>e[t]=X)))||void 0,_=n,y=!0,C=!1,D=()=>(C=!0,y&&(y=!1,l?_=at(n):_=n),_);p===void 0&&n!==void 0&&(E&&a&&ub(t),p=D(),E&&E(p));var P;if(a)P=()=>{var X=e[t];return X===void 0?D():(y=!0,C=!1,X)};else{var N=(i?kn:Br)(()=>e[t]);N.f|=131072,P=()=>{var X=q(N);return X!==void 0&&(_=void 0),X===void 0?_:X}}if(!(r&4))return P;if(E){var L=e.$$legacy;return function(X,ce){return arguments.length>0?((!a||!ce||L||d)&&E(ce?P():X),X):P()}}var H=!1,R=!1,B=bi(p),V=kn(()=>{var X=P(),ce=q(B);return H?(H=!1,R=!0,ce):(R=!1,B.v=X)});return u&&q(V),i||(V.equals=to),function(X,ce){if(Hu!==null&&(H=R,P(),q(B)),arguments.length>0){let ve=ce?q(V):a&&u?er(X):X;if(!V.equals(ve)){if(H=!0,oe(B,ve),C&&_!==void 0&&(_=ve),KE(V))return X;at(()=>q(V))}return X}return KE(V)?V.v:q(V)}}var g3,jE=v(()=>{mt();bt();it();yr();hs();Ge();us();hn();Nt();co();Tf();$i();g3={get(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(xa(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n)return n[t]}},set(e,t,r){let n=e.props.length;for(;n--;){let i=e.props[n];xa(i)&&(i=i());let a=Kr(i,t);if(a&&a.set)return a.set(r),!0}return!1},getOwnPropertyDescriptor(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(xa(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){let i=Kr(n,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,t){if(t===xr||t===Lu)return!1;for(let r of e.props)if(xa(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(e){let t=[];for(let r of e.props){xa(r)&&(r=r());for(let n in r)t.includes(n)||t.push(n)}return t}}});var WE=v(()=>{Nt();Ot();He();Ge();Et();On()});var GE=v(()=>{Ot();it();hn();bt();He();Wr();Tf()});function QE(e){return new _m(e)}var _m,XE=v(()=>{Nt();He();yr();vs();Ge();go();it();Wr();mt();bt();Ot();dm();_m=class{#e;#t;constructor(t){var r=new Map,n=(a,u)=>{var l=bi(u);return r.set(a,l),l};let i=new Proxy({...t.props||{},$$events:{}},{get(a,u){return q(r.get(u)??n(u,Reflect.get(a,u)))},has(a,u){return u===Lu?!0:(q(r.get(u)??n(u,Reflect.get(a,u))),Reflect.has(a,u))},set(a,u,l){return oe(r.get(u)??n(u,l),l),Reflect.set(a,u,l)}});this.#t=(t.hydrate?Kp:Es)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&ho(),this.#e=i.$$events;for(let a of Object.keys(this.#t))a==="$set"||a==="$destroy"||a==="$on"||Kt(this,a,{get(){return this.#t[a]},set(u){this.#t[a]=u},enumerable:!0});this.#t.$set=a=>{Object.assign(i,a)},this.#t.$destroy=()=>{vo(this.#t)}}$set(t){this.#t.$set(t)}$on(t,r){this.#e[t]=this.#e[t]||[];let n=(...i)=>r.call(this,...i);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(i=>i!==n)}}$destroy(){this.#t.$destroy()}}});function bm(e,t,r,n){let i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function A3(e){let t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}var y3,ZE=v(()=>{XE();He();bs();it();typeof HTMLElement=="function"&&(y3=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){let n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{let a=document.createElement("slot");n!=="default"&&(a.name=n),we(i,a)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},r=A3(this);for(let n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(let n of this.attributes){let i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=bm(i,n.value,this.$$p_d,"toProp"))}for(let n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=QE({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=sf(()=>{zt(()=>{this.$$r=!0;for(let n of mp(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];let i=bm(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(let n in this.$$l)for(let i of this.$$l[n]){let a=this.$$c.$on(n,i);this.$$l_u.set(i,a)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=bm(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return mp(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}})});var JE=v(()=>{_s();Ep();go();go()});var ev=v(()=>{Nt();Bu();Wr();Ge()});var Pn=v(()=>{bt();Ot();Yb();Up();Kb();Zb();Vu();Jb();ro();eE();tE();rE();nE();iE();df();uE();cE();Gp();lE();fE();zp();dE();hE();AE();Zp();Zu();cf();em();NE();OE();DE();kE();RE();LE();PE();FE();$E();HE();UE();Et();dm();qE();zE();bs();hs();He();yr();jE();Tf();WE();vs();Ge();GE();nm();co();ZE();Gr();ic();Bu();it();JE();Np();ev()});var Ai=v(()=>{$i();pb()});var xf,tv=v(()=>{xf=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,a])=>!this.disabled.includes(i.split("@")[0]));for(let[i,a]of n)i.endsWith(`@${t}`)&&a(...r)}}});var rv=v(()=>{yr()});var nv=v(()=>{Ge();He();yr();rv()});var Em=v(()=>{He();Ef();nv();Ef()});function vm(e){sv=e}function Tm(){return sv}var iv,av,cc,Ss,Me,yf,Ca,sv,S3,Af,ov,en=v(()=>{tv();Em();iv=/[\u4e00-\u9fa5]/,av=100,cc=300,Ss="omnisearch-disabled",Me=new xf,yf={ToggleExcerpts:"toggle-excerpts"},Ca=yo(0),sv=!1;S3=/[|\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),Af=new RegExp(`${S3}+`,"u"),ov=/[|\[\]\(\)<>\{\} \t\n\r]/u});var uv=Mi((lc,xm)=>{(function(e,t){if(typeof lc=="object"&&typeof xm=="object")xm.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else{var r=t();for(var n in r)(typeof lc=="object"?lc:e)[n]=r[n]}})(typeof self<"u"?self:lc,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,a){r.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:a})},r.r=function(n){typeof Symbol<"u"&&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 a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:n}),2&i&&typeof n!="string")for(var u in n)r.d(a,u,function(l){return n[l]}.bind(null,u));return a},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 D});var n="0123456789abcdef".split(""),i=function(P){for(var N="",L=0;L<4;L++)N+=n[P>>8*L+4&15]+n[P>>8*L&15];return N},a=function(P){for(var N=P.length,L=0;L<N;L++)P[L]=i(P[L]);return P.join("")},u=function(P,N){return P+N&4294967295},l=function(P,N,L,H,R,B,V){return function(X,ce,ve){return u(X<<ce|X>>>32-ce,ve)}(N=function(X,ce,ve,Re){return ce=u(u(ce,X),u(ve,Re))}(P,N,H,B),R,L)},d=function(P,N,L,H,R,B,V,X){return l(L&H|~L&R,N,L,B,V,X,P)},p=function(P,N,L,H,R,B,V,X){return l(L&R|H&~R,N,L,B,V,X,P)},g=function(P,N,L,H,R,B,V,X){return l(L^H^R,N,L,B,V,X,P)},E=function(P,N,L,H,R,B,V,X){return l(H^(L|~R),N,L,B,V,X,P)},_=function(P,N,L){L===void 0&&(L=u);var H=P[0],R=P[1],B=P[2],V=P[3],X=d.bind(null,L);H=X(H,R,B,V,N[0],7,-680876936),V=X(V,H,R,B,N[1],12,-389564586),B=X(B,V,H,R,N[2],17,606105819),R=X(R,B,V,H,N[3],22,-1044525330),H=X(H,R,B,V,N[4],7,-176418897),V=X(V,H,R,B,N[5],12,1200080426),B=X(B,V,H,R,N[6],17,-1473231341),R=X(R,B,V,H,N[7],22,-45705983),H=X(H,R,B,V,N[8],7,1770035416),V=X(V,H,R,B,N[9],12,-1958414417),B=X(B,V,H,R,N[10],17,-42063),R=X(R,B,V,H,N[11],22,-1990404162),H=X(H,R,B,V,N[12],7,1804603682),V=X(V,H,R,B,N[13],12,-40341101),B=X(B,V,H,R,N[14],17,-1502002290),R=X(R,B,V,H,N[15],22,1236535329);var ce=p.bind(null,L);H=ce(H,R,B,V,N[1],5,-165796510),V=ce(V,H,R,B,N[6],9,-1069501632),B=ce(B,V,H,R,N[11],14,643717713),R=ce(R,B,V,H,N[0],20,-373897302),H=ce(H,R,B,V,N[5],5,-701558691),V=ce(V,H,R,B,N[10],9,38016083),B=ce(B,V,H,R,N[15],14,-660478335),R=ce(R,B,V,H,N[4],20,-405537848),H=ce(H,R,B,V,N[9],5,568446438),V=ce(V,H,R,B,N[14],9,-1019803690),B=ce(B,V,H,R,N[3],14,-187363961),R=ce(R,B,V,H,N[8],20,1163531501),H=ce(H,R,B,V,N[13],5,-1444681467),V=ce(V,H,R,B,N[2],9,-51403784),B=ce(B,V,H,R,N[7],14,1735328473),R=ce(R,B,V,H,N[12],20,-1926607734);var ve=g.bind(null,L);H=ve(H,R,B,V,N[5],4,-378558),V=ve(V,H,R,B,N[8],11,-2022574463),B=ve(B,V,H,R,N[11],16,1839030562),R=ve(R,B,V,H,N[14],23,-35309556),H=ve(H,R,B,V,N[1],4,-1530992060),V=ve(V,H,R,B,N[4],11,1272893353),B=ve(B,V,H,R,N[7],16,-155497632),R=ve(R,B,V,H,N[10],23,-1094730640),H=ve(H,R,B,V,N[13],4,681279174),V=ve(V,H,R,B,N[0],11,-358537222),B=ve(B,V,H,R,N[3],16,-722521979),R=ve(R,B,V,H,N[6],23,76029189),H=ve(H,R,B,V,N[9],4,-640364487),V=ve(V,H,R,B,N[12],11,-421815835),B=ve(B,V,H,R,N[15],16,530742520),R=ve(R,B,V,H,N[2],23,-995338651);var Re=E.bind(null,L);H=Re(H,R,B,V,N[0],6,-198630844),V=Re(V,H,R,B,N[7],10,1126891415),B=Re(B,V,H,R,N[14],15,-1416354905),R=Re(R,B,V,H,N[5],21,-57434055),H=Re(H,R,B,V,N[12],6,1700485571),V=Re(V,H,R,B,N[3],10,-1894986606),B=Re(B,V,H,R,N[10],15,-1051523),R=Re(R,B,V,H,N[1],21,-2054922799),H=Re(H,R,B,V,N[8],6,1873313359),V=Re(V,H,R,B,N[15],10,-30611744),B=Re(B,V,H,R,N[6],15,-1560198380),R=Re(R,B,V,H,N[13],21,1309151649),H=Re(H,R,B,V,N[4],6,-145523070),V=Re(V,H,R,B,N[11],10,-1120210379),B=Re(B,V,H,R,N[2],15,718787259),R=Re(R,B,V,H,N[9],21,-343485551),P[0]=L(H,P[0]),P[1]=L(R,P[1]),P[2]=L(B,P[2]),P[3]=L(V,P[3])},y=function(P){for(var N=[],L=0;L<64;L+=4)N[L>>2]=P.charCodeAt(L)+(P.charCodeAt(L+1)<<8)+(P.charCodeAt(L+2)<<16)+(P.charCodeAt(L+3)<<24);return N},C=function(P,N){var L,H=P.length,R=[1732584193,-271733879,-1732584194,271733878];for(L=64;L<=H;L+=64)_(R,y(P.substring(L-64,L)),N);var B=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],V=(P=P.substring(L-64)).length;for(L=0;L<V;L++)B[L>>2]|=P.charCodeAt(L)<<(L%4<<3);if(B[L>>2]|=128<<(L%4<<3),L>55)for(_(R,B,N),L=16;L--;)B[L]=0;return B[14]=8*H,_(R,B,N),R};function D(P){var N;return a(C("hello"))!=="5d41402abc4b2a76b9719d911017c592"&&(N=function(L,H){var R=(65535&L)+(65535&H);return(L>>16)+(H>>16)+(R>>16)<<16|65535&R}),a(C(P,N))}}])})});function fc(e){let t=e.split("/");return t.pop(),t.join("/")}function ym(e){return new Promise(t=>{setTimeout(t,e)})}function wf(e,t){return e.headings?.filter(r=>r.level===t).map(r=>r.heading)??[]}function Sf(e,t){return(e+t)%t}function cv(e){return e.replace(/(\*|_)+(.+?)(\*|_)+/g,(t,r,n)=>n)}function lv(e){return e?.frontmatter?(0,Wi.parseFrontMatterAliases)(e.frontmatter)??[]:[]}function fv(e){let t=e?(0,Wi.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 Gi(e,t=!1){if(e==null)return"";if(t){e=e.replace(/(آ|إ|أ)/g,"\u0627").replace(/(ة)/g,"\u0647").replace(/(ئ|ؤ)/g,"\u0621").replace(/(ى)/g,"\u064A");for(let r=0;r<10;r++)e.replace(String.fromCharCode(1632+r),String.fromCharCode(48+r))}return e=e.replaceAll("`","[__omnisearch__backtick__]"),e=e.replaceAll("^","[__omnisearch__caret__]"),e=e.normalize("NFD").replace(D3,"").normalize("NFC"),e=e.replaceAll("[__omnisearch__backtick__]","`"),e=e.replaceAll("[__omnisearch__caret__]","^"),e}function vn(){return Wi.Platform.isMacOS?"\u2318":"Ctrl"}function Cf(){return Wi.Platform.isMacOS?"\u2325":"Alt"}function Mn(e){let t=Is(e);return t==="png"||t==="jpg"||t==="jpeg"||t==="webp"||t==="gif"}function ti(e){return Is(e)==="pdf"}function dv(e){let t=Is(e);return t==="docx"||t==="xlsx"}function wi(e){return e.endsWith(".canvas")}function Cs(e){return e.endsWith(".base")}function dc(e){return e.endsWith(".excalidraw")}function hc(e){return e.endsWith(".loom")}function Is(e){let t=e.split(".");return t[t.length-1]??""}function hv(e,t){let r=[],n=0,i=e.length;for(;n<i;)r.push(e.slice(n,n+=t));return r}function Am(e){return/[a-z][A-Z]/.test(e)?e.replace(/([a-z](?=[A-Z]))/g,"$1 ").split(" ").filter(r=>r):[]}function wm(e){return e.includes("-")?e.split("-").filter(t=>t):[]}function Ke(...e){mv(console.debug,...e)}function ri(...e){mv(console.warn,...e)}function Sm(e){pv=e}function mv(e,...t){pv&&e(...t)}var Wi,C3,I3,N3,O3,D3,pv,pc,Nr=v(()=>{Wi=require("obsidian");en();C3=require("crypto"),I3=ln(uv());N3=["\\u30FC","\\u309A","\\u3099"],O3=N3.join("|"),D3=new RegExp(`(?!${O3})\\p{Diacritic}`,"gu");pv=!1;pc=(()=>{let e=0,t=!1;return setTimeout(()=>{e>0&&--e},1e3),(r=!1)=>{(++e>=5||r)&&!t&&(t=!0,new Wi.Notice("Omnisearch \u26A0\uFE0F There might be an issue with your cache. You should clean it in Omnisearch settings and restart Obsidian.",5e3))}})()});function gc(e,t){dr(t,!1);let r=ze(t,"initialValue",8,""),n=ze(t,"placeholder",8,""),i=ze(t,"plugin",8),a=!1,u=ft(""),l=ft(),d=YE();function p(N){oe(u,N)}function g(N){N&&!a&&!q(u)&&(a=!0,oe(u,N),E())}function E(N){vi().then(async()=>(mc.Platform.isMobileApp&&await ym(200),q(l).focus(),vi())).then(async()=>{mc.Platform.isMobileApp&&await ym(200),q(l).select()})}let _=(0,mc.debounce)(()=>{i().searchHistory.addToHistory(""),d("input",q(u))},300);Qt(()=>vt(r()),()=>{g(r())}),Jn(),En();var y=k3(),C=xe(y),D=xe(C);rm(D),ys(D,N=>oe(l,N),()=>q(l)),Gt(()=>um(D,()=>q(u),N=>oe(u,N))),Gt(()=>pr("compositionend",D,N=>vm(!1))),Gt(()=>pr("compositionstart",D,N=>vm(!0))),Gt(()=>pr("input",D,_)),wa(D,N=>E?.(N)),Te(C);var P=Ye(C,2);return Yi(P,t,"default",{},null),Te(y),rr(()=>ji(D,"placeholder",n())),we(e,y),cm(t,"setInputValue",p),hr({setInputValue:p})}var mc,k3,Cm=v(()=>{Wn();Ai();Pn();mc=require("obsidian");en();ws();Nr();k3=Le('<div class="omnisearch-input-container"><div class="omnisearch-input-field"><input class="prompt-input" spellcheck="false" type="text"></div> <!></div>')});function _c(e,t){var r=R3(),n=xe(r);Yi(n,t,"default",{},null),Te(r),pr("mousedown",r,i=>i.preventDefault()),we(e,r)}var R3,Im=v(()=>{Wn();Ai();Pn();R3=Le('<div class="prompt-results"><!></div>')});function gv(e,t){if(!e.includes("# Page ")||t>e.length)return null;let r=e.substring(0,t),n=/^# Page ([0-9]+)\^page=\1$/gm,i=null,a;for(;(a=n.exec(r))!==null;)i=a;return i?parseInt(i[1],10):null}async function If(e,t,r=0,n=!1,i=!1){let a=t.path.toLowerCase().endsWith(".pdf");if(a){let p=a?gv(t.content,r):null;if(p!==null){let g=`${t.path}#page=${p}`;await e.workspace.openLinkText(g,"",i?"split":n);return}}let u=!1;if(e.workspace.iterateAllLeaves(p=>{p.view instanceof Nm.MarkdownView&&!n&&p.getViewState().state?.file===t.path&&p.getViewState()?.pinned&&(e.workspace.setActiveLeaf(p,{focus:!0}),u=!0)}),!u){let p=t.path;if(a&&r>0){let g=gv(t.content,r);g!==null&&(p=`${t.path}#page=${g}`)}await e.workspace.openLinkText(t.path,"",i?"split":n)}let l=e.workspace.getActiveViewOfType(Nm.MarkdownView);if(!l)return;let d=l.editor.offsetToPos(r);l.editor.setCursor(d),l.editor.scrollIntoView({from:{line:d.line-10,ch:0},to:{line:d.line+10,ch:0}})}async function _v(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 bv(e,t,r){return(r.links??[]).map(n=>{let i=Om(n.link);return e.metadataCache.getFirstLinkpathDest(i,t.path)?"":n.link}).filter(n=>!!n)}function Om(e){return e.split(/[\^#]+/)[0]}var Nm,bc=v(()=>{Nm=require("obsidian")});function ar(e){let t=new DocumentFragment;return t.createSpan({},r=>{r.innerHTML=e}),t}function Nf(e){return e.loadLocalStorage(Ss)==="1"}async function ke(e){await e.saveData(Or)}function Qi(){return!Ev.Platform.isIosApp&&Or.useCache}var Ev,Ao,mr=v(()=>{Ev=require("obsidian");en();wo();Ao='<strong style="color: var(--text-accent)">Needs a restart to fully take effect.</strong>'});function vv(e,t,r){let n=e.database;new tn.Setting(r).setName("Behavior").setHeading(),new tn.Setting(r).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(i=>i.setValue(t.useCache).onChange(async a=>{t.useCache=a,await ke(e)})),new tn.Setting(r).setName("Show previous query results").setDesc("Re-executes the previous query when opening Omnisearch.").addToggle(i=>i.setValue(t.showPreviousQueryResults).onChange(async a=>{t.showPreviousQueryResults=a,await ke(e)})),new tn.Setting(r).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(i=>i.setValue(t.hideExcluded).onChange(async a=>{t.hideExcluded=a,await ke(e)})),new tn.Setting(r).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(i=>{i.setValue(t.downrankedFoldersFilters.join(",")).setPlaceholder("Example: src,p2/dir").onChange(async a=>{let u=a.split(",");u=u.map(l=>l.trim()),t.downrankedFoldersFilters=u,await ke(e)})}),new tn.Setting(r).setName("Split CamelCaseWords").setDesc(ar(`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>
        ${Ao}`)).addToggle(i=>i.setValue(t.splitCamelCase).onChange(async a=>{await n.clearCache(),t.splitCamelCase=a,await ke(e)})),new tn.Setting(r).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(i=>i.setValue(t.simpleSearch).onChange(async a=>{t.simpleSearch=a,await ke(e)})),tn.Platform.isIosApp||new tn.Setting(r).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(i=>i.setValue(t.tokenizeUrls).onChange(async a=>{t.tokenizeUrls=a,await ke(e)})),new tn.Setting(r).setName("Open in new pane").setDesc("Open and create files in a new pane instead of the current pane.").addToggle(i=>i.setValue(t.openInNewPane).onChange(async a=>{t.openInNewPane=a,await ke(e)})),new tn.Setting(r).setName("Set Vim like navigation keys").setDesc(`Navigate down the results with ${vn()} + J/N, or navigate up with ${vn()} + K/P.`).addToggle(i=>i.setValue(t.vimLikeNavigationShortcut).onChange(async a=>{t.vimLikeNavigationShortcut=a,await ke(e)})),new tn.Setting(r).setName("Fuzziness").setDesc("Define the level of fuzziness for the search. The higher the fuzziness, the more results you'll get.").addDropdown(i=>i.addOptions({0:"Exact match",1:"Not too fuzzy",2:"Fuzzy enough"}).setValue(t.fuzziness).onChange(async a=>{["0","1","2"].includes(a)||(a="2"),t.fuzziness=a,await ke(e)}))}var tn,Tv=v(()=>{tn=require("obsidian");mr();mr();Nr()});function xv(e,t,r){let n=e.database;new Si.Setting(r).setName("Danger Zone").setHeading(),new Si.Setting(r).setName("Ignore diacritics").setDesc(ar(`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>
      ${Ao}`)).addToggle(a=>a.setValue(t.ignoreDiacritics).onChange(async u=>{await n.clearCache(),t.ignoreDiacritics=u,await ke(e)})),new Si.Setting(r).setName("Ignore Arabic diacritics (beta)").addToggle(a=>a.setValue(t.ignoreArabicDiacritics).onChange(async u=>{await n.clearCache(),t.ignoreArabicDiacritics=u,await ke(e)}));let i=new DocumentFragment;i.createSpan({},a=>{a.innerHTML=`Disable Omnisearch on this device only.<br>
      ${Ao}`}),new Si.Setting(r).setName("Disable on this device").setDesc(i).addToggle(a=>a.setValue(Nf(e.app)).onChange(async u=>{u?(e.app.saveLocalStorage(Ss,"1"),new Si.Notice("Omnisearch - Disabled. Please restart Obsidian.")):(e.app.saveLocalStorage(Ss),new Si.Notice("Omnisearch - Enabled. Please restart Obsidian."))})),new Si.Setting(r).setName("Force save the cache").setDesc(ar(`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(a=>a.setValue(t.DANGER_forceSaveCache).onChange(async u=>{t.DANGER_forceSaveCache=u,await ke(e)})),Qi()&&new Si.Setting(r).setName("Clear cache data").setDesc(ar(`Erase all Omnisearch cache data.
        Use this if Omnisearch results are inconsistent, missing, or appear outdated.<br>
        ${Ao}`)).addButton(a=>{a.setButtonText("Clear cache"),a.onClick(async()=>{await n.clearCache()})})}var Si,yv=v(()=>{Si=require("obsidian");mr();mr();mr();en()});function Av(e,t,r){Ns.Platform.isMobile||(new Ns.Setting(r).setName("API Access Through HTTP").setHeading().setDesc(ar('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 Ns.Setting(r).setName("Enable the HTTP server").addToggle(n=>n.setValue(t.httpApiEnabled).onChange(async i=>{t.httpApiEnabled=i,i?e.apiHttpServer.listen(t.httpApiPort):e.apiHttpServer.close(),await ke(e)})),new Ns.Setting(r).setName("HTTP Port").addText(n=>{n.setValue(t.httpApiPort).setPlaceholder("51361").onChange(async i=>{parseInt(i)>65535&&(i=t.httpApiPort,n.setValue(t.httpApiPort)),t.httpApiPort=i,t.httpApiEnabled&&(e.apiHttpServer.close(),e.apiHttpServer.listen(t.httpApiPort)),await ke(e)})}),new Ns.Setting(r).setName("Show a notification when the server starts").setDesc("Will display a notification if the server is enabled, at Obsidian startup.").addToggle(n=>n.setValue(t.httpApiNotice).onChange(async i=>{t.httpApiNotice=i,await ke(e)})))}var Ns,wv=v(()=>{Ns=require("obsidian");mr();mr()});var L3,Of,Dm=v(()=>{L3=typeof global=="object"&&global&&global.Object===Object&&global,Of=L3});var P3,M3,Yt,ni=v(()=>{Dm();P3=typeof self=="object"&&self&&self.Object===Object&&self,M3=Of||P3||Function("return this")(),Yt=M3});var F3,Ur,So=v(()=>{ni();F3=Yt.Symbol,Ur=F3});function H3(e){var t=B3.call(e,Ec),r=e[Ec];try{e[Ec]=void 0;var n=!0}catch{}var i=$3.call(e);return n&&(t?e[Ec]=r:delete e[Ec]),i}var Sv,B3,$3,Ec,Cv,Iv=v(()=>{So();Sv=Object.prototype,B3=Sv.hasOwnProperty,$3=Sv.toString,Ec=Ur?Ur.toStringTag:void 0;Cv=H3});function q3(e){return V3.call(e)}var U3,V3,Nv,Ov=v(()=>{U3=Object.prototype,V3=U3.toString;Nv=q3});function K3(e){return e==null?e===void 0?Y3:z3:Dv&&Dv in Object(e)?Cv(e):Nv(e)}var z3,Y3,Dv,ii,Co=v(()=>{So();Iv();Ov();z3="[object Null]",Y3="[object Undefined]",Dv=Ur?Ur.toStringTag:void 0;ii=K3});function j3(e){return e!=null&&typeof e=="object"}var ai,Io=v(()=>{ai=j3});function G3(e){return typeof e=="symbol"||ai(e)&&ii(e)==W3}var W3,si,No=v(()=>{Co();Io();W3="[object Symbol]";si=G3});function Q3(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 Oo,km=v(()=>{Oo=Q3});var X3,Ft,oi=v(()=>{X3=Array.isArray,Ft=X3});function Lv(e){if(typeof e=="string")return e;if(Ft(e))return Oo(e,Lv)+"";if(si(e))return Rv?Rv.call(e):"";var t=e+"";return t=="0"&&1/e==-Z3?"-0":t}var Z3,kv,Rv,Pv,Mv=v(()=>{So();km();oi();No();Z3=1/0,kv=Ur?Ur.prototype:void 0,Rv=kv?kv.toString:void 0;Pv=Lv});function eN(e){for(var t=e.length;t--&&J3.test(e.charAt(t)););return t}var J3,Fv,Bv=v(()=>{J3=/\s/;Fv=eN});function rN(e){return e&&e.slice(0,Fv(e)+1).replace(tN,"")}var tN,$v,Hv=v(()=>{Bv();tN=/^\s+/;$v=rN});function nN(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Tn,Os=v(()=>{Tn=nN});function uN(e){if(typeof e=="number")return e;if(si(e))return Uv;if(Tn(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Tn(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=$v(e);var r=aN.test(e);return r||sN.test(e)?oN(e.slice(2),r?2:8):iN.test(e)?Uv:+e}var Uv,iN,aN,sN,oN,Rm,Vv=v(()=>{Hv();Os();No();Uv=0/0,iN=/^[-+]0x[0-9a-f]+$/i,aN=/^0b[01]+$/i,sN=/^0o[0-7]+$/i,oN=parseInt;Rm=uN});function cN(e){return e}var Ia,vc=v(()=>{Ia=cN});function pN(e){if(!Tn(e))return!1;var t=ii(e);return t==fN||t==dN||t==lN||t==hN}var lN,fN,dN,hN,Df,Lm=v(()=>{Co();Os();lN="[object AsyncFunction]",fN="[object Function]",dN="[object GeneratorFunction]",hN="[object Proxy]";Df=pN});var mN,kf,qv=v(()=>{ni();mN=Yt["__core-js_shared__"],kf=mN});function gN(e){return!!zv&&zv in e}var zv,Yv,Kv=v(()=>{qv();zv=function(){var e=/[^.]+$/.exec(kf&&kf.keys&&kf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();Yv=gN});function EN(e){if(e!=null){try{return bN.call(e)}catch{}try{return e+""}catch{}}return""}var _N,bN,Xi,Pm=v(()=>{_N=Function.prototype,bN=_N.toString;Xi=EN});function CN(e){if(!Tn(e)||Yv(e))return!1;var t=Df(e)?SN:TN;return t.test(Xi(e))}var vN,TN,xN,yN,AN,wN,SN,jv,Wv=v(()=>{Lm();Kv();Os();Pm();vN=/[\\^$.*+?()[\]{}|]/g,TN=/^\[object .+?Constructor\]$/,xN=Function.prototype,yN=Object.prototype,AN=xN.toString,wN=yN.hasOwnProperty,SN=RegExp("^"+AN.call(wN).replace(vN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");jv=CN});function IN(e,t){return e?.[t]}var Gv,Qv=v(()=>{Gv=IN});function NN(e,t){var r=Gv(e,t);return jv(r)?r:void 0}var rn,Na=v(()=>{Wv();Qv();rn=NN});var ON,Rf,Xv=v(()=>{Na();ni();ON=rn(Yt,"WeakMap"),Rf=ON});function DN(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 Zv,Jv=v(()=>{Zv=DN});function PN(e){var t=0,r=0;return function(){var n=LN(),i=RN-(n-r);if(r=n,i>0){if(++t>=kN)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var kN,RN,LN,e1,t1=v(()=>{kN=800,RN=16,LN=Date.now;e1=PN});function MN(e){return function(){return e}}var r1,n1=v(()=>{r1=MN});var FN,Mm,i1=v(()=>{Na();FN=function(){try{var e=rn(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Mm=FN});var BN,a1,s1=v(()=>{n1();i1();vc();BN=Mm?function(e,t){return Mm(e,"toString",{configurable:!0,enumerable:!1,value:r1(t),writable:!0})}:Ia,a1=BN});var $N,o1,u1=v(()=>{s1();t1();$N=e1(a1),o1=$N});function VN(e,t){var r=typeof e;return t=t??HN,!!t&&(r=="number"||r!="symbol"&&UN.test(e))&&e>-1&&e%1==0&&e<t}var HN,UN,Do,Lf=v(()=>{HN=9007199254740991,UN=/^(?:0|[1-9]\d*)$/;Do=VN});function qN(e,t){return e===t||e!==e&&t!==t}var ko,Pf=v(()=>{ko=qN});function zN(e,t,r){return t=c1(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=c1(n.length-t,0),u=Array(a);++i<a;)u[i]=n[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=n[i];return l[t]=r(u),Zv(e,this,l)}}var c1,l1,f1=v(()=>{Jv();c1=Math.max;l1=zN});function YN(e,t){return o1(l1(e,t,Ia),e+"")}var d1,h1=v(()=>{vc();f1();u1();d1=YN});function jN(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=KN}var KN,Ro,Mf=v(()=>{KN=9007199254740991;Ro=jN});function WN(e){return e!=null&&Ro(e.length)&&!Df(e)}var Oa,Tc=v(()=>{Lm();Mf();Oa=WN});function GN(e,t,r){if(!Tn(r))return!1;var n=typeof t;return(n=="number"?Oa(r)&&Do(t,r.length):n=="string"&&t in r)?ko(r[t],e):!1}var Fm,p1=v(()=>{Pf();Tc();Lf();Os();Fm=GN});function XN(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||QN;return e===r}var QN,m1,g1=v(()=>{QN=Object.prototype;m1=XN});function ZN(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var _1,b1=v(()=>{_1=ZN});function eO(e){return ai(e)&&ii(e)==JN}var JN,Bm,E1=v(()=>{Co();Io();JN="[object Arguments]";Bm=eO});var v1,tO,rO,nO,Lo,Ff=v(()=>{E1();Io();v1=Object.prototype,tO=v1.hasOwnProperty,rO=v1.propertyIsEnumerable,nO=Bm(function(){return arguments}())?Bm:function(e){return ai(e)&&tO.call(e,"callee")&&!rO.call(e,"callee")},Lo=nO});function iO(){return!1}var T1,x1=v(()=>{T1=iO});var w1,y1,aO,A1,sO,oO,xc,$m=v(()=>{ni();x1();w1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,y1=w1&&typeof module=="object"&&module&&!module.nodeType&&module,aO=y1&&y1.exports===w1,A1=aO?Yt.Buffer:void 0,sO=A1?A1.isBuffer:void 0,oO=sO||T1,xc=oO});function kO(e){return ai(e)&&Ro(e.length)&&!!yt[ii(e)]}var uO,cO,lO,fO,dO,hO,pO,mO,gO,_O,bO,EO,vO,TO,xO,yO,AO,wO,SO,CO,IO,NO,OO,DO,yt,S1,C1=v(()=>{Co();Mf();Io();uO="[object Arguments]",cO="[object Array]",lO="[object Boolean]",fO="[object Date]",dO="[object Error]",hO="[object Function]",pO="[object Map]",mO="[object Number]",gO="[object Object]",_O="[object RegExp]",bO="[object Set]",EO="[object String]",vO="[object WeakMap]",TO="[object ArrayBuffer]",xO="[object DataView]",yO="[object Float32Array]",AO="[object Float64Array]",wO="[object Int8Array]",SO="[object Int16Array]",CO="[object Int32Array]",IO="[object Uint8Array]",NO="[object Uint8ClampedArray]",OO="[object Uint16Array]",DO="[object Uint32Array]",yt={};yt[yO]=yt[AO]=yt[wO]=yt[SO]=yt[CO]=yt[IO]=yt[NO]=yt[OO]=yt[DO]=!0;yt[uO]=yt[cO]=yt[TO]=yt[lO]=yt[xO]=yt[fO]=yt[dO]=yt[hO]=yt[pO]=yt[mO]=yt[gO]=yt[_O]=yt[bO]=yt[EO]=yt[vO]=!1;S1=kO});function RO(e){return function(t){return e(t)}}var Bf,Hm=v(()=>{Bf=RO});var I1,yc,LO,Um,PO,Vm,N1=v(()=>{Dm();I1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yc=I1&&typeof module=="object"&&module&&!module.nodeType&&module,LO=yc&&yc.exports===I1,Um=LO&&Of.process,PO=function(){try{var e=yc&&yc.require&&yc.require("util").types;return e||Um&&Um.binding&&Um.binding("util")}catch{}}(),Vm=PO});var O1,MO,$f,qm=v(()=>{C1();Hm();N1();O1=Vm&&Vm.isTypedArray,MO=O1?Bf(O1):S1,$f=MO});function $O(e,t){var r=Ft(e),n=!r&&Lo(e),i=!r&&!n&&xc(e),a=!r&&!n&&!i&&$f(e),u=r||n||i||a,l=u?_1(e.length,String):[],d=l.length;for(var p in e)(t||BO.call(e,p))&&!(u&&(p=="length"||i&&(p=="offset"||p=="parent")||a&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||Do(p,d)))&&l.push(p);return l}var FO,BO,D1,k1=v(()=>{b1();Ff();oi();$m();Lf();qm();FO=Object.prototype,BO=FO.hasOwnProperty;D1=$O});function HO(e,t){return function(r){return e(t(r))}}var R1,L1=v(()=>{R1=HO});var UO,P1,M1=v(()=>{L1();UO=R1(Object.keys,Object),P1=UO});function zO(e){if(!m1(e))return P1(e);var t=[];for(var r in Object(e))qO.call(e,r)&&r!="constructor"&&t.push(r);return t}var VO,qO,F1,B1=v(()=>{g1();M1();VO=Object.prototype,qO=VO.hasOwnProperty;F1=zO});function YO(e){return Oa(e)?D1(e):F1(e)}var Po,Hf=v(()=>{k1();B1();Tc();Po=YO});function WO(e,t){if(Ft(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||si(e)?!0:jO.test(e)||!KO.test(e)||t!=null&&e in Object(t)}var KO,jO,Mo,Uf=v(()=>{oi();No();KO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jO=/^\w*$/;Mo=WO});var GO,Zi,Ac=v(()=>{Na();GO=rn(Object,"create"),Zi=GO});function QO(){this.__data__=Zi?Zi(null):{},this.size=0}var $1,H1=v(()=>{Ac();$1=QO});function XO(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var U1,V1=v(()=>{U1=XO});function tD(e){var t=this.__data__;if(Zi){var r=t[e];return r===ZO?void 0:r}return eD.call(t,e)?t[e]:void 0}var ZO,JO,eD,q1,z1=v(()=>{Ac();ZO="__lodash_hash_undefined__",JO=Object.prototype,eD=JO.hasOwnProperty;q1=tD});function iD(e){var t=this.__data__;return Zi?t[e]!==void 0:nD.call(t,e)}var rD,nD,Y1,K1=v(()=>{Ac();rD=Object.prototype,nD=rD.hasOwnProperty;Y1=iD});function sD(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Zi&&t===void 0?aD:t,this}var aD,j1,W1=v(()=>{Ac();aD="__lodash_hash_undefined__";j1=sD});function Fo(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 zm,G1=v(()=>{H1();V1();z1();K1();W1();Fo.prototype.clear=$1;Fo.prototype.delete=U1;Fo.prototype.get=q1;Fo.prototype.has=Y1;Fo.prototype.set=j1;zm=Fo});function oD(){this.__data__=[],this.size=0}var Q1,X1=v(()=>{Q1=oD});function uD(e,t){for(var r=e.length;r--;)if(ko(e[r][0],t))return r;return-1}var Da,wc=v(()=>{Pf();Da=uD});function fD(e){var t=this.__data__,r=Da(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():lD.call(t,r,1),--this.size,!0}var cD,lD,Z1,J1=v(()=>{wc();cD=Array.prototype,lD=cD.splice;Z1=fD});function dD(e){var t=this.__data__,r=Da(t,e);return r<0?void 0:t[r][1]}var eT,tT=v(()=>{wc();eT=dD});function hD(e){return Da(this.__data__,e)>-1}var rT,nT=v(()=>{wc();rT=hD});function pD(e,t){var r=this.__data__,n=Da(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var iT,aT=v(()=>{wc();iT=pD});function Bo(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 ka,Sc=v(()=>{X1();J1();tT();nT();aT();Bo.prototype.clear=Q1;Bo.prototype.delete=Z1;Bo.prototype.get=eT;Bo.prototype.has=rT;Bo.prototype.set=iT;ka=Bo});var mD,Ra,Vf=v(()=>{Na();ni();mD=rn(Yt,"Map"),Ra=mD});function gD(){this.size=0,this.__data__={hash:new zm,map:new(Ra||ka),string:new zm}}var sT,oT=v(()=>{G1();Sc();Vf();sT=gD});function _D(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var uT,cT=v(()=>{uT=_D});function bD(e,t){var r=e.__data__;return uT(t)?r[typeof t=="string"?"string":"hash"]:r.map}var La,Cc=v(()=>{cT();La=bD});function ED(e){var t=La(this,e).delete(e);return this.size-=t?1:0,t}var lT,fT=v(()=>{Cc();lT=ED});function vD(e){return La(this,e).get(e)}var dT,hT=v(()=>{Cc();dT=vD});function TD(e){return La(this,e).has(e)}var pT,mT=v(()=>{Cc();pT=TD});function xD(e,t){var r=La(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var gT,_T=v(()=>{Cc();gT=xD});function $o(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 Ds,qf=v(()=>{oT();fT();hT();mT();_T();$o.prototype.clear=sT;$o.prototype.delete=lT;$o.prototype.get=dT;$o.prototype.has=pT;$o.prototype.set=gT;Ds=$o});function Ym(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(yD);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var u=e.apply(this,n);return r.cache=a.set(i,u)||a,u};return r.cache=new(Ym.Cache||Ds),r}var yD,bT,ET=v(()=>{qf();yD="Expected a function";Ym.Cache=Ds;bT=Ym});function wD(e){var t=bT(e,function(n){return r.size===AD&&r.clear(),n}),r=t.cache;return t}var AD,vT,TT=v(()=>{ET();AD=500;vT=wD});var SD,CD,ID,xT,yT=v(()=>{TT();SD=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,CD=/\\(\\)?/g,ID=vT(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(SD,function(r,n,i,a){t.push(i?a.replace(CD,"$1"):n||r)}),t}),xT=ID});function ND(e){return e==null?"":Pv(e)}var zf,Km=v(()=>{Mv();zf=ND});function OD(e,t){return Ft(e)?e:Mo(e,t)?[e]:xT(zf(e))}var Yf,jm=v(()=>{oi();Uf();yT();Km();Yf=OD});function kD(e){if(typeof e=="string"||si(e))return e;var t=e+"";return t=="0"&&1/e==-DD?"-0":t}var DD,Pa,Ic=v(()=>{No();DD=1/0;Pa=kD});function RD(e,t){t=Yf(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Pa(t[r++])];return r&&r==n?e:void 0}var Ho,Kf=v(()=>{jm();Ic();Ho=RD});function LD(e,t,r){var n=e==null?void 0:Ho(e,t);return n===void 0?r:n}var AT,wT=v(()=>{Kf();AT=LD});function PD(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var jf,Wm=v(()=>{jf=PD});function MD(e){return Ft(e)||Lo(e)||!!(ST&&e&&e[ST])}var ST,CT,IT=v(()=>{So();Ff();oi();ST=Ur?Ur.isConcatSpreadable:void 0;CT=MD});function NT(e,t,r,n,i){var a=-1,u=e.length;for(r||(r=CT),i||(i=[]);++a<u;){var l=e[a];t>0&&r(l)?t>1?NT(l,t-1,r,n,i):jf(i,l):n||(i[i.length]=l)}return i}var OT,DT=v(()=>{Wm();IT();OT=NT});function FD(){this.__data__=new ka,this.size=0}var kT,RT=v(()=>{Sc();kT=FD});function BD(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var LT,PT=v(()=>{LT=BD});function $D(e){return this.__data__.get(e)}var MT,FT=v(()=>{MT=$D});function HD(e){return this.__data__.has(e)}var BT,$T=v(()=>{BT=HD});function VD(e,t){var r=this.__data__;if(r instanceof ka){var n=r.__data__;if(!Ra||n.length<UD-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ds(n)}return r.set(e,t),this.size=r.size,this}var UD,HT,UT=v(()=>{Sc();Vf();qf();UD=200;HT=VD});function Uo(e){var t=this.__data__=new ka(e);this.size=t.size}var Vo,Gm=v(()=>{Sc();RT();PT();FT();$T();UT();Uo.prototype.clear=kT;Uo.prototype.delete=LT;Uo.prototype.get=MT;Uo.prototype.has=BT;Uo.prototype.set=HT;Vo=Uo});function qD(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var u=e[r];t(u,r,e)&&(a[i++]=u)}return a}var VT,qT=v(()=>{VT=qD});function zD(){return[]}var zT,YT=v(()=>{zT=zD});var YD,KD,KT,jD,jT,WT=v(()=>{qT();YT();YD=Object.prototype,KD=YD.propertyIsEnumerable,KT=Object.getOwnPropertySymbols,jD=KT?function(e){return e==null?[]:(e=Object(e),VT(KT(e),function(t){return KD.call(e,t)}))}:zT,jT=jD});function WD(e,t,r){var n=t(e);return Ft(e)?n:jf(n,r(e))}var GT,QT=v(()=>{Wm();oi();GT=WD});function GD(e){return GT(e,Po,jT)}var Qm,XT=v(()=>{QT();WT();Hf();Qm=GD});var QD,Wf,ZT=v(()=>{Na();ni();QD=rn(Yt,"DataView"),Wf=QD});var XD,Gf,JT=v(()=>{Na();ni();XD=rn(Yt,"Promise"),Gf=XD});var ZD,Qf,ex=v(()=>{Na();ni();ZD=rn(Yt,"Set"),Qf=ZD});var tx,JD,rx,nx,ix,ax,ek,tk,rk,nk,ik,ks,Xm,sx=v(()=>{ZT();Vf();JT();ex();Xv();Co();Pm();tx="[object Map]",JD="[object Object]",rx="[object Promise]",nx="[object Set]",ix="[object WeakMap]",ax="[object DataView]",ek=Xi(Wf),tk=Xi(Ra),rk=Xi(Gf),nk=Xi(Qf),ik=Xi(Rf),ks=ii;(Wf&&ks(new Wf(new ArrayBuffer(1)))!=ax||Ra&&ks(new Ra)!=tx||Gf&&ks(Gf.resolve())!=rx||Qf&&ks(new Qf)!=nx||Rf&&ks(new Rf)!=ix)&&(ks=function(e){var t=ii(e),r=t==JD?e.constructor:void 0,n=r?Xi(r):"";if(n)switch(n){case ek:return ax;case tk:return tx;case rk:return rx;case nk:return nx;case ik:return ix}return t});Xm=ks});var ak,Zm,ox=v(()=>{ni();ak=Yt.Uint8Array,Zm=ak});function ok(e){return this.__data__.set(e,sk),this}var sk,ux,cx=v(()=>{sk="__lodash_hash_undefined__";ux=ok});function uk(e){return this.__data__.has(e)}var lx,fx=v(()=>{lx=uk});function Xf(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ds;++t<r;)this.add(e[t])}var dx,hx=v(()=>{qf();cx();fx();Xf.prototype.add=Xf.prototype.push=ux;Xf.prototype.has=lx;dx=Xf});function ck(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 px,mx=v(()=>{px=ck});function lk(e,t){return e.has(t)}var gx,_x=v(()=>{gx=lk});function hk(e,t,r,n,i,a){var u=r&fk,l=e.length,d=t.length;if(l!=d&&!(u&&d>l))return!1;var p=a.get(e),g=a.get(t);if(p&&g)return p==t&&g==e;var E=-1,_=!0,y=r&dk?new dx:void 0;for(a.set(e,t),a.set(t,e);++E<l;){var C=e[E],D=t[E];if(n)var P=u?n(D,C,E,t,e,a):n(C,D,E,e,t,a);if(P!==void 0){if(P)continue;_=!1;break}if(y){if(!px(t,function(N,L){if(!gx(y,L)&&(C===N||i(C,N,r,n,a)))return y.push(L)})){_=!1;break}}else if(!(C===D||i(C,D,r,n,a))){_=!1;break}}return a.delete(e),a.delete(t),_}var fk,dk,Zf,Jm=v(()=>{hx();mx();_x();fk=1,dk=2;Zf=hk});function pk(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var bx,Ex=v(()=>{bx=pk});function mk(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var vx,Tx=v(()=>{vx=mk});function Nk(e,t,r,n,i,a,u){switch(r){case Ik:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ck:return!(e.byteLength!=t.byteLength||!a(new Zm(e),new Zm(t)));case bk:case Ek:case xk:return ko(+e,+t);case vk:return e.name==t.name&&e.message==t.message;case yk:case wk:return e==t+"";case Tk:var l=bx;case Ak:var d=n&gk;if(l||(l=vx),e.size!=t.size&&!d)return!1;var p=u.get(e);if(p)return p==t;n|=_k,u.set(e,t);var g=Zf(l(e),l(t),n,i,a,u);return u.delete(e),g;case Sk:if(e0)return e0.call(e)==e0.call(t)}return!1}var gk,_k,bk,Ek,vk,Tk,xk,yk,Ak,wk,Sk,Ck,Ik,xx,e0,yx,Ax=v(()=>{So();ox();Pf();Jm();Ex();Tx();gk=1,_k=2,bk="[object Boolean]",Ek="[object Date]",vk="[object Error]",Tk="[object Map]",xk="[object Number]",yk="[object RegExp]",Ak="[object Set]",wk="[object String]",Sk="[object Symbol]",Ck="[object ArrayBuffer]",Ik="[object DataView]",xx=Ur?Ur.prototype:void 0,e0=xx?xx.valueOf:void 0;yx=Nk});function Rk(e,t,r,n,i,a){var u=r&Ok,l=Qm(e),d=l.length,p=Qm(t),g=p.length;if(d!=g&&!u)return!1;for(var E=d;E--;){var _=l[E];if(!(u?_ in t:kk.call(t,_)))return!1}var y=a.get(e),C=a.get(t);if(y&&C)return y==t&&C==e;var D=!0;a.set(e,t),a.set(t,e);for(var P=u;++E<d;){_=l[E];var N=e[_],L=t[_];if(n)var H=u?n(L,N,_,t,e,a):n(N,L,_,e,t,a);if(!(H===void 0?N===L||i(N,L,r,n,a):H)){D=!1;break}P||(P=_=="constructor")}if(D&&!P){var R=e.constructor,B=t.constructor;R!=B&&"constructor"in e&&"constructor"in t&&!(typeof R=="function"&&R instanceof R&&typeof B=="function"&&B instanceof B)&&(D=!1)}return a.delete(e),a.delete(t),D}var Ok,Dk,kk,wx,Sx=v(()=>{XT();Ok=1,Dk=Object.prototype,kk=Dk.hasOwnProperty;wx=Rk});function Mk(e,t,r,n,i,a){var u=Ft(e),l=Ft(t),d=u?Ix:Xm(e),p=l?Ix:Xm(t);d=d==Cx?Jf:d,p=p==Cx?Jf:p;var g=d==Jf,E=p==Jf,_=d==p;if(_&&xc(e)){if(!xc(t))return!1;u=!0,g=!1}if(_&&!g)return a||(a=new Vo),u||$f(e)?Zf(e,t,r,n,i,a):yx(e,t,d,r,n,i,a);if(!(r&Lk)){var y=g&&Nx.call(e,"__wrapped__"),C=E&&Nx.call(t,"__wrapped__");if(y||C){var D=y?e.value():e,P=C?t.value():t;return a||(a=new Vo),i(D,P,r,n,a)}}return _?(a||(a=new Vo),wx(e,t,r,n,i,a)):!1}var Lk,Cx,Ix,Jf,Pk,Nx,Ox,Dx=v(()=>{Gm();Jm();Ax();Sx();sx();oi();$m();qm();Lk=1,Cx="[object Arguments]",Ix="[object Array]",Jf="[object Object]",Pk=Object.prototype,Nx=Pk.hasOwnProperty;Ox=Mk});function kx(e,t,r,n,i){return e===t?!0:e==null||t==null||!ai(e)&&!ai(t)?e!==e&&t!==t:Ox(e,t,r,n,kx,i)}var ed,t0=v(()=>{Dx();Io();ed=kx});function $k(e,t,r,n){var i=r.length,a=i,u=!n;if(e==null)return!a;for(e=Object(e);i--;){var l=r[i];if(u&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){l=r[i];var d=l[0],p=e[d],g=l[1];if(u&&l[2]){if(p===void 0&&!(d in e))return!1}else{var E=new Vo;if(n)var _=n(p,g,d,e,t,E);if(!(_===void 0?ed(g,p,Fk|Bk,n,E):_))return!1}}return!0}var Fk,Bk,Rx,Lx=v(()=>{Gm();t0();Fk=1,Bk=2;Rx=$k});function Hk(e){return e===e&&!Tn(e)}var td,r0=v(()=>{Os();td=Hk});function Uk(e){for(var t=Po(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,td(i)]}return t}var Px,Mx=v(()=>{r0();Hf();Px=Uk});function Vk(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var rd,n0=v(()=>{rd=Vk});function qk(e){var t=Px(e);return t.length==1&&t[0][2]?rd(t[0][0],t[0][1]):function(r){return r===e||Rx(r,e,t)}}var Fx,Bx=v(()=>{Lx();Mx();n0();Fx=qk});function zk(e,t){return e!=null&&t in Object(e)}var $x,Hx=v(()=>{$x=zk});function Yk(e,t,r){t=Yf(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var u=Pa(t[n]);if(!(a=e!=null&&r(e,u)))break;e=e[u]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&Ro(i)&&Do(u,i)&&(Ft(e)||Lo(e)))}var Ux,Vx=v(()=>{jm();Ff();oi();Lf();Mf();Ic();Ux=Yk});function Kk(e,t){return e!=null&&Ux(e,t,$x)}var qx,zx=v(()=>{Hx();Vx();qx=Kk});function Gk(e,t){return Mo(e)&&td(t)?rd(Pa(e),t):function(r){var n=AT(r,e);return n===void 0&&n===t?qx(r,e):ed(t,n,jk|Wk)}}var jk,Wk,Yx,Kx=v(()=>{t0();wT();zx();Uf();r0();n0();Ic();jk=1,Wk=2;Yx=Gk});function Qk(e){return function(t){return t?.[e]}}var jx,Wx=v(()=>{jx=Qk});function Xk(e){return function(t){return Ho(t,e)}}var Gx,Qx=v(()=>{Kf();Gx=Xk});function Zk(e){return Mo(e)?jx(Pa(e)):Gx(e)}var Xx,Zx=v(()=>{Wx();Qx();Uf();Ic();Xx=Zk});function Jk(e){return typeof e=="function"?e:e==null?Ia:typeof e=="object"?Ft(e)?Yx(e[0],e[1]):Fx(e):Xx(e)}var Jx,ey=v(()=>{Bx();Kx();vc();oi();Zx();Jx=Jk});function e6(e){return function(t,r,n){for(var i=-1,a=Object(t),u=n(t),l=u.length;l--;){var d=u[e?l:++i];if(r(a[d],d,a)===!1)break}return t}}var ty,ry=v(()=>{ty=e6});var t6,ny,iy=v(()=>{ry();t6=ty(),ny=t6});function r6(e,t){return e&&ny(e,t,Po)}var ay,sy=v(()=>{iy();Hf();ay=r6});function n6(e,t){return function(r,n){if(r==null)return r;if(!Oa(r))return e(r,n);for(var i=r.length,a=t?i:-1,u=Object(r);(t?a--:++a<i)&&n(u[a],a,u)!==!1;);return r}}var oy,uy=v(()=>{Tc();oy=n6});var i6,cy,ly=v(()=>{sy();uy();i6=oy(ay),cy=i6});var a6,nd,fy=v(()=>{ni();a6=function(){return Yt.Date.now()},nd=a6});function c6(e,t,r){var n,i,a,u,l,d,p=0,g=!1,E=!1,_=!0;if(typeof e!="function")throw new TypeError(s6);t=Rm(t)||0,Tn(r)&&(g=!!r.leading,E="maxWait"in r,a=E?o6(Rm(r.maxWait)||0,t):a,_="trailing"in r?!!r.trailing:_);function y(V){var X=n,ce=i;return n=i=void 0,p=V,u=e.apply(ce,X),u}function C(V){return p=V,l=setTimeout(N,t),g?y(V):u}function D(V){var X=V-d,ce=V-p,ve=t-X;return E?u6(ve,a-ce):ve}function P(V){var X=V-d,ce=V-p;return d===void 0||X>=t||X<0||E&&ce>=a}function N(){var V=nd();if(P(V))return L(V);l=setTimeout(N,D(V))}function L(V){return l=void 0,_&&n?y(V):(n=i=void 0,u)}function H(){l!==void 0&&clearTimeout(l),p=0,n=d=i=l=void 0}function R(){return l===void 0?u:L(nd())}function B(){var V=nd(),X=P(V);if(n=arguments,i=this,d=V,X){if(l===void 0)return C(d);if(E)return clearTimeout(l),l=setTimeout(N,t),y(d)}return l===void 0&&(l=setTimeout(N,t)),u}return B.cancel=H,B.flush=R,B}var s6,o6,u6,Nc,dy=v(()=>{Os();fy();Vv();s6="Expected a function",o6=Math.max,u6=Math.min;Nc=c6});function f6(e){return e=zf(e),e&&l6.test(e)?e.replace(hy,"\\$&"):e}var hy,l6,Oc,py=v(()=>{Km();hy=/[\\^$.*+?()[\]{}|]/g,l6=RegExp(hy.source);Oc=f6});function d6(e,t){var r=-1,n=Oa(e)?Array(e.length):[];return cy(e,function(i,a,u){n[++r]=t(i,a,u)}),n}var my,gy=v(()=>{ly();Tc();my=d6});function h6(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var _y,by=v(()=>{_y=h6});function p6(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,a=si(e),u=t!==void 0,l=t===null,d=t===t,p=si(t);if(!l&&!p&&!a&&e>t||a&&u&&d&&!l&&!p||n&&u&&d||!r&&d||!i)return 1;if(!n&&!a&&!p&&e<t||p&&r&&i&&!n&&!a||l&&r&&i||!u&&i||!d)return-1}return 0}var Ey,vy=v(()=>{No();Ey=p6});function m6(e,t,r){for(var n=-1,i=e.criteria,a=t.criteria,u=i.length,l=r.length;++n<u;){var d=Ey(i[n],a[n]);if(d){if(n>=l)return d;var p=r[n];return d*(p=="desc"?-1:1)}}return e.index-t.index}var Ty,xy=v(()=>{vy();Ty=m6});function g6(e,t,r){t.length?t=Oo(t,function(a){return Ft(a)?function(u){return Ho(u,a.length===1?a[0]:a)}:a}):t=[Ia];var n=-1;t=Oo(t,Bf(Jx));var i=my(e,function(a,u,l){var d=Oo(t,function(p){return p(a)});return{criteria:d,index:++n,value:a}});return _y(i,function(a,u){return Ty(a,u,r)})}var yy,Ay=v(()=>{km();Kf();ey();gy();by();Hm();xy();vc();oi();yy=g6});var _6,i0,wy=v(()=>{DT();Ay();h1();p1();_6=d1(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Fm(e,t[0],t[1])?t=[]:r>2&&Fm(t[0],t[1],t[2])&&(t=[t[0]]),yy(e,OT(t,1),[])}),i0=_6});var Dc=v(()=>{dy();py();wy();});function Sy(e,t,r){let n=e.getTextExtractor(),i=e.getAIImageAnalyzer(),a=e.database,u=Nc(async()=>{await a.clearCache()},1e3);new Ji.Setting(r).setName("Indexing").setHeading().setDesc(ar(`\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.'}
        ${i?'<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.':'<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 Ji.Setting(r).setName(`PDFs content indexing ${n?"":"\u26A0\uFE0F Disabled"}`).setDesc(ar("Omnisearch will use Text Extractor to index the content of your PDFs.")).addToggle(p=>p.setValue(t.PDFIndexing).onChange(async g=>{await a.clearCache(),t.PDFIndexing=g,await ke(e)})).setDisabled(!n),new Ji.Setting(r).setName(`Images OCR indexing ${n?"":"\u26A0\uFE0F Disabled"}`).setDesc(ar("Omnisearch will use Text Extractor to OCR your images and index their content.")).addToggle(p=>p.setValue(t.imagesIndexing).onChange(async g=>{await a.clearCache(),t.imagesIndexing=g,await ke(e)})).setDisabled(!n);let l=new DocumentFragment;l.createSpan({},p=>{p.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 Ji.Setting(r).setName(`Documents content indexing ${n?"":"\u26A0\uFE0F Disabled"}`).setDesc(l).addToggle(p=>p.setValue(t.officeIndexing).onChange(async g=>{await a.clearCache(),t.officeIndexing=g,await ke(e)})).setDisabled(!n);let d=new DocumentFragment;d.createSpan({},p=>{p.innerHTML=`Omnisearch will use AI Image Analyzer to index the content of your images with ai.<br/>
    \u26A0\uFE0F <span style="color: var(--text-accent)">If both AI Image Analyzer and Text Extractor are enabled, Text Extractor will only be used as a fallback.</span>`}),new Ji.Setting(r).setName(`Images AI indexing ${i?"":"\u26A0\uFE0F Disabled"}`).setDesc(d).addToggle(p=>p.setValue(t.aiImageIndexing).onChange(async g=>{await a.clearCache(),t.aiImageIndexing=g,await ke(e)})).setDisabled(!i),new Ji.Setting(r).setName("Index paths of unsupported files").setDesc(ar(`
      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(p=>{p.addOptions({yes:"Yes",no:"No",default:"Obsidian setting"}).setValue(t.unsupportedFilesIndexing).onChange(async g=>{await u(),t.unsupportedFilesIndexing=g,await ke(e)})}),new Ji.Setting(r).setName("Set frontmatter property key as title").setDesc(ar(`If you have a custom property in your notes that you want to use as the title in search results. If you set this to '#heading', then use the first heading from a file as the title.<br>
          Leave empty to disable.`)).addText(p=>{p.setValue(t.displayTitle).onChange(async g=>{await u(),t.displayTitle=g,await ke(e)})}),new Ji.Setting(r).setName("Additional TEXT files to index").setDesc(ar(`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(p=>{p.setValue(t.indexedFileTypes.join(" ")).setPlaceholder("Example: txt org csv").onChange(async g=>{await a.clearCache(),t.indexedFileTypes=g.split(" "),await ke(e)})})}var Ji,Cy=v(()=>{Ji=require("obsidian");mr();mr();Dc()});function Iy(e,t,r){new Ma.Setting(r).setName("User Interface").setHeading(),new Ma.Setting(r).setName("Show ribbon button").setDesc("Add a button on the sidebar to open the Vault search modal.").addToggle(n=>n.setValue(t.ribbonIcon).onChange(async i=>{t.ribbonIcon=i,await ke(e),i?e.addRibbonButton():e.removeRibbonButton()})),new Ma.Setting(r).setName("Show excerpts").setDesc("Shows the contextual part of the note that matches the search. Disable this to only show filenames in results.").addToggle(n=>n.setValue(t.showExcerpt).onChange(async i=>{Fa.set(i)})),new Ma.Setting(r).setName("Show embed references").setDesc(ar(`Some results are <a href="https://help.obsidian.md/Linking+notes+and+files/Embed+files">embedded</a> in other notes.<br>
            This setting controls the maximum number of embeds to show in the search results. Set to 0 to disable.<br>
            Also works with Text Extractor for embedded images and documents.`)).addSlider(n=>{n.setLimits(0,10,1).setValue(t.maxEmbeds).setDynamicTooltip().onChange(async i=>{t.maxEmbeds=i,await ke(e)})}),new Ma.Setting(r).setName("Render line return in excerpts").setDesc("Activate this option to render line returns in result excerpts.").addToggle(n=>n.setValue(t.renderLineReturnInExcerpts).onChange(async i=>{t.renderLineReturnInExcerpts=i,await ke(e)})),new Ma.Setting(r).setName('Show "Create note" button').setDesc(ar(`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(n=>n.setValue(t.showCreateButton).onChange(async i=>{t.showCreateButton=i,await ke(e)})),new Ma.Setting(r).setName("Highlight matching words in results").setDesc("Will highlight matching results when enabled. See README for more customization options.").addToggle(n=>n.setValue(t.highlight).onChange(async i=>{t.highlight=i,await ke(e)}))}var Ma,Ny=v(()=>{Ma=require("obsidian");wo();mr();mr()});function Dy(e,t,r,n){function i(u,l){u.setLimits(1,10,.5).setValue(t[l]).setDynamicTooltip().onChange(async d=>{t[l]=d,await ke(e)})}let a=kc(e.app);new Fn.Setting(r).setName("Results weighting").setHeading(),new Fn.Setting(r).setName(`File name & declared aliases (default: ${a.weightBasename})`).addSlider(u=>i(u,"weightBasename")),new Fn.Setting(r).setName(`File directory (default: ${a.weightDirectory})`).addSlider(u=>i(u,"weightDirectory")),new Fn.Setting(r).setName(`Headings level 1 (default: ${a.weightH1})`).addSlider(u=>i(u,"weightH1")),new Fn.Setting(r).setName(`Headings level 2 (default: ${a.weightH2})`).addSlider(u=>i(u,"weightH2")),new Fn.Setting(r).setName(`Headings level 3 (default: ${a.weightH3})`).addSlider(u=>i(u,"weightH3")),new Fn.Setting(r).setName(`Tags (default: ${a.weightUnmarkedTags})`).addSlider(u=>i(u,"weightUnmarkedTags")),new Fn.Setting(r).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 u=0;u<t.weightCustomProperties.length;u++){let l=t.weightCustomProperties[u],d=new Fn.Setting(r).setName((u+1).toString()+".");d.settingEl.style.paddingLeft="2em",d.addText(p=>{p.setPlaceholder("Property name").setValue(l.name).onChange(async g=>{l.name=g,await ke(e)})}).addSlider(p=>{p.setLimits(.1,5,.1).setValue(l.weight).setDynamicTooltip().onChange(async g=>{l.weight=g,await ke(e)})}).addButton(p=>{p.setButtonText("Remove"),p.onClick(async()=>{t.weightCustomProperties.splice(u,1),await ke(e),n()})})}new Fn.Setting(r).addButton(u=>{u.setButtonText("Add a new property"),u.onClick(l=>{t.weightCustomProperties.push({name:"",weight:1}),n()})}),new Fn.Setting(r).setName("Recency boost (experimental)").setDesc("Files that have been modified more recently than [selected cutoff] are given a higher rank.").addDropdown(u=>u.addOptions({["0"]:"Disabled",["1"]:"24 hours",["2"]:"7 days",["3"]:"30 days"}).setValue(t.recencyBoost).onChange(async l=>{t.recencyBoost=l,await ke(e)}))}var Fn,ky=v(()=>{Fn=require("obsidian");wo();mr();en()});function kc(e){return{useCache:!0,hideExcluded:!1,recencyBoost:"0",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,maxEmbeds:5,renderLineReturnInExcerpts:!0,showCreateButton:!1,highlight:!0,showPreviousQueryResults:!0,simpleSearch:!1,tokenizeUrls:!1,fuzziness:"1",weightBasename:10,weightDirectory:7,weightH1:6,weightH2:5,weightH3:4,weightUnmarkedTags:2,weightCustomProperties:[],httpApiEnabled:!1,httpApiPort:"51361",httpApiNotice:!0,welcomeMessage:"",verboseLogging:!1,DANGER_httpHost:null,DANGER_forceSaveCache:!1}}async function Ry(e){return Or=Object.assign({},kc(e.app),await e.loadData()),Fa.set(Or.showExcerpt),Sm(Or.verboseLogging),Or}var Rc,Fa,id,Or,wo=v(()=>{Rc=require("obsidian");Em();en();Nr();Tv();yv();wv();Cy();Ny();ky();mr();Fa=yo(!1),id=class extends Rc.PluginSettingTab{constructor(r){super(r.app,r);this.plugin=r,Fa.subscribe(async n=>{Or.showExcerpt=n,await ke(this.plugin)})}display(){let{containerEl:r}=this;if(r.empty(),this.app.loadLocalStorage(Ss)=="1"){let i=r.createEl("span");i.innerHTML='<strong style="color: var(--text-accent)">\u26A0\uFE0F OMNISEARCH IS DISABLED \u26A0\uFE0F</strong>'}r.createEl("h1",{text:"Omnisearch"});let n=r.createDiv();n.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> 
    `,Sy(this.plugin,Or,r),r.createEl("hr"),vv(this.plugin,Or,r),r.createEl("hr"),Iy(this.plugin,Or,r),r.createEl("hr"),Dy(this.plugin,Or,r,()=>{this.display()}),r.createEl("hr"),Av(this.plugin,Or,r),r.createEl("hr"),xv(this.plugin,Or,r),r.createEl("hr"),new Rc.Setting(r).setName("Debugging").setHeading(),new Rc.Setting(r).setName("Enable verbose logging").setDesc('Adds a LOT of logs for debugging purposes. You also need to enable "Verbose" logging in the console to see these logs.').addToggle(i=>i.setValue(Or.verboseLogging).onChange(async a=>{Or.verboseLogging=a,Sm(a),await ke(this.plugin)}))}}});function a0(e){var t=b6();we(e,t)}var b6,Ly=v(()=>{Wn();Ai();Pn();b6=Le('<span class="suggestion-flair" aria-label="Not created yet, select to create"><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></span>')});function Lc(e,t){let r=ze(t,"id",8),n=ze(t,"selected",8,!1),i=ze(t,"glyph",8,!1),a=ze(t,"cssClass",8,"");var u=E6();let l;var d=xe(u);{var p=E=>{a0(E,{})};tt(d,E=>{i()&&E(p)})}var g=Ye(d,2);Yi(g,t,"default",{},null),Te(u),rr(E=>{ji(u,"data-result-id",r()),l=Ki(u,1,`suggestion-item omnisearch-result ${a()??""}`,null,l,E)},[()=>({"is-selected":n()})],Br),pr("mousemove",u,function(E){Jr.call(this,t,E)}),pr("click",u,function(E){Jr.call(this,t,E)}),pr("keypress",u,function(E){Jr.call(this,t,E)}),pr("auxclick",u,function(E){Jr.call(this,t,E)}),we(e,u)}var E6,s0=v(()=>{Wn();Ai();Pn();Ly();E6=Le("<div><!> <!></div>")});function sd(e){return e.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#039;")}var Py,ad,o0=v(()=>{en();Nr();Py=require("obsidian");Dc();ad=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{return t.replace(new RegExp(`(${r.map(i=>Oc(i.match)).join("|")})`,"giu"),`<span class="${n}">$1</span>`)}catch(i){return console.error("Omnisearch - Error in highlightText()",i),t}}stringsToRegex(t){if(!t.length)return/^$/g;t.sort((n,i)=>i.length-n.length);let r=`(${t.map(n=>`\\b${Oc(n)}\\b|${Oc(n)}`).join("|")})`;return new RegExp(`${r}`,"gui")}getMatches(t,r,n){r=r.map(sd);let i=this.stringsToRegex(r),a=t;this.plugin.settings.ignoreDiacritics&&(t=Gi(t,this.plugin.settings.ignoreArabicDiacritics));let u=new Date().getTime(),l=null,d=[],p=0;for(;(l=i.exec(t))!==null;){if(++p>=100||new Date().getTime()-u>50){ri("Stopped getMatches at",p,"results");break}let g=l.index,E=g+l[0].length,_=a.substring(g,E).trim();_&&l.index>=0&&d.push({match:_,offset:l.index})}if(n&&(n.query.text.length>1||n.getExactTerms().length>0)){let g=t.indexOf(n.getBestStringForExcerpt());g>-1&&d.find(E=>E.offset===g)&&d.unshift({offset:g,match:n.getBestStringForExcerpt()})}return d}makeExcerpt(t,r){let n=this.plugin.settings;try{let i=r??-1,a=Math.max(0,i-av),u=Math.min(t.length,i+cc);if(i>-1?t=(a>0?"\u2026":"")+t.slice(a,u).trim()+(u<t.length-1?"\u2026":""):t=t.slice(0,cc),n.renderLineReturnInExcerpts){let l=new RegExp(/(?:\r\n|\r|\n)/g);t=t.split(l).filter(p=>p).join(`
`);let d=t.lastIndexOf(`
`,i-a);d>0&&(t=t.slice(d))}return t=sd(t),n.renderLineReturnInExcerpts&&(t=t.trim().replaceAll(`
`,"<br>")),t}catch(i){return new Py.Notice("Omnisearch - Error while creating excerpt, see developer console"),console.error("Omnisearch - Error while creating excerpt"),console.error(i),""}}}});async function My(e){let t=e.app;if(!t.plugins.getPlugin("obsidian-icon-folder"))return{};let n=`${t.vault.configDir}/plugins/obsidian-icon-folder/data.json`;try{let i=await t.vault.adapter.read(n),a=JSON.parse(i),u={};for(let l in a){let d=(0,qo.normalizePath)(l);u[d]=a[l]}return u}catch(i){return ri("Failed to read data.json:",i),{}}}async function Fy(e){let t={Li:"lucide-icons"},r="icons",n=e.app,i=n.plugins.getPlugin("obsidian-icon-folder");if(i){r=i.settings?.iconPacksPath||"icons";let u=`${n.vault.configDir}/${r}`;try{let l=await n.vault.adapter.list(u);if(l.folders&&l.folders.length>0)for(let d of l.folders){let p=d.split("/"),g=p[p.length-1],E=v6(g);t[E]=g}}catch(l){ri("Failed to list icon packs:",l)}}return{prefixToIconPack:t,iconsPath:r}}function v6(e){if(e.includes("-")){let t=e.split("-"),r=t[0].charAt(0).toUpperCase();for(let n=1;n<t.length;n++)r+=t[n].charAt(0).toLowerCase();return r}return e.charAt(0).toUpperCase()+e.charAt(1).toLowerCase()}function u0(e,t){let r=(0,qo.normalizePath)(e),n=t[r];if(n){if(typeof n=="string")return n;if(typeof n=="object"&&n.iconName)return n.iconName}return null}function T6(e){let t=e.match(/^[A-Z][a-z]*/);if(t){let r=t[0],n=e.substring(r.length);return{prefix:r,name:n}}else return{prefix:"",name:e}}async function c0(e,t,r,n){let i=T6(e),{prefix:a,name:u}=i;if(!a)return`<span class="omnisearch-result__icon--emoji">${sd(u)}</span>`;let l=n[a];if(!l)return ri(`No icon pack found for prefix: ${a}`),null;if(l==="lucide-icons"){let d=u.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),p=(0,qo.getIcon)(d);return p?p.outerHTML:(ri(`Lucide icon not found: ${d}`),null)}else{if(!r)return ri("Icons path is not set. Cannot load icon SVG."),null;let d=`${t.app.vault.configDir}/${r}/${l}/${u}.svg`;try{return await t.app.vault.adapter.read(d)}catch(p){return ri(`Failed to load icon SVG for ${e} at ${d}:`,p),null}}}function l0(e){let t="file";e==="folder"?t="folder":Mn(e)?t="image":ti(e)?t="file-text":(wi(e)||dc(e)||Cs(e))&&(t="layout-dashboard");let r=(0,qo.getIcon)(t);return r?r.outerHTML:""}var qo,By=v(()=>{qo=require("obsidian");Nr();o0()});function f0(e,t){dr(t,!1);let[r,n]=uc(),i=()=>oc(Fa,"$showExcerpt",r),a=ft(),u=ft(),l=ft(),d=ft(),p=ze(t,"selected",8,!1),g=ze(t,"note",8),E=ze(t,"plugin",8),_=ft(null),y=ft(""),C=ft(""),D={},P=ft(null),N=ft(null),L={},H,R=ft(!1);As(async()=>{D=await My(E());let qe=await Fy(E());L=qe.prefixToIconPack,H=qe.iconsPath,oe(R,!0)});async function B(){let qe=u0(q(C),D);qe?oe(P,await c0(qe,E(),H,L)):oe(P,l0("folder"));let St=u0(g().path,D);St?oe(N,await c0(St,E(),H,L)):oe(N,l0(g().path))}function V(qe,St){return qe.innerHTML=St,{update(Dt){qe.innerHTML=Dt},destroy(){qe.innerHTML=""}}}let X=null,ce=null,ve=ft(null);Qt(()=>(vt(g()),q(R),fc),()=>{g()&&g().path&&q(R)&&(async()=>(oe(y,g().displayTitle||g().basename),oe(C,fc(g().path)),await B()))()}),Qt(()=>(Mn,vt(g()),vt(E()),ui.TFile),()=>{if(oe(_,null),Mn(g().path)){let qe=E().app.vault.getAbstractFileByPath(g().path);qe instanceof ui.TFile&&oe(_,E().app.vault.getResourcePath(qe))}}),Qt(()=>(vt(g()),fc,ui.setIcon,Mn,ti,wi,dc,Cs,q(ve)),()=>{oe(y,g().displayTitle||g().basename),oe(C,fc(g().path)),X&&(0,ui.setIcon)(X,"folder-open"),ce&&(Mn(g().path)?(0,ui.setIcon)(ce,"image"):ti(g().path)?(0,ui.setIcon)(ce,"file-text"):wi(g().path)||dc(g().path)||Cs(g().path)?(0,ui.setIcon)(ce,"layout-dashboard"):(0,ui.setIcon)(ce,"file")),q(ve)&&(0,ui.setIcon)(q(ve),"corner-down-right")}),Qt(()=>(vt(E()),q(y),vt(g())),()=>{oe(a,E().textProcessor.getMatches(q(y),g().foundWords))}),Qt(()=>(vt(E()),q(C),vt(g())),()=>{oe(u,E().textProcessor.getMatches(q(C),g().foundWords))}),Qt(()=>(vt(E()),vt(g())),()=>{oe(l,E().textProcessor.makeExcerpt(g().content,g().matches[0]?.offset??-1))}),Qt(()=>{},()=>{oe(d,!1)}),Jn(),En();let Re=Br(()=>g().isEmbed?"omnisearch-result__embed":"");Lc(e,{get glyph(){return q(d)},get id(){return g().path},get cssClass(){return` ${q(Re)??""}`},get selected(){return p()},$$events:{auxclick(qe){Jr.call(this,t,qe)},click(qe){Jr.call(this,t,qe)},mousemove(qe){Jr.call(this,t,qe)}},children:(qe,St)=>{var Dt=D6(),Se=xe(Dt),et=xe(Se),je=xe(et);{var lt=rt=>{var ct=x6();ys(ct,Xt=>oe(ve,Xt),()=>q(ve)),we(rt,ct)},F=rt=>{var ct=zi(),Xt=Sr(ct);{var Er=Pr=>{var zr=y6();wa(zr,(Ct,$t)=>V?.(Ct,$t),()=>q(N)),we(Pr,zr)};tt(Xt,Pr=>{q(N)&&Pr(Er)})}we(rt,ct)};tt(je,rt=>{g().isEmbed?rt(lt):rt(F,!1)})}var K=Ye(je,2),te=xe(K);Ts(te,()=>E().textProcessor.highlightText(q(y),q(a)),!1,!1),Te(K);var fe=Ye(K,2);{var Fe=rt=>{var ct=A6(),Xt=xe(ct);Te(ct),rr(Er=>ir(Xt,`.${Er??""}`),[()=>Is(g().path)],Br),we(rt,ct)};tt(fe,rt=>{g().displayTitle||rt(Fe)})}var Je=Ye(fe,2);{var Ue=rt=>{var ct=w6(),Xt=xe(ct);Te(ct),rr(()=>ir(Xt,`${g().matches.length??""}\xA0${(g().matches.length>1?"matches":"match")??""}`)),we(rt,ct)};tt(Je,rt=>{g().matches.length>0&&rt(Ue)})}Te(et),Te(Se);var ot=Ye(Se,2);{var ut=rt=>{var ct=C6(),Xt=xe(ct);{var Er=Ct=>{var $t=S6();wa($t,(ki,me)=>V?.(ki,me),()=>q(P)),we(Ct,$t)};tt(Xt,Ct=>{q(P)&&Ct(Er)})}var Pr=Ye(Xt,2),zr=xe(Pr);Ts(zr,()=>E().textProcessor.highlightText(q(C),q(u)),!1,!1),Te(Pr),Te(ct),we(rt,ct)};tt(ot,rt=>{q(C)&&rt(ut)})}var _t=Ye(ot,2);{var qr=rt=>{var ct=O6(),Xt=xe(ct);{var Er=Ct=>{var $t=I6(),ki=xe($t);Ts(ki,()=>E().textProcessor.highlightText(q(l),g().matches),!1,!1),Te($t),we(Ct,$t)};tt(Xt,Ct=>{i()&&Ct(Er)})}var Pr=Ye(Xt,2);{var zr=Ct=>{var $t=N6(),ki=xe($t);Te($t),rr(()=>ji(ki,"src",q(_))),we(Ct,$t)};tt(Pr,Ct=>{q(_)&&Ct(zr)})}Te(ct),we(rt,ct)};tt(_t,rt=>{g().isEmbed||rt(qr)})}Te(Dt),we(qe,Dt)},$$slots:{default:!0}}),hr(),n()}var ui,x6,y6,A6,w6,S6,C6,I6,N6,O6,D6,$y=v(()=>{Wn();Ai();Pn();wo();Nr();s0();ui=require("obsidian");ws();By();x6=Le('<span title="The document above is embedded in this note"></span>'),y6=Le('<span class="omnisearch-result__icon"></span>'),A6=Le('<span class="omnisearch-result__extension"> </span>'),w6=Le('<span class="omnisearch-result__counter"> </span>'),S6=Le('<span class="omnisearch-result__icon"></span>'),C6=Le('<div class="omnisearch-result__folder-path"><!> <span><!></span></div>'),I6=Le('<div class="omnisearch-result__body"><!></div>'),N6=Le('<div class="omnisearch-result__image-container"><img style="width: 100px" alt=""></div>'),O6=Le('<div style="display: flex; flex-direction: row;"><!> <!></div>'),D6=Le('<div><div class="omnisearch-result__title-container"><span class="omnisearch-result__title"><!> <span><!></span> <!> <!></span></div> <!> <!></div>')});var Hy=Mi(od=>{od.parse=function(e,t){if(t?t.offsets=typeof t.offsets>"u"?!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=[],a=/(\S+:'(?:[^'\\]|\\.)*')|(\S+:"(?:[^"\\]|\\.)*")|(-?"(?:[^"\\]|\\.)*")|(-?'(?:[^'\\]|\\.)*')|\S+|\S+:\S+/g,u;(u=a.exec(e))!==null;){var _=u[0],l=_.indexOf(":");if(l!==-1){var d=_.split(":"),p=_.slice(0,l),g=_.slice(l+1);g=g.replace(/^\"|\"$|^\'|\'$/g,""),g=(g+"").replace(/\\(.?)/g,function(V,X){switch(X){case"\\":return"\\";case"0":return"\0";case"":return"";default:return X}}),i.push({keyword:p,value:g,offsetStart:u.index,offsetEnd:u.index+_.length})}else{var E=!1;_[0]==="-"&&(E=!0,_=_.slice(1)),_=_.replace(/^\"|\"$|^\'|\'$/g,""),_=(_+"").replace(/\\(.?)/g,function(V,X){switch(X){case"\\":return"\\";case"0":return"\0";case"":return"";default:return X}}),E?n.text?(n.text instanceof Array||(n.text=[n.text]),n.text.push(_)):n.text=_:i.push({text:_,offsetStart:u.index,offsetEnd:u.index+_.length})}}i.reverse();for(var _;_=i.pop();)if(_.text)r.text.push(_.text),t.offsets&&r.offsets.push(_);else{var p=_.keyword;t.keywords=t.keywords||[];var y=!1,C=!1;if(!/^-/.test(p))y=t.keywords.indexOf(p)!==-1;else if(p[0]==="-"){var D=p.slice(1);y=t.keywords.indexOf(D)!==-1,y&&(p=D,C=!0)}t.ranges=t.ranges||[];var P=t.ranges.indexOf(p)!==-1;if(y){t.offsets&&r.offsets.push({keyword:p,value:_.value,offsetStart:C?_.offsetStart+1:_.offsetStart,offsetEnd:_.offsetEnd});var N=_.value;if(N.length){var L=N.split(",");C?n[p]?n[p]instanceof Array?L.length>1?n[p]=n[p].concat(L):n[p].push(N):(n[p]=[n[p]],n[p].push(N)):L.length>1?n[p]=L:t.alwaysArray?n[p]=[N]:n[p]=N:r[p]?r[p]instanceof Array?L.length>1?r[p]=r[p].concat(L):r[p].push(N):(r[p]=[r[p]],r[p].push(N)):L.length>1?r[p]=L:t.alwaysArray?r[p]=[N]:r[p]=N}}else if(P){t.offsets&&r.offsets.push(_);var N=_.value,H=N.split("-");r[p]={},H.length===2?(r[p].from=H[0],r[p].to=H[1]):!H.length%2||(r[p].from=N)}else{var R=_.keyword+":"+_.value;r.text.push(R),t.offsets&&r.offsets.push({text:R,offsetStart:_.offsetStart,offsetEnd:_.offsetEnd})}}return r.text.length?t.tokenize||(r.text=r.text.join(" ").trim()):delete r.text,r.exclude=n,r};od.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(l){return l.indexOf(" ")>-1?JSON.stringify(l):l},i=function(l){return r+l},a=[];if(e.text){var u=[];typeof e.text=="string"?u.push(e.text):u.push.apply(u,e.text),u.length>0&&a.push(u.map(n).map(i).join(" "))}return t.keywords&&t.keywords.forEach(function(l){if(e[l]){var d=[];typeof e[l]=="string"?d.push(e[l]):d.push.apply(d,e[l]),d.length>0&&a.push(i(l+":"+d.map(n).join(",")))}}),t.ranges&&t.ranges.forEach(function(l){if(e[l]){var d=e[l].from,p=e[l].to;p&&(d=d+"-"+p),d&&a.push(i(l+":"+d))}}),e.exclude&&Object.keys(e.exclude).length>0&&a.push(od.stringify(e.exclude,t,"-")),a.join(" ")}});var Vy=Mi((tte,Uy)=>{Uy.exports=Hy()});var qy,d0,ea,ud=v(()=>{Nr();qy=ln(Vy()),d0=["ext","path"],ea=class{#e;constructor(t="",r){r.ignoreDiacritics&&(t=Gi(t,r.ignoreArabicDiacritics));let n=(0,qy.parse)(t.toLowerCase(),{tokenize:!0,keywords:d0});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(a=>a.length);for(let a of d0){let u=n[a];u&&(n[a]=Array.isArray(u)?u:[u]);let l=n.exclude[a];l&&(n.exclude[a]=Array.isArray(l)?l:[l])}this.query=n;let i=this.query.text.filter(a=>a.startsWith(".")).map(a=>a.slice(1));this.query.ext=[...new Set([...i,...this.query.ext??[]])],this.query.text=this.query.text.filter(a=>!a.startsWith(".")),this.#e=t.match(/"([^"]+)"/g)?.map(a=>a.replace(/"/g,""))??[]}isEmpty(){for(let t of d0)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 zy=Mi(cd=>{function h0(e){"@babel/helpers - typeof";return h0=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},h0(e)}(function(e,t){if(typeof define=="function"&&define.amd)define(["exports"],t);else if(typeof cd<"u")t(cd);else{var r={exports:{}};t(r.exports),e.CancelablePromise=r.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:cd,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancelablePromise=void 0,e.cancelable=St,e.default=void 0,e.isCancelablePromise=Dt;function t(F,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(K&&K.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),Object.defineProperty(F,"prototype",{writable:!1}),K&&r(F,K)}function r(F,K){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(fe,Fe){return fe.__proto__=Fe,fe},r(F,K)}function n(F){var K=u();return function(){var fe=l(F),Fe;if(K){var Je=l(this).constructor;Fe=Reflect.construct(fe,arguments,Je)}else Fe=fe.apply(this,arguments);return i(this,Fe)}}function i(F,K){if(K&&(h0(K)==="object"||typeof K=="function"))return K;if(K!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a(F)}function a(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function u(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function l(F){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(te){return te.__proto__||Object.getPrototypeOf(te)},l(F)}function d(F,K){var te=typeof Symbol<"u"&&F[Symbol.iterator]||F["@@iterator"];if(!te){if(Array.isArray(F)||(te=p(F))||K&&F&&typeof F.length=="number"){te&&(F=te);var fe=0,Fe=function(){};return{s:Fe,n:function(){return fe>=F.length?{done:!0}:{done:!1,value:F[fe++]}},e:function(_t){throw _t},f:Fe}}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 Je=!0,Ue=!1,ot;return{s:function(){te=te.call(F)},n:function(){var _t=te.next();return Je=_t.done,_t},e:function(_t){Ue=!0,ot=_t},f:function(){try{!Je&&te.return!=null&&te.return()}finally{if(Ue)throw ot}}}}function p(F,K){if(F){if(typeof F=="string")return g(F,K);var te=Object.prototype.toString.call(F).slice(8,-1);if(te==="Object"&&F.constructor&&(te=F.constructor.name),te==="Map"||te==="Set")return Array.from(F);if(te==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(te))return g(F,K)}}function g(F,K){(K==null||K>F.length)&&(K=F.length);for(var te=0,fe=new Array(K);te<K;te++)fe[te]=F[te];return fe}function E(F,K){if(!(F instanceof K))throw new TypeError("Cannot call a class as a function")}function _(F,K){for(var te=0;te<K.length;te++){var fe=K[te];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(F,fe.key,fe)}}function y(F,K,te){return K&&_(F.prototype,K),te&&_(F,te),Object.defineProperty(F,"prototype",{writable:!1}),F}function C(F,K,te){return K in F?Object.defineProperty(F,K,{value:te,enumerable:!0,configurable:!0,writable:!0}):F[K]=te,F}function D(F,K,te){P(F,K),K.set(F,te)}function P(F,K){if(K.has(F))throw new TypeError("Cannot initialize the same private elements twice on an object")}function N(F,K){var te=R(F,K,"get");return L(F,te)}function L(F,K){return K.get?K.get.call(F):K.value}function H(F,K,te){var fe=R(F,K,"set");return B(F,fe,te),te}function R(F,K,te){if(!K.has(F))throw new TypeError("attempted to "+te+" private field on non-instance");return K.get(F)}function B(F,K,te){if(K.set)K.set.call(F,te);else{if(!K.writable)throw new TypeError("attempted to set read only private field");K.value=te}}var V=typeof Symbol<"u"?Symbol.toStringTag:"@@toStringTag",X=new WeakMap,ce=new WeakMap,ve=function(){function F(K){var te=K.executor,fe=te===void 0?function(){}:te,Fe=K.internals,Je=Fe===void 0?lt():Fe,Ue=K.promise,ot=Ue===void 0?new Promise(function(ut,_t){return fe(ut,_t,function(qr){Je.onCancelList.push(qr)})}):Ue;E(this,F),D(this,X,{writable:!0,value:void 0}),D(this,ce,{writable:!0,value:void 0}),C(this,V,"CancelablePromise"),this.cancel=this.cancel.bind(this),H(this,X,Je),H(this,ce,ot||new Promise(function(ut,_t){return fe(ut,_t,function(qr){Je.onCancelList.push(qr)})}))}return y(F,[{key:"then",value:function(te,fe){return et(N(this,ce).then(Se(te,N(this,X)),Se(fe,N(this,X))),N(this,X))}},{key:"catch",value:function(te){return et(N(this,ce).catch(Se(te,N(this,X))),N(this,X))}},{key:"finally",value:function(te,fe){var Fe=this;return fe&&N(this,X).onCancelList.push(te),et(N(this,ce).finally(Se(function(){if(te)return fe&&(N(Fe,X).onCancelList=N(Fe,X).onCancelList.filter(function(Je){return Je!==te})),te()},N(this,X))),N(this,X))}},{key:"cancel",value:function(){N(this,X).isCanceled=!0;var te=N(this,X).onCancelList;N(this,X).onCancelList=[];var fe=d(te),Fe;try{for(fe.s();!(Fe=fe.n()).done;){var Je=Fe.value;if(typeof Je=="function")try{Je()}catch(Ue){console.error(Ue)}}}catch(Ue){fe.e(Ue)}finally{fe.f()}}},{key:"isCanceled",value:function(){return N(this,X).isCanceled===!0}}]),F}(),Re=function(F){t(te,F);var K=n(te);function te(fe){return E(this,te),K.call(this,{executor:fe})}return y(te)}(ve);e.CancelablePromise=Re,C(Re,"all",function(K){return je(K,Promise.all(K))}),C(Re,"allSettled",function(K){return je(K,Promise.allSettled(K))}),C(Re,"any",function(K){return je(K,Promise.any(K))}),C(Re,"race",function(K){return je(K,Promise.race(K))}),C(Re,"resolve",function(K){return St(Promise.resolve(K))}),C(Re,"reject",function(K){return St(Promise.reject(K))}),C(Re,"isCancelable",Dt);var qe=Re;e.default=qe;function St(F){return et(F,lt())}function Dt(F){return F instanceof Re||F instanceof ve}function Se(F,K){if(F)return function(te){if(!K.isCanceled){var fe=F(te);return Dt(fe)&&K.onCancelList.push(fe.cancel),fe}return te}}function et(F,K){return new ve({internals:K,promise:F})}function je(F,K){var te=lt();return te.onCancelList.push(function(){var fe=d(F),Fe;try{for(fe.s();!(Fe=fe.n()).done;){var Je=Fe.value;Dt(Je)&&Je.cancel()}}catch(Ue){fe.e(Ue)}finally{fe.f()}}),new ve({internals:te,promise:K})}function lt(){return{isCanceled:!1,onCancelList:[]}}})});function Yy(e,{delay:t=0,duration:r=400,easing:n=k6}={}){let i=+getComputedStyle(e).opacity;return{delay:t,duration:r,easing:n,css:a=>`opacity: ${a*i}`}}var k6,Ky=v(()=>{mt();Wr();k6=e=>e});function ld(e,t){dr(t,!1);let r=ze(t,"placeholder",8,null),n=ze(t,"placeholderProps",8,null),i="svelte-lazy-placeholder";En();var a=zi(),u=Sr(a);{var l=d=>{var p=L6();Ki(p,1,xs(i));var g=xe(p);{var E=y=>{var C=R6(),D=xe(C,!0);Te(C),rr(()=>ir(D,r())),we(y,C)},_=(y,C)=>{{var D=P=>{var N=zi(),L=Sr(N);Qp(L,r,(H,R)=>{R(H,gm(n))}),we(P,N)};tt(y,P=>{["function","object"].includes(typeof r())&&P(D)},C)}};tt(g,y=>{typeof r()=="string"?y(E):y(_,!1)})}Te(p),we(d,p)};tt(u,d=>{r()&&d(l)})}we(e,a),hr()}var R6,L6,jy=v(()=>{Wn();Ai();Pn();R6=Le("<div> </div>"),L6=Le("<div><!></div>")});function p0(e,t){dr(t,!1);let r=ft(),n=ze(t,"keep",8,!1),i=ze(t,"height",8,0),a=ze(t,"offset",8,150),u=ze(t,"fadeOption",24,()=>({delay:0,duration:400})),l=ze(t,"resetHeightDelay",8,0),d=ze(t,"onload",8,null),p=ze(t,"placeholder",8,null),g=ze(t,"placeholderProps",8,null),E=ze(t,"class",8,""),_="svelte-lazy"+(E()?" "+E():""),y="svelte-lazy-content",C=ce(),D=ft(!1),P=ft(!0);function N(F){ve(F);let K=L(F);V(K),setTimeout(()=>{K()});let te=H(F,K);return{destroy:()=>{X(K),te.unobserve(F)}}}function L(F){return Dt(te=>{let fe=F.getBoundingClientRect().top,Fe=F.getBoundingClientRect().bottom,Je=St(te)+a();fe<=Je&&Fe>0?B(F):n()||R(F)},200)}function H(F,K){let te=new IntersectionObserver(fe=>{fe[0].isIntersecting&&B(F)});return te.observe(F),te}function R(F){ve(F),oe(D,!1)}function B(F,K){q(D)||(oe(D,!0),Re(F),d()&&d()(F))}function V(F){document.addEventListener("scroll",F,!0),window.addEventListener("resize",F)}function X(F){document.removeEventListener("scroll",F,!0),window.removeEventListener("resize",F)}function ce(){return typeof i()=="number"?i()+"px":i()}function ve(F){i()&&(F.style.height=ce())}function Re(F){setTimeout(()=>{qe(F)||(F.style.height="auto")},l())}function qe(F){let K=F.querySelector("img");return K?K.complete?K.naturalHeight===0:(oe(P,!1),F.addEventListener("load",()=>{oe(P,!0),F.style.height="auto"},{capture:!0,once:!0}),F.addEventListener("error",()=>{oe(P,!0)},{capture:!0,once:!0}),!0):!1}function St(F){return F?.target?.getBoundingClientRect?F.target.getBoundingClientRect().bottom:window.innerHeight}function Dt(F,K,te){let fe,Fe,Je,Ue=null,ot=0;te||(te={});let ut=function(){ot=te.leading===!1?0:new Date,Ue=null,Je=F.apply(fe,Fe),Ue||(fe=Fe=null)};return function(_t){let qr=new Date;!ot&&te.leading===!1&&(ot=qr);let rt=K-(qr-ot);return fe=this,Fe=arguments,rt<=0||rt>K?(Ue&&(clearTimeout(Ue),Ue=null),ot=qr,Je=F.apply(fe,Fe),Ue||(fe=Fe=null)):!Ue&&te.trailing!==!1&&(Ue=setTimeout(ut,rt)),Je}}Qt(()=>q(P),()=>{oe(r,q(P)?"":"display: none")}),Jn(),En();var Se=M6();Ki(Se,1,xs(_)),ac(Se,`height: ${C??""}`);var et=xe(Se);{var je=F=>{var K=P6(),te=Sr(K);Ki(te,1,xs(y));var fe=xe(te);Yi(fe,t,"default",{},Ue=>{var ot=ec("Lazy load content");we(Ue,ot)}),Te(te);var Fe=Ye(te,2);{var Je=Ue=>{ld(Ue,{get placeholder(){return p()},get placeholderProps(){return g()}})};tt(Fe,Ue=>{!q(P)&&p()&&Ue(Je)})}rr(()=>ac(te,q(r))),am(1,te,()=>Yy,()=>u()||{}),we(F,K)},lt=(F,K)=>{{var te=fe=>{ld(fe,{get placeholder(){return p()},get placeholderProps(){return g()}})};tt(F,fe=>{p()&&fe(te)},K)}};tt(et,F=>{q(D)?F(je):F(lt,!1)})}Te(Se),wa(Se,F=>N?.(F)),we(e,Se),hr()}var P6,M6,Wy=v(()=>{Wn();Ai();Pn();Ky();jy();P6=Le("<div><!></div> <!>",1),M6=Le("<div><!></div>")});function m0(e,t){dr(t,!0);let[r,n]=uc(),i=()=>oc(Ca,"$indexingStep",r),a=Xn(0),u=0,l=Xn(er(t.previousQuery??"")),d=Xn(er([])),p,g=Xn(""),E=Xn(!0),_,y=Xn(""),C=Xn(""),D=Xn(""),P=Xn(""),N=`${vn()} ${Cf()} \u21B5`,L=kn(()=>q(d)[q(a)]);Ti(()=>{t.plugin.settings.openInNewPane?(oe(y,"\u21B5"),oe(C,vn()+" \u21B5"),oe(D,"Shift \u21B5"),oe(P,vn()+" Shift \u21B5")):(oe(y,vn()+" \u21B5"),oe(C,"\u21B5"),oe(D,vn()+" Shift \u21B5"),oe(P,"Shift \u21B5"))}),Ti(()=>{q(l)?X():(oe(E,!1),oe(d,er([])))}),Ti(()=>{switch(i()){case 1:oe(g,"Loading cache...");break;case 2:oe(g,"Reading files...");break;case 3:oe(g,"Indexing files...");break;case 4:X(),oe(g,"Updating cache...");break;default:X(),oe(g,"");break}}),As(async()=>{Me.enable("vault"),Me.on("vault","enter",ve),Me.on("vault","open-in-background",Re),Me.on("vault","create-note",je),Me.on("vault","open-in-new-pane",qe),Me.on("vault","insert-link",lt),Me.on("vault","tab",F),Me.on("vault","arrow-up",()=>K(-1)),Me.on("vault","arrow-down",()=>K(1)),Me.on("vault","prev-search-history",H),Me.on("vault","next-search-history",R),Me.on("vault","open-in-new-leaf",St),await t.plugin.notesIndexer.refreshIndex(),await X()}),gf(()=>{Me.disable("vault")});async function H(){let Ne=(await t.plugin.searchHistory.getHistory()).filter(kt=>kt);++u>=Ne.length&&(u=0),oe(l,er(Ne[u])),_?.setInputValue(q(l)??"")}async function R(){let Ne=(await t.plugin.searchHistory.getHistory()).filter(kt=>kt);--u<0&&(u=Ne.length?Ne.length-1:0),oe(l,er(Ne[u])),_?.setInputValue(q(l)??"")}let B=null;async function V(){oe(E,!0),B&&(B.cancel(),B=null),p=new ea(q(l),{ignoreDiacritics:t.plugin.settings.ignoreDiacritics,ignoreArabicDiacritics:t.plugin.settings.ignoreArabicDiacritics}),B=(0,Qy.cancelable)(new Promise(Ne=>{Ne(t.plugin.searchEngine.getSuggestions(p))})),oe(d,er(await B)),oe(a,0),await te(),oe(E,!1)}let X=Nc(V,0);function ce(Ne){q(L)&&(Ne?.ctrlKey?qe():ve(),t.modal.close())}function ve(){q(L)&&(Se(q(L)),t.modal.close())}function Re(){q(L)&&Se(q(L),!0)}function qe(){q(L)&&(Se(q(L),!0),t.modal.close())}function St(){q(L)&&(Se(q(L),!0,!0),t.modal.close())}function Dt(){q(l)&&t.plugin.searchHistory.addToHistory(q(l))}function Se(Ne,kt=!1,Rt=!1){Dt();let ur=Ne.matches?.[0]?.offset??0;If(t.plugin.app,Ne,ur,kt,Rt)}async function et(Ne){await je()}async function je(Ne){if(q(l)){try{await _v(t.plugin.app,q(l),Ne?.newLeaf)}catch(kt){new Ci.Notice(kt.message);return}t.modal.close()}}function lt(){if(!q(L))return;let Ne=t.plugin.app.vault.getMarkdownFiles().find(Ri=>Ri.path===q(L).path),kt=t.plugin.app.workspace.getActiveFile(),Rt=t.plugin.app.workspace.getActiveViewOfType(Ci.MarkdownView);if(!Rt?.editor){new Ci.Notice("Omnisearch - Error - No active editor",3e3);return}let ur;if(Ne&&kt)ur=t.plugin.app.fileManager.generateMarkdownLink(Ne,kt.path,"",q(L).displayTitle);else{let Ri=q(L).displayTitle===""?"":`|${q(L).displayTitle}`;ur=`[[${q(L).basename}.${Is(q(L).path)}${Ri}]]`}let Sn=Rt.editor.getCursor();Rt.editor.replaceRange(ur,Sn,Sn),Sn.ch+=ur.length,Rt.editor.setCursor(Sn),t.modal.close()}function F(){if(!(q(L)&&(ti(q(L)?.path)||!q(L)?.matches.length)))if(Dt(),t.modal.close(),q(L)){let Ne=t.plugin.app.vault.getAbstractFileByPath(q(L).path);Ne&&Ne instanceof Ci.TFile&&new Rs(t.plugin,Ne,q(l)).open()}else{let Ne=t.plugin.app.workspace.getActiveViewOfType(Ci.MarkdownView);Ne?.file&&new Rs(t.plugin,Ne.file,q(l)).open()}}function K(Ne){oe(a,er(Sf(q(a)+Ne,q(d).length))),te()}async function te(){await vi(),q(L)&&activeWindow.document.querySelector(`[data-result-id="${q(L).path}"]`)?.scrollIntoView({behavior:"auto",block:"nearest"})}var fe=Y6(),Fe=Sr(fe);ys(gc(Fe,{get plugin(){return t.plugin},get initialValue(){return q(l)},placeholder:"Omnisearch - Vault",$$events:{input:Ne=>oe(l,er(Ne.detail))},children:(Ne,kt)=>{var Rt=H6(),ur=xe(Rt);{var Sn=cr=>{var Zt=B6();pr("click",Zt,et),we(cr,Zt)};tt(ur,cr=>{t.plugin.settings.showCreateButton&&cr(Sn)})}var Ri=Ye(ur,2);{var vu=cr=>{var Zt=$6();pr("click",Zt,F),we(cr,Zt)};tt(Ri,cr=>{Ci.Platform.isMobile&&cr(vu)})}Te(Rt),we(Ne,Rt)},$$slots:{default:!0}}),Ne=>_=Ne,()=>_);var Je=Ye(Fe,2);{var Ue=Ne=>{var kt=U6(),Rt=xe(kt);Te(kt),rr(()=>ir(Rt,`\u23F3 Work in progress: ${q(g)??""}`)),we(Ne,kt)};tt(Je,Ne=>{q(g)&&Ne(Ue)})}var ot=Ye(Je,2);_c(ot,{children:(Ne,kt)=>{var Rt=z6(),ur=Sr(Rt);nc(ur,17,()=>q(d),rc,(Zt,la,Cn)=>{p0(Zt,{height:100,offset:500,keep:!0,fadeOption:{delay:0,duration:0},children:(Yn,Kn)=>{let un=kn(()=>Cn===q(a));f0(Yn,{get plugin(){return t.plugin},get selected(){return q(un)},get note(){return q(la)},$$events:{mousemove:Xa=>oe(a,er(Cn)),click:ce,auxclick:Xa=>{Xa.button==1&&qe()}}})},$$slots:{default:!0}})});var Sn=Ye(ur,2),Ri=xe(Sn);{var vu=Zt=>{var la=q6(),Cn=Ye(Sr(la));{var Yn=Kn=>{var un=V6();wr(2),we(Kn,un)};tt(Cn,Kn=>{t.plugin.settings.simpleSearch&&q(l).split(Af).some(un=>un.length<3)&&Kn(Yn)})}we(Zt,la)},cr=(Zt,la)=>{{var Cn=Yn=>{var Kn=ec("Searching...");we(Yn,Kn)};tt(Zt,Yn=>{q(E)&&Yn(Cn)},la)}};tt(Ri,Zt=>{!q(d).length&&q(l)&&!q(E)?Zt(vu):Zt(cr,!1)})}Te(Sn),we(Ne,Rt)},$$slots:{default:!0}});var ut=Ye(ot,2),_t=Ye(xe(ut),2),qr=xe(_t),rt=xe(qr);Te(qr),wr(2),Te(_t);var ct=Ye(_t,2),Xt=xe(ct),Er=xe(Xt,!0);Te(Xt),wr(2),Te(ct);var Pr=Ye(ct,4),zr=xe(Pr),Ct=xe(zr,!0);Te(zr),wr(2),Te(Pr);var $t=Ye(Pr,2),ki=xe($t);ki.textContent=N,wr(2),Te($t);var me=Ye($t,2),_u=xe(me),Nh=xe(_u);Te(_u),wr(2),Te(me);var ca=Ye(me,2),nt=xe(ca),Qa=xe(nt,!0);Te(nt),wr(2),Te(ca);var bu=Ye(ca,2),di=xe(bu),Oh=xe(di,!0);Te(di),wr(2),Te(bu);var Eu=Ye(bu,2),El=xe(Eu),Dh=xe(El);Te(El),wr(2),Te(Eu);var js=Ye(Eu,2),on=xe(js),vl=xe(on);Te(on),wr(2),Te(js),wr(2),Te(ut),rr((Ne,kt,Rt,ur)=>{ir(rt,`${Ne??""} \u2191\u2193`),ir(Er,q(C)),ir(Ct,q(y)),ir(Nh,`${kt??""} o`),ir(Qa,q(P)),ir(Oh,q(D)),ir(Dh,`${Rt??""} \u21B5`),ir(vl,`${ur??""} g`)},[Cf,vn,Cf,vn]),we(e,fe),hr(),n()}var Ci,Qy,B6,$6,H6,U6,V6,q6,z6,Y6,Xy=v(()=>{Wn();Pn();Ci=require("obsidian");ws();Cm();Im();en();bc();Nr();Pc();$y();ud();Qy=ln(zy());Dc();Wy();B6=Le("<button>Create note</button>"),$6=Le("<button>In-File search</button>"),H6=Le('<div class="omnisearch-input-container__buttons"><!> <!></div>'),U6=Le('<div style="text-align: center; color: var(--text-accent); margin-top: 10px"> </div>'),V6=Le(`<br> <span style="color: var(--text-accent); font-size: small">You have enabled "Simpler Search" in the settings, try to type more
          characters.</span>`,1),q6=Le("We found 0 results for your search here. <!>",1),z6=Le('<!> <div style="text-align: center;"><!></div>',1),Y6=Le('<!> <!> <!> <div class="prompt-instructions"><div class="prompt-instruction"><span class="prompt-instruction-command">\u2191\u2193</span><span>to navigate</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to cycle history</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to open</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command">Tab</span> <span>to switch to In-File Search</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to open in a new pane</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"></span> <span>to open in a new split</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to open in the background</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to create</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to create in a new pane</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to insert a link</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to toggle excerpts</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command">Esc</span><span>to close</span></div></div>',1)});function g0(e,t){dr(t,!1);let r=ft(),n=ze(t,"plugin",8),i=ze(t,"offset",8),a=ze(t,"note",8),u=ze(t,"index",8,0),l=ze(t,"selected",8,!1);Qt(()=>(vt(n()),vt(a()),vt(i())),()=>{oe(r,n().textProcessor.makeExcerpt(a()?.content??"",i()))}),Jn(),En();let d=Br(()=>u().toString());Lc(e,{get id(){return q(d)},get selected(){return l()},$$events:{auxclick(p){Jr.call(this,t,p)},click(p){Jr.call(this,t,p)},mousemove(p){Jr.call(this,t,p)}},children:(p,g)=>{var E=K6(),_=xe(E);Ts(_,()=>n().textProcessor.highlightText(q(r),a().matches),!1,!1),Te(E),we(p,E)},$$slots:{default:!0}}),hr()}var K6,Zy=v(()=>{Wn();Ai();Pn();s0();K6=Le('<div class="omnisearch-result__body"><!></div>')});function _0(e,t){dr(t,!1);let r=ze(t,"plugin",8),n=ze(t,"modal",8),i=ze(t,"parent",8,null),a=ze(t,"singleFilePath",8,""),u=ze(t,"previousQuery",8),l=ft(),d=ft([]),p=ft(0),g=ft(),E=ft();As(()=>{Me.enable("infile"),Me.on("infile","enter",N),Me.on("infile","open-in-new-pane",P),Me.on("infile","arrow-up",()=>C(-1)),Me.on("infile","arrow-down",()=>C(1)),Me.on("infile","tab",L)}),gf(()=>{Me.disable("infile")});function _(Se){let et=[],je=-1,lt=0;for(;++lt<100;){let F=y(Se,je,cc);if(!F.length)break;je=F.last().offset,et.push(F)}return et}function y(Se,et,je){let lt=Se.find(F=>F.offset>et);return lt?Se.filter(F=>F.offset>et&&F.offset<=lt.offset+je):[]}function C(Se){oe(p,Sf(q(p)+Se,q(d).length)),D()}async function D(){await vi(),document.querySelector(`[data-result-id="${q(p)}"]`)?.scrollIntoView({behavior:"auto",block:"nearest"})}async function P(){return N(!0)}async function N(Se=!1){if(q(g)){n().close(),i()&&i().close();let et=r().textProcessor.stringsToRegex(q(g).foundWords);et.exec(q(g).content),await If(r().app,q(g),et.lastIndex,Se);let je=r().app.workspace.getActiveViewOfType(fd.MarkdownView);if(!je)return;let lt=q(d)[q(p)]??0,F=je.editor.offsetToPos(lt);F.ch=0,je.editor.setCursor(F),je.editor.scrollIntoView({from:{line:F.line-10,ch:0},to:{line:F.line+10,ch:0}})}}function L(){new ta(r(),q(l)??u()).open(),n().close()}Qt(()=>vt(u()),()=>{oe(l,u()??"")}),Qt(()=>(q(l),q(E),ea,vt(r()),vt(a())),()=>{(async()=>(q(l)&&(oe(E,new ea(q(l),{ignoreDiacritics:r().settings.ignoreDiacritics,ignoreArabicDiacritics:r().settings.ignoreArabicDiacritics})),oe(g,(await r().searchEngine.getSuggestions(q(E),{singleFilePath:a()}))[0]??null)),oe(p,0),await D()))()}),Qt(()=>(q(g),q(E)),()=>{if(q(g)){let Se=_(q(g).matches),et=q(E).getExactTerms();et.length&&(Se=Se.filter(je=>et.every(lt=>je.some(F=>F.match.includes(lt))))),oe(d,Se.map(je=>Math.round(je.first().offset)))}}),Jn(),En();var H=Z6(),R=Sr(H);gc(R,{get plugin(){return r()},placeholder:"Omnisearch - File",get initialValue(){return u()},$$events:{input:Se=>oe(l,Se.detail)},children:(Se,et)=>{var je=W6(),lt=xe(je);{var F=K=>{var te=j6();pr("click",te,L),we(K,te)};tt(lt,K=>{fd.Platform.isMobile&&K(F)})}Te(je),we(Se,je)},$$slots:{default:!0}});var B=Ye(R,2);_c(B,{children:(Se,et)=>{var je=zi(),lt=Sr(je);{var F=te=>{var fe=zi(),Fe=Sr(fe);nc(Fe,1,()=>q(d),rc,(Je,Ue,ot)=>{let ut=Br(()=>ot===q(p));g0(Je,{get plugin(){return r()},get offset(){return q(Ue)},get note(){return q(g)},index:ot,get selected(){return q(ut)},$$events:{mousemove:_t=>oe(p,ot),click:_t=>N(_t.ctrlKey),auxclick:_t=>{_t.button==1&&N(!0)}}})}),we(te,fe)},K=te=>{var fe=G6();we(te,fe)};tt(lt,te=>{q(d).length&&q(g)?te(F):te(K,!1)})}we(Se,je)},$$slots:{default:!0}});var V=Ye(B,2),X=Ye(xe(V),6),ce=Ye(xe(X),2);{var ve=Se=>{var et=Q6();we(Se,et)},Re=Se=>{var et=X6();we(Se,et)};tt(ce,Se=>{i()?Se(ve):Se(Re,!1)})}Te(X);var qe=Ye(X,2),St=xe(qe),Dt=xe(St);Te(St),wr(2),Te(qe),Te(V),rr(Se=>ir(Dt,`${Se??""} \u21B5`),[vn],Br),we(e,H),hr()}var fd,j6,W6,G6,Q6,X6,Z6,Jy=v(()=>{Wn();Ai();Pn();Cm();en();Nr();ws();fd=require("obsidian");Im();Pc();Zy();ud();bc();j6=Le("<button>Vault search</button>"),W6=Le('<div class="omnisearch-input-container__buttons"><!></div>'),G6=Le('<div style="text-align: center;">We found 0 results for your search here.</div>'),Q6=Le("<span>to go back to Vault Search</span>"),X6=Le("<span>to close</span>"),Z6=Le('<!> <!> <div class="prompt-instructions"><div class="prompt-instruction"><span class="prompt-instruction-command">\u2191\u2193</span><span>to navigate</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command">\u21B5</span><span>to open</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command">tab</span> <span>to switch to Vault Search</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command">esc</span> <!></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to open in a new pane</span></div></div>',1)});var hd,dd,ta,Rs,Pc=v(()=>{hd=require("obsidian");Xy();Jy();en();ws();dd=class extends hd.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",d=>{d.preventDefault(),Me.emit("arrow-down")}),this.scope.register([],"ArrowUp",d=>{d.preventDefault(),Me.emit("arrow-up")});for(let d of[{k:"J",dir:"down"},{k:"K",dir:"up"}])for(let p of["Ctrl","Mod"])this.scope.register([p],d.k,g=>{r.vimLikeNavigationShortcut&&Me.emit("arrow-"+d.dir)});for(let d of[{k:"N",dir:"down"},{k:"P",dir:"up"}])for(let p of["Ctrl","Mod"])this.scope.register([p],d.k,g=>{r.vimLikeNavigationShortcut&&Me.emit("arrow-"+d.dir)});let n,i,a,u,l=["Mod","Alt"];r.openInNewPane?(n=["Mod"],i=[],a=["Mod","Shift"],u=["Shift"]):(n=[],i=["Mod"],a=["Shift"],u=["Mod","Shift"]),this.scope.register(i,"Enter",d=>{d.preventDefault(),Me.emit("open-in-new-pane")}),this.scope.register(l,"Enter",d=>{d.preventDefault(),Me.emit("open-in-new-leaf")}),this.scope.register(["Alt"],"Enter",d=>{d.preventDefault(),Me.emit("insert-link")}),this.scope.register(a,"Enter",d=>{d.preventDefault(),Me.emit("create-note")}),this.scope.register(u,"Enter",d=>{d.preventDefault(),Me.emit("create-note",{newLeaf:!0})}),this.scope.register(n,"Enter",d=>{Tm()||(d.preventDefault(),Me.emit("enter"))}),this.scope.register(["Mod"],"O",d=>{Tm()||(d.preventDefault(),Me.emit("open-in-background"))}),this.scope.register([],"Tab",d=>{d.preventDefault(),Me.emit("tab")}),this.scope.register(["Alt"],"ArrowDown",d=>{d.preventDefault(),Me.emit("next-search-history")}),this.scope.register(["Alt"],"ArrowUp",d=>{d.preventDefault(),Me.emit("prev-search-history")}),this.scope.register(["Mod"],"G",d=>{Me.emit(yf.ToggleExcerpts)})}},ta=class extends dd{constructor(t,r){super(t);let n=t.app.workspace.getActiveViewOfType(hd.MarkdownView)?.editor.getSelection();t.searchHistory.getHistory().then(i=>{let a=t.settings.showPreviousQueryResults?i[0]:null,u=Es(m0,{target:this.modalEl,props:{plugin:t,modal:this,previousQuery:r||n||a||""}});this.onClose=()=>{vo(u)}})}},Rs=class extends dd{constructor(t,r,n="",i){super(t);let a=Es(_0,{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),vo(a)}}}});function J6(e,t){return t.map(r=>{let{score:n,path:i,basename:a,foundWords:u,matches:l,content:d}=r,p=e.textProcessor.makeExcerpt(d,l[0]?.offset??-1);return{score:n,vault:e.app.vault.getName(),path:i,basename:a,foundWords:u,matches:l.map(E=>({match:E.match,offset:E.offset})),excerpt:p}})}function rA(){tA=!0,pd.forEach(e=>e())}function nA(e){if(eA)return;eA=!0,e.registerObsidianProtocolHandler("omnisearch",r=>{new ta(e,r.query).open()});let t=b0(e);globalThis.omnisearch=t,e.app.plugins.plugins.omnisearch.api=t}function b0(e){return{async search(t){let r=new ea(t,{ignoreDiacritics:e.settings.ignoreDiacritics,ignoreArabicDiacritics:e.settings.ignoreArabicDiacritics}),n=await e.searchEngine.getSuggestions(r);return J6(e,n)},registerOnIndexed(t){pd.push(t),tA&&t()},unregisterOnIndexed(t){pd=pd.filter(r=>r!==t)},refreshIndex:e.notesIndexer.refreshIndex}}var tA,pd,eA,E0=v(()=>{ud();Pc();tA=!1,pd=[];eA=!1});var iA=Mi((v0,T0)=>{(function(e,t){typeof v0=="object"&&typeof T0<"u"?T0.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.Dexie=t())})(v0,function(){"use strict";var e=function(s,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(f[m]=h[m])},e(s,o)};function t(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(s,o);function f(){this.constructor=s}s.prototype=o===null?Object.create(o):(f.prototype=o.prototype,new f)}var r=function(){return r=Object.assign||function(o){for(var f,h=1,m=arguments.length;h<m;h++){f=arguments[h];for(var b in f)Object.prototype.hasOwnProperty.call(f,b)&&(o[b]=f[b])}return o},r.apply(this,arguments)};function n(s,o,f){if(f||arguments.length===2)for(var h=0,m=o.length,b;h<m;h++)(b||!(h in o))&&(b||(b=Array.prototype.slice.call(o,0,h)),b[h]=o[h]);return s.concat(b||Array.prototype.slice.call(o))}var i=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,a=Object.keys,u=Array.isArray;typeof Promise<"u"&&!i.Promise&&(i.Promise=Promise);function l(s,o){return typeof o!="object"||a(o).forEach(function(f){s[f]=o[f]}),s}var d=Object.getPrototypeOf,p={}.hasOwnProperty;function g(s,o){return p.call(s,o)}function E(s,o){typeof o=="function"&&(o=o(d(s))),(typeof Reflect>"u"?a:Reflect.ownKeys)(o).forEach(function(f){y(s,f,o[f])})}var _=Object.defineProperty;function y(s,o,f,h){_(s,o,l(f&&g(f,"get")&&typeof f.get=="function"?{get:f.get,set:f.set,configurable:!0}:{value:f,configurable:!0,writable:!0},h))}function C(s){return{from:function(o){return s.prototype=Object.create(o.prototype),y(s.prototype,"constructor",s),{extend:E.bind(null,s.prototype)}}}}var D=Object.getOwnPropertyDescriptor;function P(s,o){var f=D(s,o),h;return f||(h=d(s))&&P(h,o)}var N=[].slice;function L(s,o,f){return N.call(s,o,f)}function H(s,o){return o(s)}function R(s){if(!s)throw new Error("Assertion Failed")}function B(s){i.setImmediate?setImmediate(s):setTimeout(s,0)}function V(s,o){return s.reduce(function(f,h,m){var b=o(h,m);return b&&(f[b[0]]=b[1]),f},{})}function X(s,o){if(typeof o=="string"&&g(s,o))return s[o];if(!o)return s;if(typeof o!="string"){for(var f=[],h=0,m=o.length;h<m;++h){var b=X(s,o[h]);f.push(b)}return f}var T=o.indexOf(".");if(T!==-1){var A=s[o.substr(0,T)];return A==null?void 0:X(A,o.substr(T+1))}}function ce(s,o,f){if(!(!s||o===void 0)&&!("isFrozen"in Object&&Object.isFrozen(s)))if(typeof o!="string"&&"length"in o){R(typeof f!="string"&&"length"in f);for(var h=0,m=o.length;h<m;++h)ce(s,o[h],f[h])}else{var b=o.indexOf(".");if(b!==-1){var T=o.substr(0,b),A=o.substr(b+1);if(A==="")f===void 0?u(s)&&!isNaN(parseInt(T))?s.splice(T,1):delete s[T]:s[T]=f;else{var S=s[T];(!S||!g(s,T))&&(S=s[T]={}),ce(S,A,f)}}else f===void 0?u(s)&&!isNaN(parseInt(o))?s.splice(o,1):delete s[o]:s[o]=f}}function ve(s,o){typeof o=="string"?ce(s,o,void 0):"length"in o&&[].map.call(o,function(f){ce(s,f,void 0)})}function Re(s){var o={};for(var f in s)g(s,f)&&(o[f]=s[f]);return o}var qe=[].concat;function St(s){return qe.apply([],s)}var Dt="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(St([8,16,32,64].map(function(s){return["Int","Uint","Float"].map(function(o){return o+s+"Array"})}))).filter(function(s){return i[s]}),Se=new Set(Dt.map(function(s){return i[s]}));function et(s){var o={};for(var f in s)if(g(s,f)){var h=s[f];o[f]=!h||typeof h!="object"||Se.has(h.constructor)?h:et(h)}return o}function je(s){for(var o in s)if(g(s,o))return!1;return!0}var lt=null;function F(s){lt=new WeakMap;var o=K(s);return lt=null,o}function K(s){if(!s||typeof s!="object")return s;var o=lt.get(s);if(o)return o;if(u(s)){o=[],lt.set(s,o);for(var f=0,h=s.length;f<h;++f)o.push(K(s[f]))}else if(Se.has(s.constructor))o=s;else{var m=d(s);o=m===Object.prototype?{}:Object.create(m),lt.set(s,o);for(var b in s)g(s,b)&&(o[b]=K(s[b]))}return o}var te={}.toString;function fe(s){return te.call(s).slice(8,-1)}var Fe=typeof Symbol<"u"?Symbol.iterator:"@@iterator",Je=typeof Fe=="symbol"?function(s){var o;return s!=null&&(o=s[Fe])&&o.apply(s)}:function(){return null};function Ue(s,o){var f=s.indexOf(o);return f>=0&&s.splice(f,1),f>=0}var ot={};function ut(s){var o,f,h,m;if(arguments.length===1){if(u(s))return s.slice();if(this===ot&&typeof s=="string")return[s];if(m=Je(s)){for(f=[];h=m.next(),!h.done;)f.push(h.value);return f}if(s==null)return[s];if(o=s.length,typeof o=="number"){for(f=new Array(o);o--;)f[o]=s[o];return f}return[s]}for(o=arguments.length,f=new Array(o);o--;)f[o]=arguments[o];return f}var _t=typeof Symbol<"u"?function(s){return s[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},qr=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"],rt=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],ct=qr.concat(rt),Xt={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 Er(s,o){this.name=s,this.message=o}C(Er).from(Error).extend({toString:function(){return this.name+": "+this.message}});function Pr(s,o){return s+". Errors: "+Object.keys(o).map(function(f){return o[f].toString()}).filter(function(f,h,m){return m.indexOf(f)===h}).join(`
`)}function zr(s,o,f,h){this.failures=o,this.failedKeys=h,this.successCount=f,this.message=Pr(s,o)}C(zr).from(Er);function Ct(s,o){this.name="BulkError",this.failures=Object.keys(o).map(function(f){return o[f]}),this.failuresByPos=o,this.message=Pr(s,this.failures)}C(Ct).from(Er);var $t=ct.reduce(function(s,o){return s[o]=o+"Error",s},{}),ki=Er,me=ct.reduce(function(s,o){var f=o+"Error";function h(m,b){this.name=f,m?typeof m=="string"?(this.message="".concat(m).concat(b?`
 `+b:""),this.inner=b||null):typeof m=="object"&&(this.message="".concat(m.name," ").concat(m.message),this.inner=m):(this.message=Xt[o]||f,this.inner=null)}return C(h).from(ki),s[o]=h,s},{});me.Syntax=SyntaxError,me.Type=TypeError,me.Range=RangeError;var _u=rt.reduce(function(s,o){return s[o+"Error"]=me[o],s},{});function Nh(s,o){if(!s||s instanceof Er||s instanceof TypeError||s instanceof SyntaxError||!s.name||!_u[s.name])return s;var f=new _u[s.name](o||s.message,s);return"stack"in s&&y(f,"stack",{get:function(){return this.inner.stack}}),f}var ca=ct.reduce(function(s,o){return["Syntax","Type","Range"].indexOf(o)===-1&&(s[o+"Error"]=me[o]),s},{});ca.ModifyError=zr,ca.DexieError=Er,ca.BulkError=Ct;function nt(){}function Qa(s){return s}function bu(s,o){return s==null||s===Qa?o:function(f){return o(s(f))}}function di(s,o){return function(){s.apply(this,arguments),o.apply(this,arguments)}}function Oh(s,o){return s===nt?o:function(){var f=s.apply(this,arguments);f!==void 0&&(arguments[0]=f);var h=this.onsuccess,m=this.onerror;this.onsuccess=null,this.onerror=null;var b=o.apply(this,arguments);return h&&(this.onsuccess=this.onsuccess?di(h,this.onsuccess):h),m&&(this.onerror=this.onerror?di(m,this.onerror):m),b!==void 0?b:f}}function Eu(s,o){return s===nt?o:function(){s.apply(this,arguments);var f=this.onsuccess,h=this.onerror;this.onsuccess=this.onerror=null,o.apply(this,arguments),f&&(this.onsuccess=this.onsuccess?di(f,this.onsuccess):f),h&&(this.onerror=this.onerror?di(h,this.onerror):h)}}function El(s,o){return s===nt?o:function(f){var h=s.apply(this,arguments);l(f,h);var m=this.onsuccess,b=this.onerror;this.onsuccess=null,this.onerror=null;var T=o.apply(this,arguments);return m&&(this.onsuccess=this.onsuccess?di(m,this.onsuccess):m),b&&(this.onerror=this.onerror?di(b,this.onerror):b),h===void 0?T===void 0?void 0:T:l(h,T)}}function Dh(s,o){return s===nt?o:function(){return o.apply(this,arguments)===!1?!1:s.apply(this,arguments)}}function js(s,o){return s===nt?o:function(){var f=s.apply(this,arguments);if(f&&typeof f.then=="function"){for(var h=this,m=arguments.length,b=new Array(m);m--;)b[m]=arguments[m];return f.then(function(){return o.apply(h,b)})}return o.apply(this,arguments)}}var on=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function vl(s,o){on=s}var Ne={},kt=100,Rt=typeof Promise>"u"?[]:function(){var s=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[s,d(s),s];var o=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[o,d(o),s]}(),ur=Rt[0],Sn=Rt[1],Ri=Rt[2],vu=Sn&&Sn.then,cr=ur&&ur.constructor,Zt=!!Ri;function la(){queueMicrotask(GS)}var Cn=function(s,o){Tu.push([s,o]),Kn&&(la(),Kn=!1)},Yn=!0,Kn=!0,un=[],Xa=[],kh=Qa,fa={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:nt,pgp:!1,env:{},finalize:nt},be=fa,Tu=[],Za=0,Tl=[];function de(s){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var o=this._PSD=be;if(typeof s!="function"){if(s!==Ne)throw new TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],this._state===!1&&Lh(this,this._value);return}this._state=null,this._value=null,++o.ref,o_(this,s)}var Rh={get:function(){var s=be,o=wl;function f(h,m){var b=this,T=!s.global&&(s!==be||o!==wl),A=T&&!ha(),S=new de(function(O,$){Ph(b,new s_(l_(h,s,T,A),l_(m,s,T,A),O,$,s))});return this._consoleTask&&(S._consoleTask=this._consoleTask),S}return f.prototype=Ne,f},set:function(s){y(this,"then",s&&s.prototype===Ne?Rh:{get:function(){return s},set:Rh.set})}};E(de.prototype,{then:Rh,_then:function(s,o){Ph(this,new s_(null,null,s,o,be))},catch:function(s){if(arguments.length===1)return this.then(null,s);var o=arguments[0],f=arguments[1];return typeof o=="function"?this.then(null,function(h){return h instanceof o?f(h):xl(h)}):this.then(null,function(h){return h&&h.name===o?f(h):xl(h)})},finally:function(s){return this.then(function(o){return de.resolve(s()).then(function(){return o})},function(o){return de.resolve(s()).then(function(){return xl(o)})})},timeout:function(s,o){var f=this;return s<1/0?new de(function(h,m){var b=setTimeout(function(){return m(new me.Timeout(o))},s);f.then(h,m).finally(clearTimeout.bind(null,b))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&y(de.prototype,Symbol.toStringTag,"Dexie.Promise"),fa.env=c_();function s_(s,o,f,h,m){this.onFulfilled=typeof s=="function"?s:null,this.onRejected=typeof o=="function"?o:null,this.resolve=f,this.reject=h,this.psd=m}E(de,{all:function(){var s=ut.apply(null,arguments).map(Sl);return new de(function(o,f){s.length===0&&o([]);var h=s.length;s.forEach(function(m,b){return de.resolve(m).then(function(T){s[b]=T,--h||o(s)},f)})})},resolve:function(s){if(s instanceof de)return s;if(s&&typeof s.then=="function")return new de(function(f,h){s.then(f,h)});var o=new de(Ne,!0,s);return o},reject:xl,race:function(){var s=ut.apply(null,arguments).map(Sl);return new de(function(o,f){s.map(function(h){return de.resolve(h).then(o,f)})})},PSD:{get:function(){return be},set:function(s){return be=s}},totalEchoes:{get:function(){return wl}},newPSD:da,usePSD:Ja,scheduler:{get:function(){return Cn},set:function(s){Cn=s}},rejectionMapper:{get:function(){return kh},set:function(s){kh=s}},follow:function(s,o){return new de(function(f,h){return da(function(m,b){var T=be;T.unhandleds=[],T.onunhandled=b,T.finalize=di(function(){var A=this;QS(function(){A.unhandleds.length===0?m():b(A.unhandleds[0])})},T.finalize),s()},o,f,h)})}}),cr&&(cr.allSettled&&y(de,"allSettled",function(){var s=ut.apply(null,arguments).map(Sl);return new de(function(o){s.length===0&&o([]);var f=s.length,h=new Array(f);s.forEach(function(m,b){return de.resolve(m).then(function(T){return h[b]={status:"fulfilled",value:T}},function(T){return h[b]={status:"rejected",reason:T}}).then(function(){return--f||o(h)})})})}),cr.any&&typeof AggregateError<"u"&&y(de,"any",function(){var s=ut.apply(null,arguments).map(Sl);return new de(function(o,f){s.length===0&&f(new AggregateError([]));var h=s.length,m=new Array(h);s.forEach(function(b,T){return de.resolve(b).then(function(A){return o(A)},function(A){m[T]=A,--h||f(new AggregateError(m))})})})}),cr.withResolvers&&(de.withResolvers=cr.withResolvers));function o_(s,o){try{o(function(f){if(s._state===null){if(f===s)throw new TypeError("A promise cannot be resolved with itself.");var h=s._lib&&Ws();f&&typeof f.then=="function"?o_(s,function(m,b){f instanceof de?f._then(m,b):f.then(m,b)}):(s._state=!0,s._value=f,u_(s)),h&&Gs()}},Lh.bind(null,s))}catch(f){Lh(s,f)}}function Lh(s,o){if(Xa.push(o),s._state===null){var f=s._lib&&Ws();o=kh(o),s._state=!1,s._value=o,XS(s),u_(s),f&&Gs()}}function u_(s){var o=s._listeners;s._listeners=[];for(var f=0,h=o.length;f<h;++f)Ph(s,o[f]);var m=s._PSD;--m.ref||m.finalize(),Za===0&&(++Za,Cn(function(){--Za===0&&Mh()},[]))}function Ph(s,o){if(s._state===null){s._listeners.push(o);return}var f=s._state?o.onFulfilled:o.onRejected;if(f===null)return(s._state?o.resolve:o.reject)(s._value);++o.psd.ref,++Za,Cn(WS,[f,s,o])}function WS(s,o,f){try{var h,m=o._value;!o._state&&Xa.length&&(Xa=[]),h=on&&o._consoleTask?o._consoleTask.run(function(){return s(m)}):s(m),!o._state&&Xa.indexOf(m)===-1&&ZS(o),f.resolve(h)}catch(b){f.reject(b)}finally{--Za===0&&Mh(),--f.psd.ref||f.psd.finalize()}}function GS(){Ja(fa,function(){Ws()&&Gs()})}function Ws(){var s=Yn;return Yn=!1,Kn=!1,s}function Gs(){var s,o,f;do for(;Tu.length>0;)for(s=Tu,Tu=[],f=s.length,o=0;o<f;++o){var h=s[o];h[0].apply(null,h[1])}while(Tu.length>0);Yn=!0,Kn=!0}function Mh(){var s=un;un=[],s.forEach(function(h){h._PSD.onunhandled.call(null,h._value,h)});for(var o=Tl.slice(0),f=o.length;f;)o[--f]()}function QS(s){function o(){s(),Tl.splice(Tl.indexOf(o),1)}Tl.push(o),++Za,Cn(function(){--Za===0&&Mh()},[])}function XS(s){un.some(function(o){return o._value===s._value})||un.push(s)}function ZS(s){for(var o=un.length;o;)if(un[--o]._value===s._value){un.splice(o,1);return}}function xl(s){return new de(Ne,!1,s)}function At(s,o){var f=be;return function(){var h=Ws(),m=be;try{return pa(f,!0),s.apply(this,arguments)}catch(b){o&&o(b)}finally{pa(m,!1),h&&Gs()}}}var Jt={awaits:0,echoes:0,id:0},JS=0,yl=[],Al=0,wl=0,eC=0;function da(s,o,f,h){var m=be,b=Object.create(m);b.parent=m,b.ref=0,b.global=!1,b.id=++eC,fa.env,b.env=Zt?{Promise:de,PromiseProp:{value:de,configurable:!0,writable:!0},all:de.all,race:de.race,allSettled:de.allSettled,any:de.any,resolve:de.resolve,reject:de.reject}:{},o&&l(b,o),++m.ref,b.finalize=function(){--this.parent.ref||this.parent.finalize()};var T=Ja(b,s,f,h);return b.ref===0&&b.finalize(),T}function Qs(){return Jt.id||(Jt.id=++JS),++Jt.awaits,Jt.echoes+=kt,Jt.id}function ha(){return Jt.awaits?(--Jt.awaits===0&&(Jt.id=0),Jt.echoes=Jt.awaits*kt,!0):!1}(""+vu).indexOf("[native code]")===-1&&(Qs=ha=nt);function Sl(s){return Jt.echoes&&s&&s.constructor===cr?(Qs(),s.then(function(o){return ha(),o},function(o){return ha(),Lt(o)})):s}function tC(s){++wl,(!Jt.echoes||--Jt.echoes===0)&&(Jt.echoes=Jt.awaits=Jt.id=0),yl.push(be),pa(s,!0)}function rC(){var s=yl[yl.length-1];yl.pop(),pa(s,!1)}function pa(s,o){var f=be;if((o?Jt.echoes&&(!Al++||s!==be):Al&&(!--Al||s!==be))&&queueMicrotask(o?tC.bind(null,s):rC),s!==be&&(be=s,f===fa&&(fa.env=c_()),Zt)){var h=fa.env.Promise,m=s.env;(f.global||s.global)&&(Object.defineProperty(i,"Promise",m.PromiseProp),h.all=m.all,h.race=m.race,h.resolve=m.resolve,h.reject=m.reject,m.allSettled&&(h.allSettled=m.allSettled),m.any&&(h.any=m.any))}}function c_(){var s=i.Promise;return Zt?{Promise:s,PromiseProp:Object.getOwnPropertyDescriptor(i,"Promise"),all:s.all,race:s.race,allSettled:s.allSettled,any:s.any,resolve:s.resolve,reject:s.reject}:{}}function Ja(s,o,f,h,m){var b=be;try{return pa(s,!0),o(f,h,m)}finally{pa(b,!1)}}function l_(s,o,f,h){return typeof s!="function"?s:function(){var m=be;f&&Qs(),pa(o,!0);try{return s.apply(this,arguments)}finally{pa(m,!1),h&&queueMicrotask(ha)}}}function Fh(s){Promise===cr&&Jt.echoes===0?Al===0?s():enqueueNativeMicroTask(s):setTimeout(s,0)}var Lt=de.reject;function Bh(s,o,f,h){if(!s.idbdb||!s._state.openComplete&&!be.letThrough&&!s._vip){if(s._state.openComplete)return Lt(new me.DatabaseClosed(s._state.dbOpenError));if(!s._state.isBeingOpened){if(!s._state.autoOpen)return Lt(new me.DatabaseClosed);s.open().catch(nt)}return s._state.dbReadyPromise.then(function(){return Bh(s,o,f,h)})}else{var m=s._createTransaction(o,f,s._dbSchema);try{m.create(),s._state.PR1398_maxLoop=3}catch(b){return b.name===$t.InvalidState&&s.isOpen()&&--s._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),s.close({disableAutoOpen:!1}),s.open().then(function(){return Bh(s,o,f,h)})):Lt(b)}return m._promise(o,function(b,T){return da(function(){return be.trans=m,h(b,T,m)})}).then(function(b){if(o==="readwrite")try{m.idbtrans.commit()}catch{}return o==="readonly"?b:m._completion.then(function(){return b})})}}var f_="4.0.11",es=String.fromCharCode(65535),$h=-1/0,Li="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",d_="String expected.",Xs=[],Cl="__dbnames",Hh="readonly",Uh="readwrite";function ts(s,o){return s?o?function(){return s.apply(this,arguments)&&o.apply(this,arguments)}:s:o}var h_={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Il(s){return typeof s=="string"&&!/\./.test(s)?function(o){return o[s]===void 0&&s in o&&(o=F(o),delete o[s]),o}:function(o){return o}}function p_(){throw me.Type()}function We(s,o){try{var f=m_(s),h=m_(o);if(f!==h)return f==="Array"?1:h==="Array"?-1:f==="binary"?1:h==="binary"?-1:f==="string"?1:h==="string"?-1:f==="Date"?1:h!=="Date"?NaN:-1;switch(f){case"number":case"Date":case"string":return s>o?1:s<o?-1:0;case"binary":return iC(g_(s),g_(o));case"Array":return nC(s,o)}}catch{}return NaN}function nC(s,o){for(var f=s.length,h=o.length,m=f<h?f:h,b=0;b<m;++b){var T=We(s[b],o[b]);if(T!==0)return T}return f===h?0:f<h?-1:1}function iC(s,o){for(var f=s.length,h=o.length,m=f<h?f:h,b=0;b<m;++b)if(s[b]!==o[b])return s[b]<o[b]?-1:1;return f===h?0:f<h?-1:1}function m_(s){var o=typeof s;if(o!=="object")return o;if(ArrayBuffer.isView(s))return"binary";var f=fe(s);return f==="ArrayBuffer"?"binary":f}function g_(s){return s instanceof Uint8Array?s:ArrayBuffer.isView(s)?new Uint8Array(s.buffer,s.byteOffset,s.byteLength):new Uint8Array(s)}var __=function(){function s(){}return s.prototype._trans=function(o,f,h){var m=this._tx||be.trans,b=this.name,T=on&&typeof console<"u"&&console.createTask&&console.createTask("Dexie: ".concat(o==="readonly"?"read":"write"," ").concat(this.name));function A($,k,W){if(!W.schema[b])throw new me.NotFound("Table "+b+" not part of transaction");return f(W.idbtrans,W)}var S=Ws();try{var O=m&&m.db._novip===this.db._novip?m===be.trans?m._promise(o,A,h):da(function(){return m._promise(o,A,h)},{trans:m,transless:be.transless||be}):Bh(this.db,o,[this.name],A);return T&&(O._consoleTask=T,O=O.catch(function($){return console.trace($),Lt($)})),O}finally{S&&Gs()}},s.prototype.get=function(o,f){var h=this;return o&&o.constructor===Object?this.where(o).first(f):o==null?Lt(new me.Type("Invalid argument to Table.get()")):this._trans("readonly",function(m){return h.core.get({trans:m,key:o}).then(function(b){return h.hook.reading.fire(b)})}).then(f)},s.prototype.where=function(o){if(typeof o=="string")return new this.db.WhereClause(this,o);if(u(o))return new this.db.WhereClause(this,"[".concat(o.join("+"),"]"));var f=a(o);if(f.length===1)return this.where(f[0]).equals(o[f[0]]);var h=this.schema.indexes.concat(this.schema.primKey).filter(function($){if($.compound&&f.every(function(W){return $.keyPath.indexOf(W)>=0})){for(var k=0;k<f.length;++k)if(f.indexOf($.keyPath[k])===-1)return!1;return!0}return!1}).sort(function($,k){return $.keyPath.length-k.keyPath.length})[0];if(h&&this.db._maxKey!==es){var m=h.keyPath.slice(0,f.length);return this.where(m).equals(m.map(function($){return o[$]}))}!h&&on&&console.warn("The query ".concat(JSON.stringify(o)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(f.join("+"),"]"));var b=this.schema.idxByName;function T($,k){return We($,k)===0}var A=f.reduce(function($,k){var W=$[0],ie=$[1],M=b[k],z=o[k];return[W||M,W||!M?ts(ie,M&&M.multi?function(j){var J=X(j,k);return u(J)&&J.some(function(Q){return T(z,Q)})}:function(j){return T(z,X(j,k))}):ie]},[null,null]),S=A[0],O=A[1];return S?this.where(S.name).equals(o[S.keyPath]).filter(O):h?this.filter(O):this.where(f).equals("")},s.prototype.filter=function(o){return this.toCollection().and(o)},s.prototype.count=function(o){return this.toCollection().count(o)},s.prototype.offset=function(o){return this.toCollection().offset(o)},s.prototype.limit=function(o){return this.toCollection().limit(o)},s.prototype.each=function(o){return this.toCollection().each(o)},s.prototype.toArray=function(o){return this.toCollection().toArray(o)},s.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},s.prototype.orderBy=function(o){return new this.db.Collection(new this.db.WhereClause(this,u(o)?"[".concat(o.join("+"),"]"):o))},s.prototype.reverse=function(){return this.toCollection().reverse()},s.prototype.mapToClass=function(o){var f=this,h=f.db,m=f.name;this.schema.mappedClass=o,o.prototype instanceof p_&&(o=function(S){t(O,S);function O(){return S!==null&&S.apply(this,arguments)||this}return Object.defineProperty(O.prototype,"db",{get:function(){return h},enumerable:!1,configurable:!0}),O.prototype.table=function(){return m},O}(o));for(var b=new Set,T=o.prototype;T;T=d(T))Object.getOwnPropertyNames(T).forEach(function(S){return b.add(S)});var A=function(S){if(!S)return S;var O=Object.create(o.prototype);for(var $ in S)if(!b.has($))try{O[$]=S[$]}catch{}return O};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=A,this.hook("reading",A),o},s.prototype.defineClass=function(){function o(f){l(this,f)}return this.mapToClass(o)},s.prototype.add=function(o,f){var h=this,m=this.schema.primKey,b=m.auto,T=m.keyPath,A=o;return T&&b&&(A=Il(T)(o)),this._trans("readwrite",function(S){return h.core.mutate({trans:S,type:"add",keys:f!=null?[f]:null,values:[A]})}).then(function(S){return S.numFailures?de.reject(S.failures[0]):S.lastResult}).then(function(S){if(T)try{ce(o,T,S)}catch{}return S})},s.prototype.update=function(o,f){if(typeof o=="object"&&!u(o)){var h=X(o,this.schema.primKey.keyPath);return h===void 0?Lt(new me.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(h).modify(f)}else return this.where(":id").equals(o).modify(f)},s.prototype.put=function(o,f){var h=this,m=this.schema.primKey,b=m.auto,T=m.keyPath,A=o;return T&&b&&(A=Il(T)(o)),this._trans("readwrite",function(S){return h.core.mutate({trans:S,type:"put",values:[A],keys:f!=null?[f]:null})}).then(function(S){return S.numFailures?de.reject(S.failures[0]):S.lastResult}).then(function(S){if(T)try{ce(o,T,S)}catch{}return S})},s.prototype.delete=function(o){var f=this;return this._trans("readwrite",function(h){return f.core.mutate({trans:h,type:"delete",keys:[o]})}).then(function(h){return h.numFailures?de.reject(h.failures[0]):void 0})},s.prototype.clear=function(){var o=this;return this._trans("readwrite",function(f){return o.core.mutate({trans:f,type:"deleteRange",range:h_})}).then(function(f){return f.numFailures?de.reject(f.failures[0]):void 0})},s.prototype.bulkGet=function(o){var f=this;return this._trans("readonly",function(h){return f.core.getMany({keys:o,trans:h}).then(function(m){return m.map(function(b){return f.hook.reading.fire(b)})})})},s.prototype.bulkAdd=function(o,f,h){var m=this,b=Array.isArray(f)?f:void 0;h=h||(b?void 0:f);var T=h?h.allKeys:void 0;return this._trans("readwrite",function(A){var S=m.schema.primKey,O=S.auto,$=S.keyPath;if($&&b)throw new me.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(b&&b.length!==o.length)throw new me.InvalidArgument("Arguments objects and keys must have the same length");var k=o.length,W=$&&O?o.map(Il($)):o;return m.core.mutate({trans:A,type:"add",keys:b,values:W,wantResults:T}).then(function(ie){var M=ie.numFailures,z=ie.results,j=ie.lastResult,J=ie.failures,Q=T?z:j;if(M===0)return Q;throw new Ct("".concat(m.name,".bulkAdd(): ").concat(M," of ").concat(k," operations failed"),J)})})},s.prototype.bulkPut=function(o,f,h){var m=this,b=Array.isArray(f)?f:void 0;h=h||(b?void 0:f);var T=h?h.allKeys:void 0;return this._trans("readwrite",function(A){var S=m.schema.primKey,O=S.auto,$=S.keyPath;if($&&b)throw new me.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(b&&b.length!==o.length)throw new me.InvalidArgument("Arguments objects and keys must have the same length");var k=o.length,W=$&&O?o.map(Il($)):o;return m.core.mutate({trans:A,type:"put",keys:b,values:W,wantResults:T}).then(function(ie){var M=ie.numFailures,z=ie.results,j=ie.lastResult,J=ie.failures,Q=T?z:j;if(M===0)return Q;throw new Ct("".concat(m.name,".bulkPut(): ").concat(M," of ").concat(k," operations failed"),J)})})},s.prototype.bulkUpdate=function(o){var f=this,h=this.core,m=o.map(function(A){return A.key}),b=o.map(function(A){return A.changes}),T=[];return this._trans("readwrite",function(A){return h.getMany({trans:A,keys:m,cache:"clone"}).then(function(S){var O=[],$=[];o.forEach(function(W,ie){var M=W.key,z=W.changes,j=S[ie];if(j){for(var J=0,Q=Object.keys(z);J<Q.length;J++){var Z=Q[J],re=z[Z];if(Z===f.schema.primKey.keyPath){if(We(re,M)!==0)throw new me.Constraint("Cannot update primary key in bulkUpdate()")}else ce(j,Z,re)}T.push(ie),O.push(M),$.push(j)}});var k=O.length;return h.mutate({trans:A,type:"put",keys:O,values:$,updates:{keys:m,changeSpecs:b}}).then(function(W){var ie=W.numFailures,M=W.failures;if(ie===0)return k;for(var z=0,j=Object.keys(M);z<j.length;z++){var J=j[z],Q=T[Number(J)];if(Q!=null){var Z=M[J];delete M[J],M[Q]=Z}}throw new Ct("".concat(f.name,".bulkUpdate(): ").concat(ie," of ").concat(k," operations failed"),M)})})})},s.prototype.bulkDelete=function(o){var f=this,h=o.length;return this._trans("readwrite",function(m){return f.core.mutate({trans:m,type:"delete",keys:o})}).then(function(m){var b=m.numFailures,T=m.lastResult,A=m.failures;if(b===0)return T;throw new Ct("".concat(f.name,".bulkDelete(): ").concat(b," of ").concat(h," operations failed"),A)})},s}();function xu(s){var o={},f=function(A,S){if(S){for(var O=arguments.length,$=new Array(O-1);--O;)$[O-1]=arguments[O];return o[A].subscribe.apply(null,$),s}else if(typeof A=="string")return o[A]};f.addEventType=b;for(var h=1,m=arguments.length;h<m;++h)b(arguments[h]);return f;function b(A,S,O){if(typeof A=="object")return T(A);S||(S=Dh),O||(O=nt);var $={subscribers:[],fire:O,subscribe:function(k){$.subscribers.indexOf(k)===-1&&($.subscribers.push(k),$.fire=S($.fire,k))},unsubscribe:function(k){$.subscribers=$.subscribers.filter(function(W){return W!==k}),$.fire=$.subscribers.reduce(S,O)}};return o[A]=f[A]=$,$}function T(A){a(A).forEach(function(S){var O=A[S];if(u(O))b(S,A[S][0],A[S][1]);else if(O==="asap")var $=b(S,Qa,function(){for(var W=arguments.length,ie=new Array(W);W--;)ie[W]=arguments[W];$.subscribers.forEach(function(M){B(function(){M.apply(null,ie)})})});else throw new me.InvalidArgument("Invalid event config")})}}function yu(s,o){return C(o).from({prototype:s}),o}function aC(s){return yu(__.prototype,function(f,h,m){this.db=s,this._tx=m,this.name=f,this.schema=h,this.hook=s._allTables[f]?s._allTables[f].hook:xu(null,{creating:[Oh,nt],reading:[bu,Qa],updating:[El,nt],deleting:[Eu,nt]})})}function Zs(s,o){return!(s.filter||s.algorithm||s.or)&&(o?s.justLimit:!s.replayFilter)}function Vh(s,o){s.filter=ts(s.filter,o)}function qh(s,o,f){var h=s.replayFilter;s.replayFilter=h?function(){return ts(h(),o())}:o,s.justLimit=f&&!h}function sC(s,o){s.isMatch=ts(s.isMatch,o)}function Nl(s,o){if(s.isPrimKey)return o.primaryKey;var f=o.getIndexByKeyPath(s.index);if(!f)throw new me.Schema("KeyPath "+s.index+" on object store "+o.name+" is not indexed");return f}function b_(s,o,f){var h=Nl(s,o.schema);return o.openCursor({trans:f,values:!s.keysOnly,reverse:s.dir==="prev",unique:!!s.unique,query:{index:h,range:s.range}})}function Ol(s,o,f,h){var m=s.replayFilter?ts(s.filter,s.replayFilter()):s.filter;if(s.or){var b={},T=function(A,S,O){if(!m||m(S,O,function(W){return S.stop(W)},function(W){return S.fail(W)})){var $=S.primaryKey,k=""+$;k==="[object ArrayBuffer]"&&(k=""+new Uint8Array($)),g(b,k)||(b[k]=!0,o(A,S,O))}};return Promise.all([s.or._iterate(T,f),E_(b_(s,h,f),s.algorithm,T,!s.keysOnly&&s.valueMapper)])}else return E_(b_(s,h,f),ts(s.algorithm,m),o,!s.keysOnly&&s.valueMapper)}function E_(s,o,f,h){var m=h?function(T,A,S){return f(h(T),A,S)}:f,b=At(m);return s.then(function(T){if(T)return T.start(function(){var A=function(){return T.continue()};(!o||o(T,function(S){return A=S},function(S){T.stop(S),A=nt},function(S){T.fail(S),A=nt}))&&b(T.value,T,function(S){return A=S}),A()})})}var Au=function(){function s(o){this["@@propmod"]=o}return s.prototype.execute=function(o){var f,h=this["@@propmod"];if(h.add!==void 0){var m=h.add;if(u(m))return n(n([],u(o)?o:[],!0),m,!0).sort();if(typeof m=="number")return(Number(o)||0)+m;if(typeof m=="bigint")try{return BigInt(o)+m}catch{return BigInt(0)+m}throw new TypeError("Invalid term ".concat(m))}if(h.remove!==void 0){var b=h.remove;if(u(b))return u(o)?o.filter(function(A){return!b.includes(A)}).sort():[];if(typeof b=="number")return Number(o)-b;if(typeof b=="bigint")try{return BigInt(o)-b}catch{return BigInt(0)-b}throw new TypeError("Invalid subtrahend ".concat(b))}var T=(f=h.replacePrefix)===null||f===void 0?void 0:f[0];return T&&typeof o=="string"&&o.startsWith(T)?h.replacePrefix[1]+o.substring(T.length):o},s}(),oC=function(){function s(){}return s.prototype._read=function(o,f){var h=this._ctx;return h.error?h.table._trans(null,Lt.bind(null,h.error)):h.table._trans("readonly",o).then(f)},s.prototype._write=function(o){var f=this._ctx;return f.error?f.table._trans(null,Lt.bind(null,f.error)):f.table._trans("readwrite",o,"locked")},s.prototype._addAlgorithm=function(o){var f=this._ctx;f.algorithm=ts(f.algorithm,o)},s.prototype._iterate=function(o,f){return Ol(this._ctx,o,f,this._ctx.table.core)},s.prototype.clone=function(o){var f=Object.create(this.constructor.prototype),h=Object.create(this._ctx);return o&&l(h,o),f._ctx=h,f},s.prototype.raw=function(){return this._ctx.valueMapper=null,this},s.prototype.each=function(o){var f=this._ctx;return this._read(function(h){return Ol(f,o,h,f.table.core)})},s.prototype.count=function(o){var f=this;return this._read(function(h){var m=f._ctx,b=m.table.core;if(Zs(m,!0))return b.count({trans:h,query:{index:Nl(m,b.schema),range:m.range}}).then(function(A){return Math.min(A,m.limit)});var T=0;return Ol(m,function(){return++T,!1},h,b).then(function(){return T})}).then(o)},s.prototype.sortBy=function(o,f){var h=o.split(".").reverse(),m=h[0],b=h.length-1;function T(O,$){return $?T(O[h[$]],$-1):O[m]}var A=this._ctx.dir==="next"?1:-1;function S(O,$){var k=T(O,b),W=T($,b);return We(k,W)*A}return this.toArray(function(O){return O.sort(S)}).then(f)},s.prototype.toArray=function(o){var f=this;return this._read(function(h){var m=f._ctx;if(m.dir==="next"&&Zs(m,!0)&&m.limit>0){var b=m.valueMapper,T=Nl(m,m.table.core.schema);return m.table.core.query({trans:h,limit:m.limit,values:!0,query:{index:T,range:m.range}}).then(function(S){var O=S.result;return b?O.map(b):O})}else{var A=[];return Ol(m,function(S){return A.push(S)},h,m.table.core).then(function(){return A})}},o)},s.prototype.offset=function(o){var f=this._ctx;return o<=0?this:(f.offset+=o,Zs(f)?qh(f,function(){var h=o;return function(m,b){return h===0?!0:h===1?(--h,!1):(b(function(){m.advance(h),h=0}),!1)}}):qh(f,function(){var h=o;return function(){return--h<0}}),this)},s.prototype.limit=function(o){return this._ctx.limit=Math.min(this._ctx.limit,o),qh(this._ctx,function(){var f=o;return function(h,m,b){return--f<=0&&m(b),f>=0}},!0),this},s.prototype.until=function(o,f){return Vh(this._ctx,function(h,m,b){return o(h.value)?(m(b),f):!0}),this},s.prototype.first=function(o){return this.limit(1).toArray(function(f){return f[0]}).then(o)},s.prototype.last=function(o){return this.reverse().first(o)},s.prototype.filter=function(o){return Vh(this._ctx,function(f){return o(f.value)}),sC(this._ctx,o),this},s.prototype.and=function(o){return this.filter(o)},s.prototype.or=function(o){return new this.db.WhereClause(this._ctx.table,o,this)},s.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},s.prototype.desc=function(){return this.reverse()},s.prototype.eachKey=function(o){var f=this._ctx;return f.keysOnly=!f.isMatch,this.each(function(h,m){o(m.key,m)})},s.prototype.eachUniqueKey=function(o){return this._ctx.unique="unique",this.eachKey(o)},s.prototype.eachPrimaryKey=function(o){var f=this._ctx;return f.keysOnly=!f.isMatch,this.each(function(h,m){o(m.primaryKey,m)})},s.prototype.keys=function(o){var f=this._ctx;f.keysOnly=!f.isMatch;var h=[];return this.each(function(m,b){h.push(b.key)}).then(function(){return h}).then(o)},s.prototype.primaryKeys=function(o){var f=this._ctx;if(f.dir==="next"&&Zs(f,!0)&&f.limit>0)return this._read(function(m){var b=Nl(f,f.table.core.schema);return f.table.core.query({trans:m,values:!1,limit:f.limit,query:{index:b,range:f.range}})}).then(function(m){var b=m.result;return b}).then(o);f.keysOnly=!f.isMatch;var h=[];return this.each(function(m,b){h.push(b.primaryKey)}).then(function(){return h}).then(o)},s.prototype.uniqueKeys=function(o){return this._ctx.unique="unique",this.keys(o)},s.prototype.firstKey=function(o){return this.limit(1).keys(function(f){return f[0]}).then(o)},s.prototype.lastKey=function(o){return this.reverse().firstKey(o)},s.prototype.distinct=function(){var o=this._ctx,f=o.index&&o.table.schema.idxByName[o.index];if(!f||!f.multi)return this;var h={};return Vh(this._ctx,function(m){var b=m.primaryKey.toString(),T=g(h,b);return h[b]=!0,!T}),this},s.prototype.modify=function(o){var f=this,h=this._ctx;return this._write(function(m){var b;if(typeof o=="function")b=o;else{var T=a(o),A=T.length;b=function(Q){for(var Z=!1,re=0;re<A;++re){var G=T[re],ue=o[G],he=X(Q,G);ue instanceof Au?(ce(Q,G,ue.execute(he)),Z=!0):he!==ue&&(ce(Q,G,ue),Z=!0)}return Z}}var S=h.table.core,O=S.schema.primaryKey,$=O.outbound,k=O.extractKey,W=200,ie=f.db._options.modifyChunkSize;ie&&(typeof ie=="object"?W=ie[S.name]||ie["*"]||200:W=ie);var M=[],z=0,j=[],J=function(Q,Z){var re=Z.failures,G=Z.numFailures;z+=Q-G;for(var ue=0,he=a(re);ue<he.length;ue++){var le=he[ue];M.push(re[le])}};return f.clone().primaryKeys().then(function(Q){var Z=Zs(h)&&h.limit===1/0&&(typeof o!="function"||o===zh)&&{index:h.index,range:h.range},re=function(G){var ue=Math.min(W,Q.length-G);return S.getMany({trans:m,keys:Q.slice(G,G+ue),cache:"immutable"}).then(function(he){for(var le=[],Ae=[],Ve=$?[]:null,pe=[],Be=0;Be<ue;++Be){var Ce=he[Be],Xe={value:F(Ce),primKey:Q[G+Be]};b.call(Xe,Xe.value,Xe)!==!1&&(Xe.value==null?pe.push(Q[G+Be]):!$&&We(k(Ce),k(Xe.value))!==0?(pe.push(Q[G+Be]),le.push(Xe.value)):(Ae.push(Xe.value),$&&Ve.push(Q[G+Be])))}return Promise.resolve(le.length>0&&S.mutate({trans:m,type:"add",values:le}).then(function(ye){for(var It in ye.failures)pe.splice(parseInt(It),1);J(le.length,ye)})).then(function(){return(Ae.length>0||Z&&typeof o=="object")&&S.mutate({trans:m,type:"put",keys:Ve,values:Ae,criteria:Z,changeSpec:typeof o!="function"&&o,isAdditionalChunk:G>0}).then(function(ye){return J(Ae.length,ye)})}).then(function(){return(pe.length>0||Z&&o===zh)&&S.mutate({trans:m,type:"delete",keys:pe,criteria:Z,isAdditionalChunk:G>0}).then(function(ye){return J(pe.length,ye)})}).then(function(){return Q.length>G+ue&&re(G+W)})})};return re(0).then(function(){if(M.length>0)throw new zr("Error modifying one or more objects",M,z,j);return Q.length})})})},s.prototype.delete=function(){var o=this._ctx,f=o.range;return Zs(o)&&(o.isPrimKey||f.type===3)?this._write(function(h){var m=o.table.core.schema.primaryKey,b=f;return o.table.core.count({trans:h,query:{index:m,range:b}}).then(function(T){return o.table.core.mutate({trans:h,type:"deleteRange",range:b}).then(function(A){var S=A.failures;A.lastResult,A.results;var O=A.numFailures;if(O)throw new zr("Could not delete some values",Object.keys(S).map(function($){return S[$]}),T-O);return T-O})})}):this.modify(zh)},s}(),zh=function(s,o){return o.value=null};function uC(s){return yu(oC.prototype,function(f,h){this.db=s;var m=h_,b=null;if(h)try{m=h()}catch(O){b=O}var T=f._ctx,A=T.table,S=A.hook.reading.fire;this._ctx={table:A,index:T.index,isPrimKey:!T.index||A.schema.primKey.keyPath&&T.index===A.schema.primKey.name,range:m,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:b,or:T.or,valueMapper:S!==Qa?S:null}})}function cC(s,o){return s<o?-1:s===o?0:1}function lC(s,o){return s>o?-1:s===o?0:1}function cn(s,o,f){var h=s instanceof T_?new s.Collection(s):s;return h._ctx.error=f?new f(o):new TypeError(o),h}function Js(s){return new s.Collection(s,function(){return v_("")}).limit(0)}function fC(s){return s==="next"?function(o){return o.toUpperCase()}:function(o){return o.toLowerCase()}}function dC(s){return s==="next"?function(o){return o.toLowerCase()}:function(o){return o.toUpperCase()}}function hC(s,o,f,h,m,b){for(var T=Math.min(s.length,h.length),A=-1,S=0;S<T;++S){var O=o[S];if(O!==h[S])return m(s[S],f[S])<0?s.substr(0,S)+f[S]+f.substr(S+1):m(s[S],h[S])<0?s.substr(0,S)+h[S]+f.substr(S+1):A>=0?s.substr(0,A)+o[A]+f.substr(A+1):null;m(s[S],O)<0&&(A=S)}return T<h.length&&b==="next"?s+f.substr(s.length):T<s.length&&b==="prev"?s.substr(0,f.length):A<0?null:s.substr(0,A)+h[A]+f.substr(A+1)}function Dl(s,o,f,h){var m,b,T,A,S,O,$,k=f.length;if(!f.every(function(z){return typeof z=="string"}))return cn(s,d_);function W(z){m=fC(z),b=dC(z),T=z==="next"?cC:lC;var j=f.map(function(J){return{lower:b(J),upper:m(J)}}).sort(function(J,Q){return T(J.lower,Q.lower)});A=j.map(function(J){return J.upper}),S=j.map(function(J){return J.lower}),O=z,$=z==="next"?"":h}W("next");var ie=new s.Collection(s,function(){return ma(A[0],S[k-1]+h)});ie._ondirectionchange=function(z){W(z)};var M=0;return ie._addAlgorithm(function(z,j,J){var Q=z.key;if(typeof Q!="string")return!1;var Z=b(Q);if(o(Z,S,M))return!0;for(var re=null,G=M;G<k;++G){var ue=hC(Q,Z,A[G],S[G],T,O);ue===null&&re===null?M=G+1:(re===null||T(re,ue)>0)&&(re=ue)}return j(re!==null?function(){z.continue(re+$)}:J),!1}),ie}function ma(s,o,f,h){return{type:2,lower:s,upper:o,lowerOpen:f,upperOpen:h}}function v_(s){return{type:1,lower:s,upper:s}}var T_=function(){function s(){}return Object.defineProperty(s.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),s.prototype.between=function(o,f,h,m){h=h!==!1,m=m===!0;try{return this._cmp(o,f)>0||this._cmp(o,f)===0&&(h||m)&&!(h&&m)?Js(this):new this.Collection(this,function(){return ma(o,f,!h,!m)})}catch{return cn(this,Li)}},s.prototype.equals=function(o){return o==null?cn(this,Li):new this.Collection(this,function(){return v_(o)})},s.prototype.above=function(o){return o==null?cn(this,Li):new this.Collection(this,function(){return ma(o,void 0,!0)})},s.prototype.aboveOrEqual=function(o){return o==null?cn(this,Li):new this.Collection(this,function(){return ma(o,void 0,!1)})},s.prototype.below=function(o){return o==null?cn(this,Li):new this.Collection(this,function(){return ma(void 0,o,!1,!0)})},s.prototype.belowOrEqual=function(o){return o==null?cn(this,Li):new this.Collection(this,function(){return ma(void 0,o)})},s.prototype.startsWith=function(o){return typeof o!="string"?cn(this,d_):this.between(o,o+es,!0,!0)},s.prototype.startsWithIgnoreCase=function(o){return o===""?this.startsWith(o):Dl(this,function(f,h){return f.indexOf(h[0])===0},[o],es)},s.prototype.equalsIgnoreCase=function(o){return Dl(this,function(f,h){return f===h[0]},[o],"")},s.prototype.anyOfIgnoreCase=function(){var o=ut.apply(ot,arguments);return o.length===0?Js(this):Dl(this,function(f,h){return h.indexOf(f)!==-1},o,"")},s.prototype.startsWithAnyOfIgnoreCase=function(){var o=ut.apply(ot,arguments);return o.length===0?Js(this):Dl(this,function(f,h){return h.some(function(m){return f.indexOf(m)===0})},o,es)},s.prototype.anyOf=function(){var o=this,f=ut.apply(ot,arguments),h=this._cmp;try{f.sort(h)}catch{return cn(this,Li)}if(f.length===0)return Js(this);var m=new this.Collection(this,function(){return ma(f[0],f[f.length-1])});m._ondirectionchange=function(T){h=T==="next"?o._ascending:o._descending,f.sort(h)};var b=0;return m._addAlgorithm(function(T,A,S){for(var O=T.key;h(O,f[b])>0;)if(++b,b===f.length)return A(S),!1;return h(O,f[b])===0?!0:(A(function(){T.continue(f[b])}),!1)}),m},s.prototype.notEqual=function(o){return this.inAnyRange([[$h,o],[o,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},s.prototype.noneOf=function(){var o=ut.apply(ot,arguments);if(o.length===0)return new this.Collection(this);try{o.sort(this._ascending)}catch{return cn(this,Li)}var f=o.reduce(function(h,m){return h?h.concat([[h[h.length-1][1],m]]):[[$h,m]]},null);return f.push([o[o.length-1],this.db._maxKey]),this.inAnyRange(f,{includeLowers:!1,includeUppers:!1})},s.prototype.inAnyRange=function(o,f){var h=this,m=this._cmp,b=this._ascending,T=this._descending,A=this._min,S=this._max;if(o.length===0)return Js(this);if(!o.every(function(G){return G[0]!==void 0&&G[1]!==void 0&&b(G[0],G[1])<=0}))return cn(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",me.InvalidArgument);var O=!f||f.includeLowers!==!1,$=f&&f.includeUppers===!0;function k(G,ue){for(var he=0,le=G.length;he<le;++he){var Ae=G[he];if(m(ue[0],Ae[1])<0&&m(ue[1],Ae[0])>0){Ae[0]=A(Ae[0],ue[0]),Ae[1]=S(Ae[1],ue[1]);break}}return he===le&&G.push(ue),G}var W=b;function ie(G,ue){return W(G[0],ue[0])}var M;try{M=o.reduce(k,[]),M.sort(ie)}catch{return cn(this,Li)}var z=0,j=$?function(G){return b(G,M[z][1])>0}:function(G){return b(G,M[z][1])>=0},J=O?function(G){return T(G,M[z][0])>0}:function(G){return T(G,M[z][0])>=0};function Q(G){return!j(G)&&!J(G)}var Z=j,re=new this.Collection(this,function(){return ma(M[0][0],M[M.length-1][1],!O,!$)});return re._ondirectionchange=function(G){G==="next"?(Z=j,W=b):(Z=J,W=T),M.sort(ie)},re._addAlgorithm(function(G,ue,he){for(var le=G.key;Z(le);)if(++z,z===M.length)return ue(he),!1;return Q(le)?!0:(h._cmp(le,M[z][1])===0||h._cmp(le,M[z][0])===0||ue(function(){W===b?G.continue(M[z][0]):G.continue(M[z][1])}),!1)}),re},s.prototype.startsWithAnyOf=function(){var o=ut.apply(ot,arguments);return o.every(function(f){return typeof f=="string"})?o.length===0?Js(this):this.inAnyRange(o.map(function(f){return[f,f+es]})):cn(this,"startsWithAnyOf() only works with strings")},s}();function pC(s){return yu(T_.prototype,function(f,h,m){if(this.db=s,this._ctx={table:f,index:h===":id"?null:h,or:m},this._cmp=this._ascending=We,this._descending=function(b,T){return We(T,b)},this._max=function(b,T){return We(b,T)>0?b:T},this._min=function(b,T){return We(b,T)<0?b:T},this._IDBKeyRange=s._deps.IDBKeyRange,!this._IDBKeyRange)throw new me.MissingAPI})}function hi(s){return At(function(o){return wu(o),s(o.target.error),!1})}function wu(s){s.stopPropagation&&s.stopPropagation(),s.preventDefault&&s.preventDefault()}var Su="storagemutated",Yh="x-storagemutated-1",ga=xu(null,Su),mC=function(){function s(){}return s.prototype._lock=function(){return R(!be.global),++this._reculock,this._reculock===1&&!be.global&&(be.lockOwnerFor=this),this},s.prototype._unlock=function(){if(R(!be.global),--this._reculock===0)for(be.global||(be.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var o=this._blockedFuncs.shift();try{Ja(o[1],o[0])}catch{}}return this},s.prototype._locked=function(){return this._reculock&&be.lockOwnerFor!==this},s.prototype.create=function(o){var f=this;if(!this.mode)return this;var h=this.db.idbdb,m=this.db._state.dbOpenError;if(R(!this.idbtrans),!o&&!h)switch(m&&m.name){case"DatabaseClosedError":throw new me.DatabaseClosed(m);case"MissingAPIError":throw new me.MissingAPI(m.message,m);default:throw new me.OpenFailed(m)}if(!this.active)throw new me.TransactionInactive;return R(this._completion._state===null),o=this.idbtrans=o||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):h.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})),o.onerror=At(function(b){wu(b),f._reject(o.error)}),o.onabort=At(function(b){wu(b),f.active&&f._reject(new me.Abort(o.error)),f.active=!1,f.on("abort").fire(b)}),o.oncomplete=At(function(){f.active=!1,f._resolve(),"mutatedParts"in o&&ga.storagemutated.fire(o.mutatedParts)}),this},s.prototype._promise=function(o,f,h){var m=this;if(o==="readwrite"&&this.mode!=="readwrite")return Lt(new me.ReadOnly("Transaction is readonly"));if(!this.active)return Lt(new me.TransactionInactive);if(this._locked())return new de(function(T,A){m._blockedFuncs.push([function(){m._promise(o,f,h).then(T,A)},be])});if(h)return da(function(){var T=new de(function(A,S){m._lock();var O=f(A,S,m);O&&O.then&&O.then(A,S)});return T.finally(function(){return m._unlock()}),T._lib=!0,T});var b=new de(function(T,A){var S=f(T,A,m);S&&S.then&&S.then(T,A)});return b._lib=!0,b},s.prototype._root=function(){return this.parent?this.parent._root():this},s.prototype.waitFor=function(o){var f=this._root(),h=de.resolve(o);if(f._waitingFor)f._waitingFor=f._waitingFor.then(function(){return h});else{f._waitingFor=h,f._waitingQueue=[];var m=f.idbtrans.objectStore(f.storeNames[0]);(function T(){for(++f._spinCount;f._waitingQueue.length;)f._waitingQueue.shift()();f._waitingFor&&(m.get(-1/0).onsuccess=T)})()}var b=f._waitingFor;return new de(function(T,A){h.then(function(S){return f._waitingQueue.push(At(T.bind(null,S)))},function(S){return f._waitingQueue.push(At(A.bind(null,S)))}).finally(function(){f._waitingFor===b&&(f._waitingFor=null)})})},s.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new me.Abort))},s.prototype.table=function(o){var f=this._memoizedTables||(this._memoizedTables={});if(g(f,o))return f[o];var h=this.schema[o];if(!h)throw new me.NotFound("Table "+o+" not part of transaction");var m=new this.db.Table(o,h,this);return m.core=this.db.core.table(o),f[o]=m,m},s}();function gC(s){return yu(mC.prototype,function(f,h,m,b,T){var A=this;this.db=s,this.mode=f,this.storeNames=h,this.schema=m,this.chromeTransactionDurability=b,this.idbtrans=null,this.on=xu(this,"complete","error","abort"),this.parent=T||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 de(function(S,O){A._resolve=S,A._reject=O}),this._completion.then(function(){A.active=!1,A.on.complete.fire()},function(S){var O=A.active;return A.active=!1,A.on.error.fire(S),A.parent?A.parent._reject(S):O&&A.idbtrans&&A.idbtrans.abort(),Lt(S)})})}function Kh(s,o,f,h,m,b,T){return{name:s,keyPath:o,unique:f,multi:h,auto:m,compound:b,src:(f&&!T?"&":"")+(h?"*":"")+(m?"++":"")+x_(o)}}function x_(s){return typeof s=="string"?s:s?"["+[].join.call(s,"+")+"]":""}function jh(s,o,f){return{name:s,primKey:o,indexes:f,mappedClass:null,idxByName:V(f,function(h){return[h.name,h]})}}function _C(s){return s.length===1?s[0]:s}var Cu=function(s){try{return s.only([[]]),Cu=function(){return[[]]},[[]]}catch{return Cu=function(){return es},es}};function Wh(s){return s==null?function(){}:typeof s=="string"?bC(s):function(o){return X(o,s)}}function bC(s){var o=s.split(".");return o.length===1?function(f){return f[s]}:function(f){return X(f,s)}}function y_(s){return[].slice.call(s)}var EC=0;function Iu(s){return s==null?":id":typeof s=="string"?s:"[".concat(s.join("+"),"]")}function vC(s,o,f){function h(k,W){var ie=y_(k.objectStoreNames);return{schema:{name:k.name,tables:ie.map(function(M){return W.objectStore(M)}).map(function(M){var z=M.keyPath,j=M.autoIncrement,J=u(z),Q=z==null,Z={},re={name:M.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:Q,compound:J,keyPath:z,autoIncrement:j,unique:!0,extractKey:Wh(z)},indexes:y_(M.indexNames).map(function(G){return M.index(G)}).map(function(G){var ue=G.name,he=G.unique,le=G.multiEntry,Ae=G.keyPath,Ve=u(Ae),pe={name:ue,compound:Ve,keyPath:Ae,unique:he,multiEntry:le,extractKey:Wh(Ae)};return Z[Iu(Ae)]=pe,pe}),getIndexByKeyPath:function(G){return Z[Iu(G)]}};return Z[":id"]=re.primaryKey,z!=null&&(Z[Iu(z)]=re.primaryKey),re})},hasGetAll:ie.length>0&&"getAll"in W.objectStore(ie[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}function m(k){if(k.type===3)return null;if(k.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var W=k.lower,ie=k.upper,M=k.lowerOpen,z=k.upperOpen,j=W===void 0?ie===void 0?null:o.upperBound(ie,!!z):ie===void 0?o.lowerBound(W,!!M):o.bound(W,ie,!!M,!!z);return j}function b(k){var W=k.name;function ie(j){var J=j.trans,Q=j.type,Z=j.keys,re=j.values,G=j.range;return new Promise(function(ue,he){ue=At(ue);var le=J.objectStore(W),Ae=le.keyPath==null,Ve=Q==="put"||Q==="add";if(!Ve&&Q!=="delete"&&Q!=="deleteRange")throw new Error("Invalid operation type: "+Q);var pe=(Z||re||{length:1}).length;if(Z&&re&&Z.length!==re.length)throw new Error("Given keys array must have same length as given values array.");if(pe===0)return ue({numFailures:0,failures:{},results:[],lastResult:void 0});var Be,Ce=[],Xe=[],ye=0,It=function(mi){++ye,wu(mi)};if(Q==="deleteRange"){if(G.type===4)return ue({numFailures:ye,failures:Xe,results:[],lastResult:void 0});G.type===3?Ce.push(Be=le.clear()):Ce.push(Be=le.delete(m(G)))}else{var Tr=Ve?Ae?[re,Z]:[re,null]:[Z,null],pi=Tr[0],Yr=Tr[1];if(Ve)for(var In=0;In<pe;++In)Ce.push(Be=Yr&&Yr[In]!==void 0?le[Q](pi[In],Yr[In]):le[Q](pi[In])),Be.onerror=It;else for(var In=0;In<pe;++In)Ce.push(Be=le[Q](pi[In])),Be.onerror=It}var Ea=function(mi){var Du=mi.target.result;Ce.forEach(function(jn,ql){return jn.error!=null&&(Xe[ql]=jn.error)}),ue({numFailures:ye,failures:Xe,results:Q==="delete"?Z:Ce.map(function(jn){return jn.result}),lastResult:Du})};Be.onerror=function(mi){It(mi),Ea(mi)},Be.onsuccess=Ea})}function M(j){var J=j.trans,Q=j.values,Z=j.query,re=j.reverse,G=j.unique;return new Promise(function(ue,he){ue=At(ue);var le=Z.index,Ae=Z.range,Ve=J.objectStore(W),pe=le.isPrimaryKey?Ve:Ve.index(le.name),Be=re?G?"prevunique":"prev":G?"nextunique":"next",Ce=Q||!("openKeyCursor"in pe)?pe.openCursor(m(Ae),Be):pe.openKeyCursor(m(Ae),Be);Ce.onerror=hi(he),Ce.onsuccess=At(function(Xe){var ye=Ce.result;if(!ye){ue(null);return}ye.___id=++EC,ye.done=!1;var It=ye.continue.bind(ye),Tr=ye.continuePrimaryKey;Tr&&(Tr=Tr.bind(ye));var pi=ye.advance.bind(ye),Yr=function(){throw new Error("Cursor not started")},In=function(){throw new Error("Cursor not stopped")};ye.trans=J,ye.stop=ye.continue=ye.continuePrimaryKey=ye.advance=Yr,ye.fail=At(he),ye.next=function(){var Ea=this,mi=1;return this.start(function(){return mi--?Ea.continue():Ea.stop()}).then(function(){return Ea})},ye.start=function(Ea){var mi=new Promise(function(jn,ql){jn=At(jn),Ce.onerror=hi(ql),ye.fail=ql,ye.stop=function(oI){ye.stop=ye.continue=ye.continuePrimaryKey=ye.advance=In,jn(oI)}}),Du=function(){if(Ce.result)try{Ea()}catch(jn){ye.fail(jn)}else ye.done=!0,ye.start=function(){throw new Error("Cursor behind last entry")},ye.stop()};return Ce.onsuccess=At(function(jn){Ce.onsuccess=Du,Du()}),ye.continue=It,ye.continuePrimaryKey=Tr,ye.advance=pi,Du(),mi},ue(ye)},he)})}function z(j){return function(J){return new Promise(function(Q,Z){Q=At(Q);var re=J.trans,G=J.values,ue=J.limit,he=J.query,le=ue===1/0?void 0:ue,Ae=he.index,Ve=he.range,pe=re.objectStore(W),Be=Ae.isPrimaryKey?pe:pe.index(Ae.name),Ce=m(Ve);if(ue===0)return Q({result:[]});if(j){var Xe=G?Be.getAll(Ce,le):Be.getAllKeys(Ce,le);Xe.onsuccess=function(pi){return Q({result:pi.target.result})},Xe.onerror=hi(Z)}else{var ye=0,It=G||!("openKeyCursor"in Be)?Be.openCursor(Ce):Be.openKeyCursor(Ce),Tr=[];It.onsuccess=function(pi){var Yr=It.result;if(!Yr)return Q({result:Tr});if(Tr.push(G?Yr.value:Yr.primaryKey),++ye===ue)return Q({result:Tr});Yr.continue()},It.onerror=hi(Z)}})}}return{name:W,schema:k,mutate:ie,getMany:function(j){var J=j.trans,Q=j.keys;return new Promise(function(Z,re){Z=At(Z);for(var G=J.objectStore(W),ue=Q.length,he=new Array(ue),le=0,Ae=0,Ve,pe=function(ye){var It=ye.target;(he[It._pos]=It.result)!=null,++Ae===le&&Z(he)},Be=hi(re),Ce=0;Ce<ue;++Ce){var Xe=Q[Ce];Xe!=null&&(Ve=G.get(Q[Ce]),Ve._pos=Ce,Ve.onsuccess=pe,Ve.onerror=Be,++le)}le===0&&Z(he)})},get:function(j){var J=j.trans,Q=j.key;return new Promise(function(Z,re){Z=At(Z);var G=J.objectStore(W),ue=G.get(Q);ue.onsuccess=function(he){return Z(he.target.result)},ue.onerror=hi(re)})},query:z(S),openCursor:M,count:function(j){var J=j.query,Q=j.trans,Z=J.index,re=J.range;return new Promise(function(G,ue){var he=Q.objectStore(W),le=Z.isPrimaryKey?he:he.index(Z.name),Ae=m(re),Ve=Ae?le.count(Ae):le.count();Ve.onsuccess=At(function(pe){return G(pe.target.result)}),Ve.onerror=hi(ue)})}}}var T=h(s,f),A=T.schema,S=T.hasGetAll,O=A.tables.map(function(k){return b(k)}),$={};return O.forEach(function(k){return $[k.name]=k}),{stack:"dbcore",transaction:s.transaction.bind(s),table:function(k){var W=$[k];if(!W)throw new Error("Table '".concat(k,"' not found"));return $[k]},MIN_KEY:-1/0,MAX_KEY:Cu(o),schema:A}}function TC(s,o){return o.reduce(function(f,h){var m=h.create;return r(r({},f),m(f))},s)}function xC(s,o,f,h){var m=f.IDBKeyRange;f.indexedDB;var b=TC(vC(o,m,h),s.dbcore);return{dbcore:b}}function kl(s,o){var f=o.db,h=xC(s._middlewares,f,s._deps,o);s.core=h.dbcore,s.tables.forEach(function(m){var b=m.name;s.core.schema.tables.some(function(T){return T.name===b})&&(m.core=s.core.table(b),s[b]instanceof s.Table&&(s[b].core=m.core))})}function Rl(s,o,f,h){f.forEach(function(m){var b=h[m];o.forEach(function(T){var A=P(T,m);(!A||"value"in A&&A.value===void 0)&&(T===s.Transaction.prototype||T instanceof s.Transaction?y(T,m,{get:function(){return this.table(m)},set:function(S){_(this,m,{value:S,writable:!0,configurable:!0,enumerable:!0})}}):T[m]=new s.Table(m,b))})})}function Gh(s,o){o.forEach(function(f){for(var h in f)f[h]instanceof s.Table&&delete f[h]})}function yC(s,o){return s._cfg.version-o._cfg.version}function AC(s,o,f,h){var m=s._dbSchema;f.objectStoreNames.contains("$meta")&&!m.$meta&&(m.$meta=jh("$meta",w_("")[0],[]),s._storeNames.push("$meta"));var b=s._createTransaction("readwrite",s._storeNames,m);b.create(f),b._completion.catch(h);var T=b._reject.bind(b),A=be.transless||be;da(function(){if(be.trans=b,be.transless=A,o===0)a(m).forEach(function(S){Xh(f,S,m[S].primKey,m[S].indexes)}),kl(s,f),de.follow(function(){return s.on.populate.fire(b)}).catch(T);else return kl(s,f),SC(s,b,o).then(function(S){return CC(s,S,b,f)}).catch(T)})}function wC(s,o){A_(s._dbSchema,o),o.db.version%10===0&&!o.objectStoreNames.contains("$meta")&&o.db.createObjectStore("$meta").add(Math.ceil(o.db.version/10-1),"version");var f=Pl(s,s.idbdb,o);Ml(s,s._dbSchema,o);for(var h=Qh(f,s._dbSchema),m=function(O){if(O.change.length||O.recreate)return console.warn("Unable to patch indexes of table ".concat(O.name," because it has changes on the type of index or primary key.")),{value:void 0};var $=o.objectStore(O.name);O.add.forEach(function(k){on&&console.debug("Dexie upgrade patch: Creating missing index ".concat(O.name,".").concat(k.src)),Ll($,k)})},b=0,T=h.change;b<T.length;b++){var A=T[b],S=m(A);if(typeof S=="object")return S.value}}function SC(s,o,f){return o.storeNames.includes("$meta")?o.table("$meta").get("version").then(function(h){return h??f}):de.resolve(f)}function CC(s,o,f,h){var m=[],b=s._versions,T=s._dbSchema=Pl(s,s.idbdb,h),A=b.filter(function(O){return O._cfg.version>=o});if(A.length===0)return de.resolve();A.forEach(function(O){m.push(function(){var $=T,k=O._cfg.dbschema;Ml(s,$,h),Ml(s,k,h),T=s._dbSchema=k;var W=Qh($,k);W.add.forEach(function(Q){Xh(h,Q[0],Q[1].primKey,Q[1].indexes)}),W.change.forEach(function(Q){if(Q.recreate)throw new me.Upgrade("Not yet support for changing primary key");var Z=h.objectStore(Q.name);Q.add.forEach(function(re){return Ll(Z,re)}),Q.change.forEach(function(re){Z.deleteIndex(re.name),Ll(Z,re)}),Q.del.forEach(function(re){return Z.deleteIndex(re)})});var ie=O._cfg.contentUpgrade;if(ie&&O._cfg.version>o){kl(s,h),f._memoizedTables={};var M=Re(k);W.del.forEach(function(Q){M[Q]=$[Q]}),Gh(s,[s.Transaction.prototype]),Rl(s,[s.Transaction.prototype],a(M),M),f.schema=M;var z=_t(ie);z&&Qs();var j,J=de.follow(function(){if(j=ie(f),j&&z){var Q=ha.bind(null,null);j.then(Q,Q)}});return j&&typeof j.then=="function"?de.resolve(j):J.then(function(){return j})}}),m.push(function($){var k=O._cfg.dbschema;IC(k,$),Gh(s,[s.Transaction.prototype]),Rl(s,[s.Transaction.prototype],s._storeNames,s._dbSchema),f.schema=s._dbSchema}),m.push(function($){s.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(s.idbdb.version/10)===O._cfg.version?(s.idbdb.deleteObjectStore("$meta"),delete s._dbSchema.$meta,s._storeNames=s._storeNames.filter(function(k){return k!=="$meta"})):$.objectStore("$meta").put(O._cfg.version,"version"))})});function S(){return m.length?de.resolve(m.shift()(f.idbtrans)).then(S):de.resolve()}return S().then(function(){A_(T,h)})}function Qh(s,o){var f={del:[],add:[],change:[]},h;for(h in s)o[h]||f.del.push(h);for(h in o){var m=s[h],b=o[h];if(!m)f.add.push([h,b]);else{var T={name:h,def:b,recreate:!1,del:[],add:[],change:[]};if(""+(m.primKey.keyPath||"")!=""+(b.primKey.keyPath||"")||m.primKey.auto!==b.primKey.auto)T.recreate=!0,f.change.push(T);else{var A=m.idxByName,S=b.idxByName,O=void 0;for(O in A)S[O]||T.del.push(O);for(O in S){var $=A[O],k=S[O];$?$.src!==k.src&&T.change.push(k):T.add.push(k)}(T.del.length>0||T.add.length>0||T.change.length>0)&&f.change.push(T)}}}return f}function Xh(s,o,f,h){var m=s.db.createObjectStore(o,f.keyPath?{keyPath:f.keyPath,autoIncrement:f.auto}:{autoIncrement:f.auto});return h.forEach(function(b){return Ll(m,b)}),m}function A_(s,o){a(s).forEach(function(f){o.db.objectStoreNames.contains(f)||(on&&console.debug("Dexie: Creating missing table",f),Xh(o,f,s[f].primKey,s[f].indexes))})}function IC(s,o){[].slice.call(o.db.objectStoreNames).forEach(function(f){return s[f]==null&&o.db.deleteObjectStore(f)})}function Ll(s,o){s.createIndex(o.name,o.keyPath,{unique:o.unique,multiEntry:o.multi})}function Pl(s,o,f){var h={},m=L(o.objectStoreNames,0);return m.forEach(function(b){for(var T=f.objectStore(b),A=T.keyPath,S=Kh(x_(A),A||"",!0,!1,!!T.autoIncrement,A&&typeof A!="string",!0),O=[],$=0;$<T.indexNames.length;++$){var k=T.index(T.indexNames[$]);A=k.keyPath;var W=Kh(k.name,A,!!k.unique,!!k.multiEntry,!1,A&&typeof A!="string",!1);O.push(W)}h[b]=jh(b,S,O)}),h}function NC(s,o,f){s.verno=o.version/10;var h=s._dbSchema=Pl(s,o,f);s._storeNames=L(o.objectStoreNames,0),Rl(s,[s._allTables],a(h),h)}function OC(s,o){var f=Pl(s,s.idbdb,o),h=Qh(f,s._dbSchema);return!(h.add.length||h.change.some(function(m){return m.add.length||m.change.length}))}function Ml(s,o,f){for(var h=f.db.objectStoreNames,m=0;m<h.length;++m){var b=h[m],T=f.objectStore(b);s._hasGetAll="getAll"in T;for(var A=0;A<T.indexNames.length;++A){var S=T.indexNames[A],O=T.index(S).keyPath,$=typeof O=="string"?O:"["+L(O).join("+")+"]";if(o[b]){var k=o[b].idxByName[$];k&&(k.name=S,delete o[b].idxByName[$],o[b].idxByName[S]=k)}}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&i.WorkerGlobalScope&&i instanceof i.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(s._hasGetAll=!1)}function w_(s){return s.split(",").map(function(o,f){o=o.trim();var h=o.replace(/([&*]|\+\+)/g,""),m=/^\[/.test(h)?h.match(/^\[(.*)\]$/)[1].split("+"):h;return Kh(h,m||null,/\&/.test(o),/\*/.test(o),/\+\+/.test(o),u(m),f===0)})}var DC=function(){function s(){}return s.prototype._parseStoresSpec=function(o,f){a(o).forEach(function(h){if(o[h]!==null){var m=w_(o[h]),b=m.shift();if(b.unique=!0,b.multi)throw new me.Schema("Primary key cannot be multi-valued");m.forEach(function(T){if(T.auto)throw new me.Schema("Only primary key can be marked as autoIncrement (++)");if(!T.keyPath)throw new me.Schema("Index must have a name and cannot be an empty string")}),f[h]=jh(h,b,m)}})},s.prototype.stores=function(o){var f=this.db;this._cfg.storesSource=this._cfg.storesSource?l(this._cfg.storesSource,o):o;var h=f._versions,m={},b={};return h.forEach(function(T){l(m,T._cfg.storesSource),b=T._cfg.dbschema={},T._parseStoresSpec(m,b)}),f._dbSchema=b,Gh(f,[f._allTables,f,f.Transaction.prototype]),Rl(f,[f._allTables,f,f.Transaction.prototype,this._cfg.tables],a(b),b),f._storeNames=a(b),this},s.prototype.upgrade=function(o){return this._cfg.contentUpgrade=js(this._cfg.contentUpgrade||nt,o),this},s}();function kC(s){return yu(DC.prototype,function(f){this.db=s,this._cfg={version:f,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}function Zh(s,o){var f=s._dbNamesDB;return f||(f=s._dbNamesDB=new Pi(Cl,{addons:[],indexedDB:s,IDBKeyRange:o}),f.version(1).stores({dbnames:"name"})),f.table("dbnames")}function Jh(s){return s&&typeof s.databases=="function"}function RC(s){var o=s.indexedDB,f=s.IDBKeyRange;return Jh(o)?Promise.resolve(o.databases()).then(function(h){return h.map(function(m){return m.name}).filter(function(m){return m!==Cl})}):Zh(o,f).toCollection().primaryKeys()}function LC(s,o){var f=s.indexedDB,h=s.IDBKeyRange;!Jh(f)&&o!==Cl&&Zh(f,h).put({name:o}).catch(nt)}function PC(s,o){var f=s.indexedDB,h=s.IDBKeyRange;!Jh(f)&&o!==Cl&&Zh(f,h).delete(o).catch(nt)}function ep(s){return da(function(){return be.letThrough=!0,s()})}function MC(){var s=!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent);if(!s||!indexedDB.databases)return Promise.resolve();var o;return new Promise(function(f){var h=function(){return indexedDB.databases().finally(f)};o=setInterval(h,100),h()}).finally(function(){return clearInterval(o)})}var tp;function rp(s){return!("from"in s)}var vr=function(s,o){if(this)l(this,arguments.length?{d:1,from:s,to:arguments.length>1?o:s}:{d:0});else{var f=new vr;return s&&"d"in s&&l(f,s),f}};E(vr.prototype,(tp={add:function(s){return Ou(this,s),this},addKey:function(s){return Nu(this,s,s),this},addKeys:function(s){var o=this;return s.forEach(function(f){return Nu(o,f,f)}),this},hasKey:function(s){var o=Fl(this).next(s).value;return o&&We(o.from,s)<=0&&We(o.to,s)>=0}},tp[Fe]=function(){return Fl(this)},tp));function Nu(s,o,f){var h=We(o,f);if(!isNaN(h)){if(h>0)throw RangeError();if(rp(s))return l(s,{from:o,to:f,d:1});var m=s.l,b=s.r;if(We(f,s.from)<0)return m?Nu(m,o,f):s.l={from:o,to:f,d:1,l:null,r:null},C_(s);if(We(o,s.to)>0)return b?Nu(b,o,f):s.r={from:o,to:f,d:1,l:null,r:null},C_(s);We(o,s.from)<0&&(s.from=o,s.l=null,s.d=b?b.d+1:1),We(f,s.to)>0&&(s.to=f,s.r=null,s.d=s.l?s.l.d+1:1);var T=!s.r;m&&!s.l&&Ou(s,m),b&&T&&Ou(s,b)}}function Ou(s,o){function f(h,m){var b=m.from,T=m.to,A=m.l,S=m.r;Nu(h,b,T),A&&f(h,A),S&&f(h,S)}rp(o)||f(s,o)}function S_(s,o){var f=Fl(o),h=f.next();if(h.done)return!1;for(var m=h.value,b=Fl(s),T=b.next(m.from),A=T.value;!h.done&&!T.done;){if(We(A.from,m.to)<=0&&We(A.to,m.from)>=0)return!0;We(m.from,A.from)<0?m=(h=f.next(A.from)).value:A=(T=b.next(m.from)).value}return!1}function Fl(s){var o=rp(s)?null:{s:0,n:s};return{next:function(f){for(var h=arguments.length>0;o;)switch(o.s){case 0:if(o.s=1,h)for(;o.n.l&&We(f,o.n.from)<0;)o={up:o,n:o.n.l,s:1};else for(;o.n.l;)o={up:o,n:o.n.l,s:1};case 1:if(o.s=2,!h||We(f,o.n.to)<=0)return{value:o.n,done:!1};case 2:if(o.n.r){o.s=3,o={up:o,n:o.n.r,s:0};continue}case 3:o=o.up}return{done:!0}}}}function C_(s){var o,f,h=(((o=s.r)===null||o===void 0?void 0:o.d)||0)-(((f=s.l)===null||f===void 0?void 0:f.d)||0),m=h>1?"r":h<-1?"l":"";if(m){var b=m==="r"?"l":"r",T=r({},s),A=s[m];s.from=A.from,s.to=A.to,s[m]=A[m],T[m]=A[b],s[b]=T,T.d=I_(T)}s.d=I_(s)}function I_(s){var o=s.r,f=s.l;return(o?f?Math.max(o.d,f.d):o.d:f?f.d:0)+1}function Bl(s,o){return a(o).forEach(function(f){s[f]?Ou(s[f],o[f]):s[f]=et(o[f])}),s}function np(s,o){return s.all||o.all||Object.keys(s).some(function(f){return o[f]&&S_(o[f],s[f])})}var rs={},ip={},ap=!1;function $l(s,o){Bl(ip,s),ap||(ap=!0,setTimeout(function(){ap=!1;var f=ip;ip={},sp(f,!1)},0))}function sp(s,o){o===void 0&&(o=!1);var f=new Set;if(s.all)for(var h=0,m=Object.values(rs);h<m.length;h++){var b=m[h];N_(b,s,f,o)}else for(var T in s){var A=/^idb\:\/\/(.*)\/(.*)\//.exec(T);if(A){var S=A[1],O=A[2],b=rs["idb://".concat(S,"/").concat(O)];b&&N_(b,s,f,o)}}f.forEach(function($){return $()})}function N_(s,o,f,h){for(var m=[],b=0,T=Object.entries(s.queries.query);b<T.length;b++){for(var A=T[b],S=A[0],O=A[1],$=[],k=0,W=O;k<W.length;k++){var ie=W[k];np(o,ie.obsSet)?ie.subscribers.forEach(function(J){return f.add(J)}):h&&$.push(ie)}h&&m.push([S,$])}if(h)for(var M=0,z=m;M<z.length;M++){var j=z[M],S=j[0],$=j[1];s.queries.query[S]=$}}function FC(s){var o=s._state,f=s._deps.indexedDB;if(o.isBeingOpened||s.idbdb)return o.dbReadyPromise.then(function(){return o.dbOpenError?Lt(o.dbOpenError):s});o.isBeingOpened=!0,o.dbOpenError=null,o.openComplete=!1;var h=o.openCanceller,m=Math.round(s.verno*10),b=!1;function T(){if(o.openCanceller!==h)throw new me.DatabaseClosed("db.open() was cancelled")}var A=o.dbReadyResolve,S=null,O=!1,$=function(){return new de(function(k,W){if(T(),!f)throw new me.MissingAPI;var ie=s.name,M=o.autoSchema||!m?f.open(ie):f.open(ie,m);if(!M)throw new me.MissingAPI;M.onerror=hi(W),M.onblocked=At(s._fireOnBlocked),M.onupgradeneeded=At(function(z){if(S=M.transaction,o.autoSchema&&!s._options.allowEmptyDB){M.onerror=wu,S.abort(),M.result.close();var j=f.deleteDatabase(ie);j.onsuccess=j.onerror=At(function(){W(new me.NoSuchDatabase("Database ".concat(ie," doesnt exist")))})}else{S.onerror=hi(W);var J=z.oldVersion>Math.pow(2,62)?0:z.oldVersion;O=J<1,s.idbdb=M.result,b&&wC(s,S),AC(s,J/10,S,W)}},W),M.onsuccess=At(function(){S=null;var z=s.idbdb=M.result,j=L(z.objectStoreNames);if(j.length>0)try{var J=z.transaction(_C(j),"readonly");if(o.autoSchema)NC(s,z,J);else if(Ml(s,s._dbSchema,J),!OC(s,J)&&!b)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),z.close(),m=z.version+1,b=!0,k($());kl(s,J)}catch{}Xs.push(s),z.onversionchange=At(function(Q){o.vcFired=!0,s.on("versionchange").fire(Q)}),z.onclose=At(function(Q){s.on("close").fire(Q)}),O&&LC(s._deps,ie),k()},W)}).catch(function(k){switch(k?.name){case"UnknownError":if(o.PR1398_maxLoop>0)return o.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),$();break;case"VersionError":if(m>0)return m=0,$();break}return de.reject(k)})};return de.race([h,(typeof navigator>"u"?de.resolve():MC()).then($)]).then(function(){return T(),o.onReadyBeingFired=[],de.resolve(ep(function(){return s.on.ready.fire(s.vip)})).then(function k(){if(o.onReadyBeingFired.length>0){var W=o.onReadyBeingFired.reduce(js,nt);return o.onReadyBeingFired=[],de.resolve(ep(function(){return W(s.vip)})).then(k)}})}).finally(function(){o.openCanceller===h&&(o.onReadyBeingFired=null,o.isBeingOpened=!1)}).catch(function(k){o.dbOpenError=k;try{S&&S.abort()}catch{}return h===o.openCanceller&&s._close(),Lt(k)}).finally(function(){o.openComplete=!0,A()}).then(function(){if(O){var k={};s.tables.forEach(function(W){W.schema.indexes.forEach(function(ie){ie.name&&(k["idb://".concat(s.name,"/").concat(W.name,"/").concat(ie.name)]=new vr(-1/0,[[[]]]))}),k["idb://".concat(s.name,"/").concat(W.name,"/")]=k["idb://".concat(s.name,"/").concat(W.name,"/:dels")]=new vr(-1/0,[[[]]])}),ga(Su).fire(k),sp(k,!0)}return s})}function op(s){var o=function(T){return s.next(T)},f=function(T){return s.throw(T)},h=b(o),m=b(f);function b(T){return function(A){var S=T(A),O=S.value;return S.done?O:!O||typeof O.then!="function"?u(O)?Promise.all(O).then(h,m):h(O):O.then(h,m)}}return b(o)()}function BC(s,o,f){var h=arguments.length;if(h<2)throw new me.InvalidArgument("Too few arguments");for(var m=new Array(h-1);--h;)m[h-1]=arguments[h];f=m.pop();var b=St(m);return[s,b,f]}function O_(s,o,f,h,m){return de.resolve().then(function(){var b=be.transless||be,T=s._createTransaction(o,f,s._dbSchema,h);T.explicit=!0;var A={trans:T,transless:b};if(h)T.idbtrans=h.idbtrans;else try{T.create(),T.idbtrans._explicit=!0,s._state.PR1398_maxLoop=3}catch(k){return k.name===$t.InvalidState&&s.isOpen()&&--s._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),s.close({disableAutoOpen:!1}),s.open().then(function(){return O_(s,o,f,null,m)})):Lt(k)}var S=_t(m);S&&Qs();var O,$=de.follow(function(){if(O=m.call(T,T),O)if(S){var k=ha.bind(null,null);O.then(k,k)}else typeof O.next=="function"&&typeof O.throw=="function"&&(O=op(O))},A);return(O&&typeof O.then=="function"?de.resolve(O).then(function(k){return T.active?k:Lt(new me.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):$.then(function(){return O})).then(function(k){return h&&T._resolve(),T._completion.then(function(){return k})}).catch(function(k){return T._reject(k),Lt(k)})})}function Hl(s,o,f){for(var h=u(s)?s.slice():[s],m=0;m<f;++m)h.push(o);return h}function $C(s){return r(r({},s),{table:function(o){var f=s.table(o),h=f.schema,m={},b=[];function T(z,j,J){var Q=Iu(z),Z=m[Q]=m[Q]||[],re=z==null?0:typeof z=="string"?1:z.length,G=j>0,ue=r(r({},J),{name:G?"".concat(Q,"(virtual-from:").concat(J.name,")"):J.name,lowLevelIndex:J,isVirtual:G,keyTail:j,keyLength:re,extractKey:Wh(z),unique:!G&&J.unique});if(Z.push(ue),ue.isPrimaryKey||b.push(ue),re>1){var he=re===2?z[0]:z.slice(0,re-1);T(he,j+1,J)}return Z.sort(function(le,Ae){return le.keyTail-Ae.keyTail}),ue}var A=T(h.primaryKey.keyPath,0,h.primaryKey);m[":id"]=[A];for(var S=0,O=h.indexes;S<O.length;S++){var $=O[S];T($.keyPath,0,$)}function k(z){var j=m[Iu(z)];return j&&j[0]}function W(z,j){return{type:z.type===1?2:z.type,lower:Hl(z.lower,z.lowerOpen?s.MAX_KEY:s.MIN_KEY,j),lowerOpen:!0,upper:Hl(z.upper,z.upperOpen?s.MIN_KEY:s.MAX_KEY,j),upperOpen:!0}}function ie(z){var j=z.query.index;return j.isVirtual?r(r({},z),{query:{index:j.lowLevelIndex,range:W(z.query.range,j.keyTail)}}):z}var M=r(r({},f),{schema:r(r({},h),{primaryKey:A,indexes:b,getIndexByKeyPath:k}),count:function(z){return f.count(ie(z))},query:function(z){return f.query(ie(z))},openCursor:function(z){var j=z.query.index,J=j.keyTail,Q=j.isVirtual,Z=j.keyLength;if(!Q)return f.openCursor(z);function re(G){function ue(le){le!=null?G.continue(Hl(le,z.reverse?s.MAX_KEY:s.MIN_KEY,J)):z.unique?G.continue(G.key.slice(0,Z).concat(z.reverse?s.MIN_KEY:s.MAX_KEY,J)):G.continue()}var he=Object.create(G,{continue:{value:ue},continuePrimaryKey:{value:function(le,Ae){G.continuePrimaryKey(Hl(le,s.MAX_KEY,J),Ae)}},primaryKey:{get:function(){return G.primaryKey}},key:{get:function(){var le=G.key;return Z===1?le[0]:le.slice(0,Z)}},value:{get:function(){return G.value}}});return he}return f.openCursor(ie(z)).then(function(G){return G&&re(G)})}});return M}})}var HC={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:$C};function up(s,o,f,h){return f=f||{},h=h||"",a(s).forEach(function(m){if(!g(o,m))f[h+m]=void 0;else{var b=s[m],T=o[m];if(typeof b=="object"&&typeof T=="object"&&b&&T){var A=fe(b),S=fe(T);A!==S?f[h+m]=o[m]:A==="Object"?up(b,T,f,h+m+"."):b!==T&&(f[h+m]=o[m])}else b!==T&&(f[h+m]=o[m])}}),a(o).forEach(function(m){g(s,m)||(f[h+m]=o[m])}),f}function cp(s,o){return o.type==="delete"?o.keys:o.keys||o.values.map(s.extractKey)}var UC={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(s){return r(r({},s),{table:function(o){var f=s.table(o),h=f.schema.primaryKey,m=r(r({},f),{mutate:function(b){var T=be.trans,A=T.table(o).hook,S=A.deleting,O=A.creating,$=A.updating;switch(b.type){case"add":if(O.fire===nt)break;return T._promise("readwrite",function(){return k(b)},!0);case"put":if(O.fire===nt&&$.fire===nt)break;return T._promise("readwrite",function(){return k(b)},!0);case"delete":if(S.fire===nt)break;return T._promise("readwrite",function(){return k(b)},!0);case"deleteRange":if(S.fire===nt)break;return T._promise("readwrite",function(){return W(b)},!0)}return f.mutate(b);function k(M){var z=be.trans,j=M.keys||cp(h,M);if(!j)throw new Error("Keys missing");return M=M.type==="add"||M.type==="put"?r(r({},M),{keys:j}):r({},M),M.type!=="delete"&&(M.values=n([],M.values,!0)),M.keys&&(M.keys=n([],M.keys,!0)),VC(f,M,j).then(function(J){var Q=j.map(function(Z,re){var G=J[re],ue={onerror:null,onsuccess:null};if(M.type==="delete")S.fire.call(ue,Z,G,z);else if(M.type==="add"||G===void 0){var he=O.fire.call(ue,Z,M.values[re],z);Z==null&&he!=null&&(Z=he,M.keys[re]=Z,h.outbound||ce(M.values[re],h.keyPath,Z))}else{var le=up(G,M.values[re]),Ae=$.fire.call(ue,le,Z,G,z);if(Ae){var Ve=M.values[re];Object.keys(Ae).forEach(function(pe){g(Ve,pe)?Ve[pe]=Ae[pe]:ce(Ve,pe,Ae[pe])})}}return ue});return f.mutate(M).then(function(Z){for(var re=Z.failures,G=Z.results,ue=Z.numFailures,he=Z.lastResult,le=0;le<j.length;++le){var Ae=G?G[le]:j[le],Ve=Q[le];Ae==null?Ve.onerror&&Ve.onerror(re[le]):Ve.onsuccess&&Ve.onsuccess(M.type==="put"&&J[le]?M.values[le]:Ae)}return{failures:re,results:G,numFailures:ue,lastResult:he}}).catch(function(Z){return Q.forEach(function(re){return re.onerror&&re.onerror(Z)}),Promise.reject(Z)})})}function W(M){return ie(M.trans,M.range,1e4)}function ie(M,z,j){return f.query({trans:M,values:!1,query:{index:h,range:z},limit:j}).then(function(J){var Q=J.result;return k({type:"delete",keys:Q,trans:M}).then(function(Z){return Z.numFailures>0?Promise.reject(Z.failures[0]):Q.length<j?{failures:[],numFailures:0,lastResult:void 0}:ie(M,r(r({},z),{lower:Q[Q.length-1],lowerOpen:!0}),j)})})}}});return m}})}};function VC(s,o,f){return o.type==="add"?Promise.resolve([]):s.getMany({trans:o.trans,keys:f,cache:"immutable"})}function D_(s,o,f){try{if(!o||o.keys.length<s.length)return null;for(var h=[],m=0,b=0;m<o.keys.length&&b<s.length;++m)We(o.keys[m],s[b])===0&&(h.push(f?F(o.values[m]):o.values[m]),++b);return h.length===s.length?h:null}catch{return null}}var qC={stack:"dbcore",level:-1,create:function(s){return{table:function(o){var f=s.table(o);return r(r({},f),{getMany:function(h){if(!h.cache)return f.getMany(h);var m=D_(h.keys,h.trans._cache,h.cache==="clone");return m?de.resolve(m):f.getMany(h).then(function(b){return h.trans._cache={keys:h.keys,values:h.cache==="clone"?F(b):b},b})},mutate:function(h){return h.type!=="add"&&(h.trans._cache=null),f.mutate(h)}})}}}};function k_(s,o){return s.trans.mode==="readonly"&&!!s.subscr&&!s.trans.explicit&&s.trans.db._options.cache!=="disabled"&&!o.schema.primaryKey.outbound}function R_(s,o){switch(s){case"query":return o.values&&!o.unique;case"get":return!1;case"getMany":return!1;case"count":return!1;case"openCursor":return!1}}var zC={stack:"dbcore",level:0,name:"Observability",create:function(s){var o=s.schema.name,f=new vr(s.MIN_KEY,s.MAX_KEY);return r(r({},s),{transaction:function(h,m,b){if(be.subscr&&m!=="readonly")throw new me.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(be.querier));return s.transaction(h,m,b)},table:function(h){var m=s.table(h),b=m.schema,T=b.primaryKey,A=b.indexes,S=T.extractKey,O=T.outbound,$=T.autoIncrement&&A.filter(function(M){return M.compound&&M.keyPath.includes(T.keyPath)}),k=r(r({},m),{mutate:function(M){var z,j,J=M.trans,Q=M.mutatedParts||(M.mutatedParts={}),Z=function(Ce){var Xe="idb://".concat(o,"/").concat(h,"/").concat(Ce);return Q[Xe]||(Q[Xe]=new vr)},re=Z(""),G=Z(":dels"),ue=M.type,he=M.type==="deleteRange"?[M.range]:M.type==="delete"?[M.keys]:M.values.length<50?[cp(T,M).filter(function(Ce){return Ce}),M.values]:[],le=he[0],Ae=he[1],Ve=M.trans._cache;if(u(le)){re.addKeys(le);var pe=ue==="delete"||le.length===Ae.length?D_(le,Ve):null;pe||G.addKeys(le),(pe||Ae)&&YC(Z,b,pe,Ae)}else if(le){var Be={from:(z=le.lower)!==null&&z!==void 0?z:s.MIN_KEY,to:(j=le.upper)!==null&&j!==void 0?j:s.MAX_KEY};G.add(Be),re.add(Be)}else re.add(f),G.add(f),b.indexes.forEach(function(Ce){return Z(Ce.name).add(f)});return m.mutate(M).then(function(Ce){return le&&(M.type==="add"||M.type==="put")&&(re.addKeys(Ce.results),$&&$.forEach(function(Xe){for(var ye=M.values.map(function(Yr){return Xe.extractKey(Yr)}),It=Xe.keyPath.findIndex(function(Yr){return Yr===T.keyPath}),Tr=0,pi=Ce.results.length;Tr<pi;++Tr)ye[Tr][It]=Ce.results[Tr];Z(Xe.name).addKeys(ye)})),J.mutatedParts=Bl(J.mutatedParts||{},Q),Ce})}}),W=function(M){var z,j,J=M.query,Q=J.index,Z=J.range;return[Q,new vr((z=Z.lower)!==null&&z!==void 0?z:s.MIN_KEY,(j=Z.upper)!==null&&j!==void 0?j:s.MAX_KEY)]},ie={get:function(M){return[T,new vr(M.key)]},getMany:function(M){return[T,new vr().addKeys(M.keys)]},count:W,query:W,openCursor:W};return a(ie).forEach(function(M){k[M]=function(z){var j=be.subscr,J=!!j,Q=k_(be,m)&&R_(M,z),Z=Q?z.obsSet={}:j;if(J){var re=function(pe){var Be="idb://".concat(o,"/").concat(h,"/").concat(pe);return Z[Be]||(Z[Be]=new vr)},G=re(""),ue=re(":dels"),he=ie[M](z),le=he[0],Ae=he[1];if(M==="query"&&le.isPrimaryKey&&!z.values?ue.add(Ae):re(le.name||"").add(Ae),!le.isPrimaryKey)if(M==="count")ue.add(f);else{var Ve=M==="query"&&O&&z.values&&m.query(r(r({},z),{values:!1}));return m[M].apply(this,arguments).then(function(pe){if(M==="query"){if(O&&z.values)return Ve.then(function(ye){var It=ye.result;return G.addKeys(It),pe});var Be=z.values?pe.result.map(S):pe.result;z.values?G.addKeys(Be):ue.addKeys(Be)}else if(M==="openCursor"){var Ce=pe,Xe=z.values;return Ce&&Object.create(Ce,{key:{get:function(){return ue.addKey(Ce.primaryKey),Ce.key}},primaryKey:{get:function(){var ye=Ce.primaryKey;return ue.addKey(ye),ye}},value:{get:function(){return Xe&&G.addKey(Ce.primaryKey),Ce.value}}})}return pe})}}return m[M].apply(this,arguments)}}),k}})}};function YC(s,o,f,h){function m(b){var T=s(b.name||"");function A(O){return O!=null?b.extractKey(O):null}var S=function(O){return b.multiEntry&&u(O)?O.forEach(function($){return T.addKey($)}):T.addKey(O)};(f||h).forEach(function(O,$){var k=f&&A(f[$]),W=h&&A(h[$]);We(k,W)!==0&&(k!=null&&S(k),W!=null&&S(W))})}o.indexes.forEach(m)}function L_(s,o,f){if(f.numFailures===0)return o;if(o.type==="deleteRange")return null;var h=o.keys?o.keys.length:"values"in o&&o.values?o.values.length:1;if(f.numFailures===h)return null;var m=r({},o);return u(m.keys)&&(m.keys=m.keys.filter(function(b,T){return!(T in f.failures)})),"values"in m&&u(m.values)&&(m.values=m.values.filter(function(b,T){return!(T in f.failures)})),m}function KC(s,o){return o.lower===void 0?!0:o.lowerOpen?We(s,o.lower)>0:We(s,o.lower)>=0}function jC(s,o){return o.upper===void 0?!0:o.upperOpen?We(s,o.upper)<0:We(s,o.upper)<=0}function lp(s,o){return KC(s,o)&&jC(s,o)}function P_(s,o,f,h,m,b){if(!f||f.length===0)return s;var T=o.query.index,A=T.multiEntry,S=o.query.range,O=h.schema.primaryKey,$=O.extractKey,k=T.extractKey,W=(T.lowLevelIndex||T).extractKey,ie=f.reduce(function(M,z){var j=M,J=[];if(z.type==="add"||z.type==="put")for(var Q=new vr,Z=z.values.length-1;Z>=0;--Z){var re=z.values[Z],G=$(re);if(!Q.hasKey(G)){var ue=k(re);(A&&u(ue)?ue.some(function(pe){return lp(pe,S)}):lp(ue,S))&&(Q.addKey(G),J.push(re))}}switch(z.type){case"add":{var he=new vr().addKeys(o.values?M.map(function(pe){return $(pe)}):M);j=M.concat(o.values?J.filter(function(pe){var Be=$(pe);return he.hasKey(Be)?!1:(he.addKey(Be),!0)}):J.map(function(pe){return $(pe)}).filter(function(pe){return he.hasKey(pe)?!1:(he.addKey(pe),!0)}));break}case"put":{var le=new vr().addKeys(z.values.map(function(pe){return $(pe)}));j=M.filter(function(pe){return!le.hasKey(o.values?$(pe):pe)}).concat(o.values?J:J.map(function(pe){return $(pe)}));break}case"delete":var Ae=new vr().addKeys(z.keys);j=M.filter(function(pe){return!Ae.hasKey(o.values?$(pe):pe)});break;case"deleteRange":var Ve=z.range;j=M.filter(function(pe){return!lp($(pe),Ve)});break}return j},s);return ie===s?s:(ie.sort(function(M,z){return We(W(M),W(z))||We($(M),$(z))}),o.limit&&o.limit<1/0&&(ie.length>o.limit?ie.length=o.limit:s.length===o.limit&&ie.length<o.limit&&(m.dirty=!0)),b?Object.freeze(ie):ie)}function M_(s,o){return We(s.lower,o.lower)===0&&We(s.upper,o.upper)===0&&!!s.lowerOpen==!!o.lowerOpen&&!!s.upperOpen==!!o.upperOpen}function WC(s,o,f,h){if(s===void 0)return o!==void 0?-1:0;if(o===void 0)return 1;var m=We(s,o);if(m===0){if(f&&h)return 0;if(f)return 1;if(h)return-1}return m}function GC(s,o,f,h){if(s===void 0)return o!==void 0?1:0;if(o===void 0)return-1;var m=We(s,o);if(m===0){if(f&&h)return 0;if(f)return-1;if(h)return 1}return m}function QC(s,o){return WC(s.lower,o.lower,s.lowerOpen,o.lowerOpen)<=0&&GC(s.upper,o.upper,s.upperOpen,o.upperOpen)>=0}function XC(s,o,f,h){var m=rs["idb://".concat(s,"/").concat(o)];if(!m)return[];var b=m.queries[f];if(!b)return[null,!1,m,null];var T=h.query?h.query.index.name:null,A=b[T||""];if(!A)return[null,!1,m,null];switch(f){case"query":var S=A.find(function(k){return k.req.limit===h.limit&&k.req.values===h.values&&M_(k.req.query.range,h.query.range)});if(S)return[S,!0,m,A];var O=A.find(function(k){var W="limit"in k.req?k.req.limit:1/0;return W>=h.limit&&(h.values?k.req.values:!0)&&QC(k.req.query.range,h.query.range)});return[O,!1,m,A];case"count":var $=A.find(function(k){return M_(k.req.query.range,h.query.range)});return[$,!!$,m,A]}}function ZC(s,o,f,h){s.subscribers.add(f),h.addEventListener("abort",function(){s.subscribers.delete(f),s.subscribers.size===0&&JC(s,o)})}function JC(s,o){setTimeout(function(){s.subscribers.size===0&&Ue(o,s)},3e3)}var eI={stack:"dbcore",level:0,name:"Cache",create:function(s){var o=s.schema.name,f=r(r({},s),{transaction:function(h,m,b){var T=s.transaction(h,m,b);if(m==="readwrite"){var A=new AbortController,S=A.signal,O=function($){return function(){if(A.abort(),m==="readwrite"){for(var k=new Set,W=0,ie=h;W<ie.length;W++){var M=ie[W],z=rs["idb://".concat(o,"/").concat(M)];if(z){var j=s.table(M),J=z.optimisticOps.filter(function(Xe){return Xe.trans===T});if(T._explicit&&$&&T.mutatedParts)for(var Q=0,Z=Object.values(z.queries.query);Q<Z.length;Q++)for(var re=Z[Q],G=0,ue=re.slice();G<ue.length;G++){var he=ue[G];np(he.obsSet,T.mutatedParts)&&(Ue(re,he),he.subscribers.forEach(function(Xe){return k.add(Xe)}))}else if(J.length>0){z.optimisticOps=z.optimisticOps.filter(function(Xe){return Xe.trans!==T});for(var le=0,Ae=Object.values(z.queries.query);le<Ae.length;le++)for(var re=Ae[le],Ve=0,pe=re.slice();Ve<pe.length;Ve++){var he=pe[Ve];if(he.res!=null&&T.mutatedParts)if($&&!he.dirty){var Be=Object.isFrozen(he.res),Ce=P_(he.res,he.req,J,j,he,Be);he.dirty?(Ue(re,he),he.subscribers.forEach(function(It){return k.add(It)})):Ce!==he.res&&(he.res=Ce,he.promise=de.resolve({result:Ce}))}else he.dirty&&Ue(re,he),he.subscribers.forEach(function(It){return k.add(It)})}}}}k.forEach(function(Xe){return Xe()})}}};T.addEventListener("abort",O(!1),{signal:S}),T.addEventListener("error",O(!1),{signal:S}),T.addEventListener("complete",O(!0),{signal:S})}return T},table:function(h){var m=s.table(h),b=m.schema.primaryKey,T=r(r({},m),{mutate:function(A){var S=be.trans;if(b.outbound||S.db._options.cache==="disabled"||S.explicit||S.idbtrans.mode!=="readwrite")return m.mutate(A);var O=rs["idb://".concat(o,"/").concat(h)];if(!O)return m.mutate(A);var $=m.mutate(A);return(A.type==="add"||A.type==="put")&&(A.values.length>=50||cp(b,A).some(function(k){return k==null}))?$.then(function(k){var W=r(r({},A),{values:A.values.map(function(M,z){var j;if(k.failures[z])return M;var J=!((j=b.keyPath)===null||j===void 0)&&j.includes(".")?F(M):r({},M);return ce(J,b.keyPath,k.results[z]),J})}),ie=L_(O,W,k);O.optimisticOps.push(ie),queueMicrotask(function(){return A.mutatedParts&&$l(A.mutatedParts)})}):(O.optimisticOps.push(A),A.mutatedParts&&$l(A.mutatedParts),$.then(function(k){if(k.numFailures>0){Ue(O.optimisticOps,A);var W=L_(O,A,k);W&&O.optimisticOps.push(W),A.mutatedParts&&$l(A.mutatedParts)}}),$.catch(function(){Ue(O.optimisticOps,A),A.mutatedParts&&$l(A.mutatedParts)})),$},query:function(A){var S;if(!k_(be,m)||!R_("query",A))return m.query(A);var O=((S=be.trans)===null||S===void 0?void 0:S.db._options.cache)==="immutable",$=be,k=$.requery,W=$.signal,ie=XC(o,h,"query",A),M=ie[0],z=ie[1],j=ie[2],J=ie[3];if(M&&z)M.obsSet=A.obsSet;else{var Q=m.query(A).then(function(Z){var re=Z.result;if(M&&(M.res=re),O){for(var G=0,ue=re.length;G<ue;++G)Object.freeze(re[G]);Object.freeze(re)}else Z.result=F(re);return Z}).catch(function(Z){return J&&M&&Ue(J,M),Promise.reject(Z)});M={obsSet:A.obsSet,promise:Q,subscribers:new Set,type:"query",req:A,dirty:!1},J?J.push(M):(J=[M],j||(j=rs["idb://".concat(o,"/").concat(h)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}}),j.queries.query[A.query.index.name||""]=J)}return ZC(M,J,k,W),M.promise.then(function(Z){return{result:P_(Z.result,A,j?.optimisticOps,m,M,O)}})}});return T}});return f}};function Ul(s,o){return new Proxy(s,{get:function(f,h,m){return h==="db"?o:Reflect.get(f,h,m)}})}var Pi=function(){function s(o,f){var h=this;this._middlewares={},this.verno=0;var m=s.dependencies;this._options=f=r({addons:s.addons,autoOpen:!0,indexedDB:m.indexedDB,IDBKeyRange:m.IDBKeyRange,cache:"cloned"},f),this._deps={indexedDB:f.indexedDB,IDBKeyRange:f.IDBKeyRange};var b=f.addons;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var T={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:nt,dbReadyPromise:null,cancelOpen:nt,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:f.autoOpen};T.dbReadyPromise=new de(function(S){T.dbReadyResolve=S}),T.openCanceller=new de(function(S,O){T.cancelOpen=O}),this._state=T,this.name=o,this.on=xu(this,"populate","blocked","versionchange","close",{ready:[js,nt]}),this.on.ready.subscribe=H(this.on.ready.subscribe,function(S){return function(O,$){s.vip(function(){var k=h._state;if(k.openComplete)k.dbOpenError||de.resolve().then(O),$&&S(O);else if(k.onReadyBeingFired)k.onReadyBeingFired.push(O),$&&S(O);else{S(O);var W=h;$||S(function ie(){W.on.ready.unsubscribe(O),W.on.ready.unsubscribe(ie)})}})}}),this.Collection=uC(this),this.Table=aC(this),this.Transaction=gC(this),this.Version=kC(this),this.WhereClause=pC(this),this.on("versionchange",function(S){S.newVersion>0?console.warn("Another connection wants to upgrade database '".concat(h.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(h.name,"'. Closing db now to resume the delete request.")),h.close({disableAutoOpen:!1})}),this.on("blocked",function(S){!S.newVersion||S.newVersion<S.oldVersion?console.warn("Dexie.delete('".concat(h.name,"') was blocked")):console.warn("Upgrade '".concat(h.name,"' blocked by other connection holding version ").concat(S.oldVersion/10))}),this._maxKey=Cu(f.IDBKeyRange),this._createTransaction=function(S,O,$,k){return new h.Transaction(S,O,$,h._options.chromeTransactionDurability,k)},this._fireOnBlocked=function(S){h.on("blocked").fire(S),Xs.filter(function(O){return O.name===h.name&&O!==h&&!O._state.vcFired}).map(function(O){return O.on("versionchange").fire(S)})},this.use(qC),this.use(eI),this.use(zC),this.use(HC),this.use(UC);var A=new Proxy(this,{get:function(S,O,$){if(O==="_vip")return!0;if(O==="table")return function(W){return Ul(h.table(W),A)};var k=Reflect.get(S,O,$);return k instanceof __?Ul(k,A):O==="tables"?k.map(function(W){return Ul(W,A)}):O==="_createTransaction"?function(){var W=k.apply(this,arguments);return Ul(W,A)}:k}});this.vip=A,b.forEach(function(S){return S(h)})}return s.prototype.version=function(o){if(isNaN(o)||o<.1)throw new me.Type("Given version is not a positive number");if(o=Math.round(o*10)/10,this.idbdb||this._state.isBeingOpened)throw new me.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,o);var f=this._versions,h=f.filter(function(m){return m._cfg.version===o})[0];return h||(h=new this.Version(o),f.push(h),f.sort(yC),h.stores({}),this._state.autoSchema=!1,h)},s.prototype._whenReady=function(o){var f=this;return this.idbdb&&(this._state.openComplete||be.letThrough||this._vip)?o():new de(function(h,m){if(f._state.openComplete)return m(new me.DatabaseClosed(f._state.dbOpenError));if(!f._state.isBeingOpened){if(!f._state.autoOpen){m(new me.DatabaseClosed);return}f.open().catch(nt)}f._state.dbReadyPromise.then(h,m)}).then(o)},s.prototype.use=function(o){var f=o.stack,h=o.create,m=o.level,b=o.name;b&&this.unuse({stack:f,name:b});var T=this._middlewares[f]||(this._middlewares[f]=[]);return T.push({stack:f,create:h,level:m??10,name:b}),T.sort(function(A,S){return A.level-S.level}),this},s.prototype.unuse=function(o){var f=o.stack,h=o.name,m=o.create;return f&&this._middlewares[f]&&(this._middlewares[f]=this._middlewares[f].filter(function(b){return m?b.create!==m:h?b.name!==h:!1})),this},s.prototype.open=function(){var o=this;return Ja(fa,function(){return FC(o)})},s.prototype._close=function(){var o=this._state,f=Xs.indexOf(this);if(f>=0&&Xs.splice(f,1),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}o.isBeingOpened||(o.dbReadyPromise=new de(function(h){o.dbReadyResolve=h}),o.openCanceller=new de(function(h,m){o.cancelOpen=m}))},s.prototype.close=function(o){var f=o===void 0?{disableAutoOpen:!0}:o,h=f.disableAutoOpen,m=this._state;h?(m.isBeingOpened&&m.cancelOpen(new me.DatabaseClosed),this._close(),m.autoOpen=!1,m.dbOpenError=new me.DatabaseClosed):(this._close(),m.autoOpen=this._options.autoOpen||m.isBeingOpened,m.openComplete=!1,m.dbOpenError=null)},s.prototype.delete=function(o){var f=this;o===void 0&&(o={disableAutoOpen:!0});var h=arguments.length>0&&typeof arguments[0]!="object",m=this._state;return new de(function(b,T){var A=function(){f.close(o);var S=f._deps.indexedDB.deleteDatabase(f.name);S.onsuccess=At(function(){PC(f._deps,f.name),b()}),S.onerror=hi(T),S.onblocked=f._fireOnBlocked};if(h)throw new me.InvalidArgument("Invalid closeOptions argument to db.delete()");m.isBeingOpened?m.dbReadyPromise.then(A):A()})},s.prototype.backendDB=function(){return this.idbdb},s.prototype.isOpen=function(){return this.idbdb!==null},s.prototype.hasBeenClosed=function(){var o=this._state.dbOpenError;return o&&o.name==="DatabaseClosed"},s.prototype.hasFailed=function(){return this._state.dbOpenError!==null},s.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(s.prototype,"tables",{get:function(){var o=this;return a(this._allTables).map(function(f){return o._allTables[f]})},enumerable:!1,configurable:!0}),s.prototype.transaction=function(){var o=BC.apply(this,arguments);return this._transaction.apply(this,o)},s.prototype._transaction=function(o,f,h){var m=this,b=be.trans;(!b||b.db!==this||o.indexOf("!")!==-1)&&(b=null);var T=o.indexOf("?")!==-1;o=o.replace("!","").replace("?","");var A,S;try{if(S=f.map(function($){var k=$ instanceof m.Table?$.name:$;if(typeof k!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return k}),o=="r"||o===Hh)A=Hh;else if(o=="rw"||o==Uh)A=Uh;else throw new me.InvalidArgument("Invalid transaction mode: "+o);if(b){if(b.mode===Hh&&A===Uh)if(T)b=null;else throw new me.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");b&&S.forEach(function($){if(b&&b.storeNames.indexOf($)===-1)if(T)b=null;else throw new me.SubTransaction("Table "+$+" not included in parent transaction.")}),T&&b&&!b.active&&(b=null)}}catch($){return b?b._promise(null,function(k,W){W($)}):Lt($)}var O=O_.bind(null,this,A,S,b,h);return b?b._promise(A,O,"lock"):be.trans?Ja(be.transless,function(){return m._whenReady(O)}):this._whenReady(O)},s.prototype.table=function(o){if(!g(this._allTables,o))throw new me.InvalidTable("Table ".concat(o," does not exist"));return this._allTables[o]},s}(),tI=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",rI=function(){function s(o){this._subscribe=o}return s.prototype.subscribe=function(o,f,h){return this._subscribe(!o||typeof o=="function"?{next:o,error:f,complete:h}:o)},s.prototype[tI]=function(){return this},s}(),Vl;try{Vl={indexedDB:i.indexedDB||i.mozIndexedDB||i.webkitIndexedDB||i.msIndexedDB,IDBKeyRange:i.IDBKeyRange||i.webkitIDBKeyRange}}catch{Vl={indexedDB:null,IDBKeyRange:null}}function F_(s){var o=!1,f,h=new rI(function(m){var b=_t(s);function T(J){var Q=Ws();try{b&&Qs();var Z=da(s,J);return b&&(Z=Z.finally(ha)),Z}finally{Q&&Gs()}}var A=!1,S,O={},$={},k={get closed(){return A},unsubscribe:function(){A||(A=!0,S&&S.abort(),W&&ga.storagemutated.unsubscribe(z))}};m.start&&m.start(k);var W=!1,ie=function(){return Fh(j)};function M(){return np($,O)}var z=function(J){Bl(O,J),M()&&ie()},j=function(){if(!(A||!Vl.indexedDB)){O={};var J={};S&&S.abort(),S=new AbortController;var Q={subscr:J,signal:S.signal,requery:ie,querier:s,trans:null},Z=T(Q);Promise.resolve(Z).then(function(re){o=!0,f=re,!(A||Q.signal.aborted)&&(O={},$=J,!je($)&&!W&&(ga(Su,z),W=!0),Fh(function(){return!A&&m.next&&m.next(re)}))},function(re){o=!1,["DatabaseClosedError","AbortError"].includes(re?.name)||A||Fh(function(){A||m.error&&m.error(re)})})}};return setTimeout(ie,0),k});return h.hasValue=function(){return o},h.getValue=function(){return f},h}var ns=Pi;E(ns,r(r({},ca),{delete:function(s){var o=new ns(s,{addons:[]});return o.delete()},exists:function(s){return new ns(s,{addons:[]}).open().then(function(o){return o.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(s){try{return RC(ns.dependencies).then(s)}catch{return Lt(new me.MissingAPI)}},defineClass:function(){function s(o){l(this,o)}return s},ignoreTransaction:function(s){return be.trans?Ja(be.transless,s):s()},vip:ep,async:function(s){return function(){try{var o=op(s.apply(this,arguments));return!o||typeof o.then!="function"?de.resolve(o):o}catch(f){return Lt(f)}}},spawn:function(s,o,f){try{var h=op(s.apply(f,o||[]));return!h||typeof h.then!="function"?de.resolve(h):h}catch(m){return Lt(m)}},currentTransaction:{get:function(){return be.trans||null}},waitFor:function(s,o){var f=de.resolve(typeof s=="function"?ns.ignoreTransaction(s):s).timeout(o||6e4);return be.trans?be.trans.waitFor(f):f},Promise:de,debug:{get:function(){return on},set:function(s){vl(s)}},derive:C,extend:l,props:E,override:H,Events:xu,on:ga,liveQuery:F_,extendObservabilitySet:Bl,getByKeyPath:X,setByKeyPath:ce,delByKeyPath:ve,shallowClone:Re,deepClone:F,getObjectDiff:up,cmp:We,asap:B,minKey:$h,addons:[],connections:Xs,errnames:$t,dependencies:Vl,cache:rs,semVer:f_,version:f_.split(".").map(function(s){return parseInt(s)}).reduce(function(s,o,f){return s+o/Math.pow(10,f*2)})})),ns.maxKey=Cu(ns.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(ga(Su,function(s){if(!_a){var o;o=new CustomEvent(Yh,{detail:s}),_a=!0,dispatchEvent(o),_a=!1}}),addEventListener(Yh,function(s){var o=s.detail;_a||fp(o)}));function fp(s){var o=_a;try{_a=!0,ga.storagemutated.fire(s),sp(s,!0)}finally{_a=o}}var _a=!1,ba,dp=function(){};typeof BroadcastChannel<"u"&&(dp=function(){ba=new BroadcastChannel(Yh),ba.onmessage=function(s){return s.data&&fp(s.data)}},dp(),typeof ba.unref=="function"&&ba.unref(),ga(Su,function(s){_a||ba.postMessage(s)})),typeof addEventListener<"u"&&(addEventListener("pagehide",function(s){if(!Pi.disableBfCache&&s.persisted){on&&console.debug("Dexie: handling persisted pagehide"),ba?.close();for(var o=0,f=Xs;o<f.length;o++){var h=f[o];h.close({disableAutoOpen:!1})}}}),addEventListener("pageshow",function(s){!Pi.disableBfCache&&s.persisted&&(on&&console.debug("Dexie: handling persisted pageshow"),dp(),fp({all:new vr(-1/0,[[]])}))}));function nI(s){return new Au({add:s})}function iI(s){return new Au({remove:s})}function aI(s,o){return new Au({replacePrefix:[s,o]})}de.rejectionMapper=Nh,vl(on);var sI=Object.freeze({__proto__:null,Dexie:Pi,liveQuery:F_,Entity:p_,cmp:We,PropModification:Au,replacePrefix:aI,add:nI,remove:iI,default:Pi,RangeSet:vr,mergeRanges:Ou,rangesOverlap:S_});return r(Pi,sI,{default:Pi}),Pi})});var RA=Mi(Tt=>{"use strict";function wd(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}Tt.defaults=wd();function yA(e){Tt.defaults=e}var AA=/[&<>"']/,fR=new RegExp(AA.source,"g"),wA=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,dR=new RegExp(wA.source,"g"),hR={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},bA=e=>hR[e];function xn(e,t){if(t){if(AA.test(e))return e.replace(fR,bA)}else if(wA.test(e))return e.replace(dR,bA);return e}var pR=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function mR(e){return e.replace(pR,(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 gR=/(^|[^\[])\^/g;function dt(e,t){let r=typeof e=="string"?e:e.source;t=t||"";let n={replace:(i,a)=>{let u=typeof a=="string"?a:a.source;return u=u.replace(gR,"$1"),r=r.replace(i,u),n},getRegex:()=>new RegExp(r,t)};return n}function EA(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}var $c={exec:()=>null};function vA(e,t){let r=e.replace(/\|/g,(a,u,l)=>{let d=!1,p=u;for(;--p>=0&&l[p]==="\\";)d=!d;return d?"|":" |"}),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 Td(e,t,r){let n=e.length;if(n===0)return"";let i=0;for(;i<n;){let a=e.charAt(n-i-1);if(a===t&&!r)i++;else if(a!==t&&r)i++;else break}return e.slice(0,n-i)}function _R(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 TA(e,t,r,n){let i=t.href,a=t.title?xn(t.title):null,u=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){n.state.inLink=!0;let l={type:"link",raw:r,href:i,title:a,text:u,tokens:n.inlineTokens(u)};return n.state.inLink=!1,l}return{type:"image",raw:r,href:i,title:a,text:xn(u)}}function bR(e,t){let r=e.match(/^(\s+)(?:```)/);if(r===null)return t;let n=r[1];return t.split(`
`).map(i=>{let a=i.match(/^\s+/);if(a===null)return i;let[u]=a;return u.length>=n.length?i.slice(n.length):i}).join(`
`)}var Ls=class{options;rules;lexer;constructor(t){this.options=t||Tt.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:Td(n,`
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let n=r[0],i=bR(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=Td(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=Td(n.replace(/^ *>[ \t]?/gm,""),`
`);let i=this.lexer.state.top;this.lexer.state.top=!0;let a=this.lexer.blockTokens(n);return this.lexer.state.top=i,{type:"blockquote",raw:r[0],tokens:a,text:n}}}list(t){let r=this.rules.block.list.exec(t);if(r){let n=r[1].trim(),i=n.length>1,a={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 u=new RegExp(`^( {0,3}${n})((?:[	 ][^\\n]*)?(?:\\n|$))`),l="",d="",p=!1;for(;t;){let g=!1;if(!(r=u.exec(t))||this.rules.block.hr.test(t))break;l=r[0],t=t.substring(l.length);let E=r[2].split(`
`,1)[0].replace(/^\t+/,N=>" ".repeat(3*N.length)),_=t.split(`
`,1)[0],y=0;this.options.pedantic?(y=2,d=E.trimStart()):(y=r[2].search(/[^ ]/),y=y>4?1:y,d=E.slice(y),y+=r[1].length);let C=!1;if(!E&&/^ *$/.test(_)&&(l+=_+`
`,t=t.substring(_.length+1),g=!0),!g){let N=new RegExp(`^ {0,${Math.min(3,y-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),L=new RegExp(`^ {0,${Math.min(3,y-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),H=new RegExp(`^ {0,${Math.min(3,y-1)}}(?:\`\`\`|~~~)`),R=new RegExp(`^ {0,${Math.min(3,y-1)}}#`);for(;t;){let B=t.split(`
`,1)[0];if(_=B,this.options.pedantic&&(_=_.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),H.test(_)||R.test(_)||N.test(_)||L.test(t))break;if(_.search(/[^ ]/)>=y||!_.trim())d+=`
`+_.slice(y);else{if(C||E.search(/[^ ]/)>=4||H.test(E)||R.test(E)||L.test(E))break;d+=`
`+_}!C&&!_.trim()&&(C=!0),l+=B+`
`,t=t.substring(B.length+1),E=_.slice(y)}}a.loose||(p?a.loose=!0:/\n *\n *$/.test(l)&&(p=!0));let D=null,P;this.options.gfm&&(D=/^\[[ xX]\] /.exec(d),D&&(P=D[0]!=="[ ] ",d=d.replace(/^\[[ xX]\] +/,""))),a.items.push({type:"list_item",raw:l,task:!!D,checked:P,loose:!1,text:d,tokens:[]}),a.raw+=l}a.items[a.items.length-1].raw=l.trimEnd(),a.items[a.items.length-1].text=d.trimEnd(),a.raw=a.raw.trimEnd();for(let g=0;g<a.items.length;g++)if(this.lexer.state.top=!1,a.items[g].tokens=this.lexer.blockTokens(a.items[g].text,[]),!a.loose){let E=a.items[g].tokens.filter(y=>y.type==="space"),_=E.length>0&&E.some(y=>/\n.*\n/.test(y.raw));a.loose=_}if(a.loose)for(let g=0;g<a.items.length;g++)a.items[g].loose=!0;return a}}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"):"",a=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:a}}}table(t){let r=this.rules.block.table.exec(t);if(!r||!/[:|]/.test(r[2]))return;let n=vA(r[1]),i=r[2].replace(/^\||\| *$/g,"").split("|"),a=r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split(`
`):[],u={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let l of i)/^ *-+: *$/.test(l)?u.align.push("right"):/^ *:-+: *$/.test(l)?u.align.push("center"):/^ *:-+ *$/.test(l)?u.align.push("left"):u.align.push(null);for(let l of n)u.header.push({text:l,tokens:this.lexer.inline(l)});for(let l of a)u.rows.push(vA(l,u.header.length).map(d=>({text:d,tokens:this.lexer.inline(d)})));return u}}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:xn(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 u=Td(n.slice(0,-1),"\\");if((n.length-u.length)%2===0)return}else{let u=_R(r[2],"()");if(u>-1){let d=(r[0].indexOf("!")===0?5:4)+r[1].length+u;r[2]=r[2].substring(0,u),r[0]=r[0].substring(0,d).trim(),r[3]=""}}let i=r[2],a="";if(this.options.pedantic){let u=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);u&&(i=u[1],a=u[3])}else a=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)),TA(r,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.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," "),a=r[i.toLowerCase()];if(!a){let u=n[0].charAt(0);return{type:"text",raw:u,text:u}}return TA(n,a,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 u=[...i[0]].length-1,l,d,p=u,g=0,E=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(E.lastIndex=0,r=r.slice(-1*t.length+u);(i=E.exec(r))!=null;){if(l=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!l)continue;if(d=[...l].length,i[3]||i[4]){p+=d;continue}else if((i[5]||i[6])&&u%3&&!((u+d)%3)){g+=d;continue}if(p-=d,p>0)continue;d=Math.min(d,d+p+g);let _=[...i[0]][0].length,y=t.slice(0,u+i.index+_+d);if(Math.min(u,d)%2){let D=y.slice(1,-1);return{type:"em",raw:y,text:D,tokens:this.lexer.inlineTokens(D)}}let C=y.slice(2,-2);return{type:"strong",raw:y,text:C,tokens:this.lexer.inlineTokens(C)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(/\n/g," "),i=/[^ ]/.test(n),a=/^ /.test(n)&&/ $/.test(n);return i&&a&&(n=n.substring(1,n.length-1)),n=xn(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=xn(r[1]),i="mailto:"+n):(n=xn(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=xn(r[0]),i="mailto:"+n;else{let a;do a=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(a!==r[0]);n=xn(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=xn(r[0]),{type:"text",raw:r[0],text:n}}}},ER=/^(?: *(?:\n|$))+/,vR=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,TR=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Hc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,xR=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,SA=/(?:[*+-]|\d{1,9}[.)])/,CA=dt(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,SA).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(),R0=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,yR=/^[^\n]+/,L0=/(?!\s*\])(?:\\.|[^\[\]\\])+/,AR=dt(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",L0).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),wR=dt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,SA).getRegex(),Sd="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",P0=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,SR=dt("^ {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",P0).replace("tag",Sd).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),IA=dt(R0).replace("hr",Hc).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",Sd).getRegex(),CR=dt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",IA).getRegex(),M0={blockquote:CR,code:vR,def:AR,fences:TR,heading:xR,hr:Hc,html:SR,lheading:CA,list:wR,newline:ER,paragraph:IA,table:$c,text:yR},xA=dt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Hc).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",Sd).getRegex(),IR={...M0,table:xA,paragraph:dt(R0).replace("hr",Hc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",xA).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",Sd).getRegex()},NR={...M0,html:dt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",P0).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:$c,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:dt(R0).replace("hr",Hc).replace("heading",` *#{1,6} *[^
]`).replace("lheading",CA).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},NA=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,OR=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,OA=/^( {2,}|\\)\n(?!\s*$)/,DR=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Uc="\\p{P}\\p{S}",kR=dt(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Uc).getRegex(),RR=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,LR=dt(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Uc).getRegex(),PR=dt("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Uc).getRegex(),MR=dt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Uc).getRegex(),FR=dt(/\\([punct])/,"gu").replace(/punct/g,Uc).getRegex(),BR=dt(/^<(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(),$R=dt(P0).replace("(?:-->|$)","-->").getRegex(),HR=dt("^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",$R).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),yd=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,UR=dt(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",yd).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),DA=dt(/^!?\[(label)\]\[(ref)\]/).replace("label",yd).replace("ref",L0).getRegex(),kA=dt(/^!?\[(ref)\](?:\[\])?/).replace("ref",L0).getRegex(),VR=dt("reflink|nolink(?!\\()","g").replace("reflink",DA).replace("nolink",kA).getRegex(),F0={_backpedal:$c,anyPunctuation:FR,autolink:BR,blockSkip:RR,br:OA,code:OR,del:$c,emStrongLDelim:LR,emStrongRDelimAst:PR,emStrongRDelimUnd:MR,escape:NA,link:UR,nolink:kA,punctuation:kR,reflink:DA,reflinkSearch:VR,tag:HR,text:DR,url:$c},qR={...F0,link:dt(/^!?\[(label)\]\((.*?)\)/).replace("label",yd).getRegex(),reflink:dt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",yd).getRegex()},k0={...F0,escape:dt(NA).replace("])","~|])").getRegex(),url:dt(/^((?: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.!#$%&'*+\/=?_`{\|}~-]+@)))/},zR={...k0,br:dt(OA).replace("{2,}","*").getRegex(),text:dt(k0.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},xd={normal:M0,gfm:IR,pedantic:NR},Bc={normal:F0,gfm:k0,breaks:zR,pedantic:qR},yn=class{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Tt.defaults,this.options.tokenizer=this.options.tokenizer||new Ls,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:xd.normal,inline:Bc.normal};this.options.pedantic?(r.block=xd.pedantic,r.inline=Bc.pedantic):this.options.gfm&&(r.block=xd.gfm,this.options.breaks?r.inline=Bc.breaks:r.inline=Bc.gfm),this.tokenizer.rules=r}static get rules(){return{block:xd,inline:Bc}}static lex(t,r){return new yn(r).lex(t)}static lexInline(t,r){return new yn(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,(l,d,p)=>d+"    ".repeat(p.length));let n,i,a,u;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(l=>(n=l.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(a=t,this.options.extensions&&this.options.extensions.startBlock){let l=1/0,d=t.slice(1),p;this.options.extensions.startBlock.forEach(g=>{p=g.call({lexer:this},d),typeof p=="number"&&p>=0&&(l=Math.min(l,p))}),l<1/0&&l>=0&&(a=t.substring(0,l+1))}if(this.state.top&&(n=this.tokenizer.paragraph(a))){i=r[r.length-1],u&&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),u=a.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 l="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let n,i,a,u=t,l,d,p;if(this.tokens.links){let g=Object.keys(this.tokens.links);if(g.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(u))!=null;)g.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.blockSkip.exec(u))!=null;)u=u.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(l=this.tokenizer.rules.inline.anyPunctuation.exec(u))!=null;)u=u.slice(0,l.index)+"++"+u.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(d||(p=""),d=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(g=>(n=g.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,u,p)){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(a=t,this.options.extensions&&this.options.extensions.startInline){let g=1/0,E=t.slice(1),_;this.options.extensions.startInline.forEach(y=>{_=y.call({lexer:this},E),typeof _=="number"&&_>=0&&(g=Math.min(g,_))}),g<1/0&&g>=0&&(a=t.substring(0,g+1))}if(n=this.tokenizer.inlineText(a)){t=t.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(p=n.raw.slice(-1)),d=!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 g="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(g);break}else throw new Error(g)}}return r}},Ps=class{options;constructor(t){this.options=t||Tt.defaults}code(t,r,n){let i=(r||"").match(/^\S*/)?.[0];return t=t.replace(/\n$/,"")+`
`,i?'<pre><code class="language-'+xn(i)+'">'+(n?t:xn(t,!0))+`</code></pre>
`:"<pre><code>"+(n?t:xn(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",a=r&&n!==1?' start="'+n+'"':"";return"<"+i+a+`>
`+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=EA(t);if(i===null)return n;t=i;let a='<a href="'+t+'"';return r&&(a+=' title="'+r+'"'),a+=">"+n+"</a>",a}image(t,r,n){let i=EA(t);if(i===null)return n;t=i;let a=`<img src="${t}" alt="${n}"`;return r&&(a+=` title="${r}"`),a+=">",a}text(t){return t}},Ko=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""}},An=class{options;renderer;textRenderer;constructor(t){this.options=t||Tt.defaults,this.options.renderer=this.options.renderer||new Ps,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ko}static parse(t,r){return new An(r).parse(t)}static parseInline(t,r){return new An(r).parseInline(t)}parse(t,r=!0){let n="";for(let i=0;i<t.length;i++){let a=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[a.type]){let u=a,l=this.options.extensions.renderers[u.type].call({parser:this},u);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type)){n+=l||"";continue}}switch(a.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{let u=a;n+=this.renderer.heading(this.parseInline(u.tokens),u.depth,mR(this.parseInline(u.tokens,this.textRenderer)));continue}case"code":{let u=a;n+=this.renderer.code(u.text,u.lang,!!u.escaped);continue}case"table":{let u=a,l="",d="";for(let g=0;g<u.header.length;g++)d+=this.renderer.tablecell(this.parseInline(u.header[g].tokens),{header:!0,align:u.align[g]});l+=this.renderer.tablerow(d);let p="";for(let g=0;g<u.rows.length;g++){let E=u.rows[g];d="";for(let _=0;_<E.length;_++)d+=this.renderer.tablecell(this.parseInline(E[_].tokens),{header:!1,align:u.align[_]});p+=this.renderer.tablerow(d)}n+=this.renderer.table(l,p);continue}case"blockquote":{let u=a,l=this.parse(u.tokens);n+=this.renderer.blockquote(l);continue}case"list":{let u=a,l=u.ordered,d=u.start,p=u.loose,g="";for(let E=0;E<u.items.length;E++){let _=u.items[E],y=_.checked,C=_.task,D="";if(_.task){let P=this.renderer.checkbox(!!y);p?_.tokens.length>0&&_.tokens[0].type==="paragraph"?(_.tokens[0].text=P+" "+_.tokens[0].text,_.tokens[0].tokens&&_.tokens[0].tokens.length>0&&_.tokens[0].tokens[0].type==="text"&&(_.tokens[0].tokens[0].text=P+" "+_.tokens[0].tokens[0].text)):_.tokens.unshift({type:"text",text:P+" "}):D+=P+" "}D+=this.parse(_.tokens,p),g+=this.renderer.listitem(D,C,!!y)}n+=this.renderer.list(g,l,d);continue}case"html":{let u=a;n+=this.renderer.html(u.text,u.block);continue}case"paragraph":{let u=a;n+=this.renderer.paragraph(this.parseInline(u.tokens));continue}case"text":{let u=a,l=u.tokens?this.parseInline(u.tokens):u.text;for(;i+1<t.length&&t[i+1].type==="text";)u=t[++i],l+=`
`+(u.tokens?this.parseInline(u.tokens):u.text);n+=r?this.renderer.paragraph(l):l;continue}default:{let u='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return n}parseInline(t,r){r=r||this.renderer;let n="";for(let i=0;i<t.length;i++){let a=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[a.type]){let u=this.options.extensions.renderers[a.type].call({parser:this},a);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){n+=u||"";continue}}switch(a.type){case"escape":{let u=a;n+=r.text(u.text);break}case"html":{let u=a;n+=r.html(u.text);break}case"link":{let u=a;n+=r.link(u.href,u.title,this.parseInline(u.tokens,r));break}case"image":{let u=a;n+=r.image(u.href,u.title,u.text);break}case"strong":{let u=a;n+=r.strong(this.parseInline(u.tokens,r));break}case"em":{let u=a;n+=r.em(this.parseInline(u.tokens,r));break}case"codespan":{let u=a;n+=r.codespan(u.text);break}case"br":{n+=r.br();break}case"del":{let u=a;n+=r.del(this.parseInline(u.tokens,r));break}case"text":{let u=a;n+=r.text(u.text);break}default:{let u='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return n}},Ba=class{options;constructor(t){this.options=t||Tt.defaults}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}};zl(Ba,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var Ad=class{defaults=wd();options=this.setOptions;parse=this.#e(yn.lex,An.parse);parseInline=this.#e(yn.lexInline,An.parseInline);Parser=An;Renderer=Ps;TextRenderer=Ko;Lexer=yn;Tokenizer=Ls;Hooks=Ba;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 a=i;for(let u of a.header)n=n.concat(this.walkTokens(u.tokens,r));for(let u of a.rows)for(let l of u)n=n.concat(this.walkTokens(l.tokens,r));break}case"list":{let a=i;n=n.concat(this.walkTokens(a.items,r));break}default:{let a=i;this.defaults.extensions?.childTokens?.[a.type]?this.defaults.extensions.childTokens[a.type].forEach(u=>{let l=a[u].flat(1/0);n=n.concat(this.walkTokens(l,r))}):a.tokens&&(n=n.concat(this.walkTokens(a.tokens,r)))}}return n}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let u=r.renderers[a.name];u?r.renderers[a.name]=function(...l){let d=a.renderer.apply(this,l);return d===!1&&(d=u.apply(this,l)),d}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let u=r[a.level];u?u.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),i.extensions=r),n.renderer){let a=this.defaults.renderer||new Ps(this.defaults);for(let u in n.renderer){if(!(u in a))throw new Error(`renderer '${u}' does not exist`);if(u==="options")continue;let l=u,d=n.renderer[l],p=a[l];a[l]=(...g)=>{let E=d.apply(a,g);return E===!1&&(E=p.apply(a,g)),E||""}}i.renderer=a}if(n.tokenizer){let a=this.defaults.tokenizer||new Ls(this.defaults);for(let u in n.tokenizer){if(!(u in a))throw new Error(`tokenizer '${u}' does not exist`);if(["options","rules","lexer"].includes(u))continue;let l=u,d=n.tokenizer[l],p=a[l];a[l]=(...g)=>{let E=d.apply(a,g);return E===!1&&(E=p.apply(a,g)),E}}i.tokenizer=a}if(n.hooks){let a=this.defaults.hooks||new Ba;for(let u in n.hooks){if(!(u in a))throw new Error(`hook '${u}' does not exist`);if(u==="options")continue;let l=u,d=n.hooks[l],p=a[l];Ba.passThroughHooks.has(u)?a[l]=g=>{if(this.defaults.async)return Promise.resolve(d.call(a,g)).then(_=>p.call(a,_));let E=d.call(a,g);return p.call(a,E)}:a[l]=(...g)=>{let E=d.apply(a,g);return E===!1&&(E=p.apply(a,g)),E}}i.hooks=a}if(n.walkTokens){let a=this.defaults.walkTokens,u=n.walkTokens;i.walkTokens=function(l){let d=[];return d.push(u.call(this,l)),a&&(d=d.concat(a.call(this,l))),d}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return yn.lex(t,r??this.defaults)}parser(t,r){return An.parse(t,r??this.defaults)}#e(t,r){return(n,i)=>{let a={...i},u={...this.defaults,...a};this.defaults.async===!0&&a.async===!1&&(u.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),u.async=!0);let l=this.#t(!!u.silent,!!u.async);if(typeof n>"u"||n===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(u.hooks&&(u.hooks.options=u),u.async)return Promise.resolve(u.hooks?u.hooks.preprocess(n):n).then(d=>t(d,u)).then(d=>u.hooks?u.hooks.processAllTokens(d):d).then(d=>u.walkTokens?Promise.all(this.walkTokens(d,u.walkTokens)).then(()=>d):d).then(d=>r(d,u)).then(d=>u.hooks?u.hooks.postprocess(d):d).catch(l);try{u.hooks&&(n=u.hooks.preprocess(n));let d=t(n,u);u.hooks&&(d=u.hooks.processAllTokens(d)),u.walkTokens&&this.walkTokens(d,u.walkTokens);let p=r(d,u);return u.hooks&&(p=u.hooks.postprocess(p)),p}catch(d){return l(d)}}}#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>"+xn(n.message+"",!0)+"</pre>";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}},Ms=new Ad;function st(e,t){return Ms.parse(e,t)}st.options=st.setOptions=function(e){return Ms.setOptions(e),st.defaults=Ms.defaults,yA(st.defaults),st};st.getDefaults=wd;st.defaults=Tt.defaults;st.use=function(...e){return Ms.use(...e),st.defaults=Ms.defaults,yA(st.defaults),st};st.walkTokens=function(e,t){return Ms.walkTokens(e,t)};st.parseInline=Ms.parseInline;st.Parser=An;st.parser=An.parse;st.Renderer=Ps;st.TextRenderer=Ko;st.Lexer=yn;st.lexer=yn.lex;st.Tokenizer=Ls;st.Hooks=Ba;st.parse=st;var YR=st.options,KR=st.setOptions,jR=st.use,WR=st.walkTokens,GR=st.parseInline,QR=st,XR=An.parse,ZR=yn.lex;Tt.Hooks=Ba;Tt.Lexer=yn;Tt.Marked=Ad;Tt.Parser=An;Tt.Renderer=Ps;Tt.TextRenderer=Ko;Tt.Tokenizer=Ls;Tt.getDefaults=wd;Tt.lexer=ZR;Tt.marked=st;Tt.options=YR;Tt.parse=QR;Tt.parseInline=GR;Tt.parser=XR;Tt.setOptions=KR;Tt.use=jR;Tt.walkTokens=WR});function LA(e){return e.type===Ze.Tag||e.type===Ze.Script||e.type===Ze.Style}var Ze,PA,MA,FA,BA,$A,HA,UA,VA,qA,jo=v(()=>{(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"})(Ze||(Ze={}));PA=Ze.Root,MA=Ze.Text,FA=Ze.Directive,BA=Ze.Comment,$A=Ze.Script,HA=Ze.Style,UA=Ze.Tag,VA=Ze.CDATA,qA=Ze.Doctype});function _e(e){return LA(e)}function Wo(e){return e.type===Ze.CDATA}function nn(e){return e.type===Ze.Text}function Hs(e){return e.type===Ze.Comment}function Id(e){return e.type===Ze.Directive}function Bn(e){return e.type===Ze.Root}function ht(e){return Object.prototype.hasOwnProperty.call(e,"children")}function Go(e,t=!1){let r;if(nn(e))r=new Oi(e.data);else if(Hs(e))r=new Fs(e.data);else if(_e(e)){let n=t?B0(e.children):[],i=new $s(e.name,{...e.attribs},n);n.forEach(a=>a.parent=i),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]={...e["x-attribsPrefix"]}),r=i}else if(Wo(e)){let n=t?B0(e.children):[],i=new zc(n);n.forEach(a=>a.parent=i),r=i}else if(Bn(e)){let n=t?B0(e.children):[],i=new wn(n);n.forEach(a=>a.parent=i),e["x-mode"]&&(i["x-mode"]=e["x-mode"]),r=i}else if(Id(e)){let n=new Bs(e.name,e.data);e["x-name"]!=null&&(n["x-name"]=e["x-name"],n["x-publicId"]=e["x-publicId"],n["x-systemId"]=e["x-systemId"]),r=n}else throw new Error(`Not implemented yet: ${e.type}`);return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function B0(e){let t=e.map(r=>Go(r,!0));for(let r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}var Cd,Vc,Oi,Fs,Bs,qc,zc,wn,$s,$0=v(()=>{jo();Cd=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(t){this.parent=t}get previousSibling(){return this.prev}set previousSibling(t){this.prev=t}get nextSibling(){return this.next}set nextSibling(t){this.next=t}cloneNode(t=!1){return Go(this,t)}},Vc=class extends Cd{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}},Oi=class extends Vc{constructor(){super(...arguments),this.type=Ze.Text}get nodeType(){return 3}},Fs=class extends Vc{constructor(){super(...arguments),this.type=Ze.Comment}get nodeType(){return 8}},Bs=class extends Vc{constructor(t,r){super(r),this.name=t,this.type=Ze.Directive}get nodeType(){return 1}},qc=class extends Cd{constructor(t){super(),this.children=t}get firstChild(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(t){this.children=t}},zc=class extends qc{constructor(){super(...arguments),this.type=Ze.CDATA}get nodeType(){return 4}},wn=class extends qc{constructor(){super(...arguments),this.type=Ze.Root}get nodeType(){return 9}},$s=class extends qc{constructor(t,r,n=[],i=t==="script"?Ze.Script:t==="style"?Ze.Style:Ze.Tag){super(n),this.name=t,this.attribs=r,this.type=i}get nodeType(){return 1}get tagName(){return this.name}set tagName(t){this.name=t}get attributes(){return Object.keys(this.attribs).map(t=>{var r,n;return{name:t,value:this.attribs[t],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[t],prefix:(n=this["x-attribsPrefix"])===null||n===void 0?void 0:n[t]}})}}});var YA,Qo,_r=v(()=>{jo();$0();$0();YA={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},Qo=class{constructor(t,r,n){this.dom=[],this.root=new wn(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(n=r,r=YA),typeof t=="object"&&(r=t,t=void 0),this.callback=t??null,this.options=r??YA,this.elementCB=n??null}onparserinit(t){this.parser=t}onreset(){this.dom=[],this.root=new wn(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(t){this.handleCallback(t)}onclosetag(){this.lastNode=null;let t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)}onopentag(t,r){let n=this.options.xmlMode?Ze.Tag:void 0,i=new $s(t,r,void 0,n);this.addNode(i),this.tagStack.push(i)}ontext(t){let{lastNode:r}=this;if(r&&r.type===Ze.Text)r.data+=t,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{let n=new Oi(t);this.addNode(n),this.lastNode=n}}oncomment(t){if(this.lastNode&&this.lastNode.type===Ze.Comment){this.lastNode.data+=t;return}let r=new Fs(t);this.addNode(r),this.lastNode=r}oncommentend(){this.lastNode=null}oncdatastart(){let t=new Oi(""),r=new zc([t]);this.addNode(r),t.parent=r,this.lastNode=t}oncdataend(){this.lastNode=null}onprocessinginstruction(t,r){let n=new Bs(t,r);this.addNode(n)}handleCallback(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t}addNode(t){let 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}}});var Xo,KA=v(()=>{Xo=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(e=>e.charCodeAt(0)))});var Nd,jA=v(()=>{Nd=new Uint16Array("\u0200aglq	\x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(e=>e.charCodeAt(0)))});function U0(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=JR.get(e))!==null&&t!==void 0?t:e}var H0,JR,Zo,V0=v(()=>{JR=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]]),Zo=(H0=String.fromCodePoint)!==null&&H0!==void 0?H0:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t}});function q0(e){return e>=or.ZERO&&e<=or.NINE}function tL(e){return e>=or.UPPER_A&&e<=or.UPPER_F||e>=or.LOWER_A&&e<=or.LOWER_F}function rL(e){return e>=or.UPPER_A&&e<=or.UPPER_Z||e>=or.LOWER_A&&e<=or.LOWER_Z||q0(e)}function nL(e){return e===or.EQUALS||rL(e)}function WA(e){let t="",r=new Ha(e,n=>t+=Zo(n));return function(i,a){let u=0,l=0;for(;(l=i.indexOf("&",l))>=0;){t+=i.slice(u,l),r.startEntity(a);let p=r.write(i,l+1);if(p<0){u=l+r.end();break}u=l+p,l=p===0?u+1:u}let d=t+i.slice(u);return t="",d}}function iL(e,t,r,n){let i=(t&$a.BRANCH_LENGTH)>>7,a=t&$a.JUMP_TABLE;if(i===0)return a!==0&&n===a?r:-1;if(a){let d=n-a;return d<0||d>=i?-1:e[r+d]-1}let u=r,l=u+i-1;for(;u<=l;){let d=u+l>>>1,p=e[d];if(p<n)u=d+1;else if(p>n)l=d-1;else return e[d+i]}return-1}var or,eL,$a,sr,Dr,Ha,Dre,kre,Jo=v(()=>{KA();jA();V0();V0();(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"})(or||(or={}));eL=32;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})($a||($a={}));(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"})(sr||(sr={}));(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Dr||(Dr={}));Ha=class{constructor(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=sr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Dr.Strict}startEntity(t){this.decodeMode=t,this.state=sr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case sr.EntityStart:return t.charCodeAt(r)===or.NUM?(this.state=sr.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=sr.NamedEntity,this.stateNamedEntity(t,r));case sr.NumericStart:return this.stateNumericStart(t,r);case sr.NumericDecimal:return this.stateNumericDecimal(t,r);case sr.NumericHex:return this.stateNumericHex(t,r);case sr.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|eL)===or.LOWER_X?(this.state=sr.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=sr.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,n,i){if(r!==n){let a=n-r;this.result=this.result*Math.pow(i,a)+parseInt(t.substr(r,a),i),this.consumed+=a}}stateNumericHex(t,r){let n=r;for(;r<t.length;){let i=t.charCodeAt(r);if(q0(i)||tL(i))r+=1;else return this.addToNumericResult(t,n,r,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,n,r,16),-1}stateNumericDecimal(t,r){let n=r;for(;r<t.length;){let i=t.charCodeAt(r);if(q0(i))r+=1;else return this.addToNumericResult(t,n,r,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,n,r,10),-1}emitNumericEntity(t,r){var n;if(this.consumed<=r)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===or.SEMI)this.consumed+=1;else if(this.decodeMode===Dr.Strict)return 0;return this.emitCodePoint(U0(this.result),this.consumed),this.errors&&(t!==or.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){let{decodeTree:n}=this,i=n[this.treeIndex],a=(i&$a.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){let u=t.charCodeAt(r);if(this.treeIndex=iL(n,i,this.treeIndex+Math.max(1,a),u),this.treeIndex<0)return this.result===0||this.decodeMode===Dr.Attribute&&(a===0||nL(u))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],a=(i&$a.VALUE_LENGTH)>>14,a!==0){if(u===or.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Dr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;let{result:r,decodeTree:n}=this,i=(n[r]&$a.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,n){let{decodeTree:i}=this;return this.emitCodePoint(r===1?i[t]&~$a.VALUE_LENGTH:i[t+1],n),r===3&&this.emitCodePoint(i[t+2],n),n}end(){var t;switch(this.state){case sr.NamedEntity:return this.result!==0&&(this.decodeMode!==Dr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case sr.NumericDecimal:return this.emitNumericEntity(0,2);case sr.NumericHex:return this.emitNumericEntity(0,3);case sr.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case sr.EntityStart:return 0}}};Dre=WA(Xo),kre=WA(Nd)});function Od(e){for(let t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}var aL,GA=v(()=>{aL=new Map(Od([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(Od([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(Od([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(Od([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]))});function Yc(e){let t="",r=0,n;for(;(n=z0.exec(e))!==null;){let i=n.index,a=e.charCodeAt(i),u=QA.get(a);u!==void 0?(t+=e.substring(r,i)+u,r=i+1):(t+=`${e.substring(r,i)}&#x${XA(e,i).toString(16)};`,r=z0.lastIndex+=+((a&64512)===55296))}return t+e.substr(r)}function Y0(e,t){return function(n){let i,a=0,u="";for(;i=e.exec(n);)a!==i.index&&(u+=n.substring(a,i.index)),u+=t.get(i[0].charCodeAt(0)),a=i.index+1;return u+n.substring(a)}}var z0,QA,XA,ZA,eu,tu,Kc=v(()=>{z0=/["&'<>$\x80-\uFFFF]/g,QA=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),XA=String.prototype.codePointAt!=null?(e,t)=>e.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);ZA=Y0(/[&<>'"]/g,QA),eu=Y0(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),tu=Y0(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))});var K0=v(()=>{GA();Kc()});var JA,e2,n2=v(()=>{Jo();K0();Kc();Kc();K0();Jo();(function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"})(JA||(JA={}));(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"})(e2||(e2={}))});var i2,a2,s2=v(()=>{i2=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(e=>[e.toLowerCase(),e])),a2=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(e=>[e.toLowerCase(),e]))});function uL(e){return e.replace(/"/g,"&quot;")}function cL(e,t){var r;if(!e)return;let n=((r=t.encodeEntities)!==null&&r!==void 0?r:t.decodeEntities)===!1?uL:t.xmlMode||t.encodeEntities!=="utf8"?Yc:eu;return Object.keys(e).map(i=>{var a,u;let l=(a=e[i])!==null&&a!==void 0?a:"";return t.xmlMode==="foreign"&&(i=(u=a2.get(i))!==null&&u!==void 0?u:i),!t.emptyAttrs&&!t.xmlMode&&l===""?i:`${i}="${n(l)}"`}).join(" ")}function G0(e,t={}){let r="length"in e?e:[e],n="";for(let i=0;i<r.length;i++)n+=lL(r[i],t);return n}function lL(e,t){switch(e.type){case PA:return G0(e.children,t);case qA:case FA:return pL(e);case BA:return _L(e);case VA:return gL(e);case $A:case HA:case UA:return hL(e,t);case MA:return mL(e,t)}}function hL(e,t){var r;t.xmlMode==="foreign"&&(e.name=(r=i2.get(e.name))!==null&&r!==void 0?r:e.name,e.parent&&fL.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&dL.has(e.name)&&(t={...t,xmlMode:"foreign"});let n=`<${e.name}`,i=cL(e.attribs,t);return i&&(n+=` ${i}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&o2.has(e.name))?(t.xmlMode||(n+=" "),n+="/>"):(n+=">",e.children.length>0&&(n+=G0(e.children,t)),(t.xmlMode||!o2.has(e.name))&&(n+=`</${e.name}>`)),n}function pL(e){return`<${e.data}>`}function mL(e,t){var r;let n=e.data||"";return((r=t.encodeEntities)!==null&&r!==void 0?r:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&oL.has(e.parent.name))&&(n=t.xmlMode||t.encodeEntities!=="utf8"?Yc(n):tu(n)),n}function gL(e){return`<![CDATA[${e.children[0].data}]]>`}function _L(e){return`<!--${e.data}-->`}var oL,o2,Dd,fL,dL,Q0=v(()=>{jo();n2();s2();oL=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);o2=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);Dd=G0;fL=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),dL=new Set(["svg","math"])});function u2(e,t){return Dd(e,t)}function bL(e,t){return ht(e)?e.children.map(r=>u2(r,t)).join(""):""}function kd(e){return Array.isArray(e)?e.map(kd).join(""):_e(e)?e.name==="br"?`
`:kd(e.children):Wo(e)?kd(e.children):nn(e)?e.data:""}function ra(e){return Array.isArray(e)?e.map(ra).join(""):ht(e)&&!Hs(e)?ra(e.children):nn(e)?e.data:""}function jc(e){return Array.isArray(e)?e.map(jc).join(""):ht(e)&&(e.type===Ze.Tag||Wo(e))?jc(e.children):nn(e)?e.data:""}var X0=v(()=>{_r();Q0();jo()});function ru(e){return ht(e)?e.children:[]}function c2(e){return e.parent||null}function Z0(e){let t=c2(e);if(t!=null)return ru(t);let r=[e],{prev:n,next:i}=e;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;i!=null;)r.push(i),{next:i}=i;return r}function EL(e,t){var r;return(r=e.attribs)===null||r===void 0?void 0:r[t]}function vL(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function TL(e){return e.name}function Rd(e){let{next:t}=e;for(;t!==null&&!_e(t);)({next:t}=t);return t}function Ld(e){let{prev:t}=e;for(;t!==null&&!_e(t);)({prev:t}=t);return t}var l2=v(()=>{_r()});function na(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){let t=e.parent.children,r=t.lastIndexOf(e);r>=0&&t.splice(r,1)}e.next=null,e.prev=null,e.parent=null}function xL(e,t){let r=t.prev=e.prev;r&&(r.next=t);let n=t.next=e.next;n&&(n.prev=t);let i=t.parent=e.parent;if(i){let a=i.children;a[a.lastIndexOf(e)]=t,e.parent=null}}function yL(e,t){if(na(t),t.next=null,t.parent=e,e.children.push(t)>1){let r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null}function AL(e,t){na(t);let{parent:r}=e,n=e.next;if(t.next=n,t.prev=e,e.next=t,t.parent=r,n){if(n.prev=t,r){let i=r.children;i.splice(i.lastIndexOf(n),0,t)}}else r&&r.children.push(t)}function wL(e,t){if(na(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){let r=e.children[1];r.prev=t,t.next=r}else t.next=null}function SL(e,t){na(t);let{parent:r}=e;if(r){let 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}var f2=v(()=>{});function nu(e,t,r=!0,n=1/0){return Pd(e,Array.isArray(t)?t:[t],r,n)}function Pd(e,t,r,n){let i=[],a=[Array.isArray(t)?t:[t]],u=[0];for(;;){if(u[0]>=a[0].length){if(u.length===1)return i;a.shift(),u.shift();continue}let l=a[0][u[0]++];if(e(l)&&(i.push(l),--n<=0))return i;r&&ht(l)&&l.children.length>0&&(u.unshift(0),a.unshift(l.children))}}function CL(e,t){return t.find(e)}function Md(e,t,r=!0){let n=Array.isArray(t)?t:[t];for(let i=0;i<n.length;i++){let a=n[i];if(_e(a)&&e(a))return a;if(r&&ht(a)&&a.children.length>0){let u=Md(e,a.children,!0);if(u)return u}}return null}function d2(e,t){return(Array.isArray(t)?t:[t]).some(r=>_e(r)&&e(r)||ht(r)&&d2(e,r.children))}function IL(e,t){let r=[],n=[Array.isArray(t)?t:[t]],i=[0];for(;;){if(i[0]>=n[0].length){if(n.length===1)return r;n.shift(),i.shift();continue}let a=n[0][i[0]++];_e(a)&&e(a)&&r.push(a),ht(a)&&a.children.length>0&&(i.unshift(0),n.unshift(a.children))}}var J0=v(()=>{_r()});function eg(e,t){return typeof t=="function"?r=>_e(r)&&t(r.attribs[e]):r=>_e(r)&&r.attribs[e]===t}function NL(e,t){return r=>e(r)||t(r)}function h2(e){let t=Object.keys(e).map(r=>{let n=e[r];return Object.prototype.hasOwnProperty.call(Fd,r)?Fd[r](n):eg(r,n)});return t.length===0?null:t.reduce(NL)}function OL(e,t){let r=h2(e);return r?r(t):!0}function DL(e,t,r,n=1/0){let i=h2(e);return i?nu(i,t,r,n):[]}function kL(e,t,r=!0){return Array.isArray(t)||(t=[t]),Md(eg("id",e),t,r)}function Us(e,t,r=!0,n=1/0){return nu(Fd.tag_name(e),t,r,n)}function RL(e,t,r=!0,n=1/0){return nu(eg("class",e),t,r,n)}function LL(e,t,r=!0,n=1/0){return nu(Fd.tag_type(e),t,r,n)}var Fd,tg=v(()=>{_r();J0();Fd={tag_name(e){return typeof e=="function"?t=>_e(t)&&e(t.name):e==="*"?_e:t=>_e(t)&&t.name===e},tag_type(e){return typeof e=="function"?t=>e(t.type):t=>t.type===e},tag_contains(e){return typeof e=="function"?t=>nn(t)&&e(t.data):t=>nn(t)&&t.data===e}}});function PL(e){let t=e.length;for(;--t>=0;){let r=e[t];if(t>0&&e.lastIndexOf(r,t-1)>=0){e.splice(t,1);continue}for(let n=r.parent;n;n=n.parent)if(e.includes(n)){e.splice(t,1);break}}return e}function p2(e,t){let r=[],n=[];if(e===t)return 0;let i=ht(e)?e:e.parent;for(;i;)r.unshift(i),i=i.parent;for(i=ht(t)?t:t.parent;i;)n.unshift(i),i=i.parent;let a=Math.min(r.length,n.length),u=0;for(;u<a&&r[u]===n[u];)u++;if(u===0)return $n.DISCONNECTED;let l=r[u-1],d=l.children,p=r[u],g=n[u];return d.indexOf(p)>d.indexOf(g)?l===t?$n.FOLLOWING|$n.CONTAINED_BY:$n.FOLLOWING:l===e?$n.PRECEDING|$n.CONTAINS:$n.PRECEDING}function Ua(e){return e=e.filter((t,r,n)=>!n.includes(t,r+1)),e.sort((t,r)=>{let n=p2(t,r);return n&$n.PRECEDING?-1:n&$n.FOLLOWING?1:0}),e}var $n,m2=v(()=>{_r();(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"})($n||($n={}))});function rg(e){let t=Bd(HL,e);return t?t.name==="feed"?ML(t):FL(t):null}function ML(e){var t;let r=e.children,n={type:"atom",items:Us("entry",r).map(u=>{var l;let{children:d}=u,p={media:g2(d)};an(p,"id","id",d),an(p,"title","title",d);let g=(l=Bd("link",d))===null||l===void 0?void 0:l.attribs.href;g&&(p.link=g);let E=Va("summary",d)||Va("content",d);E&&(p.description=E);let _=Va("updated",d);return _&&(p.pubDate=new Date(_)),p})};an(n,"id","id",r),an(n,"title","title",r);let i=(t=Bd("link",r))===null||t===void 0?void 0:t.attribs.href;i&&(n.link=i),an(n,"description","subtitle",r);let a=Va("updated",r);return a&&(n.updated=new Date(a)),an(n,"author","email",r,!0),n}function FL(e){var t,r;let n=(r=(t=Bd("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:Us("item",e.children).map(u=>{let{children:l}=u,d={media:g2(l)};an(d,"id","guid",l),an(d,"title","title",l),an(d,"link","link",l),an(d,"description","description",l);let p=Va("pubDate",l)||Va("dc:date",l);return p&&(d.pubDate=new Date(p)),d})};an(i,"title","title",n),an(i,"link","link",n),an(i,"description","description",n);let a=Va("lastBuildDate",n);return a&&(i.updated=new Date(a)),an(i,"author","managingEditor",n,!0),i}function g2(e){return Us("media:content",e).map(t=>{let{attribs:r}=t,n={medium:r.medium,isDefault:!!r.isDefault};for(let i of BL)r[i]&&(n[i]=r[i]);for(let i of $L)r[i]&&(n[i]=parseInt(r[i],10));return r.expression&&(n.expression=r.expression),n})}function Bd(e,t){return Us(e,t,!0,1)[0]}function Va(e,t,r=!1){return ra(Us(e,t,r,1)).trim()}function an(e,t,r,n,i=!1){let a=Va(r,n,i);a&&(e[t]=a)}function HL(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}var BL,$L,_2=v(()=>{X0();tg();BL=["url","type","lang"],$L=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"]});var qa={};Nn(qa,{DocumentPosition:()=>$n,append:()=>AL,appendChild:()=>yL,compareDocumentPosition:()=>p2,existsOne:()=>d2,filter:()=>nu,find:()=>Pd,findAll:()=>IL,findOne:()=>Md,findOneChild:()=>CL,getAttributeValue:()=>EL,getChildren:()=>ru,getElementById:()=>kL,getElements:()=>DL,getElementsByClassName:()=>RL,getElementsByTagName:()=>Us,getElementsByTagType:()=>LL,getFeed:()=>rg,getInnerHTML:()=>bL,getName:()=>TL,getOuterHTML:()=>u2,getParent:()=>c2,getSiblings:()=>Z0,getText:()=>kd,hasAttrib:()=>vL,hasChildren:()=>ht,innerText:()=>jc,isCDATA:()=>Wo,isComment:()=>Hs,isDocument:()=>Bn,isTag:()=>_e,isText:()=>nn,nextElementSibling:()=>Rd,prepend:()=>SL,prependChild:()=>wL,prevElementSibling:()=>Ld,removeElement:()=>na,removeSubsets:()=>PL,replaceElement:()=>xL,testElement:()=>OL,textContent:()=>ra,uniqueSort:()=>Ua});var ci=v(()=>{X0();l2();f2();J0();tg();m2();_2();_r()});function Wc(e,t){if(!e)return t??UL;let r={_useHtmlParser2:!!e.xmlMode,...t,...e};return e.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,e.xml!==!0&&Object.assign(r,e.xml)):e.xmlMode&&(r._useHtmlParser2=!0),r}var UL,ng=v(()=>{UL={_useHtmlParser2:!1}});var ag={};Nn(ag,{contains:()=>Gc,extract:()=>jL,html:()=>qL,merge:()=>ig,parseHTML:()=>YL,root:()=>KL,text:()=>Vs,xml:()=>zL});function E2(e,t,r){return e?e(t??e._root.children,null,void 0,r).toString():""}function VL(e,t){return!t&&typeof e=="object"&&e!=null&&!("length"in e)&&!("type"in e)}function qL(e,t){let r=VL(e)?(t=e,void 0):e,n={...this===null||this===void 0?void 0:this._options,...Wc(t)};return E2(this,r,n)}function zL(e){let t={...this._options,xmlMode:!0};return E2(this,e,t)}function Vs(e){let t=e??(this?this.root():[]),r="";for(let n=0;n<t.length;n++)r+=ra(t[n]);return r}function YL(e,t,r=typeof t=="boolean"?t:!1){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(r=t);let n=this.load(e,this._options,!1);return r||n("script").remove(),[...n.root()[0].children]}function KL(){return this(this._root)}function Gc(e,t){if(t===e)return!1;let r=t;for(;r&&r!==r.parent;)if(r=r.parent,r===e)return!0;return!1}function jL(e){return this.root().extract(e)}function ig(e,t){if(!b2(e)||!b2(t))return;let r=e.length,n=+t.length;for(let i=0;i<n;i++)e[r++]=t[i];return e.length=r,e}function b2(e){if(Array.isArray(e))return!0;if(typeof e!="object"||e===null||!("length"in e)||typeof e.length!="number"||e.length<0)return!1;for(let t=0;t<e.length;t++)if(!(t in e))return!1;return!0}var iu=v(()=>{ci();ng()});function Hn(e){return e.cheerio!=null}function v2(e){return e.replace(/[._-](\w|$)/g,(t,r)=>r.toUpperCase())}function T2(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()}function gt(e,t){let r=e.length;for(let n=0;n<r;n++)t(e[n],n);return e}function Qc(e){let t=e.indexOf("<");if(t<0||t>e.length-3)return!1;let r=e.charCodeAt(t+1);return(r>=qs.LowerA&&r<=qs.LowerZ||r>=qs.UpperA&&r<=qs.UpperZ||r===qs.Exclamation)&&e.includes(">",t+2)}var qs,au=v(()=>{(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"})(qs||(qs={}))});var cg={};Nn(cg,{addClass:()=>S2,attr:()=>GL,data:()=>JL,hasClass:()=>rP,prop:()=>QL,removeAttr:()=>tP,removeClass:()=>C2,toggleClass:()=>I2,val:()=>eP});function $d(e,t,r){var n;if(!(!e||!_e(e))){if((n=e.attribs)!==null&&n!==void 0||(e.attribs={}),!t)return e.attribs;if(Xc.call(e.attribs,t))return!r&&ug.test(t)?t:e.attribs[t];if(e.name==="option"&&t==="value")return Vs(e.children);if(e.name==="input"&&(e.attribs.type==="radio"||e.attribs.type==="checkbox")&&t==="value")return"on"}}function su(e,t,r){r===null?w2(e,t):e.attribs[t]=`${r}`}function GL(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 gt(this,(r,n)=>{_e(r)&&su(r,e,t.call(r,n,r.attribs[e]))})}return gt(this,r=>{if(_e(r))if(typeof e=="object")for(let n of Object.keys(e)){let i=e[n];su(r,n,i)}else su(r,e,t)})}return arguments.length>1?this:$d(this[0],e,this.options.xmlMode)}function x2(e,t,r){return t in e?e[t]:!r&&ug.test(t)?$d(e,t,!1)!==void 0:$d(e,t,r)}function sg(e,t,r,n){t in e?e[t]=r:su(e,t,!n&&ug.test(t)?r?"":null:`${r}`)}function QL(e,t){var r;if(typeof e=="string"&&t===void 0){let n=this[0];if(!n||!_e(n))return;switch(e){case"style":{let i=this.css(),a=Object.keys(i);for(let u=0;u<a.length;u++)i[u]=a[u];return i.length=a.length,i}case"tagName":case"nodeName":return n.name.toUpperCase();case"href":case"src":{let i=(r=n.attribs)===null||r===void 0?void 0:r[e];return typeof URL<"u"&&(e==="href"&&(n.tagName==="a"||n.tagName==="link")||e==="src"&&(n.tagName==="img"||n.tagName==="iframe"||n.tagName==="audio"||n.tagName==="video"||n.tagName==="source"))&&i!==void 0&&this.options.baseURI?new URL(i,this.options.baseURI).href:i}case"innerText":return jc(n);case"textContent":return ra(n);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return x2(n,e,this.options.xmlMode)}}if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e=="object")throw new TypeError("Bad combination of arguments.");return gt(this,(n,i)=>{_e(n)&&sg(n,e,t.call(n,i,x2(n,e,this.options.xmlMode)),this.options.xmlMode)})}return gt(this,n=>{if(_e(n))if(typeof e=="object")for(let i of Object.keys(e)){let a=e[i];sg(n,i,a,this.options.xmlMode)}else sg(n,e,t,this.options.xmlMode)})}}function y2(e,t,r){var n;(n=e.data)!==null&&n!==void 0||(e.data={}),typeof t=="object"?Object.assign(e.data,t):typeof t=="string"&&r!==void 0&&(e.data[t]=r)}function XL(e){for(let t of Object.keys(e.attribs)){if(!t.startsWith(og))continue;let r=v2(t.slice(og.length));Xc.call(e.data,r)||(e.data[r]=A2(e.attribs[t]))}return e.data}function ZL(e,t){let r=og+T2(t),n=e.data;if(Xc.call(n,t))return n[t];if(Xc.call(e.attribs,r))return n[t]=A2(e.attribs[r])}function A2(e){if(e==="null")return null;if(e==="true")return!0;if(e==="false")return!1;let t=Number(e);if(e===String(t))return t;if(WL.test(e))try{return JSON.parse(e)}catch{}return e}function JL(e,t){var r;let n=this[0];if(!n||!_e(n))return;let i=n;return(r=i.data)!==null&&r!==void 0||(i.data={}),e==null?XL(i):typeof e=="object"||t!==void 0?(gt(this,a=>{_e(a)&&(typeof e=="object"?y2(a,e):y2(a,e,t))}),this):ZL(i,e)}function eP(e){let t=arguments.length===0,r=this[0];if(!r||!_e(r))return t?void 0:this;switch(r.name){case"textarea":return this.text(e);case"select":{let n=this.find("option:selected");if(!t){if(this.attr("multiple")==null&&typeof e=="object")return this;this.find("option").removeAttr("selected");let i=typeof e=="object"?e:[e];for(let a of i)this.find(`option[value="${a}"]`).attr("selected","");return this}return this.attr("multiple")?n.toArray().map(i=>Vs(i.children)):n.attr("value")}case"input":case"option":return t?this.attr("value"):this.attr("value",e)}}function w2(e,t){!e.attribs||!Xc.call(e.attribs,t)||delete e.attribs[t]}function Hd(e){return e?e.trim().split(Zc):[]}function tP(e){let t=Hd(e);for(let r of t)gt(this,n=>{_e(n)&&w2(n,r)});return this}function rP(e){return this.toArray().some(t=>{let r=_e(t)&&t.attribs.class,n=-1;if(r&&e.length>0)for(;(n=r.indexOf(e,n+1))>-1;){let i=n+e.length;if((n===0||Zc.test(r[n-1]))&&(i===r.length||Zc.test(r[i])))return!0}return!1})}function S2(e){if(typeof e=="function")return gt(this,(n,i)=>{if(_e(n)){let a=n.attribs.class||"";S2.call([n],e.call(n,i,a))}});if(!e||typeof e!="string")return this;let t=e.split(Zc),r=this.length;for(let n=0;n<r;n++){let i=this[n];if(!_e(i))continue;let a=$d(i,"class",!1);if(a){let u=` ${a} `;for(let l of t){let d=`${l} `;u.includes(` ${d}`)||(u+=d)}su(i,"class",u.trim())}else su(i,"class",t.join(" ").trim())}return this}function C2(e){if(typeof e=="function")return gt(this,(i,a)=>{_e(i)&&C2.call([i],e.call(i,a,i.attribs.class||""))});let t=Hd(e),r=t.length,n=arguments.length===0;return gt(this,i=>{if(_e(i))if(n)i.attribs.class="";else{let a=Hd(i.attribs.class),u=!1;for(let l=0;l<r;l++){let d=a.indexOf(t[l]);d>=0&&(a.splice(d,1),u=!0,l--)}u&&(i.attribs.class=a.join(" "))}})}function I2(e,t){if(typeof e=="function")return gt(this,(u,l)=>{_e(u)&&I2.call([u],e.call(u,l,u.attribs.class||"",t),t)});if(!e||typeof e!="string")return this;let r=e.split(Zc),n=r.length,i=typeof t=="boolean"?t?1:-1:0,a=this.length;for(let u=0;u<a;u++){let l=this[u];if(!_e(l))continue;let d=Hd(l.attribs.class);for(let p=0;p<n;p++){let g=d.indexOf(r[p]);i>=0&&g<0?d.push(r[p]):i<=0&&g>=0&&d.splice(g,1)}l.attribs.class=d.join(" ")}return this}var Xc,Zc,og,ug,WL,N2=v(()=>{iu();au();_r();ci();Xc=Object.prototype.hasOwnProperty,Zc=/\s+/,og="data-",ug=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,WL=/^{[^]*}$|^\[[^]*]$/});var Ee,Bt,lg=v(()=>{(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"})(Ee||(Ee={}));(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"})(Bt||(Bt={}))});function zs(e){switch(e.type){case Ee.Adjacent:case Ee.Child:case Ee.Descendant:case Ee.Parent:case Ee.Sibling:case Ee.ColumnCombinator:return!0;default:return!1}}function oP(e,t,r){let 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 Jc(e){return e.replace(nP,oP)}function fg(e){return e===39||e===34}function D2(e){return e===32||e===9||e===10||e===12||e===13}function ia(e){let t=[],r=k2(t,`${e}`,0);if(r<e.length)throw new Error(`Unmatched selector: ${e.slice(r)}`);return t}function k2(e,t,r){let n=[];function i(_){let y=t.slice(r+_).match(O2);if(!y)throw new Error(`Expected name, found ${t.slice(r)}`);let[C]=y;return r+=_+C.length,Jc(C)}function a(_){for(r+=_;r<t.length&&D2(t.charCodeAt(r));)r++}function u(){r+=1;let _=r,y=1;for(;y>0&&r<t.length;r++)t.charCodeAt(r)===40&&!l(r)?y++:t.charCodeAt(r)===41&&!l(r)&&y--;if(y)throw new Error("Parenthesis not matched");return Jc(t.slice(_,r-1))}function l(_){let y=0;for(;t.charCodeAt(--_)===92;)y++;return(y&1)===1}function d(){if(n.length>0&&zs(n[n.length-1]))throw new Error("Did not expect successive traversals.")}function p(_){if(n.length>0&&n[n.length-1].type===Ee.Descendant){n[n.length-1].type=_;return}d(),n.push({type:_})}function g(_,y){n.push({type:Ee.Attribute,name:_,action:y,value:i(1),namespace:null,ignoreCase:"quirks"})}function E(){if(n.length&&n[n.length-1].type===Ee.Descendant&&n.pop(),n.length===0)throw new Error("Empty sub-selector");e.push(n)}if(a(0),t.length===r)return r;e:for(;r<t.length;){let _=t.charCodeAt(r);switch(_){case 32:case 9:case 10:case 12:case 13:{(n.length===0||n[0].type!==Ee.Descendant)&&(d(),n.push({type:Ee.Descendant})),a(1);break}case 62:{p(Ee.Child),a(1);break}case 60:{p(Ee.Parent),a(1);break}case 126:{p(Ee.Sibling),a(1);break}case 43:{p(Ee.Adjacent),a(1);break}case 46:{g("class",Bt.Element);break}case 35:{g("id",Bt.Equals);break}case 91:{a(1);let y,C=null;t.charCodeAt(r)===124?y=i(1):t.startsWith("*|",r)?(C="*",y=i(2)):(y=i(0),t.charCodeAt(r)===124&&t.charCodeAt(r+1)!==61&&(C=y,y=i(1))),a(0);let D=Bt.Exists,P=iP.get(t.charCodeAt(r));if(P){if(D=P,t.charCodeAt(r+1)!==61)throw new Error("Expected `=`");a(2)}else t.charCodeAt(r)===61&&(D=Bt.Equals,a(1));let N="",L=null;if(D!=="exists"){if(fg(t.charCodeAt(r))){let B=t.charCodeAt(r),V=r+1;for(;V<t.length&&(t.charCodeAt(V)!==B||l(V));)V+=1;if(t.charCodeAt(V)!==B)throw new Error("Attribute value didn't end");N=Jc(t.slice(r+1,V)),r=V+1}else{let B=r;for(;r<t.length&&(!D2(t.charCodeAt(r))&&t.charCodeAt(r)!==93||l(r));)r+=1;N=Jc(t.slice(B,r))}a(0);let R=t.charCodeAt(r)|32;R===115?(L=!1,a(1)):R===105&&(L=!0,a(1))}if(t.charCodeAt(r)!==93)throw new Error("Attribute selector didn't terminate");r+=1;let H={type:Ee.Attribute,name:y,action:D,value:N,namespace:C,ignoreCase:L};n.push(H);break}case 58:{if(t.charCodeAt(r+1)===58){n.push({type:Ee.PseudoElement,name:i(2).toLowerCase(),data:t.charCodeAt(r)===40?u():null});continue}let y=i(1).toLowerCase(),C=null;if(t.charCodeAt(r)===40)if(aP.has(y)){if(fg(t.charCodeAt(r+1)))throw new Error(`Pseudo-selector ${y} cannot be quoted`);if(C=[],r=k2(C,t,r+1),t.charCodeAt(r)!==41)throw new Error(`Missing closing parenthesis in :${y} (${t})`);r+=1}else{if(C=u(),sP.has(y)){let D=C.charCodeAt(0);D===C.charCodeAt(C.length-1)&&fg(D)&&(C=C.slice(1,-1))}C=Jc(C)}n.push({type:Ee.Pseudo,name:y,data:C});break}case 44:{E(),n=[],a(1);break}default:{if(t.startsWith("/*",r)){let D=t.indexOf("*/",r+2);if(D<0)throw new Error("Comment was not terminated");r=D+2,n.length===0&&a(0);break}let y=null,C;if(_===42)r+=1,C="*";else if(_===124){if(C="",t.charCodeAt(r+1)===124){p(Ee.ColumnCombinator),a(2);break}}else if(O2.test(t.slice(r)))C=i(0);else break e;t.charCodeAt(r)===124&&t.charCodeAt(r+1)!==124&&(y=C,t.charCodeAt(r+1)===42?(C="*",r+=2):C=i(1)),n.push(C==="*"?{type:Ee.Universal,namespace:y}:{type:Ee.Tag,name:C,namespace:y})}}}return E(),r}var O2,nP,iP,aP,sP,R2=v(()=>{lg();O2=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,nP=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,iP=new Map([[126,Bt.Element],[94,Bt.Start],[36,Bt.End],[42,Bt.Any],[33,Bt.Not],[124,Bt.Hyphen]]),aP=new Set(["has","not","matches","is","where","host","host-context"]);sP=new Set(["contains","icontains"])});var ou=v(()=>{lg();R2()});var za=Mi((Bne,L2)=>{L2.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}});function el(e){return!P2.has(e.type)}function dg(e){let t=e.map(M2);for(let r=1;r<e.length;r++){let n=t[r];if(!(n<0))for(let i=r-1;i>=0&&n<t[i];i--){let a=e[i+1];e[i+1]=e[i],e[i]=a,t[i+1]=t[i],t[i]=n}}}function M2(e){var t,r;let n=(t=P2.get(e.type))!==null&&t!==void 0?t:-1;return e.type===Ee.Attribute?(n=(r=uP.get(e.action))!==null&&r!==void 0?r:4,e.action===Bt.Equals&&e.name==="id"&&(n=9),e.ignoreCase&&(n>>=1)):e.type===Ee.Pseudo&&(e.data?e.name==="has"||e.name==="contains"?n=0:Array.isArray(e.data)?(n=Math.min(...e.data.map(i=>Math.min(...i.map(M2)))),n<0&&(n=0)):n=2:n=3),n}var P2,uP,hg=v(()=>{ou();P2=new Map([[Ee.Universal,50],[Ee.Tag,30],[Ee.Attribute,1],[Ee.Pseudo,0]]);uP=new Map([[Bt.Exists,10],[Bt.Equals,8],[Bt.Not,7],[Bt.Start,6],[Bt.End,6],[Bt.Any,5]])});function F2(e){return e.replace(cP,"\\$&")}function Ys(e,t){return typeof e.ignoreCase=="boolean"?e.ignoreCase:e.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&lP.has(e.name)}var tl,cP,lP,B2,$2=v(()=>{tl=ln(za(),1),cP=/[-[\]{}()*+?.,\\^$|#\s]/g;lP=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"]);B2={equals(e,t,r){let{adapter:n}=r,{name:i}=t,{value:a}=t;return Ys(t,r)?(a=a.toLowerCase(),u=>{let l=n.getAttributeValue(u,i);return l!=null&&l.length===a.length&&l.toLowerCase()===a&&e(u)}):u=>n.getAttributeValue(u,i)===a&&e(u)},hyphen(e,t,r){let{adapter:n}=r,{name:i}=t,{value:a}=t,u=a.length;return Ys(t,r)?(a=a.toLowerCase(),function(d){let p=n.getAttributeValue(d,i);return p!=null&&(p.length===u||p.charAt(u)==="-")&&p.substr(0,u).toLowerCase()===a&&e(d)}):function(d){let p=n.getAttributeValue(d,i);return p!=null&&(p.length===u||p.charAt(u)==="-")&&p.substr(0,u)===a&&e(d)}},element(e,t,r){let{adapter:n}=r,{name:i,value:a}=t;if(/\s/.test(a))return tl.default.falseFunc;let u=new RegExp(`(?:^|\\s)${F2(a)}(?:$|\\s)`,Ys(t,r)?"i":"");return function(d){let p=n.getAttributeValue(d,i);return p!=null&&p.length>=a.length&&u.test(p)&&e(d)}},exists(e,{name:t},{adapter:r}){return n=>r.hasAttrib(n,t)&&e(n)},start(e,t,r){let{adapter:n}=r,{name:i}=t,{value:a}=t,u=a.length;return u===0?tl.default.falseFunc:Ys(t,r)?(a=a.toLowerCase(),l=>{let d=n.getAttributeValue(l,i);return d!=null&&d.length>=u&&d.substr(0,u).toLowerCase()===a&&e(l)}):l=>{var d;return!!(!((d=n.getAttributeValue(l,i))===null||d===void 0)&&d.startsWith(a))&&e(l)}},end(e,t,r){let{adapter:n}=r,{name:i}=t,{value:a}=t,u=-a.length;return u===0?tl.default.falseFunc:Ys(t,r)?(a=a.toLowerCase(),l=>{var d;return((d=n.getAttributeValue(l,i))===null||d===void 0?void 0:d.substr(u).toLowerCase())===a&&e(l)}):l=>{var d;return!!(!((d=n.getAttributeValue(l,i))===null||d===void 0)&&d.endsWith(a))&&e(l)}},any(e,t,r){let{adapter:n}=r,{name:i,value:a}=t;if(a==="")return tl.default.falseFunc;if(Ys(t,r)){let u=new RegExp(F2(a),"i");return function(d){let p=n.getAttributeValue(d,i);return p!=null&&p.length>=a.length&&u.test(p)&&e(d)}}return u=>{var l;return!!(!((l=n.getAttributeValue(u,i))===null||l===void 0)&&l.includes(a))&&e(u)}},not(e,t,r){let{adapter:n}=r,{name:i}=t,{value:a}=t;return a===""?u=>!!n.getAttributeValue(u,i)&&e(u):Ys(t,r)?(a=a.toLowerCase(),u=>{let l=n.getAttributeValue(u,i);return(l==null||l.length!==a.length||l.toLowerCase()!==a)&&e(u)}):u=>n.getAttributeValue(u,i)!==a&&e(u)}}});function U2(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,r=0,n=a(),i=u();if(t<e.length&&e.charAt(t)==="n"&&(t++,r=n*(i??1),l(),t<e.length?(n=a(),l(),i=u()):n=i=0),i===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[r,n*i];function a(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function u(){let d=t,p=0;for(;t<e.length&&e.charCodeAt(t)>=H2&&e.charCodeAt(t)<=dP;)p=p*10+(e.charCodeAt(t)-H2),t++;return t===d?null:p}function l(){for(;t<e.length&&fP.has(e.charCodeAt(t));)t++}}var fP,H2,dP,V2=v(()=>{fP=new Set([9,10,12,13,32]),H2="0".charCodeAt(0),dP="9".charCodeAt(0)});function q2(e){let t=e[0],r=e[1]-1;if(r<0&&t<=0)return pg.default.falseFunc;if(t===-1)return a=>a<=r;if(t===0)return a=>a===r;if(t===1)return r<0?pg.default.trueFunc:a=>a>=r;let n=Math.abs(t),i=(r%n+n)%n;return t>1?a=>a>=r&&a%n===i:a=>a<=r&&a%n===i}var pg,z2=v(()=>{pg=ln(za(),1)});function uu(e){return q2(U2(e))}var Y2=v(()=>{V2();z2()});function Ud(e,t){return r=>{let n=t.getParent(r);return n!=null&&t.isTag(n)&&e(r)}}function mg(e){return function(r,n,{adapter:i}){let a=i[e];return typeof a!="function"?sn.default.falseFunc:function(l){return a(l)&&r(l)}}}var sn,cu,K2=v(()=>{Y2();sn=ln(za(),1);cu={contains(e,t,{adapter:r}){return function(i){return e(i)&&r.getText(i).includes(t)}},icontains(e,t,{adapter:r}){let n=t.toLowerCase();return function(a){return e(a)&&r.getText(a).toLowerCase().includes(n)}},"nth-child"(e,t,{adapter:r,equals:n}){let i=uu(t);return i===sn.default.falseFunc?sn.default.falseFunc:i===sn.default.trueFunc?Ud(e,r):function(u){let l=r.getSiblings(u),d=0;for(let p=0;p<l.length&&!n(u,l[p]);p++)r.isTag(l[p])&&d++;return i(d)&&e(u)}},"nth-last-child"(e,t,{adapter:r,equals:n}){let i=uu(t);return i===sn.default.falseFunc?sn.default.falseFunc:i===sn.default.trueFunc?Ud(e,r):function(u){let l=r.getSiblings(u),d=0;for(let p=l.length-1;p>=0&&!n(u,l[p]);p--)r.isTag(l[p])&&d++;return i(d)&&e(u)}},"nth-of-type"(e,t,{adapter:r,equals:n}){let i=uu(t);return i===sn.default.falseFunc?sn.default.falseFunc:i===sn.default.trueFunc?Ud(e,r):function(u){let l=r.getSiblings(u),d=0;for(let p=0;p<l.length;p++){let g=l[p];if(n(u,g))break;r.isTag(g)&&r.getName(g)===r.getName(u)&&d++}return i(d)&&e(u)}},"nth-last-of-type"(e,t,{adapter:r,equals:n}){let i=uu(t);return i===sn.default.falseFunc?sn.default.falseFunc:i===sn.default.trueFunc?Ud(e,r):function(u){let l=r.getSiblings(u),d=0;for(let p=l.length-1;p>=0;p--){let g=l[p];if(n(u,g))break;r.isTag(g)&&r.getName(g)===r.getName(u)&&d++}return i(d)&&e(u)}},root(e,t,{adapter:r}){return n=>{let i=r.getParent(n);return(i==null||!r.isTag(i))&&e(n)}},scope(e,t,r,n){let{equals:i}=r;return!n||n.length===0?cu.root(e,t,r):n.length===1?a=>i(n[0],a)&&e(a):a=>n.includes(a)&&e(a)},hover:mg("isHovered"),visited:mg("isVisited"),active:mg("isActive")}});function gg(e,t,r,n){if(r===null){if(e.length>n)throw new Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===n)throw new Error(`Pseudo-class :${t} doesn't have any arguments`)}var rl,j2=v(()=>{rl={empty(e,{adapter:t}){return!t.getChildren(e).some(r=>t.isTag(r)||t.getText(r)!=="")},"first-child"(e,{adapter:t,equals:r}){if(t.prevElementSibling)return t.prevElementSibling(e)==null;let n=t.getSiblings(e).find(i=>t.isTag(i));return n!=null&&r(e,n)},"last-child"(e,{adapter:t,equals:r}){let n=t.getSiblings(e);for(let i=n.length-1;i>=0;i--){if(r(e,n[i]))return!0;if(t.isTag(n[i]))break}return!1},"first-of-type"(e,{adapter:t,equals:r}){let n=t.getSiblings(e),i=t.getName(e);for(let a=0;a<n.length;a++){let u=n[a];if(r(e,u))return!0;if(t.isTag(u)&&t.getName(u)===i)break}return!1},"last-of-type"(e,{adapter:t,equals:r}){let n=t.getSiblings(e),i=t.getName(e);for(let a=n.length-1;a>=0;a--){let u=n[a];if(r(e,u))return!0;if(t.isTag(u)&&t.getName(u)===i)break}return!1},"only-of-type"(e,{adapter:t,equals:r}){let n=t.getName(e);return t.getSiblings(e).every(i=>r(e,i)||!t.isTag(i)||t.getName(i)!==n)},"only-child"(e,{adapter:t,equals:r}){return t.getSiblings(e).every(n=>r(e,n)||!t.isTag(n))}}});var Vd,W2=v(()=>{Vd={"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])"}});function vg(e,t){return e===Un.default.falseFunc?Un.default.falseFunc:r=>t.isTag(r)&&e(r)}function Tg(e,t){let r=t.getSiblings(e);if(r.length<=1)return[];let n=r.indexOf(e);return n<0||n===r.length-1?[]:r.slice(n+1).filter(t.isTag)}function bg(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 Un,Eg,_g,qd,zd=v(()=>{Un=ln(za(),1);hg();Eg={};_g=(e,t,r,n,i)=>{let a=i(t,bg(r),n);return a===Un.default.trueFunc?e:a===Un.default.falseFunc?Un.default.falseFunc:u=>a(u)&&e(u)},qd={is:_g,matches:_g,where:_g,not(e,t,r,n,i){let a=i(t,bg(r),n);return a===Un.default.falseFunc?e:a===Un.default.trueFunc?Un.default.falseFunc:u=>!a(u)&&e(u)},has(e,t,r,n,i){let{adapter:a}=r,u=bg(r);u.relativeSelector=!0;let l=t.some(g=>g.some(el))?[Eg]:void 0,d=i(t,u,l);if(d===Un.default.falseFunc)return Un.default.falseFunc;let p=vg(d,a);if(l&&d!==Un.default.trueFunc){let{shouldTestNextSiblings:g=!1}=d;return E=>{if(!e(E))return!1;l[0]=E;let _=a.getChildren(E),y=g?[..._,...Tg(E,a)]:_;return a.existsOne(p,y)}}return g=>e(g)&&a.existsOne(p,a.getChildren(g))}}});function G2(e,t,r,n,i){var a;let{name:u,data:l}=t;if(Array.isArray(l)){if(!(u in qd))throw new Error(`Unknown pseudo-class :${u}(${l})`);return qd[u](e,l,r,n,i)}let d=(a=r.pseudos)===null||a===void 0?void 0:a[u],p=typeof d=="string"?d:Vd[u];if(typeof p=="string"){if(l!=null)throw new Error(`Pseudo ${u} doesn't have any arguments`);let g=ia(p);return qd.is(e,g,r,n,i)}if(typeof d=="function")return gg(d,u,l,1),g=>d(g,l)&&e(g);if(u in cu)return cu[u](e,l,r,n);if(u in rl){let g=rl[u];return gg(g,u,l,2),E=>g(E,r,l)&&e(E)}throw new Error(`Unknown pseudo-class :${u}`)}var xg=v(()=>{ou();K2();j2();W2();zd()});function yg(e,t){let r=t.getParent(e);return r&&t.isTag(r)?r:null}function Q2(e,t,r,n,i){let{adapter:a,equals:u}=r;switch(t.type){case Ee.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Ee.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Ee.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()),B2[t.action](e,t,r)}case Ee.Pseudo:return G2(e,t,r,n,i);case Ee.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:l}=t;return(!r.xmlMode||r.lowerCaseTags)&&(l=l.toLowerCase()),function(p){return a.getName(p)===l&&e(p)}}case Ee.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(p){let g=p;for(;g=yg(g,a);)if(e(g))return!0;return!1};let l=new WeakSet;return function(p){let g=p;for(;g=yg(g,a);)if(!l.has(g)){if(a.isTag(g)&&e(g))return!0;l.add(g)}return!1}}case"_flexibleDescendant":return function(d){let p=d;do if(e(p))return!0;while(p=yg(p,a));return!1};case Ee.Parent:return function(d){return a.getChildren(d).some(p=>a.isTag(p)&&e(p))};case Ee.Child:return function(d){let p=a.getParent(d);return p!=null&&a.isTag(p)&&e(p)};case Ee.Sibling:return function(d){let p=a.getSiblings(d);for(let g=0;g<p.length;g++){let E=p[g];if(u(d,E))break;if(a.isTag(E)&&e(E))return!0}return!1};case Ee.Adjacent:return a.prevElementSibling?function(d){let p=a.prevElementSibling(d);return p!=null&&e(p)}:function(d){let p=a.getSiblings(d),g;for(let E=0;E<p.length;E++){let _=p[E];if(u(d,_))break;a.isTag(_)&&(g=_)}return!!g&&e(g)};case Ee.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}var X2=v(()=>{$2();xg();ou()});function Z2(e,t,r){let n=Yd(e,t,r);return vg(n,t.adapter)}function Yd(e,t,r){let n=typeof e=="string"?ia(e):e;return Kd(n,t,r)}function J2(e){return e.type===Ee.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(t=>t.some(J2)))}function gP(e,{adapter:t},r){let n=!!r?.every(i=>{let a=t.isTag(i)&&t.getParent(i);return i===Eg||a&&t.isTag(a)});for(let i of e){if(!(i.length>0&&el(i[0])&&i[0].type!==Ee.Descendant))if(n&&!i.some(J2))i.unshift(hP);else continue;i.unshift(mP)}}function Kd(e,t,r){var n;e.forEach(dg),r=(n=t.context)!==null&&n!==void 0?n:r;let i=Array.isArray(r),a=r&&(Array.isArray(r)?r:[r]);if(t.relativeSelector!==!1)gP(e,t,a);else if(e.some(d=>d.length>0&&el(d[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let u=!1,l=e.map(d=>{if(d.length>=2){let[p,g]=d;p.type!==Ee.Pseudo||p.name!=="scope"||(i&&g.type===Ee.Descendant?d[1]=pP:(g.type===Ee.Adjacent||g.type===Ee.Sibling)&&(u=!0))}return _P(d,t,a)}).reduce(bP,aa.default.falseFunc);return l.shouldTestNextSiblings=u,l}function _P(e,t,r){var n;return e.reduce((i,a)=>i===aa.default.falseFunc?aa.default.falseFunc:Q2(i,a,t,r,Kd),(n=t.rootFunc)!==null&&n!==void 0?n:aa.default.trueFunc)}function bP(e,t){return t===aa.default.falseFunc||e===aa.default.trueFunc?e:e===aa.default.falseFunc||t===aa.default.trueFunc?t:function(n){return e(n)||t(n)}}var aa,hP,pP,mP,ew=v(()=>{ou();aa=ln(za(),1);hg();X2();zd();hP={type:Ee.Descendant},pP={type:"_flexibleDescendant"},mP={type:Ee.Pseudo,name:"scope",data:null}});function rw(e){var t,r,n,i;let a=e??EP;return(t=a.adapter)!==null&&t!==void 0||(a.adapter=qa),(r=a.equals)!==null&&r!==void 0||(a.equals=(i=(n=a.adapter)===null||n===void 0?void 0:n.equals)!==null&&i!==void 0?i:tw),a}function wg(e){return function(r,n,i){let a=rw(n);return e(r,a,i)}}function nw(e){return function(r,n,i){let a=rw(i);typeof r!="function"&&(r=Yd(r,a,n));let u=Wd(n,a.adapter,r.shouldTestNextSiblings);return e(r,u,a)}}function Wd(e,t,r=!1){return r&&(e=vP(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}function vP(e,t){let r=Array.isArray(e)?e.slice(0):[e],n=r.length;for(let i=0;i<n;i++){let a=Tg(r[i],t);r.push(...a)}return r}var Ag,tw,EP,_ie,bie,jd,Eie,vie,Sg=v(()=>{ci();Ag=ln(za(),1);ew();zd();xg();tw=(e,t)=>e===t,EP={adapter:qa,equals:tw};_ie=wg(Z2),bie=wg(Yd),jd=wg(Kd);Eie=nw((e,t,r)=>e===Ag.default.falseFunc||!t||t.length===0?[]:r.adapter.findAll(e,t)),vie=nw((e,t,r)=>e===Ag.default.falseFunc||!t||t.length===0?null:r.adapter.findOne(e,t))});function lu(e){return e.type!=="pseudo"?!1:TP.has(e.name)?!0:e.name==="not"&&Array.isArray(e.data)?e.data.some(t=>t.some(lu)):!1}function iw(e,t,r){let 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}}var TP,Cg=v(()=>{TP=new Set(["first","last","eq","gt","nth","lt","even","odd"])});function aw(e){for(;e.parent;)e=e.parent;return e}function Gd(e){let t=[],r=[];for(let n of e)n.some(lu)?t.push(n):r.push(n);return[r,t]}var sw=v(()=>{Cg()});function Og(e,t,r={}){return Dg([e],t,r)}function Dg(e,t,r={}){if(typeof t=="function")return e.some(t);let[n,i]=Gd(ia(t));return n.length>0&&e.some(jd(n,r))||i.some(a=>uw(a,e,r).length>0)}function AP(e,t,r,n){let 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((a,u)=>u%2===0);case"odd":return t.filter((a,u)=>u%2===1);case"not":{let a=new Set(ow(r,t,n));return t.filter(u=>!a.has(u))}}}function kg(e,t,r={}){return ow(ia(e),t,r)}function ow(e,t,r){if(t.length===0)return[];let[n,i]=Gd(e),a;if(n.length){let u=Ng(t,n,r);if(i.length===0)return u;u.length&&(a=new Set(u))}for(let u=0;u<i.length&&a?.size!==t.length;u++){let l=i[u];if((a?t.filter(g=>_e(g)&&!a.has(g)):t).length===0)break;let p=uw(l,t,r);if(p.length)if(a)p.forEach(g=>a.add(g));else{if(u===i.length-1)return p;a=new Set(p)}}return typeof a<"u"?a.size===t.length?t:t.filter(u=>a.has(u)):[]}function uw(e,t,r){var n;if(e.some(zs)){let i=(n=r.root)!==null&&n!==void 0?n:aw(t[0]),a={...r,context:t,relativeSelector:!1};return e.push(yP),Xd(i,e,a,!0,t.length)}return Xd(t,e,r,!1,t.length)}function cw(e,t,r={},n=1/0){if(typeof e=="function")return lw(t,e);let[i,a]=Gd(ia(e)),u=a.map(l=>Xd(t,l,r,!0,n));return i.length&&u.push(Ig(t,i,r,n)),u.length===0?[]:u.length===1?u[0]:Ua(u.reduce((l,d)=>[...l,...d]))}function Xd(e,t,r,n,i){let a=t.findIndex(lu),u=t.slice(0,a),l=t[a],d=t.length-1===a?i:1/0,p=iw(l.name,l.data,d);if(p===0)return[];let E=(u.length===0&&!Array.isArray(e)?ru(e).filter(_e):u.length===0?(Array.isArray(e)?e:[e]).filter(_e):n||u.some(zs)?Ig(e,[u],r,p):Ng(e,[u],r)).slice(0,p),_=AP(l.name,E,l.data,r);if(_.length===0||t.length===a+1)return _;let y=t.slice(a+1),C=y.some(zs);if(C){if(zs(y[0])){let{type:D}=y[0];(D===Ee.Sibling||D===Ee.Adjacent)&&(_=Wd(_,qa,!0)),y.unshift(xP)}r={...r,relativeSelector:!1,rootFunc:D=>_.includes(D)}}else r.rootFunc&&r.rootFunc!==Qd.trueFunc&&(r={...r,rootFunc:Qd.trueFunc});return y.some(lu)?Xd(_,y,r,!1,i):C?Ig(_,[y],r,i):Ng(_,[y],r)}function Ig(e,t,r,n){let i=jd(t,r,e);return lw(e,i,n)}function lw(e,t,r=1/0){let n=Wd(e,qa,t.shouldTestNextSiblings);return Pd(i=>_e(i)&&t(i),n,!0,r)}function Ng(e,t,r){let n=(Array.isArray(e)?e:[e]).filter(_e);if(n.length===0)return n;let i=jd(t,r);return i===Qd.trueFunc?n:n.filter(i)}var Qd,xP,yP,fw=v(()=>{ou();Sg();ci();Qd=ln(za(),1);sw();Cg();Sg();xP={type:Ee.Universal,namespace:null},yP={type:Ee.Pseudo,name:"scope",data:null}});var Fg={};Nn(Fg,{_findBySelector:()=>IP,add:()=>r4,addBack:()=>n4,children:()=>HP,closest:()=>kP,contents:()=>UP,each:()=>VP,end:()=>t4,eq:()=>QP,filter:()=>zP,filterArray:()=>Mg,find:()=>CP,first:()=>WP,get:()=>XP,has:()=>jP,index:()=>JP,is:()=>YP,last:()=>GP,map:()=>qP,next:()=>RP,nextAll:()=>LP,nextUntil:()=>PP,not:()=>KP,parent:()=>NP,parents:()=>OP,parentsUntil:()=>DP,prev:()=>MP,prevAll:()=>FP,prevUntil:()=>BP,siblings:()=>$P,slice:()=>e4,toArray:()=>ZP});function CP(e){if(!e)return this._make([]);if(typeof e!="string"){let t=Hn(e)?e.toArray():[e],r=this.toArray();return this._make(t.filter(n=>r.some(i=>Gc(i,n))))}return this._findBySelector(e,Number.POSITIVE_INFINITY)}function IP(e,t){var r;let n=this.toArray(),i=SP.test(e)?n:this.children().toArray(),a={context:n,root:(r=this._root)===null||r===void 0?void 0:r[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(cw(e,i,a,t))}function Rg(e){return function(t,...r){return function(n){var i;let a=e(t,this);return n&&(a=Mg(a,n,this.options.xmlMode,(i=this._root)===null||i===void 0?void 0:i[0])),this._make(this.length>1&&a.length>1?r.reduce((u,l)=>l(u),a):a)}}}function Pg(e,...t){let r=null,n=Rg((i,a)=>{let u=[];return gt(a,l=>{for(let d;(d=i(l))&&!r?.(d,u.length);l=d)u.push(d)}),u})(e,...t);return function(i,a){r=typeof i=="string"?l=>Og(l,i,this.options):i?il(i):null;let u=n.call(this,a);return r=null,u}}function fu(e){return e.length>1?Array.from(new Set(e)):e}function kP(e){var t;let r=[];if(!e)return this._make(r);let n={xmlMode:this.options.xmlMode,root:(t=this._root)===null||t===void 0?void 0:t[0]},i=typeof e=="string"?a=>Og(a,e,n):il(e);return gt(this,a=>{for(a&&!Bn(a)&&!_e(a)&&(a=a.parent);a&&_e(a);){if(i(a,0)){r.includes(a)||r.push(a);break}a=a.parent}}),this._make(r)}function UP(){let e=this.toArray().reduce((t,r)=>ht(r)?t.concat(r.children):t,[]);return this._make(e)}function VP(e){let t=0,r=this.length;for(;t<r&&e.call(this[t],t,this[t])!==!1;)++t;return this}function qP(e){let t=[];for(let r=0;r<this.length;r++){let n=this[r],i=e.call(n,r,n);i!=null&&(t=t.concat(i))}return this._make(t)}function il(e){return typeof e=="function"?(t,r)=>e.call(t,r,t):Hn(e)?t=>Array.prototype.includes.call(e,t):function(t){return e===t}}function zP(e){var t;return this._make(Mg(this.toArray(),e,this.options.xmlMode,(t=this._root)===null||t===void 0?void 0:t[0]))}function Mg(e,t,r,n){return typeof t=="string"?kg(t,e,{xmlMode:r,root:n}):e.filter(il(t))}function YP(e){let t=this.toArray();return typeof e=="string"?Dg(t.filter(_e),e,this.options):e?t.some(il(e)):!1}function KP(e){let t=this.toArray();if(typeof e=="string"){let r=new Set(kg(e,t,this.options));t=t.filter(n=>!r.has(n))}else{let r=il(e);t=t.filter((n,i)=>!r(n,i))}return this._make(t)}function jP(e){return this.filter(typeof e=="string"?`:has(${e})`:(t,r)=>this._make(r).find(e).length>0)}function WP(){return this.length>1?this._make(this[0]):this}function GP(){return this.length>0?this._make(this[this.length-1]):this}function QP(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:[]))}function XP(e){return e==null?this.toArray():this[e<0?this.length+e:e]}function ZP(){return Array.prototype.slice.call(this)}function JP(e){let 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=Hn(e)?e[0]:e),Array.prototype.indexOf.call(t,r)}function e4(e,t){return this._make(Array.prototype.slice.call(this,e,t))}function t4(){var e;return(e=this.prevObject)!==null&&e!==void 0?e:this._make([])}function r4(e,t){let r=this._make(e,t),n=Ua([...this.get(),...r.get()]);return this._make(n)}function n4(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this}var SP,nl,Lg,NP,OP,DP,RP,LP,PP,MP,FP,BP,$P,HP,dw=v(()=>{_r();fw();au();iu();ci();SP=/^\s*[+~]/;nl=Rg((e,t)=>{let r=[];for(let n=0;n<t.length;n++){let i=e(t[n]);i.length>0&&(r=r.concat(i))}return r}),Lg=Rg((e,t)=>{let r=[];for(let n=0;n<t.length;n++){let i=e(t[n]);i!==null&&r.push(i)}return r});NP=Lg(({parent:e})=>e&&!Bn(e)?e:null,fu),OP=nl(e=>{let t=[];for(;e.parent&&!Bn(e.parent);)t.push(e.parent),e=e.parent;return t},Ua,e=>e.reverse()),DP=Pg(({parent:e})=>e&&!Bn(e)?e:null,Ua,e=>e.reverse());RP=Lg(e=>Rd(e)),LP=nl(e=>{let t=[];for(;e.next;)e=e.next,_e(e)&&t.push(e);return t},fu),PP=Pg(e=>Rd(e),fu),MP=Lg(e=>Ld(e)),FP=nl(e=>{let t=[];for(;e.prev;)e=e.prev,_e(e)&&t.push(e);return t},fu),BP=Pg(e=>Ld(e),fu),$P=nl(e=>Z0(e).filter(t=>_e(t)&&t!==e),Ua),HP=nl(e=>ru(e).filter(_e),fu)});function hw(e){return function(r,n,i,a){if(typeof Buffer<"u"&&Buffer.isBuffer(r)&&(r=r.toString()),typeof r=="string")return e(r,n,i,a);let u=r;if(!Array.isArray(u)&&Bn(u))return u;let l=new wn([]);return Ya(u,l),l}}function Ya(e,t){let r=Array.isArray(e)?e:[e];t?t.children=r:t=null;for(let n=0;n<r.length;n++){let i=r[n];i.parent&&i.parent.children!==r&&na(i),t?(i.prev=r[n-1]||null,i.next=r[n+1]||null):i.prev=i.next=null,i.parent=t}return t}var Bg=v(()=>{ci();_r()});var $g={};Nn($g,{_makeDomArray:()=>i4,after:()=>h4,append:()=>o4,appendTo:()=>a4,before:()=>m4,clone:()=>y4,empty:()=>E4,html:()=>v4,insertAfter:()=>p4,insertBefore:()=>g4,prepend:()=>u4,prependTo:()=>s4,remove:()=>_4,replaceWith:()=>b4,text:()=>x4,toString:()=>T4,unwrap:()=>f4,wrap:()=>c4,wrapAll:()=>d4,wrapInner:()=>l4});function i4(e,t){if(e==null)return[];if(typeof e=="string")return this._parse(e,this.options,!1,null).children.slice(0);if("length"in e){if(e.length===1)return this._makeDomArray(e[0],t);let r=[];for(let n=0;n<e.length;n++){let i=e[n];if(typeof i=="object"){if(i==null)continue;if(!("length"in i)){r.push(t?Go(i,!0):i);continue}}r.push(...this._makeDomArray(i,t))}return r}return[t?Go(e,!0):e]}function pw(e){return function(...t){let r=this.length-1;return gt(this,(n,i)=>{if(!ht(n))return;let a=typeof t[0]=="function"?t[0].call(n,i,this._render(n.children)):t,u=this._makeDomArray(a,i<r);e(u,n.children,n)})}}function Ka(e,t,r,n,i){var a,u;let l=[t,r,...n],d=t===0?null:e[t-1],p=t+r>=e.length?null:e[t+r];for(let g=0;g<n.length;++g){let E=n[g],_=E.parent;if(_){let C=_.children.indexOf(E);C>-1&&(_.children.splice(C,1),i===_&&t>C&&l[0]--)}E.parent=i,E.prev&&(E.prev.next=(a=E.next)!==null&&a!==void 0?a:null),E.next&&(E.next.prev=(u=E.prev)!==null&&u!==void 0?u:null),E.prev=g===0?d:n[g-1],E.next=g===n.length-1?p:n[g+1]}return d&&(d.next=n[0]),p&&(p.prev=n[n.length-1]),e.splice(...l)}function a4(e){return(Hn(e)?e:this._make(e)).append(this),this}function s4(e){return(Hn(e)?e:this._make(e)).prepend(this),this}function mw(e){return function(t){let r=this.length-1,n=this.parents().last();for(let i=0;i<this.length;i++){let a=this[i],u=typeof t=="function"?t.call(a,i,a):typeof t=="string"&&!Qc(t)?n.find(t).clone():t,[l]=this._makeDomArray(u,i<r);if(!l||!ht(l))continue;let d=l,p=0;for(;p<d.children.length;){let g=d.children[p];_e(g)?(d=g,p=0):p++}e(a,d,[l])}return this}}function f4(e){return this.parent(e).not("body").each((t,r)=>{this._make(r).replaceWith(r.children)}),this}function d4(e){let t=this[0];if(t){let r=this._make(typeof e=="function"?e.call(t,0,t):e).insertBefore(t),n;for(let a=0;a<r.length;a++)r[a].type==="tag"&&(n=r[a]);let i=0;for(;n&&i<n.children.length;){let a=n.children[i];a.type==="tag"?(n=a,i=0):i++}n&&this._make(n).append(this)}return this}function h4(...e){let t=this.length-1;return gt(this,(r,n)=>{if(!ht(r)||!r.parent)return;let i=r.parent.children,a=i.indexOf(r);if(a<0)return;let u=typeof e[0]=="function"?e[0].call(r,n,this._render(r.children)):e,l=this._makeDomArray(u,n<t);Ka(i,a+1,0,l,r.parent)})}function p4(e){typeof e=="string"&&(e=this._make(e)),this.remove();let t=[];for(let r of this._makeDomArray(e)){let n=this.clone().toArray(),{parent:i}=r;if(!i)continue;let a=i.children,u=a.indexOf(r);u<0||(Ka(a,u+1,0,n,i),t.push(...n))}return this._make(t)}function m4(...e){let t=this.length-1;return gt(this,(r,n)=>{if(!ht(r)||!r.parent)return;let i=r.parent.children,a=i.indexOf(r);if(a<0)return;let u=typeof e[0]=="function"?e[0].call(r,n,this._render(r.children)):e,l=this._makeDomArray(u,n<t);Ka(i,a,0,l,r.parent)})}function g4(e){let t=this._make(e);this.remove();let r=[];return gt(t,n=>{let i=this.clone().toArray(),{parent:a}=n;if(!a)return;let u=a.children,l=u.indexOf(n);l<0||(Ka(u,l,0,i,a),r.push(...i))}),this._make(r)}function _4(e){let t=e?this.filter(e):this;return gt(t,r=>{na(r),r.prev=r.next=r.parent=null}),this}function b4(e){return gt(this,(t,r)=>{let{parent:n}=t;if(!n)return;let i=n.children,a=typeof e=="function"?e.call(t,r,t):e,u=this._makeDomArray(a);Ya(u,null);let l=i.indexOf(t);Ka(i,l,1,u,n),u.includes(t)||(t.parent=t.prev=t.next=null)})}function E4(){return gt(this,e=>{if(ht(e)){for(let t of e.children)t.next=t.prev=t.parent=null;e.children.length=0}})}function v4(e){if(e===void 0){let t=this[0];return!t||!ht(t)?null:this._render(t.children)}return gt(this,t=>{if(!ht(t))return;for(let n of t.children)n.next=n.prev=n.parent=null;let r=Hn(e)?e.toArray():this._parse(`${e}`,this.options,!1,t).children;Ya(r,t)})}function T4(){return this._render(this)}function x4(e){return e===void 0?Vs(this):typeof e=="function"?gt(this,(t,r)=>this._make(t).text(e.call(t,r,Vs([t])))):gt(this,t=>{if(!ht(t))return;for(let n of t.children)n.next=n.prev=n.parent=null;let r=new Oi(`${e}`);Ya(r,t)})}function y4(){let e=Array.prototype.map.call(this.get(),r=>Go(r,!0)),t=new wn(e);for(let r of e)r.parent=t;return this._make(e)}var o4,u4,c4,l4,gw=v(()=>{_r();Bg();iu();au();ci();o4=pw((e,t,r)=>{Ka(t,t.length,0,e,r)}),u4=pw((e,t,r)=>{Ka(t,0,0,e,r)});c4=mw((e,t,r)=>{let{parent:n}=e;if(!n)return;let i=n.children,a=i.indexOf(e);Ya([e],t),Ka(i,a,0,r,n)}),l4=mw((e,t,r)=>{ht(e)&&(Ya(e.children,t),Ya(r,e))})});var Hg={};Nn(Hg,{css:()=>A4});function A4(e,t){if(e!=null&&t!=null||typeof e=="object"&&!Array.isArray(e))return gt(this,(r,n)=>{_e(r)&&_w(r,e,t,n)});if(this.length!==0)return bw(this[0],e)}function _w(e,t,r,n){if(typeof t=="string"){let i=bw(e),a=typeof r=="function"?r.call(e,n,i[t]):r;a===""?delete i[t]:a!=null&&(i[t]=a),e.attribs.style=w4(i)}else if(typeof t=="object"){let i=Object.keys(t);for(let a=0;a<i.length;a++){let u=i[a];_w(e,u,t[u],a)}}}function bw(e,t){if(!e||!_e(e))return;let r=S4(e.attribs.style);if(typeof t=="string")return r[t];if(Array.isArray(t)){let n={};for(let i of t)r[i]!=null&&(n[i]=r[i]);return n}return r}function w4(e){return Object.keys(e).reduce((t,r)=>`${t}${t?" ":""}${r}: ${e[r]};`,"")}function S4(e){if(e=(e||"").trim(),!e)return{};let t={},r;for(let n of e.split(";")){let i=n.indexOf(":");if(i<1||i===n.length-1){let a=n.trimEnd();a.length>0&&r!==void 0&&(t[r]+=`;${a}`)}else r=n.slice(0,i).trim(),t[r]=n.slice(i+1).trim()}return t}var Ew=v(()=>{au();_r()});var Ug={};Nn(Ug,{serialize:()=>I4,serializeArray:()=>N4});function I4(){return this.serializeArray().map(r=>`${encodeURIComponent(r.name)}=${encodeURIComponent(r.value)}`).join("&").replace(C4,"+")}function N4(){return this.map((e,t)=>{let r=this._make(t);return _e(t)&&t.name==="form"?r.find(vw).toArray():r.filter(vw).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((e,t)=>{var r;let n=this._make(t),i=n.attr("name"),a=(r=n.val())!==null&&r!==void 0?r:"";return Array.isArray(a)?a.map(u=>({name:i,value:u.replace(Tw,`\r
`)})):{name:i,value:a.replace(Tw,`\r
`)}}).toArray()}var vw,C4,Tw,xw=v(()=>{_r();vw="input,select,textarea,keygen",C4=/%20/g,Tw=/\r?\n/g});var Vg={};Nn(Vg,{extract:()=>D4});function O4(e){var t;return typeof e=="string"?{selector:e,value:"textContent"}:{selector:e.selector,value:(t=e.value)!==null&&t!==void 0?t:"textContent"}}function D4(e){let t={};for(let r in e){let n=e[r],i=Array.isArray(n),{selector:a,value:u}=O4(i?n[0]:n),l=typeof u=="function"?u:typeof u=="string"?d=>this._make(d).prop(u):d=>this._make(d).extract(u);if(i)t[r]=this._findBySelector(a,Number.POSITIVE_INFINITY).map((d,p)=>l(p,r,t)).get();else{let d=this._findBySelector(a,1);t[r]=d.length>0?l(d[0],r,t):void 0}}return t}var yw=v(()=>{});var ja,Aw=v(()=>{N2();dw();gw();Ew();xw();yw();ja=class{constructor(t,r,n){if(this.length=0,this.options=n,this._root=r,t){for(let i=0;i<t.length;i++)this[i]=t[i];this.length=t.length}}};ja.prototype.cheerio="[cheerio object]";ja.prototype.splice=Array.prototype.splice;ja.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(ja.prototype,cg,Fg,$g,Hg,Ug,Vg)});function ww(e,t){return function r(n,i,a=!0){if(n==null)throw new Error("cheerio.load() expects a string");let u=Wc(i),l=e(n,u,a,null);class d extends ja{_make(E,_){let y=p(E,_);return y.prevObject=this,y}_parse(E,_,y,C){return e(E,_,y,C)}_render(E){return t(E,this.options)}}function p(g,E,_=l,y){if(g&&Hn(g))return g;let C=Wc(y,u),D=typeof _=="string"?[e(_,C,!1,null)]:"length"in _?_:[_],P=Hn(D)?D:new d(D,null,C);if(P._root=P,!g)return new d(void 0,P,C);let N=typeof g=="string"&&Qc(g)?e(g,C,!1,null).children:k4(g)?[g]:Array.isArray(g)?g:void 0,L=new d(N,P,C);if(N)return L;if(typeof g!="string")throw new TypeError("Unexpected type of selector");let H=g,R=E?typeof E=="string"?Qc(E)?new d([e(E,C,!1,null)],P,C):(H=`${E} ${H}`,P):Hn(E)?E:new d(Array.isArray(E)?E:[E],P,C):P;return R?R.find(H):L}return Object.assign(p,ag,{load:r,_root:l,_options:u,fn:d.prototype,prototype:d.prototype}),p}}function k4(e){return!!e.name||e.type==="root"||e.type==="text"||e.type==="comment"}var Sw=v(()=>{ng();iu();Aw();au()});function Zd(e){return e>=55296&&e<=57343}function Cw(e){return e>=56320&&e<=57343}function Iw(e,t){return(e-55296)*1024+9216+t}function Jd(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function eh(e){return e>=64976&&e<=65007||R4.has(e)}var R4,xt,x,Vr,th=v(()=>{R4=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]),xt="\uFFFD";(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.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_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_Z=122]="LATIN_SMALL_Z"})(x||(x={}));Vr={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"}});var Y,al=v(()=>{(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"})(Y||(Y={}))});var P4,rh,Nw=v(()=>{th();al();P4=65536,rh=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=P4,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,r){let{line:n,col:i,offset:a}=this,u=i+r,l=a+r;return{code:t,startLine:n,endLine:n,startCol:u,endCol:u,startOffset:l,endOffset:l}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_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(Cw(r))return this.pos++,this._addGap(),Iw(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,x.EOF;return this._err(Y.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,x.EOF;let n=this.html.charCodeAt(r);return n===x.CARRIAGE_RETURN?x.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,x.EOF;let t=this.html.charCodeAt(this.pos);return t===x.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,x.LINE_FEED):t===x.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Zd(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===x.LINE_FEED||t===x.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Jd(t)?this._err(Y.controlCharacterInInputStream):eh(t)&&this._err(Y.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}});function nh(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}var Qe,ih=v(()=>{(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"})(Qe||(Qe={}))});var ah={};Nn(ah,{ATTRS:()=>Di,DOCUMENT_MODE:()=>kr,NS:()=>ee,NUMBERED_HEADERS:()=>du,SPECIAL_ELEMENTS:()=>qg,TAG_ID:()=>c,TAG_NAMES:()=>U,getTagID:()=>Wa,hasUnescapedText:()=>zg});function Wa(e){var t;return(t=F4.get(e))!==null&&t!==void 0?t:c.UNKNOWN}function zg(e,t){return B4.has(e)||t&&e===U.NOSCRIPT}var ee,Di,kr,U,c,F4,ae,qg,du,B4,sa=v(()=>{(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/"})(ee||(ee={}));(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"})(Di||(Di={}));(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(kr||(kr={}));(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.SEARCH="search",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"})(U||(U={}));(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.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(c||(c={}));F4=new Map([[U.A,c.A],[U.ADDRESS,c.ADDRESS],[U.ANNOTATION_XML,c.ANNOTATION_XML],[U.APPLET,c.APPLET],[U.AREA,c.AREA],[U.ARTICLE,c.ARTICLE],[U.ASIDE,c.ASIDE],[U.B,c.B],[U.BASE,c.BASE],[U.BASEFONT,c.BASEFONT],[U.BGSOUND,c.BGSOUND],[U.BIG,c.BIG],[U.BLOCKQUOTE,c.BLOCKQUOTE],[U.BODY,c.BODY],[U.BR,c.BR],[U.BUTTON,c.BUTTON],[U.CAPTION,c.CAPTION],[U.CENTER,c.CENTER],[U.CODE,c.CODE],[U.COL,c.COL],[U.COLGROUP,c.COLGROUP],[U.DD,c.DD],[U.DESC,c.DESC],[U.DETAILS,c.DETAILS],[U.DIALOG,c.DIALOG],[U.DIR,c.DIR],[U.DIV,c.DIV],[U.DL,c.DL],[U.DT,c.DT],[U.EM,c.EM],[U.EMBED,c.EMBED],[U.FIELDSET,c.FIELDSET],[U.FIGCAPTION,c.FIGCAPTION],[U.FIGURE,c.FIGURE],[U.FONT,c.FONT],[U.FOOTER,c.FOOTER],[U.FOREIGN_OBJECT,c.FOREIGN_OBJECT],[U.FORM,c.FORM],[U.FRAME,c.FRAME],[U.FRAMESET,c.FRAMESET],[U.H1,c.H1],[U.H2,c.H2],[U.H3,c.H3],[U.H4,c.H4],[U.H5,c.H5],[U.H6,c.H6],[U.HEAD,c.HEAD],[U.HEADER,c.HEADER],[U.HGROUP,c.HGROUP],[U.HR,c.HR],[U.HTML,c.HTML],[U.I,c.I],[U.IMG,c.IMG],[U.IMAGE,c.IMAGE],[U.INPUT,c.INPUT],[U.IFRAME,c.IFRAME],[U.KEYGEN,c.KEYGEN],[U.LABEL,c.LABEL],[U.LI,c.LI],[U.LINK,c.LINK],[U.LISTING,c.LISTING],[U.MAIN,c.MAIN],[U.MALIGNMARK,c.MALIGNMARK],[U.MARQUEE,c.MARQUEE],[U.MATH,c.MATH],[U.MENU,c.MENU],[U.META,c.META],[U.MGLYPH,c.MGLYPH],[U.MI,c.MI],[U.MO,c.MO],[U.MN,c.MN],[U.MS,c.MS],[U.MTEXT,c.MTEXT],[U.NAV,c.NAV],[U.NOBR,c.NOBR],[U.NOFRAMES,c.NOFRAMES],[U.NOEMBED,c.NOEMBED],[U.NOSCRIPT,c.NOSCRIPT],[U.OBJECT,c.OBJECT],[U.OL,c.OL],[U.OPTGROUP,c.OPTGROUP],[U.OPTION,c.OPTION],[U.P,c.P],[U.PARAM,c.PARAM],[U.PLAINTEXT,c.PLAINTEXT],[U.PRE,c.PRE],[U.RB,c.RB],[U.RP,c.RP],[U.RT,c.RT],[U.RTC,c.RTC],[U.RUBY,c.RUBY],[U.S,c.S],[U.SCRIPT,c.SCRIPT],[U.SEARCH,c.SEARCH],[U.SECTION,c.SECTION],[U.SELECT,c.SELECT],[U.SOURCE,c.SOURCE],[U.SMALL,c.SMALL],[U.SPAN,c.SPAN],[U.STRIKE,c.STRIKE],[U.STRONG,c.STRONG],[U.STYLE,c.STYLE],[U.SUB,c.SUB],[U.SUMMARY,c.SUMMARY],[U.SUP,c.SUP],[U.TABLE,c.TABLE],[U.TBODY,c.TBODY],[U.TEMPLATE,c.TEMPLATE],[U.TEXTAREA,c.TEXTAREA],[U.TFOOT,c.TFOOT],[U.TD,c.TD],[U.TH,c.TH],[U.THEAD,c.THEAD],[U.TITLE,c.TITLE],[U.TR,c.TR],[U.TRACK,c.TRACK],[U.TT,c.TT],[U.U,c.U],[U.UL,c.UL],[U.SVG,c.SVG],[U.VAR,c.VAR],[U.WBR,c.WBR],[U.XMP,c.XMP]]);ae=c,qg={[ee.HTML]:new Set([ae.ADDRESS,ae.APPLET,ae.AREA,ae.ARTICLE,ae.ASIDE,ae.BASE,ae.BASEFONT,ae.BGSOUND,ae.BLOCKQUOTE,ae.BODY,ae.BR,ae.BUTTON,ae.CAPTION,ae.CENTER,ae.COL,ae.COLGROUP,ae.DD,ae.DETAILS,ae.DIR,ae.DIV,ae.DL,ae.DT,ae.EMBED,ae.FIELDSET,ae.FIGCAPTION,ae.FIGURE,ae.FOOTER,ae.FORM,ae.FRAME,ae.FRAMESET,ae.H1,ae.H2,ae.H3,ae.H4,ae.H5,ae.H6,ae.HEAD,ae.HEADER,ae.HGROUP,ae.HR,ae.HTML,ae.IFRAME,ae.IMG,ae.INPUT,ae.LI,ae.LINK,ae.LISTING,ae.MAIN,ae.MARQUEE,ae.MENU,ae.META,ae.NAV,ae.NOEMBED,ae.NOFRAMES,ae.NOSCRIPT,ae.OBJECT,ae.OL,ae.P,ae.PARAM,ae.PLAINTEXT,ae.PRE,ae.SCRIPT,ae.SECTION,ae.SELECT,ae.SOURCE,ae.STYLE,ae.SUMMARY,ae.TABLE,ae.TBODY,ae.TD,ae.TEMPLATE,ae.TEXTAREA,ae.TFOOT,ae.TH,ae.THEAD,ae.TITLE,ae.TR,ae.TRACK,ae.UL,ae.WBR,ae.XMP]),[ee.MATHML]:new Set([ae.MI,ae.MO,ae.MN,ae.MS,ae.MTEXT,ae.ANNOTATION_XML]),[ee.SVG]:new Set([ae.TITLE,ae.FOREIGN_OBJECT,ae.DESC]),[ee.XLINK]:new Set,[ee.XML]:new Set,[ee.XMLNS]:new Set},du=new Set([ae.H1,ae.H2,ae.H3,ae.H4,ae.H5,ae.H6]),B4=new Set([U.STYLE,U.SCRIPT,U.XMP,U.IFRAME,U.NOEMBED,U.NOFRAMES,U.PLAINTEXT])});function $4(e){return e>=x.DIGIT_0&&e<=x.DIGIT_9}function sl(e){return e>=x.LATIN_CAPITAL_A&&e<=x.LATIN_CAPITAL_Z}function H4(e){return e>=x.LATIN_SMALL_A&&e<=x.LATIN_SMALL_Z}function Ga(e){return H4(e)||sl(e)}function Ow(e){return Ga(e)||$4(e)}function sh(e){return e+32}function kw(e){return e===x.SPACE||e===x.LINE_FEED||e===x.TABULATION||e===x.FORM_FEED}function Dw(e){return kw(e)||e===x.SOLIDUS||e===x.GREATER_THAN_SIGN}function U4(e){return e===x.NULL?Y.nullCharacterReference:e>1114111?Y.characterReferenceOutsideUnicodeRange:Zd(e)?Y.surrogateCharacterReference:eh(e)?Y.noncharacterCharacterReference:Jd(e)||e===x.CARRIAGE_RETURN?Y.controlCharacterReference:null}var w,Rr,ol,Yg=v(()=>{Nw();th();ih();Jo();al();sa();(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.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(w||(w={}));Rr={DATA:w.DATA,RCDATA:w.RCDATA,RAWTEXT:w.RAWTEXT,SCRIPT_DATA:w.SCRIPT_DATA,PLAINTEXT:w.PLAINTEXT,CDATA_SECTION:w.CDATA_SECTION};ol=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=w.DATA,this.returnState=w.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new rh(r),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Ha(Xo,(n,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(n)},r.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Y.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:n=>{this._err(Y.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+n)},validateNumericCharacterReference:n=>{let i=U4(n);i&&this._err(i,1)}}:void 0)}_err(t,r=0){var n,i;(i=(n=this.handler).onParseError)===null||i===void 0||i.call(n,this.preprocessor.getError(t,r))}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?.())}write(t,r,n){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||n?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_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:Qe.START_TAG,tagName:"",tagID:c.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Qe.END_TAG,tagName:"",tagID:c.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Qe.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Qe.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(nh(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(Y.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=Wa(t.tagName),t.type===Qe.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(Y.endTagWithAttributes),t.selfClosing&&this._err(Y.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 Qe.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Qe.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Qe.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:Qe.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=r;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,r)}_emitCodePoint(t){let r=kw(t)?Qe.WHITESPACE_CHARACTER:t===x.NULL?Qe.NULL_CHARACTER:Qe.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Qe.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=w.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Dr.Attribute:Dr.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===w.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===w.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===w.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case w.DATA:{this._stateData(t);break}case w.RCDATA:{this._stateRcdata(t);break}case w.RAWTEXT:{this._stateRawtext(t);break}case w.SCRIPT_DATA:{this._stateScriptData(t);break}case w.PLAINTEXT:{this._statePlaintext(t);break}case w.TAG_OPEN:{this._stateTagOpen(t);break}case w.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case w.TAG_NAME:{this._stateTagName(t);break}case w.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case w.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case w.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case w.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case w.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case w.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case w.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case w.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case w.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case w.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case w.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case w.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case w.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case w.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case w.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case w.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case w.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case w.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case w.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case w.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case w.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case w.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case w.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case w.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case w.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case w.BOGUS_COMMENT:{this._stateBogusComment(t);break}case w.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case w.COMMENT_START:{this._stateCommentStart(t);break}case w.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case w.COMMENT:{this._stateComment(t);break}case w.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case w.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case w.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case w.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case w.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case w.COMMENT_END:{this._stateCommentEnd(t);break}case w.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case w.DOCTYPE:{this._stateDoctype(t);break}case w.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case w.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case w.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case w.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case w.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case w.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case w.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case w.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case w.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case w.CDATA_SECTION:{this._stateCdataSection(t);break}case w.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case w.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case w.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case w.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case x.LESS_THAN_SIGN:{this.state=w.TAG_OPEN;break}case x.AMPERSAND:{this._startCharacterReference();break}case x.NULL:{this._err(Y.unexpectedNullCharacter),this._emitCodePoint(t);break}case x.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case x.AMPERSAND:{this._startCharacterReference();break}case x.LESS_THAN_SIGN:{this.state=w.RCDATA_LESS_THAN_SIGN;break}case x.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(xt);break}case x.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case x.LESS_THAN_SIGN:{this.state=w.RAWTEXT_LESS_THAN_SIGN;break}case x.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(xt);break}case x.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case x.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_LESS_THAN_SIGN;break}case x.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(xt);break}case x.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case x.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(xt);break}case x.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Ga(t))this._createStartTagToken(),this.state=w.TAG_NAME,this._stateTagName(t);else switch(t){case x.EXCLAMATION_MARK:{this.state=w.MARKUP_DECLARATION_OPEN;break}case x.SOLIDUS:{this.state=w.END_TAG_OPEN;break}case x.QUESTION_MARK:{this._err(Y.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t);break}case x.EOF:{this._err(Y.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Y.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=w.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Ga(t))this._createEndTagToken(),this.state=w.TAG_NAME,this._stateTagName(t);else switch(t){case x.GREATER_THAN_SIGN:{this._err(Y.missingEndTagName),this.state=w.DATA;break}case x.EOF:{this._err(Y.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Y.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){let r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this.state=w.BEFORE_ATTRIBUTE_NAME;break}case x.SOLIDUS:{this.state=w.SELF_CLOSING_START_TAG;break}case x.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentTagToken();break}case x.NULL:{this._err(Y.unexpectedNullCharacter),r.tagName+=xt;break}case x.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(sl(t)?sh(t):t)}}_stateRcdataLessThanSign(t){t===x.SOLIDUS?this.state=w.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=w.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Ga(t)?(this.state=w.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=w.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 x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=w.BEFORE_ATTRIBUTE_NAME,!1;case x.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=w.SELF_CLOSING_START_TAG,!1;case x.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=w.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=w.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===x.SOLIDUS?this.state=w.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=w.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Ga(t)?(this.state=w.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=w.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=w.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case x.SOLIDUS:{this.state=w.SCRIPT_DATA_END_TAG_OPEN;break}case x.EXCLAMATION_MARK:{this.state=w.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=w.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Ga(t)?(this.state=w.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=w.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=w.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===x.HYPHEN_MINUS?(this.state=w.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=w.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===x.HYPHEN_MINUS?(this.state=w.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=w.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case x.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case x.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case x.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(xt);break}case x.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case x.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case x.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case x.NULL:{this._err(Y.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_ESCAPED,this._emitChars(xt);break}case x.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case x.HYPHEN_MINUS:{this._emitChars("-");break}case x.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case x.GREATER_THAN_SIGN:{this.state=w.SCRIPT_DATA,this._emitChars(">");break}case x.NULL:{this._err(Y.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_ESCAPED,this._emitChars(xt);break}case x.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===x.SOLIDUS?this.state=w.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Ga(t)?(this._emitChars("<"),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=w.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Ga(t)?(this.state=w.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=w.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=w.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Vr.SCRIPT,!1)&&Dw(this.preprocessor.peek(Vr.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Vr.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=w.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case x.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case x.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case x.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(xt);break}case x.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case x.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case x.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case x.NULL:{this._err(Y.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(xt);break}case x.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case x.HYPHEN_MINUS:{this._emitChars("-");break}case x.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case x.GREATER_THAN_SIGN:{this.state=w.SCRIPT_DATA,this._emitChars(">");break}case x.NULL:{this._err(Y.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(xt);break}case x.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===x.SOLIDUS?(this.state=w.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Vr.SCRIPT,!1)&&Dw(this.preprocessor.peek(Vr.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Vr.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=w.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.SOLIDUS:case x.GREATER_THAN_SIGN:case x.EOF:{this.state=w.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case x.EQUALS_SIGN:{this._err(Y.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=w.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=w.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:case x.SOLIDUS:case x.GREATER_THAN_SIGN:case x.EOF:{this._leaveAttrName(),this.state=w.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case x.EQUALS_SIGN:{this._leaveAttrName(),this.state=w.BEFORE_ATTRIBUTE_VALUE;break}case x.QUOTATION_MARK:case x.APOSTROPHE:case x.LESS_THAN_SIGN:{this._err(Y.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case x.NULL:{this._err(Y.unexpectedNullCharacter),this.currentAttr.name+=xt;break}default:this.currentAttr.name+=String.fromCodePoint(sl(t)?sh(t):t)}}_stateAfterAttributeName(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.SOLIDUS:{this.state=w.SELF_CLOSING_START_TAG;break}case x.EQUALS_SIGN:{this.state=w.BEFORE_ATTRIBUTE_VALUE;break}case x.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentTagToken();break}case x.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=w.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.QUOTATION_MARK:{this.state=w.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case x.APOSTROPHE:{this.state=w.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case x.GREATER_THAN_SIGN:{this._err(Y.missingAttributeValue),this.state=w.DATA,this.emitCurrentTagToken();break}default:this.state=w.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case x.QUOTATION_MARK:{this.state=w.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case x.AMPERSAND:{this._startCharacterReference();break}case x.NULL:{this._err(Y.unexpectedNullCharacter),this.currentAttr.value+=xt;break}case x.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case x.APOSTROPHE:{this.state=w.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case x.AMPERSAND:{this._startCharacterReference();break}case x.NULL:{this._err(Y.unexpectedNullCharacter),this.currentAttr.value+=xt;break}case x.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this._leaveAttrValue(),this.state=w.BEFORE_ATTRIBUTE_NAME;break}case x.AMPERSAND:{this._startCharacterReference();break}case x.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=w.DATA,this.emitCurrentTagToken();break}case x.NULL:{this._err(Y.unexpectedNullCharacter),this.currentAttr.value+=xt;break}case x.QUOTATION_MARK:case x.APOSTROPHE:case x.LESS_THAN_SIGN:case x.EQUALS_SIGN:case x.GRAVE_ACCENT:{this._err(Y.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case x.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this._leaveAttrValue(),this.state=w.BEFORE_ATTRIBUTE_NAME;break}case x.SOLIDUS:{this._leaveAttrValue(),this.state=w.SELF_CLOSING_START_TAG;break}case x.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=w.DATA,this.emitCurrentTagToken();break}case x.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this._err(Y.missingWhitespaceBetweenAttributes),this.state=w.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case x.GREATER_THAN_SIGN:{let r=this.currentToken;r.selfClosing=!0,this.state=w.DATA,this.emitCurrentTagToken();break}case x.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this._err(Y.unexpectedSolidusInTag),this.state=w.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){let r=this.currentToken;switch(t){case x.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentComment(r);break}case x.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case x.NULL:{this._err(Y.unexpectedNullCharacter),r.data+=xt;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Vr.DASH_DASH,!0)?(this._createCommentToken(Vr.DASH_DASH.length+1),this.state=w.COMMENT_START):this._consumeSequenceIfMatch(Vr.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Vr.DOCTYPE.length+1),this.state=w.DOCTYPE):this._consumeSequenceIfMatch(Vr.CDATA_START,!0)?this.inForeignNode?this.state=w.CDATA_SECTION:(this._err(Y.cdataInHtmlContent),this._createCommentToken(Vr.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=w.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Y.incorrectlyOpenedComment),this._createCommentToken(2),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case x.HYPHEN_MINUS:{this.state=w.COMMENT_START_DASH;break}case x.GREATER_THAN_SIGN:{this._err(Y.abruptClosingOfEmptyComment),this.state=w.DATA;let r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=w.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){let r=this.currentToken;switch(t){case x.HYPHEN_MINUS:{this.state=w.COMMENT_END;break}case x.GREATER_THAN_SIGN:{this._err(Y.abruptClosingOfEmptyComment),this.state=w.DATA,this.emitCurrentComment(r);break}case x.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=w.COMMENT,this._stateComment(t)}}_stateComment(t){let r=this.currentToken;switch(t){case x.HYPHEN_MINUS:{this.state=w.COMMENT_END_DASH;break}case x.LESS_THAN_SIGN:{r.data+="<",this.state=w.COMMENT_LESS_THAN_SIGN;break}case x.NULL:{this._err(Y.unexpectedNullCharacter),r.data+=xt;break}case x.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){let r=this.currentToken;switch(t){case x.EXCLAMATION_MARK:{r.data+="!",this.state=w.COMMENT_LESS_THAN_SIGN_BANG;break}case x.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=w.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===x.HYPHEN_MINUS?this.state=w.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=w.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===x.HYPHEN_MINUS?this.state=w.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=w.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==x.GREATER_THAN_SIGN&&t!==x.EOF&&this._err(Y.nestedComment),this.state=w.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){let r=this.currentToken;switch(t){case x.HYPHEN_MINUS:{this.state=w.COMMENT_END;break}case x.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=w.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){let r=this.currentToken;switch(t){case x.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentComment(r);break}case x.EXCLAMATION_MARK:{this.state=w.COMMENT_END_BANG;break}case x.HYPHEN_MINUS:{r.data+="-";break}case x.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=w.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){let r=this.currentToken;switch(t){case x.HYPHEN_MINUS:{r.data+="--!",this.state=w.COMMENT_END_DASH;break}case x.GREATER_THAN_SIGN:{this._err(Y.incorrectlyClosedComment),this.state=w.DATA,this.emitCurrentComment(r);break}case x.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=w.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_NAME;break}case x.GREATER_THAN_SIGN:{this.state=w.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case x.EOF:{this._err(Y.eofInDoctype),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Y.missingWhitespaceBeforeDoctypeName),this.state=w.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(sl(t))this._createDoctypeToken(String.fromCharCode(sh(t))),this.state=w.DOCTYPE_NAME;else switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.NULL:{this._err(Y.unexpectedNullCharacter),this._createDoctypeToken(xt),this.state=w.DOCTYPE_NAME;break}case x.GREATER_THAN_SIGN:{this._err(Y.missingDoctypeName),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case x.EOF:{this._err(Y.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=w.DOCTYPE_NAME}}_stateDoctypeName(t){let r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this.state=w.AFTER_DOCTYPE_NAME;break}case x.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(r);break}case x.NULL:{this._err(Y.unexpectedNullCharacter),r.name+=xt;break}case x.EOF:{this._err(Y.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(sl(t)?sh(t):t)}}_stateAfterDoctypeName(t){let r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(r);break}case x.EOF:{this._err(Y.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Vr.PUBLIC,!1)?this.state=w.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Vr.SYSTEM,!1)?this.state=w.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Y.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){let r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case x.QUOTATION_MARK:{this._err(Y.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case x.APOSTROPHE:{this._err(Y.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case x.GREATER_THAN_SIGN:{this._err(Y.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case x.EOF:{this._err(Y.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){let r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.QUOTATION_MARK:{r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case x.APOSTROPHE:{r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case x.GREATER_THAN_SIGN:{this._err(Y.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case x.EOF:{this._err(Y.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){let r=this.currentToken;switch(t){case x.QUOTATION_MARK:{this.state=w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case x.NULL:{this._err(Y.unexpectedNullCharacter),r.publicId+=xt;break}case x.GREATER_THAN_SIGN:{this._err(Y.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case x.EOF:{this._err(Y.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 x.APOSTROPHE:{this.state=w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case x.NULL:{this._err(Y.unexpectedNullCharacter),r.publicId+=xt;break}case x.GREATER_THAN_SIGN:{this._err(Y.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case x.EOF:{this._err(Y.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 x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this.state=w.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case x.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(r);break}case x.QUOTATION_MARK:{this._err(Y.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case x.APOSTROPHE:{this._err(Y.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case x.EOF:{this._err(Y.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){let r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=w.DATA;break}case x.QUOTATION_MARK:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case x.APOSTROPHE:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case x.EOF:{this._err(Y.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){let r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case x.QUOTATION_MARK:{this._err(Y.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case x.APOSTROPHE:{this._err(Y.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case x.GREATER_THAN_SIGN:{this._err(Y.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case x.EOF:{this._err(Y.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){let r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.QUOTATION_MARK:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case x.APOSTROPHE:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case x.GREATER_THAN_SIGN:{this._err(Y.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case x.EOF:{this._err(Y.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){let r=this.currentToken;switch(t){case x.QUOTATION_MARK:{this.state=w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case x.NULL:{this._err(Y.unexpectedNullCharacter),r.systemId+=xt;break}case x.GREATER_THAN_SIGN:{this._err(Y.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case x.EOF:{this._err(Y.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 x.APOSTROPHE:{this.state=w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case x.NULL:{this._err(Y.unexpectedNullCharacter),r.systemId+=xt;break}case x.GREATER_THAN_SIGN:{this._err(Y.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case x.EOF:{this._err(Y.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 x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=w.DATA;break}case x.EOF:{this._err(Y.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(Y.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){let r=this.currentToken;switch(t){case x.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=w.DATA;break}case x.NULL:{this._err(Y.unexpectedNullCharacter);break}case x.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}default:}}_stateCdataSection(t){switch(t){case x.RIGHT_SQUARE_BRACKET:{this.state=w.CDATA_SECTION_BRACKET;break}case x.EOF:{this._err(Y.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===x.RIGHT_SQUARE_BRACKET?this.state=w.CDATA_SECTION_END:(this._emitChars("]"),this.state=w.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case x.GREATER_THAN_SIGN:{this.state=w.DATA;break}case x.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=w.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(x.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Ow(this.preprocessor.peek(1))?w.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Ow(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===x.SEMICOLON&&this._err(Y.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}});var Mw,Rw,oh,V4,q4,Lw,Pw,z4,Y4,K4,j4,uh,Fw=v(()=>{sa();Mw=new Set([c.DD,c.DT,c.LI,c.OPTGROUP,c.OPTION,c.P,c.RB,c.RP,c.RT,c.RTC]),Rw=new Set([...Mw,c.CAPTION,c.COLGROUP,c.TBODY,c.TD,c.TFOOT,c.TH,c.THEAD,c.TR]),oh=new Set([c.APPLET,c.CAPTION,c.HTML,c.MARQUEE,c.OBJECT,c.TABLE,c.TD,c.TEMPLATE,c.TH]),V4=new Set([...oh,c.OL,c.UL]),q4=new Set([...oh,c.BUTTON]),Lw=new Set([c.ANNOTATION_XML,c.MI,c.MN,c.MO,c.MS,c.MTEXT]),Pw=new Set([c.DESC,c.FOREIGN_OBJECT,c.TITLE]),z4=new Set([c.TR,c.TEMPLATE,c.HTML]),Y4=new Set([c.TBODY,c.TFOOT,c.THEAD,c.TEMPLATE,c.HTML]),K4=new Set([c.TABLE,c.TEMPLATE,c.HTML]),j4=new Set([c.TD,c.TH]),uh=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=c.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===c.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ee.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])!==ee.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(du,ee.HTML)}popUntilTableCellPopped(){this.popUntilPopped(j4,ee.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let n=this.stackTop;n>=0;n--)if(t.has(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(K4,ee.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Y4,ee.HTML)}clearBackToTableRowContext(){this.clearBackTo(z4,ee.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]===c.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]===c.HTML}hasInDynamicScope(t,r){for(let n=this.stackTop;n>=0;n--){let i=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case ee.HTML:{if(i===t)return!0;if(r.has(i))return!1;break}case ee.SVG:{if(Pw.has(i))return!1;break}case ee.MATHML:{if(Lw.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,oh)}hasInListItemScope(t){return this.hasInDynamicScope(t,V4)}hasInButtonScope(t){return this.hasInDynamicScope(t,q4)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case ee.HTML:{if(du.has(r))return!0;if(oh.has(r))return!1;break}case ee.SVG:{if(Pw.has(r))return!1;break}case ee.MATHML:{if(Lw.has(r))return!1;break}}}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===ee.HTML)switch(this.tagIDs[r]){case t:return!0;case c.TABLE:case c.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===ee.HTML)switch(this.tagIDs[t]){case c.TBODY:case c.THEAD:case c.TFOOT:return!0;case c.TABLE:case c.HTML:return!1}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===ee.HTML)switch(this.tagIDs[r]){case t:return!0;case c.OPTION:case c.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;Mw.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Rw.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&Rw.has(this.currentTagId);)this.pop()}}});var li,Bw,ch,$w=v(()=>{(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(li||(li={}));Bw={type:li.Marker},ch=class{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){let n=[],i=r.length,a=this.treeAdapter.getTagName(t),u=this.treeAdapter.getNamespaceURI(t);for(let l=0;l<this.entries.length;l++){let d=this.entries[l];if(d.type===li.Marker)break;let{element:p}=d;if(this.treeAdapter.getTagName(p)===a&&this.treeAdapter.getNamespaceURI(p)===u){let g=this.treeAdapter.getAttrList(p);g.length===i&&n.push({idx:l,attrs:g})}}return n}_ensureNoahArkCondition(t){if(this.entries.length<3)return;let r=this.treeAdapter.getAttrList(t),n=this._getNoahArkConditionCandidates(t,r);if(n.length<3)return;let i=new Map(r.map(u=>[u.name,u.value])),a=0;for(let u=0;u<n.length;u++){let l=n[u];l.attrs.every(d=>i.get(d.name)===d.value)&&(a+=1,a>=3&&this.entries.splice(l.idx,1))}}insertMarker(){this.entries.unshift(Bw)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:li.Element,element:t,token:r})}insertElementAfterBookmark(t,r){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:li.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(Bw);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){let r=this.entries.find(n=>n.type===li.Marker||this.treeAdapter.getTagName(n.element)===t);return r&&r.type===li.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===li.Element&&r.element===t)}}});var Vn,lh=v(()=>{sa();Vn={createDocument(){return{nodeName:"#document",mode:kr.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}},createTextNode(e){return{nodeName:"#text",value: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(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=r,i.systemId=n;else{let a={nodeName:"#documentType",name:t,publicId:r,systemId:n,parentNode:null};Vn.appendChild(e,a)}},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(Vn.isTextNode(r)){r.value+=t;return}}Vn.appendChild(e,Vn.createTextNode(t))},insertTextBefore(e,t,r){let n=e.childNodes[e.childNodes.indexOf(r)-1];n&&Vn.isTextNode(n)?n.value+=t:Vn.insertBefore(e,Vn.createTextNode(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={...e.sourceCodeLocation,...t}}}});function Hw(e,t){return t.some(r=>e.startsWith(r))}function zw(e){return e.name===Uw&&e.publicId===null&&(e.systemId===null||e.systemId===W4)}function Yw(e){if(e.name!==Uw)return kr.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===G4)return kr.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),X4.has(r))return kr.QUIRKS;let n=t===null?Q4:Vw;if(Hw(r,n))return kr.QUIRKS;if(n=t===null?qw:Z4,Hw(r,n))return kr.LIMITED_QUIRKS}return kr.NO_QUIRKS}var Uw,W4,G4,Vw,Q4,X4,qw,Z4,Kw=v(()=>{sa();Uw="html",W4="about:legacy-compat",G4="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Vw=["+//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//"],Q4=[...Vw,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],X4=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),qw=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Z4=[...qw,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]});function Ww(e){let t=e.tagID;return t===c.FONT&&e.attrs.some(({name:n})=>n===Di.COLOR||n===Di.SIZE||n===Di.FACE)||a8.has(t)}function Kg(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===e8){e.attrs[t].name=t8;break}}function jg(e){for(let t=0;t<e.attrs.length;t++){let r=r8.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function fh(e){for(let t=0;t<e.attrs.length;t++){let r=n8.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}function Gw(e){let t=i8.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Wa(e.tagName))}function s8(e,t){return t===ee.MATHML&&(e===c.MI||e===c.MO||e===c.MN||e===c.MS||e===c.MTEXT)}function o8(e,t,r){if(t===ee.MATHML&&e===c.ANNOTATION_XML){for(let n=0;n<r.length;n++)if(r[n].name===Di.ENCODING){let i=r[n].value.toLowerCase();return i===jw.TEXT_HTML||i===jw.APPLICATION_XML}}return t===ee.SVG&&(e===c.FOREIGN_OBJECT||e===c.DESC||e===c.TITLE)}function Qw(e,t,r,n){return(!n||n===ee.HTML)&&o8(e,t,r)||(!n||n===ee.MATHML)&&s8(e,t)}var jw,e8,t8,r8,n8,i8,a8,Wg=v(()=>{sa();jw={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},e8="definitionurl",t8="definitionURL",r8=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])),n8=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:ee.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:ee.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:ee.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:ee.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:ee.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:ee.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:ee.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:ee.XML}],["xml:space",{prefix:"xml",name:"space",namespace:ee.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:ee.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:ee.XMLNS}]]),i8=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])),a8=new Set([c.B,c.BIG,c.BLOCKQUOTE,c.BODY,c.BR,c.CENTER,c.CODE,c.DD,c.DIV,c.DL,c.DT,c.EM,c.EMBED,c.H1,c.H2,c.H3,c.H4,c.H5,c.H6,c.HEAD,c.HR,c.I,c.IMG,c.LI,c.LISTING,c.MENU,c.META,c.NOBR,c.OL,c.P,c.PRE,c.RUBY,c.S,c.SMALL,c.SPAN,c.STRONG,c.STRIKE,c.SUB,c.SUP,c.TABLE,c.TT,c.U,c.UL,c.VAR])});function d8(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):sS(e,t),r}function h8(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 p8(e,t,r){let n=t,i=e.openElements.getCommonAncestor(t);for(let a=0,u=i;u!==r;a++,u=i){i=e.openElements.getCommonAncestor(u);let l=e.activeFormattingElements.getElementEntry(u),d=l&&a>=l8;!l||d?(d&&e.activeFormattingElements.removeEntry(l),e.openElements.remove(u)):(u=m8(e,l),n===t&&(e.activeFormattingElements.bookmark=l),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(u,n),n=u)}return n}function m8(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 g8(e,t,r){let n=e.treeAdapter.getTagName(t),i=Wa(n);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(r);else{let a=e.treeAdapter.getNamespaceURI(t);i===c.TEMPLATE&&a===ee.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function _8(e,t,r){let n=e.treeAdapter.getNamespaceURI(r.element),{token:i}=r,a=e.treeAdapter.createElement(i.tagName,n,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,a,i.tagID)}function Zg(e,t){for(let r=0;r<c8;r++){let n=d8(e,t);if(!n)break;let i=h8(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;let a=p8(e,i,n.element),u=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(a),u&&g8(e,u,a),_8(e,i,n)}}function Qg(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function b8(e,t){e._appendCommentNode(t,e.openElements.items[0])}function E8(e,t){e._appendCommentNode(t,e.document)}function Jg(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 a=e.openElements.items[1],u=e.treeAdapter.getNodeSourceCodeLocation(a);u&&!u.endTag&&e._setEndLocation(a,t)}}}}function v8(e,t){e._setDocumentType(t);let r=t.forceQuirks?kr.QUIRKS:Yw(t);zw(t)||e._err(t,Y.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=I.BEFORE_HTML}function ul(e,t){e._err(t,Y.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,kr.QUIRKS),e.insertionMode=I.BEFORE_HTML,e._processToken(t)}function T8(e,t){t.tagID===c.HTML?(e._insertElement(t,ee.HTML),e.insertionMode=I.BEFORE_HEAD):ll(e,t)}function x8(e,t){let r=t.tagID;(r===c.HTML||r===c.HEAD||r===c.BODY||r===c.BR)&&ll(e,t)}function ll(e,t){e._insertFakeRootElement(),e.insertionMode=I.BEFORE_HEAD,e._processToken(t)}function y8(e,t){switch(t.tagID){case c.HTML:{Lr(e,t);break}case c.HEAD:{e._insertElement(t,ee.HTML),e.headElement=e.openElements.current,e.insertionMode=I.IN_HEAD;break}default:fl(e,t)}}function A8(e,t){let r=t.tagID;r===c.HEAD||r===c.BODY||r===c.HTML||r===c.BR?fl(e,t):e._err(t,Y.endTagWithoutMatchingOpenElement)}function fl(e,t){e._insertFakeElement(U.HEAD,c.HEAD),e.headElement=e.openElements.current,e.insertionMode=I.IN_HEAD,e._processToken(t)}function fi(e,t){switch(t.tagID){case c.HTML:{Lr(e,t);break}case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:{e._appendElement(t,ee.HTML),t.ackSelfClosing=!0;break}case c.TITLE:{e._switchToTextParsing(t,Rr.RCDATA);break}case c.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Rr.RAWTEXT):(e._insertElement(t,ee.HTML),e.insertionMode=I.IN_HEAD_NO_SCRIPT);break}case c.NOFRAMES:case c.STYLE:{e._switchToTextParsing(t,Rr.RAWTEXT);break}case c.SCRIPT:{e._switchToTextParsing(t,Rr.SCRIPT_DATA);break}case c.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=I.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(I.IN_TEMPLATE);break}case c.HEAD:{e._err(t,Y.misplacedStartTagForHeadElement);break}default:dl(e,t)}}function w8(e,t){switch(t.tagID){case c.HEAD:{e.openElements.pop(),e.insertionMode=I.AFTER_HEAD;break}case c.BODY:case c.BR:case c.HTML:{dl(e,t);break}case c.TEMPLATE:{Ks(e,t);break}default:e._err(t,Y.endTagWithoutMatchingOpenElement)}}function Ks(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==c.TEMPLATE&&e._err(t,Y.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(c.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Y.endTagWithoutMatchingOpenElement)}function dl(e,t){e.openElements.pop(),e.insertionMode=I.AFTER_HEAD,e._processToken(t)}function S8(e,t){switch(t.tagID){case c.HTML:{Lr(e,t);break}case c.BASEFONT:case c.BGSOUND:case c.HEAD:case c.LINK:case c.META:case c.NOFRAMES:case c.STYLE:{fi(e,t);break}case c.NOSCRIPT:{e._err(t,Y.nestedNoscriptInHead);break}default:hl(e,t)}}function C8(e,t){switch(t.tagID){case c.NOSCRIPT:{e.openElements.pop(),e.insertionMode=I.IN_HEAD;break}case c.BR:{hl(e,t);break}default:e._err(t,Y.endTagWithoutMatchingOpenElement)}}function hl(e,t){let r=t.type===Qe.EOF?Y.openElementsLeftAfterEof:Y.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=I.IN_HEAD,e._processToken(t)}function I8(e,t){switch(t.tagID){case c.HTML:{Lr(e,t);break}case c.BODY:{e._insertElement(t,ee.HTML),e.framesetOk=!1,e.insertionMode=I.IN_BODY;break}case c.FRAMESET:{e._insertElement(t,ee.HTML),e.insertionMode=I.IN_FRAMESET;break}case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:case c.NOFRAMES:case c.SCRIPT:case c.STYLE:case c.TEMPLATE:case c.TITLE:{e._err(t,Y.abandonedHeadElementChild),e.openElements.push(e.headElement,c.HEAD),fi(e,t),e.openElements.remove(e.headElement);break}case c.HEAD:{e._err(t,Y.misplacedStartTagForHeadElement);break}default:pl(e,t)}}function N8(e,t){switch(t.tagID){case c.BODY:case c.HTML:case c.BR:{pl(e,t);break}case c.TEMPLATE:{Ks(e,t);break}default:e._err(t,Y.endTagWithoutMatchingOpenElement)}}function pl(e,t){e._insertFakeElement(U.BODY,c.BODY),e.insertionMode=I.IN_BODY,mh(e,t)}function mh(e,t){switch(t.type){case Qe.CHARACTER:{nS(e,t);break}case Qe.WHITESPACE_CHARACTER:{rS(e,t);break}case Qe.COMMENT:{Qg(e,t);break}case Qe.START_TAG:{Lr(e,t);break}case Qe.END_TAG:{gh(e,t);break}case Qe.EOF:{oS(e,t);break}default:}}function rS(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function nS(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function O8(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function D8(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function k8(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,ee.HTML),e.insertionMode=I.IN_FRAMESET)}function R8(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,ee.HTML)}function L8(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),du.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,ee.HTML)}function P8(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,ee.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function M8(e,t){let r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,ee.HTML),r||(e.formElement=e.openElements.current))}function F8(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===c.LI&&i===c.LI||(r===c.DD||r===c.DT)&&(i===c.DD||i===c.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==c.ADDRESS&&i!==c.DIV&&i!==c.P&&e._isSpecialElement(e.openElements.items[n],i))break}e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,ee.HTML)}function B8(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,ee.HTML),e.tokenizer.state=Rr.PLAINTEXT}function $8(e,t){e.openElements.hasInScope(c.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,ee.HTML),e.framesetOk=!1}function H8(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(U.A);r&&(Zg(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,ee.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function U8(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ee.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function V8(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(c.NOBR)&&(Zg(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,ee.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function q8(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ee.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function z8(e,t){e.treeAdapter.getDocumentMode(e.document)!==kr.QUIRKS&&e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,ee.HTML),e.framesetOk=!1,e.insertionMode=I.IN_TABLE}function iS(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ee.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function aS(e){let t=nh(e,Di.TYPE);return t!=null&&t.toLowerCase()===u8}function Y8(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ee.HTML),aS(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function K8(e,t){e._appendElement(t,ee.HTML),t.ackSelfClosing=!0}function j8(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._appendElement(t,ee.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function W8(e,t){t.tagName=U.IMG,t.tagID=c.IMG,iS(e,t)}function G8(e,t){e._insertElement(t,ee.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Rr.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=I.TEXT}function Q8(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Rr.RAWTEXT)}function X8(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Rr.RAWTEXT)}function Jw(e,t){e._switchToTextParsing(t,Rr.RAWTEXT)}function Z8(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ee.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===I.IN_TABLE||e.insertionMode===I.IN_CAPTION||e.insertionMode===I.IN_TABLE_BODY||e.insertionMode===I.IN_ROW||e.insertionMode===I.IN_CELL?I.IN_SELECT_IN_TABLE:I.IN_SELECT}function J8(e,t){e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ee.HTML)}function eM(e,t){e.openElements.hasInScope(c.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,ee.HTML)}function tM(e,t){e.openElements.hasInScope(c.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(c.RTC),e._insertElement(t,ee.HTML)}function rM(e,t){e._reconstructActiveFormattingElements(),Kg(t),fh(t),t.selfClosing?e._appendElement(t,ee.MATHML):e._insertElement(t,ee.MATHML),t.ackSelfClosing=!0}function nM(e,t){e._reconstructActiveFormattingElements(),jg(t),fh(t),t.selfClosing?e._appendElement(t,ee.SVG):e._insertElement(t,ee.SVG),t.ackSelfClosing=!0}function eS(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ee.HTML)}function Lr(e,t){switch(t.tagID){case c.I:case c.S:case c.B:case c.U:case c.EM:case c.TT:case c.BIG:case c.CODE:case c.FONT:case c.SMALL:case c.STRIKE:case c.STRONG:{U8(e,t);break}case c.A:{H8(e,t);break}case c.H1:case c.H2:case c.H3:case c.H4:case c.H5:case c.H6:{L8(e,t);break}case c.P:case c.DL:case c.OL:case c.UL:case c.DIV:case c.DIR:case c.NAV:case c.MAIN:case c.MENU:case c.ASIDE:case c.CENTER:case c.FIGURE:case c.FOOTER:case c.HEADER:case c.HGROUP:case c.DIALOG:case c.DETAILS:case c.ADDRESS:case c.ARTICLE:case c.SEARCH:case c.SECTION:case c.SUMMARY:case c.FIELDSET:case c.BLOCKQUOTE:case c.FIGCAPTION:{R8(e,t);break}case c.LI:case c.DD:case c.DT:{F8(e,t);break}case c.BR:case c.IMG:case c.WBR:case c.AREA:case c.EMBED:case c.KEYGEN:{iS(e,t);break}case c.HR:{j8(e,t);break}case c.RB:case c.RTC:{eM(e,t);break}case c.RT:case c.RP:{tM(e,t);break}case c.PRE:case c.LISTING:{P8(e,t);break}case c.XMP:{Q8(e,t);break}case c.SVG:{nM(e,t);break}case c.HTML:{O8(e,t);break}case c.BASE:case c.LINK:case c.META:case c.STYLE:case c.TITLE:case c.SCRIPT:case c.BGSOUND:case c.BASEFONT:case c.TEMPLATE:{fi(e,t);break}case c.BODY:{D8(e,t);break}case c.FORM:{M8(e,t);break}case c.NOBR:{V8(e,t);break}case c.MATH:{rM(e,t);break}case c.TABLE:{z8(e,t);break}case c.INPUT:{Y8(e,t);break}case c.PARAM:case c.TRACK:case c.SOURCE:{K8(e,t);break}case c.IMAGE:{W8(e,t);break}case c.BUTTON:{$8(e,t);break}case c.APPLET:case c.OBJECT:case c.MARQUEE:{q8(e,t);break}case c.IFRAME:{X8(e,t);break}case c.SELECT:{Z8(e,t);break}case c.OPTION:case c.OPTGROUP:{J8(e,t);break}case c.NOEMBED:case c.NOFRAMES:{Jw(e,t);break}case c.FRAMESET:{k8(e,t);break}case c.TEXTAREA:{G8(e,t);break}case c.NOSCRIPT:{e.options.scriptingEnabled?Jw(e,t):eS(e,t);break}case c.PLAINTEXT:{B8(e,t);break}case c.COL:case c.TH:case c.TD:case c.TR:case c.HEAD:case c.FRAME:case c.TBODY:case c.TFOOT:case c.THEAD:case c.CAPTION:case c.COLGROUP:break;default:eS(e,t)}}function iM(e,t){if(e.openElements.hasInScope(c.BODY)&&(e.insertionMode=I.AFTER_BODY,e.options.sourceCodeLocationInfo)){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function aM(e,t){e.openElements.hasInScope(c.BODY)&&(e.insertionMode=I.AFTER_BODY,mS(e,t))}function sM(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function oM(e){let t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(c.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(c.FORM):r&&e.openElements.remove(r))}function uM(e){e.openElements.hasInButtonScope(c.P)||e._insertFakeElement(U.P,c.P),e._closePElement()}function cM(e){e.openElements.hasInListItemScope(c.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(c.LI),e.openElements.popUntilTagNamePopped(c.LI))}function lM(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function fM(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function dM(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function hM(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(U.BR,c.BR),e.openElements.pop(),e.framesetOk=!1}function sS(e,t){let r=t.tagName,n=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){let a=e.openElements.items[i],u=e.openElements.tagIDs[i];if(n===u&&(n!==c.UNKNOWN||e.treeAdapter.getTagName(a)===r)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,u))break}}function gh(e,t){switch(t.tagID){case c.A:case c.B:case c.I:case c.S:case c.U:case c.EM:case c.TT:case c.BIG:case c.CODE:case c.FONT:case c.NOBR:case c.SMALL:case c.STRIKE:case c.STRONG:{Zg(e,t);break}case c.P:{uM(e);break}case c.DL:case c.UL:case c.OL:case c.DIR:case c.DIV:case c.NAV:case c.PRE:case c.MAIN:case c.MENU:case c.ASIDE:case c.BUTTON:case c.CENTER:case c.FIGURE:case c.FOOTER:case c.HEADER:case c.HGROUP:case c.DIALOG:case c.ADDRESS:case c.ARTICLE:case c.DETAILS:case c.SEARCH:case c.SECTION:case c.SUMMARY:case c.LISTING:case c.FIELDSET:case c.BLOCKQUOTE:case c.FIGCAPTION:{sM(e,t);break}case c.LI:{cM(e);break}case c.DD:case c.DT:{lM(e,t);break}case c.H1:case c.H2:case c.H3:case c.H4:case c.H5:case c.H6:{fM(e);break}case c.BR:{hM(e);break}case c.BODY:{iM(e,t);break}case c.HTML:{aM(e,t);break}case c.FORM:{oM(e);break}case c.APPLET:case c.OBJECT:case c.MARQUEE:{dM(e,t);break}case c.TEMPLATE:{Ks(e,t);break}default:sS(e,t)}}function oS(e,t){e.tmplInsertionModeStack.length>0?pS(e,t):Jg(e,t)}function pM(e,t){var r;t.tagID===c.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function mM(e,t){e._err(t,Y.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Gg(e,t){if(tS.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=I.IN_TABLE_TEXT,t.type){case Qe.CHARACTER:{cS(e,t);break}case Qe.WHITESPACE_CHARACTER:{uS(e,t);break}}else gl(e,t)}function gM(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,ee.HTML),e.insertionMode=I.IN_CAPTION}function _M(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ee.HTML),e.insertionMode=I.IN_COLUMN_GROUP}function bM(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(U.COLGROUP,c.COLGROUP),e.insertionMode=I.IN_COLUMN_GROUP,e_(e,t)}function EM(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ee.HTML),e.insertionMode=I.IN_TABLE_BODY}function vM(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(U.TBODY,c.TBODY),e.insertionMode=I.IN_TABLE_BODY,_h(e,t)}function TM(e,t){e.openElements.hasInTableScope(c.TABLE)&&(e.openElements.popUntilTagNamePopped(c.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function xM(e,t){aS(t)?e._appendElement(t,ee.HTML):gl(e,t),t.ackSelfClosing=!0}function yM(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,ee.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function pu(e,t){switch(t.tagID){case c.TD:case c.TH:case c.TR:{vM(e,t);break}case c.STYLE:case c.SCRIPT:case c.TEMPLATE:{fi(e,t);break}case c.COL:{bM(e,t);break}case c.FORM:{yM(e,t);break}case c.TABLE:{TM(e,t);break}case c.TBODY:case c.TFOOT:case c.THEAD:{EM(e,t);break}case c.INPUT:{xM(e,t);break}case c.CAPTION:{gM(e,t);break}case c.COLGROUP:{_M(e,t);break}default:gl(e,t)}}function ml(e,t){switch(t.tagID){case c.TABLE:{e.openElements.hasInTableScope(c.TABLE)&&(e.openElements.popUntilTagNamePopped(c.TABLE),e._resetInsertionMode());break}case c.TEMPLATE:{Ks(e,t);break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TBODY:case c.TD:case c.TFOOT:case c.TH:case c.THEAD:case c.TR:break;default:gl(e,t)}}function gl(e,t){let r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,mh(e,t),e.fosterParentingEnabled=r}function uS(e,t){e.pendingCharacterTokens.push(t)}function cS(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function cl(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)gl(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function AM(e,t){let r=t.tagID;lS.has(r)?e.openElements.hasInTableScope(c.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=I.IN_TABLE,pu(e,t)):Lr(e,t)}function wM(e,t){let r=t.tagID;switch(r){case c.CAPTION:case c.TABLE:{e.openElements.hasInTableScope(c.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=I.IN_TABLE,r===c.TABLE&&ml(e,t));break}case c.BODY:case c.COL:case c.COLGROUP:case c.HTML:case c.TBODY:case c.TD:case c.TFOOT:case c.TH:case c.THEAD:case c.TR:break;default:gh(e,t)}}function e_(e,t){switch(t.tagID){case c.HTML:{Lr(e,t);break}case c.COL:{e._appendElement(t,ee.HTML),t.ackSelfClosing=!0;break}case c.TEMPLATE:{fi(e,t);break}default:hh(e,t)}}function SM(e,t){switch(t.tagID){case c.COLGROUP:{e.openElements.currentTagId===c.COLGROUP&&(e.openElements.pop(),e.insertionMode=I.IN_TABLE);break}case c.TEMPLATE:{Ks(e,t);break}case c.COL:break;default:hh(e,t)}}function hh(e,t){e.openElements.currentTagId===c.COLGROUP&&(e.openElements.pop(),e.insertionMode=I.IN_TABLE,e._processToken(t))}function _h(e,t){switch(t.tagID){case c.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,ee.HTML),e.insertionMode=I.IN_ROW;break}case c.TH:case c.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(U.TR,c.TR),e.insertionMode=I.IN_ROW,bh(e,t);break}case c.CAPTION:case c.COL:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=I.IN_TABLE,pu(e,t));break}default:pu(e,t)}}function Xg(e,t){let r=t.tagID;switch(t.tagID){case c.TBODY:case c.TFOOT:case c.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=I.IN_TABLE);break}case c.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=I.IN_TABLE,ml(e,t));break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TD:case c.TH:case c.TR:break;default:ml(e,t)}}function bh(e,t){switch(t.tagID){case c.TH:case c.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,ee.HTML),e.insertionMode=I.IN_CELL,e.activeFormattingElements.insertMarker();break}case c.CAPTION:case c.COL:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:case c.TR:{e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=I.IN_TABLE_BODY,_h(e,t));break}default:pu(e,t)}}function fS(e,t){switch(t.tagID){case c.TR:{e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=I.IN_TABLE_BODY);break}case c.TABLE:{e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=I.IN_TABLE_BODY,Xg(e,t));break}case c.TBODY:case c.TFOOT:case c.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(c.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=I.IN_TABLE_BODY,Xg(e,t));break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TD:case c.TH:break;default:ml(e,t)}}function CM(e,t){let r=t.tagID;lS.has(r)?(e.openElements.hasInTableScope(c.TD)||e.openElements.hasInTableScope(c.TH))&&(e._closeTableCell(),bh(e,t)):Lr(e,t)}function IM(e,t){let r=t.tagID;switch(r){case c.TD:case c.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=I.IN_ROW);break}case c.TABLE:case c.TBODY:case c.TFOOT:case c.THEAD:case c.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),fS(e,t));break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:break;default:gh(e,t)}}function dS(e,t){switch(t.tagID){case c.HTML:{Lr(e,t);break}case c.OPTION:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e._insertElement(t,ee.HTML);break}case c.OPTGROUP:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop(),e._insertElement(t,ee.HTML);break}case c.HR:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop(),e._appendElement(t,ee.HTML),t.ackSelfClosing=!0;break}case c.INPUT:case c.KEYGEN:case c.TEXTAREA:case c.SELECT:{e.openElements.hasInSelectScope(c.SELECT)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),t.tagID!==c.SELECT&&e._processStartTag(t));break}case c.SCRIPT:case c.TEMPLATE:{fi(e,t);break}default:}}function hS(e,t){switch(t.tagID){case c.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===c.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===c.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop();break}case c.OPTION:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop();break}case c.SELECT:{e.openElements.hasInSelectScope(c.SELECT)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode());break}case c.TEMPLATE:{Ks(e,t);break}default:}}function NM(e,t){let r=t.tagID;r===c.CAPTION||r===c.TABLE||r===c.TBODY||r===c.TFOOT||r===c.THEAD||r===c.TR||r===c.TD||r===c.TH?(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),e._processStartTag(t)):dS(e,t)}function OM(e,t){let r=t.tagID;r===c.CAPTION||r===c.TABLE||r===c.TBODY||r===c.TFOOT||r===c.THEAD||r===c.TR||r===c.TD||r===c.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),e.onEndTag(t)):hS(e,t)}function DM(e,t){switch(t.tagID){case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:case c.NOFRAMES:case c.SCRIPT:case c.STYLE:case c.TEMPLATE:case c.TITLE:{fi(e,t);break}case c.CAPTION:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:{e.tmplInsertionModeStack[0]=I.IN_TABLE,e.insertionMode=I.IN_TABLE,pu(e,t);break}case c.COL:{e.tmplInsertionModeStack[0]=I.IN_COLUMN_GROUP,e.insertionMode=I.IN_COLUMN_GROUP,e_(e,t);break}case c.TR:{e.tmplInsertionModeStack[0]=I.IN_TABLE_BODY,e.insertionMode=I.IN_TABLE_BODY,_h(e,t);break}case c.TD:case c.TH:{e.tmplInsertionModeStack[0]=I.IN_ROW,e.insertionMode=I.IN_ROW,bh(e,t);break}default:e.tmplInsertionModeStack[0]=I.IN_BODY,e.insertionMode=I.IN_BODY,Lr(e,t)}}function kM(e,t){t.tagID===c.TEMPLATE&&Ks(e,t)}function pS(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(c.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Jg(e,t)}function RM(e,t){t.tagID===c.HTML?Lr(e,t):ph(e,t)}function mS(e,t){var r;if(t.tagID===c.HTML){if(e.fragmentContext||(e.insertionMode=I.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===c.HTML){e._setEndLocation(e.openElements.items[0],t);let n=e.openElements.items[1];n&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(n))===null||r===void 0)&&r.endTag)&&e._setEndLocation(n,t)}}else ph(e,t)}function ph(e,t){e.insertionMode=I.IN_BODY,mh(e,t)}function LM(e,t){switch(t.tagID){case c.HTML:{Lr(e,t);break}case c.FRAMESET:{e._insertElement(t,ee.HTML);break}case c.FRAME:{e._appendElement(t,ee.HTML),t.ackSelfClosing=!0;break}case c.NOFRAMES:{fi(e,t);break}default:}}function PM(e,t){t.tagID===c.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==c.FRAMESET&&(e.insertionMode=I.AFTER_FRAMESET))}function MM(e,t){switch(t.tagID){case c.HTML:{Lr(e,t);break}case c.NOFRAMES:{fi(e,t);break}default:}}function FM(e,t){t.tagID===c.HTML&&(e.insertionMode=I.AFTER_AFTER_FRAMESET)}function BM(e,t){t.tagID===c.HTML?Lr(e,t):dh(e,t)}function dh(e,t){e.insertionMode=I.IN_BODY,mh(e,t)}function $M(e,t){switch(t.tagID){case c.HTML:{Lr(e,t);break}case c.NOFRAMES:{fi(e,t);break}default:}}function HM(e,t){t.chars=xt,e._insertCharacters(t)}function UM(e,t){e._insertCharacters(t),e.framesetOk=!1}function gS(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==ee.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function VM(e,t){if(Ww(t))gS(e),e._startTagOutsideForeignContent(t);else{let r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===ee.MATHML?Kg(t):n===ee.SVG&&(Gw(t),jg(t)),fh(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}function qM(e,t){if(t.tagID===c.P||t.tagID===c.BR){gS(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)===ee.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 u8,c8,l8,I,f8,tS,Zw,hu,lS,t_=v(()=>{Yg();Fw();$w();lh();Kw();Wg();al();th();sa();ih();u8="hidden",c8=8,l8=3;(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"})(I||(I={}));f8={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},tS=new Set([c.TABLE,c.TBODY,c.TFOOT,c.THEAD,c.TR]),Zw={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Vn,onParseError:null},hu=class{constructor(t,r,n=null,i=null){this.fragmentContext=n,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=I.INITIAL,this.originalInsertionMode=I.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={...Zw,...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 ol(this.options,this),this.activeFormattingElements=new ch(this.treeAdapter),this.fragmentContextID=n?Wa(this.treeAdapter.getTagName(n)):c.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new uh(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={...Zw,...r};t??(t=n.treeAdapter.createElement(U.TEMPLATE,ee.HTML,[]));let i=n.treeAdapter.createElement("documentmock",ee.HTML,[]),a=new this(n,i,t);return a.fragmentContextID===c.TEMPLATE&&a.tmplInsertionModeStack.unshift(I.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}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 a=(i=t.location)!==null&&i!==void 0?i:f8,u={code:r,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:n?a.startLine:a.endLine,endCol:n?a.startCol:a.endCol,endOffset:n?a.startOffset:a.endOffset};this.onParseError(u)}onItemPush(t,r,n){var i,a;(a=(i=this.treeAdapter).onItemPush)===null||a===void 0||a.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 a,u;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,u=this.fragmentContextID):{current:a,currentTagId:u}=this.openElements,this._setContextModes(a,u)}}_setContextModes(t,r){let n=t===this.document||this.treeAdapter.getNamespaceURI(t)===ee.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,ee.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=I.TEXT}switchToPlaintextParsing(){this.insertionMode=I.TEXT,this.originalInsertionMode=I.IN_BODY,this.tokenizer.state=Rr.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)===U.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==ee.HTML))switch(this.fragmentContextID){case c.TITLE:case c.TEXTAREA:{this.tokenizer.state=Rr.RCDATA;break}case c.STYLE:case c.XMP:case c.IFRAME:case c.NOEMBED:case c.NOFRAMES:case c.NOSCRIPT:{this.tokenizer.state=Rr.RAWTEXT;break}case c.SCRIPT:{this.tokenizer.state=Rr.SCRIPT_DATA;break}case c.PLAINTEXT:{this.tokenizer.state=Rr.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 u=this.treeAdapter.getChildNodes(this.document).find(l=>this.treeAdapter.isDocumentTypeNode(l));u&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){let n=r&&{...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,ee.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,r)}_insertTemplate(t){let r=this.treeAdapter.createElement(t.tagName,ee.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(U.HTML,ee.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,c.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),a=n?i.lastIndexOf(n):i.length,u=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(u)){let{endLine:d,endCol:p,endOffset:g}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(u,{endLine:d,endCol:p,endOffset:g})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(u,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),a=r.type===Qe.END_TAG&&i===r.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}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===c.SVG&&this.treeAdapter.getTagName(r)===U.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===ee.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===c.MGLYPH||t.tagID===c.MALIGNMARK)&&!this._isIntegrationPoint(n,r,ee.HTML)}_processToken(t){switch(t.type){case Qe.CHARACTER:{this.onCharacter(t);break}case Qe.NULL_CHARACTER:{this.onNullCharacter(t);break}case Qe.COMMENT:{this.onComment(t);break}case Qe.DOCTYPE:{this.onDoctype(t);break}case Qe.START_TAG:{this._processStartTag(t);break}case Qe.END_TAG:{this.onEndTag(t);break}case Qe.EOF:{this.onEof(t);break}case Qe.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,n){let i=this.treeAdapter.getNamespaceURI(r),a=this.treeAdapter.getAttrList(r);return Qw(t,i,a,n)}_reconstructActiveFormattingElements(){let t=this.activeFormattingElements.entries.length;if(t){let r=this.activeFormattingElements.entries.findIndex(i=>i.type===li.Marker||this.openElements.contains(i.element)),n=r<0?t-1:r-1;for(let i=n;i>=0;i--){let a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=I.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(c.P),this.openElements.popUntilTagNamePopped(c.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case c.TR:{this.insertionMode=I.IN_ROW;return}case c.TBODY:case c.THEAD:case c.TFOOT:{this.insertionMode=I.IN_TABLE_BODY;return}case c.CAPTION:{this.insertionMode=I.IN_CAPTION;return}case c.COLGROUP:{this.insertionMode=I.IN_COLUMN_GROUP;return}case c.TABLE:{this.insertionMode=I.IN_TABLE;return}case c.BODY:{this.insertionMode=I.IN_BODY;return}case c.FRAMESET:{this.insertionMode=I.IN_FRAMESET;return}case c.SELECT:{this._resetInsertionModeForSelect(t);return}case c.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case c.HTML:{this.insertionMode=this.headElement?I.AFTER_HEAD:I.BEFORE_HEAD;return}case c.TD:case c.TH:{if(t>0){this.insertionMode=I.IN_CELL;return}break}case c.HEAD:{if(t>0){this.insertionMode=I.IN_HEAD;return}break}}this.insertionMode=I.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){let n=this.openElements.tagIDs[r];if(n===c.TEMPLATE)break;if(n===c.TABLE){this.insertionMode=I.IN_SELECT_IN_TABLE;return}}this.insertionMode=I.IN_SELECT}_isElementCausesFosterParenting(t){return tS.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 c.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===ee.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case c.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 qg[n].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){UM(this,t);return}switch(this.insertionMode){case I.INITIAL:{ul(this,t);break}case I.BEFORE_HTML:{ll(this,t);break}case I.BEFORE_HEAD:{fl(this,t);break}case I.IN_HEAD:{dl(this,t);break}case I.IN_HEAD_NO_SCRIPT:{hl(this,t);break}case I.AFTER_HEAD:{pl(this,t);break}case I.IN_BODY:case I.IN_CAPTION:case I.IN_CELL:case I.IN_TEMPLATE:{nS(this,t);break}case I.TEXT:case I.IN_SELECT:case I.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case I.IN_TABLE:case I.IN_TABLE_BODY:case I.IN_ROW:{Gg(this,t);break}case I.IN_TABLE_TEXT:{cS(this,t);break}case I.IN_COLUMN_GROUP:{hh(this,t);break}case I.AFTER_BODY:{ph(this,t);break}case I.AFTER_AFTER_BODY:{dh(this,t);break}default:}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){HM(this,t);return}switch(this.insertionMode){case I.INITIAL:{ul(this,t);break}case I.BEFORE_HTML:{ll(this,t);break}case I.BEFORE_HEAD:{fl(this,t);break}case I.IN_HEAD:{dl(this,t);break}case I.IN_HEAD_NO_SCRIPT:{hl(this,t);break}case I.AFTER_HEAD:{pl(this,t);break}case I.TEXT:{this._insertCharacters(t);break}case I.IN_TABLE:case I.IN_TABLE_BODY:case I.IN_ROW:{Gg(this,t);break}case I.IN_COLUMN_GROUP:{hh(this,t);break}case I.AFTER_BODY:{ph(this,t);break}case I.AFTER_AFTER_BODY:{dh(this,t);break}default:}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Qg(this,t);return}switch(this.insertionMode){case I.INITIAL:case I.BEFORE_HTML:case I.BEFORE_HEAD:case I.IN_HEAD:case I.IN_HEAD_NO_SCRIPT:case I.AFTER_HEAD:case I.IN_BODY:case I.IN_TABLE:case I.IN_CAPTION:case I.IN_COLUMN_GROUP:case I.IN_TABLE_BODY:case I.IN_ROW:case I.IN_CELL:case I.IN_SELECT:case I.IN_SELECT_IN_TABLE:case I.IN_TEMPLATE:case I.IN_FRAMESET:case I.AFTER_FRAMESET:{Qg(this,t);break}case I.IN_TABLE_TEXT:{cl(this,t);break}case I.AFTER_BODY:{b8(this,t);break}case I.AFTER_AFTER_BODY:case I.AFTER_AFTER_FRAMESET:{E8(this,t);break}default:}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case I.INITIAL:{v8(this,t);break}case I.BEFORE_HEAD:case I.IN_HEAD:case I.IN_HEAD_NO_SCRIPT:case I.AFTER_HEAD:{this._err(t,Y.misplacedDoctype);break}case I.IN_TABLE_TEXT:{cl(this,t);break}default:}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Y.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?VM(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case I.INITIAL:{ul(this,t);break}case I.BEFORE_HTML:{T8(this,t);break}case I.BEFORE_HEAD:{y8(this,t);break}case I.IN_HEAD:{fi(this,t);break}case I.IN_HEAD_NO_SCRIPT:{S8(this,t);break}case I.AFTER_HEAD:{I8(this,t);break}case I.IN_BODY:{Lr(this,t);break}case I.IN_TABLE:{pu(this,t);break}case I.IN_TABLE_TEXT:{cl(this,t);break}case I.IN_CAPTION:{AM(this,t);break}case I.IN_COLUMN_GROUP:{e_(this,t);break}case I.IN_TABLE_BODY:{_h(this,t);break}case I.IN_ROW:{bh(this,t);break}case I.IN_CELL:{CM(this,t);break}case I.IN_SELECT:{dS(this,t);break}case I.IN_SELECT_IN_TABLE:{NM(this,t);break}case I.IN_TEMPLATE:{DM(this,t);break}case I.AFTER_BODY:{RM(this,t);break}case I.IN_FRAMESET:{LM(this,t);break}case I.AFTER_FRAMESET:{MM(this,t);break}case I.AFTER_AFTER_BODY:{BM(this,t);break}case I.AFTER_AFTER_FRAMESET:{$M(this,t);break}default:}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?qM(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case I.INITIAL:{ul(this,t);break}case I.BEFORE_HTML:{x8(this,t);break}case I.BEFORE_HEAD:{A8(this,t);break}case I.IN_HEAD:{w8(this,t);break}case I.IN_HEAD_NO_SCRIPT:{C8(this,t);break}case I.AFTER_HEAD:{N8(this,t);break}case I.IN_BODY:{gh(this,t);break}case I.TEXT:{pM(this,t);break}case I.IN_TABLE:{ml(this,t);break}case I.IN_TABLE_TEXT:{cl(this,t);break}case I.IN_CAPTION:{wM(this,t);break}case I.IN_COLUMN_GROUP:{SM(this,t);break}case I.IN_TABLE_BODY:{Xg(this,t);break}case I.IN_ROW:{fS(this,t);break}case I.IN_CELL:{IM(this,t);break}case I.IN_SELECT:{hS(this,t);break}case I.IN_SELECT_IN_TABLE:{OM(this,t);break}case I.IN_TEMPLATE:{kM(this,t);break}case I.AFTER_BODY:{mS(this,t);break}case I.IN_FRAMESET:{PM(this,t);break}case I.AFTER_FRAMESET:{FM(this,t);break}case I.AFTER_AFTER_BODY:{dh(this,t);break}default:}}onEof(t){switch(this.insertionMode){case I.INITIAL:{ul(this,t);break}case I.BEFORE_HTML:{ll(this,t);break}case I.BEFORE_HEAD:{fl(this,t);break}case I.IN_HEAD:{dl(this,t);break}case I.IN_HEAD_NO_SCRIPT:{hl(this,t);break}case I.AFTER_HEAD:{pl(this,t);break}case I.IN_BODY:case I.IN_TABLE:case I.IN_CAPTION:case I.IN_COLUMN_GROUP:case I.IN_TABLE_BODY:case I.IN_ROW:case I.IN_CELL:case I.IN_SELECT:case I.IN_SELECT_IN_TABLE:{oS(this,t);break}case I.TEXT:{mM(this,t);break}case I.IN_TABLE_TEXT:{cl(this,t);break}case I.IN_TEMPLATE:{pS(this,t);break}case I.AFTER_BODY:case I.IN_FRAMESET:case I.AFTER_FRAMESET:case I.AFTER_AFTER_BODY:case I.AFTER_AFTER_FRAMESET:{Jg(this,t);break}default:}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===x.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 I.IN_HEAD:case I.IN_HEAD_NO_SCRIPT:case I.AFTER_HEAD:case I.TEXT:case I.IN_COLUMN_GROUP:case I.IN_SELECT:case I.IN_SELECT_IN_TABLE:case I.IN_FRAMESET:case I.AFTER_FRAMESET:{this._insertCharacters(t);break}case I.IN_BODY:case I.IN_CAPTION:case I.IN_CELL:case I.IN_TEMPLATE:case I.AFTER_BODY:case I.AFTER_AFTER_BODY:case I.AFTER_AFTER_FRAMESET:{rS(this,t);break}case I.IN_TABLE:case I.IN_TABLE_BODY:case I.IN_ROW:{Gg(this,t);break}case I.IN_TABLE_TEXT:{uS(this,t);break}default:}}};lS=new Set([c.CAPTION,c.COL,c.COLGROUP,c.TBODY,c.TD,c.TFOOT,c.TH,c.THEAD,c.TR])});function YM(e,t){return t.treeAdapter.isElementNode(e)&&t.treeAdapter.getNamespaceURI(e)===ee.HTML&&zM.has(t.treeAdapter.getTagName(e))}function r_(e,t){let r={...KM,...t};return _S(e,r)}function jM(e,t){let r="",n=t.treeAdapter.isElementNode(e)&&t.treeAdapter.getTagName(e)===U.TEMPLATE&&t.treeAdapter.getNamespaceURI(e)===ee.HTML?t.treeAdapter.getTemplateContent(e):e,i=t.treeAdapter.getChildNodes(n);if(i)for(let a of i)r+=_S(a,t);return r}function _S(e,t){return t.treeAdapter.isElementNode(e)?WM(e,t):t.treeAdapter.isTextNode(e)?QM(e,t):t.treeAdapter.isCommentNode(e)?XM(e,t):t.treeAdapter.isDocumentTypeNode(e)?ZM(e,t):""}function WM(e,t){let r=t.treeAdapter.getTagName(e);return`<${r}${GM(e,t)}>${YM(e,t)?"":`${jM(e,t)}</${r}>`}`}function GM(e,{treeAdapter:t}){let r="";for(let n of t.getAttrList(e)){if(r+=" ",n.namespace)switch(n.namespace){case ee.XML:{r+=`xml:${n.name}`;break}case ee.XMLNS:{n.name!=="xmlns"&&(r+="xmlns:"),r+=n.name;break}case ee.XLINK:{r+=`xlink:${n.name}`;break}default:r+=`${n.prefix}:${n.name}`}else r+=n.name;r+=`="${eu(n.value)}"`}return r}function QM(e,t){let{treeAdapter:r}=t,n=r.getTextNodeContent(e),i=r.getParentNode(e),a=i&&r.isElementNode(i)&&r.getTagName(i);return a&&r.getNamespaceURI(i)===ee.HTML&&zg(a,t.scriptingEnabled)?n:tu(n)}function XM(e,{treeAdapter:t}){return`<!--${t.getCommentNodeContent(e)}-->`}function ZM(e,{treeAdapter:t}){return`<!DOCTYPE ${t.getDocumentTypeNodeName(e)}>`}var zM,KM,bS=v(()=>{sa();Kc();lh();zM=new Set([U.AREA,U.BASE,U.BASEFONT,U.BGSOUND,U.BR,U.COL,U.EMBED,U.FRAME,U.HR,U.IMG,U.INPUT,U.KEYGEN,U.LINK,U.META,U.PARAM,U.SOURCE,U.TRACK,U.WBR]);KM={treeAdapter:Vn,scriptingEnabled:!0}});function ES(e,t){return hu.parse(e,t)}function vS(e,t,r){typeof e=="string"&&(r=t,t=e,e=null);let n=hu.getFragmentParser(e,r);return n.tokenizer.write(t,!0),n.getFragment()}var n_=v(()=>{t_();lh();t_();bS();al();Wg();sa();ih();Yg()});function TS(e){let t=e.includes('"')?"'":'"';return t+e+t}function JM(e,t,r){let n="!DOCTYPE ";return e&&(n+=e),t?n+=` PUBLIC ${TS(t)}`:r&&(n+=" SYSTEM"),r&&(n+=` ${TS(r)}`),n}var oa,xS=v(()=>{n_();_r();oa={isCommentNode:Hs,isElementNode:_e,isTextNode:nn,createDocument(){let e=new wn([]);return e["x-mode"]=ah.DOCUMENT_MODE.NO_QUIRKS,e},createDocumentFragment(){return new wn([])},createElement(e,t,r){let n=Object.create(null),i=Object.create(null),a=Object.create(null);for(let l=0;l<r.length;l++){let d=r[l].name;n[d]=r[l].value,i[d]=r[l].namespace,a[d]=r[l].prefix}let u=new $s(e,n,[]);return u.namespace=t,u["x-attribsNamespace"]=i,u["x-attribsPrefix"]=a,u},createCommentNode(e){return new Fs(e)},createTextNode(e){return new Oi(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){oa.appendChild(e,t)},getTemplateContent(e){return e.children[0]},setDocumentType(e,t,r,n){let i=JM(t,r,n),a=e.children.find(u=>Id(u)&&u.name==="!doctype");a?a.data=i??null:(a=new Bs("!doctype",i),oa.appendChild(e,a)),a["x-name"]=t,a["x-publicId"]=r,a["x-systemId"]=n},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&&nn(r)?r.data+=t:oa.appendChild(e,oa.createTextNode(t))},insertTextBefore(e,t,r){let n=e.children[e.children.indexOf(r)-1];n&&nn(n)?n.data+=t:oa.insertBefore(e,oa.createTextNode(t),r)},adoptAttributes(e,t){for(let r=0;r<t.length;r++){let n=t[r].name;e.attribs[n]===void 0&&(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 Id(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={...e.sourceCodeLocation,...t}}}});function yS(e,t,r,n){var i;return(i=t.treeAdapter)!==null&&i!==void 0||(t.treeAdapter=oa),t.scriptingEnabled!==!1&&(t.scriptingEnabled=!0),r?ES(e,t):vS(n,e,t)}function AS(e){let t="length"in e?e:[e];for(let n=0;n<t.length;n+=1){let i=t[n];Bn(i)&&Array.prototype.splice.call(t,n,1,...i.children)}let r="";for(let n=0;n<t.length;n+=1){let i=t[n];r+=r_(i,eF)}return r}var eF,wS=v(()=>{_r();n_();xS();eF={treeAdapter:oa}});function ua(e){return e===Ie.Space||e===Ie.NewLine||e===Ie.Tab||e===Ie.FormFeed||e===Ie.CarriageReturn}function Eh(e){return e===Ie.Slash||e===Ie.Gt||ua(e)}function tF(e){return e>=Ie.LowerA&&e<=Ie.LowerZ||e>=Ie.UpperA&&e<=Ie.UpperZ}var Ie,ne,qn,br,mu,i_=v(()=>{Jo();(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"})(Ie||(Ie={}));(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.BeforeSpecialT=23]="BeforeSpecialT",e[e.SpecialStartSequence=24]="SpecialStartSequence",e[e.InSpecialTag=25]="InSpecialTag",e[e.InEntity=26]="InEntity"})(ne||(ne={}));(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(qn||(qn={}));br={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]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])},mu=class{constructor({xmlMode:t=!1,decodeEntities:r=!0},n){this.cbs=n,this.state=ne.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=ne.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=t,this.decodeEntities=r,this.entityDecoder=new Ha(t?Nd:Xo,(i,a)=>this.emitCodePoint(i,a))}reset(){this.state=ne.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=ne.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}stateText(t){t===Ie.Lt||!this.decodeEntities&&this.fastForwardTo(Ie.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=ne.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===Ie.Amp&&this.startEntity()}stateSpecialStartSequence(t){let r=this.sequenceIndex===this.currentSequence.length;if(!(r?Eh(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!r){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=ne.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===Ie.Gt||ua(t)){let r=this.index-this.currentSequence.length;if(this.sectionStart<r){let 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===br.TitleEnd?this.decodeEntities&&t===Ie.Amp&&this.startEntity():this.fastForwardTo(Ie.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===Ie.Lt)}stateCDATASequence(t){t===br.Cdata[this.sequenceIndex]?++this.sequenceIndex===br.Cdata.length&&(this.state=ne.InCommentLike,this.currentSequence=br.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=ne.InDeclaration,this.stateInDeclaration(t))}fastForwardTo(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}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===br.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=ne.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(t){return this.xmlMode?!Eh(t):tF(t)}startSpecial(t,r){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=r,this.state=ne.SpecialStartSequence}stateBeforeTagName(t){if(t===Ie.ExclamationMark)this.state=ne.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===Ie.Questionmark)this.state=ne.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){let r=t|32;this.sectionStart=this.index,this.xmlMode?this.state=ne.InTagName:r===br.ScriptEnd[2]?this.state=ne.BeforeSpecialS:r===br.TitleEnd[2]?this.state=ne.BeforeSpecialT:this.state=ne.InTagName}else t===Ie.Slash?this.state=ne.BeforeClosingTagName:(this.state=ne.Text,this.stateText(t))}stateInTagName(t){Eh(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=ne.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateBeforeClosingTagName(t){ua(t)||(t===Ie.Gt?this.state=ne.Text:(this.state=this.isTagStartChar(t)?ne.InClosingTagName:ne.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(t){(t===Ie.Gt||ua(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=ne.AfterClosingTagName,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){(t===Ie.Gt||this.fastForwardTo(Ie.Gt))&&(this.state=ne.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(t){t===Ie.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=ne.InSpecialTag,this.sequenceIndex=0):this.state=ne.Text,this.sectionStart=this.index+1):t===Ie.Slash?this.state=ne.InSelfClosingTag:ua(t)||(this.state=ne.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===Ie.Gt?(this.cbs.onselfclosingtag(this.index),this.state=ne.Text,this.sectionStart=this.index+1,this.isSpecial=!1):ua(t)||(this.state=ne.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateInAttributeName(t){(t===Ie.Eq||Eh(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=ne.AfterAttributeName,this.stateAfterAttributeName(t))}stateAfterAttributeName(t){t===Ie.Eq?this.state=ne.BeforeAttributeValue:t===Ie.Slash||t===Ie.Gt?(this.cbs.onattribend(qn.NoValue,this.sectionStart),this.sectionStart=-1,this.state=ne.BeforeAttributeName,this.stateBeforeAttributeName(t)):ua(t)||(this.cbs.onattribend(qn.NoValue,this.sectionStart),this.state=ne.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(t){t===Ie.DoubleQuote?(this.state=ne.InAttributeValueDq,this.sectionStart=this.index+1):t===Ie.SingleQuote?(this.state=ne.InAttributeValueSq,this.sectionStart=this.index+1):ua(t)||(this.sectionStart=this.index,this.state=ne.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))}handleInAttributeValue(t,r){t===r||!this.decodeEntities&&this.fastForwardTo(r)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(r===Ie.DoubleQuote?qn.Double:qn.Single,this.index+1),this.state=ne.BeforeAttributeName):this.decodeEntities&&t===Ie.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(t){this.handleInAttributeValue(t,Ie.DoubleQuote)}stateInAttributeValueSingleQuotes(t){this.handleInAttributeValue(t,Ie.SingleQuote)}stateInAttributeValueNoQuotes(t){ua(t)||t===Ie.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(qn.Unquoted,this.index),this.state=ne.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===Ie.Amp&&this.startEntity()}stateBeforeDeclaration(t){t===Ie.OpeningSquareBracket?(this.state=ne.CDATASequence,this.sequenceIndex=0):this.state=t===Ie.Dash?ne.BeforeComment:ne.InDeclaration}stateInDeclaration(t){(t===Ie.Gt||this.fastForwardTo(Ie.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=ne.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===Ie.Gt||this.fastForwardTo(Ie.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=ne.Text,this.sectionStart=this.index+1)}stateBeforeComment(t){t===Ie.Dash?(this.state=ne.InCommentLike,this.currentSequence=br.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=ne.InDeclaration}stateInSpecialComment(t){(t===Ie.Gt||this.fastForwardTo(Ie.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=ne.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){let r=t|32;r===br.ScriptEnd[3]?this.startSpecial(br.ScriptEnd,4):r===br.StyleEnd[3]?this.startSpecial(br.StyleEnd,4):(this.state=ne.InTagName,this.stateInTagName(t))}stateBeforeSpecialT(t){let r=t|32;r===br.TitleEnd[3]?this.startSpecial(br.TitleEnd,4):r===br.TextareaEnd[3]?this.startSpecial(br.TextareaEnd,4):(this.state=ne.InTagName,this.stateInTagName(t))}startEntity(){this.baseState=this.state,this.state=ne.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?Dr.Strict:this.baseState===ne.Text||this.baseState===ne.InSpecialTag?Dr.Legacy:Dr.Attribute)}stateInEntity(){let t=this.entityDecoder.write(this.buffer,this.index-this.offset);t>=0?(this.state=this.baseState,t===0&&(this.index=this.entityStart)):this.index=this.offset+this.buffer.length-1}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===ne.Text||this.state===ne.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===ne.InAttributeValueDq||this.state===ne.InAttributeValueSq||this.state===ne.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){let t=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case ne.Text:{this.stateText(t);break}case ne.SpecialStartSequence:{this.stateSpecialStartSequence(t);break}case ne.InSpecialTag:{this.stateInSpecialTag(t);break}case ne.CDATASequence:{this.stateCDATASequence(t);break}case ne.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(t);break}case ne.InAttributeName:{this.stateInAttributeName(t);break}case ne.InCommentLike:{this.stateInCommentLike(t);break}case ne.InSpecialComment:{this.stateInSpecialComment(t);break}case ne.BeforeAttributeName:{this.stateBeforeAttributeName(t);break}case ne.InTagName:{this.stateInTagName(t);break}case ne.InClosingTagName:{this.stateInClosingTagName(t);break}case ne.BeforeTagName:{this.stateBeforeTagName(t);break}case ne.AfterAttributeName:{this.stateAfterAttributeName(t);break}case ne.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(t);break}case ne.BeforeAttributeValue:{this.stateBeforeAttributeValue(t);break}case ne.BeforeClosingTagName:{this.stateBeforeClosingTagName(t);break}case ne.AfterClosingTagName:{this.stateAfterClosingTagName(t);break}case ne.BeforeSpecialS:{this.stateBeforeSpecialS(t);break}case ne.BeforeSpecialT:{this.stateBeforeSpecialT(t);break}case ne.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(t);break}case ne.InSelfClosingTag:{this.stateInSelfClosingTag(t);break}case ne.InDeclaration:{this.stateInDeclaration(t);break}case ne.BeforeDeclaration:{this.stateBeforeDeclaration(t);break}case ne.BeforeComment:{this.stateBeforeComment(t);break}case ne.InProcessingInstruction:{this.stateInProcessingInstruction(t);break}case ne.InEntity:{this.stateInEntity();break}}this.index++}this.cleanup()}finish(){this.state===ne.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let t=this.buffer.length+this.offset;this.sectionStart>=t||(this.state===ne.InCommentLike?this.currentSequence===br.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===ne.InTagName||this.state===ne.BeforeAttributeName||this.state===ne.BeforeAttributeValue||this.state===ne.AfterAttributeName||this.state===ne.InAttributeName||this.state===ne.InAttributeValueSq||this.state===ne.InAttributeValueDq||this.state===ne.InAttributeValueNq||this.state===ne.InClosingTagName||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,r){this.baseState!==ne.Text&&this.baseState!==ne.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+r,this.index=this.sectionStart-1,this.cbs.onattribentity(t)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+r,this.index=this.sectionStart-1,this.cbs.ontextentity(t,this.sectionStart))}}});var gu,pt,SS,CS,IS,rF,nF,NS,OS,iF,_l,a_=v(()=>{i_();Jo();gu=new Set(["input","option","optgroup","select","button","datalist","textarea"]),pt=new Set(["p"]),SS=new Set(["thead","tbody"]),CS=new Set(["dd","dt"]),IS=new Set(["rt","rp"]),rF=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",pt],["h1",pt],["h2",pt],["h3",pt],["h4",pt],["h5",pt],["h6",pt],["select",gu],["input",gu],["output",gu],["button",gu],["datalist",gu],["textarea",gu],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",CS],["dt",CS],["address",pt],["article",pt],["aside",pt],["blockquote",pt],["details",pt],["div",pt],["dl",pt],["fieldset",pt],["figcaption",pt],["figure",pt],["footer",pt],["form",pt],["header",pt],["hr",pt],["main",pt],["nav",pt],["ol",pt],["pre",pt],["section",pt],["table",pt],["ul",pt],["rt",IS],["rp",IS],["tbody",SS],["tfoot",SS]]),nF=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),NS=new Set(["math","svg"]),OS=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),iF=/\s|\//,_l=class{constructor(t,r={}){var n,i,a,u,l,d;this.options=r,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t??{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=(n=r.lowerCaseTags)!==null&&n!==void 0?n:this.htmlMode,this.lowerCaseAttributeNames=(i=r.lowerCaseAttributeNames)!==null&&i!==void 0?i:this.htmlMode,this.recognizeSelfClosing=(a=r.recognizeSelfClosing)!==null&&a!==void 0?a:!this.htmlMode,this.tokenizer=new((u=r.Tokenizer)!==null&&u!==void 0?u:mu)(this.options,this),this.foreignContext=[!this.htmlMode],(d=(l=this.cbs).onparserinit)===null||d===void 0||d.call(l,this)}ontext(t,r){var n,i;let a=this.getSlice(t,r);this.endIndex=r-1,(i=(n=this.cbs).ontext)===null||i===void 0||i.call(n,a),this.startIndex=r}ontextentity(t,r){var n,i;this.endIndex=r-1,(i=(n=this.cbs).ontext)===null||i===void 0||i.call(n,Zo(t)),this.startIndex=r}isVoidElement(t){return this.htmlMode&&nF.has(t)}onopentagname(t,r){this.endIndex=r;let n=this.getSlice(t,r);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)}emitOpenTag(t){var r,n,i,a;this.openTagStart=this.startIndex,this.tagname=t;let u=this.htmlMode&&rF.get(t);if(u)for(;this.stack.length>0&&u.has(this.stack[0]);){let l=this.stack.shift();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,l,!0)}this.isVoidElement(t)||(this.stack.unshift(t),this.htmlMode&&(NS.has(t)?this.foreignContext.unshift(!0):OS.has(t)&&this.foreignContext.unshift(!1))),(a=(i=this.cbs).onopentagname)===null||a===void 0||a.call(i,t),this.cbs.onopentag&&(this.attribs={})}endOpenTag(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=""}onopentagend(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}onclosetag(t,r){var n,i,a,u,l,d,p,g;this.endIndex=r;let E=this.getSlice(t,r);if(this.lowerCaseTagNames&&(E=E.toLowerCase()),this.htmlMode&&(NS.has(E)||OS.has(E))&&this.foreignContext.shift(),this.isVoidElement(E))this.htmlMode&&E==="br"&&((u=(a=this.cbs).onopentagname)===null||u===void 0||u.call(a,"br"),(d=(l=this.cbs).onopentag)===null||d===void 0||d.call(l,"br",{},!0),(g=(p=this.cbs).onclosetag)===null||g===void 0||g.call(p,"br",!1));else{let _=this.stack.indexOf(E);if(_!==-1)for(let y=0;y<=_;y++){let C=this.stack.shift();(i=(n=this.cbs).onclosetag)===null||i===void 0||i.call(n,C,y!==_)}else this.htmlMode&&E==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1}onselfclosingtag(t){this.endIndex=t,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}closeCurrentTag(t){var r,n;let i=this.tagname;this.endOpenTag(t),this.stack[0]===i&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,i,!t),this.stack.shift())}onattribname(t,r){this.startIndex=t;let n=this.getSlice(t,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n}onattribdata(t,r){this.attribvalue+=this.getSlice(t,r)}onattribentity(t){this.attribvalue+=Zo(t)}onattribend(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===qn.Double?'"':t===qn.Single?"'":t===qn.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(t){let r=t.search(iF),n=r<0?t:t.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n}ondeclaration(t,r){this.endIndex=r;let n=this.getSlice(t,r);if(this.cbs.onprocessinginstruction){let i=this.getInstructionName(n);this.cbs.onprocessinginstruction(`!${i}`,`!${n}`)}this.startIndex=r+1}onprocessinginstruction(t,r){this.endIndex=r;let n=this.getSlice(t,r);if(this.cbs.onprocessinginstruction){let i=this.getInstructionName(n);this.cbs.onprocessinginstruction(`?${i}`,`?${n}`)}this.startIndex=r+1}oncomment(t,r,n){var i,a,u,l;this.endIndex=r,(a=(i=this.cbs).oncomment)===null||a===void 0||a.call(i,this.getSlice(t,r-n)),(l=(u=this.cbs).oncommentend)===null||l===void 0||l.call(u),this.startIndex=r+1}oncdata(t,r,n){var i,a,u,l,d,p,g,E,_,y;this.endIndex=r;let C=this.getSlice(t,r-n);!this.htmlMode||this.options.recognizeCDATA?((a=(i=this.cbs).oncdatastart)===null||a===void 0||a.call(i),(l=(u=this.cbs).ontext)===null||l===void 0||l.call(u,C),(p=(d=this.cbs).oncdataend)===null||p===void 0||p.call(d)):((E=(g=this.cbs).oncomment)===null||E===void 0||E.call(g,`[CDATA[${C}]]`),(y=(_=this.cbs).oncommentend)===null||y===void 0||y.call(_)),this.startIndex=r+1}onend(){var t,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let n=0;n<this.stack.length;n++)this.cbs.onclosetag(this.stack[n],!0)}(r=(t=this.cbs).onend)===null||r===void 0||r.call(t)}reset(){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.foreignContext.length=0,this.foreignContext.unshift(!this.htmlMode),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(t){this.reset(),this.end(t)}getSlice(t,r){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let n=this.buffers[0].slice(t-this.bufferOffset,r-this.bufferOffset);for(;r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(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++)}end(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()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(t){this.write(t)}done(t){this.end(t)}}});function DS(e,t){let r=new Qo(void 0,t);return new _l(r,t).end(e),r.root}var kS=v(()=>{a_();a_();_r();_r();i_();jo();ci();ci();ci()});var aF,sF,RS=v(()=>{Sw();Bg();wS();Q0();kS();aF=hw((e,t,r,n)=>t._useHtmlParser2?DS(e,t):yS(e,t,r,n)),sF=ww(aF,(e,t)=>t._useHtmlParser2?Dd(e,t):AS(e))});var LS={};Nn(LS,{contains:()=>Gc,load:()=>sF,merge:()=>ig});var PS=v(()=>{iu();RS()});var FS=Mi((cse,MS)=>{"use strict";var oF=(PS(),$_(LS));function uF(e){let t=oF.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((a,u)=>{t(u).attr(i)&&r.push(t(u).attr(i))})}),r}MS.exports=uF});var HS=Mi((lse,$S)=>{"use strict";var{marked:BS}=RA(),cF=FS();$S.exports=function(t,r=!1){BS.setOptions({mangle:!1});let n=BS(t);return cF(n)}});var KS={};Nn(KS,{default:()=>lF,getServer:()=>YS});function YS(e){let t=b0(e),r=qS.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 a=zS.parse(n.url,!0);if(a.pathname==="/search"){let u=a.query.q,l=await t.search(u);i.statusCode=200,i.setHeader("Content-Type","application/json"),i.end(JSON.stringify(l))}else i.end()}}catch(a){i.statusCode=500,i.end(a)}});return{listen(n){console.debug(`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 bl.Notice(`Omnisearch - Started non-localhost HTTP server at ${e.settings.DANGER_httpHost}:${n}`,12e4):e.settings.httpApiNotice&&new bl.Notice(`Omnisearch - Started HTTP server on port ${n}`)}),r.on("error",i=>{console.error(i),new bl.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 bl.Notice("Omnisearch - Terminated HTTP server")}}}var qS,zS,bl,lF,jS=v(()=>{qS=ln(require("http")),zS=ln(require("url")),bl=require("obsidian");E0();lF=YS});var dF={};Nn(dF,{default:()=>Ih});module.exports=$_(dF);var zn=require("obsidian");Pc();wo();mr();mr();mr();en();E0();var md=ln(iA(),1),aA=Symbol.for("Dexie"),gd=globalThis[aA]||(globalThis[aA]=md.default);if(md.default.semVer!==gd.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${md.default.semVer} and ${gd.semVer}`);var{liveQuery:rre,mergeRanges:nre,rangesOverlap:ire,RangeSet:are,cmp:sre,Entity:ore,PropModification:ure,replacePrefix:cre,add:lre,remove:fre}=gd;var sA=gd;var x0=require("obsidian"),zo=class extends sA{constructor(r){super(zo.getDbName(r.app.appId));this.plugin=r;this.version(zo.dbVersion).stores({searchHistory:"++id",minisearch:"date",embeds:"embedded"})}static getDbName(r){return"omnisearch/cache/"+r}async getMinisearchCache(){try{return(await this.plugin.database.minisearch.toArray())[0]}catch(r){return new x0.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(r),null}}async writeMinisearchCache(){let r=this.plugin.searchEngine.getSerializedMiniSearch(),n=this.plugin.searchEngine.getSerializedIndexedDocuments(),i=this.plugin.database;await i.minisearch.clear(),await i.minisearch.add({date:new Date().toISOString(),paths:n,data:r}),console.debug("Omnisearch - Search cache written")}async clearOldDatabases(){let r=(await indexedDB.databases()).filter(n=>n.name===zo.getDbName(this.plugin.app.appId)&&n.version!==zo.dbVersion*10);if(r.length){console.debug("Omnisearch - Those IndexedDb databases will be deleted:");for(let n of r)n.name&&indexedDB.deleteDatabase(n.name)}}async clearCache(){await this.minisearch.clear(),await this.embeds.clear(),new x0.Notice("Omnisearch - Cache cleared. Please restart Obsidian.")}},Mc=zo;Mc.dbVersion=10;function Ed(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function l(g){try{p(n.next(g))}catch(E){u(E)}}function d(g){try{p(n.throw(g))}catch(E){u(E)}}function p(g){g.done?a(g.value):i(g.value).then(l,d)}p((n=n.apply(e,t||[])).next())})}var eR="ENTRIES",fA="KEYS",dA="VALUES",gr="",Fc=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}=Yo(this._path);if(Yo(r)===gr)return{done:!1,value:this.result()};let n=t.get(Yo(r));return this._path.push({node:n,keys:Array.from(n.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;let t=Yo(this._path).keys;t.pop(),!(t.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:t})=>Yo(t)).filter(t=>t!==gr).join("")}value(){return Yo(this._path).node.get(gr)}result(){switch(this._type){case dA:return this.value();case fA:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}},Yo=e=>e[e.length-1],tR=(e,t,r)=>{let n=new Map;if(t===void 0)return n;let i=t.length+1,a=i+r,u=new Uint8Array(a*i).fill(r+1);for(let l=0;l<i;++l)u[l]=l;for(let l=1;l<a;++l)u[l*i]=l;return hA(e,t,r,n,u,1,i,""),n},hA=(e,t,r,n,i,a,u,l)=>{let d=a*u;e:for(let p of e.keys())if(p===gr){let g=i[d-1];g<=r&&n.set(l,[e.get(p),g])}else{let g=a;for(let E=0;E<p.length;++E,++g){let _=p[E],y=u*g,C=y-u,D=i[y],P=Math.max(0,g-r-1),N=Math.min(u-1,g+r);for(let L=P;L<N;++L){let H=_!==t[L],R=i[C+L]+ +H,B=i[C+L+1]+1,V=i[y+L]+1,X=i[y+L+1]=Math.min(R,B,V);X<D&&(D=X)}if(D>r)continue e}hA(e.get(p),t,r,n,i,g,u,l+p)}},Ii=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]=vd(this._tree,t.slice(this._prefix.length));if(r===void 0){let[i,a]=O0(n);for(let u of i.keys())if(u!==gr&&u.startsWith(a)){let l=new Map;return l.set(u.slice(a.length),i.get(u)),new Ii(l,t)}}return new Ii(r,t)}clear(){this._size=void 0,this._tree.clear()}delete(t){return this._size=void 0,rR(this._tree,t)}entries(){return new Fc(this,eR)}forEach(t){for(let[r,n]of this)t(r,n,this)}fuzzyGet(t,r){return tR(this._tree,t,r)}get(t){let r=C0(this._tree,t);return r!==void 0?r.get(gr):void 0}has(t){let r=C0(this._tree,t);return r!==void 0&&r.has(gr)}keys(){return new Fc(this,fA)}set(t,r){if(typeof t!="string")throw new Error("key must be a string");return this._size=void 0,y0(this._tree,t).set(gr,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=y0(this._tree,t);return n.set(gr,r(n.get(gr))),this}fetch(t,r){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;let n=y0(this._tree,t),i=n.get(gr);return i===void 0&&n.set(gr,i=r()),i}values(){return new Fc(this,dA)}[Symbol.iterator](){return this.entries()}static from(t){let r=new Ii;for(let[n,i]of t)r.set(n,i);return r}static fromObject(t){return Ii.from(Object.entries(t))}},vd=(e,t,r=[])=>{if(t.length===0||e==null)return[e,r];for(let n of e.keys())if(n!==gr&&t.startsWith(n))return r.push([e,n]),vd(e.get(n),t.slice(n.length),r);return r.push([e,t]),vd(void 0,"",r)},C0=(e,t)=>{if(t.length===0||e==null)return e;for(let r of e.keys())if(r!==gr&&t.startsWith(r))return C0(e.get(r),t.slice(r.length))},y0=(e,t)=>{let r=t.length;e:for(let n=0;e&&n<r;){for(let a of e.keys())if(a!==gr&&t[n]===a[0]){let u=Math.min(r-n,a.length),l=1;for(;l<u&&t[n+l]===a[l];)++l;let d=e.get(a);if(l===a.length)e=d;else{let p=new Map;p.set(a.slice(l),d),e.set(t.slice(n,n+l),p),e.delete(a),e=p}n+=l;continue e}let i=new Map;return e.set(t.slice(n),i),i}return e},rR=(e,t)=>{let[r,n]=vd(e,t);if(r!==void 0){if(r.delete(gr),r.size===0)pA(n);else if(r.size===1){let[i,a]=r.entries().next().value;mA(n,i,a)}}},pA=e=>{if(e.length===0)return;let[t,r]=O0(e);if(t.delete(r),t.size===0)pA(e.slice(0,-1));else if(t.size===1){let[n,i]=t.entries().next().value;n!==gr&&mA(e.slice(0,-1),n,i)}},mA=(e,t,r)=>{if(e.length===0)return;let[n,i]=O0(e);n.set(i+t,r),n.delete(i)},O0=e=>e[e.length-1],D0="or",gA="and",nR="and_not",Ni=class{constructor(t){if(t?.fields==null)throw new Error('MiniSearch: option "fields" must be provided');let r=t.autoVacuum==null||t.autoVacuum===!0?S0:t.autoVacuum;this._options=Object.assign(Object.assign(Object.assign({},w0),t),{autoVacuum:r,searchOptions:Object.assign(Object.assign({},oA),t.searchOptions||{}),autoSuggestOptions:Object.assign(Object.assign({},uR),t.autoSuggestOptions||{})}),this._index=new Ii,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=N0,this.addFields(this._options.fields)}add(t){let{extractField:r,tokenize:n,processTerm:i,fields:a,idField:u}=this._options,l=r(t,u);if(l==null)throw new Error(`MiniSearch: document does not have ID field "${u}"`);if(this._idToShortId.has(l))throw new Error(`MiniSearch: duplicate ID ${l}`);let d=this.addDocumentId(l);this.saveStoredFields(d,t);for(let p of a){let g=r(t,p);if(g==null)continue;let E=n(g.toString(),p),_=this._fieldIds[p],y=new Set(E).size;this.addFieldLength(d,_,this._documentCount-1,y);for(let C of E){let D=i(C,p);if(Array.isArray(D))for(let P of D)this.addTerm(_,d,P);else D&&this.addTerm(_,d,D)}}}addAll(t){for(let r of t)this.add(r)}addAllAsync(t,r={}){let{chunkSize:n=10}=r,i={chunk:[],promise:Promise.resolve()},{chunk:a,promise:u}=t.reduce(({chunk:l,promise:d},p,g)=>(l.push(p),(g+1)%n===0?{chunk:[],promise:d.then(()=>new Promise(E=>setTimeout(E,0))).then(()=>this.addAll(l))}:{chunk:l,promise:d}),i);return u.then(()=>this.addAll(a))}remove(t){let{tokenize:r,processTerm:n,extractField:i,fields:a,idField:u}=this._options,l=i(t,u);if(l==null)throw new Error(`MiniSearch: document does not have ID field "${u}"`);let d=this._idToShortId.get(l);if(d==null)throw new Error(`MiniSearch: cannot remove document with ID ${l}: it is not in the index`);for(let p of a){let g=i(t,p);if(g==null)continue;let E=r(g.toString(),p),_=this._fieldIds[p],y=new Set(E).size;this.removeFieldLength(d,_,this._documentCount,y);for(let C of E){let D=n(C,p);if(Array.isArray(D))for(let P of D)this.removeTerm(_,d,P);else D&&this.removeTerm(_,d,D)}}this._storedFields.delete(d),this._documentIds.delete(d),this._idToShortId.delete(l),this._fieldLength.delete(d),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 Ii,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=N0,this.performVacuuming(t,n)}),this._enqueuedVacuum)):this.vacuumConditionsMet(r)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(t),this._currentVacuum)}performVacuuming(t,r){return Ed(this,void 0,void 0,function*(){let n=this._dirtCount;if(this.vacuumConditionsMet(r)){let i=t.batchSize||I0.batchSize,a=t.batchWait||I0.batchWait,u=1;for(let[l,d]of this._index){for(let[p,g]of d)for(let[E]of g)this._documentIds.has(E)||(g.size<=1?d.delete(p):g.delete(E));this._index.get(l).size===0&&this._index.delete(l),u%i===0&&(yield new Promise(p=>setTimeout(p,a))),u+=1}this._dirtCount-=n}yield null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null})}vacuumConditionsMet(t){if(t==null)return!0;let{minDirtCount:r,minDirtFactor:n}=t;return r=r||S0.minDirtCount,n=n||S0.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[a,{score:u,terms:l,match:d}]of n){let p=l.length||1,g={id:this._documentIds.get(a),score:u*p,terms:Object.keys(d),queryTerms:l,match:d};Object.assign(g,this._storedFields.get(a)),(r.filter==null||r.filter(g))&&i.push(g)}return t===Ni.wildcard&&r.boostDocument==null&&this._options.searchOptions.boostDocument==null||i.sort(cA),i}autoSuggest(t,r={}){r=Object.assign(Object.assign({},this._options.autoSuggestOptions),r);let n=new Map;for(let{score:a,terms:u}of this.search(t,r)){let l=u.join(" "),d=n.get(l);d!=null?(d.score+=a,d.count+=1):n.set(l,{score:a,terms:u,count:1})}let i=[];for(let[a,{score:u,terms:l,count:d}]of n)i.push({suggestion:a,terms:l,score:u/d});return i.sort(cA),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 loadJSONAsync(t,r){return Ed(this,void 0,void 0,function*(){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(w0.hasOwnProperty(t))return A0(w0,t);throw new Error(`MiniSearch: unknown option "${t}"`)}static loadJS(t,r){let{index:n,documentIds:i,fieldLength:a,storedFields:u,serializationVersion:l}=t,d=this.instantiateMiniSearch(t,r);d._documentIds=_d(i),d._fieldLength=_d(a),d._storedFields=_d(u);for(let[p,g]of d._documentIds)d._idToShortId.set(g,p);for(let[p,g]of n){let E=new Map;for(let _ of Object.keys(g)){let y=g[_];l===1&&(y=y.ds),E.set(parseInt(_,10),_d(y))}d._index.set(p,E)}return d}static loadJSAsync(t,r){return Ed(this,void 0,void 0,function*(){let{index:n,documentIds:i,fieldLength:a,storedFields:u,serializationVersion:l}=t,d=this.instantiateMiniSearch(t,r);d._documentIds=yield bd(i),d._fieldLength=yield bd(a),d._storedFields=yield bd(u);for(let[g,E]of d._documentIds)d._idToShortId.set(E,g);let p=0;for(let[g,E]of n){let _=new Map;for(let y of Object.keys(E)){let C=E[y];l===1&&(C=C.ds),_.set(parseInt(y,10),yield bd(C))}++p%1e3===0&&(yield _A(0)),d._index.set(g,_)}return d})}static instantiateMiniSearch(t,r){let{documentCount:n,nextId:i,fieldIds:a,averageFieldLength:u,dirtCount:l,serializationVersion:d}=t;if(d!==1&&d!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");let p=new Ni(r);return p._documentCount=n,p._nextId=i,p._idToShortId=new Map,p._fieldIds=a,p._avgFieldLength=u,p._dirtCount=l||0,p._index=new Ii,p}executeQuery(t,r={}){if(t===Ni.wildcard)return this.executeWildcardQuery(r);if(typeof t!="string"){let _=Object.assign(Object.assign(Object.assign({},r),t),{queries:void 0}),y=t.queries.map(C=>this.executeQuery(C,_));return this.combineResults(y,_.combineWith)}let{tokenize:n,processTerm:i,searchOptions:a}=this._options,u=Object.assign(Object.assign({tokenize:n,processTerm:i},a),r),{tokenize:l,processTerm:d}=u,E=l(t).flatMap(_=>d(_)).filter(_=>!!_).map(oR(u)).map(_=>this.executeQuerySpec(_,u));return this.combineResults(E,u.combineWith)}executeQuerySpec(t,r){let n=Object.assign(Object.assign({},this._options.searchOptions),r),i=(n.fields||this._options.fields).reduce((D,P)=>Object.assign(Object.assign({},D),{[P]:A0(n.boost,P)||1}),{}),{boostDocument:a,weights:u,maxFuzzy:l,bm25:d}=n,{fuzzy:p,prefix:g}=Object.assign(Object.assign({},oA.weights),u),E=this._index.get(t.term),_=this.termResults(t.term,t.term,1,t.termBoost,E,i,a,d),y,C;if(t.prefix&&(y=this._index.atPrefix(t.term)),t.fuzzy){let D=t.fuzzy===!0?.2:t.fuzzy,P=D<1?Math.min(l,Math.round(t.term.length*D)):D;P&&(C=this._index.fuzzyGet(t.term,P))}if(y)for(let[D,P]of y){let N=D.length-t.term.length;if(!N)continue;C?.delete(D);let L=g*D.length/(D.length+.3*N);this.termResults(t.term,D,L,t.termBoost,P,i,a,d,_)}if(C)for(let D of C.keys()){let[P,N]=C.get(D);if(!N)continue;let L=p*D.length/(D.length+N);this.termResults(t.term,D,L,t.termBoost,P,i,a,d,_)}return _}executeWildcardQuery(t){let r=new Map,n=Object.assign(Object.assign({},this._options.searchOptions),t);for(let[i,a]of this._documentIds){let u=n.boostDocument?n.boostDocument(a,"",this._storedFields.get(i)):1;r.set(i,{score:u,terms:[],match:{}})}return r}combineResults(t,r=D0){if(t.length===0)return new Map;let n=r.toLowerCase(),i=iR[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[a,u]of n)i[a]=Object.fromEntries(u);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,a,u,l,d,p=new Map){if(a==null)return p;for(let g of Object.keys(u)){let E=u[g],_=this._fieldIds[g],y=a.get(_);if(y==null)continue;let C=y.size,D=this._avgFieldLength[_];for(let P of y.keys()){if(!this._documentIds.has(P)){this.removeTerm(_,P,r),C-=1;continue}let N=l?l(this._documentIds.get(P),r,this._storedFields.get(P)):1;if(!N)continue;let L=y.get(P),H=this._fieldLength.get(P)[_],R=sR(L,C,this._documentCount,H,D,d),B=n*i*E*N*R,V=p.get(P);if(V){V.score+=B,cR(V.terms,t);let X=A0(V.match,r);X?X.push(g):V.match[r]=[g]}else p.set(P,{score:B,terms:[t],match:{[r]:[g]}})}}return p}addTerm(t,r,n){let i=this._index.fetch(n,lA),a=i.get(t);if(a==null)a=new Map,a.set(r,1),i.set(t,a);else{let u=a.get(r);a.set(r,(u||0)+1)}}removeTerm(t,r,n){if(!this._index.has(n)){this.warnDocumentChanged(r,t,n);return}let i=this._index.fetch(n,lA),a=i.get(t);a==null||a.get(r)==null?this.warnDocumentChanged(r,t,n):a.get(r)<=1?a.size<=1?i.delete(t):a.delete(r):a.set(r,a.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 a=this._fieldLength.get(t);a==null&&this._fieldLength.set(t,a=[]),a[r]=i;let l=(this._avgFieldLength[r]||0)*n+i;this._avgFieldLength[r]=l/(n+1)}removeFieldLength(t,r,n,i){if(n===1){this._avgFieldLength[r]=0;return}let a=this._avgFieldLength[r]*n-i;this._avgFieldLength[r]=a/(n-1)}saveStoredFields(t,r){let{storeFields:n,extractField:i}=this._options;if(n==null||n.length===0)return;let a=this._storedFields.get(t);a==null&&this._storedFields.set(t,a={});for(let u of n){let l=i(r,u);l!==void 0&&(a[u]=l)}}};Ni.wildcard=Symbol("*");var A0=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0,iR={[D0]:(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:a,match:u}=t.get(r);n.score=n.score+i,n.match=Object.assign(n.match,u),uA(n.terms,a)}}return e},[gA]:(e,t)=>{let r=new Map;for(let n of t.keys()){let i=e.get(n);if(i==null)continue;let{score:a,terms:u,match:l}=t.get(n);uA(i.terms,u),r.set(n,{score:i.score+a,terms:i.terms,match:Object.assign(i.match,l)})}return r},[nR]:(e,t)=>{for(let r of t.keys())e.delete(r);return e}},aR={k:1.2,b:.7,d:.5},sR=(e,t,r,n,i,a)=>{let{k:u,b:l,d}=a;return Math.log(1+(r-t+.5)/(t+.5))*(d+e*(u+1)/(e+u*(1-l+l*n/i)))},oR=e=>(t,r,n)=>{let i=typeof e.fuzzy=="function"?e.fuzzy(t,r,n):e.fuzzy||!1,a=typeof e.prefix=="function"?e.prefix(t,r,n):e.prefix===!0,u=typeof e.boostTerm=="function"?e.boostTerm(t,r,n):1;return{term:t,fuzzy:i,prefix:a,termBoost:u}},w0={idField:"id",extractField:(e,t)=>e[t],tokenize:e=>e.split(lR),processTerm:e=>e.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(e,t)=>{typeof console?.[e]=="function"&&console[e](t)},autoVacuum:!0},oA={combineWith:D0,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:aR},uR={combineWith:gA,prefix:(e,t,r)=>t===r.length-1},I0={batchSize:1e3,batchWait:10},N0={minDirtFactor:.1,minDirtCount:20},S0=Object.assign(Object.assign({},I0),N0),cR=(e,t)=>{e.includes(t)||e.push(t)},uA=(e,t)=>{for(let r of t)e.includes(r)||e.push(r)},cA=({score:e},{score:t})=>t-e,lA=()=>new Map,_d=e=>{let t=new Map;for(let r of Object.keys(e))t.set(parseInt(r,10),e[r]);return t},bd=e=>Ed(void 0,void 0,void 0,function*(){let t=new Map,r=0;for(let n of Object.keys(e))t.set(parseInt(n,10),e[n]),++r%1e3===0&&(yield _A(0));return t}),_A=e=>new Promise(t=>setTimeout(t,e)),lR=/[\n\r\p{Z}\p{P}]+/u;en();Nr();var VS=require("obsidian");Dc();en();Nr();var US=HS(),vh=class{constructor(t){this.plugin=t}tokenizeForIndexing(t){try{let r=this.tokenizeWords(t),n=[];if(this.plugin.settings.tokenizeUrls)try{n=US(t)}catch(a){Ke("Error extracting urls",a)}let i=this.tokenizeTokens(t,{skipChs:!0});return i=[...i.flatMap(a=>[a,...wm(a),...Am(a)]),...r],n.length&&(i=[...i,...n]),i=i.filter(Boolean),i}catch(r){return console.error("Error tokenizing text, skipping document",r),[]}}tokenizeForSearch(t){let r=US(t);t=r.reduce((i,a)=>i.replace(a,""),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(wm)},{combineWith:"AND",queries:n.flatMap(Am)}]}}tokenizeWords(t,{skipChs:r=!1}={}){let n=t.split(ov);return r?n:this.tokenizeChsWord(n)}tokenizeTokens(t,{skipChs:r=!1}={}){let n=t.split(Af);return r?n:this.tokenizeChsWord(n)}tokenizeChsWord(t){let r=this.plugin.getChsSegmenter();return r?t.flatMap(n=>iv.test(n)?r.cut(n,{search:!0}):[n]):t}};var Th=class{constructor(t){this.plugin=t;this.indexedDocuments=new Map;this.tokenizer=new vh(t),this.minisearch=new Ni(this.getOptions())}async loadCache(){await this.plugin.embedsRepository.loadFromCache();let t=await this.plugin.database.getMinisearchCache();return t?(this.minisearch=await Ni.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)}getDocumentsToReindex(t){let r=new Map(t.map(a=>[a.path,a.mtime])),n=t.filter(a=>!this.indexedDocuments.has(a.path)||this.indexedDocuments.get(a.path)!==a.mtime),i=[...this.indexedDocuments].filter(([a,u])=>!r.has(a)||r.get(a)!==u).map(a=>({path:a[0],mtime:a[1]}));return{toAdd:n,toRemove:i}}async addFromPaths(t){Ke("Adding files",t);let r=(await Promise.all(t.map(async i=>await this.plugin.documentsRepository.getDocument(i)))).filter(i=>!!i?.path);Ke("Sorting documents to first index markdown"),r=i0(r,i=>i.path.endsWith(".md")?0:1),this.removeFromPaths(r.filter(i=>this.indexedDocuments.has(i.path)).map(i=>i.path));let n=hv(r,500);for(let i of n){Ke("Indexing into search engine",i),i.forEach(u=>this.indexedDocuments.set(u.path,u.mtime));let a=i.filter(u=>this.minisearch.has(u.path));this.removeFromPaths(a.map(u=>u.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[];Ke("=== New search ==="),Ke("Starting search for",t);let i;switch(n.fuzziness){case"0":i=0;break;case"1":i=.1;break;default:i=.2;break}let a=this.tokenizer.tokenizeForSearch(t.segmentsToStr());Ke(JSON.stringify(a,null,1));let u=this.minisearch.search(a,{prefix:E=>E.length>=r.prefixLength,fuzzy:E=>E.length<=3?0:E.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:E=>[E],boostDocument(E,_,y){if(!y?.mtime||n.recencyBoost==="0")return 1;let C=y?.mtime,D=new Date().valueOf();console.log(D);let P=(D-C)/(24*36e5),N={["1"]:-3,["2"]:-.3,["3"]:-.1};return 1+Math.exp(N[n.recencyBoost]*(P/1e3))}});if(Ke(`Found ${u.length} results`,u),t.query.ext?.length&&(u=u.filter(E=>{let _="."+E.id.split(".").pop();return t.query.ext?.some(y=>_.startsWith(y.startsWith(".")?y:"."+y))})),t.query.path&&(u=u.filter(E=>t.query.path?.some(_=>E.id.toLowerCase().includes(_.toLowerCase())))),t.query.exclude.path&&(u=u.filter(E=>!t.query.exclude.path?.some(_=>E.id.toLowerCase().includes(_.toLowerCase())))),!u.length)return[];if(r.singleFilePath)return u.filter(E=>E.id===r.singleFilePath);Ke("searching with downranked folders",n.downrankedFoldersFilters),n.hideExcluded?u=u.filter(E=>!(this.plugin.app.metadataCache.isUserIgnored&&this.plugin.app.metadataCache.isUserIgnored(E.id))):u.forEach(E=>{this.plugin.app.metadataCache.isUserIgnored&&this.plugin.app.metadataCache.isUserIgnored(E.id)&&(E.score/=10)});let l=t.getTags();for(let E of u){let _=E.id;if(n.downrankedFoldersFilters.length>0){let C=!1;n.downrankedFoldersFilters.forEach(N=>{_.startsWith(N)&&(_===N||_.startsWith(N+"/"))&&(Ke("searching with downranked folders in path: ",_),C=!0)}),C&&(E.score/=10);let D=_.split("/"),P=D.length;for(let N=0;N<P;N++){let L=D[N];if(n.downrankedFoldersFilters.includes(L)){E.score/=10;break}}}let y=this.plugin.app.metadataCache.getCache(_);if(y)for(let{name:C,weight:D}of n.weightCustomProperties){let P=y?.frontmatter?.[C];P&&E.terms.some(N=>P.includes(N))&&(Ke(`Boosting field "${C}" x${D} for ${_}`),E.score*=D)}for(let C of l)(E.tags??[]).includes(C)&&(E.score*=100)}Ke("Sorting and limiting results"),u=u.sort((E,_)=>_.score-E.score).slice(0,50),Ke("Filtered results:",u),u.length&&Ke("First result:",u[0]);let d=await Promise.all(u.map(async E=>{let _=await this.plugin.documentsRepository.getDocument(E.id);return _||(console.warn(`Omnisearch - Note "${E.id}" not in the live cache`),pc(!0)),_})),p=t.getExactTerms();p.length&&(Ke("Filtering with quoted terms: ",p),u=u.filter(E=>{let _=d.find(D=>D.path===E.id),y=_?.path.toLowerCase()??"",C=(_?.cleanedContent??"").toLowerCase();return p.every(D=>C.includes(D)||Gi(y,this.plugin.settings.ignoreArabicDiacritics).includes(D))}));let g=t.query.exclude.text;return g.length&&(Ke("Filtering with exclusions"),u=u.filter(E=>{let _=(d.find(y=>y.path===E.id)?.content??"").toLowerCase();return g.every(y=>!_.includes(y))})),Ke("Deduping"),u=u.filter((E,_,y)=>y.findIndex(C=>C.id===E.id)===_),u}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 l=>await this.plugin.documentsRepository.getDocument(l.id))),a=i.length;for(let l=0;l<a;l++){let d=i[l];if(!d)continue;let p=this.plugin.embedsRepository.getEmbeds(d.path).slice(0,this.plugin.settings.maxEmbeds);for(let g of p){a++;let E=await this.plugin.documentsRepository.getDocument(g);i.splice(l+1,0,E),n.splice(l+1,0,{id:E.path,score:0,terms:[],queryTerms:[],match:{},isEmbed:!0}),l++}}let u=n.map(l=>{Ke("Locating matches for",l.id);let d=i.find(_=>_.path===l.id);d||(console.warn(`Omnisearch - Note "${l.id}" not in the live cache`),d={content:"",basename:l.id,path:l.id});let p=[...l.terms,...t.getExactTerms(),...t.getTags()];Ke("Matching tokens:",p),Ke("Getting matches locations...");let g=this.plugin.textProcessor.getMatches(d.content,p,t);return Ke(`Matches for note "${d.path}"`,g),{score:l.score,foundWords:p,matches:g,isEmbed:l.isEmbed,...d}});return Ke("Suggestions:",u),u}getSerializedMiniSearch(){return this.minisearch.toJSON()}getSerializedIndexedDocuments(){return Array.from(this.indexedDocuments).map(([t,r])=>({path:t,mtime:r}))}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?Gi(t,this.plugin.settings.ignoreArabicDiacritics):t).toLowerCase(),idField:"path",fields:["basename","directory","aliases","content","headings1","headings2","headings3"],storeFields:["tags","mtime"],logger(t,r,n){n==="version_conflict"&&new VS.Notice("Omnisearch - Your index cache may be incorrect or corrupted. If this message keeps appearing, go to Settings to clear the cache.",5e3)}}}};var yh=require("obsidian");bc();Nr();var xh=class{constructor(t){this.plugin=t;this.documents=new Map;this.errorsCount=0;this.errorsWarned=!1;setInterval(()=>{this.errorsCount>0&&--this.errorsCount},1e3)}async addDocument(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),this.plugin.embedsRepository.refreshEmbedsForNote(t)}catch(r){console.warn(`Omnisearch: Error while adding "${t}" to live cache`,r),this.removeDocument(t),pc()}}removeDocument(t){this.documents.delete(t)}async getDocument(t){if(this.documents.has(t))return this.documents.get(t);Ke("Generating IndexedDocument from",t),await this.addDocument(t);let r=this.documents.get(t);return r||(console.error("Omnisearch",t,"cannot be read"),pc()),r}async getAndMapIndexedDocument(t){t=(0,yh.normalizePath)(t);let r=this.plugin.app,n=r.vault.getAbstractFileByPath(t);if(!n)throw new Error(`Invalid file path: "${t}"`);if(!(n instanceof yh.TFile))throw new Error(`Not a TFile: "${t}"`);let i=null,a=this.plugin.getTextExtractor(),u=this.plugin.getAIImageAnalyzer();if(this.plugin.notesIndexer.isFilePlaintext(t))i=await r.vault.cachedRead(n);else if(wi(t)){let g=await r.vault.cachedRead(n),E=g?JSON.parse(g):{},_=[];for(let y of E.nodes??[])y.type==="text"?_.push(y.text):y.type==="file"&&_.push(y.file);for(let y of(E.edges??[]).filter(C=>!!C.label))_.push(y.label);i=_.join(`\r
`)}else if(hc(t))try{let g=JSON.parse(await r.vault.cachedRead(n)),E=[],_=y=>{for(let C in y)typeof y[C]=="object"?_(y[C]):C==="content"&&E.push(y[C])};_(g),i=E.join(`\r
`)}catch(g){console.error("Omnisearch: Error while parsing Dataloom file",t),console.error(g)}else Mn(t)?this.plugin.settings.aiImageIndexing&&u?.canBeAnalyzed(n)?i=await u.analyzeImage(n):this.plugin.settings.imagesIndexing&&a?.canFileBeExtracted(t)&&(i=await a.extractText(n)):ti(t)&&this.plugin.settings.PDFIndexing&&a?.canFileBeExtracted(t)?i=await a.extractText(n):dv(t)&&this.plugin.settings.officeIndexing&&a?.canFileBeExtracted(t)?i=await a.extractText(n):this.plugin.notesIndexer.isFilenameIndexable(t)&&(i=n.path);i==null&&(ri(`Omnisearch: ${i} content for file`,n.path),i="");let l=r.metadataCache.getFileCache(n);if(l){let g=bv(this.plugin.app,n,l);for(let E of g.filter(_=>!this.documents.has(_))){let _=this.plugin.notesIndexer.generateIndexableNonexistingDocument(E,n.path)}if(l.frontmatter?.["excalidraw-plugin"]){let E=l.sections?.filter(_=>_.type==="comment")??[];for(let{start:_,end:y}of E.map(C=>C.position))i=i.substring(0,_.offset-1)+i.substring(y.offset)}}let d;this.plugin.settings.displayTitle==="#heading"?d=l?.headings?.find(g=>g.level===1)?.heading??"":d=l?.frontmatter?.[this.plugin.settings.displayTitle]??"";let p=fv(l);return{basename:n.basename,displayTitle:d,content:i,cleanedContent:cv(Gi(i)),path:n.path,mtime:n.stat.mtime,tags:p,unmarkedTags:p.map(g=>g.replace("#","")),aliases:lv(l).join(""),headings1:l?wf(l,1).join(" "):"",headings2:l?wf(l,2).join(" "):"",headings3:l?wf(l,3).join(" "):""}}};Nr();bc();Nr();var Ah=class{constructor(t){this.plugin=t;this.notesToReindex=new Set}flagNoteForReindex(t){this.notesToReindex.add(t)}async refreshIndex(){for(let r of this.notesToReindex)Ke("Updating file",r.path),await this.plugin.documentsRepository.addDocument(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(),a=n&&r.PDFIndexing,u=n&&r.imagesIndexing,l=i&&r.aiImageIndexing;return this.isFilePlaintext(t)||wi(t)||hc(t)||a&&ti(t)||u&&Mn(t)||l&&Mn(t)}isFilenameIndexable(t){return this.canIndexUnsupportedFiles()||this.isFilePlaintext(t)||wi(t)||Cs(t)||hc(t)}canIndexUnsupportedFiles(){return this.plugin.settings.unsupportedFilesIndexing==="yes"||this.plugin.settings.unsupportedFilesIndexing==="default"&&!!this.plugin.app.vault.getConfig("showUnsupportedFiles")}generateIndexableNonexistingDocument(t,r){return t=Om(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}`))}};o0();var Sh=require("obsidian");Nr();var wh=class{constructor(t){this.plugin=t;this.embeds=new Map}addEmbed(t,r){this.embeds.has(t)||this.embeds.set(t,new Set),this.embeds.get(t).add(r)}removeFile(t){this.embeds.delete(t),this.refreshEmbedsForNote(t)}renameFile(t,r){this.embeds.has(t)&&(this.embeds.set(r,this.embeds.get(t)),this.embeds.delete(t)),this.embeds.forEach((n,i)=>{n.has(t)&&(n.delete(t),n.add(r))})}refreshEmbedsForNote(t){this.embeds.forEach((r,n)=>{r.has(t)&&r.delete(t)}),this.addEmbedsForNote(t)}getEmbeds(t){return this.embeds.has(t)?[...this.embeds.get(t)]:[]}async writeToCache(){Ke("Writing embeds to cache");let t=this.plugin.database,r=[];for(let[n,i]of this.embeds)r.push({embedded:n,referencedBy:[...i]});await t.embeds.clear(),await t.embeds.bulkAdd(r)}async loadFromCache(){try{let t=this.plugin.database;if(!t.embeds){Ke("No embeds in cache");return}Ke("Loading embeds from cache");let r=await t.embeds.toArray();for(let{embedded:n,referencedBy:i}of r)for(let a of i)this.addEmbed(n,a)}catch{this.plugin.database.clearCache(),console.error("Omnisearch - Error while loading embeds cache"),new Sh.Notice("Omnisearch - There was an error while loading the cache. Please restart Obsidian.")}}addEmbedsForNote(t){let r=(this.plugin.app.metadataCache.getCache(t)?.embeds??[]).map(n=>this.plugin.app.metadataCache.getFirstLinkpathDest((0,Sh.getLinkpath)(n.link),t)).filter(n=>!!n);for(let n of r)this.addEmbed(n.path,t)}};var Ch=class{constructor(t){this.plugin=t;this.nextQueryIsEmpty=!1}async addToHistory(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 getHistory(){let t=(await this.plugin.database.searchHistory.toArray()).reverse().map(r=>r.query);return this.nextQueryIsEmpty&&t.unshift(""),t}};var Ih=class extends zn.Plugin{constructor(r,n){super(r,n);this.apiHttpServer=null;this.settings=kc(this.app);this.embedsRepository=new wh(this);this.database=new Mc(this);this.notesIndexer=new Ah(this);this.textProcessor=new ad(this);this.searchEngine=new Th(this);this.searchHistory=new Ch(this);this.documentsRepository=new xh(this)}async onload(){if(this.settings=await Ry(this),this.addSettingTab(new id(this)),zn.Platform.isMobile||Promise.resolve().then(()=>(jS(),KS)).then(i=>this.apiHttpServer=i.getServer(this)),Nf(this.app)){console.debug("Plugin disabled");return}await fF(this.app),await this.database.clearOldDatabases(),nA(this);let r=this.settings;r.ribbonIcon&&this.addRibbonButton(),Me.disable("vault"),Me.disable("infile"),Me.on("global",yf.ToggleExcerpts,()=>{Fa.set(!r.showExcerpt)}),this.addCommand({id:"show-modal",name:"Vault search",callback:()=>{new ta(this).open()}}),this.addCommand({id:"show-modal-infile",name:"In-file search",editorCallback:(i,a)=>{a.file&&new Rs(this,a.file).open()}});let n=this.searchEngine;this.app.workspace.onLayoutReady(async()=>{this.registerEvent(this.app.vault.on("create",i=>{i instanceof zn.TFile&&this.notesIndexer.isFileIndexable(i.path)&&(Ke("Indexing new file",i.path),n.addFromPaths([i.path]),this.embedsRepository.refreshEmbedsForNote(i.path))})),this.registerEvent(this.app.vault.on("delete",i=>{i instanceof zn.TFile&&(Ke("Removing file",i.path),this.documentsRepository.removeDocument(i.path),n.removeFromPaths([i.path]),this.embedsRepository.removeFile(i.path))})),this.registerEvent(this.app.vault.on("modify",async i=>{i instanceof zn.TFile&&(this.notesIndexer.isFileIndexable(i.path)&&this.notesIndexer.flagNoteForReindex(i),this.embedsRepository.refreshEmbedsForNote(i.path))})),this.registerEvent(this.app.vault.on("rename",async(i,a)=>{i instanceof zn.TFile&&this.notesIndexer.isFileIndexable(i.path)&&(Ke("Renaming file",i.path),this.documentsRepository.removeDocument(a),await this.documentsRepository.addDocument(i.path),n.removeFromPaths([a]),await n.addFromPaths([i.path]),this.embedsRepository.renameFile(a,i.path))})),this.refreshIndexCallback=this.notesIndexer.refreshIndex.bind(this.notesIndexer),addEventListener("blur",this.refreshIndexCallback),removeEventListener,await this.executeFirstLaunchTasks(),await this.populateIndex(),this.apiHttpServer&&r.httpApiEnabled&&this.apiHttpServer.listen(r.httpApiPort)})}async executeFirstLaunchTasks(){let r="1.21.0";this.settings.welcomeMessage=r,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",r=>{new ta(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("Indexing total time"),Ca.set(2);let r=this.app.vault.getFiles().filter(a=>this.notesIndexer.isFileIndexable(a.path));console.debug(`${r.length} files total`),console.debug(`Cache is ${Qi()?"enabled":"disabled"}`);let n=this.searchEngine;Qi()&&(console.time("Loading index from cache"),Ca.set(1),await n.loadCache()&&console.timeEnd("Loading index from cache"));let i=n.getDocumentsToReindex(r.map(a=>({path:a.path,mtime:a.stat.mtime})));if(Qi()&&(i.toAdd.length&&console.debug("Total number of files to add/update: "+i.toAdd.length),i.toRemove.length&&console.debug("Total number of files to remove: "+i.toRemove.length)),i.toAdd.length>=1e3&&Qi()&&new zn.Notice(`${i.toAdd.length} files need to be indexed. Obsidian may experience stutters and freezes during the process`,1e4),Ca.set(3),n.removeFromPaths(i.toRemove.map(a=>a.path)),await n.addFromPaths(i.toAdd.map(a=>a.path)),(i.toRemove.length||i.toAdd.length)&&Qi()){Ca.set(4);let a=this.settings.useCache;a&&!this.settings.DANGER_forceSaveCache&&(this.settings.useCache=!1,await ke(this)),await this.database.writeMinisearchCache(),await this.embedsRepository.writeToCache(),a&&(this.settings.useCache=!0,await ke(this))}console.timeEnd("Indexing total time"),i.toAdd.length>=1e3&&Qi()&&new zn.Notice("Your files have been indexed."),Ca.set(0),rA()}};async function fF(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{}}
/*! Bundled license information:

lodash-es/lodash.js:
  (**
   * @license
   * Lodash (Custom Build) <https://lodash.com/>
   * Build: `lodash modularize exports="es" -o ./`
   * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
   * Released under MIT license <https://lodash.com/license>
   * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
   * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
   *)

search-query-parser/lib/search-query-parser.js:
  (*!
   * search-query-parser.js
   * Copyright(c) 2014-2019
   * MIT Licensed
   *)

dexie/dist/dexie.js:
  (*! *****************************************************************************
  Copyright (c) Microsoft Corporation.
  Permission to use, copy, modify, and/or distribute this software for any
  purpose with or without fee is hereby granted.
  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  PERFORMANCE OF THIS SOFTWARE.
  ***************************************************************************** *)
*/

/* nosourcemap */