106 lines
595 KiB
JavaScript
106 lines
595 KiB
JavaScript
/*
|
||
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
||
if you want to view the source, please visit the github repository of this plugin
|
||
*/
|
||
|
||
var By=Object.create;var Xs=Object.defineProperty,jy=Object.defineProperties,Hy=Object.getOwnPropertyDescriptor,Uy=Object.getOwnPropertyDescriptors,Gy=Object.getOwnPropertyNames,qh=Object.getOwnPropertySymbols,qy=Object.getPrototypeOf,zh=Object.prototype.hasOwnProperty,zy=Object.prototype.propertyIsEnumerable;var $c=(e,t,r)=>t in e?Xs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,J=(e,t)=>{for(var r in t||(t={}))zh.call(t,r)&&$c(e,r,t[r]);if(qh)for(var r of qh(t))zy.call(t,r)&&$c(e,r,t[r]);return e},Fe=(e,t)=>jy(e,Uy(t)),Vh=e=>Xs(e,"__esModule",{value:!0});var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var U=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Kh=(e,t)=>{Vh(e);for(var r in t)Xs(e,r,{get:t[r],enumerable:!0})},Vy=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Gy(t))!zh.call(e,n)&&n!=="default"&&Xs(e,n,{get:()=>t[n],enumerable:!(r=Hy(t,n))||r.enumerable});return e},Xe=e=>Vy(Vh(Xs(e!=null?By(qy(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var Wh=(e,t,r)=>($c(e,typeof t!="symbol"?t+"":t,r),r);function qe(){}function Ky(e,t){for(let r in t)e[r]=t[r];return e}function Xc(e){return e()}function Yh(){return Object.create(null)}function lr(e){e.forEach(Xc)}function Li(e){return typeof e=="function"}function ot(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Zc(e,t){return Su||(Su=document.createElement("a")),Su.href=t,e===Su.href}function Qh(e){return Object.keys(e).length===0}function $h(e,...t){if(e==null)return qe;let r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function xu(e,t,r){e.$$.on_destroy.push($h(t,r))}function Mi(e,t,r,n){if(e){let i=Xh(e,t,r,n);return e[0](i)}}function Xh(e,t,r,n){return e[1]&&n?Ky(r.ctx.slice(),e[1](n(t))):r.ctx}function ki(e,t,r,n){if(e[2]&&n){let i=e[2](n(r));if(t.dirty===void 0)return i;if(typeof i=="object"){let s=[],a=Math.max(t.dirty.length,i.length);for(let u=0;u<a;u+=1)s[u]=t.dirty[u]|i[u];return s}return t.dirty|i}return t.dirty}function Fi(e,t,r,n,i,s){if(i){let a=Xh(t,r,n,s);e.p(a,i)}}function Bi(e){if(e.ctx.length>32){let t=[],r=e.ctx.length/32;for(let n=0;n<r;n++)t[n]=-1;return t}return-1}function Zh(e){return e&&Li(e.destroy)?e.destroy:qe}function Wy(){e0=!0}function Yy(){e0=!1}function j(e,t){e.appendChild(t)}function ae(e,t,r){e.insertBefore(t,r||null)}function se(e){e.parentNode&&e.parentNode.removeChild(e)}function Nu(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function V(e){return document.createElement(e)}function dt(e){return document.createTextNode(e)}function ue(){return dt(" ")}function Zs(){return dt("")}function ht(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function Z(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function Qy(e){return Array.from(e.childNodes)}function xr(e,t){t=""+t,e.data!==t&&(e.data=t)}function Jc(e,t){e.value=t??""}function zt(e,t,r,n){r==null?e.style.removeProperty(t):e.style.setProperty(t,r,n?"important":"")}function el(e,t,r){e.classList[r?"add":"remove"](t)}function $y(e,t,{bubbles:r=!1,cancelable:n=!1}={}){let i=document.createEvent("CustomEvent");return i.initCustomEvent(e,r,n,t),i}function ea(e){Js=e}function tl(){if(!Js)throw new Error("Function called outside component initialization");return Js}function ta(e){tl().$$.on_mount.push(e)}function ra(e){tl().$$.on_destroy.push(e)}function rl(){let e=tl();return(t,r,{cancelable:n=!1}={})=>{let i=e.$$.callbacks[t];if(i){let s=$y(t,r,{cancelable:n});return i.slice().forEach(a=>{a.call(e,s)}),!s.defaultPrevented}return!0}}function Vt(e,t){let r=e.$$.callbacks[t.type];r&&r.slice().forEach(n=>n.call(this,t))}function n0(){nl||(nl=!0,r0.then(i0))}function mn(){return n0(),r0}function il(e){Hi.push(e)}function i0(){if(Ui!==0)return;let e=Js;do{try{for(;Ui<ji.length;){let t=ji[Ui];Ui++,ea(t),Xy(t.$$)}}catch(t){throw ji.length=0,Ui=0,t}for(ea(null),ji.length=0,Ui=0;Yr.length;)Yr.pop()();for(let t=0;t<Hi.length;t+=1){let r=Hi[t];sl.has(r)||(sl.add(r),r())}Hi.length=0}while(ji.length);for(;t0.length;)t0.pop()();nl=!1,sl.clear(),ea(e)}function Xy(e){if(e.fragment!==null){e.update(),lr(e.before_update);let t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(il)}}function Zy(e){let t=[],r=[];Hi.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),Hi=t}function ei(){Jn={r:0,c:[],p:Jn}}function ti(){Jn.r||lr(Jn.c),Jn=Jn.p}function Ee(e,t){e&&e.i&&(wu.delete(e),e.i(t))}function Oe(e,t,r,n){if(e&&e.o){if(wu.has(e))return;wu.add(e),Jn.c.push(()=>{wu.delete(e),n&&(r&&e.d(1),n())}),e.o(t)}else n&&n()}function Lt(e){e&&e.c()}function Dt(e,t,r,n){let{fragment:i,after_update:s}=e.$$;i&&i.m(t,r),n||il(()=>{let a=e.$$.on_mount.map(Xc).filter(Li);e.$$.on_destroy?e.$$.on_destroy.push(...a):lr(a),e.$$.on_mount=[]}),s.forEach(il)}function Tt(e,t){let r=e.$$;r.fragment!==null&&(Zy(r.after_update),lr(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function eI(e,t){e.$$.dirty[0]===-1&&(ji.push(e),n0(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function bt(e,t,r,n,i,s,a,u=[-1]){let o=Js;ea(e);let c=e.$$={fragment:null,ctx:[],props:s,update:qe,not_equal:i,bound:Yh(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(o?o.$$.context:[])),callbacks:Yh(),dirty:u,skip_bound:!1,root:t.target||o.$$.root};a&&a(c.root);let h=!1;if(c.ctx=r?r(e,t.props||{},(d,f,...g)=>{let y=g.length?g[0]:f;return c.ctx&&i(c.ctx[d],c.ctx[d]=y)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](y),h&&eI(e,d)),f}):[],c.update(),h=!0,lr(c.before_update),c.fragment=n?n(c.ctx):!1,t.target){if(t.hydrate){Wy();let d=Qy(t.target);c.fragment&&c.fragment.l(d),d.forEach(se)}else c.fragment&&c.fragment.c();t.intro&&Ee(e.$$.fragment),Dt(e,t.target,t.anchor,t.customElement),Yy(),i0()}ea(o)}var Su,Jh,Ou,e0,Js,ji,Yr,Hi,t0,r0,nl,sl,Ui,wu,Jn,Jy,GM,tI,pt,nr=x(()=>{Jh=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global,Ou=class{constructor(t){this.options=t,this._listeners="WeakMap"in Jh?new WeakMap:void 0}observe(t,r){return this._listeners.set(t,r),this._getObserver().observe(t,this.options),()=>{this._listeners.delete(t),this._observer.unobserve(t)}}_getObserver(){var t;return(t=this._observer)!==null&&t!==void 0?t:this._observer=new ResizeObserver(r=>{var n;for(let i of r)Ou.entries.set(i.target,i),(n=this._listeners.get(i.target))===null||n===void 0||n(i)})}};Ou.entries="WeakMap"in Jh?new WeakMap:void 0;e0=!1;ji=[],Yr=[],Hi=[],t0=[],r0=Promise.resolve(),nl=!1;sl=new Set,Ui=0;wu=new Set;Jy=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],GM=new Set([...Jy]);typeof HTMLElement=="function"&&(tI=class extends HTMLElement{constructor(){super();this.attachShadow({mode:"open"})}connectedCallback(){let{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(Xc).filter(Li);for(let t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){lr(this.$$.on_disconnect)}$destroy(){Tt(this,1),this.$destroy=qe}$on(e,t){if(!Li(t))return qe;let r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{let n=r.indexOf(t);n!==-1&&r.splice(n,1)}}$set(e){this.$$set&&!Qh(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});pt=class{$destroy(){Tt(this,1),this.$destroy=qe}$on(t,r){if(!Li(r))return qe;let n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{let i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!Qh(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}});var Ru=x(()=>{nr()});var al,s0=x(()=>{al=class{constructor(){this.handlers=new Map;this.disabled=[]}on(t,r,n){if(t.includes("@")||r.includes("@"))throw new Error("Invalid context/event name - Cannot contain @");this.handlers.set(`${t}@${r}`,n)}off(t,r){if(r)this.handlers.delete(`${t}@${r}`);else for(let[n]of this.handlers.entries())n.startsWith(`${t}@`)&&this.handlers.delete(n)}disable(t){this.enable(t),this.disabled.push(t)}enable(t){this.disabled=this.disabled.filter(r=>r!==t)}emit(t,...r){let n=[...this.handlers.entries()].filter(([i,s])=>!this.disabled.includes(i.split("@")[0]));for(let[i,s]of n)i.endsWith(`@${t}`)&&s(...r)}}});function Pu(e,t=qe){let r,n=new Set;function i(u){if(ot(e,u)&&(e=u,r)){let o=!Gi.length;for(let c of n)c[1](),Gi.push(c,e);if(o){for(let c=0;c<Gi.length;c+=2)Gi[c][0](Gi[c+1]);Gi.length=0}}}function s(u){i(u(e))}function a(u,o=qe){let c=[u,o];return n.add(c),n.size===1&&(r=t(i)||qe),u(e),()=>{n.delete(c),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:a}}var Gi,ul=x(()=>{nr();nr();Gi=[]});function ol(e){o0=e}function cl(){return o0}var a0,u0,na,ia,ce,Lu,ir,_e,gn,o0,rI,sa,c0,Or=x(()=>{s0();ul();a0=/[\u4e00-\u9fa5]/,u0=100,na=300,ia="omnisearch-disabled",ce=new al,Lu={ToggleExcerpts:"toggle-excerpts"},ir=(s=>(s[s.Done=0]="Done",s[s.LoadingCache=1]="LoadingCache",s[s.ReadingFiles=2]="ReadingFiles",s[s.IndexingFiles=3]="IndexingFiles",s[s.WritingCache=4]="WritingCache",s))(ir||{}),_e=(d=>(d.Enter="enter",d.OpenInBackground="open-in-background",d.CreateNote="create-note",d.OpenInNewPane="open-in-new-pane",d.InsertLink="insert-link",d.Tab="tab",d.ArrowUp="arrow-up",d.ArrowDown="arrow-down",d.PrevSearchHistory="prev-search-history",d.NextSearchHistory="next-search-history",d.OpenInNewLeaf="open-in-new-leaf",d))(_e||{}),gn=Pu(0),o0=!1;rI=/[|\t\n\r\^"= -#%-*,.`\/<>:;?@[-\]_{}\u00A0\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u1680\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2000-\u200A\u2010-\u2029\u202F-\u2043\u2045-\u2051\u2053-\u205F\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u3000-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/.toString().slice(1,-1),sa=new RegExp(`${rI}+`,"u"),c0=/[|\[\]\(\)<>\{\} \t\n\r]/u});var l0=U((aa,ll)=>{(function(e,t){if(typeof aa=="object"&&typeof ll=="object")ll.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else{var r=t();for(var n in r)(typeof aa=="object"?aa:e)[n]=r[n]}})(typeof self!="undefined"?self:aa,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(n,i,s){r.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:s})},r.r=function(n){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,i){if(1&i&&(n=r(n)),8&i||4&i&&typeof n=="object"&&n&&n.__esModule)return n;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:n}),2&i&&typeof n!="string")for(var a in n)r.d(s,a,function(u){return n[u]}.bind(null,a));return s},r.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(i,"a",i),i},r.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";r.r(t),r.d(t,"md5",function(){return b});var n="0123456789abcdef".split(""),i=function(D){for(var m="",v=0;v<4;v++)m+=n[D>>8*v+4&15]+n[D>>8*v&15];return m},s=function(D){for(var m=D.length,v=0;v<m;v++)D[v]=i(D[v]);return D.join("")},a=function(D,m){return D+m&4294967295},u=function(D,m,v,I,T,E,C){return function(S,N,P){return a(S<<N|S>>>32-N,P)}(m=function(S,N,P,q){return N=a(a(N,S),a(P,q))}(D,m,I,E),T,v)},o=function(D,m,v,I,T,E,C,S){return u(v&I|~v&T,m,v,E,C,S,D)},c=function(D,m,v,I,T,E,C,S){return u(v&T|I&~T,m,v,E,C,S,D)},h=function(D,m,v,I,T,E,C,S){return u(v^I^T,m,v,E,C,S,D)},d=function(D,m,v,I,T,E,C,S){return u(I^(v|~T),m,v,E,C,S,D)},f=function(D,m,v){v===void 0&&(v=a);var I=D[0],T=D[1],E=D[2],C=D[3],S=o.bind(null,v);I=S(I,T,E,C,m[0],7,-680876936),C=S(C,I,T,E,m[1],12,-389564586),E=S(E,C,I,T,m[2],17,606105819),T=S(T,E,C,I,m[3],22,-1044525330),I=S(I,T,E,C,m[4],7,-176418897),C=S(C,I,T,E,m[5],12,1200080426),E=S(E,C,I,T,m[6],17,-1473231341),T=S(T,E,C,I,m[7],22,-45705983),I=S(I,T,E,C,m[8],7,1770035416),C=S(C,I,T,E,m[9],12,-1958414417),E=S(E,C,I,T,m[10],17,-42063),T=S(T,E,C,I,m[11],22,-1990404162),I=S(I,T,E,C,m[12],7,1804603682),C=S(C,I,T,E,m[13],12,-40341101),E=S(E,C,I,T,m[14],17,-1502002290),T=S(T,E,C,I,m[15],22,1236535329);var N=c.bind(null,v);I=N(I,T,E,C,m[1],5,-165796510),C=N(C,I,T,E,m[6],9,-1069501632),E=N(E,C,I,T,m[11],14,643717713),T=N(T,E,C,I,m[0],20,-373897302),I=N(I,T,E,C,m[5],5,-701558691),C=N(C,I,T,E,m[10],9,38016083),E=N(E,C,I,T,m[15],14,-660478335),T=N(T,E,C,I,m[4],20,-405537848),I=N(I,T,E,C,m[9],5,568446438),C=N(C,I,T,E,m[14],9,-1019803690),E=N(E,C,I,T,m[3],14,-187363961),T=N(T,E,C,I,m[8],20,1163531501),I=N(I,T,E,C,m[13],5,-1444681467),C=N(C,I,T,E,m[2],9,-51403784),E=N(E,C,I,T,m[7],14,1735328473),T=N(T,E,C,I,m[12],20,-1926607734);var P=h.bind(null,v);I=P(I,T,E,C,m[5],4,-378558),C=P(C,I,T,E,m[8],11,-2022574463),E=P(E,C,I,T,m[11],16,1839030562),T=P(T,E,C,I,m[14],23,-35309556),I=P(I,T,E,C,m[1],4,-1530992060),C=P(C,I,T,E,m[4],11,1272893353),E=P(E,C,I,T,m[7],16,-155497632),T=P(T,E,C,I,m[10],23,-1094730640),I=P(I,T,E,C,m[13],4,681279174),C=P(C,I,T,E,m[0],11,-358537222),E=P(E,C,I,T,m[3],16,-722521979),T=P(T,E,C,I,m[6],23,76029189),I=P(I,T,E,C,m[9],4,-640364487),C=P(C,I,T,E,m[12],11,-421815835),E=P(E,C,I,T,m[15],16,530742520),T=P(T,E,C,I,m[2],23,-995338651);var q=d.bind(null,v);I=q(I,T,E,C,m[0],6,-198630844),C=q(C,I,T,E,m[7],10,1126891415),E=q(E,C,I,T,m[14],15,-1416354905),T=q(T,E,C,I,m[5],21,-57434055),I=q(I,T,E,C,m[12],6,1700485571),C=q(C,I,T,E,m[3],10,-1894986606),E=q(E,C,I,T,m[10],15,-1051523),T=q(T,E,C,I,m[1],21,-2054922799),I=q(I,T,E,C,m[8],6,1873313359),C=q(C,I,T,E,m[15],10,-30611744),E=q(E,C,I,T,m[6],15,-1560198380),T=q(T,E,C,I,m[13],21,1309151649),I=q(I,T,E,C,m[4],6,-145523070),C=q(C,I,T,E,m[11],10,-1120210379),E=q(E,C,I,T,m[2],15,718787259),T=q(T,E,C,I,m[9],21,-343485551),D[0]=v(I,D[0]),D[1]=v(T,D[1]),D[2]=v(E,D[2]),D[3]=v(C,D[3])},g=function(D){for(var m=[],v=0;v<64;v+=4)m[v>>2]=D.charCodeAt(v)+(D.charCodeAt(v+1)<<8)+(D.charCodeAt(v+2)<<16)+(D.charCodeAt(v+3)<<24);return m},y=function(D,m){var v,I=D.length,T=[1732584193,-271733879,-1732584194,271733878];for(v=64;v<=I;v+=64)f(T,g(D.substring(v-64,v)),m);var E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],C=(D=D.substring(v-64)).length;for(v=0;v<C;v++)E[v>>2]|=D.charCodeAt(v)<<(v%4<<3);if(E[v>>2]|=128<<(v%4<<3),v>55)for(f(T,E,m),v=16;v--;)E[v]=0;return E[14]=8*I,f(T,E,m),T};function b(D){var m;return s(y("hello"))!=="5d41402abc4b2a76b9719d911017c592"&&(m=function(v,I){var T=(65535&v)+(65535&I);return(v>>16)+(I>>16)+(T>>16)<<16|65535&T}),s(y(D,m))}}])})});function f0(e){let t=e.split("/");return t.pop(),t.join("/")}function fl(e){return new Promise(t=>{setTimeout(t,e)})}function Mu(e,t){return e.headings?.filter(r=>r.level===t).map(r=>r.heading)??[]}function ku(e,t){return(e+t)%t}function d0(e){return e.replace(/(\*|_)+(.+?)(\*|_)+/g,(t,r,n)=>n)}function h0(e){return e?.frontmatter?(0,qi.parseFrontMatterAliases)(e.frontmatter)??[]:[]}function p0(e){let t=e?(0,qi.getAllTags)(e)??[]:[];return t=[...new Set(t.reduce((r,n)=>[...r,...n.split("/").filter(i=>i).map(i=>i.startsWith("#")?i:`#${i}`),n],[]))],t}function Qr(e,t=!1){if(e==null)return"";let n=["\\u30FC","\\u309A","\\u3099"].join("|"),i=new RegExp(`(?!${n})\\p{Diacritic}`,"gu");if(t){e=e.replace(/([^\u0621-\u063A\u0641-\u064A\u0660-\u0669a-zA-Z 0-9])/g,"").replace(/(آ|إ|أ)/g,"\u0627").replace(/(ة)/g,"\u0647").replace(/(ئ|ؤ)/g,"\u0621").replace(/(ى)/g,"\u064A");for(let s=0;s<10;s++)e.replace(String.fromCharCode(1632+s),String.fromCharCode(48+s))}return e=e.replaceAll("`","[__omnisearch__backtick__]"),e=e.replaceAll("^","[__omnisearch__caret__]"),e=e.normalize("NFD").replace(i,"").normalize("NFC"),e=e.replaceAll("[__omnisearch__backtick__]","`"),e=e.replaceAll("[__omnisearch__caret__]","^"),e}function _n(){return qi.Platform.isMacOS?"\u2318":"ctrl"}function Tn(e){let t=En(e);return t==="png"||t==="jpg"||t==="jpeg"||t==="webp"}function bn(e){return En(e)==="pdf"}function m0(e){let t=En(e);return t==="docx"||t==="xlsx"}function ri(e){return e.endsWith(".canvas")}function g0(e){return e.endsWith(".excalidraw")}function ua(e){return e.endsWith(".loom")}function En(e){let t=e.split(".");return t[t.length-1]??""}function _0(e,t){let r=[],n=0,i=e.length;for(;n<i;)r.push(e.slice(n,n+=t));return r}function dl(e){return/[a-z][A-Z]/.test(e)?e.replace(/([a-z](?=[A-Z]))/g,"$1 ").split(" ").filter(r=>r):[]}function hl(e){return e.includes("-")?e.split("-").filter(t=>t):[]}function ve(...e){E0(console.log,...e)}function T0(...e){E0(console.warn,...e)}function pl(e){b0=e}function E0(e,...t){if(b0){let r=new Date,n=`${r.getMinutes()}:${r.getSeconds()}:${r.getMilliseconds()}`;e("Omnisearch -",n+" -",...t)}}var qi,nI,iI,b0,Kt=x(()=>{qi=Xe(require("obsidian"));Or();nI=Xe(require("crypto")),iI=Xe(l0());b0=!1});function sI(e){let t,r,n,i,s,a,u,o,c=e[9].default,h=Mi(c,e,e[8],null);return{c(){t=V("div"),r=V("div"),n=V("input"),s=ue(),h&&h.c(),Z(n,"class","prompt-input"),Z(n,"placeholder",e[0]),Z(n,"spellcheck","false"),Z(n,"type","text"),Z(r,"class","omnisearch-input-field"),Z(t,"class","omnisearch-input-container")},m(d,f){ae(d,t,f),j(t,r),j(r,n),e[10](n),Jc(n,e[1]),j(t,s),h&&h.m(t,null),a=!0,u||(o=[ht(n,"input",e[11]),ht(n,"compositionend",e[12]),ht(n,"compositionstart",e[13]),ht(n,"input",e[4]),Zh(i=e[3].call(null,n))],u=!0)},p(d,[f]){(!a||f&1)&&Z(n,"placeholder",d[0]),f&2&&n.value!==d[1]&&Jc(n,d[1]),h&&h.p&&(!a||f&256)&&Fi(h,c,d,d[8],a?ki(c,d[8],f,null):Bi(d[8]),null)},i(d){a||(Ee(h,d),a=!0)},o(d){Oe(h,d),a=!1},d(d){d&&se(t),e[10](null),h&&h.d(d),u=!1,lr(o)}}}function aI(e,t,r){let{$$slots:n={},$$scope:i}=t,{initialValue:s=""}=t,{placeholder:a=""}=t,{plugin:u}=t,o=!1,c="",h,d=rl();function f(T){r(1,c=T)}function g(T){T&&!o&&!c&&(o=!0,r(1,c=T),y())}function y(T){mn().then(async()=>(oa.Platform.isMobileApp&&await fl(200),h.focus(),mn())).then(async()=>{oa.Platform.isMobileApp&&await fl(200),h.select()})}let b=(0,oa.debounce)(()=>{u.cacheManager.addToSearchHistory(""),d("input",c)},300);function D(T){Yr[T?"unshift":"push"](()=>{h=T,r(2,h)})}function m(){c=this.value,r(1,c)}let v=T=>ol(!1),I=T=>ol(!0);return e.$$set=T=>{"initialValue"in T&&r(5,s=T.initialValue),"placeholder"in T&&r(0,a=T.placeholder),"plugin"in T&&r(6,u=T.plugin),"$$scope"in T&&r(8,i=T.$$scope)},e.$$.update=()=>{if(e.$$.dirty&32){e:g(s)}},[a,c,h,y,b,s,u,f,i,n,D,m,v,I]}var oa,A0,Fu,ml=x(()=>{nr();oa=Xe(require("obsidian"));Or();Ru();Kt();A0=class extends pt{constructor(t){super();bt(this,t,aI,sI,ot,{initialValue:5,placeholder:0,plugin:6,setInputValue:7})}get setInputValue(){return this.$$.ctx[7]}},Fu=A0});function uI(e){let t,r,n,i,s=e[1].default,a=Mi(s,e,e[0],null);return{c(){t=V("div"),a&&a.c(),Z(t,"class","prompt-results")},m(u,o){ae(u,t,o),a&&a.m(t,null),r=!0,n||(i=ht(t,"mousedown",oI),n=!0)},p(u,[o]){a&&a.p&&(!r||o&1)&&Fi(a,s,u,u[0],r?ki(s,u[0],o,null):Bi(u[0]),null)},i(u){r||(Ee(a,u),r=!0)},o(u){Oe(a,u),r=!1},d(u){u&&se(t),a&&a.d(u),n=!1,i()}}}function cI(e,t,r){let{$$slots:n={},$$scope:i}=t;return e.$$set=s=>{"$$scope"in s&&r(0,i=s.$$scope)},[i,n]}var oI,y0,Bu,gl=x(()=>{nr();oI=e=>e.preventDefault();y0=class extends pt{constructor(t){super();bt(this,t,cI,uI,ot,{})}},Bu=y0});async function ju(e,t,r=0,n=!1,i=!1){let s=!1;e.workspace.iterateAllLeaves(o=>{o.view instanceof _l.MarkdownView&&!n&&o.getViewState().state?.file===t.path&&o.getViewState()?.pinned&&(e.workspace.setActiveLeaf(o,{focus:!0}),s=!0)}),s||await e.workspace.openLinkText(t.path,"",i?"split":n);let a=e.workspace.getActiveViewOfType(_l.MarkdownView);if(!a)return;let u=a.editor.offsetToPos(r);a.editor.setCursor(u),a.editor.scrollIntoView({from:{line:u.line-10,ch:0},to:{line:u.line+10,ch:0}})}async function I0(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 v0(e,t,r){return(r.links??[]).map(n=>{let i=Tl(n.link);return e.metadataCache.getFirstLinkpathDest(i,t.path)?"":n.link}).filter(n=>!!n)}function Tl(e){return e.split(/[\^#]+/)[0]}var _l,ca=x(()=>{_l=Xe(require("obsidian"))});var lI,Hu,bl=x(()=>{lI=typeof global=="object"&&global&&global.Object===Object&&global,Hu=lI});var fI,dI,Ze,fr=x(()=>{bl();fI=typeof self=="object"&&self&&self.Object===Object&&self,dI=Hu||fI||Function("return this")(),Ze=dI});var hI,St,zi=x(()=>{fr();hI=Ze.Symbol,St=hI});function gI(e){var t=pI.call(e,la),r=e[la];try{e[la]=void 0;var n=!0}catch{}var i=mI.call(e);return n&&(t?e[la]=r:delete e[la]),i}var C0,pI,mI,la,D0,S0=x(()=>{zi();C0=Object.prototype,pI=C0.hasOwnProperty,mI=C0.toString,la=St?St.toStringTag:void 0;D0=gI});function bI(e){return TI.call(e)}var _I,TI,x0,O0=x(()=>{_I=Object.prototype,TI=_I.toString;x0=bI});function yI(e){return e==null?e===void 0?AI:EI:N0&&N0 in Object(e)?D0(e):x0(e)}var EI,AI,N0,dr,Vi=x(()=>{zi();S0();O0();EI="[object Null]",AI="[object Undefined]",N0=St?St.toStringTag:void 0;dr=yI});function II(e){return e!=null&&typeof e=="object"}var hr,Ki=x(()=>{hr=II});function CI(e){return typeof e=="symbol"||hr(e)&&dr(e)==vI}var vI,pr,Wi=x(()=>{Vi();Ki();vI="[object Symbol]";pr=CI});function DI(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Yi,El=x(()=>{Yi=DI});var SI,Qe,mr=x(()=>{SI=Array.isArray,Qe=SI});function P0(e){if(typeof e=="string")return e;if(Qe(e))return Yi(e,P0)+"";if(pr(e))return R0?R0.call(e):"";var t=e+"";return t=="0"&&1/e==-xI?"-0":t}var xI,w0,R0,L0,M0=x(()=>{zi();El();mr();Wi();xI=1/0,w0=St?St.prototype:void 0,R0=w0?w0.toString:void 0;L0=P0});function NI(e){for(var t=e.length;t--&&OI.test(e.charAt(t)););return t}var OI,k0,F0=x(()=>{OI=/\s/;k0=NI});function RI(e){return e&&e.slice(0,k0(e)+1).replace(wI,"")}var wI,B0,j0=x(()=>{F0();wI=/^\s+/;B0=RI});function PI(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Wt,ni=x(()=>{Wt=PI});function BI(e){if(typeof e=="number")return e;if(pr(e))return H0;if(Wt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Wt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=B0(e);var r=MI.test(e);return r||kI.test(e)?FI(e.slice(2),r?2:8):LI.test(e)?H0:+e}var H0,LI,MI,kI,FI,Al,U0=x(()=>{j0();ni();Wi();H0=0/0,LI=/^[-+]0x[0-9a-f]+$/i,MI=/^0b[01]+$/i,kI=/^0o[0-7]+$/i,FI=parseInt;Al=BI});function jI(e){return e}var An,fa=x(()=>{An=jI});function zI(e){if(!Wt(e))return!1;var t=dr(e);return t==UI||t==GI||t==HI||t==qI}var HI,UI,GI,qI,Uu,yl=x(()=>{Vi();ni();HI="[object AsyncFunction]",UI="[object Function]",GI="[object GeneratorFunction]",qI="[object Proxy]";Uu=zI});var VI,Gu,G0=x(()=>{fr();VI=Ze["__core-js_shared__"],Gu=VI});function KI(e){return!!q0&&q0 in e}var q0,z0,V0=x(()=>{G0();q0=function(){var e=/[^.]+$/.exec(Gu&&Gu.keys&&Gu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();z0=KI});function QI(e){if(e!=null){try{return YI.call(e)}catch{}try{return e+""}catch{}}return""}var WI,YI,$r,Il=x(()=>{WI=Function.prototype,YI=WI.toString;$r=QI});function nv(e){if(!Wt(e)||z0(e))return!1;var t=Uu(e)?rv:XI;return t.test($r(e))}var $I,XI,ZI,JI,ev,tv,rv,K0,W0=x(()=>{yl();V0();ni();Il();$I=/[\\^$.*+?()[\]{}|]/g,XI=/^\[object .+?Constructor\]$/,ZI=Function.prototype,JI=Object.prototype,ev=ZI.toString,tv=JI.hasOwnProperty,rv=RegExp("^"+ev.call(tv).replace($I,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");K0=nv});function iv(e,t){return e==null?void 0:e[t]}var Y0,Q0=x(()=>{Y0=iv});function sv(e,t){var r=Y0(e,t);return K0(r)?r:void 0}var Mt,yn=x(()=>{W0();Q0();Mt=sv});var av,qu,$0=x(()=>{yn();fr();av=Mt(Ze,"WeakMap"),qu=av});function uv(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 X0,Z0=x(()=>{X0=uv});function fv(e){var t=0,r=0;return function(){var n=lv(),i=cv-(n-r);if(r=n,i>0){if(++t>=ov)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var ov,cv,lv,J0,ep=x(()=>{ov=800,cv=16,lv=Date.now;J0=fv});function dv(e){return function(){return e}}var tp,rp=x(()=>{tp=dv});var hv,vl,np=x(()=>{yn();hv=function(){try{var e=Mt(Object,"defineProperty");return e({},"",{}),e}catch{}}(),vl=hv});var pv,ip,sp=x(()=>{rp();np();fa();pv=vl?function(e,t){return vl(e,"toString",{configurable:!0,enumerable:!1,value:tp(t),writable:!0})}:An,ip=pv});var mv,ap,up=x(()=>{sp();ep();mv=J0(ip),ap=mv});function Tv(e,t){var r=typeof e;return t=t??gv,!!t&&(r=="number"||r!="symbol"&&_v.test(e))&&e>-1&&e%1==0&&e<t}var gv,_v,Qi,zu=x(()=>{gv=9007199254740991,_v=/^(?:0|[1-9]\d*)$/;Qi=Tv});function bv(e,t){return e===t||e!==e&&t!==t}var $i,Vu=x(()=>{$i=bv});function Ev(e,t,r){return t=op(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=op(n.length-t,0),a=Array(s);++i<s;)a[i]=n[t+i];i=-1;for(var u=Array(t+1);++i<t;)u[i]=n[i];return u[t]=r(a),X0(e,this,u)}}var op,cp,lp=x(()=>{Z0();op=Math.max;cp=Ev});function Av(e,t){return ap(cp(e,t,An),e+"")}var fp,dp=x(()=>{fa();lp();up();fp=Av});function Iv(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=yv}var yv,Xi,Ku=x(()=>{yv=9007199254740991;Xi=Iv});function vv(e){return e!=null&&Xi(e.length)&&!Uu(e)}var In,da=x(()=>{yl();Ku();In=vv});function Cv(e,t,r){if(!Wt(r))return!1;var n=typeof t;return(n=="number"?In(r)&&Qi(t,r.length):n=="string"&&t in r)?$i(r[t],e):!1}var Cl,hp=x(()=>{Vu();da();zu();ni();Cl=Cv});function Sv(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Dv;return e===r}var Dv,pp,mp=x(()=>{Dv=Object.prototype;pp=Sv});function xv(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var gp,_p=x(()=>{gp=xv});function Nv(e){return hr(e)&&dr(e)==Ov}var Ov,Dl,Tp=x(()=>{Vi();Ki();Ov="[object Arguments]";Dl=Nv});var bp,wv,Rv,Pv,Zi,Wu=x(()=>{Tp();Ki();bp=Object.prototype,wv=bp.hasOwnProperty,Rv=bp.propertyIsEnumerable,Pv=Dl(function(){return arguments}())?Dl:function(e){return hr(e)&&wv.call(e,"callee")&&!Rv.call(e,"callee")},Zi=Pv});function Lv(){return!1}var Ep,Ap=x(()=>{Ep=Lv});var yp,Ip,Mv,vp,kv,Fv,ha,Sl=x(()=>{fr();Ap();yp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ip=yp&&typeof module=="object"&&module&&!module.nodeType&&module,Mv=Ip&&Ip.exports===yp,vp=Mv?Ze.Buffer:void 0,kv=vp?vp.isBuffer:void 0,Fv=kv||Ep,ha=Fv});function oC(e){return hr(e)&&Xi(e.length)&&!!Be[dr(e)]}var Bv,jv,Hv,Uv,Gv,qv,zv,Vv,Kv,Wv,Yv,Qv,$v,Xv,Zv,Jv,eC,tC,rC,nC,iC,sC,aC,uC,Be,Cp,Dp=x(()=>{Vi();Ku();Ki();Bv="[object Arguments]",jv="[object Array]",Hv="[object Boolean]",Uv="[object Date]",Gv="[object Error]",qv="[object Function]",zv="[object Map]",Vv="[object Number]",Kv="[object Object]",Wv="[object RegExp]",Yv="[object Set]",Qv="[object String]",$v="[object WeakMap]",Xv="[object ArrayBuffer]",Zv="[object DataView]",Jv="[object Float32Array]",eC="[object Float64Array]",tC="[object Int8Array]",rC="[object Int16Array]",nC="[object Int32Array]",iC="[object Uint8Array]",sC="[object Uint8ClampedArray]",aC="[object Uint16Array]",uC="[object Uint32Array]",Be={};Be[Jv]=Be[eC]=Be[tC]=Be[rC]=Be[nC]=Be[iC]=Be[sC]=Be[aC]=Be[uC]=!0;Be[Bv]=Be[jv]=Be[Xv]=Be[Hv]=Be[Zv]=Be[Uv]=Be[Gv]=Be[qv]=Be[zv]=Be[Vv]=Be[Kv]=Be[Wv]=Be[Yv]=Be[Qv]=Be[$v]=!1;Cp=oC});function cC(e){return function(t){return e(t)}}var Yu,xl=x(()=>{Yu=cC});var Sp,pa,lC,Ol,fC,Nl,xp=x(()=>{bl();Sp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,pa=Sp&&typeof module=="object"&&module&&!module.nodeType&&module,lC=pa&&pa.exports===Sp,Ol=lC&&Hu.process,fC=function(){try{var e=pa&&pa.require&&pa.require("util").types;return e||Ol&&Ol.binding&&Ol.binding("util")}catch{}}(),Nl=fC});var Op,dC,Qu,wl=x(()=>{Dp();xl();xp();Op=Nl&&Nl.isTypedArray,dC=Op?Yu(Op):Cp,Qu=dC});function mC(e,t){var r=Qe(e),n=!r&&Zi(e),i=!r&&!n&&ha(e),s=!r&&!n&&!i&&Qu(e),a=r||n||i||s,u=a?gp(e.length,String):[],o=u.length;for(var c in e)(t||pC.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Qi(c,o)))&&u.push(c);return u}var hC,pC,Np,wp=x(()=>{_p();Wu();mr();Sl();zu();wl();hC=Object.prototype,pC=hC.hasOwnProperty;Np=mC});function gC(e,t){return function(r){return e(t(r))}}var Rp,Pp=x(()=>{Rp=gC});var _C,Lp,Mp=x(()=>{Pp();_C=Rp(Object.keys,Object),Lp=_C});function EC(e){if(!pp(e))return Lp(e);var t=[];for(var r in Object(e))bC.call(e,r)&&r!="constructor"&&t.push(r);return t}var TC,bC,kp,Fp=x(()=>{mp();Mp();TC=Object.prototype,bC=TC.hasOwnProperty;kp=EC});function AC(e){return In(e)?Np(e):kp(e)}var Ji,$u=x(()=>{wp();Fp();da();Ji=AC});function vC(e,t){if(Qe(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||pr(e)?!0:IC.test(e)||!yC.test(e)||t!=null&&e in Object(t)}var yC,IC,es,Xu=x(()=>{mr();Wi();yC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,IC=/^\w*$/;es=vC});var CC,Xr,ma=x(()=>{yn();CC=Mt(Object,"create"),Xr=CC});function DC(){this.__data__=Xr?Xr(null):{},this.size=0}var Bp,jp=x(()=>{ma();Bp=DC});function SC(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Hp,Up=x(()=>{Hp=SC});function wC(e){var t=this.__data__;if(Xr){var r=t[e];return r===xC?void 0:r}return NC.call(t,e)?t[e]:void 0}var xC,OC,NC,Gp,qp=x(()=>{ma();xC="__lodash_hash_undefined__",OC=Object.prototype,NC=OC.hasOwnProperty;Gp=wC});function LC(e){var t=this.__data__;return Xr?t[e]!==void 0:PC.call(t,e)}var RC,PC,zp,Vp=x(()=>{ma();RC=Object.prototype,PC=RC.hasOwnProperty;zp=LC});function kC(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Xr&&t===void 0?MC:t,this}var MC,Kp,Wp=x(()=>{ma();MC="__lodash_hash_undefined__";Kp=kC});function ts(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}var Rl,Yp=x(()=>{jp();Up();qp();Vp();Wp();ts.prototype.clear=Bp;ts.prototype.delete=Hp;ts.prototype.get=Gp;ts.prototype.has=zp;ts.prototype.set=Kp;Rl=ts});function FC(){this.__data__=[],this.size=0}var Qp,$p=x(()=>{Qp=FC});function BC(e,t){for(var r=e.length;r--;)if($i(e[r][0],t))return r;return-1}var vn,ga=x(()=>{Vu();vn=BC});function UC(e){var t=this.__data__,r=vn(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():HC.call(t,r,1),--this.size,!0}var jC,HC,Xp,Zp=x(()=>{ga();jC=Array.prototype,HC=jC.splice;Xp=UC});function GC(e){var t=this.__data__,r=vn(t,e);return r<0?void 0:t[r][1]}var Jp,em=x(()=>{ga();Jp=GC});function qC(e){return vn(this.__data__,e)>-1}var tm,rm=x(()=>{ga();tm=qC});function zC(e,t){var r=this.__data__,n=vn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var nm,im=x(()=>{ga();nm=zC});function rs(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}var Cn,_a=x(()=>{$p();Zp();em();rm();im();rs.prototype.clear=Qp;rs.prototype.delete=Xp;rs.prototype.get=Jp;rs.prototype.has=tm;rs.prototype.set=nm;Cn=rs});var VC,Dn,Zu=x(()=>{yn();fr();VC=Mt(Ze,"Map"),Dn=VC});function KC(){this.size=0,this.__data__={hash:new Rl,map:new(Dn||Cn),string:new Rl}}var sm,am=x(()=>{Yp();_a();Zu();sm=KC});function WC(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var um,om=x(()=>{um=WC});function YC(e,t){var r=e.__data__;return um(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Sn,Ta=x(()=>{om();Sn=YC});function QC(e){var t=Sn(this,e).delete(e);return this.size-=t?1:0,t}var cm,lm=x(()=>{Ta();cm=QC});function $C(e){return Sn(this,e).get(e)}var fm,dm=x(()=>{Ta();fm=$C});function XC(e){return Sn(this,e).has(e)}var hm,pm=x(()=>{Ta();hm=XC});function ZC(e,t){var r=Sn(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var mm,gm=x(()=>{Ta();mm=ZC});function ns(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}var ii,Ju=x(()=>{am();lm();dm();pm();gm();ns.prototype.clear=sm;ns.prototype.delete=cm;ns.prototype.get=fm;ns.prototype.has=hm;ns.prototype.set=mm;ii=ns});function Pl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(JC);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var a=e.apply(this,n);return r.cache=s.set(i,a)||s,a};return r.cache=new(Pl.Cache||ii),r}var JC,_m,Tm=x(()=>{Ju();JC="Expected a function";Pl.Cache=ii;_m=Pl});function tD(e){var t=_m(e,function(n){return r.size===eD&&r.clear(),n}),r=t.cache;return t}var eD,bm,Em=x(()=>{Tm();eD=500;bm=tD});var rD,nD,iD,Am,ym=x(()=>{Em();rD=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nD=/\\(\\)?/g,iD=bm(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(rD,function(r,n,i,s){t.push(i?s.replace(nD,"$1"):n||r)}),t}),Am=iD});function sD(e){return e==null?"":L0(e)}var eo,Ll=x(()=>{M0();eo=sD});function aD(e,t){return Qe(e)?e:es(e,t)?[e]:Am(eo(e))}var to,Ml=x(()=>{mr();Xu();ym();Ll();to=aD});function oD(e){if(typeof e=="string"||pr(e))return e;var t=e+"";return t=="0"&&1/e==-uD?"-0":t}var uD,xn,ba=x(()=>{Wi();uD=1/0;xn=oD});function cD(e,t){t=to(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[xn(t[r++])];return r&&r==n?e:void 0}var is,ro=x(()=>{Ml();ba();is=cD});function lD(e,t,r){var n=e==null?void 0:is(e,t);return n===void 0?r:n}var Im,vm=x(()=>{ro();Im=lD});function fD(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var no,kl=x(()=>{no=fD});function dD(e){return Qe(e)||Zi(e)||!!(Cm&&e&&e[Cm])}var Cm,Dm,Sm=x(()=>{zi();Wu();mr();Cm=St?St.isConcatSpreadable:void 0;Dm=dD});function xm(e,t,r,n,i){var s=-1,a=e.length;for(r||(r=Dm),i||(i=[]);++s<a;){var u=e[s];t>0&&r(u)?t>1?xm(u,t-1,r,n,i):no(i,u):n||(i[i.length]=u)}return i}var Om,Nm=x(()=>{kl();Sm();Om=xm});function hD(){this.__data__=new Cn,this.size=0}var wm,Rm=x(()=>{_a();wm=hD});function pD(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Pm,Lm=x(()=>{Pm=pD});function mD(e){return this.__data__.get(e)}var Mm,km=x(()=>{Mm=mD});function gD(e){return this.__data__.has(e)}var Fm,Bm=x(()=>{Fm=gD});function TD(e,t){var r=this.__data__;if(r instanceof Cn){var n=r.__data__;if(!Dn||n.length<_D-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ii(n)}return r.set(e,t),this.size=r.size,this}var _D,jm,Hm=x(()=>{_a();Zu();Ju();_D=200;jm=TD});function ss(e){var t=this.__data__=new Cn(e);this.size=t.size}var as,Fl=x(()=>{_a();Rm();Lm();km();Bm();Hm();ss.prototype.clear=wm;ss.prototype.delete=Pm;ss.prototype.get=Mm;ss.prototype.has=Fm;ss.prototype.set=jm;as=ss});function bD(e,t){for(var r=-1,n=e==null?0:e.length,i=0,s=[];++r<n;){var a=e[r];t(a,r,e)&&(s[i++]=a)}return s}var Um,Gm=x(()=>{Um=bD});function ED(){return[]}var qm,zm=x(()=>{qm=ED});var AD,yD,Vm,ID,Km,Wm=x(()=>{Gm();zm();AD=Object.prototype,yD=AD.propertyIsEnumerable,Vm=Object.getOwnPropertySymbols,ID=Vm?function(e){return e==null?[]:(e=Object(e),Um(Vm(e),function(t){return yD.call(e,t)}))}:qm,Km=ID});function vD(e,t,r){var n=t(e);return Qe(e)?n:no(n,r(e))}var Ym,Qm=x(()=>{kl();mr();Ym=vD});function CD(e){return Ym(e,Ji,Km)}var Bl,$m=x(()=>{Qm();Wm();$u();Bl=CD});var DD,io,Xm=x(()=>{yn();fr();DD=Mt(Ze,"DataView"),io=DD});var SD,so,Zm=x(()=>{yn();fr();SD=Mt(Ze,"Promise"),so=SD});var xD,ao,Jm=x(()=>{yn();fr();xD=Mt(Ze,"Set"),ao=xD});var eg,OD,tg,rg,ng,ig,ND,wD,RD,PD,LD,si,jl,sg=x(()=>{Xm();Zu();Zm();Jm();$0();Vi();Il();eg="[object Map]",OD="[object Object]",tg="[object Promise]",rg="[object Set]",ng="[object WeakMap]",ig="[object DataView]",ND=$r(io),wD=$r(Dn),RD=$r(so),PD=$r(ao),LD=$r(qu),si=dr;(io&&si(new io(new ArrayBuffer(1)))!=ig||Dn&&si(new Dn)!=eg||so&&si(so.resolve())!=tg||ao&&si(new ao)!=rg||qu&&si(new qu)!=ng)&&(si=function(e){var t=dr(e),r=t==OD?e.constructor:void 0,n=r?$r(r):"";if(n)switch(n){case ND:return ig;case wD:return eg;case RD:return tg;case PD:return rg;case LD:return ng}return t});jl=si});var MD,Hl,ag=x(()=>{fr();MD=Ze.Uint8Array,Hl=MD});function FD(e){return this.__data__.set(e,kD),this}var kD,ug,og=x(()=>{kD="__lodash_hash_undefined__";ug=FD});function BD(e){return this.__data__.has(e)}var cg,lg=x(()=>{cg=BD});function uo(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new ii;++t<r;)this.add(e[t])}var fg,dg=x(()=>{Ju();og();lg();uo.prototype.add=uo.prototype.push=ug;uo.prototype.has=cg;fg=uo});function jD(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 hg,pg=x(()=>{hg=jD});function HD(e,t){return e.has(t)}var mg,gg=x(()=>{mg=HD});function qD(e,t,r,n,i,s){var a=r&UD,u=e.length,o=t.length;if(u!=o&&!(a&&o>u))return!1;var c=s.get(e),h=s.get(t);if(c&&h)return c==t&&h==e;var d=-1,f=!0,g=r&GD?new fg:void 0;for(s.set(e,t),s.set(t,e);++d<u;){var y=e[d],b=t[d];if(n)var D=a?n(b,y,d,t,e,s):n(y,b,d,e,t,s);if(D!==void 0){if(D)continue;f=!1;break}if(g){if(!hg(t,function(m,v){if(!mg(g,v)&&(y===m||i(y,m,r,n,s)))return g.push(v)})){f=!1;break}}else if(!(y===b||i(y,b,r,n,s))){f=!1;break}}return s.delete(e),s.delete(t),f}var UD,GD,oo,Ul=x(()=>{dg();pg();gg();UD=1,GD=2;oo=qD});function zD(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var _g,Tg=x(()=>{_g=zD});function VD(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var bg,Eg=x(()=>{bg=VD});function sS(e,t,r,n,i,s,a){switch(r){case iS:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case nS:return!(e.byteLength!=t.byteLength||!s(new Hl(e),new Hl(t)));case YD:case QD:case ZD:return $i(+e,+t);case $D:return e.name==t.name&&e.message==t.message;case JD:case tS:return e==t+"";case XD:var u=_g;case eS:var o=n&KD;if(u||(u=bg),e.size!=t.size&&!o)return!1;var c=a.get(e);if(c)return c==t;n|=WD,a.set(e,t);var h=oo(u(e),u(t),n,i,s,a);return a.delete(e),h;case rS:if(Gl)return Gl.call(e)==Gl.call(t)}return!1}var KD,WD,YD,QD,$D,XD,ZD,JD,eS,tS,rS,nS,iS,Ag,Gl,yg,Ig=x(()=>{zi();ag();Vu();Ul();Tg();Eg();KD=1,WD=2,YD="[object Boolean]",QD="[object Date]",$D="[object Error]",XD="[object Map]",ZD="[object Number]",JD="[object RegExp]",eS="[object Set]",tS="[object String]",rS="[object Symbol]",nS="[object ArrayBuffer]",iS="[object DataView]",Ag=St?St.prototype:void 0,Gl=Ag?Ag.valueOf:void 0;yg=sS});function cS(e,t,r,n,i,s){var a=r&aS,u=Bl(e),o=u.length,c=Bl(t),h=c.length;if(o!=h&&!a)return!1;for(var d=o;d--;){var f=u[d];if(!(a?f in t:oS.call(t,f)))return!1}var g=s.get(e),y=s.get(t);if(g&&y)return g==t&&y==e;var b=!0;s.set(e,t),s.set(t,e);for(var D=a;++d<o;){f=u[d];var m=e[f],v=t[f];if(n)var I=a?n(v,m,f,t,e,s):n(m,v,f,e,t,s);if(!(I===void 0?m===v||i(m,v,r,n,s):I)){b=!1;break}D||(D=f=="constructor")}if(b&&!D){var T=e.constructor,E=t.constructor;T!=E&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof E=="function"&&E instanceof E)&&(b=!1)}return s.delete(e),s.delete(t),b}var aS,uS,oS,vg,Cg=x(()=>{$m();aS=1,uS=Object.prototype,oS=uS.hasOwnProperty;vg=cS});function dS(e,t,r,n,i,s){var a=Qe(e),u=Qe(t),o=a?Sg:jl(e),c=u?Sg:jl(t);o=o==Dg?co:o,c=c==Dg?co:c;var h=o==co,d=c==co,f=o==c;if(f&&ha(e)){if(!ha(t))return!1;a=!0,h=!1}if(f&&!h)return s||(s=new as),a||Qu(e)?oo(e,t,r,n,i,s):yg(e,t,o,r,n,i,s);if(!(r&lS)){var g=h&&xg.call(e,"__wrapped__"),y=d&&xg.call(t,"__wrapped__");if(g||y){var b=g?e.value():e,D=y?t.value():t;return s||(s=new as),i(b,D,r,n,s)}}return f?(s||(s=new as),vg(e,t,r,n,i,s)):!1}var lS,Dg,Sg,co,fS,xg,Og,Ng=x(()=>{Fl();Ul();Ig();Cg();sg();mr();Sl();wl();lS=1,Dg="[object Arguments]",Sg="[object Array]",co="[object Object]",fS=Object.prototype,xg=fS.hasOwnProperty;Og=dS});function wg(e,t,r,n,i){return e===t?!0:e==null||t==null||!hr(e)&&!hr(t)?e!==e&&t!==t:Og(e,t,r,n,wg,i)}var lo,ql=x(()=>{Ng();Ki();lo=wg});function mS(e,t,r,n){var i=r.length,s=i,a=!n;if(e==null)return!s;for(e=Object(e);i--;){var u=r[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<s;){u=r[i];var o=u[0],c=e[o],h=u[1];if(a&&u[2]){if(c===void 0&&!(o in e))return!1}else{var d=new as;if(n)var f=n(c,h,o,e,t,d);if(!(f===void 0?lo(h,c,hS|pS,n,d):f))return!1}}return!0}var hS,pS,Rg,Pg=x(()=>{Fl();ql();hS=1,pS=2;Rg=mS});function gS(e){return e===e&&!Wt(e)}var fo,zl=x(()=>{ni();fo=gS});function _S(e){for(var t=Ji(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,fo(i)]}return t}var Lg,Mg=x(()=>{zl();$u();Lg=_S});function TS(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var ho,Vl=x(()=>{ho=TS});function bS(e){var t=Lg(e);return t.length==1&&t[0][2]?ho(t[0][0],t[0][1]):function(r){return r===e||Rg(r,e,t)}}var kg,Fg=x(()=>{Pg();Mg();Vl();kg=bS});function ES(e,t){return e!=null&&t in Object(e)}var Bg,jg=x(()=>{Bg=ES});function AS(e,t,r){t=to(t,e);for(var n=-1,i=t.length,s=!1;++n<i;){var a=xn(t[n]);if(!(s=e!=null&&r(e,a)))break;e=e[a]}return s||++n!=i?s:(i=e==null?0:e.length,!!i&&Xi(i)&&Qi(a,i)&&(Qe(e)||Zi(e)))}var Hg,Ug=x(()=>{Ml();Wu();mr();zu();Ku();ba();Hg=AS});function yS(e,t){return e!=null&&Hg(e,t,Bg)}var Gg,qg=x(()=>{jg();Ug();Gg=yS});function CS(e,t){return es(e)&&fo(t)?ho(xn(e),t):function(r){var n=Im(r,e);return n===void 0&&n===t?Gg(r,e):lo(t,n,IS|vS)}}var IS,vS,zg,Vg=x(()=>{ql();vm();qg();Xu();zl();Vl();ba();IS=1,vS=2;zg=CS});function DS(e){return function(t){return t==null?void 0:t[e]}}var Kg,Wg=x(()=>{Kg=DS});function SS(e){return function(t){return is(t,e)}}var Yg,Qg=x(()=>{ro();Yg=SS});function xS(e){return es(e)?Kg(xn(e)):Yg(e)}var $g,Xg=x(()=>{Wg();Qg();Xu();ba();$g=xS});function OS(e){return typeof e=="function"?e:e==null?An:typeof e=="object"?Qe(e)?zg(e[0],e[1]):kg(e):$g(e)}var Zg,Jg=x(()=>{Fg();Vg();fa();mr();Xg();Zg=OS});function NS(e){return function(t,r,n){for(var i=-1,s=Object(t),a=n(t),u=a.length;u--;){var o=a[e?u:++i];if(r(s[o],o,s)===!1)break}return t}}var e_,t_=x(()=>{e_=NS});var wS,r_,n_=x(()=>{t_();wS=e_(),r_=wS});function RS(e,t){return e&&r_(e,t,Ji)}var i_,s_=x(()=>{n_();$u();i_=RS});function PS(e,t){return function(r,n){if(r==null)return r;if(!In(r))return e(r,n);for(var i=r.length,s=t?i:-1,a=Object(r);(t?s--:++s<i)&&n(a[s],s,a)!==!1;);return r}}var a_,u_=x(()=>{da();a_=PS});var LS,o_,c_=x(()=>{s_();u_();LS=a_(i_),o_=LS});var MS,po,l_=x(()=>{fr();MS=function(){return Ze.Date.now()},po=MS});function jS(e,t,r){var n,i,s,a,u,o,c=0,h=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(kS);t=Al(t)||0,Wt(r)&&(h=!!r.leading,d="maxWait"in r,s=d?FS(Al(r.maxWait)||0,t):s,f="trailing"in r?!!r.trailing:f);function g(C){var S=n,N=i;return n=i=void 0,c=C,a=e.apply(N,S),a}function y(C){return c=C,u=setTimeout(m,t),h?g(C):a}function b(C){var S=C-o,N=C-c,P=t-S;return d?BS(P,s-N):P}function D(C){var S=C-o,N=C-c;return o===void 0||S>=t||S<0||d&&N>=s}function m(){var C=po();if(D(C))return v(C);u=setTimeout(m,b(C))}function v(C){return u=void 0,f&&n?g(C):(n=i=void 0,a)}function I(){u!==void 0&&clearTimeout(u),c=0,n=o=i=u=void 0}function T(){return u===void 0?a:v(po())}function E(){var C=po(),S=D(C);if(n=arguments,i=this,o=C,S){if(u===void 0)return y(o);if(d)return clearTimeout(u),u=setTimeout(m,t),g(o)}return u===void 0&&(u=setTimeout(m,t)),a}return E.cancel=I,E.flush=T,E}var kS,FS,BS,Ea,f_=x(()=>{ni();l_();U0();kS="Expected a function",FS=Math.max,BS=Math.min;Ea=jS});function US(e){return e=eo(e),e&&HS.test(e)?e.replace(d_,"\\$&"):e}var d_,HS,On,h_=x(()=>{Ll();d_=/[\\^$.*+?()[\]{}|]/g,HS=RegExp(d_.source);On=US});function GS(e,t){var r=-1,n=In(e)?Array(e.length):[];return o_(e,function(i,s,a){n[++r]=t(i,s,a)}),n}var p_,m_=x(()=>{c_();da();p_=GS});function qS(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var g_,__=x(()=>{g_=qS});function zS(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,s=pr(e),a=t!==void 0,u=t===null,o=t===t,c=pr(t);if(!u&&!c&&!s&&e>t||s&&a&&o&&!u&&!c||n&&a&&o||!r&&o||!i)return 1;if(!n&&!s&&!c&&e<t||c&&r&&i&&!n&&!s||u&&r&&i||!a&&i||!o)return-1}return 0}var T_,b_=x(()=>{Wi();T_=zS});function VS(e,t,r){for(var n=-1,i=e.criteria,s=t.criteria,a=i.length,u=r.length;++n<a;){var o=T_(i[n],s[n]);if(o){if(n>=u)return o;var c=r[n];return o*(c=="desc"?-1:1)}}return e.index-t.index}var E_,A_=x(()=>{b_();E_=VS});function KS(e,t,r){t.length?t=Yi(t,function(s){return Qe(s)?function(a){return is(a,s.length===1?s[0]:s)}:s}):t=[An];var n=-1;t=Yi(t,Yu(Zg));var i=p_(e,function(s,a,u){var o=Yi(t,function(c){return c(s)});return{criteria:o,index:++n,value:s}});return g_(i,function(s,a){return E_(s,a,r)})}var y_,I_=x(()=>{El();ro();Jg();m_();__();xl();A_();fa();mr();y_=KS});var WS,Kl,v_=x(()=>{Nm();I_();dp();hp();WS=fp(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Cl(e,t[0],t[1])?t=[]:r>2&&Cl(t[0],t[1],t[2])&&(t=[t[0]]),y_(e,Om(t,1),[])}),Kl=WS});var Aa=x(()=>{f_();h_();v_();});function go(e){return{useCache:!0,hideExcluded:!1,downrankedFoldersFilters:[],ignoreDiacritics:!0,ignoreArabicDiacritics:!1,indexedFileTypes:[],displayTitle:"",PDFIndexing:!1,officeIndexing:!1,imagesIndexing:!1,aiImageIndexing:!1,unsupportedFilesIndexing:"default",splitCamelCase:!1,openInNewPane:!1,vimLikeNavigationShortcut:e.vault.getConfig("vimMode"),ribbonIcon:!0,showExcerpt:!0,renderLineReturnInExcerpts:!0,showCreateButton:!1,highlight:!0,showPreviousQueryResults:!0,simpleSearch:!1,tokenizeUrls:!1,fuzziness:"1",weightBasename:3,weightDirectory:2,weightH1:1.5,weightH2:1.3,weightH3:1.1,weightUnmarkedTags:1.1,weightCustomProperties:[],httpApiEnabled:!1,httpApiPort:"51361",httpApiNotice:!0,welcomeMessage:"",verboseLogging:!1,DANGER_httpHost:null,DANGER_forceSaveCache:!1}}function sr(e){let t=new DocumentFragment;return t.createSpan({},r=>{r.innerHTML=e}),t}async function C_(e){return z=Object.assign({},go(e.app),await e.loadData()),ai.set(z.showExcerpt),pl(z.verboseLogging),z}async function pe(e){await e.saveData(z)}function Yl(e){return e.loadLocalStorage(ia)==="1"}function Nn(){return!ee.Platform.isIosApp&&z.useCache}var ee,ai,mo,Wl,z,Ql=x(()=>{ee=Xe(require("obsidian"));ul();Or();Kt();Aa();ai=Pu(!1),mo='<strong style="color: var(--text-accent)">Needs a restart to fully take effect.</strong>',Wl=class extends ee.PluginSettingTab{constructor(t){super(t.app,t);this.plugin=t,ai.subscribe(async r=>{z.showExcerpt=r,await pe(this.plugin)})}display(){let{containerEl:t}=this,r=this.plugin.database,n=this.plugin.getTextExtractor(),i=Ea(async()=>{await r.clearCache()},1e3),s=this.plugin.getAIImageAnalyzer();if(t.empty(),this.app.loadLocalStorage(ia)=="1"){let d=t.createEl("span");d.innerHTML='<strong style="color: var(--text-accent)">\u26A0\uFE0F OMNISEARCH IS DISABLED \u26A0\uFE0F</strong>'}t.createEl("h1",{text:"Omnisearch"});let a=t.createDiv();a.innerHTML=`
|
||
<iframe sandbox="allow-top-navigation-by-user-activation" src="https://github.com/sponsors/scambier/button" title="Sponsor scambier" height="35" width="116" style="border: 0;"></iframe>
|
||
<a href='https://ko-fi.com/B0B6LQ2C' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://cdn.ko-fi.com/cdn/kofi2.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
|
||
`,new ee.Setting(t).setName("Indexing").setHeading().setDesc(sr(`\u26A0\uFE0F <span style="color: var(--text-accent)">Changing indexing settings will clear the cache, and requires a restart of Obsidian.</span><br/><br/>
|
||
${n?`\u{1F44D} You have installed <a href="https://github.com/scambier/obsidian-text-extractor">Text Extractor</a>, Omnisearch can use it to index PDFs and images contents.
|
||
<br />Text extraction only works on desktop, but the cache can be synchronized with your mobile device.`:'\u26A0\uFE0F Omnisearch requires <a href="https://github.com/scambier/obsidian-text-extractor">Text Extractor</a> to index PDFs and images.'}
|
||
${s?'<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 ee.Setting(t).setName(`PDFs content indexing ${n?"":"\u26A0\uFE0F Disabled"}`).setDesc(sr("Omnisearch will use Text Extractor to index the content of your PDFs.")).addToggle(d=>d.setValue(z.PDFIndexing).onChange(async f=>{await r.clearCache(),z.PDFIndexing=f,await pe(this.plugin)})).setDisabled(!n),new ee.Setting(t).setName(`Images OCR indexing ${n?"":"\u26A0\uFE0F Disabled"}`).setDesc(sr("Omnisearch will use Text Extractor to OCR your images and index their content.")).addToggle(d=>d.setValue(z.imagesIndexing).onChange(async f=>{await r.clearCache(),z.imagesIndexing=f,await pe(this.plugin)})).setDisabled(!n);let u=new DocumentFragment;u.createSpan({},d=>{d.innerHTML='Omnisearch will use Text Extractor to index the content of your office documents (currently <pre style="display:inline">.docx</pre> and <pre style="display:inline">.xlsx</pre>).'}),new ee.Setting(t).setName(`Documents content indexing ${n?"":"\u26A0\uFE0F Disabled"}`).setDesc(u).addToggle(d=>d.setValue(z.officeIndexing).onChange(async f=>{await r.clearCache(),z.officeIndexing=f,await pe(this.plugin)})).setDisabled(!n);let o=new DocumentFragment;o.createSpan({},d=>{d.innerHTML="Omnisearch will use AI Image Analyzer to index the content of your images with ai."}),new ee.Setting(t).setName(`Images AI indexing ${s?"":"\u26A0\uFE0F Disabled"}`).setDesc(o).addToggle(d=>d.setValue(z.aiImageIndexing).onChange(async f=>{await r.clearCache(),z.aiImageIndexing=f,await pe(this.plugin)})).setDisabled(!s),new ee.Setting(t).setName("Index paths of unsupported files").setDesc(sr(`
|
||
Omnisearch can index file<strong>names</strong> of "unsupported" files, such as e.g. <pre style="display:inline">.mp4</pre>
|
||
or non-extracted PDFs & images.<br/>
|
||
"Obsidian setting" will respect the value of "Files & Links > Detect all file extensions".`)).addDropdown(d=>{d.addOptions({yes:"Yes",no:"No",default:"Obsidian setting"}).setValue(z.unsupportedFilesIndexing).onChange(async f=>{await i(),z.unsupportedFilesIndexing=f,await pe(this.plugin)})}),new ee.Setting(t).setName("Set frontmatter property key as title").setDesc(sr(`If you have a custom property in your notes that you want to use as the title in search results.<br>
|
||
Leave empty to disable.`)).addText(d=>{d.setValue(z.displayTitle).onChange(async f=>{await i(),z.displayTitle=f,await pe(this.plugin)})}),new ee.Setting(t).setName("Additional TEXT files to index").setDesc(sr(`In addition to standard <code>md</code> files, Omnisearch can also index other <strong style="color: var(--text-accent)">PLAINTEXT</strong> files.<br/>
|
||
Add extensions separated by a space, without the dot. Example: "<code>txt org csv</code>".<br />
|
||
\u26A0\uFE0F <span style="color: var(--text-accent)">Using extensions of non-plaintext files (like .pptx) WILL cause crashes,
|
||
because Omnisearch will try to index their content.</span>`)).addText(d=>{d.setValue(z.indexedFileTypes.join(" ")).setPlaceholder("Example: txt org csv").onChange(async f=>{await r.clearCache(),z.indexedFileTypes=f.split(" "),await pe(this.plugin)})}),new ee.Setting(t).setName("Behavior").setHeading(),new ee.Setting(t).setName("Save index to cache").setDesc("Enable caching to speed up indexing time. In rare cases, the cache write may cause a crash in Obsidian. This option will disable itself if it happens.").addToggle(d=>d.setValue(z.useCache).onChange(async f=>{z.useCache=f,await pe(this.plugin)})),new ee.Setting(t).setName("Show previous query results").setDesc("Re-executes the previous query when opening Omnisearch.").addToggle(d=>d.setValue(z.showPreviousQueryResults).onChange(async f=>{z.showPreviousQueryResults=f,await pe(this.plugin)})),new ee.Setting(t).setName(`Respect Obsidian's "Excluded Files"`).setDesc(`By default, files that are in Obsidian's "Options > Files & Links > Excluded Files" list are downranked in results.
|
||
Enable this option to completely hide them.`).addToggle(d=>d.setValue(z.hideExcluded).onChange(async f=>{z.hideExcluded=f,await pe(this.plugin)})),new ee.Setting(t).setName("Folders to downrank in search results").setDesc("Folders to downrank in search results. Files in these folders will be downranked in results. They will still be indexed for tags, unlike excluded files. Folders should be comma delimited.").addText(d=>{d.setValue(z.downrankedFoldersFilters.join(",")).setPlaceholder("Example: src,p2/dir").onChange(async f=>{let g=f.split(",");g=g.map(y=>y.trim()),z.downrankedFoldersFilters=g,await pe(this.plugin)})}),new ee.Setting(t).setName("Split CamelCaseWords").setDesc(sr(`Enable this if you want to be able to search for CamelCaseWords as separate words.<br/>
|
||
\u26A0\uFE0F <span style="color: var(--text-accent)">Changing this setting will clear the cache.</span><br>
|
||
${mo}`)).addToggle(d=>d.setValue(z.splitCamelCase).onChange(async f=>{await r.clearCache(),z.splitCamelCase=f,await pe(this.plugin)})),new ee.Setting(t).setName("Simpler search").setDesc(`Enable this if Obsidian often freezes while making searches.
|
||
Words shorter than 3 characters won't be used as prefixes; this can reduce search delay but will return fewer results.`).addToggle(d=>d.setValue(z.simpleSearch).onChange(async f=>{z.simpleSearch=f,await pe(this.plugin)})),ee.Platform.isIosApp||new ee.Setting(t).setName("Tokenize URLs").setDesc(`Enable this if you want to be able to search for URLs as separate words.
|
||
This setting has a strong impact on indexing performance, and can crash Obsidian under certain conditions.`).addToggle(d=>d.setValue(z.tokenizeUrls).onChange(async f=>{z.tokenizeUrls=f,await pe(this.plugin)})),new ee.Setting(t).setName("Open in new pane").setDesc("Open and create files in a new pane instead of the current pane.").addToggle(d=>d.setValue(z.openInNewPane).onChange(async f=>{z.openInNewPane=f,await pe(this.plugin)})),new ee.Setting(t).setName("Set Vim like navigation keys").setDesc("Navigate down the results with Ctrl/\u2318 + J/N, or navigate up with Ctrl/\u2318 + K/P").addToggle(d=>d.setValue(z.vimLikeNavigationShortcut).onChange(async f=>{z.vimLikeNavigationShortcut=f,await pe(this.plugin)})),new ee.Setting(t).setName("Fuzziness").setDesc("Define the level of fuzziness for the search. The higher the fuzziness, the more results you'll get.").addDropdown(d=>d.addOptions({0:"Exact match",1:"Not too fuzzy",2:"Fuzzy enough"}).setValue(z.fuzziness).onChange(async f=>{["0","1","2"].includes(f)||(f="2"),z.fuzziness=f,await pe(this.plugin)})),new ee.Setting(t).setName("User Interface").setHeading(),new ee.Setting(t).setName("Show ribbon button").setDesc("Add a button on the sidebar to open the Vault search modal.").addToggle(d=>d.setValue(z.ribbonIcon).onChange(async f=>{z.ribbonIcon=f,await pe(this.plugin),f?this.plugin.addRibbonButton():this.plugin.removeRibbonButton()})),new ee.Setting(t).setName("Show excerpts").setDesc("Shows the contextual part of the note that matches the search. Disable this to only show filenames in results.").addToggle(d=>d.setValue(z.showExcerpt).onChange(async f=>{ai.set(f)})),new ee.Setting(t).setName("Render line return in excerpts").setDesc("Activate this option to render line returns in result excerpts.").addToggle(d=>d.setValue(z.renderLineReturnInExcerpts).onChange(async f=>{z.renderLineReturnInExcerpts=f,await pe(this.plugin)})),new ee.Setting(t).setName('Show "Create note" button').setDesc(sr(`Shows a button next to the search input, to create a note.
|
||
Acts the same as the <code>shift \u21B5</code> shortcut, can be useful for mobile device users.`)).addToggle(d=>d.setValue(z.showCreateButton).onChange(async f=>{z.showCreateButton=f,await pe(this.plugin)})),new ee.Setting(t).setName("Highlight matching words in results").setDesc("Will highlight matching results when enabled. See README for more customization options.").addToggle(d=>d.setValue(z.highlight).onChange(async f=>{z.highlight=f,await pe(this.plugin)}));let c=go(this.app);new ee.Setting(t).setName("Results weighting").setHeading(),new ee.Setting(t).setName(`File name & declared aliases (default: ${c.weightBasename})`).addSlider(d=>this.weightSlider(d,"weightBasename")),new ee.Setting(t).setName(`File directory (default: ${c.weightDirectory})`).addSlider(d=>this.weightSlider(d,"weightDirectory")),new ee.Setting(t).setName(`Headings level 1 (default: ${c.weightH1})`).addSlider(d=>this.weightSlider(d,"weightH1")),new ee.Setting(t).setName(`Headings level 2 (default: ${c.weightH2})`).addSlider(d=>this.weightSlider(d,"weightH2")),new ee.Setting(t).setName(`Headings level 3 (default: ${c.weightH3})`).addSlider(d=>this.weightSlider(d,"weightH3")),new ee.Setting(t).setName(`Tags (default: ${c.weightUnmarkedTags})`).addSlider(d=>this.weightSlider(d,"weightUnmarkedTags")),new ee.Setting(t).setName("Header properties fields").setDesc('You can set custom weights for values of header properties (e.g. "keywords"). Weights under 1.0 will downrank the results.');for(let d=0;d<z.weightCustomProperties.length;d++){let f=z.weightCustomProperties[d];new ee.Setting(t).setName((d+1).toString()+".").addText(g=>{g.setPlaceholder("Property name").setValue(f.name).onChange(async y=>{f.name=y,await pe(this.plugin)})}).addSlider(g=>{g.setLimits(.1,5,.1).setValue(f.weight).setDynamicTooltip().onChange(async y=>{f.weight=y,await pe(this.plugin)})}).addButton(g=>{g.setButtonText("Remove"),g.onClick(async()=>{z.weightCustomProperties.splice(d,1),await pe(this.plugin),this.display()})})}new ee.Setting(t).addButton(d=>{d.setButtonText("Add a new property"),d.onClick(f=>{z.weightCustomProperties.push({name:"",weight:1}),this.display()})}),ee.Platform.isMobile||(new ee.Setting(t).setName("API Access Through HTTP").setHeading().setDesc(sr('Omnisearch can be used through a simple HTTP server (<a href="https://publish.obsidian.md/omnisearch/Public+API+%26+URL+Scheme#HTTP+Server">more information</a>).')),new ee.Setting(t).setName("Enable the HTTP server").addToggle(d=>d.setValue(z.httpApiEnabled).onChange(async f=>{z.httpApiEnabled=f,f?this.plugin.apiHttpServer.listen(z.httpApiPort):this.plugin.apiHttpServer.close(),await pe(this.plugin)})),new ee.Setting(t).setName("HTTP Port").addText(d=>{d.setValue(z.httpApiPort).setPlaceholder("51361").onChange(async f=>{parseInt(f)>65535&&(f=z.httpApiPort,d.setValue(z.httpApiPort)),z.httpApiPort=f,z.httpApiEnabled&&(this.plugin.apiHttpServer.close(),this.plugin.apiHttpServer.listen(z.httpApiPort)),await pe(this.plugin)})}),new ee.Setting(t).setName("Show a notification when the server starts").setDesc("Will display a notification if the server is enabled, at Obsidian startup.").addToggle(d=>d.setValue(z.httpApiNotice).onChange(async f=>{z.httpApiNotice=f,await pe(this.plugin)}))),new ee.Setting(t).setName("Debugging").setHeading(),new ee.Setting(t).setName("Enable verbose logging").setDesc("Adds a LOT of logs for debugging purposes. Don't forget to disable it.").addToggle(d=>d.setValue(z.verboseLogging).onChange(async f=>{z.verboseLogging=f,pl(f),await pe(this.plugin)})),new ee.Setting(t).setName("Danger Zone").setHeading(),new ee.Setting(t).setName("Ignore diacritics").setDesc(sr(`Normalize diacritics in search terms. Words like "br\xFBl\xE9e" or "\u017Elu\u0165ou\u010Dk\xFD" will be indexed as "brulee" and "zlutoucky".<br/>
|
||
\u26A0\uFE0F <span style="color: var(--text-accent)">You probably should <strong>NOT</strong> disable this.</span><br>
|
||
\u26A0\uFE0F <span style="color: var(--text-accent)">Changing this setting will clear the cache.</span><br>
|
||
${mo}`)).addToggle(d=>d.setValue(z.ignoreDiacritics).onChange(async f=>{await r.clearCache(),z.ignoreDiacritics=f,await pe(this.plugin)})),new ee.Setting(t).setName("Ignore Arabic diacritics (beta)").addToggle(d=>d.setValue(z.ignoreArabicDiacritics).onChange(async f=>{await r.clearCache(),z.ignoreArabicDiacritics=f,await pe(this.plugin)}));let h=new DocumentFragment;h.createSpan({},d=>{d.innerHTML=`Disable Omnisearch on this device only.<br>
|
||
${mo}`}),new ee.Setting(t).setName("Disable on this device").setDesc(h).addToggle(d=>d.setValue(Yl(this.app)).onChange(async f=>{f?(this.app.saveLocalStorage(ia,"1"),new ee.Notice("Omnisearch - Disabled. Please restart Obsidian.")):(this.app.saveLocalStorage(ia),new ee.Notice("Omnisearch - Enabled. Please restart Obsidian."))})),new ee.Setting(t).setName("Force save the cache").setDesc(sr(`Omnisearch has a security feature that automatically disables cache writing if it cannot fully perform the operation.<br>
|
||
Use this option to force the cache to be saved, even if it causes a crash.<br>
|
||
\u26A0\uFE0F <span style="color: var(--text-accent)">Enabling this setting could lead to crash loops</span>`)).addToggle(d=>d.setValue(z.DANGER_forceSaveCache).onChange(async f=>{z.DANGER_forceSaveCache=f,await pe(this.plugin)})),Nn()&&new ee.Setting(t).setName("Clear cache data").setDesc(sr(`Erase all Omnisearch cache data.
|
||
Use this if Omnisearch results are inconsistent, missing, or appear outdated.<br>
|
||
${mo}`)).addButton(d=>{d.setButtonText("Clear cache"),d.onClick(async()=>{await r.clearCache()})})}weightSlider(t,r){t.setLimits(1,5,.1).setValue(z[r]).setDynamicTooltip().onChange(async n=>{z[r]=n,await pe(this.plugin)})}}});function YS(e){let t;return{c(){t=V("span"),t.innerHTML='<svg viewBox="0 0 100 100" class="add-note-glyph" width="16" height="16"><path fill="currentColor" stroke="currentColor" d="M23.3,6.7c-3.7,0-6.7,3-6.7,6.7v73.3c0,3.7,3,6.7,6.7,6.7h28.4c-3.2-4.8-5.1-10.5-5.1-16.7c0-16.6,13.4-30,30-30 c2.3,0,4.5,0.3,6.7,0.8V31.7c0-0.9-0.3-1.7-1-2.4L60.7,7.6c-0.6-0.6-1.5-1-2.4-1L23.3,6.7z M56.7,13L77,33.3H60 c-1.8,0-3.3-1.5-3.3-3.3L56.7,13z M76.7,53.3c-12.9,0-23.3,10.4-23.3,23.3S63.8,100,76.7,100S100,89.6,100,76.7 S89.6,53.3,76.7,53.3z M76.7,63.3c1.8,0,3.3,1.5,3.3,3.3v6.7h6.7c1.8,0,3.3,1.5,3.3,3.3c0,1.8-1.5,3.3-3.3,3.3H80v6.7 c0,1.8-1.5,3.3-3.3,3.3c-1.8,0-3.3-1.5-3.3-3.3V80h-6.7c-1.8,0-3.3-1.5-3.3-3.3s1.5-3.3,3.3-3.3h6.7v-6.7 C73.3,64.8,74.8,63.3,76.7,63.3L76.7,63.3z"></path></svg>',Z(t,"class","suggestion-flair"),Z(t,"aria-label","Not created yet, select to create")},m(r,n){ae(r,t,n)},p:qe,i:qe,o:qe,d(r){r&&se(t)}}}function QS(e){"use strict";return[]}var D_,S_,x_=x(()=>{nr();D_=class extends pt{constructor(t){super();bt(this,t,QS,YS,ot,{})}},S_=D_});function O_(e){let t,r;return t=new S_({}),{c(){Lt(t.$$.fragment)},m(n,i){Dt(t,n,i),r=!0},i(n){r||(Ee(t.$$.fragment,n),r=!0)},o(n){Oe(t.$$.fragment,n),r=!1},d(n){Tt(t,n)}}}function $S(e){let t,r,n,i,s,a=e[2]&&O_(e),u=e[4].default,o=Mi(u,e,e[3],null);return{c(){t=V("div"),a&&a.c(),r=ue(),o&&o.c(),Z(t,"data-result-id",e[0]),Z(t,"class","suggestion-item omnisearch-result"),el(t,"is-selected",e[1])},m(c,h){ae(c,t,h),a&&a.m(t,null),j(t,r),o&&o.m(t,null),n=!0,i||(s=[ht(t,"mousemove",e[5]),ht(t,"click",e[6]),ht(t,"keypress",e[7]),ht(t,"auxclick",e[8])],i=!0)},p(c,[h]){c[2]?a?h&4&&Ee(a,1):(a=O_(c),a.c(),Ee(a,1),a.m(t,r)):a&&(ei(),Oe(a,1,1,()=>{a=null}),ti()),o&&o.p&&(!n||h&8)&&Fi(o,u,c,c[3],n?ki(u,c[3],h,null):Bi(c[3]),null),(!n||h&1)&&Z(t,"data-result-id",c[0]),(!n||h&2)&&el(t,"is-selected",c[1])},i(c){n||(Ee(a),Ee(o,c),n=!0)},o(c){Oe(a),Oe(o,c),n=!1},d(c){c&&se(t),a&&a.d(),o&&o.d(c),i=!1,lr(s)}}}function XS(e,t,r){let{$$slots:n={},$$scope:i}=t,{id:s}=t,{selected:a=!1}=t,{glyph:u=!1}=t;function o(f){Vt.call(this,e,f)}function c(f){Vt.call(this,e,f)}function h(f){Vt.call(this,e,f)}function d(f){Vt.call(this,e,f)}return e.$$set=f=>{"id"in f&&r(0,s=f.id),"selected"in f&&r(1,a=f.selected),"glyph"in f&&r(2,u=f.glyph),"$$scope"in f&&r(3,i=f.$$scope)},[s,a,u,i,n,o,c,h,d]}var N_,_o,$l=x(()=>{nr();x_();N_=class extends pt{constructor(t){super();bt(this,t,XS,$S,ot,{id:0,selected:1,glyph:2})}},_o=N_});function w_(e){let t,r=e[1].matches.length+"",n,i,s=(e[1].matches.length>1?"matches":"match")+"",a;return{c(){t=V("span"),n=dt(r),i=dt("\xA0"),a=dt(s),Z(t,"class","omnisearch-result__counter")},m(u,o){ae(u,t,o),j(t,n),j(t,i),j(t,a)},p(u,o){o&2&&r!==(r=u[1].matches.length+"")&&xr(n,r),o&2&&s!==(s=(u[1].matches.length>1?"matches":"match")+"")&&xr(a,s)},d(u){u&&se(t)}}}function R_(e){let t,r,n,i,s=e[2].textProcessor.highlightText(e[4],e[10])+"";return{c(){t=V("div"),r=V("span"),n=ue(),i=V("span"),Z(t,"class","omnisearch-result__folder-path")},m(a,u){ae(a,t,u),j(t,r),e[14](r),j(t,n),j(t,i),i.innerHTML=s},p(a,u){u&1044&&s!==(s=a[2].textProcessor.highlightText(a[4],a[10])+"")&&(i.innerHTML=s)},d(a){a&&se(t),e[14](null)}}}function P_(e){let t,r=e[2].textProcessor.highlightText(e[9],e[1].matches)+"";return{c(){t=V("div"),Z(t,"class","omnisearch-result__body")},m(n,i){ae(n,t,i),t.innerHTML=r},p(n,i){i&518&&r!==(r=n[2].textProcessor.highlightText(n[9],n[1].matches)+"")&&(t.innerHTML=r)},d(n){n&&se(t)}}}function L_(e){let t,r,n;return{c(){t=V("div"),r=V("img"),zt(r,"width","100px"),Zc(r.src,n=e[7])||Z(r,"src",n),Z(r,"alt",""),Z(t,"class","omnisearch-result__image-container")},m(i,s){ae(i,t,s),j(t,r)},p(i,s){s&128&&!Zc(r.src,n=i[7])&&Z(r,"src",n)},d(i){i&&se(t)}}}function ZS(e){let t,r,n,i,s,a,u=e[2].textProcessor.highlightText(e[3],e[11])+"",o,c,h,d=En(e[1].path)+"",f,g,y,b,D,m,v=e[1].matches.length>0&&w_(e),I=e[4]&&R_(e),T=e[12]&&P_(e),E=e[7]&&L_(e);return{c(){t=V("div"),r=V("div"),n=V("span"),i=V("span"),s=ue(),a=V("span"),o=ue(),c=V("span"),h=dt("."),f=dt(d),g=ue(),v&&v.c(),y=ue(),I&&I.c(),b=ue(),D=V("div"),T&&T.c(),m=ue(),E&&E.c(),Z(c,"class","omnisearch-result__extension"),Z(n,"class","omnisearch-result__title"),Z(r,"class","omnisearch-result__title-container"),zt(D,"display","flex"),zt(D,"flex-direction","row")},m(C,S){ae(C,t,S),j(t,r),j(r,n),j(n,i),e[13](i),j(n,s),j(n,a),a.innerHTML=u,j(n,o),j(n,c),j(c,h),j(c,f),j(n,g),v&&v.m(n,null),j(t,y),I&&I.m(t,null),j(t,b),j(t,D),T&&T.m(D,null),j(D,m),E&&E.m(D,null)},p(C,S){S&2060&&u!==(u=C[2].textProcessor.highlightText(C[3],C[11])+"")&&(a.innerHTML=u),S&2&&d!==(d=En(C[1].path)+"")&&xr(f,d),C[1].matches.length>0?v?v.p(C,S):(v=w_(C),v.c(),v.m(n,null)):v&&(v.d(1),v=null),C[4]?I?I.p(C,S):(I=R_(C),I.c(),I.m(t,b)):I&&(I.d(1),I=null),C[12]?T?T.p(C,S):(T=P_(C),T.c(),T.m(D,m)):T&&(T.d(1),T=null),C[7]?E?E.p(C,S):(E=L_(C),E.c(),E.m(D,null)):E&&(E.d(1),E=null)},d(C){C&&se(t),e[13](null),v&&v.d(),I&&I.d(),T&&T.d(),E&&E.d()}}}function JS(e){let t,r;return t=new _o({props:{glyph:e[8],id:e[1].path,selected:e[0],$$slots:{default:[ZS]},$$scope:{ctx:e}}}),t.$on("auxclick",e[15]),t.$on("click",e[16]),t.$on("mousemove",e[17]),{c(){Lt(t.$$.fragment)},m(n,i){Dt(t,n,i),r=!0},p(n,[i]){let s={};i&256&&(s.glyph=n[8]),i&2&&(s.id=n[1].path),i&1&&(s.selected=n[0]),i&270078&&(s.$$scope={dirty:i,ctx:n}),t.$set(s)},i(n){r||(Ee(t.$$.fragment,n),r=!0)},o(n){Oe(t.$$.fragment,n),r=!1},d(n){Tt(t,n)}}}function ex(e,t,r){let n,i,s,a,u;xu(e,ai,E=>r(12,u=E));let{selected:o=!1}=t,{note:c}=t,{plugin:h}=t,d=null,f="",g="",y,b;function D(E){Yr[E?"unshift":"push"](()=>{b=E,r(6,b)})}function m(E){Yr[E?"unshift":"push"](()=>{y=E,r(5,y)})}function v(E){Vt.call(this,e,E)}function I(E){Vt.call(this,e,E)}function T(E){Vt.call(this,e,E)}e.$$set=E=>{"selected"in E&&r(0,o=E.selected),"note"in E&&r(1,c=E.note),"plugin"in E&&r(2,h=E.plugin)},e.$$.update=()=>{if(e.$$.dirty&6){e:if(r(7,d=null),Tn(c.path)){let E=h.app.vault.getAbstractFileByPath(c.path);E instanceof wn.TFile&&r(7,d=h.app.vault.getResourcePath(E))}}if(e.$$.dirty&98){e:r(3,f=c.displayTitle||c.basename),r(4,g=f0(c.path)),y&&(0,wn.setIcon)(y,"folder-open"),b&&(Tn(c.path)?(0,wn.setIcon)(b,"image"):bn(c.path)?(0,wn.setIcon)(b,"file-text"):ri(c.path)||g0(c.path)?(0,wn.setIcon)(b,"layout-dashboard"):(0,wn.setIcon)(b,"file"))}if(e.$$.dirty&14){e:r(11,n=h.textProcessor.getMatches(f,c.foundWords))}if(e.$$.dirty&22){e:r(10,i=h.textProcessor.getMatches(g,c.foundWords))}if(e.$$.dirty&6){e:r(9,s=h.textProcessor.makeExcerpt(c.content,c.matches[0]?.offset??-1))}};e:r(8,a=!1);return[o,c,h,f,g,y,b,d,a,s,i,n,u,D,m,v,I,T]}var wn,M_,k_,F_=x(()=>{nr();Ql();Kt();$l();wn=Xe(require("obsidian"));M_=class extends pt{constructor(t){super();bt(this,t,ex,JS,ot,{selected:0,note:1,plugin:2})}},k_=M_});var B_=U(To=>{To.parse=function(e,t){if(t?t.offsets=typeof t.offsets=="undefined"?!0:t.offsets:t={offsets:!0},e||(e=""),e.indexOf(":")===-1&&!t.tokenize)return e;if(!t.keywords&&!t.ranges&&!t.tokenize)return e;var r={text:[]};t.offsets&&(r.offsets=[]);for(var n={},i=[],s=/(\S+:'(?:[^'\\]|\\.)*')|(\S+:"(?:[^"\\]|\\.)*")|(-?"(?:[^"\\]|\\.)*")|(-?'(?:[^'\\]|\\.)*')|\S+|\S+:\S+/g,a;(a=s.exec(e))!==null;){var f=a[0],u=f.indexOf(":");if(u!==-1){var o=f.split(":"),c=f.slice(0,u),h=f.slice(u+1);h=h.replace(/^\"|\"$|^\'|\'$/g,""),h=(h+"").replace(/\\(.?)/g,function(C,S){switch(S){case"\\":return"\\";case"0":return"\0";case"":return"";default:return S}}),i.push({keyword:c,value:h,offsetStart:a.index,offsetEnd:a.index+f.length})}else{var d=!1;f[0]==="-"&&(d=!0,f=f.slice(1)),f=f.replace(/^\"|\"$|^\'|\'$/g,""),f=(f+"").replace(/\\(.?)/g,function(C,S){switch(S){case"\\":return"\\";case"0":return"\0";case"":return"";default:return S}}),d?n.text?(n.text instanceof Array||(n.text=[n.text]),n.text.push(f)):n.text=f:i.push({text:f,offsetStart:a.index,offsetEnd:a.index+f.length})}}i.reverse();for(var f;f=i.pop();)if(f.text)r.text.push(f.text),t.offsets&&r.offsets.push(f);else{var c=f.keyword;t.keywords=t.keywords||[];var g=!1,y=!1;if(!/^-/.test(c))g=t.keywords.indexOf(c)!==-1;else if(c[0]==="-"){var b=c.slice(1);g=t.keywords.indexOf(b)!==-1,g&&(c=b,y=!0)}t.ranges=t.ranges||[];var D=t.ranges.indexOf(c)!==-1;if(g){t.offsets&&r.offsets.push({keyword:c,value:f.value,offsetStart:y?f.offsetStart+1:f.offsetStart,offsetEnd:f.offsetEnd});var m=f.value;if(m.length){var v=m.split(",");y?n[c]?n[c]instanceof Array?v.length>1?n[c]=n[c].concat(v):n[c].push(m):(n[c]=[n[c]],n[c].push(m)):v.length>1?n[c]=v:t.alwaysArray?n[c]=[m]:n[c]=m:r[c]?r[c]instanceof Array?v.length>1?r[c]=r[c].concat(v):r[c].push(m):(r[c]=[r[c]],r[c].push(m)):v.length>1?r[c]=v:t.alwaysArray?r[c]=[m]:r[c]=m}}else if(D){t.offsets&&r.offsets.push(f);var m=f.value,I=m.split("-");r[c]={},I.length===2?(r[c].from=I[0],r[c].to=I[1]):!I.length%2||(r[c].from=m)}else{var T=f.keyword+":"+f.value;r.text.push(T),t.offsets&&r.offsets.push({text:T,offsetStart:f.offsetStart,offsetEnd:f.offsetEnd})}}return r.text.length?t.tokenize||(r.text=r.text.join(" ").trim()):delete r.text,r.exclude=n,r};To.stringify=function(e,t,r){if(t||(t={offsets:!0}),!e)return"";if(typeof e=="string")return e;if(Array.isArray(e))return e.join(" ");if(!Object.keys(e).length)return"";if(Object.keys(e).length===3&&!!e.text&&!!e.offsets&&!!e.exclude&&typeof e.text=="string")return e.text;r||(r="");var n=function(u){return u.indexOf(" ")>-1?JSON.stringify(u):u},i=function(u){return r+u},s=[];if(e.text){var a=[];typeof e.text=="string"?a.push(e.text):a.push.apply(a,e.text),a.length>0&&s.push(a.map(n).map(i).join(" "))}return t.keywords&&t.keywords.forEach(function(u){if(!!e[u]){var o=[];typeof e[u]=="string"?o.push(e[u]):o.push.apply(o,e[u]),o.length>0&&s.push(i(u+":"+o.map(n).join(",")))}}),t.ranges&&t.ranges.forEach(function(u){if(!!e[u]){var o=e[u].from,c=e[u].to;c&&(o=o+"-"+c),o&&s.push(i(u+":"+o))}}),e.exclude&&Object.keys(e.exclude).length>0&&s.push(To.stringify(e.exclude,t,"-")),s.join(" ")}});var H_=U((V9,j_)=>{j_.exports=B_()});var U_,Xl,ui,bo=x(()=>{Kt();U_=Xe(H_()),Xl=["ext","path"],ui=class{#e;constructor(t="",r){r.ignoreDiacritics&&(t=Qr(t,r.ignoreArabicDiacritics));let n=(0,U_.parse)(t.toLowerCase(),{tokenize:!0,keywords:Xl});n.text=n.text??[],n.exclude=n.exclude??{},n.exclude.text=n.exclude.text??[],Array.isArray(n.exclude.text)||(n.exclude.text=[n.exclude.text]),n.exclude.text=n.exclude.text.filter(s=>s.length);for(let s of Xl){let a=n[s];a&&(n[s]=Array.isArray(a)?a:[a]);let u=n.exclude[s];u&&(n.exclude[s]=Array.isArray(u)?u:[u])}this.query=n;let i=this.query.text.filter(s=>s.startsWith(".")).map(s=>s.slice(1));this.query.ext=[...new Set([...i,...this.query.ext??[]])],this.query.text=this.query.text.filter(s=>!s.startsWith(".")),this.#e=t.match(/"([^"]+)"/g)?.map(s=>s.replace(/"/g,""))??[]}isEmpty(){for(let t of Xl)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 G_=U(Eo=>{function Zl(e){return Zl=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},Zl(e)}(function(e,t){if(typeof define=="function"&&define.amd)define(["exports"],t);else if(typeof Eo!="undefined")t(Eo);else{var r={exports:{}};t(r.exports),e.CancelablePromise=r.exports}})(typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:Eo,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancelablePromise=void 0,e.cancelable=ge,e.default=void 0,e.isCancelablePromise=W;function t(R,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(F&&F.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),F&&r(R,F)}function r(R,F){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(te,de){return te.__proto__=de,te},r(R,F)}function n(R){var F=a();return function(){var te=u(R),de;if(F){var we=u(this).constructor;de=Reflect.construct(te,arguments,we)}else de=te.apply(this,arguments);return i(this,de)}}function i(R,F){if(F&&(Zl(F)==="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s(R)}function s(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function a(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function u(R){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(H){return H.__proto__||Object.getPrototypeOf(H)},u(R)}function o(R,F){var H=typeof Symbol!="undefined"&&R[Symbol.iterator]||R["@@iterator"];if(!H){if(Array.isArray(R)||(H=c(R))||F&&R&&typeof R.length=="number"){H&&(R=H);var te=0,de=function(){};return{s:de,n:function(){return te>=R.length?{done:!0}:{done:!1,value:R[te++]}},e:function(X){throw X},f:de}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var we=!0,tt=!1,Kr;return{s:function(){H=H.call(R)},n:function(){var X=H.next();return we=X.done,X},e:function(X){tt=!0,Kr=X},f:function(){try{!we&&H.return!=null&&H.return()}finally{if(tt)throw Kr}}}}function c(R,F){if(!!R){if(typeof R=="string")return h(R,F);var H=Object.prototype.toString.call(R).slice(8,-1);if(H==="Object"&&R.constructor&&(H=R.constructor.name),H==="Map"||H==="Set")return Array.from(R);if(H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return h(R,F)}}function h(R,F){(F==null||F>R.length)&&(F=R.length);for(var H=0,te=new Array(F);H<F;H++)te[H]=R[H];return te}function d(R,F){if(!(R instanceof F))throw new TypeError("Cannot call a class as a function")}function f(R,F){for(var H=0;H<F.length;H++){var te=F[H];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(R,te.key,te)}}function g(R,F,H){return F&&f(R.prototype,F),H&&f(R,H),Object.defineProperty(R,"prototype",{writable:!1}),R}function y(R,F,H){return F in R?Object.defineProperty(R,F,{value:H,enumerable:!0,configurable:!0,writable:!0}):R[F]=H,R}function b(R,F,H){D(R,F),F.set(R,H)}function D(R,F){if(F.has(R))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(R,F){var H=T(R,F,"get");return v(R,H)}function v(R,F){return F.get?F.get.call(R):F.value}function I(R,F,H){var te=T(R,F,"set");return E(R,te,H),H}function T(R,F,H){if(!F.has(R))throw new TypeError("attempted to "+H+" private field on non-instance");return F.get(R)}function E(R,F,H){if(F.set)F.set.call(R,H);else{if(!F.writable)throw new TypeError("attempted to set read only private field");F.value=H}}var C=typeof Symbol!="undefined"?Symbol.toStringTag:"@@toStringTag",S=new WeakMap,N=new WeakMap,P=function(){function R(F){var H=F.executor,te=H===void 0?function(){}:H,de=F.internals,we=de===void 0?Ke():de,tt=F.promise,Kr=tt===void 0?new Promise(function(_t,X){return te(_t,X,function($e){we.onCancelList.push($e)})}):tt;d(this,R),b(this,S,{writable:!0,value:void 0}),b(this,N,{writable:!0,value:void 0}),y(this,C,"CancelablePromise"),this.cancel=this.cancel.bind(this),I(this,S,we),I(this,N,Kr||new Promise(function(_t,X){return te(_t,X,function($e){we.onCancelList.push($e)})}))}return g(R,[{key:"then",value:function(H,te){return ke(m(this,N).then(he(H,m(this,S)),he(te,m(this,S))),m(this,S))}},{key:"catch",value:function(H){return ke(m(this,N).catch(he(H,m(this,S))),m(this,S))}},{key:"finally",value:function(H,te){var de=this;return te&&m(this,S).onCancelList.push(H),ke(m(this,N).finally(he(function(){if(H)return te&&(m(de,S).onCancelList=m(de,S).onCancelList.filter(function(we){return we!==H})),H()},m(this,S))),m(this,S))}},{key:"cancel",value:function(){m(this,S).isCanceled=!0;var H=m(this,S).onCancelList;m(this,S).onCancelList=[];var te=o(H),de;try{for(te.s();!(de=te.n()).done;){var we=de.value;if(typeof we=="function")try{we()}catch(tt){console.error(tt)}}}catch(tt){te.e(tt)}finally{te.f()}}},{key:"isCanceled",value:function(){return m(this,S).isCanceled===!0}}]),R}(),q=function(R){t(H,R);var F=n(H);function H(te){return d(this,H),F.call(this,{executor:te})}return g(H)}(P);e.CancelablePromise=q,y(q,"all",function(F){return Ie(F,Promise.all(F))}),y(q,"allSettled",function(F){return Ie(F,Promise.allSettled(F))}),y(q,"any",function(F){return Ie(F,Promise.any(F))}),y(q,"race",function(F){return Ie(F,Promise.race(F))}),y(q,"resolve",function(F){return ge(Promise.resolve(F))}),y(q,"reject",function(F){return ge(Promise.reject(F))}),y(q,"isCancelable",W);var $=q;e.default=$;function ge(R){return ke(R,Ke())}function W(R){return R instanceof q||R instanceof P}function he(R,F){if(R)return function(H){if(!F.isCanceled){var te=R(H);return W(te)&&F.onCancelList.push(te.cancel),te}return H}}function ke(R,F){return new P({internals:F,promise:R})}function Ie(R,F){var H=Ke();return H.onCancelList.push(function(){var te=o(R),de;try{for(te.s();!(de=te.n()).done;){var we=de.value;W(we)&&we.cancel()}}catch(tt){te.e(tt)}finally{te.f()}}),new P({internals:H,promise:F})}function Ke(){return{isCanceled:!1,onCancelList:[]}}})});function z_(e,t,r){let n=e.slice();return n[40]=t[r],n[42]=r,n}function V_(e){let t,r,n;return{c(){t=V("button"),t.textContent="Create note"},m(i,s){ae(i,t,s),r||(n=ht(t,"click",e[14]),r=!0)},p:qe,d(i){i&&se(t),r=!1,n()}}}function tx(e){let t,r,n;return{c(){t=V("button"),t.textContent="In-File search"},m(i,s){ae(i,t,s),r||(n=ht(t,"click",e[15]),r=!0)},p:qe,d(i){i&&se(t),r=!1,n()}}}function rx(e){let t,r,n=e[0].settings.showCreateButton&&V_(e),i=gr.Platform.isMobile&&tx(e);return{c(){t=V("div"),n&&n.c(),r=ue(),i&&i.c(),Z(t,"class","omnisearch-input-container__buttons")},m(s,a){ae(s,t,a),n&&n.m(t,null),j(t,r),i&&i.m(t,null)},p(s,a){s[0].settings.showCreateButton?n?n.p(s,a):(n=V_(s),n.c(),n.m(t,r)):n&&(n.d(1),n=null),gr.Platform.isMobile&&i.p(s,a)},d(s){s&&se(t),n&&n.d(),i&&i.d()}}}function K_(e){let t,r,n;return{c(){t=V("div"),r=dt("\u23F3 Work in progress: "),n=dt(e[4]),zt(t,"text-align","center"),zt(t,"color","var(--text-accent)"),zt(t,"margin-top","10px")},m(i,s){ae(i,t,s),j(t,r),j(t,n)},p(i,s){s[0]&16&&xr(n,i[4])},d(i){i&&se(t)}}}function W_(e){let t,r;function n(...i){return e[21](e[42],...i)}return t=new k_({props:{plugin:e[0],selected:e[42]===e[1],note:e[40]}}),t.$on("mousemove",n),t.$on("click",e[12]),t.$on("auxclick",e[22]),{c(){Lt(t.$$.fragment)},m(i,s){Dt(t,i,s),r=!0},p(i,s){e=i;let a={};s[0]&1&&(a.plugin=e[0]),s[0]&2&&(a.selected=e[42]===e[1]),s[0]&8&&(a.note=e[40]),t.$set(a)},i(i){r||(Ee(t.$$.fragment,i),r=!0)},o(i){Oe(t.$$.fragment,i),r=!1},d(i){Tt(t,i)}}}function nx(e){let t;return{c(){t=dt("Searching...")},m(r,n){ae(r,t,n)},p:qe,d(r){r&&se(t)}}}function ix(e){let t,r=e[0].settings.simpleSearch&&e[2].split(sa).some(Q_),n,i=r&&Y_(e);return{c(){t=dt(`We found 0 result for your search here.
|
||
`),i&&i.c(),n=Zs()},m(s,a){ae(s,t,a),i&&i.m(s,a),ae(s,n,a)},p(s,a){a[0]&5&&(r=s[0].settings.simpleSearch&&s[2].split(sa).some(Q_)),r?i||(i=Y_(s),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(s){s&&se(t),i&&i.d(s),s&&se(n)}}}function Y_(e){let t,r,n;return{c(){t=V("br"),r=ue(),n=V("span"),n.textContent=`You have enabled "Simpler Search" in the settings, try to type more
|
||
characters.`,zt(n,"color","var(--text-accent)"),zt(n,"font-size","small")},m(i,s){ae(i,t,s),ae(i,r,s),ae(i,n,s)},d(i){i&&se(t),i&&se(r),i&&se(n)}}}function sx(e){let t,r,n,i=e[3],s=[];for(let h=0;h<i.length;h+=1)s[h]=W_(z_(e,i,h));let a=h=>Oe(s[h],1,1,()=>{s[h]=null});function u(h,d){if(!h[3].length&&h[2]&&!h[5])return ix;if(h[5])return nx}let o=u(e,[-1,-1]),c=o&&o(e);return{c(){for(let h=0;h<s.length;h+=1)s[h].c();t=ue(),r=V("div"),c&&c.c(),zt(r,"text-align","center")},m(h,d){for(let f=0;f<s.length;f+=1)s[f]&&s[f].m(h,d);ae(h,t,d),ae(h,r,d),c&&c.m(r,null),n=!0},p(h,d){if(d[0]&12299){i=h[3];let f;for(f=0;f<i.length;f+=1){let g=z_(h,i,f);s[f]?(s[f].p(g,d),Ee(s[f],1)):(s[f]=W_(g),s[f].c(),Ee(s[f],1),s[f].m(t.parentNode,t))}for(ei(),f=i.length;f<s.length;f+=1)a(f);ti()}o===(o=u(h,d))&&c?c.p(h,d):(c&&c.d(1),c=o&&o(h),c&&(c.c(),c.m(r,null)))},i(h){if(!n){for(let d=0;d<i.length;d+=1)Ee(s[d]);n=!0}},o(h){s=s.filter(Boolean);for(let d=0;d<s.length;d+=1)Oe(s[d]);n=!1},d(h){Nu(s,h),h&&se(t),h&&se(r),c&&c.d()}}}function ax(e){let t,r,n,i,s,a,u,o,c,h,d,f,g,y,b,D,m,v,I,T,E,C,S,N,P,q,$,ge,W,he,ke,Ie,Ke,R,F,H,te,de,we,tt,Kr,_t,X,$e,Wr,cr,Zn,Pi,pn,Fy={plugin:e[0],initialValue:e[2],placeholder:"Omnisearch - Vault",$$slots:{default:[rx]},$$scope:{ctx:e}};t=new Fu({props:Fy}),e[19](t),t.$on("input",e[20]);let Pt=e[4]&&K_(e);return i=new Bu({props:{$$slots:{default:[sx]},$$scope:{ctx:e}}}),{c(){Lt(t.$$.fragment),r=ue(),Pt&&Pt.c(),n=ue(),Lt(i.$$.fragment),s=ue(),a=V("div"),u=V("div"),u.innerHTML='<span class="prompt-instruction-command">\u2191\u2193</span><span>to navigate</span>',o=ue(),c=V("div"),c.innerHTML=`<span class="prompt-instruction-command">alt \u2191\u2193</span>
|
||
<span>to cycle history</span>`,h=ue(),d=V("div"),f=V("span"),g=dt(e[8]),y=ue(),b=V("span"),b.textContent="to open",D=ue(),m=V("div"),m.innerHTML=`<span class="prompt-instruction-command">tab</span>
|
||
<span>to switch to In-File Search</span>`,v=ue(),I=V("div"),T=V("span"),E=dt(e[7]),C=ue(),S=V("span"),S.textContent="to open in a new pane",N=ue(),P=V("div"),q=V("span"),q.textContent=`${e[11]}`,$=ue(),ge=V("span"),ge.textContent="to open in a new split",W=ue(),he=V("div"),he.innerHTML=`<span class="prompt-instruction-command">alt o</span>
|
||
<span>to open in the background</span>`,ke=ue(),Ie=V("div"),Ke=V("span"),R=dt(e[10]),F=ue(),H=V("span"),H.textContent="to create",te=ue(),de=V("div"),we=V("span"),tt=dt(e[9]),Kr=ue(),_t=V("span"),_t.textContent="to create in a new pane",X=ue(),$e=V("div"),$e.innerHTML=`<span class="prompt-instruction-command">alt \u21B5</span>
|
||
<span>to insert a link</span>`,Wr=ue(),cr=V("div"),cr.innerHTML=`<span class="prompt-instruction-command">ctrl g</span>
|
||
<span>to toggle excerpts</span>`,Zn=ue(),Pi=V("div"),Pi.innerHTML='<span class="prompt-instruction-command">esc</span><span>to close</span>',Z(u,"class","prompt-instruction"),Z(c,"class","prompt-instruction"),Z(f,"class","prompt-instruction-command"),Z(d,"class","prompt-instruction"),Z(m,"class","prompt-instruction"),Z(T,"class","prompt-instruction-command"),Z(I,"class","prompt-instruction"),Z(q,"class","prompt-instruction-command"),Z(P,"class","prompt-instruction"),Z(he,"class","prompt-instruction"),Z(Ke,"class","prompt-instruction-command"),Z(Ie,"class","prompt-instruction"),Z(we,"class","prompt-instruction-command"),Z(de,"class","prompt-instruction"),Z($e,"class","prompt-instruction"),Z(cr,"class","prompt-instruction"),Z(Pi,"class","prompt-instruction"),Z(a,"class","prompt-instructions")},m(me,Ye){Dt(t,me,Ye),ae(me,r,Ye),Pt&&Pt.m(me,Ye),ae(me,n,Ye),Dt(i,me,Ye),ae(me,s,Ye),ae(me,a,Ye),j(a,u),j(a,o),j(a,c),j(a,h),j(a,d),j(d,f),j(f,g),j(d,y),j(d,b),j(a,D),j(a,m),j(a,v),j(a,I),j(I,T),j(T,E),j(I,C),j(I,S),j(a,N),j(a,P),j(P,q),j(P,$),j(P,ge),j(a,W),j(a,he),j(a,ke),j(a,Ie),j(Ie,Ke),j(Ke,R),j(Ie,F),j(Ie,H),j(a,te),j(a,de),j(de,we),j(we,tt),j(de,Kr),j(de,_t),j(a,X),j(a,$e),j(a,Wr),j(a,cr),j(a,Zn),j(a,Pi),pn=!0},p(me,Ye){let Du={};Ye[0]&1&&(Du.plugin=me[0]),Ye[0]&4&&(Du.initialValue=me[2]),Ye[0]&1|Ye[1]&4096&&(Du.$$scope={dirty:Ye,ctx:me}),t.$set(Du),me[4]?Pt?Pt.p(me,Ye):(Pt=K_(me),Pt.c(),Pt.m(n.parentNode,n)):Pt&&(Pt.d(1),Pt=null);let Gh={};Ye[0]&47|Ye[1]&4096&&(Gh.$$scope={dirty:Ye,ctx:me}),i.$set(Gh),(!pn||Ye[0]&256)&&xr(g,me[8]),(!pn||Ye[0]&128)&&xr(E,me[7]),(!pn||Ye[0]&1024)&&xr(R,me[10]),(!pn||Ye[0]&512)&&xr(tt,me[9])},i(me){pn||(Ee(t.$$.fragment,me),Ee(i.$$.fragment,me),pn=!0)},o(me){Oe(t.$$.fragment,me),Oe(i.$$.fragment,me),pn=!1},d(me){e[19](null),Tt(t,me),me&&se(r),Pt&&Pt.d(me),me&&se(n),Tt(i,me),me&&se(s),me&&se(a)}}}function ux(e,t,r){let n,i;xu(e,gn,X=>r(18,i=X));let{modal:s}=t,{previousQuery:a}=t,{plugin:u}=t,o=0,c=0,h,d=[],f,g="",y=!0,b,D,m,v,I,T=_n()+" alt \u21B5";ta(async()=>{ce.enable("vault"),ce.on("vault",_e.Enter,$),ce.on("vault",_e.OpenInBackground,ge),ce.on("vault",_e.CreateNote,R),ce.on("vault",_e.OpenInNewPane,W),ce.on("vault",_e.InsertLink,F),ce.on("vault",_e.Tab,H),ce.on("vault",_e.ArrowUp,()=>te(-1)),ce.on("vault",_e.ArrowDown,()=>te(1)),ce.on("vault",_e.PrevSearchHistory,E),ce.on("vault",_e.NextSearchHistory,C),ce.on("vault",_e.OpenInNewLeaf,he),await u.notesIndexer.refreshIndex(),await P()}),ra(()=>{ce.disable("vault")});async function E(){let X=(await u.cacheManager.getSearchHistory()).filter($e=>$e);++c>=X.length&&(c=0),r(2,h=X[c]),b?.setInputValue(h??"")}async function C(){let X=(await u.cacheManager.getSearchHistory()).filter($e=>$e);--c<0&&(c=X.length?X.length-1:0),r(2,h=X[c]),b?.setInputValue(h??"")}let S=null;async function N(){r(5,y=!0),S&&(S.cancel(),S=null),f=new ui(h,{ignoreDiacritics:u.settings.ignoreDiacritics,ignoreArabicDiacritics:u.settings.ignoreArabicDiacritics}),S=(0,q_.cancelable)(new Promise(X=>{X(u.searchEngine.getSuggestions(f))})),r(3,d=await S),r(1,o=0),await de(),r(5,y=!1)}let P=Ea(N,0);function q(X){!n||(X?.ctrlKey?W():$(),s.close())}function $(){!n||(Ie(n),s.close())}function ge(){!n||Ie(n,!0)}function W(){!n||(Ie(n,!0),s.close())}function he(){!n||(Ie(n,!0,!0),s.close())}function ke(){h&&u.cacheManager.addToSearchHistory(h)}function Ie(X,$e=!1,Wr=!1){ke();let cr=X.matches?.[0]?.offset??0;ju(u.app,X,cr,$e,Wr)}async function Ke(X){await R()}async function R(X){if(h){try{await I0(u.app,h,X?.newLeaf)}catch($e){new gr.Notice($e.message);return}s.close()}}function F(){if(!n)return;let X=u.app.vault.getMarkdownFiles().find(Pi=>Pi.path===n.path),$e=u.app.workspace.getActiveFile(),Wr=u.app.workspace.getActiveViewOfType(gr.MarkdownView);if(!Wr?.editor){new gr.Notice("Omnisearch - Error - No active editor",3e3);return}let cr;X&&$e?cr=u.app.fileManager.generateMarkdownLink(X,$e.path):cr=`[[${n.basename}.${En(n.path)}]]`;let Zn=Wr.editor.getCursor();Wr.editor.replaceRange(cr,Zn,Zn),Zn.ch+=cr.length,Wr.editor.setCursor(Zn),s.close()}function H(){if(!(n&&(bn(n?.path)||!n?.matches.length)))if(ke(),s.close(),n){let X=u.app.vault.getAbstractFileByPath(n.path);X&&X instanceof gr.TFile&&new us(u,X,h).open()}else{let X=u.app.workspace.getActiveViewOfType(gr.MarkdownView);X?.file&&new us(u,X.file,h).open()}}function te(X){r(1,o=ku(o+X,d.length)),de()}async function de(){await mn(),n&&activeWindow.document.querySelector(`[data-result-id="${n.path}"]`)?.scrollIntoView({behavior:"auto",block:"nearest"})}function we(X){Yr[X?"unshift":"push"](()=>{b=X,r(6,b)})}let tt=X=>r(2,h=X.detail),Kr=(X,$e)=>r(1,o=X),_t=X=>{X.button==1&&W()};return e.$$set=X=>{"modal"in X&&r(16,s=X.modal),"previousQuery"in X&&r(17,a=X.previousQuery),"plugin"in X&&r(0,u=X.plugin)},e.$$.update=()=>{if(e.$$.dirty[0]&131076){e:r(2,h=h??a)}if(e.$$.dirty[0]&4){e:h?P():(r(5,y=!1),r(3,d=[]))}if(e.$$.dirty[0]&10){e:n=d[o]}if(e.$$.dirty[0]&1){e:u.settings.openInNewPane?(r(7,D="\u21B5"),r(8,m=_n()+" \u21B5"),r(9,v="shift \u21B5"),r(10,I=_n()+" shift \u21B5")):(r(7,D=_n()+" \u21B5"),r(8,m="\u21B5"),r(9,v=_n()+" shift \u21B5"),r(10,I="shift \u21B5"))}if(e.$$.dirty[0]&262144){e:switch(i){case ir.LoadingCache:r(4,g="Loading cache...");break;case ir.ReadingFiles:r(4,g="Reading files...");break;case ir.IndexingFiles:r(4,g="Indexing files...");break;case ir.WritingCache:P(),r(4,g="Updating cache...");break;default:P(),r(4,g="");break}}},[u,o,h,d,g,y,b,D,m,v,I,T,q,W,Ke,H,s,a,i,we,tt,Kr,_t]}var gr,q_,Q_,$_,X_,Z_=x(()=>{nr();gr=Xe(require("obsidian"));Ru();ml();gl();Or();ca();Kt();ya();F_();bo();q_=Xe(G_());Aa();Q_=e=>e.length<3;$_=class extends pt{constructor(t){super();bt(this,t,ux,ax,ot,{modal:16,previousQuery:17,plugin:0},null,[-1,-1])}},X_=$_});function ox(e){let t,r=e[0].textProcessor.highlightText(e[4],e[1].matches)+"";return{c(){t=V("div"),Z(t,"class","omnisearch-result__body")},m(n,i){ae(n,t,i),t.innerHTML=r},p(n,i){i&19&&r!==(r=n[0].textProcessor.highlightText(n[4],n[1].matches)+"")&&(t.innerHTML=r)},d(n){n&&se(t)}}}function cx(e){let t,r;return t=new _o({props:{id:e[2].toString(),selected:e[3],$$slots:{default:[ox]},$$scope:{ctx:e}}}),t.$on("auxclick",e[6]),t.$on("click",e[7]),t.$on("mousemove",e[8]),{c(){Lt(t.$$.fragment)},m(n,i){Dt(t,n,i),r=!0},p(n,[i]){let s={};i&4&&(s.id=n[2].toString()),i&8&&(s.selected=n[3]),i&531&&(s.$$scope={dirty:i,ctx:n}),t.$set(s)},i(n){r||(Ee(t.$$.fragment,n),r=!0)},o(n){Oe(t.$$.fragment,n),r=!1},d(n){Tt(t,n)}}}function lx(e,t,r){let n,{plugin:i}=t,{offset:s}=t,{note:a}=t,{index:u=0}=t,{selected:o=!1}=t;function c(f){Vt.call(this,e,f)}function h(f){Vt.call(this,e,f)}function d(f){Vt.call(this,e,f)}return e.$$set=f=>{"plugin"in f&&r(0,i=f.plugin),"offset"in f&&r(5,s=f.offset),"note"in f&&r(1,a=f.note),"index"in f&&r(2,u=f.index),"selected"in f&&r(3,o=f.selected)},e.$$.update=()=>{if(e.$$.dirty&35){e:r(4,n=i.textProcessor.makeExcerpt(a?.content??"",s))}},[i,a,u,o,n,s,c,h,d]}var J_,eT,tT=x(()=>{nr();$l();J_=class extends pt{constructor(t){super();bt(this,t,lx,cx,ot,{plugin:0,offset:5,note:1,index:2,selected:3})}},eT=J_});function rT(e,t,r){let n=e.slice();return n[20]=t[r],n[22]=r,n}function fx(e){let t,r,n;return{c(){t=V("button"),t.textContent="Vault search"},m(i,s){ae(i,t,s),r||(n=ht(t,"click",e[8]),r=!0)},p:qe,d(i){i&&se(t),r=!1,n()}}}function dx(e){let t,r=Ia.Platform.isMobile&&fx(e);return{c(){t=V("div"),r&&r.c(),Z(t,"class","omnisearch-input-container__buttons")},m(n,i){ae(n,t,i),r&&r.m(t,null)},p(n,i){Ia.Platform.isMobile&&r.p(n,i)},d(n){n&&se(t),r&&r.d()}}}function hx(e){let t;return{c(){t=V("div"),t.textContent="We found 0 result for your search here.",zt(t,"text-align","center")},m(r,n){ae(r,t,n)},p:qe,i:qe,o:qe,d(r){r&&se(t)}}}function px(e){let t,r,n=e[5],i=[];for(let a=0;a<n.length;a+=1)i[a]=nT(rT(e,n,a));let s=a=>Oe(i[a],1,1,()=>{i[a]=null});return{c(){for(let a=0;a<i.length;a+=1)i[a].c();t=Zs()},m(a,u){for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(a,u);ae(a,t,u),r=!0},p(a,u){if(u&241){n=a[5];let o;for(o=0;o<n.length;o+=1){let c=rT(a,n,o);i[o]?(i[o].p(c,u),Ee(i[o],1)):(i[o]=nT(c),i[o].c(),Ee(i[o],1),i[o].m(t.parentNode,t))}for(ei(),o=n.length;o<i.length;o+=1)s(o);ti()}},i(a){if(!r){for(let u=0;u<n.length;u+=1)Ee(i[u]);r=!0}},o(a){i=i.filter(Boolean);for(let u=0;u<i.length;u+=1)Oe(i[u]);r=!1},d(a){Nu(i,a),a&&se(t)}}}function nT(e){let t,r;function n(...i){return e[13](e[22],...i)}return t=new eT({props:{plugin:e[0],offset:e[20],note:e[4],index:e[22],selected:e[22]===e[6]}}),t.$on("mousemove",n),t.$on("click",e[14]),t.$on("auxclick",e[15]),{c(){Lt(t.$$.fragment)},m(i,s){Dt(t,i,s),r=!0},p(i,s){e=i;let a={};s&1&&(a.plugin=e[0]),s&32&&(a.offset=e[20]),s&16&&(a.note=e[4]),s&64&&(a.selected=e[22]===e[6]),t.$set(a)},i(i){r||(Ee(t.$$.fragment,i),r=!0)},o(i){Oe(t.$$.fragment,i),r=!1},d(i){Tt(t,i)}}}function mx(e){let t,r,n,i,s=[px,hx],a=[];function u(o,c){return o[5].length&&o[4]?0:1}return t=u(e,-1),r=a[t]=s[t](e),{c(){r.c(),n=Zs()},m(o,c){a[t].m(o,c),ae(o,n,c),i=!0},p(o,c){let h=t;t=u(o,c),t===h?a[t].p(o,c):(ei(),Oe(a[h],1,1,()=>{a[h]=null}),ti(),r=a[t],r?r.p(o,c):(r=a[t]=s[t](o),r.c()),Ee(r,1),r.m(n.parentNode,n))},i(o){i||(Ee(r),i=!0)},o(o){Oe(r),i=!1},d(o){a[t].d(o),o&&se(n)}}}function gx(e){let t;return{c(){t=V("span"),t.textContent="to close"},m(r,n){ae(r,t,n)},d(r){r&&se(t)}}}function _x(e){let t;return{c(){t=V("span"),t.textContent="to go back to Vault Search"},m(r,n){ae(r,t,n)},d(r){r&&se(t)}}}function Tx(e){let t,r,n,i,s,a,u,o,c,h,d,f,g,y,b,D,m,v,I,T;t=new Fu({props:{plugin:e[0],placeholder:"Omnisearch - File",initialValue:e[2],$$slots:{default:[dx]},$$scope:{ctx:e}}}),t.$on("input",e[12]),n=new Bu({props:{$$slots:{default:[mx]},$$scope:{ctx:e}}});function E(N,P){return N[1]?_x:gx}let C=E(e,-1),S=C(e);return{c(){Lt(t.$$.fragment),r=ue(),Lt(n.$$.fragment),i=ue(),s=V("div"),a=V("div"),a.innerHTML='<span class="prompt-instruction-command">\u2191\u2193</span><span>to navigate</span>',u=ue(),o=V("div"),o.innerHTML='<span class="prompt-instruction-command">\u21B5</span><span>to open</span>',c=ue(),h=V("div"),h.innerHTML=`<span class="prompt-instruction-command">tab</span>
|
||
<span>to switch to Vault Search</span>`,d=ue(),f=V("div"),g=V("span"),g.textContent="esc",y=ue(),S.c(),b=ue(),D=V("div"),m=V("span"),m.textContent=`${_n()} \u21B5`,v=ue(),I=V("span"),I.textContent="to open in a new pane",Z(a,"class","prompt-instruction"),Z(o,"class","prompt-instruction"),Z(h,"class","prompt-instruction"),Z(g,"class","prompt-instruction-command"),Z(f,"class","prompt-instruction"),Z(m,"class","prompt-instruction-command"),Z(D,"class","prompt-instruction"),Z(s,"class","prompt-instructions")},m(N,P){Dt(t,N,P),ae(N,r,P),Dt(n,N,P),ae(N,i,P),ae(N,s,P),j(s,a),j(s,u),j(s,o),j(s,c),j(s,h),j(s,d),j(s,f),j(f,g),j(f,y),S.m(f,null),j(s,b),j(s,D),j(D,m),j(D,v),j(D,I),T=!0},p(N,[P]){let q={};P&1&&(q.plugin=N[0]),P&4&&(q.initialValue=N[2]),P&8388608&&(q.$$scope={dirty:P,ctx:N}),t.$set(q);let $={};P&8388721&&($.$$scope={dirty:P,ctx:N}),n.$set($),C!==(C=E(N,P))&&(S.d(1),S=C(N),S&&(S.c(),S.m(f,null)))},i(N){T||(Ee(t.$$.fragment,N),Ee(n.$$.fragment,N),T=!0)},o(N){Oe(t.$$.fragment,N),Oe(n.$$.fragment,N),T=!1},d(N){Tt(t,N),N&&se(r),Tt(n,N),N&&se(i),N&&se(s),S.d()}}}function bx(e,t,r){let n=e.find(i=>i.offset>t);return n?e.filter(i=>i.offset>t&&i.offset<=n.offset+r):[]}function Ex(e,t,r){let{plugin:n}=t,{modal:i}=t,{parent:s=null}=t,{singleFilePath:a=""}=t,{previousQuery:u}=t,o,c=[],h=0,d,f;ta(()=>{ce.enable("infile"),ce.on("infile",_e.Enter,m),ce.on("infile",_e.OpenInNewPane,D),ce.on("infile",_e.ArrowUp,()=>y(-1)),ce.on("infile",_e.ArrowDown,()=>y(1)),ce.on("infile",_e.Tab,v)}),ra(()=>{ce.disable("infile")});function g(S){let N=[],P=-1,q=0;for(;++q<100;){let $=bx(S,P,na);if(!$.length)break;P=$.last().offset,N.push($)}return N}function y(S){r(6,h=ku(h+S,c.length)),b()}async function b(){await mn(),document.querySelector(`[data-result-id="${h}"]`)?.scrollIntoView({behavior:"auto",block:"nearest"})}async function D(){return m(!0)}async function m(S=!1){if(d){i.close(),s&&s.close();let N=n.textProcessor.stringsToRegex(d.foundWords);N.exec(d.content),await ju(n.app,d,N.lastIndex,S);let P=n.app.workspace.getActiveViewOfType(Ia.MarkdownView);if(!P)return;let q=c[h]??0,$=P.editor.offsetToPos(q);$.ch=0,P.editor.setCursor($),P.editor.scrollIntoView({from:{line:$.line-10,ch:0},to:{line:$.line+10,ch:0}})}}function v(){new Rn(n,o??u).open(),i.close()}let I=S=>r(3,o=S.detail),T=(S,N)=>r(6,h=S),E=S=>m(S.ctrlKey),C=S=>{S.button==1&&m(!0)};return e.$$set=S=>{"plugin"in S&&r(0,n=S.plugin),"modal"in S&&r(9,i=S.modal),"parent"in S&&r(1,s=S.parent),"singleFilePath"in S&&r(10,a=S.singleFilePath),"previousQuery"in S&&r(2,u=S.previousQuery)},e.$$.update=()=>{if(e.$$.dirty&4){e:r(3,o=u??"")}if(e.$$.dirty&3081){e:(async()=>{o&&(r(11,f=new ui(o,{ignoreDiacritics:n.settings.ignoreDiacritics})),r(4,d=(await n.searchEngine.getSuggestions(f,{singleFilePath:a}))[0]??null)),r(6,h=0),await b()})()}if(e.$$.dirty&2064){e:if(d){let S=g(d.matches),N=f.getExactTerms();N.length&&(S=S.filter(P=>N.every(q=>P.some($=>$.match.includes(q))))),r(5,c=S.map(P=>Math.round(P.first().offset)))}}},[n,s,u,o,d,c,h,m,v,i,a,f,I,T,E,C]}var Ia,iT,sT,aT=x(()=>{nr();ml();Or();Kt();Ru();Ia=Xe(require("obsidian"));gl();ya();tT();bo();ca();iT=class extends pt{constructor(t){super();bt(this,t,Ex,Tx,ot,{plugin:0,modal:9,parent:1,singleFilePath:10,previousQuery:2})}},sT=iT});var Ao,Jl,Rn,us,ya=x(()=>{Ao=Xe(require("obsidian"));Z_();aT();Or();Jl=class extends Ao.Modal{constructor(t){super(t.app);let r=t.settings;this.modalEl.replaceChildren(),this.modalEl.addClass("omnisearch-modal","prompt"),this.modalEl.removeClass("modal"),this.modalEl.tabIndex=-1,this.scope.register([],"ArrowDown",o=>{o.preventDefault(),ce.emit(_e.ArrowDown)}),this.scope.register([],"ArrowUp",o=>{o.preventDefault(),ce.emit(_e.ArrowUp)});for(let o of[{k:"J",dir:"down"},{k:"K",dir:"up"}])for(let c of["Ctrl","Mod"])this.scope.register([c],o.k,h=>{r.vimLikeNavigationShortcut&&ce.emit("arrow-"+o.dir)});for(let o of[{k:"N",dir:"down"},{k:"P",dir:"up"}])for(let c of["Ctrl","Mod"])this.scope.register([c],o.k,h=>{r.vimLikeNavigationShortcut&&ce.emit("arrow-"+o.dir)});let n,i,s,a,u=["Mod","Alt"];r.openInNewPane?(n=["Mod"],i=[],s=["Mod","Shift"],a=["Shift"]):(n=[],i=["Mod"],s=["Shift"],a=["Mod","Shift"]),this.scope.register(i,"Enter",o=>{o.preventDefault(),ce.emit(_e.OpenInNewPane)}),this.scope.register(u,"Enter",o=>{o.preventDefault(),ce.emit(_e.OpenInNewLeaf)}),this.scope.register(["Alt"],"Enter",o=>{o.preventDefault(),ce.emit(_e.InsertLink)}),this.scope.register(s,"Enter",o=>{o.preventDefault(),ce.emit(_e.CreateNote)}),this.scope.register(a,"Enter",o=>{o.preventDefault(),ce.emit(_e.CreateNote,{newLeaf:!0})}),this.scope.register(n,"Enter",o=>{cl()||(o.preventDefault(),ce.emit(_e.Enter))}),this.scope.register(["Ctrl"],"O",o=>{cl()||(o.preventDefault(),ce.emit(_e.OpenInBackground))}),this.scope.register([],"Tab",o=>{o.preventDefault(),ce.emit(_e.Tab)}),this.scope.register(["Alt"],"ArrowDown",o=>{o.preventDefault(),ce.emit(_e.NextSearchHistory)}),this.scope.register(["Alt"],"ArrowUp",o=>{o.preventDefault(),ce.emit(_e.PrevSearchHistory)}),this.scope.register(["Ctrl"],"G",o=>{ce.emit(Lu.ToggleExcerpts)})}},Rn=class extends Jl{constructor(t,r){super(t);let n=t.app.workspace.getActiveViewOfType(Ao.MarkdownView)?.editor.getSelection();t.cacheManager.getSearchHistory().then(i=>{let s=t.settings.showPreviousQueryResults?i[0]:null,a=new X_({target:this.modalEl,props:{plugin:t,modal:this,previousQuery:r||n||s||""}});this.onClose=()=>{a.$destroy()}})}},us=class extends Jl{constructor(t,r,n="",i){super(t);let s=new sT({target:this.modalEl,props:{plugin:t,modal:this,singleFilePath:r.path,parent:i,previousQuery:n}});i&&i.containerEl.toggleVisibility(!1),this.onClose=()=>{i&&i.containerEl.toggleVisibility(!0),s.$destroy()}}}});function Ax(e,t){return t.map(r=>{let{score:n,path:i,basename:s,foundWords:a,matches:u,content:o}=r,c=e.textProcessor.makeExcerpt(o,u[0]?.offset??-1);return{score:n,vault:e.app.vault.getName(),path:i,basename:s,foundWords:a,matches:u.map(d=>({match:d.match,offset:d.offset})),excerpt:c}})}function oT(){uT=!0,yo.forEach(e=>e())}function lT(e){if(cT)return;cT=!0,e.registerObsidianProtocolHandler("omnisearch",r=>{new Rn(e,r.query).open()});let t=ef(e);globalThis.omnisearch=t,e.app.plugins.plugins.omnisearch.api=t}function ef(e){return{async search(t){let r=new ui(t,{ignoreDiacritics:e.settings.ignoreDiacritics,ignoreArabicDiacritics:e.settings.ignoreArabicDiacritics}),n=await e.searchEngine.getSuggestions(r);return Ax(e,n)},registerOnIndexed(t){yo.push(t),uT&&t()},unregisterOnIndexed(t){yo=yo.filter(r=>r!==t)},refreshIndex:e.notesIndexer.refreshIndex}}var uT,yo,cT,tf=x(()=>{bo();ya();uT=!1,yo=[];cT=!1});var Nb=U(Re=>{"use strict";function Xo(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}Re.defaults=Xo();function mb(e){Re.defaults=e}var gb=/[&<>"']/,t2=new RegExp(gb.source,"g"),_b=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,r2=new RegExp(_b.source,"g"),n2={"&":"&","<":"<",">":">",'"':""","'":"'"},Tb=e=>n2[e];function $t(e,t){if(t){if(gb.test(e))return e.replace(t2,Tb)}else if(_b.test(e))return e.replace(r2,Tb);return e}var i2=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function s2(e){return e.replace(i2,(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 a2=/(^|[^\[])\^/g;function Se(e,t){let r=typeof e=="string"?e:e.source;t=t||"";let n={replace:(i,s)=>{let a=typeof s=="string"?s:s.source;return a=a.replace(a2,"$1"),r=r.replace(i,a),n},getRegex:()=>new RegExp(r,t)};return n}function bb(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}var za={exec:()=>null};function Eb(e,t){let r=e.replace(/\|/g,(s,a,u)=>{let o=!1,c=a;for(;--c>=0&&u[c]==="\\";)o=!o;return o?"|":" |"}),n=r.split(/ \|/),i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(/\\\|/g,"|");return n}function Zo(e,t,r){let n=e.length;if(n===0)return"";let i=0;for(;i<n;){let s=e.charAt(n-i-1);if(s===t&&!r)i++;else if(s!==t&&r)i++;else break}return e.slice(0,n-i)}function u2(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 Ab(e,t,r,n){let i=t.href,s=t.title?$t(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){n.state.inLink=!0;let u={type:"link",raw:r,href:i,title:s,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,u}return{type:"image",raw:r,href:i,title:s,text:$t(a)}}function o2(e,t){let r=e.match(/^(\s+)(?:```)/);if(r===null)return t;let n=r[1];return t.split(`
|
||
`).map(i=>{let s=i.match(/^\s+/);if(s===null)return i;let[a]=s;return a.length>=n.length?i.slice(n.length):i}).join(`
|
||
`)}var Es=class{options;rules;lexer;constructor(t){this.options=t||Re.defaults}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let n=r[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Zo(n,`
|
||
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let n=r[0],i=o2(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=Zo(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=Zo(n.replace(/^ *>[ \t]?/gm,""),`
|
||
`);let i=this.lexer.state.top;this.lexer.state.top=!0;let s=this.lexer.blockTokens(n);return this.lexer.state.top=i,{type:"blockquote",raw:r[0],tokens:s,text:n}}}list(t){let r=this.rules.block.list.exec(t);if(r){let n=r[1].trim(),i=n.length>1,s={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");let a=new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),u="",o="",c=!1;for(;t;){let h=!1;if(!(r=a.exec(t))||this.rules.block.hr.test(t))break;u=r[0],t=t.substring(u.length);let d=r[2].split(`
|
||
`,1)[0].replace(/^\t+/,m=>" ".repeat(3*m.length)),f=t.split(`
|
||
`,1)[0],g=0;this.options.pedantic?(g=2,o=d.trimStart()):(g=r[2].search(/[^ ]/),g=g>4?1:g,o=d.slice(g),g+=r[1].length);let y=!1;if(!d&&/^ *$/.test(f)&&(u+=f+`
|
||
`,t=t.substring(f.length+1),h=!0),!h){let m=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),v=new RegExp(`^ {0,${Math.min(3,g-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),I=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:\`\`\`|~~~)`),T=new RegExp(`^ {0,${Math.min(3,g-1)}}#`);for(;t;){let E=t.split(`
|
||
`,1)[0];if(f=E,this.options.pedantic&&(f=f.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),I.test(f)||T.test(f)||m.test(f)||v.test(t))break;if(f.search(/[^ ]/)>=g||!f.trim())o+=`
|
||
`+f.slice(g);else{if(y||d.search(/[^ ]/)>=4||I.test(d)||T.test(d)||v.test(d))break;o+=`
|
||
`+f}!y&&!f.trim()&&(y=!0),u+=E+`
|
||
`,t=t.substring(E.length+1),d=f.slice(g)}}s.loose||(c?s.loose=!0:/\n *\n *$/.test(u)&&(c=!0));let b=null,D;this.options.gfm&&(b=/^\[[ xX]\] /.exec(o),b&&(D=b[0]!=="[ ] ",o=o.replace(/^\[[ xX]\] +/,""))),s.items.push({type:"list_item",raw:u,task:!!b,checked:D,loose:!1,text:o,tokens:[]}),s.raw+=u}s.items[s.items.length-1].raw=u.trimEnd(),s.items[s.items.length-1].text=o.trimEnd(),s.raw=s.raw.trimEnd();for(let h=0;h<s.items.length;h++)if(this.lexer.state.top=!1,s.items[h].tokens=this.lexer.blockTokens(s.items[h].text,[]),!s.loose){let d=s.items[h].tokens.filter(g=>g.type==="space"),f=d.length>0&&d.some(g=>/\n.*\n/.test(g.raw));s.loose=f}if(s.loose)for(let h=0;h<s.items.length;h++)s.items[h].loose=!0;return s}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let n=r[1].toLowerCase().replace(/\s+/g," "),i=r[2]?r[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:i,title:s}}}table(t){let r=this.rules.block.table.exec(t);if(!r||!/[:|]/.test(r[2]))return;let n=Eb(r[1]),i=r[2].replace(/^\||\| *$/g,"").split("|"),s=r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split(`
|
||
`):[],a={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let u of i)/^ *-+: *$/.test(u)?a.align.push("right"):/^ *:-+: *$/.test(u)?a.align.push("center"):/^ *:-+ *$/.test(u)?a.align.push("left"):a.align.push(null);for(let u of n)a.header.push({text:u,tokens:this.lexer.inline(u)});for(let u of s)a.rows.push(Eb(u,a.header.length).map(o=>({text:o,tokens:this.lexer.inline(o)})));return a}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let n=r[1].charAt(r[1].length-1)===`
|
||
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:$t(r[1])}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&/^<a /i.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let n=r[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;let a=Zo(n.slice(0,-1),"\\");if((n.length-a.length)%2==0)return}else{let a=u2(r[2],"()");if(a>-1){let o=(r[0].indexOf("!")===0?5:4)+r[1].length+a;r[2]=r[2].substring(0,a),r[0]=r[0].substring(0,o).trim(),r[3]=""}}let i=r[2],s="";if(this.options.pedantic){let a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);a&&(i=a[1],s=a[3])}else s=r[3]?r[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/>$/.test(n)?i=i.slice(1):i=i.slice(1,-1)),Ab(r,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer)}}reflink(t,r){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let i=(n[2]||n[1]).replace(/\s+/g," "),s=r[i.toLowerCase()];if(!s){let a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return Ab(n,s,n[0],this.lexer)}}emStrong(t,r,n=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!n||this.rules.inline.punctuation.exec(n)){let a=[...i[0]].length-1,u,o,c=a,h=0,d=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,r=r.slice(-1*t.length+a);(i=d.exec(r))!=null;){if(u=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!u)continue;if(o=[...u].length,i[3]||i[4]){c+=o;continue}else if((i[5]||i[6])&&a%3&&!((a+o)%3)){h+=o;continue}if(c-=o,c>0)continue;o=Math.min(o,o+c+h);let f=[...i[0]][0].length,g=t.slice(0,a+i.index+f+o);if(Math.min(a,o)%2){let b=g.slice(1,-1);return{type:"em",raw:g,text:b,tokens:this.lexer.inlineTokens(b)}}let y=g.slice(2,-2);return{type:"strong",raw:g,text:y,tokens:this.lexer.inlineTokens(y)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(/\n/g," "),i=/[^ ]/.test(n),s=/^ /.test(n)&&/ $/.test(n);return i&&s&&(n=n.substring(1,n.length-1)),n=$t(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=$t(r[1]),i="mailto:"+n):(n=$t(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=$t(r[0]),i="mailto:"+n;else{let s;do s=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(s!==r[0]);n=$t(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=$t(r[0]),{type:"text",raw:r[0],text:n}}}},c2=/^(?: *(?:\n|$))+/,l2=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,f2=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Va=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,d2=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,yb=/(?:[*+-]|\d{1,9}[.)])/,Ib=Se(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,yb).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(),ad=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,h2=/^[^\n]+/,ud=/(?!\s*\])(?:\\.|[^\[\]\\])+/,p2=Se(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",ud).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),m2=Se(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,yb).getRegex(),Jo="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",od=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,g2=Se("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",od).replace("tag",Jo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),vb=Se(ad).replace("hr",Va).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",Jo).getRegex(),_2=Se(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",vb).getRegex(),cd={blockquote:_2,code:l2,def:p2,fences:f2,heading:d2,hr:Va,html:g2,lheading:Ib,list:m2,newline:c2,paragraph:vb,table:za,text:h2},Cb=Se("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Va).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",Jo).getRegex(),T2=Fe(J({},cd),{table:Cb,paragraph:Se(ad).replace("hr",Va).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Cb).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",Jo).getRegex()}),b2=Fe(J({},cd),{html:Se(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",od).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:za,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Se(ad).replace("hr",Va).replace("heading",` *#{1,6} *[^
|
||
]`).replace("lheading",Ib).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),Db=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,E2=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Sb=/^( {2,}|\\)\n(?!\s*$)/,A2=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ka="\\p{P}\\p{S}",y2=Se(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Ka).getRegex(),I2=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,v2=Se(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Ka).getRegex(),C2=Se("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Ka).getRegex(),D2=Se("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Ka).getRegex(),S2=Se(/\\([punct])/,"gu").replace(/punct/g,Ka).getRegex(),x2=Se(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),O2=Se(od).replace("(?:-->|$)","-->").getRegex(),N2=Se("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",O2).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ec=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,w2=Se(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",ec).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),xb=Se(/^!?\[(label)\]\[(ref)\]/).replace("label",ec).replace("ref",ud).getRegex(),Ob=Se(/^!?\[(ref)\](?:\[\])?/).replace("ref",ud).getRegex(),R2=Se("reflink|nolink(?!\\()","g").replace("reflink",xb).replace("nolink",Ob).getRegex(),ld={_backpedal:za,anyPunctuation:S2,autolink:x2,blockSkip:I2,br:Sb,code:E2,del:za,emStrongLDelim:v2,emStrongRDelimAst:C2,emStrongRDelimUnd:D2,escape:Db,link:w2,nolink:Ob,punctuation:y2,reflink:xb,reflinkSearch:R2,tag:N2,text:A2,url:za},P2=Fe(J({},ld),{link:Se(/^!?\[(label)\]\((.*?)\)/).replace("label",ec).getRegex(),reflink:Se(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ec).getRegex()}),fd=Fe(J({},ld),{escape:Se(Db).replace("])","~|])").getRegex(),url:Se(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),L2=Fe(J({},fd),{br:Se(Sb).replace("{2,}","*").getRegex(),text:Se(fd.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),tc={normal:cd,gfm:T2,pedantic:b2},Wa={normal:ld,gfm:fd,breaks:L2,pedantic:P2},ar=class{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Re.defaults,this.options.tokenizer=this.options.tokenizer||new Es,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={block:tc.normal,inline:Wa.normal};this.options.pedantic?(r.block=tc.pedantic,r.inline=Wa.pedantic):this.options.gfm&&(r.block=tc.gfm,this.options.breaks?r.inline=Wa.breaks:r.inline=Wa.gfm),this.tokenizer.rules=r}static get rules(){return{block:tc,inline:Wa}}static lex(t,r){return new ar(r).lex(t)}static lexInline(t,r){return new ar(r).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
|
||
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(u,o,c)=>o+" ".repeat(c.length));let n,i,s,a;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(u=>(n=u.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length),n.raw.length===1&&r.length>0?r[r.length-1].raw+=`
|
||
`:r.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length),i=r[r.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
|
||
`+n.raw,i.text+=`
|
||
`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):r.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length),i=r[r.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
|
||
`+n.raw,i.text+=`
|
||
`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(s=t,this.options.extensions&&this.options.extensions.startBlock){let u=1/0,o=t.slice(1),c;this.options.extensions.startBlock.forEach(h=>{c=h.call({lexer:this},o),typeof c=="number"&&c>=0&&(u=Math.min(u,c))}),u<1/0&&u>=0&&(s=t.substring(0,u+1))}if(this.state.top&&(n=this.tokenizer.paragraph(s))){i=r[r.length-1],a&&i.type==="paragraph"?(i.raw+=`
|
||
`+n.raw,i.text+=`
|
||
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):r.push(n),a=s.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length),i=r[r.length-1],i&&i.type==="text"?(i.raw+=`
|
||
`+n.raw,i.text+=`
|
||
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):r.push(n);continue}if(t){let u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let n,i,s,a=t,u,o,c;if(this.tokens.links){let h=Object.keys(this.tokens.links);if(h.length>0)for(;(u=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)h.includes(u[0].slice(u[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,u.index)+"["+"a".repeat(u[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(u=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,u.index)+"["+"a".repeat(u[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(u=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,u.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(o||(c=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(h=>(n=h.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),i=r[r.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length),i=r[r.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(n=this.tokenizer.emStrong(t,a,c)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.codespan(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.br(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.del(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.autolink(t)){t=t.substring(n.raw.length),r.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(t))){t=t.substring(n.raw.length),r.push(n);continue}if(s=t,this.options.extensions&&this.options.extensions.startInline){let h=1/0,d=t.slice(1),f;this.options.extensions.startInline.forEach(g=>{f=g.call({lexer:this},d),typeof f=="number"&&f>=0&&(h=Math.min(h,f))}),h<1/0&&h>=0&&(s=t.substring(0,h+1))}if(n=this.tokenizer.inlineText(s)){t=t.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(c=n.raw.slice(-1)),o=!0,i=r[r.length-1],i&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(t){let h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return r}},As=class{options;constructor(t){this.options=t||Re.defaults}code(t,r,n){let i=(r||"").match(/^\S*/)?.[0];return t=t.replace(/\n$/,"")+`
|
||
`,i?'<pre><code class="language-'+$t(i)+'">'+(n?t:$t(t,!0))+`</code></pre>
|
||
`:"<pre><code>"+(n?t:$t(t,!0))+`</code></pre>
|
||
`}blockquote(t){return`<blockquote>
|
||
${t}</blockquote>
|
||
`}html(t,r){return t}heading(t,r,n){return`<h${r}>${t}</h${r}>
|
||
`}hr(){return`<hr>
|
||
`}list(t,r,n){let i=r?"ol":"ul",s=r&&n!==1?' start="'+n+'"':"";return"<"+i+s+`>
|
||
`+t+"</"+i+`>
|
||
`}listitem(t,r,n){return`<li>${t}</li>
|
||
`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(t){return`<p>${t}</p>
|
||
`}table(t,r){return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
||
<thead>
|
||
`+t+`</thead>
|
||
`+r+`</table>
|
||
`}tablerow(t){return`<tr>
|
||
${t}</tr>
|
||
`}tablecell(t,r){let n=r.header?"th":"td";return(r.align?`<${n} align="${r.align}">`:`<${n}>`)+t+`</${n}>
|
||
`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return"<br>"}del(t){return`<del>${t}</del>`}link(t,r,n){let i=bb(t);if(i===null)return n;t=i;let s='<a href="'+t+'"';return r&&(s+=' title="'+r+'"'),s+=">"+n+"</a>",s}image(t,r,n){let i=bb(t);if(i===null)return n;t=i;let s=`<img src="${t}" alt="${n}"`;return r&&(s+=` title="${r}"`),s+=">",s}text(t){return t}},Ya=class{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,r,n){return""+n}image(t,r,n){return""+n}br(){return""}},ur=class{options;renderer;textRenderer;constructor(t){this.options=t||Re.defaults,this.options.renderer=this.options.renderer||new As,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ya}static parse(t,r){return new ur(r).parse(t)}static parseInline(t,r){return new ur(r).parseInline(t)}parse(t,r=!0){let n="";for(let i=0;i<t.length;i++){let s=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){let a=s,u=this.options.extensions.renderers[a.type].call({parser:this},a);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(a.type)){n+=u||"";continue}}switch(s.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{let a=s;n+=this.renderer.heading(this.parseInline(a.tokens),a.depth,s2(this.parseInline(a.tokens,this.textRenderer)));continue}case"code":{let a=s;n+=this.renderer.code(a.text,a.lang,!!a.escaped);continue}case"table":{let a=s,u="",o="";for(let h=0;h<a.header.length;h++)o+=this.renderer.tablecell(this.parseInline(a.header[h].tokens),{header:!0,align:a.align[h]});u+=this.renderer.tablerow(o);let c="";for(let h=0;h<a.rows.length;h++){let d=a.rows[h];o="";for(let f=0;f<d.length;f++)o+=this.renderer.tablecell(this.parseInline(d[f].tokens),{header:!1,align:a.align[f]});c+=this.renderer.tablerow(o)}n+=this.renderer.table(u,c);continue}case"blockquote":{let a=s,u=this.parse(a.tokens);n+=this.renderer.blockquote(u);continue}case"list":{let a=s,u=a.ordered,o=a.start,c=a.loose,h="";for(let d=0;d<a.items.length;d++){let f=a.items[d],g=f.checked,y=f.task,b="";if(f.task){let D=this.renderer.checkbox(!!g);c?f.tokens.length>0&&f.tokens[0].type==="paragraph"?(f.tokens[0].text=D+" "+f.tokens[0].text,f.tokens[0].tokens&&f.tokens[0].tokens.length>0&&f.tokens[0].tokens[0].type==="text"&&(f.tokens[0].tokens[0].text=D+" "+f.tokens[0].tokens[0].text)):f.tokens.unshift({type:"text",text:D+" "}):b+=D+" "}b+=this.parse(f.tokens,c),h+=this.renderer.listitem(b,y,!!g)}n+=this.renderer.list(h,u,o);continue}case"html":{let a=s;n+=this.renderer.html(a.text,a.block);continue}case"paragraph":{let a=s;n+=this.renderer.paragraph(this.parseInline(a.tokens));continue}case"text":{let a=s,u=a.tokens?this.parseInline(a.tokens):a.text;for(;i+1<t.length&&t[i+1].type==="text";)a=t[++i],u+=`
|
||
`+(a.tokens?this.parseInline(a.tokens):a.text);n+=r?this.renderer.paragraph(u):u;continue}default:{let a='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}parseInline(t,r){r=r||this.renderer;let n="";for(let i=0;i<t.length;i++){let s=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){let a=this.options.extensions.renderers[s.type].call({parser:this},s);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){n+=a||"";continue}}switch(s.type){case"escape":{let a=s;n+=r.text(a.text);break}case"html":{let a=s;n+=r.html(a.text);break}case"link":{let a=s;n+=r.link(a.href,a.title,this.parseInline(a.tokens,r));break}case"image":{let a=s;n+=r.image(a.href,a.title,a.text);break}case"strong":{let a=s;n+=r.strong(this.parseInline(a.tokens,r));break}case"em":{let a=s;n+=r.em(this.parseInline(a.tokens,r));break}case"codespan":{let a=s;n+=r.codespan(a.text);break}case"br":{n+=r.br();break}case"del":{let a=s;n+=r.del(this.parseInline(a.tokens,r));break}case"text":{let a=s;n+=r.text(a.text);break}default:{let a='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}},mi=class{options;constructor(t){this.options=t||Re.defaults}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}};Wh(mi,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var dd=class{defaults=Xo();options=this.setOptions;parse=this.#e(ar.lex,ur.parse);parseInline=this.#e(ar.lexInline,ur.parseInline);Parser=ur;Renderer=As;TextRenderer=Ya;Lexer=ar;Tokenizer=Es;Hooks=mi;constructor(...t){this.use(...t)}walkTokens(t,r){let n=[];for(let i of t)switch(n=n.concat(r.call(this,i)),i.type){case"table":{let s=i;for(let a of s.header)n=n.concat(this.walkTokens(a.tokens,r));for(let a of s.rows)for(let u of a)n=n.concat(this.walkTokens(u.tokens,r));break}case"list":{let s=i;n=n.concat(this.walkTokens(s.items,r));break}default:{let s=i;this.defaults.extensions?.childTokens?.[s.type]?this.defaults.extensions.childTokens[s.type].forEach(a=>{let u=s[a].flat(1/0);n=n.concat(this.walkTokens(u,r))}):s.tokens&&(n=n.concat(this.walkTokens(s.tokens,r)))}}return n}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let i=J({},n);if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let a=r.renderers[s.name];a?r.renderers[s.name]=function(...u){let o=s.renderer.apply(this,u);return o===!1&&(o=a.apply(this,u)),o}:r.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=r[s.level];a?a.unshift(s.tokenizer):r[s.level]=[s.tokenizer],s.start&&(s.level==="block"?r.startBlock?r.startBlock.push(s.start):r.startBlock=[s.start]:s.level==="inline"&&(r.startInline?r.startInline.push(s.start):r.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(r.childTokens[s.name]=s.childTokens)}),i.extensions=r),n.renderer){let s=this.defaults.renderer||new As(this.defaults);for(let a in n.renderer){if(!(a in s))throw new Error(`renderer '${a}' does not exist`);if(a==="options")continue;let u=a,o=n.renderer[u],c=s[u];s[u]=(...h)=>{let d=o.apply(s,h);return d===!1&&(d=c.apply(s,h)),d||""}}i.renderer=s}if(n.tokenizer){let s=this.defaults.tokenizer||new Es(this.defaults);for(let a in n.tokenizer){if(!(a in s))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let u=a,o=n.tokenizer[u],c=s[u];s[u]=(...h)=>{let d=o.apply(s,h);return d===!1&&(d=c.apply(s,h)),d}}i.tokenizer=s}if(n.hooks){let s=this.defaults.hooks||new mi;for(let a in n.hooks){if(!(a in s))throw new Error(`hook '${a}' does not exist`);if(a==="options")continue;let u=a,o=n.hooks[u],c=s[u];mi.passThroughHooks.has(a)?s[u]=h=>{if(this.defaults.async)return Promise.resolve(o.call(s,h)).then(f=>c.call(s,f));let d=o.call(s,h);return c.call(s,d)}:s[u]=(...h)=>{let d=o.apply(s,h);return d===!1&&(d=c.apply(s,h)),d}}i.hooks=s}if(n.walkTokens){let s=this.defaults.walkTokens,a=n.walkTokens;i.walkTokens=function(u){let o=[];return o.push(a.call(this,u)),s&&(o=o.concat(s.call(this,u))),o}}this.defaults=J(J({},this.defaults),i)}),this}setOptions(t){return this.defaults=J(J({},this.defaults),t),this}lexer(t,r){return ar.lex(t,r??this.defaults)}parser(t,r){return ur.parse(t,r??this.defaults)}#e(t,r){return(n,i)=>{let s=J({},i),a=J(J({},this.defaults),s);this.defaults.async===!0&&s.async===!1&&(a.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),a.async=!0);let u=this.#t(!!a.silent,!!a.async);if(typeof n=="undefined"||n===null)return u(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(a.hooks&&(a.hooks.options=a),a.async)return Promise.resolve(a.hooks?a.hooks.preprocess(n):n).then(o=>t(o,a)).then(o=>a.hooks?a.hooks.processAllTokens(o):o).then(o=>a.walkTokens?Promise.all(this.walkTokens(o,a.walkTokens)).then(()=>o):o).then(o=>r(o,a)).then(o=>a.hooks?a.hooks.postprocess(o):o).catch(u);try{a.hooks&&(n=a.hooks.preprocess(n));let o=t(n,a);a.hooks&&(o=a.hooks.processAllTokens(o)),a.walkTokens&&this.walkTokens(o,a.walkTokens);let c=r(o,a);return a.hooks&&(c=a.hooks.postprocess(c)),c}catch(o){return u(o)}}}#t(t,r){return n=>{if(n.message+=`
|
||
Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error occurred:</p><pre>"+$t(n.message+"",!0)+"</pre>";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}},gi=new dd;function Ce(e,t){return gi.parse(e,t)}Ce.options=Ce.setOptions=function(e){return gi.setOptions(e),Ce.defaults=gi.defaults,mb(Ce.defaults),Ce};Ce.getDefaults=Xo;Ce.defaults=Re.defaults;Ce.use=function(...e){return gi.use(...e),Ce.defaults=gi.defaults,mb(Ce.defaults),Ce};Ce.walkTokens=function(e,t){return gi.walkTokens(e,t)};Ce.parseInline=gi.parseInline;Ce.Parser=ur;Ce.parser=ur.parse;Ce.Renderer=As;Ce.TextRenderer=Ya;Ce.Lexer=ar;Ce.lexer=ar.lex;Ce.Tokenizer=Es;Ce.Hooks=mi;Ce.parse=Ce;var M2=Ce.options,k2=Ce.setOptions,F2=Ce.use,B2=Ce.walkTokens,j2=Ce.parseInline,H2=Ce,U2=ur.parse,G2=ar.lex;Re.Hooks=mi;Re.Lexer=ar;Re.Marked=dd;Re.Parser=ur;Re.Renderer=As;Re.TextRenderer=Ya;Re.Tokenizer=Es;Re.getDefaults=Xo;Re.lexer=G2;Re.marked=Ce;Re.options=M2;Re.parse=H2;Re.parseInline=j2;Re.parser=U2;Re.setOptions=k2;Re.use=F2;Re.walkTokens=B2});var Rb=U(wb=>{"use strict";Object.defineProperty(wb,"__esModule",{value:!0})});var hd=U(_i=>{"use strict";var rc=_i&&_i.__assign||function(){return rc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},rc.apply(this,arguments)};Object.defineProperty(_i,"__esModule",{value:!0});_i.flatten=void 0;var q2={xml:!1,decodeEntities:!0};_i.default=q2;var Pb={_useHtmlParser2:!0,xmlMode:!0};function z2(e){return(e==null?void 0:e.xml)?typeof e.xml=="boolean"?Pb:rc(rc({},Pb),e.xml):e??void 0}_i.flatten=z2});var ys=U(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.Doctype=He.CDATA=He.Tag=He.Style=He.Script=He.Comment=He.Directive=He.Text=He.Root=He.isTag=He.ElementType=void 0;var Xt;(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"})(Xt=He.ElementType||(He.ElementType={}));function V2(e){return e.type===Xt.Tag||e.type===Xt.Script||e.type===Xt.Style}He.isTag=V2;He.Root=Xt.Root;He.Text=Xt.Text;He.Directive=Xt.Directive;He.Comment=Xt.Comment;He.Script=Xt.Script;He.Style=Xt.Style;He.Tag=Xt.Tag;He.CDATA=Xt.CDATA;He.Doctype=Xt.Doctype});var _d=U(le=>{"use strict";var jn=le&&le.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Qa=le&&le.__assign||function(){return Qa=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Qa.apply(this,arguments)};Object.defineProperty(le,"__esModule",{value:!0});le.cloneNode=le.hasChildren=le.isDocument=le.isDirective=le.isComment=le.isText=le.isCDATA=le.isTag=le.Element=le.Document=le.CDATA=le.NodeWithChildren=le.ProcessingInstruction=le.Comment=le.Text=le.DataNode=le.Node=void 0;var kt=ys(),pd=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),md(this,t)},e}();le.Node=pd;var nc=function(e){jn(t,e);function t(r){var n=e.call(this)||this;return n.data=r,n}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),t}(pd);le.DataNode=nc;var Lb=function(e){jn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=kt.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(nc);le.Text=Lb;var Mb=function(e){jn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=kt.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(nc);le.Comment=Mb;var kb=function(e){jn(t,e);function t(r,n){var i=e.call(this,n)||this;return i.name=r,i.type=kt.ElementType.Directive,i}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(nc);le.ProcessingInstruction=kb;var ic=function(e){jn(t,e);function t(r){var n=e.call(this)||this;return n.children=r,n}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t}(pd);le.NodeWithChildren=ic;var Fb=function(e){jn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=kt.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(ic);le.CDATA=Fb;var Bb=function(e){jn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=kt.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(ic);le.Document=Bb;var jb=function(e){jn(t,e);function t(r,n,i,s){i===void 0&&(i=[]),s===void 0&&(s=r==="script"?kt.ElementType.Script:r==="style"?kt.ElementType.Style:kt.ElementType.Tag);var a=e.call(this,i)||this;return a.name=r,a.attribs=n,a.type=s,a}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var i,s;return{name:n,value:r.attribs[n],namespace:(i=r["x-attribsNamespace"])===null||i===void 0?void 0:i[n],prefix:(s=r["x-attribsPrefix"])===null||s===void 0?void 0:s[n]}})},enumerable:!1,configurable:!0}),t}(ic);le.Element=jb;function Hb(e){return(0,kt.isTag)(e)}le.isTag=Hb;function Ub(e){return e.type===kt.ElementType.CDATA}le.isCDATA=Ub;function Gb(e){return e.type===kt.ElementType.Text}le.isText=Gb;function qb(e){return e.type===kt.ElementType.Comment}le.isComment=qb;function zb(e){return e.type===kt.ElementType.Directive}le.isDirective=zb;function Vb(e){return e.type===kt.ElementType.Root}le.isDocument=Vb;function K2(e){return Object.prototype.hasOwnProperty.call(e,"children")}le.hasChildren=K2;function md(e,t){t===void 0&&(t=!1);var r;if(Gb(e))r=new Lb(e.data);else if(qb(e))r=new Mb(e.data);else if(Hb(e)){var n=t?gd(e.children):[],i=new jb(e.name,Qa({},e.attribs),n);n.forEach(function(o){return o.parent=i}),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=Qa({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=Qa({},e["x-attribsPrefix"])),r=i}else if(Ub(e)){var n=t?gd(e.children):[],s=new Fb(n);n.forEach(function(c){return c.parent=s}),r=s}else if(Vb(e)){var n=t?gd(e.children):[],a=new Bb(n);n.forEach(function(c){return c.parent=a}),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),r=a}else if(zb(e)){var u=new kb(e.name,e.data);e["x-name"]!=null&&(u["x-name"]=e["x-name"],u["x-publicId"]=e["x-publicId"],u["x-systemId"]=e["x-systemId"]),r=u}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}le.cloneNode=md;function gd(e){for(var t=e.map(function(n){return md(n,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}});var yt=U(Rr=>{"use strict";var W2=Rr&&Rr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Y2=Rr&&Rr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&W2(t,e,r)};Object.defineProperty(Rr,"__esModule",{value:!0});Rr.DomHandler=void 0;var Td=ys(),Hn=_d();Y2(_d(),Rr);var Kb={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},Wb=function(){function e(t,r,n){this.dom=[],this.root=new Hn.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(n=r,r=Kb),typeof t=="object"&&(r=t,t=void 0),this.callback=t??null,this.options=r??Kb,this.elementCB=n??null}return e.prototype.onparserinit=function(t){this.parser=t},e.prototype.onreset=function(){this.dom=[],this.root=new Hn.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(t){this.handleCallback(t)},e.prototype.onclosetag=function(){this.lastNode=null;var t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)},e.prototype.onopentag=function(t,r){var n=this.options.xmlMode?Td.ElementType.Tag:void 0,i=new Hn.Element(t,r,void 0,n);this.addNode(i),this.tagStack.push(i)},e.prototype.ontext=function(t){var r=this.lastNode;if(r&&r.type===Td.ElementType.Text)r.data+=t,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{var n=new Hn.Text(t);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===Td.ElementType.Comment){this.lastNode.data+=t;return}var r=new Hn.Comment(t);this.addNode(r),this.lastNode=r},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var t=new Hn.Text(""),r=new Hn.CDATA([t]);this.addNode(r),t.parent=r,this.lastNode=t},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(t,r){var n=new Hn.ProcessingInstruction(t,r);this.addNode(n)},e.prototype.handleCallback=function(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t},e.prototype.addNode=function(t){var r=this.tagStack[this.tagStack.length-1],n=r.children[r.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),r.children.push(t),n&&(t.prev=n,n.next=t),t.parent=r,this.lastNode=null},e}();Rr.DomHandler=Wb;Rr.default=Wb});var Yb=U(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.default=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(function(e){return e.charCodeAt(0)}))});var Qb=U(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.default=new Uint16Array("\u0200aglq \u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(function(e){return e.charCodeAt(0)}))});var yd=U(Un=>{"use strict";var Ad;Object.defineProperty(Un,"__esModule",{value:!0});Un.replaceCodePoint=Un.fromCodePoint=void 0;var Q2=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);Un.fromCodePoint=(Ad=String.fromCodePoint)!==null&&Ad!==void 0?Ad:function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function $b(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Q2.get(e))!==null&&t!==void 0?t:e}Un.replaceCodePoint=$b;function $2(e){return(0,Un.fromCodePoint)($b(e))}Un.default=$2});var Is=U(fe=>{"use strict";var X2=fe&&fe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Z2=fe&&fe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),J2=fe&&fe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&X2(t,e,r);return Z2(t,e),t},Xb=fe&&fe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fe,"__esModule",{value:!0});fe.decodeXML=fe.decodeHTMLStrict=fe.decodeHTMLAttribute=fe.decodeHTML=fe.determineBranch=fe.EntityDecoder=fe.DecodingMode=fe.BinTrieFlags=fe.fromCodePoint=fe.replaceCodePoint=fe.decodeCodePoint=fe.xmlDecodeTree=fe.htmlDecodeTree=void 0;var Zb=Xb(Yb());fe.htmlDecodeTree=Zb.default;var Jb=Xb(Qb());fe.xmlDecodeTree=Jb.default;var Id=J2(yd());fe.decodeCodePoint=Id.default;var eE=yd();Object.defineProperty(fe,"replaceCodePoint",{enumerable:!0,get:function(){return eE.replaceCodePoint}});Object.defineProperty(fe,"fromCodePoint",{enumerable:!0,get:function(){return eE.fromCodePoint}});var ct;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(ct||(ct={}));var eN=32,Ti;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ti=fe.BinTrieFlags||(fe.BinTrieFlags={}));function vd(e){return e>=ct.ZERO&&e<=ct.NINE}function tN(e){return e>=ct.UPPER_A&&e<=ct.UPPER_F||e>=ct.LOWER_A&&e<=ct.LOWER_F}function rN(e){return e>=ct.UPPER_A&&e<=ct.UPPER_Z||e>=ct.LOWER_A&&e<=ct.LOWER_Z||vd(e)}function nN(e){return e===ct.EQUALS||rN(e)}var lt;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(lt||(lt={}));var Pr;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Pr=fe.DecodingMode||(fe.DecodingMode={}));var tE=function(){function e(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=lt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Pr.Strict}return e.prototype.startEntity=function(t){this.decodeMode=t,this.state=lt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},e.prototype.write=function(t,r){switch(this.state){case lt.EntityStart:return t.charCodeAt(r)===ct.NUM?(this.state=lt.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=lt.NamedEntity,this.stateNamedEntity(t,r));case lt.NumericStart:return this.stateNumericStart(t,r);case lt.NumericDecimal:return this.stateNumericDecimal(t,r);case lt.NumericHex:return this.stateNumericHex(t,r);case lt.NamedEntity:return this.stateNamedEntity(t,r)}},e.prototype.stateNumericStart=function(t,r){return r>=t.length?-1:(t.charCodeAt(r)|eN)===ct.LOWER_X?(this.state=lt.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=lt.NumericDecimal,this.stateNumericDecimal(t,r))},e.prototype.addToNumericResult=function(t,r,n,i){if(r!==n){var s=n-r;this.result=this.result*Math.pow(i,s)+parseInt(t.substr(r,s),i),this.consumed+=s}},e.prototype.stateNumericHex=function(t,r){for(var n=r;r<t.length;){var i=t.charCodeAt(r);if(vd(i)||tN(i))r+=1;else return this.addToNumericResult(t,n,r,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,n,r,16),-1},e.prototype.stateNumericDecimal=function(t,r){for(var n=r;r<t.length;){var i=t.charCodeAt(r);if(vd(i))r+=1;else return this.addToNumericResult(t,n,r,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,n,r,10),-1},e.prototype.emitNumericEntity=function(t,r){var n;if(this.consumed<=r)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===ct.SEMI)this.consumed+=1;else if(this.decodeMode===Pr.Strict)return 0;return this.emitCodePoint((0,Id.replaceCodePoint)(this.result),this.consumed),this.errors&&(t!==ct.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},e.prototype.stateNamedEntity=function(t,r){for(var n=this.decodeTree,i=n[this.treeIndex],s=(i&Ti.VALUE_LENGTH)>>14;r<t.length;r++,this.excess++){var a=t.charCodeAt(r);if(this.treeIndex=nE(n,i,this.treeIndex+Math.max(1,s),a),this.treeIndex<0)return this.result===0||this.decodeMode===Pr.Attribute&&(s===0||nN(a))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],s=(i&Ti.VALUE_LENGTH)>>14,s!==0){if(a===ct.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Pr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},e.prototype.emitNotTerminatedNamedEntity=function(){var t,r=this,n=r.result,i=r.decodeTree,s=(i[n]&Ti.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,s,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed},e.prototype.emitNamedEntityData=function(t,r,n){var i=this.decodeTree;return this.emitCodePoint(r===1?i[t]&~Ti.VALUE_LENGTH:i[t+1],n),r===3&&this.emitCodePoint(i[t+2],n),n},e.prototype.end=function(){var t;switch(this.state){case lt.NamedEntity:return this.result!==0&&(this.decodeMode!==Pr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case lt.NumericDecimal:return this.emitNumericEntity(0,2);case lt.NumericHex:return this.emitNumericEntity(0,3);case lt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case lt.EntityStart:return 0}},e}();fe.EntityDecoder=tE;function rE(e){var t="",r=new tE(e,function(n){return t+=(0,Id.fromCodePoint)(n)});return function(i,s){for(var a=0,u=0;(u=i.indexOf("&",u))>=0;){t+=i.slice(a,u),r.startEntity(s);var o=r.write(i,u+1);if(o<0){a=u+r.end();break}a=u+o,u=o===0?a+1:a}var c=t+i.slice(a);return t="",c}}function nE(e,t,r,n){var i=(t&Ti.BRANCH_LENGTH)>>7,s=t&Ti.JUMP_TABLE;if(i===0)return s!==0&&n===s?r:-1;if(s){var a=n-s;return a<0||a>=i?-1:e[r+a]-1}for(var u=r,o=u+i-1;u<=o;){var c=u+o>>>1,h=e[c];if(h<n)u=c+1;else if(h>n)o=c-1;else return e[c+i]}return-1}fe.determineBranch=nE;var Cd=rE(Zb.default),iN=rE(Jb.default);function sN(e,t){return t===void 0&&(t=Pr.Legacy),Cd(e,t)}fe.decodeHTML=sN;function aN(e){return Cd(e,Pr.Attribute)}fe.decodeHTMLAttribute=aN;function uN(e){return Cd(e,Pr.Strict)}fe.decodeHTMLStrict=uN;function oN(e){return iN(e,Pr.Strict)}fe.decodeXML=oN});var iE=U(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});function sc(e){for(var t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}Dd.default=new Map(sc([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(sc([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(sc([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(sc([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]))});var $a=U(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.escapeText=it.escapeAttribute=it.escapeUTF8=it.escape=it.encodeXML=it.getCodePoint=it.xmlReplacer=void 0;it.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var sE=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);it.getCodePoint=String.prototype.codePointAt!=null?function(e,t){return e.codePointAt(t)}:function(e,t){return(e.charCodeAt(t)&64512)==55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)};function aE(e){for(var t="",r=0,n;(n=it.xmlReplacer.exec(e))!==null;){var i=n.index,s=e.charCodeAt(i),a=sE.get(s);a!==void 0?(t+=e.substring(r,i)+a,r=i+1):(t+="".concat(e.substring(r,i),"&#x").concat((0,it.getCodePoint)(e,i).toString(16),";"),r=it.xmlReplacer.lastIndex+=Number((s&64512)==55296))}return t+e.substr(r)}it.encodeXML=aE;it.escape=aE;function Sd(e,t){return function(n){for(var i,s=0,a="";i=e.exec(n);)s!==i.index&&(a+=n.substring(s,i.index)),a+=t.get(i[0].charCodeAt(0)),s=i.index+1;return a+n.substring(s)}}it.escapeUTF8=Sd(/[&<>'"]/g,sE);it.escapeAttribute=Sd(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]]));it.escapeText=Sd(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))});var xd=U(Gn=>{"use strict";var cN=Gn&&Gn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Gn,"__esModule",{value:!0});Gn.encodeNonAsciiHTML=Gn.encodeHTML=void 0;var lN=cN(iE()),uE=$a(),fN=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function dN(e){return oE(fN,e)}Gn.encodeHTML=dN;function hN(e){return oE(uE.xmlReplacer,e)}Gn.encodeNonAsciiHTML=hN;function oE(e,t){for(var r="",n=0,i;(i=e.exec(t))!==null;){var s=i.index;r+=t.substring(n,s);var a=t.charCodeAt(s),u=lN.default.get(a);if(typeof u=="object"){if(s+1<t.length){var o=t.charCodeAt(s+1),c=typeof u.n=="number"?u.n===o?u.o:void 0:u.n.get(o);if(c!==void 0){r+=c,n=e.lastIndex+=1;continue}}u=u.v}if(u!==void 0)r+=u,n=s+1;else{var h=(0,uE.getCodePoint)(t,s);r+="&#x".concat(h.toString(16),";"),n=e.lastIndex+=Number(h!==a)}}return r+t.substr(n)}});var fE=U(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.decodeXMLStrict=re.decodeHTML5Strict=re.decodeHTML4Strict=re.decodeHTML5=re.decodeHTML4=re.decodeHTMLAttribute=re.decodeHTMLStrict=re.decodeHTML=re.decodeXML=re.DecodingMode=re.EntityDecoder=re.encodeHTML5=re.encodeHTML4=re.encodeNonAsciiHTML=re.encodeHTML=re.escapeText=re.escapeAttribute=re.escapeUTF8=re.escape=re.encodeXML=re.encode=re.decodeStrict=re.decode=re.EncodingMode=re.EntityLevel=void 0;var Od=Is(),cE=xd(),ac=$a(),vs;(function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"})(vs=re.EntityLevel||(re.EntityLevel={}));var Xa;(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"})(Xa=re.EncodingMode||(re.EncodingMode={}));function lE(e,t){t===void 0&&(t=vs.XML);var r=typeof t=="number"?t:t.level;if(r===vs.HTML){var n=typeof t=="object"?t.mode:void 0;return(0,Od.decodeHTML)(e,n)}return(0,Od.decodeXML)(e)}re.decode=lE;function pN(e,t){var r;t===void 0&&(t=vs.XML);var n=typeof t=="number"?{level:t}:t;return(r=n.mode)!==null&&r!==void 0||(n.mode=Od.DecodingMode.Strict),lE(e,n)}re.decodeStrict=pN;function mN(e,t){t===void 0&&(t=vs.XML);var r=typeof t=="number"?{level:t}:t;return r.mode===Xa.UTF8?(0,ac.escapeUTF8)(e):r.mode===Xa.Attribute?(0,ac.escapeAttribute)(e):r.mode===Xa.Text?(0,ac.escapeText)(e):r.level===vs.HTML?r.mode===Xa.ASCII?(0,cE.encodeNonAsciiHTML)(e):(0,cE.encodeHTML)(e):(0,ac.encodeXML)(e)}re.encode=mN;var Za=$a();Object.defineProperty(re,"encodeXML",{enumerable:!0,get:function(){return Za.encodeXML}});Object.defineProperty(re,"escape",{enumerable:!0,get:function(){return Za.escape}});Object.defineProperty(re,"escapeUTF8",{enumerable:!0,get:function(){return Za.escapeUTF8}});Object.defineProperty(re,"escapeAttribute",{enumerable:!0,get:function(){return Za.escapeAttribute}});Object.defineProperty(re,"escapeText",{enumerable:!0,get:function(){return Za.escapeText}});var uc=xd();Object.defineProperty(re,"encodeHTML",{enumerable:!0,get:function(){return uc.encodeHTML}});Object.defineProperty(re,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return uc.encodeNonAsciiHTML}});Object.defineProperty(re,"encodeHTML4",{enumerable:!0,get:function(){return uc.encodeHTML}});Object.defineProperty(re,"encodeHTML5",{enumerable:!0,get:function(){return uc.encodeHTML}});var br=Is();Object.defineProperty(re,"EntityDecoder",{enumerable:!0,get:function(){return br.EntityDecoder}});Object.defineProperty(re,"DecodingMode",{enumerable:!0,get:function(){return br.DecodingMode}});Object.defineProperty(re,"decodeXML",{enumerable:!0,get:function(){return br.decodeXML}});Object.defineProperty(re,"decodeHTML",{enumerable:!0,get:function(){return br.decodeHTML}});Object.defineProperty(re,"decodeHTMLStrict",{enumerable:!0,get:function(){return br.decodeHTMLStrict}});Object.defineProperty(re,"decodeHTMLAttribute",{enumerable:!0,get:function(){return br.decodeHTMLAttribute}});Object.defineProperty(re,"decodeHTML4",{enumerable:!0,get:function(){return br.decodeHTML}});Object.defineProperty(re,"decodeHTML5",{enumerable:!0,get:function(){return br.decodeHTML}});Object.defineProperty(re,"decodeHTML4Strict",{enumerable:!0,get:function(){return br.decodeHTMLStrict}});Object.defineProperty(re,"decodeHTML5Strict",{enumerable:!0,get:function(){return br.decodeHTMLStrict}});Object.defineProperty(re,"decodeXMLStrict",{enumerable:!0,get:function(){return br.decodeXML}})});var dE=U(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.attributeNames=Cs.elementNames=void 0;Cs.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(e){return[e.toLowerCase(),e]}));Cs.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(e){return[e.toLowerCase(),e]}))});var Nd=U(Zt=>{"use strict";var Ds=Zt&&Zt.__assign||function(){return Ds=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ds.apply(this,arguments)},gN=Zt&&Zt.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),_N=Zt&&Zt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),TN=Zt&&Zt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&gN(t,e,r);return _N(t,e),t};Object.defineProperty(Zt,"__esModule",{value:!0});Zt.render=void 0;var un=TN(ys()),oc=fE(),hE=dE(),bN=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function EN(e){return e.replace(/"/g,""")}function AN(e,t){var r;if(!!e){var n=((r=t.encodeEntities)!==null&&r!==void 0?r:t.decodeEntities)===!1?EN:t.xmlMode||t.encodeEntities!=="utf8"?oc.encodeXML:oc.escapeAttribute;return Object.keys(e).map(function(i){var s,a,u=(s=e[i])!==null&&s!==void 0?s:"";return t.xmlMode==="foreign"&&(i=(a=hE.attributeNames.get(i))!==null&&a!==void 0?a:i),!t.emptyAttrs&&!t.xmlMode&&u===""?i:"".concat(i,'="').concat(n(u),'"')}).join(" ")}}var pE=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function cc(e,t){t===void 0&&(t={});for(var r=("length"in e)?e:[e],n="",i=0;i<r.length;i++)n+=yN(r[i],t);return n}Zt.render=cc;Zt.default=cc;function yN(e,t){switch(e.type){case un.Root:return cc(e.children,t);case un.Doctype:case un.Directive:return DN(e);case un.Comment:return ON(e);case un.CDATA:return xN(e);case un.Script:case un.Style:case un.Tag:return CN(e,t);case un.Text:return SN(e,t)}}var IN=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),vN=new Set(["svg","math"]);function CN(e,t){var r;t.xmlMode==="foreign"&&(e.name=(r=hE.elementNames.get(e.name))!==null&&r!==void 0?r:e.name,e.parent&&IN.has(e.parent.name)&&(t=Ds(Ds({},t),{xmlMode:!1}))),!t.xmlMode&&vN.has(e.name)&&(t=Ds(Ds({},t),{xmlMode:"foreign"}));var n="<".concat(e.name),i=AN(e.attribs,t);return i&&(n+=" ".concat(i)),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&pE.has(e.name))?(t.xmlMode||(n+=" "),n+="/>"):(n+=">",e.children.length>0&&(n+=cc(e.children,t)),(t.xmlMode||!pE.has(e.name))&&(n+="</".concat(e.name,">"))),n}function DN(e){return"<".concat(e.data,">")}function SN(e,t){var r,n=e.data||"";return((r=t.encodeEntities)!==null&&r!==void 0?r:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&bN.has(e.parent.name))&&(n=t.xmlMode||t.encodeEntities!=="utf8"?(0,oc.encodeXML)(n):(0,oc.escapeText)(n)),n}function xN(e){return"<![CDATA[".concat(e.children[0].data,"]]>")}function ON(e){return"<!--".concat(e.data,"-->")}});var Pd=U(Ft=>{"use strict";var NN=Ft&&Ft.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ft,"__esModule",{value:!0});Ft.innerText=Ft.textContent=Ft.getText=Ft.getInnerHTML=Ft.getOuterHTML=void 0;var Lr=yt(),wN=NN(Nd()),RN=ys();function mE(e,t){return(0,wN.default)(e,t)}Ft.getOuterHTML=mE;function PN(e,t){return(0,Lr.hasChildren)(e)?e.children.map(function(r){return mE(r,t)}).join(""):""}Ft.getInnerHTML=PN;function lc(e){return Array.isArray(e)?e.map(lc).join(""):(0,Lr.isTag)(e)?e.name==="br"?`
|
||
`:lc(e.children):(0,Lr.isCDATA)(e)?lc(e.children):(0,Lr.isText)(e)?e.data:""}Ft.getText=lc;function wd(e){return Array.isArray(e)?e.map(wd).join(""):(0,Lr.hasChildren)(e)&&!(0,Lr.isComment)(e)?wd(e.children):(0,Lr.isText)(e)?e.data:""}Ft.textContent=wd;function Rd(e){return Array.isArray(e)?e.map(Rd).join(""):(0,Lr.hasChildren)(e)&&(e.type===RN.ElementType.Tag||(0,Lr.isCDATA)(e))?Rd(e.children):(0,Lr.isText)(e)?e.data:""}Ft.innerText=Rd});var TE=U(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.prevElementSibling=ft.nextElementSibling=ft.getName=ft.hasAttrib=ft.getAttributeValue=ft.getSiblings=ft.getParent=ft.getChildren=void 0;var Ld=yt();function gE(e){return(0,Ld.hasChildren)(e)?e.children:[]}ft.getChildren=gE;function _E(e){return e.parent||null}ft.getParent=_E;function LN(e){var t,r,n=_E(e);if(n!=null)return gE(n);for(var i=[e],s=e.prev,a=e.next;s!=null;)i.unshift(s),t=s,s=t.prev;for(;a!=null;)i.push(a),r=a,a=r.next;return i}ft.getSiblings=LN;function MN(e,t){var r;return(r=e.attribs)===null||r===void 0?void 0:r[t]}ft.getAttributeValue=MN;function kN(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}ft.hasAttrib=kN;function FN(e){return e.name}ft.getName=FN;function BN(e){for(var t,r=e.next;r!==null&&!(0,Ld.isTag)(r);)t=r,r=t.next;return r}ft.nextElementSibling=BN;function jN(e){for(var t,r=e.prev;r!==null&&!(0,Ld.isTag)(r);)t=r,r=t.prev;return r}ft.prevElementSibling=jN});var bE=U(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.prepend=Bt.prependChild=Bt.append=Bt.appendChild=Bt.replaceElement=Bt.removeElement=void 0;function Ja(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children,r=t.lastIndexOf(e);r>=0&&t.splice(r,1)}e.next=null,e.prev=null,e.parent=null}Bt.removeElement=Ja;function HN(e,t){var r=t.prev=e.prev;r&&(r.next=t);var n=t.next=e.next;n&&(n.prev=t);var i=t.parent=e.parent;if(i){var s=i.children;s[s.lastIndexOf(e)]=t,e.parent=null}}Bt.replaceElement=HN;function UN(e,t){if(Ja(t),t.next=null,t.parent=e,e.children.push(t)>1){var r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null}Bt.appendChild=UN;function GN(e,t){Ja(t);var r=e.parent,n=e.next;if(t.next=n,t.prev=e,e.next=t,t.parent=r,n){if(n.prev=t,r){var i=r.children;i.splice(i.lastIndexOf(n),0,t)}}else r&&r.children.push(t)}Bt.append=GN;function qN(e,t){if(Ja(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){var r=e.children[1];r.prev=t,t.next=r}else t.next=null}Bt.prependChild=qN;function zN(e,t){Ja(t);var r=e.parent;if(r){var n=r.children;n.splice(n.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}Bt.prepend=zN});var Md=U(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.findAll=jt.existsOne=jt.findOne=jt.findOneChild=jt.find=jt.filter=void 0;var fc=yt();function VN(e,t,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),EE(e,Array.isArray(t)?t:[t],r,n)}jt.filter=VN;function EE(e,t,r,n){for(var i=[],s=[t],a=[0];;){if(a[0]>=s[0].length){if(a.length===1)return i;s.shift(),a.shift();continue}var u=s[0][a[0]++];if(e(u)&&(i.push(u),--n<=0))return i;r&&(0,fc.hasChildren)(u)&&u.children.length>0&&(a.unshift(0),s.unshift(u.children))}}jt.find=EE;function KN(e,t){return t.find(e)}jt.findOneChild=KN;function AE(e,t,r){r===void 0&&(r=!0);for(var n=null,i=0;i<t.length&&!n;i++){var s=t[i];if((0,fc.isTag)(s))e(s)?n=s:r&&s.children.length>0&&(n=AE(e,s.children,!0));else continue}return n}jt.findOne=AE;function yE(e,t){return t.some(function(r){return(0,fc.isTag)(r)&&(e(r)||yE(e,r.children))})}jt.existsOne=yE;function WN(e,t){for(var r=[],n=[t],i=[0];;){if(i[0]>=n[0].length){if(n.length===1)return r;n.shift(),i.shift();continue}var s=n[0][i[0]++];!(0,fc.isTag)(s)||(e(s)&&r.push(s),s.children.length>0&&(i.unshift(0),n.unshift(s.children)))}}jt.findAll=WN});var kd=U(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.getElementsByTagType=or.getElementsByTagName=or.getElementById=or.getElements=or.testElement=void 0;var bi=yt(),dc=Md(),hc={tag_name:function(e){return typeof e=="function"?function(t){return(0,bi.isTag)(t)&&e(t.name)}:e==="*"?bi.isTag:function(t){return(0,bi.isTag)(t)&&t.name===e}},tag_type:function(e){return typeof e=="function"?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return typeof e=="function"?function(t){return(0,bi.isText)(t)&&e(t.data)}:function(t){return(0,bi.isText)(t)&&t.data===e}}};function IE(e,t){return typeof t=="function"?function(r){return(0,bi.isTag)(r)&&t(r.attribs[e])}:function(r){return(0,bi.isTag)(r)&&r.attribs[e]===t}}function YN(e,t){return function(r){return e(r)||t(r)}}function vE(e){var t=Object.keys(e).map(function(r){var n=e[r];return Object.prototype.hasOwnProperty.call(hc,r)?hc[r](n):IE(r,n)});return t.length===0?null:t.reduce(YN)}function QN(e,t){var r=vE(e);return r?r(t):!0}or.testElement=QN;function $N(e,t,r,n){n===void 0&&(n=1/0);var i=vE(e);return i?(0,dc.filter)(i,t,r,n):[]}or.getElements=$N;function XN(e,t,r){return r===void 0&&(r=!0),Array.isArray(t)||(t=[t]),(0,dc.findOne)(IE("id",e),t,r)}or.getElementById=XN;function ZN(e,t,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,dc.filter)(hc.tag_name(e),t,r,n)}or.getElementsByTagName=ZN;function JN(e,t,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,dc.filter)(hc.tag_type(e),t,r,n)}or.getElementsByTagType=JN});var SE=U(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.uniqueSort=Er.compareDocumentPosition=Er.DocumentPosition=Er.removeSubsets=void 0;var CE=yt();function e3(e){for(var t=e.length;--t>=0;){var r=e[t];if(t>0&&e.lastIndexOf(r,t-1)>=0){e.splice(t,1);continue}for(var n=r.parent;n;n=n.parent)if(e.includes(n)){e.splice(t,1);break}}return e}Er.removeSubsets=e3;var Mr;(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})(Mr=Er.DocumentPosition||(Er.DocumentPosition={}));function DE(e,t){var r=[],n=[];if(e===t)return 0;for(var i=(0,CE.hasChildren)(e)?e:e.parent;i;)r.unshift(i),i=i.parent;for(i=(0,CE.hasChildren)(t)?t:t.parent;i;)n.unshift(i),i=i.parent;for(var s=Math.min(r.length,n.length),a=0;a<s&&r[a]===n[a];)a++;if(a===0)return Mr.DISCONNECTED;var u=r[a-1],o=u.children,c=r[a],h=n[a];return o.indexOf(c)>o.indexOf(h)?u===t?Mr.FOLLOWING|Mr.CONTAINED_BY:Mr.FOLLOWING:u===e?Mr.PRECEDING|Mr.CONTAINS:Mr.PRECEDING}Er.compareDocumentPosition=DE;function t3(e){return e=e.filter(function(t,r,n){return!n.includes(t,r+1)}),e.sort(function(t,r){var n=DE(t,r);return n&Mr.PRECEDING?-1:n&Mr.FOLLOWING?1:0}),e}Er.uniqueSort=t3});var OE=U(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.getFeed=void 0;var r3=Pd(),eu=kd();function n3(e){var t=pc(o3,e);return t?t.name==="feed"?i3(t):s3(t):null}mc.getFeed=n3;function i3(e){var t,r=e.children,n={type:"atom",items:(0,eu.getElementsByTagName)("entry",r).map(function(a){var u,o=a.children,c={media:xE(o)};Ht(c,"id","id",o),Ht(c,"title","title",o);var h=(u=pc("link",o))===null||u===void 0?void 0:u.attribs.href;h&&(c.link=h);var d=qn("summary",o)||qn("content",o);d&&(c.description=d);var f=qn("updated",o);return f&&(c.pubDate=new Date(f)),c})};Ht(n,"id","id",r),Ht(n,"title","title",r);var i=(t=pc("link",r))===null||t===void 0?void 0:t.attribs.href;i&&(n.link=i),Ht(n,"description","subtitle",r);var s=qn("updated",r);return s&&(n.updated=new Date(s)),Ht(n,"author","email",r,!0),n}function s3(e){var t,r,n=(r=(t=pc("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&r!==void 0?r:[],i={type:e.name.substr(0,3),id:"",items:(0,eu.getElementsByTagName)("item",e.children).map(function(a){var u=a.children,o={media:xE(u)};Ht(o,"id","guid",u),Ht(o,"title","title",u),Ht(o,"link","link",u),Ht(o,"description","description",u);var c=qn("pubDate",u)||qn("dc:date",u);return c&&(o.pubDate=new Date(c)),o})};Ht(i,"title","title",n),Ht(i,"link","link",n),Ht(i,"description","description",n);var s=qn("lastBuildDate",n);return s&&(i.updated=new Date(s)),Ht(i,"author","managingEditor",n,!0),i}var a3=["url","type","lang"],u3=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function xE(e){return(0,eu.getElementsByTagName)("media:content",e).map(function(t){for(var r=t.attribs,n={medium:r.medium,isDefault:!!r.isDefault},i=0,s=a3;i<s.length;i++){var a=s[i];r[a]&&(n[a]=r[a])}for(var u=0,o=u3;u<o.length;u++){var a=o[u];r[a]&&(n[a]=parseInt(r[a],10))}return r.expression&&(n.expression=r.expression),n})}function pc(e,t){return(0,eu.getElementsByTagName)(e,t,!0,1)[0]}function qn(e,t,r){return r===void 0&&(r=!1),(0,r3.textContent)((0,eu.getElementsByTagName)(e,t,r,1)).trim()}function Ht(e,t,r,n,i){i===void 0&&(i=!1);var s=qn(r,n,i);s&&(e[t]=s)}function o3(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}});var Ar=U(Ue=>{"use strict";var c3=Ue&&Ue.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Ei=Ue&&Ue.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&c3(t,e,r)};Object.defineProperty(Ue,"__esModule",{value:!0});Ue.hasChildren=Ue.isDocument=Ue.isComment=Ue.isText=Ue.isCDATA=Ue.isTag=void 0;Ei(Pd(),Ue);Ei(TE(),Ue);Ei(bE(),Ue);Ei(Md(),Ue);Ei(kd(),Ue);Ei(SE(),Ue);Ei(OE(),Ue);var Ss=yt();Object.defineProperty(Ue,"isTag",{enumerable:!0,get:function(){return Ss.isTag}});Object.defineProperty(Ue,"isCDATA",{enumerable:!0,get:function(){return Ss.isCDATA}});Object.defineProperty(Ue,"isText",{enumerable:!0,get:function(){return Ss.isText}});Object.defineProperty(Ue,"isComment",{enumerable:!0,get:function(){return Ss.isComment}});Object.defineProperty(Ue,"isDocument",{enumerable:!0,get:function(){return Ss.isDocument}});Object.defineProperty(Ue,"hasChildren",{enumerable:!0,get:function(){return Ss.hasChildren}})});var yi=U(Ve=>{"use strict";var Ai=Ve&&Ve.__assign||function(){return Ai=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ai.apply(this,arguments)},l3=Ve&&Ve.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),f3=Ve&&Ve.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),d3=Ve&&Ve.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&l3(t,e,r);return f3(t,e),t};Object.defineProperty(Ve,"__esModule",{value:!0});Ve.merge=Ve.contains=Ve.root=Ve.parseHTML=Ve.text=Ve.xml=Ve.html=void 0;var h3=Ar(),Fd=d3(hd());function NE(e,t,r){return e?e(t??e._root.children,null,void 0,r).toString():""}function p3(e,t){return!t&&typeof e=="object"&&e!=null&&!("length"in e)&&!("type"in e)}function m3(e,t){var r=p3(e)?(t=e,void 0):e,n=Ai(Ai(Ai({},Fd.default),this===null||this===void 0?void 0:this._options),(0,Fd.flatten)(t??{}));return NE(this,r,n)}Ve.html=m3;function g3(e){var t=Ai(Ai({},this._options),{xmlMode:!0});return NE(this,e,t)}Ve.xml=g3;function _3(e){for(var t=e||(this?this.root():[]),r="",n=0;n<t.length;n++)r+=(0,h3.textContent)(t[n]);return r}Ve.text=_3;function T3(e,t,r){if(r===void 0&&(r=typeof t=="boolean"?t:!1),!e||typeof e!="string")return null;typeof t=="boolean"&&(r=t);var n=this.load(e,Fd.default,!1);return r||n("script").remove(),n.root()[0].children.slice()}Ve.parseHTML=T3;function b3(){return this(this._root)}Ve.root=b3;function E3(e,t){if(t===e)return!1;for(var r=t;r&&r!==r.parent;)if(r=r.parent,r===e)return!0;return!1}Ve.contains=E3;function A3(e,t){if(!(!wE(e)||!wE(t))){for(var r=e.length,n=+t.length,i=0;i<n;i++)e[r++]=t[i];return e.length=r,e}}Ve.merge=A3;function wE(e){if(Array.isArray(e))return!0;if(typeof e!="object"||!Object.prototype.hasOwnProperty.call(e,"length")||typeof e.length!="number"||e.length<0)return!1;for(var t=0;t<e.length;t++)if(!(t in e))return!1;return!0}});var vi=U(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.isHtml=It.cloneDom=It.domEach=It.cssCase=It.camelCase=It.isCheerio=It.isTag=void 0;var Bd=yt(),y3=yt();Object.defineProperty(It,"isTag",{enumerable:!0,get:function(){return y3.isTag}});function I3(e){return e.cheerio!=null}It.isCheerio=I3;function v3(e){return e.replace(/[_.-](\w|$)/g,function(t,r){return r.toUpperCase()})}It.camelCase=v3;function C3(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()}It.cssCase=C3;function D3(e,t){for(var r=e.length,n=0;n<r;n++)t(e[n],n);return e}It.domEach=D3;function S3(e){var t="length"in e?Array.prototype.map.call(e,function(n){return(0,Bd.cloneNode)(n,!0)}):[(0,Bd.cloneNode)(e,!0)],r=new Bd.Document(t);return t.forEach(function(n){n.parent=r}),t}It.cloneDom=S3;var Ii;(function(e){e[e.LowerA=97]="LowerA",e[e.LowerZ=122]="LowerZ",e[e.UpperA=65]="UpperA",e[e.UpperZ=90]="UpperZ",e[e.Exclamation=33]="Exclamation"})(Ii||(Ii={}));function x3(e){var t=e.indexOf("<");if(t<0||t>e.length-3)return!1;var r=e.charCodeAt(t+1);return(r>=Ii.LowerA&&r<=Ii.LowerZ||r>=Ii.UpperA&&r<=Ii.UpperZ||r===Ii.Exclamation)&&e.includes(">",t+2)}It.isHtml=x3});var GE=U(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.toggleClass=et.removeClass=et.addClass=et.hasClass=et.removeAttr=et.val=et.data=et.prop=et.attr=void 0;var RE=yi(),De=vi(),PE=Ar(),xs=Object.prototype.hasOwnProperty,tu=/\s+/,jd="data-",LE={null:null,true:!0,false:!1},Hd=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,O3=/^{[^]*}$|^\[[^]*]$/;function gc(e,t,r){var n;if(!(!e||!(0,De.isTag)(e))){if((n=e.attribs)!==null&&n!==void 0||(e.attribs={}),!t)return e.attribs;if(xs.call(e.attribs,t))return!r&&Hd.test(t)?t:e.attribs[t];if(e.name==="option"&&t==="value")return(0,RE.text)(e.children);if(e.name==="input"&&(e.attribs.type==="radio"||e.attribs.type==="checkbox")&&t==="value")return"on"}}function Os(e,t,r){r===null?BE(e,t):e.attribs[t]="".concat(r)}function N3(e,t){if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e!="string")throw new Error("Bad combination of arguments.");return(0,De.domEach)(this,function(r,n){(0,De.isTag)(r)&&Os(r,e,t.call(r,n,r.attribs[e]))})}return(0,De.domEach)(this,function(r){!(0,De.isTag)(r)||(typeof e=="object"?Object.keys(e).forEach(function(n){var i=e[n];Os(r,n,i)}):Os(r,e,t))})}return arguments.length>1?this:gc(this[0],e,this.options.xmlMode)}et.attr=N3;function ME(e,t,r){return t in e?e[t]:!r&&Hd.test(t)?gc(e,t,!1)!==void 0:gc(e,t,r)}function Ud(e,t,r,n){t in e?e[t]=r:Os(e,t,!n&&Hd.test(t)?r?"":null:"".concat(r))}function w3(e,t){var r=this,n;if(typeof e=="string"&&t===void 0){var i=this[0];if(!i||!(0,De.isTag)(i))return;switch(e){case"style":{var s=this.css(),a=Object.keys(s);return a.forEach(function(o,c){s[c]=o}),s.length=a.length,s}case"tagName":case"nodeName":return i.name.toUpperCase();case"href":case"src":{var u=(n=i.attribs)===null||n===void 0?void 0:n[e];return typeof URL!="undefined"&&(e==="href"&&(i.tagName==="a"||i.name==="link")||e==="src"&&(i.tagName==="img"||i.tagName==="iframe"||i.tagName==="audio"||i.tagName==="video"||i.tagName==="source"))&&u!==void 0&&this.options.baseURI?new URL(u,this.options.baseURI).href:u}case"innerText":return(0,PE.innerText)(i);case"textContent":return(0,PE.textContent)(i);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return ME(i,e,this.options.xmlMode)}}if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e=="object")throw new Error("Bad combination of arguments.");return(0,De.domEach)(this,function(o,c){(0,De.isTag)(o)&&Ud(o,e,t.call(o,c,ME(o,e,r.options.xmlMode)),r.options.xmlMode)})}return(0,De.domEach)(this,function(o){!(0,De.isTag)(o)||(typeof e=="object"?Object.keys(e).forEach(function(c){var h=e[c];Ud(o,c,h,r.options.xmlMode)}):Ud(o,e,t,r.options.xmlMode))})}}et.prop=w3;function kE(e,t,r){var n,i=e;(n=i.data)!==null&&n!==void 0||(i.data={}),typeof t=="object"?Object.assign(i.data,t):typeof t=="string"&&r!==void 0&&(i.data[t]=r)}function FE(e,t){var r,n,i;t==null?(r=Object.keys(e.attribs).filter(function(o){return o.startsWith(jd)}),n=r.map(function(o){return(0,De.camelCase)(o.slice(jd.length))})):(r=[jd+(0,De.cssCase)(t)],n=[t]);for(var s=0;s<r.length;++s){var a=r[s],u=n[s];if(xs.call(e.attribs,a)&&!xs.call(e.data,u)){if(i=e.attribs[a],xs.call(LE,i))i=LE[i];else if(i===String(Number(i)))i=Number(i);else if(O3.test(i))try{i=JSON.parse(i)}catch{}e.data[u]=i}}return t==null?e.data:i}function R3(e,t){var r,n=this[0];if(!(!n||!(0,De.isTag)(n))){var i=n;return(r=i.data)!==null&&r!==void 0||(i.data={}),e?typeof e=="object"||t!==void 0?((0,De.domEach)(this,function(s){(0,De.isTag)(s)&&(typeof e=="object"?kE(s,e):kE(s,e,t))}),this):xs.call(i.data,e)?i.data[e]:FE(i,e):FE(i)}}et.data=R3;function P3(e){var t=arguments.length===0,r=this[0];if(!r||!(0,De.isTag)(r))return t?void 0:this;switch(r.name){case"textarea":return this.text(e);case"select":{var n=this.find("option:selected");if(!t){if(this.attr("multiple")==null&&typeof e=="object")return this;this.find("option").removeAttr("selected");for(var i=typeof e!="object"?[e]:e,s=0;s<i.length;s++)this.find('option[value="'.concat(i[s],'"]')).attr("selected","");return this}return this.attr("multiple")?n.toArray().map(function(a){return(0,RE.text)(a.children)}):n.attr("value")}case"input":case"option":return t?this.attr("value"):this.attr("value",e)}}et.val=P3;function BE(e,t){!e.attribs||!xs.call(e.attribs,t)||delete e.attribs[t]}function _c(e){return e?e.trim().split(tu):[]}function L3(e){for(var t=_c(e),r=function(s){(0,De.domEach)(n,function(a){(0,De.isTag)(a)&&BE(a,t[s])})},n=this,i=0;i<t.length;i++)r(i);return this}et.removeAttr=L3;function M3(e){return this.toArray().some(function(t){var r=(0,De.isTag)(t)&&t.attribs.class,n=-1;if(r&&e.length)for(;(n=r.indexOf(e,n+1))>-1;){var i=n+e.length;if((n===0||tu.test(r[n-1]))&&(i===r.length||tu.test(r[i])))return!0}return!1})}et.hasClass=M3;function jE(e){if(typeof e=="function")return(0,De.domEach)(this,function(c,h){if((0,De.isTag)(c)){var d=c.attribs.class||"";jE.call([c],e.call(c,h,d))}});if(!e||typeof e!="string")return this;for(var t=e.split(tu),r=this.length,n=0;n<r;n++){var i=this[n];if(!!(0,De.isTag)(i)){var s=gc(i,"class",!1);if(!s)Os(i,"class",t.join(" ").trim());else{for(var a=" ".concat(s," "),u=0;u<t.length;u++){var o="".concat(t[u]," ");a.includes(" ".concat(o))||(a+=o)}Os(i,"class",a.trim())}}}return this}et.addClass=jE;function HE(e){if(typeof e=="function")return(0,De.domEach)(this,function(i,s){(0,De.isTag)(i)&&HE.call([i],e.call(i,s,i.attribs.class||""))});var t=_c(e),r=t.length,n=arguments.length===0;return(0,De.domEach)(this,function(i){if(!!(0,De.isTag)(i))if(n)i.attribs.class="";else{for(var s=_c(i.attribs.class),a=!1,u=0;u<r;u++){var o=s.indexOf(t[u]);o>=0&&(s.splice(o,1),a=!0,u--)}a&&(i.attribs.class=s.join(" "))}})}et.removeClass=HE;function UE(e,t){if(typeof e=="function")return(0,De.domEach)(this,function(d,f){(0,De.isTag)(d)&&UE.call([d],e.call(d,f,d.attribs.class||"",t),t)});if(!e||typeof e!="string")return this;for(var r=e.split(tu),n=r.length,i=typeof t=="boolean"?t?1:-1:0,s=this.length,a=0;a<s;a++){var u=this[a];if(!!(0,De.isTag)(u)){for(var o=_c(u.attribs.class),c=0;c<n;c++){var h=o.indexOf(r[c]);i>=0&&h<0?o.push(r[c]):i<=0&&h>=0&&o.splice(h,1)}u.attribs.class=o.join(" ")}}return this}et.toggleClass=UE});var Tc=U(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.AttributeAction=kr.IgnoreCaseMode=kr.SelectorType=void 0;var k3;(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"})(k3=kr.SelectorType||(kr.SelectorType={}));kr.IgnoreCaseMode={Unknown:null,QuirksMode:"quirks",IgnoreCase:!0,CaseSensitive:!1};var F3;(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"})(F3=kr.AttributeAction||(kr.AttributeAction={}))});var WE=U(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.parse=Ns.isTraversal=void 0;var Ae=Tc(),qE=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,B3=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,j3=new Map([[126,Ae.AttributeAction.Element],[94,Ae.AttributeAction.Start],[36,Ae.AttributeAction.End],[42,Ae.AttributeAction.Any],[33,Ae.AttributeAction.Not],[124,Ae.AttributeAction.Hyphen]]),H3=new Set(["has","not","matches","is","where","host","host-context"]);function zE(e){switch(e.type){case Ae.SelectorType.Adjacent:case Ae.SelectorType.Child:case Ae.SelectorType.Descendant:case Ae.SelectorType.Parent:case Ae.SelectorType.Sibling:case Ae.SelectorType.ColumnCombinator:return!0;default:return!1}}Ns.isTraversal=zE;var U3=new Set(["contains","icontains"]);function G3(e,t,r){var n=parseInt(t,16)-65536;return n!==n||r?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,n&1023|56320)}function ru(e){return e.replace(B3,G3)}function Gd(e){return e===39||e===34}function VE(e){return e===32||e===9||e===10||e===12||e===13}function q3(e){var t=[],r=KE(t,"".concat(e),0);if(r<e.length)throw new Error("Unmatched selector: ".concat(e.slice(r)));return t}Ns.parse=q3;function KE(e,t,r){var n=[];function i(W){var he=t.slice(r+W).match(qE);if(!he)throw new Error("Expected name, found ".concat(t.slice(r)));var ke=he[0];return r+=W+ke.length,ru(ke)}function s(W){for(r+=W;r<t.length&&VE(t.charCodeAt(r));)r++}function a(){r+=1;for(var W=r,he=1;he>0&&r<t.length;r++)t.charCodeAt(r)===40&&!u(r)?he++:t.charCodeAt(r)===41&&!u(r)&&he--;if(he)throw new Error("Parenthesis not matched");return ru(t.slice(W,r-1))}function u(W){for(var he=0;t.charCodeAt(--W)===92;)he++;return(he&1)==1}function o(){if(n.length>0&&zE(n[n.length-1]))throw new Error("Did not expect successive traversals.")}function c(W){if(n.length>0&&n[n.length-1].type===Ae.SelectorType.Descendant){n[n.length-1].type=W;return}o(),n.push({type:W})}function h(W,he){n.push({type:Ae.SelectorType.Attribute,name:W,action:he,value:i(1),namespace:null,ignoreCase:"quirks"})}function d(){if(n.length&&n[n.length-1].type===Ae.SelectorType.Descendant&&n.pop(),n.length===0)throw new Error("Empty sub-selector");e.push(n)}if(s(0),t.length===r)return r;e:for(;r<t.length;){var f=t.charCodeAt(r);switch(f){case 32:case 9:case 10:case 12:case 13:{(n.length===0||n[0].type!==Ae.SelectorType.Descendant)&&(o(),n.push({type:Ae.SelectorType.Descendant})),s(1);break}case 62:{c(Ae.SelectorType.Child),s(1);break}case 60:{c(Ae.SelectorType.Parent),s(1);break}case 126:{c(Ae.SelectorType.Sibling),s(1);break}case 43:{c(Ae.SelectorType.Adjacent),s(1);break}case 46:{h("class",Ae.AttributeAction.Element);break}case 35:{h("id",Ae.AttributeAction.Equals);break}case 91:{s(1);var g=void 0,y=null;t.charCodeAt(r)===124?g=i(1):t.startsWith("*|",r)?(y="*",g=i(2)):(g=i(0),t.charCodeAt(r)===124&&t.charCodeAt(r+1)!==61&&(y=g,g=i(1))),s(0);var b=Ae.AttributeAction.Exists,D=j3.get(t.charCodeAt(r));if(D){if(b=D,t.charCodeAt(r+1)!==61)throw new Error("Expected `=`");s(2)}else t.charCodeAt(r)===61&&(b=Ae.AttributeAction.Equals,s(1));var m="",v=null;if(b!=="exists"){if(Gd(t.charCodeAt(r))){for(var I=t.charCodeAt(r),T=r+1;T<t.length&&(t.charCodeAt(T)!==I||u(T));)T+=1;if(t.charCodeAt(T)!==I)throw new Error("Attribute value didn't end");m=ru(t.slice(r+1,T)),r=T+1}else{for(var E=r;r<t.length&&(!VE(t.charCodeAt(r))&&t.charCodeAt(r)!==93||u(r));)r+=1;m=ru(t.slice(E,r))}s(0);var C=t.charCodeAt(r)|32;C===115?(v=!1,s(1)):C===105&&(v=!0,s(1))}if(t.charCodeAt(r)!==93)throw new Error("Attribute selector didn't terminate");r+=1;var S={type:Ae.SelectorType.Attribute,name:g,action:b,value:m,namespace:y,ignoreCase:v};n.push(S);break}case 58:{if(t.charCodeAt(r+1)===58){n.push({type:Ae.SelectorType.PseudoElement,name:i(2).toLowerCase(),data:t.charCodeAt(r)===40?a():null});continue}var N=i(1).toLowerCase(),P=null;if(t.charCodeAt(r)===40)if(H3.has(N)){if(Gd(t.charCodeAt(r+1)))throw new Error("Pseudo-selector ".concat(N," cannot be quoted"));if(P=[],r=KE(P,t,r+1),t.charCodeAt(r)!==41)throw new Error("Missing closing parenthesis in :".concat(N," (").concat(t,")"));r+=1}else{if(P=a(),U3.has(N)){var q=P.charCodeAt(0);q===P.charCodeAt(P.length-1)&&Gd(q)&&(P=P.slice(1,-1))}P=ru(P)}n.push({type:Ae.SelectorType.Pseudo,name:N,data:P});break}case 44:{d(),n=[],s(1);break}default:{if(t.startsWith("/*",r)){var $=t.indexOf("*/",r+2);if($<0)throw new Error("Comment was not terminated");r=$+2,n.length===0&&s(0);break}var y=null,ge=void 0;if(f===42)r+=1,ge="*";else if(f===124){if(ge="",t.charCodeAt(r+1)===124){c(Ae.SelectorType.ColumnCombinator),s(2);break}}else if(qE.test(t.slice(r)))ge=i(0);else break e;t.charCodeAt(r)===124&&t.charCodeAt(r+1)!==124&&(y=ge,t.charCodeAt(r+1)===42?(ge="*",r+=2):ge=i(1)),n.push(ge==="*"?{type:Ae.SelectorType.Universal,namespace:y}:{type:Ae.SelectorType.Tag,name:ge,namespace:y})}}}return d(),r}});var e1=U(Rs=>{"use strict";var bc=Rs&&Rs.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};Object.defineProperty(Rs,"__esModule",{value:!0});Rs.stringify=void 0;var We=Tc(),YE=["\\",'"'],QE=bc(bc([],YE,!0),["(",")"],!1),z3=new Set(YE.map(function(e){return e.charCodeAt(0)})),$E=new Set(QE.map(function(e){return e.charCodeAt(0)})),ws=new Set(bc(bc([],QE,!0),["~","^","$","*","+","!","|",":","[","]"," ","."],!1).map(function(e){return e.charCodeAt(0)}));function XE(e){return e.map(function(t){return t.map(V3).join("")}).join(", ")}Rs.stringify=XE;function V3(e,t,r){switch(e.type){case We.SelectorType.Child:return t===0?"> ":" > ";case We.SelectorType.Parent:return t===0?"< ":" < ";case We.SelectorType.Sibling:return t===0?"~ ":" ~ ";case We.SelectorType.Adjacent:return t===0?"+ ":" + ";case We.SelectorType.Descendant:return" ";case We.SelectorType.ColumnCombinator:return t===0?"|| ":" || ";case We.SelectorType.Universal:return e.namespace==="*"&&t+1<r.length&&"name"in r[t+1]?"":"".concat(JE(e.namespace),"*");case We.SelectorType.Tag:return ZE(e);case We.SelectorType.PseudoElement:return"::".concat(on(e.name,ws)).concat(e.data===null?"":"(".concat(on(e.data,$E),")"));case We.SelectorType.Pseudo:return":".concat(on(e.name,ws)).concat(e.data===null?"":"(".concat(typeof e.data=="string"?on(e.data,$E):XE(e.data),")"));case We.SelectorType.Attribute:{if(e.name==="id"&&e.action===We.AttributeAction.Equals&&e.ignoreCase==="quirks"&&!e.namespace)return"#".concat(on(e.value,ws));if(e.name==="class"&&e.action===We.AttributeAction.Element&&e.ignoreCase==="quirks"&&!e.namespace)return".".concat(on(e.value,ws));var n=ZE(e);return e.action===We.AttributeAction.Exists?"[".concat(n,"]"):"[".concat(n).concat(K3(e.action),'="').concat(on(e.value,z3),'"').concat(e.ignoreCase===null?"":e.ignoreCase?" i":" s","]")}}}function K3(e){switch(e){case We.AttributeAction.Equals:return"";case We.AttributeAction.Element:return"~";case We.AttributeAction.Start:return"^";case We.AttributeAction.End:return"$";case We.AttributeAction.Any:return"*";case We.AttributeAction.Not:return"!";case We.AttributeAction.Hyphen:return"|";case We.AttributeAction.Exists:throw new Error("Shouldn't be here")}}function ZE(e){return"".concat(JE(e.namespace)).concat(on(e.name,ws))}function JE(e){return e!==null?"".concat(e==="*"?"*":on(e,ws),"|"):""}function on(e,t){for(var r=0,n="",i=0;i<e.length;i++)t.has(e.charCodeAt(i))&&(n+="".concat(e.slice(r,i),"\\").concat(e.charAt(i)),r=i+1);return n.length>0?n+e.slice(r):e}});var Ps=U(Jt=>{"use strict";var W3=Jt&&Jt.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Y3=Jt&&Jt.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&W3(t,e,r)};Object.defineProperty(Jt,"__esModule",{value:!0});Jt.stringify=Jt.parse=Jt.isTraversal=void 0;Y3(Tc(),Jt);var t1=WE();Object.defineProperty(Jt,"isTraversal",{enumerable:!0,get:function(){return t1.isTraversal}});Object.defineProperty(Jt,"parse",{enumerable:!0,get:function(){return t1.parse}});var Q3=e1();Object.defineProperty(Jt,"stringify",{enumerable:!0,get:function(){return Q3.stringify}})});var zn=U((bH,r1)=>{r1.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}});var qd=U(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.isTraversal=void 0;var er=Ps(),n1=new Map([[er.SelectorType.Universal,50],[er.SelectorType.Tag,30],[er.SelectorType.Attribute,1],[er.SelectorType.Pseudo,0]]);function $3(e){return!n1.has(e.type)}nu.isTraversal=$3;var X3=new Map([[er.AttributeAction.Exists,10],[er.AttributeAction.Equals,8],[er.AttributeAction.Not,7],[er.AttributeAction.Start,6],[er.AttributeAction.End,6],[er.AttributeAction.Any,5]]);function Z3(e){for(var t=e.map(i1),r=1;r<e.length;r++){var n=t[r];if(!(n<0))for(var i=r-1;i>=0&&n<t[i];i--){var s=e[i+1];e[i+1]=e[i],e[i]=s,t[i+1]=t[i],t[i]=n}}}nu.default=Z3;function i1(e){var t,r,n=(t=n1.get(e.type))!==null&&t!==void 0?t:-1;return e.type===er.SelectorType.Attribute?(n=(r=X3.get(e.action))!==null&&r!==void 0?r:4,e.action===er.AttributeAction.Equals&&e.name==="id"&&(n=9),e.ignoreCase&&(n>>=1)):e.type===er.SelectorType.Pseudo&&(e.data?e.name==="has"||e.name==="contains"?n=0:Array.isArray(e.data)?(n=Math.min.apply(Math,e.data.map(function(i){return Math.min.apply(Math,i.map(i1))})),n<0&&(n=0)):n=2:n=3),n}});var a1=U(Ls=>{"use strict";var J3=Ls&&Ls.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ls,"__esModule",{value:!0});Ls.attributeRules=void 0;var Ec=J3(zn()),ew=/[-[\]{}()*+?.,\\^$|#\s]/g;function s1(e){return e.replace(ew,"\\$&")}var tw=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function Ci(e,t){return typeof e.ignoreCase=="boolean"?e.ignoreCase:e.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&tw.has(e.name)}Ls.attributeRules={equals:function(e,t,r){var n=r.adapter,i=t.name,s=t.value;return Ci(t,r)?(s=s.toLowerCase(),function(a){var u=n.getAttributeValue(a,i);return u!=null&&u.length===s.length&&u.toLowerCase()===s&&e(a)}):function(a){return n.getAttributeValue(a,i)===s&&e(a)}},hyphen:function(e,t,r){var n=r.adapter,i=t.name,s=t.value,a=s.length;return Ci(t,r)?(s=s.toLowerCase(),function(o){var c=n.getAttributeValue(o,i);return c!=null&&(c.length===a||c.charAt(a)==="-")&&c.substr(0,a).toLowerCase()===s&&e(o)}):function(o){var c=n.getAttributeValue(o,i);return c!=null&&(c.length===a||c.charAt(a)==="-")&&c.substr(0,a)===s&&e(o)}},element:function(e,t,r){var n=r.adapter,i=t.name,s=t.value;if(/\s/.test(s))return Ec.default.falseFunc;var a=new RegExp("(?:^|\\s)".concat(s1(s),"(?:$|\\s)"),Ci(t,r)?"i":"");return function(o){var c=n.getAttributeValue(o,i);return c!=null&&c.length>=s.length&&a.test(c)&&e(o)}},exists:function(e,t,r){var n=t.name,i=r.adapter;return function(s){return i.hasAttrib(s,n)&&e(s)}},start:function(e,t,r){var n=r.adapter,i=t.name,s=t.value,a=s.length;return a===0?Ec.default.falseFunc:Ci(t,r)?(s=s.toLowerCase(),function(u){var o=n.getAttributeValue(u,i);return o!=null&&o.length>=a&&o.substr(0,a).toLowerCase()===s&&e(u)}):function(u){var o;return!!((o=n.getAttributeValue(u,i))===null||o===void 0?void 0:o.startsWith(s))&&e(u)}},end:function(e,t,r){var n=r.adapter,i=t.name,s=t.value,a=-s.length;return a===0?Ec.default.falseFunc:Ci(t,r)?(s=s.toLowerCase(),function(u){var o;return((o=n.getAttributeValue(u,i))===null||o===void 0?void 0:o.substr(a).toLowerCase())===s&&e(u)}):function(u){var o;return!!((o=n.getAttributeValue(u,i))===null||o===void 0?void 0:o.endsWith(s))&&e(u)}},any:function(e,t,r){var n=r.adapter,i=t.name,s=t.value;if(s==="")return Ec.default.falseFunc;if(Ci(t,r)){var a=new RegExp(s1(s),"i");return function(o){var c=n.getAttributeValue(o,i);return c!=null&&c.length>=s.length&&a.test(c)&&e(o)}}return function(u){var o;return!!((o=n.getAttributeValue(u,i))===null||o===void 0?void 0:o.includes(s))&&e(u)}},not:function(e,t,r){var n=r.adapter,i=t.name,s=t.value;return s===""?function(a){return!!n.getAttributeValue(a,i)&&e(a)}:Ci(t,r)?(s=s.toLowerCase(),function(a){var u=n.getAttributeValue(a,i);return(u==null||u.length!==s.length||u.toLowerCase()!==s)&&e(a)}):function(a){return n.getAttributeValue(a,i)!==s&&e(a)}}}});var o1=U(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});Ac.parse=void 0;var rw=new Set([9,10,12,13,32]),u1="0".charCodeAt(0),nw="9".charCodeAt(0);function iw(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];var t=0,r=0,n=s(),i=a();if(t<e.length&&e.charAt(t)==="n"&&(t++,r=n*(i??1),u(),t<e.length?(n=s(),u(),i=a()):n=i=0),i===null||t<e.length)throw new Error("n-th rule couldn't be parsed ('".concat(e,"')"));return[r,n*i];function s(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function a(){for(var o=t,c=0;t<e.length&&e.charCodeAt(t)>=u1&&e.charCodeAt(t)<=nw;)c=c*10+(e.charCodeAt(t)-u1),t++;return t===o?null:c}function u(){for(;t<e.length&&rw.has(e.charCodeAt(t));)t++}}Ac.parse=iw});var l1=U(Vn=>{"use strict";var sw=Vn&&Vn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vn,"__esModule",{value:!0});Vn.generate=Vn.compile=void 0;var c1=sw(zn());function aw(e){var t=e[0],r=e[1]-1;if(r<0&&t<=0)return c1.default.falseFunc;if(t===-1)return function(s){return s<=r};if(t===0)return function(s){return s===r};if(t===1)return r<0?c1.default.trueFunc:function(s){return s>=r};var n=Math.abs(t),i=(r%n+n)%n;return t>1?function(s){return s>=r&&s%n===i}:function(s){return s<=r&&s%n===i}}Vn.compile=aw;function uw(e){var t=e[0],r=e[1]-1,n=0;if(t<0){var i=-t,s=(r%i+i)%i;return function(){var a=s+i*n++;return a>r?null:a}}return t===0?r<0?function(){return null}:function(){return n++==0?r:null}:(r<0&&(r+=t*Math.ceil(-r/t)),function(){return t*n+++r})}Vn.generate=uw});var f1=U(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.sequence=yr.generate=yr.compile=yr.parse=void 0;var zd=o1();Object.defineProperty(yr,"parse",{enumerable:!0,get:function(){return zd.parse}});var yc=l1();Object.defineProperty(yr,"compile",{enumerable:!0,get:function(){return yc.compile}});Object.defineProperty(yr,"generate",{enumerable:!0,get:function(){return yc.generate}});function ow(e){return(0,yc.compile)((0,zd.parse)(e))}yr.default=ow;function cw(e){return(0,yc.generate)((0,zd.parse)(e))}yr.sequence=cw});var h1=U(Di=>{"use strict";var d1=Di&&Di.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Di,"__esModule",{value:!0});Di.filters=void 0;var Ic=d1(f1()),tr=d1(zn());function vc(e,t){return function(r){var n=t.getParent(r);return n!=null&&t.isTag(n)&&e(r)}}Di.filters={contains:function(e,t,r){var n=r.adapter;return function(s){return e(s)&&n.getText(s).includes(t)}},icontains:function(e,t,r){var n=r.adapter,i=t.toLowerCase();return function(a){return e(a)&&n.getText(a).toLowerCase().includes(i)}},"nth-child":function(e,t,r){var n=r.adapter,i=r.equals,s=(0,Ic.default)(t);return s===tr.default.falseFunc?tr.default.falseFunc:s===tr.default.trueFunc?vc(e,n):function(u){for(var o=n.getSiblings(u),c=0,h=0;h<o.length&&!i(u,o[h]);h++)n.isTag(o[h])&&c++;return s(c)&&e(u)}},"nth-last-child":function(e,t,r){var n=r.adapter,i=r.equals,s=(0,Ic.default)(t);return s===tr.default.falseFunc?tr.default.falseFunc:s===tr.default.trueFunc?vc(e,n):function(u){for(var o=n.getSiblings(u),c=0,h=o.length-1;h>=0&&!i(u,o[h]);h--)n.isTag(o[h])&&c++;return s(c)&&e(u)}},"nth-of-type":function(e,t,r){var n=r.adapter,i=r.equals,s=(0,Ic.default)(t);return s===tr.default.falseFunc?tr.default.falseFunc:s===tr.default.trueFunc?vc(e,n):function(u){for(var o=n.getSiblings(u),c=0,h=0;h<o.length;h++){var d=o[h];if(i(u,d))break;n.isTag(d)&&n.getName(d)===n.getName(u)&&c++}return s(c)&&e(u)}},"nth-last-of-type":function(e,t,r){var n=r.adapter,i=r.equals,s=(0,Ic.default)(t);return s===tr.default.falseFunc?tr.default.falseFunc:s===tr.default.trueFunc?vc(e,n):function(u){for(var o=n.getSiblings(u),c=0,h=o.length-1;h>=0;h--){var d=o[h];if(i(u,d))break;n.isTag(d)&&n.getName(d)===n.getName(u)&&c++}return s(c)&&e(u)}},root:function(e,t,r){var n=r.adapter;return function(i){var s=n.getParent(i);return(s==null||!n.isTag(s))&&e(i)}},scope:function(e,t,r,n){var i=r.equals;return!n||n.length===0?Di.filters.root(e,t,r):n.length===1?function(s){return i(n[0],s)&&e(s)}:function(s){return n.includes(s)&&e(s)}},hover:Vd("isHovered"),visited:Vd("isVisited"),active:Vd("isActive")};function Vd(e){return function(r,n,i){var s=i.adapter,a=s[e];return typeof a!="function"?tr.default.falseFunc:function(o){return a(o)&&r(o)}}}});var p1=U(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.verifyPseudoArgs=Ms.pseudos=void 0;Ms.pseudos={empty:function(e,t){var r=t.adapter;return!r.getChildren(e).some(function(n){return r.isTag(n)||r.getText(n)!==""})},"first-child":function(e,t){var r=t.adapter,n=t.equals;if(r.prevElementSibling)return r.prevElementSibling(e)==null;var i=r.getSiblings(e).find(function(s){return r.isTag(s)});return i!=null&&n(e,i)},"last-child":function(e,t){for(var r=t.adapter,n=t.equals,i=r.getSiblings(e),s=i.length-1;s>=0;s--){if(n(e,i[s]))return!0;if(r.isTag(i[s]))break}return!1},"first-of-type":function(e,t){for(var r=t.adapter,n=t.equals,i=r.getSiblings(e),s=r.getName(e),a=0;a<i.length;a++){var u=i[a];if(n(e,u))return!0;if(r.isTag(u)&&r.getName(u)===s)break}return!1},"last-of-type":function(e,t){for(var r=t.adapter,n=t.equals,i=r.getSiblings(e),s=r.getName(e),a=i.length-1;a>=0;a--){var u=i[a];if(n(e,u))return!0;if(r.isTag(u)&&r.getName(u)===s)break}return!1},"only-of-type":function(e,t){var r=t.adapter,n=t.equals,i=r.getName(e);return r.getSiblings(e).every(function(s){return n(e,s)||!r.isTag(s)||r.getName(s)!==i})},"only-child":function(e,t){var r=t.adapter,n=t.equals;return r.getSiblings(e).every(function(i){return n(e,i)||!r.isTag(i)})}};function lw(e,t,r,n){if(r===null){if(e.length>n)throw new Error("Pseudo-class :".concat(t," requires an argument"))}else if(e.length===n)throw new Error("Pseudo-class :".concat(t," doesn't have any arguments"))}Ms.verifyPseudoArgs=lw});var m1=U(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.aliases=void 0;Cc.aliases={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
|
||
:is(button, input, select, textarea, optgroup, option)[disabled],
|
||
optgroup[disabled] > option,
|
||
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
|
||
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"}});var Dc=U(Nt=>{"use strict";var g1=Nt&&Nt.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))},fw=Nt&&Nt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Nt,"__esModule",{value:!0});Nt.subselects=Nt.getNextSiblings=Nt.ensureIsTag=Nt.PLACEHOLDER_ELEMENT=void 0;var Ir=fw(zn()),dw=qd();Nt.PLACEHOLDER_ELEMENT={};function _1(e,t){return e===Ir.default.falseFunc?Ir.default.falseFunc:function(r){return t.isTag(r)&&e(r)}}Nt.ensureIsTag=_1;function T1(e,t){var r=t.getSiblings(e);if(r.length<=1)return[];var n=r.indexOf(e);return n<0||n===r.length-1?[]:r.slice(n+1).filter(t.isTag)}Nt.getNextSiblings=T1;function Kd(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 Wd=function(e,t,r,n,i){var s=i(t,Kd(r),n);return s===Ir.default.trueFunc?e:s===Ir.default.falseFunc?Ir.default.falseFunc:function(a){return s(a)&&e(a)}};Nt.subselects={is:Wd,matches:Wd,where:Wd,not:function(e,t,r,n,i){var s=i(t,Kd(r),n);return s===Ir.default.falseFunc?e:s===Ir.default.trueFunc?Ir.default.falseFunc:function(a){return!s(a)&&e(a)}},has:function(e,t,r,n,i){var s=r.adapter,a=Kd(r);a.relativeSelector=!0;var u=t.some(function(f){return f.some(dw.isTraversal)})?[Nt.PLACEHOLDER_ELEMENT]:void 0,o=i(t,a,u);if(o===Ir.default.falseFunc)return Ir.default.falseFunc;var c=_1(o,s);if(u&&o!==Ir.default.trueFunc){var h=o.shouldTestNextSiblings,d=h===void 0?!1:h;return function(f){if(!e(f))return!1;u[0]=f;var g=s.getChildren(f),y=d?g1(g1([],g,!0),T1(f,s),!0):g;return s.existsOne(c,y)}}return function(f){return e(f)&&s.existsOne(c,s.getChildren(f))}}}});var $d=U(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.compilePseudoSelector=Fr.aliases=Fr.pseudos=Fr.filters=void 0;var hw=Ps(),Yd=h1();Object.defineProperty(Fr,"filters",{enumerable:!0,get:function(){return Yd.filters}});var iu=p1();Object.defineProperty(Fr,"pseudos",{enumerable:!0,get:function(){return iu.pseudos}});var b1=m1();Object.defineProperty(Fr,"aliases",{enumerable:!0,get:function(){return b1.aliases}});var Qd=Dc();function pw(e,t,r,n,i){var s,a=t.name,u=t.data;if(Array.isArray(u)){if(!(a in Qd.subselects))throw new Error("Unknown pseudo-class :".concat(a,"(").concat(u,")"));return Qd.subselects[a](e,u,r,n,i)}var o=(s=r.pseudos)===null||s===void 0?void 0:s[a],c=typeof o=="string"?o:b1.aliases[a];if(typeof c=="string"){if(u!=null)throw new Error("Pseudo ".concat(a," doesn't have any arguments"));var h=(0,hw.parse)(c);return Qd.subselects.is(e,h,r,n,i)}if(typeof o=="function")return(0,iu.verifyPseudoArgs)(o,a,u,1),function(f){return o(f,u)&&e(f)};if(a in Yd.filters)return Yd.filters[a](e,u,r,n);if(a in iu.pseudos){var d=iu.pseudos[a];return(0,iu.verifyPseudoArgs)(d,a,u,2),function(f){return d(f,r,u)&&e(f)}}throw new Error("Unknown pseudo-class :".concat(a))}Fr.compilePseudoSelector=pw});var E1=U(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.compileGeneralSelector=void 0;var mw=a1(),gw=$d(),vr=Ps();function Xd(e,t){var r=t.getParent(e);return r&&t.isTag(r)?r:null}function _w(e,t,r,n,i){var s=r.adapter,a=r.equals;switch(t.type){case vr.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case vr.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case vr.SelectorType.Attribute:{if(t.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),mw.attributeRules[t.action](e,t,r)}case vr.SelectorType.Pseudo:return(0,gw.compilePseudoSelector)(e,t,r,n,i);case vr.SelectorType.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");var u=t.name;return(!r.xmlMode||r.lowerCaseTags)&&(u=u.toLowerCase()),function(h){return s.getName(h)===u&&e(h)}}case vr.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet=="undefined")return function(h){for(var d=h;d=Xd(d,s);)if(e(d))return!0;return!1};var o=new WeakSet;return function(h){for(var d=h;d=Xd(d,s);)if(!o.has(d)){if(s.isTag(d)&&e(d))return!0;o.add(d)}return!1}}case"_flexibleDescendant":return function(h){var d=h;do if(e(d))return!0;while(d=Xd(d,s));return!1};case vr.SelectorType.Parent:return function(h){return s.getChildren(h).some(function(d){return s.isTag(d)&&e(d)})};case vr.SelectorType.Child:return function(h){var d=s.getParent(h);return d!=null&&s.isTag(d)&&e(d)};case vr.SelectorType.Sibling:return function(h){for(var d=s.getSiblings(h),f=0;f<d.length;f++){var g=d[f];if(a(h,g))break;if(s.isTag(g)&&e(g))return!0}return!1};case vr.SelectorType.Adjacent:return s.prevElementSibling?function(h){var d=s.prevElementSibling(h);return d!=null&&e(d)}:function(h){for(var d=s.getSiblings(h),f,g=0;g<d.length;g++){var y=d[g];if(a(h,y))break;s.isTag(y)&&(f=y)}return!!f&&e(f)};case vr.SelectorType.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}Sc.compileGeneralSelector=_w});var v1=U(vt=>{"use strict";var Tw=vt&&vt.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),bw=vt&&vt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Ew=vt&&vt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Tw(t,e,r);return bw(t,e),t},Aw=vt&&vt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vt,"__esModule",{value:!0});vt.compileToken=vt.compileUnsafe=vt.compile=void 0;var cn=Ps(),Kn=Aw(zn()),Zd=Ew(qd()),yw=E1(),A1=Dc();function Iw(e,t,r){var n=y1(e,t,r);return(0,A1.ensureIsTag)(n,t.adapter)}vt.compile=Iw;function y1(e,t,r){var n=typeof e=="string"?(0,cn.parse)(e):e;return Jd(n,t,r)}vt.compileUnsafe=y1;function I1(e){return e.type===cn.SelectorType.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(function(t){return t.some(I1)}))}var vw={type:cn.SelectorType.Descendant},Cw={type:"_flexibleDescendant"},Dw={type:cn.SelectorType.Pseudo,name:"scope",data:null};function Sw(e,t,r){for(var n=t.adapter,i=!!(r==null?void 0:r.every(function(o){var c=n.isTag(o)&&n.getParent(o);return o===A1.PLACEHOLDER_ELEMENT||c&&n.isTag(c)})),s=0,a=e;s<a.length;s++){var u=a[s];if(!(u.length>0&&(0,Zd.isTraversal)(u[0])&&u[0].type!==cn.SelectorType.Descendant))if(i&&!u.some(I1))u.unshift(vw);else continue;u.unshift(Dw)}}function Jd(e,t,r){var n;e.forEach(Zd.default),r=(n=t.context)!==null&&n!==void 0?n:r;var i=Array.isArray(r),s=r&&(Array.isArray(r)?r:[r]);if(t.relativeSelector!==!1)Sw(e,t,s);else if(e.some(function(o){return o.length>0&&(0,Zd.isTraversal)(o[0])}))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");var a=!1,u=e.map(function(o){if(o.length>=2){var c=o[0],h=o[1];c.type!==cn.SelectorType.Pseudo||c.name!=="scope"||(i&&h.type===cn.SelectorType.Descendant?o[1]=Cw:(h.type===cn.SelectorType.Adjacent||h.type===cn.SelectorType.Sibling)&&(a=!0))}return xw(o,t,s)}).reduce(Ow,Kn.default.falseFunc);return u.shouldTestNextSiblings=a,u}vt.compileToken=Jd;function xw(e,t,r){var n;return e.reduce(function(i,s){return i===Kn.default.falseFunc?Kn.default.falseFunc:(0,yw.compileGeneralSelector)(i,s,t,r,Jd)},(n=t.rootFunc)!==null&&n!==void 0?n:Kn.default.trueFunc)}function Ow(e,t){return t===Kn.default.falseFunc||e===Kn.default.trueFunc?e:e===Kn.default.falseFunc||t===Kn.default.trueFunc?t:function(n){return e(n)||t(n)}}});var nh=U(Te=>{"use strict";var Nw=Te&&Te.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),ww=Te&&Te.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Rw=Te&&Te.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Nw(t,e,r);return ww(t,e),t},Pw=Te&&Te.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Te,"__esModule",{value:!0});Te.aliases=Te.pseudos=Te.filters=Te.is=Te.selectOne=Te.selectAll=Te.prepareContext=Te._compileToken=Te._compileUnsafe=Te.compile=void 0;var C1=Rw(Ar()),D1=Pw(zn()),su=v1(),Lw=Dc(),S1=function(e,t){return e===t},Mw={adapter:C1,equals:S1};function eh(e){var t,r,n,i,s=e??Mw;return(t=s.adapter)!==null&&t!==void 0||(s.adapter=C1),(r=s.equals)!==null&&r!==void 0||(s.equals=(i=(n=s.adapter)===null||n===void 0?void 0:n.equals)!==null&&i!==void 0?i:S1),s}function th(e){return function(r,n,i){var s=eh(n);return e(r,s,i)}}Te.compile=th(su.compile);Te._compileUnsafe=th(su.compileUnsafe);Te._compileToken=th(su.compileToken);function x1(e){return function(r,n,i){var s=eh(i);typeof r!="function"&&(r=(0,su.compileUnsafe)(r,s,n));var a=O1(n,s.adapter,r.shouldTestNextSiblings);return e(r,a,s)}}function O1(e,t,r){return r===void 0&&(r=!1),r&&(e=kw(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}Te.prepareContext=O1;function kw(e,t){for(var r=Array.isArray(e)?e.slice(0):[e],n=r.length,i=0;i<n;i++){var s=(0,Lw.getNextSiblings)(r[i],t);r.push.apply(r,s)}return r}Te.selectAll=x1(function(e,t,r){return e===D1.default.falseFunc||!t||t.length===0?[]:r.adapter.findAll(e,t)});Te.selectOne=x1(function(e,t,r){return e===D1.default.falseFunc||!t||t.length===0?null:r.adapter.findOne(e,t)});function Fw(e,t,r){var n=eh(r);return(typeof t=="function"?t:(0,su.compile)(t,n))(e)}Te.is=Fw;Te.default=Te.selectAll;var rh=$d();Object.defineProperty(Te,"filters",{enumerable:!0,get:function(){return rh.filters}});Object.defineProperty(Te,"pseudos",{enumerable:!0,get:function(){return rh.pseudos}});Object.defineProperty(Te,"aliases",{enumerable:!0,get:function(){return rh.aliases}})});var ih=U(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.getLimit=ln.isFilter=ln.filterNames=void 0;ln.filterNames=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function N1(e){return e.type!=="pseudo"?!1:ln.filterNames.has(e.name)?!0:e.name==="not"&&Array.isArray(e.data)?e.data.some(function(t){return t.some(N1)}):!1}ln.isFilter=N1;function Bw(e,t,r){var n=t!=null?parseInt(t,10):NaN;switch(e){case"first":return 1;case"nth":case"eq":return isFinite(n)?n>=0?n+1:1/0:0;case"lt":return isFinite(n)?n>=0?Math.min(n,r):1/0:0;case"gt":return isFinite(n)?1/0:0;case"odd":return 2*r;case"even":return 2*r-1;case"last":case"not":return 1/0}}ln.getLimit=Bw});var w1=U(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.groupSelectors=ks.getDocumentRoot=void 0;var jw=ih();function Hw(e){for(;e.parent;)e=e.parent;return e}ks.getDocumentRoot=Hw;function Uw(e){for(var t=[],r=[],n=0,i=e;n<i.length;n++){var s=i[n];s.some(jw.isFilter)?t.push(s):r.push(s)}return[r,t]}ks.groupSelectors=Uw});var B1=U(Pe=>{"use strict";var Wn=Pe&&Pe.__assign||function(){return Wn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Wn.apply(this,arguments)},Gw=Pe&&Pe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),qw=Pe&&Pe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),R1=Pe&&Pe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Gw(t,e,r);return qw(t,e),t},P1=Pe&&Pe.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.select=Pe.filter=Pe.some=Pe.is=Pe.aliases=Pe.pseudos=Pe.filters=void 0;var Cr=Ps(),au=nh(),Br=R1(Ar()),sh=R1(zn()),xc=w1(),ah=ih(),uh=nh();Object.defineProperty(Pe,"filters",{enumerable:!0,get:function(){return uh.filters}});Object.defineProperty(Pe,"pseudos",{enumerable:!0,get:function(){return uh.pseudos}});Object.defineProperty(Pe,"aliases",{enumerable:!0,get:function(){return uh.aliases}});var zw={type:Cr.SelectorType.Universal,namespace:null},Vw={type:Cr.SelectorType.Pseudo,name:"scope",data:null};function Kw(e,t,r){return r===void 0&&(r={}),L1([e],t,r)}Pe.is=Kw;function L1(e,t,r){if(r===void 0&&(r={}),typeof t=="function")return e.some(t);var n=(0,xc.groupSelectors)((0,Cr.parse)(t)),i=n[0],s=n[1];return i.length>0&&e.some((0,au._compileToken)(i,r))||s.some(function(a){return k1(a,e,r).length>0})}Pe.some=L1;function Ww(e,t,r,n){var i=typeof r=="string"?parseInt(r,10):NaN;switch(e){case"first":case"lt":return t;case"last":return t.length>0?[t[t.length-1]]:t;case"nth":case"eq":return isFinite(i)&&Math.abs(i)<t.length?[i<0?t[t.length+i]:t[i]]:[];case"gt":return isFinite(i)?t.slice(i+1):[];case"even":return t.filter(function(a,u){return u%2==0});case"odd":return t.filter(function(a,u){return u%2==1});case"not":{var s=new Set(M1(r,t,n));return t.filter(function(a){return!s.has(a)})}}}function Yw(e,t,r){return r===void 0&&(r={}),M1((0,Cr.parse)(e),t,r)}Pe.filter=Yw;function M1(e,t,r){if(t.length===0)return[];var n=(0,xc.groupSelectors)(e),i=n[0],s=n[1],a;if(i.length){var u=ch(t,i,r);if(s.length===0)return u;u.length&&(a=new Set(u))}for(var o=0;o<s.length&&(a==null?void 0:a.size)!==t.length;o++){var c=s[o],h=a?t.filter(function(f){return Br.isTag(f)&&!a.has(f)}):t;if(h.length===0)break;var u=k1(c,t,r);if(u.length)if(a)u.forEach(function(f){return a.add(f)});else{if(o===s.length-1)return u;a=new Set(u)}}return typeof a!="undefined"?a.size===t.length?t:t.filter(function(d){return a.has(d)}):[]}function k1(e,t,r){var n;if(e.some(Cr.isTraversal)){var i=(n=r.root)!==null&&n!==void 0?n:(0,xc.getDocumentRoot)(t[0]),s=Wn(Wn({},r),{context:t,relativeSelector:!1});return e.push(Vw),Oc(i,e,s,!0,t.length)}return Oc(t,e,r,!1,t.length)}function Qw(e,t,r,n){if(r===void 0&&(r={}),n===void 0&&(n=1/0),typeof e=="function")return F1(t,e);var i=(0,xc.groupSelectors)((0,Cr.parse)(e)),s=i[0],a=i[1],u=a.map(function(o){return Oc(t,o,r,!0,n)});return s.length&&u.push(oh(t,s,r,n)),u.length===0?[]:u.length===1?u[0]:Br.uniqueSort(u.reduce(function(o,c){return P1(P1([],o,!0),c,!0)}))}Pe.select=Qw;function Oc(e,t,r,n,i){var s=t.findIndex(ah.isFilter),a=t.slice(0,s),u=t[s],o=t.length-1===s?i:1/0,c=(0,ah.getLimit)(u.name,u.data,o);if(c===0)return[];var h=a.length===0&&!Array.isArray(e)?Br.getChildren(e).filter(Br.isTag):a.length===0?(Array.isArray(e)?e:[e]).filter(Br.isTag):n||a.some(Cr.isTraversal)?oh(e,[a],r,c):ch(e,[a],r),d=h.slice(0,c),f=Ww(u.name,d,u.data,r);if(f.length===0||t.length===s+1)return f;var g=t.slice(s+1),y=g.some(Cr.isTraversal);if(y){if((0,Cr.isTraversal)(g[0])){var b=g[0].type;(b===Cr.SelectorType.Sibling||b===Cr.SelectorType.Adjacent)&&(f=(0,au.prepareContext)(f,Br,!0)),g.unshift(zw)}r=Wn(Wn({},r),{relativeSelector:!1,rootFunc:function(D){return f.includes(D)}})}else r.rootFunc&&r.rootFunc!==sh.trueFunc&&(r=Wn(Wn({},r),{rootFunc:sh.trueFunc}));return g.some(ah.isFilter)?Oc(f,g,r,!1,i):y?oh(f,[g],r,i):ch(f,[g],r)}function oh(e,t,r,n){var i=(0,au._compileToken)(t,r,e);return F1(e,i,n)}function F1(e,t,r){r===void 0&&(r=1/0);var n=(0,au.prepareContext)(e,Br,t.shouldTestNextSiblings);return Br.find(function(i){return Br.isTag(i)&&t(i)},n,!0,r)}function ch(e,t,r){var n=(Array.isArray(e)?e:[e]).filter(Br.isTag);if(n.length===0)return n;var i=(0,au._compileToken)(t,r);return i===sh.trueFunc?n:n.filter(i)}});var j1=U(K=>{"use strict";var $w=K&&K.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Xw=K&&K.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Zw=K&&K.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&$w(t,e,r);return Xw(t,e),t},lh=K&&K.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};Object.defineProperty(K,"__esModule",{value:!0});K.addBack=K.add=K.end=K.slice=K.index=K.toArray=K.get=K.eq=K.last=K.first=K.has=K.not=K.is=K.filterArray=K.filter=K.map=K.each=K.contents=K.children=K.siblings=K.prevUntil=K.prevAll=K.prev=K.nextUntil=K.nextAll=K.next=K.closest=K.parentsUntil=K.parents=K.parent=K.find=void 0;var Nc=yt(),Fs=Zw(B1()),Dr=vi(),Jw=yi(),jr=Ar(),eR=/^\s*[~+]/;function tR(e){var t;if(!e)return this._make([]);var r=this.toArray();if(typeof e!="string"){var n=(0,Dr.isCheerio)(e)?e.toArray():[e];return this._make(n.filter(function(a){return r.some(function(u){return(0,Jw.contains)(u,a)})}))}var i=eR.test(e)?r:this.children().toArray(),s={context:r,root:(t=this._root)===null||t===void 0?void 0:t[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(Fs.select(e,i,s))}K.find=tR;function fh(e){return function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return function(i){var s,a=e(t,this);return i&&(a=ph(a,i,this.options.xmlMode,(s=this._root)===null||s===void 0?void 0:s[0])),this._make(this.length>1&&a.length>1?r.reduce(function(u,o){return o(u)},a):a)}}}var uu=fh(function(e,t){for(var r,n=[],i=0;i<t.length;i++){var s=e(t[i]);n.push(s)}return(r=new Array).concat.apply(r,n)}),dh=fh(function(e,t){for(var r=[],n=0;n<t.length;n++){var i=e(t[n]);i!==null&&r.push(i)}return r});function hh(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=null,i=fh(function(s,a){var u=[];return(0,Dr.domEach)(a,function(o){for(var c;(c=s(o))&&!(n==null?void 0:n(c,u.length));o=c)u.push(c)}),u}).apply(void 0,lh([e],t,!1));return function(s,a){var u=this;n=typeof s=="string"?function(c){return Fs.is(c,s,u.options)}:s?ou(s):null;var o=i.call(this,a);return n=null,o}}function Bs(e){return Array.from(new Set(e))}K.parent=dh(function(e){var t=e.parent;return t&&!(0,Nc.isDocument)(t)?t:null},Bs);K.parents=uu(function(e){for(var t=[];e.parent&&!(0,Nc.isDocument)(e.parent);)t.push(e.parent),e=e.parent;return t},jr.uniqueSort,function(e){return e.reverse()});K.parentsUntil=hh(function(e){var t=e.parent;return t&&!(0,Nc.isDocument)(t)?t:null},jr.uniqueSort,function(e){return e.reverse()});function rR(e){var t,r=[];if(!e)return this._make(r);var n={xmlMode:this.options.xmlMode,root:(t=this._root)===null||t===void 0?void 0:t[0]},i=typeof e=="string"?function(s){return Fs.is(s,e,n)}:ou(e);return(0,Dr.domEach)(this,function(s){for(;s&&(0,Dr.isTag)(s);){if(i(s,0)){r.includes(s)||r.push(s);break}s=s.parent}}),this._make(r)}K.closest=rR;K.next=dh(function(e){return(0,jr.nextElementSibling)(e)});K.nextAll=uu(function(e){for(var t=[];e.next;)e=e.next,(0,Dr.isTag)(e)&&t.push(e);return t},Bs);K.nextUntil=hh(function(e){return(0,jr.nextElementSibling)(e)},Bs);K.prev=dh(function(e){return(0,jr.prevElementSibling)(e)});K.prevAll=uu(function(e){for(var t=[];e.prev;)e=e.prev,(0,Dr.isTag)(e)&&t.push(e);return t},Bs);K.prevUntil=hh(function(e){return(0,jr.prevElementSibling)(e)},Bs);K.siblings=uu(function(e){return(0,jr.getSiblings)(e).filter(function(t){return(0,Dr.isTag)(t)&&t!==e})},jr.uniqueSort);K.children=uu(function(e){return(0,jr.getChildren)(e).filter(Dr.isTag)},Bs);function nR(){var e=this.toArray().reduce(function(t,r){return(0,Nc.hasChildren)(r)?t.concat(r.children):t},[]);return this._make(e)}K.contents=nR;function iR(e){for(var t=0,r=this.length;t<r&&e.call(this[t],t,this[t])!==!1;)++t;return this}K.each=iR;function sR(e){for(var t=[],r=0;r<this.length;r++){var n=this[r],i=e.call(n,r,n);i!=null&&(t=t.concat(i))}return this._make(t)}K.map=sR;function ou(e){return typeof e=="function"?function(t,r){return e.call(t,r,t)}:(0,Dr.isCheerio)(e)?function(t){return Array.prototype.includes.call(e,t)}:function(t){return e===t}}function aR(e){var t;return this._make(ph(this.toArray(),e,this.options.xmlMode,(t=this._root)===null||t===void 0?void 0:t[0]))}K.filter=aR;function ph(e,t,r,n){return typeof t=="string"?Fs.filter(t,e,{xmlMode:r,root:n}):e.filter(ou(t))}K.filterArray=ph;function uR(e){var t=this.toArray();return typeof e=="string"?Fs.some(t.filter(Dr.isTag),e,this.options):e?t.some(ou(e)):!1}K.is=uR;function oR(e){var t=this.toArray();if(typeof e=="string"){var r=new Set(Fs.filter(e,t,this.options));t=t.filter(function(i){return!r.has(i)})}else{var n=ou(e);t=t.filter(function(i,s){return!n(i,s)})}return this._make(t)}K.not=oR;function cR(e){var t=this;return this.filter(typeof e=="string"?":has(".concat(e,")"):function(r,n){return t._make(n).find(e).length>0})}K.has=cR;function lR(){return this.length>1?this._make(this[0]):this}K.first=lR;function fR(){return this.length>0?this._make(this[this.length-1]):this}K.last=fR;function dR(e){var t;return e=+e,e===0&&this.length<=1?this:(e<0&&(e=this.length+e),this._make((t=this[e])!==null&&t!==void 0?t:[]))}K.eq=dR;function hR(e){return e==null?this.toArray():this[e<0?this.length+e:e]}K.get=hR;function pR(){return Array.prototype.slice.call(this)}K.toArray=pR;function mR(e){var t,r;return e==null?(t=this.parent().children(),r=this[0]):typeof e=="string"?(t=this._make(e),r=this[0]):(t=this,r=(0,Dr.isCheerio)(e)?e[0]:e),Array.prototype.indexOf.call(t,r)}K.index=mR;function gR(e,t){return this._make(Array.prototype.slice.call(this,e,t))}K.slice=gR;function _R(){var e;return(e=this.prevObject)!==null&&e!==void 0?e:this._make([])}K.end=_R;function TR(e,t){var r=this._make(e,t),n=(0,jr.uniqueSort)(lh(lh([],this.get(),!0),r.get(),!0));return this._make(n)}K.add=TR;function bR(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this}K.addBack=bR});var mh=U(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.update=js.getParse=void 0;var ER=Ar(),H1=yt();function AR(e){return function(r,n,i,s){if(typeof Buffer!="undefined"&&Buffer.isBuffer(r)&&(r=r.toString()),typeof r=="string")return e(r,n,i,s);var a=r;if(!Array.isArray(a)&&(0,H1.isDocument)(a))return a;var u=new H1.Document([]);return U1(a,u),u}}js.getParse=AR;function U1(e,t){var r=Array.isArray(e)?e:[e];t?t.children=r:t=null;for(var n=0;n<r.length;n++){var i=r[n];i.parent&&i.parent.children!==r&&(0,ER.removeElement)(i),t?(i.prev=r[n-1]||null,i.next=r[n+1]||null):i.prev=i.next=null,i.parent=t}return t}js.update=U1});var V1=U(oe=>{"use strict";var yR=oe&&oe.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};Object.defineProperty(oe,"__esModule",{value:!0});oe.clone=oe.text=oe.toString=oe.html=oe.empty=oe.replaceWith=oe.remove=oe.insertBefore=oe.before=oe.insertAfter=oe.after=oe.wrapAll=oe.unwrap=oe.wrapInner=oe.wrap=oe.prepend=oe.append=oe.prependTo=oe.appendTo=oe._makeDomArray=void 0;var Hr=yt(),Hs=mh(),G1=yi(),st=vi(),IR=Ar();function vR(e,t){var r=this;return e==null?[]:(0,st.isCheerio)(e)?t?(0,st.cloneDom)(e.get()):e.get():Array.isArray(e)?e.reduce(function(n,i){return n.concat(r._makeDomArray(i,t))},[]):typeof e=="string"?this._parse(e,this.options,!1,null).children:t?(0,st.cloneDom)([e]):[e]}oe._makeDomArray=vR;function q1(e){return function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=this.length-1;return(0,st.domEach)(this,function(s,a){if(!!(0,Hr.hasChildren)(s)){var u=typeof r[0]=="function"?r[0].call(s,a,t._render(s.children)):r,o=t._makeDomArray(u,a<i);e(o,s.children,s)}})}}function Yn(e,t,r,n,i){for(var s,a,u=yR([t,r],n,!0),o=t===0?null:e[t-1],c=t+r>=e.length?null:e[t+r],h=0;h<n.length;++h){var d=n[h],f=d.parent;if(f){var g=f.children,y=g.indexOf(d);y>-1&&(f.children.splice(y,1),i===f&&t>y&&u[0]--)}d.parent=i,d.prev&&(d.prev.next=(s=d.next)!==null&&s!==void 0?s:null),d.next&&(d.next.prev=(a=d.prev)!==null&&a!==void 0?a:null),d.prev=h===0?o:n[h-1],d.next=h===n.length-1?c:n[h+1]}return o&&(o.next=n[0]),c&&(c.prev=n[n.length-1]),e.splice.apply(e,u)}function CR(e){var t=(0,st.isCheerio)(e)?e:this._make(e);return t.append(this),this}oe.appendTo=CR;function DR(e){var t=(0,st.isCheerio)(e)?e:this._make(e);return t.prepend(this),this}oe.prependTo=DR;oe.append=q1(function(e,t,r){Yn(t,t.length,0,e,r)});oe.prepend=q1(function(e,t,r){Yn(t,0,0,e,r)});function z1(e){return function(t){for(var r=this.length-1,n=this.parents().last(),i=0;i<this.length;i++){var s=this[i],a=typeof t=="function"?t.call(s,i,s):typeof t=="string"&&!(0,st.isHtml)(t)?n.find(t).clone():t,u=this._makeDomArray(a,i<r)[0];if(!(!u||!(0,Hr.hasChildren)(u))){for(var o=u,c=0;c<o.children.length;){var h=o.children[c];(0,st.isTag)(h)?(o=h,c=0):c++}e(s,o,[u])}}return this}}oe.wrap=z1(function(e,t,r){var n=e.parent;if(!!n){var i=n.children,s=i.indexOf(e);(0,Hs.update)([e],t),Yn(i,s,0,r,n)}});oe.wrapInner=z1(function(e,t,r){!(0,Hr.hasChildren)(e)||((0,Hs.update)(e.children,t),(0,Hs.update)(r,e))});function SR(e){var t=this;return this.parent(e).not("body").each(function(r,n){t._make(n).replaceWith(n.children)}),this}oe.unwrap=SR;function xR(e){var t=this[0];if(t){for(var r=this._make(typeof e=="function"?e.call(t,0,t):e).insertBefore(t),n=void 0,i=0;i<r.length;i++)r[i].type==="tag"&&(n=r[i]);for(var s=0;n&&s<n.children.length;){var a=n.children[s];a.type==="tag"?(n=a,s=0):s++}n&&this._make(n).append(this)}return this}oe.wrapAll=xR;function OR(){for(var e=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=this.length-1;return(0,st.domEach)(this,function(i,s){var a=i.parent;if(!(!(0,Hr.hasChildren)(i)||!a)){var u=a.children,o=u.indexOf(i);if(!(o<0)){var c=typeof t[0]=="function"?t[0].call(i,s,e._render(i.children)):t,h=e._makeDomArray(c,s<n);Yn(u,o+1,0,h,a)}}})}oe.after=OR;function NR(e){var t=this;typeof e=="string"&&(e=this._make(e)),this.remove();var r=[];return this._makeDomArray(e).forEach(function(n){var i=t.clone().toArray(),s=n.parent;if(!!s){var a=s.children,u=a.indexOf(n);u<0||(Yn(a,u+1,0,i,s),r.push.apply(r,i))}}),this._make(r)}oe.insertAfter=NR;function wR(){for(var e=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=this.length-1;return(0,st.domEach)(this,function(i,s){var a=i.parent;if(!(!(0,Hr.hasChildren)(i)||!a)){var u=a.children,o=u.indexOf(i);if(!(o<0)){var c=typeof t[0]=="function"?t[0].call(i,s,e._render(i.children)):t,h=e._makeDomArray(c,s<n);Yn(u,o,0,h,a)}}})}oe.before=wR;function RR(e){var t=this,r=this._make(e);this.remove();var n=[];return(0,st.domEach)(r,function(i){var s=t.clone().toArray(),a=i.parent;if(!!a){var u=a.children,o=u.indexOf(i);o<0||(Yn(u,o,0,s,a),n.push.apply(n,s))}}),this._make(n)}oe.insertBefore=RR;function PR(e){var t=e?this.filter(e):this;return(0,st.domEach)(t,function(r){(0,IR.removeElement)(r),r.prev=r.next=r.parent=null}),this}oe.remove=PR;function LR(e){var t=this;return(0,st.domEach)(this,function(r,n){var i=r.parent;if(!!i){var s=i.children,a=typeof e=="function"?e.call(r,n,r):e,u=t._makeDomArray(a);(0,Hs.update)(u,null);var o=s.indexOf(r);Yn(s,o,1,u,i),u.includes(r)||(r.parent=r.prev=r.next=null)}})}oe.replaceWith=LR;function MR(){return(0,st.domEach)(this,function(e){!(0,Hr.hasChildren)(e)||(e.children.forEach(function(t){t.next=t.prev=t.parent=null}),e.children.length=0)})}oe.empty=MR;function kR(e){var t=this;if(e===void 0){var r=this[0];return!r||!(0,Hr.hasChildren)(r)?null:this._render(r.children)}return(0,st.domEach)(this,function(n){if(!!(0,Hr.hasChildren)(n)){n.children.forEach(function(s){s.next=s.prev=s.parent=null});var i=(0,st.isCheerio)(e)?e.toArray():t._parse("".concat(e),t.options,!1,n).children;(0,Hs.update)(i,n)}})}oe.html=kR;function FR(){return this._render(this)}oe.toString=FR;function BR(e){var t=this;return e===void 0?(0,G1.text)(this):typeof e=="function"?(0,st.domEach)(this,function(r,n){return t._make(r).text(e.call(r,n,(0,G1.text)([r])))}):(0,st.domEach)(this,function(r){if(!!(0,Hr.hasChildren)(r)){r.children.forEach(function(i){i.next=i.prev=i.parent=null});var n=new Hr.Text("".concat(e));(0,Hs.update)(n,r)}})}oe.text=BR;function jR(){return this._make((0,st.cloneDom)(this.get()))}oe.clone=jR});var Y1=U(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});wc.css=void 0;var gh=vi();function HR(e,t){if(e!=null&&t!=null||typeof e=="object"&&!Array.isArray(e))return(0,gh.domEach)(this,function(r,n){(0,gh.isTag)(r)&&K1(r,e,t,n)});if(this.length!==0)return W1(this[0],e)}wc.css=HR;function K1(e,t,r,n){if(typeof t=="string"){var i=W1(e),s=typeof r=="function"?r.call(e,n,i[t]):r;s===""?delete i[t]:s!=null&&(i[t]=s),e.attribs.style=UR(i)}else typeof t=="object"&&Object.keys(t).forEach(function(a,u){K1(e,a,t[a],u)})}function W1(e,t){if(!(!e||!(0,gh.isTag)(e))){var r=GR(e.attribs.style);if(typeof t=="string")return r[t];if(Array.isArray(t)){var n={};return t.forEach(function(i){r[i]!=null&&(n[i]=r[i])}),n}return r}}function UR(e){return Object.keys(e).reduce(function(t,r){return"".concat(t).concat(t?" ":"").concat(r,": ").concat(e[r],";")},"")}function GR(e){if(e=(e||"").trim(),!e)return{};for(var t={},r,n=0,i=e.split(";");n<i.length;n++){var s=i[n],a=s.indexOf(":");if(a<1||a===s.length-1){var u=s.trimEnd();u.length>0&&r!==void 0&&(t[r]+=";".concat(u))}else r=s.slice(0,a).trim(),t[r]=s.slice(a+1).trim()}return t}});var X1=U(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.serializeArray=Us.serialize=void 0;var qR=vi(),Q1="input,select,textarea,keygen",zR=/%20/g,$1=/\r?\n/g;function VR(){var e=this.serializeArray(),t=e.map(function(r){return"".concat(encodeURIComponent(r.name),"=").concat(encodeURIComponent(r.value))});return t.join("&").replace(zR,"+")}Us.serialize=VR;function KR(){var e=this;return this.map(function(t,r){var n=e._make(r);return(0,qR.isTag)(r)&&r.name==="form"?n.find(Q1).toArray():n.filter(Q1).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map(function(t,r){var n,i=e._make(r),s=i.attr("name"),a=(n=i.val())!==null&&n!==void 0?n:"";return Array.isArray(a)?a.map(function(u){return{name:s,value:u.replace($1,`\r
|
||
`)}}):{name:s,value:a.replace($1,`\r
|
||
`)}}).toArray()}Us.serializeArray=KR});var Z1=U(Ur=>{"use strict";var WR=Ur&&Ur.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),YR=Ur&&Ur.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),cu=Ur&&Ur.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&WR(t,e,r);return YR(t,e),t};Object.defineProperty(Ur,"__esModule",{value:!0});Ur.Cheerio=void 0;var QR=cu(GE()),$R=cu(j1()),XR=cu(V1()),ZR=cu(Y1()),JR=cu(X1()),lu=function(){function e(t,r,n){if(this.length=0,this.options=n,this._root=r,t){for(var i=0;i<t.length;i++)this[i]=t[i];this.length=t.length}}return e}();Ur.Cheerio=lu;lu.prototype.cheerio="[cheerio object]";lu.prototype.splice=Array.prototype.splice;lu.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(lu.prototype,QR,$R,XR,ZR,JR)});var eA=U(Ut=>{"use strict";var eP=Ut&&Ut.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Gs=Ut&&Ut.__assign||function(){return Gs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Gs.apply(this,arguments)},tP=Ut&&Ut.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),rP=Ut&&Ut.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),J1=Ut&&Ut.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&tP(t,e,r);return rP(t,e),t};Object.defineProperty(Ut,"__esModule",{value:!0});Ut.getLoad=void 0;var _h=J1(hd()),nP=J1(yi()),iP=Z1(),fu=vi();function sP(e,t){return function r(n,i,s){if(s===void 0&&(s=!0),n==null)throw new Error("cheerio.load() expects a string");var a=Gs(Gs({},_h.default),(0,_h.flatten)(i)),u=e(n,a,s,null),o=function(h){eP(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.prototype._make=function(f,g){var y=c(f,g);return y.prevObject=this,y},d.prototype._parse=function(f,g,y,b){return e(f,g,y,b)},d.prototype._render=function(f){return t(f,this.options)},d}(iP.Cheerio);function c(h,d,f,g){if(f===void 0&&(f=u),h&&(0,fu.isCheerio)(h))return h;var y=Gs(Gs({},a),(0,_h.flatten)(g)),b=typeof f=="string"?[e(f,y,!1,null)]:"length"in f?f:[f],D=(0,fu.isCheerio)(b)?b:new o(b,null,y);if(D._root=D,!h)return new o(void 0,D,y);var m=typeof h=="string"&&(0,fu.isHtml)(h)?e(h,y,!1,null).children:aP(h)?[h]:Array.isArray(h)?h:void 0,v=new o(m,D,y);if(m)return v;if(typeof h!="string")throw new Error("Unexpected type of selector");var I=h,T=d?typeof d=="string"?(0,fu.isHtml)(d)?new o([e(d,y,!1,null)],D,y):(I="".concat(d," ").concat(I),D):(0,fu.isCheerio)(d)?d:new o(Array.isArray(d)?d:[d],D,y):D;return T?T.find(I):v}return Object.assign(c,nP,{load:r,_root:u,_options:a,fn:o.prototype,prototype:o.prototype}),c}}Ut.getLoad=sP;function aP(e){return!!e.name||e.type==="root"||e.type==="text"||e.type==="comment"}});var Rc=U(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.isUndefinedCodePoint=at.isControlCodePoint=at.getSurrogatePairCodePoint=at.isSurrogatePair=at.isSurrogate=at.SEQUENCES=at.CODE_POINTS=at.REPLACEMENT_CHARACTER=void 0;var uP=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);at.REPLACEMENT_CHARACTER="\uFFFD";var oP;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",e[e.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_F=102]="LATIN_SMALL_F",e[e.LATIN_SMALL_X=120]="LATIN_SMALL_X",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",e[e.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"})(oP=at.CODE_POINTS||(at.CODE_POINTS={}));at.SEQUENCES={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function cP(e){return e>=55296&&e<=57343}at.isSurrogate=cP;function lP(e){return e>=56320&&e<=57343}at.isSurrogatePair=lP;function fP(e,t){return(e-55296)*1024+9216+t}at.getSurrogatePairCodePoint=fP;function dP(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}at.isControlCodePoint=dP;function hP(e){return e>=64976&&e<=65007||uP.has(e)}at.isUndefinedCodePoint=hP});var hu=U(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.ERR=void 0;var pP;(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"})(pP=du.ERR||(du.ERR={}))});var rA=U(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});Pc.Preprocessor=void 0;var wt=Rc(),Th=hu(),mP=1<<16,tA=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=mP,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t){let{line:r,col:n,offset:i}=this;return{code:t,startLine:r,endLine:r,startCol:n,endCol:n,startOffset:i,endOffset:i}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){let r=this.html.charCodeAt(this.pos+1);if((0,wt.isSurrogatePair)(r))return this.pos++,this._addGap(),(0,wt.getSurrogatePairCodePoint)(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,wt.CODE_POINTS.EOF;return this._err(Th.ERR.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,r){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,r){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(t,this.pos);for(let n=0;n<t.length;n++)if((this.html.charCodeAt(this.pos+n)|32)!==t.charCodeAt(n))return!1;return!0}peek(t){let r=this.pos+t;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,wt.CODE_POINTS.EOF;let n=this.html.charCodeAt(r);return n===wt.CODE_POINTS.CARRIAGE_RETURN?wt.CODE_POINTS.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,wt.CODE_POINTS.EOF;let t=this.html.charCodeAt(this.pos);return t===wt.CODE_POINTS.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,wt.CODE_POINTS.LINE_FEED):t===wt.CODE_POINTS.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,(0,wt.isSurrogate)(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===wt.CODE_POINTS.LINE_FEED||t===wt.CODE_POINTS.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){(0,wt.isControlCodePoint)(t)?this._err(Th.ERR.controlCharacterInInputStream):(0,wt.isUndefinedCodePoint)(t)&&this._err(Th.ERR.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}};Pc.Preprocessor=tA});var Lc=U(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.getTokenAttr=Si.TokenType=void 0;var gP;(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"})(gP=Si.TokenType||(Si.TokenType={}));function _P(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}Si.getTokenAttr=_P});var fn=U(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.hasUnescapedText=Ge.isNumberedHeader=Ge.SPECIAL_ELEMENTS=Ge.getTagID=Ge.TAG_ID=Ge.TAG_NAMES=Ge.DOCUMENT_MODE=Ge.ATTRS=Ge.NS=void 0;var xi;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(xi=Ge.NS||(Ge.NS={}));var TP;(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"})(TP=Ge.ATTRS||(Ge.ATTRS={}));var bP;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(bP=Ge.DOCUMENT_MODE||(Ge.DOCUMENT_MODE={}));var O;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(O=Ge.TAG_NAMES||(Ge.TAG_NAMES={}));var w;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"})(w=Ge.TAG_ID||(Ge.TAG_ID={}));var EP=new Map([[O.A,w.A],[O.ADDRESS,w.ADDRESS],[O.ANNOTATION_XML,w.ANNOTATION_XML],[O.APPLET,w.APPLET],[O.AREA,w.AREA],[O.ARTICLE,w.ARTICLE],[O.ASIDE,w.ASIDE],[O.B,w.B],[O.BASE,w.BASE],[O.BASEFONT,w.BASEFONT],[O.BGSOUND,w.BGSOUND],[O.BIG,w.BIG],[O.BLOCKQUOTE,w.BLOCKQUOTE],[O.BODY,w.BODY],[O.BR,w.BR],[O.BUTTON,w.BUTTON],[O.CAPTION,w.CAPTION],[O.CENTER,w.CENTER],[O.CODE,w.CODE],[O.COL,w.COL],[O.COLGROUP,w.COLGROUP],[O.DD,w.DD],[O.DESC,w.DESC],[O.DETAILS,w.DETAILS],[O.DIALOG,w.DIALOG],[O.DIR,w.DIR],[O.DIV,w.DIV],[O.DL,w.DL],[O.DT,w.DT],[O.EM,w.EM],[O.EMBED,w.EMBED],[O.FIELDSET,w.FIELDSET],[O.FIGCAPTION,w.FIGCAPTION],[O.FIGURE,w.FIGURE],[O.FONT,w.FONT],[O.FOOTER,w.FOOTER],[O.FOREIGN_OBJECT,w.FOREIGN_OBJECT],[O.FORM,w.FORM],[O.FRAME,w.FRAME],[O.FRAMESET,w.FRAMESET],[O.H1,w.H1],[O.H2,w.H2],[O.H3,w.H3],[O.H4,w.H4],[O.H5,w.H5],[O.H6,w.H6],[O.HEAD,w.HEAD],[O.HEADER,w.HEADER],[O.HGROUP,w.HGROUP],[O.HR,w.HR],[O.HTML,w.HTML],[O.I,w.I],[O.IMG,w.IMG],[O.IMAGE,w.IMAGE],[O.INPUT,w.INPUT],[O.IFRAME,w.IFRAME],[O.KEYGEN,w.KEYGEN],[O.LABEL,w.LABEL],[O.LI,w.LI],[O.LINK,w.LINK],[O.LISTING,w.LISTING],[O.MAIN,w.MAIN],[O.MALIGNMARK,w.MALIGNMARK],[O.MARQUEE,w.MARQUEE],[O.MATH,w.MATH],[O.MENU,w.MENU],[O.META,w.META],[O.MGLYPH,w.MGLYPH],[O.MI,w.MI],[O.MO,w.MO],[O.MN,w.MN],[O.MS,w.MS],[O.MTEXT,w.MTEXT],[O.NAV,w.NAV],[O.NOBR,w.NOBR],[O.NOFRAMES,w.NOFRAMES],[O.NOEMBED,w.NOEMBED],[O.NOSCRIPT,w.NOSCRIPT],[O.OBJECT,w.OBJECT],[O.OL,w.OL],[O.OPTGROUP,w.OPTGROUP],[O.OPTION,w.OPTION],[O.P,w.P],[O.PARAM,w.PARAM],[O.PLAINTEXT,w.PLAINTEXT],[O.PRE,w.PRE],[O.RB,w.RB],[O.RP,w.RP],[O.RT,w.RT],[O.RTC,w.RTC],[O.RUBY,w.RUBY],[O.S,w.S],[O.SCRIPT,w.SCRIPT],[O.SECTION,w.SECTION],[O.SELECT,w.SELECT],[O.SOURCE,w.SOURCE],[O.SMALL,w.SMALL],[O.SPAN,w.SPAN],[O.STRIKE,w.STRIKE],[O.STRONG,w.STRONG],[O.STYLE,w.STYLE],[O.SUB,w.SUB],[O.SUMMARY,w.SUMMARY],[O.SUP,w.SUP],[O.TABLE,w.TABLE],[O.TBODY,w.TBODY],[O.TEMPLATE,w.TEMPLATE],[O.TEXTAREA,w.TEXTAREA],[O.TFOOT,w.TFOOT],[O.TD,w.TD],[O.TH,w.TH],[O.THEAD,w.THEAD],[O.TITLE,w.TITLE],[O.TR,w.TR],[O.TRACK,w.TRACK],[O.TT,w.TT],[O.U,w.U],[O.UL,w.UL],[O.SVG,w.SVG],[O.VAR,w.VAR],[O.WBR,w.WBR],[O.XMP,w.XMP]]);function AP(e){var t;return(t=EP.get(e))!==null&&t!==void 0?t:w.UNKNOWN}Ge.getTagID=AP;var B=w;Ge.SPECIAL_ELEMENTS={[xi.HTML]:new Set([B.ADDRESS,B.APPLET,B.AREA,B.ARTICLE,B.ASIDE,B.BASE,B.BASEFONT,B.BGSOUND,B.BLOCKQUOTE,B.BODY,B.BR,B.BUTTON,B.CAPTION,B.CENTER,B.COL,B.COLGROUP,B.DD,B.DETAILS,B.DIR,B.DIV,B.DL,B.DT,B.EMBED,B.FIELDSET,B.FIGCAPTION,B.FIGURE,B.FOOTER,B.FORM,B.FRAME,B.FRAMESET,B.H1,B.H2,B.H3,B.H4,B.H5,B.H6,B.HEAD,B.HEADER,B.HGROUP,B.HR,B.HTML,B.IFRAME,B.IMG,B.INPUT,B.LI,B.LINK,B.LISTING,B.MAIN,B.MARQUEE,B.MENU,B.META,B.NAV,B.NOEMBED,B.NOFRAMES,B.NOSCRIPT,B.OBJECT,B.OL,B.P,B.PARAM,B.PLAINTEXT,B.PRE,B.SCRIPT,B.SECTION,B.SELECT,B.SOURCE,B.STYLE,B.SUMMARY,B.TABLE,B.TBODY,B.TD,B.TEMPLATE,B.TEXTAREA,B.TFOOT,B.TH,B.THEAD,B.TITLE,B.TR,B.TRACK,B.UL,B.WBR,B.XMP]),[xi.MATHML]:new Set([B.MI,B.MO,B.MN,B.MS,B.MTEXT,B.ANNOTATION_XML]),[xi.SVG]:new Set([B.TITLE,B.FOREIGN_OBJECT,B.DESC]),[xi.XLINK]:new Set,[xi.XML]:new Set,[xi.XMLNS]:new Set};function yP(e){return e===B.H1||e===B.H2||e===B.H3||e===B.H4||e===B.H5||e===B.H6}Ge.isNumberedHeader=yP;var IP=new Set([O.STYLE,O.SCRIPT,O.XMP,O.IFRAME,O.NOEMBED,O.NOFRAMES,O.PLAINTEXT]);function vP(e,t){return IP.has(e)||t&&e===O.NOSCRIPT}Ge.hasUnescapedText=vP});var Ah=U(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.Tokenizer=qs.TokenizerMode=void 0;var CP=rA(),p=Rc(),Gt=Lc(),Gr=Is(),L=hu(),bh=fn(),DP=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),_;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(_||(_={}));qs.TokenizerMode={DATA:_.DATA,RCDATA:_.RCDATA,RAWTEXT:_.RAWTEXT,SCRIPT_DATA:_.SCRIPT_DATA,PLAINTEXT:_.PLAINTEXT,CDATA_SECTION:_.CDATA_SECTION};function pu(e){return e>=p.CODE_POINTS.DIGIT_0&&e<=p.CODE_POINTS.DIGIT_9}function mu(e){return e>=p.CODE_POINTS.LATIN_CAPITAL_A&&e<=p.CODE_POINTS.LATIN_CAPITAL_Z}function SP(e){return e>=p.CODE_POINTS.LATIN_SMALL_A&&e<=p.CODE_POINTS.LATIN_SMALL_Z}function Qn(e){return SP(e)||mu(e)}function Eh(e){return Qn(e)||pu(e)}function nA(e){return e>=p.CODE_POINTS.LATIN_CAPITAL_A&&e<=p.CODE_POINTS.LATIN_CAPITAL_F}function iA(e){return e>=p.CODE_POINTS.LATIN_SMALL_A&&e<=p.CODE_POINTS.LATIN_SMALL_F}function xP(e){return pu(e)||nA(e)||iA(e)}function Mc(e){return e+32}function sA(e){return e===p.CODE_POINTS.SPACE||e===p.CODE_POINTS.LINE_FEED||e===p.CODE_POINTS.TABULATION||e===p.CODE_POINTS.FORM_FEED}function OP(e){return e===p.CODE_POINTS.EQUALS_SIGN||Eh(e)}function aA(e){return sA(e)||e===p.CODE_POINTS.SOLIDUS||e===p.CODE_POINTS.GREATER_THAN_SIGN}var uA=class{constructor(t,r){this.options=t,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=_.DATA,this.returnState=_.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new CP.Preprocessor(r),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var r,n;(n=(r=this.handler).onParseError)===null||n===void 0||n.call(r,this.preprocessor.getError(t))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,r,n){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||n==null||n()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}_reconsumeInState(t,r){this.state=t,this._callState(r)}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let r=0;r<t;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,r){return this.preprocessor.startsWith(t,r)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Gt.TokenType.START_TAG,tagName:"",tagID:bh.TAG_ID.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Gt.TokenType.END_TAG,tagName:"",tagID:bh.TAG_ID.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Gt.TokenType.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Gt.TokenType.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,r){this.currentCharacterToken={type:t,chars:r,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,r;let n=this.currentToken;if((0,Gt.getTokenAttr)(n,this.currentAttr.name)===null){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){let i=(t=(r=n.location).attrs)!==null&&t!==void 0?t:r.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(L.ERR.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let t=this.currentToken;this.prepareToken(t),t.tagID=(0,bh.getTagID)(t.tagName),t.type===Gt.TokenType.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(L.ERR.endTagWithAttributes),t.selfClosing&&this._err(L.ERR.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Gt.TokenType.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Gt.TokenType.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Gt.TokenType.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){let t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Gt.TokenType.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==t)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=r;return}this._createCharacterToken(t,r)}_emitCodePoint(t){let r=sA(t)?Gt.TokenType.WHITESPACE_CHARACTER:t===p.CODE_POINTS.NULL?Gt.TokenType.NULL_CHARACTER:Gt.TokenType.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Gt.TokenType.CHARACTER,t)}_matchNamedCharacterReference(t){let r=null,n=0,i=!1;for(let s=0,a=Gr.htmlDecodeTree[0];s>=0&&(s=(0,Gr.determineBranch)(Gr.htmlDecodeTree,a,s+1,t),!(s<0));t=this._consume()){n+=1,a=Gr.htmlDecodeTree[s];let u=a&Gr.BinTrieFlags.VALUE_LENGTH;if(u){let o=(u>>14)-1;if(t!==p.CODE_POINTS.SEMICOLON&&this._isCharacterReferenceInAttribute()&&OP(this.preprocessor.peek(1))?(r=[p.CODE_POINTS.AMPERSAND],s+=o):(r=o===0?[Gr.htmlDecodeTree[s]&~Gr.BinTrieFlags.VALUE_LENGTH]:o===1?[Gr.htmlDecodeTree[++s]]:[Gr.htmlDecodeTree[++s],Gr.htmlDecodeTree[++s]],n=0,i=t!==p.CODE_POINTS.SEMICOLON),o===0){this._consume();break}}}return this._unconsume(n),i&&!this.preprocessor.endOfChunkHit&&this._err(L.ERR.missingSemicolonAfterCharacterReference),this._unconsume(1),r}_isCharacterReferenceInAttribute(){return this.returnState===_.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===_.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===_.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case _.DATA:{this._stateData(t);break}case _.RCDATA:{this._stateRcdata(t);break}case _.RAWTEXT:{this._stateRawtext(t);break}case _.SCRIPT_DATA:{this._stateScriptData(t);break}case _.PLAINTEXT:{this._statePlaintext(t);break}case _.TAG_OPEN:{this._stateTagOpen(t);break}case _.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case _.TAG_NAME:{this._stateTagName(t);break}case _.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case _.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case _.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case _.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case _.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case _.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case _.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case _.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case _.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case _.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case _.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case _.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case _.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case _.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case _.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case _.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case _.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case _.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case _.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case _.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case _.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case _.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case _.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case _.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case _.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case _.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case _.BOGUS_COMMENT:{this._stateBogusComment(t);break}case _.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case _.COMMENT_START:{this._stateCommentStart(t);break}case _.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case _.COMMENT:{this._stateComment(t);break}case _.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case _.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case _.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case _.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case _.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case _.COMMENT_END:{this._stateCommentEnd(t);break}case _.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case _.DOCTYPE:{this._stateDoctype(t);break}case _.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case _.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case _.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case _.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case _.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case _.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case _.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case _.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case _.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case _.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case _.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case _.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case _.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case _.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case _.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case _.CDATA_SECTION:{this._stateCdataSection(t);break}case _.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case _.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case _.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case _.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case _.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case _.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case _.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case _.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case _.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case _.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case p.CODE_POINTS.LESS_THAN_SIGN:{this.state=_.TAG_OPEN;break}case p.CODE_POINTS.AMPERSAND:{this.returnState=_.DATA,this.state=_.CHARACTER_REFERENCE;break}case p.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this._emitCodePoint(t);break}case p.CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case p.CODE_POINTS.AMPERSAND:{this.returnState=_.RCDATA,this.state=_.CHARACTER_REFERENCE;break}case p.CODE_POINTS.LESS_THAN_SIGN:{this.state=_.RCDATA_LESS_THAN_SIGN;break}case p.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this._emitChars(p.REPLACEMENT_CHARACTER);break}case p.CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case p.CODE_POINTS.LESS_THAN_SIGN:{this.state=_.RAWTEXT_LESS_THAN_SIGN;break}case p.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this._emitChars(p.REPLACEMENT_CHARACTER);break}case p.CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case p.CODE_POINTS.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_LESS_THAN_SIGN;break}case p.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this._emitChars(p.REPLACEMENT_CHARACTER);break}case p.CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case p.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this._emitChars(p.REPLACEMENT_CHARACTER);break}case p.CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Qn(t))this._createStartTagToken(),this.state=_.TAG_NAME,this._stateTagName(t);else switch(t){case p.CODE_POINTS.EXCLAMATION_MARK:{this.state=_.MARKUP_DECLARATION_OPEN;break}case p.CODE_POINTS.SOLIDUS:{this.state=_.END_TAG_OPEN;break}case p.CODE_POINTS.QUESTION_MARK:{this._err(L.ERR.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=_.BOGUS_COMMENT,this._stateBogusComment(t);break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(L.ERR.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=_.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Qn(t))this._createEndTagToken(),this.state=_.TAG_NAME,this._stateTagName(t);else switch(t){case p.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.missingEndTagName),this.state=_.DATA;break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(L.ERR.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=_.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){let r=this.currentToken;switch(t){case p.CODE_POINTS.SPACE:case p.CODE_POINTS.LINE_FEED:case p.CODE_POINTS.TABULATION:case p.CODE_POINTS.FORM_FEED:{this.state=_.BEFORE_ATTRIBUTE_NAME;break}case p.CODE_POINTS.SOLIDUS:{this.state=_.SELF_CLOSING_START_TAG;break}case p.CODE_POINTS.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentTagToken();break}case p.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),r.tagName+=p.REPLACEMENT_CHARACTER;break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(mu(t)?Mc(t):t)}}_stateRcdataLessThanSign(t){t===p.CODE_POINTS.SOLIDUS?this.state=_.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=_.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Qn(t)?(this.state=_.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=_.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();let r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case p.CODE_POINTS.SPACE:case p.CODE_POINTS.LINE_FEED:case p.CODE_POINTS.TABULATION:case p.CODE_POINTS.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=_.BEFORE_ATTRIBUTE_NAME,!1;case p.CODE_POINTS.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=_.SELF_CLOSING_START_TAG,!1;case p.CODE_POINTS.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=_.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=_.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===p.CODE_POINTS.SOLIDUS?this.state=_.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=_.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Qn(t)?(this.state=_.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=_.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=_.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case p.CODE_POINTS.SOLIDUS:{this.state=_.SCRIPT_DATA_END_TAG_OPEN;break}case p.CODE_POINTS.EXCLAMATION_MARK:{this.state=_.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=_.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Qn(t)?(this.state=_.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=_.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=_.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===p.CODE_POINTS.HYPHEN_MINUS?(this.state=_.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=_.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===p.CODE_POINTS.HYPHEN_MINUS?(this.state=_.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=_.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case p.CODE_POINTS.HYPHEN_MINUS:{this.state=_.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case p.CODE_POINTS.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case p.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this._emitChars(p.REPLACEMENT_CHARACTER);break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case p.CODE_POINTS.HYPHEN_MINUS:{this.state=_.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case p.CODE_POINTS.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case p.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this.state=_.SCRIPT_DATA_ESCAPED,this._emitChars(p.REPLACEMENT_CHARACTER);break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=_.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case p.CODE_POINTS.HYPHEN_MINUS:{this._emitChars("-");break}case p.CODE_POINTS.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case p.CODE_POINTS.GREATER_THAN_SIGN:{this.state=_.SCRIPT_DATA,this._emitChars(">");break}case p.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this.state=_.SCRIPT_DATA_ESCAPED,this._emitChars(p.REPLACEMENT_CHARACTER);break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=_.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===p.CODE_POINTS.SOLIDUS?this.state=_.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Qn(t)?(this._emitChars("<"),this.state=_.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=_.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Qn(t)?(this.state=_.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=_.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=_.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(p.SEQUENCES.SCRIPT,!1)&&aA(this.preprocessor.peek(p.SEQUENCES.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<p.SEQUENCES.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=_.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case p.CODE_POINTS.HYPHEN_MINUS:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case p.CODE_POINTS.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case p.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this._emitChars(p.REPLACEMENT_CHARACTER);break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case p.CODE_POINTS.HYPHEN_MINUS:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case p.CODE_POINTS.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case p.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(p.REPLACEMENT_CHARACTER);break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case p.CODE_POINTS.HYPHEN_MINUS:{this._emitChars("-");break}case p.CODE_POINTS.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case p.CODE_POINTS.GREATER_THAN_SIGN:{this.state=_.SCRIPT_DATA,this._emitChars(">");break}case p.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(p.REPLACEMENT_CHARACTER);break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===p.CODE_POINTS.SOLIDUS?(this.state=_.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(p.SEQUENCES.SCRIPT,!1)&&aA(this.preprocessor.peek(p.SEQUENCES.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<p.SEQUENCES.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=_.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case p.CODE_POINTS.SPACE:case p.CODE_POINTS.LINE_FEED:case p.CODE_POINTS.TABULATION:case p.CODE_POINTS.FORM_FEED:break;case p.CODE_POINTS.SOLIDUS:case p.CODE_POINTS.GREATER_THAN_SIGN:case p.CODE_POINTS.EOF:{this.state=_.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case p.CODE_POINTS.EQUALS_SIGN:{this._err(L.ERR.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=_.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=_.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case p.CODE_POINTS.SPACE:case p.CODE_POINTS.LINE_FEED:case p.CODE_POINTS.TABULATION:case p.CODE_POINTS.FORM_FEED:case p.CODE_POINTS.SOLIDUS:case p.CODE_POINTS.GREATER_THAN_SIGN:case p.CODE_POINTS.EOF:{this._leaveAttrName(),this.state=_.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case p.CODE_POINTS.EQUALS_SIGN:{this._leaveAttrName(),this.state=_.BEFORE_ATTRIBUTE_VALUE;break}case p.CODE_POINTS.QUOTATION_MARK:case p.CODE_POINTS.APOSTROPHE:case p.CODE_POINTS.LESS_THAN_SIGN:{this._err(L.ERR.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case p.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this.currentAttr.name+=p.REPLACEMENT_CHARACTER;break}default:this.currentAttr.name+=String.fromCodePoint(mu(t)?Mc(t):t)}}_stateAfterAttributeName(t){switch(t){case p.CODE_POINTS.SPACE:case p.CODE_POINTS.LINE_FEED:case p.CODE_POINTS.TABULATION:case p.CODE_POINTS.FORM_FEED:break;case p.CODE_POINTS.SOLIDUS:{this.state=_.SELF_CLOSING_START_TAG;break}case p.CODE_POINTS.EQUALS_SIGN:{this.state=_.BEFORE_ATTRIBUTE_VALUE;break}case p.CODE_POINTS.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentTagToken();break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=_.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case p.CODE_POINTS.SPACE:case p.CODE_POINTS.LINE_FEED:case p.CODE_POINTS.TABULATION:case p.CODE_POINTS.FORM_FEED:break;case p.CODE_POINTS.QUOTATION_MARK:{this.state=_.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case p.CODE_POINTS.APOSTROPHE:{this.state=_.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case p.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.missingAttributeValue),this.state=_.DATA,this.emitCurrentTagToken();break}default:this.state=_.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case p.CODE_POINTS.QUOTATION_MARK:{this.state=_.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case p.CODE_POINTS.AMPERSAND:{this.returnState=_.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=_.CHARACTER_REFERENCE;break}case p.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this.currentAttr.value+=p.REPLACEMENT_CHARACTER;break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case p.CODE_POINTS.APOSTROPHE:{this.state=_.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case p.CODE_POINTS.AMPERSAND:{this.returnState=_.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=_.CHARACTER_REFERENCE;break}case p.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this.currentAttr.value+=p.REPLACEMENT_CHARACTER;break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case p.CODE_POINTS.SPACE:case p.CODE_POINTS.LINE_FEED:case p.CODE_POINTS.TABULATION:case p.CODE_POINTS.FORM_FEED:{this._leaveAttrValue(),this.state=_.BEFORE_ATTRIBUTE_NAME;break}case p.CODE_POINTS.AMPERSAND:{this.returnState=_.ATTRIBUTE_VALUE_UNQUOTED,this.state=_.CHARACTER_REFERENCE;break}case p.CODE_POINTS.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=_.DATA,this.emitCurrentTagToken();break}case p.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this.currentAttr.value+=p.REPLACEMENT_CHARACTER;break}case p.CODE_POINTS.QUOTATION_MARK:case p.CODE_POINTS.APOSTROPHE:case p.CODE_POINTS.LESS_THAN_SIGN:case p.CODE_POINTS.EQUALS_SIGN:case p.CODE_POINTS.GRAVE_ACCENT:{this._err(L.ERR.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case p.CODE_POINTS.SPACE:case p.CODE_POINTS.LINE_FEED:case p.CODE_POINTS.TABULATION:case p.CODE_POINTS.FORM_FEED:{this._leaveAttrValue(),this.state=_.BEFORE_ATTRIBUTE_NAME;break}case p.CODE_POINTS.SOLIDUS:{this._leaveAttrValue(),this.state=_.SELF_CLOSING_START_TAG;break}case p.CODE_POINTS.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=_.DATA,this.emitCurrentTagToken();break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInTag),this._emitEOFToken();break}default:this._err(L.ERR.missingWhitespaceBetweenAttributes),this.state=_.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case p.CODE_POINTS.GREATER_THAN_SIGN:{let r=this.currentToken;r.selfClosing=!0,this.state=_.DATA,this.emitCurrentTagToken();break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInTag),this._emitEOFToken();break}default:this._err(L.ERR.unexpectedSolidusInTag),this.state=_.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){let r=this.currentToken;switch(t){case p.CODE_POINTS.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentComment(r);break}case p.CODE_POINTS.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case p.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),r.data+=p.REPLACEMENT_CHARACTER;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(p.SEQUENCES.DASH_DASH,!0)?(this._createCommentToken(p.SEQUENCES.DASH_DASH.length+1),this.state=_.COMMENT_START):this._consumeSequenceIfMatch(p.SEQUENCES.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(p.SEQUENCES.DOCTYPE.length+1),this.state=_.DOCTYPE):this._consumeSequenceIfMatch(p.SEQUENCES.CDATA_START,!0)?this.inForeignNode?this.state=_.CDATA_SECTION:(this._err(L.ERR.cdataInHtmlContent),this._createCommentToken(p.SEQUENCES.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=_.BOGUS_COMMENT):this._ensureHibernation()||(this._err(L.ERR.incorrectlyOpenedComment),this._createCommentToken(2),this.state=_.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case p.CODE_POINTS.HYPHEN_MINUS:{this.state=_.COMMENT_START_DASH;break}case p.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.abruptClosingOfEmptyComment),this.state=_.DATA;let r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=_.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){let r=this.currentToken;switch(t){case p.CODE_POINTS.HYPHEN_MINUS:{this.state=_.COMMENT_END;break}case p.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.abruptClosingOfEmptyComment),this.state=_.DATA,this.emitCurrentComment(r);break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=_.COMMENT,this._stateComment(t)}}_stateComment(t){let r=this.currentToken;switch(t){case p.CODE_POINTS.HYPHEN_MINUS:{this.state=_.COMMENT_END_DASH;break}case p.CODE_POINTS.LESS_THAN_SIGN:{r.data+="<",this.state=_.COMMENT_LESS_THAN_SIGN;break}case p.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),r.data+=p.REPLACEMENT_CHARACTER;break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){let r=this.currentToken;switch(t){case p.CODE_POINTS.EXCLAMATION_MARK:{r.data+="!",this.state=_.COMMENT_LESS_THAN_SIGN_BANG;break}case p.CODE_POINTS.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=_.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===p.CODE_POINTS.HYPHEN_MINUS?this.state=_.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=_.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===p.CODE_POINTS.HYPHEN_MINUS?this.state=_.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=_.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==p.CODE_POINTS.GREATER_THAN_SIGN&&t!==p.CODE_POINTS.EOF&&this._err(L.ERR.nestedComment),this.state=_.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){let r=this.currentToken;switch(t){case p.CODE_POINTS.HYPHEN_MINUS:{this.state=_.COMMENT_END;break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=_.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){let r=this.currentToken;switch(t){case p.CODE_POINTS.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentComment(r);break}case p.CODE_POINTS.EXCLAMATION_MARK:{this.state=_.COMMENT_END_BANG;break}case p.CODE_POINTS.HYPHEN_MINUS:{r.data+="-";break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=_.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){let r=this.currentToken;switch(t){case p.CODE_POINTS.HYPHEN_MINUS:{r.data+="--!",this.state=_.COMMENT_END_DASH;break}case p.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.incorrectlyClosedComment),this.state=_.DATA,this.emitCurrentComment(r);break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=_.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case p.CODE_POINTS.SPACE:case p.CODE_POINTS.LINE_FEED:case p.CODE_POINTS.TABULATION:case p.CODE_POINTS.FORM_FEED:{this.state=_.BEFORE_DOCTYPE_NAME;break}case p.CODE_POINTS.GREATER_THAN_SIGN:{this.state=_.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(L.ERR.missingWhitespaceBeforeDoctypeName),this.state=_.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(mu(t))this._createDoctypeToken(String.fromCharCode(Mc(t))),this.state=_.DOCTYPE_NAME;else switch(t){case p.CODE_POINTS.SPACE:case p.CODE_POINTS.LINE_FEED:case p.CODE_POINTS.TABULATION:case p.CODE_POINTS.FORM_FEED:break;case p.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),this._createDoctypeToken(p.REPLACEMENT_CHARACTER),this.state=_.DOCTYPE_NAME;break}case p.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.missingDoctypeName),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=_.DATA;break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=_.DOCTYPE_NAME}}_stateDoctypeName(t){let r=this.currentToken;switch(t){case p.CODE_POINTS.SPACE:case p.CODE_POINTS.LINE_FEED:case p.CODE_POINTS.TABULATION:case p.CODE_POINTS.FORM_FEED:{this.state=_.AFTER_DOCTYPE_NAME;break}case p.CODE_POINTS.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentDoctype(r);break}case p.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),r.name+=p.REPLACEMENT_CHARACTER;break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(mu(t)?Mc(t):t)}}_stateAfterDoctypeName(t){let r=this.currentToken;switch(t){case p.CODE_POINTS.SPACE:case p.CODE_POINTS.LINE_FEED:case p.CODE_POINTS.TABULATION:case p.CODE_POINTS.FORM_FEED:break;case p.CODE_POINTS.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentDoctype(r);break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(p.SEQUENCES.PUBLIC,!1)?this.state=_.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(p.SEQUENCES.SYSTEM,!1)?this.state=_.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(L.ERR.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){let r=this.currentToken;switch(t){case p.CODE_POINTS.SPACE:case p.CODE_POINTS.LINE_FEED:case p.CODE_POINTS.TABULATION:case p.CODE_POINTS.FORM_FEED:{this.state=_.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case p.CODE_POINTS.QUOTATION_MARK:{this._err(L.ERR.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=_.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case p.CODE_POINTS.APOSTROPHE:{this._err(L.ERR.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=_.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case p.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=_.DATA,this.emitCurrentDoctype(r);break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(L.ERR.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){let r=this.currentToken;switch(t){case p.CODE_POINTS.SPACE:case p.CODE_POINTS.LINE_FEED:case p.CODE_POINTS.TABULATION:case p.CODE_POINTS.FORM_FEED:break;case p.CODE_POINTS.QUOTATION_MARK:{r.publicId="",this.state=_.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case p.CODE_POINTS.APOSTROPHE:{r.publicId="",this.state=_.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case p.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=_.DATA,this.emitCurrentDoctype(r);break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(L.ERR.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){let r=this.currentToken;switch(t){case p.CODE_POINTS.QUOTATION_MARK:{this.state=_.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case p.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),r.publicId+=p.REPLACEMENT_CHARACTER;break}case p.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=_.DATA;break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){let r=this.currentToken;switch(t){case p.CODE_POINTS.APOSTROPHE:{this.state=_.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case p.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),r.publicId+=p.REPLACEMENT_CHARACTER;break}case p.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=_.DATA;break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){let r=this.currentToken;switch(t){case p.CODE_POINTS.SPACE:case p.CODE_POINTS.LINE_FEED:case p.CODE_POINTS.TABULATION:case p.CODE_POINTS.FORM_FEED:{this.state=_.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case p.CODE_POINTS.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentDoctype(r);break}case p.CODE_POINTS.QUOTATION_MARK:{this._err(L.ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case p.CODE_POINTS.APOSTROPHE:{this._err(L.ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(L.ERR.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){let r=this.currentToken;switch(t){case p.CODE_POINTS.SPACE:case p.CODE_POINTS.LINE_FEED:case p.CODE_POINTS.TABULATION:case p.CODE_POINTS.FORM_FEED:break;case p.CODE_POINTS.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=_.DATA;break}case p.CODE_POINTS.QUOTATION_MARK:{r.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case p.CODE_POINTS.APOSTROPHE:{r.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(L.ERR.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){let r=this.currentToken;switch(t){case p.CODE_POINTS.SPACE:case p.CODE_POINTS.LINE_FEED:case p.CODE_POINTS.TABULATION:case p.CODE_POINTS.FORM_FEED:{this.state=_.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case p.CODE_POINTS.QUOTATION_MARK:{this._err(L.ERR.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case p.CODE_POINTS.APOSTROPHE:{this._err(L.ERR.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case p.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=_.DATA,this.emitCurrentDoctype(r);break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(L.ERR.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){let r=this.currentToken;switch(t){case p.CODE_POINTS.SPACE:case p.CODE_POINTS.LINE_FEED:case p.CODE_POINTS.TABULATION:case p.CODE_POINTS.FORM_FEED:break;case p.CODE_POINTS.QUOTATION_MARK:{r.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case p.CODE_POINTS.APOSTROPHE:{r.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case p.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=_.DATA,this.emitCurrentDoctype(r);break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(L.ERR.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){let r=this.currentToken;switch(t){case p.CODE_POINTS.QUOTATION_MARK:{this.state=_.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case p.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),r.systemId+=p.REPLACEMENT_CHARACTER;break}case p.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=_.DATA;break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){let r=this.currentToken;switch(t){case p.CODE_POINTS.APOSTROPHE:{this.state=_.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case p.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter),r.systemId+=p.REPLACEMENT_CHARACTER;break}case p.CODE_POINTS.GREATER_THAN_SIGN:{this._err(L.ERR.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=_.DATA;break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){let r=this.currentToken;switch(t){case p.CODE_POINTS.SPACE:case p.CODE_POINTS.LINE_FEED:case p.CODE_POINTS.TABULATION:case p.CODE_POINTS.FORM_FEED:break;case p.CODE_POINTS.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=_.DATA;break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(L.ERR.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){let r=this.currentToken;switch(t){case p.CODE_POINTS.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=_.DATA;break}case p.CODE_POINTS.NULL:{this._err(L.ERR.unexpectedNullCharacter);break}case p.CODE_POINTS.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}default:}}_stateCdataSection(t){switch(t){case p.CODE_POINTS.RIGHT_SQUARE_BRACKET:{this.state=_.CDATA_SECTION_BRACKET;break}case p.CODE_POINTS.EOF:{this._err(L.ERR.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===p.CODE_POINTS.RIGHT_SQUARE_BRACKET?this.state=_.CDATA_SECTION_END:(this._emitChars("]"),this.state=_.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case p.CODE_POINTS.GREATER_THAN_SIGN:{this.state=_.DATA;break}case p.CODE_POINTS.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=_.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(t){t===p.CODE_POINTS.NUMBER_SIGN?this.state=_.NUMERIC_CHARACTER_REFERENCE:Eh(t)?(this.state=_.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(t)):(this._flushCodePointConsumedAsCharacterReference(p.CODE_POINTS.AMPERSAND),this._reconsumeInState(this.returnState,t))}_stateNamedCharacterReference(t){let r=this._matchNamedCharacterReference(t);if(!this._ensureHibernation())if(r){for(let n=0;n<r.length;n++)this._flushCodePointConsumedAsCharacterReference(r[n]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(p.CODE_POINTS.AMPERSAND),this.state=_.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(t){Eh(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===p.CODE_POINTS.SEMICOLON&&this._err(L.ERR.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,t))}_stateNumericCharacterReference(t){this.charRefCode=0,t===p.CODE_POINTS.LATIN_SMALL_X||t===p.CODE_POINTS.LATIN_CAPITAL_X?this.state=_.HEXADEMICAL_CHARACTER_REFERENCE_START:pu(t)?(this.state=_.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(t)):(this._err(L.ERR.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(p.CODE_POINTS.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(p.CODE_POINTS.NUMBER_SIGN),this._reconsumeInState(this.returnState,t))}_stateHexademicalCharacterReferenceStart(t){xP(t)?(this.state=_.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(t)):(this._err(L.ERR.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(p.CODE_POINTS.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(p.CODE_POINTS.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState)}_stateHexademicalCharacterReference(t){nA(t)?this.charRefCode=this.charRefCode*16+t-55:iA(t)?this.charRefCode=this.charRefCode*16+t-87:pu(t)?this.charRefCode=this.charRefCode*16+t-48:t===p.CODE_POINTS.SEMICOLON?this.state=_.NUMERIC_CHARACTER_REFERENCE_END:(this._err(L.ERR.missingSemicolonAfterCharacterReference),this.state=_.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}_stateDecimalCharacterReference(t){pu(t)?this.charRefCode=this.charRefCode*10+t-48:t===p.CODE_POINTS.SEMICOLON?this.state=_.NUMERIC_CHARACTER_REFERENCE_END:(this._err(L.ERR.missingSemicolonAfterCharacterReference),this.state=_.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}_stateNumericCharacterReferenceEnd(t){if(this.charRefCode===p.CODE_POINTS.NULL)this._err(L.ERR.nullCharacterReference),this.charRefCode=p.CODE_POINTS.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(L.ERR.characterReferenceOutsideUnicodeRange),this.charRefCode=p.CODE_POINTS.REPLACEMENT_CHARACTER;else if((0,p.isSurrogate)(this.charRefCode))this._err(L.ERR.surrogateCharacterReference),this.charRefCode=p.CODE_POINTS.REPLACEMENT_CHARACTER;else if((0,p.isUndefinedCodePoint)(this.charRefCode))this._err(L.ERR.noncharacterCharacterReference);else if((0,p.isControlCodePoint)(this.charRefCode)||this.charRefCode===p.CODE_POINTS.CARRIAGE_RETURN){this._err(L.ERR.controlCharacterReference);let r=DP.get(this.charRefCode);r!==void 0&&(this.charRefCode=r)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}};qs.Tokenizer=uA});var fA=U(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});Fc.OpenElementStack=void 0;var k=fn(),oA=new Set([k.TAG_ID.DD,k.TAG_ID.DT,k.TAG_ID.LI,k.TAG_ID.OPTGROUP,k.TAG_ID.OPTION,k.TAG_ID.P,k.TAG_ID.RB,k.TAG_ID.RP,k.TAG_ID.RT,k.TAG_ID.RTC]),cA=new Set([...oA,k.TAG_ID.CAPTION,k.TAG_ID.COLGROUP,k.TAG_ID.TBODY,k.TAG_ID.TD,k.TAG_ID.TFOOT,k.TAG_ID.TH,k.TAG_ID.THEAD,k.TAG_ID.TR]),kc=new Map([[k.TAG_ID.APPLET,k.NS.HTML],[k.TAG_ID.CAPTION,k.NS.HTML],[k.TAG_ID.HTML,k.NS.HTML],[k.TAG_ID.MARQUEE,k.NS.HTML],[k.TAG_ID.OBJECT,k.NS.HTML],[k.TAG_ID.TABLE,k.NS.HTML],[k.TAG_ID.TD,k.NS.HTML],[k.TAG_ID.TEMPLATE,k.NS.HTML],[k.TAG_ID.TH,k.NS.HTML],[k.TAG_ID.ANNOTATION_XML,k.NS.MATHML],[k.TAG_ID.MI,k.NS.MATHML],[k.TAG_ID.MN,k.NS.MATHML],[k.TAG_ID.MO,k.NS.MATHML],[k.TAG_ID.MS,k.NS.MATHML],[k.TAG_ID.MTEXT,k.NS.MATHML],[k.TAG_ID.DESC,k.NS.SVG],[k.TAG_ID.FOREIGN_OBJECT,k.NS.SVG],[k.TAG_ID.TITLE,k.NS.SVG]]),NP=[k.TAG_ID.H1,k.TAG_ID.H2,k.TAG_ID.H3,k.TAG_ID.H4,k.TAG_ID.H5,k.TAG_ID.H6],wP=[k.TAG_ID.TR,k.TAG_ID.TEMPLATE,k.TAG_ID.HTML],RP=[k.TAG_ID.TBODY,k.TAG_ID.TFOOT,k.TAG_ID.THEAD,k.TAG_ID.TEMPLATE,k.TAG_ID.HTML],PP=[k.TAG_ID.TABLE,k.TAG_ID.TEMPLATE,k.TAG_ID.HTML],LP=[k.TAG_ID.TD,k.TAG_ID.TH],lA=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,r,n){this.treeAdapter=r,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=k.TAG_ID.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===k.TAG_ID.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===k.NS.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,r){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,r,!0)}pop(){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,r){let n=this._indexOf(t);this.items[n]=r,n===this.stackTop&&(this.current=r)}insertAfter(t,r,n){let i=this._indexOf(t)+1;this.items.splice(i,0,r),this.tagIDs.splice(i,0,n),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(t,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==k.NS.HTML);this.shortenToLength(r<0?0:r)}shortenToLength(t){for(;this.stackTop>=t;){let r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<t)}}popUntilElementPopped(t){let r=this._indexOf(t);this.shortenToLength(r<0?0:r)}popUntilPopped(t,r){let n=this._indexOfTagNames(t,r);this.shortenToLength(n<0?0:n)}popUntilNumberedHeaderPopped(){this.popUntilPopped(NP,k.NS.HTML)}popUntilTableCellPopped(){this.popUntilPopped(LP,k.NS.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let n=this.stackTop;n>=0;n--)if(t.includes(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===r)return n;return-1}clearBackTo(t,r){let n=this._indexOfTagNames(t,r);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(PP,k.NS.HTML)}clearBackToTableBodyContext(){this.clearBackTo(RP,k.NS.HTML)}clearBackToTableRowContext(){this.clearBackTo(wP,k.NS.HTML)}remove(t){let r=this._indexOf(t);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===k.TAG_ID.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let r=this._indexOf(t)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===k.TAG_ID.HTML}hasInScope(t){for(let r=this.stackTop;r>=0;r--){let n=this.tagIDs[r],i=this.treeAdapter.getNamespaceURI(this.items[r]);if(n===t&&i===k.NS.HTML)return!0;if(kc.get(n)===i)return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t],n=this.treeAdapter.getNamespaceURI(this.items[t]);if((0,k.isNumberedHeader)(r)&&n===k.NS.HTML)return!0;if(kc.get(r)===n)return!1}return!0}hasInListItemScope(t){for(let r=this.stackTop;r>=0;r--){let n=this.tagIDs[r],i=this.treeAdapter.getNamespaceURI(this.items[r]);if(n===t&&i===k.NS.HTML)return!0;if((n===k.TAG_ID.UL||n===k.TAG_ID.OL)&&i===k.NS.HTML||kc.get(n)===i)return!1}return!0}hasInButtonScope(t){for(let r=this.stackTop;r>=0;r--){let n=this.tagIDs[r],i=this.treeAdapter.getNamespaceURI(this.items[r]);if(n===t&&i===k.NS.HTML)return!0;if(n===k.TAG_ID.BUTTON&&i===k.NS.HTML||kc.get(n)===i)return!1}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--){let n=this.tagIDs[r];if(this.treeAdapter.getNamespaceURI(this.items[r])===k.NS.HTML){if(n===t)return!0;if(n===k.TAG_ID.TABLE||n===k.TAG_ID.TEMPLATE||n===k.TAG_ID.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===k.NS.HTML){if(r===k.TAG_ID.TBODY||r===k.TAG_ID.THEAD||r===k.TAG_ID.TFOOT)return!0;if(r===k.TAG_ID.TABLE||r===k.TAG_ID.HTML)return!1}}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--){let n=this.tagIDs[r];if(this.treeAdapter.getNamespaceURI(this.items[r])===k.NS.HTML){if(n===t)return!0;if(n!==k.TAG_ID.OPTION&&n!==k.TAG_ID.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;oA.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;cA.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&cA.has(this.currentTagId);)this.pop()}};Fc.OpenElementStack=lA});var pA=U(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.FormattingElementList=Oi.EntryType=void 0;var yh=3,$n;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})($n=Oi.EntryType||(Oi.EntryType={}));var dA={type:$n.Marker},hA=class{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){let n=[],i=r.length,s=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let u=0;u<this.entries.length;u++){let o=this.entries[u];if(o.type===$n.Marker)break;let{element:c}=o;if(this.treeAdapter.getTagName(c)===s&&this.treeAdapter.getNamespaceURI(c)===a){let h=this.treeAdapter.getAttrList(c);h.length===i&&n.push({idx:u,attrs:h})}}return n}_ensureNoahArkCondition(t){if(this.entries.length<yh)return;let r=this.treeAdapter.getAttrList(t),n=this._getNoahArkConditionCandidates(t,r);if(n.length<yh)return;let i=new Map(r.map(a=>[a.name,a.value])),s=0;for(let a=0;a<n.length;a++){let u=n[a];u.attrs.every(o=>i.get(o.name)===o.value)&&(s+=1,s>=yh&&this.entries.splice(u.idx,1))}}insertMarker(){this.entries.unshift(dA)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:$n.Element,element:t,token:r})}insertElementAfterBookmark(t,r){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:$n.Element,element:t,token:r})}removeEntry(t){let r=this.entries.indexOf(t);r>=0&&this.entries.splice(r,1)}clearToLastMarker(){let t=this.entries.indexOf(dA);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){let r=this.entries.find(n=>n.type===$n.Marker||this.treeAdapter.getTagName(n.element)===t);return r&&r.type===$n.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===$n.Element&&r.element===t)}};Oi.FormattingElementList=hA});var Bc=U(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.defaultTreeAdapter=void 0;var MP=fn();function mA(e){return{nodeName:"#text",value:e,parentNode:null}}dn.defaultTreeAdapter={createDocument(){return{nodeName:"#document",mode:MP.DOCUMENT_MODE.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){let n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,n){let i=e.childNodes.find(s=>s.nodeName==="#documentType");if(i)i.name=t,i.publicId=r,i.systemId=n;else{let s={nodeName:"#documentType",name:t,publicId:r,systemId:n,parentNode:null};dn.defaultTreeAdapter.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let r=e.childNodes[e.childNodes.length-1];if(dn.defaultTreeAdapter.isTextNode(r)){r.value+=t;return}}dn.defaultTreeAdapter.appendChild(e,mA(t))},insertTextBefore(e,t,r){let n=e.childNodes[e.childNodes.indexOf(r)-1];n&&dn.defaultTreeAdapter.isTextNode(n)?n.value+=t:dn.defaultTreeAdapter.insertBefore(e,mA(t),r)},adoptAttributes(e,t){let r=new Set(e.attrs.map(n=>n.name));for(let n=0;n<t.length;n++)r.has(t[n].name)||e.attrs.push(t[n])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation=Object.assign(Object.assign({},e.sourceCodeLocation),t)}}});var EA=U(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.getDocumentMode=Vs.isConforming=void 0;var zs=fn(),gA="html",kP="about:legacy-compat",FP="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",_A=["+//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//"],BP=[..._A,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],jP=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),TA=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],HP=[...TA,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function bA(e,t){return t.some(r=>e.startsWith(r))}function UP(e){return e.name===gA&&e.publicId===null&&(e.systemId===null||e.systemId===kP)}Vs.isConforming=UP;function GP(e){if(e.name!==gA)return zs.DOCUMENT_MODE.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===FP)return zs.DOCUMENT_MODE.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),jP.has(r))return zs.DOCUMENT_MODE.QUIRKS;let n=t===null?BP:_A;if(bA(r,n))return zs.DOCUMENT_MODE.QUIRKS;if(n=t===null?TA:HP,bA(r,n))return zs.DOCUMENT_MODE.LIMITED_QUIRKS}return zs.DOCUMENT_MODE.NO_QUIRKS}Vs.getDocumentMode=GP});var Ih=U(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.isIntegrationPoint=mt.adjustTokenSVGTagName=mt.adjustTokenXMLAttrs=mt.adjustTokenSVGAttrs=mt.adjustTokenMathMLAttrs=mt.causesExit=mt.SVG_TAG_NAMES_ADJUSTMENT_MAP=void 0;var G=fn(),AA={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},qP="definitionurl",zP="definitionURL",VP=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])),KP=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:G.NS.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:G.NS.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:G.NS.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:G.NS.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:G.NS.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:G.NS.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:G.NS.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:G.NS.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:G.NS.XML}],["xml:space",{prefix:"xml",name:"space",namespace:G.NS.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:G.NS.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:G.NS.XMLNS}]]);mt.SVG_TAG_NAMES_ADJUSTMENT_MAP=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e]));var WP=new Set([G.TAG_ID.B,G.TAG_ID.BIG,G.TAG_ID.BLOCKQUOTE,G.TAG_ID.BODY,G.TAG_ID.BR,G.TAG_ID.CENTER,G.TAG_ID.CODE,G.TAG_ID.DD,G.TAG_ID.DIV,G.TAG_ID.DL,G.TAG_ID.DT,G.TAG_ID.EM,G.TAG_ID.EMBED,G.TAG_ID.H1,G.TAG_ID.H2,G.TAG_ID.H3,G.TAG_ID.H4,G.TAG_ID.H5,G.TAG_ID.H6,G.TAG_ID.HEAD,G.TAG_ID.HR,G.TAG_ID.I,G.TAG_ID.IMG,G.TAG_ID.LI,G.TAG_ID.LISTING,G.TAG_ID.MENU,G.TAG_ID.META,G.TAG_ID.NOBR,G.TAG_ID.OL,G.TAG_ID.P,G.TAG_ID.PRE,G.TAG_ID.RUBY,G.TAG_ID.S,G.TAG_ID.SMALL,G.TAG_ID.SPAN,G.TAG_ID.STRONG,G.TAG_ID.STRIKE,G.TAG_ID.SUB,G.TAG_ID.SUP,G.TAG_ID.TABLE,G.TAG_ID.TT,G.TAG_ID.U,G.TAG_ID.UL,G.TAG_ID.VAR]);function YP(e){let t=e.tagID;return t===G.TAG_ID.FONT&&e.attrs.some(({name:n})=>n===G.ATTRS.COLOR||n===G.ATTRS.SIZE||n===G.ATTRS.FACE)||WP.has(t)}mt.causesExit=YP;function QP(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===qP){e.attrs[t].name=zP;break}}mt.adjustTokenMathMLAttrs=QP;function $P(e){for(let t=0;t<e.attrs.length;t++){let r=VP.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}mt.adjustTokenSVGAttrs=$P;function XP(e){for(let t=0;t<e.attrs.length;t++){let r=KP.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}mt.adjustTokenXMLAttrs=XP;function ZP(e){let t=mt.SVG_TAG_NAMES_ADJUSTMENT_MAP.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=(0,G.getTagID)(e.tagName))}mt.adjustTokenSVGTagName=ZP;function JP(e,t){return t===G.NS.MATHML&&(e===G.TAG_ID.MI||e===G.TAG_ID.MO||e===G.TAG_ID.MN||e===G.TAG_ID.MS||e===G.TAG_ID.MTEXT)}function e6(e,t,r){if(t===G.NS.MATHML&&e===G.TAG_ID.ANNOTATION_XML){for(let n=0;n<r.length;n++)if(r[n].name===G.ATTRS.ENCODING){let i=r[n].value.toLowerCase();return i===AA.TEXT_HTML||i===AA.APPLICATION_XML}}return t===G.NS.SVG&&(e===G.TAG_ID.FOREIGN_OBJECT||e===G.TAG_ID.DESC||e===G.TAG_ID.TITLE)}function t6(e,t,r,n){return(!n||n===G.NS.HTML)&&e6(e,t,r)||(!n||n===G.NS.MATHML)&&JP(e,t)}mt.isIntegrationPoint=t6});var Nh=U(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.Parser=void 0;var Rt=Ah(),r6=fA(),yA=pA(),n6=Bc(),IA=EA(),qr=Ih(),gt=hu(),vA=Rc(),l=fn(),ut=Lc(),i6="hidden",s6=8,a6=3,A;(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"})(A||(A={}));var u6={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},CA=new Set([l.TAG_ID.TABLE,l.TAG_ID.TBODY,l.TAG_ID.TFOOT,l.TAG_ID.THEAD,l.TAG_ID.TR]),DA={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:n6.defaultTreeAdapter,onParseError:null},SA=class{constructor(t,r,n=null,i=null){this.fragmentContext=n,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=A.INITIAL,this.originalInsertionMode=A.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options=Object.assign(Object.assign({},DA),t),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=r??this.treeAdapter.createDocument(),this.tokenizer=new Rt.Tokenizer(this.options,this),this.activeFormattingElements=new yA.FormattingElementList(this.treeAdapter),this.fragmentContextID=n?(0,l.getTagID)(this.treeAdapter.getTagName(n)):l.TAG_ID.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new r6.OpenElementStack(this.document,this.treeAdapter,this)}static parse(t,r){let n=new this(r);return n.tokenizer.write(t,!0),n.document}static getFragmentParser(t,r){let n=Object.assign(Object.assign({},DA),r);t??(t=n.treeAdapter.createElement(l.TAG_NAMES.TEMPLATE,l.NS.HTML,[]));let i=n.treeAdapter.createElement("documentmock",l.NS.HTML,[]),s=new this(n,i,t);return s.fragmentContextID===l.TAG_ID.TEMPLATE&&s.tmplInsertionModeStack.unshift(A.IN_TEMPLATE),s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}getFragment(){let t=this.treeAdapter.getFirstChild(this.document),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,r),r}_err(t,r,n){var i;if(!this.onParseError)return;let s=(i=t.location)!==null&&i!==void 0?i:u6,a={code:r,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:n?s.startLine:s.endLine,endCol:n?s.startCol:s.endCol,endOffset:n?s.startOffset:s.endOffset};this.onParseError(a)}onItemPush(t,r,n){var i,s;(s=(i=this.treeAdapter).onItemPush)===null||s===void 0||s.call(i,t),n&&this.openElements.stackTop>0&&this._setContextModes(t,r)}onItemPop(t,r){var n,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(n=this.treeAdapter).onItemPop)===null||i===void 0||i.call(n,t,this.openElements.current),r){let s,a;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,a=this.fragmentContextID):{current:s,currentTagId:a}=this.openElements,this._setContextModes(s,a)}}_setContextModes(t,r){let n=t===this.document||this.treeAdapter.getNamespaceURI(t)===l.NS.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,l.NS.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=A.TEXT}switchToPlaintextParsing(){this.insertionMode=A.TEXT,this.originalInsertionMode=A.IN_BODY,this.tokenizer.state=Rt.TokenizerMode.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===l.TAG_NAMES.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==l.NS.HTML))switch(this.fragmentContextID){case l.TAG_ID.TITLE:case l.TAG_ID.TEXTAREA:{this.tokenizer.state=Rt.TokenizerMode.RCDATA;break}case l.TAG_ID.STYLE:case l.TAG_ID.XMP:case l.TAG_ID.IFRAME:case l.TAG_ID.NOEMBED:case l.TAG_ID.NOFRAMES:case l.TAG_ID.NOSCRIPT:{this.tokenizer.state=Rt.TokenizerMode.RAWTEXT;break}case l.TAG_ID.SCRIPT:{this.tokenizer.state=Rt.TokenizerMode.SCRIPT_DATA;break}case l.TAG_ID.PLAINTEXT:{this.tokenizer.state=Rt.TokenizerMode.PLAINTEXT;break}default:}}_setDocumentType(t){let r=t.name||"",n=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,n,i),t.location){let a=this.treeAdapter.getChildNodes(this.document).find(u=>this.treeAdapter.isDocumentTypeNode(u));a&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){let n=r&&Object.assign(Object.assign({},r),{startTag:r});this.treeAdapter.setNodeSourceCodeLocation(t,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{let n=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(n,t)}}_appendElement(t,r){let n=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(n,t.location)}_insertElement(t,r){let n=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID)}_insertFakeElement(t,r){let n=this.treeAdapter.createElement(t,l.NS.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,r)}_insertTemplate(t){let r=this.treeAdapter.createElement(t.tagName,l.NS.HTML,t.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,n),this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let t=this.treeAdapter.createElement(l.TAG_NAMES.HTML,l.NS.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,l.TAG_ID.HTML)}_appendCommentNode(t,r){let n=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(r,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,t.location)}_insertCharacters(t){let r,n;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(r,t.chars,n):this.treeAdapter.insertText(r,t.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,t.chars)),!t.location)return;let i=this.treeAdapter.getChildNodes(r),s=n?i.lastIndexOf(n):i.length,a=i[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){let{endLine:o,endCol:c,endOffset:h}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:o,endCol:c,endOffset:h})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}_adoptNodes(t,r){for(let n=this.treeAdapter.getFirstChild(t);n;n=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(r,n)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){let n=r.location,i=this.treeAdapter.getTagName(t),s=r.type===ut.TokenType.END_TAG&&i===r.tagName?{endTag:Object.assign({},n),endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let r,n;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,n=this.fragmentContextID):{current:r,currentTagId:n}=this.openElements,t.tagID===l.TAG_ID.SVG&&this.treeAdapter.getTagName(r)===l.TAG_NAMES.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===l.NS.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===l.TAG_ID.MGLYPH||t.tagID===l.TAG_ID.MALIGNMARK)&&!this._isIntegrationPoint(n,r,l.NS.HTML)}_processToken(t){switch(t.type){case ut.TokenType.CHARACTER:{this.onCharacter(t);break}case ut.TokenType.NULL_CHARACTER:{this.onNullCharacter(t);break}case ut.TokenType.COMMENT:{this.onComment(t);break}case ut.TokenType.DOCTYPE:{this.onDoctype(t);break}case ut.TokenType.START_TAG:{this._processStartTag(t);break}case ut.TokenType.END_TAG:{this.onEndTag(t);break}case ut.TokenType.EOF:{this.onEof(t);break}case ut.TokenType.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,n){let i=this.treeAdapter.getNamespaceURI(r),s=this.treeAdapter.getAttrList(r);return qr.isIntegrationPoint(t,i,s,n)}_reconstructActiveFormattingElements(){let t=this.activeFormattingElements.entries.length;if(t){let r=this.activeFormattingElements.entries.findIndex(i=>i.type===yA.EntryType.Marker||this.openElements.contains(i.element)),n=r<0?t-1:r-1;for(let i=n;i>=0;i--){let s=this.activeFormattingElements.entries[i];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=A.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(l.TAG_ID.P),this.openElements.popUntilTagNamePopped(l.TAG_ID.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case l.TAG_ID.TR:{this.insertionMode=A.IN_ROW;return}case l.TAG_ID.TBODY:case l.TAG_ID.THEAD:case l.TAG_ID.TFOOT:{this.insertionMode=A.IN_TABLE_BODY;return}case l.TAG_ID.CAPTION:{this.insertionMode=A.IN_CAPTION;return}case l.TAG_ID.COLGROUP:{this.insertionMode=A.IN_COLUMN_GROUP;return}case l.TAG_ID.TABLE:{this.insertionMode=A.IN_TABLE;return}case l.TAG_ID.BODY:{this.insertionMode=A.IN_BODY;return}case l.TAG_ID.FRAMESET:{this.insertionMode=A.IN_FRAMESET;return}case l.TAG_ID.SELECT:{this._resetInsertionModeForSelect(t);return}case l.TAG_ID.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case l.TAG_ID.HTML:{this.insertionMode=this.headElement?A.AFTER_HEAD:A.BEFORE_HEAD;return}case l.TAG_ID.TD:case l.TAG_ID.TH:{if(t>0){this.insertionMode=A.IN_CELL;return}break}case l.TAG_ID.HEAD:{if(t>0){this.insertionMode=A.IN_HEAD;return}break}}this.insertionMode=A.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){let n=this.openElements.tagIDs[r];if(n===l.TAG_ID.TEMPLATE)break;if(n===l.TAG_ID.TABLE){this.insertionMode=A.IN_SELECT_IN_TABLE;return}}this.insertionMode=A.IN_SELECT}_isElementCausesFosterParenting(t){return CA.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){let r=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case l.TAG_ID.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===l.NS.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case l.TAG_ID.TABLE:{let n=this.treeAdapter.getParentNode(r);return n?{parent:n,beforeElement:r}:{parent:this.openElements.items[t-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){let r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_isSpecialElement(t,r){let n=this.treeAdapter.getNamespaceURI(t);return l.SPECIAL_ELEMENTS[n].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){FL(this,t);return}switch(this.insertionMode){case A.INITIAL:{gu(this,t);break}case A.BEFORE_HTML:{_u(this,t);break}case A.BEFORE_HEAD:{Tu(this,t);break}case A.IN_HEAD:{bu(this,t);break}case A.IN_HEAD_NO_SCRIPT:{Eu(this,t);break}case A.AFTER_HEAD:{Au(this,t);break}case A.IN_BODY:case A.IN_CAPTION:case A.IN_CELL:case A.IN_TEMPLATE:{OA(this,t);break}case A.TEXT:case A.IN_SELECT:case A.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case A.IN_TABLE:case A.IN_TABLE_BODY:case A.IN_ROW:{Sh(this,t);break}case A.IN_TABLE_TEXT:{FA(this,t);break}case A.IN_COLUMN_GROUP:{Uc(this,t);break}case A.AFTER_BODY:{zc(this,t);break}case A.AFTER_AFTER_BODY:{Vc(this,t);break}default:}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){kL(this,t);return}switch(this.insertionMode){case A.INITIAL:{gu(this,t);break}case A.BEFORE_HTML:{_u(this,t);break}case A.BEFORE_HEAD:{Tu(this,t);break}case A.IN_HEAD:{bu(this,t);break}case A.IN_HEAD_NO_SCRIPT:{Eu(this,t);break}case A.AFTER_HEAD:{Au(this,t);break}case A.TEXT:{this._insertCharacters(t);break}case A.IN_TABLE:case A.IN_TABLE_BODY:case A.IN_ROW:{Sh(this,t);break}case A.IN_COLUMN_GROUP:{Uc(this,t);break}case A.AFTER_BODY:{zc(this,t);break}case A.AFTER_AFTER_BODY:{Vc(this,t);break}default:}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Ch(this,t);return}switch(this.insertionMode){case A.INITIAL:case A.BEFORE_HTML:case A.BEFORE_HEAD:case A.IN_HEAD:case A.IN_HEAD_NO_SCRIPT:case A.AFTER_HEAD:case A.IN_BODY:case A.IN_TABLE:case A.IN_CAPTION:case A.IN_COLUMN_GROUP:case A.IN_TABLE_BODY:case A.IN_ROW:case A.IN_CELL:case A.IN_SELECT:case A.IN_SELECT_IN_TABLE:case A.IN_TEMPLATE:case A.IN_FRAMESET:case A.AFTER_FRAMESET:{Ch(this,t);break}case A.IN_TABLE_TEXT:{vu(this,t);break}case A.AFTER_BODY:{p6(this,t);break}case A.AFTER_AFTER_BODY:case A.AFTER_AFTER_FRAMESET:{m6(this,t);break}default:}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case A.INITIAL:{g6(this,t);break}case A.BEFORE_HEAD:case A.IN_HEAD:case A.IN_HEAD_NO_SCRIPT:case A.AFTER_HEAD:{this._err(t,gt.ERR.misplacedDoctype);break}case A.IN_TABLE_TEXT:{vu(this,t);break}default:}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,gt.ERR.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?BL(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case A.INITIAL:{gu(this,t);break}case A.BEFORE_HTML:{_6(this,t);break}case A.BEFORE_HEAD:{b6(this,t);break}case A.IN_HEAD:{Sr(this,t);break}case A.IN_HEAD_NO_SCRIPT:{y6(this,t);break}case A.AFTER_HEAD:{v6(this,t);break}case A.IN_BODY:{Ct(this,t);break}case A.IN_TABLE:{Ks(this,t);break}case A.IN_TABLE_TEXT:{vu(this,t);break}case A.IN_CAPTION:{EL(this,t);break}case A.IN_COLUMN_GROUP:{xh(this,t);break}case A.IN_TABLE_BODY:{Gc(this,t);break}case A.IN_ROW:{qc(this,t);break}case A.IN_CELL:{IL(this,t);break}case A.IN_SELECT:{HA(this,t);break}case A.IN_SELECT_IN_TABLE:{CL(this,t);break}case A.IN_TEMPLATE:{SL(this,t);break}case A.AFTER_BODY:{OL(this,t);break}case A.IN_FRAMESET:{NL(this,t);break}case A.AFTER_FRAMESET:{RL(this,t);break}case A.AFTER_AFTER_BODY:{LL(this,t);break}case A.AFTER_AFTER_FRAMESET:{ML(this,t);break}default:}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?jL(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case A.INITIAL:{gu(this,t);break}case A.BEFORE_HTML:{T6(this,t);break}case A.BEFORE_HEAD:{E6(this,t);break}case A.IN_HEAD:{A6(this,t);break}case A.IN_HEAD_NO_SCRIPT:{I6(this,t);break}case A.AFTER_HEAD:{C6(this,t);break}case A.IN_BODY:{Hc(this,t);break}case A.TEXT:{lL(this,t);break}case A.IN_TABLE:{yu(this,t);break}case A.IN_TABLE_TEXT:{vu(this,t);break}case A.IN_CAPTION:{AL(this,t);break}case A.IN_COLUMN_GROUP:{yL(this,t);break}case A.IN_TABLE_BODY:{Oh(this,t);break}case A.IN_ROW:{jA(this,t);break}case A.IN_CELL:{vL(this,t);break}case A.IN_SELECT:{UA(this,t);break}case A.IN_SELECT_IN_TABLE:{DL(this,t);break}case A.IN_TEMPLATE:{xL(this,t);break}case A.AFTER_BODY:{qA(this,t);break}case A.IN_FRAMESET:{wL(this,t);break}case A.AFTER_FRAMESET:{PL(this,t);break}case A.AFTER_AFTER_BODY:{Vc(this,t);break}default:}}onEof(t){switch(this.insertionMode){case A.INITIAL:{gu(this,t);break}case A.BEFORE_HTML:{_u(this,t);break}case A.BEFORE_HEAD:{Tu(this,t);break}case A.IN_HEAD:{bu(this,t);break}case A.IN_HEAD_NO_SCRIPT:{Eu(this,t);break}case A.AFTER_HEAD:{Au(this,t);break}case A.IN_BODY:case A.IN_TABLE:case A.IN_CAPTION:case A.IN_COLUMN_GROUP:case A.IN_TABLE_BODY:case A.IN_ROW:case A.IN_CELL:case A.IN_SELECT:case A.IN_SELECT_IN_TABLE:{MA(this,t);break}case A.TEXT:{fL(this,t);break}case A.IN_TABLE_TEXT:{vu(this,t);break}case A.IN_TEMPLATE:{GA(this,t);break}case A.AFTER_BODY:case A.IN_FRAMESET:case A.AFTER_FRAMESET:case A.AFTER_AFTER_BODY:case A.AFTER_AFTER_FRAMESET:{Dh(this,t);break}default:}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===vA.CODE_POINTS.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case A.IN_HEAD:case A.IN_HEAD_NO_SCRIPT:case A.AFTER_HEAD:case A.TEXT:case A.IN_COLUMN_GROUP:case A.IN_SELECT:case A.IN_SELECT_IN_TABLE:case A.IN_FRAMESET:case A.AFTER_FRAMESET:{this._insertCharacters(t);break}case A.IN_BODY:case A.IN_CAPTION:case A.IN_CELL:case A.IN_TEMPLATE:case A.AFTER_BODY:case A.AFTER_AFTER_BODY:case A.AFTER_AFTER_FRAMESET:{xA(this,t);break}case A.IN_TABLE:case A.IN_TABLE_BODY:case A.IN_ROW:{Sh(this,t);break}case A.IN_TABLE_TEXT:{kA(this,t);break}default:}}};Kc.Parser=SA;function o6(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):LA(e,t),r}function c6(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 l6(e,t,r){let n=t,i=e.openElements.getCommonAncestor(t);for(let s=0,a=i;a!==r;s++,a=i){i=e.openElements.getCommonAncestor(a);let u=e.activeFormattingElements.getElementEntry(a),o=u&&s>=a6;!u||o?(o&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(a)):(a=f6(e,u),n===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(a,n),n=a)}return n}function f6(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 d6(e,t,r){let n=e.treeAdapter.getTagName(t),i=(0,l.getTagID)(n);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(r);else{let s=e.treeAdapter.getNamespaceURI(t);i===l.TAG_ID.TEMPLATE&&s===l.NS.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function h6(e,t,r){let n=e.treeAdapter.getNamespaceURI(r.element),{token:i}=r,s=e.treeAdapter.createElement(i.tagName,n,i.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,i),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,s,i.tagID)}function vh(e,t){for(let r=0;r<s6;r++){let n=o6(e,t);if(!n)break;let i=c6(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;let s=l6(e,i,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(s),a&&d6(e,a,s),h6(e,i,n)}}function Ch(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function p6(e,t){e._appendCommentNode(t,e.openElements.items[0])}function m6(e,t){e._appendCommentNode(t,e.document)}function Dh(e,t){if(e.stopped=!0,t.location){let r=e.fragmentContext?0:2;for(let n=e.openElements.stackTop;n>=r;n--)e._setEndLocation(e.openElements.items[n],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let n=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(n);if(i&&!i.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){let s=e.openElements.items[1],a=e.treeAdapter.getNodeSourceCodeLocation(s);a&&!a.endTag&&e._setEndLocation(s,t)}}}}function g6(e,t){e._setDocumentType(t);let r=t.forceQuirks?l.DOCUMENT_MODE.QUIRKS:IA.getDocumentMode(t);IA.isConforming(t)||e._err(t,gt.ERR.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=A.BEFORE_HTML}function gu(e,t){e._err(t,gt.ERR.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,l.DOCUMENT_MODE.QUIRKS),e.insertionMode=A.BEFORE_HTML,e._processToken(t)}function _6(e,t){t.tagID===l.TAG_ID.HTML?(e._insertElement(t,l.NS.HTML),e.insertionMode=A.BEFORE_HEAD):_u(e,t)}function T6(e,t){let r=t.tagID;(r===l.TAG_ID.HTML||r===l.TAG_ID.HEAD||r===l.TAG_ID.BODY||r===l.TAG_ID.BR)&&_u(e,t)}function _u(e,t){e._insertFakeRootElement(),e.insertionMode=A.BEFORE_HEAD,e._processToken(t)}function b6(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.HEAD:{e._insertElement(t,l.NS.HTML),e.headElement=e.openElements.current,e.insertionMode=A.IN_HEAD;break}default:Tu(e,t)}}function E6(e,t){let r=t.tagID;r===l.TAG_ID.HEAD||r===l.TAG_ID.BODY||r===l.TAG_ID.HTML||r===l.TAG_ID.BR?Tu(e,t):e._err(t,gt.ERR.endTagWithoutMatchingOpenElement)}function Tu(e,t){e._insertFakeElement(l.TAG_NAMES.HEAD,l.TAG_ID.HEAD),e.headElement=e.openElements.current,e.insertionMode=A.IN_HEAD,e._processToken(t)}function Sr(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.BASE:case l.TAG_ID.BASEFONT:case l.TAG_ID.BGSOUND:case l.TAG_ID.LINK:case l.TAG_ID.META:{e._appendElement(t,l.NS.HTML),t.ackSelfClosing=!0;break}case l.TAG_ID.TITLE:{e._switchToTextParsing(t,Rt.TokenizerMode.RCDATA);break}case l.TAG_ID.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Rt.TokenizerMode.RAWTEXT):(e._insertElement(t,l.NS.HTML),e.insertionMode=A.IN_HEAD_NO_SCRIPT);break}case l.TAG_ID.NOFRAMES:case l.TAG_ID.STYLE:{e._switchToTextParsing(t,Rt.TokenizerMode.RAWTEXT);break}case l.TAG_ID.SCRIPT:{e._switchToTextParsing(t,Rt.TokenizerMode.SCRIPT_DATA);break}case l.TAG_ID.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=A.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(A.IN_TEMPLATE);break}case l.TAG_ID.HEAD:{e._err(t,gt.ERR.misplacedStartTagForHeadElement);break}default:bu(e,t)}}function A6(e,t){switch(t.tagID){case l.TAG_ID.HEAD:{e.openElements.pop(),e.insertionMode=A.AFTER_HEAD;break}case l.TAG_ID.BODY:case l.TAG_ID.BR:case l.TAG_ID.HTML:{bu(e,t);break}case l.TAG_ID.TEMPLATE:{Ni(e,t);break}default:e._err(t,gt.ERR.endTagWithoutMatchingOpenElement)}}function Ni(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==l.TAG_ID.TEMPLATE&&e._err(t,gt.ERR.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(l.TAG_ID.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,gt.ERR.endTagWithoutMatchingOpenElement)}function bu(e,t){e.openElements.pop(),e.insertionMode=A.AFTER_HEAD,e._processToken(t)}function y6(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.BASEFONT:case l.TAG_ID.BGSOUND:case l.TAG_ID.HEAD:case l.TAG_ID.LINK:case l.TAG_ID.META:case l.TAG_ID.NOFRAMES:case l.TAG_ID.STYLE:{Sr(e,t);break}case l.TAG_ID.NOSCRIPT:{e._err(t,gt.ERR.nestedNoscriptInHead);break}default:Eu(e,t)}}function I6(e,t){switch(t.tagID){case l.TAG_ID.NOSCRIPT:{e.openElements.pop(),e.insertionMode=A.IN_HEAD;break}case l.TAG_ID.BR:{Eu(e,t);break}default:e._err(t,gt.ERR.endTagWithoutMatchingOpenElement)}}function Eu(e,t){let r=t.type===ut.TokenType.EOF?gt.ERR.openElementsLeftAfterEof:gt.ERR.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=A.IN_HEAD,e._processToken(t)}function v6(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.BODY:{e._insertElement(t,l.NS.HTML),e.framesetOk=!1,e.insertionMode=A.IN_BODY;break}case l.TAG_ID.FRAMESET:{e._insertElement(t,l.NS.HTML),e.insertionMode=A.IN_FRAMESET;break}case l.TAG_ID.BASE:case l.TAG_ID.BASEFONT:case l.TAG_ID.BGSOUND:case l.TAG_ID.LINK:case l.TAG_ID.META:case l.TAG_ID.NOFRAMES:case l.TAG_ID.SCRIPT:case l.TAG_ID.STYLE:case l.TAG_ID.TEMPLATE:case l.TAG_ID.TITLE:{e._err(t,gt.ERR.abandonedHeadElementChild),e.openElements.push(e.headElement,l.TAG_ID.HEAD),Sr(e,t),e.openElements.remove(e.headElement);break}case l.TAG_ID.HEAD:{e._err(t,gt.ERR.misplacedStartTagForHeadElement);break}default:Au(e,t)}}function C6(e,t){switch(t.tagID){case l.TAG_ID.BODY:case l.TAG_ID.HTML:case l.TAG_ID.BR:{Au(e,t);break}case l.TAG_ID.TEMPLATE:{Ni(e,t);break}default:e._err(t,gt.ERR.endTagWithoutMatchingOpenElement)}}function Au(e,t){e._insertFakeElement(l.TAG_NAMES.BODY,l.TAG_ID.BODY),e.insertionMode=A.IN_BODY,jc(e,t)}function jc(e,t){switch(t.type){case ut.TokenType.CHARACTER:{OA(e,t);break}case ut.TokenType.WHITESPACE_CHARACTER:{xA(e,t);break}case ut.TokenType.COMMENT:{Ch(e,t);break}case ut.TokenType.START_TAG:{Ct(e,t);break}case ut.TokenType.END_TAG:{Hc(e,t);break}case ut.TokenType.EOF:{MA(e,t);break}default:}}function xA(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function OA(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function D6(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function S6(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function x6(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,l.NS.HTML),e.insertionMode=A.IN_FRAMESET)}function O6(e,t){e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),e._insertElement(t,l.NS.HTML)}function N6(e,t){e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),(0,l.isNumberedHeader)(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,l.NS.HTML)}function w6(e,t){e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),e._insertElement(t,l.NS.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function R6(e,t){let r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),e._insertElement(t,l.NS.HTML),r||(e.formElement=e.openElements.current))}function P6(e,t){e.framesetOk=!1;let r=t.tagID;for(let n=e.openElements.stackTop;n>=0;n--){let i=e.openElements.tagIDs[n];if(r===l.TAG_ID.LI&&i===l.TAG_ID.LI||(r===l.TAG_ID.DD||r===l.TAG_ID.DT)&&(i===l.TAG_ID.DD||i===l.TAG_ID.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==l.TAG_ID.ADDRESS&&i!==l.TAG_ID.DIV&&i!==l.TAG_ID.P&&e._isSpecialElement(e.openElements.items[n],i))break}e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),e._insertElement(t,l.NS.HTML)}function L6(e,t){e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),e._insertElement(t,l.NS.HTML),e.tokenizer.state=Rt.TokenizerMode.PLAINTEXT}function M6(e,t){e.openElements.hasInScope(l.TAG_ID.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.TAG_ID.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,l.NS.HTML),e.framesetOk=!1}function k6(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(l.TAG_NAMES.A);r&&(vh(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,l.NS.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function F6(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,l.NS.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function B6(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(l.TAG_ID.NOBR)&&(vh(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,l.NS.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function j6(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,l.NS.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function H6(e,t){e.treeAdapter.getDocumentMode(e.document)!==l.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),e._insertElement(t,l.NS.HTML),e.framesetOk=!1,e.insertionMode=A.IN_TABLE}function NA(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,l.NS.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function wA(e){let t=(0,ut.getTokenAttr)(e,l.ATTRS.TYPE);return t!=null&&t.toLowerCase()===i6}function U6(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,l.NS.HTML),wA(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function G6(e,t){e._appendElement(t,l.NS.HTML),t.ackSelfClosing=!0}function q6(e,t){e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),e._appendElement(t,l.NS.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function z6(e,t){t.tagName=l.TAG_NAMES.IMG,t.tagID=l.TAG_ID.IMG,NA(e,t)}function V6(e,t){e._insertElement(t,l.NS.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Rt.TokenizerMode.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=A.TEXT}function K6(e,t){e.openElements.hasInButtonScope(l.TAG_ID.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Rt.TokenizerMode.RAWTEXT)}function W6(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Rt.TokenizerMode.RAWTEXT)}function RA(e,t){e._switchToTextParsing(t,Rt.TokenizerMode.RAWTEXT)}function Y6(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,l.NS.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===A.IN_TABLE||e.insertionMode===A.IN_CAPTION||e.insertionMode===A.IN_TABLE_BODY||e.insertionMode===A.IN_ROW||e.insertionMode===A.IN_CELL?A.IN_SELECT_IN_TABLE:A.IN_SELECT}function Q6(e,t){e.openElements.currentTagId===l.TAG_ID.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,l.NS.HTML)}function $6(e,t){e.openElements.hasInScope(l.TAG_ID.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,l.NS.HTML)}function X6(e,t){e.openElements.hasInScope(l.TAG_ID.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(l.TAG_ID.RTC),e._insertElement(t,l.NS.HTML)}function Z6(e,t){e._reconstructActiveFormattingElements(),qr.adjustTokenMathMLAttrs(t),qr.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,l.NS.MATHML):e._insertElement(t,l.NS.MATHML),t.ackSelfClosing=!0}function J6(e,t){e._reconstructActiveFormattingElements(),qr.adjustTokenSVGAttrs(t),qr.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,l.NS.SVG):e._insertElement(t,l.NS.SVG),t.ackSelfClosing=!0}function PA(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,l.NS.HTML)}function Ct(e,t){switch(t.tagID){case l.TAG_ID.I:case l.TAG_ID.S:case l.TAG_ID.B:case l.TAG_ID.U:case l.TAG_ID.EM:case l.TAG_ID.TT:case l.TAG_ID.BIG:case l.TAG_ID.CODE:case l.TAG_ID.FONT:case l.TAG_ID.SMALL:case l.TAG_ID.STRIKE:case l.TAG_ID.STRONG:{F6(e,t);break}case l.TAG_ID.A:{k6(e,t);break}case l.TAG_ID.H1:case l.TAG_ID.H2:case l.TAG_ID.H3:case l.TAG_ID.H4:case l.TAG_ID.H5:case l.TAG_ID.H6:{N6(e,t);break}case l.TAG_ID.P:case l.TAG_ID.DL:case l.TAG_ID.OL:case l.TAG_ID.UL:case l.TAG_ID.DIV:case l.TAG_ID.DIR:case l.TAG_ID.NAV:case l.TAG_ID.MAIN:case l.TAG_ID.MENU:case l.TAG_ID.ASIDE:case l.TAG_ID.CENTER:case l.TAG_ID.FIGURE:case l.TAG_ID.FOOTER:case l.TAG_ID.HEADER:case l.TAG_ID.HGROUP:case l.TAG_ID.DIALOG:case l.TAG_ID.DETAILS:case l.TAG_ID.ADDRESS:case l.TAG_ID.ARTICLE:case l.TAG_ID.SECTION:case l.TAG_ID.SUMMARY:case l.TAG_ID.FIELDSET:case l.TAG_ID.BLOCKQUOTE:case l.TAG_ID.FIGCAPTION:{O6(e,t);break}case l.TAG_ID.LI:case l.TAG_ID.DD:case l.TAG_ID.DT:{P6(e,t);break}case l.TAG_ID.BR:case l.TAG_ID.IMG:case l.TAG_ID.WBR:case l.TAG_ID.AREA:case l.TAG_ID.EMBED:case l.TAG_ID.KEYGEN:{NA(e,t);break}case l.TAG_ID.HR:{q6(e,t);break}case l.TAG_ID.RB:case l.TAG_ID.RTC:{$6(e,t);break}case l.TAG_ID.RT:case l.TAG_ID.RP:{X6(e,t);break}case l.TAG_ID.PRE:case l.TAG_ID.LISTING:{w6(e,t);break}case l.TAG_ID.XMP:{K6(e,t);break}case l.TAG_ID.SVG:{J6(e,t);break}case l.TAG_ID.HTML:{D6(e,t);break}case l.TAG_ID.BASE:case l.TAG_ID.LINK:case l.TAG_ID.META:case l.TAG_ID.STYLE:case l.TAG_ID.TITLE:case l.TAG_ID.SCRIPT:case l.TAG_ID.BGSOUND:case l.TAG_ID.BASEFONT:case l.TAG_ID.TEMPLATE:{Sr(e,t);break}case l.TAG_ID.BODY:{S6(e,t);break}case l.TAG_ID.FORM:{R6(e,t);break}case l.TAG_ID.NOBR:{B6(e,t);break}case l.TAG_ID.MATH:{Z6(e,t);break}case l.TAG_ID.TABLE:{H6(e,t);break}case l.TAG_ID.INPUT:{U6(e,t);break}case l.TAG_ID.PARAM:case l.TAG_ID.TRACK:case l.TAG_ID.SOURCE:{G6(e,t);break}case l.TAG_ID.IMAGE:{z6(e,t);break}case l.TAG_ID.BUTTON:{M6(e,t);break}case l.TAG_ID.APPLET:case l.TAG_ID.OBJECT:case l.TAG_ID.MARQUEE:{j6(e,t);break}case l.TAG_ID.IFRAME:{W6(e,t);break}case l.TAG_ID.SELECT:{Y6(e,t);break}case l.TAG_ID.OPTION:case l.TAG_ID.OPTGROUP:{Q6(e,t);break}case l.TAG_ID.NOEMBED:{RA(e,t);break}case l.TAG_ID.FRAMESET:{x6(e,t);break}case l.TAG_ID.TEXTAREA:{V6(e,t);break}case l.TAG_ID.NOSCRIPT:{e.options.scriptingEnabled?RA(e,t):PA(e,t);break}case l.TAG_ID.PLAINTEXT:{L6(e,t);break}case l.TAG_ID.COL:case l.TAG_ID.TH:case l.TAG_ID.TD:case l.TAG_ID.TR:case l.TAG_ID.HEAD:case l.TAG_ID.FRAME:case l.TAG_ID.TBODY:case l.TAG_ID.TFOOT:case l.TAG_ID.THEAD:case l.TAG_ID.CAPTION:case l.TAG_ID.COLGROUP:break;default:PA(e,t)}}function eL(e,t){if(e.openElements.hasInScope(l.TAG_ID.BODY)&&(e.insertionMode=A.AFTER_BODY,e.options.sourceCodeLocationInfo)){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function tL(e,t){e.openElements.hasInScope(l.TAG_ID.BODY)&&(e.insertionMode=A.AFTER_BODY,qA(e,t))}function rL(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function nL(e){let t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(l.TAG_ID.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(l.TAG_ID.FORM):r&&e.openElements.remove(r))}function iL(e){e.openElements.hasInButtonScope(l.TAG_ID.P)||e._insertFakeElement(l.TAG_NAMES.P,l.TAG_ID.P),e._closePElement()}function sL(e){e.openElements.hasInListItemScope(l.TAG_ID.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(l.TAG_ID.LI),e.openElements.popUntilTagNamePopped(l.TAG_ID.LI))}function aL(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function uL(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function oL(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function cL(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(l.TAG_NAMES.BR,l.TAG_ID.BR),e.openElements.pop(),e.framesetOk=!1}function LA(e,t){let r=t.tagName,n=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){let s=e.openElements.items[i],a=e.openElements.tagIDs[i];if(n===a&&(n!==l.TAG_ID.UNKNOWN||e.treeAdapter.getTagName(s)===r)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(s,a))break}}function Hc(e,t){switch(t.tagID){case l.TAG_ID.A:case l.TAG_ID.B:case l.TAG_ID.I:case l.TAG_ID.S:case l.TAG_ID.U:case l.TAG_ID.EM:case l.TAG_ID.TT:case l.TAG_ID.BIG:case l.TAG_ID.CODE:case l.TAG_ID.FONT:case l.TAG_ID.NOBR:case l.TAG_ID.SMALL:case l.TAG_ID.STRIKE:case l.TAG_ID.STRONG:{vh(e,t);break}case l.TAG_ID.P:{iL(e);break}case l.TAG_ID.DL:case l.TAG_ID.UL:case l.TAG_ID.OL:case l.TAG_ID.DIR:case l.TAG_ID.DIV:case l.TAG_ID.NAV:case l.TAG_ID.PRE:case l.TAG_ID.MAIN:case l.TAG_ID.MENU:case l.TAG_ID.ASIDE:case l.TAG_ID.BUTTON:case l.TAG_ID.CENTER:case l.TAG_ID.FIGURE:case l.TAG_ID.FOOTER:case l.TAG_ID.HEADER:case l.TAG_ID.HGROUP:case l.TAG_ID.DIALOG:case l.TAG_ID.ADDRESS:case l.TAG_ID.ARTICLE:case l.TAG_ID.DETAILS:case l.TAG_ID.SECTION:case l.TAG_ID.SUMMARY:case l.TAG_ID.LISTING:case l.TAG_ID.FIELDSET:case l.TAG_ID.BLOCKQUOTE:case l.TAG_ID.FIGCAPTION:{rL(e,t);break}case l.TAG_ID.LI:{sL(e);break}case l.TAG_ID.DD:case l.TAG_ID.DT:{aL(e,t);break}case l.TAG_ID.H1:case l.TAG_ID.H2:case l.TAG_ID.H3:case l.TAG_ID.H4:case l.TAG_ID.H5:case l.TAG_ID.H6:{uL(e);break}case l.TAG_ID.BR:{cL(e);break}case l.TAG_ID.BODY:{eL(e,t);break}case l.TAG_ID.HTML:{tL(e,t);break}case l.TAG_ID.FORM:{nL(e);break}case l.TAG_ID.APPLET:case l.TAG_ID.OBJECT:case l.TAG_ID.MARQUEE:{oL(e,t);break}case l.TAG_ID.TEMPLATE:{Ni(e,t);break}default:LA(e,t)}}function MA(e,t){e.tmplInsertionModeStack.length>0?GA(e,t):Dh(e,t)}function lL(e,t){var r;t.tagID===l.TAG_ID.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function fL(e,t){e._err(t,gt.ERR.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Sh(e,t){if(CA.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=A.IN_TABLE_TEXT,t.type){case ut.TokenType.CHARACTER:{FA(e,t);break}case ut.TokenType.WHITESPACE_CHARACTER:{kA(e,t);break}}else Iu(e,t)}function dL(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,l.NS.HTML),e.insertionMode=A.IN_CAPTION}function hL(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,l.NS.HTML),e.insertionMode=A.IN_COLUMN_GROUP}function pL(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(l.TAG_NAMES.COLGROUP,l.TAG_ID.COLGROUP),e.insertionMode=A.IN_COLUMN_GROUP,xh(e,t)}function mL(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,l.NS.HTML),e.insertionMode=A.IN_TABLE_BODY}function gL(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(l.TAG_NAMES.TBODY,l.TAG_ID.TBODY),e.insertionMode=A.IN_TABLE_BODY,Gc(e,t)}function _L(e,t){e.openElements.hasInTableScope(l.TAG_ID.TABLE)&&(e.openElements.popUntilTagNamePopped(l.TAG_ID.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function TL(e,t){wA(t)?e._appendElement(t,l.NS.HTML):Iu(e,t),t.ackSelfClosing=!0}function bL(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,l.NS.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Ks(e,t){switch(t.tagID){case l.TAG_ID.TD:case l.TAG_ID.TH:case l.TAG_ID.TR:{gL(e,t);break}case l.TAG_ID.STYLE:case l.TAG_ID.SCRIPT:case l.TAG_ID.TEMPLATE:{Sr(e,t);break}case l.TAG_ID.COL:{pL(e,t);break}case l.TAG_ID.FORM:{bL(e,t);break}case l.TAG_ID.TABLE:{_L(e,t);break}case l.TAG_ID.TBODY:case l.TAG_ID.TFOOT:case l.TAG_ID.THEAD:{mL(e,t);break}case l.TAG_ID.INPUT:{TL(e,t);break}case l.TAG_ID.CAPTION:{dL(e,t);break}case l.TAG_ID.COLGROUP:{hL(e,t);break}default:Iu(e,t)}}function yu(e,t){switch(t.tagID){case l.TAG_ID.TABLE:{e.openElements.hasInTableScope(l.TAG_ID.TABLE)&&(e.openElements.popUntilTagNamePopped(l.TAG_ID.TABLE),e._resetInsertionMode());break}case l.TAG_ID.TEMPLATE:{Ni(e,t);break}case l.TAG_ID.BODY:case l.TAG_ID.CAPTION:case l.TAG_ID.COL:case l.TAG_ID.COLGROUP:case l.TAG_ID.HTML:case l.TAG_ID.TBODY:case l.TAG_ID.TD:case l.TAG_ID.TFOOT:case l.TAG_ID.TH:case l.TAG_ID.THEAD:case l.TAG_ID.TR:break;default:Iu(e,t)}}function Iu(e,t){let r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,jc(e,t),e.fosterParentingEnabled=r}function kA(e,t){e.pendingCharacterTokens.push(t)}function FA(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function vu(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)Iu(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}var BA=new Set([l.TAG_ID.CAPTION,l.TAG_ID.COL,l.TAG_ID.COLGROUP,l.TAG_ID.TBODY,l.TAG_ID.TD,l.TAG_ID.TFOOT,l.TAG_ID.TH,l.TAG_ID.THEAD,l.TAG_ID.TR]);function EL(e,t){let r=t.tagID;BA.has(r)?e.openElements.hasInTableScope(l.TAG_ID.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.TAG_ID.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=A.IN_TABLE,Ks(e,t)):Ct(e,t)}function AL(e,t){let r=t.tagID;switch(r){case l.TAG_ID.CAPTION:case l.TAG_ID.TABLE:{e.openElements.hasInTableScope(l.TAG_ID.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.TAG_ID.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=A.IN_TABLE,r===l.TAG_ID.TABLE&&yu(e,t));break}case l.TAG_ID.BODY:case l.TAG_ID.COL:case l.TAG_ID.COLGROUP:case l.TAG_ID.HTML:case l.TAG_ID.TBODY:case l.TAG_ID.TD:case l.TAG_ID.TFOOT:case l.TAG_ID.TH:case l.TAG_ID.THEAD:case l.TAG_ID.TR:break;default:Hc(e,t)}}function xh(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.COL:{e._appendElement(t,l.NS.HTML),t.ackSelfClosing=!0;break}case l.TAG_ID.TEMPLATE:{Sr(e,t);break}default:Uc(e,t)}}function yL(e,t){switch(t.tagID){case l.TAG_ID.COLGROUP:{e.openElements.currentTagId===l.TAG_ID.COLGROUP&&(e.openElements.pop(),e.insertionMode=A.IN_TABLE);break}case l.TAG_ID.TEMPLATE:{Ni(e,t);break}case l.TAG_ID.COL:break;default:Uc(e,t)}}function Uc(e,t){e.openElements.currentTagId===l.TAG_ID.COLGROUP&&(e.openElements.pop(),e.insertionMode=A.IN_TABLE,e._processToken(t))}function Gc(e,t){switch(t.tagID){case l.TAG_ID.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,l.NS.HTML),e.insertionMode=A.IN_ROW;break}case l.TAG_ID.TH:case l.TAG_ID.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(l.TAG_NAMES.TR,l.TAG_ID.TR),e.insertionMode=A.IN_ROW,qc(e,t);break}case l.TAG_ID.CAPTION:case l.TAG_ID.COL:case l.TAG_ID.COLGROUP:case l.TAG_ID.TBODY:case l.TAG_ID.TFOOT:case l.TAG_ID.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=A.IN_TABLE,Ks(e,t));break}default:Ks(e,t)}}function Oh(e,t){let r=t.tagID;switch(t.tagID){case l.TAG_ID.TBODY:case l.TAG_ID.TFOOT:case l.TAG_ID.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=A.IN_TABLE);break}case l.TAG_ID.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=A.IN_TABLE,yu(e,t));break}case l.TAG_ID.BODY:case l.TAG_ID.CAPTION:case l.TAG_ID.COL:case l.TAG_ID.COLGROUP:case l.TAG_ID.HTML:case l.TAG_ID.TD:case l.TAG_ID.TH:case l.TAG_ID.TR:break;default:yu(e,t)}}function qc(e,t){switch(t.tagID){case l.TAG_ID.TH:case l.TAG_ID.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,l.NS.HTML),e.insertionMode=A.IN_CELL,e.activeFormattingElements.insertMarker();break}case l.TAG_ID.CAPTION:case l.TAG_ID.COL:case l.TAG_ID.COLGROUP:case l.TAG_ID.TBODY:case l.TAG_ID.TFOOT:case l.TAG_ID.THEAD:case l.TAG_ID.TR:{e.openElements.hasInTableScope(l.TAG_ID.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=A.IN_TABLE_BODY,Gc(e,t));break}default:Ks(e,t)}}function jA(e,t){switch(t.tagID){case l.TAG_ID.TR:{e.openElements.hasInTableScope(l.TAG_ID.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=A.IN_TABLE_BODY);break}case l.TAG_ID.TABLE:{e.openElements.hasInTableScope(l.TAG_ID.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=A.IN_TABLE_BODY,Oh(e,t));break}case l.TAG_ID.TBODY:case l.TAG_ID.TFOOT:case l.TAG_ID.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(l.TAG_ID.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=A.IN_TABLE_BODY,Oh(e,t));break}case l.TAG_ID.BODY:case l.TAG_ID.CAPTION:case l.TAG_ID.COL:case l.TAG_ID.COLGROUP:case l.TAG_ID.HTML:case l.TAG_ID.TD:case l.TAG_ID.TH:break;default:yu(e,t)}}function IL(e,t){let r=t.tagID;BA.has(r)?(e.openElements.hasInTableScope(l.TAG_ID.TD)||e.openElements.hasInTableScope(l.TAG_ID.TH))&&(e._closeTableCell(),qc(e,t)):Ct(e,t)}function vL(e,t){let r=t.tagID;switch(r){case l.TAG_ID.TD:case l.TAG_ID.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=A.IN_ROW);break}case l.TAG_ID.TABLE:case l.TAG_ID.TBODY:case l.TAG_ID.TFOOT:case l.TAG_ID.THEAD:case l.TAG_ID.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),jA(e,t));break}case l.TAG_ID.BODY:case l.TAG_ID.CAPTION:case l.TAG_ID.COL:case l.TAG_ID.COLGROUP:case l.TAG_ID.HTML:break;default:Hc(e,t)}}function HA(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.OPTION:{e.openElements.currentTagId===l.TAG_ID.OPTION&&e.openElements.pop(),e._insertElement(t,l.NS.HTML);break}case l.TAG_ID.OPTGROUP:{e.openElements.currentTagId===l.TAG_ID.OPTION&&e.openElements.pop(),e.openElements.currentTagId===l.TAG_ID.OPTGROUP&&e.openElements.pop(),e._insertElement(t,l.NS.HTML);break}case l.TAG_ID.INPUT:case l.TAG_ID.KEYGEN:case l.TAG_ID.TEXTAREA:case l.TAG_ID.SELECT:{e.openElements.hasInSelectScope(l.TAG_ID.SELECT)&&(e.openElements.popUntilTagNamePopped(l.TAG_ID.SELECT),e._resetInsertionMode(),t.tagID!==l.TAG_ID.SELECT&&e._processStartTag(t));break}case l.TAG_ID.SCRIPT:case l.TAG_ID.TEMPLATE:{Sr(e,t);break}default:}}function UA(e,t){switch(t.tagID){case l.TAG_ID.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===l.TAG_ID.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===l.TAG_ID.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===l.TAG_ID.OPTGROUP&&e.openElements.pop();break}case l.TAG_ID.OPTION:{e.openElements.currentTagId===l.TAG_ID.OPTION&&e.openElements.pop();break}case l.TAG_ID.SELECT:{e.openElements.hasInSelectScope(l.TAG_ID.SELECT)&&(e.openElements.popUntilTagNamePopped(l.TAG_ID.SELECT),e._resetInsertionMode());break}case l.TAG_ID.TEMPLATE:{Ni(e,t);break}default:}}function CL(e,t){let r=t.tagID;r===l.TAG_ID.CAPTION||r===l.TAG_ID.TABLE||r===l.TAG_ID.TBODY||r===l.TAG_ID.TFOOT||r===l.TAG_ID.THEAD||r===l.TAG_ID.TR||r===l.TAG_ID.TD||r===l.TAG_ID.TH?(e.openElements.popUntilTagNamePopped(l.TAG_ID.SELECT),e._resetInsertionMode(),e._processStartTag(t)):HA(e,t)}function DL(e,t){let r=t.tagID;r===l.TAG_ID.CAPTION||r===l.TAG_ID.TABLE||r===l.TAG_ID.TBODY||r===l.TAG_ID.TFOOT||r===l.TAG_ID.THEAD||r===l.TAG_ID.TR||r===l.TAG_ID.TD||r===l.TAG_ID.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(l.TAG_ID.SELECT),e._resetInsertionMode(),e.onEndTag(t)):UA(e,t)}function SL(e,t){switch(t.tagID){case l.TAG_ID.BASE:case l.TAG_ID.BASEFONT:case l.TAG_ID.BGSOUND:case l.TAG_ID.LINK:case l.TAG_ID.META:case l.TAG_ID.NOFRAMES:case l.TAG_ID.SCRIPT:case l.TAG_ID.STYLE:case l.TAG_ID.TEMPLATE:case l.TAG_ID.TITLE:{Sr(e,t);break}case l.TAG_ID.CAPTION:case l.TAG_ID.COLGROUP:case l.TAG_ID.TBODY:case l.TAG_ID.TFOOT:case l.TAG_ID.THEAD:{e.tmplInsertionModeStack[0]=A.IN_TABLE,e.insertionMode=A.IN_TABLE,Ks(e,t);break}case l.TAG_ID.COL:{e.tmplInsertionModeStack[0]=A.IN_COLUMN_GROUP,e.insertionMode=A.IN_COLUMN_GROUP,xh(e,t);break}case l.TAG_ID.TR:{e.tmplInsertionModeStack[0]=A.IN_TABLE_BODY,e.insertionMode=A.IN_TABLE_BODY,Gc(e,t);break}case l.TAG_ID.TD:case l.TAG_ID.TH:{e.tmplInsertionModeStack[0]=A.IN_ROW,e.insertionMode=A.IN_ROW,qc(e,t);break}default:e.tmplInsertionModeStack[0]=A.IN_BODY,e.insertionMode=A.IN_BODY,Ct(e,t)}}function xL(e,t){t.tagID===l.TAG_ID.TEMPLATE&&Ni(e,t)}function GA(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(l.TAG_ID.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Dh(e,t)}function OL(e,t){t.tagID===l.TAG_ID.HTML?Ct(e,t):zc(e,t)}function qA(e,t){var r;if(t.tagID===l.TAG_ID.HTML){if(e.fragmentContext||(e.insertionMode=A.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===l.TAG_ID.HTML){e._setEndLocation(e.openElements.items[0],t);let n=e.openElements.items[1];n&&!((r=e.treeAdapter.getNodeSourceCodeLocation(n))===null||r===void 0?void 0:r.endTag)&&e._setEndLocation(n,t)}}else zc(e,t)}function zc(e,t){e.insertionMode=A.IN_BODY,jc(e,t)}function NL(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.FRAMESET:{e._insertElement(t,l.NS.HTML);break}case l.TAG_ID.FRAME:{e._appendElement(t,l.NS.HTML),t.ackSelfClosing=!0;break}case l.TAG_ID.NOFRAMES:{Sr(e,t);break}default:}}function wL(e,t){t.tagID===l.TAG_ID.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==l.TAG_ID.FRAMESET&&(e.insertionMode=A.AFTER_FRAMESET))}function RL(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.NOFRAMES:{Sr(e,t);break}default:}}function PL(e,t){t.tagID===l.TAG_ID.HTML&&(e.insertionMode=A.AFTER_AFTER_FRAMESET)}function LL(e,t){t.tagID===l.TAG_ID.HTML?Ct(e,t):Vc(e,t)}function Vc(e,t){e.insertionMode=A.IN_BODY,jc(e,t)}function ML(e,t){switch(t.tagID){case l.TAG_ID.HTML:{Ct(e,t);break}case l.TAG_ID.NOFRAMES:{Sr(e,t);break}default:}}function kL(e,t){t.chars=vA.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function FL(e,t){e._insertCharacters(t),e.framesetOk=!1}function zA(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==l.NS.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function BL(e,t){if(qr.causesExit(t))zA(e),e._startTagOutsideForeignContent(t);else{let r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===l.NS.MATHML?qr.adjustTokenMathMLAttrs(t):n===l.NS.SVG&&(qr.adjustTokenSVGTagName(t),qr.adjustTokenSVGAttrs(t)),qr.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}function jL(e,t){if(t.tagID===l.TAG_ID.P||t.tagID===l.TAG_ID.BR){zA(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){let n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===l.NS.HTML){e._endTagOutsideForeignContent(t);break}let i=e.treeAdapter.getTagName(n);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(r);break}}}});var $A=U(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.serializeOuter=Ws.serialize=void 0;var Le=fn(),VA=$a(),HL=Bc(),UL=new Set([Le.TAG_NAMES.AREA,Le.TAG_NAMES.BASE,Le.TAG_NAMES.BASEFONT,Le.TAG_NAMES.BGSOUND,Le.TAG_NAMES.BR,Le.TAG_NAMES.COL,Le.TAG_NAMES.EMBED,Le.TAG_NAMES.FRAME,Le.TAG_NAMES.HR,Le.TAG_NAMES.IMG,Le.TAG_NAMES.INPUT,Le.TAG_NAMES.KEYGEN,Le.TAG_NAMES.LINK,Le.TAG_NAMES.META,Le.TAG_NAMES.PARAM,Le.TAG_NAMES.SOURCE,Le.TAG_NAMES.TRACK,Le.TAG_NAMES.WBR]);function KA(e,t){return t.treeAdapter.isElementNode(e)&&t.treeAdapter.getNamespaceURI(e)===Le.NS.HTML&&UL.has(t.treeAdapter.getTagName(e))}var WA={treeAdapter:HL.defaultTreeAdapter,scriptingEnabled:!0};function GL(e,t){let r=Object.assign(Object.assign({},WA),t);return KA(e,r)?"":YA(e,r)}Ws.serialize=GL;function qL(e,t){let r=Object.assign(Object.assign({},WA),t);return QA(e,r)}Ws.serializeOuter=qL;function YA(e,t){let r="",n=t.treeAdapter.isElementNode(e)&&t.treeAdapter.getTagName(e)===Le.TAG_NAMES.TEMPLATE&&t.treeAdapter.getNamespaceURI(e)===Le.NS.HTML?t.treeAdapter.getTemplateContent(e):e,i=t.treeAdapter.getChildNodes(n);if(i)for(let s of i)r+=QA(s,t);return r}function QA(e,t){return t.treeAdapter.isElementNode(e)?zL(e,t):t.treeAdapter.isTextNode(e)?KL(e,t):t.treeAdapter.isCommentNode(e)?WL(e,t):t.treeAdapter.isDocumentTypeNode(e)?YL(e,t):""}function zL(e,t){let r=t.treeAdapter.getTagName(e);return`<${r}${VL(e,t)}>${KA(e,t)?"":`${YA(e,t)}</${r}>`}`}function VL(e,{treeAdapter:t}){let r="";for(let n of t.getAttrList(e)){if(r+=" ",!n.namespace)r+=n.name;else switch(n.namespace){case Le.NS.XML:{r+=`xml:${n.name}`;break}case Le.NS.XMLNS:{n.name!=="xmlns"&&(r+="xmlns:"),r+=n.name;break}case Le.NS.XLINK:{r+=`xlink:${n.name}`;break}default:r+=`${n.prefix}:${n.name}`}r+=`="${(0,VA.escapeAttribute)(n.value)}"`}return r}function KL(e,t){let{treeAdapter:r}=t,n=r.getTextNodeContent(e),i=r.getParentNode(e),s=i&&r.isElementNode(i)&&r.getTagName(i);return s&&r.getNamespaceURI(i)===Le.NS.HTML&&(0,Le.hasUnescapedText)(s,t.scriptingEnabled)?n:(0,VA.escapeText)(n)}function WL(e,{treeAdapter:t}){return`<!--${t.getCommentNodeContent(e)}-->`}function YL(e,{treeAdapter:t}){return`<!DOCTYPE ${t.getDocumentTypeNodeName(e)}>`}});var wh=U(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.parseFragment=Me.parse=Me.TokenizerMode=Me.Tokenizer=Me.Token=Me.html=Me.foreignContent=Me.ErrorCodes=Me.serializeOuter=Me.serialize=Me.Parser=Me.defaultTreeAdapter=void 0;var XA=Nh(),QL=Bc();Object.defineProperty(Me,"defaultTreeAdapter",{enumerable:!0,get:function(){return QL.defaultTreeAdapter}});var $L=Nh();Object.defineProperty(Me,"Parser",{enumerable:!0,get:function(){return $L.Parser}});var ZA=$A();Object.defineProperty(Me,"serialize",{enumerable:!0,get:function(){return ZA.serialize}});Object.defineProperty(Me,"serializeOuter",{enumerable:!0,get:function(){return ZA.serializeOuter}});var XL=hu();Object.defineProperty(Me,"ErrorCodes",{enumerable:!0,get:function(){return XL.ERR}});Me.foreignContent=Ih();Me.html=fn();Me.Token=Lc();var JA=Ah();Object.defineProperty(Me,"Tokenizer",{enumerable:!0,get:function(){return JA.Tokenizer}});Object.defineProperty(Me,"TokenizerMode",{enumerable:!0,get:function(){return JA.TokenizerMode}});function ZL(e,t){return XA.Parser.parse(e,t)}Me.parse=ZL;function JL(e,t,r){typeof e=="string"&&(r=t,t=e,e=null);let n=XA.Parser.getFragmentParser(e,r);return n.tokenizer.write(t,!0),n.getFragment()}Me.parseFragment=JL});var ny=U(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.adapter=zr.serializeDoctypeContent=void 0;var eM=wh(),rr=yt();function ey(e){return new rr.Text(e)}function ty(e){let t=e.includes('"')?"'":'"';return t+e+t}function ry(e,t,r){let n="!DOCTYPE ";return e&&(n+=e),t?n+=` PUBLIC ${ty(t)}`:r&&(n+=" SYSTEM"),r&&(n+=` ${ty(r)}`),n}zr.serializeDoctypeContent=ry;zr.adapter={isCommentNode:rr.isComment,isElementNode:rr.isTag,isTextNode:rr.isText,createDocument(){let e=new rr.Document([]);return e["x-mode"]=eM.html.DOCUMENT_MODE.NO_QUIRKS,e},createDocumentFragment(){return new rr.Document([])},createElement(e,t,r){let n=Object.create(null),i=Object.create(null),s=Object.create(null);for(let u=0;u<r.length;u++){let o=r[u].name;n[o]=r[u].value,i[o]=r[u].namespace,s[o]=r[u].prefix}let a=new rr.Element(e,n,[]);return a.namespace=t,a["x-attribsNamespace"]=i,a["x-attribsPrefix"]=s,a},createCommentNode(e){return new rr.Comment(e)},appendChild(e,t){let r=e.children[e.children.length-1];r&&(r.next=t,t.prev=r),e.children.push(t),t.parent=e},insertBefore(e,t,r){let n=e.children.indexOf(r),{prev:i}=r;i&&(i.next=t,t.prev=i),r.prev=t,t.next=r,e.children.splice(n,0,t),t.parent=e},setTemplateContent(e,t){zr.adapter.appendChild(e,t)},getTemplateContent(e){return e.children[0]},setDocumentType(e,t,r,n){let i=ry(t,r,n),s=e.children.find(a=>(0,rr.isDirective)(a)&&a.name==="!doctype");s?s.data=i??null:(s=new rr.ProcessingInstruction("!doctype",i),zr.adapter.appendChild(e,s)),s["x-name"]=t??void 0,s["x-publicId"]=r??void 0,s["x-systemId"]=n??void 0},setDocumentMode(e,t){e["x-mode"]=t},getDocumentMode(e){return e["x-mode"]},detachNode(e){if(e.parent){let t=e.parent.children.indexOf(e),{prev:r,next:n}=e;e.prev=null,e.next=null,r&&(r.next=n),n&&(n.prev=r),e.parent.children.splice(t,1),e.parent=null}},insertText(e,t){let r=e.children[e.children.length-1];r&&(0,rr.isText)(r)?r.data+=t:zr.adapter.appendChild(e,ey(t))},insertTextBefore(e,t,r){let n=e.children[e.children.indexOf(r)-1];n&&(0,rr.isText)(n)?n.data+=t:zr.adapter.insertBefore(e,ey(t),r)},adoptAttributes(e,t){for(let r=0;r<t.length;r++){let n=t[r].name;typeof e.attribs[n]=="undefined"&&(e.attribs[n]=t[r].value,e["x-attribsNamespace"][n]=t[r].namespace,e["x-attribsPrefix"][n]=t[r].prefix)}},getFirstChild(e){return e.children[0]},getChildNodes(e){return e.children},getParentNode(e){return e.parent},getAttrList(e){return e.attributes},getTagName(e){return e.name},getNamespaceURI(e){return e.namespace},getTextNodeContent(e){return e.data},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){var t;return(t=e["x-name"])!==null&&t!==void 0?t:""},getDocumentTypeNodePublicId(e){var t;return(t=e["x-publicId"])!==null&&t!==void 0?t:""},getDocumentTypeNodeSystemId(e){var t;return(t=e["x-systemId"])!==null&&t!==void 0?t:""},isDocumentTypeNode(e){return(0,rr.isDirective)(e)&&e.name==="!doctype"},setNodeSourceCodeLocation(e,t){t&&(e.startIndex=t.startOffset,e.endIndex=t.endOffset),e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){t.endOffset!=null&&(e.endIndex=t.endOffset),e.sourceCodeLocation=Object.assign(Object.assign({},e.sourceCodeLocation),t)}}});var sy=U(Xn=>{"use strict";var tM=Xn&&Xn.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};Object.defineProperty(Xn,"__esModule",{value:!0});Xn.renderWithParse5=Xn.parseWithParse5=void 0;var rM=yt(),Rh=wh(),iy=ny();function nM(e,t,r,n){var i={scriptingEnabled:typeof t.scriptingEnabled=="boolean"?t.scriptingEnabled:!0,treeAdapter:iy.adapter,sourceCodeLocationInfo:t.sourceCodeLocationInfo};return r?(0,Rh.parse)(e,i):(0,Rh.parseFragment)(n,e,i)}Xn.parseWithParse5=nM;var iM={treeAdapter:iy.adapter};function sM(e){for(var t,r=("length"in e)?e:[e],n=0;n<r.length;n+=1){var i=r[n];(0,rM.isDocument)(i)&&(t=Array.prototype.splice).call.apply(t,tM([r,n,1],i.children,!1))}for(var s="",n=0;n<r.length;n+=1){var i=r[n];s+=(0,Rh.serializeOuter)(i,iM)}return s}Xn.renderWithParse5=sM});var Ph=U(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.QuoteType=void 0;var wi=Is(),Q;(function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"})(Q||(Q={}));var M;(function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"})(M||(M={}));function hn(e){return e===Q.Space||e===Q.NewLine||e===Q.Tab||e===Q.FormFeed||e===Q.CarriageReturn}function Wc(e){return e===Q.Slash||e===Q.Gt||hn(e)}function ay(e){return e>=Q.Zero&&e<=Q.Nine}function aM(e){return e>=Q.LowerA&&e<=Q.LowerZ||e>=Q.UpperA&&e<=Q.UpperZ}function uM(e){return e>=Q.UpperA&&e<=Q.UpperF||e>=Q.LowerA&&e<=Q.LowerF}var Ys;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(Ys=Qs.QuoteType||(Qs.QuoteType={}));var qt={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},oM=function(){function e(t,r){var n=t.xmlMode,i=n===void 0?!1:n,s=t.decodeEntities,a=s===void 0?!0:s;this.cbs=r,this.state=M.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=M.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=i,this.decodeEntities=a,this.entityTrie=i?wi.xmlDecodeTree:wi.htmlDecodeTree}return e.prototype.reset=function(){this.state=M.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=M.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},e.prototype.write=function(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()},e.prototype.end=function(){this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},e.prototype.getIndex=function(){return this.index},e.prototype.getSectionStart=function(){return this.sectionStart},e.prototype.stateText=function(t){t===Q.Lt||!this.decodeEntities&&this.fastForwardTo(Q.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=M.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===Q.Amp&&(this.state=M.BeforeEntity)},e.prototype.stateSpecialStartSequence=function(t){var r=this.sequenceIndex===this.currentSequence.length,n=r?Wc(t):(t|32)===this.currentSequence[this.sequenceIndex];if(!n)this.isSpecial=!1;else if(!r){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=M.InTagName,this.stateInTagName(t)},e.prototype.stateInSpecialTag=function(t){if(this.sequenceIndex===this.currentSequence.length){if(t===Q.Gt||hn(t)){var r=this.index-this.currentSequence.length;if(this.sectionStart<r){var n=this.index;this.index=r,this.cbs.ontext(this.sectionStart,r),this.index=n}this.isSpecial=!1,this.sectionStart=r+2,this.stateInClosingTagName(t);return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===qt.TitleEnd?this.decodeEntities&&t===Q.Amp&&(this.state=M.BeforeEntity):this.fastForwardTo(Q.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(t===Q.Lt)},e.prototype.stateCDATASequence=function(t){t===qt.Cdata[this.sequenceIndex]?++this.sequenceIndex===qt.Cdata.length&&(this.state=M.InCommentLike,this.currentSequence=qt.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=M.InDeclaration,this.stateInDeclaration(t))},e.prototype.fastForwardTo=function(t){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===t)return!0;return this.index=this.buffer.length+this.offset-1,!1},e.prototype.stateInCommentLike=function(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===qt.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=M.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},e.prototype.isTagStartChar=function(t){return this.xmlMode?!Wc(t):aM(t)},e.prototype.startSpecial=function(t,r){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=r,this.state=M.SpecialStartSequence},e.prototype.stateBeforeTagName=function(t){if(t===Q.ExclamationMark)this.state=M.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===Q.Questionmark)this.state=M.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){var r=t|32;this.sectionStart=this.index,!this.xmlMode&&r===qt.TitleEnd[2]?this.startSpecial(qt.TitleEnd,3):this.state=!this.xmlMode&&r===qt.ScriptEnd[2]?M.BeforeSpecialS:M.InTagName}else t===Q.Slash?this.state=M.BeforeClosingTagName:(this.state=M.Text,this.stateText(t))},e.prototype.stateInTagName=function(t){Wc(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=M.BeforeAttributeName,this.stateBeforeAttributeName(t))},e.prototype.stateBeforeClosingTagName=function(t){hn(t)||(t===Q.Gt?this.state=M.Text:(this.state=this.isTagStartChar(t)?M.InClosingTagName:M.InSpecialComment,this.sectionStart=this.index))},e.prototype.stateInClosingTagName=function(t){(t===Q.Gt||hn(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=M.AfterClosingTagName,this.stateAfterClosingTagName(t))},e.prototype.stateAfterClosingTagName=function(t){(t===Q.Gt||this.fastForwardTo(Q.Gt))&&(this.state=M.Text,this.baseState=M.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeAttributeName=function(t){t===Q.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=M.InSpecialTag,this.sequenceIndex=0):this.state=M.Text,this.baseState=this.state,this.sectionStart=this.index+1):t===Q.Slash?this.state=M.InSelfClosingTag:hn(t)||(this.state=M.InAttributeName,this.sectionStart=this.index)},e.prototype.stateInSelfClosingTag=function(t){t===Q.Gt?(this.cbs.onselfclosingtag(this.index),this.state=M.Text,this.baseState=M.Text,this.sectionStart=this.index+1,this.isSpecial=!1):hn(t)||(this.state=M.BeforeAttributeName,this.stateBeforeAttributeName(t))},e.prototype.stateInAttributeName=function(t){(t===Q.Eq||Wc(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=M.AfterAttributeName,this.stateAfterAttributeName(t))},e.prototype.stateAfterAttributeName=function(t){t===Q.Eq?this.state=M.BeforeAttributeValue:t===Q.Slash||t===Q.Gt?(this.cbs.onattribend(Ys.NoValue,this.index),this.state=M.BeforeAttributeName,this.stateBeforeAttributeName(t)):hn(t)||(this.cbs.onattribend(Ys.NoValue,this.index),this.state=M.InAttributeName,this.sectionStart=this.index)},e.prototype.stateBeforeAttributeValue=function(t){t===Q.DoubleQuote?(this.state=M.InAttributeValueDq,this.sectionStart=this.index+1):t===Q.SingleQuote?(this.state=M.InAttributeValueSq,this.sectionStart=this.index+1):hn(t)||(this.sectionStart=this.index,this.state=M.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))},e.prototype.handleInAttributeValue=function(t,r){t===r||!this.decodeEntities&&this.fastForwardTo(r)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(r===Q.DoubleQuote?Ys.Double:Ys.Single,this.index),this.state=M.BeforeAttributeName):this.decodeEntities&&t===Q.Amp&&(this.baseState=this.state,this.state=M.BeforeEntity)},e.prototype.stateInAttributeValueDoubleQuotes=function(t){this.handleInAttributeValue(t,Q.DoubleQuote)},e.prototype.stateInAttributeValueSingleQuotes=function(t){this.handleInAttributeValue(t,Q.SingleQuote)},e.prototype.stateInAttributeValueNoQuotes=function(t){hn(t)||t===Q.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(Ys.Unquoted,this.index),this.state=M.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===Q.Amp&&(this.baseState=this.state,this.state=M.BeforeEntity)},e.prototype.stateBeforeDeclaration=function(t){t===Q.OpeningSquareBracket?(this.state=M.CDATASequence,this.sequenceIndex=0):this.state=t===Q.Dash?M.BeforeComment:M.InDeclaration},e.prototype.stateInDeclaration=function(t){(t===Q.Gt||this.fastForwardTo(Q.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=M.Text,this.sectionStart=this.index+1)},e.prototype.stateInProcessingInstruction=function(t){(t===Q.Gt||this.fastForwardTo(Q.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=M.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeComment=function(t){t===Q.Dash?(this.state=M.InCommentLike,this.currentSequence=qt.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=M.InDeclaration},e.prototype.stateInSpecialComment=function(t){(t===Q.Gt||this.fastForwardTo(Q.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=M.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeSpecialS=function(t){var r=t|32;r===qt.ScriptEnd[3]?this.startSpecial(qt.ScriptEnd,4):r===qt.StyleEnd[3]?this.startSpecial(qt.StyleEnd,4):(this.state=M.InTagName,this.stateInTagName(t))},e.prototype.stateBeforeEntity=function(t){this.entityExcess=1,this.entityResult=0,t===Q.Number?this.state=M.BeforeNumericEntity:t===Q.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=M.InNamedEntity,this.stateInNamedEntity(t))},e.prototype.stateInNamedEntity=function(t){if(this.entityExcess+=1,this.trieIndex=(0,wi.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,t),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var r=this.trieCurrent&wi.BinTrieFlags.VALUE_LENGTH;if(r){var n=(r>>14)-1;if(!this.allowLegacyEntity()&&t!==Q.Semi)this.trieIndex+=n;else{var i=this.index-this.entityExcess+1;i>this.sectionStart&&this.emitPartial(this.sectionStart,i),this.entityResult=this.trieIndex,this.trieIndex+=n,this.entityExcess=0,this.sectionStart=this.index+1,n===0&&this.emitNamedEntity()}}},e.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var t=(this.entityTrie[this.entityResult]&wi.BinTrieFlags.VALUE_LENGTH)>>14;switch(t){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~wi.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},e.prototype.stateBeforeNumericEntity=function(t){(t|32)===Q.LowerX?(this.entityExcess++,this.state=M.InHexEntity):(this.state=M.InNumericEntity,this.stateInNumericEntity(t))},e.prototype.emitNumericEntity=function(t){var r=this.index-this.entityExcess-1,n=r+2+Number(this.state===M.InHexEntity);n!==this.index&&(r>this.sectionStart&&this.emitPartial(this.sectionStart,r),this.sectionStart=this.index+Number(t),this.emitCodePoint((0,wi.replaceCodePoint)(this.entityResult))),this.state=this.baseState},e.prototype.stateInNumericEntity=function(t){t===Q.Semi?this.emitNumericEntity(!0):ay(t)?(this.entityResult=this.entityResult*10+(t-Q.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.stateInHexEntity=function(t){t===Q.Semi?this.emitNumericEntity(!0):ay(t)?(this.entityResult=this.entityResult*16+(t-Q.Zero),this.entityExcess++):uM(t)?(this.entityResult=this.entityResult*16+((t|32)-Q.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===M.Text||this.baseState===M.InSpecialTag)},e.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===M.Text||this.state===M.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===M.InAttributeValueDq||this.state===M.InAttributeValueSq||this.state===M.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},e.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},e.prototype.parse=function(){for(;this.shouldContinue();){var t=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case M.Text:{this.stateText(t);break}case M.SpecialStartSequence:{this.stateSpecialStartSequence(t);break}case M.InSpecialTag:{this.stateInSpecialTag(t);break}case M.CDATASequence:{this.stateCDATASequence(t);break}case M.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(t);break}case M.InAttributeName:{this.stateInAttributeName(t);break}case M.InCommentLike:{this.stateInCommentLike(t);break}case M.InSpecialComment:{this.stateInSpecialComment(t);break}case M.BeforeAttributeName:{this.stateBeforeAttributeName(t);break}case M.InTagName:{this.stateInTagName(t);break}case M.InClosingTagName:{this.stateInClosingTagName(t);break}case M.BeforeTagName:{this.stateBeforeTagName(t);break}case M.AfterAttributeName:{this.stateAfterAttributeName(t);break}case M.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(t);break}case M.BeforeAttributeValue:{this.stateBeforeAttributeValue(t);break}case M.BeforeClosingTagName:{this.stateBeforeClosingTagName(t);break}case M.AfterClosingTagName:{this.stateAfterClosingTagName(t);break}case M.BeforeSpecialS:{this.stateBeforeSpecialS(t);break}case M.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(t);break}case M.InSelfClosingTag:{this.stateInSelfClosingTag(t);break}case M.InDeclaration:{this.stateInDeclaration(t);break}case M.BeforeDeclaration:{this.stateBeforeDeclaration(t);break}case M.BeforeComment:{this.stateBeforeComment(t);break}case M.InProcessingInstruction:{this.stateInProcessingInstruction(t);break}case M.InNamedEntity:{this.stateInNamedEntity(t);break}case M.BeforeEntity:{this.stateBeforeEntity(t);break}case M.InHexEntity:{this.stateInHexEntity(t);break}case M.InNumericEntity:{this.stateInNumericEntity(t);break}default:this.stateBeforeNumericEntity(t)}this.index++}this.cleanup()},e.prototype.finish=function(){this.state===M.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},e.prototype.handleTrailingData=function(){var t=this.buffer.length+this.offset;this.state===M.InCommentLike?this.currentSequence===qt.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===M.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===M.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===M.InTagName||this.state===M.BeforeAttributeName||this.state===M.BeforeAttributeValue||this.state===M.AfterAttributeName||this.state===M.InAttributeName||this.state===M.InAttributeValueSq||this.state===M.InAttributeValueDq||this.state===M.InAttributeValueNq||this.state===M.InClosingTagName||this.cbs.ontext(this.sectionStart,t)},e.prototype.emitPartial=function(t,r){this.baseState!==M.Text&&this.baseState!==M.InSpecialTag?this.cbs.onattribdata(t,r):this.cbs.ontext(t,r)},e.prototype.emitCodePoint=function(t){this.baseState!==M.Text&&this.baseState!==M.InSpecialTag?this.cbs.onattribentity(t):this.cbs.ontextentity(t)},e}();Qs.default=oM});var Lh=U(Vr=>{"use strict";var cM=Vr&&Vr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),lM=Vr&&Vr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),fM=Vr&&Vr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&cM(t,e,r);return lM(t,e),t};Object.defineProperty(Vr,"__esModule",{value:!0});Vr.Parser=void 0;var Yc=fM(Ph()),uy=Is(),$s=new Set(["input","option","optgroup","select","button","datalist","textarea"]),xe=new Set(["p"]),oy=new Set(["thead","tbody"]),cy=new Set(["dd","dt"]),ly=new Set(["rt","rp"]),dM=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",xe],["h1",xe],["h2",xe],["h3",xe],["h4",xe],["h5",xe],["h6",xe],["select",$s],["input",$s],["output",$s],["button",$s],["datalist",$s],["textarea",$s],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",cy],["dt",cy],["address",xe],["article",xe],["aside",xe],["blockquote",xe],["details",xe],["div",xe],["dl",xe],["fieldset",xe],["figcaption",xe],["figure",xe],["footer",xe],["form",xe],["header",xe],["hr",xe],["main",xe],["nav",xe],["ol",xe],["pre",xe],["section",xe],["table",xe],["ul",xe],["rt",ly],["rp",ly],["tbody",oy],["tfoot",oy]]),hM=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),fy=new Set(["math","svg"]),dy=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),pM=/\s|\//,mM=function(){function e(t,r){r===void 0&&(r={});var n,i,s,a,u;this.options=r,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t??{},this.lowerCaseTagNames=(n=r.lowerCaseTags)!==null&&n!==void 0?n:!r.xmlMode,this.lowerCaseAttributeNames=(i=r.lowerCaseAttributeNames)!==null&&i!==void 0?i:!r.xmlMode,this.tokenizer=new((s=r.Tokenizer)!==null&&s!==void 0?s:Yc.default)(this.options,this),(u=(a=this.cbs).onparserinit)===null||u===void 0||u.call(a,this)}return e.prototype.ontext=function(t,r){var n,i,s=this.getSlice(t,r);this.endIndex=r-1,(i=(n=this.cbs).ontext)===null||i===void 0||i.call(n,s),this.startIndex=r},e.prototype.ontextentity=function(t){var r,n,i=this.tokenizer.getSectionStart();this.endIndex=i-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,(0,uy.fromCodePoint)(t)),this.startIndex=i},e.prototype.isVoidElement=function(t){return!this.options.xmlMode&&hM.has(t)},e.prototype.onopentagname=function(t,r){this.endIndex=r;var n=this.getSlice(t,r);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},e.prototype.emitOpenTag=function(t){var r,n,i,s;this.openTagStart=this.startIndex,this.tagname=t;var a=!this.options.xmlMode&&dM.get(t);if(a)for(;this.stack.length>0&&a.has(this.stack[this.stack.length-1]);){var u=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,u,!0)}this.isVoidElement(t)||(this.stack.push(t),fy.has(t)?this.foreignContext.push(!0):dy.has(t)&&this.foreignContext.push(!1)),(s=(i=this.cbs).onopentagname)===null||s===void 0||s.call(i,t),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(t){var r,n;this.startIndex=this.openTagStart,this.attribs&&((n=(r=this.cbs).onopentag)===null||n===void 0||n.call(r,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1},e.prototype.onclosetag=function(t,r){var n,i,s,a,u,o;this.endIndex=r;var c=this.getSlice(t,r);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),(fy.has(c)||dy.has(c))&&this.foreignContext.pop(),this.isVoidElement(c))!this.options.xmlMode&&c==="br"&&((i=(n=this.cbs).onopentagname)===null||i===void 0||i.call(n,"br"),(a=(s=this.cbs).onopentag)===null||a===void 0||a.call(s,"br",{},!0),(o=(u=this.cbs).onclosetag)===null||o===void 0||o.call(u,"br",!1));else{var h=this.stack.lastIndexOf(c);if(h!==-1)if(this.cbs.onclosetag)for(var d=this.stack.length-h;d--;)this.cbs.onclosetag(this.stack.pop(),d!==0);else this.stack.length=h;else!this.options.xmlMode&&c==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1},e.prototype.onselfclosingtag=function(t){this.endIndex=t,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)},e.prototype.closeCurrentTag=function(t){var r,n,i=this.tagname;this.endOpenTag(t),this.stack[this.stack.length-1]===i&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,i,!t),this.stack.pop())},e.prototype.onattribname=function(t,r){this.startIndex=t;var n=this.getSlice(t,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},e.prototype.onattribdata=function(t,r){this.attribvalue+=this.getSlice(t,r)},e.prototype.onattribentity=function(t){this.attribvalue+=(0,uy.fromCodePoint)(t)},e.prototype.onattribend=function(t,r){var n,i;this.endIndex=r,(i=(n=this.cbs).onattribute)===null||i===void 0||i.call(n,this.attribname,this.attribvalue,t===Yc.QuoteType.Double?'"':t===Yc.QuoteType.Single?"'":t===Yc.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(t){var r=t.search(pM),n=r<0?t:t.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(t,r){this.endIndex=r;var n=this.getSlice(t,r);if(this.cbs.onprocessinginstruction){var i=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(i),"!".concat(n))}this.startIndex=r+1},e.prototype.onprocessinginstruction=function(t,r){this.endIndex=r;var n=this.getSlice(t,r);if(this.cbs.onprocessinginstruction){var i=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(i),"?".concat(n))}this.startIndex=r+1},e.prototype.oncomment=function(t,r,n){var i,s,a,u;this.endIndex=r,(s=(i=this.cbs).oncomment)===null||s===void 0||s.call(i,this.getSlice(t,r-n)),(u=(a=this.cbs).oncommentend)===null||u===void 0||u.call(a),this.startIndex=r+1},e.prototype.oncdata=function(t,r,n){var i,s,a,u,o,c,h,d,f,g;this.endIndex=r;var y=this.getSlice(t,r-n);this.options.xmlMode||this.options.recognizeCDATA?((s=(i=this.cbs).oncdatastart)===null||s===void 0||s.call(i),(u=(a=this.cbs).ontext)===null||u===void 0||u.call(a,y),(c=(o=this.cbs).oncdataend)===null||c===void 0||c.call(o)):((d=(h=this.cbs).oncomment)===null||d===void 0||d.call(h,"[CDATA[".concat(y,"]]")),(g=(f=this.cbs).oncommentend)===null||g===void 0||g.call(f)),this.startIndex=r+1},e.prototype.onend=function(){var t,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(r=(t=this.cbs).onend)===null||r===void 0||r.call(t)},e.prototype.reset=function(){var t,r,n,i;(r=(t=this.cbs).onreset)===null||r===void 0||r.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(i=(n=this.cbs).onparserinit)===null||i===void 0||i.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(t){this.reset(),this.end(t)},e.prototype.getSlice=function(t,r){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(t-this.bufferOffset,r-this.bufferOffset);r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(t){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)},e.prototype.end=function(t){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".end() after done!"));return}t&&this.write(t),this.ended=!0,this.tokenizer.end()},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},e.prototype.parseChunk=function(t){this.write(t)},e.prototype.done=function(t){this.end(t)},e}();Vr.Parser=mM});var by=U(be=>{"use strict";var gM=be&&be.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),_M=be&&be.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),hy=be&&be.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&gM(t,e,r);return _M(t,e),t},TM=be&&be.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(be,"__esModule",{value:!0});be.DomUtils=be.parseFeed=be.getFeed=be.ElementType=be.Tokenizer=be.createDomStream=be.parseDOM=be.parseDocument=be.DefaultHandler=be.DomHandler=be.Parser=void 0;var py=Lh(),bM=Lh();Object.defineProperty(be,"Parser",{enumerable:!0,get:function(){return bM.Parser}});var my=yt(),gy=yt();Object.defineProperty(be,"DomHandler",{enumerable:!0,get:function(){return gy.DomHandler}});Object.defineProperty(be,"DefaultHandler",{enumerable:!0,get:function(){return gy.DomHandler}});function _y(e,t){var r=new my.DomHandler(void 0,t);return new py.Parser(r,t).end(e),r.root}be.parseDocument=_y;function Ty(e,t){return _y(e,t).children}be.parseDOM=Ty;function EM(e,t,r){var n=new my.DomHandler(e,t,r);return new py.Parser(n,t)}be.createDomStream=EM;var AM=Ph();Object.defineProperty(be,"Tokenizer",{enumerable:!0,get:function(){return TM(AM).default}});be.ElementType=hy(ys());var yM=Ar(),IM=Ar();Object.defineProperty(be,"getFeed",{enumerable:!0,get:function(){return IM.getFeed}});var vM={xmlMode:!0};function CM(e,t){return t===void 0&&(t=vM),(0,yM.getFeed)(Ty(e,t))}be.parseFeed=CM;be.DomUtils=hy(Ar())});var yy=U(ye=>{"use strict";var Ey=ye&&ye.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),DM=ye&&ye.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),SM=ye&&ye.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Ey(t,e,r)},xM=ye&&ye.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Ey(t,e,r);return DM(t,e),t},OM=ye&&ye.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ye,"__esModule",{value:!0});ye.root=ye.parseHTML=ye.merge=ye.contains=ye.text=ye.xml=ye.html=ye.load=void 0;SM(Rb(),ye);var NM=eA(),wM=mh(),Ay=sy(),RM=OM(Nd()),PM=by(),LM=(0,wM.getParse)(function(e,t,r,n){return t.xmlMode||t._useHtmlParser2?(0,PM.parseDocument)(e,t):(0,Ay.parseWithParse5)(e,t,r,n)});ye.load=(0,NM.getLoad)(LM,function(e,t){return t.xmlMode||t._useHtmlParser2?(0,RM.default)(e,t):(0,Ay.renderWithParse5)(e)});ye.default=(0,ye.load)([]);var Mh=yi();Object.defineProperty(ye,"html",{enumerable:!0,get:function(){return Mh.html}});Object.defineProperty(ye,"xml",{enumerable:!0,get:function(){return Mh.xml}});Object.defineProperty(ye,"text",{enumerable:!0,get:function(){return Mh.text}});var Qc=xM(yi());ye.contains=Qc.contains;ye.merge=Qc.merge;ye.parseHTML=Qc.parseHTML;ye.root=Qc.root});var vy=U((cU,Iy)=>{"use strict";var MM=yy();function kM(e){let t=MM.load(e),r=[];return[{tagName:"a",attr:"href"},{tagName:"area",attr:"href"},{tagName:"link",attr:"href"},{tagName:"audio",attr:"src"},{tagName:"embed",attr:"src"},{tagName:"iframe",attr:"src"},{tagName:"input",attr:"src"},{tagName:"img",attr:"src"},{tagName:"javascript",attr:"src"},{tagName:"source",attr:"src"},{tagName:"track",attr:"src"},{tagName:"video",attr:"src"}].forEach(({tagName:n,attr:i})=>{t(n).each((s,a)=>{t(a).attr(i)&&r.push(t(a).attr(i))})}),r}Iy.exports=kM});var Sy=U((lU,Dy)=>{"use strict";var{marked:Cy}=Nb(),FM=vy();Dy.exports=function(t,r=!1){Cy.setOptions({mangle:!1});let n=Cy(t);return FM(n)}});var My={};Kh(My,{default:()=>jM,getServer:()=>Ly});function Ly(e){let t=ef(e),r=Ry.createServer(async function(n,i){i.setHeader("Access-Control-Allow-Origin","*"),i.setHeader("Access-Control-Allow-Methods","GET, HEAD, POST, OPTIONS, PUT, PATCH, DELETE"),i.setHeader("Access-Control-Allow-Headers","Access-Control-Allow-Headers, Origin, Authorization,Accept,x-client-id, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers, hypothesis-client-version"),i.setHeader("Access-Control-Allow-Credentials","true");try{if(n.url){let s=Py.parse(n.url,!0);if(s.pathname==="/search"){let a=s.query.q,u=await t.search(a);i.statusCode=200,i.setHeader("Content-Type","application/json"),i.end(JSON.stringify(u))}else i.end()}}catch(s){i.statusCode=500,i.end(s)}});return{listen(n){console.log(`Omnisearch - Starting HTTP server on port ${n}`),r.listen({port:parseInt(n),host:e.settings.DANGER_httpHost??"localhost"},()=>{console.log(`Omnisearch - Started HTTP server on port ${n}`),e.settings.DANGER_httpHost&&e.settings.DANGER_httpHost!=="localhost"?new Cu.Notice(`Omnisearch - Started non-localhost HTTP server at ${e.settings.DANGER_httpHost}:${n}`,12e4):e.settings.httpApiNotice&&new Cu.Notice(`Omnisearch - Started HTTP server on port ${n}`)}),r.on("error",i=>{console.error(i),new Cu.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 Cu.Notice("Omnisearch - Terminated HTTP server")}}}var Ry,Py,Cu,jM,ky=x(()=>{Ry=Xe(require("http")),Py=Xe(require("url")),Cu=Xe(require("obsidian"));tf();jM=Ly});Kh(exports,{default:()=>Uh});var Ri=Xe(require("obsidian"));ya();Ql();Or();tf();var je=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Je=Object.keys,Et=Array.isArray;typeof Promise!="undefined"&&!je.Promise&&(je.Promise=Promise);function xt(e,t){return typeof t!="object"||Je(t).forEach(function(r){e[r]=t[r]}),e}var va=Object.getPrototypeOf,yx={}.hasOwnProperty;function Yt(e,t){return yx.call(e,t)}function os(e,t){typeof t=="function"&&(t=t(va(e))),(typeof Reflect=="undefined"?Je:Reflect.ownKeys)(t).forEach(r=>{Zr(e,r,t[r])})}var fT=Object.defineProperty;function Zr(e,t,r,n){fT(e,t,xt(r&&Yt(r,"get")&&typeof r.get=="function"?{get:r.get,set:r.set,configurable:!0}:{value:r,configurable:!0,writable:!0},n))}function cs(e){return{from:function(t){return e.prototype=Object.create(t.prototype),Zr(e.prototype,"constructor",e),{extend:os.bind(null,e.prototype)}}}}var Ix=Object.getOwnPropertyDescriptor;function rf(e,t){let r=Ix(e,t),n;return r||(n=va(e))&&rf(n,t)}var vx=[].slice;function Io(e,t,r){return vx.call(e,t,r)}function dT(e,t){return t(e)}function Ca(e){if(!e)throw new Error("Assertion Failed")}function hT(e){je.setImmediate?setImmediate(e):setTimeout(e,0)}function pT(e,t){return e.reduce((r,n,i)=>{var s=t(n,i);return s&&(r[s[0]]=s[1]),r},{})}function Cx(e,t,r){try{e.apply(null,r)}catch(n){t&&t(n)}}function Jr(e,t){if(typeof t=="string"&&Yt(e,t))return e[t];if(!t)return e;if(typeof t!="string"){for(var r=[],n=0,i=t.length;n<i;++n){var s=Jr(e,t[n]);r.push(s)}return r}var a=t.indexOf(".");if(a!==-1){var u=e[t.substr(0,a)];return u==null?void 0:Jr(u,t.substr(a+1))}}function _r(e,t,r){if(!(!e||t===void 0)&&!("isFrozen"in Object&&Object.isFrozen(e)))if(typeof t!="string"&&"length"in t){Ca(typeof r!="string"&&"length"in r);for(var n=0,i=t.length;n<i;++n)_r(e,t[n],r[n])}else{var s=t.indexOf(".");if(s!==-1){var a=t.substr(0,s),u=t.substr(s+1);if(u==="")r===void 0?Et(e)&&!isNaN(parseInt(a))?e.splice(a,1):delete e[a]:e[a]=r;else{var o=e[a];(!o||!Yt(e,a))&&(o=e[a]={}),_r(o,u,r)}}else r===void 0?Et(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=r}}function Dx(e,t){typeof t=="string"?_r(e,t,void 0):"length"in t&&[].map.call(t,function(r){_r(e,r,void 0)})}function mT(e){var t={};for(var r in e)Yt(e,r)&&(t[r]=e[r]);return t}var Sx=[].concat;function gT(e){return Sx.apply([],e)}var _T="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(gT([8,16,32,64].map(e=>["Int","Uint","Float"].map(t=>t+e+"Array")))).filter(e=>je[e]),xx=_T.map(e=>je[e]);pT(_T,e=>[e,!0]);var Pn=null;function Da(e){Pn=typeof WeakMap!="undefined"&&new WeakMap;let t=nf(e);return Pn=null,t}function nf(e){if(!e||typeof e!="object")return e;let t=Pn&&Pn.get(e);if(t)return t;if(Et(e)){t=[],Pn&&Pn.set(e,t);for(var r=0,n=e.length;r<n;++r)t.push(nf(e[r]))}else if(xx.indexOf(e.constructor)>=0)t=e;else{let s=va(e);t=s===Object.prototype?{}:Object.create(s),Pn&&Pn.set(e,t);for(var i in e)Yt(e,i)&&(t[i]=nf(e[i]))}return t}var{toString:Ox}={};function sf(e){return Ox.call(e).slice(8,-1)}var af=typeof Symbol!="undefined"?Symbol.iterator:"@@iterator",Nx=typeof af=="symbol"?function(e){var t;return e!=null&&(t=e[af])&&t.apply(e)}:function(){return null},ls={};function en(e){var t,r,n,i;if(arguments.length===1){if(Et(e))return e.slice();if(this===ls&&typeof e=="string")return[e];if(i=Nx(e)){for(r=[];n=i.next(),!n.done;)r.push(n.value);return r}if(e==null)return[e];if(t=e.length,typeof t=="number"){for(r=new Array(t);t--;)r[t]=e[t];return r}return[e]}for(t=arguments.length,r=new Array(t);t--;)r[t]=arguments[t];return r}var uf=typeof Symbol!="undefined"?e=>e[Symbol.toStringTag]==="AsyncFunction":()=>!1,Nr=typeof location!="undefined"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function TT(e,t){Nr=e,bT=t}var bT=()=>!0,wx=!new Error("").stack;function oi(){if(wx)try{throw oi.arguments,new Error}catch(e){return e}return new Error}function of(e,t){var r=e.stack;return r?(t=t||0,r.indexOf(e.name)===0&&(t+=(e.name+e.message).split(`
|
||
`).length),r.split(`
|
||
`).slice(t).filter(bT).map(n=>`
|
||
`+n).join("")):""}var Rx=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"],ET=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],cf=Rx.concat(ET),Px={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function fs(e,t){this._e=oi(),this.name=e,this.message=t}cs(fs).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+of(this._e,2))}},toString:function(){return this.name+": "+this.message}});function AT(e,t){return e+". Errors: "+Object.keys(t).map(r=>t[r].toString()).filter((r,n,i)=>i.indexOf(r)===n).join(`
|
||
`)}function vo(e,t,r,n){this._e=oi(),this.failures=t,this.failedKeys=n,this.successCount=r,this.message=AT(e,t)}cs(vo).from(fs);function Sa(e,t){this._e=oi(),this.name="BulkError",this.failures=Object.keys(t).map(r=>t[r]),this.failuresByPos=t,this.message=AT(e,t)}cs(Sa).from(fs);var lf=cf.reduce((e,t)=>(e[t]=t+"Error",e),{}),Lx=fs,ie=cf.reduce((e,t)=>{var r=t+"Error";function n(i,s){this._e=oi(),this.name=r,i?typeof i=="string"?(this.message=`${i}${s?`
|
||
`+s:""}`,this.inner=s||null):typeof i=="object"&&(this.message=`${i.name} ${i.message}`,this.inner=i):(this.message=Px[t]||r,this.inner=null)}return cs(n).from(Lx),e[t]=n,e},{});ie.Syntax=SyntaxError;ie.Type=TypeError;ie.Range=RangeError;var yT=ET.reduce((e,t)=>(e[t+"Error"]=ie[t],e),{});function Mx(e,t){if(!e||e instanceof fs||e instanceof TypeError||e instanceof SyntaxError||!e.name||!yT[e.name])return e;var r=new yT[e.name](t||e.message,e);return"stack"in e&&Zr(r,"stack",{get:function(){return this.inner.stack}}),r}var Co=cf.reduce((e,t)=>(["Syntax","Type","Range"].indexOf(t)===-1&&(e[t+"Error"]=ie[t]),e),{});Co.ModifyError=vo;Co.DexieError=fs;Co.BulkError=Sa;function Ne(){}function xa(e){return e}function kx(e,t){return e==null||e===xa?t:function(r){return t(e(r))}}function ci(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function Fx(e,t){return e===Ne?t:function(){var r=e.apply(this,arguments);r!==void 0&&(arguments[0]=r);var n=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var s=t.apply(this,arguments);return n&&(this.onsuccess=this.onsuccess?ci(n,this.onsuccess):n),i&&(this.onerror=this.onerror?ci(i,this.onerror):i),s!==void 0?s:r}}function Bx(e,t){return e===Ne?t:function(){e.apply(this,arguments);var r=this.onsuccess,n=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),r&&(this.onsuccess=this.onsuccess?ci(r,this.onsuccess):r),n&&(this.onerror=this.onerror?ci(n,this.onerror):n)}}function jx(e,t){return e===Ne?t:function(r){var n=e.apply(this,arguments);xt(r,n);var i=this.onsuccess,s=this.onerror;this.onsuccess=null,this.onerror=null;var a=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?ci(i,this.onsuccess):i),s&&(this.onerror=this.onerror?ci(s,this.onerror):s),n===void 0?a===void 0?void 0:a:xt(n,a)}}function Hx(e,t){return e===Ne?t:function(){return t.apply(this,arguments)===!1?!1:e.apply(this,arguments)}}function ff(e,t){return e===Ne?t:function(){var r=e.apply(this,arguments);if(r&&typeof r.then=="function"){for(var n=this,i=arguments.length,s=new Array(i);i--;)s[i]=arguments[i];return r.then(function(){return t.apply(n,s)})}return t.apply(this,arguments)}}var Oa={},Ux=100,Gx=20,IT=100,[df,Do,hf]=typeof Promise=="undefined"?[]:(()=>{let e=Promise.resolve();if(typeof crypto=="undefined"||!crypto.subtle)return[e,va(e),e];let t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,va(t),e]})(),vT=Do&&Do.then,So=df&&df.constructor,pf=!!hf,mf=!1,qx=hf?()=>{hf.then(wo)}:je.setImmediate?setImmediate.bind(null,wo):je.MutationObserver?()=>{var e=document.createElement("div");new MutationObserver(()=>{wo(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:()=>{setTimeout(wo,0)},Na=function(e,t){wa.push([e,t]),xo&&(qx(),xo=!1)},gf=!0,xo=!0,li=[],Oo=[],_f=null,Tf=xa,ds={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:LT,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(e=>{try{LT(e[0],e[1])}catch{}})}},ne=ds,wa=[],fi=0,No=[];function Y(e){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=Ne,this._lib=!1;var t=this._PSD=ne;if(Nr&&(this._stackHolder=oi(),this._prev=null,this._numPrev=0),typeof e!="function"){if(e!==Oa)throw new TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],this._state===!1&&Ef(this,this._value);return}this._state=null,this._value=null,++t.ref,DT(this,e)}var bf={get:function(){var e=ne,t=Lo;function r(n,i){var s=!e.global&&(e!==ne||t!==Lo);let a=s&&!tn();var u=new Y((o,c)=>{Af(this,new CT(ko(n,e,s,a),ko(i,e,s,a),o,c,e))});return Nr&&OT(u,this),u}return r.prototype=Oa,r},set:function(e){Zr(this,"then",e&&e.prototype===Oa?bf:{get:function(){return e},set:bf.set})}};os(Y.prototype,{then:bf,_then:function(e,t){Af(this,new CT(null,null,e,t,ne))},catch:function(e){if(arguments.length===1)return this.then(null,e);var t=arguments[0],r=arguments[1];return typeof t=="function"?this.then(null,n=>n instanceof t?r(n):Ro(n)):this.then(null,n=>n&&n.name===t?r(n):Ro(n))},finally:function(e){return this.then(t=>(e(),t),t=>(e(),Ro(t)))},stack:{get:function(){if(this._stack)return this._stack;try{mf=!0;var e=xT(this,[],Gx),t=e.join(`
|
||
From previous: `);return this._state!==null&&(this._stack=t),t}finally{mf=!1}}},timeout:function(e,t){return e<1/0?new Y((r,n)=>{var i=setTimeout(()=>n(new ie.Timeout(t)),e);this.then(r,n).finally(clearTimeout.bind(null,i))}):this}});typeof Symbol!="undefined"&&Symbol.toStringTag&&Zr(Y.prototype,Symbol.toStringTag,"Dexie.Promise");ds.env=NT();function CT(e,t,r,n,i){this.onFulfilled=typeof e=="function"?e:null,this.onRejected=typeof t=="function"?t:null,this.resolve=r,this.reject=n,this.psd=i}os(Y,{all:function(){var e=en.apply(null,arguments).map(Mo);return new Y(function(t,r){e.length===0&&t([]);var n=e.length;e.forEach((i,s)=>Y.resolve(i).then(a=>{e[s]=a,--n||t(e)},r))})},resolve:e=>{if(e instanceof Y)return e;if(e&&typeof e.then=="function")return new Y((r,n)=>{e.then(r,n)});var t=new Y(Oa,!0,e);return OT(t,_f),t},reject:Ro,race:function(){var e=en.apply(null,arguments).map(Mo);return new Y((t,r)=>{e.map(n=>Y.resolve(n).then(t,r))})},PSD:{get:()=>ne,set:e=>ne=e},totalEchoes:{get:()=>Lo},newPSD:Ln,usePSD:ps,scheduler:{get:()=>Na,set:e=>{Na=e}},rejectionMapper:{get:()=>Tf,set:e=>{Tf=e}},follow:(e,t)=>new Y((r,n)=>Ln((i,s)=>{var a=ne;a.unhandleds=[],a.onunhandled=s,a.finalize=ci(function(){Vx(()=>{this.unhandleds.length===0?i():s(this.unhandleds[0])})},a.finalize),e()},t,r,n))});So&&(So.allSettled&&Zr(Y,"allSettled",function(){let e=en.apply(null,arguments).map(Mo);return new Y(t=>{e.length===0&&t([]);let r=e.length,n=new Array(r);e.forEach((i,s)=>Y.resolve(i).then(a=>n[s]={status:"fulfilled",value:a},a=>n[s]={status:"rejected",reason:a}).then(()=>--r||t(n)))})}),So.any&&typeof AggregateError!="undefined"&&Zr(Y,"any",function(){let e=en.apply(null,arguments).map(Mo);return new Y((t,r)=>{e.length===0&&r(new AggregateError([]));let n=e.length,i=new Array(n);e.forEach((s,a)=>Y.resolve(s).then(u=>t(u),u=>{i[a]=u,--n||r(new AggregateError(i))}))})}));function DT(e,t){try{t(r=>{if(e._state===null){if(r===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&&Ra();r&&typeof r.then=="function"?DT(e,(i,s)=>{r instanceof Y?r._then(i,s):r.then(i,s)}):(e._state=!0,e._value=r,ST(e)),n&&Pa()}},Ef.bind(null,e))}catch(r){Ef(e,r)}}function Ef(e,t){if(Oo.push(t),e._state===null){var r=e._lib&&Ra();t=Tf(t),e._state=!1,e._value=t,Nr&&t!==null&&typeof t=="object"&&!t._promise&&Cx(()=>{var n=rf(t,"stack");t._promise=e,Zr(t,"stack",{get:()=>mf?n&&(n.get?n.get.apply(t):n.value):e.stack})}),Kx(e),ST(e),r&&Pa()}}function ST(e){var t=e._listeners;e._listeners=[];for(var r=0,n=t.length;r<n;++r)Af(e,t[r]);var i=e._PSD;--i.ref||i.finalize(),fi===0&&(++fi,Na(()=>{--fi==0&&yf()},[]))}function Af(e,t){if(e._state===null){e._listeners.push(t);return}var r=e._state?t.onFulfilled:t.onRejected;if(r===null)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++fi,Na(zx,[r,e,t])}function zx(e,t,r){try{_f=t;var n,i=t._value;t._state?n=e(i):(Oo.length&&(Oo=[]),n=e(i),Oo.indexOf(i)===-1&&Wx(t)),r.resolve(n)}catch(s){r.reject(s)}finally{_f=null,--fi==0&&yf(),--r.psd.ref||r.psd.finalize()}}function xT(e,t,r){if(t.length===r)return t;var n="";if(e._state===!1){var i=e._value,s,a;i!=null?(s=i.name||"Error",a=i.message||i,n=of(i,0)):(s=i,a=""),t.push(s+(a?": "+a:"")+n)}return Nr&&(n=of(e._stackHolder,2),n&&t.indexOf(n)===-1&&t.push(n),e._prev&&xT(e._prev,t,r)),t}function OT(e,t){var r=t?t._numPrev+1:0;r<Ux&&(e._prev=t,e._numPrev=r)}function wo(){Ra()&&Pa()}function Ra(){var e=gf;return gf=!1,xo=!1,e}function Pa(){var e,t,r;do for(;wa.length>0;)for(e=wa,wa=[],r=e.length,t=0;t<r;++t){var n=e[t];n[0].apply(null,n[1])}while(wa.length>0);gf=!0,xo=!0}function yf(){var e=li;li=[],e.forEach(n=>{n._PSD.onunhandled.call(null,n._value,n)});for(var t=No.slice(0),r=t.length;r;)t[--r]()}function Vx(e){function t(){e(),No.splice(No.indexOf(t),1)}No.push(t),++fi,Na(()=>{--fi==0&&yf()},[])}function Kx(e){li.some(t=>t._value===e._value)||li.push(e)}function Wx(e){for(var t=li.length;t;)if(li[--t]._value===e._value){li.splice(t,1);return}}function Ro(e){return new Y(Oa,!1,e)}function ze(e,t){var r=ne;return function(){var n=Ra(),i=ne;try{return Mn(r,!0),e.apply(this,arguments)}catch(s){t&&t(s)}finally{Mn(i,!1),n&&Pa()}}}var At={awaits:0,echoes:0,id:0},Yx=0,Po=[],If=0,Lo=0,Qx=0;function Ln(e,t,r,n){var i=ne,s=Object.create(i);s.parent=i,s.ref=0,s.global=!1,s.id=++Qx;var a=ds.env;s.env=pf?{Promise:Y,PromiseProp:{value:Y,configurable:!0,writable:!0},all:Y.all,race:Y.race,allSettled:Y.allSettled,any:Y.any,resolve:Y.resolve,reject:Y.reject,nthen:RT(a.nthen,s),gthen:RT(a.gthen,s)}:{},t&&xt(s,t),++i.ref,s.finalize=function(){--this.parent.ref||this.parent.finalize()};var u=ps(s,e,r,n);return s.ref===0&&s.finalize(),u}function hs(){return At.id||(At.id=++Yx),++At.awaits,At.echoes+=IT,At.id}function tn(){return At.awaits?(--At.awaits==0&&(At.id=0),At.echoes=At.awaits*IT,!0):!1}(""+vT).indexOf("[native code]")===-1&&(hs=tn=Ne);function Mo(e){return At.echoes&&e&&e.constructor===So?(hs(),e.then(t=>(tn(),t),t=>(tn(),rt(t)))):e}function $x(e){++Lo,(!At.echoes||--At.echoes==0)&&(At.echoes=At.id=0),Po.push(ne),Mn(e,!0)}function Xx(){var e=Po[Po.length-1];Po.pop(),Mn(e,!1)}function Mn(e,t){var r=ne;if((t?At.echoes&&(!If++||e!==ne):If&&(!--If||e!==ne))&&wT(t?$x.bind(null,e):Xx),e!==ne&&(ne=e,r===ds&&(ds.env=NT()),pf)){var n=ds.env.Promise,i=e.env;Do.then=i.nthen,n.prototype.then=i.gthen,(r.global||e.global)&&(Object.defineProperty(je,"Promise",i.PromiseProp),n.all=i.all,n.race=i.race,n.resolve=i.resolve,n.reject=i.reject,i.allSettled&&(n.allSettled=i.allSettled),i.any&&(n.any=i.any))}}function NT(){var e=je.Promise;return pf?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(je,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:Do.then,gthen:e.prototype.then}:{}}function ps(e,t,r,n,i){var s=ne;try{return Mn(e,!0),t(r,n,i)}finally{Mn(s,!1)}}function wT(e){vT.call(df,e)}function ko(e,t,r,n){return typeof e!="function"?e:function(){var i=ne;r&&hs(),Mn(t,!0);try{return e.apply(this,arguments)}finally{Mn(i,!1),n&&wT(tn)}}}function RT(e,t){return function(r,n){return e.call(this,ko(r,t),ko(n,t))}}var PT="unhandledrejection";function LT(e,t){var r;try{r=t.onuncatched(e)}catch{}if(r!==!1)try{var n,i={promise:t,reason:e};if(je.document&&document.createEvent?(n=document.createEvent("Event"),n.initEvent(PT,!0,!0),xt(n,i)):je.CustomEvent&&(n=new CustomEvent(PT,{detail:i}),xt(n,i)),n&&je.dispatchEvent&&(dispatchEvent(n),!je.PromiseRejectionEvent&&je.onunhandledrejection))try{je.onunhandledrejection(n)}catch{}Nr&&n&&!n.defaultPrevented&&console.warn(`Unhandled rejection: ${e.stack||e}`)}catch{}}var rt=Y.reject;function vf(e,t,r,n){if(!e.idbdb||!e._state.openComplete&&!ne.letThrough&&!e._vip){if(e._state.openComplete)return rt(new ie.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return rt(new ie.DatabaseClosed);e.open().catch(Ne)}return e._state.dbReadyPromise.then(()=>vf(e,t,r,n))}else{var i=e._createTransaction(t,r,e._dbSchema);try{i.create(),e._state.PR1398_maxLoop=3}catch(s){return s.name===lf.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(()=>vf(e,t,r,n))):rt(s)}return i._promise(t,(s,a)=>Ln(()=>(ne.trans=i,n(s,a,i)))).then(s=>i._completion.then(()=>s))}}var MT="3.2.7",di=String.fromCharCode(65535),Cf=-1/0,rn="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",kT="String expected.",La=[],Fo=typeof navigator!="undefined"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),Zx=Fo,Jx=Fo,FT=e=>!/(dexie\.js|dexie\.min\.js)/.test(e),Bo="__dbnames",Df="readonly",Sf="readwrite";function hi(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var BT={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function jo(e){return typeof e=="string"&&!/\./.test(e)?t=>(t[e]===void 0&&e in t&&(t=Da(t),delete t[e]),t):t=>t}var jT=class{_trans(t,r,n){let i=this._tx||ne.trans,s=this.name;function a(o,c,h){if(!h.schema[s])throw new ie.NotFound("Table "+s+" not part of transaction");return r(h.idbtrans,h)}let u=Ra();try{return i&&i.db===this.db?i===ne.trans?i._promise(t,a,n):Ln(()=>i._promise(t,a,n),{trans:i,transless:ne.transless||ne}):vf(this.db,t,[this.name],a)}finally{u&&Pa()}}get(t,r){return t&&t.constructor===Object?this.where(t).first(r):this._trans("readonly",n=>this.core.get({trans:n,key:t}).then(i=>this.hook.reading.fire(i))).then(r)}where(t){if(typeof t=="string")return new this.db.WhereClause(this,t);if(Et(t))return new this.db.WhereClause(this,`[${t.join("+")}]`);let r=Je(t);if(r.length===1)return this.where(r[0]).equals(t[r[0]]);let n=this.schema.indexes.concat(this.schema.primKey).filter(c=>{if(c.compound&&r.every(h=>c.keyPath.indexOf(h)>=0)){for(let h=0;h<r.length;++h)if(r.indexOf(c.keyPath[h])===-1)return!1;return!0}return!1}).sort((c,h)=>c.keyPath.length-h.keyPath.length)[0];if(n&&this.db._maxKey!==di){let c=n.keyPath.slice(0,r.length);return this.where(c).equals(c.map(h=>t[h]))}!n&&Nr&&console.warn(`The query ${JSON.stringify(t)} on ${this.name} would benefit of a compound index [${r.join("+")}]`);let{idxByName:i}=this.schema,s=this.db._deps.indexedDB;function a(c,h){try{return s.cmp(c,h)===0}catch{return!1}}let[u,o]=r.reduce(([c,h],d)=>{let f=i[d],g=t[d];return[c||f,c||!f?hi(h,f&&f.multi?y=>{let b=Jr(y,d);return Et(b)&&b.some(D=>a(g,D))}:y=>a(g,Jr(y,d))):h]},[null,null]);return u?this.where(u.name).equals(t[u.keyPath]).filter(o):n?this.filter(o):this.where(r).equals("")}filter(t){return this.toCollection().and(t)}count(t){return this.toCollection().count(t)}offset(t){return this.toCollection().offset(t)}limit(t){return this.toCollection().limit(t)}each(t){return this.toCollection().each(t)}toArray(t){return this.toCollection().toArray(t)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(t){return new this.db.Collection(new this.db.WhereClause(this,Et(t)?`[${t.join("+")}]`:t))}reverse(){return this.toCollection().reverse()}mapToClass(t){this.schema.mappedClass=t;let r=n=>{if(!n)return n;let i=Object.create(t.prototype);for(var s in n)if(Yt(n,s))try{i[s]=n[s]}catch{}return i};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=r,this.hook("reading",r),t}defineClass(){function t(r){xt(this,r)}return this.mapToClass(t)}add(t,r){let{auto:n,keyPath:i}=this.schema.primKey,s=t;return i&&n&&(s=jo(i)(t)),this._trans("readwrite",a=>this.core.mutate({trans:a,type:"add",keys:r!=null?[r]:null,values:[s]})).then(a=>a.numFailures?Y.reject(a.failures[0]):a.lastResult).then(a=>{if(i)try{_r(t,i,a)}catch{}return a})}update(t,r){if(typeof t=="object"&&!Et(t)){let n=Jr(t,this.schema.primKey.keyPath);if(n===void 0)return rt(new ie.InvalidArgument("Given object does not contain its primary key"));try{typeof r!="function"?Je(r).forEach(i=>{_r(t,i,r[i])}):r(t,{value:t,primKey:n})}catch{}return this.where(":id").equals(n).modify(r)}else return this.where(":id").equals(t).modify(r)}put(t,r){let{auto:n,keyPath:i}=this.schema.primKey,s=t;return i&&n&&(s=jo(i)(t)),this._trans("readwrite",a=>this.core.mutate({trans:a,type:"put",values:[s],keys:r!=null?[r]:null})).then(a=>a.numFailures?Y.reject(a.failures[0]):a.lastResult).then(a=>{if(i)try{_r(t,i,a)}catch{}return a})}delete(t){return this._trans("readwrite",r=>this.core.mutate({trans:r,type:"delete",keys:[t]})).then(r=>r.numFailures?Y.reject(r.failures[0]):void 0)}clear(){return this._trans("readwrite",t=>this.core.mutate({trans:t,type:"deleteRange",range:BT})).then(t=>t.numFailures?Y.reject(t.failures[0]):void 0)}bulkGet(t){return this._trans("readonly",r=>this.core.getMany({keys:t,trans:r}).then(n=>n.map(i=>this.hook.reading.fire(i))))}bulkAdd(t,r,n){let i=Array.isArray(r)?r:void 0;n=n||(i?void 0:r);let s=n?n.allKeys:void 0;return this._trans("readwrite",a=>{let{auto:u,keyPath:o}=this.schema.primKey;if(o&&i)throw new ie.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(i&&i.length!==t.length)throw new ie.InvalidArgument("Arguments objects and keys must have the same length");let c=t.length,h=o&&u?t.map(jo(o)):t;return this.core.mutate({trans:a,type:"add",keys:i,values:h,wantResults:s}).then(({numFailures:d,results:f,lastResult:g,failures:y})=>{let b=s?f:g;if(d===0)return b;throw new Sa(`${this.name}.bulkAdd(): ${d} of ${c} operations failed`,y)})})}bulkPut(t,r,n){let i=Array.isArray(r)?r:void 0;n=n||(i?void 0:r);let s=n?n.allKeys:void 0;return this._trans("readwrite",a=>{let{auto:u,keyPath:o}=this.schema.primKey;if(o&&i)throw new ie.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(i&&i.length!==t.length)throw new ie.InvalidArgument("Arguments objects and keys must have the same length");let c=t.length,h=o&&u?t.map(jo(o)):t;return this.core.mutate({trans:a,type:"put",keys:i,values:h,wantResults:s}).then(({numFailures:d,results:f,lastResult:g,failures:y})=>{let b=s?f:g;if(d===0)return b;throw new Sa(`${this.name}.bulkPut(): ${d} of ${c} operations failed`,y)})})}bulkDelete(t){let r=t.length;return this._trans("readwrite",n=>this.core.mutate({trans:n,type:"delete",keys:t})).then(({numFailures:n,lastResult:i,failures:s})=>{if(n===0)return i;throw new Sa(`${this.name}.bulkDelete(): ${n} of ${r} operations failed`,s)})}};function Ma(e){var t={},r=function(u,o){if(o){for(var c=arguments.length,h=new Array(c-1);--c;)h[c-1]=arguments[c];return t[u].subscribe.apply(null,h),e}else if(typeof u=="string")return t[u]};r.addEventType=s;for(var n=1,i=arguments.length;n<i;++n)s(arguments[n]);return r;function s(u,o,c){if(typeof u=="object")return a(u);o||(o=Hx),c||(c=Ne);var h={subscribers:[],fire:c,subscribe:function(d){h.subscribers.indexOf(d)===-1&&(h.subscribers.push(d),h.fire=o(h.fire,d))},unsubscribe:function(d){h.subscribers=h.subscribers.filter(function(f){return f!==d}),h.fire=h.subscribers.reduce(o,c)}};return t[u]=r[u]=h,h}function a(u){Je(u).forEach(function(o){var c=u[o];if(Et(c))s(o,u[o][0],u[o][1]);else if(c==="asap")var h=s(o,xa,function(){for(var f=arguments.length,g=new Array(f);f--;)g[f]=arguments[f];h.subscribers.forEach(function(y){hT(function(){y.apply(null,g)})})});else throw new ie.InvalidArgument("Invalid event config")})}}function ka(e,t){return cs(t).from({prototype:e}),t}function eO(e){return ka(jT.prototype,function(r,n,i){this.db=e,this._tx=i,this.name=r,this.schema=n,this.hook=e._allTables[r]?e._allTables[r].hook:Ma(null,{creating:[Fx,Ne],reading:[kx,xa],updating:[jx,Ne],deleting:[Bx,Ne]})})}function ms(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function xf(e,t){e.filter=hi(e.filter,t)}function Of(e,t,r){var n=e.replayFilter;e.replayFilter=n?()=>hi(n(),t()):t,e.justLimit=r&&!n}function tO(e,t){e.isMatch=hi(e.isMatch,t)}function Ho(e,t){if(e.isPrimKey)return t.primaryKey;let r=t.getIndexByKeyPath(e.index);if(!r)throw new ie.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return r}function HT(e,t,r){let n=Ho(e,t.schema);return t.openCursor({trans:r,values:!e.keysOnly,reverse:e.dir==="prev",unique:!!e.unique,query:{index:n,range:e.range}})}function Uo(e,t,r,n){let i=e.replayFilter?hi(e.filter,e.replayFilter()):e.filter;if(e.or){let s={},a=(u,o,c)=>{if(!i||i(o,c,f=>o.stop(f),f=>o.fail(f))){var h=o.primaryKey,d=""+h;d==="[object ArrayBuffer]"&&(d=""+new Uint8Array(h)),Yt(s,d)||(s[d]=!0,t(u,o,c))}};return Promise.all([e.or._iterate(a,r),UT(HT(e,n,r),e.algorithm,a,!e.keysOnly&&e.valueMapper)])}else return UT(HT(e,n,r),hi(e.algorithm,i),t,!e.keysOnly&&e.valueMapper)}function UT(e,t,r,n){var i=n?(a,u,o)=>r(n(a),u,o):r,s=ze(i);return e.then(a=>{if(a)return a.start(()=>{var u=()=>a.continue();(!t||t(a,o=>u=o,o=>{a.stop(o),u=Ne},o=>{a.fail(o),u=Ne}))&&s(a.value,a,o=>u=o),u()})})}function Ot(e,t){try{let r=GT(e),n=GT(t);if(r!==n)return r==="Array"?1:n==="Array"?-1:r==="binary"?1:n==="binary"?-1:r==="string"?1:n==="string"?-1:r==="Date"?1:n!=="Date"?NaN:-1;switch(r){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return nO(qT(e),qT(t));case"Array":return rO(e,t)}}catch{}return NaN}function rO(e,t){let r=e.length,n=t.length,i=r<n?r:n;for(let s=0;s<i;++s){let a=Ot(e[s],t[s]);if(a!==0)return a}return r===n?0:r<n?-1:1}function nO(e,t){let r=e.length,n=t.length,i=r<n?r:n;for(let s=0;s<i;++s)if(e[s]!==t[s])return e[s]<t[s]?-1:1;return r===n?0:r<n?-1:1}function GT(e){let t=typeof e;if(t!=="object")return t;if(ArrayBuffer.isView(e))return"binary";let r=sf(e);return r==="ArrayBuffer"?"binary":r}function qT(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}var zT=class{_read(t,r){var n=this._ctx;return n.error?n.table._trans(null,rt.bind(null,n.error)):n.table._trans("readonly",t).then(r)}_write(t){var r=this._ctx;return r.error?r.table._trans(null,rt.bind(null,r.error)):r.table._trans("readwrite",t,"locked")}_addAlgorithm(t){var r=this._ctx;r.algorithm=hi(r.algorithm,t)}_iterate(t,r){return Uo(this._ctx,t,r,this._ctx.table.core)}clone(t){var r=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return t&&xt(n,t),r._ctx=n,r}raw(){return this._ctx.valueMapper=null,this}each(t){var r=this._ctx;return this._read(n=>Uo(r,t,n,r.table.core))}count(t){return this._read(r=>{let n=this._ctx,i=n.table.core;if(ms(n,!0))return i.count({trans:r,query:{index:Ho(n,i.schema),range:n.range}}).then(a=>Math.min(a,n.limit));var s=0;return Uo(n,()=>(++s,!1),r,i).then(()=>s)}).then(t)}sortBy(t,r){let n=t.split(".").reverse(),i=n[0],s=n.length-1;function a(c,h){return h?a(c[n[h]],h-1):c[i]}var u=this._ctx.dir==="next"?1:-1;function o(c,h){var d=a(c,s),f=a(h,s);return d<f?-u:d>f?u:0}return this.toArray(function(c){return c.sort(o)}).then(r)}toArray(t){return this._read(r=>{var n=this._ctx;if(n.dir==="next"&&ms(n,!0)&&n.limit>0){let{valueMapper:i}=n,s=Ho(n,n.table.core.schema);return n.table.core.query({trans:r,limit:n.limit,values:!0,query:{index:s,range:n.range}}).then(({result:a})=>i?a.map(i):a)}else{let i=[];return Uo(n,s=>i.push(s),r,n.table.core).then(()=>i)}},t)}offset(t){var r=this._ctx;return t<=0?this:(r.offset+=t,ms(r)?Of(r,()=>{var n=t;return(i,s)=>n===0?!0:n===1?(--n,!1):(s(()=>{i.advance(n),n=0}),!1)}):Of(r,()=>{var n=t;return()=>--n<0}),this)}limit(t){return this._ctx.limit=Math.min(this._ctx.limit,t),Of(this._ctx,()=>{var r=t;return function(n,i,s){return--r<=0&&i(s),r>=0}},!0),this}until(t,r){return xf(this._ctx,function(n,i,s){return t(n.value)?(i(s),r):!0}),this}first(t){return this.limit(1).toArray(function(r){return r[0]}).then(t)}last(t){return this.reverse().first(t)}filter(t){return xf(this._ctx,function(r){return t(r.value)}),tO(this._ctx,t),this}and(t){return this.filter(t)}or(t){return new this.db.WhereClause(this._ctx.table,t,this)}reverse(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(t){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(n,i){t(i.key,i)})}eachUniqueKey(t){return this._ctx.unique="unique",this.eachKey(t)}eachPrimaryKey(t){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(n,i){t(i.primaryKey,i)})}keys(t){var r=this._ctx;r.keysOnly=!r.isMatch;var n=[];return this.each(function(i,s){n.push(s.key)}).then(function(){return n}).then(t)}primaryKeys(t){var r=this._ctx;if(r.dir==="next"&&ms(r,!0)&&r.limit>0)return this._read(i=>{var s=Ho(r,r.table.core.schema);return r.table.core.query({trans:i,values:!1,limit:r.limit,query:{index:s,range:r.range}})}).then(({result:i})=>i).then(t);r.keysOnly=!r.isMatch;var n=[];return this.each(function(i,s){n.push(s.primaryKey)}).then(function(){return n}).then(t)}uniqueKeys(t){return this._ctx.unique="unique",this.keys(t)}firstKey(t){return this.limit(1).keys(function(r){return r[0]}).then(t)}lastKey(t){return this.reverse().firstKey(t)}distinct(){var t=this._ctx,r=t.index&&t.table.schema.idxByName[t.index];if(!r||!r.multi)return this;var n={};return xf(this._ctx,function(i){var s=i.primaryKey.toString(),a=Yt(n,s);return n[s]=!0,!a}),this}modify(t){var r=this._ctx;return this._write(n=>{var i;if(typeof t=="function")i=t;else{var s=Je(t),a=s.length;i=function(b){for(var D=!1,m=0;m<a;++m){var v=s[m],I=t[v];Jr(b,v)!==I&&(_r(b,v,I),D=!0)}return D}}let u=r.table.core,{outbound:o,extractKey:c}=u.schema.primaryKey,h=this.db._options.modifyChunkSize||200,d=[],f=0,g=[],y=(b,D)=>{let{failures:m,numFailures:v}=D;f+=b-v;for(let I of Je(m))d.push(m[I])};return this.clone().primaryKeys().then(b=>{let D=m=>{let v=Math.min(h,b.length-m);return u.getMany({trans:n,keys:b.slice(m,m+v),cache:"immutable"}).then(I=>{let T=[],E=[],C=o?[]:null,S=[];for(let P=0;P<v;++P){let q=I[P],$={value:Da(q),primKey:b[m+P]};i.call($,$.value,$)!==!1&&($.value==null?S.push(b[m+P]):!o&&Ot(c(q),c($.value))!==0?(S.push(b[m+P]),T.push($.value)):(E.push($.value),o&&C.push(b[m+P])))}let N=ms(r)&&r.limit===1/0&&(typeof t!="function"||t===Nf)&&{index:r.index,range:r.range};return Promise.resolve(T.length>0&&u.mutate({trans:n,type:"add",values:T}).then(P=>{for(let q in P.failures)S.splice(parseInt(q),1);y(T.length,P)})).then(()=>(E.length>0||N&&typeof t=="object")&&u.mutate({trans:n,type:"put",keys:C,values:E,criteria:N,changeSpec:typeof t!="function"&&t}).then(P=>y(E.length,P))).then(()=>(S.length>0||N&&t===Nf)&&u.mutate({trans:n,type:"delete",keys:S,criteria:N}).then(P=>y(S.length,P))).then(()=>b.length>m+v&&D(m+h))})};return D(0).then(()=>{if(d.length>0)throw new vo("Error modifying one or more objects",d,f,g);return b.length})})})}delete(){var t=this._ctx,r=t.range;return ms(t)&&(t.isPrimKey&&!Jx||r.type===3)?this._write(n=>{let{primaryKey:i}=t.table.core.schema,s=r;return t.table.core.count({trans:n,query:{index:i,range:s}}).then(a=>t.table.core.mutate({trans:n,type:"deleteRange",range:s}).then(({failures:u,lastResult:o,results:c,numFailures:h})=>{if(h)throw new vo("Could not delete some values",Object.keys(u).map(d=>u[d]),a-h);return a-h}))}):this.modify(Nf)}},Nf=(e,t)=>t.value=null;function iO(e){return ka(zT.prototype,function(r,n){this.db=e;let i=BT,s=null;if(n)try{i=n()}catch(c){s=c}let a=r._ctx,u=a.table,o=u.hook.reading.fire;this._ctx={table:u,index:a.index,isPrimKey:!a.index||u.schema.primKey.keyPath&&a.index===u.schema.primKey.name,range:i,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:s,or:a.or,valueMapper:o!==xa?o:null}})}function sO(e,t){return e<t?-1:e===t?0:1}function aO(e,t){return e>t?-1:e===t?0:1}function Qt(e,t,r){var n=e instanceof wf?new e.Collection(e):e;return n._ctx.error=r?new r(t):new TypeError(t),n}function gs(e){return new e.Collection(e,()=>VT("")).limit(0)}function uO(e){return e==="next"?t=>t.toUpperCase():t=>t.toLowerCase()}function oO(e){return e==="next"?t=>t.toLowerCase():t=>t.toUpperCase()}function cO(e,t,r,n,i,s){for(var a=Math.min(e.length,n.length),u=-1,o=0;o<a;++o){var c=t[o];if(c!==n[o])return i(e[o],r[o])<0?e.substr(0,o)+r[o]+r.substr(o+1):i(e[o],n[o])<0?e.substr(0,o)+n[o]+r.substr(o+1):u>=0?e.substr(0,u)+t[u]+r.substr(u+1):null;i(e[o],c)<0&&(u=o)}return a<n.length&&s==="next"?e+r.substr(e.length):a<e.length&&s==="prev"?e.substr(0,r.length):u<0?null:e.substr(0,u)+n[u]+r.substr(u+1)}function Go(e,t,r,n){var i,s,a,u,o,c,h,d=r.length;if(!r.every(b=>typeof b=="string"))return Qt(e,kT);function f(b){i=uO(b),s=oO(b),a=b==="next"?sO:aO;var D=r.map(function(m){return{lower:s(m),upper:i(m)}}).sort(function(m,v){return a(m.lower,v.lower)});u=D.map(function(m){return m.upper}),o=D.map(function(m){return m.lower}),c=b,h=b==="next"?"":n}f("next");var g=new e.Collection(e,()=>kn(u[0],o[d-1]+n));g._ondirectionchange=function(b){f(b)};var y=0;return g._addAlgorithm(function(b,D,m){var v=b.key;if(typeof v!="string")return!1;var I=s(v);if(t(I,o,y))return!0;for(var T=null,E=y;E<d;++E){var C=cO(v,I,u[E],o[E],a,c);C===null&&T===null?y=E+1:(T===null||a(T,C)>0)&&(T=C)}return D(T!==null?function(){b.continue(T+h)}:m),!1}),g}function kn(e,t,r,n){return{type:2,lower:e,upper:t,lowerOpen:r,upperOpen:n}}function VT(e){return{type:1,lower:e,upper:e}}var wf=class{get Collection(){return this._ctx.table.db.Collection}between(t,r,n,i){n=n!==!1,i=i===!0;try{return this._cmp(t,r)>0||this._cmp(t,r)===0&&(n||i)&&!(n&&i)?gs(this):new this.Collection(this,()=>kn(t,r,!n,!i))}catch{return Qt(this,rn)}}equals(t){return t==null?Qt(this,rn):new this.Collection(this,()=>VT(t))}above(t){return t==null?Qt(this,rn):new this.Collection(this,()=>kn(t,void 0,!0))}aboveOrEqual(t){return t==null?Qt(this,rn):new this.Collection(this,()=>kn(t,void 0,!1))}below(t){return t==null?Qt(this,rn):new this.Collection(this,()=>kn(void 0,t,!1,!0))}belowOrEqual(t){return t==null?Qt(this,rn):new this.Collection(this,()=>kn(void 0,t))}startsWith(t){return typeof t!="string"?Qt(this,kT):this.between(t,t+di,!0,!0)}startsWithIgnoreCase(t){return t===""?this.startsWith(t):Go(this,(r,n)=>r.indexOf(n[0])===0,[t],di)}equalsIgnoreCase(t){return Go(this,(r,n)=>r===n[0],[t],"")}anyOfIgnoreCase(){var t=en.apply(ls,arguments);return t.length===0?gs(this):Go(this,(r,n)=>n.indexOf(r)!==-1,t,"")}startsWithAnyOfIgnoreCase(){var t=en.apply(ls,arguments);return t.length===0?gs(this):Go(this,(r,n)=>n.some(i=>r.indexOf(i)===0),t,di)}anyOf(){let t=en.apply(ls,arguments),r=this._cmp;try{t.sort(r)}catch{return Qt(this,rn)}if(t.length===0)return gs(this);let n=new this.Collection(this,()=>kn(t[0],t[t.length-1]));n._ondirectionchange=s=>{r=s==="next"?this._ascending:this._descending,t.sort(r)};let i=0;return n._addAlgorithm((s,a,u)=>{let o=s.key;for(;r(o,t[i])>0;)if(++i,i===t.length)return a(u),!1;return r(o,t[i])===0?!0:(a(()=>{s.continue(t[i])}),!1)}),n}notEqual(t){return this.inAnyRange([[Cf,t],[t,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){let t=en.apply(ls,arguments);if(t.length===0)return new this.Collection(this);try{t.sort(this._ascending)}catch{return Qt(this,rn)}let r=t.reduce((n,i)=>n?n.concat([[n[n.length-1][1],i]]):[[Cf,i]],null);return r.push([t[t.length-1],this.db._maxKey]),this.inAnyRange(r,{includeLowers:!1,includeUppers:!1})}inAnyRange(t,r){let n=this._cmp,i=this._ascending,s=this._descending,a=this._min,u=this._max;if(t.length===0)return gs(this);if(!t.every(T=>T[0]!==void 0&&T[1]!==void 0&&i(T[0],T[1])<=0))return Qt(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",ie.InvalidArgument);let o=!r||r.includeLowers!==!1,c=r&&r.includeUppers===!0;function h(T,E){let C=0,S=T.length;for(;C<S;++C){let N=T[C];if(n(E[0],N[1])<0&&n(E[1],N[0])>0){N[0]=a(N[0],E[0]),N[1]=u(N[1],E[1]);break}}return C===S&&T.push(E),T}let d=i;function f(T,E){return d(T[0],E[0])}let g;try{g=t.reduce(h,[]),g.sort(f)}catch{return Qt(this,rn)}let y=0,b=c?T=>i(T,g[y][1])>0:T=>i(T,g[y][1])>=0,D=o?T=>s(T,g[y][0])>0:T=>s(T,g[y][0])>=0;function m(T){return!b(T)&&!D(T)}let v=b,I=new this.Collection(this,()=>kn(g[0][0],g[g.length-1][1],!o,!c));return I._ondirectionchange=T=>{T==="next"?(v=b,d=i):(v=D,d=s),g.sort(f)},I._addAlgorithm((T,E,C)=>{for(var S=T.key;v(S);)if(++y,y===g.length)return E(C),!1;return m(S)?!0:(this._cmp(S,g[y][1])===0||this._cmp(S,g[y][0])===0||E(()=>{d===i?T.continue(g[y][0]):T.continue(g[y][1])}),!1)}),I}startsWithAnyOf(){let t=en.apply(ls,arguments);return t.every(r=>typeof r=="string")?t.length===0?gs(this):this.inAnyRange(t.map(r=>[r,r+di])):Qt(this,"startsWithAnyOf() only works with strings")}};function lO(e){return ka(wf.prototype,function(r,n,i){this.db=e,this._ctx={table:r,index:n===":id"?null:n,or:i};let s=e._deps.indexedDB;if(!s)throw new ie.MissingAPI;this._cmp=this._ascending=s.cmp.bind(s),this._descending=(a,u)=>s.cmp(u,a),this._max=(a,u)=>s.cmp(a,u)>0?a:u,this._min=(a,u)=>s.cmp(a,u)<0?a:u,this._IDBKeyRange=e._deps.IDBKeyRange})}function wr(e){return ze(function(t){return Fa(t),e(t.target.error),!1})}function Fa(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var Ba="storagemutated",Fn="x-storagemutated-1",Bn=Ma(null,Ba),KT=class{_lock(){return Ca(!ne.global),++this._reculock,this._reculock===1&&!ne.global&&(ne.lockOwnerFor=this),this}_unlock(){if(Ca(!ne.global),--this._reculock==0)for(ne.global||(ne.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var t=this._blockedFuncs.shift();try{ps(t[1],t[0])}catch{}}return this}_locked(){return this._reculock&&ne.lockOwnerFor!==this}create(t){if(!this.mode)return this;let r=this.db.idbdb,n=this.db._state.dbOpenError;if(Ca(!this.idbtrans),!t&&!r)switch(n&&n.name){case"DatabaseClosedError":throw new ie.DatabaseClosed(n);case"MissingAPIError":throw new ie.MissingAPI(n.message,n);default:throw new ie.OpenFailed(n)}if(!this.active)throw new ie.TransactionInactive;return Ca(this._completion._state===null),t=this.idbtrans=t||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):r.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})),t.onerror=ze(i=>{Fa(i),this._reject(t.error)}),t.onabort=ze(i=>{Fa(i),this.active&&this._reject(new ie.Abort(t.error)),this.active=!1,this.on("abort").fire(i)}),t.oncomplete=ze(()=>{this.active=!1,this._resolve(),"mutatedParts"in t&&Bn.storagemutated.fire(t.mutatedParts)}),this}_promise(t,r,n){if(t==="readwrite"&&this.mode!=="readwrite")return rt(new ie.ReadOnly("Transaction is readonly"));if(!this.active)return rt(new ie.TransactionInactive);if(this._locked())return new Y((s,a)=>{this._blockedFuncs.push([()=>{this._promise(t,r,n).then(s,a)},ne])});if(n)return Ln(()=>{var s=new Y((a,u)=>{this._lock();let o=r(a,u,this);o&&o.then&&o.then(a,u)});return s.finally(()=>this._unlock()),s._lib=!0,s});var i=new Y((s,a)=>{var u=r(s,a,this);u&&u.then&&u.then(s,a)});return i._lib=!0,i}_root(){return this.parent?this.parent._root():this}waitFor(t){var r=this._root();let n=Y.resolve(t);if(r._waitingFor)r._waitingFor=r._waitingFor.then(()=>n);else{r._waitingFor=n,r._waitingQueue=[];var i=r.idbtrans.objectStore(r.storeNames[0]);(function a(){for(++r._spinCount;r._waitingQueue.length;)r._waitingQueue.shift()();r._waitingFor&&(i.get(-1/0).onsuccess=a)})()}var s=r._waitingFor;return new Y((a,u)=>{n.then(o=>r._waitingQueue.push(ze(a.bind(null,o))),o=>r._waitingQueue.push(ze(u.bind(null,o)))).finally(()=>{r._waitingFor===s&&(r._waitingFor=null)})})}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new ie.Abort))}table(t){let r=this._memoizedTables||(this._memoizedTables={});if(Yt(r,t))return r[t];let n=this.schema[t];if(!n)throw new ie.NotFound("Table "+t+" not part of transaction");let i=new this.db.Table(t,n,this);return i.core=this.db.core.table(t),r[t]=i,i}};function fO(e){return ka(KT.prototype,function(r,n,i,s,a){this.db=e,this.mode=r,this.storeNames=n,this.schema=i,this.chromeTransactionDurability=s,this.idbtrans=null,this.on=Ma(this,"complete","error","abort"),this.parent=a||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Y((u,o)=>{this._resolve=u,this._reject=o}),this._completion.then(()=>{this.active=!1,this.on.complete.fire()},u=>{var o=this.active;return this.active=!1,this.on.error.fire(u),this.parent?this.parent._reject(u):o&&this.idbtrans&&this.idbtrans.abort(),rt(u)})})}function Rf(e,t,r,n,i,s,a){return{name:e,keyPath:t,unique:r,multi:n,auto:i,compound:s,src:(r&&!a?"&":"")+(n?"*":"")+(i?"++":"")+WT(t)}}function WT(e){return typeof e=="string"?e:e?"["+[].join.call(e,"+")+"]":""}function YT(e,t,r){return{name:e,primKey:t,indexes:r,mappedClass:null,idxByName:pT(r,n=>[n.name,n])}}function dO(e){return e.length===1?e[0]:e}var ja=e=>{try{return e.only([[]]),ja=()=>[[]],[[]]}catch{return ja=()=>di,di}};function Pf(e){return e==null?()=>{}:typeof e=="string"?hO(e):t=>Jr(t,e)}function hO(e){return e.split(".").length===1?r=>r[e]:r=>Jr(r,e)}function QT(e){return[].slice.call(e)}var pO=0;function Ha(e){return e==null?":id":typeof e=="string"?e:`[${e.join("+")}]`}function mO(e,t,r){function n(h,d){let f=QT(h.objectStoreNames);return{schema:{name:h.name,tables:f.map(g=>d.objectStore(g)).map(g=>{let{keyPath:y,autoIncrement:b}=g,D=Et(y),m=y==null,v={},I={name:g.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:m,compound:D,keyPath:y,autoIncrement:b,unique:!0,extractKey:Pf(y)},indexes:QT(g.indexNames).map(T=>g.index(T)).map(T=>{let{name:E,unique:C,multiEntry:S,keyPath:N}=T,P=Et(N),q={name:E,compound:P,keyPath:N,unique:C,multiEntry:S,extractKey:Pf(N)};return v[Ha(N)]=q,q}),getIndexByKeyPath:T=>v[Ha(T)]};return v[":id"]=I.primaryKey,y!=null&&(v[Ha(y)]=I.primaryKey),I})},hasGetAll:f.length>0&&"getAll"in d.objectStore(f[0])&&!(typeof navigator!="undefined"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}function i(h){if(h.type===3)return null;if(h.type===4)throw new Error("Cannot convert never type to IDBKeyRange");let{lower:d,upper:f,lowerOpen:g,upperOpen:y}=h;return d===void 0?f===void 0?null:t.upperBound(f,!!y):f===void 0?t.lowerBound(d,!!g):t.bound(d,f,!!g,!!y)}function s(h){let d=h.name;function f({trans:b,type:D,keys:m,values:v,range:I}){return new Promise((T,E)=>{T=ze(T);let C=b.objectStore(d),S=C.keyPath==null,N=D==="put"||D==="add";if(!N&&D!=="delete"&&D!=="deleteRange")throw new Error("Invalid operation type: "+D);let{length:P}=m||v||{length:1};if(m&&v&&m.length!==v.length)throw new Error("Given keys array must have same length as given values array.");if(P===0)return T({numFailures:0,failures:{},results:[],lastResult:void 0});let q,$=[],ge=[],W=0,he=Ie=>{++W,Fa(Ie)};if(D==="deleteRange"){if(I.type===4)return T({numFailures:W,failures:ge,results:[],lastResult:void 0});I.type===3?$.push(q=C.clear()):$.push(q=C.delete(i(I)))}else{let[Ie,Ke]=N?S?[v,m]:[v,null]:[m,null];if(N)for(let R=0;R<P;++R)$.push(q=Ke&&Ke[R]!==void 0?C[D](Ie[R],Ke[R]):C[D](Ie[R])),q.onerror=he;else for(let R=0;R<P;++R)$.push(q=C[D](Ie[R])),q.onerror=he}let ke=Ie=>{let Ke=Ie.target.result;$.forEach((R,F)=>R.error!=null&&(ge[F]=R.error)),T({numFailures:W,failures:ge,results:D==="delete"?m:$.map(R=>R.result),lastResult:Ke})};q.onerror=Ie=>{he(Ie),ke(Ie)},q.onsuccess=ke})}function g({trans:b,values:D,query:m,reverse:v,unique:I}){return new Promise((T,E)=>{T=ze(T);let{index:C,range:S}=m,N=b.objectStore(d),P=C.isPrimaryKey?N:N.index(C.name),q=v?I?"prevunique":"prev":I?"nextunique":"next",$=D||!("openKeyCursor"in P)?P.openCursor(i(S),q):P.openKeyCursor(i(S),q);$.onerror=wr(E),$.onsuccess=ze(ge=>{let W=$.result;if(!W){T(null);return}W.___id=++pO,W.done=!1;let he=W.continue.bind(W),ke=W.continuePrimaryKey;ke&&(ke=ke.bind(W));let Ie=W.advance.bind(W),Ke=()=>{throw new Error("Cursor not started")},R=()=>{throw new Error("Cursor not stopped")};W.trans=b,W.stop=W.continue=W.continuePrimaryKey=W.advance=Ke,W.fail=ze(E),W.next=function(){let F=1;return this.start(()=>F--?this.continue():this.stop()).then(()=>this)},W.start=F=>{let H=new Promise((de,we)=>{de=ze(de),$.onerror=wr(we),W.fail=we,W.stop=tt=>{W.stop=W.continue=W.continuePrimaryKey=W.advance=R,de(tt)}}),te=()=>{if($.result)try{F()}catch(de){W.fail(de)}else W.done=!0,W.start=()=>{throw new Error("Cursor behind last entry")},W.stop()};return $.onsuccess=ze(de=>{$.onsuccess=te,te()}),W.continue=he,W.continuePrimaryKey=ke,W.advance=Ie,te(),H},T(W)},E)})}function y(b){return D=>new Promise((m,v)=>{m=ze(m);let{trans:I,values:T,limit:E,query:C}=D,S=E===1/0?void 0:E,{index:N,range:P}=C,q=I.objectStore(d),$=N.isPrimaryKey?q:q.index(N.name),ge=i(P);if(E===0)return m({result:[]});if(b){let W=T?$.getAll(ge,S):$.getAllKeys(ge,S);W.onsuccess=he=>m({result:he.target.result}),W.onerror=wr(v)}else{let W=0,he=T||!("openKeyCursor"in $)?$.openCursor(ge):$.openKeyCursor(ge),ke=[];he.onsuccess=Ie=>{let Ke=he.result;if(!Ke)return m({result:ke});if(ke.push(T?Ke.value:Ke.primaryKey),++W===E)return m({result:ke});Ke.continue()},he.onerror=wr(v)}})}return{name:d,schema:h,mutate:f,getMany({trans:b,keys:D}){return new Promise((m,v)=>{m=ze(m);let I=b.objectStore(d),T=D.length,E=new Array(T),C=0,S=0,N,P=$=>{let ge=$.target;(E[ge._pos]=ge.result)!=null,++S===C&&m(E)},q=wr(v);for(let $=0;$<T;++$)D[$]!=null&&(N=I.get(D[$]),N._pos=$,N.onsuccess=P,N.onerror=q,++C);C===0&&m(E)})},get({trans:b,key:D}){return new Promise((m,v)=>{m=ze(m);let T=b.objectStore(d).get(D);T.onsuccess=E=>m(E.target.result),T.onerror=wr(v)})},query:y(u),openCursor:g,count({query:b,trans:D}){let{index:m,range:v}=b;return new Promise((I,T)=>{let E=D.objectStore(d),C=m.isPrimaryKey?E:E.index(m.name),S=i(v),N=S?C.count(S):C.count();N.onsuccess=ze(P=>I(P.target.result)),N.onerror=wr(T)})}}}let{schema:a,hasGetAll:u}=n(e,r),o=a.tables.map(h=>s(h)),c={};return o.forEach(h=>c[h.name]=h),{stack:"dbcore",transaction:e.transaction.bind(e),table(h){if(!c[h])throw new Error(`Table '${h}' not found`);return c[h]},MIN_KEY:-1/0,MAX_KEY:ja(t),schema:a}}function gO(e,t){return t.reduce((r,{create:n})=>J(J({},r),n(r)),e)}function _O(e,t,{IDBKeyRange:r,indexedDB:n},i){return{dbcore:gO(mO(t,r,i),e.dbcore)}}function Lf({_novip:e},t){let r=t.db,n=_O(e._middlewares,r,e._deps,t);e.core=n.dbcore,e.tables.forEach(i=>{let s=i.name;e.core.schema.tables.some(a=>a.name===s)&&(i.core=e.core.table(s),e[s]instanceof e.Table&&(e[s].core=i.core))})}function qo({_novip:e},t,r,n){r.forEach(i=>{let s=n[i];t.forEach(a=>{let u=rf(a,i);(!u||"value"in u&&u.value===void 0)&&(a===e.Transaction.prototype||a instanceof e.Transaction?Zr(a,i,{get(){return this.table(i)},set(o){fT(this,i,{value:o,writable:!0,configurable:!0,enumerable:!0})}}):a[i]=new e.Table(i,s))})})}function Mf({_novip:e},t){t.forEach(r=>{for(let n in r)r[n]instanceof e.Table&&delete r[n]})}function TO(e,t){return e._cfg.version-t._cfg.version}function bO(e,t,r,n){let i=e._dbSchema,s=e._createTransaction("readwrite",e._storeNames,i);s.create(r),s._completion.catch(n);let a=s._reject.bind(s),u=ne.transless||ne;Ln(()=>{ne.trans=s,ne.transless=u,t===0?(Je(i).forEach(o=>{kf(r,o,i[o].primKey,i[o].indexes)}),Lf(e,r),Y.follow(()=>e.on.populate.fire(s)).catch(a)):EO(e,t,s,r).catch(a)})}function EO({_novip:e},t,r,n){let i=[],s=e._versions,a=e._dbSchema=Bf(e,e.idbdb,n),u=!1;s.filter(h=>h._cfg.version>=t).forEach(h=>{i.push(()=>{let d=a,f=h._cfg.dbschema;jf(e,d,n),jf(e,f,n),a=e._dbSchema=f;let g=$T(d,f);g.add.forEach(b=>{kf(n,b[0],b[1].primKey,b[1].indexes)}),g.change.forEach(b=>{if(b.recreate)throw new ie.Upgrade("Not yet support for changing primary key");{let D=n.objectStore(b.name);b.add.forEach(m=>Ff(D,m)),b.change.forEach(m=>{D.deleteIndex(m.name),Ff(D,m)}),b.del.forEach(m=>D.deleteIndex(m))}});let y=h._cfg.contentUpgrade;if(y&&h._cfg.version>t){Lf(e,n),r._memoizedTables={},u=!0;let b=mT(f);g.del.forEach(I=>{b[I]=d[I]}),Mf(e,[e.Transaction.prototype]),qo(e,[e.Transaction.prototype],Je(b),b),r.schema=b;let D=uf(y);D&&hs();let m,v=Y.follow(()=>{if(m=y(r),m&&D){var I=tn.bind(null,null);m.then(I,I)}});return m&&typeof m.then=="function"?Y.resolve(m):v.then(()=>m)}}),i.push(d=>{if(!u||!Zx){let f=h._cfg.dbschema;yO(f,d)}Mf(e,[e.Transaction.prototype]),qo(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),r.schema=e._dbSchema})});function c(){return i.length?Y.resolve(i.shift()(r.idbtrans)).then(c):Y.resolve()}return c().then(()=>{AO(a,n)})}function $T(e,t){let r={del:[],add:[],change:[]},n;for(n in e)t[n]||r.del.push(n);for(n in t){let i=e[n],s=t[n];if(!i)r.add.push([n,s]);else{let a={name:n,def:s,recreate:!1,del:[],add:[],change:[]};if(""+(i.primKey.keyPath||"")!=""+(s.primKey.keyPath||"")||i.primKey.auto!==s.primKey.auto&&!Fo)a.recreate=!0,r.change.push(a);else{let u=i.idxByName,o=s.idxByName,c;for(c in u)o[c]||a.del.push(c);for(c in o){let h=u[c],d=o[c];h?h.src!==d.src&&a.change.push(d):a.add.push(d)}(a.del.length>0||a.add.length>0||a.change.length>0)&&r.change.push(a)}}}return r}function kf(e,t,r,n){let i=e.db.createObjectStore(t,r.keyPath?{keyPath:r.keyPath,autoIncrement:r.auto}:{autoIncrement:r.auto});return n.forEach(s=>Ff(i,s)),i}function AO(e,t){Je(e).forEach(r=>{t.db.objectStoreNames.contains(r)||kf(t,r,e[r].primKey,e[r].indexes)})}function yO(e,t){[].slice.call(t.db.objectStoreNames).forEach(r=>e[r]==null&&t.db.deleteObjectStore(r))}function Ff(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function Bf(e,t,r){let n={};return Io(t.objectStoreNames,0).forEach(s=>{let a=r.objectStore(s),u=a.keyPath,o=Rf(WT(u),u||"",!1,!1,!!a.autoIncrement,u&&typeof u!="string",!0),c=[];for(let d=0;d<a.indexNames.length;++d){let f=a.index(a.indexNames[d]);u=f.keyPath;var h=Rf(f.name,u,!!f.unique,!!f.multiEntry,!1,u&&typeof u!="string",!1);c.push(h)}n[s]=YT(s,o,c)}),n}function IO({_novip:e},t,r){e.verno=t.version/10;let n=e._dbSchema=Bf(e,t,r);e._storeNames=Io(t.objectStoreNames,0),qo(e,[e._allTables],Je(n),n)}function vO(e,t){let r=Bf(e,e.idbdb,t),n=$T(r,e._dbSchema);return!(n.add.length||n.change.some(i=>i.add.length||i.change.length))}function jf({_novip:e},t,r){let n=r.db.objectStoreNames;for(let i=0;i<n.length;++i){let s=n[i],a=r.objectStore(s);e._hasGetAll="getAll"in a;for(let u=0;u<a.indexNames.length;++u){let o=a.indexNames[u],c=a.index(o).keyPath,h=typeof c=="string"?c:"["+Io(c).join("+")+"]";if(t[s]){let d=t[s].idxByName[h];d&&(d.name=o,delete t[s].idxByName[h],t[s].idxByName[o]=d)}}}typeof navigator!="undefined"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&je.WorkerGlobalScope&&je instanceof je.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}function CO(e){return e.split(",").map((t,r)=>{t=t.trim();let n=t.replace(/([&*]|\+\+)/g,""),i=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return Rf(n,i||null,/\&/.test(t),/\*/.test(t),/\+\+/.test(t),Et(i),r===0)})}var XT=class{_parseStoresSpec(t,r){Je(t).forEach(n=>{if(t[n]!==null){var i=CO(t[n]),s=i.shift();if(s.multi)throw new ie.Schema("Primary key cannot be multi-valued");i.forEach(a=>{if(a.auto)throw new ie.Schema("Only primary key can be marked as autoIncrement (++)");if(!a.keyPath)throw new ie.Schema("Index must have a name and cannot be an empty string")}),r[n]=YT(n,s,i)}})}stores(t){let r=this.db;this._cfg.storesSource=this._cfg.storesSource?xt(this._cfg.storesSource,t):t;let n=r._versions,i={},s={};return n.forEach(a=>{xt(i,a._cfg.storesSource),s=a._cfg.dbschema={},a._parseStoresSpec(i,s)}),r._dbSchema=s,Mf(r,[r._allTables,r,r.Transaction.prototype]),qo(r,[r._allTables,r,r.Transaction.prototype,this._cfg.tables],Je(s),s),r._storeNames=Je(s),this}upgrade(t){return this._cfg.contentUpgrade=ff(this._cfg.contentUpgrade||Ne,t),this}};function DO(e){return ka(XT.prototype,function(r){this.db=e,this._cfg={version:r,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}function Hf(e,t){let r=e._dbNamesDB;return r||(r=e._dbNamesDB=new sn(Bo,{addons:[],indexedDB:e,IDBKeyRange:t}),r.version(1).stores({dbnames:"name"})),r.table("dbnames")}function Uf(e){return e&&typeof e.databases=="function"}function SO({indexedDB:e,IDBKeyRange:t}){return Uf(e)?Promise.resolve(e.databases()).then(r=>r.map(n=>n.name).filter(n=>n!==Bo)):Hf(e,t).toCollection().primaryKeys()}function xO({indexedDB:e,IDBKeyRange:t},r){!Uf(e)&&r!==Bo&&Hf(e,t).put({name:r}).catch(Ne)}function OO({indexedDB:e,IDBKeyRange:t},r){!Uf(e)&&r!==Bo&&Hf(e,t).delete(r).catch(Ne)}function Gf(e){return Ln(function(){return ne.letThrough=!0,e()})}function NO(){var e=!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent);if(!e||!indexedDB.databases)return Promise.resolve();var t;return new Promise(function(r){var n=function(){return indexedDB.databases().finally(r)};t=setInterval(n,100),n()}).finally(function(){return clearInterval(t)})}function wO(e){let t=e._state,{indexedDB:r}=e._deps;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then(()=>t.dbOpenError?rt(t.dbOpenError):e);Nr&&(t.openCanceller._stackHolder=oi()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;let n=t.openCanceller;function i(){if(t.openCanceller!==n)throw new ie.DatabaseClosed("db.open() was cancelled")}let s=t.dbReadyResolve,a=null,u=!1,o=()=>new Y((c,h)=>{if(i(),!r)throw new ie.MissingAPI;let d=e.name,f=t.autoSchema?r.open(d):r.open(d,Math.round(e.verno*10));if(!f)throw new ie.MissingAPI;f.onerror=wr(h),f.onblocked=ze(e._fireOnBlocked),f.onupgradeneeded=ze(g=>{if(a=f.transaction,t.autoSchema&&!e._options.allowEmptyDB){f.onerror=Fa,a.abort(),f.result.close();let b=r.deleteDatabase(d);b.onsuccess=b.onerror=ze(()=>{h(new ie.NoSuchDatabase(`Database ${d} doesnt exist`))})}else{a.onerror=wr(h);var y=g.oldVersion>Math.pow(2,62)?0:g.oldVersion;u=y<1,e._novip.idbdb=f.result,bO(e,y/10,a,h)}},h),f.onsuccess=ze(()=>{a=null;let g=e._novip.idbdb=f.result,y=Io(g.objectStoreNames);if(y.length>0)try{let b=g.transaction(dO(y),"readonly");t.autoSchema?IO(e,g,b):(jf(e,e._dbSchema,b),vO(e,b)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),Lf(e,b)}catch{}La.push(e),g.onversionchange=ze(b=>{t.vcFired=!0,e.on("versionchange").fire(b)}),g.onclose=ze(b=>{e.on("close").fire(b)}),u&&xO(e._deps,d),c()},h)}).catch(c=>c&&c.name==="UnknownError"&&t.PR1398_maxLoop>0?(t.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),o()):Y.reject(c));return Y.race([n,(typeof navigator=="undefined"?Y.resolve():NO()).then(o)]).then(()=>(i(),t.onReadyBeingFired=[],Y.resolve(Gf(()=>e.on.ready.fire(e.vip))).then(function c(){if(t.onReadyBeingFired.length>0){let h=t.onReadyBeingFired.reduce(ff,Ne);return t.onReadyBeingFired=[],Y.resolve(Gf(()=>h(e.vip))).then(c)}}))).finally(()=>{t.onReadyBeingFired=null,t.isBeingOpened=!1}).then(()=>e).catch(c=>{t.dbOpenError=c;try{a&&a.abort()}catch{}return n===t.openCanceller&&e._close(),rt(c)}).finally(()=>{t.openComplete=!0,s()})}function qf(e){var t=a=>e.next(a),r=a=>e.throw(a),n=s(t),i=s(r);function s(a){return u=>{var o=a(u),c=o.value;return o.done?c:!c||typeof c.then!="function"?Et(c)?Promise.all(c).then(n,i):n(c):c.then(n,i)}}return s(t)()}function RO(e,t,r){var n=arguments.length;if(n<2)throw new ie.InvalidArgument("Too few arguments");for(var i=new Array(n-1);--n;)i[n-1]=arguments[n];r=i.pop();var s=gT(i);return[e,s,r]}function ZT(e,t,r,n,i){return Y.resolve().then(()=>{let s=ne.transless||ne,a=e._createTransaction(t,r,e._dbSchema,n),u={trans:a,transless:s};if(n)a.idbtrans=n.idbtrans;else try{a.create(),e._state.PR1398_maxLoop=3}catch(d){return d.name===lf.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(()=>ZT(e,t,r,null,i))):rt(d)}let o=uf(i);o&&hs();let c,h=Y.follow(()=>{if(c=i.call(a,a),c)if(o){var d=tn.bind(null,null);c.then(d,d)}else typeof c.next=="function"&&typeof c.throw=="function"&&(c=qf(c))},u);return(c&&typeof c.then=="function"?Y.resolve(c).then(d=>a.active?d:rt(new ie.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))):h.then(()=>c)).then(d=>(n&&a._resolve(),a._completion.then(()=>d))).catch(d=>(a._reject(d),rt(d)))})}function zo(e,t,r){let n=Et(e)?e.slice():[e];for(let i=0;i<r;++i)n.push(t);return n}function PO(e){return Fe(J({},e),{table(t){let r=e.table(t),{schema:n}=r,i={},s=[];function a(f,g,y){let b=Ha(f),D=i[b]=i[b]||[],m=f==null?0:typeof f=="string"?1:f.length,v=g>0,I=Fe(J({},y),{isVirtual:v,keyTail:g,keyLength:m,extractKey:Pf(f),unique:!v&&y.unique});if(D.push(I),I.isPrimaryKey||s.push(I),m>1){let T=m===2?f[0]:f.slice(0,m-1);a(T,g+1,y)}return D.sort((T,E)=>T.keyTail-E.keyTail),I}let u=a(n.primaryKey.keyPath,0,n.primaryKey);i[":id"]=[u];for(let f of n.indexes)a(f.keyPath,0,f);function o(f){let g=i[Ha(f)];return g&&g[0]}function c(f,g){return{type:f.type===1?2:f.type,lower:zo(f.lower,f.lowerOpen?e.MAX_KEY:e.MIN_KEY,g),lowerOpen:!0,upper:zo(f.upper,f.upperOpen?e.MIN_KEY:e.MAX_KEY,g),upperOpen:!0}}function h(f){let g=f.query.index;return g.isVirtual?Fe(J({},f),{query:{index:g,range:c(f.query.range,g.keyTail)}}):f}return Fe(J({},r),{schema:Fe(J({},n),{primaryKey:u,indexes:s,getIndexByKeyPath:o}),count(f){return r.count(h(f))},query(f){return r.query(h(f))},openCursor(f){let{keyTail:g,isVirtual:y,keyLength:b}=f.query.index;if(!y)return r.openCursor(f);function D(m){function v(T){T!=null?m.continue(zo(T,f.reverse?e.MAX_KEY:e.MIN_KEY,g)):f.unique?m.continue(m.key.slice(0,b).concat(f.reverse?e.MIN_KEY:e.MAX_KEY,g)):m.continue()}return Object.create(m,{continue:{value:v},continuePrimaryKey:{value(T,E){m.continuePrimaryKey(zo(T,e.MAX_KEY,g),E)}},primaryKey:{get(){return m.primaryKey}},key:{get(){let T=m.key;return b===1?T[0]:T.slice(0,b)}},value:{get(){return m.value}}})}return r.openCursor(h(f)).then(m=>m&&D(m))}})}})}var LO={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:PO};function zf(e,t,r,n){return r=r||{},n=n||"",Je(e).forEach(i=>{if(!Yt(t,i))r[n+i]=void 0;else{var s=e[i],a=t[i];if(typeof s=="object"&&typeof a=="object"&&s&&a){let u=sf(s),o=sf(a);u!==o?r[n+i]=t[i]:u==="Object"?zf(s,a,r,n+i+"."):s!==a&&(r[n+i]=t[i])}else s!==a&&(r[n+i]=t[i])}}),Je(t).forEach(i=>{Yt(e,i)||(r[n+i]=t[i])}),r}function MO(e,t){return t.type==="delete"?t.keys:t.keys||t.values.map(e.extractKey)}var kO={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>Fe(J({},e),{table(t){let r=e.table(t),{primaryKey:n}=r.schema;return Fe(J({},r),{mutate(s){let a=ne.trans,{deleting:u,creating:o,updating:c}=a.table(t).hook;switch(s.type){case"add":if(o.fire===Ne)break;return a._promise("readwrite",()=>h(s),!0);case"put":if(o.fire===Ne&&c.fire===Ne)break;return a._promise("readwrite",()=>h(s),!0);case"delete":if(u.fire===Ne)break;return a._promise("readwrite",()=>h(s),!0);case"deleteRange":if(u.fire===Ne)break;return a._promise("readwrite",()=>d(s),!0)}return r.mutate(s);function h(g){let y=ne.trans,b=g.keys||MO(n,g);if(!b)throw new Error("Keys missing");return g=g.type==="add"||g.type==="put"?Fe(J({},g),{keys:b}):J({},g),g.type!=="delete"&&(g.values=[...g.values]),g.keys&&(g.keys=[...g.keys]),FO(r,g,b).then(D=>{let m=b.map((v,I)=>{let T=D[I],E={onerror:null,onsuccess:null};if(g.type==="delete")u.fire.call(E,v,T,y);else if(g.type==="add"||T===void 0){let C=o.fire.call(E,v,g.values[I],y);v==null&&C!=null&&(v=C,g.keys[I]=v,n.outbound||_r(g.values[I],n.keyPath,v))}else{let C=zf(T,g.values[I]),S=c.fire.call(E,C,v,T,y);if(S){let N=g.values[I];Object.keys(S).forEach(P=>{Yt(N,P)?N[P]=S[P]:_r(N,P,S[P])})}}return E});return r.mutate(g).then(({failures:v,results:I,numFailures:T,lastResult:E})=>{for(let C=0;C<b.length;++C){let S=I?I[C]:b[C],N=m[C];S==null?N.onerror&&N.onerror(v[C]):N.onsuccess&&N.onsuccess(g.type==="put"&&D[C]?g.values[C]:S)}return{failures:v,results:I,numFailures:T,lastResult:E}}).catch(v=>(m.forEach(I=>I.onerror&&I.onerror(v)),Promise.reject(v)))})}function d(g){return f(g.trans,g.range,1e4)}function f(g,y,b){return r.query({trans:g,values:!1,query:{index:n,range:y},limit:b}).then(({result:D})=>h({type:"delete",keys:D,trans:g}).then(m=>m.numFailures>0?Promise.reject(m.failures[0]):D.length<b?{failures:[],numFailures:0,lastResult:void 0}:f(g,Fe(J({},y),{lower:D[D.length-1],lowerOpen:!0}),b)))}}})}})};function FO(e,t,r){return t.type==="add"?Promise.resolve([]):e.getMany({trans:t.trans,keys:r,cache:"immutable"})}function JT(e,t,r){try{if(!t||t.keys.length<e.length)return null;let n=[];for(let i=0,s=0;i<t.keys.length&&s<e.length;++i)Ot(t.keys[i],e[s])===0&&(n.push(r?Da(t.values[i]):t.values[i]),++s);return n.length===e.length?n:null}catch{return null}}var BO={stack:"dbcore",level:-1,create:e=>({table:t=>{let r=e.table(t);return Fe(J({},r),{getMany:n=>{if(!n.cache)return r.getMany(n);let i=JT(n.keys,n.trans._cache,n.cache==="clone");return i?Y.resolve(i):r.getMany(n).then(s=>(n.trans._cache={keys:n.keys,values:n.cache==="clone"?Da(s):s},s))},mutate:n=>(n.type!=="add"&&(n.trans._cache=null),r.mutate(n))})}})};function Vf(e){return!("from"in e)}var nn=function(e,t){if(this)xt(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0});else{let r=new nn;return e&&"d"in e&&xt(r,e),r}};os(nn.prototype,{add(e){return Vo(this,e),this},addKey(e){return Ua(this,e,e),this},addKeys(e){return e.forEach(t=>Ua(this,t,t)),this},[af](){return Kf(this)}});function Ua(e,t,r){let n=Ot(t,r);if(isNaN(n))return;if(n>0)throw RangeError();if(Vf(e))return xt(e,{from:t,to:r,d:1});let i=e.l,s=e.r;if(Ot(r,e.from)<0)return i?Ua(i,t,r):e.l={from:t,to:r,d:1,l:null,r:null},eb(e);if(Ot(t,e.to)>0)return s?Ua(s,t,r):e.r={from:t,to:r,d:1,l:null,r:null},eb(e);Ot(t,e.from)<0&&(e.from=t,e.l=null,e.d=s?s.d+1:1),Ot(r,e.to)>0&&(e.to=r,e.r=null,e.d=e.l?e.l.d+1:1);let a=!e.r;i&&!e.l&&Vo(e,i),s&&a&&Vo(e,s)}function Vo(e,t){function r(n,{from:i,to:s,l:a,r:u}){Ua(n,i,s),a&&r(n,a),u&&r(n,u)}Vf(t)||r(e,t)}function jO(e,t){let r=Kf(t),n=r.next();if(n.done)return!1;let i=n.value,s=Kf(e),a=s.next(i.from),u=a.value;for(;!n.done&&!a.done;){if(Ot(u.from,i.to)<=0&&Ot(u.to,i.from)>=0)return!0;Ot(i.from,u.from)<0?i=(n=r.next(u.from)).value:u=(a=s.next(i.from)).value}return!1}function Kf(e){let t=Vf(e)?null:{s:0,n:e};return{next(r){let n=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&Ot(r,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||Ot(r,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function eb(e){var t,r;let n=(((t=e.r)===null||t===void 0?void 0:t.d)||0)-(((r=e.l)===null||r===void 0?void 0:r.d)||0),i=n>1?"r":n<-1?"l":"";if(i){let s=i==="r"?"l":"r",a=J({},e),u=e[i];e.from=u.from,e.to=u.to,e[i]=u[i],a[i]=u[s],e[s]=a,a.d=tb(a)}e.d=tb(e)}function tb({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}var HO={stack:"dbcore",level:0,create:e=>{let t=e.schema.name,r=new nn(e.MIN_KEY,e.MAX_KEY);return Fe(J({},e),{table:n=>{let i=e.table(n),{schema:s}=i,{primaryKey:a}=s,{extractKey:u,outbound:o}=a,c=Fe(J({},i),{mutate:f=>{let g=f.trans,y=g.mutatedParts||(g.mutatedParts={}),b=C=>{let S=`idb://${t}/${n}/${C}`;return y[S]||(y[S]=new nn)},D=b(""),m=b(":dels"),{type:v}=f,[I,T]=f.type==="deleteRange"?[f.range]:f.type==="delete"?[f.keys]:f.values.length<50?[[],f.values]:[],E=f.trans._cache;return i.mutate(f).then(C=>{if(Et(I)){v!=="delete"&&(I=C.results),D.addKeys(I);let S=JT(I,E);!S&&v!=="add"&&m.addKeys(I),(S||T)&&UO(b,s,S,T)}else if(I){let S={from:I.lower,to:I.upper};m.add(S),D.add(S)}else D.add(r),m.add(r),s.indexes.forEach(S=>b(S.name).add(r));return C})}}),h=({query:{index:f,range:g}})=>{var y,b;return[f,new nn((y=g.lower)!==null&&y!==void 0?y:e.MIN_KEY,(b=g.upper)!==null&&b!==void 0?b:e.MAX_KEY)]},d={get:f=>[a,new nn(f.key)],getMany:f=>[a,new nn().addKeys(f.keys)],count:h,query:h,openCursor:h};return Je(d).forEach(f=>{c[f]=function(g){let{subscr:y}=ne;if(y){let b=T=>{let E=`idb://${t}/${n}/${T}`;return y[E]||(y[E]=new nn)},D=b(""),m=b(":dels"),[v,I]=d[f](g);if(b(v.name||"").add(I),!v.isPrimaryKey)if(f==="count")m.add(r);else{let T=f==="query"&&o&&g.values&&i.query(Fe(J({},g),{values:!1}));return i[f].apply(this,arguments).then(E=>{if(f==="query"){if(o&&g.values)return T.then(({result:S})=>(D.addKeys(S),E));let C=g.values?E.result.map(u):E.result;g.values?D.addKeys(C):m.addKeys(C)}else if(f==="openCursor"){let C=E,S=g.values;return C&&Object.create(C,{key:{get(){return m.addKey(C.primaryKey),C.key}},primaryKey:{get(){let N=C.primaryKey;return m.addKey(N),N}},value:{get(){return S&&D.addKey(C.primaryKey),C.value}}})}return E})}}return i[f].apply(this,arguments)}}),c}})}};function UO(e,t,r,n){function i(s){let a=e(s.name||"");function u(c){return c!=null?s.extractKey(c):null}let o=c=>s.multiEntry&&Et(c)?c.forEach(h=>a.addKey(h)):a.addKey(c);(r||n).forEach((c,h)=>{let d=r&&u(r[h]),f=n&&u(n[h]);Ot(d,f)!==0&&(d!=null&&o(d),f!=null&&o(f))})}t.indexes.forEach(i)}var sn=class{constructor(t,r){this._middlewares={},this.verno=0;let n=sn.dependencies;this._options=r=J({addons:sn.addons,autoOpen:!0,indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange},r),this._deps={indexedDB:r.indexedDB,IDBKeyRange:r.IDBKeyRange};let{addons:i}=r;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;let s={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:Ne,dbReadyPromise:null,cancelOpen:Ne,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};s.dbReadyPromise=new Y(a=>{s.dbReadyResolve=a}),s.openCanceller=new Y((a,u)=>{s.cancelOpen=u}),this._state=s,this.name=t,this.on=Ma(this,"populate","blocked","versionchange","close",{ready:[ff,Ne]}),this.on.ready.subscribe=dT(this.on.ready.subscribe,a=>(u,o)=>{sn.vip(()=>{let c=this._state;if(c.openComplete)c.dbOpenError||Y.resolve().then(u),o&&a(u);else if(c.onReadyBeingFired)c.onReadyBeingFired.push(u),o&&a(u);else{a(u);let h=this;o||a(function d(){h.on.ready.unsubscribe(u),h.on.ready.unsubscribe(d)})}})}),this.Collection=iO(this),this.Table=eO(this),this.Transaction=fO(this),this.Version=DO(this),this.WhereClause=lO(this),this.on("versionchange",a=>{a.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()}),this.on("blocked",a=>{!a.newVersion||a.newVersion<a.oldVersion?console.warn(`Dexie.delete('${this.name}') was blocked`):console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${a.oldVersion/10}`)}),this._maxKey=ja(r.IDBKeyRange),this._createTransaction=(a,u,o,c)=>new this.Transaction(a,u,o,this._options.chromeTransactionDurability,c),this._fireOnBlocked=a=>{this.on("blocked").fire(a),La.filter(u=>u.name===this.name&&u!==this&&!u._state.vcFired).map(u=>u.on("versionchange").fire(a))},this.use(LO),this.use(kO),this.use(HO),this.use(BO),this.vip=Object.create(this,{_vip:{value:!0}}),i.forEach(a=>a(this))}version(t){if(isNaN(t)||t<.1)throw new ie.Type("Given version is not a positive number");if(t=Math.round(t*10)/10,this.idbdb||this._state.isBeingOpened)throw new ie.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,t);let r=this._versions;var n=r.filter(i=>i._cfg.version===t)[0];return n||(n=new this.Version(t),r.push(n),r.sort(TO),n.stores({}),this._state.autoSchema=!1,n)}_whenReady(t){return this.idbdb&&(this._state.openComplete||ne.letThrough||this._vip)?t():new Y((r,n)=>{if(this._state.openComplete)return n(new ie.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen){n(new ie.DatabaseClosed);return}this.open().catch(Ne)}this._state.dbReadyPromise.then(r,n)}).then(t)}use({stack:t,create:r,level:n,name:i}){i&&this.unuse({stack:t,name:i});let s=this._middlewares[t]||(this._middlewares[t]=[]);return s.push({stack:t,create:r,level:n??10,name:i}),s.sort((a,u)=>a.level-u.level),this}unuse({stack:t,name:r,create:n}){return t&&this._middlewares[t]&&(this._middlewares[t]=this._middlewares[t].filter(i=>n?i.create!==n:r?i.name!==r:!1)),this}open(){return wO(this)}_close(){let t=this._state,r=La.indexOf(this);if(r>=0&&La.splice(r,1),this.idbdb){try{this.idbdb.close()}catch{}this._novip.idbdb=null}t.dbReadyPromise=new Y(n=>{t.dbReadyResolve=n}),t.openCanceller=new Y((n,i)=>{t.cancelOpen=i})}close(){this._close();let t=this._state;this._options.autoOpen=!1,t.dbOpenError=new ie.DatabaseClosed,t.isBeingOpened&&t.cancelOpen(t.dbOpenError)}delete(){let t=arguments.length>0,r=this._state;return new Y((n,i)=>{let s=()=>{this.close();var a=this._deps.indexedDB.deleteDatabase(this.name);a.onsuccess=ze(()=>{OO(this._deps,this.name),n()}),a.onerror=wr(i),a.onblocked=this._fireOnBlocked};if(t)throw new ie.InvalidArgument("Arguments not allowed in db.delete()");r.isBeingOpened?r.dbReadyPromise.then(s):s()})}backendDB(){return this.idbdb}isOpen(){return this.idbdb!==null}hasBeenClosed(){let t=this._state.dbOpenError;return t&&t.name==="DatabaseClosed"}hasFailed(){return this._state.dbOpenError!==null}dynamicallyOpened(){return this._state.autoSchema}get tables(){return Je(this._allTables).map(t=>this._allTables[t])}transaction(){let t=RO.apply(this,arguments);return this._transaction.apply(this,t)}_transaction(t,r,n){let i=ne.trans;(!i||i.db!==this||t.indexOf("!")!==-1)&&(i=null);let s=t.indexOf("?")!==-1;t=t.replace("!","").replace("?","");let a,u;try{if(u=r.map(c=>{var h=c instanceof this.Table?c.name:c;if(typeof h!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return h}),t=="r"||t===Df)a=Df;else if(t=="rw"||t==Sf)a=Sf;else throw new ie.InvalidArgument("Invalid transaction mode: "+t);if(i){if(i.mode===Df&&a===Sf)if(s)i=null;else throw new ie.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");i&&u.forEach(c=>{if(i&&i.storeNames.indexOf(c)===-1)if(s)i=null;else throw new ie.SubTransaction("Table "+c+" not included in parent transaction.")}),s&&i&&!i.active&&(i=null)}}catch(c){return i?i._promise(null,(h,d)=>{d(c)}):rt(c)}let o=ZT.bind(null,this,a,u,i,n);return i?i._promise(a,o,"lock"):ne.trans?ps(ne.transless,()=>this._whenReady(o)):this._whenReady(o)}table(t){if(!Yt(this._allTables,t))throw new ie.InvalidTable(`Table ${t} does not exist`);return this._allTables[t]}},GO=typeof Symbol!="undefined"&&"observable"in Symbol?Symbol.observable:"@@observable",rb=class{constructor(t){this._subscribe=t}subscribe(t,r,n){return this._subscribe(!t||typeof t=="function"?{next:t,error:r,complete:n}:t)}[GO](){return this}};function nb(e,t){return Je(t).forEach(r=>{let n=e[r]||(e[r]=new nn);Vo(n,t[r])}),e}function qO(e){let t=!1,r,n=new rb(i=>{let s=uf(e);function a(D){s&&hs();let m=()=>Ln(e,{subscr:D,trans:null}),v=ne.trans?ps(ne.transless,m):m();return s&&v.then(tn,tn),v}let u=!1,o={},c={},h={get closed(){return u},unsubscribe:()=>{u=!0,Bn.storagemutated.unsubscribe(y)}};i.start&&i.start(h);let d=!1,f=!1;function g(){return Je(c).some(D=>o[D]&&jO(o[D],c[D]))}let y=D=>{nb(o,D),g()&&b()},b=()=>{if(d||u)return;o={};let D={},m=a(D);f||(Bn(Ba,y),f=!0),d=!0,Promise.resolve(m).then(v=>{t=!0,r=v,d=!1,!u&&(g()?b():(o={},c=D,i.next&&i.next(v)))},v=>{d=!1,t=!1,i.error&&i.error(v),h.unsubscribe()})};return b(),h});return n.hasValue=()=>t,n.getValue=()=>r,n}var Wf;try{Wf={indexedDB:je.indexedDB||je.mozIndexedDB||je.webkitIndexedDB||je.msIndexedDB,IDBKeyRange:je.IDBKeyRange||je.webkitIDBKeyRange}}catch{Wf={indexedDB:null,IDBKeyRange:null}}var pi=sn;os(pi,Fe(J({},Co),{delete(e){return new pi(e,{addons:[]}).delete()},exists(e){return new pi(e,{addons:[]}).open().then(t=>(t.close(),!0)).catch("NoSuchDatabaseError",()=>!1)},getDatabaseNames(e){try{return SO(pi.dependencies).then(e)}catch{return rt(new ie.MissingAPI)}},defineClass(){function e(t){xt(this,t)}return e},ignoreTransaction(e){return ne.trans?ps(ne.transless,e):e()},vip:Gf,async:function(e){return function(){try{var t=qf(e.apply(this,arguments));return!t||typeof t.then!="function"?Y.resolve(t):t}catch(r){return rt(r)}}},spawn:function(e,t,r){try{var n=qf(e.apply(r,t||[]));return!n||typeof n.then!="function"?Y.resolve(n):n}catch(i){return rt(i)}},currentTransaction:{get:()=>ne.trans||null},waitFor:function(e,t){let r=Y.resolve(typeof e=="function"?pi.ignoreTransaction(e):e).timeout(t||6e4);return ne.trans?ne.trans.waitFor(r):r},Promise:Y,debug:{get:()=>Nr,set:e=>{TT(e,e==="dexie"?()=>!0:FT)}},derive:cs,extend:xt,props:os,override:dT,Events:Ma,on:Bn,liveQuery:qO,extendObservabilitySet:nb,getByKeyPath:Jr,setByKeyPath:_r,delByKeyPath:Dx,shallowClone:mT,deepClone:Da,getObjectDiff:zf,cmp:Ot,asap:hT,minKey:Cf,addons:[],connections:La,errnames:lf,dependencies:Wf,semVer:MT,version:MT.split(".").map(e=>parseInt(e)).reduce((e,t,r)=>e+t/Math.pow(10,r*2))}));pi.maxKey=ja(pi.dependencies.IDBKeyRange);typeof dispatchEvent!="undefined"&&typeof addEventListener!="undefined"&&(Bn(Ba,e=>{if(!an){let t;Fo?(t=document.createEvent("CustomEvent"),t.initCustomEvent(Fn,!0,!0,e)):t=new CustomEvent(Fn,{detail:e}),an=!0,dispatchEvent(t),an=!1}}),addEventListener(Fn,({detail:e})=>{an||Ko(e)}));function Ko(e){let t=an;try{an=!0,Bn.storagemutated.fire(e)}finally{an=t}}var an=!1;if(typeof BroadcastChannel!="undefined"){let e=new BroadcastChannel(Fn);typeof e.unref=="function"&&e.unref(),Bn(Ba,t=>{an||e.postMessage(t)}),e.onmessage=t=>{t.data&&Ko(t.data)}}else if(typeof self!="undefined"&&typeof navigator!="undefined"){Bn(Ba,t=>{try{an||(typeof localStorage!="undefined"&&localStorage.setItem(Fn,JSON.stringify({trig:Math.random(),changedParts:t})),typeof self.clients=="object"&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(r=>r.postMessage({type:Fn,changedParts:t})))}catch{}}),typeof addEventListener!="undefined"&&addEventListener("storage",t=>{if(t.key===Fn){let r=JSON.parse(t.newValue);r&&Ko(r.changedParts)}});let e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",zO)}function zO({data:e}){e&&e.type===Fn&&Ko(e.changedParts)}Y.rejectionMapper=Mx;TT(Nr,FT);var Yf=Xe(require("obsidian")),_s=class extends sn{constructor(t){super(_s.getDbName(t.app.appId));this.plugin=t;this.version(_s.dbVersion).stores({searchHistory:"++id",minisearch:"date"})}static getDbName(t){return"omnisearch/cache/"+t}async getMinisearchCache(){try{return(await this.plugin.database.minisearch.toArray())[0]}catch(t){return new Yf.Notice("Omnisearch - Cache missing or invalid. Some freezes may occur while Omnisearch indexes your vault."),console.error("Omnisearch - Error while loading Minisearch cache"),console.error(t),null}}async writeMinisearchCache(t,r){let n=Array.from(r).map(([s,a])=>({path:s,mtime:a})),i=this.plugin.database;await i.minisearch.clear(),await i.minisearch.add({date:new Date().toISOString(),paths:n,data:t.toJSON()}),console.log("Omnisearch - Search cache written")}async clearOldDatabases(){let t=(await indexedDB.databases()).filter(r=>r.name===_s.getDbName(this.plugin.app.appId)&&r.version!==_s.dbVersion*10);if(t.length){console.log("Omnisearch - Those IndexedDb databases will be deleted:");for(let r of t)r.name&&indexedDB.deleteDatabase(r.name)}}async clearCache(){new Yf.Notice("Omnisearch - Cache cleared. Please restart Obsidian."),await this.minisearch.clear()}},Wo=_s;Wo.dbVersion=8;var ib="ENTRIES",Qf="KEYS",$f="VALUES",nt="",Ga=class{constructor(t,r){let n=t._tree,i=Array.from(n.keys());this.set=t,this._type=r,this._path=i.length>0?[{node:n,keys:i}]:[]}next(){let t=this.dive();return this.backtrack(),t}dive(){if(this._path.length===0)return{done:!0,value:void 0};let{node:t,keys:r}=Ts(this._path);if(Ts(r)===nt)return{done:!1,value:this.result()};let n=t.get(Ts(r));return this._path.push({node:n,keys:Array.from(n.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;let t=Ts(this._path).keys;t.pop(),!(t.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:t})=>Ts(t)).filter(t=>t!==nt).join("")}value(){return Ts(this._path).node.get(nt)}result(){switch(this._type){case $f:return this.value();case Qf:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}},Ts=e=>e[e.length-1];var VO=(e,t,r)=>{let n=new Map;if(t===void 0)return n;let i=t.length+1,s=i+r,a=new Uint8Array(s*i).fill(r+1);for(let u=0;u<i;++u)a[u]=u;for(let u=1;u<s;++u)a[u*i]=u;return sb(e,t,r,n,a,1,i,""),n},sb=(e,t,r,n,i,s,a,u)=>{let o=s*a;e:for(let c of e.keys())if(c===nt){let h=i[o-1];h<=r&&n.set(u,[e.get(c),h])}else{let h=s;for(let d=0;d<c.length;++d,++h){let f=c[d],g=a*h,y=g-a,b=i[g],D=Math.max(0,h-r-1),m=Math.min(a-1,h+r);for(let v=D;v<m;++v){let I=f!==t[v],T=i[y+v]+ +I,E=i[y+v+1]+1,C=i[g+v]+1,S=i[g+v+1]=Math.min(T,E,C);S<b&&(b=S)}if(b>r)continue e}sb(e.get(c),t,r,n,i,h,a,u+c)}},ab=VO;var Tr=class{constructor(t=new Map,r=""){this._size=void 0;this._tree=t,this._prefix=r}atPrefix(t){if(!t.startsWith(this._prefix))throw new Error("Mismatched prefix");let[r,n]=Yo(this._tree,t.slice(this._prefix.length));if(r===void 0){let[i,s]=Jf(n);for(let a of i.keys())if(a!==nt&&a.startsWith(s)){let u=new Map;return u.set(a.slice(s.length),i.get(a)),new Tr(u,t)}}return new Tr(r,t)}clear(){this._size=void 0,this._tree.clear()}delete(t){return this._size=void 0,KO(this._tree,t)}entries(){return new Ga(this,ib)}forEach(t){for(let[r,n]of this)t(r,n,this)}fuzzyGet(t,r){return ab(this._tree,t,r)}get(t){let r=Xf(this._tree,t);return r!==void 0?r.get(nt):void 0}has(t){let r=Xf(this._tree,t);return r!==void 0&&r.has(nt)}keys(){return new Ga(this,Qf)}set(t,r){if(typeof t!="string")throw new Error("key must be a string");return this._size=void 0,Zf(this._tree,t).set(nt,r),this}get size(){if(this._size)return this._size;this._size=0;let t=this.entries();for(;!t.next().done;)this._size+=1;return this._size}update(t,r){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;let n=Zf(this._tree,t);return n.set(nt,r(n.get(nt))),this}fetch(t,r){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;let n=Zf(this._tree,t),i=n.get(nt);return i===void 0&&n.set(nt,i=r()),i}values(){return new Ga(this,$f)}[Symbol.iterator](){return this.entries()}static from(t){let r=new Tr;for(let[n,i]of t)r.set(n,i);return r}static fromObject(t){return Tr.from(Object.entries(t))}},Yo=(e,t,r=[])=>{if(t.length===0||e==null)return[e,r];for(let n of e.keys())if(n!==nt&&t.startsWith(n))return r.push([e,n]),Yo(e.get(n),t.slice(n.length),r);return r.push([e,t]),Yo(void 0,"",r)},Xf=(e,t)=>{if(t.length===0||e==null)return e;for(let r of e.keys())if(r!==nt&&t.startsWith(r))return Xf(e.get(r),t.slice(r.length))},Zf=(e,t)=>{let r=t.length;e:for(let n=0;e&&n<r;){for(let s of e.keys())if(s!==nt&&t[n]===s[0]){let a=Math.min(r-n,s.length),u=1;for(;u<a&&t[n+u]===s[u];)++u;let o=e.get(s);if(u===s.length)e=o;else{let c=new Map;c.set(s.slice(u),o),e.set(t.slice(n,n+u),c),e.delete(s),e=c}n+=u;continue e}let i=new Map;return e.set(t.slice(n),i),i}return e},KO=(e,t)=>{let[r,n]=Yo(e,t);if(r!==void 0){if(r.delete(nt),r.size===0)ub(n);else if(r.size===1){let[i,s]=r.entries().next().value;ob(n,i,s)}}},ub=e=>{if(e.length===0)return;let[t,r]=Jf(e);if(t.delete(r),t.size===0)ub(e.slice(0,-1));else if(t.size===1){let[n,i]=t.entries().next().value;n!==nt&&ob(e.slice(0,-1),n,i)}},ob=(e,t,r)=>{if(e.length===0)return;let[n,i]=Jf(e);n.set(i+t,r),n.delete(i)},Jf=e=>e[e.length-1];var ed="or",cb="and",WO="and_not",qa=class{constructor(t){if(t?.fields==null)throw new Error('MiniSearch: option "fields" must be provided');let r=t.autoVacuum==null||t.autoVacuum===!0?sd:t.autoVacuum;this._options=Fe(J(J({},rd),t),{autoVacuum:r,searchOptions:J(J({},lb),t.searchOptions||{}),autoSuggestOptions:J(J({},ZO),t.autoSuggestOptions||{})}),this._index=new Tr,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=id,this.addFields(this._options.fields)}add(t){let{extractField:r,tokenize:n,processTerm:i,fields:s,idField:a}=this._options,u=r(t,a);if(u==null)throw new Error(`MiniSearch: document does not have ID field "${a}"`);if(this._idToShortId.has(u))throw new Error(`MiniSearch: duplicate ID ${u}`);let o=this.addDocumentId(u);this.saveStoredFields(o,t);for(let c of s){let h=r(t,c);if(h==null)continue;let d=n(h.toString(),c),f=this._fieldIds[c],g=new Set(d).size;this.addFieldLength(o,f,this._documentCount-1,g);for(let y of d){let b=i(y,c);if(Array.isArray(b))for(let D of b)this.addTerm(f,o,D);else b&&this.addTerm(f,o,b)}}}addAll(t){for(let r of t)this.add(r)}addAllAsync(t,r={}){let{chunkSize:n=10}=r,i={chunk:[],promise:Promise.resolve()},{chunk:s,promise:a}=t.reduce(({chunk:u,promise:o},c,h)=>(u.push(c),(h+1)%n==0?{chunk:[],promise:o.then(()=>new Promise(d=>setTimeout(d,0))).then(()=>this.addAll(u))}:{chunk:u,promise:o}),i);return a.then(()=>this.addAll(s))}remove(t){let{tokenize:r,processTerm:n,extractField:i,fields:s,idField:a}=this._options,u=i(t,a);if(u==null)throw new Error(`MiniSearch: document does not have ID field "${a}"`);let o=this._idToShortId.get(u);if(o==null)throw new Error(`MiniSearch: cannot remove document with ID ${u}: it is not in the index`);for(let c of s){let h=i(t,c);if(h==null)continue;let d=r(h.toString(),c),f=this._fieldIds[c],g=new Set(d).size;this.removeFieldLength(o,f,this._documentCount,g);for(let y of d){let b=n(y,c);if(Array.isArray(b))for(let D of b)this.removeTerm(f,o,D);else b&&this.removeTerm(f,o,b)}}this._storedFields.delete(o),this._documentIds.delete(o),this._idToShortId.delete(u),this._fieldLength.delete(o),this._documentCount-=1}removeAll(t){if(t)for(let r of t)this.remove(r);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new Tr,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(t){let r=this._idToShortId.get(t);if(r==null)throw new Error(`MiniSearch: cannot discard document with ID ${t}: it is not in the index`);this._idToShortId.delete(t),this._documentIds.delete(r),this._storedFields.delete(r),(this._fieldLength.get(r)||[]).forEach((n,i)=>{this.removeFieldLength(r,i,this._documentCount,n)}),this._fieldLength.delete(r),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;let{minDirtFactor:t,minDirtCount:r,batchSize:n,batchWait:i}=this._options.autoVacuum;this.conditionalVacuum({batchSize:n,batchWait:i},{minDirtCount:r,minDirtFactor:t})}discardAll(t){let r=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(let n of t)this.discard(n)}finally{this._options.autoVacuum=r}this.maybeAutoVacuum()}replace(t){let{idField:r,extractField:n}=this._options,i=n(t,r);this.discard(i),this.add(t)}vacuum(t={}){return this.conditionalVacuum(t)}conditionalVacuum(t,r){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&r,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{let n=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=id,this.performVacuuming(t,n)}),this._enqueuedVacuum)):this.vacuumConditionsMet(r)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(t),this._currentVacuum)}async performVacuuming(t,r){let n=this._dirtCount;if(this.vacuumConditionsMet(r)){let i=t.batchSize||nd.batchSize,s=t.batchWait||nd.batchWait,a=1;for(let[u,o]of this._index){for(let[c,h]of o)for(let[d]of h)this._documentIds.has(d)||(h.size<=1?o.delete(c):h.delete(d));this._index.get(u).size===0&&this._index.delete(u),a%i==0&&await new Promise(c=>setTimeout(c,s)),a+=1}this._dirtCount-=n}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(t){if(t==null)return!0;let{minDirtCount:r,minDirtFactor:n}=t;return r=r||sd.minDirtCount,n=n||sd.minDirtFactor,this.dirtCount>=r&&this.dirtFactor>=n}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(t){return this._idToShortId.has(t)}getStoredFields(t){let r=this._idToShortId.get(t);if(r!=null)return this._storedFields.get(r)}search(t,r={}){let n=this.executeQuery(t,r),i=[];for(let[s,{score:a,terms:u,match:o}]of n){let c=u.length||1,h={id:this._documentIds.get(s),score:a*c,terms:Object.keys(o),queryTerms:u,match:o};Object.assign(h,this._storedFields.get(s)),(r.filter==null||r.filter(h))&&i.push(h)}return t===qa.wildcard&&r.boostDocument==null&&this._options.searchOptions.boostDocument==null||i.sort(db),i}autoSuggest(t,r={}){r=J(J({},this._options.autoSuggestOptions),r);let n=new Map;for(let{score:s,terms:a}of this.search(t,r)){let u=a.join(" "),o=n.get(u);o!=null?(o.score+=s,o.count+=1):n.set(u,{score:s,terms:a,count:1})}let i=[];for(let[s,{score:a,terms:u,count:o}]of n)i.push({suggestion:s,terms:u,score:a/o});return i.sort(db),i}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(t,r){if(r==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(t),r)}static async loadJSONAsync(t,r){if(r==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(t),r)}static getDefault(t){if(rd.hasOwnProperty(t))return td(rd,t);throw new Error(`MiniSearch: unknown option "${t}"`)}static loadJS(t,r){let{index:n,documentIds:i,fieldLength:s,storedFields:a,serializationVersion:u}=t,o=this.instantiateMiniSearch(t,r);o._documentIds=Qo(i),o._fieldLength=Qo(s),o._storedFields=Qo(a);for(let[c,h]of o._documentIds)o._idToShortId.set(h,c);for(let[c,h]of n){let d=new Map;for(let f of Object.keys(h)){let g=h[f];u===1&&(g=g.ds),d.set(parseInt(f,10),Qo(g))}o._index.set(c,d)}return o}static async loadJSAsync(t,r){let{index:n,documentIds:i,fieldLength:s,storedFields:a,serializationVersion:u}=t,o=this.instantiateMiniSearch(t,r);o._documentIds=await $o(i),o._fieldLength=await $o(s),o._storedFields=await $o(a);for(let[h,d]of o._documentIds)o._idToShortId.set(d,h);let c=0;for(let[h,d]of n){let f=new Map;for(let g of Object.keys(d)){let y=d[g];u===1&&(y=y.ds),f.set(parseInt(g,10),await $o(y))}++c%1e3==0&&await pb(0),o._index.set(h,f)}return o}static instantiateMiniSearch(t,r){let{documentCount:n,nextId:i,fieldIds:s,averageFieldLength:a,dirtCount:u,serializationVersion:o}=t;if(o!==1&&o!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");let c=new qa(r);return c._documentCount=n,c._nextId=i,c._idToShortId=new Map,c._fieldIds=s,c._avgFieldLength=a,c._dirtCount=u||0,c._index=new Tr,c}executeQuery(t,r={}){if(t===qa.wildcard)return this.executeWildcardQuery(r);if(typeof t!="string"){let f=Fe(J(J({},r),t),{queries:void 0}),g=t.queries.map(y=>this.executeQuery(y,f));return this.combineResults(g,f.combineWith)}let{tokenize:n,processTerm:i,searchOptions:s}=this._options,a=J(J({tokenize:n,processTerm:i},s),r),{tokenize:u,processTerm:o}=a,d=u(t).flatMap(f=>o(f)).filter(f=>!!f).map(XO(a)).map(f=>this.executeQuerySpec(f,a));return this.combineResults(d,a.combineWith)}executeQuerySpec(t,r){let n=J(J({},this._options.searchOptions),r),i=(n.fields||this._options.fields).reduce((b,D)=>Fe(J({},b),{[D]:td(n.boost,D)||1}),{}),{boostDocument:s,weights:a,maxFuzzy:u,bm25:o}=n,{fuzzy:c,prefix:h}=J(J({},lb.weights),a),d=this._index.get(t.term),f=this.termResults(t.term,t.term,1,d,i,s,o),g,y;if(t.prefix&&(g=this._index.atPrefix(t.term)),t.fuzzy){let b=t.fuzzy===!0?.2:t.fuzzy,D=b<1?Math.min(u,Math.round(t.term.length*b)):b;D&&(y=this._index.fuzzyGet(t.term,D))}if(g)for(let[b,D]of g){let m=b.length-t.term.length;if(!m)continue;y?.delete(b);let v=h*b.length/(b.length+.3*m);this.termResults(t.term,b,v,D,i,s,o,f)}if(y)for(let b of y.keys()){let[D,m]=y.get(b);if(!m)continue;let v=c*b.length/(b.length+m);this.termResults(t.term,b,v,D,i,s,o,f)}return f}executeWildcardQuery(t){let r=new Map,n=J(J({},this._options.searchOptions),t);for(let[i,s]of this._documentIds){let a=n.boostDocument?n.boostDocument(s,"",this._storedFields.get(i)):1;r.set(i,{score:a,terms:[],match:{}})}return r}combineResults(t,r=ed){if(t.length===0)return new Map;let n=r.toLowerCase(),i=YO[n];if(!i)throw new Error(`Invalid combination operator: ${r}`);return t.reduce(i)||new Map}toJSON(){let t=[];for(let[r,n]of this._index){let i={};for(let[s,a]of n)i[s]=Object.fromEntries(a);t.push([r,i])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:t,serializationVersion:2}}termResults(t,r,n,i,s,a,u,o=new Map){if(i==null)return o;for(let c of Object.keys(s)){let h=s[c],d=this._fieldIds[c],f=i.get(d);if(f==null)continue;let g=f.size,y=this._avgFieldLength[d];for(let b of f.keys()){if(!this._documentIds.has(b)){this.removeTerm(d,b,r),g-=1;continue}let D=a?a(this._documentIds.get(b),r,this._storedFields.get(b)):1;if(!D)continue;let m=f.get(b),v=this._fieldLength.get(b)[d],I=$O(m,g,this._documentCount,v,y,u),T=n*h*D*I,E=o.get(b);if(E){E.score+=T,JO(E.terms,t);let C=td(E.match,r);C?C.push(c):E.match[r]=[c]}else o.set(b,{score:T,terms:[t],match:{[r]:[c]}})}}return o}addTerm(t,r,n){let i=this._index.fetch(n,hb),s=i.get(t);if(s==null)s=new Map,s.set(r,1),i.set(t,s);else{let a=s.get(r);s.set(r,(a||0)+1)}}removeTerm(t,r,n){if(!this._index.has(n)){this.warnDocumentChanged(r,t,n);return}let i=this._index.fetch(n,hb),s=i.get(t);s==null||s.get(r)==null?this.warnDocumentChanged(r,t,n):s.get(r)<=1?s.size<=1?i.delete(t):s.delete(r):s.set(r,s.get(r)-1),this._index.get(n).size===0&&this._index.delete(n)}warnDocumentChanged(t,r,n){for(let i of Object.keys(this._fieldIds))if(this._fieldIds[i]===r){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(t)} has changed before removal: term "${n}" was not present in field "${i}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(t){let r=this._nextId;return this._idToShortId.set(t,r),this._documentIds.set(r,t),this._documentCount+=1,this._nextId+=1,r}addFields(t){for(let r=0;r<t.length;r++)this._fieldIds[t[r]]=r}addFieldLength(t,r,n,i){let s=this._fieldLength.get(t);s==null&&this._fieldLength.set(t,s=[]),s[r]=i;let u=(this._avgFieldLength[r]||0)*n+i;this._avgFieldLength[r]=u/(n+1)}removeFieldLength(t,r,n,i){if(n===1){this._avgFieldLength[r]=0;return}let s=this._avgFieldLength[r]*n-i;this._avgFieldLength[r]=s/(n-1)}saveStoredFields(t,r){let{storeFields:n,extractField:i}=this._options;if(n==null||n.length===0)return;let s=this._storedFields.get(t);s==null&&this._storedFields.set(t,s={});for(let a of n){let u=i(r,a);u!==void 0&&(s[a]=u)}}},bs=qa;bs.wildcard=Symbol("*");var td=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0,YO={[ed]:(e,t)=>{for(let r of t.keys()){let n=e.get(r);if(n==null)e.set(r,t.get(r));else{let{score:i,terms:s,match:a}=t.get(r);n.score=n.score+i,n.match=Object.assign(n.match,a),fb(n.terms,s)}}return e},[cb]:(e,t)=>{let r=new Map;for(let n of t.keys()){let i=e.get(n);if(i==null)continue;let{score:s,terms:a,match:u}=t.get(n);fb(i.terms,a),r.set(n,{score:i.score+s,terms:i.terms,match:Object.assign(i.match,u)})}return r},[WO]:(e,t)=>{for(let r of t.keys())e.delete(r);return e}},QO={k:1.2,b:.7,d:.5},$O=(e,t,r,n,i,s)=>{let{k:a,b:u,d:o}=s;return Math.log(1+(r-t+.5)/(t+.5))*(o+e*(a+1)/(e+a*(1-u+u*n/i)))},XO=e=>(t,r,n)=>{let i=typeof e.fuzzy=="function"?e.fuzzy(t,r,n):e.fuzzy||!1,s=typeof e.prefix=="function"?e.prefix(t,r,n):e.prefix===!0;return{term:t,fuzzy:i,prefix:s}},rd={idField:"id",extractField:(e,t)=>e[t],tokenize:e=>e.split(e2),processTerm:e=>e.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(e,t)=>{typeof console?.[e]=="function"&&console[e](t)},autoVacuum:!0},lb={combineWith:ed,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:QO},ZO={combineWith:cb,prefix:(e,t,r)=>t===r.length-1},nd={batchSize:1e3,batchWait:10},id={minDirtFactor:.1,minDirtCount:20},sd=J(J({},nd),id),JO=(e,t)=>{e.includes(t)||e.push(t)},fb=(e,t)=>{for(let r of t)e.includes(r)||e.push(r)},db=({score:e},{score:t})=>t-e,hb=()=>new Map,Qo=e=>{let t=new Map;for(let r of Object.keys(e))t.set(parseInt(r,10),e[r]);return t},$o=async e=>{let t=new Map,r=0;for(let n of Object.keys(e))t.set(parseInt(n,10),e[n]),++r%1e3==0&&await pb(0);return t},pb=e=>new Promise(t=>setTimeout(t,e)),e2=/[\n\r\p{Z}\p{P}]/u;Kt();var Oy=Xe(require("obsidian"));Aa();Or();Kt();var xy=Sy(),kh=class{constructor(t){this.plugin=t}tokenizeForIndexing(t){try{let r=this.tokenizeWords(t),n=[];if(this.plugin.settings.tokenizeUrls)try{n=xy(t)}catch(s){ve("Error extracting urls",s)}let i=this.tokenizeTokens(t,{skipChs:!0});return i=[...i,...i.flatMap(hl)],i=[...i,...i.flatMap(dl)],i=[...i,...r],n.length&&(i=[...i,...n]),i=[...new Set(i)],i}catch(r){return console.error("Error tokenizing text, skipping document",r),[]}}tokenizeForSearch(t){let r=xy(t);t=r.reduce((i,s)=>i.replace(s,""),t);let n=[...this.tokenizeTokens(t),...r].filter(Boolean);return{combineWith:"OR",queries:[{combineWith:"AND",queries:n},{combineWith:"AND",queries:this.tokenizeWords(t).filter(Boolean)},{combineWith:"AND",queries:n.flatMap(hl)},{combineWith:"AND",queries:n.flatMap(dl)}]}}tokenizeWords(t,{skipChs:r=!1}={}){let n=t.split(c0);return r?n:this.tokenizeChsWord(n)}tokenizeTokens(t,{skipChs:r=!1}={}){let n=t.split(sa);return r?n:this.tokenizeChsWord(n)}tokenizeChsWord(t){let r=this.plugin.getChsSegmenter();return r?t.flatMap(n=>a0.test(n)?r.cut(n,{search:!0}):[n]):t}};var Fh=class{constructor(t){this.plugin=t;this.indexedDocuments=new Map;this.tokenizer=new kh(t),this.minisearch=new bs(this.getOptions())}async loadCache(){let t=await this.plugin.database.getMinisearchCache();return t?(this.minisearch=await bs.loadJSAsync(t.data,this.getOptions()),this.indexedDocuments=new Map(t.paths.map(r=>[r.path,r.mtime])),!0):(console.log("Omnisearch - No cache found"),!1)}getDiff(t){let r=new Map(t.map(s=>[s.path,s.mtime])),n=t.filter(s=>!this.indexedDocuments.has(s.path)||this.indexedDocuments.get(s.path)!==s.mtime),i=[...this.indexedDocuments].filter(([s,a])=>!r.has(s)||r.get(s)!==a).map(s=>({path:s[0],mtime:s[1]}));return{toAdd:n,toRemove:i}}async addFromPaths(t){ve("Adding files",t);let r=(await Promise.all(t.map(async i=>await this.plugin.cacheManager.getDocument(i)))).filter(i=>!!i?.path);ve("Sorting documents to first index markdown"),r=Kl(r,i=>i.path.endsWith(".md")?0:1),this.removeFromPaths(r.filter(i=>this.indexedDocuments.has(i.path)).map(i=>i.path));let n=_0(r,500);for(let i of n){ve("Indexing into search engine",i),i.forEach(a=>this.indexedDocuments.set(a.path,a.mtime));let s=i.filter(a=>this.minisearch.has(a.path));this.removeFromPaths(s.map(a=>a.path)),await this.minisearch.addAllAsync(i)}}removeFromPaths(t){t.forEach(n=>this.indexedDocuments.delete(n));let r=t.filter(n=>this.minisearch.has(n));this.minisearch.discardAll(r)}async search(t,r){let n=this.plugin.settings;if(t.isEmpty())return[];ve("=== New search ==="),ve("Starting search for",t);let i;switch(n.fuzziness){case"0":i=0;break;case"1":i=.1;break;default:i=.2;break}let s=this.tokenizer.tokenizeForSearch(t.segmentsToStr());ve(JSON.stringify(s,null,1));let a=this.minisearch.search(s,{prefix:d=>d.length>=r.prefixLength,fuzzy:d=>d.length<=3?0:d.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:d=>[d]});if(ve("Found",a.length,"results"),t.query.ext?.length&&(a=a.filter(d=>{let f="."+d.id.split(".").pop();return t.query.ext?.some(g=>f.startsWith(g.startsWith(".")?g:"."+g))})),t.query.path&&(a=a.filter(d=>t.query.path?.some(f=>d.id.toLowerCase().includes(f.toLowerCase())))),t.query.exclude.path&&(a=a.filter(d=>!t.query.exclude.path?.some(f=>d.id.toLowerCase().includes(f.toLowerCase())))),!a.length)return[];if(r.singleFilePath)return a.filter(d=>d.id===r.singleFilePath);ve("searching with downranked folders",n.downrankedFoldersFilters),n.hideExcluded?a=a.filter(d=>!(this.plugin.app.metadataCache.isUserIgnored&&this.plugin.app.metadataCache.isUserIgnored(d.id))):a.forEach(d=>{this.plugin.app.metadataCache.isUserIgnored&&this.plugin.app.metadataCache.isUserIgnored(d.id)&&(d.score/=10)});let u=t.getTags();for(let d of a){let f=d.id;if(n.downrankedFoldersFilters.length>0){let y=!1;n.downrankedFoldersFilters.forEach(m=>{f.startsWith(m)&&(f===m||f.startsWith(m+"/"))&&(ve("searching with downranked folders in path: ",f),y=!0)}),y&&(d.score/=10);let b=f.split("/"),D=b.length;for(let m=0;m<D;m++){let v=b[m];if(n.downrankedFoldersFilters.includes(v)){d.score/=10;break}}}let g=this.plugin.app.metadataCache.getCache(f);if(g)for(let{name:y,weight:b}of n.weightCustomProperties){let D=g?.frontmatter?.[y];D&&d.terms.some(m=>D.includes(m))&&(ve(`Boosting field "${y}" x${b} for ${f}`),d.score*=b)}for(let y of u)(d.tags??[]).includes(y)&&(d.score*=100)}ve("Sorting and limiting results"),a=a.sort((d,f)=>f.score-d.score).slice(0,50),a.length&&ve("First result:",a[0]);let o=await Promise.all(a.map(async d=>await this.plugin.cacheManager.getDocument(d.id))),c=t.getExactTerms();c.length&&(ve("Filtering with quoted terms: ",c),a=a.filter(d=>{let f=o.find(b=>b.path===d.id),g=f?.path.toLowerCase()??"",y=(f?.cleanedContent??"").toLowerCase();return c.every(b=>y.includes(b)||Qr(g,this.plugin.settings.ignoreArabicDiacritics).includes(b))}));let h=t.query.exclude.text;return h.length&&(ve("Filtering with exclusions"),a=a.filter(d=>{let f=(o.find(g=>g.path===d.id)?.content??"").toLowerCase();return h.every(g=>!f.includes(g))})),ve("Deduping"),a=a.filter((d,f,g)=>g.findIndex(y=>y.id===d.id)===f),a}async getSuggestions(t,r){let n;this.plugin.settings.simpleSearch?n=await this.search(t,{prefixLength:3,singleFilePath:r?.singleFilePath}):n=await this.search(t,{prefixLength:1,singleFilePath:r?.singleFilePath});let i=await Promise.all(n.map(async a=>await this.plugin.cacheManager.getDocument(a.id)));return n.map(a=>{ve("Locating matches for",a.id);let u=i.find(d=>d.path===a.id);u||(console.warn(`Omnisearch - Note "${a.id}" not in the live cache`),u={content:"",basename:a.id,path:a.id});let o=[...a.terms,...t.getExactTerms(),...t.getTags()];ve("Matching tokens:",o),ve("Getting matches locations...");let c=this.plugin.textProcessor.getMatches(u.content,o,t);return ve(`Matches for ${u.basename}`,c),J({score:a.score,foundWords:o,matches:c},u)})}async writeToCache(){await this.plugin.database.writeMinisearchCache(this.minisearch,this.indexedDocuments)}getOptions(){return{tokenize:this.tokenizer.tokenizeForIndexing.bind(this.tokenizer),extractField:(t,r)=>{if(r==="directory"){let n=t.path.split("/");return n.pop(),n.join("/")}return t[r]},processTerm:t=>(this.plugin.settings.ignoreDiacritics?Qr(t,this.plugin.settings.ignoreArabicDiacritics):t).toLowerCase(),idField:"path",fields:["basename","directory","aliases","content","headings1","headings2","headings3"],storeFields:["tags"],logger(t,r,n){n==="version_conflict"&&new Oy.Notice("Omnisearch - Your index cache may be incorrect or corrupted. If this message keeps appearing, go to Settings to clear the cache.",5e3)}}}};var Ny=Xe(require("obsidian"));Kt();ca();var Bh=class{constructor(t){this.plugin=t;this.nextQueryIsEmpty=!1;this.documents=new Map}async addToLiveCache(t){try{let r=await this.getAndMapIndexedDocument(t);if(!r.path){console.error(`Missing .path field in IndexedDocument "${r.basename}", skipping`);return}this.documents.set(t,r)}catch(r){console.warn(`Omnisearch: Error while adding "${t}" to live cache`,r),this.removeFromLiveCache(t)}}removeFromLiveCache(t){this.documents.delete(t)}async getDocument(t){return this.documents.has(t)?this.documents.get(t):(ve("Generating IndexedDocument from",t),await this.addToLiveCache(t),this.documents.get(t))}async addToSearchHistory(t){if(!t){this.nextQueryIsEmpty=!0;return}this.nextQueryIsEmpty=!1;let r=this.plugin.database,n=await r.searchHistory.toArray();n=n.filter(i=>i.query!==t).reverse(),n.unshift({query:t}),n=n.slice(0,10),await r.searchHistory.clear(),await r.searchHistory.bulkAdd(n)}async getSearchHistory(){let t=(await this.plugin.database.searchHistory.toArray()).reverse().map(r=>r.query);return this.nextQueryIsEmpty&&t.unshift(""),t}async getAndMapIndexedDocument(t){let r=this.plugin.app,n=r.vault.getAbstractFileByPath(t);if(!n)throw new Error(`Invalid file path: "${t}"`);if(!(n instanceof Ny.TFile))throw new Error(`Not a TFile: "${t}"`);let i=null,s=this.plugin.getTextExtractor(),a=this.plugin.getAIImageAnalyzer();if(this.plugin.notesIndexer.isFilePlaintext(t))i=await r.vault.cachedRead(n);else if(ri(t)){let h=JSON.parse(await r.vault.cachedRead(n)),d=[];for(let f of h.nodes)f.type==="text"?d.push(f.text):f.type==="file"&&d.push(f.file);for(let f of h.edges.filter(g=>!!g.label))d.push(f.label);i=d.join(`\r
|
||
`)}else if(ua(t))try{let h=JSON.parse(await r.vault.cachedRead(n)),d=[],f=g=>{for(let y in g)typeof g[y]=="object"?f(g[y]):y==="content"&&d.push(g[y])};f(h),i=d.join(`\r
|
||
`)}catch(h){console.error("Omnisearch: Error while parsing Dataloom file",t),console.error(h)}else Tn(t)&&(this.plugin.settings.imagesIndexing&&s?.canFileBeExtracted(t)||this.plugin.settings.aiImageIndexing&&a?.canBeAnalyzed(n))?(this.plugin.settings.imagesIndexing&&s?.canFileBeExtracted(t)&&(i=await s.extractText(n)),this.plugin.settings.aiImageIndexing&&a?.canBeAnalyzed(n)&&(i=await a.analyzeImage(n)+(i??""))):bn(t)&&this.plugin.settings.PDFIndexing&&s?.canFileBeExtracted(t)?i=await s.extractText(n):m0(t)&&this.plugin.settings.officeIndexing&&s?.canFileBeExtracted(t)?i=await s.extractText(n):this.plugin.notesIndexer.isFilenameIndexable(t)&&(i=n.path);i==null&&(console.warn(`Omnisearch: ${i} content for file`,n.path),i="");let u=r.metadataCache.getFileCache(n);if(u){let h=v0(this.plugin.app,n,u);for(let d of h.filter(f=>!this.documents.has(f))){let f=this.plugin.notesIndexer.generateIndexableNonexistingDocument(d,n.path)}if(u.frontmatter?.["excalidraw-plugin"]){let d=u.sections?.filter(f=>f.type==="comment")??[];for(let{start:f,end:g}of d.map(y=>y.position))i=i.substring(0,f.offset-1)+i.substring(g.offset)}}let o=u?.frontmatter?.[this.plugin.settings.displayTitle]??"",c=p0(u);return{basename:n.basename,displayTitle:o,content:i,cleanedContent:d0(Qr(i)),path:n.path,mtime:n.stat.mtime,tags:c,unmarkedTags:c.map(h=>h.replace("#","")),aliases:h0(u).join(""),headings1:u?Mu(u,1).join(" "):"",headings2:u?Mu(u,2).join(" "):"",headings3:u?Mu(u,3).join(" "):""}}};Kt();ca();Kt();var jh=class{constructor(t){this.plugin=t;this.notesToReindex=new Set}flagNoteForReindex(t){this.notesToReindex.add(t)}async refreshIndex(){for(let r of this.notesToReindex)ve("Updating file",r.path),await this.plugin.cacheManager.addToLiveCache(r.path);let t=[...this.notesToReindex].map(r=>r.path);t.length&&(this.plugin.searchEngine.removeFromPaths(t),await this.plugin.searchEngine.addFromPaths(t),this.notesToReindex.clear())}isFileIndexable(t){return this.isFilenameIndexable(t)||this.isContentIndexable(t)}isContentIndexable(t){let r=this.plugin.settings,n=!!this.plugin.getTextExtractor(),i=!!this.plugin.getAIImageAnalyzer(),s=n&&r.PDFIndexing,a=n&&r.imagesIndexing,u=i&&r.aiImageIndexing;return this.isFilePlaintext(t)||ri(t)||ua(t)||s&&bn(t)||a&&Tn(t)||u&&Tn(t)}isFilenameIndexable(t){return this.canIndexUnsupportedFiles()||this.isFilePlaintext(t)||ri(t)||ua(t)}canIndexUnsupportedFiles(){return this.plugin.settings.unsupportedFilesIndexing==="yes"||this.plugin.settings.unsupportedFilesIndexing==="default"&&!!this.plugin.app.vault.getConfig("showUnsupportedFiles")}generateIndexableNonexistingDocument(t,r){return t=Tl(t),{path:t+(t.endsWith(".md")?"":".md"),basename:t,displayTitle:"",mtime:0,content:"",cleanedContent:"",tags:[],unmarkedTags:[],aliases:"",headings1:"",headings2:"",headings3:"",doesNotExist:!0,parent:r}}isFilePlaintext(t){return[...this.plugin.settings.indexedFileTypes,"md"].some(r=>t.endsWith(`.${r}`))}};Or();Kt();var wy=Xe(require("obsidian"));Aa();var Hh=class{constructor(t){this.plugin=t}highlightText(t,r){let n=`suggestion-highlight omnisearch-highlight ${this.plugin.settings.highlight?"omnisearch-default-highlight":""}`;if(!r.length)return t;try{let i=new RegExp(r.map(u=>{let o=On(u.match);return`\\b${o}\\b${/[a-zA-Z]/.test(u.match)?"":`|${o}`}`}).join("|"),"giu"),s=u=>r.find(c=>u.match(new RegExp(`\\b${On(c.match)}\\b${/[a-zA-Z]/.test(c.match)?"":`|${On(c.match)}`}`,"giu")))?`<span class="${n}">${u}</span>`:u,a=t.replace(i,s);if(a===t){let u=new RegExp(r.map(o=>On(o.match)).join("|"),"giu");a=t.replace(u,s)}return a}catch(i){return console.error("Omnisearch - Error in highlightText()",i),t}}escapeHTML(t){return t.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}stringsToRegex(t){if(!t.length)return/^$/g;t.sort((n,i)=>i.length-n.length);let r=`(${t.map(n=>`\\b${On(n)}\\b|${On(n)}`).join("|")})`;return new RegExp(`${r}`,"gui")}getMatches(t,r,n){let i=this.stringsToRegex(r),s=t;this.plugin.settings.ignoreDiacritics&&(t=Qr(t,this.plugin.settings.ignoreArabicDiacritics));let a=new Date().getTime(),u=null,o=[],c=0;for(;(u=i.exec(t))!==null;){if(++c>=100||new Date().getTime()-a>50){T0("Stopped getMatches at",c,"results");break}let h=u.index,d=h+u[0].length,f=s.substring(h,d).trim();f&&u.index>=0&&o.push({match:f,offset:u.index})}if(n&&(n.query.text.length>1||n.getExactTerms().length>0)){let h=t.indexOf(n.getBestStringForExcerpt());h>-1&&o.find(d=>d.offset===h)&&o.unshift({offset:h,match:n.getBestStringForExcerpt()})}return o}makeExcerpt(t,r){let n=this.plugin.settings;try{let i=r??-1,s=Math.max(0,i-u0),a=Math.min(t.length,i+na);if(i>-1?t=(s>0?"\u2026":"")+t.slice(s,a).trim()+(a<t.length-1?"\u2026":""):t=t.slice(0,na),n.renderLineReturnInExcerpts){let u=new RegExp(/(?:\r\n|\r|\n)/g);t=t.split(u).filter(c=>c).join(`
|
||
`);let o=t.lastIndexOf(`
|
||
`,i-s);o>0&&(t=t.slice(o))}return t=BM(t),n.renderLineReturnInExcerpts&&(t=t.trim().replaceAll(`
|
||
`,"<br>")),t}catch(i){return new wy.Notice("Omnisearch - Error while creating excerpt, see developer console"),console.error("Omnisearch - Error while creating excerpt"),console.error(i),""}}};function BM(e){return e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}var Uh=class extends Ri.Plugin{constructor(t,r){super(t,r);this.apiHttpServer=null;this.settings=go(this.app);this.database=new Wo(this);this.notesIndexer=new jh(this);this.textProcessor=new Hh(this);this.searchEngine=new Fh(this);this.cacheManager=new Bh(this)}async onload(){if(this.settings=await C_(this),this.addSettingTab(new Wl(this)),Ri.Platform.isMobile||Promise.resolve().then(()=>(ky(),My)).then(n=>this.apiHttpServer=n.getServer(this)),Yl(this.app)){console.log("Omnisearch - Plugin disabled");return}await HM(this.app),await this.database.clearOldDatabases(),lT(this);let t=this.settings;t.ribbonIcon&&this.addRibbonButton(),ce.disable("vault"),ce.disable("infile"),ce.on("global",Lu.ToggleExcerpts,()=>{ai.set(!t.showExcerpt)}),this.addCommand({id:"show-modal",name:"Vault search",callback:()=>{new Rn(this).open()}}),this.addCommand({id:"show-modal-infile",name:"In-file search",editorCallback:(n,i)=>{i.file&&new us(this,i.file).open()}});let r=this.searchEngine;this.app.workspace.onLayoutReady(async()=>{this.registerEvent(this.app.vault.on("create",n=>{this.notesIndexer.isFileIndexable(n.path)&&(ve("Indexing new file",n.path),r.addFromPaths([n.path]))})),this.registerEvent(this.app.vault.on("delete",n=>{ve("Removing file",n.path),this.cacheManager.removeFromLiveCache(n.path),r.removeFromPaths([n.path])})),this.registerEvent(this.app.vault.on("modify",async n=>{this.notesIndexer.isFileIndexable(n.path)&&this.notesIndexer.flagNoteForReindex(n)})),this.registerEvent(this.app.vault.on("rename",async(n,i)=>{this.notesIndexer.isFileIndexable(n.path)&&(ve("Renaming file",n.path),this.cacheManager.removeFromLiveCache(i),await this.cacheManager.addToLiveCache(n.path),r.removeFromPaths([i]),await r.addFromPaths([n.path]))})),this.refreshIndexCallback=this.notesIndexer.refreshIndex.bind(this.notesIndexer),addEventListener("blur",this.refreshIndexCallback),removeEventListener,await this.executeFirstLaunchTasks(),await this.populateIndex(),this.apiHttpServer&&t.httpApiEnabled&&this.apiHttpServer.listen(t.httpApiPort)})}async executeFirstLaunchTasks(){let t="1.21.0";this.settings.welcomeMessage=t,await this.saveData(this.settings)}async onunload(){delete globalThis.omnisearch,this.refreshIndexCallback&&removeEventListener("blur",this.refreshIndexCallback),await this.database.clearCache(),this.apiHttpServer.close()}addRibbonButton(){this.ribbonButton=this.addRibbonIcon("search","Omnisearch",t=>{new Rn(this).open()})}removeRibbonButton(){this.ribbonButton&&this.ribbonButton.parentNode?.removeChild(this.ribbonButton)}getChsSegmenter(){return this.app.plugins.plugins["cm-chs-patch"]}getTextExtractor(){return this.app.plugins?.plugins?.["text-extractor"]?.api}getAIImageAnalyzer(){return this.app.plugins?.plugins?.["ai-image-analyzer"]?.api}async populateIndex(){console.time("Omnisearch - Indexing total time"),gn.set(ir.ReadingFiles);let t=this.app.vault.getFiles().filter(i=>this.notesIndexer.isFileIndexable(i.path));console.log(`Omnisearch - ${t.length} files total`),console.log(`Omnisearch - Cache is ${Nn()?"enabled":"disabled"}`);let r=this.searchEngine;Nn()&&(console.time("Omnisearch - Loading index from cache"),gn.set(ir.LoadingCache),await r.loadCache()&&console.timeEnd("Omnisearch - Loading index from cache"));let n=r.getDiff(t.map(i=>({path:i.path,mtime:i.stat.mtime})));if(Nn()&&(n.toAdd.length&&console.log("Omnisearch - Total number of files to add/update: "+n.toAdd.length),n.toRemove.length&&console.log("Omnisearch - Total number of files to remove: "+n.toRemove.length)),n.toAdd.length>=1e3&&Nn()&&new Ri.Notice(`Omnisearch - ${n.toAdd.length} files need to be indexed. Obsidian may experience stutters and freezes during the process`,1e4),gn.set(ir.IndexingFiles),r.removeFromPaths(n.toRemove.map(i=>i.path)),await r.addFromPaths(n.toAdd.map(i=>i.path)),(n.toRemove.length||n.toAdd.length)&&Nn()){gn.set(ir.WritingCache);let i=this.settings.useCache;i&&!this.settings.DANGER_forceSaveCache&&(this.settings.useCache=!1,await pe(this)),await r.writeToCache(),i&&(this.settings.useCache=!0,await pe(this))}console.timeEnd("Omnisearch - Indexing total time"),n.toAdd.length>=1e3&&Nn()&&new Ri.Notice("Omnisearch - Your files have been indexed."),gn.set(ir.Done),oT()}};async function HM(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{}}
|