@eox/itemfilter 0.14.2-dev.1721328490.0 → 0.14.2-dev.1721739772.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,30 +1,30 @@
1
- (function(ge,he){typeof exports=="object"&&typeof module<"u"?he(exports):typeof define=="function"&&define.amd?define(["exports"],he):(ge=typeof globalThis<"u"?globalThis:ge||self,he(ge["eox-itemfilter"]={}))})(this,function(ge){"use strict";var d1=Object.defineProperty;var Vf=ge=>{throw TypeError(ge)};var g1=(ge,he,Oe)=>he in ge?d1(ge,he,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):ge[he]=Oe;var Jn=(ge,he,Oe)=>g1(ge,typeof he!="symbol"?he+"":he,Oe),Ea=(ge,he,Oe)=>he.has(ge)||Vf("Cannot "+Oe);var pt=(ge,he,Oe)=>(Ea(ge,he,"read from private field"),Oe?Oe.call(ge):he.get(ge)),nt=(ge,he,Oe)=>he.has(ge)?Vf("Cannot add the same private member more than once"):he instanceof WeakSet?he.add(ge):he.set(ge,Oe),ho=(ge,he,Oe,ln)=>(Ea(ge,he,"write to private field"),ln?ln.call(ge,Oe):he.set(ge,Oe),Oe),Se=(ge,he,Oe)=>(Ea(ge,he,"access private method"),Oe);/**
1
+ (function(ge,he){typeof exports=="object"&&typeof module<"u"?he(exports):typeof define=="function"&&define.amd?define(["exports"],he):(ge=typeof globalThis<"u"?globalThis:ge||self,he(ge["eox-itemfilter"]={}))})(this,function(ge){"use strict";var xw=Object.defineProperty;var Tp=ge=>{throw TypeError(ge)};var Sw=(ge,he,Oe)=>he in ge?xw(ge,he,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):ge[he]=Oe;var ui=(ge,he,Oe)=>Sw(ge,typeof he!="symbol"?he+"":he,Oe),Ja=(ge,he,Oe)=>he.has(ge)||Tp("Cannot "+Oe);var ut=(ge,he,Oe)=>(Ja(ge,he,"read from private field"),Oe?Oe.call(ge):he.get(ge)),nt=(ge,he,Oe)=>he.has(ge)?Tp("Cannot add the same private member more than once"):he instanceof WeakSet?he.add(ge):he.set(ge,Oe),Lo=(ge,he,Oe,wn)=>(Ja(ge,he,"write to private field"),wn?wn.call(ge,Oe):he.set(ge,Oe),Oe),Se=(ge,he,Oe)=>(Ja(ge,he,"access private method"),Oe);/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */var Kf,Ui,Yf,Be,Jf,Ma,Pa,Zf,Oa,Xf,Qf,Wi,dr,Ca,ep,Yt,tp,rp,np,gr,ip,ka,Fi,op,zi,sp,yr,La,ap,Ln,Fr,yt,zr,lp,cp;const he=globalThis,Oe=he.ShadowRoot&&(he.ShadyCSS===void 0||he.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ln=Symbol(),Ta=new WeakMap;let up=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==ln)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o;const r=this.t;if(Oe&&e===void 0){const n=r!==void 0&&r.length===1;n&&(e=Ta.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Ta.set(r,e))}return e}toString(){return this.cssText}};const fp=t=>new up(typeof t=="string"?t:t+"",void 0,ln),pp=(t,e)=>{if(Oe)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(const r of e){const n=document.createElement("style"),i=he.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}},Ia=Oe?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const n of e.cssRules)r+=n.cssText;return fp(r)})(t):t;/**
5
+ */var Lp,oo,Rp,Be,Dp,Xa,Za,Ip,Qa,jp,Bp,so,xr,el,Np,rr,Hp,Up,Fp,Sr,Wp,tl,ao,zp,lo,qp,Ar,rl,Gp,Gn,tn,ht,rn,Vp,Kp;const he=globalThis,Oe=he.ShadowRoot&&(he.ShadyCSS===void 0||he.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,wn=Symbol(),nl=new WeakMap;let Yp=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==wn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o;const r=this.t;if(Oe&&e===void 0){const n=r!==void 0&&r.length===1;n&&(e=nl.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&nl.set(r,e))}return e}toString(){return this.cssText}};const Jp=t=>new Yp(typeof t=="string"?t:t+"",void 0,wn),Xp=(t,e)=>{if(Oe)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(const r of e){const n=document.createElement("style"),i=he.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}},il=Oe?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const n of e.cssRules)r+=n.cssText;return Jp(r)})(t):t;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:hp,defineProperty:dp,getOwnPropertyDescriptor:gp,getOwnPropertyNames:yp,getOwnPropertySymbols:vp,getPrototypeOf:mp}=Object,Bt=globalThis,Da=Bt.trustedTypes,bp=Da?Da.emptyScript:"",go=Bt.reactiveElementPolyfillSupport,cn=(t,e)=>t,yo={toAttribute(t,e){switch(e){case Boolean:t=t?bp:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Ra=(t,e)=>!hp(t,e),ja={attribute:!0,type:String,converter:yo,reflect:!1,hasChanged:Ra};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Bt.litPropertyMetadata??(Bt.litPropertyMetadata=new WeakMap);class Mr extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=ja){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){const n=Symbol(),i=this.getPropertyDescriptor(e,n,r);i!==void 0&&dp(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){const{get:i,set:o}=gp(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return i==null?void 0:i.call(this)},set(s){const c=i==null?void 0:i.call(this);o.call(this,s),this.requestUpdate(e,c,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ja}static _$Ei(){if(this.hasOwnProperty(cn("elementProperties")))return;const e=mp(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(cn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(cn("properties"))){const r=this.properties,n=[...yp(r),...vp(r)];for(const i of n)this.createProperty(i,r[i])}const e=this[Symbol.metadata];if(e!==null){const r=litPropertyMetadata.get(e);if(r!==void 0)for(const[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(const[r,n]of this.elementProperties){const i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const i of n)r.unshift(Ia(i))}else e!==void 0&&r.push(Ia(e));return r}static _$Eu(e,r){const n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(r=>r(this))}addController(e){var r;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var r;(r=this._$EO)==null||r.delete(e)}_$E_(){const e=new Map,r=this.constructor.elementProperties;for(const n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return pp(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var n;return(n=r.hostConnected)==null?void 0:n.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(r=>{var n;return(n=r.hostDisconnected)==null?void 0:n.call(r)})}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$EC(e,r){var o;const n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){const s=(((o=n.converter)==null?void 0:o.toAttribute)!==void 0?n.converter:yo).toAttribute(r,n.type);this._$Em=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(e,r){var o;const n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){const s=n.getPropertyOptions(i),c=typeof s.converter=="function"?{fromAttribute:s.converter}:((o=s.converter)==null?void 0:o.fromAttribute)!==void 0?s.converter:yo;this._$Em=i,this[i]=c.fromAttribute(r,s.type),this._$Em=null}}requestUpdate(e,r,n){if(e!==void 0){if(n??(n=this.constructor.getPropertyOptions(e)),!(n.hasChanged??Ra)(this[e],r))return;this.P(e,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,r,n){this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,s]of this._$Ep)this[o]=s;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[o,s]of i)s.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],s)}let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),(n=this._$EO)==null||n.forEach(i=>{var o;return(o=i.hostUpdate)==null?void 0:o.call(i)}),this.update(r)):this._$EU()}catch(i){throw e=!1,this._$EU(),i}e&&this._$AE(r)}willUpdate(e){}_$AE(e){var r;(r=this._$EO)==null||r.forEach(n=>{var i;return(i=n.hostUpdated)==null?void 0:i.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(r=>this._$EC(r,this[r]))),this._$EU()}updated(e){}firstUpdated(e){}}Mr.elementStyles=[],Mr.shadowRootOptions={mode:"open"},Mr[cn("elementProperties")]=new Map,Mr[cn("finalized")]=new Map,go==null||go({ReactiveElement:Mr}),(Bt.reactiveElementVersions??(Bt.reactiveElementVersions=[])).push("2.0.4");/**
9
+ */const{is:Zp,defineProperty:Qp,getOwnPropertyDescriptor:eh,getOwnPropertyNames:th,getOwnPropertySymbols:rh,getPrototypeOf:nh}=Object,Wt=globalThis,ol=Wt.trustedTypes,ih=ol?ol.emptyScript:"",To=Wt.reactiveElementPolyfillSupport,$n=(t,e)=>t,Ro={toAttribute(t,e){switch(e){case Boolean:t=t?ih:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},sl=(t,e)=>!Zp(t,e),al={attribute:!0,type:String,converter:Ro,reflect:!1,hasChanged:sl};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Wt.litPropertyMetadata??(Wt.litPropertyMetadata=new WeakMap);class Dr extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=al){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){const n=Symbol(),i=this.getPropertyDescriptor(e,n,r);i!==void 0&&Qp(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){const{get:i,set:o}=eh(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return i==null?void 0:i.call(this)},set(s){const l=i==null?void 0:i.call(this);o.call(this,s),this.requestUpdate(e,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??al}static _$Ei(){if(this.hasOwnProperty($n("elementProperties")))return;const e=nh(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty($n("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty($n("properties"))){const r=this.properties,n=[...th(r),...rh(r)];for(const i of n)this.createProperty(i,r[i])}const e=this[Symbol.metadata];if(e!==null){const r=litPropertyMetadata.get(e);if(r!==void 0)for(const[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(const[r,n]of this.elementProperties){const i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const i of n)r.unshift(il(i))}else e!==void 0&&r.push(il(e));return r}static _$Eu(e,r){const n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(r=>r(this))}addController(e){var r;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var r;(r=this._$EO)==null||r.delete(e)}_$E_(){const e=new Map,r=this.constructor.elementProperties;for(const n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Xp(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var n;return(n=r.hostConnected)==null?void 0:n.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(r=>{var n;return(n=r.hostDisconnected)==null?void 0:n.call(r)})}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$EC(e,r){var o;const n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){const s=(((o=n.converter)==null?void 0:o.toAttribute)!==void 0?n.converter:Ro).toAttribute(r,n.type);this._$Em=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(e,r){var o;const n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){const s=n.getPropertyOptions(i),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((o=s.converter)==null?void 0:o.fromAttribute)!==void 0?s.converter:Ro;this._$Em=i,this[i]=l.fromAttribute(r,s.type),this._$Em=null}}requestUpdate(e,r,n){if(e!==void 0){if(n??(n=this.constructor.getPropertyOptions(e)),!(n.hasChanged??sl)(this[e],r))return;this.P(e,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,r,n){this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,s]of this._$Ep)this[o]=s;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[o,s]of i)s.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],s)}let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),(n=this._$EO)==null||n.forEach(i=>{var o;return(o=i.hostUpdate)==null?void 0:o.call(i)}),this.update(r)):this._$EU()}catch(i){throw e=!1,this._$EU(),i}e&&this._$AE(r)}willUpdate(e){}_$AE(e){var r;(r=this._$EO)==null||r.forEach(n=>{var i;return(i=n.hostUpdated)==null?void 0:i.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(r=>this._$EC(r,this[r]))),this._$EU()}updated(e){}firstUpdated(e){}}Dr.elementStyles=[],Dr.shadowRootOptions={mode:"open"},Dr[$n("elementProperties")]=new Map,Dr[$n("finalized")]=new Map,To==null||To({ReactiveElement:Dr}),(Wt.reactiveElementVersions??(Wt.reactiveElementVersions=[])).push("2.0.4");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const un=globalThis,Zn=un.trustedTypes,Ba=Zn?Zn.createPolicy("lit-html",{createHTML:t=>t}):void 0,vo="$lit$",Ot=`lit$${(Math.random()+"").slice(9)}$`,mo="?"+Ot,wp=`<${mo}>`,tr=document,fn=()=>tr.createComment(""),pn=t=>t===null||typeof t!="object"&&typeof t!="function",Na=Array.isArray,Ha=t=>Na(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",bo=`[
14
- \f\r]`,hn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ua=/-->/g,Wa=/>/g,rr=RegExp(`>|${bo}(?:([^\\s"'>=/]+)(${bo}*=${bo}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Fa=/'/g,za=/"/g,qa=/^(?:script|style|textarea|title)$/i,$p=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),V=$p(1),Nt=Symbol.for("lit-noChange"),ve=Symbol.for("lit-nothing"),Ga=new WeakMap,nr=tr.createTreeWalker(tr,129);function Ka(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ba!==void 0?Ba.createHTML(e):e}const Va=(t,e)=>{const r=t.length-1,n=[];let i,o=e===2?"<svg>":"",s=hn;for(let c=0;c<r;c++){const l=t[c];let f,d,g=-1,m=0;for(;m<l.length&&(s.lastIndex=m,d=s.exec(l),d!==null);)m=s.lastIndex,s===hn?d[1]==="!--"?s=Ua:d[1]!==void 0?s=Wa:d[2]!==void 0?(qa.test(d[2])&&(i=RegExp("</"+d[2],"g")),s=rr):d[3]!==void 0&&(s=rr):s===rr?d[0]===">"?(s=i??hn,g=-1):d[1]===void 0?g=-2:(g=s.lastIndex-d[2].length,f=d[1],s=d[3]===void 0?rr:d[3]==='"'?za:Fa):s===za||s===Fa?s=rr:s===Ua||s===Wa?s=hn:(s=rr,i=void 0);const b=s===rr&&t[c+1].startsWith("/>")?" ":"";o+=s===hn?l+wp:g>=0?(n.push(f),l.slice(0,g)+vo+l.slice(g)+Ot+b):l+Ot+(g===-2?c:b)}return[Ka(t,o+(t[r]||"<?>")+(e===2?"</svg>":"")),n]};class dn{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let o=0,s=0;const c=e.length-1,l=this.parts,[f,d]=Va(e,r);if(this.el=dn.createElement(f,n),nr.currentNode=this.el.content,r===2){const g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(i=nr.nextNode())!==null&&l.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(const g of i.getAttributeNames())if(g.endsWith(vo)){const m=d[s++],b=i.getAttribute(g).split(Ot),A=/([.?@])?(.*)/.exec(m);l.push({type:1,index:o,name:A[2],strings:b,ctor:A[1]==="."?Ja:A[1]==="?"?Za:A[1]==="@"?Xa:gn}),i.removeAttribute(g)}else g.startsWith(Ot)&&(l.push({type:6,index:o}),i.removeAttribute(g));if(qa.test(i.tagName)){const g=i.textContent.split(Ot),m=g.length-1;if(m>0){i.textContent=Zn?Zn.emptyScript:"";for(let b=0;b<m;b++)i.append(g[b],fn()),nr.nextNode(),l.push({type:2,index:++o});i.append(g[m],fn())}}}else if(i.nodeType===8)if(i.data===mo)l.push({type:2,index:o});else{let g=-1;for(;(g=i.data.indexOf(Ot,g+1))!==-1;)l.push({type:7,index:o}),g+=Ot.length-1}o++}}static createElement(e,r){const n=tr.createElement("template");return n.innerHTML=e,n}}function ir(t,e,r=t,n){var s,c;if(e===Nt)return e;let i=n!==void 0?(s=r._$Co)==null?void 0:s[n]:r._$Cl;const o=pn(e)?void 0:e._$litDirective$;return(i==null?void 0:i.constructor)!==o&&((c=i==null?void 0:i._$AO)==null||c.call(i,!1),o===void 0?i=void 0:(i=new o(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??(r._$Co=[]))[n]=i:r._$Cl=i),i!==void 0&&(e=ir(t,i._$AS(t,e.values),i,n)),e}class Ya{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:r},parts:n}=this._$AD,i=((e==null?void 0:e.creationScope)??tr).importNode(r,!0);nr.currentNode=i;let o=nr.nextNode(),s=0,c=0,l=n[0];for(;l!==void 0;){if(s===l.index){let f;l.type===2?f=new Pr(o,o.nextSibling,this,e):l.type===1?f=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(f=new Qa(o,this,e)),this._$AV.push(f),l=n[++c]}s!==(l==null?void 0:l.index)&&(o=nr.nextNode(),s++)}return nr.currentNode=tr,i}p(e){let r=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}}class Pr{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=ve,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=ir(this,e,r),pn(e)?e===ve||e==null||e===""?(this._$AH!==ve&&this._$AR(),this._$AH=ve):e!==this._$AH&&e!==Nt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ha(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==ve&&pn(this._$AH)?this._$AA.nextSibling.data=e:this.T(tr.createTextNode(e)),this._$AH=e}$(e){var o;const{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=dn.createElement(Ka(n.h,n.h[0]),this.options)),n);if(((o=this._$AH)==null?void 0:o._$AD)===i)this._$AH.p(r);else{const s=new Ya(i,this),c=s.u(this.options);s.p(r),this.T(c),this._$AH=s}}_$AC(e){let r=Ga.get(e.strings);return r===void 0&&Ga.set(e.strings,r=new dn(e)),r}k(e){Na(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let n,i=0;for(const o of e)i===r.length?r.push(n=new Pr(this.S(fn()),this.S(fn()),this,this.options)):n=r[i],n._$AI(o),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,r);e&&e!==this._$AB;){const i=e.nextSibling;e.remove(),e=i}}setConnected(e){var r;this._$AM===void 0&&(this._$Cv=e,(r=this._$AP)==null||r.call(this,e))}}class gn{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,o){this.type=1,this._$AH=ve,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=ve}_$AI(e,r=this,n,i){const o=this.strings;let s=!1;if(o===void 0)e=ir(this,e,r,0),s=!pn(e)||e!==this._$AH&&e!==Nt,s&&(this._$AH=e);else{const c=e;let l,f;for(e=o[0],l=0;l<o.length-1;l++)f=ir(this,c[n+l],r,l),f===Nt&&(f=this._$AH[l]),s||(s=!pn(f)||f!==this._$AH[l]),f===ve?e=ve:e!==ve&&(e+=(f??"")+o[l+1]),this._$AH[l]=f}s&&!i&&this.j(e)}j(e){e===ve?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Ja extends gn{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ve?void 0:e}}class Za extends gn{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ve)}}class Xa extends gn{constructor(e,r,n,i,o){super(e,r,n,i,o),this.type=5}_$AI(e,r=this){if((e=ir(this,e,r,0)??ve)===Nt)return;const n=this._$AH,i=e===ve&&n!==ve||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==ve&&(n===ve||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r;typeof this._$AH=="function"?this._$AH.call(((r=this.options)==null?void 0:r.host)??this.element,e):this._$AH.handleEvent(e)}}class Qa{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){ir(this,e)}}const xp={P:vo,A:Ot,C:mo,M:1,L:Va,R:Ya,D:Ha,V:ir,I:Pr,H:gn,N:Za,U:Xa,B:Ja,F:Qa},wo=un.litHtmlPolyfillSupport;wo==null||wo(dn,Pr),(un.litHtmlVersions??(un.litHtmlVersions=[])).push("3.1.2");const Sp=(t,e,r)=>{const n=(r==null?void 0:r.renderBefore)??e;let i=n._$litPart$;if(i===void 0){const o=(r==null?void 0:r.renderBefore)??null;n._$litPart$=i=new Pr(e.insertBefore(fn(),o),o,void 0,r??{})}return i._$AI(t),i};/**
13
+ */const xn=globalThis,fi=xn.trustedTypes,ll=fi?fi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Do="$lit$",Tt=`lit$${(Math.random()+"").slice(9)}$`,Io="?"+Tt,oh=`<${Io}>`,lr=document,Sn=()=>lr.createComment(""),An=t=>t===null||typeof t!="object"&&typeof t!="function",cl=Array.isArray,ul=t=>cl(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",jo=`[
14
+ \f\r]`,_n=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fl=/-->/g,pl=/>/g,cr=RegExp(`>|${jo}(?:([^\\s"'>=/]+)(${jo}*=${jo}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),hl=/'/g,dl=/"/g,gl=/^(?:script|style|textarea|title)$/i,sh=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),X=sh(1),zt=Symbol.for("lit-noChange"),be=Symbol.for("lit-nothing"),yl=new WeakMap,ur=lr.createTreeWalker(lr,129);function vl(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ll!==void 0?ll.createHTML(e):e}const ml=(t,e)=>{const r=t.length-1,n=[];let i,o=e===2?"<svg>":"",s=_n;for(let l=0;l<r;l++){const a=t[l];let u,h,d=-1,m=0;for(;m<a.length&&(s.lastIndex=m,h=s.exec(a),h!==null);)m=s.lastIndex,s===_n?h[1]==="!--"?s=fl:h[1]!==void 0?s=pl:h[2]!==void 0?(gl.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=cr):h[3]!==void 0&&(s=cr):s===cr?h[0]===">"?(s=i??_n,d=-1):h[1]===void 0?d=-2:(d=s.lastIndex-h[2].length,u=h[1],s=h[3]===void 0?cr:h[3]==='"'?dl:hl):s===dl||s===hl?s=cr:s===fl||s===pl?s=_n:(s=cr,i=void 0);const v=s===cr&&t[l+1].startsWith("/>")?" ":"";o+=s===_n?a+oh:d>=0?(n.push(u),a.slice(0,d)+Do+a.slice(d)+Tt+v):a+Tt+(d===-2?l:v)}return[vl(t,o+(t[r]||"<?>")+(e===2?"</svg>":"")),n]};class En{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let o=0,s=0;const l=e.length-1,a=this.parts,[u,h]=ml(e,r);if(this.el=En.createElement(u,n),ur.currentNode=this.el.content,r===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=ur.nextNode())!==null&&a.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(const d of i.getAttributeNames())if(d.endsWith(Do)){const m=h[s++],v=i.getAttribute(d).split(Tt),S=/([.?@])?(.*)/.exec(m);a.push({type:1,index:o,name:S[2],strings:v,ctor:S[1]==="."?wl:S[1]==="?"?$l:S[1]==="@"?xl:Mn}),i.removeAttribute(d)}else d.startsWith(Tt)&&(a.push({type:6,index:o}),i.removeAttribute(d));if(gl.test(i.tagName)){const d=i.textContent.split(Tt),m=d.length-1;if(m>0){i.textContent=fi?fi.emptyScript:"";for(let v=0;v<m;v++)i.append(d[v],Sn()),ur.nextNode(),a.push({type:2,index:++o});i.append(d[m],Sn())}}}else if(i.nodeType===8)if(i.data===Io)a.push({type:2,index:o});else{let d=-1;for(;(d=i.data.indexOf(Tt,d+1))!==-1;)a.push({type:7,index:o}),d+=Tt.length-1}o++}}static createElement(e,r){const n=lr.createElement("template");return n.innerHTML=e,n}}function fr(t,e,r=t,n){var s,l;if(e===zt)return e;let i=n!==void 0?(s=r._$Co)==null?void 0:s[n]:r._$Cl;const o=An(e)?void 0:e._$litDirective$;return(i==null?void 0:i.constructor)!==o&&((l=i==null?void 0:i._$AO)==null||l.call(i,!1),o===void 0?i=void 0:(i=new o(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??(r._$Co=[]))[n]=i:r._$Cl=i),i!==void 0&&(e=fr(t,i._$AS(t,e.values),i,n)),e}class bl{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:r},parts:n}=this._$AD,i=((e==null?void 0:e.creationScope)??lr).importNode(r,!0);ur.currentNode=i;let o=ur.nextNode(),s=0,l=0,a=n[0];for(;a!==void 0;){if(s===a.index){let u;a.type===2?u=new Ir(o,o.nextSibling,this,e):a.type===1?u=new a.ctor(o,a.name,a.strings,this,e):a.type===6&&(u=new Sl(o,this,e)),this._$AV.push(u),a=n[++l]}s!==(a==null?void 0:a.index)&&(o=ur.nextNode(),s++)}return ur.currentNode=lr,i}p(e){let r=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}}class Ir{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=be,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=fr(this,e,r),An(e)?e===be||e==null||e===""?(this._$AH!==be&&this._$AR(),this._$AH=be):e!==this._$AH&&e!==zt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ul(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==be&&An(this._$AH)?this._$AA.nextSibling.data=e:this.T(lr.createTextNode(e)),this._$AH=e}$(e){var o;const{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=En.createElement(vl(n.h,n.h[0]),this.options)),n);if(((o=this._$AH)==null?void 0:o._$AD)===i)this._$AH.p(r);else{const s=new bl(i,this),l=s.u(this.options);s.p(r),this.T(l),this._$AH=s}}_$AC(e){let r=yl.get(e.strings);return r===void 0&&yl.set(e.strings,r=new En(e)),r}k(e){cl(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let n,i=0;for(const o of e)i===r.length?r.push(n=new Ir(this.S(Sn()),this.S(Sn()),this,this.options)):n=r[i],n._$AI(o),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,r);e&&e!==this._$AB;){const i=e.nextSibling;e.remove(),e=i}}setConnected(e){var r;this._$AM===void 0&&(this._$Cv=e,(r=this._$AP)==null||r.call(this,e))}}class Mn{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,o){this.type=1,this._$AH=be,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=be}_$AI(e,r=this,n,i){const o=this.strings;let s=!1;if(o===void 0)e=fr(this,e,r,0),s=!An(e)||e!==this._$AH&&e!==zt,s&&(this._$AH=e);else{const l=e;let a,u;for(e=o[0],a=0;a<o.length-1;a++)u=fr(this,l[n+a],r,a),u===zt&&(u=this._$AH[a]),s||(s=!An(u)||u!==this._$AH[a]),u===be?e=be:e!==be&&(e+=(u??"")+o[a+1]),this._$AH[a]=u}s&&!i&&this.j(e)}j(e){e===be?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class wl extends Mn{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===be?void 0:e}}class $l extends Mn{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==be)}}class xl extends Mn{constructor(e,r,n,i,o){super(e,r,n,i,o),this.type=5}_$AI(e,r=this){if((e=fr(this,e,r,0)??be)===zt)return;const n=this._$AH,i=e===be&&n!==be||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==be&&(n===be||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r;typeof this._$AH=="function"?this._$AH.call(((r=this.options)==null?void 0:r.host)??this.element,e):this._$AH.handleEvent(e)}}class Sl{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){fr(this,e)}}const ah={P:Do,A:Tt,C:Io,M:1,L:ml,R:bl,D:ul,V:fr,I:Ir,H:Mn,N:$l,U:xl,B:wl,F:Sl},Bo=xn.litHtmlPolyfillSupport;Bo==null||Bo(En,Ir),(xn.litHtmlVersions??(xn.litHtmlVersions=[])).push("3.1.2");const lh=(t,e,r)=>{const n=(r==null?void 0:r.renderBefore)??e;let i=n._$litPart$;if(i===void 0){const o=(r==null?void 0:r.renderBefore)??null;n._$litPart$=i=new Ir(e.insertBefore(Sn(),o),o,void 0,r??{})}return i._$AI(t),i};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */let it=class extends Mr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var r;const e=super.createRenderRoot();return(r=this.renderOptions).renderBefore??(r.renderBefore=e.firstChild),e}update(e){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Sp(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return Nt}};it._$litElement$=!0,it.finalized=!0,(Kf=globalThis.litElementHydrateSupport)==null||Kf.call(globalThis,{LitElement:it});const $o=globalThis.litElementPolyfillSupport;$o==null||$o({LitElement:it}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.4");/**
19
+ */let it=class extends Dr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var r;const e=super.createRenderRoot();return(r=this.renderOptions).renderBefore??(r.renderBefore=e.firstChild),e}update(e){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=lh(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return zt}};it._$litElement$=!0,it.finalized=!0,(Lp=globalThis.litElementHydrateSupport)==null||Lp.call(globalThis,{LitElement:it});const No=globalThis.litElementPolyfillSupport;No==null||No({LitElement:it}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.4");/**
20
20
  * @license
21
21
  * Copyright 2021 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
- */function*Xn(t,e){if(t!==void 0){let r=0;for(const n of t)yield e(n,r++)}}/**
23
+ */function*pi(t,e){if(t!==void 0){let r=0;for(const n of t)yield e(n,r++)}}/**
24
24
  * @license
25
25
  * Copyright 2021 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */function Qe(t,e,r){return t?e(t):r==null?void 0:r(t)}const Ap=`
27
+ */function Ge(t,e,r){return t?e(t):r==null?void 0:r(t)}const ch=`
28
28
  :host {
29
29
  display: flex;
30
30
  box-sizing: border-box;
@@ -49,7 +49,7 @@ form#itemfilter:not(.inline) {
49
49
  details {
50
50
  width: 100%;
51
51
  }
52
- `,yn=`
52
+ `,Pn=`
53
53
  :host, :root {
54
54
  --item-color: color-mix(
55
55
  in srgb,
@@ -106,10 +106,19 @@ details > summary::-webkit-details-marker {
106
106
  }
107
107
 
108
108
  .title {
109
- font-size: small;
109
+ font-size: 13px;
110
110
  align-items: center;
111
111
  text-transform: capitalize;
112
112
  }
113
+ .subtitle {
114
+ font-size: 11px;
115
+ opacity: .7;
116
+ margin-top: 6px;
117
+ }
118
+ .title-container {
119
+ display: flex;
120
+ flex-direction: column;
121
+ }
113
122
  h6.main-heading {
114
123
  font-size: 1rem;
115
124
  margin-block-start: 1.33em;
@@ -178,13 +187,12 @@ section:not(section:last-of-type) {
178
187
  display: flex;
179
188
  flex-direction: column;
180
189
  }
181
- ul li {
190
+ ul:not(#filters) > li {
182
191
  padding: 5px 10px;
183
192
  }
184
193
  section {
185
194
  position: relative;
186
195
  background-color: var(--background-color);
187
- padding: 4px;
188
196
  }
189
197
  button#filter-reset {
190
198
  position: absolute;
@@ -235,13 +243,11 @@ eox-itemfilter-expandcontainer button.reset-icon:before {
235
243
  .inline-content {
236
244
  border: 1.5px solid var(--secondary-color);
237
245
  border-radius: 4px;
238
- position: absolute;
239
- width: calc(100% - 3px);
240
246
  max-height: 300px;
241
247
  overflow-y: auto;
242
248
  background: var(--inline-bg-color);
243
- z-index: 1;
244
- margin-top: 0.5rem;
249
+ margin-top: 4px;
250
+ padding: 8px;
245
251
  }
246
252
  .inline-container {
247
253
  position: relative;
@@ -266,6 +272,15 @@ eox-itemfilter-expandcontainer button.reset-icon:before {
266
272
  .inline-container:hover {
267
273
  border: 1px solid var(--primary-color);
268
274
  }
275
+ [popover] {
276
+ position: fixed;
277
+ top: 0;
278
+ left: 0;
279
+ margin: 0;
280
+ padding: 0;
281
+ background-color: var(--background-color);
282
+ border: none;
283
+ }
269
284
  .input-container {
270
285
  display: flex;
271
286
  flex: 1;
@@ -463,55 +478,53 @@ li.highlighted,
463
478
  .input-container.dirty-filter-input {
464
479
  margin-left: 25px;
465
480
  }
466
- `,_p=`:root,:host { --spacing: 1rem; --block-spacing-vertical: calc(var(--spacing) * 2); --block-spacing-horizontal: var(--spacing); --background-color: var(--eox-background-color, white); --color: var(--eox-color, #2c3d49); --h-color: var(--eox-h-color, var(--color)); --hover-transparency: var(--eox-hover-transparency, 20%); --bg-hover-transparency: var(--eox-bg-hover-transparency, 40%); --btn-hover-transparency: var(--eox-btn-hover-transparency, 80%); --primary-color: var(--eox-primary-color, #004170); --primary-color-hover: color-mix( in srgb, var(--primary-color) var(--hover-transparency), transparent ); --primary-bg-color-hover: color-mix( in srgb, var(--primary-color) var(--bg-hover-transparency), transparent ); --primary-btn-color-hover: color-mix( in srgb, var(--primary-color) var(--btn-hover-transparency), transparent ); --secondary-color: var(--eox-secondary-color, #c6d4df); --secondary-color-hover: color-mix( in srgb, var(--secondary-color) var(--hover-transparency), transparent ); --secondary-bg-color-hover: color-mix( in srgb, var(--secondary-color) var(--bg-hover-transparency), transparent ); --secondary-btn-color-hover: color-mix( in srgb, var(--secondary-color) var(--btn-hover-transparency), transparent ); --success: var(--eox-success, #26cc0f); --warning: var(--eox-warning, #f18e32); --error: var(--eox-error, #ff5252); --header-font-family: var(--eox-header-font-family, "Roboto", sans-serif); --body-font-family: var(--eox-body-font-family, "Roboto", sans-serif);}* { font-size: normal; font-family: var(--body-font-family); color: var(--eox-color);}h1,h2,h3,h4,h5,h6 { font-family: var(--header-font-family);}span,p,div,main,label { font-family: var(--body-font-family);}@media (min-width: 576px) { .container { max-width: 510px; padding-right: 0; padding-left: 0; --block-spacing-vertical: calc(var(--spacing) * 2.5); }}@media (min-width: 768px) { .container { max-width: 700px; --block-spacing-vertical: calc(var(--spacing) * 3); }}@media (min-width: 992px) { .container { max-width: 920px; --block-spacing-vertical: calc(var(--spacing) * 3.5); }}@media (min-width: 1200px) { .container { max-width: 1130px; --block-spacing-vertical: calc(var(--spacing) * 4); }}.container { width: 100%; margin-right: auto; margin-left: auto; display: block; padding: var(--block-spacing-vertical) var(--block-spacing-horizontal);}h1,h2,h3 { line-height: 120%; margin-top: 0.8rem; margin-bottom: 0.8rem;}p { --font-size: 1rem; font-weight: 400; line-height: 170%; margin-top: 0.8rem; margin-bottom: 1.6rem; font-size: var(--font-size);}body { padding: 0; margin: 0;}.sb-show-main.sb-main-padded { padding: 0;}h1,h2,h3,h4,h5,h6 { --font-weight: 700;}h1 { --font-size: 3rem; --typography-spacing-vertical: 0.5rem;}h2 { --font-size: 2rem; --typography-spacing-vertical: 0.5rem;}h3 { --font-size: 1.75rem; --typography-spacing-vertical: 0.5rem;}h4 { --font-size: 1.5rem; --typography-spacing-vertical: 0.5rem;}h5 { --font-size: 1.25rem; --typography-spacing-vertical: 0.5rem;}h1,h2,h3,h4,h5,h6 { margin-top: 0; margin-bottom: var(--typography-spacing-vertical); color: var(--h-color); font-weight: var(--font-weight); font-size: var(--font-size); font-family: var(--header-font-family);}button,.button { display: inline-flex; position: relative; align-items: center; color: #fff; border-width: 0; outline: none; border-radius: 4px; padding: 16px; height: 36px; cursor: pointer; font-family: inherit; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1.25px; font-weight: 500; box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); transition-property: box-shadow, transform, opacity, background; transition-duration: 0.28s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);}button:hover:not([disabled]):not(.icon):not(.json-editor-btntype-*),.button:hover:not([disabled]):not(.icon) { box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); background: var(--primary-btn-color-hover);}button,button:active,.button,.button:active { background: var(--primary-color);}button[disabled],.button[disabled] { opacity: 0.5; cursor: not-allowed;}button.block,.button.block { display: block;}button.outline,.button.outline { background: transparent; box-shadow: none; color: var(--primary-color); outline: 1px solid var(--primary-color);}button.outline:hover,.button.outline:hover { background: transparent;}button.icon,.button.icon,button[class*="json-editor-btntype-"] { background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 50%; width: 24px; height: 24px; text-indent: -9999px;}button.icon-text,.button.icon-text { text-indent: 26px;}button.icon-text.block,.button.icon-text.block { text-indent: 20px;}button.icon:before,button.icon-text:before,.button.icon:before,.button.icon-text:before { position: absolute; text-indent: 0; line-height: initial;}button.icon-text.block:before,.button.icon-text.block:before { text-indent: -54px;}button.icon:before,.button.icon:before,button[class*="json-editor-btntype-"]::before { width: 24px; height: 24px; margin-right: 0;}button.icon-text:before,.button.icon-text:before { width: 18px; height: 18px;}button.small,.button.small { height: 28px; padding: 12.4px; font-size: 0.75rem;}button.smallest.icon,button.smallest.icon::before { height: 16px; width: 16px; padding: 0;}input[type="checkbox"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}input[type="checkbox"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="checkbox"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");}textarea { height: 90px; resize: none; border-radius: 4px; box-sizing: border-box !important; width: 100%; padding: 5px 7px; border: 1px solid var(--secondary-color); font-size: smaller; background: var(--background-color);}input[type="text"],input[type="url"],input[type="email"],input[type="password"],input[type="text"],input[type="number"],input[type="search"],input[type="tel"],select { box-sizing: border-box; width: 100%; margin-top: 0.5rem; margin-bottom: 0.5rem; padding: 5px 7px; border-radius: 4px; border: 1px solid #0004;}ul.list-wrap { padding: 0;}ul.list-wrap li:hover,ul.list-wrap li.selected { background: var(--secondary-bg-color-hover);}ul.list-wrap li { list-style: none; padding: 4px;}ul.list-wrap li { border-bottom: 1.2px solid var(--secondary-color);}ul.list-wrap li:first-child { border-top: 1.2px solid var(--secondary-color);}ul.list-wrap li .list { width: 100%; align-items: center; justify-content: space-between; display: flex; align-items: center; cursor: pointer; font-size: small; gap: 10px;}ul.list-wrap li .list span { display: flex; align-items: center; cursor: pointer; font-size: small; flex-grow: 1;}input[type="radio"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}label span { font-size: small;}input[type="radio"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="radio"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");}input[type="range"] { -webkit-appearance: none; width: 90%; margin-left: 5%; height: 6px; border-radius: 5px; background: #d7dcdf; outline: none; padding: 0;}input[type="range"]::-webkit-slider-thumb { appearance: none; width: 15px; height: 15px; border-radius: 50%; background: #2c3e50; cursor: pointer; transition: background 0.15s ease-in-out;}.range-slider { margin: 60px 0 0 0;}.range-slider { width: 100%;}input[type="range"]::-webkit-slider-thumb:hover { background: #00416f;}input[type="range"]:active::-webkit-slider-thumb { background: #00416f;}input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: #2c3e50; cursor: pointer; transition: background 0.15s ease-in-out;}input[type="range"]::-moz-range-thumb:hover { background: #00416f;}input[type="range"]:active::-moz-range-thumb { background: #00416f;}input[type="range"]:focus::-webkit-slider-thumb { box-shadow: 0 0 0 3px #fff0, 0 0 0 6px #00416f00;}.range-slider__value { display: inline-block; position: relative; width: 60px; color: #fff; line-height: 20px; text-align: center; border-radius: 3px; background: #2c3e50; padding: 5px 10px; margin-left: 8px;}.range-slider__value:after { position: absolute; top: 8px; left: -7px; width: 0; height: 0; border-top: 7px solid transparent; border-right: 7px solid #2c3e50; border-bottom: 7px solid transparent; content: "";}input::-moz-focus-inner,input::-moz-focus-outer { border: 0;}`;class Ep extends it{constructor(){super();nt(this,Ui);this.filterObject={},this.unstyled=!1}static get properties(){return{filterObject:{attribute:!1,type:Object},unstyled:{type:Boolean}}}render(){return V`
481
+ `,uh=`:root,:host { --spacing: 1rem; --block-spacing-vertical: calc(var(--spacing) * 2); --block-spacing-horizontal: var(--spacing); --background-color: var(--eox-background-color, white); --color: var(--eox-color, #2c3d49); --h-color: var(--eox-h-color, var(--color)); --hover-transparency: var(--eox-hover-transparency, 20%); --bg-hover-transparency: var(--eox-bg-hover-transparency, 40%); --btn-hover-transparency: var(--eox-btn-hover-transparency, 80%); --primary-color: var(--eox-primary-color, #004170); --primary-color-hover: color-mix( in srgb, var(--primary-color) var(--hover-transparency), transparent ); --primary-bg-color-hover: color-mix( in srgb, var(--primary-color) var(--bg-hover-transparency), transparent ); --primary-btn-color-hover: color-mix( in srgb, var(--primary-color) var(--btn-hover-transparency), transparent ); --secondary-color: var(--eox-secondary-color, #c6d4df); --secondary-color-hover: color-mix( in srgb, var(--secondary-color) var(--hover-transparency), transparent ); --secondary-bg-color-hover: color-mix( in srgb, var(--secondary-color) var(--bg-hover-transparency), transparent ); --secondary-btn-color-hover: color-mix( in srgb, var(--secondary-color) var(--btn-hover-transparency), transparent ); --success: var(--eox-success, #26cc0f); --warning: var(--eox-warning, #f18e32); --error: var(--eox-error, #ff5252); --header-font-family: var(--eox-header-font-family, "Roboto", sans-serif); --body-font-family: var(--eox-body-font-family, "Roboto", sans-serif);}* { font-size: normal; font-family: var(--body-font-family); color: var(--eox-color);}h1,h2,h3,h4,h5,h6 { font-family: var(--header-font-family);}span,p,div,main,label { font-family: var(--body-font-family);}@media (min-width: 576px) { .container { max-width: 510px; padding-right: 0; padding-left: 0; --block-spacing-vertical: calc(var(--spacing) * 2.5); }}@media (min-width: 768px) { .container { max-width: 700px; --block-spacing-vertical: calc(var(--spacing) * 3); }}@media (min-width: 992px) { .container { max-width: 920px; --block-spacing-vertical: calc(var(--spacing) * 3.5); }}@media (min-width: 1200px) { .container { max-width: 1130px; --block-spacing-vertical: calc(var(--spacing) * 4); }}.container { width: 100%; margin-right: auto; margin-left: auto; display: block; padding: var(--block-spacing-vertical) var(--block-spacing-horizontal);}h1,h2,h3 { line-height: 120%; margin-top: 0.8rem; margin-bottom: 0.8rem;}p { --font-size: 1rem; font-weight: 400; line-height: 170%; margin-top: 0.8rem; margin-bottom: 1.6rem; font-size: var(--font-size);}body { padding: 0; margin: 0;}.sb-show-main.sb-main-padded { padding: 0;}h1,h2,h3,h4,h5,h6 { --font-weight: 700;}h1 { --font-size: 3rem; --typography-spacing-vertical: 0.5rem;}h2 { --font-size: 2rem; --typography-spacing-vertical: 0.5rem;}h3 { --font-size: 1.75rem; --typography-spacing-vertical: 0.5rem;}h4 { --font-size: 1.5rem; --typography-spacing-vertical: 0.5rem;}h5 { --font-size: 1.25rem; --typography-spacing-vertical: 0.5rem;}h1,h2,h3,h4,h5,h6 { margin-top: 0; margin-bottom: var(--typography-spacing-vertical); color: var(--h-color); font-weight: var(--font-weight); font-size: var(--font-size); font-family: var(--header-font-family);}button,.button { display: inline-flex; position: relative; align-items: center; color: #fff; border-width: 0; outline: none; border-radius: 4px; padding: 16px; height: 36px; cursor: pointer; font-family: inherit; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1.25px; font-weight: 500; box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); transition-property: box-shadow, transform, opacity, background; transition-duration: 0.28s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);}button:hover:not([disabled]):not(.icon):not(.json-editor-btntype-*),.button:hover:not([disabled]):not(.icon) { box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); background: var(--primary-btn-color-hover);}button,button:active,.button,.button:active { background: var(--primary-color);}button[disabled],.button[disabled] { opacity: 0.5; cursor: not-allowed;}button.block,.button.block { display: block;}button.outline,.button.outline { background: transparent; box-shadow: none; color: var(--primary-color); outline: 1px solid var(--primary-color);}button.outline:hover,.button.outline:hover { background: transparent;}button.icon,.button.icon,button[class*="json-editor-btntype-"] { background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 50%; width: 24px; height: 24px; text-indent: -9999px;}button.icon-text,.button.icon-text { text-indent: 26px;}button.icon-text.block,.button.icon-text.block { text-indent: 20px;}button.icon:before,button.icon-text:before,.button.icon:before,.button.icon-text:before { position: absolute; text-indent: 0; line-height: initial;}button.icon-text.block:before,.button.icon-text.block:before { text-indent: -54px;}button.icon:before,.button.icon:before,button[class*="json-editor-btntype-"]::before { width: 24px; height: 24px; margin-right: 0;}button.icon-text:before,.button.icon-text:before { width: 18px; height: 18px;}button.small,.button.small { height: 28px; padding: 12.4px; font-size: 0.75rem;}button.smallest.icon,button.smallest.icon::before { height: 16px; width: 16px; padding: 0;}input[type="checkbox"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}input[type="checkbox"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="checkbox"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");}textarea { height: 90px; resize: none; border-radius: 4px; box-sizing: border-box !important; width: 100%; padding: 5px 7px; border: 1px solid var(--secondary-color); font-size: smaller; background: var(--background-color);}input[type="text"],input[type="url"],input[type="email"],input[type="password"],input[type="text"],input[type="number"],input[type="search"],input[type="tel"],select { box-sizing: border-box; width: 100%; margin-top: 0.5rem; margin-bottom: 0.5rem; padding: 5px 7px; border-radius: 4px; border: 1px solid #0004;}ul.list-wrap { padding: 0;}ul.list-wrap li:hover,ul.list-wrap li.selected { background: var(--secondary-bg-color-hover);}ul.list-wrap li { list-style: none; padding: 4px;}ul.list-wrap li { border-bottom: 1.2px solid var(--secondary-color);}ul.list-wrap li:first-child { border-top: 1.2px solid var(--secondary-color);}ul.list-wrap li .list { width: 100%; align-items: center; justify-content: space-between; display: flex; align-items: center; cursor: pointer; font-size: small; gap: 10px;}ul.list-wrap li .list span { display: flex; align-items: center; cursor: pointer; font-size: small; flex-grow: 1;}input[type="radio"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}label span { font-size: small;}input[type="radio"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="radio"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");}input[type="range"] { -webkit-appearance: none; width: 90%; margin-left: 5%; height: 6px; border-radius: 5px; background: #d7dcdf; outline: none; padding: 0;}input[type="range"]::-webkit-slider-thumb { appearance: none; width: 15px; height: 15px; border-radius: 50%; background: #2c3e50; cursor: pointer; transition: background 0.15s ease-in-out;}.range-slider { margin: 60px 0 0 0;}.range-slider { width: 100%;}input[type="range"]::-webkit-slider-thumb:hover { background: #00416f;}input[type="range"]:active::-webkit-slider-thumb { background: #00416f;}input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: #2c3e50; cursor: pointer; transition: background 0.15s ease-in-out;}input[type="range"]::-moz-range-thumb:hover { background: #00416f;}input[type="range"]:active::-moz-range-thumb { background: #00416f;}input[type="range"]:focus::-webkit-slider-thumb { box-shadow: 0 0 0 3px #fff0, 0 0 0 6px #00416f00;}.range-slider__value { display: inline-block; position: relative; width: 60px; color: #fff; line-height: 20px; text-align: center; border-radius: 3px; background: #2c3e50; padding: 5px 10px; margin-left: 8px;}.range-slider__value:after { position: absolute; top: 8px; left: -7px; width: 0; height: 0; border-top: 7px solid transparent; border-right: 7px solid #2c3e50; border-bottom: 7px solid transparent; content: "";}input::-moz-focus-inner,input::-moz-focus-outer { border: 0;}`;class fh extends it{constructor(){super();nt(this,oo);this.filterObject={},this.unstyled=!1}static get properties(){return{filterObject:{attribute:!1,type:Object},unstyled:{type:Boolean}}}render(){return X`
467
482
  <style>
468
- ${!this.unstyled&&yn}
483
+ ${!this.unstyled&&Pn}
469
484
  </style>
470
485
 
471
- ${Qe(this.filterObject.featured,()=>V`<slot name="filter"></slot>`,()=>V`<details
472
- @toggle="${Se(this,Ui,Yf)}"
473
- class="details-filter"
474
- ?open=${this.filterObject.expanded||ve}
475
- >
476
- <summary>
477
- <span
478
- class="title"
479
- style="${!this.filterObject.title&&"text-transform: capitalize"}"
480
- >
481
- ${this.filterObject.title||this.filterObject.key||"Filter"}
482
- <slot name="reset-button"></slot>
483
- </span>
484
- </summary>
485
- <div>
486
- <slot name="filter"></slot>
487
- </div>
488
- </details>`)}
489
- `}}Ui=new WeakSet,Yf=function(r){this.dispatchEvent(new CustomEvent("details-toggled",{detail:r,bubbles:!0,composed:!0}))},customElements.define("eox-itemfilter-expandcontainer",Ep);function Ct(t){return Array.isArray?Array.isArray(t):rl(t)==="[object Array]"}const Mp=1/0;function Pp(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-Mp?"-0":e}function Op(t){return t==null?"":Pp(t)}function bt(t){return typeof t=="string"}function el(t){return typeof t=="number"}function Cp(t){return t===!0||t===!1||kp(t)&&rl(t)=="[object Boolean]"}function tl(t){return typeof t=="object"}function kp(t){return tl(t)&&t!==null}function ot(t){return t!=null}function xo(t){return!t.trim().length}function rl(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const y1="Extended search is not available",Lp="Incorrect 'index' type",Tp=t=>`Invalid value for key ${t}`,Ip=t=>`Pattern length exceeds max of ${t}.`,Dp=t=>`Missing ${t} property in key`,Rp=t=>`Property 'weight' in key '${t}' must be a positive integer`,nl=Object.prototype.hasOwnProperty;class jp{constructor(e){this._keys=[],this._keyMap={};let r=0;e.forEach(n=>{let i=il(n);this._keys.push(i),this._keyMap[i.id]=i,r+=i.weight}),this._keys.forEach(n=>{n.weight/=r})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function il(t){let e=null,r=null,n=null,i=1,o=null;if(bt(t)||Ct(t))n=t,e=ol(t),r=So(t);else{if(!nl.call(t,"name"))throw new Error(Dp("name"));const s=t.name;if(n=s,nl.call(t,"weight")&&(i=t.weight,i<=0))throw new Error(Rp(s));e=ol(s),r=So(s),o=t.getFn}return{path:e,id:r,weight:i,src:n,getFn:o}}function ol(t){return Ct(t)?t:t.split(".")}function So(t){return Ct(t)?t.join("."):t}function Bp(t,e){let r=[],n=!1;const i=(o,s,c)=>{if(ot(o))if(!s[c])r.push(o);else{let l=s[c];const f=o[l];if(!ot(f))return;if(c===s.length-1&&(bt(f)||el(f)||Cp(f)))r.push(Op(f));else if(Ct(f)){n=!0;for(let d=0,g=f.length;d<g;d+=1)i(f[d],s,c+1)}else s.length&&i(f,s,c+1)}};return i(t,bt(e)?e.split("."):e,0),n?r:r[0]}var z={...{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},...{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},...{location:0,threshold:.6,distance:100},...{useExtendedSearch:!1,getFn:Bp,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const Np=/[^ ]+/g;function Hp(t=1,e=3){const r=new Map,n=Math.pow(10,e);return{get(i){const o=i.match(Np).length;if(r.has(o))return r.get(o);const s=1/Math.pow(o,.5*t),c=parseFloat(Math.round(s*n)/n);return r.set(o,c),c},clear(){r.clear()}}}class Ao{constructor({getFn:e=z.getFn,fieldNormWeight:r=z.fieldNormWeight}={}){this.norm=Hp(r,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((r,n)=>{this._keysMap[r.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,bt(this.docs[0])?this.docs.forEach((e,r)=>{this._addString(e,r)}):this.docs.forEach((e,r)=>{this._addObject(e,r)}),this.norm.clear())}add(e){const r=this.size();bt(e)?this._addString(e,r):this._addObject(e,r)}removeAt(e){this.records.splice(e,1);for(let r=e,n=this.size();r<n;r+=1)this.records[r].i-=1}getValueForItemAtKeyId(e,r){return e[this._keysMap[r]]}size(){return this.records.length}_addString(e,r){if(!ot(e)||xo(e))return;let n={v:e,i:r,n:this.norm.get(e)};this.records.push(n)}_addObject(e,r){let n={i:r,$:{}};this.keys.forEach((i,o)=>{let s=i.getFn?i.getFn(e):this.getFn(e,i.path);if(ot(s)){if(Ct(s)){let c=[];const l=[{nestedArrIndex:-1,value:s}];for(;l.length;){const{nestedArrIndex:f,value:d}=l.pop();if(ot(d))if(bt(d)&&!xo(d)){let g={v:d,i:f,n:this.norm.get(d)};c.push(g)}else Ct(d)&&d.forEach((g,m)=>{l.push({nestedArrIndex:m,value:g})})}n.$[o]=c}else if(bt(s)&&!xo(s)){let c={v:s,n:this.norm.get(s)};n.$[o]=c}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function sl(t,e,{getFn:r=z.getFn,fieldNormWeight:n=z.fieldNormWeight}={}){const i=new Ao({getFn:r,fieldNormWeight:n});return i.setKeys(t.map(il)),i.setSources(e),i.create(),i}function Up(t,{getFn:e=z.getFn,fieldNormWeight:r=z.fieldNormWeight}={}){const{keys:n,records:i}=t,o=new Ao({getFn:e,fieldNormWeight:r});return o.setKeys(n),o.setIndexRecords(i),o}function Qn(t,{errors:e=0,currentLocation:r=0,expectedLocation:n=0,distance:i=z.distance,ignoreLocation:o=z.ignoreLocation}={}){const s=e/t.length;if(o)return s;const c=Math.abs(n-r);return i?s+c/i:c?1:s}function Wp(t=[],e=z.minMatchCharLength){let r=[],n=-1,i=-1,o=0;for(let s=t.length;o<s;o+=1){let c=t[o];c&&n===-1?n=o:!c&&n!==-1&&(i=o-1,i-n+1>=e&&r.push([n,i]),n=-1)}return t[o-1]&&o-n>=e&&r.push([n,o-1]),r}const or=32;function Fp(t,e,r,{location:n=z.location,distance:i=z.distance,threshold:o=z.threshold,findAllMatches:s=z.findAllMatches,minMatchCharLength:c=z.minMatchCharLength,includeMatches:l=z.includeMatches,ignoreLocation:f=z.ignoreLocation}={}){if(e.length>or)throw new Error(Ip(or));const d=e.length,g=t.length,m=Math.max(0,Math.min(n,g));let b=o,A=m;const L=c>1||l,F=L?Array(g):[];let K;for(;(K=t.indexOf(e,A))>-1;){let X=Qn(e,{currentLocation:K,expectedLocation:m,distance:i,ignoreLocation:f});if(b=Math.min(X,b),A=K+d,L){let ie=0;for(;ie<d;)F[K+ie]=1,ie+=1}}A=-1;let J=[],Z=1,pe=d+g;const te=1<<d-1;for(let X=0;X<d;X+=1){let ie=0,we=pe;for(;ie<we;)Qn(e,{errors:X,currentLocation:m+we,expectedLocation:m,distance:i,ignoreLocation:f})<=b?ie=we:pe=we,we=Math.floor((pe-ie)/2+ie);pe=we;let de=Math.max(1,m-we+1),re=s?g:Math.min(m+we,g)+d,Ne=Array(re+2);Ne[re+1]=(1<<X)-1;for(let I=re;I>=de;I-=1){let E=I-1,_=r[t.charAt(E)];if(L&&(F[E]=+!!_),Ne[I]=(Ne[I+1]<<1|1)&_,X&&(Ne[I]|=(J[I+1]|J[I])<<1|1|J[I+1]),Ne[I]&te&&(Z=Qn(e,{errors:X,currentLocation:E,expectedLocation:m,distance:i,ignoreLocation:f}),Z<=b)){if(b=Z,A=E,A<=m)break;de=Math.max(1,2*m-A)}}if(Qn(e,{errors:X+1,currentLocation:m,expectedLocation:m,distance:i,ignoreLocation:f})>b)break;J=Ne}const N={isMatch:A>=0,score:Math.max(.001,Z)};if(L){const X=Wp(F,c);X.length?l&&(N.indices=X):N.isMatch=!1}return N}function zp(t){let e={};for(let r=0,n=t.length;r<n;r+=1){const i=t.charAt(r);e[i]=(e[i]||0)|1<<n-r-1}return e}class al{constructor(e,{location:r=z.location,threshold:n=z.threshold,distance:i=z.distance,includeMatches:o=z.includeMatches,findAllMatches:s=z.findAllMatches,minMatchCharLength:c=z.minMatchCharLength,isCaseSensitive:l=z.isCaseSensitive,ignoreLocation:f=z.ignoreLocation}={}){if(this.options={location:r,threshold:n,distance:i,includeMatches:o,findAllMatches:s,minMatchCharLength:c,isCaseSensitive:l,ignoreLocation:f},this.pattern=l?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const d=(m,b)=>{this.chunks.push({pattern:m,alphabet:zp(m),startIndex:b})},g=this.pattern.length;if(g>or){let m=0;const b=g%or,A=g-b;for(;m<A;)d(this.pattern.substr(m,or),m),m+=or;if(b){const L=g-or;d(this.pattern.substr(L),L)}}else d(this.pattern,0)}searchIn(e){const{isCaseSensitive:r,includeMatches:n}=this.options;if(r||(e=e.toLowerCase()),this.pattern===e){let A={isMatch:!0,score:0};return n&&(A.indices=[[0,e.length-1]]),A}const{location:i,distance:o,threshold:s,findAllMatches:c,minMatchCharLength:l,ignoreLocation:f}=this.options;let d=[],g=0,m=!1;this.chunks.forEach(({pattern:A,alphabet:L,startIndex:F})=>{const{isMatch:K,score:J,indices:Z}=Fp(e,A,L,{location:i+F,distance:o,threshold:s,findAllMatches:c,minMatchCharLength:l,includeMatches:n,ignoreLocation:f});K&&(m=!0),g+=J,K&&Z&&(d=[...d,...Z])});let b={isMatch:m,score:m?g/this.chunks.length:1};return m&&n&&(b.indices=d),b}}class Ht{constructor(e){this.pattern=e}static isMultiMatch(e){return ll(e,this.multiRegex)}static isSingleMatch(e){return ll(e,this.singleRegex)}search(){}}function ll(t,e){const r=t.match(e);return r?r[1]:null}class qp extends Ht{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const r=e===this.pattern;return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class Gp extends Ht{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const n=e.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class Kp extends Ht{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const r=e.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class Vp extends Ht{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const r=!e.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class Yp extends Ht{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const r=e.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class Jp extends Ht{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const r=!e.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class cl extends Ht{constructor(e,{location:r=z.location,threshold:n=z.threshold,distance:i=z.distance,includeMatches:o=z.includeMatches,findAllMatches:s=z.findAllMatches,minMatchCharLength:c=z.minMatchCharLength,isCaseSensitive:l=z.isCaseSensitive,ignoreLocation:f=z.ignoreLocation}={}){super(e),this._bitapSearch=new al(e,{location:r,threshold:n,distance:i,includeMatches:o,findAllMatches:s,minMatchCharLength:c,isCaseSensitive:l,ignoreLocation:f})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class ul extends Ht{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let r=0,n;const i=[],o=this.pattern.length;for(;(n=e.indexOf(this.pattern,r))>-1;)r=n+o,i.push([n,r-1]);const s=!!i.length;return{isMatch:s,score:s?0:1,indices:i}}}const _o=[qp,ul,Kp,Vp,Jp,Yp,Gp,cl],fl=_o.length,Zp=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Xp="|";function Qp(t,e={}){return t.split(Xp).map(r=>{let n=r.trim().split(Zp).filter(o=>o&&!!o.trim()),i=[];for(let o=0,s=n.length;o<s;o+=1){const c=n[o];let l=!1,f=-1;for(;!l&&++f<fl;){const d=_o[f];let g=d.isMultiMatch(c);g&&(i.push(new d(g,e)),l=!0)}if(!l)for(f=-1;++f<fl;){const d=_o[f];let g=d.isSingleMatch(c);if(g){i.push(new d(g,e));break}}}return i})}const eh=new Set([cl.type,ul.type]);class th{constructor(e,{isCaseSensitive:r=z.isCaseSensitive,includeMatches:n=z.includeMatches,minMatchCharLength:i=z.minMatchCharLength,ignoreLocation:o=z.ignoreLocation,findAllMatches:s=z.findAllMatches,location:c=z.location,threshold:l=z.threshold,distance:f=z.distance}={}){this.query=null,this.options={isCaseSensitive:r,includeMatches:n,minMatchCharLength:i,findAllMatches:s,ignoreLocation:o,location:c,threshold:l,distance:f},this.pattern=r?e:e.toLowerCase(),this.query=Qp(this.pattern,this.options)}static condition(e,r){return r.useExtendedSearch}searchIn(e){const r=this.query;if(!r)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:i}=this.options;e=i?e:e.toLowerCase();let o=0,s=[],c=0;for(let l=0,f=r.length;l<f;l+=1){const d=r[l];s.length=0,o=0;for(let g=0,m=d.length;g<m;g+=1){const b=d[g],{isMatch:A,indices:L,score:F}=b.search(e);if(A){if(o+=1,c+=F,n){const K=b.constructor.type;eh.has(K)?s=[...s,...L]:s.push(L)}}else{c=0,o=0,s.length=0;break}}if(o){let g={isMatch:!0,score:c/o};return n&&(g.indices=s),g}}return{isMatch:!1,score:1}}}const Eo=[];function rh(...t){Eo.push(...t)}function Mo(t,e){for(let r=0,n=Eo.length;r<n;r+=1){let i=Eo[r];if(i.condition(t,e))return new i(t,e)}return new al(t,e)}const ei={AND:"$and",OR:"$or"},Po={PATH:"$path",PATTERN:"$val"},Oo=t=>!!(t[ei.AND]||t[ei.OR]),nh=t=>!!t[Po.PATH],ih=t=>!Ct(t)&&tl(t)&&!Oo(t),pl=t=>({[ei.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function hl(t,e,{auto:r=!0}={}){const n=i=>{let o=Object.keys(i);const s=nh(i);if(!s&&o.length>1&&!Oo(i))return n(pl(i));if(ih(i)){const l=s?i[Po.PATH]:o[0],f=s?i[Po.PATTERN]:i[l];if(!bt(f))throw new Error(Tp(l));const d={keyId:So(l),pattern:f};return r&&(d.searcher=Mo(f,e)),d}let c={children:[],operator:o[0]};return o.forEach(l=>{const f=i[l];Ct(f)&&f.forEach(d=>{c.children.push(n(d))})}),c};return Oo(t)||(t=pl(t)),n(t)}function oh(t,{ignoreFieldNorm:e=z.ignoreFieldNorm}){t.forEach(r=>{let n=1;r.matches.forEach(({key:i,norm:o,score:s})=>{const c=i?i.weight:null;n*=Math.pow(s===0&&c?Number.EPSILON:s,(c||1)*(e?1:o))}),r.score=n})}function sh(t,e){const r=t.matches;e.matches=[],ot(r)&&r.forEach(n=>{if(!ot(n.indices)||!n.indices.length)return;const{indices:i,value:o}=n;let s={indices:i,value:o};n.key&&(s.key=n.key.src),n.idx>-1&&(s.refIndex=n.idx),e.matches.push(s)})}function ah(t,e){e.score=t.score}function lh(t,e,{includeMatches:r=z.includeMatches,includeScore:n=z.includeScore}={}){const i=[];return r&&i.push(sh),n&&i.push(ah),t.map(o=>{const{idx:s}=o,c={item:e[s],refIndex:s};return i.length&&i.forEach(l=>{l(o,c)}),c})}class Ut{constructor(e,r={},n){this.options={...z,...r},this.options.useExtendedSearch,this._keyStore=new jp(this.options.keys),this.setCollection(e,n)}setCollection(e,r){if(this._docs=e,r&&!(r instanceof Ao))throw new Error(Lp);this._myIndex=r||sl(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){ot(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const r=[];for(let n=0,i=this._docs.length;n<i;n+=1){const o=this._docs[n];e(o,n)&&(this.removeAt(n),n-=1,i-=1,r.push(o))}return r}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:r=-1}={}){const{includeMatches:n,includeScore:i,shouldSort:o,sortFn:s,ignoreFieldNorm:c}=this.options;let l=bt(e)?bt(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return oh(l,{ignoreFieldNorm:c}),o&&l.sort(s),el(r)&&r>-1&&(l=l.slice(0,r)),lh(l,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(e){const r=Mo(e,this.options),{records:n}=this._myIndex,i=[];return n.forEach(({v:o,i:s,n:c})=>{if(!ot(o))return;const{isMatch:l,score:f,indices:d}=r.searchIn(o);l&&i.push({item:o,idx:s,matches:[{score:f,value:o,norm:c,indices:d}]})}),i}_searchLogical(e){const r=hl(e,this.options),n=(c,l,f)=>{if(!c.children){const{keyId:g,searcher:m}=c,b=this._findMatches({key:this._keyStore.get(g),value:this._myIndex.getValueForItemAtKeyId(l,g),searcher:m});return b&&b.length?[{idx:f,item:l,matches:b}]:[]}const d=[];for(let g=0,m=c.children.length;g<m;g+=1){const b=c.children[g],A=n(b,l,f);if(A.length)d.push(...A);else if(c.operator===ei.AND)return[]}return d},i=this._myIndex.records,o={},s=[];return i.forEach(({$:c,i:l})=>{if(ot(c)){let f=n(r,c,l);f.length&&(o[l]||(o[l]={idx:l,item:c,matches:[]},s.push(o[l])),f.forEach(({matches:d})=>{o[l].matches.push(...d)}))}}),s}_searchObjectList(e){const r=Mo(e,this.options),{keys:n,records:i}=this._myIndex,o=[];return i.forEach(({$:s,i:c})=>{if(!ot(s))return;let l=[];n.forEach((f,d)=>{l.push(...this._findMatches({key:f,value:s[d],searcher:r}))}),l.length&&o.push({idx:c,item:s,matches:l})}),o}_findMatches({key:e,value:r,searcher:n}){if(!ot(r))return[];let i=[];if(Ct(r))r.forEach(({v:o,i:s,n:c})=>{if(!ot(o))return;const{isMatch:l,score:f,indices:d}=n.searchIn(o);l&&i.push({score:f,key:e,value:o,idx:s,norm:c,indices:d})});else{const{v:o,n:s}=r,{isMatch:c,score:l,indices:f}=n.searchIn(o);c&&i.push({score:l,key:e,value:o,norm:s,indices:f})}return i}}Ut.version="7.0.0",Ut.createIndex=sl,Ut.parseIndex=Up,Ut.config=z,Ut.parseQuery=hl,rh(th);function dl(t,e){const r=new Ut(e.filterProperties,{keys:["title"]}),n=t.target.value,o=r.search(n).map(s=>s.item.key||s.item.keys.join("|"));Object.keys(e.filters).forEach(s=>{e.querySelector(`[data-details="${s}"]`).parentElement.style.display=o.includes(s)||!n?"":"none"})}function ch(t,e){const r=t.target.getAttribute("data-close").replace("|","-");e.querySelector(`#filter-${r}`).reset(),e.dispatchEvent(new CustomEvent("filter")),e.requestUpdate()}function gl(t){t.renderRoot.querySelector("#eox-itemfilter-input-search").value="",dl({target:{value:""}},t)}function uh(t,e){e.inlineMode&&t.stopPropagation()}function fh(t){t.inlineMode&&(t.showDropdown=!0,t.requestUpdate())}function ph(t,e){e.inlineMode&&(t.stopPropagation(),e.showDropdown=!0,e.requestUpdate())}function hh(t,e){e.inlineMode&&t.key==="Escape"&&e.showDropdown&&(gl(e),e.showDropdown=!1,e.requestUpdate())}function dh(t,e){e.inlineMode&&t.target.tagName!=="DROPDOWN-FORM"&&t.target.tagName!=="EOX-ITEMFILTER"&&e.showDropdown&&(gl(e),e.showDropdown=!1,e.requestUpdate())}function gh(t,e){var r=0,n=0,i=0,o=0,s=0,c=0,l=0,f=0,d=null,g=null,m=t[0],b=t[1],A=e.length;for(r;r<A;r++){n=0;var L=e[r].length-1,F=e[r];if(d=F[0],d[0]!==F[L][0]&&d[1]!==F[L][1])throw new Error("First and last coordinates in a ring must be the same");for(s=d[0]-m,c=d[1]-b,n;n<L;n++){if(g=F[n+1],f=g[1]-b,c<0&&f<0||c>0&&f>0){d=g,c=f,s=d[0]-m;continue}if(l=g[0]-t[0],f>0&&c<=0){if(o=s*f-l*c,o>0)i=i+1;else if(o===0)return 0}else if(c>0&&f<=0){if(o=s*f-l*c,o<0)i=i+1;else if(o===0)return 0}else if(f===0&&c<0){if(o=s*f-l*c,o===0)return 0}else if(c===0&&f<0){if(o=s*f-l*c,o===0)return 0}else if(c===0&&f===0){if(l<=0&&s>=0)return 0;if(s<=0&&l>=0)return 0}d=g,c=f,s=l}}return i%2!==0}var Ge=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function yh(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var yl=Object.prototype.toString,vl=function(e){var r=yl.call(e),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&yl.call(e.callee)==="[object Function]"),n},Co,ml;function vh(){if(ml)return Co;ml=1;var t;if(!Object.keys){var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=vl,i=Object.prototype.propertyIsEnumerable,o=!i.call({toString:null},"toString"),s=i.call(function(){},"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(m){var b=m.constructor;return b&&b.prototype===m},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if(typeof window>"u")return!1;for(var m in window)try{if(!f["$"+m]&&e.call(window,m)&&window[m]!==null&&typeof window[m]=="object")try{l(window[m])}catch{return!0}}catch{return!0}return!1}(),g=function(m){if(typeof window>"u"||!d)return l(m);try{return l(m)}catch{return!1}};t=function(b){var A=b!==null&&typeof b=="object",L=r.call(b)==="[object Function]",F=n(b),K=A&&r.call(b)==="[object String]",J=[];if(!A&&!L&&!F)throw new TypeError("Object.keys called on a non-object");var Z=s&&L;if(K&&b.length>0&&!e.call(b,0))for(var pe=0;pe<b.length;++pe)J.push(String(pe));if(F&&b.length>0)for(var te=0;te<b.length;++te)J.push(String(te));else for(var N in b)!(Z&&N==="prototype")&&e.call(b,N)&&J.push(String(N));if(o)for(var X=g(b),ie=0;ie<c.length;++ie)!(X&&c[ie]==="constructor")&&e.call(b,c[ie])&&J.push(c[ie]);return J}}return Co=t,Co}var mh=Array.prototype.slice,bh=vl,bl=Object.keys,ti=bl?function(e){return bl(e)}:vh(),wl=Object.keys;ti.shim=function(){if(Object.keys){var e=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);e||(Object.keys=function(n){return bh(n)?wl(mh.call(n)):wl(n)})}else Object.keys=ti;return Object.keys||ti};var ko=ti,wh=Error,$h=EvalError,xh=RangeError,Sh=ReferenceError,$l=SyntaxError,Wt=TypeError,Ah=URIError,ri=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[r]=i;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0},xl=typeof Symbol<"u"&&Symbol,_h=ri,Lo=function(){return typeof xl!="function"||typeof Symbol!="function"||typeof xl("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:_h()},Sl={foo:{}},Eh=Object,Mh=function(){return{__proto__:Sl}.foo===Sl.foo&&!({__proto__:null}instanceof Eh)},Ph="Function.prototype.bind called on incompatible ",Oh=Object.prototype.toString,Ch=Math.max,kh="[object Function]",Al=function(e,r){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var o=0;o<r.length;o+=1)n[o+e.length]=r[o];return n},Lh=function(e,r){for(var n=[],i=r||0,o=0;i<e.length;i+=1,o+=1)n[o]=e[i];return n},Th=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r},Ih=function(e){var r=this;if(typeof r!="function"||Oh.apply(r)!==kh)throw new TypeError(Ph+r);for(var n=Lh(arguments,1),i,o=function(){if(this instanceof i){var d=r.apply(this,Al(n,arguments));return Object(d)===d?d:this}return r.apply(e,Al(n,arguments))},s=Ch(0,r.length-n.length),c=[],l=0;l<s;l++)c[l]="$"+l;if(i=Function("binder","return function ("+Th(c,",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var f=function(){};f.prototype=r.prototype,i.prototype=new f,f.prototype=null}return i},Dh=Ih,To=Function.prototype.bind||Dh,Rh=Function.prototype.call,jh=Object.prototype.hasOwnProperty,Bh=To,_l=Bh.call(Rh,jh),ae,Nh=wh,Hh=$h,Uh=xh,Wh=Sh,Or=$l,Cr=Wt,Fh=Ah,El=Function,Io=function(t){try{return El('"use strict"; return ('+t+").constructor;")()}catch{}},sr=Object.getOwnPropertyDescriptor;if(sr)try{sr({},"")}catch{sr=null}var Do=function(){throw new Cr},zh=sr?function(){try{return arguments.callee,Do}catch{try{return sr(arguments,"callee").get}catch{return Do}}}():Do,kr=Lo(),qh=Mh(),Ue=Object.getPrototypeOf||(qh?function(t){return t.__proto__}:null),Lr={},Gh=typeof Uint8Array>"u"||!Ue?ae:Ue(Uint8Array),ar={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ae:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ae:ArrayBuffer,"%ArrayIteratorPrototype%":kr&&Ue?Ue([][Symbol.iterator]()):ae,"%AsyncFromSyncIteratorPrototype%":ae,"%AsyncFunction%":Lr,"%AsyncGenerator%":Lr,"%AsyncGeneratorFunction%":Lr,"%AsyncIteratorPrototype%":Lr,"%Atomics%":typeof Atomics>"u"?ae:Atomics,"%BigInt%":typeof BigInt>"u"?ae:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ae:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ae:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ae:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Nh,"%eval%":eval,"%EvalError%":Hh,"%Float32Array%":typeof Float32Array>"u"?ae:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ae:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ae:FinalizationRegistry,"%Function%":El,"%GeneratorFunction%":Lr,"%Int8Array%":typeof Int8Array>"u"?ae:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ae:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ae:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":kr&&Ue?Ue(Ue([][Symbol.iterator]())):ae,"%JSON%":typeof JSON=="object"?JSON:ae,"%Map%":typeof Map>"u"?ae:Map,"%MapIteratorPrototype%":typeof Map>"u"||!kr||!Ue?ae:Ue(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ae:Promise,"%Proxy%":typeof Proxy>"u"?ae:Proxy,"%RangeError%":Uh,"%ReferenceError%":Wh,"%Reflect%":typeof Reflect>"u"?ae:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ae:Set,"%SetIteratorPrototype%":typeof Set>"u"||!kr||!Ue?ae:Ue(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ae:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":kr&&Ue?Ue(""[Symbol.iterator]()):ae,"%Symbol%":kr?Symbol:ae,"%SyntaxError%":Or,"%ThrowTypeError%":zh,"%TypedArray%":Gh,"%TypeError%":Cr,"%Uint8Array%":typeof Uint8Array>"u"?ae:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ae:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ae:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ae:Uint32Array,"%URIError%":Fh,"%WeakMap%":typeof WeakMap>"u"?ae:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ae:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ae:WeakSet};if(Ue)try{null.error}catch(t){var Kh=Ue(Ue(t));ar["%Error.prototype%"]=Kh}var Vh=function t(e){var r;if(e==="%AsyncFunction%")r=Io("async function () {}");else if(e==="%GeneratorFunction%")r=Io("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Io("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&Ue&&(r=Ue(i.prototype))}return ar[e]=r,r},Ml={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},mn=To,ni=_l,Yh=mn.call(Function.call,Array.prototype.concat),Jh=mn.call(Function.apply,Array.prototype.splice),Pl=mn.call(Function.call,String.prototype.replace),ii=mn.call(Function.call,String.prototype.slice),Zh=mn.call(Function.call,RegExp.prototype.exec),Xh=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Qh=/\\(\\)?/g,ed=function(e){var r=ii(e,0,1),n=ii(e,-1);if(r==="%"&&n!=="%")throw new Or("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Or("invalid intrinsic syntax, expected opening `%`");var i=[];return Pl(e,Xh,function(o,s,c,l){i[i.length]=c?Pl(l,Qh,"$1"):s||o}),i},td=function(e,r){var n=e,i;if(ni(Ml,n)&&(i=Ml[n],n="%"+i[0]+"%"),ni(ar,n)){var o=ar[n];if(o===Lr&&(o=Vh(n)),typeof o>"u"&&!r)throw new Cr("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new Or("intrinsic "+e+" does not exist!")},wt=function(e,r){if(typeof e!="string"||e.length===0)throw new Cr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Cr('"allowMissing" argument must be a boolean');if(Zh(/^%?[^%]*%?$/,e)===null)throw new Or("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ed(e),i=n.length>0?n[0]:"",o=td("%"+i+"%",r),s=o.name,c=o.value,l=!1,f=o.alias;f&&(i=f[0],Jh(n,Yh([0,1],f)));for(var d=1,g=!0;d<n.length;d+=1){var m=n[d],b=ii(m,0,1),A=ii(m,-1);if((b==='"'||b==="'"||b==="`"||A==='"'||A==="'"||A==="`")&&b!==A)throw new Or("property names with quotes must have matching quotes");if((m==="constructor"||!g)&&(l=!0),i+="."+m,s="%"+i+"%",ni(ar,s))c=ar[s];else if(c!=null){if(!(m in c)){if(!r)throw new Cr("base intrinsic for "+e+" exists, but the property is not available.");return}if(sr&&d+1>=n.length){var L=sr(c,m);g=!!L,g&&"get"in L&&!("originalValue"in L.get)?c=L.get:c=c[m]}else g=ni(c,m),c=c[m];g&&!l&&(ar[s]=c)}}return c},rd=wt,oi=rd("%Object.defineProperty%",!0)||!1;if(oi)try{oi({},"a",{value:1})}catch{oi=!1}var Ro=oi,nd=wt,si=nd("%Object.getOwnPropertyDescriptor%",!0);if(si)try{si([],"length")}catch{si=null}var jo=si,Ol=Ro,id=$l,Tr=Wt,Cl=jo,Bo=function(e,r,n){if(!e||typeof e!="object"&&typeof e!="function")throw new Tr("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Tr("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Tr("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Tr("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Tr("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Tr("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,l=!!Cl&&Cl(e,r);if(Ol)Ol(e,r,{configurable:s===null&&l?l.configurable:!s,enumerable:i===null&&l?l.enumerable:!i,value:n,writable:o===null&&l?l.writable:!o});else if(c||!i&&!o&&!s)e[r]=n;else throw new id("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},No=Ro,kl=function(){return!!No};kl.hasArrayLengthDefineBug=function(){if(!No)return null;try{return No([],"length",{value:1}).length!==1}catch{return!0}};var Ho=kl,od=ko,sd=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",ad=Object.prototype.toString,ld=Array.prototype.concat,Ll=Bo,cd=function(t){return typeof t=="function"&&ad.call(t)==="[object Function]"},Tl=Ho(),ud=function(t,e,r,n){if(e in t){if(n===!0){if(t[e]===r)return}else if(!cd(n)||!n())return}Tl?Ll(t,e,r,!0):Ll(t,e,r)},Il=function(t,e){var r=arguments.length>2?arguments[2]:{},n=od(e);sd&&(n=ld.call(n,Object.getOwnPropertySymbols(e)));for(var i=0;i<n.length;i+=1)ud(t,n[i],e[n[i]],r[n[i]])};Il.supportsDescriptors=!!Tl;var lr=Il,Dl={exports:{}},fd=wt,Rl=Bo,pd=Ho(),jl=jo,Bl=Wt,hd=fd("%Math.floor%"),dd=function(e,r){if(typeof e!="function")throw new Bl("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||hd(r)!==r)throw new Bl("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,o=!0;if("length"in e&&jl){var s=jl(e,"length");s&&!s.configurable&&(i=!1),s&&!s.writable&&(o=!1)}return(i||o||!n)&&(pd?Rl(e,"length",r,!0,!0):Rl(e,"length",r)),e};(function(t){var e=To,r=wt,n=dd,i=Wt,o=r("%Function.prototype.apply%"),s=r("%Function.prototype.call%"),c=r("%Reflect.apply%",!0)||e.call(s,o),l=Ro,f=r("%Math.max%");t.exports=function(m){if(typeof m!="function")throw new i("a function is required");var b=c(e,s,arguments);return n(b,1+f(0,m.length-(arguments.length-1)),!0)};var d=function(){return c(e,o,arguments)};l?l(t.exports,"apply",{value:d}):t.exports.apply=d})(Dl);var Ir=Dl.exports,Nl=wt,Hl=Ir,gd=Hl(Nl("String.prototype.indexOf")),ct=function(e,r){var n=Nl(e,!!r);return typeof n=="function"&&gd(e,".prototype.")>-1?Hl(n):n},yd=ko,Ul=ri(),Wl=ct,Fl=Object,vd=Wl("Array.prototype.push"),zl=Wl("Object.prototype.propertyIsEnumerable"),md=Ul?Object.getOwnPropertySymbols:null,ql=function(e,r){if(e==null)throw new TypeError("target must be an object");var n=Fl(e);if(arguments.length===1)return n;for(var i=1;i<arguments.length;++i){var o=Fl(arguments[i]),s=yd(o),c=Ul&&(Object.getOwnPropertySymbols||md);if(c)for(var l=c(o),f=0;f<l.length;++f){var d=l[f];zl(o,d)&&vd(s,d)}for(var g=0;g<s.length;++g){var m=s[g];if(zl(o,m)){var b=o[m];n[m]=b}}}return n},Uo=ql,bd=function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),r={},n=0;n<e.length;++n)r[e[n]]=e[n];var i=Object.assign({},r),o="";for(var s in i)o+=s;return t!==o},wd=function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch{return t[1]==="y"}return!1},Gl=function(){return!Object.assign||bd()||wd()?Uo:Object.assign},$d=lr,xd=Gl,Sd=function(){var e=xd();return $d(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e},Ad=lr,_d=Ir,Ed=ql,Kl=Gl,Md=Sd,Pd=_d.apply(Kl()),Vl=function(e,r){return Pd(Object,arguments)};Ad(Vl,{getPolyfill:Kl,implementation:Ed,shim:Md});var Od=Vl,bn=function(){return typeof(function(){}).name=="string"},wn=Object.getOwnPropertyDescriptor;if(wn)try{wn([],"length")}catch{wn=null}bn.functionsHaveConfigurableNames=function(){if(!bn()||!wn)return!1;var e=wn(function(){},"name");return!!e&&!!e.configurable};var Cd=Function.prototype.bind;bn.boundFunctionsHaveNames=function(){return bn()&&typeof Cd=="function"&&(function(){}).bind().name!==""};var kd=bn,Yl=Bo,Ld=Ho(),Td=kd.functionsHaveConfigurableNames(),Id=Wt,Dd=function(e,r){if(typeof e!="function")throw new Id("`fn` is not a function");var n=arguments.length>2&&!!arguments[2];return(!n||Td)&&(Ld?Yl(e,"name",r,!0,!0):Yl(e,"name",r)),e},Rd=Dd,jd=Wt,Bd=Object,Jl=Rd(function(){if(this==null||this!==Bd(this))throw new jd("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e},"get flags",!0),Nd=Jl,Hd=lr.supportsDescriptors,Ud=Object.getOwnPropertyDescriptor,Zl=function(){if(Hd&&/a/mig.flags==="gim"){var e=Ud(RegExp.prototype,"flags");if(e&&typeof e.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var r="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){r+="d"}}),Object.defineProperty(n,"sticky",{get:function(){r+="y"}}),r==="dy")return e.get}}return Nd},Wd=lr.supportsDescriptors,Fd=Zl,zd=Object.getOwnPropertyDescriptor,qd=Object.defineProperty,Gd=TypeError,Xl=Object.getPrototypeOf,Kd=/a/,Vd=function(){if(!Wd||!Xl)throw new Gd("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=Fd(),r=Xl(Kd),n=zd(r,"flags");return(!n||n.get!==e)&&qd(r,"flags",{configurable:!0,enumerable:!1,get:e}),e},Yd=lr,Jd=Ir,Zd=Jl,Ql=Zl,Xd=Vd,ec=Jd(Ql());Yd(ec,{getPolyfill:Ql,implementation:Zd,shim:Xd});var Qd=ec,ai={exports:{}},eg=ri,cr=function(){return eg()&&!!Symbol.toStringTag},tg=cr(),rg=ct,Wo=rg("Object.prototype.toString"),li=function(e){return tg&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:Wo(e)==="[object Arguments]"},tc=function(e){return li(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Wo(e)!=="[object Array]"&&Wo(e.callee)==="[object Function]"},ng=function(){return li(arguments)}();li.isLegacyArguments=tc;var rc=ng?li:tc;const ig=yh(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Fo=typeof Map=="function"&&Map.prototype,zo=Object.getOwnPropertyDescriptor&&Fo?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ci=Fo&&zo&&typeof zo.get=="function"?zo.get:null,nc=Fo&&Map.prototype.forEach,qo=typeof Set=="function"&&Set.prototype,Go=Object.getOwnPropertyDescriptor&&qo?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ui=qo&&Go&&typeof Go.get=="function"?Go.get:null,ic=qo&&Set.prototype.forEach,og=typeof WeakMap=="function"&&WeakMap.prototype,$n=og?WeakMap.prototype.has:null,sg=typeof WeakSet=="function"&&WeakSet.prototype,xn=sg?WeakSet.prototype.has:null,ag=typeof WeakRef=="function"&&WeakRef.prototype,oc=ag?WeakRef.prototype.deref:null,lg=Boolean.prototype.valueOf,cg=Object.prototype.toString,ug=Function.prototype.toString,fg=String.prototype.match,Ko=String.prototype.slice,Ft=String.prototype.replace,pg=String.prototype.toUpperCase,sc=String.prototype.toLowerCase,ac=RegExp.prototype.test,lc=Array.prototype.concat,$t=Array.prototype.join,hg=Array.prototype.slice,cc=Math.floor,Vo=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Yo=Object.getOwnPropertySymbols,Jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Dr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Ke=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Dr||!0)?Symbol.toStringTag:null,uc=Object.prototype.propertyIsEnumerable,fc=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function pc(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||ac.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-cc(-t):cc(t);if(n!==t){var i=String(n),o=Ko.call(e,i.length+1);return Ft.call(i,r,"$&_")+"."+Ft.call(Ft.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ft.call(e,r,"$&_")}var Zo=ig,hc=Zo.custom,dc=vc(hc)?hc:null,dg=function t(e,r,n,i){var o=r||{};if(zt(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(zt(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=zt(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(zt(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(zt(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=o.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return bc(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return c?pc(e,l):l}if(typeof e=="bigint"){var f=String(e)+"n";return c?pc(e,f):f}var d=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof e=="object")return Xo(e)?"[Array]":"[Object]";var g=Lg(o,n);if(typeof i>"u")i=[];else if(mc(i,e)>=0)return"[Circular]";function m(et,I,E){if(I&&(i=hg.call(i),i.push(I)),E){var _={depth:o.depth};return zt(o,"quoteStyle")&&(_.quoteStyle=o.quoteStyle),t(et,_,n+1,i)}return t(et,o,n+1,i)}if(typeof e=="function"&&!yc(e)){var b=Sg(e),A=fi(e,m);return"[Function"+(b?": "+b:" (anonymous)")+"]"+(A.length>0?" { "+$t.call(A,", ")+" }":"")}if(vc(e)){var L=Dr?Ft.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Jo.call(e);return typeof e=="object"&&!Dr?Sn(L):L}if(Og(e)){for(var F="<"+sc.call(String(e.nodeName)),K=e.attributes||[],J=0;J<K.length;J++)F+=" "+K[J].name+"="+gc(gg(K[J].value),"double",o);return F+=">",e.childNodes&&e.childNodes.length&&(F+="..."),F+="</"+sc.call(String(e.nodeName))+">",F}if(Xo(e)){if(e.length===0)return"[]";var Z=fi(e,m);return g&&!kg(Z)?"["+es(Z,g)+"]":"[ "+$t.call(Z,", ")+" ]"}if(vg(e)){var pe=fi(e,m);return!("cause"in Error.prototype)&&"cause"in e&&!uc.call(e,"cause")?"{ ["+String(e)+"] "+$t.call(lc.call("[cause]: "+m(e.cause),pe),", ")+" }":pe.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+$t.call(pe,", ")+" }"}if(typeof e=="object"&&s){if(dc&&typeof e[dc]=="function"&&Zo)return Zo(e,{depth:d-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Ag(e)){var te=[];return nc&&nc.call(e,function(et,I){te.push(m(I,e,!0)+" => "+m(et,e))}),wc("Map",ci.call(e),te,g)}if(Mg(e)){var N=[];return ic&&ic.call(e,function(et){N.push(m(et,e))}),wc("Set",ui.call(e),N,g)}if(_g(e))return Qo("WeakMap");if(Pg(e))return Qo("WeakSet");if(Eg(e))return Qo("WeakRef");if(bg(e))return Sn(m(Number(e)));if($g(e))return Sn(m(Vo.call(e)));if(wg(e))return Sn(lg.call(e));if(mg(e))return Sn(m(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===Ge)return"{ [object globalThis] }";if(!yg(e)&&!yc(e)){var X=fi(e,m),ie=fc?fc(e)===Object.prototype:e instanceof Object||e.constructor===Object,we=e instanceof Object?"":"null prototype",de=!ie&&Ke&&Object(e)===e&&Ke in e?Ko.call(qt(e),8,-1):we?"Object":"",re=ie||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Ne=re+(de||we?"["+$t.call(lc.call([],de||[],we||[]),": ")+"] ":"");return X.length===0?Ne+"{}":g?Ne+"{"+es(X,g)+"}":Ne+"{ "+$t.call(X,", ")+" }"}return String(e)};function gc(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function gg(t){return Ft.call(String(t),/"/g,"&quot;")}function Xo(t){return qt(t)==="[object Array]"&&(!Ke||!(typeof t=="object"&&Ke in t))}function yg(t){return qt(t)==="[object Date]"&&(!Ke||!(typeof t=="object"&&Ke in t))}function yc(t){return qt(t)==="[object RegExp]"&&(!Ke||!(typeof t=="object"&&Ke in t))}function vg(t){return qt(t)==="[object Error]"&&(!Ke||!(typeof t=="object"&&Ke in t))}function mg(t){return qt(t)==="[object String]"&&(!Ke||!(typeof t=="object"&&Ke in t))}function bg(t){return qt(t)==="[object Number]"&&(!Ke||!(typeof t=="object"&&Ke in t))}function wg(t){return qt(t)==="[object Boolean]"&&(!Ke||!(typeof t=="object"&&Ke in t))}function vc(t){if(Dr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Jo)return!1;try{return Jo.call(t),!0}catch{}return!1}function $g(t){if(!t||typeof t!="object"||!Vo)return!1;try{return Vo.call(t),!0}catch{}return!1}var xg=Object.prototype.hasOwnProperty||function(t){return t in this};function zt(t,e){return xg.call(t,e)}function qt(t){return cg.call(t)}function Sg(t){if(t.name)return t.name;var e=fg.call(ug.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function mc(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function Ag(t){if(!ci||!t||typeof t!="object")return!1;try{ci.call(t);try{ui.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function _g(t){if(!$n||!t||typeof t!="object")return!1;try{$n.call(t,$n);try{xn.call(t,xn)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Eg(t){if(!oc||!t||typeof t!="object")return!1;try{return oc.call(t),!0}catch{}return!1}function Mg(t){if(!ui||!t||typeof t!="object")return!1;try{ui.call(t);try{ci.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function Pg(t){if(!xn||!t||typeof t!="object")return!1;try{xn.call(t,xn);try{$n.call(t,$n)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function Og(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function bc(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return bc(Ko.call(t,0,e.maxStringLength),e)+n}var i=Ft.call(Ft.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Cg);return gc(i,"single",e)}function Cg(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+pg.call(e.toString(16))}function Sn(t){return"Object("+t+")"}function Qo(t){return t+" { ? }"}function wc(t,e,r,n){var i=n?es(r,n):$t.call(r,", ");return t+" ("+e+") {"+i+"}"}function kg(t){for(var e=0;e<t.length;e++)if(mc(t[e],`
490
- `)>=0)return!1;return!0}function Lg(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=$t.call(Array(t.indent+1)," ");else return null;return{base:r,prev:$t.call(Array(e+1),r)}}function es(t,e){if(t.length===0)return"";var r=`
491
- `+e.prev+e.base;return r+$t.call(t,","+r)+`
492
- `+e.prev}function fi(t,e){var r=Xo(t),n=[];if(r){n.length=t.length;for(var i=0;i<t.length;i++)n[i]=zt(t,i)?e(t[i],t):""}var o=typeof Yo=="function"?Yo(t):[],s;if(Dr){s={};for(var c=0;c<o.length;c++)s["$"+o[c]]=o[c]}for(var l in t)zt(t,l)&&(r&&String(Number(l))===l&&l<t.length||Dr&&s["$"+l]instanceof Symbol||(ac.call(/[^\w$]/,l)?n.push(e(l,t)+": "+e(t[l],t)):n.push(l+": "+e(t[l],t))));if(typeof Yo=="function")for(var f=0;f<o.length;f++)uc.call(t,o[f])&&n.push("["+e(o[f])+"]: "+e(t[o[f]],t));return n}var $c=wt,Rr=ct,Tg=dg,Ig=Wt,pi=$c("%WeakMap%",!0),hi=$c("%Map%",!0),Dg=Rr("WeakMap.prototype.get",!0),Rg=Rr("WeakMap.prototype.set",!0),jg=Rr("WeakMap.prototype.has",!0),Bg=Rr("Map.prototype.get",!0),Ng=Rr("Map.prototype.set",!0),Hg=Rr("Map.prototype.has",!0),ts=function(t,e){for(var r=t,n;(n=r.next)!==null;r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n},Ug=function(t,e){var r=ts(t,e);return r&&r.value},Wg=function(t,e,r){var n=ts(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Fg=function(t,e){return!!ts(t,e)},xc=function(){var e,r,n,i={assert:function(o){if(!i.has(o))throw new Ig("Side channel does not contain "+Tg(o))},get:function(o){if(pi&&o&&(typeof o=="object"||typeof o=="function")){if(e)return Dg(e,o)}else if(hi){if(r)return Bg(r,o)}else if(n)return Ug(n,o)},has:function(o){if(pi&&o&&(typeof o=="object"||typeof o=="function")){if(e)return jg(e,o)}else if(hi){if(r)return Hg(r,o)}else if(n)return Fg(n,o);return!1},set:function(o,s){pi&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new pi),Rg(e,o,s)):hi?(r||(r=new hi),Ng(r,o,s)):(n||(n={key:{},next:null}),Wg(n,o,s))}};return i},zg=_l,An=xc(),kt=Wt,rs={assert:function(t,e){if(!t||typeof t!="object"&&typeof t!="function")throw new kt("`O` is not an object");if(typeof e!="string")throw new kt("`slot` must be a string");if(An.assert(t),!rs.has(t,e))throw new kt("`"+e+"` is not present on `O`")},get:function(t,e){if(!t||typeof t!="object"&&typeof t!="function")throw new kt("`O` is not an object");if(typeof e!="string")throw new kt("`slot` must be a string");var r=An.get(t);return r&&r["$"+e]},has:function(t,e){if(!t||typeof t!="object"&&typeof t!="function")throw new kt("`O` is not an object");if(typeof e!="string")throw new kt("`slot` must be a string");var r=An.get(t);return!!r&&zg(r,"$"+e)},set:function(t,e,r){if(!t||typeof t!="object"&&typeof t!="function")throw new kt("`O` is not an object");if(typeof e!="string")throw new kt("`slot` must be a string");var n=An.get(t);n||(n={},An.set(t,n)),n["$"+e]=r}};Object.freeze&&Object.freeze(rs);var qg=rs,_n=qg,Gg=SyntaxError,Sc=typeof StopIteration=="object"?StopIteration:null,Kg=function(e){if(!Sc)throw new Gg("this environment lacks StopIteration");_n.set(e,"[[Done]]",!1);var r={next:function(){var i=_n.get(this,"[[Iterator]]"),o=_n.get(i,"[[Done]]");try{return{done:o,value:o?void 0:i.next()}}catch(s){if(_n.set(i,"[[Done]]",!0),s!==Sc)throw s;return{done:!0,value:void 0}}}};return _n.set(r,"[[Iterator]]",e),r},ns,Ac;function Vg(){if(Ac)return ns;Ac=1;var t={}.toString;return ns=Array.isArray||function(e){return t.call(e)=="[object Array]"},ns}var Yg=String.prototype.valueOf,Jg=function(e){try{return Yg.call(e),!0}catch{return!1}},Zg=Object.prototype.toString,Xg="[object String]",Qg=cr(),_c=function(e){return typeof e=="string"?!0:typeof e!="object"?!1:Qg?Jg(e):Zg.call(e)===Xg},is=typeof Map=="function"&&Map.prototype?Map:null,ey=typeof Set=="function"&&Set.prototype?Set:null,di;is||(di=function(e){return!1});var Ec=is?Map.prototype.has:null,Mc=ey?Set.prototype.has:null;!di&&!Ec&&(di=function(e){return!1});var Pc=di||function(e){if(!e||typeof e!="object")return!1;try{if(Ec.call(e),Mc)try{Mc.call(e)}catch{return!0}return e instanceof is}catch{}return!1},ty=typeof Map=="function"&&Map.prototype?Map:null,os=typeof Set=="function"&&Set.prototype?Set:null,gi;os||(gi=function(e){return!1});var Oc=ty?Map.prototype.has:null,Cc=os?Set.prototype.has:null;!gi&&!Cc&&(gi=function(e){return!1});var kc=gi||function(e){if(!e||typeof e!="object")return!1;try{if(Cc.call(e),Oc)try{Oc.call(e)}catch{return!0}return e instanceof os}catch{}return!1},Lc=rc,Tc=Kg;if(Lo()||ri()){var ss=Symbol.iterator;ai.exports=function(e){if(e!=null&&typeof e[ss]<"u")return e[ss]();if(Lc(e))return Array.prototype[ss].call(e)}}else{var ry=Vg(),ny=_c,Ic=wt,iy=Ic("%Map%",!0),oy=Ic("%Set%",!0),ht=ct,Dc=ht("Array.prototype.push"),Rc=ht("String.prototype.charCodeAt"),sy=ht("String.prototype.slice"),ay=function(e,r){var n=e.length;if(r+1>=n)return r+1;var i=Rc(e,r);if(i<55296||i>56319)return r+1;var o=Rc(e,r+1);return o<56320||o>57343?r+1:r+2},as=function(e){var r=0;return{next:function(){var i=r>=e.length,o;return i||(o=e[r],r+=1),{done:i,value:o}}}},jc=function(e,r){if(ry(e)||Lc(e))return as(e);if(ny(e)){var n=0;return{next:function(){var o=ay(e,n),s=sy(e,n,o);return n=o,{done:o>e.length,value:s}}}}if(r&&typeof e["_es6-shim iterator_"]<"u")return e["_es6-shim iterator_"]()};if(!iy&&!oy)ai.exports=function(e){if(e!=null)return jc(e,!0)};else{var ly=Pc,cy=kc,Bc=ht("Map.prototype.forEach",!0),Nc=ht("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var Hc=ht("Map.prototype.iterator",!0),Uc=ht("Set.prototype.iterator",!0);var Wc=ht("Map.prototype.@@iterator",!0)||ht("Map.prototype._es6-shim iterator_",!0),Fc=ht("Set.prototype.@@iterator",!0)||ht("Set.prototype._es6-shim iterator_",!0),uy=function(e){if(ly(e)){if(Hc)return Tc(Hc(e));if(Wc)return Wc(e);if(Bc){var r=[];return Bc(e,function(i,o){Dc(r,[o,i])}),as(r)}}if(cy(e)){if(Uc)return Tc(Uc(e));if(Fc)return Fc(e);if(Nc){var n=[];return Nc(e,function(i){Dc(n,i)}),as(n)}}};ai.exports=function(e){return uy(e)||jc(e)}}}var fy=ai.exports,zc=function(t){return t!==t},qc=function(e,r){return e===0&&r===0?1/e===1/r:!!(e===r||zc(e)&&zc(r))},py=qc,Gc=function(){return typeof Object.is=="function"?Object.is:py},hy=Gc,dy=lr,gy=function(){var e=hy();return dy(Object,{is:e},{is:function(){return Object.is!==e}}),e},yy=lr,vy=Ir,my=qc,Kc=Gc,by=gy,Vc=vy(Kc(),Object);yy(Vc,{getPolyfill:Kc,implementation:my,shim:by});var wy=Vc,$y={}.toString,xy=Array.isArray||function(t){return $y.call(t)=="[object Array]"},Sy=Ir,Yc=ct,Ay=wt,ls=Ay("%ArrayBuffer%",!0),yi=Yc("ArrayBuffer.prototype.byteLength",!0),_y=Yc("Object.prototype.toString"),Jc=!!ls&&!yi&&new ls(0).slice,Zc=!!Jc&&Sy(Jc),Xc=yi||Zc?function(e){if(!e||typeof e!="object")return!1;try{return yi?yi(e):Zc(e,0),!0}catch{return!1}}:ls?function(e){return _y(e)==="[object ArrayBuffer]"}:function(e){return!1},Ey=Date.prototype.getDay,My=function(e){try{return Ey.call(e),!0}catch{return!1}},Py=Object.prototype.toString,Oy="[object Date]",Cy=cr(),ky=function(e){return typeof e!="object"||e===null?!1:Cy?My(e):Py.call(e)===Oy},cs=ct,Qc=cr(),eu,tu,us,fs;if(Qc){eu=cs("Object.prototype.hasOwnProperty"),tu=cs("RegExp.prototype.exec"),us={};var ps=function(){throw us};fs={toString:ps,valueOf:ps},typeof Symbol.toPrimitive=="symbol"&&(fs[Symbol.toPrimitive]=ps)}var Ly=cs("Object.prototype.toString"),Ty=Object.getOwnPropertyDescriptor,Iy="[object RegExp]",Dy=Qc?function(e){if(!e||typeof e!="object")return!1;var r=Ty(e,"lastIndex"),n=r&&eu(r,"value");if(!n)return!1;try{tu(e,fs)}catch(i){return i===us}}:function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:Ly(e)===Iy},Ry=ct,ru=Ry("SharedArrayBuffer.prototype.byteLength",!0),jy=ru?function(e){if(!e||typeof e!="object")return!1;try{return ru(e),!0}catch{return!1}}:function(e){return!1},By=Number.prototype.toString,Ny=function(e){try{return By.call(e),!0}catch{return!1}},Hy=Object.prototype.toString,Uy="[object Number]",Wy=cr(),Fy=function(e){return typeof e=="number"?!0:typeof e!="object"?!1:Wy?Ny(e):Hy.call(e)===Uy},nu=ct,zy=nu("Boolean.prototype.toString"),qy=nu("Object.prototype.toString"),Gy=function(e){try{return zy(e),!0}catch{return!1}},Ky="[object Boolean]",Vy=cr(),Yy=function(e){return typeof e=="boolean"?!0:e===null||typeof e!="object"?!1:Vy&&Symbol.toStringTag in e?Gy(e):qy(e)===Ky},hs={exports:{}},Jy=Object.prototype.toString,Zy=Lo();if(Zy){var Xy=Symbol.prototype.toString,Qy=/^Symbol\(.*\)$/,ev=function(e){return typeof e.valueOf()!="symbol"?!1:Qy.test(Xy.call(e))};hs.exports=function(e){if(typeof e=="symbol")return!0;if(Jy.call(e)!=="[object Symbol]")return!1;try{return ev(e)}catch{return!1}}}else hs.exports=function(e){return!1};var tv=hs.exports,ds={exports:{}},iu=typeof BigInt<"u"&&BigInt,rv=function(){return typeof iu=="function"&&typeof BigInt=="function"&&typeof iu(42)=="bigint"&&typeof BigInt(42)=="bigint"},nv=rv();if(nv){var iv=BigInt.prototype.valueOf,ov=function(e){try{return iv.call(e),!0}catch{}return!1};ds.exports=function(e){return e===null||typeof e>"u"||typeof e=="boolean"||typeof e=="string"||typeof e=="number"||typeof e=="symbol"||typeof e=="function"?!1:typeof e=="bigint"?!0:ov(e)}}else ds.exports=function(e){return!1};var sv=ds.exports,av=_c,lv=Fy,cv=Yy,uv=tv,fv=sv,pv=function(e){if(e==null||typeof e!="object"&&typeof e!="function")return null;if(av(e))return"String";if(lv(e))return"Number";if(cv(e))return"Boolean";if(uv(e))return"Symbol";if(fv(e))return"BigInt"},vi=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,ou=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,mi;vi||(mi=function(e){return!1});var gs=vi?vi.prototype.has:null,ys=ou?ou.prototype.has:null;!mi&&!gs&&(mi=function(e){return!1});var hv=mi||function(e){if(!e||typeof e!="object")return!1;try{if(gs.call(e,gs),ys)try{ys.call(e,ys)}catch{return!0}return e instanceof vi}catch{}return!1},vs={exports:{}},dv=wt,su=ct,gv=dv("%WeakSet%",!0),ms=su("WeakSet.prototype.has",!0);if(ms){var bs=su("WeakMap.prototype.has",!0);vs.exports=function(e){if(!e||typeof e!="object")return!1;try{if(ms(e,ms),bs)try{bs(e,bs)}catch{return!0}return e instanceof gv}catch{}return!1}}else vs.exports=function(e){return!1};var yv=vs.exports,vv=Pc,mv=kc,bv=hv,wv=yv,$v=function(e){if(e&&typeof e=="object"){if(vv(e))return"Map";if(mv(e))return"Set";if(bv(e))return"WeakMap";if(wv(e))return"WeakSet"}return!1},au=Function.prototype.toString,jr=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,ws,bi;if(typeof jr=="function"&&typeof Object.defineProperty=="function")try{ws=Object.defineProperty({},"length",{get:function(){throw bi}}),bi={},jr(function(){throw 42},null,ws)}catch(t){t!==bi&&(jr=null)}else jr=null;var xv=/^\s*class\b/,$s=function(e){try{var r=au.call(e);return xv.test(r)}catch{return!1}},xs=function(e){try{return $s(e)?!1:(au.call(e),!0)}catch{return!1}},wi=Object.prototype.toString,Sv="[object Object]",Av="[object Function]",_v="[object GeneratorFunction]",Ev="[object HTMLAllCollection]",Mv="[object HTML document.all class]",Pv="[object HTMLCollection]",Ov=typeof Symbol=="function"&&!!Symbol.toStringTag,Cv=!(0 in[,]),Ss=function(){return!1};if(typeof document=="object"){var kv=document.all;wi.call(kv)===wi.call(document.all)&&(Ss=function(e){if((Cv||!e)&&(typeof e>"u"||typeof e=="object"))try{var r=wi.call(e);return(r===Ev||r===Mv||r===Pv||r===Sv)&&e("")==null}catch{}return!1})}var Lv=jr?function(e){if(Ss(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{jr(e,null,ws)}catch(r){if(r!==bi)return!1}return!$s(e)&&xs(e)}:function(e){if(Ss(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(Ov)return xs(e);if($s(e))return!1;var r=wi.call(e);return r!==Av&&r!==_v&&!/^\[object HTML/.test(r)?!1:xs(e)},Tv=Lv,Iv=Object.prototype.toString,lu=Object.prototype.hasOwnProperty,Dv=function(e,r,n){for(var i=0,o=e.length;i<o;i++)lu.call(e,i)&&(n==null?r(e[i],i,e):r.call(n,e[i],i,e))},Rv=function(e,r,n){for(var i=0,o=e.length;i<o;i++)n==null?r(e.charAt(i),i,e):r.call(n,e.charAt(i),i,e)},jv=function(e,r,n){for(var i in e)lu.call(e,i)&&(n==null?r(e[i],i,e):r.call(n,e[i],i,e))},Bv=function(e,r,n){if(!Tv(r))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=n),Iv.call(e)==="[object Array]"?Dv(e,r,i):typeof e=="string"?Rv(e,r,i):jv(e,r,i)},Nv=Bv,As=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],Hv=typeof globalThis>"u"?Ge:globalThis,Uv=function(){for(var e=[],r=0;r<As.length;r++)typeof Hv[As[r]]=="function"&&(e[e.length]=As[r]);return e},$i=Nv,Wv=Uv,cu=Ir,_s=ct,xi=jo,Fv=_s("Object.prototype.toString"),uu=cr(),fu=typeof globalThis>"u"?Ge:globalThis,Es=Wv(),Ms=_s("String.prototype.slice"),Ps=Object.getPrototypeOf,zv=_s("Array.prototype.indexOf",!0)||function(e,r){for(var n=0;n<e.length;n+=1)if(e[n]===r)return n;return-1},Si={__proto__:null};uu&&xi&&Ps?$i(Es,function(t){var e=new fu[t];if(Symbol.toStringTag in e){var r=Ps(e),n=xi(r,Symbol.toStringTag);if(!n){var i=Ps(r);n=xi(i,Symbol.toStringTag)}Si["$"+t]=cu(n.get)}}):$i(Es,function(t){var e=new fu[t],r=e.slice||e.set;r&&(Si["$"+t]=cu(r))});var qv=function(e){var r=!1;return $i(Si,function(n,i){if(!r)try{"$"+n(e)===i&&(r=Ms(i,1))}catch{}}),r},Gv=function(e){var r=!1;return $i(Si,function(n,i){if(!r)try{n(e),r=Ms(i,1)}catch{}}),r},Kv=function(e){if(!e||typeof e!="object")return!1;if(!uu){var r=Ms(Fv(e),8,-1);return zv(Es,r)>-1?r:r!=="Object"?!1:Gv(e)}return xi?qv(e):null},Vv=ct,pu=Vv("ArrayBuffer.prototype.byteLength",!0),Yv=Xc,Jv=function(e){return Yv(e)?pu?pu(e):e.byteLength:NaN},hu=Od,xt=ct,du=Qd,Zv=wt,Br=fy,Xv=xc,gu=wy,yu=rc,vu=xy,mu=Xc,bu=ky,wu=Dy,$u=jy,xu=ko,Su=pv,Au=$v,_u=Kv,Eu=Jv,Mu=xt("SharedArrayBuffer.prototype.byteLength",!0),Pu=xt("Date.prototype.getTime"),Os=Object.getPrototypeOf,Ou=xt("Object.prototype.toString"),Ai=Zv("%Set%",!0),Cs=xt("Map.prototype.has",!0),_i=xt("Map.prototype.get",!0),Cu=xt("Map.prototype.size",!0),Ei=xt("Set.prototype.add",!0),ku=xt("Set.prototype.delete",!0),Mi=xt("Set.prototype.has",!0),Pi=xt("Set.prototype.size",!0);function Lu(t,e,r,n){for(var i=Br(t),o;(o=i.next())&&!o.done;)if(dt(e,o.value,r,n))return ku(t,o.value),!0;return!1}function Tu(t){if(typeof t>"u")return null;if(typeof t!="object")return typeof t=="symbol"?!1:typeof t=="string"||typeof t=="number"?+t==+t:!0}function Qv(t,e,r,n,i,o){var s=Tu(r);if(s!=null)return s;var c=_i(e,s),l=hu({},i,{strict:!1});return typeof c>"u"&&!Cs(e,s)||!dt(n,c,l,o)?!1:!Cs(t,s)&&dt(n,c,l,o)}function em(t,e,r){var n=Tu(r);return n??(Mi(e,n)&&!Mi(t,n))}function Iu(t,e,r,n,i,o){for(var s=Br(t),c,l;(c=s.next())&&!c.done;)if(l=c.value,dt(r,l,i,o)&&dt(n,_i(e,l),i,o))return ku(t,l),!0;return!1}function dt(t,e,r,n){var i=r||{};if(i.strict?gu(t,e):t===e)return!0;var o=Su(t),s=Su(e);if(o!==s)return!1;if(!t||!e||typeof t!="object"&&typeof e!="object")return i.strict?gu(t,e):t==e;var c=n.has(t),l=n.has(e),f;if(c&&l){if(n.get(t)===n.get(e))return!0}else f={};return c||n.set(t,f),l||n.set(e,f),nm(t,e,i,n)}function Du(t){return!t||typeof t!="object"||typeof t.length!="number"||typeof t.copy!="function"||typeof t.slice!="function"||t.length>0&&typeof t[0]!="number"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))}function tm(t,e,r,n){if(Pi(t)!==Pi(e))return!1;for(var i=Br(t),o=Br(e),s,c,l;(s=i.next())&&!s.done;)if(s.value&&typeof s.value=="object")l||(l=new Ai),Ei(l,s.value);else if(!Mi(e,s.value)){if(r.strict||!em(t,e,s.value))return!1;l||(l=new Ai),Ei(l,s.value)}if(l){for(;(c=o.next())&&!c.done;)if(c.value&&typeof c.value=="object"){if(!Lu(l,c.value,r.strict,n))return!1}else if(!r.strict&&!Mi(t,c.value)&&!Lu(l,c.value,r.strict,n))return!1;return Pi(l)===0}return!0}function rm(t,e,r,n){if(Cu(t)!==Cu(e))return!1;for(var i=Br(t),o=Br(e),s,c,l,f,d,g;(s=i.next())&&!s.done;)if(f=s.value[0],d=s.value[1],f&&typeof f=="object")l||(l=new Ai),Ei(l,f);else if(g=_i(e,f),typeof g>"u"&&!Cs(e,f)||!dt(d,g,r,n)){if(r.strict||!Qv(t,e,f,d,r,n))return!1;l||(l=new Ai),Ei(l,f)}if(l){for(;(c=o.next())&&!c.done;)if(f=c.value[0],g=c.value[1],f&&typeof f=="object"){if(!Iu(l,t,f,g,r,n))return!1}else if(!r.strict&&(!t.has(f)||!dt(_i(t,f),g,r,n))&&!Iu(l,t,f,g,hu({},r,{strict:!1}),n))return!1;return Pi(l)===0}return!0}function nm(t,e,r,n){var i,o;if(typeof t!=typeof e||t==null||e==null||Ou(t)!==Ou(e)||yu(t)!==yu(e))return!1;var s=vu(t),c=vu(e);if(s!==c)return!1;var l=t instanceof Error,f=e instanceof Error;if(l!==f||(l||f)&&(t.name!==e.name||t.message!==e.message))return!1;var d=wu(t),g=wu(e);if(d!==g||(d||g)&&(t.source!==e.source||du(t)!==du(e)))return!1;var m=bu(t),b=bu(e);if(m!==b||(m||b)&&Pu(t)!==Pu(e)||r.strict&&Os&&Os(t)!==Os(e))return!1;var A=_u(t),L=_u(e);if(A!==L)return!1;if(A||L){if(t.length!==e.length)return!1;for(i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}var F=Du(t),K=Du(e);if(F!==K)return!1;if(F||K){if(t.length!==e.length)return!1;for(i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}var J=mu(t),Z=mu(e);if(J!==Z)return!1;if(J||Z)return Eu(t)!==Eu(e)?!1:typeof Uint8Array=="function"&&dt(new Uint8Array(t),new Uint8Array(e),r,n);var pe=$u(t),te=$u(e);if(pe!==te)return!1;if(pe||te)return Mu(t)!==Mu(e)?!1:typeof Uint8Array=="function"&&dt(new Uint8Array(t),new Uint8Array(e),r,n);if(typeof t!=typeof e)return!1;var N=xu(t),X=xu(e);if(N.length!==X.length)return!1;for(N.sort(),X.sort(),i=N.length-1;i>=0;i--)if(N[i]!=X[i])return!1;for(i=N.length-1;i>=0;i--)if(o=N[i],!dt(t[o],e[o],r,n))return!1;var ie=Au(t),we=Au(e);return ie!==we?!1:ie==="Set"||we==="Set"?tm(t,e,r,n):ie==="Map"?rm(t,e,r,n):!0}var im=function(e,r,n){return dt(e,r,n,Xv())};const om=vn(im);var sm=Object.defineProperty,me=(t,e)=>sm(t,"name",{value:e,configurable:!0}),am=class{constructor(e){this.direction=!1,this.compareProperties=!0;var r,n,i;this.precision=10**-((r=e==null?void 0:e.precision)!=null?r:17),this.direction=(n=e==null?void 0:e.direction)!=null?n:!1,this.compareProperties=(i=e==null?void 0:e.compareProperties)!=null?i:!0}compare(e,r){if(e.type!==r.type||!En(e,r))return!1;switch(e.type){case"Point":return this.compareCoord(e.coordinates,r.coordinates);case"LineString":return this.compareLine(e.coordinates,r.coordinates);case"Polygon":return this.comparePolygon(e,r);case"GeometryCollection":return this.compareGeometryCollection(e,r);case"Feature":return this.compareFeature(e,r);case"FeatureCollection":return this.compareFeatureCollection(e,r);default:if(e.type.startsWith("Multi")){const n=ks(e),i=ks(r);return n.every(o=>i.some(s=>this.compare(o,s)))}}return!1}compareCoord(e,r){return e.length===r.length&&e.every((n,i)=>Math.abs(n-r[i])<this.precision)}compareLine(e,r,n=0,i=!1){if(!En(e,r))return!1;const o=e;let s=r;if(i&&!this.compareCoord(o[0],s[0])){const l=this.fixStartIndex(s,o);if(l)s=l;else return!1}const c=this.compareCoord(o[n],s[n]);return this.direction||c?this.comparePath(o,s):this.compareCoord(o[n],s[s.length-(1+n)])?this.comparePath(o.slice().reverse(),s):!1}fixStartIndex(e,r){let n,i=-1;for(let o=0;o<e.length;o++)if(this.compareCoord(e[o],r[0])){i=o;break}return i>=0&&(n=[].concat(e.slice(i,e.length),e.slice(1,i+1))),n}comparePath(e,r){return e.every((n,i)=>this.compareCoord(n,r[i]))}comparePolygon(e,r){if(this.compareLine(e.coordinates[0],r.coordinates[0],1,!0)){const n=e.coordinates.slice(1,e.coordinates.length),i=r.coordinates.slice(1,r.coordinates.length);return n.every(o=>i.some(s=>this.compareLine(o,s,1,!0)))}return!1}compareGeometryCollection(e,r){return En(e.geometries,r.geometries)&&this.compareBBox(e,r)&&e.geometries.every((n,i)=>this.compare(n,r.geometries[i]))}compareFeature(e,r){return e.id===r.id&&(this.compareProperties?om(e.properties,r.properties):!0)&&this.compareBBox(e,r)&&this.compare(e.geometry,r.geometry)}compareFeatureCollection(e,r){return En(e.features,r.features)&&this.compareBBox(e,r)&&e.features.every((n,i)=>this.compare(n,r.features[i]))}compareBBox(e,r){return!e.bbox&&!r.bbox||(e.bbox&&r.bbox?this.compareCoord(e.bbox,r.bbox):!1)}};me(am,"GeojsonEquality");function En(t,e){return t.coordinates?t.coordinates.length===e.coordinates.length:t.length===e.length}me(En,"sameLength");function ks(t){return t.coordinates.map(e=>({type:t.type.replace("Multi",""),coordinates:e}))}me(ks,"explode");var st=63710088e-1,Ru={centimeters:st*100,centimetres:st*100,degrees:360/(2*Math.PI),feet:st*3.28084,inches:st*39.37,kilometers:st/1e3,kilometres:st/1e3,meters:st,metres:st,miles:st/1609.344,millimeters:st*1e3,millimetres:st*1e3,nauticalmiles:st/1852,radians:1,yards:st*1.0936},ju={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function ut(t,e,r={}){const n={type:"Feature"};return(r.id===0||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}me(ut,"feature");function lm(t,e,r={}){switch(t){case"Point":return St(e).geometry;case"LineString":return At(e).geometry;case"Polygon":return Ls(e).geometry;case"MultiPoint":return Bu(e).geometry;case"MultiLineString":return Ts(e).geometry;case"MultiPolygon":return Nu(e).geometry;default:throw new Error(t+" is invalid")}}me(lm,"geometry");function St(t,e,r={}){if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Nr(t[0])||!Nr(t[1]))throw new Error("coordinates must contain numbers");return ut({type:"Point",coordinates:t},e,r)}me(St,"point");function cm(t,e,r={}){return ur(t.map(n=>St(n,e)),r)}me(cm,"points");function Ls(t,e,r={}){for(const i of t){if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(i[i.length-1].length!==i[0].length)throw new Error("First and last Position are not equivalent.");for(let o=0;o<i[i.length-1].length;o++)if(i[i.length-1][o]!==i[0][o])throw new Error("First and last Position are not equivalent.")}return ut({type:"Polygon",coordinates:t},e,r)}me(Ls,"polygon");function um(t,e,r={}){return ur(t.map(n=>Ls(n,e)),r)}me(um,"polygons");function At(t,e,r={}){if(t.length<2)throw new Error("coordinates must be an array of two or more positions");return ut({type:"LineString",coordinates:t},e,r)}me(At,"lineString");function fm(t,e,r={}){return ur(t.map(n=>At(n,e)),r)}me(fm,"lineStrings");function ur(t,e={}){const r={type:"FeatureCollection"};return e.id&&(r.id=e.id),e.bbox&&(r.bbox=e.bbox),r.features=t,r}me(ur,"featureCollection");function Ts(t,e,r={}){return ut({type:"MultiLineString",coordinates:t},e,r)}me(Ts,"multiLineString");function Bu(t,e,r={}){return ut({type:"MultiPoint",coordinates:t},e,r)}me(Bu,"multiPoint");function Nu(t,e,r={}){return ut({type:"MultiPolygon",coordinates:t},e,r)}me(Nu,"multiPolygon");function pm(t,e,r={}){return ut({type:"GeometryCollection",geometries:t},e,r)}me(pm,"geometryCollection");function hm(t,e=0){if(e&&!(e>=0))throw new Error("precision must be a positive number");const r=Math.pow(10,e||0);return Math.round(t*r)/r}me(hm,"round");function Hu(t,e="kilometers"){const r=Ru[e];if(!r)throw new Error(e+" units is invalid");return t*r}me(Hu,"radiansToLength");function Is(t,e="kilometers"){const r=Ru[e];if(!r)throw new Error(e+" units is invalid");return t/r}me(Is,"lengthToRadians");function dm(t,e){return Uu(Is(t,e))}me(dm,"lengthToDegrees");function gm(t){let e=t%360;return e<0&&(e+=360),e}me(gm,"bearingToAzimuth");function Uu(t){return t%(2*Math.PI)*180/Math.PI}me(Uu,"radiansToDegrees");function ym(t){return t%360*Math.PI/180}me(ym,"degreesToRadians");function vm(t,e="kilometers",r="kilometers"){if(!(t>=0))throw new Error("length must be a positive number");return Hu(Is(t,e),r)}me(vm,"convertLength");function mm(t,e="meters",r="kilometers"){if(!(t>=0))throw new Error("area must be a positive number");const n=ju[e];if(!n)throw new Error("invalid original units");const i=ju[r];if(!i)throw new Error("invalid final units");return t/n*i}me(mm,"convertArea");function Nr(t){return!isNaN(t)&&t!==null&&!Array.isArray(t)}me(Nr,"isNumber");function Ds(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}me(Ds,"isObject");function bm(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(t.length!==4&&t.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach(e=>{if(!Nr(e))throw new Error("bbox must only contain numbers")})}me(bm,"validateBBox");function wm(t){if(!t)throw new Error("id is required");if(["string","number"].indexOf(typeof t)===-1)throw new Error("id must be a number or a string")}me(wm,"validateId");var $m=Object.defineProperty,Gt=(t,e)=>$m(t,"name",{value:e,configurable:!0});function Rs(t){if(!t)throw new Error("coord is required");if(!Array.isArray(t)){if(t.type==="Feature"&&t.geometry!==null&&t.geometry.type==="Point")return[...t.geometry.coordinates];if(t.type==="Point")return[...t.coordinates]}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return[...t];throw new Error("coord must be GeoJSON Point or an Array of numbers")}Gt(Rs,"getCoord");function Wu(t){if(Array.isArray(t))return t;if(t.type==="Feature"){if(t.geometry!==null)return t.geometry.coordinates}else if(t.coordinates)return t.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}Gt(Wu,"getCoords");function Fu(t){if(t.length>1&&Nr(t[0])&&Nr(t[1]))return!0;if(Array.isArray(t[0])&&t[0].length)return Fu(t[0]);throw new Error("coordinates must only contain numbers")}Gt(Fu,"containsNumber");function xm(t,e,r){if(!e||!r)throw new Error("type and name required");if(!t||t.type!==e)throw new Error("Invalid input to "+r+": must be a "+e+", given "+t.type)}Gt(xm,"geojsonType");function Sm(t,e,r){if(!t)throw new Error("No feature passed");if(!r)throw new Error(".featureOf() requires a name");if(!t||t.type!=="Feature"||!t.geometry)throw new Error("Invalid input to "+r+", Feature with geometry required");if(!t.geometry||t.geometry.type!==e)throw new Error("Invalid input to "+r+": must be a "+e+", given "+t.geometry.type)}Gt(Sm,"featureOf");function Am(t,e,r){if(!t)throw new Error("No featureCollection passed");if(!r)throw new Error(".collectionOf() requires a name");if(!t||t.type!=="FeatureCollection")throw new Error("Invalid input to "+r+", FeatureCollection required");for(const n of t.features){if(!n||n.type!=="Feature"||!n.geometry)throw new Error("Invalid input to "+r+", Feature with geometry required");if(!n.geometry||n.geometry.type!==e)throw new Error("Invalid input to "+r+": must be a "+e+", given "+n.geometry.type)}}Gt(Am,"collectionOf");function fr(t){return t.type==="Feature"?t.geometry:t}Gt(fr,"getGeom");function _m(t,e){return t.type==="FeatureCollection"?"FeatureCollection":t.type==="GeometryCollection"?"GeometryCollection":t.type==="Feature"&&t.geometry!==null?t.geometry.type:t.type}Gt(_m,"getType");var Em=Object.defineProperty,zu=(t,e)=>Em(t,"name",{value:e,configurable:!0});function at(t,e,r={}){if(!t)throw new Error("point is required");if(!e)throw new Error("polygon is required");const n=Rs(t),i=fr(e),o=i.type,s=e.bbox;let c=i.coordinates;if(s&&qu(n,s)===!1)return!1;o==="Polygon"&&(c=[c]);let l=!1;for(var f=0;f<c.length;++f){const d=gh(n,c[f]);if(d===0)return!r.ignoreBoundary;d&&(l=!0)}return l}zu(at,"booleanPointInPolygon");function qu(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}zu(qu,"inBBox");class Gu{constructor(e=[],r=Mm){if(this.data=e,this.length=this.data.length,this.compare=r,this.length>0)for(let n=(this.length>>1)-1;n>=0;n--)this._down(n)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const e=this.data[0],r=this.data.pop();return this.length--,this.length>0&&(this.data[0]=r,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:r,compare:n}=this,i=r[e];for(;e>0;){const o=e-1>>1,s=r[o];if(n(i,s)>=0)break;r[e]=s,e=o}r[e]=i}_down(e){const{data:r,compare:n}=this,i=this.length>>1,o=r[e];for(;e<i;){let s=(e<<1)+1,c=r[s];const l=s+1;if(l<this.length&&n(r[l],c)<0&&(s=l,c=r[l]),n(c,o)>=0)break;r[e]=c,e=s}r[e]=o}}function Mm(t,e){return t<e?-1:t>e?1:0}function Ku(t,e){return t.p.x>e.p.x?1:t.p.x<e.p.x?-1:t.p.y!==e.p.y?t.p.y>e.p.y?1:-1:1}function Pm(t,e){return t.rightSweepEvent.p.x>e.rightSweepEvent.p.x?1:t.rightSweepEvent.p.x<e.rightSweepEvent.p.x?-1:t.rightSweepEvent.p.y!==e.rightSweepEvent.p.y?t.rightSweepEvent.p.y<e.rightSweepEvent.p.y?1:-1:1}class Vu{constructor(e,r,n,i){this.p={x:e[0],y:e[1]},this.featureId=r,this.ringId=n,this.eventId=i,this.otherEvent=null,this.isLeftEndpoint=null}isSamePoint(e){return this.p.x===e.p.x&&this.p.y===e.p.y}}function Om(t,e){if(t.type==="FeatureCollection"){const r=t.features;for(let n=0;n<r.length;n++)Yu(r[n],e)}else Yu(t,e)}let Oi=0,Ci=0,ki=0;function Yu(t,e){const r=t.type==="Feature"?t.geometry:t;let n=r.coordinates;(r.type==="Polygon"||r.type==="MultiLineString")&&(n=[n]),r.type==="LineString"&&(n=[[n]]);for(let i=0;i<n.length;i++)for(let o=0;o<n[i].length;o++){let s=n[i][o][0],c=null;Ci=Ci+1;for(let l=0;l<n[i][o].length-1;l++){c=n[i][o][l+1];const f=new Vu(s,Oi,Ci,ki),d=new Vu(c,Oi,Ci,ki+1);f.otherEvent=d,d.otherEvent=f,Ku(f,d)>0?(d.isLeftEndpoint=!0,f.isLeftEndpoint=!1):(f.isLeftEndpoint=!0,d.isLeftEndpoint=!1),e.push(f),e.push(d),s=c,ki=ki+1}}Oi=Oi+1}class Cm{constructor(e){this.leftSweepEvent=e,this.rightSweepEvent=e.otherEvent}}function km(t,e){if(t===null||e===null||t.leftSweepEvent.ringId===e.leftSweepEvent.ringId&&(t.rightSweepEvent.isSamePoint(e.leftSweepEvent)||t.rightSweepEvent.isSamePoint(e.leftSweepEvent)||t.rightSweepEvent.isSamePoint(e.rightSweepEvent)||t.leftSweepEvent.isSamePoint(e.leftSweepEvent)||t.leftSweepEvent.isSamePoint(e.rightSweepEvent)))return!1;const r=t.leftSweepEvent.p.x,n=t.leftSweepEvent.p.y,i=t.rightSweepEvent.p.x,o=t.rightSweepEvent.p.y,s=e.leftSweepEvent.p.x,c=e.leftSweepEvent.p.y,l=e.rightSweepEvent.p.x,f=e.rightSweepEvent.p.y,d=(f-c)*(i-r)-(l-s)*(o-n),g=(l-s)*(n-c)-(f-c)*(r-s),m=(i-r)*(n-c)-(o-n)*(r-s);if(d===0)return!1;const b=g/d,A=m/d;if(b>=0&&b<=1&&A>=0&&A<=1){const L=r+b*(i-r),F=n+b*(o-n);return[L,F]}return!1}function Lm(t,e){e=e||!1;const r=[],n=new Gu([],Pm);for(;t.length;){const i=t.pop();if(i.isLeftEndpoint){const o=new Cm(i);for(let s=0;s<n.data.length;s++){const c=n.data[s];if(e&&c.leftSweepEvent.featureId===i.featureId)continue;const l=km(o,c);l!==!1&&r.push(l)}n.push(o)}else i.isLeftEndpoint===!1&&n.pop()}return r}function Tm(t,e){const r=new Gu([],Ku);return Om(t,r),Lm(r,e)}var Im=Object.defineProperty,Dm=(t,e)=>Im(t,"name",{value:e,configurable:!0}),Rm=Tm;function Li(t,e,r={}){const{removeDuplicates:n=!0,ignoreSelfIntersections:i=!1}=r;let o=[];t.type==="FeatureCollection"?o=o.concat(t.features):t.type==="Feature"?o.push(t):(t.type==="LineString"||t.type==="Polygon"||t.type==="MultiLineString"||t.type==="MultiPolygon")&&o.push(ut(t)),e.type==="FeatureCollection"?o=o.concat(e.features):e.type==="Feature"?o.push(e):(e.type==="LineString"||e.type==="Polygon"||e.type==="MultiLineString"||e.type==="MultiPolygon")&&o.push(ut(e));const s=Rm(ur(o),i);let c=[];if(n){const l={};s.forEach(f=>{const d=f.join(",");l[d]||(l[d]=!0,c.push(f))})}else c=s;return ur(c.map(l=>St(l)))}Dm(Li,"lineIntersect");var jm=Object.defineProperty,Fe=(t,e)=>jm(t,"name",{value:e,configurable:!0});function Hr(t,e,r){if(t!==null)for(var n,i,o,s,c,l,f,d=0,g=0,m,b=t.type,A=b==="FeatureCollection",L=b==="Feature",F=A?t.features.length:1,K=0;K<F;K++){f=A?t.features[K].geometry:L?t.geometry:t,m=f?f.type==="GeometryCollection":!1,c=m?f.geometries.length:1;for(var J=0;J<c;J++){var Z=0,pe=0;if(s=m?f.geometries[J]:f,s!==null){l=s.coordinates;var te=s.type;switch(d=r&&(te==="Polygon"||te==="MultiPolygon")?1:0,te){case null:break;case"Point":if(e(l,g,K,Z,pe)===!1)return!1;g++,Z++;break;case"LineString":case"MultiPoint":for(n=0;n<l.length;n++){if(e(l[n],g,K,Z,pe)===!1)return!1;g++,te==="MultiPoint"&&Z++}te==="LineString"&&Z++;break;case"Polygon":case"MultiLineString":for(n=0;n<l.length;n++){for(i=0;i<l[n].length-d;i++){if(e(l[n][i],g,K,Z,pe)===!1)return!1;g++}te==="MultiLineString"&&Z++,te==="Polygon"&&pe++}te==="Polygon"&&Z++;break;case"MultiPolygon":for(n=0;n<l.length;n++){for(pe=0,i=0;i<l[n].length;i++){for(o=0;o<l[n][i].length-d;o++){if(e(l[n][i][o],g,K,Z,pe)===!1)return!1;g++}pe++}Z++}break;case"GeometryCollection":for(n=0;n<s.geometries.length;n++)if(Hr(s.geometries[n],e,r)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}Fe(Hr,"coordEach");function Bm(t,e,r,n){var i=r;return Hr(t,function(o,s,c,l,f){s===0&&r===void 0?i=o:i=e(i,o,s,c,l,f)},n),i}Fe(Bm,"coordReduce");function Ju(t,e){var r;switch(t.type){case"FeatureCollection":for(r=0;r<t.features.length&&e(t.features[r].properties,r)!==!1;r++);break;case"Feature":e(t.properties,0);break}}Fe(Ju,"propEach");function Nm(t,e,r){var n=r;return Ju(t,function(i,o){o===0&&r===void 0?n=i:n=e(n,i,o)}),n}Fe(Nm,"propReduce");function Zu(t,e){if(t.type==="Feature")e(t,0);else if(t.type==="FeatureCollection")for(var r=0;r<t.features.length&&e(t.features[r],r)!==!1;r++);}Fe(Zu,"featureEach");function Hm(t,e,r){var n=r;return Zu(t,function(i,o){o===0&&r===void 0?n=i:n=e(n,i,o)}),n}Fe(Hm,"featureReduce");function Um(t){var e=[];return Hr(t,function(r){e.push(r)}),e}Fe(Um,"coordAll");function js(t,e){var r,n,i,o,s,c,l,f,d,g,m=0,b=t.type==="FeatureCollection",A=t.type==="Feature",L=b?t.features.length:1;for(r=0;r<L;r++){for(c=b?t.features[r].geometry:A?t.geometry:t,f=b?t.features[r].properties:A?t.properties:{},d=b?t.features[r].bbox:A?t.bbox:void 0,g=b?t.features[r].id:A?t.id:void 0,l=c?c.type==="GeometryCollection":!1,s=l?c.geometries.length:1,i=0;i<s;i++){if(o=l?c.geometries[i]:c,o===null){if(e(null,m,f,d,g)===!1)return!1;continue}switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(e(o,m,f,d,g)===!1)return!1;break}case"GeometryCollection":{for(n=0;n<o.geometries.length;n++)if(e(o.geometries[n],m,f,d,g)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}m++}}Fe(js,"geomEach");function Wm(t,e,r){var n=r;return js(t,function(i,o,s,c,l){o===0&&r===void 0?n=i:n=e(n,i,o,s,c,l)}),n}Fe(Wm,"geomReduce");function Kt(t,e){js(t,function(r,n,i,o,s){var c=r===null?null:r.type;switch(c){case null:case"Point":case"LineString":case"Polygon":return e(ut(r,i,{bbox:o,id:s}),n,0)===!1?!1:void 0}var l;switch(c){case"MultiPoint":l="Point";break;case"MultiLineString":l="LineString";break;case"MultiPolygon":l="Polygon";break}for(var f=0;f<r.coordinates.length;f++){var d=r.coordinates[f],g={type:l,coordinates:d};if(e(ut(g,i),n,f)===!1)return!1}})}Fe(Kt,"flattenEach");function Fm(t,e,r){var n=r;return Kt(t,function(i,o,s){o===0&&s===0&&r===void 0?n=i:n=e(n,i,o,s)}),n}Fe(Fm,"flattenReduce");function Xu(t,e){Kt(t,function(r,n,i){var o=0;if(r.geometry){var s=r.geometry.type;if(!(s==="Point"||s==="MultiPoint")){var c,l=0,f=0,d=0;if(Hr(r,function(g,m,b,A,L){if(c===void 0||n>l||A>f||L>d){c=g,l=n,f=A,d=L,o=0;return}var F=At([c,g],r.properties);if(e(F,n,i,L,o)===!1)return!1;o++,c=g})===!1)return!1}}})}Fe(Xu,"segmentEach");function zm(t,e,r){var n=r,i=!1;return Xu(t,function(o,s,c,l,f){i===!1&&r===void 0?n=o:n=e(n,o,s,c,l,f),i=!0}),n}Fe(zm,"segmentReduce");function Qu(t,e){if(!t)throw new Error("geojson is required");Kt(t,function(r,n,i){if(r.geometry!==null){var o=r.geometry.type,s=r.geometry.coordinates;switch(o){case"LineString":if(e(r,n,i,0,0)===!1)return!1;break;case"Polygon":for(var c=0;c<s.length;c++)if(e(At(s[c],r.properties),n,i,c)===!1)return!1;break}}})}Fe(Qu,"lineEach");function qm(t,e,r){var n=r;return Qu(t,function(i,o,s,c){o===0&&r===void 0?n=i:n=e(n,i,o,s,c)}),n}Fe(qm,"lineReduce");function Gm(t,e){if(e=e||{},!Ds(e))throw new Error("options is invalid");var r=e.featureIndex||0,n=e.multiFeatureIndex||0,i=e.geometryIndex||0,o=e.segmentIndex||0,s=e.properties,c;switch(t.type){case"FeatureCollection":r<0&&(r=t.features.length+r),s=s||t.features[r].properties,c=t.features[r].geometry;break;case"Feature":s=s||t.properties,c=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":c=t;break;default:throw new Error("geojson is invalid")}if(c===null)return null;var l=c.coordinates;switch(c.type){case"Point":case"MultiPoint":return null;case"LineString":return o<0&&(o=l.length+o-1),At([l[o],l[o+1]],s,e);case"Polygon":return i<0&&(i=l.length+i),o<0&&(o=l[i].length+o-1),At([l[i][o],l[i][o+1]],s,e);case"MultiLineString":return n<0&&(n=l.length+n),o<0&&(o=l[n].length+o-1),At([l[n][o],l[n][o+1]],s,e);case"MultiPolygon":return n<0&&(n=l.length+n),i<0&&(i=l[n].length+i),o<0&&(o=l[n][i].length-o-1),At([l[n][i][o],l[n][i][o+1]],s,e)}throw new Error("geojson is invalid")}Fe(Gm,"findSegment");function Km(t,e){if(e=e||{},!Ds(e))throw new Error("options is invalid");var r=e.featureIndex||0,n=e.multiFeatureIndex||0,i=e.geometryIndex||0,o=e.coordIndex||0,s=e.properties,c;switch(t.type){case"FeatureCollection":r<0&&(r=t.features.length+r),s=s||t.features[r].properties,c=t.features[r].geometry;break;case"Feature":s=s||t.properties,c=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":c=t;break;default:throw new Error("geojson is invalid")}if(c===null)return null;var l=c.coordinates;switch(c.type){case"Point":return St(l,s,e);case"MultiPoint":return n<0&&(n=l.length+n),St(l[n],s,e);case"LineString":return o<0&&(o=l.length+o),St(l[o],s,e);case"Polygon":return i<0&&(i=l.length+i),o<0&&(o=l[i].length+o),St(l[i][o],s,e);case"MultiLineString":return n<0&&(n=l.length+n),o<0&&(o=l[n].length+o),St(l[n][o],s,e);case"MultiPolygon":return n<0&&(n=l.length+n),i<0&&(i=l[n].length+i),o<0&&(o=l[n][i].length-o),St(l[n][i][o],s,e)}throw new Error("geojson is invalid")}Fe(Km,"findPoint");var Vm=Object.defineProperty,Ti=(t,e)=>Vm(t,"name",{value:e,configurable:!0});function Ii(t,e={}){const r=fr(t);switch(!e.properties&&t.type==="Feature"&&(e.properties=t.properties),r.type){case"Polygon":return ef(r,e);case"MultiPolygon":return tf(r,e);default:throw new Error("invalid poly")}}Ti(Ii,"polygonToLine");function ef(t,e={}){const n=fr(t).coordinates,i=e.properties?e.properties:t.type==="Feature"?t.properties:{};return Bs(n,i)}Ti(ef,"singlePolygonToLine");function tf(t,e={}){const n=fr(t).coordinates,i=e.properties?e.properties:t.type==="Feature"?t.properties:{},o=[];return n.forEach(s=>{o.push(Bs(s,i))}),ur(o)}Ti(tf,"multiPolygonToLine");function Bs(t,e){return t.length>1?Ts(t,e):At(t[0],e)}Ti(Bs,"coordsToLine");var Ym=Object.defineProperty,Vt=(t,e)=>Ym(t,"name",{value:e,configurable:!0});function rf(t,e){let r=!0;return Kt(t,n=>{Kt(e,i=>{if(r===!1)return!1;r=nf(n.geometry,i.geometry)})}),r}Vt(rf,"booleanDisjoint");function nf(t,e){switch(t.type){case"Point":switch(e.type){case"Point":return!lf(t.coordinates,e.coordinates);case"LineString":return!Ns(e,t);case"Polygon":return!at(t,e)}break;case"LineString":switch(e.type){case"Point":return!Ns(t,e);case"LineString":return!of(t,e);case"Polygon":return!Hs(e,t)}break;case"Polygon":switch(e.type){case"Point":return!at(e,t);case"LineString":return!Hs(t,e);case"Polygon":return!sf(e,t)}}return!1}Vt(nf,"disjoint");function Ns(t,e){for(let r=0;r<t.coordinates.length-1;r++)if(af(t.coordinates[r],t.coordinates[r+1],e.coordinates))return!0;return!1}Vt(Ns,"isPointOnLine");function of(t,e){return Li(t,e).features.length>0}Vt(of,"isLineOnLine");function Hs(t,e){for(const n of e.coordinates)if(at(n,t))return!0;return Li(e,Ii(t)).features.length>0}Vt(Hs,"isLineInPoly");function sf(t,e){for(const n of t.coordinates[0])if(at(n,e))return!0;for(const n of e.coordinates[0])if(at(n,t))return!0;return Li(Ii(t),Ii(e)).features.length>0}Vt(sf,"isPolyInPoly");function af(t,e,r){const n=r[0]-t[0],i=r[1]-t[1],o=e[0]-t[0],s=e[1]-t[1];return n*s-i*o!==0?!1:Math.abs(o)>=Math.abs(s)?o>0?t[0]<=r[0]&&r[0]<=e[0]:e[0]<=r[0]&&r[0]<=t[0]:s>0?t[1]<=r[1]&&r[1]<=e[1]:e[1]<=r[1]&&r[1]<=t[1]}Vt(af,"isPointOnLineSegment");function lf(t,e){return t[0]===e[0]&&t[1]===e[1]}Vt(lf,"compareCoords");var Jm=Object.defineProperty,Zm=(t,e)=>Jm(t,"name",{value:e,configurable:!0});function cf(t,e){let r=!1;return Kt(t,n=>{Kt(e,i=>{if(r===!0)return!0;r=!rf(n.geometry,i.geometry)})}),r}Zm(cf,"booleanIntersects");var Xm=cf,Qm=Object.defineProperty,e0=(t,e)=>Qm(t,"name",{value:e,configurable:!0});function Mn(t,e={}){if(t.bbox!=null&&e.recompute!==!0)return t.bbox;const r=[1/0,1/0,-1/0,-1/0];return Hr(t,n=>{r[0]>n[0]&&(r[0]=n[0]),r[1]>n[1]&&(r[1]=n[1]),r[2]<n[0]&&(r[2]=n[0]),r[3]<n[1]&&(r[3]=n[1])}),r}e0(Mn,"bbox");var t0=Object.defineProperty,uf=(t,e)=>t0(t,"name",{value:e,configurable:!0});function Pn(t,e,r={}){const n=Rs(t),i=Wu(e);for(let o=0;o<i.length-1;o++){let s=!1;if(r.ignoreEndVertices&&(o===0&&(s="start"),o===i.length-2&&(s="end"),o===0&&o+1===i.length-1&&(s="both")),ff(i[o],i[o+1],n,s,typeof r.epsilon>"u"?null:r.epsilon))return!0}return!1}uf(Pn,"booleanPointOnLine");function ff(t,e,r,n,i){const o=r[0],s=r[1],c=t[0],l=t[1],f=e[0],d=e[1],g=r[0]-c,m=r[1]-l,b=f-c,A=d-l,L=g*A-m*b;if(i!==null){if(Math.abs(L)>i)return!1}else if(L!==0)return!1;if(n){if(n==="start")return Math.abs(b)>=Math.abs(A)?b>0?c<o&&o<=f:f<=o&&o<c:A>0?l<s&&s<=d:d<=s&&s<l;if(n==="end")return Math.abs(b)>=Math.abs(A)?b>0?c<=o&&o<f:f<o&&o<=c:A>0?l<=s&&s<d:d<s&&s<=l;if(n==="both")return Math.abs(b)>=Math.abs(A)?b>0?c<o&&o<f:f<o&&o<c:A>0?l<s&&s<d:d<s&&s<l}else return Math.abs(b)>=Math.abs(A)?b>0?c<=o&&o<=f:f<=o&&o<=c:A>0?l<=s&&s<=d:d<=s&&s<=l;return!1}uf(ff,"isPointOnLineSegment");var r0=Object.defineProperty,gt=(t,e)=>r0(t,"name",{value:e,configurable:!0});function pf(t,e){var r=fr(t),n=fr(e),i=r.type,o=n.type;switch(i){case"Point":switch(o){case"MultiPoint":return hf(r,n);case"LineString":return Pn(r,n,{ignoreEndVertices:!0});case"Polygon":case"MultiPolygon":return at(r,n,{ignoreBoundary:!0});default:throw new Error("feature2 "+o+" geometry not supported")}case"MultiPoint":switch(o){case"MultiPoint":return df(r,n);case"LineString":return gf(r,n);case"Polygon":case"MultiPolygon":return yf(r,n);default:throw new Error("feature2 "+o+" geometry not supported")}case"LineString":switch(o){case"LineString":return vf(r,n);case"Polygon":case"MultiPolygon":return mf(r,n);default:throw new Error("feature2 "+o+" geometry not supported")}case"Polygon":switch(o){case"Polygon":case"MultiPolygon":return bf(r,n);default:throw new Error("feature2 "+o+" geometry not supported")}default:throw new Error("feature1 "+i+" geometry not supported")}}gt(pf,"booleanWithin");function hf(t,e){var r,n=!1;for(r=0;r<e.coordinates.length;r++)if(Ws(e.coordinates[r],t.coordinates)){n=!0;break}return n}gt(hf,"isPointInMultiPoint");function df(t,e){for(var r=0;r<t.coordinates.length;r++){for(var n=!1,i=0;i<e.coordinates.length;i++)Ws(t.coordinates[r],e.coordinates[i])&&(n=!0);if(!n)return!1}return!0}gt(df,"isMultiPointInMultiPoint");function gf(t,e){for(var r=!1,n=0;n<t.coordinates.length;n++){if(!Pn(t.coordinates[n],e))return!1;r||(r=Pn(t.coordinates[n],e,{ignoreEndVertices:!0}))}return r}gt(gf,"isMultiPointOnLine");function yf(t,e){for(var r=!0,n=!1,i=0;i<t.coordinates.length;i++){if(n=at(t.coordinates[i],e),!n){r=!1;break}n=at(t.coordinates[i],e,{ignoreBoundary:!0})}return r&&n}gt(yf,"isMultiPointInPoly");function vf(t,e){for(var r=0;r<t.coordinates.length;r++)if(!Pn(t.coordinates[r],e))return!1;return!0}gt(vf,"isLineOnLine");function mf(t,e){var r=Mn(e),n=Mn(t);if(!Us(r,n))return!1;for(var i=!1,o=0;o<t.coordinates.length;o++){if(!at(t.coordinates[o],e))return!1;if(i||(i=at(t.coordinates[o],e,{ignoreBoundary:!0})),!i&&o<t.coordinates.length-1){var s=wf(t.coordinates[o],t.coordinates[o+1]);i=at(s,e,{ignoreBoundary:!0})}}return i}gt(mf,"isLineInPoly");function bf(t,e){var r=Mn(t),n=Mn(e);if(!Us(n,r))return!1;for(var i=0;i<t.coordinates[0].length;i++)if(!at(t.coordinates[0][i],e))return!1;return!0}gt(bf,"isPolyInPoly");function Us(t,e){return!(t[0]>e[0]||t[2]<e[2]||t[1]>e[1]||t[3]<e[3])}gt(Us,"doBBoxOverlap");function Ws(t,e){return t[0]===e[0]&&t[1]===e[1]}gt(Ws,"compareCoords");function wf(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2]}gt(wf,"getMidpoint");var n0=pf;const i0=(t,e)=>e?Xm(t,e):!0,o0=(t,e)=>e?n0(t,e):!0;function s0(t,e="highlight",r="title"){const n=(o,s,c)=>{const l=s.split(".");let f;for(f=0;f<l.length-1;f++)o=o[l[f]];o[l[f]]=c},i=(o,s=[])=>{let c="",l=0;return s.forEach(f=>{const d=f[1]+1;c+=[o.substring(l,f[0]),`<mark class="${e}">`,o.substring(f[0],d),"</mark>"].join(""),l=d}),c+=o.substring(l),c};return t.filter(({matches:o})=>o&&o.length).map(({item:o,matches:s})=>{const c={...o};return s.forEach(l=>{l.key===r&&n(c,l.key,i(l.value,l.indices))}),c})}var $f={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(Ge,function(){var r=1e3,n=6e4,i=36e5,o="millisecond",s="second",c="minute",l="hour",f="day",d="week",g="month",m="quarter",b="year",A="date",L="Invalid Date",F=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,K=/\[([^\]]+)]|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,J={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(I){var E=["th","st","nd","rd"],_=I%100;return"["+I+(E[(_-20)%10]||E[_]||E[0])+"]"}},Z=function(I,E,_){var R=String(I);return!R||R.length>=E?I:""+Array(E+1-R.length).join(_)+I},pe={s:Z,z:function(I){var E=-I.utcOffset(),_=Math.abs(E),R=Math.floor(_/60),P=_%60;return(E<=0?"+":"-")+Z(R,2,"0")+":"+Z(P,2,"0")},m:function I(E,_){if(E.date()<_.date())return-I(_,E);var R=12*(_.year()-E.year())+(_.month()-E.month()),P=E.clone().add(R,g),q=_-P<0,G=E.clone().add(R+(q?-1:1),g);return+(-(R+(_-P)/(q?P-G:G-P))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:g,y:b,w:d,d:f,D:A,h:l,m:c,s,ms:o,Q:m}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},te="en",N={};N[te]=J;var X="$isDayjsObject",ie=function(I){return I instanceof Ne||!(!I||!I[X])},we=function I(E,_,R){var P;if(!E)return te;if(typeof E=="string"){var q=E.toLowerCase();N[q]&&(P=q),_&&(N[q]=_,P=q);var G=E.split("-");if(!P&&G.length>1)return I(G[0])}else{var ye=E.name;N[ye]=E,P=ye}return!R&&P&&(te=P),P||!R&&te},de=function(I,E){if(ie(I))return I.clone();var _=typeof E=="object"?E:{};return _.date=I,_.args=arguments,new Ne(_)},re=pe;re.l=we,re.i=ie,re.w=function(I,E){return de(I,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var Ne=function(){function I(_){this.$L=we(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[X]=!0}var E=I.prototype;return E.parse=function(_){this.$d=function(R){var P=R.date,q=R.utc;if(P===null)return new Date(NaN);if(re.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var G=P.match(F);if(G){var ye=G[2]-1||0,_e=(G[7]||"0").substring(0,3);return q?new Date(Date.UTC(G[1],ye,G[3]||1,G[4]||0,G[5]||0,G[6]||0,_e)):new Date(G[1],ye,G[3]||1,G[4]||0,G[5]||0,G[6]||0,_e)}}return new Date(P)}(_),this.init()},E.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},E.$utils=function(){return re},E.isValid=function(){return this.$d.toString()!==L},E.isSame=function(_,R){var P=de(_);return this.startOf(R)<=P&&P<=this.endOf(R)},E.isAfter=function(_,R){return de(_)<this.startOf(R)},E.isBefore=function(_,R){return this.endOf(R)<de(_)},E.$g=function(_,R,P){return re.u(_)?this[R]:this.set(P,_)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(_,R){var P=this,q=!!re.u(R)||R,G=re.p(_),ye=function(Te,oe){var Ie=re.w(P.$u?Date.UTC(P.$y,oe,Te):new Date(P.$y,oe,Te),P);return q?Ie:Ie.endOf(f)},_e=function(Te,oe){return re.w(P.toDate()[Te].apply(P.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(oe)),P)},Pe=this.$W,Ce=this.$M,Ve=this.$D,Le="set"+(this.$u?"UTC":"");switch(G){case b:return q?ye(1,0):ye(31,11);case g:return q?ye(1,Ce):ye(0,Ce+1);case d:var Ye=this.$locale().weekStart||0,le=(Pe<Ye?Pe+7:Pe)-Ye;return ye(q?Ve-le:Ve+(6-le),Ce);case f:case A:return _e(Le+"Hours",0);case l:return _e(Le+"Minutes",1);case c:return _e(Le+"Seconds",2);case s:return _e(Le+"Milliseconds",3);default:return this.clone()}},E.endOf=function(_){return this.startOf(_,!1)},E.$set=function(_,R){var P,q=re.p(_),G="set"+(this.$u?"UTC":""),ye=(P={},P[f]=G+"Date",P[A]=G+"Date",P[g]=G+"Month",P[b]=G+"FullYear",P[l]=G+"Hours",P[c]=G+"Minutes",P[s]=G+"Seconds",P[o]=G+"Milliseconds",P)[q],_e=q===f?this.$D+(R-this.$W):R;if(q===g||q===b){var Pe=this.clone().set(A,1);Pe.$d[ye](_e),Pe.init(),this.$d=Pe.set(A,Math.min(this.$D,Pe.daysInMonth())).$d}else ye&&this.$d[ye](_e);return this.init(),this},E.set=function(_,R){return this.clone().$set(_,R)},E.get=function(_){return this[re.p(_)]()},E.add=function(_,R){var P,q=this;_=Number(_);var G=re.p(R),ye=function(Ce){var Ve=de(q);return re.w(Ve.date(Ve.date()+Math.round(Ce*_)),q)};if(G===g)return this.set(g,this.$M+_);if(G===b)return this.set(b,this.$y+_);if(G===f)return ye(1);if(G===d)return ye(7);var _e=(P={},P[c]=n,P[l]=i,P[s]=r,P)[G]||1,Pe=this.$d.getTime()+_*_e;return re.w(Pe,this)},E.subtract=function(_,R){return this.add(-1*_,R)},E.format=function(_){var R=this,P=this.$locale();if(!this.isValid())return P.invalidDate||L;var q=_||"YYYY-MM-DDTHH:mm:ssZ",G=re.z(this),ye=this.$H,_e=this.$m,Pe=this.$M,Ce=P.weekdays,Ve=P.months,Le=P.meridiem,Ye=function(oe,Ie,_t,Ee){return oe&&(oe[Ie]||oe(R,q))||_t[Ie].slice(0,Ee)},le=function(oe){return re.s(ye%12||12,oe,"0")},Te=Le||function(oe,Ie,_t){var Ee=oe<12?"AM":"PM";return _t?Ee.toLowerCase():Ee};return q.replace(K,function(oe,Ie){return Ie||function(_t){switch(_t){case"YY":return String(R.$y).slice(-2);case"YYYY":return re.s(R.$y,4,"0");case"M":return Pe+1;case"MM":return re.s(Pe+1,2,"0");case"MMM":return Ye(P.monthsShort,Pe,Ve,3);case"MMMM":return Ye(Ve,Pe);case"D":return R.$D;case"DD":return re.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return Ye(P.weekdaysMin,R.$W,Ce,2);case"ddd":return Ye(P.weekdaysShort,R.$W,Ce,3);case"dddd":return Ce[R.$W];case"H":return String(ye);case"HH":return re.s(ye,2,"0");case"h":return le(1);case"hh":return le(2);case"a":return Te(ye,_e,!0);case"A":return Te(ye,_e,!1);case"m":return String(_e);case"mm":return re.s(_e,2,"0");case"s":return String(R.$s);case"ss":return re.s(R.$s,2,"0");case"SSS":return re.s(R.$ms,3,"0");case"Z":return G}return null}(oe)||G.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(_,R,P){var q,G=this,ye=re.p(R),_e=de(_),Pe=(_e.utcOffset()-this.utcOffset())*n,Ce=this-_e,Ve=function(){return re.m(G,_e)};switch(ye){case b:q=Ve()/12;break;case g:q=Ve();break;case m:q=Ve()/3;break;case d:q=(Ce-Pe)/6048e5;break;case f:q=(Ce-Pe)/864e5;break;case l:q=Ce/i;break;case c:q=Ce/n;break;case s:q=Ce/r;break;default:q=Ce}return P?q:re.a(q)},E.daysInMonth=function(){return this.endOf(g).$D},E.$locale=function(){return N[this.$L]},E.locale=function(_,R){if(!_)return this.$L;var P=this.clone(),q=we(_,R,!0);return q&&(P.$L=q),P},E.clone=function(){return re.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},I}(),et=Ne.prototype;return de.prototype=et,[["$ms",o],["$s",s],["$m",c],["$H",l],["$W",f],["$M",g],["$y",b],["$D",A]].forEach(function(I){et[I[1]]=function(E){return this.$g(E,I[0],I[1])}}),de.extend=function(I,E){return I.$i||(I(E,Ne,de),I.$i=!0),de},de.locale=we,de.isDayjs=ie,de.unix=function(I){return de(1e3*I)},de.en=N[te],de.Ls=N,de.p={},de})})($f);var a0=$f.exports;const On=vn(a0);let xf;const l0=(t,e)=>{xf=new Ut(t,{threshold:.4,distance:50,includeMatches:!0,useExtendedSearch:!0,...e})},c0=async(t,e,r)=>{const n=Object.entries(e).filter(([,c])=>c.type==="text"||c.type==="select"||c.type==="multiselect").reduce((c,[l,f])=>{const d="$or",g=[],m=(b,A)=>{const L={};f.type==="text"?L[b]=`${A}`:L[l]=`="${b}"`,g.push(L)};return Object.entries(f.state).filter(([,b])=>b).forEach(([b,A])=>m(b,A)),g.length>0&&c.push({[d]:g}),c},[]);let i;if(!(n.length>0)&&r.matchAllWhenEmpty!==!1)i=t;else{const c={$and:[...n]},l=xf.search(c);i=r.enableHighlighting?s0(l,"highlight",r.titleProperty):l.map(f=>f.item)}const o=Object.entries(e).filter(([,c])=>c.type==="range").reduce((c,[l,f])=>(c[l]={min:f.state.min,max:f.state.max,format:f.format},c),{});if(Object.keys(o).length>0){const c=[];for(let l=0;l<i.length;l++){const f={};for(const[d,g]of Object.entries(o)){const m=b=>g.format==="date"?On(b).unix():b;Object.prototype.hasOwnProperty.call(i[l],d)?Array.isArray(i[l][d])?f[d]=o[d].min<=m(i[l][d][1])&&m(i[l][d][0])<=o[d].max:m(i[l][d])>=o[d].min&&m(i[l][d])<=o[d].max?f[d]=!0:f[d]=!1:f[d]=!0}Object.values(f).every(d=>!!d)&&c.push(i[l])}i=[...c]}const s=Object.entries(e).filter(([,c])=>c.type==="spatial").reduce((c,[l,f])=>(c[l]={geometry:f.state.geometry,mode:f.state.mode},c),{});if(Object.values(s).map(c=>c.geometry).filter(c=>!!c).length>0){const c=[];for(let l=0;l<i.length;l++){const f={};for(const d of Object.keys(s)){const g=s[d].mode||"within";Object.prototype.hasOwnProperty.call(i[l],d)&&(g==="within"?o0(i[l][d],s[d].geometry):i0(i[l][d],s[d].geometry))?f[d]=!0:f[d]=!1}Object.values(f).every(d=>!!d)&&c.push(i[l])}i=[...c]}return i};function u0(t,e){return[{type:"Vector",properties:{id:"draw"},source:{type:"Vector",...t&&{format:"GeoJSON"},...t&&{url:e}},zIndex:1,interactions:[{type:"draw",options:{id:"drawInteraction",type:"Box",modify:!0}}]},{type:"Tile",source:{type:"XYZ",url:"https://s2maps-tiles.eu/wmts/1.0.0/osm_3857/default/g/{z}/{y}/{x}.jpg",attribution:"{ OSM: Data &copy; OpenStreetMap contributors and others, Rendering &copy; EOX }"}}]}function Di(t){if(!t.dirty)return null;switch(t.type){case"multiselect":for(const r in t.state)t.state.hasOwnProperty(r)&&(t.state[r]=!1);break;case"range":t.state.min=t.min,t.state.max=t.max;break;case"select":for(const r in t.state)t.state.hasOwnProperty(r)&&(t.state[r]=!1);break;case"spatial":t.state.geometry=void 0;break;case"text":t.keys.forEach(r=>{t.state[r]=void 0});break}return delete t.stringifiedState,delete t.dirty,t}function Sf(t,e){return t*2+e}function f0(t){return Object.keys(t).map(e=>({title:V`${e}:
493
- <strong>${t[e].stringifiedState}</strong>`,key:e})).filter(e=>t[e.key].dirty)}function Fs(t){return Object.values(t).map(e=>e.dirty).filter(e=>e).length>0}async function p0(t,e,r){return await(await fetch(`${r.externalFilter(t,e)}`)).json()}class h0 extends it{constructor(){super();nt(this,Be);this.filterProperties={},this.unstyled=!1,this.inlineMode=!1,this.showDropdown=!1,this.filters={},this._handleClickOutside=Se(this,Be,Jf).bind(this),this._handleKeyDown=Se(this,Be,Ma).bind(this)}static get properties(){return{filterProperties:{attribute:!1,type:Object},inlineMode:{attribute:"inline-mode",type:Boolean},unstyled:{type:Boolean},filters:{state:!0,type:Object}}}connectedCallback(){super.connectedCallback(),this.inlineMode&&(document.addEventListener("click",this._handleClickOutside),document.addEventListener("focusout",this._handleClickOutside),document.addEventListener("keydown",this._handleKeyDown))}disconnectedCallback(){this.inlineMode&&(document.removeEventListener("click",this._handleClickOutside),document.removeEventListener("focusout",this._handleClickOutside),document.removeEventListener("keydown",this._handleKeyDown)),super.disconnectedCallback()}updateInline(){this.inlineMode&&this.requestUpdate()}render(){return V`
486
+ ${Ge(this.filterObject.featured,()=>X`<slot name="filter"></slot>`,()=>X`<details
487
+ @toggle="${Se(this,oo,Rp)}"
488
+ class="details-filter"
489
+ ?open=${this.filterObject.expanded||be}
490
+ >
491
+ <summary>
492
+ <span
493
+ class="title"
494
+ style="${!this.filterObject.title&&"text-transform: capitalize"}"
495
+ >
496
+ ${this.filterObject.title||this.filterObject.key||"Filter"}
497
+ <slot name="reset-button"></slot>
498
+ </span>
499
+ </summary>
500
+ <div>
501
+ <slot name="filter"></slot>
502
+ </div>
503
+ </details>`)}
504
+ `}}oo=new WeakSet,Rp=function(r){this.dispatchEvent(new CustomEvent("details-toggled",{detail:r,bubbles:!0,composed:!0}))},customElements.define("eox-itemfilter-expandcontainer",fh);const Ho=Math.min,jr=Math.max,hi=Math.round,di=Math.floor,qt=t=>({x:t,y:t});function Al(t){return t.split("-")[0]}function ph(t){return t.split("-")[1]}function hh(t){return t==="x"?"y":"x"}function dh(t){return t==="y"?"height":"width"}function _l(t){return["top","bottom"].includes(Al(t))?"y":"x"}function gh(t){return hh(_l(t))}function El(t){const{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}function Ml(t,e,r){let{reference:n,floating:i}=t;const o=_l(e),s=gh(e),l=dh(s),a=Al(e),u=o==="y",h=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,m=n[l]/2-i[l]/2;let v;switch(a){case"top":v={x:h,y:n.y-i.height};break;case"bottom":v={x:h,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:d};break;case"left":v={x:n.x-i.width,y:d};break;default:v={x:n.x,y:n.y}}switch(ph(e)){case"start":v[s]-=m*(r&&u?-1:1);break;case"end":v[s]+=m*(r&&u?-1:1);break}return v}const yh=async(t,e,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,l=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(e));let u=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:h,y:d}=Ml(u,n,a),m=n,v={},S=0;for(let _=0;_<l.length;_++){const{name:I,fn:j}=l[_],{x:H,y:W,data:Z,reset:z}=await j({x:h,y:d,initialPlacement:n,placement:m,strategy:i,middlewareData:v,rects:u,platform:s,elements:{reference:t,floating:e}});h=H??h,d=W??d,v={...v,[I]:{...v[I],...Z}},z&&S<=50&&(S++,typeof z=="object"&&(z.placement&&(m=z.placement),z.rects&&(u=z.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):z.rects),{x:h,y:d}=Ml(u,m,a)),_=-1)}return{x:h,y:d,placement:m,strategy:i,middlewareData:v}};function Br(t){return Pl(t)?(t.nodeName||"").toLowerCase():"#document"}function ot(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Rt(t){var e;return(e=(Pl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Pl(t){return t instanceof Node||t instanceof ot(t).Node}function gt(t){return t instanceof Element||t instanceof ot(t).Element}function xt(t){return t instanceof HTMLElement||t instanceof ot(t).HTMLElement}function Ol(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ot(t).ShadowRoot}function On(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=yt(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function vh(t){return["table","td","th"].includes(Br(t))}function gi(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Uo(t){const e=Fo(),r=gt(t)?yt(t):t;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function mh(t){let e=Gt(t);for(;xt(e)&&!Nr(e);){if(Uo(e))return e;if(gi(e))return null;e=Gt(e)}return null}function Fo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Nr(t){return["html","body","#document"].includes(Br(t))}function yt(t){return ot(t).getComputedStyle(t)}function yi(t){return gt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Gt(t){if(Br(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ol(t)&&t.host||Rt(t);return Ol(e)?e.host:e}function Cl(t){const e=Gt(t);return Nr(e)?t.ownerDocument?t.ownerDocument.body:t.body:xt(e)&&On(e)?e:Cl(e)}function Cn(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const i=Cl(t),o=i===((n=t.ownerDocument)==null?void 0:n.body),s=ot(i);return o?e.concat(s,s.visualViewport||[],On(i)?i:[],s.frameElement&&r?Cn(s.frameElement):[]):e.concat(i,Cn(i,[],r))}function kl(t){const e=yt(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=xt(t),o=i?t.offsetWidth:r,s=i?t.offsetHeight:n,l=hi(r)!==o||hi(n)!==s;return l&&(r=o,n=s),{width:r,height:n,$:l}}function Wo(t){return gt(t)?t:t.contextElement}function Hr(t){const e=Wo(t);if(!xt(e))return qt(1);const r=e.getBoundingClientRect(),{width:n,height:i,$:o}=kl(e);let s=(o?hi(r.width):r.width)/n,l=(o?hi(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const bh=qt(0);function Ll(t){const e=ot(t);return!Fo()||!e.visualViewport?bh:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function wh(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==ot(t)?!1:e}function pr(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),o=Wo(t);let s=qt(1);e&&(n?gt(n)&&(s=Hr(n)):s=Hr(t));const l=wh(o,r,n)?Ll(o):qt(0);let a=(i.left+l.x)/s.x,u=(i.top+l.y)/s.y,h=i.width/s.x,d=i.height/s.y;if(o){const m=ot(o),v=n&&gt(n)?ot(n):n;let S=m,_=S.frameElement;for(;_&&n&&v!==S;){const I=Hr(_),j=_.getBoundingClientRect(),H=yt(_),W=j.left+(_.clientLeft+parseFloat(H.paddingLeft))*I.x,Z=j.top+(_.clientTop+parseFloat(H.paddingTop))*I.y;a*=I.x,u*=I.y,h*=I.x,d*=I.y,a+=W,u+=Z,S=ot(_),_=S.frameElement}}return El({width:h,height:d,x:a,y:u})}function $h(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t;const o=i==="fixed",s=Rt(n),l=e?gi(e.floating):!1;if(n===s||l&&o)return r;let a={scrollLeft:0,scrollTop:0},u=qt(1);const h=qt(0),d=xt(n);if((d||!d&&!o)&&((Br(n)!=="body"||On(s))&&(a=yi(n)),xt(n))){const m=pr(n);u=Hr(n),h.x=m.x+n.clientLeft,h.y=m.y+n.clientTop}return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-a.scrollLeft*u.x+h.x,y:r.y*u.y-a.scrollTop*u.y+h.y}}function xh(t){return Array.from(t.getClientRects())}function Tl(t){return pr(Rt(t)).left+yi(t).scrollLeft}function Sh(t){const e=Rt(t),r=yi(t),n=t.ownerDocument.body,i=jr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=jr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Tl(t);const l=-r.scrollTop;return yt(n).direction==="rtl"&&(s+=jr(e.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:l}}function Ah(t,e){const r=ot(t),n=Rt(t),i=r.visualViewport;let o=n.clientWidth,s=n.clientHeight,l=0,a=0;if(i){o=i.width,s=i.height;const u=Fo();(!u||u&&e==="fixed")&&(l=i.offsetLeft,a=i.offsetTop)}return{width:o,height:s,x:l,y:a}}function _h(t,e){const r=pr(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,o=xt(t)?Hr(t):qt(1),s=t.clientWidth*o.x,l=t.clientHeight*o.y,a=i*o.x,u=n*o.y;return{width:s,height:l,x:a,y:u}}function Rl(t,e,r){let n;if(e==="viewport")n=Ah(t,r);else if(e==="document")n=Sh(Rt(t));else if(gt(e))n=_h(e,r);else{const i=Ll(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return El(n)}function Dl(t,e){const r=Gt(t);return r===e||!gt(r)||Nr(r)?!1:yt(r).position==="fixed"||Dl(r,e)}function Eh(t,e){const r=e.get(t);if(r)return r;let n=Cn(t,[],!1).filter(l=>gt(l)&&Br(l)!=="body"),i=null;const o=yt(t).position==="fixed";let s=o?Gt(t):t;for(;gt(s)&&!Nr(s);){const l=yt(s),a=Uo(s);!a&&l.position==="fixed"&&(i=null),(o?!a&&!i:!a&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||On(s)&&!a&&Dl(t,s))?n=n.filter(h=>h!==s):i=l,s=Gt(s)}return e.set(t,n),n}function Mh(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const s=[...r==="clippingAncestors"?gi(e)?[]:Eh(e,this._c):[].concat(r),n],l=s[0],a=s.reduce((u,h)=>{const d=Rl(e,h,i);return u.top=jr(d.top,u.top),u.right=Ho(d.right,u.right),u.bottom=Ho(d.bottom,u.bottom),u.left=jr(d.left,u.left),u},Rl(e,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Ph(t){const{width:e,height:r}=kl(t);return{width:e,height:r}}function Oh(t,e,r){const n=xt(e),i=Rt(e),o=r==="fixed",s=pr(t,!0,o,e);let l={scrollLeft:0,scrollTop:0};const a=qt(0);if(n||!n&&!o)if((Br(e)!=="body"||On(i))&&(l=yi(e)),n){const d=pr(e,!0,o,e);a.x=d.x+e.clientLeft,a.y=d.y+e.clientTop}else i&&(a.x=Tl(i));const u=s.left+l.scrollLeft-a.x,h=s.top+l.scrollTop-a.y;return{x:u,y:h,width:s.width,height:s.height}}function zo(t){return yt(t).position==="static"}function Il(t,e){return!xt(t)||yt(t).position==="fixed"?null:e?e(t):t.offsetParent}function jl(t,e){const r=ot(t);if(gi(t))return r;if(!xt(t)){let i=Gt(t);for(;i&&!Nr(i);){if(gt(i)&&!zo(i))return i;i=Gt(i)}return r}let n=Il(t,e);for(;n&&vh(n)&&zo(n);)n=Il(n,e);return n&&Nr(n)&&zo(n)&&!Uo(n)?r:n||mh(t)||r}const Ch=async function(t){const e=this.getOffsetParent||jl,r=this.getDimensions,n=await r(t.floating);return{reference:Oh(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function kh(t){return yt(t).direction==="rtl"}const Lh={convertOffsetParentRelativeRectToViewportRelativeRect:$h,getDocumentElement:Rt,getClippingRect:Mh,getOffsetParent:jl,getElementRects:Ch,getClientRects:xh,getDimensions:Ph,getScale:Hr,isElement:gt,isRTL:kh};function Th(t,e){let r=null,n;const i=Rt(t);function o(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),o();const{left:u,top:h,width:d,height:m}=t.getBoundingClientRect();if(l||e(),!d||!m)return;const v=di(h),S=di(i.clientWidth-(u+d)),_=di(i.clientHeight-(h+m)),I=di(u),H={rootMargin:-v+"px "+-S+"px "+-_+"px "+-I+"px",threshold:jr(0,Ho(1,a))||1};let W=!0;function Z(z){const U=z[0].intersectionRatio;if(U!==a){if(!W)return s();U?s(!1,U):n=setTimeout(()=>{s(!1,1e-7)},1e3)}W=!1}try{r=new IntersectionObserver(Z,{...H,root:i.ownerDocument})}catch{r=new IntersectionObserver(Z,H)}r.observe(t)}return s(!0),o}function Rh(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=n,u=Wo(t),h=i||o?[...u?Cn(u):[],...Cn(e)]:[];h.forEach(j=>{i&&j.addEventListener("scroll",r,{passive:!0}),o&&j.addEventListener("resize",r)});const d=u&&l?Th(u,r):null;let m=-1,v=null;s&&(v=new ResizeObserver(j=>{let[H]=j;H&&H.target===u&&v&&(v.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var W;(W=v)==null||W.observe(e)})),r()}),u&&!a&&v.observe(u),v.observe(e));let S,_=a?pr(t):null;a&&I();function I(){const j=pr(t);_&&(j.x!==_.x||j.y!==_.y||j.width!==_.width||j.height!==_.height)&&r(),_=j,S=requestAnimationFrame(I)}return r(),()=>{var j;h.forEach(H=>{i&&H.removeEventListener("scroll",r),o&&H.removeEventListener("resize",r)}),d==null||d(),(j=v)==null||j.disconnect(),v=null,a&&cancelAnimationFrame(S)}}const Dh=(t,e,r)=>{const n=new Map,i={platform:Lh,...r},o={...i.platform,_c:n};return yh(t,e,{...i,platform:o})};function Dt(t){return Array.isArray?Array.isArray(t):Hl(t)==="[object Array]"}const Ih=1/0;function jh(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-Ih?"-0":e}function Bh(t){return t==null?"":jh(t)}function St(t){return typeof t=="string"}function Bl(t){return typeof t=="number"}function Nh(t){return t===!0||t===!1||Hh(t)&&Hl(t)=="[object Boolean]"}function Nl(t){return typeof t=="object"}function Hh(t){return Nl(t)&&t!==null}function st(t){return t!=null}function qo(t){return!t.trim().length}function Hl(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Aw="Extended search is not available",Uh="Incorrect 'index' type",Fh=t=>`Invalid value for key ${t}`,Wh=t=>`Pattern length exceeds max of ${t}.`,zh=t=>`Missing ${t} property in key`,qh=t=>`Property 'weight' in key '${t}' must be a positive integer`,Ul=Object.prototype.hasOwnProperty;class Gh{constructor(e){this._keys=[],this._keyMap={};let r=0;e.forEach(n=>{let i=Fl(n);this._keys.push(i),this._keyMap[i.id]=i,r+=i.weight}),this._keys.forEach(n=>{n.weight/=r})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Fl(t){let e=null,r=null,n=null,i=1,o=null;if(St(t)||Dt(t))n=t,e=Wl(t),r=Go(t);else{if(!Ul.call(t,"name"))throw new Error(zh("name"));const s=t.name;if(n=s,Ul.call(t,"weight")&&(i=t.weight,i<=0))throw new Error(qh(s));e=Wl(s),r=Go(s),o=t.getFn}return{path:e,id:r,weight:i,src:n,getFn:o}}function Wl(t){return Dt(t)?t:t.split(".")}function Go(t){return Dt(t)?t.join("."):t}function Vh(t,e){let r=[],n=!1;const i=(o,s,l)=>{if(st(o))if(!s[l])r.push(o);else{let a=s[l];const u=o[a];if(!st(u))return;if(l===s.length-1&&(St(u)||Bl(u)||Nh(u)))r.push(Bh(u));else if(Dt(u)){n=!0;for(let h=0,d=u.length;h<d;h+=1)i(u[h],s,l+1)}else s.length&&i(u,s,l+1)}};return i(t,St(e)?e.split("."):e,0),n?r:r[0]}var K={...{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},...{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},...{location:0,threshold:.6,distance:100},...{useExtendedSearch:!1,getFn:Vh,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const Kh=/[^ ]+/g;function Yh(t=1,e=3){const r=new Map,n=Math.pow(10,e);return{get(i){const o=i.match(Kh).length;if(r.has(o))return r.get(o);const s=1/Math.pow(o,.5*t),l=parseFloat(Math.round(s*n)/n);return r.set(o,l),l},clear(){r.clear()}}}class Vo{constructor({getFn:e=K.getFn,fieldNormWeight:r=K.fieldNormWeight}={}){this.norm=Yh(r,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((r,n)=>{this._keysMap[r.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,St(this.docs[0])?this.docs.forEach((e,r)=>{this._addString(e,r)}):this.docs.forEach((e,r)=>{this._addObject(e,r)}),this.norm.clear())}add(e){const r=this.size();St(e)?this._addString(e,r):this._addObject(e,r)}removeAt(e){this.records.splice(e,1);for(let r=e,n=this.size();r<n;r+=1)this.records[r].i-=1}getValueForItemAtKeyId(e,r){return e[this._keysMap[r]]}size(){return this.records.length}_addString(e,r){if(!st(e)||qo(e))return;let n={v:e,i:r,n:this.norm.get(e)};this.records.push(n)}_addObject(e,r){let n={i:r,$:{}};this.keys.forEach((i,o)=>{let s=i.getFn?i.getFn(e):this.getFn(e,i.path);if(st(s)){if(Dt(s)){let l=[];const a=[{nestedArrIndex:-1,value:s}];for(;a.length;){const{nestedArrIndex:u,value:h}=a.pop();if(st(h))if(St(h)&&!qo(h)){let d={v:h,i:u,n:this.norm.get(h)};l.push(d)}else Dt(h)&&h.forEach((d,m)=>{a.push({nestedArrIndex:m,value:d})})}n.$[o]=l}else if(St(s)&&!qo(s)){let l={v:s,n:this.norm.get(s)};n.$[o]=l}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function zl(t,e,{getFn:r=K.getFn,fieldNormWeight:n=K.fieldNormWeight}={}){const i=new Vo({getFn:r,fieldNormWeight:n});return i.setKeys(t.map(Fl)),i.setSources(e),i.create(),i}function Jh(t,{getFn:e=K.getFn,fieldNormWeight:r=K.fieldNormWeight}={}){const{keys:n,records:i}=t,o=new Vo({getFn:e,fieldNormWeight:r});return o.setKeys(n),o.setIndexRecords(i),o}function vi(t,{errors:e=0,currentLocation:r=0,expectedLocation:n=0,distance:i=K.distance,ignoreLocation:o=K.ignoreLocation}={}){const s=e/t.length;if(o)return s;const l=Math.abs(n-r);return i?s+l/i:l?1:s}function Xh(t=[],e=K.minMatchCharLength){let r=[],n=-1,i=-1,o=0;for(let s=t.length;o<s;o+=1){let l=t[o];l&&n===-1?n=o:!l&&n!==-1&&(i=o-1,i-n+1>=e&&r.push([n,i]),n=-1)}return t[o-1]&&o-n>=e&&r.push([n,o-1]),r}const hr=32;function Zh(t,e,r,{location:n=K.location,distance:i=K.distance,threshold:o=K.threshold,findAllMatches:s=K.findAllMatches,minMatchCharLength:l=K.minMatchCharLength,includeMatches:a=K.includeMatches,ignoreLocation:u=K.ignoreLocation}={}){if(e.length>hr)throw new Error(Wh(hr));const h=e.length,d=t.length,m=Math.max(0,Math.min(n,d));let v=o,S=m;const _=l>1||a,I=_?Array(d):[];let j;for(;(j=t.indexOf(e,S))>-1;){let ee=vi(e,{currentLocation:j,expectedLocation:m,distance:i,ignoreLocation:u});if(v=Math.min(ee,v),S=j+h,_){let oe=0;for(;oe<h;)I[j+oe]=1,oe+=1}}S=-1;let H=[],W=1,Z=h+d;const z=1<<h-1;for(let ee=0;ee<h;ee+=1){let oe=0,we=Z;for(;oe<we;)vi(e,{errors:ee,currentLocation:m+we,expectedLocation:m,distance:i,ignoreLocation:u})<=v?oe=we:Z=we,we=Math.floor((Z-oe)/2+oe);Z=we;let de=Math.max(1,m-we+1),ne=s?d:Math.min(m+we,d)+h,Ne=Array(ne+2);Ne[ne+1]=(1<<ee)-1;for(let R=ne;R>=de;R-=1){let M=R-1,E=r[t.charAt(M)];if(_&&(I[M]=+!!E),Ne[R]=(Ne[R+1]<<1|1)&E,ee&&(Ne[R]|=(H[R+1]|H[R])<<1|1|H[R+1]),Ne[R]&z&&(W=vi(e,{errors:ee,currentLocation:M,expectedLocation:m,distance:i,ignoreLocation:u}),W<=v)){if(v=W,S=M,S<=m)break;de=Math.max(1,2*m-S)}}if(vi(e,{errors:ee+1,currentLocation:m,expectedLocation:m,distance:i,ignoreLocation:u})>v)break;H=Ne}const U={isMatch:S>=0,score:Math.max(.001,W)};if(_){const ee=Xh(I,l);ee.length?a&&(U.indices=ee):U.isMatch=!1}return U}function Qh(t){let e={};for(let r=0,n=t.length;r<n;r+=1){const i=t.charAt(r);e[i]=(e[i]||0)|1<<n-r-1}return e}class ql{constructor(e,{location:r=K.location,threshold:n=K.threshold,distance:i=K.distance,includeMatches:o=K.includeMatches,findAllMatches:s=K.findAllMatches,minMatchCharLength:l=K.minMatchCharLength,isCaseSensitive:a=K.isCaseSensitive,ignoreLocation:u=K.ignoreLocation}={}){if(this.options={location:r,threshold:n,distance:i,includeMatches:o,findAllMatches:s,minMatchCharLength:l,isCaseSensitive:a,ignoreLocation:u},this.pattern=a?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const h=(m,v)=>{this.chunks.push({pattern:m,alphabet:Qh(m),startIndex:v})},d=this.pattern.length;if(d>hr){let m=0;const v=d%hr,S=d-v;for(;m<S;)h(this.pattern.substr(m,hr),m),m+=hr;if(v){const _=d-hr;h(this.pattern.substr(_),_)}}else h(this.pattern,0)}searchIn(e){const{isCaseSensitive:r,includeMatches:n}=this.options;if(r||(e=e.toLowerCase()),this.pattern===e){let S={isMatch:!0,score:0};return n&&(S.indices=[[0,e.length-1]]),S}const{location:i,distance:o,threshold:s,findAllMatches:l,minMatchCharLength:a,ignoreLocation:u}=this.options;let h=[],d=0,m=!1;this.chunks.forEach(({pattern:S,alphabet:_,startIndex:I})=>{const{isMatch:j,score:H,indices:W}=Zh(e,S,_,{location:i+I,distance:o,threshold:s,findAllMatches:l,minMatchCharLength:a,includeMatches:n,ignoreLocation:u});j&&(m=!0),d+=H,j&&W&&(h=[...h,...W])});let v={isMatch:m,score:m?d/this.chunks.length:1};return m&&n&&(v.indices=h),v}}class Vt{constructor(e){this.pattern=e}static isMultiMatch(e){return Gl(e,this.multiRegex)}static isSingleMatch(e){return Gl(e,this.singleRegex)}search(){}}function Gl(t,e){const r=t.match(e);return r?r[1]:null}class ed extends Vt{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const r=e===this.pattern;return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class td extends Vt{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const n=e.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class rd extends Vt{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const r=e.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class nd extends Vt{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const r=!e.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class id extends Vt{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const r=e.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class od extends Vt{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const r=!e.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class Vl extends Vt{constructor(e,{location:r=K.location,threshold:n=K.threshold,distance:i=K.distance,includeMatches:o=K.includeMatches,findAllMatches:s=K.findAllMatches,minMatchCharLength:l=K.minMatchCharLength,isCaseSensitive:a=K.isCaseSensitive,ignoreLocation:u=K.ignoreLocation}={}){super(e),this._bitapSearch=new ql(e,{location:r,threshold:n,distance:i,includeMatches:o,findAllMatches:s,minMatchCharLength:l,isCaseSensitive:a,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Kl extends Vt{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let r=0,n;const i=[],o=this.pattern.length;for(;(n=e.indexOf(this.pattern,r))>-1;)r=n+o,i.push([n,r-1]);const s=!!i.length;return{isMatch:s,score:s?0:1,indices:i}}}const Ko=[ed,Kl,rd,nd,od,id,td,Vl],Yl=Ko.length,sd=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,ad="|";function ld(t,e={}){return t.split(ad).map(r=>{let n=r.trim().split(sd).filter(o=>o&&!!o.trim()),i=[];for(let o=0,s=n.length;o<s;o+=1){const l=n[o];let a=!1,u=-1;for(;!a&&++u<Yl;){const h=Ko[u];let d=h.isMultiMatch(l);d&&(i.push(new h(d,e)),a=!0)}if(!a)for(u=-1;++u<Yl;){const h=Ko[u];let d=h.isSingleMatch(l);if(d){i.push(new h(d,e));break}}}return i})}const cd=new Set([Vl.type,Kl.type]);class ud{constructor(e,{isCaseSensitive:r=K.isCaseSensitive,includeMatches:n=K.includeMatches,minMatchCharLength:i=K.minMatchCharLength,ignoreLocation:o=K.ignoreLocation,findAllMatches:s=K.findAllMatches,location:l=K.location,threshold:a=K.threshold,distance:u=K.distance}={}){this.query=null,this.options={isCaseSensitive:r,includeMatches:n,minMatchCharLength:i,findAllMatches:s,ignoreLocation:o,location:l,threshold:a,distance:u},this.pattern=r?e:e.toLowerCase(),this.query=ld(this.pattern,this.options)}static condition(e,r){return r.useExtendedSearch}searchIn(e){const r=this.query;if(!r)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:i}=this.options;e=i?e:e.toLowerCase();let o=0,s=[],l=0;for(let a=0,u=r.length;a<u;a+=1){const h=r[a];s.length=0,o=0;for(let d=0,m=h.length;d<m;d+=1){const v=h[d],{isMatch:S,indices:_,score:I}=v.search(e);if(S){if(o+=1,l+=I,n){const j=v.constructor.type;cd.has(j)?s=[...s,..._]:s.push(_)}}else{l=0,o=0,s.length=0;break}}if(o){let d={isMatch:!0,score:l/o};return n&&(d.indices=s),d}}return{isMatch:!1,score:1}}}const Yo=[];function fd(...t){Yo.push(...t)}function Jo(t,e){for(let r=0,n=Yo.length;r<n;r+=1){let i=Yo[r];if(i.condition(t,e))return new i(t,e)}return new ql(t,e)}const mi={AND:"$and",OR:"$or"},Xo={PATH:"$path",PATTERN:"$val"},Zo=t=>!!(t[mi.AND]||t[mi.OR]),pd=t=>!!t[Xo.PATH],hd=t=>!Dt(t)&&Nl(t)&&!Zo(t),Jl=t=>({[mi.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function Xl(t,e,{auto:r=!0}={}){const n=i=>{let o=Object.keys(i);const s=pd(i);if(!s&&o.length>1&&!Zo(i))return n(Jl(i));if(hd(i)){const a=s?i[Xo.PATH]:o[0],u=s?i[Xo.PATTERN]:i[a];if(!St(u))throw new Error(Fh(a));const h={keyId:Go(a),pattern:u};return r&&(h.searcher=Jo(u,e)),h}let l={children:[],operator:o[0]};return o.forEach(a=>{const u=i[a];Dt(u)&&u.forEach(h=>{l.children.push(n(h))})}),l};return Zo(t)||(t=Jl(t)),n(t)}function dd(t,{ignoreFieldNorm:e=K.ignoreFieldNorm}){t.forEach(r=>{let n=1;r.matches.forEach(({key:i,norm:o,score:s})=>{const l=i?i.weight:null;n*=Math.pow(s===0&&l?Number.EPSILON:s,(l||1)*(e?1:o))}),r.score=n})}function gd(t,e){const r=t.matches;e.matches=[],st(r)&&r.forEach(n=>{if(!st(n.indices)||!n.indices.length)return;const{indices:i,value:o}=n;let s={indices:i,value:o};n.key&&(s.key=n.key.src),n.idx>-1&&(s.refIndex=n.idx),e.matches.push(s)})}function yd(t,e){e.score=t.score}function vd(t,e,{includeMatches:r=K.includeMatches,includeScore:n=K.includeScore}={}){const i=[];return r&&i.push(gd),n&&i.push(yd),t.map(o=>{const{idx:s}=o,l={item:e[s],refIndex:s};return i.length&&i.forEach(a=>{a(o,l)}),l})}class Kt{constructor(e,r={},n){this.options={...K,...r},this.options.useExtendedSearch,this._keyStore=new Gh(this.options.keys),this.setCollection(e,n)}setCollection(e,r){if(this._docs=e,r&&!(r instanceof Vo))throw new Error(Uh);this._myIndex=r||zl(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){st(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const r=[];for(let n=0,i=this._docs.length;n<i;n+=1){const o=this._docs[n];e(o,n)&&(this.removeAt(n),n-=1,i-=1,r.push(o))}return r}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:r=-1}={}){const{includeMatches:n,includeScore:i,shouldSort:o,sortFn:s,ignoreFieldNorm:l}=this.options;let a=St(e)?St(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return dd(a,{ignoreFieldNorm:l}),o&&a.sort(s),Bl(r)&&r>-1&&(a=a.slice(0,r)),vd(a,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(e){const r=Jo(e,this.options),{records:n}=this._myIndex,i=[];return n.forEach(({v:o,i:s,n:l})=>{if(!st(o))return;const{isMatch:a,score:u,indices:h}=r.searchIn(o);a&&i.push({item:o,idx:s,matches:[{score:u,value:o,norm:l,indices:h}]})}),i}_searchLogical(e){const r=Xl(e,this.options),n=(l,a,u)=>{if(!l.children){const{keyId:d,searcher:m}=l,v=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(a,d),searcher:m});return v&&v.length?[{idx:u,item:a,matches:v}]:[]}const h=[];for(let d=0,m=l.children.length;d<m;d+=1){const v=l.children[d],S=n(v,a,u);if(S.length)h.push(...S);else if(l.operator===mi.AND)return[]}return h},i=this._myIndex.records,o={},s=[];return i.forEach(({$:l,i:a})=>{if(st(l)){let u=n(r,l,a);u.length&&(o[a]||(o[a]={idx:a,item:l,matches:[]},s.push(o[a])),u.forEach(({matches:h})=>{o[a].matches.push(...h)}))}}),s}_searchObjectList(e){const r=Jo(e,this.options),{keys:n,records:i}=this._myIndex,o=[];return i.forEach(({$:s,i:l})=>{if(!st(s))return;let a=[];n.forEach((u,h)=>{a.push(...this._findMatches({key:u,value:s[h],searcher:r}))}),a.length&&o.push({idx:l,item:s,matches:a})}),o}_findMatches({key:e,value:r,searcher:n}){if(!st(r))return[];let i=[];if(Dt(r))r.forEach(({v:o,i:s,n:l})=>{if(!st(o))return;const{isMatch:a,score:u,indices:h}=n.searchIn(o);a&&i.push({score:u,key:e,value:o,idx:s,norm:l,indices:h})});else{const{v:o,n:s}=r,{isMatch:l,score:a,indices:u}=n.searchIn(o);l&&i.push({score:a,key:e,value:o,norm:s,indices:u})}return i}}Kt.version="7.0.0",Kt.createIndex=zl,Kt.parseIndex=Jh,Kt.config=K,Kt.parseQuery=Xl,fd(ud);function Zl(t,e){const r=new Kt(e.filterProperties,{keys:["title"]}),n=t.target.value,o=r.search(n).map(s=>s.item.key||s.item.keys.join("|"));Object.keys(e.filters).forEach(s=>{e.querySelector(`[data-details="${s}"]`).parentElement.style.display=o.includes(s)||!n?"":"none"})}function md(t,e){const r=t.target.getAttribute("data-close").replace("|","-");e.querySelector(`#filter-${r}`).reset(),e.dispatchEvent(new CustomEvent("filter")),e.requestUpdate()}function Ql(t){t.renderRoot.querySelector("#eox-itemfilter-input-search").value="",Zl({target:{value:""}},t)}function bd(t,e){e.inlineMode&&t.stopPropagation()}function wd(t){t.inlineMode&&(t.showDropdown=!0)}function $d(t,e){e.inlineMode&&(t.stopPropagation(),e.showDropdown=!0)}function xd(t,e){e.inlineMode&&t.key==="Escape"&&e.showDropdown&&(Ql(e),e.showDropdown=!1)}function Sd(t,e){e.inlineMode&&t.target.tagName!=="DROPDOWN-FORM"&&t.target.tagName!=="EOX-ITEMFILTER"&&e.showDropdown&&(Ql(e),e.showDropdown=!1)}function Ad(t,e){var r=0,n=0,i=0,o=0,s=0,l=0,a=0,u=0,h=null,d=null,m=t[0],v=t[1],S=e.length;for(r;r<S;r++){n=0;var _=e[r].length-1,I=e[r];if(h=I[0],h[0]!==I[_][0]&&h[1]!==I[_][1])throw new Error("First and last coordinates in a ring must be the same");for(s=h[0]-m,l=h[1]-v,n;n<_;n++){if(d=I[n+1],u=d[1]-v,l<0&&u<0||l>0&&u>0){h=d,l=u,s=h[0]-m;continue}if(a=d[0]-t[0],u>0&&l<=0){if(o=s*u-a*l,o>0)i=i+1;else if(o===0)return 0}else if(l>0&&u<=0){if(o=s*u-a*l,o<0)i=i+1;else if(o===0)return 0}else if(u===0&&l<0){if(o=s*u-a*l,o===0)return 0}else if(l===0&&u<0){if(o=s*u-a*l,o===0)return 0}else if(l===0&&u===0){if(a<=0&&s>=0)return 0;if(s<=0&&a>=0)return 0}h=d,l=u,s=a}}return i%2!==0}var Ve=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function _d(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var ec=Object.prototype.toString,tc=function(e){var r=ec.call(e),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&ec.call(e.callee)==="[object Function]"),n},Qo,rc;function Ed(){if(rc)return Qo;rc=1;var t;if(!Object.keys){var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=tc,i=Object.prototype.propertyIsEnumerable,o=!i.call({toString:null},"toString"),s=i.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],a=function(m){var v=m.constructor;return v&&v.prototype===m},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if(typeof window>"u")return!1;for(var m in window)try{if(!u["$"+m]&&e.call(window,m)&&window[m]!==null&&typeof window[m]=="object")try{a(window[m])}catch{return!0}}catch{return!0}return!1}(),d=function(m){if(typeof window>"u"||!h)return a(m);try{return a(m)}catch{return!1}};t=function(v){var S=v!==null&&typeof v=="object",_=r.call(v)==="[object Function]",I=n(v),j=S&&r.call(v)==="[object String]",H=[];if(!S&&!_&&!I)throw new TypeError("Object.keys called on a non-object");var W=s&&_;if(j&&v.length>0&&!e.call(v,0))for(var Z=0;Z<v.length;++Z)H.push(String(Z));if(I&&v.length>0)for(var z=0;z<v.length;++z)H.push(String(z));else for(var U in v)!(W&&U==="prototype")&&e.call(v,U)&&H.push(String(U));if(o)for(var ee=d(v),oe=0;oe<l.length;++oe)!(ee&&l[oe]==="constructor")&&e.call(v,l[oe])&&H.push(l[oe]);return H}}return Qo=t,Qo}var Md=Array.prototype.slice,Pd=tc,nc=Object.keys,bi=nc?function(e){return nc(e)}:Ed(),ic=Object.keys;bi.shim=function(){if(Object.keys){var e=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);e||(Object.keys=function(n){return Pd(n)?ic(Md.call(n)):ic(n)})}else Object.keys=bi;return Object.keys||bi};var es=bi,Od=Error,Cd=EvalError,kd=RangeError,Ld=ReferenceError,oc=SyntaxError,Yt=TypeError,Td=URIError,wi=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[r]=i;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0},sc=typeof Symbol<"u"&&Symbol,Rd=wi,ts=function(){return typeof sc!="function"||typeof Symbol!="function"||typeof sc("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Rd()},ac={foo:{}},Dd=Object,Id=function(){return{__proto__:ac}.foo===ac.foo&&!({__proto__:null}instanceof Dd)},jd="Function.prototype.bind called on incompatible ",Bd=Object.prototype.toString,Nd=Math.max,Hd="[object Function]",lc=function(e,r){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var o=0;o<r.length;o+=1)n[o+e.length]=r[o];return n},Ud=function(e,r){for(var n=[],i=r||0,o=0;i<e.length;i+=1,o+=1)n[o]=e[i];return n},Fd=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r},Wd=function(e){var r=this;if(typeof r!="function"||Bd.apply(r)!==Hd)throw new TypeError(jd+r);for(var n=Ud(arguments,1),i,o=function(){if(this instanceof i){var h=r.apply(this,lc(n,arguments));return Object(h)===h?h:this}return r.apply(e,lc(n,arguments))},s=Nd(0,r.length-n.length),l=[],a=0;a<s;a++)l[a]="$"+a;if(i=Function("binder","return function ("+Fd(l,",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var u=function(){};u.prototype=r.prototype,i.prototype=new u,u.prototype=null}return i},zd=Wd,rs=Function.prototype.bind||zd,qd=Function.prototype.call,Gd=Object.prototype.hasOwnProperty,Vd=rs,cc=Vd.call(qd,Gd),le,Kd=Od,Yd=Cd,Jd=kd,Xd=Ld,Ur=oc,Fr=Yt,Zd=Td,uc=Function,ns=function(t){try{return uc('"use strict"; return ('+t+").constructor;")()}catch{}},dr=Object.getOwnPropertyDescriptor;if(dr)try{dr({},"")}catch{dr=null}var is=function(){throw new Fr},Qd=dr?function(){try{return arguments.callee,is}catch{try{return dr(arguments,"callee").get}catch{return is}}}():is,Wr=ts(),eg=Id(),Ue=Object.getPrototypeOf||(eg?function(t){return t.__proto__}:null),zr={},tg=typeof Uint8Array>"u"||!Ue?le:Ue(Uint8Array),gr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?le:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?le:ArrayBuffer,"%ArrayIteratorPrototype%":Wr&&Ue?Ue([][Symbol.iterator]()):le,"%AsyncFromSyncIteratorPrototype%":le,"%AsyncFunction%":zr,"%AsyncGenerator%":zr,"%AsyncGeneratorFunction%":zr,"%AsyncIteratorPrototype%":zr,"%Atomics%":typeof Atomics>"u"?le:Atomics,"%BigInt%":typeof BigInt>"u"?le:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?le:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?le:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?le:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Kd,"%eval%":eval,"%EvalError%":Yd,"%Float32Array%":typeof Float32Array>"u"?le:Float32Array,"%Float64Array%":typeof Float64Array>"u"?le:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?le:FinalizationRegistry,"%Function%":uc,"%GeneratorFunction%":zr,"%Int8Array%":typeof Int8Array>"u"?le:Int8Array,"%Int16Array%":typeof Int16Array>"u"?le:Int16Array,"%Int32Array%":typeof Int32Array>"u"?le:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Wr&&Ue?Ue(Ue([][Symbol.iterator]())):le,"%JSON%":typeof JSON=="object"?JSON:le,"%Map%":typeof Map>"u"?le:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Wr||!Ue?le:Ue(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?le:Promise,"%Proxy%":typeof Proxy>"u"?le:Proxy,"%RangeError%":Jd,"%ReferenceError%":Xd,"%Reflect%":typeof Reflect>"u"?le:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?le:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Wr||!Ue?le:Ue(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?le:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Wr&&Ue?Ue(""[Symbol.iterator]()):le,"%Symbol%":Wr?Symbol:le,"%SyntaxError%":Ur,"%ThrowTypeError%":Qd,"%TypedArray%":tg,"%TypeError%":Fr,"%Uint8Array%":typeof Uint8Array>"u"?le:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?le:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?le:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?le:Uint32Array,"%URIError%":Zd,"%WeakMap%":typeof WeakMap>"u"?le:WeakMap,"%WeakRef%":typeof WeakRef>"u"?le:WeakRef,"%WeakSet%":typeof WeakSet>"u"?le:WeakSet};if(Ue)try{null.error}catch(t){var rg=Ue(Ue(t));gr["%Error.prototype%"]=rg}var ng=function t(e){var r;if(e==="%AsyncFunction%")r=ns("async function () {}");else if(e==="%GeneratorFunction%")r=ns("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=ns("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&Ue&&(r=Ue(i.prototype))}return gr[e]=r,r},fc={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ln=rs,$i=cc,ig=Ln.call(Function.call,Array.prototype.concat),og=Ln.call(Function.apply,Array.prototype.splice),pc=Ln.call(Function.call,String.prototype.replace),xi=Ln.call(Function.call,String.prototype.slice),sg=Ln.call(Function.call,RegExp.prototype.exec),ag=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,lg=/\\(\\)?/g,cg=function(e){var r=xi(e,0,1),n=xi(e,-1);if(r==="%"&&n!=="%")throw new Ur("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Ur("invalid intrinsic syntax, expected opening `%`");var i=[];return pc(e,ag,function(o,s,l,a){i[i.length]=l?pc(a,lg,"$1"):s||o}),i},ug=function(e,r){var n=e,i;if($i(fc,n)&&(i=fc[n],n="%"+i[0]+"%"),$i(gr,n)){var o=gr[n];if(o===zr&&(o=ng(n)),typeof o>"u"&&!r)throw new Fr("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new Ur("intrinsic "+e+" does not exist!")},At=function(e,r){if(typeof e!="string"||e.length===0)throw new Fr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Fr('"allowMissing" argument must be a boolean');if(sg(/^%?[^%]*%?$/,e)===null)throw new Ur("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=cg(e),i=n.length>0?n[0]:"",o=ug("%"+i+"%",r),s=o.name,l=o.value,a=!1,u=o.alias;u&&(i=u[0],og(n,ig([0,1],u)));for(var h=1,d=!0;h<n.length;h+=1){var m=n[h],v=xi(m,0,1),S=xi(m,-1);if((v==='"'||v==="'"||v==="`"||S==='"'||S==="'"||S==="`")&&v!==S)throw new Ur("property names with quotes must have matching quotes");if((m==="constructor"||!d)&&(a=!0),i+="."+m,s="%"+i+"%",$i(gr,s))l=gr[s];else if(l!=null){if(!(m in l)){if(!r)throw new Fr("base intrinsic for "+e+" exists, but the property is not available.");return}if(dr&&h+1>=n.length){var _=dr(l,m);d=!!_,d&&"get"in _&&!("originalValue"in _.get)?l=_.get:l=l[m]}else d=$i(l,m),l=l[m];d&&!a&&(gr[s]=l)}}return l},fg=At,Si=fg("%Object.defineProperty%",!0)||!1;if(Si)try{Si({},"a",{value:1})}catch{Si=!1}var os=Si,pg=At,Ai=pg("%Object.getOwnPropertyDescriptor%",!0);if(Ai)try{Ai([],"length")}catch{Ai=null}var ss=Ai,hc=os,hg=oc,qr=Yt,dc=ss,as=function(e,r,n){if(!e||typeof e!="object"&&typeof e!="function")throw new qr("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new qr("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new qr("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new qr("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new qr("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new qr("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,a=!!dc&&dc(e,r);if(hc)hc(e,r,{configurable:s===null&&a?a.configurable:!s,enumerable:i===null&&a?a.enumerable:!i,value:n,writable:o===null&&a?a.writable:!o});else if(l||!i&&!o&&!s)e[r]=n;else throw new hg("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},ls=os,gc=function(){return!!ls};gc.hasArrayLengthDefineBug=function(){if(!ls)return null;try{return ls([],"length",{value:1}).length!==1}catch{return!0}};var cs=gc,dg=es,gg=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",yg=Object.prototype.toString,vg=Array.prototype.concat,yc=as,mg=function(t){return typeof t=="function"&&yg.call(t)==="[object Function]"},vc=cs(),bg=function(t,e,r,n){if(e in t){if(n===!0){if(t[e]===r)return}else if(!mg(n)||!n())return}vc?yc(t,e,r,!0):yc(t,e,r)},mc=function(t,e){var r=arguments.length>2?arguments[2]:{},n=dg(e);gg&&(n=vg.call(n,Object.getOwnPropertySymbols(e)));for(var i=0;i<n.length;i+=1)bg(t,n[i],e[n[i]],r[n[i]])};mc.supportsDescriptors=!!vc;var yr=mc,bc={exports:{}},wg=At,wc=as,$g=cs(),$c=ss,xc=Yt,xg=wg("%Math.floor%"),Sg=function(e,r){if(typeof e!="function")throw new xc("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||xg(r)!==r)throw new xc("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,o=!0;if("length"in e&&$c){var s=$c(e,"length");s&&!s.configurable&&(i=!1),s&&!s.writable&&(o=!1)}return(i||o||!n)&&($g?wc(e,"length",r,!0,!0):wc(e,"length",r)),e};(function(t){var e=rs,r=At,n=Sg,i=Yt,o=r("%Function.prototype.apply%"),s=r("%Function.prototype.call%"),l=r("%Reflect.apply%",!0)||e.call(s,o),a=os,u=r("%Math.max%");t.exports=function(m){if(typeof m!="function")throw new i("a function is required");var v=l(e,s,arguments);return n(v,1+u(0,m.length-(arguments.length-1)),!0)};var h=function(){return l(e,o,arguments)};a?a(t.exports,"apply",{value:h}):t.exports.apply=h})(bc);var Gr=bc.exports,Sc=At,Ac=Gr,Ag=Ac(Sc("String.prototype.indexOf")),ft=function(e,r){var n=Sc(e,!!r);return typeof n=="function"&&Ag(e,".prototype.")>-1?Ac(n):n},_g=es,_c=wi(),Ec=ft,Mc=Object,Eg=Ec("Array.prototype.push"),Pc=Ec("Object.prototype.propertyIsEnumerable"),Mg=_c?Object.getOwnPropertySymbols:null,Oc=function(e,r){if(e==null)throw new TypeError("target must be an object");var n=Mc(e);if(arguments.length===1)return n;for(var i=1;i<arguments.length;++i){var o=Mc(arguments[i]),s=_g(o),l=_c&&(Object.getOwnPropertySymbols||Mg);if(l)for(var a=l(o),u=0;u<a.length;++u){var h=a[u];Pc(o,h)&&Eg(s,h)}for(var d=0;d<s.length;++d){var m=s[d];if(Pc(o,m)){var v=o[m];n[m]=v}}}return n},us=Oc,Pg=function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),r={},n=0;n<e.length;++n)r[e[n]]=e[n];var i=Object.assign({},r),o="";for(var s in i)o+=s;return t!==o},Og=function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch{return t[1]==="y"}return!1},Cc=function(){return!Object.assign||Pg()||Og()?us:Object.assign},Cg=yr,kg=Cc,Lg=function(){var e=kg();return Cg(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e},Tg=yr,Rg=Gr,Dg=Oc,kc=Cc,Ig=Lg,jg=Rg.apply(kc()),Lc=function(e,r){return jg(Object,arguments)};Tg(Lc,{getPolyfill:kc,implementation:Dg,shim:Ig});var Bg=Lc,Tn=function(){return typeof(function(){}).name=="string"},Rn=Object.getOwnPropertyDescriptor;if(Rn)try{Rn([],"length")}catch{Rn=null}Tn.functionsHaveConfigurableNames=function(){if(!Tn()||!Rn)return!1;var e=Rn(function(){},"name");return!!e&&!!e.configurable};var Ng=Function.prototype.bind;Tn.boundFunctionsHaveNames=function(){return Tn()&&typeof Ng=="function"&&(function(){}).bind().name!==""};var Hg=Tn,Tc=as,Ug=cs(),Fg=Hg.functionsHaveConfigurableNames(),Wg=Yt,zg=function(e,r){if(typeof e!="function")throw new Wg("`fn` is not a function");var n=arguments.length>2&&!!arguments[2];return(!n||Fg)&&(Ug?Tc(e,"name",r,!0,!0):Tc(e,"name",r)),e},qg=zg,Gg=Yt,Vg=Object,Rc=qg(function(){if(this==null||this!==Vg(this))throw new Gg("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e},"get flags",!0),Kg=Rc,Yg=yr.supportsDescriptors,Jg=Object.getOwnPropertyDescriptor,Dc=function(){if(Yg&&/a/mig.flags==="gim"){var e=Jg(RegExp.prototype,"flags");if(e&&typeof e.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var r="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){r+="d"}}),Object.defineProperty(n,"sticky",{get:function(){r+="y"}}),r==="dy")return e.get}}return Kg},Xg=yr.supportsDescriptors,Zg=Dc,Qg=Object.getOwnPropertyDescriptor,ey=Object.defineProperty,ty=TypeError,Ic=Object.getPrototypeOf,ry=/a/,ny=function(){if(!Xg||!Ic)throw new ty("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=Zg(),r=Ic(ry),n=Qg(r,"flags");return(!n||n.get!==e)&&ey(r,"flags",{configurable:!0,enumerable:!1,get:e}),e},iy=yr,oy=Gr,sy=Rc,jc=Dc,ay=ny,Bc=oy(jc());iy(Bc,{getPolyfill:jc,implementation:sy,shim:ay});var ly=Bc,_i={exports:{}},cy=wi,vr=function(){return cy()&&!!Symbol.toStringTag},uy=vr(),fy=ft,fs=fy("Object.prototype.toString"),Ei=function(e){return uy&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:fs(e)==="[object Arguments]"},Nc=function(e){return Ei(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&fs(e)!=="[object Array]"&&fs(e.callee)==="[object Function]"},py=function(){return Ei(arguments)}();Ei.isLegacyArguments=Nc;var Hc=py?Ei:Nc;const hy=_d(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var ps=typeof Map=="function"&&Map.prototype,hs=Object.getOwnPropertyDescriptor&&ps?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Mi=ps&&hs&&typeof hs.get=="function"?hs.get:null,Uc=ps&&Map.prototype.forEach,ds=typeof Set=="function"&&Set.prototype,gs=Object.getOwnPropertyDescriptor&&ds?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Pi=ds&&gs&&typeof gs.get=="function"?gs.get:null,Fc=ds&&Set.prototype.forEach,dy=typeof WeakMap=="function"&&WeakMap.prototype,Dn=dy?WeakMap.prototype.has:null,gy=typeof WeakSet=="function"&&WeakSet.prototype,In=gy?WeakSet.prototype.has:null,yy=typeof WeakRef=="function"&&WeakRef.prototype,Wc=yy?WeakRef.prototype.deref:null,vy=Boolean.prototype.valueOf,my=Object.prototype.toString,by=Function.prototype.toString,wy=String.prototype.match,ys=String.prototype.slice,Jt=String.prototype.replace,$y=String.prototype.toUpperCase,zc=String.prototype.toLowerCase,qc=RegExp.prototype.test,Gc=Array.prototype.concat,_t=Array.prototype.join,xy=Array.prototype.slice,Vc=Math.floor,vs=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ms=Object.getOwnPropertySymbols,bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Vr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Ke=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Vr||!0)?Symbol.toStringTag:null,Kc=Object.prototype.propertyIsEnumerable,Yc=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Jc(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||qc.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Vc(-t):Vc(t);if(n!==t){var i=String(n),o=ys.call(e,i.length+1);return Jt.call(i,r,"$&_")+"."+Jt.call(Jt.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Jt.call(e,r,"$&_")}var ws=hy,Xc=ws.custom,Zc=tu(Xc)?Xc:null,Sy=function t(e,r,n,i){var o=r||{};if(Xt(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Xt(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Xt(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Xt(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Xt(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=o.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return nu(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var a=String(e);return l?Jc(e,a):a}if(typeof e=="bigint"){var u=String(e)+"n";return l?Jc(e,u):u}var h=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=h&&h>0&&typeof e=="object")return $s(e)?"[Array]":"[Object]";var d=Uy(o,n);if(typeof i>"u")i=[];else if(ru(i,e)>=0)return"[Circular]";function m(et,R,M){if(R&&(i=xy.call(i),i.push(R)),M){var E={depth:o.depth};return Xt(o,"quoteStyle")&&(E.quoteStyle=o.quoteStyle),t(et,E,n+1,i)}return t(et,o,n+1,i)}if(typeof e=="function"&&!eu(e)){var v=Ly(e),S=Oi(e,m);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(S.length>0?" { "+_t.call(S,", ")+" }":"")}if(tu(e)){var _=Vr?Jt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):bs.call(e);return typeof e=="object"&&!Vr?jn(_):_}if(By(e)){for(var I="<"+zc.call(String(e.nodeName)),j=e.attributes||[],H=0;H<j.length;H++)I+=" "+j[H].name+"="+Qc(Ay(j[H].value),"double",o);return I+=">",e.childNodes&&e.childNodes.length&&(I+="..."),I+="</"+zc.call(String(e.nodeName))+">",I}if($s(e)){if(e.length===0)return"[]";var W=Oi(e,m);return d&&!Hy(W)?"["+Ss(W,d)+"]":"[ "+_t.call(W,", ")+" ]"}if(Ey(e)){var Z=Oi(e,m);return!("cause"in Error.prototype)&&"cause"in e&&!Kc.call(e,"cause")?"{ ["+String(e)+"] "+_t.call(Gc.call("[cause]: "+m(e.cause),Z),", ")+" }":Z.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+_t.call(Z,", ")+" }"}if(typeof e=="object"&&s){if(Zc&&typeof e[Zc]=="function"&&ws)return ws(e,{depth:h-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Ty(e)){var z=[];return Uc&&Uc.call(e,function(et,R){z.push(m(R,e,!0)+" => "+m(et,e))}),iu("Map",Mi.call(e),z,d)}if(Iy(e)){var U=[];return Fc&&Fc.call(e,function(et){U.push(m(et,e))}),iu("Set",Pi.call(e),U,d)}if(Ry(e))return xs("WeakMap");if(jy(e))return xs("WeakSet");if(Dy(e))return xs("WeakRef");if(Py(e))return jn(m(Number(e)));if(Cy(e))return jn(m(vs.call(e)));if(Oy(e))return jn(vy.call(e));if(My(e))return jn(m(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===Ve)return"{ [object globalThis] }";if(!_y(e)&&!eu(e)){var ee=Oi(e,m),oe=Yc?Yc(e)===Object.prototype:e instanceof Object||e.constructor===Object,we=e instanceof Object?"":"null prototype",de=!oe&&Ke&&Object(e)===e&&Ke in e?ys.call(Zt(e),8,-1):we?"Object":"",ne=oe||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Ne=ne+(de||we?"["+_t.call(Gc.call([],de||[],we||[]),": ")+"] ":"");return ee.length===0?Ne+"{}":d?Ne+"{"+Ss(ee,d)+"}":Ne+"{ "+_t.call(ee,", ")+" }"}return String(e)};function Qc(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function Ay(t){return Jt.call(String(t),/"/g,"&quot;")}function $s(t){return Zt(t)==="[object Array]"&&(!Ke||!(typeof t=="object"&&Ke in t))}function _y(t){return Zt(t)==="[object Date]"&&(!Ke||!(typeof t=="object"&&Ke in t))}function eu(t){return Zt(t)==="[object RegExp]"&&(!Ke||!(typeof t=="object"&&Ke in t))}function Ey(t){return Zt(t)==="[object Error]"&&(!Ke||!(typeof t=="object"&&Ke in t))}function My(t){return Zt(t)==="[object String]"&&(!Ke||!(typeof t=="object"&&Ke in t))}function Py(t){return Zt(t)==="[object Number]"&&(!Ke||!(typeof t=="object"&&Ke in t))}function Oy(t){return Zt(t)==="[object Boolean]"&&(!Ke||!(typeof t=="object"&&Ke in t))}function tu(t){if(Vr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!bs)return!1;try{return bs.call(t),!0}catch{}return!1}function Cy(t){if(!t||typeof t!="object"||!vs)return!1;try{return vs.call(t),!0}catch{}return!1}var ky=Object.prototype.hasOwnProperty||function(t){return t in this};function Xt(t,e){return ky.call(t,e)}function Zt(t){return my.call(t)}function Ly(t){if(t.name)return t.name;var e=wy.call(by.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function ru(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function Ty(t){if(!Mi||!t||typeof t!="object")return!1;try{Mi.call(t);try{Pi.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Ry(t){if(!Dn||!t||typeof t!="object")return!1;try{Dn.call(t,Dn);try{In.call(t,In)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Dy(t){if(!Wc||!t||typeof t!="object")return!1;try{return Wc.call(t),!0}catch{}return!1}function Iy(t){if(!Pi||!t||typeof t!="object")return!1;try{Pi.call(t);try{Mi.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function jy(t){if(!In||!t||typeof t!="object")return!1;try{In.call(t,In);try{Dn.call(t,Dn)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function By(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function nu(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return nu(ys.call(t,0,e.maxStringLength),e)+n}var i=Jt.call(Jt.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Ny);return Qc(i,"single",e)}function Ny(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+$y.call(e.toString(16))}function jn(t){return"Object("+t+")"}function xs(t){return t+" { ? }"}function iu(t,e,r,n){var i=n?Ss(r,n):_t.call(r,", ");return t+" ("+e+") {"+i+"}"}function Hy(t){for(var e=0;e<t.length;e++)if(ru(t[e],`
505
+ `)>=0)return!1;return!0}function Uy(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=_t.call(Array(t.indent+1)," ");else return null;return{base:r,prev:_t.call(Array(e+1),r)}}function Ss(t,e){if(t.length===0)return"";var r=`
506
+ `+e.prev+e.base;return r+_t.call(t,","+r)+`
507
+ `+e.prev}function Oi(t,e){var r=$s(t),n=[];if(r){n.length=t.length;for(var i=0;i<t.length;i++)n[i]=Xt(t,i)?e(t[i],t):""}var o=typeof ms=="function"?ms(t):[],s;if(Vr){s={};for(var l=0;l<o.length;l++)s["$"+o[l]]=o[l]}for(var a in t)Xt(t,a)&&(r&&String(Number(a))===a&&a<t.length||Vr&&s["$"+a]instanceof Symbol||(qc.call(/[^\w$]/,a)?n.push(e(a,t)+": "+e(t[a],t)):n.push(a+": "+e(t[a],t))));if(typeof ms=="function")for(var u=0;u<o.length;u++)Kc.call(t,o[u])&&n.push("["+e(o[u])+"]: "+e(t[o[u]],t));return n}var ou=At,Kr=ft,Fy=Sy,Wy=Yt,Ci=ou("%WeakMap%",!0),ki=ou("%Map%",!0),zy=Kr("WeakMap.prototype.get",!0),qy=Kr("WeakMap.prototype.set",!0),Gy=Kr("WeakMap.prototype.has",!0),Vy=Kr("Map.prototype.get",!0),Ky=Kr("Map.prototype.set",!0),Yy=Kr("Map.prototype.has",!0),As=function(t,e){for(var r=t,n;(n=r.next)!==null;r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n},Jy=function(t,e){var r=As(t,e);return r&&r.value},Xy=function(t,e,r){var n=As(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Zy=function(t,e){return!!As(t,e)},su=function(){var e,r,n,i={assert:function(o){if(!i.has(o))throw new Wy("Side channel does not contain "+Fy(o))},get:function(o){if(Ci&&o&&(typeof o=="object"||typeof o=="function")){if(e)return zy(e,o)}else if(ki){if(r)return Vy(r,o)}else if(n)return Jy(n,o)},has:function(o){if(Ci&&o&&(typeof o=="object"||typeof o=="function")){if(e)return Gy(e,o)}else if(ki){if(r)return Yy(r,o)}else if(n)return Zy(n,o);return!1},set:function(o,s){Ci&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new Ci),qy(e,o,s)):ki?(r||(r=new ki),Ky(r,o,s)):(n||(n={key:{},next:null}),Xy(n,o,s))}};return i},Qy=cc,Bn=su(),It=Yt,_s={assert:function(t,e){if(!t||typeof t!="object"&&typeof t!="function")throw new It("`O` is not an object");if(typeof e!="string")throw new It("`slot` must be a string");if(Bn.assert(t),!_s.has(t,e))throw new It("`"+e+"` is not present on `O`")},get:function(t,e){if(!t||typeof t!="object"&&typeof t!="function")throw new It("`O` is not an object");if(typeof e!="string")throw new It("`slot` must be a string");var r=Bn.get(t);return r&&r["$"+e]},has:function(t,e){if(!t||typeof t!="object"&&typeof t!="function")throw new It("`O` is not an object");if(typeof e!="string")throw new It("`slot` must be a string");var r=Bn.get(t);return!!r&&Qy(r,"$"+e)},set:function(t,e,r){if(!t||typeof t!="object"&&typeof t!="function")throw new It("`O` is not an object");if(typeof e!="string")throw new It("`slot` must be a string");var n=Bn.get(t);n||(n={},Bn.set(t,n)),n["$"+e]=r}};Object.freeze&&Object.freeze(_s);var ev=_s,Nn=ev,tv=SyntaxError,au=typeof StopIteration=="object"?StopIteration:null,rv=function(e){if(!au)throw new tv("this environment lacks StopIteration");Nn.set(e,"[[Done]]",!1);var r={next:function(){var i=Nn.get(this,"[[Iterator]]"),o=Nn.get(i,"[[Done]]");try{return{done:o,value:o?void 0:i.next()}}catch(s){if(Nn.set(i,"[[Done]]",!0),s!==au)throw s;return{done:!0,value:void 0}}}};return Nn.set(r,"[[Iterator]]",e),r},Es,lu;function nv(){if(lu)return Es;lu=1;var t={}.toString;return Es=Array.isArray||function(e){return t.call(e)=="[object Array]"},Es}var iv=String.prototype.valueOf,ov=function(e){try{return iv.call(e),!0}catch{return!1}},sv=Object.prototype.toString,av="[object String]",lv=vr(),cu=function(e){return typeof e=="string"?!0:typeof e!="object"?!1:lv?ov(e):sv.call(e)===av},Ms=typeof Map=="function"&&Map.prototype?Map:null,cv=typeof Set=="function"&&Set.prototype?Set:null,Li;Ms||(Li=function(e){return!1});var uu=Ms?Map.prototype.has:null,fu=cv?Set.prototype.has:null;!Li&&!uu&&(Li=function(e){return!1});var pu=Li||function(e){if(!e||typeof e!="object")return!1;try{if(uu.call(e),fu)try{fu.call(e)}catch{return!0}return e instanceof Ms}catch{}return!1},uv=typeof Map=="function"&&Map.prototype?Map:null,Ps=typeof Set=="function"&&Set.prototype?Set:null,Ti;Ps||(Ti=function(e){return!1});var hu=uv?Map.prototype.has:null,du=Ps?Set.prototype.has:null;!Ti&&!du&&(Ti=function(e){return!1});var gu=Ti||function(e){if(!e||typeof e!="object")return!1;try{if(du.call(e),hu)try{hu.call(e)}catch{return!0}return e instanceof Ps}catch{}return!1},yu=Hc,vu=rv;if(ts()||wi()){var Os=Symbol.iterator;_i.exports=function(e){if(e!=null&&typeof e[Os]<"u")return e[Os]();if(yu(e))return Array.prototype[Os].call(e)}}else{var fv=nv(),pv=cu,mu=At,hv=mu("%Map%",!0),dv=mu("%Set%",!0),vt=ft,bu=vt("Array.prototype.push"),wu=vt("String.prototype.charCodeAt"),gv=vt("String.prototype.slice"),yv=function(e,r){var n=e.length;if(r+1>=n)return r+1;var i=wu(e,r);if(i<55296||i>56319)return r+1;var o=wu(e,r+1);return o<56320||o>57343?r+1:r+2},Cs=function(e){var r=0;return{next:function(){var i=r>=e.length,o;return i||(o=e[r],r+=1),{done:i,value:o}}}},$u=function(e,r){if(fv(e)||yu(e))return Cs(e);if(pv(e)){var n=0;return{next:function(){var o=yv(e,n),s=gv(e,n,o);return n=o,{done:o>e.length,value:s}}}}if(r&&typeof e["_es6-shim iterator_"]<"u")return e["_es6-shim iterator_"]()};if(!hv&&!dv)_i.exports=function(e){if(e!=null)return $u(e,!0)};else{var vv=pu,mv=gu,xu=vt("Map.prototype.forEach",!0),Su=vt("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var Au=vt("Map.prototype.iterator",!0),_u=vt("Set.prototype.iterator",!0);var Eu=vt("Map.prototype.@@iterator",!0)||vt("Map.prototype._es6-shim iterator_",!0),Mu=vt("Set.prototype.@@iterator",!0)||vt("Set.prototype._es6-shim iterator_",!0),bv=function(e){if(vv(e)){if(Au)return vu(Au(e));if(Eu)return Eu(e);if(xu){var r=[];return xu(e,function(i,o){bu(r,[o,i])}),Cs(r)}}if(mv(e)){if(_u)return vu(_u(e));if(Mu)return Mu(e);if(Su){var n=[];return Su(e,function(i){bu(n,i)}),Cs(n)}}};_i.exports=function(e){return bv(e)||$u(e)}}}var wv=_i.exports,Pu=function(t){return t!==t},Ou=function(e,r){return e===0&&r===0?1/e===1/r:!!(e===r||Pu(e)&&Pu(r))},$v=Ou,Cu=function(){return typeof Object.is=="function"?Object.is:$v},xv=Cu,Sv=yr,Av=function(){var e=xv();return Sv(Object,{is:e},{is:function(){return Object.is!==e}}),e},_v=yr,Ev=Gr,Mv=Ou,ku=Cu,Pv=Av,Lu=Ev(ku(),Object);_v(Lu,{getPolyfill:ku,implementation:Mv,shim:Pv});var Ov=Lu,Cv={}.toString,kv=Array.isArray||function(t){return Cv.call(t)=="[object Array]"},Lv=Gr,Tu=ft,Tv=At,ks=Tv("%ArrayBuffer%",!0),Ri=Tu("ArrayBuffer.prototype.byteLength",!0),Rv=Tu("Object.prototype.toString"),Ru=!!ks&&!Ri&&new ks(0).slice,Du=!!Ru&&Lv(Ru),Iu=Ri||Du?function(e){if(!e||typeof e!="object")return!1;try{return Ri?Ri(e):Du(e,0),!0}catch{return!1}}:ks?function(e){return Rv(e)==="[object ArrayBuffer]"}:function(e){return!1},Dv=Date.prototype.getDay,Iv=function(e){try{return Dv.call(e),!0}catch{return!1}},jv=Object.prototype.toString,Bv="[object Date]",Nv=vr(),Hv=function(e){return typeof e!="object"||e===null?!1:Nv?Iv(e):jv.call(e)===Bv},Ls=ft,ju=vr(),Bu,Nu,Ts,Rs;if(ju){Bu=Ls("Object.prototype.hasOwnProperty"),Nu=Ls("RegExp.prototype.exec"),Ts={};var Ds=function(){throw Ts};Rs={toString:Ds,valueOf:Ds},typeof Symbol.toPrimitive=="symbol"&&(Rs[Symbol.toPrimitive]=Ds)}var Uv=Ls("Object.prototype.toString"),Fv=Object.getOwnPropertyDescriptor,Wv="[object RegExp]",zv=ju?function(e){if(!e||typeof e!="object")return!1;var r=Fv(e,"lastIndex"),n=r&&Bu(r,"value");if(!n)return!1;try{Nu(e,Rs)}catch(i){return i===Ts}}:function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:Uv(e)===Wv},qv=ft,Hu=qv("SharedArrayBuffer.prototype.byteLength",!0),Gv=Hu?function(e){if(!e||typeof e!="object")return!1;try{return Hu(e),!0}catch{return!1}}:function(e){return!1},Vv=Number.prototype.toString,Kv=function(e){try{return Vv.call(e),!0}catch{return!1}},Yv=Object.prototype.toString,Jv="[object Number]",Xv=vr(),Zv=function(e){return typeof e=="number"?!0:typeof e!="object"?!1:Xv?Kv(e):Yv.call(e)===Jv},Uu=ft,Qv=Uu("Boolean.prototype.toString"),em=Uu("Object.prototype.toString"),tm=function(e){try{return Qv(e),!0}catch{return!1}},rm="[object Boolean]",nm=vr(),im=function(e){return typeof e=="boolean"?!0:e===null||typeof e!="object"?!1:nm&&Symbol.toStringTag in e?tm(e):em(e)===rm},Is={exports:{}},om=Object.prototype.toString,sm=ts();if(sm){var am=Symbol.prototype.toString,lm=/^Symbol\(.*\)$/,cm=function(e){return typeof e.valueOf()!="symbol"?!1:lm.test(am.call(e))};Is.exports=function(e){if(typeof e=="symbol")return!0;if(om.call(e)!=="[object Symbol]")return!1;try{return cm(e)}catch{return!1}}}else Is.exports=function(e){return!1};var um=Is.exports,js={exports:{}},Fu=typeof BigInt<"u"&&BigInt,fm=function(){return typeof Fu=="function"&&typeof BigInt=="function"&&typeof Fu(42)=="bigint"&&typeof BigInt(42)=="bigint"},pm=fm();if(pm){var hm=BigInt.prototype.valueOf,dm=function(e){try{return hm.call(e),!0}catch{}return!1};js.exports=function(e){return e===null||typeof e>"u"||typeof e=="boolean"||typeof e=="string"||typeof e=="number"||typeof e=="symbol"||typeof e=="function"?!1:typeof e=="bigint"?!0:dm(e)}}else js.exports=function(e){return!1};var gm=js.exports,ym=cu,vm=Zv,mm=im,bm=um,wm=gm,$m=function(e){if(e==null||typeof e!="object"&&typeof e!="function")return null;if(ym(e))return"String";if(vm(e))return"Number";if(mm(e))return"Boolean";if(bm(e))return"Symbol";if(wm(e))return"BigInt"},Di=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,Wu=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,Ii;Di||(Ii=function(e){return!1});var Bs=Di?Di.prototype.has:null,Ns=Wu?Wu.prototype.has:null;!Ii&&!Bs&&(Ii=function(e){return!1});var xm=Ii||function(e){if(!e||typeof e!="object")return!1;try{if(Bs.call(e,Bs),Ns)try{Ns.call(e,Ns)}catch{return!0}return e instanceof Di}catch{}return!1},Hs={exports:{}},Sm=At,zu=ft,Am=Sm("%WeakSet%",!0),Us=zu("WeakSet.prototype.has",!0);if(Us){var Fs=zu("WeakMap.prototype.has",!0);Hs.exports=function(e){if(!e||typeof e!="object")return!1;try{if(Us(e,Us),Fs)try{Fs(e,Fs)}catch{return!0}return e instanceof Am}catch{}return!1}}else Hs.exports=function(e){return!1};var _m=Hs.exports,Em=pu,Mm=gu,Pm=xm,Om=_m,Cm=function(e){if(e&&typeof e=="object"){if(Em(e))return"Map";if(Mm(e))return"Set";if(Pm(e))return"WeakMap";if(Om(e))return"WeakSet"}return!1},qu=Function.prototype.toString,Yr=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Ws,ji;if(typeof Yr=="function"&&typeof Object.defineProperty=="function")try{Ws=Object.defineProperty({},"length",{get:function(){throw ji}}),ji={},Yr(function(){throw 42},null,Ws)}catch(t){t!==ji&&(Yr=null)}else Yr=null;var km=/^\s*class\b/,zs=function(e){try{var r=qu.call(e);return km.test(r)}catch{return!1}},qs=function(e){try{return zs(e)?!1:(qu.call(e),!0)}catch{return!1}},Bi=Object.prototype.toString,Lm="[object Object]",Tm="[object Function]",Rm="[object GeneratorFunction]",Dm="[object HTMLAllCollection]",Im="[object HTML document.all class]",jm="[object HTMLCollection]",Bm=typeof Symbol=="function"&&!!Symbol.toStringTag,Nm=!(0 in[,]),Gs=function(){return!1};if(typeof document=="object"){var Hm=document.all;Bi.call(Hm)===Bi.call(document.all)&&(Gs=function(e){if((Nm||!e)&&(typeof e>"u"||typeof e=="object"))try{var r=Bi.call(e);return(r===Dm||r===Im||r===jm||r===Lm)&&e("")==null}catch{}return!1})}var Um=Yr?function(e){if(Gs(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{Yr(e,null,Ws)}catch(r){if(r!==ji)return!1}return!zs(e)&&qs(e)}:function(e){if(Gs(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(Bm)return qs(e);if(zs(e))return!1;var r=Bi.call(e);return r!==Tm&&r!==Rm&&!/^\[object HTML/.test(r)?!1:qs(e)},Fm=Um,Wm=Object.prototype.toString,Gu=Object.prototype.hasOwnProperty,zm=function(e,r,n){for(var i=0,o=e.length;i<o;i++)Gu.call(e,i)&&(n==null?r(e[i],i,e):r.call(n,e[i],i,e))},qm=function(e,r,n){for(var i=0,o=e.length;i<o;i++)n==null?r(e.charAt(i),i,e):r.call(n,e.charAt(i),i,e)},Gm=function(e,r,n){for(var i in e)Gu.call(e,i)&&(n==null?r(e[i],i,e):r.call(n,e[i],i,e))},Vm=function(e,r,n){if(!Fm(r))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=n),Wm.call(e)==="[object Array]"?zm(e,r,i):typeof e=="string"?qm(e,r,i):Gm(e,r,i)},Km=Vm,Vs=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],Ym=typeof globalThis>"u"?Ve:globalThis,Jm=function(){for(var e=[],r=0;r<Vs.length;r++)typeof Ym[Vs[r]]=="function"&&(e[e.length]=Vs[r]);return e},Ni=Km,Xm=Jm,Vu=Gr,Ks=ft,Hi=ss,Zm=Ks("Object.prototype.toString"),Ku=vr(),Yu=typeof globalThis>"u"?Ve:globalThis,Ys=Xm(),Js=Ks("String.prototype.slice"),Xs=Object.getPrototypeOf,Qm=Ks("Array.prototype.indexOf",!0)||function(e,r){for(var n=0;n<e.length;n+=1)if(e[n]===r)return n;return-1},Ui={__proto__:null};Ku&&Hi&&Xs?Ni(Ys,function(t){var e=new Yu[t];if(Symbol.toStringTag in e){var r=Xs(e),n=Hi(r,Symbol.toStringTag);if(!n){var i=Xs(r);n=Hi(i,Symbol.toStringTag)}Ui["$"+t]=Vu(n.get)}}):Ni(Ys,function(t){var e=new Yu[t],r=e.slice||e.set;r&&(Ui["$"+t]=Vu(r))});var eb=function(e){var r=!1;return Ni(Ui,function(n,i){if(!r)try{"$"+n(e)===i&&(r=Js(i,1))}catch{}}),r},tb=function(e){var r=!1;return Ni(Ui,function(n,i){if(!r)try{n(e),r=Js(i,1)}catch{}}),r},rb=function(e){if(!e||typeof e!="object")return!1;if(!Ku){var r=Js(Zm(e),8,-1);return Qm(Ys,r)>-1?r:r!=="Object"?!1:tb(e)}return Hi?eb(e):null},nb=ft,Ju=nb("ArrayBuffer.prototype.byteLength",!0),ib=Iu,ob=function(e){return ib(e)?Ju?Ju(e):e.byteLength:NaN},Xu=Bg,Et=ft,Zu=ly,sb=At,Jr=wv,ab=su,Qu=Ov,ef=Hc,tf=kv,rf=Iu,nf=Hv,of=zv,sf=Gv,af=es,lf=$m,cf=Cm,uf=rb,ff=ob,pf=Et("SharedArrayBuffer.prototype.byteLength",!0),hf=Et("Date.prototype.getTime"),Zs=Object.getPrototypeOf,df=Et("Object.prototype.toString"),Fi=sb("%Set%",!0),Qs=Et("Map.prototype.has",!0),Wi=Et("Map.prototype.get",!0),gf=Et("Map.prototype.size",!0),zi=Et("Set.prototype.add",!0),yf=Et("Set.prototype.delete",!0),qi=Et("Set.prototype.has",!0),Gi=Et("Set.prototype.size",!0);function vf(t,e,r,n){for(var i=Jr(t),o;(o=i.next())&&!o.done;)if(mt(e,o.value,r,n))return yf(t,o.value),!0;return!1}function mf(t){if(typeof t>"u")return null;if(typeof t!="object")return typeof t=="symbol"?!1:typeof t=="string"||typeof t=="number"?+t==+t:!0}function lb(t,e,r,n,i,o){var s=mf(r);if(s!=null)return s;var l=Wi(e,s),a=Xu({},i,{strict:!1});return typeof l>"u"&&!Qs(e,s)||!mt(n,l,a,o)?!1:!Qs(t,s)&&mt(n,l,a,o)}function cb(t,e,r){var n=mf(r);return n??(qi(e,n)&&!qi(t,n))}function bf(t,e,r,n,i,o){for(var s=Jr(t),l,a;(l=s.next())&&!l.done;)if(a=l.value,mt(r,a,i,o)&&mt(n,Wi(e,a),i,o))return yf(t,a),!0;return!1}function mt(t,e,r,n){var i=r||{};if(i.strict?Qu(t,e):t===e)return!0;var o=lf(t),s=lf(e);if(o!==s)return!1;if(!t||!e||typeof t!="object"&&typeof e!="object")return i.strict?Qu(t,e):t==e;var l=n.has(t),a=n.has(e),u;if(l&&a){if(n.get(t)===n.get(e))return!0}else u={};return l||n.set(t,u),a||n.set(e,u),pb(t,e,i,n)}function wf(t){return!t||typeof t!="object"||typeof t.length!="number"||typeof t.copy!="function"||typeof t.slice!="function"||t.length>0&&typeof t[0]!="number"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))}function ub(t,e,r,n){if(Gi(t)!==Gi(e))return!1;for(var i=Jr(t),o=Jr(e),s,l,a;(s=i.next())&&!s.done;)if(s.value&&typeof s.value=="object")a||(a=new Fi),zi(a,s.value);else if(!qi(e,s.value)){if(r.strict||!cb(t,e,s.value))return!1;a||(a=new Fi),zi(a,s.value)}if(a){for(;(l=o.next())&&!l.done;)if(l.value&&typeof l.value=="object"){if(!vf(a,l.value,r.strict,n))return!1}else if(!r.strict&&!qi(t,l.value)&&!vf(a,l.value,r.strict,n))return!1;return Gi(a)===0}return!0}function fb(t,e,r,n){if(gf(t)!==gf(e))return!1;for(var i=Jr(t),o=Jr(e),s,l,a,u,h,d;(s=i.next())&&!s.done;)if(u=s.value[0],h=s.value[1],u&&typeof u=="object")a||(a=new Fi),zi(a,u);else if(d=Wi(e,u),typeof d>"u"&&!Qs(e,u)||!mt(h,d,r,n)){if(r.strict||!lb(t,e,u,h,r,n))return!1;a||(a=new Fi),zi(a,u)}if(a){for(;(l=o.next())&&!l.done;)if(u=l.value[0],d=l.value[1],u&&typeof u=="object"){if(!bf(a,t,u,d,r,n))return!1}else if(!r.strict&&(!t.has(u)||!mt(Wi(t,u),d,r,n))&&!bf(a,t,u,d,Xu({},r,{strict:!1}),n))return!1;return Gi(a)===0}return!0}function pb(t,e,r,n){var i,o;if(typeof t!=typeof e||t==null||e==null||df(t)!==df(e)||ef(t)!==ef(e))return!1;var s=tf(t),l=tf(e);if(s!==l)return!1;var a=t instanceof Error,u=e instanceof Error;if(a!==u||(a||u)&&(t.name!==e.name||t.message!==e.message))return!1;var h=of(t),d=of(e);if(h!==d||(h||d)&&(t.source!==e.source||Zu(t)!==Zu(e)))return!1;var m=nf(t),v=nf(e);if(m!==v||(m||v)&&hf(t)!==hf(e)||r.strict&&Zs&&Zs(t)!==Zs(e))return!1;var S=uf(t),_=uf(e);if(S!==_)return!1;if(S||_){if(t.length!==e.length)return!1;for(i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}var I=wf(t),j=wf(e);if(I!==j)return!1;if(I||j){if(t.length!==e.length)return!1;for(i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}var H=rf(t),W=rf(e);if(H!==W)return!1;if(H||W)return ff(t)!==ff(e)?!1:typeof Uint8Array=="function"&&mt(new Uint8Array(t),new Uint8Array(e),r,n);var Z=sf(t),z=sf(e);if(Z!==z)return!1;if(Z||z)return pf(t)!==pf(e)?!1:typeof Uint8Array=="function"&&mt(new Uint8Array(t),new Uint8Array(e),r,n);if(typeof t!=typeof e)return!1;var U=af(t),ee=af(e);if(U.length!==ee.length)return!1;for(U.sort(),ee.sort(),i=U.length-1;i>=0;i--)if(U[i]!=ee[i])return!1;for(i=U.length-1;i>=0;i--)if(o=U[i],!mt(t[o],e[o],r,n))return!1;var oe=cf(t),we=cf(e);return oe!==we?!1:oe==="Set"||we==="Set"?ub(t,e,r,n):oe==="Map"?fb(t,e,r,n):!0}var hb=function(e,r,n){return mt(e,r,n,ab())};const db=kn(hb);var gb=Object.defineProperty,ve=(t,e)=>gb(t,"name",{value:e,configurable:!0}),yb=class{constructor(e){this.direction=!1,this.compareProperties=!0;var r,n,i;this.precision=10**-((r=e==null?void 0:e.precision)!=null?r:17),this.direction=(n=e==null?void 0:e.direction)!=null?n:!1,this.compareProperties=(i=e==null?void 0:e.compareProperties)!=null?i:!0}compare(e,r){if(e.type!==r.type||!Hn(e,r))return!1;switch(e.type){case"Point":return this.compareCoord(e.coordinates,r.coordinates);case"LineString":return this.compareLine(e.coordinates,r.coordinates);case"Polygon":return this.comparePolygon(e,r);case"GeometryCollection":return this.compareGeometryCollection(e,r);case"Feature":return this.compareFeature(e,r);case"FeatureCollection":return this.compareFeatureCollection(e,r);default:if(e.type.startsWith("Multi")){const n=ea(e),i=ea(r);return n.every(o=>i.some(s=>this.compare(o,s)))}}return!1}compareCoord(e,r){return e.length===r.length&&e.every((n,i)=>Math.abs(n-r[i])<this.precision)}compareLine(e,r,n=0,i=!1){if(!Hn(e,r))return!1;const o=e;let s=r;if(i&&!this.compareCoord(o[0],s[0])){const a=this.fixStartIndex(s,o);if(a)s=a;else return!1}const l=this.compareCoord(o[n],s[n]);return this.direction||l?this.comparePath(o,s):this.compareCoord(o[n],s[s.length-(1+n)])?this.comparePath(o.slice().reverse(),s):!1}fixStartIndex(e,r){let n,i=-1;for(let o=0;o<e.length;o++)if(this.compareCoord(e[o],r[0])){i=o;break}return i>=0&&(n=[].concat(e.slice(i,e.length),e.slice(1,i+1))),n}comparePath(e,r){return e.every((n,i)=>this.compareCoord(n,r[i]))}comparePolygon(e,r){if(this.compareLine(e.coordinates[0],r.coordinates[0],1,!0)){const n=e.coordinates.slice(1,e.coordinates.length),i=r.coordinates.slice(1,r.coordinates.length);return n.every(o=>i.some(s=>this.compareLine(o,s,1,!0)))}return!1}compareGeometryCollection(e,r){return Hn(e.geometries,r.geometries)&&this.compareBBox(e,r)&&e.geometries.every((n,i)=>this.compare(n,r.geometries[i]))}compareFeature(e,r){return e.id===r.id&&(this.compareProperties?db(e.properties,r.properties):!0)&&this.compareBBox(e,r)&&this.compare(e.geometry,r.geometry)}compareFeatureCollection(e,r){return Hn(e.features,r.features)&&this.compareBBox(e,r)&&e.features.every((n,i)=>this.compare(n,r.features[i]))}compareBBox(e,r){return!e.bbox&&!r.bbox||(e.bbox&&r.bbox?this.compareCoord(e.bbox,r.bbox):!1)}};ve(yb,"GeojsonEquality");function Hn(t,e){return t.coordinates?t.coordinates.length===e.coordinates.length:t.length===e.length}ve(Hn,"sameLength");function ea(t){return t.coordinates.map(e=>({type:t.type.replace("Multi",""),coordinates:e}))}ve(ea,"explode");var at=63710088e-1,$f={centimeters:at*100,centimetres:at*100,degrees:360/(2*Math.PI),feet:at*3.28084,inches:at*39.37,kilometers:at/1e3,kilometres:at/1e3,meters:at,metres:at,miles:at/1609.344,millimeters:at*1e3,millimetres:at*1e3,nauticalmiles:at/1852,radians:1,yards:at*1.0936},xf={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function pt(t,e,r={}){const n={type:"Feature"};return(r.id===0||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}ve(pt,"feature");function vb(t,e,r={}){switch(t){case"Point":return Mt(e).geometry;case"LineString":return Pt(e).geometry;case"Polygon":return ta(e).geometry;case"MultiPoint":return Sf(e).geometry;case"MultiLineString":return ra(e).geometry;case"MultiPolygon":return Af(e).geometry;default:throw new Error(t+" is invalid")}}ve(vb,"geometry");function Mt(t,e,r={}){if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Xr(t[0])||!Xr(t[1]))throw new Error("coordinates must contain numbers");return pt({type:"Point",coordinates:t},e,r)}ve(Mt,"point");function mb(t,e,r={}){return mr(t.map(n=>Mt(n,e)),r)}ve(mb,"points");function ta(t,e,r={}){for(const i of t){if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(i[i.length-1].length!==i[0].length)throw new Error("First and last Position are not equivalent.");for(let o=0;o<i[i.length-1].length;o++)if(i[i.length-1][o]!==i[0][o])throw new Error("First and last Position are not equivalent.")}return pt({type:"Polygon",coordinates:t},e,r)}ve(ta,"polygon");function bb(t,e,r={}){return mr(t.map(n=>ta(n,e)),r)}ve(bb,"polygons");function Pt(t,e,r={}){if(t.length<2)throw new Error("coordinates must be an array of two or more positions");return pt({type:"LineString",coordinates:t},e,r)}ve(Pt,"lineString");function wb(t,e,r={}){return mr(t.map(n=>Pt(n,e)),r)}ve(wb,"lineStrings");function mr(t,e={}){const r={type:"FeatureCollection"};return e.id&&(r.id=e.id),e.bbox&&(r.bbox=e.bbox),r.features=t,r}ve(mr,"featureCollection");function ra(t,e,r={}){return pt({type:"MultiLineString",coordinates:t},e,r)}ve(ra,"multiLineString");function Sf(t,e,r={}){return pt({type:"MultiPoint",coordinates:t},e,r)}ve(Sf,"multiPoint");function Af(t,e,r={}){return pt({type:"MultiPolygon",coordinates:t},e,r)}ve(Af,"multiPolygon");function $b(t,e,r={}){return pt({type:"GeometryCollection",geometries:t},e,r)}ve($b,"geometryCollection");function xb(t,e=0){if(e&&!(e>=0))throw new Error("precision must be a positive number");const r=Math.pow(10,e||0);return Math.round(t*r)/r}ve(xb,"round");function _f(t,e="kilometers"){const r=$f[e];if(!r)throw new Error(e+" units is invalid");return t*r}ve(_f,"radiansToLength");function na(t,e="kilometers"){const r=$f[e];if(!r)throw new Error(e+" units is invalid");return t/r}ve(na,"lengthToRadians");function Sb(t,e){return Ef(na(t,e))}ve(Sb,"lengthToDegrees");function Ab(t){let e=t%360;return e<0&&(e+=360),e}ve(Ab,"bearingToAzimuth");function Ef(t){return t%(2*Math.PI)*180/Math.PI}ve(Ef,"radiansToDegrees");function _b(t){return t%360*Math.PI/180}ve(_b,"degreesToRadians");function Eb(t,e="kilometers",r="kilometers"){if(!(t>=0))throw new Error("length must be a positive number");return _f(na(t,e),r)}ve(Eb,"convertLength");function Mb(t,e="meters",r="kilometers"){if(!(t>=0))throw new Error("area must be a positive number");const n=xf[e];if(!n)throw new Error("invalid original units");const i=xf[r];if(!i)throw new Error("invalid final units");return t/n*i}ve(Mb,"convertArea");function Xr(t){return!isNaN(t)&&t!==null&&!Array.isArray(t)}ve(Xr,"isNumber");function ia(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}ve(ia,"isObject");function Pb(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(t.length!==4&&t.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach(e=>{if(!Xr(e))throw new Error("bbox must only contain numbers")})}ve(Pb,"validateBBox");function Ob(t){if(!t)throw new Error("id is required");if(["string","number"].indexOf(typeof t)===-1)throw new Error("id must be a number or a string")}ve(Ob,"validateId");var Cb=Object.defineProperty,Qt=(t,e)=>Cb(t,"name",{value:e,configurable:!0});function oa(t){if(!t)throw new Error("coord is required");if(!Array.isArray(t)){if(t.type==="Feature"&&t.geometry!==null&&t.geometry.type==="Point")return[...t.geometry.coordinates];if(t.type==="Point")return[...t.coordinates]}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return[...t];throw new Error("coord must be GeoJSON Point or an Array of numbers")}Qt(oa,"getCoord");function Mf(t){if(Array.isArray(t))return t;if(t.type==="Feature"){if(t.geometry!==null)return t.geometry.coordinates}else if(t.coordinates)return t.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}Qt(Mf,"getCoords");function Pf(t){if(t.length>1&&Xr(t[0])&&Xr(t[1]))return!0;if(Array.isArray(t[0])&&t[0].length)return Pf(t[0]);throw new Error("coordinates must only contain numbers")}Qt(Pf,"containsNumber");function kb(t,e,r){if(!e||!r)throw new Error("type and name required");if(!t||t.type!==e)throw new Error("Invalid input to "+r+": must be a "+e+", given "+t.type)}Qt(kb,"geojsonType");function Lb(t,e,r){if(!t)throw new Error("No feature passed");if(!r)throw new Error(".featureOf() requires a name");if(!t||t.type!=="Feature"||!t.geometry)throw new Error("Invalid input to "+r+", Feature with geometry required");if(!t.geometry||t.geometry.type!==e)throw new Error("Invalid input to "+r+": must be a "+e+", given "+t.geometry.type)}Qt(Lb,"featureOf");function Tb(t,e,r){if(!t)throw new Error("No featureCollection passed");if(!r)throw new Error(".collectionOf() requires a name");if(!t||t.type!=="FeatureCollection")throw new Error("Invalid input to "+r+", FeatureCollection required");for(const n of t.features){if(!n||n.type!=="Feature"||!n.geometry)throw new Error("Invalid input to "+r+", Feature with geometry required");if(!n.geometry||n.geometry.type!==e)throw new Error("Invalid input to "+r+": must be a "+e+", given "+n.geometry.type)}}Qt(Tb,"collectionOf");function br(t){return t.type==="Feature"?t.geometry:t}Qt(br,"getGeom");function Rb(t,e){return t.type==="FeatureCollection"?"FeatureCollection":t.type==="GeometryCollection"?"GeometryCollection":t.type==="Feature"&&t.geometry!==null?t.geometry.type:t.type}Qt(Rb,"getType");var Db=Object.defineProperty,Of=(t,e)=>Db(t,"name",{value:e,configurable:!0});function lt(t,e,r={}){if(!t)throw new Error("point is required");if(!e)throw new Error("polygon is required");const n=oa(t),i=br(e),o=i.type,s=e.bbox;let l=i.coordinates;if(s&&Cf(n,s)===!1)return!1;o==="Polygon"&&(l=[l]);let a=!1;for(var u=0;u<l.length;++u){const h=Ad(n,l[u]);if(h===0)return!r.ignoreBoundary;h&&(a=!0)}return a}Of(lt,"booleanPointInPolygon");function Cf(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}Of(Cf,"inBBox");class kf{constructor(e=[],r=Ib){if(this.data=e,this.length=this.data.length,this.compare=r,this.length>0)for(let n=(this.length>>1)-1;n>=0;n--)this._down(n)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const e=this.data[0],r=this.data.pop();return this.length--,this.length>0&&(this.data[0]=r,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:r,compare:n}=this,i=r[e];for(;e>0;){const o=e-1>>1,s=r[o];if(n(i,s)>=0)break;r[e]=s,e=o}r[e]=i}_down(e){const{data:r,compare:n}=this,i=this.length>>1,o=r[e];for(;e<i;){let s=(e<<1)+1,l=r[s];const a=s+1;if(a<this.length&&n(r[a],l)<0&&(s=a,l=r[a]),n(l,o)>=0)break;r[e]=l,e=s}r[e]=o}}function Ib(t,e){return t<e?-1:t>e?1:0}function Lf(t,e){return t.p.x>e.p.x?1:t.p.x<e.p.x?-1:t.p.y!==e.p.y?t.p.y>e.p.y?1:-1:1}function jb(t,e){return t.rightSweepEvent.p.x>e.rightSweepEvent.p.x?1:t.rightSweepEvent.p.x<e.rightSweepEvent.p.x?-1:t.rightSweepEvent.p.y!==e.rightSweepEvent.p.y?t.rightSweepEvent.p.y<e.rightSweepEvent.p.y?1:-1:1}class Tf{constructor(e,r,n,i){this.p={x:e[0],y:e[1]},this.featureId=r,this.ringId=n,this.eventId=i,this.otherEvent=null,this.isLeftEndpoint=null}isSamePoint(e){return this.p.x===e.p.x&&this.p.y===e.p.y}}function Bb(t,e){if(t.type==="FeatureCollection"){const r=t.features;for(let n=0;n<r.length;n++)Rf(r[n],e)}else Rf(t,e)}let Vi=0,Ki=0,Yi=0;function Rf(t,e){const r=t.type==="Feature"?t.geometry:t;let n=r.coordinates;(r.type==="Polygon"||r.type==="MultiLineString")&&(n=[n]),r.type==="LineString"&&(n=[[n]]);for(let i=0;i<n.length;i++)for(let o=0;o<n[i].length;o++){let s=n[i][o][0],l=null;Ki=Ki+1;for(let a=0;a<n[i][o].length-1;a++){l=n[i][o][a+1];const u=new Tf(s,Vi,Ki,Yi),h=new Tf(l,Vi,Ki,Yi+1);u.otherEvent=h,h.otherEvent=u,Lf(u,h)>0?(h.isLeftEndpoint=!0,u.isLeftEndpoint=!1):(u.isLeftEndpoint=!0,h.isLeftEndpoint=!1),e.push(u),e.push(h),s=l,Yi=Yi+1}}Vi=Vi+1}class Nb{constructor(e){this.leftSweepEvent=e,this.rightSweepEvent=e.otherEvent}}function Hb(t,e){if(t===null||e===null||t.leftSweepEvent.ringId===e.leftSweepEvent.ringId&&(t.rightSweepEvent.isSamePoint(e.leftSweepEvent)||t.rightSweepEvent.isSamePoint(e.leftSweepEvent)||t.rightSweepEvent.isSamePoint(e.rightSweepEvent)||t.leftSweepEvent.isSamePoint(e.leftSweepEvent)||t.leftSweepEvent.isSamePoint(e.rightSweepEvent)))return!1;const r=t.leftSweepEvent.p.x,n=t.leftSweepEvent.p.y,i=t.rightSweepEvent.p.x,o=t.rightSweepEvent.p.y,s=e.leftSweepEvent.p.x,l=e.leftSweepEvent.p.y,a=e.rightSweepEvent.p.x,u=e.rightSweepEvent.p.y,h=(u-l)*(i-r)-(a-s)*(o-n),d=(a-s)*(n-l)-(u-l)*(r-s),m=(i-r)*(n-l)-(o-n)*(r-s);if(h===0)return!1;const v=d/h,S=m/h;if(v>=0&&v<=1&&S>=0&&S<=1){const _=r+v*(i-r),I=n+v*(o-n);return[_,I]}return!1}function Ub(t,e){e=e||!1;const r=[],n=new kf([],jb);for(;t.length;){const i=t.pop();if(i.isLeftEndpoint){const o=new Nb(i);for(let s=0;s<n.data.length;s++){const l=n.data[s];if(e&&l.leftSweepEvent.featureId===i.featureId)continue;const a=Hb(o,l);a!==!1&&r.push(a)}n.push(o)}else i.isLeftEndpoint===!1&&n.pop()}return r}function Fb(t,e){const r=new kf([],Lf);return Bb(t,r),Ub(r,e)}var Wb=Object.defineProperty,zb=(t,e)=>Wb(t,"name",{value:e,configurable:!0}),qb=Fb;function Ji(t,e,r={}){const{removeDuplicates:n=!0,ignoreSelfIntersections:i=!1}=r;let o=[];t.type==="FeatureCollection"?o=o.concat(t.features):t.type==="Feature"?o.push(t):(t.type==="LineString"||t.type==="Polygon"||t.type==="MultiLineString"||t.type==="MultiPolygon")&&o.push(pt(t)),e.type==="FeatureCollection"?o=o.concat(e.features):e.type==="Feature"?o.push(e):(e.type==="LineString"||e.type==="Polygon"||e.type==="MultiLineString"||e.type==="MultiPolygon")&&o.push(pt(e));const s=qb(mr(o),i);let l=[];if(n){const a={};s.forEach(u=>{const h=u.join(",");a[h]||(a[h]=!0,l.push(u))})}else l=s;return mr(l.map(a=>Mt(a)))}zb(Ji,"lineIntersect");var Gb=Object.defineProperty,We=(t,e)=>Gb(t,"name",{value:e,configurable:!0});function Zr(t,e,r){if(t!==null)for(var n,i,o,s,l,a,u,h=0,d=0,m,v=t.type,S=v==="FeatureCollection",_=v==="Feature",I=S?t.features.length:1,j=0;j<I;j++){u=S?t.features[j].geometry:_?t.geometry:t,m=u?u.type==="GeometryCollection":!1,l=m?u.geometries.length:1;for(var H=0;H<l;H++){var W=0,Z=0;if(s=m?u.geometries[H]:u,s!==null){a=s.coordinates;var z=s.type;switch(h=r&&(z==="Polygon"||z==="MultiPolygon")?1:0,z){case null:break;case"Point":if(e(a,d,j,W,Z)===!1)return!1;d++,W++;break;case"LineString":case"MultiPoint":for(n=0;n<a.length;n++){if(e(a[n],d,j,W,Z)===!1)return!1;d++,z==="MultiPoint"&&W++}z==="LineString"&&W++;break;case"Polygon":case"MultiLineString":for(n=0;n<a.length;n++){for(i=0;i<a[n].length-h;i++){if(e(a[n][i],d,j,W,Z)===!1)return!1;d++}z==="MultiLineString"&&W++,z==="Polygon"&&Z++}z==="Polygon"&&W++;break;case"MultiPolygon":for(n=0;n<a.length;n++){for(Z=0,i=0;i<a[n].length;i++){for(o=0;o<a[n][i].length-h;o++){if(e(a[n][i][o],d,j,W,Z)===!1)return!1;d++}Z++}W++}break;case"GeometryCollection":for(n=0;n<s.geometries.length;n++)if(Zr(s.geometries[n],e,r)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}We(Zr,"coordEach");function Vb(t,e,r,n){var i=r;return Zr(t,function(o,s,l,a,u){s===0&&r===void 0?i=o:i=e(i,o,s,l,a,u)},n),i}We(Vb,"coordReduce");function Df(t,e){var r;switch(t.type){case"FeatureCollection":for(r=0;r<t.features.length&&e(t.features[r].properties,r)!==!1;r++);break;case"Feature":e(t.properties,0);break}}We(Df,"propEach");function Kb(t,e,r){var n=r;return Df(t,function(i,o){o===0&&r===void 0?n=i:n=e(n,i,o)}),n}We(Kb,"propReduce");function If(t,e){if(t.type==="Feature")e(t,0);else if(t.type==="FeatureCollection")for(var r=0;r<t.features.length&&e(t.features[r],r)!==!1;r++);}We(If,"featureEach");function Yb(t,e,r){var n=r;return If(t,function(i,o){o===0&&r===void 0?n=i:n=e(n,i,o)}),n}We(Yb,"featureReduce");function Jb(t){var e=[];return Zr(t,function(r){e.push(r)}),e}We(Jb,"coordAll");function sa(t,e){var r,n,i,o,s,l,a,u,h,d,m=0,v=t.type==="FeatureCollection",S=t.type==="Feature",_=v?t.features.length:1;for(r=0;r<_;r++){for(l=v?t.features[r].geometry:S?t.geometry:t,u=v?t.features[r].properties:S?t.properties:{},h=v?t.features[r].bbox:S?t.bbox:void 0,d=v?t.features[r].id:S?t.id:void 0,a=l?l.type==="GeometryCollection":!1,s=a?l.geometries.length:1,i=0;i<s;i++){if(o=a?l.geometries[i]:l,o===null){if(e(null,m,u,h,d)===!1)return!1;continue}switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(e(o,m,u,h,d)===!1)return!1;break}case"GeometryCollection":{for(n=0;n<o.geometries.length;n++)if(e(o.geometries[n],m,u,h,d)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}m++}}We(sa,"geomEach");function Xb(t,e,r){var n=r;return sa(t,function(i,o,s,l,a){o===0&&r===void 0?n=i:n=e(n,i,o,s,l,a)}),n}We(Xb,"geomReduce");function er(t,e){sa(t,function(r,n,i,o,s){var l=r===null?null:r.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return e(pt(r,i,{bbox:o,id:s}),n,0)===!1?!1:void 0}var a;switch(l){case"MultiPoint":a="Point";break;case"MultiLineString":a="LineString";break;case"MultiPolygon":a="Polygon";break}for(var u=0;u<r.coordinates.length;u++){var h=r.coordinates[u],d={type:a,coordinates:h};if(e(pt(d,i),n,u)===!1)return!1}})}We(er,"flattenEach");function Zb(t,e,r){var n=r;return er(t,function(i,o,s){o===0&&s===0&&r===void 0?n=i:n=e(n,i,o,s)}),n}We(Zb,"flattenReduce");function jf(t,e){er(t,function(r,n,i){var o=0;if(r.geometry){var s=r.geometry.type;if(!(s==="Point"||s==="MultiPoint")){var l,a=0,u=0,h=0;if(Zr(r,function(d,m,v,S,_){if(l===void 0||n>a||S>u||_>h){l=d,a=n,u=S,h=_,o=0;return}var I=Pt([l,d],r.properties);if(e(I,n,i,_,o)===!1)return!1;o++,l=d})===!1)return!1}}})}We(jf,"segmentEach");function Qb(t,e,r){var n=r,i=!1;return jf(t,function(o,s,l,a,u){i===!1&&r===void 0?n=o:n=e(n,o,s,l,a,u),i=!0}),n}We(Qb,"segmentReduce");function Bf(t,e){if(!t)throw new Error("geojson is required");er(t,function(r,n,i){if(r.geometry!==null){var o=r.geometry.type,s=r.geometry.coordinates;switch(o){case"LineString":if(e(r,n,i,0,0)===!1)return!1;break;case"Polygon":for(var l=0;l<s.length;l++)if(e(Pt(s[l],r.properties),n,i,l)===!1)return!1;break}}})}We(Bf,"lineEach");function e0(t,e,r){var n=r;return Bf(t,function(i,o,s,l){o===0&&r===void 0?n=i:n=e(n,i,o,s,l)}),n}We(e0,"lineReduce");function t0(t,e){if(e=e||{},!ia(e))throw new Error("options is invalid");var r=e.featureIndex||0,n=e.multiFeatureIndex||0,i=e.geometryIndex||0,o=e.segmentIndex||0,s=e.properties,l;switch(t.type){case"FeatureCollection":r<0&&(r=t.features.length+r),s=s||t.features[r].properties,l=t.features[r].geometry;break;case"Feature":s=s||t.properties,l=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":l=t;break;default:throw new Error("geojson is invalid")}if(l===null)return null;var a=l.coordinates;switch(l.type){case"Point":case"MultiPoint":return null;case"LineString":return o<0&&(o=a.length+o-1),Pt([a[o],a[o+1]],s,e);case"Polygon":return i<0&&(i=a.length+i),o<0&&(o=a[i].length+o-1),Pt([a[i][o],a[i][o+1]],s,e);case"MultiLineString":return n<0&&(n=a.length+n),o<0&&(o=a[n].length+o-1),Pt([a[n][o],a[n][o+1]],s,e);case"MultiPolygon":return n<0&&(n=a.length+n),i<0&&(i=a[n].length+i),o<0&&(o=a[n][i].length-o-1),Pt([a[n][i][o],a[n][i][o+1]],s,e)}throw new Error("geojson is invalid")}We(t0,"findSegment");function r0(t,e){if(e=e||{},!ia(e))throw new Error("options is invalid");var r=e.featureIndex||0,n=e.multiFeatureIndex||0,i=e.geometryIndex||0,o=e.coordIndex||0,s=e.properties,l;switch(t.type){case"FeatureCollection":r<0&&(r=t.features.length+r),s=s||t.features[r].properties,l=t.features[r].geometry;break;case"Feature":s=s||t.properties,l=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":l=t;break;default:throw new Error("geojson is invalid")}if(l===null)return null;var a=l.coordinates;switch(l.type){case"Point":return Mt(a,s,e);case"MultiPoint":return n<0&&(n=a.length+n),Mt(a[n],s,e);case"LineString":return o<0&&(o=a.length+o),Mt(a[o],s,e);case"Polygon":return i<0&&(i=a.length+i),o<0&&(o=a[i].length+o),Mt(a[i][o],s,e);case"MultiLineString":return n<0&&(n=a.length+n),o<0&&(o=a[n].length+o),Mt(a[n][o],s,e);case"MultiPolygon":return n<0&&(n=a.length+n),i<0&&(i=a[n].length+i),o<0&&(o=a[n][i].length-o),Mt(a[n][i][o],s,e)}throw new Error("geojson is invalid")}We(r0,"findPoint");var n0=Object.defineProperty,Xi=(t,e)=>n0(t,"name",{value:e,configurable:!0});function Zi(t,e={}){const r=br(t);switch(!e.properties&&t.type==="Feature"&&(e.properties=t.properties),r.type){case"Polygon":return Nf(r,e);case"MultiPolygon":return Hf(r,e);default:throw new Error("invalid poly")}}Xi(Zi,"polygonToLine");function Nf(t,e={}){const n=br(t).coordinates,i=e.properties?e.properties:t.type==="Feature"?t.properties:{};return aa(n,i)}Xi(Nf,"singlePolygonToLine");function Hf(t,e={}){const n=br(t).coordinates,i=e.properties?e.properties:t.type==="Feature"?t.properties:{},o=[];return n.forEach(s=>{o.push(aa(s,i))}),mr(o)}Xi(Hf,"multiPolygonToLine");function aa(t,e){return t.length>1?ra(t,e):Pt(t[0],e)}Xi(aa,"coordsToLine");var i0=Object.defineProperty,tr=(t,e)=>i0(t,"name",{value:e,configurable:!0});function Uf(t,e){let r=!0;return er(t,n=>{er(e,i=>{if(r===!1)return!1;r=Ff(n.geometry,i.geometry)})}),r}tr(Uf,"booleanDisjoint");function Ff(t,e){switch(t.type){case"Point":switch(e.type){case"Point":return!Gf(t.coordinates,e.coordinates);case"LineString":return!la(e,t);case"Polygon":return!lt(t,e)}break;case"LineString":switch(e.type){case"Point":return!la(t,e);case"LineString":return!Wf(t,e);case"Polygon":return!ca(e,t)}break;case"Polygon":switch(e.type){case"Point":return!lt(e,t);case"LineString":return!ca(t,e);case"Polygon":return!zf(e,t)}}return!1}tr(Ff,"disjoint");function la(t,e){for(let r=0;r<t.coordinates.length-1;r++)if(qf(t.coordinates[r],t.coordinates[r+1],e.coordinates))return!0;return!1}tr(la,"isPointOnLine");function Wf(t,e){return Ji(t,e).features.length>0}tr(Wf,"isLineOnLine");function ca(t,e){for(const n of e.coordinates)if(lt(n,t))return!0;return Ji(e,Zi(t)).features.length>0}tr(ca,"isLineInPoly");function zf(t,e){for(const n of t.coordinates[0])if(lt(n,e))return!0;for(const n of e.coordinates[0])if(lt(n,t))return!0;return Ji(Zi(t),Zi(e)).features.length>0}tr(zf,"isPolyInPoly");function qf(t,e,r){const n=r[0]-t[0],i=r[1]-t[1],o=e[0]-t[0],s=e[1]-t[1];return n*s-i*o!==0?!1:Math.abs(o)>=Math.abs(s)?o>0?t[0]<=r[0]&&r[0]<=e[0]:e[0]<=r[0]&&r[0]<=t[0]:s>0?t[1]<=r[1]&&r[1]<=e[1]:e[1]<=r[1]&&r[1]<=t[1]}tr(qf,"isPointOnLineSegment");function Gf(t,e){return t[0]===e[0]&&t[1]===e[1]}tr(Gf,"compareCoords");var o0=Object.defineProperty,s0=(t,e)=>o0(t,"name",{value:e,configurable:!0});function Vf(t,e){let r=!1;return er(t,n=>{er(e,i=>{if(r===!0)return!0;r=!Uf(n.geometry,i.geometry)})}),r}s0(Vf,"booleanIntersects");var a0=Vf,l0=Object.defineProperty,c0=(t,e)=>l0(t,"name",{value:e,configurable:!0});function Un(t,e={}){if(t.bbox!=null&&e.recompute!==!0)return t.bbox;const r=[1/0,1/0,-1/0,-1/0];return Zr(t,n=>{r[0]>n[0]&&(r[0]=n[0]),r[1]>n[1]&&(r[1]=n[1]),r[2]<n[0]&&(r[2]=n[0]),r[3]<n[1]&&(r[3]=n[1])}),r}c0(Un,"bbox");var u0=Object.defineProperty,Kf=(t,e)=>u0(t,"name",{value:e,configurable:!0});function Fn(t,e,r={}){const n=oa(t),i=Mf(e);for(let o=0;o<i.length-1;o++){let s=!1;if(r.ignoreEndVertices&&(o===0&&(s="start"),o===i.length-2&&(s="end"),o===0&&o+1===i.length-1&&(s="both")),Yf(i[o],i[o+1],n,s,typeof r.epsilon>"u"?null:r.epsilon))return!0}return!1}Kf(Fn,"booleanPointOnLine");function Yf(t,e,r,n,i){const o=r[0],s=r[1],l=t[0],a=t[1],u=e[0],h=e[1],d=r[0]-l,m=r[1]-a,v=u-l,S=h-a,_=d*S-m*v;if(i!==null){if(Math.abs(_)>i)return!1}else if(_!==0)return!1;if(n){if(n==="start")return Math.abs(v)>=Math.abs(S)?v>0?l<o&&o<=u:u<=o&&o<l:S>0?a<s&&s<=h:h<=s&&s<a;if(n==="end")return Math.abs(v)>=Math.abs(S)?v>0?l<=o&&o<u:u<o&&o<=l:S>0?a<=s&&s<h:h<s&&s<=a;if(n==="both")return Math.abs(v)>=Math.abs(S)?v>0?l<o&&o<u:u<o&&o<l:S>0?a<s&&s<h:h<s&&s<a}else return Math.abs(v)>=Math.abs(S)?v>0?l<=o&&o<=u:u<=o&&o<=l:S>0?a<=s&&s<=h:h<=s&&s<=a;return!1}Kf(Yf,"isPointOnLineSegment");var f0=Object.defineProperty,bt=(t,e)=>f0(t,"name",{value:e,configurable:!0});function Jf(t,e){var r=br(t),n=br(e),i=r.type,o=n.type;switch(i){case"Point":switch(o){case"MultiPoint":return Xf(r,n);case"LineString":return Fn(r,n,{ignoreEndVertices:!0});case"Polygon":case"MultiPolygon":return lt(r,n,{ignoreBoundary:!0});default:throw new Error("feature2 "+o+" geometry not supported")}case"MultiPoint":switch(o){case"MultiPoint":return Zf(r,n);case"LineString":return Qf(r,n);case"Polygon":case"MultiPolygon":return ep(r,n);default:throw new Error("feature2 "+o+" geometry not supported")}case"LineString":switch(o){case"LineString":return tp(r,n);case"Polygon":case"MultiPolygon":return rp(r,n);default:throw new Error("feature2 "+o+" geometry not supported")}case"Polygon":switch(o){case"Polygon":case"MultiPolygon":return np(r,n);default:throw new Error("feature2 "+o+" geometry not supported")}default:throw new Error("feature1 "+i+" geometry not supported")}}bt(Jf,"booleanWithin");function Xf(t,e){var r,n=!1;for(r=0;r<e.coordinates.length;r++)if(fa(e.coordinates[r],t.coordinates)){n=!0;break}return n}bt(Xf,"isPointInMultiPoint");function Zf(t,e){for(var r=0;r<t.coordinates.length;r++){for(var n=!1,i=0;i<e.coordinates.length;i++)fa(t.coordinates[r],e.coordinates[i])&&(n=!0);if(!n)return!1}return!0}bt(Zf,"isMultiPointInMultiPoint");function Qf(t,e){for(var r=!1,n=0;n<t.coordinates.length;n++){if(!Fn(t.coordinates[n],e))return!1;r||(r=Fn(t.coordinates[n],e,{ignoreEndVertices:!0}))}return r}bt(Qf,"isMultiPointOnLine");function ep(t,e){for(var r=!0,n=!1,i=0;i<t.coordinates.length;i++){if(n=lt(t.coordinates[i],e),!n){r=!1;break}n=lt(t.coordinates[i],e,{ignoreBoundary:!0})}return r&&n}bt(ep,"isMultiPointInPoly");function tp(t,e){for(var r=0;r<t.coordinates.length;r++)if(!Fn(t.coordinates[r],e))return!1;return!0}bt(tp,"isLineOnLine");function rp(t,e){var r=Un(e),n=Un(t);if(!ua(r,n))return!1;for(var i=!1,o=0;o<t.coordinates.length;o++){if(!lt(t.coordinates[o],e))return!1;if(i||(i=lt(t.coordinates[o],e,{ignoreBoundary:!0})),!i&&o<t.coordinates.length-1){var s=ip(t.coordinates[o],t.coordinates[o+1]);i=lt(s,e,{ignoreBoundary:!0})}}return i}bt(rp,"isLineInPoly");function np(t,e){var r=Un(t),n=Un(e);if(!ua(n,r))return!1;for(var i=0;i<t.coordinates[0].length;i++)if(!lt(t.coordinates[0][i],e))return!1;return!0}bt(np,"isPolyInPoly");function ua(t,e){return!(t[0]>e[0]||t[2]<e[2]||t[1]>e[1]||t[3]<e[3])}bt(ua,"doBBoxOverlap");function fa(t,e){return t[0]===e[0]&&t[1]===e[1]}bt(fa,"compareCoords");function ip(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2]}bt(ip,"getMidpoint");var p0=Jf;const h0=(t,e)=>e?a0(t,e):!0,d0=(t,e)=>e?p0(t,e):!0;function g0(t,e="highlight",r="title"){const n=(o,s,l)=>{const a=s.split(".");let u;for(u=0;u<a.length-1;u++)o=o[a[u]];o[a[u]]=l},i=(o,s=[])=>{let l="",a=0;return s.forEach(u=>{const h=u[1]+1;l+=[o.substring(a,u[0]),`<mark class="${e}">`,o.substring(u[0],h),"</mark>"].join(""),a=h}),l+=o.substring(a),l};return t.filter(({matches:o})=>o&&o.length).map(({item:o,matches:s})=>{const l={...o};return s.forEach(a=>{a.key===r&&n(l,a.key,i(a.value,a.indices))}),l})}var op={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(Ve,function(){var r=1e3,n=6e4,i=36e5,o="millisecond",s="second",l="minute",a="hour",u="day",h="week",d="month",m="quarter",v="year",S="date",_="Invalid Date",I=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,j=/\[([^\]]+)]|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,H={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(R){var M=["th","st","nd","rd"],E=R%100;return"["+R+(M[(E-20)%10]||M[E]||M[0])+"]"}},W=function(R,M,E){var B=String(R);return!B||B.length>=M?R:""+Array(M+1-B.length).join(E)+R},Z={s:W,z:function(R){var M=-R.utcOffset(),E=Math.abs(M),B=Math.floor(E/60),O=E%60;return(M<=0?"+":"-")+W(B,2,"0")+":"+W(O,2,"0")},m:function R(M,E){if(M.date()<E.date())return-R(E,M);var B=12*(E.year()-M.year())+(E.month()-M.month()),O=M.clone().add(B,d),Y=E-O<0,J=M.clone().add(B+(Y?-1:1),d);return+(-(B+(E-O)/(Y?O-J:J-O))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:d,y:v,w:h,d:u,D:S,h:a,m:l,s,ms:o,Q:m}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},z="en",U={};U[z]=H;var ee="$isDayjsObject",oe=function(R){return R instanceof Ne||!(!R||!R[ee])},we=function R(M,E,B){var O;if(!M)return z;if(typeof M=="string"){var Y=M.toLowerCase();U[Y]&&(O=Y),E&&(U[Y]=E,O=Y);var J=M.split("-");if(!O&&J.length>1)return R(J[0])}else{var ye=M.name;U[ye]=M,O=ye}return!B&&O&&(z=O),O||!B&&z},de=function(R,M){if(oe(R))return R.clone();var E=typeof M=="object"?M:{};return E.date=R,E.args=arguments,new Ne(E)},ne=Z;ne.l=we,ne.i=oe,ne.w=function(R,M){return de(R,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var Ne=function(){function R(E){this.$L=we(E.locale,null,!0),this.parse(E),this.$x=this.$x||E.x||{},this[ee]=!0}var M=R.prototype;return M.parse=function(E){this.$d=function(B){var O=B.date,Y=B.utc;if(O===null)return new Date(NaN);if(ne.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var J=O.match(I);if(J){var ye=J[2]-1||0,_e=(J[7]||"0").substring(0,3);return Y?new Date(Date.UTC(J[1],ye,J[3]||1,J[4]||0,J[5]||0,J[6]||0,_e)):new Date(J[1],ye,J[3]||1,J[4]||0,J[5]||0,J[6]||0,_e)}}return new Date(O)}(E),this.init()},M.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},M.$utils=function(){return ne},M.isValid=function(){return this.$d.toString()!==_},M.isSame=function(E,B){var O=de(E);return this.startOf(B)<=O&&O<=this.endOf(B)},M.isAfter=function(E,B){return de(E)<this.startOf(B)},M.isBefore=function(E,B){return this.endOf(B)<de(E)},M.$g=function(E,B,O){return ne.u(E)?this[B]:this.set(O,E)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(E,B){var O=this,Y=!!ne.u(B)||B,J=ne.p(E),ye=function(Te,se){var Re=ne.w(O.$u?Date.UTC(O.$y,se,Te):new Date(O.$y,se,Te),O);return Y?Re:Re.endOf(u)},_e=function(Te,se){return ne.w(O.toDate()[Te].apply(O.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(se)),O)},Pe=this.$W,Ce=this.$M,Ye=this.$D,Le="set"+(this.$u?"UTC":"");switch(J){case v:return Y?ye(1,0):ye(31,11);case d:return Y?ye(1,Ce):ye(0,Ce+1);case h:var Je=this.$locale().weekStart||0,ce=(Pe<Je?Pe+7:Pe)-Je;return ye(Y?Ye-ce:Ye+(6-ce),Ce);case u:case S:return _e(Le+"Hours",0);case a:return _e(Le+"Minutes",1);case l:return _e(Le+"Seconds",2);case s:return _e(Le+"Milliseconds",3);default:return this.clone()}},M.endOf=function(E){return this.startOf(E,!1)},M.$set=function(E,B){var O,Y=ne.p(E),J="set"+(this.$u?"UTC":""),ye=(O={},O[u]=J+"Date",O[S]=J+"Date",O[d]=J+"Month",O[v]=J+"FullYear",O[a]=J+"Hours",O[l]=J+"Minutes",O[s]=J+"Seconds",O[o]=J+"Milliseconds",O)[Y],_e=Y===u?this.$D+(B-this.$W):B;if(Y===d||Y===v){var Pe=this.clone().set(S,1);Pe.$d[ye](_e),Pe.init(),this.$d=Pe.set(S,Math.min(this.$D,Pe.daysInMonth())).$d}else ye&&this.$d[ye](_e);return this.init(),this},M.set=function(E,B){return this.clone().$set(E,B)},M.get=function(E){return this[ne.p(E)]()},M.add=function(E,B){var O,Y=this;E=Number(E);var J=ne.p(B),ye=function(Ce){var Ye=de(Y);return ne.w(Ye.date(Ye.date()+Math.round(Ce*E)),Y)};if(J===d)return this.set(d,this.$M+E);if(J===v)return this.set(v,this.$y+E);if(J===u)return ye(1);if(J===h)return ye(7);var _e=(O={},O[l]=n,O[a]=i,O[s]=r,O)[J]||1,Pe=this.$d.getTime()+E*_e;return ne.w(Pe,this)},M.subtract=function(E,B){return this.add(-1*E,B)},M.format=function(E){var B=this,O=this.$locale();if(!this.isValid())return O.invalidDate||_;var Y=E||"YYYY-MM-DDTHH:mm:ssZ",J=ne.z(this),ye=this.$H,_e=this.$m,Pe=this.$M,Ce=O.weekdays,Ye=O.months,Le=O.meridiem,Je=function(se,Re,Ot,Ee){return se&&(se[Re]||se(B,Y))||Ot[Re].slice(0,Ee)},ce=function(se){return ne.s(ye%12||12,se,"0")},Te=Le||function(se,Re,Ot){var Ee=se<12?"AM":"PM";return Ot?Ee.toLowerCase():Ee};return Y.replace(j,function(se,Re){return Re||function(Ot){switch(Ot){case"YY":return String(B.$y).slice(-2);case"YYYY":return ne.s(B.$y,4,"0");case"M":return Pe+1;case"MM":return ne.s(Pe+1,2,"0");case"MMM":return Je(O.monthsShort,Pe,Ye,3);case"MMMM":return Je(Ye,Pe);case"D":return B.$D;case"DD":return ne.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return Je(O.weekdaysMin,B.$W,Ce,2);case"ddd":return Je(O.weekdaysShort,B.$W,Ce,3);case"dddd":return Ce[B.$W];case"H":return String(ye);case"HH":return ne.s(ye,2,"0");case"h":return ce(1);case"hh":return ce(2);case"a":return Te(ye,_e,!0);case"A":return Te(ye,_e,!1);case"m":return String(_e);case"mm":return ne.s(_e,2,"0");case"s":return String(B.$s);case"ss":return ne.s(B.$s,2,"0");case"SSS":return ne.s(B.$ms,3,"0");case"Z":return J}return null}(se)||J.replace(":","")})},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(E,B,O){var Y,J=this,ye=ne.p(B),_e=de(E),Pe=(_e.utcOffset()-this.utcOffset())*n,Ce=this-_e,Ye=function(){return ne.m(J,_e)};switch(ye){case v:Y=Ye()/12;break;case d:Y=Ye();break;case m:Y=Ye()/3;break;case h:Y=(Ce-Pe)/6048e5;break;case u:Y=(Ce-Pe)/864e5;break;case a:Y=Ce/i;break;case l:Y=Ce/n;break;case s:Y=Ce/r;break;default:Y=Ce}return O?Y:ne.a(Y)},M.daysInMonth=function(){return this.endOf(d).$D},M.$locale=function(){return U[this.$L]},M.locale=function(E,B){if(!E)return this.$L;var O=this.clone(),Y=we(E,B,!0);return Y&&(O.$L=Y),O},M.clone=function(){return ne.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},R}(),et=Ne.prototype;return de.prototype=et,[["$ms",o],["$s",s],["$m",l],["$H",a],["$W",u],["$M",d],["$y",v],["$D",S]].forEach(function(R){et[R[1]]=function(M){return this.$g(M,R[0],R[1])}}),de.extend=function(R,M){return R.$i||(R(M,Ne,de),R.$i=!0),de},de.locale=we,de.isDayjs=oe,de.unix=function(R){return de(1e3*R)},de.en=U[z],de.Ls=U,de.p={},de})})(op);var y0=op.exports;const Wn=kn(y0);let sp;const v0=(t,e)=>{sp=new Kt(t,{threshold:.4,distance:50,includeMatches:!0,useExtendedSearch:!0,...e})},m0=async(t,e,r)=>{const n=Object.entries(e).filter(([,l])=>l.type==="text"||l.type==="select"||l.type==="multiselect").reduce((l,[a,u])=>{const h="$or",d=[],m=(v,S)=>{const _={};u.type==="text"?_[v]=`${S}`:_[a]=`="${v}"`,d.push(_)};return Object.entries(u.state).filter(([,v])=>v).forEach(([v,S])=>m(v,S)),d.length>0&&l.push({[h]:d}),l},[]);let i;if(!(n.length>0)&&r.matchAllWhenEmpty!==!1)i=t;else{const l={$and:[...n]},a=sp.search(l);i=r.enableHighlighting?g0(a,"highlight",r.titleProperty):a.map(u=>u.item)}const o=Object.entries(e).filter(([,l])=>l.type==="range").reduce((l,[a,u])=>(l[a]={min:u.state.min,max:u.state.max,format:u.format},l),{});if(Object.keys(o).length>0){const l=[];for(let a=0;a<i.length;a++){const u={};for(const[h,d]of Object.entries(o)){const m=v=>d.format==="date"?Wn(v).unix():v;Object.prototype.hasOwnProperty.call(i[a],h)?Array.isArray(i[a][h])?u[h]=o[h].min<=m(i[a][h][1])&&m(i[a][h][0])<=o[h].max:m(i[a][h])>=o[h].min&&m(i[a][h])<=o[h].max?u[h]=!0:u[h]=!1:u[h]=!0}Object.values(u).every(h=>!!h)&&l.push(i[a])}i=[...l]}const s=Object.entries(e).filter(([,l])=>l.type==="spatial").reduce((l,[a,u])=>(l[a]={geometry:u.state.geometry,mode:u.state.mode},l),{});if(Object.values(s).map(l=>l.geometry).filter(l=>!!l).length>0){const l=[];for(let a=0;a<i.length;a++){const u={};for(const h of Object.keys(s)){const d=s[h].mode||"within";Object.prototype.hasOwnProperty.call(i[a],h)&&(d==="within"?d0(i[a][h],s[h].geometry):h0(i[a][h],s[h].geometry))?u[h]=!0:u[h]=!1}Object.values(u).every(h=>!!h)&&l.push(i[a])}i=[...l]}return i};function b0(t,e){return[{type:"Vector",properties:{id:"draw"},source:{type:"Vector",...t&&{format:"GeoJSON"},...t&&{url:e}},zIndex:1,interactions:[{type:"draw",options:{id:"drawInteraction",type:"Box",modify:!0}}]},{type:"Tile",source:{type:"XYZ",url:"https://s2maps-tiles.eu/wmts/1.0.0/osm_3857/default/g/{z}/{y}/{x}.jpg",attribution:"{ OSM: Data &copy; OpenStreetMap contributors and others, Rendering &copy; EOX }"}}]}function Qi(t){if(!t.dirty)return null;switch(t.type){case"multiselect":for(const r in t.state)t.state.hasOwnProperty(r)&&(t.state[r]=!1);break;case"range":t.state.min=t.min,t.state.max=t.max;break;case"select":for(const r in t.state)t.state.hasOwnProperty(r)&&(t.state[r]=!1);break;case"spatial":t.state.geometry=void 0;break;case"text":t.keys.forEach(r=>{t.state[r]=void 0});break}return delete t.stringifiedState,delete t.dirty,t}function ap(t,e){return t*2+e}function w0(t){return Object.keys(t).map(e=>({title:X`${e}:
508
+ <strong>${t[e].stringifiedState}</strong>`,key:e})).filter(e=>t[e.key].dirty)}function pa(t){return Object.values(t).map(e=>e.dirty).filter(e=>e).length>0}async function $0(t,e,r){return await(await fetch(`${r.externalFilter(t,e)}`)).json()}function lp(t,e,r){let n;if(t.detail?n=t.detail.target:n=t.target,n!=null&&n.classList.contains("details-filter")){if(!n.open||e!=null&&e.expandMultipleFilters)return;r.shadowRoot.querySelectorAll("eox-itemfilter-expandcontainer").forEach(i=>{const o=i.shadowRoot.querySelector(".details-filter");o&&o!==n&&o.removeAttribute("open")})}else{if(!(n!=null&&n.open)||e!=null&&e.expandMultipleResults)return;r.querySelectorAll("details").forEach(i=>{i!==n&&i.removeAttribute("open")})}}class x0 extends it{constructor(){super();nt(this,Be);this.filterProperties={},this.unstyled=!1,this.inlineMode=!1,this.filters={},this._handleClickOutside=Se(this,Be,Dp).bind(this),this._handleKeyDown=Se(this,Be,Xa).bind(this)}static get properties(){return{filterProperties:{attribute:!1,type:Object},inlineMode:{attribute:"inline-mode",type:Boolean},unstyled:{type:Boolean},filters:{state:!0,type:Object}}}set showDropdown(r){this.renderRoot.querySelector("[popover]").togglePopover(r)}get showDropdown(){var r;return(r=this.renderRoot.querySelector("[popover]"))==null?void 0:r.matches(":popover-open")}connectedCallback(){super.connectedCallback(),this.inlineMode&&(document.addEventListener("click",this._handleClickOutside),document.addEventListener("focusout",this._handleClickOutside),document.addEventListener("keydown",this._handleKeyDown),setTimeout(()=>{const r=this.renderRoot.querySelector(".inline-container-wrapper"),n=this.renderRoot.querySelector("[popover]"),i=()=>{n.matches(":popover-open")&&Dh(r,n,{strategy:"fixed"}).then(({x:o,y:s})=>{Object.assign(n.style,{left:`${o}px`,top:`${s}px`,width:`${r.getBoundingClientRect().width}px`})})};this._overlayCleanup=Rh(r,n,i,{animationFrame:!0})}))}disconnectedCallback(){this.inlineMode&&(document.removeEventListener("click",this._handleClickOutside),document.removeEventListener("focusout",this._handleClickOutside),document.removeEventListener("keydown",this._handleKeyDown),this._overlayCleanup()),super.disconnectedCallback()}_overlayCleanup(){}updateInline(){this.inlineMode&&this.requestUpdate()}render(){return X`
494
509
  <style>
495
- ${!this.unstyled&&yn} .inline-content {
496
- display: ${this.showDropdown?"block":"none"};
497
- }
510
+ ${!this.unstyled&&Pn}
498
511
  </style>
499
- ${this.inlineMode?V`
512
+ ${this.inlineMode?X`
500
513
  <div
501
514
  class="inline-container-wrapper"
502
- @click="${Se(this,Be,Pa)}"
515
+ @click="${Se(this,Be,Za)}"
503
516
  >
504
517
  <div class="inline-container" part="container">
505
518
  <div class="chip-container">
506
519
  <div class="chip-wrapper">
507
520
  <eox-itemfilter-chips
508
- .items=${f0(this.filters)}
509
- .controller=${{remove:r=>Se(this,Be,Xf).call(this,r)}}
521
+ .items=${w0(this.filters)}
522
+ .controller=${{remove:r=>Se(this,Be,jp).call(this,r)}}
510
523
  >
511
524
  </eox-itemfilter-chips>
512
525
  </div>
513
526
 
514
- ${Qe(Fs(this.filters),()=>V`
527
+ ${Ge(pa(this.filters),()=>X`
515
528
  <span
516
529
  class="chip-close"
517
530
  @click=${()=>this.dispatchEvent(new CustomEvent("reset"))}
@@ -519,33 +532,35 @@ li.highlighted,
519
532
  `)}
520
533
  </div>
521
534
  <div
522
- class="input-container ${Fs(this.filters)?"dirty-filter-input":""}"
535
+ class="input-container ${pa(this.filters)?"dirty-filter-input":""}"
523
536
  >
524
537
  <input
525
538
  autocomplete="off"
526
539
  id="eox-itemfilter-input-search"
527
540
  type="text"
528
- @click="${Se(this,Be,Pa)}"
529
- @focus="${Se(this,Be,Zf)}"
530
- @input="${Se(this,Be,Qf)}"
541
+ @click="${Se(this,Be,Za)}"
542
+ @focus="${Se(this,Be,Ip)}"
543
+ @input="${Se(this,Be,Bp)}"
531
544
  placeholder="Search and add filter"
532
545
  aria-haspopup="true"
533
546
  aria-expanded="${this.showDropdown}"
534
547
  />
535
548
  </div>
536
549
  </div>
537
- <div
538
- class="inline-content ${this.showDropdown?"":"hidden"}"
539
- slot="content"
540
- @keydown="${Se(this,Be,Ma)}"
541
- @click="${Se(this,Be,Oa)}"
542
- @focus="${Se(this,Be,Oa)}"
543
- >
544
- <slot name="section"></slot>
550
+ <div popover="manual">
551
+ <div
552
+ class="inline-content"
553
+ slot="content"
554
+ @keydown="${Se(this,Be,Xa)}"
555
+ @click="${Se(this,Be,Qa)}"
556
+ @focus="${Se(this,Be,Qa)}"
557
+ >
558
+ <slot name="section"></slot>
559
+ </div>
545
560
  </div>
546
561
  </div>
547
- `:V`<slot name="section"></slot>`}
548
- `}}Be=new WeakSet,Jf=function(r){dh(r,this)},Ma=function(r){hh(r,this)},Pa=function(r){ph(r,this)},Zf=function(){fh(this)},Oa=function(r){uh(r,this)},Xf=function(r){ch(r,this)},Qf=function(r){dl(r,this)},customElements.define("eox-itemfilter-container",h0);var d0="Expected a function",Af=NaN,g0="[object Symbol]",y0=/^\s+|\s+$/g,v0=/^[-+]0x[0-9a-f]+$/i,m0=/^0b[01]+$/i,b0=/^0o[0-7]+$/i,w0=parseInt,$0=typeof Ge=="object"&&Ge&&Ge.Object===Object&&Ge,x0=typeof self=="object"&&self&&self.Object===Object&&self,S0=$0||x0||Function("return this")(),A0=Object.prototype,_0=A0.toString,E0=Math.max,M0=Math.min,zs=function(){return S0.Date.now()};function P0(t,e,r){var n,i,o,s,c,l,f=0,d=!1,g=!1,m=!0;if(typeof t!="function")throw new TypeError(d0);e=_f(e)||0,qs(r)&&(d=!!r.leading,g="maxWait"in r,o=g?E0(_f(r.maxWait)||0,e):o,m="trailing"in r?!!r.trailing:m);function b(N){var X=n,ie=i;return n=i=void 0,f=N,s=t.apply(ie,X),s}function A(N){return f=N,c=setTimeout(K,e),d?b(N):s}function L(N){var X=N-l,ie=N-f,we=e-X;return g?M0(we,o-ie):we}function F(N){var X=N-l,ie=N-f;return l===void 0||X>=e||X<0||g&&ie>=o}function K(){var N=zs();if(F(N))return J(N);c=setTimeout(K,L(N))}function J(N){return c=void 0,m&&n?b(N):(n=i=void 0,s)}function Z(){c!==void 0&&clearTimeout(c),f=0,n=l=i=c=void 0}function pe(){return c===void 0?s:J(zs())}function te(){var N=zs(),X=F(N);if(n=arguments,i=this,l=N,X){if(c===void 0)return A(l);if(g)return c=setTimeout(K,e),b(l)}return c===void 0&&(c=setTimeout(K,e)),s}return te.cancel=Z,te.flush=pe,te}function qs(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function O0(t){return!!t&&typeof t=="object"}function C0(t){return typeof t=="symbol"||O0(t)&&_0.call(t)==g0}function _f(t){if(typeof t=="number")return t;if(C0(t))return Af;if(qs(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=qs(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(y0,"");var r=m0.test(t);return r||b0.test(t)?w0(t.slice(2),r?2:8):v0.test(t)?Af:+t}var k0=P0;const Ri=vn(k0);function L0(t){const e=t.renderRoot.querySelector("input[type='text']");e.value="",Di(t.filterObject),t.requestUpdate()}function T0(t){const e=t.renderRoot.querySelector("input[type='text']");t.filterObject.keys.forEach(r=>{t.filterObject.state[r]=e.value}),t.filterObject.dirty=!0,t.filterObject.stringifiedState=e.value,t.dispatchEvent(new CustomEvent("filter")),e.value===""&&t.reset()}function I0(t){Di(t.filterObject),t.requestUpdate()}function D0(t,e){const[r,n]=t.detail.values;(r!==e.filterObject.state.min||n!==e.filterObject.state.max)&&([e.filterObject.state.min,e.filterObject.state.max]=[r,n],e.filterObject.dirty=!0),e.filterObject.dirty&&(e.filterObject.stringifiedState=`${On(r)} - ${On(n)}`),e.dispatchEvent(new CustomEvent("filter")),r===e.filterObject.min&&n===e.filterObject.max?e.reset():e.requestUpdate()}function R0(t,e,r){const n=r.filterObject.format==="date",i=r.filterObject.state[t],o=n?On.unix(i):i;return V`<div class="range-${e}">${o}</div>`}function j0(t){B0(-1,t),Di(t.filterObject),t.requestUpdate()}function B0(t,e){e.selectedItems=t===-1?[]:e.selectedItems.filter((r,n)=>n!==t),Gs(e),Mf(e)}function Ef(t,e){const r=e.selectedItems.indexOf(t);r>=0?e.selectedItems=e.selectedItems.filter((n,i)=>i!==r):e.type==="multiselect"?e.selectedItems=[...e.selectedItems,t]:(e.selectedItems=[t],e.showSuggestions=!1),Gs(e),Mf(e)}function N0(t,e){e.query=t.target.value,e.showSuggestions=!0}function H0(t,e){switch(t.key){case"ArrowDown":e.highlightedIndex=Math.min(e.highlightedIndex+1,e.filteredSuggestions.length-1);break;case"ArrowUp":e.highlightedIndex=Math.max(e.highlightedIndex-1,0);break;case"Enter":e.highlightedIndex>=0&&Ef(e.filteredSuggestions[e.highlightedIndex],e);break;case"Escape":e.showSuggestions=!1;break}}function U0(t,e){(t.has("suggestions")||t.has("query"))&&Gs(e)}function W0(t,e){var n;const r=((n=t.filterObject)==null?void 0:n.sort)||((i,o)=>i.localeCompare(o));return e.sort(r).map(i=>i)}function Gs(t){var r,n,i;let e;t.query&&(e=new Ut(t.suggestions,{threshold:.4}).search(t.query).map(s=>s.item)),t.filteredSuggestions=W0(t,e||t.suggestions),(r=t.filterObject)!=null&&r.filterKeys&&(t.filteredSuggestions=(n=t.filterObject)==null?void 0:n.filterKeys.map(o=>`${o}`),t.filterObject.state=(i=t.filterObject)==null?void 0:i.filterKeys.map(o=>`${o}`).reduce((o,s)=>(s in o||(o[s]=void 0),o),t.filterObject.state)),t.highlightedIndex=-1}function Mf(t){Object.keys(t.filterObject.state).forEach(e=>{t.filterObject.state[e]=t.selectedItems.includes(e)}),t.filterObject.stringifiedState=Object.keys(t.filterObject.state).filter(e=>t.filterObject.state[e]).join(", ")||"",t.filterObject.dirty=t.filterObject.stringifiedState.length>0,t.dispatchEvent(new CustomEvent("filter")),t.requestUpdate()}function F0(t){Di(t.filterObject),t.renderRoot.querySelector("eox-itemfilter-spatial-filter").reset(),t.requestUpdate()}function z0(t){t.renderRoot.querySelector("#eox-map").innerHTML="",Pf(t)}function q0(t,e){e.filterObject.state.mode=t;const r=new CustomEvent("filter",{detail:{[e.filterObject.key]:{}}});e.dispatchEvent(r)}function Pf(t){const e=t.renderRoot.querySelector("#eox-map");e.innerHTML===""&&(e.innerHTML='<eox-map part="map" style="height: 400px"></eox-map>');const r=t.geometry&&G0(t.geometry),n=u0(t.geometry,r);t.eoxMap=t.renderRoot.querySelector("eox-map"),setTimeout(()=>{t.eoxMap.layers=n;const i=o=>{const s=new CustomEvent("filter",{detail:{geometry:{type:"Polygon",coordinates:o.getGeometry().clone().transform("EPSG:3857","EPSG:4326").getCoordinates()}}});t.dispatchEvent(s)};t.eoxMap.interactions.drawInteraction.on("drawend",o=>{i(o.feature),t.eoxMap.removeInteraction("drawInteraction")}),t.eoxMap.interactions.drawInteraction_modify.on("modifyend",o=>{i(o.features.getArray()[0])})},1e3)}function G0(t){return`data:text/json,${encodeURIComponent(JSON.stringify({type:"FeatureCollection",features:[{type:"Feature",properties:null,geometry:t}]}))}`}class K0 extends it{constructor(){super();nt(this,Wi,()=>{T0(this)});Jn(this,"debouncedInputHandler",Ri(pt(this,Wi),500,{leading:!0}));this.filterObject={},this.unstyled=!1,this.tabIndex=0}static get properties(){return{filterObject:{attribute:!1,type:Object},tabIndex:{attribute:!1,type:Number},unstyled:{type:Boolean}}}reset(){L0(this)}createRenderRoot(){return this}render(){return Qe(this.filterObject,()=>V`
562
+ `:X`<slot name="section"></slot>`}
563
+ `}}Be=new WeakSet,Dp=function(r){Sd(r,this)},Xa=function(r){xd(r,this)},Za=function(r){$d(r,this)},Ip=function(){wd(this)},Qa=function(r){bd(r,this)},jp=function(r){md(r,this)},Bp=function(r){Zl(r,this)},customElements.define("eox-itemfilter-container",x0);var S0="Expected a function",cp=NaN,A0="[object Symbol]",_0=/^\s+|\s+$/g,E0=/^[-+]0x[0-9a-f]+$/i,M0=/^0b[01]+$/i,P0=/^0o[0-7]+$/i,O0=parseInt,C0=typeof Ve=="object"&&Ve&&Ve.Object===Object&&Ve,k0=typeof self=="object"&&self&&self.Object===Object&&self,L0=C0||k0||Function("return this")(),T0=Object.prototype,R0=T0.toString,D0=Math.max,I0=Math.min,ha=function(){return L0.Date.now()};function j0(t,e,r){var n,i,o,s,l,a,u=0,h=!1,d=!1,m=!0;if(typeof t!="function")throw new TypeError(S0);e=up(e)||0,da(r)&&(h=!!r.leading,d="maxWait"in r,o=d?D0(up(r.maxWait)||0,e):o,m="trailing"in r?!!r.trailing:m);function v(U){var ee=n,oe=i;return n=i=void 0,u=U,s=t.apply(oe,ee),s}function S(U){return u=U,l=setTimeout(j,e),h?v(U):s}function _(U){var ee=U-a,oe=U-u,we=e-ee;return d?I0(we,o-oe):we}function I(U){var ee=U-a,oe=U-u;return a===void 0||ee>=e||ee<0||d&&oe>=o}function j(){var U=ha();if(I(U))return H(U);l=setTimeout(j,_(U))}function H(U){return l=void 0,m&&n?v(U):(n=i=void 0,s)}function W(){l!==void 0&&clearTimeout(l),u=0,n=a=i=l=void 0}function Z(){return l===void 0?s:H(ha())}function z(){var U=ha(),ee=I(U);if(n=arguments,i=this,a=U,ee){if(l===void 0)return S(a);if(d)return l=setTimeout(j,e),v(a)}return l===void 0&&(l=setTimeout(j,e)),s}return z.cancel=W,z.flush=Z,z}function da(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function B0(t){return!!t&&typeof t=="object"}function N0(t){return typeof t=="symbol"||B0(t)&&R0.call(t)==A0}function up(t){if(typeof t=="number")return t;if(N0(t))return cp;if(da(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=da(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(_0,"");var r=M0.test(t);return r||P0.test(t)?O0(t.slice(2),r?2:8):E0.test(t)?cp:+t}var H0=j0;const eo=kn(H0);function U0(t){const e=t.renderRoot.querySelector("input[type='text']");e.value="",Qi(t.filterObject),t.requestUpdate()}function F0(t){const e=t.renderRoot.querySelector("input[type='text']");t.filterObject.keys.forEach(r=>{t.filterObject.state[r]=e.value}),t.filterObject.dirty=!0,t.filterObject.stringifiedState=e.value,t.dispatchEvent(new CustomEvent("filter")),e.value===""&&t.reset()}function W0(t){Qi(t.filterObject),t.requestUpdate()}function z0(t,e){const[r,n]=t.detail.values;(r!==e.filterObject.state.min||n!==e.filterObject.state.max)&&([e.filterObject.state.min,e.filterObject.state.max]=[r,n],e.filterObject.dirty=!0),e.filterObject.dirty&&(e.filterObject.stringifiedState=`${Wn(r)} - ${Wn(n)}`),e.dispatchEvent(new CustomEvent("filter")),r===e.filterObject.min&&n===e.filterObject.max?e.reset():e.requestUpdate()}function q0(t,e,r){const n=r.filterObject.format==="date",i=r.filterObject.state[t],o=n?Wn.unix(i):i;return X`<div class="range-${e}">${o}</div>`}function G0(t){V0(-1,t),Qi(t.filterObject),t.requestUpdate()}function V0(t,e){e.selectedItems=t===-1?[]:e.selectedItems.filter((r,n)=>n!==t),ga(e),pp(e)}function fp(t,e){const r=e.selectedItems.indexOf(t);r>=0?e.selectedItems=e.selectedItems.filter((n,i)=>i!==r):e.type==="multiselect"?e.selectedItems=[...e.selectedItems,t]:(e.selectedItems=[t],e.showSuggestions=!1),ga(e),pp(e)}function K0(t,e){e.query=t.target.value,e.showSuggestions=!0}function Y0(t,e){switch(t.key){case"ArrowDown":e.highlightedIndex=Math.min(e.highlightedIndex+1,e.filteredSuggestions.length-1);break;case"ArrowUp":e.highlightedIndex=Math.max(e.highlightedIndex-1,0);break;case"Enter":e.highlightedIndex>=0&&fp(e.filteredSuggestions[e.highlightedIndex],e);break;case"Escape":e.showSuggestions=!1;break}}function J0(t,e){(t.has("suggestions")||t.has("query"))&&ga(e)}function X0(t,e){var n;const r=((n=t.filterObject)==null?void 0:n.sort)||((i,o)=>i.localeCompare(o));return e.sort(r).map(i=>i)}function ga(t){var r,n,i;let e;t.query&&(e=new Kt(t.suggestions,{threshold:.4}).search(t.query).map(s=>s.item)),t.filteredSuggestions=X0(t,e||t.suggestions),(r=t.filterObject)!=null&&r.filterKeys&&(t.filteredSuggestions=(n=t.filterObject)==null?void 0:n.filterKeys.map(o=>`${o}`),t.filterObject.state=(i=t.filterObject)==null?void 0:i.filterKeys.map(o=>`${o}`).reduce((o,s)=>(s in o||(o[s]=void 0),o),t.filterObject.state)),t.highlightedIndex=-1}function pp(t){Object.keys(t.filterObject.state).forEach(e=>{t.filterObject.state[e]=t.selectedItems.includes(e)}),t.filterObject.stringifiedState=Object.keys(t.filterObject.state).filter(e=>t.filterObject.state[e]).join(", ")||"",t.filterObject.dirty=t.filterObject.stringifiedState.length>0,t.dispatchEvent(new CustomEvent("filter")),t.requestUpdate()}function Z0(t){Qi(t.filterObject),t.renderRoot.querySelector("eox-itemfilter-spatial-filter").reset(),t.requestUpdate()}function Q0(t){t.renderRoot.querySelector("#eox-map").innerHTML="",hp(t)}function e1(t,e){e.filterObject.state.mode=t;const r=new CustomEvent("filter",{detail:{[e.filterObject.key]:{}}});e.dispatchEvent(r)}function hp(t){const e=t.renderRoot.querySelector("#eox-map");e.innerHTML===""&&(e.innerHTML='<eox-map part="map" style="height: 400px"></eox-map>');const r=t.geometry&&t1(t.geometry),n=b0(t.geometry,r);t.eoxMap=t.renderRoot.querySelector("eox-map"),setTimeout(()=>{t.eoxMap.layers=n;const i=o=>{const s=new CustomEvent("filter",{detail:{geometry:{type:"Polygon",coordinates:o.getGeometry().clone().transform("EPSG:3857","EPSG:4326").getCoordinates()}}});t.dispatchEvent(s)};t.eoxMap.interactions.drawInteraction.on("drawend",o=>{i(o.feature),t.eoxMap.removeInteraction("drawInteraction")}),t.eoxMap.interactions.drawInteraction_modify.on("modifyend",o=>{i(o.features.getArray()[0])})},1e3)}function t1(t){return`data:text/json,${encodeURIComponent(JSON.stringify({type:"FeatureCollection",features:[{type:"Feature",properties:null,geometry:t}]}))}`}class r1 extends it{constructor(){super();nt(this,so,()=>{F0(this)});ui(this,"debouncedInputHandler",eo(ut(this,so),500,{leading:!0}));this.filterObject={},this.unstyled=!1,this.tabIndex=0}static get properties(){return{filterObject:{attribute:!1,type:Object},tabIndex:{attribute:!1,type:Number},unstyled:{type:Boolean}}}reset(){U0(this)}createRenderRoot(){return this}render(){return Ge(this.filterObject,()=>X`
549
564
  <style></style>
550
565
  <div class="text-container">
551
566
  <div class="text-container-wrapper">
@@ -562,27 +577,27 @@ li.highlighted,
562
577
  />
563
578
  </div>
564
579
  </div>
565
- `)}}Wi=new WeakMap,customElements.define("eox-itemfilter-text",K0);class Of extends it{constructor(){super(...arguments),this.templates={},this._renderedTemplates={}}setBindingSyntax(e,r){this._startExpression=e,this._endExpression=r;const n=this.escapeRegex(this._startExpression),i=this.escapeRegex(this._endExpression);this._expression=new RegExp(`${n}\\s*([$\\w\\.,'"\\s()\\[\\]]+)\\s*${i}`,"g")}hasTemplate(e){return this.templates&&!!this.templates[e]}renderTemplate(e,r,n){if(!this.hasTemplate(e))return null;n=n||e;const i=V` <slot name=${n}></slot> `,o={[e]:{...r}};if(this._renderedTemplates.hasOwnProperty(n)){const{slot:c}=this._renderedTemplates[n];this.contains(c)&&this.removeChild(c)}const s=document.createElement("div");return s.slot=n,s.dataset.generated="template",this._renderTemplate(s,this.templates[e],o),this.appendChild(s),this._renderedTemplates[n]={context:o,slot:s},i}getTemplates(){const e={};for(let r=0;r<this.children.length;r++){const n=this.children[r];if(n.nodeName==="RENDER-TEMPLATE"){const i=n;i.dataset.type?e[i.dataset.type]=i:e.default=i,i.templateOrder=r}}return e}_renderTemplate(e,r,n){let i;if(r&&r.childNodes.length){const o=r.cloneNode(!0);i=this.renderNode(o,e,n)}i&&e.appendChild(i)}expandExpressionsAsString(e,r){return e.replace(this.expression,(n,i)=>{const o=this.evalInContext(i||this.trimExpression(n),r);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,r){r={...r};const n=new Function("with(this) { return "+e+";}");let i;try{i=n.call(r)}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,r,n){if(e.nodeName==="#text")return e.textContent=this.expandExpressionsAsString(e.textContent,n),e;if(e.nodeName==="TEMPLATE")return e.$parentTemplateContext=n,e;for(let i=0;i<e.childNodes.length;i++){const o=e.childNodes[i];this.renderNode(o,r,n)}return e}firstUpdated(){this.templates=this.getTemplates()}}function V0(t,e,r){return t.filter(n=>{const i=n[r.config.aggregateResults];let o;return r.filters[r.config.aggregateResults]&&(o=Object.keys(r.filters[r.config.aggregateResults]).filter(c=>r.filters[r.config.aggregateResults].state[c])),(o!=null&&o.length?o.includes(e):!0)&&Array.isArray(i)?i.includes(e):i===e})}/**
580
+ `)}}so=new WeakMap,customElements.define("eox-itemfilter-text",r1);class dp extends it{constructor(){super(...arguments),this.templates={},this._renderedTemplates={}}setBindingSyntax(e,r){this._startExpression=e,this._endExpression=r;const n=this.escapeRegex(this._startExpression),i=this.escapeRegex(this._endExpression);this._expression=new RegExp(`${n}\\s*([$\\w\\.,'"\\s()\\[\\]]+)\\s*${i}`,"g")}hasTemplate(e){return this.templates&&!!this.templates[e]}renderTemplate(e,r,n){if(!this.hasTemplate(e))return null;n=n||e;const i=X` <slot name=${n}></slot> `,o={[e]:{...r}};if(this._renderedTemplates.hasOwnProperty(n)){const{slot:l}=this._renderedTemplates[n];this.contains(l)&&this.removeChild(l)}const s=document.createElement("div");return s.slot=n,s.dataset.generated="template",this._renderTemplate(s,this.templates[e],o),this.appendChild(s),this._renderedTemplates[n]={context:o,slot:s},i}getTemplates(){const e={};for(let r=0;r<this.children.length;r++){const n=this.children[r];if(n.nodeName==="RENDER-TEMPLATE"){const i=n;i.dataset.type?e[i.dataset.type]=i:e.default=i,i.templateOrder=r}}return e}_renderTemplate(e,r,n){let i;if(r&&r.childNodes.length){const o=r.cloneNode(!0);i=this.renderNode(o,e,n)}i&&e.appendChild(i)}expandExpressionsAsString(e,r){return e.replace(this.expression,(n,i)=>{const o=this.evalInContext(i||this.trimExpression(n),r);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,r){r={...r};const n=new Function("with(this) { return "+e+";}");let i;try{i=n.call(r)}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,r,n){if(e.nodeName==="#text")return e.textContent=this.expandExpressionsAsString(e.textContent,n),e;if(e.nodeName==="TEMPLATE")return e.$parentTemplateContext=n,e;for(let i=0;i<e.childNodes.length;i++){const o=e.childNodes[i];this.renderNode(o,r,n)}return e}firstUpdated(){this.templates=this.getTemplates()}}function n1(t,e,r){return t.filter(n=>{const i=n[r.config.aggregateResults];let o;return r.filters[r.config.aggregateResults]&&(o=Object.keys(r.filters[r.config.aggregateResults]).filter(l=>r.filters[r.config.aggregateResults].state[l])),(o!=null&&o.length?o.includes(e):!0)&&Array.isArray(i)?i.includes(e):i===e})}/**
566
581
  * @license
567
582
  * Copyright 2017 Google LLC
568
583
  * SPDX-License-Identifier: BSD-3-Clause
569
- */const Cf={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},kf=t=>(...e)=>({_$litDirective$:t,values:e});class Lf{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}}/**
584
+ */const gp={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},yp=t=>(...e)=>({_$litDirective$:t,values:e});class vp{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}}/**
570
585
  * @license
571
586
  * Copyright 2020 Google LLC
572
587
  * SPDX-License-Identifier: BSD-3-Clause
573
- */const{I:Y0}=xp,Tf=()=>document.createComment(""),Cn=(t,e,r)=>{var o;const n=t._$AA.parentNode,i=e===void 0?t._$AB:e._$AA;if(r===void 0){const s=n.insertBefore(Tf(),i),c=n.insertBefore(Tf(),i);r=new Y0(s,c,t,t.options)}else{const s=r._$AB.nextSibling,c=r._$AM,l=c!==t;if(l){let f;(o=r._$AQ)==null||o.call(r,t),r._$AM=t,r._$AP!==void 0&&(f=t._$AU)!==c._$AU&&r._$AP(f)}if(s!==i||l){let f=r._$AA;for(;f!==s;){const d=f.nextSibling;n.insertBefore(f,i),f=d}}}return r},pr=(t,e,r=t)=>(t._$AI(e,r),t),J0={},Z0=(t,e=J0)=>t._$AH=e,X0=t=>t._$AH,Ks=t=>{var n;(n=t._$AP)==null||n.call(t,!1,!0);let e=t._$AA;const r=t._$AB.nextSibling;for(;e!==r;){const i=e.nextSibling;e.remove(),e=i}};/**
588
+ */const{I:i1}=ah,mp=()=>document.createComment(""),zn=(t,e,r)=>{var o;const n=t._$AA.parentNode,i=e===void 0?t._$AB:e._$AA;if(r===void 0){const s=n.insertBefore(mp(),i),l=n.insertBefore(mp(),i);r=new i1(s,l,t,t.options)}else{const s=r._$AB.nextSibling,l=r._$AM,a=l!==t;if(a){let u;(o=r._$AQ)==null||o.call(r,t),r._$AM=t,r._$AP!==void 0&&(u=t._$AU)!==l._$AU&&r._$AP(u)}if(s!==i||a){let u=r._$AA;for(;u!==s;){const h=u.nextSibling;n.insertBefore(u,i),u=h}}}return r},wr=(t,e,r=t)=>(t._$AI(e,r),t),o1={},s1=(t,e=o1)=>t._$AH=e,a1=t=>t._$AH,ya=t=>{var n;(n=t._$AP)==null||n.call(t,!1,!0);let e=t._$AA;const r=t._$AB.nextSibling;for(;e!==r;){const i=e.nextSibling;e.remove(),e=i}};/**
574
589
  * @license
575
590
  * Copyright 2017 Google LLC
576
591
  * SPDX-License-Identifier: BSD-3-Clause
577
- */const If=(t,e,r)=>{const n=new Map;for(let i=e;i<=r;i++)n.set(t[i],i);return n},Q0=kf(class extends Lf{constructor(t){if(super(t),t.type!==Cf.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let n;r===void 0?r=e:e!==void 0&&(n=e);const i=[],o=[];let s=0;for(const c of t)i[s]=n?n(c,s):s,o[s]=r(c,s),s++;return{values:o,keys:i}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,n]){const i=X0(t),{values:o,keys:s}=this.dt(e,r,n);if(!Array.isArray(i))return this.ut=s,o;const c=this.ut??(this.ut=[]),l=[];let f,d,g=0,m=i.length-1,b=0,A=o.length-1;for(;g<=m&&b<=A;)if(i[g]===null)g++;else if(i[m]===null)m--;else if(c[g]===s[b])l[b]=pr(i[g],o[b]),g++,b++;else if(c[m]===s[A])l[A]=pr(i[m],o[A]),m--,A--;else if(c[g]===s[A])l[A]=pr(i[g],o[A]),Cn(t,l[A+1],i[g]),g++,A--;else if(c[m]===s[b])l[b]=pr(i[m],o[b]),Cn(t,i[g],i[m]),m--,b++;else if(f===void 0&&(f=If(s,b,A),d=If(c,g,m)),f.has(c[g]))if(f.has(c[m])){const L=d.get(s[b]),F=L!==void 0?i[L]:null;if(F===null){const K=Cn(t,i[g]);pr(K,o[b]),l[b]=K}else l[b]=pr(F,o[b]),Cn(t,i[g],F),i[L]=null;b++}else Ks(i[m]),m--;else Ks(i[g]),g++;for(;b<=A;){const L=Cn(t,l[A+1]);pr(L,o[b]),l[b++]=L}for(;g<=m;){const L=i[g++];L!==null&&Ks(L)}return this.ut=s,Z0(t,l),Nt}});/**
592
+ */const bp=(t,e,r)=>{const n=new Map;for(let i=e;i<=r;i++)n.set(t[i],i);return n},l1=yp(class extends vp{constructor(t){if(super(t),t.type!==gp.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let n;r===void 0?r=e:e!==void 0&&(n=e);const i=[],o=[];let s=0;for(const l of t)i[s]=n?n(l,s):s,o[s]=r(l,s),s++;return{values:o,keys:i}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,n]){const i=a1(t),{values:o,keys:s}=this.dt(e,r,n);if(!Array.isArray(i))return this.ut=s,o;const l=this.ut??(this.ut=[]),a=[];let u,h,d=0,m=i.length-1,v=0,S=o.length-1;for(;d<=m&&v<=S;)if(i[d]===null)d++;else if(i[m]===null)m--;else if(l[d]===s[v])a[v]=wr(i[d],o[v]),d++,v++;else if(l[m]===s[S])a[S]=wr(i[m],o[S]),m--,S--;else if(l[d]===s[S])a[S]=wr(i[d],o[S]),zn(t,a[S+1],i[d]),d++,S--;else if(l[m]===s[v])a[v]=wr(i[m],o[v]),zn(t,i[d],i[m]),m--,v++;else if(u===void 0&&(u=bp(s,v,S),h=bp(l,d,m)),u.has(l[d]))if(u.has(l[m])){const _=h.get(s[v]),I=_!==void 0?i[_]:null;if(I===null){const j=zn(t,i[d]);wr(j,o[v]),a[v]=j}else a[v]=wr(I,o[v]),zn(t,i[d],I),i[_]=null;v++}else ya(i[m]),m--;else ya(i[d]),d++;for(;v<=S;){const _=zn(t,a[S+1]);wr(_,o[v]),a[v++]=_}for(;d<=m;){const _=i[d++];_!==null&&ya(_)}return this.ut=s,s1(t,a),zt}});/**
578
593
  * @license
579
594
  * Copyright 2017 Google LLC
580
595
  * SPDX-License-Identifier: BSD-3-Clause
581
- */class Vs extends Lf{constructor(e){if(super(e),this.it=ve,e.type!==Cf.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===ve||e==null)return this._t=void 0,this.it=e;if(e===Nt)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}}Vs.directiveName="unsafeHTML",Vs.resultType=1;const eb=kf(Vs);function tb(t,e){return V`
596
+ */class va extends vp{constructor(e){if(super(e),this.it=be,e.type!==gp.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===be||e==null)return this._t=void 0,this.it=e;if(e===zt)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}}va.directiveName="unsafeHTML",va.resultType=1;const ma=yp(va);function c1(t,e){return X`
582
597
  <details
583
598
  class="details-results"
584
- @toggle=${e.toggleAccordion}
585
- ?open=${e.config.expandResults||ve}
599
+ @toggle=${e.handleAccordion}
600
+ ?open=${e.config.expandResults||be}
586
601
  >
587
602
  <summary>
588
603
  <span class="title">
@@ -593,53 +608,58 @@ li.highlighted,
593
608
  </span>
594
609
  </summary>
595
610
  <div>
596
- ${Df(t,e)}
611
+ ${wp(t,e)}
597
612
  </div>
598
613
  </details>
599
- `}function Df(t,e){const r=e.results,n=t?e.aggregateResults(r,t):r,i=e.config,o=s=>{var c;return((c=e.selectedResult)==null?void 0:c[i.titleProperty])===s[i.titleProperty]?"highlighted":ve};return V`
614
+ `}function wp(t,e){const r=e.results,n=t?e.aggregateResults(r,t):r,i=e.config,o=s=>{var l;return((l=e.selectedResult)==null?void 0:l[i.idProperty])===s[i.idProperty]?"highlighted":be};return X`
600
615
  <ul>
601
- ${Q0(n,s=>s.id,s=>{var c;return V`
616
+ ${l1(n,s=>s.id,s=>X`
602
617
  <li class=${o(s)}>
603
- <label>
604
- <input
605
- data-cy="result-radio"
606
- type="radio"
607
- class="result-radio"
608
- name="result"
609
- id="${s.id}"
610
- ?checked=${((c=e.selectedResult)==null?void 0:c[i.titleProperty])===s[i.titleProperty]||ve}
611
- @click=${()=>{e.selectedResult=s,e.dispatchEvent(new CustomEvent("result",{detail:s}))}}
612
- />
613
- ${Qe(e.hasTemplate("result"),()=>e.renderTemplate("result",s,`result-${s.id}`),()=>V`
614
- <span class="title"
615
- >${eb(s[i.titleProperty])}</span
616
- >
618
+ <span
619
+ id="${s.id}"
620
+ @click=${()=>{e.selectedResult===s?e.selectedResult=null:e.selectedResult=s,e.dispatchEvent(new CustomEvent("result",{detail:e.selectedResult}))}}
621
+ >
622
+ ${Ge(e.hasTemplate("result"),()=>e.renderTemplate("result",s,`result-${s.id}`),()=>X`
623
+ ${Ge(i.subTitleProperty,()=>X`
624
+ <div class="title-container">
625
+ <span class="title"
626
+ >${ma(s[i.titleProperty])}</span
627
+ >
628
+ <span class="subtitle"
629
+ >${ma(s[i.subTitleProperty])}</span
630
+ >
631
+ </div>
632
+ `,()=>X`
633
+ <span class="title"
634
+ >${ma(s[i.titleProperty])}</span
635
+ >
636
+ `)}
617
637
  `)}
618
- </label>
638
+ </span>
619
639
  </li>
620
- `})}
640
+ `)}
621
641
  </ul>
622
- `}class rb extends Of{constructor(){super();nt(this,dr);this.config=null,this.filters={},this.resultAggregation=[],this.selectedResult=null}static get properties(){return{config:{attribute:!1,type:Object},results:{state:!0,type:Object},filters:{state:!0,type:Object},resultAggregation:{attribute:!1,type:Array},selectedResult:{state:!0,type:Object}}}aggregateResults(r,n){return V0(r,n,this)}createRenderRoot(){return this}render(){return V`
642
+ `}class u1 extends dp{constructor(){super();nt(this,xr);this.config=null,this.filters={},this.resultAggregation=[],this.selectedResult=null}static get properties(){return{config:{attribute:!1,type:Object},results:{state:!0,type:Object},filters:{state:!0,type:Object},resultAggregation:{attribute:!1,type:Array},selectedResult:{state:!0,type:Object}}}aggregateResults(r,n){return n1(r,n,this)}createRenderRoot(){return this}handleAccordion(r){lp(r,this.config,this)}render(){return X`
623
643
  <section id="section-results">
624
644
  <div>
625
645
  <h6 style="padding: 8px 0px;">Results</h6>
626
646
  </div>
627
647
  <div id="container-results" class="scroll">
628
- ${Qe(this.results.length<1,()=>V`<small class="no-results">No matching items</small>`,()=>ve)}
648
+ ${Ge(this.results.length<1,()=>X`<small class="no-results">No matching items</small>`,()=>be)}
629
649
  <ul id="results" part="results">
630
- ${Qe(this.config.aggregateResults,()=>Xn(this.resultAggregation.filter(r=>this.aggregateResults(this.results,r).length),r=>V`${Qe(this.aggregateResults(this.results,r).length===1&&this.config.autoSpreadSingle,()=>V`<div style="margin-left: -8px">
631
- ${Se(this,dr,Ca).call(this,r)}
632
- </div>`,()=>Se(this,dr,ep).call(this,r))}`),()=>Se(this,dr,Ca).call(this))}
650
+ ${Ge(this.config.aggregateResults,()=>pi(this.resultAggregation.filter(r=>this.aggregateResults(this.results,r).length),r=>X`${Ge(this.aggregateResults(this.results,r).length===1&&this.config.autoSpreadSingle,()=>X`<div style="margin-left: -8px">
651
+ ${Se(this,xr,el).call(this,r)}
652
+ </div>`,()=>Se(this,xr,Np).call(this,r))}`),()=>Se(this,xr,el).call(this))}
633
653
  </ul>
634
654
  </div>
635
655
  </section>
636
- `}}dr=new WeakSet,Ca=function(r){return Df(r,this)},ep=function(r){return tb(r,this)},customElements.define("eox-itemfilter-results",rb);const nb=`input[type="checkbox"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}input[type="checkbox"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="checkbox"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");}`,ib=`input[type="radio"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}label span { font-size: small;}input[type="radio"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="radio"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");}`;class Rf extends it{constructor(){super();nt(this,Yt);Jn(this,"debouncedInputHandler",Ri(Se(this,Yt,np),500,{leading:!0}));this.filterObject={},this.suggestions=[],this.selectedItems=[],this.query="",this.showSuggestions=!1,this.highlightedIndex=-1,this.filteredSuggestions=[],this.type="select",this.unstyled=!1,this.tabIndex=0,this.inlineMode=!1}updated(r){U0(r,this)}reset(){j0(this)}firstUpdated(){this.filterObject.state&&(this.selectedItems=Object.keys(this.filterObject.state).map(r=>this.filterObject.state[r]?r:null).filter(r=>!!r),this.filterObject.stringifiedState=this.selectedItems.join(", ")||"",this.requestUpdate())}render(){const r=this.type.includes("multi")?"checkbox":"radio",n=this.filteredSuggestions.length>5?"select-overflow":ve;return V`
656
+ `}}xr=new WeakSet,el=function(r){return wp(r,this)},Np=function(r){return c1(r,this)},customElements.define("eox-itemfilter-results",u1);const f1=`input[type="checkbox"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}input[type="checkbox"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="checkbox"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");}`,p1=`input[type="radio"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}label span { font-size: small;}input[type="radio"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="radio"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");}`;class $p extends it{constructor(){super();nt(this,rr);ui(this,"debouncedInputHandler",eo(Se(this,rr,Fp),500,{leading:!0}));this.filterObject={},this.suggestions=[],this.selectedItems=[],this.query="",this.showSuggestions=!1,this.highlightedIndex=-1,this.filteredSuggestions=[],this.type="select",this.unstyled=!1,this.tabIndex=0,this.inlineMode=!1}updated(r){J0(r,this)}reset(){G0(this)}firstUpdated(){this.filterObject.state&&(this.selectedItems=Object.keys(this.filterObject.state).map(r=>this.filterObject.state[r]?r:null).filter(r=>!!r),this.filterObject.stringifiedState=this.selectedItems.join(", ")||"",this.requestUpdate())}render(){const r=this.type.includes("multi")?"checkbox":"radio",n=this.filteredSuggestions.length>5?"select-overflow":be;return X`
637
657
  <style>
638
- ${!this.unstyled&&yn}
639
- ${!this.unstyled&&nb}
640
- ${!this.unstyled&&ib}
658
+ ${!this.unstyled&&Pn}
659
+ ${!this.unstyled&&f1}
660
+ ${!this.unstyled&&p1}
641
661
  </style>
642
- ${Qe(this.suggestions.length>10,()=>V`<div class="autocomplete-container">
662
+ ${Ge(this.suggestions.length>10,()=>X`<div class="autocomplete-container">
643
663
  <div class="autocomplete-container-wrapper">
644
664
  <input
645
665
  autocomplete="off"
@@ -648,8 +668,8 @@ li.highlighted,
648
668
  type="text"
649
669
  .value=${this.query}
650
670
  placeholder="${this.filterObject.placeholder||""}"
651
- @input=${Se(this,Yt,tp)}
652
- @keydown=${Se(this,Yt,rp)}
671
+ @input=${Se(this,rr,Hp)}
672
+ @keydown=${Se(this,rr,Up)}
653
673
  @blur=${()=>this.showSuggestions=!1}
654
674
  @focus=${()=>this.showSuggestions=!0}
655
675
  />
@@ -657,11 +677,10 @@ li.highlighted,
657
677
  </div>`)}
658
678
  <div class="select-container ${n}">
659
679
  <ul class="${this.type}">
660
- ${this.filteredSuggestions.map(i=>V`
680
+ ${this.filteredSuggestions.map(i=>X`
661
681
  <li
662
682
  data-identifier="${i.toString().toLowerCase()}"
663
683
  data-title="${i}"
664
- class="${this.selectedItems.includes(i)?"highlight-item":""}"
665
684
  >
666
685
  <label>
667
686
  <input
@@ -678,8 +697,8 @@ li.highlighted,
678
697
  `)}
679
698
  </ul>
680
699
  </div>
681
- `}}Yt=new WeakSet,tp=function(r){N0(r,this)},rp=function(r){H0(r,this)},np=function(r){Ef(r,this)},Jn(Rf,"properties",{filterObject:{attribute:!1,type:Object},suggestions:{attribute:!1,type:Array},selectedItems:{state:!0,type:Array},query:{state:!0,type:String},showSuggestions:{state:!0,type:Boolean},highlightedIndex:{state:!0,type:Number},filteredSuggestions:{state:!0,type:Array},type:{attribute:!0,type:String},unstyled:{type:Boolean},tabIndex:{attribute:!1,type:Number},inlineMode:{attribute:"inline-mode",type:Boolean}}),customElements.define("eox-itemfilter-select",Rf),(()=>{var t=Object.defineProperty,e=Math.pow,r=(u,y,x)=>y in u?t(u,y,{enumerable:!0,configurable:!0,writable:!0,value:x}):u[y]=x,n=(u,y,x)=>(r(u,typeof y!="symbol"?y+"":y,x),x),i=(u,y)=>` ${y&&y.length>0?y.map(x=>`<link rel="stylesheet" href="${x}" />`).join(""):""} <style> ${u} </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}",s="pointers-overlap",c="pointers-min-distance",l="pointers-max-distance",f="range-dragging",d="data",g="min",m="max",b="step",A="round",L="type",F="theme",K="rtl",J="btt",Z="disabled",pe="keyboard-disabled",te="mousewheel-disabled",N="slider-width",X="slider-height",ie="slider-radius",we="slider-bg",de="slider-bg-hover",re="slider-bg-fill",Ne="pointer-width",et="pointer-height",I="pointer-radius",E="pointer-bg",_="pointer-bg-hover",R="pointer-bg-focus",P="pointer-shadow",q="pointer-shadow-hover",G="pointer-shadow-focus",ye="pointer-border",_e="pointer-border-hover",Pe="pointer-border-focus",Ce="animate-onclick",Ve="css-links",Le="vertical",Ye="horizontal",le=(u,y,x,w,M)=>{let H=y-u;return H===0?x:(w-x)*(M-u)/H+x},Te=u=>!isNaN(parseFloat(u))&&isFinite(u),oe=(u,y)=>Te(u)?Number(u):y,Ie=(u,y)=>y===0?0:Math.round(u/y)*y,_t=(u,y=1/0)=>{if(y===1/0)return u;let x=e(10,y);return Math.round(u*x)/x},Ee=u=>u==null?!1:typeof u=="boolean"?u:u.trim().toLowerCase()==="true",ta=(u,y)=>{u.dispatchEvent(new CustomEvent("onPointerClicked",{detail:{$pointer:y}}))},qi=(u,y)=>{u.dispatchEvent(new CustomEvent("onMouseDown",{detail:{nativeEvent:y}}))},Gi=(u,y)=>{u.dispatchEvent(new CustomEvent("onMouseUp",{detail:{nativeEvent:y}}))},Ki=(u,y)=>{u.dispatchEvent(new CustomEvent("onKeyDown",{detail:{nativeEvent:y}}))},ra=(u,y)=>{if(!y||y.length<=0)return;let x=y.map(M=>Te(M)?oe(M,M):M),w={values:x||[]};w.value=x[0],w.value0=x[0],w.value1=x[0];for(let M=1;M<x.length;M++)w[`value${M+1}`]=x[M];u.dispatchEvent(new CustomEvent("change",{detail:w}))},Tn=(u,y,x)=>{let w=0,M,H,U,C,k=!1,Q=(W,$e,De,ke,Me,Ae)=>{let Je=w;De!==void 0&&W>De&&(W=De),$e!==void 0&&W<$e&&(W=$e),w=W;let ze=w;return(ke===Le&&Ae||ke===Ye&&Me)&&(ze=100-ze),ke===Le?y.style.top=`${ze}%`:y.style.left=`${ze}%`,Je!==w},se=W=>W===y||y.contains(W),B=(W,$e,De,ke)=>{M=W,H=$e,U=De,C=ke},ce=W=>{k=W,y.classList.toggle("disabled",k),k?y.setAttribute("aria-disabled","true"):y.hasAttribute("aria-disabled")&&y.removeAttribute("aria-disabled")},rt=(W,$e)=>{$e==null?y.removeAttribute(W):y.setAttribute(W,$e)},We=W=>y.getAttribute(W),j=W=>{if(!k){switch(W.key){case"ArrowLeft":{W.preventDefault(),typeof M=="function"&&M(x);break}case"ArrowRight":{W.preventDefault(),typeof H=="function"&&H(x);break}case"ArrowUp":{W.preventDefault(),typeof U=="function"&&U(x);break}case"ArrowDown":{W.preventDefault(),typeof C=="function"&&C(x);break}}Ki(u,W)}},ne=()=>{k||ta(u,y)};return y.className=`pointer pointer-${x}`,y.addEventListener("keydown",j),y.addEventListener("click",ne),{$pointer:y,get percent(){return w},get disabled(){return k},set disabled(W){ce(W)},updatePosition:Q,isClicked:se,setCallbacks:B,setAttr:rt,getAttr:We,destroy:()=>{y.removeEventListener("keydown",j),y.removeEventListener("click",ne),y.remove()}}},na=u=>{if(u==null)return;if(Array.isArray(u))return u;if(u.trim()==="")return;let y=u.split(","),x=[],w=!0;for(let M=0;M<y.length;M++){let H=y[M].trim();H!==""&&(x.push(H),Te(H)||(w=!1))}return w?x.map(M=>Number(M)):x},ia=(u,y)=>y?y.findIndex(x=>x===u||x.toString().trim()===u.toString().trim()):-1,oa=u=>({updatePosition:(y,x,w,M)=>{if(x.length<=0)return;let H=x.length===1,U=x[0],C=x[x.length-1];y===Le?(u.style.removeProperty("width"),u.style.removeProperty("right"),u.style.removeProperty("left"),H?u.style.height=`${U}%`:u.style.height=`${Math.abs(U-C)}%`,M?(u.style.bottom="0%",H?u.style.top="auto":u.style.top=`${Math.min(100-C,100-U)}%`):(u.style.bottom="auto",H?u.style.top="0%":u.style.top=`${Math.min(U,C)}%`)):(u.style.removeProperty("height"),u.style.removeProperty("top"),u.style.removeProperty("bottom"),H?u.style.width=`${U}%`:u.style.width=`${Math.abs(U-C)}%`,w?(u.style.right="0%",H?u.style.left="auto":u.style.left=`${Math.min(100-C,100-U)}%`):(u.style.right="auto",H?u.style.left="0%":u.style.left=`${Math.min(U,C)}%`))}}),Vi="--animate-onclick",sa="--width",In="--height",aa="--panel-bg-border-radius",la="--panel-bg",ca="--panel-bg-hover",ua="--panel-bg-fill",fa="--pointer-width",qr="--pointer-height",Dn="--pointer-border-radius",Yi="--pointer-bg",Ji="--pointer-bg-hover",vt="--pointer-bg-focus",Jt="--pointer-shadow",pa="--pointer-shadow-hover",Gr="--pointer-shadow-focus",Zi="--pointer-border",ha="--pointer-border-hover",da="--pointer-border-focus",vr=(u,y,x)=>{let w=new Map;for(let M of u.attributes){let H=M.nodeName.trim().toLowerCase();if(!y.test(H))continue;let U=H.replace(/\D/g,"").trim(),C=U===""||U==="0"||U==="1"?0:oe(U,0)-1,k=x&&typeof x=="function"?x(M.value):M.value;w.set(C,k)}return w},ga=u=>{if(!u)return null;let y=u.getAttribute(Ve);if(!y)return null;let x=y.split(";"),w=[];for(let M of x)M.trim()!==""&&w.push(M.trim());return w},Kr=[[sa,N,"sliderWidth",null],[In,X,"sliderHeight",null],[aa,ie,"sliderRadius",null],[la,we,"sliderBg",null],[ca,de,"sliderBgHover",null],[ua,re,"sliderBgFill",null],[fa,Ne,"pointer#Width",/^pointer([0-9]*)-width$/],[qr,et,"pointer#Height",/^pointer([0-9]*)-height$/],[Dn,I,"pointer#Radius",/^pointer([0-9]*)-radius$/],[Yi,E,"pointer#Bg",/^pointer([0-9]*)-bg$/],[Ji,_,"pointer#BgHover",/^pointer([0-9]*)-bg-hover$/],[vt,R,"pointer#BgFocus",/^pointer([0-9]*)-bg-focus$/],[Jt,P,"pointer#Shadow",/^pointer([0-9]*)-shadow$/],[pa,q,"pointer#ShadowHover",/^pointer([0-9]*)-shadow-hover$/],[Gr,G,"pointer#ShadowFocus",/^pointer([0-9]*)-shadow-focus$/],[Zi,ye,"pointer#Border",/^pointer([0-9]*)-border$/],[ha,_e,"pointer#BorderHover",/^pointer([0-9]*)-border-hover$/],[da,Pe,"pointer#BorderFocus",/^pointer([0-9]*)-border-focus$/]],mr=(u,y,x)=>{let w=null,M=[],H=new Map,U=(j,ne=y)=>{let W=[...ne.classList];for(let $e of W)$e.startsWith(j)&&y.classList.remove($e)},C=()=>{U("shape");let j=y.querySelectorAll(".pointer");for(let ne of j)U("shape",ne)},k=j=>{w=j,U("theme-"),typeof j=="string"&&y.classList.add(`theme-${j}`)},Q=()=>{if(C(),!(M.length<=0)){y.classList.add("shape",`shape-${M[0]}`);for(let j=1;j<M.length;j++){let ne=M[j];if(!ne)continue;let W=y.querySelector(`.pointer-${j}`);!W||W.classList.add("shape",`shape-${ne}`)}}},se=(j,ne)=>{M[j]=ne,Q()},B=()=>{C();let j=vr(u,/^pointer([0-9]*)-shape$/);if(!(j.size<=0)){for(let ne of j){let W=ne[0];M[W]=ne[1]}Q()}},ce=(j,ne)=>`${j}-${ne}`,rt=(j,ne,W)=>{let $e=x[W];if(!$e)return;let De=W===0?y:$e.$pointer;if(ne==null){H.has(ce(j,W))&&H.delete(ce(j,W)),De.style.removeProperty(j);return}H.set(ce(j,W),ne),De.style.setProperty(j,ne)},We=(j,ne)=>H.get(ce(j,ne));return(()=>{for(let j of Kr){let[ne,W,$e,De]=j;if(De){let Me=vr(u,De);for(let Ae of Me){let Je=Ae[0],ze=Ae[1];rt(ne,ze,Je)}}else{let Me=u.getAttribute(W);rt(ne,Me,0)}let ke=[];if($e.indexOf("#")===-1)ke.push([$e,0]);else{ke.push([$e.replace("#",""),0]),ke.push([$e.replace("#","0"),0]),ke.push([$e.replace("#","1"),0]);for(let Me=1;Me<x.length;Me++)ke.push([$e.replace("#",(Me+1).toString()),Me])}for(let Me of ke)try{let Ae=Me[0],Je=Me[1];Object.prototype.hasOwnProperty.call(u,Ae)||Object.defineProperty(u,Ae,{get(){return We(ne,Je)},set:ze=>{rt(ne,ze,Je)}})}catch(Ae){console.error(Ae)}}k(u.getAttribute(F)),B()})(),{setStyle:rt,getStyle:We,get theme(){return w},set theme(j){k(j)},get pointerShapes(){return M},setPointerShape:se}},Et="animate-on-click",Vr="range-dragging",Rn=(u,y,x,w)=>{let M=[],H=se=>{for(let B of M)B.update&&typeof B.update=="function"&&B.update(se)},U=()=>{for(let se of M)se.destroy&&typeof se.destroy=="function"&&se.destroy()},C=(se,B)=>{for(let ce of M)ce.onAttrChange&&typeof ce.onAttrChange=="function"&&ce.onAttrChange(se,B)},k=se=>{if(se.gettersAndSetters){for(let B of se.gettersAndSetters)if(!(!B.name||!B.attributes))try{Object.prototype.hasOwnProperty.call(u,B.name)||Object.defineProperty(u,B.name,B.attributes)}catch(ce){console.error("defineSettersGetters error:",ce)}}},Q=se=>{var B;if(!se.css)return;let ce=(B=u.shadowRoot)==null?void 0:B.querySelector("style");!ce||(ce.innerHTML+=se.css)};return{init:()=>{if(window.tcRangeSliderPlugins)for(let se of window.tcRangeSliderPlugins){let B=se();M.push(B),B.init&&typeof B.init=="function"&&(B.init(u,y,x,w),k(B),Q(B))}},update:H,onAttrChange:C,destroy:U}},br=10,Xi=20,ya=(u,y)=>{let x=new Map,w=/^value([0-9]*)$/;for(let C of u.attributes){let k=C.nodeName.trim().toLowerCase();if(!w.test(k))continue;let Q=k.replace("value","").trim(),se=Q===""||Q==="0"||Q==="1"?0:oe(Q,0)-1,B=Te(C.value)?oe(C.value,0):C.value;x.set(se,B)}let M=Math.max(...Array.from(x.keys())),H=[];H.push([Tn(u,y,0),x.get(0)]);let U=y;for(let C=1;C<=M;C++){let k=y.cloneNode(!0);U.after(k),U=k,H.push([Tn(u,k,C),x.get(C)])}return H},Qi=(u,y,x,w,M,H,U)=>{try{Object.defineProperty(u,w,{configurable:!0,get(){if(!y)return;let C=y.pointers[x];if(!C)return;let k=y.getTextValue(C.percent);return Te(k)?oe(k,k):k},set:C=>{y.pointers[x]?y==null||y.setValue(C,x):y==null||y.addPointer(C)}}),Object.defineProperty(u,M,{configurable:!0,get(){var C,k;return(k=(C=y==null?void 0:y.pointers[x])==null?void 0:C.getAttr("aria-label"))!=null?k:void 0},set:C=>{!y||y.setAriaLabel(x,C)}}),Object.defineProperty(u,H,{configurable:!0,get(){var C,k;return(k=(C=y==null?void 0:y.styles)==null?void 0:C.pointerShapes[x])!=null?k:null},set:C=>{!y||!y.styles||y.styles.setPointerShape(x,C)}}),Object.defineProperty(u,U,{configurable:!0,get(){var C;return(C=y==null?void 0:y.pointers[x].disabled)!=null?C:!1},set:C=>{if(!y)return;let k=y==null?void 0:y.pointers[x];!k||(k.disabled=C)}})}catch(C){console.error(C)}},va=(u,y)=>{let x=[["value","ariaLabel","pointerShape","pointerDisabled",0],["value0","ariaLabel0","pointerShape0","pointer0Disabled",0],["value1","ariaLabel1","pointerShape1","pointer1Disabled",0]];for(let w=2;w<br;w++)x.push([`value${w}`,`ariaLabel${w}`,`pointer${w}Shape`,`pointer${w}Disabled`,w-1]);for(let w of x)Qi(u,y,w[4],w[0],w[1],w[2],w[3])},eo=(u,y,x)=>{var w;let M=(w=x.shadowRoot)==null?void 0:w.querySelector(".container");if(M)for(let H of u)y?M.prepend(H.$pointer):M.append(H.$pointer)},Yr=(u,y)=>{if(!(!y||u.length<=1)){for(let x of u)x.$pointer.style.zIndex=Xi.toString();y.$pointer.style.zIndex=(Xi*2).toString()}},wr=0,Zt=100,tt=2,to="0.3s",ma=(u,y,x)=>{let w=x.map(h=>h[0]),M=null,H=null,U=null,C=null,k=wr,Q=Zt,se,B,ce=Ye,rt=tt,We=!1,j=!1,ne=!1,W=0,$e=1/0,De=!1,ke,Me,Ae=!1,Je=!1,ze=!1,Mt=to,ro=[],Bn=h=>{Ae||(h.preventDefault&&h.preventDefault(),Lt(h),window.addEventListener("mousemove",Lt),window.addEventListener("mouseup",Jr),qi(u,h))},Jr=h=>{Ae||(ke=void 0,Me=void 0,window.removeEventListener("mousemove",Lt),window.removeEventListener("mouseup",Jr),Mt&&y.classList.add(Et),Gi(u,h))},$a=(h,$)=>{if(w.length<=0)return;if(w.length===1)return w[0].isClicked(h)&&Mt&&y.classList.remove(Et),w[0];let T=Sa(h);if(De){let fe=$,Xe=Sr(fe);Xe!==void 0&&(fe=Ie(fe,Xe)),T?(ke=fe,Me=0,Mt&&y.classList.remove(Et)):ke!==void 0&&(Me=fe-ke,ke=fe)}if(!xa(h)&&!T){for(let fe of w)if(!(!fe.isClicked(h)||fe.disabled))return Mt&&y.classList.remove(Et),fe;for(let fe of w)if(M===fe)return fe}let ee=1/0,be=null;for(let fe of w){if(fe.disabled)continue;let Xe=Math.abs($-fe.percent);Xe<ee&&(ee=Xe,be=fe)}return be},Zr=()=>w.findIndex(h=>M===h&&!h.disabled),Lt=h=>{let $;if(ce===Le){let{height:ee,top:be}=y.getBoundingClientRect(),fe=h.type.indexOf("mouse")!==-1?h.clientY:h.touches[0].clientY;$=Math.min(Math.max(0,fe-be),ee)*100/ee}else{let{width:ee,left:be}=y.getBoundingClientRect(),fe=h.type.indexOf("mouse")!==-1?h.clientX:h.touches[0].clientX;$=Math.min(Math.max(0,fe-be),ee)*100/ee}if((We||j)&&($=100-$),M=$a(h.target,$),M&&Yr(w,M),De&&w.length>1&&Me!==void 0){let ee=w[0],be=w[w.length-1],fe=ee.percent+Me<0,Xe=be.percent+Me>100;if(fe||Xe)return;for(let jt=0;jt<w.length;jt++)He(jt,w[jt].percent+Me);return}let T=Zr();T!==-1&&(He(T,$),M==null||M.$pointer.focus())},Xr=h=>{if(Ae||document.activeElement!==u||M!=null&&M.disabled)return;h.stopPropagation(),h.preventDefault();let $=h.deltaY<0,T=We||j,ee=$?!T:T,be=Zr();be!==-1&&(ee?$r(be,w[be].percent):xr(be,w[be].percent))},no=h=>{Ae||Je||(ce===Le?j?He(h,100):He(h,0):We?xr(h,w[h].percent):$r(h,w[h].percent))},io=h=>{Ae||Je||(ce===Le?j?He(h,0):He(h,100):We?$r(h,w[h].percent):xr(h,w[h].percent))},oo=h=>{Ae||Je||(ce===Le?j?xr(h,w[h].percent):$r(h,w[h].percent):We?He(h,100):He(h,0))},so=h=>{Ae||Je||(ce===Le?j?$r(h,w[h].percent):xr(h,w[h].percent):We?He(h,0):He(h,100))},xa=h=>h.classList.contains("panel"),Sa=h=>h.classList.contains("panel-fill"),$r=(h,$)=>{if($===void 0)return;let T=Sr($);T==null&&(T=1),$-=T,$<0&&($=0),He(h,$)},xr=(h,$)=>{if($===void 0)return;let T=Sr($);T==null&&(T=1),$+=T,$>100&&($=100),He(h,$)},Tt=()=>{!C||C.update({percents:lo(),values:co(),$pointers:Hn(),min:Ar(),max:uo(),data:Un(),step:Nn(),round:en(),type:Wn(),textMin:Qr(),textMax:It(),rightToLeft:mt(),bottomToTop:zn(),pointersOverlap:Er(),pointersMinDistance:tn(),pointersMaxDistance:Fn(),rangeDragging:lt(),disabled:qn(),keyboardDisabled:_r(),mousewheelDisabled:nn()})},ao=()=>{Tt()},Aa=h=>{if(!(ne||w.length<=1||Q===k))if(h===0){let $=$e*100/(Q-k);return Math.max(0,w[h+1].percent-$)}else{let $=W*100/(Q-k);return Math.min(w[h-1].percent+$,100)}},_a=h=>{if(!(ne||w.length<=1||Q===k))if(h===w.length-1){let $=$e*100/(Q-k);return Math.min(w[h-1].percent+$,100)}else{let $=W*100/(Q-k);return Math.max(0,w[h+1].percent-$)}},Sr=h=>{let $;if(typeof se=="function"){let T=le(0,100,k,Q,h);$=se(T,h)}else $=se;if(Te($)){let T=Q-k;return $=T===0?0:$*100/T,$}},Xt=h=>{if(h===void 0)return;let $=le(0,100,k,Q,h);return B!==void 0?B[Math.round($)]:_t($,rt)},Qr=()=>B!==void 0?B[k]:k,It=()=>B!==void 0?B[Q]:Q,Nn=()=>se,Qt=h=>{var $;return h<=0||ne?Qr():($=Xt(w[h-1].percent))!=null?$:""},Pt=h=>{var $;return w.length<=1||h>=w.length-1||ne?It():($=Xt(w[h+1].percent))!=null?$:""},lo=()=>w.map(h=>h.percent),co=()=>w.map(h=>Xt(h.percent)),Hn=()=>w.map(h=>h.$pointer),Ar=()=>k,uo=()=>Q,Un=()=>B,Wn=()=>ce,en=()=>rt,tn=()=>W,Fn=()=>$e,rn=h=>ro[h],mt=()=>We,zn=()=>j,qn=()=>Ae,_r=()=>Je,nn=()=>ze,Er=()=>ne,lt=()=>De,He=(h,$)=>{if($===void 0)return;let T=Sr($);T!==void 0&&($=Ie($,T));let ee=w[h];if(!ee)return;let be=ee.updatePosition($,Aa(h),_a(h),ce,We,j);H==null||H.updatePosition(ce,w.map(fe=>fe.percent),We,j),Tt();for(let fe of w){let Xe=Xt(fe.percent);Xe!==void 0&&(fe.setAttr("aria-valuenow",Xe.toString()),fe.setAttr("aria-valuetext",Xe.toString()))}Gn(),be&&ra(u,w.map(fe=>Xt(fe.percent)))},ft=()=>{for(let h=0;h<w.length;h++)He(h,w[h].percent)},fo=(h,$)=>{k=B!==void 0?0:oe(h,wr),Q=B!==void 0?B.length-1:oe($,Zt),Dt(k),Rt(Q)},Gn=()=>{var h,$;for(let T=0;T<w.length;T++){let ee=w[T];ee.setAttr("aria-valuemin",((h=Qt(T))!=null?h:"").toString()),ee.setAttr("aria-valuemax",(($=Pt(T))!=null?$:"").toString())}},Dt=h=>{k=oe(h,wr),k>Q&&(Q=k+Zt),ft()},Rt=h=>{Q=oe(h,Zt),Q<k&&(Q=k+Zt),ft()},on=h=>{ne=!0;for(let $=0;$<h.length;$++)sn(h[$],$);ne=!1;for(let $=0;$<h.length;$++)sn(h[$],$)},sn=(h,$)=>{let T;B!==void 0?(T=h==null?0:ia(h,B),T===-1&&(T=0)):(T=oe(h,k),T<k&&(T=k),T>Q&&(T=Q));let ee=le(k,Q,0,100,T);He($,ee)},an=h=>{if(h==null){se=void 0;return}if(typeof h=="function"){se=h,ft();return}if(Te(h)){se=oe(h,1);let $=Math.abs(Q-k);se>$&&(se=void 0),ft();return}se=void 0},Kn=h=>{ne=h,ft()},Vn=h=>{(!Te(h)||h<0)&&(h=0),W=h},er=h=>{(!Te(h)||h<0)&&(h=1/0),$e=h},Yn=h=>{Ae=h,y.classList.toggle("disabled",Ae),Ae?y.setAttribute("aria-disabled","true"):y.hasAttribute("aria-disabled")&&y.removeAttribute("aria-disabled")},po=h=>{Je=h},a=h=>{ze=h,ze?document.removeEventListener("wheel",Xr):document.addEventListener("wheel",Xr,{passive:!1})},p=h=>{if(h==null){B=void 0;return}if(B=na(h),B===void 0||B.length<=0){B=void 0;return}Dt(0),Rt(B.length-1),se===void 0&&an(1)},v=h=>{var $;typeof h=="string"?ce=h.trim().toLowerCase()===Le?Le:Ye:ce=Ye;let T=($=u.shadowRoot)==null?void 0:$.querySelector(".range-slider-box");if(!T)return;T.className=`range-slider-box type-${ce}`,ft();let ee=ce===Le?"vertical":"horizontal";for(let be of w)be.setAttr("aria-orientation",ee)},S=h=>{We=h,w.length>1&&eo(w,We,u),ft(),Tt()},D=h=>{j=h,w.length>1&&eo(w,j,u),ft(),Tt()},O=h=>{rt=oe(h,tt),rt<0&&(rt=tt),Tt()},Y=h=>{h==null||h.toString().trim().toLowerCase()==="false"?(Mt=void 0,y.style.removeProperty(Vi),y.classList.remove(Et)):(Mt=h.toString(),y.style.setProperty(Vi,Mt),y.classList.add(Et))},ue=(h,$)=>{let T=w[h];!T||(T.setAttr("aria-label",$),ro[h]=$)},xe=h=>{if(ke=void 0,w.length<=1){De=!1,y.classList.remove(Vr);return}De=h,y.classList.toggle(Vr,De)},Re=()=>{Yn(Ee(u.getAttribute(Z))),Je=Ee(u.getAttribute(pe)),ze=Ee(u.getAttribute(te));let h=vr(u,/^pointer([0-9]*)-disabled$/,$=>Ee($));for(let $ of h){let T=$[0];!w[T]||(w[T].disabled=$[1])}},qe=()=>{let h=vr(u,/^aria-label([0-9]*)$/);for(let $ of h){let T=$[0];ue(T,$[1])}},Ze=h=>{let $=w.length,T=w[$-1].$pointer,ee=T.cloneNode(!0);T.after(ee);let be=Tn(u,ee,$);return be.setCallbacks(no,io,oo,so),w.push(be),sn(h,$),ft(),Tt(),$},je=()=>{let h=w.length,$=w[h-1];return $?($.destroy(),w.pop(),w.length<=1&&xe(!1),ft(),Tt(),h-1):-1};return(()=>{var h,$;for(let ee of w)ee.setCallbacks(no,io,oo,so);let T=(h=u.shadowRoot)==null?void 0:h.querySelector(".panel-fill");T&&(H=oa(T)),v(u.getAttribute(L)),S(Ee(u.getAttribute(K))),D(Ee(u.getAttribute(J))),fo(u.getAttribute(g),u.getAttribute(m)),an(u.getAttribute(b)),p(u.getAttribute(d)),on(x.map(ee=>ee[1])),Kn(Ee(u.getAttribute(s))),Vn(oe(u.getAttribute(c),0)),er(oe(u.getAttribute(l),1/0)),xe(Ee(u.getAttribute(f))),O(oe(u.getAttribute(A),tt)),Re(),qe(),U=mr(u,y,w),Y(($=u.getAttribute(Ce))!=null?$:to),y.addEventListener("mousedown",Bn),y.addEventListener("mouseup",Jr),y.addEventListener("touchmove",Lt),y.addEventListener("touchstart",Lt),ze||document.addEventListener("wheel",Xr,{passive:!1}),C=Rn(u,ao,{setValues:on,setMin:Dt,setMax:Rt,setStep:an,setPointersOverlap:Kn,setPointersMinDistance:Vn,setPointersMaxDistance:er,setDisabled:Yn,setType:v,setRightToLeft:S,setBottomToTop:D,setRound:O,setKeyboardDisabled:po,setMousewheelDisabled:a,setRangeDragging:xe,setData:p},{getPercents:lo,getValues:co,getPointerElements:Hn,getMin:Ar,getMax:uo,getStep:Nn,getData:Un,getType:Wn,getRound:en,getTextMin:Qr,getTextMax:It,isRightToLeft:mt,isBottomToTop:zn,isDisabled:qn,isKeyboardDisabled:_r,isMousewheelDisabled:nn,isPointersOverlap:Er,isRangeDraggingEnabled:lt,getPointersMinDistance:tn,getPointersMaxDistance:Fn}),C.init()})(),{get pointers(){return w},get styles(){return U},get pluginsManager(){return C},get min(){return Qr()},get max(){return It()},get step(){return Nn()},get pointersOverlap(){return Er()},set pointersOverlap(h){Kn(h)},get pointersMinDistance(){return tn()},set pointersMinDistance(h){Vn(h)},get pointersMaxDistance(){return Fn()},set pointersMaxDistance(h){er(h)},get disabled(){return qn()},set disabled(h){Yn(h)},get data(){return Un()},get type(){return Wn()},set type(h){v(h)},get rightToLeft(){return mt()},set rightToLeft(h){S(h)},get bottomToTop(){return zn()},set bottomToTop(h){D(h)},get round(){return en()},set round(h){O(h)},get animateOnClick(){return Mt},set animateOnClick(h){Y(h)},get keyboardDisabled(){return _r()},set keyboardDisabled(h){po(h)},get mousewheelDisabled(){return nn()},set mousewheelDisabled(h){a(h)},get rangeDragging(){return lt()},set rangeDragging(h){xe(h)},setMin:Dt,setMax:Rt,setValue:sn,setStep:an,setData:p,getTextValue:Xt,setAriaLabel:ue,getAriaLabel:rn,addPointer:Ze,removePointer:je,destroy:()=>{y.removeEventListener("mousedown",Bn),y.removeEventListener("mouseup",Jr),y.removeEventListener("touchmove",Lt),y.removeEventListener("touchstart",Lt),document.removeEventListener("wheel",Xr);for(let h of w)h.destroy();C==null||C.destroy()}}},ba=(u,y,x)=>{let w=Kr.find(([C,k,Q,se])=>k.replace("#","")===y.replace(/\d+/g,""));if(w&&u.styles){let[C,k,Q,se]=w,B=y.replace(/\D/g,"").trim(),ce=B===""||B==="0"||B==="1"?0:oe(B,0)-1;u.styles.setStyle(C,x,ce);return}switch(u&&u.pluginsManager&&u.pluginsManager.onAttrChange(y,x),y){case g:{u.setMin(x);break}case m:{u.setMax(x);break}case b:{u.setStep(x);break}case s:{u.pointersOverlap=Ee(x);break}case c:{u.pointersMinDistance=oe(x,0);break}case f:{u.rangeDragging=Ee(x);break}case l:{u.pointersMaxDistance=oe(x,1/0);break}case Z:{u.disabled=Ee(x);break}case pe:{u.keyboardDisabled=Ee(x);break}case te:{u.mousewheelDisabled=Ee(x);break}case d:{u.setData(x);break}case L:{u.type=x;break}case K:{u.rightToLeft=Ee(x);break}case J:{u.bottomToTop=Ee(x);break}case A:{u.round=oe(x,tt);break}case F:{u.styles&&(u.styles.theme=x);break}case Ce:{u.animateOnClick=x;break}}let M=null;if(/^value([0-9]*)$/.test(y)&&(M="value"),/^pointer([0-9]*)-disabled$/.test(y)&&(M="pointer-disabled"),/^aria-label([0-9]*)$/.test(y)&&(M="aria-label"),/^pointer([0-9]*)-shape$/.test(y)&&(M="pointer-shape"),!M)return;let H=y.replace(/\D/g,"").trim(),U=H===""||H==="0"||H==="1"?0:oe(H,0)-1;switch(M){case"value":{u.setValue(x,U);break}case"pointer-disabled":{let C=u==null?void 0:u.pointers[U];if(!C)return;C.disabled=Ee(x);break}case"aria-label":{u.setAriaLabel(U,x);break}case"pointer-shape":{u.styles&&u.styles.setPointerShape(U,x);break}}},wa=class extends HTMLElement{constructor(){super(),n(this,"slider"),n(this,"_externalCSSList",[]),n(this,"_observer",null),this.attachShadow({mode:"open"})}set step(u){this.slider&&this.slider.setStep(u)}get step(){var u;return(u=this.slider)==null?void 0:u.step}set disabled(u){this.slider&&(this.slider.disabled=u)}get disabled(){var u,y;return(y=(u=this.slider)==null?void 0:u.disabled)!=null?y:!1}set data(u){var y;(y=this.slider)==null||y.setData(u)}get data(){var u;return(u=this.slider)==null?void 0:u.data}set min(u){var y;(y=this.slider)==null||y.setMin(u)}get min(){var u;return(u=this.slider)==null?void 0:u.min}set max(u){var y;(y=this.slider)==null||y.setMax(u)}get max(){var u;return(u=this.slider)==null?void 0:u.max}set round(u){!this.slider||(this.slider.round=u)}get round(){var u,y;return(y=(u=this.slider)==null?void 0:u.round)!=null?y:tt}set type(u){!this.slider||(this.slider.type=u??Ye)}get type(){var u;return((u=this.slider)==null?void 0:u.type)||Ye}set pointersOverlap(u){!this.slider||(this.slider.pointersOverlap=u)}get pointersOverlap(){var u,y;return(y=(u=this.slider)==null?void 0:u.pointersOverlap)!=null?y:!1}set pointersMinDistance(u){!this.slider||(this.slider.pointersMinDistance=u)}get pointersMinDistance(){var u,y;return(y=(u=this.slider)==null?void 0:u.pointersMinDistance)!=null?y:0}set pointersMaxDistance(u){!this.slider||(this.slider.pointersMaxDistance=u)}get pointersMaxDistance(){var u,y;return(y=(u=this.slider)==null?void 0:u.pointersMaxDistance)!=null?y:1/0}set theme(u){!this.slider||!this.slider.styles||(this.slider.styles.theme=u)}get theme(){var u,y,x;return(x=(y=(u=this.slider)==null?void 0:u.styles)==null?void 0:y.theme)!=null?x:null}set rtl(u){!this.slider||(this.slider.rightToLeft=u)}get rtl(){var u,y;return(y=(u=this.slider)==null?void 0:u.rightToLeft)!=null?y:!1}set btt(u){!this.slider||(this.slider.bottomToTop=u)}get btt(){var u,y;return(y=(u=this.slider)==null?void 0:u.bottomToTop)!=null?y:!1}set keyboardDisabled(u){!this.slider||(this.slider.keyboardDisabled=u)}get keyboardDisabled(){var u,y;return(y=(u=this.slider)==null?void 0:u.keyboardDisabled)!=null?y:!1}set mousewheelDisabled(u){!this.slider||(this.slider.mousewheelDisabled=u)}get mousewheelDisabled(){var u,y;return(y=(u=this.slider)==null?void 0:u.mousewheelDisabled)!=null?y:!1}set animateOnClick(u){!this.slider||(this.slider.animateOnClick=u)}get animateOnClick(){var u;return(u=this.slider)==null?void 0:u.animateOnClick}get rangeDragging(){var u,y;return(y=(u=this.slider)==null?void 0:u.rangeDragging)!=null?y:!1}set rangeDragging(u){this.slider&&(this.slider.rangeDragging=Ee(u))}get externalCSSList(){return this._externalCSSList}addPointer(u){var y,x;if(!this.slider)return;let w=(x=(y=this.slider)==null?void 0:y.addPointer(u))!=null?x:0;Qi(this,this.slider,w,`value${w+1}`,`ariaLabel${w+1}`,`pointerShape${w+1}`,`pointer${w+1}Disabled`)}removePointer(){var u;!this.slider||(u=this.slider)==null||u.removePointer()}addCSS(u){if(!this.shadowRoot)return;let y=document.createElement("style");y.textContent=u,this.shadowRoot.appendChild(y)}connectedCallback(){var u,y;if(!this.shadowRoot)return;this._externalCSSList=ga(this),this.shadowRoot.innerHTML=i(o,this._externalCSSList);let x=(u=this.shadowRoot)==null?void 0:u.querySelector(".pointer");if(!x)return;let w=(y=this.shadowRoot)==null?void 0:y.getElementById("range-slider");if(!w)return;let M=ya(this,x);this.slider=ma(this,w,M),va(this,this.slider),this._observer=new MutationObserver(H=>{H.forEach(U=>{var C;if(!this.slider||U.type!=="attributes")return;let k=U.attributeName;!k||ba(this.slider,k,(C=this.getAttribute(k))!=null?C:"")})}),this._observer.observe(this,{attributes:!0})}disconnectedCallback(){this._observer&&this._observer.disconnect(),this.slider&&this.slider.destroy()}},jn=wa;window.tcRangeSlider=jn,customElements.get("toolcool-range-slider")||customElements.define("toolcool-range-slider",jn),customElements.get("tc-range-slider")||customElements.define("tc-range-slider",class extends jn{})})();class jf extends it{constructor(){super();nt(this,gr);this.filterObject={},this.tabIndex=0,this.inputHandler=Se(this,gr,ip).bind(this),this.debouncedInputHandler=Ri(this.inputHandler,0,{leading:!0})}reset(){I0(this)}createRenderRoot(){return this}render(){return Qe(this.filterObject,()=>V`
682
- ${Se(this,gr,ka).call(this,"min","before")}
700
+ `}}rr=new WeakSet,Hp=function(r){K0(r,this)},Up=function(r){Y0(r,this)},Fp=function(r){fp(r,this)},ui($p,"properties",{filterObject:{attribute:!1,type:Object},suggestions:{attribute:!1,type:Array},selectedItems:{state:!0,type:Array},query:{state:!0,type:String},showSuggestions:{state:!0,type:Boolean},highlightedIndex:{state:!0,type:Number},filteredSuggestions:{state:!0,type:Array},type:{attribute:!0,type:String},unstyled:{type:Boolean},tabIndex:{attribute:!1,type:Number},inlineMode:{attribute:"inline-mode",type:Boolean}}),customElements.define("eox-itemfilter-select",$p),(()=>{var t=Object.defineProperty,e=Math.pow,r=(f,y,x)=>y in f?t(f,y,{enumerable:!0,configurable:!0,writable:!0,value:x}):f[y]=x,n=(f,y,x)=>(r(f,typeof y!="symbol"?y+"":y,x),x),i=(f,y)=>` ${y&&y.length>0?y.map(x=>`<link rel="stylesheet" href="${x}" />`).join(""):""} <style> ${f} </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}",s="pointers-overlap",l="pointers-min-distance",a="pointers-max-distance",u="range-dragging",h="data",d="min",m="max",v="step",S="round",_="type",I="theme",j="rtl",H="btt",W="disabled",Z="keyboard-disabled",z="mousewheel-disabled",U="slider-width",ee="slider-height",oe="slider-radius",we="slider-bg",de="slider-bg-hover",ne="slider-bg-fill",Ne="pointer-width",et="pointer-height",R="pointer-radius",M="pointer-bg",E="pointer-bg-hover",B="pointer-bg-focus",O="pointer-shadow",Y="pointer-shadow-hover",J="pointer-shadow-focus",ye="pointer-border",_e="pointer-border-hover",Pe="pointer-border-focus",Ce="animate-onclick",Ye="css-links",Le="vertical",Je="horizontal",ce=(f,y,x,w,P)=>{let q=y-f;return q===0?x:(w-x)*(P-f)/q+x},Te=f=>!isNaN(parseFloat(f))&&isFinite(f),se=(f,y)=>Te(f)?Number(f):y,Re=(f,y)=>y===0?0:Math.round(f/y)*y,Ot=(f,y=1/0)=>{if(y===1/0)return f;let x=e(10,y);return Math.round(f*x)/x},Ee=f=>f==null?!1:typeof f=="boolean"?f:f.trim().toLowerCase()==="true",_a=(f,y)=>{f.dispatchEvent(new CustomEvent("onPointerClicked",{detail:{$pointer:y}}))},co=(f,y)=>{f.dispatchEvent(new CustomEvent("onMouseDown",{detail:{nativeEvent:y}}))},uo=(f,y)=>{f.dispatchEvent(new CustomEvent("onMouseUp",{detail:{nativeEvent:y}}))},fo=(f,y)=>{f.dispatchEvent(new CustomEvent("onKeyDown",{detail:{nativeEvent:y}}))},Ea=(f,y)=>{if(!y||y.length<=0)return;let x=y.map(P=>Te(P)?se(P,P):P),w={values:x||[]};w.value=x[0],w.value0=x[0],w.value1=x[0];for(let P=1;P<x.length;P++)w[`value${P+1}`]=x[P];f.dispatchEvent(new CustomEvent("change",{detail:w}))},Vn=(f,y,x)=>{let w=0,P,q,G,k,L=!1,te=(V,$e,De,ke,Me,Ae)=>{let Xe=w;De!==void 0&&V>De&&(V=De),$e!==void 0&&V<$e&&(V=$e),w=V;let ze=w;return(ke===Le&&Ae||ke===Je&&Me)&&(ze=100-ze),ke===Le?y.style.top=`${ze}%`:y.style.left=`${ze}%`,Xe!==w},ae=V=>V===y||y.contains(V),F=(V,$e,De,ke)=>{P=V,q=$e,G=De,k=ke},ue=V=>{L=V,y.classList.toggle("disabled",L),L?y.setAttribute("aria-disabled","true"):y.hasAttribute("aria-disabled")&&y.removeAttribute("aria-disabled")},rt=(V,$e)=>{$e==null?y.removeAttribute(V):y.setAttribute(V,$e)},Fe=V=>y.getAttribute(V),N=V=>{if(!L){switch(V.key){case"ArrowLeft":{V.preventDefault(),typeof P=="function"&&P(x);break}case"ArrowRight":{V.preventDefault(),typeof q=="function"&&q(x);break}case"ArrowUp":{V.preventDefault(),typeof G=="function"&&G(x);break}case"ArrowDown":{V.preventDefault(),typeof k=="function"&&k(x);break}}fo(f,V)}},ie=()=>{L||_a(f,y)};return y.className=`pointer pointer-${x}`,y.addEventListener("keydown",N),y.addEventListener("click",ie),{$pointer:y,get percent(){return w},get disabled(){return L},set disabled(V){ue(V)},updatePosition:te,isClicked:ae,setCallbacks:F,setAttr:rt,getAttr:Fe,destroy:()=>{y.removeEventListener("keydown",N),y.removeEventListener("click",ie),y.remove()}}},Ma=f=>{if(f==null)return;if(Array.isArray(f))return f;if(f.trim()==="")return;let y=f.split(","),x=[],w=!0;for(let P=0;P<y.length;P++){let q=y[P].trim();q!==""&&(x.push(q),Te(q)||(w=!1))}return w?x.map(P=>Number(P)):x},Pa=(f,y)=>y?y.findIndex(x=>x===f||x.toString().trim()===f.toString().trim()):-1,Oa=f=>({updatePosition:(y,x,w,P)=>{if(x.length<=0)return;let q=x.length===1,G=x[0],k=x[x.length-1];y===Le?(f.style.removeProperty("width"),f.style.removeProperty("right"),f.style.removeProperty("left"),q?f.style.height=`${G}%`:f.style.height=`${Math.abs(G-k)}%`,P?(f.style.bottom="0%",q?f.style.top="auto":f.style.top=`${Math.min(100-k,100-G)}%`):(f.style.bottom="auto",q?f.style.top="0%":f.style.top=`${Math.min(G,k)}%`)):(f.style.removeProperty("height"),f.style.removeProperty("top"),f.style.removeProperty("bottom"),q?f.style.width=`${G}%`:f.style.width=`${Math.abs(G-k)}%`,w?(f.style.right="0%",q?f.style.left="auto":f.style.left=`${Math.min(100-k,100-G)}%`):(f.style.right="auto",q?f.style.left="0%":f.style.left=`${Math.min(G,k)}%`))}}),po="--animate-onclick",Ca="--width",Kn="--height",ka="--panel-bg-border-radius",La="--panel-bg",Ta="--panel-bg-hover",Ra="--panel-bg-fill",Da="--pointer-width",nn="--pointer-height",Yn="--pointer-border-radius",ho="--pointer-bg",go="--pointer-bg-hover",wt="--pointer-bg-focus",nr="--pointer-shadow",Ia="--pointer-shadow-hover",on="--pointer-shadow-focus",yo="--pointer-border",ja="--pointer-border-hover",Ba="--pointer-border-focus",_r=(f,y,x)=>{let w=new Map;for(let P of f.attributes){let q=P.nodeName.trim().toLowerCase();if(!y.test(q))continue;let G=q.replace(/\D/g,"").trim(),k=G===""||G==="0"||G==="1"?0:se(G,0)-1,L=x&&typeof x=="function"?x(P.value):P.value;w.set(k,L)}return w},Na=f=>{if(!f)return null;let y=f.getAttribute(Ye);if(!y)return null;let x=y.split(";"),w=[];for(let P of x)P.trim()!==""&&w.push(P.trim());return w},sn=[[Ca,U,"sliderWidth",null],[Kn,ee,"sliderHeight",null],[ka,oe,"sliderRadius",null],[La,we,"sliderBg",null],[Ta,de,"sliderBgHover",null],[Ra,ne,"sliderBgFill",null],[Da,Ne,"pointer#Width",/^pointer([0-9]*)-width$/],[nn,et,"pointer#Height",/^pointer([0-9]*)-height$/],[Yn,R,"pointer#Radius",/^pointer([0-9]*)-radius$/],[ho,M,"pointer#Bg",/^pointer([0-9]*)-bg$/],[go,E,"pointer#BgHover",/^pointer([0-9]*)-bg-hover$/],[wt,B,"pointer#BgFocus",/^pointer([0-9]*)-bg-focus$/],[nr,O,"pointer#Shadow",/^pointer([0-9]*)-shadow$/],[Ia,Y,"pointer#ShadowHover",/^pointer([0-9]*)-shadow-hover$/],[on,J,"pointer#ShadowFocus",/^pointer([0-9]*)-shadow-focus$/],[yo,ye,"pointer#Border",/^pointer([0-9]*)-border$/],[ja,_e,"pointer#BorderHover",/^pointer([0-9]*)-border-hover$/],[Ba,Pe,"pointer#BorderFocus",/^pointer([0-9]*)-border-focus$/]],Er=(f,y,x)=>{let w=null,P=[],q=new Map,G=(N,ie=y)=>{let V=[...ie.classList];for(let $e of V)$e.startsWith(N)&&y.classList.remove($e)},k=()=>{G("shape");let N=y.querySelectorAll(".pointer");for(let ie of N)G("shape",ie)},L=N=>{w=N,G("theme-"),typeof N=="string"&&y.classList.add(`theme-${N}`)},te=()=>{if(k(),!(P.length<=0)){y.classList.add("shape",`shape-${P[0]}`);for(let N=1;N<P.length;N++){let ie=P[N];if(!ie)continue;let V=y.querySelector(`.pointer-${N}`);!V||V.classList.add("shape",`shape-${ie}`)}}},ae=(N,ie)=>{P[N]=ie,te()},F=()=>{k();let N=_r(f,/^pointer([0-9]*)-shape$/);if(!(N.size<=0)){for(let ie of N){let V=ie[0];P[V]=ie[1]}te()}},ue=(N,ie)=>`${N}-${ie}`,rt=(N,ie,V)=>{let $e=x[V];if(!$e)return;let De=V===0?y:$e.$pointer;if(ie==null){q.has(ue(N,V))&&q.delete(ue(N,V)),De.style.removeProperty(N);return}q.set(ue(N,V),ie),De.style.setProperty(N,ie)},Fe=(N,ie)=>q.get(ue(N,ie));return(()=>{for(let N of sn){let[ie,V,$e,De]=N;if(De){let Me=_r(f,De);for(let Ae of Me){let Xe=Ae[0],ze=Ae[1];rt(ie,ze,Xe)}}else{let Me=f.getAttribute(V);rt(ie,Me,0)}let ke=[];if($e.indexOf("#")===-1)ke.push([$e,0]);else{ke.push([$e.replace("#",""),0]),ke.push([$e.replace("#","0"),0]),ke.push([$e.replace("#","1"),0]);for(let Me=1;Me<x.length;Me++)ke.push([$e.replace("#",(Me+1).toString()),Me])}for(let Me of ke)try{let Ae=Me[0],Xe=Me[1];Object.prototype.hasOwnProperty.call(f,Ae)||Object.defineProperty(f,Ae,{get(){return Fe(ie,Xe)},set:ze=>{rt(ie,ze,Xe)}})}catch(Ae){console.error(Ae)}}L(f.getAttribute(I)),F()})(),{setStyle:rt,getStyle:Fe,get theme(){return w},set theme(N){L(N)},get pointerShapes(){return P},setPointerShape:ae}},Ct="animate-on-click",an="range-dragging",Jn=(f,y,x,w)=>{let P=[],q=ae=>{for(let F of P)F.update&&typeof F.update=="function"&&F.update(ae)},G=()=>{for(let ae of P)ae.destroy&&typeof ae.destroy=="function"&&ae.destroy()},k=(ae,F)=>{for(let ue of P)ue.onAttrChange&&typeof ue.onAttrChange=="function"&&ue.onAttrChange(ae,F)},L=ae=>{if(ae.gettersAndSetters){for(let F of ae.gettersAndSetters)if(!(!F.name||!F.attributes))try{Object.prototype.hasOwnProperty.call(f,F.name)||Object.defineProperty(f,F.name,F.attributes)}catch(ue){console.error("defineSettersGetters error:",ue)}}},te=ae=>{var F;if(!ae.css)return;let ue=(F=f.shadowRoot)==null?void 0:F.querySelector("style");!ue||(ue.innerHTML+=ae.css)};return{init:()=>{if(window.tcRangeSliderPlugins)for(let ae of window.tcRangeSliderPlugins){let F=ae();P.push(F),F.init&&typeof F.init=="function"&&(F.init(f,y,x,w),L(F),te(F))}},update:q,onAttrChange:k,destroy:G}},Mr=10,vo=20,Ha=(f,y)=>{let x=new Map,w=/^value([0-9]*)$/;for(let k of f.attributes){let L=k.nodeName.trim().toLowerCase();if(!w.test(L))continue;let te=L.replace("value","").trim(),ae=te===""||te==="0"||te==="1"?0:se(te,0)-1,F=Te(k.value)?se(k.value,0):k.value;x.set(ae,F)}let P=Math.max(...Array.from(x.keys())),q=[];q.push([Vn(f,y,0),x.get(0)]);let G=y;for(let k=1;k<=P;k++){let L=y.cloneNode(!0);G.after(L),G=L,q.push([Vn(f,L,k),x.get(k)])}return q},mo=(f,y,x,w,P,q,G)=>{try{Object.defineProperty(f,w,{configurable:!0,get(){if(!y)return;let k=y.pointers[x];if(!k)return;let L=y.getTextValue(k.percent);return Te(L)?se(L,L):L},set:k=>{y.pointers[x]?y==null||y.setValue(k,x):y==null||y.addPointer(k)}}),Object.defineProperty(f,P,{configurable:!0,get(){var k,L;return(L=(k=y==null?void 0:y.pointers[x])==null?void 0:k.getAttr("aria-label"))!=null?L:void 0},set:k=>{!y||y.setAriaLabel(x,k)}}),Object.defineProperty(f,q,{configurable:!0,get(){var k,L;return(L=(k=y==null?void 0:y.styles)==null?void 0:k.pointerShapes[x])!=null?L:null},set:k=>{!y||!y.styles||y.styles.setPointerShape(x,k)}}),Object.defineProperty(f,G,{configurable:!0,get(){var k;return(k=y==null?void 0:y.pointers[x].disabled)!=null?k:!1},set:k=>{if(!y)return;let L=y==null?void 0:y.pointers[x];!L||(L.disabled=k)}})}catch(k){console.error(k)}},Ua=(f,y)=>{let x=[["value","ariaLabel","pointerShape","pointerDisabled",0],["value0","ariaLabel0","pointerShape0","pointer0Disabled",0],["value1","ariaLabel1","pointerShape1","pointer1Disabled",0]];for(let w=2;w<Mr;w++)x.push([`value${w}`,`ariaLabel${w}`,`pointer${w}Shape`,`pointer${w}Disabled`,w-1]);for(let w of x)mo(f,y,w[4],w[0],w[1],w[2],w[3])},bo=(f,y,x)=>{var w;let P=(w=x.shadowRoot)==null?void 0:w.querySelector(".container");if(P)for(let q of f)y?P.prepend(q.$pointer):P.append(q.$pointer)},ln=(f,y)=>{if(!(!y||f.length<=1)){for(let x of f)x.$pointer.style.zIndex=vo.toString();y.$pointer.style.zIndex=(vo*2).toString()}},Pr=0,ir=100,tt=2,wo="0.3s",Fa=(f,y,x)=>{let w=x.map(g=>g[0]),P=null,q=null,G=null,k=null,L=Pr,te=ir,ae,F,ue=Je,rt=tt,Fe=!1,N=!1,ie=!1,V=0,$e=1/0,De=!1,ke,Me,Ae=!1,Xe=!1,ze=!1,kt=wo,$o=[],Zn=g=>{Ae||(g.preventDefault&&g.preventDefault(),jt(g),window.addEventListener("mousemove",jt),window.addEventListener("mouseup",cn),co(f,g))},cn=g=>{Ae||(ke=void 0,Me=void 0,window.removeEventListener("mousemove",jt),window.removeEventListener("mouseup",cn),kt&&y.classList.add(Ct),uo(f,g))},qa=(g,$)=>{if(w.length<=0)return;if(w.length===1)return w[0].isClicked(g)&&kt&&y.classList.remove(Ct),w[0];let T=Va(g);if(De){let pe=$,Qe=kr(pe);Qe!==void 0&&(pe=Re(pe,Qe)),T?(ke=pe,Me=0,kt&&y.classList.remove(Ct)):ke!==void 0&&(Me=pe-ke,ke=pe)}if(!Ga(g)&&!T){for(let pe of w)if(!(!pe.isClicked(g)||pe.disabled))return kt&&y.classList.remove(Ct),pe;for(let pe of w)if(P===pe)return pe}let re=1/0,me=null;for(let pe of w){if(pe.disabled)continue;let Qe=Math.abs($-pe.percent);Qe<re&&(re=Qe,me=pe)}return me},un=()=>w.findIndex(g=>P===g&&!g.disabled),jt=g=>{let $;if(ue===Le){let{height:re,top:me}=y.getBoundingClientRect(),pe=g.type.indexOf("mouse")!==-1?g.clientY:g.touches[0].clientY;$=Math.min(Math.max(0,pe-me),re)*100/re}else{let{width:re,left:me}=y.getBoundingClientRect(),pe=g.type.indexOf("mouse")!==-1?g.clientX:g.touches[0].clientX;$=Math.min(Math.max(0,pe-me),re)*100/re}if((Fe||N)&&($=100-$),P=qa(g.target,$),P&&ln(w,P),De&&w.length>1&&Me!==void 0){let re=w[0],me=w[w.length-1],pe=re.percent+Me<0,Qe=me.percent+Me>100;if(pe||Qe)return;for(let Ft=0;Ft<w.length;Ft++)He(Ft,w[Ft].percent+Me);return}let T=un();T!==-1&&(He(T,$),P==null||P.$pointer.focus())},fn=g=>{if(Ae||document.activeElement!==f||P!=null&&P.disabled)return;g.stopPropagation(),g.preventDefault();let $=g.deltaY<0,T=Fe||N,re=$?!T:T,me=un();me!==-1&&(re?Or(me,w[me].percent):Cr(me,w[me].percent))},xo=g=>{Ae||Xe||(ue===Le?N?He(g,100):He(g,0):Fe?Cr(g,w[g].percent):Or(g,w[g].percent))},So=g=>{Ae||Xe||(ue===Le?N?He(g,0):He(g,100):Fe?Or(g,w[g].percent):Cr(g,w[g].percent))},Ao=g=>{Ae||Xe||(ue===Le?N?Cr(g,w[g].percent):Or(g,w[g].percent):Fe?He(g,100):He(g,0))},_o=g=>{Ae||Xe||(ue===Le?N?Or(g,w[g].percent):Cr(g,w[g].percent):Fe?He(g,0):He(g,100))},Ga=g=>g.classList.contains("panel"),Va=g=>g.classList.contains("panel-fill"),Or=(g,$)=>{if($===void 0)return;let T=kr($);T==null&&(T=1),$-=T,$<0&&($=0),He(g,$)},Cr=(g,$)=>{if($===void 0)return;let T=kr($);T==null&&(T=1),$+=T,$>100&&($=100),He(g,$)},Bt=()=>{!k||k.update({percents:Mo(),values:Po(),$pointers:ei(),min:Lr(),max:Oo(),data:ti(),step:Qn(),round:hn(),type:ri(),textMin:pn(),textMax:Nt(),rightToLeft:$t(),bottomToTop:ii(),pointersOverlap:Rr(),pointersMinDistance:dn(),pointersMaxDistance:ni(),rangeDragging:ct(),disabled:oi(),keyboardDisabled:Tr(),mousewheelDisabled:yn()})},Eo=()=>{Bt()},Ka=g=>{if(!(ie||w.length<=1||te===L))if(g===0){let $=$e*100/(te-L);return Math.max(0,w[g+1].percent-$)}else{let $=V*100/(te-L);return Math.min(w[g-1].percent+$,100)}},Ya=g=>{if(!(ie||w.length<=1||te===L))if(g===w.length-1){let $=$e*100/(te-L);return Math.min(w[g-1].percent+$,100)}else{let $=V*100/(te-L);return Math.max(0,w[g+1].percent-$)}},kr=g=>{let $;if(typeof ae=="function"){let T=ce(0,100,L,te,g);$=ae(T,g)}else $=ae;if(Te($)){let T=te-L;return $=T===0?0:$*100/T,$}},or=g=>{if(g===void 0)return;let $=ce(0,100,L,te,g);return F!==void 0?F[Math.round($)]:Ot($,rt)},pn=()=>F!==void 0?F[L]:L,Nt=()=>F!==void 0?F[te]:te,Qn=()=>ae,sr=g=>{var $;return g<=0||ie?pn():($=or(w[g-1].percent))!=null?$:""},Lt=g=>{var $;return w.length<=1||g>=w.length-1||ie?Nt():($=or(w[g+1].percent))!=null?$:""},Mo=()=>w.map(g=>g.percent),Po=()=>w.map(g=>or(g.percent)),ei=()=>w.map(g=>g.$pointer),Lr=()=>L,Oo=()=>te,ti=()=>F,ri=()=>ue,hn=()=>rt,dn=()=>V,ni=()=>$e,gn=g=>$o[g],$t=()=>Fe,ii=()=>N,oi=()=>Ae,Tr=()=>Xe,yn=()=>ze,Rr=()=>ie,ct=()=>De,He=(g,$)=>{if($===void 0)return;let T=kr($);T!==void 0&&($=Re($,T));let re=w[g];if(!re)return;let me=re.updatePosition($,Ka(g),Ya(g),ue,Fe,N);q==null||q.updatePosition(ue,w.map(pe=>pe.percent),Fe,N),Bt();for(let pe of w){let Qe=or(pe.percent);Qe!==void 0&&(pe.setAttr("aria-valuenow",Qe.toString()),pe.setAttr("aria-valuetext",Qe.toString()))}si(),me&&Ea(f,w.map(pe=>or(pe.percent)))},dt=()=>{for(let g=0;g<w.length;g++)He(g,w[g].percent)},Co=(g,$)=>{L=F!==void 0?0:se(g,Pr),te=F!==void 0?F.length-1:se($,ir),Ht(L),Ut(te)},si=()=>{var g,$;for(let T=0;T<w.length;T++){let re=w[T];re.setAttr("aria-valuemin",((g=sr(T))!=null?g:"").toString()),re.setAttr("aria-valuemax",(($=Lt(T))!=null?$:"").toString())}},Ht=g=>{L=se(g,Pr),L>te&&(te=L+ir),dt()},Ut=g=>{te=se(g,ir),te<L&&(te=L+ir),dt()},vn=g=>{ie=!0;for(let $=0;$<g.length;$++)mn(g[$],$);ie=!1;for(let $=0;$<g.length;$++)mn(g[$],$)},mn=(g,$)=>{let T;F!==void 0?(T=g==null?0:Pa(g,F),T===-1&&(T=0)):(T=se(g,L),T<L&&(T=L),T>te&&(T=te));let re=ce(L,te,0,100,T);He($,re)},bn=g=>{if(g==null){ae=void 0;return}if(typeof g=="function"){ae=g,dt();return}if(Te(g)){ae=se(g,1);let $=Math.abs(te-L);ae>$&&(ae=void 0),dt();return}ae=void 0},ai=g=>{ie=g,dt()},li=g=>{(!Te(g)||g<0)&&(g=0),V=g},ar=g=>{(!Te(g)||g<0)&&(g=1/0),$e=g},ci=g=>{Ae=g,y.classList.toggle("disabled",Ae),Ae?y.setAttribute("aria-disabled","true"):y.hasAttribute("aria-disabled")&&y.removeAttribute("aria-disabled")},ko=g=>{Xe=g},c=g=>{ze=g,ze?document.removeEventListener("wheel",fn):document.addEventListener("wheel",fn,{passive:!1})},p=g=>{if(g==null){F=void 0;return}if(F=Ma(g),F===void 0||F.length<=0){F=void 0;return}Ht(0),Ut(F.length-1),ae===void 0&&bn(1)},b=g=>{var $;typeof g=="string"?ue=g.trim().toLowerCase()===Le?Le:Je:ue=Je;let T=($=f.shadowRoot)==null?void 0:$.querySelector(".range-slider-box");if(!T)return;T.className=`range-slider-box type-${ue}`,dt();let re=ue===Le?"vertical":"horizontal";for(let me of w)me.setAttr("aria-orientation",re)},A=g=>{Fe=g,w.length>1&&bo(w,Fe,f),dt(),Bt()},D=g=>{N=g,w.length>1&&bo(w,N,f),dt(),Bt()},C=g=>{rt=se(g,tt),rt<0&&(rt=tt),Bt()},Q=g=>{g==null||g.toString().trim().toLowerCase()==="false"?(kt=void 0,y.style.removeProperty(po),y.classList.remove(Ct)):(kt=g.toString(),y.style.setProperty(po,kt),y.classList.add(Ct))},fe=(g,$)=>{let T=w[g];!T||(T.setAttr("aria-label",$),$o[g]=$)},xe=g=>{if(ke=void 0,w.length<=1){De=!1,y.classList.remove(an);return}De=g,y.classList.toggle(an,De)},Ie=()=>{ci(Ee(f.getAttribute(W))),Xe=Ee(f.getAttribute(Z)),ze=Ee(f.getAttribute(z));let g=_r(f,/^pointer([0-9]*)-disabled$/,$=>Ee($));for(let $ of g){let T=$[0];!w[T]||(w[T].disabled=$[1])}},qe=()=>{let g=_r(f,/^aria-label([0-9]*)$/);for(let $ of g){let T=$[0];fe(T,$[1])}},Ze=g=>{let $=w.length,T=w[$-1].$pointer,re=T.cloneNode(!0);T.after(re);let me=Vn(f,re,$);return me.setCallbacks(xo,So,Ao,_o),w.push(me),mn(g,$),dt(),Bt(),$},je=()=>{let g=w.length,$=w[g-1];return $?($.destroy(),w.pop(),w.length<=1&&xe(!1),dt(),Bt(),g-1):-1};return(()=>{var g,$;for(let re of w)re.setCallbacks(xo,So,Ao,_o);let T=(g=f.shadowRoot)==null?void 0:g.querySelector(".panel-fill");T&&(q=Oa(T)),b(f.getAttribute(_)),A(Ee(f.getAttribute(j))),D(Ee(f.getAttribute(H))),Co(f.getAttribute(d),f.getAttribute(m)),bn(f.getAttribute(v)),p(f.getAttribute(h)),vn(x.map(re=>re[1])),ai(Ee(f.getAttribute(s))),li(se(f.getAttribute(l),0)),ar(se(f.getAttribute(a),1/0)),xe(Ee(f.getAttribute(u))),C(se(f.getAttribute(S),tt)),Ie(),qe(),G=Er(f,y,w),Q(($=f.getAttribute(Ce))!=null?$:wo),y.addEventListener("mousedown",Zn),y.addEventListener("mouseup",cn),y.addEventListener("touchmove",jt),y.addEventListener("touchstart",jt),ze||document.addEventListener("wheel",fn,{passive:!1}),k=Jn(f,Eo,{setValues:vn,setMin:Ht,setMax:Ut,setStep:bn,setPointersOverlap:ai,setPointersMinDistance:li,setPointersMaxDistance:ar,setDisabled:ci,setType:b,setRightToLeft:A,setBottomToTop:D,setRound:C,setKeyboardDisabled:ko,setMousewheelDisabled:c,setRangeDragging:xe,setData:p},{getPercents:Mo,getValues:Po,getPointerElements:ei,getMin:Lr,getMax:Oo,getStep:Qn,getData:ti,getType:ri,getRound:hn,getTextMin:pn,getTextMax:Nt,isRightToLeft:$t,isBottomToTop:ii,isDisabled:oi,isKeyboardDisabled:Tr,isMousewheelDisabled:yn,isPointersOverlap:Rr,isRangeDraggingEnabled:ct,getPointersMinDistance:dn,getPointersMaxDistance:ni}),k.init()})(),{get pointers(){return w},get styles(){return G},get pluginsManager(){return k},get min(){return pn()},get max(){return Nt()},get step(){return Qn()},get pointersOverlap(){return Rr()},set pointersOverlap(g){ai(g)},get pointersMinDistance(){return dn()},set pointersMinDistance(g){li(g)},get pointersMaxDistance(){return ni()},set pointersMaxDistance(g){ar(g)},get disabled(){return oi()},set disabled(g){ci(g)},get data(){return ti()},get type(){return ri()},set type(g){b(g)},get rightToLeft(){return $t()},set rightToLeft(g){A(g)},get bottomToTop(){return ii()},set bottomToTop(g){D(g)},get round(){return hn()},set round(g){C(g)},get animateOnClick(){return kt},set animateOnClick(g){Q(g)},get keyboardDisabled(){return Tr()},set keyboardDisabled(g){ko(g)},get mousewheelDisabled(){return yn()},set mousewheelDisabled(g){c(g)},get rangeDragging(){return ct()},set rangeDragging(g){xe(g)},setMin:Ht,setMax:Ut,setValue:mn,setStep:bn,setData:p,getTextValue:or,setAriaLabel:fe,getAriaLabel:gn,addPointer:Ze,removePointer:je,destroy:()=>{y.removeEventListener("mousedown",Zn),y.removeEventListener("mouseup",cn),y.removeEventListener("touchmove",jt),y.removeEventListener("touchstart",jt),document.removeEventListener("wheel",fn);for(let g of w)g.destroy();k==null||k.destroy()}}},Wa=(f,y,x)=>{let w=sn.find(([k,L,te,ae])=>L.replace("#","")===y.replace(/\d+/g,""));if(w&&f.styles){let[k,L,te,ae]=w,F=y.replace(/\D/g,"").trim(),ue=F===""||F==="0"||F==="1"?0:se(F,0)-1;f.styles.setStyle(k,x,ue);return}switch(f&&f.pluginsManager&&f.pluginsManager.onAttrChange(y,x),y){case d:{f.setMin(x);break}case m:{f.setMax(x);break}case v:{f.setStep(x);break}case s:{f.pointersOverlap=Ee(x);break}case l:{f.pointersMinDistance=se(x,0);break}case u:{f.rangeDragging=Ee(x);break}case a:{f.pointersMaxDistance=se(x,1/0);break}case W:{f.disabled=Ee(x);break}case Z:{f.keyboardDisabled=Ee(x);break}case z:{f.mousewheelDisabled=Ee(x);break}case h:{f.setData(x);break}case _:{f.type=x;break}case j:{f.rightToLeft=Ee(x);break}case H:{f.bottomToTop=Ee(x);break}case S:{f.round=se(x,tt);break}case I:{f.styles&&(f.styles.theme=x);break}case Ce:{f.animateOnClick=x;break}}let P=null;if(/^value([0-9]*)$/.test(y)&&(P="value"),/^pointer([0-9]*)-disabled$/.test(y)&&(P="pointer-disabled"),/^aria-label([0-9]*)$/.test(y)&&(P="aria-label"),/^pointer([0-9]*)-shape$/.test(y)&&(P="pointer-shape"),!P)return;let q=y.replace(/\D/g,"").trim(),G=q===""||q==="0"||q==="1"?0:se(q,0)-1;switch(P){case"value":{f.setValue(x,G);break}case"pointer-disabled":{let k=f==null?void 0:f.pointers[G];if(!k)return;k.disabled=Ee(x);break}case"aria-label":{f.setAriaLabel(G,x);break}case"pointer-shape":{f.styles&&f.styles.setPointerShape(G,x);break}}},za=class extends HTMLElement{constructor(){super(),n(this,"slider"),n(this,"_externalCSSList",[]),n(this,"_observer",null),this.attachShadow({mode:"open"})}set step(f){this.slider&&this.slider.setStep(f)}get step(){var f;return(f=this.slider)==null?void 0:f.step}set disabled(f){this.slider&&(this.slider.disabled=f)}get disabled(){var f,y;return(y=(f=this.slider)==null?void 0:f.disabled)!=null?y:!1}set data(f){var y;(y=this.slider)==null||y.setData(f)}get data(){var f;return(f=this.slider)==null?void 0:f.data}set min(f){var y;(y=this.slider)==null||y.setMin(f)}get min(){var f;return(f=this.slider)==null?void 0:f.min}set max(f){var y;(y=this.slider)==null||y.setMax(f)}get max(){var f;return(f=this.slider)==null?void 0:f.max}set round(f){!this.slider||(this.slider.round=f)}get round(){var f,y;return(y=(f=this.slider)==null?void 0:f.round)!=null?y:tt}set type(f){!this.slider||(this.slider.type=f??Je)}get type(){var f;return((f=this.slider)==null?void 0:f.type)||Je}set pointersOverlap(f){!this.slider||(this.slider.pointersOverlap=f)}get pointersOverlap(){var f,y;return(y=(f=this.slider)==null?void 0:f.pointersOverlap)!=null?y:!1}set pointersMinDistance(f){!this.slider||(this.slider.pointersMinDistance=f)}get pointersMinDistance(){var f,y;return(y=(f=this.slider)==null?void 0:f.pointersMinDistance)!=null?y:0}set pointersMaxDistance(f){!this.slider||(this.slider.pointersMaxDistance=f)}get pointersMaxDistance(){var f,y;return(y=(f=this.slider)==null?void 0:f.pointersMaxDistance)!=null?y:1/0}set theme(f){!this.slider||!this.slider.styles||(this.slider.styles.theme=f)}get theme(){var f,y,x;return(x=(y=(f=this.slider)==null?void 0:f.styles)==null?void 0:y.theme)!=null?x:null}set rtl(f){!this.slider||(this.slider.rightToLeft=f)}get rtl(){var f,y;return(y=(f=this.slider)==null?void 0:f.rightToLeft)!=null?y:!1}set btt(f){!this.slider||(this.slider.bottomToTop=f)}get btt(){var f,y;return(y=(f=this.slider)==null?void 0:f.bottomToTop)!=null?y:!1}set keyboardDisabled(f){!this.slider||(this.slider.keyboardDisabled=f)}get keyboardDisabled(){var f,y;return(y=(f=this.slider)==null?void 0:f.keyboardDisabled)!=null?y:!1}set mousewheelDisabled(f){!this.slider||(this.slider.mousewheelDisabled=f)}get mousewheelDisabled(){var f,y;return(y=(f=this.slider)==null?void 0:f.mousewheelDisabled)!=null?y:!1}set animateOnClick(f){!this.slider||(this.slider.animateOnClick=f)}get animateOnClick(){var f;return(f=this.slider)==null?void 0:f.animateOnClick}get rangeDragging(){var f,y;return(y=(f=this.slider)==null?void 0:f.rangeDragging)!=null?y:!1}set rangeDragging(f){this.slider&&(this.slider.rangeDragging=Ee(f))}get externalCSSList(){return this._externalCSSList}addPointer(f){var y,x;if(!this.slider)return;let w=(x=(y=this.slider)==null?void 0:y.addPointer(f))!=null?x:0;mo(this,this.slider,w,`value${w+1}`,`ariaLabel${w+1}`,`pointerShape${w+1}`,`pointer${w+1}Disabled`)}removePointer(){var f;!this.slider||(f=this.slider)==null||f.removePointer()}addCSS(f){if(!this.shadowRoot)return;let y=document.createElement("style");y.textContent=f,this.shadowRoot.appendChild(y)}connectedCallback(){var f,y;if(!this.shadowRoot)return;this._externalCSSList=Na(this),this.shadowRoot.innerHTML=i(o,this._externalCSSList);let x=(f=this.shadowRoot)==null?void 0:f.querySelector(".pointer");if(!x)return;let w=(y=this.shadowRoot)==null?void 0:y.getElementById("range-slider");if(!w)return;let P=Ha(this,x);this.slider=Fa(this,w,P),Ua(this,this.slider),this._observer=new MutationObserver(q=>{q.forEach(G=>{var k;if(!this.slider||G.type!=="attributes")return;let L=G.attributeName;!L||Wa(this.slider,L,(k=this.getAttribute(L))!=null?k:"")})}),this._observer.observe(this,{attributes:!0})}disconnectedCallback(){this._observer&&this._observer.disconnect(),this.slider&&this.slider.destroy()}},Xn=za;window.tcRangeSlider=Xn,customElements.get("toolcool-range-slider")||customElements.define("toolcool-range-slider",Xn),customElements.get("tc-range-slider")||customElements.define("tc-range-slider",class extends Xn{})})();class xp extends it{constructor(){super();nt(this,Sr);this.filterObject={},this.tabIndex=0,this.inputHandler=Se(this,Sr,Wp).bind(this),this.debouncedInputHandler=eo(this.inputHandler,0,{leading:!0})}reset(){W0(this)}createRenderRoot(){return this}render(){return Ge(this.filterObject,()=>X`
701
+ ${Se(this,Sr,tl).call(this,"min","before")}
683
702
  <tc-range-slider
684
703
  min="${this.filterObject.min}"
685
704
  max="${this.filterObject.max}"
@@ -688,18 +707,18 @@ li.highlighted,
688
707
  step="1"
689
708
  @change=${this.debouncedInputHandler}
690
709
  ></tc-range-slider>
691
- ${Se(this,gr,ka).call(this,"max","after")}
692
- `)}}gr=new WeakSet,ip=function(r){D0(r,this)},ka=function(r,n){return R0(r,n,this)},Jn(jf,"properties",{filterObject:{attribute:!1,type:Object},tabIndex:{attribute:!1,type:Number}}),customElements.define("eox-itemfilter-range",jf);class ob extends it{constructor(){super();nt(this,Fi);this.filterObject={},this.tabIndex=0}static get properties(){return{filterObject:{type:Object},tabIndex:{attribute:!1,type:Number}}}reset(){F0(this)}createRenderRoot(){return this}render(){return Qe(this.filterObject,()=>{var r;return V`
710
+ ${Se(this,Sr,tl).call(this,"max","after")}
711
+ `)}}Sr=new WeakSet,Wp=function(r){z0(r,this)},tl=function(r,n){return q0(r,n,this)},ui(xp,"properties",{filterObject:{attribute:!1,type:Object},tabIndex:{attribute:!1,type:Number}}),customElements.define("eox-itemfilter-range",xp);class h1 extends it{constructor(){super();nt(this,ao);this.filterObject={},this.tabIndex=0}static get properties(){return{filterObject:{type:Object},tabIndex:{attribute:!1,type:Number}}}reset(){Z0(this)}createRenderRoot(){return this}render(){return Ge(this.filterObject,()=>{var r;return X`
693
712
  <form style="display: inline">
694
- ${Xn(["intersects","within"],n=>V`
713
+ ${pi(["intersects","within"],n=>X`
695
714
  <label>
696
715
  <input
697
716
  tabindex=${this.tabIndex}
698
717
  type="radio"
699
718
  name="mode"
700
- .checked="${(this.filterObject.state.mode||"")===n||ve}"
719
+ .checked="${(this.filterObject.state.mode||"")===n||be}"
701
720
  value="${n}"
702
- @click=${()=>Se(this,Fi,op).call(this,n)}
721
+ @click=${()=>Se(this,ao,zp).call(this,n)}
703
722
  />
704
723
  <small>${n} filter geometry</small>
705
724
  </label>
@@ -710,13 +729,13 @@ li.highlighted,
710
729
  .geometry="${(r=this.filterObject.state)==null?void 0:r.geometry}"
711
730
  @filter="${n=>{this.filterObject.state.geometry=n.detail.geometry,this.filterObject.dirty=!0,this.filterObject.stringifiedState="Polygon",this.dispatchEvent(new CustomEvent("filter"))}}"
712
731
  ></eox-itemfilter-spatial>
713
- `})}}Fi=new WeakSet,op=function(r){q0(r,this)},customElements.define("eox-itemfilter-spatial",ob);class sb extends it{constructor(){super();nt(this,zi);this.geometry=null,this.eoxMap=null}static get properties(){return{geometry:{type:Object},eoxMap:{type:Object}}}firstUpdated(){Se(this,zi,sp).call(this)}reset(){z0(this)}render(){return V`<div id="eox-map"></div>`}}zi=new WeakSet,sp=function(){Pf(this)},customElements.define("eox-itemfilter-spatial-filter",sb);function ab(t,e){e.renderRoot.querySelectorAll(".chip").forEach(r=>{r.classList.remove("highlighted")}),t.target.classList.add("highlighted"),e.requestUpdate()}function lb(t,e){const{code:r,target:n}=t;n.id==="eox-itemfilter-input-search"&&(e.parentElement.classList.contains("hidden")&&["ArrowLeft","ArrowRight","Backspace"].includes(r)||(r==="Space"&&t.preventDefault(),["Escape","Space","Enter"].includes(r)||t.stopPropagation(),["ArrowLeft","ArrowRight","Escape","Backspace"].includes(r)&&cb(r,t.target.value??"",e)))}function cb(t,e,r){const n=r.renderRoot.querySelector(".chip.highlighted");if((t==="Escape"||e)&&n&&n.classList.remove("highlighted"),t==="Backspace"&&!e){if(r.items.length){n&&(n.querySelector(".chip-item-close").click(),r.items.splice(Array.from(r.renderRoot.querySelectorAll(".chip")).indexOf(n),1));const i=r.renderRoot.querySelectorAll(".chip")[r.renderRoot.querySelectorAll(".chip").length-1];i.classList.contains("highlighted")||i.classList.add("highlighted"),r.requestUpdate()}r._dispatchEvent()}if((t==="ArrowLeft"||t==="ArrowRight")&&!e){if(r.renderRoot.querySelectorAll(".chip").length<1)return;let i=0;const o=r.renderRoot.querySelector(".chip.highlighted");o&&(i=Array.from(r.renderRoot.querySelectorAll(".chip")).indexOf(o),o.classList.remove("highlighted")),i=i+(t==="ArrowLeft"?-1:1),t==="ArrowLeft"&&i<0&&(i=r.renderRoot.querySelectorAll(".chip").length-1),t==="ArrowRight"&&i>r.renderRoot.querySelectorAll(".chip").length-1&&(i=0),Array.from(r.renderRoot.querySelectorAll(".chip"))[i].classList.add("highlighted")}}class ub extends it{constructor(){super();nt(this,yr);this.items={},this.controller={}}static get properties(){return{items:{attribute:!1,type:Object},controller:{attribute:!1,type:Object}}}connectedCallback(){super.connectedCallback(),this.getRootNode().addEventListener("keydown",Se(this,yr,La).bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.getRootNode().removeEventListener("keydown",Se(this,yr,La).bind(this))}_dispatchEvent(){this.dispatchEvent(new CustomEvent("items-selected",{detail:this.items}))}render(){return V`
732
+ `})}}ao=new WeakSet,zp=function(r){e1(r,this)},customElements.define("eox-itemfilter-spatial",h1);class d1 extends it{constructor(){super();nt(this,lo);this.geometry=null,this.eoxMap=null}static get properties(){return{geometry:{type:Object},eoxMap:{type:Object}}}firstUpdated(){Se(this,lo,qp).call(this)}reset(){Q0(this)}render(){return X`<div id="eox-map"></div>`}}lo=new WeakSet,qp=function(){hp(this)},customElements.define("eox-itemfilter-spatial-filter",d1);function g1(t,e){e.renderRoot.querySelectorAll(".chip").forEach(r=>{r.classList.remove("highlighted")}),t.target.classList.add("highlighted"),e.requestUpdate()}function y1(t,e){const{code:r,target:n}=t;n.id==="eox-itemfilter-input-search"&&(e.parentElement.classList.contains("hidden")&&["ArrowLeft","ArrowRight","Backspace"].includes(r)||(r==="Space"&&t.preventDefault(),["Escape","Space","Enter"].includes(r)||t.stopPropagation(),["ArrowLeft","ArrowRight","Escape","Backspace"].includes(r)&&v1(r,t.target.value??"",e)))}function v1(t,e,r){const n=r.renderRoot.querySelector(".chip.highlighted");if((t==="Escape"||e)&&n&&n.classList.remove("highlighted"),t==="Backspace"&&!e){if(r.items.length){n&&(n.querySelector(".chip-item-close").click(),r.items.splice(Array.from(r.renderRoot.querySelectorAll(".chip")).indexOf(n),1));const i=r.renderRoot.querySelectorAll(".chip")[r.renderRoot.querySelectorAll(".chip").length-1];i.classList.contains("highlighted")||i.classList.add("highlighted"),r.requestUpdate()}r._dispatchEvent()}if((t==="ArrowLeft"||t==="ArrowRight")&&!e){if(r.renderRoot.querySelectorAll(".chip").length<1)return;let i=0;const o=r.renderRoot.querySelector(".chip.highlighted");o&&(i=Array.from(r.renderRoot.querySelectorAll(".chip")).indexOf(o),o.classList.remove("highlighted")),i=i+(t==="ArrowLeft"?-1:1),t==="ArrowLeft"&&i<0&&(i=r.renderRoot.querySelectorAll(".chip").length-1),t==="ArrowRight"&&i>r.renderRoot.querySelectorAll(".chip").length-1&&(i=0),Array.from(r.renderRoot.querySelectorAll(".chip"))[i].classList.add("highlighted")}}class m1 extends it{constructor(){super();nt(this,Ar);this.items={},this.controller={}}static get properties(){return{items:{attribute:!1,type:Object},controller:{attribute:!1,type:Object}}}connectedCallback(){super.connectedCallback(),this.getRootNode().addEventListener("keydown",Se(this,Ar,rl).bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.getRootNode().removeEventListener("keydown",Se(this,Ar,rl).bind(this))}_dispatchEvent(){this.dispatchEvent(new CustomEvent("items-selected",{detail:this.items}))}render(){return X`
714
733
  <style>
715
- ${yn}
734
+ ${Pn}
716
735
  </style>
717
736
  <span class="chip-container">
718
- ${Xn(this.items,r=>V`
719
- <span class="chip" @click=${Se(this,yr,ap).bind(this)}>
737
+ ${pi(this.items,r=>X`
738
+ <span class="chip" @click=${Se(this,Ar,Gp).bind(this)}>
720
739
  <span class="chip-title">${r.title}</span>
721
740
  <span
722
741
  class="chip-item-close hidden"
@@ -727,7 +746,7 @@ li.highlighted,
727
746
  </span>
728
747
  `)}
729
748
  </span>
730
- `}}yr=new WeakSet,La=function(r){lb(r,this)},ap=function(r){ab(r,this)},customElements.define("eox-itemfilter-chips",ub);const Bf=Object.freeze({aggregateResults:void 0,autoSpreadSingle:!1,enableHighlighting:!1,externalFilter:()=>{},filterProperties:[],fuseConfig:{},inlineMode:!1,matchAllWhenEmpty:!0,showResults:!0,titleProperty:"title",expandMultipleFilters:!0,expandResults:!0,expandMultipleResults:!0});var fb=200,Ys="__lodash_hash_undefined__",pb=1/0,hb="[object Function]",db="[object GeneratorFunction]",gb=/[\\^$.*+?()[\]{}|]/g,yb=/^\[object .+?Constructor\]$/,vb=typeof Ge=="object"&&Ge&&Ge.Object===Object&&Ge,mb=typeof self=="object"&&self&&self.Object===Object&&self,Js=vb||mb||Function("return this")();function bb(t,e){var r=t?t.length:0;return!!r&&xb(t,e,0)>-1}function wb(t,e,r){for(var n=-1,i=t?t.length:0;++n<i;)if(r(e,t[n]))return!0;return!1}function $b(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function xb(t,e,r){if(e!==e)return $b(t,Sb,r);for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}function Sb(t){return t!==t}function Ab(t,e){return t.has(e)}function _b(t,e){return t==null?void 0:t[e]}function Eb(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function Nf(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var Mb=Array.prototype,Pb=Function.prototype,Hf=Object.prototype,Zs=Js["__core-js_shared__"],Uf=function(){var t=/[^.]+$/.exec(Zs&&Zs.keys&&Zs.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Wf=Pb.toString,Xs=Hf.hasOwnProperty,Ob=Hf.toString,Cb=RegExp("^"+Wf.call(Xs).replace(gb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kb=Mb.splice,Lb=ea(Js,"Map"),Qs=ea(Js,"Set"),kn=ea(Object,"create");function hr(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Tb(){this.__data__=kn?kn(null):{}}function Ib(t){return this.has(t)&&delete this.__data__[t]}function Db(t){var e=this.__data__;if(kn){var r=e[t];return r===Ys?void 0:r}return Xs.call(e,t)?e[t]:void 0}function Rb(t){var e=this.__data__;return kn?e[t]!==void 0:Xs.call(e,t)}function jb(t,e){var r=this.__data__;return r[t]=kn&&e===void 0?Ys:e,this}hr.prototype.clear=Tb,hr.prototype.delete=Ib,hr.prototype.get=Db,hr.prototype.has=Rb,hr.prototype.set=jb;function Ur(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Bb(){this.__data__=[]}function Nb(t){var e=this.__data__,r=Bi(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():kb.call(e,r,1),!0}function Hb(t){var e=this.__data__,r=Bi(e,t);return r<0?void 0:e[r][1]}function Ub(t){return Bi(this.__data__,t)>-1}function Wb(t,e){var r=this.__data__,n=Bi(r,t);return n<0?r.push([t,e]):r[n][1]=e,this}Ur.prototype.clear=Bb,Ur.prototype.delete=Nb,Ur.prototype.get=Hb,Ur.prototype.has=Ub,Ur.prototype.set=Wb;function Wr(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Fb(){this.__data__={hash:new hr,map:new(Lb||Ur),string:new hr}}function zb(t){return Ni(this,t).delete(t)}function qb(t){return Ni(this,t).get(t)}function Gb(t){return Ni(this,t).has(t)}function Kb(t,e){return Ni(this,t).set(t,e),this}Wr.prototype.clear=Fb,Wr.prototype.delete=zb,Wr.prototype.get=qb,Wr.prototype.has=Gb,Wr.prototype.set=Kb;function ji(t){var e=-1,r=t?t.length:0;for(this.__data__=new Wr;++e<r;)this.add(t[e])}function Vb(t){return this.__data__.set(t,Ys),this}function Yb(t){return this.__data__.has(t)}ji.prototype.add=ji.prototype.push=Vb,ji.prototype.has=Yb;function Bi(t,e){for(var r=t.length;r--;)if(n1(t[r][0],e))return r;return-1}function Jb(t){if(!Ff(t)||e1(t))return!1;var e=i1(t)||Eb(t)?Cb:yb;return e.test(t1(t))}function Zb(t,e,r){var n=-1,i=bb,o=t.length,s=!0,c=[],l=c;if(r)s=!1,i=wb;else if(o>=fb){var f=e?null:Xb(t);if(f)return Nf(f);s=!1,i=Ab,l=new ji}else l=e?[]:c;e:for(;++n<o;){var d=t[n],g=e?e(d):d;if(d=r||d!==0?d:0,s&&g===g){for(var m=l.length;m--;)if(l[m]===g)continue e;e&&l.push(g),c.push(d)}else i(l,g,r)||(l!==c&&l.push(g),c.push(d))}return c}var Xb=Qs&&1/Nf(new Qs([,-0]))[1]==pb?function(t){return new Qs(t)}:o1;function Ni(t,e){var r=t.__data__;return Qb(e)?r[typeof e=="string"?"string":"hash"]:r.map}function ea(t,e){var r=_b(t,e);return Jb(r)?r:void 0}function Qb(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function e1(t){return!!Uf&&Uf in t}function t1(t){if(t!=null){try{return Wf.call(t)}catch{}try{return t+""}catch{}}return""}function r1(t){return t&&t.length?Zb(t):[]}function n1(t,e){return t===e||t!==t&&e!==e}function i1(t){var e=Ff(t)?Ob.call(t):"";return e==hb||e==db}function Ff(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function o1(){}var s1=r1;const zf=vn(s1);var Hi={exports:{}};Hi.exports,function(t,e){var r=200,n="Expected a function",i="__lodash_hash_undefined__",o=1,s=2,c=1/0,l=9007199254740991,f="[object Arguments]",d="[object Array]",g="[object Boolean]",m="[object Date]",b="[object Error]",A="[object Function]",L="[object GeneratorFunction]",F="[object Map]",K="[object Number]",J="[object Object]",Z="[object Promise]",pe="[object RegExp]",te="[object Set]",N="[object String]",X="[object Symbol]",ie="[object WeakMap]",we="[object ArrayBuffer]",de="[object DataView]",re="[object Float32Array]",Ne="[object Float64Array]",et="[object Int8Array]",I="[object Int16Array]",E="[object Int32Array]",_="[object Uint8Array]",R="[object Uint8ClampedArray]",P="[object Uint16Array]",q="[object Uint32Array]",G=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ye=/^\w*$/,_e=/^\./,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ce=/[\\^$.*+?()[\]{}|]/g,Ve=/\\(\\)?/g,Le=/^\[object .+?Constructor\]$/,Ye=/^(?:0|[1-9]\d*)$/,le={};le[re]=le[Ne]=le[et]=le[I]=le[E]=le[_]=le[R]=le[P]=le[q]=!0,le[f]=le[d]=le[we]=le[g]=le[de]=le[m]=le[b]=le[A]=le[F]=le[K]=le[J]=le[pe]=le[te]=le[N]=le[ie]=!1;var Te=typeof Ge=="object"&&Ge&&Ge.Object===Object&&Ge,oe=typeof self=="object"&&self&&self.Object===Object&&self,Ie=Te||oe||Function("return this")(),_t=e&&!e.nodeType&&e,Ee=_t&&!0&&t&&!t.nodeType&&t,ta=Ee&&Ee.exports===_t,qi=ta&&Te.process,Gi=function(){try{return qi&&qi.binding("util")}catch{}}(),Ki=Gi&&Gi.isTypedArray;function ra(a,p){for(var v=-1,S=a?a.length:0,D=Array(S);++v<S;)D[v]=p(a[v],v,a);return D}function Tn(a,p){for(var v=-1,S=p.length,D=a.length;++v<S;)a[D+v]=p[v];return a}function na(a,p){for(var v=-1,S=a?a.length:0;++v<S;)if(p(a[v],v,a))return!0;return!1}function ia(a){return function(p){return p==null?void 0:p[a]}}function oa(a,p){for(var v=-1,S=Array(a);++v<a;)S[v]=p(v);return S}function Vi(a){return function(p){return a(p)}}function sa(a,p){return a==null?void 0:a[p]}function In(a){var p=!1;if(a!=null&&typeof a.toString!="function")try{p=!!(a+"")}catch{}return p}function aa(a){var p=-1,v=Array(a.size);return a.forEach(function(S,D){v[++p]=[D,S]}),v}function la(a,p){return function(v){return a(p(v))}}function ca(a){var p=-1,v=Array(a.size);return a.forEach(function(S){v[++p]=S}),v}var ua=Array.prototype,fa=Function.prototype,qr=Object.prototype,Dn=Ie["__core-js_shared__"],Yi=function(){var a=/[^.]+$/.exec(Dn&&Dn.keys&&Dn.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),Ji=fa.toString,vt=qr.hasOwnProperty,Jt=qr.toString,pa=RegExp("^"+Ji.call(vt).replace(Ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Gr=Ie.Symbol,Zi=Ie.Uint8Array,ha=qr.propertyIsEnumerable,da=ua.splice,vr=Gr?Gr.isConcatSpreadable:void 0,ga=la(Object.keys,Object),Kr=Qt(Ie,"DataView"),mr=Qt(Ie,"Map"),Et=Qt(Ie,"Promise"),Vr=Qt(Ie,"Set"),Rn=Qt(Ie,"WeakMap"),br=Qt(Object,"create"),Xi=mt(Kr),ya=mt(mr),Qi=mt(Et),va=mt(Vr),eo=mt(Rn),Yr=Gr?Gr.prototype:void 0,wr=Yr?Yr.valueOf:void 0,Zt=Yr?Yr.toString:void 0;function tt(a){var p=-1,v=a?a.length:0;for(this.clear();++p<v;){var S=a[p];this.set(S[0],S[1])}}function to(){this.__data__=br?br(null):{}}function ma(a){return this.has(a)&&delete this.__data__[a]}function ba(a){var p=this.__data__;if(br){var v=p[a];return v===i?void 0:v}return vt.call(p,a)?p[a]:void 0}function wa(a){var p=this.__data__;return br?p[a]!==void 0:vt.call(p,a)}function jn(a,p){var v=this.__data__;return v[a]=br&&p===void 0?i:p,this}tt.prototype.clear=to,tt.prototype.delete=ma,tt.prototype.get=ba,tt.prototype.has=wa,tt.prototype.set=jn;function u(a){var p=-1,v=a?a.length:0;for(this.clear();++p<v;){var S=a[p];this.set(S[0],S[1])}}function y(){this.__data__=[]}function x(a){var p=this.__data__,v=Ae(p,a);if(v<0)return!1;var S=p.length-1;return v==S?p.pop():da.call(p,v,1),!0}function w(a){var p=this.__data__,v=Ae(p,a);return v<0?void 0:p[v][1]}function M(a){return Ae(this.__data__,a)>-1}function H(a,p){var v=this.__data__,S=Ae(v,a);return S<0?v.push([a,p]):v[S][1]=p,this}u.prototype.clear=y,u.prototype.delete=x,u.prototype.get=w,u.prototype.has=M,u.prototype.set=H;function U(a){var p=-1,v=a?a.length:0;for(this.clear();++p<v;){var S=a[p];this.set(S[0],S[1])}}function C(){this.__data__={hash:new tt,map:new(mr||u),string:new tt}}function k(a){return It(this,a).delete(a)}function Q(a){return It(this,a).get(a)}function se(a){return It(this,a).has(a)}function B(a,p){return It(this,a).set(a,p),this}U.prototype.clear=C,U.prototype.delete=k,U.prototype.get=Q,U.prototype.has=se,U.prototype.set=B;function ce(a){var p=-1,v=a?a.length:0;for(this.__data__=new U;++p<v;)this.add(a[p])}function rt(a){return this.__data__.set(a,i),this}function We(a){return this.__data__.has(a)}ce.prototype.add=ce.prototype.push=rt,ce.prototype.has=We;function j(a){this.__data__=new u(a)}function ne(){this.__data__=new u}function W(a){return this.__data__.delete(a)}function $e(a){return this.__data__.get(a)}function De(a){return this.__data__.has(a)}function ke(a,p){var v=this.__data__;if(v instanceof u){var S=v.__data__;if(!mr||S.length<r-1)return S.push([a,p]),this;v=this.__data__=new U(S)}return v.set(a,p),this}j.prototype.clear=ne,j.prototype.delete=W,j.prototype.get=$e,j.prototype.has=De,j.prototype.set=ke;function Me(a,p){var v=lt(a)||Er(a)?oa(a.length,String):[],S=v.length,D=!!S;for(var O in a)(p||vt.call(a,O))&&!(D&&(O=="length"||Hn(O,S)))&&v.push(O);return v}function Ae(a,p){for(var v=a.length;v--;)if(nn(a[v][0],p))return v;return-1}var Je=Aa(ro);function ze(a,p,v,S,D){var O=-1,Y=a.length;for(v||(v=co),D||(D=[]);++O<Y;){var ue=a[O];p>0&&v(ue)?p>1?ze(ue,p-1,v,S,D):Tn(D,ue):S||(D[D.length]=ue)}return D}var Mt=_a();function ro(a,p){return a&&Mt(a,p,er)}function Bn(a,p){p=Ar(p,a)?[p]:ao(p);for(var v=0,S=p.length;a!=null&&v<S;)a=a[rn(p[v++])];return v&&v==S?a:void 0}function Jr(a){return Jt.call(a)}function $a(a,p){return a!=null&&p in Object(a)}function Zr(a,p,v,S,D){return a===p?!0:a==null||p==null||!Dt(a)&&!Rt(p)?a!==a&&p!==p:Lt(a,p,Zr,v,S,D)}function Lt(a,p,v,S,D,O){var Y=lt(a),ue=lt(p),xe=d,Re=d;Y||(xe=Pt(a),xe=xe==f?J:xe),ue||(Re=Pt(p),Re=Re==f?J:Re);var qe=xe==J&&!In(a),Ze=Re==J&&!In(p),je=xe==Re;if(je&&!qe)return O||(O=new j),Y||sn(a)?Sr(a,p,v,S,D,O):Xt(a,p,xe,v,S,D,O);if(!(D&s)){var h=qe&&vt.call(a,"__wrapped__"),$=Ze&&vt.call(p,"__wrapped__");if(h||$){var T=h?a.value():a,ee=$?p.value():p;return O||(O=new j),v(T,ee,S,D,O)}}return je?(O||(O=new j),Qr(a,p,v,S,D,O)):!1}function Xr(a,p,v,S){var D=v.length,O=D,Y=!S;if(a==null)return!O;for(a=Object(a);D--;){var ue=v[D];if(Y&&ue[2]?ue[1]!==a[ue[0]]:!(ue[0]in a))return!1}for(;++D<O;){ue=v[D];var xe=ue[0],Re=a[xe],qe=ue[1];if(Y&&ue[2]){if(Re===void 0&&!(xe in a))return!1}else{var Ze=new j;if(S)var je=S(Re,qe,xe,a,p,Ze);if(!(je===void 0?Zr(qe,Re,S,o|s,Ze):je))return!1}}return!0}function no(a){if(!Dt(a)||Un(a))return!1;var p=fo(a)||In(a)?pa:Le;return p.test(mt(a))}function io(a){return Rt(a)&&Gn(a.length)&&!!le[Jt.call(a)]}function oo(a){return typeof a=="function"?a:a==null?Yn:typeof a=="object"?lt(a)?$r(a[0],a[1]):Sa(a):po(a)}function so(a){if(!Wn(a))return ga(a);var p=[];for(var v in Object(a))vt.call(a,v)&&v!="constructor"&&p.push(v);return p}function xa(a,p){var v=-1,S=He(a)?Array(a.length):[];return Je(a,function(D,O,Y){S[++v]=p(D,O,Y)}),S}function Sa(a){var p=Nn(a);return p.length==1&&p[0][2]?tn(p[0][0],p[0][1]):function(v){return v===a||Xr(v,a,p)}}function $r(a,p){return Ar(a)&&en(p)?tn(rn(a),p):function(v){var S=Kn(v,a);return S===void 0&&S===p?Vn(v,a):Zr(p,S,void 0,o|s)}}function xr(a){return function(p){return Bn(p,a)}}function Tt(a){if(typeof a=="string")return a;if(on(a))return Zt?Zt.call(a):"";var p=a+"";return p=="0"&&1/a==-c?"-0":p}function ao(a){return lt(a)?a:Fn(a)}function Aa(a,p){return function(v,S){if(v==null)return v;if(!He(v))return a(v,S);for(var D=v.length,O=p?D:-1,Y=Object(v);(p?O--:++O<D)&&S(Y[O],O,Y)!==!1;);return v}}function _a(a){return function(p,v,S){for(var D=-1,O=Object(p),Y=S(p),ue=Y.length;ue--;){var xe=Y[a?ue:++D];if(v(O[xe],xe,O)===!1)break}return p}}function Sr(a,p,v,S,D,O){var Y=D&s,ue=a.length,xe=p.length;if(ue!=xe&&!(Y&&xe>ue))return!1;var Re=O.get(a);if(Re&&O.get(p))return Re==p;var qe=-1,Ze=!0,je=D&o?new ce:void 0;for(O.set(a,p),O.set(p,a);++qe<ue;){var h=a[qe],$=p[qe];if(S)var T=Y?S($,h,qe,p,a,O):S(h,$,qe,a,p,O);if(T!==void 0){if(T)continue;Ze=!1;break}if(je){if(!na(p,function(ee,be){if(!je.has(be)&&(h===ee||v(h,ee,S,D,O)))return je.add(be)})){Ze=!1;break}}else if(!(h===$||v(h,$,S,D,O))){Ze=!1;break}}return O.delete(a),O.delete(p),Ze}function Xt(a,p,v,S,D,O,Y){switch(v){case de:if(a.byteLength!=p.byteLength||a.byteOffset!=p.byteOffset)return!1;a=a.buffer,p=p.buffer;case we:return!(a.byteLength!=p.byteLength||!S(new Zi(a),new Zi(p)));case g:case m:case K:return nn(+a,+p);case b:return a.name==p.name&&a.message==p.message;case pe:case N:return a==p+"";case F:var ue=aa;case te:var xe=O&s;if(ue||(ue=ca),a.size!=p.size&&!xe)return!1;var Re=Y.get(a);if(Re)return Re==p;O|=o,Y.set(a,p);var qe=Sr(ue(a),ue(p),S,D,O,Y);return Y.delete(a),qe;case X:if(wr)return wr.call(a)==wr.call(p)}return!1}function Qr(a,p,v,S,D,O){var Y=D&s,ue=er(a),xe=ue.length,Re=er(p),qe=Re.length;if(xe!=qe&&!Y)return!1;for(var Ze=xe;Ze--;){var je=ue[Ze];if(!(Y?je in p:vt.call(p,je)))return!1}var h=O.get(a);if(h&&O.get(p))return h==p;var $=!0;O.set(a,p),O.set(p,a);for(var T=Y;++Ze<xe;){je=ue[Ze];var ee=a[je],be=p[je];if(S)var fe=Y?S(be,ee,je,p,a,O):S(ee,be,je,a,p,O);if(!(fe===void 0?ee===be||v(ee,be,S,D,O):fe)){$=!1;break}T||(T=je=="constructor")}if($&&!T){var Xe=a.constructor,jt=p.constructor;Xe!=jt&&"constructor"in a&&"constructor"in p&&!(typeof Xe=="function"&&Xe instanceof Xe&&typeof jt=="function"&&jt instanceof jt)&&($=!1)}return O.delete(a),O.delete(p),$}function It(a,p){var v=a.__data__;return uo(p)?v[typeof p=="string"?"string":"hash"]:v.map}function Nn(a){for(var p=er(a),v=p.length;v--;){var S=p[v],D=a[S];p[v]=[S,D,en(D)]}return p}function Qt(a,p){var v=sa(a,p);return no(v)?v:void 0}var Pt=Jr;(Kr&&Pt(new Kr(new ArrayBuffer(1)))!=de||mr&&Pt(new mr)!=F||Et&&Pt(Et.resolve())!=Z||Vr&&Pt(new Vr)!=te||Rn&&Pt(new Rn)!=ie)&&(Pt=function(a){var p=Jt.call(a),v=p==J?a.constructor:void 0,S=v?mt(v):void 0;if(S)switch(S){case Xi:return de;case ya:return F;case Qi:return Z;case va:return te;case eo:return ie}return p});function lo(a,p,v){p=Ar(p,a)?[p]:ao(p);for(var S,D=-1,Y=p.length;++D<Y;){var O=rn(p[D]);if(!(S=a!=null&&v(a,O)))break;a=a[O]}if(S)return S;var Y=a?a.length:0;return!!Y&&Gn(Y)&&Hn(O,Y)&&(lt(a)||Er(a))}function co(a){return lt(a)||Er(a)||!!(vr&&a&&a[vr])}function Hn(a,p){return p=p??l,!!p&&(typeof a=="number"||Ye.test(a))&&a>-1&&a%1==0&&a<p}function Ar(a,p){if(lt(a))return!1;var v=typeof a;return v=="number"||v=="symbol"||v=="boolean"||a==null||on(a)?!0:ye.test(a)||!G.test(a)||p!=null&&a in Object(p)}function uo(a){var p=typeof a;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?a!=="__proto__":a===null}function Un(a){return!!Yi&&Yi in a}function Wn(a){var p=a&&a.constructor,v=typeof p=="function"&&p.prototype||qr;return a===v}function en(a){return a===a&&!Dt(a)}function tn(a,p){return function(v){return v==null?!1:v[a]===p&&(p!==void 0||a in Object(v))}}var Fn=_r(function(a){a=an(a);var p=[];return _e.test(a)&&p.push(""),a.replace(Pe,function(v,S,D,O){p.push(D?O.replace(Ve,"$1"):S||v)}),p});function rn(a){if(typeof a=="string"||on(a))return a;var p=a+"";return p=="0"&&1/a==-c?"-0":p}function mt(a){if(a!=null){try{return Ji.call(a)}catch{}try{return a+""}catch{}}return""}function zn(a,p){return ze(qn(a,p),1)}function qn(a,p){var v=lt(a)?ra:xa;return v(a,oo(p))}function _r(a,p){if(typeof a!="function"||p&&typeof p!="function")throw new TypeError(n);var v=function(){var S=arguments,D=p?p.apply(this,S):S[0],O=v.cache;if(O.has(D))return O.get(D);var Y=a.apply(this,S);return v.cache=O.set(D,Y),Y};return v.cache=new(_r.Cache||U),v}_r.Cache=U;function nn(a,p){return a===p||a!==a&&p!==p}function Er(a){return ft(a)&&vt.call(a,"callee")&&(!ha.call(a,"callee")||Jt.call(a)==f)}var lt=Array.isArray;function He(a){return a!=null&&Gn(a.length)&&!fo(a)}function ft(a){return Rt(a)&&He(a)}function fo(a){var p=Dt(a)?Jt.call(a):"";return p==A||p==L}function Gn(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=l}function Dt(a){var p=typeof a;return!!a&&(p=="object"||p=="function")}function Rt(a){return!!a&&typeof a=="object"}function on(a){return typeof a=="symbol"||Rt(a)&&Jt.call(a)==X}var sn=Ki?Vi(Ki):io;function an(a){return a==null?"":Tt(a)}function Kn(a,p,v){var S=a==null?void 0:Bn(a,p);return S===void 0?v:S}function Vn(a,p){return a!=null&&lo(a,p,$a)}function er(a){return He(a)?Me(a):so(a)}function Yn(a){return a}function po(a){return Ar(a)?ia(rn(a)):xr(a)}t.exports=zn}(Hi,Hi.exports);var a1=Hi.exports;const qf=vn(a1);function l1(t,e,r){let n=[];t.filterProperties.length&&t.filterProperties.forEach(o=>{const s={},c=f=>o.format==="date"?On(f).unix():parseInt(f,10);e.forEach(f=>{var d;if(o.type==="range"){if(Array.isArray(f[o.key])){const g=[c(f[o.key][0]),c(f[o.key][1])];s.min=s.min!==void 0?Math.min(s.min,g[0]):g[0],s.max=s.max!==void 0?Math.max(s.max,g[1]):g[1]}else{const g=c(f[o.key]);s.min=s.min!==void 0?Math.min(s.min,g):g,s.max=s.max!==void 0?Math.max(s.max,g):g}return}Array.isArray(f[o.key])?f[o.key].forEach(g=>{s[g]=void 0}):o.type==="spatial"?(s.geometry=void 0,s.mode=o.mode||"intersects"):(d=o.key)!=null&&d.includes(".")?zf(qf(r.items,o.key)).filter(g=>g).forEach(g=>{s[g]=void 0}):s[f[o.key]]=void 0});const l=o.key||o.keys.join("|");r.filters[l]=Object.assign({type:o.type||"multiselect",dirty:o.state?!1:void 0,key:l},o.type==="range"?{min:s.min,max:s.max,format:o.format}:{},o),r.filters[l].state=Object.assign({},s,o.state)}),t.matchAllWhenEmpty!==!1&&(r.results=r.sortResults(e),r.requestUpdate()),t.aggregateResults&&(n=Array.from(new Set(e.reduce((o,s)=>o.concat(s[t.aggregateResults]),[]))).sort((o,s)=>o.localeCompare(s)));const i=[];return Object.values(r.filters).forEach(o=>{o.type==="text"?o.keys.forEach(s=>{i.includes(s)||i.push(s)}):(o.type==="select"||o.type==="multiselect")&&(i.includes(o.key)||i.push(o.key))}),l0(e,Object.assign({keys:i},t.fuseConfig)),n}async function c1(t,e,r){var i;let n;(i=r.config)!=null&&i.externalFilter?n=await p0(e,r.filters,t):n=await c0(e,r.filters,t),r.results=r.sortResults(n)}function u1(t,e,r){const n=`filter-${t.key}`.replace("|","-");switch(t.type){case"text":return V`<eox-itemfilter-text
749
+ `}}Ar=new WeakSet,rl=function(r){y1(r,this)},Gp=function(r){g1(r,this)},customElements.define("eox-itemfilter-chips",m1);const Sp=Object.freeze({aggregateResults:void 0,autoSpreadSingle:!1,enableHighlighting:!1,externalFilter:()=>{},filterProperties:[],fuseConfig:{},inlineMode:!1,matchAllWhenEmpty:!0,showResults:!0,idProperty:"id",titleProperty:"title",subTitleProperty:void 0,expandMultipleFilters:!0,expandResults:!0,expandMultipleResults:!0});var b1=200,ba="__lodash_hash_undefined__",w1=1/0,$1="[object Function]",x1="[object GeneratorFunction]",S1=/[\\^$.*+?()[\]{}|]/g,A1=/^\[object .+?Constructor\]$/,_1=typeof Ve=="object"&&Ve&&Ve.Object===Object&&Ve,E1=typeof self=="object"&&self&&self.Object===Object&&self,wa=_1||E1||Function("return this")();function M1(t,e){var r=t?t.length:0;return!!r&&C1(t,e,0)>-1}function P1(t,e,r){for(var n=-1,i=t?t.length:0;++n<i;)if(r(e,t[n]))return!0;return!1}function O1(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function C1(t,e,r){if(e!==e)return O1(t,k1,r);for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}function k1(t){return t!==t}function L1(t,e){return t.has(e)}function T1(t,e){return t==null?void 0:t[e]}function R1(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function Ap(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var D1=Array.prototype,I1=Function.prototype,_p=Object.prototype,$a=wa["__core-js_shared__"],Ep=function(){var t=/[^.]+$/.exec($a&&$a.keys&&$a.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Mp=I1.toString,xa=_p.hasOwnProperty,j1=_p.toString,B1=RegExp("^"+Mp.call(xa).replace(S1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),N1=D1.splice,H1=Aa(wa,"Map"),Sa=Aa(wa,"Set"),qn=Aa(Object,"create");function $r(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function U1(){this.__data__=qn?qn(null):{}}function F1(t){return this.has(t)&&delete this.__data__[t]}function W1(t){var e=this.__data__;if(qn){var r=e[t];return r===ba?void 0:r}return xa.call(e,t)?e[t]:void 0}function z1(t){var e=this.__data__;return qn?e[t]!==void 0:xa.call(e,t)}function q1(t,e){var r=this.__data__;return r[t]=qn&&e===void 0?ba:e,this}$r.prototype.clear=U1,$r.prototype.delete=F1,$r.prototype.get=W1,$r.prototype.has=z1,$r.prototype.set=q1;function Qr(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function G1(){this.__data__=[]}function V1(t){var e=this.__data__,r=ro(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():N1.call(e,r,1),!0}function K1(t){var e=this.__data__,r=ro(e,t);return r<0?void 0:e[r][1]}function Y1(t){return ro(this.__data__,t)>-1}function J1(t,e){var r=this.__data__,n=ro(r,t);return n<0?r.push([t,e]):r[n][1]=e,this}Qr.prototype.clear=G1,Qr.prototype.delete=V1,Qr.prototype.get=K1,Qr.prototype.has=Y1,Qr.prototype.set=J1;function en(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function X1(){this.__data__={hash:new $r,map:new(H1||Qr),string:new $r}}function Z1(t){return no(this,t).delete(t)}function Q1(t){return no(this,t).get(t)}function ew(t){return no(this,t).has(t)}function tw(t,e){return no(this,t).set(t,e),this}en.prototype.clear=X1,en.prototype.delete=Z1,en.prototype.get=Q1,en.prototype.has=ew,en.prototype.set=tw;function to(t){var e=-1,r=t?t.length:0;for(this.__data__=new en;++e<r;)this.add(t[e])}function rw(t){return this.__data__.set(t,ba),this}function nw(t){return this.__data__.has(t)}to.prototype.add=to.prototype.push=rw,to.prototype.has=nw;function ro(t,e){for(var r=t.length;r--;)if(fw(t[r][0],e))return r;return-1}function iw(t){if(!Pp(t)||lw(t))return!1;var e=pw(t)||R1(t)?B1:A1;return e.test(cw(t))}function ow(t,e,r){var n=-1,i=M1,o=t.length,s=!0,l=[],a=l;if(r)s=!1,i=P1;else if(o>=b1){var u=e?null:sw(t);if(u)return Ap(u);s=!1,i=L1,a=new to}else a=e?[]:l;e:for(;++n<o;){var h=t[n],d=e?e(h):h;if(h=r||h!==0?h:0,s&&d===d){for(var m=a.length;m--;)if(a[m]===d)continue e;e&&a.push(d),l.push(h)}else i(a,d,r)||(a!==l&&a.push(d),l.push(h))}return l}var sw=Sa&&1/Ap(new Sa([,-0]))[1]==w1?function(t){return new Sa(t)}:hw;function no(t,e){var r=t.__data__;return aw(e)?r[typeof e=="string"?"string":"hash"]:r.map}function Aa(t,e){var r=T1(t,e);return iw(r)?r:void 0}function aw(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function lw(t){return!!Ep&&Ep in t}function cw(t){if(t!=null){try{return Mp.call(t)}catch{}try{return t+""}catch{}}return""}function uw(t){return t&&t.length?ow(t):[]}function fw(t,e){return t===e||t!==t&&e!==e}function pw(t){var e=Pp(t)?j1.call(t):"";return e==$1||e==x1}function Pp(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function hw(){}var dw=uw;const Op=kn(dw);var io={exports:{}};io.exports,function(t,e){var r=200,n="Expected a function",i="__lodash_hash_undefined__",o=1,s=2,l=1/0,a=9007199254740991,u="[object Arguments]",h="[object Array]",d="[object Boolean]",m="[object Date]",v="[object Error]",S="[object Function]",_="[object GeneratorFunction]",I="[object Map]",j="[object Number]",H="[object Object]",W="[object Promise]",Z="[object RegExp]",z="[object Set]",U="[object String]",ee="[object Symbol]",oe="[object WeakMap]",we="[object ArrayBuffer]",de="[object DataView]",ne="[object Float32Array]",Ne="[object Float64Array]",et="[object Int8Array]",R="[object Int16Array]",M="[object Int32Array]",E="[object Uint8Array]",B="[object Uint8ClampedArray]",O="[object Uint16Array]",Y="[object Uint32Array]",J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ye=/^\w*$/,_e=/^\./,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ce=/[\\^$.*+?()[\]{}|]/g,Ye=/\\(\\)?/g,Le=/^\[object .+?Constructor\]$/,Je=/^(?:0|[1-9]\d*)$/,ce={};ce[ne]=ce[Ne]=ce[et]=ce[R]=ce[M]=ce[E]=ce[B]=ce[O]=ce[Y]=!0,ce[u]=ce[h]=ce[we]=ce[d]=ce[de]=ce[m]=ce[v]=ce[S]=ce[I]=ce[j]=ce[H]=ce[Z]=ce[z]=ce[U]=ce[oe]=!1;var Te=typeof Ve=="object"&&Ve&&Ve.Object===Object&&Ve,se=typeof self=="object"&&self&&self.Object===Object&&self,Re=Te||se||Function("return this")(),Ot=e&&!e.nodeType&&e,Ee=Ot&&!0&&t&&!t.nodeType&&t,_a=Ee&&Ee.exports===Ot,co=_a&&Te.process,uo=function(){try{return co&&co.binding("util")}catch{}}(),fo=uo&&uo.isTypedArray;function Ea(c,p){for(var b=-1,A=c?c.length:0,D=Array(A);++b<A;)D[b]=p(c[b],b,c);return D}function Vn(c,p){for(var b=-1,A=p.length,D=c.length;++b<A;)c[D+b]=p[b];return c}function Ma(c,p){for(var b=-1,A=c?c.length:0;++b<A;)if(p(c[b],b,c))return!0;return!1}function Pa(c){return function(p){return p==null?void 0:p[c]}}function Oa(c,p){for(var b=-1,A=Array(c);++b<c;)A[b]=p(b);return A}function po(c){return function(p){return c(p)}}function Ca(c,p){return c==null?void 0:c[p]}function Kn(c){var p=!1;if(c!=null&&typeof c.toString!="function")try{p=!!(c+"")}catch{}return p}function ka(c){var p=-1,b=Array(c.size);return c.forEach(function(A,D){b[++p]=[D,A]}),b}function La(c,p){return function(b){return c(p(b))}}function Ta(c){var p=-1,b=Array(c.size);return c.forEach(function(A){b[++p]=A}),b}var Ra=Array.prototype,Da=Function.prototype,nn=Object.prototype,Yn=Re["__core-js_shared__"],ho=function(){var c=/[^.]+$/.exec(Yn&&Yn.keys&&Yn.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),go=Da.toString,wt=nn.hasOwnProperty,nr=nn.toString,Ia=RegExp("^"+go.call(wt).replace(Ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),on=Re.Symbol,yo=Re.Uint8Array,ja=nn.propertyIsEnumerable,Ba=Ra.splice,_r=on?on.isConcatSpreadable:void 0,Na=La(Object.keys,Object),sn=sr(Re,"DataView"),Er=sr(Re,"Map"),Ct=sr(Re,"Promise"),an=sr(Re,"Set"),Jn=sr(Re,"WeakMap"),Mr=sr(Object,"create"),vo=$t(sn),Ha=$t(Er),mo=$t(Ct),Ua=$t(an),bo=$t(Jn),ln=on?on.prototype:void 0,Pr=ln?ln.valueOf:void 0,ir=ln?ln.toString:void 0;function tt(c){var p=-1,b=c?c.length:0;for(this.clear();++p<b;){var A=c[p];this.set(A[0],A[1])}}function wo(){this.__data__=Mr?Mr(null):{}}function Fa(c){return this.has(c)&&delete this.__data__[c]}function Wa(c){var p=this.__data__;if(Mr){var b=p[c];return b===i?void 0:b}return wt.call(p,c)?p[c]:void 0}function za(c){var p=this.__data__;return Mr?p[c]!==void 0:wt.call(p,c)}function Xn(c,p){var b=this.__data__;return b[c]=Mr&&p===void 0?i:p,this}tt.prototype.clear=wo,tt.prototype.delete=Fa,tt.prototype.get=Wa,tt.prototype.has=za,tt.prototype.set=Xn;function f(c){var p=-1,b=c?c.length:0;for(this.clear();++p<b;){var A=c[p];this.set(A[0],A[1])}}function y(){this.__data__=[]}function x(c){var p=this.__data__,b=Ae(p,c);if(b<0)return!1;var A=p.length-1;return b==A?p.pop():Ba.call(p,b,1),!0}function w(c){var p=this.__data__,b=Ae(p,c);return b<0?void 0:p[b][1]}function P(c){return Ae(this.__data__,c)>-1}function q(c,p){var b=this.__data__,A=Ae(b,c);return A<0?b.push([c,p]):b[A][1]=p,this}f.prototype.clear=y,f.prototype.delete=x,f.prototype.get=w,f.prototype.has=P,f.prototype.set=q;function G(c){var p=-1,b=c?c.length:0;for(this.clear();++p<b;){var A=c[p];this.set(A[0],A[1])}}function k(){this.__data__={hash:new tt,map:new(Er||f),string:new tt}}function L(c){return Nt(this,c).delete(c)}function te(c){return Nt(this,c).get(c)}function ae(c){return Nt(this,c).has(c)}function F(c,p){return Nt(this,c).set(c,p),this}G.prototype.clear=k,G.prototype.delete=L,G.prototype.get=te,G.prototype.has=ae,G.prototype.set=F;function ue(c){var p=-1,b=c?c.length:0;for(this.__data__=new G;++p<b;)this.add(c[p])}function rt(c){return this.__data__.set(c,i),this}function Fe(c){return this.__data__.has(c)}ue.prototype.add=ue.prototype.push=rt,ue.prototype.has=Fe;function N(c){this.__data__=new f(c)}function ie(){this.__data__=new f}function V(c){return this.__data__.delete(c)}function $e(c){return this.__data__.get(c)}function De(c){return this.__data__.has(c)}function ke(c,p){var b=this.__data__;if(b instanceof f){var A=b.__data__;if(!Er||A.length<r-1)return A.push([c,p]),this;b=this.__data__=new G(A)}return b.set(c,p),this}N.prototype.clear=ie,N.prototype.delete=V,N.prototype.get=$e,N.prototype.has=De,N.prototype.set=ke;function Me(c,p){var b=ct(c)||Rr(c)?Oa(c.length,String):[],A=b.length,D=!!A;for(var C in c)(p||wt.call(c,C))&&!(D&&(C=="length"||ei(C,A)))&&b.push(C);return b}function Ae(c,p){for(var b=c.length;b--;)if(yn(c[b][0],p))return b;return-1}var Xe=Ka($o);function ze(c,p,b,A,D){var C=-1,Q=c.length;for(b||(b=Po),D||(D=[]);++C<Q;){var fe=c[C];p>0&&b(fe)?p>1?ze(fe,p-1,b,A,D):Vn(D,fe):A||(D[D.length]=fe)}return D}var kt=Ya();function $o(c,p){return c&&kt(c,p,ar)}function Zn(c,p){p=Lr(p,c)?[p]:Eo(p);for(var b=0,A=p.length;c!=null&&b<A;)c=c[gn(p[b++])];return b&&b==A?c:void 0}function cn(c){return nr.call(c)}function qa(c,p){return c!=null&&p in Object(c)}function un(c,p,b,A,D){return c===p?!0:c==null||p==null||!Ht(c)&&!Ut(p)?c!==c&&p!==p:jt(c,p,un,b,A,D)}function jt(c,p,b,A,D,C){var Q=ct(c),fe=ct(p),xe=h,Ie=h;Q||(xe=Lt(c),xe=xe==u?H:xe),fe||(Ie=Lt(p),Ie=Ie==u?H:Ie);var qe=xe==H&&!Kn(c),Ze=Ie==H&&!Kn(p),je=xe==Ie;if(je&&!qe)return C||(C=new N),Q||mn(c)?kr(c,p,b,A,D,C):or(c,p,xe,b,A,D,C);if(!(D&s)){var g=qe&&wt.call(c,"__wrapped__"),$=Ze&&wt.call(p,"__wrapped__");if(g||$){var T=g?c.value():c,re=$?p.value():p;return C||(C=new N),b(T,re,A,D,C)}}return je?(C||(C=new N),pn(c,p,b,A,D,C)):!1}function fn(c,p,b,A){var D=b.length,C=D,Q=!A;if(c==null)return!C;for(c=Object(c);D--;){var fe=b[D];if(Q&&fe[2]?fe[1]!==c[fe[0]]:!(fe[0]in c))return!1}for(;++D<C;){fe=b[D];var xe=fe[0],Ie=c[xe],qe=fe[1];if(Q&&fe[2]){if(Ie===void 0&&!(xe in c))return!1}else{var Ze=new N;if(A)var je=A(Ie,qe,xe,c,p,Ze);if(!(je===void 0?un(qe,Ie,A,o|s,Ze):je))return!1}}return!0}function xo(c){if(!Ht(c)||ti(c))return!1;var p=Co(c)||Kn(c)?Ia:Le;return p.test($t(c))}function So(c){return Ut(c)&&si(c.length)&&!!ce[nr.call(c)]}function Ao(c){return typeof c=="function"?c:c==null?ci:typeof c=="object"?ct(c)?Or(c[0],c[1]):Va(c):ko(c)}function _o(c){if(!ri(c))return Na(c);var p=[];for(var b in Object(c))wt.call(c,b)&&b!="constructor"&&p.push(b);return p}function Ga(c,p){var b=-1,A=He(c)?Array(c.length):[];return Xe(c,function(D,C,Q){A[++b]=p(D,C,Q)}),A}function Va(c){var p=Qn(c);return p.length==1&&p[0][2]?dn(p[0][0],p[0][1]):function(b){return b===c||fn(b,c,p)}}function Or(c,p){return Lr(c)&&hn(p)?dn(gn(c),p):function(b){var A=ai(b,c);return A===void 0&&A===p?li(b,c):un(p,A,void 0,o|s)}}function Cr(c){return function(p){return Zn(p,c)}}function Bt(c){if(typeof c=="string")return c;if(vn(c))return ir?ir.call(c):"";var p=c+"";return p=="0"&&1/c==-l?"-0":p}function Eo(c){return ct(c)?c:ni(c)}function Ka(c,p){return function(b,A){if(b==null)return b;if(!He(b))return c(b,A);for(var D=b.length,C=p?D:-1,Q=Object(b);(p?C--:++C<D)&&A(Q[C],C,Q)!==!1;);return b}}function Ya(c){return function(p,b,A){for(var D=-1,C=Object(p),Q=A(p),fe=Q.length;fe--;){var xe=Q[c?fe:++D];if(b(C[xe],xe,C)===!1)break}return p}}function kr(c,p,b,A,D,C){var Q=D&s,fe=c.length,xe=p.length;if(fe!=xe&&!(Q&&xe>fe))return!1;var Ie=C.get(c);if(Ie&&C.get(p))return Ie==p;var qe=-1,Ze=!0,je=D&o?new ue:void 0;for(C.set(c,p),C.set(p,c);++qe<fe;){var g=c[qe],$=p[qe];if(A)var T=Q?A($,g,qe,p,c,C):A(g,$,qe,c,p,C);if(T!==void 0){if(T)continue;Ze=!1;break}if(je){if(!Ma(p,function(re,me){if(!je.has(me)&&(g===re||b(g,re,A,D,C)))return je.add(me)})){Ze=!1;break}}else if(!(g===$||b(g,$,A,D,C))){Ze=!1;break}}return C.delete(c),C.delete(p),Ze}function or(c,p,b,A,D,C,Q){switch(b){case de:if(c.byteLength!=p.byteLength||c.byteOffset!=p.byteOffset)return!1;c=c.buffer,p=p.buffer;case we:return!(c.byteLength!=p.byteLength||!A(new yo(c),new yo(p)));case d:case m:case j:return yn(+c,+p);case v:return c.name==p.name&&c.message==p.message;case Z:case U:return c==p+"";case I:var fe=ka;case z:var xe=C&s;if(fe||(fe=Ta),c.size!=p.size&&!xe)return!1;var Ie=Q.get(c);if(Ie)return Ie==p;C|=o,Q.set(c,p);var qe=kr(fe(c),fe(p),A,D,C,Q);return Q.delete(c),qe;case ee:if(Pr)return Pr.call(c)==Pr.call(p)}return!1}function pn(c,p,b,A,D,C){var Q=D&s,fe=ar(c),xe=fe.length,Ie=ar(p),qe=Ie.length;if(xe!=qe&&!Q)return!1;for(var Ze=xe;Ze--;){var je=fe[Ze];if(!(Q?je in p:wt.call(p,je)))return!1}var g=C.get(c);if(g&&C.get(p))return g==p;var $=!0;C.set(c,p),C.set(p,c);for(var T=Q;++Ze<xe;){je=fe[Ze];var re=c[je],me=p[je];if(A)var pe=Q?A(me,re,je,p,c,C):A(re,me,je,c,p,C);if(!(pe===void 0?re===me||b(re,me,A,D,C):pe)){$=!1;break}T||(T=je=="constructor")}if($&&!T){var Qe=c.constructor,Ft=p.constructor;Qe!=Ft&&"constructor"in c&&"constructor"in p&&!(typeof Qe=="function"&&Qe instanceof Qe&&typeof Ft=="function"&&Ft instanceof Ft)&&($=!1)}return C.delete(c),C.delete(p),$}function Nt(c,p){var b=c.__data__;return Oo(p)?b[typeof p=="string"?"string":"hash"]:b.map}function Qn(c){for(var p=ar(c),b=p.length;b--;){var A=p[b],D=c[A];p[b]=[A,D,hn(D)]}return p}function sr(c,p){var b=Ca(c,p);return xo(b)?b:void 0}var Lt=cn;(sn&&Lt(new sn(new ArrayBuffer(1)))!=de||Er&&Lt(new Er)!=I||Ct&&Lt(Ct.resolve())!=W||an&&Lt(new an)!=z||Jn&&Lt(new Jn)!=oe)&&(Lt=function(c){var p=nr.call(c),b=p==H?c.constructor:void 0,A=b?$t(b):void 0;if(A)switch(A){case vo:return de;case Ha:return I;case mo:return W;case Ua:return z;case bo:return oe}return p});function Mo(c,p,b){p=Lr(p,c)?[p]:Eo(p);for(var A,D=-1,Q=p.length;++D<Q;){var C=gn(p[D]);if(!(A=c!=null&&b(c,C)))break;c=c[C]}if(A)return A;var Q=c?c.length:0;return!!Q&&si(Q)&&ei(C,Q)&&(ct(c)||Rr(c))}function Po(c){return ct(c)||Rr(c)||!!(_r&&c&&c[_r])}function ei(c,p){return p=p??a,!!p&&(typeof c=="number"||Je.test(c))&&c>-1&&c%1==0&&c<p}function Lr(c,p){if(ct(c))return!1;var b=typeof c;return b=="number"||b=="symbol"||b=="boolean"||c==null||vn(c)?!0:ye.test(c)||!J.test(c)||p!=null&&c in Object(p)}function Oo(c){var p=typeof c;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?c!=="__proto__":c===null}function ti(c){return!!ho&&ho in c}function ri(c){var p=c&&c.constructor,b=typeof p=="function"&&p.prototype||nn;return c===b}function hn(c){return c===c&&!Ht(c)}function dn(c,p){return function(b){return b==null?!1:b[c]===p&&(p!==void 0||c in Object(b))}}var ni=Tr(function(c){c=bn(c);var p=[];return _e.test(c)&&p.push(""),c.replace(Pe,function(b,A,D,C){p.push(D?C.replace(Ye,"$1"):A||b)}),p});function gn(c){if(typeof c=="string"||vn(c))return c;var p=c+"";return p=="0"&&1/c==-l?"-0":p}function $t(c){if(c!=null){try{return go.call(c)}catch{}try{return c+""}catch{}}return""}function ii(c,p){return ze(oi(c,p),1)}function oi(c,p){var b=ct(c)?Ea:Ga;return b(c,Ao(p))}function Tr(c,p){if(typeof c!="function"||p&&typeof p!="function")throw new TypeError(n);var b=function(){var A=arguments,D=p?p.apply(this,A):A[0],C=b.cache;if(C.has(D))return C.get(D);var Q=c.apply(this,A);return b.cache=C.set(D,Q),Q};return b.cache=new(Tr.Cache||G),b}Tr.Cache=G;function yn(c,p){return c===p||c!==c&&p!==p}function Rr(c){return dt(c)&&wt.call(c,"callee")&&(!ja.call(c,"callee")||nr.call(c)==u)}var ct=Array.isArray;function He(c){return c!=null&&si(c.length)&&!Co(c)}function dt(c){return Ut(c)&&He(c)}function Co(c){var p=Ht(c)?nr.call(c):"";return p==S||p==_}function si(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=a}function Ht(c){var p=typeof c;return!!c&&(p=="object"||p=="function")}function Ut(c){return!!c&&typeof c=="object"}function vn(c){return typeof c=="symbol"||Ut(c)&&nr.call(c)==ee}var mn=fo?po(fo):So;function bn(c){return c==null?"":Bt(c)}function ai(c,p,b){var A=c==null?void 0:Zn(c,p);return A===void 0?b:A}function li(c,p){return c!=null&&Mo(c,p,qa)}function ar(c){return He(c)?Me(c):_o(c)}function ci(c){return c}function ko(c){return Lr(c)?Pa(gn(c)):Cr(c)}t.exports=ii}(io,io.exports);var gw=io.exports;const Cp=kn(gw);function yw(t,e,r){let n=[];t.filterProperties.length&&t.filterProperties.forEach(o=>{const s={},l=u=>o.format==="date"?Wn(u).unix():parseInt(u,10);e.forEach(u=>{var h;if(o.type==="range"){if(Array.isArray(u[o.key])){const d=[l(u[o.key][0]),l(u[o.key][1])];s.min=s.min!==void 0?Math.min(s.min,d[0]):d[0],s.max=s.max!==void 0?Math.max(s.max,d[1]):d[1]}else{const d=l(u[o.key]);s.min=s.min!==void 0?Math.min(s.min,d):d,s.max=s.max!==void 0?Math.max(s.max,d):d}return}Array.isArray(u[o.key])?u[o.key].forEach(d=>{s[d]=void 0}):o.type==="spatial"?(s.geometry=void 0,s.mode=o.mode||"intersects"):(h=o.key)!=null&&h.includes(".")?Op(Cp(r.items,o.key)).filter(d=>d).forEach(d=>{s[d]=void 0}):s[u[o.key]]=void 0});const a=o.key||o.keys.join("|");r.filters[a]=Object.assign({type:o.type||"multiselect",dirty:o.state?!1:void 0,key:a},o.type==="range"?{min:s.min,max:s.max,format:o.format}:{},o),r.filters[a].state=Object.assign({},s,o.state)}),t.matchAllWhenEmpty!==!1&&(r.results=r.sortResults(e),r.requestUpdate()),t.aggregateResults&&(n=Array.from(new Set(e.reduce((o,s)=>o.concat(s[t.aggregateResults]),[]))).sort((o,s)=>o.localeCompare(s)));const i=[];return Object.values(r.filters).forEach(o=>{o.type==="text"?o.keys.forEach(s=>{i.includes(s)||i.push(s)}):(o.type==="select"||o.type==="multiselect")&&(i.includes(o.key)||i.push(o.key))}),v0(e,Object.assign({keys:i},t.fuseConfig)),n}async function vw(t,e,r){var i;let n;(i=r.config)!=null&&i.externalFilter?n=await $0(e,r.filters,t):n=await m0(e,r.filters,t),r.results=r.sortResults(n)}function mw(t,e,r){const n=`filter-${t.key}`.replace("|","-");switch(t.type){case"text":return X`<eox-itemfilter-text
731
750
  data-type="filter"
732
751
  slot="filter"
733
752
  id="${n}"
@@ -735,7 +754,7 @@ li.highlighted,
735
754
  .filterObject=${t}
736
755
  .unstyled=${r.unstyled}
737
756
  @filter=${()=>r.search()}
738
- ></eox-itemfilter-text>`;case"multiselect":case"select":return V`
757
+ ></eox-itemfilter-text>`;case"multiselect":case"select":return X`
739
758
  <eox-itemfilter-select
740
759
  .inlineMode=${r.config.inlineMode||!1}
741
760
  data-type="filter"
@@ -743,12 +762,12 @@ li.highlighted,
743
762
  .tabIndex=${e}
744
763
  .filterObject=${t}
745
764
  slot="filter"
746
- .suggestions="${zf(qf(r.items,t.key)).filter(i=>i)}"
765
+ .suggestions="${Op(Cp(r.items,t.key)).filter(i=>i)}"
747
766
  type="${t.type}"
748
767
  .unstyled=${r.unstyled}
749
768
  @filter=${()=>r.search()}
750
769
  ></eox-itemfilter-select>
751
- `;case"range":return V`
770
+ `;case"range":return X`
752
771
  <eox-itemfilter-range
753
772
  id="${n}"
754
773
  data-type="filter"
@@ -758,7 +777,7 @@ li.highlighted,
758
777
  .unstyled=${r.unstyled}
759
778
  @filter=${()=>r.search()}
760
779
  ></eox-itemfilter-range>
761
- `;case"spatial":return V`
780
+ `;case"spatial":return X`
762
781
  <eox-itemfilter-spatial
763
782
  id="${n}"
764
783
  data-type="filter"
@@ -767,8 +786,8 @@ li.highlighted,
767
786
  slot="filter"
768
787
  @filter=${()=>r.search()}
769
788
  ></eox-itemfilter-spatial>
770
- `;default:return V``}}function f1(t,e){return[...t].sort((r,n)=>r[e.titleProperty].localeCompare(n[e.titleProperty]))}function p1(t,e,r){return V`
771
- ${Qe(t.dirty,()=>V`
789
+ `;default:return X``}}function bw(t,e){return[...t].sort((r,n)=>r[e.titleProperty].localeCompare(n[e.titleProperty]))}function ww(t,e,r){return X`
790
+ ${Ge(t.dirty,()=>X`
772
791
  <button
773
792
  type="button"
774
793
  tabindex=${e}
@@ -776,22 +795,22 @@ li.highlighted,
776
795
  class="reset-icon icon"
777
796
  @click=${n=>{const i=n.target.parentElement.querySelector("[slot=filter]");i&&typeof i.reset=="function"&&i.reset(),r.search(),r.requestUpdate()}}
778
797
  >
779
- ${r.unstyled?"Reset":ve}
798
+ ${r.unstyled?"Reset":be}
780
799
  </button>
781
800
  `)}
782
- `}function h1(t){t.renderRoot.querySelectorAll("[data-type='filter']").forEach(e=>{typeof e.reset=="function"&&e.reset()}),t.search()}class Gf extends Of{constructor(){super();nt(this,zr);nt(this,Ln,[]);nt(this,Fr,[]);nt(this,yt,Bf);this.config=null,this.items=null,this.filters={},this.selectedResult=null,this.search=Ri(this.searchHandler,100,{leading:!0})}static get properties(){return{config:{attribute:!1,type:Object},items:{attribute:!1,type:Object},results:{state:!0,attribute:!1,type:Object},filters:{state:!0,attribute:!1,type:Object},selectedResult:{attribute:!1,type:Object},unstyled:{type:Boolean}}}apply(){ho(this,Ln,l1(pt(this,yt),pt(this,Fr),this)),this.search()}async searchHandler(){var r;await c1(pt(this,yt),pt(this,Fr),this),this.dispatchEvent(new CustomEvent("filter",{detail:{results:this.results,filters:this.filters},bubbles:!0,composed:!0})),(r=this.config)!=null&&r.inlineMode&&this.renderRoot.querySelector("eox-itemfilter-container").updateInline(),this.requestUpdate()}sortResults(r){return f1(r,pt(this,yt))}resetFilters(){h1(this)}firstUpdated(r){var n;ho(this,yt,{...Bf,...this.config}),ho(this,Fr,((n=this.items)==null?void 0:n.map((i,o)=>Object.assign({id:`item-${o}`},i)))||[]),this.apply()}updated(r){(r.has("config")||r.has("items"))&&this.firstUpdated()}updateResult(r){this.selectedResult=r.detail,this.dispatchEvent(new CustomEvent("select",{detail:this.selectedResult,bubbles:!0,composed:!0})),this.requestUpdate()}render(){var r,n,i;return V`
801
+ `}function $w(t){t.renderRoot.querySelectorAll("[data-type='filter']").forEach(e=>{typeof e.reset=="function"&&e.reset()}),t.search()}class kp extends dp{constructor(){super();nt(this,rn);nt(this,Gn,[]);nt(this,tn,[]);nt(this,ht,Sp);this.config=null,this.items=null,this.filters={},this.selectedResult=null,this.search=eo(this.searchHandler,100,{leading:!0})}static get properties(){return{config:{attribute:!1,type:Object},items:{attribute:!1,type:Object},results:{state:!0,attribute:!1,type:Object},filters:{state:!0,attribute:!1,type:Object},selectedResult:{attribute:!1,type:Object},unstyled:{type:Boolean}}}apply(){Lo(this,Gn,yw(ut(this,ht),ut(this,tn),this)),this.search()}async searchHandler(){var r;await vw(ut(this,ht),ut(this,tn),this),this.dispatchEvent(new CustomEvent("filter",{detail:{results:this.results,filters:this.filters},bubbles:!0,composed:!0})),(r=this.config)!=null&&r.inlineMode&&this.renderRoot.querySelector("eox-itemfilter-container").updateInline(),this.requestUpdate()}sortResults(r){return bw(r,ut(this,ht))}resetFilters(){$w(this)}firstUpdated(r){var n;Lo(this,ht,{...Sp,...this.config}),Lo(this,tn,((n=this.items)==null?void 0:n.map((i,o)=>Object.assign({id:i[this.config.idProperty]||`item-${o}`},i)))||[]),this.apply()}updated(r){(r.has("config")||r.has("items"))&&this.firstUpdated()}updateResult(r){this.selectedResult=r.detail,this.dispatchEvent(new CustomEvent("select",{detail:this.selectedResult,bubbles:!0,composed:!0})),this.requestUpdate()}render(){var r,n,i;return X`
783
802
  <style>
784
- ${Ap}
785
- ${!this.unstyled&&yn}
786
- ${!this.unstyled&&_p}
803
+ ${ch}
804
+ ${!this.unstyled&&Pn}
805
+ ${!this.unstyled&&uh}
787
806
  ${this.styleOverride}
788
807
  </style>
789
808
  <form
790
809
  id="itemfilter"
791
- class=${(r=this.config)!=null&&r.inlineMode?"inline":ve}
810
+ class=${(r=this.config)!=null&&r.inlineMode?"inline":be}
792
811
  @submit="${o=>o.preventDefault()}"
793
812
  >
794
- ${Qe((n=this.config)==null?void 0:n.filterProperties,()=>V`
813
+ ${Ge((n=this.config)==null?void 0:n.filterProperties,()=>X`
795
814
  <eox-itemfilter-container
796
815
  .filters=${this.filters}
797
816
  .filterProperties=${this.config.filterProperties}
@@ -800,23 +819,24 @@ li.highlighted,
800
819
  @filter=${()=>this.search()}
801
820
  >
802
821
  <section slot="section">
803
- ${Qe(!this.config.inlineMode,()=>V`
822
+ ${Ge(!this.config.inlineMode,()=>X`
804
823
  <slot name="filterstitle"
805
824
  ><h6 class="main-heading">Filters</h6></slot
806
825
  >
807
826
  `)}
808
827
  <ul id="filters">
809
- ${Xn(Object.values(this.filters),(o,s)=>V` <li>
828
+ ${pi(Object.values(this.filters),(o,s)=>X` <li>
810
829
  <eox-itemfilter-expandcontainer
811
830
  .filterObject=${o}
831
+ @details-toggled=${l=>lp(l,ut(this,ht),this)}
812
832
  data-details="${o.key}"
813
833
  >
814
- ${Se(this,zr,cp).call(this,o,Sf(s,1))}
815
- ${Se(this,zr,lp).call(this,o,Sf(s,2))}
834
+ ${Se(this,rn,Kp).call(this,o,ap(s,1))}
835
+ ${Se(this,rn,Vp).call(this,o,ap(s,2))}
816
836
  </eox-itemfilter-expandcontainer>
817
837
  </li>`)}
818
838
  </ul>
819
- ${Qe(!this.config.inlineMode&&pt(this,yt).filterProperties&&!this.config.inlineMode&&pt(this,yt).filterProperties&&Fs(this.filters),()=>V`
839
+ ${Ge(!this.config.inlineMode&&ut(this,ht).filterProperties&&!this.config.inlineMode&&ut(this,ht).filterProperties&&pa(this.filters),()=>X`
820
840
  <button
821
841
  type="button"
822
842
  id="filter-reset"
@@ -830,15 +850,15 @@ li.highlighted,
830
850
  </section>
831
851
  </eox-itemfilter-container>
832
852
  `)}
833
- ${Qe(((i=pt(this,yt))==null?void 0:i.showResults)&&this.results,()=>V`
853
+ ${Ge(((i=ut(this,ht))==null?void 0:i.showResults)&&this.results,()=>X`
834
854
  <eox-itemfilter-results
835
- .config=${pt(this,yt)}
855
+ .config=${ut(this,ht)}
836
856
  .results=${this.results}
837
857
  .filters=${this.filters}
838
- .resultAggregation=${pt(this,Ln)}
858
+ .resultAggregation=${ut(this,Gn)}
839
859
  .selectedResult=${this.selectedResult}
840
860
  @result=${this.updateResult}
841
861
  ></eox-itemfilter-results>
842
862
  `)}
843
863
  </form>
844
- `}}Ln=new WeakMap,Fr=new WeakMap,yt=new WeakMap,zr=new WeakSet,lp=function(r,n){return u1(r,n,this)},cp=function(r,n){return p1(r,n,this)},customElements.define("eox-itemfilter",Gf),ge.EOxItemFilter=Gf,Object.defineProperty(ge,Symbol.toStringTag,{value:"Module"})});
864
+ `}}Gn=new WeakMap,tn=new WeakMap,ht=new WeakMap,rn=new WeakSet,Vp=function(r,n){return mw(r,n,this)},Kp=function(r,n){return ww(r,n,this)},customElements.define("eox-itemfilter",kp),ge.EOxItemFilter=kp,Object.defineProperty(ge,Symbol.toStringTag,{value:"Module"})});