@eox/itemfilter 0.14.1 → 0.14.2-dev.1721300053.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.
- package/README.md +3 -21
- package/dist/eox-itemfilter.js +8518 -6797
- package/dist/eox-itemfilter.umd.cjs +617 -804
- package/package.json +6 -3
- package/test/cases/general/accordion.js +60 -0
- package/test/cases/general/disable-highlight.js +21 -0
- package/test/cases/general/external-filter.js +38 -0
- package/test/cases/general/highlight-result.js +16 -0
- package/test/cases/general/index.js +11 -0
- package/test/cases/general/multiple-filters.js +21 -0
- package/test/cases/general/nested-property.js +28 -0
- package/test/cases/general/search-bar.js +12 -0
- package/test/cases/general/search-result.js +14 -0
- package/test/cases/general/spatial-filter.js +22 -0
- package/test/cases/state/custom-order.js +24 -0
- package/test/cases/state/index.js +6 -0
- package/test/cases/state/render-checkbox.js +17 -0
- package/test/cases/state/result-pre-checked.js +20 -0
- package/test/cases/state/results-with-pre-set-filters.js +30 -0
- package/test/general.cy.js +95 -0
- package/test/state.cy.js +75 -0
- package/test/testItems.json +97 -17
- package/test/general.cy.ts +0 -230
- package/test/state.cy.ts +0 -100
|
@@ -1,62 +1,30 @@
|
|
|
1
|
-
(function(
|
|
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 Kf=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)||Kf("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)?Kf("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);/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/var
|
|
5
|
+
*/var Vf,Ui,Yf,Be,Jf,Ma,Pa,Zf,Oa,Xf,Qf,Fi,dr,Ca,ep,Yt,tp,rp,np,gr,ip,ka,Wi,op,zi,sp,yr,La,ap,Ln,Wr,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;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:
|
|
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");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const
|
|
14
|
-
\f\r]`,
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
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,Fa=/>/g,rr=RegExp(`>|${bo}(?:([^\\s"'>=/]+)(${bo}*=${bo}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Wa=/'/g,za=/"/g,qa=/^(?:script|style|textarea|title)$/i,$p=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),K=$p(1),Nt=Symbol.for("lit-noChange"),be=Symbol.for("lit-nothing"),Ga=new WeakMap,nr=tr.createTreeWalker(tr,129);function Va(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ba!==void 0?Ba.createHTML(e):e}const Ka=(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=Fa: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:Wa):s===za||s===Wa?s=rr:s===Ua||s===Fa?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[Va(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]=Ka(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=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=ir(this,e,r),pn(e)?e===be||e==null||e===""?(this._$AH!==be&&this._$AR(),this._$AH=be):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!==be&&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(Va(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=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=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===be?e=be:e!==be&&(e+=(f??"")+o[l+1]),this._$AH[l]=f}s&&!i&&this.j(e)}j(e){e===be?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===be?void 0:e}}class Za extends gn{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==be)}}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)??be)===Nt)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 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:Ka,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};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/let
|
|
20
|
-
* @license
|
|
21
|
-
* Copyright 2017 Google LLC
|
|
22
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/const ke=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};/**
|
|
24
|
-
* @license
|
|
25
|
-
* Copyright 2017 Google LLC
|
|
26
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/const xo={attribute:!0,type:String,converter:cr,reflect:!1,hasChanged:Fr},wo=(t=xo,e,r)=>{const{kind:i,metadata:n}=r;let s=globalThis.litPropertyMetadata.get(n);if(s===void 0&&globalThis.litPropertyMetadata.set(n,s=new Map),s.set(r.name,t),i==="accessor"){const{name:o}=r;return{set(l){const a=e.get.call(this);e.set.call(this,l),this.requestUpdate(o,a,t)},init(l){return l!==void 0&&this.P(o,void 0,t),l}}}if(i==="setter"){const{name:o}=r;return function(l){const a=this[o];e.call(this,l),this.requestUpdate(o,a,t)}}throw Error("Unsupported decorator location: "+i)};function J(t){return(e,r)=>typeof r=="object"?wo(t,e,r):((i,n,s)=>{const o=n.hasOwnProperty(s);return n.constructor.createProperty(s,o?{...i,wrapped:!0}:i),o?Object.getOwnPropertyDescriptor(n,s):void 0})(t,e,r)}/**
|
|
28
|
-
* @license
|
|
29
|
-
* Copyright 2017 Google LLC
|
|
30
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
-
*/function Qe(t){return J({...t,state:!0,attribute:!1})}/**
|
|
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,(Vf=globalThis.litElementHydrateSupport)==null||Vf.call(globalThis,{LitElement:it});const $o=globalThis.litElementPolyfillSupport;$o==null||$o({LitElement:it}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.4");/**
|
|
32
20
|
* @license
|
|
33
21
|
* Copyright 2021 Google LLC
|
|
34
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
35
|
-
*/function
|
|
23
|
+
*/function*Xn(t,e){if(t!==void 0){let r=0;for(const n of t)yield e(n,r++)}}/**
|
|
36
24
|
* @license
|
|
37
25
|
* Copyright 2021 Google LLC
|
|
38
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
39
|
-
*/function
|
|
40
|
-
* @license
|
|
41
|
-
* Copyright 2017 Google LLC
|
|
42
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
|
-
*/const _n={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},En=t=>(...e)=>({_$litDirective$:t,values:e});let Sn=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,i){this._$Ct=e,this._$AM=r,this._$Ci=i}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};/**
|
|
44
|
-
* @license
|
|
45
|
-
* Copyright 2020 Google LLC
|
|
46
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
-
*/const{I:$o}=vo,An=()=>document.createComment(""),Zt=(t,e,r)=>{var s;const i=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){const o=i.insertBefore(An(),n),l=i.insertBefore(An(),n);r=new $o(o,l,t,t.options)}else{const o=r._$AB.nextSibling,l=r._$AM,a=l!==t;if(a){let c;(s=r._$AQ)==null||s.call(r,t),r._$AM=t,r._$AP!==void 0&&(c=t._$AU)!==l._$AU&&r._$AP(c)}if(o!==n||a){let c=r._$AA;for(;c!==o;){const f=c.nextSibling;i.insertBefore(c,n),c=f}}}return r},vt=(t,e,r=t)=>(t._$AI(e,r),t),_o={},Eo=(t,e=_o)=>t._$AH=e,So=t=>t._$AH,Wr=t=>{var i;(i=t._$AP)==null||i.call(t,!1,!0);let e=t._$AA;const r=t._$AB.nextSibling;for(;e!==r;){const n=e.nextSibling;e.remove(),e=n}};/**
|
|
48
|
-
* @license
|
|
49
|
-
* Copyright 2017 Google LLC
|
|
50
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
51
|
-
*/const Mn=(t,e,r)=>{const i=new Map;for(let n=e;n<=r;n++)i.set(t[n],n);return i},On=En(class extends Sn{constructor(t){if(super(t),t.type!==_n.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let i;r===void 0?r=e:e!==void 0&&(i=e);const n=[],s=[];let o=0;for(const l of t)n[o]=i?i(l,o):o,s[o]=r(l,o),o++;return{values:s,keys:n}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,i]){const n=So(t),{values:s,keys:o}=this.dt(e,r,i);if(!Array.isArray(n))return this.ut=o,s;const l=this.ut??(this.ut=[]),a=[];let c,f,p=0,b=n.length-1,y=0,E=s.length-1;for(;p<=b&&y<=E;)if(n[p]===null)p++;else if(n[b]===null)b--;else if(l[p]===o[y])a[y]=vt(n[p],s[y]),p++,y++;else if(l[b]===o[E])a[E]=vt(n[b],s[E]),b--,E--;else if(l[p]===o[E])a[E]=vt(n[p],s[E]),Zt(t,a[E+1],n[p]),p++,E--;else if(l[b]===o[y])a[y]=vt(n[b],s[y]),Zt(t,n[p],n[b]),b--,y++;else if(c===void 0&&(c=Mn(o,y,E),f=Mn(l,p,b)),c.has(l[p]))if(c.has(l[b])){const O=f.get(o[y]),z=O!==void 0?n[O]:null;if(z===null){const B=Zt(t,n[p]);vt(B,s[y]),a[y]=B}else a[y]=vt(z,s[y]),Zt(t,n[p],z),n[O]=null;y++}else Wr(n[b]),b--;else Wr(n[p]),p++;for(;y<=E;){const O=Zt(t,a[E+1]);vt(O,s[y]),a[y++]=O}for(;p<=b;){const O=n[p++];O!==null&&Wr(O)}return this.ut=o,Eo(t,a),lt}});/**
|
|
52
|
-
* @license
|
|
53
|
-
* Copyright 2017 Google LLC
|
|
54
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
55
|
-
*/let Xr=class extends Sn{constructor(e){if(super(e),this.it=se,e.type!==_n.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===se||e==null)return this._t=void 0,this.it=e;if(e===lt)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:[]}}};Xr.directiveName="unsafeHTML",Xr.resultType=1;const Pn=En(Xr);/**
|
|
56
|
-
* @license
|
|
57
|
-
* Copyright 2020 Google LLC
|
|
58
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
59
|
-
*/const Ln=Symbol.for(""),Ao=t=>{if((t==null?void 0:t.r)===Ln)return t==null?void 0:t._$litStatic$},Ot=t=>({_$litStatic$:t,r:Ln}),Cn=new Map,Mo=t=>(e,...r)=>{const i=r.length;let n,s;const o=[],l=[];let a,c=0,f=!1;for(;c<i;){for(a=e[c];c<i&&(s=r[c],(n=Ao(s))!==void 0);)a+=n+e[++c],f=!0;c!==i&&l.push(s),o.push(a),c++}if(c===i&&o.push(e[i]),f){const p=o.join("$$lit$$");(e=Cn.get(p))===void 0&&(o.raw=o,Cn.set(p,e=o)),r=l}return t(e,...r)},hr=Mo(U);(()=>{var t=Object.defineProperty,e=Math.pow,r=(u,d,x)=>d in u?t(u,d,{enumerable:!0,configurable:!0,writable:!0,value:x}):u[d]=x,i=(u,d,x)=>(r(u,typeof d!="symbol"?d+"":d,x),x),n=(u,d)=>` ${d&&d.length>0?d.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>`,s=":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}",o="pointers-overlap",l="pointers-min-distance",a="pointers-max-distance",c="range-dragging",f="data",p="min",b="max",y="step",E="round",O="type",z="theme",B="rtl",g="btt",m="disabled",w="keyboard-disabled",S="mousewheel-disabled",_="slider-width",A="slider-height",k="slider-radius",F="slider-bg",H="slider-bg-hover",I="slider-bg-fill",te="pointer-width",le="pointer-height",P="pointer-radius",L="pointer-bg",M="pointer-bg-hover",j="pointer-bg-focus",C="pointer-shadow",G="pointer-shadow-hover",Y="pointer-shadow-focus",oe="pointer-border",re="pointer-border-hover",ye="pointer-border-focus",ve="animate-onclick",Me="css-links",xe="vertical",Oe="horizontal",nt=(u,d,x,v,R)=>{let W=d-u;return W===0?x:(v-x)*(R-u)/W+x},Ee=u=>!isNaN(parseFloat(u))&&isFinite(u),ie=(u,d)=>Ee(u)?Number(u):d,qe=(u,d)=>d===0?0:Math.round(u/d)*d,_t=(u,d=1/0)=>{if(d===1/0)return u;let x=e(10,d);return Math.round(u*x)/x},fe=u=>u==null?!1:typeof u=="boolean"?u:u.trim().toLowerCase()==="true",Rc=(u,d)=>{u.dispatchEvent(new CustomEvent("onPointerClicked",{detail:{$pointer:d}}))},Tc=(u,d)=>{u.dispatchEvent(new CustomEvent("onMouseDown",{detail:{nativeEvent:d}}))},Ic=(u,d)=>{u.dispatchEvent(new CustomEvent("onMouseUp",{detail:{nativeEvent:d}}))},Dc=(u,d)=>{u.dispatchEvent(new CustomEvent("onKeyDown",{detail:{nativeEvent:d}}))},jc=(u,d)=>{if(!d||d.length<=0)return;let x=d.map(R=>Ee(R)?ie(R,R):R),v={values:x||[]};v.value=x[0],v.value0=x[0],v.value1=x[0];for(let R=1;R<x.length;R++)v[`value${R+1}`]=x[R];u.dispatchEvent(new CustomEvent("change",{detail:v}))},Li=(u,d,x)=>{let v=0,R,W,Z,T,D=!1,Q=(V,he,we,be,pe,ge)=>{let Pe=v;we!==void 0&&V>we&&(V=we),he!==void 0&&V<he&&(V=he),v=V;let Le=v;return(be===xe&&ge||be===Oe&&pe)&&(Le=100-Le),be===xe?d.style.top=`${Le}%`:d.style.left=`${Le}%`,Pe!==v},ne=V=>V===d||d.contains(V),q=(V,he,we,be)=>{R=V,W=he,Z=we,T=be},ce=V=>{D=V,d.classList.toggle("disabled",D),D?d.setAttribute("aria-disabled","true"):d.hasAttribute("aria-disabled")&&d.removeAttribute("aria-disabled")},je=(V,he)=>{he==null?d.removeAttribute(V):d.setAttribute(V,he)},Ae=V=>d.getAttribute(V),X=V=>{if(!D){switch(V.key){case"ArrowLeft":{V.preventDefault(),typeof R=="function"&&R(x);break}case"ArrowRight":{V.preventDefault(),typeof W=="function"&&W(x);break}case"ArrowUp":{V.preventDefault(),typeof Z=="function"&&Z(x);break}case"ArrowDown":{V.preventDefault(),typeof T=="function"&&T(x);break}}Dc(u,V)}},ee=()=>{D||Rc(u,d)};return d.className=`pointer pointer-${x}`,d.addEventListener("keydown",X),d.addEventListener("click",ee),{$pointer:d,get percent(){return v},get disabled(){return D},set disabled(V){ce(V)},updatePosition:Q,isClicked:ne,setCallbacks:q,setAttr:je,getAttr:Ae,destroy:()=>{d.removeEventListener("keydown",X),d.removeEventListener("click",ee),d.remove()}}},Nc=u=>{if(u==null)return;if(Array.isArray(u))return u;if(u.trim()==="")return;let d=u.split(","),x=[],v=!0;for(let R=0;R<d.length;R++){let W=d[R].trim();W!==""&&(x.push(W),Ee(W)||(v=!1))}return v?x.map(R=>Number(R)):x},Bc=(u,d)=>d?d.findIndex(x=>x===u||x.toString().trim()===u.toString().trim()):-1,Fc=u=>({updatePosition:(d,x,v,R)=>{if(x.length<=0)return;let W=x.length===1,Z=x[0],T=x[x.length-1];d===xe?(u.style.removeProperty("width"),u.style.removeProperty("right"),u.style.removeProperty("left"),W?u.style.height=`${Z}%`:u.style.height=`${Math.abs(Z-T)}%`,R?(u.style.bottom="0%",W?u.style.top="auto":u.style.top=`${Math.min(100-T,100-Z)}%`):(u.style.bottom="auto",W?u.style.top="0%":u.style.top=`${Math.min(Z,T)}%`)):(u.style.removeProperty("height"),u.style.removeProperty("top"),u.style.removeProperty("bottom"),W?u.style.width=`${Z}%`:u.style.width=`${Math.abs(Z-T)}%`,v?(u.style.right="0%",W?u.style.left="auto":u.style.left=`${Math.min(100-T,100-Z)}%`):(u.style.right="auto",W?u.style.left="0%":u.style.left=`${Math.min(Z,T)}%`))}}),Is="--animate-onclick",Hc="--width",qc="--height",Uc="--panel-bg-border-radius",zc="--panel-bg",Yc="--panel-bg-hover",Wc="--panel-bg-fill",Xc="--pointer-width",Vc="--pointer-height",Kc="--pointer-border-radius",Gc="--pointer-bg",Jc="--pointer-bg-hover",Zc="--pointer-bg-focus",Qc="--pointer-shadow",eu="--pointer-shadow-hover",tu="--pointer-shadow-focus",ru="--pointer-border",iu="--pointer-border-hover",nu="--pointer-border-focus",Ar=(u,d,x)=>{let v=new Map;for(let R of u.attributes){let W=R.nodeName.trim().toLowerCase();if(!d.test(W))continue;let Z=W.replace(/\D/g,"").trim(),T=Z===""||Z==="0"||Z==="1"?0:ie(Z,0)-1,D=x&&typeof x=="function"?x(R.value):R.value;v.set(T,D)}return v},su=u=>{if(!u)return null;let d=u.getAttribute(Me);if(!d)return null;let x=d.split(";"),v=[];for(let R of x)R.trim()!==""&&v.push(R.trim());return v},Ds=[[Hc,_,"sliderWidth",null],[qc,A,"sliderHeight",null],[Uc,k,"sliderRadius",null],[zc,F,"sliderBg",null],[Yc,H,"sliderBgHover",null],[Wc,I,"sliderBgFill",null],[Xc,te,"pointer#Width",/^pointer([0-9]*)-width$/],[Vc,le,"pointer#Height",/^pointer([0-9]*)-height$/],[Kc,P,"pointer#Radius",/^pointer([0-9]*)-radius$/],[Gc,L,"pointer#Bg",/^pointer([0-9]*)-bg$/],[Jc,M,"pointer#BgHover",/^pointer([0-9]*)-bg-hover$/],[Zc,j,"pointer#BgFocus",/^pointer([0-9]*)-bg-focus$/],[Qc,C,"pointer#Shadow",/^pointer([0-9]*)-shadow$/],[eu,G,"pointer#ShadowHover",/^pointer([0-9]*)-shadow-hover$/],[tu,Y,"pointer#ShadowFocus",/^pointer([0-9]*)-shadow-focus$/],[ru,oe,"pointer#Border",/^pointer([0-9]*)-border$/],[iu,re,"pointer#BorderHover",/^pointer([0-9]*)-border-hover$/],[nu,ye,"pointer#BorderFocus",/^pointer([0-9]*)-border-focus$/]],ou=(u,d,x)=>{let v=null,R=[],W=new Map,Z=(X,ee=d)=>{let V=[...ee.classList];for(let he of V)he.startsWith(X)&&d.classList.remove(he)},T=()=>{Z("shape");let X=d.querySelectorAll(".pointer");for(let ee of X)Z("shape",ee)},D=X=>{v=X,Z("theme-"),typeof X=="string"&&d.classList.add(`theme-${X}`)},Q=()=>{if(T(),!(R.length<=0)){d.classList.add("shape",`shape-${R[0]}`);for(let X=1;X<R.length;X++){let ee=R[X];if(!ee)continue;let V=d.querySelector(`.pointer-${X}`);!V||V.classList.add("shape",`shape-${ee}`)}}},ne=(X,ee)=>{R[X]=ee,Q()},q=()=>{T();let X=Ar(u,/^pointer([0-9]*)-shape$/);if(!(X.size<=0)){for(let ee of X){let V=ee[0];R[V]=ee[1]}Q()}},ce=(X,ee)=>`${X}-${ee}`,je=(X,ee,V)=>{let he=x[V];if(!he)return;let we=V===0?d:he.$pointer;if(ee==null){W.has(ce(X,V))&&W.delete(ce(X,V)),we.style.removeProperty(X);return}W.set(ce(X,V),ee),we.style.setProperty(X,ee)},Ae=(X,ee)=>W.get(ce(X,ee));return(()=>{for(let X of Ds){let[ee,V,he,we]=X;if(we){let pe=Ar(u,we);for(let ge of pe){let Pe=ge[0],Le=ge[1];je(ee,Le,Pe)}}else{let pe=u.getAttribute(V);je(ee,pe,0)}let be=[];if(he.indexOf("#")===-1)be.push([he,0]);else{be.push([he.replace("#",""),0]),be.push([he.replace("#","0"),0]),be.push([he.replace("#","1"),0]);for(let pe=1;pe<x.length;pe++)be.push([he.replace("#",(pe+1).toString()),pe])}for(let pe of be)try{let ge=pe[0],Pe=pe[1];Object.prototype.hasOwnProperty.call(u,ge)||Object.defineProperty(u,ge,{get(){return Ae(ee,Pe)},set:Le=>{je(ee,Le,Pe)}})}catch(ge){console.error(ge)}}D(u.getAttribute(z)),q()})(),{setStyle:je,getStyle:Ae,get theme(){return v},set theme(X){D(X)},get pointerShapes(){return R},setPointerShape:ne}},Ht="animate-on-click",js="range-dragging",lu=(u,d,x,v)=>{let R=[],W=ne=>{for(let q of R)q.update&&typeof q.update=="function"&&q.update(ne)},Z=()=>{for(let ne of R)ne.destroy&&typeof ne.destroy=="function"&&ne.destroy()},T=(ne,q)=>{for(let ce of R)ce.onAttrChange&&typeof ce.onAttrChange=="function"&&ce.onAttrChange(ne,q)},D=ne=>{if(ne.gettersAndSetters){for(let q of ne.gettersAndSetters)if(!(!q.name||!q.attributes))try{Object.prototype.hasOwnProperty.call(u,q.name)||Object.defineProperty(u,q.name,q.attributes)}catch(ce){console.error("defineSettersGetters error:",ce)}}},Q=ne=>{var q;if(!ne.css)return;let ce=(q=u.shadowRoot)==null?void 0:q.querySelector("style");!ce||(ce.innerHTML+=ne.css)};return{init:()=>{if(window.tcRangeSliderPlugins)for(let ne of window.tcRangeSliderPlugins){let q=ne();R.push(q),q.init&&typeof q.init=="function"&&(q.init(u,d,x,v),D(q),Q(q))}},update:W,onAttrChange:T,destroy:Z}},au=10,Ns=20,cu=(u,d)=>{let x=new Map,v=/^value([0-9]*)$/;for(let T of u.attributes){let D=T.nodeName.trim().toLowerCase();if(!v.test(D))continue;let Q=D.replace("value","").trim(),ne=Q===""||Q==="0"||Q==="1"?0:ie(Q,0)-1,q=Ee(T.value)?ie(T.value,0):T.value;x.set(ne,q)}let R=Math.max(...Array.from(x.keys())),W=[];W.push([Li(u,d,0),x.get(0)]);let Z=d;for(let T=1;T<=R;T++){let D=d.cloneNode(!0);Z.after(D),Z=D,W.push([Li(u,D,T),x.get(T)])}return W},Bs=(u,d,x,v,R,W,Z)=>{try{Object.defineProperty(u,v,{configurable:!0,get(){if(!d)return;let T=d.pointers[x];if(!T)return;let D=d.getTextValue(T.percent);return Ee(D)?ie(D,D):D},set:T=>{d.pointers[x]?d==null||d.setValue(T,x):d==null||d.addPointer(T)}}),Object.defineProperty(u,R,{configurable:!0,get(){var T,D;return(D=(T=d==null?void 0:d.pointers[x])==null?void 0:T.getAttr("aria-label"))!=null?D:void 0},set:T=>{!d||d.setAriaLabel(x,T)}}),Object.defineProperty(u,W,{configurable:!0,get(){var T,D;return(D=(T=d==null?void 0:d.styles)==null?void 0:T.pointerShapes[x])!=null?D:null},set:T=>{!d||!d.styles||d.styles.setPointerShape(x,T)}}),Object.defineProperty(u,Z,{configurable:!0,get(){var T;return(T=d==null?void 0:d.pointers[x].disabled)!=null?T:!1},set:T=>{if(!d)return;let D=d==null?void 0:d.pointers[x];!D||(D.disabled=T)}})}catch(T){console.error(T)}},uu=(u,d)=>{let x=[["value","ariaLabel","pointerShape","pointerDisabled",0],["value0","ariaLabel0","pointerShape0","pointer0Disabled",0],["value1","ariaLabel1","pointerShape1","pointer1Disabled",0]];for(let v=2;v<au;v++)x.push([`value${v}`,`ariaLabel${v}`,`pointer${v}Shape`,`pointer${v}Disabled`,v-1]);for(let v of x)Bs(u,d,v[4],v[0],v[1],v[2],v[3])},Fs=(u,d,x)=>{var v;let R=(v=x.shadowRoot)==null?void 0:v.querySelector(".container");if(R)for(let W of u)d?R.prepend(W.$pointer):R.append(W.$pointer)},hu=(u,d)=>{if(!(!d||u.length<=1)){for(let x of u)x.$pointer.style.zIndex=Ns.toString();d.$pointer.style.zIndex=(Ns*2).toString()}},Ci=0,or=100,qt=2,Hs="0.3s",du=(u,d,x)=>{let v=x.map(h=>h[0]),R=null,W=null,Z=null,T=null,D=Ci,Q=or,ne,q,ce=Oe,je=qt,Ae=!1,X=!1,ee=!1,V=0,he=1/0,we=!1,be,pe,ge=!1,Pe=!1,Le=!1,ft=Hs,qs=[],Us=h=>{ge||(h.preventDefault&&h.preventDefault(),Et(h),window.addEventListener("mousemove",Et),window.addEventListener("mouseup",Mr),Tc(u,h))},Mr=h=>{ge||(be=void 0,pe=void 0,window.removeEventListener("mousemove",Et),window.removeEventListener("mouseup",Mr),ft&&d.classList.add(Ht),Ic(u,h))},gu=(h,$)=>{if(v.length<=0)return;if(v.length===1)return v[0].isClicked(h)&&ft&&d.classList.remove(Ht),v[0];let N=yu(h);if(we){let ae=$,Ue=Pr(ae);Ue!==void 0&&(ae=qe(ae,Ue)),N?(be=ae,pe=0,ft&&d.classList.remove(Ht)):be!==void 0&&(pe=ae-be,be=ae)}if(!mu(h)&&!N){for(let ae of v)if(!(!ae.isClicked(h)||ae.disabled))return ft&&d.classList.remove(Ht),ae;for(let ae of v)if(R===ae)return ae}let ue=1/0,me=null;for(let ae of v){if(ae.disabled)continue;let Ue=Math.abs($-ae.percent);Ue<ue&&(ue=Ue,me=ae)}return me},zs=()=>v.findIndex(h=>R===h&&!h.disabled),Et=h=>{let $;if(ce===xe){let{height:ue,top:me}=d.getBoundingClientRect(),ae=h.type.indexOf("mouse")!==-1?h.clientY:h.touches[0].clientY;$=Math.min(Math.max(0,ae-me),ue)*100/ue}else{let{width:ue,left:me}=d.getBoundingClientRect(),ae=h.type.indexOf("mouse")!==-1?h.clientX:h.touches[0].clientX;$=Math.min(Math.max(0,ae-me),ue)*100/ue}if((Ae||X)&&($=100-$),R=gu(h.target,$),R&&hu(v,R),we&&v.length>1&&pe!==void 0){let ue=v[0],me=v[v.length-1],ae=ue.percent+pe<0,Ue=me.percent+pe>100;if(ae||Ue)return;for(let jr=0;jr<v.length;jr++)Ce(jr,v[jr].percent+pe);return}let N=zs();N!==-1&&(Ce(N,$),R==null||R.$pointer.focus())},Or=h=>{if(ge||document.activeElement!==u||R!=null&&R.disabled)return;h.stopPropagation(),h.preventDefault();let $=h.deltaY<0,N=Ae||X,ue=$?!N:N,me=zs();me!==-1&&(ue?lr(me,v[me].percent):ar(me,v[me].percent))},Ys=h=>{ge||Pe||(ce===xe?X?Ce(h,100):Ce(h,0):Ae?ar(h,v[h].percent):lr(h,v[h].percent))},Ws=h=>{ge||Pe||(ce===xe?X?Ce(h,0):Ce(h,100):Ae?lr(h,v[h].percent):ar(h,v[h].percent))},Xs=h=>{ge||Pe||(ce===xe?X?ar(h,v[h].percent):lr(h,v[h].percent):Ae?Ce(h,100):Ce(h,0))},Vs=h=>{ge||Pe||(ce===xe?X?lr(h,v[h].percent):ar(h,v[h].percent):Ae?Ce(h,0):Ce(h,100))},mu=h=>h.classList.contains("panel"),yu=h=>h.classList.contains("panel-fill"),lr=(h,$)=>{if($===void 0)return;let N=Pr($);N==null&&(N=1),$-=N,$<0&&($=0),Ce(h,$)},ar=(h,$)=>{if($===void 0)return;let N=Pr($);N==null&&(N=1),$+=N,$>100&&($=100),Ce(h,$)},St=()=>{!T||T.update({percents:Ks(),values:Gs(),$pointers:Js(),min:Zs(),max:Qs(),data:Ti(),step:Ri(),round:Di(),type:Ii(),textMin:Lr(),textMax:Cr(),rightToLeft:Bi(),bottomToTop:Fi(),pointersOverlap:zi(),pointersMinDistance:ji(),pointersMaxDistance:Ni(),rangeDragging:Yi(),disabled:Hi(),keyboardDisabled:qi(),mousewheelDisabled:Ui()})},vu=()=>{St()},bu=h=>{if(!(ee||v.length<=1||Q===D))if(h===0){let $=he*100/(Q-D);return Math.max(0,v[h+1].percent-$)}else{let $=V*100/(Q-D);return Math.min(v[h-1].percent+$,100)}},xu=h=>{if(!(ee||v.length<=1||Q===D))if(h===v.length-1){let $=he*100/(Q-D);return Math.min(v[h-1].percent+$,100)}else{let $=V*100/(Q-D);return Math.max(0,v[h+1].percent-$)}},Pr=h=>{let $;if(typeof ne=="function"){let N=nt(0,100,D,Q,h);$=ne(N,h)}else $=ne;if(Ee($)){let N=Q-D;return $=N===0?0:$*100/N,$}},Ut=h=>{if(h===void 0)return;let $=nt(0,100,D,Q,h);return q!==void 0?q[Math.round($)]:_t($,je)},Lr=()=>q!==void 0?q[D]:D,Cr=()=>q!==void 0?q[Q]:Q,Ri=()=>ne,wu=h=>{var $;return h<=0||ee?Lr():($=Ut(v[h-1].percent))!=null?$:""},$u=h=>{var $;return v.length<=1||h>=v.length-1||ee?Cr():($=Ut(v[h+1].percent))!=null?$:""},Ks=()=>v.map(h=>h.percent),Gs=()=>v.map(h=>Ut(h.percent)),Js=()=>v.map(h=>h.$pointer),Zs=()=>D,Qs=()=>Q,Ti=()=>q,Ii=()=>ce,Di=()=>je,ji=()=>V,Ni=()=>he,_u=h=>qs[h],Bi=()=>Ae,Fi=()=>X,Hi=()=>ge,qi=()=>Pe,Ui=()=>Le,zi=()=>ee,Yi=()=>we,Ce=(h,$)=>{if($===void 0)return;let N=Pr($);N!==void 0&&($=qe($,N));let ue=v[h];if(!ue)return;let me=ue.updatePosition($,bu(h),xu(h),ce,Ae,X);W==null||W.updatePosition(ce,v.map(ae=>ae.percent),Ae,X),St();for(let ae of v){let Ue=Ut(ae.percent);Ue!==void 0&&(ae.setAttr("aria-valuenow",Ue.toString()),ae.setAttr("aria-valuetext",Ue.toString()))}Su(),me&&jc(u,v.map(ae=>Ut(ae.percent)))},Je=()=>{for(let h=0;h<v.length;h++)Ce(h,v[h].percent)},Eu=(h,$)=>{D=q!==void 0?0:ie(h,Ci),Q=q!==void 0?q.length-1:ie($,or),kr(D),Rr(Q)},Su=()=>{var h,$;for(let N=0;N<v.length;N++){let ue=v[N];ue.setAttr("aria-valuemin",((h=wu(N))!=null?h:"").toString()),ue.setAttr("aria-valuemax",(($=$u(N))!=null?$:"").toString())}},kr=h=>{D=ie(h,Ci),D>Q&&(Q=D+or),Je()},Rr=h=>{Q=ie(h,or),Q<D&&(Q=D+or),Je()},eo=h=>{ee=!0;for(let $=0;$<h.length;$++)Tr(h[$],$);ee=!1;for(let $=0;$<h.length;$++)Tr(h[$],$)},Tr=(h,$)=>{let N;q!==void 0?(N=h==null?0:Bc(h,q),N===-1&&(N=0)):(N=ie(h,D),N<D&&(N=D),N>Q&&(N=Q));let ue=nt(D,Q,0,100,N);Ce($,ue)},Ir=h=>{if(h==null){ne=void 0;return}if(typeof h=="function"){ne=h,Je();return}if(Ee(h)){ne=ie(h,1);let $=Math.abs(Q-D);ne>$&&(ne=void 0),Je();return}ne=void 0},Wi=h=>{ee=h,Je()},Xi=h=>{(!Ee(h)||h<0)&&(h=0),V=h},Vi=h=>{(!Ee(h)||h<0)&&(h=1/0),he=h},Ki=h=>{ge=h,d.classList.toggle("disabled",ge),ge?d.setAttribute("aria-disabled","true"):d.hasAttribute("aria-disabled")&&d.removeAttribute("aria-disabled")},to=h=>{Pe=h},ro=h=>{Le=h,Le?document.removeEventListener("wheel",Or):document.addEventListener("wheel",Or,{passive:!1})},Gi=h=>{if(h==null){q=void 0;return}if(q=Nc(h),q===void 0||q.length<=0){q=void 0;return}kr(0),Rr(q.length-1),ne===void 0&&Ir(1)},Ji=h=>{var $;typeof h=="string"?ce=h.trim().toLowerCase()===xe?xe:Oe:ce=Oe;let N=($=u.shadowRoot)==null?void 0:$.querySelector(".range-slider-box");if(!N)return;N.className=`range-slider-box type-${ce}`,Je();let ue=ce===xe?"vertical":"horizontal";for(let me of v)me.setAttr("aria-orientation",ue)},Zi=h=>{Ae=h,v.length>1&&Fs(v,Ae,u),Je(),St()},Qi=h=>{X=h,v.length>1&&Fs(v,X,u),Je(),St()},en=h=>{je=ie(h,qt),je<0&&(je=qt),St()},io=h=>{h==null||h.toString().trim().toLowerCase()==="false"?(ft=void 0,d.style.removeProperty(Is),d.classList.remove(Ht)):(ft=h.toString(),d.style.setProperty(Is,ft),d.classList.add(Ht))},no=(h,$)=>{let N=v[h];!N||(N.setAttr("aria-label",$),qs[h]=$)},Dr=h=>{if(be=void 0,v.length<=1){we=!1,d.classList.remove(js);return}we=h,d.classList.toggle(js,we)},Au=()=>{Ki(fe(u.getAttribute(m))),Pe=fe(u.getAttribute(w)),Le=fe(u.getAttribute(S));let h=Ar(u,/^pointer([0-9]*)-disabled$/,$=>fe($));for(let $ of h){let N=$[0];!v[N]||(v[N].disabled=$[1])}},Mu=()=>{let h=Ar(u,/^aria-label([0-9]*)$/);for(let $ of h){let N=$[0];no(N,$[1])}},Ou=h=>{let $=v.length,N=v[$-1].$pointer,ue=N.cloneNode(!0);N.after(ue);let me=Li(u,ue,$);return me.setCallbacks(Ys,Ws,Xs,Vs),v.push(me),Tr(h,$),Je(),St(),$},Pu=()=>{let h=v.length,$=v[h-1];return $?($.destroy(),v.pop(),v.length<=1&&Dr(!1),Je(),St(),h-1):-1};return(()=>{var h,$;for(let ue of v)ue.setCallbacks(Ys,Ws,Xs,Vs);let N=(h=u.shadowRoot)==null?void 0:h.querySelector(".panel-fill");N&&(W=Fc(N)),Ji(u.getAttribute(O)),Zi(fe(u.getAttribute(B))),Qi(fe(u.getAttribute(g))),Eu(u.getAttribute(p),u.getAttribute(b)),Ir(u.getAttribute(y)),Gi(u.getAttribute(f)),eo(x.map(ue=>ue[1])),Wi(fe(u.getAttribute(o))),Xi(ie(u.getAttribute(l),0)),Vi(ie(u.getAttribute(a),1/0)),Dr(fe(u.getAttribute(c))),en(ie(u.getAttribute(E),qt)),Au(),Mu(),Z=ou(u,d,v),io(($=u.getAttribute(ve))!=null?$:Hs),d.addEventListener("mousedown",Us),d.addEventListener("mouseup",Mr),d.addEventListener("touchmove",Et),d.addEventListener("touchstart",Et),Le||document.addEventListener("wheel",Or,{passive:!1}),T=lu(u,vu,{setValues:eo,setMin:kr,setMax:Rr,setStep:Ir,setPointersOverlap:Wi,setPointersMinDistance:Xi,setPointersMaxDistance:Vi,setDisabled:Ki,setType:Ji,setRightToLeft:Zi,setBottomToTop:Qi,setRound:en,setKeyboardDisabled:to,setMousewheelDisabled:ro,setRangeDragging:Dr,setData:Gi},{getPercents:Ks,getValues:Gs,getPointerElements:Js,getMin:Zs,getMax:Qs,getStep:Ri,getData:Ti,getType:Ii,getRound:Di,getTextMin:Lr,getTextMax:Cr,isRightToLeft:Bi,isBottomToTop:Fi,isDisabled:Hi,isKeyboardDisabled:qi,isMousewheelDisabled:Ui,isPointersOverlap:zi,isRangeDraggingEnabled:Yi,getPointersMinDistance:ji,getPointersMaxDistance:Ni}),T.init()})(),{get pointers(){return v},get styles(){return Z},get pluginsManager(){return T},get min(){return Lr()},get max(){return Cr()},get step(){return Ri()},get pointersOverlap(){return zi()},set pointersOverlap(h){Wi(h)},get pointersMinDistance(){return ji()},set pointersMinDistance(h){Xi(h)},get pointersMaxDistance(){return Ni()},set pointersMaxDistance(h){Vi(h)},get disabled(){return Hi()},set disabled(h){Ki(h)},get data(){return Ti()},get type(){return Ii()},set type(h){Ji(h)},get rightToLeft(){return Bi()},set rightToLeft(h){Zi(h)},get bottomToTop(){return Fi()},set bottomToTop(h){Qi(h)},get round(){return Di()},set round(h){en(h)},get animateOnClick(){return ft},set animateOnClick(h){io(h)},get keyboardDisabled(){return qi()},set keyboardDisabled(h){to(h)},get mousewheelDisabled(){return Ui()},set mousewheelDisabled(h){ro(h)},get rangeDragging(){return Yi()},set rangeDragging(h){Dr(h)},setMin:kr,setMax:Rr,setValue:Tr,setStep:Ir,setData:Gi,getTextValue:Ut,setAriaLabel:no,getAriaLabel:_u,addPointer:Ou,removePointer:Pu,destroy:()=>{d.removeEventListener("mousedown",Us),d.removeEventListener("mouseup",Mr),d.removeEventListener("touchmove",Et),d.removeEventListener("touchstart",Et),document.removeEventListener("wheel",Or);for(let h of v)h.destroy();T==null||T.destroy()}}},fu=(u,d,x)=>{let v=Ds.find(([T,D,Q,ne])=>D.replace("#","")===d.replace(/\d+/g,""));if(v&&u.styles){let[T,D,Q,ne]=v,q=d.replace(/\D/g,"").trim(),ce=q===""||q==="0"||q==="1"?0:ie(q,0)-1;u.styles.setStyle(T,x,ce);return}switch(u&&u.pluginsManager&&u.pluginsManager.onAttrChange(d,x),d){case p:{u.setMin(x);break}case b:{u.setMax(x);break}case y:{u.setStep(x);break}case o:{u.pointersOverlap=fe(x);break}case l:{u.pointersMinDistance=ie(x,0);break}case c:{u.rangeDragging=fe(x);break}case a:{u.pointersMaxDistance=ie(x,1/0);break}case m:{u.disabled=fe(x);break}case w:{u.keyboardDisabled=fe(x);break}case S:{u.mousewheelDisabled=fe(x);break}case f:{u.setData(x);break}case O:{u.type=x;break}case B:{u.rightToLeft=fe(x);break}case g:{u.bottomToTop=fe(x);break}case E:{u.round=ie(x,qt);break}case z:{u.styles&&(u.styles.theme=x);break}case ve:{u.animateOnClick=x;break}}let R=null;if(/^value([0-9]*)$/.test(d)&&(R="value"),/^pointer([0-9]*)-disabled$/.test(d)&&(R="pointer-disabled"),/^aria-label([0-9]*)$/.test(d)&&(R="aria-label"),/^pointer([0-9]*)-shape$/.test(d)&&(R="pointer-shape"),!R)return;let W=d.replace(/\D/g,"").trim(),Z=W===""||W==="0"||W==="1"?0:ie(W,0)-1;switch(R){case"value":{u.setValue(x,Z);break}case"pointer-disabled":{let T=u==null?void 0:u.pointers[Z];if(!T)return;T.disabled=fe(x);break}case"aria-label":{u.setAriaLabel(Z,x);break}case"pointer-shape":{u.styles&&u.styles.setPointerShape(Z,x);break}}},pu=class extends HTMLElement{constructor(){super(),i(this,"slider"),i(this,"_externalCSSList",[]),i(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,d;return(d=(u=this.slider)==null?void 0:u.disabled)!=null?d:!1}set data(u){var d;(d=this.slider)==null||d.setData(u)}get data(){var u;return(u=this.slider)==null?void 0:u.data}set min(u){var d;(d=this.slider)==null||d.setMin(u)}get min(){var u;return(u=this.slider)==null?void 0:u.min}set max(u){var d;(d=this.slider)==null||d.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,d;return(d=(u=this.slider)==null?void 0:u.round)!=null?d:qt}set type(u){!this.slider||(this.slider.type=u??Oe)}get type(){var u;return((u=this.slider)==null?void 0:u.type)||Oe}set pointersOverlap(u){!this.slider||(this.slider.pointersOverlap=u)}get pointersOverlap(){var u,d;return(d=(u=this.slider)==null?void 0:u.pointersOverlap)!=null?d:!1}set pointersMinDistance(u){!this.slider||(this.slider.pointersMinDistance=u)}get pointersMinDistance(){var u,d;return(d=(u=this.slider)==null?void 0:u.pointersMinDistance)!=null?d:0}set pointersMaxDistance(u){!this.slider||(this.slider.pointersMaxDistance=u)}get pointersMaxDistance(){var u,d;return(d=(u=this.slider)==null?void 0:u.pointersMaxDistance)!=null?d:1/0}set theme(u){!this.slider||!this.slider.styles||(this.slider.styles.theme=u)}get theme(){var u,d,x;return(x=(d=(u=this.slider)==null?void 0:u.styles)==null?void 0:d.theme)!=null?x:null}set rtl(u){!this.slider||(this.slider.rightToLeft=u)}get rtl(){var u,d;return(d=(u=this.slider)==null?void 0:u.rightToLeft)!=null?d:!1}set btt(u){!this.slider||(this.slider.bottomToTop=u)}get btt(){var u,d;return(d=(u=this.slider)==null?void 0:u.bottomToTop)!=null?d:!1}set keyboardDisabled(u){!this.slider||(this.slider.keyboardDisabled=u)}get keyboardDisabled(){var u,d;return(d=(u=this.slider)==null?void 0:u.keyboardDisabled)!=null?d:!1}set mousewheelDisabled(u){!this.slider||(this.slider.mousewheelDisabled=u)}get mousewheelDisabled(){var u,d;return(d=(u=this.slider)==null?void 0:u.mousewheelDisabled)!=null?d:!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,d;return(d=(u=this.slider)==null?void 0:u.rangeDragging)!=null?d:!1}set rangeDragging(u){this.slider&&(this.slider.rangeDragging=fe(u))}get externalCSSList(){return this._externalCSSList}addPointer(u){var d,x;if(!this.slider)return;let v=(x=(d=this.slider)==null?void 0:d.addPointer(u))!=null?x:0;Bs(this,this.slider,v,`value${v+1}`,`ariaLabel${v+1}`,`pointerShape${v+1}`,`pointer${v+1}Disabled`)}removePointer(){var u;!this.slider||(u=this.slider)==null||u.removePointer()}addCSS(u){if(!this.shadowRoot)return;let d=document.createElement("style");d.textContent=u,this.shadowRoot.appendChild(d)}connectedCallback(){var u,d;if(!this.shadowRoot)return;this._externalCSSList=su(this),this.shadowRoot.innerHTML=n(s,this._externalCSSList);let x=(u=this.shadowRoot)==null?void 0:u.querySelector(".pointer");if(!x)return;let v=(d=this.shadowRoot)==null?void 0:d.getElementById("range-slider");if(!v)return;let R=cu(this,x);this.slider=du(this,v,R),uu(this,this.slider),this._observer=new MutationObserver(W=>{W.forEach(Z=>{var T;if(!this.slider||Z.type!=="attributes")return;let D=Z.attributeName;!D||fu(this.slider,D,(T=this.getAttribute(D))!=null?T:"")})}),this._observer.observe(this,{attributes:!0})}disconnectedCallback(){this._observer&&this._observer.disconnect(),this.slider&&this.slider.destroy()}},ki=pu;window.tcRangeSlider=ki,customElements.get("toolcool-range-slider")||customElements.define("toolcool-range-slider",ki),customElements.get("tc-range-slider")||customElements.define("tc-range-slider",class extends ki{})})();var Pt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Kr(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function i(){return this instanceof i?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(i){var n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(r,i,n.get?n:{enumerable:!0,get:function(){return t[i]}})}),r}var kn={exports:{}};(function(t,e){(function(r,i){t.exports=i()})(Pt,function(){var r=1e3,i=6e4,n=36e5,s="millisecond",o="second",l="minute",a="hour",c="day",f="week",p="month",b="quarter",y="year",E="date",O="Invalid Date",z=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,B=/\[([^\]]+)]|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,g={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(P){var L=["th","st","nd","rd"],M=P%100;return"["+P+(L[(M-20)%10]||L[M]||L[0])+"]"}},m=function(P,L,M){var j=String(P);return!j||j.length>=L?P:""+Array(L+1-j.length).join(M)+P},w={s:m,z:function(P){var L=-P.utcOffset(),M=Math.abs(L),j=Math.floor(M/60),C=M%60;return(L<=0?"+":"-")+m(j,2,"0")+":"+m(C,2,"0")},m:function P(L,M){if(L.date()<M.date())return-P(M,L);var j=12*(M.year()-L.year())+(M.month()-L.month()),C=L.clone().add(j,p),G=M-C<0,Y=L.clone().add(j+(G?-1:1),p);return+(-(j+(M-C)/(G?C-Y:Y-C))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:p,y,w:f,d:c,D:E,h:a,m:l,s:o,ms:s,Q:b}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},S="en",_={};_[S]=g;var A="$isDayjsObject",k=function(P){return P instanceof te||!(!P||!P[A])},F=function P(L,M,j){var C;if(!L)return S;if(typeof L=="string"){var G=L.toLowerCase();_[G]&&(C=G),M&&(_[G]=M,C=G);var Y=L.split("-");if(!C&&Y.length>1)return P(Y[0])}else{var oe=L.name;_[oe]=L,C=oe}return!j&&C&&(S=C),C||!j&&S},H=function(P,L){if(k(P))return P.clone();var M=typeof L=="object"?L:{};return M.date=P,M.args=arguments,new te(M)},I=w;I.l=F,I.i=k,I.w=function(P,L){return H(P,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var te=function(){function P(M){this.$L=F(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[A]=!0}var L=P.prototype;return L.parse=function(M){this.$d=function(j){var C=j.date,G=j.utc;if(C===null)return new Date(NaN);if(I.u(C))return new Date;if(C instanceof Date)return new Date(C);if(typeof C=="string"&&!/Z$/i.test(C)){var Y=C.match(z);if(Y){var oe=Y[2]-1||0,re=(Y[7]||"0").substring(0,3);return G?new Date(Date.UTC(Y[1],oe,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,re)):new Date(Y[1],oe,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,re)}}return new Date(C)}(M),this.init()},L.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},L.$utils=function(){return I},L.isValid=function(){return this.$d.toString()!==O},L.isSame=function(M,j){var C=H(M);return this.startOf(j)<=C&&C<=this.endOf(j)},L.isAfter=function(M,j){return H(M)<this.startOf(j)},L.isBefore=function(M,j){return this.endOf(j)<H(M)},L.$g=function(M,j,C){return I.u(M)?this[j]:this.set(C,M)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(M,j){var C=this,G=!!I.u(j)||j,Y=I.p(M),oe=function(Ee,ie){var qe=I.w(C.$u?Date.UTC(C.$y,ie,Ee):new Date(C.$y,ie,Ee),C);return G?qe:qe.endOf(c)},re=function(Ee,ie){return I.w(C.toDate()[Ee].apply(C.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(ie)),C)},ye=this.$W,ve=this.$M,Me=this.$D,xe="set"+(this.$u?"UTC":"");switch(Y){case y:return G?oe(1,0):oe(31,11);case p:return G?oe(1,ve):oe(0,ve+1);case f:var Oe=this.$locale().weekStart||0,nt=(ye<Oe?ye+7:ye)-Oe;return oe(G?Me-nt:Me+(6-nt),ve);case c:case E:return re(xe+"Hours",0);case a:return re(xe+"Minutes",1);case l:return re(xe+"Seconds",2);case o:return re(xe+"Milliseconds",3);default:return this.clone()}},L.endOf=function(M){return this.startOf(M,!1)},L.$set=function(M,j){var C,G=I.p(M),Y="set"+(this.$u?"UTC":""),oe=(C={},C[c]=Y+"Date",C[E]=Y+"Date",C[p]=Y+"Month",C[y]=Y+"FullYear",C[a]=Y+"Hours",C[l]=Y+"Minutes",C[o]=Y+"Seconds",C[s]=Y+"Milliseconds",C)[G],re=G===c?this.$D+(j-this.$W):j;if(G===p||G===y){var ye=this.clone().set(E,1);ye.$d[oe](re),ye.init(),this.$d=ye.set(E,Math.min(this.$D,ye.daysInMonth())).$d}else oe&&this.$d[oe](re);return this.init(),this},L.set=function(M,j){return this.clone().$set(M,j)},L.get=function(M){return this[I.p(M)]()},L.add=function(M,j){var C,G=this;M=Number(M);var Y=I.p(j),oe=function(ve){var Me=H(G);return I.w(Me.date(Me.date()+Math.round(ve*M)),G)};if(Y===p)return this.set(p,this.$M+M);if(Y===y)return this.set(y,this.$y+M);if(Y===c)return oe(1);if(Y===f)return oe(7);var re=(C={},C[l]=i,C[a]=n,C[o]=r,C)[Y]||1,ye=this.$d.getTime()+M*re;return I.w(ye,this)},L.subtract=function(M,j){return this.add(-1*M,j)},L.format=function(M){var j=this,C=this.$locale();if(!this.isValid())return C.invalidDate||O;var G=M||"YYYY-MM-DDTHH:mm:ssZ",Y=I.z(this),oe=this.$H,re=this.$m,ye=this.$M,ve=C.weekdays,Me=C.months,xe=C.meridiem,Oe=function(ie,qe,_t,fe){return ie&&(ie[qe]||ie(j,G))||_t[qe].slice(0,fe)},nt=function(ie){return I.s(oe%12||12,ie,"0")},Ee=xe||function(ie,qe,_t){var fe=ie<12?"AM":"PM";return _t?fe.toLowerCase():fe};return G.replace(B,function(ie,qe){return qe||function(_t){switch(_t){case"YY":return String(j.$y).slice(-2);case"YYYY":return I.s(j.$y,4,"0");case"M":return ye+1;case"MM":return I.s(ye+1,2,"0");case"MMM":return Oe(C.monthsShort,ye,Me,3);case"MMMM":return Oe(Me,ye);case"D":return j.$D;case"DD":return I.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return Oe(C.weekdaysMin,j.$W,ve,2);case"ddd":return Oe(C.weekdaysShort,j.$W,ve,3);case"dddd":return ve[j.$W];case"H":return String(oe);case"HH":return I.s(oe,2,"0");case"h":return nt(1);case"hh":return nt(2);case"a":return Ee(oe,re,!0);case"A":return Ee(oe,re,!1);case"m":return String(re);case"mm":return I.s(re,2,"0");case"s":return String(j.$s);case"ss":return I.s(j.$s,2,"0");case"SSS":return I.s(j.$ms,3,"0");case"Z":return Y}return null}(ie)||Y.replace(":","")})},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(M,j,C){var G,Y=this,oe=I.p(j),re=H(M),ye=(re.utcOffset()-this.utcOffset())*i,ve=this-re,Me=function(){return I.m(Y,re)};switch(oe){case y:G=Me()/12;break;case p:G=Me();break;case b:G=Me()/3;break;case f:G=(ve-ye)/6048e5;break;case c:G=(ve-ye)/864e5;break;case a:G=ve/n;break;case l:G=ve/i;break;case o:G=ve/r;break;default:G=ve}return C?G:I.a(G)},L.daysInMonth=function(){return this.endOf(p).$D},L.$locale=function(){return _[this.$L]},L.locale=function(M,j){if(!M)return this.$L;var C=this.clone(),G=F(M,j,!0);return G&&(C.$L=G),C},L.clone=function(){return I.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},P}(),le=te.prototype;return H.prototype=le,[["$ms",s],["$s",o],["$m",l],["$H",a],["$W",c],["$M",p],["$y",y],["$D",E]].forEach(function(P){le[P[1]]=function(L){return this.$g(L,P[0],P[1])}}),H.extend=function(P,L){return P.$i||(P(L,te,H),P.$i=!0),H},H.locale=F,H.isDayjs=k,H.unix=function(P){return H(1e3*P)},H.en=_[S],H.Ls=_,H.p={},H})})(kn);var Oo=kn.exports;const Lt=Vr(Oo);class Po extends _e{constructor(){super(...arguments),this.templates={},this._renderedTemplates={}}setBindingSyntax(e,r){this._startExpression=e,this._endExpression=r;const i=this.escapeRegex(this._startExpression),n=this.escapeRegex(this._endExpression);this._expression=new RegExp(`${i}\\s*([$\\w\\.,'"\\s()\\[\\]]+)\\s*${n}`,"g")}hasTemplate(e){return this.templates&&!!this.templates[e]}renderTemplate(e,r,i){if(!this.hasTemplate(e))return null;i=i||e;const n=U` <slot name=${i}></slot> `,s={[e]:{...r}};if(this._renderedTemplates.hasOwnProperty(i)){const{slot:l}=this._renderedTemplates[i];this.contains(l)&&this.removeChild(l)}const o=document.createElement("div");return o.slot=i,o.dataset.generated="template",this._renderTemplate(o,this.templates[e],s),this.appendChild(o),this._renderedTemplates[i]={context:s,slot:o},n}getTemplates(){const e={};for(let r=0;r<this.children.length;r++){const i=this.children[r];if(i.nodeName==="RENDER-TEMPLATE"){const n=i;n.dataset.type?e[n.dataset.type]=n:e.default=n,n.templateOrder=r}}return e}_renderTemplate(e,r,i){let n;if(r&&r.childNodes.length){const s=r.cloneNode(!0);n=this.renderNode(s,e,i)}n&&e.appendChild(n)}expandExpressionsAsString(e,r){return e.replace(this.expression,(i,n)=>{const s=this.evalInContext(n||this.trimExpression(i),r);return s?typeof s=="object"?JSON.stringify(s):s.toString():""})}get expression(){return this._expression||this.setBindingSyntax("{{","}}"),this._expression}escapeRegex(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}evalInContext(e,r){r={...r};const i=new Function("with(this) { return "+e+";}");let n;try{n=i.call(r)}catch{}return n}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,i){if(e.nodeName==="#text")return e.textContent=this.expandExpressionsAsString(e.textContent,i),e;if(e.nodeName==="TEMPLATE")return e.$parentTemplateContext=i,e;for(let n=0;n<e.childNodes.length;n++){const s=e.childNodes[n];this.renderNode(s,r,i)}return e}firstUpdated(){this.templates=this.getTemplates()}}const Gr=`
|
|
27
|
+
*/function Qe(t,e,r){return t?e(t):r==null?void 0:r(t)}const Ap=`
|
|
60
28
|
:host {
|
|
61
29
|
display: flex;
|
|
62
30
|
box-sizing: border-box;
|
|
@@ -78,268 +46,33 @@ form#itemfilter {
|
|
|
78
46
|
details {
|
|
79
47
|
width: 100%;
|
|
80
48
|
}
|
|
81
|
-
`,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
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);
|
|
105
|
-
transition-property: box-shadow, transform, opacity, background;
|
|
106
|
-
transition-duration: 0.28s;
|
|
107
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
button:hover:not([disabled]):not(.icon),
|
|
111
|
-
.button:hover:not([disabled]):not(.icon) {
|
|
112
|
-
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);
|
|
113
|
-
background: var(--primary-color-hover);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
button, button:active,
|
|
117
|
-
.button, .button:active {
|
|
118
|
-
background: var(--primary-color);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
button[disabled],
|
|
122
|
-
.button[disabled] {
|
|
123
|
-
opacity: 0.5;
|
|
124
|
-
cursor: not-allowed;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
button.block,
|
|
128
|
-
.button.block {
|
|
129
|
-
display: block;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
button.outline,
|
|
133
|
-
.button.outline {
|
|
134
|
-
background: transparent;
|
|
135
|
-
box-shadow: none;
|
|
136
|
-
color: var(--primary-color);
|
|
137
|
-
outline: 1px solid var(--primary-color);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
button.outline:hover,
|
|
141
|
-
.button.outline:hover {
|
|
142
|
-
background: transparent;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
button.icon,
|
|
146
|
-
.button.icon {
|
|
147
|
-
background: transparent;
|
|
148
|
-
border: none;
|
|
149
|
-
box-shadow: none;
|
|
150
|
-
padding: 0;
|
|
151
|
-
border-radius: 50%;
|
|
152
|
-
width: 24px;
|
|
153
|
-
height: 24px;
|
|
154
|
-
text-indent: -9999px;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
button.icon-text,
|
|
158
|
-
.button.icon-text {
|
|
159
|
-
text-indent: 26px;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
button.icon-text.block,
|
|
163
|
-
.button.icon-text.block {
|
|
164
|
-
text-indent: 20px;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
button.icon:before, button.icon-text:before,
|
|
168
|
-
.button.icon:before, .button.icon-text:before {
|
|
169
|
-
position: absolute;
|
|
170
|
-
text-indent: 0;
|
|
171
|
-
line-height: initial;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
button.icon-text.block:before,
|
|
175
|
-
.button.icon-text.block:before {
|
|
176
|
-
text-indent: -54px;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
button.icon:before,
|
|
180
|
-
.button.icon:before {
|
|
181
|
-
width: 24px;
|
|
182
|
-
height: 24px;
|
|
183
|
-
margin-right: 0;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
button.icon-text:before,
|
|
187
|
-
.button.icon-text:before {
|
|
188
|
-
width: 18px;
|
|
189
|
-
height: 18px;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
button.small,
|
|
193
|
-
.button.small {
|
|
194
|
-
height: 28px;
|
|
195
|
-
padding: 12.4px;
|
|
196
|
-
font-size: .75rem;
|
|
49
|
+
`,yn=`
|
|
50
|
+
:host, :root {
|
|
51
|
+
--item-color: color-mix(
|
|
52
|
+
in srgb,
|
|
53
|
+
var(--primary-color) 10%,
|
|
54
|
+
transparent
|
|
55
|
+
);
|
|
56
|
+
--item-hover-color: color-mix(
|
|
57
|
+
in srgb,
|
|
58
|
+
var(--secondary-color) 30%,
|
|
59
|
+
transparent
|
|
60
|
+
);
|
|
61
|
+
--inline-bg-color: color-mix(
|
|
62
|
+
in srgb,
|
|
63
|
+
var(--secondary-color) 10%,
|
|
64
|
+
transparent
|
|
65
|
+
);
|
|
66
|
+
--border-color: color-mix(
|
|
67
|
+
in srgb,
|
|
68
|
+
#000000 20%,
|
|
69
|
+
transparent
|
|
70
|
+
);
|
|
71
|
+
--background-color: #fff;
|
|
197
72
|
}
|
|
198
|
-
|
|
199
|
-
button.smallest.icon,
|
|
200
|
-
button.smallest.icon::before {
|
|
201
|
-
height: 16px;
|
|
202
|
-
width: 16px;
|
|
203
|
-
padding: 0px;
|
|
204
|
-
}
|
|
205
|
-
`,Zr=`
|
|
206
73
|
* {
|
|
207
74
|
font-family: Roboto, sans-serif;
|
|
208
75
|
}
|
|
209
|
-
|
|
210
|
-
${Jr}
|
|
211
|
-
|
|
212
|
-
input[type=checkbox] {
|
|
213
|
-
appearance: none;
|
|
214
|
-
-webkit-appearance: none;
|
|
215
|
-
margin: 0;
|
|
216
|
-
cursor: pointer;
|
|
217
|
-
display: flex;
|
|
218
|
-
flex-direction: row;
|
|
219
|
-
align-items: center;
|
|
220
|
-
width: 24px;
|
|
221
|
-
height: 24px;
|
|
222
|
-
}
|
|
223
|
-
input[type=checkbox]:after {
|
|
224
|
-
display: block;
|
|
225
|
-
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");
|
|
226
|
-
width: 20px;
|
|
227
|
-
height: 20px;
|
|
228
|
-
margin-right: 4px;
|
|
229
|
-
}
|
|
230
|
-
input[type=checkbox]:checked:after {
|
|
231
|
-
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");
|
|
232
|
-
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
input[type=radio] {
|
|
237
|
-
appearance: none;
|
|
238
|
-
-webkit-appearance: none;
|
|
239
|
-
margin: 0;
|
|
240
|
-
cursor: pointer;
|
|
241
|
-
display: flex;
|
|
242
|
-
flex-direction: row;
|
|
243
|
-
align-items: center;
|
|
244
|
-
width: 24px;
|
|
245
|
-
height: 24px;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
label span {
|
|
249
|
-
font-size: small;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
input[type=radio]:after {
|
|
253
|
-
display: block;
|
|
254
|
-
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");
|
|
255
|
-
width: 20px;
|
|
256
|
-
height: 20px;
|
|
257
|
-
margin-right: 4px;
|
|
258
|
-
}
|
|
259
|
-
input[type=radio]:checked:after {
|
|
260
|
-
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");
|
|
261
|
-
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
input[type="range"] {
|
|
266
|
-
-webkit-appearance: none;
|
|
267
|
-
width: 90%;
|
|
268
|
-
margin-left: 5%;
|
|
269
|
-
height: 6px;
|
|
270
|
-
border-radius: 5px;
|
|
271
|
-
background: #d7dcdf;
|
|
272
|
-
outline: none;
|
|
273
|
-
padding: 0;
|
|
274
|
-
}
|
|
275
|
-
input[type="range"]::-webkit-slider-thumb {
|
|
276
|
-
appearance: none;
|
|
277
|
-
width: 15px;
|
|
278
|
-
height: 15px;
|
|
279
|
-
border-radius: 50%;
|
|
280
|
-
background: #2c3e50;
|
|
281
|
-
cursor: pointer;
|
|
282
|
-
transition: background 0.15s ease-in-out;
|
|
283
|
-
}
|
|
284
|
-
.range-slider {
|
|
285
|
-
margin: 60px 0 0 0;
|
|
286
|
-
}
|
|
287
|
-
.range-slider {
|
|
288
|
-
width: 100%;
|
|
289
|
-
}
|
|
290
|
-
input[type="range"]::-webkit-slider-thumb:hover {
|
|
291
|
-
background: #00416F;
|
|
292
|
-
}
|
|
293
|
-
input[type="range"]:active::-webkit-slider-thumb {
|
|
294
|
-
background: #00416F;
|
|
295
|
-
}
|
|
296
|
-
input[type="range"]::-moz-range-thumb {
|
|
297
|
-
width: 15px;
|
|
298
|
-
height: 15px;
|
|
299
|
-
border: 0;
|
|
300
|
-
border-radius: 50%;
|
|
301
|
-
background: #2c3e50;
|
|
302
|
-
cursor: pointer;
|
|
303
|
-
transition: background 0.15s ease-in-out;
|
|
304
|
-
}
|
|
305
|
-
input[type="range"]::-moz-range-thumb:hover {
|
|
306
|
-
background: #00416F;
|
|
307
|
-
}
|
|
308
|
-
input[type="range"]:active::-moz-range-thumb {
|
|
309
|
-
background: #00416F;
|
|
310
|
-
}
|
|
311
|
-
input[type="range"]:focus::-webkit-slider-thumb {
|
|
312
|
-
box-shadow: 0 0 0 3px #fff0, 0 0 0 6px #00416F00;
|
|
313
|
-
}
|
|
314
|
-
.range-slider__value {
|
|
315
|
-
display: inline-block;
|
|
316
|
-
position: relative;
|
|
317
|
-
width: 60px;
|
|
318
|
-
color: #fff;
|
|
319
|
-
line-height: 20px;
|
|
320
|
-
text-align: center;
|
|
321
|
-
border-radius: 3px;
|
|
322
|
-
background: #2c3e50;
|
|
323
|
-
padding: 5px 10px;
|
|
324
|
-
margin-left: 8px;
|
|
325
|
-
}
|
|
326
|
-
.range-slider__value:after {
|
|
327
|
-
position: absolute;
|
|
328
|
-
top: 8px;
|
|
329
|
-
left: -7px;
|
|
330
|
-
width: 0;
|
|
331
|
-
height: 0;
|
|
332
|
-
border-top: 7px solid transparent;
|
|
333
|
-
border-right: 7px solid #2c3e50;
|
|
334
|
-
border-bottom: 7px solid transparent;
|
|
335
|
-
content: '';
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
input::-moz-focus-inner, input::-moz-focus-outer {
|
|
339
|
-
border: 0;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
|
|
343
76
|
ul {
|
|
344
77
|
padding-left: 0;
|
|
345
78
|
margin-top: 0;
|
|
@@ -348,7 +81,6 @@ li {
|
|
|
348
81
|
list-style: none;
|
|
349
82
|
}
|
|
350
83
|
li span {
|
|
351
|
-
overflow: hidden;
|
|
352
84
|
text-overflow: ellipsis;
|
|
353
85
|
white-space: nowrap;
|
|
354
86
|
}
|
|
@@ -373,6 +105,13 @@ details > summary::-webkit-details-marker {
|
|
|
373
105
|
.title {
|
|
374
106
|
font-size: small;
|
|
375
107
|
align-items: center;
|
|
108
|
+
text-transform: capitalize;
|
|
109
|
+
}
|
|
110
|
+
h6.main-heading {
|
|
111
|
+
font-size: 1rem;
|
|
112
|
+
margin-block-start: 1.33em;
|
|
113
|
+
margin-block-end: 1.33em;
|
|
114
|
+
margin-top: 8px;
|
|
376
115
|
}
|
|
377
116
|
details summary .title {
|
|
378
117
|
display: flex;
|
|
@@ -425,7 +164,7 @@ input[type="text"] {
|
|
|
425
164
|
margin-bottom: 0.5rem;
|
|
426
165
|
padding: 5px 7px;
|
|
427
166
|
border-radius: 4px;
|
|
428
|
-
border: 1px solid
|
|
167
|
+
border: 1px solid var(--border-color);
|
|
429
168
|
}
|
|
430
169
|
section:not(section:last-of-type) {
|
|
431
170
|
margin-bottom: 1rem;
|
|
@@ -439,48 +178,42 @@ section:not(section:last-of-type) {
|
|
|
439
178
|
ul li {
|
|
440
179
|
padding: 5px 10px;
|
|
441
180
|
}
|
|
442
|
-
li.highlighted {
|
|
443
|
-
background: #00417011;
|
|
444
|
-
}
|
|
445
181
|
section {
|
|
446
182
|
position: relative;
|
|
183
|
+
background-color: var(--background-color);
|
|
184
|
+
padding: 4px;
|
|
447
185
|
}
|
|
448
186
|
button#filter-reset {
|
|
449
187
|
position: absolute;
|
|
450
188
|
top: 4px;
|
|
451
189
|
right: 0;
|
|
452
|
-
|
|
453
|
-
.scroll {
|
|
454
|
-
max-height: calc(100% - 30px);
|
|
455
|
-
overflow-x: hidden;
|
|
456
|
-
overflow-y: auto;
|
|
190
|
+
padding: 2px 10px;
|
|
457
191
|
}
|
|
458
192
|
.count {
|
|
459
193
|
display: flex;
|
|
460
194
|
justify-content: center;
|
|
461
195
|
align-items: center;
|
|
462
|
-
background:
|
|
196
|
+
background: var(--secondary-color);
|
|
463
197
|
padding: 0 12px;
|
|
464
198
|
height: 20px;
|
|
465
199
|
border-radius: 10px;
|
|
466
|
-
color:
|
|
200
|
+
color: var(--primary-color);
|
|
467
201
|
font-weight: 500;
|
|
468
202
|
margin-left: 9px;
|
|
469
203
|
}
|
|
470
|
-
eox-itemfilter-range
|
|
471
|
-
|
|
204
|
+
eox-itemfilter-range,
|
|
205
|
+
tc-range-slider {
|
|
472
206
|
align-items: center;
|
|
473
|
-
|
|
207
|
+
display: block;
|
|
208
|
+
padding-left: 0.6rem;
|
|
474
209
|
}
|
|
475
210
|
.range-before,
|
|
476
211
|
.range-after {
|
|
477
212
|
font-size: small;
|
|
478
213
|
}
|
|
479
|
-
.range-before
|
|
480
|
-
margin-right: .5rem;
|
|
481
|
-
}
|
|
214
|
+
.range-before,
|
|
482
215
|
.range-after {
|
|
483
|
-
margin
|
|
216
|
+
margin: 1rem 0px;
|
|
484
217
|
}
|
|
485
218
|
|
|
486
219
|
button.reset-icon:before {
|
|
@@ -488,231 +221,462 @@ button.reset-icon:before {
|
|
|
488
221
|
}
|
|
489
222
|
eox-itemfilter-expandcontainer button.reset-icon {
|
|
490
223
|
margin-left: 4px;
|
|
491
|
-
margin-top:
|
|
224
|
+
margin-top: -5px;
|
|
225
|
+
height: 14px;
|
|
226
|
+
width: 14px;
|
|
492
227
|
}
|
|
493
228
|
eox-itemfilter-expandcontainer button.reset-icon:before {
|
|
494
|
-
height:
|
|
495
|
-
width:
|
|
229
|
+
height: 14px;
|
|
230
|
+
width: 14px;
|
|
231
|
+
}
|
|
232
|
+
.inline-content {
|
|
233
|
+
border: 1.5px solid var(--secondary-color);
|
|
234
|
+
border-radius: 4px;
|
|
235
|
+
position: absolute;
|
|
236
|
+
width: calc(100% - 3px);
|
|
237
|
+
max-height: 300px;
|
|
238
|
+
overflow-y: auto;
|
|
239
|
+
background: var(--inline-bg-color);
|
|
240
|
+
z-index: 1;
|
|
241
|
+
margin-top: 0.5rem;
|
|
242
|
+
}
|
|
243
|
+
.inline-container {
|
|
244
|
+
position: relative;
|
|
245
|
+
align-items: center;
|
|
246
|
+
}
|
|
247
|
+
.inline-container-wrapper {
|
|
248
|
+
width: 100%;
|
|
249
|
+
position: relative;
|
|
250
|
+
}
|
|
251
|
+
.inline-container {
|
|
252
|
+
position: relative;
|
|
253
|
+
border: 1px solid var(--border-color);
|
|
254
|
+
border-radius: 4px;
|
|
255
|
+
height: 24px;
|
|
256
|
+
padding: 8px;
|
|
257
|
+
flex: 1;
|
|
258
|
+
justify-content: space-between;
|
|
259
|
+
cursor: text;
|
|
260
|
+
transition: all 0.2s ease-in-out;
|
|
261
|
+
display: flex;
|
|
262
|
+
}
|
|
263
|
+
.inline-container:hover {
|
|
264
|
+
border: 1px solid var(--primary-color);
|
|
265
|
+
}
|
|
266
|
+
.input-container {
|
|
267
|
+
display: flex;
|
|
268
|
+
flex: 1;
|
|
269
|
+
align-items: center;
|
|
270
|
+
}
|
|
271
|
+
.input-container input,
|
|
272
|
+
.input-container input:focus {
|
|
273
|
+
height: 100%;
|
|
274
|
+
border: none;
|
|
275
|
+
outline: none;
|
|
276
|
+
border: 0;
|
|
277
|
+
min-width: 25%;
|
|
278
|
+
}
|
|
279
|
+
.button-container {
|
|
280
|
+
display: flex;
|
|
281
|
+
align-items: center;
|
|
282
|
+
justify-content: center;
|
|
283
|
+
position: absolute;
|
|
284
|
+
right: 1px;
|
|
285
|
+
top: 5px;
|
|
286
|
+
height: calc(100% - 10px);
|
|
287
|
+
width: 34px;
|
|
288
|
+
background: white;
|
|
289
|
+
}
|
|
290
|
+
button.icon {
|
|
291
|
+
color: #004170;
|
|
292
|
+
height: 24px;
|
|
293
|
+
font-size: large;
|
|
294
|
+
width: unset;
|
|
295
|
+
}
|
|
296
|
+
.inline-container::-webkit-scrollbar {
|
|
297
|
+
height: 2px;
|
|
298
|
+
}
|
|
299
|
+
.inline-container::-webkit-scrollbar-thumb {
|
|
300
|
+
background: lightgrey;
|
|
301
|
+
border-radius: 2px;
|
|
496
302
|
}
|
|
497
|
-
|
|
303
|
+
.hidden {
|
|
304
|
+
height: 0;
|
|
305
|
+
padding: 0;
|
|
306
|
+
border: none;
|
|
307
|
+
}
|
|
308
|
+
.hidden:hover {
|
|
309
|
+
border: none;
|
|
310
|
+
}
|
|
311
|
+
.chip-title {
|
|
312
|
+
pointer-events: none;
|
|
313
|
+
text-transform: capitalize;
|
|
314
|
+
}
|
|
315
|
+
.chip {
|
|
316
|
+
display: flex;
|
|
317
|
+
align-items: center;
|
|
318
|
+
background: var(--item-color);
|
|
319
|
+
border-radius: 30px;
|
|
320
|
+
margin-right: 4px;
|
|
321
|
+
padding: 5px 10px;
|
|
322
|
+
font-size: small;
|
|
323
|
+
cursor: default;
|
|
324
|
+
white-space: nowrap;
|
|
325
|
+
}
|
|
326
|
+
.chip.highlighted {
|
|
327
|
+
background: var(--primary-color);
|
|
328
|
+
color: white;
|
|
329
|
+
}
|
|
330
|
+
.chip-close {
|
|
331
|
+
cursor: pointer;
|
|
332
|
+
font-weight: 600;
|
|
333
|
+
position: absolute;
|
|
334
|
+
right: -25px;
|
|
335
|
+
background: white;
|
|
336
|
+
top: 0;
|
|
337
|
+
height: 100%;
|
|
338
|
+
display: flex;
|
|
339
|
+
align-items: center;
|
|
340
|
+
height: 24px;
|
|
341
|
+
width: 24px;
|
|
342
|
+
}
|
|
343
|
+
.chip-close:before {
|
|
344
|
+
position: absolute;
|
|
345
|
+
text-indent: 0;
|
|
346
|
+
line-height: initial;
|
|
347
|
+
height: 24px;
|
|
348
|
+
width: 24px;
|
|
349
|
+
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eclose%3C/title%3E%3Cpath d='M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z' /%3E%3C/svg%3E");
|
|
350
|
+
}
|
|
351
|
+
.chip-container {
|
|
352
|
+
position: relative;
|
|
353
|
+
max-width: 75%;
|
|
354
|
+
}
|
|
355
|
+
.autocomplete-container,
|
|
356
|
+
.text-container {
|
|
357
|
+
position: relative;
|
|
358
|
+
align-items: center;
|
|
359
|
+
width: 100%;
|
|
360
|
+
box-sizing: border-box;
|
|
361
|
+
border: 1px solid var(--border-color);
|
|
362
|
+
border-radius: 4px;
|
|
363
|
+
justify-content: space-between;
|
|
364
|
+
cursor: text;
|
|
365
|
+
margin-top: 0.5rem;
|
|
366
|
+
margin-bottom: 0.5rem;
|
|
367
|
+
background: white;
|
|
368
|
+
}
|
|
369
|
+
.autocomplete-container:hover,
|
|
370
|
+
.text-container:hover {
|
|
371
|
+
border: 1px solid var(--primary-color);
|
|
372
|
+
}
|
|
373
|
+
.autocomplete-container-wrapper,
|
|
374
|
+
.text-container-wrapper {
|
|
375
|
+
padding: 6px;
|
|
376
|
+
position: relative;
|
|
377
|
+
display: flex;
|
|
378
|
+
align-items: center;
|
|
379
|
+
flex: 1;
|
|
380
|
+
overflow-x: auto;
|
|
381
|
+
-ms-overflow-style: none;
|
|
382
|
+
scrollbar-width: none;
|
|
383
|
+
}
|
|
384
|
+
.autocomplete-container-wrapper::-webkit-scrollbar {
|
|
385
|
+
display: none;
|
|
386
|
+
}
|
|
387
|
+
.chip-wrapper {
|
|
388
|
+
-ms-overflow-style: none;
|
|
389
|
+
scrollbar-width: none;
|
|
390
|
+
}
|
|
391
|
+
.chip-wrapper::-webkit-scrollbar {
|
|
392
|
+
display: none;
|
|
393
|
+
width: 0;
|
|
394
|
+
background: transparent;
|
|
395
|
+
}
|
|
396
|
+
.autocomplete-input,
|
|
397
|
+
.text-input {
|
|
398
|
+
flex: 1;
|
|
399
|
+
border: none !important;
|
|
400
|
+
outline: none;
|
|
401
|
+
box-sizing: border-box;
|
|
402
|
+
margin-top: 0 !important;
|
|
403
|
+
margin-bottom: 0 !important;
|
|
404
|
+
padding: 3px 0px !important;
|
|
405
|
+
min-width: 150px;
|
|
406
|
+
border-radius: 4px;
|
|
407
|
+
}
|
|
408
|
+
.selected-items {
|
|
409
|
+
display: flex;
|
|
410
|
+
flex-wrap: nowrap;
|
|
411
|
+
gap: 4px;
|
|
412
|
+
}
|
|
413
|
+
li.highlighted,
|
|
414
|
+
.select-container li:hover,
|
|
415
|
+
.highlight-item {
|
|
416
|
+
background: var(--item-hover-color);
|
|
417
|
+
}
|
|
418
|
+
.selected-item span {
|
|
419
|
+
margin-right: 8px;
|
|
420
|
+
}
|
|
421
|
+
.selected-item button {
|
|
422
|
+
background: none;
|
|
423
|
+
border: none;
|
|
424
|
+
color: #fff;
|
|
425
|
+
cursor: pointer;
|
|
426
|
+
font-size: 16px;
|
|
427
|
+
line-height: 1;
|
|
428
|
+
}
|
|
429
|
+
.multiselect-container,
|
|
430
|
+
.select-container {
|
|
431
|
+
display: flex;
|
|
432
|
+
flex-direction: column;
|
|
433
|
+
gap: 4px;
|
|
434
|
+
}
|
|
435
|
+
.multiselect-container label,
|
|
436
|
+
.select-container label {
|
|
437
|
+
display: flex;
|
|
438
|
+
align-items: center;
|
|
439
|
+
cursor: pointer;
|
|
440
|
+
}
|
|
441
|
+
.multiselect-container input,
|
|
442
|
+
.select-container input {
|
|
443
|
+
margin-right: 8px;
|
|
444
|
+
}
|
|
445
|
+
.select-overflow {
|
|
446
|
+
max-height: 185px;
|
|
447
|
+
overflow-y: auto;
|
|
448
|
+
}
|
|
449
|
+
.chip-title strong {
|
|
450
|
+
font-weight: 500;
|
|
451
|
+
}
|
|
452
|
+
.chip-wrapper {
|
|
453
|
+
max-width: 100%;
|
|
454
|
+
overflow-x: scroll;
|
|
455
|
+
}
|
|
456
|
+
.chip-container {
|
|
457
|
+
display: flex;
|
|
458
|
+
flex: 0;
|
|
459
|
+
}
|
|
460
|
+
.input-container.dirty-filter-input {
|
|
461
|
+
margin-left: 25px;
|
|
462
|
+
}
|
|
463
|
+
`,_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 K`
|
|
498
464
|
<style>
|
|
499
|
-
${
|
|
500
|
-
${!this.unstyled&&Zr}
|
|
465
|
+
${!this.unstyled&&yn}
|
|
501
466
|
</style>
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
>
|
|
508
|
-
<summary>
|
|
509
|
-
<span
|
|
510
|
-
class="title"
|
|
511
|
-
style="${!this.filterObject.title&&"text-transform: capitalize"}"
|
|
467
|
+
|
|
468
|
+
${Qe(this.filterObject.featured,()=>K`<slot name="filter"></slot>`,()=>K`<details
|
|
469
|
+
@toggle="${Se(this,Ui,Yf)}"
|
|
470
|
+
class="details-filter"
|
|
471
|
+
?open=${this.filterObject.expanded||be}
|
|
512
472
|
>
|
|
513
|
-
|
|
514
|
-
<slot name="reset-button"></slot>
|
|
515
|
-
</span>
|
|
516
|
-
</summary>
|
|
517
|
-
<div class="scroll">
|
|
518
|
-
<slot name="filter"></slot>
|
|
519
|
-
</div>
|
|
520
|
-
</details>
|
|
521
|
-
`}};Qr([J({attribute:!1})],dr.prototype,"filterObject",2),Qr([J()],dr.prototype,"unstyled",2),dr=Qr([ke("eox-itemfilter-expandcontainer")],dr);const Ct=t=>{if(!t.dirty)return null;switch(t.type){case"multiselect":for(const r in t.state)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[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},ei=Math.min,kt=Math.max,fr=Math.round,pr=Math.floor,at=t=>({x:t,y:t});function Rn(t){return t.split("-")[0]}function ko(t){return t.split("-")[1]}function Ro(t){return t==="x"?"y":"x"}function To(t){return t==="y"?"height":"width"}function Tn(t){return["top","bottom"].includes(Rn(t))?"y":"x"}function Io(t){return Ro(Tn(t))}function In(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Dn(t,e,r){let{reference:i,floating:n}=t;const s=Tn(e),o=Io(e),l=To(o),a=Rn(e),c=s==="y",f=i.x+i.width/2-n.width/2,p=i.y+i.height/2-n.height/2,b=i[l]/2-n[l]/2;let y;switch(a){case"top":y={x:f,y:i.y-n.height};break;case"bottom":y={x:f,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:p};break;case"left":y={x:i.x-n.width,y:p};break;default:y={x:i.x,y:i.y}}switch(ko(e)){case"start":y[o]-=b*(r&&c?-1:1);break;case"end":y[o]+=b*(r&&c?-1:1);break}return y}const Do=async(t,e,r)=>{const{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:o}=r,l=s.filter(Boolean),a=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:n}),{x:f,y:p}=Dn(c,i,a),b=i,y={},E=0;for(let O=0;O<l.length;O++){const{name:z,fn:B}=l[O],{x:g,y:m,data:w,reset:S}=await B({x:f,y:p,initialPlacement:i,placement:b,strategy:n,middlewareData:y,rects:c,platform:o,elements:{reference:t,floating:e}});f=g??f,p=m??p,y={...y,[z]:{...y[z],...w}},S&&E<=50&&(E++,typeof S=="object"&&(S.placement&&(b=S.placement),S.rects&&(c=S.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:n}):S.rects),{x:f,y:p}=Dn(c,b,a)),O=-1)}return{x:f,y:p,placement:b,strategy:n,middlewareData:y}};function Rt(t){return jn(t)?(t.nodeName||"").toLowerCase():"#document"}function Re(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function et(t){var e;return(e=(jn(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function jn(t){return t instanceof Node||t instanceof Re(t).Node}function ze(t){return t instanceof Element||t instanceof Re(t).Element}function Ye(t){return t instanceof HTMLElement||t instanceof Re(t).HTMLElement}function Nn(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Re(t).ShadowRoot}function Qt(t){const{overflow:e,overflowX:r,overflowY:i,display:n}=Ne(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(n)}function jo(t){return["table","td","th"].includes(Rt(t))}function ti(t){const e=ri(),r=Ne(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(i=>(r.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(r.contain||"").includes(i))}function No(t){let e=ct(t);for(;Ye(e)&&!Tt(e);){if(ti(e))return e;e=ct(e)}return null}function ri(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Tt(t){return["html","body","#document"].includes(Rt(t))}function Ne(t){return Re(t).getComputedStyle(t)}function gr(t){return ze(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ct(t){if(Rt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Nn(t)&&t.host||et(t);return Nn(e)?e.host:e}function Bn(t){const e=ct(t);return Tt(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ye(e)&&Qt(e)?e:Bn(e)}function er(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);const n=Bn(t),s=n===((i=t.ownerDocument)==null?void 0:i.body),o=Re(n);return s?e.concat(o,o.visualViewport||[],Qt(n)?n:[],o.frameElement&&r?er(o.frameElement):[]):e.concat(n,er(n,[],r))}function Fn(t){const e=Ne(t);let r=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const n=Ye(t),s=n?t.offsetWidth:r,o=n?t.offsetHeight:i,l=fr(r)!==s||fr(i)!==o;return l&&(r=s,i=o),{width:r,height:i,$:l}}function ii(t){return ze(t)?t:t.contextElement}function It(t){const e=ii(t);if(!Ye(e))return at(1);const r=e.getBoundingClientRect(),{width:i,height:n,$:s}=Fn(e);let o=(s?fr(r.width):r.width)/i,l=(s?fr(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const Bo=at(0);function Hn(t){const e=Re(t);return!ri()||!e.visualViewport?Bo:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Fo(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Re(t)?!1:e}function bt(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);const n=t.getBoundingClientRect(),s=ii(t);let o=at(1);e&&(i?ze(i)&&(o=It(i)):o=It(t));const l=Fo(s,r,i)?Hn(s):at(0);let a=(n.left+l.x)/o.x,c=(n.top+l.y)/o.y,f=n.width/o.x,p=n.height/o.y;if(s){const b=Re(s),y=i&&ze(i)?Re(i):i;let E=b,O=E.frameElement;for(;O&&i&&y!==E;){const z=It(O),B=O.getBoundingClientRect(),g=Ne(O),m=B.left+(O.clientLeft+parseFloat(g.paddingLeft))*z.x,w=B.top+(O.clientTop+parseFloat(g.paddingTop))*z.y;a*=z.x,c*=z.y,f*=z.x,p*=z.y,a+=m,c+=w,E=Re(O),O=E.frameElement}}return In({width:f,height:p,x:a,y:c})}const Ho=[":popover-open",":modal"];function ni(t){return Ho.some(e=>{try{return t.matches(e)}catch{return!1}})}function qo(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t;const s=n==="fixed",o=et(i),l=e?ni(e.floating):!1;if(i===o||l&&s)return r;let a={scrollLeft:0,scrollTop:0},c=at(1);const f=at(0),p=Ye(i);if((p||!p&&!s)&&((Rt(i)!=="body"||Qt(o))&&(a=gr(i)),Ye(i))){const b=bt(i);c=It(i),f.x=b.x+i.clientLeft,f.y=b.y+i.clientTop}return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-a.scrollLeft*c.x+f.x,y:r.y*c.y-a.scrollTop*c.y+f.y}}function Uo(t){return Array.from(t.getClientRects())}function qn(t){return bt(et(t)).left+gr(t).scrollLeft}function zo(t){const e=et(t),r=gr(t),i=t.ownerDocument.body,n=kt(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),s=kt(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let o=-r.scrollLeft+qn(t);const l=-r.scrollTop;return Ne(i).direction==="rtl"&&(o+=kt(e.clientWidth,i.clientWidth)-n),{width:n,height:s,x:o,y:l}}function Yo(t,e){const r=Re(t),i=et(t),n=r.visualViewport;let s=i.clientWidth,o=i.clientHeight,l=0,a=0;if(n){s=n.width,o=n.height;const c=ri();(!c||c&&e==="fixed")&&(l=n.offsetLeft,a=n.offsetTop)}return{width:s,height:o,x:l,y:a}}function Wo(t,e){const r=bt(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,s=Ye(t)?It(t):at(1),o=t.clientWidth*s.x,l=t.clientHeight*s.y,a=n*s.x,c=i*s.y;return{width:o,height:l,x:a,y:c}}function Un(t,e,r){let i;if(e==="viewport")i=Yo(t,r);else if(e==="document")i=zo(et(t));else if(ze(e))i=Wo(e,r);else{const n=Hn(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return In(i)}function zn(t,e){const r=ct(t);return r===e||!ze(r)||Tt(r)?!1:Ne(r).position==="fixed"||zn(r,e)}function Xo(t,e){const r=e.get(t);if(r)return r;let i=er(t,[],!1).filter(l=>ze(l)&&Rt(l)!=="body"),n=null;const s=Ne(t).position==="fixed";let o=s?ct(t):t;for(;ze(o)&&!Tt(o);){const l=Ne(o),a=ti(o);!a&&l.position==="fixed"&&(n=null),(s?!a&&!n:!a&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Qt(o)&&!a&&zn(t,o))?i=i.filter(f=>f!==o):n=l,o=ct(o)}return e.set(t,i),i}function Vo(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t;const o=[...r==="clippingAncestors"?ni(e)?[]:Xo(e,this._c):[].concat(r),i],l=o[0],a=o.reduce((c,f)=>{const p=Un(e,f,n);return c.top=kt(p.top,c.top),c.right=ei(p.right,c.right),c.bottom=ei(p.bottom,c.bottom),c.left=kt(p.left,c.left),c},Un(e,l,n));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Ko(t){const{width:e,height:r}=Fn(t);return{width:e,height:r}}function Go(t,e,r){const i=Ye(e),n=et(e),s=r==="fixed",o=bt(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const a=at(0);if(i||!i&&!s)if((Rt(e)!=="body"||Qt(n))&&(l=gr(e)),i){const p=bt(e,!0,s,e);a.x=p.x+e.clientLeft,a.y=p.y+e.clientTop}else n&&(a.x=qn(n));const c=o.left+l.scrollLeft-a.x,f=o.top+l.scrollTop-a.y;return{x:c,y:f,width:o.width,height:o.height}}function si(t){return Ne(t).position==="static"}function Yn(t,e){return!Ye(t)||Ne(t).position==="fixed"?null:e?e(t):t.offsetParent}function Wn(t,e){const r=Re(t);if(ni(t))return r;if(!Ye(t)){let n=ct(t);for(;n&&!Tt(n);){if(ze(n)&&!si(n))return n;n=ct(n)}return r}let i=Yn(t,e);for(;i&&jo(i)&&si(i);)i=Yn(i,e);return i&&Tt(i)&&si(i)&&!ti(i)?r:i||No(t)||r}const Jo=async function(t){const e=this.getOffsetParent||Wn,r=this.getDimensions,i=await r(t.floating);return{reference:Go(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Zo(t){return Ne(t).direction==="rtl"}const Qo={convertOffsetParentRelativeRectToViewportRelativeRect:qo,getDocumentElement:et,getClippingRect:Vo,getOffsetParent:Wn,getElementRects:Jo,getClientRects:Uo,getDimensions:Ko,getScale:It,isElement:ze,isRTL:Zo};function el(t,e){let r=null,i;const n=et(t);function s(){var l;clearTimeout(i),(l=r)==null||l.disconnect(),r=null}function o(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),s();const{left:c,top:f,width:p,height:b}=t.getBoundingClientRect();if(l||e(),!p||!b)return;const y=pr(f),E=pr(n.clientWidth-(c+p)),O=pr(n.clientHeight-(f+b)),z=pr(c),g={rootMargin:-y+"px "+-E+"px "+-O+"px "+-z+"px",threshold:kt(0,ei(1,a))||1};let m=!0;function w(S){const _=S[0].intersectionRatio;if(_!==a){if(!m)return o();_?o(!1,_):i=setTimeout(()=>{o(!1,1e-7)},1e3)}m=!1}try{r=new IntersectionObserver(w,{...g,root:n.ownerDocument})}catch{r=new IntersectionObserver(w,g)}r.observe(t)}return o(!0),s}function tl(t,e,r,i){i===void 0&&(i={});const{ancestorScroll:n=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=i,c=ii(t),f=n||s?[...c?er(c):[],...er(e)]:[];f.forEach(B=>{n&&B.addEventListener("scroll",r,{passive:!0}),s&&B.addEventListener("resize",r)});const p=c&&l?el(c,r):null;let b=-1,y=null;o&&(y=new ResizeObserver(B=>{let[g]=B;g&&g.target===c&&y&&(y.unobserve(e),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var m;(m=y)==null||m.observe(e)})),r()}),c&&!a&&y.observe(c),y.observe(e));let E,O=a?bt(t):null;a&&z();function z(){const B=bt(t);O&&(B.x!==O.x||B.y!==O.y||B.width!==O.width||B.height!==O.height)&&r(),O=B,E=requestAnimationFrame(z)}return r(),()=>{var B;f.forEach(g=>{n&&g.removeEventListener("scroll",r),s&&g.removeEventListener("resize",r)}),p==null||p(),(B=y)==null||B.disconnect(),y=null,a&&cancelAnimationFrame(E)}}const rl=(t,e,r)=>{const i=new Map,n={platform:Qo,...r},s={...n.platform,_c:i};return Do(t,e,{...n,platform:s})};var il=Object.defineProperty,nl=Object.getOwnPropertyDescriptor,mr=(t,e,r,i)=>{for(var n=i>1?void 0:i?nl(e,r):e,s=t.length-1,o;s>=0;s--)(o=t[s])&&(n=(i?o(e,r,n):o(n))||n);return i&&n&&il(e,r,n),n};let tr=class extends _e{constructor(){super(...arguments),this.open=!1,this.parent=null,this.unstyled=!1,this._clickEventListener=()=>{this.open=!1},this._keyboardEventListener=t=>{const{code:e}=t;["Escape"].includes(e)&&this._handleKeyboard(e)}}_handleKeyboard(t){this.clientHeight}_overlayCleanup(){}connectedCallback(){super.connectedCallback(),this.unstyled||setTimeout(()=>{const t=this.parent||this.renderRoot.querySelector("[name=trigger]").assignedNodes()[0],e=this.renderRoot.querySelector("#dropdown"),r=()=>{e.classList.contains("open")&&rl(t,e,{strategy:"fixed"}).then(({x:i,y:n})=>{Object.assign(e.style,{left:`${i}px`,top:`${n}px`,width:`${t.getBoundingClientRect().width}px`})})};this._overlayCleanup=tl(t,e,r)})}disconnectedCallback(){super.disconnectedCallback(),this._overlayCleanup(),this.getRootNode().removeEventListener("keydown",this._keyboardEventListener),window.removeEventListener("click",this._clickEventListener)}render(){return U`
|
|
522
|
-
<style>
|
|
523
|
-
#dropdown {
|
|
524
|
-
display: none;
|
|
525
|
-
}
|
|
526
|
-
#dropdown.open {
|
|
527
|
-
display: block;
|
|
528
|
-
}
|
|
529
|
-
${this.unstyled?se:U`
|
|
530
|
-
eox-dropdown { height: 100%;} #dropdown { position: fixed; top:
|
|
531
|
-
0px; left: 0; width: 100%; margin: 0; padding: 0; background:
|
|
532
|
-
white; border-bottom-left-radius: 4px; border-bottom-right-radius:
|
|
533
|
-
4px; box-shadow: 0 4px 4px #0007; cursor: default; max-height:
|
|
534
|
-
200px; overflow-y: auto; z-index: 99;}
|
|
535
|
-
`}
|
|
536
|
-
</style>
|
|
537
|
-
<slot name="trigger"></slot>
|
|
538
|
-
<div id="dropdown">
|
|
539
|
-
<slot name="content"></slot>
|
|
540
|
-
</div>
|
|
541
|
-
`}updated(t){if(t.has("open")){const e=this.renderRoot.querySelector("#dropdown");this.open?e.classList.add("open"):e.classList.remove("open"),this.requestUpdate()}}firstUpdated(){window.addEventListener("click",this._clickEventListener),this.getRootNode().addEventListener("keydown",this._keyboardEventListener),this.renderRoot.querySelector("[name=trigger]").assignedNodes()[0].addEventListener("focus",()=>{this.open=!0})}};mr([J({type:Boolean})],tr.prototype,"open",2),mr([J()],tr.prototype,"parent",2),mr([J({type:Boolean})],tr.prototype,"unstyled",2),tr=mr([ke("eox-dropdown")],tr);var sl=Object.defineProperty,ol=Object.getOwnPropertyDescriptor,yr=(t,e,r,i)=>{for(var n=i>1?void 0:i?ol(e,r):e,s=t.length-1,o;s>=0;s--)(o=t[s])&&(n=(i?o(e,r,n):o(n))||n);return i&&n&&sl(e,r,n),n};let rr=class extends _e{constructor(){super(...arguments),this.items=[],this.titleProperty="title",this.unstyled=!1,this._keyboardEventListener=t=>{const{code:e}=t;this.parentElement.classList.contains("hidden")&&["ArrowLeft","ArrowRight","Backspace"].includes(e)||(e==="Space"&&t.preventDefault(),["Escape","Space","Enter"].includes(e)||t.stopPropagation(),["ArrowLeft","ArrowRight","Escape","Backspace"].includes(e)&&this._handleKeyboard(e,t.target.value??""))}}_dispatchEvent(){this.dispatchEvent(new CustomEvent("items-selected",{detail:this.items}))}_handleKeyboard(t,e){const r=this.renderRoot.querySelector(".chip.highlighted");if((t==="Escape"||e)&&r&&r.classList.remove("highlighted"),t==="Backspace"&&!e){if(this.items.length){r&&this.items.splice(Array.from(this.renderRoot.querySelectorAll(".chip")).indexOf(r),1);const i=this.renderRoot.querySelectorAll(".chip")[this.renderRoot.querySelectorAll(".chip").length-1];i.classList.contains("highlighted")||i.classList.add("highlighted"),this.requestUpdate()}this._dispatchEvent()}if((t==="ArrowLeft"||t==="ArrowRight")&&!e){if(this.renderRoot.querySelectorAll(".chip").length<1)return;let i=0;const n=this.renderRoot.querySelector(".chip.highlighted");n&&(i=Array.from(this.renderRoot.querySelectorAll(".chip")).indexOf(n),n.classList.remove("highlighted")),i=i+(t==="ArrowLeft"?-1:1),t==="ArrowLeft"&&i<0&&(i=this.renderRoot.querySelectorAll(".chip").length-1),t==="ArrowRight"&&i>this.renderRoot.querySelectorAll(".chip").length-1&&(i=0),Array.from(this.renderRoot.querySelectorAll(".chip"))[i].classList.add("highlighted")}}connectedCallback(){super.connectedCallback(),this.getRootNode().addEventListener("keydown",this._keyboardEventListener)}disconnectedCallback(){super.disconnectedCallback(),this.getRootNode().removeEventListener("keydown",this._keyboardEventListener)}render(){return U`
|
|
542
|
-
<style>
|
|
543
|
-
.chip.highlighted {
|
|
544
|
-
background: lightgrey;
|
|
545
|
-
}
|
|
546
|
-
.chip-title {
|
|
547
|
-
pointer-events: none;
|
|
548
|
-
}
|
|
549
|
-
${this.unstyled?se:U`
|
|
550
|
-
.chip-container { display: flex; flex: 0; } .chip { display: flex;
|
|
551
|
-
align-items: center; background: #00417022; border-radius: 4px;
|
|
552
|
-
margin-right: 4px; padding: 5px 10px; font-size: small; cursor:
|
|
553
|
-
default; white-space: nowrap; } .chip.highlighted { background:
|
|
554
|
-
#004170; color: white; } .chip-close { cursor: pointer;
|
|
555
|
-
margin-left: 4px; }
|
|
556
|
-
`}
|
|
557
|
-
</style>
|
|
558
|
-
<span class="chip-container">
|
|
559
|
-
${Jt(this.items,t=>U`
|
|
560
|
-
<span
|
|
561
|
-
class="chip"
|
|
562
|
-
@click=${e=>{this.renderRoot.querySelectorAll(".chip").forEach(r=>{r.classList.remove("highlighted")}),e.target.classList.add("highlighted"),this.requestUpdate()}}
|
|
563
|
-
>
|
|
564
|
-
<span class="chip-title"
|
|
565
|
-
>${t[this.titleProperty]}</span
|
|
566
|
-
>
|
|
567
|
-
${de(t._inProgress,()=>t.stringifiedState?"":U` ... `)}
|
|
568
|
-
${de(t.stringifiedState,()=>U`: ${t.stringifiedState}`)}
|
|
473
|
+
<summary>
|
|
569
474
|
<span
|
|
570
|
-
class="
|
|
571
|
-
|
|
572
|
-
>✕</span
|
|
475
|
+
class="title"
|
|
476
|
+
style="${!this.filterObject.title&&"text-transform: capitalize"}"
|
|
573
477
|
>
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
478
|
+
${this.filterObject.title||this.filterObject.key||"Filter"}
|
|
479
|
+
<slot name="reset-button"></slot>
|
|
480
|
+
</span>
|
|
481
|
+
</summary>
|
|
482
|
+
<div>
|
|
483
|
+
<slot name="filter"></slot>
|
|
484
|
+
</div>
|
|
485
|
+
</details>`)}
|
|
486
|
+
`}}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 Fp(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 Wp(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,W=L?Array(g):[];let V;for(;(V=t.indexOf(e,A))>-1;){let X=Qn(e,{currentLocation:V,expectedLocation:m,distance:i,ignoreLocation:f});if(b=Math.min(X,b),A=V+d,L){let ie=0;for(;ie<d;)W[V+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&&(W[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=Fp(W,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:W})=>{const{isMatch:V,score:J,indices:Z}=Wp(e,A,L,{location:i+W,distance:o,threshold:s,findAllMatches:c,minMatchCharLength:l,includeMatches:n,ignoreLocation:f});V&&(m=!0),g+=J,V&&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 Vp 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 Kp 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,Vp,Kp,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:W}=b.search(e);if(A){if(o+=1,c+=W,n){const V=b.constructor.type;eh.has(V)?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("#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,W=e[r];if(d=W[0],d[0]!==W[L][0]&&d[1]!==W[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=W[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]",W=n(b),V=A&&r.call(b)==="[object String]",J=[];if(!A&&!L&&!W)throw new TypeError("Object.keys called on a non-object");var Z=s&&L;if(V&&b.length>0&&!e.call(b,0))for(var pe=0;pe<b.length;++pe)J.push(String(pe));if(W&&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,Ft=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,Fh=Sh,Or=$l,Cr=Ft,Wh=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%":Fh,"%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%":Wh,"%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 Vh=Ue(Ue(t));ar["%Error.prototype%"]=Vh}var Kh=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=Kh(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=Ft,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=Ft,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=Ft,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(),Fl=ct,Wl=Object,vd=Fl("Array.prototype.push"),zl=Fl("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=Wl(e);if(arguments.length===1)return n;for(var i=1;i<arguments.length;++i){var o=Wl(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,Vl=Gl,Md=Sd,Pd=_d.apply(Vl()),Kl=function(e,r){return Pd(Object,arguments)};Ad(Kl,{getPolyfill:Vl,implementation:Ed,shim:Md});var Od=Kl,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=Ft,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=Ft,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},Fd=lr.supportsDescriptors,Wd=Zl,zd=Object.getOwnPropertyDescriptor,qd=Object.defineProperty,Gd=TypeError,Xl=Object.getPrototypeOf,Vd=/a/,Kd=function(){if(!Fd||!Xl)throw new Gd("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=Wd(),r=Xl(Vd),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=Kd,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,Fo=rg("Object.prototype.toString"),li=function(e){return tg&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:Fo(e)==="[object Arguments]"},tc=function(e){return li(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Fo(e)!=="[object Array]"&&Fo(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 Wo=typeof Map=="function"&&Map.prototype,zo=Object.getOwnPropertyDescriptor&&Wo?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ci=Wo&&zo&&typeof zo.get=="function"?zo.get:null,nc=Wo&&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,Vo=String.prototype.slice,Wt=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,Ko=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",Ve=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=Vo.call(e,i.length+1);return Wt.call(i,r,"$&_")+"."+Wt.call(Wt.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Wt.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?Wt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Jo.call(e);return typeof e=="object"&&!Dr?Sn(L):L}if(Og(e)){for(var W="<"+sc.call(String(e.nodeName)),V=e.attributes||[],J=0;J<V.length;J++)W+=" "+V[J].name+"="+gc(gg(V[J].value),"double",o);return W+=">",e.childNodes&&e.childNodes.length&&(W+="..."),W+="</"+sc.call(String(e.nodeName))+">",W}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(Ko.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&&Ve&&Object(e)===e&&Ve in e?Vo.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 Wt.call(String(t),/"/g,""")}function Xo(t){return qt(t)==="[object Array]"&&(!Ve||!(typeof t=="object"&&Ve in t))}function yg(t){return qt(t)==="[object Date]"&&(!Ve||!(typeof t=="object"&&Ve in t))}function yc(t){return qt(t)==="[object RegExp]"&&(!Ve||!(typeof t=="object"&&Ve in t))}function vg(t){return qt(t)==="[object Error]"&&(!Ve||!(typeof t=="object"&&Ve in t))}function mg(t){return qt(t)==="[object String]"&&(!Ve||!(typeof t=="object"&&Ve in t))}function bg(t){return qt(t)==="[object Number]"&&(!Ve||!(typeof t=="object"&&Ve in t))}function wg(t){return qt(t)==="[object Boolean]"&&(!Ve||!(typeof t=="object"&&Ve 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"||!Ko)return!1;try{return Ko.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(Vo.call(t,0,e.maxStringLength),e)+n}var i=Wt.call(Wt.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],`
|
|
487
|
+
`)>=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=`
|
|
488
|
+
`+e.prev+e.base;return r+$t.call(t,","+r)+`
|
|
489
|
+
`+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=Ft,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},Fg=function(t,e,r){var n=ts(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Wg=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 Wg(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}),Fg(n,o,s))}};return i},zg=_l,An=xc(),kt=Ft,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,Vg=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 Kg(){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=Vg;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=Kg(),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 Fc=ht("Map.prototype.@@iterator",!0)||ht("Map.prototype._es6-shim iterator_",!0),Wc=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(Fc)return Fc(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(Wc)return Wc(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,Vc=Gc,by=gy,Kc=vy(Vc(),Object);yy(Kc,{getPolyfill:Vc,implementation:my,shim:by});var wy=Kc,$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]",Fy=cr(),Wy=function(e){return typeof e=="number"?!0:typeof e!="object"?!1:Fy?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}},Vy="[object Boolean]",Ky=cr(),Yy=function(e){return typeof e=="boolean"?!0:e===null||typeof e!="object"?!1:Ky&&Symbol.toStringTag in e?Gy(e):qy(e)===Vy},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=Wy,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,Fv=Uv,cu=Ir,_s=ct,xi=jo,Wv=_s("Object.prototype.toString"),uu=cr(),fu=typeof globalThis>"u"?Ge:globalThis,Es=Fv(),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},Vv=function(e){if(!e||typeof e!="object")return!1;if(!uu){var r=Ms(Wv(e),8,-1);return zv(Es,r)>-1?r:r!=="Object"?!1:Gv(e)}return xi?qv(e):null},Kv=ct,pu=Kv("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=Vv,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 W=Du(t),V=Du(e);if(W!==V)return!1;if(W||V){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,ve=(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)}};ve(am,"GeojsonEquality");function En(t,e){return t.coordinates?t.coordinates.length===e.coordinates.length:t.length===e.length}ve(En,"sameLength");function ks(t){return t.coordinates.map(e=>({type:t.type.replace("Multi",""),coordinates:e}))}ve(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}ve(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")}}ve(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)}ve(St,"point");function cm(t,e,r={}){return ur(t.map(n=>St(n,e)),r)}ve(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)}ve(Ls,"polygon");function um(t,e,r={}){return ur(t.map(n=>Ls(n,e)),r)}ve(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)}ve(At,"lineString");function fm(t,e,r={}){return ur(t.map(n=>At(n,e)),r)}ve(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}ve(ur,"featureCollection");function Ts(t,e,r={}){return ut({type:"MultiLineString",coordinates:t},e,r)}ve(Ts,"multiLineString");function Bu(t,e,r={}){return ut({type:"MultiPoint",coordinates:t},e,r)}ve(Bu,"multiPoint");function Nu(t,e,r={}){return ut({type:"MultiPolygon",coordinates:t},e,r)}ve(Nu,"multiPolygon");function pm(t,e,r={}){return ut({type:"GeometryCollection",geometries:t},e,r)}ve(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}ve(hm,"round");function Hu(t,e="kilometers"){const r=Ru[e];if(!r)throw new Error(e+" units is invalid");return t*r}ve(Hu,"radiansToLength");function Is(t,e="kilometers"){const r=Ru[e];if(!r)throw new Error(e+" units is invalid");return t/r}ve(Is,"lengthToRadians");function dm(t,e){return Uu(Is(t,e))}ve(dm,"lengthToDegrees");function gm(t){let e=t%360;return e<0&&(e+=360),e}ve(gm,"bearingToAzimuth");function Uu(t){return t%(2*Math.PI)*180/Math.PI}ve(Uu,"radiansToDegrees");function ym(t){return t%360*Math.PI/180}ve(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)}ve(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}ve(mm,"convertArea");function Nr(t){return!isNaN(t)&&t!==null&&!Array.isArray(t)}ve(Nr,"isNumber");function Ds(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}ve(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")})}ve(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")}ve(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 Fu(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(Fu,"getCoords");function Wu(t){if(t.length>1&&Nr(t[0])&&Nr(t[1]))return!0;if(Array.isArray(t[0])&&t[0].length)return Wu(t[0]);throw new Error("coordinates must only contain numbers")}Gt(Wu,"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 Vu(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 Ku{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 Ku(s,Oi,Ci,ki),d=new Ku(c,Oi,Ci,ki+1);f.otherEvent=d,d.otherEvent=f,Vu(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),W=n+b*(o-n);return[L,W]}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([],Vu);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,We=(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",W=A?t.features.length:1,V=0;V<W;V++){f=A?t.features[V].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,V,Z,pe)===!1)return!1;g++,Z++;break;case"LineString":case"MultiPoint":for(n=0;n<l.length;n++){if(e(l[n],g,V,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,V,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,V,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")}}}}}We(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}We(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}}We(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}We(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++);}We(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}We(Hm,"featureReduce");function Um(t){var e=[];return Hr(t,function(r){e.push(r)}),e}We(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++}}We(js,"geomEach");function Fm(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}We(Fm,"geomReduce");function Vt(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}})}We(Vt,"flattenEach");function Wm(t,e,r){var n=r;return Vt(t,function(i,o,s){o===0&&s===0&&r===void 0?n=i:n=e(n,i,o,s)}),n}We(Wm,"flattenReduce");function Xu(t,e){Vt(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 W=At([c,g],r.properties);if(e(W,n,i,L,o)===!1)return!1;o++,c=g})===!1)return!1}}})}We(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}We(zm,"segmentReduce");function Qu(t,e){if(!t)throw new Error("geojson is required");Vt(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}}})}We(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}We(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")}We(Gm,"findSegment");function Vm(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")}We(Vm,"findPoint");var Km=Object.defineProperty,Ti=(t,e)=>Km(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,Kt=(t,e)=>Ym(t,"name",{value:e,configurable:!0});function rf(t,e){let r=!0;return Vt(t,n=>{Vt(e,i=>{if(r===!1)return!1;r=nf(n.geometry,i.geometry)})}),r}Kt(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}Kt(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}Kt(Ns,"isPointOnLine");function of(t,e){return Li(t,e).features.length>0}Kt(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}Kt(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}Kt(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]}Kt(af,"isPointOnLineSegment");function lf(t,e){return t[0]===e[0]&&t[1]===e[1]}Kt(lf,"compareCoords");var Jm=Object.defineProperty,Zm=(t,e)=>Jm(t,"name",{value:e,configurable:!0});function cf(t,e){let r=!1;return Vt(t,n=>{Vt(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=Fu(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(Fs(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++)Fs(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 Fs(t,e){return t[0]===e[0]&&t[1]===e[1]}gt(Fs,"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",W=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,V=/\[([^\]]+)]|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(W);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,Ke=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?Ke-le:Ke+(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 Ke=de(q);return re.w(Ke.date(Ke.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,Ke=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(V,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,Ke,3);case"MMMM":return Ye(Ke,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,Ke=function(){return re.m(G,_e)};switch(ye){case b:q=Ke()/12;break;case g:q=Ke();break;case m:q=Ke()/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 © OpenStreetMap contributors and others, Rendering © 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:K`${e}:
|
|
490
|
+
<strong>${t[e].stringifiedState}</strong>`,key:e})).filter(e=>t[e.key].dirty)}function Ws(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 K`
|
|
578
491
|
<style>
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
display: flex;
|
|
582
|
-
}
|
|
583
|
-
#dropdown {
|
|
584
|
-
display: none;
|
|
492
|
+
${!this.unstyled&&yn} .inline-content {
|
|
493
|
+
display: ${this.showDropdown?"block":"none"};
|
|
585
494
|
}
|
|
586
|
-
${this.unstyled?se:U`
|
|
587
|
-
${Jr} :host { position: relative; } .container { width: 100%;
|
|
588
|
-
position: relative; border: 1px solid #00417066; border-radius:
|
|
589
|
-
4px; height: 24px; padding: 5px; flex: 1; justify-content:
|
|
590
|
-
space-between; cursor: text; overflow-x: auto; } .container:hover
|
|
591
|
-
{ border: 1px solid #004170; } .input-container { display: flex;
|
|
592
|
-
flex: 1; align-items: center; } input, input:focus { height: 100%;
|
|
593
|
-
border: none; outline: none; } .button-container { display: flex;
|
|
594
|
-
align-items: center; justify-content: center; position: absolute;
|
|
595
|
-
right: 1px; top: 5px; height: calc(100% - 10px); width: 34px;
|
|
596
|
-
background: white; } button.icon { color: #004170; height: 24px;
|
|
597
|
-
font-size: large; width: unset; } .container::-webkit-scrollbar {
|
|
598
|
-
height: 2px; } .container::-webkit-scrollbar-thumb { background:
|
|
599
|
-
lightgrey; border-radius: 2px;} .hidden {height: 1px; padding: 0;
|
|
600
|
-
border: none;} .hidden:hover {border: none} .hidden input {
|
|
601
|
-
opacity: 0% }
|
|
602
|
-
`}
|
|
603
495
|
</style>
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
496
|
+
${this.inlineMode?K`
|
|
497
|
+
<div
|
|
498
|
+
class="inline-container-wrapper"
|
|
499
|
+
@click="${Se(this,Be,Pa)}"
|
|
500
|
+
>
|
|
501
|
+
<div class="inline-container" part="container">
|
|
502
|
+
<div class="chip-container">
|
|
503
|
+
<div class="chip-wrapper">
|
|
504
|
+
<eox-itemfilter-chips
|
|
505
|
+
.items=${f0(this.filters)}
|
|
506
|
+
.controller=${{remove:r=>Se(this,Be,Xf).call(this,r)}}
|
|
507
|
+
>
|
|
508
|
+
</eox-itemfilter-chips>
|
|
509
|
+
</div>
|
|
510
|
+
|
|
511
|
+
${Qe(Ws(this.filters),()=>K`
|
|
512
|
+
<span
|
|
513
|
+
class="chip-close"
|
|
514
|
+
@click=${()=>this.dispatchEvent(new CustomEvent("reset"))}
|
|
515
|
+
></span>
|
|
516
|
+
`)}
|
|
517
|
+
</div>
|
|
518
|
+
<div
|
|
519
|
+
class="input-container ${Ws(this.filters)?"dirty-filter-input":""}"
|
|
520
|
+
>
|
|
521
|
+
<input
|
|
522
|
+
autocomplete="off"
|
|
523
|
+
id="eox-itemfilter-input-search"
|
|
524
|
+
type="text"
|
|
525
|
+
@click="${Se(this,Be,Pa)}"
|
|
526
|
+
@focus="${Se(this,Be,Zf)}"
|
|
527
|
+
@input="${Se(this,Be,Qf)}"
|
|
528
|
+
placeholder="Search and add filter"
|
|
529
|
+
aria-haspopup="true"
|
|
530
|
+
aria-expanded="${this.showDropdown}"
|
|
531
|
+
/>
|
|
532
|
+
</div>
|
|
533
|
+
</div>
|
|
534
|
+
<div
|
|
535
|
+
class="inline-content ${this.showDropdown?"":"hidden"}"
|
|
536
|
+
slot="content"
|
|
537
|
+
@keydown="${Se(this,Be,Ma)}"
|
|
538
|
+
@click="${Se(this,Be,Oa)}"
|
|
539
|
+
@focus="${Se(this,Be,Oa)}"
|
|
540
|
+
>
|
|
541
|
+
<slot name="section"></slot>
|
|
542
|
+
</div>
|
|
543
|
+
</div>
|
|
544
|
+
`:K`<slot name="section"></slot>`}
|
|
545
|
+
`}}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(V,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 W(N){var X=N-l,ie=N-f;return l===void 0||X>=e||X<0||g&&ie>=o}function V(){var N=zs();if(W(N))return J(N);c=setTimeout(V,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=W(N);if(n=arguments,i=this,l=N,X){if(c===void 0)return A(l);if(g)return c=setTimeout(V,e),b(l)}return c===void 0&&(c=setTimeout(V,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 K`<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 F0(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){let e;t.query&&(e=new Ut(t.suggestions,{threshold:.4}).search(t.query).map(n=>n.item)),t.filteredSuggestions=F0(t,e||t.suggestions),t.highlightedIndex=-1}function Mf(t){Object.keys(t.filterObject.state).forEach(e=>{t.filterObject.state[e]=t.selectedItems.map(r=>r).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 W0(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 V0 extends it{constructor(){super();nt(this,Fi,()=>{T0(this)});Jn(this,"debouncedInputHandler",Ri(pt(this,Fi),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,()=>K`
|
|
546
|
+
<style></style>
|
|
547
|
+
<div class="text-container">
|
|
548
|
+
<div class="text-container-wrapper">
|
|
621
549
|
<input
|
|
622
|
-
slot="trigger"
|
|
623
550
|
type="text"
|
|
624
|
-
|
|
625
|
-
|
|
551
|
+
placeholder=${this.filterObject.placeholder}
|
|
552
|
+
data-cy="search"
|
|
553
|
+
class="text-input"
|
|
554
|
+
part="input-search"
|
|
555
|
+
value="${Object.values(this.filterObject.state)[0]}"
|
|
556
|
+
tabindex=${this.tabIndex}
|
|
557
|
+
@input="${this.debouncedInputHandler}"
|
|
558
|
+
@click=${r=>r.stopPropagation()}
|
|
626
559
|
/>
|
|
627
|
-
|
|
628
|
-
<eox-selectionlist
|
|
629
|
-
slot="content"
|
|
630
|
-
.filter=${this.inputText}
|
|
631
|
-
.idProperty=${this.idProperty}
|
|
632
|
-
.titleProperty=${this.titleProperty}
|
|
633
|
-
.items=${this.items.filter(t=>this.multiStep?!t.stringifiedState:!0).filter(t=>this.inputText?t[this.titleProperty].toLowerCase().includes(this.inputText.toLowerCase()):!0)}
|
|
634
|
-
.multiple=${this.multiStep?!0:this.multiple}
|
|
635
|
-
.disableKeyboardEvents=${this.multiStep}
|
|
636
|
-
.selectedItems=${this.multiStep?this.selectedItems.filter(t=>t.stringifiedState):this.selectedItems}
|
|
637
|
-
.unstyled=${this.unstyled}
|
|
638
|
-
@items-highlighted=${t=>{this._handleHighlight(t.detail)}}
|
|
639
|
-
@items-selected=${t=>{this._handleSelect(t.detail)}}
|
|
640
|
-
>
|
|
641
|
-
</eox-selectionlist>
|
|
642
|
-
`)}
|
|
643
|
-
</eox-dropdown>
|
|
560
|
+
</div>
|
|
644
561
|
</div>
|
|
562
|
+
`)}}Fi=new WeakMap,customElements.define("eox-itemfilter-text",V0);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=K` <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 K0(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})}/**
|
|
563
|
+
* @license
|
|
564
|
+
* Copyright 2017 Google LLC
|
|
565
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
566
|
+
*/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)}}/**
|
|
567
|
+
* @license
|
|
568
|
+
* Copyright 2020 Google LLC
|
|
569
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
570
|
+
*/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,Vs=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}};/**
|
|
571
|
+
* @license
|
|
572
|
+
* Copyright 2017 Google LLC
|
|
573
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
574
|
+
*/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]),W=L!==void 0?i[L]:null;if(W===null){const V=Cn(t,i[g]);pr(V,o[b]),l[b]=V}else l[b]=pr(W,o[b]),Cn(t,i[g],W),i[L]=null;b++}else Vs(i[m]),m--;else Vs(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&&Vs(L)}return this.ut=s,Z0(t,l),Nt}});/**
|
|
575
|
+
* @license
|
|
576
|
+
* Copyright 2017 Google LLC
|
|
577
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
578
|
+
*/class Ks extends Lf{constructor(e){if(super(e),this.it=be,e.type!==Cf.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===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:[]}}}Ks.directiveName="unsafeHTML",Ks.resultType=1;const eb=kf(Ks);function tb(t,e){return K`
|
|
579
|
+
<details
|
|
580
|
+
class="details-results"
|
|
581
|
+
@toggle=${e.toggleAccordion}
|
|
582
|
+
?open=${e.config.expandResults||be}
|
|
583
|
+
>
|
|
584
|
+
<summary>
|
|
585
|
+
<span class="title">
|
|
586
|
+
${t}
|
|
587
|
+
<span class="count"
|
|
588
|
+
>${e.aggregateResults(e.results,t).length}</span
|
|
589
|
+
>
|
|
590
|
+
</span>
|
|
591
|
+
</summary>
|
|
592
|
+
<div>
|
|
593
|
+
${Df(t,e)}
|
|
645
594
|
</div>
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
>
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
595
|
+
</details>
|
|
596
|
+
`}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":be};return K`
|
|
597
|
+
<ul>
|
|
598
|
+
${Q0(n,s=>s.id,s=>{var c;return K`
|
|
599
|
+
<li class=${o(s)}>
|
|
600
|
+
<label>
|
|
601
|
+
<input
|
|
602
|
+
data-cy="result-radio"
|
|
603
|
+
type="radio"
|
|
604
|
+
class="result-radio"
|
|
605
|
+
name="result"
|
|
606
|
+
id="${s.id}"
|
|
607
|
+
?checked=${((c=e.selectedResult)==null?void 0:c[i.titleProperty])===s[i.titleProperty]||be}
|
|
608
|
+
@click=${()=>{e.selectedResult=s,e.dispatchEvent(new CustomEvent("result",{detail:s}))}}
|
|
609
|
+
/>
|
|
610
|
+
${Qe(e.hasTemplate("result"),()=>e.renderTemplate("result",s,`result-${s.id}`),()=>K`
|
|
611
|
+
<span class="title"
|
|
612
|
+
>${eb(s[i.titleProperty])}</span
|
|
613
|
+
>
|
|
614
|
+
`)}
|
|
615
|
+
</label>
|
|
616
|
+
</li>
|
|
617
|
+
`})}
|
|
618
|
+
</ul>
|
|
619
|
+
`}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 K0(r,n,this)}createRenderRoot(){return this}render(){return K`
|
|
620
|
+
<section id="section-results">
|
|
621
|
+
<div>
|
|
622
|
+
<h6 style="padding: 8px 0px;">Results</h6>
|
|
623
|
+
</div>
|
|
624
|
+
<div id="container-results" class="scroll">
|
|
625
|
+
${Qe(this.results.length<1,()=>K`<small class="no-results">No matching items</small>`,()=>be)}
|
|
626
|
+
<ul id="results" part="results">
|
|
627
|
+
${Qe(this.config.aggregateResults,()=>Xn(this.resultAggregation.filter(r=>this.aggregateResults(this.results,r).length),r=>K`${Qe(this.aggregateResults(this.results,r).length===1&&this.config.autoSpreadSingle,()=>K`<div style="margin-left: -8px">
|
|
628
|
+
${Se(this,dr,Ca).call(this,r)}
|
|
629
|
+
</div>`,()=>Se(this,dr,ep).call(this,r))}`),()=>Se(this,dr,Ca).call(this))}
|
|
630
|
+
</ul>
|
|
631
|
+
</div>
|
|
632
|
+
</section>
|
|
633
|
+
`}}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":be;return K`
|
|
657
634
|
<style>
|
|
658
|
-
${
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
}
|
|
662
|
-
ul {
|
|
663
|
-
width: 100%;
|
|
664
|
-
}
|
|
665
|
-
li.highlighted {
|
|
666
|
-
background: lightgrey;
|
|
667
|
-
}
|
|
668
|
-
${!this.unstyled&&Zr}
|
|
635
|
+
${!this.unstyled&&yn}
|
|
636
|
+
${!this.unstyled&&nb}
|
|
637
|
+
${!this.unstyled&&ib}
|
|
669
638
|
</style>
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
<
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
@items-selected=${t=>this._handleSelected(t.detail)}
|
|
710
|
-
|
|
711
|
-
`)}
|
|
712
|
-
`)}};vr([J()],ir.prototype,"filterObject",2),vr([J({type:Boolean})],ir.prototype,"inline",2),vr([J({type:Boolean})],ir.prototype,"unstyled",2),ir=vr([ke("eox-itemfilter-multiselect")],ir);var fl="Expected a function",Xn=NaN,pl="[object Symbol]",gl=/^\s+|\s+$/g,ml=/^[-+]0x[0-9a-f]+$/i,yl=/^0b[01]+$/i,vl=/^0o[0-7]+$/i,bl=parseInt,xl=typeof Pt=="object"&&Pt&&Pt.Object===Object&&Pt,wl=typeof self=="object"&&self&&self.Object===Object&&self,$l=xl||wl||Function("return this")(),_l=Object.prototype,El=_l.toString,Sl=Math.max,Al=Math.min,oi=function(){return $l.Date.now()};function Ml(t,e,r){var i,n,s,o,l,a,c=0,f=!1,p=!1,b=!0;if(typeof t!="function")throw new TypeError(fl);e=Vn(e)||0,li(r)&&(f=!!r.leading,p="maxWait"in r,s=p?Sl(Vn(r.maxWait)||0,e):s,b="trailing"in r?!!r.trailing:b);function y(_){var A=i,k=n;return i=n=void 0,c=_,o=t.apply(k,A),o}function E(_){return c=_,l=setTimeout(B,e),f?y(_):o}function O(_){var A=_-a,k=_-c,F=e-A;return p?Al(F,s-k):F}function z(_){var A=_-a,k=_-c;return a===void 0||A>=e||A<0||p&&k>=s}function B(){var _=oi();if(z(_))return g(_);l=setTimeout(B,O(_))}function g(_){return l=void 0,b&&i?y(_):(i=n=void 0,o)}function m(){l!==void 0&&clearTimeout(l),c=0,i=a=n=l=void 0}function w(){return l===void 0?o:g(oi())}function S(){var _=oi(),A=z(_);if(i=arguments,n=this,a=_,A){if(l===void 0)return E(a);if(p)return l=setTimeout(B,e),y(a)}return l===void 0&&(l=setTimeout(B,e)),o}return S.cancel=m,S.flush=w,S}function li(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Ol(t){return!!t&&typeof t=="object"}function Pl(t){return typeof t=="symbol"||Ol(t)&&El.call(t)==pl}function Vn(t){if(typeof t=="number")return t;if(Pl(t))return Xn;if(li(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=li(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(gl,"");var r=yl.test(t);return r||vl.test(t)?bl(t.slice(2),r?2:8):ml.test(t)?Xn:+t}var Ll=Ml;const Kn=Vr(Ll);var Cl=Object.defineProperty,kl=Object.getOwnPropertyDescriptor,Gn=(t,e,r,i)=>{for(var n=i>1?void 0:i?kl(e,r):e,s=t.length-1,o;s>=0;s--)(o=t[s])&&(n=(i?o(e,r,n):o(n))||n);return i&&n&&Cl(e,r,n),n};let ai=class extends _e{constructor(){super(...arguments),this.inputHandler=t=>{const[e,r]=t.detail.values;(e!==this.filterObject.state.min||r!=this.filterObject.state.max)&&([this.filterObject.state.min,this.filterObject.state.max]=[e,r],this.filterObject.dirty=!0),this.filterObject.dirty&&(this.filterObject.stringifiedState=`${Lt(e)} - ${Lt(r)}`),this.dispatchEvent(new CustomEvent("filter")),this.requestUpdate()},this.debouncedInputHandler=Kn(this.inputHandler,0,{leading:!0})}reset(){Ct(this.filterObject),this.requestUpdate()}createRenderRoot(){return this}render(){return de(this.filterObject,()=>U`
|
|
713
|
-
<div class="range-before">
|
|
714
|
-
${this.filterObject.format==="date"?Lt.unix(this.filterObject.state.min):this.filterObject.state.min}
|
|
715
|
-
</div>
|
|
639
|
+
${Qe(this.suggestions.length>10,()=>K`<div class="autocomplete-container">
|
|
640
|
+
<div class="autocomplete-container-wrapper">
|
|
641
|
+
<input
|
|
642
|
+
autocomplete="off"
|
|
643
|
+
tabindex=${this.tabIndex}
|
|
644
|
+
class="autocomplete-input"
|
|
645
|
+
type="text"
|
|
646
|
+
.value=${this.query}
|
|
647
|
+
placeholder="${this.filterObject.placeholder||""}"
|
|
648
|
+
@input=${Se(this,Yt,tp)}
|
|
649
|
+
@keydown=${Se(this,Yt,rp)}
|
|
650
|
+
@blur=${()=>this.showSuggestions=!1}
|
|
651
|
+
@focus=${()=>this.showSuggestions=!0}
|
|
652
|
+
/>
|
|
653
|
+
</div>
|
|
654
|
+
</div>`)}
|
|
655
|
+
<div class="select-container ${n}">
|
|
656
|
+
<ul class="${this.type}">
|
|
657
|
+
${this.filteredSuggestions.map(i=>K`
|
|
658
|
+
<li
|
|
659
|
+
data-identifier="${i.toString().toLowerCase()}"
|
|
660
|
+
data-title="${i}"
|
|
661
|
+
class="${this.selectedItems.includes(i)?"highlight-item":""}"
|
|
662
|
+
>
|
|
663
|
+
<label>
|
|
664
|
+
<input
|
|
665
|
+
type="${r}"
|
|
666
|
+
name=${i}
|
|
667
|
+
.checked=${this.selectedItems.includes(i)}
|
|
668
|
+
@change=${()=>this.debouncedInputHandler(i)}
|
|
669
|
+
@keydown=${o=>{o.key===" "&&this.inlineMode&&this.debouncedInputHandler(i)}}
|
|
670
|
+
tabindex=${this.tabIndex+1}
|
|
671
|
+
/>
|
|
672
|
+
<span class="title">${i}</span>
|
|
673
|
+
</label>
|
|
674
|
+
</li>
|
|
675
|
+
`)}
|
|
676
|
+
</ul>
|
|
677
|
+
</div>
|
|
678
|
+
`}}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",W="theme",V="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",Ke="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}}))},Vi=(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=(F,$e,De,ke,Me,Ae)=>{let Je=w;De!==void 0&&F>De&&(F=De),$e!==void 0&&F<$e&&(F=$e),w=F;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=F=>F===y||y.contains(F),B=(F,$e,De,ke)=>{M=F,H=$e,U=De,C=ke},ce=F=>{k=F,y.classList.toggle("disabled",k),k?y.setAttribute("aria-disabled","true"):y.hasAttribute("aria-disabled")&&y.removeAttribute("aria-disabled")},rt=(F,$e)=>{$e==null?y.removeAttribute(F):y.setAttribute(F,$e)},Fe=F=>y.getAttribute(F),j=F=>{if(!k){switch(F.key){case"ArrowLeft":{F.preventDefault(),typeof M=="function"&&M(x);break}case"ArrowRight":{F.preventDefault(),typeof H=="function"&&H(x);break}case"ArrowUp":{F.preventDefault(),typeof U=="function"&&U(x);break}case"ArrowDown":{F.preventDefault(),typeof C=="function"&&C(x);break}}Vi(u,F)}},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(F){ce(F)},updatePosition:Q,isClicked:se,setCallbacks:B,setAttr:rt,getAttr:Fe,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)}%`))}}),Ki="--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(Ke);if(!y)return null;let x=y.split(";"),w=[];for(let M of x)M.trim()!==""&&w.push(M.trim());return w},Vr=[[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 F=[...ne.classList];for(let $e of F)$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 F=y.querySelector(`.pointer-${j}`);!F||F.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 F=ne[0];M[F]=ne[1]}Q()}},ce=(j,ne)=>`${j}-${ne}`,rt=(j,ne,F)=>{let $e=x[F];if(!$e)return;let De=F===0?y:$e.$pointer;if(ne==null){H.has(ce(j,F))&&H.delete(ce(j,F)),De.style.removeProperty(j);return}H.set(ce(j,F),ne),De.style.setProperty(j,ne)},Fe=(j,ne)=>H.get(ce(j,ne));return(()=>{for(let j of Vr){let[ne,F,$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(F);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 Fe(ne,Je)},set:ze=>{rt(ne,ze,Je)}})}catch(Ae){console.error(Ae)}}k(u.getAttribute(W)),B()})(),{setStyle:rt,getStyle:Fe,get theme(){return w},set theme(j){k(j)},get pointerShapes(){return M},setPointerShape:se}},Et="animate-on-click",Kr="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,Fe=!1,j=!1,ne=!1,F=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,me=null;for(let fe of w){if(fe.disabled)continue;let Xe=Math.abs($-fe.percent);Xe<ee&&(ee=Xe,me=fe)}return me},Zr=()=>w.findIndex(h=>M===h&&!h.disabled),Lt=h=>{let $;if(ce===Le){let{height:ee,top:me}=y.getBoundingClientRect(),fe=h.type.indexOf("mouse")!==-1?h.clientY:h.touches[0].clientY;$=Math.min(Math.max(0,fe-me),ee)*100/ee}else{let{width:ee,left:me}=y.getBoundingClientRect(),fe=h.type.indexOf("mouse")!==-1?h.clientX:h.touches[0].clientX;$=Math.min(Math.max(0,fe-me),ee)*100/ee}if((Fe||j)&&($=100-$),M=$a(h.target,$),M&&Yr(w,M),De&&w.length>1&&Me!==void 0){let ee=w[0],me=w[w.length-1],fe=ee.percent+Me<0,Xe=me.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=Fe||j,ee=$?!T:T,me=Zr();me!==-1&&(ee?$r(me,w[me].percent):xr(me,w[me].percent))},no=h=>{Ae||Je||(ce===Le?j?He(h,100):He(h,0):Fe?xr(h,w[h].percent):$r(h,w[h].percent))},io=h=>{Ae||Je||(ce===Le?j?He(h,0):He(h,100):Fe?$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):Fe?He(h,100):He(h,0))},so=h=>{Ae||Je||(ce===Le?j?$r(h,w[h].percent):xr(h,w[h].percent):Fe?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:Fn(),textMin:Qr(),textMax:It(),rightToLeft:mt(),bottomToTop:zn(),pointersOverlap:Er(),pointersMinDistance:tn(),pointersMaxDistance:Wn(),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 $=F*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 $=F*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,Fn=()=>ce,en=()=>rt,tn=()=>F,Wn=()=>$e,rn=h=>ro[h],mt=()=>Fe,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 me=ee.updatePosition($,Aa(h),_a(h),ce,Fe,j);H==null||H.updatePosition(ce,w.map(fe=>fe.percent),Fe,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(),me&&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},Vn=h=>{ne=h,ft()},Kn=h=>{(!Te(h)||h<0)&&(h=0),F=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 me of w)me.setAttr("aria-orientation",ee)},S=h=>{Fe=h,w.length>1&&eo(w,Fe,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(Ki),y.classList.remove(Et)):(Mt=h.toString(),y.style.setProperty(Ki,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(Kr);return}De=h,y.classList.toggle(Kr,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 me=Tn(u,ee,$);return me.setCallbacks(no,io,oo,so),w.push(me),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(V))),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])),Vn(Ee(u.getAttribute(s))),Kn(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:Vn,setPointersMinDistance:Kn,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:Fn,getRound:en,getTextMin:Qr,getTextMax:It,isRightToLeft:mt,isBottomToTop:zn,isDisabled:qn,isKeyboardDisabled:_r,isMousewheelDisabled:nn,isPointersOverlap:Er,isRangeDraggingEnabled:lt,getPointersMinDistance:tn,getPointersMaxDistance:Wn}),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){Vn(h)},get pointersMinDistance(){return tn()},set pointersMinDistance(h){Kn(h)},get pointersMaxDistance(){return Wn()},set pointersMaxDistance(h){er(h)},get disabled(){return qn()},set disabled(h){Yn(h)},get data(){return Un()},get type(){return Fn()},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=Vr.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 V:{u.rightToLeft=Ee(x);break}case J:{u.bottomToTop=Ee(x);break}case A:{u.round=oe(x,tt);break}case W:{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,()=>K`
|
|
679
|
+
${Se(this,gr,ka).call(this,"min","before")}
|
|
716
680
|
<tc-range-slider
|
|
717
681
|
min="${this.filterObject.min}"
|
|
718
682
|
max="${this.filterObject.max}"
|
|
@@ -721,243 +685,133 @@ eox-itemfilter-expandcontainer button.reset-icon:before {
|
|
|
721
685
|
step="1"
|
|
722
686
|
@change=${this.debouncedInputHandler}
|
|
723
687
|
></tc-range-slider>
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
${de(this.inline||Object.keys(this.filterObject.state).length>10,()=>U`
|
|
729
|
-
<eox-autocomplete
|
|
730
|
-
.items=${this._getItems()}
|
|
731
|
-
.selectedItems=${this._getSelectedItems()}
|
|
732
|
-
.unstyled=${this.unstyled}
|
|
733
|
-
@items-selected=${t=>this._handleSelected(t)}
|
|
734
|
-
>
|
|
735
|
-
</eox-autocomplete>
|
|
736
|
-
`,()=>U`
|
|
737
|
-
<eox-selectionlist
|
|
738
|
-
.noShadow=${!this.inline}
|
|
739
|
-
.items=${this._getItems()}
|
|
740
|
-
.selectedItems=${this._getSelectedItems()}
|
|
741
|
-
.unstyled=${this.unstyled}
|
|
742
|
-
@items-selected=${t=>this._handleSelected(t)}
|
|
743
|
-
></eox-selectionlist>
|
|
744
|
-
`)}
|
|
745
|
-
`)}};br([J()],nr.prototype,"filterObject",2),br([J({type:Boolean})],nr.prototype,"inline",2),br([J({type:Boolean})],nr.prototype,"unstyled",2),nr=br([ke("eox-itemfilter-select")],nr);var Se=63710088e-1,ci={centimeters:Se*100,centimetres:Se*100,degrees:Se/111325,feet:Se*3.28084,inches:Se*39.37,kilometers:Se/1e3,kilometres:Se/1e3,meters:Se,metres:Se,miles:Se/1609.344,millimeters:Se*1e3,millimetres:Se*1e3,nauticalmiles:Se/1852,radians:1,yards:Se*1.0936},Il={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:1/1e3,kilometres:1/1e3,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/Se,yards:1.0936133},ui={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,millimeters:1e6,millimetres:1e6,yards:1.195990046};function Ie(t,e,r){r===void 0&&(r={});var i={type:"Feature"};return(r.id===0||r.id)&&(i.id=r.id),r.bbox&&(i.bbox=r.bbox),i.properties=e||{},i.geometry=t,i}function Dl(t,e,r){switch(t){case"Point":return Ve(e).geometry;case"LineString":return He(e).geometry;case"Polygon":return hi(e).geometry;case"MultiPoint":return Jn(e).geometry;case"MultiLineString":return di(e).geometry;case"MultiPolygon":return Zn(e).geometry;default:throw new Error(t+" is invalid")}}function Ve(t,e,r){if(r===void 0&&(r={}),!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");var i={type:"Point",coordinates:t};return Ie(i,e,r)}function jl(t,e,r){return r===void 0&&(r={}),ut(t.map(function(i){return Ve(i,e)}),r)}function hi(t,e,r){r===void 0&&(r={});for(var i=0,n=t;i<n.length;i++){var s=n[i];if(s.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var o=0;o<s[s.length-1].length;o++)if(s[s.length-1][o]!==s[0][o])throw new Error("First and last Position are not equivalent.")}var l={type:"Polygon",coordinates:t};return Ie(l,e,r)}function Nl(t,e,r){return r===void 0&&(r={}),ut(t.map(function(i){return hi(i,e)}),r)}function He(t,e,r){if(r===void 0&&(r={}),t.length<2)throw new Error("coordinates must be an array of two or more positions");var i={type:"LineString",coordinates:t};return Ie(i,e,r)}function Bl(t,e,r){return r===void 0&&(r={}),ut(t.map(function(i){return He(i,e)}),r)}function ut(t,e){e===void 0&&(e={});var r={type:"FeatureCollection"};return e.id&&(r.id=e.id),e.bbox&&(r.bbox=e.bbox),r.features=t,r}function di(t,e,r){r===void 0&&(r={});var i={type:"MultiLineString",coordinates:t};return Ie(i,e,r)}function Jn(t,e,r){r===void 0&&(r={});var i={type:"MultiPoint",coordinates:t};return Ie(i,e,r)}function Zn(t,e,r){r===void 0&&(r={});var i={type:"MultiPolygon",coordinates:t};return Ie(i,e,r)}function Fl(t,e,r){r===void 0&&(r={});var i={type:"GeometryCollection",geometries:t};return Ie(i,e,r)}function Hl(t,e){if(e===void 0&&(e=0),e&&!(e>=0))throw new Error("precision must be a positive number");var r=Math.pow(10,e||0);return Math.round(t*r)/r}function Qn(t,e){e===void 0&&(e="kilometers");var r=ci[e];if(!r)throw new Error(e+" units is invalid");return t*r}function fi(t,e){e===void 0&&(e="kilometers");var r=ci[e];if(!r)throw new Error(e+" units is invalid");return t/r}function ql(t,e){return es(fi(t,e))}function Ul(t){var e=t%360;return e<0&&(e+=360),e}function es(t){var e=t%(2*Math.PI);return e*180/Math.PI}function zl(t){var e=t%360;return e*Math.PI/180}function Yl(t,e,r){if(e===void 0&&(e="kilometers"),r===void 0&&(r="kilometers"),!(t>=0))throw new Error("length must be a positive number");return Qn(fi(t,e),r)}function Wl(t,e,r){if(e===void 0&&(e="meters"),r===void 0&&(r="kilometers"),!(t>=0))throw new Error("area must be a positive number");var i=ui[e];if(!i)throw new Error("invalid original units");var n=ui[r];if(!n)throw new Error("invalid final units");return t/i*n}function xr(t){return!isNaN(t)&&t!==null&&!Array.isArray(t)}function pi(t){return!!t&&t.constructor===Object}function Xl(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(function(e){if(!xr(e))throw new Error("bbox must only contain numbers")})}function Vl(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")}const Kl=Object.freeze(Object.defineProperty({__proto__:null,areaFactors:ui,bearingToAzimuth:Ul,convertArea:Wl,convertLength:Yl,degreesToRadians:zl,earthRadius:Se,factors:ci,feature:Ie,featureCollection:ut,geometry:Dl,geometryCollection:Fl,isNumber:xr,isObject:pi,lengthToDegrees:ql,lengthToRadians:fi,lineString:He,lineStrings:Bl,multiLineString:di,multiPoint:Jn,multiPolygon:Zn,point:Ve,points:jl,polygon:hi,polygons:Nl,radiansToDegrees:es,radiansToLength:Qn,round:Hl,unitsFactors:Il,validateBBox:Xl,validateId:Vl},Symbol.toStringTag,{value:"Module"}));function ts(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")}function Dt(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")}function jt(t){return t.type==="Feature"?t.geometry:t}function De(t,e,r){if(r===void 0&&(r={}),!t)throw new Error("point is required");if(!e)throw new Error("polygon is required");var i=ts(t),n=jt(e),s=n.type,o=e.bbox,l=n.coordinates;if(o&&Gl(i,o)===!1)return!1;s==="Polygon"&&(l=[l]);for(var a=!1,c=0;c<l.length&&!a;c++)if(rs(i,l[c][0],r.ignoreBoundary)){for(var f=!1,p=1;p<l[c].length&&!f;)rs(i,l[c][p],!r.ignoreBoundary)&&(f=!0),p++;f||(a=!0)}return a}function rs(t,e,r){var i=!1;e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]&&(e=e.slice(0,e.length-1));for(var n=0,s=e.length-1;n<e.length;s=n++){var o=e[n][0],l=e[n][1],a=e[s][0],c=e[s][1],f=t[1]*(o-a)+l*(a-t[0])+c*(t[0]-o)===0&&(o-t[0])*(a-t[0])<=0&&(l-t[1])*(c-t[1])<=0;if(f)return!r;var p=l>t[1]!=c>t[1]&&t[0]<(a-o)*(t[1]-l)/(c-l)+o;p&&(i=!i)}return i}function Gl(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}function Nt(t,e,r){if(t!==null)for(var i,n,s,o,l,a,c,f=0,p=0,b,y=t.type,E=y==="FeatureCollection",O=y==="Feature",z=E?t.features.length:1,B=0;B<z;B++){c=E?t.features[B].geometry:O?t.geometry:t,b=c?c.type==="GeometryCollection":!1,l=b?c.geometries.length:1;for(var g=0;g<l;g++){var m=0,w=0;if(o=b?c.geometries[g]:c,o!==null){a=o.coordinates;var S=o.type;switch(f=r&&(S==="Polygon"||S==="MultiPolygon")?1:0,S){case null:break;case"Point":if(e(a,p,B,m,w)===!1)return!1;p++,m++;break;case"LineString":case"MultiPoint":for(i=0;i<a.length;i++){if(e(a[i],p,B,m,w)===!1)return!1;p++,S==="MultiPoint"&&m++}S==="LineString"&&m++;break;case"Polygon":case"MultiLineString":for(i=0;i<a.length;i++){for(n=0;n<a[i].length-f;n++){if(e(a[i][n],p,B,m,w)===!1)return!1;p++}S==="MultiLineString"&&m++,S==="Polygon"&&w++}S==="Polygon"&&m++;break;case"MultiPolygon":for(i=0;i<a.length;i++){for(w=0,n=0;n<a[i].length;n++){for(s=0;s<a[i][n].length-f;s++){if(e(a[i][n][s],p,B,m,w)===!1)return!1;p++}w++}m++}break;case"GeometryCollection":for(i=0;i<o.geometries.length;i++)if(Nt(o.geometries[i],e,r)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function Jl(t,e,r,i){var n=r;return Nt(t,function(s,o,l,a,c){o===0&&r===void 0?n=s:n=e(n,s,o,l,a,c)},i),n}function is(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}}function Zl(t,e,r){var i=r;return is(t,function(n,s){s===0&&r===void 0?i=n:i=e(i,n,s)}),i}function wr(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++);}function Ql(t,e,r){var i=r;return wr(t,function(n,s){s===0&&r===void 0?i=n:i=e(i,n,s)}),i}function ea(t){var e=[];return Nt(t,function(r){e.push(r)}),e}function gi(t,e){var r,i,n,s,o,l,a,c,f,p,b=0,y=t.type==="FeatureCollection",E=t.type==="Feature",O=y?t.features.length:1;for(r=0;r<O;r++){for(l=y?t.features[r].geometry:E?t.geometry:t,c=y?t.features[r].properties:E?t.properties:{},f=y?t.features[r].bbox:E?t.bbox:void 0,p=y?t.features[r].id:E?t.id:void 0,a=l?l.type==="GeometryCollection":!1,o=a?l.geometries.length:1,n=0;n<o;n++){if(s=a?l.geometries[n]:l,s===null){if(e(null,b,c,f,p)===!1)return!1;continue}switch(s.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(e(s,b,c,f,p)===!1)return!1;break}case"GeometryCollection":{for(i=0;i<s.geometries.length;i++)if(e(s.geometries[i],b,c,f,p)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}b++}}function ta(t,e,r){var i=r;return gi(t,function(n,s,o,l,a){s===0&&r===void 0?i=n:i=e(i,n,s,o,l,a)}),i}function tt(t,e){gi(t,function(r,i,n,s,o){var l=r===null?null:r.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return e(Ie(r,n,{bbox:s,id:o}),i,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 c=0;c<r.coordinates.length;c++){var f=r.coordinates[c],p={type:a,coordinates:f};if(e(Ie(p,n),i,c)===!1)return!1}})}function ra(t,e,r){var i=r;return tt(t,function(n,s,o){s===0&&o===0&&r===void 0?i=n:i=e(i,n,s,o)}),i}function ns(t,e){tt(t,function(r,i,n){var s=0;if(r.geometry){var o=r.geometry.type;if(!(o==="Point"||o==="MultiPoint")){var l,a=0,c=0,f=0;if(Nt(r,function(p,b,y,E,O){if(l===void 0||i>a||E>c||O>f){l=p,a=i,c=E,f=O,s=0;return}var z=He([l,p],r.properties);if(e(z,i,n,O,s)===!1)return!1;s++,l=p})===!1)return!1}}})}function ia(t,e,r){var i=r,n=!1;return ns(t,function(s,o,l,a,c){n===!1&&r===void 0?i=s:i=e(i,s,o,l,a,c),n=!0}),i}function ss(t,e){if(!t)throw new Error("geojson is required");tt(t,function(r,i,n){if(r.geometry!==null){var s=r.geometry.type,o=r.geometry.coordinates;switch(s){case"LineString":if(e(r,i,n,0,0)===!1)return!1;break;case"Polygon":for(var l=0;l<o.length;l++)if(e(He(o[l],r.properties),i,n,l)===!1)return!1;break}}})}function na(t,e,r){var i=r;return ss(t,function(n,s,o,l){s===0&&r===void 0?i=n:i=e(i,n,s,o,l)}),i}function sa(t,e){if(e=e||{},!pi(e))throw new Error("options is invalid");var r=e.featureIndex||0,i=e.multiFeatureIndex||0,n=e.geometryIndex||0,s=e.segmentIndex||0,o=e.properties,l;switch(t.type){case"FeatureCollection":r<0&&(r=t.features.length+r),o=o||t.features[r].properties,l=t.features[r].geometry;break;case"Feature":o=o||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 s<0&&(s=a.length+s-1),He([a[s],a[s+1]],o,e);case"Polygon":return n<0&&(n=a.length+n),s<0&&(s=a[n].length+s-1),He([a[n][s],a[n][s+1]],o,e);case"MultiLineString":return i<0&&(i=a.length+i),s<0&&(s=a[i].length+s-1),He([a[i][s],a[i][s+1]],o,e);case"MultiPolygon":return i<0&&(i=a.length+i),n<0&&(n=a[i].length+n),s<0&&(s=a[i][n].length-s-1),He([a[i][n][s],a[i][n][s+1]],o,e)}throw new Error("geojson is invalid")}function oa(t,e){if(e=e||{},!pi(e))throw new Error("options is invalid");var r=e.featureIndex||0,i=e.multiFeatureIndex||0,n=e.geometryIndex||0,s=e.coordIndex||0,o=e.properties,l;switch(t.type){case"FeatureCollection":r<0&&(r=t.features.length+r),o=o||t.features[r].properties,l=t.features[r].geometry;break;case"Feature":o=o||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 Ve(a,o,e);case"MultiPoint":return i<0&&(i=a.length+i),Ve(a[i],o,e);case"LineString":return s<0&&(s=a.length+s),Ve(a[s],o,e);case"Polygon":return n<0&&(n=a.length+n),s<0&&(s=a[n].length+s),Ve(a[n][s],o,e);case"MultiLineString":return i<0&&(i=a.length+i),s<0&&(s=a[i].length+s),Ve(a[i][s],o,e);case"MultiPolygon":return i<0&&(i=a.length+i),n<0&&(n=a[i].length+n),s<0&&(s=a[i][n].length-s),Ve(a[i][n][s],o,e)}throw new Error("geojson is invalid")}const la=Object.freeze(Object.defineProperty({__proto__:null,coordAll:ea,coordEach:Nt,coordReduce:Jl,featureEach:wr,featureReduce:Ql,findPoint:oa,findSegment:sa,flattenEach:tt,flattenReduce:ra,geomEach:gi,geomReduce:ta,lineEach:ss,lineReduce:na,propEach:is,propReduce:Zl,segmentEach:ns,segmentReduce:ia},Symbol.toStringTag,{value:"Module"}));function os(t){if(!t)throw new Error("geojson is required");var e=[];return tt(t,function(r){aa(r,e)}),ut(e)}function aa(t,e){var r=[],i=t.geometry;if(i!==null){switch(i.type){case"Polygon":r=Dt(i);break;case"LineString":r=[Dt(i)]}r.forEach(function(n){var s=ca(n,t.properties);s.forEach(function(o){o.id=e.length,e.push(o)})})}}function ca(t,e){var r=[];return t.reduce(function(i,n){var s=He([i,n],e);return s.bbox=ua(i,n),r.push(s),n}),r}function ua(t,e){var r=t[0],i=t[1],n=e[0],s=e[1],o=r<n?r:n,l=i<s?i:s,a=r>n?r:n,c=i>s?i:s;return[o,l,a,c]}var mi={exports:{}},ls={exports:{}};(function(t,e){(function(r,i){t.exports=i()})(Pt,function(){function r(g,m,w,S,_){(function A(k,F,H,I,te){for(;I>H;){if(I-H>600){var le=I-H+1,P=F-H+1,L=Math.log(le),M=.5*Math.exp(2*L/3),j=.5*Math.sqrt(L*M*(le-M)/le)*(P-le/2<0?-1:1),C=Math.max(H,Math.floor(F-P*M/le+j)),G=Math.min(I,Math.floor(F+(le-P)*M/le+j));A(k,F,C,G,te)}var Y=k[F],oe=H,re=I;for(i(k,H,F),te(k[I],Y)>0&&i(k,H,I);oe<re;){for(i(k,oe,re),oe++,re--;te(k[oe],Y)<0;)oe++;for(;te(k[re],Y)>0;)re--}te(k[H],Y)===0?i(k,H,re):i(k,++re,I),re<=F&&(H=re+1),F<=re&&(I=re-1)}})(g,m,w||0,S||g.length-1,_||n)}function i(g,m,w){var S=g[m];g[m]=g[w],g[w]=S}function n(g,m){return g<m?-1:g>m?1:0}var s=function(g){g===void 0&&(g=9),this._maxEntries=Math.max(4,g),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function o(g,m,w){if(!w)return m.indexOf(g);for(var S=0;S<m.length;S++)if(w(g,m[S]))return S;return-1}function l(g,m){a(g,0,g.children.length,m,g)}function a(g,m,w,S,_){_||(_=z(null)),_.minX=1/0,_.minY=1/0,_.maxX=-1/0,_.maxY=-1/0;for(var A=m;A<w;A++){var k=g.children[A];c(_,g.leaf?S(k):k)}return _}function c(g,m){return g.minX=Math.min(g.minX,m.minX),g.minY=Math.min(g.minY,m.minY),g.maxX=Math.max(g.maxX,m.maxX),g.maxY=Math.max(g.maxY,m.maxY),g}function f(g,m){return g.minX-m.minX}function p(g,m){return g.minY-m.minY}function b(g){return(g.maxX-g.minX)*(g.maxY-g.minY)}function y(g){return g.maxX-g.minX+(g.maxY-g.minY)}function E(g,m){return g.minX<=m.minX&&g.minY<=m.minY&&m.maxX<=g.maxX&&m.maxY<=g.maxY}function O(g,m){return m.minX<=g.maxX&&m.minY<=g.maxY&&m.maxX>=g.minX&&m.maxY>=g.minY}function z(g){return{children:g,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function B(g,m,w,S,_){for(var A=[m,w];A.length;)if(!((w=A.pop())-(m=A.pop())<=S)){var k=m+Math.ceil((w-m)/S/2)*S;r(g,k,m,w,_),A.push(m,k,k,w)}}return s.prototype.all=function(){return this._all(this.data,[])},s.prototype.search=function(g){var m=this.data,w=[];if(!O(g,m))return w;for(var S=this.toBBox,_=[];m;){for(var A=0;A<m.children.length;A++){var k=m.children[A],F=m.leaf?S(k):k;O(g,F)&&(m.leaf?w.push(k):E(g,F)?this._all(k,w):_.push(k))}m=_.pop()}return w},s.prototype.collides=function(g){var m=this.data;if(!O(g,m))return!1;for(var w=[];m;){for(var S=0;S<m.children.length;S++){var _=m.children[S],A=m.leaf?this.toBBox(_):_;if(O(g,A)){if(m.leaf||E(g,A))return!0;w.push(_)}}m=w.pop()}return!1},s.prototype.load=function(g){if(!g||!g.length)return this;if(g.length<this._minEntries){for(var m=0;m<g.length;m++)this.insert(g[m]);return this}var w=this._build(g.slice(),0,g.length-1,0);if(this.data.children.length)if(this.data.height===w.height)this._splitRoot(this.data,w);else{if(this.data.height<w.height){var S=this.data;this.data=w,w=S}this._insert(w,this.data.height-w.height-1,!0)}else this.data=w;return this},s.prototype.insert=function(g){return g&&this._insert(g,this.data.height-1),this},s.prototype.clear=function(){return this.data=z([]),this},s.prototype.remove=function(g,m){if(!g)return this;for(var w,S,_,A=this.data,k=this.toBBox(g),F=[],H=[];A||F.length;){if(A||(A=F.pop(),S=F[F.length-1],w=H.pop(),_=!0),A.leaf){var I=o(g,A.children,m);if(I!==-1)return A.children.splice(I,1),F.push(A),this._condense(F),this}_||A.leaf||!E(A,k)?S?(w++,A=S.children[w],_=!1):A=null:(F.push(A),H.push(w),w=0,S=A,A=A.children[0])}return this},s.prototype.toBBox=function(g){return g},s.prototype.compareMinX=function(g,m){return g.minX-m.minX},s.prototype.compareMinY=function(g,m){return g.minY-m.minY},s.prototype.toJSON=function(){return this.data},s.prototype.fromJSON=function(g){return this.data=g,this},s.prototype._all=function(g,m){for(var w=[];g;)g.leaf?m.push.apply(m,g.children):w.push.apply(w,g.children),g=w.pop();return m},s.prototype._build=function(g,m,w,S){var _,A=w-m+1,k=this._maxEntries;if(A<=k)return l(_=z(g.slice(m,w+1)),this.toBBox),_;S||(S=Math.ceil(Math.log(A)/Math.log(k)),k=Math.ceil(A/Math.pow(k,S-1))),(_=z([])).leaf=!1,_.height=S;var F=Math.ceil(A/k),H=F*Math.ceil(Math.sqrt(k));B(g,m,w,H,this.compareMinX);for(var I=m;I<=w;I+=H){var te=Math.min(I+H-1,w);B(g,I,te,F,this.compareMinY);for(var le=I;le<=te;le+=F){var P=Math.min(le+F-1,te);_.children.push(this._build(g,le,P,S-1))}}return l(_,this.toBBox),_},s.prototype._chooseSubtree=function(g,m,w,S){for(;S.push(m),!m.leaf&&S.length-1!==w;){for(var _=1/0,A=1/0,k=void 0,F=0;F<m.children.length;F++){var H=m.children[F],I=b(H),te=(le=g,P=H,(Math.max(P.maxX,le.maxX)-Math.min(P.minX,le.minX))*(Math.max(P.maxY,le.maxY)-Math.min(P.minY,le.minY))-I);te<A?(A=te,_=I<_?I:_,k=H):te===A&&I<_&&(_=I,k=H)}m=k||m.children[0]}var le,P;return m},s.prototype._insert=function(g,m,w){var S=w?g:this.toBBox(g),_=[],A=this._chooseSubtree(S,this.data,m,_);for(A.children.push(g),c(A,S);m>=0&&_[m].children.length>this._maxEntries;)this._split(_,m),m--;this._adjustParentBBoxes(S,_,m)},s.prototype._split=function(g,m){var w=g[m],S=w.children.length,_=this._minEntries;this._chooseSplitAxis(w,_,S);var A=this._chooseSplitIndex(w,_,S),k=z(w.children.splice(A,w.children.length-A));k.height=w.height,k.leaf=w.leaf,l(w,this.toBBox),l(k,this.toBBox),m?g[m-1].children.push(k):this._splitRoot(w,k)},s.prototype._splitRoot=function(g,m){this.data=z([g,m]),this.data.height=g.height+1,this.data.leaf=!1,l(this.data,this.toBBox)},s.prototype._chooseSplitIndex=function(g,m,w){for(var S,_,A,k,F,H,I,te=1/0,le=1/0,P=m;P<=w-m;P++){var L=a(g,0,P,this.toBBox),M=a(g,P,w,this.toBBox),j=(_=L,A=M,k=void 0,F=void 0,H=void 0,I=void 0,k=Math.max(_.minX,A.minX),F=Math.max(_.minY,A.minY),H=Math.min(_.maxX,A.maxX),I=Math.min(_.maxY,A.maxY),Math.max(0,H-k)*Math.max(0,I-F)),C=b(L)+b(M);j<te?(te=j,S=P,le=C<le?C:le):j===te&&C<le&&(le=C,S=P)}return S||w-m},s.prototype._chooseSplitAxis=function(g,m,w){var S=g.leaf?this.compareMinX:f,_=g.leaf?this.compareMinY:p;this._allDistMargin(g,m,w,S)<this._allDistMargin(g,m,w,_)&&g.children.sort(S)},s.prototype._allDistMargin=function(g,m,w,S){g.children.sort(S);for(var _=this.toBBox,A=a(g,0,m,_),k=a(g,w-m,w,_),F=y(A)+y(k),H=m;H<w-m;H++){var I=g.children[H];c(A,g.leaf?_(I):I),F+=y(A)}for(var te=w-m-1;te>=m;te--){var le=g.children[te];c(k,g.leaf?_(le):le),F+=y(k)}return F},s.prototype._adjustParentBBoxes=function(g,m,w){for(var S=w;S>=0;S--)c(m[S],g)},s.prototype._condense=function(g){for(var m=g.length-1,w=void 0;m>=0;m--)g[m].children.length===0?m>0?(w=g[m-1].children).splice(w.indexOf(g[m]),1):this.clear():l(g[m],this.toBBox)},s})})(ls);var ha=ls.exports;const da=Kr(Kl),fa=Kr(la);function xt(t){var e=[1/0,1/0,-1/0,-1/0];return Nt(t,function(r){e[0]>r[0]&&(e[0]=r[0]),e[1]>r[1]&&(e[1]=r[1]),e[2]<r[0]&&(e[2]=r[0]),e[3]<r[1]&&(e[3]=r[1])}),e}xt.default=xt;const pa=Kr(Object.freeze(Object.defineProperty({__proto__:null,default:xt},Symbol.toStringTag,{value:"Module"})));var Ke=ha,as=da,cs=fa,Bt=pa.default,ga=cs.featureEach;cs.coordEach,as.polygon;var us=as.featureCollection;function hs(t){var e=new Ke(t);return e.insert=function(r){if(r.type!=="Feature")throw new Error("invalid feature");return r.bbox=r.bbox?r.bbox:Bt(r),Ke.prototype.insert.call(this,r)},e.load=function(r){var i=[];return Array.isArray(r)?r.forEach(function(n){if(n.type!=="Feature")throw new Error("invalid features");n.bbox=n.bbox?n.bbox:Bt(n),i.push(n)}):ga(r,function(n){if(n.type!=="Feature")throw new Error("invalid features");n.bbox=n.bbox?n.bbox:Bt(n),i.push(n)}),Ke.prototype.load.call(this,i)},e.remove=function(r,i){if(r.type!=="Feature")throw new Error("invalid feature");return r.bbox=r.bbox?r.bbox:Bt(r),Ke.prototype.remove.call(this,r,i)},e.clear=function(){return Ke.prototype.clear.call(this)},e.search=function(r){var i=Ke.prototype.search.call(this,this.toBBox(r));return us(i)},e.collides=function(r){return Ke.prototype.collides.call(this,this.toBBox(r))},e.all=function(){var r=Ke.prototype.all.call(this);return us(r)},e.toJSON=function(){return Ke.prototype.toJSON.call(this)},e.fromJSON=function(r){return Ke.prototype.fromJSON.call(this,r)},e.toBBox=function(r){var i;if(r.bbox)i=r.bbox;else if(Array.isArray(r)&&r.length===4)i=r;else if(Array.isArray(r)&&r.length===6)i=[r[0],r[1],r[3],r[4]];else if(r.type==="Feature")i=Bt(r);else if(r.type==="FeatureCollection")i=Bt(r);else throw new Error("invalid geojson");return{minX:i[0],minY:i[1],maxX:i[2],maxY:i[3]}},e}mi.exports=hs,mi.exports.default=hs;var ma=mi.exports;const ya=Vr(ma);function yi(t,e){var r={},i=[];if(t.type==="LineString"&&(t=Ie(t)),e.type==="LineString"&&(e=Ie(e)),t.type==="Feature"&&e.type==="Feature"&&t.geometry!==null&&e.geometry!==null&&t.geometry.type==="LineString"&&e.geometry.type==="LineString"&&t.geometry.coordinates.length===2&&e.geometry.coordinates.length===2){var n=ds(t,e);return n&&i.push(n),ut(i)}var s=ya();return s.load(os(e)),wr(os(t),function(o){wr(s.search(o),function(l){var a=ds(o,l);if(a){var c=Dt(a).join(",");r[c]||(r[c]=!0,i.push(a))}})}),ut(i)}function ds(t,e){var r=Dt(t),i=Dt(e);if(r.length!==2)throw new Error("<intersects> line1 must only contain 2 coordinates");if(i.length!==2)throw new Error("<intersects> line2 must only contain 2 coordinates");var n=r[0][0],s=r[0][1],o=r[1][0],l=r[1][1],a=i[0][0],c=i[0][1],f=i[1][0],p=i[1][1],b=(p-c)*(o-n)-(f-a)*(l-s),y=(f-a)*(s-c)-(p-c)*(n-a),E=(o-n)*(s-c)-(l-s)*(n-a);if(b===0)return null;var O=y/b,z=E/b;if(O>=0&&O<=1&&z>=0&&z<=1){var B=n+O*(o-n),g=s+O*(l-s);return Ve([B,g])}return null}function vi(t,e){e===void 0&&(e={});var r=jt(t);switch(!e.properties&&t.type==="Feature"&&(e.properties=t.properties),r.type){case"Polygon":return va(r,e);case"MultiPolygon":return ba(r,e);default:throw new Error("invalid poly")}}function va(t,e){e===void 0&&(e={});var r=jt(t),i=r.coordinates,n=e.properties?e.properties:t.type==="Feature"?t.properties:{};return fs(i,n)}function ba(t,e){e===void 0&&(e={});var r=jt(t),i=r.coordinates,n=e.properties?e.properties:t.type==="Feature"?t.properties:{},s=[];return i.forEach(function(o){s.push(fs(o,n))}),ut(s)}function fs(t,e){return t.length>1?di(t,e):He(t[0],e)}function xa(t,e){var r=!0;return tt(t,function(i){tt(e,function(n){if(r===!1)return!1;r=wa(i.geometry,n.geometry)})}),r}function wa(t,e){switch(t.type){case"Point":switch(e.type){case"Point":return!Sa(t.coordinates,e.coordinates);case"LineString":return!ps(e,t);case"Polygon":return!De(t,e)}break;case"LineString":switch(e.type){case"Point":return!ps(t,e);case"LineString":return!$a(t,e);case"Polygon":return!gs(e,t)}break;case"Polygon":switch(e.type){case"Point":return!De(e,t);case"LineString":return!gs(t,e);case"Polygon":return!_a(e,t)}}return!1}function ps(t,e){for(var r=0;r<t.coordinates.length-1;r++)if(Ea(t.coordinates[r],t.coordinates[r+1],e.coordinates))return!0;return!1}function $a(t,e){var r=yi(t,e);return r.features.length>0}function gs(t,e){for(var r=0,i=e.coordinates;r<i.length;r++){var n=i[r];if(De(n,t))return!0}var s=yi(e,vi(t));return s.features.length>0}function _a(t,e){for(var r=0,i=t.coordinates[0];r<i.length;r++){var n=i[r];if(De(n,e))return!0}for(var s=0,o=e.coordinates[0];s<o.length;s++){var l=o[s];if(De(l,t))return!0}var a=yi(vi(t),vi(e));return a.features.length>0}function Ea(t,e,r){var i=r[0]-t[0],n=r[1]-t[1],s=e[0]-t[0],o=e[1]-t[1],l=i*o-n*s;return l!==0?!1:Math.abs(s)>=Math.abs(o)?s>0?t[0]<=r[0]&&r[0]<=e[0]:e[0]<=r[0]&&r[0]<=t[0]:o>0?t[1]<=r[1]&&r[1]<=e[1]:e[1]<=r[1]&&r[1]<=t[1]}function Sa(t,e){return t[0]===e[0]&&t[1]===e[1]}function Aa(t,e){var r=!1;return tt(t,function(i){tt(e,function(n){if(r===!0)return!0;r=!xa(i.geometry,n.geometry)})}),r}function $r(t,e,r){r===void 0&&(r={});for(var i=ts(t),n=Dt(e),s=0;s<n.length-1;s++){var o=!1;if(r.ignoreEndVertices&&(s===0&&(o="start"),s===n.length-2&&(o="end"),s===0&&s+1===n.length-1&&(o="both")),Ma(n[s],n[s+1],i,o,typeof r.epsilon>"u"?null:r.epsilon))return!0}return!1}function Ma(t,e,r,i,n){var s=r[0],o=r[1],l=t[0],a=t[1],c=e[0],f=e[1],p=r[0]-l,b=r[1]-a,y=c-l,E=f-a,O=p*E-b*y;if(n!==null){if(Math.abs(O)>n)return!1}else if(O!==0)return!1;if(i){if(i==="start")return Math.abs(y)>=Math.abs(E)?y>0?l<s&&s<=c:c<=s&&s<l:E>0?a<o&&o<=f:f<=o&&o<a;if(i==="end")return Math.abs(y)>=Math.abs(E)?y>0?l<=s&&s<c:c<s&&s<=l:E>0?a<=o&&o<f:f<o&&o<=a;if(i==="both")return Math.abs(y)>=Math.abs(E)?y>0?l<s&&s<c:c<s&&s<l:E>0?a<o&&o<f:f<o&&o<a}else return Math.abs(y)>=Math.abs(E)?y>0?l<=s&&s<=c:c<=s&&s<=l:E>0?a<=o&&o<=f:f<=o&&o<=a;return!1}function Oa(t,e){var r=jt(t),i=jt(e),n=r.type,s=i.type;switch(n){case"Point":switch(s){case"MultiPoint":return Pa(r,i);case"LineString":return $r(r,i,{ignoreEndVertices:!0});case"Polygon":case"MultiPolygon":return De(r,i,{ignoreBoundary:!0});default:throw new Error("feature2 "+s+" geometry not supported")}case"MultiPoint":switch(s){case"MultiPoint":return La(r,i);case"LineString":return Ca(r,i);case"Polygon":case"MultiPolygon":return ka(r,i);default:throw new Error("feature2 "+s+" geometry not supported")}case"LineString":switch(s){case"LineString":return Ra(r,i);case"Polygon":case"MultiPolygon":return Ta(r,i);default:throw new Error("feature2 "+s+" geometry not supported")}case"Polygon":switch(s){case"Polygon":case"MultiPolygon":return Ia(r,i);default:throw new Error("feature2 "+s+" geometry not supported")}default:throw new Error("feature1 "+n+" geometry not supported")}}function Pa(t,e){var r,i=!1;for(r=0;r<e.coordinates.length;r++)if(ys(e.coordinates[r],t.coordinates)){i=!0;break}return i}function La(t,e){for(var r=0;r<t.coordinates.length;r++){for(var i=!1,n=0;n<e.coordinates.length;n++)ys(t.coordinates[r],e.coordinates[n])&&(i=!0);if(!i)return!1}return!0}function Ca(t,e){for(var r=!1,i=0;i<t.coordinates.length;i++){if(!$r(t.coordinates[i],e))return!1;r||(r=$r(t.coordinates[i],e,{ignoreEndVertices:!0}))}return r}function ka(t,e){for(var r=!0,i=!1,n=0;n<t.coordinates.length;n++){if(i=De(t.coordinates[1],e),!i){r=!1;break}i=De(t.coordinates[1],e,{ignoreBoundary:!0})}return r&&i}function Ra(t,e){for(var r=0;r<t.coordinates.length;r++)if(!$r(t.coordinates[r],e))return!1;return!0}function Ta(t,e){var r=xt(e),i=xt(t);if(!ms(r,i))return!1;for(var n=!1,s=0;s<t.coordinates.length-1;s++){if(!De(t.coordinates[s],e))return!1;if(n||(n=De(t.coordinates[s],e,{ignoreBoundary:!0})),!n){var o=Da(t.coordinates[s],t.coordinates[s+1]);n=De(o,e,{ignoreBoundary:!0})}}return n}function Ia(t,e){var r=xt(t),i=xt(e);if(!ms(i,r))return!1;for(var n=0;n<t.coordinates[0].length;n++)if(!De(t.coordinates[0][n],e))return!1;return!0}function ms(t,e){return!(t[0]>e[0]||t[2]<e[2]||t[1]>e[1]||t[3]<e[3])}function ys(t,e){return t[0]===e[0]&&t[1]===e[1]}function Da(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2]}var ja=Object.defineProperty,Na=Object.getOwnPropertyDescriptor,sr=(t,e,r,i)=>{for(var n=i>1?void 0:i?Na(e,r):e,s=t.length-1,o;s>=0;s--)(o=t[s])&&(n=(i?o(e,r,n):o(n))||n);return i&&n&&ja(e,r,n),n};const Ba=(t,e)=>e?Aa(t,e):!0,Fa=(t,e)=>e?Oa(t,e):!0;let bi=class extends _e{reset(){Ct(this.filterObject),this.renderRoot.querySelector("eox-itemfilter-spatial-filter").reset(),this.requestUpdate()}createRenderRoot(){return this}render(){return de(this.filterObject,()=>{var t;return U`
|
|
746
|
-
<form style="display: inline">
|
|
747
|
-
${Jt(["intersects","within"],e=>U`
|
|
748
|
-
<label>
|
|
749
|
-
<input
|
|
750
|
-
type="radio"
|
|
751
|
-
name="mode"
|
|
752
|
-
.checked="${this.filterObject.state.mode===e||se}
|
|
753
|
-
"
|
|
754
|
-
value="${e}"
|
|
755
|
-
@click="${()=>{this.filterObject.state.mode=e;const r=new CustomEvent("filter",{detail:{[this.filterObject.key]:{}}});this.dispatchEvent(r)}}"
|
|
756
|
-
/>
|
|
757
|
-
<small>${e} filter geometry</small>
|
|
758
|
-
</label>
|
|
759
|
-
`)}
|
|
760
|
-
</form>
|
|
761
|
-
<eox-itemfilter-spatial-filter
|
|
762
|
-
exportparts="map: spatial-filter-map"
|
|
763
|
-
.geometry=${(t=this.filterObject.state)==null?void 0:t.geometry}
|
|
764
|
-
@filter="${e=>{this.filterObject.state.geometry=e.detail.geometry,this.filterObject.dirty=!0,this.filterObject.stringifiedState="Polygon",this.dispatchEvent(new CustomEvent("filter"))}}"
|
|
765
|
-
></eox-itemfilter-spatial>
|
|
766
|
-
`})}};sr([J()],bi.prototype,"filterObject",2),bi=sr([ke("eox-itemfilter-spatial")],bi);let _r=class extends _e{render(){return U`<eox-map part="map" style="height: 400px"></eox-map>`}firstUpdated(){this.setup()}setup(){const t=[{type:"Vector",properties:{id:"draw"},source:{type:"Vector",...this.geometry&&{format:"GeoJSON"},...this.geometry&&{url:this.createFeatureUrl(this.geometry)}},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 © OpenStreetMap contributors and others, Rendering © EOX }"}}];this.eoxMap=this.renderRoot.querySelector("eox-map"),setTimeout(()=>{this.eoxMap.layers=t;const e=r=>{const i=new CustomEvent("filter",{detail:{geometry:{type:"Polygon",coordinates:r.getGeometry().clone().transform("EPSG:3857","EPSG:4326").getCoordinates()}}});this.dispatchEvent(i)};this.eoxMap.interactions.drawInteraction.on("drawend",r=>{e(r.feature),this.eoxMap.removeInteraction("drawInteraction")}),this.eoxMap.interactions.drawInteraction_modify.on("modifyend",r=>{e(r.features.getArray()[0])})},1e3)}createFeatureUrl(t){return`data:text/json,${encodeURIComponent(JSON.stringify({type:"FeatureCollection",features:[{type:"Feature",properties:null,geometry:t}]}))}`}reset(){var e;const t=this.eoxMap.getLayerById("draw").getSource();((e=t.getFeatures())==null?void 0:e.length)>0&&(t.clear(),this.eoxMap.removeInteraction("drawInteraction_modify"),this.setup())}};sr([J()],_r.prototype,"geometry",2),sr([Qe()],_r.prototype,"eoxMap",2),_r=sr([ke("eox-itemfilter-spatial-filter")],_r);var Ha=Object.defineProperty,qa=Object.getOwnPropertyDescriptor,vs=(t,e,r,i)=>{for(var n=i>1?void 0:i?qa(e,r):e,s=t.length-1,o;s>=0;s--)(o=t[s])&&(n=(i?o(e,r,n):o(n))||n);return i&&n&&Ha(e,r,n),n};let xi=class extends _e{constructor(){super(...arguments),this.inputHandler=()=>{const t=this.renderRoot.querySelector("input[type='text']");this.filterObject.keys.forEach(e=>{this.filterObject.state[e]=t.value}),this.filterObject.dirty=!0,this.filterObject.stringifiedState=t.value,this.dispatchEvent(new CustomEvent("filter"))},this.debouncedInputHandler=Kn(this.inputHandler,500,{leading:!0})}reset(){const t=this.renderRoot.querySelector("input[type='text']");t.value="",Ct(this.filterObject),this.filterObject.dirty=!1,this.requestUpdate()}createRenderRoot(){return this}render(){return de(this.filterObject,()=>U`
|
|
767
|
-
<style>
|
|
768
|
-
input {
|
|
769
|
-
max-height: 100%;
|
|
770
|
-
}
|
|
771
|
-
</style>
|
|
772
|
-
<input
|
|
773
|
-
type="text"
|
|
774
|
-
placeholder="Type something..."
|
|
775
|
-
data-cy="search"
|
|
776
|
-
part="input-search"
|
|
777
|
-
value="${Object.values(this.filterObject.state)[0]}"
|
|
778
|
-
@input="${this.debouncedInputHandler}"
|
|
779
|
-
@click=${t=>{t.stopPropagation()}}
|
|
780
|
-
/>
|
|
781
|
-
`)}};vs([J()],xi.prototype,"filterObject",2),xi=vs([ke("eox-itemfilter-text")],xi);var Ua=Object.defineProperty,za=Object.getOwnPropertyDescriptor,wt=(t,e,r,i)=>{for(var n=i>1?void 0:i?za(e,r):e,s=t.length-1,o;s>=0;s--)(o=t[s])&&(n=(i?o(e,r,n):o(n))||n);return i&&n&&Ua(e,r,n),n};let ht=class extends _e{constructor(){super(...arguments),this.idProperty="id",this.items=[],this.titleProperty="title",this.unstyled=!1,this.inputText="",this.replaceInput=null,this._clickOutsideListener=()=>{this.items.forEach(t=>{delete t._inProgress}),this.requestUpdate()},this._keyboardEventListener=t=>{["Enter","Escape","Space"].includes(t.code)&&this._handleKeyboard(t.code)}}_handleKeyboard(t){var s,o,l,a,c,f;if(this.clientHeight===0)return;const e=this.items.find(p=>p._inProgress),r=(e==null?void 0:e.type)==="text"&&(e==null?void 0:e.dirty),i=this.renderRoot.querySelector("#inline-input"),n=(f=(c=(a=(l=(o=(s=this.renderRoot)==null?void 0:s.querySelector("[data-filter]"))==null?void 0:o.querySelector("eox-autocomplete"))==null?void 0:l.renderRoot)==null?void 0:a.querySelector("eox-selectionlist"))==null?void 0:c.renderRoot)==null?void 0:f.querySelector("li.highlighted");if(t=="Enter"&&n&&i.selectionStart&&(n.querySelector("input[type=checkbox]").dispatchEvent(new Event("change")),i.selectionStart=0,i.value="",i.focus()),["Escape","Space"].includes(t)||t=="Enter"&&r){e&&(delete e._inProgress,this.requestUpdate(),this.inputText="",this.renderRoot.querySelector("input").value="",this.renderRoot.querySelector("input").focus()),this.renderRoot.querySelector("[slot=content]").classList.remove("hidden");return}}_handleReset(t){t.forEach(e=>{Ct(e),delete e._inProgress,delete e.stringifiedState}),this.renderRoot.querySelector("[slot=content]").classList.remove("hidden"),this.requestUpdate(),this.dispatchEvent(new CustomEvent("filter"))}connectedCallback(){super.connectedCallback(),this.getRootNode().addEventListener("keydown",this._keyboardEventListener),window.addEventListener("click",this._clickOutsideListener)}disconnectedCallback(){super.disconnectedCallback(),this.getRootNode().removeEventListener("keydown",this._keyboardEventListener),window.removeEventListener("click",this._clickOutsideListener)}render(){return U`
|
|
782
|
-
<style>
|
|
783
|
-
:host,
|
|
784
|
-
.container {
|
|
785
|
-
display: flex;
|
|
786
|
-
}
|
|
787
|
-
${this.unstyled?se:U`
|
|
788
|
-
${Jr} :host { position: relative; } .container { width: 100%;
|
|
789
|
-
position: relative; border: 1px solid #00417066; border-radius:
|
|
790
|
-
4px; height: 24px; padding: 5px; flex: 1; justify-content:
|
|
791
|
-
space-between; cursor: text; transition: all 0.2s ease-in-out;
|
|
792
|
-
overflow-x: auto; } .container:hover { border: 1px solid #004170;
|
|
793
|
-
} .input-container { display: flex; flex: 1; align-items: center;
|
|
794
|
-
} input, input:focus { height: 100%; border: none; outline: none;
|
|
795
|
-
} .button-container { display: flex; align-items: center;
|
|
796
|
-
justify-content: center; position: absolute; right: 1px; top: 5px;
|
|
797
|
-
height: calc(100% - 10px); width: 34px; background: white; }
|
|
798
|
-
button.icon { color: #004170; height: 24px; font-size: large;
|
|
799
|
-
width: unset; } .container::-webkit-scrollbar { height: 2px; }
|
|
800
|
-
.container::-webkit-scrollbar-thumb { background: lightgrey;
|
|
801
|
-
border-radius: 2px; } .hidden {height: 0; padding: 0; border:
|
|
802
|
-
none;} .hidden:hover {border: none}
|
|
803
|
-
`}
|
|
804
|
-
</style>
|
|
805
|
-
<div
|
|
806
|
-
class="container"
|
|
807
|
-
part="container"
|
|
808
|
-
@click=${t=>{var e;t.stopPropagation(),(e=this.renderRoot.querySelector("input[type=text]"))==null||e.focus()}}
|
|
809
|
-
>
|
|
810
|
-
<eox-itemfilter-chips
|
|
811
|
-
.items=${this.items.filter(t=>t._inProgress||t.stringifiedState)}
|
|
812
|
-
.titleProperty=${this.titleProperty}
|
|
813
|
-
.unstyled=${this.unstyled}
|
|
814
|
-
@items-selected=${t=>{this.items.forEach(e=>{t.detail.find(r=>r.id===e.id)||this._handleReset([e])})}}
|
|
815
|
-
@click=${t=>{t.stopPropagation()}}
|
|
816
|
-
></eox-itemfilter-chips>
|
|
817
|
-
<div class="input-container">
|
|
818
|
-
<eox-dropdown .parent=${this} .unstyled=${this.unstyled}>
|
|
819
|
-
<input
|
|
820
|
-
id="inline-input"
|
|
821
|
-
slot="trigger"
|
|
822
|
-
type="text"
|
|
823
|
-
placeholder="Type something..."
|
|
824
|
-
@focus=${()=>{this.inputText="",this.requestUpdate()}}
|
|
825
|
-
@input=${t=>{if(this.inputText=t.target.value.toLowerCase(),this.replaceInput){const e=this.renderRoot.querySelector("[data-filter]").renderRoot.querySelector("input")||this.renderRoot.querySelector("[data-filter]").renderRoot.querySelector("eox-autocomplete").renderRoot.querySelector("input");e&&(e.value=this.inputText,e.dispatchEvent(new Event("input")))}}}
|
|
826
|
-
/>
|
|
827
|
-
<div slot="content">
|
|
828
|
-
${de(!this.items.find(t=>t._inProgress),()=>U`
|
|
829
|
-
<eox-selectionlist
|
|
830
|
-
.filter=${this.inputText}
|
|
831
|
-
.idProperty=${this.idProperty}
|
|
832
|
-
.titleProperty=${this.titleProperty}
|
|
833
|
-
.items=${this.items.filter(t=>!t.stringifiedState)}
|
|
834
|
-
.multiple=${!1}
|
|
835
|
-
.selectedItems=${this.items.filter(t=>t.stringifiedState)}
|
|
836
|
-
.unstyled=${this.unstyled}
|
|
837
|
-
@click=${t=>{t.stopPropagation()}}
|
|
838
|
-
@items-highlighted=${()=>{}}
|
|
839
|
-
@items-selected=${t=>{const e=t.detail;e.length>0&&(e[e.length-1]._inProgress=!0,this.renderRoot.querySelector("input[slot=trigger]").value="",this.inputText="",this.requestUpdate());const r=this.items.find(i=>i._inProgress);(r&&r.type==="text"||r.type==="multiselect"||r.type==="select")&&(this.replaceInput=!0),this.replaceInput&&(setTimeout(()=>{if(r.type==="text")this.renderRoot.querySelector("[slot=content]").classList.add("hidden");else if(r.type==="multiselect"||r.type==="select"){const i=this.renderRoot.querySelector("[data-filter]").renderRoot.querySelector("eox-autocomplete");i.renderRoot.querySelector("eox-dropdown").open=!0,i.renderRoot.querySelector(".container").classList.add("hidden")}}),this.renderRoot.querySelector("input").select(),this.renderRoot.querySelector("input").focus())}}
|
|
840
|
-
>
|
|
841
|
-
</eox-selectionlist>
|
|
842
|
-
`)}
|
|
843
|
-
${de(this.items.find(t=>t._inProgress),()=>hr`
|
|
844
|
-
<eox-itemfilter-${Ot(this.items.find(t=>t._inProgress).type)}
|
|
845
|
-
data-filter=${this.items.find(t=>t._inProgress).id}
|
|
846
|
-
slot="dropdown"
|
|
847
|
-
.filterObject=${this.items.find(t=>t._inProgress)}
|
|
848
|
-
.unstyled=${this.unstyled}
|
|
849
|
-
.inline=${!0}
|
|
850
|
-
@filter=${()=>{this.dispatchEvent(new CustomEvent("filter"))}}
|
|
851
|
-
@click=${t=>{t.stopPropagation()}}
|
|
852
|
-
></eox-itemfilter-${Ot(this.items.find(t=>t._inProgress).type)}>
|
|
853
|
-
`)}
|
|
854
|
-
</div>
|
|
855
|
-
</eox-dropdown>
|
|
856
|
-
</div>
|
|
857
|
-
</div>
|
|
858
|
-
${de(this.items.filter(t=>t.stringifiedState||t._inProgress).length>0,()=>U`
|
|
859
|
-
<div class="button-container">
|
|
860
|
-
<button
|
|
861
|
-
class="icon"
|
|
862
|
-
@click=${()=>{this._handleReset(this.items.filter(t=>t.stringifiedState||t._inProgress))}}
|
|
863
|
-
>
|
|
864
|
-
✕
|
|
865
|
-
</button>
|
|
866
|
-
</div>
|
|
867
|
-
`)}
|
|
868
|
-
`}};wt([J()],ht.prototype,"idProperty",2),wt([J()],ht.prototype,"items",2),wt([J()],ht.prototype,"titleProperty",2),wt([J()],ht.prototype,"unstyled",2),wt([Qe()],ht.prototype,"inputText",2),wt([Qe()],ht.prototype,"replaceInput",2),ht=wt([ke("eox-itemfilter-inline")],ht);function rt(t){return Array.isArray?Array.isArray(t):ws(t)==="[object Array]"}const Ya=1/0;function Wa(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-Ya?"-0":e}function Xa(t){return t==null?"":Wa(t)}function Ge(t){return typeof t=="string"}function bs(t){return typeof t=="number"}function Va(t){return t===!0||t===!1||Ka(t)&&ws(t)=="[object Boolean]"}function xs(t){return typeof t=="object"}function Ka(t){return xs(t)&&t!==null}function Te(t){return t!=null}function wi(t){return!t.trim().length}function ws(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Tu="Extended search is not available",Ga="Incorrect 'index' type",Ja=t=>`Invalid value for key ${t}`,Za=t=>`Pattern length exceeds max of ${t}.`,Qa=t=>`Missing ${t} property in key`,ec=t=>`Property 'weight' in key '${t}' must be a positive integer`,$s=Object.prototype.hasOwnProperty;class tc{constructor(e){this._keys=[],this._keyMap={};let r=0;e.forEach(i=>{let n=_s(i);this._keys.push(n),this._keyMap[n.id]=n,r+=n.weight}),this._keys.forEach(i=>{i.weight/=r})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function _s(t){let e=null,r=null,i=null,n=1,s=null;if(Ge(t)||rt(t))i=t,e=Es(t),r=$i(t);else{if(!$s.call(t,"name"))throw new Error(Qa("name"));const o=t.name;if(i=o,$s.call(t,"weight")&&(n=t.weight,n<=0))throw new Error(ec(o));e=Es(o),r=$i(o),s=t.getFn}return{path:e,id:r,weight:n,src:i,getFn:s}}function Es(t){return rt(t)?t:t.split(".")}function $i(t){return rt(t)?t.join("."):t}function rc(t,e){let r=[],i=!1;const n=(s,o,l)=>{if(Te(s))if(!o[l])r.push(s);else{let a=o[l];const c=s[a];if(!Te(c))return;if(l===o.length-1&&(Ge(c)||bs(c)||Va(c)))r.push(Xa(c));else if(rt(c)){i=!0;for(let f=0,p=c.length;f<p;f+=1)n(c[f],o,l+1)}else o.length&&n(c,o,l+1)}};return n(t,Ge(e)?e.split("."):e,0),i?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:rc,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const ic=/[^ ]+/g;function nc(t=1,e=3){const r=new Map,i=Math.pow(10,e);return{get(n){const s=n.match(ic).length;if(r.has(s))return r.get(s);const o=1/Math.pow(s,.5*t),l=parseFloat(Math.round(o*i)/i);return r.set(s,l),l},clear(){r.clear()}}}class _i{constructor({getFn:e=K.getFn,fieldNormWeight:r=K.fieldNormWeight}={}){this.norm=nc(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,i)=>{this._keysMap[r.id]=i})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Ge(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();Ge(e)?this._addString(e,r):this._addObject(e,r)}removeAt(e){this.records.splice(e,1);for(let r=e,i=this.size();r<i;r+=1)this.records[r].i-=1}getValueForItemAtKeyId(e,r){return e[this._keysMap[r]]}size(){return this.records.length}_addString(e,r){if(!Te(e)||wi(e))return;let i={v:e,i:r,n:this.norm.get(e)};this.records.push(i)}_addObject(e,r){let i={i:r,$:{}};this.keys.forEach((n,s)=>{let o=n.getFn?n.getFn(e):this.getFn(e,n.path);if(Te(o)){if(rt(o)){let l=[];const a=[{nestedArrIndex:-1,value:o}];for(;a.length;){const{nestedArrIndex:c,value:f}=a.pop();if(Te(f))if(Ge(f)&&!wi(f)){let p={v:f,i:c,n:this.norm.get(f)};l.push(p)}else rt(f)&&f.forEach((p,b)=>{a.push({nestedArrIndex:b,value:p})})}i.$[s]=l}else if(Ge(o)&&!wi(o)){let l={v:o,n:this.norm.get(o)};i.$[s]=l}}}),this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function Ss(t,e,{getFn:r=K.getFn,fieldNormWeight:i=K.fieldNormWeight}={}){const n=new _i({getFn:r,fieldNormWeight:i});return n.setKeys(t.map(_s)),n.setSources(e),n.create(),n}function sc(t,{getFn:e=K.getFn,fieldNormWeight:r=K.fieldNormWeight}={}){const{keys:i,records:n}=t,s=new _i({getFn:e,fieldNormWeight:r});return s.setKeys(i),s.setIndexRecords(n),s}function Er(t,{errors:e=0,currentLocation:r=0,expectedLocation:i=0,distance:n=K.distance,ignoreLocation:s=K.ignoreLocation}={}){const o=e/t.length;if(s)return o;const l=Math.abs(i-r);return n?o+l/n:l?1:o}function oc(t=[],e=K.minMatchCharLength){let r=[],i=-1,n=-1,s=0;for(let o=t.length;s<o;s+=1){let l=t[s];l&&i===-1?i=s:!l&&i!==-1&&(n=s-1,n-i+1>=e&&r.push([i,n]),i=-1)}return t[s-1]&&s-i>=e&&r.push([i,s-1]),r}const $t=32;function lc(t,e,r,{location:i=K.location,distance:n=K.distance,threshold:s=K.threshold,findAllMatches:o=K.findAllMatches,minMatchCharLength:l=K.minMatchCharLength,includeMatches:a=K.includeMatches,ignoreLocation:c=K.ignoreLocation}={}){if(e.length>$t)throw new Error(Za($t));const f=e.length,p=t.length,b=Math.max(0,Math.min(i,p));let y=s,E=b;const O=l>1||a,z=O?Array(p):[];let B;for(;(B=t.indexOf(e,E))>-1;){let A=Er(e,{currentLocation:B,expectedLocation:b,distance:n,ignoreLocation:c});if(y=Math.min(A,y),E=B+f,O){let k=0;for(;k<f;)z[B+k]=1,k+=1}}E=-1;let g=[],m=1,w=f+p;const S=1<<f-1;for(let A=0;A<f;A+=1){let k=0,F=w;for(;k<F;)Er(e,{errors:A,currentLocation:b+F,expectedLocation:b,distance:n,ignoreLocation:c})<=y?k=F:w=F,F=Math.floor((w-k)/2+k);w=F;let H=Math.max(1,b-F+1),I=o?p:Math.min(b+F,p)+f,te=Array(I+2);te[I+1]=(1<<A)-1;for(let P=I;P>=H;P-=1){let L=P-1,M=r[t.charAt(L)];if(O&&(z[L]=+!!M),te[P]=(te[P+1]<<1|1)&M,A&&(te[P]|=(g[P+1]|g[P])<<1|1|g[P+1]),te[P]&S&&(m=Er(e,{errors:A,currentLocation:L,expectedLocation:b,distance:n,ignoreLocation:c}),m<=y)){if(y=m,E=L,E<=b)break;H=Math.max(1,2*b-E)}}if(Er(e,{errors:A+1,currentLocation:b,expectedLocation:b,distance:n,ignoreLocation:c})>y)break;g=te}const _={isMatch:E>=0,score:Math.max(.001,m)};if(O){const A=oc(z,l);A.length?a&&(_.indices=A):_.isMatch=!1}return _}function ac(t){let e={};for(let r=0,i=t.length;r<i;r+=1){const n=t.charAt(r);e[n]=(e[n]||0)|1<<i-r-1}return e}class As{constructor(e,{location:r=K.location,threshold:i=K.threshold,distance:n=K.distance,includeMatches:s=K.includeMatches,findAllMatches:o=K.findAllMatches,minMatchCharLength:l=K.minMatchCharLength,isCaseSensitive:a=K.isCaseSensitive,ignoreLocation:c=K.ignoreLocation}={}){if(this.options={location:r,threshold:i,distance:n,includeMatches:s,findAllMatches:o,minMatchCharLength:l,isCaseSensitive:a,ignoreLocation:c},this.pattern=a?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const f=(b,y)=>{this.chunks.push({pattern:b,alphabet:ac(b),startIndex:y})},p=this.pattern.length;if(p>$t){let b=0;const y=p%$t,E=p-y;for(;b<E;)f(this.pattern.substr(b,$t),b),b+=$t;if(y){const O=p-$t;f(this.pattern.substr(O),O)}}else f(this.pattern,0)}searchIn(e){const{isCaseSensitive:r,includeMatches:i}=this.options;if(r||(e=e.toLowerCase()),this.pattern===e){let E={isMatch:!0,score:0};return i&&(E.indices=[[0,e.length-1]]),E}const{location:n,distance:s,threshold:o,findAllMatches:l,minMatchCharLength:a,ignoreLocation:c}=this.options;let f=[],p=0,b=!1;this.chunks.forEach(({pattern:E,alphabet:O,startIndex:z})=>{const{isMatch:B,score:g,indices:m}=lc(e,E,O,{location:n+z,distance:s,threshold:o,findAllMatches:l,minMatchCharLength:a,includeMatches:i,ignoreLocation:c});B&&(b=!0),p+=g,B&&m&&(f=[...f,...m])});let y={isMatch:b,score:b?p/this.chunks.length:1};return b&&i&&(y.indices=f),y}}class dt{constructor(e){this.pattern=e}static isMultiMatch(e){return Ms(e,this.multiRegex)}static isSingleMatch(e){return Ms(e,this.singleRegex)}search(){}}function Ms(t,e){const r=t.match(e);return r?r[1]:null}class cc extends dt{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 uc extends dt{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const i=e.indexOf(this.pattern)===-1;return{isMatch:i,score:i?0:1,indices:[0,e.length-1]}}}class hc extends dt{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 dc extends dt{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 fc extends dt{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 pc extends dt{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 Os extends dt{constructor(e,{location:r=K.location,threshold:i=K.threshold,distance:n=K.distance,includeMatches:s=K.includeMatches,findAllMatches:o=K.findAllMatches,minMatchCharLength:l=K.minMatchCharLength,isCaseSensitive:a=K.isCaseSensitive,ignoreLocation:c=K.ignoreLocation}={}){super(e),this._bitapSearch=new As(e,{location:r,threshold:i,distance:n,includeMatches:s,findAllMatches:o,minMatchCharLength:l,isCaseSensitive:a,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Ps extends dt{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let r=0,i;const n=[],s=this.pattern.length;for(;(i=e.indexOf(this.pattern,r))>-1;)r=i+s,n.push([i,r-1]);const o=!!n.length;return{isMatch:o,score:o?0:1,indices:n}}}const Ei=[cc,Ps,hc,dc,pc,fc,uc,Os],Ls=Ei.length,gc=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,mc="|";function yc(t,e={}){return t.split(mc).map(r=>{let i=r.trim().split(gc).filter(s=>s&&!!s.trim()),n=[];for(let s=0,o=i.length;s<o;s+=1){const l=i[s];let a=!1,c=-1;for(;!a&&++c<Ls;){const f=Ei[c];let p=f.isMultiMatch(l);p&&(n.push(new f(p,e)),a=!0)}if(!a)for(c=-1;++c<Ls;){const f=Ei[c];let p=f.isSingleMatch(l);if(p){n.push(new f(p,e));break}}}return n})}const vc=new Set([Os.type,Ps.type]);class bc{constructor(e,{isCaseSensitive:r=K.isCaseSensitive,includeMatches:i=K.includeMatches,minMatchCharLength:n=K.minMatchCharLength,ignoreLocation:s=K.ignoreLocation,findAllMatches:o=K.findAllMatches,location:l=K.location,threshold:a=K.threshold,distance:c=K.distance}={}){this.query=null,this.options={isCaseSensitive:r,includeMatches:i,minMatchCharLength:n,findAllMatches:o,ignoreLocation:s,location:l,threshold:a,distance:c},this.pattern=r?e:e.toLowerCase(),this.query=yc(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:i,isCaseSensitive:n}=this.options;e=n?e:e.toLowerCase();let s=0,o=[],l=0;for(let a=0,c=r.length;a<c;a+=1){const f=r[a];o.length=0,s=0;for(let p=0,b=f.length;p<b;p+=1){const y=f[p],{isMatch:E,indices:O,score:z}=y.search(e);if(E){if(s+=1,l+=z,i){const B=y.constructor.type;vc.has(B)?o=[...o,...O]:o.push(O)}}else{l=0,s=0,o.length=0;break}}if(s){let p={isMatch:!0,score:l/s};return i&&(p.indices=o),p}}return{isMatch:!1,score:1}}}const Si=[];function xc(...t){Si.push(...t)}function Ai(t,e){for(let r=0,i=Si.length;r<i;r+=1){let n=Si[r];if(n.condition(t,e))return new n(t,e)}return new As(t,e)}const Sr={AND:"$and",OR:"$or"},Mi={PATH:"$path",PATTERN:"$val"},Oi=t=>!!(t[Sr.AND]||t[Sr.OR]),wc=t=>!!t[Mi.PATH],$c=t=>!rt(t)&&xs(t)&&!Oi(t),Cs=t=>({[Sr.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function ks(t,e,{auto:r=!0}={}){const i=n=>{let s=Object.keys(n);const o=wc(n);if(!o&&s.length>1&&!Oi(n))return i(Cs(n));if($c(n)){const a=o?n[Mi.PATH]:s[0],c=o?n[Mi.PATTERN]:n[a];if(!Ge(c))throw new Error(Ja(a));const f={keyId:$i(a),pattern:c};return r&&(f.searcher=Ai(c,e)),f}let l={children:[],operator:s[0]};return s.forEach(a=>{const c=n[a];rt(c)&&c.forEach(f=>{l.children.push(i(f))})}),l};return Oi(t)||(t=Cs(t)),i(t)}function _c(t,{ignoreFieldNorm:e=K.ignoreFieldNorm}){t.forEach(r=>{let i=1;r.matches.forEach(({key:n,norm:s,score:o})=>{const l=n?n.weight:null;i*=Math.pow(o===0&&l?Number.EPSILON:o,(l||1)*(e?1:s))}),r.score=i})}function Ec(t,e){const r=t.matches;e.matches=[],Te(r)&&r.forEach(i=>{if(!Te(i.indices)||!i.indices.length)return;const{indices:n,value:s}=i;let o={indices:n,value:s};i.key&&(o.key=i.key.src),i.idx>-1&&(o.refIndex=i.idx),e.matches.push(o)})}function Sc(t,e){e.score=t.score}function Ac(t,e,{includeMatches:r=K.includeMatches,includeScore:i=K.includeScore}={}){const n=[];return r&&n.push(Ec),i&&n.push(Sc),t.map(s=>{const{idx:o}=s,l={item:e[o],refIndex:o};return n.length&&n.forEach(a=>{a(s,l)}),l})}class Ft{constructor(e,r={},i){this.options={...K,...r},this.options.useExtendedSearch,this._keyStore=new tc(this.options.keys),this.setCollection(e,i)}setCollection(e,r){if(this._docs=e,r&&!(r instanceof _i))throw new Error(Ga);this._myIndex=r||Ss(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){Te(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const r=[];for(let i=0,n=this._docs.length;i<n;i+=1){const s=this._docs[i];e(s,i)&&(this.removeAt(i),i-=1,n-=1,r.push(s))}return r}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:r=-1}={}){const{includeMatches:i,includeScore:n,shouldSort:s,sortFn:o,ignoreFieldNorm:l}=this.options;let a=Ge(e)?Ge(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return _c(a,{ignoreFieldNorm:l}),s&&a.sort(o),bs(r)&&r>-1&&(a=a.slice(0,r)),Ac(a,this._docs,{includeMatches:i,includeScore:n})}_searchStringList(e){const r=Ai(e,this.options),{records:i}=this._myIndex,n=[];return i.forEach(({v:s,i:o,n:l})=>{if(!Te(s))return;const{isMatch:a,score:c,indices:f}=r.searchIn(s);a&&n.push({item:s,idx:o,matches:[{score:c,value:s,norm:l,indices:f}]})}),n}_searchLogical(e){const r=ks(e,this.options),i=(l,a,c)=>{if(!l.children){const{keyId:p,searcher:b}=l,y=this._findMatches({key:this._keyStore.get(p),value:this._myIndex.getValueForItemAtKeyId(a,p),searcher:b});return y&&y.length?[{idx:c,item:a,matches:y}]:[]}const f=[];for(let p=0,b=l.children.length;p<b;p+=1){const y=l.children[p],E=i(y,a,c);if(E.length)f.push(...E);else if(l.operator===Sr.AND)return[]}return f},n=this._myIndex.records,s={},o=[];return n.forEach(({$:l,i:a})=>{if(Te(l)){let c=i(r,l,a);c.length&&(s[a]||(s[a]={idx:a,item:l,matches:[]},o.push(s[a])),c.forEach(({matches:f})=>{s[a].matches.push(...f)}))}}),o}_searchObjectList(e){const r=Ai(e,this.options),{keys:i,records:n}=this._myIndex,s=[];return n.forEach(({$:o,i:l})=>{if(!Te(o))return;let a=[];i.forEach((c,f)=>{a.push(...this._findMatches({key:c,value:o[f],searcher:r}))}),a.length&&s.push({idx:l,item:o,matches:a})}),s}_findMatches({key:e,value:r,searcher:i}){if(!Te(r))return[];let n=[];if(rt(r))r.forEach(({v:s,i:o,n:l})=>{if(!Te(s))return;const{isMatch:a,score:c,indices:f}=i.searchIn(s);a&&n.push({score:c,key:e,value:s,idx:o,norm:l,indices:f})});else{const{v:s,n:o}=r,{isMatch:l,score:a,indices:c}=i.searchIn(s);l&&n.push({score:a,key:e,value:s,norm:o,indices:c})}return n}}Ft.version="7.0.0",Ft.createIndex=Ss,Ft.parseIndex=sc,Ft.config=K,Ft.parseQuery=ks,xc(bc);const Mc=(t,e="highlight",r="title")=>{const i=(s,o,l)=>{const a=o.split(".");let c;for(c=0;c<a.length-1;c++)s=s[a[c]];s[a[c]]=l},n=(s,o=[])=>{let l="",a=0;return o.forEach(c=>{const f=c[1]+1;l+=[s.substring(a,c[0]),`<mark class="${e}">`,s.substring(c[0],f),"</mark>"].join(""),a=f}),l+=s.substring(a),l};return t.filter(({matches:s})=>s&&s.length).map(({item:s,matches:o})=>{const l={};for(const[a,c]of Object.entries(s))l[a]=c;return o.forEach(a=>{a.key===r&&i(l,a.key,n(a.value,a.indices))}),l})};let Rs;const Oc=(t,e)=>{Rs=new Ft(t,{threshold:.4,distance:50,includeMatches:!0,useExtendedSearch:!0,...e})},Pc=async(t,e,r)=>{const i=Object.entries(e).filter(([,l])=>l.type==="text"||l.type==="select"||l.type==="multiselect").reduce((l,[a,c])=>{const f="$or",p=[],b=(y,E)=>{const O={};c.type==="text"?O[y]=`${E}`:O[a]=`="${y}"`,p.push(O)};return Object.entries(c.state).filter(([,y])=>y).forEach(([y,E])=>b(y,E)),p.length>0&&l.push({[f]:p}),l},[]);let n;if(!(i.length>0)&&r.matchAllWhenEmpty!==!1)n=t;else{const l={$and:[...i]},a=Rs.search(l);n=r.enableHighlighting?Mc(a,"highlight",r.titleProperty):a.map(c=>c.item)}const s=Object.entries(e).filter(([,l])=>l.type==="range").reduce((l,[a,c])=>(l[a]={min:c.state.min,max:c.state.max,format:c.format},l),{});if(Object.keys(s).length>0){const l=[];for(let a=0;a<n.length;a++){const c={};for(const[f,p]of Object.entries(s)){const b=y=>p.format==="date"?Lt(y).unix():y;Object.prototype.hasOwnProperty.call(n[a],f)?Array.isArray(n[a][f])?c[f]=s[f].min<=b(n[a][f][1])&&b(n[a][f][0])<=s[f].max:b(n[a][f])>=s[f].min&&b(n[a][f])<=s[f].max?c[f]=!0:c[f]=!1:c[f]=!0}Object.values(c).every(f=>!!f)&&l.push(n[a])}n=[...l]}const o=Object.entries(e).filter(([,l])=>l.type==="spatial").reduce((l,[a,c])=>(l[a]={geometry:c.state.geometry,mode:c.state.mode},l),{});if(Object.values(o).map(l=>l.geometry).filter(l=>!!l).length>0){const l=[];for(let a=0;a<n.length;a++){const c={};for(const f of Object.keys(o)){const p=o[f].mode||"within";Object.prototype.hasOwnProperty.call(n[a],f)&&(p==="within"?Fa(n[a][f],o[f].geometry):Ba(n[a][f],o[f].geometry))?c[f]=!0:c[f]=!1}Object.values(c).every(f=>!!f)&&l.push(n[a])}n=[...l]}return n},Lc=async(t,e,r)=>(await(await fetch(`${r.externalFilter(t,e)}`)).json()).features;var Cc=Object.defineProperty,kc=Object.getOwnPropertyDescriptor,it=(t,e,r,i)=>{for(var n=i>1?void 0:i?kc(e,r):e,s=t.length-1,o;s>=0;s--)(o=t[s])&&(n=(i?o(e,r,n):o(n))||n);return i&&n&&Cc(e,r,n),n};class Pi{constructor(){this.aggregateResults=void 0,this.autoSpreadSingle=!1,this.enableHighlighting=!1,this.filterProperties=[],this.inlineMode=!1,this.matchAllWhenEmpty=!0,this.onFilter=()=>{},this.onSelect=()=>{},this.showResults=!0,this.titleProperty="title",this.expandMultipleFilters=!0,this.expandResults=!0,this.expandMultipleResults=!0}}$e.EOxItemFilter=class extends Po{constructor(){super(...arguments),this._resultAggregation=[],this._items=[],this.filters={},this._config=new Pi,this.apply=e=>{this._items=e.map((i,n)=>({id:`item-${n}`,...i})),this._config.filterProperties.length&&this._config.filterProperties.forEach(i=>{const n={},s=o=>i.format==="date"?Lt(o).unix():parseInt(o);this._items.forEach(o=>{if(i.type==="range"){if(Array.isArray(o[i.key])){const l=[s(o[i.key][0]),s(o[i.key][1])];n.min=n.min!==void 0?Math.min(n.min,l[0]):l[0],n.max=n.max!==void 0?Math.max(n.max,l[1]):l[1]}else{const l=s(o[i.key]);n.min=n.min!==void 0?Math.min(n.min,l):l,n.max=n.max!==void 0?Math.max(n.max,l):l}return}Array.isArray(o[i.key])?o[i.key].forEach(l=>{n[l]=void 0}):i.type==="spatial"?(n.geometry=void 0,n.mode=i.mode||"intersects"):n[o[i.key]]=void 0}),this.filters[i.key||i.keys.join("|")]={...i,type:i.type||"multiselect",state:{...n,...i.state},...i.state&&{dirty:!1},...i.type==="range"&&{min:n.min,max:n.max,format:i.format}}}),this._config.matchAllWhenEmpty!==!1&&(this.results=this.sortResults(this._items),this.requestUpdate()),this._config.aggregateResults&&(this._resultAggregation=[...new Set(this._items.reduce((i,n)=>i.concat(n[this._config.aggregateResults]),[]))].sort((i,n)=>i.localeCompare(n)));const r=[];Object.values(this.filters).forEach(i=>{i.type==="text"?i.keys.forEach(n=>{r.includes(n)||r.push(n)}):(i.type==="select"||i.type==="multiselect")&&(r.includes(i.key)||r.push(i.key))}),Oc(this._items,{keys:r,...this._config.fuseConfig}),this.search()}}set items(e){this.apply(e)}get items(){return this._items}set config(e){const r=this._config;this._config={...new Pi,...e},this.requestUpdate("config",r)}get config(){return this._config}async search(){let e;this.config.externalFilter?e=await Lc(this._items,this.filters,this._config):e=await Pc(this._items,this.filters,this._config),this.results=this.sortResults(e),this._config.onFilter(this.results,this.filters)}aggregateResults(e,r){return e.filter(i=>{const n=i[this._config.aggregateResults];let s;return this.filters[this._config.aggregateResults]&&(s=Object.keys(this.filters[this._config.aggregateResults]).filter(l=>this.filters[this._config.aggregateResults].state[l])),(s!=null&&s.length?s.includes(r):!0)&&Array.isArray(n)?n.includes(r):n===r})}createItemList(e){return U`
|
|
869
|
-
<ul>
|
|
870
|
-
${On(this.aggregateResults(this.results,e),r=>r.id,r=>{var i,n;return U`
|
|
871
|
-
<li
|
|
872
|
-
class=${((i=this.selectedResult)==null?void 0:i[this._config.titleProperty])===r[this._config.titleProperty]?"highlighted":se}
|
|
873
|
-
>
|
|
688
|
+
${Se(this,gr,ka).call(this,"max","after")}
|
|
689
|
+
`)}}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,Wi);this.filterObject={},this.tabIndex=0}static get properties(){return{filterObject:{type:Object},tabIndex:{attribute:!1,type:Number}}}reset(){W0(this)}createRenderRoot(){return this}render(){return Qe(this.filterObject,()=>{var r;return K`
|
|
690
|
+
<form style="display: inline">
|
|
691
|
+
${Xn(["intersects","within"],n=>K`
|
|
874
692
|
<label>
|
|
875
693
|
<input
|
|
876
|
-
|
|
694
|
+
tabindex=${this.tabIndex}
|
|
877
695
|
type="radio"
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
@click=${()=>{this.selectedResult=r,this._config.onSelect(r)}}
|
|
696
|
+
name="mode"
|
|
697
|
+
.checked="${(this.filterObject.state.mode||"")===n||be}"
|
|
698
|
+
value="${n}"
|
|
699
|
+
@click=${()=>Se(this,Wi,op).call(this,n)}
|
|
883
700
|
/>
|
|
884
|
-
|
|
885
|
-
<span class="title"
|
|
886
|
-
>${Pn(r[this._config.titleProperty])}</span
|
|
887
|
-
>
|
|
888
|
-
`)}
|
|
701
|
+
<small>${n} filter geometry</small>
|
|
889
702
|
</label>
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
703
|
+
`)}
|
|
704
|
+
</form>
|
|
705
|
+
<eox-itemfilter-spatial-filter
|
|
706
|
+
exportparts="map: spatial-filter-map"
|
|
707
|
+
.geometry="${(r=this.filterObject.state)==null?void 0:r.geometry}"
|
|
708
|
+
@filter="${n=>{this.filterObject.state.geometry=n.detail.geometry,this.filterObject.dirty=!0,this.filterObject.stringifiedState="Polygon",this.dispatchEvent(new CustomEvent("filter"))}}"
|
|
709
|
+
></eox-itemfilter-spatial>
|
|
710
|
+
`})}}Wi=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 K`<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 K`
|
|
894
711
|
<style>
|
|
895
|
-
${
|
|
896
|
-
|
|
712
|
+
${yn}
|
|
713
|
+
</style>
|
|
714
|
+
<span class="chip-container">
|
|
715
|
+
${Xn(this.items,r=>K`
|
|
716
|
+
<span class="chip" @click=${Se(this,yr,ap).bind(this)}>
|
|
717
|
+
<span class="chip-title">${r.title}</span>
|
|
718
|
+
<span
|
|
719
|
+
class="chip-item-close hidden"
|
|
720
|
+
data-close=${r.key}
|
|
721
|
+
@click=${n=>{n.stopPropagation(),this.controller.remove(n),this.requestUpdate()}}
|
|
722
|
+
></span>
|
|
723
|
+
</span>
|
|
724
|
+
</span>
|
|
725
|
+
`)}
|
|
726
|
+
</span>
|
|
727
|
+
`}}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:""}(),Ff=Pb.toString,Xs=Hf.hasOwnProperty,Ob=Hf.toString,Cb=RegExp("^"+Ff.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 Fb(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=Fb;function Fr(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 Wb(){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 Vb(t,e){return Ni(this,t).set(t,e),this}Fr.prototype.clear=Wb,Fr.prototype.delete=zb,Fr.prototype.get=qb,Fr.prototype.has=Gb,Fr.prototype.set=Vb;function ji(t){var e=-1,r=t?t.length:0;for(this.__data__=new Fr;++e<r;)this.add(t[e])}function Kb(t){return this.__data__.set(t,Ys),this}function Yb(t){return this.__data__.has(t)}ji.prototype.add=ji.prototype.push=Kb,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(!Wf(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 Ff.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=Wf(t)?Ob.call(t):"";return e==hb||e==db}function Wf(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]",W="[object Map]",V="[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,Ke=/\\(\\)?/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[W]=le[V]=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{}}(),Vi=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 Ki(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),Vr=Qt(Ie,"DataView"),mr=Qt(Ie,"Map"),Et=Qt(Ie,"Promise"),Kr=Qt(Ie,"Set"),Rn=Qt(Ie,"WeakMap"),br=Qt(Object,"create"),Xi=mt(Vr),ya=mt(mr),Qi=mt(Et),va=mt(Kr),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 Fe(a){return this.__data__.has(a)}ce.prototype.add=ce.prototype.push=rt,ce.prototype.has=Fe;function j(a){this.__data__=new u(a)}function ne(){this.__data__=new u}function F(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=F,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(!Fn(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=Vn(v,a);return S===void 0&&S===p?Kn(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:Wn(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,me){if(!je.has(me)&&(h===ee||v(h,ee,S,D,O)))return je.add(me)})){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 V:return nn(+a,+p);case b:return a.name==p.name&&a.message==p.message;case pe:case N:return a==p+"";case W: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],me=p[je];if(S)var fe=Y?S(me,ee,je,p,a,O):S(ee,me,je,a,p,O);if(!(fe===void 0?ee===me||v(ee,me,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;(Vr&&Pt(new Vr(new ArrayBuffer(1)))!=de||mr&&Pt(new mr)!=W||Et&&Pt(Et.resolve())!=Z||Kr&&Pt(new Kr)!=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 W;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 Fn(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 Wn=_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(Ke,"$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=Vi?Ki(Vi):io;function an(a){return a==null?"":Tt(a)}function Vn(a,p,v){var S=a==null?void 0:Bn(a,p);return S===void 0?v:S}function Kn(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 K`<eox-itemfilter-text
|
|
728
|
+
data-type="filter"
|
|
729
|
+
slot="filter"
|
|
730
|
+
id="${n}"
|
|
731
|
+
.tabIndex=${e}
|
|
732
|
+
.filterObject=${t}
|
|
733
|
+
.unstyled=${r.unstyled}
|
|
734
|
+
@filter=${()=>r.search()}
|
|
735
|
+
></eox-itemfilter-text>`;case"multiselect":case"select":return K`
|
|
736
|
+
<eox-itemfilter-select
|
|
737
|
+
.inlineMode=${r.config.inlineMode||!1}
|
|
738
|
+
data-type="filter"
|
|
739
|
+
id="${n}"
|
|
740
|
+
.tabIndex=${e}
|
|
741
|
+
.filterObject=${t}
|
|
742
|
+
slot="filter"
|
|
743
|
+
.suggestions="${zf(qf(r.items,t.key)).filter(i=>i)}"
|
|
744
|
+
type="${t.type}"
|
|
745
|
+
.unstyled=${r.unstyled}
|
|
746
|
+
@filter=${()=>r.search()}
|
|
747
|
+
></eox-itemfilter-select>
|
|
748
|
+
`;case"range":return K`
|
|
749
|
+
<eox-itemfilter-range
|
|
750
|
+
id="${n}"
|
|
751
|
+
data-type="filter"
|
|
752
|
+
.tabIndex=${e}
|
|
753
|
+
.filterObject=${t}
|
|
754
|
+
slot="filter"
|
|
755
|
+
.unstyled=${r.unstyled}
|
|
756
|
+
@filter=${()=>r.search()}
|
|
757
|
+
></eox-itemfilter-range>
|
|
758
|
+
`;case"spatial":return K`
|
|
759
|
+
<eox-itemfilter-spatial
|
|
760
|
+
id="${n}"
|
|
761
|
+
data-type="filter"
|
|
762
|
+
.tabIndex=${e}
|
|
763
|
+
.filterObject=${t}
|
|
764
|
+
slot="filter"
|
|
765
|
+
@filter=${()=>r.search()}
|
|
766
|
+
></eox-itemfilter-spatial>
|
|
767
|
+
`;default:return K``}}function f1(t,e){return[...t].sort((r,n)=>r[e.titleProperty].localeCompare(n[e.titleProperty]))}function p1(t,e,r){return K`
|
|
768
|
+
${Qe(t.dirty,()=>K`
|
|
769
|
+
<button
|
|
770
|
+
type="button"
|
|
771
|
+
tabindex=${e}
|
|
772
|
+
slot="reset-button"
|
|
773
|
+
class="reset-icon icon"
|
|
774
|
+
@click=${n=>{const i=n.target.parentElement.querySelector("[slot=filter]");i&&typeof i.reset=="function"&&i.reset(),r.search(),r.requestUpdate()}}
|
|
775
|
+
>
|
|
776
|
+
${r.unstyled?"Reset":be}
|
|
777
|
+
</button>
|
|
778
|
+
`)}
|
|
779
|
+
`}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,Wr,[]);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}}}apply(){ho(this,Ln,l1(pt(this,yt),pt(this,Wr),this)),this.search()}async searchHandler(){var r;await c1(pt(this,yt),pt(this,Wr),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,Wr,((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;return K`
|
|
780
|
+
<style>
|
|
781
|
+
${Ap}
|
|
782
|
+
${!this.unstyled&&yn}
|
|
783
|
+
${!this.unstyled&&_p}
|
|
897
784
|
${this.styleOverride}
|
|
898
785
|
</style>
|
|
899
|
-
<form
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
.unstyled=${this.unstyled}
|
|
786
|
+
<form id="itemfilter" @submit="${i=>i.preventDefault()}">
|
|
787
|
+
${Qe((r=this.config)==null?void 0:r.filterProperties,()=>K`
|
|
788
|
+
<eox-itemfilter-container
|
|
789
|
+
.filters=${this.filters}
|
|
790
|
+
.filterProperties=${this.config.filterProperties}
|
|
791
|
+
.inlineMode=${this.config.inlineMode||!1}
|
|
792
|
+
@reset=${()=>this.resetFilters()}
|
|
907
793
|
@filter=${()=>this.search()}
|
|
908
794
|
>
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
>
|
|
915
|
-
${de(!this.config.inlineMode,()=>U`
|
|
916
|
-
<slot name="filterstitle"
|
|
917
|
-
><h4 style="margin-top: 8px">Filters</h4></slot
|
|
918
|
-
>
|
|
919
|
-
`)}
|
|
920
|
-
<ul id="filters">
|
|
921
|
-
${Jt(Object.values(this.filters),e=>hr`
|
|
922
|
-
<li>
|
|
923
|
-
${e.featured?hr`
|
|
924
|
-
<eox-itemfilter-${Ot(e.type)}
|
|
925
|
-
slot="filter"
|
|
926
|
-
data-type="filter"
|
|
927
|
-
.filterObject=${e}
|
|
928
|
-
.unstyled=${this.unstyled}
|
|
929
|
-
@filter="${()=>this.search()}"
|
|
930
|
-
></eox-itemfilter-${Ot(e.type)}>
|
|
931
|
-
`:hr`
|
|
932
|
-
<eox-itemfilter-expandcontainer
|
|
933
|
-
.filterObject=${e}
|
|
934
|
-
.unstyled=${this.unstyled}
|
|
935
|
-
@details-toggled=${this.toggleAccordion}
|
|
936
|
-
>
|
|
937
|
-
${de(e.dirty,()=>U`
|
|
938
|
-
<button
|
|
939
|
-
slot="reset-button"
|
|
940
|
-
class="reset-icon icon"
|
|
941
|
-
@click=${r=>{r.target.parentElement.querySelector("[slot=filter]").reset(),this.search(),this.requestUpdate()}}
|
|
942
|
-
>
|
|
943
|
-
${this.unstyled?"Reset":se}
|
|
944
|
-
</button>
|
|
945
|
-
`)}
|
|
946
|
-
<eox-itemfilter-${Ot(e.type)}
|
|
947
|
-
slot="filter"
|
|
948
|
-
data-type="filter"
|
|
949
|
-
data-filter="${e.key}"
|
|
950
|
-
.filterObject=${e}
|
|
951
|
-
.unstyled=${this.unstyled}
|
|
952
|
-
@filter="${()=>this.search()}"
|
|
953
|
-
></eox-itemfilter-${Ot(e.type)}>
|
|
954
|
-
</eox-itemfilter-expandcontainer>
|
|
955
|
-
`}
|
|
956
|
-
</li>
|
|
795
|
+
<section slot="section">
|
|
796
|
+
${Qe(!this.config.inlineMode,()=>K`
|
|
797
|
+
<slot name="filterstitle"
|
|
798
|
+
><h6 class="main-heading">Filters</h6></slot
|
|
799
|
+
>
|
|
957
800
|
`)}
|
|
958
|
-
|
|
959
|
-
${
|
|
801
|
+
<ul id="filters">
|
|
802
|
+
${Xn(Object.values(this.filters),(i,o)=>K` <li>
|
|
803
|
+
<eox-itemfilter-expandcontainer
|
|
804
|
+
.filterObject=${i}
|
|
805
|
+
data-details="${i.key}"
|
|
806
|
+
>
|
|
807
|
+
${Se(this,zr,cp).call(this,i,Sf(o,1))}
|
|
808
|
+
${Se(this,zr,lp).call(this,i,Sf(o,2))}
|
|
809
|
+
</eox-itemfilter-expandcontainer>
|
|
810
|
+
</li>`)}
|
|
811
|
+
</ul>
|
|
812
|
+
${Qe(!this.config.inlineMode&&pt(this,yt).filterProperties&&!this.config.inlineMode&&pt(this,yt).filterProperties&&Ws(this.filters),()=>K`
|
|
960
813
|
<button
|
|
814
|
+
type="button"
|
|
961
815
|
id="filter-reset"
|
|
962
816
|
class="outline small icon-text reset-icon"
|
|
963
817
|
data-cy="filter-reset"
|
|
@@ -966,59 +820,18 @@ eox-itemfilter-expandcontainer button.reset-icon:before {
|
|
|
966
820
|
Reset all
|
|
967
821
|
</a>
|
|
968
822
|
`)}
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
`:se}
|
|
982
|
-
<ul id="results" part="results">
|
|
983
|
-
${this._config.aggregateResults?Jt(this._resultAggregation.filter(e=>this.aggregateResults(this.results,e).length),e=>U` ${de(this.aggregateResults(this.results,e).length===1&&this.config.autoSpreadSingle,()=>U` <div style="margin-left: -8px">
|
|
984
|
-
${this.createItemList(e)}
|
|
985
|
-
</div>`,()=>U`
|
|
986
|
-
<details
|
|
987
|
-
class="details-results"
|
|
988
|
-
@toggle=${this.toggleAccordion}
|
|
989
|
-
?open=${this._config.expandResults||se}
|
|
990
|
-
>
|
|
991
|
-
<summary>
|
|
992
|
-
<span class="title">
|
|
993
|
-
${e}
|
|
994
|
-
<span class="count"
|
|
995
|
-
>${this.aggregateResults(this.results,e).length}</span
|
|
996
|
-
>
|
|
997
|
-
</span>
|
|
998
|
-
</summary>
|
|
999
|
-
<div>
|
|
1000
|
-
${this.createItemList(e)}
|
|
1001
|
-
</div>
|
|
1002
|
-
</details>
|
|
1003
|
-
`)}`):Jt(this.results,e=>U`<li part="result">
|
|
1004
|
-
<label>
|
|
1005
|
-
<input
|
|
1006
|
-
type="radio"
|
|
1007
|
-
name="result"
|
|
1008
|
-
id="${e.id}"
|
|
1009
|
-
@click=${()=>{this.selectedResult=e,this._config.onSelect(e)}}
|
|
1010
|
-
/>
|
|
1011
|
-
${de(this.hasTemplate("result"),()=>this.renderTemplate("result",e,`result-${e.id}`),()=>U`
|
|
1012
|
-
<span class="title"
|
|
1013
|
-
>${Pn(e[this._config.titleProperty])}</span
|
|
1014
|
-
>
|
|
1015
|
-
`)}
|
|
1016
|
-
</label>
|
|
1017
|
-
</li>`)}
|
|
1018
|
-
</ul>
|
|
1019
|
-
</div>
|
|
1020
|
-
</section>
|
|
1021
|
-
`)}
|
|
823
|
+
</section>
|
|
824
|
+
</eox-itemfilter-container>
|
|
825
|
+
`)}
|
|
826
|
+
${Qe(((n=pt(this,yt))==null?void 0:n.showResults)&&this.results,()=>K`
|
|
827
|
+
<eox-itemfilter-results
|
|
828
|
+
.config=${pt(this,yt)}
|
|
829
|
+
.results=${this.results}
|
|
830
|
+
.filters=${this.filters}
|
|
831
|
+
.resultAggregation=${pt(this,Ln)}
|
|
832
|
+
.selectedResult=${this.selectedResult}
|
|
833
|
+
@result=${this.updateResult}
|
|
834
|
+
></eox-itemfilter-results>
|
|
1022
835
|
`)}
|
|
1023
836
|
</form>
|
|
1024
|
-
`}},
|
|
837
|
+
`}}Ln=new WeakMap,Wr=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"})});
|