@eox/itemfilter 0.4.0 → 0.5.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.
@@ -1,54 +1,54 @@
1
- (function(v,E){typeof exports=="object"&&typeof module<"u"?E(exports):typeof define=="function"&&define.amd?define(["exports"],E):(v=typeof globalThis<"u"?globalThis:v||self,E(v["eox-itemfilter"]={}))})(this,function(v){"use strict";var Bs=Object.defineProperty;var Ws=(v,E,R)=>E in v?Bs(v,E,{enumerable:!0,configurable:!0,writable:!0,value:R}):v[E]=R;var _=(v,E,R)=>(Ws(v,typeof E!="symbol"?E+"":E,R),R);/**
1
+ (function(ie,fe){typeof exports=="object"&&typeof module<"u"?fe(exports):typeof define=="function"&&define.amd?define(["exports"],fe):(ie=typeof globalThis<"u"?globalThis:ie||self,fe(ie["eox-itemfilter"]={}))})(this,function(ie){"use strict";var oo=Object.defineProperty;var lo=(ie,fe,Ie)=>fe in ie?oo(ie,fe,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):ie[fe]=Ie;var Z=(ie,fe,Ie)=>(lo(ie,typeof fe!="symbol"?fe+"":fe,Ie),Ie);/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const E=window,R=E.ShadowRoot&&(E.ShadyCSS===void 0||E.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Lt=Symbol(),Nt=new WeakMap;let _e=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==Lt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(R&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=Nt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Nt.set(e,t))}return t}toString(){return this.cssText}};const ye=i=>new _e(typeof i=="string"?i:i+"",void 0,Lt),$e=(i,t)=>{R?i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const s=document.createElement("style"),n=E.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,i.appendChild(s)})},Pt=R?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return ye(e)})(i):i;/**
5
+ */const fe=window,Ie=fe.ShadowRoot&&(fe.ShadyCSS===void 0||fe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ks=Symbol(),Os=new WeakMap;let Ri=class{constructor(e,t,s){if(this._$cssResult$=!0,s!==ks)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Ie&&e===void 0){const s=t!==void 0&&t.length===1;s&&(e=Os.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),s&&Os.set(t,e))}return e}toString(){return this.cssText}};const Pi=r=>new Ri(typeof r=="string"?r:r+"",void 0,ks),Ii=(r,e)=>{Ie?r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const s=document.createElement("style"),i=fe.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=t.cssText,r.appendChild(s)})},Cs=Ie?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(const s of e.cssRules)t+=s.cssText;return Pi(t)})(r):r;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */var dt;const nt=window,jt=nt.trustedTypes,ve=jt?jt.emptyScript:"",Ht=nt.reactiveElementPolyfillSupport,ft={toAttribute(i,t){switch(t){case Boolean:i=i?ve:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},Ut=(i,t)=>t!==i&&(t==t||i==i),pt={attribute:!0,type:String,converter:ft,reflect:!1,hasChanged:Ut};let B=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,s)=>{const n=this._$Ep(s,e);n!==void 0&&(this._$Ev.set(n,s),t.push(n))}),t}static createProperty(t,e=pt){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const s=typeof t=="symbol"?Symbol():"__"+t,n=this.getPropertyDescriptor(t,s,e);n!==void 0&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,e,s){return{get(){return this[e]},set(n){const r=this[t];this[e]=n,this.requestUpdate(t,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||pt}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,s=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const n of s)this.createProperty(n,e[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const n of s)e.unshift(Pt(n))}else t!==void 0&&e.push(Pt(t));return e}static _$Ep(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,s;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)===null||s===void 0||s.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return $e(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var s;return(s=e.hostConnected)===null||s===void 0?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var s;return(s=e.hostDisconnected)===null||s===void 0?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e,s=pt){var n;const r=this.constructor._$Ep(t,s);if(r!==void 0&&s.reflect===!0){const o=(((n=s.converter)===null||n===void 0?void 0:n.toAttribute)!==void 0?s.converter:ft).toAttribute(e,s.type);this._$El=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$El=null}}_$AK(t,e){var s;const n=this.constructor,r=n._$Ev.get(t);if(r!==void 0&&this._$El!==r){const o=n.getPropertyOptions(r),c=typeof o.converter=="function"?{fromAttribute:o.converter}:((s=o.converter)===null||s===void 0?void 0:s.fromAttribute)!==void 0?o.converter:ft;this._$El=r,this[r]=c.fromAttribute(e,o.type),this._$El=null}}requestUpdate(t,e,s){let n=!0;t!==void 0&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||Ut)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,s))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((n,r)=>this[r]=n),this._$Ei=void 0);let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),(t=this._$ES)===null||t===void 0||t.forEach(n=>{var r;return(r=n.hostUpdate)===null||r===void 0?void 0:r.call(n)}),this.update(s)):this._$Ek()}catch(n){throw e=!1,this._$Ek(),n}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(s=>{var n;return(n=s.hostUpdated)===null||n===void 0?void 0:n.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,s)=>this._$EO(s,this[s],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};B.finalized=!0,B.elementProperties=new Map,B.elementStyles=[],B.shadowRootOptions={mode:"open"},Ht==null||Ht({ReactiveElement:B}),((dt=nt.reactiveElementVersions)!==null&&dt!==void 0?dt:nt.reactiveElementVersions=[]).push("1.6.1");/**
9
+ */var It;const mt=window,Ls=mt.trustedTypes,Ni=Ls?Ls.emptyScript:"",Ts=mt.reactiveElementPolyfillSupport,Nt={toAttribute(r,e){switch(e){case Boolean:r=r?Ni:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Ds=(r,e)=>e!==r&&(e==e||r==r),jt={attribute:!0,type:String,converter:Nt,reflect:!1,hasChanged:Ds},Ht="finalized";let Xe=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,s)=>{const i=this._$Ep(s,t);i!==void 0&&(this._$Ev.set(i,s),e.push(i))}),e}static createProperty(e,t=jt){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const s=typeof e=="symbol"?Symbol():"__"+e,i=this.getPropertyDescriptor(e,s,t);i!==void 0&&Object.defineProperty(this.prototype,e,i)}}static getPropertyDescriptor(e,t,s){return{get(){return this[t]},set(i){const o=this[e];this[t]=i,this.requestUpdate(e,o,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||jt}static finalize(){if(this.hasOwnProperty(Ht))return!1;this[Ht]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,s=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of s)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const s=new Set(e.flat(1/0).reverse());for(const i of s)t.unshift(Cs(i))}else e!==void 0&&t.push(Cs(e));return t}static _$Ep(e,t){const s=t.attribute;return s===!1?void 0:typeof s=="string"?s:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,s;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((s=e.hostConnected)===null||s===void 0||s.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Ii(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var s;return(s=t.hostConnected)===null||s===void 0?void 0:s.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var s;return(s=t.hostDisconnected)===null||s===void 0?void 0:s.call(t)})}attributeChangedCallback(e,t,s){this._$AK(e,s)}_$EO(e,t,s=jt){var i;const o=this.constructor._$Ep(e,s);if(o!==void 0&&s.reflect===!0){const a=(((i=s.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?s.converter:Nt).toAttribute(t,s.type);this._$El=e,a==null?this.removeAttribute(o):this.setAttribute(o,a),this._$El=null}}_$AK(e,t){var s;const i=this.constructor,o=i._$Ev.get(e);if(o!==void 0&&this._$El!==o){const a=i.getPropertyOptions(o),c=typeof a.converter=="function"?{fromAttribute:a.converter}:((s=a.converter)===null||s===void 0?void 0:s.fromAttribute)!==void 0?a.converter:Nt;this._$El=o,this[o]=c.fromAttribute(t,a.type),this._$El=null}}requestUpdate(e,t,s){let i=!0;e!==void 0&&(((s=s||this.constructor.getPropertyOptions(e)).hasChanged||Ds)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),s.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,s))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((i,o)=>this[o]=i),this._$Ei=void 0);let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostUpdate)===null||o===void 0?void 0:o.call(i)}),this.update(s)):this._$Ek()}catch(i){throw t=!1,this._$Ek(),i}t&&this._$AE(s)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(s=>{var i;return(i=s.hostUpdated)===null||i===void 0?void 0:i.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,s)=>this._$EO(s,this[s],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};Xe[Ht]=!0,Xe.elementProperties=new Map,Xe.elementStyles=[],Xe.shadowRootOptions={mode:"open"},Ts==null||Ts({ReactiveElement:Xe}),((It=mt.reactiveElementVersions)!==null&&It!==void 0?It:mt.reactiveElementVersions=[]).push("1.6.2");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */var gt;const rt=window,W=rt.trustedTypes,Ft=W?W.createPolicy("lit-html",{createHTML:i=>i}):void 0,mt="$lit$",N=`lit$${(Math.random()+"").slice(9)}$`,Dt="?"+N,Ae=`<${Dt}>`,j=document,J=()=>j.createComment(""),X=i=>i===null||typeof i!="object"&&typeof i!="function",zt=Array.isArray,Ee=i=>zt(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",_t=`[
14
- \f\r]`,Q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bt=/-->/g,Wt=/>/g,H=RegExp(`>|${_t}(?:([^\\s"'>=/]+)(${_t}*=${_t}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Vt=/'/g,Kt=/"/g,Gt=/^(?:script|style|textarea|title)$/i,be=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),w=be(1),U=Symbol.for("lit-noChange"),m=Symbol.for("lit-nothing"),Yt=new WeakMap,F=j.createTreeWalker(j,129,null,!1),xe=(i,t)=>{const e=i.length-1,s=[];let n,r=t===2?"<svg>":"",o=Q;for(let l=0;l<e;l++){const a=i[l];let u,h,d=-1,p=0;for(;p<a.length&&(o.lastIndex=p,h=o.exec(a),h!==null);)p=o.lastIndex,o===Q?h[1]==="!--"?o=Bt:h[1]!==void 0?o=Wt:h[2]!==void 0?(Gt.test(h[2])&&(n=RegExp("</"+h[2],"g")),o=H):h[3]!==void 0&&(o=H):o===H?h[0]===">"?(o=n??Q,d=-1):h[1]===void 0?d=-2:(d=o.lastIndex-h[2].length,u=h[1],o=h[3]===void 0?H:h[3]==='"'?Kt:Vt):o===Kt||o===Vt?o=H:o===Bt||o===Wt?o=Q:(o=H,n=void 0);const g=o===H&&i[l+1].startsWith("/>")?" ":"";r+=o===Q?a+Ae:d>=0?(s.push(u),a.slice(0,d)+mt+a.slice(d)+N+g):a+N+(d===-2?(s.push(void 0),l):g)}const c=r+(i[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Ft!==void 0?Ft.createHTML(c):c,s]};class Z{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let r=0,o=0;const c=t.length-1,l=this.parts,[a,u]=xe(t,e);if(this.el=Z.createElement(a,s),F.currentNode=this.el.content,e===2){const h=this.el.content,d=h.firstChild;d.remove(),h.append(...d.childNodes)}for(;(n=F.nextNode())!==null&&l.length<c;){if(n.nodeType===1){if(n.hasAttributes()){const h=[];for(const d of n.getAttributeNames())if(d.endsWith(mt)||d.startsWith(N)){const p=u[o++];if(h.push(d),p!==void 0){const g=n.getAttribute(p.toLowerCase()+mt).split(N),A=/([.?@])?(.*)/.exec(p);l.push({type:1,index:r,name:A[2],strings:g,ctor:A[1]==="."?we:A[1]==="?"?Ie:A[1]==="@"?Oe:ot})}else l.push({type:6,index:r})}for(const d of h)n.removeAttribute(d)}if(Gt.test(n.tagName)){const h=n.textContent.split(N),d=h.length-1;if(d>0){n.textContent=W?W.emptyScript:"";for(let p=0;p<d;p++)n.append(h[p],J()),F.nextNode(),l.push({type:2,index:++r});n.append(h[d],J())}}}else if(n.nodeType===8)if(n.data===Dt)l.push({type:2,index:r});else{let h=-1;for(;(h=n.data.indexOf(N,h+1))!==-1;)l.push({type:7,index:r}),h+=N.length-1}r++}}static createElement(t,e){const s=j.createElement("template");return s.innerHTML=t,s}}function V(i,t,e=i,s){var n,r,o,c;if(t===U)return t;let l=s!==void 0?(n=e._$Co)===null||n===void 0?void 0:n[s]:e._$Cl;const a=X(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==a&&((r=l==null?void 0:l._$AO)===null||r===void 0||r.call(l,!1),a===void 0?l=void 0:(l=new a(i),l._$AT(i,e,s)),s!==void 0?((o=(c=e)._$Co)!==null&&o!==void 0?o:c._$Co=[])[s]=l:e._$Cl=l),l!==void 0&&(t=V(i,l._$AS(i,t.values),l,s)),t}class Se{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){var e;const{el:{content:s},parts:n}=this._$AD,r=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:j).importNode(s,!0);F.currentNode=r;let o=F.nextNode(),c=0,l=0,a=n[0];for(;a!==void 0;){if(c===a.index){let u;a.type===2?u=new q(o,o.nextSibling,this,t):a.type===1?u=new a.ctor(o,a.name,a.strings,this,t):a.type===6&&(u=new Ce(o,this,t)),this._$AV.push(u),a=n[++l]}c!==(a==null?void 0:a.index)&&(o=F.nextNode(),c++)}return F.currentNode=j,r}v(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class q{constructor(t,e,s,n){var r;this.type=2,this._$AH=m,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=n,this._$Cp=(r=n==null?void 0:n.isConnected)===null||r===void 0||r}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=V(this,t,e),X(t)?t===m||t==null||t===""?(this._$AH!==m&&this._$AR(),this._$AH=m):t!==this._$AH&&t!==U&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Ee(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==m&&X(this._$AH)?this._$AA.nextSibling.data=t:this.$(j.createTextNode(t)),this._$AH=t}g(t){var e;const{values:s,_$litType$:n}=t,r=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=Z.createElement(n.h,this.options)),n);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.v(s);else{const o=new Se(r,this),c=o.u(this.options);o.v(s),this.$(c),this._$AH=o}}_$AC(t){let e=Yt.get(t.strings);return e===void 0&&Yt.set(t.strings,e=new Z(t)),e}T(t){zt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,n=0;for(const r of t)n===e.length?e.push(s=new q(this.k(J()),this.k(J()),this,this.options)):s=e[n],s._$AI(r),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)===null||s===void 0||s.call(this,!1,!0,e);t&&t!==this._$AB;){const n=t.nextSibling;t.remove(),t=n}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class ot{constructor(t,e,s,n,r){this.type=1,this._$AH=m,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=m}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,s,n){const r=this.strings;let o=!1;if(r===void 0)t=V(this,t,e,0),o=!X(t)||t!==this._$AH&&t!==U,o&&(this._$AH=t);else{const c=t;let l,a;for(t=r[0],l=0;l<r.length-1;l++)a=V(this,c[s+l],e,l),a===U&&(a=this._$AH[l]),o||(o=!X(a)||a!==this._$AH[l]),a===m?t=m:t!==m&&(t+=(a??"")+r[l+1]),this._$AH[l]=a}o&&!n&&this.j(t)}j(t){t===m?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class we extends ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===m?void 0:t}}const Me=W?W.emptyScript:"";class Ie extends ot{constructor(){super(...arguments),this.type=4}j(t){t&&t!==m?this.element.setAttribute(this.name,Me):this.element.removeAttribute(this.name)}}class Oe extends ot{constructor(t,e,s,n,r){super(t,e,s,n,r),this.type=5}_$AI(t,e=this){var s;if((t=(s=V(this,t,e,0))!==null&&s!==void 0?s:m)===U)return;const n=this._$AH,r=t===m&&n!==m||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==m&&(n===m||r);r&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;typeof this._$AH=="function"?this._$AH.call((s=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&s!==void 0?s:this.element,t):this._$AH.handleEvent(t)}}class Ce{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){V(this,t)}}const Jt=rt.litHtmlPolyfillSupport;Jt==null||Jt(Z,q),((gt=rt.litHtmlVersions)!==null&&gt!==void 0?gt:rt.litHtmlVersions=[]).push("2.7.4");const Re=(i,t,e)=>{var s,n;const r=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:t;let o=r._$litPart$;if(o===void 0){const c=(n=e==null?void 0:e.renderBefore)!==null&&n!==void 0?n:null;r._$litPart$=o=new q(t.insertBefore(J(),c),c,void 0,e??{})}return o._$AI(i),o};/**
13
+ */var Ft;const vt=window,Je=vt.trustedTypes,Rs=Je?Je.createPolicy("lit-html",{createHTML:r=>r}):void 0,Ut="$lit$",je=`lit$${(Math.random()+"").slice(9)}$`,Ps="?"+je,ji=`<${Ps}>`,Be=document,nt=()=>Be.createComment(""),ot=r=>r===null||typeof r!="object"&&typeof r!="function",Is=Array.isArray,Hi=r=>Is(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",Bt=`[
14
+ \f\r]`,lt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ns=/-->/g,js=/>/g,ze=RegExp(`>|${Bt}(?:([^\\s"'>=/]+)(${Bt}*=${Bt}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Hs=/'/g,Fs=/"/g,Us=/^(?:script|style|textarea|title)$/i,Fi=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),ge=Fi(1),We=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),Bs=new WeakMap,Ve=Be.createTreeWalker(Be,129,null,!1),Ui=(r,e)=>{const t=r.length-1,s=[];let i,o=e===2?"<svg>":"",a=lt;for(let u=0;u<t;u++){const d=r[u];let v,m,$=-1,E=0;for(;E<d.length&&(a.lastIndex=E,m=a.exec(d),m!==null);)E=a.lastIndex,a===lt?m[1]==="!--"?a=Ns:m[1]!==void 0?a=js:m[2]!==void 0?(Us.test(m[2])&&(i=RegExp("</"+m[2],"g")),a=ze):m[3]!==void 0&&(a=ze):a===ze?m[0]===">"?(a=i??lt,$=-1):m[1]===void 0?$=-2:($=a.lastIndex-m[2].length,v=m[1],a=m[3]===void 0?ze:m[3]==='"'?Fs:Hs):a===Fs||a===Hs?a=ze:a===Ns||a===js?a=lt:(a=ze,i=void 0);const P=a===ze&&r[u+1].startsWith("/>")?" ":"";o+=a===lt?d+ji:$>=0?(s.push(v),d.slice(0,$)+Ut+d.slice($)+je+P):d+je+($===-2?(s.push(void 0),u):P)}const c=o+(r[t]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Rs!==void 0?Rs.createHTML(c):c,s]};class at{constructor({strings:e,_$litType$:t},s){let i;this.parts=[];let o=0,a=0;const c=e.length-1,u=this.parts,[d,v]=Ui(e,t);if(this.el=at.createElement(d,s),Ve.currentNode=this.el.content,t===2){const m=this.el.content,$=m.firstChild;$.remove(),m.append(...$.childNodes)}for(;(i=Ve.nextNode())!==null&&u.length<c;){if(i.nodeType===1){if(i.hasAttributes()){const m=[];for(const $ of i.getAttributeNames())if($.endsWith(Ut)||$.startsWith(je)){const E=v[a++];if(m.push($),E!==void 0){const P=i.getAttribute(E.toLowerCase()+Ut).split(je),G=/([.?@])?(.*)/.exec(E);u.push({type:1,index:o,name:G[2],strings:P,ctor:G[1]==="."?zi:G[1]==="?"?Vi:G[1]==="@"?Yi:yt})}else u.push({type:6,index:o})}for(const $ of m)i.removeAttribute($)}if(Us.test(i.tagName)){const m=i.textContent.split(je),$=m.length-1;if($>0){i.textContent=Je?Je.emptyScript:"";for(let E=0;E<$;E++)i.append(m[E],nt()),Ve.nextNode(),u.push({type:2,index:++o});i.append(m[$],nt())}}}else if(i.nodeType===8)if(i.data===Ps)u.push({type:2,index:o});else{let m=-1;for(;(m=i.data.indexOf(je,m+1))!==-1;)u.push({type:7,index:o}),m+=je.length-1}o++}}static createElement(e,t){const s=Be.createElement("template");return s.innerHTML=e,s}}function Ge(r,e,t=r,s){var i,o,a,c;if(e===We)return e;let u=s!==void 0?(i=t._$Co)===null||i===void 0?void 0:i[s]:t._$Cl;const d=ot(e)?void 0:e._$litDirective$;return(u==null?void 0:u.constructor)!==d&&((o=u==null?void 0:u._$AO)===null||o===void 0||o.call(u,!1),d===void 0?u=void 0:(u=new d(r),u._$AT(r,t,s)),s!==void 0?((a=(c=t)._$Co)!==null&&a!==void 0?a:c._$Co=[])[s]=u:t._$Cl=u),u!==void 0&&(e=Ge(r,u._$AS(r,e.values),u,s)),e}class Bi{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:s},parts:i}=this._$AD,o=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:Be).importNode(s,!0);Ve.currentNode=o;let a=Ve.nextNode(),c=0,u=0,d=i[0];for(;d!==void 0;){if(c===d.index){let v;d.type===2?v=new ht(a,a.nextSibling,this,e):d.type===1?v=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(v=new Ki(a,this,e)),this._$AV.push(v),d=i[++u]}c!==(d==null?void 0:d.index)&&(a=Ve.nextNode(),c++)}return Ve.currentNode=Be,o}v(e){let t=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(e,s,t),t+=s.strings.length-2):s._$AI(e[t])),t++}}class ht{constructor(e,t,s,i){var o;this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=s,this.options=i,this._$Cp=(o=i==null?void 0:i.isConnected)===null||o===void 0||o}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ge(this,e,t),ot(e)?e===Q||e==null||e===""?(this._$AH!==Q&&this._$AR(),this._$AH=Q):e!==this._$AH&&e!==We&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Hi(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Q&&ot(this._$AH)?this._$AA.nextSibling.data=e:this.$(Be.createTextNode(e)),this._$AH=e}g(e){var t;const{values:s,_$litType$:i}=e,o=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=at.createElement(i.h,this.options)),i);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===o)this._$AH.v(s);else{const a=new Bi(o,this),c=a.u(this.options);a.v(s),this.$(c),this._$AH=a}}_$AC(e){let t=Bs.get(e.strings);return t===void 0&&Bs.set(e.strings,t=new at(e)),t}T(e){Is(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let s,i=0;for(const o of e)i===t.length?t.push(s=new ht(this.k(nt()),this.k(nt()),this,this.options)):s=t[i],s._$AI(o),i++;i<t.length&&(this._$AR(s&&s._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){var s;for((s=this._$AP)===null||s===void 0||s.call(this,!1,!0,t);e&&e!==this._$AB;){const i=e.nextSibling;e.remove(),e=i}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}class yt{constructor(e,t,s,i,o){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=o,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=Q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,s,i){const o=this.strings;let a=!1;if(o===void 0)e=Ge(this,e,t,0),a=!ot(e)||e!==this._$AH&&e!==We,a&&(this._$AH=e);else{const c=e;let u,d;for(e=o[0],u=0;u<o.length-1;u++)d=Ge(this,c[s+u],t,u),d===We&&(d=this._$AH[u]),a||(a=!ot(d)||d!==this._$AH[u]),d===Q?e=Q:e!==Q&&(e+=(d??"")+o[u+1]),this._$AH[u]=d}a&&!i&&this.j(e)}j(e){e===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class zi extends yt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Q?void 0:e}}const Wi=Je?Je.emptyScript:"";class Vi extends yt{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Q?this.element.setAttribute(this.name,Wi):this.element.removeAttribute(this.name)}}class Yi extends yt{constructor(e,t,s,i,o){super(e,t,s,i,o),this.type=5}_$AI(e,t=this){var s;if((e=(s=Ge(this,e,t,0))!==null&&s!==void 0?s:Q)===We)return;const i=this._$AH,o=e===Q&&i!==Q||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==Q&&(i===Q||o);o&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,s;typeof this._$AH=="function"?this._$AH.call((s=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&s!==void 0?s:this.element,e):this._$AH.handleEvent(e)}}class Ki{constructor(e,t,s){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(e){Ge(this,e)}}const zs=vt.litHtmlPolyfillSupport;zs==null||zs(at,ht),((Ft=vt.litHtmlVersions)!==null&&Ft!==void 0?Ft:vt.litHtmlVersions=[]).push("2.7.4");const qi=(r,e,t)=>{var s,i;const o=(s=t==null?void 0:t.renderBefore)!==null&&s!==void 0?s:e;let a=o._$litPart$;if(a===void 0){const c=(i=t==null?void 0:t.renderBefore)!==null&&i!==void 0?i:null;o._$litPart$=a=new ht(e.insertBefore(nt(),c),c,void 0,t??{})}return a._$AI(r),a};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */var yt,$t;class tt extends B{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const s=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=s.firstChild),s}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Re(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return U}}tt.finalized=!0,tt._$litElement$=!0,(yt=globalThis.litElementHydrateSupport)===null||yt===void 0||yt.call(globalThis,{LitElement:tt});const Xt=globalThis.litElementPolyfillSupport;Xt==null||Xt({LitElement:tt}),(($t=globalThis.litElementVersions)!==null&&$t!==void 0?$t:globalThis.litElementVersions=[]).push("3.3.2");/**
19
+ */var zt,Wt;class ct extends Xe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const s=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=s.firstChild),s}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=qi(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return We}}ct.finalized=!0,ct._$litElement$=!0,(zt=globalThis.litElementHydrateSupport)===null||zt===void 0||zt.call(globalThis,{LitElement:ct});const Ws=globalThis.litElementPolyfillSupport;Ws==null||Ws({LitElement:ct}),((Wt=globalThis.litElementVersions)!==null&&Wt!==void 0?Wt:globalThis.litElementVersions=[]).push("3.3.2");/**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
- */const ke=i=>t=>typeof t=="function"?((e,s)=>(customElements.define(e,s),s))(i,t):((e,s)=>{const{kind:n,elements:r}=s;return{kind:n,elements:r,finisher(o){customElements.define(e,o)}}})(i,t);/**
23
+ */const Xi=r=>e=>typeof e=="function"?((t,s)=>(customElements.define(t,s),s))(r,e):((t,s)=>{const{kind:i,elements:o}=s;return{kind:i,elements:o,finisher(a){customElements.define(t,a)}}})(r,e);/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */const Te=(i,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(e){e.createProperty(t.key,i)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(e){e.createProperty(t.key,i)}};function vt(i){return(t,e)=>e!==void 0?((s,n,r)=>{n.constructor.createProperty(r,s)})(i,t,e):Te(i,t)}/**
27
+ */const Ji=(r,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,r)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,r)}},Gi=(r,e,t)=>{e.constructor.createProperty(t,r)};function bt(r){return(e,t)=>t!==void 0?Gi(r,e,t):Ji(r,e)}/**
28
28
  * @license
29
29
  * Copyright 2017 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
31
- */function lt(i){return vt({...i,state:!0})}/**
31
+ */function $t(r){return bt({...r,state:!0})}/**
32
32
  * @license
33
33
  * Copyright 2021 Google LLC
34
34
  * SPDX-License-Identifier: BSD-3-Clause
35
- */var At;((At=window.HTMLSlotElement)===null||At===void 0?void 0:At.prototype.assignedElements)!=null;/**
35
+ */var Vt;((Vt=window.HTMLSlotElement)===null||Vt===void 0?void 0:Vt.prototype.assignedElements)!=null;/**
36
36
  * @license
37
37
  * Copyright 2021 Google LLC
38
38
  * SPDX-License-Identifier: BSD-3-Clause
39
- */function et(i,t,e){return i?t():e==null?void 0:e()}/**
39
+ */function Ze(r,e,t){return r?e():t==null?void 0:t()}/**
40
40
  * @license
41
41
  * Copyright 2021 Google LLC
42
42
  * SPDX-License-Identifier: BSD-3-Clause
43
- */function*st(i,t){if(i!==void 0){let e=0;for(const s of i)yield t(s,e++)}}/**
43
+ */function*ut(r,e){if(r!==void 0){let t=0;for(const s of r)yield e(s,t++)}}/**
44
44
  * @license
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
- */const Le={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ne=i=>(...t)=>({_$litDirective$:i,values:t});class Pe{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
47
+ */const Zi={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Qi=r=>(...e)=>({_$litDirective$:r,values:e});class er{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,s){this._$Ct=e,this._$AM=t,this._$Ci=s}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}/**
48
48
  * @license
49
49
  * Copyright 2017 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
- */class Et extends Pe{constructor(t){if(super(t),this.et=m,t.type!==Le.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===m||t==null)return this.ft=void 0,this.et=t;if(t===U)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Et.directiveName="unsafeHTML",Et.resultType=1;const Qt=Ne(Et);function k(i){return Array.isArray?Array.isArray(i):te(i)==="[object Array]"}const je=1/0;function He(i){if(typeof i=="string")return i;let t=i+"";return t=="0"&&1/i==-je?"-0":t}function Ue(i){return i==null?"":He(i)}function O(i){return typeof i=="string"}function Zt(i){return typeof i=="number"}function Fe(i){return i===!0||i===!1||De(i)&&te(i)=="[object Boolean]"}function qt(i){return typeof i=="object"}function De(i){return qt(i)&&i!==null}function S(i){return i!=null}function bt(i){return!i.trim().length}function te(i){return i==null?i===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(i)}const Vs="Extended search is not available",ze="Incorrect 'index' type",Be=i=>`Invalid value for key ${i}`,We=i=>`Pattern length exceeds max of ${i}.`,Ve=i=>`Missing ${i} property in key`,Ke=i=>`Property 'weight' in key '${i}' must be a positive integer`,ee=Object.prototype.hasOwnProperty;class Ge{constructor(t){this._keys=[],this._keyMap={};let e=0;t.forEach(s=>{let n=se(s);e+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,e+=n.weight}),this._keys.forEach(s=>{s.weight/=e})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function se(i){let t=null,e=null,s=null,n=1,r=null;if(O(i)||k(i))s=i,t=ie(i),e=xt(i);else{if(!ee.call(i,"name"))throw new Error(Ve("name"));const o=i.name;if(s=o,ee.call(i,"weight")&&(n=i.weight,n<=0))throw new Error(Ke(o));t=ie(o),e=xt(o),r=i.getFn}return{path:t,id:e,weight:n,src:s,getFn:r}}function ie(i){return k(i)?i:i.split(".")}function xt(i){return k(i)?i.join("."):i}function Ye(i,t){let e=[],s=!1;const n=(r,o,c)=>{if(S(r))if(!o[c])e.push(r);else{let l=o[c];const a=r[l];if(!S(a))return;if(c===o.length-1&&(O(a)||Zt(a)||Fe(a)))e.push(Ue(a));else if(k(a)){s=!0;for(let u=0,h=a.length;u<h;u+=1)n(a[u],o,c+1)}else o.length&&n(a,o,c+1)}};return n(i,O(t)?t.split("."):t,0),s?e:e[0]}var f={...{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(i,t)=>i.score===t.score?i.idx<t.idx?-1:1:i.score<t.score?-1:1},...{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},...{location:0,threshold:.6,distance:100},...{useExtendedSearch:!1,getFn:Ye,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const Je=/[^ ]+/g;function Xe(i=1,t=3){const e=new Map,s=Math.pow(10,t);return{get(n){const r=n.match(Je).length;if(e.has(r))return e.get(r);const o=1/Math.pow(r,.5*i),c=parseFloat(Math.round(o*s)/s);return e.set(r,c),c},clear(){e.clear()}}}class St{constructor({getFn:t=f.getFn,fieldNormWeight:e=f.fieldNormWeight}={}){this.norm=Xe(e,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((e,s)=>{this._keysMap[e.id]=s})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,O(this.docs[0])?this.docs.forEach((t,e)=>{this._addString(t,e)}):this.docs.forEach((t,e)=>{this._addObject(t,e)}),this.norm.clear())}add(t){const e=this.size();O(t)?this._addString(t,e):this._addObject(t,e)}removeAt(t){this.records.splice(t,1);for(let e=t,s=this.size();e<s;e+=1)this.records[e].i-=1}getValueForItemAtKeyId(t,e){return t[this._keysMap[e]]}size(){return this.records.length}_addString(t,e){if(!S(t)||bt(t))return;let s={v:t,i:e,n:this.norm.get(t)};this.records.push(s)}_addObject(t,e){let s={i:e,$:{}};this.keys.forEach((n,r)=>{let o=n.getFn?n.getFn(t):this.getFn(t,n.path);if(S(o)){if(k(o)){let c=[];const l=[{nestedArrIndex:-1,value:o}];for(;l.length;){const{nestedArrIndex:a,value:u}=l.pop();if(S(u))if(O(u)&&!bt(u)){let h={v:u,i:a,n:this.norm.get(u)};c.push(h)}else k(u)&&u.forEach((h,d)=>{l.push({nestedArrIndex:d,value:h})})}s.$[r]=c}else if(O(o)&&!bt(o)){let c={v:o,n:this.norm.get(o)};s.$[r]=c}}}),this.records.push(s)}toJSON(){return{keys:this.keys,records:this.records}}}function ne(i,t,{getFn:e=f.getFn,fieldNormWeight:s=f.fieldNormWeight}={}){const n=new St({getFn:e,fieldNormWeight:s});return n.setKeys(i.map(se)),n.setSources(t),n.create(),n}function Qe(i,{getFn:t=f.getFn,fieldNormWeight:e=f.fieldNormWeight}={}){const{keys:s,records:n}=i,r=new St({getFn:t,fieldNormWeight:e});return r.setKeys(s),r.setIndexRecords(n),r}function ct(i,{errors:t=0,currentLocation:e=0,expectedLocation:s=0,distance:n=f.distance,ignoreLocation:r=f.ignoreLocation}={}){const o=t/i.length;if(r)return o;const c=Math.abs(s-e);return n?o+c/n:c?1:o}function Ze(i=[],t=f.minMatchCharLength){let e=[],s=-1,n=-1,r=0;for(let o=i.length;r<o;r+=1){let c=i[r];c&&s===-1?s=r:!c&&s!==-1&&(n=r-1,n-s+1>=t&&e.push([s,n]),s=-1)}return i[r-1]&&r-s>=t&&e.push([s,r-1]),e}const D=32;function qe(i,t,e,{location:s=f.location,distance:n=f.distance,threshold:r=f.threshold,findAllMatches:o=f.findAllMatches,minMatchCharLength:c=f.minMatchCharLength,includeMatches:l=f.includeMatches,ignoreLocation:a=f.ignoreLocation}={}){if(t.length>D)throw new Error(We(D));const u=t.length,h=i.length,d=Math.max(0,Math.min(s,h));let p=r,g=d;const A=c>1||l,C=A?Array(h):[];let b;for(;(b=i.indexOf(t,g))>-1;){let $=ct(t,{currentLocation:b,expectedLocation:d,distance:n,ignoreLocation:a});if(p=Math.min($,p),g=b+u,A){let x=0;for(;x<u;)C[b+x]=1,x+=1}}g=-1;let T=[],L=1,G=u+h;const it=1<<u-1;for(let $=0;$<u;$+=1){let x=0,M=G;for(;x<M;)ct(t,{errors:$,currentLocation:d+M,expectedLocation:d,distance:n,ignoreLocation:a})<=p?x=M:G=M,M=Math.floor((G-x)/2+x);G=M;let ge=Math.max(1,d-M+1),Tt=o?h:Math.min(d+M,h)+u,Y=Array(Tt+2);Y[Tt+1]=(1<<$)-1;for(let I=Tt;I>=ge;I-=1){let ut=I-1,me=e[i.charAt(ut)];if(A&&(C[ut]=+!!me),Y[I]=(Y[I+1]<<1|1)&me,$&&(Y[I]|=(T[I+1]|T[I])<<1|1|T[I+1]),Y[I]&it&&(L=ct(t,{errors:$,currentLocation:ut,expectedLocation:d,distance:n,ignoreLocation:a}),L<=p)){if(p=L,g=ut,g<=d)break;ge=Math.max(1,2*d-g)}}if(ct(t,{errors:$+1,currentLocation:d,expectedLocation:d,distance:n,ignoreLocation:a})>p)break;T=Y}const y={isMatch:g>=0,score:Math.max(.001,L)};if(A){const $=Ze(C,c);$.length?l&&(y.indices=$):y.isMatch=!1}return y}function ts(i){let t={};for(let e=0,s=i.length;e<s;e+=1){const n=i.charAt(e);t[n]=(t[n]||0)|1<<s-e-1}return t}class re{constructor(t,{location:e=f.location,threshold:s=f.threshold,distance:n=f.distance,includeMatches:r=f.includeMatches,findAllMatches:o=f.findAllMatches,minMatchCharLength:c=f.minMatchCharLength,isCaseSensitive:l=f.isCaseSensitive,ignoreLocation:a=f.ignoreLocation}={}){if(this.options={location:e,threshold:s,distance:n,includeMatches:r,findAllMatches:o,minMatchCharLength:c,isCaseSensitive:l,ignoreLocation:a},this.pattern=l?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const u=(d,p)=>{this.chunks.push({pattern:d,alphabet:ts(d),startIndex:p})},h=this.pattern.length;if(h>D){let d=0;const p=h%D,g=h-p;for(;d<g;)u(this.pattern.substr(d,D),d),d+=D;if(p){const A=h-D;u(this.pattern.substr(A),A)}}else u(this.pattern,0)}searchIn(t){const{isCaseSensitive:e,includeMatches:s}=this.options;if(e||(t=t.toLowerCase()),this.pattern===t){let g={isMatch:!0,score:0};return s&&(g.indices=[[0,t.length-1]]),g}const{location:n,distance:r,threshold:o,findAllMatches:c,minMatchCharLength:l,ignoreLocation:a}=this.options;let u=[],h=0,d=!1;this.chunks.forEach(({pattern:g,alphabet:A,startIndex:C})=>{const{isMatch:b,score:T,indices:L}=qe(t,g,A,{location:n+C,distance:r,threshold:o,findAllMatches:c,minMatchCharLength:l,includeMatches:s,ignoreLocation:a});b&&(d=!0),h+=T,b&&L&&(u=[...u,...L])});let p={isMatch:d,score:d?h/this.chunks.length:1};return d&&s&&(p.indices=u),p}}class P{constructor(t){this.pattern=t}static isMultiMatch(t){return oe(t,this.multiRegex)}static isSingleMatch(t){return oe(t,this.singleRegex)}search(){}}function oe(i,t){const e=i.match(t);return e?e[1]:null}class es extends P{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const e=t===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}class ss extends P{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const s=t.indexOf(this.pattern)===-1;return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class is extends P{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const e=t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}class ns extends P{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const e=!t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}}class rs extends P{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const e=t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class os extends P{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const e=!t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}}class le extends P{constructor(t,{location:e=f.location,threshold:s=f.threshold,distance:n=f.distance,includeMatches:r=f.includeMatches,findAllMatches:o=f.findAllMatches,minMatchCharLength:c=f.minMatchCharLength,isCaseSensitive:l=f.isCaseSensitive,ignoreLocation:a=f.ignoreLocation}={}){super(t),this._bitapSearch=new re(t,{location:e,threshold:s,distance:n,includeMatches:r,findAllMatches:o,minMatchCharLength:c,isCaseSensitive:l,ignoreLocation:a})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class ce extends P{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let e=0,s;const n=[],r=this.pattern.length;for(;(s=t.indexOf(this.pattern,e))>-1;)e=s+r,n.push([s,e-1]);const o=!!n.length;return{isMatch:o,score:o?0:1,indices:n}}}const wt=[es,ce,is,ns,os,rs,ss,le],ae=wt.length,ls=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,cs="|";function as(i,t={}){return i.split(cs).map(e=>{let s=e.trim().split(ls).filter(r=>r&&!!r.trim()),n=[];for(let r=0,o=s.length;r<o;r+=1){const c=s[r];let l=!1,a=-1;for(;!l&&++a<ae;){const u=wt[a];let h=u.isMultiMatch(c);h&&(n.push(new u(h,t)),l=!0)}if(!l)for(a=-1;++a<ae;){const u=wt[a];let h=u.isSingleMatch(c);if(h){n.push(new u(h,t));break}}}return n})}const hs=new Set([le.type,ce.type]);class us{constructor(t,{isCaseSensitive:e=f.isCaseSensitive,includeMatches:s=f.includeMatches,minMatchCharLength:n=f.minMatchCharLength,ignoreLocation:r=f.ignoreLocation,findAllMatches:o=f.findAllMatches,location:c=f.location,threshold:l=f.threshold,distance:a=f.distance}={}){this.query=null,this.options={isCaseSensitive:e,includeMatches:s,minMatchCharLength:n,findAllMatches:o,ignoreLocation:r,location:c,threshold:l,distance:a},this.pattern=e?t:t.toLowerCase(),this.query=as(this.pattern,this.options)}static condition(t,e){return e.useExtendedSearch}searchIn(t){const e=this.query;if(!e)return{isMatch:!1,score:1};const{includeMatches:s,isCaseSensitive:n}=this.options;t=n?t:t.toLowerCase();let r=0,o=[],c=0;for(let l=0,a=e.length;l<a;l+=1){const u=e[l];o.length=0,r=0;for(let h=0,d=u.length;h<d;h+=1){const p=u[h],{isMatch:g,indices:A,score:C}=p.search(t);if(g){if(r+=1,c+=C,s){const b=p.constructor.type;hs.has(b)?o=[...o,...A]:o.push(A)}}else{c=0,r=0,o.length=0;break}}if(r){let h={isMatch:!0,score:c/r};return s&&(h.indices=o),h}}return{isMatch:!1,score:1}}}const Mt=[];function ds(...i){Mt.push(...i)}function It(i,t){for(let e=0,s=Mt.length;e<s;e+=1){let n=Mt[e];if(n.condition(i,t))return new n(i,t)}return new re(i,t)}const at={AND:"$and",OR:"$or"},Ot={PATH:"$path",PATTERN:"$val"},Ct=i=>!!(i[at.AND]||i[at.OR]),fs=i=>!!i[Ot.PATH],ps=i=>!k(i)&&qt(i)&&!Ct(i),he=i=>({[at.AND]:Object.keys(i).map(t=>({[t]:i[t]}))});function ue(i,t,{auto:e=!0}={}){const s=n=>{let r=Object.keys(n);const o=fs(n);if(!o&&r.length>1&&!Ct(n))return s(he(n));if(ps(n)){const l=o?n[Ot.PATH]:r[0],a=o?n[Ot.PATTERN]:n[l];if(!O(a))throw new Error(Be(l));const u={keyId:xt(l),pattern:a};return e&&(u.searcher=It(a,t)),u}let c={children:[],operator:r[0]};return r.forEach(l=>{const a=n[l];k(a)&&a.forEach(u=>{c.children.push(s(u))})}),c};return Ct(i)||(i=he(i)),s(i)}function gs(i,{ignoreFieldNorm:t=f.ignoreFieldNorm}){i.forEach(e=>{let s=1;e.matches.forEach(({key:n,norm:r,score:o})=>{const c=n?n.weight:null;s*=Math.pow(o===0&&c?Number.EPSILON:o,(c||1)*(t?1:r))}),e.score=s})}function ms(i,t){const e=i.matches;t.matches=[],S(e)&&e.forEach(s=>{if(!S(s.indices)||!s.indices.length)return;const{indices:n,value:r}=s;let o={indices:n,value:r};s.key&&(o.key=s.key.src),s.idx>-1&&(o.refIndex=s.idx),t.matches.push(o)})}function _s(i,t){t.score=i.score}function ys(i,t,{includeMatches:e=f.includeMatches,includeScore:s=f.includeScore}={}){const n=[];return e&&n.push(ms),s&&n.push(_s),i.map(r=>{const{idx:o}=r,c={item:t[o],refIndex:o};return n.length&&n.forEach(l=>{l(r,c)}),c})}class K{constructor(t,e={},s){this.options={...f,...e},this.options.useExtendedSearch,this._keyStore=new Ge(this.options.keys),this.setCollection(t,s)}setCollection(t,e){if(this._docs=t,e&&!(e instanceof St))throw new Error(ze);this._myIndex=e||ne(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){S(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const e=[];for(let s=0,n=this._docs.length;s<n;s+=1){const r=this._docs[s];t(r,s)&&(this.removeAt(s),s-=1,n-=1,e.push(r))}return e}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:e=-1}={}){const{includeMatches:s,includeScore:n,shouldSort:r,sortFn:o,ignoreFieldNorm:c}=this.options;let l=O(t)?O(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return gs(l,{ignoreFieldNorm:c}),r&&l.sort(o),Zt(e)&&e>-1&&(l=l.slice(0,e)),ys(l,this._docs,{includeMatches:s,includeScore:n})}_searchStringList(t){const e=It(t,this.options),{records:s}=this._myIndex,n=[];return s.forEach(({v:r,i:o,n:c})=>{if(!S(r))return;const{isMatch:l,score:a,indices:u}=e.searchIn(r);l&&n.push({item:r,idx:o,matches:[{score:a,value:r,norm:c,indices:u}]})}),n}_searchLogical(t){const e=ue(t,this.options),s=(c,l,a)=>{if(!c.children){const{keyId:h,searcher:d}=c,p=this._findMatches({key:this._keyStore.get(h),value:this._myIndex.getValueForItemAtKeyId(l,h),searcher:d});return p&&p.length?[{idx:a,item:l,matches:p}]:[]}const u=[];for(let h=0,d=c.children.length;h<d;h+=1){const p=c.children[h],g=s(p,l,a);if(g.length)u.push(...g);else if(c.operator===at.AND)return[]}return u},n=this._myIndex.records,r={},o=[];return n.forEach(({$:c,i:l})=>{if(S(c)){let a=s(e,c,l);a.length&&(r[l]||(r[l]={idx:l,item:c,matches:[]},o.push(r[l])),a.forEach(({matches:u})=>{r[l].matches.push(...u)}))}}),o}_searchObjectList(t){const e=It(t,this.options),{keys:s,records:n}=this._myIndex,r=[];return n.forEach(({$:o,i:c})=>{if(!S(o))return;let l=[];s.forEach((a,u)=>{l.push(...this._findMatches({key:a,value:o[u],searcher:e}))}),l.length&&r.push({idx:c,item:o,matches:l})}),r}_findMatches({key:t,value:e,searcher:s}){if(!S(e))return[];let n=[];if(k(e))e.forEach(({v:r,i:o,n:c})=>{if(!S(r))return;const{isMatch:l,score:a,indices:u}=s.searchIn(r);l&&n.push({score:a,key:t,value:r,idx:o,norm:c,indices:u})});else{const{v:r,n:o}=e,{isMatch:c,score:l,indices:a}=s.searchIn(r);c&&n.push({score:l,key:t,value:r,norm:o,indices:a})}return n}}K.version="6.6.2",K.createIndex=ne,K.parseIndex=Qe,K.config=f,K.parseQuery=ue,ds(us);var ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $s(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var vs="Expected a function",de=0/0,As="[object Symbol]",Es=/^\s+|\s+$/g,bs=/^[-+]0x[0-9a-f]+$/i,xs=/^0b[01]+$/i,Ss=/^0o[0-7]+$/i,ws=parseInt,Ms=typeof ht=="object"&&ht&&ht.Object===Object&&ht,Is=typeof self=="object"&&self&&self.Object===Object&&self,Os=Ms||Is||Function("return this")(),Cs=Object.prototype,Rs=Cs.toString,ks=Math.max,Ts=Math.min,Rt=function(){return Os.Date.now()};function Ls(i,t,e){var s,n,r,o,c,l,a=0,u=!1,h=!1,d=!0;if(typeof i!="function")throw new TypeError(vs);t=fe(t)||0,kt(e)&&(u=!!e.leading,h="maxWait"in e,r=h?ks(fe(e.maxWait)||0,t):r,d="trailing"in e?!!e.trailing:d);function p(y){var $=s,x=n;return s=n=void 0,a=y,o=i.apply(x,$),o}function g(y){return a=y,c=setTimeout(b,t),u?p(y):o}function A(y){var $=y-l,x=y-a,M=t-$;return h?Ts(M,r-x):M}function C(y){var $=y-l,x=y-a;return l===void 0||$>=t||$<0||h&&x>=r}function b(){var y=Rt();if(C(y))return T(y);c=setTimeout(b,A(y))}function T(y){return c=void 0,d&&s?p(y):(s=n=void 0,o)}function L(){c!==void 0&&clearTimeout(c),a=0,s=l=n=c=void 0}function G(){return c===void 0?o:T(Rt())}function it(){var y=Rt(),$=C(y);if(s=arguments,n=this,l=y,$){if(c===void 0)return g(l);if(h)return c=setTimeout(b,t),p(l)}return c===void 0&&(c=setTimeout(b,t)),o}return it.cancel=L,it.flush=G,it}function kt(i){var t=typeof i;return!!i&&(t=="object"||t=="function")}function Ns(i){return!!i&&typeof i=="object"}function Ps(i){return typeof i=="symbol"||Ns(i)&&Rs.call(i)==As}function fe(i){if(typeof i=="number")return i;if(Ps(i))return de;if(kt(i)){var t=typeof i.valueOf=="function"?i.valueOf():i;i=kt(t)?t+"":t}if(typeof i!="string")return i===0?i:+i;i=i.replace(Es,"");var e=xs.test(i);return e||Ss.test(i)?ws(i.slice(2),e?2:8):bs.test(i)?de:+i}var js=Ls;const Hs=$s(js),Us=(i,t="highlight",e="title")=>{const s=(r,o,c)=>{const l=o.split(".");let a;for(a=0;a<l.length-1;a++)r=r[l[a]];r[l[a]]=c},n=(r,o=[])=>{let c="",l=0;return o.forEach(a=>{const u=a[1]+1;c+=[r.substring(l,a[0]),`<mark class="${t}">`,r.substring(a[0],u),"</mark>"].join(""),l=u}),c+=r.substring(l),c};return i.filter(({matches:r})=>r&&r.length).map(({item:r,matches:o})=>{const c={...r};return o.forEach(l=>{l.key===e&&s(c,l.key,n(l.value,l.indices))}),c})},Fs=`
51
+ */class Yt extends er{constructor(e){if(super(e),this.et=Q,e.type!==Zi.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Q||e==null)return this.ft=void 0,this.et=e;if(e===We)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}}Yt.directiveName="unsafeHTML",Yt.resultType=1;const Vs=Qi(Yt);function Ne(r){return Array.isArray?Array.isArray(r):qs(r)==="[object Array]"}const tr=1/0;function sr(r){if(typeof r=="string")return r;let e=r+"";return e=="0"&&1/r==-tr?"-0":e}function ir(r){return r==null?"":sr(r)}function Te(r){return typeof r=="string"}function Ys(r){return typeof r=="number"}function rr(r){return r===!0||r===!1||nr(r)&&qs(r)=="[object Boolean]"}function Ks(r){return typeof r=="object"}function nr(r){return Ks(r)&&r!==null}function Ae(r){return r!=null}function Kt(r){return!r.trim().length}function qs(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}const ao="Extended search is not available",or="Incorrect 'index' type",lr=r=>`Invalid value for key ${r}`,ar=r=>`Pattern length exceeds max of ${r}.`,hr=r=>`Missing ${r} property in key`,cr=r=>`Property 'weight' in key '${r}' must be a positive integer`,Xs=Object.prototype.hasOwnProperty;class ur{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(s=>{let i=Js(s);t+=i.weight,this._keys.push(i),this._keyMap[i.id]=i,t+=i.weight}),this._keys.forEach(s=>{s.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Js(r){let e=null,t=null,s=null,i=1,o=null;if(Te(r)||Ne(r))s=r,e=Gs(r),t=qt(r);else{if(!Xs.call(r,"name"))throw new Error(hr("name"));const a=r.name;if(s=a,Xs.call(r,"weight")&&(i=r.weight,i<=0))throw new Error(cr(a));e=Gs(a),t=qt(a),o=r.getFn}return{path:e,id:t,weight:i,src:s,getFn:o}}function Gs(r){return Ne(r)?r:r.split(".")}function qt(r){return Ne(r)?r.join("."):r}function dr(r,e){let t=[],s=!1;const i=(o,a,c)=>{if(Ae(o))if(!a[c])t.push(o);else{let u=a[c];const d=o[u];if(!Ae(d))return;if(c===a.length-1&&(Te(d)||Ys(d)||rr(d)))t.push(ir(d));else if(Ne(d)){s=!0;for(let v=0,m=d.length;v<m;v+=1)i(d[v],a,c+1)}else a.length&&i(d,a,c+1)}};return i(r,Te(e)?e.split("."):e,0),s?t:t[0]}var T={...{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(r,e)=>r.score===e.score?r.idx<e.idx?-1:1:r.score<e.score?-1:1},...{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},...{location:0,threshold:.6,distance:100},...{useExtendedSearch:!1,getFn:dr,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const pr=/[^ ]+/g;function fr(r=1,e=3){const t=new Map,s=Math.pow(10,e);return{get(i){const o=i.match(pr).length;if(t.has(o))return t.get(o);const a=1/Math.pow(o,.5*r),c=parseFloat(Math.round(a*s)/s);return t.set(o,c),c},clear(){t.clear()}}}class Xt{constructor({getFn:e=T.getFn,fieldNormWeight:t=T.fieldNormWeight}={}){this.norm=fr(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((t,s)=>{this._keysMap[t.id]=s})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Te(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){const t=this.size();Te(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,s=this.size();t<s;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!Ae(e)||Kt(e))return;let s={v:e,i:t,n:this.norm.get(e)};this.records.push(s)}_addObject(e,t){let s={i:t,$:{}};this.keys.forEach((i,o)=>{let a=i.getFn?i.getFn(e):this.getFn(e,i.path);if(Ae(a)){if(Ne(a)){let c=[];const u=[{nestedArrIndex:-1,value:a}];for(;u.length;){const{nestedArrIndex:d,value:v}=u.pop();if(Ae(v))if(Te(v)&&!Kt(v)){let m={v,i:d,n:this.norm.get(v)};c.push(m)}else Ne(v)&&v.forEach((m,$)=>{u.push({nestedArrIndex:$,value:m})})}s.$[o]=c}else if(Te(a)&&!Kt(a)){let c={v:a,n:this.norm.get(a)};s.$[o]=c}}}),this.records.push(s)}toJSON(){return{keys:this.keys,records:this.records}}}function Zs(r,e,{getFn:t=T.getFn,fieldNormWeight:s=T.fieldNormWeight}={}){const i=new Xt({getFn:t,fieldNormWeight:s});return i.setKeys(r.map(Js)),i.setSources(e),i.create(),i}function gr(r,{getFn:e=T.getFn,fieldNormWeight:t=T.fieldNormWeight}={}){const{keys:s,records:i}=r,o=new Xt({getFn:e,fieldNormWeight:t});return o.setKeys(s),o.setIndexRecords(i),o}function _t(r,{errors:e=0,currentLocation:t=0,expectedLocation:s=0,distance:i=T.distance,ignoreLocation:o=T.ignoreLocation}={}){const a=e/r.length;if(o)return a;const c=Math.abs(s-t);return i?a+c/i:c?1:a}function mr(r=[],e=T.minMatchCharLength){let t=[],s=-1,i=-1,o=0;for(let a=r.length;o<a;o+=1){let c=r[o];c&&s===-1?s=o:!c&&s!==-1&&(i=o-1,i-s+1>=e&&t.push([s,i]),s=-1)}return r[o-1]&&o-s>=e&&t.push([s,o-1]),t}const Ye=32;function vr(r,e,t,{location:s=T.location,distance:i=T.distance,threshold:o=T.threshold,findAllMatches:a=T.findAllMatches,minMatchCharLength:c=T.minMatchCharLength,includeMatches:u=T.includeMatches,ignoreLocation:d=T.ignoreLocation}={}){if(e.length>Ye)throw new Error(ar(Ye));const v=e.length,m=r.length,$=Math.max(0,Math.min(s,m));let E=o,P=$;const G=c>1||u,ye=G?Array(m):[];let ae;for(;(ae=r.indexOf(e,P))>-1;){let X=_t(e,{currentLocation:ae,expectedLocation:$,distance:i,ignoreLocation:d});if(E=Math.min(X,E),P=ae+v,G){let re=0;for(;re<v;)ye[ae+re]=1,re+=1}}P=-1;let be=[],me=1,Se=v+m;const $e=1<<v-1;for(let X=0;X<v;X+=1){let re=0,z=Se;for(;re<z;)_t(e,{errors:X,currentLocation:$+z,expectedLocation:$,distance:i,ignoreLocation:d})<=E?re=z:Se=z,z=Math.floor((Se-re)/2+re);Se=z;let B=Math.max(1,$-z+1),De=a?m:Math.min($+z,m)+v,ke=Array(De+2);ke[De+1]=(1<<X)-1;for(let y=De;y>=B;y-=1){let b=y-1,k=t[r.charAt(b)];if(G&&(ye[b]=+!!k),ke[y]=(ke[y+1]<<1|1)&k,X&&(ke[y]|=(be[y+1]|be[y])<<1|1|be[y+1]),ke[y]&$e&&(me=_t(e,{errors:X,currentLocation:b,expectedLocation:$,distance:i,ignoreLocation:d}),me<=E)){if(E=me,P=b,P<=$)break;B=Math.max(1,2*$-P)}}if(_t(e,{errors:X+1,currentLocation:$,expectedLocation:$,distance:i,ignoreLocation:d})>E)break;be=ke}const U={isMatch:P>=0,score:Math.max(.001,me)};if(G){const X=mr(ye,c);X.length?u&&(U.indices=X):U.isMatch=!1}return U}function yr(r){let e={};for(let t=0,s=r.length;t<s;t+=1){const i=r.charAt(t);e[i]=(e[i]||0)|1<<s-t-1}return e}class Qs{constructor(e,{location:t=T.location,threshold:s=T.threshold,distance:i=T.distance,includeMatches:o=T.includeMatches,findAllMatches:a=T.findAllMatches,minMatchCharLength:c=T.minMatchCharLength,isCaseSensitive:u=T.isCaseSensitive,ignoreLocation:d=T.ignoreLocation}={}){if(this.options={location:t,threshold:s,distance:i,includeMatches:o,findAllMatches:a,minMatchCharLength:c,isCaseSensitive:u,ignoreLocation:d},this.pattern=u?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const v=($,E)=>{this.chunks.push({pattern:$,alphabet:yr($),startIndex:E})},m=this.pattern.length;if(m>Ye){let $=0;const E=m%Ye,P=m-E;for(;$<P;)v(this.pattern.substr($,Ye),$),$+=Ye;if(E){const G=m-Ye;v(this.pattern.substr(G),G)}}else v(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,includeMatches:s}=this.options;if(t||(e=e.toLowerCase()),this.pattern===e){let P={isMatch:!0,score:0};return s&&(P.indices=[[0,e.length-1]]),P}const{location:i,distance:o,threshold:a,findAllMatches:c,minMatchCharLength:u,ignoreLocation:d}=this.options;let v=[],m=0,$=!1;this.chunks.forEach(({pattern:P,alphabet:G,startIndex:ye})=>{const{isMatch:ae,score:be,indices:me}=vr(e,P,G,{location:i+ye,distance:o,threshold:a,findAllMatches:c,minMatchCharLength:u,includeMatches:s,ignoreLocation:d});ae&&($=!0),m+=be,ae&&me&&(v=[...v,...me])});let E={isMatch:$,score:$?m/this.chunks.length:1};return $&&s&&(E.indices=v),E}}class He{constructor(e){this.pattern=e}static isMultiMatch(e){return ei(e,this.multiRegex)}static isSingleMatch(e){return ei(e,this.singleRegex)}search(){}}function ei(r,e){const t=r.match(e);return t?t[1]:null}class br extends He{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}class $r extends He{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const s=e.indexOf(this.pattern)===-1;return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class _r extends He{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}class xr extends He{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}class wr extends He{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class Ar extends He{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}class ti extends He{constructor(e,{location:t=T.location,threshold:s=T.threshold,distance:i=T.distance,includeMatches:o=T.includeMatches,findAllMatches:a=T.findAllMatches,minMatchCharLength:c=T.minMatchCharLength,isCaseSensitive:u=T.isCaseSensitive,ignoreLocation:d=T.ignoreLocation}={}){super(e),this._bitapSearch=new Qs(e,{location:t,threshold:s,distance:i,includeMatches:o,findAllMatches:a,minMatchCharLength:c,isCaseSensitive:u,ignoreLocation:d})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class si extends He{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t=0,s;const i=[],o=this.pattern.length;for(;(s=e.indexOf(this.pattern,t))>-1;)t=s+o,i.push([s,t-1]);const a=!!i.length;return{isMatch:a,score:a?0:1,indices:i}}}const Jt=[br,si,_r,xr,Ar,wr,$r,ti],ii=Jt.length,Er=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Mr="|";function Sr(r,e={}){return r.split(Mr).map(t=>{let s=t.trim().split(Er).filter(o=>o&&!!o.trim()),i=[];for(let o=0,a=s.length;o<a;o+=1){const c=s[o];let u=!1,d=-1;for(;!u&&++d<ii;){const v=Jt[d];let m=v.isMultiMatch(c);m&&(i.push(new v(m,e)),u=!0)}if(!u)for(d=-1;++d<ii;){const v=Jt[d];let m=v.isSingleMatch(c);if(m){i.push(new v(m,e));break}}}return i})}const kr=new Set([ti.type,si.type]);class Or{constructor(e,{isCaseSensitive:t=T.isCaseSensitive,includeMatches:s=T.includeMatches,minMatchCharLength:i=T.minMatchCharLength,ignoreLocation:o=T.ignoreLocation,findAllMatches:a=T.findAllMatches,location:c=T.location,threshold:u=T.threshold,distance:d=T.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:s,minMatchCharLength:i,findAllMatches:a,ignoreLocation:o,location:c,threshold:u,distance:d},this.pattern=t?e:e.toLowerCase(),this.query=Sr(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:s,isCaseSensitive:i}=this.options;e=i?e:e.toLowerCase();let o=0,a=[],c=0;for(let u=0,d=t.length;u<d;u+=1){const v=t[u];a.length=0,o=0;for(let m=0,$=v.length;m<$;m+=1){const E=v[m],{isMatch:P,indices:G,score:ye}=E.search(e);if(P){if(o+=1,c+=ye,s){const ae=E.constructor.type;kr.has(ae)?a=[...a,...G]:a.push(G)}}else{c=0,o=0,a.length=0;break}}if(o){let m={isMatch:!0,score:c/o};return s&&(m.indices=a),m}}return{isMatch:!1,score:1}}}const Gt=[];function Cr(...r){Gt.push(...r)}function Zt(r,e){for(let t=0,s=Gt.length;t<s;t+=1){let i=Gt[t];if(i.condition(r,e))return new i(r,e)}return new Qs(r,e)}const xt={AND:"$and",OR:"$or"},Qt={PATH:"$path",PATTERN:"$val"},es=r=>!!(r[xt.AND]||r[xt.OR]),Lr=r=>!!r[Qt.PATH],Tr=r=>!Ne(r)&&Ks(r)&&!es(r),ri=r=>({[xt.AND]:Object.keys(r).map(e=>({[e]:r[e]}))});function ni(r,e,{auto:t=!0}={}){const s=i=>{let o=Object.keys(i);const a=Lr(i);if(!a&&o.length>1&&!es(i))return s(ri(i));if(Tr(i)){const u=a?i[Qt.PATH]:o[0],d=a?i[Qt.PATTERN]:i[u];if(!Te(d))throw new Error(lr(u));const v={keyId:qt(u),pattern:d};return t&&(v.searcher=Zt(d,e)),v}let c={children:[],operator:o[0]};return o.forEach(u=>{const d=i[u];Ne(d)&&d.forEach(v=>{c.children.push(s(v))})}),c};return es(r)||(r=ri(r)),s(r)}function Dr(r,{ignoreFieldNorm:e=T.ignoreFieldNorm}){r.forEach(t=>{let s=1;t.matches.forEach(({key:i,norm:o,score:a})=>{const c=i?i.weight:null;s*=Math.pow(a===0&&c?Number.EPSILON:a,(c||1)*(e?1:o))}),t.score=s})}function Rr(r,e){const t=r.matches;e.matches=[],Ae(t)&&t.forEach(s=>{if(!Ae(s.indices)||!s.indices.length)return;const{indices:i,value:o}=s;let a={indices:i,value:o};s.key&&(a.key=s.key.src),s.idx>-1&&(a.refIndex=s.idx),e.matches.push(a)})}function Pr(r,e){e.score=r.score}function Ir(r,e,{includeMatches:t=T.includeMatches,includeScore:s=T.includeScore}={}){const i=[];return t&&i.push(Rr),s&&i.push(Pr),r.map(o=>{const{idx:a}=o,c={item:e[a],refIndex:a};return i.length&&i.forEach(u=>{u(o,c)}),c})}class Qe{constructor(e,t={},s){this.options={...T,...t},this.options.useExtendedSearch,this._keyStore=new ur(this.options.keys),this.setCollection(e,s)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof Xt))throw new Error(or);this._myIndex=t||Zs(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){Ae(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const t=[];for(let s=0,i=this._docs.length;s<i;s+=1){const o=this._docs[s];e(o,s)&&(this.removeAt(s),s-=1,i-=1,t.push(o))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){const{includeMatches:s,includeScore:i,shouldSort:o,sortFn:a,ignoreFieldNorm:c}=this.options;let u=Te(e)?Te(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return Dr(u,{ignoreFieldNorm:c}),o&&u.sort(a),Ys(t)&&t>-1&&(u=u.slice(0,t)),Ir(u,this._docs,{includeMatches:s,includeScore:i})}_searchStringList(e){const t=Zt(e,this.options),{records:s}=this._myIndex,i=[];return s.forEach(({v:o,i:a,n:c})=>{if(!Ae(o))return;const{isMatch:u,score:d,indices:v}=t.searchIn(o);u&&i.push({item:o,idx:a,matches:[{score:d,value:o,norm:c,indices:v}]})}),i}_searchLogical(e){const t=ni(e,this.options),s=(c,u,d)=>{if(!c.children){const{keyId:m,searcher:$}=c,E=this._findMatches({key:this._keyStore.get(m),value:this._myIndex.getValueForItemAtKeyId(u,m),searcher:$});return E&&E.length?[{idx:d,item:u,matches:E}]:[]}const v=[];for(let m=0,$=c.children.length;m<$;m+=1){const E=c.children[m],P=s(E,u,d);if(P.length)v.push(...P);else if(c.operator===xt.AND)return[]}return v},i=this._myIndex.records,o={},a=[];return i.forEach(({$:c,i:u})=>{if(Ae(c)){let d=s(t,c,u);d.length&&(o[u]||(o[u]={idx:u,item:c,matches:[]},a.push(o[u])),d.forEach(({matches:v})=>{o[u].matches.push(...v)}))}}),a}_searchObjectList(e){const t=Zt(e,this.options),{keys:s,records:i}=this._myIndex,o=[];return i.forEach(({$:a,i:c})=>{if(!Ae(a))return;let u=[];s.forEach((d,v)=>{u.push(...this._findMatches({key:d,value:a[v],searcher:t}))}),u.length&&o.push({idx:c,item:a,matches:u})}),o}_findMatches({key:e,value:t,searcher:s}){if(!Ae(t))return[];let i=[];if(Ne(t))t.forEach(({v:o,i:a,n:c})=>{if(!Ae(o))return;const{isMatch:u,score:d,indices:v}=s.searchIn(o);u&&i.push({score:d,key:e,value:o,idx:a,norm:c,indices:v})});else{const{v:o,n:a}=t,{isMatch:c,score:u,indices:d}=s.searchIn(o);c&&i.push({score:u,key:e,value:o,norm:a,indices:d})}return i}}Qe.version="6.6.2",Qe.createIndex=Zs,Qe.parseIndex=gr,Qe.config=T,Qe.parseQuery=ni,Cr(Or);var dt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oi(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Nr="Expected a function",li=0/0,jr="[object Symbol]",Hr=/^\s+|\s+$/g,Fr=/^[-+]0x[0-9a-f]+$/i,Ur=/^0b[01]+$/i,Br=/^0o[0-7]+$/i,zr=parseInt,Wr=typeof dt=="object"&&dt&&dt.Object===Object&&dt,Vr=typeof self=="object"&&self&&self.Object===Object&&self,Yr=Wr||Vr||Function("return this")(),Kr=Object.prototype,qr=Kr.toString,Xr=Math.max,Jr=Math.min,ts=function(){return Yr.Date.now()};function Gr(r,e,t){var s,i,o,a,c,u,d=0,v=!1,m=!1,$=!0;if(typeof r!="function")throw new TypeError(Nr);e=ai(e)||0,ss(t)&&(v=!!t.leading,m="maxWait"in t,o=m?Xr(ai(t.maxWait)||0,e):o,$="trailing"in t?!!t.trailing:$);function E(U){var X=s,re=i;return s=i=void 0,d=U,a=r.apply(re,X),a}function P(U){return d=U,c=setTimeout(ae,e),v?E(U):a}function G(U){var X=U-u,re=U-d,z=e-X;return m?Jr(z,o-re):z}function ye(U){var X=U-u,re=U-d;return u===void 0||X>=e||X<0||m&&re>=o}function ae(){var U=ts();if(ye(U))return be(U);c=setTimeout(ae,G(U))}function be(U){return c=void 0,$&&s?E(U):(s=i=void 0,a)}function me(){c!==void 0&&clearTimeout(c),d=0,s=u=i=c=void 0}function Se(){return c===void 0?a:be(ts())}function $e(){var U=ts(),X=ye(U);if(s=arguments,i=this,u=U,X){if(c===void 0)return P(u);if(m)return c=setTimeout(ae,e),E(u)}return c===void 0&&(c=setTimeout(ae,e)),a}return $e.cancel=me,$e.flush=Se,$e}function ss(r){var e=typeof r;return!!r&&(e=="object"||e=="function")}function Zr(r){return!!r&&typeof r=="object"}function Qr(r){return typeof r=="symbol"||Zr(r)&&qr.call(r)==jr}function ai(r){if(typeof r=="number")return r;if(Qr(r))return li;if(ss(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=ss(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=r.replace(Hr,"");var t=Ur.test(r);return t||Br.test(r)?zr(r.slice(2),t?2:8):Fr.test(r)?li:+r}var en=Gr;const tn=oi(en);(()=>{var r=Object.defineProperty,e=Math.pow,t=(n,h,f)=>h in n?r(n,h,{enumerable:!0,configurable:!0,writable:!0,value:f}):n[h]=f,s=(n,h,f)=>(t(n,typeof h!="symbol"?h+"":h,f),f),i=(n,h)=>` ${h&&h.length>0?h.map(f=>`<link rel="stylesheet" href="${f}" />`).join(""):""} <style> ${n} </style> <div class="range-slider-box"> <div class="row"> <div id="range-slider" class="range-slider"> <div class="container"> <div class="panel"></div> <div class="panel-fill"></div> <div class="container"> <div class="pointer" tabindex="0" role="slider"> <div class="pointer-shape"></div> </div> </div> </div> </div> </div> </div>`,o=":host{--width:300px;--height:.25rem;--opacity:.4;--panel-bg:#cbd5e1;--panel-bg-hover:#94a3b8;--panel-bg-fill:#475569;--panel-bg-border-radius:1rem;--pointer-width:1rem;--pointer-height:1rem;--pointer-bg:#fff;--pointer-bg-hover:#dcdcdc;--pointer-bg-focus:#dcdcdc;--pointer-shadow:0 0 2px rgba(0,0,0,0.8);--pointer-shadow-hover:0 0 2px #000;--pointer-shadow-focus:var(--pointer-shadow-hover);--pointer-border:1px solid hsla(0,0%,88%,0.5);--pointer-border-hover:1px solid #94a3b8;--pointer-border-focus:var(--pointer-border-hover);--pointer-border-radius:100%;--animate-onclick:.3s}:host{max-width:100%}.range-slider-box{display:flex;position:relative;flex-direction:column}.range-slider{position:relative;width:var(--width,100%);height:var(--height,0.25rem);touch-action:none;max-width:100%;box-sizing:border-box;cursor:pointer}.row{width:100%;display:flex;align-items:center}.range-slider.disabled{opacity:var(--opacity,0.4);cursor:default}.pointer.disabled{-webkit-filter:brightness(0.8);filter:brightness(0.8);cursor:default}.range-slider *{box-sizing:border-box}.container{position:absolute;width:100%;height:100%}.panel{position:absolute;z-index:10;width:100%;height:100%;background:var(--panel-bg,#2d4373);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;transition:.3s all ease}.panel-fill{background:var(--panel-bg-fill,#000);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;height:100%;position:absolute;z-index:10}.panel:hover{background:var(--panel-bg-hover,#5f79b7)}.disabled .panel:hover{background:var(--panel-bg,#5f79b7)}.pointer{position:absolute;z-index:20;outline:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;box-shadow:var(--pointer-shadow);border:var(--pointer-border);border-radius:var(--pointer-border-radius,100%);-webkit-transform:translateX(-50%);transform:translateX(-50%);width:var(--pointer-width,15px);height:var(--pointer-height,15px);transition:.3s all ease}.pointer-shape:hover{background:var(--pointer-bg-hover,#fff);background-size:contain;border:var(--pointer-border-hover);box-shadow:var(--pointer-shadow-hover)}.disabled .pointer-shape:hover{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.pointer:focus .pointer-shape{background:var(--pointer-bg-focus,#fff);background-size:contain;border:var(--pointer-border-focus);box-shadow:var(--pointer-shadow-focus)}.disabled .pointer:focus .pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.type-vertical .range-slider{--width:.25rem;--height:300px;max-height:100%}.type-vertical .range-slider .pointer{left:50%}.type-vertical .range-slider .panel-fill{width:100%}.type-vertical.range-slider-box{flex-direction:row}.type-vertical .row{flex-direction:column}.animate-on-click .pointer,.animate-on-click .panel-fill{transition:all var(--animate-onclick)}.range-dragging .panel-fill{cursor:move}",a="pointers-overlap",c="pointers-min-distance",u="pointers-max-distance",d="range-dragging",v="data",m="min",$="max",E="step",P="round",G="type",ye="theme",ae="rtl",be="btt",me="disabled",Se="keyboard-disabled",$e="mousewheel-disabled",U="slider-width",X="slider-height",re="slider-radius",z="slider-bg",B="slider-bg-hover",De="slider-bg-fill",ke="pointer-width",D="pointer-height",y="pointer-radius",b="pointer-bg",k="pointer-bg-hover",_="pointer-bg-focus",I="pointer-shadow",R="pointer-shadow-hover",V="pointer-shadow-focus",se="pointer-border",ee="pointer-border-hover",ce="pointer-border-focus",Oe="animate-onclick",Ce="css-links",de="vertical",Ee="horizontal",Re=(n,h,f,p,x)=>{let O=h-n;return O===0?f:(p-f)*(x-n)/O+f},te=n=>!isNaN(parseFloat(n))&&isFinite(n),K=(n,h)=>te(n)?Number(n):h,et=(n,h)=>h===0?0:Math.round(n/h)*h,tt=(n,h=1/0)=>{if(h===1/0)return n;let f=e(10,h);return Math.round(n*f)/f},pe=n=>n==null?!1:typeof n=="boolean"?n:n.trim().toLowerCase()==="true",cn=(n,h)=>{n.dispatchEvent(new CustomEvent("onPointerClicked",{detail:{$pointer:h}}))},un=(n,h)=>{n.dispatchEvent(new CustomEvent("onMouseDown",{detail:{nativeEvent:h}}))},dn=(n,h)=>{n.dispatchEvent(new CustomEvent("onMouseUp",{detail:{nativeEvent:h}}))},pn=(n,h)=>{n.dispatchEvent(new CustomEvent("onKeyDown",{detail:{nativeEvent:h}}))},fn=(n,h)=>{if(!h||h.length<=0)return;let f=h.map(x=>te(x)?K(x,x):x),p={values:f||[]};p.value=f[0],p.value0=f[0],p.value1=f[0];for(let x=1;x<f.length;x++)p[`value${x+1}`]=f[x];n.dispatchEvent(new CustomEvent("change",{detail:p}))},is=(n,h,f)=>{let p=0,x,O,N,w,A=!1,j=(L,J,ue,he,ne,oe)=>{let _e=p;ue!==void 0&&L>ue&&(L=ue),J!==void 0&&L<J&&(L=J),p=L;let xe=p;return(he===de&&oe||he===Ee&&ne)&&(xe=100-xe),he===de?h.style.top=`${xe}%`:h.style.left=`${xe}%`,_e!==p},F=L=>L===h||h.contains(L),S=(L,J,ue,he)=>{x=L,O=J,N=ue,w=he},Y=L=>{A=L,h.classList.toggle("disabled",A),A?h.setAttribute("aria-disabled","true"):h.hasAttribute("aria-disabled")&&h.removeAttribute("aria-disabled")},Me=(L,J)=>{J==null?h.removeAttribute(L):h.setAttribute(L,J)},ve=L=>h.getAttribute(L),C=L=>{if(!A){switch(L.key){case"ArrowLeft":{L.preventDefault(),typeof x=="function"&&x(f);break}case"ArrowRight":{L.preventDefault(),typeof O=="function"&&O(f);break}case"ArrowUp":{L.preventDefault(),typeof N=="function"&&N(f);break}case"ArrowDown":{L.preventDefault(),typeof w=="function"&&w(f);break}}pn(n,L)}},H=()=>{A||cn(n,h)};return h.className=`pointer pointer-${f}`,h.addEventListener("keydown",C),h.addEventListener("click",H),{$pointer:h,get percent(){return p},get disabled(){return A},set disabled(L){Y(L)},updatePosition:j,isClicked:F,setCallbacks:S,setAttr:Me,getAttr:ve,destroy:()=>{h.removeEventListener("keydown",C),h.removeEventListener("click",H),h.remove()}}},gn=n=>{if(n==null)return;if(Array.isArray(n))return n;if(n.trim()==="")return;let h=n.split(","),f=[],p=!0;for(let x=0;x<h.length;x++){let O=h[x].trim();O!==""&&(f.push(O),te(O)||(p=!1))}return p?f.map(x=>Number(x)):f},mn=(n,h)=>h?h.findIndex(f=>f===n||f.toString().trim()===n.toString().trim()):-1,vn=n=>({updatePosition:(h,f,p,x)=>{if(f.length<=0)return;let O=f.length===1,N=f[0],w=f[f.length-1];h===de?(n.style.removeProperty("width"),n.style.removeProperty("right"),n.style.removeProperty("left"),O?n.style.height=`${N}%`:n.style.height=`${Math.abs(N-w)}%`,x?(n.style.bottom="0%",O?n.style.top="auto":n.style.top=`${Math.min(100-w,100-N)}%`):(n.style.bottom="auto",O?n.style.top="0%":n.style.top=`${Math.min(N,w)}%`)):(n.style.removeProperty("height"),n.style.removeProperty("top"),n.style.removeProperty("bottom"),O?n.style.width=`${N}%`:n.style.width=`${Math.abs(N-w)}%`,p?(n.style.right="0%",O?n.style.left="auto":n.style.left=`${Math.min(100-w,100-N)}%`):(n.style.right="auto",O?n.style.left="0%":n.style.left=`${Math.min(N,w)}%`))}}),ui="--animate-onclick",yn="--width",bn="--height",$n="--panel-bg-border-radius",_n="--panel-bg",xn="--panel-bg-hover",wn="--panel-bg-fill",An="--pointer-width",En="--pointer-height",Mn="--pointer-border-radius",Sn="--pointer-bg",kn="--pointer-bg-hover",On="--pointer-bg-focus",Cn="--pointer-shadow",Ln="--pointer-shadow-hover",Tn="--pointer-shadow-focus",Dn="--pointer-border",Rn="--pointer-border-hover",Pn="--pointer-border-focus",At=(n,h,f)=>{let p=new Map;for(let x of n.attributes){let O=x.nodeName.trim().toLowerCase();if(!h.test(O))continue;let N=O.replace(/\D/g,"").trim(),w=N===""||N==="0"||N==="1"?0:K(N,0)-1,A=f&&typeof f=="function"?f(x.value):x.value;p.set(w,A)}return p},In=n=>{if(!n)return null;let h=n.getAttribute(Ce);if(!h)return null;let f=h.split(";"),p=[];for(let x of f)x.trim()!==""&&p.push(x.trim());return p},di=[[yn,U,"sliderWidth",null],[bn,X,"sliderHeight",null],[$n,re,"sliderRadius",null],[_n,z,"sliderBg",null],[xn,B,"sliderBgHover",null],[wn,De,"sliderBgFill",null],[An,ke,"pointer#Width",/^pointer([0-9]*)-width$/],[En,D,"pointer#Height",/^pointer([0-9]*)-height$/],[Mn,y,"pointer#Radius",/^pointer([0-9]*)-radius$/],[Sn,b,"pointer#Bg",/^pointer([0-9]*)-bg$/],[kn,k,"pointer#BgHover",/^pointer([0-9]*)-bg-hover$/],[On,_,"pointer#BgFocus",/^pointer([0-9]*)-bg-focus$/],[Cn,I,"pointer#Shadow",/^pointer([0-9]*)-shadow$/],[Ln,R,"pointer#ShadowHover",/^pointer([0-9]*)-shadow-hover$/],[Tn,V,"pointer#ShadowFocus",/^pointer([0-9]*)-shadow-focus$/],[Dn,se,"pointer#Border",/^pointer([0-9]*)-border$/],[Rn,ee,"pointer#BorderHover",/^pointer([0-9]*)-border-hover$/],[Pn,ce,"pointer#BorderFocus",/^pointer([0-9]*)-border-focus$/]],Nn=(n,h,f)=>{let p=null,x=[],O=new Map,N=(C,H=h)=>{let L=[...H.classList];for(let J of L)J.startsWith(C)&&h.classList.remove(J)},w=()=>{N("shape");let C=h.querySelectorAll(".pointer");for(let H of C)N("shape",H)},A=C=>{p=C,N("theme-"),typeof C=="string"&&h.classList.add(`theme-${C}`)},j=()=>{if(w(),!(x.length<=0)){h.classList.add("shape",`shape-${x[0]}`);for(let C=1;C<x.length;C++){let H=x[C];if(!H)continue;let L=h.querySelector(`.pointer-${C}`);!L||L.classList.add("shape",`shape-${H}`)}}},F=(C,H)=>{x[C]=H,j()},S=()=>{w();let C=At(n,/^pointer([0-9]*)-shape$/);if(!(C.size<=0)){for(let H of C){let L=H[0];x[L]=H[1]}j()}},Y=(C,H)=>`${C}-${H}`,Me=(C,H,L)=>{let J=f[L];if(!J)return;let ue=L===0?h:J.$pointer;if(H==null){O.has(Y(C,L))&&O.delete(Y(C,L)),ue.style.removeProperty(C);return}O.set(Y(C,L),H),ue.style.setProperty(C,H)},ve=(C,H)=>O.get(Y(C,H));return(()=>{for(let C of di){let[H,L,J,ue]=C;if(ue){let ne=At(n,ue);for(let oe of ne){let _e=oe[0],xe=oe[1];Me(H,xe,_e)}}else{let ne=n.getAttribute(L);Me(H,ne,0)}let he=[];if(J.indexOf("#")===-1)he.push([J,0]);else{he.push([J.replace("#",""),0]),he.push([J.replace("#","0"),0]),he.push([J.replace("#","1"),0]);for(let ne=1;ne<f.length;ne++)he.push([J.replace("#",(ne+1).toString()),ne])}for(let ne of he)try{let oe=ne[0],_e=ne[1];Object.prototype.hasOwnProperty.call(n,oe)||Object.defineProperty(n,oe,{get(){return ve(H,_e)},set:xe=>{Me(H,xe,_e)}})}catch(oe){console.error(oe)}}A(n.getAttribute(ye)),S()})(),{setStyle:Me,getStyle:ve,get theme(){return p},set theme(C){A(C)},get pointerShapes(){return x},setPointerShape:F}},st="animate-on-click",pi="range-dragging",jn=(n,h,f,p)=>{let x=[],O=F=>{for(let S of x)S.update&&typeof S.update=="function"&&S.update(F)},N=()=>{for(let F of x)F.destroy&&typeof F.destroy=="function"&&F.destroy()},w=(F,S)=>{for(let Y of x)Y.onAttrChange&&typeof Y.onAttrChange=="function"&&Y.onAttrChange(F,S)},A=F=>{if(F.gettersAndSetters){for(let S of F.gettersAndSetters)if(!(!S.name||!S.attributes))try{Object.prototype.hasOwnProperty.call(n,S.name)||Object.defineProperty(n,S.name,S.attributes)}catch(Y){console.error("defineSettersGetters error:",Y)}}},j=F=>{var S;if(!F.css)return;let Y=(S=n.shadowRoot)==null?void 0:S.querySelector("style");!Y||(Y.innerHTML+=F.css)};return{init:()=>{if(window.tcRangeSliderPlugins)for(let F of window.tcRangeSliderPlugins){let S=F();x.push(S),S.init&&typeof S.init=="function"&&(S.init(n,h,f,p),A(S),j(S))}},update:O,onAttrChange:w,destroy:N}},Hn=10,Fn=(n,h)=>{let f=new Map,p=/^value([0-9]*)$/;for(let w of n.attributes){let A=w.nodeName.trim().toLowerCase();if(!p.test(A))continue;let j=A.replace("value","").trim(),F=j===""||j==="0"||j==="1"?0:K(j,0)-1,S=te(w.value)?K(w.value,0):w.value;f.set(F,S)}let x=Math.max(...Array.from(f.keys())),O=[];O.push([is(n,h,0),f.get(0)]);let N=h;for(let w=1;w<=x;w++){let A=h.cloneNode(!0);N.after(A),N=A,O.push([is(n,A,w),f.get(w)])}return O},fi=(n,h,f,p,x,O,N)=>{try{Object.defineProperty(n,p,{configurable:!0,get(){if(!h)return;let w=h.pointers[f];if(!w)return;let A=h.getTextValue(w.percent);return te(A)?K(A,A):A},set:w=>{h.pointers[f]?h==null||h.setValue(w,f):h==null||h.addPointer(w)}}),Object.defineProperty(n,x,{configurable:!0,get(){var w,A;return(A=(w=h==null?void 0:h.pointers[f])==null?void 0:w.getAttr("aria-label"))!=null?A:void 0},set:w=>{!h||h.setAriaLabel(f,w)}}),Object.defineProperty(n,O,{configurable:!0,get(){var w,A;return(A=(w=h==null?void 0:h.styles)==null?void 0:w.pointerShapes[f])!=null?A:null},set:w=>{!h||!h.styles||h.styles.setPointerShape(f,w)}}),Object.defineProperty(n,N,{configurable:!0,get(){var w;return(w=h==null?void 0:h.pointers[f].disabled)!=null?w:!1},set:w=>{if(!h)return;let A=h==null?void 0:h.pointers[f];!A||(A.disabled=w)}})}catch(w){console.error(w)}},Un=(n,h)=>{let f=[["value","ariaLabel","pointerShape","pointerDisabled",0],["value0","ariaLabel0","pointerShape0","pointer0Disabled",0],["value1","ariaLabel1","pointerShape1","pointer1Disabled",0]];for(let p=2;p<Hn;p++)f.push([`value${p}`,`ariaLabel${p}`,`pointer${p}Shape`,`pointer${p}Disabled`,p-1]);for(let p of f)fi(n,h,p[4],p[0],p[1],p[2],p[3])},gi=(n,h,f)=>{var p;let x=(p=f.shadowRoot)==null?void 0:p.querySelector(".container");if(x)for(let O of n)h?x.prepend(O.$pointer):x.append(O.$pointer)},rs=0,pt=100,it=2,mi="0.3s",Bn=(n,h,f)=>{let p=f.map(l=>l[0]),x=null,O=null,N=null,w=null,A=rs,j=pt,F,S,Y=Ee,Me=it,ve=!1,C=!1,H=!1,L=0,J=1/0,ue=!1,he,ne,oe=!1,_e=!1,xe=!1,Ue=mi,vi=[],yi=l=>{oe||(l.preventDefault&&l.preventDefault(),Ke(l),window.addEventListener("mousemove",Ke),window.addEventListener("mouseup",Et),un(n,l))},Et=l=>{oe||(he=void 0,ne=void 0,window.removeEventListener("mousemove",Ke),window.removeEventListener("mouseup",Et),Ue&&h.classList.add(st),dn(n,l))},Vn=(l,g)=>{if(p.length<=0)return;if(p.length===1)return p[0].isClicked(l)&&Ue&&h.classList.remove(st),p[0];let M=Kn(l);if(ue){let W=g,Le=St(W);Le!==void 0&&(W=et(W,Le)),M?(he=W,ne=0,Ue&&h.classList.remove(st)):he!==void 0&&(ne=W-he,he=W)}if(!Yn(l)&&!M){for(let W of p)if(!(!W.isClicked(l)||W.disabled))return Ue&&h.classList.remove(st),W;for(let W of p)if(x===W)return W}let q=1/0,le=null;for(let W of p){if(W.disabled)continue;let Le=Math.abs(g-W.percent);Le<q&&(q=Le,le=W)}return le},bi=()=>p.findIndex(l=>x===l&&!l.disabled),Ke=l=>{let g;if(Y===de){let{height:q,top:le}=h.getBoundingClientRect(),W=l.type.indexOf("mouse")!==-1?l.clientY:l.touches[0].clientY;g=Math.min(Math.max(0,W-le),q)*100/q}else{let{width:q,left:le}=h.getBoundingClientRect(),W=l.type.indexOf("mouse")!==-1?l.clientX:l.touches[0].clientX;g=Math.min(Math.max(0,W-le),q)*100/q}if((ve||C)&&(g=100-g),x=Vn(l.target,g),ue&&p.length>1&&ne!==void 0){let q=p[0],le=p[p.length-1],W=q.percent+ne<0,Le=le.percent+ne>100;if(W||Le)return;for(let Pt=0;Pt<p.length;Pt++)we(Pt,p[Pt].percent+ne);return}let M=bi();M!==-1&&(we(M,g),x==null||x.$pointer.focus())},Mt=l=>{if(oe||document.activeElement!==n||x!=null&&x.disabled)return;l.stopPropagation(),l.preventDefault();let g=l.deltaY<0,M=ve||C,q=g?!M:M,le=bi();le!==-1&&(q?ft(le,p[le].percent):gt(le,p[le].percent))},$i=l=>{oe||_e||(Y===de?C?we(l,100):we(l,0):ve?gt(l,p[l].percent):ft(l,p[l].percent))},_i=l=>{oe||_e||(Y===de?C?we(l,0):we(l,100):ve?ft(l,p[l].percent):gt(l,p[l].percent))},xi=l=>{oe||_e||(Y===de?C?gt(l,p[l].percent):ft(l,p[l].percent):ve?we(l,100):we(l,0))},wi=l=>{oe||_e||(Y===de?C?ft(l,p[l].percent):gt(l,p[l].percent):ve?we(l,0):we(l,100))},Yn=l=>l.classList.contains("panel"),Kn=l=>l.classList.contains("panel-fill"),ft=(l,g)=>{if(g===void 0)return;let M=St(g);M==null&&(M=1),g-=M,g<0&&(g=0),we(l,g)},gt=(l,g)=>{if(g===void 0)return;let M=St(g);M==null&&(M=1),g+=M,g>100&&(g=100),we(l,g)},qe=()=>{!w||w.update({percents:Ai(),values:Ei(),$pointers:Mi(),min:Si(),max:ki(),data:ls(),step:os(),round:hs(),type:as(),textMin:kt(),textMax:Ot(),rightToLeft:ds(),bottomToTop:ps(),pointersOverlap:vs(),pointersMinDistance:cs(),pointersMaxDistance:us(),rangeDragging:ys(),disabled:fs(),keyboardDisabled:gs(),mousewheelDisabled:ms()})},qn=()=>{qe()},Xn=l=>{if(!(H||p.length<=1||j===A))if(l===0){let g=J*100/(j-A);return Math.max(0,p[l+1].percent-g)}else{let g=L*100/(j-A);return Math.min(p[l-1].percent+g,100)}},Jn=l=>{if(!(H||p.length<=1||j===A))if(l===p.length-1){let g=J*100/(j-A);return Math.min(p[l-1].percent+g,100)}else{let g=L*100/(j-A);return Math.max(0,p[l+1].percent-g)}},St=l=>{let g;if(typeof F=="function"){let M=Re(0,100,A,j,l);g=F(M,l)}else g=F;if(te(g)){let M=j-A;return g=M===0?0:g*100/M,g}},rt=l=>{if(l===void 0)return;let g=Re(0,100,A,j,l);return S!==void 0?S[Math.round(g)]:tt(g,Me)},kt=()=>S!==void 0?S[A]:A,Ot=()=>S!==void 0?S[j]:j,os=()=>F,Gn=l=>{var g;return l<=0||H?kt():(g=rt(p[l-1].percent))!=null?g:""},Zn=l=>{var g;return p.length<=1||l>=p.length-1||H?Ot():(g=rt(p[l+1].percent))!=null?g:""},Ai=()=>p.map(l=>l.percent),Ei=()=>p.map(l=>rt(l.percent)),Mi=()=>p.map(l=>l.$pointer),Si=()=>A,ki=()=>j,ls=()=>S,as=()=>Y,hs=()=>Me,cs=()=>L,us=()=>J,Qn=l=>vi[l],ds=()=>ve,ps=()=>C,fs=()=>oe,gs=()=>_e,ms=()=>xe,vs=()=>H,ys=()=>ue,we=(l,g)=>{if(g===void 0)return;let M=St(g);M!==void 0&&(g=et(g,M));let q=p[l];if(!q)return;let le=q.updatePosition(g,Xn(l),Jn(l),Y,ve,C);O==null||O.updatePosition(Y,p.map(W=>W.percent),ve,C),qe();for(let W of p){let Le=rt(W.percent);Le!==void 0&&(W.setAttr("aria-valuenow",Le.toString()),W.setAttr("aria-valuetext",Le.toString()))}to(),le&&fn(n,p.map(W=>rt(W.percent)))},Pe=()=>{for(let l=0;l<p.length;l++)we(l,p[l].percent)},eo=(l,g)=>{A=S!==void 0?0:K(l,rs),j=S!==void 0?S.length-1:K(g,pt),Ct(A),Lt(j)},to=()=>{var l,g;for(let M=0;M<p.length;M++){let q=p[M];q.setAttr("aria-valuemin",((l=Gn(M))!=null?l:"").toString()),q.setAttr("aria-valuemax",((g=Zn(M))!=null?g:"").toString())}},Ct=l=>{A=K(l,rs),A>j&&(j=A+pt),Pe()},Lt=l=>{j=K(l,pt),j<A&&(j=A+pt),Pe()},Oi=l=>{H=!0;for(let g=0;g<l.length;g++)Tt(l[g],g);H=!1;for(let g=0;g<l.length;g++)Tt(l[g],g)},Tt=(l,g)=>{let M;S!==void 0?(M=l==null?0:mn(l,S),M===-1&&(M=0)):(M=K(l,A),M<A&&(M=A),M>j&&(M=j));let q=Re(A,j,0,100,M);we(g,q)},Dt=l=>{if(l==null){F=void 0;return}if(typeof l=="function"){F=l,Pe();return}if(te(l)){F=K(l,1);let g=Math.abs(j-A);F>g&&(F=void 0),Pe();return}F=void 0},bs=l=>{H=l,Pe()},$s=l=>{(!te(l)||l<0)&&(l=0),L=l},_s=l=>{(!te(l)||l<0)&&(l=1/0),J=l},xs=l=>{oe=l,h.classList.toggle("disabled",oe),oe?h.setAttribute("aria-disabled","true"):h.hasAttribute("aria-disabled")&&h.removeAttribute("aria-disabled")},Ci=l=>{_e=l},Li=l=>{xe=l,xe?document.removeEventListener("wheel",Mt):document.addEventListener("wheel",Mt,{passive:!1})},ws=l=>{if(l==null){S=void 0;return}if(S=gn(l),S===void 0||S.length<=0){S=void 0;return}Ct(0),Lt(S.length-1),F===void 0&&Dt(1)},As=l=>{var g;typeof l=="string"?Y=l.trim().toLowerCase()===de?de:Ee:Y=Ee;let M=(g=n.shadowRoot)==null?void 0:g.querySelector(".range-slider-box");if(!M)return;M.className=`range-slider-box type-${Y}`,Pe();let q=Y===de?"vertical":"horizontal";for(let le of p)le.setAttr("aria-orientation",q)},Es=l=>{ve=l,p.length>1&&gi(p,ve,n),Pe(),qe()},Ms=l=>{C=l,p.length>1&&gi(p,C,n),Pe(),qe()},Ss=l=>{Me=K(l,it),Me<0&&(Me=it),qe()},Ti=l=>{l==null||l.toString().trim().toLowerCase()==="false"?(Ue=void 0,h.style.removeProperty(ui),h.classList.remove(st)):(Ue=l.toString(),h.style.setProperty(ui,Ue),h.classList.add(st))},Di=(l,g)=>{let M=p[l];!M||(M.setAttr("aria-label",g),vi[l]=g)},Rt=l=>{if(he=void 0,p.length<=1){ue=!1,h.classList.remove(pi);return}ue=l,h.classList.toggle(pi,ue)},so=()=>{xs(pe(n.getAttribute(me))),_e=pe(n.getAttribute(Se)),xe=pe(n.getAttribute($e));let l=At(n,/^pointer([0-9]*)-disabled$/,g=>pe(g));for(let g of l){let M=g[0];!p[M]||(p[M].disabled=g[1])}},io=()=>{let l=At(n,/^aria-label([0-9]*)$/);for(let g of l){let M=g[0];Di(M,g[1])}},ro=l=>{let g=p.length,M=p[g-1].$pointer,q=M.cloneNode(!0);M.after(q);let le=is(n,q,g);return le.setCallbacks($i,_i,xi,wi),p.push(le),Tt(l,g),Pe(),qe(),g},no=()=>{let l=p.length,g=p[l-1];return g?(g.destroy(),p.pop(),p.length<=1&&Rt(!1),Pe(),qe(),l-1):-1};return(()=>{var l,g;for(let q of p)q.setCallbacks($i,_i,xi,wi);let M=(l=n.shadowRoot)==null?void 0:l.querySelector(".panel-fill");M&&(O=vn(M)),As(n.getAttribute(G)),Es(pe(n.getAttribute(ae))),Ms(pe(n.getAttribute(be))),eo(n.getAttribute(m),n.getAttribute($)),Dt(n.getAttribute(E)),ws(n.getAttribute(v)),Oi(f.map(q=>q[1])),bs(pe(n.getAttribute(a))),$s(K(n.getAttribute(c),0)),_s(K(n.getAttribute(u),1/0)),Rt(pe(n.getAttribute(d))),Ss(K(n.getAttribute(P),it)),so(),io(),N=Nn(n,h,p),Ti((g=n.getAttribute(Oe))!=null?g:mi),h.addEventListener("mousedown",yi),h.addEventListener("mouseup",Et),h.addEventListener("touchmove",Ke),h.addEventListener("touchstart",Ke),xe||document.addEventListener("wheel",Mt,{passive:!1}),w=jn(n,qn,{setValues:Oi,setMin:Ct,setMax:Lt,setStep:Dt,setPointersOverlap:bs,setPointersMinDistance:$s,setPointersMaxDistance:_s,setDisabled:xs,setType:As,setRightToLeft:Es,setBottomToTop:Ms,setRound:Ss,setKeyboardDisabled:Ci,setMousewheelDisabled:Li,setRangeDragging:Rt,setData:ws},{getPercents:Ai,getValues:Ei,getPointerElements:Mi,getMin:Si,getMax:ki,getStep:os,getData:ls,getType:as,getRound:hs,getTextMin:kt,getTextMax:Ot,isRightToLeft:ds,isBottomToTop:ps,isDisabled:fs,isKeyboardDisabled:gs,isMousewheelDisabled:ms,isPointersOverlap:vs,isRangeDraggingEnabled:ys,getPointersMinDistance:cs,getPointersMaxDistance:us}),w.init()})(),{get pointers(){return p},get styles(){return N},get pluginsManager(){return w},get min(){return kt()},get max(){return Ot()},get step(){return os()},get pointersOverlap(){return vs()},set pointersOverlap(l){bs(l)},get pointersMinDistance(){return cs()},set pointersMinDistance(l){$s(l)},get pointersMaxDistance(){return us()},set pointersMaxDistance(l){_s(l)},get disabled(){return fs()},set disabled(l){xs(l)},get data(){return ls()},get type(){return as()},set type(l){As(l)},get rightToLeft(){return ds()},set rightToLeft(l){Es(l)},get bottomToTop(){return ps()},set bottomToTop(l){Ms(l)},get round(){return hs()},set round(l){Ss(l)},get animateOnClick(){return Ue},set animateOnClick(l){Ti(l)},get keyboardDisabled(){return gs()},set keyboardDisabled(l){Ci(l)},get mousewheelDisabled(){return ms()},set mousewheelDisabled(l){Li(l)},get rangeDragging(){return ys()},set rangeDragging(l){Rt(l)},setMin:Ct,setMax:Lt,setValue:Tt,setStep:Dt,setData:ws,getTextValue:rt,setAriaLabel:Di,getAriaLabel:Qn,addPointer:ro,removePointer:no,destroy:()=>{h.removeEventListener("mousedown",yi),h.removeEventListener("mouseup",Et),h.removeEventListener("touchmove",Ke),h.removeEventListener("touchstart",Ke),document.removeEventListener("wheel",Mt);for(let l of p)l.destroy();w==null||w.destroy()}}},zn=(n,h,f)=>{let p=di.find(([w,A,j,F])=>A.replace("#","")===h.replace(/\d+/g,""));if(p&&n.styles){let[w,A,j,F]=p,S=h.replace(/\D/g,"").trim(),Y=S===""||S==="0"||S==="1"?0:K(S,0)-1;n.styles.setStyle(w,f,Y);return}switch(n&&n.pluginsManager&&n.pluginsManager.onAttrChange(h,f),h){case m:{n.setMin(f);break}case $:{n.setMax(f);break}case E:{n.setStep(f);break}case a:{n.pointersOverlap=pe(f);break}case c:{n.pointersMinDistance=K(f,0);break}case d:{n.rangeDragging=pe(f);break}case u:{n.pointersMaxDistance=K(f,1/0);break}case me:{n.disabled=pe(f);break}case Se:{n.keyboardDisabled=pe(f);break}case $e:{n.mousewheelDisabled=pe(f);break}case v:{n.setData(f);break}case G:{n.type=f;break}case ae:{n.rightToLeft=pe(f);break}case be:{n.bottomToTop=pe(f);break}case P:{n.round=K(f,it);break}case ye:{n.styles&&(n.styles.theme=f);break}case Oe:{n.animateOnClick=f;break}}let x=null;if(/^value([0-9]*)$/.test(h)&&(x="value"),/^pointer([0-9]*)-disabled$/.test(h)&&(x="pointer-disabled"),/^aria-label([0-9]*)$/.test(h)&&(x="aria-label"),/^pointer([0-9]*)-shape$/.test(h)&&(x="pointer-shape"),!x)return;let O=h.replace(/\D/g,"").trim(),N=O===""||O==="0"||O==="1"?0:K(O,0)-1;switch(x){case"value":{n.setValue(f,N);break}case"pointer-disabled":{let w=n==null?void 0:n.pointers[N];if(!w)return;w.disabled=pe(f);break}case"aria-label":{n.setAriaLabel(N,f);break}case"pointer-shape":{n.styles&&n.styles.setPointerShape(N,f);break}}},Wn=class extends HTMLElement{constructor(){super(),s(this,"slider"),s(this,"_externalCSSList",[]),s(this,"_observer",null),this.attachShadow({mode:"open"})}set step(n){this.slider&&this.slider.setStep(n)}get step(){var n;return(n=this.slider)==null?void 0:n.step}set disabled(n){this.slider&&(this.slider.disabled=n)}get disabled(){var n,h;return(h=(n=this.slider)==null?void 0:n.disabled)!=null?h:!1}set data(n){var h;(h=this.slider)==null||h.setData(n)}get data(){var n;return(n=this.slider)==null?void 0:n.data}set min(n){var h;(h=this.slider)==null||h.setMin(n)}get min(){var n;return(n=this.slider)==null?void 0:n.min}set max(n){var h;(h=this.slider)==null||h.setMax(n)}get max(){var n;return(n=this.slider)==null?void 0:n.max}set round(n){!this.slider||(this.slider.round=n)}get round(){var n,h;return(h=(n=this.slider)==null?void 0:n.round)!=null?h:it}set type(n){!this.slider||(this.slider.type=n??Ee)}get type(){var n;return((n=this.slider)==null?void 0:n.type)||Ee}set pointersOverlap(n){!this.slider||(this.slider.pointersOverlap=n)}get pointersOverlap(){var n,h;return(h=(n=this.slider)==null?void 0:n.pointersOverlap)!=null?h:!1}set pointersMinDistance(n){!this.slider||(this.slider.pointersMinDistance=n)}get pointersMinDistance(){var n,h;return(h=(n=this.slider)==null?void 0:n.pointersMinDistance)!=null?h:0}set pointersMaxDistance(n){!this.slider||(this.slider.pointersMaxDistance=n)}get pointersMaxDistance(){var n,h;return(h=(n=this.slider)==null?void 0:n.pointersMaxDistance)!=null?h:1/0}set theme(n){!this.slider||!this.slider.styles||(this.slider.styles.theme=n)}get theme(){var n,h,f;return(f=(h=(n=this.slider)==null?void 0:n.styles)==null?void 0:h.theme)!=null?f:null}set rtl(n){!this.slider||(this.slider.rightToLeft=n)}get rtl(){var n,h;return(h=(n=this.slider)==null?void 0:n.rightToLeft)!=null?h:!1}set btt(n){!this.slider||(this.slider.bottomToTop=n)}get btt(){var n,h;return(h=(n=this.slider)==null?void 0:n.bottomToTop)!=null?h:!1}set keyboardDisabled(n){!this.slider||(this.slider.keyboardDisabled=n)}get keyboardDisabled(){var n,h;return(h=(n=this.slider)==null?void 0:n.keyboardDisabled)!=null?h:!1}set mousewheelDisabled(n){!this.slider||(this.slider.mousewheelDisabled=n)}get mousewheelDisabled(){var n,h;return(h=(n=this.slider)==null?void 0:n.mousewheelDisabled)!=null?h:!1}set animateOnClick(n){!this.slider||(this.slider.animateOnClick=n)}get animateOnClick(){var n;return(n=this.slider)==null?void 0:n.animateOnClick}get rangeDragging(){var n,h;return(h=(n=this.slider)==null?void 0:n.rangeDragging)!=null?h:!1}set rangeDragging(n){this.slider&&(this.slider.rangeDragging=pe(n))}get externalCSSList(){return this._externalCSSList}addPointer(n){var h;if(!this.slider)return;let f=(h=this.slider)==null?void 0:h.addPointer(n);fi(this,this.slider,f,`value${f+1}`,`ariaLabel${f+1}`,`pointerShape${f+1}`,`pointer${f+1}Disabled`)}removePointer(){var n;!this.slider||(n=this.slider)==null||n.removePointer()}addCSS(n){if(!this.shadowRoot)return;let h=document.createElement("style");h.textContent=n,this.shadowRoot.appendChild(h)}connectedCallback(){var n,h;if(!this.shadowRoot)return;this._externalCSSList=In(this),this.shadowRoot.innerHTML=i(o,this._externalCSSList);let f=(n=this.shadowRoot)==null?void 0:n.querySelector(".pointer");if(!f)return;let p=(h=this.shadowRoot)==null?void 0:h.getElementById("range-slider");if(!p)return;let x=Fn(this,f);this.slider=Bn(this,p,x),Un(this,this.slider),this._observer=new MutationObserver(O=>{O.forEach(N=>{var w;if(!this.slider||N.type!=="attributes")return;let A=N.attributeName;!A||zn(this.slider,A,(w=this.getAttribute(A))!=null?w:"")})}),this._observer.observe(this,{attributes:!0})}disconnectedCallback(){this._observer&&this._observer.disconnect(),this.slider&&this.slider.destroy()}},ns=Wn;window.tcRangeSlider=ns,customElements.get("toolcool-range-slider")||customElements.define("toolcool-range-slider",ns),customElements.get("tc-range-slider")||customElements.define("tc-range-slider",class extends ns{})})();var hi={exports:{}};(function(r,e){(function(t,s){r.exports=s()})(dt,function(){var t=1e3,s=6e4,i=36e5,o="millisecond",a="second",c="minute",u="hour",d="day",v="week",m="month",$="quarter",E="year",P="date",G="Invalid Date",ye=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ae=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,be={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var y=["th","st","nd","rd"],b=D%100;return"["+D+(y[(b-20)%10]||y[b]||y[0])+"]"}},me=function(D,y,b){var k=String(D);return!k||k.length>=y?D:""+Array(y+1-k.length).join(b)+D},Se={s:me,z:function(D){var y=-D.utcOffset(),b=Math.abs(y),k=Math.floor(b/60),_=b%60;return(y<=0?"+":"-")+me(k,2,"0")+":"+me(_,2,"0")},m:function D(y,b){if(y.date()<b.date())return-D(b,y);var k=12*(b.year()-y.year())+(b.month()-y.month()),_=y.clone().add(k,m),I=b-_<0,R=y.clone().add(k+(I?-1:1),m);return+(-(k+(b-_)/(I?_-R:R-_))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:m,y:E,w:v,d,D:P,h:u,m:c,s:a,ms:o,Q:$}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},$e="en",U={};U[$e]=be;var X=function(D){return D instanceof De},re=function D(y,b,k){var _;if(!y)return $e;if(typeof y=="string"){var I=y.toLowerCase();U[I]&&(_=I),b&&(U[I]=b,_=I);var R=y.split("-");if(!_&&R.length>1)return D(R[0])}else{var V=y.name;U[V]=y,_=V}return!k&&_&&($e=_),_||!k&&$e},z=function(D,y){if(X(D))return D.clone();var b=typeof y=="object"?y:{};return b.date=D,b.args=arguments,new De(b)},B=Se;B.l=re,B.i=X,B.w=function(D,y){return z(D,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var De=function(){function D(b){this.$L=re(b.locale,null,!0),this.parse(b)}var y=D.prototype;return y.parse=function(b){this.$d=function(k){var _=k.date,I=k.utc;if(_===null)return new Date(NaN);if(B.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var R=_.match(ye);if(R){var V=R[2]-1||0,se=(R[7]||"0").substring(0,3);return I?new Date(Date.UTC(R[1],V,R[3]||1,R[4]||0,R[5]||0,R[6]||0,se)):new Date(R[1],V,R[3]||1,R[4]||0,R[5]||0,R[6]||0,se)}}return new Date(_)}(b),this.$x=b.x||{},this.init()},y.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},y.$utils=function(){return B},y.isValid=function(){return this.$d.toString()!==G},y.isSame=function(b,k){var _=z(b);return this.startOf(k)<=_&&_<=this.endOf(k)},y.isAfter=function(b,k){return z(b)<this.startOf(k)},y.isBefore=function(b,k){return this.endOf(k)<z(b)},y.$g=function(b,k,_){return B.u(b)?this[k]:this.set(_,b)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(b,k){var _=this,I=!!B.u(k)||k,R=B.p(b),V=function(Re,te){var K=B.w(_.$u?Date.UTC(_.$y,te,Re):new Date(_.$y,te,Re),_);return I?K:K.endOf(d)},se=function(Re,te){return B.w(_.toDate()[Re].apply(_.toDate("s"),(I?[0,0,0,0]:[23,59,59,999]).slice(te)),_)},ee=this.$W,ce=this.$M,Oe=this.$D,Ce="set"+(this.$u?"UTC":"");switch(R){case E:return I?V(1,0):V(31,11);case m:return I?V(1,ce):V(0,ce+1);case v:var de=this.$locale().weekStart||0,Ee=(ee<de?ee+7:ee)-de;return V(I?Oe-Ee:Oe+(6-Ee),ce);case d:case P:return se(Ce+"Hours",0);case u:return se(Ce+"Minutes",1);case c:return se(Ce+"Seconds",2);case a:return se(Ce+"Milliseconds",3);default:return this.clone()}},y.endOf=function(b){return this.startOf(b,!1)},y.$set=function(b,k){var _,I=B.p(b),R="set"+(this.$u?"UTC":""),V=(_={},_[d]=R+"Date",_[P]=R+"Date",_[m]=R+"Month",_[E]=R+"FullYear",_[u]=R+"Hours",_[c]=R+"Minutes",_[a]=R+"Seconds",_[o]=R+"Milliseconds",_)[I],se=I===d?this.$D+(k-this.$W):k;if(I===m||I===E){var ee=this.clone().set(P,1);ee.$d[V](se),ee.init(),this.$d=ee.set(P,Math.min(this.$D,ee.daysInMonth())).$d}else V&&this.$d[V](se);return this.init(),this},y.set=function(b,k){return this.clone().$set(b,k)},y.get=function(b){return this[B.p(b)]()},y.add=function(b,k){var _,I=this;b=Number(b);var R=B.p(k),V=function(ce){var Oe=z(I);return B.w(Oe.date(Oe.date()+Math.round(ce*b)),I)};if(R===m)return this.set(m,this.$M+b);if(R===E)return this.set(E,this.$y+b);if(R===d)return V(1);if(R===v)return V(7);var se=(_={},_[c]=s,_[u]=i,_[a]=t,_)[R]||1,ee=this.$d.getTime()+b*se;return B.w(ee,this)},y.subtract=function(b,k){return this.add(-1*b,k)},y.format=function(b){var k=this,_=this.$locale();if(!this.isValid())return _.invalidDate||G;var I=b||"YYYY-MM-DDTHH:mm:ssZ",R=B.z(this),V=this.$H,se=this.$m,ee=this.$M,ce=_.weekdays,Oe=_.months,Ce=function(te,K,et,tt){return te&&(te[K]||te(k,I))||et[K].slice(0,tt)},de=function(te){return B.s(V%12||12,te,"0")},Ee=_.meridiem||function(te,K,et){var tt=te<12?"AM":"PM";return et?tt.toLowerCase():tt},Re={YY:String(this.$y).slice(-2),YYYY:B.s(this.$y,4,"0"),M:ee+1,MM:B.s(ee+1,2,"0"),MMM:Ce(_.monthsShort,ee,Oe,3),MMMM:Ce(Oe,ee),D:this.$D,DD:B.s(this.$D,2,"0"),d:String(this.$W),dd:Ce(_.weekdaysMin,this.$W,ce,2),ddd:Ce(_.weekdaysShort,this.$W,ce,3),dddd:ce[this.$W],H:String(V),HH:B.s(V,2,"0"),h:de(1),hh:de(2),a:Ee(V,se,!0),A:Ee(V,se,!1),m:String(se),mm:B.s(se,2,"0"),s:String(this.$s),ss:B.s(this.$s,2,"0"),SSS:B.s(this.$ms,3,"0"),Z:R};return I.replace(ae,function(te,K){return K||Re[te]||R.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(b,k,_){var I,R=B.p(k),V=z(b),se=(V.utcOffset()-this.utcOffset())*s,ee=this-V,ce=B.m(this,V);return ce=(I={},I[E]=ce/12,I[m]=ce,I[$]=ce/3,I[v]=(ee-se)/6048e5,I[d]=(ee-se)/864e5,I[u]=ee/i,I[c]=ee/s,I[a]=ee/t,I)[R]||ee,_?ce:B.a(ce)},y.daysInMonth=function(){return this.endOf(m).$D},y.$locale=function(){return U[this.$L]},y.locale=function(b,k){if(!b)return this.$L;var _=this.clone(),I=re(b,k,!0);return I&&(_.$L=I),_},y.clone=function(){return B.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},D}(),ke=De.prototype;return z.prototype=ke,[["$ms",o],["$s",a],["$m",c],["$H",u],["$W",d],["$M",m],["$y",E],["$D",P]].forEach(function(D){ke[D[1]]=function(y){return this.$g(y,D[0],D[1])}}),z.extend=function(D,y){return D.$i||(D(y,De,z),D.$i=!0),z},z.locale=re,z.isDayjs=X,z.unix=function(D){return z(1e3*D)},z.en=U[$e],z.Ls=U,z.p={},z})})(hi);var sn=hi.exports;const wt=oi(sn);class rn extends ct{constructor(){super(...arguments),this.templates={},this._renderedTemplates={}}setBindingSyntax(e,t){this._startExpression=e,this._endExpression=t;const s=this.escapeRegex(this._startExpression),i=this.escapeRegex(this._endExpression);this._expression=new RegExp(`${s}\\s*([$\\w\\.,'"\\s()\\[\\]]+)\\s*${i}`,"g")}hasTemplate(e){return this.templates&&!!this.templates[e]}renderTemplate(e,t,s){if(!this.hasTemplate(e))return null;s=s||e;const i=ge` <slot name=${s}></slot> `,o={[e]:{...t}};if(this._renderedTemplates.hasOwnProperty(s)){const{slot:c}=this._renderedTemplates[s];this.removeChild(c)}const a=document.createElement("div");return a.slot=s,a.dataset.generated="template",this._renderTemplate(a,this.templates[e],o),this.appendChild(a),this._renderedTemplates[s]={context:o,slot:a},i}getTemplates(){const e={};for(let t=0;t<this.children.length;t++){const s=this.children[t];if(s.nodeName==="TEMPLATE"){const i=s;i.dataset.type?e[i.dataset.type]=i:e.default=i,i.templateOrder=t}}return e}_renderTemplate(e,t,s){let i;if(t.content&&t.content.childNodes.length){const o=t.content.cloneNode(!0);i=this.renderNode(o,e,s)}i&&e.appendChild(i)}expandExpressionsAsString(e,t){return e.replace(this.expression,(s,i)=>{const o=this.evalInContext(i||this.trimExpression(s),t);return o?typeof o=="object"?JSON.stringify(o):o.toString():""})}get expression(){return this._expression||this.setBindingSyntax("{{","}}"),this._expression}escapeRegex(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}evalInContext(e,t){t={...t};const s=new Function("with(this) { return "+e+";}");let i;try{i=s.call(t)}catch{}return i}trimExpression(e){return e=e.trim(),e.startsWith(this._startExpression)&&e.endsWith(this._endExpression)&&(e=e.substr(this._startExpression.length,e.length-this._startExpression.length-this._endExpression.length),e=e.trim()),e}renderNode(e,t,s){if(e.nodeName==="#text")return e.textContent=this.expandExpressionsAsString(e.textContent,s),e;if(e.nodeName==="TEMPLATE")return e.$parentTemplateContext=s,e;for(let i=0;i<e.childNodes.length;i++){const o=e.childNodes[i];this.renderNode(o,t,s)}return e}updated(){this.templates=this.getTemplates()}}const nn=(r,e="highlight",t="title")=>{const s=(o,a,c)=>{const u=a.split(".");let d;for(d=0;d<u.length-1;d++)o=o[u[d]];o[u[d]]=c},i=(o,a=[])=>{let c="",u=0;return a.forEach(d=>{const v=d[1]+1;c+=[o.substring(u,d[0]),`<mark class="${e}">`,o.substring(d[0],v),"</mark>"].join(""),u=v}),c+=o.substring(u),c};return r.filter(({matches:o})=>o&&o.length).map(({item:o,matches:a})=>{const c={...o};return a.forEach(u=>{u.key===t&&s(c,u.key,i(u.value,u.indices))}),c})},on=`
52
52
  :host {
53
53
  display: flex;
54
54
  box-sizing: border-box;
@@ -66,6 +66,9 @@ form {
66
66
  display: flex;
67
67
  flex-direction: column;
68
68
  }
69
+
70
+
71
+ `,ln=`
69
72
  ul {
70
73
  padding-left: 0;
71
74
  margin-top: 0;
@@ -104,22 +107,31 @@ details summary {
104
107
  .details-filter summary {
105
108
  justify-content: space-between;
106
109
  }
110
+ .details-filter summary span {
111
+ font-size: small;
112
+ font-weight: 900;
113
+ }
107
114
  #details-results summary {
108
115
  list-style: none;
109
116
  }
110
- .details-filter summary svg,
111
- #details-results summary svg {
117
+ #details-results summary>.title {
118
+ font-weight: 900;
119
+ }
120
+ .details-filter summary::after,
121
+ #details-results summary::before {
122
+ content: url("data:image/svg+xml,%3Csvg data-cy='expand-button' xmlns='http://www.w3.org/2000/svg' viewBox='6 6 12 12' %3E%3Ctitle%3Echevron-down%3C/title%3E%3Cpath d='M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z' /%3E%3C/svg%3E");
112
123
  width: 14px;
113
124
  height: 14px;
125
+ margin-right: 4px;
114
126
  transition: all ease-in-out 0.3s;
115
127
  }
116
- #details-results summary svg {
128
+ #details-results summary::before {
117
129
  transform: rotate(-90deg);
118
130
  }
119
- .details-filter[open] summary svg {
131
+ .details-filter[open] summary::after {
120
132
  transform: rotate(180deg);
121
133
  }
122
- #details-results[open] summary svg {
134
+ #details-results[open] summary::before {
123
135
  transform: rotate(0deg);
124
136
  }
125
137
  .details-filter li span,
@@ -167,6 +179,7 @@ ul#results li {
167
179
  }
168
180
  #filter-reset {
169
181
  cursor: pointer;
182
+ font-size: small;
170
183
  }
171
184
  section.inline,
172
185
  section.inline > ul {
@@ -192,12 +205,13 @@ section.inline details.details-filter summary {
192
205
  overflow-x: hidden;
193
206
  overflow-y: auto;
194
207
  }
195
- `;var Ds=Object.defineProperty,zs=Object.getOwnPropertyDescriptor,z=(i,t,e,s)=>{for(var n=s>1?void 0:s?zs(t,e):t,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=(s?o(t,e,n):o(n))||n);return s&&n&&Ds(t,e,n),n};class pe{constructor(){_(this,"aggregateResults");_(this,"enableHighlighting",!1);_(this,"enableSearch",!1);_(this,"exclusiveFilters",!1);_(this,"externalSearch");_(this,"filterProperties",[]);_(this,"fuseConfig",{keys:["title"]});_(this,"inlineMode",!1);_(this,"matchAllWhenEmpty",!0);_(this,"onSearch",()=>{});_(this,"onSelect",()=>{});_(this,"showResults",!0);_(this,"titleProperty","title")}}v.EOxItemFilter=class extends tt{constructor(){super(...arguments);_(this,"_fuse");_(this,"_resultAggregation",[]);_(this,"_items",[]);_(this,"_results");_(this,"_filters",{});_(this,"_selectedResult");_(this,"_config",new pe);_(this,"apply",e=>{this._items=e.map((s,n)=>({...s,id:`item-${n}`})),this._fuse=new K(this._items,{threshold:.4,distance:50,includeMatches:!0,useExtendedSearch:!0,...this._config.fuseConfig}),this._config.filterProperties.length&&this._config.filterProperties.forEach(s=>{const n={};this._items.forEach(r=>{Array.isArray(r[s.key])?r[s.key].forEach(o=>{n[o]=void 0}):n[r[s.key]]=void 0}),this._filters[s.key]=n}),this._config.matchAllWhenEmpty!==!1&&(this._results=this.sortResults(this._items),this.requestUpdate()),this._config.aggregateResults&&(this._resultAggregation=[...new Set(this._items.reduce((s,n)=>s.concat(n[this._config.aggregateResults]),[]))].sort((s,n)=>s.localeCompare(n)))});_(this,"inputHandler",()=>{this.search(this.renderRoot.querySelector("input[type='text']").value)});_(this,"debouncedInputHandler",Hs(this.inputHandler,500,{leading:!0}))}set config(e){const s=this._config;this._config={...new pe,...e},this.requestUpdate("config",s)}get config(){return this._config}async search(e="",s=this._filters){const n=Object.entries(s).reduce((o,[c,l])=>{const a="$or",u=[],h=d=>{const p={};p[c]=`="${d}"`,u.push(p)};return Object.entries(l).filter(([d,p])=>p).forEach(([d,p])=>h(d)),u.length>0&&o.push({[a]:u}),o},[]);let r;if(!(e.length>0)&&!n.length&&this._config.matchAllWhenEmpty!==!1)r=this._items;else if(this.config.externalSearch)r=(await(await fetch(`${this.config.externalSearch(e,s)}`)).json()).features;else{const o={$and:[...e.length>0?[{$or:[...this._config.fuseConfig.keys.map(l=>({[l]:e}))]}]:[],...n]},c=this._fuse.search(o);r=this._config.enableHighlighting?Us(c,"highlight",this._config.titleProperty):c.map(l=>l.item)}this._results=this.sortResults(r),this._config.onSearch(r),this.requestUpdate()}aggregateResults(e,s){return e.filter(n=>{const r=n[this._config.aggregateResults],o=Object.keys(this._filters[this._config.aggregateResults]).filter(l=>this._filters[this._config.aggregateResults][l]);return(o.length?o.includes(s):!0)&&Array.isArray(r)?r.includes(s):r===s})}sortResults(e){return[...e].sort((s,n)=>s[this._config.titleProperty].localeCompare(n[this._config.titleProperty]))}toggleFilter(e,s,n){n&&Object.keys(this._filters).forEach(c=>{this._config.filterProperties.find(l=>l.key===c).exclusive&&Object.keys(this._filters[c]).forEach(l=>{this._filters[c][l]=!1})}),this._filters[e][s]=!this._filters[e][s];const r=this.renderRoot.querySelector('input[type="text"]');r?this.search(r.value):this.search();const o=this.renderRoot.querySelectorAll("ul#results input[type='radio']");for(let c=0;c<o.length;c++)o[c].checked=!1;this._selectedResult&&setTimeout(()=>{const c=this.renderRoot.querySelector(`#${this._selectedResult.id}`);c&&(c.checked=!0,this.requestUpdate())})}resetFilters(){this.renderRoot.querySelectorAll(".details-filter input").forEach(s=>{s.checked=!1});const e=this.renderRoot.querySelector('input[type="text"]');e&&(e.value=""),Object.keys(this._filters).forEach(s=>{Object.keys(this._filters[s]).forEach(n=>{this._filters[s][n]=!1})}),this.search(),this.requestUpdate()}render(){return w`
208
+ `;var an=Object.defineProperty,hn=Object.getOwnPropertyDescriptor,Fe=(r,e,t,s)=>{for(var i=s>1?void 0:s?hn(e,t):e,o=r.length-1,a;o>=0;o--)(a=r[o])&&(i=(s?a(e,t,i):a(i))||i);return s&&i&&an(e,t,i),i};class ci{constructor(){Z(this,"aggregateResults");Z(this,"enableHighlighting",!1);Z(this,"enableSearch",!1);Z(this,"exclusiveFilters",!1);Z(this,"externalSearch");Z(this,"filterProperties",[]);Z(this,"fuseConfig",{keys:["title"]});Z(this,"inlineMode",!1);Z(this,"matchAllWhenEmpty",!0);Z(this,"onSearch",()=>{});Z(this,"onSelect",()=>{});Z(this,"showResults",!0);Z(this,"titleProperty","title")}}ie.EOxItemFilter=class extends rn{constructor(){super(...arguments);Z(this,"_fuse");Z(this,"_resultAggregation",[]);Z(this,"_items",[]);Z(this,"_results");Z(this,"_filters",{});Z(this,"_selectedResult");Z(this,"_config",new ci);Z(this,"apply",t=>{this._items=t.map((s,i)=>({id:`item-${i}`,...s})),this._fuse=new Qe(this._items,{threshold:.4,distance:50,includeMatches:!0,useExtendedSearch:!0,...this._config.fuseConfig}),this._config.filterProperties.length&&this._config.filterProperties.forEach(s=>{const i={},o=a=>s.format==="date"?wt(a).unix():parseInt(a);this._items.forEach(a=>{if(s.type==="range"){if(Array.isArray(a[s.key])){const c=[o(a[s.key][0]),o(a[s.key][1])];i.min=i.min!==void 0?Math.min(i.min,c[0]):c[0],i.max=i.max!==void 0?Math.max(i.max,c[1]):c[1]}else{const c=o(a[s.key]);i.min=i.min!==void 0?Math.min(i.min,c):c,i.max=i.max!==void 0?Math.max(i.max,c):c}return}Array.isArray(a[s.key])?a[s.key].forEach(c=>{i[c]=void 0}):i[a[s.key]]=void 0}),this._filters[s.key]={type:s.type||"string",keys:i,...s.type==="range"&&{min:i.min,max:i.max,format:s.format}}}),this._config.matchAllWhenEmpty!==!1&&(this._results=this.sortResults(this._items),this.requestUpdate()),this._config.aggregateResults&&(this._resultAggregation=[...new Set(this._items.reduce((s,i)=>s.concat(i[this._config.aggregateResults]),[]))].sort((s,i)=>s.localeCompare(i)))});Z(this,"unstyled");Z(this,"inputHandler",()=>{this.search(this.renderRoot.querySelector("input[type='text']").value)});Z(this,"debouncedInputHandler",tn(this.inputHandler,500,{leading:!0}))}set config(t){const s=this._config;this._config={...new ci,...t},this.requestUpdate("config",s)}get config(){return this._config}async search(t="",s=this._filters){const i=Object.entries(s).filter(([c,u])=>u.type==="string").reduce((c,[u,d])=>{const v="$or",m=[],$=E=>{const P={};P[u]=`="${E}"`,m.push(P)};return Object.entries(d.keys).filter(([E,P])=>P).forEach(([E,P])=>$(E)),m.length>0&&c.push({[v]:m}),c},[]);let o;if(!(t.length>0)&&!i.length&&this._config.matchAllWhenEmpty!==!1)o=this._items;else if(this.config.externalSearch)o=(await(await fetch(`${this.config.externalSearch(t,s)}`)).json()).features;else{const c={$and:[...t.length>0?[{$or:[...this._config.fuseConfig.keys.map(d=>({[d]:t}))]}]:[],...i]},u=this._fuse.search(c);o=this._config.enableHighlighting?nn(u,"highlight",this._config.titleProperty):u.map(d=>d.item)}const a=Object.entries(this._filters).filter(([c,u])=>u.type==="range").reduce((c,[u,d])=>(c[u]={min:d.keys.min,max:d.keys.max,format:d.format},c),{});if(Object.keys(a).length>0){const c=[];for(let u=0;u<o.length;u++){const d={};for(let[v,m]of Object.entries(a)){const $=E=>m.format==="date"?wt(E).unix():E;o[u].hasOwnProperty(v)?Array.isArray(o[u][v])?d[v]=a[v].min<=$(o[u][v][1])&&$(o[u][v][0])<=a[v].max:$(o[u][v])>=a[v].min&&$(o[u][v])<=a[v].max?d[v]=!0:d[v]=!1:d[v]=!0}Object.values(d).every(v=>!!v)&&c.push(o[u])}o=[...c]}this._results=this.sortResults(o),this._config.onSearch(o),this.requestUpdate()}aggregateResults(t,s){return t.filter(i=>{const o=i[this._config.aggregateResults],a=Object.keys(this._filters[this._config.aggregateResults]).filter(u=>this._filters[this._config.aggregateResults].keys[u]);return(a.length?a.includes(s):!0)&&Array.isArray(o)?o.includes(s):o===s})}sortResults(t){return[...t].sort((s,i)=>s[this._config.titleProperty].localeCompare(i[this._config.titleProperty]))}toggleFilter(t,s,i){i&&Object.keys(this._filters).filter(c=>this._filters[c].type==="string").forEach(c=>{this._config.filterProperties.find(u=>u.key===c).exclusive&&Object.keys(this._filters[c].keys).forEach(u=>{this._filters[c].keys[u]=!1})}),this._filters[t].keys[s]=!this._filters[t].keys[s];const o=this.renderRoot.querySelector('input[type="text"]');o?this.search(o.value):this.search();const a=this.renderRoot.querySelectorAll("ul#results input[type='radio']");for(let c=0;c<a.length;c++)a[c].checked=!1;this._selectedResult&&setTimeout(()=>{const c=this.renderRoot.querySelector(`#${this._selectedResult.id}`);c&&(c.checked=!0,this.requestUpdate())})}resetFilters(){this.renderRoot.querySelectorAll(".details-filter input").forEach(s=>{s.checked=!1});const t=this.renderRoot.querySelector('input[type="text"]');t&&(t.value=""),Object.keys(this._filters).forEach(s=>{if(this._filters[s].type==="range"){this._filters[s].keys.min=this._filters[s].min,this._filters[s].keys.max=this._filters[s].max;return}Object.keys(this._filters[s].keys).forEach(i=>{this._filters[s].keys[i]=!1})}),this.search(),this.requestUpdate()}render(){return ge`
196
209
  <style>
197
- ${Fs}
210
+ ${on}
211
+ ${!this.unstyled&&ln}
198
212
  </style>
199
- <form @submit="${e=>e.preventDefault()}">
200
- ${et(this._config.enableSearch,()=>w`
213
+ <form @submit="${t=>t.preventDefault()}">
214
+ ${Ze(this._config.enableSearch,()=>ge`
201
215
  <section>
202
216
  <input
203
217
  type="text"
@@ -208,102 +222,94 @@ section.inline details.details-filter summary {
208
222
  />
209
223
  </section>
210
224
  `)}
211
- ${et(this._config.filterProperties.length,()=>w`
212
- <section class="${this.config.inlineMode?"inline":m}">
213
- ${et(!this.config.inlineMode,()=>w` <slot name="filterstitle"></slot> `)}
225
+ ${Ze(this._config.filterProperties.length,()=>ge`
226
+ <section class="${this.config.inlineMode?"inline":Q}">
227
+ ${Ze(!this.config.inlineMode,()=>ge` <slot name="filterstitle"></slot> `)}
214
228
  <ul id="filters">
215
- ${st(this._config.filterProperties,e=>w`
229
+ ${ut(this._config.filterProperties,t=>ge`
216
230
  <details
217
231
  class="details-filter"
218
232
  part="details-filter"
219
- data-filter="${e.key}"
233
+ data-filter="${t.key}"
220
234
  >
221
235
  <summary>
222
- <small>
223
- <strong
224
- class="title"
225
- style="${!e.title&&"text-transform: capitalize"}"
226
- >
227
- ${e.title||e.key}
228
- ${Object.values(this._filters[e.key]).filter(s=>s).length?`(${Object.values(this._filters[e.key]).filter(s=>s).length})`:m}
229
- </strong>
230
- </small>
231
- <div
232
- style="display: flex; align-items: center; justify-content: center; margin-left: 4px;"
236
+ <span
237
+ class="title"
238
+ style="${!t.title&&"text-transform: capitalize"}"
233
239
  >
234
- <svg
235
- data-cy="expand-button"
236
- xmlns="http://www.w3.org/2000/svg"
237
- viewBox="6 6 12 12"
238
- >
239
- <title>chevron-down</title>
240
- <path
241
- d="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"
242
- />
243
- </svg>
244
- </div>
240
+ ${t.title||t.key}
241
+ ${t.type==="string"&&Object.values(this._filters[t.key].keys).filter(s=>s).length?`(${Object.values(this._filters[t.key].keys).filter(s=>s).length})`:Q}
242
+ </span>
245
243
  </summary>
246
244
  <div class="scroll" style="max-height: 150px">
247
- <ul>
248
- ${this._filters[e.key]?st(Object.keys(this._filters[e.key]).sort((s,n)=>s.localeCompare(n)),s=>w`
249
- <li>
250
- <label>
251
- <input
252
- name="selection"
253
- type="${e.exclusive?"radio":"checkbox"}"
254
- checked="${this._filters[e.key][s]||m}"
255
- @click=${()=>this.toggleFilter(e.key,s,e.exclusive)}
256
- />
257
- <span class="title">${s}</span>
258
- </label>
259
- </li>
260
- `):null}
261
- </ul>
245
+ ${t.type==="range"?ge`
246
+ <div>
247
+ ${t.format==="date"?wt.unix(this._filters[t.key].keys.min):this._filters[t.key].keys.min}
248
+ </div>
249
+ <tc-range-slider
250
+ min="${this._filters[t.key].min}"
251
+ max="${this._filters[t.key].max}"
252
+ value1="${this._filters[t.key].keys.min}"
253
+ value2="${this._filters[t.key].keys.max}"
254
+ step="1"
255
+ @change="${s=>{[this._filters[t.key].keys.min,this._filters[t.key].keys.max]=s.detail.values,this.search(this.renderRoot.querySelector("input[type='text']").value)}}"
256
+ ></tc-range-slider>
257
+ <div>
258
+ ${t.format==="date"?wt.unix(this._filters[t.key].keys.max):this._filters[t.key].keys.max}
259
+ </div>
260
+ `:ge`
261
+ <ul>
262
+ ${this._filters[t.key]?ut(Object.keys(this._filters[t.key].keys).sort((s,i)=>s.localeCompare(i)),s=>ge`
263
+ <li>
264
+ <label>
265
+ <input
266
+ name="selection"
267
+ type="${t.exclusive?"radio":"checkbox"}"
268
+ checked="${this._filters[t.key].keys[s]||Q}"
269
+ @click=${()=>this.toggleFilter(t.key,s,t.exclusive)}
270
+ />
271
+ <span class="title">${s}</span>
272
+ </label>
273
+ </li>
274
+ `):null}
275
+ </ul>
276
+ `}
262
277
  </div>
263
278
  </details>
264
279
  `)}
265
280
  </ul>
266
- ${et(this._config.filterProperties,()=>w`
281
+ ${Ze(this._config.filterProperties,()=>ge`
267
282
  <a
268
283
  id="filter-reset"
269
284
  data-cy="filter-reset"
270
285
  @click=${()=>this.resetFilters()}
271
- ><small>Reset filters</small></a
286
+ >Reset filters</a
272
287
  >
273
288
  `)}
274
289
  </section>
275
290
  `)}
276
- ${et(this.config.showResults&&this._results,()=>w`
291
+ ${Ze(this.config.showResults&&this._results,()=>ge`
277
292
  <section id="section-results">
278
293
  <div>
279
294
  <slot name="resultstitle"></slot>
280
295
  </div>
281
296
  <div id="container-results" class="scroll">
282
- ${this._results.length<1?w` <small class="no-results">No matching items</small> `:m}
297
+ ${this._results.length<1?ge` <small class="no-results">No matching items</small> `:Q}
283
298
  <ul id="results" part="results">
284
- ${this._config.aggregateResults?st(this._resultAggregation.filter(e=>this.aggregateResults(this._results,e).length),e=>w`<details
299
+ ${this._config.aggregateResults?ut(this._resultAggregation.filter(t=>this.aggregateResults(this._results,t).length),t=>ge`<details
285
300
  id="details-results"
286
301
  open
287
302
  >
288
303
  <summary>
289
- <svg
290
- xmlns="http://www.w3.org/2000/svg"
291
- viewBox="0 0 24 24"
292
- >
293
- <title>chevron-down</title>
294
- <path
295
- d="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"
296
- />
297
- </svg>
298
- <strong class="title">
299
- ${e}
300
- </strong>
301
- <span style="margin-left: 0.25rem"
302
- >(${this.aggregateResults(this._results,e).length})</span
303
- >
304
+ <span class="title">
305
+ ${t}
306
+ <span class="count"
307
+ >(${this.aggregateResults(this._results,t).length})</span
308
+ >
309
+ </span>
304
310
  </summary>
305
311
  <ul>
306
- ${st(this.aggregateResults(this._results,e),s=>w`
312
+ ${ut(this.aggregateResults(this._results,t),s=>ge`
307
313
  <li>
308
314
  <label>
309
315
  <input
@@ -312,19 +318,21 @@ section.inline details.details-filter summary {
312
318
  id="${s.id}"
313
319
  @click=${()=>{this._selectedResult=s,this._config.onSelect(s)}}
314
320
  />
315
- <span class="title"
316
- >${Qt(s[this._config.titleProperty])}</span
317
- >
321
+ ${Ze(this.hasTemplate("result"),()=>this.renderTemplate("result",s,`result-${s.id}`),()=>ge`
322
+ <span class="title"
323
+ >${Vs(s[this._config.titleProperty])}</span
324
+ >
325
+ `)}
318
326
  </label>
319
327
  </li>
320
328
  `)}
321
329
  </ul>
322
- </details>`):st(this._results,e=>w`<li part="result">
323
- ${Qt(e[this._config.titleProperty])}
330
+ </details>`):ut(this._results,t=>ge`<li part="result">
331
+ ${Vs(t[this._config.titleProperty])}
324
332
  </li>`)}
325
333
  </ul>
326
334
  </div>
327
335
  </section>
328
336
  `)}
329
337
  </form>
330
- `}},z([lt()],v.EOxItemFilter.prototype,"_items",2),z([lt()],v.EOxItemFilter.prototype,"_results",2),z([lt()],v.EOxItemFilter.prototype,"_filters",2),z([lt()],v.EOxItemFilter.prototype,"_selectedResult",2),z([vt({attribute:!1})],v.EOxItemFilter.prototype,"config",1),z([vt()],v.EOxItemFilter.prototype,"apply",2),v.EOxItemFilter=z([ke("eox-itemfilter")],v.EOxItemFilter),Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
338
+ `}},Fe([$t()],ie.EOxItemFilter.prototype,"_items",2),Fe([$t()],ie.EOxItemFilter.prototype,"_results",2),Fe([$t()],ie.EOxItemFilter.prototype,"_filters",2),Fe([$t()],ie.EOxItemFilter.prototype,"_selectedResult",2),Fe([bt({attribute:!1})],ie.EOxItemFilter.prototype,"config",1),Fe([bt()],ie.EOxItemFilter.prototype,"apply",2),Fe([bt({type:Boolean})],ie.EOxItemFilter.prototype,"unstyled",2),ie.EOxItemFilter=Fe([Xi("eox-itemfilter")],ie.EOxItemFilter),Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})});