typedoc-theme-oxide 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index.css.map +1 -1
- package/dist/assets/index.js +12 -20
- package/dist/assets/index.js.map +1 -1
- package/dist/plugin/context/base.js.map +1 -1
- package/dist/plugin/context/index.js.map +1 -1
- package/dist/plugin/context/mixins/comment.js.map +1 -1
- package/dist/plugin/context/mixins/container.js.map +1 -1
- package/dist/plugin/context/mixins/layout.js.map +1 -1
- package/dist/plugin/context/mixins/members.js +99 -54
- package/dist/plugin/context/mixins/members.js.map +1 -1
- package/dist/plugin/context/mixins/navigation.js.map +1 -1
- package/dist/plugin/context/mixins/project.js.map +1 -1
- package/dist/plugin/context/utils.js +1 -1
- package/dist/plugin/context/utils.js.map +1 -1
- package/dist/plugin/index.js +7 -5
- package/dist/plugin/index.js.map +1 -1
- package/dist/plugin/lib/index.js.map +1 -1
- package/dist/plugin/theme.js.map +1 -1
- package/dist/plugin/utils.js.map +1 -1
- package/package.json +18 -17
package/dist/assets/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(){"use strict";var t="undefined"!=typeof document?document.currentScript:null;function e(t,e,i,r,n,s){function o(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var a,l=r.kind,h="getter"===l?"get":"setter"===l?"set":"value",c=!e&&t?r.static?t:t.prototype:null,u=e||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),f=!1,d=i.length-1;d>=0;d--){var
|
|
1
|
+
!function(){"use strict";var t="undefined"!=typeof document?document.currentScript:null;function e(t,e,i,r,n,s){function o(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var a,l=r.kind,h="getter"===l?"get":"setter"===l?"set":"value",c=!e&&t?r.static?t:t.prototype:null,u=e||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),f=!1,d=i.length-1;d>=0;d--){var p={};for(var g in r)p[g]="access"===g?{}:r[g];for(var g in r.access)p.access[g]=r.access[g];p.addInitializer=function(t){if(f)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(t||null))};var m=(0,i[d])("accessor"===l?{get:u.get,set:u.set}:u[h],p);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(a=o(m.get))&&(u.get=a),(a=o(m.set))&&(u.set=a),(a=o(m.init))&&n.unshift(a)}else(a=o(m))&&("field"===l?n.unshift(a):u[h]=a)}c&&Object.defineProperty(c,r.name,u),f=!0}function i(t,e,i){for(var r=arguments.length>2,n=0;n<e.length;n++)i=r?e[n].call(t,i):e[n].call(t);return r?i:void 0}"function"==typeof SuppressedError&&SuppressedError;
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2019 Google LLC
|
|
@@ -9,18 +9,18 @@ const r=globalThis,n=r.ShadowRoot&&(void 0===r.ShadyCSS||r.ShadyCSS.nativeShadow
|
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2017 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
*/,{is:h,defineProperty:c,getOwnPropertyDescriptor:u,getOwnPropertyNames:f,getOwnPropertySymbols:d,getPrototypeOf:
|
|
12
|
+
*/,{is:h,defineProperty:c,getOwnPropertyDescriptor:u,getOwnPropertyNames:f,getOwnPropertySymbols:d,getPrototypeOf:p}=Object,g=globalThis,m=g.trustedTypes,y=m?m.emptyScript:"",b=g.reactiveElementPolyfillSupport,v=(t,e)=>t,w={toAttribute(t,e){switch(e){case Boolean:t=t?y:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},_=(t,e)=>!h(t,e),S={attribute:!0,type:String,converter:w,reflect:!1,useDefault:!1,hasChanged:_};Symbol.metadata??=Symbol("metadata"),g.litPropertyMetadata??=new WeakMap;let x=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=S){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,e);void 0!==r&&c(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){const{get:r,set:n}=u(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:r,set(e){const s=r?.call(this);n?.call(this,e),this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??S}static _$Ei(){if(this.hasOwnProperty(v("elementProperties")))return;const t=p(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(v("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(v("properties"))){const t=this.properties,e=[...f(t),...d(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(n)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),n=r.litNonce;void 0!==n&&e.setAttribute("nonce",n),e.textContent=i.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){const i=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,i);if(void 0!==r&&!0===i.reflect){const n=(void 0!==i.converter?.toAttribute?i.converter:w).toAttribute(e,i.type);this._$Em=t,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(t,e){const i=this.constructor,r=i._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=i.getPropertyOptions(r),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:w;this._$Em=r,this[r]=n.fromAttribute(e,t.type)??this._$Ej?.get(r)??null,this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){const r=this.constructor,n=this[t];if(i??=r.getPropertyOptions(t),!((i.hasChanged??_)(n,e)||i.useDefault&&i.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:r,wrapped:n},s){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,s??e??this[t]),!0!==n||void 0!==s)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===r&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,r=this[e];!0!==t||this._$AL.has(e)||void 0===r||this.C(e,void 0,i,r)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}};x.elementStyles=[],x.shadowRootOptions={mode:"open"},x[v("elementProperties")]=new Map,x[v("finalized")]=new Map,b?.({ReactiveElement:x}),(g.reactiveElementVersions??=[]).push("2.1.0");
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
|
15
15
|
* Copyright 2017 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
17
|
*/
|
|
18
|
-
const
|
|
18
|
+
const k=globalThis,T=k.trustedTypes,j=T?T.createPolicy("lit-html",{createHTML:t=>t}):void 0,A="$lit$",P=`lit$${Math.random().toFixed(9).slice(2)}$`,$="?"+P,O=`<${$}>`,I=document,C=()=>I.createComment(""),E=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray,R="[ \t\n\f\r]",N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,z=/>/g,F=RegExp(`>|${R}(?:([^\\s"'>=/]+)(${R}*=${R}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),B=/'/g,q=/"/g,L=/^(?:script|style|textarea|title)$/i,U=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),V=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),G=new WeakMap,W=I.createTreeWalker(I,129);function K(t,e){if(!M(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==j?j.createHTML(e):e}const J=(t,e)=>{const i=t.length-1,r=[];let n,s=2===e?"<svg>":3===e?"<math>":"",o=N;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(o.lastIndex=c,l=o.exec(i),null!==l);)c=o.lastIndex,o===N?"!--"===l[1]?o=D:void 0!==l[1]?o=z:void 0!==l[2]?(L.test(l[2])&&(n=RegExp("</"+l[2],"g")),o=F):void 0!==l[3]&&(o=F):o===F?">"===l[0]?(o=n??N,h=-1):void 0===l[1]?h=-2:(h=o.lastIndex-l[2].length,a=l[1],o=void 0===l[3]?F:'"'===l[3]?q:B):o===q||o===B?o=F:o===D||o===z?o=N:(o=F,n=void 0);const u=o===F&&t[e+1].startsWith("/>")?" ":"";s+=o===N?i+O:h>=0?(r.push(a),i.slice(0,h)+A+i.slice(h)+P+u):i+P+(-2===h?e:u)}return[K(t,s+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]};class Z{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let n=0,s=0;const o=t.length-1,a=this.parts,[l,h]=J(t,e);if(this.el=Z.createElement(l,i),W.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=W.nextNode())&&a.length<o;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(A)){const e=h[s++],i=r.getAttribute(t).split(P),o=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:o[2],strings:i,ctor:"."===o[1]?et:"?"===o[1]?it:"@"===o[1]?rt:tt}),r.removeAttribute(t)}else t.startsWith(P)&&(a.push({type:6,index:n}),r.removeAttribute(t));if(L.test(r.tagName)){const t=r.textContent.split(P),e=t.length-1;if(e>0){r.textContent=T?T.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],C()),W.nextNode(),a.push({type:2,index:++n});r.append(t[e],C())}}}else if(8===r.nodeType)if(r.data===$)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(P,t+1));)a.push({type:7,index:n}),t+=P.length-1}n++}}static createElement(t,e){const i=I.createElement("template");return i.innerHTML=t,i}}function Q(t,e,i=t,r){if(e===V)return e;let n=void 0!==r?i._$Co?.[r]:i._$Cl;const s=E(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),void 0===s?n=void 0:(n=new s(t),n._$AT(t,i,r)),void 0!==r?(i._$Co??=[])[r]=n:i._$Cl=n),void 0!==n&&(e=Q(t,n._$AS(t,e.values),n,r)),e}let X=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,r=(t?.creationScope??I).importNode(e,!0);W.currentNode=r;let n=W.nextNode(),s=0,o=0,a=i[0];for(;void 0!==a;){if(s===a.index){let e;2===a.type?e=new Y(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new nt(n,this,t)),this._$AV.push(e),a=i[++o]}s!==a?.index&&(n=W.nextNode(),s++)}return W.currentNode=I,r}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},Y=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,r){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Q(this,t,e),E(t)?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==V&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>M(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==H&&E(this._$AH)?this._$AA.nextSibling.data=t:this.T(I.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,r="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=Z.createElement(K(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new X(r,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=G.get(t.strings);return void 0===e&&G.set(t.strings,e=new Z(t)),e}k(e){M(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let r,n=0;for(const s of e)n===i.length?i.push(r=new t(this.O(C()),this.O(C()),this,this.options)):r=i[n],r._$AI(s),n++;n<i.length&&(this._$AR(r&&r._$AB.nextSibling,n),i.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}};class tt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,r,n){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=H}_$AI(t,e=this,i,r){const n=this.strings;let s=!1;if(void 0===n)t=Q(this,t,e,0),s=!E(t)||t!==this._$AH&&t!==V,s&&(this._$AH=t);else{const r=t;let o,a;for(t=n[0],o=0;o<n.length-1;o++)a=Q(this,r[i+o],e,o),a===V&&(a=this._$AH[o]),s||=!E(a)||a!==this._$AH[o],a===H?t=H:t!==H&&(t+=(a??"")+n[o+1]),this._$AH[o]=a}s&&!r&&this.j(t)}j(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}let et=class extends tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===H?void 0:t}},it=class extends tt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==H)}};class rt extends tt{constructor(t,e,i,r,n){super(t,e,i,r,n),this.type=5}_$AI(t,e=this){if((t=Q(this,t,e,0)??H)===V)return;const i=this._$AH,r=t===H&&i!==H||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==H&&(i===H||r);r&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class nt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Q(this,t)}}const st=k.litHtmlPolyfillSupport;st?.(Z,Y),(k.litHtmlVersions??=[]).push("3.3.0");const ot=globalThis;
|
|
19
19
|
/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2017 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/class at extends
|
|
23
|
+
*/class at extends x{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{const r=i?.renderBefore??e;let n=r._$litPart$;if(void 0===n){const t=i?.renderBefore??null;r._$litPart$=n=new Y(e.insertBefore(C(),t),t,void 0,i??{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return V}}at._$litElement$=!0,at.finalized=!0,ot.litElementHydrateSupport?.({LitElement:at});const lt=ot.litElementPolyfillSupport;lt?.({LitElement:at}),(ot.litElementVersions??=[]).push("4.2.0");
|
|
24
24
|
/**
|
|
25
25
|
* @license
|
|
26
26
|
* Copyright 2017 Google LLC
|
|
@@ -31,34 +31,26 @@ const ht=t=>(e,i)=>{void 0!==i?i.addInitializer((()=>{customElements.define(t,e)
|
|
|
31
31
|
* @license
|
|
32
32
|
* Copyright 2017 Google LLC
|
|
33
33
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
|
-
*/,ct={attribute:!0,type:String,converter:
|
|
34
|
+
*/,ct={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:_},ut=(t=ct,e,i)=>{const{kind:r,metadata:n}=i;let s=globalThis.litPropertyMetadata.get(n);if(void 0===s&&globalThis.litPropertyMetadata.set(n,s=new Map),"setter"===r&&((t=Object.create(t)).wrapped=!0),s.set(i.name,t),"accessor"===r){const{name:r}=i;return{set(i){const n=e.get.call(this);e.set.call(this,i),this.requestUpdate(r,n,t)},init(e){return void 0!==e&&this.C(r,void 0,t,e),e}}}if("setter"===r){const{name:r}=i;return function(i){const n=this[r];e.call(this,i),this.requestUpdate(r,n,t)}}throw Error("Unsupported decorator location: "+r)};function ft(t){return(e,i)=>"object"==typeof i?ut(t,e,i):((t,e,i)=>{const r=e.hasOwnProperty(i);return e.constructor.createProperty(i,t),r?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)
|
|
35
35
|
/**
|
|
36
36
|
* @license
|
|
37
37
|
* Copyright 2021 Google LLC
|
|
38
38
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
39
|
-
*/}var dt="object"==typeof global&&global&&global.Object===Object&&global,gt="object"==typeof self&&self&&self.Object===Object&&self,pt=dt||gt||Function("return this")(),mt=pt.Symbol,yt=Object.prototype,bt=yt.hasOwnProperty,vt=yt.toString,_t=mt?mt.toStringTag:void 0;var wt=Object.prototype.toString;var xt=mt?mt.toStringTag:void 0;function kt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":xt&&xt in Object(t)?function(t){var e=bt.call(t,_t),i=t[_t];try{t[_t]=void 0;var r=!0}catch(t){}var n=vt.call(t);return r&&(e?t[_t]=i:delete t[_t]),n}(t):function(t){return wt.call(t)}(t)}var St=/\s/;var $t=/^\s+/;function At(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&St.test(t.charAt(e)););return e}(t)+1).replace($t,""):t}function Pt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var jt=/^[-+]0x[0-9a-f]+$/i,Tt=/^0b[01]+$/i,Ot=/^0o[0-7]+$/i,Et=parseInt;function Ct(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return null!=t&&"object"==typeof t}(t)&&"[object Symbol]"==kt(t)}(t))return NaN;if(Pt(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Pt(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=At(t);var i=Tt.test(t);return i||Ot.test(t)?Et(t.slice(2),i?2:8):jt.test(t)?NaN:+t}var Mt=function(){return pt.Date.now()},Nt=Math.max,It=Math.min;function Dt(t,e,i){var r,n,s,o,a,l,h=0,c=!1,u=!1,f=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function d(e){var i=r,s=n;return r=n=void 0,h=e,o=t.apply(s,i)}function g(t){var i=t-l;return void 0===l||i>=e||i<0||u&&t-h>=s}function p(){var t=Mt();if(g(t))return m(t);a=setTimeout(p,function(t){var i=e-(t-l);return u?It(i,s-(t-h)):i}(t))}function m(t){return a=void 0,f&&r?d(t):(r=n=void 0,o)}function y(){var t=Mt(),i=g(t);if(r=arguments,n=this,l=t,i){if(void 0===a)return function(t){return h=t,a=setTimeout(p,e),c?d(t):o}(l);if(u)return clearTimeout(a),a=setTimeout(p,e),d(l)}return void 0===a&&(a=setTimeout(p,e)),o}return e=Ct(e)||0,Pt(i)&&(c=!!i.leading,s=(u="maxWait"in i)?Nt(Ct(i.maxWait)||0,e):s,f="trailing"in i?!!i.trailing:f),y.cancel=function(){void 0!==a&&clearTimeout(a),h=0,r=l=n=a=void 0},y.flush=function(){return void 0===a?o:m(Mt())},y}function zt(t){throw new Error(`Expected handling to cover all possible cases, but it didn't cover: ${JSON.stringify(t)}`)}function Rt(t,e="Assertion failed"){if(!t)throw new Error(e)}function Ft(t,e){e.addInitializer((function(){Object.defineProperty(this,e.name,{enumerable:!1,configurable:!0,writable:!0})}))}let Lt={};const Ut=new Proxy({},{get:(t,e)=>(...t)=>String(Lt[e]||e).replace(/\{(\d+)\}/g,((e,i)=>t[+i]??"(no placeholder)")),has:(t,e)=>Object.prototype.hasOwnProperty.call(Lt,e)});var Bt,qt;function Ht(t,e){if(t.startsWith(e))return Ht(t.substring(e.length),e);if(t.startsWith('"')){const i=t.indexOf('"',1);if(-1===i)return t.split(e);if(i===t.length-1)return[t];{const r=t.substring(i+1);return[t.substring(0,i+1),...Ht(r,e)]}}return t.split(e)}!function(t){t[t.Verbose=0]="Verbose",t[t.Info=1]="Info",t[t.Warn=2]="Warn",t[t.Error=3]="Error",t[t.None=4]="None"}(Bt||(Bt={})),Bt.Error,Bt.Warn,Bt.Info,Bt.Verbose,function(t){function e(t){const e=t.split("/");let i=!1;for(let t=0;t<e.length;)"."==e[t]&&t+1!=e.length?e.splice(t,1):".."==e[t]?i?t-1==0&&/\w:/i.test(e[0])?e.splice(t,1):(e.splice(t-1,2),t-=1):++t:(i=!0,++t);return e.join("/")}function i(t){return/^\/|^\w:\//.test(t)}t.dirname=function(t){let e=t.length-2;for(;e>0&&"/"!==t[e];--e);switch(e){case-2:case-1:return"/"===t[0]?"/":".";case 0:return t.substring(0,t.indexOf("/")+1);default:return t.slice(0,e)}},t.basename=function(t){let e=t.length-2;for(;e>=0&&"/"!==t[e];--e);switch(e){case-2:case-1:return t;default:return t.endsWith("/")?t.slice(e+1,-1):t.slice(e+1)}},t.relative=function(t,e){if(t==e)return"";Rt(i(t)&&i(e),"resolving relative paths without absolute inputs requires a filesystem"),t.endsWith("/")||(t+="/");const r=e.length;e.endsWith("/")||(e+="/");const n=Math.min(t.length,e.length);let s=0,o=0;for(;o<n&&t[o]===e[o];++o)"/"===t[o]&&(s=o);if(s===t.length-1)return e.substring(t.length,r);let a="";for(let e=s+1;e<t.length;++e)"/"!==t[e]&&e+1!==t.length||(a+=a?"/..":"..");return a+e.substring(s,r)},t.normalize=e,t.resolve=function(t,r){return Rt(i(t),"resolving without an absolute path requires a filesystem"),i(r)?r:e(`${t}/${r}`)},t.isAbsolute=i,t.splitFilename=function(t){const e=t.lastIndexOf(".");return e<1?{name:t,ext:""}:{name:t.substring(0,e),ext:t.substring(e)}}}(qt||(qt={}));class Vt{static UNKNOWN_PACKAGE="<unknown>";packageName;packagePath;qualifiedName;pos=1/0;transientId=NaN;fileName;constructor(t){this.packageName=t.packageName,this.packagePath=t.packagePath,this.qualifiedName=t.qualifiedName}getStableKey(){return Number.isFinite(this.pos)?`${this.packageName}\0${this.packagePath}\0${this.qualifiedName}\0${this.pos}\0${this.transientId}`:`${this.packageName}\0${this.packagePath}\0${this.qualifiedName}`}toDeclarationReference(){return{resolutionStart:"global",moduleSource:this.packageName,symbolReference:{path:Ht(this.qualifiedName,".").map((t=>({navigation:".",path:t})))}}}toObject(){return{packageName:this.packageName,packagePath:this.packagePath,qualifiedName:this.qualifiedName}}}var Wt=globalThis&&globalThis.__esDecorate||function(t,e,i,r,n,s){function o(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var a,l=r.kind,h="getter"===l?"get":"setter"===l?"set":"value",c=!e&&t?r.static?t:t.prototype:null,u=e||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),f=!1,d=i.length-1;d>=0;d--){var g={};for(var p in r)g[p]="access"===p?{}:r[p];for(var p in r.access)g.access[p]=r.access[p];g.addInitializer=function(t){if(f)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(t||null))};var m=(0,i[d])("accessor"===l?{get:u.get,set:u.set}:u[h],g);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(a=o(m.get))&&(u.get=a),(a=o(m.set))&&(u.set=a),(a=o(m.init))&&n.unshift(a)}else(a=o(m))&&("field"===l?n.unshift(a):u[h]=a)}c&&Object.defineProperty(c,r.name,u),f=!0},Gt=globalThis&&globalThis.__runInitializers||function(t,e,i){for(var r=arguments.length>2,n=0;n<e.length;n++)i=r?e[n].call(t,i):e[n].call(t);return r?i:void 0};class Jt{tag;name;content;skipRendering=!1;constructor(t,e){this.tag=t,this.content=e}similarTo(t){return this.tag===t.tag&&this.name===t.tag&&Kt.combineDisplayParts(this.content)===Kt.combineDisplayParts(t.content)}clone(){const t=new Jt(this.tag,Kt.cloneDisplayParts(this.content));return this.name&&(t.name=this.name),t}toObject(){return{tag:this.tag,name:this.name,content:Kt.serializeDisplayParts(this.content)}}fromObject(t,e){this.name=e.name,this.content=Kt.deserializeDisplayParts(t,e.content)}}let Kt=(()=>{let t,e,i,r=[],n=[],s=[],o=[],a=[],l=[];return class h{static{const h="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;t=[Ft],e=[Ft],i=[Ft],Wt(null,null,t,{kind:"field",name:"sourcePath",static:!1,private:!1,access:{has:t=>"sourcePath"in t,get:t=>t.sourcePath,set:(t,e)=>{t.sourcePath=e}},metadata:h},r,n),Wt(null,null,e,{kind:"field",name:"discoveryId",static:!1,private:!1,access:{has:t=>"discoveryId"in t,get:t=>t.discoveryId,set:(t,e)=>{t.discoveryId=e}},metadata:h},s,o),Wt(null,null,i,{kind:"field",name:"inheritedFromParentDeclaration",static:!1,private:!1,access:{has:t=>"inheritedFromParentDeclaration"in t,get:t=>t.inheritedFromParentDeclaration,set:(t,e)=>{t.inheritedFromParentDeclaration=e}},metadata:h},a,l),h&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:h})}static combineDisplayParts(t){let e="";for(const i of t||[])switch(i.kind){case"text":case"code":case"relative-link":e+=i.text;break;case"inline-tag":e+=`{${i.tag} ${i.text}}`;break;default:zt(i)}return e}static cloneDisplayParts(t){return t.map((t=>({...t})))}static serializeDisplayParts(t){return t?.map((t=>{switch(t.kind){case"text":case"code":case"relative-link":return{...t};case"inline-tag":{let e;return"string"==typeof t.target?e=t.target:t.target&&(e="id"in t.target?t.target.id:t.target.toObject()),{...t,target:e}}}}))}static deserializeDisplayParts(t,e){const i=[],r=[],n=e.map((t=>{switch(t.kind){case"text":case"code":return{...t};case"inline-tag":if("number"==typeof t.target){const e={kind:t.kind,tag:t.tag,text:t.text,target:void 0,tsLinkText:t.tsLinkText};return i.push([t.target,e]),e}if("string"==typeof t.target||void 0===t.target)return{kind:"inline-tag",tag:t.tag,text:t.text,target:t.target,tsLinkText:t.tsLinkText};if("object"==typeof t.target)return{kind:"inline-tag",tag:t.tag,text:t.text,target:new Vt(t.target),tsLinkText:t.tsLinkText};zt(t.target);break;case"relative-link":if(t.target){const e={kind:"relative-link",text:t.text,target:null,targetAnchor:t.targetAnchor};return r.push([t.target,e]),e}return{...t,target:void 0,targetAnchor:t.targetAnchor}}}));return(i.length||r.length)&&t.defer((e=>{for(const[e,i]of r)i.target=t.oldFileIdToNewFileId[e];for(const[r,n]of i)n.target=e.getReflectionById(t.oldIdToNewId[r]??-1),n.target||t.logger.warn(Ut.serialized_project_referenced_0_not_part_of_project(r.toString()))})),n}static splitPartsToHeaderAndBody(t){let e=t.findIndex((t=>{switch(t.kind){case"text":case"code":return t.text.includes("\n");case"inline-tag":case"relative-link":return!1}}));if(-1===e)return{header:h.combineDisplayParts(t),body:[]};if("code"===t[e].kind&&--e,-1===e)return{header:"",body:h.cloneDisplayParts(t)};let i=h.combineDisplayParts(t.slice(0,e));const r=t[e].text.indexOf("\n");let n;return-1===r?(i+=t[e].text,n=h.cloneDisplayParts(t.slice(e+1))):(i+=t[e].text.substring(0,r),n=h.cloneDisplayParts(t.slice(e)),n[0].text=n[0].text.substring(r+1)),n[0].text||n.shift(),{header:i.trim(),body:n}}summary;blockTags=[];modifierTags=new Set;label;sourcePath=Gt(this,r,void 0);discoveryId=(Gt(this,n),Gt(this,s,void 0));inheritedFromParentDeclaration=(Gt(this,o),Gt(this,a,void 0));constructor(t=[],e=[],i=new Set){Gt(this,l),this.summary=t,this.blockTags=e,this.modifierTags=i,function(t){const e=t.summary.findIndex((t=>"inline-tag"===t.kind&&"@label"===t.tag));-1!==e&&(t.label=t.summary.splice(e,1)[0].text)}(this)}getShortSummary(t){const e=this.getTag("@summary");if(e)return e.content;if(!t)return[];let i=this.summary.findIndex((t=>{switch(t.kind){case"text":return t.text.includes("\n\n");case"code":return t.text.includes("\n");case"inline-tag":case"relative-link":return!1;default:zt(t)}}));const r=-1!==i;-1===i&&(i=this.summary.length-1);const n=this.summary.slice(0,i);if(-1!==i){const t=this.summary[i].text,e=t.indexOf("\n\n");-1!==e?n.push({...this.summary[i],text:t.slice(0,e)}):r||n.push(this.summary[i])}return n}similarTo(t){if(h.combineDisplayParts(this.summary)!==h.combineDisplayParts(t.summary))return!1;if(this.blockTags.length!==t.blockTags.length)return!1;for(let e=0;e<this.blockTags.length;++e)if(!this.blockTags[e].similarTo(t.blockTags[e]))return!1;return!0}clone(){const t=new h(h.cloneDisplayParts(this.summary),this.blockTags.map((t=>t.clone())),new Set(this.modifierTags));return t.discoveryId=this.discoveryId,t.sourcePath=this.sourcePath,t.inheritedFromParentDeclaration=this.inheritedFromParentDeclaration,t}isEmpty(){return!this.hasVisibleComponent()&&0===this.modifierTags.size}hasVisibleComponent(){return this.summary.some((t=>"text"!==t.kind||""!==t.text))||this.blockTags.length>0}hasModifier(t){return this.modifierTags.has(t)}removeModifier(t){this.modifierTags.delete(t)}getTag(t){return this.blockTags.find((e=>e.tag===t))}getTags(t){return this.blockTags.filter((e=>e.tag===t))}getIdentifiedTag(t,e){return this.blockTags.find((i=>i.tag===e&&i.name===t))}removeTags(t){!function(t,e){for(let i=0;i<t.length;i++)e(t[i])&&(t.splice(i,1),i--)}(this.blockTags,(e=>e.tag===t))}toObject(t){return{summary:h.serializeDisplayParts(this.summary),blockTags:t.toObjectsOptional(this.blockTags),modifierTags:this.modifierTags.size>0?Array.from(this.modifierTags):void 0,label:this.label}}fromObject(t,e){this.summary=h.deserializeDisplayParts(t,e.summary),this.blockTags=e.blockTags?.map((e=>{const i=new Jt(e.tag,[]);return t.fromObject(i,e),i}))||[],this.modifierTags=new Set(e.modifierTags),this.label=e.label}}})();var Zt;!function(t){t[t.Project=1]="Project",t[t.Module=2]="Module",t[t.Namespace=4]="Namespace",t[t.Enum=8]="Enum",t[t.EnumMember=16]="EnumMember",t[t.Variable=32]="Variable",t[t.Function=64]="Function",t[t.Class=128]="Class",t[t.Interface=256]="Interface",t[t.Constructor=512]="Constructor",t[t.Property=1024]="Property",t[t.Method=2048]="Method",t[t.CallSignature=4096]="CallSignature",t[t.IndexSignature=8192]="IndexSignature",t[t.ConstructorSignature=16384]="ConstructorSignature",t[t.Parameter=32768]="Parameter",t[t.TypeLiteral=65536]="TypeLiteral",t[t.TypeParameter=131072]="TypeParameter",t[t.Accessor=262144]="Accessor",t[t.GetSignature=524288]="GetSignature",t[t.SetSignature=1048576]="SetSignature",t[t.TypeAlias=2097152]="TypeAlias",t[t.Reference=4194304]="Reference",t[t.Document=8388608]="Document"}(Zt||(Zt={})),function(t){t.All=2*t.Reference-1,t.ClassOrInterface=t.Class|t.Interface,t.VariableOrProperty=t.Variable|t.Property,t.FunctionOrMethod=t.Function|t.Method,t.ClassMember=t.Accessor|t.Constructor|t.Method|t.Property,t.SomeSignature=t.CallSignature|t.IndexSignature|t.ConstructorSignature|t.GetSignature|t.SetSignature,t.SomeModule=t.Namespace|t.Module,t.SomeType=t.Interface|t.TypeLiteral|t.TypeParameter|t.TypeAlias,t.SomeValue=t.Variable|t.Function,t.SomeMember=t.EnumMember|t.Property|t.Method|t.Accessor,t.SomeExport=t.Module|t.Namespace|t.Enum|t.Variable|t.Function|t.Class|t.Interface|t.TypeAlias|t.Reference,t.MayContainDocuments=t.SomeExport|t.Project|t.Document,t.ExportContainer=t.SomeModule|t.Project,t.Inheritable=t.Accessor|t.IndexSignature|t.Property|t.Method|t.Constructor,t.ContainsCallSignatures=t.Constructor|t.Function|t.Method,t.TypeReferenceTarget=t.Interface|t.TypeAlias|t.Class|t.Enum,t.ValueReferenceTarget=t.Module|t.Namespace|t.Variable|t.Function,t.SignatureContainer=t.ContainsCallSignatures|t.Accessor,t.VariableContainer=t.SomeModule|t.Project,t.MethodContainer=t.ClassOrInterface|t.VariableOrProperty|t.FunctionOrMethod|t.TypeLiteral,t.singularString=function(e){switch(e){case t.Project:return Ut.kind_project();case t.Module:return Ut.kind_module();case t.Namespace:return Ut.kind_namespace();case t.Enum:return Ut.kind_enum();case t.EnumMember:return Ut.kind_enum_member();case t.Variable:return Ut.kind_variable();case t.Function:return Ut.kind_function();case t.Class:return Ut.kind_class();case t.Interface:return Ut.kind_interface();case t.Constructor:return Ut.kind_constructor();case t.Property:return Ut.kind_property();case t.Method:return Ut.kind_method();case t.CallSignature:return Ut.kind_call_signature();case t.IndexSignature:return Ut.kind_index_signature();case t.ConstructorSignature:return Ut.kind_constructor_signature();case t.Parameter:return Ut.kind_parameter();case t.TypeLiteral:return Ut.kind_type_literal();case t.TypeParameter:return Ut.kind_type_parameter();case t.Accessor:return Ut.kind_accessor();case t.GetSignature:return Ut.kind_get_signature();case t.SetSignature:return Ut.kind_set_signature();case t.TypeAlias:return Ut.kind_type_alias();case t.Reference:return Ut.kind_reference();case t.Document:return Ut.kind_document()}},t.pluralString=function(e){switch(e){case t.Project:return Ut.kind_plural_project();case t.Module:return Ut.kind_plural_module();case t.Namespace:return Ut.kind_plural_namespace();case t.Enum:return Ut.kind_plural_enum();case t.EnumMember:return Ut.kind_plural_enum_member();case t.Variable:return Ut.kind_plural_variable();case t.Function:return Ut.kind_plural_function();case t.Class:return Ut.kind_plural_class();case t.Interface:return Ut.kind_plural_interface();case t.Constructor:return Ut.kind_plural_constructor();case t.Property:return Ut.kind_plural_property();case t.Method:return Ut.kind_plural_method();case t.CallSignature:return Ut.kind_plural_call_signature();case t.IndexSignature:return Ut.kind_plural_index_signature();case t.ConstructorSignature:return Ut.kind_plural_constructor_signature();case t.Parameter:return Ut.kind_plural_parameter();case t.TypeLiteral:return Ut.kind_plural_type_literal();case t.TypeParameter:return Ut.kind_plural_type_parameter();case t.Accessor:return Ut.kind_plural_accessor();case t.GetSignature:return Ut.kind_plural_get_signature();case t.SetSignature:return Ut.kind_plural_set_signature();case t.TypeAlias:return Ut.kind_plural_type_alias();case t.Reference:return Ut.kind_plural_reference();case t.Document:return Ut.kind_plural_document()}},t.classString=function(e){return`tsd-kind-${t[e].replace(/(.)([A-Z])/g,((t,e,i)=>`${e}-${i}`)).toLowerCase()}`}}(Zt||(Zt={}));var Qt=globalThis&&globalThis.__esDecorate||function(t,e,i,r,n,s){function o(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var a,l=r.kind,h="getter"===l?"get":"setter"===l?"set":"value",c=!e&&t?r.static?t:t.prototype:null,u=e||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),f=!1,d=i.length-1;d>=0;d--){var g={};for(var p in r)g[p]="access"===p?{}:r[p];for(var p in r.access)g.access[p]=r.access[p];g.addInitializer=function(t){if(f)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(t||null))};var m=(0,i[d])("accessor"===l?{get:u.get,set:u.set}:u[h],g);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(a=o(m.get))&&(u.get=a),(a=o(m.set))&&(u.set=a),(a=o(m.init))&&n.unshift(a)}else(a=o(m))&&("field"===l?n.unshift(a):u[h]=a)}c&&Object.defineProperty(c,r.name,u),f=!0},Xt=globalThis&&globalThis.__runInitializers||function(t,e,i){for(var r=arguments.length>2,n=0;n<e.length;n++)i=r?e[n].call(t,i):e[n].call(t);return r?i:void 0};let Yt=0;var te;!function(t){t[t.None=0]="None",t[t.Private=1]="Private",t[t.Protected=2]="Protected",t[t.Public=4]="Public",t[t.Static=8]="Static",t[t.External=16]="External",t[t.Optional=32]="Optional",t[t.Rest=64]="Rest",t[t.Abstract=128]="Abstract",t[t.Const=256]="Const",t[t.Readonly=512]="Readonly",t[t.Inherited=1024]="Inherited"}(te||(te={}));const ee=[te.Private,te.Protected,te.Static,te.Optional,te.Abstract,te.Const,te.Readonly];class ie{flags=te.None;hasFlag(t){return!!(t&this.flags)}get isPrivate(){return this.hasFlag(te.Private)}get isProtected(){return this.hasFlag(te.Protected)}get isPublic(){return this.hasFlag(te.Public)}get isStatic(){return this.hasFlag(te.Static)}get isExternal(){return this.hasFlag(te.External)}get isOptional(){return this.hasFlag(te.Optional)}get isRest(){return this.hasFlag(te.Rest)}get isAbstract(){return this.hasFlag(te.Abstract)}get isConst(){return this.hasFlag(te.Const)}get isReadonly(){return this.hasFlag(te.Readonly)}get isInherited(){return this.hasFlag(te.Inherited)}setFlag(t,e){switch(t){case te.Private:this.setSingleFlag(te.Private,e),e&&(this.setFlag(te.Protected,!1),this.setFlag(te.Public,!1));break;case te.Protected:this.setSingleFlag(te.Protected,e),e&&(this.setFlag(te.Private,!1),this.setFlag(te.Public,!1));break;case te.Public:this.setSingleFlag(te.Public,e),e&&(this.setFlag(te.Private,!1),this.setFlag(te.Protected,!1));break;default:this.setSingleFlag(t,e)}}static flagString(t){switch(t){case te.None:throw new Error("Should be unreachable");case te.Private:return Ut.flag_private();case te.Protected:return Ut.flag_protected();case te.Public:return Ut.flag_public();case te.Static:return Ut.flag_static();case te.External:return Ut.flag_external();case te.Optional:return Ut.flag_optional();case te.Rest:return Ut.flag_rest();case te.Abstract:return Ut.flag_abstract();case te.Const:return Ut.flag_const();case te.Readonly:return Ut.flag_readonly();case te.Inherited:return Ut.flag_inherited()}}getFlagStrings(){const t=[];for(const e of ee)this.hasFlag(e)&&t.push(ie.flagString(e));return t}setSingleFlag(t,e){!e&&this.hasFlag(t)?this.flags^=t:e&&!this.hasFlag(t)&&(this.flags|=t)}static serializedFlags=["isPrivate","isProtected","isPublic","isStatic","isExternal","isOptional","isRest","isAbstract","isConst","isReadonly","isInherited"];toObject(){return Object.fromEntries(ie.serializedFlags.filter((t=>this[t])).map((t=>[t,!0])))}fromObject(t){for(const e of Object.keys(t)){const t=e.substring(2);t in te&&this.setFlag(te[t],!0)}}}var re;!function(t){t[t.Children=0]="Children",t[t.Documents=1]="Documents",t[t.Parameters=2]="Parameters",t[t.TypeLiteral=3]="TypeLiteral",t[t.TypeParameter=4]="TypeParameter",t[t.Signatures=5]="Signatures",t[t.IndexSignature=6]="IndexSignature",t[t.GetSignature=7]="GetSignature",t[t.SetSignature=8]="SetSignature"}(re||(re={})),(()=>{let t,e,i=[],r=[],n=[],s=[];(class{static{const o="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;t=[Ft],e=[Ft],Qt(null,null,t,{kind:"field",name:"parent",static:!1,private:!1,access:{has:t=>"parent"in t,get:t=>t.parent,set:(t,e)=>{t.parent=e}},metadata:o},i,r),Qt(null,null,e,{kind:"field",name:"project",static:!1,private:!1,access:{has:t=>"project"in t,get:t=>t.project,set:(t,e)=>{t.project=e}},metadata:o},n,s),o&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:o})}id;name;kind;flags=new ie;parent=Xt(this,i,void 0);project=(Xt(this,r),Xt(this,n,void 0));comment=Xt(this,s);constructor(t,e,i){this.id=Yt++,this.parent=i,this.project=i?.project||this,this.name=t,this.kind=e,i?.flags.isExternal&&this.setFlag(te.External)}kindOf(t){const e=Array.isArray(t)?t.reduce(((t,e)=>t|e),0):t;return!!(this.kind&e)}getFullName(t="."){return this.parent&&!this.parent.isProject()?this.parent.getFullName(t)+t+this.name:this.name}getFriendlyFullName(){return this.parent&&!this.parent.isProject()?this.kindOf(Zt.ConstructorSignature|Zt.CallSignature|Zt.GetSignature|Zt.SetSignature)?this.parent.getFriendlyFullName():this.parent.getFriendlyFullName()+"."+this.name:this.name}setFlag(t,e=!0){this.flags.setFlag(t,e)}hasComment(){return!!this.comment&&this.comment.hasVisibleComponent()}hasGetterOrSetter(){return!1}getChildByName(t){const e=Array.isArray(t)?t:Ht(t,"."),i=e[0];let r;return this.traverse((t=>t.name!==i||(r=e.length<=1?t:t.getChildByName(e.slice(1)),!1))),r}isProject(){return!1}isDeclaration(){return!1}isSignature(){return!1}isTypeParameter(){return!1}isParameter(){return!1}isDocument(){return!1}isReference(){return"reference"===this.variant}isDeprecated(){let t=!1;return this.visit({declaration(e){e.signatures?.length&&e.signatures.every((t=>t.comment?.getTag("@deprecated")))&&(t=!0)}}),!(!t&&!this.comment?.getTag("@deprecated"))||(this.parent?.isDeprecated()??!1)}visit(t){t[this.variant]?.(this)}toString(){return Zt[this.kind]+" "+this.name}toStringHierarchy(t=""){const e=[t+this.toString()];return t+=" ",this.traverse((i=>(e.push(i.toStringHierarchy(t)),!0))),e.join("\n")}toObject(t){return{id:this.id,name:this.name,variant:this.variant,kind:this.kind,flags:this.flags.toObject(),comment:this.comment&&!this.comment.isEmpty()?t.toObject(this.comment):void 0}}fromObject(t,e){this.name=e.name,this.kind=e.kind,this.flags.fromObject(e.flags),this.comment=t.revive(e.comment,(()=>new Kt))}})})();var ne=globalThis&&globalThis.__esDecorate||function(t,e,i,r,n,s){function o(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var a,l=r.kind,h="getter"===l?"get":"setter"===l?"set":"value",c=!e&&t?r.static?t:t.prototype:null,u=e||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),f=!1,d=i.length-1;d>=0;d--){var g={};for(var p in r)g[p]="access"===p?{}:r[p];for(var p in r.access)g.access[p]=r.access[p];g.addInitializer=function(t){if(f)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(t||null))};var m=(0,i[d])("accessor"===l?{get:u.get,set:u.set}:u[h],g);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(a=o(m.get))&&(u.get=a),(a=o(m.set))&&(u.set=a),(a=o(m.init))&&n.unshift(a)}else(a=o(m))&&("field"===l?n.unshift(a):u[h]=a)}c&&Object.defineProperty(c,r.name,u),f=!0},se=globalThis&&globalThis.__runInitializers||function(t,e,i){for(var r=arguments.length>2,n=0;n<e.length;n++)i=r?e[n].call(t,i):e[n].call(t);return r?i:void 0};class oe{toString(){return this.stringify(ae.none)}visit(t,...e){return t[this.type]?.(this,...e)}stringify(t){return this.needsParenthesis(t)?`(${this.getTypeString()})`:this.getTypeString()}fromObject(t,e){}estimatePrintWidth(){return this.getTypeString().length}}const ae={none:"none",referenceTypeArgument:"referenceTypeArgument"};
|
|
39
|
+
*/}var dt="object"==typeof global&&global&&global.Object===Object&&global,pt="object"==typeof self&&self&&self.Object===Object&&self,gt=dt||pt||Function("return this")(),mt=gt.Symbol,yt=Object.prototype,bt=yt.hasOwnProperty,vt=yt.toString,wt=mt?mt.toStringTag:void 0;var _t=Object.prototype.toString;var St=mt?mt.toStringTag:void 0;function xt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":St&&St in Object(t)?function(t){var e=bt.call(t,wt),i=t[wt];try{t[wt]=void 0;var r=!0}catch(t){}var n=vt.call(t);return r&&(e?t[wt]=i:delete t[wt]),n}(t):function(t){return _t.call(t)}(t)}var kt=/\s/;var Tt=/^\s+/;function jt(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&kt.test(t.charAt(e)););return e}(t)+1).replace(Tt,""):t}function At(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var Pt=/^[-+]0x[0-9a-f]+$/i,$t=/^0b[01]+$/i,Ot=/^0o[0-7]+$/i,It=parseInt;function Ct(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return null!=t&&"object"==typeof t}(t)&&"[object Symbol]"==xt(t)}(t))return NaN;if(At(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=At(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=jt(t);var i=$t.test(t);return i||Ot.test(t)?It(t.slice(2),i?2:8):Pt.test(t)?NaN:+t}var Et=function(){return gt.Date.now()},Mt=Math.max,Rt=Math.min;function Nt(t,e,i){var r,n,s,o,a,l,h=0,c=!1,u=!1,f=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function d(e){var i=r,s=n;return r=n=void 0,h=e,o=t.apply(s,i)}function p(t){var i=t-l;return void 0===l||i>=e||i<0||u&&t-h>=s}function g(){var t=Et();if(p(t))return m(t);a=setTimeout(g,function(t){var i=e-(t-l);return u?Rt(i,s-(t-h)):i}(t))}function m(t){return a=void 0,f&&r?d(t):(r=n=void 0,o)}function y(){var t=Et(),i=p(t);if(r=arguments,n=this,l=t,i){if(void 0===a)return function(t){return h=t,a=setTimeout(g,e),c?d(t):o}(l);if(u)return clearTimeout(a),a=setTimeout(g,e),d(l)}return void 0===a&&(a=setTimeout(g,e)),o}return e=Ct(e)||0,At(i)&&(c=!!i.leading,s=(u="maxWait"in i)?Mt(Ct(i.maxWait)||0,e):s,f="trailing"in i?!!i.trailing:f),y.cancel=function(){void 0!==a&&clearTimeout(a),h=0,r=l=n=a=void 0},y.flush=function(){return void 0===a?o:m(Et())},y}function Dt(t,e){if(!t)return;const i=t.indexOf(e);-1!==i&&t.splice(i,1)}function zt(t){throw new Error(`Expected handling to cover all possible cases, but it didn't cover: ${JSON.stringify(t)}`)}function Ft(t,e="Assertion failed"){if(!t)throw new Error(e)}function Bt(t,e){e.addInitializer((function(){Object.defineProperty(this,e.name,{enumerable:!1,configurable:!0,writable:!0})}))}let qt={};const Lt=new Proxy({},{get:(t,e)=>(...t)=>String(qt[e]||e).replace(/\{(\d+)\}/g,((e,i)=>t[+i]??"(no placeholder)")),has:(t,e)=>Object.prototype.hasOwnProperty.call(qt,e)});class Ut extends Map{creator;constructor(t){super(),this.creator=t}get(t){const e=super.get(t);if(null!=e)return e;const i=this.creator(t);return this.set(t,i),i}getNoInsert(t){return super.get(t)}}class Vt{[Symbol.toStringTag]="StableKeyMap";impl=new Map;get size(){return this.impl.size}set(t,e){return this.impl.set(t.getStableKey(),[t,e]),this}get(t){return this.impl.get(t.getStableKey())?.[1]}has(t){return null!=this.get(t)}clear(){this.impl.clear()}delete(t){return this.impl.delete(t.getStableKey())}forEach(t,e){for(const[i,r]of this.entries())t.apply(e,[r,i,this])}entries(){return this.impl.values()}*keys(){for(const[t]of this.entries())yield t}*values(){for(const[,t]of this.entries())yield t}[Symbol.iterator](){return this.entries()}}var Ht,Gt;function Wt(t,e){if(t.startsWith(e))return Wt(t.substring(e.length),e);if(t.startsWith('"')){const i=t.indexOf('"',1);if(-1===i)return t.split(e);if(i===t.length-1)return[t];{const r=t.substring(i+1);return[t.substring(0,i+1),...Wt(r,e)]}}return t.split(e)}!function(t){t[t.Verbose=0]="Verbose",t[t.Info=1]="Info",t[t.Warn=2]="Warn",t[t.Error=3]="Error",t[t.None=4]="None"}(Ht||(Ht={})),Ht.Error,Ht.Warn,Ht.Info,Ht.Verbose,function(t){function e(t){const e=t.split("/");let i=!1;for(let t=0;t<e.length;)"."==e[t]&&t+1!=e.length?e.splice(t,1):".."==e[t]?i?t-1==0&&/\w:/i.test(e[0])?e.splice(t,1):(e.splice(t-1,2),t-=1):++t:(i=!0,++t);return e.join("/")}function i(t){return/^\/|^\w:\//.test(t)}t.dirname=function(t){let e=t.length-2;for(;e>0&&"/"!==t[e];--e);switch(e){case-2:case-1:return"/"===t[0]?"/":".";case 0:return t.substring(0,t.indexOf("/")+1);default:return t.slice(0,e)}},t.basename=function(t){let e=t.length-2;for(;e>=0&&"/"!==t[e];--e);switch(e){case-2:case-1:return t;default:return t.endsWith("/")?t.slice(e+1,-1):t.slice(e+1)}},t.relative=function(t,e){if(t==e)return"";Ft(i(t)&&i(e),"resolving relative paths without absolute inputs requires a filesystem"),t.endsWith("/")||(t+="/");const r=e.length;e.endsWith("/")||(e+="/");const n=Math.min(t.length,e.length);let s=0,o=0;for(;o<n&&t[o]===e[o];++o)"/"===t[o]&&(s=o);if(s===t.length-1)return e.substring(t.length,r);let a="";for(let e=s+1;e<t.length;++e)"/"!==t[e]&&e+1!==t.length||(a+=a?"/..":"..");return a+e.substring(s,r)},t.normalize=e,t.resolve=function(t,r){return Ft(i(t),"resolving without an absolute path requires a filesystem"),i(r)?r:e(`${t}/${r}`)},t.isAbsolute=i,t.splitFilename=function(t){const e=t.lastIndexOf(".");return e<1?{name:t,ext:""}:{name:t.substring(0,e),ext:t.substring(e)}}}(Gt||(Gt={}));class Kt{static UNKNOWN_PACKAGE="<unknown>";packageName;packagePath;qualifiedName;pos=1/0;transientId=NaN;fileName;constructor(t){this.packageName=t.packageName,this.packagePath=t.packagePath,this.qualifiedName=t.qualifiedName}getStableKey(){return Number.isFinite(this.pos)?`${this.packageName}\0${this.packagePath}\0${this.qualifiedName}\0${this.pos}\0${this.transientId}`:`${this.packageName}\0${this.packagePath}\0${this.qualifiedName}`}toDeclarationReference(){return{resolutionStart:"global",moduleSource:this.packageName,symbolReference:{path:Wt(this.qualifiedName,".").map((t=>({navigation:".",path:t})))}}}toObject(){return{packageName:this.packageName,packagePath:this.packagePath,qualifiedName:this.qualifiedName}}}var Jt=globalThis&&globalThis.__esDecorate||function(t,e,i,r,n,s){function o(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var a,l=r.kind,h="getter"===l?"get":"setter"===l?"set":"value",c=!e&&t?r.static?t:t.prototype:null,u=e||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),f=!1,d=i.length-1;d>=0;d--){var p={};for(var g in r)p[g]="access"===g?{}:r[g];for(var g in r.access)p.access[g]=r.access[g];p.addInitializer=function(t){if(f)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(t||null))};var m=(0,i[d])("accessor"===l?{get:u.get,set:u.set}:u[h],p);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(a=o(m.get))&&(u.get=a),(a=o(m.set))&&(u.set=a),(a=o(m.init))&&n.unshift(a)}else(a=o(m))&&("field"===l?n.unshift(a):u[h]=a)}c&&Object.defineProperty(c,r.name,u),f=!0},Zt=globalThis&&globalThis.__runInitializers||function(t,e,i){for(var r=arguments.length>2,n=0;n<e.length;n++)i=r?e[n].call(t,i):e[n].call(t);return r?i:void 0};class Qt{tag;name;typeAnnotation;content;skipRendering=!1;constructor(t,e){this.tag=t,this.content=e}similarTo(t){return this.tag===t.tag&&this.name===t.name&&Xt.combineDisplayParts(this.content)===Xt.combineDisplayParts(t.content)}clone(){const t=new Qt(this.tag,Xt.cloneDisplayParts(this.content));return this.name&&(t.name=this.name),this.typeAnnotation&&(t.typeAnnotation=this.typeAnnotation),t}toObject(){return{tag:this.tag,name:this.name,content:Xt.serializeDisplayParts(this.content),typeAnnotation:this.typeAnnotation}}fromObject(t,e){this.name=e.name,this.typeAnnotation=e.typeAnnotation,this.content=Xt.deserializeDisplayParts(t,e.content)}}let Xt=(()=>{let t,e,i,r=[],n=[],s=[],o=[],a=[],l=[];return class h{static{const h="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;t=[Bt],e=[Bt],i=[Bt],Jt(null,null,t,{kind:"field",name:"sourcePath",static:!1,private:!1,access:{has:t=>"sourcePath"in t,get:t=>t.sourcePath,set:(t,e)=>{t.sourcePath=e}},metadata:h},r,n),Jt(null,null,e,{kind:"field",name:"discoveryId",static:!1,private:!1,access:{has:t=>"discoveryId"in t,get:t=>t.discoveryId,set:(t,e)=>{t.discoveryId=e}},metadata:h},s,o),Jt(null,null,i,{kind:"field",name:"inheritedFromParentDeclaration",static:!1,private:!1,access:{has:t=>"inheritedFromParentDeclaration"in t,get:t=>t.inheritedFromParentDeclaration,set:(t,e)=>{t.inheritedFromParentDeclaration=e}},metadata:h},a,l),h&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:h})}static combineDisplayParts(t){let e="";for(const i of t||[])switch(i.kind){case"text":case"code":case"relative-link":e+=i.text;break;case"inline-tag":e+=`{${i.tag} ${i.text}}`;break;default:zt(i)}return e}static cloneDisplayParts(t){return t.map((t=>({...t})))}static serializeDisplayParts(t){return t?.map((t=>{switch(t.kind){case"text":case"code":case"relative-link":return{...t};case"inline-tag":{let e;return"string"==typeof t.target?e=t.target:t.target&&(e="id"in t.target?t.target.id:t.target.toObject()),{...t,target:e}}}}))}static deserializeDisplayParts(t,e){const i=[],r=[],n=e.map((t=>{switch(t.kind){case"text":case"code":return{...t};case"inline-tag":if("number"==typeof t.target){const e={kind:t.kind,tag:t.tag,text:t.text,target:void 0,tsLinkText:t.tsLinkText};return i.push([t.target,e]),e}if("string"==typeof t.target||void 0===t.target)return{kind:"inline-tag",tag:t.tag,text:t.text,target:t.target,tsLinkText:t.tsLinkText};if("object"==typeof t.target)return{kind:"inline-tag",tag:t.tag,text:t.text,target:new Kt(t.target),tsLinkText:t.tsLinkText};zt(t.target);break;case"relative-link":if(t.target){const e={kind:"relative-link",text:t.text,target:null,targetAnchor:t.targetAnchor};return r.push([t.target,e]),e}return{...t,target:void 0,targetAnchor:t.targetAnchor}}}));return(i.length||r.length)&&t.defer((e=>{for(const[e,i]of r)i.target=t.oldFileIdToNewFileId[e];for(const[r,n]of i)n.target=e.getReflectionById(t.oldIdToNewId[r]??-1),n.target||t.logger.warn(Lt.serialized_project_referenced_0_not_part_of_project(r.toString()))})),n}static splitPartsToHeaderAndBody(t){let e=t.findIndex((t=>{switch(t.kind){case"text":case"code":return t.text.includes("\n");case"inline-tag":case"relative-link":return!1}}));if(-1===e)return{header:h.combineDisplayParts(t),body:[]};if("code"===t[e].kind&&--e,-1===e)return{header:"",body:h.cloneDisplayParts(t)};let i=h.combineDisplayParts(t.slice(0,e));const r=t[e].text.indexOf("\n");let n;return-1===r?(i+=t[e].text,n=h.cloneDisplayParts(t.slice(e+1))):(i+=t[e].text.substring(0,r),n=h.cloneDisplayParts(t.slice(e)),n[0].text=n[0].text.substring(r+1)),n[0].text||n.shift(),{header:i.trim(),body:n}}summary;blockTags=[];modifierTags=new Set;label;sourcePath=Zt(this,r,void 0);discoveryId=(Zt(this,n),Zt(this,s,void 0));inheritedFromParentDeclaration=(Zt(this,o),Zt(this,a,void 0));constructor(t=[],e=[],i=new Set){Zt(this,l),this.summary=t,this.blockTags=e,this.modifierTags=i,function(t){const e=t.summary.findIndex((t=>"inline-tag"===t.kind&&"@label"===t.tag));-1!==e&&(t.label=t.summary.splice(e,1)[0].text)}(this)}getShortSummary(t){const e=this.getTag("@summary");if(e)return e.content;if(!t)return[];let i=this.summary.findIndex((t=>{switch(t.kind){case"text":return t.text.includes("\n\n");case"code":return t.text.includes("\n");case"inline-tag":case"relative-link":return!1;default:zt(t)}}));const r=-1!==i;-1===i&&(i=this.summary.length-1);const n=this.summary.slice(0,i);if(-1!==i){const t=this.summary[i].text,e=t.indexOf("\n\n");-1!==e?n.push({...this.summary[i],text:t.slice(0,e)}):r||n.push(this.summary[i])}return n}similarTo(t){if(h.combineDisplayParts(this.summary)!==h.combineDisplayParts(t.summary))return!1;if(this.blockTags.length!==t.blockTags.length)return!1;for(let e=0;e<this.blockTags.length;++e)if(!this.blockTags[e].similarTo(t.blockTags[e]))return!1;return!0}clone(){const t=new h(h.cloneDisplayParts(this.summary),this.blockTags.map((t=>t.clone())),new Set(this.modifierTags));return t.discoveryId=this.discoveryId,t.sourcePath=this.sourcePath,t.inheritedFromParentDeclaration=this.inheritedFromParentDeclaration,t}isEmpty(){return!this.hasVisibleComponent()&&0===this.modifierTags.size}hasVisibleComponent(t){return!!this.summary.some((t=>"text"!==t.kind||""!==t.text))||(t?this.blockTags.some((e=>!t.includes(e.tag))):this.blockTags.length>0)}hasModifier(t){return this.modifierTags.has(t)}removeModifier(t){this.modifierTags.delete(t)}getTag(t){return this.blockTags.find((e=>e.tag===t))}getTags(t){return this.blockTags.filter((e=>e.tag===t))}getIdentifiedTag(t,e){return this.blockTags.find((i=>i.tag===e&&i.name===t))}removeTags(t){!function(t,e){for(let i=0;i<t.length;i++)e(t[i])&&(t.splice(i,1),i--)}(this.blockTags,(e=>e.tag===t))}toObject(t){return{summary:h.serializeDisplayParts(this.summary),blockTags:t.toObjectsOptional(this.blockTags),modifierTags:this.modifierTags.size>0?Array.from(this.modifierTags):void 0,label:this.label}}fromObject(t,e){this.summary=h.deserializeDisplayParts(t,e.summary),this.blockTags=e.blockTags?.map((e=>{const i=new Qt(e.tag,[]);return t.fromObject(i,e),i}))||[],this.modifierTags=new Set(e.modifierTags),this.label=e.label}}})();var Yt;!function(t){t[t.Project=1]="Project",t[t.Module=2]="Module",t[t.Namespace=4]="Namespace",t[t.Enum=8]="Enum",t[t.EnumMember=16]="EnumMember",t[t.Variable=32]="Variable",t[t.Function=64]="Function",t[t.Class=128]="Class",t[t.Interface=256]="Interface",t[t.Constructor=512]="Constructor",t[t.Property=1024]="Property",t[t.Method=2048]="Method",t[t.CallSignature=4096]="CallSignature",t[t.IndexSignature=8192]="IndexSignature",t[t.ConstructorSignature=16384]="ConstructorSignature",t[t.Parameter=32768]="Parameter",t[t.TypeLiteral=65536]="TypeLiteral",t[t.TypeParameter=131072]="TypeParameter",t[t.Accessor=262144]="Accessor",t[t.GetSignature=524288]="GetSignature",t[t.SetSignature=1048576]="SetSignature",t[t.TypeAlias=2097152]="TypeAlias",t[t.Reference=4194304]="Reference",t[t.Document=8388608]="Document"}(Yt||(Yt={})),function(t){t.All=2*t.Reference-1,t.ClassOrInterface=t.Class|t.Interface,t.VariableOrProperty=t.Variable|t.Property,t.FunctionOrMethod=t.Function|t.Method,t.ClassMember=t.Accessor|t.Constructor|t.Method|t.Property,t.SomeSignature=t.CallSignature|t.IndexSignature|t.ConstructorSignature|t.GetSignature|t.SetSignature,t.SomeModule=t.Namespace|t.Module,t.SomeType=t.Interface|t.TypeLiteral|t.TypeParameter|t.TypeAlias,t.SomeValue=t.Variable|t.Function,t.SomeMember=t.EnumMember|t.Property|t.Method|t.Accessor,t.SomeExport=t.Module|t.Namespace|t.Enum|t.Variable|t.Function|t.Class|t.Interface|t.TypeAlias|t.Reference,t.MayContainDocuments=t.SomeExport|t.Project|t.Document,t.ExportContainer=t.SomeModule|t.Project,t.Inheritable=t.Accessor|t.IndexSignature|t.Property|t.Method|t.Constructor,t.ContainsCallSignatures=t.Constructor|t.Function|t.Method,t.TypeReferenceTarget=t.Interface|t.TypeAlias|t.Class|t.Enum,t.ValueReferenceTarget=t.Module|t.Namespace|t.Variable|t.Function,t.SignatureContainer=t.ContainsCallSignatures|t.Accessor,t.VariableContainer=t.SomeModule|t.Project,t.MethodContainer=t.ClassOrInterface|t.VariableOrProperty|t.FunctionOrMethod|t.TypeLiteral,t.singularString=function(e){switch(e){case t.Project:return Lt.kind_project();case t.Module:return Lt.kind_module();case t.Namespace:return Lt.kind_namespace();case t.Enum:return Lt.kind_enum();case t.EnumMember:return Lt.kind_enum_member();case t.Variable:return Lt.kind_variable();case t.Function:return Lt.kind_function();case t.Class:return Lt.kind_class();case t.Interface:return Lt.kind_interface();case t.Constructor:return Lt.kind_constructor();case t.Property:return Lt.kind_property();case t.Method:return Lt.kind_method();case t.CallSignature:return Lt.kind_call_signature();case t.IndexSignature:return Lt.kind_index_signature();case t.ConstructorSignature:return Lt.kind_constructor_signature();case t.Parameter:return Lt.kind_parameter();case t.TypeLiteral:return Lt.kind_type_literal();case t.TypeParameter:return Lt.kind_type_parameter();case t.Accessor:return Lt.kind_accessor();case t.GetSignature:return Lt.kind_get_signature();case t.SetSignature:return Lt.kind_set_signature();case t.TypeAlias:return Lt.kind_type_alias();case t.Reference:return Lt.kind_reference();case t.Document:return Lt.kind_document()}},t.pluralString=function(e){switch(e){case t.Project:return Lt.kind_plural_project();case t.Module:return Lt.kind_plural_module();case t.Namespace:return Lt.kind_plural_namespace();case t.Enum:return Lt.kind_plural_enum();case t.EnumMember:return Lt.kind_plural_enum_member();case t.Variable:return Lt.kind_plural_variable();case t.Function:return Lt.kind_plural_function();case t.Class:return Lt.kind_plural_class();case t.Interface:return Lt.kind_plural_interface();case t.Constructor:return Lt.kind_plural_constructor();case t.Property:return Lt.kind_plural_property();case t.Method:return Lt.kind_plural_method();case t.CallSignature:return Lt.kind_plural_call_signature();case t.IndexSignature:return Lt.kind_plural_index_signature();case t.ConstructorSignature:return Lt.kind_plural_constructor_signature();case t.Parameter:return Lt.kind_plural_parameter();case t.TypeLiteral:return Lt.kind_plural_type_literal();case t.TypeParameter:return Lt.kind_plural_type_parameter();case t.Accessor:return Lt.kind_plural_accessor();case t.GetSignature:return Lt.kind_plural_get_signature();case t.SetSignature:return Lt.kind_plural_set_signature();case t.TypeAlias:return Lt.kind_plural_type_alias();case t.Reference:return Lt.kind_plural_reference();case t.Document:return Lt.kind_plural_document()}},t.classString=function(e){return`tsd-kind-${t[e].replace(/(.)([A-Z])/g,((t,e,i)=>`${e}-${i}`)).toLowerCase()}`}}(Yt||(Yt={}));var te=globalThis&&globalThis.__esDecorate||function(t,e,i,r,n,s){function o(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var a,l=r.kind,h="getter"===l?"get":"setter"===l?"set":"value",c=!e&&t?r.static?t:t.prototype:null,u=e||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),f=!1,d=i.length-1;d>=0;d--){var p={};for(var g in r)p[g]="access"===g?{}:r[g];for(var g in r.access)p.access[g]=r.access[g];p.addInitializer=function(t){if(f)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(t||null))};var m=(0,i[d])("accessor"===l?{get:u.get,set:u.set}:u[h],p);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(a=o(m.get))&&(u.get=a),(a=o(m.set))&&(u.set=a),(a=o(m.init))&&n.unshift(a)}else(a=o(m))&&("field"===l?n.unshift(a):u[h]=a)}c&&Object.defineProperty(c,r.name,u),f=!0},ee=globalThis&&globalThis.__runInitializers||function(t,e,i){for(var r=arguments.length>2,n=0;n<e.length;n++)i=r?e[n].call(t,i):e[n].call(t);return r?i:void 0};let ie=0;var re;!function(t){t[t.None=0]="None",t[t.Private=1]="Private",t[t.Protected=2]="Protected",t[t.Public=4]="Public",t[t.Static=8]="Static",t[t.External=16]="External",t[t.Optional=32]="Optional",t[t.Rest=64]="Rest",t[t.Abstract=128]="Abstract",t[t.Const=256]="Const",t[t.Readonly=512]="Readonly",t[t.Inherited=1024]="Inherited"}(re||(re={}));const ne=[re.Private,re.Protected,re.Static,re.Optional,re.Abstract,re.Const,re.Readonly];class se{flags=re.None;hasFlag(t){return!!(t&this.flags)}get isPrivate(){return this.hasFlag(re.Private)}get isProtected(){return this.hasFlag(re.Protected)}get isPublic(){return this.hasFlag(re.Public)}get isStatic(){return this.hasFlag(re.Static)}get isExternal(){return this.hasFlag(re.External)}get isOptional(){return this.hasFlag(re.Optional)}get isRest(){return this.hasFlag(re.Rest)}get isAbstract(){return this.hasFlag(re.Abstract)}get isConst(){return this.hasFlag(re.Const)}get isReadonly(){return this.hasFlag(re.Readonly)}get isInherited(){return this.hasFlag(re.Inherited)}setFlag(t,e){switch(t){case re.Private:this.setSingleFlag(re.Private,e),e&&(this.setFlag(re.Protected,!1),this.setFlag(re.Public,!1));break;case re.Protected:this.setSingleFlag(re.Protected,e),e&&(this.setFlag(re.Private,!1),this.setFlag(re.Public,!1));break;case re.Public:this.setSingleFlag(re.Public,e),e&&(this.setFlag(re.Private,!1),this.setFlag(re.Protected,!1));break;default:this.setSingleFlag(t,e)}}static flagString(t){switch(t){case re.None:throw new Error("Should be unreachable");case re.Private:return Lt.flag_private();case re.Protected:return Lt.flag_protected();case re.Public:return Lt.flag_public();case re.Static:return Lt.flag_static();case re.External:return Lt.flag_external();case re.Optional:return Lt.flag_optional();case re.Rest:return Lt.flag_rest();case re.Abstract:return Lt.flag_abstract();case re.Const:return Lt.flag_const();case re.Readonly:return Lt.flag_readonly();case re.Inherited:return Lt.flag_inherited()}}getFlagStrings(){const t=[];for(const e of ne)this.hasFlag(e)&&t.push(se.flagString(e));return t}setSingleFlag(t,e){!e&&this.hasFlag(t)?this.flags^=t:e&&!this.hasFlag(t)&&(this.flags|=t)}static serializedFlags=["isPrivate","isProtected","isPublic","isStatic","isExternal","isOptional","isRest","isAbstract","isConst","isReadonly","isInherited"];toObject(){return Object.fromEntries(se.serializedFlags.filter((t=>this[t])).map((t=>[t,!0])))}fromObject(t){for(const e of Object.keys(t)){const t=e.substring(2);t in re&&this.setFlag(re[t],!0)}}}var oe;!function(t){t[t.Children=0]="Children",t[t.Documents=1]="Documents",t[t.Parameters=2]="Parameters",t[t.TypeLiteral=3]="TypeLiteral",t[t.TypeParameter=4]="TypeParameter",t[t.Signatures=5]="Signatures",t[t.IndexSignature=6]="IndexSignature",t[t.GetSignature=7]="GetSignature",t[t.SetSignature=8]="SetSignature"}(oe||(oe={}));let ae=(()=>{let t,e,i=[],r=[],n=[],s=[];return class{static{const o="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;t=[Bt],e=[Bt],te(null,null,t,{kind:"field",name:"parent",static:!1,private:!1,access:{has:t=>"parent"in t,get:t=>t.parent,set:(t,e)=>{t.parent=e}},metadata:o},i,r),te(null,null,e,{kind:"field",name:"project",static:!1,private:!1,access:{has:t=>"project"in t,get:t=>t.project,set:(t,e)=>{t.project=e}},metadata:o},n,s),o&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:o})}id;name;kind;flags=new se;parent=ee(this,i,void 0);project=(ee(this,r),ee(this,n,void 0));comment=ee(this,s);constructor(t,e,i){this.id=ie++,this.parent=i,this.project=i?.project||this,this.name=t,this.kind=e,i?.flags.isExternal&&this.setFlag(re.External)}kindOf(t){const e=Array.isArray(t)?t.reduce(((t,e)=>t|e),0):t;return!!(this.kind&e)}getFullName(t="."){return this.parent&&!this.parent.isProject()?this.parent.getFullName(t)+t+this.name:this.name}getFriendlyFullName(){return this.parent&&!this.parent.isProject()?this.kindOf(Yt.ConstructorSignature|Yt.CallSignature|Yt.GetSignature|Yt.SetSignature)?this.parent.getFriendlyFullName():this.parent.getFriendlyFullName()+"."+this.name:this.name}setFlag(t,e=!0){this.flags.setFlag(t,e)}hasComment(t){return!!this.comment&&this.comment.hasVisibleComponent(t)}hasGetterOrSetter(){return!1}getChildByName(t){const e=Array.isArray(t)?t:Wt(t,"."),i=e[0];let r;return this.traverse((t=>t.name!==i||(r=e.length<=1?t:t.getChildByName(e.slice(1)),!1))),r}isProject(){return!1}isDeclaration(){return!1}isSignature(){return!1}isTypeParameter(){return!1}isParameter(){return!1}isDocument(){return!1}isReference(){return"reference"===this.variant}isContainer(){return!1}isDeprecated(){let t=!1;return this.visit({declaration(e){e.signatures?.length&&e.signatures.every((t=>t.comment?.getTag("@deprecated")))&&(t=!0)}}),!(!t&&!this.comment?.getTag("@deprecated"))||(this.parent?.isDeprecated()??!1)}visit(t){t[this.variant]?.(this)}toString(){return Yt[this.kind]+" "+this.name}toStringHierarchy(t=""){const e=[t+this.toString()];return t+=" ",this.traverse((i=>(e.push(i.toStringHierarchy(t)),!0))),e.join("\n")}toObject(t){return{id:this.id,name:this.name,variant:this.variant,kind:this.kind,flags:this.flags.toObject(),comment:this.comment&&!this.comment.isEmpty()?t.toObject(this.comment):void 0}}fromObject(t,e){this.name=e.name,this.kind=e.kind,this.flags.fromObject(e.flags),this.comment=t.revive(e.comment,(()=>new Xt))}}})();class le{title;description;children=[];constructor(t){this.title=t}toObject(){return{title:this.title,description:this.description?Xt.serializeDisplayParts(this.description):void 0,children:this.children.length>0?this.children.map((t=>t.id)):void 0}}fromObject(t,e){e.description&&(this.description=Xt.deserializeDisplayParts(t,e.description)),e.children&&t.defer((i=>{for(const r of e.children||[]){const e=i.getReflectionById(t.oldIdToNewId[r]??-1);(e?.isDeclaration()||e?.isDocument())&&this.children.push(e)}}))}}class he{owningReflection;title;description;children=[];categories;constructor(t,e){this.owningReflection=e,this.title=t}toObject(t){return{title:this.title,description:this.description?Xt.serializeDisplayParts(this.description):void 0,children:this.children.length>0?this.children.map((t=>t.id)):void 0,categories:t.toObjectsOptional(this.categories)}}fromObject(t,e){e.description&&(this.description=Xt.deserializeDisplayParts(t,e.description)),e.categories&&(this.categories=e.categories.map((e=>{const i=new le(e.title);return t.fromObject(i,e),i}))),e.children&&t.defer((i=>{for(const r of e.children||[]){const e=i.getReflectionById(t.oldIdToNewId[r]??-1);(e?.isDeclaration()||e?.isDocument())&&this.children.push(e)}}))}}class ce extends ae{children;documents;childrenIncludingDocuments;groups;categories;getChildrenByKind(t){return(this.children||[]).filter((e=>e.kindOf(t)))}addChild(t){if(t.isDeclaration())this.children||=[],this.children.push(t),this.childrenIncludingDocuments||=[],this.childrenIncludingDocuments.push(t);else if(t.isDocument())this.documents||=[],this.documents.push(t),this.childrenIncludingDocuments||=[],this.childrenIncludingDocuments.push(t);else{if(!this.isDeclaration()||!t.isSignature())throw new Error("Unsupported child type: "+Yt[t.kind]);switch(t.kind){case Yt.CallSignature:case Yt.ConstructorSignature:this.signatures||=[],this.signatures.push(t);break;case Yt.IndexSignature:this.indexSignatures||=[],this.indexSignatures.push(t);break;case Yt.GetSignature:case Yt.SetSignature:throw new Error("Unsupported child type: "+Yt[t.kind]);default:zt(t.kind)}}}removeChild(t){t.isDeclaration()?(Dt(this.children,t),0===this.children?.length&&delete this.children):(Dt(this.documents,t),0===this.documents?.length&&delete this.documents),Dt(this.childrenIncludingDocuments,t),0===this.childrenIncludingDocuments?.length&&delete this.childrenIncludingDocuments}isContainer(){return!0}traverse(t){for(const e of this.children?.slice()||[])if(!1===t(e,oe.Children))return;for(const e of this.documents?.slice()||[])if(!1===t(e,oe.Documents))return}toObject(t){return{...super.toObject(t),children:t.toObjectsOptional(this.children),documents:t.toObjectsOptional(this.documents),childrenIncludingDocuments:this.children?.length&&this.documents?.length?this.childrenIncludingDocuments?.map((t=>t.id)):void 0,groups:t.toObjectsOptional(this.groups),categories:t.toObjectsOptional(this.categories)}}fromObject(t,e){super.fromObject(t,e),this.children=t.reviveMany(e.children,(e=>t.constructReflection(e))),this.documents=t.reviveMany(e.documents,(e=>t.constructReflection(e)));const i=new Map;for(const t of this.children||[])i.set(t.id,t);for(const t of this.documents||[])i.set(t.id,t);for(const r of e.childrenIncludingDocuments||[]){const e=i.get(t.oldIdToNewId[r]??-1);e&&(this.childrenIncludingDocuments||=[],this.childrenIncludingDocuments.push(e),i.delete(t.oldIdToNewId[r]??-1))}i.size&&(this.childrenIncludingDocuments||=[],this.childrenIncludingDocuments.push(...i.values())),this.groups=t.reviveMany(e.groups,(t=>new he(t.title,this))),this.categories=t.reviveMany(e.categories,(t=>new le(t.title)))}}var ue=globalThis&&globalThis.__esDecorate||function(t,e,i,r,n,s){function o(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var a,l=r.kind,h="getter"===l?"get":"setter"===l?"set":"value",c=!e&&t?r.static?t:t.prototype:null,u=e||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),f=!1,d=i.length-1;d>=0;d--){var p={};for(var g in r)p[g]="access"===g?{}:r[g];for(var g in r.access)p.access[g]=r.access[g];p.addInitializer=function(t){if(f)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(t||null))};var m=(0,i[d])("accessor"===l?{get:u.get,set:u.set}:u[h],p);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(a=o(m.get))&&(u.get=a),(a=o(m.set))&&(u.set=a),(a=o(m.init))&&n.unshift(a)}else(a=o(m))&&("field"===l?n.unshift(a):u[h]=a)}c&&Object.defineProperty(c,r.name,u),f=!0},fe=globalThis&&globalThis.__runInitializers||function(t,e,i){for(var r=arguments.length>2,n=0;n<e.length;n++)i=r?e[n].call(t,i):e[n].call(t);return r?i:void 0};class de{toString(){return this.stringify(pe.none)}visit(t,...e){return t[this.type]?.(this,...e)}stringify(t){return this.needsParenthesis(t)?`(${this.getTypeString()})`:this.getTypeString()}fromObject(t,e){}estimatePrintWidth(){return this.getTypeString().length}}const pe={none:"none",arrayElement:"arrayElement",referenceTypeArgument:"referenceTypeArgument",unionElement:"unionElement"};class ge extends de{name;type="intrinsic";constructor(t){super(),this.name=t}getTypeString(){return this.name}toObject(){return{type:this.type,name:this.name}}needsParenthesis(){return!1}}(()=>{let t,e=de,i=[],r=[];(class n extends e{static{const n="function"==typeof Symbol&&Symbol.metadata?Object.create(e[Symbol.metadata]??null):void 0;t=[Bt],ue(null,null,t,{kind:"field",name:"_project",static:!1,private:!1,access:{has:t=>"_project"in t,get:t=>t._project,set:(t,e)=>{t._project=e}},metadata:n},i,r),n&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:n})}type="reference";name;typeArguments;get reflection(){if("number"==typeof this._target)return this._project?.getReflectionById(this._target);const t=this._project?.getReflectionsFromSymbolId(this._target);if(!t?.length)return;const e=this.preferValues?Yt.ValueReferenceTarget:Yt.TypeReferenceTarget;return t.find((t=>t.kindOf(e)))||t.find((t=>t.kindOf(~e)))}highlightedProperties;get symbolId(){if(!this.reflection&&"object"==typeof this._target)return this._target}isIntentionallyBroken(){return!("object"!=typeof this._target||!this._project?.symbolIdHasBeenRemoved(this._target))||(-1===this._target||this.refersToTypeParameter)}toDeclarationReference(){return{resolutionStart:"global",moduleSource:this.package,symbolReference:{path:this.qualifiedName.split(".").map((t=>({path:t,navigation:"."})))}}}qualifiedName;package;externalUrl;refersToTypeParameter=!1;preferValues=!1;_target;_project=fe(this,i,void 0);constructor(t,e,i,n){super(),fe(this,r),this.name=t,this._target="number"==typeof e?e:"variant"in e?e.id:e,this._project=i,this.qualifiedName=n}static createUnresolvedReference(t,e,i,r){return new n(t,e,i,r)}static createResolvedReference(t,e,i){return new n(t,e,i,t)}static createBrokenReference(t,e,i){const r=new n(t,-1,e,t);return r.package=i,r}getTypeString(){const t=this.reflection?this.reflection.name:this.name;let e="";return this.typeArguments&&this.typeArguments.length>0&&(e+="<",e+=this.typeArguments.map((t=>t.stringify(pe.referenceTypeArgument))).join(", "),e+=">"),t+e}needsParenthesis(){return!1}toObject(t){let e;e="number"==typeof this._target?this._target:this._project?.symbolIdHasBeenRemoved(this._target)?-1:this.reflection?this.reflection.id:this._target.toObject();const i={type:this.type,target:e,typeArguments:t.toObjectsOptional(this.typeArguments),name:this.name,package:this.package,externalUrl:this.externalUrl};return this.name!==this.qualifiedName&&(i.qualifiedName=this.qualifiedName),this.refersToTypeParameter&&(i.refersToTypeParameter=!0),"number"!=typeof e&&this.preferValues&&(i.preferValues=!0),this.highlightedProperties&&(i.highlightedProperties=Object.fromEntries(Array.from(this.highlightedProperties.entries(),(([t,e])=>[t,Xt.serializeDisplayParts(e)])))),i}fromObject(t,e){if(this.typeArguments=t.reviveMany(e.typeArguments,(e=>t.constructType(e))),"number"==typeof e.target?-1===e.target?this._target=-1:t.defer((i=>{const r=i.getReflectionById(t.oldIdToNewId[e.target]??-1);r?(this._project=i,this._target=r.id):t.logger.warn(Lt.serialized_project_referenced_0_not_part_of_project(JSON.stringify(e.target)))})):(this._project=t.project,this._target=new Kt(e.target)),this.qualifiedName=e.qualifiedName??e.name,this.package=e.package,this.refersToTypeParameter=!!e.refersToTypeParameter,this.preferValues=!!e.preferValues,e.highlightedProperties){this.highlightedProperties=new Map;for(const[i,r]of Object.entries(e.highlightedProperties))this.highlightedProperties.set(i,Xt.deserializeDisplayParts(t,r))}}})})();class me extends de{declaration;type="reflection";constructor(t){super(),this.declaration=t}getTypeString(){const t=[],e=this.declaration.getNonIndexSignatures();for(const i of e)t.push(ve(i,": "));for(const e of this.declaration.children||[])t.push(`${e.name}${ye(e)} ${be(e.type)}`);for(const e of this.declaration.indexSignatures||[])t.push(ve(e,": ","[]"));return 1===e.length&&1===t.length?ve(e[0]," => "):0===t.length?"{}":`{ ${t.join("; ")} }`}needsParenthesis(t){return!this.declaration.children&&!this.declaration.indexSignatures&&(1===this.declaration.signatures?.length&&(t===pe.arrayElement||t===pe.unionElement))}toObject(t){return{type:this.type,declaration:t.toObject(this.declaration)}}}function ye(t){return t.flags.isOptional?"?:":":"}function be(t){return t?.toString()??"any"}function ve(t,e,i="()"){const r=(n=t.parameters,s=", ",o=t=>`${t.name}${ye(t)} ${be(t.type)}`,n?.length?n.map(o).join(s):"");var n,s,o;return`${i[0]}${r}${i[1]}${e}${be(t.type)}`}class we{fileName;fullFileName;line;character;url;constructor(t,e,i){this.fileName=t,this.fullFileName=t,this.line=e,this.character=i}equals(t){return this.fullFileName==t.fullFileName&&this.line===t.line&&this.character===t.character}toObject(){return{fileName:this.fileName,line:this.line,character:this.character,url:this.url}}fromObject(t,e){this.url=e.url}}class _e extends ce{variant="declaration";sources;relevanceBoost;escapedName;type;typeParameters;signatures;indexSignatures;getSignature;setSignature;defaultValue;overwrites;inheritedFrom;implementationOf;extendedTypes;extendedBy;implementedTypes;implementedBy;typeHierarchy;readme;packageVersion;isDeclaration(){return!0}hasGetterOrSetter(){return!!this.getSignature||!!this.setSignature}getAllSignatures(){let t=[];return this.signatures&&(t=t.concat(this.signatures)),this.indexSignatures&&(t=t.concat(this.indexSignatures)),this.getSignature&&t.push(this.getSignature),this.setSignature&&t.push(this.setSignature),t}getNonIndexSignatures(){return[].concat(this.signatures??[],this.setSignature??[],this.getSignature??[])}getProperties(){return this.children?.length?this.children:"reflection"===this.type?.type?this.type.declaration.children??[]:[]}getChildOrTypePropertyByName(t){if("reflection"===this.type?.type)for(const e of this.type.declaration.children||[])if(t[0]===e.name)return 1===t.length?e:e.getChildOrTypePropertyByName(t.slice(1));for(const e of this.children||[])if(t[0]===e.name)return 1===t.length?e:e.getChildOrTypePropertyByName(t.slice(1))}traverse(t){for(const e of this.typeParameters?.slice()||[])if(!1===t(e,oe.TypeParameter))return;if(!(this.type instanceof me&&!1===t(this.type.declaration,oe.TypeLiteral))){for(const e of this.signatures?.slice()||[])if(!1===t(e,oe.Signatures))return;for(const e of this.indexSignatures?.slice()||[])if(!1===t(e,oe.IndexSignature))return;this.getSignature&&!1===t(this.getSignature,oe.GetSignature)||this.setSignature&&!1===t(this.setSignature,oe.SetSignature)||super.traverse(t)}}toString(){let t=super.toString();if(this.typeParameters){t+="<"+this.typeParameters.map((t=>t.name)).join(", ")+">"}return this.type&&(t+=": "+this.type.toString()),t}toObject(t){return{...super.toObject(t),variant:this.variant,packageVersion:this.packageVersion,sources:t.toObjectsOptional(this.sources),relevanceBoost:1===this.relevanceBoost?void 0:this.relevanceBoost,typeParameters:t.toObjectsOptional(this.typeParameters),type:t.toObject(this.type),signatures:t.toObjectsOptional(this.signatures),indexSignatures:t.toObjectsOptional(this.indexSignatures),getSignature:t.toObject(this.getSignature),setSignature:t.toObject(this.setSignature),defaultValue:this.defaultValue,overwrites:t.toObject(this.overwrites),inheritedFrom:t.toObject(this.inheritedFrom),implementationOf:t.toObject(this.implementationOf),extendedTypes:t.toObjectsOptional(this.extendedTypes),extendedBy:t.toObjectsOptional(this.extendedBy),implementedTypes:t.toObjectsOptional(this.implementedTypes),implementedBy:t.toObjectsOptional(this.implementedBy),readme:Xt.serializeDisplayParts(this.readme)}}fromObject(t,e){if(super.fromObject(t,e),e.readme&&(this.readme=Xt.deserializeDisplayParts(t,e.readme)),"project"===e.variant)return this.kind=Yt.Module,this.packageVersion=e.packageVersion,this.project.files.fromObject(t,e.files||{}),void t.defer((()=>{for(const[i,r]of Object.entries(e.symbolIdMap||{})){const e=this.project.getReflectionById(t.oldIdToNewId[+i]??-1);e?this.project.registerSymbolId(e,new Kt(r)):t.logger.warn(Lt.serialized_project_referenced_0_not_part_of_project(i))}}));this.packageVersion=e.packageVersion,this.sources=t.reviveMany(e.sources,(t=>new we(t.fileName,t.line,t.character))),this.relevanceBoost=e.relevanceBoost,this.typeParameters=t.reviveMany(e.typeParameters,(e=>t.constructReflection(e))),this.type=t.revive(e.type,(e=>t.constructType(e))),this.signatures=t.reviveMany(e.signatures,(e=>t.constructReflection(e))),this.indexSignatures=t.reviveMany(e.indexSignatures,(e=>t.constructReflection(e))),this.getSignature=t.revive(e.getSignature,(e=>t.constructReflection(e))),this.setSignature=t.revive(e.setSignature,(e=>t.constructReflection(e))),this.defaultValue=e.defaultValue,this.overwrites=t.reviveType(e.overwrites),this.inheritedFrom=t.reviveType(e.inheritedFrom),this.implementationOf=t.reviveType(e.implementationOf),this.extendedTypes=t.reviveMany(e.extendedTypes,(e=>t.reviveType(e))),this.extendedBy=t.reviveMany(e.extendedBy,(e=>t.reviveType(e))),this.implementedTypes=t.reviveMany(e.implementedTypes,(e=>t.reviveType(e))),this.implementedBy=t.reviveMany(e.implementedBy,(e=>t.reviveType(e)))}}class Se extends _e{variant="reference";_target;constructor(t,e,i){super(t,Yt.Reference,i),this._target=e.id}tryGetTargetReflection(){return this.project.getReflectionById(this._target)}tryGetTargetReflectionDeep(){let t=this.tryGetTargetReflection();for(;t instanceof Se;)t=t.tryGetTargetReflection();return t}getTargetReflection(){const t=this.tryGetTargetReflection();if(!t)throw new Error("Reference was unresolved.");return t}getTargetReflectionDeep(){let t=this.getTargetReflection();for(;t instanceof Se;)t=t.getTargetReflection();return t}getChildByName(t){return this.getTargetReflection().getChildByName(t)}toObject(t){return{...super.toObject(t),variant:this.variant,target:this.tryGetTargetReflection()?.id??-1}}fromObject(t,e){super.fromObject(t,e),t.defer((i=>{this._target=i.getReflectionById(t.oldIdToNewId[e.target]??-1)?.id??-1}))}}var xe=globalThis&&globalThis.__esDecorate||function(t,e,i,r,n,s){function o(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var a,l=r.kind,h="getter"===l?"get":"setter"===l?"set":"value",c=!e&&t?r.static?t:t.prototype:null,u=e||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),f=!1,d=i.length-1;d>=0;d--){var p={};for(var g in r)p[g]="access"===g?{}:r[g];for(var g in r.access)p.access[g]=r.access[g];p.addInitializer=function(t){if(f)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(t||null))};var m=(0,i[d])("accessor"===l?{get:u.get,set:u.set}:u[h],p);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(a=o(m.get))&&(u.get=a),(a=o(m.set))&&(u.set=a),(a=o(m.init))&&n.unshift(a)}else(a=o(m))&&("field"===l?n.unshift(a):u[h]=a)}c&&Object.defineProperty(c,r.name,u),f=!0},ke=globalThis&&globalThis.__runInitializers||function(t,e,i){for(var r=arguments.length>2,n=0;n<e.length;n++)i=r?e[n].call(t,i):e[n].call(t);return r?i:void 0};
|
|
40
40
|
/**!
|
|
41
|
-
* FlexSearch.js v0.8.
|
|
41
|
+
* FlexSearch.js v0.8.212 (Bundle/Module)
|
|
42
42
|
* Author and Copyright: Thomas Wilkerling
|
|
43
43
|
* Licence: Apache-2.0
|
|
44
44
|
* Hosted by Nextapps GmbH
|
|
45
45
|
* https://github.com/nextapps-de/flexsearch
|
|
46
46
|
*/
|
|
47
|
-
var le;function he(t,e,i){const r=typeof i,n=typeof t;if("undefined"!==r){if("undefined"!==n){if(i){if("function"===n&&r===n)return function(e){return t(i(e))};if((e=t.constructor)===i.constructor){if(e===Array)return i.concat(t);if(e===Map){var s=new Map(i);for(var o of t)s.set(o[0],o[1]);return s}if(e===Set){for(s of(o=new Set(i),t.values()))o.add(s);return o}}}return t}return i}return"undefined"===n?e:t}function ce(){return Object.create(null)}function ue(t){return"string"==typeof t}function fe(t){return"object"==typeof t}function de(t,e){if(ue(e))t=t[e];else for(let i=0;t&&i<e.length;i++)t=t[e[i]];return t}(()=>{let t,e=oe,i=[],r=[];(class n extends e{static{const n="function"==typeof Symbol&&Symbol.metadata?Object.create(e[Symbol.metadata]??null):void 0;t=[Ft],ne(null,null,t,{kind:"field",name:"_project",static:!1,private:!1,access:{has:t=>"_project"in t,get:t=>t._project,set:(t,e)=>{t._project=e}},metadata:n},i,r),n&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:n})}type="reference";name;typeArguments;get reflection(){if("number"==typeof this._target)return this._project?.getReflectionById(this._target);const t=this._project?.getReflectionsFromSymbolId(this._target);if(!t?.length)return;const e=this.preferValues?Zt.ValueReferenceTarget:Zt.TypeReferenceTarget;return t.find((t=>t.kindOf(e)))||t.find((t=>t.kindOf(~e)))}highlightedProperties;get symbolId(){if(!this.reflection&&"object"==typeof this._target)return this._target}isIntentionallyBroken(){return!("object"!=typeof this._target||!this._project?.symbolIdHasBeenRemoved(this._target))||(-1===this._target||this.refersToTypeParameter)}toDeclarationReference(){return{resolutionStart:"global",moduleSource:this.package,symbolReference:{path:this.qualifiedName.split(".").map((t=>({path:t,navigation:"."})))}}}qualifiedName;package;externalUrl;refersToTypeParameter=!1;preferValues=!1;_target;_project=se(this,i,void 0);constructor(t,e,i,n){super(),se(this,r),this.name=t,this._target="number"==typeof e?e:"variant"in e?e.id:e,this._project=i,this.qualifiedName=n}static createUnresolvedReference(t,e,i,r){return new n(t,e,i,r)}static createResolvedReference(t,e,i){return new n(t,e,i,t)}static createBrokenReference(t,e){return new n(t,-1,e,t)}getTypeString(){const t=this.reflection?this.reflection.name:this.name;let e="";return this.typeArguments&&this.typeArguments.length>0&&(e+="<",e+=this.typeArguments.map((t=>t.stringify(ae.referenceTypeArgument))).join(", "),e+=">"),t+e}needsParenthesis(){return!1}toObject(t){let e;e="number"==typeof this._target?this._target:this._project?.symbolIdHasBeenRemoved(this._target)?-1:this.reflection?this.reflection.id:this._target.toObject();const i={type:this.type,target:e,typeArguments:t.toObjectsOptional(this.typeArguments),name:this.name,package:this.package,externalUrl:this.externalUrl};return this.name!==this.qualifiedName&&(i.qualifiedName=this.qualifiedName),this.refersToTypeParameter&&(i.refersToTypeParameter=!0),"number"!=typeof e&&this.preferValues&&(i.preferValues=!0),this.highlightedProperties&&(i.highlightedProperties=Object.fromEntries(Array.from(this.highlightedProperties.entries(),(([t,e])=>[t,Kt.serializeDisplayParts(e)])))),i}fromObject(t,e){if(this.typeArguments=t.reviveMany(e.typeArguments,(e=>t.constructType(e))),"number"==typeof e.target&&-1!==e.target?t.defer((i=>{const r=i.getReflectionById(t.oldIdToNewId[e.target]??-1);r?(this._project=i,this._target=r.id):t.logger.warn(Ut.serialized_project_referenced_0_not_part_of_project(JSON.stringify(e.target)))})):-1===e.target?this._target=-1:(this._project=t.project,this._target=new Vt(e.target)),this.qualifiedName=e.qualifiedName??e.name,this.package=e.package,this.refersToTypeParameter=!!e.refersToTypeParameter,this.preferValues=!!e.preferValues,e.highlightedProperties){this.highlightedProperties=new Map;for(const[i,r]of Object.entries(e.highlightedProperties))this.highlightedProperties.set(i,Kt.deserializeDisplayParts(t,r))}}})})();const ge=/[^\p{L}\p{N}]+/u,pe=/(\d{3})/g,me=/(\D)(\d{3})/g,ye=/(\d{3})(\D)/g,be=/[\u0300-\u036f]/g;function ve(t={}){if(!this||this.constructor!==ve)return new ve(...arguments);if(arguments.length)for(t=0;t<arguments.length;t++)this.assign(arguments[t]);else this.assign(t)}function _e(t){t.H=null,t.B.clear(),t.G.clear()}let we,xe,ke,Se,$e;async function Ae(t){var e=(t=t.data).task;const i=t.id;let r=t.args;if("init"===e)xe=t.options||{},(e=t.factory)?(Function("return "+e)()(self),we=new self.FlexSearch.Index(xe),delete self.FlexSearch):we=new Ci(xe),postMessage({id:i});else{let n;"export"===e&&(r[1]?(r[0]=xe.export,r[2]=0,r[3]=1):r=null),"import"===e?r[0]&&(t=await xe.import.call(we,r[0]),we.import(r[0],t)):(n=r&&we[e].apply(we,r))&&n.then&&(n=await n),postMessage("search"===e?{id:i,msg:n}:{id:i})}}function Pe(t){Te.call(t,"add"),Te.call(t,"append"),Te.call(t,"search"),Te.call(t,"update"),Te.call(t,"remove"),Te.call(t,"searchCache")}function je(){ke=$e=0}function Te(t){this[t+"Async"]=function(){const e=arguments;var i=e[e.length-1];let r;if("function"==typeof i&&(r=i,delete e[e.length-1]),ke?$e||($e=Date.now()-Se>=this.priority*this.priority*3):(ke=setTimeout(je,0),Se=Date.now()),$e){const i=this;return new Promise((r=>{setTimeout((function(){r(i[t+"Async"].apply(i,e))}),0)}))}const n=this[t].apply(this,e);return i=n.then?n:new Promise((t=>t(n))),r&&i.then(r),i}}(le=ve.prototype).assign=function(t){this.normalize=he(t.normalize,!0,this.normalize);let e,i=t.include,r=i||t.exclude||t.split;if(r||""===r){if("object"==typeof r&&r.constructor!==RegExp){let t="";e=!i,i||(t+="\\p{Z}"),r.letter&&(t+="\\p{L}"),r.number&&(t+="\\p{N}",e=!!i),r.symbol&&(t+="\\p{S}"),r.punctuation&&(t+="\\p{P}"),r.control&&(t+="\\p{C}"),(r=r.char)&&(t+="object"==typeof r?r.join(""):r);try{this.split=new RegExp("["+(i?"^":"")+t+"]+","u")}catch(t){this.split=/\s+/}}else this.split=r,e=!1===r||2>"a1a".split(r).length;this.numeric=he(t.numeric,e)}else{try{this.split=he(this.split,ge)}catch(t){this.split=/\s+/}this.numeric=he(t.numeric,he(this.numeric,!0))}if(this.prepare=he(t.prepare,null,this.prepare),this.finalize=he(t.finalize,null,this.finalize),r=t.filter,this.filter="function"==typeof r?r:he(r&&new Set(r),null,this.filter),this.dedupe=he(t.dedupe,!0,this.dedupe),this.matcher=he((r=t.matcher)&&new Map(r),null,this.matcher),this.mapper=he((r=t.mapper)&&new Map(r),null,this.mapper),this.stemmer=he((r=t.stemmer)&&new Map(r),null,this.stemmer),this.replacer=he(t.replacer,null,this.replacer),this.minlength=he(t.minlength,1,this.minlength),this.maxlength=he(t.maxlength,1024,this.maxlength),this.rtl=he(t.rtl,!1,this.rtl),(this.cache=r=he(t.cache,!0,this.cache))&&(this.H=null,this.S="number"==typeof r?r:2e5,this.B=new Map,this.G=new Map,this.L=this.K=128),this.h="",this.M=null,this.A="",this.N=null,this.matcher)for(const t of this.matcher.keys())this.h+=(this.h?"|":"")+t;if(this.stemmer)for(const t of this.stemmer.keys())this.A+=(this.A?"|":"")+t;return this},le.addStemmer=function(t,e){return this.stemmer||(this.stemmer=new Map),this.stemmer.set(t,e),this.A+=(this.A?"|":"")+t,this.N=null,this.cache&&_e(this),this},le.addFilter=function(t){return"function"==typeof t?this.filter=t:(this.filter||(this.filter=new Set),this.filter.add(t)),this.cache&&_e(this),this},le.addMapper=function(t,e){return"object"==typeof t?this.addReplacer(t,e):1<t.length?this.addMatcher(t,e):(this.mapper||(this.mapper=new Map),this.mapper.set(t,e),this.cache&&_e(this),this)},le.addMatcher=function(t,e){return"object"==typeof t?this.addReplacer(t,e):2>t.length&&(this.dedupe||this.mapper)?this.addMapper(t,e):(this.matcher||(this.matcher=new Map),this.matcher.set(t,e),this.h+=(this.h?"|":"")+t,this.M=null,this.cache&&_e(this),this)},le.addReplacer=function(t,e){return"string"==typeof t?this.addMatcher(t,e):(this.replacer||(this.replacer=[]),this.replacer.push(t,e),this.cache&&_e(this),this)},le.encode=function(t,e){if(this.cache&&t.length<=this.K)if(this.H){if(this.B.has(t))return this.B.get(t)}else this.H=setTimeout(_e,50,this);this.normalize&&(t="function"==typeof this.normalize?this.normalize(t):be?t.normalize("NFKD").replace(be,"").toLowerCase():t.toLowerCase()),this.prepare&&(t=this.prepare(t)),this.numeric&&3<t.length&&(t=t.replace(me,"$1 $2").replace(ye,"$1 $2").replace(pe,"$1 "));const i=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer);let r,n,s=[],o=ce(),a=this.split||""===this.split?t.split(this.split):[t];for(let t,h,c=0;c<a.length;c++)if((t=h=a[c])&&!(t.length<this.minlength||t.length>this.maxlength)){if(e){if(o[t])continue;o[t]=1}else{if(r===t)continue;r=t}if(i)s.push(t);else if(!this.filter||("function"==typeof this.filter?this.filter(t):!this.filter.has(t))){if(this.cache&&t.length<=this.L)if(this.H){var l=this.G.get(t);if(l||""===l){l&&s.push(l);continue}}else this.H=setTimeout(_e,50,this);if(this.stemmer){let e;for(this.N||(this.N=new RegExp("(?!^)("+this.A+")$"));e!==t&&2<t.length;)e=t,t=t.replace(this.N,(t=>this.stemmer.get(t)))}if(t&&(this.mapper||this.dedupe&&1<t.length)){l="";for(let e,i,r=0,n="";r<t.length;r++)e=t.charAt(r),e===n&&this.dedupe||((i=this.mapper&&this.mapper.get(e))||""===i?i===n&&this.dedupe||!(n=i)||(l+=i):l+=n=e);t=l}if(this.matcher&&1<t.length&&(this.M||(this.M=new RegExp("("+this.h+")","g")),t=t.replace(this.M,(t=>this.matcher.get(t)))),t&&this.replacer)for(l=0;t&&l<this.replacer.length;l+=2)t=t.replace(this.replacer[l],this.replacer[l+1]);if(this.cache&&h.length<=this.L&&(this.G.set(h,t),this.G.size>this.S&&(this.G.clear(),this.L=this.L/1.1|0)),t){if(t!==h)if(e){if(o[t])continue;o[t]=1}else{if(n===t)continue;n=t}s.push(t)}}}return this.finalize&&(s=this.finalize(s)||s),this.cache&&t.length<=this.K&&(this.B.set(t,s),this.B.size>this.S&&(this.B.clear(),this.K=this.K/1.1|0)),s};let Oe=0;function Ee(e={},i){function r(t){function r(t){const e=(t=t.data||t).id,i=e&&o.h[e];i&&(i(t.msg),delete o.h[e])}if(this.worker=t,this.h=ce(),this.worker)return s?this.worker.on("message",r):this.worker.onmessage=r,e.config?new Promise((function(t){o.h[++Oe]=function(){t(o),1e9<Oe&&(Oe=0)},o.worker.postMessage({id:Oe,task:"init",factory:n,options:e})})):(this.worker.postMessage({task:"init",factory:n,options:e}),this.priority=e.priority||4,i&&(this.encoder=i),this)}if(!this||this.constructor!==Ee)return new Ee(e);let n="undefined"!=typeof self?self._factory:"undefined"!=typeof window?window._factory:null;n&&(n=n.toString());const s="undefined"==typeof window,o=this,a=function(e,i,r){return i?"undefined"!=typeof module?new(require("worker_threads").Worker)(__dirname+"/worker/node.js"):import("worker_threads").then((function(t){return new t.Worker(void 0+"/node/node.mjs")})):e?new window.Worker(URL.createObjectURL(new Blob(["onmessage="+Ae.toString()],{type:"text/javascript"}))):new window.Worker("string"==typeof r?r:(t&&"SCRIPT"===t.tagName.toUpperCase()&&t.src||new URL("index.js",document.baseURI).href).replace("/worker.js","/worker/worker.js").replace("flexsearch.bundle.module.min.js","module/worker/worker.js"),{type:"module"})}(n,s,e.worker);return a.then?a.then((function(t){return r.call(o,t)})):r.call(this,a)}function Ce(t){Ee.prototype[t]=function(){const e=this,i=[].slice.call(arguments);var r=i[i.length-1];let n;return"function"==typeof r&&(n=r,i.pop()),r=new Promise((function(r){"export"===t&&"function"==typeof i[0]&&(i[0]=null),e.h[++Oe]=r,e.worker.postMessage({task:t,id:Oe,args:i})})),n?(r.then(n),this):r}}function Me(t,e=0){let i=[],r=[];e&&(e=25e4/e*5e3|0);for(const n of t.entries())r.push(n),r.length===e&&(i.push(r),r=[]);return r.length&&i.push(r),i}function Ne(t,e){e||(e=new Map);for(let i,r=0;r<t.length;r++)i=t[r],e.set(i[0],i[1]);return e}function Ie(t,e=0){let i=[],r=[];e&&(e=25e4/e*1e3|0);for(const n of t.entries())r.push([n[0],Me(n[1])[0]]),r.length===e&&(i.push(r),r=[]);return r.length&&i.push(r),i}function De(t,e){e||(e=new Map);for(let i,r,n=0;n<t.length;n++)i=t[n],r=e.get(i[0]),e.set(i[0],Ne(i[1],r));return e}function ze(t){let e=[],i=[];for(const r of t.keys())i.push(r),25e4===i.length&&(e.push(i),i=[]);return i.length&&e.push(i),e}function Re(t,e){e||(e=new Set);for(let i=0;i<t.length;i++)e.add(t[i]);return e}function Fe(t,e,i,r,n,s,o=0){const a=r&&r.constructor===Array;var l=a?r.shift():r;if(!l)return this.export(t,e,n,s+1);if((l=t((e?e+".":"")+(o+1)+"."+i,JSON.stringify(l)))&&l.then){const h=this;return l.then((function(){return Fe.call(h,t,e,i,a?r:null,n,s,o+1)}))}return Fe.call(this,t,e,i,a?r:null,n,s,o+1)}function Le(t,e){let i="";for(const r of t.entries()){t=r[0];const n=r[1];let s="";for(let t,i=0;i<n.length;i++){t=n[i]||[""];let r="";for(let i=0;i<t.length;i++)r+=(r?",":"")+("string"===e?'"'+t[i]+'"':t[i]);r="["+r+"]",s+=(s?",":"")+r}s='["'+t+'",['+s+"]]",i+=(i?",":"")+s}return i}function Ue(t,e,i,r){let n=[];for(let s,o=0;o<t.index.length;o++)if(s=t.index[o],e>=s.length)e-=s.length;else{const o=(e=s[r?"splice":"slice"](e,i)).length;if(o&&(n=n.length?n.concat(e):e,i-=o,r&&(t.length-=o),!i))break;e=0}return n}function Be(t){if(!this||this.constructor!==Be)return new Be(t);this.index=t?[t]:[],this.length=t?t.length:0;const e=this;return new Proxy([],{get:(t,i)=>"length"===i?e.length:"push"===i?function(t){e.index[e.index.length-1].push(t),e.length++}:"pop"===i?function(){if(e.length)return e.length--,e.index[e.index.length-1].pop()}:"indexOf"===i?function(t){let i=0;for(let r,n,s=0;s<e.index.length;s++){if(r=e.index[s],n=r.indexOf(t),0<=n)return i+n;i+=r.length}return-1}:"includes"===i?function(t){for(let i=0;i<e.index.length;i++)if(e.index[i].includes(t))return!0;return!1}:"slice"===i?function(t,i){return Ue(e,t||0,i||e.length,!1)}:"splice"===i?function(t,i){return Ue(e,t||0,i||e.length,!0)}:"constructor"===i?Array:"symbol"!=typeof i?(t=e.index[i/2**31|0])&&t[i]:void 0,set:(t,i,r)=>(t=i/2**31|0,(e.index[t]||(e.index[t]=[]))[i]=r,e.length++,!0)})}function qe(t=8){if(!this||this.constructor!==qe)return new qe(t);this.index=ce(),this.h=[],this.size=0,32<t?(this.B=We,this.A=BigInt(t)):(this.B=Ve,this.A=t)}function He(t=8){if(!this||this.constructor!==He)return new He(t);this.index=ce(),this.h=[],this.size=0,32<t?(this.B=We,this.A=BigInt(t)):(this.B=Ve,this.A=t)}function Ve(t){let e=2**this.A-1;if("number"==typeof t)return t&e;let i=0,r=this.A+1;for(let n=0;n<t.length;n++)i=(i*r^t.charCodeAt(n))&e;return 32===this.A?i+2**31:i}function We(t){let e=BigInt(2)**this.A-BigInt(1);var i=typeof t;if("bigint"===i)return t&e;if("number"===i)return BigInt(t)&e;i=BigInt(0);let r=this.A+BigInt(1);for(let n=0;n<t.length;n++)i=(i*r^BigInt(t.charCodeAt(n)))&e;return i}function Ge(t,e,i,r,n,s){if(t=t[n],r===i.length-1)e[n]=s||t;else if(t)if(t.constructor===Array)for(e=e[n]=Array(t.length),n=0;n<t.length;n++)Ge(t,e,i,r,n);else e=e[n]||(e[n]=ce()),n=i[++r],Ge(t,e,i,r,n)}function Je(t,e,i,r,n,s,o,a){if(t=t[o])if(r===e.length-1){if(t.constructor===Array){if(i[r]){for(e=0;e<t.length;e++)n.add(s,t[e],!0,!0);return}t=t.join(" ")}n.add(s,t,a,!0)}else if(t.constructor===Array)for(o=0;o<t.length;o++)Je(t,e,i,r,n,s,o,a);else o=e[++r],Je(t,e,i,r,n,s,o,a);else n.db&&n.remove(s)}function Ke(t,e,i,r){if(!t.length)return t;if(1===t.length)return t=t[0],t=i||t.length>e?e?t.slice(i,i+e):t.slice(i):t,r?ui.call(this,t):t;let n=[];for(let s,o,a=0;a<t.length;a++)if((s=t[a])&&(o=s.length)){if(i){if(i>=o){i-=o;continue}i<o&&(s=e?s.slice(i,i+e):s.slice(i),o=s.length,i=0)}if(o>e&&(s=s.slice(0,e),o=e),!n.length&&o>=e)return r?ui.call(this,s):s;if(n.push(s),!(e-=o))break}return n=1<n.length?[].concat.apply([],n):n[0],r?ui.call(this,n):n}function Ze(t,e,i){var r=i[0];if(r.then)return Promise.all(i).then((function(i){return t[e].apply(t,i)}));if(r[0]&&r[0].index)return t[e].apply(t,r);r=[];let n,s,o,a,l,h=[],c=0,u=0;for(let d,g=0;g<i.length;g++)if(d=i[g]){var f=void 0;if(d.constructor===ni)f=d.result;else if(d.constructor===Array)f=d;else{let e;if(c=d.limit||0,u=d.offset||0,o=d.suggest,s=d.resolve,n=(a=d.highlight&&s)||d.enrich&&s,d.index?t.index=e=d.index:e=t.index,d.query||d.tag)(f=d.field||d.pluck)&&(e=t.index.index.get(f)),d.resolve=!1,f=e.search(d).result,d.resolve=s,a&&(l=d.query);else if(d.and)f=t.and(d.and);else if(d.or)f=t.or(d.or);else if(d.xor)f=t.xor(d.xor);else{if(!d.not)continue;f=t.not(d.not)}}if(f.then)h.push(f);else if(f.length)r[g]=f;else if(!o&&("and"===e||"xor"===e)){r=[];break}}return{O:r,P:h,limit:c,offset:u,enrich:n,resolve:s,suggest:o,highlight:a,W:l}}function Qe(t,e,i,r,n,s){if(e.length){const o=this;return Promise.all(e).then((function(e){t=[];for(let i,r=0;r<e.length;r++)(i=e[r]).length&&(t[r]=i);return Qe.call(o,t,[],i,r,n,s)}))}return t.length&&(this.result.length&&t.push(this.result),2>t.length?this.result=t[0]:(this.result=oi(t,i,r,!1,this.h),r=0)),s?this.resolve(i,r,n):this}function Xe(t,e,i,r,n,s,o){if(e.length){const a=this;return Promise.all(e).then((function(e){t=[];for(let i,r=0;r<e.length;r++)(i=e[r]).length&&(t[r]=i);return Xe.call(a,t,[],i,r,n,s,o)}))}if(t.length)if(this.result.length&&t.unshift(this.result),2>t.length)this.result=t[0];else{if(e=function(t){let e=0;for(let i,r=0;r<t.length;r++)(i=t[r])&&e<i.length&&(e=i.length);return e}(t))return this.result=si(t,e,i,r,o,this.h,s),s?n?ui.call(this.index,this.result):this.result:this;this.result=[]}else o||(this.result=t);return s?this.resolve(i,r,n):this}function Ye(t,e,i,r,n,s,o){if(e.length){const a=this;return Promise.all(e).then((function(e){t=[];for(let i,r=0;r<e.length;r++)(i=e[r]).length&&(t[r]=i);return Ye.call(a,t,[],i,r,n,s,o)}))}if(t.length){if(this.result.length&&t.unshift(this.result),!(2>t.length))return this.result=ti.call(this,t,i,r,s,this.h),s?n?ui.call(this.index,this.result):this.result:this;this.result=t[0]}else o||(this.result=t);return s?this.resolve(i,r,n):this}function ti(t,e,i,r,n){const s=[],o=ce();let a=0;for(let e,i=0;i<t.length;i++)if(e=t[i]){a<e.length&&(a=e.length);for(let t,i=0;i<e.length;i++)if(t=e[i])for(let e,i=0;i<t.length;i++)e=t[i],o[e]=o[e]?2:1}for(let l,h=0,c=0;h<a;h++)for(let a,u=0;u<t.length;u++)if((a=t[u])&&(l=a[h]))for(let t,a=0;a<l.length;a++)if(t=l[a],1===o[t])if(i)i--;else if(r){if(s.push(t),s.length===e)return s}else{const i=h+(u?n:0);if(s[i]||(s[i]=[]),s[i].push(t),++c===e)return s}return s}function ei(t,e,i,r,n,s,o){if(e.length){const a=this;return Promise.all(e).then((function(e){t=[];for(let i,r=0;r<e.length;r++)(i=e[r]).length&&(t[r]=i);return ei.call(a,t,[],i,r,n,s,o)}))}if(t.length&&this.result.length)this.result=ii.call(this,t,i,r,s);else if(s)return this.resolve(i,r,n);return s?n?ui.call(this.index,this.result):this.result:this}function ii(t,e,i,r){const n=[];t=new Set(t.flat().flat());for(let s,o=0,a=0;o<this.result.length;o++)if(s=this.result[o])for(let l,h=0;h<s.length;h++)if(l=s[h],!t.has(l))if(i)i--;else if(r){if(n.push(l),n.length===e)return n}else if(n[o]||(n[o]=[]),n[o].push(l),++a===e)return n;return n}function ri(t,e,i,r,n){let s,o,a;"string"==typeof n?(s=n,n=""):s=n.template,o=s.indexOf("$1"),a=s.substring(o+2),o=s.substring(0,o);let l=n&&n.boundary,h=!n||!1!==n.clip,c=n&&n.merge&&a&&o&&new RegExp(a+" "+o,"g");var u=0;if("object"==typeof(n=n&&n.ellipsis)){var f=n.template;u=f.length-2,n=n.pattern}let d,g;"string"!=typeof n&&(n=!1===n?"":"..."),u&&(n=f.replace("$1",n)),f=n.length-u,"object"==typeof l&&(d=l.before,0===d&&(d=-1),g=l.after,0===g&&(g=-1),l=l.total||9e5),u=new Map;for(let M,N,I,D=0;D<e.length;D++){let z;if(r)z=e,I=r;else{var p=e[D];if(I=p.field,!I)continue;z=p.result}N=i.get(I),M=N.encoder,"string"!=typeof(p=u.get(M))&&(p=M.encode(t),u.set(M,p));for(let t=0;t<z.length;t++){var m=z[t].doc;if(!m)continue;if(!(m=de(m,I)))continue;var y=m.trim().split(/\s+/);if(!y.length)continue;m="";var b=[];let e=[];for(var v=-1,_=-1,w=0,x=0;x<y.length;x++){var k=y[x],S=M.encode(k);let t;if((S=1<S.length?S.join(" "):S[0])&&k){for(var $=k.length,A=(M.split?k.replace(M.split,""):k).length-S.length,P="",j=0,T=0;T<p.length;T++){var O=p[T];if(O){var E=O.length;E+=A,j&&E<=j||-1<(O=S.indexOf(O))&&(P=(O?k.substring(0,O):"")+o+k.substring(O,O+E)+a+(O+E<$?k.substring(O+E):""),j=E,t=!0)}}P&&(l&&(0>v&&(v=m.length+(m?1:0)),_=m.length+(m?1:0)+P.length,w+=$,e.push(b.length),b.push({match:P})),m+=(m?" ":"")+P)}if(t){if(l&&w>=l)break}else m+=(m?" ":"")+(k=y[x]),l&&b.push({text:k})}if(w=e.length*(s.length-2),d||g||l&&m.length-w>l)if(x=_-v,0<d&&(x+=d),0<g&&(x+=g),x<=(w=l+w-2*f))y=d?v-(0<d?d:0):v-((w-x)/2|0),b=g?_+(0<g?g:0):y+w,h||(0<y&&" "!==m.charAt(y)&&" "!==m.charAt(y-1)&&(0>(y=m.indexOf(" ",y))&&(y=0)),b<m.length&&" "!==m.charAt(b-1)&&" "!==m.charAt(b)&&((b=m.lastIndexOf(" ",b))<_?b=_:++b)),m=(y?n:"")+m.substring(y,b)+(b<m.length?n:"");else{for(_=[],v={},w={},x={},k={},S={},P=A=$=0,T=j=1;;){var C=void 0;for(let t,i=0;i<e.length;i++){if(t=e[i],P)if(A!==P){if(x[i+1])continue;if(t+=P,v[t]){$-=f,w[i+1]=1,x[i+1]=1;continue}if(t>=b.length-1){if(t>=b.length){x[i+1]=1,t>=y.length&&(w[i+1]=1);continue}$-=f}if(m=b[t].text,E=g&&S[i]){if(!(0<E)){x[i+1]=1;continue}if(m.length>E){if(x[i+1]=1,!h)continue;m=m.substring(0,E)}(E-=m.length)||(E=-1),S[i]=E}if($+m.length+1<=l)m=" "+m,_[i]+=m;else{if(!h){x[i+1]=1;continue}0<(C=l-$-1)&&(m=" "+m.substring(0,C),_[i]+=m),x[i+1]=1}}else{if(x[i])continue;if(t-=A,v[t]){$-=f,x[i]=1,w[i]=1;continue}if(0>=t){if(0>t){x[i]=1,w[i]=1;continue}$-=f}if(m=b[t].text,E=d&&k[i]){if(!(0<E)){x[i]=1;continue}if(m.length>E){if(x[i]=1,!h)continue;m=m.substring(m.length-E)}(E-=m.length)||(E=-1),k[i]=E}if($+m.length+1<=l)m+=" ",_[i]=m+_[i];else{if(!h){x[i]=1;continue}0<=(C=m.length+1-(l-$))&&C<m.length&&(m=m.substring(C)+" ",_[i]=m+_[i]),x[i]=1}}else{let e;if(m=b[t].match,d&&(k[i]=d),g&&(S[i]=g),i&&$++,t?!i&&f&&($+=f):(w[i]=1,x[i]=1),t>=y.length-1||t<b.length-1&&b[t+1].match?e=1:f&&($+=f),$-=s.length-2,i&&!($+m.length<=l)){C=j=T=w[i]=0;break}_[i]=m,e&&(w[i+1]=1,x[i+1]=1)}$+=m.length,C=v[t]=1}if(C)A===P?P++:A++;else{if(A===P?j=0:T=0,!j&&!T)break;j?P=++A:P++}}m="";for(let t,e=0;e<_.length;e++)t=(e&&w[e]?" ":(e&&!n?" ":"")+n)+_[e],m+=t;n&&!w[_.length]&&(m+=n)}c&&(m=m.replace(c," ")),z[t].highlight=m}if(r)break}return e}function ni(t,e){return this&&this.constructor===ni?t&&t.index?(t.resolve=!1,this.index=t.index,this.h=t.boost||0,this.result=this.index.search(t).result,this):(this.index=e||null,this.result=t||[],void(this.h=0)):new ni(t,e)}function si(t,e,i,r,n,s,o){const a=t.length;let l,h,c=[];l=ce();for(let u,f,d,g,p=0;p<e;p++)for(let e=0;e<a;e++)if(d=t[e],p<d.length&&(u=d[p]))for(let t=0;t<u.length;t++){if(f=u[t],(h=l[f])?l[f]++:(h=0,l[f]=1),g=c[h]||(c[h]=[]),!o){let t=p+(e||!n?0:s||0);g=g[t]||(g[t]=[])}if(g.push(f),o&&i&&h===a-1&&g.length-r===i)return r?g.slice(r):g}if(t=c.length)if(n)c=1<c.length?oi(c,i,r,o,s):(c=c[0]).length>i||r?c.slice(r,i+r):c;else{if(t<a)return[];if(c=c[t-1],i||r)if(o)(c.length>i||r)&&(c=c.slice(r,i+r));else{n=[];for(let t,e=0;e<c.length;e++)if(t=c[e])if(r&&t.length>r)r-=t.length;else if((i&&t.length>i||r)&&(t=t.slice(r,i+r),i-=t.length,r&&(r-=t.length)),n.push(t),!i)break;c=n}}return c}function oi(t,e,i,r,n){const s=[],o=ce();let a;var l=t.length;let h;if(r){for(n=l-1;0<=n;n--)if(h=(r=t[n])&&r.length)for(l=0;l<h;l++)if(a=r[l],!o[a])if(o[a]=1,i)i--;else if(s.push(a),s.length===e)return s}else for(let c,u=l-1,f=0;0<=u;u--){c=t[u];for(let t=0;t<c.length;t++)if(h=(r=c[t])&&r.length)for(let c=0;c<h;c++)if(a=r[c],!o[a])if(o[a]=1,i)i--;else{let i=(t+(u<l-1&&n||0))/(u+1)|0;if((s[i]||(s[i]=[])).push(a),++f===e)return s}}return s}function ai(t,e,i){const r=ce(),n=[];for(let t,i=0;i<e.length;i++){t=e[i];for(let e=0;e<t.length;e++)r[t[e]]=1}if(i)for(let e,i=0;i<t.length;i++)e=t[i],r[e]&&(n.push(e),r[e]=0);else for(let i,s,o=0;o<t.result.length;o++)for(i=t.result[o],e=0;e<i.length;e++)s=i[e],r[s]&&((n[o]||(n[o]=[])).push(s),r[s]=0);return n}function li(t,e){return void 0===t?e:t}function hi(t){const e=[],i=ce();for(let r,n,s=0;s<t.length;s++){r=t[s],n=r.result;for(let t,s,o,a=0;a<n.length;a++)s=n[a],"object"!=typeof s&&(s={id:s}),t=s.id,(o=i[t])?o.push(r.field):(s.field=i[t]=[r.field],e.push(s))}return e}function ci(t,e,i,r,n){return(t=this.tag.get(t))?(e=(t=t&&t.get(e))&&t.length-r)&&0<e?((i&&e>i||r)&&(t=t.slice(r,r+i)),n&&(t=ui.call(this,t)),t):void 0:[]}function ui(t){if(!this||!this.store)return t;const e=Array(t.length);for(let i,r=0;r<t.length;r++)i=t[r],e[r]={id:i,doc:this.store.get(i)};return e}Ce("add"),Ce("append"),Ce("search"),Ce("update"),Ce("remove"),Ce("clear"),Ce("export"),Ce("import"),Pe(Ee.prototype),Be.prototype.clear=function(){this.index.length=0},Be.prototype.destroy=function(){this.proxy=this.index=null},Be.prototype.push=function(){},qe.prototype.get=function(t){const e=this.index[this.B(t)];return e&&e.get(t)},qe.prototype.set=function(t,e){var i=this.B(t);let r=this.index[i];r?(i=r.size,r.set(t,e),(i-=r.size)&&this.size++):(this.index[i]=r=new Map([[t,e]]),this.h.push(r),this.size++)},He.prototype.add=function(t){var e=this.B(t);let i=this.index[e];i?(e=i.size,i.add(t),(e-=i.size)&&this.size++):(this.index[e]=i=new Set([t]),this.h.push(i),this.size++)},(le=qe.prototype).has=He.prototype.has=function(t){const e=this.index[this.B(t)];return e&&e.has(t)},le.delete=He.prototype.delete=function(t){const e=this.index[this.B(t)];e&&e.delete(t)&&this.size--},le.clear=He.prototype.clear=function(){this.index=ce(),this.h=[],this.size=0},le.values=He.prototype.values=function*(){for(let t=0;t<this.h.length;t++)for(let e of this.h[t].values())yield e},le.keys=He.prototype.keys=function*(){for(let t=0;t<this.h.length;t++)for(let e of this.h[t].keys())yield e},le.entries=He.prototype.entries=function*(){for(let t=0;t<this.h.length;t++)for(let e of this.h[t].entries())yield e},vi.prototype.add=function(t,e,i){if(fe(t)&&(t=de(e=t,this.key)),e&&(t||0===t)){if(!i&&this.reg.has(t))return this.update(t,e);for(let s,o=0;o<this.field.length;o++){s=this.F[o];var r=this.index.get(this.field[o]);if("function"==typeof s){var n=s(e);n&&r.add(t,n,!1,!0)}else(!(n=s.I)||n(e))&&(s.constructor===String?s=[""+s]:ue(s)&&(s=[s]),Je(e,s,this.J,0,r,t,s[0],i))}if(this.tag)for(r=0;r<this.D.length;r++){var s=this.D[r];n=this.tag.get(this.R[r]);let a=ce();if("function"==typeof s){if(!(s=s(e)))continue}else{var o=s.I;if(o&&!o(e))continue;s.constructor===String&&(s=""+s),s=de(e,s)}if(n&&s){ue(s)&&(s=[s]);for(let e,r,l=0;l<s.length;l++)if(e=s[l],!a[e]&&(a[e]=1,(o=n.get(e))?r=o:n.set(e,r=[]),!i||!r.includes(t))){if(r.length===2**31-1){if(o=new Be(r),this.fastupdate)for(let t of this.reg.values())t.includes(r)&&(t[t.indexOf(r)]=o);n.set(e,r=o)}r.push(t),this.fastupdate&&((o=this.reg.get(t))?o.push(r):this.reg.set(t,[r]))}}}if(this.store&&(!i||!this.store.has(t))){let r;if(this.C){r=ce();for(let t,n=0;n<this.C.length;n++){if(t=this.C[n],(i=t.I)&&!i(e))continue;let s;if("function"==typeof t){if(s=t(e),!s)continue;t=[t.V]}else if(ue(t)||t.constructor===String){r[t]=e[t];continue}Ge(e,r,t,0,t[0],s)}}this.store.set(t,r||e)}this.worker&&(this.fastupdate||this.reg.add(t))}return this},ni.prototype.or=function(){const{O:t,P:e,limit:i,offset:r,enrich:n,resolve:s}=Ze(this,"or",arguments);return Qe.call(this,t,e,i,r,n,s)},ni.prototype.and=function(){let t,e,i,r,n=this.result.length;if(!n){const s=arguments[0];s&&(n=!!s.suggest,r=s.resolve,t=s.limit,e=s.offset,i=s.enrich&&r)}if(n){const{O:t,P:e,limit:i,offset:r,enrich:n,resolve:s,suggest:o}=Ze(this,"and",arguments);return Xe.call(this,t,e,i,r,n,s,o)}return r?this.resolve(t,e,i):this},ni.prototype.xor=function(){const{O:t,P:e,limit:i,offset:r,enrich:n,resolve:s,suggest:o}=Ze(this,"xor",arguments);return Ye.call(this,t,e,i,r,n,s,o)},ni.prototype.not=function(){const{O:t,P:e,limit:i,offset:r,enrich:n,resolve:s,suggest:o}=Ze(this,"not",arguments);return ei.call(this,t,e,i,r,n,s,o)},ni.prototype.limit=function(t){if(this.result.length){const e=[];for(let i,r=0;r<this.result.length;r++)if(i=this.result[r]){if(!(i.length<=t)){e[r]=i.slice(0,t);break}if(e[r]=i,!(t-=i.length))break}this.result=e}return this},ni.prototype.offset=function(t){if(this.result.length){const e=[];for(let i,r=0;r<this.result.length;r++)(i=this.result[r])&&(i.length<=t?t-=i.length:(e[r]=i.slice(t),t=0));this.result=e}return this},ni.prototype.boost=function(t){return this.h+=t,this},ni.prototype.resolve=function(t,e,i){const r=this.index;let n=this.result;return this.result=this.index=null,n.length&&("object"==typeof t&&(i=t.enrich,e=t.offset,t=t.limit),n=Ke.call(r,n,t||100,e,i)),n},vi.prototype.search=function(t,e,i,r){if(i||(!e&&fe(t)?(i=t,t=""):fe(e)&&(i=e,e=0)),i&&i.cache){i.cache=!1;var n=this.searchCache(t,e,i);return i.cache=!0,n}let s=[];var o=[];let a,l,h,c,u,f,d,g=0,p=!0;if(i){i.constructor===Array&&(i={index:i}),t=i.query||t,a=i.pluck,l=i.merge,c=i.boost,u=a||i.field||(u=i.index)&&(u.index?null:u);var m=this.tag&&i.tag;h=i.suggest,f=(p=!1!==i.resolve)&&this.store&&i.highlight,n=!!f||p&&this.store&&i.enrich,e=i.limit||e;var y=i.offset||0;if(e||(e=p?100:0),m&&(!this.db||!r)){m.constructor!==Array&&(m=[m]);var b=[];for(let t,e=0;e<m.length;e++)if(t=m[e],t.field&&t.tag){var v=t.tag;if(v.constructor===Array)for(var _=0;_<v.length;_++)b.push(t.field,v[_]);else b.push(t.field,v)}else{v=Object.keys(t);for(let e,i,r=0;r<v.length;r++)if(e=v[r],i=t[e],i.constructor===Array)for(_=0;_<i.length;_++)b.push(e,i[_]);else b.push(e,i)}if(m=b,!t){if(o=[],b.length)for(m=0;m<b.length;m+=2){if(this.db){if(!(r=this.index.get(b[m])))continue;o.push(r=r.db.tag(b[m+1],e,y,n))}else r=ci.call(this,b[m],b[m+1],e,y,n);s.push(p?{field:b[m],tag:b[m+1],result:r}:[r])}if(o.length){const t=this;return Promise.all(o).then((function(e){for(let t=0;t<e.length;t++)p?s[t].result=e[t]:s[t]=e[t];return p?s:new ni(1<s.length?si(s,1,0,0,h,c):s[0],t)}))}return p?s:new ni(1<s.length?si(s,1,0,0,h,c):s[0],this)}}p||a||!(u=u||this.field)||(ue(u)?a=u:(u.constructor===Array&&1===u.length&&(u=u[0]),a=u.field||u.index)),u&&u.constructor!==Array&&(u=[u])}u||(u=this.field),b=(this.worker||this.db)&&!r&&[];for(let a,l,c,w=0;w<u.length;w++){if(l=u[w],this.db&&this.tag&&!this.F[w])continue;let x;if(ue(l)||(x=l,l=x.field,t=x.query||t,e=li(x.limit,e),y=li(x.offset,y),h=li(x.suggest,h),f=p&&this.store&&li(x.highlight,f),n=!!f||p&&this.store&&li(x.enrich,n)),r)a=r[w];else{if(v=x||i,_=this.index.get(l),m&&(this.db&&(v.tag=m,d=_.db.support_tag_search,v.field=u),d||(v.enrich=!1)),b){b[w]=_.search(t,e,v),v&&n&&(v.enrich=n);continue}a=_.search(t,e,v),v&&n&&(v.enrich=n)}if(c=a&&(p?a.length:a.result.length),m&&c){if(v=[],_=0,this.db&&r){if(!d)for(let t=u.length;t<r.length;t++){let e=r[t];if(e&&e.length)_++,v.push(e);else if(!h)return p?s:new ni(s,this)}}else for(let t,e,i=0;i<m.length;i+=2){if(t=this.tag.get(m[i]),!t){if(h)continue;return p?s:new ni(s,this)}if(e=(t=t&&t.get(m[i+1]))&&t.length)_++,v.push(t);else if(!h)return p?s:new ni(s,this)}if(_){if(a=ai(a,v,p),c=a.length,!c&&!h)return p?a:new ni(a,this);_--}}if(c)o[g]=l,s.push(a),g++;else if(1===u.length)return p?s:new ni(s,this)}if(b){if(this.db&&m&&m.length&&!d)for(n=0;n<m.length;n+=2){if(!(o=this.index.get(m[n]))){if(h)continue;return p?s:new ni(s,this)}b.push(o.db.tag(m[n+1],e,y,!1))}const r=this;return Promise.all(b).then((function(n){return n.length?r.search(t,e,i,n):n}))}if(!g)return p?s:new ni(s,this);if(a&&(!n||!this.store))return s=s[0],p||(s.index=this),s;for(b=[],y=0;y<o.length;y++){if(m=s[y],n&&m.length&&void 0===m[0].doc&&(this.db?b.push(m=this.index.get(this.field[0]).db.enrich(m)):m=ui.call(this,m)),a)return p?f?ri(t,m,this.index,a,f):m:new ni(m,this);s[y]={field:o[y],result:m}}if(n&&this.db&&b.length){const e=this;return Promise.all(b).then((function(i){for(let t=0;t<i.length;t++)s[t].result=i[t];return l?hi(s):f?ri(t,s,e.index,a,f):s}))}return l?hi(s):f?ri(t,s,this.index,a,f):s};const fi={normalize:!1,numeric:!1,dedupe:!1},di={},gi=new Map([["b","p"],["v","f"],["w","f"],["z","s"],["x","s"],["d","t"],["n","m"],["c","k"],["g","k"],["j","k"],["q","k"],["i","e"],["y","e"],["u","o"]]),pi=new Map([["ae","a"],["oe","o"],["sh","s"],["kh","k"],["th","t"],["ph","f"],["pf","f"]]),mi=[/([^aeo])h(.)/g,"$1$2",/([aeo])h([^aeo]|$)/g,"$1$2",/(.)\1+/g,"$1"],yi={a:"",e:"",i:"",o:"",u:"",y:"",b:1,f:1,p:1,v:1,c:2,g:2,j:2,k:2,q:2,s:2,x:2,z:2,"ß":2,d:3,t:3,l:4,m:5,n:5,r:6};var bi={Exact:fi,Default:di,Normalize:di,LatinBalance:{mapper:gi},LatinAdvanced:{mapper:gi,matcher:pi,replacer:mi},LatinExtra:{mapper:gi,replacer:mi.concat([/(?!^)[aeo]/g,""]),matcher:pi},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(t){for(let i=0;i<t.length;i++){var e=t[i];let r=e.charAt(0),n=yi[r];for(let t,i=1;i<e.length&&(t=e.charAt(i),"h"===t||"w"===t||!(t=yi[t])||t===n||(r+=t,n=t,4!==r.length));i++);t[i]=r}}},CJK:{split:""},LatinExact:fi,LatinDefault:di,LatinSimple:di};function vi(t){if(!this||this.constructor!==vi)return new vi(t);const e=t.document||t.doc||t;let i,r;if(this.F=[],this.field=[],this.J=[],this.key=(i=e.key||e.id)&&wi(i,this.J)||"id",(r=t.keystore||0)&&(this.keystore=r),this.fastupdate=!!t.fastupdate,this.reg=!this.fastupdate||t.worker||t.db?r?new He(r):new Set:r?new qe(r):new Map,this.C=(i=e.store||null)&&i&&!0!==i&&[],this.store=i&&(r?new qe(r):new Map),this.cache=(i=t.cache||null)&&new ki(i),t.cache=!1,this.worker=t.worker||!1,this.priority=t.priority||4,this.index=_i.call(this,t,e),this.tag=null,(i=e.tag)&&("string"==typeof i&&(i=[i]),i.length)){this.tag=new Map,this.D=[],this.R=[];for(let t,e,r=0;r<i.length;r++){if(t=i[r],e=t.field||t,!e)throw Error("The tag field from the document descriptor is undefined.");t.custom?this.D[r]=t.custom:(this.D[r]=wi(e,this.J),t.filter&&("string"==typeof this.D[r]&&(this.D[r]=new String(this.D[r])),this.D[r].I=t.filter)),this.R[r]=e,this.tag.set(e,new Map)}}if(this.worker){this.fastupdate=!1,t=[];for(const e of this.index.values())e.then&&t.push(e);if(t.length){const e=this;return Promise.all(t).then((function(t){let i=0;for(const r of e.index.entries()){const n=r[0];let s=r[1];s.then&&(s=t[i],e.index.set(n,s),i++)}return e}))}}else t.db&&(this.fastupdate=!1,this.mount(t.db))}function _i(t,e){const i=new Map;let r=e.index||e.field||e;ue(r)&&(r=[r]);for(let e,s,o=0;o<r.length;o++){if(e=r[o],ue(e)||(s=e,e=e.field),s=fe(s)?Object.assign({},t,s):t,this.worker){var n=void 0;n=new Ee(s,n=(n=s.encoder)&&n.encode?n:new ve("string"==typeof n?bi[n]:n)),i.set(e,n)}this.worker||i.set(e,new Ci(s,this.reg)),s.custom?this.F[o]=s.custom:(this.F[o]=wi(e,this.J),s.filter&&("string"==typeof this.F[o]&&(this.F[o]=new String(this.F[o])),this.F[o].I=s.filter)),this.field[o]=e}if(this.C){ue(t=e.store)&&(t=[t]);for(let e,i,r=0;r<t.length;r++)e=t[r],i=e.field||e,e.custom?(this.C[r]=e.custom,e.custom.V=i):(this.C[r]=wi(i,this.J),e.filter&&("string"==typeof this.C[r]&&(this.C[r]=new String(this.C[r])),this.C[r].I=e.filter))}return i}function wi(t,e){const i=t.split(":");let r=0;for(let n=0;n<i.length;n++)"]"===(t=i[n])[t.length-1]&&(t=t.substring(0,t.length-2))&&(e[r]=!0),t&&(i[r++]=t);return r<i.length&&(i.length=r),1<r?i:i[0]}function xi(t,e,i){const r=(e?""+t:"object"==typeof t?""+t.query:t).toLowerCase();this.cache||(this.cache=new ki);let n=this.cache.get(r);if(!n){if(n=this.search(t,e,i),n.then){const t=this;n.then((function(e){return t.cache.set(r,e),e}))}this.cache.set(r,n)}return n}function ki(t){this.limit=t&&!0!==t?t:1e3,this.cache=new Map,this.h=""}function Si(t,e){let i=0;var r=void 0===e;if(t.constructor===Array){for(let n,s,o=0;o<t.length;o++)if((n=t[o])&&n.length)if(r)i++;else{if(s=n.indexOf(e),0<=s){1<n.length?(n.splice(s,1),i++):delete t[o];break}i++}}else for(let n of t.entries()){r=n[0];const s=Si(n[1],e);s?i+=s:t.delete(r)}return i}(le=vi.prototype).mount=function(t){let e=this.field;if(this.tag)for(let t,r=0;r<this.R.length;r++){t=this.R[r];var i=void 0;this.index.set(t,i=new Ci({},this.reg)),e===this.field&&(e=e.slice(0)),e.push(t),i.tag=this.tag.get(t)}i=[];const r={db:t.db,type:t.type,fastupdate:t.fastupdate};for(let n,s,o=0;o<e.length;o++){r.field=s=e[o],n=this.index.get(s);const a=new t.constructor(t.id,r);a.id=t.id,i[o]=a.mount(n),n.document=!0,o?n.bypass=!0:n.store=this.store}const n=this;return this.db=Promise.all(i).then((function(){n.db=!0}))},le.commit=async function(t,e){const i=[];for(const r of this.index.values())i.push(r.commit(t,e));await Promise.all(i),this.reg.clear()},le.destroy=function(){const t=[];for(const e of this.index.values())t.push(e.destroy());return Promise.all(t)},le.append=function(t,e){return this.add(t,e,!0)},le.update=function(t,e){return this.remove(t).add(t,e)},le.remove=function(t){for(var e of(fe(t)&&(t=de(t,this.key)),this.index.values()))e.remove(t,!0);if(this.reg.has(t)){if(this.tag&&!this.fastupdate)for(let i of this.tag.values())for(let r of i){e=r[0];const n=r[1],s=n.indexOf(t);-1<s&&(1<n.length?n.splice(s,1):i.delete(e))}this.store&&this.store.delete(t),this.reg.delete(t)}return this.cache&&this.cache.remove(t),this},le.clear=function(){const t=[];for(const e of this.index.values()){const i=e.clear();i.then&&t.push(i)}if(this.tag)for(const t of this.tag.values())t.clear();return this.store&&this.store.clear(),this.cache&&this.cache.clear(),t.length?Promise.all(t):this},le.contain=function(t){return this.db?this.index.get(this.field[0]).db.has(t):this.reg.has(t)},le.cleanup=function(){for(const t of this.index.values())t.cleanup();return this},le.get=function(t){return this.db?this.index.get(this.field[0]).db.enrich(t).then((function(t){return t[0]&&t[0].doc||null})):this.store.get(t)||null},le.set=function(t,e){return"object"==typeof t&&(t=de(e=t,this.key)),this.store.set(t,e),this},le.searchCache=xi,le.export=function(t,e,i=0,r=0){if(i<this.field.length){const n=this.field[i];if((e=this.index.get(n).export(t,n,i,r=1))&&e.then){const r=this;return e.then((function(){return r.export(t,n,i+1)}))}return this.export(t,n,i+1)}let n,s;switch(r){case 0:n="reg",s=ze(this.reg),e=null;break;case 1:n="tag",s=this.tag&&Ie(this.tag,this.reg.size),e=null;break;case 2:n="doc",s=this.store&&Me(this.store),e=null;break;default:return}return Fe.call(this,t,e,n,s,i,r)},le.import=function(t,e){var i=t.split(".");"json"===i[i.length-1]&&i.pop();const r=2<i.length?i[0]:"";if(i=2<i.length?i[2]:i[1],this.worker&&r)return this.index.get(r).import(t);if(e){if("string"==typeof e&&(e=JSON.parse(e)),r)return this.index.get(r).import(i,e);switch(i){case"reg":this.fastupdate=!1,this.reg=Re(e,this.reg);for(let t,e=0;e<this.field.length;e++)t=this.index.get(this.field[e]),t.fastupdate=!1,t.reg=this.reg;if(this.worker){e=[];for(const i of this.index.values())e.push(i.import(t));return Promise.all(e)}break;case"tag":this.tag=De(e,this.tag);break;case"doc":this.store=Ne(e,this.store)}}},Pe(vi.prototype),ki.prototype.set=function(t,e){this.cache.set(this.h=t,e),this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)},ki.prototype.get=function(t){const e=this.cache.get(t);return e&&this.h!==t&&(this.cache.delete(t),this.cache.set(this.h=t,e)),e},ki.prototype.remove=function(t){for(const e of this.cache){const i=e[0];e[1].includes(t)&&this.cache.delete(i)}},ki.prototype.clear=function(){this.cache.clear(),this.h=""},Ci.prototype.remove=function(t,e){const i=this.reg.size&&(this.fastupdate?this.reg.get(t):this.reg.has(t));if(i){if(this.fastupdate){for(let e,r=0;r<i.length;r++)if(e=i[r])if(2>e.length)e.pop();else{const r=e.indexOf(t);r===i.length-1?e.pop():e.splice(r,1)}}else Si(this.map,t),this.depth&&Si(this.ctx,t);e||this.reg.delete(t)}return this.db&&(this.commit_task.push({del:t}),this.T&&Mi(this)),this.cache&&this.cache.remove(t),this};const $i={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:"forward"},score:{resolution:9,context:{depth:2,resolution:3}}};function Ai(t,e,i,r,n,s,o){let a,l=o?t.ctx:t.map;if((!e[i]||o&&!(a=e[i])[o])&&(o?((e=a||(e[i]=ce()))[o]=1,(a=l.get(o))?l=a:l.set(o,l=new Map)):e[i]=1,(a=l.get(i))?l=a:l.set(i,l=a=[]),l=l[r]||(l[r]=[]),!s||!l.includes(n))){if(l.length===2**31-1){if(e=new Be(l),t.fastupdate)for(let i of t.reg.values())i.includes(l)&&(i[i.indexOf(l)]=e);a[r]=l=e}l.push(n),t.fastupdate&&((r=t.reg.get(n))?r.push(l):t.reg.set(n,[l]))}}function Pi(t,e,i,r,n){return i&&1<t?e+(r||0)<=t?i+(n||0):(t-1)/(e+(r||0))*(i+(n||0))+1|0:0}function ji(t,e,i,r,n,s,o){let a=t.length,l=t;if(1<a)l=si(t,e,i,r,n,s,o);else if(1===a)return o?Ke.call(null,t[0],i,r):new ni(t[0],this);return o?l:new ni(l,this)}function Ti(t,e,i,r,n,s,o){return t=Ei(this,t,e,i,r,n,s,o),this.db?t.then((function(t){return n?t||[]:new ni(t,this)})):t&&t.length?n?Ke.call(this,t,i,r):new ni(t,this):n?[]:new ni([],this)}function Oi(t,e,i,r){let n=[];if(t&&t.length){if(t.length<=r)return void e.push(t);for(let e,i=0;i<r;i++)(e=t[i])&&(n[i]=e);if(n.length)return void e.push(n)}if(!i)return n}function Ei(t,e,i,r,n,s,o,a){let l;return i&&(l=t.bidirectional&&e>i)&&(l=i,i=e,e=l),t.db?t.db.get(e,i,r,n,s,o,a):t=i?(t=t.ctx.get(i))&&t.get(e):t.map.get(e)}function Ci(t,e){if(!this||this.constructor!==Ci)return new Ci(t);if(t){var i=ue(t)?t:t.preset;i&&(t=Object.assign({},$i[i],t))}else t={};const r=!0===(i=t.context)?{depth:1}:i||{},n=ue(t.encoder)?bi[t.encoder]:t.encode||t.encoder||{};this.encoder=n.encode?n:"object"==typeof n?new ve(n):{encode:n},this.resolution=t.resolution||9,this.tokenize=i=(i=t.tokenize)&&"default"!==i&&"exact"!==i&&i||"strict",this.depth="strict"===i&&r.depth||0,this.bidirectional=!1!==r.bidirectional,this.fastupdate=!!t.fastupdate,this.score=t.score||null,(i=t.keystore||0)&&(this.keystore=i),this.map=i?new qe(i):new Map,this.ctx=i?new qe(i):new Map,this.reg=e||(this.fastupdate?i?new qe(i):new Map:i?new He(i):new Set),this.U=r.resolution||3,this.rtl=n.rtl||t.rtl||!1,this.cache=(i=t.cache||null)&&new ki(i),this.resolve=!1!==t.resolve,(i=t.db)&&(this.db=this.mount(i)),this.T=!1!==t.commit,this.commit_task=[],this.commit_timer=null,this.priority=t.priority||4}function Mi(t){t.commit_timer||(t.commit_timer=setTimeout((function(){t.commit_timer=null,t.db.commit(t,void 0,void 0)}),1))}Ci.prototype.add=function(t,e,i,r){if(e&&(t||0===t)){if(!r&&!i&&this.reg.has(t))return this.update(t,e);r=this.depth;const h=(e=this.encoder.encode(e,!r)).length;if(h){const c=ce(),u=ce(),f=this.resolution;for(let d=0;d<h;d++){let g=e[this.rtl?h-1-d:d];var n=g.length;if(n&&(r||!u[g])){var s=this.score?this.score(e,g,d,null,0):Pi(f,h,d),o="";switch(this.tokenize){case"full":if(2<n){for(let r,l=0;l<n;l++)for(s=n;s>l;s--){o=g.substring(l,s),r=this.rtl?n-1-l:l;var a=this.score?this.score(e,g,d,o,r):Pi(f,h,d,n,r);Ai(this,u,o,a,t,i)}break}case"bidirectional":case"reverse":if(1<n){for(a=n-1;0<a;a--){o=g[this.rtl?n-1-a:a]+o;var l=this.score?this.score(e,g,d,o,a):Pi(f,h,d,n,a);Ai(this,u,o,l,t,i)}o=""}case"forward":if(1<n){for(a=0;a<n;a++)Ai(this,u,o+=g[this.rtl?n-1-a:a],s,t,i);break}default:if(Ai(this,u,g,s,t,i),r&&1<h&&d<h-1)for(n=ce(),o=this.U,s=g,a=Math.min(r+1,this.rtl?d+1:h-d),n[s]=1,l=1;l<a;l++)if((g=e[this.rtl?h-1-d-l:d+l])&&!n[g]){n[g]=1;const r=this.score?this.score(e,s,d,g,l-1):Pi(o+(h/2>o?0:1),h,d,a-1,l-1),u=this.bidirectional&&g>s;Ai(this,c,u?s:g,r,t,i,u?g:s)}}}}this.fastupdate||this.reg.add(t)}else e=""}return this.db&&(e||this.commit_task.push({del:t}),this.T&&Mi(this)),this},Ci.prototype.search=function(t,e,i){if(i||(e||"object"!=typeof t?"object"==typeof e&&(i=e,e=0):(i=t,t="")),i&&i.cache)return i.cache=!1,t=this.searchCache(t,e,i),i.cache=!0,t;let r,n,s,o,a,l,h,c,u=[],f=0;i&&(t=i.query||t,e=i.limit||e,f=i.offset||0,n=i.context,s=i.suggest,c=(o=i.resolve)&&i.enrich,l=i.boost,h=i.resolution,a=this.db&&i.tag),void 0===o&&(o=this.resolve),n=this.depth&&!1!==n;let d=this.encoder.encode(t,!n);if(r=d.length,e=e||(o?100:0),1===r)return Ti.call(this,d[0],"",e,f,o,c,a);if(2===r&&n&&!s)return Ti.call(this,d[1],d[0],e,f,o,c,a);let g,p=ce(),m=0;if(n&&(g=d[0],m=1),h||0===h||(h=g?this.U:this.resolution),this.db){if(this.db.search&&!1!==(i=this.db.search(this,d,e,f,s,o,c,a)))return i;const t=this;return async function(){for(let e,i;m<r;m++){if((i=d[m])&&!p[i]){if(p[i]=1,e=await Ei(t,i,g,0,0,!1,!1),e=Oi(e,u,s,h)){u=e;break}g&&(s&&e&&u.length||(g=i))}s&&g&&m===r-1&&!u.length&&(h=t.resolution,g="",m=-1,p=ce())}return ji(u,h,e,f,s,l,o)}()}for(let t,e;m<r;m++){if((e=d[m])&&!p[e]){if(p[e]=1,t=Ei(this,e,g,0,0,!1,!1),t=Oi(t,u,s,h)){u=t;break}g&&(s&&t&&u.length||(g=e))}s&&g&&m===r-1&&!u.length&&(h=this.resolution,g="",m=-1,p=ce())}return ji(u,h,e,f,s,l,o)},(le=Ci.prototype).mount=function(t){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),t.mount(this)},le.commit=function(t,e){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.commit(this,t,e)},le.destroy=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.destroy()},le.clear=function(){return this.map.clear(),this.ctx.clear(),this.reg.clear(),this.cache&&this.cache.clear(),this.db&&(this.commit_timer&&clearTimeout(this.commit_timer),this.commit_timer=null,this.commit_task=[{clear:!0}]),this},le.append=function(t,e){return this.add(t,e,!0)},le.contain=function(t){return this.db?this.db.has(t):this.reg.has(t)},le.update=function(t,e){const i=this,r=this.remove(t);return r&&r.then?r.then((()=>i.add(t,e))):this.add(t,e)},le.cleanup=function(){return this.fastupdate?(Si(this.map),this.depth&&Si(this.ctx),this):this},le.searchCache=xi,le.export=function(t,e,i=0,r=0){let n,s;switch(r){case 0:n="reg",s=ze(this.reg);break;case 1:n="cfg",s=null;break;case 2:n="map",s=Me(this.map,this.reg.size);break;case 3:n="ctx",s=Ie(this.ctx,this.reg.size);break;default:return}return Fe.call(this,t,e,n,s,i,r)},le.import=function(t,e){if(e)switch("string"==typeof e&&(e=JSON.parse(e)),t=t.split("."),"json"===t[t.length-1]&&t.pop(),3===t.length&&t.shift(),t=1<t.length?t[1]:t[0],t){case"reg":this.fastupdate=!1,this.reg=Re(e,this.reg);break;case"map":this.map=Ne(e,this.map);break;case"ctx":this.ctx=De(e,this.ctx)}},le.serialize=function(t=!0){let e="",i="",r="";if(this.reg.size){let t;for(var n of this.reg.keys())t||(t=typeof n),e+=(e?",":"")+("string"===t?'"'+n+'"':n);e="index.reg=new Set(["+e+"]);",i=Le(this.map,t),i="index.map=new Map(["+i+"]);";for(const e of this.ctx.entries()){n=e[0];let i=Le(e[1],t);i="new Map(["+i+"])",i='["'+n+'",'+i+"]",r+=(r?",":"")+i}r="index.ctx=new Map(["+r+"]);"}return t?"function inject(index){"+e+i+r+"}":e+i+r},Pe(Ci.prototype);const Ni="undefined"!=typeof window&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),Ii=["map","ctx","tag","reg","cfg"],Di=ce();function zi(t,e,i){const r=t.value;let n,s=0;for(let t,o=0;o<r.length;o++){if(t=i?r:r[o]){for(let i,s,a=0;a<e.length;a++)if(s=e[a],i=t.indexOf(s),0<=i){if(n=1,!(1<t.length)){r[o]=[];break}t.splice(i,1)}s+=t.length}if(i)break}s?n&&t.update(r):t.delete(),t.continue()}function Ri(t,e){return new Promise(((i,r)=>{t.onsuccess=t.oncomplete=function(){e&&e(this.result),e=null,i(this.result)},t.onerror=t.onblocked=r,t=null}))}le=function t(e,i={}){if(!this||this.constructor!==t)return new t(e,i);"object"==typeof e&&(i=e,e=e.name),e||console.info("Default storage space was used, because a name was not passed."),this.id="flexsearch"+(e?":"+e.toLowerCase().replace(/[^a-z0-9_\-]/g,""):""),this.field=i.field?i.field.toLowerCase().replace(/[^a-z0-9_\-]/g,""):"",this.type=i.type,this.fastupdate=this.support_tag_search=!1,this.db=null,this.h={}}.prototype,le.mount=function(t){return t.index?t.mount(this):(t.db=this,this.open())},le.open=function(){if(this.db)return this.db;let t=this;navigator.storage&&navigator.storage.persist(),Di[t.id]||(Di[t.id]=[]),Di[t.id].push(t.field);const e=Ni.open(t.id,1);return e.onupgradeneeded=function(){const e=t.db=this.result;for(let i,r=0;r<Ii.length;r++){i=Ii[r];for(let r,n=0;n<Di[t.id].length;n++)r=Di[t.id][n],e.objectStoreNames.contains(i+("reg"!==i&&r?":"+r:""))||e.createObjectStore(i+("reg"!==i&&r?":"+r:""))}},t.db=Ri(e,(function(e){t.db=e,t.db.onversionchange=function(){t.close()}}))},le.close=function(){this.db&&this.db.close(),this.db=null},le.destroy=function(){return Ri(Ni.deleteDatabase(this.id))},le.clear=function(){const t=[];for(let e,i=0;i<Ii.length;i++){e=Ii[i];for(let i,r=0;r<Di[this.id].length;r++)i=Di[this.id][r],t.push(e+("reg"!==e&&i?":"+i:""))}const e=this.db.transaction(t,"readwrite");for(let i=0;i<t.length;i++)e.objectStore(t[i]).clear();return Ri(e)},le.get=function(t,e,i=0,r=0,n=!0,s=!1){t=this.db.transaction((e?"ctx":"map")+(this.field?":"+this.field:""),"readonly").objectStore((e?"ctx":"map")+(this.field?":"+this.field:"")).get(e?e+":"+t:t);const o=this;return Ri(t).then((function(t){let e=[];if(!t||!t.length)return e;if(n){if(!i&&!r&&1===t.length)return t[0];for(let n,s=0;s<t.length;s++)if((n=t[s])&&n.length){if(r>=n.length){r-=n.length;continue}const t=i?r+Math.min(n.length-r,i):n.length;for(let i=r;i<t;i++)e.push(n[i]);if(r=0,e.length===i)break}return s?o.enrich(e):e}return t}))},le.tag=function(t,e=0,i=0,r=!1){t=this.db.transaction("tag"+(this.field?":"+this.field:""),"readonly").objectStore("tag"+(this.field?":"+this.field:"")).get(t);const n=this;return Ri(t).then((function(t){return!t||!t.length||i>=t.length?[]:e||i?(t=t.slice(i,i+e),r?n.enrich(t):t):t}))},le.enrich=function(t){"object"!=typeof t&&(t=[t]);const e=this.db.transaction("reg","readonly").objectStore("reg"),i=[];for(let r=0;r<t.length;r++)i[r]=Ri(e.get(t[r]));return Promise.all(i).then((function(e){for(let i=0;i<e.length;i++)e[i]={id:t[i],doc:e[i]?JSON.parse(e[i]):null};return e}))},le.has=function(t){return Ri(t=this.db.transaction("reg","readonly").objectStore("reg").getKey(t)).then((function(t){return!!t}))},le.search=null,le.info=function(){},le.transaction=function(t,e,i){t+="reg"!==t&&this.field?":"+this.field:"";let r=this.h[t+":"+e];if(r)return i.call(this,r);let n=this.db.transaction(t,e);this.h[t+":"+e]=r=n.objectStore(t);const s=i.call(this,r);return this.h[t+":"+e]=null,Ri(n).finally((function(){return n=r=null,s}))},le.commit=async function(t,e,i){if(e)await this.clear(),t.commit_task=[];else{let r=t.commit_task;t.commit_task=[];for(let t,i=0;i<r.length;i++){if(t=r[i],t.clear){await this.clear(),e=!0;break}r[i]=t.del}e||(i||(r=r.concat(function(t){const e=[];for(const i of t.keys())e.push(i);return e}(t.reg))),r.length&&await this.remove(r))}t.reg.size&&(await this.transaction("map","readwrite",(function(i){for(const r of t.map){const t=r[0],n=r[1];n.length&&(e?i.put(n,t):i.get(t).onsuccess=function(){let e=this.result;var r;if(e&&e.length){const t=Math.max(e.length,n.length);for(let i,s,o=0;o<t;o++)if((s=n[o])&&s.length){if((i=e[o])&&i.length)for(r=0;r<s.length;r++)i.push(s[r]);else e[o]=s;r=1}}else e=n,r=1;r&&i.put(e,t)})}})),await this.transaction("ctx","readwrite",(function(i){for(const r of t.ctx){const t=r[0],n=r[1];for(const r of n){const n=r[0],s=r[1];s.length&&(e?i.put(s,t+":"+n):i.get(t+":"+n).onsuccess=function(){let e=this.result;var r;if(e&&e.length){const t=Math.max(e.length,s.length);for(let i,n,o=0;o<t;o++)if((n=s[o])&&n.length){if((i=e[o])&&i.length)for(r=0;r<n.length;r++)i.push(n[r]);else e[o]=n;r=1}}else e=s,r=1;r&&i.put(e,t+":"+n)})}}})),t.store?await this.transaction("reg","readwrite",(function(e){for(const i of t.store){const t=i[0],r=i[1];e.put("object"==typeof r?JSON.stringify(r):1,t)}})):t.bypass||await this.transaction("reg","readwrite",(function(e){for(const i of t.reg.keys())e.put(1,i)})),t.tag&&await this.transaction("tag","readwrite",(function(e){for(const i of t.tag){const t=i[0],r=i[1];r.length&&(e.get(t).onsuccess=function(){let i=this.result;i=i&&i.length?i.concat(r):r,e.put(i,t)})}})),t.map.clear(),t.ctx.clear(),t.tag&&t.tag.clear(),t.store&&t.store.clear(),t.document||t.reg.clear())},le.remove=function(t){return"object"!=typeof t&&(t=[t]),Promise.all([this.transaction("map","readwrite",(function(e){e.openCursor().onsuccess=function(){const e=this.result;e&&zi(e,t)}})),this.transaction("ctx","readwrite",(function(e){e.openCursor().onsuccess=function(){const e=this.result;e&&zi(e,t)}})),this.transaction("tag","readwrite",(function(e){e.openCursor().onsuccess=function(){const e=this.result;e&&zi(e,t,!0)}})),this.transaction("reg","readwrite",(function(e){for(let i=0;i<t.length;i++)e.delete(t[i])}))])};const Fi=bi,Li=ve,Ui=vi;async function Bi(){const t=new Ui({document:{id:"id",store:!0,index:[{field:"name",tokenize:"bidirectional",priority:9,encoder:new Li(Fi.LatinBalance).assign({normalize(t){let e=t.replace(/\d+/g," ").split(/(?<=[a-z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])/);return e.length>1&&e.push(t),e.join(" ").toLowerCase()}})},{field:"comment",tokenize:"default",encoder:Fi.LatinSoundex}],tag:[]}}),e=`${document.documentElement.dataset.base}assets/oxide`,i=await async function(t){const e=await fetch(t),i=(await e.blob()).stream().pipeThrough(new DecompressionStream("deflate"));return await new Response(i).json()}(`${e}/search-index.deflate`);for(const[e,r]of Object.entries(i))t.import(e,r);return t}document.addEventListener("DOMContentLoaded",(async()=>{const t=document.querySelector("rustdoc-search .search-form"),e=document.querySelector("rustdoc-search .search-input"),i=document.getElementById("main-content"),r=document.getElementById("alternative-display");let n,s;t.addEventListener("submit",(t=>{t.preventDefault(),t.stopPropagation()})),e.addEventListener("input",function(t,e,i){var r=!0,n=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Pt(i)&&(r="leading"in i?!!i.leading:r,n="trailing"in i?!!i.trailing:n),Dt(t,e,{leading:r,maxWait:e,trailing:n})}((async t=>{n||(n=Bi());const e=t.target.value?.trim(),[o,a]=e?[i,r]:[r,i];o.classList.add("hidden"),a.classList.remove("hidden"),s?.abort(),s=new AbortController;const l=s.signal;await async function(t,e,i){if(e.aborted||!t.length)return;const r=await i.search({query:t,enrich:!0,merge:!0});if(e.aborted)return;const n=document.querySelector('meta[name="rustdoc-vars"]'),s=document.querySelector("oxide-search-results#search");s.loading=!1,s.project=n.dataset.currentCrate,s.query=t,s.items=r.map((t=>t.doc)).filter((t=>null!=t))}(e,l,await n)}),300))})),(()=>{let t,r,n,s,o,a,l=[ht("oxide-search-results")],h=[],c=at,u=[],f=[],d=[],g=[],p=[],m=[],y=[],b=[];var v=class extends c{static{r=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(c[Symbol.metadata]??null):void 0;n=[ft({attribute:!1})],s=[ft({attribute:!1})],o=[ft({attribute:!1})],a=[ft({attribute:!1})],e(this,null,n,{kind:"accessor",name:"loading",static:!1,private:!1,access:{has:t=>"loading"in t,get:t=>t.loading,set:(t,e)=>{t.loading=e}},metadata:i},u,f),e(this,null,s,{kind:"accessor",name:"project",static:!1,private:!1,access:{has:t=>"project"in t,get:t=>t.project,set:(t,e)=>{t.project=e}},metadata:i},d,g),e(this,null,o,{kind:"accessor",name:"query",static:!1,private:!1,access:{has:t=>"query"in t,get:t=>t.query,set:(t,e)=>{t.query=e}},metadata:i},p,m),e(this,null,a,{kind:"accessor",name:"items",static:!1,private:!1,access:{has:t=>"items"in t,get:t=>t.items,set:(t,e)=>{t.items=e}},metadata:i},y,b),e(null,t={value:r},l,{kind:"class",name:r.name,metadata:i},null,h),v=r=t.value,i&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})}static base=document.documentElement.dataset.base;static classes={[Zt.ClassMember]:"fn",[Zt.Function]:"fn",[Zt.Property]:"fn",[Zt.Method]:"fn",[Zt.CallSignature]:"fn",[Zt.IndexSignature]:"fn",[Zt.GetSignature]:"fn",[Zt.SetSignature]:"fn",[Zt.Accessor]:"fn",[Zt.ConstructorSignature]:"primitive",[Zt.Constructor]:"primitive",[Zt.EnumMember]:"macro",[Zt.Variable]:"macro"};#t=i(this,u,!0);get loading(){return this.#t}set loading(t){this.#t=t}#e=(i(this,f),i(this,d,""));get project(){return this.#e}set project(t){this.#e=t}#i=(i(this,g),i(this,p,""));get query(){return this.#i}set query(t){this.#i=t}#r=(i(this,m),i(this,y,[]));get items(){return this.#r}set items(t){this.#r=t}createRenderRoot(){return this}render(){if(this.loading)return q`
|
|
48
|
-
<
|
|
49
|
-
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
<div id="results">
|
|
53
|
-
<div class="search-failed active">
|
|
54
|
-
Loading...
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
57
|
-
`;const t=this.items.map((t=>{const e=v.classes[t.kind]??"mod",i=function*(t,e){if(void 0!==t){let i=0;for(const r of t)yield e(r,i++)}}(t.parent?.split(".").filter((t=>t))??[],(t=>q`<span class="parent">${t}.</span>`));return q`
|
|
47
|
+
var Te;function je(t,e,i){const r=typeof i,n=typeof t;if("undefined"!==r){if("undefined"!==n){if(i){if("function"===n&&r===n)return function(e){return t(i(e))};if((e=t.constructor)===i.constructor){if(e===Array)return i.concat(t);if(e===Map){var s=new Map(i);for(var o of t)s.set(o[0],o[1]);return s}if(e===Set){for(s of(o=new Set(i),t.values()))o.add(s);return o}}}return t}return i}return"undefined"===n?e:t}function Ae(t,e){return void 0===t?e:t}function Pe(){return Object.create(null)}function $e(t){return"string"==typeof t}function Oe(t){return"object"==typeof t}function Ie(t,e){if($e(e))t=t[e];else for(let i=0;t&&i<e.length;i++)t=t[e[i]];return t}(()=>{let t,e,i,r,n,s,o=ce,a=[],l=[],h=[],c=[],u=[],f=[],d=[],p=[],g=[],m=[],y=[],b=[];(class extends o{static{const v="function"==typeof Symbol&&Symbol.metadata?Object.create(o[Symbol.metadata]??null):void 0;t=[Bt],e=[Bt],i=[Bt],r=[Bt],n=[Bt],s=[Bt],xe(null,null,t,{kind:"field",name:"symbolToReflectionIdMap",static:!1,private:!1,access:{has:t=>"symbolToReflectionIdMap"in t,get:t=>t.symbolToReflectionIdMap,set:(t,e)=>{t.symbolToReflectionIdMap=e}},metadata:v},a,l),xe(null,null,e,{kind:"field",name:"reflectionIdToSymbolIdMap",static:!1,private:!1,access:{has:t=>"reflectionIdToSymbolIdMap"in t,get:t=>t.reflectionIdToSymbolIdMap,set:(t,e)=>{t.reflectionIdToSymbolIdMap=e}},metadata:v},h,c),xe(null,null,i,{kind:"field",name:"removedSymbolIds",static:!1,private:!1,access:{has:t=>"removedSymbolIds"in t,get:t=>t.removedSymbolIds,set:(t,e)=>{t.removedSymbolIds=e}},metadata:v},u,f),xe(null,null,r,{kind:"field",name:"referenceGraph",static:!1,private:!1,access:{has:t=>"referenceGraph"in t,get:t=>t.referenceGraph,set:(t,e)=>{t.referenceGraph=e}},metadata:v},d,p),xe(null,null,n,{kind:"field",name:"reflectionChildren",static:!1,private:!1,access:{has:t=>"reflectionChildren"in t,get:t=>t.reflectionChildren,set:(t,e)=>{t.reflectionChildren=e}},metadata:v},g,m),xe(null,null,s,{kind:"field",name:"reflections",static:!1,private:!1,access:{has:t=>"reflections"in t,get:t=>t.reflections,set:(t,e)=>{t.reflections=e}},metadata:v},y,b),v&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:v})}variant="project";symbolToReflectionIdMap=ke(this,a,new Vt);reflectionIdToSymbolIdMap=(ke(this,l),ke(this,h,new Map));removedSymbolIds=(ke(this,c),ke(this,u,new Vt));referenceGraph=(ke(this,f),ke(this,d,void 0));reflectionChildren=(ke(this,p),ke(this,g,new Ut((()=>[]))));reflections=(ke(this,m),ke(this,y,{}));packageName=ke(this,b);packageVersion;readme;files;constructor(t,e){super(t,Yt.Project),this.reflections[this.id]=this,this.files=e}isProject(){return!0}getReflectionsByKind(t){return Object.values(this.reflections).filter((e=>e.kindOf(t)))}registerReflection(t,e,i){this.referenceGraph=void 0,t.parent&&this.reflectionChildren.get(t.parent.id).push(t.id),this.reflections[t.id]=t,e&&this.registerSymbolId(t,e),i&&this.files.registerReflection(i,t)}removeTypeReflections(t){t?.visit(function(t){const e={namedTupleMember(i){t.namedTupleMember?.(i),i.element.visit(e)},templateLiteral(i){t.templateLiteral?.(i);for(const[t]of i.tail)t.visit(e)},array(i){t.array?.(i),i.elementType.visit(e)},conditional(i){t.conditional?.(i),i.checkType.visit(e),i.extendsType.visit(e),i.trueType.visit(e),i.falseType.visit(e)},indexedAccess(i){t.indexedAccess?.(i),i.indexType.visit(e),i.objectType.visit(e)},inferred(i){t.inferred?.(i),i.constraint?.visit(e)},intersection(i){t.intersection?.(i),i.types.forEach((t=>t.visit(e)))},intrinsic(e){t.intrinsic?.(e)},literal(e){t.literal?.(e)},mapped(i){t.mapped?.(i),i.nameType?.visit(e),i.parameterType.visit(e),i.templateType.visit(e)},optional(i){t.optional?.(i),i.elementType.visit(e)},predicate(i){t.predicate?.(i),i.targetType?.visit(e)},query(i){t.query?.(i),i.queryType.visit(e)},reference(i){t.reference?.(i),i.typeArguments?.forEach((t=>t.visit(e)))},reflection(e){t.reflection?.(e)},rest(i){t.rest?.(i),i.elementType.visit(e)},tuple(i){t.tuple?.(i),i.elements.forEach((t=>t.visit(e)))},typeOperator(i){t.typeOperator?.(i),i.target.visit(e)},union(i){t.union?.(i),i.types.forEach((t=>t.visit(e)))},unknown(e){t.unknown?.(e)}};return e}({reflection:t=>{this.removeReflection(t.declaration)}}))}removeReflection(t){this._removeReflection(t);const e=t.parent;e?.traverse(((i,r)=>{if(i!==t)return!0;switch(r){case oe.Children:case oe.Documents:e.removeChild(t);break;case oe.GetSignature:delete e.getSignature;break;case oe.IndexSignature:Dt(e.indexSignatures,t),e.indexSignatures?.length||delete e.indexSignatures;break;case oe.Parameters:Dt(t.parent.parameters,t),t.parent.parameters?.length||delete t.parent.parameters;break;case oe.SetSignature:delete e.setSignature;break;case oe.Signatures:Dt(e.signatures,t),e.signatures?.length||delete e.signatures;break;case oe.TypeLiteral:e.type=new ge("Object");break;case oe.TypeParameter:Dt(e.typeParameters,t),e.typeParameters?.length||delete e.typeParameters;break;default:zt(r)}return!1}))}mergeReflections(t,e){delete this.referenceGraph;const i=this.reflectionChildren.getNoInsert(t.id)||[],r=this.reflectionChildren.get(e.id);for(const n of i){const i=this.getReflectionById(n);i?.parent===t&&(i.parent=e,r.push(n),e.addChild(i))}this.reflectionChildren.delete(t.id),this.removeReflection(t),delete e.groups,delete e.categories}_removeReflection(t){this.files.removeReflection(t);const e=this.getReferenceGraph();for(const i of e.get(t.id)??[]){const t=this.getReflectionById(i);t&&this.removeReflection(t)}e.delete(t.id);for(const e of this.reflectionChildren.getNoInsert(t.id)||[]){const i=this.getReflectionById(e);i?.parent===t&&this._removeReflection(i)}this.reflectionChildren.delete(t.id);const i=this.reflectionIdToSymbolIdMap.get(t.id);if(i){const e=this.symbolToReflectionIdMap.get(i);e===t.id?(this.symbolToReflectionIdMap.delete(i),this.removedSymbolIds.set(i,!0)):"object"==typeof e&&(Dt(e,t.id),0===e.length&&this.removedSymbolIds.set(i,!0))}this.reflectionIdToSymbolIdMap.delete(t.id),delete this.reflections[t.id]}getReflectionById(t){return this.reflections[t]}getReflectionFromSymbolId(t){return this.getReflectionsFromSymbolId(t)[0]}getReflectionsFromSymbolId(t){const e=this.symbolToReflectionIdMap.get(t);return"number"==typeof e?[this.getReflectionById(e)]:"object"==typeof e?e.map((t=>this.getReflectionById(t))):[]}getSymbolIdFromReflection(t){return this.reflectionIdToSymbolIdMap.get(t.id)}registerSymbolId(t,e){this.removedSymbolIds.delete(e),this.reflectionIdToSymbolIdMap.set(t.id,e);const i=this.symbolToReflectionIdMap.get(e);void 0!==i?"number"==typeof i?this.symbolToReflectionIdMap.set(e,[i,t.id]):i.push(t.id):this.symbolToReflectionIdMap.set(e,t.id)}symbolIdHasBeenRemoved(t){return this.removedSymbolIds.has(t)}getReferenceGraph(){if(!this.referenceGraph){this.referenceGraph=new Map;for(const t in this.reflections){const e=this.reflections[t];if(e instanceof Se){const t=e.tryGetTargetReflection();if(t){const i=this.referenceGraph.get(t.id)??[];i.push(e.id),this.referenceGraph.set(t.id,i)}}}}return this.referenceGraph}toObject(t){const e={};return this.reflectionIdToSymbolIdMap.forEach(((t,i)=>{e[i]=t.toObject()})),{schemaVersion:"2.0",...super.toObject(t),variant:this.variant,packageName:this.packageName,packageVersion:this.packageVersion,readme:Xt.serializeDisplayParts(this.readme),symbolIdMap:e,files:t.toObject(this.files)}}fromObject(t,e){super.fromObject(t,e),this.packageName=e.packageName,this.packageVersion=e.packageVersion,e.readme&&(this.readme=Xt.deserializeDisplayParts(t,e.readme)),this.files.fromObject(t,e.files||{}),t.defer((()=>{for(const[i,r]of Object.entries(e.symbolIdMap||{})){const e=this.getReflectionById(t.oldIdToNewId[+i]??-1);e?this.registerSymbolId(e,new Kt(r)):t.logger.warn(Lt.serialized_project_referenced_0_not_part_of_project(i))}}))}})})();const Ce=/[^\p{L}\p{N}]+/u,Ee=/(\d{3})/g,Me=/(\D)(\d{3})/g,Re=/(\d{3})(\D)/g,Ne=/[\u0300-\u036f]/g;function De(t={}){if(!this||this.constructor!==De)return new De(...arguments);if(arguments.length)for(t=0;t<arguments.length;t++)this.assign(arguments[t]);else this.assign(t)}function ze(t){t.F=null,t.B.clear(),t.D.clear()}function Fe(t,e,i){i||(e||"object"!=typeof t?"object"==typeof e&&(i=e,e=0):i=t),i&&(t=i.query||t,e=i.limit||e);let r=""+(e||0);i&&(r+=(i.offset||0)+!!i.context+!!i.suggest+(!1!==i.resolve)+(i.resolution||this.resolution)+(i.boost||0)),t=(""+t).toLowerCase(),this.cache||(this.cache=new Be);let n=this.cache.get(t+r);if(!n){const s=i&&i.cache;s&&(i.cache=!1),n=this.search(t,e,i),s&&(i.cache=s),this.cache.set(t+r,n)}return n}function Be(t){this.limit=t&&!0!==t?t:1e3,this.cache=new Map,this.h=""}(Te=De.prototype).assign=function(t){this.normalize=je(t.normalize,!0,this.normalize);let e,i=t.include,r=i||t.exclude||t.split;if(r||""===r){if("object"==typeof r&&r.constructor!==RegExp){let t="";e=!i,i||(t+="\\p{Z}"),r.letter&&(t+="\\p{L}"),r.number&&(t+="\\p{N}",e=!!i),r.symbol&&(t+="\\p{S}"),r.punctuation&&(t+="\\p{P}"),r.control&&(t+="\\p{C}"),(r=r.char)&&(t+="object"==typeof r?r.join(""):r);try{this.split=new RegExp("["+(i?"^":"")+t+"]+","u")}catch(t){this.split=/\s+/}}else this.split=r,e=!1===r||"a1a".split(r).length<2;this.numeric=je(t.numeric,e)}else{try{this.split=je(this.split,Ce)}catch(t){this.split=/\s+/}this.numeric=je(t.numeric,je(this.numeric,!0))}if(this.prepare=je(t.prepare,null,this.prepare),this.finalize=je(t.finalize,null,this.finalize),r=t.filter,this.filter="function"==typeof r?r:je(r&&new Set(r),null,this.filter),this.dedupe=je(t.dedupe,!0,this.dedupe),this.matcher=je((r=t.matcher)&&new Map(r),null,this.matcher),this.mapper=je((r=t.mapper)&&new Map(r),null,this.mapper),this.stemmer=je((r=t.stemmer)&&new Map(r),null,this.stemmer),this.replacer=je(t.replacer,null,this.replacer),this.minlength=je(t.minlength,1,this.minlength),this.maxlength=je(t.maxlength,1024,this.maxlength),this.rtl=je(t.rtl,!1,this.rtl),(this.cache=r=je(t.cache,!0,this.cache))&&(this.F=null,this.L="number"==typeof r?r:2e5,this.B=new Map,this.D=new Map,this.I=this.H=128),this.h="",this.J=null,this.A="",this.K=null,this.matcher)for(const t of this.matcher.keys())this.h+=(this.h?"|":"")+t;if(this.stemmer)for(const t of this.stemmer.keys())this.A+=(this.A?"|":"")+t;return this},Te.addStemmer=function(t,e){return this.stemmer||(this.stemmer=new Map),this.stemmer.set(t,e),this.A+=(this.A?"|":"")+t,this.K=null,this.cache&&ze(this),this},Te.addFilter=function(t){return"function"==typeof t?this.filter=t:(this.filter||(this.filter=new Set),this.filter.add(t)),this.cache&&ze(this),this},Te.addMapper=function(t,e){return"object"==typeof t?this.addReplacer(t,e):t.length>1?this.addMatcher(t,e):(this.mapper||(this.mapper=new Map),this.mapper.set(t,e),this.cache&&ze(this),this)},Te.addMatcher=function(t,e){return"object"==typeof t?this.addReplacer(t,e):t.length<2&&(this.dedupe||this.mapper)?this.addMapper(t,e):(this.matcher||(this.matcher=new Map),this.matcher.set(t,e),this.h+=(this.h?"|":"")+t,this.J=null,this.cache&&ze(this),this)},Te.addReplacer=function(t,e){return"string"==typeof t?this.addMatcher(t,e):(this.replacer||(this.replacer=[]),this.replacer.push(t,e),this.cache&&ze(this),this)},Te.encode=function(t,e){if(this.cache&&t.length<=this.H)if(this.F){if(this.B.has(t))return this.B.get(t)}else this.F=setTimeout(ze,50,this);this.normalize&&(t="function"==typeof this.normalize?this.normalize(t):Ne?t.normalize("NFKD").replace(Ne,"").toLowerCase():t.toLowerCase()),this.prepare&&(t=this.prepare(t)),this.numeric&&t.length>3&&(t=t.replace(Me,"$1 $2").replace(Re,"$1 $2").replace(Ee,"$1 "));const i=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer);let r,n,s=[],o=Pe(),a=this.split||""===this.split?t.split(this.split):[t];for(let t,h,c=0;c<a.length;c++)if((t=h=a[c])&&!(t.length<this.minlength||t.length>this.maxlength)){if(e){if(o[t])continue;o[t]=1}else{if(r===t)continue;r=t}if(i)s.push(t);else if(!this.filter||("function"==typeof this.filter?this.filter(t):!this.filter.has(t))){if(this.cache&&t.length<=this.I)if(this.F){var l=this.D.get(t);if(l||""===l){l&&s.push(l);continue}}else this.F=setTimeout(ze,50,this);if(this.stemmer){let e;for(this.K||(this.K=new RegExp("(?!^)("+this.A+")$"));e!==t&&t.length>2;)e=t,t=t.replace(this.K,(t=>this.stemmer.get(t)))}if(t&&(this.mapper||this.dedupe&&t.length>1)){l="";for(let e,i,r=0,n="";r<t.length;r++)e=t.charAt(r),e===n&&this.dedupe||((i=this.mapper&&this.mapper.get(e))||""===i?i===n&&this.dedupe||!(n=i)||(l+=i):l+=n=e);t=l}if(this.matcher&&t.length>1&&(this.J||(this.J=new RegExp("("+this.h+")","g")),t=t.replace(this.J,(t=>this.matcher.get(t)))),t&&this.replacer)for(l=0;t&&l<this.replacer.length;l+=2)t=t.replace(this.replacer[l],this.replacer[l+1]);if(this.cache&&h.length<=this.I&&(this.D.set(h,t),this.D.size>this.L&&(this.D.clear(),this.I=this.I/1.1|0)),t){if(t!==h)if(e){if(o[t])continue;o[t]=1}else{if(n===t)continue;n=t}s.push(t)}}}return this.finalize&&(s=this.finalize(s)||s),this.cache&&t.length<=this.H&&(this.B.set(t,s),this.B.size>this.L&&(this.B.clear(),this.H=this.H/1.1|0)),s},Be.prototype.set=function(t,e){this.cache.set(this.h=t,e),this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)},Be.prototype.get=function(t){const e=this.cache.get(t);return e&&this.h!==t&&(this.cache.delete(t),this.cache.set(this.h=t,e)),e},Be.prototype.remove=function(t){for(const e of this.cache){const i=e[0];e[1].includes(t)&&this.cache.delete(i)}},Be.prototype.clear=function(){this.cache.clear(),this.h=""};const qe={normalize:!1,numeric:!1,dedupe:!1},Le={},Ue=new Map([["b","p"],["v","f"],["w","f"],["z","s"],["x","s"],["d","t"],["n","m"],["c","k"],["g","k"],["j","k"],["q","k"],["i","e"],["y","e"],["u","o"]]),Ve=new Map([["ae","a"],["oe","o"],["sh","s"],["kh","k"],["th","t"],["ph","f"],["pf","f"]]),He=[/([^aeo])h(.)/g,"$1$2",/([aeo])h([^aeo]|$)/g,"$1$2",/(.)\1+/g,"$1"],Ge={a:"",e:"",i:"",o:"",u:"",y:"",b:1,f:1,p:1,v:1,c:2,g:2,j:2,k:2,q:2,s:2,x:2,z:2,"ß":2,d:3,t:3,l:4,m:5,n:5,r:6};var We={Exact:qe,Default:Le,Normalize:Le,LatinBalance:{mapper:Ue},LatinAdvanced:{mapper:Ue,matcher:Ve,replacer:He},LatinExtra:{mapper:Ue,replacer:He.concat([/(?!^)[aeo]/g,""]),matcher:Ve},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(t){for(let i=0;i<t.length;i++){var e=t[i];let r=e.charAt(0),n=Ge[r];for(let t,i=1;i<e.length&&(t=e.charAt(i),"h"===t||"w"===t||!(t=Ge[t])||t===n||(r+=t,n=t,4!==r.length));i++);t[i]=r}}},CJK:{split:""},LatinExact:qe,LatinDefault:Le,LatinSimple:Le};function Ke(t,e,i,r){let n=[];for(let s,o=0;o<t.index.length;o++)if(s=t.index[o],e>=s.length)e-=s.length;else{const o=(e=s[r?"splice":"slice"](e,i)).length;if(o&&(n=n.length?n.concat(e):e,i-=o,r&&(t.length-=o),!i))break;e=0}return n}function Je(t){if(!this||this.constructor!==Je)return new Je(t);this.index=t?[t]:[],this.length=t?t.length:0;const e=this;return new Proxy([],{get:(t,i)=>"length"===i?e.length:"push"===i?function(t){e.index[e.index.length-1].push(t),e.length++}:"pop"===i?function(){if(e.length)return e.length--,e.index[e.index.length-1].pop()}:"indexOf"===i?function(t){let i=0;for(let r,n,s=0;s<e.index.length;s++){if(r=e.index[s],n=r.indexOf(t),n>=0)return i+n;i+=r.length}return-1}:"includes"===i?function(t){for(let i=0;i<e.index.length;i++)if(e.index[i].includes(t))return!0;return!1}:"slice"===i?function(t,i){return Ke(e,t||0,i||e.length,!1)}:"splice"===i?function(t,i){return Ke(e,t||0,i||e.length,!0)}:"constructor"===i?Array:"symbol"!=typeof i?(t=e.index[i/2**31|0])&&t[i]:void 0,set:(t,i,r)=>(t=i/2**31|0,(e.index[t]||(e.index[t]=[]))[i]=r,e.length++,!0)})}function Ze(t=8){if(!this||this.constructor!==Ze)return new Ze(t);this.index=Pe(),this.h=[],this.size=0,t>32?(this.B=Ye,this.A=BigInt(t)):(this.B=Xe,this.A=t)}function Qe(t=8){if(!this||this.constructor!==Qe)return new Qe(t);this.index=Pe(),this.h=[],this.size=0,t>32?(this.B=Ye,this.A=BigInt(t)):(this.B=Xe,this.A=t)}function Xe(t){let e=2**this.A-1;if("number"==typeof t)return t&e;let i=0,r=this.A+1;for(let n=0;n<t.length;n++)i=(i*r^t.charCodeAt(n))&e;return 32===this.A?i+2**31:i}function Ye(t){let e=BigInt(2)**this.A-BigInt(1);var i=typeof t;if("bigint"===i)return t&e;if("number"===i)return BigInt(t)&e;i=BigInt(0);let r=this.A+BigInt(1);for(let n=0;n<t.length;n++)i=(i*r^BigInt(t.charCodeAt(n)))&e;return i}let ti,ei,ii,ri,ni;async function si(t){var e=(t=t.data).task;const i=t.id;let r=t.args;if("init"===e)ei=t.options||{},(e=t.factory)?(Function("return "+e)()(self),ti=new self.FlexSearch.Index(ei),delete self.FlexSearch):ti=new Ji(ei),postMessage({id:i});else{let n;"export"===e&&(r[1]?(r[0]=ei.export,r[2]=0,r[3]=1):r=null),"import"===e?r[0]&&(t=await ei.import.call(ti,r[0]),ti.import(r[0],t)):((n=r&&ti[e].apply(ti,r))&&n.then&&(n=await n),n&&n.await&&(n=await n.await),"search"===e&&n.result&&(n=n.result)),postMessage("search"===e?{id:i,msg:n}:{id:i})}}function oi(t){li.call(t,"add"),li.call(t,"append"),li.call(t,"search"),li.call(t,"update"),li.call(t,"remove"),li.call(t,"searchCache")}function ai(){ii=ni=0}function li(t){this[t+"Async"]=function(){const e=arguments;var i=e[e.length-1];let r;if("function"==typeof i&&(r=i,delete e[e.length-1]),ii?ni||(ni=Date.now()-ri>=this.priority*this.priority*3):(ii=setTimeout(ai,0),ri=Date.now()),ni){const i=this;return new Promise((r=>{setTimeout((function(){r(i[t+"Async"].apply(i,e))}),0)}))}const n=this[t].apply(this,e);return i=n.then?n:new Promise((t=>t(n))),r&&i.then(r),i}}Je.prototype.clear=function(){this.index.length=0},Je.prototype.push=function(){},Ze.prototype.get=function(t){const e=this.index[this.B(t)];return e&&e.get(t)},Ze.prototype.set=function(t,e){var i=this.B(t);let r=this.index[i];r?(i=r.size,r.set(t,e),(i-=r.size)&&this.size++):(this.index[i]=r=new Map([[t,e]]),this.h.push(r),this.size++)},Qe.prototype.add=function(t){var e=this.B(t);let i=this.index[e];i?(e=i.size,i.add(t),(e-=i.size)&&this.size++):(this.index[e]=i=new Set([t]),this.h.push(i),this.size++)},(Te=Ze.prototype).has=Qe.prototype.has=function(t){const e=this.index[this.B(t)];return e&&e.has(t)},Te.delete=Qe.prototype.delete=function(t){const e=this.index[this.B(t)];e&&e.delete(t)&&this.size--},Te.clear=Qe.prototype.clear=function(){this.index=Pe(),this.h=[],this.size=0},Te.values=Qe.prototype.values=function*(){for(let t=0;t<this.h.length;t++)for(let e of this.h[t].values())yield e},Te.keys=Qe.prototype.keys=function*(){for(let t=0;t<this.h.length;t++)for(let e of this.h[t].keys())yield e},Te.entries=Qe.prototype.entries=function*(){for(let t=0;t<this.h.length;t++)for(let e of this.h[t].entries())yield e};let hi=0;function ci(e={},i){function r(t){function r(t){const e=(t=t.data||t).id,i=e&&o.h[e];i&&(i(t.msg),delete o.h[e])}if(this.worker=t,this.h=Pe(),this.worker)return s?this.worker.on("message",r):this.worker.onmessage=r,e.config?new Promise((function(t){hi>1e9&&(hi=0),o.h[++hi]=function(){t(o)},o.worker.postMessage({id:hi,task:"init",factory:n,options:e})})):(this.priority=e.priority||4,this.encoder=i||null,this.worker.postMessage({task:"init",factory:n,options:e}),this)}if(!this||this.constructor!==ci)return new ci(e);let n="undefined"!=typeof self?self._factory:"undefined"!=typeof window?window._factory:null;n&&(n=n.toString());const s="undefined"==typeof window,o=this,a=function(e,i,r){return i?"undefined"!=typeof module?new(require("worker_threads").Worker)(__dirname+"/worker/node.js"):import("worker_threads").then((function(t){return new t.Worker(void 0+"/node/node.mjs")})):e?new window.Worker(URL.createObjectURL(new Blob(["onmessage="+si.toString()],{type:"text/javascript"}))):new window.Worker("string"==typeof r?r:(t&&"SCRIPT"===t.tagName.toUpperCase()&&t.src||new URL("index.js",document.baseURI).href).replace("/worker.js","/worker/worker.js").replace("flexsearch.bundle.module.min.js","module/worker/worker.js").replace("flexsearch.bundle.module.min.mjs","module/worker/worker.js"),{type:"module"})}(n,s,e.worker);return a.then?a.then((function(t){return r.call(o,t)})):r.call(this,a)}function ui(t){ci.prototype[t]=function(){const e=this,i=[].slice.call(arguments);var r=i[i.length-1];let n;return"function"==typeof r&&(n=r,i.pop()),r=new Promise((function(r){"export"===t&&"function"==typeof i[0]&&(i[0]=null),hi>1e9&&(hi=0),e.h[++hi]=r,e.worker.postMessage({task:t,id:hi,args:i})})),n?(r.then(n),this):r}}function fi(t,e,i,r,n,s){if(t=t[n],r===i.length-1)e[n]=s||t;else if(t)if(t.constructor===Array)for(e=e[n]=Array(t.length),n=0;n<t.length;n++)fi(t,e,i,r,n);else e=e[n]||(e[n]=Pe()),n=i[++r],fi(t,e,i,r,n)}function di(t,e,i,r,n,s,o,a){if(t=t[o])if(r===e.length-1){if(t.constructor===Array){if(i[r]){for(e=0;e<t.length;e++)n.add(s,t[e],!0,!0);return}t=t.join(" ")}n.add(s,t,a,!0)}else if(t.constructor===Array)for(o=0;o<t.length;o++)di(t,e,i,r,n,s,o,a);else o=e[++r],di(t,e,i,r,n,s,o,a)}function pi(t,e,i,r){if(!t.length)return t;if(1===t.length)return t=t[0],t=i||t.length>e?t.slice(i,i+e):t,r?$i.call(this,t):t;let n=[];for(let s,o,a=0;a<t.length;a++)if((s=t[a])&&(o=s.length)){if(i){if(i>=o){i-=o;continue}s=s.slice(i,i+e),o=s.length,i=0}if(o>e&&(s=s.slice(0,e),o=e),!n.length&&o>=e)return r?$i.call(this,s):s;if(n.push(s),!(e-=o))break}return n=n.length>1?[].concat.apply([],n):n[0],r?$i.call(this,n):n}function gi(t,e,i,r){var n=r[0];if(n[0]&&n[0].query)return t[e].apply(t,n);if(!("and"!==e&&"not"!==e||t.result.length||t.await||n.suggest))return r.length>1&&(n=r[r.length-1]),(r=n.resolve)?t.await||t.result:t;let s,o,a,l,h,c=[],u=0,f=0;for(e=0;e<r.length;e++)if(n=r[e]){var d=void 0;if(n.constructor===Si)d=n.await||n.result;else if(n.then||n.constructor===Array)d=n;else{u=n.limit||0,f=n.offset||0,a=n.suggest,o=n.resolve,s=((l=n.highlight||t.highlight)||n.enrich)&&o,d=n.queue;let i=n.async||d,r=n.index,p=n.query;if(r?t.index||(t.index=r):r=t.index,p||n.tag){const s=n.field||n.pluck;if(s&&(!p||t.query&&!l||(t.query=p,t.field=s,t.highlight=l),r=r.index.get(s)),d&&(h||t.await)){let s;h=1;const o=t.C.length,a=new Promise((function(t){s=t}));!function(e,r){a.h=function(){r.index=null,r.resolve=!1;let n=i?e.searchAsync(r):e.search(r);return n.then?n.then((function(e){return t.C[o]=e=e.result||e,s(e),e})):(n=n.result||n,s(n),n)}}(r,Object.assign({},n)),t.C.push(a),c[e]=a;continue}n.resolve=!1,n.index=null,d=i?r.searchAsync(n):r.search(n),n.resolve=o,n.index=r}else if(n.and)d=mi(n,"and",r);else if(n.or)d=mi(n,"or",r);else if(n.not)d=mi(n,"not",r);else{if(!n.xor)continue;d=mi(n,"xor",r)}}d.await?(h=1,d=d.await):d.then?(h=1,d=d.then((function(t){return t.result||t}))):d=d.result||d,c[e]=d}if(h&&!t.await&&(t.await=new Promise((function(e){t.return=e}))),h){const e=Promise.all(c).then((function(r){for(let n=0;n<t.C.length;n++)if(t.C[n]===e){t.C[n]=function(){return i.call(t,r,u,f,s,o,a,l)};break}xi(t)}));t.C.push(e)}else{if(!t.await)return i.call(t,c,u,f,s,o,a,l);t.C.push((function(){return i.call(t,c,u,f,s,o,a,l)}))}return o?t.await||t.result:t}function mi(t,e,i){const r=(t=t[e])[0]||t;return r.index||(r.index=i),i=new Si(r),t.length>1&&(i=i[e].apply(i,t.slice(1))),i}function yi(t,e,i,r,n,s,o){return t.length&&(this.result.length&&t.push(this.result),t.length<2?this.result=t[0]:(this.result=Ti(t,e,i,!1,this.h),i=0)),n&&(this.await=null),n?this.resolve(e,i,r,o):this}function bi(t,e,i,r,n,s,o){if(!s&&!this.result.length)return n?this.result:this;let a;if(t.length)if(this.result.length&&t.unshift(this.result),t.length<2)this.result=t[0];else{let r=0;for(let e,i,n=0;n<t.length;n++)if((e=t[n])&&(i=e.length))r<i&&(r=i);else if(!s){r=0;break}r?(this.result=ki(t,r,e,i,s,this.h,n),a=!0):this.result=[]}else s||(this.result=t);return n&&(this.await=null),n?this.resolve(e,i,r,o,a):this}function vi(t,e,i,r,n,s,o){if(t.length)if(this.result.length&&t.unshift(this.result),t.length<2)this.result=t[0];else{t:{s=i;var a=this.h;const r=[],o=Pe();let l=0;for(let e,i=0;i<t.length;i++)if(e=t[i]){l<e.length&&(l=e.length);for(let t,i=0;i<e.length;i++)if(t=e[i])for(let e,i=0;i<t.length;i++)e=t[i],o[e]=o[e]?2:1}for(let i,h=0,c=0;h<l;h++)for(let l,u=0;u<t.length;u++)if((l=t[u])&&(i=l[h]))for(let l,f=0;f<i.length;f++)if(l=i[f],1===o[l])if(s)s--;else if(n){if(r.push(l),r.length===e){t=r;break t}}else{const i=h+(u?a:0);if(r[i]||(r[i]=[]),r[i].push(l),++c===e){t=r;break t}}t=r}this.result=t,a=!0}else s||(this.result=t);return n&&(this.await=null),n?this.resolve(e,i,r,o,a):this}function wi(t,e,i,r,n,s,o){if(!s&&!this.result.length)return n?this.result:this;if(t.length&&this.result.length){t:{s=i;var a=[];t=new Set(t.flat().flat());for(let i,r=0,o=0;r<this.result.length;r++)if(i=this.result[r])for(let l,h=0;h<i.length;h++)if(l=i[h],!t.has(l))if(s)s--;else if(n){if(a.push(l),a.length===e){t=a;break t}}else if(a[r]||(a[r]=[]),a[r].push(l),++o===e){t=a;break t}t=a}this.result=t,a=!0}return n&&(this.await=null),n?this.resolve(e,i,r,o,a):this}function _i(t,e,i,r,n){let s,o,a;"string"==typeof n?(s=n,n=""):s=n.template,o=s.indexOf("$1"),a=s.substring(o+2),o=s.substring(0,o);let l=n&&n.boundary,h=!n||!1!==n.clip,c=n&&n.merge&&a&&o&&new RegExp(a+" "+o,"g");var u=0;if("object"==typeof(n=n&&n.ellipsis)){var f=n.template;u=f.length-2,n=n.pattern}let d,p;"string"!=typeof n&&(n=!1===n?"":"..."),u&&(n=f.replace("$1",n)),f=n.length-u,"object"==typeof l&&(d=l.before,0===d&&(d=-1),p=l.after,0===p&&(p=-1),l=l.total||9e5),u=new Map;for(let E,M,R,N=0;N<e.length;N++){let D;if(r)D=e,R=r;else{var g=e[N];if(R=g.field,!R)continue;D=g.result}M=i.get(R),E=M.encoder,"string"!=typeof(g=u.get(E))&&(g=E.encode(t),u.set(E,g));for(let t=0;t<D.length;t++){var m=D[t].doc;if(!m)continue;if(!(m=Ie(m,R)))continue;var y=m.trim().split(/\s+/);if(!y.length)continue;m="";var b=[];let e=[];for(var v=-1,w=-1,_=0,S=0;S<y.length;S++){var x=y[S],k=E.encode(x);let t;if((k=k.length>1?k.join(" "):k[0])&&x){for(var T=x.length,j=(E.split?x.replace(E.split,""):x).length-k.length,A="",P=0,$=0;$<g.length;$++){var O=g[$];if(O){var I=O.length;I+=j<0?0:j,P&&I<=P||(O=k.indexOf(O))>-1&&(A=(O?x.substring(0,O):"")+o+x.substring(O,O+I)+a+(O+I<T?x.substring(O+I):""),P=I,t=!0)}}A&&(l&&(v<0&&(v=m.length+(m?1:0)),w=m.length+(m?1:0)+A.length,_+=T,e.push(b.length),b.push({match:A})),m+=(m?" ":"")+A)}if(t){if(l&&_>=l)break}else m+=(m?" ":"")+(x=y[S]),l&&b.push({text:x})}if(_=e.length*(s.length-2),d||p||l&&m.length-_>l)if(S=w-v,d>0&&(S+=d),p>0&&(S+=p),S<=(_=l+_-2*f))y=d?v-(d>0?d:0):v-((_-S)/2|0),b=p?w+(p>0?p:0):y+_,h||(y>0&&" "!==m.charAt(y)&&" "!==m.charAt(y-1)&&((y=m.indexOf(" ",y))<0&&(y=0)),b<m.length&&" "!==m.charAt(b-1)&&" "!==m.charAt(b)&&((b=m.lastIndexOf(" ",b))<w?b=w:++b)),m=(y?n:"")+m.substring(y,b)+(b<m.length?n:"");else{for(w=[],v={},_={},S={},x={},k={},A=j=T=0,$=P=1;;){var C=void 0;for(let t,i=0;i<e.length;i++){if(t=e[i],A)if(j!==A){if(S[i+1])continue;if(t+=A,v[t]){T-=f,_[i+1]=1,S[i+1]=1;continue}if(t>=b.length-1){if(t>=b.length){S[i+1]=1,t>=y.length&&(_[i+1]=1);continue}T-=f}if(m=b[t].text,I=p&&k[i]){if(!(I>0)){S[i+1]=1;continue}if(m.length>I){if(S[i+1]=1,!h)continue;m=m.substring(0,I)}(I-=m.length)||(I=-1),k[i]=I}if(T+m.length+1<=l)m=" "+m,w[i]+=m;else{if(!h){S[i+1]=1;continue}(C=l-T-1)>0&&(m=" "+m.substring(0,C),w[i]+=m),S[i+1]=1}}else{if(S[i])continue;if(t-=j,v[t]){T-=f,S[i]=1,_[i]=1;continue}if(t<=0){if(t<0){S[i]=1,_[i]=1;continue}T-=f}if(m=b[t].text,I=d&&x[i]){if(!(I>0)){S[i]=1;continue}if(m.length>I){if(S[i]=1,!h)continue;m=m.substring(m.length-I)}(I-=m.length)||(I=-1),x[i]=I}if(T+m.length+1<=l)m+=" ",w[i]=m+w[i];else{if(!h){S[i]=1;continue}(C=m.length+1-(l-T))>=0&&C<m.length&&(m=m.substring(C)+" ",w[i]=m+w[i]),S[i]=1}}else{let e;if(m=b[t].match,d&&(x[i]=d),p&&(k[i]=p),i&&T++,t?!i&&f&&(T+=f):(_[i]=1,S[i]=1),t>=y.length-1||t<b.length-1&&b[t+1].match?e=1:f&&(T+=f),T-=s.length-2,i&&!(T+m.length<=l)){C=P=$=_[i]=0;break}w[i]=m,e&&(_[i+1]=1,S[i+1]=1)}T+=m.length,C=v[t]=1}if(C)j===A?A++:j++;else{if(j===A?P=0:$=0,!P&&!$)break;P?A=++j:A++}}m="";for(let t,e=0;e<w.length;e++)t=(_[e]?e?" ":"":(e&&!n?" ":"")+n)+w[e],m+=t;n&&!_[w.length]&&(m+=n)}c&&(m=m.replace(c," ")),D[t].highlight=m}if(r)break}return e}function Si(t,e){if(!this||this.constructor!==Si)return new Si(t,e);let i,r,n,s,o,a,l=0;if(t&&t.index){const i=t;if(e=i.index,l=i.boost||0,r=i.query){n=i.field||i.pluck,s=i.highlight;const r=i.resolve;t=i.async||i.queue,i.resolve=!1,i.index=null,t=t?e.searchAsync(i):e.search(i),i.resolve=r,i.index=e,t=t.result||t}else t=[]}if(t&&t.then){const e=this;t=t.then((function(t){e.C[0]=e.result=t.result||t,xi(e)})),i=[t],t=[],o=new Promise((function(t){a=t}))}this.index=e||null,this.result=t||[],this.h=l,this.C=i||[],this.await=o||null,this.return=a||null,this.highlight=s||null,this.query=r||"",this.field=n||""}function xi(t,e){let i=t.result;var r=t.await;t.await=null;for(let e,n=0;n<t.C.length;n++)if(e=t.C[n])if("function"==typeof e)i=e(),t.C[n]=i=i.result||i,n--;else if(e.h)i=e.h(),t.C[n]=i=i.result||i,n--;else if(e.then)return t.await=r;return r=t.return,t.C=[],t.return=null,e||r(i),i}function ki(t,e,i,r,n,s,o){const a=t.length;let l,h,c=[];l=Pe();for(let u,f,d,p,g=0;g<e;g++)for(let e=0;e<a;e++)if(d=t[e],g<d.length&&(u=d[g]))for(let t=0;t<u.length;t++){if(f=u[t],(h=l[f])?l[f]++:(h=0,l[f]=1),p=c[h]||(c[h]=[]),!o){let t=g+(e||!n?0:s||0);p=p[t]||(p[t]=[])}if(p.push(f),o&&i&&h===a-1&&p.length-r===i)return r?p.slice(r):p}if(t=c.length)if(n)c=c.length>1?Ti(c,i,r,o,s):(c=c[0])&&i&&c.length>i||r?c.slice(r,i+r):c;else{if(t<a)return[];if(c=c[t-1],i||r)if(o)(c.length>i||r)&&(c=c.slice(r,i+r));else{n=[];for(let t,e=0;e<c.length;e++)if(t=c[e])if(r&&t.length>r)r-=t.length;else if((i&&t.length>i||r)&&(t=t.slice(r,i+r),i-=t.length,r&&(r-=t.length)),n.push(t),!i)break;c=n}}return c}function Ti(t,e,i,r,n){const s=[],o=Pe();let a;var l=t.length;let h;if(r){for(n=l-1;n>=0;n--)if(h=(r=t[n])&&r.length)for(l=0;l<h;l++)if(a=r[l],!o[a])if(o[a]=1,i)i--;else if(s.push(a),s.length===e)return s}else for(let c,u=l-1,f=0;u>=0;u--){c=t[u];for(let t=0;t<c.length;t++)if(h=(r=c[t])&&r.length)for(let c=0;c<h;c++)if(a=r[c],!o[a])if(o[a]=1,i)i--;else{let i=(t+(u<l-1&&n||0))/(u+1)|0;if((s[i]||(s[i]=[])).push(a),++f===e)return s}}return s}function ji(t,e,i,r,n){const s=Pe(),o=[];for(let t,i=0;i<e.length;i++){t=e[i];for(let e=0;e<t.length;e++)s[t[e]]=1}if(n){for(let e,n=0;n<t.length;n++)if(e=t[n],s[e])if(r)r--;else if(o.push(e),s[e]=0,i&&0==--i)break}else for(let i,r,n=0;n<t.result.length;n++)for(i=t.result[n],e=0;e<i.length;e++)r=i[e],s[r]&&((o[n]||(o[n]=[])).push(r),s[r]=0);return o}function Ai(t){const e=[],i=Pe(),r=Pe();for(let n,s,o,a,l,h,c,u=0;u<t.length;u++){n=t[u],s=n.field,o=n.result;for(let t=0;t<o.length;t++)l=o[t],"object"!=typeof l?l={id:a=l}:a=l.id,(h=i[a])?h.push(s):(l.field=i[a]=[s],e.push(l)),(c=l.highlight)&&(h=r[a],h||(r[a]=h={},l.highlight=h),h[s]=c)}return e}function Pi(t,e,i,r,n){return(t=this.tag.get(t))&&(t=t.get(e))?((e=t.length-r)>0&&((i&&e>i||r)&&(t=t.slice(r,r+i)),n&&(t=$i.call(this,t))),t):[]}function $i(t){if(!this||!this.store)return t;if(this.db)return this.index.get(this.field[0]).db.enrich(t);const e=Array(t.length);for(let i,r=0;r<t.length;r++)i=t[r],e[r]={id:i,doc:this.store.get(i)};return e}function Oi(t){if(!this||this.constructor!==Oi)return new Oi(t);const e=t.document||t.doc||t;let i,r;if(this.B=[],this.field=[],this.D=[],this.key=(i=e.key||e.id)&&Ci(i,this.D)||"id",(r=t.keystore||0)&&(this.keystore=r),this.fastupdate=!!t.fastupdate,this.reg=!this.fastupdate||t.worker||t.db?r?new Qe(r):new Set:r?new Ze(r):new Map,this.h=(i=e.store||null)&&i&&!0!==i&&[],this.store=i?r?new Ze(r):new Map:null,this.cache=(i=t.cache||null)&&new Be(i),t.cache=!1,this.worker=t.worker||!1,this.priority=t.priority||4,this.index=Ii.call(this,t,e),this.tag=null,(i=e.tag)&&("string"==typeof i&&(i=[i]),i.length)){this.tag=new Map,this.A=[],this.F=[];for(let t,e,r=0;r<i.length;r++){if(t=i[r],e=t.field||t,!e)throw Error("The tag field from the document descriptor is undefined.");t.custom?this.A[r]=t.custom:(this.A[r]=Ci(e,this.D),t.filter&&("string"==typeof this.A[r]&&(this.A[r]=new String(this.A[r])),this.A[r].G=t.filter)),this.F[r]=e,this.tag.set(e,new Map)}}if(this.worker){this.fastupdate=!1,t=[];for(const e of this.index.values())e.then&&t.push(e);if(t.length){const e=this;return Promise.all(t).then((function(t){let i=0;for(const r of e.index.entries()){const n=r[0];let s=r[1];s.then&&(s=t[i],e.index.set(n,s),i++)}return e}))}}else t.db&&(this.fastupdate=!1,this.mount(t.db))}function Ii(t,e){const i=new Map;let r=e.index||e.field||e;$e(r)&&(r=[r]);for(let e,s,o=0;o<r.length;o++){if(e=r[o],$e(e)||(s=e,e=e.field),s=Oe(s)?Object.assign({},t,s):t,this.worker){var n=void 0;n=new ci(s,n=(n=s.encoder)&&n.encode?n:new De("string"==typeof n?We[n]:n||{})),i.set(e,n)}this.worker||i.set(e,new Ji(s,this.reg)),s.custom?this.B[o]=s.custom:(this.B[o]=Ci(e,this.D),s.filter&&("string"==typeof this.B[o]&&(this.B[o]=new String(this.B[o])),this.B[o].G=s.filter)),this.field[o]=e}if(this.h){$e(t=e.store)&&(t=[t]);for(let e,i,r=0;r<t.length;r++)e=t[r],i=e.field||e,e.custom?(this.h[r]=e.custom,e.custom.O=i):(this.h[r]=Ci(i,this.D),e.filter&&("string"==typeof this.h[r]&&(this.h[r]=new String(this.h[r])),this.h[r].G=e.filter))}return i}function Ci(t,e){const i=t.split(":");let r=0;for(let n=0;n<i.length;n++)"]"===(t=i[n])[t.length-1]&&(t=t.substring(0,t.length-2))&&(e[r]=!0),t&&(i[r++]=t);return r<i.length&&(i.length=r),r>1?i:i[0]}function Ei(t,e=0){let i=[],r=[];e&&(e=25e4/e*5e3|0);for(const n of t.entries())r.push(n),r.length===e&&(i.push(r),r=[]);return r.length&&i.push(r),i}function Mi(t,e){e||(e=new Map);for(let i,r=0;r<t.length;r++)i=t[r],e.set(i[0],i[1]);return e}function Ri(t,e=0){let i=[],r=[];e&&(e=25e4/e*1e3|0);for(const n of t.entries())r.push([n[0],Ei(n[1])[0]||[]]),r.length===e&&(i.push(r),r=[]);return r.length&&i.push(r),i}function Ni(t,e){e||(e=new Map);for(let i,r,n=0;n<t.length;n++)i=t[n],r=e.get(i[0]),e.set(i[0],Mi(i[1],r));return e}function Di(t){let e=[],i=[];for(const r of t.keys())i.push(r),25e4===i.length&&(e.push(i),i=[]);return i.length&&e.push(i),e}function zi(t,e){e||(e=new Set);for(let i=0;i<t.length;i++)e.add(t[i]);return e}function Fi(t,e,i,r,n,s,o=0){const a=r&&r.constructor===Array;var l=a?r.shift():r;if(!l)return this.export(t,e,n,s+1);if((l=t((e?e+".":"")+(o+1)+"."+i,JSON.stringify(l)))&&l.then){const h=this;return l.then((function(){return Fi.call(h,t,e,i,a?r:null,n,s,o+1)}))}return Fi.call(this,t,e,i,a?r:null,n,s,o+1)}function Bi(t,e){let i="";for(const r of t.entries()){t=r[0];const n=r[1];let s="";for(let t,i=0;i<n.length;i++){t=n[i]||[""];let r="";for(let i=0;i<t.length;i++)r+=(r?",":"")+("string"===e?'"'+t[i]+'"':t[i]);r="["+r+"]",s+=(s?",":"")+r}s='["'+t+'",['+s+"]]",i+=(i?",":"")+s}return i}function qi(t,e){let i=0;var r=void 0===e;if(t.constructor===Array){for(let n,s,o,a=0;a<t.length;a++)if((n=t[a])&&n.length){if(r)return 1;if(s=n.indexOf(e),s>=0){if(n.length>1)return n.splice(s,1),1;if(delete t[a],i)return 1;o=1}else{if(o)return 1;i++}}}else for(let n of t.entries())r=n[0],qi(n[1],e)?i++:t.delete(r);return i}ui("add"),ui("append"),ui("search"),ui("update"),ui("remove"),ui("clear"),ui("export"),ui("import"),ci.prototype.searchCache=Fe,oi(ci.prototype),Oi.prototype.add=function(t,e,i){if(Oe(t)&&(t=Ie(e=t,this.key)),e&&(t||0===t)){if(!i&&this.reg.has(t))return this.update(t,e);for(let s,o=0;o<this.field.length;o++){s=this.B[o];var r=this.index.get(this.field[o]);if("function"==typeof s){var n=s(e);n&&r.add(t,n,i,!0)}else(!(n=s.G)||n(e))&&(s.constructor===String?s=[""+s]:$e(s)&&(s=[s]),di(e,s,this.D,0,r,t,s[0],i))}if(this.tag)for(r=0;r<this.A.length;r++){var s=this.A[r];n=this.tag.get(this.F[r]);let a=Pe();if("function"==typeof s){if(!(s=s(e)))continue}else{var o=s.G;if(o&&!o(e))continue;s.constructor===String&&(s=""+s),s=Ie(e,s)}if(n&&s){$e(s)&&(s=[s]);for(let e,r,l=0;l<s.length;l++)if(e=s[l],!a[e]&&(a[e]=1,(o=n.get(e))?r=o:n.set(e,r=[]),!i||!r.includes(t))){if(r.length===2**31-1){if(o=new Je(r),this.fastupdate)for(let t of this.reg.values())t.includes(r)&&(t[t.indexOf(r)]=o);n.set(e,r=o)}r.push(t),this.fastupdate&&((o=this.reg.get(t))?o.push(r):this.reg.set(t,[r]))}}}if(this.store&&(!i||!this.store.has(t))){let r;if(this.h){r=Pe();for(let t,n=0;n<this.h.length;n++){if(t=this.h[n],(i=t.G)&&!i(e))continue;let s;if("function"==typeof t){if(s=t(e),!s)continue;t=[t.O]}else if($e(t)||t.constructor===String){r[t]=e[t];continue}fi(e,r,t,0,t[0],s)}}this.store.set(t,r||e)}this.worker&&(this.fastupdate||this.reg.add(t))}return this},Si.prototype.or=function(){return gi(this,"or",yi,arguments)},Si.prototype.and=function(){return gi(this,"and",bi,arguments)},Si.prototype.xor=function(){return gi(this,"xor",vi,arguments)},Si.prototype.not=function(){return gi(this,"not",wi,arguments)},(Te=Si.prototype).limit=function(t){if(this.await){const e=this;this.C.push((function(){return e.limit(t).result}))}else if(this.result.length){const e=[];for(let i,r=0;r<this.result.length;r++)if(i=this.result[r]){if(!(i.length<=t)){e[r]=i.slice(0,t);break}if(e[r]=i,!(t-=i.length))break}this.result=e}return this},Te.offset=function(t){if(this.await){const e=this;this.C.push((function(){return e.offset(t).result}))}else if(this.result.length){const e=[];for(let i,r=0;r<this.result.length;r++)(i=this.result[r])&&(i.length<=t?t-=i.length:(e[r]=i.slice(t),t=0));this.result=e}return this},Te.boost=function(t){if(this.await){const e=this;this.C.push((function(){return e.boost(t).result}))}else this.h+=t;return this},Te.resolve=function(t,e,i,r,n){let s=this.await?xi(this,!0):this.result;if(s.then){const o=this;return s.then((function(){return o.resolve(t,e,i,r,n)}))}return s.length&&("object"==typeof t?(r=t.highlight||this.highlight,i=!!r||t.enrich,e=t.offset,t=t.limit):(r=r||this.highlight,i=!!r||i),s=n?i?$i.call(this.index,s):s:pi.call(this.index,s,t||100,e,i)),this.finalize(s,r)},Te.finalize=function(t,e){if(t.then){const i=this;return t.then((function(t){return i.finalize(t,e)}))}e&&t.length&&this.query&&(t=_i(this.query,t,this.index.index,this.field,e));const i=this.return;return this.highlight=this.index=this.result=this.C=this.await=this.return=null,this.query=this.field="",i&&i(t),t},Oi.prototype.search=function(t,e,i,r){i||(!e&&Oe(t)?(i=t,t=""):Oe(e)&&(i=e,e=0));let n=[];var s=[];let o,a,l,h,c,u,f,d,p=0,g=!0;if(i){i.constructor===Array&&(i={index:i}),t=i.query||t,o=i.pluck,a=i.merge,h=i.boost,u=o||i.field||(u=i.index)&&(u.index?null:u);var m=this.tag&&i.tag;l=i.suggest,g=!1!==i.resolve,c=i.cache,f=g&&this.store&&i.highlight;var y=!!f||g&&this.store&&i.enrich;e=i.limit||e;var b=i.offset||0;if(e||(e=g?100:0),m&&(!this.db||!r)){m.constructor!==Array&&(m=[m]);var v=[];for(let t,e=0;e<m.length;e++)if(t=m[e],t.field&&t.tag){var w=t.tag;if(w.constructor===Array)for(var _=0;_<w.length;_++)v.push(t.field,w[_]);else v.push(t.field,w)}else{w=Object.keys(t);for(let e,i,r=0;r<w.length;r++)if(e=w[r],i=t[e],i.constructor===Array)for(_=0;_<i.length;_++)v.push(e,i[_]);else v.push(e,i)}if(m=v,!t){if(s=[],v.length)for(m=0;m<v.length;m+=2){if(this.db){if(!(r=this.index.get(v[m])))continue;s.push(r=r.db.tag(v[m+1],e,b,y))}else r=Pi.call(this,v[m],v[m+1],e,b,y);n.push(g?{field:v[m],tag:v[m+1],result:r}:[r])}if(s.length){const t=this;return Promise.all(s).then((function(e){for(let t=0;t<e.length;t++)g?n[t].result=e[t]:n[t]=e[t];return g?n:new Si(n.length>1?ki(n,1,0,0,l,h):n[0],t)}))}return g?n:new Si(n.length>1?ki(n,1,0,0,l,h):n[0],this)}}g||o||!(u=u||this.field)||($e(u)?o=u:(u.constructor===Array&&1===u.length&&(u=u[0]),o=u.field||u.index)),u&&u.constructor!==Array&&(u=[u])}u||(u=this.field),v=(this.worker||this.db)&&!r&&[];for(let o,a,h,x=0;x<u.length;x++){if(a=u[x],this.db&&this.tag&&!this.B[x])continue;let k;if($e(a)||(k=a,a=k.field,t=k.query||t,e=Ae(k.limit,e),b=Ae(k.offset,b),l=Ae(k.suggest,l),f=g&&this.store&&Ae(k.highlight,f),y=!!f||g&&this.store&&Ae(k.enrich,y),c=Ae(k.cache,c)),r)o=r[x];else{_=(w=k||i||{}).enrich;var S=this.index.get(a);if(m&&(this.db&&(w.tag=m,w.field=u,d=S.db.support_tag_search),!d&&_&&(w.enrich=!1),d||(w.limit=0,w.offset=0)),o=c?S.searchCache(t,m&&!d?0:e,w):S.search(t,m&&!d?0:e,w),m&&!d&&(w.limit=e,w.offset=b),_&&(w.enrich=_),v){v[x]=o;continue}}if(h=(o=o.result||o)&&o.length,m&&h){if(w=[],_=0,this.db&&r){if(!d)for(S=u.length;S<r.length;S++){let t=r[S];if(t&&t.length)_++,w.push(t);else if(!l)return g?n:new Si(n,this)}}else for(let t,e,i=0;i<m.length;i+=2){if(t=this.tag.get(m[i]),!t){if(l)continue;return g?n:new Si(n,this)}if(e=(t=t&&t.get(m[i+1]))&&t.length)_++,w.push(t);else if(!l)return g?n:new Si(n,this)}if(_){if(o=ji(o,w,e,b,g),h=o.length,!h&&!l)return g?o:new Si(o,this);_--}}if(h)s[p]=a,n.push(o),p++;else if(1===u.length)return g?n:new Si(n,this)}if(v){if(this.db&&m&&m.length&&!d)for(y=0;y<m.length;y+=2){if(!(s=this.index.get(m[y]))){if(l)continue;return g?n:new Si(n,this)}v.push(s.db.tag(m[y+1],e,b,!1))}const r=this;return Promise.all(v).then((function(n){return i&&(i.resolve=g),n.length&&(n=r.search(t,e,i,n)),n}))}if(!p)return g?n:new Si(n,this);if(o&&(!y||!this.store))return n=n[0],g?n:new Si(n,this);for(v=[],b=0;b<s.length;b++){if(m=n[b],y&&m.length&&void 0===m[0].doc&&(this.db?v.push(m=this.index.get(this.field[0]).db.enrich(m)):m=$i.call(this,m)),o)return g?f?_i(t,m,this.index,o,f):m:new Si(m,this);n[b]={field:s[b],result:m}}if(y&&this.db&&v.length){const e=this;return Promise.all(v).then((function(i){for(let t=0;t<i.length;t++)n[t].result=i[t];return f&&(n=_i(t,n,e.index,o,f)),a?Ai(n):n}))}return f&&(n=_i(t,n,this.index,o,f)),a?Ai(n):n},(Te=Oi.prototype).mount=function(t){let e=this.field;if(this.tag)for(let t,r=0;r<this.F.length;r++){t=this.F[r];var i=void 0;this.index.set(t,i=new Ji({},this.reg)),e===this.field&&(e=e.slice(0)),e.push(t),i.tag=this.tag.get(t)}i=[];const r={db:t.db,type:t.type,fastupdate:t.fastupdate};for(let n,s,o=0;o<e.length;o++){r.field=s=e[o],n=this.index.get(s);const a=new t.constructor(t.id,r);a.id=t.id,i[o]=a.mount(n),n.document=!0,o?n.bypass=!0:n.store=this.store}const n=this;return this.db=Promise.all(i).then((function(){n.db=!0}))},Te.commit=async function(){const t=[];for(const e of this.index.values())t.push(e.commit());await Promise.all(t),this.reg.clear()},Te.destroy=function(){const t=[];for(const e of this.index.values())t.push(e.destroy());return Promise.all(t)},Te.append=function(t,e){return this.add(t,e,!0)},Te.update=function(t,e){return this.remove(t).add(t,e)},Te.remove=function(t){for(var e of(Oe(t)&&(t=Ie(t,this.key)),this.index.values()))e.remove(t,!0);if(this.reg.has(t)){if(this.tag&&!this.fastupdate)for(let i of this.tag.values())for(let r of i){e=r[0];const n=r[1],s=n.indexOf(t);s>-1&&(n.length>1?n.splice(s,1):i.delete(e))}this.store&&this.store.delete(t),this.reg.delete(t)}return this.cache&&this.cache.remove(t),this},Te.clear=function(){const t=[];for(const e of this.index.values()){const i=e.clear();i.then&&t.push(i)}if(this.tag)for(const t of this.tag.values())t.clear();return this.store&&this.store.clear(),this.cache&&this.cache.clear(),t.length?Promise.all(t):this},Te.contain=function(t){return this.db?this.index.get(this.field[0]).db.has(t):this.reg.has(t)},Te.cleanup=function(){for(const t of this.index.values())t.cleanup();return this},Te.get=function(t){return this.db?this.index.get(this.field[0]).db.enrich(t).then((function(t){return t[0]&&t[0].doc||null})):this.store.get(t)||null},Te.set=function(t,e){return"object"==typeof t&&(t=Ie(e=t,this.key)),this.store.set(t,e),this},Te.searchCache=Fe,Te.export=function(t,e,i=0,r=0){if(i<this.field.length){const n=this.field[i];if((e=this.index.get(n).export(t,n,i,r=1))&&e.then){const r=this;return e.then((function(){return r.export(t,n,i+1)}))}return this.export(t,n,i+1)}let n,s;switch(r){case 0:n="reg",s=Di(this.reg),e=null;break;case 1:n="tag",s=this.tag&&Ri(this.tag,this.reg.size),e=null;break;case 2:n="doc",s=this.store&&Ei(this.store),e=null;break;default:return}return Fi.call(this,t,e,n,s||null,i,r)},Te.import=function(t,e){var i=t.split(".");"json"===i[i.length-1]&&i.pop();const r=i.length>2?i[0]:"";if(i=i.length>2?i[2]:i[1],this.worker&&r)return this.index.get(r).import(t);if(e){if("string"==typeof e&&(e=JSON.parse(e)),r)return this.index.get(r).import(i,e);switch(i){case"reg":this.fastupdate=!1,this.reg=zi(e,this.reg);for(let t,e=0;e<this.field.length;e++)t=this.index.get(this.field[e]),t.fastupdate=!1,t.reg=this.reg;if(this.worker){e=[];for(const i of this.index.values())e.push(i.import(t));return Promise.all(e)}break;case"tag":this.tag=Ni(e,this.tag);break;case"doc":this.store=Mi(e,this.store)}}},oi(Oi.prototype),Ji.prototype.remove=function(t,e){const i=this.reg.size&&(this.fastupdate?this.reg.get(t):this.reg.has(t));if(i){if(this.fastupdate){for(let e,r,n=0;n<i.length;n++)if((e=i[n])&&(r=e.length))if(e[r-1]===t)e.pop();else{const i=e.indexOf(t);i>=0&&e.splice(i,1)}}else qi(this.map,t),this.depth&&qi(this.ctx,t);e||this.reg.delete(t)}return this.db&&(this.commit_task.push({del:t}),this.M&&Zi(this)),this.cache&&this.cache.remove(t),this};const Li={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:"forward"},score:{resolution:9,context:{depth:2,resolution:3}}};function Ui(t,e,i,r,n,s,o){let a,l;if(!(a=e[i])||o&&!a[o]){if(o?((e=a||(e[i]=Pe()))[o]=1,l=t.ctx,(a=l.get(o))?l=a:l.set(o,l=t.keystore?new Ze(t.keystore):new Map)):(l=t.map,e[i]=1),(a=l.get(i))?l=a:l.set(i,l=a=[]),s)for(let i,s=0;s<a.length;s++)if((i=a[s])&&i.includes(n)){if(s<=r)return;i.splice(i.indexOf(n),1),t.fastupdate&&(e=t.reg.get(n))&&e.splice(e.indexOf(i),1);break}if(l=l[r]||(l[r]=[]),l.push(n),l.length===2**31-1){if(e=new Je(l),t.fastupdate)for(let i of t.reg.values())i.includes(l)&&(i[i.indexOf(l)]=e);a[r]=l=e}t.fastupdate&&((r=t.reg.get(n))?r.push(l):t.reg.set(n,[l]))}}function Vi(t,e,i,r,n){return i&&t>1?e+(r||0)<=t?i+(n||0):(t-1)/(e+(r||0))*(i+(n||0))+1|0:0}function Hi(t,e,i,r,n,s,o){let a=t.length,l=t;if(a>1)l=ki(t,e,i,r,n,s,o);else if(1===a)return o?pi.call(null,t[0],i,r):new Si(t[0],this);return o?l:new Si(l,this)}function Gi(t,e,i,r,n,s,o){return t=Ki(this,t,e,i,r,n,s,o),this.db?t.then((function(t){return n?t||[]:new Si(t,this)})):t&&t.length?n?pi.call(this,t,i,r):new Si(t,this):n?[]:new Si([],this)}function Wi(t,e,i,r){let n=[];if(t&&t.length){if(t.length<=r)return void e.push(t);for(let e,i=0;i<r;i++)(e=t[i])&&(n[i]=e);if(n.length)return void e.push(n)}if(!i)return n}function Ki(t,e,i,r,n,s,o,a){let l;return i&&(l=t.bidirectional&&e>i)&&(l=i,i=e,e=l),t.db?t.db.get(e,i,r,n,s,o,a):t=i?(t=t.ctx.get(i))&&t.get(e):t.map.get(e)}function Ji(t,e){if(!this||this.constructor!==Ji)return new Ji(t);if(t){var i=$e(t)?t:t.preset;i&&(t=Object.assign({},Li[i],t))}else t={};const r=!0===(i=t.context)?{depth:1}:i||{},n=$e(t.encoder)?We[t.encoder]:t.encode||t.encoder||{};this.encoder=n.encode?n:"object"==typeof n?new De(n):{encode:n},this.resolution=t.resolution||9,this.tokenize=i=(i=t.tokenize)&&"default"!==i&&"exact"!==i&&i||"strict",this.depth="strict"===i&&r.depth||0,this.bidirectional=!1!==r.bidirectional,this.fastupdate=!!t.fastupdate,this.score=t.score||null,(i=t.keystore||0)&&(this.keystore=i),this.map=i?new Ze(i):new Map,this.ctx=i?new Ze(i):new Map,this.reg=e||(this.fastupdate?i?new Ze(i):new Map:i?new Qe(i):new Set),this.N=r.resolution||3,this.rtl=n.rtl||t.rtl||!1,this.cache=(i=t.cache||null)&&new Be(i),this.resolve=!1!==t.resolve,(i=t.db)&&(this.db=this.mount(i)),this.M=!1!==t.commit,this.commit_task=[],this.commit_timer=null,this.priority=t.priority||4}function Zi(t){t.commit_timer||(t.commit_timer=setTimeout((function(){t.commit_timer=null,t.db.commit(t)}),1))}Ji.prototype.add=function(t,e,i,r){if(e&&(t||0===t)){if(!r&&!i&&this.reg.has(t))return this.update(t,e);r=this.depth;const h=(e=this.encoder.encode(e,!r)).length;if(h){const c=Pe(),u=Pe(),f=this.resolution;for(let d=0;d<h;d++){let p=e[this.rtl?h-1-d:d];var n=p.length;if(n&&(r||!u[p])){var s=this.score?this.score(e,p,d,null,0):Vi(f,h,d),o="";switch(this.tokenize){case"tolerant":if(Ui(this,u,p,s,t,i),n>2){for(let e,r,a,l,h=1;h<n-1;h++)e=p.charAt(h),r=p.charAt(h+1),a=p.substring(0,h)+r,l=p.substring(h+2),Ui(this,u,o=a+e+l,s,t,i),Ui(this,u,o=a+l,s,t,i);Ui(this,u,p.substring(0,p.length-1),s,t,i)}break;case"full":if(n>2){for(let r,l=0;l<n;l++)for(s=n;s>l;s--){o=p.substring(l,s),r=this.rtl?n-1-l:l;var a=this.score?this.score(e,p,d,o,r):Vi(f,h,d,n,r);Ui(this,u,o,a,t,i)}break}case"bidirectional":case"reverse":if(n>1){for(a=n-1;a>0;a--){o=p[this.rtl?n-1-a:a]+o;var l=this.score?this.score(e,p,d,o,a):Vi(f,h,d,n,a);Ui(this,u,o,l,t,i)}o=""}case"forward":if(n>1){for(a=0;a<n;a++)Ui(this,u,o+=p[this.rtl?n-1-a:a],s,t,i);break}default:if(Ui(this,u,p,s,t,i),r&&h>1&&d<h-1)for(n=this.N,o=p,s=Math.min(r+1,this.rtl?d+1:h-d),a=1;a<s;a++){p=e[this.rtl?h-1-d-a:d+a];Ui(this,c,(l=this.bidirectional&&p>o)?o:p,this.score?this.score(e,o,d,p,a-1):Vi(n+(h/2>n?0:1),h,d,s-1,a-1),t,i,l?p:o)}}}}this.fastupdate||this.reg.add(t)}}return this.db&&(this.commit_task.push(i?{ins:t}:{del:t}),this.M&&Zi(this)),this},Ji.prototype.search=function(t,e,i){if(i||(e||"object"!=typeof t?"object"==typeof e&&(i=e,e=0):(i=t,t="")),i&&i.cache)return i.cache=!1,t=this.searchCache(t,e,i),i.cache=!0,t;let r,n,s,o,a,l,h,c,u=[],f=0;i&&(t=i.query||t,e=i.limit||e,f=i.offset||0,n=i.context,s=i.suggest,c=(o=i.resolve)&&i.enrich,l=i.boost,h=i.resolution,a=this.db&&i.tag),void 0===o&&(o=this.resolve),n=this.depth&&!1!==n;let d=this.encoder.encode(t,!n);if(r=d.length,e=e||(o?100:0),1===r)return Gi.call(this,d[0],"",e,f,o,c,a);if(2===r&&n&&!s)return Gi.call(this,d[1],d[0],e,f,o,c,a);let p,g=Pe(),m=0;if(n&&(p=d[0],m=1),h||0===h||(h=p?this.N:this.resolution),this.db){if(this.db.search&&!1!==(i=this.db.search(this,d,e,f,s,o,c,a)))return i;const t=this;return async function(){for(let e,i;m<r;m++){if((i=d[m])&&!g[i]){if(g[i]=1,e=await Ki(t,i,p,0,0,!1,!1),e=Wi(e,u,s,h)){u=e;break}p&&(s&&e&&u.length||(p=i))}s&&p&&m===r-1&&!u.length&&(h=t.resolution,p="",m=-1,g=Pe())}return Hi(u,h,e,f,s,l,o)}()}for(let t,e;m<r;m++){if((e=d[m])&&!g[e]){if(g[e]=1,t=Ki(this,e,p,0,0,!1,!1),t=Wi(t,u,s,h)){u=t;break}p&&(s&&t&&u.length||(p=e))}s&&p&&m===r-1&&!u.length&&(h=this.resolution,p="",m=-1,g=Pe())}return Hi(u,h,e,f,s,l,o)},(Te=Ji.prototype).mount=function(t){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),t.mount(this)},Te.commit=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.commit(this)},Te.destroy=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.destroy()},Te.clear=function(){return this.map.clear(),this.ctx.clear(),this.reg.clear(),this.cache&&this.cache.clear(),this.db?(this.commit_timer&&clearTimeout(this.commit_timer),this.commit_timer=null,this.commit_task=[],this.db.clear()):this},Te.append=function(t,e){return this.add(t,e,!0)},Te.contain=function(t){return this.db?this.db.has(t):this.reg.has(t)},Te.update=function(t,e){const i=this,r=this.remove(t);return r&&r.then?r.then((()=>i.add(t,e))):this.add(t,e)},Te.cleanup=function(){return this.fastupdate?(qi(this.map),this.depth&&qi(this.ctx),this):this},Te.searchCache=Fe,Te.export=function(t,e,i=0,r=0){let n,s;switch(r){case 0:n="reg",s=Di(this.reg);break;case 1:n="cfg",s=null;break;case 2:n="map",s=Ei(this.map,this.reg.size);break;case 3:n="ctx",s=Ri(this.ctx,this.reg.size);break;default:return}return Fi.call(this,t,e,n,s,i,r)},Te.import=function(t,e){if(e)switch("string"==typeof e&&(e=JSON.parse(e)),t=t.split("."),"json"===t[t.length-1]&&t.pop(),3===t.length&&t.shift(),t=t.length>1?t[1]:t[0],t){case"reg":this.fastupdate=!1,this.reg=zi(e,this.reg);break;case"map":this.map=Mi(e,this.map);break;case"ctx":this.ctx=Ni(e,this.ctx)}},Te.serialize=function(t=!0){let e="",i="",r="";if(this.reg.size){let t;for(var n of this.reg.keys())t||(t=typeof n),e+=(e?",":"")+("string"===t?'"'+n+'"':n);e="index.reg=new Set(["+e+"]);",i=Bi(this.map,t),i="index.map=new Map(["+i+"]);";for(const e of this.ctx.entries()){n=e[0];let i=Bi(e[1],t);i="new Map(["+i+"])",i='["'+n+'",'+i+"]",r+=(r?",":"")+i}r="index.ctx=new Map(["+r+"]);"}return t?"function inject(index){"+e+i+r+"}":e+i+r},oi(Ji.prototype);const Qi="undefined"!=typeof window&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),Xi=["map","ctx","tag","reg","cfg"],Yi=Pe();function tr(t,e,i){const r=t.value;let n,s=0;for(let t,o=0;o<r.length;o++){if(t=i?r:r[o]){for(let i,s,a=0;a<e.length;a++)if(s=e[a],i=t.indexOf(s),i>=0){if(n=1,!(t.length>1)){r[o]=[];break}t.splice(i,1)}s+=t.length}if(i)break}s?n&&t.update(r):t.delete(),t.continue()}function er(t,e){return new Promise(((i,r)=>{t.onsuccess=t.oncomplete=function(){e&&e(this.result),e=null,i(this.result)},t.onerror=t.onblocked=r,t=null}))}Te=function t(e,i={}){if(!this||this.constructor!==t)return new t(e,i);"object"==typeof e&&(i=e,e=e.name),e||console.info("Default storage space was used, because a name was not passed."),this.id="flexsearch"+(e?":"+e.toLowerCase().replace(/[^a-z0-9_\-]/g,""):""),this.field=i.field?i.field.toLowerCase().replace(/[^a-z0-9_\-]/g,""):"",this.type=i.type,this.fastupdate=this.support_tag_search=!1,this.db=null,this.h={}}.prototype,Te.mount=function(t){return t.index?t.mount(this):(t.db=this,this.open())},Te.open=function(){if(this.db)return this.db;let t=this;navigator.storage&&navigator.storage.persist&&navigator.storage.persist(),Yi[t.id]||(Yi[t.id]=[]),Yi[t.id].push(t.field);const e=Qi.open(t.id,1);return e.onupgradeneeded=function(){const e=t.db=this.result;for(let i,r=0;r<Xi.length;r++){i=Xi[r];for(let r,n=0;n<Yi[t.id].length;n++)r=Yi[t.id][n],e.objectStoreNames.contains(i+("reg"!==i&&r?":"+r:""))||e.createObjectStore(i+("reg"!==i&&r?":"+r:""))}},t.db=er(e,(function(e){t.db=e,t.db.onversionchange=function(){t.close()}}))},Te.close=function(){this.db&&this.db.close(),this.db=null},Te.destroy=function(){return er(Qi.deleteDatabase(this.id))},Te.clear=function(){const t=[];for(let e,i=0;i<Xi.length;i++){e=Xi[i];for(let i,r=0;r<Yi[this.id].length;r++)i=Yi[this.id][r],t.push(e+("reg"!==e&&i?":"+i:""))}const e=this.db.transaction(t,"readwrite");for(let i=0;i<t.length;i++)e.objectStore(t[i]).clear();return er(e)},Te.get=function(t,e,i=0,r=0,n=!0,s=!1){t=this.db.transaction((e?"ctx":"map")+(this.field?":"+this.field:""),"readonly").objectStore((e?"ctx":"map")+(this.field?":"+this.field:"")).get(e?e+":"+t:t);const o=this;return er(t).then((function(t){let e=[];if(!t||!t.length)return e;if(n){if(!i&&!r&&1===t.length)return t[0];for(let n,s=0;s<t.length;s++)if((n=t[s])&&n.length){if(r>=n.length){r-=n.length;continue}const t=i?r+Math.min(n.length-r,i):n.length;for(let i=r;i<t;i++)e.push(n[i]);if(r=0,e.length===i)break}return s?o.enrich(e):e}return t}))},Te.tag=function(t,e=0,i=0,r=!1){t=this.db.transaction("tag"+(this.field?":"+this.field:""),"readonly").objectStore("tag"+(this.field?":"+this.field:"")).get(t);const n=this;return er(t).then((function(t){return!t||!t.length||i>=t.length?[]:e||i?(t=t.slice(i,i+e),r?n.enrich(t):t):t}))},Te.enrich=function(t){"object"!=typeof t&&(t=[t]);const e=this.db.transaction("reg","readonly").objectStore("reg"),i=[];for(let r=0;r<t.length;r++)i[r]=er(e.get(t[r]));return Promise.all(i).then((function(e){for(let i=0;i<e.length;i++)e[i]={id:t[i],doc:e[i]?JSON.parse(e[i]):null};return e}))},Te.has=function(t){return er(t=this.db.transaction("reg","readonly").objectStore("reg").getKey(t)).then((function(t){return!!t}))},Te.search=null,Te.info=function(){},Te.transaction=function(t,e,i){t+="reg"!==t&&this.field?":"+this.field:"";let r=this.h[t+":"+e];if(r)return i.call(this,r);let n=this.db.transaction(t,e);this.h[t+":"+e]=r=n.objectStore(t);const s=i.call(this,r);return this.h[t+":"+e]=null,er(n).finally((function(){return s}))},Te.commit=async function(t){let e=t.commit_task,i=[];t.commit_task=[];for(let t,r=0;r<e.length;r++)t=e[r],t.del&&i.push(t.del);i.length&&await this.remove(i),t.reg.size&&(await this.transaction("map","readwrite",(function(e){for(const i of t.map){const t=i[0],r=i[1];r.length&&(e.get(t).onsuccess=function(){let i=this.result;var n;if(i&&i.length){const t=Math.max(i.length,r.length);for(let e,s,o=0;o<t;o++)if((s=r[o])&&s.length){if((e=i[o])&&e.length)for(n=0;n<s.length;n++)e.push(s[n]);else i[o]=s;n=1}}else i=r,n=1;n&&e.put(i,t)})}})),await this.transaction("ctx","readwrite",(function(e){for(const i of t.ctx){const t=i[0],r=i[1];for(const i of r){const r=i[0],n=i[1];n.length&&(e.get(t+":"+r).onsuccess=function(){let i=this.result;var s;if(i&&i.length){const t=Math.max(i.length,n.length);for(let e,r,o=0;o<t;o++)if((r=n[o])&&r.length){if((e=i[o])&&e.length)for(s=0;s<r.length;s++)e.push(r[s]);else i[o]=r;s=1}}else i=n,s=1;s&&e.put(i,t+":"+r)})}}})),t.store?await this.transaction("reg","readwrite",(function(e){for(const i of t.store){const t=i[0],r=i[1];e.put("object"==typeof r?JSON.stringify(r):1,t)}})):t.bypass||await this.transaction("reg","readwrite",(function(e){for(const i of t.reg.keys())e.put(1,i)})),t.tag&&await this.transaction("tag","readwrite",(function(e){for(const i of t.tag){const t=i[0],r=i[1];r.length&&(e.get(t).onsuccess=function(){let i=this.result;i=i&&i.length?i.concat(r):r,e.put(i,t)})}})),t.map.clear(),t.ctx.clear(),t.tag&&t.tag.clear(),t.store&&t.store.clear(),t.document||t.reg.clear())},Te.remove=function(t){return"object"!=typeof t&&(t=[t]),Promise.all([this.transaction("map","readwrite",(function(e){e.openCursor().onsuccess=function(){const e=this.result;e&&tr(e,t)}})),this.transaction("ctx","readwrite",(function(e){e.openCursor().onsuccess=function(){const e=this.result;e&&tr(e,t)}})),this.transaction("tag","readwrite",(function(e){e.openCursor().onsuccess=function(){const e=this.result;e&&tr(e,t,!0)}})),this.transaction("reg","readwrite",(function(e){for(let i=0;i<t.length;i++)e.delete(t[i])}))])};const ir=We,rr=De,nr=Oi;async function sr(){const t=new nr({document:{id:"id",store:!0,index:[{field:"name",tokenize:"bidirectional",priority:9,encoder:new rr(ir.LatinBalance).assign({normalize(t){let e=t.replace(/\d+/g," ").split(/(?<=[a-z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])/);return e.length>1&&e.push(t),e.join(" ").toLowerCase()}})},{field:"comment",tokenize:"default",encoder:ir.LatinSoundex}],tag:[]}}),e=`${document.documentElement.dataset.base}assets/oxide`,i=await async function(t){const e=await fetch(t),i=(await e.blob()).stream().pipeThrough(new DecompressionStream("deflate"));return await new Response(i).json()}(`${e}/search-index.deflate`);for(const[e,r]of Object.entries(i))t.import(e,r);return t}document.addEventListener("DOMContentLoaded",(async()=>{const t=document.querySelector("rustdoc-search .search-form"),e=document.querySelector("rustdoc-search .search-input"),i=document.getElementById("main-content"),r=document.getElementById("alternative-display");let n,s;t.addEventListener("submit",(t=>{t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation()}),!0),e.addEventListener("focus",(t=>{t.stopImmediatePropagation(),t.stopPropagation()}),!0),e.addEventListener("input",function(t,e,i){var r=!0,n=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return At(i)&&(r="leading"in i?!!i.leading:r,n="trailing"in i?!!i.trailing:n),Nt(t,e,{leading:r,maxWait:e,trailing:n})}((async t=>{n||(n=sr());const e=t.target.value?.trim(),[o,a]=e?[i,r]:[r,i];o.classList.add("hidden"),a.classList.remove("hidden"),s?.abort(),s=new AbortController;const l=s.signal;await async function(t,e,i){if(e.aborted||!t.length)return;const r=await i.search({query:t,enrich:!0,merge:!0});if(e.aborted)return;const n=document.querySelector('meta[name="rustdoc-vars"]'),s=document.querySelector("oxide-search-results#search");s.loading=!1,s.project=n.dataset.currentCrate,s.query=t,s.items=r.map((t=>t.doc)).filter((t=>null!=t))}(e,l,await n)}),300))})),(()=>{let t,r,n,s,o,a,l=[ht("oxide-search-results")],h=[],c=at,u=[],f=[],d=[],p=[],g=[],m=[],y=[],b=[];var v=class extends c{static{r=this}static{const i="function"==typeof Symbol&&Symbol.metadata?Object.create(c[Symbol.metadata]??null):void 0;n=[ft({attribute:!1})],s=[ft({attribute:!1})],o=[ft({attribute:!1})],a=[ft({attribute:!1})],e(this,null,n,{kind:"accessor",name:"loading",static:!1,private:!1,access:{has:t=>"loading"in t,get:t=>t.loading,set:(t,e)=>{t.loading=e}},metadata:i},u,f),e(this,null,s,{kind:"accessor",name:"project",static:!1,private:!1,access:{has:t=>"project"in t,get:t=>t.project,set:(t,e)=>{t.project=e}},metadata:i},d,p),e(this,null,o,{kind:"accessor",name:"query",static:!1,private:!1,access:{has:t=>"query"in t,get:t=>t.query,set:(t,e)=>{t.query=e}},metadata:i},g,m),e(this,null,a,{kind:"accessor",name:"items",static:!1,private:!1,access:{has:t=>"items"in t,get:t=>t.items,set:(t,e)=>{t.items=e}},metadata:i},y,b),e(null,t={value:r},l,{kind:"class",name:r.name,metadata:i},null,h),v=r=t.value,i&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})}static base=document.documentElement.dataset.base;static classes={[Yt.ClassMember]:"fn",[Yt.Function]:"fn",[Yt.Property]:"fn",[Yt.Method]:"fn",[Yt.CallSignature]:"fn",[Yt.IndexSignature]:"fn",[Yt.GetSignature]:"fn",[Yt.SetSignature]:"fn",[Yt.Accessor]:"fn",[Yt.ConstructorSignature]:"primitive",[Yt.Constructor]:"primitive",[Yt.EnumMember]:"macro",[Yt.Variable]:"macro"};#t=i(this,u,!0);get loading(){return this.#t}set loading(t){this.#t=t}#e=(i(this,f),i(this,d,""));get project(){return this.#e}set project(t){this.#e=t}#i=(i(this,p),i(this,g,""));get query(){return this.#i}set query(t){this.#i=t}#r=(i(this,m),i(this,y,[]));get items(){return this.#r}set items(t){this.#r=t}createRenderRoot(){return this}render(){if(this.loading)return U`
|
|
48
|
+
<h3 class="search-loading">Loading search results...</h3>
|
|
49
|
+
`;const t=this.items.map((t=>{const e=v.classes[t.kind]??"mod",i=function*(t,e){if(void 0!==t){let i=0;for(const r of t)yield e(r,i++)}}(t.parent?.split(".").filter((t=>t))??[],(t=>U`<span class="parent">${t}.</span>`));return U`
|
|
58
50
|
<a class="result-item" href="${v.base}${t.url}">
|
|
59
51
|
<span class="result-name">
|
|
60
52
|
<span class="typename">
|
|
61
|
-
${r=t.kind,
|
|
53
|
+
${r=t.kind,Yt.classString(r).replace("tsd-kind-","").replace("-"," ")}
|
|
62
54
|
</span>
|
|
63
55
|
|
|
64
56
|
<div class="path">
|
|
@@ -66,7 +58,7 @@ var le;function he(t,e,i){const r=typeof i,n=typeof t;if("undefined"!==r){if("un
|
|
|
66
58
|
</div>
|
|
67
59
|
</span>
|
|
68
60
|
</a>
|
|
69
|
-
`;var r})),e=encodeURIComponent(`${this.project} ${this.query}`);return
|
|
61
|
+
`;var r})),e=encodeURIComponent(`${this.project} ${this.query}`);return U`
|
|
70
62
|
<div class="main-heading">
|
|
71
63
|
<h1 class="search-results-title">Results</h1>
|
|
72
64
|
</div>
|