@eox/itemfilter 0.5.1 → 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.
- package/dist/eox-itemfilter.js +1367 -1246
- package/dist/eox-itemfilter.umd.cjs +70 -80
- package/package.json +1 -1
- package/test/general.html +6 -0
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
(function(
|
|
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 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=
|
|
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
|
|
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
|
|
14
|
-
\f\r]`,
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Hs=/'/g,Fs=/"/g,Us=/^(?:script|style|textarea|title)$/i,Fi=
|
|
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
|
|
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 Xi=
|
|
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
|
|
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
|
|
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
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
* @license
|
|
37
37
|
* Copyright 2021 Google LLC
|
|
38
38
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
39
|
-
*/function
|
|
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*ut(
|
|
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 Zi={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Qi=
|
|
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 Yt extends er{constructor(e){if(super(e),this.et=Z,e.type!==Zi.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Z||e==null)return this.ft=void 0,this.et=e;if(e===ze)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(i){return Array.isArray?Array.isArray(i):qs(i)==="[object Array]"}const tr=1/0;function sr(i){if(typeof i=="string")return i;let e=i+"";return e=="0"&&1/i==-tr?"-0":e}function ir(i){return i==null?"":sr(i)}function De(i){return typeof i=="string"}function Ys(i){return typeof i=="number"}function rr(i){return i===!0||i===!1||nr(i)&&qs(i)=="[object Boolean]"}function Ks(i){return typeof i=="object"}function nr(i){return Ks(i)&&i!==null}function Ae(i){return i!=null}function Kt(i){return!i.trim().length}function qs(i){return i==null?i===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(i)}const oo="Extended search is not available",or="Incorrect 'index' type",lr=i=>`Invalid value for key ${i}`,ar=i=>`Pattern length exceeds max of ${i}.`,cr=i=>`Missing ${i} property in key`,hr=i=>`Property 'weight' in key '${i}' must be a positive integer`,Xs=Object.prototype.hasOwnProperty;class ur{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(s=>{let r=Gs(s);t+=r.weight,this._keys.push(r),this._keyMap[r.id]=r,t+=r.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 Gs(i){let e=null,t=null,s=null,r=1,o=null;if(De(i)||Ne(i))s=i,e=Js(i),t=qt(i);else{if(!Xs.call(i,"name"))throw new Error(cr("name"));const c=i.name;if(s=c,Xs.call(i,"weight")&&(r=i.weight,r<=0))throw new Error(hr(c));e=Js(c),t=qt(c),o=i.getFn}return{path:e,id:t,weight:r,src:s,getFn:o}}function Js(i){return Ne(i)?i:i.split(".")}function qt(i){return Ne(i)?i.join("."):i}function dr(i,e){let t=[],s=!1;const r=(o,c,h)=>{if(Ae(o))if(!c[h])t.push(o);else{let u=c[h];const d=o[u];if(!Ae(d))return;if(h===c.length-1&&(De(d)||Ys(d)||rr(d)))t.push(ir(d));else if(Ne(d)){s=!0;for(let m=0,v=d.length;m<v;m+=1)r(d[m],c,h+1)}else c.length&&r(d,c,h+1)}};return r(i,De(e)?e.split("."):e,0),s?t:t[0]}var D={...{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(i,e)=>i.score===e.score?i.idx<e.idx?-1:1:i.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(i=1,e=3){const t=new Map,s=Math.pow(10,e);return{get(r){const o=r.match(pr).length;if(t.has(o))return t.get(o);const c=1/Math.pow(o,.5*i),h=parseFloat(Math.round(c*s)/s);return t.set(o,h),h},clear(){t.clear()}}}class Xt{constructor({getFn:e=D.getFn,fieldNormWeight:t=D.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,De(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();De(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((r,o)=>{let c=r.getFn?r.getFn(e):this.getFn(e,r.path);if(Ae(c)){if(Ne(c)){let h=[];const u=[{nestedArrIndex:-1,value:c}];for(;u.length;){const{nestedArrIndex:d,value:m}=u.pop();if(Ae(m))if(De(m)&&!Kt(m)){let v={v:m,i:d,n:this.norm.get(m)};h.push(v)}else Ne(m)&&m.forEach((v,$)=>{u.push({nestedArrIndex:$,value:v})})}s.$[o]=h}else if(De(c)&&!Kt(c)){let h={v:c,n:this.norm.get(c)};s.$[o]=h}}}),this.records.push(s)}toJSON(){return{keys:this.keys,records:this.records}}}function Zs(i,e,{getFn:t=D.getFn,fieldNormWeight:s=D.fieldNormWeight}={}){const r=new Xt({getFn:t,fieldNormWeight:s});return r.setKeys(i.map(Gs)),r.setSources(e),r.create(),r}function gr(i,{getFn:e=D.getFn,fieldNormWeight:t=D.fieldNormWeight}={}){const{keys:s,records:r}=i,o=new Xt({getFn:e,fieldNormWeight:t});return o.setKeys(s),o.setIndexRecords(r),o}function $t(i,{errors:e=0,currentLocation:t=0,expectedLocation:s=0,distance:r=D.distance,ignoreLocation:o=D.ignoreLocation}={}){const c=e/i.length;if(o)return c;const h=Math.abs(s-t);return r?c+h/r:h?1:c}function vr(i=[],e=D.minMatchCharLength){let t=[],s=-1,r=-1,o=0;for(let c=i.length;o<c;o+=1){let h=i[o];h&&s===-1?s=o:!h&&s!==-1&&(r=o-1,r-s+1>=e&&t.push([s,r]),s=-1)}return i[o-1]&&o-s>=e&&t.push([s,o-1]),t}const Ve=32;function mr(i,e,t,{location:s=D.location,distance:r=D.distance,threshold:o=D.threshold,findAllMatches:c=D.findAllMatches,minMatchCharLength:h=D.minMatchCharLength,includeMatches:u=D.includeMatches,ignoreLocation:d=D.ignoreLocation}={}){if(e.length>Ve)throw new Error(ar(Ve));const m=e.length,v=i.length,$=Math.max(0,Math.min(s,v));let M=o,P=$;const J=h>1||u,me=J?Array(v):[];let ae;for(;(ae=i.indexOf(e,P))>-1;){let X=$t(e,{currentLocation:ae,expectedLocation:$,distance:r,ignoreLocation:d});if(M=Math.min(X,M),P=ae+m,J){let ie=0;for(;ie<m;)me[ae+ie]=1,ie+=1}}P=-1;let be=[],ge=1,Ee=m+v;const $e=1<<m-1;for(let X=0;X<m;X+=1){let ie=0,z=Ee;for(;ie<z;)$t(e,{errors:X,currentLocation:$+z,expectedLocation:$,distance:r,ignoreLocation:d})<=M?ie=z:Ee=z,z=Math.floor((Ee-ie)/2+ie);Ee=z;let B=Math.max(1,$-z+1),Te=c?v:Math.min($+z,v)+m,ke=Array(Te+2);ke[Te+1]=(1<<X)-1;for(let y=Te;y>=B;y-=1){let b=y-1,k=t[i.charAt(b)];if(J&&(me[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&&(ge=$t(e,{errors:X,currentLocation:b,expectedLocation:$,distance:r,ignoreLocation:d}),ge<=M)){if(M=ge,P=b,P<=$)break;B=Math.max(1,2*$-P)}}if($t(e,{errors:X+1,currentLocation:$,expectedLocation:$,distance:r,ignoreLocation:d})>M)break;be=ke}const U={isMatch:P>=0,score:Math.max(.001,ge)};if(J){const X=vr(me,h);X.length?u&&(U.indices=X):U.isMatch=!1}return U}function yr(i){let e={};for(let t=0,s=i.length;t<s;t+=1){const r=i.charAt(t);e[r]=(e[r]||0)|1<<s-t-1}return e}class Qs{constructor(e,{location:t=D.location,threshold:s=D.threshold,distance:r=D.distance,includeMatches:o=D.includeMatches,findAllMatches:c=D.findAllMatches,minMatchCharLength:h=D.minMatchCharLength,isCaseSensitive:u=D.isCaseSensitive,ignoreLocation:d=D.ignoreLocation}={}){if(this.options={location:t,threshold:s,distance:r,includeMatches:o,findAllMatches:c,minMatchCharLength:h,isCaseSensitive:u,ignoreLocation:d},this.pattern=u?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const m=($,M)=>{this.chunks.push({pattern:$,alphabet:yr($),startIndex:M})},v=this.pattern.length;if(v>Ve){let $=0;const M=v%Ve,P=v-M;for(;$<P;)m(this.pattern.substr($,Ve),$),$+=Ve;if(M){const J=v-Ve;m(this.pattern.substr(J),J)}}else m(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:r,distance:o,threshold:c,findAllMatches:h,minMatchCharLength:u,ignoreLocation:d}=this.options;let m=[],v=0,$=!1;this.chunks.forEach(({pattern:P,alphabet:J,startIndex:me})=>{const{isMatch:ae,score:be,indices:ge}=mr(e,P,J,{location:r+me,distance:o,threshold:c,findAllMatches:h,minMatchCharLength:u,includeMatches:s,ignoreLocation:d});ae&&($=!0),v+=be,ae&&ge&&(m=[...m,...ge])});let M={isMatch:$,score:$?v/this.chunks.length:1};return $&&s&&(M.indices=m),M}}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(i,e){const t=i.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=D.location,threshold:s=D.threshold,distance:r=D.distance,includeMatches:o=D.includeMatches,findAllMatches:c=D.findAllMatches,minMatchCharLength:h=D.minMatchCharLength,isCaseSensitive:u=D.isCaseSensitive,ignoreLocation:d=D.ignoreLocation}={}){super(e),this._bitapSearch=new Qs(e,{location:t,threshold:s,distance:r,includeMatches:o,findAllMatches:c,minMatchCharLength:h,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 r=[],o=this.pattern.length;for(;(s=e.indexOf(this.pattern,t))>-1;)t=s+o,r.push([s,t-1]);const c=!!r.length;return{isMatch:c,score:c?0:1,indices:r}}}const Gt=[br,si,_r,xr,Ar,wr,$r,ti],ii=Gt.length,Mr=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Sr="|";function Er(i,e={}){return i.split(Sr).map(t=>{let s=t.trim().split(Mr).filter(o=>o&&!!o.trim()),r=[];for(let o=0,c=s.length;o<c;o+=1){const h=s[o];let u=!1,d=-1;for(;!u&&++d<ii;){const m=Gt[d];let v=m.isMultiMatch(h);v&&(r.push(new m(v,e)),u=!0)}if(!u)for(d=-1;++d<ii;){const m=Gt[d];let v=m.isSingleMatch(h);if(v){r.push(new m(v,e));break}}}return r})}const kr=new Set([ti.type,si.type]);class Or{constructor(e,{isCaseSensitive:t=D.isCaseSensitive,includeMatches:s=D.includeMatches,minMatchCharLength:r=D.minMatchCharLength,ignoreLocation:o=D.ignoreLocation,findAllMatches:c=D.findAllMatches,location:h=D.location,threshold:u=D.threshold,distance:d=D.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:s,minMatchCharLength:r,findAllMatches:c,ignoreLocation:o,location:h,threshold:u,distance:d},this.pattern=t?e:e.toLowerCase(),this.query=Er(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:r}=this.options;e=r?e:e.toLowerCase();let o=0,c=[],h=0;for(let u=0,d=t.length;u<d;u+=1){const m=t[u];c.length=0,o=0;for(let v=0,$=m.length;v<$;v+=1){const M=m[v],{isMatch:P,indices:J,score:me}=M.search(e);if(P){if(o+=1,h+=me,s){const ae=M.constructor.type;kr.has(ae)?c=[...c,...J]:c.push(J)}}else{h=0,o=0,c.length=0;break}}if(o){let v={isMatch:!0,score:h/o};return s&&(v.indices=c),v}}return{isMatch:!1,score:1}}}const Jt=[];function Lr(...i){Jt.push(...i)}function Zt(i,e){for(let t=0,s=Jt.length;t<s;t+=1){let r=Jt[t];if(r.condition(i,e))return new r(i,e)}return new Qs(i,e)}const _t={AND:"$and",OR:"$or"},Qt={PATH:"$path",PATTERN:"$val"},es=i=>!!(i[_t.AND]||i[_t.OR]),Cr=i=>!!i[Qt.PATH],Dr=i=>!Ne(i)&&Ks(i)&&!es(i),ri=i=>({[_t.AND]:Object.keys(i).map(e=>({[e]:i[e]}))});function ni(i,e,{auto:t=!0}={}){const s=r=>{let o=Object.keys(r);const c=Cr(r);if(!c&&o.length>1&&!es(r))return s(ri(r));if(Dr(r)){const u=c?r[Qt.PATH]:o[0],d=c?r[Qt.PATTERN]:r[u];if(!De(d))throw new Error(lr(u));const m={keyId:qt(u),pattern:d};return t&&(m.searcher=Zt(d,e)),m}let h={children:[],operator:o[0]};return o.forEach(u=>{const d=r[u];Ne(d)&&d.forEach(m=>{h.children.push(s(m))})}),h};return es(i)||(i=ri(i)),s(i)}function Tr(i,{ignoreFieldNorm:e=D.ignoreFieldNorm}){i.forEach(t=>{let s=1;t.matches.forEach(({key:r,norm:o,score:c})=>{const h=r?r.weight:null;s*=Math.pow(c===0&&h?Number.EPSILON:c,(h||1)*(e?1:o))}),t.score=s})}function Rr(i,e){const t=i.matches;e.matches=[],Ae(t)&&t.forEach(s=>{if(!Ae(s.indices)||!s.indices.length)return;const{indices:r,value:o}=s;let c={indices:r,value:o};s.key&&(c.key=s.key.src),s.idx>-1&&(c.refIndex=s.idx),e.matches.push(c)})}function Pr(i,e){e.score=i.score}function Ir(i,e,{includeMatches:t=D.includeMatches,includeScore:s=D.includeScore}={}){const r=[];return t&&r.push(Rr),s&&r.push(Pr),i.map(o=>{const{idx:c}=o,h={item:e[c],refIndex:c};return r.length&&r.forEach(u=>{u(o,h)}),h})}class Ze{constructor(e,t={},s){this.options={...D,...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,r=this._docs.length;s<r;s+=1){const o=this._docs[s];e(o,s)&&(this.removeAt(s),s-=1,r-=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:r,shouldSort:o,sortFn:c,ignoreFieldNorm:h}=this.options;let u=De(e)?De(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return Tr(u,{ignoreFieldNorm:h}),o&&u.sort(c),Ys(t)&&t>-1&&(u=u.slice(0,t)),Ir(u,this._docs,{includeMatches:s,includeScore:r})}_searchStringList(e){const t=Zt(e,this.options),{records:s}=this._myIndex,r=[];return s.forEach(({v:o,i:c,n:h})=>{if(!Ae(o))return;const{isMatch:u,score:d,indices:m}=t.searchIn(o);u&&r.push({item:o,idx:c,matches:[{score:d,value:o,norm:h,indices:m}]})}),r}_searchLogical(e){const t=ni(e,this.options),s=(h,u,d)=>{if(!h.children){const{keyId:v,searcher:$}=h,M=this._findMatches({key:this._keyStore.get(v),value:this._myIndex.getValueForItemAtKeyId(u,v),searcher:$});return M&&M.length?[{idx:d,item:u,matches:M}]:[]}const m=[];for(let v=0,$=h.children.length;v<$;v+=1){const M=h.children[v],P=s(M,u,d);if(P.length)m.push(...P);else if(h.operator===_t.AND)return[]}return m},r=this._myIndex.records,o={},c=[];return r.forEach(({$:h,i:u})=>{if(Ae(h)){let d=s(t,h,u);d.length&&(o[u]||(o[u]={idx:u,item:h,matches:[]},c.push(o[u])),d.forEach(({matches:m})=>{o[u].matches.push(...m)}))}}),c}_searchObjectList(e){const t=Zt(e,this.options),{keys:s,records:r}=this._myIndex,o=[];return r.forEach(({$:c,i:h})=>{if(!Ae(c))return;let u=[];s.forEach((d,m)=>{u.push(...this._findMatches({key:d,value:c[m],searcher:t}))}),u.length&&o.push({idx:h,item:c,matches:u})}),o}_findMatches({key:e,value:t,searcher:s}){if(!Ae(t))return[];let r=[];if(Ne(t))t.forEach(({v:o,i:c,n:h})=>{if(!Ae(o))return;const{isMatch:u,score:d,indices:m}=s.searchIn(o);u&&r.push({score:d,key:e,value:o,idx:c,norm:h,indices:m})});else{const{v:o,n:c}=t,{isMatch:h,score:u,indices:d}=s.searchIn(o);h&&r.push({score:u,key:e,value:o,norm:c,indices:d})}return r}}Ze.version="6.6.2",Ze.createIndex=Zs,Ze.parseIndex=gr,Ze.config=D,Ze.parseQuery=ni,Lr(Or);var dt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oi(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}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,Gr=Math.min,ts=function(){return Yr.Date.now()};function Jr(i,e,t){var s,r,o,c,h,u,d=0,m=!1,v=!1,$=!0;if(typeof i!="function")throw new TypeError(Nr);e=ai(e)||0,ss(t)&&(m=!!t.leading,v="maxWait"in t,o=v?Xr(ai(t.maxWait)||0,e):o,$="trailing"in t?!!t.trailing:$);function M(U){var X=s,ie=r;return s=r=void 0,d=U,c=i.apply(ie,X),c}function P(U){return d=U,h=setTimeout(ae,e),m?M(U):c}function J(U){var X=U-u,ie=U-d,z=e-X;return v?Gr(z,o-ie):z}function me(U){var X=U-u,ie=U-d;return u===void 0||X>=e||X<0||v&&ie>=o}function ae(){var U=ts();if(me(U))return be(U);h=setTimeout(ae,J(U))}function be(U){return h=void 0,$&&s?M(U):(s=r=void 0,c)}function ge(){h!==void 0&&clearTimeout(h),d=0,s=u=r=h=void 0}function Ee(){return h===void 0?c:be(ts())}function $e(){var U=ts(),X=me(U);if(s=arguments,r=this,u=U,X){if(h===void 0)return P(u);if(v)return h=setTimeout(ae,e),M(u)}return h===void 0&&(h=setTimeout(ae,e)),c}return $e.cancel=ge,$e.flush=Ee,$e}function ss(i){var e=typeof i;return!!i&&(e=="object"||e=="function")}function Zr(i){return!!i&&typeof i=="object"}function Qr(i){return typeof i=="symbol"||Zr(i)&&qr.call(i)==jr}function ai(i){if(typeof i=="number")return i;if(Qr(i))return li;if(ss(i)){var e=typeof i.valueOf=="function"?i.valueOf():i;i=ss(e)?e+"":e}if(typeof i!="string")return i===0?i:+i;i=i.replace(Hr,"");var t=Ur.test(i);return t||Br.test(i)?zr(i.slice(2),t?2:8):Fr.test(i)?li:+i}var en=Jr;const tn=oi(en);(()=>{var i=Object.defineProperty,e=Math.pow,t=(n,a,f)=>a in n?i(n,a,{enumerable:!0,configurable:!0,writable:!0,value:f}):n[a]=f,s=(n,a,f)=>(t(n,typeof a!="symbol"?a+"":a,f),f),r=(n,a)=>` ${a&&a.length>0?a.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}",c="pointers-overlap",h="pointers-min-distance",u="pointers-max-distance",d="range-dragging",m="data",v="min",$="max",M="step",P="round",J="type",me="theme",ae="rtl",be="btt",ge="disabled",Ee="keyboard-disabled",$e="mousewheel-disabled",U="slider-width",X="slider-height",ie="slider-radius",z="slider-bg",B="slider-bg-hover",Te="slider-bg-fill",ke="pointer-width",T="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",Q="pointer-border-hover",he="pointer-border-focus",Oe="animate-onclick",Le="css-links",de="vertical",Me="horizontal",Re=(n,a,f,p,x)=>{let O=a-n;return O===0?f:(p-f)*(x-n)/O+f},ee=n=>!isNaN(parseFloat(n))&&isFinite(n),K=(n,a)=>ee(n)?Number(n):a,Qe=(n,a)=>a===0?0:Math.round(n/a)*a,et=(n,a=1/0)=>{if(a===1/0)return n;let f=e(10,a);return Math.round(n*f)/f},pe=n=>n==null?!1:typeof n=="boolean"?n:n.trim().toLowerCase()==="true",an=(n,a)=>{n.dispatchEvent(new CustomEvent("onPointerClicked",{detail:{$pointer:a}}))},cn=(n,a)=>{n.dispatchEvent(new CustomEvent("onMouseDown",{detail:{nativeEvent:a}}))},hn=(n,a)=>{n.dispatchEvent(new CustomEvent("onMouseUp",{detail:{nativeEvent:a}}))},un=(n,a)=>{n.dispatchEvent(new CustomEvent("onKeyDown",{detail:{nativeEvent:a}}))},dn=(n,a)=>{if(!a||a.length<=0)return;let f=a.map(x=>ee(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,a,f)=>{let p=0,x,O,N,w,A=!1,j=(C,G,ue,ce,re,ne)=>{let _e=p;ue!==void 0&&C>ue&&(C=ue),G!==void 0&&C<G&&(C=G),p=C;let xe=p;return(ce===de&&ne||ce===Me&&re)&&(xe=100-xe),ce===de?a.style.top=`${xe}%`:a.style.left=`${xe}%`,_e!==p},F=C=>C===a||a.contains(C),E=(C,G,ue,ce)=>{x=C,O=G,N=ue,w=ce},Y=C=>{A=C,a.classList.toggle("disabled",A),A?a.setAttribute("aria-disabled","true"):a.hasAttribute("aria-disabled")&&a.removeAttribute("aria-disabled")},Se=(C,G)=>{G==null?a.removeAttribute(C):a.setAttribute(C,G)},ve=C=>a.getAttribute(C),L=C=>{if(!A){switch(C.key){case"ArrowLeft":{C.preventDefault(),typeof x=="function"&&x(f);break}case"ArrowRight":{C.preventDefault(),typeof O=="function"&&O(f);break}case"ArrowUp":{C.preventDefault(),typeof N=="function"&&N(f);break}case"ArrowDown":{C.preventDefault(),typeof w=="function"&&w(f);break}}un(n,C)}},H=()=>{A||an(n,a)};return a.className=`pointer pointer-${f}`,a.addEventListener("keydown",L),a.addEventListener("click",H),{$pointer:a,get percent(){return p},get disabled(){return A},set disabled(C){Y(C)},updatePosition:j,isClicked:F,setCallbacks:E,setAttr:Se,getAttr:ve,destroy:()=>{a.removeEventListener("keydown",L),a.removeEventListener("click",H),a.remove()}}},pn=n=>{if(n==null)return;if(Array.isArray(n))return n;if(n.trim()==="")return;let a=n.split(","),f=[],p=!0;for(let x=0;x<a.length;x++){let O=a[x].trim();O!==""&&(f.push(O),ee(O)||(p=!1))}return p?f.map(x=>Number(x)):f},fn=(n,a)=>a?a.findIndex(f=>f===n||f.toString().trim()===n.toString().trim()):-1,gn=n=>({updatePosition:(a,f,p,x)=>{if(f.length<=0)return;let O=f.length===1,N=f[0],w=f[f.length-1];a===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",vn="--width",mn="--height",yn="--panel-bg-border-radius",bn="--panel-bg",$n="--panel-bg-hover",_n="--panel-bg-fill",xn="--pointer-width",wn="--pointer-height",An="--pointer-border-radius",Mn="--pointer-bg",Sn="--pointer-bg-hover",En="--pointer-bg-focus",kn="--pointer-shadow",On="--pointer-shadow-hover",Ln="--pointer-shadow-focus",Cn="--pointer-border",Dn="--pointer-border-hover",Tn="--pointer-border-focus",wt=(n,a,f)=>{let p=new Map;for(let x of n.attributes){let O=x.nodeName.trim().toLowerCase();if(!a.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},Rn=n=>{if(!n)return null;let a=n.getAttribute(Le);if(!a)return null;let f=a.split(";"),p=[];for(let x of f)x.trim()!==""&&p.push(x.trim());return p},di=[[vn,U,"sliderWidth",null],[mn,X,"sliderHeight",null],[yn,ie,"sliderRadius",null],[bn,z,"sliderBg",null],[$n,B,"sliderBgHover",null],[_n,Te,"sliderBgFill",null],[xn,ke,"pointer#Width",/^pointer([0-9]*)-width$/],[wn,T,"pointer#Height",/^pointer([0-9]*)-height$/],[An,y,"pointer#Radius",/^pointer([0-9]*)-radius$/],[Mn,b,"pointer#Bg",/^pointer([0-9]*)-bg$/],[Sn,k,"pointer#BgHover",/^pointer([0-9]*)-bg-hover$/],[En,_,"pointer#BgFocus",/^pointer([0-9]*)-bg-focus$/],[kn,I,"pointer#Shadow",/^pointer([0-9]*)-shadow$/],[On,R,"pointer#ShadowHover",/^pointer([0-9]*)-shadow-hover$/],[Ln,V,"pointer#ShadowFocus",/^pointer([0-9]*)-shadow-focus$/],[Cn,se,"pointer#Border",/^pointer([0-9]*)-border$/],[Dn,Q,"pointer#BorderHover",/^pointer([0-9]*)-border-hover$/],[Tn,he,"pointer#BorderFocus",/^pointer([0-9]*)-border-focus$/]],Pn=(n,a,f)=>{let p=null,x=[],O=new Map,N=(L,H=a)=>{let C=[...H.classList];for(let G of C)G.startsWith(L)&&a.classList.remove(G)},w=()=>{N("shape");let L=a.querySelectorAll(".pointer");for(let H of L)N("shape",H)},A=L=>{p=L,N("theme-"),typeof L=="string"&&a.classList.add(`theme-${L}`)},j=()=>{if(w(),!(x.length<=0)){a.classList.add("shape",`shape-${x[0]}`);for(let L=1;L<x.length;L++){let H=x[L];if(!H)continue;let C=a.querySelector(`.pointer-${L}`);!C||C.classList.add("shape",`shape-${H}`)}}},F=(L,H)=>{x[L]=H,j()},E=()=>{w();let L=wt(n,/^pointer([0-9]*)-shape$/);if(!(L.size<=0)){for(let H of L){let C=H[0];x[C]=H[1]}j()}},Y=(L,H)=>`${L}-${H}`,Se=(L,H,C)=>{let G=f[C];if(!G)return;let ue=C===0?a:G.$pointer;if(H==null){O.has(Y(L,C))&&O.delete(Y(L,C)),ue.style.removeProperty(L);return}O.set(Y(L,C),H),ue.style.setProperty(L,H)},ve=(L,H)=>O.get(Y(L,H));return(()=>{for(let L of di){let[H,C,G,ue]=L;if(ue){let re=wt(n,ue);for(let ne of re){let _e=ne[0],xe=ne[1];Se(H,xe,_e)}}else{let re=n.getAttribute(C);Se(H,re,0)}let ce=[];if(G.indexOf("#")===-1)ce.push([G,0]);else{ce.push([G.replace("#",""),0]),ce.push([G.replace("#","0"),0]),ce.push([G.replace("#","1"),0]);for(let re=1;re<f.length;re++)ce.push([G.replace("#",(re+1).toString()),re])}for(let re of ce)try{let ne=re[0],_e=re[1];Object.prototype.hasOwnProperty.call(n,ne)||Object.defineProperty(n,ne,{get(){return ve(H,_e)},set:xe=>{Se(H,xe,_e)}})}catch(ne){console.error(ne)}}A(n.getAttribute(me)),E()})(),{setStyle:Se,getStyle:ve,get theme(){return p},set theme(L){A(L)},get pointerShapes(){return x},setPointerShape:F}},tt="animate-on-click",pi="range-dragging",In=(n,a,f,p)=>{let x=[],O=F=>{for(let E of x)E.update&&typeof E.update=="function"&&E.update(F)},N=()=>{for(let F of x)F.destroy&&typeof F.destroy=="function"&&F.destroy()},w=(F,E)=>{for(let Y of x)Y.onAttrChange&&typeof Y.onAttrChange=="function"&&Y.onAttrChange(F,E)},A=F=>{if(F.gettersAndSetters){for(let E of F.gettersAndSetters)if(!(!E.name||!E.attributes))try{Object.prototype.hasOwnProperty.call(n,E.name)||Object.defineProperty(n,E.name,E.attributes)}catch(Y){console.error("defineSettersGetters error:",Y)}}},j=F=>{var E;if(!F.css)return;let Y=(E=n.shadowRoot)==null?void 0:E.querySelector("style");!Y||(Y.innerHTML+=F.css)};return{init:()=>{if(window.tcRangeSliderPlugins)for(let F of window.tcRangeSliderPlugins){let E=F();x.push(E),E.init&&typeof E.init=="function"&&(E.init(n,a,f,p),A(E),j(E))}},update:O,onAttrChange:w,destroy:N}},Nn=10,jn=(n,a)=>{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,E=ee(w.value)?K(w.value,0):w.value;f.set(F,E)}let x=Math.max(...Array.from(f.keys())),O=[];O.push([is(n,a,0),f.get(0)]);let N=a;for(let w=1;w<=x;w++){let A=a.cloneNode(!0);N.after(A),N=A,O.push([is(n,A,w),f.get(w)])}return O},fi=(n,a,f,p,x,O,N)=>{try{Object.defineProperty(n,p,{configurable:!0,get(){if(!a)return;let w=a.pointers[f];if(!w)return;let A=a.getTextValue(w.percent);return ee(A)?K(A,A):A},set:w=>{a.pointers[f]?a==null||a.setValue(w,f):a==null||a.addPointer(w)}}),Object.defineProperty(n,x,{configurable:!0,get(){var w,A;return(A=(w=a==null?void 0:a.pointers[f])==null?void 0:w.getAttr("aria-label"))!=null?A:void 0},set:w=>{!a||a.setAriaLabel(f,w)}}),Object.defineProperty(n,O,{configurable:!0,get(){var w,A;return(A=(w=a==null?void 0:a.styles)==null?void 0:w.pointerShapes[f])!=null?A:null},set:w=>{!a||!a.styles||a.styles.setPointerShape(f,w)}}),Object.defineProperty(n,N,{configurable:!0,get(){var w;return(w=a==null?void 0:a.pointers[f].disabled)!=null?w:!1},set:w=>{if(!a)return;let A=a==null?void 0:a.pointers[f];!A||(A.disabled=w)}})}catch(w){console.error(w)}},Hn=(n,a)=>{let f=[["value","ariaLabel","pointerShape","pointerDisabled",0],["value0","ariaLabel0","pointerShape0","pointer0Disabled",0],["value1","ariaLabel1","pointerShape1","pointer1Disabled",0]];for(let p=2;p<Nn;p++)f.push([`value${p}`,`ariaLabel${p}`,`pointer${p}Shape`,`pointer${p}Disabled`,p-1]);for(let p of f)fi(n,a,p[4],p[0],p[1],p[2],p[3])},gi=(n,a,f)=>{var p;let x=(p=f.shadowRoot)==null?void 0:p.querySelector(".container");if(x)for(let O of n)a?x.prepend(O.$pointer):x.append(O.$pointer)},rs=0,pt=100,st=2,vi="0.3s",Fn=(n,a,f)=>{let p=f.map(l=>l[0]),x=null,O=null,N=null,w=null,A=rs,j=pt,F,E,Y=Me,Se=st,ve=!1,L=!1,H=!1,C=0,G=1/0,ue=!1,ce,re,ne=!1,_e=!1,xe=!1,Fe=vi,mi=[],yi=l=>{ne||(l.preventDefault&&l.preventDefault(),Ke(l),window.addEventListener("mousemove",Ke),window.addEventListener("mouseup",At),cn(n,l))},At=l=>{ne||(ce=void 0,re=void 0,window.removeEventListener("mousemove",Ke),window.removeEventListener("mouseup",At),Fe&&a.classList.add(tt),hn(n,l))},zn=(l,g)=>{if(p.length<=0)return;if(p.length===1)return p[0].isClicked(l)&&Fe&&a.classList.remove(tt),p[0];let S=Vn(l);if(ue){let W=g,Ce=St(W);Ce!==void 0&&(W=Qe(W,Ce)),S?(ce=W,re=0,Fe&&a.classList.remove(tt)):ce!==void 0&&(re=W-ce,ce=W)}if(!Wn(l)&&!S){for(let W of p)if(!(!W.isClicked(l)||W.disabled))return Fe&&a.classList.remove(tt),W;for(let W of p)if(x===W)return W}let q=1/0,oe=null;for(let W of p){if(W.disabled)continue;let Ce=Math.abs(g-W.percent);Ce<q&&(q=Ce,oe=W)}return oe},bi=()=>p.findIndex(l=>x===l&&!l.disabled),Ke=l=>{let g;if(Y===de){let{height:q,top:oe}=a.getBoundingClientRect(),W=l.type.indexOf("mouse")!==-1?l.clientY:l.touches[0].clientY;g=Math.min(Math.max(0,W-oe),q)*100/q}else{let{width:q,left:oe}=a.getBoundingClientRect(),W=l.type.indexOf("mouse")!==-1?l.clientX:l.touches[0].clientX;g=Math.min(Math.max(0,W-oe),q)*100/q}if((ve||L)&&(g=100-g),x=zn(l.target,g),ue&&p.length>1&&re!==void 0){let q=p[0],oe=p[p.length-1],W=q.percent+re<0,Ce=oe.percent+re>100;if(W||Ce)return;for(let Rt=0;Rt<p.length;Rt++)we(Rt,p[Rt].percent+re);return}let S=bi();S!==-1&&(we(S,g),x==null||x.$pointer.focus())},Mt=l=>{if(ne||document.activeElement!==n||x!=null&&x.disabled)return;l.stopPropagation(),l.preventDefault();let g=l.deltaY<0,S=ve||L,q=g?!S:S,oe=bi();oe!==-1&&(q?ft(oe,p[oe].percent):gt(oe,p[oe].percent))},$i=l=>{ne||_e||(Y===de?L?we(l,100):we(l,0):ve?gt(l,p[l].percent):ft(l,p[l].percent))},_i=l=>{ne||_e||(Y===de?L?we(l,0):we(l,100):ve?ft(l,p[l].percent):gt(l,p[l].percent))},xi=l=>{ne||_e||(Y===de?L?gt(l,p[l].percent):ft(l,p[l].percent):ve?we(l,100):we(l,0))},wi=l=>{ne||_e||(Y===de?L?ft(l,p[l].percent):gt(l,p[l].percent):ve?we(l,0):we(l,100))},Wn=l=>l.classList.contains("panel"),Vn=l=>l.classList.contains("panel-fill"),ft=(l,g)=>{if(g===void 0)return;let S=St(g);S==null&&(S=1),g-=S,g<0&&(g=0),we(l,g)},gt=(l,g)=>{if(g===void 0)return;let S=St(g);S==null&&(S=1),g+=S,g>100&&(g=100),we(l,g)},qe=()=>{!w||w.update({percents:Ai(),values:Mi(),$pointers:Si(),min:Ei(),max:ki(),data:ls(),step:os(),round:cs(),type:as(),textMin:Et(),textMax:kt(),rightToLeft:ds(),bottomToTop:ps(),pointersOverlap:ms(),pointersMinDistance:hs(),pointersMaxDistance:us(),rangeDragging:ys(),disabled:fs(),keyboardDisabled:gs(),mousewheelDisabled:vs()})},Yn=()=>{qe()},Kn=l=>{if(!(H||p.length<=1||j===A))if(l===0){let g=G*100/(j-A);return Math.max(0,p[l+1].percent-g)}else{let g=C*100/(j-A);return Math.min(p[l-1].percent+g,100)}},qn=l=>{if(!(H||p.length<=1||j===A))if(l===p.length-1){let g=G*100/(j-A);return Math.min(p[l-1].percent+g,100)}else{let g=C*100/(j-A);return Math.max(0,p[l+1].percent-g)}},St=l=>{let g;if(typeof F=="function"){let S=Re(0,100,A,j,l);g=F(S,l)}else g=F;if(ee(g)){let S=j-A;return g=S===0?0:g*100/S,g}},it=l=>{if(l===void 0)return;let g=Re(0,100,A,j,l);return E!==void 0?E[Math.round(g)]:et(g,Se)},Et=()=>E!==void 0?E[A]:A,kt=()=>E!==void 0?E[j]:j,os=()=>F,Xn=l=>{var g;return l<=0||H?Et():(g=it(p[l-1].percent))!=null?g:""},Gn=l=>{var g;return p.length<=1||l>=p.length-1||H?kt():(g=it(p[l+1].percent))!=null?g:""},Ai=()=>p.map(l=>l.percent),Mi=()=>p.map(l=>it(l.percent)),Si=()=>p.map(l=>l.$pointer),Ei=()=>A,ki=()=>j,ls=()=>E,as=()=>Y,cs=()=>Se,hs=()=>C,us=()=>G,Jn=l=>mi[l],ds=()=>ve,ps=()=>L,fs=()=>ne,gs=()=>_e,vs=()=>xe,ms=()=>H,ys=()=>ue,we=(l,g)=>{if(g===void 0)return;let S=St(g);S!==void 0&&(g=Qe(g,S));let q=p[l];if(!q)return;let oe=q.updatePosition(g,Kn(l),qn(l),Y,ve,L);O==null||O.updatePosition(Y,p.map(W=>W.percent),ve,L),qe();for(let W of p){let Ce=it(W.percent);Ce!==void 0&&(W.setAttr("aria-valuenow",Ce.toString()),W.setAttr("aria-valuetext",Ce.toString()))}Qn(),oe&&dn(n,p.map(W=>it(W.percent)))},Pe=()=>{for(let l=0;l<p.length;l++)we(l,p[l].percent)},Zn=(l,g)=>{A=E!==void 0?0:K(l,rs),j=E!==void 0?E.length-1:K(g,pt),Ot(A),Lt(j)},Qn=()=>{var l,g;for(let S=0;S<p.length;S++){let q=p[S];q.setAttr("aria-valuemin",((l=Xn(S))!=null?l:"").toString()),q.setAttr("aria-valuemax",((g=Gn(S))!=null?g:"").toString())}},Ot=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++)Ct(l[g],g);H=!1;for(let g=0;g<l.length;g++)Ct(l[g],g)},Ct=(l,g)=>{let S;E!==void 0?(S=l==null?0:fn(l,E),S===-1&&(S=0)):(S=K(l,A),S<A&&(S=A),S>j&&(S=j));let q=Re(A,j,0,100,S);we(g,q)},Dt=l=>{if(l==null){F=void 0;return}if(typeof l=="function"){F=l,Pe();return}if(ee(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=>{(!ee(l)||l<0)&&(l=0),C=l},_s=l=>{(!ee(l)||l<0)&&(l=1/0),G=l},xs=l=>{ne=l,a.classList.toggle("disabled",ne),ne?a.setAttribute("aria-disabled","true"):a.hasAttribute("aria-disabled")&&a.removeAttribute("aria-disabled")},Li=l=>{_e=l},Ci=l=>{xe=l,xe?document.removeEventListener("wheel",Mt):document.addEventListener("wheel",Mt,{passive:!1})},ws=l=>{if(l==null){E=void 0;return}if(E=pn(l),E===void 0||E.length<=0){E=void 0;return}Ot(0),Lt(E.length-1),F===void 0&&Dt(1)},As=l=>{var g;typeof l=="string"?Y=l.trim().toLowerCase()===de?de:Me:Y=Me;let S=(g=n.shadowRoot)==null?void 0:g.querySelector(".range-slider-box");if(!S)return;S.className=`range-slider-box type-${Y}`,Pe();let q=Y===de?"vertical":"horizontal";for(let oe of p)oe.setAttr("aria-orientation",q)},Ms=l=>{ve=l,p.length>1&&gi(p,ve,n),Pe(),qe()},Ss=l=>{L=l,p.length>1&&gi(p,L,n),Pe(),qe()},Es=l=>{Se=K(l,st),Se<0&&(Se=st),qe()},Di=l=>{l==null||l.toString().trim().toLowerCase()==="false"?(Fe=void 0,a.style.removeProperty(ui),a.classList.remove(tt)):(Fe=l.toString(),a.style.setProperty(ui,Fe),a.classList.add(tt))},Ti=(l,g)=>{let S=p[l];!S||(S.setAttr("aria-label",g),mi[l]=g)},Tt=l=>{if(ce=void 0,p.length<=1){ue=!1,a.classList.remove(pi);return}ue=l,a.classList.toggle(pi,ue)},eo=()=>{xs(pe(n.getAttribute(ge))),_e=pe(n.getAttribute(Ee)),xe=pe(n.getAttribute($e));let l=wt(n,/^pointer([0-9]*)-disabled$/,g=>pe(g));for(let g of l){let S=g[0];!p[S]||(p[S].disabled=g[1])}},to=()=>{let l=wt(n,/^aria-label([0-9]*)$/);for(let g of l){let S=g[0];Ti(S,g[1])}},so=l=>{let g=p.length,S=p[g-1].$pointer,q=S.cloneNode(!0);S.after(q);let oe=is(n,q,g);return oe.setCallbacks($i,_i,xi,wi),p.push(oe),Ct(l,g),Pe(),qe(),g},io=()=>{let l=p.length,g=p[l-1];return g?(g.destroy(),p.pop(),p.length<=1&&Tt(!1),Pe(),qe(),l-1):-1};return(()=>{var l,g;for(let q of p)q.setCallbacks($i,_i,xi,wi);let S=(l=n.shadowRoot)==null?void 0:l.querySelector(".panel-fill");S&&(O=gn(S)),As(n.getAttribute(J)),Ms(pe(n.getAttribute(ae))),Ss(pe(n.getAttribute(be))),Zn(n.getAttribute(v),n.getAttribute($)),Dt(n.getAttribute(M)),ws(n.getAttribute(m)),Oi(f.map(q=>q[1])),bs(pe(n.getAttribute(c))),$s(K(n.getAttribute(h),0)),_s(K(n.getAttribute(u),1/0)),Tt(pe(n.getAttribute(d))),Es(K(n.getAttribute(P),st)),eo(),to(),N=Pn(n,a,p),Di((g=n.getAttribute(Oe))!=null?g:vi),a.addEventListener("mousedown",yi),a.addEventListener("mouseup",At),a.addEventListener("touchmove",Ke),a.addEventListener("touchstart",Ke),xe||document.addEventListener("wheel",Mt,{passive:!1}),w=In(n,Yn,{setValues:Oi,setMin:Ot,setMax:Lt,setStep:Dt,setPointersOverlap:bs,setPointersMinDistance:$s,setPointersMaxDistance:_s,setDisabled:xs,setType:As,setRightToLeft:Ms,setBottomToTop:Ss,setRound:Es,setKeyboardDisabled:Li,setMousewheelDisabled:Ci,setRangeDragging:Tt,setData:ws},{getPercents:Ai,getValues:Mi,getPointerElements:Si,getMin:Ei,getMax:ki,getStep:os,getData:ls,getType:as,getRound:cs,getTextMin:Et,getTextMax:kt,isRightToLeft:ds,isBottomToTop:ps,isDisabled:fs,isKeyboardDisabled:gs,isMousewheelDisabled:vs,isPointersOverlap:ms,isRangeDraggingEnabled:ys,getPointersMinDistance:hs,getPointersMaxDistance:us}),w.init()})(),{get pointers(){return p},get styles(){return N},get pluginsManager(){return w},get min(){return Et()},get max(){return kt()},get step(){return os()},get pointersOverlap(){return ms()},set pointersOverlap(l){bs(l)},get pointersMinDistance(){return hs()},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){Ms(l)},get bottomToTop(){return ps()},set bottomToTop(l){Ss(l)},get round(){return cs()},set round(l){Es(l)},get animateOnClick(){return Fe},set animateOnClick(l){Di(l)},get keyboardDisabled(){return gs()},set keyboardDisabled(l){Li(l)},get mousewheelDisabled(){return vs()},set mousewheelDisabled(l){Ci(l)},get rangeDragging(){return ys()},set rangeDragging(l){Tt(l)},setMin:Ot,setMax:Lt,setValue:Ct,setStep:Dt,setData:ws,getTextValue:it,setAriaLabel:Ti,getAriaLabel:Jn,addPointer:so,removePointer:io,destroy:()=>{a.removeEventListener("mousedown",yi),a.removeEventListener("mouseup",At),a.removeEventListener("touchmove",Ke),a.removeEventListener("touchstart",Ke),document.removeEventListener("wheel",Mt);for(let l of p)l.destroy();w==null||w.destroy()}}},Un=(n,a,f)=>{let p=di.find(([w,A,j,F])=>A.replace("#","")===a.replace(/\d+/g,""));if(p&&n.styles){let[w,A,j,F]=p,E=a.replace(/\D/g,"").trim(),Y=E===""||E==="0"||E==="1"?0:K(E,0)-1;n.styles.setStyle(w,f,Y);return}switch(n&&n.pluginsManager&&n.pluginsManager.onAttrChange(a,f),a){case v:{n.setMin(f);break}case $:{n.setMax(f);break}case M:{n.setStep(f);break}case c:{n.pointersOverlap=pe(f);break}case h:{n.pointersMinDistance=K(f,0);break}case d:{n.rangeDragging=pe(f);break}case u:{n.pointersMaxDistance=K(f,1/0);break}case ge:{n.disabled=pe(f);break}case Ee:{n.keyboardDisabled=pe(f);break}case $e:{n.mousewheelDisabled=pe(f);break}case m:{n.setData(f);break}case J:{n.type=f;break}case ae:{n.rightToLeft=pe(f);break}case be:{n.bottomToTop=pe(f);break}case P:{n.round=K(f,st);break}case me:{n.styles&&(n.styles.theme=f);break}case Oe:{n.animateOnClick=f;break}}let x=null;if(/^value([0-9]*)$/.test(a)&&(x="value"),/^pointer([0-9]*)-disabled$/.test(a)&&(x="pointer-disabled"),/^aria-label([0-9]*)$/.test(a)&&(x="aria-label"),/^pointer([0-9]*)-shape$/.test(a)&&(x="pointer-shape"),!x)return;let O=a.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}}},Bn=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,a;return(a=(n=this.slider)==null?void 0:n.disabled)!=null?a:!1}set data(n){var a;(a=this.slider)==null||a.setData(n)}get data(){var n;return(n=this.slider)==null?void 0:n.data}set min(n){var a;(a=this.slider)==null||a.setMin(n)}get min(){var n;return(n=this.slider)==null?void 0:n.min}set max(n){var a;(a=this.slider)==null||a.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,a;return(a=(n=this.slider)==null?void 0:n.round)!=null?a:st}set type(n){!this.slider||(this.slider.type=n??Me)}get type(){var n;return((n=this.slider)==null?void 0:n.type)||Me}set pointersOverlap(n){!this.slider||(this.slider.pointersOverlap=n)}get pointersOverlap(){var n,a;return(a=(n=this.slider)==null?void 0:n.pointersOverlap)!=null?a:!1}set pointersMinDistance(n){!this.slider||(this.slider.pointersMinDistance=n)}get pointersMinDistance(){var n,a;return(a=(n=this.slider)==null?void 0:n.pointersMinDistance)!=null?a:0}set pointersMaxDistance(n){!this.slider||(this.slider.pointersMaxDistance=n)}get pointersMaxDistance(){var n,a;return(a=(n=this.slider)==null?void 0:n.pointersMaxDistance)!=null?a:1/0}set theme(n){!this.slider||!this.slider.styles||(this.slider.styles.theme=n)}get theme(){var n,a,f;return(f=(a=(n=this.slider)==null?void 0:n.styles)==null?void 0:a.theme)!=null?f:null}set rtl(n){!this.slider||(this.slider.rightToLeft=n)}get rtl(){var n,a;return(a=(n=this.slider)==null?void 0:n.rightToLeft)!=null?a:!1}set btt(n){!this.slider||(this.slider.bottomToTop=n)}get btt(){var n,a;return(a=(n=this.slider)==null?void 0:n.bottomToTop)!=null?a:!1}set keyboardDisabled(n){!this.slider||(this.slider.keyboardDisabled=n)}get keyboardDisabled(){var n,a;return(a=(n=this.slider)==null?void 0:n.keyboardDisabled)!=null?a:!1}set mousewheelDisabled(n){!this.slider||(this.slider.mousewheelDisabled=n)}get mousewheelDisabled(){var n,a;return(a=(n=this.slider)==null?void 0:n.mousewheelDisabled)!=null?a:!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,a;return(a=(n=this.slider)==null?void 0:n.rangeDragging)!=null?a:!1}set rangeDragging(n){this.slider&&(this.slider.rangeDragging=pe(n))}get externalCSSList(){return this._externalCSSList}addPointer(n){var a;if(!this.slider)return;let f=(a=this.slider)==null?void 0:a.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 a=document.createElement("style");a.textContent=n,this.shadowRoot.appendChild(a)}connectedCallback(){var n,a;if(!this.shadowRoot)return;this._externalCSSList=Rn(this),this.shadowRoot.innerHTML=r(o,this._externalCSSList);let f=(n=this.shadowRoot)==null?void 0:n.querySelector(".pointer");if(!f)return;let p=(a=this.shadowRoot)==null?void 0:a.getElementById("range-slider");if(!p)return;let x=jn(this,f);this.slider=Fn(this,p,x),Hn(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||Un(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=Bn;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 ci={exports:{}};(function(i,e){(function(t,s){i.exports=s()})(dt,function(){var t=1e3,s=6e4,r=36e5,o="millisecond",c="second",h="minute",u="hour",d="day",m="week",v="month",$="quarter",M="year",P="date",J="Invalid Date",me=/^(\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(T){var y=["th","st","nd","rd"],b=T%100;return"["+T+(y[(b-20)%10]||y[b]||y[0])+"]"}},ge=function(T,y,b){var k=String(T);return!k||k.length>=y?T:""+Array(y+1-k.length).join(b)+T},Ee={s:ge,z:function(T){var y=-T.utcOffset(),b=Math.abs(y),k=Math.floor(b/60),_=b%60;return(y<=0?"+":"-")+ge(k,2,"0")+":"+ge(_,2,"0")},m:function T(y,b){if(y.date()<b.date())return-T(b,y);var k=12*(b.year()-y.year())+(b.month()-y.month()),_=y.clone().add(k,v),I=b-_<0,R=y.clone().add(k+(I?-1:1),v);return+(-(k+(b-_)/(I?_-R:R-_))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:v,y:M,w:m,d,D:P,h:u,m:h,s:c,ms:o,Q:$}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},$e="en",U={};U[$e]=be;var X=function(T){return T instanceof Te},ie=function T(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 T(R[0])}else{var V=y.name;U[V]=y,_=V}return!k&&_&&($e=_),_||!k&&$e},z=function(T,y){if(X(T))return T.clone();var b=typeof y=="object"?y:{};return b.date=T,b.args=arguments,new Te(b)},B=Ee;B.l=ie,B.i=X,B.w=function(T,y){return z(T,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var Te=function(){function T(b){this.$L=ie(b.locale,null,!0),this.parse(b)}var y=T.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(me);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()!==J},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,ee){var K=B.w(_.$u?Date.UTC(_.$y,ee,Re):new Date(_.$y,ee,Re),_);return I?K:K.endOf(d)},se=function(Re,ee){return B.w(_.toDate()[Re].apply(_.toDate("s"),(I?[0,0,0,0]:[23,59,59,999]).slice(ee)),_)},Q=this.$W,he=this.$M,Oe=this.$D,Le="set"+(this.$u?"UTC":"");switch(R){case M:return I?V(1,0):V(31,11);case v:return I?V(1,he):V(0,he+1);case m:var de=this.$locale().weekStart||0,Me=(Q<de?Q+7:Q)-de;return V(I?Oe-Me:Oe+(6-Me),he);case d:case P:return se(Le+"Hours",0);case u:return se(Le+"Minutes",1);case h:return se(Le+"Seconds",2);case c:return se(Le+"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",_[v]=R+"Month",_[M]=R+"FullYear",_[u]=R+"Hours",_[h]=R+"Minutes",_[c]=R+"Seconds",_[o]=R+"Milliseconds",_)[I],se=I===d?this.$D+(k-this.$W):k;if(I===v||I===M){var Q=this.clone().set(P,1);Q.$d[V](se),Q.init(),this.$d=Q.set(P,Math.min(this.$D,Q.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(he){var Oe=z(I);return B.w(Oe.date(Oe.date()+Math.round(he*b)),I)};if(R===v)return this.set(v,this.$M+b);if(R===M)return this.set(M,this.$y+b);if(R===d)return V(1);if(R===m)return V(7);var se=(_={},_[h]=s,_[u]=r,_[c]=t,_)[R]||1,Q=this.$d.getTime()+b*se;return B.w(Q,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||J;var I=b||"YYYY-MM-DDTHH:mm:ssZ",R=B.z(this),V=this.$H,se=this.$m,Q=this.$M,he=_.weekdays,Oe=_.months,Le=function(ee,K,Qe,et){return ee&&(ee[K]||ee(k,I))||Qe[K].slice(0,et)},de=function(ee){return B.s(V%12||12,ee,"0")},Me=_.meridiem||function(ee,K,Qe){var et=ee<12?"AM":"PM";return Qe?et.toLowerCase():et},Re={YY:String(this.$y).slice(-2),YYYY:B.s(this.$y,4,"0"),M:Q+1,MM:B.s(Q+1,2,"0"),MMM:Le(_.monthsShort,Q,Oe,3),MMMM:Le(Oe,Q),D:this.$D,DD:B.s(this.$D,2,"0"),d:String(this.$W),dd:Le(_.weekdaysMin,this.$W,he,2),ddd:Le(_.weekdaysShort,this.$W,he,3),dddd:he[this.$W],H:String(V),HH:B.s(V,2,"0"),h:de(1),hh:de(2),a:Me(V,se,!0),A:Me(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(ee,K){return K||Re[ee]||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,Q=this-V,he=B.m(this,V);return he=(I={},I[M]=he/12,I[v]=he,I[$]=he/3,I[m]=(Q-se)/6048e5,I[d]=(Q-se)/864e5,I[u]=Q/r,I[h]=Q/s,I[c]=Q/t,I)[R]||Q,_?he:B.a(he)},y.daysInMonth=function(){return this.endOf(v).$D},y.$locale=function(){return U[this.$L]},y.locale=function(b,k){if(!b)return this.$L;var _=this.clone(),I=ie(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()},T}(),ke=Te.prototype;return z.prototype=ke,[["$ms",o],["$s",c],["$m",h],["$H",u],["$W",d],["$M",v],["$y",M],["$D",P]].forEach(function(T){ke[T[1]]=function(y){return this.$g(y,T[0],T[1])}}),z.extend=function(T,y){return T.$i||(T(y,Te,z),T.$i=!0),z},z.locale=ie,z.isDayjs=X,z.unix=function(T){return z(1e3*T)},z.en=U[$e],z.Ls=U,z.p={},z})})(ci);var sn=ci.exports;const xt=oi(sn),rn=(i,e="highlight",t="title")=>{const s=(o,c,h)=>{const u=c.split(".");let d;for(d=0;d<u.length-1;d++)o=o[u[d]];o[u[d]]=h},r=(o,c=[])=>{let h="",u=0;return c.forEach(d=>{const m=d[1]+1;h+=[o.substring(u,d[0]),`<mark class="${e}">`,o.substring(d[0],m),"</mark>"].join(""),u=m}),h+=o.substring(u),h};return i.filter(({matches:o})=>o&&o.length).map(({item:o,matches:c})=>{const h={...o};return c.forEach(u=>{u.key===t&&s(h,u.key,r(u.value,u.indices))}),h})},nn=`
|
|
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
|
-
|
|
111
|
-
|
|
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
|
|
128
|
+
#details-results summary::before {
|
|
117
129
|
transform: rotate(-90deg);
|
|
118
130
|
}
|
|
119
|
-
.details-filter[open] summary
|
|
131
|
+
.details-filter[open] summary::after {
|
|
120
132
|
transform: rotate(180deg);
|
|
121
133
|
}
|
|
122
|
-
#details-results[open] summary
|
|
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
|
|
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
|
-
${
|
|
210
|
+
${on}
|
|
211
|
+
${!this.unstyled&&ln}
|
|
198
212
|
</style>
|
|
199
213
|
<form @submit="${t=>t.preventDefault()}">
|
|
200
|
-
${
|
|
214
|
+
${Ze(this._config.enableSearch,()=>ge`
|
|
201
215
|
<section>
|
|
202
216
|
<input
|
|
203
217
|
type="text"
|
|
@@ -208,45 +222,29 @@ section.inline details.details-filter summary {
|
|
|
208
222
|
/>
|
|
209
223
|
</section>
|
|
210
224
|
`)}
|
|
211
|
-
${
|
|
212
|
-
<section class="${this.config.inlineMode?"inline":
|
|
213
|
-
${
|
|
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
|
-
${ut(this._config.filterProperties,t=>
|
|
229
|
+
${ut(this._config.filterProperties,t=>ge`
|
|
216
230
|
<details
|
|
217
231
|
class="details-filter"
|
|
218
232
|
part="details-filter"
|
|
219
233
|
data-filter="${t.key}"
|
|
220
234
|
>
|
|
221
235
|
<summary>
|
|
222
|
-
<
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
style="${!t.title&&"text-transform: capitalize"}"
|
|
226
|
-
>
|
|
227
|
-
${t.title||t.key}
|
|
228
|
-
${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})`:Z}
|
|
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
|
-
|
|
235
|
-
|
|
236
|
-
|
|
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
|
-
${t.type==="range"?
|
|
245
|
+
${t.type==="range"?ge`
|
|
248
246
|
<div>
|
|
249
|
-
${t.format==="date"?
|
|
247
|
+
${t.format==="date"?wt.unix(this._filters[t.key].keys.min):this._filters[t.key].keys.min}
|
|
250
248
|
</div>
|
|
251
249
|
<tc-range-slider
|
|
252
250
|
min="${this._filters[t.key].min}"
|
|
@@ -254,21 +252,20 @@ section.inline details.details-filter summary {
|
|
|
254
252
|
value1="${this._filters[t.key].keys.min}"
|
|
255
253
|
value2="${this._filters[t.key].keys.max}"
|
|
256
254
|
step="1"
|
|
257
|
-
style="margin: 5px"
|
|
258
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)}}"
|
|
259
256
|
></tc-range-slider>
|
|
260
257
|
<div>
|
|
261
|
-
${t.format==="date"?
|
|
258
|
+
${t.format==="date"?wt.unix(this._filters[t.key].keys.max):this._filters[t.key].keys.max}
|
|
262
259
|
</div>
|
|
263
|
-
`:
|
|
260
|
+
`:ge`
|
|
264
261
|
<ul>
|
|
265
|
-
${this._filters[t.key]?ut(Object.keys(this._filters[t.key].keys).sort((s,
|
|
262
|
+
${this._filters[t.key]?ut(Object.keys(this._filters[t.key].keys).sort((s,i)=>s.localeCompare(i)),s=>ge`
|
|
266
263
|
<li>
|
|
267
264
|
<label>
|
|
268
265
|
<input
|
|
269
266
|
name="selection"
|
|
270
267
|
type="${t.exclusive?"radio":"checkbox"}"
|
|
271
|
-
checked="${this._filters[t.key].keys[s]||
|
|
268
|
+
checked="${this._filters[t.key].keys[s]||Q}"
|
|
272
269
|
@click=${()=>this.toggleFilter(t.key,s,t.exclusive)}
|
|
273
270
|
/>
|
|
274
271
|
<span class="title">${s}</span>
|
|
@@ -281,47 +278,38 @@ section.inline details.details-filter summary {
|
|
|
281
278
|
</details>
|
|
282
279
|
`)}
|
|
283
280
|
</ul>
|
|
284
|
-
${
|
|
281
|
+
${Ze(this._config.filterProperties,()=>ge`
|
|
285
282
|
<a
|
|
286
283
|
id="filter-reset"
|
|
287
284
|
data-cy="filter-reset"
|
|
288
285
|
@click=${()=>this.resetFilters()}
|
|
289
|
-
|
|
286
|
+
>Reset filters</a
|
|
290
287
|
>
|
|
291
288
|
`)}
|
|
292
289
|
</section>
|
|
293
290
|
`)}
|
|
294
|
-
${
|
|
291
|
+
${Ze(this.config.showResults&&this._results,()=>ge`
|
|
295
292
|
<section id="section-results">
|
|
296
293
|
<div>
|
|
297
294
|
<slot name="resultstitle"></slot>
|
|
298
295
|
</div>
|
|
299
296
|
<div id="container-results" class="scroll">
|
|
300
|
-
${this._results.length<1?
|
|
297
|
+
${this._results.length<1?ge` <small class="no-results">No matching items</small> `:Q}
|
|
301
298
|
<ul id="results" part="results">
|
|
302
|
-
${this._config.aggregateResults?ut(this._resultAggregation.filter(t=>this.aggregateResults(this._results,t).length),t=>
|
|
299
|
+
${this._config.aggregateResults?ut(this._resultAggregation.filter(t=>this.aggregateResults(this._results,t).length),t=>ge`<details
|
|
303
300
|
id="details-results"
|
|
304
301
|
open
|
|
305
302
|
>
|
|
306
303
|
<summary>
|
|
307
|
-
<
|
|
308
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
309
|
-
viewBox="0 0 24 24"
|
|
310
|
-
>
|
|
311
|
-
<title>chevron-down</title>
|
|
312
|
-
<path
|
|
313
|
-
d="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"
|
|
314
|
-
/>
|
|
315
|
-
</svg>
|
|
316
|
-
<strong class="title">
|
|
304
|
+
<span class="title">
|
|
317
305
|
${t}
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
>
|
|
321
|
-
>
|
|
306
|
+
<span class="count"
|
|
307
|
+
>(${this.aggregateResults(this._results,t).length})</span
|
|
308
|
+
>
|
|
309
|
+
</span>
|
|
322
310
|
</summary>
|
|
323
311
|
<ul>
|
|
324
|
-
${ut(this.aggregateResults(this._results,t),s=>
|
|
312
|
+
${ut(this.aggregateResults(this._results,t),s=>ge`
|
|
325
313
|
<li>
|
|
326
314
|
<label>
|
|
327
315
|
<input
|
|
@@ -330,14 +318,16 @@ section.inline details.details-filter summary {
|
|
|
330
318
|
id="${s.id}"
|
|
331
319
|
@click=${()=>{this._selectedResult=s,this._config.onSelect(s)}}
|
|
332
320
|
/>
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
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
|
+
`)}
|
|
336
326
|
</label>
|
|
337
327
|
</li>
|
|
338
328
|
`)}
|
|
339
329
|
</ul>
|
|
340
|
-
</details>`):ut(this._results,t=>
|
|
330
|
+
</details>`):ut(this._results,t=>ge`<li part="result">
|
|
341
331
|
${Vs(t[this._config.titleProperty])}
|
|
342
332
|
</li>`)}
|
|
343
333
|
</ul>
|
|
@@ -345,4 +335,4 @@ section.inline details.details-filter summary {
|
|
|
345
335
|
</section>
|
|
346
336
|
`)}
|
|
347
337
|
</form>
|
|
348
|
-
`}},
|
|
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"})});
|