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

var ax=Object.create;var Xs=Object.defineProperty,ox=Object.defineProperties,ux=Object.getOwnPropertyDescriptor,cx=Object.getOwnPropertyDescriptors,lx=Object.getOwnPropertyNames,th=Object.getOwnPropertySymbols,fx=Object.getPrototypeOf,nh=Object.prototype.hasOwnProperty,dx=Object.prototype.propertyIsEnumerable;var Qu=(t,e,n)=>e in t?Xs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,B=(t,e)=>{for(var n in e||(e={}))nh.call(e,n)&&Qu(t,n,e[n]);if(th)for(var n of th(e))dx.call(e,n)&&Qu(t,n,e[n]);return t},ce=(t,e)=>ox(t,cx(e)),rh=t=>Xs(t,"__esModule",{value:!0});var x=(t,e)=>()=>(t&&(e=t(t=0)),e);var kn=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),It=(t,e)=>{rh(t);for(var n in e)Xs(t,n,{get:e[n],enumerable:!0})},hx=(t,e,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of lx(e))!nh.call(t,r)&&r!=="default"&&Xs(t,r,{get:()=>e[r],enumerable:!(n=ux(e,r))||n.enumerable});return t},_e=t=>hx(rh(Xs(t!=null?ax(fx(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var sh=(t,e,n)=>(Qu(t,typeof e!="symbol"?e+"":e,n),n);function Se(){}function px(t,e){for(let n in e)t[n]=e[n];return t}function Xu(t){return t()}function ih(){return Object.create(null)}function jt(t){t.forEach(Xu)}function on(t){return typeof t=="function"}function qe(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function Zu(t,e){return wa||(wa=document.createElement("a")),wa.href=e,t===wa.href}function ah(t){return Object.keys(t).length===0}function oh(t,...e){if(t==null)return Se;let n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Na(t,e,n){t.$$.on_destroy.push(oh(e,n))}function Hr(t,e,n,r){if(t){let s=uh(t,e,n,r);return t[0](s)}}function uh(t,e,n,r){return t[1]&&r?px(n.ctx.slice(),t[1](r(e))):n.ctx}function Ur(t,e,n,r){if(t[2]&&r){let s=t[2](r(n));if(e.dirty===void 0)return s;if(typeof s=="object"){let i=[],a=Math.max(e.dirty.length,s.length);for(let o=0;o<a;o+=1)i[o]=e.dirty[o]|s[o];return i}return e.dirty|s}return e.dirty}function zr(t,e,n,r,s,i){if(s){let a=uh(e,n,r,i);t.p(a,s)}}function Vr(t){if(t.ctx.length>32){let e=[],n=t.ctx.length/32;for(let r=0;r<n;r++)e[r]=-1;return e}return-1}function Zs(t){return t&&on(t.destroy)?t.destroy:Se}function mx(){lh=!0}function gx(){lh=!1}function j(t,e){t.appendChild(e)}function re(t,e,n){t.insertBefore(e,n||null)}function ne(t){t.parentNode&&t.parentNode.removeChild(t)}function Da(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function V(t){return document.createElement(t)}function We(t){return document.createTextNode(t)}function ie(){return We(" ")}function lr(){return We("")}function Ge(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function K(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function bx(t){return Array.from(t.childNodes)}function Xt(t,e){e=""+e,t.data!==e&&(t.data=e)}function Ju(t,e){t.value=e??""}function Et(t,e,n,r){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function ec(t,e,n){t.classList[n?"add":"remove"](e)}function _x(t,e,{bubbles:n=!1,cancelable:r=!1}={}){let s=document.createEvent("CustomEvent");return s.initCustomEvent(t,n,r,e),s}function ei(t){Js=t}function tc(){if(!Js)throw new Error("Function called outside component initialization");return Js}function fr(t){tc().$$.on_mount.push(t)}function ti(t){tc().$$.on_destroy.push(t)}function nc(){let t=tc();return(e,n,{cancelable:r=!1}={})=>{let s=t.$$.callbacks[e];if(s){let i=_x(e,n,{cancelable:r});return s.slice().forEach(a=>{a.call(t,i)}),!i.defaultPrevented}return!0}}function Tt(t,e){let n=t.$$.callbacks[e.type];n&&n.slice().forEach(r=>r.call(this,e))}function hh(){rc||(rc=!0,dh.then(ph))}function Ln(){return hh(),dh}function sc(t){Kr.push(t)}function ph(){if(Yr!==0)return;let t=Js;do{try{for(;Yr<qr.length;){let e=qr[Yr];Yr++,ei(e),Ex(e.$$)}}catch(e){throw qr.length=0,Yr=0,e}for(ei(null),qr.length=0,Yr=0;Rn.length;)Rn.pop()();for(let e=0;e<Kr.length;e+=1){let n=Kr[e];ic.has(n)||(ic.add(n),n())}Kr.length=0}while(qr.length);for(;fh.length;)fh.pop()();rc=!1,ic.clear(),ei(t)}function Ex(t){if(t.fragment!==null){t.update(),jt(t.before_update);let e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(sc)}}function Tx(t){let e=[],n=[];Kr.forEach(r=>t.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),Kr=e}function hr(){dr={r:0,c:[],p:dr}}function pr(){dr.r||jt(dr.c),dr=dr.p}function me(t,e){t&&t.i&&(Oa.delete(t),t.i(e))}function xe(t,e,n,r){if(t&&t.o){if(Oa.has(t))return;Oa.add(t),dr.c.push(()=>{Oa.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}else r&&r()}function pt(t){t&&t.c()}function ot(t,e,n,r){let{fragment:s,after_update:i}=t.$$;s&&s.m(e,n),r||sc(()=>{let a=t.$$.on_mount.map(Xu).filter(on);t.$$.on_destroy?t.$$.on_destroy.push(...a):jt(a),t.$$.on_mount=[]}),i.forEach(sc)}function Je(t,e){let n=t.$$;n.fragment!==null&&(Tx(n.after_update),jt(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function yx(t,e){t.$$.dirty[0]===-1&&(qr.push(t),hh(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function et(t,e,n,r,s,i,a,o=[-1]){let c=Js;ei(t);let l=t.$$={fragment:null,ctx:[],props:i,update:Se,not_equal:s,bound:ih(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:ih(),dirty:o,skip_bound:!1,root:e.target||c.$$.root};a&&a(l.root);let h=!1;if(l.ctx=n?n(t,e.props||{},(d,f,...p)=>{let E=p.length?p[0]:f;return l.ctx&&s(l.ctx[d],l.ctx[d]=E)&&(!l.skip_bound&&l.bound[d]&&l.bound[d](E),h&&yx(t,d)),f}):[],l.update(),h=!0,jt(l.before_update),l.fragment=r?r(l.ctx):!1,e.target){if(e.hydrate){mx();let d=bx(e.target);l.fragment&&l.fragment.l(d),d.forEach(ne)}else l.fragment&&l.fragment.c();e.intro&&me(t.$$.fragment),ot(t,e.target,e.anchor,e.customElement),gx(),ph()}ei(c)}var wa,ch,va,lh,Js,qr,Rn,Kr,fh,dh,rc,ic,Yr,Oa,dr,xx,wO,Ax,$e,wt=x(()=>{ch=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global,va=class{constructor(e){this.options=e,this._listeners="WeakMap"in ch?new WeakMap:void 0}observe(e,n){return this._listeners.set(e,n),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!==null&&e!==void 0?e:this._observer=new ResizeObserver(n=>{var r;for(let s of n)va.entries.set(s.target,s),(r=this._listeners.get(s.target))===null||r===void 0||r(s)})}};va.entries="WeakMap"in ch?new WeakMap:void 0;lh=!1;qr=[],Rn=[],Kr=[],fh=[],dh=Promise.resolve(),rc=!1;ic=new Set,Yr=0;Oa=new Set;xx=["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"],wO=new Set([...xx]);typeof HTMLElement=="function"&&(Ax=class extends HTMLElement{constructor(){super();this.attachShadow({mode:"open"})}connectedCallback(){let{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(Xu).filter(on);for(let e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){jt(this.$$.on_disconnect)}$destroy(){Je(this,1),this.$destroy=Se}$on(t,e){if(!on(e))return Se;let n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{let r=n.indexOf(e);r!==-1&&n.splice(r,1)}}$set(t){this.$$set&&!ah(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});$e=class{$destroy(){Je(this,1),this.$destroy=Se}$on(e,n){if(!on(n))return Se;let r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{let s=r.indexOf(n);s!==-1&&r.splice(s,1)}}$set(e){this.$$set&&!ah(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}});var ni=x(()=>{wt()});var ac,mh=x(()=>{ac=class{constructor(){this.handlers=new Map;this.disabled=[]}on(e,n,r){if(e.includes("@")||n.includes("@"))throw new Error("Invalid context/event name - Cannot contain @");this.handlers.set(`${e}@${n}`,r)}off(e,n){if(n)this.handlers.delete(`${e}@${n}`);else for(let[r]of this.handlers.entries())r.startsWith(`${e}@`)&&this.handlers.delete(r)}disable(e){this.enable(e),this.disabled.push(e)}enable(e){this.disabled=this.disabled.filter(n=>n!==e)}emit(e,...n){let r=[...this.handlers.entries()].filter(([s,i])=>!this.disabled.includes(s.split("@")[0]));for(let[s,i]of r)s.endsWith(`@${e}`)&&i(...n)}}});function ka(t,e=Se){let n,r=new Set;function s(o){if(qe(t,o)&&(t=o,n)){let c=!Wr.length;for(let l of r)l[1](),Wr.push(l,t);if(c){for(let l=0;l<Wr.length;l+=2)Wr[l][0](Wr[l+1]);Wr.length=0}}}function i(o){s(o(t))}function a(o,c=Se){let l=[o,c];return r.add(l),r.size===1&&(n=e(s)||Se),o(t),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:s,update:i,subscribe:a}}var Wr,oc=x(()=>{wt();wt();Wr=[]});function uc(t){_h=t}function cc(){return _h}var gh,bh,ri,si,ae,Ra,Nt,pe,Pn,_h,Cx,ii,Eh,Zt=x(()=>{mh();oc();gh=/[\u4e00-\u9fa5]/,bh=100,ri=300,si="omnisearch-disabled",ae=new ac,Ra={ToggleExcerpts:"toggle-excerpts"},Nt=(i=>(i[i.Done=0]="Done",i[i.LoadingCache=1]="LoadingCache",i[i.ReadingFiles=2]="ReadingFiles",i[i.IndexingFiles=3]="IndexingFiles",i[i.WritingCache=4]="WritingCache",i))(Nt||{}),pe=(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))(pe||{}),Pn=ka(0),_h=!1;Cx=/[|\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),ii=new RegExp(`${Cx}+`,"u"),Eh=/[|\[\]\(\)<>\{\} \t\n\r]/u});var Th=kn((ai,lc)=>{(function(t,e){if(typeof ai=="object"&&typeof lc=="object")lc.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var n=e();for(var r in n)(typeof ai=="object"?ai:t)[r]=n[r]}})(typeof self!="undefined"?self:ai,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var s=e[r]={i:r,l:!1,exports:{}};return t[r].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=t,n.c=e,n.d=function(r,s,i){n.o(r,s)||Object.defineProperty(r,s,{enumerable:!0,get:i})},n.r=function(r){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,s){if(1&s&&(r=n(r)),8&s||4&s&&typeof r=="object"&&r&&r.__esModule)return r;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:r}),2&s&&typeof r!="string")for(var a in r)n.d(i,a,function(o){return r[o]}.bind(null,a));return i},n.n=function(r){var s=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(s,"a",s),s},n.o=function(r,s){return Object.prototype.hasOwnProperty.call(r,s)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";n.r(e),n.d(e,"md5",function(){return T});var r="0123456789abcdef".split(""),s=function(w){for(var m="",I=0;I<4;I++)m+=r[w>>8*I+4&15]+r[w>>8*I&15];return m},i=function(w){for(var m=w.length,I=0;I<m;I++)w[I]=s(w[I]);return w.join("")},a=function(w,m){return w+m&4294967295},o=function(w,m,I,A,b,S,C){return function(N,O,L){return a(N<<O|N>>>32-O,L)}(m=function(N,O,L,z){return O=a(a(O,N),a(L,z))}(w,m,A,S),b,I)},c=function(w,m,I,A,b,S,C,N){return o(I&A|~I&b,m,I,S,C,N,w)},l=function(w,m,I,A,b,S,C,N){return o(I&b|A&~b,m,I,S,C,N,w)},h=function(w,m,I,A,b,S,C,N){return o(I^A^b,m,I,S,C,N,w)},d=function(w,m,I,A,b,S,C,N){return o(A^(I|~b),m,I,S,C,N,w)},f=function(w,m,I){I===void 0&&(I=a);var A=w[0],b=w[1],S=w[2],C=w[3],N=c.bind(null,I);A=N(A,b,S,C,m[0],7,-680876936),C=N(C,A,b,S,m[1],12,-389564586),S=N(S,C,A,b,m[2],17,606105819),b=N(b,S,C,A,m[3],22,-1044525330),A=N(A,b,S,C,m[4],7,-176418897),C=N(C,A,b,S,m[5],12,1200080426),S=N(S,C,A,b,m[6],17,-1473231341),b=N(b,S,C,A,m[7],22,-45705983),A=N(A,b,S,C,m[8],7,1770035416),C=N(C,A,b,S,m[9],12,-1958414417),S=N(S,C,A,b,m[10],17,-42063),b=N(b,S,C,A,m[11],22,-1990404162),A=N(A,b,S,C,m[12],7,1804603682),C=N(C,A,b,S,m[13],12,-40341101),S=N(S,C,A,b,m[14],17,-1502002290),b=N(b,S,C,A,m[15],22,1236535329);var O=l.bind(null,I);A=O(A,b,S,C,m[1],5,-165796510),C=O(C,A,b,S,m[6],9,-1069501632),S=O(S,C,A,b,m[11],14,643717713),b=O(b,S,C,A,m[0],20,-373897302),A=O(A,b,S,C,m[5],5,-701558691),C=O(C,A,b,S,m[10],9,38016083),S=O(S,C,A,b,m[15],14,-660478335),b=O(b,S,C,A,m[4],20,-405537848),A=O(A,b,S,C,m[9],5,568446438),C=O(C,A,b,S,m[14],9,-1019803690),S=O(S,C,A,b,m[3],14,-187363961),b=O(b,S,C,A,m[8],20,1163531501),A=O(A,b,S,C,m[13],5,-1444681467),C=O(C,A,b,S,m[2],9,-51403784),S=O(S,C,A,b,m[7],14,1735328473),b=O(b,S,C,A,m[12],20,-1926607734);var L=h.bind(null,I);A=L(A,b,S,C,m[5],4,-378558),C=L(C,A,b,S,m[8],11,-2022574463),S=L(S,C,A,b,m[11],16,1839030562),b=L(b,S,C,A,m[14],23,-35309556),A=L(A,b,S,C,m[1],4,-1530992060),C=L(C,A,b,S,m[4],11,1272893353),S=L(S,C,A,b,m[7],16,-155497632),b=L(b,S,C,A,m[10],23,-1094730640),A=L(A,b,S,C,m[13],4,681279174),C=L(C,A,b,S,m[0],11,-358537222),S=L(S,C,A,b,m[3],16,-722521979),b=L(b,S,C,A,m[6],23,76029189),A=L(A,b,S,C,m[9],4,-640364487),C=L(C,A,b,S,m[12],11,-421815835),S=L(S,C,A,b,m[15],16,530742520),b=L(b,S,C,A,m[2],23,-995338651);var z=d.bind(null,I);A=z(A,b,S,C,m[0],6,-198630844),C=z(C,A,b,S,m[7],10,1126891415),S=z(S,C,A,b,m[14],15,-1416354905),b=z(b,S,C,A,m[5],21,-57434055),A=z(A,b,S,C,m[12],6,1700485571),C=z(C,A,b,S,m[3],10,-1894986606),S=z(S,C,A,b,m[10],15,-1051523),b=z(b,S,C,A,m[1],21,-2054922799),A=z(A,b,S,C,m[8],6,1873313359),C=z(C,A,b,S,m[15],10,-30611744),S=z(S,C,A,b,m[6],15,-1560198380),b=z(b,S,C,A,m[13],21,1309151649),A=z(A,b,S,C,m[4],6,-145523070),C=z(C,A,b,S,m[11],10,-1120210379),S=z(S,C,A,b,m[2],15,718787259),b=z(b,S,C,A,m[9],21,-343485551),w[0]=I(A,w[0]),w[1]=I(b,w[1]),w[2]=I(S,w[2]),w[3]=I(C,w[3])},p=function(w){for(var m=[],I=0;I<64;I+=4)m[I>>2]=w.charCodeAt(I)+(w.charCodeAt(I+1)<<8)+(w.charCodeAt(I+2)<<16)+(w.charCodeAt(I+3)<<24);return m},E=function(w,m){var I,A=w.length,b=[1732584193,-271733879,-1732584194,271733878];for(I=64;I<=A;I+=64)f(b,p(w.substring(I-64,I)),m);var S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],C=(w=w.substring(I-64)).length;for(I=0;I<C;I++)S[I>>2]|=w.charCodeAt(I)<<(I%4<<3);if(S[I>>2]|=128<<(I%4<<3),I>55)for(f(b,S,m),I=16;I--;)S[I]=0;return S[14]=8*A,f(b,S,m),b};function T(w){var m;return i(E("hello"))!=="5d41402abc4b2a76b9719d911017c592"&&(m=function(I,A){var b=(65535&I)+(65535&A);return(I>>16)+(A>>16)+(b>>16)<<16|65535&b}),i(E(w,m))}}])})});function fc(t){let e=t.split("/");return e.pop(),e.join("/")}function dc(t){return new Promise(e=>{setTimeout(e,t)})}function La(t,e){return t.headings?.filter(n=>n.level===e).map(n=>n.heading)??[]}function Pa(t,e){return(t+e)%e}function xh(t){return t.replace(/(\*|_)+(.+?)(\*|_)+/g,(e,n,r)=>r)}function yh(t){return t?.frontmatter?(0,Gr.parseFrontMatterAliases)(t.frontmatter)??[]:[]}function Ah(t){let e=t?(0,Gr.getAllTags)(t)??[]:[];return e=[...new Set(e.reduce((n,r)=>[...n,...r.split("/").filter(s=>s).map(s=>s.startsWith("#")?s:`#${s}`),r],[]))],e}function un(t,e=!1){if(t==null)return"";let r=["\\u30FC","\\u309A","\\u3099"].join("|"),s=new RegExp(`(?!${r})\\p{Diacritic}`,"gu");if(e){t=t.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 i=0;i<10;i++)t.replace(String.fromCharCode(1632+i),String.fromCharCode(48+i))}return t=t.replaceAll("`","[__omnisearch__backtick__]"),t=t.replaceAll("^","[__omnisearch__caret__]"),t=t.normalize("NFD").replace(s,"").normalize("NFC"),t=t.replaceAll("[__omnisearch__backtick__]","`"),t=t.replaceAll("[__omnisearch__caret__]","^"),t}function Mn(){return Gr.Platform.isMacOS?"\u2318":"ctrl"}function Jt(t){let e=Fn(t);return e==="png"||e==="jpg"||e==="jpeg"||e==="webp"||e==="gif"}function en(t){return Fn(t)==="pdf"}function Ch(t){let e=Fn(t);return e==="docx"||e==="xlsx"}function cn(t){return t.endsWith(".canvas")}function Ma(t){return t.endsWith(".excalidraw")}function oi(t){return t.endsWith(".loom")}function Fn(t){let e=t.split(".");return e[e.length-1]??""}function Sh(t,e){let n=[],r=0,s=t.length;for(;r<s;)n.push(t.slice(r,r+=e));return n}function hc(t){return/[a-z][A-Z]/.test(t)?t.replace(/([a-z](?=[A-Z]))/g,"$1 ").split(" ").filter(n=>n):[]}function pc(t){return t.includes("-")?t.split("-").filter(e=>e):[]}function le(...t){wh(console.debug,...t)}function ln(...t){wh(console.warn,...t)}function mc(t){Ih=t}function wh(t,...e){Ih&&t(...e)}var Gr,Sx,Ix,Ih,ut=x(()=>{Gr=_e(require("obsidian"));Zt();Sx=_e(require("crypto")),Ix=_e(Th());Ih=!1});function wx(t){let e,n,r,s,i,a,o,c,l=t[9].default,h=Hr(l,t,t[8],null);return{c(){e=V("div"),n=V("div"),r=V("input"),i=ie(),h&&h.c(),K(r,"class","prompt-input"),K(r,"placeholder",t[0]),K(r,"spellcheck","false"),K(r,"type","text"),K(n,"class","omnisearch-input-field"),K(e,"class","omnisearch-input-container")},m(d,f){re(d,e,f),j(e,n),j(n,r),t[10](r),Ju(r,t[1]),j(e,i),h&&h.m(e,null),a=!0,o||(c=[Ge(r,"input",t[11]),Ge(r,"compositionend",t[12]),Ge(r,"compositionstart",t[13]),Ge(r,"input",t[4]),Zs(s=t[3].call(null,r))],o=!0)},p(d,[f]){(!a||f&1)&&K(r,"placeholder",d[0]),f&2&&r.value!==d[1]&&Ju(r,d[1]),h&&h.p&&(!a||f&256)&&zr(h,l,d,d[8],a?Ur(l,d[8],f,null):Vr(d[8]),null)},i(d){a||(me(h,d),a=!0)},o(d){xe(h,d),a=!1},d(d){d&&ne(e),t[10](null),h&&h.d(d),o=!1,jt(c)}}}function Nx(t,e,n){let{$$slots:r={},$$scope:s}=e,{initialValue:i=""}=e,{placeholder:a=""}=e,{plugin:o}=e,c=!1,l="",h,d=nc();function f(b){n(1,l=b)}function p(b){b&&!c&&!l&&(c=!0,n(1,l=b),E())}function E(b){Ln().then(async()=>(ui.Platform.isMobileApp&&await dc(200),h.focus(),Ln())).then(async()=>{ui.Platform.isMobileApp&&await dc(200),h.select()})}let T=(0,ui.debounce)(()=>{o.searchHistory.addToHistory(""),d("input",l)},300);function w(b){Rn[b?"unshift":"push"](()=>{h=b,n(2,h)})}function m(){l=this.value,n(1,l)}let I=b=>uc(!1),A=b=>uc(!0);return t.$$set=b=>{"initialValue"in b&&n(5,i=b.initialValue),"placeholder"in b&&n(0,a=b.placeholder),"plugin"in b&&n(6,o=b.plugin),"$$scope"in b&&n(8,s=b.$$scope)},t.$$.update=()=>{if(t.$$.dirty&32){e:p(i)}},[a,l,h,E,T,i,o,f,s,r,w,m,I,A]}var ui,Nh,Fa,gc=x(()=>{wt();ui=_e(require("obsidian"));Zt();ni();ut();Nh=class extends $e{constructor(e){super();et(this,e,Nx,wx,qe,{initialValue:5,placeholder:0,plugin:6,setInputValue:7})}get setInputValue(){return this.$$.ctx[7]}},Fa=Nh});function vx(t){let e,n,r,s,i=t[1].default,a=Hr(i,t,t[0],null);return{c(){e=V("div"),a&&a.c(),K(e,"class","prompt-results")},m(o,c){re(o,e,c),a&&a.m(e,null),n=!0,r||(s=Ge(e,"mousedown",Dx),r=!0)},p(o,[c]){a&&a.p&&(!n||c&1)&&zr(a,i,o,o[0],n?Ur(i,o[0],c,null):Vr(o[0]),null)},i(o){n||(me(a,o),n=!0)},o(o){xe(a,o),n=!1},d(o){o&&ne(e),a&&a.d(o),r=!1,s()}}}function Ox(t,e,n){let{$$slots:r={},$$scope:s}=e;return t.$$set=i=>{"$$scope"in i&&n(0,s=i.$$scope)},[s,r]}var Dx,vh,Ba,bc=x(()=>{wt();Dx=t=>t.preventDefault();vh=class extends $e{constructor(e){super();et(this,e,Ox,vx,qe,{})}},Ba=vh});async function ja(t,e,n=0,r=!1,s=!1){let i=!1;t.workspace.iterateAllLeaves(c=>{c.view instanceof _c.MarkdownView&&!r&&c.getViewState().state?.file===e.path&&c.getViewState()?.pinned&&(t.workspace.setActiveLeaf(c,{focus:!0}),i=!0)}),i||await t.workspace.openLinkText(e.path,"",s?"split":r);let a=t.workspace.getActiveViewOfType(_c.MarkdownView);if(!a)return;let o=a.editor.offsetToPos(n);a.editor.setCursor(o),a.editor.scrollIntoView({from:{line:o.line-10,ch:0},to:{line:o.line+10,ch:0}})}async function Dh(t,e,n=!1){try{let r;switch(t.vault.getConfig("newFileLocation")){case"current":r=(t.workspace.getActiveFile()?.parent?.path??"")+"/";break;case"folder":r=t.vault.getConfig("newFileFolderPath")+"/";break;default:r="";break}await t.workspace.openLinkText(`${r}${e}.md`,"",n)}catch(r){throw r.message="OmniSearch - Could not create note: "+r.message,console.error(r),r}}function Oh(t,e,n){return(n.links??[]).map(r=>{let s=Ec(r.link);return t.metadataCache.getFirstLinkpathDest(s,e.path)?"":r.link}).filter(r=>!!r)}function Ec(t){return t.split(/[\^#]+/)[0]}var _c,ci=x(()=>{_c=_e(require("obsidian"))});var kx,Ha,Tc=x(()=>{kx=typeof global=="object"&&global&&global.Object===Object&&global,Ha=kx});var Rx,Lx,je,Ht=x(()=>{Tc();Rx=typeof self=="object"&&self&&self.Object===Object&&self,Lx=Ha||Rx||Function("return this")(),je=Lx});var Px,ct,$r=x(()=>{Ht();Px=je.Symbol,ct=Px});function Bx(t){var e=Mx.call(t,li),n=t[li];try{t[li]=void 0;var r=!0}catch{}var s=Fx.call(t);return r&&(e?t[li]=n:delete t[li]),s}var kh,Mx,Fx,li,Rh,Lh=x(()=>{$r();kh=Object.prototype,Mx=kh.hasOwnProperty,Fx=kh.toString,li=ct?ct.toStringTag:void 0;Rh=Bx});function Ux(t){return Hx.call(t)}var jx,Hx,Ph,Mh=x(()=>{jx=Object.prototype,Hx=jx.toString;Ph=Ux});function qx(t){return t==null?t===void 0?Vx:zx:Fh&&Fh in Object(t)?Rh(t):Ph(t)}var zx,Vx,Fh,Ut,Qr=x(()=>{$r();Lh();Mh();zx="[object Null]",Vx="[object Undefined]",Fh=ct?ct.toStringTag:void 0;Ut=qx});function Kx(t){return t!=null&&typeof t=="object"}var zt,Xr=x(()=>{zt=Kx});function Wx(t){return typeof t=="symbol"||zt(t)&&Ut(t)==Yx}var Yx,Vt,Zr=x(()=>{Qr();Xr();Yx="[object Symbol]";Vt=Wx});function Gx(t,e){for(var n=-1,r=t==null?0:t.length,s=Array(r);++n<r;)s[n]=e(t[n],n,t);return s}var Jr,xc=x(()=>{Jr=Gx});var $x,Me,qt=x(()=>{$x=Array.isArray,Me=$x});function Hh(t){if(typeof t=="string")return t;if(Me(t))return Jr(t,Hh)+"";if(Vt(t))return jh?jh.call(t):"";var e=t+"";return e=="0"&&1/t==-Qx?"-0":e}var Qx,Bh,jh,Uh,zh=x(()=>{$r();xc();qt();Zr();Qx=1/0,Bh=ct?ct.prototype:void 0,jh=Bh?Bh.toString:void 0;Uh=Hh});function Zx(t){for(var e=t.length;e--&&Xx.test(t.charAt(e)););return e}var Xx,Vh,qh=x(()=>{Xx=/\s/;Vh=Zx});function ey(t){return t&&t.slice(0,Vh(t)+1).replace(Jx,"")}var Jx,Kh,Yh=x(()=>{qh();Jx=/^\s+/;Kh=ey});function ty(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var xt,mr=x(()=>{xt=ty});function ay(t){if(typeof t=="number")return t;if(Vt(t))return Wh;if(xt(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=xt(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Kh(t);var n=ry.test(t);return n||sy.test(t)?iy(t.slice(2),n?2:8):ny.test(t)?Wh:+t}var Wh,ny,ry,sy,iy,yc,Gh=x(()=>{Yh();mr();Zr();Wh=0/0,ny=/^[-+]0x[0-9a-f]+$/i,ry=/^0b[01]+$/i,sy=/^0o[0-7]+$/i,iy=parseInt;yc=ay});function oy(t){return t}var Bn,fi=x(()=>{Bn=oy});function dy(t){if(!xt(t))return!1;var e=Ut(t);return e==cy||e==ly||e==uy||e==fy}var uy,cy,ly,fy,Ua,Ac=x(()=>{Qr();mr();uy="[object AsyncFunction]",cy="[object Function]",ly="[object GeneratorFunction]",fy="[object Proxy]";Ua=dy});var hy,za,$h=x(()=>{Ht();hy=je["__core-js_shared__"],za=hy});function py(t){return!!Qh&&Qh in t}var Qh,Xh,Zh=x(()=>{$h();Qh=function(){var t=/[^.]+$/.exec(za&&za.keys&&za.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();Xh=py});function by(t){if(t!=null){try{return gy.call(t)}catch{}try{return t+""}catch{}}return""}var my,gy,fn,Cc=x(()=>{my=Function.prototype,gy=my.toString;fn=by});function Sy(t){if(!xt(t)||Xh(t))return!1;var e=Ua(t)?Cy:Ey;return e.test(fn(t))}var _y,Ey,Ty,xy,yy,Ay,Cy,Jh,e0=x(()=>{Ac();Zh();mr();Cc();_y=/[\\^$.*+?()[\]{}|]/g,Ey=/^\[object .+?Constructor\]$/,Ty=Function.prototype,xy=Object.prototype,yy=Ty.toString,Ay=xy.hasOwnProperty,Cy=RegExp("^"+yy.call(Ay).replace(_y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");Jh=Sy});function Iy(t,e){return t==null?void 0:t[e]}var t0,n0=x(()=>{t0=Iy});function wy(t,e){var n=t0(t,e);return Jh(n)?n:void 0}var mt,jn=x(()=>{e0();n0();mt=wy});var Ny,Va,r0=x(()=>{jn();Ht();Ny=mt(je,"WeakMap"),Va=Ny});function vy(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var s0,i0=x(()=>{s0=vy});function Ry(t){var e=0,n=0;return function(){var r=ky(),s=Oy-(r-n);if(n=r,s>0){if(++e>=Dy)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Dy,Oy,ky,a0,o0=x(()=>{Dy=800,Oy=16,ky=Date.now;a0=Ry});function Ly(t){return function(){return t}}var u0,c0=x(()=>{u0=Ly});var Py,Sc,l0=x(()=>{jn();Py=function(){try{var t=mt(Object,"defineProperty");return t({},"",{}),t}catch{}}(),Sc=Py});var My,f0,d0=x(()=>{c0();l0();fi();My=Sc?function(t,e){return Sc(t,"toString",{configurable:!0,enumerable:!1,value:u0(e),writable:!0})}:Bn,f0=My});var Fy,h0,p0=x(()=>{d0();o0();Fy=a0(f0),h0=Fy});function Hy(t,e){var n=typeof t;return e=e??By,!!e&&(n=="number"||n!="symbol"&&jy.test(t))&&t>-1&&t%1==0&&t<e}var By,jy,es,qa=x(()=>{By=9007199254740991,jy=/^(?:0|[1-9]\d*)$/;es=Hy});function Uy(t,e){return t===e||t!==t&&e!==e}var ts,Ka=x(()=>{ts=Uy});function zy(t,e,n){return e=m0(e===void 0?t.length-1:e,0),function(){for(var r=arguments,s=-1,i=m0(r.length-e,0),a=Array(i);++s<i;)a[s]=r[e+s];s=-1;for(var o=Array(e+1);++s<e;)o[s]=r[s];return o[e]=n(a),s0(t,this,o)}}var m0,g0,b0=x(()=>{i0();m0=Math.max;g0=zy});function Vy(t,e){return h0(g0(t,e,Bn),t+"")}var _0,E0=x(()=>{fi();b0();p0();_0=Vy});function Ky(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=qy}var qy,ns,Ya=x(()=>{qy=9007199254740991;ns=Ky});function Yy(t){return t!=null&&ns(t.length)&&!Ua(t)}var Hn,di=x(()=>{Ac();Ya();Hn=Yy});function Wy(t,e,n){if(!xt(n))return!1;var r=typeof e;return(r=="number"?Hn(n)&&es(e,n.length):r=="string"&&e in n)?ts(n[e],t):!1}var Ic,T0=x(()=>{Ka();di();qa();mr();Ic=Wy});function $y(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Gy;return t===n}var Gy,x0,y0=x(()=>{Gy=Object.prototype;x0=$y});function Qy(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var A0,C0=x(()=>{A0=Qy});function Zy(t){return zt(t)&&Ut(t)==Xy}var Xy,wc,S0=x(()=>{Qr();Xr();Xy="[object Arguments]";wc=Zy});var I0,Jy,eA,tA,rs,Wa=x(()=>{S0();Xr();I0=Object.prototype,Jy=I0.hasOwnProperty,eA=I0.propertyIsEnumerable,tA=wc(function(){return arguments}())?wc:function(t){return zt(t)&&Jy.call(t,"callee")&&!eA.call(t,"callee")},rs=tA});function nA(){return!1}var w0,N0=x(()=>{w0=nA});var v0,D0,rA,O0,sA,iA,hi,Nc=x(()=>{Ht();N0();v0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,D0=v0&&typeof module=="object"&&module&&!module.nodeType&&module,rA=D0&&D0.exports===v0,O0=rA?je.Buffer:void 0,sA=O0?O0.isBuffer:void 0,iA=sA||w0,hi=iA});function DA(t){return zt(t)&&ns(t.length)&&!!Ne[Ut(t)]}var aA,oA,uA,cA,lA,fA,dA,hA,pA,mA,gA,bA,_A,EA,TA,xA,yA,AA,CA,SA,IA,wA,NA,vA,Ne,k0,R0=x(()=>{Qr();Ya();Xr();aA="[object Arguments]",oA="[object Array]",uA="[object Boolean]",cA="[object Date]",lA="[object Error]",fA="[object Function]",dA="[object Map]",hA="[object Number]",pA="[object Object]",mA="[object RegExp]",gA="[object Set]",bA="[object String]",_A="[object WeakMap]",EA="[object ArrayBuffer]",TA="[object DataView]",xA="[object Float32Array]",yA="[object Float64Array]",AA="[object Int8Array]",CA="[object Int16Array]",SA="[object Int32Array]",IA="[object Uint8Array]",wA="[object Uint8ClampedArray]",NA="[object Uint16Array]",vA="[object Uint32Array]",Ne={};Ne[xA]=Ne[yA]=Ne[AA]=Ne[CA]=Ne[SA]=Ne[IA]=Ne[wA]=Ne[NA]=Ne[vA]=!0;Ne[aA]=Ne[oA]=Ne[EA]=Ne[uA]=Ne[TA]=Ne[cA]=Ne[lA]=Ne[fA]=Ne[dA]=Ne[hA]=Ne[pA]=Ne[mA]=Ne[gA]=Ne[bA]=Ne[_A]=!1;k0=DA});function OA(t){return function(e){return t(e)}}var Ga,vc=x(()=>{Ga=OA});var L0,pi,kA,Dc,RA,Oc,P0=x(()=>{Tc();L0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,pi=L0&&typeof module=="object"&&module&&!module.nodeType&&module,kA=pi&&pi.exports===L0,Dc=kA&&Ha.process,RA=function(){try{var t=pi&&pi.require&&pi.require("util").types;return t||Dc&&Dc.binding&&Dc.binding("util")}catch{}}(),Oc=RA});var M0,LA,$a,kc=x(()=>{R0();vc();P0();M0=Oc&&Oc.isTypedArray,LA=M0?Ga(M0):k0,$a=LA});function FA(t,e){var n=Me(t),r=!n&&rs(t),s=!n&&!r&&hi(t),i=!n&&!r&&!s&&$a(t),a=n||r||s||i,o=a?A0(t.length,String):[],c=o.length;for(var l in t)(e||MA.call(t,l))&&!(a&&(l=="length"||s&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||es(l,c)))&&o.push(l);return o}var PA,MA,F0,B0=x(()=>{C0();Wa();qt();Nc();qa();kc();PA=Object.prototype,MA=PA.hasOwnProperty;F0=FA});function BA(t,e){return function(n){return t(e(n))}}var j0,H0=x(()=>{j0=BA});var jA,U0,z0=x(()=>{H0();jA=j0(Object.keys,Object),U0=jA});function zA(t){if(!x0(t))return U0(t);var e=[];for(var n in Object(t))UA.call(t,n)&&n!="constructor"&&e.push(n);return e}var HA,UA,V0,q0=x(()=>{y0();z0();HA=Object.prototype,UA=HA.hasOwnProperty;V0=zA});function VA(t){return Hn(t)?F0(t):V0(t)}var ss,Qa=x(()=>{B0();q0();di();ss=VA});function YA(t,e){if(Me(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||Vt(t)?!0:KA.test(t)||!qA.test(t)||e!=null&&t in Object(e)}var qA,KA,is,Xa=x(()=>{qt();Zr();qA=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,KA=/^\w*$/;is=YA});var WA,dn,mi=x(()=>{jn();WA=mt(Object,"create"),dn=WA});function GA(){this.__data__=dn?dn(null):{},this.size=0}var K0,Y0=x(()=>{mi();K0=GA});function $A(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var W0,G0=x(()=>{W0=$A});function JA(t){var e=this.__data__;if(dn){var n=e[t];return n===QA?void 0:n}return ZA.call(e,t)?e[t]:void 0}var QA,XA,ZA,$0,Q0=x(()=>{mi();QA="__lodash_hash_undefined__",XA=Object.prototype,ZA=XA.hasOwnProperty;$0=JA});function n2(t){var e=this.__data__;return dn?e[t]!==void 0:t2.call(e,t)}var e2,t2,X0,Z0=x(()=>{mi();e2=Object.prototype,t2=e2.hasOwnProperty;X0=n2});function s2(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=dn&&e===void 0?r2:e,this}var r2,J0,ep=x(()=>{mi();r2="__lodash_hash_undefined__";J0=s2});function as(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var Rc,tp=x(()=>{Y0();G0();Q0();Z0();ep();as.prototype.clear=K0;as.prototype.delete=W0;as.prototype.get=$0;as.prototype.has=X0;as.prototype.set=J0;Rc=as});function i2(){this.__data__=[],this.size=0}var np,rp=x(()=>{np=i2});function a2(t,e){for(var n=t.length;n--;)if(ts(t[n][0],e))return n;return-1}var Un,gi=x(()=>{Ka();Un=a2});function c2(t){var e=this.__data__,n=Un(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():u2.call(e,n,1),--this.size,!0}var o2,u2,sp,ip=x(()=>{gi();o2=Array.prototype,u2=o2.splice;sp=c2});function l2(t){var e=this.__data__,n=Un(e,t);return n<0?void 0:e[n][1]}var ap,op=x(()=>{gi();ap=l2});function f2(t){return Un(this.__data__,t)>-1}var up,cp=x(()=>{gi();up=f2});function d2(t,e){var n=this.__data__,r=Un(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var lp,fp=x(()=>{gi();lp=d2});function os(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var zn,bi=x(()=>{rp();ip();op();cp();fp();os.prototype.clear=np;os.prototype.delete=sp;os.prototype.get=ap;os.prototype.has=up;os.prototype.set=lp;zn=os});var h2,Vn,Za=x(()=>{jn();Ht();h2=mt(je,"Map"),Vn=h2});function p2(){this.size=0,this.__data__={hash:new Rc,map:new(Vn||zn),string:new Rc}}var dp,hp=x(()=>{tp();bi();Za();dp=p2});function m2(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var pp,mp=x(()=>{pp=m2});function g2(t,e){var n=t.__data__;return pp(e)?n[typeof e=="string"?"string":"hash"]:n.map}var qn,_i=x(()=>{mp();qn=g2});function b2(t){var e=qn(this,t).delete(t);return this.size-=e?1:0,e}var gp,bp=x(()=>{_i();gp=b2});function _2(t){return qn(this,t).get(t)}var _p,Ep=x(()=>{_i();_p=_2});function E2(t){return qn(this,t).has(t)}var Tp,xp=x(()=>{_i();Tp=E2});function T2(t,e){var n=qn(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var yp,Ap=x(()=>{_i();yp=T2});function us(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var gr,Ja=x(()=>{hp();bp();Ep();xp();Ap();us.prototype.clear=dp;us.prototype.delete=gp;us.prototype.get=_p;us.prototype.has=Tp;us.prototype.set=yp;gr=us});function Lc(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(x2);var n=function(){var r=arguments,s=e?e.apply(this,r):r[0],i=n.cache;if(i.has(s))return i.get(s);var a=t.apply(this,r);return n.cache=i.set(s,a)||i,a};return n.cache=new(Lc.Cache||gr),n}var x2,Cp,Sp=x(()=>{Ja();x2="Expected a function";Lc.Cache=gr;Cp=Lc});function A2(t){var e=Cp(t,function(r){return n.size===y2&&n.clear(),r}),n=e.cache;return e}var y2,Ip,wp=x(()=>{Sp();y2=500;Ip=A2});var C2,S2,I2,Np,vp=x(()=>{wp();C2=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,S2=/\\(\\)?/g,I2=Ip(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(C2,function(n,r,s,i){e.push(s?i.replace(S2,"$1"):r||n)}),e}),Np=I2});function w2(t){return t==null?"":Uh(t)}var eo,Pc=x(()=>{zh();eo=w2});function N2(t,e){return Me(t)?t:is(t,e)?[t]:Np(eo(t))}var to,Mc=x(()=>{qt();Xa();vp();Pc();to=N2});function D2(t){if(typeof t=="string"||Vt(t))return t;var e=t+"";return e=="0"&&1/t==-v2?"-0":e}var v2,Kn,Ei=x(()=>{Zr();v2=1/0;Kn=D2});function O2(t,e){e=to(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[Kn(e[n++])];return n&&n==r?t:void 0}var cs,no=x(()=>{Mc();Ei();cs=O2});function k2(t,e,n){var r=t==null?void 0:cs(t,e);return r===void 0?n:r}var Dp,Op=x(()=>{no();Dp=k2});function R2(t,e){for(var n=-1,r=e.length,s=t.length;++n<r;)t[s+n]=e[n];return t}var ro,Fc=x(()=>{ro=R2});function L2(t){return Me(t)||rs(t)||!!(kp&&t&&t[kp])}var kp,Rp,Lp=x(()=>{$r();Wa();qt();kp=ct?ct.isConcatSpreadable:void 0;Rp=L2});function Pp(t,e,n,r,s){var i=-1,a=t.length;for(n||(n=Rp),s||(s=[]);++i<a;){var o=t[i];e>0&&n(o)?e>1?Pp(o,e-1,n,r,s):ro(s,o):r||(s[s.length]=o)}return s}var Mp,Fp=x(()=>{Fc();Lp();Mp=Pp});function P2(){this.__data__=new zn,this.size=0}var Bp,jp=x(()=>{bi();Bp=P2});function M2(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var Hp,Up=x(()=>{Hp=M2});function F2(t){return this.__data__.get(t)}var zp,Vp=x(()=>{zp=F2});function B2(t){return this.__data__.has(t)}var qp,Kp=x(()=>{qp=B2});function H2(t,e){var n=this.__data__;if(n instanceof zn){var r=n.__data__;if(!Vn||r.length<j2-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new gr(r)}return n.set(t,e),this.size=n.size,this}var j2,Yp,Wp=x(()=>{bi();Za();Ja();j2=200;Yp=H2});function ls(t){var e=this.__data__=new zn(t);this.size=e.size}var fs,Bc=x(()=>{bi();jp();Up();Vp();Kp();Wp();ls.prototype.clear=Bp;ls.prototype.delete=Hp;ls.prototype.get=zp;ls.prototype.has=qp;ls.prototype.set=Yp;fs=ls});function U2(t,e){for(var n=-1,r=t==null?0:t.length,s=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[s++]=a)}return i}var Gp,$p=x(()=>{Gp=U2});function z2(){return[]}var Qp,Xp=x(()=>{Qp=z2});var V2,q2,Zp,K2,Jp,em=x(()=>{$p();Xp();V2=Object.prototype,q2=V2.propertyIsEnumerable,Zp=Object.getOwnPropertySymbols,K2=Zp?function(t){return t==null?[]:(t=Object(t),Gp(Zp(t),function(e){return q2.call(t,e)}))}:Qp,Jp=K2});function Y2(t,e,n){var r=e(t);return Me(t)?r:ro(r,n(t))}var tm,nm=x(()=>{Fc();qt();tm=Y2});function W2(t){return tm(t,ss,Jp)}var jc,rm=x(()=>{nm();em();Qa();jc=W2});var G2,so,sm=x(()=>{jn();Ht();G2=mt(je,"DataView"),so=G2});var $2,io,im=x(()=>{jn();Ht();$2=mt(je,"Promise"),io=$2});var Q2,ao,am=x(()=>{jn();Ht();Q2=mt(je,"Set"),ao=Q2});var om,X2,um,cm,lm,fm,Z2,J2,eC,tC,nC,br,Hc,dm=x(()=>{sm();Za();im();am();r0();Qr();Cc();om="[object Map]",X2="[object Object]",um="[object Promise]",cm="[object Set]",lm="[object WeakMap]",fm="[object DataView]",Z2=fn(so),J2=fn(Vn),eC=fn(io),tC=fn(ao),nC=fn(Va),br=Ut;(so&&br(new so(new ArrayBuffer(1)))!=fm||Vn&&br(new Vn)!=om||io&&br(io.resolve())!=um||ao&&br(new ao)!=cm||Va&&br(new Va)!=lm)&&(br=function(t){var e=Ut(t),n=e==X2?t.constructor:void 0,r=n?fn(n):"";if(r)switch(r){case Z2:return fm;case J2:return om;case eC:return um;case tC:return cm;case nC:return lm}return e});Hc=br});var rC,Uc,hm=x(()=>{Ht();rC=je.Uint8Array,Uc=rC});function iC(t){return this.__data__.set(t,sC),this}var sC,pm,mm=x(()=>{sC="__lodash_hash_undefined__";pm=iC});function aC(t){return this.__data__.has(t)}var gm,bm=x(()=>{gm=aC});function oo(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new gr;++e<n;)this.add(t[e])}var _m,Em=x(()=>{Ja();mm();bm();oo.prototype.add=oo.prototype.push=pm;oo.prototype.has=gm;_m=oo});function oC(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var Tm,xm=x(()=>{Tm=oC});function uC(t,e){return t.has(e)}var ym,Am=x(()=>{ym=uC});function fC(t,e,n,r,s,i){var a=n&cC,o=t.length,c=e.length;if(o!=c&&!(a&&c>o))return!1;var l=i.get(t),h=i.get(e);if(l&&h)return l==e&&h==t;var d=-1,f=!0,p=n&lC?new _m:void 0;for(i.set(t,e),i.set(e,t);++d<o;){var E=t[d],T=e[d];if(r)var w=a?r(T,E,d,e,t,i):r(E,T,d,t,e,i);if(w!==void 0){if(w)continue;f=!1;break}if(p){if(!Tm(e,function(m,I){if(!ym(p,I)&&(E===m||s(E,m,n,r,i)))return p.push(I)})){f=!1;break}}else if(!(E===T||s(E,T,n,r,i))){f=!1;break}}return i.delete(t),i.delete(e),f}var cC,lC,uo,zc=x(()=>{Em();xm();Am();cC=1,lC=2;uo=fC});function dC(t){var e=-1,n=Array(t.size);return t.forEach(function(r,s){n[++e]=[s,r]}),n}var Cm,Sm=x(()=>{Cm=dC});function hC(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var Im,wm=x(()=>{Im=hC});function wC(t,e,n,r,s,i,a){switch(n){case IC:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case SC:return!(t.byteLength!=e.byteLength||!i(new Uc(t),new Uc(e)));case gC:case bC:case TC:return ts(+t,+e);case _C:return t.name==e.name&&t.message==e.message;case xC:case AC:return t==e+"";case EC:var o=Cm;case yC:var c=r&pC;if(o||(o=Im),t.size!=e.size&&!c)return!1;var l=a.get(t);if(l)return l==e;r|=mC,a.set(t,e);var h=uo(o(t),o(e),r,s,i,a);return a.delete(t),h;case CC:if(Vc)return Vc.call(t)==Vc.call(e)}return!1}var pC,mC,gC,bC,_C,EC,TC,xC,yC,AC,CC,SC,IC,Nm,Vc,vm,Dm=x(()=>{$r();hm();Ka();zc();Sm();wm();pC=1,mC=2,gC="[object Boolean]",bC="[object Date]",_C="[object Error]",EC="[object Map]",TC="[object Number]",xC="[object RegExp]",yC="[object Set]",AC="[object String]",CC="[object Symbol]",SC="[object ArrayBuffer]",IC="[object DataView]",Nm=ct?ct.prototype:void 0,Vc=Nm?Nm.valueOf:void 0;vm=wC});function OC(t,e,n,r,s,i){var a=n&NC,o=jc(t),c=o.length,l=jc(e),h=l.length;if(c!=h&&!a)return!1;for(var d=c;d--;){var f=o[d];if(!(a?f in e:DC.call(e,f)))return!1}var p=i.get(t),E=i.get(e);if(p&&E)return p==e&&E==t;var T=!0;i.set(t,e),i.set(e,t);for(var w=a;++d<c;){f=o[d];var m=t[f],I=e[f];if(r)var A=a?r(I,m,f,e,t,i):r(m,I,f,t,e,i);if(!(A===void 0?m===I||s(m,I,n,r,i):A)){T=!1;break}w||(w=f=="constructor")}if(T&&!w){var b=t.constructor,S=e.constructor;b!=S&&"constructor"in t&&"constructor"in e&&!(typeof b=="function"&&b instanceof b&&typeof S=="function"&&S instanceof S)&&(T=!1)}return i.delete(t),i.delete(e),T}var NC,vC,DC,Om,km=x(()=>{rm();NC=1,vC=Object.prototype,DC=vC.hasOwnProperty;Om=OC});function LC(t,e,n,r,s,i){var a=Me(t),o=Me(e),c=a?Lm:Hc(t),l=o?Lm:Hc(e);c=c==Rm?co:c,l=l==Rm?co:l;var h=c==co,d=l==co,f=c==l;if(f&&hi(t)){if(!hi(e))return!1;a=!0,h=!1}if(f&&!h)return i||(i=new fs),a||$a(t)?uo(t,e,n,r,s,i):vm(t,e,c,n,r,s,i);if(!(n&kC)){var p=h&&Pm.call(t,"__wrapped__"),E=d&&Pm.call(e,"__wrapped__");if(p||E){var T=p?t.value():t,w=E?e.value():e;return i||(i=new fs),s(T,w,n,r,i)}}return f?(i||(i=new fs),Om(t,e,n,r,s,i)):!1}var kC,Rm,Lm,co,RC,Pm,Mm,Fm=x(()=>{Bc();zc();Dm();km();dm();qt();Nc();kc();kC=1,Rm="[object Arguments]",Lm="[object Array]",co="[object Object]",RC=Object.prototype,Pm=RC.hasOwnProperty;Mm=LC});function Bm(t,e,n,r,s){return t===e?!0:t==null||e==null||!zt(t)&&!zt(e)?t!==t&&e!==e:Mm(t,e,n,r,Bm,s)}var lo,qc=x(()=>{Fm();Xr();lo=Bm});function FC(t,e,n,r){var s=n.length,i=s,a=!r;if(t==null)return!i;for(t=Object(t);s--;){var o=n[s];if(a&&o[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1}for(;++s<i;){o=n[s];var c=o[0],l=t[c],h=o[1];if(a&&o[2]){if(l===void 0&&!(c in t))return!1}else{var d=new fs;if(r)var f=r(l,h,c,t,e,d);if(!(f===void 0?lo(h,l,PC|MC,r,d):f))return!1}}return!0}var PC,MC,jm,Hm=x(()=>{Bc();qc();PC=1,MC=2;jm=FC});function BC(t){return t===t&&!xt(t)}var fo,Kc=x(()=>{mr();fo=BC});function jC(t){for(var e=ss(t),n=e.length;n--;){var r=e[n],s=t[r];e[n]=[r,s,fo(s)]}return e}var Um,zm=x(()=>{Kc();Qa();Um=jC});function HC(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}var ho,Yc=x(()=>{ho=HC});function UC(t){var e=Um(t);return e.length==1&&e[0][2]?ho(e[0][0],e[0][1]):function(n){return n===t||jm(n,t,e)}}var Vm,qm=x(()=>{Hm();zm();Yc();Vm=UC});function zC(t,e){return t!=null&&e in Object(t)}var Km,Ym=x(()=>{Km=zC});function VC(t,e,n){e=to(e,t);for(var r=-1,s=e.length,i=!1;++r<s;){var a=Kn(e[r]);if(!(i=t!=null&&n(t,a)))break;t=t[a]}return i||++r!=s?i:(s=t==null?0:t.length,!!s&&ns(s)&&es(a,s)&&(Me(t)||rs(t)))}var Wm,Gm=x(()=>{Mc();Wa();qt();qa();Ya();Ei();Wm=VC});function qC(t,e){return t!=null&&Wm(t,e,Km)}var $m,Qm=x(()=>{Ym();Gm();$m=qC});function WC(t,e){return is(t)&&fo(e)?ho(Kn(t),e):function(n){var r=Dp(n,t);return r===void 0&&r===e?$m(n,t):lo(e,r,KC|YC)}}var KC,YC,Xm,Zm=x(()=>{qc();Op();Qm();Xa();Kc();Yc();Ei();KC=1,YC=2;Xm=WC});function GC(t){return function(e){return e==null?void 0:e[t]}}var Jm,eg=x(()=>{Jm=GC});function $C(t){return function(e){return cs(e,t)}}var tg,ng=x(()=>{no();tg=$C});function QC(t){return is(t)?Jm(Kn(t)):tg(t)}var rg,sg=x(()=>{eg();ng();Xa();Ei();rg=QC});function XC(t){return typeof t=="function"?t:t==null?Bn:typeof t=="object"?Me(t)?Xm(t[0],t[1]):Vm(t):rg(t)}var ig,ag=x(()=>{qm();Zm();fi();qt();sg();ig=XC});function ZC(t){return function(e,n,r){for(var s=-1,i=Object(e),a=r(e),o=a.length;o--;){var c=a[t?o:++s];if(n(i[c],c,i)===!1)break}return e}}var og,ug=x(()=>{og=ZC});var JC,cg,lg=x(()=>{ug();JC=og(),cg=JC});function eS(t,e){return t&&cg(t,e,ss)}var fg,dg=x(()=>{lg();Qa();fg=eS});function tS(t,e){return function(n,r){if(n==null)return n;if(!Hn(n))return t(n,r);for(var s=n.length,i=e?s:-1,a=Object(n);(e?i--:++i<s)&&r(a[i],i,a)!==!1;);return n}}var hg,pg=x(()=>{di();hg=tS});var nS,mg,gg=x(()=>{dg();pg();nS=hg(fg),mg=nS});var rS,po,bg=x(()=>{Ht();rS=function(){return je.Date.now()},po=rS});function oS(t,e,n){var r,s,i,a,o,c,l=0,h=!1,d=!1,f=!0;if(typeof t!="function")throw new TypeError(sS);e=yc(e)||0,xt(n)&&(h=!!n.leading,d="maxWait"in n,i=d?iS(yc(n.maxWait)||0,e):i,f="trailing"in n?!!n.trailing:f);function p(C){var N=r,O=s;return r=s=void 0,l=C,a=t.apply(O,N),a}function E(C){return l=C,o=setTimeout(m,e),h?p(C):a}function T(C){var N=C-c,O=C-l,L=e-N;return d?aS(L,i-O):L}function w(C){var N=C-c,O=C-l;return c===void 0||N>=e||N<0||d&&O>=i}function m(){var C=po();if(w(C))return I(C);o=setTimeout(m,T(C))}function I(C){return o=void 0,f&&r?p(C):(r=s=void 0,a)}function A(){o!==void 0&&clearTimeout(o),l=0,r=c=s=o=void 0}function b(){return o===void 0?a:I(po())}function S(){var C=po(),N=w(C);if(r=arguments,s=this,c=C,N){if(o===void 0)return E(c);if(d)return clearTimeout(o),o=setTimeout(m,e),p(c)}return o===void 0&&(o=setTimeout(m,e)),a}return S.cancel=A,S.flush=b,S}var sS,iS,aS,Ti,_g=x(()=>{mr();bg();Gh();sS="Expected a function",iS=Math.max,aS=Math.min;Ti=oS});function cS(t){return t=eo(t),t&&uS.test(t)?t.replace(Eg,"\\$&"):t}var Eg,uS,Yn,Tg=x(()=>{Pc();Eg=/[\\^$.*+?()[\]{}|]/g,uS=RegExp(Eg.source);Yn=cS});function lS(t,e){var n=-1,r=Hn(t)?Array(t.length):[];return mg(t,function(s,i,a){r[++n]=e(s,i,a)}),r}var xg,yg=x(()=>{gg();di();xg=lS});function fS(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}var Ag,Cg=x(()=>{Ag=fS});function dS(t,e){if(t!==e){var n=t!==void 0,r=t===null,s=t===t,i=Vt(t),a=e!==void 0,o=e===null,c=e===e,l=Vt(e);if(!o&&!l&&!i&&t>e||i&&a&&c&&!o&&!l||r&&a&&c||!n&&c||!s)return 1;if(!r&&!i&&!l&&t<e||l&&n&&s&&!r&&!i||o&&n&&s||!a&&s||!c)return-1}return 0}var Sg,Ig=x(()=>{Zr();Sg=dS});function hS(t,e,n){for(var r=-1,s=t.criteria,i=e.criteria,a=s.length,o=n.length;++r<a;){var c=Sg(s[r],i[r]);if(c){if(r>=o)return c;var l=n[r];return c*(l=="desc"?-1:1)}}return t.index-e.index}var wg,Ng=x(()=>{Ig();wg=hS});function pS(t,e,n){e.length?e=Jr(e,function(i){return Me(i)?function(a){return cs(a,i.length===1?i[0]:i)}:i}):e=[Bn];var r=-1;e=Jr(e,Ga(ig));var s=xg(t,function(i,a,o){var c=Jr(e,function(l){return l(i)});return{criteria:c,index:++r,value:i}});return Ag(s,function(i,a){return wg(i,a,n)})}var vg,Dg=x(()=>{xc();no();ag();yg();Cg();vc();Ng();fi();qt();vg=pS});var mS,Wc,Og=x(()=>{Fp();Dg();E0();T0();mS=_0(function(t,e){if(t==null)return[];var n=e.length;return n>1&&Ic(t,e[0],e[1])?e=[]:n>2&&Ic(e[0],e[1],e[2])&&(e=[e[0]]),vg(t,Mp(e,1),[])}),Wc=mS});var xi=x(()=>{_g();Tg();Og();});function go(t){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:t.vault.getConfig("vimMode"),ribbonIcon:!0,showExcerpt:!0,maxEmbeds:5,renderLineReturnInExcerpts:!0,showCreateButton:!1,highlight:!0,showPreviousQueryResults:!0,simpleSearch:!1,tokenizeUrls:!1,fuzziness:"1",weightBasename:10,weightDirectory:7,weightH1:6,weightH2:5,weightH3:4,weightUnmarkedTags:2,weightCustomProperties:[],httpApiEnabled:!1,httpApiPort:"51361",httpApiNotice:!0,welcomeMessage:"",verboseLogging:!1,DANGER_httpHost:null,DANGER_forceSaveCache:!1}}function yt(t){let e=new DocumentFragment;return e.createSpan({},n=>{n.innerHTML=t}),e}async function kg(t){return U=Object.assign({},go(t.app),await t.loadData()),_r.set(U.showExcerpt),mc(U.verboseLogging),U}async function ue(t){await t.saveData(U)}function $c(t){return t.loadLocalStorage(si)==="1"}function Wn(){return!G.Platform.isIosApp&&U.useCache}var G,_r,mo,Gc,U,Qc=x(()=>{G=_e(require("obsidian"));oc();Zt();ut();xi();_r=ka(!1),mo='<strong style="color: var(--text-accent)">Needs a restart to fully take effect.</strong>',Gc=class extends G.PluginSettingTab{constructor(e){super(e.app,e);this.plugin=e,_r.subscribe(async n=>{U.showExcerpt=n,await ue(this.plugin)})}display(){let{containerEl:e}=this,n=this.plugin.database,r=this.plugin.getTextExtractor(),s=Ti(async()=>{await n.clearCache()},1e3),i=this.plugin.getAIImageAnalyzer();if(e.empty(),this.app.loadLocalStorage(si)=="1"){let d=e.createEl("span");d.innerHTML='<strong style="color: var(--text-accent)">\u26A0\uFE0F OMNISEARCH IS DISABLED \u26A0\uFE0F</strong>'}e.createEl("h1",{text:"Omnisearch"});let a=e.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 G.Setting(e).setName("Indexing").setHeading().setDesc(yt(`\u26A0\uFE0F <span style="color: var(--text-accent)">Changing indexing settings will clear the cache, and requires a restart of Obsidian.</span><br/><br/>
        ${r?`\u{1F44D} You have installed <a href="https://github.com/scambier/obsidian-text-extractor">Text Extractor</a>, Omnisearch can use it to index PDFs and images contents.
            <br />Text extraction only works on desktop, but the cache can be synchronized with your mobile device.`:'\u26A0\uFE0F Omnisearch requires <a href="https://github.com/scambier/obsidian-text-extractor">Text Extractor</a> to index PDFs and images.'}
        ${i?'<br/>\u{1F44D} You have installed <a href="https://github.com/Swaggeroo/obsidian-ai-image-analyzer">AI Image Analyzer</a>, Omnisearch can use it to index images contents with ai.':'<br/>\u26A0\uFE0F Omnisearch requires <a href="https://github.com/Swaggeroo/obsidian-ai-image-analyzer">AI Image Analyzer</a> to index images with ai.'}`)),new G.Setting(e).setName(`PDFs content indexing ${r?"":"\u26A0\uFE0F Disabled"}`).setDesc(yt("Omnisearch will use Text Extractor to index the content of your PDFs.")).addToggle(d=>d.setValue(U.PDFIndexing).onChange(async f=>{await n.clearCache(),U.PDFIndexing=f,await ue(this.plugin)})).setDisabled(!r),new G.Setting(e).setName(`Images OCR indexing ${r?"":"\u26A0\uFE0F Disabled"}`).setDesc(yt("Omnisearch will use Text Extractor to OCR your images and index their content.")).addToggle(d=>d.setValue(U.imagesIndexing).onChange(async f=>{await n.clearCache(),U.imagesIndexing=f,await ue(this.plugin)})).setDisabled(!r);let o=new DocumentFragment;o.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 G.Setting(e).setName(`Documents content indexing ${r?"":"\u26A0\uFE0F Disabled"}`).setDesc(o).addToggle(d=>d.setValue(U.officeIndexing).onChange(async f=>{await n.clearCache(),U.officeIndexing=f,await ue(this.plugin)})).setDisabled(!r);let c=new DocumentFragment;c.createSpan({},d=>{d.innerHTML="Omnisearch will use AI Image Analyzer to index the content of your images with ai."}),new G.Setting(e).setName(`Images AI indexing ${i?"":"\u26A0\uFE0F Disabled"}`).setDesc(c).addToggle(d=>d.setValue(U.aiImageIndexing).onChange(async f=>{await n.clearCache(),U.aiImageIndexing=f,await ue(this.plugin)})).setDisabled(!i),new G.Setting(e).setName("Index paths of unsupported files").setDesc(yt(`
      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(U.unsupportedFilesIndexing).onChange(async f=>{await s(),U.unsupportedFilesIndexing=f,await ue(this.plugin)})}),new G.Setting(e).setName("Set frontmatter property key as title").setDesc(yt(`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(U.displayTitle).onChange(async f=>{await s(),U.displayTitle=f,await ue(this.plugin)})}),new G.Setting(e).setName("Additional TEXT files to index").setDesc(yt(`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(U.indexedFileTypes.join(" ")).setPlaceholder("Example: txt org csv").onChange(async f=>{await n.clearCache(),U.indexedFileTypes=f.split(" "),await ue(this.plugin)})}),new G.Setting(e).setName("Behavior").setHeading(),new G.Setting(e).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(U.useCache).onChange(async f=>{U.useCache=f,await ue(this.plugin)})),new G.Setting(e).setName("Show previous query results").setDesc("Re-executes the previous query when opening Omnisearch.").addToggle(d=>d.setValue(U.showPreviousQueryResults).onChange(async f=>{U.showPreviousQueryResults=f,await ue(this.plugin)})),new G.Setting(e).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(U.hideExcluded).onChange(async f=>{U.hideExcluded=f,await ue(this.plugin)})),new G.Setting(e).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(U.downrankedFoldersFilters.join(",")).setPlaceholder("Example: src,p2/dir").onChange(async f=>{let p=f.split(",");p=p.map(E=>E.trim()),U.downrankedFoldersFilters=p,await ue(this.plugin)})}),new G.Setting(e).setName("Split CamelCaseWords").setDesc(yt(`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(U.splitCamelCase).onChange(async f=>{await n.clearCache(),U.splitCamelCase=f,await ue(this.plugin)})),new G.Setting(e).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(U.simpleSearch).onChange(async f=>{U.simpleSearch=f,await ue(this.plugin)})),G.Platform.isIosApp||new G.Setting(e).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(U.tokenizeUrls).onChange(async f=>{U.tokenizeUrls=f,await ue(this.plugin)})),new G.Setting(e).setName("Open in new pane").setDesc("Open and create files in a new pane instead of the current pane.").addToggle(d=>d.setValue(U.openInNewPane).onChange(async f=>{U.openInNewPane=f,await ue(this.plugin)})),new G.Setting(e).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(U.vimLikeNavigationShortcut).onChange(async f=>{U.vimLikeNavigationShortcut=f,await ue(this.plugin)})),new G.Setting(e).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(U.fuzziness).onChange(async f=>{["0","1","2"].includes(f)||(f="2"),U.fuzziness=f,await ue(this.plugin)})),new G.Setting(e).setName("User Interface").setHeading(),new G.Setting(e).setName("Show ribbon button").setDesc("Add a button on the sidebar to open the Vault search modal.").addToggle(d=>d.setValue(U.ribbonIcon).onChange(async f=>{U.ribbonIcon=f,await ue(this.plugin),f?this.plugin.addRibbonButton():this.plugin.removeRibbonButton()})),new G.Setting(e).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(U.showExcerpt).onChange(async f=>{_r.set(f)})),new G.Setting(e).setName("Show embed references").setDesc(yt(`Some results are <a href="https://help.obsidian.md/Linking+notes+and+files/Embed+files">embedded</a> in other notes.<br>
          This setting controls the maximum number of embeds to show in the search results. Set to 0 to disable.<br>
          Also works with Text Extractor for embedded images and documents.`)).addSlider(d=>{d.setLimits(0,10,1).setValue(U.maxEmbeds).setDynamicTooltip().onChange(async f=>{U.maxEmbeds=f,await ue(this.plugin)})}),new G.Setting(e).setName("Render line return in excerpts").setDesc("Activate this option to render line returns in result excerpts.").addToggle(d=>d.setValue(U.renderLineReturnInExcerpts).onChange(async f=>{U.renderLineReturnInExcerpts=f,await ue(this.plugin)})),new G.Setting(e).setName('Show "Create note" button').setDesc(yt(`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(U.showCreateButton).onChange(async f=>{U.showCreateButton=f,await ue(this.plugin)})),new G.Setting(e).setName("Highlight matching words in results").setDesc("Will highlight matching results when enabled. See README for more customization options.").addToggle(d=>d.setValue(U.highlight).onChange(async f=>{U.highlight=f,await ue(this.plugin)}));let l=go(this.app);new G.Setting(e).setName("Results weighting").setHeading(),new G.Setting(e).setName(`File name & declared aliases (default: ${l.weightBasename})`).addSlider(d=>this.weightSlider(d,"weightBasename")),new G.Setting(e).setName(`File directory (default: ${l.weightDirectory})`).addSlider(d=>this.weightSlider(d,"weightDirectory")),new G.Setting(e).setName(`Headings level 1 (default: ${l.weightH1})`).addSlider(d=>this.weightSlider(d,"weightH1")),new G.Setting(e).setName(`Headings level 2 (default: ${l.weightH2})`).addSlider(d=>this.weightSlider(d,"weightH2")),new G.Setting(e).setName(`Headings level 3 (default: ${l.weightH3})`).addSlider(d=>this.weightSlider(d,"weightH3")),new G.Setting(e).setName(`Tags (default: ${l.weightUnmarkedTags})`).addSlider(d=>this.weightSlider(d,"weightUnmarkedTags")),new G.Setting(e).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<U.weightCustomProperties.length;d++){let f=U.weightCustomProperties[d];new G.Setting(e).setName((d+1).toString()+".").addText(p=>{p.setPlaceholder("Property name").setValue(f.name).onChange(async E=>{f.name=E,await ue(this.plugin)})}).addSlider(p=>{p.setLimits(.1,5,.1).setValue(f.weight).setDynamicTooltip().onChange(async E=>{f.weight=E,await ue(this.plugin)})}).addButton(p=>{p.setButtonText("Remove"),p.onClick(async()=>{U.weightCustomProperties.splice(d,1),await ue(this.plugin),this.display()})})}new G.Setting(e).addButton(d=>{d.setButtonText("Add a new property"),d.onClick(f=>{U.weightCustomProperties.push({name:"",weight:1}),this.display()})}),G.Platform.isMobile||(new G.Setting(e).setName("API Access Through HTTP").setHeading().setDesc(yt('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 G.Setting(e).setName("Enable the HTTP server").addToggle(d=>d.setValue(U.httpApiEnabled).onChange(async f=>{U.httpApiEnabled=f,f?this.plugin.apiHttpServer.listen(U.httpApiPort):this.plugin.apiHttpServer.close(),await ue(this.plugin)})),new G.Setting(e).setName("HTTP Port").addText(d=>{d.setValue(U.httpApiPort).setPlaceholder("51361").onChange(async f=>{parseInt(f)>65535&&(f=U.httpApiPort,d.setValue(U.httpApiPort)),U.httpApiPort=f,U.httpApiEnabled&&(this.plugin.apiHttpServer.close(),this.plugin.apiHttpServer.listen(U.httpApiPort)),await ue(this.plugin)})}),new G.Setting(e).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(U.httpApiNotice).onChange(async f=>{U.httpApiNotice=f,await ue(this.plugin)}))),new G.Setting(e).setName("Debugging").setHeading(),new G.Setting(e).setName("Enable verbose logging").setDesc("Adds a LOT of logs for debugging purposes. Don't forget to disable it.").addToggle(d=>d.setValue(U.verboseLogging).onChange(async f=>{U.verboseLogging=f,mc(f),await ue(this.plugin)})),new G.Setting(e).setName("Danger Zone").setHeading(),new G.Setting(e).setName("Ignore diacritics").setDesc(yt(`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(U.ignoreDiacritics).onChange(async f=>{await n.clearCache(),U.ignoreDiacritics=f,await ue(this.plugin)})),new G.Setting(e).setName("Ignore Arabic diacritics (beta)").addToggle(d=>d.setValue(U.ignoreArabicDiacritics).onChange(async f=>{await n.clearCache(),U.ignoreArabicDiacritics=f,await ue(this.plugin)}));let h=new DocumentFragment;h.createSpan({},d=>{d.innerHTML=`Disable Omnisearch on this device only.<br>
        ${mo}`}),new G.Setting(e).setName("Disable on this device").setDesc(h).addToggle(d=>d.setValue($c(this.app)).onChange(async f=>{f?(this.app.saveLocalStorage(si,"1"),new G.Notice("Omnisearch - Disabled. Please restart Obsidian.")):(this.app.saveLocalStorage(si),new G.Notice("Omnisearch - Enabled. Please restart Obsidian."))})),new G.Setting(e).setName("Force save the cache").setDesc(yt(`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(U.DANGER_forceSaveCache).onChange(async f=>{U.DANGER_forceSaveCache=f,await ue(this.plugin)})),Wn()&&new G.Setting(e).setName("Clear cache data").setDesc(yt(`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 n.clearCache()})})}weightSlider(e,n){e.setLimits(1,10,.5).setValue(U[n]).setDynamicTooltip().onChange(async r=>{U[n]=r,await ue(this.plugin)})}}});function gS(t){let e;return{c(){e=V("span"),e.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>',K(e,"class","suggestion-flair"),K(e,"aria-label","Not created yet, select to create")},m(n,r){re(n,e,r)},p:Se,i:Se,o:Se,d(n){n&&ne(e)}}}function bS(t){"use strict";return[]}var Rg,Lg,Pg=x(()=>{wt();Rg=class extends $e{constructor(e){super();et(this,e,bS,gS,qe,{})}},Lg=Rg});function Mg(t){let e,n;return e=new Lg({}),{c(){pt(e.$$.fragment)},m(r,s){ot(e,r,s),n=!0},i(r){n||(me(e.$$.fragment,r),n=!0)},o(r){xe(e.$$.fragment,r),n=!1},d(r){Je(e,r)}}}function _S(t){let e,n,r,s,i,a,o=t[2]&&Mg(t),c=t[5].default,l=Hr(c,t,t[4],null);return{c(){e=V("div"),o&&o.c(),n=ie(),l&&l.c(),K(e,"data-result-id",t[0]),K(e,"class",r="suggestion-item omnisearch-result "+t[3]),ec(e,"is-selected",t[1])},m(h,d){re(h,e,d),o&&o.m(e,null),j(e,n),l&&l.m(e,null),s=!0,i||(a=[Ge(e,"mousemove",t[6]),Ge(e,"click",t[7]),Ge(e,"keypress",t[8]),Ge(e,"auxclick",t[9])],i=!0)},p(h,[d]){h[2]?o?d&4&&me(o,1):(o=Mg(h),o.c(),me(o,1),o.m(e,n)):o&&(hr(),xe(o,1,1,()=>{o=null}),pr()),l&&l.p&&(!s||d&16)&&zr(l,c,h,h[4],s?Ur(c,h[4],d,null):Vr(h[4]),null),(!s||d&1)&&K(e,"data-result-id",h[0]),(!s||d&8&&r!==(r="suggestion-item omnisearch-result "+h[3]))&&K(e,"class",r),(!s||d&10)&&ec(e,"is-selected",h[1])},i(h){s||(me(o),me(l,h),s=!0)},o(h){xe(o),xe(l,h),s=!1},d(h){h&&ne(e),o&&o.d(),l&&l.d(h),i=!1,jt(a)}}}function ES(t,e,n){let{$$slots:r={},$$scope:s}=e,{id:i}=e,{selected:a=!1}=e,{glyph:o=!1}=e,{cssClass:c=""}=e;function l(p){Tt.call(this,t,p)}function h(p){Tt.call(this,t,p)}function d(p){Tt.call(this,t,p)}function f(p){Tt.call(this,t,p)}return t.$$set=p=>{"id"in p&&n(0,i=p.id),"selected"in p&&n(1,a=p.selected),"glyph"in p&&n(2,o=p.glyph),"cssClass"in p&&n(3,c=p.cssClass),"$$scope"in p&&n(4,s=p.$$scope)},[i,a,o,c,s,r,l,h,d,f]}var Fg,bo,Xc=x(()=>{wt();Pg();Fg=class extends $e{constructor(e){super();et(this,e,ES,_S,qe,{id:0,selected:1,glyph:2,cssClass:3})}},bo=Fg});function Jc(t){return t.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#039;")}var Bg,Zc,el=x(()=>{Zt();ut();Bg=_e(require("obsidian"));xi();Zc=class{constructor(e){this.plugin=e}highlightText(e,n){let r=`suggestion-highlight omnisearch-highlight ${this.plugin.settings.highlight?"omnisearch-default-highlight":""}`;if(!n.length)return e;try{let s=new RegExp(n.map(o=>{let c=Yn(o.match);return`\\b${c}\\b${/[a-zA-Z]/.test(o.match)?"":`|${c}`}`}).join("|"),"giu"),i=o=>n.find(l=>o.match(new RegExp(`\\b${Yn(l.match)}\\b${/[a-zA-Z]/.test(l.match)?"":`|${Yn(l.match)}`}`,"giu")))?`<span class="${r}">${o}</span>`:o,a=e.replace(s,i);if(a===e){let o=new RegExp(n.map(c=>Yn(c.match)).join("|"),"giu");a=e.replace(o,i)}return a}catch(s){return console.error("Omnisearch - Error in highlightText()",s),e}}stringsToRegex(e){if(!e.length)return/^$/g;e.sort((r,s)=>s.length-r.length);let n=`(${e.map(r=>`\\b${Yn(r)}\\b|${Yn(r)}`).join("|")})`;return new RegExp(`${n}`,"gui")}getMatches(e,n,r){let s=this.stringsToRegex(n),i=e;this.plugin.settings.ignoreDiacritics&&(e=un(e,this.plugin.settings.ignoreArabicDiacritics));let a=new Date().getTime(),o=null,c=[],l=0;for(;(o=s.exec(e))!==null;){if(++l>=100||new Date().getTime()-a>50){ln("Stopped getMatches at",l,"results");break}let h=o.index,d=h+o[0].length,f=i.substring(h,d).trim();f&&o.index>=0&&c.push({match:f,offset:o.index})}if(r&&(r.query.text.length>1||r.getExactTerms().length>0)){let h=e.indexOf(r.getBestStringForExcerpt());h>-1&&c.find(d=>d.offset===h)&&c.unshift({offset:h,match:r.getBestStringForExcerpt()})}return c}makeExcerpt(e,n){let r=this.plugin.settings;try{let s=n??-1,i=Math.max(0,s-bh),a=Math.min(e.length,s+ri);if(s>-1?e=(i>0?"\u2026":"")+e.slice(i,a).trim()+(a<e.length-1?"\u2026":""):e=e.slice(0,ri),r.renderLineReturnInExcerpts){let o=new RegExp(/(?:\r\n|\r|\n)/g);e=e.split(o).filter(l=>l).join(`
`);let c=e.lastIndexOf(`
`,s-i);c>0&&(e=e.slice(c))}return e=Jc(e),r.renderLineReturnInExcerpts&&(e=e.trim().replaceAll(`
`,"<br>")),e}catch(s){return new Bg.Notice("Omnisearch - Error while creating excerpt, see developer console"),console.error("Omnisearch - Error while creating excerpt"),console.error(s),""}}}});async function jg(t){let e=t.app;if(!e.plugins.getPlugin("obsidian-icon-folder"))return{};let r=`${e.vault.configDir}/plugins/obsidian-icon-folder/data.json`;try{let s=await e.vault.adapter.read(r),i=JSON.parse(s),a={};for(let o in i){let c=(0,ds.normalizePath)(o);a[c]=i[o]}return a}catch(s){return ln("Failed to read data.json:",s),{}}}async function Hg(t){let e={Li:"lucide-icons"},n="icons",r=t.app,s=r.plugins.getPlugin("obsidian-icon-folder");if(s){n=s.settings?.iconPacksPath||"icons";let a=`${r.vault.configDir}/${n}`;try{let o=await r.vault.adapter.list(a);if(o.folders&&o.folders.length>0)for(let c of o.folders){let l=c.split("/"),h=l[l.length-1],d=TS(h);e[d]=h}}catch(o){ln("Failed to list icon packs:",o)}}return{prefixToIconPack:e,iconsPath:n}}function TS(t){if(t.includes("-")){let e=t.split("-"),n=e[0].charAt(0).toUpperCase();for(let r=1;r<e.length;r++)n+=e[r].charAt(0).toLowerCase();return n}return t.charAt(0).toUpperCase()+t.charAt(1).toLowerCase()}function tl(t,e){let n=(0,ds.normalizePath)(t),r=e[n];if(r){if(typeof r=="string")return r;if(typeof r=="object"&&r.iconName)return r.iconName}return null}function xS(t){let e=t.match(/^[A-Z][a-z]*/);if(e){let n=e[0],r=t.substring(n.length);return{prefix:n,name:r}}else return{prefix:"",name:t}}async function nl(t,e,n,r){let s=xS(t),{prefix:i,name:a}=s;if(!i)return`<span class="omnisearch-result__icon--emoji">${Jc(a)}</span>`;let o=r[i];if(!o)return ln(`No icon pack found for prefix: ${i}`),null;if(o==="lucide-icons"){let c=a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),l=(0,ds.getIcon)(c);return l?l.outerHTML:(ln(`Lucide icon not found: ${c}`),null)}else{if(!n)return ln("Icons path is not set. Cannot load icon SVG."),null;let c=`${e.app.vault.configDir}/${n}/${o}/${a}.svg`;try{return await e.app.vault.adapter.read(c)}catch(l){return ln(`Failed to load icon SVG for ${t} at ${c}:`,l),null}}}function rl(t,e){let n="file";Jt(t)?n="image":en(t)?n="file-text":(cn(t)||Ma(t))&&(n="layout-dashboard");let r=(0,ds.getIcon)(n);return r?r.outerHTML:""}var ds,Ug=x(()=>{ds=_e(require("obsidian"));ut();el()});function yS(t){let e,n=t[8]&&zg(t);return{c(){n&&n.c(),e=lr()},m(r,s){n&&n.m(r,s),re(r,e,s)},p(r,s){r[8]?n?n.p(r,s):(n=zg(r),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(r){n&&n.d(r),r&&ne(e)}}}function AS(t){let e;return{c(){e=V("span"),K(e,"title","The document above is embedded in this note")},m(n,r){re(n,e,r),t[15](e)},p:Se,d(n){n&&ne(e),t[15](null)}}}function zg(t){let e,n,r,s;return{c(){e=V("span"),K(e,"class","omnisearch-result__icon")},m(i,a){re(i,e,a),r||(s=Zs(n=$g.call(null,e,t[8])),r=!0)},p(i,a){n&&on(n.update)&&a&256&&n.update.call(null,i[8])},d(i){i&&ne(e),r=!1,s()}}}function Vg(t){let e,n=t[1].matches.length+"",r,s,i=(t[1].matches.length>1?"matches":"match")+"",a;return{c(){e=V("span"),r=We(n),s=We("\xA0"),a=We(i),K(e,"class","omnisearch-result__counter")},m(o,c){re(o,e,c),j(e,r),j(e,s),j(e,a)},p(o,c){c&2&&n!==(n=o[1].matches.length+"")&&Xt(r,n),c&2&&i!==(i=(o[1].matches.length>1?"matches":"match")+"")&&Xt(a,i)},d(o){o&&ne(e)}}}function qg(t){let e,n,r,s=t[2].textProcessor.highlightText(t[4],t[11])+"",i=t[7]&&Kg(t);return{c(){e=V("div"),i&&i.c(),n=ie(),r=V("span"),K(e,"class","omnisearch-result__folder-path")},m(a,o){re(a,e,o),i&&i.m(e,null),j(e,n),j(e,r),r.innerHTML=s},p(a,o){a[7]?i?i.p(a,o):(i=Kg(a),i.c(),i.m(e,n)):i&&(i.d(1),i=null),o&2068&&s!==(s=a[2].textProcessor.highlightText(a[4],a[11])+"")&&(r.innerHTML=s)},d(a){a&&ne(e),i&&i.d()}}}function Kg(t){let e,n,r,s;return{c(){e=V("span"),K(e,"class","omnisearch-result__icon")},m(i,a){re(i,e,a),r||(s=Zs(n=$g.call(null,e,t[7])),r=!0)},p(i,a){n&&on(n.update)&&a&128&&n.update.call(null,i[7])},d(i){i&&ne(e),r=!1,s()}}}function Yg(t){let e,n,r=t[13]&&Wg(t),s=t[6]&&Gg(t);return{c(){e=V("div"),r&&r.c(),n=ie(),s&&s.c(),Et(e,"display","flex"),Et(e,"flex-direction","row")},m(i,a){re(i,e,a),r&&r.m(e,null),j(e,n),s&&s.m(e,null)},p(i,a){i[13]?r?r.p(i,a):(r=Wg(i),r.c(),r.m(e,n)):r&&(r.d(1),r=null),i[6]?s?s.p(i,a):(s=Gg(i),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},d(i){i&&ne(e),r&&r.d(),s&&s.d()}}}function Wg(t){let e,n=t[2].textProcessor.highlightText(t[10],t[1].matches)+"";return{c(){e=V("div"),K(e,"class","omnisearch-result__body")},m(r,s){re(r,e,s),e.innerHTML=n},p(r,s){s&1030&&n!==(n=r[2].textProcessor.highlightText(r[10],r[1].matches)+"")&&(e.innerHTML=n)},d(r){r&&ne(e)}}}function Gg(t){let e,n,r;return{c(){e=V("div"),n=V("img"),Et(n,"width","100px"),Zu(n.src,r=t[6])||K(n,"src",r),K(n,"alt",""),K(e,"class","omnisearch-result__image-container")},m(s,i){re(s,e,i),j(e,n)},p(s,i){i&64&&!Zu(n.src,r=s[6])&&K(n,"src",r)},d(s){s&&ne(e)}}}function CS(t){let e,n,r,s,i,a=t[2].textProcessor.highlightText(t[3],t[12])+"",o,c,l,h=Fn(t[1].path)+"",d,f,p,E;function T(S,C){return S[1].isEmbed?AS:yS}let w=T(t,-1),m=w(t),I=t[1].matches.length>0&&Vg(t),A=t[4]&&qg(t),b=!t[1].isEmbed&&Yg(t);return{c(){e=V("div"),n=V("div"),r=V("span"),m.c(),s=ie(),i=V("span"),o=ie(),c=V("span"),l=We("."),d=We(h),f=ie(),I&&I.c(),p=ie(),A&&A.c(),E=ie(),b&&b.c(),K(c,"class","omnisearch-result__extension"),K(r,"class","omnisearch-result__title"),K(n,"class","omnisearch-result__title-container")},m(S,C){re(S,e,C),j(e,n),j(n,r),m.m(r,null),j(r,s),j(r,i),i.innerHTML=a,j(r,o),j(r,c),j(c,l),j(c,d),j(r,f),I&&I.m(r,null),j(e,p),A&&A.m(e,null),j(e,E),b&&b.m(e,null)},p(S,C){w===(w=T(S,C))&&m?m.p(S,C):(m.d(1),m=w(S),m&&(m.c(),m.m(r,s))),C&4108&&a!==(a=S[2].textProcessor.highlightText(S[3],S[12])+"")&&(i.innerHTML=a),C&2&&h!==(h=Fn(S[1].path)+"")&&Xt(d,h),S[1].matches.length>0?I?I.p(S,C):(I=Vg(S),I.c(),I.m(r,null)):I&&(I.d(1),I=null),S[4]?A?A.p(S,C):(A=qg(S),A.c(),A.m(e,E)):A&&(A.d(1),A=null),S[1].isEmbed?b&&(b.d(1),b=null):b?b.p(S,C):(b=Yg(S),b.c(),b.m(e,null))},d(S){S&&ne(e),m.d(),I&&I.d(),A&&A.d(),b&&b.d()}}}function SS(t){let e,n;return e=new bo({props:{glyph:t[9],id:t[1].path,cssClass:" "+(t[1].isEmbed?"omnisearch-result__embed":""),selected:t[0],$$slots:{default:[CS]},$$scope:{ctx:t}}}),e.$on("auxclick",t[16]),e.$on("click",t[17]),e.$on("mousemove",t[18]),{c(){pt(e.$$.fragment)},m(r,s){ot(e,r,s),n=!0},p(r,[s]){let i={};s&512&&(i.glyph=r[9]),s&2&&(i.id=r[1].path),s&2&&(i.cssClass=" "+(r[1].isEmbed?"omnisearch-result__embed":"")),s&1&&(i.selected=r[0]),s&33570302&&(i.$$scope={dirty:s,ctx:r}),e.$set(i)},i(r){n||(me(e.$$.fragment,r),n=!0)},o(r){xe(e.$$.fragment,r),n=!1},d(r){Je(e,r)}}}function $g(t,e){return t.innerHTML=e,{update(n){t.innerHTML=n},destroy(){t.innerHTML=""}}}function IS(t,e,n){let r,s,i,a,o;Na(t,_r,te=>n(13,o=te));let{selected:c=!1}=e,{note:l}=e,{plugin:h}=e,d=null,f="",p="",E={},T=null,w=null,m={},I,A=!1;fr(async()=>{E=await jg(h);let te=await Hg(h);m=te.prefixToIconPack,I=te.iconsPath,n(14,A=!0)});async function b(){let te=tl(p,E);te?n(7,T=await nl(te,h,I,m)):n(7,T=rl("folder",h));let X=tl(l.path,E);X?n(8,w=await nl(X,h,I,m)):n(8,w=rl(l.path,h))}let S,C,N;function O(te){Rn[te?"unshift":"push"](()=>{N=te,n(5,N)})}function L(te){Tt.call(this,t,te)}function z(te){Tt.call(this,t,te)}function W(te){Tt.call(this,t,te)}t.$$set=te=>{"selected"in te&&n(0,c=te.selected),"note"in te&&n(1,l=te.note),"plugin"in te&&n(2,h=te.plugin)},t.$$.update=()=>{if(t.$$.dirty&16386){e:l&&l.path&&A&&(async()=>{n(3,f=l.displayTitle||l.basename),n(4,p=fc(l.path)),await b()})()}if(t.$$.dirty&6){e:if(n(6,d=null),Jt(l.path)){let te=h.app.vault.getAbstractFileByPath(l.path);te instanceof hn.TFile&&n(6,d=h.app.vault.getResourcePath(te))}}if(t.$$.dirty&34){e:n(3,f=l.displayTitle||l.basename),n(4,p=fc(l.path)),S&&(0,hn.setIcon)(S,"folder-open"),C&&(Jt(l.path)?(0,hn.setIcon)(C,"image"):en(l.path)?(0,hn.setIcon)(C,"file-text"):cn(l.path)||Ma(l.path)?(0,hn.setIcon)(C,"layout-dashboard"):(0,hn.setIcon)(C,"file")),N&&(0,hn.setIcon)(N,"corner-down-right")}if(t.$$.dirty&14){e:n(12,r=h.textProcessor.getMatches(f,l.foundWords))}if(t.$$.dirty&22){e:n(11,s=h.textProcessor.getMatches(p,l.foundWords))}if(t.$$.dirty&6){e:n(10,i=h.textProcessor.makeExcerpt(l.content,l.matches[0]?.offset??-1))}};e:n(9,a=!1);return[c,l,h,f,p,N,d,T,w,a,i,s,r,o,A,O,L,z,W]}var hn,Qg,Xg,Zg=x(()=>{wt();Qc();ut();Xc();hn=_e(require("obsidian"));ni();Ug();Qg=class extends $e{constructor(e){super();et(this,e,IS,SS,qe,{selected:0,note:1,plugin:2})}},Xg=Qg});var Jg=kn(_o=>{_o.parse=function(t,e){if(e?e.offsets=typeof e.offsets=="undefined"?!0:e.offsets:e={offsets:!0},t||(t=""),t.indexOf(":")===-1&&!e.tokenize)return t;if(!e.keywords&&!e.ranges&&!e.tokenize)return t;var n={text:[]};e.offsets&&(n.offsets=[]);for(var r={},s=[],i=/(\S+:'(?:[^'\\]|\\.)*')|(\S+:"(?:[^"\\]|\\.)*")|(-?"(?:[^"\\]|\\.)*")|(-?'(?:[^'\\]|\\.)*')|\S+|\S+:\S+/g,a;(a=i.exec(t))!==null;){var f=a[0],o=f.indexOf(":");if(o!==-1){var c=f.split(":"),l=f.slice(0,o),h=f.slice(o+1);h=h.replace(/^\"|\"$|^\'|\'$/g,""),h=(h+"").replace(/\\(.?)/g,function(C,N){switch(N){case"\\":return"\\";case"0":return"\0";case"":return"";default:return N}}),s.push({keyword:l,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,N){switch(N){case"\\":return"\\";case"0":return"\0";case"":return"";default:return N}}),d?r.text?(r.text instanceof Array||(r.text=[r.text]),r.text.push(f)):r.text=f:s.push({text:f,offsetStart:a.index,offsetEnd:a.index+f.length})}}s.reverse();for(var f;f=s.pop();)if(f.text)n.text.push(f.text),e.offsets&&n.offsets.push(f);else{var l=f.keyword;e.keywords=e.keywords||[];var p=!1,E=!1;if(!/^-/.test(l))p=e.keywords.indexOf(l)!==-1;else if(l[0]==="-"){var T=l.slice(1);p=e.keywords.indexOf(T)!==-1,p&&(l=T,E=!0)}e.ranges=e.ranges||[];var w=e.ranges.indexOf(l)!==-1;if(p){e.offsets&&n.offsets.push({keyword:l,value:f.value,offsetStart:E?f.offsetStart+1:f.offsetStart,offsetEnd:f.offsetEnd});var m=f.value;if(m.length){var I=m.split(",");E?r[l]?r[l]instanceof Array?I.length>1?r[l]=r[l].concat(I):r[l].push(m):(r[l]=[r[l]],r[l].push(m)):I.length>1?r[l]=I:e.alwaysArray?r[l]=[m]:r[l]=m:n[l]?n[l]instanceof Array?I.length>1?n[l]=n[l].concat(I):n[l].push(m):(n[l]=[n[l]],n[l].push(m)):I.length>1?n[l]=I:e.alwaysArray?n[l]=[m]:n[l]=m}}else if(w){e.offsets&&n.offsets.push(f);var m=f.value,A=m.split("-");n[l]={},A.length===2?(n[l].from=A[0],n[l].to=A[1]):!A.length%2||(n[l].from=m)}else{var b=f.keyword+":"+f.value;n.text.push(b),e.offsets&&n.offsets.push({text:b,offsetStart:f.offsetStart,offsetEnd:f.offsetEnd})}}return n.text.length?e.tokenize||(n.text=n.text.join(" ").trim()):delete n.text,n.exclude=r,n};_o.stringify=function(t,e,n){if(e||(e={offsets:!0}),!t)return"";if(typeof t=="string")return t;if(Array.isArray(t))return t.join(" ");if(!Object.keys(t).length)return"";if(Object.keys(t).length===3&&!!t.text&&!!t.offsets&&!!t.exclude&&typeof t.text=="string")return t.text;n||(n="");var r=function(o){return o.indexOf(" ")>-1?JSON.stringify(o):o},s=function(o){return n+o},i=[];if(t.text){var a=[];typeof t.text=="string"?a.push(t.text):a.push.apply(a,t.text),a.length>0&&i.push(a.map(r).map(s).join(" "))}return e.keywords&&e.keywords.forEach(function(o){if(!!t[o]){var c=[];typeof t[o]=="string"?c.push(t[o]):c.push.apply(c,t[o]),c.length>0&&i.push(s(o+":"+c.map(r).join(",")))}}),e.ranges&&e.ranges.forEach(function(o){if(!!t[o]){var c=t[o].from,l=t[o].to;l&&(c=c+"-"+l),c&&i.push(s(o+":"+c))}}),t.exclude&&Object.keys(t.exclude).length>0&&i.push(_o.stringify(t.exclude,e,"-")),i.join(" ")}});var tb=kn((jF,eb)=>{eb.exports=Jg()});var nb,sl,Er,Eo=x(()=>{ut();nb=_e(tb()),sl=["ext","path"],Er=class{#e;constructor(e="",n){n.ignoreDiacritics&&(e=un(e,n.ignoreArabicDiacritics));let r=(0,nb.parse)(e.toLowerCase(),{tokenize:!0,keywords:sl});r.text=r.text??[],r.exclude=r.exclude??{},r.exclude.text=r.exclude.text??[],Array.isArray(r.exclude.text)||(r.exclude.text=[r.exclude.text]),r.exclude.text=r.exclude.text.filter(i=>i.length);for(let i of sl){let a=r[i];a&&(r[i]=Array.isArray(a)?a:[a]);let o=r.exclude[i];o&&(r.exclude[i]=Array.isArray(o)?o:[o])}this.query=r;let s=this.query.text.filter(i=>i.startsWith(".")).map(i=>i.slice(1));this.query.ext=[...new Set([...s,...this.query.ext??[]])],this.query.text=this.query.text.filter(i=>!i.startsWith(".")),this.#e=e.match(/"([^"]+)"/g)?.map(i=>i.replace(/"/g,""))??[]}isEmpty(){for(let e of sl)if(this.query[e]?.length||this.query.text.length)return!1;return!0}segmentsToStr(){return this.query.text.join(" ")}getTags(){return this.query.text.filter(e=>e.startsWith("#"))}getTagsWithoutHashtag(){return this.getTags().map(e=>e.replace(/^#/,""))}getExactTerms(){return[...new Set([...this.query.text.filter(e=>e.split(" ").length>1),...this.#e].map(e=>e.toLowerCase()))]}getBestStringForExcerpt(){return this.#e.length?this.#e.sort((e,n)=>n.length-e.length)[0]??"":this.segmentsToStr()}}});var rb=kn(To=>{function il(t){return il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},il(t)}(function(t,e){if(typeof define=="function"&&define.amd)define(["exports"],e);else if(typeof To!="undefined")e(To);else{var n={exports:{}};e(n.exports),t.CancelablePromise=n.exports}})(typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:To,function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CancelablePromise=void 0,t.cancelable=te,t.default=void 0,t.isCancelablePromise=X;function e(k,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(P&&P.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),Object.defineProperty(k,"prototype",{writable:!1}),P&&n(k,P)}function n(k,P){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Z,oe){return Z.__proto__=oe,Z},n(k,P)}function r(k){var P=a();return function(){var Z=o(k),oe;if(P){var Ce=o(this).constructor;oe=Reflect.construct(Z,arguments,Ce)}else oe=Z.apply(this,arguments);return s(this,oe)}}function s(k,P){if(P&&(il(P)==="object"||typeof P=="function"))return P;if(P!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return i(k)}function i(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}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 o(k){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(H){return H.__proto__||Object.getPrototypeOf(H)},o(k)}function c(k,P){var H=typeof Symbol!="undefined"&&k[Symbol.iterator]||k["@@iterator"];if(!H){if(Array.isArray(k)||(H=l(k))||P&&k&&typeof k.length=="number"){H&&(k=H);var Z=0,oe=function(){};return{s:oe,n:function(){return Z>=k.length?{done:!0}:{done:!1,value:k[Z++]}},e:function(Y){throw Y},f:oe}}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 Ce=!0,Ue=!1,sn;return{s:function(){H=H.call(k)},n:function(){var Y=H.next();return Ce=Y.done,Y},e:function(Y){Ue=!0,sn=Y},f:function(){try{!Ce&&H.return!=null&&H.return()}finally{if(Ue)throw sn}}}}function l(k,P){if(!!k){if(typeof k=="string")return h(k,P);var H=Object.prototype.toString.call(k).slice(8,-1);if(H==="Object"&&k.constructor&&(H=k.constructor.name),H==="Map"||H==="Set")return Array.from(k);if(H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return h(k,P)}}function h(k,P){(P==null||P>k.length)&&(P=k.length);for(var H=0,Z=new Array(P);H<P;H++)Z[H]=k[H];return Z}function d(k,P){if(!(k instanceof P))throw new TypeError("Cannot call a class as a function")}function f(k,P){for(var H=0;H<P.length;H++){var Z=P[H];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(k,Z.key,Z)}}function p(k,P,H){return P&&f(k.prototype,P),H&&f(k,H),Object.defineProperty(k,"prototype",{writable:!1}),k}function E(k,P,H){return P in k?Object.defineProperty(k,P,{value:H,enumerable:!0,configurable:!0,writable:!0}):k[P]=H,k}function T(k,P,H){w(k,P),P.set(k,H)}function w(k,P){if(P.has(k))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(k,P){var H=b(k,P,"get");return I(k,H)}function I(k,P){return P.get?P.get.call(k):P.value}function A(k,P,H){var Z=b(k,P,"set");return S(k,Z,H),H}function b(k,P,H){if(!P.has(k))throw new TypeError("attempted to "+H+" private field on non-instance");return P.get(k)}function S(k,P,H){if(P.set)P.set.call(k,H);else{if(!P.writable)throw new TypeError("attempted to set read only private field");P.value=H}}var C=typeof Symbol!="undefined"?Symbol.toStringTag:"@@toStringTag",N=new WeakMap,O=new WeakMap,L=function(){function k(P){var H=P.executor,Z=H===void 0?function(){}:H,oe=P.internals,Ce=oe===void 0?Re():oe,Ue=P.promise,sn=Ue===void 0?new Promise(function(Ze,Y){return Z(Ze,Y,function(Be){Ce.onCancelList.push(Be)})}):Ue;d(this,k),T(this,N,{writable:!0,value:void 0}),T(this,O,{writable:!0,value:void 0}),E(this,C,"CancelablePromise"),this.cancel=this.cancel.bind(this),A(this,N,Ce),A(this,O,sn||new Promise(function(Ze,Y){return Z(Ze,Y,function(Be){Ce.onCancelList.push(Be)})}))}return p(k,[{key:"then",value:function(H,Z){return Le(m(this,O).then(ke(H,m(this,N)),ke(Z,m(this,N))),m(this,N))}},{key:"catch",value:function(H){return Le(m(this,O).catch(ke(H,m(this,N))),m(this,N))}},{key:"finally",value:function(H,Z){var oe=this;return Z&&m(this,N).onCancelList.push(H),Le(m(this,O).finally(ke(function(){if(H)return Z&&(m(oe,N).onCancelList=m(oe,N).onCancelList.filter(function(Ce){return Ce!==H})),H()},m(this,N))),m(this,N))}},{key:"cancel",value:function(){m(this,N).isCanceled=!0;var H=m(this,N).onCancelList;m(this,N).onCancelList=[];var Z=c(H),oe;try{for(Z.s();!(oe=Z.n()).done;){var Ce=oe.value;if(typeof Ce=="function")try{Ce()}catch(Ue){console.error(Ue)}}}catch(Ue){Z.e(Ue)}finally{Z.f()}}},{key:"isCanceled",value:function(){return m(this,N).isCanceled===!0}}]),k}(),z=function(k){e(H,k);var P=r(H);function H(Z){return d(this,H),P.call(this,{executor:Z})}return p(H)}(L);t.CancelablePromise=z,E(z,"all",function(P){return ge(P,Promise.all(P))}),E(z,"allSettled",function(P){return ge(P,Promise.allSettled(P))}),E(z,"any",function(P){return ge(P,Promise.any(P))}),E(z,"race",function(P){return ge(P,Promise.race(P))}),E(z,"resolve",function(P){return te(Promise.resolve(P))}),E(z,"reject",function(P){return te(Promise.reject(P))}),E(z,"isCancelable",X);var W=z;t.default=W;function te(k){return Le(k,Re())}function X(k){return k instanceof z||k instanceof L}function ke(k,P){if(k)return function(H){if(!P.isCanceled){var Z=k(H);return X(Z)&&P.onCancelList.push(Z.cancel),Z}return H}}function Le(k,P){return new L({internals:P,promise:k})}function ge(k,P){var H=Re();return H.onCancelList.push(function(){var Z=c(k),oe;try{for(Z.s();!(oe=Z.n()).done;){var Ce=oe.value;X(Ce)&&Ce.cancel()}}catch(Ue){Z.e(Ue)}finally{Z.f()}}),new L({internals:H,promise:P})}function Re(){return{isCanceled:!1,onCancelList:[]}}})});function ib(t,e,n){let r=t.slice();return r[40]=e[n],r[42]=n,r}function ab(t){let e,n,r;return{c(){e=V("button"),e.textContent="Create note"},m(s,i){re(s,e,i),n||(r=Ge(e,"click",t[14]),n=!0)},p:Se,d(s){s&&ne(e),n=!1,r()}}}function wS(t){let e,n,r;return{c(){e=V("button"),e.textContent="In-File search"},m(s,i){re(s,e,i),n||(r=Ge(e,"click",t[15]),n=!0)},p:Se,d(s){s&&ne(e),n=!1,r()}}}function NS(t){let e,n,r=t[0].settings.showCreateButton&&ab(t),s=Kt.Platform.isMobile&&wS(t);return{c(){e=V("div"),r&&r.c(),n=ie(),s&&s.c(),K(e,"class","omnisearch-input-container__buttons")},m(i,a){re(i,e,a),r&&r.m(e,null),j(e,n),s&&s.m(e,null)},p(i,a){i[0].settings.showCreateButton?r?r.p(i,a):(r=ab(i),r.c(),r.m(e,n)):r&&(r.d(1),r=null),Kt.Platform.isMobile&&s.p(i,a)},d(i){i&&ne(e),r&&r.d(),s&&s.d()}}}function ob(t){let e,n,r;return{c(){e=V("div"),n=We("\u23F3 Work in progress: "),r=We(t[4]),Et(e,"text-align","center"),Et(e,"color","var(--text-accent)"),Et(e,"margin-top","10px")},m(s,i){re(s,e,i),j(e,n),j(e,r)},p(s,i){i[0]&16&&Xt(r,s[4])},d(s){s&&ne(e)}}}function ub(t){let e,n;function r(...s){return t[21](t[42],...s)}return e=new Xg({props:{plugin:t[0],selected:t[42]===t[1],note:t[40]}}),e.$on("mousemove",r),e.$on("click",t[12]),e.$on("auxclick",t[22]),{c(){pt(e.$$.fragment)},m(s,i){ot(e,s,i),n=!0},p(s,i){t=s;let a={};i[0]&1&&(a.plugin=t[0]),i[0]&2&&(a.selected=t[42]===t[1]),i[0]&8&&(a.note=t[40]),e.$set(a)},i(s){n||(me(e.$$.fragment,s),n=!0)},o(s){xe(e.$$.fragment,s),n=!1},d(s){Je(e,s)}}}function vS(t){let e;return{c(){e=We("Searching...")},m(n,r){re(n,e,r)},p:Se,d(n){n&&ne(e)}}}function DS(t){let e,n=t[0].settings.simpleSearch&&t[2].split(ii).some(lb),r,s=n&&cb(t);return{c(){e=We(`We found 0 result for your search here.
      `),s&&s.c(),r=lr()},m(i,a){re(i,e,a),s&&s.m(i,a),re(i,r,a)},p(i,a){a[0]&5&&(n=i[0].settings.simpleSearch&&i[2].split(ii).some(lb)),n?s||(s=cb(i),s.c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null)},d(i){i&&ne(e),s&&s.d(i),i&&ne(r)}}}function cb(t){let e,n,r;return{c(){e=V("br"),n=ie(),r=V("span"),r.textContent=`You have enabled "Simpler Search" in the settings, try to type more
          characters.`,Et(r,"color","var(--text-accent)"),Et(r,"font-size","small")},m(s,i){re(s,e,i),re(s,n,i),re(s,r,i)},d(s){s&&ne(e),s&&ne(n),s&&ne(r)}}}function OS(t){let e,n,r,s=t[3],i=[];for(let h=0;h<s.length;h+=1)i[h]=ub(ib(t,s,h));let a=h=>xe(i[h],1,1,()=>{i[h]=null});function o(h,d){if(!h[3].length&&h[2]&&!h[5])return DS;if(h[5])return vS}let c=o(t,[-1,-1]),l=c&&c(t);return{c(){for(let h=0;h<i.length;h+=1)i[h].c();e=ie(),n=V("div"),l&&l.c(),Et(n,"text-align","center")},m(h,d){for(let f=0;f<i.length;f+=1)i[f]&&i[f].m(h,d);re(h,e,d),re(h,n,d),l&&l.m(n,null),r=!0},p(h,d){if(d[0]&12299){s=h[3];let f;for(f=0;f<s.length;f+=1){let p=ib(h,s,f);i[f]?(i[f].p(p,d),me(i[f],1)):(i[f]=ub(p),i[f].c(),me(i[f],1),i[f].m(e.parentNode,e))}for(hr(),f=s.length;f<i.length;f+=1)a(f);pr()}c===(c=o(h,d))&&l?l.p(h,d):(l&&l.d(1),l=c&&c(h),l&&(l.c(),l.m(n,null)))},i(h){if(!r){for(let d=0;d<s.length;d+=1)me(i[d]);r=!0}},o(h){i=i.filter(Boolean);for(let d=0;d<i.length;d+=1)xe(i[d]);r=!1},d(h){Da(i,h),h&&ne(e),h&&ne(n),l&&l.d()}}}function kS(t){let e,n,r,s,i,a,o,c,l,h,d,f,p,E,T,w,m,I,A,b,S,C,N,O,L,z,W,te,X,ke,Le,ge,Re,k,P,H,Z,oe,Ce,Ue,sn,Ze,Y,Be,an,Bt,cr,jr,On,ix={plugin:t[0],initialValue:t[2],placeholder:"Omnisearch - Vault",$$slots:{default:[NS]},$$scope:{ctx:t}};e=new Fa({props:ix}),t[19](e),e.$on("input",t[20]);let ht=t[4]&&ob(t);return s=new Ba({props:{$$slots:{default:[OS]},$$scope:{ctx:t}}}),{c(){pt(e.$$.fragment),n=ie(),ht&&ht.c(),r=ie(),pt(s.$$.fragment),i=ie(),a=V("div"),o=V("div"),o.innerHTML='<span class="prompt-instruction-command">\u2191\u2193</span><span>to navigate</span>',c=ie(),l=V("div"),l.innerHTML=`<span class="prompt-instruction-command">alt \u2191\u2193</span>
    <span>to cycle history</span>`,h=ie(),d=V("div"),f=V("span"),p=We(t[8]),E=ie(),T=V("span"),T.textContent="to open",w=ie(),m=V("div"),m.innerHTML=`<span class="prompt-instruction-command">tab</span>
    <span>to switch to In-File Search</span>`,I=ie(),A=V("div"),b=V("span"),S=We(t[7]),C=ie(),N=V("span"),N.textContent="to open in a new pane",O=ie(),L=V("div"),z=V("span"),z.textContent=`${t[11]}`,W=ie(),te=V("span"),te.textContent="to open in a new split",X=ie(),ke=V("div"),ke.innerHTML=`<span class="prompt-instruction-command">alt o</span>
    <span>to open in the background</span>`,Le=ie(),ge=V("div"),Re=V("span"),k=We(t[10]),P=ie(),H=V("span"),H.textContent="to create",Z=ie(),oe=V("div"),Ce=V("span"),Ue=We(t[9]),sn=ie(),Ze=V("span"),Ze.textContent="to create in a new pane",Y=ie(),Be=V("div"),Be.innerHTML=`<span class="prompt-instruction-command">alt \u21B5</span>
    <span>to insert a link</span>`,an=ie(),Bt=V("div"),Bt.innerHTML=`<span class="prompt-instruction-command">ctrl g</span>
    <span>to toggle excerpts</span>`,cr=ie(),jr=V("div"),jr.innerHTML='<span class="prompt-instruction-command">esc</span><span>to close</span>',K(o,"class","prompt-instruction"),K(l,"class","prompt-instruction"),K(f,"class","prompt-instruction-command"),K(d,"class","prompt-instruction"),K(m,"class","prompt-instruction"),K(b,"class","prompt-instruction-command"),K(A,"class","prompt-instruction"),K(z,"class","prompt-instruction-command"),K(L,"class","prompt-instruction"),K(ke,"class","prompt-instruction"),K(Re,"class","prompt-instruction-command"),K(ge,"class","prompt-instruction"),K(Ce,"class","prompt-instruction-command"),K(oe,"class","prompt-instruction"),K(Be,"class","prompt-instruction"),K(Bt,"class","prompt-instruction"),K(jr,"class","prompt-instruction"),K(a,"class","prompt-instructions")},m(he,Pe){ot(e,he,Pe),re(he,n,Pe),ht&&ht.m(he,Pe),re(he,r,Pe),ot(s,he,Pe),re(he,i,Pe),re(he,a,Pe),j(a,o),j(a,c),j(a,l),j(a,h),j(a,d),j(d,f),j(f,p),j(d,E),j(d,T),j(a,w),j(a,m),j(a,I),j(a,A),j(A,b),j(b,S),j(A,C),j(A,N),j(a,O),j(a,L),j(L,z),j(L,W),j(L,te),j(a,X),j(a,ke),j(a,Le),j(a,ge),j(ge,Re),j(Re,k),j(ge,P),j(ge,H),j(a,Z),j(a,oe),j(oe,Ce),j(Ce,Ue),j(oe,sn),j(oe,Ze),j(a,Y),j(a,Be),j(a,an),j(a,Bt),j(a,cr),j(a,jr),On=!0},p(he,Pe){let Ia={};Pe[0]&1&&(Ia.plugin=he[0]),Pe[0]&4&&(Ia.initialValue=he[2]),Pe[0]&1|Pe[1]&4096&&(Ia.$$scope={dirty:Pe,ctx:he}),e.$set(Ia),he[4]?ht?ht.p(he,Pe):(ht=ob(he),ht.c(),ht.m(r.parentNode,r)):ht&&(ht.d(1),ht=null);let eh={};Pe[0]&47|Pe[1]&4096&&(eh.$$scope={dirty:Pe,ctx:he}),s.$set(eh),(!On||Pe[0]&256)&&Xt(p,he[8]),(!On||Pe[0]&128)&&Xt(S,he[7]),(!On||Pe[0]&1024)&&Xt(k,he[10]),(!On||Pe[0]&512)&&Xt(Ue,he[9])},i(he){On||(me(e.$$.fragment,he),me(s.$$.fragment,he),On=!0)},o(he){xe(e.$$.fragment,he),xe(s.$$.fragment,he),On=!1},d(he){t[19](null),Je(e,he),he&&ne(n),ht&&ht.d(he),he&&ne(r),Je(s,he),he&&ne(i),he&&ne(a)}}}function RS(t,e,n){let r,s;Na(t,Pn,Y=>n(18,s=Y));let{modal:i}=e,{previousQuery:a}=e,{plugin:o}=e,c=0,l=0,h,d=[],f,p="",E=!0,T,w,m,I,A,b=Mn()+" alt \u21B5";fr(async()=>{ae.enable("vault"),ae.on("vault",pe.Enter,W),ae.on("vault",pe.OpenInBackground,te),ae.on("vault",pe.CreateNote,k),ae.on("vault",pe.OpenInNewPane,X),ae.on("vault",pe.InsertLink,P),ae.on("vault",pe.Tab,H),ae.on("vault",pe.ArrowUp,()=>Z(-1)),ae.on("vault",pe.ArrowDown,()=>Z(1)),ae.on("vault",pe.PrevSearchHistory,S),ae.on("vault",pe.NextSearchHistory,C),ae.on("vault",pe.OpenInNewLeaf,ke),await o.notesIndexer.refreshIndex(),await L()}),ti(()=>{ae.disable("vault")});async function S(){let Y=(await o.searchHistory.getHistory()).filter(Be=>Be);++l>=Y.length&&(l=0),n(2,h=Y[l]),T?.setInputValue(h??"")}async function C(){let Y=(await o.searchHistory.getHistory()).filter(Be=>Be);--l<0&&(l=Y.length?Y.length-1:0),n(2,h=Y[l]),T?.setInputValue(h??"")}let N=null;async function O(){n(5,E=!0),N&&(N.cancel(),N=null),f=new Er(h,{ignoreDiacritics:o.settings.ignoreDiacritics,ignoreArabicDiacritics:o.settings.ignoreArabicDiacritics}),N=(0,sb.cancelable)(new Promise(Y=>{Y(o.searchEngine.getSuggestions(f))})),n(3,d=await N),n(1,c=0),await oe(),n(5,E=!1)}let L=Ti(O,0);function z(Y){!r||(Y?.ctrlKey?X():W(),i.close())}function W(){!r||(ge(r),i.close())}function te(){!r||ge(r,!0)}function X(){!r||(ge(r,!0),i.close())}function ke(){!r||(ge(r,!0,!0),i.close())}function Le(){h&&o.searchHistory.addToHistory(h)}function ge(Y,Be=!1,an=!1){Le();let Bt=Y.matches?.[0]?.offset??0;ja(o.app,Y,Bt,Be,an)}async function Re(Y){await k()}async function k(Y){if(h){try{await Dh(o.app,h,Y?.newLeaf)}catch(Be){new Kt.Notice(Be.message);return}i.close()}}function P(){if(!r)return;let Y=o.app.vault.getMarkdownFiles().find(jr=>jr.path===r.path),Be=o.app.workspace.getActiveFile(),an=o.app.workspace.getActiveViewOfType(Kt.MarkdownView);if(!an?.editor){new Kt.Notice("Omnisearch - Error - No active editor",3e3);return}let Bt;Y&&Be?Bt=o.app.fileManager.generateMarkdownLink(Y,Be.path):Bt=`[[${r.basename}.${Fn(r.path)}]]`;let cr=an.editor.getCursor();an.editor.replaceRange(Bt,cr,cr),cr.ch+=Bt.length,an.editor.setCursor(cr),i.close()}function H(){if(!(r&&(en(r?.path)||!r?.matches.length)))if(Le(),i.close(),r){let Y=o.app.vault.getAbstractFileByPath(r.path);Y&&Y instanceof Kt.TFile&&new hs(o,Y,h).open()}else{let Y=o.app.workspace.getActiveViewOfType(Kt.MarkdownView);Y?.file&&new hs(o,Y.file,h).open()}}function Z(Y){n(1,c=Pa(c+Y,d.length)),oe()}async function oe(){await Ln(),r&&activeWindow.document.querySelector(`[data-result-id="${r.path}"]`)?.scrollIntoView({behavior:"auto",block:"nearest"})}function Ce(Y){Rn[Y?"unshift":"push"](()=>{T=Y,n(6,T)})}let Ue=Y=>n(2,h=Y.detail),sn=(Y,Be)=>n(1,c=Y),Ze=Y=>{Y.button==1&&X()};return t.$$set=Y=>{"modal"in Y&&n(16,i=Y.modal),"previousQuery"in Y&&n(17,a=Y.previousQuery),"plugin"in Y&&n(0,o=Y.plugin)},t.$$.update=()=>{if(t.$$.dirty[0]&131076){e:n(2,h=h??a)}if(t.$$.dirty[0]&4){e:h?L():(n(5,E=!1),n(3,d=[]))}if(t.$$.dirty[0]&10){e:r=d[c]}if(t.$$.dirty[0]&1){e:o.settings.openInNewPane?(n(7,w="\u21B5"),n(8,m=Mn()+" \u21B5"),n(9,I="shift \u21B5"),n(10,A=Mn()+" shift \u21B5")):(n(7,w=Mn()+" \u21B5"),n(8,m="\u21B5"),n(9,I=Mn()+" shift \u21B5"),n(10,A="shift \u21B5"))}if(t.$$.dirty[0]&262144){e:switch(s){case Nt.LoadingCache:n(4,p="Loading cache...");break;case Nt.ReadingFiles:n(4,p="Reading files...");break;case Nt.IndexingFiles:n(4,p="Indexing files...");break;case Nt.WritingCache:L(),n(4,p="Updating cache...");break;default:L(),n(4,p="");break}}},[o,c,h,d,p,E,T,w,m,I,A,b,z,X,Re,H,i,a,s,Ce,Ue,sn,Ze]}var Kt,sb,lb,fb,db,hb=x(()=>{wt();Kt=_e(require("obsidian"));ni();gc();bc();Zt();ci();ut();yi();Zg();Eo();sb=_e(rb());xi();lb=t=>t.length<3;fb=class extends $e{constructor(e){super();et(this,e,RS,kS,qe,{modal:16,previousQuery:17,plugin:0},null,[-1,-1])}},db=fb});function LS(t){let e,n=t[0].textProcessor.highlightText(t[4],t[1].matches)+"";return{c(){e=V("div"),K(e,"class","omnisearch-result__body")},m(r,s){re(r,e,s),e.innerHTML=n},p(r,s){s&19&&n!==(n=r[0].textProcessor.highlightText(r[4],r[1].matches)+"")&&(e.innerHTML=n)},d(r){r&&ne(e)}}}function PS(t){let e,n;return e=new bo({props:{id:t[2].toString(),selected:t[3],$$slots:{default:[LS]},$$scope:{ctx:t}}}),e.$on("auxclick",t[6]),e.$on("click",t[7]),e.$on("mousemove",t[8]),{c(){pt(e.$$.fragment)},m(r,s){ot(e,r,s),n=!0},p(r,[s]){let i={};s&4&&(i.id=r[2].toString()),s&8&&(i.selected=r[3]),s&531&&(i.$$scope={dirty:s,ctx:r}),e.$set(i)},i(r){n||(me(e.$$.fragment,r),n=!0)},o(r){xe(e.$$.fragment,r),n=!1},d(r){Je(e,r)}}}function MS(t,e,n){let r,{plugin:s}=e,{offset:i}=e,{note:a}=e,{index:o=0}=e,{selected:c=!1}=e;function l(f){Tt.call(this,t,f)}function h(f){Tt.call(this,t,f)}function d(f){Tt.call(this,t,f)}return t.$$set=f=>{"plugin"in f&&n(0,s=f.plugin),"offset"in f&&n(5,i=f.offset),"note"in f&&n(1,a=f.note),"index"in f&&n(2,o=f.index),"selected"in f&&n(3,c=f.selected)},t.$$.update=()=>{if(t.$$.dirty&35){e:n(4,r=s.textProcessor.makeExcerpt(a?.content??"",i))}},[s,a,o,c,r,i,l,h,d]}var pb,mb,gb=x(()=>{wt();Xc();pb=class extends $e{constructor(e){super();et(this,e,MS,PS,qe,{plugin:0,offset:5,note:1,index:2,selected:3})}},mb=pb});function bb(t,e,n){let r=t.slice();return r[20]=e[n],r[22]=n,r}function FS(t){let e,n,r;return{c(){e=V("button"),e.textContent="Vault search"},m(s,i){re(s,e,i),n||(r=Ge(e,"click",t[8]),n=!0)},p:Se,d(s){s&&ne(e),n=!1,r()}}}function BS(t){let e,n=Ai.Platform.isMobile&&FS(t);return{c(){e=V("div"),n&&n.c(),K(e,"class","omnisearch-input-container__buttons")},m(r,s){re(r,e,s),n&&n.m(e,null)},p(r,s){Ai.Platform.isMobile&&n.p(r,s)},d(r){r&&ne(e),n&&n.d()}}}function jS(t){let e;return{c(){e=V("div"),e.textContent="We found 0 result for your search here.",Et(e,"text-align","center")},m(n,r){re(n,e,r)},p:Se,i:Se,o:Se,d(n){n&&ne(e)}}}function HS(t){let e,n,r=t[5],s=[];for(let a=0;a<r.length;a+=1)s[a]=_b(bb(t,r,a));let i=a=>xe(s[a],1,1,()=>{s[a]=null});return{c(){for(let a=0;a<s.length;a+=1)s[a].c();e=lr()},m(a,o){for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(a,o);re(a,e,o),n=!0},p(a,o){if(o&241){r=a[5];let c;for(c=0;c<r.length;c+=1){let l=bb(a,r,c);s[c]?(s[c].p(l,o),me(s[c],1)):(s[c]=_b(l),s[c].c(),me(s[c],1),s[c].m(e.parentNode,e))}for(hr(),c=r.length;c<s.length;c+=1)i(c);pr()}},i(a){if(!n){for(let o=0;o<r.length;o+=1)me(s[o]);n=!0}},o(a){s=s.filter(Boolean);for(let o=0;o<s.length;o+=1)xe(s[o]);n=!1},d(a){Da(s,a),a&&ne(e)}}}function _b(t){let e,n;function r(...s){return t[13](t[22],...s)}return e=new mb({props:{plugin:t[0],offset:t[20],note:t[4],index:t[22],selected:t[22]===t[6]}}),e.$on("mousemove",r),e.$on("click",t[14]),e.$on("auxclick",t[15]),{c(){pt(e.$$.fragment)},m(s,i){ot(e,s,i),n=!0},p(s,i){t=s;let a={};i&1&&(a.plugin=t[0]),i&32&&(a.offset=t[20]),i&16&&(a.note=t[4]),i&64&&(a.selected=t[22]===t[6]),e.$set(a)},i(s){n||(me(e.$$.fragment,s),n=!0)},o(s){xe(e.$$.fragment,s),n=!1},d(s){Je(e,s)}}}function US(t){let e,n,r,s,i=[HS,jS],a=[];function o(c,l){return c[5].length&&c[4]?0:1}return e=o(t,-1),n=a[e]=i[e](t),{c(){n.c(),r=lr()},m(c,l){a[e].m(c,l),re(c,r,l),s=!0},p(c,l){let h=e;e=o(c,l),e===h?a[e].p(c,l):(hr(),xe(a[h],1,1,()=>{a[h]=null}),pr(),n=a[e],n?n.p(c,l):(n=a[e]=i[e](c),n.c()),me(n,1),n.m(r.parentNode,r))},i(c){s||(me(n),s=!0)},o(c){xe(n),s=!1},d(c){a[e].d(c),c&&ne(r)}}}function zS(t){let e;return{c(){e=V("span"),e.textContent="to close"},m(n,r){re(n,e,r)},d(n){n&&ne(e)}}}function VS(t){let e;return{c(){e=V("span"),e.textContent="to go back to Vault Search"},m(n,r){re(n,e,r)},d(n){n&&ne(e)}}}function qS(t){let e,n,r,s,i,a,o,c,l,h,d,f,p,E,T,w,m,I,A,b;e=new Fa({props:{plugin:t[0],placeholder:"Omnisearch - File",initialValue:t[2],$$slots:{default:[BS]},$$scope:{ctx:t}}}),e.$on("input",t[12]),r=new Ba({props:{$$slots:{default:[US]},$$scope:{ctx:t}}});function S(O,L){return O[1]?VS:zS}let C=S(t,-1),N=C(t);return{c(){pt(e.$$.fragment),n=ie(),pt(r.$$.fragment),s=ie(),i=V("div"),a=V("div"),a.innerHTML='<span class="prompt-instruction-command">\u2191\u2193</span><span>to navigate</span>',o=ie(),c=V("div"),c.innerHTML='<span class="prompt-instruction-command">\u21B5</span><span>to open</span>',l=ie(),h=V("div"),h.innerHTML=`<span class="prompt-instruction-command">tab</span>
    <span>to switch to Vault Search</span>`,d=ie(),f=V("div"),p=V("span"),p.textContent="esc",E=ie(),N.c(),T=ie(),w=V("div"),m=V("span"),m.textContent=`${Mn()} \u21B5`,I=ie(),A=V("span"),A.textContent="to open in a new pane",K(a,"class","prompt-instruction"),K(c,"class","prompt-instruction"),K(h,"class","prompt-instruction"),K(p,"class","prompt-instruction-command"),K(f,"class","prompt-instruction"),K(m,"class","prompt-instruction-command"),K(w,"class","prompt-instruction"),K(i,"class","prompt-instructions")},m(O,L){ot(e,O,L),re(O,n,L),ot(r,O,L),re(O,s,L),re(O,i,L),j(i,a),j(i,o),j(i,c),j(i,l),j(i,h),j(i,d),j(i,f),j(f,p),j(f,E),N.m(f,null),j(i,T),j(i,w),j(w,m),j(w,I),j(w,A),b=!0},p(O,[L]){let z={};L&1&&(z.plugin=O[0]),L&4&&(z.initialValue=O[2]),L&8388608&&(z.$$scope={dirty:L,ctx:O}),e.$set(z);let W={};L&8388721&&(W.$$scope={dirty:L,ctx:O}),r.$set(W),C!==(C=S(O,L))&&(N.d(1),N=C(O),N&&(N.c(),N.m(f,null)))},i(O){b||(me(e.$$.fragment,O),me(r.$$.fragment,O),b=!0)},o(O){xe(e.$$.fragment,O),xe(r.$$.fragment,O),b=!1},d(O){Je(e,O),O&&ne(n),Je(r,O),O&&ne(s),O&&ne(i),N.d()}}}function KS(t,e,n){let r=t.find(s=>s.offset>e);return r?t.filter(s=>s.offset>e&&s.offset<=r.offset+n):[]}function YS(t,e,n){let{plugin:r}=e,{modal:s}=e,{parent:i=null}=e,{singleFilePath:a=""}=e,{previousQuery:o}=e,c,l=[],h=0,d,f;fr(()=>{ae.enable("infile"),ae.on("infile",pe.Enter,m),ae.on("infile",pe.OpenInNewPane,w),ae.on("infile",pe.ArrowUp,()=>E(-1)),ae.on("infile",pe.ArrowDown,()=>E(1)),ae.on("infile",pe.Tab,I)}),ti(()=>{ae.disable("infile")});function p(N){let O=[],L=-1,z=0;for(;++z<100;){let W=KS(N,L,ri);if(!W.length)break;L=W.last().offset,O.push(W)}return O}function E(N){n(6,h=Pa(h+N,l.length)),T()}async function T(){await Ln(),document.querySelector(`[data-result-id="${h}"]`)?.scrollIntoView({behavior:"auto",block:"nearest"})}async function w(){return m(!0)}async function m(N=!1){if(d){s.close(),i&&i.close();let O=r.textProcessor.stringsToRegex(d.foundWords);O.exec(d.content),await ja(r.app,d,O.lastIndex,N);let L=r.app.workspace.getActiveViewOfType(Ai.MarkdownView);if(!L)return;let z=l[h]??0,W=L.editor.offsetToPos(z);W.ch=0,L.editor.setCursor(W),L.editor.scrollIntoView({from:{line:W.line-10,ch:0},to:{line:W.line+10,ch:0}})}}function I(){new Gn(r,c??o).open(),s.close()}let A=N=>n(3,c=N.detail),b=(N,O)=>n(6,h=N),S=N=>m(N.ctrlKey),C=N=>{N.button==1&&m(!0)};return t.$$set=N=>{"plugin"in N&&n(0,r=N.plugin),"modal"in N&&n(9,s=N.modal),"parent"in N&&n(1,i=N.parent),"singleFilePath"in N&&n(10,a=N.singleFilePath),"previousQuery"in N&&n(2,o=N.previousQuery)},t.$$.update=()=>{if(t.$$.dirty&4){e:n(3,c=o??"")}if(t.$$.dirty&3081){e:(async()=>{c&&(n(11,f=new Er(c,{ignoreDiacritics:r.settings.ignoreDiacritics,ignoreArabicDiacritics:r.settings.ignoreArabicDiacritics})),n(4,d=(await r.searchEngine.getSuggestions(f,{singleFilePath:a}))[0]??null)),n(6,h=0),await T()})()}if(t.$$.dirty&2064){e:if(d){let N=p(d.matches),O=f.getExactTerms();O.length&&(N=N.filter(L=>O.every(z=>L.some(W=>W.match.includes(z))))),n(5,l=N.map(L=>Math.round(L.first().offset)))}}},[r,i,o,c,d,l,h,m,I,s,a,f,A,b,S,C]}var Ai,Eb,Tb,xb=x(()=>{wt();gc();Zt();ut();ni();Ai=_e(require("obsidian"));bc();yi();gb();Eo();ci();Eb=class extends $e{constructor(e){super();et(this,e,YS,qS,qe,{plugin:0,modal:9,parent:1,singleFilePath:10,previousQuery:2})}},Tb=Eb});var xo,al,Gn,hs,yi=x(()=>{xo=_e(require("obsidian"));hb();xb();Zt();al=class extends xo.Modal{constructor(e){super(e.app);let n=e.settings;this.modalEl.replaceChildren(),this.modalEl.addClass("omnisearch-modal","prompt"),this.modalEl.removeClass("modal"),this.modalEl.tabIndex=-1,this.scope.register([],"ArrowDown",c=>{c.preventDefault(),ae.emit(pe.ArrowDown)}),this.scope.register([],"ArrowUp",c=>{c.preventDefault(),ae.emit(pe.ArrowUp)});for(let c of[{k:"J",dir:"down"},{k:"K",dir:"up"}])for(let l of["Ctrl","Mod"])this.scope.register([l],c.k,h=>{n.vimLikeNavigationShortcut&&ae.emit("arrow-"+c.dir)});for(let c of[{k:"N",dir:"down"},{k:"P",dir:"up"}])for(let l of["Ctrl","Mod"])this.scope.register([l],c.k,h=>{n.vimLikeNavigationShortcut&&ae.emit("arrow-"+c.dir)});let r,s,i,a,o=["Mod","Alt"];n.openInNewPane?(r=["Mod"],s=[],i=["Mod","Shift"],a=["Shift"]):(r=[],s=["Mod"],i=["Shift"],a=["Mod","Shift"]),this.scope.register(s,"Enter",c=>{c.preventDefault(),ae.emit(pe.OpenInNewPane)}),this.scope.register(o,"Enter",c=>{c.preventDefault(),ae.emit(pe.OpenInNewLeaf)}),this.scope.register(["Alt"],"Enter",c=>{c.preventDefault(),ae.emit(pe.InsertLink)}),this.scope.register(i,"Enter",c=>{c.preventDefault(),ae.emit(pe.CreateNote)}),this.scope.register(a,"Enter",c=>{c.preventDefault(),ae.emit(pe.CreateNote,{newLeaf:!0})}),this.scope.register(r,"Enter",c=>{cc()||(c.preventDefault(),ae.emit(pe.Enter))}),this.scope.register(["Ctrl"],"O",c=>{cc()||(c.preventDefault(),ae.emit(pe.OpenInBackground))}),this.scope.register([],"Tab",c=>{c.preventDefault(),ae.emit(pe.Tab)}),this.scope.register(["Alt"],"ArrowDown",c=>{c.preventDefault(),ae.emit(pe.NextSearchHistory)}),this.scope.register(["Alt"],"ArrowUp",c=>{c.preventDefault(),ae.emit(pe.PrevSearchHistory)}),this.scope.register(["Ctrl"],"G",c=>{ae.emit(Ra.ToggleExcerpts)})}},Gn=class extends al{constructor(e,n){super(e);let r=e.app.workspace.getActiveViewOfType(xo.MarkdownView)?.editor.getSelection();e.searchHistory.getHistory().then(s=>{let i=e.settings.showPreviousQueryResults?s[0]:null,a=new db({target:this.modalEl,props:{plugin:e,modal:this,previousQuery:n||r||i||""}});this.onClose=()=>{a.$destroy()}})}},hs=class extends al{constructor(e,n,r="",s){super(e);let i=new Tb({target:this.modalEl,props:{plugin:e,modal:this,singleFilePath:n.path,parent:s,previousQuery:r}});s&&s.containerEl.toggleVisibility(!1),this.onClose=()=>{s&&s.containerEl.toggleVisibility(!0),i.$destroy()}}}});function WS(t,e){return e.map(n=>{let{score:r,path:s,basename:i,foundWords:a,matches:o,content:c}=n,l=t.textProcessor.makeExcerpt(c,o[0]?.offset??-1);return{score:r,vault:t.app.vault.getName(),path:s,basename:i,foundWords:a,matches:o.map(d=>({match:d.match,offset:d.offset})),excerpt:l}})}function Ab(){yb=!0,yo.forEach(t=>t())}function Sb(t){if(Cb)return;Cb=!0,t.registerObsidianProtocolHandler("omnisearch",n=>{new Gn(t,n.query).open()});let e=ol(t);globalThis.omnisearch=e,t.app.plugins.plugins.omnisearch.api=e}function ol(t){return{async search(e){let n=new Er(e,{ignoreDiacritics:t.settings.ignoreDiacritics,ignoreArabicDiacritics:t.settings.ignoreArabicDiacritics}),r=await t.searchEngine.getSuggestions(n);return WS(t,r)},registerOnIndexed(e){yo.push(e),yb&&e()},unregisterOnIndexed(e){yo=yo.filter(n=>n!==e)},refreshIndex:t.notesIndexer.refreshIndex}}var yb,yo,Cb,ul=x(()=>{Eo();yi();yb=!1,yo=[];Cb=!1});var K1=kn(Ie=>{"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}}Ie.defaults=Xo();function D1(t){Ie.defaults=t}var O1=/[&<>"']/,wI=new RegExp(O1.source,"g"),k1=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,NI=new RegExp(k1.source,"g"),vI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},R1=t=>vI[t];function St(t,e){if(e){if(O1.test(t))return t.replace(wI,R1)}else if(k1.test(t))return t.replace(NI,R1);return t}var DI=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function OI(t){return t.replace(DI,(e,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}var kI=/(^|[^\[])\^/g;function Ee(t,e){let n=typeof t=="string"?t:t.source;e=e||"";let r={replace:(s,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(kI,"$1"),n=n.replace(s,a),r},getRegex:()=>new RegExp(n,e)};return r}function L1(t){try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}var qi={exec:()=>null};function P1(t,e){let n=t.replace(/\|/g,(i,a,o)=>{let c=!1,l=a;for(;--l>=0&&o[l]==="\\";)c=!c;return c?"|":" |"}),r=n.split(/ \|/),s=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(/\\\|/g,"|");return r}function Zo(t,e,n){let r=t.length;if(r===0)return"";let s=0;for(;s<r;){let i=t.charAt(r-s-1);if(i===e&&!n)s++;else if(i!==e&&n)s++;else break}return t.slice(0,r-s)}function RI(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return-1}function M1(t,e,n,r){let s=e.href,i=e.title?St(e.title):null,a=t[1].replace(/\\([\[\]])/g,"$1");if(t[0].charAt(0)!=="!"){r.state.inLink=!0;let o={type:"link",raw:n,href:s,title:i,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,o}return{type:"image",raw:n,href:s,title:i,text:St(a)}}function LI(t,e){let n=t.match(/^(\s+)(?:```)/);if(n===null)return e;let r=n[1];return e.split(`
`).map(s=>{let i=s.match(/^\s+/);if(i===null)return s;let[a]=i;return a.length>=r.length?s.slice(r.length):s}).join(`
`)}var Is=class{options;rules;lexer;constructor(e){this.options=e||Ie.defaults}space(e){let n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(e){let n=this.rules.block.code.exec(e);if(n){let r=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Zo(r,`
`)}}}fences(e){let n=this.rules.block.fences.exec(e);if(n){let r=n[0],s=LI(r,n[3]||"");return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:s}}}heading(e){let n=this.rules.block.heading.exec(e);if(n){let r=n[2].trim();if(/#$/.test(r)){let s=Zo(r,"#");(this.options.pedantic||!s||/ $/.test(s))&&(r=s.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){let n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:n[0]}}blockquote(e){let n=this.rules.block.blockquote.exec(e);if(n){let r=n[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
    $1`);r=Zo(r.replace(/^ *>[ \t]?/gm,""),`
`);let s=this.lexer.state.top;this.lexer.state.top=!0;let i=this.lexer.blockTokens(r);return this.lexer.state.top=s,{type:"blockquote",raw:n[0],tokens:i,text:r}}}list(e){let n=this.rules.block.list.exec(e);if(n){let r=n[1].trim(),s=r.length>1,i={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");let a=new RegExp(`^( {0,3}${r})((?:[	 ][^\\n]*)?(?:\\n|$))`),o="",c="",l=!1;for(;e;){let h=!1;if(!(n=a.exec(e))||this.rules.block.hr.test(e))break;o=n[0],e=e.substring(o.length);let d=n[2].split(`
`,1)[0].replace(/^\t+/,m=>" ".repeat(3*m.length)),f=e.split(`
`,1)[0],p=0;this.options.pedantic?(p=2,c=d.trimStart()):(p=n[2].search(/[^ ]/),p=p>4?1:p,c=d.slice(p),p+=n[1].length);let E=!1;if(!d&&/^ *$/.test(f)&&(o+=f+`
`,e=e.substring(f.length+1),h=!0),!h){let m=new RegExp(`^ {0,${Math.min(3,p-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),I=new RegExp(`^ {0,${Math.min(3,p-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),A=new RegExp(`^ {0,${Math.min(3,p-1)}}(?:\`\`\`|~~~)`),b=new RegExp(`^ {0,${Math.min(3,p-1)}}#`);for(;e;){let S=e.split(`
`,1)[0];if(f=S,this.options.pedantic&&(f=f.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),A.test(f)||b.test(f)||m.test(f)||I.test(e))break;if(f.search(/[^ ]/)>=p||!f.trim())c+=`
`+f.slice(p);else{if(E||d.search(/[^ ]/)>=4||A.test(d)||b.test(d)||I.test(d))break;c+=`
`+f}!E&&!f.trim()&&(E=!0),o+=S+`
`,e=e.substring(S.length+1),d=f.slice(p)}}i.loose||(l?i.loose=!0:/\n *\n *$/.test(o)&&(l=!0));let T=null,w;this.options.gfm&&(T=/^\[[ xX]\] /.exec(c),T&&(w=T[0]!=="[ ] ",c=c.replace(/^\[[ xX]\] +/,""))),i.items.push({type:"list_item",raw:o,task:!!T,checked:w,loose:!1,text:c,tokens:[]}),i.raw+=o}i.items[i.items.length-1].raw=o.trimEnd(),i.items[i.items.length-1].text=c.trimEnd(),i.raw=i.raw.trimEnd();for(let h=0;h<i.items.length;h++)if(this.lexer.state.top=!1,i.items[h].tokens=this.lexer.blockTokens(i.items[h].text,[]),!i.loose){let d=i.items[h].tokens.filter(p=>p.type==="space"),f=d.length>0&&d.some(p=>/\n.*\n/.test(p.raw));i.loose=f}if(i.loose)for(let h=0;h<i.items.length;h++)i.items[h].loose=!0;return i}}html(e){let n=this.rules.block.html.exec(e);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(e){let n=this.rules.block.def.exec(e);if(n){let r=n[1].toLowerCase().replace(/\s+/g," "),s=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:s,title:i}}}table(e){let n=this.rules.block.table.exec(e);if(!n||!/[:|]/.test(n[2]))return;let r=P1(n[1]),s=n[2].replace(/^\||\| *$/g,"").split("|"),i=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
`):[],a={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===s.length){for(let o of s)/^ *-+: *$/.test(o)?a.align.push("right"):/^ *:-+: *$/.test(o)?a.align.push("center"):/^ *:-+ *$/.test(o)?a.align.push("left"):a.align.push(null);for(let o of r)a.header.push({text:o,tokens:this.lexer.inline(o)});for(let o of i)a.rows.push(P1(o,a.header.length).map(c=>({text:c,tokens:this.lexer.inline(c)})));return a}}lheading(e){let n=this.rules.block.lheading.exec(e);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(e){let n=this.rules.block.paragraph.exec(e);if(n){let r=n[1].charAt(n[1].length-1)===`
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(e){let n=this.rules.block.text.exec(e);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(e){let n=this.rules.inline.escape.exec(e);if(n)return{type:"escape",raw:n[0],text:St(n[1])}}tag(e){let n=this.rules.inline.tag.exec(e);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(e){let n=this.rules.inline.link.exec(e);if(n){let r=n[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;let a=Zo(r.slice(0,-1),"\\");if((r.length-a.length)%2==0)return}else{let a=RI(n[2],"()");if(a>-1){let c=(n[0].indexOf("!")===0?5:4)+n[1].length+a;n[2]=n[2].substring(0,a),n[0]=n[0].substring(0,c).trim(),n[3]=""}}let s=n[2],i="";if(this.options.pedantic){let a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);a&&(s=a[1],i=a[3])}else i=n[3]?n[3].slice(1,-1):"";return s=s.trim(),/^</.test(s)&&(this.options.pedantic&&!/>$/.test(r)?s=s.slice(1):s=s.slice(1,-1)),M1(n,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(e,n){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let s=(r[2]||r[1]).replace(/\s+/g," "),i=n[s.toLowerCase()];if(!i){let a=r[0].charAt(0);return{type:"text",raw:a,text:a}}return M1(r,i,r[0],this.lexer)}}emStrong(e,n,r=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(!s||s[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(s[1]||s[2]||"")||!r||this.rules.inline.punctuation.exec(r)){let a=[...s[0]].length-1,o,c,l=a,h=0,d=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,n=n.slice(-1*e.length+a);(s=d.exec(n))!=null;){if(o=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!o)continue;if(c=[...o].length,s[3]||s[4]){l+=c;continue}else if((s[5]||s[6])&&a%3&&!((a+c)%3)){h+=c;continue}if(l-=c,l>0)continue;c=Math.min(c,c+l+h);let f=[...s[0]][0].length,p=e.slice(0,a+s.index+f+c);if(Math.min(a,c)%2){let T=p.slice(1,-1);return{type:"em",raw:p,text:T,tokens:this.lexer.inlineTokens(T)}}let E=p.slice(2,-2);return{type:"strong",raw:p,text:E,tokens:this.lexer.inlineTokens(E)}}}}codespan(e){let n=this.rules.inline.code.exec(e);if(n){let r=n[2].replace(/\n/g," "),s=/[^ ]/.test(r),i=/^ /.test(r)&&/ $/.test(r);return s&&i&&(r=r.substring(1,r.length-1)),r=St(r,!0),{type:"codespan",raw:n[0],text:r}}}br(e){let n=this.rules.inline.br.exec(e);if(n)return{type:"br",raw:n[0]}}del(e){let n=this.rules.inline.del.exec(e);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(e){let n=this.rules.inline.autolink.exec(e);if(n){let r,s;return n[2]==="@"?(r=St(n[1]),s="mailto:"+r):(r=St(n[1]),s=r),{type:"link",raw:n[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(e){let n;if(n=this.rules.inline.url.exec(e)){let r,s;if(n[2]==="@")r=St(n[0]),s="mailto:"+r;else{let i;do i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(i!==n[0]);r=St(n[0]),n[1]==="www."?s="http://"+n[0]:s=n[0]}return{type:"link",raw:n[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let n=this.rules.inline.text.exec(e);if(n){let r;return this.lexer.state.inRawBlock?r=n[0]:r=St(n[0]),{type:"text",raw:n[0],text:r}}}},PI=/^(?: *(?:\n|$))+/,MI=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,FI=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ki=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,BI=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,F1=/(?:[*+-]|\d{1,9}[.)])/,B1=Ee(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,F1).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(),hf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,jI=/^[^\n]+/,pf=/(?!\s*\])(?:\\.|[^\[\]\\])+/,HI=Ee(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",pf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),UI=Ee(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,F1).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",mf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,zI=Ee("^ {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",mf).replace("tag",Jo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),j1=Ee(hf).replace("hr",Ki).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(),VI=Ee(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",j1).getRegex(),gf={blockquote:VI,code:MI,def:HI,fences:FI,heading:BI,hr:Ki,html:zI,lheading:B1,list:UI,newline:PI,paragraph:j1,table:qi,text:jI},H1=Ee("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ki).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(),qI=ce(B({},gf),{table:H1,paragraph:Ee(hf).replace("hr",Ki).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",H1).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()}),KI=ce(B({},gf),{html:Ee(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",mf).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:qi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ee(hf).replace("hr",Ki).replace("heading",` *#{1,6} *[^
]`).replace("lheading",B1).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),U1=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,YI=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,z1=/^( {2,}|\\)\n(?!\s*$)/,WI=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Yi="\\p{P}\\p{S}",GI=Ee(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Yi).getRegex(),$I=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,QI=Ee(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Yi).getRegex(),XI=Ee("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Yi).getRegex(),ZI=Ee("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Yi).getRegex(),JI=Ee(/\\([punct])/,"gu").replace(/punct/g,Yi).getRegex(),ew=Ee(/^<(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(),tw=Ee(mf).replace("(?:-->|$)","-->").getRegex(),nw=Ee("^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",tw).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),eu=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,rw=Ee(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",eu).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),V1=Ee(/^!?\[(label)\]\[(ref)\]/).replace("label",eu).replace("ref",pf).getRegex(),q1=Ee(/^!?\[(ref)\](?:\[\])?/).replace("ref",pf).getRegex(),sw=Ee("reflink|nolink(?!\\()","g").replace("reflink",V1).replace("nolink",q1).getRegex(),bf={_backpedal:qi,anyPunctuation:JI,autolink:ew,blockSkip:$I,br:z1,code:YI,del:qi,emStrongLDelim:QI,emStrongRDelimAst:XI,emStrongRDelimUnd:ZI,escape:U1,link:rw,nolink:q1,punctuation:GI,reflink:V1,reflinkSearch:sw,tag:nw,text:WI,url:qi},iw=ce(B({},bf),{link:Ee(/^!?\[(label)\]\((.*?)\)/).replace("label",eu).getRegex(),reflink:Ee(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",eu).getRegex()}),_f=ce(B({},bf),{escape:Ee(U1).replace("])","~|])").getRegex(),url:Ee(/^((?: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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),aw=ce(B({},_f),{br:Ee(z1).replace("{2,}","*").getRegex(),text:Ee(_f.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),tu={normal:gf,gfm:qI,pedantic:KI},Wi={normal:bf,gfm:_f,breaks:aw,pedantic:iw},vt=class{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Ie.defaults,this.options.tokenizer=this.options.tokenizer||new Is,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 n={block:tu.normal,inline:Wi.normal};this.options.pedantic?(n.block=tu.pedantic,n.inline=Wi.pedantic):this.options.gfm&&(n.block=tu.gfm,this.options.breaks?n.inline=Wi.breaks:n.inline=Wi.gfm),this.tokenizer.rules=n}static get rules(){return{block:tu,inline:Wi}}static lex(e,n){return new vt(n).lex(e)}static lexInline(e,n){return new vt(n).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
`),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[]){this.options.pedantic?e=e.replace(/\t/g,"    ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(o,c,l)=>c+"    ".repeat(l.length));let r,s,i,a;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(o=>(r=o.call({lexer:this},e,n))?(e=e.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length),r.raw.length===1&&n.length>0?n[n.length-1].raw+=`
`:n.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length),s=n[n.length-1],s&&(s.type==="paragraph"||s.type==="text")?(s.raw+=`
`+r.raw,s.text+=`
`+r.text,this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length),s=n[n.length-1],s&&(s.type==="paragraph"||s.type==="text")?(s.raw+=`
`+r.raw,s.text+=`
`+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=s.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),n.push(r);continue}if(i=e,this.options.extensions&&this.options.extensions.startBlock){let o=1/0,c=e.slice(1),l;this.options.extensions.startBlock.forEach(h=>{l=h.call({lexer:this},c),typeof l=="number"&&l>=0&&(o=Math.min(o,l))}),o<1/0&&o>=0&&(i=e.substring(0,o+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){s=n[n.length-1],a&&s.type==="paragraph"?(s.raw+=`
`+r.raw,s.text+=`
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(r),a=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length),s=n[n.length-1],s&&s.type==="text"?(s.raw+=`
`+r.raw,s.text+=`
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(r);continue}if(e){let o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let r,s,i,a=e,o,c,l;if(this.tokens.links){let h=Object.keys(this.tokens.links);if(h.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)h.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,o.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(c||(l=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(h=>(r=h.call({lexer:this},e,n))?(e=e.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),s=n[n.length-1],s&&r.type==="text"&&s.type==="text"?(s.raw+=r.raw,s.text+=r.text):n.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length),s=n[n.length-1],s&&r.type==="text"&&s.type==="text"?(s.raw+=r.raw,s.text+=r.text):n.push(r);continue}if(r=this.tokenizer.emStrong(e,a,l)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),n.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),n.push(r);continue}if(i=e,this.options.extensions&&this.options.extensions.startInline){let h=1/0,d=e.slice(1),f;this.options.extensions.startInline.forEach(p=>{f=p.call({lexer:this},d),typeof f=="number"&&f>=0&&(h=Math.min(h,f))}),h<1/0&&h>=0&&(i=e.substring(0,h+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(l=r.raw.slice(-1)),c=!0,s=n[n.length-1],s&&s.type==="text"?(s.raw+=r.raw,s.text+=r.text):n.push(r);continue}if(e){let h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return n}},ws=class{options;constructor(e){this.options=e||Ie.defaults}code(e,n,r){let s=(n||"").match(/^\S*/)?.[0];return e=e.replace(/\n$/,"")+`
`,s?'<pre><code class="language-'+St(s)+'">'+(r?e:St(e,!0))+`</code></pre>
`:"<pre><code>"+(r?e:St(e,!0))+`</code></pre>
`}blockquote(e){return`<blockquote>
${e}</blockquote>
`}html(e,n){return e}heading(e,n,r){return`<h${n}>${e}</h${n}>
`}hr(){return`<hr>
`}list(e,n,r){let s=n?"ol":"ul",i=n&&r!==1?' start="'+r+'"':"";return"<"+s+i+`>
`+e+"</"+s+`>
`}listitem(e,n,r){return`<li>${e}</li>
`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(e){return`<p>${e}</p>
`}table(e,n){return n&&(n=`<tbody>${n}</tbody>`),`<table>
<thead>
`+e+`</thead>
`+n+`</table>
`}tablerow(e){return`<tr>
${e}</tr>
`}tablecell(e,n){let r=n.header?"th":"td";return(n.align?`<${r} align="${n.align}">`:`<${r}>`)+e+`</${r}>
`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return"<br>"}del(e){return`<del>${e}</del>`}link(e,n,r){let s=L1(e);if(s===null)return r;e=s;let i='<a href="'+e+'"';return n&&(i+=' title="'+n+'"'),i+=">"+r+"</a>",i}image(e,n,r){let s=L1(e);if(s===null)return r;e=s;let i=`<img src="${e}" alt="${r}"`;return n&&(i+=` title="${n}"`),i+=">",i}text(e){return e}},Gi=class{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,n,r){return""+r}image(e,n,r){return""+r}br(){return""}},Dt=class{options;renderer;textRenderer;constructor(e){this.options=e||Ie.defaults,this.options.renderer=this.options.renderer||new ws,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Gi}static parse(e,n){return new Dt(n).parse(e)}static parseInline(e,n){return new Dt(n).parseInline(e)}parse(e,n=!0){let r="";for(let s=0;s<e.length;s++){let i=e[s];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){let a=i,o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(a.type)){r+=o||"";continue}}switch(i.type){case"space":continue;case"hr":{r+=this.renderer.hr();continue}case"heading":{let a=i;r+=this.renderer.heading(this.parseInline(a.tokens),a.depth,OI(this.parseInline(a.tokens,this.textRenderer)));continue}case"code":{let a=i;r+=this.renderer.code(a.text,a.lang,!!a.escaped);continue}case"table":{let a=i,o="",c="";for(let h=0;h<a.header.length;h++)c+=this.renderer.tablecell(this.parseInline(a.header[h].tokens),{header:!0,align:a.align[h]});o+=this.renderer.tablerow(c);let l="";for(let h=0;h<a.rows.length;h++){let d=a.rows[h];c="";for(let f=0;f<d.length;f++)c+=this.renderer.tablecell(this.parseInline(d[f].tokens),{header:!1,align:a.align[f]});l+=this.renderer.tablerow(c)}r+=this.renderer.table(o,l);continue}case"blockquote":{let a=i,o=this.parse(a.tokens);r+=this.renderer.blockquote(o);continue}case"list":{let a=i,o=a.ordered,c=a.start,l=a.loose,h="";for(let d=0;d<a.items.length;d++){let f=a.items[d],p=f.checked,E=f.task,T="";if(f.task){let w=this.renderer.checkbox(!!p);l?f.tokens.length>0&&f.tokens[0].type==="paragraph"?(f.tokens[0].text=w+" "+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=w+" "+f.tokens[0].tokens[0].text)):f.tokens.unshift({type:"text",text:w+" "}):T+=w+" "}T+=this.parse(f.tokens,l),h+=this.renderer.listitem(T,E,!!p)}r+=this.renderer.list(h,o,c);continue}case"html":{let a=i;r+=this.renderer.html(a.text,a.block);continue}case"paragraph":{let a=i;r+=this.renderer.paragraph(this.parseInline(a.tokens));continue}case"text":{let a=i,o=a.tokens?this.parseInline(a.tokens):a.text;for(;s+1<e.length&&e[s+1].type==="text";)a=e[++s],o+=`
`+(a.tokens?this.parseInline(a.tokens):a.text);r+=n?this.renderer.paragraph(o):o;continue}default:{let a='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}parseInline(e,n){n=n||this.renderer;let r="";for(let s=0;s<e.length;s++){let i=e[s];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){let a=this.options.extensions.renderers[i.type].call({parser:this},i);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=a||"";continue}}switch(i.type){case"escape":{let a=i;r+=n.text(a.text);break}case"html":{let a=i;r+=n.html(a.text);break}case"link":{let a=i;r+=n.link(a.href,a.title,this.parseInline(a.tokens,n));break}case"image":{let a=i;r+=n.image(a.href,a.title,a.text);break}case"strong":{let a=i;r+=n.strong(this.parseInline(a.tokens,n));break}case"em":{let a=i;r+=n.em(this.parseInline(a.tokens,n));break}case"codespan":{let a=i;r+=n.codespan(a.text);break}case"br":{r+=n.br();break}case"del":{let a=i;r+=n.del(this.parseInline(a.tokens,n));break}case"text":{let a=i;r+=n.text(a.text);break}default:{let a='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}},wr=class{options;constructor(e){this.options=e||Ie.defaults}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}};sh(wr,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var Ef=class{defaults=Xo();options=this.setOptions;parse=this.#e(vt.lex,Dt.parse);parseInline=this.#e(vt.lexInline,Dt.parseInline);Parser=Dt;Renderer=ws;TextRenderer=Gi;Lexer=vt;Tokenizer=Is;Hooks=wr;constructor(...e){this.use(...e)}walkTokens(e,n){let r=[];for(let s of e)switch(r=r.concat(n.call(this,s)),s.type){case"table":{let i=s;for(let a of i.header)r=r.concat(this.walkTokens(a.tokens,n));for(let a of i.rows)for(let o of a)r=r.concat(this.walkTokens(o.tokens,n));break}case"list":{let i=s;r=r.concat(this.walkTokens(i.items,n));break}default:{let i=s;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(a=>{let o=i[a].flat(1/0);r=r.concat(this.walkTokens(o,n))}):i.tokens&&(r=r.concat(this.walkTokens(i.tokens,n)))}}return r}use(...e){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{let s=B({},r);if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let a=n.renderers[i.name];a?n.renderers[i.name]=function(...o){let c=i.renderer.apply(this,o);return c===!1&&(c=a.apply(this,o)),c}:n.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=n[i.level];a?a.unshift(i.tokenizer):n[i.level]=[i.tokenizer],i.start&&(i.level==="block"?n.startBlock?n.startBlock.push(i.start):n.startBlock=[i.start]:i.level==="inline"&&(n.startInline?n.startInline.push(i.start):n.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(n.childTokens[i.name]=i.childTokens)}),s.extensions=n),r.renderer){let i=this.defaults.renderer||new ws(this.defaults);for(let a in r.renderer){if(!(a in i))throw new Error(`renderer '${a}' does not exist`);if(a==="options")continue;let o=a,c=r.renderer[o],l=i[o];i[o]=(...h)=>{let d=c.apply(i,h);return d===!1&&(d=l.apply(i,h)),d||""}}s.renderer=i}if(r.tokenizer){let i=this.defaults.tokenizer||new Is(this.defaults);for(let a in r.tokenizer){if(!(a in i))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let o=a,c=r.tokenizer[o],l=i[o];i[o]=(...h)=>{let d=c.apply(i,h);return d===!1&&(d=l.apply(i,h)),d}}s.tokenizer=i}if(r.hooks){let i=this.defaults.hooks||new wr;for(let a in r.hooks){if(!(a in i))throw new Error(`hook '${a}' does not exist`);if(a==="options")continue;let o=a,c=r.hooks[o],l=i[o];wr.passThroughHooks.has(a)?i[o]=h=>{if(this.defaults.async)return Promise.resolve(c.call(i,h)).then(f=>l.call(i,f));let d=c.call(i,h);return l.call(i,d)}:i[o]=(...h)=>{let d=c.apply(i,h);return d===!1&&(d=l.apply(i,h)),d}}s.hooks=i}if(r.walkTokens){let i=this.defaults.walkTokens,a=r.walkTokens;s.walkTokens=function(o){let c=[];return c.push(a.call(this,o)),i&&(c=c.concat(i.call(this,o))),c}}this.defaults=B(B({},this.defaults),s)}),this}setOptions(e){return this.defaults=B(B({},this.defaults),e),this}lexer(e,n){return vt.lex(e,n??this.defaults)}parser(e,n){return Dt.parse(e,n??this.defaults)}#e(e,n){return(r,s)=>{let i=B({},s),a=B(B({},this.defaults),i);this.defaults.async===!0&&i.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 o=this.#t(!!a.silent,!!a.async);if(typeof r=="undefined"||r===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a),a.async)return Promise.resolve(a.hooks?a.hooks.preprocess(r):r).then(c=>e(c,a)).then(c=>a.hooks?a.hooks.processAllTokens(c):c).then(c=>a.walkTokens?Promise.all(this.walkTokens(c,a.walkTokens)).then(()=>c):c).then(c=>n(c,a)).then(c=>a.hooks?a.hooks.postprocess(c):c).catch(o);try{a.hooks&&(r=a.hooks.preprocess(r));let c=e(r,a);a.hooks&&(c=a.hooks.processAllTokens(c)),a.walkTokens&&this.walkTokens(c,a.walkTokens);let l=n(c,a);return a.hooks&&(l=a.hooks.postprocess(l)),l}catch(c){return o(c)}}}#t(e,n){return r=>{if(r.message+=`
Please report this to https://github.com/markedjs/marked.`,e){let s="<p>An error occurred:</p><pre>"+St(r.message+"",!0)+"</pre>";return n?Promise.resolve(s):s}if(n)return Promise.reject(r);throw r}}},Nr=new Ef;function be(t,e){return Nr.parse(t,e)}be.options=be.setOptions=function(t){return Nr.setOptions(t),be.defaults=Nr.defaults,D1(be.defaults),be};be.getDefaults=Xo;be.defaults=Ie.defaults;be.use=function(...t){return Nr.use(...t),be.defaults=Nr.defaults,D1(be.defaults),be};be.walkTokens=function(t,e){return Nr.walkTokens(t,e)};be.parseInline=Nr.parseInline;be.Parser=Dt;be.parser=Dt.parse;be.Renderer=ws;be.TextRenderer=Gi;be.Lexer=vt;be.lexer=vt.lex;be.Tokenizer=Is;be.Hooks=wr;be.parse=be;var ow=be.options,uw=be.setOptions,cw=be.use,lw=be.walkTokens,fw=be.parseInline,dw=be,hw=Dt.parse,pw=vt.lex;Ie.Hooks=wr;Ie.Lexer=vt;Ie.Marked=Ef;Ie.Parser=Dt;Ie.Renderer=ws;Ie.TextRenderer=Gi;Ie.Tokenizer=Is;Ie.getDefaults=Xo;Ie.lexer=pw;Ie.marked=be;Ie.options=ow;Ie.parse=dw;Ie.parseInline=fw;Ie.parser=hw;Ie.setOptions=uw;Ie.use=cw;Ie.walkTokens=lw});function Y1(t){return t.type===de.Tag||t.type===de.Script||t.type===de.Style}var de,W1,G1,$1,Q1,X1,Z1,J1,e_,t_,Ns=x(()=>{(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(de||(de={}));W1=de.Root,G1=de.Text,$1=de.Directive,Q1=de.Comment,X1=de.Script,Z1=de.Style,J1=de.Tag,e_=de.CDATA,t_=de.Doctype});function $(t){return Y1(t)}function ks(t){return t.type===de.CDATA}function gt(t){return t.type===de.Text}function vr(t){return t.type===de.Comment}function iu(t){return t.type===de.Directive}function kt(t){return t.type===de.Root}function De(t){return Object.prototype.hasOwnProperty.call(t,"children")}function Rs(t,e=!1){let n;if(gt(t))n=new yn(t.data);else if(vr(t))n=new vs(t.data);else if($(t)){let r=e?xf(t.children):[],s=new Os(t.name,B({},t.attribs),r);r.forEach(i=>i.parent=s),t.namespace!=null&&(s.namespace=t.namespace),t["x-attribsNamespace"]&&(s["x-attribsNamespace"]=B({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(s["x-attribsPrefix"]=B({},t["x-attribsPrefix"])),n=s}else if(ks(t)){let r=e?xf(t.children):[],s=new su(r);r.forEach(i=>i.parent=s),n=s}else if(kt(t)){let r=e?xf(t.children):[],s=new Ot(r);r.forEach(i=>i.parent=s),t["x-mode"]&&(s["x-mode"]=t["x-mode"]),n=s}else if(iu(t)){let r=new Ds(t.name,t.data);t["x-name"]!=null&&(r["x-name"]=t["x-name"],r["x-publicId"]=t["x-publicId"],r["x-systemId"]=t["x-systemId"]),n=r}else throw new Error(`Not implemented yet: ${t.type}`);return n.startIndex=t.startIndex,n.endIndex=t.endIndex,t.sourceCodeLocation!=null&&(n.sourceCodeLocation=t.sourceCodeLocation),n}function xf(t){let e=t.map(n=>Rs(n,!0));for(let n=1;n<e.length;n++)e[n].prev=e[n-1],e[n-1].next=e[n];return e}var Tf,nu,yn,vs,Ds,ru,su,Ot,Os,yf=x(()=>{Ns();Tf=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return Rs(this,e)}},nu=class extends Tf{constructor(e){super();this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},yn=class extends nu{constructor(){super(...arguments);this.type=de.Text}get nodeType(){return 3}},vs=class extends nu{constructor(){super(...arguments);this.type=de.Comment}get nodeType(){return 8}},Ds=class extends nu{constructor(e,n){super(n);this.name=e,this.type=de.Directive}get nodeType(){return 1}},ru=class extends Tf{constructor(e){super();this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},su=class extends ru{constructor(){super(...arguments);this.type=de.CDATA}get nodeType(){return 4}},Ot=class extends ru{constructor(){super(...arguments);this.type=de.Root}get nodeType(){return 9}},Os=class extends ru{constructor(e,n,r=[],s=e==="script"?de.Script:e==="style"?de.Style:de.Tag){super(r);this.name=e,this.attribs=n,this.type=s}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var n,r;return{name:e,value:this.attribs[e],namespace:(n=this["x-attribsNamespace"])===null||n===void 0?void 0:n[e],prefix:(r=this["x-attribsPrefix"])===null||r===void 0?void 0:r[e]}})}}});var n_,$i,Qe=x(()=>{Ns();yf();yf();n_={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},$i=class{constructor(e,n,r){this.dom=[],this.root=new Ot(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof n=="function"&&(r=n,n=n_),typeof e=="object"&&(n=e,e=void 0),this.callback=e??null,this.options=n??n_,this.elementCB=r??null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new Ot(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;let e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,n){let r=this.options.xmlMode?de.Tag:void 0,s=new Os(e,n,void 0,r);this.addNode(s),this.tagStack.push(s)}ontext(e){let{lastNode:n}=this;if(n&&n.type===de.Text)n.data+=e,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{let r=new yn(e);this.addNode(r),this.lastNode=r}}oncomment(e){if(this.lastNode&&this.lastNode.type===de.Comment){this.lastNode.data+=e;return}let n=new vs(e);this.addNode(n),this.lastNode=n}oncommentend(){this.lastNode=null}oncdatastart(){let e=new yn(""),n=new su([e]);this.addNode(n),e.parent=n,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,n){let r=new Ds(e,n);this.addNode(r)}handleCallback(e){if(typeof this.callback=="function")this.callback(e,this.dom);else if(e)throw e}addNode(e){let n=this.tagStack[this.tagStack.length-1],r=n.children[n.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),n.children.push(e),r&&(e.prev=r,r.next=e),e.parent=n,this.lastNode=null}}});var Ls,r_=x(()=>{Ls=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(t=>t.charCodeAt(0)))});var au,s_=x(()=>{au=new Uint16Array("\u0200aglq	\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(t=>t.charCodeAt(0)))});function Cf(t){var e;return t>=55296&&t<=57343||t>1114111?65533:(e=gw.get(t))!==null&&e!==void 0?e:t}var Af,gw,Ps,Sf=x(()=>{gw=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]]),Ps=(Af=String.fromCodePoint)!==null&&Af!==void 0?Af:function(t){let e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),e+=String.fromCharCode(t),e}});function If(t){return t>=Ke.ZERO&&t<=Ke.NINE}function _w(t){return t>=Ke.UPPER_A&&t<=Ke.UPPER_F||t>=Ke.LOWER_A&&t<=Ke.LOWER_F}function Ew(t){return t>=Ke.UPPER_A&&t<=Ke.UPPER_Z||t>=Ke.LOWER_A&&t<=Ke.LOWER_Z||If(t)}function Tw(t){return t===Ke.EQUALS||Ew(t)}function i_(t){let e="",n=new Dr(t,r=>e+=Ps(r));return function(s,i){let a=0,o=0;for(;(o=s.indexOf("&",o))>=0;){e+=s.slice(a,o),n.startEntity(i);let l=n.write(s,o+1);if(l<0){a=o+n.end();break}a=o+l,o=l===0?a+1:a}let c=e+s.slice(a);return e="",c}}function xw(t,e,n,r){let s=(e&tr.BRANCH_LENGTH)>>7,i=e&tr.JUMP_TABLE;if(s===0)return i!==0&&r===i?n:-1;if(i){let c=r-i;return c<0||c>=s?-1:t[n+c]-1}let a=n,o=a+s-1;for(;a<=o;){let c=a+o>>>1,l=t[c];if(l<r)a=c+1;else if(l>r)o=c-1;else return t[c+s]}return-1}var Ke,bw,tr,Ye,rt,Dr,Q5,X5,Ms=x(()=>{r_();s_();Sf();Sf();(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(Ke||(Ke={}));bw=32;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(tr||(tr={}));(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(Ye||(Ye={}));(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(rt||(rt={}));Dr=class{constructor(e,n,r){this.decodeTree=e,this.emitCodePoint=n,this.errors=r,this.state=Ye.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=rt.Strict}startEntity(e){this.decodeMode=e,this.state=Ye.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,n){switch(this.state){case Ye.EntityStart:return e.charCodeAt(n)===Ke.NUM?(this.state=Ye.NumericStart,this.consumed+=1,this.stateNumericStart(e,n+1)):(this.state=Ye.NamedEntity,this.stateNamedEntity(e,n));case Ye.NumericStart:return this.stateNumericStart(e,n);case Ye.NumericDecimal:return this.stateNumericDecimal(e,n);case Ye.NumericHex:return this.stateNumericHex(e,n);case Ye.NamedEntity:return this.stateNamedEntity(e,n)}}stateNumericStart(e,n){return n>=e.length?-1:(e.charCodeAt(n)|bw)===Ke.LOWER_X?(this.state=Ye.NumericHex,this.consumed+=1,this.stateNumericHex(e,n+1)):(this.state=Ye.NumericDecimal,this.stateNumericDecimal(e,n))}addToNumericResult(e,n,r,s){if(n!==r){let i=r-n;this.result=this.result*Math.pow(s,i)+parseInt(e.substr(n,i),s),this.consumed+=i}}stateNumericHex(e,n){let r=n;for(;n<e.length;){let s=e.charCodeAt(n);if(If(s)||_w(s))n+=1;else return this.addToNumericResult(e,r,n,16),this.emitNumericEntity(s,3)}return this.addToNumericResult(e,r,n,16),-1}stateNumericDecimal(e,n){let r=n;for(;n<e.length;){let s=e.charCodeAt(n);if(If(s))n+=1;else return this.addToNumericResult(e,r,n,10),this.emitNumericEntity(s,2)}return this.addToNumericResult(e,r,n,10),-1}emitNumericEntity(e,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Ke.SEMI)this.consumed+=1;else if(this.decodeMode===rt.Strict)return 0;return this.emitCodePoint(Cf(this.result),this.consumed),this.errors&&(e!==Ke.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,n){let{decodeTree:r}=this,s=r[this.treeIndex],i=(s&tr.VALUE_LENGTH)>>14;for(;n<e.length;n++,this.excess++){let a=e.charCodeAt(n);if(this.treeIndex=xw(r,s,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===rt.Attribute&&(i===0||Tw(a))?0:this.emitNotTerminatedNamedEntity();if(s=r[this.treeIndex],i=(s&tr.VALUE_LENGTH)>>14,i!==0){if(a===Ke.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==rt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:n,decodeTree:r}=this,s=(r[n]&tr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,s,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,n,r){let{decodeTree:s}=this;return this.emitCodePoint(n===1?s[e]&~tr.VALUE_LENGTH:s[e+1],r),n===3&&this.emitCodePoint(s[e+2],r),r}end(){var e;switch(this.state){case Ye.NamedEntity:return this.result!==0&&(this.decodeMode!==rt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ye.NumericDecimal:return this.emitNumericEntity(0,2);case Ye.NumericHex:return this.emitNumericEntity(0,3);case Ye.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ye.EntityStart:return 0}}};Q5=i_(Ls),X5=i_(au)});function ou(t){for(let e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}var yw,a_=x(()=>{yw=new Map(ou([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(ou([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(ou([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(ou([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]))});function Qi(t){let e="",n=0,r;for(;(r=wf.exec(t))!==null;){let s=r.index,i=t.charCodeAt(s),a=o_.get(i);a!==void 0?(e+=t.substring(n,s)+a,n=s+1):(e+=`${t.substring(n,s)}&#x${u_(t,s).toString(16)};`,n=wf.lastIndex+=Number((i&64512)==55296))}return e+t.substr(n)}function Nf(t,e){return function(r){let s,i=0,a="";for(;s=t.exec(r);)i!==s.index&&(a+=r.substring(i,s.index)),a+=e.get(s[0].charCodeAt(0)),i=s.index+1;return a+r.substring(i)}}var wf,o_,u_,c_,Fs,Bs,Xi=x(()=>{wf=/["&'<>$\x80-\uFFFF]/g,o_=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),u_=String.prototype.codePointAt!=null?(t,e)=>t.codePointAt(e):(t,e)=>(t.charCodeAt(e)&64512)==55296?(t.charCodeAt(e)-55296)*1024+t.charCodeAt(e+1)-56320+65536:t.charCodeAt(e);c_=Nf(/[&<>'"]/g,o_),Fs=Nf(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),Bs=Nf(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))});var vf=x(()=>{a_();Xi()});var d_,h_,p_=x(()=>{Ms();vf();Xi();Xi();vf();Ms();(function(t){t[t.XML=0]="XML",t[t.HTML=1]="HTML"})(d_||(d_={}));(function(t){t[t.UTF8=0]="UTF8",t[t.ASCII=1]="ASCII",t[t.Extensive=2]="Extensive",t[t.Attribute=3]="Attribute",t[t.Text=4]="Text"})(h_||(h_={}))});var m_,g_,b_=x(()=>{m_=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(t=>[t.toLowerCase(),t])),g_=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(t=>[t.toLowerCase(),t]))});function Sw(t){return t.replace(/"/g,"&quot;")}function Iw(t,e){var n;if(!t)return;let r=((n=e.encodeEntities)!==null&&n!==void 0?n:e.decodeEntities)===!1?Sw:e.xmlMode||e.encodeEntities!=="utf8"?Qi:Fs;return Object.keys(t).map(s=>{var i,a;let o=(i=t[s])!==null&&i!==void 0?i:"";return e.xmlMode==="foreign"&&(s=(a=g_.get(s))!==null&&a!==void 0?a:s),!e.emptyAttrs&&!e.xmlMode&&o===""?s:`${s}="${r(o)}"`}).join(" ")}function kf(t,e={}){let n="length"in t?t:[t],r="";for(let s=0;s<n.length;s++)r+=ww(n[s],e);return r}function ww(t,e){switch(t.type){case W1:return kf(t.children,e);case t_:case $1:return Ow(t);case Q1:return Lw(t);case e_:return Rw(t);case X1:case Z1:case J1:return Dw(t,e);case G1:return kw(t,e)}}function Dw(t,e){var n;e.xmlMode==="foreign"&&(t.name=(n=m_.get(t.name))!==null&&n!==void 0?n:t.name,t.parent&&Nw.has(t.parent.name)&&(e=ce(B({},e),{xmlMode:!1}))),!e.xmlMode&&vw.has(t.name)&&(e=ce(B({},e),{xmlMode:"foreign"}));let r=`<${t.name}`,s=Iw(t.attribs,e);return s&&(r+=` ${s}`),t.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&__.has(t.name))?(e.xmlMode||(r+=" "),r+="/>"):(r+=">",t.children.length>0&&(r+=kf(t.children,e)),(e.xmlMode||!__.has(t.name))&&(r+=`</${t.name}>`)),r}function Ow(t){return`<${t.data}>`}function kw(t,e){var n;let r=t.data||"";return((n=e.encodeEntities)!==null&&n!==void 0?n:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&Cw.has(t.parent.name))&&(r=e.xmlMode||e.encodeEntities!=="utf8"?Qi(r):Bs(r)),r}function Rw(t){return`<![CDATA[${t.children[0].data}]]>`}function Lw(t){return`<!--${t.data}-->`}var Cw,__,uu,Nw,vw,Rf=x(()=>{Ns();p_();b_();Cw=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);__=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);uu=kf;Nw=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),vw=new Set(["svg","math"])});function E_(t,e){return uu(t,e)}function Pw(t,e){return De(t)?t.children.map(n=>E_(n,e)).join(""):""}function cu(t){return Array.isArray(t)?t.map(cu).join(""):$(t)?t.name==="br"?`
`:cu(t.children):ks(t)?cu(t.children):gt(t)?t.data:""}function An(t){return Array.isArray(t)?t.map(An).join(""):De(t)&&!vr(t)?An(t.children):gt(t)?t.data:""}function Zi(t){return Array.isArray(t)?t.map(Zi).join(""):De(t)&&(t.type===de.Tag||ks(t))?Zi(t.children):gt(t)?t.data:""}var Lf=x(()=>{Qe();Rf();Ns()});function Ji(t){return De(t)?t.children:[]}function T_(t){return t.parent||null}function Pf(t){let e=T_(t);if(e!=null)return Ji(e);let n=[t],{prev:r,next:s}=t;for(;r!=null;)n.unshift(r),{prev:r}=r;for(;s!=null;)n.push(s),{next:s}=s;return n}function Mw(t,e){var n;return(n=t.attribs)===null||n===void 0?void 0:n[e]}function Fw(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Bw(t){return t.name}function lu(t){let{next:e}=t;for(;e!==null&&!$(e);)({next:e}=e);return e}function fu(t){let{prev:e}=t;for(;e!==null&&!$(e);)({prev:e}=e);return e}var x_=x(()=>{Qe()});function Cn(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,n=e.lastIndexOf(t);n>=0&&e.splice(n,1)}t.next=null,t.prev=null,t.parent=null}function jw(t,e){let n=e.prev=t.prev;n&&(n.next=e);let r=e.next=t.next;r&&(r.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function Hw(t,e){if(Cn(e),e.next=null,e.parent=t,t.children.push(e)>1){let n=t.children[t.children.length-2];n.next=e,e.prev=n}else e.prev=null}function Uw(t,e){Cn(e);let{parent:n}=t,r=t.next;if(e.next=r,e.prev=t,t.next=e,e.parent=n,r){if(r.prev=e,n){let s=n.children;s.splice(s.lastIndexOf(r),0,e)}}else n&&n.children.push(e)}function zw(t,e){if(Cn(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let n=t.children[1];n.prev=e,e.next=n}else e.next=null}function Vw(t,e){Cn(e);let{parent:n}=t;if(n){let r=n.children;r.splice(r.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=n,e.prev=t.prev,e.next=t,t.prev=e}var y_=x(()=>{});function ea(t,e,n=!0,r=1/0){return Mf(t,Array.isArray(e)?e:[e],n,r)}function Mf(t,e,n,r){let s=[],i=[e],a=[0];for(;;){if(a[0]>=i[0].length){if(a.length===1)return s;i.shift(),a.shift();continue}let o=i[0][a[0]++];if(t(o)&&(s.push(o),--r<=0))return s;n&&De(o)&&o.children.length>0&&(a.unshift(0),i.unshift(o.children))}}function qw(t,e){return e.find(t)}function du(t,e,n=!0){let r=null;for(let s=0;s<e.length&&!r;s++){let i=e[s];if($(i))t(i)?r=i:n&&i.children.length>0&&(r=du(t,i.children,!0));else continue}return r}function A_(t,e){return e.some(n=>$(n)&&(t(n)||A_(t,n.children)))}function Kw(t,e){let n=[],r=[e],s=[0];for(;;){if(s[0]>=r[0].length){if(r.length===1)return n;r.shift(),s.shift();continue}let i=r[0][s[0]++];!$(i)||(t(i)&&n.push(i),i.children.length>0&&(s.unshift(0),r.unshift(i.children)))}}var Ff=x(()=>{Qe()});function C_(t,e){return typeof e=="function"?n=>$(n)&&e(n.attribs[t]):n=>$(n)&&n.attribs[t]===e}function Yw(t,e){return n=>t(n)||e(n)}function S_(t){let e=Object.keys(t).map(n=>{let r=t[n];return Object.prototype.hasOwnProperty.call(hu,n)?hu[n](r):C_(n,r)});return e.length===0?null:e.reduce(Yw)}function Ww(t,e){let n=S_(t);return n?n(e):!0}function Gw(t,e,n,r=1/0){let s=S_(t);return s?ea(s,e,n,r):[]}function $w(t,e,n=!0){return Array.isArray(e)||(e=[e]),du(C_("id",t),e,n)}function Or(t,e,n=!0,r=1/0){return ea(hu.tag_name(t),e,n,r)}function Qw(t,e,n=!0,r=1/0){return ea(hu.tag_type(t),e,n,r)}var hu,Bf=x(()=>{Qe();Ff();hu={tag_name(t){return typeof t=="function"?e=>$(e)&&t(e.name):t==="*"?$:e=>$(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>gt(e)&&t(e.data):e=>gt(e)&&e.data===t}}});function Xw(t){let e=t.length;for(;--e>=0;){let n=t[e];if(e>0&&t.lastIndexOf(n,e-1)>=0){t.splice(e,1);continue}for(let r=n.parent;r;r=r.parent)if(t.includes(r)){t.splice(e,1);break}}return t}function I_(t,e){let n=[],r=[];if(t===e)return 0;let s=De(t)?t:t.parent;for(;s;)n.unshift(s),s=s.parent;for(s=De(e)?e:e.parent;s;)r.unshift(s),s=s.parent;let i=Math.min(n.length,r.length),a=0;for(;a<i&&n[a]===r[a];)a++;if(a===0)return Rt.DISCONNECTED;let o=n[a-1],c=o.children,l=n[a],h=r[a];return c.indexOf(l)>c.indexOf(h)?o===e?Rt.FOLLOWING|Rt.CONTAINED_BY:Rt.FOLLOWING:o===t?Rt.PRECEDING|Rt.CONTAINS:Rt.PRECEDING}function kr(t){return t=t.filter((e,n,r)=>!r.includes(e,n+1)),t.sort((e,n)=>{let r=I_(e,n);return r&Rt.PRECEDING?-1:r&Rt.FOLLOWING?1:0}),t}var Rt,w_=x(()=>{Qe();(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Rt||(Rt={}))});function jf(t){let e=pu(nN,t);return e?e.name==="feed"?Zw(e):Jw(e):null}function Zw(t){var e;let n=t.children,r={type:"atom",items:Or("entry",n).map(a=>{var o;let{children:c}=a,l={media:N_(c)};bt(l,"id","id",c),bt(l,"title","title",c);let h=(o=pu("link",c))===null||o===void 0?void 0:o.attribs.href;h&&(l.link=h);let d=nr("summary",c)||nr("content",c);d&&(l.description=d);let f=nr("updated",c);return f&&(l.pubDate=new Date(f)),l})};bt(r,"id","id",n),bt(r,"title","title",n);let s=(e=pu("link",n))===null||e===void 0?void 0:e.attribs.href;s&&(r.link=s),bt(r,"description","subtitle",n);let i=nr("updated",n);return i&&(r.updated=new Date(i)),bt(r,"author","email",n,!0),r}function Jw(t){var e,n;let r=(n=(e=pu("channel",t.children))===null||e===void 0?void 0:e.children)!==null&&n!==void 0?n:[],s={type:t.name.substr(0,3),id:"",items:Or("item",t.children).map(a=>{let{children:o}=a,c={media:N_(o)};bt(c,"id","guid",o),bt(c,"title","title",o),bt(c,"link","link",o),bt(c,"description","description",o);let l=nr("pubDate",o)||nr("dc:date",o);return l&&(c.pubDate=new Date(l)),c})};bt(s,"title","title",r),bt(s,"link","link",r),bt(s,"description","description",r);let i=nr("lastBuildDate",r);return i&&(s.updated=new Date(i)),bt(s,"author","managingEditor",r,!0),s}function N_(t){return Or("media:content",t).map(e=>{let{attribs:n}=e,r={medium:n.medium,isDefault:!!n.isDefault};for(let s of eN)n[s]&&(r[s]=n[s]);for(let s of tN)n[s]&&(r[s]=parseInt(n[s],10));return n.expression&&(r.expression=n.expression),r})}function pu(t,e){return Or(t,e,!0,1)[0]}function nr(t,e,n=!1){return An(Or(t,e,n,1)).trim()}function bt(t,e,n,r,s=!1){let i=nr(n,r,s);i&&(t[e]=i)}function nN(t){return t==="rss"||t==="feed"||t==="rdf:RDF"}var eN,tN,v_=x(()=>{Lf();Bf();eN=["url","type","lang"],tN=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"]});var rr={};It(rr,{DocumentPosition:()=>Rt,append:()=>Uw,appendChild:()=>Hw,compareDocumentPosition:()=>I_,existsOne:()=>A_,filter:()=>ea,find:()=>Mf,findAll:()=>Kw,findOne:()=>du,findOneChild:()=>qw,getAttributeValue:()=>Mw,getChildren:()=>Ji,getElementById:()=>$w,getElements:()=>Gw,getElementsByTagName:()=>Or,getElementsByTagType:()=>Qw,getFeed:()=>jf,getInnerHTML:()=>Pw,getName:()=>Bw,getOuterHTML:()=>E_,getParent:()=>T_,getSiblings:()=>Pf,getText:()=>cu,hasAttrib:()=>Fw,hasChildren:()=>De,innerText:()=>Zi,isCDATA:()=>ks,isComment:()=>vr,isDocument:()=>kt,isTag:()=>$,isText:()=>gt,nextElementSibling:()=>lu,prepend:()=>Vw,prependChild:()=>zw,prevElementSibling:()=>fu,removeElement:()=>Cn,removeSubsets:()=>Xw,replaceElement:()=>jw,testElement:()=>Ww,textContent:()=>An,uniqueSort:()=>kr});var Gt=x(()=>{Lf();x_();y_();Ff();Bf();w_();v_();Qe()});function ta(t,e){if(!t)return e??rN;let n=B(B({_useHtmlParser2:!!t.xmlMode},e),t);return t.xml?(n._useHtmlParser2=!0,n.xmlMode=!0,t.xml!==!0&&Object.assign(n,t.xml)):t.xmlMode&&(n._useHtmlParser2=!0),n}var rN,Hf=x(()=>{rN={_useHtmlParser2:!1}});var zf={};It(zf,{contains:()=>na,extract:()=>cN,html:()=>iN,merge:()=>Uf,parseHTML:()=>oN,root:()=>uN,text:()=>Rr,xml:()=>aN});function D_(t,e,n){return t?t(e??t._root.children,null,void 0,n).toString():""}function sN(t,e){return!e&&typeof t=="object"&&t!=null&&!("length"in t)&&!("type"in t)}function iN(t,e){let n=sN(t)?(e=t,void 0):t,r=B(B({},this===null||this===void 0?void 0:this._options),ta(e));return D_(this,n,r)}function aN(t){let e=ce(B({},this._options),{xmlMode:!0});return D_(this,t,e)}function Rr(t){let e=t??(this?this.root():[]),n="";for(let r=0;r<e.length;r++)n+=An(e[r]);return n}function oN(t,e,n=typeof e=="boolean"?e:!1){if(!t||typeof t!="string")return null;typeof e=="boolean"&&(n=e);let r=this.load(t,this._options,!1);return n||r("script").remove(),[...r.root()[0].children]}function uN(){return this(this._root)}function na(t,e){if(e===t)return!1;let n=e;for(;n&&n!==n.parent;)if(n=n.parent,n===t)return!0;return!1}function cN(t){return this.root().extract(t)}function Uf(t,e){if(!O_(t)||!O_(e))return;let n=t.length,r=+e.length;for(let s=0;s<r;s++)t[n++]=e[s];return t.length=n,t}function O_(t){if(Array.isArray(t))return!0;if(typeof t!="object"||t===null||!("length"in t)||typeof t.length!="number"||t.length<0)return!1;for(let e=0;e<t.length;e++)if(!(e in t))return!1;return!0}var js=x(()=>{Gt();Hf()});function Lt(t){return t.cheerio!=null}function k_(t){return t.replace(/[._-](\w|$)/g,(e,n)=>n.toUpperCase())}function R_(t){return t.replace(/[A-Z]/g,"-$&").toLowerCase()}function Ae(t,e){let n=t.length;for(let r=0;r<n;r++)e(t[r],r);return t}function ra(t){let e=t.indexOf("<");if(e<0||e>t.length-3)return!1;let n=t.charCodeAt(e+1);return(n>=Lr.LowerA&&n<=Lr.LowerZ||n>=Lr.UpperA&&n<=Lr.UpperZ||n===Lr.Exclamation)&&t.includes(">",e+2)}var Lr,Hs=x(()=>{(function(t){t[t.LowerA=97]="LowerA",t[t.LowerZ=122]="LowerZ",t[t.UpperA=65]="UpperA",t[t.UpperZ=90]="UpperZ",t[t.Exclamation=33]="Exclamation"})(Lr||(Lr={}))});var Yf={};It(Yf,{addClass:()=>B_,attr:()=>fN,data:()=>mN,hasClass:()=>_N,prop:()=>dN,removeAttr:()=>bN,removeClass:()=>j_,toggleClass:()=>H_,val:()=>gN});function mu(t,e,n){var r;if(!(!t||!$(t))){if((r=t.attribs)!==null&&r!==void 0||(t.attribs={}),!e)return t.attribs;if(sa.call(t.attribs,e))return!n&&qf.test(e)?e:t.attribs[e];if(t.name==="option"&&e==="value")return Rr(t.children);if(t.name==="input"&&(t.attribs.type==="radio"||t.attribs.type==="checkbox")&&e==="value")return"on"}}function Us(t,e,n){n===null?F_(t,e):t.attribs[e]=`${n}`}function fN(t,e){if(typeof t=="object"||e!==void 0){if(typeof e=="function"){if(typeof t!="string")throw new Error("Bad combination of arguments.");return Ae(this,(n,r)=>{$(n)&&Us(n,t,e.call(n,r,n.attribs[t]))})}return Ae(this,n=>{if(!!$(n))if(typeof t=="object")for(let r of Object.keys(t)){let s=t[r];Us(n,r,s)}else Us(n,t,e)})}return arguments.length>1?this:mu(this[0],t,this.options.xmlMode)}function L_(t,e,n){return e in t?t[e]:!n&&qf.test(e)?mu(t,e,!1)!==void 0:mu(t,e,n)}function Kf(t,e,n,r){e in t?t[e]=n:Us(t,e,!r&&qf.test(e)?n?"":null:`${n}`)}function dN(t,e){var n;if(typeof t=="string"&&e===void 0){let r=this[0];if(!r||!$(r))return;switch(t){case"style":{let s=this.css(),i=Object.keys(s);for(let a=0;a<i.length;a++)s[a]=i[a];return s.length=i.length,s}case"tagName":case"nodeName":return r.name.toUpperCase();case"href":case"src":{let s=(n=r.attribs)===null||n===void 0?void 0:n[t];return typeof URL!="undefined"&&(t==="href"&&(r.tagName==="a"||r.tagName==="link")||t==="src"&&(r.tagName==="img"||r.tagName==="iframe"||r.tagName==="audio"||r.tagName==="video"||r.tagName==="source"))&&s!==void 0&&this.options.baseURI?new URL(s,this.options.baseURI).href:s}case"innerText":return Zi(r);case"textContent":return An(r);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return L_(r,t,this.options.xmlMode)}}if(typeof t=="object"||e!==void 0){if(typeof e=="function"){if(typeof t=="object")throw new TypeError("Bad combination of arguments.");return Ae(this,(r,s)=>{$(r)&&Kf(r,t,e.call(r,s,L_(r,t,this.options.xmlMode)),this.options.xmlMode)})}return Ae(this,r=>{if(!!$(r))if(typeof t=="object")for(let s of Object.keys(t)){let i=t[s];Kf(r,s,i,this.options.xmlMode)}else Kf(r,t,e,this.options.xmlMode)})}}function P_(t,e,n){var r;(r=t.data)!==null&&r!==void 0||(t.data={}),typeof e=="object"?Object.assign(t.data,e):typeof e=="string"&&n!==void 0&&(t.data[e]=n)}function hN(t){for(let e of Object.keys(t.attribs)){if(!e.startsWith(Vf))continue;let n=k_(e.slice(Vf.length));sa.call(t.data,n)||(t.data[n]=M_(t.attribs[e]))}return t.data}function pN(t,e){let n=Vf+R_(e),r=t.data;if(sa.call(r,e))return r[e];if(sa.call(t.attribs,n))return r[e]=M_(t.attribs[n])}function M_(t){if(t==="null")return null;if(t==="true")return!0;if(t==="false")return!1;let e=Number(t);if(t===String(e))return e;if(lN.test(t))try{return JSON.parse(t)}catch{}return t}function mN(t,e){var n;let r=this[0];if(!r||!$(r))return;let s=r;return(n=s.data)!==null&&n!==void 0||(s.data={}),t==null?hN(s):typeof t=="object"||e!==void 0?(Ae(this,i=>{$(i)&&(typeof t=="object"?P_(i,t):P_(i,t,e))}),this):pN(s,t)}function gN(t){let e=arguments.length===0,n=this[0];if(!n||!$(n))return e?void 0:this;switch(n.name){case"textarea":return this.text(t);case"select":{let r=this.find("option:selected");if(!e){if(this.attr("multiple")==null&&typeof t=="object")return this;this.find("option").removeAttr("selected");let s=typeof t=="object"?t:[t];for(let i of s)this.find(`option[value="${i}"]`).attr("selected","");return this}return this.attr("multiple")?r.toArray().map(s=>Rr(s.children)):r.attr("value")}case"input":case"option":return e?this.attr("value"):this.attr("value",t)}}function F_(t,e){!t.attribs||!sa.call(t.attribs,e)||delete t.attribs[e]}function gu(t){return t?t.trim().split(ia):[]}function bN(t){let e=gu(t);for(let n of e)Ae(this,r=>{$(r)&&F_(r,n)});return this}function _N(t){return this.toArray().some(e=>{let n=$(e)&&e.attribs.class,r=-1;if(n&&t.length>0)for(;(r=n.indexOf(t,r+1))>-1;){let s=r+t.length;if((r===0||ia.test(n[r-1]))&&(s===n.length||ia.test(n[s])))return!0}return!1})}function B_(t){if(typeof t=="function")return Ae(this,(r,s)=>{if($(r)){let i=r.attribs.class||"";B_.call([r],t.call(r,s,i))}});if(!t||typeof t!="string")return this;let e=t.split(ia),n=this.length;for(let r=0;r<n;r++){let s=this[r];if(!$(s))continue;let i=mu(s,"class",!1);if(i){let a=` ${i} `;for(let o of e){let c=`${o} `;a.includes(` ${c}`)||(a+=c)}Us(s,"class",a.trim())}else Us(s,"class",e.join(" ").trim())}return this}function j_(t){if(typeof t=="function")return Ae(this,(s,i)=>{$(s)&&j_.call([s],t.call(s,i,s.attribs.class||""))});let e=gu(t),n=e.length,r=arguments.length===0;return Ae(this,s=>{if(!!$(s))if(r)s.attribs.class="";else{let i=gu(s.attribs.class),a=!1;for(let o=0;o<n;o++){let c=i.indexOf(e[o]);c>=0&&(i.splice(c,1),a=!0,o--)}a&&(s.attribs.class=i.join(" "))}})}function H_(t,e){if(typeof t=="function")return Ae(this,(a,o)=>{$(a)&&H_.call([a],t.call(a,o,a.attribs.class||"",e),e)});if(!t||typeof t!="string")return this;let n=t.split(ia),r=n.length,s=typeof e=="boolean"?e?1:-1:0,i=this.length;for(let a=0;a<i;a++){let o=this[a];if(!$(o))continue;let c=gu(o.attribs.class);for(let l=0;l<r;l++){let h=c.indexOf(n[l]);s>=0&&h<0?c.push(n[l]):s<=0&&h>=0&&c.splice(h,1)}o.attribs.class=c.join(" ")}return this}var sa,ia,Vf,qf,lN,U_=x(()=>{js();Hs();Qe();Gt();sa=Object.prototype.hasOwnProperty,ia=/\s+/,Vf="data-",qf=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,lN=/^{[^]*}$|^\[[^]*]$/});var Q,Fe,Wf=x(()=>{(function(t){t.Attribute="attribute",t.Pseudo="pseudo",t.PseudoElement="pseudo-element",t.Tag="tag",t.Universal="universal",t.Adjacent="adjacent",t.Child="child",t.Descendant="descendant",t.Parent="parent",t.Sibling="sibling",t.ColumnCombinator="column-combinator"})(Q||(Q={}));(function(t){t.Any="any",t.Element="element",t.End="end",t.Equals="equals",t.Exists="exists",t.Hyphen="hyphen",t.Not="not",t.Start="start"})(Fe||(Fe={}))});function Pr(t){switch(t.type){case Q.Adjacent:case Q.Child:case Q.Descendant:case Q.Parent:case Q.Sibling:case Q.ColumnCombinator:return!0;default:return!1}}function AN(t,e,n){let r=parseInt(e,16)-65536;return r!==r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)}function aa(t){return t.replace(EN,AN)}function Gf(t){return t===39||t===34}function V_(t){return t===32||t===9||t===10||t===12||t===13}function Sn(t){let e=[],n=q_(e,`${t}`,0);if(n<t.length)throw new Error(`Unmatched selector: ${t.slice(n)}`);return e}function q_(t,e,n){let r=[];function s(f){let p=e.slice(n+f).match(z_);if(!p)throw new Error(`Expected name, found ${e.slice(n)}`);let[E]=p;return n+=f+E.length,aa(E)}function i(f){for(n+=f;n<e.length&&V_(e.charCodeAt(n));)n++}function a(){n+=1;let f=n,p=1;for(;p>0&&n<e.length;n++)e.charCodeAt(n)===40&&!o(n)?p++:e.charCodeAt(n)===41&&!o(n)&&p--;if(p)throw new Error("Parenthesis not matched");return aa(e.slice(f,n-1))}function o(f){let p=0;for(;e.charCodeAt(--f)===92;)p++;return(p&1)==1}function c(){if(r.length>0&&Pr(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function l(f){if(r.length>0&&r[r.length-1].type===Q.Descendant){r[r.length-1].type=f;return}c(),r.push({type:f})}function h(f,p){r.push({type:Q.Attribute,name:f,action:p,value:s(1),namespace:null,ignoreCase:"quirks"})}function d(){if(r.length&&r[r.length-1].type===Q.Descendant&&r.pop(),r.length===0)throw new Error("Empty sub-selector");t.push(r)}if(i(0),e.length===n)return n;e:for(;n<e.length;){let f=e.charCodeAt(n);switch(f){case 32:case 9:case 10:case 12:case 13:{(r.length===0||r[0].type!==Q.Descendant)&&(c(),r.push({type:Q.Descendant})),i(1);break}case 62:{l(Q.Child),i(1);break}case 60:{l(Q.Parent),i(1);break}case 126:{l(Q.Sibling),i(1);break}case 43:{l(Q.Adjacent),i(1);break}case 46:{h("class",Fe.Element);break}case 35:{h("id",Fe.Equals);break}case 91:{i(1);let p,E=null;e.charCodeAt(n)===124?p=s(1):e.startsWith("*|",n)?(E="*",p=s(2)):(p=s(0),e.charCodeAt(n)===124&&e.charCodeAt(n+1)!==61&&(E=p,p=s(1))),i(0);let T=Fe.Exists,w=TN.get(e.charCodeAt(n));if(w){if(T=w,e.charCodeAt(n+1)!==61)throw new Error("Expected `=`");i(2)}else e.charCodeAt(n)===61&&(T=Fe.Equals,i(1));let m="",I=null;if(T!=="exists"){if(Gf(e.charCodeAt(n))){let S=e.charCodeAt(n),C=n+1;for(;C<e.length&&(e.charCodeAt(C)!==S||o(C));)C+=1;if(e.charCodeAt(C)!==S)throw new Error("Attribute value didn't end");m=aa(e.slice(n+1,C)),n=C+1}else{let S=n;for(;n<e.length&&(!V_(e.charCodeAt(n))&&e.charCodeAt(n)!==93||o(n));)n+=1;m=aa(e.slice(S,n))}i(0);let b=e.charCodeAt(n)|32;b===115?(I=!1,i(1)):b===105&&(I=!0,i(1))}if(e.charCodeAt(n)!==93)throw new Error("Attribute selector didn't terminate");n+=1;let A={type:Q.Attribute,name:p,action:T,value:m,namespace:E,ignoreCase:I};r.push(A);break}case 58:{if(e.charCodeAt(n+1)===58){r.push({type:Q.PseudoElement,name:s(2).toLowerCase(),data:e.charCodeAt(n)===40?a():null});continue}let p=s(1).toLowerCase(),E=null;if(e.charCodeAt(n)===40)if(xN.has(p)){if(Gf(e.charCodeAt(n+1)))throw new Error(`Pseudo-selector ${p} cannot be quoted`);if(E=[],n=q_(E,e,n+1),e.charCodeAt(n)!==41)throw new Error(`Missing closing parenthesis in :${p} (${e})`);n+=1}else{if(E=a(),yN.has(p)){let T=E.charCodeAt(0);T===E.charCodeAt(E.length-1)&&Gf(T)&&(E=E.slice(1,-1))}E=aa(E)}r.push({type:Q.Pseudo,name:p,data:E});break}case 44:{d(),r=[],i(1);break}default:{if(e.startsWith("/*",n)){let T=e.indexOf("*/",n+2);if(T<0)throw new Error("Comment was not terminated");n=T+2,r.length===0&&i(0);break}let p=null,E;if(f===42)n+=1,E="*";else if(f===124){if(E="",e.charCodeAt(n+1)===124){l(Q.ColumnCombinator),i(2);break}}else if(z_.test(e.slice(n)))E=s(0);else break e;e.charCodeAt(n)===124&&e.charCodeAt(n+1)!==124&&(p=E,e.charCodeAt(n+1)===42?(E="*",n+=2):E=s(1)),r.push(E==="*"?{type:Q.Universal,namespace:p}:{type:Q.Tag,name:E,namespace:p})}}}return d(),n}var z_,EN,TN,xN,yN,K_=x(()=>{Wf();z_=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,EN=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,TN=new Map([[126,Fe.Element],[94,Fe.Start],[36,Fe.End],[42,Fe.Any],[33,Fe.Not],[124,Fe.Hyphen]]),xN=new Set(["has","not","matches","is","where","host","host-context"]);yN=new Set(["contains","icontains"])});var zs=x(()=>{Wf();K_()});var sr=kn((s9,Y_)=>{Y_.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}});function oa(t){return!W_.has(t.type)}function $f(t){let e=t.map(G_);for(let n=1;n<t.length;n++){let r=e[n];if(!(r<0))for(let s=n-1;s>=0&&r<e[s];s--){let i=t[s+1];t[s+1]=t[s],t[s]=i,e[s+1]=e[s],e[s]=r}}}function G_(t){var e,n;let r=(e=W_.get(t.type))!==null&&e!==void 0?e:-1;return t.type===Q.Attribute?(r=(n=CN.get(t.action))!==null&&n!==void 0?n:4,t.action===Fe.Equals&&t.name==="id"&&(r=9),t.ignoreCase&&(r>>=1)):t.type===Q.Pseudo&&(t.data?t.name==="has"||t.name==="contains"?r=0:Array.isArray(t.data)?(r=Math.min(...t.data.map(s=>Math.min(...s.map(G_)))),r<0&&(r=0)):r=2:r=3),r}var W_,CN,Qf=x(()=>{zs();W_=new Map([[Q.Universal,50],[Q.Tag,30],[Q.Attribute,1],[Q.Pseudo,0]]);CN=new Map([[Fe.Exists,10],[Fe.Equals,8],[Fe.Not,7],[Fe.Start,6],[Fe.End,6],[Fe.Any,5]])});function $_(t){return t.replace(SN,"\\$&")}function Mr(t,e){return typeof t.ignoreCase=="boolean"?t.ignoreCase:t.ignoreCase==="quirks"?!!e.quirksMode:!e.xmlMode&&IN.has(t.name)}var ua,SN,IN,Q_,X_=x(()=>{ua=_e(sr()),SN=/[-[\]{}()*+?.,\\^$|#\s]/g;IN=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"]);Q_={equals(t,e,n){let{adapter:r}=n,{name:s}=e,{value:i}=e;return Mr(e,n)?(i=i.toLowerCase(),a=>{let o=r.getAttributeValue(a,s);return o!=null&&o.length===i.length&&o.toLowerCase()===i&&t(a)}):a=>r.getAttributeValue(a,s)===i&&t(a)},hyphen(t,e,n){let{adapter:r}=n,{name:s}=e,{value:i}=e,a=i.length;return Mr(e,n)?(i=i.toLowerCase(),function(c){let l=r.getAttributeValue(c,s);return l!=null&&(l.length===a||l.charAt(a)==="-")&&l.substr(0,a).toLowerCase()===i&&t(c)}):function(c){let l=r.getAttributeValue(c,s);return l!=null&&(l.length===a||l.charAt(a)==="-")&&l.substr(0,a)===i&&t(c)}},element(t,e,n){let{adapter:r}=n,{name:s,value:i}=e;if(/\s/.test(i))return ua.default.falseFunc;let a=new RegExp(`(?:^|\\s)${$_(i)}(?:$|\\s)`,Mr(e,n)?"i":"");return function(c){let l=r.getAttributeValue(c,s);return l!=null&&l.length>=i.length&&a.test(l)&&t(c)}},exists(t,{name:e},{adapter:n}){return r=>n.hasAttrib(r,e)&&t(r)},start(t,e,n){let{adapter:r}=n,{name:s}=e,{value:i}=e,a=i.length;return a===0?ua.default.falseFunc:Mr(e,n)?(i=i.toLowerCase(),o=>{let c=r.getAttributeValue(o,s);return c!=null&&c.length>=a&&c.substr(0,a).toLowerCase()===i&&t(o)}):o=>{var c;return!!((c=r.getAttributeValue(o,s))===null||c===void 0?void 0:c.startsWith(i))&&t(o)}},end(t,e,n){let{adapter:r}=n,{name:s}=e,{value:i}=e,a=-i.length;return a===0?ua.default.falseFunc:Mr(e,n)?(i=i.toLowerCase(),o=>{var c;return((c=r.getAttributeValue(o,s))===null||c===void 0?void 0:c.substr(a).toLowerCase())===i&&t(o)}):o=>{var c;return!!((c=r.getAttributeValue(o,s))===null||c===void 0?void 0:c.endsWith(i))&&t(o)}},any(t,e,n){let{adapter:r}=n,{name:s,value:i}=e;if(i==="")return ua.default.falseFunc;if(Mr(e,n)){let a=new RegExp($_(i),"i");return function(c){let l=r.getAttributeValue(c,s);return l!=null&&l.length>=i.length&&a.test(l)&&t(c)}}return a=>{var o;return!!((o=r.getAttributeValue(a,s))===null||o===void 0?void 0:o.includes(i))&&t(a)}},not(t,e,n){let{adapter:r}=n,{name:s}=e,{value:i}=e;return i===""?a=>!!r.getAttributeValue(a,s)&&t(a):Mr(e,n)?(i=i.toLowerCase(),a=>{let o=r.getAttributeValue(a,s);return(o==null||o.length!==i.length||o.toLowerCase()!==i)&&t(a)}):a=>r.getAttributeValue(a,s)!==i&&t(a)}}});function J_(t){if(t=t.trim().toLowerCase(),t==="even")return[2,0];if(t==="odd")return[2,1];let e=0,n=0,r=i(),s=a();if(e<t.length&&t.charAt(e)==="n"&&(e++,n=r*(s??1),o(),e<t.length?(r=i(),o(),s=a()):r=s=0),s===null||e<t.length)throw new Error(`n-th rule couldn't be parsed ('${t}')`);return[n,r*s];function i(){return t.charAt(e)==="-"?(e++,-1):(t.charAt(e)==="+"&&e++,1)}function a(){let c=e,l=0;for(;e<t.length&&t.charCodeAt(e)>=Z_&&t.charCodeAt(e)<=NN;)l=l*10+(t.charCodeAt(e)-Z_),e++;return e===c?null:l}function o(){for(;e<t.length&&wN.has(t.charCodeAt(e));)e++}}var wN,Z_,NN,eE=x(()=>{wN=new Set([9,10,12,13,32]),Z_="0".charCodeAt(0),NN="9".charCodeAt(0)});function tE(t){let e=t[0],n=t[1]-1;if(n<0&&e<=0)return Xf.default.falseFunc;if(e===-1)return i=>i<=n;if(e===0)return i=>i===n;if(e===1)return n<0?Xf.default.trueFunc:i=>i>=n;let r=Math.abs(e),s=(n%r+r)%r;return e>1?i=>i>=n&&i%r===s:i=>i<=n&&i%r===s}var Xf,nE=x(()=>{Xf=_e(sr())});function Vs(t){return tE(J_(t))}var rE=x(()=>{eE();nE()});function bu(t,e){return n=>{let r=e.getParent(n);return r!=null&&e.isTag(r)&&t(n)}}function Zf(t){return function(n,r,{adapter:s}){let i=s[t];return typeof i!="function"?_t.default.falseFunc:function(o){return i(o)&&n(o)}}}var _t,qs,sE=x(()=>{rE();_t=_e(sr());qs={contains(t,e,{adapter:n}){return function(s){return t(s)&&n.getText(s).includes(e)}},icontains(t,e,{adapter:n}){let r=e.toLowerCase();return function(i){return t(i)&&n.getText(i).toLowerCase().includes(r)}},"nth-child"(t,e,{adapter:n,equals:r}){let s=Vs(e);return s===_t.default.falseFunc?_t.default.falseFunc:s===_t.default.trueFunc?bu(t,n):function(a){let o=n.getSiblings(a),c=0;for(let l=0;l<o.length&&!r(a,o[l]);l++)n.isTag(o[l])&&c++;return s(c)&&t(a)}},"nth-last-child"(t,e,{adapter:n,equals:r}){let s=Vs(e);return s===_t.default.falseFunc?_t.default.falseFunc:s===_t.default.trueFunc?bu(t,n):function(a){let o=n.getSiblings(a),c=0;for(let l=o.length-1;l>=0&&!r(a,o[l]);l--)n.isTag(o[l])&&c++;return s(c)&&t(a)}},"nth-of-type"(t,e,{adapter:n,equals:r}){let s=Vs(e);return s===_t.default.falseFunc?_t.default.falseFunc:s===_t.default.trueFunc?bu(t,n):function(a){let o=n.getSiblings(a),c=0;for(let l=0;l<o.length;l++){let h=o[l];if(r(a,h))break;n.isTag(h)&&n.getName(h)===n.getName(a)&&c++}return s(c)&&t(a)}},"nth-last-of-type"(t,e,{adapter:n,equals:r}){let s=Vs(e);return s===_t.default.falseFunc?_t.default.falseFunc:s===_t.default.trueFunc?bu(t,n):function(a){let o=n.getSiblings(a),c=0;for(let l=o.length-1;l>=0;l--){let h=o[l];if(r(a,h))break;n.isTag(h)&&n.getName(h)===n.getName(a)&&c++}return s(c)&&t(a)}},root(t,e,{adapter:n}){return r=>{let s=n.getParent(r);return(s==null||!n.isTag(s))&&t(r)}},scope(t,e,n,r){let{equals:s}=n;return!r||r.length===0?qs.root(t,e,n):r.length===1?i=>s(r[0],i)&&t(i):i=>r.includes(i)&&t(i)},hover:Zf("isHovered"),visited:Zf("isVisited"),active:Zf("isActive")}});function Jf(t,e,n,r){if(n===null){if(t.length>r)throw new Error(`Pseudo-class :${e} requires an argument`)}else if(t.length===r)throw new Error(`Pseudo-class :${e} doesn't have any arguments`)}var ca,iE=x(()=>{ca={empty(t,{adapter:e}){return!e.getChildren(t).some(n=>e.isTag(n)||e.getText(n)!=="")},"first-child"(t,{adapter:e,equals:n}){if(e.prevElementSibling)return e.prevElementSibling(t)==null;let r=e.getSiblings(t).find(s=>e.isTag(s));return r!=null&&n(t,r)},"last-child"(t,{adapter:e,equals:n}){let r=e.getSiblings(t);for(let s=r.length-1;s>=0;s--){if(n(t,r[s]))return!0;if(e.isTag(r[s]))break}return!1},"first-of-type"(t,{adapter:e,equals:n}){let r=e.getSiblings(t),s=e.getName(t);for(let i=0;i<r.length;i++){let a=r[i];if(n(t,a))return!0;if(e.isTag(a)&&e.getName(a)===s)break}return!1},"last-of-type"(t,{adapter:e,equals:n}){let r=e.getSiblings(t),s=e.getName(t);for(let i=r.length-1;i>=0;i--){let a=r[i];if(n(t,a))return!0;if(e.isTag(a)&&e.getName(a)===s)break}return!1},"only-of-type"(t,{adapter:e,equals:n}){let r=e.getName(t);return e.getSiblings(t).every(s=>n(t,s)||!e.isTag(s)||e.getName(s)!==r)},"only-child"(t,{adapter:e,equals:n}){return e.getSiblings(t).every(r=>n(t,r)||!e.isTag(r))}}});var _u,aE=x(()=>{_u={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
        :is(button, input, select, textarea, optgroup, option)[disabled],
        optgroup[disabled] > option,
        fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
    )`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"}});function td(t,e){return t===Pt.default.falseFunc?Pt.default.falseFunc:n=>e.isTag(n)&&t(n)}function nd(t,e){let n=e.getSiblings(t);if(n.length<=1)return[];let r=n.indexOf(t);return r<0||r===n.length-1?[]:n.slice(r+1).filter(e.isTag)}function rd(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var Pt,ed,sd,Eu,Tu=x(()=>{Pt=_e(sr());Qf();ed={};sd=(t,e,n,r,s)=>{let i=s(e,rd(n),r);return i===Pt.default.trueFunc?t:i===Pt.default.falseFunc?Pt.default.falseFunc:a=>i(a)&&t(a)},Eu={is:sd,matches:sd,where:sd,not(t,e,n,r,s){let i=s(e,rd(n),r);return i===Pt.default.falseFunc?t:i===Pt.default.trueFunc?Pt.default.falseFunc:a=>!i(a)&&t(a)},has(t,e,n,r,s){let{adapter:i}=n,a=rd(n);a.relativeSelector=!0;let o=e.some(h=>h.some(oa))?[ed]:void 0,c=s(e,a,o);if(c===Pt.default.falseFunc)return Pt.default.falseFunc;let l=td(c,i);if(o&&c!==Pt.default.trueFunc){let{shouldTestNextSiblings:h=!1}=c;return d=>{if(!t(d))return!1;o[0]=d;let f=i.getChildren(d),p=h?[...f,...nd(d,i)]:f;return i.existsOne(l,p)}}return h=>t(h)&&i.existsOne(l,i.getChildren(h))}}});function oE(t,e,n,r,s){var i;let{name:a,data:o}=e;if(Array.isArray(o)){if(!(a in Eu))throw new Error(`Unknown pseudo-class :${a}(${o})`);return Eu[a](t,o,n,r,s)}let c=(i=n.pseudos)===null||i===void 0?void 0:i[a],l=typeof c=="string"?c:_u[a];if(typeof l=="string"){if(o!=null)throw new Error(`Pseudo ${a} doesn't have any arguments`);let h=Sn(l);return Eu.is(t,h,n,r,s)}if(typeof c=="function")return Jf(c,a,o,1),h=>c(h,o)&&t(h);if(a in qs)return qs[a](t,o,n,r);if(a in ca){let h=ca[a];return Jf(h,a,o,2),d=>h(d,n,o)&&t(d)}throw new Error(`Unknown pseudo-class :${a}`)}var id=x(()=>{zs();sE();iE();aE();Tu()});function ad(t,e){let n=e.getParent(t);return n&&e.isTag(n)?n:null}function uE(t,e,n,r,s){let{adapter:i,equals:a}=n;switch(e.type){case Q.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Q.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Q.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!n.xmlMode||n.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),Q_[e.action](t,e,n)}case Q.Pseudo:return oE(t,e,n,r,s);case Q.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:o}=e;return(!n.xmlMode||n.lowerCaseTags)&&(o=o.toLowerCase()),function(l){return i.getName(l)===o&&t(l)}}case Q.Descendant:{if(n.cacheResults===!1||typeof WeakSet=="undefined")return function(l){let h=l;for(;h=ad(h,i);)if(t(h))return!0;return!1};let o=new WeakSet;return function(l){let h=l;for(;h=ad(h,i);)if(!o.has(h)){if(i.isTag(h)&&t(h))return!0;o.add(h)}return!1}}case"_flexibleDescendant":return function(c){let l=c;do if(t(l))return!0;while(l=ad(l,i));return!1};case Q.Parent:return function(c){return i.getChildren(c).some(l=>i.isTag(l)&&t(l))};case Q.Child:return function(c){let l=i.getParent(c);return l!=null&&i.isTag(l)&&t(l)};case Q.Sibling:return function(c){let l=i.getSiblings(c);for(let h=0;h<l.length;h++){let d=l[h];if(a(c,d))break;if(i.isTag(d)&&t(d))return!0}return!1};case Q.Adjacent:return i.prevElementSibling?function(c){let l=i.prevElementSibling(c);return l!=null&&t(l)}:function(c){let l=i.getSiblings(c),h;for(let d=0;d<l.length;d++){let f=l[d];if(a(c,f))break;i.isTag(f)&&(h=f)}return!!h&&t(h)};case Q.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}var cE=x(()=>{X_();id();zs()});function lE(t,e,n){let r=xu(t,e,n);return td(r,e.adapter)}function xu(t,e,n){let r=typeof t=="string"?Sn(t):t;return yu(r,e,n)}function fE(t){return t.type===Q.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(fE)))}function kN(t,{adapter:e},n){let r=!!(n==null?void 0:n.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===ed||i&&e.isTag(i)}));for(let s of t){if(!(s.length>0&&oa(s[0])&&s[0].type!==Q.Descendant))if(r&&!s.some(fE))s.unshift(vN);else continue;s.unshift(ON)}}function yu(t,e,n){var r;t.forEach($f),n=(r=e.context)!==null&&r!==void 0?r:n;let s=Array.isArray(n),i=n&&(Array.isArray(n)?n:[n]);if(e.relativeSelector!==!1)kN(t,e,i);else if(t.some(c=>c.length>0&&oa(c[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let a=!1,o=t.map(c=>{if(c.length>=2){let[l,h]=c;l.type!==Q.Pseudo||l.name!=="scope"||(s&&h.type===Q.Descendant?c[1]=DN:(h.type===Q.Adjacent||h.type===Q.Sibling)&&(a=!0))}return RN(c,e,i)}).reduce(LN,In.default.falseFunc);return o.shouldTestNextSiblings=a,o}function RN(t,e,n){var r;return t.reduce((s,i)=>s===In.default.falseFunc?In.default.falseFunc:uE(s,i,e,n,yu),(r=e.rootFunc)!==null&&r!==void 0?r:In.default.trueFunc)}function LN(t,e){return e===In.default.falseFunc||t===In.default.trueFunc?t:t===In.default.falseFunc||e===In.default.trueFunc?e:function(r){return t(r)||e(r)}}var In,vN,DN,ON,dE=x(()=>{zs();In=_e(sr());Qf();cE();Tu();vN={type:Q.Descendant},DN={type:"_flexibleDescendant"},ON={type:Q.Pseudo,name:"scope",data:null}});function pE(t){var e,n,r,s;let i=t??PN;return(e=i.adapter)!==null&&e!==void 0||(i.adapter=rr),(n=i.equals)!==null&&n!==void 0||(i.equals=(s=(r=i.adapter)===null||r===void 0?void 0:r.equals)!==null&&s!==void 0?s:hE),i}function ud(t){return function(n,r,s){let i=pE(r);return t(n,i,s)}}function mE(t){return function(n,r,s){let i=pE(s);typeof n!="function"&&(n=xu(n,i,r));let a=Cu(r,i.adapter,n.shouldTestNextSiblings);return t(n,a,i)}}function Cu(t,e,n=!1){return n&&(t=MN(t,e)),Array.isArray(t)?e.removeSubsets(t):e.getChildren(t)}function MN(t,e){let n=Array.isArray(t)?t.slice(0):[t],r=n.length;for(let s=0;s<r;s++){let i=nd(n[s],e);n.push(...i)}return n}var od,hE,PN,F9,B9,Au,j9,H9,cd=x(()=>{Gt();od=_e(sr());dE();Tu();id();hE=(t,e)=>t===e,PN={adapter:rr,equals:hE};F9=ud(lE),B9=ud(xu),Au=ud(yu);j9=mE((t,e,n)=>t===od.default.falseFunc||!e||e.length===0?[]:n.adapter.findAll(t,e)),H9=mE((t,e,n)=>t===od.default.falseFunc||!e||e.length===0?null:n.adapter.findOne(t,e))});function Ks(t){return t.type!=="pseudo"?!1:FN.has(t.name)?!0:t.name==="not"&&Array.isArray(t.data)?t.data.some(e=>e.some(Ks)):!1}function gE(t,e,n){let r=e!=null?parseInt(e,10):NaN;switch(t){case"first":return 1;case"nth":case"eq":return isFinite(r)?r>=0?r+1:1/0:0;case"lt":return isFinite(r)?r>=0?Math.min(r,n):1/0:0;case"gt":return isFinite(r)?1/0:0;case"odd":return 2*n;case"even":return 2*n-1;case"last":case"not":return 1/0}}var FN,ld=x(()=>{FN=new Set(["first","last","eq","gt","nth","lt","even","odd"])});function bE(t){for(;t.parent;)t=t.parent;return t}function Su(t){let e=[],n=[];for(let r of t)r.some(Ks)?e.push(r):n.push(r);return[n,e]}var _E=x(()=>{ld()});function fd(t,e,n={}){return dd([t],e,n)}function dd(t,e,n={}){if(typeof e=="function")return t.some(e);let[r,s]=Su(Sn(e));return r.length>0&&t.some(Au(r,n))||s.some(i=>TE(i,t,n).length>0)}function HN(t,e,n,r){let s=typeof n=="string"?parseInt(n,10):NaN;switch(t){case"first":case"lt":return e;case"last":return e.length>0?[e[e.length-1]]:e;case"nth":case"eq":return isFinite(s)&&Math.abs(s)<e.length?[s<0?e[e.length+s]:e[s]]:[];case"gt":return isFinite(s)?e.slice(s+1):[];case"even":return e.filter((i,a)=>a%2==0);case"odd":return e.filter((i,a)=>a%2==1);case"not":{let i=new Set(EE(n,e,r));return e.filter(a=>!i.has(a))}}}function hd(t,e,n={}){return EE(Sn(t),e,n)}function EE(t,e,n){if(e.length===0)return[];let[r,s]=Su(t),i;if(r.length){let a=md(e,r,n);if(s.length===0)return a;a.length&&(i=new Set(a))}for(let a=0;a<s.length&&(i==null?void 0:i.size)!==e.length;a++){let o=s[a];if((i?e.filter(h=>$(h)&&!i.has(h)):e).length===0)break;let l=TE(o,e,n);if(l.length)if(i)l.forEach(h=>i.add(h));else{if(a===s.length-1)return l;i=new Set(l)}}return typeof i!="undefined"?i.size===e.length?e:e.filter(a=>i.has(a)):[]}function TE(t,e,n){var r;if(t.some(Pr)){let s=(r=n.root)!==null&&r!==void 0?r:bE(e[0]),i=ce(B({},n),{context:e,relativeSelector:!1});return t.push(jN),wu(s,t,i,!0,e.length)}return wu(e,t,n,!1,e.length)}function xE(t,e,n={},r=1/0){if(typeof t=="function")return yE(e,t);let[s,i]=Su(Sn(t)),a=i.map(o=>wu(e,o,n,!0,r));return s.length&&a.push(pd(e,s,n,r)),a.length===0?[]:a.length===1?a[0]:kr(a.reduce((o,c)=>[...o,...c]))}function wu(t,e,n,r,s){let i=e.findIndex(Ks),a=e.slice(0,i),o=e[i],c=e.length-1===i?s:1/0,l=gE(o.name,o.data,c);if(l===0)return[];let d=(a.length===0&&!Array.isArray(t)?Ji(t).filter($):a.length===0?(Array.isArray(t)?t:[t]).filter($):r||a.some(Pr)?pd(t,[a],n,l):md(t,[a],n)).slice(0,l),f=HN(o.name,d,o.data,n);if(f.length===0||e.length===i+1)return f;let p=e.slice(i+1),E=p.some(Pr);if(E){if(Pr(p[0])){let{type:T}=p[0];(T===Q.Sibling||T===Q.Adjacent)&&(f=Cu(f,rr,!0)),p.unshift(BN)}n=ce(B({},n),{relativeSelector:!1,rootFunc:T=>f.includes(T)})}else n.rootFunc&&n.rootFunc!==Iu.trueFunc&&(n=ce(B({},n),{rootFunc:Iu.trueFunc}));return p.some(Ks)?wu(f,p,n,!1,s):E?pd(f,[p],n,s):md(f,[p],n)}function pd(t,e,n,r){let s=Au(e,n,t);return yE(t,s,r)}function yE(t,e,n=1/0){let r=Cu(t,rr,e.shouldTestNextSiblings);return Mf(s=>$(s)&&e(s),r,!0,n)}function md(t,e,n){let r=(Array.isArray(t)?t:[t]).filter($);if(r.length===0)return r;let s=Au(e,n);return s===Iu.trueFunc?r:r.filter(s)}var Iu,BN,jN,AE=x(()=>{zs();cd();Gt();Iu=_e(sr());_E();ld();cd();BN={type:Q.Universal,namespace:null},jN={type:Q.Pseudo,name:"scope",data:null}});var Td={};It(Td,{_findBySelector:()=>VN,add:()=>bv,addBack:()=>_v,children:()=>tv,closest:()=>WN,contents:()=>nv,each:()=>rv,end:()=>gv,eq:()=>fv,filter:()=>iv,filterArray:()=>Ed,find:()=>zN,first:()=>cv,get:()=>dv,has:()=>uv,index:()=>pv,is:()=>av,last:()=>lv,map:()=>sv,next:()=>GN,nextAll:()=>$N,nextUntil:()=>QN,not:()=>ov,parent:()=>qN,parents:()=>KN,parentsUntil:()=>YN,prev:()=>XN,prevAll:()=>ZN,prevUntil:()=>JN,siblings:()=>ev,slice:()=>mv,toArray:()=>hv});function zN(t){if(!t)return this._make([]);if(typeof t!="string"){let e=Lt(t)?t.toArray():[t],n=this.toArray();return this._make(e.filter(r=>n.some(s=>na(s,r))))}return this._findBySelector(t,Number.POSITIVE_INFINITY)}function VN(t,e){var n;let r=this.toArray(),s=UN.test(t)?r:this.children().toArray(),i={context:r,root:(n=this._root)===null||n===void 0?void 0:n[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(xE(t,s,i,e))}function gd(t){return function(e,...n){return function(r){var s;let i=t(e,this);return r&&(i=Ed(i,r,this.options.xmlMode,(s=this._root)===null||s===void 0?void 0:s[0])),this._make(this.length>1&&i.length>1?n.reduce((a,o)=>o(a),i):i)}}}function _d(t,...e){let n=null,r=gd((s,i)=>{let a=[];return Ae(i,o=>{for(let c;(c=s(o))&&!(n==null?void 0:n(c,a.length));o=c)a.push(c)}),a})(t,...e);return function(s,i){n=typeof s=="string"?o=>fd(o,s,this.options):s?fa(s):null;let a=r.call(this,i);return n=null,a}}function Ys(t){return t.length>1?Array.from(new Set(t)):t}function WN(t){var e;let n=[];if(!t)return this._make(n);let r={xmlMode:this.options.xmlMode,root:(e=this._root)===null||e===void 0?void 0:e[0]},s=typeof t=="string"?i=>fd(i,t,r):fa(t);return Ae(this,i=>{for(i&&!kt(i)&&!$(i)&&(i=i.parent);i&&$(i);){if(s(i,0)){n.includes(i)||n.push(i);break}i=i.parent}}),this._make(n)}function nv(){let t=this.toArray().reduce((e,n)=>De(n)?e.concat(n.children):e,[]);return this._make(t)}function rv(t){let e=0,n=this.length;for(;e<n&&t.call(this[e],e,this[e])!==!1;)++e;return this}function sv(t){let e=[];for(let n=0;n<this.length;n++){let r=this[n],s=t.call(r,n,r);s!=null&&(e=e.concat(s))}return this._make(e)}function fa(t){return typeof t=="function"?(e,n)=>t.call(e,n,e):Lt(t)?e=>Array.prototype.includes.call(t,e):function(e){return t===e}}function iv(t){var e;return this._make(Ed(this.toArray(),t,this.options.xmlMode,(e=this._root)===null||e===void 0?void 0:e[0]))}function Ed(t,e,n,r){return typeof e=="string"?hd(e,t,{xmlMode:n,root:r}):t.filter(fa(e))}function av(t){let e=this.toArray();return typeof t=="string"?dd(e.filter($),t,this.options):t?e.some(fa(t)):!1}function ov(t){let e=this.toArray();if(typeof t=="string"){let n=new Set(hd(t,e,this.options));e=e.filter(r=>!n.has(r))}else{let n=fa(t);e=e.filter((r,s)=>!n(r,s))}return this._make(e)}function uv(t){return this.filter(typeof t=="string"?`:has(${t})`:(e,n)=>this._make(n).find(t).length>0)}function cv(){return this.length>1?this._make(this[0]):this}function lv(){return this.length>0?this._make(this[this.length-1]):this}function fv(t){var e;return t=+t,t===0&&this.length<=1?this:(t<0&&(t=this.length+t),this._make((e=this[t])!==null&&e!==void 0?e:[]))}function dv(t){return t==null?this.toArray():this[t<0?this.length+t:t]}function hv(){return Array.prototype.slice.call(this)}function pv(t){let e,n;return t==null?(e=this.parent().children(),n=this[0]):typeof t=="string"?(e=this._make(t),n=this[0]):(e=this,n=Lt(t)?t[0]:t),Array.prototype.indexOf.call(e,n)}function mv(t,e){return this._make(Array.prototype.slice.call(this,t,e))}function gv(){var t;return(t=this.prevObject)!==null&&t!==void 0?t:this._make([])}function bv(t,e){let n=this._make(t,e),r=kr([...this.get(),...n.get()]);return this._make(r)}function _v(t){return this.prevObject?this.add(t?this.prevObject.filter(t):this.prevObject):this}var UN,la,bd,qN,KN,YN,GN,$N,QN,XN,ZN,JN,ev,tv,CE=x(()=>{Qe();AE();Hs();js();Gt();UN=/^\s*[+~]/;la=gd((t,e)=>{let n=[];for(let r=0;r<e.length;r++){let s=t(e[r]);s.length>0&&(n=n.concat(s))}return n}),bd=gd((t,e)=>{let n=[];for(let r=0;r<e.length;r++){let s=t(e[r]);s!==null&&n.push(s)}return n});qN=bd(({parent:t})=>t&&!kt(t)?t:null,Ys),KN=la(t=>{let e=[];for(;t.parent&&!kt(t.parent);)e.push(t.parent),t=t.parent;return e},kr,t=>t.reverse()),YN=_d(({parent:t})=>t&&!kt(t)?t:null,kr,t=>t.reverse());GN=bd(t=>lu(t)),$N=la(t=>{let e=[];for(;t.next;)t=t.next,$(t)&&e.push(t);return e},Ys),QN=_d(t=>lu(t),Ys),XN=bd(t=>fu(t)),ZN=la(t=>{let e=[];for(;t.prev;)t=t.prev,$(t)&&e.push(t);return e},Ys),JN=_d(t=>fu(t),Ys),ev=la(t=>Pf(t).filter(e=>$(e)&&e!==t),kr),tv=la(t=>Ji(t).filter($),Ys)});function SE(t){return function(n,r,s,i){if(typeof Buffer!="undefined"&&Buffer.isBuffer(n)&&(n=n.toString()),typeof n=="string")return t(n,r,s,i);let a=n;if(!Array.isArray(a)&&kt(a))return a;let o=new Ot([]);return ir(a,o),o}}function ir(t,e){let n=Array.isArray(t)?t:[t];e?e.children=n:e=null;for(let r=0;r<n.length;r++){let s=n[r];s.parent&&s.parent.children!==n&&Cn(s),e?(s.prev=n[r-1]||null,s.next=n[r+1]||null):s.prev=s.next=null,s.parent=e}return e}var xd=x(()=>{Gt();Qe()});var yd={};It(yd,{_makeDomArray:()=>Ev,after:()=>Nv,append:()=>yv,appendTo:()=>Tv,before:()=>Dv,clone:()=>Bv,empty:()=>Lv,html:()=>Pv,insertAfter:()=>vv,insertBefore:()=>Ov,prepend:()=>Av,prependTo:()=>xv,remove:()=>kv,replaceWith:()=>Rv,text:()=>Fv,toString:()=>Mv,unwrap:()=>Iv,wrap:()=>Cv,wrapAll:()=>wv,wrapInner:()=>Sv});function Ev(t,e){if(t==null)return[];if(typeof t=="string")return this._parse(t,this.options,!1,null).children.slice(0);if("length"in t){if(t.length===1)return this._makeDomArray(t[0],e);let n=[];for(let r=0;r<t.length;r++){let s=t[r];if(typeof s=="object"){if(s==null)continue;if(!("length"in s)){n.push(e?Rs(s,!0):s);continue}}n.push(...this._makeDomArray(s,e))}return n}return[e?Rs(t,!0):t]}function IE(t){return function(...e){let n=this.length-1;return Ae(this,(r,s)=>{if(!De(r))return;let i=typeof e[0]=="function"?e[0].call(r,s,this._render(r.children)):e,a=this._makeDomArray(i,s<n);t(a,r.children,r)})}}function ar(t,e,n,r,s){var i,a;let o=[e,n,...r],c=e===0?null:t[e-1],l=e+n>=t.length?null:t[e+n];for(let h=0;h<r.length;++h){let d=r[h],f=d.parent;if(f){let E=f.children.indexOf(d);E>-1&&(f.children.splice(E,1),s===f&&e>E&&o[0]--)}d.parent=s,d.prev&&(d.prev.next=(i=d.next)!==null&&i!==void 0?i:null),d.next&&(d.next.prev=(a=d.prev)!==null&&a!==void 0?a:null),d.prev=h===0?c:r[h-1],d.next=h===r.length-1?l:r[h+1]}return c&&(c.next=r[0]),l&&(l.prev=r[r.length-1]),t.splice(...o)}function Tv(t){return(Lt(t)?t:this._make(t)).append(this),this}function xv(t){return(Lt(t)?t:this._make(t)).prepend(this),this}function wE(t){return function(e){let n=this.length-1,r=this.parents().last();for(let s=0;s<this.length;s++){let i=this[s],a=typeof e=="function"?e.call(i,s,i):typeof e=="string"&&!ra(e)?r.find(e).clone():e,[o]=this._makeDomArray(a,s<n);if(!o||!De(o))continue;let c=o,l=0;for(;l<c.children.length;){let h=c.children[l];$(h)?(c=h,l=0):l++}t(i,c,[o])}return this}}function Iv(t){return this.parent(t).not("body").each((e,n)=>{this._make(n).replaceWith(n.children)}),this}function wv(t){let e=this[0];if(e){let n=this._make(typeof t=="function"?t.call(e,0,e):t).insertBefore(e),r;for(let i=0;i<n.length;i++)n[i].type==="tag"&&(r=n[i]);let s=0;for(;r&&s<r.children.length;){let i=r.children[s];i.type==="tag"?(r=i,s=0):s++}r&&this._make(r).append(this)}return this}function Nv(...t){let e=this.length-1;return Ae(this,(n,r)=>{if(!De(n)||!n.parent)return;let s=n.parent.children,i=s.indexOf(n);if(i<0)return;let a=typeof t[0]=="function"?t[0].call(n,r,this._render(n.children)):t,o=this._makeDomArray(a,r<e);ar(s,i+1,0,o,n.parent)})}function vv(t){typeof t=="string"&&(t=this._make(t)),this.remove();let e=[];for(let n of this._makeDomArray(t)){let r=this.clone().toArray(),{parent:s}=n;if(!s)continue;let i=s.children,a=i.indexOf(n);a<0||(ar(i,a+1,0,r,s),e.push(...r))}return this._make(e)}function Dv(...t){let e=this.length-1;return Ae(this,(n,r)=>{if(!De(n)||!n.parent)return;let s=n.parent.children,i=s.indexOf(n);if(i<0)return;let a=typeof t[0]=="function"?t[0].call(n,r,this._render(n.children)):t,o=this._makeDomArray(a,r<e);ar(s,i,0,o,n.parent)})}function Ov(t){let e=this._make(t);this.remove();let n=[];return Ae(e,r=>{let s=this.clone().toArray(),{parent:i}=r;if(!i)return;let a=i.children,o=a.indexOf(r);o<0||(ar(a,o,0,s,i),n.push(...s))}),this._make(n)}function kv(t){let e=t?this.filter(t):this;return Ae(e,n=>{Cn(n),n.prev=n.next=n.parent=null}),this}function Rv(t){return Ae(this,(e,n)=>{let{parent:r}=e;if(!r)return;let s=r.children,i=typeof t=="function"?t.call(e,n,e):t,a=this._makeDomArray(i);ir(a,null);let o=s.indexOf(e);ar(s,o,1,a,r),a.includes(e)||(e.parent=e.prev=e.next=null)})}function Lv(){return Ae(this,t=>{if(!!De(t)){for(let e of t.children)e.next=e.prev=e.parent=null;t.children.length=0}})}function Pv(t){if(t===void 0){let e=this[0];return!e||!De(e)?null:this._render(e.children)}return Ae(this,e=>{if(!De(e))return;for(let r of e.children)r.next=r.prev=r.parent=null;let n=Lt(t)?t.toArray():this._parse(`${t}`,this.options,!1,e).children;ir(n,e)})}function Mv(){return this._render(this)}function Fv(t){return t===void 0?Rr(this):typeof t=="function"?Ae(this,(e,n)=>this._make(e).text(t.call(e,n,Rr([e])))):Ae(this,e=>{if(!De(e))return;for(let r of e.children)r.next=r.prev=r.parent=null;let n=new yn(`${t}`);ir(n,e)})}function Bv(){let t=Array.prototype.map.call(this.get(),n=>Rs(n,!0)),e=new Ot(t);for(let n of t)n.parent=e;return this._make(t)}var yv,Av,Cv,Sv,NE=x(()=>{Qe();xd();js();Hs();Gt();yv=IE((t,e,n)=>{ar(e,e.length,0,t,n)}),Av=IE((t,e,n)=>{ar(e,0,0,t,n)});Cv=wE((t,e,n)=>{let{parent:r}=t;if(!r)return;let s=r.children,i=s.indexOf(t);ir([t],e),ar(s,i,0,n,r)}),Sv=wE((t,e,n)=>{!De(t)||(ir(t.children,e),ir(n,t))})});var Ad={};It(Ad,{css:()=>jv});function jv(t,e){if(t!=null&&e!=null||typeof t=="object"&&!Array.isArray(t))return Ae(this,(n,r)=>{$(n)&&vE(n,t,e,r)});if(this.length!==0)return DE(this[0],t)}function vE(t,e,n,r){if(typeof e=="string"){let s=DE(t),i=typeof n=="function"?n.call(t,r,s[e]):n;i===""?delete s[e]:i!=null&&(s[e]=i),t.attribs.style=Hv(s)}else if(typeof e=="object"){let s=Object.keys(e);for(let i=0;i<s.length;i++){let a=s[i];vE(t,a,e[a],i)}}}function DE(t,e){if(!t||!$(t))return;let n=Uv(t.attribs.style);if(typeof e=="string")return n[e];if(Array.isArray(e)){let r={};for(let s of e)n[s]!=null&&(r[s]=n[s]);return r}return n}function Hv(t){return Object.keys(t).reduce((e,n)=>`${e}${e?" ":""}${n}: ${t[n]};`,"")}function Uv(t){if(t=(t||"").trim(),!t)return{};let e={},n;for(let r of t.split(";")){let s=r.indexOf(":");if(s<1||s===r.length-1){let i=r.trimEnd();i.length>0&&n!==void 0&&(e[n]+=`;${i}`)}else n=r.slice(0,s).trim(),e[n]=r.slice(s+1).trim()}return e}var OE=x(()=>{Hs();Qe()});var Cd={};It(Cd,{serialize:()=>Vv,serializeArray:()=>qv});function Vv(){return this.serializeArray().map(n=>`${encodeURIComponent(n.name)}=${encodeURIComponent(n.value)}`).join("&").replace(zv,"+")}function qv(){return this.map((t,e)=>{let n=this._make(e);return $(e)&&e.name==="form"?n.find(kE).toArray():n.filter(kE).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((t,e)=>{var n;let r=this._make(e),s=r.attr("name"),i=(n=r.val())!==null&&n!==void 0?n:"";return Array.isArray(i)?i.map(a=>({name:s,value:a.replace(RE,`\r
`)})):{name:s,value:i.replace(RE,`\r
`)}}).toArray()}var kE,zv,RE,LE=x(()=>{Qe();kE="input,select,textarea,keygen",zv=/%20/g,RE=/\r?\n/g});var Sd={};It(Sd,{extract:()=>Yv});function Kv(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function Yv(t){let e={};for(let n in t){let r=t[n],s=Array.isArray(r),{selector:i,value:a}=Kv(s?r[0]:r),o=typeof a=="function"?a:typeof a=="string"?c=>this._make(c).prop(a):c=>this._make(c).extract(a);if(s)e[n]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((c,l)=>o(l,n,e)).get();else{let c=this._findBySelector(i,1);e[n]=c.length>0?o(c[0],n,e):void 0}}return e}var PE=x(()=>{});var Fr,ME=x(()=>{U_();CE();NE();OE();LE();PE();Fr=class{constructor(e,n,r){if(this.length=0,this.options=r,this._root=n,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};Fr.prototype.cheerio="[cheerio object]";Fr.prototype.splice=Array.prototype.splice;Fr.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Fr.prototype,Yf,Td,yd,Ad,Cd,Sd)});function FE(t,e){return function n(r,s,i=!0){if(r==null)throw new Error("cheerio.load() expects a string");let a=ta(s),o=t(r,a,i,null);class c extends Fr{_make(d,f){let p=l(d,f);return p.prevObject=this,p}_parse(d,f,p,E){return t(d,f,p,E)}_render(d){return e(d,this.options)}}function l(h,d,f=o,p){if(h&&Lt(h))return h;let E=ta(p,a),T=typeof f=="string"?[t(f,E,!1,null)]:"length"in f?f:[f],w=Lt(T)?T:new c(T,null,E);if(w._root=w,!h)return new c(void 0,w,E);let m=typeof h=="string"&&ra(h)?t(h,E,!1,null).children:Wv(h)?[h]:Array.isArray(h)?h:void 0,I=new c(m,w,E);if(m)return I;if(typeof h!="string")throw new TypeError("Unexpected type of selector");let A=h,b=d?typeof d=="string"?ra(d)?new c([t(d,E,!1,null)],w,E):(A=`${d} ${A}`,w):Lt(d)?d:new c(Array.isArray(d)?d:[d],w,E):w;return b?b.find(A):I}return Object.assign(l,zf,{load:n,_root:o,_options:a,fn:c.prototype,prototype:c.prototype}),l}}function Wv(t){return!!t.name||t.type==="root"||t.type==="text"||t.type==="comment"}var BE=x(()=>{Hf();js();ME();Hs()});function Nu(t){return t>=55296&&t<=57343}function jE(t){return t>=56320&&t<=57343}function HE(t,e){return(t-55296)*1024+9216+e}function vu(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function Du(t){return t>=64976&&t<=65007||Gv.has(t)}var Gv,we,g,dt,Ou=x(()=>{Gv=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]),we="\uFFFD";(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(g||(g={}));dt={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"}});var D,da=x(()=>{(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",t.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",t.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",t.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",t.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",t.missingDoctypePublicIdentifier="missing-doctype-public-identifier",t.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",t.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",t.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",t.cdataInHtmlContent="cdata-in-html-content",t.incorrectlyOpenedComment="incorrectly-opened-comment",t.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",t.eofInDoctype="eof-in-doctype",t.nestedComment="nested-comment",t.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",t.eofInComment="eof-in-comment",t.incorrectlyClosedComment="incorrectly-closed-comment",t.eofInCdata="eof-in-cdata",t.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",t.nullCharacterReference="null-character-reference",t.surrogateCharacterReference="surrogate-character-reference",t.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",t.controlCharacterReference="control-character-reference",t.noncharacterCharacterReference="noncharacter-character-reference",t.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",t.missingDoctypeName="missing-doctype-name",t.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",t.duplicateAttribute="duplicate-attribute",t.nonConformingDoctype="non-conforming-doctype",t.missingDoctype="missing-doctype",t.misplacedDoctype="misplaced-doctype",t.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",t.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",t.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",t.openElementsLeftAfterEof="open-elements-left-after-eof",t.abandonedHeadElementChild="abandoned-head-element-child",t.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",t.nestedNoscriptInHead="nested-noscript-in-head",t.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(D||(D={}))});var $v,Id,UE=x(()=>{Ou();da();$v=1<<16,Id=class{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=$v,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(e,n){let{line:r,col:s,offset:i}=this,a=s+n,o=i+n;return{code:e,startLine:r,endLine:r,startCol:a,endCol:a,startOffset:o,endOffset:o}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let n=this.html.charCodeAt(this.pos+1);if(jE(n))return this.pos++,this._addGap(),HE(e,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,g.EOF;return this._err(D.surrogateInInputStream),e}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(e,n){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,n){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(e,this.pos);for(let r=0;r<e.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==e.charCodeAt(r))return!1;return!0}peek(e){let n=this.pos+e;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,g.EOF;let r=this.html.charCodeAt(n);return r===g.CARRIAGE_RETURN?g.LINE_FEED:r}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,g.EOF;let e=this.html.charCodeAt(this.pos);return e===g.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,g.LINE_FEED):e===g.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Nu(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===g.LINE_FEED||e===g.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){vu(e)?this._err(D.controlCharacterInInputStream):Du(e)&&this._err(D.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}});function ku(t,e){for(let n=t.attrs.length-1;n>=0;n--)if(t.attrs[n].name===e)return t.attrs[n].value;return null}var fe,Ru=x(()=>{(function(t){t[t.CHARACTER=0]="CHARACTER",t[t.NULL_CHARACTER=1]="NULL_CHARACTER",t[t.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",t[t.START_TAG=3]="START_TAG",t[t.END_TAG=4]="END_TAG",t[t.COMMENT=5]="COMMENT",t[t.DOCTYPE=6]="DOCTYPE",t[t.EOF=7]="EOF",t[t.HIBERNATION=8]="HIBERNATION"})(fe||(fe={}))});var Lu={};It(Lu,{ATTRS:()=>rn,DOCUMENT_MODE:()=>st,NS:()=>R,NUMBERED_HEADERS:()=>Ws,SPECIAL_ELEMENTS:()=>wd,TAG_ID:()=>u,TAG_NAMES:()=>v,getTagID:()=>or,hasUnescapedText:()=>Nd});function or(t){var e;return(e=Xv.get(t))!==null&&e!==void 0?e:u.UNKNOWN}function Nd(t,e){return Zv.has(t)||e&&t===v.NOSCRIPT}var R,rn,st,v,u,Xv,F,wd,Ws,Zv,wn=x(()=>{(function(t){t.HTML="http://www.w3.org/1999/xhtml",t.MATHML="http://www.w3.org/1998/Math/MathML",t.SVG="http://www.w3.org/2000/svg",t.XLINK="http://www.w3.org/1999/xlink",t.XML="http://www.w3.org/XML/1998/namespace",t.XMLNS="http://www.w3.org/2000/xmlns/"})(R||(R={}));(function(t){t.TYPE="type",t.ACTION="action",t.ENCODING="encoding",t.PROMPT="prompt",t.NAME="name",t.COLOR="color",t.FACE="face",t.SIZE="size"})(rn||(rn={}));(function(t){t.NO_QUIRKS="no-quirks",t.QUIRKS="quirks",t.LIMITED_QUIRKS="limited-quirks"})(st||(st={}));(function(t){t.A="a",t.ADDRESS="address",t.ANNOTATION_XML="annotation-xml",t.APPLET="applet",t.AREA="area",t.ARTICLE="article",t.ASIDE="aside",t.B="b",t.BASE="base",t.BASEFONT="basefont",t.BGSOUND="bgsound",t.BIG="big",t.BLOCKQUOTE="blockquote",t.BODY="body",t.BR="br",t.BUTTON="button",t.CAPTION="caption",t.CENTER="center",t.CODE="code",t.COL="col",t.COLGROUP="colgroup",t.DD="dd",t.DESC="desc",t.DETAILS="details",t.DIALOG="dialog",t.DIR="dir",t.DIV="div",t.DL="dl",t.DT="dt",t.EM="em",t.EMBED="embed",t.FIELDSET="fieldset",t.FIGCAPTION="figcaption",t.FIGURE="figure",t.FONT="font",t.FOOTER="footer",t.FOREIGN_OBJECT="foreignObject",t.FORM="form",t.FRAME="frame",t.FRAMESET="frameset",t.H1="h1",t.H2="h2",t.H3="h3",t.H4="h4",t.H5="h5",t.H6="h6",t.HEAD="head",t.HEADER="header",t.HGROUP="hgroup",t.HR="hr",t.HTML="html",t.I="i",t.IMG="img",t.IMAGE="image",t.INPUT="input",t.IFRAME="iframe",t.KEYGEN="keygen",t.LABEL="label",t.LI="li",t.LINK="link",t.LISTING="listing",t.MAIN="main",t.MALIGNMARK="malignmark",t.MARQUEE="marquee",t.MATH="math",t.MENU="menu",t.META="meta",t.MGLYPH="mglyph",t.MI="mi",t.MO="mo",t.MN="mn",t.MS="ms",t.MTEXT="mtext",t.NAV="nav",t.NOBR="nobr",t.NOFRAMES="noframes",t.NOEMBED="noembed",t.NOSCRIPT="noscript",t.OBJECT="object",t.OL="ol",t.OPTGROUP="optgroup",t.OPTION="option",t.P="p",t.PARAM="param",t.PLAINTEXT="plaintext",t.PRE="pre",t.RB="rb",t.RP="rp",t.RT="rt",t.RTC="rtc",t.RUBY="ruby",t.S="s",t.SCRIPT="script",t.SEARCH="search",t.SECTION="section",t.SELECT="select",t.SOURCE="source",t.SMALL="small",t.SPAN="span",t.STRIKE="strike",t.STRONG="strong",t.STYLE="style",t.SUB="sub",t.SUMMARY="summary",t.SUP="sup",t.TABLE="table",t.TBODY="tbody",t.TEMPLATE="template",t.TEXTAREA="textarea",t.TFOOT="tfoot",t.TD="td",t.TH="th",t.THEAD="thead",t.TITLE="title",t.TR="tr",t.TRACK="track",t.TT="tt",t.U="u",t.UL="ul",t.SVG="svg",t.VAR="var",t.WBR="wbr",t.XMP="xmp"})(v||(v={}));(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.A=1]="A",t[t.ADDRESS=2]="ADDRESS",t[t.ANNOTATION_XML=3]="ANNOTATION_XML",t[t.APPLET=4]="APPLET",t[t.AREA=5]="AREA",t[t.ARTICLE=6]="ARTICLE",t[t.ASIDE=7]="ASIDE",t[t.B=8]="B",t[t.BASE=9]="BASE",t[t.BASEFONT=10]="BASEFONT",t[t.BGSOUND=11]="BGSOUND",t[t.BIG=12]="BIG",t[t.BLOCKQUOTE=13]="BLOCKQUOTE",t[t.BODY=14]="BODY",t[t.BR=15]="BR",t[t.BUTTON=16]="BUTTON",t[t.CAPTION=17]="CAPTION",t[t.CENTER=18]="CENTER",t[t.CODE=19]="CODE",t[t.COL=20]="COL",t[t.COLGROUP=21]="COLGROUP",t[t.DD=22]="DD",t[t.DESC=23]="DESC",t[t.DETAILS=24]="DETAILS",t[t.DIALOG=25]="DIALOG",t[t.DIR=26]="DIR",t[t.DIV=27]="DIV",t[t.DL=28]="DL",t[t.DT=29]="DT",t[t.EM=30]="EM",t[t.EMBED=31]="EMBED",t[t.FIELDSET=32]="FIELDSET",t[t.FIGCAPTION=33]="FIGCAPTION",t[t.FIGURE=34]="FIGURE",t[t.FONT=35]="FONT",t[t.FOOTER=36]="FOOTER",t[t.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",t[t.FORM=38]="FORM",t[t.FRAME=39]="FRAME",t[t.FRAMESET=40]="FRAMESET",t[t.H1=41]="H1",t[t.H2=42]="H2",t[t.H3=43]="H3",t[t.H4=44]="H4",t[t.H5=45]="H5",t[t.H6=46]="H6",t[t.HEAD=47]="HEAD",t[t.HEADER=48]="HEADER",t[t.HGROUP=49]="HGROUP",t[t.HR=50]="HR",t[t.HTML=51]="HTML",t[t.I=52]="I",t[t.IMG=53]="IMG",t[t.IMAGE=54]="IMAGE",t[t.INPUT=55]="INPUT",t[t.IFRAME=56]="IFRAME",t[t.KEYGEN=57]="KEYGEN",t[t.LABEL=58]="LABEL",t[t.LI=59]="LI",t[t.LINK=60]="LINK",t[t.LISTING=61]="LISTING",t[t.MAIN=62]="MAIN",t[t.MALIGNMARK=63]="MALIGNMARK",t[t.MARQUEE=64]="MARQUEE",t[t.MATH=65]="MATH",t[t.MENU=66]="MENU",t[t.META=67]="META",t[t.MGLYPH=68]="MGLYPH",t[t.MI=69]="MI",t[t.MO=70]="MO",t[t.MN=71]="MN",t[t.MS=72]="MS",t[t.MTEXT=73]="MTEXT",t[t.NAV=74]="NAV",t[t.NOBR=75]="NOBR",t[t.NOFRAMES=76]="NOFRAMES",t[t.NOEMBED=77]="NOEMBED",t[t.NOSCRIPT=78]="NOSCRIPT",t[t.OBJECT=79]="OBJECT",t[t.OL=80]="OL",t[t.OPTGROUP=81]="OPTGROUP",t[t.OPTION=82]="OPTION",t[t.P=83]="P",t[t.PARAM=84]="PARAM",t[t.PLAINTEXT=85]="PLAINTEXT",t[t.PRE=86]="PRE",t[t.RB=87]="RB",t[t.RP=88]="RP",t[t.RT=89]="RT",t[t.RTC=90]="RTC",t[t.RUBY=91]="RUBY",t[t.S=92]="S",t[t.SCRIPT=93]="SCRIPT",t[t.SEARCH=94]="SEARCH",t[t.SECTION=95]="SECTION",t[t.SELECT=96]="SELECT",t[t.SOURCE=97]="SOURCE",t[t.SMALL=98]="SMALL",t[t.SPAN=99]="SPAN",t[t.STRIKE=100]="STRIKE",t[t.STRONG=101]="STRONG",t[t.STYLE=102]="STYLE",t[t.SUB=103]="SUB",t[t.SUMMARY=104]="SUMMARY",t[t.SUP=105]="SUP",t[t.TABLE=106]="TABLE",t[t.TBODY=107]="TBODY",t[t.TEMPLATE=108]="TEMPLATE",t[t.TEXTAREA=109]="TEXTAREA",t[t.TFOOT=110]="TFOOT",t[t.TD=111]="TD",t[t.TH=112]="TH",t[t.THEAD=113]="THEAD",t[t.TITLE=114]="TITLE",t[t.TR=115]="TR",t[t.TRACK=116]="TRACK",t[t.TT=117]="TT",t[t.U=118]="U",t[t.UL=119]="UL",t[t.SVG=120]="SVG",t[t.VAR=121]="VAR",t[t.WBR=122]="WBR",t[t.XMP=123]="XMP"})(u||(u={}));Xv=new Map([[v.A,u.A],[v.ADDRESS,u.ADDRESS],[v.ANNOTATION_XML,u.ANNOTATION_XML],[v.APPLET,u.APPLET],[v.AREA,u.AREA],[v.ARTICLE,u.ARTICLE],[v.ASIDE,u.ASIDE],[v.B,u.B],[v.BASE,u.BASE],[v.BASEFONT,u.BASEFONT],[v.BGSOUND,u.BGSOUND],[v.BIG,u.BIG],[v.BLOCKQUOTE,u.BLOCKQUOTE],[v.BODY,u.BODY],[v.BR,u.BR],[v.BUTTON,u.BUTTON],[v.CAPTION,u.CAPTION],[v.CENTER,u.CENTER],[v.CODE,u.CODE],[v.COL,u.COL],[v.COLGROUP,u.COLGROUP],[v.DD,u.DD],[v.DESC,u.DESC],[v.DETAILS,u.DETAILS],[v.DIALOG,u.DIALOG],[v.DIR,u.DIR],[v.DIV,u.DIV],[v.DL,u.DL],[v.DT,u.DT],[v.EM,u.EM],[v.EMBED,u.EMBED],[v.FIELDSET,u.FIELDSET],[v.FIGCAPTION,u.FIGCAPTION],[v.FIGURE,u.FIGURE],[v.FONT,u.FONT],[v.FOOTER,u.FOOTER],[v.FOREIGN_OBJECT,u.FOREIGN_OBJECT],[v.FORM,u.FORM],[v.FRAME,u.FRAME],[v.FRAMESET,u.FRAMESET],[v.H1,u.H1],[v.H2,u.H2],[v.H3,u.H3],[v.H4,u.H4],[v.H5,u.H5],[v.H6,u.H6],[v.HEAD,u.HEAD],[v.HEADER,u.HEADER],[v.HGROUP,u.HGROUP],[v.HR,u.HR],[v.HTML,u.HTML],[v.I,u.I],[v.IMG,u.IMG],[v.IMAGE,u.IMAGE],[v.INPUT,u.INPUT],[v.IFRAME,u.IFRAME],[v.KEYGEN,u.KEYGEN],[v.LABEL,u.LABEL],[v.LI,u.LI],[v.LINK,u.LINK],[v.LISTING,u.LISTING],[v.MAIN,u.MAIN],[v.MALIGNMARK,u.MALIGNMARK],[v.MARQUEE,u.MARQUEE],[v.MATH,u.MATH],[v.MENU,u.MENU],[v.META,u.META],[v.MGLYPH,u.MGLYPH],[v.MI,u.MI],[v.MO,u.MO],[v.MN,u.MN],[v.MS,u.MS],[v.MTEXT,u.MTEXT],[v.NAV,u.NAV],[v.NOBR,u.NOBR],[v.NOFRAMES,u.NOFRAMES],[v.NOEMBED,u.NOEMBED],[v.NOSCRIPT,u.NOSCRIPT],[v.OBJECT,u.OBJECT],[v.OL,u.OL],[v.OPTGROUP,u.OPTGROUP],[v.OPTION,u.OPTION],[v.P,u.P],[v.PARAM,u.PARAM],[v.PLAINTEXT,u.PLAINTEXT],[v.PRE,u.PRE],[v.RB,u.RB],[v.RP,u.RP],[v.RT,u.RT],[v.RTC,u.RTC],[v.RUBY,u.RUBY],[v.S,u.S],[v.SCRIPT,u.SCRIPT],[v.SEARCH,u.SEARCH],[v.SECTION,u.SECTION],[v.SELECT,u.SELECT],[v.SOURCE,u.SOURCE],[v.SMALL,u.SMALL],[v.SPAN,u.SPAN],[v.STRIKE,u.STRIKE],[v.STRONG,u.STRONG],[v.STYLE,u.STYLE],[v.SUB,u.SUB],[v.SUMMARY,u.SUMMARY],[v.SUP,u.SUP],[v.TABLE,u.TABLE],[v.TBODY,u.TBODY],[v.TEMPLATE,u.TEMPLATE],[v.TEXTAREA,u.TEXTAREA],[v.TFOOT,u.TFOOT],[v.TD,u.TD],[v.TH,u.TH],[v.THEAD,u.THEAD],[v.TITLE,u.TITLE],[v.TR,u.TR],[v.TRACK,u.TRACK],[v.TT,u.TT],[v.U,u.U],[v.UL,u.UL],[v.SVG,u.SVG],[v.VAR,u.VAR],[v.WBR,u.WBR],[v.XMP,u.XMP]]);F=u,wd={[R.HTML]:new Set([F.ADDRESS,F.APPLET,F.AREA,F.ARTICLE,F.ASIDE,F.BASE,F.BASEFONT,F.BGSOUND,F.BLOCKQUOTE,F.BODY,F.BR,F.BUTTON,F.CAPTION,F.CENTER,F.COL,F.COLGROUP,F.DD,F.DETAILS,F.DIR,F.DIV,F.DL,F.DT,F.EMBED,F.FIELDSET,F.FIGCAPTION,F.FIGURE,F.FOOTER,F.FORM,F.FRAME,F.FRAMESET,F.H1,F.H2,F.H3,F.H4,F.H5,F.H6,F.HEAD,F.HEADER,F.HGROUP,F.HR,F.HTML,F.IFRAME,F.IMG,F.INPUT,F.LI,F.LINK,F.LISTING,F.MAIN,F.MARQUEE,F.MENU,F.META,F.NAV,F.NOEMBED,F.NOFRAMES,F.NOSCRIPT,F.OBJECT,F.OL,F.P,F.PARAM,F.PLAINTEXT,F.PRE,F.SCRIPT,F.SECTION,F.SELECT,F.SOURCE,F.STYLE,F.SUMMARY,F.TABLE,F.TBODY,F.TD,F.TEMPLATE,F.TEXTAREA,F.TFOOT,F.TH,F.THEAD,F.TITLE,F.TR,F.TRACK,F.UL,F.WBR,F.XMP]),[R.MATHML]:new Set([F.MI,F.MO,F.MN,F.MS,F.MTEXT,F.ANNOTATION_XML]),[R.SVG]:new Set([F.TITLE,F.FOREIGN_OBJECT,F.DESC]),[R.XLINK]:new Set,[R.XML]:new Set,[R.XMLNS]:new Set},Ws=new Set([F.H1,F.H2,F.H3,F.H4,F.H5,F.H6]),Zv=new Set([v.STYLE,v.SCRIPT,v.XMP,v.IFRAME,v.NOEMBED,v.NOFRAMES,v.PLAINTEXT])});function Jv(t){return t>=g.DIGIT_0&&t<=g.DIGIT_9}function ha(t){return t>=g.LATIN_CAPITAL_A&&t<=g.LATIN_CAPITAL_Z}function e6(t){return t>=g.LATIN_SMALL_A&&t<=g.LATIN_SMALL_Z}function ur(t){return e6(t)||ha(t)}function zE(t){return ur(t)||Jv(t)}function Pu(t){return t+32}function VE(t){return t===g.SPACE||t===g.LINE_FEED||t===g.TABULATION||t===g.FORM_FEED}function qE(t){return VE(t)||t===g.SOLIDUS||t===g.GREATER_THAN_SIGN}function t6(t){return t===g.NULL?D.nullCharacterReference:t>1114111?D.characterReferenceOutsideUnicodeRange:Nu(t)?D.surrogateCharacterReference:Du(t)?D.noncharacterCharacterReference:vu(t)||t===g.CARRIAGE_RETURN?D.controlCharacterReference:null}var _,it,Mu,vd=x(()=>{UE();Ou();Ru();Ms();da();wn();(function(t){t[t.DATA=0]="DATA",t[t.RCDATA=1]="RCDATA",t[t.RAWTEXT=2]="RAWTEXT",t[t.SCRIPT_DATA=3]="SCRIPT_DATA",t[t.PLAINTEXT=4]="PLAINTEXT",t[t.TAG_OPEN=5]="TAG_OPEN",t[t.END_TAG_OPEN=6]="END_TAG_OPEN",t[t.TAG_NAME=7]="TAG_NAME",t[t.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",t[t.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",t[t.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",t[t.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",t[t.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",t[t.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",t[t.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",t[t.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",t[t.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",t[t.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",t[t.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",t[t.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",t[t.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",t[t.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",t[t.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",t[t.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",t[t.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",t[t.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",t[t.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",t[t.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",t[t.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",t[t.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",t[t.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",t[t.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",t[t.BOGUS_COMMENT=40]="BOGUS_COMMENT",t[t.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",t[t.COMMENT_START=42]="COMMENT_START",t[t.COMMENT_START_DASH=43]="COMMENT_START_DASH",t[t.COMMENT=44]="COMMENT",t[t.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",t[t.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",t[t.COMMENT_END_DASH=49]="COMMENT_END_DASH",t[t.COMMENT_END=50]="COMMENT_END",t[t.COMMENT_END_BANG=51]="COMMENT_END_BANG",t[t.DOCTYPE=52]="DOCTYPE",t[t.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",t[t.DOCTYPE_NAME=54]="DOCTYPE_NAME",t[t.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",t[t.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",t[t.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",t[t.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",t[t.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",t[t.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",t[t.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",t[t.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",t[t.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",t[t.CDATA_SECTION=68]="CDATA_SECTION",t[t.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",t[t.CDATA_SECTION_END=70]="CDATA_SECTION_END",t[t.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",t[t.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(_||(_={}));it={DATA:_.DATA,RCDATA:_.RCDATA,RAWTEXT:_.RAWTEXT,SCRIPT_DATA:_.SCRIPT_DATA,PLAINTEXT:_.PLAINTEXT,CDATA_SECTION:_.CDATA_SECTION};Mu=class{constructor(e,n){this.options=e,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=_.DATA,this.returnState=_.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Id(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Dr(Ls,(r,s)=>{this.preprocessor.pos=this.entityStartPos+s-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(D.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(D.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{let s=t6(r);s&&this._err(s,1)}}:void 0)}_err(e,n=0){var r,s;(s=(r=this.handler).onParseError)===null||s===void 0||s.call(r,this.preprocessor.getError(e,n))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||e==null||e())}write(e,n,r){this.active=!0,this.preprocessor.write(e,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let n=0;n<e;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,n){return this.preprocessor.startsWith(e,n)?(this._advanceBy(e.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:fe.START_TAG,tagName:"",tagID:u.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:fe.END_TAG,tagName:"",tagID:u.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:fe.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:fe.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,n){this.currentCharacterToken={type:e,chars:n,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,n;let r=this.currentToken;if(ku(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){let s=(e=(n=r.location).attrs)!==null&&e!==void 0?e:n.attrs=Object.create(null);s[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(D.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let e=this.currentToken;this.prepareToken(e),e.tagID=or(e.tagName),e.type===fe.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(D.endTagWithAttributes),e.selfClosing&&this._err(D.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case fe.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case fe.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case fe.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:fe.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,n)}_emitCodePoint(e){let n=VE(e)?fe.WHITESPACE_CHARACTER:e===g.NULL?fe.NULL_CHARACTER:fe.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(fe.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=_.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?rt.Attribute:rt.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===_.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===_.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===_.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case _.DATA:{this._stateData(e);break}case _.RCDATA:{this._stateRcdata(e);break}case _.RAWTEXT:{this._stateRawtext(e);break}case _.SCRIPT_DATA:{this._stateScriptData(e);break}case _.PLAINTEXT:{this._statePlaintext(e);break}case _.TAG_OPEN:{this._stateTagOpen(e);break}case _.END_TAG_OPEN:{this._stateEndTagOpen(e);break}case _.TAG_NAME:{this._stateTagName(e);break}case _.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(e);break}case _.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(e);break}case _.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(e);break}case _.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(e);break}case _.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(e);break}case _.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(e);break}case _.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(e);break}case _.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(e);break}case _.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(e);break}case _.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(e);break}case _.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(e);break}case _.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(e);break}case _.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(e);break}case _.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(e);break}case _.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(e);break}case _.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(e);break}case _.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(e);break}case _.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(e);break}case _.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(e);break}case _.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(e);break}case _.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(e);break}case _.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(e);break}case _.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(e);break}case _.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(e);break}case _.ATTRIBUTE_NAME:{this._stateAttributeName(e);break}case _.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(e);break}case _.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(e);break}case _.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(e);break}case _.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(e);break}case _.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(e);break}case _.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(e);break}case _.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(e);break}case _.BOGUS_COMMENT:{this._stateBogusComment(e);break}case _.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(e);break}case _.COMMENT_START:{this._stateCommentStart(e);break}case _.COMMENT_START_DASH:{this._stateCommentStartDash(e);break}case _.COMMENT:{this._stateComment(e);break}case _.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(e);break}case _.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(e);break}case _.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(e);break}case _.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(e);break}case _.COMMENT_END_DASH:{this._stateCommentEndDash(e);break}case _.COMMENT_END:{this._stateCommentEnd(e);break}case _.COMMENT_END_BANG:{this._stateCommentEndBang(e);break}case _.DOCTYPE:{this._stateDoctype(e);break}case _.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(e);break}case _.DOCTYPE_NAME:{this._stateDoctypeName(e);break}case _.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(e);break}case _.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(e);break}case _.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(e);break}case _.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(e);break}case _.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(e);break}case _.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(e);break}case _.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break}case _.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(e);break}case _.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(e);break}case _.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(e);break}case _.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(e);break}case _.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(e);break}case _.BOGUS_DOCTYPE:{this._stateBogusDoctype(e);break}case _.CDATA_SECTION:{this._stateCdataSection(e);break}case _.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(e);break}case _.CDATA_SECTION_END:{this._stateCdataSectionEnd(e);break}case _.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case _.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(e);break}default:throw new Error("Unknown state")}}_stateData(e){switch(e){case g.LESS_THAN_SIGN:{this.state=_.TAG_OPEN;break}case g.AMPERSAND:{this._startCharacterReference();break}case g.NULL:{this._err(D.unexpectedNullCharacter),this._emitCodePoint(e);break}case g.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case g.AMPERSAND:{this._startCharacterReference();break}case g.LESS_THAN_SIGN:{this.state=_.RCDATA_LESS_THAN_SIGN;break}case g.NULL:{this._err(D.unexpectedNullCharacter),this._emitChars(we);break}case g.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case g.LESS_THAN_SIGN:{this.state=_.RAWTEXT_LESS_THAN_SIGN;break}case g.NULL:{this._err(D.unexpectedNullCharacter),this._emitChars(we);break}case g.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case g.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_LESS_THAN_SIGN;break}case g.NULL:{this._err(D.unexpectedNullCharacter),this._emitChars(we);break}case g.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case g.NULL:{this._err(D.unexpectedNullCharacter),this._emitChars(we);break}case g.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateTagOpen(e){if(ur(e))this._createStartTagToken(),this.state=_.TAG_NAME,this._stateTagName(e);else switch(e){case g.EXCLAMATION_MARK:{this.state=_.MARKUP_DECLARATION_OPEN;break}case g.SOLIDUS:{this.state=_.END_TAG_OPEN;break}case g.QUESTION_MARK:{this._err(D.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=_.BOGUS_COMMENT,this._stateBogusComment(e);break}case g.EOF:{this._err(D.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(D.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=_.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(ur(e))this._createEndTagToken(),this.state=_.TAG_NAME,this._stateTagName(e);else switch(e){case g.GREATER_THAN_SIGN:{this._err(D.missingEndTagName),this.state=_.DATA;break}case g.EOF:{this._err(D.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(D.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=_.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){let n=this.currentToken;switch(e){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this.state=_.BEFORE_ATTRIBUTE_NAME;break}case g.SOLIDUS:{this.state=_.SELF_CLOSING_START_TAG;break}case g.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentTagToken();break}case g.NULL:{this._err(D.unexpectedNullCharacter),n.tagName+=we;break}case g.EOF:{this._err(D.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(ha(e)?Pu(e):e)}}_stateRcdataLessThanSign(e){e===g.SOLIDUS?this.state=_.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=_.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){ur(e)?(this.state=_.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=_.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();let n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=_.BEFORE_ATTRIBUTE_NAME,!1;case g.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=_.SELF_CLOSING_START_TAG,!1;case g.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=_.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=_.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===g.SOLIDUS?this.state=_.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=_.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){ur(e)?(this.state=_.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=_.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=_.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case g.SOLIDUS:{this.state=_.SCRIPT_DATA_END_TAG_OPEN;break}case g.EXCLAMATION_MARK:{this.state=_.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=_.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){ur(e)?(this.state=_.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=_.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=_.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===g.HYPHEN_MINUS?(this.state=_.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=_.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===g.HYPHEN_MINUS?(this.state=_.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=_.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case g.HYPHEN_MINUS:{this.state=_.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case g.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case g.NULL:{this._err(D.unexpectedNullCharacter),this._emitChars(we);break}case g.EOF:{this._err(D.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case g.HYPHEN_MINUS:{this.state=_.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case g.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case g.NULL:{this._err(D.unexpectedNullCharacter),this.state=_.SCRIPT_DATA_ESCAPED,this._emitChars(we);break}case g.EOF:{this._err(D.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=_.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case g.HYPHEN_MINUS:{this._emitChars("-");break}case g.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case g.GREATER_THAN_SIGN:{this.state=_.SCRIPT_DATA,this._emitChars(">");break}case g.NULL:{this._err(D.unexpectedNullCharacter),this.state=_.SCRIPT_DATA_ESCAPED,this._emitChars(we);break}case g.EOF:{this._err(D.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=_.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===g.SOLIDUS?this.state=_.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ur(e)?(this._emitChars("<"),this.state=_.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=_.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){ur(e)?(this.state=_.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=_.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=_.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(dt.SCRIPT,!1)&&qE(this.preprocessor.peek(dt.SCRIPT.length))){this._emitCodePoint(e);for(let n=0;n<dt.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=_.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case g.HYPHEN_MINUS:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case g.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case g.NULL:{this._err(D.unexpectedNullCharacter),this._emitChars(we);break}case g.EOF:{this._err(D.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case g.HYPHEN_MINUS:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case g.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case g.NULL:{this._err(D.unexpectedNullCharacter),this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(we);break}case g.EOF:{this._err(D.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case g.HYPHEN_MINUS:{this._emitChars("-");break}case g.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case g.GREATER_THAN_SIGN:{this.state=_.SCRIPT_DATA,this._emitChars(">");break}case g.NULL:{this._err(D.unexpectedNullCharacter),this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(we);break}case g.EOF:{this._err(D.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===g.SOLIDUS?(this.state=_.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(dt.SCRIPT,!1)&&qE(this.preprocessor.peek(dt.SCRIPT.length))){this._emitCodePoint(e);for(let n=0;n<dt.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=_.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.SOLIDUS:case g.GREATER_THAN_SIGN:case g.EOF:{this.state=_.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case g.EQUALS_SIGN:{this._err(D.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=_.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=_.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:case g.SOLIDUS:case g.GREATER_THAN_SIGN:case g.EOF:{this._leaveAttrName(),this.state=_.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case g.EQUALS_SIGN:{this._leaveAttrName(),this.state=_.BEFORE_ATTRIBUTE_VALUE;break}case g.QUOTATION_MARK:case g.APOSTROPHE:case g.LESS_THAN_SIGN:{this._err(D.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break}case g.NULL:{this._err(D.unexpectedNullCharacter),this.currentAttr.name+=we;break}default:this.currentAttr.name+=String.fromCodePoint(ha(e)?Pu(e):e)}}_stateAfterAttributeName(e){switch(e){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.SOLIDUS:{this.state=_.SELF_CLOSING_START_TAG;break}case g.EQUALS_SIGN:{this.state=_.BEFORE_ATTRIBUTE_VALUE;break}case g.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentTagToken();break}case g.EOF:{this._err(D.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=_.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.QUOTATION_MARK:{this.state=_.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case g.APOSTROPHE:{this.state=_.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case g.GREATER_THAN_SIGN:{this._err(D.missingAttributeValue),this.state=_.DATA,this.emitCurrentTagToken();break}default:this.state=_.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case g.QUOTATION_MARK:{this.state=_.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case g.AMPERSAND:{this._startCharacterReference();break}case g.NULL:{this._err(D.unexpectedNullCharacter),this.currentAttr.value+=we;break}case g.EOF:{this._err(D.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case g.APOSTROPHE:{this.state=_.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case g.AMPERSAND:{this._startCharacterReference();break}case g.NULL:{this._err(D.unexpectedNullCharacter),this.currentAttr.value+=we;break}case g.EOF:{this._err(D.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this._leaveAttrValue(),this.state=_.BEFORE_ATTRIBUTE_NAME;break}case g.AMPERSAND:{this._startCharacterReference();break}case g.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=_.DATA,this.emitCurrentTagToken();break}case g.NULL:{this._err(D.unexpectedNullCharacter),this.currentAttr.value+=we;break}case g.QUOTATION_MARK:case g.APOSTROPHE:case g.LESS_THAN_SIGN:case g.EQUALS_SIGN:case g.GRAVE_ACCENT:{this._err(D.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break}case g.EOF:{this._err(D.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this._leaveAttrValue(),this.state=_.BEFORE_ATTRIBUTE_NAME;break}case g.SOLIDUS:{this._leaveAttrValue(),this.state=_.SELF_CLOSING_START_TAG;break}case g.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=_.DATA,this.emitCurrentTagToken();break}case g.EOF:{this._err(D.eofInTag),this._emitEOFToken();break}default:this._err(D.missingWhitespaceBetweenAttributes),this.state=_.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case g.GREATER_THAN_SIGN:{let n=this.currentToken;n.selfClosing=!0,this.state=_.DATA,this.emitCurrentTagToken();break}case g.EOF:{this._err(D.eofInTag),this._emitEOFToken();break}default:this._err(D.unexpectedSolidusInTag),this.state=_.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){let n=this.currentToken;switch(e){case g.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentComment(n);break}case g.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case g.NULL:{this._err(D.unexpectedNullCharacter),n.data+=we;break}default:n.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(dt.DASH_DASH,!0)?(this._createCommentToken(dt.DASH_DASH.length+1),this.state=_.COMMENT_START):this._consumeSequenceIfMatch(dt.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(dt.DOCTYPE.length+1),this.state=_.DOCTYPE):this._consumeSequenceIfMatch(dt.CDATA_START,!0)?this.inForeignNode?this.state=_.CDATA_SECTION:(this._err(D.cdataInHtmlContent),this._createCommentToken(dt.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=_.BOGUS_COMMENT):this._ensureHibernation()||(this._err(D.incorrectlyOpenedComment),this._createCommentToken(2),this.state=_.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case g.HYPHEN_MINUS:{this.state=_.COMMENT_START_DASH;break}case g.GREATER_THAN_SIGN:{this._err(D.abruptClosingOfEmptyComment),this.state=_.DATA;let n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=_.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){let n=this.currentToken;switch(e){case g.HYPHEN_MINUS:{this.state=_.COMMENT_END;break}case g.GREATER_THAN_SIGN:{this._err(D.abruptClosingOfEmptyComment),this.state=_.DATA,this.emitCurrentComment(n);break}case g.EOF:{this._err(D.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=_.COMMENT,this._stateComment(e)}}_stateComment(e){let n=this.currentToken;switch(e){case g.HYPHEN_MINUS:{this.state=_.COMMENT_END_DASH;break}case g.LESS_THAN_SIGN:{n.data+="<",this.state=_.COMMENT_LESS_THAN_SIGN;break}case g.NULL:{this._err(D.unexpectedNullCharacter),n.data+=we;break}case g.EOF:{this._err(D.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){let n=this.currentToken;switch(e){case g.EXCLAMATION_MARK:{n.data+="!",this.state=_.COMMENT_LESS_THAN_SIGN_BANG;break}case g.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=_.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===g.HYPHEN_MINUS?this.state=_.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=_.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===g.HYPHEN_MINUS?this.state=_.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=_.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==g.GREATER_THAN_SIGN&&e!==g.EOF&&this._err(D.nestedComment),this.state=_.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){let n=this.currentToken;switch(e){case g.HYPHEN_MINUS:{this.state=_.COMMENT_END;break}case g.EOF:{this._err(D.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=_.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){let n=this.currentToken;switch(e){case g.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentComment(n);break}case g.EXCLAMATION_MARK:{this.state=_.COMMENT_END_BANG;break}case g.HYPHEN_MINUS:{n.data+="-";break}case g.EOF:{this._err(D.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=_.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){let n=this.currentToken;switch(e){case g.HYPHEN_MINUS:{n.data+="--!",this.state=_.COMMENT_END_DASH;break}case g.GREATER_THAN_SIGN:{this._err(D.incorrectlyClosedComment),this.state=_.DATA,this.emitCurrentComment(n);break}case g.EOF:{this._err(D.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=_.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this.state=_.BEFORE_DOCTYPE_NAME;break}case g.GREATER_THAN_SIGN:{this.state=_.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break}case g.EOF:{this._err(D.eofInDoctype),this._createDoctypeToken(null);let n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(D.missingWhitespaceBeforeDoctypeName),this.state=_.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(ha(e))this._createDoctypeToken(String.fromCharCode(Pu(e))),this.state=_.DOCTYPE_NAME;else switch(e){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.NULL:{this._err(D.unexpectedNullCharacter),this._createDoctypeToken(we),this.state=_.DOCTYPE_NAME;break}case g.GREATER_THAN_SIGN:{this._err(D.missingDoctypeName),this._createDoctypeToken(null);let n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=_.DATA;break}case g.EOF:{this._err(D.eofInDoctype),this._createDoctypeToken(null);let n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=_.DOCTYPE_NAME}}_stateDoctypeName(e){let n=this.currentToken;switch(e){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this.state=_.AFTER_DOCTYPE_NAME;break}case g.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentDoctype(n);break}case g.NULL:{this._err(D.unexpectedNullCharacter),n.name+=we;break}case g.EOF:{this._err(D.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(ha(e)?Pu(e):e)}}_stateAfterDoctypeName(e){let n=this.currentToken;switch(e){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentDoctype(n);break}case g.EOF:{this._err(D.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(dt.PUBLIC,!1)?this.state=_.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(dt.SYSTEM,!1)?this.state=_.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(D.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){let n=this.currentToken;switch(e){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this.state=_.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case g.QUOTATION_MARK:{this._err(D.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=_.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case g.APOSTROPHE:{this._err(D.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=_.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case g.GREATER_THAN_SIGN:{this._err(D.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=_.DATA,this.emitCurrentDoctype(n);break}case g.EOF:{this._err(D.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(D.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){let n=this.currentToken;switch(e){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.QUOTATION_MARK:{n.publicId="",this.state=_.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case g.APOSTROPHE:{n.publicId="",this.state=_.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case g.GREATER_THAN_SIGN:{this._err(D.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=_.DATA,this.emitCurrentDoctype(n);break}case g.EOF:{this._err(D.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(D.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){let n=this.currentToken;switch(e){case g.QUOTATION_MARK:{this.state=_.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case g.NULL:{this._err(D.unexpectedNullCharacter),n.publicId+=we;break}case g.GREATER_THAN_SIGN:{this._err(D.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=_.DATA;break}case g.EOF:{this._err(D.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){let n=this.currentToken;switch(e){case g.APOSTROPHE:{this.state=_.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case g.NULL:{this._err(D.unexpectedNullCharacter),n.publicId+=we;break}case g.GREATER_THAN_SIGN:{this._err(D.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=_.DATA;break}case g.EOF:{this._err(D.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){let n=this.currentToken;switch(e){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this.state=_.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case g.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentDoctype(n);break}case g.QUOTATION_MARK:{this._err(D.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case g.APOSTROPHE:{this._err(D.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case g.EOF:{this._err(D.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(D.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){let n=this.currentToken;switch(e){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=_.DATA;break}case g.QUOTATION_MARK:{n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case g.APOSTROPHE:{n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case g.EOF:{this._err(D.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(D.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){let n=this.currentToken;switch(e){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this.state=_.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case g.QUOTATION_MARK:{this._err(D.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case g.APOSTROPHE:{this._err(D.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case g.GREATER_THAN_SIGN:{this._err(D.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=_.DATA,this.emitCurrentDoctype(n);break}case g.EOF:{this._err(D.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(D.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){let n=this.currentToken;switch(e){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.QUOTATION_MARK:{n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case g.APOSTROPHE:{n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case g.GREATER_THAN_SIGN:{this._err(D.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=_.DATA,this.emitCurrentDoctype(n);break}case g.EOF:{this._err(D.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(D.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){let n=this.currentToken;switch(e){case g.QUOTATION_MARK:{this.state=_.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case g.NULL:{this._err(D.unexpectedNullCharacter),n.systemId+=we;break}case g.GREATER_THAN_SIGN:{this._err(D.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=_.DATA;break}case g.EOF:{this._err(D.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){let n=this.currentToken;switch(e){case g.APOSTROPHE:{this.state=_.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case g.NULL:{this._err(D.unexpectedNullCharacter),n.systemId+=we;break}case g.GREATER_THAN_SIGN:{this._err(D.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=_.DATA;break}case g.EOF:{this._err(D.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){let n=this.currentToken;switch(e){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=_.DATA;break}case g.EOF:{this._err(D.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(D.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){let n=this.currentToken;switch(e){case g.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=_.DATA;break}case g.NULL:{this._err(D.unexpectedNullCharacter);break}case g.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}default:}}_stateCdataSection(e){switch(e){case g.RIGHT_SQUARE_BRACKET:{this.state=_.CDATA_SECTION_BRACKET;break}case g.EOF:{this._err(D.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===g.RIGHT_SQUARE_BRACKET?this.state=_.CDATA_SECTION_END:(this._emitChars("]"),this.state=_.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case g.GREATER_THAN_SIGN:{this.state=_.DATA;break}case g.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=_.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}e===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(g.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&zE(this.preprocessor.peek(1))?_.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){zE(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===g.SEMICOLON&&this._err(D.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}});var KE,YE,Fu,n6,r6,WE,GE,s6,i6,a6,o6,Dd,$E=x(()=>{wn();KE=new Set([u.DD,u.DT,u.LI,u.OPTGROUP,u.OPTION,u.P,u.RB,u.RP,u.RT,u.RTC]),YE=new Set([...KE,u.CAPTION,u.COLGROUP,u.TBODY,u.TD,u.TFOOT,u.TH,u.THEAD,u.TR]),Fu=new Set([u.APPLET,u.CAPTION,u.HTML,u.MARQUEE,u.OBJECT,u.TABLE,u.TD,u.TEMPLATE,u.TH]),n6=new Set([...Fu,u.OL,u.UL]),r6=new Set([...Fu,u.BUTTON]),WE=new Set([u.ANNOTATION_XML,u.MI,u.MN,u.MO,u.MS,u.MTEXT]),GE=new Set([u.DESC,u.FOREIGN_OBJECT,u.TITLE]),s6=new Set([u.TR,u.TEMPLATE,u.HTML]),i6=new Set([u.TBODY,u.TFOOT,u.THEAD,u.TEMPLATE,u.HTML]),a6=new Set([u.TABLE,u.TEMPLATE,u.HTML]),o6=new Set([u.TD,u.TH]),Dd=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=u.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===u.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===R.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,n){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,n,!0)}pop(){let e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,n){let r=this._indexOf(e);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(e,n,r){let s=this._indexOf(e)+1;this.items.splice(s,0,n),this.tagIDs.splice(s,0,r),this.stackTop++,s===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,s===this.stackTop)}popUntilTagNamePopped(e){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(e,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==R.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(e){for(;this.stackTop>=e;){let n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<e)}}popUntilElementPopped(e){let n=this._indexOf(e);this.shortenToLength(n<0?0:n)}popUntilPopped(e,n){let r=this._indexOfTagNames(e,n);this.shortenToLength(r<0?0:r)}popUntilNumberedHeaderPopped(){this.popUntilPopped(Ws,R.HTML)}popUntilTableCellPopped(){this.popUntilPopped(o6,R.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,n){for(let r=this.stackTop;r>=0;r--)if(e.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(e,n){let r=this._indexOfTagNames(e,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(a6,R.HTML)}clearBackToTableBodyContext(){this.clearBackTo(i6,R.HTML)}clearBackToTableRowContext(){this.clearBackTo(s6,R.HTML)}remove(e){let n=this._indexOf(e);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===u.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let n=this._indexOf(e)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===u.HTML}hasInDynamicScope(e,n){for(let r=this.stackTop;r>=0;r--){let s=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case R.HTML:{if(s===e)return!0;if(n.has(s))return!1;break}case R.SVG:{if(GE.has(s))return!1;break}case R.MATHML:{if(WE.has(s))return!1;break}}}return!0}hasInScope(e){return this.hasInDynamicScope(e,Fu)}hasInListItemScope(e){return this.hasInDynamicScope(e,n6)}hasInButtonScope(e){return this.hasInDynamicScope(e,r6)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let n=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case R.HTML:{if(Ws.has(n))return!0;if(Fu.has(n))return!1;break}case R.SVG:{if(GE.has(n))return!1;break}case R.MATHML:{if(WE.has(n))return!1;break}}}return!0}hasInTableScope(e){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===R.HTML)switch(this.tagIDs[n]){case e:return!0;case u.TABLE:case u.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===R.HTML)switch(this.tagIDs[e]){case u.TBODY:case u.THEAD:case u.TFOOT:return!0;case u.TABLE:case u.HTML:return!1}return!0}hasInSelectScope(e){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===R.HTML)switch(this.tagIDs[n]){case e:return!0;case u.OPTION:case u.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;KE.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;YE.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&YE.has(this.currentTagId);)this.pop()}}});var Od,$t,QE,kd,XE=x(()=>{Od=3;(function(t){t[t.Marker=0]="Marker",t[t.Element=1]="Element"})($t||($t={}));QE={type:$t.Marker},kd=class{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,n){let r=[],s=n.length,i=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let o=0;o<this.entries.length;o++){let c=this.entries[o];if(c.type===$t.Marker)break;let{element:l}=c;if(this.treeAdapter.getTagName(l)===i&&this.treeAdapter.getNamespaceURI(l)===a){let h=this.treeAdapter.getAttrList(l);h.length===s&&r.push({idx:o,attrs:h})}}return r}_ensureNoahArkCondition(e){if(this.entries.length<Od)return;let n=this.treeAdapter.getAttrList(e),r=this._getNoahArkConditionCandidates(e,n);if(r.length<Od)return;let s=new Map(n.map(a=>[a.name,a.value])),i=0;for(let a=0;a<r.length;a++){let o=r[a];o.attrs.every(c=>s.get(c.name)===c.value)&&(i+=1,i>=Od&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(QE)}pushElement(e,n){this._ensureNoahArkCondition(e),this.entries.unshift({type:$t.Element,element:e,token:n})}insertElementAfterBookmark(e,n){let r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:$t.Element,element:e,token:n})}removeEntry(e){let n=this.entries.indexOf(e);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){let e=this.entries.indexOf(QE);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){let n=this.entries.find(r=>r.type===$t.Marker||this.treeAdapter.getTagName(r.element)===e);return n&&n.type===$t.Element?n:null}getElementEntry(e){return this.entries.find(n=>n.type===$t.Element&&n.element===e)}}});var Mt,Bu=x(()=>{wn();Mt={createDocument(){return{nodeName:"#document",mode:st.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(t,e,n){return{nodeName:t,tagName:t,attrs:n,namespaceURI:e,childNodes:[],parentNode:null}},createCommentNode(t){return{nodeName:"#comment",data:t,parentNode:null}},createTextNode(t){return{nodeName:"#text",value:t,parentNode:null}},appendChild(t,e){t.childNodes.push(e),e.parentNode=t},insertBefore(t,e,n){let r=t.childNodes.indexOf(n);t.childNodes.splice(r,0,e),e.parentNode=t},setTemplateContent(t,e){t.content=e},getTemplateContent(t){return t.content},setDocumentType(t,e,n,r){let s=t.childNodes.find(i=>i.nodeName==="#documentType");if(s)s.name=e,s.publicId=n,s.systemId=r;else{let i={nodeName:"#documentType",name:e,publicId:n,systemId:r,parentNode:null};Mt.appendChild(t,i)}},setDocumentMode(t,e){t.mode=e},getDocumentMode(t){return t.mode},detachNode(t){if(t.parentNode){let e=t.parentNode.childNodes.indexOf(t);t.parentNode.childNodes.splice(e,1),t.parentNode=null}},insertText(t,e){if(t.childNodes.length>0){let n=t.childNodes[t.childNodes.length-1];if(Mt.isTextNode(n)){n.value+=e;return}}Mt.appendChild(t,Mt.createTextNode(e))},insertTextBefore(t,e,n){let r=t.childNodes[t.childNodes.indexOf(n)-1];r&&Mt.isTextNode(r)?r.value+=e:Mt.insertBefore(t,Mt.createTextNode(e),n)},adoptAttributes(t,e){let n=new Set(t.attrs.map(r=>r.name));for(let r=0;r<e.length;r++)n.has(e[r].name)||t.attrs.push(e[r])},getFirstChild(t){return t.childNodes[0]},getChildNodes(t){return t.childNodes},getParentNode(t){return t.parentNode},getAttrList(t){return t.attrs},getTagName(t){return t.tagName},getNamespaceURI(t){return t.namespaceURI},getTextNodeContent(t){return t.value},getCommentNodeContent(t){return t.data},getDocumentTypeNodeName(t){return t.name},getDocumentTypeNodePublicId(t){return t.publicId},getDocumentTypeNodeSystemId(t){return t.systemId},isTextNode(t){return t.nodeName==="#text"},isCommentNode(t){return t.nodeName==="#comment"},isDocumentTypeNode(t){return t.nodeName==="#documentType"},isElementNode(t){return Object.prototype.hasOwnProperty.call(t,"tagName")},setNodeSourceCodeLocation(t,e){t.sourceCodeLocation=e},getNodeSourceCodeLocation(t){return t.sourceCodeLocation},updateNodeSourceCodeLocation(t,e){t.sourceCodeLocation=B(B({},t.sourceCodeLocation),e)}}});function tT(t,e){return e.some(n=>t.startsWith(n))}function nT(t){return t.name===ZE&&t.publicId===null&&(t.systemId===null||t.systemId===u6)}function rT(t){if(t.name!==ZE)return st.QUIRKS;let{systemId:e}=t;if(e&&e.toLowerCase()===c6)return st.QUIRKS;let{publicId:n}=t;if(n!==null){if(n=n.toLowerCase(),f6.has(n))return st.QUIRKS;let r=e===null?l6:JE;if(tT(n,r))return st.QUIRKS;if(r=e===null?eT:d6,tT(n,r))return st.LIMITED_QUIRKS}return st.NO_QUIRKS}var ZE,u6,c6,JE,l6,f6,eT,d6,sT=x(()=>{wn();ZE="html",u6="about:legacy-compat",c6="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",JE=["+//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//"],l6=[...JE,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],f6=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),eT=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],d6=[...eT,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]});function aT(t){let e=t.tagID;return e===u.FONT&&t.attrs.some(({name:r})=>r===rn.COLOR||r===rn.SIZE||r===rn.FACE)||_6.has(e)}function Rd(t){for(let e=0;e<t.attrs.length;e++)if(t.attrs[e].name===h6){t.attrs[e].name=p6;break}}function Ld(t){for(let e=0;e<t.attrs.length;e++){let n=m6.get(t.attrs[e].name);n!=null&&(t.attrs[e].name=n)}}function ju(t){for(let e=0;e<t.attrs.length;e++){let n=g6.get(t.attrs[e].name);n&&(t.attrs[e].prefix=n.prefix,t.attrs[e].name=n.name,t.attrs[e].namespace=n.namespace)}}function oT(t){let e=b6.get(t.tagName);e!=null&&(t.tagName=e,t.tagID=or(t.tagName))}function E6(t,e){return e===R.MATHML&&(t===u.MI||t===u.MO||t===u.MN||t===u.MS||t===u.MTEXT)}function T6(t,e,n){if(e===R.MATHML&&t===u.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===rn.ENCODING){let s=n[r].value.toLowerCase();return s===iT.TEXT_HTML||s===iT.APPLICATION_XML}}return e===R.SVG&&(t===u.FOREIGN_OBJECT||t===u.DESC||t===u.TITLE)}function uT(t,e,n,r){return(!r||r===R.HTML)&&T6(t,e,n)||(!r||r===R.MATHML)&&E6(t,e)}var iT,h6,p6,m6,g6,b6,_6,Pd=x(()=>{wn();iT={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},h6="definitionurl",p6="definitionURL",m6=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(t=>[t.toLowerCase(),t])),g6=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:R.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:R.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:R.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:R.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:R.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:R.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:R.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:R.XML}],["xml:space",{prefix:"xml",name:"space",namespace:R.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:R.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:R.XMLNS}]]),b6=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(t=>[t.toLowerCase(),t])),_6=new Set([u.B,u.BIG,u.BLOCKQUOTE,u.BODY,u.BR,u.CENTER,u.CODE,u.DD,u.DIV,u.DL,u.DT,u.EM,u.EMBED,u.H1,u.H2,u.H3,u.H4,u.H5,u.H6,u.HEAD,u.HR,u.I,u.IMG,u.LI,u.LISTING,u.MENU,u.META,u.NOBR,u.OL,u.P,u.PRE,u.RUBY,u.S,u.SMALL,u.SPAN,u.STRONG,u.STRIKE,u.SUB,u.SUP,u.TABLE,u.TT,u.U,u.UL,u.VAR])});function I6(t,e){let n=t.activeFormattingElements.getElementEntryInScopeWithTagName(e.tagName);return n?t.openElements.contains(n.element)?t.openElements.hasInScope(e.tagID)||(n=null):(t.activeFormattingElements.removeEntry(n),n=null):bT(t,e),n}function w6(t,e){let n=null,r=t.openElements.stackTop;for(;r>=0;r--){let s=t.openElements.items[r];if(s===e.element)break;t._isSpecialElement(s,t.openElements.tagIDs[r])&&(n=s)}return n||(t.openElements.shortenToLength(r<0?0:r),t.activeFormattingElements.removeEntry(e)),n}function N6(t,e,n){let r=e,s=t.openElements.getCommonAncestor(e);for(let i=0,a=s;a!==n;i++,a=s){s=t.openElements.getCommonAncestor(a);let o=t.activeFormattingElements.getElementEntry(a),c=o&&i>=C6;!o||c?(c&&t.activeFormattingElements.removeEntry(o),t.openElements.remove(a)):(a=v6(t,o),r===e&&(t.activeFormattingElements.bookmark=o),t.treeAdapter.detachNode(r),t.treeAdapter.appendChild(a,r),r=a)}return r}function v6(t,e){let n=t.treeAdapter.getNamespaceURI(e.element),r=t.treeAdapter.createElement(e.token.tagName,n,e.token.attrs);return t.openElements.replace(e.element,r),e.element=r,r}function D6(t,e,n){let r=t.treeAdapter.getTagName(e),s=or(r);if(t._isElementCausesFosterParenting(s))t._fosterParentElement(n);else{let i=t.treeAdapter.getNamespaceURI(e);s===u.TEMPLATE&&i===R.HTML&&(e=t.treeAdapter.getTemplateContent(e)),t.treeAdapter.appendChild(e,n)}}function O6(t,e,n){let r=t.treeAdapter.getNamespaceURI(n.element),{token:s}=n,i=t.treeAdapter.createElement(s.tagName,r,s.attrs);t._adoptNodes(e,i),t.treeAdapter.appendChild(e,i),t.activeFormattingElements.insertElementAfterBookmark(i,s),t.activeFormattingElements.removeEntry(n),t.openElements.remove(n.element),t.openElements.insertAfter(e,i,s.tagID)}function Md(t,e){for(let n=0;n<A6;n++){let r=I6(t,e);if(!r)break;let s=w6(t,r);if(!s)break;t.activeFormattingElements.bookmark=r;let i=N6(t,s,r.element),a=t.openElements.getCommonAncestor(r.element);t.treeAdapter.detachNode(i),a&&D6(t,a,i),O6(t,s,r)}}function Fd(t,e){t._appendCommentNode(e,t.openElements.currentTmplContentOrNode)}function k6(t,e){t._appendCommentNode(e,t.openElements.items[0])}function R6(t,e){t._appendCommentNode(e,t.document)}function Bd(t,e){if(t.stopped=!0,e.location){let n=t.fragmentContext?0:2;for(let r=t.openElements.stackTop;r>=n;r--)t._setEndLocation(t.openElements.items[r],e);if(!t.fragmentContext&&t.openElements.stackTop>=0){let r=t.openElements.items[0],s=t.treeAdapter.getNodeSourceCodeLocation(r);if(s&&!s.endTag&&(t._setEndLocation(r,e),t.openElements.stackTop>=1)){let i=t.openElements.items[1],a=t.treeAdapter.getNodeSourceCodeLocation(i);a&&!a.endTag&&t._setEndLocation(i,e)}}}}function L6(t,e){t._setDocumentType(e);let n=e.forceQuirks?st.QUIRKS:rT(e);nT(e)||t._err(e,D.nonConformingDoctype),t.treeAdapter.setDocumentMode(t.document,n),t.insertionMode=y.BEFORE_HTML}function ma(t,e){t._err(e,D.missingDoctype,!0),t.treeAdapter.setDocumentMode(t.document,st.QUIRKS),t.insertionMode=y.BEFORE_HTML,t._processToken(e)}function P6(t,e){e.tagID===u.HTML?(t._insertElement(e,R.HTML),t.insertionMode=y.BEFORE_HEAD):ga(t,e)}function M6(t,e){let n=e.tagID;(n===u.HTML||n===u.HEAD||n===u.BODY||n===u.BR)&&ga(t,e)}function ga(t,e){t._insertFakeRootElement(),t.insertionMode=y.BEFORE_HEAD,t._processToken(e)}function F6(t,e){switch(e.tagID){case u.HTML:{at(t,e);break}case u.HEAD:{t._insertElement(e,R.HTML),t.headElement=t.openElements.current,t.insertionMode=y.IN_HEAD;break}default:ba(t,e)}}function B6(t,e){let n=e.tagID;n===u.HEAD||n===u.BODY||n===u.HTML||n===u.BR?ba(t,e):t._err(e,D.endTagWithoutMatchingOpenElement)}function ba(t,e){t._insertFakeElement(v.HEAD,u.HEAD),t.headElement=t.openElements.current,t.insertionMode=y.IN_HEAD,t._processToken(e)}function Qt(t,e){switch(e.tagID){case u.HTML:{at(t,e);break}case u.BASE:case u.BASEFONT:case u.BGSOUND:case u.LINK:case u.META:{t._appendElement(e,R.HTML),e.ackSelfClosing=!0;break}case u.TITLE:{t._switchToTextParsing(e,it.RCDATA);break}case u.NOSCRIPT:{t.options.scriptingEnabled?t._switchToTextParsing(e,it.RAWTEXT):(t._insertElement(e,R.HTML),t.insertionMode=y.IN_HEAD_NO_SCRIPT);break}case u.NOFRAMES:case u.STYLE:{t._switchToTextParsing(e,it.RAWTEXT);break}case u.SCRIPT:{t._switchToTextParsing(e,it.SCRIPT_DATA);break}case u.TEMPLATE:{t._insertTemplate(e),t.activeFormattingElements.insertMarker(),t.framesetOk=!1,t.insertionMode=y.IN_TEMPLATE,t.tmplInsertionModeStack.unshift(y.IN_TEMPLATE);break}case u.HEAD:{t._err(e,D.misplacedStartTagForHeadElement);break}default:_a(t,e)}}function j6(t,e){switch(e.tagID){case u.HEAD:{t.openElements.pop(),t.insertionMode=y.AFTER_HEAD;break}case u.BODY:case u.BR:case u.HTML:{_a(t,e);break}case u.TEMPLATE:{Br(t,e);break}default:t._err(e,D.endTagWithoutMatchingOpenElement)}}function Br(t,e){t.openElements.tmplCount>0?(t.openElements.generateImpliedEndTagsThoroughly(),t.openElements.currentTagId!==u.TEMPLATE&&t._err(e,D.closingOfElementWithOpenChildElements),t.openElements.popUntilTagNamePopped(u.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode()):t._err(e,D.endTagWithoutMatchingOpenElement)}function _a(t,e){t.openElements.pop(),t.insertionMode=y.AFTER_HEAD,t._processToken(e)}function H6(t,e){switch(e.tagID){case u.HTML:{at(t,e);break}case u.BASEFONT:case u.BGSOUND:case u.HEAD:case u.LINK:case u.META:case u.NOFRAMES:case u.STYLE:{Qt(t,e);break}case u.NOSCRIPT:{t._err(e,D.nestedNoscriptInHead);break}default:Ea(t,e)}}function U6(t,e){switch(e.tagID){case u.NOSCRIPT:{t.openElements.pop(),t.insertionMode=y.IN_HEAD;break}case u.BR:{Ea(t,e);break}default:t._err(e,D.endTagWithoutMatchingOpenElement)}}function Ea(t,e){let n=e.type===fe.EOF?D.openElementsLeftAfterEof:D.disallowedContentInNoscriptInHead;t._err(e,n),t.openElements.pop(),t.insertionMode=y.IN_HEAD,t._processToken(e)}function z6(t,e){switch(e.tagID){case u.HTML:{at(t,e);break}case u.BODY:{t._insertElement(e,R.HTML),t.framesetOk=!1,t.insertionMode=y.IN_BODY;break}case u.FRAMESET:{t._insertElement(e,R.HTML),t.insertionMode=y.IN_FRAMESET;break}case u.BASE:case u.BASEFONT:case u.BGSOUND:case u.LINK:case u.META:case u.NOFRAMES:case u.SCRIPT:case u.STYLE:case u.TEMPLATE:case u.TITLE:{t._err(e,D.abandonedHeadElementChild),t.openElements.push(t.headElement,u.HEAD),Qt(t,e),t.openElements.remove(t.headElement);break}case u.HEAD:{t._err(e,D.misplacedStartTagForHeadElement);break}default:Ta(t,e)}}function V6(t,e){switch(e.tagID){case u.BODY:case u.HTML:case u.BR:{Ta(t,e);break}case u.TEMPLATE:{Br(t,e);break}default:t._err(e,D.endTagWithoutMatchingOpenElement)}}function Ta(t,e){t._insertFakeElement(v.BODY,u.BODY),t.insertionMode=y.IN_BODY,Hu(t,e)}function Hu(t,e){switch(e.type){case fe.CHARACTER:{dT(t,e);break}case fe.WHITESPACE_CHARACTER:{fT(t,e);break}case fe.COMMENT:{Fd(t,e);break}case fe.START_TAG:{at(t,e);break}case fe.END_TAG:{Uu(t,e);break}case fe.EOF:{_T(t,e);break}default:}}function fT(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e)}function dT(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e),t.framesetOk=!1}function q6(t,e){t.openElements.tmplCount===0&&t.treeAdapter.adoptAttributes(t.openElements.items[0],e.attrs)}function K6(t,e){let n=t.openElements.tryPeekProperlyNestedBodyElement();n&&t.openElements.tmplCount===0&&(t.framesetOk=!1,t.treeAdapter.adoptAttributes(n,e.attrs))}function Y6(t,e){let n=t.openElements.tryPeekProperlyNestedBodyElement();t.framesetOk&&n&&(t.treeAdapter.detachNode(n),t.openElements.popAllUpToHtmlElement(),t._insertElement(e,R.HTML),t.insertionMode=y.IN_FRAMESET)}function W6(t,e){t.openElements.hasInButtonScope(u.P)&&t._closePElement(),t._insertElement(e,R.HTML)}function G6(t,e){t.openElements.hasInButtonScope(u.P)&&t._closePElement(),Ws.has(t.openElements.currentTagId)&&t.openElements.pop(),t._insertElement(e,R.HTML)}function $6(t,e){t.openElements.hasInButtonScope(u.P)&&t._closePElement(),t._insertElement(e,R.HTML),t.skipNextNewLine=!0,t.framesetOk=!1}function Q6(t,e){let n=t.openElements.tmplCount>0;(!t.formElement||n)&&(t.openElements.hasInButtonScope(u.P)&&t._closePElement(),t._insertElement(e,R.HTML),n||(t.formElement=t.openElements.current))}function X6(t,e){t.framesetOk=!1;let n=e.tagID;for(let r=t.openElements.stackTop;r>=0;r--){let s=t.openElements.tagIDs[r];if(n===u.LI&&s===u.LI||(n===u.DD||n===u.DT)&&(s===u.DD||s===u.DT)){t.openElements.generateImpliedEndTagsWithExclusion(s),t.openElements.popUntilTagNamePopped(s);break}if(s!==u.ADDRESS&&s!==u.DIV&&s!==u.P&&t._isSpecialElement(t.openElements.items[r],s))break}t.openElements.hasInButtonScope(u.P)&&t._closePElement(),t._insertElement(e,R.HTML)}function Z6(t,e){t.openElements.hasInButtonScope(u.P)&&t._closePElement(),t._insertElement(e,R.HTML),t.tokenizer.state=it.PLAINTEXT}function J6(t,e){t.openElements.hasInScope(u.BUTTON)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(u.BUTTON)),t._reconstructActiveFormattingElements(),t._insertElement(e,R.HTML),t.framesetOk=!1}function eD(t,e){let n=t.activeFormattingElements.getElementEntryInScopeWithTagName(v.A);n&&(Md(t,e),t.openElements.remove(n.element),t.activeFormattingElements.removeEntry(n)),t._reconstructActiveFormattingElements(),t._insertElement(e,R.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function tD(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,R.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function nD(t,e){t._reconstructActiveFormattingElements(),t.openElements.hasInScope(u.NOBR)&&(Md(t,e),t._reconstructActiveFormattingElements()),t._insertElement(e,R.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function rD(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,R.HTML),t.activeFormattingElements.insertMarker(),t.framesetOk=!1}function sD(t,e){t.treeAdapter.getDocumentMode(t.document)!==st.QUIRKS&&t.openElements.hasInButtonScope(u.P)&&t._closePElement(),t._insertElement(e,R.HTML),t.framesetOk=!1,t.insertionMode=y.IN_TABLE}function hT(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,R.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}function pT(t){let e=ku(t,rn.TYPE);return e!=null&&e.toLowerCase()===y6}function iD(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,R.HTML),pT(e)||(t.framesetOk=!1),e.ackSelfClosing=!0}function aD(t,e){t._appendElement(e,R.HTML),e.ackSelfClosing=!0}function oD(t,e){t.openElements.hasInButtonScope(u.P)&&t._closePElement(),t._appendElement(e,R.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}function uD(t,e){e.tagName=v.IMG,e.tagID=u.IMG,hT(t,e)}function cD(t,e){t._insertElement(e,R.HTML),t.skipNextNewLine=!0,t.tokenizer.state=it.RCDATA,t.originalInsertionMode=t.insertionMode,t.framesetOk=!1,t.insertionMode=y.TEXT}function lD(t,e){t.openElements.hasInButtonScope(u.P)&&t._closePElement(),t._reconstructActiveFormattingElements(),t.framesetOk=!1,t._switchToTextParsing(e,it.RAWTEXT)}function fD(t,e){t.framesetOk=!1,t._switchToTextParsing(e,it.RAWTEXT)}function mT(t,e){t._switchToTextParsing(e,it.RAWTEXT)}function dD(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,R.HTML),t.framesetOk=!1,t.insertionMode=t.insertionMode===y.IN_TABLE||t.insertionMode===y.IN_CAPTION||t.insertionMode===y.IN_TABLE_BODY||t.insertionMode===y.IN_ROW||t.insertionMode===y.IN_CELL?y.IN_SELECT_IN_TABLE:y.IN_SELECT}function hD(t,e){t.openElements.currentTagId===u.OPTION&&t.openElements.pop(),t._reconstructActiveFormattingElements(),t._insertElement(e,R.HTML)}function pD(t,e){t.openElements.hasInScope(u.RUBY)&&t.openElements.generateImpliedEndTags(),t._insertElement(e,R.HTML)}function mD(t,e){t.openElements.hasInScope(u.RUBY)&&t.openElements.generateImpliedEndTagsWithExclusion(u.RTC),t._insertElement(e,R.HTML)}function gD(t,e){t._reconstructActiveFormattingElements(),Rd(e),ju(e),e.selfClosing?t._appendElement(e,R.MATHML):t._insertElement(e,R.MATHML),e.ackSelfClosing=!0}function bD(t,e){t._reconstructActiveFormattingElements(),Ld(e),ju(e),e.selfClosing?t._appendElement(e,R.SVG):t._insertElement(e,R.SVG),e.ackSelfClosing=!0}function gT(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,R.HTML)}function at(t,e){switch(e.tagID){case u.I:case u.S:case u.B:case u.U:case u.EM:case u.TT:case u.BIG:case u.CODE:case u.FONT:case u.SMALL:case u.STRIKE:case u.STRONG:{tD(t,e);break}case u.A:{eD(t,e);break}case u.H1:case u.H2:case u.H3:case u.H4:case u.H5:case u.H6:{G6(t,e);break}case u.P:case u.DL:case u.OL:case u.UL:case u.DIV:case u.DIR:case u.NAV:case u.MAIN:case u.MENU:case u.ASIDE:case u.CENTER:case u.FIGURE:case u.FOOTER:case u.HEADER:case u.HGROUP:case u.DIALOG:case u.DETAILS:case u.ADDRESS:case u.ARTICLE:case u.SEARCH:case u.SECTION:case u.SUMMARY:case u.FIELDSET:case u.BLOCKQUOTE:case u.FIGCAPTION:{W6(t,e);break}case u.LI:case u.DD:case u.DT:{X6(t,e);break}case u.BR:case u.IMG:case u.WBR:case u.AREA:case u.EMBED:case u.KEYGEN:{hT(t,e);break}case u.HR:{oD(t,e);break}case u.RB:case u.RTC:{pD(t,e);break}case u.RT:case u.RP:{mD(t,e);break}case u.PRE:case u.LISTING:{$6(t,e);break}case u.XMP:{lD(t,e);break}case u.SVG:{bD(t,e);break}case u.HTML:{q6(t,e);break}case u.BASE:case u.LINK:case u.META:case u.STYLE:case u.TITLE:case u.SCRIPT:case u.BGSOUND:case u.BASEFONT:case u.TEMPLATE:{Qt(t,e);break}case u.BODY:{K6(t,e);break}case u.FORM:{Q6(t,e);break}case u.NOBR:{nD(t,e);break}case u.MATH:{gD(t,e);break}case u.TABLE:{sD(t,e);break}case u.INPUT:{iD(t,e);break}case u.PARAM:case u.TRACK:case u.SOURCE:{aD(t,e);break}case u.IMAGE:{uD(t,e);break}case u.BUTTON:{J6(t,e);break}case u.APPLET:case u.OBJECT:case u.MARQUEE:{rD(t,e);break}case u.IFRAME:{fD(t,e);break}case u.SELECT:{dD(t,e);break}case u.OPTION:case u.OPTGROUP:{hD(t,e);break}case u.NOEMBED:case u.NOFRAMES:{mT(t,e);break}case u.FRAMESET:{Y6(t,e);break}case u.TEXTAREA:{cD(t,e);break}case u.NOSCRIPT:{t.options.scriptingEnabled?mT(t,e):gT(t,e);break}case u.PLAINTEXT:{Z6(t,e);break}case u.COL:case u.TH:case u.TD:case u.TR:case u.HEAD:case u.FRAME:case u.TBODY:case u.TFOOT:case u.THEAD:case u.CAPTION:case u.COLGROUP:break;default:gT(t,e)}}function _D(t,e){if(t.openElements.hasInScope(u.BODY)&&(t.insertionMode=y.AFTER_BODY,t.options.sourceCodeLocationInfo)){let n=t.openElements.tryPeekProperlyNestedBodyElement();n&&t._setEndLocation(n,e)}}function ED(t,e){t.openElements.hasInScope(u.BODY)&&(t.insertionMode=y.AFTER_BODY,IT(t,e))}function TD(t,e){let n=e.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n))}function xD(t){let e=t.openElements.tmplCount>0,{formElement:n}=t;e||(t.formElement=null),(n||e)&&t.openElements.hasInScope(u.FORM)&&(t.openElements.generateImpliedEndTags(),e?t.openElements.popUntilTagNamePopped(u.FORM):n&&t.openElements.remove(n))}function yD(t){t.openElements.hasInButtonScope(u.P)||t._insertFakeElement(v.P,u.P),t._closePElement()}function AD(t){t.openElements.hasInListItemScope(u.LI)&&(t.openElements.generateImpliedEndTagsWithExclusion(u.LI),t.openElements.popUntilTagNamePopped(u.LI))}function CD(t,e){let n=e.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTagsWithExclusion(n),t.openElements.popUntilTagNamePopped(n))}function SD(t){t.openElements.hasNumberedHeaderInScope()&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilNumberedHeaderPopped())}function ID(t,e){let n=e.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n),t.activeFormattingElements.clearToLastMarker())}function wD(t){t._reconstructActiveFormattingElements(),t._insertFakeElement(v.BR,u.BR),t.openElements.pop(),t.framesetOk=!1}function bT(t,e){let n=e.tagName,r=e.tagID;for(let s=t.openElements.stackTop;s>0;s--){let i=t.openElements.items[s],a=t.openElements.tagIDs[s];if(r===a&&(r!==u.UNKNOWN||t.treeAdapter.getTagName(i)===n)){t.openElements.generateImpliedEndTagsWithExclusion(r),t.openElements.stackTop>=s&&t.openElements.shortenToLength(s);break}if(t._isSpecialElement(i,a))break}}function Uu(t,e){switch(e.tagID){case u.A:case u.B:case u.I:case u.S:case u.U:case u.EM:case u.TT:case u.BIG:case u.CODE:case u.FONT:case u.NOBR:case u.SMALL:case u.STRIKE:case u.STRONG:{Md(t,e);break}case u.P:{yD(t);break}case u.DL:case u.UL:case u.OL:case u.DIR:case u.DIV:case u.NAV:case u.PRE:case u.MAIN:case u.MENU:case u.ASIDE:case u.BUTTON:case u.CENTER:case u.FIGURE:case u.FOOTER:case u.HEADER:case u.HGROUP:case u.DIALOG:case u.ADDRESS:case u.ARTICLE:case u.DETAILS:case u.SEARCH:case u.SECTION:case u.SUMMARY:case u.LISTING:case u.FIELDSET:case u.BLOCKQUOTE:case u.FIGCAPTION:{TD(t,e);break}case u.LI:{AD(t);break}case u.DD:case u.DT:{CD(t,e);break}case u.H1:case u.H2:case u.H3:case u.H4:case u.H5:case u.H6:{SD(t);break}case u.BR:{wD(t);break}case u.BODY:{_D(t,e);break}case u.HTML:{ED(t,e);break}case u.FORM:{xD(t);break}case u.APPLET:case u.OBJECT:case u.MARQUEE:{ID(t,e);break}case u.TEMPLATE:{Br(t,e);break}default:bT(t,e)}}function _T(t,e){t.tmplInsertionModeStack.length>0?ST(t,e):Bd(t,e)}function ND(t,e){var n;e.tagID===u.SCRIPT&&((n=t.scriptHandler)===null||n===void 0||n.call(t,t.openElements.current)),t.openElements.pop(),t.insertionMode=t.originalInsertionMode}function vD(t,e){t._err(e,D.eofInElementThatCanContainOnlyText),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t.onEof(e)}function jd(t,e){if(cT.has(t.openElements.currentTagId))switch(t.pendingCharacterTokens.length=0,t.hasNonWhitespacePendingCharacterToken=!1,t.originalInsertionMode=t.insertionMode,t.insertionMode=y.IN_TABLE_TEXT,e.type){case fe.CHARACTER:{TT(t,e);break}case fe.WHITESPACE_CHARACTER:{ET(t,e);break}}else ya(t,e)}function DD(t,e){t.openElements.clearBackToTableContext(),t.activeFormattingElements.insertMarker(),t._insertElement(e,R.HTML),t.insertionMode=y.IN_CAPTION}function OD(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,R.HTML),t.insertionMode=y.IN_COLUMN_GROUP}function kD(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(v.COLGROUP,u.COLGROUP),t.insertionMode=y.IN_COLUMN_GROUP,Hd(t,e)}function RD(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,R.HTML),t.insertionMode=y.IN_TABLE_BODY}function LD(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(v.TBODY,u.TBODY),t.insertionMode=y.IN_TABLE_BODY,Vu(t,e)}function PD(t,e){t.openElements.hasInTableScope(u.TABLE)&&(t.openElements.popUntilTagNamePopped(u.TABLE),t._resetInsertionMode(),t._processStartTag(e))}function MD(t,e){pT(e)?t._appendElement(e,R.HTML):ya(t,e),e.ackSelfClosing=!0}function FD(t,e){!t.formElement&&t.openElements.tmplCount===0&&(t._insertElement(e,R.HTML),t.formElement=t.openElements.current,t.openElements.pop())}function Gs(t,e){switch(e.tagID){case u.TD:case u.TH:case u.TR:{LD(t,e);break}case u.STYLE:case u.SCRIPT:case u.TEMPLATE:{Qt(t,e);break}case u.COL:{kD(t,e);break}case u.FORM:{FD(t,e);break}case u.TABLE:{PD(t,e);break}case u.TBODY:case u.TFOOT:case u.THEAD:{RD(t,e);break}case u.INPUT:{MD(t,e);break}case u.CAPTION:{DD(t,e);break}case u.COLGROUP:{OD(t,e);break}default:ya(t,e)}}function xa(t,e){switch(e.tagID){case u.TABLE:{t.openElements.hasInTableScope(u.TABLE)&&(t.openElements.popUntilTagNamePopped(u.TABLE),t._resetInsertionMode());break}case u.TEMPLATE:{Br(t,e);break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:case u.TBODY:case u.TD:case u.TFOOT:case u.TH:case u.THEAD:case u.TR:break;default:ya(t,e)}}function ya(t,e){let n=t.fosterParentingEnabled;t.fosterParentingEnabled=!0,Hu(t,e),t.fosterParentingEnabled=n}function ET(t,e){t.pendingCharacterTokens.push(e)}function TT(t,e){t.pendingCharacterTokens.push(e),t.hasNonWhitespacePendingCharacterToken=!0}function Aa(t,e){let n=0;if(t.hasNonWhitespacePendingCharacterToken)for(;n<t.pendingCharacterTokens.length;n++)ya(t,t.pendingCharacterTokens[n]);else for(;n<t.pendingCharacterTokens.length;n++)t._insertCharacters(t.pendingCharacterTokens[n]);t.insertionMode=t.originalInsertionMode,t._processToken(e)}function BD(t,e){let n=e.tagID;xT.has(n)?t.openElements.hasInTableScope(u.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(u.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=y.IN_TABLE,Gs(t,e)):at(t,e)}function jD(t,e){let n=e.tagID;switch(n){case u.CAPTION:case u.TABLE:{t.openElements.hasInTableScope(u.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(u.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=y.IN_TABLE,n===u.TABLE&&xa(t,e));break}case u.BODY:case u.COL:case u.COLGROUP:case u.HTML:case u.TBODY:case u.TD:case u.TFOOT:case u.TH:case u.THEAD:case u.TR:break;default:Uu(t,e)}}function Hd(t,e){switch(e.tagID){case u.HTML:{at(t,e);break}case u.COL:{t._appendElement(e,R.HTML),e.ackSelfClosing=!0;break}case u.TEMPLATE:{Qt(t,e);break}default:zu(t,e)}}function HD(t,e){switch(e.tagID){case u.COLGROUP:{t.openElements.currentTagId===u.COLGROUP&&(t.openElements.pop(),t.insertionMode=y.IN_TABLE);break}case u.TEMPLATE:{Br(t,e);break}case u.COL:break;default:zu(t,e)}}function zu(t,e){t.openElements.currentTagId===u.COLGROUP&&(t.openElements.pop(),t.insertionMode=y.IN_TABLE,t._processToken(e))}function Vu(t,e){switch(e.tagID){case u.TR:{t.openElements.clearBackToTableBodyContext(),t._insertElement(e,R.HTML),t.insertionMode=y.IN_ROW;break}case u.TH:case u.TD:{t.openElements.clearBackToTableBodyContext(),t._insertFakeElement(v.TR,u.TR),t.insertionMode=y.IN_ROW,qu(t,e);break}case u.CAPTION:case u.COL:case u.COLGROUP:case u.TBODY:case u.TFOOT:case u.THEAD:{t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=y.IN_TABLE,Gs(t,e));break}default:Gs(t,e)}}function Ud(t,e){let n=e.tagID;switch(e.tagID){case u.TBODY:case u.TFOOT:case u.THEAD:{t.openElements.hasInTableScope(n)&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=y.IN_TABLE);break}case u.TABLE:{t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=y.IN_TABLE,xa(t,e));break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:case u.TD:case u.TH:case u.TR:break;default:xa(t,e)}}function qu(t,e){switch(e.tagID){case u.TH:case u.TD:{t.openElements.clearBackToTableRowContext(),t._insertElement(e,R.HTML),t.insertionMode=y.IN_CELL,t.activeFormattingElements.insertMarker();break}case u.CAPTION:case u.COL:case u.COLGROUP:case u.TBODY:case u.TFOOT:case u.THEAD:case u.TR:{t.openElements.hasInTableScope(u.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=y.IN_TABLE_BODY,Vu(t,e));break}default:Gs(t,e)}}function yT(t,e){switch(e.tagID){case u.TR:{t.openElements.hasInTableScope(u.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=y.IN_TABLE_BODY);break}case u.TABLE:{t.openElements.hasInTableScope(u.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=y.IN_TABLE_BODY,Ud(t,e));break}case u.TBODY:case u.TFOOT:case u.THEAD:{(t.openElements.hasInTableScope(e.tagID)||t.openElements.hasInTableScope(u.TR))&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=y.IN_TABLE_BODY,Ud(t,e));break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:case u.TD:case u.TH:break;default:xa(t,e)}}function UD(t,e){let n=e.tagID;xT.has(n)?(t.openElements.hasInTableScope(u.TD)||t.openElements.hasInTableScope(u.TH))&&(t._closeTableCell(),qu(t,e)):at(t,e)}function zD(t,e){let n=e.tagID;switch(n){case u.TD:case u.TH:{t.openElements.hasInTableScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=y.IN_ROW);break}case u.TABLE:case u.TBODY:case u.TFOOT:case u.THEAD:case u.TR:{t.openElements.hasInTableScope(n)&&(t._closeTableCell(),yT(t,e));break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:break;default:Uu(t,e)}}function AT(t,e){switch(e.tagID){case u.HTML:{at(t,e);break}case u.OPTION:{t.openElements.currentTagId===u.OPTION&&t.openElements.pop(),t._insertElement(e,R.HTML);break}case u.OPTGROUP:{t.openElements.currentTagId===u.OPTION&&t.openElements.pop(),t.openElements.currentTagId===u.OPTGROUP&&t.openElements.pop(),t._insertElement(e,R.HTML);break}case u.HR:{t.openElements.currentTagId===u.OPTION&&t.openElements.pop(),t.openElements.currentTagId===u.OPTGROUP&&t.openElements.pop(),t._appendElement(e,R.HTML),e.ackSelfClosing=!0;break}case u.INPUT:case u.KEYGEN:case u.TEXTAREA:case u.SELECT:{t.openElements.hasInSelectScope(u.SELECT)&&(t.openElements.popUntilTagNamePopped(u.SELECT),t._resetInsertionMode(),e.tagID!==u.SELECT&&t._processStartTag(e));break}case u.SCRIPT:case u.TEMPLATE:{Qt(t,e);break}default:}}function CT(t,e){switch(e.tagID){case u.OPTGROUP:{t.openElements.stackTop>0&&t.openElements.currentTagId===u.OPTION&&t.openElements.tagIDs[t.openElements.stackTop-1]===u.OPTGROUP&&t.openElements.pop(),t.openElements.currentTagId===u.OPTGROUP&&t.openElements.pop();break}case u.OPTION:{t.openElements.currentTagId===u.OPTION&&t.openElements.pop();break}case u.SELECT:{t.openElements.hasInSelectScope(u.SELECT)&&(t.openElements.popUntilTagNamePopped(u.SELECT),t._resetInsertionMode());break}case u.TEMPLATE:{Br(t,e);break}default:}}function VD(t,e){let n=e.tagID;n===u.CAPTION||n===u.TABLE||n===u.TBODY||n===u.TFOOT||n===u.THEAD||n===u.TR||n===u.TD||n===u.TH?(t.openElements.popUntilTagNamePopped(u.SELECT),t._resetInsertionMode(),t._processStartTag(e)):AT(t,e)}function qD(t,e){let n=e.tagID;n===u.CAPTION||n===u.TABLE||n===u.TBODY||n===u.TFOOT||n===u.THEAD||n===u.TR||n===u.TD||n===u.TH?t.openElements.hasInTableScope(n)&&(t.openElements.popUntilTagNamePopped(u.SELECT),t._resetInsertionMode(),t.onEndTag(e)):CT(t,e)}function KD(t,e){switch(e.tagID){case u.BASE:case u.BASEFONT:case u.BGSOUND:case u.LINK:case u.META:case u.NOFRAMES:case u.SCRIPT:case u.STYLE:case u.TEMPLATE:case u.TITLE:{Qt(t,e);break}case u.CAPTION:case u.COLGROUP:case u.TBODY:case u.TFOOT:case u.THEAD:{t.tmplInsertionModeStack[0]=y.IN_TABLE,t.insertionMode=y.IN_TABLE,Gs(t,e);break}case u.COL:{t.tmplInsertionModeStack[0]=y.IN_COLUMN_GROUP,t.insertionMode=y.IN_COLUMN_GROUP,Hd(t,e);break}case u.TR:{t.tmplInsertionModeStack[0]=y.IN_TABLE_BODY,t.insertionMode=y.IN_TABLE_BODY,Vu(t,e);break}case u.TD:case u.TH:{t.tmplInsertionModeStack[0]=y.IN_ROW,t.insertionMode=y.IN_ROW,qu(t,e);break}default:t.tmplInsertionModeStack[0]=y.IN_BODY,t.insertionMode=y.IN_BODY,at(t,e)}}function YD(t,e){e.tagID===u.TEMPLATE&&Br(t,e)}function ST(t,e){t.openElements.tmplCount>0?(t.openElements.popUntilTagNamePopped(u.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode(),t.onEof(e)):Bd(t,e)}function WD(t,e){e.tagID===u.HTML?at(t,e):Ku(t,e)}function IT(t,e){var n;if(e.tagID===u.HTML){if(t.fragmentContext||(t.insertionMode=y.AFTER_AFTER_BODY),t.options.sourceCodeLocationInfo&&t.openElements.tagIDs[0]===u.HTML){t._setEndLocation(t.openElements.items[0],e);let r=t.openElements.items[1];r&&!((n=t.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0?void 0:n.endTag)&&t._setEndLocation(r,e)}}else Ku(t,e)}function Ku(t,e){t.insertionMode=y.IN_BODY,Hu(t,e)}function GD(t,e){switch(e.tagID){case u.HTML:{at(t,e);break}case u.FRAMESET:{t._insertElement(e,R.HTML);break}case u.FRAME:{t._appendElement(e,R.HTML),e.ackSelfClosing=!0;break}case u.NOFRAMES:{Qt(t,e);break}default:}}function $D(t,e){e.tagID===u.FRAMESET&&!t.openElements.isRootHtmlElementCurrent()&&(t.openElements.pop(),!t.fragmentContext&&t.openElements.currentTagId!==u.FRAMESET&&(t.insertionMode=y.AFTER_FRAMESET))}function QD(t,e){switch(e.tagID){case u.HTML:{at(t,e);break}case u.NOFRAMES:{Qt(t,e);break}default:}}function XD(t,e){e.tagID===u.HTML&&(t.insertionMode=y.AFTER_AFTER_FRAMESET)}function ZD(t,e){e.tagID===u.HTML?at(t,e):Yu(t,e)}function Yu(t,e){t.insertionMode=y.IN_BODY,Hu(t,e)}function JD(t,e){switch(e.tagID){case u.HTML:{at(t,e);break}case u.NOFRAMES:{Qt(t,e);break}default:}}function eO(t,e){e.chars=we,t._insertCharacters(e)}function tO(t,e){t._insertCharacters(e),t.framesetOk=!1}function wT(t){for(;t.treeAdapter.getNamespaceURI(t.openElements.current)!==R.HTML&&!t._isIntegrationPoint(t.openElements.currentTagId,t.openElements.current);)t.openElements.pop()}function nO(t,e){if(aT(e))wT(t),t._startTagOutsideForeignContent(e);else{let n=t._getAdjustedCurrentElement(),r=t.treeAdapter.getNamespaceURI(n);r===R.MATHML?Rd(e):r===R.SVG&&(oT(e),Ld(e)),ju(e),e.selfClosing?t._appendElement(e,r):t._insertElement(e,r),e.ackSelfClosing=!0}}function rO(t,e){if(e.tagID===u.P||e.tagID===u.BR){wT(t),t._endTagOutsideForeignContent(e);return}for(let n=t.openElements.stackTop;n>0;n--){let r=t.openElements.items[n];if(t.treeAdapter.getNamespaceURI(r)===R.HTML){t._endTagOutsideForeignContent(e);break}let s=t.treeAdapter.getTagName(r);if(s.toLowerCase()===e.tagName){e.tagName=s,t.openElements.shortenToLength(n);break}}}var y6,A6,C6,y,S6,cT,lT,pa,xT,zd=x(()=>{vd();$E();XE();Bu();sT();Pd();da();Ou();wn();Ru();y6="hidden",A6=8,C6=3;(function(t){t[t.INITIAL=0]="INITIAL",t[t.BEFORE_HTML=1]="BEFORE_HTML",t[t.BEFORE_HEAD=2]="BEFORE_HEAD",t[t.IN_HEAD=3]="IN_HEAD",t[t.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",t[t.AFTER_HEAD=5]="AFTER_HEAD",t[t.IN_BODY=6]="IN_BODY",t[t.TEXT=7]="TEXT",t[t.IN_TABLE=8]="IN_TABLE",t[t.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",t[t.IN_CAPTION=10]="IN_CAPTION",t[t.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",t[t.IN_TABLE_BODY=12]="IN_TABLE_BODY",t[t.IN_ROW=13]="IN_ROW",t[t.IN_CELL=14]="IN_CELL",t[t.IN_SELECT=15]="IN_SELECT",t[t.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",t[t.IN_TEMPLATE=17]="IN_TEMPLATE",t[t.AFTER_BODY=18]="AFTER_BODY",t[t.IN_FRAMESET=19]="IN_FRAMESET",t[t.AFTER_FRAMESET=20]="AFTER_FRAMESET",t[t.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",t[t.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(y||(y={}));S6={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},cT=new Set([u.TABLE,u.TBODY,u.TFOOT,u.THEAD,u.TR]),lT={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Mt,onParseError:null},pa=class{constructor(e,n,r=null,s=null){this.fragmentContext=r,this.scriptHandler=s,this.currentToken=null,this.stopped=!1,this.insertionMode=y.INITIAL,this.originalInsertionMode=y.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options=B(B({},lT),e),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new Mu(this.options,this),this.activeFormattingElements=new kd(this.treeAdapter),this.fragmentContextID=r?or(this.treeAdapter.getTagName(r)):u.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new Dd(this.document,this.treeAdapter,this)}static parse(e,n){let r=new this(n);return r.tokenizer.write(e,!0),r.document}static getFragmentParser(e,n){let r=B(B({},lT),n);e??(e=r.treeAdapter.createElement(v.TEMPLATE,R.HTML,[]));let s=r.treeAdapter.createElement("documentmock",R.HTML,[]),i=new this(r,s,e);return i.fragmentContextID===u.TEMPLATE&&i.tmplInsertionModeStack.unshift(y.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){let e=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,n),n}_err(e,n,r){var s;if(!this.onParseError)return;let i=(s=e.location)!==null&&s!==void 0?s:S6,a={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(a)}onItemPush(e,n,r){var s,i;(i=(s=this.treeAdapter).onItemPush)===null||i===void 0||i.call(s,e),r&&this.openElements.stackTop>0&&this._setContextModes(e,n)}onItemPop(e,n){var r,s;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),(s=(r=this.treeAdapter).onItemPop)===null||s===void 0||s.call(r,e,this.openElements.current),n){let i,a;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,a=this.fragmentContextID):{current:i,currentTagId:a}=this.openElements,this._setContextModes(i,a)}}_setContextModes(e,n){let r=e===this.document||this.treeAdapter.getNamespaceURI(e)===R.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,e)}_switchToTextParsing(e,n){this._insertElement(e,R.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=y.TEXT}switchToPlaintextParsing(){this.insertionMode=y.TEXT,this.originalInsertionMode=y.IN_BODY,this.tokenizer.state=it.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===v.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==R.HTML))switch(this.fragmentContextID){case u.TITLE:case u.TEXTAREA:{this.tokenizer.state=it.RCDATA;break}case u.STYLE:case u.XMP:case u.IFRAME:case u.NOEMBED:case u.NOFRAMES:case u.NOSCRIPT:{this.tokenizer.state=it.RAWTEXT;break}case u.SCRIPT:{this.tokenizer.state=it.SCRIPT_DATA;break}case u.PLAINTEXT:{this.tokenizer.state=it.PLAINTEXT;break}default:}}_setDocumentType(e){let n=e.name||"",r=e.publicId||"",s=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,s),e.location){let a=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));a&&this.treeAdapter.setNodeSourceCodeLocation(a,e.location)}}_attachElementToTree(e,n){if(this.options.sourceCodeLocationInfo){let r=n&&ce(B({},n),{startTag:n});this.treeAdapter.setNodeSourceCodeLocation(e,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,e)}}_appendElement(e,n){let r=this.treeAdapter.createElement(e.tagName,n,e.attrs);this._attachElementToTree(r,e.location)}_insertElement(e,n){let r=this.treeAdapter.createElement(e.tagName,n,e.attrs);this._attachElementToTree(r,e.location),this.openElements.push(r,e.tagID)}_insertFakeElement(e,n){let r=this.treeAdapter.createElement(e,R.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(e){let n=this.treeAdapter.createElement(e.tagName,R.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(v.HTML,R.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,u.HTML)}_appendCommentNode(e,n){let r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,e.location)}_insertCharacters(e){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,e.chars,r):this.treeAdapter.insertText(n,e.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,e.chars)),!e.location)return;let s=this.treeAdapter.getChildNodes(n),i=r?s.lastIndexOf(r):s.length,a=s[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){let{endLine:c,endCol:l,endOffset:h}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:c,endCol:l,endOffset:h})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,e.location)}_adoptNodes(e,n){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(e,n){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&n.location){let r=n.location,s=this.treeAdapter.getTagName(e),i=n.type===fe.END_TAG&&s===n.tagName?{endTag:B({},r),endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,e.tagID===u.SVG&&this.treeAdapter.getTagName(n)===v.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===R.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===u.MGLYPH||e.tagID===u.MALIGNMARK)&&!this._isIntegrationPoint(r,n,R.HTML)}_processToken(e){switch(e.type){case fe.CHARACTER:{this.onCharacter(e);break}case fe.NULL_CHARACTER:{this.onNullCharacter(e);break}case fe.COMMENT:{this.onComment(e);break}case fe.DOCTYPE:{this.onDoctype(e);break}case fe.START_TAG:{this._processStartTag(e);break}case fe.END_TAG:{this.onEndTag(e);break}case fe.EOF:{this.onEof(e);break}case fe.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(e);break}}}_isIntegrationPoint(e,n,r){let s=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return uT(e,s,i,r)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let n=this.activeFormattingElements.entries.findIndex(s=>s.type===$t.Marker||this.openElements.contains(s.element)),r=n<0?e-1:n-1;for(let s=r;s>=0;s--){let i=this.activeFormattingElements.entries[s];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=y.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(u.P),this.openElements.popUntilTagNamePopped(u.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case u.TR:{this.insertionMode=y.IN_ROW;return}case u.TBODY:case u.THEAD:case u.TFOOT:{this.insertionMode=y.IN_TABLE_BODY;return}case u.CAPTION:{this.insertionMode=y.IN_CAPTION;return}case u.COLGROUP:{this.insertionMode=y.IN_COLUMN_GROUP;return}case u.TABLE:{this.insertionMode=y.IN_TABLE;return}case u.BODY:{this.insertionMode=y.IN_BODY;return}case u.FRAMESET:{this.insertionMode=y.IN_FRAMESET;return}case u.SELECT:{this._resetInsertionModeForSelect(e);return}case u.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case u.HTML:{this.insertionMode=this.headElement?y.AFTER_HEAD:y.BEFORE_HEAD;return}case u.TD:case u.TH:{if(e>0){this.insertionMode=y.IN_CELL;return}break}case u.HEAD:{if(e>0){this.insertionMode=y.IN_HEAD;return}break}}this.insertionMode=y.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let n=e-1;n>0;n--){let r=this.openElements.tagIDs[n];if(r===u.TEMPLATE)break;if(r===u.TABLE){this.insertionMode=y.IN_SELECT_IN_TABLE;return}}this.insertionMode=y.IN_SELECT}_isElementCausesFosterParenting(e){return cT.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let n=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case u.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===R.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case u.TABLE:{let r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[e-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,e,n.beforeElement):this.treeAdapter.appendChild(n.parent,e)}_isSpecialElement(e,n){let r=this.treeAdapter.getNamespaceURI(e);return wd[r].has(n)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){tO(this,e);return}switch(this.insertionMode){case y.INITIAL:{ma(this,e);break}case y.BEFORE_HTML:{ga(this,e);break}case y.BEFORE_HEAD:{ba(this,e);break}case y.IN_HEAD:{_a(this,e);break}case y.IN_HEAD_NO_SCRIPT:{Ea(this,e);break}case y.AFTER_HEAD:{Ta(this,e);break}case y.IN_BODY:case y.IN_CAPTION:case y.IN_CELL:case y.IN_TEMPLATE:{dT(this,e);break}case y.TEXT:case y.IN_SELECT:case y.IN_SELECT_IN_TABLE:{this._insertCharacters(e);break}case y.IN_TABLE:case y.IN_TABLE_BODY:case y.IN_ROW:{jd(this,e);break}case y.IN_TABLE_TEXT:{TT(this,e);break}case y.IN_COLUMN_GROUP:{zu(this,e);break}case y.AFTER_BODY:{Ku(this,e);break}case y.AFTER_AFTER_BODY:{Yu(this,e);break}default:}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){eO(this,e);return}switch(this.insertionMode){case y.INITIAL:{ma(this,e);break}case y.BEFORE_HTML:{ga(this,e);break}case y.BEFORE_HEAD:{ba(this,e);break}case y.IN_HEAD:{_a(this,e);break}case y.IN_HEAD_NO_SCRIPT:{Ea(this,e);break}case y.AFTER_HEAD:{Ta(this,e);break}case y.TEXT:{this._insertCharacters(e);break}case y.IN_TABLE:case y.IN_TABLE_BODY:case y.IN_ROW:{jd(this,e);break}case y.IN_COLUMN_GROUP:{zu(this,e);break}case y.AFTER_BODY:{Ku(this,e);break}case y.AFTER_AFTER_BODY:{Yu(this,e);break}default:}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){Fd(this,e);return}switch(this.insertionMode){case y.INITIAL:case y.BEFORE_HTML:case y.BEFORE_HEAD:case y.IN_HEAD:case y.IN_HEAD_NO_SCRIPT:case y.AFTER_HEAD:case y.IN_BODY:case y.IN_TABLE:case y.IN_CAPTION:case y.IN_COLUMN_GROUP:case y.IN_TABLE_BODY:case y.IN_ROW:case y.IN_CELL:case y.IN_SELECT:case y.IN_SELECT_IN_TABLE:case y.IN_TEMPLATE:case y.IN_FRAMESET:case y.AFTER_FRAMESET:{Fd(this,e);break}case y.IN_TABLE_TEXT:{Aa(this,e);break}case y.AFTER_BODY:{k6(this,e);break}case y.AFTER_AFTER_BODY:case y.AFTER_AFTER_FRAMESET:{R6(this,e);break}default:}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case y.INITIAL:{L6(this,e);break}case y.BEFORE_HEAD:case y.IN_HEAD:case y.IN_HEAD_NO_SCRIPT:case y.AFTER_HEAD:{this._err(e,D.misplacedDoctype);break}case y.IN_TABLE_TEXT:{Aa(this,e);break}default:}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,D.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?nO(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case y.INITIAL:{ma(this,e);break}case y.BEFORE_HTML:{P6(this,e);break}case y.BEFORE_HEAD:{F6(this,e);break}case y.IN_HEAD:{Qt(this,e);break}case y.IN_HEAD_NO_SCRIPT:{H6(this,e);break}case y.AFTER_HEAD:{z6(this,e);break}case y.IN_BODY:{at(this,e);break}case y.IN_TABLE:{Gs(this,e);break}case y.IN_TABLE_TEXT:{Aa(this,e);break}case y.IN_CAPTION:{BD(this,e);break}case y.IN_COLUMN_GROUP:{Hd(this,e);break}case y.IN_TABLE_BODY:{Vu(this,e);break}case y.IN_ROW:{qu(this,e);break}case y.IN_CELL:{UD(this,e);break}case y.IN_SELECT:{AT(this,e);break}case y.IN_SELECT_IN_TABLE:{VD(this,e);break}case y.IN_TEMPLATE:{KD(this,e);break}case y.AFTER_BODY:{WD(this,e);break}case y.IN_FRAMESET:{GD(this,e);break}case y.AFTER_FRAMESET:{QD(this,e);break}case y.AFTER_AFTER_BODY:{ZD(this,e);break}case y.AFTER_AFTER_FRAMESET:{JD(this,e);break}default:}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?rO(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case y.INITIAL:{ma(this,e);break}case y.BEFORE_HTML:{M6(this,e);break}case y.BEFORE_HEAD:{B6(this,e);break}case y.IN_HEAD:{j6(this,e);break}case y.IN_HEAD_NO_SCRIPT:{U6(this,e);break}case y.AFTER_HEAD:{V6(this,e);break}case y.IN_BODY:{Uu(this,e);break}case y.TEXT:{ND(this,e);break}case y.IN_TABLE:{xa(this,e);break}case y.IN_TABLE_TEXT:{Aa(this,e);break}case y.IN_CAPTION:{jD(this,e);break}case y.IN_COLUMN_GROUP:{HD(this,e);break}case y.IN_TABLE_BODY:{Ud(this,e);break}case y.IN_ROW:{yT(this,e);break}case y.IN_CELL:{zD(this,e);break}case y.IN_SELECT:{CT(this,e);break}case y.IN_SELECT_IN_TABLE:{qD(this,e);break}case y.IN_TEMPLATE:{YD(this,e);break}case y.AFTER_BODY:{IT(this,e);break}case y.IN_FRAMESET:{$D(this,e);break}case y.AFTER_FRAMESET:{XD(this,e);break}case y.AFTER_AFTER_BODY:{Yu(this,e);break}default:}}onEof(e){switch(this.insertionMode){case y.INITIAL:{ma(this,e);break}case y.BEFORE_HTML:{ga(this,e);break}case y.BEFORE_HEAD:{ba(this,e);break}case y.IN_HEAD:{_a(this,e);break}case y.IN_HEAD_NO_SCRIPT:{Ea(this,e);break}case y.AFTER_HEAD:{Ta(this,e);break}case y.IN_BODY:case y.IN_TABLE:case y.IN_CAPTION:case y.IN_COLUMN_GROUP:case y.IN_TABLE_BODY:case y.IN_ROW:case y.IN_CELL:case y.IN_SELECT:case y.IN_SELECT_IN_TABLE:{_T(this,e);break}case y.TEXT:{vD(this,e);break}case y.IN_TABLE_TEXT:{Aa(this,e);break}case y.IN_TEMPLATE:{ST(this,e);break}case y.AFTER_BODY:case y.IN_FRAMESET:case y.AFTER_FRAMESET:case y.AFTER_AFTER_BODY:case y.AFTER_AFTER_FRAMESET:{Bd(this,e);break}default:}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===g.LINE_FEED)){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case y.IN_HEAD:case y.IN_HEAD_NO_SCRIPT:case y.AFTER_HEAD:case y.TEXT:case y.IN_COLUMN_GROUP:case y.IN_SELECT:case y.IN_SELECT_IN_TABLE:case y.IN_FRAMESET:case y.AFTER_FRAMESET:{this._insertCharacters(e);break}case y.IN_BODY:case y.IN_CAPTION:case y.IN_CELL:case y.IN_TEMPLATE:case y.AFTER_BODY:case y.AFTER_AFTER_BODY:case y.AFTER_AFTER_FRAMESET:{fT(this,e);break}case y.IN_TABLE:case y.IN_TABLE_BODY:case y.IN_ROW:{jd(this,e);break}case y.IN_TABLE_TEXT:{ET(this,e);break}default:}}};xT=new Set([u.CAPTION,u.COL,u.COLGROUP,u.TBODY,u.TD,u.TFOOT,u.TH,u.THEAD,u.TR])});function iO(t,e){return e.treeAdapter.isElementNode(t)&&e.treeAdapter.getNamespaceURI(t)===R.HTML&&sO.has(e.treeAdapter.getTagName(t))}function Vd(t,e){let n=B(B({},aO),e);return NT(t,n)}function oO(t,e){let n="",r=e.treeAdapter.isElementNode(t)&&e.treeAdapter.getTagName(t)===v.TEMPLATE&&e.treeAdapter.getNamespaceURI(t)===R.HTML?e.treeAdapter.getTemplateContent(t):t,s=e.treeAdapter.getChildNodes(r);if(s)for(let i of s)n+=NT(i,e);return n}function NT(t,e){return e.treeAdapter.isElementNode(t)?uO(t,e):e.treeAdapter.isTextNode(t)?lO(t,e):e.treeAdapter.isCommentNode(t)?fO(t,e):e.treeAdapter.isDocumentTypeNode(t)?dO(t,e):""}function uO(t,e){let n=e.treeAdapter.getTagName(t);return`<${n}${cO(t,e)}>${iO(t,e)?"":`${oO(t,e)}</${n}>`}`}function cO(t,{treeAdapter:e}){let n="";for(let r of e.getAttrList(t)){if(n+=" ",r.namespace)switch(r.namespace){case R.XML:{n+=`xml:${r.name}`;break}case R.XMLNS:{r.name!=="xmlns"&&(n+="xmlns:"),n+=r.name;break}case R.XLINK:{n+=`xlink:${r.name}`;break}default:n+=`${r.prefix}:${r.name}`}else n+=r.name;n+=`="${Fs(r.value)}"`}return n}function lO(t,e){let{treeAdapter:n}=e,r=n.getTextNodeContent(t),s=n.getParentNode(t),i=s&&n.isElementNode(s)&&n.getTagName(s);return i&&n.getNamespaceURI(s)===R.HTML&&Nd(i,e.scriptingEnabled)?r:Bs(r)}function fO(t,{treeAdapter:e}){return`<!--${e.getCommentNodeContent(t)}-->`}function dO(t,{treeAdapter:e}){return`<!DOCTYPE ${e.getDocumentTypeNodeName(t)}>`}var sO,aO,vT=x(()=>{wn();Xi();Bu();sO=new Set([v.AREA,v.BASE,v.BASEFONT,v.BGSOUND,v.BR,v.COL,v.EMBED,v.FRAME,v.HR,v.IMG,v.INPUT,v.KEYGEN,v.LINK,v.META,v.PARAM,v.SOURCE,v.TRACK,v.WBR]);aO={treeAdapter:Mt,scriptingEnabled:!0}});function DT(t,e){return pa.parse(t,e)}function OT(t,e,n){typeof t=="string"&&(n=e,e=t,t=null);let r=pa.getFragmentParser(t,n);return r.tokenizer.write(e,!0),r.getFragment()}var qd=x(()=>{zd();Bu();zd();vT();da();Pd();wn();Ru();vd()});function kT(t){let e=t.includes('"')?"'":'"';return e+t+e}function hO(t,e,n){let r="!DOCTYPE ";return t&&(r+=t),e?r+=` PUBLIC ${kT(e)}`:n&&(r+=" SYSTEM"),n&&(r+=` ${kT(n)}`),r}var Nn,RT=x(()=>{qd();Qe();Nn={isCommentNode:vr,isElementNode:$,isTextNode:gt,createDocument(){let t=new Ot([]);return t["x-mode"]=Lu.DOCUMENT_MODE.NO_QUIRKS,t},createDocumentFragment(){return new Ot([])},createElement(t,e,n){let r=Object.create(null),s=Object.create(null),i=Object.create(null);for(let o=0;o<n.length;o++){let c=n[o].name;r[c]=n[o].value,s[c]=n[o].namespace,i[c]=n[o].prefix}let a=new Os(t,r,[]);return a.namespace=e,a["x-attribsNamespace"]=s,a["x-attribsPrefix"]=i,a},createCommentNode(t){return new vs(t)},createTextNode(t){return new yn(t)},appendChild(t,e){let n=t.children[t.children.length-1];n&&(n.next=e,e.prev=n),t.children.push(e),e.parent=t},insertBefore(t,e,n){let r=t.children.indexOf(n),{prev:s}=n;s&&(s.next=e,e.prev=s),n.prev=e,e.next=n,t.children.splice(r,0,e),e.parent=t},setTemplateContent(t,e){Nn.appendChild(t,e)},getTemplateContent(t){return t.children[0]},setDocumentType(t,e,n,r){let s=hO(e,n,r),i=t.children.find(a=>iu(a)&&a.name==="!doctype");i?i.data=s??null:(i=new Ds("!doctype",s),Nn.appendChild(t,i)),i["x-name"]=e,i["x-publicId"]=n,i["x-systemId"]=r},setDocumentMode(t,e){t["x-mode"]=e},getDocumentMode(t){return t["x-mode"]},detachNode(t){if(t.parent){let e=t.parent.children.indexOf(t),{prev:n,next:r}=t;t.prev=null,t.next=null,n&&(n.next=r),r&&(r.prev=n),t.parent.children.splice(e,1),t.parent=null}},insertText(t,e){let n=t.children[t.children.length-1];n&&gt(n)?n.data+=e:Nn.appendChild(t,Nn.createTextNode(e))},insertTextBefore(t,e,n){let r=t.children[t.children.indexOf(n)-1];r&&gt(r)?r.data+=e:Nn.insertBefore(t,Nn.createTextNode(e),n)},adoptAttributes(t,e){for(let n=0;n<e.length;n++){let r=e[n].name;t.attribs[r]===void 0&&(t.attribs[r]=e[n].value,t["x-attribsNamespace"][r]=e[n].namespace,t["x-attribsPrefix"][r]=e[n].prefix)}},getFirstChild(t){return t.children[0]},getChildNodes(t){return t.children},getParentNode(t){return t.parent},getAttrList(t){return t.attributes},getTagName(t){return t.name},getNamespaceURI(t){return t.namespace},getTextNodeContent(t){return t.data},getCommentNodeContent(t){return t.data},getDocumentTypeNodeName(t){var e;return(e=t["x-name"])!==null&&e!==void 0?e:""},getDocumentTypeNodePublicId(t){var e;return(e=t["x-publicId"])!==null&&e!==void 0?e:""},getDocumentTypeNodeSystemId(t){var e;return(e=t["x-systemId"])!==null&&e!==void 0?e:""},isDocumentTypeNode(t){return iu(t)&&t.name==="!doctype"},setNodeSourceCodeLocation(t,e){e&&(t.startIndex=e.startOffset,t.endIndex=e.endOffset),t.sourceCodeLocation=e},getNodeSourceCodeLocation(t){return t.sourceCodeLocation},updateNodeSourceCodeLocation(t,e){e.endOffset!=null&&(t.endIndex=e.endOffset),t.sourceCodeLocation=B(B({},t.sourceCodeLocation),e)}}});function LT(t,e,n,r){var s;return(s=e.treeAdapter)!==null&&s!==void 0||(e.treeAdapter=Nn),e.scriptingEnabled!==!1&&(e.scriptingEnabled=!0),n?DT(t,e):OT(r,t,e)}function PT(t){let e="length"in t?t:[t];for(let r=0;r<e.length;r+=1){let s=e[r];kt(s)&&Array.prototype.splice.call(e,r,1,...s.children)}let n="";for(let r=0;r<e.length;r+=1){let s=e[r];n+=Vd(s,pO)}return n}var pO,MT=x(()=>{Qe();qd();RT();pO={treeAdapter:Nn}});function vn(t){return t===ee.Space||t===ee.NewLine||t===ee.Tab||t===ee.FormFeed||t===ee.CarriageReturn}function Wu(t){return t===ee.Slash||t===ee.Gt||vn(t)}function mO(t){return t>=ee.LowerA&&t<=ee.LowerZ||t>=ee.UpperA&&t<=ee.UpperZ}var ee,M,Ft,Xe,Ca,Kd=x(()=>{Ms();(function(t){t[t.Tab=9]="Tab",t[t.NewLine=10]="NewLine",t[t.FormFeed=12]="FormFeed",t[t.CarriageReturn=13]="CarriageReturn",t[t.Space=32]="Space",t[t.ExclamationMark=33]="ExclamationMark",t[t.Number=35]="Number",t[t.Amp=38]="Amp",t[t.SingleQuote=39]="SingleQuote",t[t.DoubleQuote=34]="DoubleQuote",t[t.Dash=45]="Dash",t[t.Slash=47]="Slash",t[t.Zero=48]="Zero",t[t.Nine=57]="Nine",t[t.Semi=59]="Semi",t[t.Lt=60]="Lt",t[t.Eq=61]="Eq",t[t.Gt=62]="Gt",t[t.Questionmark=63]="Questionmark",t[t.UpperA=65]="UpperA",t[t.LowerA=97]="LowerA",t[t.UpperF=70]="UpperF",t[t.LowerF=102]="LowerF",t[t.UpperZ=90]="UpperZ",t[t.LowerZ=122]="LowerZ",t[t.LowerX=120]="LowerX",t[t.OpeningSquareBracket=91]="OpeningSquareBracket"})(ee||(ee={}));(function(t){t[t.Text=1]="Text",t[t.BeforeTagName=2]="BeforeTagName",t[t.InTagName=3]="InTagName",t[t.InSelfClosingTag=4]="InSelfClosingTag",t[t.BeforeClosingTagName=5]="BeforeClosingTagName",t[t.InClosingTagName=6]="InClosingTagName",t[t.AfterClosingTagName=7]="AfterClosingTagName",t[t.BeforeAttributeName=8]="BeforeAttributeName",t[t.InAttributeName=9]="InAttributeName",t[t.AfterAttributeName=10]="AfterAttributeName",t[t.BeforeAttributeValue=11]="BeforeAttributeValue",t[t.InAttributeValueDq=12]="InAttributeValueDq",t[t.InAttributeValueSq=13]="InAttributeValueSq",t[t.InAttributeValueNq=14]="InAttributeValueNq",t[t.BeforeDeclaration=15]="BeforeDeclaration",t[t.InDeclaration=16]="InDeclaration",t[t.InProcessingInstruction=17]="InProcessingInstruction",t[t.BeforeComment=18]="BeforeComment",t[t.CDATASequence=19]="CDATASequence",t[t.InSpecialComment=20]="InSpecialComment",t[t.InCommentLike=21]="InCommentLike",t[t.BeforeSpecialS=22]="BeforeSpecialS",t[t.BeforeSpecialT=23]="BeforeSpecialT",t[t.SpecialStartSequence=24]="SpecialStartSequence",t[t.InSpecialTag=25]="InSpecialTag",t[t.InEntity=26]="InEntity"})(M||(M={}));(function(t){t[t.NoValue=0]="NoValue",t[t.Unquoted=1]="Unquoted",t[t.Single=2]="Single",t[t.Double=3]="Double"})(Ft||(Ft={}));Xe={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])},Ca=class{constructor({xmlMode:e=!1,decodeEntities:n=!0},r){this.cbs=r,this.state=M.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=M.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=e,this.decodeEntities=n,this.entityDecoder=new Dr(e?au:Ls,(s,i)=>this.emitCodePoint(s,i))}reset(){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}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}stateText(e){e===ee.Lt||!this.decodeEntities&&this.fastForwardTo(ee.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=M.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===ee.Amp&&this.startEntity()}stateSpecialStartSequence(e){let n=this.sequenceIndex===this.currentSequence.length;if(!(n?Wu(e):(e|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=M.InTagName,this.stateInTagName(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(e===ee.Gt||vn(e)){let n=this.index-this.currentSequence.length;if(this.sectionStart<n){let r=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=r}this.isSpecial=!1,this.sectionStart=n+2,this.stateInClosingTagName(e);return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Xe.TitleEnd?this.decodeEntities&&e===ee.Amp&&this.startEntity():this.fastForwardTo(ee.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===ee.Lt)}stateCDATASequence(e){e===Xe.Cdata[this.sequenceIndex]?++this.sequenceIndex===Xe.Cdata.length&&(this.state=M.InCommentLike,this.currentSequence=Xe.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=M.InDeclaration,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Xe.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):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(e){return this.xmlMode?!Wu(e):mO(e)}startSpecial(e,n){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=n,this.state=M.SpecialStartSequence}stateBeforeTagName(e){if(e===ee.ExclamationMark)this.state=M.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===ee.Questionmark)this.state=M.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){let n=e|32;this.sectionStart=this.index,this.xmlMode?this.state=M.InTagName:n===Xe.ScriptEnd[2]?this.state=M.BeforeSpecialS:n===Xe.TitleEnd[2]?this.state=M.BeforeSpecialT:this.state=M.InTagName}else e===ee.Slash?this.state=M.BeforeClosingTagName:(this.state=M.Text,this.stateText(e))}stateInTagName(e){Wu(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=M.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){vn(e)||(e===ee.Gt?this.state=M.Text:(this.state=this.isTagStartChar(e)?M.InClosingTagName:M.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(e){(e===ee.Gt||vn(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=M.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===ee.Gt||this.fastForwardTo(ee.Gt))&&(this.state=M.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===ee.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=M.InSpecialTag,this.sequenceIndex=0):this.state=M.Text,this.sectionStart=this.index+1):e===ee.Slash?this.state=M.InSelfClosingTag:vn(e)||(this.state=M.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===ee.Gt?(this.cbs.onselfclosingtag(this.index),this.state=M.Text,this.sectionStart=this.index+1,this.isSpecial=!1):vn(e)||(this.state=M.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===ee.Eq||Wu(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=M.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===ee.Eq?this.state=M.BeforeAttributeValue:e===ee.Slash||e===ee.Gt?(this.cbs.onattribend(Ft.NoValue,this.sectionStart),this.sectionStart=-1,this.state=M.BeforeAttributeName,this.stateBeforeAttributeName(e)):vn(e)||(this.cbs.onattribend(Ft.NoValue,this.sectionStart),this.state=M.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===ee.DoubleQuote?(this.state=M.InAttributeValueDq,this.sectionStart=this.index+1):e===ee.SingleQuote?(this.state=M.InAttributeValueSq,this.sectionStart=this.index+1):vn(e)||(this.sectionStart=this.index,this.state=M.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,n){e===n||!this.decodeEntities&&this.fastForwardTo(n)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===ee.DoubleQuote?Ft.Double:Ft.Single,this.index+1),this.state=M.BeforeAttributeName):this.decodeEntities&&e===ee.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,ee.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,ee.SingleQuote)}stateInAttributeValueNoQuotes(e){vn(e)||e===ee.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(Ft.Unquoted,this.index),this.state=M.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===ee.Amp&&this.startEntity()}stateBeforeDeclaration(e){e===ee.OpeningSquareBracket?(this.state=M.CDATASequence,this.sequenceIndex=0):this.state=e===ee.Dash?M.BeforeComment:M.InDeclaration}stateInDeclaration(e){(e===ee.Gt||this.fastForwardTo(ee.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=M.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===ee.Gt||this.fastForwardTo(ee.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=M.Text,this.sectionStart=this.index+1)}stateBeforeComment(e){e===ee.Dash?(this.state=M.InCommentLike,this.currentSequence=Xe.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=M.InDeclaration}stateInSpecialComment(e){(e===ee.Gt||this.fastForwardTo(ee.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=M.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){let n=e|32;n===Xe.ScriptEnd[3]?this.startSpecial(Xe.ScriptEnd,4):n===Xe.StyleEnd[3]?this.startSpecial(Xe.StyleEnd,4):(this.state=M.InTagName,this.stateInTagName(e))}stateBeforeSpecialT(e){let n=e|32;n===Xe.TitleEnd[3]?this.startSpecial(Xe.TitleEnd,4):n===Xe.TextareaEnd[3]?this.startSpecial(Xe.TextareaEnd,4):(this.state=M.InTagName,this.stateInTagName(e))}startEntity(){this.baseState=this.state,this.state=M.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?rt.Strict:this.baseState===M.Text||this.baseState===M.InSpecialTag?rt.Legacy:rt.Attribute)}stateInEntity(){let e=this.entityDecoder.write(this.buffer,this.index-this.offset);e>=0?(this.state=this.baseState,e===0&&(this.index=this.entityStart)):this.index=this.offset+this.buffer.length-1}cleanup(){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))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){let e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case M.Text:{this.stateText(e);break}case M.SpecialStartSequence:{this.stateSpecialStartSequence(e);break}case M.InSpecialTag:{this.stateInSpecialTag(e);break}case M.CDATASequence:{this.stateCDATASequence(e);break}case M.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(e);break}case M.InAttributeName:{this.stateInAttributeName(e);break}case M.InCommentLike:{this.stateInCommentLike(e);break}case M.InSpecialComment:{this.stateInSpecialComment(e);break}case M.BeforeAttributeName:{this.stateBeforeAttributeName(e);break}case M.InTagName:{this.stateInTagName(e);break}case M.InClosingTagName:{this.stateInClosingTagName(e);break}case M.BeforeTagName:{this.stateBeforeTagName(e);break}case M.AfterAttributeName:{this.stateAfterAttributeName(e);break}case M.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(e);break}case M.BeforeAttributeValue:{this.stateBeforeAttributeValue(e);break}case M.BeforeClosingTagName:{this.stateBeforeClosingTagName(e);break}case M.AfterClosingTagName:{this.stateAfterClosingTagName(e);break}case M.BeforeSpecialS:{this.stateBeforeSpecialS(e);break}case M.BeforeSpecialT:{this.stateBeforeSpecialT(e);break}case M.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(e);break}case M.InSelfClosingTag:{this.stateInSelfClosingTag(e);break}case M.InDeclaration:{this.stateInDeclaration(e);break}case M.BeforeDeclaration:{this.stateBeforeDeclaration(e);break}case M.BeforeComment:{this.stateBeforeComment(e);break}case M.InProcessingInstruction:{this.stateInProcessingInstruction(e);break}case M.InEntity:{this.stateInEntity();break}}this.index++}this.cleanup()}finish(){this.state===M.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let e=this.buffer.length+this.offset;this.sectionStart>=e||(this.state===M.InCommentLike?this.currentSequence===Xe.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):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,e))}emitCodePoint(e,n){this.baseState!==M.Text&&this.baseState!==M.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+n,this.index=this.sectionStart-1,this.cbs.onattribentity(e)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+n,this.index=this.sectionStart-1,this.cbs.ontextentity(e,this.sectionStart))}}});var $s,Te,FT,BT,jT,gO,bO,HT,UT,_O,Gu,Yd=x(()=>{Kd();Ms();$s=new Set(["input","option","optgroup","select","button","datalist","textarea"]),Te=new Set(["p"]),FT=new Set(["thead","tbody"]),BT=new Set(["dd","dt"]),jT=new Set(["rt","rp"]),gO=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",Te],["h1",Te],["h2",Te],["h3",Te],["h4",Te],["h5",Te],["h6",Te],["select",$s],["input",$s],["output",$s],["button",$s],["datalist",$s],["textarea",$s],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",BT],["dt",BT],["address",Te],["article",Te],["aside",Te],["blockquote",Te],["details",Te],["div",Te],["dl",Te],["fieldset",Te],["figcaption",Te],["figure",Te],["footer",Te],["form",Te],["header",Te],["hr",Te],["main",Te],["nav",Te],["ol",Te],["pre",Te],["section",Te],["table",Te],["ul",Te],["rt",jT],["rp",jT],["tbody",FT],["tfoot",FT]]),bO=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),HT=new Set(["math","svg"]),UT=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),_O=/\s|\//,Gu=class{constructor(e,n={}){var r,s,i,a,o,c;this.options=n,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=(r=n.lowerCaseTags)!==null&&r!==void 0?r:this.htmlMode,this.lowerCaseAttributeNames=(s=n.lowerCaseAttributeNames)!==null&&s!==void 0?s:this.htmlMode,this.recognizeSelfClosing=(i=n.recognizeSelfClosing)!==null&&i!==void 0?i:!this.htmlMode,this.tokenizer=new((a=n.Tokenizer)!==null&&a!==void 0?a:Ca)(this.options,this),this.foreignContext=[!this.htmlMode],(c=(o=this.cbs).onparserinit)===null||c===void 0||c.call(o,this)}ontext(e,n){var r,s;let i=this.getSlice(e,n);this.endIndex=n-1,(s=(r=this.cbs).ontext)===null||s===void 0||s.call(r,i),this.startIndex=n}ontextentity(e,n){var r,s;this.endIndex=n-1,(s=(r=this.cbs).ontext)===null||s===void 0||s.call(r,Ps(e)),this.startIndex=n}isVoidElement(e){return this.htmlMode&&bO.has(e)}onopentagname(e,n){this.endIndex=n;let r=this.getSlice(e,n);this.lowerCaseTagNames&&(r=r.toLowerCase()),this.emitOpenTag(r)}emitOpenTag(e){var n,r,s,i;this.openTagStart=this.startIndex,this.tagname=e;let a=this.htmlMode&&gO.get(e);if(a)for(;this.stack.length>0&&a.has(this.stack[0]);){let o=this.stack.shift();(r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,o,!0)}this.isVoidElement(e)||(this.stack.unshift(e),this.htmlMode&&(HT.has(e)?this.foreignContext.unshift(!0):UT.has(e)&&this.foreignContext.unshift(!1))),(i=(s=this.cbs).onopentagname)===null||i===void 0||i.call(s,e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){var n,r;this.startIndex=this.openTagStart,this.attribs&&((r=(n=this.cbs).onopentag)===null||r===void 0||r.call(n,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,n){var r,s,i,a,o,c,l,h;this.endIndex=n;let d=this.getSlice(e,n);if(this.lowerCaseTagNames&&(d=d.toLowerCase()),this.htmlMode&&(HT.has(d)||UT.has(d))&&this.foreignContext.shift(),this.isVoidElement(d))this.htmlMode&&d==="br"&&((a=(i=this.cbs).onopentagname)===null||a===void 0||a.call(i,"br"),(c=(o=this.cbs).onopentag)===null||c===void 0||c.call(o,"br",{},!0),(h=(l=this.cbs).onclosetag)===null||h===void 0||h.call(l,"br",!1));else{let f=this.stack.indexOf(d);if(f!==-1)for(let p=0;p<=f;p++){let E=this.stack.shift();(s=(r=this.cbs).onclosetag)===null||s===void 0||s.call(r,E,p!==f)}else this.htmlMode&&d==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=n+1}onselfclosingtag(e){this.endIndex=e,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}closeCurrentTag(e){var n,r;let s=this.tagname;this.endOpenTag(e),this.stack[0]===s&&((r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,s,!e),this.stack.shift())}onattribname(e,n){this.startIndex=e;let r=this.getSlice(e,n);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r}onattribdata(e,n){this.attribvalue+=this.getSlice(e,n)}onattribentity(e){this.attribvalue+=Ps(e)}onattribend(e,n){var r,s;this.endIndex=n,(s=(r=this.cbs).onattribute)===null||s===void 0||s.call(r,this.attribname,this.attribvalue,e===Ft.Double?'"':e===Ft.Single?"'":e===Ft.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(e){let n=e.search(_O),r=n<0?e:e.substr(0,n);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r}ondeclaration(e,n){this.endIndex=n;let r=this.getSlice(e,n);if(this.cbs.onprocessinginstruction){let s=this.getInstructionName(r);this.cbs.onprocessinginstruction(`!${s}`,`!${r}`)}this.startIndex=n+1}onprocessinginstruction(e,n){this.endIndex=n;let r=this.getSlice(e,n);if(this.cbs.onprocessinginstruction){let s=this.getInstructionName(r);this.cbs.onprocessinginstruction(`?${s}`,`?${r}`)}this.startIndex=n+1}oncomment(e,n,r){var s,i,a,o;this.endIndex=n,(i=(s=this.cbs).oncomment)===null||i===void 0||i.call(s,this.getSlice(e,n-r)),(o=(a=this.cbs).oncommentend)===null||o===void 0||o.call(a),this.startIndex=n+1}oncdata(e,n,r){var s,i,a,o,c,l,h,d,f,p;this.endIndex=n;let E=this.getSlice(e,n-r);!this.htmlMode||this.options.recognizeCDATA?((i=(s=this.cbs).oncdatastart)===null||i===void 0||i.call(s),(o=(a=this.cbs).ontext)===null||o===void 0||o.call(a,E),(l=(c=this.cbs).oncdataend)===null||l===void 0||l.call(c)):((d=(h=this.cbs).oncomment)===null||d===void 0||d.call(h,`[CDATA[${E}]]`),(p=(f=this.cbs).oncommentend)===null||p===void 0||p.call(f)),this.startIndex=n+1}onend(){var e,n;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let r=0;r<this.stack.length;r++)this.cbs.onclosetag(this.stack[r],!0)}(n=(e=this.cbs).onend)===null||n===void 0||n.call(e)}reset(){var e,n,r,s;(n=(e=this.cbs).onreset)===null||n===void 0||n.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(s=(r=this.cbs).onparserinit)===null||s===void 0||s.call(r,this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(!this.htmlMode),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,n){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let r=this.buffers[0].slice(e-this.bufferOffset,n-this.bufferOffset);for(;n-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,n-this.bufferOffset);return r}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){var n,r;if(this.ended){(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)}end(e){var n,r;if(this.ended){(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(e){this.write(e)}done(e){this.end(e)}}});function zT(t,e){let n=new $i(void 0,e);return new Gu(n,e).end(t),n.root}var VT=x(()=>{Yd();Yd();Qe();Qe();Kd();Ns();Gt();Gt();Gt()});var EO,TO,qT=x(()=>{BE();xd();MT();Rf();VT();EO=SE((t,e,n,r)=>e._useHtmlParser2?zT(t,e):LT(t,e,n,r)),TO=FE(EO,(t,e)=>e._useHtmlParser2?uu(t,e):PT(t))});var KT={};It(KT,{contains:()=>na,load:()=>TO,merge:()=>Uf});var YT=x(()=>{js();qT()});var GT=kn((Mj,WT)=>{"use strict";var xO=(YT(),KT);function yO(t){let e=xO.load(t),n=[];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:r,attr:s})=>{e(r).each((i,a)=>{e(a).attr(s)&&n.push(e(a).attr(s))})}),n}WT.exports=yO});var XT=kn((Fj,QT)=>{"use strict";var{marked:$T}=K1(),AO=GT();QT.exports=function(e,n=!1){$T.setOptions({mangle:!1});let r=$T(e);return AO(r)}});var rx={};It(rx,{default:()=>CO,getServer:()=>nx});function nx(t){let e=ol(t),n=ex.createServer(async function(r,s){s.setHeader("Access-Control-Allow-Origin","*"),s.setHeader("Access-Control-Allow-Methods","GET, HEAD, POST, OPTIONS, PUT, PATCH, DELETE"),s.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"),s.setHeader("Access-Control-Allow-Credentials","true");try{if(r.url){let i=tx.parse(r.url,!0);if(i.pathname==="/search"){let a=i.query.q,o=await e.search(a);s.statusCode=200,s.setHeader("Content-Type","application/json"),s.end(JSON.stringify(o))}else s.end()}}catch(i){s.statusCode=500,s.end(i)}});return{listen(r){console.debug(`Omnisearch - Starting HTTP server on port ${r}`),n.listen({port:parseInt(r),host:t.settings.DANGER_httpHost??"localhost"},()=>{console.log(`Omnisearch - Started HTTP server on port ${r}`),t.settings.DANGER_httpHost&&t.settings.DANGER_httpHost!=="localhost"?new Sa.Notice(`Omnisearch - Started non-localhost HTTP server at ${t.settings.DANGER_httpHost}:${r}`,12e4):t.settings.httpApiNotice&&new Sa.Notice(`Omnisearch - Started HTTP server on port ${r}`)}),n.on("error",s=>{console.error(s),new Sa.Notice(`Omnisearch - Cannot start HTTP server on ${r}. See console for more details.`)})},close(){n.close(),console.log("Omnisearch - Terminated HTTP server"),t.settings.httpApiEnabled&&t.settings.httpApiNotice&&new Sa.Notice("Omnisearch - Terminated HTTP server")}}}var ex,tx,Sa,CO,sx=x(()=>{ex=_e(require("http")),tx=_e(require("url")),Sa=_e(require("obsidian"));ul();CO=nx});It(exports,{default:()=>Jd});var Dn=_e(require("obsidian"));yi();Qc();Zt();ul();var ve=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,He=Object.keys,tt=Array.isArray;typeof Promise!="undefined"&&!ve.Promise&&(ve.Promise=Promise);function lt(t,e){return typeof e!="object"||He(e).forEach(function(n){t[n]=e[n]}),t}var Ci=Object.getPrototypeOf,GS={}.hasOwnProperty;function At(t,e){return GS.call(t,e)}function ps(t,e){typeof e=="function"&&(e=e(Ci(t))),(typeof Reflect=="undefined"?He:Reflect.ownKeys)(e).forEach(n=>{pn(t,n,e[n])})}var Ib=Object.defineProperty;function pn(t,e,n,r){Ib(t,e,lt(n&&At(n,"get")&&typeof n.get=="function"?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function ms(t){return{from:function(e){return t.prototype=Object.create(e.prototype),pn(t.prototype,"constructor",t),{extend:ps.bind(null,t.prototype)}}}}var $S=Object.getOwnPropertyDescriptor;function cl(t,e){let n=$S(t,e),r;return n||(r=Ci(t))&&cl(r,e)}var QS=[].slice;function Ao(t,e,n){return QS.call(t,e,n)}function wb(t,e){return e(t)}function Si(t){if(!t)throw new Error("Assertion Failed")}function Nb(t){ve.setImmediate?setImmediate(t):setTimeout(t,0)}function vb(t,e){return t.reduce((n,r,s)=>{var i=e(r,s);return i&&(n[i[0]]=i[1]),n},{})}function XS(t,e,n){try{t.apply(null,n)}catch(r){e&&e(r)}}function mn(t,e){if(typeof e=="string"&&At(t,e))return t[e];if(!e)return t;if(typeof e!="string"){for(var n=[],r=0,s=e.length;r<s;++r){var i=mn(t,e[r]);n.push(i)}return n}var a=e.indexOf(".");if(a!==-1){var o=t[e.substr(0,a)];return o==null?void 0:mn(o,e.substr(a+1))}}function Yt(t,e,n){if(!(!t||e===void 0)&&!("isFrozen"in Object&&Object.isFrozen(t)))if(typeof e!="string"&&"length"in e){Si(typeof n!="string"&&"length"in n);for(var r=0,s=e.length;r<s;++r)Yt(t,e[r],n[r])}else{var i=e.indexOf(".");if(i!==-1){var a=e.substr(0,i),o=e.substr(i+1);if(o==="")n===void 0?tt(t)&&!isNaN(parseInt(a))?t.splice(a,1):delete t[a]:t[a]=n;else{var c=t[a];(!c||!At(t,a))&&(c=t[a]={}),Yt(c,o,n)}}else n===void 0?tt(t)&&!isNaN(parseInt(e))?t.splice(e,1):delete t[e]:t[e]=n}}function ZS(t,e){typeof e=="string"?Yt(t,e,void 0):"length"in e&&[].map.call(e,function(n){Yt(t,n,void 0)})}function Db(t){var e={};for(var n in t)At(t,n)&&(e[n]=t[n]);return e}var JS=[].concat;function Ob(t){return JS.apply([],t)}var kb="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(Ob([8,16,32,64].map(t=>["Int","Uint","Float"].map(e=>e+t+"Array")))).filter(t=>ve[t]),e3=kb.map(t=>ve[t]);vb(kb,t=>[t,!0]);var $n=null;function Ii(t){$n=typeof WeakMap!="undefined"&&new WeakMap;let e=ll(t);return $n=null,e}function ll(t){if(!t||typeof t!="object")return t;let e=$n&&$n.get(t);if(e)return e;if(tt(t)){e=[],$n&&$n.set(t,e);for(var n=0,r=t.length;n<r;++n)e.push(ll(t[n]))}else if(e3.indexOf(t.constructor)>=0)e=t;else{let i=Ci(t);e=i===Object.prototype?{}:Object.create(i),$n&&$n.set(t,e);for(var s in t)At(t,s)&&(e[s]=ll(t[s]))}return e}var{toString:t3}={};function fl(t){return t3.call(t).slice(8,-1)}var dl=typeof Symbol!="undefined"?Symbol.iterator:"@@iterator",n3=typeof dl=="symbol"?function(t){var e;return t!=null&&(e=t[dl])&&e.apply(t)}:function(){return null},gs={};function gn(t){var e,n,r,s;if(arguments.length===1){if(tt(t))return t.slice();if(this===gs&&typeof t=="string")return[t];if(s=n3(t)){for(n=[];r=s.next(),!r.done;)n.push(r.value);return n}if(t==null)return[t];if(e=t.length,typeof e=="number"){for(n=new Array(e);e--;)n[e]=t[e];return n}return[t]}for(e=arguments.length,n=new Array(e);e--;)n[e]=arguments[e];return n}var hl=typeof Symbol!="undefined"?t=>t[Symbol.toStringTag]==="AsyncFunction":()=>!1,tn=typeof location!="undefined"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function Rb(t,e){tn=t,Lb=e}var Lb=()=>!0,r3=!new Error("").stack;function Tr(){if(r3)try{throw Tr.arguments,new Error}catch(t){return t}return new Error}function pl(t,e){var n=t.stack;return n?(e=e||0,n.indexOf(t.name)===0&&(e+=(t.name+t.message).split(`
`).length),n.split(`
`).slice(e).filter(Lb).map(r=>`
`+r).join("")):""}var s3=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"],Pb=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],ml=s3.concat(Pb),i3={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 bs(t,e){this._e=Tr(),this.name=t,this.message=e}ms(bs).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+pl(this._e,2))}},toString:function(){return this.name+": "+this.message}});function Mb(t,e){return t+". Errors: "+Object.keys(e).map(n=>e[n].toString()).filter((n,r,s)=>s.indexOf(n)===r).join(`
`)}function Co(t,e,n,r){this._e=Tr(),this.failures=e,this.failedKeys=r,this.successCount=n,this.message=Mb(t,e)}ms(Co).from(bs);function wi(t,e){this._e=Tr(),this.name="BulkError",this.failures=Object.keys(e).map(n=>e[n]),this.failuresByPos=e,this.message=Mb(t,e)}ms(wi).from(bs);var gl=ml.reduce((t,e)=>(t[e]=e+"Error",t),{}),a3=bs,se=ml.reduce((t,e)=>{var n=e+"Error";function r(s,i){this._e=Tr(),this.name=n,s?typeof s=="string"?(this.message=`${s}${i?`
 `+i:""}`,this.inner=i||null):typeof s=="object"&&(this.message=`${s.name} ${s.message}`,this.inner=s):(this.message=i3[e]||n,this.inner=null)}return ms(r).from(a3),t[e]=r,t},{});se.Syntax=SyntaxError;se.Type=TypeError;se.Range=RangeError;var Fb=Pb.reduce((t,e)=>(t[e+"Error"]=se[e],t),{});function o3(t,e){if(!t||t instanceof bs||t instanceof TypeError||t instanceof SyntaxError||!t.name||!Fb[t.name])return t;var n=new Fb[t.name](e||t.message,t);return"stack"in t&&pn(n,"stack",{get:function(){return this.inner.stack}}),n}var So=ml.reduce((t,e)=>(["Syntax","Type","Range"].indexOf(e)===-1&&(t[e+"Error"]=se[e]),t),{});So.ModifyError=Co;So.DexieError=bs;So.BulkError=wi;function ye(){}function Ni(t){return t}function u3(t,e){return t==null||t===Ni?e:function(n){return e(t(n))}}function xr(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function c3(t,e){return t===ye?e:function(){var n=t.apply(this,arguments);n!==void 0&&(arguments[0]=n);var r=this.onsuccess,s=this.onerror;this.onsuccess=null,this.onerror=null;var i=e.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?xr(r,this.onsuccess):r),s&&(this.onerror=this.onerror?xr(s,this.onerror):s),i!==void 0?i:n}}function l3(t,e){return t===ye?e:function(){t.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,e.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?xr(n,this.onsuccess):n),r&&(this.onerror=this.onerror?xr(r,this.onerror):r)}}function f3(t,e){return t===ye?e:function(n){var r=t.apply(this,arguments);lt(n,r);var s=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var a=e.apply(this,arguments);return s&&(this.onsuccess=this.onsuccess?xr(s,this.onsuccess):s),i&&(this.onerror=this.onerror?xr(i,this.onerror):i),r===void 0?a===void 0?void 0:a:lt(r,a)}}function d3(t,e){return t===ye?e:function(){return e.apply(this,arguments)===!1?!1:t.apply(this,arguments)}}function bl(t,e){return t===ye?e:function(){var n=t.apply(this,arguments);if(n&&typeof n.then=="function"){for(var r=this,s=arguments.length,i=new Array(s);s--;)i[s]=arguments[s];return n.then(function(){return e.apply(r,i)})}return e.apply(this,arguments)}}var vi={},h3=100,p3=20,Bb=100,[_l,Io,El]=typeof Promise=="undefined"?[]:(()=>{let t=Promise.resolve();if(typeof crypto=="undefined"||!crypto.subtle)return[t,Ci(t),t];let e=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[e,Ci(e),t]})(),jb=Io&&Io.then,wo=_l&&_l.constructor,Tl=!!El,xl=!1,m3=El?()=>{El.then(Oo)}:ve.setImmediate?setImmediate.bind(null,Oo):ve.MutationObserver?()=>{var t=document.createElement("div");new MutationObserver(()=>{Oo(),t=null}).observe(t,{attributes:!0}),t.setAttribute("i","1")}:()=>{setTimeout(Oo,0)},Di=function(t,e){Oi.push([t,e]),No&&(m3(),No=!1)},yl=!0,No=!0,yr=[],vo=[],Al=null,Cl=Ni,_s={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:$b,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(t=>{try{$b(t[0],t[1])}catch{}})}},J=_s,Oi=[],Ar=0,Do=[];function q(t){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=ye,this._lib=!1;var e=this._PSD=J;if(tn&&(this._stackHolder=Tr(),this._prev=null,this._numPrev=0),typeof t!="function"){if(t!==vi)throw new TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],this._state===!1&&Il(this,this._value);return}this._state=null,this._value=null,++e.ref,Ub(this,t)}var Sl={get:function(){var t=J,e=Lo;function n(r,s){var i=!t.global&&(t!==J||e!==Lo);let a=i&&!bn();var o=new q((c,l)=>{wl(this,new Hb(Mo(r,t,i,a),Mo(s,t,i,a),c,l,t))});return tn&&qb(o,this),o}return n.prototype=vi,n},set:function(t){pn(this,"then",t&&t.prototype===vi?Sl:{get:function(){return t},set:Sl.set})}};ps(q.prototype,{then:Sl,_then:function(t,e){wl(this,new Hb(null,null,t,e,J))},catch:function(t){if(arguments.length===1)return this.then(null,t);var e=arguments[0],n=arguments[1];return typeof e=="function"?this.then(null,r=>r instanceof e?n(r):ko(r)):this.then(null,r=>r&&r.name===e?n(r):ko(r))},finally:function(t){return this.then(e=>(t(),e),e=>(t(),ko(e)))},stack:{get:function(){if(this._stack)return this._stack;try{xl=!0;var t=Vb(this,[],p3),e=t.join(`
From previous: `);return this._state!==null&&(this._stack=e),e}finally{xl=!1}}},timeout:function(t,e){return t<1/0?new q((n,r)=>{var s=setTimeout(()=>r(new se.Timeout(e)),t);this.then(n,r).finally(clearTimeout.bind(null,s))}):this}});typeof Symbol!="undefined"&&Symbol.toStringTag&&pn(q.prototype,Symbol.toStringTag,"Dexie.Promise");_s.env=Kb();function Hb(t,e,n,r,s){this.onFulfilled=typeof t=="function"?t:null,this.onRejected=typeof e=="function"?e:null,this.resolve=n,this.reject=r,this.psd=s}ps(q,{all:function(){var t=gn.apply(null,arguments).map(Po);return new q(function(e,n){t.length===0&&e([]);var r=t.length;t.forEach((s,i)=>q.resolve(s).then(a=>{t[i]=a,--r||e(t)},n))})},resolve:t=>{if(t instanceof q)return t;if(t&&typeof t.then=="function")return new q((n,r)=>{t.then(n,r)});var e=new q(vi,!0,t);return qb(e,Al),e},reject:ko,race:function(){var t=gn.apply(null,arguments).map(Po);return new q((e,n)=>{t.map(r=>q.resolve(r).then(e,n))})},PSD:{get:()=>J,set:t=>J=t},totalEchoes:{get:()=>Lo},newPSD:Qn,usePSD:Ts,scheduler:{get:()=>Di,set:t=>{Di=t}},rejectionMapper:{get:()=>Cl,set:t=>{Cl=t}},follow:(t,e)=>new q((n,r)=>Qn((s,i)=>{var a=J;a.unhandleds=[],a.onunhandled=i,a.finalize=xr(function(){b3(()=>{this.unhandleds.length===0?s():i(this.unhandleds[0])})},a.finalize),t()},e,n,r))});wo&&(wo.allSettled&&pn(q,"allSettled",function(){let t=gn.apply(null,arguments).map(Po);return new q(e=>{t.length===0&&e([]);let n=t.length,r=new Array(n);t.forEach((s,i)=>q.resolve(s).then(a=>r[i]={status:"fulfilled",value:a},a=>r[i]={status:"rejected",reason:a}).then(()=>--n||e(r)))})}),wo.any&&typeof AggregateError!="undefined"&&pn(q,"any",function(){let t=gn.apply(null,arguments).map(Po);return new q((e,n)=>{t.length===0&&n(new AggregateError([]));let r=t.length,s=new Array(r);t.forEach((i,a)=>q.resolve(i).then(o=>e(o),o=>{s[a]=o,--r||n(new AggregateError(s))}))})}));function Ub(t,e){try{e(n=>{if(t._state===null){if(n===t)throw new TypeError("A promise cannot be resolved with itself.");var r=t._lib&&ki();n&&typeof n.then=="function"?Ub(t,(s,i)=>{n instanceof q?n._then(s,i):n.then(s,i)}):(t._state=!0,t._value=n,zb(t)),r&&Ri()}},Il.bind(null,t))}catch(n){Il(t,n)}}function Il(t,e){if(vo.push(e),t._state===null){var n=t._lib&&ki();e=Cl(e),t._state=!1,t._value=e,tn&&e!==null&&typeof e=="object"&&!e._promise&&XS(()=>{var r=cl(e,"stack");e._promise=t,pn(e,"stack",{get:()=>xl?r&&(r.get?r.get.apply(e):r.value):t.stack})}),_3(t),zb(t),n&&Ri()}}function zb(t){var e=t._listeners;t._listeners=[];for(var n=0,r=e.length;n<r;++n)wl(t,e[n]);var s=t._PSD;--s.ref||s.finalize(),Ar===0&&(++Ar,Di(()=>{--Ar==0&&Nl()},[]))}function wl(t,e){if(t._state===null){t._listeners.push(e);return}var n=t._state?e.onFulfilled:e.onRejected;if(n===null)return(t._state?e.resolve:e.reject)(t._value);++e.psd.ref,++Ar,Di(g3,[n,t,e])}function g3(t,e,n){try{Al=e;var r,s=e._value;e._state?r=t(s):(vo.length&&(vo=[]),r=t(s),vo.indexOf(s)===-1&&E3(e)),n.resolve(r)}catch(i){n.reject(i)}finally{Al=null,--Ar==0&&Nl(),--n.psd.ref||n.psd.finalize()}}function Vb(t,e,n){if(e.length===n)return e;var r="";if(t._state===!1){var s=t._value,i,a;s!=null?(i=s.name||"Error",a=s.message||s,r=pl(s,0)):(i=s,a=""),e.push(i+(a?": "+a:"")+r)}return tn&&(r=pl(t._stackHolder,2),r&&e.indexOf(r)===-1&&e.push(r),t._prev&&Vb(t._prev,e,n)),e}function qb(t,e){var n=e?e._numPrev+1:0;n<h3&&(t._prev=e,t._numPrev=n)}function Oo(){ki()&&Ri()}function ki(){var t=yl;return yl=!1,No=!1,t}function Ri(){var t,e,n;do for(;Oi.length>0;)for(t=Oi,Oi=[],n=t.length,e=0;e<n;++e){var r=t[e];r[0].apply(null,r[1])}while(Oi.length>0);yl=!0,No=!0}function Nl(){var t=yr;yr=[],t.forEach(r=>{r._PSD.onunhandled.call(null,r._value,r)});for(var e=Do.slice(0),n=e.length;n;)e[--n]()}function b3(t){function e(){t(),Do.splice(Do.indexOf(e),1)}Do.push(e),++Ar,Di(()=>{--Ar==0&&Nl()},[])}function _3(t){yr.some(e=>e._value===t._value)||yr.push(t)}function E3(t){for(var e=yr.length;e;)if(yr[--e]._value===t._value){yr.splice(e,1);return}}function ko(t){return new q(vi,!1,t)}function Oe(t,e){var n=J;return function(){var r=ki(),s=J;try{return Xn(n,!0),t.apply(this,arguments)}catch(i){e&&e(i)}finally{Xn(s,!1),r&&Ri()}}}var nt={awaits:0,echoes:0,id:0},T3=0,Ro=[],vl=0,Lo=0,x3=0;function Qn(t,e,n,r){var s=J,i=Object.create(s);i.parent=s,i.ref=0,i.global=!1,i.id=++x3;var a=_s.env;i.env=Tl?{Promise:q,PromiseProp:{value:q,configurable:!0,writable:!0},all:q.all,race:q.race,allSettled:q.allSettled,any:q.any,resolve:q.resolve,reject:q.reject,nthen:Wb(a.nthen,i),gthen:Wb(a.gthen,i)}:{},e&&lt(i,e),++s.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var o=Ts(i,t,n,r);return i.ref===0&&i.finalize(),o}function Es(){return nt.id||(nt.id=++T3),++nt.awaits,nt.echoes+=Bb,nt.id}function bn(){return nt.awaits?(--nt.awaits==0&&(nt.id=0),nt.echoes=nt.awaits*Bb,!0):!1}(""+jb).indexOf("[native code]")===-1&&(Es=bn=ye);function Po(t){return nt.echoes&&t&&t.constructor===wo?(Es(),t.then(e=>(bn(),e),e=>(bn(),ze(e)))):t}function y3(t){++Lo,(!nt.echoes||--nt.echoes==0)&&(nt.echoes=nt.id=0),Ro.push(J),Xn(t,!0)}function A3(){var t=Ro[Ro.length-1];Ro.pop(),Xn(t,!1)}function Xn(t,e){var n=J;if((e?nt.echoes&&(!vl++||t!==J):vl&&(!--vl||t!==J))&&Yb(e?y3.bind(null,t):A3),t!==J&&(J=t,n===_s&&(_s.env=Kb()),Tl)){var r=_s.env.Promise,s=t.env;Io.then=s.nthen,r.prototype.then=s.gthen,(n.global||t.global)&&(Object.defineProperty(ve,"Promise",s.PromiseProp),r.all=s.all,r.race=s.race,r.resolve=s.resolve,r.reject=s.reject,s.allSettled&&(r.allSettled=s.allSettled),s.any&&(r.any=s.any))}}function Kb(){var t=ve.Promise;return Tl?{Promise:t,PromiseProp:Object.getOwnPropertyDescriptor(ve,"Promise"),all:t.all,race:t.race,allSettled:t.allSettled,any:t.any,resolve:t.resolve,reject:t.reject,nthen:Io.then,gthen:t.prototype.then}:{}}function Ts(t,e,n,r,s){var i=J;try{return Xn(t,!0),e(n,r,s)}finally{Xn(i,!1)}}function Yb(t){jb.call(_l,t)}function Mo(t,e,n,r){return typeof t!="function"?t:function(){var s=J;n&&Es(),Xn(e,!0);try{return t.apply(this,arguments)}finally{Xn(s,!1),r&&Yb(bn)}}}function Wb(t,e){return function(n,r){return t.call(this,Mo(n,e),Mo(r,e))}}var Gb="unhandledrejection";function $b(t,e){var n;try{n=e.onuncatched(t)}catch{}if(n!==!1)try{var r,s={promise:e,reason:t};if(ve.document&&document.createEvent?(r=document.createEvent("Event"),r.initEvent(Gb,!0,!0),lt(r,s)):ve.CustomEvent&&(r=new CustomEvent(Gb,{detail:s}),lt(r,s)),r&&ve.dispatchEvent&&(dispatchEvent(r),!ve.PromiseRejectionEvent&&ve.onunhandledrejection))try{ve.onunhandledrejection(r)}catch{}tn&&r&&!r.defaultPrevented&&console.warn(`Unhandled rejection: ${t.stack||t}`)}catch{}}var ze=q.reject;function Dl(t,e,n,r){if(!t.idbdb||!t._state.openComplete&&!J.letThrough&&!t._vip){if(t._state.openComplete)return ze(new se.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._options.autoOpen)return ze(new se.DatabaseClosed);t.open().catch(ye)}return t._state.dbReadyPromise.then(()=>Dl(t,e,n,r))}else{var s=t._createTransaction(e,n,t._dbSchema);try{s.create(),t._state.PR1398_maxLoop=3}catch(i){return i.name===gl.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>Dl(t,e,n,r))):ze(i)}return s._promise(e,(i,a)=>Qn(()=>(J.trans=s,r(i,a,s)))).then(i=>s._completion.then(()=>i))}}var Qb="3.2.7",Cr=String.fromCharCode(65535),Ol=-1/0,_n="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",Xb="String expected.",Li=[],Fo=typeof navigator!="undefined"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),C3=Fo,S3=Fo,Zb=t=>!/(dexie\.js|dexie\.min\.js)/.test(t),Bo="__dbnames",kl="readonly",Rl="readwrite";function Sr(t,e){return t?e?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:t:e}var Jb={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function jo(t){return typeof t=="string"&&!/\./.test(t)?e=>(e[t]===void 0&&t in e&&(e=Ii(e),delete e[t]),e):e=>e}var e1=class{_trans(e,n,r){let s=this._tx||J.trans,i=this.name;function a(c,l,h){if(!h.schema[i])throw new se.NotFound("Table "+i+" not part of transaction");return n(h.idbtrans,h)}let o=ki();try{return s&&s.db===this.db?s===J.trans?s._promise(e,a,r):Qn(()=>s._promise(e,a,r),{trans:s,transless:J.transless||J}):Dl(this.db,e,[this.name],a)}finally{o&&Ri()}}get(e,n){return e&&e.constructor===Object?this.where(e).first(n):this._trans("readonly",r=>this.core.get({trans:r,key:e}).then(s=>this.hook.reading.fire(s))).then(n)}where(e){if(typeof e=="string")return new this.db.WhereClause(this,e);if(tt(e))return new this.db.WhereClause(this,`[${e.join("+")}]`);let n=He(e);if(n.length===1)return this.where(n[0]).equals(e[n[0]]);let r=this.schema.indexes.concat(this.schema.primKey).filter(l=>{if(l.compound&&n.every(h=>l.keyPath.indexOf(h)>=0)){for(let h=0;h<n.length;++h)if(n.indexOf(l.keyPath[h])===-1)return!1;return!0}return!1}).sort((l,h)=>l.keyPath.length-h.keyPath.length)[0];if(r&&this.db._maxKey!==Cr){let l=r.keyPath.slice(0,n.length);return this.where(l).equals(l.map(h=>e[h]))}!r&&tn&&console.warn(`The query ${JSON.stringify(e)} on ${this.name} would benefit of a compound index [${n.join("+")}]`);let{idxByName:s}=this.schema,i=this.db._deps.indexedDB;function a(l,h){try{return i.cmp(l,h)===0}catch{return!1}}let[o,c]=n.reduce(([l,h],d)=>{let f=s[d],p=e[d];return[l||f,l||!f?Sr(h,f&&f.multi?E=>{let T=mn(E,d);return tt(T)&&T.some(w=>a(p,w))}:E=>a(p,mn(E,d))):h]},[null,null]);return o?this.where(o.name).equals(e[o.keyPath]).filter(c):r?this.filter(c):this.where(n).equals("")}filter(e){return this.toCollection().and(e)}count(e){return this.toCollection().count(e)}offset(e){return this.toCollection().offset(e)}limit(e){return this.toCollection().limit(e)}each(e){return this.toCollection().each(e)}toArray(e){return this.toCollection().toArray(e)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(e){return new this.db.Collection(new this.db.WhereClause(this,tt(e)?`[${e.join("+")}]`:e))}reverse(){return this.toCollection().reverse()}mapToClass(e){this.schema.mappedClass=e;let n=r=>{if(!r)return r;let s=Object.create(e.prototype);for(var i in r)if(At(r,i))try{s[i]=r[i]}catch{}return s};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=n,this.hook("reading",n),e}defineClass(){function e(n){lt(this,n)}return this.mapToClass(e)}add(e,n){let{auto:r,keyPath:s}=this.schema.primKey,i=e;return s&&r&&(i=jo(s)(e)),this._trans("readwrite",a=>this.core.mutate({trans:a,type:"add",keys:n!=null?[n]:null,values:[i]})).then(a=>a.numFailures?q.reject(a.failures[0]):a.lastResult).then(a=>{if(s)try{Yt(e,s,a)}catch{}return a})}update(e,n){if(typeof e=="object"&&!tt(e)){let r=mn(e,this.schema.primKey.keyPath);if(r===void 0)return ze(new se.InvalidArgument("Given object does not contain its primary key"));try{typeof n!="function"?He(n).forEach(s=>{Yt(e,s,n[s])}):n(e,{value:e,primKey:r})}catch{}return this.where(":id").equals(r).modify(n)}else return this.where(":id").equals(e).modify(n)}put(e,n){let{auto:r,keyPath:s}=this.schema.primKey,i=e;return s&&r&&(i=jo(s)(e)),this._trans("readwrite",a=>this.core.mutate({trans:a,type:"put",values:[i],keys:n!=null?[n]:null})).then(a=>a.numFailures?q.reject(a.failures[0]):a.lastResult).then(a=>{if(s)try{Yt(e,s,a)}catch{}return a})}delete(e){return this._trans("readwrite",n=>this.core.mutate({trans:n,type:"delete",keys:[e]})).then(n=>n.numFailures?q.reject(n.failures[0]):void 0)}clear(){return this._trans("readwrite",e=>this.core.mutate({trans:e,type:"deleteRange",range:Jb})).then(e=>e.numFailures?q.reject(e.failures[0]):void 0)}bulkGet(e){return this._trans("readonly",n=>this.core.getMany({keys:e,trans:n}).then(r=>r.map(s=>this.hook.reading.fire(s))))}bulkAdd(e,n,r){let s=Array.isArray(n)?n:void 0;r=r||(s?void 0:n);let i=r?r.allKeys:void 0;return this._trans("readwrite",a=>{let{auto:o,keyPath:c}=this.schema.primKey;if(c&&s)throw new se.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(s&&s.length!==e.length)throw new se.InvalidArgument("Arguments objects and keys must have the same length");let l=e.length,h=c&&o?e.map(jo(c)):e;return this.core.mutate({trans:a,type:"add",keys:s,values:h,wantResults:i}).then(({numFailures:d,results:f,lastResult:p,failures:E})=>{let T=i?f:p;if(d===0)return T;throw new wi(`${this.name}.bulkAdd(): ${d} of ${l} operations failed`,E)})})}bulkPut(e,n,r){let s=Array.isArray(n)?n:void 0;r=r||(s?void 0:n);let i=r?r.allKeys:void 0;return this._trans("readwrite",a=>{let{auto:o,keyPath:c}=this.schema.primKey;if(c&&s)throw new se.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(s&&s.length!==e.length)throw new se.InvalidArgument("Arguments objects and keys must have the same length");let l=e.length,h=c&&o?e.map(jo(c)):e;return this.core.mutate({trans:a,type:"put",keys:s,values:h,wantResults:i}).then(({numFailures:d,results:f,lastResult:p,failures:E})=>{let T=i?f:p;if(d===0)return T;throw new wi(`${this.name}.bulkPut(): ${d} of ${l} operations failed`,E)})})}bulkDelete(e){let n=e.length;return this._trans("readwrite",r=>this.core.mutate({trans:r,type:"delete",keys:e})).then(({numFailures:r,lastResult:s,failures:i})=>{if(r===0)return s;throw new wi(`${this.name}.bulkDelete(): ${r} of ${n} operations failed`,i)})}};function Pi(t){var e={},n=function(o,c){if(c){for(var l=arguments.length,h=new Array(l-1);--l;)h[l-1]=arguments[l];return e[o].subscribe.apply(null,h),t}else if(typeof o=="string")return e[o]};n.addEventType=i;for(var r=1,s=arguments.length;r<s;++r)i(arguments[r]);return n;function i(o,c,l){if(typeof o=="object")return a(o);c||(c=d3),l||(l=ye);var h={subscribers:[],fire:l,subscribe:function(d){h.subscribers.indexOf(d)===-1&&(h.subscribers.push(d),h.fire=c(h.fire,d))},unsubscribe:function(d){h.subscribers=h.subscribers.filter(function(f){return f!==d}),h.fire=h.subscribers.reduce(c,l)}};return e[o]=n[o]=h,h}function a(o){He(o).forEach(function(c){var l=o[c];if(tt(l))i(c,o[c][0],o[c][1]);else if(l==="asap")var h=i(c,Ni,function(){for(var f=arguments.length,p=new Array(f);f--;)p[f]=arguments[f];h.subscribers.forEach(function(E){Nb(function(){E.apply(null,p)})})});else throw new se.InvalidArgument("Invalid event config")})}}function Mi(t,e){return ms(e).from({prototype:t}),e}function I3(t){return Mi(e1.prototype,function(n,r,s){this.db=t,this._tx=s,this.name=n,this.schema=r,this.hook=t._allTables[n]?t._allTables[n].hook:Pi(null,{creating:[c3,ye],reading:[u3,Ni],updating:[f3,ye],deleting:[l3,ye]})})}function xs(t,e){return!(t.filter||t.algorithm||t.or)&&(e?t.justLimit:!t.replayFilter)}function Ll(t,e){t.filter=Sr(t.filter,e)}function Pl(t,e,n){var r=t.replayFilter;t.replayFilter=r?()=>Sr(r(),e()):e,t.justLimit=n&&!r}function w3(t,e){t.isMatch=Sr(t.isMatch,e)}function Ho(t,e){if(t.isPrimKey)return e.primaryKey;let n=e.getIndexByKeyPath(t.index);if(!n)throw new se.Schema("KeyPath "+t.index+" on object store "+e.name+" is not indexed");return n}function t1(t,e,n){let r=Ho(t,e.schema);return e.openCursor({trans:n,values:!t.keysOnly,reverse:t.dir==="prev",unique:!!t.unique,query:{index:r,range:t.range}})}function Uo(t,e,n,r){let s=t.replayFilter?Sr(t.filter,t.replayFilter()):t.filter;if(t.or){let i={},a=(o,c,l)=>{if(!s||s(c,l,f=>c.stop(f),f=>c.fail(f))){var h=c.primaryKey,d=""+h;d==="[object ArrayBuffer]"&&(d=""+new Uint8Array(h)),At(i,d)||(i[d]=!0,e(o,c,l))}};return Promise.all([t.or._iterate(a,n),n1(t1(t,r,n),t.algorithm,a,!t.keysOnly&&t.valueMapper)])}else return n1(t1(t,r,n),Sr(t.algorithm,s),e,!t.keysOnly&&t.valueMapper)}function n1(t,e,n,r){var s=r?(a,o,c)=>n(r(a),o,c):n,i=Oe(s);return t.then(a=>{if(a)return a.start(()=>{var o=()=>a.continue();(!e||e(a,c=>o=c,c=>{a.stop(c),o=ye},c=>{a.fail(c),o=ye}))&&i(a.value,a,c=>o=c),o()})})}function ft(t,e){try{let n=r1(t),r=r1(e);if(n!==r)return n==="Array"?1:r==="Array"?-1:n==="binary"?1:r==="binary"?-1:n==="string"?1:r==="string"?-1:n==="Date"?1:r!=="Date"?NaN:-1;switch(n){case"number":case"Date":case"string":return t>e?1:t<e?-1:0;case"binary":return v3(s1(t),s1(e));case"Array":return N3(t,e)}}catch{}return NaN}function N3(t,e){let n=t.length,r=e.length,s=n<r?n:r;for(let i=0;i<s;++i){let a=ft(t[i],e[i]);if(a!==0)return a}return n===r?0:n<r?-1:1}function v3(t,e){let n=t.length,r=e.length,s=n<r?n:r;for(let i=0;i<s;++i)if(t[i]!==e[i])return t[i]<e[i]?-1:1;return n===r?0:n<r?-1:1}function r1(t){let e=typeof t;if(e!=="object")return e;if(ArrayBuffer.isView(t))return"binary";let n=fl(t);return n==="ArrayBuffer"?"binary":n}function s1(t){return t instanceof Uint8Array?t:ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(t)}var i1=class{_read(e,n){var r=this._ctx;return r.error?r.table._trans(null,ze.bind(null,r.error)):r.table._trans("readonly",e).then(n)}_write(e){var n=this._ctx;return n.error?n.table._trans(null,ze.bind(null,n.error)):n.table._trans("readwrite",e,"locked")}_addAlgorithm(e){var n=this._ctx;n.algorithm=Sr(n.algorithm,e)}_iterate(e,n){return Uo(this._ctx,e,n,this._ctx.table.core)}clone(e){var n=Object.create(this.constructor.prototype),r=Object.create(this._ctx);return e&&lt(r,e),n._ctx=r,n}raw(){return this._ctx.valueMapper=null,this}each(e){var n=this._ctx;return this._read(r=>Uo(n,e,r,n.table.core))}count(e){return this._read(n=>{let r=this._ctx,s=r.table.core;if(xs(r,!0))return s.count({trans:n,query:{index:Ho(r,s.schema),range:r.range}}).then(a=>Math.min(a,r.limit));var i=0;return Uo(r,()=>(++i,!1),n,s).then(()=>i)}).then(e)}sortBy(e,n){let r=e.split(".").reverse(),s=r[0],i=r.length-1;function a(l,h){return h?a(l[r[h]],h-1):l[s]}var o=this._ctx.dir==="next"?1:-1;function c(l,h){var d=a(l,i),f=a(h,i);return d<f?-o:d>f?o:0}return this.toArray(function(l){return l.sort(c)}).then(n)}toArray(e){return this._read(n=>{var r=this._ctx;if(r.dir==="next"&&xs(r,!0)&&r.limit>0){let{valueMapper:s}=r,i=Ho(r,r.table.core.schema);return r.table.core.query({trans:n,limit:r.limit,values:!0,query:{index:i,range:r.range}}).then(({result:a})=>s?a.map(s):a)}else{let s=[];return Uo(r,i=>s.push(i),n,r.table.core).then(()=>s)}},e)}offset(e){var n=this._ctx;return e<=0?this:(n.offset+=e,xs(n)?Pl(n,()=>{var r=e;return(s,i)=>r===0?!0:r===1?(--r,!1):(i(()=>{s.advance(r),r=0}),!1)}):Pl(n,()=>{var r=e;return()=>--r<0}),this)}limit(e){return this._ctx.limit=Math.min(this._ctx.limit,e),Pl(this._ctx,()=>{var n=e;return function(r,s,i){return--n<=0&&s(i),n>=0}},!0),this}until(e,n){return Ll(this._ctx,function(r,s,i){return e(r.value)?(s(i),n):!0}),this}first(e){return this.limit(1).toArray(function(n){return n[0]}).then(e)}last(e){return this.reverse().first(e)}filter(e){return Ll(this._ctx,function(n){return e(n.value)}),w3(this._ctx,e),this}and(e){return this.filter(e)}or(e){return new this.db.WhereClause(this._ctx.table,e,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(e){var n=this._ctx;return n.keysOnly=!n.isMatch,this.each(function(r,s){e(s.key,s)})}eachUniqueKey(e){return this._ctx.unique="unique",this.eachKey(e)}eachPrimaryKey(e){var n=this._ctx;return n.keysOnly=!n.isMatch,this.each(function(r,s){e(s.primaryKey,s)})}keys(e){var n=this._ctx;n.keysOnly=!n.isMatch;var r=[];return this.each(function(s,i){r.push(i.key)}).then(function(){return r}).then(e)}primaryKeys(e){var n=this._ctx;if(n.dir==="next"&&xs(n,!0)&&n.limit>0)return this._read(s=>{var i=Ho(n,n.table.core.schema);return n.table.core.query({trans:s,values:!1,limit:n.limit,query:{index:i,range:n.range}})}).then(({result:s})=>s).then(e);n.keysOnly=!n.isMatch;var r=[];return this.each(function(s,i){r.push(i.primaryKey)}).then(function(){return r}).then(e)}uniqueKeys(e){return this._ctx.unique="unique",this.keys(e)}firstKey(e){return this.limit(1).keys(function(n){return n[0]}).then(e)}lastKey(e){return this.reverse().firstKey(e)}distinct(){var e=this._ctx,n=e.index&&e.table.schema.idxByName[e.index];if(!n||!n.multi)return this;var r={};return Ll(this._ctx,function(s){var i=s.primaryKey.toString(),a=At(r,i);return r[i]=!0,!a}),this}modify(e){var n=this._ctx;return this._write(r=>{var s;if(typeof e=="function")s=e;else{var i=He(e),a=i.length;s=function(T){for(var w=!1,m=0;m<a;++m){var I=i[m],A=e[I];mn(T,I)!==A&&(Yt(T,I,A),w=!0)}return w}}let o=n.table.core,{outbound:c,extractKey:l}=o.schema.primaryKey,h=this.db._options.modifyChunkSize||200,d=[],f=0,p=[],E=(T,w)=>{let{failures:m,numFailures:I}=w;f+=T-I;for(let A of He(m))d.push(m[A])};return this.clone().primaryKeys().then(T=>{let w=m=>{let I=Math.min(h,T.length-m);return o.getMany({trans:r,keys:T.slice(m,m+I),cache:"immutable"}).then(A=>{let b=[],S=[],C=c?[]:null,N=[];for(let L=0;L<I;++L){let z=A[L],W={value:Ii(z),primKey:T[m+L]};s.call(W,W.value,W)!==!1&&(W.value==null?N.push(T[m+L]):!c&&ft(l(z),l(W.value))!==0?(N.push(T[m+L]),b.push(W.value)):(S.push(W.value),c&&C.push(T[m+L])))}let O=xs(n)&&n.limit===1/0&&(typeof e!="function"||e===Ml)&&{index:n.index,range:n.range};return Promise.resolve(b.length>0&&o.mutate({trans:r,type:"add",values:b}).then(L=>{for(let z in L.failures)N.splice(parseInt(z),1);E(b.length,L)})).then(()=>(S.length>0||O&&typeof e=="object")&&o.mutate({trans:r,type:"put",keys:C,values:S,criteria:O,changeSpec:typeof e!="function"&&e}).then(L=>E(S.length,L))).then(()=>(N.length>0||O&&e===Ml)&&o.mutate({trans:r,type:"delete",keys:N,criteria:O}).then(L=>E(N.length,L))).then(()=>T.length>m+I&&w(m+h))})};return w(0).then(()=>{if(d.length>0)throw new Co("Error modifying one or more objects",d,f,p);return T.length})})})}delete(){var e=this._ctx,n=e.range;return xs(e)&&(e.isPrimKey&&!S3||n.type===3)?this._write(r=>{let{primaryKey:s}=e.table.core.schema,i=n;return e.table.core.count({trans:r,query:{index:s,range:i}}).then(a=>e.table.core.mutate({trans:r,type:"deleteRange",range:i}).then(({failures:o,lastResult:c,results:l,numFailures:h})=>{if(h)throw new Co("Could not delete some values",Object.keys(o).map(d=>o[d]),a-h);return a-h}))}):this.modify(Ml)}},Ml=(t,e)=>e.value=null;function D3(t){return Mi(i1.prototype,function(n,r){this.db=t;let s=Jb,i=null;if(r)try{s=r()}catch(l){i=l}let a=n._ctx,o=a.table,c=o.hook.reading.fire;this._ctx={table:o,index:a.index,isPrimKey:!a.index||o.schema.primKey.keyPath&&a.index===o.schema.primKey.name,range:s,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:i,or:a.or,valueMapper:c!==Ni?c:null}})}function O3(t,e){return t<e?-1:t===e?0:1}function k3(t,e){return t>e?-1:t===e?0:1}function Ct(t,e,n){var r=t instanceof Fl?new t.Collection(t):t;return r._ctx.error=n?new n(e):new TypeError(e),r}function ys(t){return new t.Collection(t,()=>a1("")).limit(0)}function R3(t){return t==="next"?e=>e.toUpperCase():e=>e.toLowerCase()}function L3(t){return t==="next"?e=>e.toLowerCase():e=>e.toUpperCase()}function P3(t,e,n,r,s,i){for(var a=Math.min(t.length,r.length),o=-1,c=0;c<a;++c){var l=e[c];if(l!==r[c])return s(t[c],n[c])<0?t.substr(0,c)+n[c]+n.substr(c+1):s(t[c],r[c])<0?t.substr(0,c)+r[c]+n.substr(c+1):o>=0?t.substr(0,o)+e[o]+n.substr(o+1):null;s(t[c],l)<0&&(o=c)}return a<r.length&&i==="next"?t+n.substr(t.length):a<t.length&&i==="prev"?t.substr(0,n.length):o<0?null:t.substr(0,o)+r[o]+n.substr(o+1)}function zo(t,e,n,r){var s,i,a,o,c,l,h,d=n.length;if(!n.every(T=>typeof T=="string"))return Ct(t,Xb);function f(T){s=R3(T),i=L3(T),a=T==="next"?O3:k3;var w=n.map(function(m){return{lower:i(m),upper:s(m)}}).sort(function(m,I){return a(m.lower,I.lower)});o=w.map(function(m){return m.upper}),c=w.map(function(m){return m.lower}),l=T,h=T==="next"?"":r}f("next");var p=new t.Collection(t,()=>Zn(o[0],c[d-1]+r));p._ondirectionchange=function(T){f(T)};var E=0;return p._addAlgorithm(function(T,w,m){var I=T.key;if(typeof I!="string")return!1;var A=i(I);if(e(A,c,E))return!0;for(var b=null,S=E;S<d;++S){var C=P3(I,A,o[S],c[S],a,l);C===null&&b===null?E=S+1:(b===null||a(b,C)>0)&&(b=C)}return w(b!==null?function(){T.continue(b+h)}:m),!1}),p}function Zn(t,e,n,r){return{type:2,lower:t,upper:e,lowerOpen:n,upperOpen:r}}function a1(t){return{type:1,lower:t,upper:t}}var Fl=class{get Collection(){return this._ctx.table.db.Collection}between(e,n,r,s){r=r!==!1,s=s===!0;try{return this._cmp(e,n)>0||this._cmp(e,n)===0&&(r||s)&&!(r&&s)?ys(this):new this.Collection(this,()=>Zn(e,n,!r,!s))}catch{return Ct(this,_n)}}equals(e){return e==null?Ct(this,_n):new this.Collection(this,()=>a1(e))}above(e){return e==null?Ct(this,_n):new this.Collection(this,()=>Zn(e,void 0,!0))}aboveOrEqual(e){return e==null?Ct(this,_n):new this.Collection(this,()=>Zn(e,void 0,!1))}below(e){return e==null?Ct(this,_n):new this.Collection(this,()=>Zn(void 0,e,!1,!0))}belowOrEqual(e){return e==null?Ct(this,_n):new this.Collection(this,()=>Zn(void 0,e))}startsWith(e){return typeof e!="string"?Ct(this,Xb):this.between(e,e+Cr,!0,!0)}startsWithIgnoreCase(e){return e===""?this.startsWith(e):zo(this,(n,r)=>n.indexOf(r[0])===0,[e],Cr)}equalsIgnoreCase(e){return zo(this,(n,r)=>n===r[0],[e],"")}anyOfIgnoreCase(){var e=gn.apply(gs,arguments);return e.length===0?ys(this):zo(this,(n,r)=>r.indexOf(n)!==-1,e,"")}startsWithAnyOfIgnoreCase(){var e=gn.apply(gs,arguments);return e.length===0?ys(this):zo(this,(n,r)=>r.some(s=>n.indexOf(s)===0),e,Cr)}anyOf(){let e=gn.apply(gs,arguments),n=this._cmp;try{e.sort(n)}catch{return Ct(this,_n)}if(e.length===0)return ys(this);let r=new this.Collection(this,()=>Zn(e[0],e[e.length-1]));r._ondirectionchange=i=>{n=i==="next"?this._ascending:this._descending,e.sort(n)};let s=0;return r._addAlgorithm((i,a,o)=>{let c=i.key;for(;n(c,e[s])>0;)if(++s,s===e.length)return a(o),!1;return n(c,e[s])===0?!0:(a(()=>{i.continue(e[s])}),!1)}),r}notEqual(e){return this.inAnyRange([[Ol,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){let e=gn.apply(gs,arguments);if(e.length===0)return new this.Collection(this);try{e.sort(this._ascending)}catch{return Ct(this,_n)}let n=e.reduce((r,s)=>r?r.concat([[r[r.length-1][1],s]]):[[Ol,s]],null);return n.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(n,{includeLowers:!1,includeUppers:!1})}inAnyRange(e,n){let r=this._cmp,s=this._ascending,i=this._descending,a=this._min,o=this._max;if(e.length===0)return ys(this);if(!e.every(b=>b[0]!==void 0&&b[1]!==void 0&&s(b[0],b[1])<=0))return Ct(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",se.InvalidArgument);let c=!n||n.includeLowers!==!1,l=n&&n.includeUppers===!0;function h(b,S){let C=0,N=b.length;for(;C<N;++C){let O=b[C];if(r(S[0],O[1])<0&&r(S[1],O[0])>0){O[0]=a(O[0],S[0]),O[1]=o(O[1],S[1]);break}}return C===N&&b.push(S),b}let d=s;function f(b,S){return d(b[0],S[0])}let p;try{p=e.reduce(h,[]),p.sort(f)}catch{return Ct(this,_n)}let E=0,T=l?b=>s(b,p[E][1])>0:b=>s(b,p[E][1])>=0,w=c?b=>i(b,p[E][0])>0:b=>i(b,p[E][0])>=0;function m(b){return!T(b)&&!w(b)}let I=T,A=new this.Collection(this,()=>Zn(p[0][0],p[p.length-1][1],!c,!l));return A._ondirectionchange=b=>{b==="next"?(I=T,d=s):(I=w,d=i),p.sort(f)},A._addAlgorithm((b,S,C)=>{for(var N=b.key;I(N);)if(++E,E===p.length)return S(C),!1;return m(N)?!0:(this._cmp(N,p[E][1])===0||this._cmp(N,p[E][0])===0||S(()=>{d===s?b.continue(p[E][0]):b.continue(p[E][1])}),!1)}),A}startsWithAnyOf(){let e=gn.apply(gs,arguments);return e.every(n=>typeof n=="string")?e.length===0?ys(this):this.inAnyRange(e.map(n=>[n,n+Cr])):Ct(this,"startsWithAnyOf() only works with strings")}};function M3(t){return Mi(Fl.prototype,function(n,r,s){this.db=t,this._ctx={table:n,index:r===":id"?null:r,or:s};let i=t._deps.indexedDB;if(!i)throw new se.MissingAPI;this._cmp=this._ascending=i.cmp.bind(i),this._descending=(a,o)=>i.cmp(o,a),this._max=(a,o)=>i.cmp(a,o)>0?a:o,this._min=(a,o)=>i.cmp(a,o)<0?a:o,this._IDBKeyRange=t._deps.IDBKeyRange})}function nn(t){return Oe(function(e){return Fi(e),t(e.target.error),!1})}function Fi(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault()}var Bi="storagemutated",Jn="x-storagemutated-1",er=Pi(null,Bi),o1=class{_lock(){return Si(!J.global),++this._reculock,this._reculock===1&&!J.global&&(J.lockOwnerFor=this),this}_unlock(){if(Si(!J.global),--this._reculock==0)for(J.global||(J.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{Ts(e[1],e[0])}catch{}}return this}_locked(){return this._reculock&&J.lockOwnerFor!==this}create(e){if(!this.mode)return this;let n=this.db.idbdb,r=this.db._state.dbOpenError;if(Si(!this.idbtrans),!e&&!n)switch(r&&r.name){case"DatabaseClosedError":throw new se.DatabaseClosed(r);case"MissingAPIError":throw new se.MissingAPI(r.message,r);default:throw new se.OpenFailed(r)}if(!this.active)throw new se.TransactionInactive;return Si(this._completion._state===null),e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):n.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})),e.onerror=Oe(s=>{Fi(s),this._reject(e.error)}),e.onabort=Oe(s=>{Fi(s),this.active&&this._reject(new se.Abort(e.error)),this.active=!1,this.on("abort").fire(s)}),e.oncomplete=Oe(()=>{this.active=!1,this._resolve(),"mutatedParts"in e&&er.storagemutated.fire(e.mutatedParts)}),this}_promise(e,n,r){if(e==="readwrite"&&this.mode!=="readwrite")return ze(new se.ReadOnly("Transaction is readonly"));if(!this.active)return ze(new se.TransactionInactive);if(this._locked())return new q((i,a)=>{this._blockedFuncs.push([()=>{this._promise(e,n,r).then(i,a)},J])});if(r)return Qn(()=>{var i=new q((a,o)=>{this._lock();let c=n(a,o,this);c&&c.then&&c.then(a,o)});return i.finally(()=>this._unlock()),i._lib=!0,i});var s=new q((i,a)=>{var o=n(i,a,this);o&&o.then&&o.then(i,a)});return s._lib=!0,s}_root(){return this.parent?this.parent._root():this}waitFor(e){var n=this._root();let r=q.resolve(e);if(n._waitingFor)n._waitingFor=n._waitingFor.then(()=>r);else{n._waitingFor=r,n._waitingQueue=[];var s=n.idbtrans.objectStore(n.storeNames[0]);(function a(){for(++n._spinCount;n._waitingQueue.length;)n._waitingQueue.shift()();n._waitingFor&&(s.get(-1/0).onsuccess=a)})()}var i=n._waitingFor;return new q((a,o)=>{r.then(c=>n._waitingQueue.push(Oe(a.bind(null,c))),c=>n._waitingQueue.push(Oe(o.bind(null,c)))).finally(()=>{n._waitingFor===i&&(n._waitingFor=null)})})}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new se.Abort))}table(e){let n=this._memoizedTables||(this._memoizedTables={});if(At(n,e))return n[e];let r=this.schema[e];if(!r)throw new se.NotFound("Table "+e+" not part of transaction");let s=new this.db.Table(e,r,this);return s.core=this.db.core.table(e),n[e]=s,s}};function F3(t){return Mi(o1.prototype,function(n,r,s,i,a){this.db=t,this.mode=n,this.storeNames=r,this.schema=s,this.chromeTransactionDurability=i,this.idbtrans=null,this.on=Pi(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 q((o,c)=>{this._resolve=o,this._reject=c}),this._completion.then(()=>{this.active=!1,this.on.complete.fire()},o=>{var c=this.active;return this.active=!1,this.on.error.fire(o),this.parent?this.parent._reject(o):c&&this.idbtrans&&this.idbtrans.abort(),ze(o)})})}function Bl(t,e,n,r,s,i,a){return{name:t,keyPath:e,unique:n,multi:r,auto:s,compound:i,src:(n&&!a?"&":"")+(r?"*":"")+(s?"++":"")+u1(e)}}function u1(t){return typeof t=="string"?t:t?"["+[].join.call(t,"+")+"]":""}function c1(t,e,n){return{name:t,primKey:e,indexes:n,mappedClass:null,idxByName:vb(n,r=>[r.name,r])}}function B3(t){return t.length===1?t[0]:t}var ji=t=>{try{return t.only([[]]),ji=()=>[[]],[[]]}catch{return ji=()=>Cr,Cr}};function jl(t){return t==null?()=>{}:typeof t=="string"?j3(t):e=>mn(e,t)}function j3(t){return t.split(".").length===1?n=>n[t]:n=>mn(n,t)}function l1(t){return[].slice.call(t)}var H3=0;function Hi(t){return t==null?":id":typeof t=="string"?t:`[${t.join("+")}]`}function U3(t,e,n){function r(h,d){let f=l1(h.objectStoreNames);return{schema:{name:h.name,tables:f.map(p=>d.objectStore(p)).map(p=>{let{keyPath:E,autoIncrement:T}=p,w=tt(E),m=E==null,I={},A={name:p.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:m,compound:w,keyPath:E,autoIncrement:T,unique:!0,extractKey:jl(E)},indexes:l1(p.indexNames).map(b=>p.index(b)).map(b=>{let{name:S,unique:C,multiEntry:N,keyPath:O}=b,L=tt(O),z={name:S,compound:L,keyPath:O,unique:C,multiEntry:N,extractKey:jl(O)};return I[Hi(O)]=z,z}),getIndexByKeyPath:b=>I[Hi(b)]};return I[":id"]=A.primaryKey,E!=null&&(I[Hi(E)]=A.primaryKey),A})},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 s(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:p,upperOpen:E}=h;return d===void 0?f===void 0?null:e.upperBound(f,!!E):f===void 0?e.lowerBound(d,!!p):e.bound(d,f,!!p,!!E)}function i(h){let d=h.name;function f({trans:T,type:w,keys:m,values:I,range:A}){return new Promise((b,S)=>{b=Oe(b);let C=T.objectStore(d),N=C.keyPath==null,O=w==="put"||w==="add";if(!O&&w!=="delete"&&w!=="deleteRange")throw new Error("Invalid operation type: "+w);let{length:L}=m||I||{length:1};if(m&&I&&m.length!==I.length)throw new Error("Given keys array must have same length as given values array.");if(L===0)return b({numFailures:0,failures:{},results:[],lastResult:void 0});let z,W=[],te=[],X=0,ke=ge=>{++X,Fi(ge)};if(w==="deleteRange"){if(A.type===4)return b({numFailures:X,failures:te,results:[],lastResult:void 0});A.type===3?W.push(z=C.clear()):W.push(z=C.delete(s(A)))}else{let[ge,Re]=O?N?[I,m]:[I,null]:[m,null];if(O)for(let k=0;k<L;++k)W.push(z=Re&&Re[k]!==void 0?C[w](ge[k],Re[k]):C[w](ge[k])),z.onerror=ke;else for(let k=0;k<L;++k)W.push(z=C[w](ge[k])),z.onerror=ke}let Le=ge=>{let Re=ge.target.result;W.forEach((k,P)=>k.error!=null&&(te[P]=k.error)),b({numFailures:X,failures:te,results:w==="delete"?m:W.map(k=>k.result),lastResult:Re})};z.onerror=ge=>{ke(ge),Le(ge)},z.onsuccess=Le})}function p({trans:T,values:w,query:m,reverse:I,unique:A}){return new Promise((b,S)=>{b=Oe(b);let{index:C,range:N}=m,O=T.objectStore(d),L=C.isPrimaryKey?O:O.index(C.name),z=I?A?"prevunique":"prev":A?"nextunique":"next",W=w||!("openKeyCursor"in L)?L.openCursor(s(N),z):L.openKeyCursor(s(N),z);W.onerror=nn(S),W.onsuccess=Oe(te=>{let X=W.result;if(!X){b(null);return}X.___id=++H3,X.done=!1;let ke=X.continue.bind(X),Le=X.continuePrimaryKey;Le&&(Le=Le.bind(X));let ge=X.advance.bind(X),Re=()=>{throw new Error("Cursor not started")},k=()=>{throw new Error("Cursor not stopped")};X.trans=T,X.stop=X.continue=X.continuePrimaryKey=X.advance=Re,X.fail=Oe(S),X.next=function(){let P=1;return this.start(()=>P--?this.continue():this.stop()).then(()=>this)},X.start=P=>{let H=new Promise((oe,Ce)=>{oe=Oe(oe),W.onerror=nn(Ce),X.fail=Ce,X.stop=Ue=>{X.stop=X.continue=X.continuePrimaryKey=X.advance=k,oe(Ue)}}),Z=()=>{if(W.result)try{P()}catch(oe){X.fail(oe)}else X.done=!0,X.start=()=>{throw new Error("Cursor behind last entry")},X.stop()};return W.onsuccess=Oe(oe=>{W.onsuccess=Z,Z()}),X.continue=ke,X.continuePrimaryKey=Le,X.advance=ge,Z(),H},b(X)},S)})}function E(T){return w=>new Promise((m,I)=>{m=Oe(m);let{trans:A,values:b,limit:S,query:C}=w,N=S===1/0?void 0:S,{index:O,range:L}=C,z=A.objectStore(d),W=O.isPrimaryKey?z:z.index(O.name),te=s(L);if(S===0)return m({result:[]});if(T){let X=b?W.getAll(te,N):W.getAllKeys(te,N);X.onsuccess=ke=>m({result:ke.target.result}),X.onerror=nn(I)}else{let X=0,ke=b||!("openKeyCursor"in W)?W.openCursor(te):W.openKeyCursor(te),Le=[];ke.onsuccess=ge=>{let Re=ke.result;if(!Re)return m({result:Le});if(Le.push(b?Re.value:Re.primaryKey),++X===S)return m({result:Le});Re.continue()},ke.onerror=nn(I)}})}return{name:d,schema:h,mutate:f,getMany({trans:T,keys:w}){return new Promise((m,I)=>{m=Oe(m);let A=T.objectStore(d),b=w.length,S=new Array(b),C=0,N=0,O,L=W=>{let te=W.target;(S[te._pos]=te.result)!=null,++N===C&&m(S)},z=nn(I);for(let W=0;W<b;++W)w[W]!=null&&(O=A.get(w[W]),O._pos=W,O.onsuccess=L,O.onerror=z,++C);C===0&&m(S)})},get({trans:T,key:w}){return new Promise((m,I)=>{m=Oe(m);let b=T.objectStore(d).get(w);b.onsuccess=S=>m(S.target.result),b.onerror=nn(I)})},query:E(o),openCursor:p,count({query:T,trans:w}){let{index:m,range:I}=T;return new Promise((A,b)=>{let S=w.objectStore(d),C=m.isPrimaryKey?S:S.index(m.name),N=s(I),O=N?C.count(N):C.count();O.onsuccess=Oe(L=>A(L.target.result)),O.onerror=nn(b)})}}}let{schema:a,hasGetAll:o}=r(t,n),c=a.tables.map(h=>i(h)),l={};return c.forEach(h=>l[h.name]=h),{stack:"dbcore",transaction:t.transaction.bind(t),table(h){if(!l[h])throw new Error(`Table '${h}' not found`);return l[h]},MIN_KEY:-1/0,MAX_KEY:ji(e),schema:a}}function z3(t,e){return e.reduce((n,{create:r})=>B(B({},n),r(n)),t)}function V3(t,e,{IDBKeyRange:n,indexedDB:r},s){return{dbcore:z3(U3(e,n,s),t.dbcore)}}function Hl({_novip:t},e){let n=e.db,r=V3(t._middlewares,n,t._deps,e);t.core=r.dbcore,t.tables.forEach(s=>{let i=s.name;t.core.schema.tables.some(a=>a.name===i)&&(s.core=t.core.table(i),t[i]instanceof t.Table&&(t[i].core=s.core))})}function Vo({_novip:t},e,n,r){n.forEach(s=>{let i=r[s];e.forEach(a=>{let o=cl(a,s);(!o||"value"in o&&o.value===void 0)&&(a===t.Transaction.prototype||a instanceof t.Transaction?pn(a,s,{get(){return this.table(s)},set(c){Ib(this,s,{value:c,writable:!0,configurable:!0,enumerable:!0})}}):a[s]=new t.Table(s,i))})})}function Ul({_novip:t},e){e.forEach(n=>{for(let r in n)n[r]instanceof t.Table&&delete n[r]})}function q3(t,e){return t._cfg.version-e._cfg.version}function K3(t,e,n,r){let s=t._dbSchema,i=t._createTransaction("readwrite",t._storeNames,s);i.create(n),i._completion.catch(r);let a=i._reject.bind(i),o=J.transless||J;Qn(()=>{J.trans=i,J.transless=o,e===0?(He(s).forEach(c=>{zl(n,c,s[c].primKey,s[c].indexes)}),Hl(t,n),q.follow(()=>t.on.populate.fire(i)).catch(a)):Y3(t,e,i,n).catch(a)})}function Y3({_novip:t},e,n,r){let s=[],i=t._versions,a=t._dbSchema=ql(t,t.idbdb,r),o=!1;i.filter(h=>h._cfg.version>=e).forEach(h=>{s.push(()=>{let d=a,f=h._cfg.dbschema;Kl(t,d,r),Kl(t,f,r),a=t._dbSchema=f;let p=f1(d,f);p.add.forEach(T=>{zl(r,T[0],T[1].primKey,T[1].indexes)}),p.change.forEach(T=>{if(T.recreate)throw new se.Upgrade("Not yet support for changing primary key");{let w=r.objectStore(T.name);T.add.forEach(m=>Vl(w,m)),T.change.forEach(m=>{w.deleteIndex(m.name),Vl(w,m)}),T.del.forEach(m=>w.deleteIndex(m))}});let E=h._cfg.contentUpgrade;if(E&&h._cfg.version>e){Hl(t,r),n._memoizedTables={},o=!0;let T=Db(f);p.del.forEach(A=>{T[A]=d[A]}),Ul(t,[t.Transaction.prototype]),Vo(t,[t.Transaction.prototype],He(T),T),n.schema=T;let w=hl(E);w&&Es();let m,I=q.follow(()=>{if(m=E(n),m&&w){var A=bn.bind(null,null);m.then(A,A)}});return m&&typeof m.then=="function"?q.resolve(m):I.then(()=>m)}}),s.push(d=>{if(!o||!C3){let f=h._cfg.dbschema;G3(f,d)}Ul(t,[t.Transaction.prototype]),Vo(t,[t.Transaction.prototype],t._storeNames,t._dbSchema),n.schema=t._dbSchema})});function l(){return s.length?q.resolve(s.shift()(n.idbtrans)).then(l):q.resolve()}return l().then(()=>{W3(a,r)})}function f1(t,e){let n={del:[],add:[],change:[]},r;for(r in t)e[r]||n.del.push(r);for(r in e){let s=t[r],i=e[r];if(!s)n.add.push([r,i]);else{let a={name:r,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(s.primKey.keyPath||"")!=""+(i.primKey.keyPath||"")||s.primKey.auto!==i.primKey.auto&&!Fo)a.recreate=!0,n.change.push(a);else{let o=s.idxByName,c=i.idxByName,l;for(l in o)c[l]||a.del.push(l);for(l in c){let h=o[l],d=c[l];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)&&n.change.push(a)}}}return n}function zl(t,e,n,r){let s=t.db.createObjectStore(e,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach(i=>Vl(s,i)),s}function W3(t,e){He(t).forEach(n=>{e.db.objectStoreNames.contains(n)||zl(e,n,t[n].primKey,t[n].indexes)})}function G3(t,e){[].slice.call(e.db.objectStoreNames).forEach(n=>t[n]==null&&e.db.deleteObjectStore(n))}function Vl(t,e){t.createIndex(e.name,e.keyPath,{unique:e.unique,multiEntry:e.multi})}function ql(t,e,n){let r={};return Ao(e.objectStoreNames,0).forEach(i=>{let a=n.objectStore(i),o=a.keyPath,c=Bl(u1(o),o||"",!1,!1,!!a.autoIncrement,o&&typeof o!="string",!0),l=[];for(let d=0;d<a.indexNames.length;++d){let f=a.index(a.indexNames[d]);o=f.keyPath;var h=Bl(f.name,o,!!f.unique,!!f.multiEntry,!1,o&&typeof o!="string",!1);l.push(h)}r[i]=c1(i,c,l)}),r}function $3({_novip:t},e,n){t.verno=e.version/10;let r=t._dbSchema=ql(t,e,n);t._storeNames=Ao(e.objectStoreNames,0),Vo(t,[t._allTables],He(r),r)}function Q3(t,e){let n=ql(t,t.idbdb,e),r=f1(n,t._dbSchema);return!(r.add.length||r.change.some(s=>s.add.length||s.change.length))}function Kl({_novip:t},e,n){let r=n.db.objectStoreNames;for(let s=0;s<r.length;++s){let i=r[s],a=n.objectStore(i);t._hasGetAll="getAll"in a;for(let o=0;o<a.indexNames.length;++o){let c=a.indexNames[o],l=a.index(c).keyPath,h=typeof l=="string"?l:"["+Ao(l).join("+")+"]";if(e[i]){let d=e[i].idxByName[h];d&&(d.name=c,delete e[i].idxByName[h],e[i].idxByName[c]=d)}}}typeof navigator!="undefined"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&ve.WorkerGlobalScope&&ve instanceof ve.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(t._hasGetAll=!1)}function X3(t){return t.split(",").map((e,n)=>{e=e.trim();let r=e.replace(/([&*]|\+\+)/g,""),s=/^\[/.test(r)?r.match(/^\[(.*)\]$/)[1].split("+"):r;return Bl(r,s||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),tt(s),n===0)})}var d1=class{_parseStoresSpec(e,n){He(e).forEach(r=>{if(e[r]!==null){var s=X3(e[r]),i=s.shift();if(i.multi)throw new se.Schema("Primary key cannot be multi-valued");s.forEach(a=>{if(a.auto)throw new se.Schema("Only primary key can be marked as autoIncrement (++)");if(!a.keyPath)throw new se.Schema("Index must have a name and cannot be an empty string")}),n[r]=c1(r,i,s)}})}stores(e){let n=this.db;this._cfg.storesSource=this._cfg.storesSource?lt(this._cfg.storesSource,e):e;let r=n._versions,s={},i={};return r.forEach(a=>{lt(s,a._cfg.storesSource),i=a._cfg.dbschema={},a._parseStoresSpec(s,i)}),n._dbSchema=i,Ul(n,[n._allTables,n,n.Transaction.prototype]),Vo(n,[n._allTables,n,n.Transaction.prototype,this._cfg.tables],He(i),i),n._storeNames=He(i),this}upgrade(e){return this._cfg.contentUpgrade=bl(this._cfg.contentUpgrade||ye,e),this}};function Z3(t){return Mi(d1.prototype,function(n){this.db=t,this._cfg={version:n,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}function Yl(t,e){let n=t._dbNamesDB;return n||(n=t._dbNamesDB=new Tn(Bo,{addons:[],indexedDB:t,IDBKeyRange:e}),n.version(1).stores({dbnames:"name"})),n.table("dbnames")}function Wl(t){return t&&typeof t.databases=="function"}function J3({indexedDB:t,IDBKeyRange:e}){return Wl(t)?Promise.resolve(t.databases()).then(n=>n.map(r=>r.name).filter(r=>r!==Bo)):Yl(t,e).toCollection().primaryKeys()}function eI({indexedDB:t,IDBKeyRange:e},n){!Wl(t)&&n!==Bo&&Yl(t,e).put({name:n}).catch(ye)}function tI({indexedDB:t,IDBKeyRange:e},n){!Wl(t)&&n!==Bo&&Yl(t,e).delete(n).catch(ye)}function Gl(t){return Qn(function(){return J.letThrough=!0,t()})}function nI(){var t=!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent);if(!t||!indexedDB.databases)return Promise.resolve();var e;return new Promise(function(n){var r=function(){return indexedDB.databases().finally(n)};e=setInterval(r,100),r()}).finally(function(){return clearInterval(e)})}function rI(t){let e=t._state,{indexedDB:n}=t._deps;if(e.isBeingOpened||t.idbdb)return e.dbReadyPromise.then(()=>e.dbOpenError?ze(e.dbOpenError):t);tn&&(e.openCanceller._stackHolder=Tr()),e.isBeingOpened=!0,e.dbOpenError=null,e.openComplete=!1;let r=e.openCanceller;function s(){if(e.openCanceller!==r)throw new se.DatabaseClosed("db.open() was cancelled")}let i=e.dbReadyResolve,a=null,o=!1,c=()=>new q((l,h)=>{if(s(),!n)throw new se.MissingAPI;let d=t.name,f=e.autoSchema?n.open(d):n.open(d,Math.round(t.verno*10));if(!f)throw new se.MissingAPI;f.onerror=nn(h),f.onblocked=Oe(t._fireOnBlocked),f.onupgradeneeded=Oe(p=>{if(a=f.transaction,e.autoSchema&&!t._options.allowEmptyDB){f.onerror=Fi,a.abort(),f.result.close();let T=n.deleteDatabase(d);T.onsuccess=T.onerror=Oe(()=>{h(new se.NoSuchDatabase(`Database ${d} doesnt exist`))})}else{a.onerror=nn(h);var E=p.oldVersion>Math.pow(2,62)?0:p.oldVersion;o=E<1,t._novip.idbdb=f.result,K3(t,E/10,a,h)}},h),f.onsuccess=Oe(()=>{a=null;let p=t._novip.idbdb=f.result,E=Ao(p.objectStoreNames);if(E.length>0)try{let T=p.transaction(B3(E),"readonly");e.autoSchema?$3(t,p,T):(Kl(t,t._dbSchema,T),Q3(t,T)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),Hl(t,T)}catch{}Li.push(t),p.onversionchange=Oe(T=>{e.vcFired=!0,t.on("versionchange").fire(T)}),p.onclose=Oe(T=>{t.on("close").fire(T)}),o&&eI(t._deps,d),l()},h)}).catch(l=>l&&l.name==="UnknownError"&&e.PR1398_maxLoop>0?(e.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),c()):q.reject(l));return q.race([r,(typeof navigator=="undefined"?q.resolve():nI()).then(c)]).then(()=>(s(),e.onReadyBeingFired=[],q.resolve(Gl(()=>t.on.ready.fire(t.vip))).then(function l(){if(e.onReadyBeingFired.length>0){let h=e.onReadyBeingFired.reduce(bl,ye);return e.onReadyBeingFired=[],q.resolve(Gl(()=>h(t.vip))).then(l)}}))).finally(()=>{e.onReadyBeingFired=null,e.isBeingOpened=!1}).then(()=>t).catch(l=>{e.dbOpenError=l;try{a&&a.abort()}catch{}return r===e.openCanceller&&t._close(),ze(l)}).finally(()=>{e.openComplete=!0,i()})}function $l(t){var e=a=>t.next(a),n=a=>t.throw(a),r=i(e),s=i(n);function i(a){return o=>{var c=a(o),l=c.value;return c.done?l:!l||typeof l.then!="function"?tt(l)?Promise.all(l).then(r,s):r(l):l.then(r,s)}}return i(e)()}function sI(t,e,n){var r=arguments.length;if(r<2)throw new se.InvalidArgument("Too few arguments");for(var s=new Array(r-1);--r;)s[r-1]=arguments[r];n=s.pop();var i=Ob(s);return[t,i,n]}function h1(t,e,n,r,s){return q.resolve().then(()=>{let i=J.transless||J,a=t._createTransaction(e,n,t._dbSchema,r),o={trans:a,transless:i};if(r)a.idbtrans=r.idbtrans;else try{a.create(),t._state.PR1398_maxLoop=3}catch(d){return d.name===gl.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>h1(t,e,n,null,s))):ze(d)}let c=hl(s);c&&Es();let l,h=q.follow(()=>{if(l=s.call(a,a),l)if(c){var d=bn.bind(null,null);l.then(d,d)}else typeof l.next=="function"&&typeof l.throw=="function"&&(l=$l(l))},o);return(l&&typeof l.then=="function"?q.resolve(l).then(d=>a.active?d:ze(new se.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))):h.then(()=>l)).then(d=>(r&&a._resolve(),a._completion.then(()=>d))).catch(d=>(a._reject(d),ze(d)))})}function qo(t,e,n){let r=tt(t)?t.slice():[t];for(let s=0;s<n;++s)r.push(e);return r}function iI(t){return ce(B({},t),{table(e){let n=t.table(e),{schema:r}=n,s={},i=[];function a(f,p,E){let T=Hi(f),w=s[T]=s[T]||[],m=f==null?0:typeof f=="string"?1:f.length,I=p>0,A=ce(B({},E),{isVirtual:I,keyTail:p,keyLength:m,extractKey:jl(f),unique:!I&&E.unique});if(w.push(A),A.isPrimaryKey||i.push(A),m>1){let b=m===2?f[0]:f.slice(0,m-1);a(b,p+1,E)}return w.sort((b,S)=>b.keyTail-S.keyTail),A}let o=a(r.primaryKey.keyPath,0,r.primaryKey);s[":id"]=[o];for(let f of r.indexes)a(f.keyPath,0,f);function c(f){let p=s[Hi(f)];return p&&p[0]}function l(f,p){return{type:f.type===1?2:f.type,lower:qo(f.lower,f.lowerOpen?t.MAX_KEY:t.MIN_KEY,p),lowerOpen:!0,upper:qo(f.upper,f.upperOpen?t.MIN_KEY:t.MAX_KEY,p),upperOpen:!0}}function h(f){let p=f.query.index;return p.isVirtual?ce(B({},f),{query:{index:p,range:l(f.query.range,p.keyTail)}}):f}return ce(B({},n),{schema:ce(B({},r),{primaryKey:o,indexes:i,getIndexByKeyPath:c}),count(f){return n.count(h(f))},query(f){return n.query(h(f))},openCursor(f){let{keyTail:p,isVirtual:E,keyLength:T}=f.query.index;if(!E)return n.openCursor(f);function w(m){function I(b){b!=null?m.continue(qo(b,f.reverse?t.MAX_KEY:t.MIN_KEY,p)):f.unique?m.continue(m.key.slice(0,T).concat(f.reverse?t.MIN_KEY:t.MAX_KEY,p)):m.continue()}return Object.create(m,{continue:{value:I},continuePrimaryKey:{value(b,S){m.continuePrimaryKey(qo(b,t.MAX_KEY,p),S)}},primaryKey:{get(){return m.primaryKey}},key:{get(){let b=m.key;return T===1?b[0]:b.slice(0,T)}},value:{get(){return m.value}}})}return n.openCursor(h(f)).then(m=>m&&w(m))}})}})}var aI={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:iI};function Ql(t,e,n,r){return n=n||{},r=r||"",He(t).forEach(s=>{if(!At(e,s))n[r+s]=void 0;else{var i=t[s],a=e[s];if(typeof i=="object"&&typeof a=="object"&&i&&a){let o=fl(i),c=fl(a);o!==c?n[r+s]=e[s]:o==="Object"?Ql(i,a,n,r+s+"."):i!==a&&(n[r+s]=e[s])}else i!==a&&(n[r+s]=e[s])}}),He(e).forEach(s=>{At(t,s)||(n[r+s]=e[s])}),n}function oI(t,e){return e.type==="delete"?e.keys:e.keys||e.values.map(t.extractKey)}var uI={stack:"dbcore",name:"HooksMiddleware",level:2,create:t=>ce(B({},t),{table(e){let n=t.table(e),{primaryKey:r}=n.schema;return ce(B({},n),{mutate(i){let a=J.trans,{deleting:o,creating:c,updating:l}=a.table(e).hook;switch(i.type){case"add":if(c.fire===ye)break;return a._promise("readwrite",()=>h(i),!0);case"put":if(c.fire===ye&&l.fire===ye)break;return a._promise("readwrite",()=>h(i),!0);case"delete":if(o.fire===ye)break;return a._promise("readwrite",()=>h(i),!0);case"deleteRange":if(o.fire===ye)break;return a._promise("readwrite",()=>d(i),!0)}return n.mutate(i);function h(p){let E=J.trans,T=p.keys||oI(r,p);if(!T)throw new Error("Keys missing");return p=p.type==="add"||p.type==="put"?ce(B({},p),{keys:T}):B({},p),p.type!=="delete"&&(p.values=[...p.values]),p.keys&&(p.keys=[...p.keys]),cI(n,p,T).then(w=>{let m=T.map((I,A)=>{let b=w[A],S={onerror:null,onsuccess:null};if(p.type==="delete")o.fire.call(S,I,b,E);else if(p.type==="add"||b===void 0){let C=c.fire.call(S,I,p.values[A],E);I==null&&C!=null&&(I=C,p.keys[A]=I,r.outbound||Yt(p.values[A],r.keyPath,I))}else{let C=Ql(b,p.values[A]),N=l.fire.call(S,C,I,b,E);if(N){let O=p.values[A];Object.keys(N).forEach(L=>{At(O,L)?O[L]=N[L]:Yt(O,L,N[L])})}}return S});return n.mutate(p).then(({failures:I,results:A,numFailures:b,lastResult:S})=>{for(let C=0;C<T.length;++C){let N=A?A[C]:T[C],O=m[C];N==null?O.onerror&&O.onerror(I[C]):O.onsuccess&&O.onsuccess(p.type==="put"&&w[C]?p.values[C]:N)}return{failures:I,results:A,numFailures:b,lastResult:S}}).catch(I=>(m.forEach(A=>A.onerror&&A.onerror(I)),Promise.reject(I)))})}function d(p){return f(p.trans,p.range,1e4)}function f(p,E,T){return n.query({trans:p,values:!1,query:{index:r,range:E},limit:T}).then(({result:w})=>h({type:"delete",keys:w,trans:p}).then(m=>m.numFailures>0?Promise.reject(m.failures[0]):w.length<T?{failures:[],numFailures:0,lastResult:void 0}:f(p,ce(B({},E),{lower:w[w.length-1],lowerOpen:!0}),T)))}}})}})};function cI(t,e,n){return e.type==="add"?Promise.resolve([]):t.getMany({trans:e.trans,keys:n,cache:"immutable"})}function p1(t,e,n){try{if(!e||e.keys.length<t.length)return null;let r=[];for(let s=0,i=0;s<e.keys.length&&i<t.length;++s)ft(e.keys[s],t[i])===0&&(r.push(n?Ii(e.values[s]):e.values[s]),++i);return r.length===t.length?r:null}catch{return null}}var lI={stack:"dbcore",level:-1,create:t=>({table:e=>{let n=t.table(e);return ce(B({},n),{getMany:r=>{if(!r.cache)return n.getMany(r);let s=p1(r.keys,r.trans._cache,r.cache==="clone");return s?q.resolve(s):n.getMany(r).then(i=>(r.trans._cache={keys:r.keys,values:r.cache==="clone"?Ii(i):i},i))},mutate:r=>(r.type!=="add"&&(r.trans._cache=null),n.mutate(r))})}})};function Xl(t){return!("from"in t)}var En=function(t,e){if(this)lt(this,arguments.length?{d:1,from:t,to:arguments.length>1?e:t}:{d:0});else{let n=new En;return t&&"d"in t&&lt(n,t),n}};ps(En.prototype,{add(t){return Ko(this,t),this},addKey(t){return Ui(this,t,t),this},addKeys(t){return t.forEach(e=>Ui(this,e,e)),this},[dl](){return Zl(this)}});function Ui(t,e,n){let r=ft(e,n);if(isNaN(r))return;if(r>0)throw RangeError();if(Xl(t))return lt(t,{from:e,to:n,d:1});let s=t.l,i=t.r;if(ft(n,t.from)<0)return s?Ui(s,e,n):t.l={from:e,to:n,d:1,l:null,r:null},m1(t);if(ft(e,t.to)>0)return i?Ui(i,e,n):t.r={from:e,to:n,d:1,l:null,r:null},m1(t);ft(e,t.from)<0&&(t.from=e,t.l=null,t.d=i?i.d+1:1),ft(n,t.to)>0&&(t.to=n,t.r=null,t.d=t.l?t.l.d+1:1);let a=!t.r;s&&!t.l&&Ko(t,s),i&&a&&Ko(t,i)}function Ko(t,e){function n(r,{from:s,to:i,l:a,r:o}){Ui(r,s,i),a&&n(r,a),o&&n(r,o)}Xl(e)||n(t,e)}function fI(t,e){let n=Zl(e),r=n.next();if(r.done)return!1;let s=r.value,i=Zl(t),a=i.next(s.from),o=a.value;for(;!r.done&&!a.done;){if(ft(o.from,s.to)<=0&&ft(o.to,s.from)>=0)return!0;ft(s.from,o.from)<0?s=(r=n.next(o.from)).value:o=(a=i.next(s.from)).value}return!1}function Zl(t){let e=Xl(t)?null:{s:0,n:t};return{next(n){let r=arguments.length>0;for(;e;)switch(e.s){case 0:if(e.s=1,r)for(;e.n.l&&ft(n,e.n.from)<0;)e={up:e,n:e.n.l,s:1};else for(;e.n.l;)e={up:e,n:e.n.l,s:1};case 1:if(e.s=2,!r||ft(n,e.n.to)<=0)return{value:e.n,done:!1};case 2:if(e.n.r){e.s=3,e={up:e,n:e.n.r,s:0};continue}case 3:e=e.up}return{done:!0}}}}function m1(t){var e,n;let r=(((e=t.r)===null||e===void 0?void 0:e.d)||0)-(((n=t.l)===null||n===void 0?void 0:n.d)||0),s=r>1?"r":r<-1?"l":"";if(s){let i=s==="r"?"l":"r",a=B({},t),o=t[s];t.from=o.from,t.to=o.to,t[s]=o[s],a[s]=o[i],t[i]=a,a.d=g1(a)}t.d=g1(t)}function g1({r:t,l:e}){return(t?e?Math.max(t.d,e.d):t.d:e?e.d:0)+1}var dI={stack:"dbcore",level:0,create:t=>{let e=t.schema.name,n=new En(t.MIN_KEY,t.MAX_KEY);return ce(B({},t),{table:r=>{let s=t.table(r),{schema:i}=s,{primaryKey:a}=i,{extractKey:o,outbound:c}=a,l=ce(B({},s),{mutate:f=>{let p=f.trans,E=p.mutatedParts||(p.mutatedParts={}),T=C=>{let N=`idb://${e}/${r}/${C}`;return E[N]||(E[N]=new En)},w=T(""),m=T(":dels"),{type:I}=f,[A,b]=f.type==="deleteRange"?[f.range]:f.type==="delete"?[f.keys]:f.values.length<50?[[],f.values]:[],S=f.trans._cache;return s.mutate(f).then(C=>{if(tt(A)){I!=="delete"&&(A=C.results),w.addKeys(A);let N=p1(A,S);!N&&I!=="add"&&m.addKeys(A),(N||b)&&hI(T,i,N,b)}else if(A){let N={from:A.lower,to:A.upper};m.add(N),w.add(N)}else w.add(n),m.add(n),i.indexes.forEach(N=>T(N.name).add(n));return C})}}),h=({query:{index:f,range:p}})=>{var E,T;return[f,new En((E=p.lower)!==null&&E!==void 0?E:t.MIN_KEY,(T=p.upper)!==null&&T!==void 0?T:t.MAX_KEY)]},d={get:f=>[a,new En(f.key)],getMany:f=>[a,new En().addKeys(f.keys)],count:h,query:h,openCursor:h};return He(d).forEach(f=>{l[f]=function(p){let{subscr:E}=J;if(E){let T=b=>{let S=`idb://${e}/${r}/${b}`;return E[S]||(E[S]=new En)},w=T(""),m=T(":dels"),[I,A]=d[f](p);if(T(I.name||"").add(A),!I.isPrimaryKey)if(f==="count")m.add(n);else{let b=f==="query"&&c&&p.values&&s.query(ce(B({},p),{values:!1}));return s[f].apply(this,arguments).then(S=>{if(f==="query"){if(c&&p.values)return b.then(({result:N})=>(w.addKeys(N),S));let C=p.values?S.result.map(o):S.result;p.values?w.addKeys(C):m.addKeys(C)}else if(f==="openCursor"){let C=S,N=p.values;return C&&Object.create(C,{key:{get(){return m.addKey(C.primaryKey),C.key}},primaryKey:{get(){let O=C.primaryKey;return m.addKey(O),O}},value:{get(){return N&&w.addKey(C.primaryKey),C.value}}})}return S})}}return s[f].apply(this,arguments)}}),l}})}};function hI(t,e,n,r){function s(i){let a=t(i.name||"");function o(l){return l!=null?i.extractKey(l):null}let c=l=>i.multiEntry&&tt(l)?l.forEach(h=>a.addKey(h)):a.addKey(l);(n||r).forEach((l,h)=>{let d=n&&o(n[h]),f=r&&o(r[h]);ft(d,f)!==0&&(d!=null&&c(d),f!=null&&c(f))})}e.indexes.forEach(s)}var Tn=class{constructor(e,n){this._middlewares={},this.verno=0;let r=Tn.dependencies;this._options=n=B({addons:Tn.addons,autoOpen:!0,indexedDB:r.indexedDB,IDBKeyRange:r.IDBKeyRange},n),this._deps={indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange};let{addons:s}=n;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;let i={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:ye,dbReadyPromise:null,cancelOpen:ye,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};i.dbReadyPromise=new q(a=>{i.dbReadyResolve=a}),i.openCanceller=new q((a,o)=>{i.cancelOpen=o}),this._state=i,this.name=e,this.on=Pi(this,"populate","blocked","versionchange","close",{ready:[bl,ye]}),this.on.ready.subscribe=wb(this.on.ready.subscribe,a=>(o,c)=>{Tn.vip(()=>{let l=this._state;if(l.openComplete)l.dbOpenError||q.resolve().then(o),c&&a(o);else if(l.onReadyBeingFired)l.onReadyBeingFired.push(o),c&&a(o);else{a(o);let h=this;c||a(function d(){h.on.ready.unsubscribe(o),h.on.ready.unsubscribe(d)})}})}),this.Collection=D3(this),this.Table=I3(this),this.Transaction=F3(this),this.Version=Z3(this),this.WhereClause=M3(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=ji(n.IDBKeyRange),this._createTransaction=(a,o,c,l)=>new this.Transaction(a,o,c,this._options.chromeTransactionDurability,l),this._fireOnBlocked=a=>{this.on("blocked").fire(a),Li.filter(o=>o.name===this.name&&o!==this&&!o._state.vcFired).map(o=>o.on("versionchange").fire(a))},this.use(aI),this.use(uI),this.use(dI),this.use(lI),this.vip=Object.create(this,{_vip:{value:!0}}),s.forEach(a=>a(this))}version(e){if(isNaN(e)||e<.1)throw new se.Type("Given version is not a positive number");if(e=Math.round(e*10)/10,this.idbdb||this._state.isBeingOpened)throw new se.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);let n=this._versions;var r=n.filter(s=>s._cfg.version===e)[0];return r||(r=new this.Version(e),n.push(r),n.sort(q3),r.stores({}),this._state.autoSchema=!1,r)}_whenReady(e){return this.idbdb&&(this._state.openComplete||J.letThrough||this._vip)?e():new q((n,r)=>{if(this._state.openComplete)return r(new se.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen){r(new se.DatabaseClosed);return}this.open().catch(ye)}this._state.dbReadyPromise.then(n,r)}).then(e)}use({stack:e,create:n,level:r,name:s}){s&&this.unuse({stack:e,name:s});let i=this._middlewares[e]||(this._middlewares[e]=[]);return i.push({stack:e,create:n,level:r??10,name:s}),i.sort((a,o)=>a.level-o.level),this}unuse({stack:e,name:n,create:r}){return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter(s=>r?s.create!==r:n?s.name!==n:!1)),this}open(){return rI(this)}_close(){let e=this._state,n=Li.indexOf(this);if(n>=0&&Li.splice(n,1),this.idbdb){try{this.idbdb.close()}catch{}this._novip.idbdb=null}e.dbReadyPromise=new q(r=>{e.dbReadyResolve=r}),e.openCanceller=new q((r,s)=>{e.cancelOpen=s})}close(){this._close();let e=this._state;this._options.autoOpen=!1,e.dbOpenError=new se.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)}delete(){let e=arguments.length>0,n=this._state;return new q((r,s)=>{let i=()=>{this.close();var a=this._deps.indexedDB.deleteDatabase(this.name);a.onsuccess=Oe(()=>{tI(this._deps,this.name),r()}),a.onerror=nn(s),a.onblocked=this._fireOnBlocked};if(e)throw new se.InvalidArgument("Arguments not allowed in db.delete()");n.isBeingOpened?n.dbReadyPromise.then(i):i()})}backendDB(){return this.idbdb}isOpen(){return this.idbdb!==null}hasBeenClosed(){let e=this._state.dbOpenError;return e&&e.name==="DatabaseClosed"}hasFailed(){return this._state.dbOpenError!==null}dynamicallyOpened(){return this._state.autoSchema}get tables(){return He(this._allTables).map(e=>this._allTables[e])}transaction(){let e=sI.apply(this,arguments);return this._transaction.apply(this,e)}_transaction(e,n,r){let s=J.trans;(!s||s.db!==this||e.indexOf("!")!==-1)&&(s=null);let i=e.indexOf("?")!==-1;e=e.replace("!","").replace("?","");let a,o;try{if(o=n.map(l=>{var h=l instanceof this.Table?l.name:l;if(typeof h!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return h}),e=="r"||e===kl)a=kl;else if(e=="rw"||e==Rl)a=Rl;else throw new se.InvalidArgument("Invalid transaction mode: "+e);if(s){if(s.mode===kl&&a===Rl)if(i)s=null;else throw new se.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");s&&o.forEach(l=>{if(s&&s.storeNames.indexOf(l)===-1)if(i)s=null;else throw new se.SubTransaction("Table "+l+" not included in parent transaction.")}),i&&s&&!s.active&&(s=null)}}catch(l){return s?s._promise(null,(h,d)=>{d(l)}):ze(l)}let c=h1.bind(null,this,a,o,s,r);return s?s._promise(a,c,"lock"):J.trans?Ts(J.transless,()=>this._whenReady(c)):this._whenReady(c)}table(e){if(!At(this._allTables,e))throw new se.InvalidTable(`Table ${e} does not exist`);return this._allTables[e]}},pI=typeof Symbol!="undefined"&&"observable"in Symbol?Symbol.observable:"@@observable",b1=class{constructor(e){this._subscribe=e}subscribe(e,n,r){return this._subscribe(!e||typeof e=="function"?{next:e,error:n,complete:r}:e)}[pI](){return this}};function _1(t,e){return He(e).forEach(n=>{let r=t[n]||(t[n]=new En);Ko(r,e[n])}),t}function mI(t){let e=!1,n,r=new b1(s=>{let i=hl(t);function a(w){i&&Es();let m=()=>Qn(t,{subscr:w,trans:null}),I=J.trans?Ts(J.transless,m):m();return i&&I.then(bn,bn),I}let o=!1,c={},l={},h={get closed(){return o},unsubscribe:()=>{o=!0,er.storagemutated.unsubscribe(E)}};s.start&&s.start(h);let d=!1,f=!1;function p(){return He(l).some(w=>c[w]&&fI(c[w],l[w]))}let E=w=>{_1(c,w),p()&&T()},T=()=>{if(d||o)return;c={};let w={},m=a(w);f||(er(Bi,E),f=!0),d=!0,Promise.resolve(m).then(I=>{e=!0,n=I,d=!1,!o&&(p()?T():(c={},l=w,s.next&&s.next(I)))},I=>{d=!1,e=!1,s.error&&s.error(I),h.unsubscribe()})};return T(),h});return r.hasValue=()=>e,r.getValue=()=>n,r}var Jl;try{Jl={indexedDB:ve.indexedDB||ve.mozIndexedDB||ve.webkitIndexedDB||ve.msIndexedDB,IDBKeyRange:ve.IDBKeyRange||ve.webkitIDBKeyRange}}catch{Jl={indexedDB:null,IDBKeyRange:null}}var Ir=Tn;ps(Ir,ce(B({},So),{delete(t){return new Ir(t,{addons:[]}).delete()},exists(t){return new Ir(t,{addons:[]}).open().then(e=>(e.close(),!0)).catch("NoSuchDatabaseError",()=>!1)},getDatabaseNames(t){try{return J3(Ir.dependencies).then(t)}catch{return ze(new se.MissingAPI)}},defineClass(){function t(e){lt(this,e)}return t},ignoreTransaction(t){return J.trans?Ts(J.transless,t):t()},vip:Gl,async:function(t){return function(){try{var e=$l(t.apply(this,arguments));return!e||typeof e.then!="function"?q.resolve(e):e}catch(n){return ze(n)}}},spawn:function(t,e,n){try{var r=$l(t.apply(n,e||[]));return!r||typeof r.then!="function"?q.resolve(r):r}catch(s){return ze(s)}},currentTransaction:{get:()=>J.trans||null},waitFor:function(t,e){let n=q.resolve(typeof t=="function"?Ir.ignoreTransaction(t):t).timeout(e||6e4);return J.trans?J.trans.waitFor(n):n},Promise:q,debug:{get:()=>tn,set:t=>{Rb(t,t==="dexie"?()=>!0:Zb)}},derive:ms,extend:lt,props:ps,override:wb,Events:Pi,on:er,liveQuery:mI,extendObservabilitySet:_1,getByKeyPath:mn,setByKeyPath:Yt,delByKeyPath:ZS,shallowClone:Db,deepClone:Ii,getObjectDiff:Ql,cmp:ft,asap:Nb,minKey:Ol,addons:[],connections:Li,errnames:gl,dependencies:Jl,semVer:Qb,version:Qb.split(".").map(t=>parseInt(t)).reduce((t,e,n)=>t+e/Math.pow(10,n*2))}));Ir.maxKey=ji(Ir.dependencies.IDBKeyRange);typeof dispatchEvent!="undefined"&&typeof addEventListener!="undefined"&&(er(Bi,t=>{if(!xn){let e;Fo?(e=document.createEvent("CustomEvent"),e.initCustomEvent(Jn,!0,!0,t)):e=new CustomEvent(Jn,{detail:t}),xn=!0,dispatchEvent(e),xn=!1}}),addEventListener(Jn,({detail:t})=>{xn||Yo(t)}));function Yo(t){let e=xn;try{xn=!0,er.storagemutated.fire(t)}finally{xn=e}}var xn=!1;if(typeof BroadcastChannel!="undefined"){let t=new BroadcastChannel(Jn);typeof t.unref=="function"&&t.unref(),er(Bi,e=>{xn||t.postMessage(e)}),t.onmessage=e=>{e.data&&Yo(e.data)}}else if(typeof self!="undefined"&&typeof navigator!="undefined"){er(Bi,e=>{try{xn||(typeof localStorage!="undefined"&&localStorage.setItem(Jn,JSON.stringify({trig:Math.random(),changedParts:e})),typeof self.clients=="object"&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(n=>n.postMessage({type:Jn,changedParts:e})))}catch{}}),typeof addEventListener!="undefined"&&addEventListener("storage",e=>{if(e.key===Jn){let n=JSON.parse(e.newValue);n&&Yo(n.changedParts)}});let t=self.document&&navigator.serviceWorker;t&&t.addEventListener("message",gI)}function gI({data:t}){t&&t.type===Jn&&Yo(t.changedParts)}q.rejectionMapper=o3;Rb(tn,Zb);var ef=_e(require("obsidian")),As=class extends Tn{constructor(e){super(As.getDbName(e.app.appId));this.plugin=e;this.version(As.dbVersion).stores({searchHistory:"++id",minisearch:"date",embeds:"embedded"})}static getDbName(e){return"omnisearch/cache/"+e}async getMinisearchCache(){try{return(await this.plugin.database.minisearch.toArray())[0]}catch(e){return new ef.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(e),null}}async writeMinisearchCache(){let e=this.plugin.searchEngine.getSerializedMiniSearch(),n=this.plugin.searchEngine.getSerializedIndexedDocuments(),r=this.plugin.database;await r.minisearch.clear(),await r.minisearch.add({date:new Date().toISOString(),paths:n,data:e}),console.debug("Omnisearch - Search cache written")}async clearOldDatabases(){let e=(await indexedDB.databases()).filter(n=>n.name===As.getDbName(this.plugin.app.appId)&&n.version!==As.dbVersion*10);if(e.length){console.debug("Omnisearch - Those IndexedDb databases will be deleted:");for(let n of e)n.name&&indexedDB.deleteDatabase(n.name)}}async clearCache(){await this.minisearch.clear(),await this.embeds.clear(),new ef.Notice("Omnisearch - Cache cleared. Please restart Obsidian.")}},Wo=As;Wo.dbVersion=10;var E1="ENTRIES",tf="KEYS",nf="VALUES",Ve="",zi=class{constructor(e,n){let r=e._tree,s=Array.from(r.keys());this.set=e,this._type=n,this._path=s.length>0?[{node:r,keys:s}]:[]}next(){let e=this.dive();return this.backtrack(),e}dive(){if(this._path.length===0)return{done:!0,value:void 0};let{node:e,keys:n}=Cs(this._path);if(Cs(n)===Ve)return{done:!1,value:this.result()};let r=e.get(Cs(n));return this._path.push({node:r,keys:Array.from(r.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;let e=Cs(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>Cs(e)).filter(e=>e!==Ve).join("")}value(){return Cs(this._path).node.get(Ve)}result(){switch(this._type){case nf:return this.value();case tf:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}},Cs=t=>t[t.length-1];var bI=(t,e,n)=>{let r=new Map;if(e===void 0)return r;let s=e.length+1,i=s+n,a=new Uint8Array(i*s).fill(n+1);for(let o=0;o<s;++o)a[o]=o;for(let o=1;o<i;++o)a[o*s]=o;return T1(t,e,n,r,a,1,s,""),r},T1=(t,e,n,r,s,i,a,o)=>{let c=i*a;e:for(let l of t.keys())if(l===Ve){let h=s[c-1];h<=n&&r.set(o,[t.get(l),h])}else{let h=i;for(let d=0;d<l.length;++d,++h){let f=l[d],p=a*h,E=p-a,T=s[p],w=Math.max(0,h-n-1),m=Math.min(a-1,h+n);for(let I=w;I<m;++I){let A=f!==e[I],b=s[E+I]+ +A,S=s[E+I+1]+1,C=s[p+I]+1,N=s[p+I+1]=Math.min(b,S,C);N<T&&(T=N)}if(T>n)continue e}T1(t.get(l),e,n,r,s,h,a,o+l)}},x1=bI;var Wt=class{constructor(e=new Map,n=""){this._size=void 0;this._tree=e,this._prefix=n}atPrefix(e){if(!e.startsWith(this._prefix))throw new Error("Mismatched prefix");let[n,r]=Go(this._tree,e.slice(this._prefix.length));if(n===void 0){let[s,i]=af(r);for(let a of s.keys())if(a!==Ve&&a.startsWith(i)){let o=new Map;return o.set(a.slice(i.length),s.get(a)),new Wt(o,e)}}return new Wt(n,e)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,_I(this._tree,e)}entries(){return new zi(this,E1)}forEach(e){for(let[n,r]of this)e(n,r,this)}fuzzyGet(e,n){return x1(this._tree,e,n)}get(e){let n=rf(this._tree,e);return n!==void 0?n.get(Ve):void 0}has(e){let n=rf(this._tree,e);return n!==void 0&&n.has(Ve)}keys(){return new zi(this,tf)}set(e,n){if(typeof e!="string")throw new Error("key must be a string");return this._size=void 0,sf(this._tree,e).set(Ve,n),this}get size(){if(this._size)return this._size;this._size=0;let e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,n){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;let r=sf(this._tree,e);return r.set(Ve,n(r.get(Ve))),this}fetch(e,n){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;let r=sf(this._tree,e),s=r.get(Ve);return s===void 0&&r.set(Ve,s=n()),s}values(){return new zi(this,nf)}[Symbol.iterator](){return this.entries()}static from(e){let n=new Wt;for(let[r,s]of e)n.set(r,s);return n}static fromObject(e){return Wt.from(Object.entries(e))}},Go=(t,e,n=[])=>{if(e.length===0||t==null)return[t,n];for(let r of t.keys())if(r!==Ve&&e.startsWith(r))return n.push([t,r]),Go(t.get(r),e.slice(r.length),n);return n.push([t,e]),Go(void 0,"",n)},rf=(t,e)=>{if(e.length===0||t==null)return t;for(let n of t.keys())if(n!==Ve&&e.startsWith(n))return rf(t.get(n),e.slice(n.length))},sf=(t,e)=>{let n=e.length;e:for(let r=0;t&&r<n;){for(let i of t.keys())if(i!==Ve&&e[r]===i[0]){let a=Math.min(n-r,i.length),o=1;for(;o<a&&e[r+o]===i[o];)++o;let c=t.get(i);if(o===i.length)t=c;else{let l=new Map;l.set(i.slice(o),c),t.set(e.slice(r,r+o),l),t.delete(i),t=l}r+=o;continue e}let s=new Map;return t.set(e.slice(r),s),s}return t},_I=(t,e)=>{let[n,r]=Go(t,e);if(n!==void 0){if(n.delete(Ve),n.size===0)y1(r);else if(n.size===1){let[s,i]=n.entries().next().value;A1(r,s,i)}}},y1=t=>{if(t.length===0)return;let[e,n]=af(t);if(e.delete(n),e.size===0)y1(t.slice(0,-1));else if(e.size===1){let[r,s]=e.entries().next().value;r!==Ve&&A1(t.slice(0,-1),r,s)}},A1=(t,e,n)=>{if(t.length===0)return;let[r,s]=af(t);r.set(s+e,n),r.delete(s)},af=t=>t[t.length-1];var of="or",C1="and",EI="and_not",Vi=class{constructor(e){if(e?.fields==null)throw new Error('MiniSearch: option "fields" must be provided');let n=e.autoVacuum==null||e.autoVacuum===!0?df:e.autoVacuum;this._options=ce(B(B({},cf),e),{autoVacuum:n,searchOptions:B(B({},S1),e.searchOptions||{}),autoSuggestOptions:B(B({},CI),e.autoSuggestOptions||{})}),this._index=new Wt,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=ff,this.addFields(this._options.fields)}add(e){let{extractField:n,tokenize:r,processTerm:s,fields:i,idField:a}=this._options,o=n(e,a);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${a}"`);if(this._idToShortId.has(o))throw new Error(`MiniSearch: duplicate ID ${o}`);let c=this.addDocumentId(o);this.saveStoredFields(c,e);for(let l of i){let h=n(e,l);if(h==null)continue;let d=r(h.toString(),l),f=this._fieldIds[l],p=new Set(d).size;this.addFieldLength(c,f,this._documentCount-1,p);for(let E of d){let T=s(E,l);if(Array.isArray(T))for(let w of T)this.addTerm(f,c,w);else T&&this.addTerm(f,c,T)}}}addAll(e){for(let n of e)this.add(n)}addAllAsync(e,n={}){let{chunkSize:r=10}=n,s={chunk:[],promise:Promise.resolve()},{chunk:i,promise:a}=e.reduce(({chunk:o,promise:c},l,h)=>(o.push(l),(h+1)%r==0?{chunk:[],promise:c.then(()=>new Promise(d=>setTimeout(d,0))).then(()=>this.addAll(o))}:{chunk:o,promise:c}),s);return a.then(()=>this.addAll(i))}remove(e){let{tokenize:n,processTerm:r,extractField:s,fields:i,idField:a}=this._options,o=s(e,a);if(o==null)throw new Error(`MiniSearch: document does not have ID field "${a}"`);let c=this._idToShortId.get(o);if(c==null)throw new Error(`MiniSearch: cannot remove document with ID ${o}: it is not in the index`);for(let l of i){let h=s(e,l);if(h==null)continue;let d=n(h.toString(),l),f=this._fieldIds[l],p=new Set(d).size;this.removeFieldLength(c,f,this._documentCount,p);for(let E of d){let T=r(E,l);if(Array.isArray(T))for(let w of T)this.removeTerm(f,c,w);else T&&this.removeTerm(f,c,T)}}this._storedFields.delete(c),this._documentIds.delete(c),this._idToShortId.delete(o),this._fieldLength.delete(c),this._documentCount-=1}removeAll(e){if(e)for(let n of e)this.remove(n);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new Wt,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(e){let n=this._idToShortId.get(e);if(n==null)throw new Error(`MiniSearch: cannot discard document with ID ${e}: it is not in the index`);this._idToShortId.delete(e),this._documentIds.delete(n),this._storedFields.delete(n),(this._fieldLength.get(n)||[]).forEach((r,s)=>{this.removeFieldLength(n,s,this._documentCount,r)}),this._fieldLength.delete(n),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;let{minDirtFactor:e,minDirtCount:n,batchSize:r,batchWait:s}=this._options.autoVacuum;this.conditionalVacuum({batchSize:r,batchWait:s},{minDirtCount:n,minDirtFactor:e})}discardAll(e){let n=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(let r of e)this.discard(r)}finally{this._options.autoVacuum=n}this.maybeAutoVacuum()}replace(e){let{idField:n,extractField:r}=this._options,s=r(e,n);this.discard(s),this.add(e)}vacuum(e={}){return this.conditionalVacuum(e)}conditionalVacuum(e,n){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&n,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{let r=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=ff,this.performVacuuming(e,r)}),this._enqueuedVacuum)):this.vacuumConditionsMet(n)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}async performVacuuming(e,n){let r=this._dirtCount;if(this.vacuumConditionsMet(n)){let s=e.batchSize||lf.batchSize,i=e.batchWait||lf.batchWait,a=1;for(let[o,c]of this._index){for(let[l,h]of c)for(let[d]of h)this._documentIds.has(d)||(h.size<=1?c.delete(l):h.delete(d));this._index.get(o).size===0&&this._index.delete(o),a%s==0&&await new Promise(l=>setTimeout(l,i)),a+=1}this._dirtCount-=r}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(e){if(e==null)return!0;let{minDirtCount:n,minDirtFactor:r}=e;return n=n||df.minDirtCount,r=r||df.minDirtFactor,this.dirtCount>=n&&this.dirtFactor>=r}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(e){return this._idToShortId.has(e)}getStoredFields(e){let n=this._idToShortId.get(e);if(n!=null)return this._storedFields.get(n)}search(e,n={}){let r=this.executeQuery(e,n),s=[];for(let[i,{score:a,terms:o,match:c}]of r){let l=o.length||1,h={id:this._documentIds.get(i),score:a*l,terms:Object.keys(c),queryTerms:o,match:c};Object.assign(h,this._storedFields.get(i)),(n.filter==null||n.filter(h))&&s.push(h)}return e===Vi.wildcard&&n.boostDocument==null&&this._options.searchOptions.boostDocument==null||s.sort(w1),s}autoSuggest(e,n={}){n=B(B({},this._options.autoSuggestOptions),n);let r=new Map;for(let{score:i,terms:a}of this.search(e,n)){let o=a.join(" "),c=r.get(o);c!=null?(c.score+=i,c.count+=1):r.set(o,{score:i,terms:a,count:1})}let s=[];for(let[i,{score:a,terms:o,count:c}]of r)s.push({suggestion:i,terms:o,score:a/c});return s.sort(w1),s}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,n){if(n==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(e),n)}static async loadJSONAsync(e,n){if(n==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(e),n)}static getDefault(e){if(cf.hasOwnProperty(e))return uf(cf,e);throw new Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,n){let{index:r,documentIds:s,fieldLength:i,storedFields:a,serializationVersion:o}=e,c=this.instantiateMiniSearch(e,n);c._documentIds=$o(s),c._fieldLength=$o(i),c._storedFields=$o(a);for(let[l,h]of c._documentIds)c._idToShortId.set(h,l);for(let[l,h]of r){let d=new Map;for(let f of Object.keys(h)){let p=h[f];o===1&&(p=p.ds),d.set(parseInt(f,10),$o(p))}c._index.set(l,d)}return c}static async loadJSAsync(e,n){let{index:r,documentIds:s,fieldLength:i,storedFields:a,serializationVersion:o}=e,c=this.instantiateMiniSearch(e,n);c._documentIds=await Qo(s),c._fieldLength=await Qo(i),c._storedFields=await Qo(a);for(let[h,d]of c._documentIds)c._idToShortId.set(d,h);let l=0;for(let[h,d]of r){let f=new Map;for(let p of Object.keys(d)){let E=d[p];o===1&&(E=E.ds),f.set(parseInt(p,10),await Qo(E))}++l%1e3==0&&await v1(0),c._index.set(h,f)}return c}static instantiateMiniSearch(e,n){let{documentCount:r,nextId:s,fieldIds:i,averageFieldLength:a,dirtCount:o,serializationVersion:c}=e;if(c!==1&&c!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");let l=new Vi(n);return l._documentCount=r,l._nextId=s,l._idToShortId=new Map,l._fieldIds=i,l._avgFieldLength=a,l._dirtCount=o||0,l._index=new Wt,l}executeQuery(e,n={}){if(e===Vi.wildcard)return this.executeWildcardQuery(n);if(typeof e!="string"){let f=ce(B(B({},n),e),{queries:void 0}),p=e.queries.map(E=>this.executeQuery(E,f));return this.combineResults(p,f.combineWith)}let{tokenize:r,processTerm:s,searchOptions:i}=this._options,a=B(B({tokenize:r,processTerm:s},i),n),{tokenize:o,processTerm:c}=a,d=o(e).flatMap(f=>c(f)).filter(f=>!!f).map(AI(a)).map(f=>this.executeQuerySpec(f,a));return this.combineResults(d,a.combineWith)}executeQuerySpec(e,n){let r=B(B({},this._options.searchOptions),n),s=(r.fields||this._options.fields).reduce((T,w)=>ce(B({},T),{[w]:uf(r.boost,w)||1}),{}),{boostDocument:i,weights:a,maxFuzzy:o,bm25:c}=r,{fuzzy:l,prefix:h}=B(B({},S1.weights),a),d=this._index.get(e.term),f=this.termResults(e.term,e.term,1,e.termBoost,d,s,i,c),p,E;if(e.prefix&&(p=this._index.atPrefix(e.term)),e.fuzzy){let T=e.fuzzy===!0?.2:e.fuzzy,w=T<1?Math.min(o,Math.round(e.term.length*T)):T;w&&(E=this._index.fuzzyGet(e.term,w))}if(p)for(let[T,w]of p){let m=T.length-e.term.length;if(!m)continue;E?.delete(T);let I=h*T.length/(T.length+.3*m);this.termResults(e.term,T,I,e.termBoost,w,s,i,c,f)}if(E)for(let T of E.keys()){let[w,m]=E.get(T);if(!m)continue;let I=l*T.length/(T.length+m);this.termResults(e.term,T,I,e.termBoost,w,s,i,c,f)}return f}executeWildcardQuery(e){let n=new Map,r=B(B({},this._options.searchOptions),e);for(let[s,i]of this._documentIds){let a=r.boostDocument?r.boostDocument(i,"",this._storedFields.get(s)):1;n.set(s,{score:a,terms:[],match:{}})}return n}combineResults(e,n=of){if(e.length===0)return new Map;let r=n.toLowerCase(),s=TI[r];if(!s)throw new Error(`Invalid combination operator: ${n}`);return e.reduce(s)||new Map}toJSON(){let e=[];for(let[n,r]of this._index){let s={};for(let[i,a]of r)s[i]=Object.fromEntries(a);e.push([n,s])}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:e,serializationVersion:2}}termResults(e,n,r,s,i,a,o,c,l=new Map){if(i==null)return l;for(let h of Object.keys(a)){let d=a[h],f=this._fieldIds[h],p=i.get(f);if(p==null)continue;let E=p.size,T=this._avgFieldLength[f];for(let w of p.keys()){if(!this._documentIds.has(w)){this.removeTerm(f,w,n),E-=1;continue}let m=o?o(this._documentIds.get(w),n,this._storedFields.get(w)):1;if(!m)continue;let I=p.get(w),A=this._fieldLength.get(w)[f],b=yI(I,E,this._documentCount,A,T,c),S=r*s*d*m*b,C=l.get(w);if(C){C.score+=S,SI(C.terms,e);let N=uf(C.match,n);N?N.push(h):C.match[n]=[h]}else l.set(w,{score:S,terms:[e],match:{[n]:[h]}})}}return l}addTerm(e,n,r){let s=this._index.fetch(r,N1),i=s.get(e);if(i==null)i=new Map,i.set(n,1),s.set(e,i);else{let a=i.get(n);i.set(n,(a||0)+1)}}removeTerm(e,n,r){if(!this._index.has(r)){this.warnDocumentChanged(n,e,r);return}let s=this._index.fetch(r,N1),i=s.get(e);i==null||i.get(n)==null?this.warnDocumentChanged(n,e,r):i.get(n)<=1?i.size<=1?s.delete(e):i.delete(n):i.set(n,i.get(n)-1),this._index.get(r).size===0&&this._index.delete(r)}warnDocumentChanged(e,n,r){for(let s of Object.keys(this._fieldIds))if(this._fieldIds[s]===n){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${r}" was not present in field "${s}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(e){let n=this._nextId;return this._idToShortId.set(e,n),this._documentIds.set(n,e),this._documentCount+=1,this._nextId+=1,n}addFields(e){for(let n=0;n<e.length;n++)this._fieldIds[e[n]]=n}addFieldLength(e,n,r,s){let i=this._fieldLength.get(e);i==null&&this._fieldLength.set(e,i=[]),i[n]=s;let o=(this._avgFieldLength[n]||0)*r+s;this._avgFieldLength[n]=o/(r+1)}removeFieldLength(e,n,r,s){if(r===1){this._avgFieldLength[n]=0;return}let i=this._avgFieldLength[n]*r-s;this._avgFieldLength[n]=i/(r-1)}saveStoredFields(e,n){let{storeFields:r,extractField:s}=this._options;if(r==null||r.length===0)return;let i=this._storedFields.get(e);i==null&&this._storedFields.set(e,i={});for(let a of r){let o=s(n,a);o!==void 0&&(i[a]=o)}}},Ss=Vi;Ss.wildcard=Symbol("*");var uf=(t,e)=>Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0,TI={[of]:(t,e)=>{for(let n of e.keys()){let r=t.get(n);if(r==null)t.set(n,e.get(n));else{let{score:s,terms:i,match:a}=e.get(n);r.score=r.score+s,r.match=Object.assign(r.match,a),I1(r.terms,i)}}return t},[C1]:(t,e)=>{let n=new Map;for(let r of e.keys()){let s=t.get(r);if(s==null)continue;let{score:i,terms:a,match:o}=e.get(r);I1(s.terms,a),n.set(r,{score:s.score+i,terms:s.terms,match:Object.assign(s.match,o)})}return n},[EI]:(t,e)=>{for(let n of e.keys())t.delete(n);return t}},xI={k:1.2,b:.7,d:.5},yI=(t,e,n,r,s,i)=>{let{k:a,b:o,d:c}=i;return Math.log(1+(n-e+.5)/(e+.5))*(c+t*(a+1)/(t+a*(1-o+o*r/s)))},AI=t=>(e,n,r)=>{let s=typeof t.fuzzy=="function"?t.fuzzy(e,n,r):t.fuzzy||!1,i=typeof t.prefix=="function"?t.prefix(e,n,r):t.prefix===!0,a=typeof t.boostTerm=="function"?t.boostTerm(e,n,r):1;return{term:e,fuzzy:s,prefix:i,termBoost:a}},cf={idField:"id",extractField:(t,e)=>t[e],tokenize:t=>t.split(II),processTerm:t=>t.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(t,e)=>{typeof console?.[t]=="function"&&console[t](e)},autoVacuum:!0},S1={combineWith:of,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:xI},CI={combineWith:C1,prefix:(t,e,n)=>e===n.length-1},lf={batchSize:1e3,batchWait:10},ff={minDirtFactor:.1,minDirtCount:20},df=B(B({},lf),ff),SI=(t,e)=>{t.includes(e)||t.push(e)},I1=(t,e)=>{for(let n of e)t.includes(n)||t.push(n)},w1=({score:t},{score:e})=>e-t,N1=()=>new Map,$o=t=>{let e=new Map;for(let n of Object.keys(t))e.set(parseInt(n,10),t[n]);return e},Qo=async t=>{let e=new Map,n=0;for(let r of Object.keys(t))e.set(parseInt(r,10),t[r]),++n%1e3==0&&await v1(0);return e},v1=t=>new Promise(e=>setTimeout(e,t)),II=/[\n\r\p{Z}\p{P}]+/u;ut();var JT=_e(require("obsidian"));xi();Zt();ut();var ZT=XT(),Wd=class{constructor(e){this.plugin=e}tokenizeForIndexing(e){try{let n=this.tokenizeWords(e),r=[];if(this.plugin.settings.tokenizeUrls)try{r=ZT(e)}catch(i){le("Error extracting urls",i)}let s=this.tokenizeTokens(e,{skipChs:!0});return s=[...s,...s.flatMap(pc)],s=[...s,...s.flatMap(hc)],s=[...s,...n],r.length&&(s=[...s,...r]),s=[...new Set(s)],s}catch(n){return console.error("Error tokenizing text, skipping document",n),[]}}tokenizeForSearch(e){let n=ZT(e);e=n.reduce((s,i)=>s.replace(i,""),e);let r=[...this.tokenizeTokens(e),...n].filter(Boolean);return{combineWith:"OR",queries:[{combineWith:"AND",queries:r},{combineWith:"AND",queries:this.tokenizeWords(e).filter(Boolean)},{combineWith:"AND",queries:r.flatMap(pc)},{combineWith:"AND",queries:r.flatMap(hc)}]}}tokenizeWords(e,{skipChs:n=!1}={}){let r=e.split(Eh);return n?r:this.tokenizeChsWord(r)}tokenizeTokens(e,{skipChs:n=!1}={}){let r=e.split(ii);return n?r:this.tokenizeChsWord(r)}tokenizeChsWord(e){let n=this.plugin.getChsSegmenter();return n?e.flatMap(r=>gh.test(r)?n.cut(r,{search:!0}):[r]):e}};var Gd=class{constructor(e){this.plugin=e;this.indexedDocuments=new Map;this.tokenizer=new Wd(e),this.minisearch=new Ss(this.getOptions())}async loadCache(){await this.plugin.embedsRepository.loadFromCache();let e=await this.plugin.database.getMinisearchCache();return e?(this.minisearch=await Ss.loadJSAsync(e.data,this.getOptions()),this.indexedDocuments=new Map(e.paths.map(n=>[n.path,n.mtime])),!0):(console.log("Omnisearch - No cache found"),!1)}getDocumentsToReindex(e){let n=new Map(e.map(i=>[i.path,i.mtime])),r=e.filter(i=>!this.indexedDocuments.has(i.path)||this.indexedDocuments.get(i.path)!==i.mtime),s=[...this.indexedDocuments].filter(([i,a])=>!n.has(i)||n.get(i)!==a).map(i=>({path:i[0],mtime:i[1]}));return{toAdd:r,toRemove:s}}async addFromPaths(e){le("Adding files",e);let n=(await Promise.all(e.map(async s=>await this.plugin.documentsRepository.getDocument(s)))).filter(s=>!!s?.path);le("Sorting documents to first index markdown"),n=Wc(n,s=>s.path.endsWith(".md")?0:1),this.removeFromPaths(n.filter(s=>this.indexedDocuments.has(s.path)).map(s=>s.path));let r=Sh(n,500);for(let s of r){le("Indexing into search engine",s),s.forEach(a=>this.indexedDocuments.set(a.path,a.mtime));let i=s.filter(a=>this.minisearch.has(a.path));this.removeFromPaths(i.map(a=>a.path)),await this.minisearch.addAllAsync(s)}}removeFromPaths(e){e.forEach(r=>this.indexedDocuments.delete(r));let n=e.filter(r=>this.minisearch.has(r));this.minisearch.discardAll(n)}async search(e,n){let r=this.plugin.settings;if(e.isEmpty())return[];le("=== New search ==="),le("Starting search for",e);let s;switch(r.fuzziness){case"0":s=0;break;case"1":s=.1;break;default:s=.2;break}let i=this.tokenizer.tokenizeForSearch(e.segmentsToStr());le(JSON.stringify(i,null,1));let a=this.minisearch.search(i,{prefix:d=>d.length>=n.prefixLength,fuzzy:d=>d.length<=3?0:d.length<=5?s/2:s,boost:{basename:r.weightBasename,aliases:r.weightBasename,displayTitle:r.weightBasename,directory:r.weightDirectory,headings1:r.weightH1,headings2:r.weightH2,headings3:r.weightH3,tags:r.weightUnmarkedTags,unmarkedTags:r.weightUnmarkedTags},tokenize:d=>[d]});if(le(`Found ${a.length} results`,a),e.query.ext?.length&&(a=a.filter(d=>{let f="."+d.id.split(".").pop();return e.query.ext?.some(p=>f.startsWith(p.startsWith(".")?p:"."+p))})),e.query.path&&(a=a.filter(d=>e.query.path?.some(f=>d.id.toLowerCase().includes(f.toLowerCase())))),e.query.exclude.path&&(a=a.filter(d=>!e.query.exclude.path?.some(f=>d.id.toLowerCase().includes(f.toLowerCase())))),!a.length)return[];if(n.singleFilePath)return a.filter(d=>d.id===n.singleFilePath);le("searching with downranked folders",r.downrankedFoldersFilters),r.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 o=e.getTags();for(let d of a){let f=d.id;if(r.downrankedFoldersFilters.length>0){let E=!1;r.downrankedFoldersFilters.forEach(m=>{f.startsWith(m)&&(f===m||f.startsWith(m+"/"))&&(le("searching with downranked folders in path: ",f),E=!0)}),E&&(d.score/=10);let T=f.split("/"),w=T.length;for(let m=0;m<w;m++){let I=T[m];if(r.downrankedFoldersFilters.includes(I)){d.score/=10;break}}}let p=this.plugin.app.metadataCache.getCache(f);if(p)for(let{name:E,weight:T}of r.weightCustomProperties){let w=p?.frontmatter?.[E];w&&d.terms.some(m=>w.includes(m))&&(le(`Boosting field "${E}" x${T} for ${f}`),d.score*=T)}for(let E of o)(d.tags??[]).includes(E)&&(d.score*=100)}le("Sorting and limiting results"),a=a.sort((d,f)=>f.score-d.score).slice(0,50),le("Filtered results:",a),a.length&&le("First result:",a[0]);let c=await Promise.all(a.map(async d=>await this.plugin.documentsRepository.getDocument(d.id))),l=e.getExactTerms();l.length&&(le("Filtering with quoted terms: ",l),a=a.filter(d=>{let f=c.find(T=>T.path===d.id),p=f?.path.toLowerCase()??"",E=(f?.cleanedContent??"").toLowerCase();return l.every(T=>E.includes(T)||un(p,this.plugin.settings.ignoreArabicDiacritics).includes(T))}));let h=e.query.exclude.text;return h.length&&(le("Filtering with exclusions"),a=a.filter(d=>{let f=(c.find(p=>p.path===d.id)?.content??"").toLowerCase();return h.every(p=>!f.includes(p))})),le("Deduping"),a=a.filter((d,f,p)=>p.findIndex(E=>E.id===d.id)===f),a}async getSuggestions(e,n){let r;this.plugin.settings.simpleSearch?r=await this.search(e,{prefixLength:3,singleFilePath:n?.singleFilePath}):r=await this.search(e,{prefixLength:1,singleFilePath:n?.singleFilePath});let s=await Promise.all(r.map(async o=>await this.plugin.documentsRepository.getDocument(o.id))),i=s.length;for(let o=0;o<i;o++){let c=s[o];if(!c)continue;let l=this.plugin.embedsRepository.getEmbeds(c.path).slice(0,this.plugin.settings.maxEmbeds);for(let h of l){i++;let d=await this.plugin.documentsRepository.getDocument(h);s.splice(o+1,0,d),r.splice(o+1,0,{id:d.path,score:0,terms:[],queryTerms:[],match:{},isEmbed:!0}),o++}}let a=r.map(o=>{le("Locating matches for",o.id);let c=s.find(f=>f.path===o.id);c||(console.warn(`Omnisearch - Note "${o.id}" not in the live cache`),c={content:"",basename:o.id,path:o.id});let l=[...o.terms,...e.getExactTerms(),...e.getTags()];le("Matching tokens:",l),le("Getting matches locations...");let h=this.plugin.textProcessor.getMatches(c.content,l,e);return le(`Matches for note "${c.path}"`,h),B({score:o.score,foundWords:l,matches:h,isEmbed:o.isEmbed},c)});return le("Suggestions:",a),a}getSerializedMiniSearch(){return this.minisearch.toJSON()}getSerializedIndexedDocuments(){return Array.from(this.indexedDocuments).map(([e,n])=>({path:e,mtime:n}))}getOptions(){return{tokenize:this.tokenizer.tokenizeForIndexing.bind(this.tokenizer),extractField:(e,n)=>{if(n==="directory"){let r=e.path.split("/");return r.pop(),r.join("/")}return e[n]},processTerm:e=>(this.plugin.settings.ignoreDiacritics?un(e,this.plugin.settings.ignoreArabicDiacritics):e).toLowerCase(),idField:"path",fields:["basename","directory","aliases","content","headings1","headings2","headings3"],storeFields:["tags"],logger(e,n,r){r==="version_conflict"&&new JT.Notice("Omnisearch - Your index cache may be incorrect or corrupted. If this message keeps appearing, go to Settings to clear the cache.",5e3)}}}};var Qs=_e(require("obsidian"));ut();ci();var $d=class{constructor(e){this.plugin=e;this.documents=new Map;this.errorsCount=0;this.errorsWarned=!1;setInterval(()=>{this.errorsCount>0&&--this.errorsCount},1e3)}async addDocument(e){try{let n=await this.getAndMapIndexedDocument(e);if(!n.path){console.error(`Missing .path field in IndexedDocument "${n.basename}", skipping`);return}this.documents.set(e,n),this.plugin.embedsRepository.refreshEmbedsForNote(e)}catch(n){console.warn(`Omnisearch: Error while adding "${e}" to live cache`,n),this.removeDocument(e),this.countError()}}removeDocument(e){this.documents.delete(e)}async getDocument(e){return this.documents.has(e)?this.documents.get(e):(le("Generating IndexedDocument from",e),await this.addDocument(e),this.documents.get(e))}async getAndMapIndexedDocument(e){e=(0,Qs.normalizePath)(e);let n=this.plugin.app,r=n.vault.getAbstractFileByPath(e);if(!r)throw new Error(`Invalid file path: "${e}"`);if(!(r instanceof Qs.TFile))throw new Error(`Not a TFile: "${e}"`);let s=null,i=this.plugin.getTextExtractor(),a=this.plugin.getAIImageAnalyzer();if(this.plugin.notesIndexer.isFilePlaintext(e))s=await n.vault.cachedRead(r);else if(cn(e)){let h=await n.vault.cachedRead(r),d=h?JSON.parse(h):{},f=[];for(let p of d.nodes??[])p.type==="text"?f.push(p.text):p.type==="file"&&f.push(p.file);for(let p of(d.edges??[]).filter(E=>!!E.label))f.push(p.label);s=f.join(`\r
`)}else if(oi(e))try{let h=JSON.parse(await n.vault.cachedRead(r)),d=[],f=p=>{for(let E in p)typeof p[E]=="object"?f(p[E]):E==="content"&&d.push(p[E])};f(h),s=d.join(`\r
`)}catch(h){console.error("Omnisearch: Error while parsing Dataloom file",e),console.error(h)}else Jt(e)&&(this.plugin.settings.imagesIndexing&&i?.canFileBeExtracted(e)||this.plugin.settings.aiImageIndexing&&a?.canBeAnalyzed(r))?(this.plugin.settings.imagesIndexing&&i?.canFileBeExtracted(e)&&(s=await i.extractText(r)),this.plugin.settings.aiImageIndexing&&a?.canBeAnalyzed(r)&&(s=await a.analyzeImage(r)+(s??""))):en(e)&&this.plugin.settings.PDFIndexing&&i?.canFileBeExtracted(e)?s=await i.extractText(r):Ch(e)&&this.plugin.settings.officeIndexing&&i?.canFileBeExtracted(e)?s=await i.extractText(r):this.plugin.notesIndexer.isFilenameIndexable(e)&&(s=r.path);s==null&&(console.warn(`Omnisearch: ${s} content for file`,r.path),s="");let o=n.metadataCache.getFileCache(r);if(o){let h=Oh(this.plugin.app,r,o);for(let d of h.filter(f=>!this.documents.has(f))){let f=this.plugin.notesIndexer.generateIndexableNonexistingDocument(d,r.path)}if(o.frontmatter?.["excalidraw-plugin"]){let d=o.sections?.filter(f=>f.type==="comment")??[];for(let{start:f,end:p}of d.map(E=>E.position))s=s.substring(0,f.offset-1)+s.substring(p.offset)}}let c=o?.frontmatter?.[this.plugin.settings.displayTitle]??"",l=Ah(o);return{basename:r.basename,displayTitle:c,content:s,cleanedContent:xh(un(s)),path:r.path,mtime:r.stat.mtime,tags:l,unmarkedTags:l.map(h=>h.replace("#","")),aliases:yh(o).join(""),headings1:o?La(o,1).join(" "):"",headings2:o?La(o,2).join(" "):"",headings3:o?La(o,3).join(" "):""}}countError(){++this.errorsCount>5&&!this.errorsWarned&&(this.errorsWarned=!0,new Qs.Notice("Omnisearch \u26A0\uFE0F There might be an issue with your cache. You should clean it in Omnisearch settings and restart Obsidian."))}};ut();ci();ut();var Qd=class{constructor(e){this.plugin=e;this.notesToReindex=new Set}flagNoteForReindex(e){this.notesToReindex.add(e)}async refreshIndex(){for(let n of this.notesToReindex)le("Updating file",n.path),await this.plugin.documentsRepository.addDocument(n.path);let e=[...this.notesToReindex].map(n=>n.path);e.length&&(this.plugin.searchEngine.removeFromPaths(e),await this.plugin.searchEngine.addFromPaths(e),this.notesToReindex.clear())}isFileIndexable(e){return this.isFilenameIndexable(e)||this.isContentIndexable(e)}isContentIndexable(e){let n=this.plugin.settings,r=!!this.plugin.getTextExtractor(),s=!!this.plugin.getAIImageAnalyzer(),i=r&&n.PDFIndexing,a=r&&n.imagesIndexing,o=s&&n.aiImageIndexing;return this.isFilePlaintext(e)||cn(e)||oi(e)||i&&en(e)||a&&Jt(e)||o&&Jt(e)}isFilenameIndexable(e){return this.canIndexUnsupportedFiles()||this.isFilePlaintext(e)||cn(e)||oi(e)}canIndexUnsupportedFiles(){return this.plugin.settings.unsupportedFilesIndexing==="yes"||this.plugin.settings.unsupportedFilesIndexing==="default"&&!!this.plugin.app.vault.getConfig("showUnsupportedFiles")}generateIndexableNonexistingDocument(e,n){return e=Ec(e),{path:e+(e.endsWith(".md")?"":".md"),basename:e,displayTitle:"",mtime:0,content:"",cleanedContent:"",tags:[],unmarkedTags:[],aliases:"",headings1:"",headings2:"",headings3:"",doesNotExist:!0,parent:n}}isFilePlaintext(e){return[...this.plugin.settings.indexedFileTypes,"md"].some(n=>e.endsWith(`.${n}`))}};el();var $u=_e(require("obsidian"));ut();var Xd=class{constructor(e){this.plugin=e;this.embeds=new Map}addEmbed(e,n){this.embeds.has(e)||this.embeds.set(e,new Set),this.embeds.get(e).add(n)}removeFile(e){this.embeds.delete(e),this.refreshEmbedsForNote(e)}renameFile(e,n){this.embeds.has(e)&&(this.embeds.set(n,this.embeds.get(e)),this.embeds.delete(e)),this.embeds.forEach((r,s)=>{r.has(e)&&(r.delete(e),r.add(n))})}refreshEmbedsForNote(e){this.embeds.forEach((n,r)=>{n.has(e)&&n.delete(e)}),this.addEmbedsForNote(e)}getEmbeds(e){return this.embeds.has(e)?[...this.embeds.get(e)]:[]}async writeToCache(){le("Writing embeds to cache");let e=this.plugin.database,n=[];for(let[r,s]of this.embeds)n.push({embedded:r,referencedBy:[...s]});await e.embeds.clear(),await e.embeds.bulkAdd(n)}async loadFromCache(){try{let e=this.plugin.database;if(!e.embeds){le("No embeds in cache");return}le("Loading embeds from cache");let n=await e.embeds.toArray();for(let{embedded:r,referencedBy:s}of n)for(let i of s)this.addEmbed(r,i)}catch{this.plugin.database.clearCache(),console.error("Omnisearch - Error while loading embeds cache"),new $u.Notice("Omnisearch - There was an error while loading the cache. Please restart Obsidian.")}}addEmbedsForNote(e){let n=(this.plugin.app.metadataCache.getCache(e)?.embeds??[]).map(r=>this.plugin.app.metadataCache.getFirstLinkpathDest((0,$u.getLinkpath)(r.link),e)).filter(r=>!!r);for(let r of n)this.addEmbed(r.path,e)}};var Zd=class{constructor(e){this.plugin=e;this.nextQueryIsEmpty=!1}async addToHistory(e){if(!e){this.nextQueryIsEmpty=!0;return}this.nextQueryIsEmpty=!1;let n=this.plugin.database,r=await n.searchHistory.toArray();r=r.filter(s=>s.query!==e).reverse(),r.unshift({query:e}),r=r.slice(0,10),await n.searchHistory.clear(),await n.searchHistory.bulkAdd(r)}async getHistory(){let e=(await this.plugin.database.searchHistory.toArray()).reverse().map(n=>n.query);return this.nextQueryIsEmpty&&e.unshift(""),e}};var Jd=class extends Dn.Plugin{constructor(e,n){super(e,n);this.apiHttpServer=null;this.settings=go(this.app);this.embedsRepository=new Xd(this);this.database=new Wo(this);this.notesIndexer=new Qd(this);this.textProcessor=new Zc(this);this.searchEngine=new Gd(this);this.searchHistory=new Zd(this);this.documentsRepository=new $d(this)}async onload(){if(this.settings=await kg(this),this.addSettingTab(new Gc(this)),Dn.Platform.isMobile||Promise.resolve().then(()=>(sx(),rx)).then(r=>this.apiHttpServer=r.getServer(this)),$c(this.app)){console.debug("Plugin disabled");return}await SO(this.app),await this.database.clearOldDatabases(),Sb(this);let e=this.settings;e.ribbonIcon&&this.addRibbonButton(),ae.disable("vault"),ae.disable("infile"),ae.on("global",Ra.ToggleExcerpts,()=>{_r.set(!e.showExcerpt)}),this.addCommand({id:"show-modal",name:"Vault search",callback:()=>{new Gn(this).open()}}),this.addCommand({id:"show-modal-infile",name:"In-file search",editorCallback:(r,s)=>{s.file&&new hs(this,s.file).open()}});let n=this.searchEngine;this.app.workspace.onLayoutReady(async()=>{this.registerEvent(this.app.vault.on("create",r=>{r instanceof Dn.TFile&&this.notesIndexer.isFileIndexable(r.path)&&(le("Indexing new file",r.path),n.addFromPaths([r.path]),this.embedsRepository.refreshEmbedsForNote(r.path))})),this.registerEvent(this.app.vault.on("delete",r=>{le("Removing file",r.path),this.documentsRepository.removeDocument(r.path),n.removeFromPaths([r.path]),this.embedsRepository.removeFile(r.path)})),this.registerEvent(this.app.vault.on("modify",async r=>{this.notesIndexer.isFileIndexable(r.path)&&this.notesIndexer.flagNoteForReindex(r),this.embedsRepository.refreshEmbedsForNote(r.path)})),this.registerEvent(this.app.vault.on("rename",async(r,s)=>{this.notesIndexer.isFileIndexable(r.path)&&(le("Renaming file",r.path),this.documentsRepository.removeDocument(s),await this.documentsRepository.addDocument(r.path),n.removeFromPaths([s]),await n.addFromPaths([r.path]),this.embedsRepository.renameFile(s,r.path))})),this.refreshIndexCallback=this.notesIndexer.refreshIndex.bind(this.notesIndexer),addEventListener("blur",this.refreshIndexCallback),removeEventListener,await this.executeFirstLaunchTasks(),await this.populateIndex(),this.apiHttpServer&&e.httpApiEnabled&&this.apiHttpServer.listen(e.httpApiPort)})}async executeFirstLaunchTasks(){let e="1.21.0";this.settings.welcomeMessage=e,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",e=>{new Gn(this).open()})}removeRibbonButton(){this.ribbonButton&&this.ribbonButton.parentNode?.removeChild(this.ribbonButton)}getChsSegmenter(){return this.app.plugins.plugins["cm-chs-patch"]}getTextExtractor(){return this.app.plugins?.plugins?.["text-extractor"]?.api}getAIImageAnalyzer(){return this.app.plugins?.plugins?.["ai-image-analyzer"]?.api}async populateIndex(){console.time("Indexing total time"),Pn.set(Nt.ReadingFiles);let e=this.app.vault.getFiles().filter(s=>this.notesIndexer.isFileIndexable(s.path));console.debug(`${e.length} files total`),console.debug(`Cache is ${Wn()?"enabled":"disabled"}`);let n=this.searchEngine;Wn()&&(console.time("Loading index from cache"),Pn.set(Nt.LoadingCache),await n.loadCache()&&console.timeEnd("Loading index from cache"));let r=n.getDocumentsToReindex(e.map(s=>({path:s.path,mtime:s.stat.mtime})));if(Wn()&&(r.toAdd.length&&console.debug("Total number of files to add/update: "+r.toAdd.length),r.toRemove.length&&console.debug("Total number of files to remove: "+r.toRemove.length)),r.toAdd.length>=1e3&&Wn()&&new Dn.Notice(`${r.toAdd.length} files need to be indexed. Obsidian may experience stutters and freezes during the process`,1e4),Pn.set(Nt.IndexingFiles),n.removeFromPaths(r.toRemove.map(s=>s.path)),await n.addFromPaths(r.toAdd.map(s=>s.path)),(r.toRemove.length||r.toAdd.length)&&Wn()){Pn.set(Nt.WritingCache);let s=this.settings.useCache;s&&!this.settings.DANGER_forceSaveCache&&(this.settings.useCache=!1,await ue(this)),await this.database.writeMinisearchCache(),await this.embedsRepository.writeToCache(),s&&(this.settings.useCache=!0,await ue(this))}console.timeEnd("Indexing total time"),r.toAdd.length>=1e3&&Wn()&&new Dn.Notice("Your files have been indexed."),Pn.set(Nt.Done),Ab()}};async function SO(t){let e=[`${t.vault.configDir}/plugins/omnisearch/searchIndex.json`,`${t.vault.configDir}/plugins/omnisearch/notesCache.json`,`${t.vault.configDir}/plugins/omnisearch/notesCache.data`,`${t.vault.configDir}/plugins/omnisearch/searchIndex.data`,`${t.vault.configDir}/plugins/omnisearch/historyCache.json`,`${t.vault.configDir}/plugins/omnisearch/pdfCache.data`];for(let n of e)if(await t.vault.adapter.exists(n))try{await t.vault.adapter.remove(n)}catch{}}

/* nosourcemap */
