@eox/itemfilter 1.4.0 → 1.4.1

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.
@@ -4003,7 +4003,7 @@ function Zs(t, e) {
4003
4003
  }
4004
4004
  function Fc(t) {
4005
4005
  return Object.keys(t).map((e) => ({
4006
- title: F`${t[e].title}:
4006
+ title: F`${t[e].title || t[e].key}:
4007
4007
  <strong>${t[e].stringifiedState}</strong>`,
4008
4008
  key: e
4009
4009
  })).filter((e) => t[e.key].dirty);
@@ -528,7 +528,7 @@ eox-itemfilter-results li.highlighted {
528
528
  <slot name="filter"></slot>
529
529
  </div>
530
530
  </details>`)}
531
- `}}Dn=new WeakSet,ua=function(r){this.dispatchEvent(new CustomEvent("details-toggled",{detail:r,bubbles:!0,composed:!0}))},customElements.define("eox-itemfilter-expandcontainer",za);function mt(t){return Array.isArray?Array.isArray(t):Xs(t)==="[object Array]"}const qa=1/0;function Wa(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-qa?"-0":e}function Va(t){return t==null?"":Wa(t)}function ut(t){return typeof t=="string"}function Ys(t){return typeof t=="number"}function Ka(t){return t===!0||t===!1||Ga(t)&&Xs(t)=="[object Boolean]"}function Fs(t){return typeof t=="object"}function Ga(t){return Fs(t)&&t!==null}function Je(t){return t!=null}function yi(t){return!t.trim().length}function Xs(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Fd="Extended search is not available",Ya="Incorrect 'index' type",Fa=t=>`Invalid value for key ${t}`,Xa=t=>`Pattern length exceeds max of ${t}.`,Za=t=>`Missing ${t} property in key`,Ja=t=>`Property 'weight' in key '${t}' must be a positive integer`,Zs=Object.prototype.hasOwnProperty;class Qa{constructor(e){this._keys=[],this._keyMap={};let r=0;e.forEach(n=>{let i=Js(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 Js(t){let e=null,r=null,n=null,i=1,s=null;if(ut(t)||mt(t))n=t,e=Qs(t),r=bi(t);else{if(!Zs.call(t,"name"))throw new Error(Za("name"));const o=t.name;if(n=o,Zs.call(t,"weight")&&(i=t.weight,i<=0))throw new Error(Ja(o));e=Qs(o),r=bi(o),s=t.getFn}return{path:e,id:r,weight:i,src:n,getFn:s}}function Qs(t){return mt(t)?t:t.split(".")}function bi(t){return mt(t)?t.join("."):t}function el(t,e){let r=[],n=!1;const i=(s,o,l)=>{if(Je(s))if(!o[l])r.push(s);else{let c=o[l];const d=s[c];if(!Je(d))return;if(l===o.length-1&&(ut(d)||Ys(d)||Ka(d)))r.push(Va(d));else if(mt(d)){n=!0;for(let p=0,y=d.length;p<y;p+=1)i(d[p],o,l+1)}else o.length&&i(d,o,l+1)}};return i(t,ut(e)?e.split("."):e,0),n?r:r[0]}var V={...{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:el,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const tl=/[^ ]+/g;function rl(t=1,e=3){const r=new Map,n=Math.pow(10,e);return{get(i){const s=i.match(tl).length;if(r.has(s))return r.get(s);const o=1/Math.pow(s,.5*t),l=parseFloat(Math.round(o*n)/n);return r.set(s,l),l},clear(){r.clear()}}}class mi{constructor({getFn:e=V.getFn,fieldNormWeight:r=V.fieldNormWeight}={}){this.norm=rl(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,ut(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();ut(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(!Je(e)||yi(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,s)=>{let o=i.getFn?i.getFn(e):this.getFn(e,i.path);if(Je(o)){if(mt(o)){let l=[];const c=[{nestedArrIndex:-1,value:o}];for(;c.length;){const{nestedArrIndex:d,value:p}=c.pop();if(Je(p))if(ut(p)&&!yi(p)){let y={v:p,i:d,n:this.norm.get(p)};l.push(y)}else mt(p)&&p.forEach((y,w)=>{c.push({nestedArrIndex:w,value:y})})}n.$[s]=l}else if(ut(o)&&!yi(o)){let l={v:o,n:this.norm.get(o)};n.$[s]=l}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function eo(t,e,{getFn:r=V.getFn,fieldNormWeight:n=V.fieldNormWeight}={}){const i=new mi({getFn:r,fieldNormWeight:n});return i.setKeys(t.map(Js)),i.setSources(e),i.create(),i}function nl(t,{getFn:e=V.getFn,fieldNormWeight:r=V.fieldNormWeight}={}){const{keys:n,records:i}=t,s=new mi({getFn:e,fieldNormWeight:r});return s.setKeys(n),s.setIndexRecords(i),s}function gn(t,{errors:e=0,currentLocation:r=0,expectedLocation:n=0,distance:i=V.distance,ignoreLocation:s=V.ignoreLocation}={}){const o=e/t.length;if(s)return o;const l=Math.abs(n-r);return i?o+l/i:l?1:o}function il(t=[],e=V.minMatchCharLength){let r=[],n=-1,i=-1,s=0;for(let o=t.length;s<o;s+=1){let l=t[s];l&&n===-1?n=s:!l&&n!==-1&&(i=s-1,i-n+1>=e&&r.push([n,i]),n=-1)}return t[s-1]&&s-n>=e&&r.push([n,s-1]),r}const Ut=32;function sl(t,e,r,{location:n=V.location,distance:i=V.distance,threshold:s=V.threshold,findAllMatches:o=V.findAllMatches,minMatchCharLength:l=V.minMatchCharLength,includeMatches:c=V.includeMatches,ignoreLocation:d=V.ignoreLocation}={}){if(e.length>Ut)throw new Error(Xa(Ut));const p=e.length,y=t.length,w=Math.max(0,Math.min(n,y));let m=s,_=w;const E=l>1||c,z=E?Array(y):[];let H;for(;(H=t.indexOf(e,_))>-1;){let fe=gn(e,{currentLocation:H,expectedLocation:w,distance:i,ignoreLocation:d});if(m=Math.min(fe,m),_=H+p,E){let Ae=0;for(;Ae<p;)z[H+Ae]=1,Ae+=1}}_=-1;let X=[],F=1,he=p+y;const te=1<<p-1;for(let fe=0;fe<p;fe+=1){let Ae=0,Ce=he;for(;Ae<Ce;)gn(e,{errors:fe,currentLocation:w+Ce,expectedLocation:w,distance:i,ignoreLocation:d})<=m?Ae=Ce:he=Ce,Ce=Math.floor((he-Ae)/2+Ae);he=Ce;let ye=Math.max(1,w-Ce+1),ie=o?y:Math.min(w+Ce,y)+p,Ge=Array(ie+2);Ge[ie+1]=(1<<fe)-1;for(let D=ie;D>=ye;D-=1){let S=D-1,M=r[t.charAt(S)];if(E&&(z[S]=+!!M),Ge[D]=(Ge[D+1]<<1|1)&M,fe&&(Ge[D]|=(X[D+1]|X[D])<<1|1|X[D+1]),Ge[D]&te&&(F=gn(e,{errors:fe,currentLocation:S,expectedLocation:w,distance:i,ignoreLocation:d}),F<=m)){if(m=F,_=S,_<=w)break;ye=Math.max(1,2*w-_)}}if(gn(e,{errors:fe+1,currentLocation:w,expectedLocation:w,distance:i,ignoreLocation:d})>m)break;X=Ge}const Z={isMatch:_>=0,score:Math.max(.001,F)};if(E){const fe=il(z,l);fe.length?c&&(Z.indices=fe):Z.isMatch=!1}return Z}function ol(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 to{constructor(e,{location:r=V.location,threshold:n=V.threshold,distance:i=V.distance,includeMatches:s=V.includeMatches,findAllMatches:o=V.findAllMatches,minMatchCharLength:l=V.minMatchCharLength,isCaseSensitive:c=V.isCaseSensitive,ignoreLocation:d=V.ignoreLocation}={}){if(this.options={location:r,threshold:n,distance:i,includeMatches:s,findAllMatches:o,minMatchCharLength:l,isCaseSensitive:c,ignoreLocation:d},this.pattern=c?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const p=(w,m)=>{this.chunks.push({pattern:w,alphabet:ol(w),startIndex:m})},y=this.pattern.length;if(y>Ut){let w=0;const m=y%Ut,_=y-m;for(;w<_;)p(this.pattern.substr(w,Ut),w),w+=Ut;if(m){const E=y-Ut;p(this.pattern.substr(E),E)}}else p(this.pattern,0)}searchIn(e){const{isCaseSensitive:r,includeMatches:n}=this.options;if(r||(e=e.toLowerCase()),this.pattern===e){let _={isMatch:!0,score:0};return n&&(_.indices=[[0,e.length-1]]),_}const{location:i,distance:s,threshold:o,findAllMatches:l,minMatchCharLength:c,ignoreLocation:d}=this.options;let p=[],y=0,w=!1;this.chunks.forEach(({pattern:_,alphabet:E,startIndex:z})=>{const{isMatch:H,score:X,indices:F}=sl(e,_,E,{location:i+z,distance:s,threshold:o,findAllMatches:l,minMatchCharLength:c,includeMatches:n,ignoreLocation:d});H&&(w=!0),y+=X,H&&F&&(p=[...p,...F])});let m={isMatch:w,score:w?y/this.chunks.length:1};return w&&n&&(m.indices=p),m}}class Et{constructor(e){this.pattern=e}static isMultiMatch(e){return ro(e,this.multiRegex)}static isSingleMatch(e){return ro(e,this.singleRegex)}search(){}}function ro(t,e){const r=t.match(e);return r?r[1]:null}class al extends Et{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 ll extends Et{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 cl extends Et{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 ul extends Et{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 dl extends Et{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 hl extends Et{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 no extends Et{constructor(e,{location:r=V.location,threshold:n=V.threshold,distance:i=V.distance,includeMatches:s=V.includeMatches,findAllMatches:o=V.findAllMatches,minMatchCharLength:l=V.minMatchCharLength,isCaseSensitive:c=V.isCaseSensitive,ignoreLocation:d=V.ignoreLocation}={}){super(e),this._bitapSearch=new to(e,{location:r,threshold:n,distance:i,includeMatches:s,findAllMatches:o,minMatchCharLength:l,isCaseSensitive:c,ignoreLocation:d})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class io extends Et{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=[],s=this.pattern.length;for(;(n=e.indexOf(this.pattern,r))>-1;)r=n+s,i.push([n,r-1]);const o=!!i.length;return{isMatch:o,score:o?0:1,indices:i}}}const vi=[al,io,cl,ul,hl,dl,ll,no],so=vi.length,fl=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,pl="|";function gl(t,e={}){return t.split(pl).map(r=>{let n=r.trim().split(fl).filter(s=>s&&!!s.trim()),i=[];for(let s=0,o=n.length;s<o;s+=1){const l=n[s];let c=!1,d=-1;for(;!c&&++d<so;){const p=vi[d];let y=p.isMultiMatch(l);y&&(i.push(new p(y,e)),c=!0)}if(!c)for(d=-1;++d<so;){const p=vi[d];let y=p.isSingleMatch(l);if(y){i.push(new p(y,e));break}}}return i})}const yl=new Set([no.type,io.type]);class bl{constructor(e,{isCaseSensitive:r=V.isCaseSensitive,includeMatches:n=V.includeMatches,minMatchCharLength:i=V.minMatchCharLength,ignoreLocation:s=V.ignoreLocation,findAllMatches:o=V.findAllMatches,location:l=V.location,threshold:c=V.threshold,distance:d=V.distance}={}){this.query=null,this.options={isCaseSensitive:r,includeMatches:n,minMatchCharLength:i,findAllMatches:o,ignoreLocation:s,location:l,threshold:c,distance:d},this.pattern=r?e:e.toLowerCase(),this.query=gl(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 s=0,o=[],l=0;for(let c=0,d=r.length;c<d;c+=1){const p=r[c];o.length=0,s=0;for(let y=0,w=p.length;y<w;y+=1){const m=p[y],{isMatch:_,indices:E,score:z}=m.search(e);if(_){if(s+=1,l+=z,n){const H=m.constructor.type;yl.has(H)?o=[...o,...E]:o.push(E)}}else{l=0,s=0,o.length=0;break}}if(s){let y={isMatch:!0,score:l/s};return n&&(y.indices=o),y}}return{isMatch:!1,score:1}}}const wi=[];function ml(...t){wi.push(...t)}function xi(t,e){for(let r=0,n=wi.length;r<n;r+=1){let i=wi[r];if(i.condition(t,e))return new i(t,e)}return new to(t,e)}const yn={AND:"$and",OR:"$or"},$i={PATH:"$path",PATTERN:"$val"},_i=t=>!!(t[yn.AND]||t[yn.OR]),vl=t=>!!t[$i.PATH],wl=t=>!mt(t)&&Fs(t)&&!_i(t),oo=t=>({[yn.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function ao(t,e,{auto:r=!0}={}){const n=i=>{let s=Object.keys(i);const o=vl(i);if(!o&&s.length>1&&!_i(i))return n(oo(i));if(wl(i)){const c=o?i[$i.PATH]:s[0],d=o?i[$i.PATTERN]:i[c];if(!ut(d))throw new Error(Fa(c));const p={keyId:bi(c),pattern:d};return r&&(p.searcher=xi(d,e)),p}let l={children:[],operator:s[0]};return s.forEach(c=>{const d=i[c];mt(d)&&d.forEach(p=>{l.children.push(n(p))})}),l};return _i(t)||(t=oo(t)),n(t)}function xl(t,{ignoreFieldNorm:e=V.ignoreFieldNorm}){t.forEach(r=>{let n=1;r.matches.forEach(({key:i,norm:s,score:o})=>{const l=i?i.weight:null;n*=Math.pow(o===0&&l?Number.EPSILON:o,(l||1)*(e?1:s))}),r.score=n})}function $l(t,e){const r=t.matches;e.matches=[],Je(r)&&r.forEach(n=>{if(!Je(n.indices)||!n.indices.length)return;const{indices:i,value:s}=n;let o={indices:i,value:s};n.key&&(o.key=n.key.src),n.idx>-1&&(o.refIndex=n.idx),e.matches.push(o)})}function _l(t,e){e.score=t.score}function Al(t,e,{includeMatches:r=V.includeMatches,includeScore:n=V.includeScore}={}){const i=[];return r&&i.push($l),n&&i.push(_l),t.map(s=>{const{idx:o}=s,l={item:e[o],refIndex:o};return i.length&&i.forEach(c=>{c(s,l)}),l})}class Ct{constructor(e,r={},n){this.options={...V,...r},this.options.useExtendedSearch,this._keyStore=new Qa(this.options.keys),this.setCollection(e,n)}setCollection(e,r){if(this._docs=e,r&&!(r instanceof mi))throw new Error(Ya);this._myIndex=r||eo(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){Je(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 s=this._docs[n];e(s,n)&&(this.removeAt(n),n-=1,i-=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:n,includeScore:i,shouldSort:s,sortFn:o,ignoreFieldNorm:l}=this.options;let c=ut(e)?ut(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return xl(c,{ignoreFieldNorm:l}),s&&c.sort(o),Ys(r)&&r>-1&&(c=c.slice(0,r)),Al(c,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(e){const r=xi(e,this.options),{records:n}=this._myIndex,i=[];return n.forEach(({v:s,i:o,n:l})=>{if(!Je(s))return;const{isMatch:c,score:d,indices:p}=r.searchIn(s);c&&i.push({item:s,idx:o,matches:[{score:d,value:s,norm:l,indices:p}]})}),i}_searchLogical(e){const r=ao(e,this.options),n=(l,c,d)=>{if(!l.children){const{keyId:y,searcher:w}=l,m=this._findMatches({key:this._keyStore.get(y),value:this._myIndex.getValueForItemAtKeyId(c,y),searcher:w});return m&&m.length?[{idx:d,item:c,matches:m}]:[]}const p=[];for(let y=0,w=l.children.length;y<w;y+=1){const m=l.children[y],_=n(m,c,d);if(_.length)p.push(..._);else if(l.operator===yn.AND)return[]}return p},i=this._myIndex.records,s={},o=[];return i.forEach(({$:l,i:c})=>{if(Je(l)){let d=n(r,l,c);d.length&&(s[c]||(s[c]={idx:c,item:l,matches:[]},o.push(s[c])),d.forEach(({matches:p})=>{s[c].matches.push(...p)}))}}),o}_searchObjectList(e){const r=xi(e,this.options),{keys:n,records:i}=this._myIndex,s=[];return i.forEach(({$:o,i:l})=>{if(!Je(o))return;let c=[];n.forEach((d,p)=>{c.push(...this._findMatches({key:d,value:o[p],searcher:r}))}),c.length&&s.push({idx:l,item:o,matches:c})}),s}_findMatches({key:e,value:r,searcher:n}){if(!Je(r))return[];let i=[];if(mt(r))r.forEach(({v:s,i:o,n:l})=>{if(!Je(s))return;const{isMatch:c,score:d,indices:p}=n.searchIn(s);c&&i.push({score:d,key:e,value:s,idx:o,norm:l,indices:p})});else{const{v:s,n:o}=r,{isMatch:l,score:c,indices:d}=n.searchIn(s);l&&i.push({score:c,key:e,value:s,norm:o,indices:d})}return i}}Ct.version="7.0.0",Ct.createIndex=eo,Ct.parseIndex=nl,Ct.config=V,Ct.parseQuery=ao,ml(bl);function lo(t,e){const r=new Ct(e.filterProperties,{keys:["title"]}),n=t.target.value,s=r.search(n).map(o=>o.item.key||o.item.keys.join("|"));Object.keys(e.filters).forEach(o=>{e.querySelector(`[data-details="${o}"]`).parentElement.style.display=s.includes(o)||!n?"":"none"})}function Ml(t,e){const r=t.target.getAttribute("data-close").replace("|","-");e.querySelector(`#filter-${r}`).reset(),e.dispatchEvent(new CustomEvent("filter")),e.requestUpdate()}const Ai=Math.min,lr=Math.max,bn=Math.round,mn=Math.floor,kt=t=>({x:t,y:t});function co(t){return t.split("-")[0]}function Sl(t){return t.split("-")[1]}function El(t){return t==="x"?"y":"x"}function Cl(t){return t==="y"?"height":"width"}function uo(t){return["top","bottom"].includes(co(t))?"y":"x"}function kl(t){return El(uo(t))}function ho(t){const{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}function fo(t,e,r){let{reference:n,floating:i}=t;const s=uo(e),o=kl(e),l=Cl(o),c=co(e),d=s==="y",p=n.x+n.width/2-i.width/2,y=n.y+n.height/2-i.height/2,w=n[l]/2-i[l]/2;let m;switch(c){case"top":m={x:p,y:n.y-i.height};break;case"bottom":m={x:p,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y};break;case"left":m={x:n.x-i.width,y};break;default:m={x:n.x,y:n.y}}switch(Sl(e)){case"start":m[o]-=w*(r&&d?-1:1);break;case"end":m[o]+=w*(r&&d?-1:1);break}return m}const Ll=async(t,e,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:o}=r,l=s.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(e));let d=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:p,y}=fo(d,n,c),w=n,m={},_=0;for(let E=0;E<l.length;E++){const{name:z,fn:H}=l[E],{x:X,y:F,data:he,reset:te}=await H({x:p,y,initialPlacement:n,placement:w,strategy:i,middlewareData:m,rects:d,platform:o,elements:{reference:t,floating:e}});p=X??p,y=F??y,m={...m,[z]:{...m[z],...he}},te&&_<=50&&(_++,typeof te=="object"&&(te.placement&&(w=te.placement),te.rects&&(d=te.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:i}):te.rects),{x:p,y}=fo(d,w,c)),E=-1)}return{x:p,y,placement:w,strategy:i,middlewareData:m}};function vn(){return typeof window<"u"}function cr(t){return po(t)?(t.nodeName||"").toLowerCase():"#document"}function Qe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function dt(t){var e;return(e=(po(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function po(t){return vn()?t instanceof Node||t instanceof Qe(t).Node:!1}function ot(t){return vn()?t instanceof Element||t instanceof Qe(t).Element:!1}function ht(t){return vn()?t instanceof HTMLElement||t instanceof Qe(t).HTMLElement:!1}function go(t){return!vn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Qe(t).ShadowRoot}function zr(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=at(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function Pl(t){return["table","td","th"].includes(cr(t))}function wn(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Mi(t){const e=Si(),r=ot(t)?at(t):t;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Tl(t){let e=Lt(t);for(;ht(e)&&!ur(e);){if(Mi(e))return e;if(wn(e))return null;e=Lt(e)}return null}function Si(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ur(t){return["html","body","#document"].includes(cr(t))}function at(t){return Qe(t).getComputedStyle(t)}function xn(t){return ot(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Lt(t){if(cr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||go(t)&&t.host||dt(t);return go(e)?e.host:e}function yo(t){const e=Lt(t);return ur(e)?t.ownerDocument?t.ownerDocument.body:t.body:ht(e)&&zr(e)?e:yo(e)}function qr(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const i=yo(t),s=i===((n=t.ownerDocument)==null?void 0:n.body),o=Qe(i);if(s){const l=Ei(o);return e.concat(o,o.visualViewport||[],zr(i)?i:[],l&&r?qr(l):[])}return e.concat(i,qr(i,[],r))}function Ei(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function bo(t){const e=at(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=ht(t),s=i?t.offsetWidth:r,o=i?t.offsetHeight:n,l=bn(r)!==s||bn(n)!==o;return l&&(r=s,n=o),{width:r,height:n,$:l}}function Ci(t){return ot(t)?t:t.contextElement}function dr(t){const e=Ci(t);if(!ht(e))return kt(1);const r=e.getBoundingClientRect(),{width:n,height:i,$:s}=bo(e);let o=(s?bn(r.width):r.width)/n,l=(s?bn(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const Ol=kt(0);function mo(t){const e=Qe(t);return!Si()||!e.visualViewport?Ol:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Rl(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Qe(t)?!1:e}function zt(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),s=Ci(t);let o=kt(1);e&&(n?ot(n)&&(o=dr(n)):o=dr(t));const l=Rl(s,r,n)?mo(s):kt(0);let c=(i.left+l.x)/o.x,d=(i.top+l.y)/o.y,p=i.width/o.x,y=i.height/o.y;if(s){const w=Qe(s),m=n&&ot(n)?Qe(n):n;let _=w,E=Ei(_);for(;E&&n&&m!==_;){const z=dr(E),H=E.getBoundingClientRect(),X=at(E),F=H.left+(E.clientLeft+parseFloat(X.paddingLeft))*z.x,he=H.top+(E.clientTop+parseFloat(X.paddingTop))*z.y;c*=z.x,d*=z.y,p*=z.x,y*=z.y,c+=F,d+=he,_=Qe(E),E=Ei(_)}}return ho({width:p,height:y,x:c,y:d})}function Dl(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t;const s=i==="fixed",o=dt(n),l=e?wn(e.floating):!1;if(n===o||l&&s)return r;let c={scrollLeft:0,scrollTop:0},d=kt(1);const p=kt(0),y=ht(n);if((y||!y&&!s)&&((cr(n)!=="body"||zr(o))&&(c=xn(n)),ht(n))){const w=zt(n);d=dr(n),p.x=w.x+n.clientLeft,p.y=w.y+n.clientTop}return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+p.x,y:r.y*d.y-c.scrollTop*d.y+p.y}}function jl(t){return Array.from(t.getClientRects())}function ki(t,e){const r=xn(t).scrollLeft;return e?e.left+r:zt(dt(t)).left+r}function Nl(t){const e=dt(t),r=xn(t),n=t.ownerDocument.body,i=lr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=lr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+ki(t);const l=-r.scrollTop;return at(n).direction==="rtl"&&(o+=lr(e.clientWidth,n.clientWidth)-i),{width:i,height:s,x:o,y:l}}function Hl(t,e){const r=Qe(t),n=dt(t),i=r.visualViewport;let s=n.clientWidth,o=n.clientHeight,l=0,c=0;if(i){s=i.width,o=i.height;const d=Si();(!d||d&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:o,x:l,y:c}}function Il(t,e){const r=zt(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,s=ht(t)?dr(t):kt(1),o=t.clientWidth*s.x,l=t.clientHeight*s.y,c=i*s.x,d=n*s.y;return{width:o,height:l,x:c,y:d}}function vo(t,e,r){let n;if(e==="viewport")n=Hl(t,r);else if(e==="document")n=Nl(dt(t));else if(ot(e))n=Il(e,r);else{const i=mo(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return ho(n)}function wo(t,e){const r=Lt(t);return r===e||!ot(r)||ur(r)?!1:at(r).position==="fixed"||wo(r,e)}function Bl(t,e){const r=e.get(t);if(r)return r;let n=qr(t,[],!1).filter(l=>ot(l)&&cr(l)!=="body"),i=null;const s=at(t).position==="fixed";let o=s?Lt(t):t;for(;ot(o)&&!ur(o);){const l=at(o),c=Mi(o);!c&&l.position==="fixed"&&(i=null),(s?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||zr(o)&&!c&&wo(t,o))?n=n.filter(p=>p!==o):i=l,o=Lt(o)}return e.set(t,n),n}function Ul(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const o=[...r==="clippingAncestors"?wn(e)?[]:Bl(e,this._c):[].concat(r),n],l=o[0],c=o.reduce((d,p)=>{const y=vo(e,p,i);return d.top=lr(y.top,d.top),d.right=Ai(y.right,d.right),d.bottom=Ai(y.bottom,d.bottom),d.left=lr(y.left,d.left),d},vo(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function zl(t){const{width:e,height:r}=bo(t);return{width:e,height:r}}function ql(t,e,r){const n=ht(e),i=dt(e),s=r==="fixed",o=zt(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=kt(0);if(n||!n&&!s)if((cr(e)!=="body"||zr(i))&&(l=xn(e)),n){const m=zt(e,!0,s,e);c.x=m.x+e.clientLeft,c.y=m.y+e.clientTop}else i&&(c.x=ki(i));let d=0,p=0;if(i&&!n&&!s){const m=i.getBoundingClientRect();p=m.top+l.scrollTop,d=m.left+l.scrollLeft-ki(i,m)}const y=o.left+l.scrollLeft-c.x-d,w=o.top+l.scrollTop-c.y-p;return{x:y,y:w,width:o.width,height:o.height}}function Li(t){return at(t).position==="static"}function xo(t,e){if(!ht(t)||at(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return dt(t)===r&&(r=r.ownerDocument.body),r}function $o(t,e){const r=Qe(t);if(wn(t))return r;if(!ht(t)){let i=Lt(t);for(;i&&!ur(i);){if(ot(i)&&!Li(i))return i;i=Lt(i)}return r}let n=xo(t,e);for(;n&&Pl(n)&&Li(n);)n=xo(n,e);return n&&ur(n)&&Li(n)&&!Mi(n)?r:n||Tl(t)||r}const Wl=async function(t){const e=this.getOffsetParent||$o,r=this.getDimensions,n=await r(t.floating);return{reference:ql(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Vl(t){return at(t).direction==="rtl"}const Kl={convertOffsetParentRelativeRectToViewportRelativeRect:Dl,getDocumentElement:dt,getClippingRect:Ul,getOffsetParent:$o,getElementRects:Wl,getClientRects:jl,getDimensions:zl,getScale:dr,isElement:ot,isRTL:Vl};function Gl(t,e){let r=null,n;const i=dt(t);function s(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function o(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const{left:d,top:p,width:y,height:w}=t.getBoundingClientRect();if(l||e(),!y||!w)return;const m=mn(p),_=mn(i.clientWidth-(d+y)),E=mn(i.clientHeight-(p+w)),z=mn(d),X={rootMargin:-m+"px "+-_+"px "+-E+"px "+-z+"px",threshold:lr(0,Ai(1,c))||1};let F=!0;function he(te){const Z=te[0].intersectionRatio;if(Z!==c){if(!F)return o();Z?o(!1,Z):n=setTimeout(()=>{o(!1,1e-7)},1e3)}F=!1}try{r=new IntersectionObserver(he,{...X,root:i.ownerDocument})}catch{r=new IntersectionObserver(he,X)}r.observe(t)}return o(!0),s}function Yl(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,d=Ci(t),p=i||s?[...d?qr(d):[],...qr(e)]:[];p.forEach(H=>{i&&H.addEventListener("scroll",r,{passive:!0}),s&&H.addEventListener("resize",r)});const y=d&&l?Gl(d,r):null;let w=-1,m=null;o&&(m=new ResizeObserver(H=>{let[X]=H;X&&X.target===d&&m&&(m.unobserve(e),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var F;(F=m)==null||F.observe(e)})),r()}),d&&!c&&m.observe(d),m.observe(e));let _,E=c?zt(t):null;c&&z();function z(){const H=zt(t);E&&(H.x!==E.x||H.y!==E.y||H.width!==E.width||H.height!==E.height)&&r(),E=H,_=requestAnimationFrame(z)}return r(),()=>{var H;p.forEach(X=>{i&&X.removeEventListener("scroll",r),s&&X.removeEventListener("resize",r)}),y==null||y(),(H=m)==null||H.disconnect(),m=null,c&&cancelAnimationFrame(_)}}const Fl=(t,e,r)=>{const n=new Map,i={platform:Kl,...r},s={...i.platform,_c:n};return Ll(t,e,{...i,platform:s})};function Xl(t){const e=t.renderRoot.querySelector(".inline-container-wrapper"),r=t.renderRoot.querySelector("[popover]");return Yl(e,r,()=>{r.matches(":popover-open")&&Fl(e,r,{strategy:"fixed"}).then(({x:i,y:s})=>{Object.assign(r.style,{left:`${i}px`,top:`${s}px`,width:`${e.getBoundingClientRect().width}px`})})},{animationFrame:!0})}function _o(t){t.renderRoot.querySelector("#eox-itemfilter-input-search").value="",lo({target:{value:""}},t)}function Zl(t,e){e.inlineMode&&t.stopPropagation()}function Jl(t){t.inlineMode&&(t.showDropdown=!0)}function Ql(t,e){e.inlineMode&&(t.stopPropagation(),e.showDropdown=!0)}function ec(t,e){e.inlineMode&&t.key==="Escape"&&e.showDropdown&&(_o(e),e.showDropdown=!1)}function tc(t,e){e.inlineMode&&t.target.tagName!=="DROPDOWN-FORM"&&t.target.tagName!=="EOX-ITEMFILTER"&&e.showDropdown&&(_o(e),e.showDropdown=!1)}function rc(t,e){var r=0,n=0,i=0,s=0,o=0,l=0,c=0,d=0,p=null,y=null,w=t[0],m=t[1],_=e.length;for(r;r<_;r++){n=0;var E=e[r].length-1,z=e[r];if(p=z[0],p[0]!==z[E][0]&&p[1]!==z[E][1])throw new Error("First and last coordinates in a ring must be the same");for(o=p[0]-w,l=p[1]-m,n;n<E;n++){if(y=z[n+1],d=y[1]-m,l<0&&d<0||l>0&&d>0){p=y,l=d,o=p[0]-w;continue}if(c=y[0]-t[0],d>0&&l<=0){if(s=o*d-c*l,s>0)i=i+1;else if(s===0)return 0}else if(l>0&&d<=0){if(s=o*d-c*l,s<0)i=i+1;else if(s===0)return 0}else if(d===0&&l<0){if(s=o*d-c*l,s===0)return 0}else if(l===0&&d<0){if(s=o*d-c*l,s===0)return 0}else if(l===0&&d===0){if(c<=0&&o>=0)return 0;if(o<=0&&c>=0)return 0}p=y,l=d,o=c}}return i%2!==0}function qt(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}function nc(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(!Ao(t[0])||!Ao(t[1]))throw new Error("coordinates must contain numbers");return qt({type:"Point",coordinates:t},e,r)}function ic(t,e,r={}){if(t.length<2)throw new Error("coordinates must be an array of two or more positions");return qt({type:"LineString",coordinates:t},e,r)}function Pi(t,e={}){const r={type:"FeatureCollection"};return e.id&&(r.id=e.id),e.bbox&&(r.bbox=e.bbox),r.features=t,r}function sc(t,e,r={}){return qt({type:"MultiLineString",coordinates:t},e,r)}function Ao(t){return!isNaN(t)&&t!==null&&!Array.isArray(t)}function Mo(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 oc(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 hr(t){return t.type==="Feature"?t.geometry:t}function nt(t,e,r={}){if(!t)throw new Error("point is required");if(!e)throw new Error("polygon is required");const n=Mo(t),i=hr(e),s=i.type,o=e.bbox;let l=i.coordinates;if(o&&ac(n,o)===!1)return!1;s==="Polygon"&&(l=[l]);let c=!1;for(var d=0;d<l.length;++d){const p=rc(n,l[d]);if(p===0)return!r.ignoreBoundary;p&&(c=!0)}return c}function ac(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}class So{constructor(e=[],r=lc){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 s=e-1>>1,o=r[s];if(n(i,o)>=0)break;r[e]=o,e=s}r[e]=i}_down(e){const{data:r,compare:n}=this,i=this.length>>1,s=r[e];for(;e<i;){let o=(e<<1)+1,l=r[o];const c=o+1;if(c<this.length&&n(r[c],l)<0&&(o=c,l=r[c]),n(l,s)>=0)break;r[e]=l,e=o}r[e]=s}}function lc(t,e){return t<e?-1:t>e?1:0}function Eo(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 cc(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 Co{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 uc(t,e){if(t.type==="FeatureCollection"){const r=t.features;for(let n=0;n<r.length;n++)ko(r[n],e)}else ko(t,e)}let $n=0,_n=0,An=0;function ko(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 s=0;s<n[i].length;s++){let o=n[i][s][0],l=null;_n=_n+1;for(let c=0;c<n[i][s].length-1;c++){l=n[i][s][c+1];const d=new Co(o,$n,_n,An),p=new Co(l,$n,_n,An+1);d.otherEvent=p,p.otherEvent=d,Eo(d,p)>0?(p.isLeftEndpoint=!0,d.isLeftEndpoint=!1):(d.isLeftEndpoint=!0,p.isLeftEndpoint=!1),e.push(d),e.push(p),o=l,An=An+1}}$n=$n+1}class dc{constructor(e){this.leftSweepEvent=e,this.rightSweepEvent=e.otherEvent}}function hc(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,s=t.rightSweepEvent.p.y,o=e.leftSweepEvent.p.x,l=e.leftSweepEvent.p.y,c=e.rightSweepEvent.p.x,d=e.rightSweepEvent.p.y,p=(d-l)*(i-r)-(c-o)*(s-n),y=(c-o)*(n-l)-(d-l)*(r-o),w=(i-r)*(n-l)-(s-n)*(r-o);if(p===0)return!1;const m=y/p,_=w/p;if(m>=0&&m<=1&&_>=0&&_<=1){const E=r+m*(i-r),z=n+m*(s-n);return[E,z]}return!1}function fc(t,e){e=e||!1;const r=[],n=new So([],cc);for(;t.length;){const i=t.pop();if(i.isLeftEndpoint){const s=new dc(i);for(let o=0;o<n.data.length;o++){const l=n.data[o];if(e&&l.leftSweepEvent.featureId===i.featureId)continue;const c=hc(s,l);c!==!1&&r.push(c)}n.push(s)}else i.isLeftEndpoint===!1&&n.pop()}return r}function pc(t,e){const r=new So([],Eo);return uc(t,r),fc(r,e)}var gc=pc;function Ti(t,e,r={}){const{removeDuplicates:n=!0,ignoreSelfIntersections:i=!1}=r;let s=[];t.type==="FeatureCollection"?s=s.concat(t.features):t.type==="Feature"?s.push(t):(t.type==="LineString"||t.type==="Polygon"||t.type==="MultiLineString"||t.type==="MultiPolygon")&&s.push(qt(t)),e.type==="FeatureCollection"?s=s.concat(e.features):e.type==="Feature"?s.push(e):(e.type==="LineString"||e.type==="Polygon"||e.type==="MultiLineString"||e.type==="MultiPolygon")&&s.push(qt(e));const o=gc(Pi(s),i);let l=[];if(n){const c={};o.forEach(d=>{const p=d.join(",");c[p]||(c[p]=!0,l.push(d))})}else l=o;return Pi(l.map(c=>nc(c)))}function Lo(t,e,r){if(t!==null)for(var n,i,s,o,l,c,d,p=0,y=0,w,m=t.type,_=m==="FeatureCollection",E=m==="Feature",z=_?t.features.length:1,H=0;H<z;H++){d=_?t.features[H].geometry:E?t.geometry:t,w=d?d.type==="GeometryCollection":!1,l=w?d.geometries.length:1;for(var X=0;X<l;X++){var F=0,he=0;if(o=w?d.geometries[X]:d,o!==null){c=o.coordinates;var te=o.type;switch(p=0,te){case null:break;case"Point":if(e(c,y,H,F,he)===!1)return!1;y++,F++;break;case"LineString":case"MultiPoint":for(n=0;n<c.length;n++){if(e(c[n],y,H,F,he)===!1)return!1;y++,te==="MultiPoint"&&F++}te==="LineString"&&F++;break;case"Polygon":case"MultiLineString":for(n=0;n<c.length;n++){for(i=0;i<c[n].length-p;i++){if(e(c[n][i],y,H,F,he)===!1)return!1;y++}te==="MultiLineString"&&F++,te==="Polygon"&&he++}te==="Polygon"&&F++;break;case"MultiPolygon":for(n=0;n<c.length;n++){for(he=0,i=0;i<c[n].length;i++){for(s=0;s<c[n][i].length-p;s++){if(e(c[n][i][s],y,H,F,he)===!1)return!1;y++}he++}F++}break;case"GeometryCollection":for(n=0;n<o.geometries.length;n++)if(Lo(o.geometries[n],e)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function yc(t,e){var r,n,i,s,o,l,c,d,p,y,w=0,m=t.type==="FeatureCollection",_=t.type==="Feature",E=m?t.features.length:1;for(r=0;r<E;r++){for(l=m?t.features[r].geometry:_?t.geometry:t,d=m?t.features[r].properties:_?t.properties:{},p=m?t.features[r].bbox:_?t.bbox:void 0,y=m?t.features[r].id:_?t.id:void 0,c=l?l.type==="GeometryCollection":!1,o=c?l.geometries.length:1,i=0;i<o;i++){if(s=c?l.geometries[i]:l,s===null){if(e(null,w,d,p,y)===!1)return!1;continue}switch(s.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(e(s,w,d,p,y)===!1)return!1;break}case"GeometryCollection":{for(n=0;n<s.geometries.length;n++)if(e(s.geometries[n],w,d,p,y)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}w++}}function Mn(t,e){yc(t,function(r,n,i,s,o){var l=r===null?null:r.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return e(qt(r,i,{bbox:s,id:o}),n,0)===!1?!1:void 0}var c;switch(l){case"MultiPoint":c="Point";break;case"MultiLineString":c="LineString";break;case"MultiPolygon":c="Polygon";break}for(var d=0;d<r.coordinates.length;d++){var p=r.coordinates[d],y={type:c,coordinates:p};if(e(qt(y,i),n,d)===!1)return!1}})}function Oi(t,e={}){const r=hr(t);switch(!e.properties&&t.type==="Feature"&&(e.properties=t.properties),r.type){case"Polygon":return bc(r,e);case"MultiPolygon":return mc(r,e);default:throw new Error("invalid poly")}}function bc(t,e={}){const n=hr(t).coordinates,i=e.properties?e.properties:t.type==="Feature"?t.properties:{};return Po(n,i)}function mc(t,e={}){const n=hr(t).coordinates,i=e.properties?e.properties:t.type==="Feature"?t.properties:{},s=[];return n.forEach(o=>{s.push(Po(o,i))}),Pi(s)}function Po(t,e){return t.length>1?sc(t,e):ic(t[0],e)}function vc(t,e,r={}){var n;const i=(n=r.ignoreSelfIntersections)!=null?n:!1;let s=!0;return Mn(t,o=>{Mn(e,l=>{if(s===!1)return!1;s=wc(o.geometry,l.geometry,i)})}),s}function wc(t,e,r){switch(t.type){case"Point":switch(e.type){case"Point":return!Ac(t.coordinates,e.coordinates);case"LineString":return!To(e,t);case"Polygon":return!nt(t,e)}break;case"LineString":switch(e.type){case"Point":return!To(t,e);case"LineString":return!xc(t,e,r);case"Polygon":return!Oo(e,t,r)}break;case"Polygon":switch(e.type){case"Point":return!nt(e,t);case"LineString":return!Oo(t,e,r);case"Polygon":return!$c(e,t,r)}}return!1}function To(t,e){for(let r=0;r<t.coordinates.length-1;r++)if(_c(t.coordinates[r],t.coordinates[r+1],e.coordinates))return!0;return!1}function xc(t,e,r){return Ti(t,e,{ignoreSelfIntersections:r}).features.length>0}function Oo(t,e,r){for(const i of e.coordinates)if(nt(i,t))return!0;return Ti(e,Oi(t),{ignoreSelfIntersections:r}).features.length>0}function $c(t,e,r){for(const i of t.coordinates[0])if(nt(i,e))return!0;for(const i of e.coordinates[0])if(nt(i,t))return!0;return Ti(Oi(t),Oi(e),{ignoreSelfIntersections:r}).features.length>0}function _c(t,e,r){const n=r[0]-t[0],i=r[1]-t[1],s=e[0]-t[0],o=e[1]-t[1];return n*o-i*s!==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 Ac(t,e){return t[0]===e[0]&&t[1]===e[1]}function Mc(t,e,r={}){var n;const i=(n=r.ignoreSelfIntersections)!=null?n:!1;let s=!1;return Mn(t,o=>{Mn(e,l=>{if(s===!0)return!0;s=!vc(o.geometry,l.geometry,{ignoreSelfIntersections:i})})}),s}var Sc=Mc;function Sn(t,e={}){if(t.bbox!=null&&e.recompute!==!0)return t.bbox;const r=[1/0,1/0,-1/0,-1/0];return Lo(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}function En(t,e,r={}){const n=Mo(t),i=oc(e);for(let s=0;s<i.length-1;s++){let o=!1;if(r.ignoreEndVertices&&(s===0&&(o="start"),s===i.length-2&&(o="end"),s===0&&s+1===i.length-1&&(o="both")),Ec(i[s],i[s+1],n,o,typeof r.epsilon>"u"?null:r.epsilon))return!0}return!1}function Ec(t,e,r,n,i){const s=r[0],o=r[1],l=t[0],c=t[1],d=e[0],p=e[1],y=r[0]-l,w=r[1]-c,m=d-l,_=p-c,E=y*_-w*m;if(i!==null){if(Math.abs(E)>i)return!1}else if(E!==0)return!1;if(n){if(n==="start")return Math.abs(m)>=Math.abs(_)?m>0?l<s&&s<=d:d<=s&&s<l:_>0?c<o&&o<=p:p<=o&&o<c;if(n==="end")return Math.abs(m)>=Math.abs(_)?m>0?l<=s&&s<d:d<s&&s<=l:_>0?c<=o&&o<p:p<o&&o<=c;if(n==="both")return Math.abs(m)>=Math.abs(_)?m>0?l<s&&s<d:d<s&&s<l:_>0?c<o&&o<p:p<o&&o<c}else return Math.abs(m)>=Math.abs(_)?m>0?l<=s&&s<=d:d<=s&&s<=l:_>0?c<=o&&o<=p:p<=o&&o<=c;return!1}function Cc(t,e){var r=hr(t),n=hr(e),i=r.type,s=n.type;switch(i){case"Point":switch(s){case"MultiPoint":return kc(r,n);case"LineString":return En(r,n,{ignoreEndVertices:!0});case"Polygon":case"MultiPolygon":return nt(r,n,{ignoreBoundary:!0});default:throw new Error("feature2 "+s+" geometry not supported")}case"MultiPoint":switch(s){case"MultiPoint":return Lc(r,n);case"LineString":return Pc(r,n);case"Polygon":case"MultiPolygon":return Tc(r,n);default:throw new Error("feature2 "+s+" geometry not supported")}case"LineString":switch(s){case"LineString":return Oc(r,n);case"Polygon":case"MultiPolygon":return Rc(r,n);default:throw new Error("feature2 "+s+" geometry not supported")}case"Polygon":switch(s){case"Polygon":case"MultiPolygon":return Dc(r,n);default:throw new Error("feature2 "+s+" geometry not supported")}default:throw new Error("feature1 "+i+" geometry not supported")}}function kc(t,e){var r,n=!1;for(r=0;r<e.coordinates.length;r++)if(Do(e.coordinates[r],t.coordinates)){n=!0;break}return n}function Lc(t,e){for(var r=0;r<t.coordinates.length;r++){for(var n=!1,i=0;i<e.coordinates.length;i++)Do(t.coordinates[r],e.coordinates[i])&&(n=!0);if(!n)return!1}return!0}function Pc(t,e){for(var r=!1,n=0;n<t.coordinates.length;n++){if(!En(t.coordinates[n],e))return!1;r||(r=En(t.coordinates[n],e,{ignoreEndVertices:!0}))}return r}function Tc(t,e){for(var r=!0,n=!1,i=0;i<t.coordinates.length;i++){if(n=nt(t.coordinates[i],e),!n){r=!1;break}n=nt(t.coordinates[i],e,{ignoreBoundary:!0})}return r&&n}function Oc(t,e){for(var r=0;r<t.coordinates.length;r++)if(!En(t.coordinates[r],e))return!1;return!0}function Rc(t,e){var r=Sn(e),n=Sn(t);if(!Ro(r,n))return!1;for(var i=!1,s=0;s<t.coordinates.length;s++){if(!nt(t.coordinates[s],e))return!1;if(i||(i=nt(t.coordinates[s],e,{ignoreBoundary:!0})),!i&&s<t.coordinates.length-1){var o=jc(t.coordinates[s],t.coordinates[s+1]);i=nt(o,e,{ignoreBoundary:!0})}}return i}function Dc(t,e){var r=Sn(t),n=Sn(e);if(!Ro(n,r))return!1;for(var i=0;i<t.coordinates[0].length;i++)if(!nt(t.coordinates[0][i],e))return!1;return!0}function Ro(t,e){return!(t[0]>e[0]||t[2]<e[2]||t[1]>e[1]||t[3]<e[3])}function Do(t,e){return t[0]===e[0]&&t[1]===e[1]}function jc(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2]}var Nc=Cc;const Hc=(t,e)=>e?Sc(t,e):!0,Ic=(t,e)=>e?Nc(t,e):!0;function Bc(t,e="highlight",r="title"){const n=(s,o,l)=>{const c=o.split(".");let d;for(d=0;d<c.length-1;d++)s=s[c[d]];s[c[d]]=l},i=(s,o=[])=>{let l="",c=0;return o.forEach(d=>{const p=d[1]+1;l+=[s.substring(c,d[0]),`<mark class="${e}">`,s.substring(d[0],p),"</mark>"].join(""),c=p}),l+=s.substring(c),l};return t.filter(({matches:s})=>s&&s.length).map(({item:s,matches:o})=>{const l={...s};return o.forEach(c=>{c.key===r&&n(l,c.key,i(c.value,c.indices))}),l})}var et=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var jo={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(et,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",l="minute",c="hour",d="day",p="week",y="month",w="quarter",m="year",_="date",E="Invalid Date",z=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,H=/\[([^\]]+)]|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,X={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var S=["th","st","nd","rd"],M=D%100;return"["+D+(S[(M-20)%10]||S[M]||S[0])+"]"}},F=function(D,S,M){var j=String(D);return!j||j.length>=S?D:""+Array(S+1-j.length).join(M)+D},he={s:F,z:function(D){var S=-D.utcOffset(),M=Math.abs(S),j=Math.floor(M/60),k=M%60;return(S<=0?"+":"-")+F(j,2,"0")+":"+F(k,2,"0")},m:function D(S,M){if(S.date()<M.date())return-D(M,S);var j=12*(M.year()-S.year())+(M.month()-S.month()),k=S.clone().add(j,y),K=M-k<0,G=S.clone().add(j+(K?-1:1),y);return+(-(j+(M-k)/(K?k-G:G-k))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:y,y:m,w:p,d,D:_,h:c,m:l,s:o,ms:s,Q:w}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},te="en",Z={};Z[te]=X;var fe="$isDayjsObject",Ae=function(D){return D instanceof Ge||!(!D||!D[fe])},Ce=function D(S,M,j){var k;if(!S)return te;if(typeof S=="string"){var K=S.toLowerCase();Z[K]&&(k=K),M&&(Z[K]=M,k=K);var G=S.split("-");if(!k&&G.length>1)return D(G[0])}else{var de=S.name;Z[de]=S,k=de}return!j&&k&&(te=k),k||!j&&te},ye=function(D,S){if(Ae(D))return D.clone();var M=typeof S=="object"?S:{};return M.date=D,M.args=arguments,new Ge(M)},ie=he;ie.l=Ce,ie.i=Ae,ie.w=function(D,S){return ye(D,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var Ge=function(){function D(M){this.$L=Ce(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[fe]=!0}var S=D.prototype;return S.parse=function(M){this.$d=function(j){var k=j.date,K=j.utc;if(k===null)return new Date(NaN);if(ie.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var G=k.match(z);if(G){var de=G[2]-1||0,$e=(G[7]||"0").substring(0,3);return K?new Date(Date.UTC(G[1],de,G[3]||1,G[4]||0,G[5]||0,G[6]||0,$e)):new Date(G[1],de,G[3]||1,G[4]||0,G[5]||0,G[6]||0,$e)}}return new Date(k)}(M),this.init()},S.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()},S.$utils=function(){return ie},S.isValid=function(){return this.$d.toString()!==E},S.isSame=function(M,j){var k=ye(M);return this.startOf(j)<=k&&k<=this.endOf(j)},S.isAfter=function(M,j){return ye(M)<this.startOf(j)},S.isBefore=function(M,j){return this.endOf(j)<ye(M)},S.$g=function(M,j,k){return ie.u(M)?this[j]:this.set(k,M)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(M,j){var k=this,K=!!ie.u(j)||j,G=ie.p(M),de=function(Te,re){var Oe=ie.w(k.$u?Date.UTC(k.$y,re,Te):new Date(k.$y,re,Te),k);return K?Oe:Oe.endOf(d)},$e=function(Te,re){return ie.w(k.toDate()[Te].apply(k.toDate("s"),(K?[0,0,0,0]:[23,59,59,999]).slice(re)),k)},Se=this.$W,ke=this.$M,Ie=this.$D,Pe="set"+(this.$u?"UTC":"");switch(G){case m:return K?de(1,0):de(31,11);case y:return K?de(1,ke):de(0,ke+1);case p:var Be=this.$locale().weekStart||0,se=(Se<Be?Se+7:Se)-Be;return de(K?Ie-se:Ie+(6-se),ke);case d:case _:return $e(Pe+"Hours",0);case c:return $e(Pe+"Minutes",1);case l:return $e(Pe+"Seconds",2);case o:return $e(Pe+"Milliseconds",3);default:return this.clone()}},S.endOf=function(M){return this.startOf(M,!1)},S.$set=function(M,j){var k,K=ie.p(M),G="set"+(this.$u?"UTC":""),de=(k={},k[d]=G+"Date",k[_]=G+"Date",k[y]=G+"Month",k[m]=G+"FullYear",k[c]=G+"Hours",k[l]=G+"Minutes",k[o]=G+"Seconds",k[s]=G+"Milliseconds",k)[K],$e=K===d?this.$D+(j-this.$W):j;if(K===y||K===m){var Se=this.clone().set(_,1);Se.$d[de]($e),Se.init(),this.$d=Se.set(_,Math.min(this.$D,Se.daysInMonth())).$d}else de&&this.$d[de]($e);return this.init(),this},S.set=function(M,j){return this.clone().$set(M,j)},S.get=function(M){return this[ie.p(M)]()},S.add=function(M,j){var k,K=this;M=Number(M);var G=ie.p(j),de=function(ke){var Ie=ye(K);return ie.w(Ie.date(Ie.date()+Math.round(ke*M)),K)};if(G===y)return this.set(y,this.$M+M);if(G===m)return this.set(m,this.$y+M);if(G===d)return de(1);if(G===p)return de(7);var $e=(k={},k[l]=n,k[c]=i,k[o]=r,k)[G]||1,Se=this.$d.getTime()+M*$e;return ie.w(Se,this)},S.subtract=function(M,j){return this.add(-1*M,j)},S.format=function(M){var j=this,k=this.$locale();if(!this.isValid())return k.invalidDate||E;var K=M||"YYYY-MM-DDTHH:mm:ssZ",G=ie.z(this),de=this.$H,$e=this.$m,Se=this.$M,ke=k.weekdays,Ie=k.months,Pe=k.meridiem,Be=function(re,Oe,ft,_e){return re&&(re[Oe]||re(j,K))||ft[Oe].slice(0,_e)},se=function(re){return ie.s(de%12||12,re,"0")},Te=Pe||function(re,Oe,ft){var _e=re<12?"AM":"PM";return ft?_e.toLowerCase():_e};return K.replace(H,function(re,Oe){return Oe||function(ft){switch(ft){case"YY":return String(j.$y).slice(-2);case"YYYY":return ie.s(j.$y,4,"0");case"M":return Se+1;case"MM":return ie.s(Se+1,2,"0");case"MMM":return Be(k.monthsShort,Se,Ie,3);case"MMMM":return Be(Ie,Se);case"D":return j.$D;case"DD":return ie.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return Be(k.weekdaysMin,j.$W,ke,2);case"ddd":return Be(k.weekdaysShort,j.$W,ke,3);case"dddd":return ke[j.$W];case"H":return String(de);case"HH":return ie.s(de,2,"0");case"h":return se(1);case"hh":return se(2);case"a":return Te(de,$e,!0);case"A":return Te(de,$e,!1);case"m":return String($e);case"mm":return ie.s($e,2,"0");case"s":return String(j.$s);case"ss":return ie.s(j.$s,2,"0");case"SSS":return ie.s(j.$ms,3,"0");case"Z":return G}return null}(re)||G.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(M,j,k){var K,G=this,de=ie.p(j),$e=ye(M),Se=($e.utcOffset()-this.utcOffset())*n,ke=this-$e,Ie=function(){return ie.m(G,$e)};switch(de){case m:K=Ie()/12;break;case y:K=Ie();break;case w:K=Ie()/3;break;case p:K=(ke-Se)/6048e5;break;case d:K=(ke-Se)/864e5;break;case c:K=ke/i;break;case l:K=ke/n;break;case o:K=ke/r;break;default:K=ke}return k?K:ie.a(K)},S.daysInMonth=function(){return this.endOf(y).$D},S.$locale=function(){return Z[this.$L]},S.locale=function(M,j){if(!M)return this.$L;var k=this.clone(),K=Ce(M,j,!0);return K&&(k.$L=K),k},S.clone=function(){return ie.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},D}(),Ft=Ge.prototype;return ye.prototype=Ft,[["$ms",s],["$s",o],["$m",l],["$H",c],["$W",d],["$M",y],["$y",m],["$D",_]].forEach(function(D){Ft[D[1]]=function(S){return this.$g(S,D[0],D[1])}}),ye.extend=function(D,S){return D.$i||(D(S,Ge,ye),D.$i=!0),ye},ye.locale=Ce,ye.isDayjs=Ae,ye.unix=function(D){return ye(1e3*D)},ye.en=Z[te],ye.Ls=Z,ye.p={},ye})})(jo);var Uc=jo.exports;const Wr=Cn(Uc);let No;const zc=(t,e)=>{No=new Ct(t,{threshold:.4,distance:50,includeMatches:!0,useExtendedSearch:!0,...e})},qc=async(t,e,r)=>{const n=Object.entries(e).filter(([,l])=>l.type==="text"||l.type==="select"||l.type==="multiselect").reduce((l,[c,d])=>{const p="$or",y=[],w=(m,_)=>{const E={};d.type==="text"?E[m]=`${_}`:E[c]=`="${m}"`,y.push(E)};return Object.entries(d.state).filter(([,m])=>m).forEach(([m,_])=>w(m,_)),y.length>0&&l.push({[p]:y}),l},[]);let i;if(!(n.length>0)&&r.matchAllWhenEmpty!==!1)i=t;else{const l={$and:[...n]},c=No.search(l);i=r.enableHighlighting?Bc(c,"highlight",r.titleProperty):c.map(d=>d.item)}const s=Object.entries(e).filter(([,l])=>l.type==="range").reduce((l,[c,d])=>(l[c]={min:d.state.min,max:d.state.max,format:d.format},l),{});if(Object.keys(s).length>0){const l=[];for(let c=0;c<i.length;c++){const d={};for(const[p,y]of Object.entries(s)){const w=_=>y.format==="date"?Wr(_).unix():_,m=Di(p,i[c]);m?Array.isArray(m)?d[p]=s[p].min<=w(m[1])&&w(m[0])<=s[p].max:w(m)>=s[p].min&&w(m)<=s[p].max?d[p]=!0:d[p]=!1:d[p]=!0}Object.values(d).every(p=>!!p)&&l.push(i[c])}i=[...l]}const o=Object.entries(e).filter(([,l])=>l.type==="spatial").reduce((l,[c,d])=>(l[c]={geometry:d.state.geometry,mode:d.state.mode},l),{});if(Object.values(o).map(l=>l.geometry).filter(l=>!!l).length>0){const l=[];for(let c=0;c<i.length;c++){const d={};for(const p of Object.keys(o)){const y=Di(p,i[c]),w=o[p].mode||"within";y&&(w==="within"?Ic(y,o[p].geometry):Hc(y,o[p].geometry))?d[p]=!0:d[p]=!1}Object.values(d).every(p=>!!p)&&l.push(i[c])}i=[...l]}return i};function Wc(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://tiles.maps.eox.at/wmts/1.0.0/osm_3857/default/g/{z}/{y}/{x}.jpg",attribution:"{ OSM: Data &copy; OpenStreetMap contributors and others, Rendering &copy; EOX }"}}]}function kn(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 Ho(t,e){return t*2+e}function Vc(t){return Object.keys(t).map(e=>({title:Y`${t[e].title}:
531
+ `}}Dn=new WeakSet,ua=function(r){this.dispatchEvent(new CustomEvent("details-toggled",{detail:r,bubbles:!0,composed:!0}))},customElements.define("eox-itemfilter-expandcontainer",za);function mt(t){return Array.isArray?Array.isArray(t):Xs(t)==="[object Array]"}const qa=1/0;function Wa(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-qa?"-0":e}function Va(t){return t==null?"":Wa(t)}function ut(t){return typeof t=="string"}function Ys(t){return typeof t=="number"}function Ka(t){return t===!0||t===!1||Ga(t)&&Xs(t)=="[object Boolean]"}function Fs(t){return typeof t=="object"}function Ga(t){return Fs(t)&&t!==null}function Je(t){return t!=null}function yi(t){return!t.trim().length}function Xs(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Fd="Extended search is not available",Ya="Incorrect 'index' type",Fa=t=>`Invalid value for key ${t}`,Xa=t=>`Pattern length exceeds max of ${t}.`,Za=t=>`Missing ${t} property in key`,Ja=t=>`Property 'weight' in key '${t}' must be a positive integer`,Zs=Object.prototype.hasOwnProperty;class Qa{constructor(e){this._keys=[],this._keyMap={};let r=0;e.forEach(n=>{let i=Js(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 Js(t){let e=null,r=null,n=null,i=1,s=null;if(ut(t)||mt(t))n=t,e=Qs(t),r=bi(t);else{if(!Zs.call(t,"name"))throw new Error(Za("name"));const o=t.name;if(n=o,Zs.call(t,"weight")&&(i=t.weight,i<=0))throw new Error(Ja(o));e=Qs(o),r=bi(o),s=t.getFn}return{path:e,id:r,weight:i,src:n,getFn:s}}function Qs(t){return mt(t)?t:t.split(".")}function bi(t){return mt(t)?t.join("."):t}function el(t,e){let r=[],n=!1;const i=(s,o,l)=>{if(Je(s))if(!o[l])r.push(s);else{let c=o[l];const d=s[c];if(!Je(d))return;if(l===o.length-1&&(ut(d)||Ys(d)||Ka(d)))r.push(Va(d));else if(mt(d)){n=!0;for(let p=0,y=d.length;p<y;p+=1)i(d[p],o,l+1)}else o.length&&i(d,o,l+1)}};return i(t,ut(e)?e.split("."):e,0),n?r:r[0]}var V={...{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:el,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const tl=/[^ ]+/g;function rl(t=1,e=3){const r=new Map,n=Math.pow(10,e);return{get(i){const s=i.match(tl).length;if(r.has(s))return r.get(s);const o=1/Math.pow(s,.5*t),l=parseFloat(Math.round(o*n)/n);return r.set(s,l),l},clear(){r.clear()}}}class mi{constructor({getFn:e=V.getFn,fieldNormWeight:r=V.fieldNormWeight}={}){this.norm=rl(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,ut(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();ut(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(!Je(e)||yi(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,s)=>{let o=i.getFn?i.getFn(e):this.getFn(e,i.path);if(Je(o)){if(mt(o)){let l=[];const c=[{nestedArrIndex:-1,value:o}];for(;c.length;){const{nestedArrIndex:d,value:p}=c.pop();if(Je(p))if(ut(p)&&!yi(p)){let y={v:p,i:d,n:this.norm.get(p)};l.push(y)}else mt(p)&&p.forEach((y,w)=>{c.push({nestedArrIndex:w,value:y})})}n.$[s]=l}else if(ut(o)&&!yi(o)){let l={v:o,n:this.norm.get(o)};n.$[s]=l}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function eo(t,e,{getFn:r=V.getFn,fieldNormWeight:n=V.fieldNormWeight}={}){const i=new mi({getFn:r,fieldNormWeight:n});return i.setKeys(t.map(Js)),i.setSources(e),i.create(),i}function nl(t,{getFn:e=V.getFn,fieldNormWeight:r=V.fieldNormWeight}={}){const{keys:n,records:i}=t,s=new mi({getFn:e,fieldNormWeight:r});return s.setKeys(n),s.setIndexRecords(i),s}function gn(t,{errors:e=0,currentLocation:r=0,expectedLocation:n=0,distance:i=V.distance,ignoreLocation:s=V.ignoreLocation}={}){const o=e/t.length;if(s)return o;const l=Math.abs(n-r);return i?o+l/i:l?1:o}function il(t=[],e=V.minMatchCharLength){let r=[],n=-1,i=-1,s=0;for(let o=t.length;s<o;s+=1){let l=t[s];l&&n===-1?n=s:!l&&n!==-1&&(i=s-1,i-n+1>=e&&r.push([n,i]),n=-1)}return t[s-1]&&s-n>=e&&r.push([n,s-1]),r}const Ut=32;function sl(t,e,r,{location:n=V.location,distance:i=V.distance,threshold:s=V.threshold,findAllMatches:o=V.findAllMatches,minMatchCharLength:l=V.minMatchCharLength,includeMatches:c=V.includeMatches,ignoreLocation:d=V.ignoreLocation}={}){if(e.length>Ut)throw new Error(Xa(Ut));const p=e.length,y=t.length,w=Math.max(0,Math.min(n,y));let m=s,_=w;const E=l>1||c,z=E?Array(y):[];let H;for(;(H=t.indexOf(e,_))>-1;){let fe=gn(e,{currentLocation:H,expectedLocation:w,distance:i,ignoreLocation:d});if(m=Math.min(fe,m),_=H+p,E){let Ae=0;for(;Ae<p;)z[H+Ae]=1,Ae+=1}}_=-1;let X=[],F=1,he=p+y;const te=1<<p-1;for(let fe=0;fe<p;fe+=1){let Ae=0,Ce=he;for(;Ae<Ce;)gn(e,{errors:fe,currentLocation:w+Ce,expectedLocation:w,distance:i,ignoreLocation:d})<=m?Ae=Ce:he=Ce,Ce=Math.floor((he-Ae)/2+Ae);he=Ce;let ye=Math.max(1,w-Ce+1),ie=o?y:Math.min(w+Ce,y)+p,Ge=Array(ie+2);Ge[ie+1]=(1<<fe)-1;for(let D=ie;D>=ye;D-=1){let S=D-1,M=r[t.charAt(S)];if(E&&(z[S]=+!!M),Ge[D]=(Ge[D+1]<<1|1)&M,fe&&(Ge[D]|=(X[D+1]|X[D])<<1|1|X[D+1]),Ge[D]&te&&(F=gn(e,{errors:fe,currentLocation:S,expectedLocation:w,distance:i,ignoreLocation:d}),F<=m)){if(m=F,_=S,_<=w)break;ye=Math.max(1,2*w-_)}}if(gn(e,{errors:fe+1,currentLocation:w,expectedLocation:w,distance:i,ignoreLocation:d})>m)break;X=Ge}const Z={isMatch:_>=0,score:Math.max(.001,F)};if(E){const fe=il(z,l);fe.length?c&&(Z.indices=fe):Z.isMatch=!1}return Z}function ol(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 to{constructor(e,{location:r=V.location,threshold:n=V.threshold,distance:i=V.distance,includeMatches:s=V.includeMatches,findAllMatches:o=V.findAllMatches,minMatchCharLength:l=V.minMatchCharLength,isCaseSensitive:c=V.isCaseSensitive,ignoreLocation:d=V.ignoreLocation}={}){if(this.options={location:r,threshold:n,distance:i,includeMatches:s,findAllMatches:o,minMatchCharLength:l,isCaseSensitive:c,ignoreLocation:d},this.pattern=c?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const p=(w,m)=>{this.chunks.push({pattern:w,alphabet:ol(w),startIndex:m})},y=this.pattern.length;if(y>Ut){let w=0;const m=y%Ut,_=y-m;for(;w<_;)p(this.pattern.substr(w,Ut),w),w+=Ut;if(m){const E=y-Ut;p(this.pattern.substr(E),E)}}else p(this.pattern,0)}searchIn(e){const{isCaseSensitive:r,includeMatches:n}=this.options;if(r||(e=e.toLowerCase()),this.pattern===e){let _={isMatch:!0,score:0};return n&&(_.indices=[[0,e.length-1]]),_}const{location:i,distance:s,threshold:o,findAllMatches:l,minMatchCharLength:c,ignoreLocation:d}=this.options;let p=[],y=0,w=!1;this.chunks.forEach(({pattern:_,alphabet:E,startIndex:z})=>{const{isMatch:H,score:X,indices:F}=sl(e,_,E,{location:i+z,distance:s,threshold:o,findAllMatches:l,minMatchCharLength:c,includeMatches:n,ignoreLocation:d});H&&(w=!0),y+=X,H&&F&&(p=[...p,...F])});let m={isMatch:w,score:w?y/this.chunks.length:1};return w&&n&&(m.indices=p),m}}class Et{constructor(e){this.pattern=e}static isMultiMatch(e){return ro(e,this.multiRegex)}static isSingleMatch(e){return ro(e,this.singleRegex)}search(){}}function ro(t,e){const r=t.match(e);return r?r[1]:null}class al extends Et{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 ll extends Et{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 cl extends Et{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 ul extends Et{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 dl extends Et{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 hl extends Et{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 no extends Et{constructor(e,{location:r=V.location,threshold:n=V.threshold,distance:i=V.distance,includeMatches:s=V.includeMatches,findAllMatches:o=V.findAllMatches,minMatchCharLength:l=V.minMatchCharLength,isCaseSensitive:c=V.isCaseSensitive,ignoreLocation:d=V.ignoreLocation}={}){super(e),this._bitapSearch=new to(e,{location:r,threshold:n,distance:i,includeMatches:s,findAllMatches:o,minMatchCharLength:l,isCaseSensitive:c,ignoreLocation:d})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class io extends Et{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=[],s=this.pattern.length;for(;(n=e.indexOf(this.pattern,r))>-1;)r=n+s,i.push([n,r-1]);const o=!!i.length;return{isMatch:o,score:o?0:1,indices:i}}}const vi=[al,io,cl,ul,hl,dl,ll,no],so=vi.length,fl=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,pl="|";function gl(t,e={}){return t.split(pl).map(r=>{let n=r.trim().split(fl).filter(s=>s&&!!s.trim()),i=[];for(let s=0,o=n.length;s<o;s+=1){const l=n[s];let c=!1,d=-1;for(;!c&&++d<so;){const p=vi[d];let y=p.isMultiMatch(l);y&&(i.push(new p(y,e)),c=!0)}if(!c)for(d=-1;++d<so;){const p=vi[d];let y=p.isSingleMatch(l);if(y){i.push(new p(y,e));break}}}return i})}const yl=new Set([no.type,io.type]);class bl{constructor(e,{isCaseSensitive:r=V.isCaseSensitive,includeMatches:n=V.includeMatches,minMatchCharLength:i=V.minMatchCharLength,ignoreLocation:s=V.ignoreLocation,findAllMatches:o=V.findAllMatches,location:l=V.location,threshold:c=V.threshold,distance:d=V.distance}={}){this.query=null,this.options={isCaseSensitive:r,includeMatches:n,minMatchCharLength:i,findAllMatches:o,ignoreLocation:s,location:l,threshold:c,distance:d},this.pattern=r?e:e.toLowerCase(),this.query=gl(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 s=0,o=[],l=0;for(let c=0,d=r.length;c<d;c+=1){const p=r[c];o.length=0,s=0;for(let y=0,w=p.length;y<w;y+=1){const m=p[y],{isMatch:_,indices:E,score:z}=m.search(e);if(_){if(s+=1,l+=z,n){const H=m.constructor.type;yl.has(H)?o=[...o,...E]:o.push(E)}}else{l=0,s=0,o.length=0;break}}if(s){let y={isMatch:!0,score:l/s};return n&&(y.indices=o),y}}return{isMatch:!1,score:1}}}const wi=[];function ml(...t){wi.push(...t)}function xi(t,e){for(let r=0,n=wi.length;r<n;r+=1){let i=wi[r];if(i.condition(t,e))return new i(t,e)}return new to(t,e)}const yn={AND:"$and",OR:"$or"},$i={PATH:"$path",PATTERN:"$val"},_i=t=>!!(t[yn.AND]||t[yn.OR]),vl=t=>!!t[$i.PATH],wl=t=>!mt(t)&&Fs(t)&&!_i(t),oo=t=>({[yn.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function ao(t,e,{auto:r=!0}={}){const n=i=>{let s=Object.keys(i);const o=vl(i);if(!o&&s.length>1&&!_i(i))return n(oo(i));if(wl(i)){const c=o?i[$i.PATH]:s[0],d=o?i[$i.PATTERN]:i[c];if(!ut(d))throw new Error(Fa(c));const p={keyId:bi(c),pattern:d};return r&&(p.searcher=xi(d,e)),p}let l={children:[],operator:s[0]};return s.forEach(c=>{const d=i[c];mt(d)&&d.forEach(p=>{l.children.push(n(p))})}),l};return _i(t)||(t=oo(t)),n(t)}function xl(t,{ignoreFieldNorm:e=V.ignoreFieldNorm}){t.forEach(r=>{let n=1;r.matches.forEach(({key:i,norm:s,score:o})=>{const l=i?i.weight:null;n*=Math.pow(o===0&&l?Number.EPSILON:o,(l||1)*(e?1:s))}),r.score=n})}function $l(t,e){const r=t.matches;e.matches=[],Je(r)&&r.forEach(n=>{if(!Je(n.indices)||!n.indices.length)return;const{indices:i,value:s}=n;let o={indices:i,value:s};n.key&&(o.key=n.key.src),n.idx>-1&&(o.refIndex=n.idx),e.matches.push(o)})}function _l(t,e){e.score=t.score}function Al(t,e,{includeMatches:r=V.includeMatches,includeScore:n=V.includeScore}={}){const i=[];return r&&i.push($l),n&&i.push(_l),t.map(s=>{const{idx:o}=s,l={item:e[o],refIndex:o};return i.length&&i.forEach(c=>{c(s,l)}),l})}class Ct{constructor(e,r={},n){this.options={...V,...r},this.options.useExtendedSearch,this._keyStore=new Qa(this.options.keys),this.setCollection(e,n)}setCollection(e,r){if(this._docs=e,r&&!(r instanceof mi))throw new Error(Ya);this._myIndex=r||eo(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){Je(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 s=this._docs[n];e(s,n)&&(this.removeAt(n),n-=1,i-=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:n,includeScore:i,shouldSort:s,sortFn:o,ignoreFieldNorm:l}=this.options;let c=ut(e)?ut(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return xl(c,{ignoreFieldNorm:l}),s&&c.sort(o),Ys(r)&&r>-1&&(c=c.slice(0,r)),Al(c,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(e){const r=xi(e,this.options),{records:n}=this._myIndex,i=[];return n.forEach(({v:s,i:o,n:l})=>{if(!Je(s))return;const{isMatch:c,score:d,indices:p}=r.searchIn(s);c&&i.push({item:s,idx:o,matches:[{score:d,value:s,norm:l,indices:p}]})}),i}_searchLogical(e){const r=ao(e,this.options),n=(l,c,d)=>{if(!l.children){const{keyId:y,searcher:w}=l,m=this._findMatches({key:this._keyStore.get(y),value:this._myIndex.getValueForItemAtKeyId(c,y),searcher:w});return m&&m.length?[{idx:d,item:c,matches:m}]:[]}const p=[];for(let y=0,w=l.children.length;y<w;y+=1){const m=l.children[y],_=n(m,c,d);if(_.length)p.push(..._);else if(l.operator===yn.AND)return[]}return p},i=this._myIndex.records,s={},o=[];return i.forEach(({$:l,i:c})=>{if(Je(l)){let d=n(r,l,c);d.length&&(s[c]||(s[c]={idx:c,item:l,matches:[]},o.push(s[c])),d.forEach(({matches:p})=>{s[c].matches.push(...p)}))}}),o}_searchObjectList(e){const r=xi(e,this.options),{keys:n,records:i}=this._myIndex,s=[];return i.forEach(({$:o,i:l})=>{if(!Je(o))return;let c=[];n.forEach((d,p)=>{c.push(...this._findMatches({key:d,value:o[p],searcher:r}))}),c.length&&s.push({idx:l,item:o,matches:c})}),s}_findMatches({key:e,value:r,searcher:n}){if(!Je(r))return[];let i=[];if(mt(r))r.forEach(({v:s,i:o,n:l})=>{if(!Je(s))return;const{isMatch:c,score:d,indices:p}=n.searchIn(s);c&&i.push({score:d,key:e,value:s,idx:o,norm:l,indices:p})});else{const{v:s,n:o}=r,{isMatch:l,score:c,indices:d}=n.searchIn(s);l&&i.push({score:c,key:e,value:s,norm:o,indices:d})}return i}}Ct.version="7.0.0",Ct.createIndex=eo,Ct.parseIndex=nl,Ct.config=V,Ct.parseQuery=ao,ml(bl);function lo(t,e){const r=new Ct(e.filterProperties,{keys:["title"]}),n=t.target.value,s=r.search(n).map(o=>o.item.key||o.item.keys.join("|"));Object.keys(e.filters).forEach(o=>{e.querySelector(`[data-details="${o}"]`).parentElement.style.display=s.includes(o)||!n?"":"none"})}function Ml(t,e){const r=t.target.getAttribute("data-close").replace("|","-");e.querySelector(`#filter-${r}`).reset(),e.dispatchEvent(new CustomEvent("filter")),e.requestUpdate()}const Ai=Math.min,lr=Math.max,bn=Math.round,mn=Math.floor,kt=t=>({x:t,y:t});function co(t){return t.split("-")[0]}function Sl(t){return t.split("-")[1]}function El(t){return t==="x"?"y":"x"}function Cl(t){return t==="y"?"height":"width"}function uo(t){return["top","bottom"].includes(co(t))?"y":"x"}function kl(t){return El(uo(t))}function ho(t){const{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}function fo(t,e,r){let{reference:n,floating:i}=t;const s=uo(e),o=kl(e),l=Cl(o),c=co(e),d=s==="y",p=n.x+n.width/2-i.width/2,y=n.y+n.height/2-i.height/2,w=n[l]/2-i[l]/2;let m;switch(c){case"top":m={x:p,y:n.y-i.height};break;case"bottom":m={x:p,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y};break;case"left":m={x:n.x-i.width,y};break;default:m={x:n.x,y:n.y}}switch(Sl(e)){case"start":m[o]-=w*(r&&d?-1:1);break;case"end":m[o]+=w*(r&&d?-1:1);break}return m}const Ll=async(t,e,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:o}=r,l=s.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(e));let d=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:p,y}=fo(d,n,c),w=n,m={},_=0;for(let E=0;E<l.length;E++){const{name:z,fn:H}=l[E],{x:X,y:F,data:he,reset:te}=await H({x:p,y,initialPlacement:n,placement:w,strategy:i,middlewareData:m,rects:d,platform:o,elements:{reference:t,floating:e}});p=X??p,y=F??y,m={...m,[z]:{...m[z],...he}},te&&_<=50&&(_++,typeof te=="object"&&(te.placement&&(w=te.placement),te.rects&&(d=te.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:i}):te.rects),{x:p,y}=fo(d,w,c)),E=-1)}return{x:p,y,placement:w,strategy:i,middlewareData:m}};function vn(){return typeof window<"u"}function cr(t){return po(t)?(t.nodeName||"").toLowerCase():"#document"}function Qe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function dt(t){var e;return(e=(po(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function po(t){return vn()?t instanceof Node||t instanceof Qe(t).Node:!1}function ot(t){return vn()?t instanceof Element||t instanceof Qe(t).Element:!1}function ht(t){return vn()?t instanceof HTMLElement||t instanceof Qe(t).HTMLElement:!1}function go(t){return!vn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Qe(t).ShadowRoot}function zr(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=at(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function Pl(t){return["table","td","th"].includes(cr(t))}function wn(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Mi(t){const e=Si(),r=ot(t)?at(t):t;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Tl(t){let e=Lt(t);for(;ht(e)&&!ur(e);){if(Mi(e))return e;if(wn(e))return null;e=Lt(e)}return null}function Si(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ur(t){return["html","body","#document"].includes(cr(t))}function at(t){return Qe(t).getComputedStyle(t)}function xn(t){return ot(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Lt(t){if(cr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||go(t)&&t.host||dt(t);return go(e)?e.host:e}function yo(t){const e=Lt(t);return ur(e)?t.ownerDocument?t.ownerDocument.body:t.body:ht(e)&&zr(e)?e:yo(e)}function qr(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const i=yo(t),s=i===((n=t.ownerDocument)==null?void 0:n.body),o=Qe(i);if(s){const l=Ei(o);return e.concat(o,o.visualViewport||[],zr(i)?i:[],l&&r?qr(l):[])}return e.concat(i,qr(i,[],r))}function Ei(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function bo(t){const e=at(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=ht(t),s=i?t.offsetWidth:r,o=i?t.offsetHeight:n,l=bn(r)!==s||bn(n)!==o;return l&&(r=s,n=o),{width:r,height:n,$:l}}function Ci(t){return ot(t)?t:t.contextElement}function dr(t){const e=Ci(t);if(!ht(e))return kt(1);const r=e.getBoundingClientRect(),{width:n,height:i,$:s}=bo(e);let o=(s?bn(r.width):r.width)/n,l=(s?bn(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const Ol=kt(0);function mo(t){const e=Qe(t);return!Si()||!e.visualViewport?Ol:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Rl(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Qe(t)?!1:e}function zt(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),s=Ci(t);let o=kt(1);e&&(n?ot(n)&&(o=dr(n)):o=dr(t));const l=Rl(s,r,n)?mo(s):kt(0);let c=(i.left+l.x)/o.x,d=(i.top+l.y)/o.y,p=i.width/o.x,y=i.height/o.y;if(s){const w=Qe(s),m=n&&ot(n)?Qe(n):n;let _=w,E=Ei(_);for(;E&&n&&m!==_;){const z=dr(E),H=E.getBoundingClientRect(),X=at(E),F=H.left+(E.clientLeft+parseFloat(X.paddingLeft))*z.x,he=H.top+(E.clientTop+parseFloat(X.paddingTop))*z.y;c*=z.x,d*=z.y,p*=z.x,y*=z.y,c+=F,d+=he,_=Qe(E),E=Ei(_)}}return ho({width:p,height:y,x:c,y:d})}function Dl(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t;const s=i==="fixed",o=dt(n),l=e?wn(e.floating):!1;if(n===o||l&&s)return r;let c={scrollLeft:0,scrollTop:0},d=kt(1);const p=kt(0),y=ht(n);if((y||!y&&!s)&&((cr(n)!=="body"||zr(o))&&(c=xn(n)),ht(n))){const w=zt(n);d=dr(n),p.x=w.x+n.clientLeft,p.y=w.y+n.clientTop}return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+p.x,y:r.y*d.y-c.scrollTop*d.y+p.y}}function jl(t){return Array.from(t.getClientRects())}function ki(t,e){const r=xn(t).scrollLeft;return e?e.left+r:zt(dt(t)).left+r}function Nl(t){const e=dt(t),r=xn(t),n=t.ownerDocument.body,i=lr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=lr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+ki(t);const l=-r.scrollTop;return at(n).direction==="rtl"&&(o+=lr(e.clientWidth,n.clientWidth)-i),{width:i,height:s,x:o,y:l}}function Hl(t,e){const r=Qe(t),n=dt(t),i=r.visualViewport;let s=n.clientWidth,o=n.clientHeight,l=0,c=0;if(i){s=i.width,o=i.height;const d=Si();(!d||d&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:o,x:l,y:c}}function Il(t,e){const r=zt(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,s=ht(t)?dr(t):kt(1),o=t.clientWidth*s.x,l=t.clientHeight*s.y,c=i*s.x,d=n*s.y;return{width:o,height:l,x:c,y:d}}function vo(t,e,r){let n;if(e==="viewport")n=Hl(t,r);else if(e==="document")n=Nl(dt(t));else if(ot(e))n=Il(e,r);else{const i=mo(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return ho(n)}function wo(t,e){const r=Lt(t);return r===e||!ot(r)||ur(r)?!1:at(r).position==="fixed"||wo(r,e)}function Bl(t,e){const r=e.get(t);if(r)return r;let n=qr(t,[],!1).filter(l=>ot(l)&&cr(l)!=="body"),i=null;const s=at(t).position==="fixed";let o=s?Lt(t):t;for(;ot(o)&&!ur(o);){const l=at(o),c=Mi(o);!c&&l.position==="fixed"&&(i=null),(s?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||zr(o)&&!c&&wo(t,o))?n=n.filter(p=>p!==o):i=l,o=Lt(o)}return e.set(t,n),n}function Ul(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const o=[...r==="clippingAncestors"?wn(e)?[]:Bl(e,this._c):[].concat(r),n],l=o[0],c=o.reduce((d,p)=>{const y=vo(e,p,i);return d.top=lr(y.top,d.top),d.right=Ai(y.right,d.right),d.bottom=Ai(y.bottom,d.bottom),d.left=lr(y.left,d.left),d},vo(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function zl(t){const{width:e,height:r}=bo(t);return{width:e,height:r}}function ql(t,e,r){const n=ht(e),i=dt(e),s=r==="fixed",o=zt(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=kt(0);if(n||!n&&!s)if((cr(e)!=="body"||zr(i))&&(l=xn(e)),n){const m=zt(e,!0,s,e);c.x=m.x+e.clientLeft,c.y=m.y+e.clientTop}else i&&(c.x=ki(i));let d=0,p=0;if(i&&!n&&!s){const m=i.getBoundingClientRect();p=m.top+l.scrollTop,d=m.left+l.scrollLeft-ki(i,m)}const y=o.left+l.scrollLeft-c.x-d,w=o.top+l.scrollTop-c.y-p;return{x:y,y:w,width:o.width,height:o.height}}function Li(t){return at(t).position==="static"}function xo(t,e){if(!ht(t)||at(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return dt(t)===r&&(r=r.ownerDocument.body),r}function $o(t,e){const r=Qe(t);if(wn(t))return r;if(!ht(t)){let i=Lt(t);for(;i&&!ur(i);){if(ot(i)&&!Li(i))return i;i=Lt(i)}return r}let n=xo(t,e);for(;n&&Pl(n)&&Li(n);)n=xo(n,e);return n&&ur(n)&&Li(n)&&!Mi(n)?r:n||Tl(t)||r}const Wl=async function(t){const e=this.getOffsetParent||$o,r=this.getDimensions,n=await r(t.floating);return{reference:ql(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Vl(t){return at(t).direction==="rtl"}const Kl={convertOffsetParentRelativeRectToViewportRelativeRect:Dl,getDocumentElement:dt,getClippingRect:Ul,getOffsetParent:$o,getElementRects:Wl,getClientRects:jl,getDimensions:zl,getScale:dr,isElement:ot,isRTL:Vl};function Gl(t,e){let r=null,n;const i=dt(t);function s(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function o(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const{left:d,top:p,width:y,height:w}=t.getBoundingClientRect();if(l||e(),!y||!w)return;const m=mn(p),_=mn(i.clientWidth-(d+y)),E=mn(i.clientHeight-(p+w)),z=mn(d),X={rootMargin:-m+"px "+-_+"px "+-E+"px "+-z+"px",threshold:lr(0,Ai(1,c))||1};let F=!0;function he(te){const Z=te[0].intersectionRatio;if(Z!==c){if(!F)return o();Z?o(!1,Z):n=setTimeout(()=>{o(!1,1e-7)},1e3)}F=!1}try{r=new IntersectionObserver(he,{...X,root:i.ownerDocument})}catch{r=new IntersectionObserver(he,X)}r.observe(t)}return o(!0),s}function Yl(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,d=Ci(t),p=i||s?[...d?qr(d):[],...qr(e)]:[];p.forEach(H=>{i&&H.addEventListener("scroll",r,{passive:!0}),s&&H.addEventListener("resize",r)});const y=d&&l?Gl(d,r):null;let w=-1,m=null;o&&(m=new ResizeObserver(H=>{let[X]=H;X&&X.target===d&&m&&(m.unobserve(e),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var F;(F=m)==null||F.observe(e)})),r()}),d&&!c&&m.observe(d),m.observe(e));let _,E=c?zt(t):null;c&&z();function z(){const H=zt(t);E&&(H.x!==E.x||H.y!==E.y||H.width!==E.width||H.height!==E.height)&&r(),E=H,_=requestAnimationFrame(z)}return r(),()=>{var H;p.forEach(X=>{i&&X.removeEventListener("scroll",r),s&&X.removeEventListener("resize",r)}),y==null||y(),(H=m)==null||H.disconnect(),m=null,c&&cancelAnimationFrame(_)}}const Fl=(t,e,r)=>{const n=new Map,i={platform:Kl,...r},s={...i.platform,_c:n};return Ll(t,e,{...i,platform:s})};function Xl(t){const e=t.renderRoot.querySelector(".inline-container-wrapper"),r=t.renderRoot.querySelector("[popover]");return Yl(e,r,()=>{r.matches(":popover-open")&&Fl(e,r,{strategy:"fixed"}).then(({x:i,y:s})=>{Object.assign(r.style,{left:`${i}px`,top:`${s}px`,width:`${e.getBoundingClientRect().width}px`})})},{animationFrame:!0})}function _o(t){t.renderRoot.querySelector("#eox-itemfilter-input-search").value="",lo({target:{value:""}},t)}function Zl(t,e){e.inlineMode&&t.stopPropagation()}function Jl(t){t.inlineMode&&(t.showDropdown=!0)}function Ql(t,e){e.inlineMode&&(t.stopPropagation(),e.showDropdown=!0)}function ec(t,e){e.inlineMode&&t.key==="Escape"&&e.showDropdown&&(_o(e),e.showDropdown=!1)}function tc(t,e){e.inlineMode&&t.target.tagName!=="DROPDOWN-FORM"&&t.target.tagName!=="EOX-ITEMFILTER"&&e.showDropdown&&(_o(e),e.showDropdown=!1)}function rc(t,e){var r=0,n=0,i=0,s=0,o=0,l=0,c=0,d=0,p=null,y=null,w=t[0],m=t[1],_=e.length;for(r;r<_;r++){n=0;var E=e[r].length-1,z=e[r];if(p=z[0],p[0]!==z[E][0]&&p[1]!==z[E][1])throw new Error("First and last coordinates in a ring must be the same");for(o=p[0]-w,l=p[1]-m,n;n<E;n++){if(y=z[n+1],d=y[1]-m,l<0&&d<0||l>0&&d>0){p=y,l=d,o=p[0]-w;continue}if(c=y[0]-t[0],d>0&&l<=0){if(s=o*d-c*l,s>0)i=i+1;else if(s===0)return 0}else if(l>0&&d<=0){if(s=o*d-c*l,s<0)i=i+1;else if(s===0)return 0}else if(d===0&&l<0){if(s=o*d-c*l,s===0)return 0}else if(l===0&&d<0){if(s=o*d-c*l,s===0)return 0}else if(l===0&&d===0){if(c<=0&&o>=0)return 0;if(o<=0&&c>=0)return 0}p=y,l=d,o=c}}return i%2!==0}function qt(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}function nc(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(!Ao(t[0])||!Ao(t[1]))throw new Error("coordinates must contain numbers");return qt({type:"Point",coordinates:t},e,r)}function ic(t,e,r={}){if(t.length<2)throw new Error("coordinates must be an array of two or more positions");return qt({type:"LineString",coordinates:t},e,r)}function Pi(t,e={}){const r={type:"FeatureCollection"};return e.id&&(r.id=e.id),e.bbox&&(r.bbox=e.bbox),r.features=t,r}function sc(t,e,r={}){return qt({type:"MultiLineString",coordinates:t},e,r)}function Ao(t){return!isNaN(t)&&t!==null&&!Array.isArray(t)}function Mo(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 oc(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 hr(t){return t.type==="Feature"?t.geometry:t}function nt(t,e,r={}){if(!t)throw new Error("point is required");if(!e)throw new Error("polygon is required");const n=Mo(t),i=hr(e),s=i.type,o=e.bbox;let l=i.coordinates;if(o&&ac(n,o)===!1)return!1;s==="Polygon"&&(l=[l]);let c=!1;for(var d=0;d<l.length;++d){const p=rc(n,l[d]);if(p===0)return!r.ignoreBoundary;p&&(c=!0)}return c}function ac(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}class So{constructor(e=[],r=lc){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 s=e-1>>1,o=r[s];if(n(i,o)>=0)break;r[e]=o,e=s}r[e]=i}_down(e){const{data:r,compare:n}=this,i=this.length>>1,s=r[e];for(;e<i;){let o=(e<<1)+1,l=r[o];const c=o+1;if(c<this.length&&n(r[c],l)<0&&(o=c,l=r[c]),n(l,s)>=0)break;r[e]=l,e=o}r[e]=s}}function lc(t,e){return t<e?-1:t>e?1:0}function Eo(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 cc(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 Co{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 uc(t,e){if(t.type==="FeatureCollection"){const r=t.features;for(let n=0;n<r.length;n++)ko(r[n],e)}else ko(t,e)}let $n=0,_n=0,An=0;function ko(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 s=0;s<n[i].length;s++){let o=n[i][s][0],l=null;_n=_n+1;for(let c=0;c<n[i][s].length-1;c++){l=n[i][s][c+1];const d=new Co(o,$n,_n,An),p=new Co(l,$n,_n,An+1);d.otherEvent=p,p.otherEvent=d,Eo(d,p)>0?(p.isLeftEndpoint=!0,d.isLeftEndpoint=!1):(d.isLeftEndpoint=!0,p.isLeftEndpoint=!1),e.push(d),e.push(p),o=l,An=An+1}}$n=$n+1}class dc{constructor(e){this.leftSweepEvent=e,this.rightSweepEvent=e.otherEvent}}function hc(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,s=t.rightSweepEvent.p.y,o=e.leftSweepEvent.p.x,l=e.leftSweepEvent.p.y,c=e.rightSweepEvent.p.x,d=e.rightSweepEvent.p.y,p=(d-l)*(i-r)-(c-o)*(s-n),y=(c-o)*(n-l)-(d-l)*(r-o),w=(i-r)*(n-l)-(s-n)*(r-o);if(p===0)return!1;const m=y/p,_=w/p;if(m>=0&&m<=1&&_>=0&&_<=1){const E=r+m*(i-r),z=n+m*(s-n);return[E,z]}return!1}function fc(t,e){e=e||!1;const r=[],n=new So([],cc);for(;t.length;){const i=t.pop();if(i.isLeftEndpoint){const s=new dc(i);for(let o=0;o<n.data.length;o++){const l=n.data[o];if(e&&l.leftSweepEvent.featureId===i.featureId)continue;const c=hc(s,l);c!==!1&&r.push(c)}n.push(s)}else i.isLeftEndpoint===!1&&n.pop()}return r}function pc(t,e){const r=new So([],Eo);return uc(t,r),fc(r,e)}var gc=pc;function Ti(t,e,r={}){const{removeDuplicates:n=!0,ignoreSelfIntersections:i=!1}=r;let s=[];t.type==="FeatureCollection"?s=s.concat(t.features):t.type==="Feature"?s.push(t):(t.type==="LineString"||t.type==="Polygon"||t.type==="MultiLineString"||t.type==="MultiPolygon")&&s.push(qt(t)),e.type==="FeatureCollection"?s=s.concat(e.features):e.type==="Feature"?s.push(e):(e.type==="LineString"||e.type==="Polygon"||e.type==="MultiLineString"||e.type==="MultiPolygon")&&s.push(qt(e));const o=gc(Pi(s),i);let l=[];if(n){const c={};o.forEach(d=>{const p=d.join(",");c[p]||(c[p]=!0,l.push(d))})}else l=o;return Pi(l.map(c=>nc(c)))}function Lo(t,e,r){if(t!==null)for(var n,i,s,o,l,c,d,p=0,y=0,w,m=t.type,_=m==="FeatureCollection",E=m==="Feature",z=_?t.features.length:1,H=0;H<z;H++){d=_?t.features[H].geometry:E?t.geometry:t,w=d?d.type==="GeometryCollection":!1,l=w?d.geometries.length:1;for(var X=0;X<l;X++){var F=0,he=0;if(o=w?d.geometries[X]:d,o!==null){c=o.coordinates;var te=o.type;switch(p=0,te){case null:break;case"Point":if(e(c,y,H,F,he)===!1)return!1;y++,F++;break;case"LineString":case"MultiPoint":for(n=0;n<c.length;n++){if(e(c[n],y,H,F,he)===!1)return!1;y++,te==="MultiPoint"&&F++}te==="LineString"&&F++;break;case"Polygon":case"MultiLineString":for(n=0;n<c.length;n++){for(i=0;i<c[n].length-p;i++){if(e(c[n][i],y,H,F,he)===!1)return!1;y++}te==="MultiLineString"&&F++,te==="Polygon"&&he++}te==="Polygon"&&F++;break;case"MultiPolygon":for(n=0;n<c.length;n++){for(he=0,i=0;i<c[n].length;i++){for(s=0;s<c[n][i].length-p;s++){if(e(c[n][i][s],y,H,F,he)===!1)return!1;y++}he++}F++}break;case"GeometryCollection":for(n=0;n<o.geometries.length;n++)if(Lo(o.geometries[n],e)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function yc(t,e){var r,n,i,s,o,l,c,d,p,y,w=0,m=t.type==="FeatureCollection",_=t.type==="Feature",E=m?t.features.length:1;for(r=0;r<E;r++){for(l=m?t.features[r].geometry:_?t.geometry:t,d=m?t.features[r].properties:_?t.properties:{},p=m?t.features[r].bbox:_?t.bbox:void 0,y=m?t.features[r].id:_?t.id:void 0,c=l?l.type==="GeometryCollection":!1,o=c?l.geometries.length:1,i=0;i<o;i++){if(s=c?l.geometries[i]:l,s===null){if(e(null,w,d,p,y)===!1)return!1;continue}switch(s.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(e(s,w,d,p,y)===!1)return!1;break}case"GeometryCollection":{for(n=0;n<s.geometries.length;n++)if(e(s.geometries[n],w,d,p,y)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}w++}}function Mn(t,e){yc(t,function(r,n,i,s,o){var l=r===null?null:r.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return e(qt(r,i,{bbox:s,id:o}),n,0)===!1?!1:void 0}var c;switch(l){case"MultiPoint":c="Point";break;case"MultiLineString":c="LineString";break;case"MultiPolygon":c="Polygon";break}for(var d=0;d<r.coordinates.length;d++){var p=r.coordinates[d],y={type:c,coordinates:p};if(e(qt(y,i),n,d)===!1)return!1}})}function Oi(t,e={}){const r=hr(t);switch(!e.properties&&t.type==="Feature"&&(e.properties=t.properties),r.type){case"Polygon":return bc(r,e);case"MultiPolygon":return mc(r,e);default:throw new Error("invalid poly")}}function bc(t,e={}){const n=hr(t).coordinates,i=e.properties?e.properties:t.type==="Feature"?t.properties:{};return Po(n,i)}function mc(t,e={}){const n=hr(t).coordinates,i=e.properties?e.properties:t.type==="Feature"?t.properties:{},s=[];return n.forEach(o=>{s.push(Po(o,i))}),Pi(s)}function Po(t,e){return t.length>1?sc(t,e):ic(t[0],e)}function vc(t,e,r={}){var n;const i=(n=r.ignoreSelfIntersections)!=null?n:!1;let s=!0;return Mn(t,o=>{Mn(e,l=>{if(s===!1)return!1;s=wc(o.geometry,l.geometry,i)})}),s}function wc(t,e,r){switch(t.type){case"Point":switch(e.type){case"Point":return!Ac(t.coordinates,e.coordinates);case"LineString":return!To(e,t);case"Polygon":return!nt(t,e)}break;case"LineString":switch(e.type){case"Point":return!To(t,e);case"LineString":return!xc(t,e,r);case"Polygon":return!Oo(e,t,r)}break;case"Polygon":switch(e.type){case"Point":return!nt(e,t);case"LineString":return!Oo(t,e,r);case"Polygon":return!$c(e,t,r)}}return!1}function To(t,e){for(let r=0;r<t.coordinates.length-1;r++)if(_c(t.coordinates[r],t.coordinates[r+1],e.coordinates))return!0;return!1}function xc(t,e,r){return Ti(t,e,{ignoreSelfIntersections:r}).features.length>0}function Oo(t,e,r){for(const i of e.coordinates)if(nt(i,t))return!0;return Ti(e,Oi(t),{ignoreSelfIntersections:r}).features.length>0}function $c(t,e,r){for(const i of t.coordinates[0])if(nt(i,e))return!0;for(const i of e.coordinates[0])if(nt(i,t))return!0;return Ti(Oi(t),Oi(e),{ignoreSelfIntersections:r}).features.length>0}function _c(t,e,r){const n=r[0]-t[0],i=r[1]-t[1],s=e[0]-t[0],o=e[1]-t[1];return n*o-i*s!==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 Ac(t,e){return t[0]===e[0]&&t[1]===e[1]}function Mc(t,e,r={}){var n;const i=(n=r.ignoreSelfIntersections)!=null?n:!1;let s=!1;return Mn(t,o=>{Mn(e,l=>{if(s===!0)return!0;s=!vc(o.geometry,l.geometry,{ignoreSelfIntersections:i})})}),s}var Sc=Mc;function Sn(t,e={}){if(t.bbox!=null&&e.recompute!==!0)return t.bbox;const r=[1/0,1/0,-1/0,-1/0];return Lo(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}function En(t,e,r={}){const n=Mo(t),i=oc(e);for(let s=0;s<i.length-1;s++){let o=!1;if(r.ignoreEndVertices&&(s===0&&(o="start"),s===i.length-2&&(o="end"),s===0&&s+1===i.length-1&&(o="both")),Ec(i[s],i[s+1],n,o,typeof r.epsilon>"u"?null:r.epsilon))return!0}return!1}function Ec(t,e,r,n,i){const s=r[0],o=r[1],l=t[0],c=t[1],d=e[0],p=e[1],y=r[0]-l,w=r[1]-c,m=d-l,_=p-c,E=y*_-w*m;if(i!==null){if(Math.abs(E)>i)return!1}else if(E!==0)return!1;if(n){if(n==="start")return Math.abs(m)>=Math.abs(_)?m>0?l<s&&s<=d:d<=s&&s<l:_>0?c<o&&o<=p:p<=o&&o<c;if(n==="end")return Math.abs(m)>=Math.abs(_)?m>0?l<=s&&s<d:d<s&&s<=l:_>0?c<=o&&o<p:p<o&&o<=c;if(n==="both")return Math.abs(m)>=Math.abs(_)?m>0?l<s&&s<d:d<s&&s<l:_>0?c<o&&o<p:p<o&&o<c}else return Math.abs(m)>=Math.abs(_)?m>0?l<=s&&s<=d:d<=s&&s<=l:_>0?c<=o&&o<=p:p<=o&&o<=c;return!1}function Cc(t,e){var r=hr(t),n=hr(e),i=r.type,s=n.type;switch(i){case"Point":switch(s){case"MultiPoint":return kc(r,n);case"LineString":return En(r,n,{ignoreEndVertices:!0});case"Polygon":case"MultiPolygon":return nt(r,n,{ignoreBoundary:!0});default:throw new Error("feature2 "+s+" geometry not supported")}case"MultiPoint":switch(s){case"MultiPoint":return Lc(r,n);case"LineString":return Pc(r,n);case"Polygon":case"MultiPolygon":return Tc(r,n);default:throw new Error("feature2 "+s+" geometry not supported")}case"LineString":switch(s){case"LineString":return Oc(r,n);case"Polygon":case"MultiPolygon":return Rc(r,n);default:throw new Error("feature2 "+s+" geometry not supported")}case"Polygon":switch(s){case"Polygon":case"MultiPolygon":return Dc(r,n);default:throw new Error("feature2 "+s+" geometry not supported")}default:throw new Error("feature1 "+i+" geometry not supported")}}function kc(t,e){var r,n=!1;for(r=0;r<e.coordinates.length;r++)if(Do(e.coordinates[r],t.coordinates)){n=!0;break}return n}function Lc(t,e){for(var r=0;r<t.coordinates.length;r++){for(var n=!1,i=0;i<e.coordinates.length;i++)Do(t.coordinates[r],e.coordinates[i])&&(n=!0);if(!n)return!1}return!0}function Pc(t,e){for(var r=!1,n=0;n<t.coordinates.length;n++){if(!En(t.coordinates[n],e))return!1;r||(r=En(t.coordinates[n],e,{ignoreEndVertices:!0}))}return r}function Tc(t,e){for(var r=!0,n=!1,i=0;i<t.coordinates.length;i++){if(n=nt(t.coordinates[i],e),!n){r=!1;break}n=nt(t.coordinates[i],e,{ignoreBoundary:!0})}return r&&n}function Oc(t,e){for(var r=0;r<t.coordinates.length;r++)if(!En(t.coordinates[r],e))return!1;return!0}function Rc(t,e){var r=Sn(e),n=Sn(t);if(!Ro(r,n))return!1;for(var i=!1,s=0;s<t.coordinates.length;s++){if(!nt(t.coordinates[s],e))return!1;if(i||(i=nt(t.coordinates[s],e,{ignoreBoundary:!0})),!i&&s<t.coordinates.length-1){var o=jc(t.coordinates[s],t.coordinates[s+1]);i=nt(o,e,{ignoreBoundary:!0})}}return i}function Dc(t,e){var r=Sn(t),n=Sn(e);if(!Ro(n,r))return!1;for(var i=0;i<t.coordinates[0].length;i++)if(!nt(t.coordinates[0][i],e))return!1;return!0}function Ro(t,e){return!(t[0]>e[0]||t[2]<e[2]||t[1]>e[1]||t[3]<e[3])}function Do(t,e){return t[0]===e[0]&&t[1]===e[1]}function jc(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2]}var Nc=Cc;const Hc=(t,e)=>e?Sc(t,e):!0,Ic=(t,e)=>e?Nc(t,e):!0;function Bc(t,e="highlight",r="title"){const n=(s,o,l)=>{const c=o.split(".");let d;for(d=0;d<c.length-1;d++)s=s[c[d]];s[c[d]]=l},i=(s,o=[])=>{let l="",c=0;return o.forEach(d=>{const p=d[1]+1;l+=[s.substring(c,d[0]),`<mark class="${e}">`,s.substring(d[0],p),"</mark>"].join(""),c=p}),l+=s.substring(c),l};return t.filter(({matches:s})=>s&&s.length).map(({item:s,matches:o})=>{const l={...s};return o.forEach(c=>{c.key===r&&n(l,c.key,i(c.value,c.indices))}),l})}var et=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var jo={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(et,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",l="minute",c="hour",d="day",p="week",y="month",w="quarter",m="year",_="date",E="Invalid Date",z=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,H=/\[([^\]]+)]|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,X={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var S=["th","st","nd","rd"],M=D%100;return"["+D+(S[(M-20)%10]||S[M]||S[0])+"]"}},F=function(D,S,M){var j=String(D);return!j||j.length>=S?D:""+Array(S+1-j.length).join(M)+D},he={s:F,z:function(D){var S=-D.utcOffset(),M=Math.abs(S),j=Math.floor(M/60),k=M%60;return(S<=0?"+":"-")+F(j,2,"0")+":"+F(k,2,"0")},m:function D(S,M){if(S.date()<M.date())return-D(M,S);var j=12*(M.year()-S.year())+(M.month()-S.month()),k=S.clone().add(j,y),K=M-k<0,G=S.clone().add(j+(K?-1:1),y);return+(-(j+(M-k)/(K?k-G:G-k))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:y,y:m,w:p,d,D:_,h:c,m:l,s:o,ms:s,Q:w}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},te="en",Z={};Z[te]=X;var fe="$isDayjsObject",Ae=function(D){return D instanceof Ge||!(!D||!D[fe])},Ce=function D(S,M,j){var k;if(!S)return te;if(typeof S=="string"){var K=S.toLowerCase();Z[K]&&(k=K),M&&(Z[K]=M,k=K);var G=S.split("-");if(!k&&G.length>1)return D(G[0])}else{var de=S.name;Z[de]=S,k=de}return!j&&k&&(te=k),k||!j&&te},ye=function(D,S){if(Ae(D))return D.clone();var M=typeof S=="object"?S:{};return M.date=D,M.args=arguments,new Ge(M)},ie=he;ie.l=Ce,ie.i=Ae,ie.w=function(D,S){return ye(D,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var Ge=function(){function D(M){this.$L=Ce(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[fe]=!0}var S=D.prototype;return S.parse=function(M){this.$d=function(j){var k=j.date,K=j.utc;if(k===null)return new Date(NaN);if(ie.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var G=k.match(z);if(G){var de=G[2]-1||0,$e=(G[7]||"0").substring(0,3);return K?new Date(Date.UTC(G[1],de,G[3]||1,G[4]||0,G[5]||0,G[6]||0,$e)):new Date(G[1],de,G[3]||1,G[4]||0,G[5]||0,G[6]||0,$e)}}return new Date(k)}(M),this.init()},S.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()},S.$utils=function(){return ie},S.isValid=function(){return this.$d.toString()!==E},S.isSame=function(M,j){var k=ye(M);return this.startOf(j)<=k&&k<=this.endOf(j)},S.isAfter=function(M,j){return ye(M)<this.startOf(j)},S.isBefore=function(M,j){return this.endOf(j)<ye(M)},S.$g=function(M,j,k){return ie.u(M)?this[j]:this.set(k,M)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(M,j){var k=this,K=!!ie.u(j)||j,G=ie.p(M),de=function(Te,re){var Oe=ie.w(k.$u?Date.UTC(k.$y,re,Te):new Date(k.$y,re,Te),k);return K?Oe:Oe.endOf(d)},$e=function(Te,re){return ie.w(k.toDate()[Te].apply(k.toDate("s"),(K?[0,0,0,0]:[23,59,59,999]).slice(re)),k)},Se=this.$W,ke=this.$M,Ie=this.$D,Pe="set"+(this.$u?"UTC":"");switch(G){case m:return K?de(1,0):de(31,11);case y:return K?de(1,ke):de(0,ke+1);case p:var Be=this.$locale().weekStart||0,se=(Se<Be?Se+7:Se)-Be;return de(K?Ie-se:Ie+(6-se),ke);case d:case _:return $e(Pe+"Hours",0);case c:return $e(Pe+"Minutes",1);case l:return $e(Pe+"Seconds",2);case o:return $e(Pe+"Milliseconds",3);default:return this.clone()}},S.endOf=function(M){return this.startOf(M,!1)},S.$set=function(M,j){var k,K=ie.p(M),G="set"+(this.$u?"UTC":""),de=(k={},k[d]=G+"Date",k[_]=G+"Date",k[y]=G+"Month",k[m]=G+"FullYear",k[c]=G+"Hours",k[l]=G+"Minutes",k[o]=G+"Seconds",k[s]=G+"Milliseconds",k)[K],$e=K===d?this.$D+(j-this.$W):j;if(K===y||K===m){var Se=this.clone().set(_,1);Se.$d[de]($e),Se.init(),this.$d=Se.set(_,Math.min(this.$D,Se.daysInMonth())).$d}else de&&this.$d[de]($e);return this.init(),this},S.set=function(M,j){return this.clone().$set(M,j)},S.get=function(M){return this[ie.p(M)]()},S.add=function(M,j){var k,K=this;M=Number(M);var G=ie.p(j),de=function(ke){var Ie=ye(K);return ie.w(Ie.date(Ie.date()+Math.round(ke*M)),K)};if(G===y)return this.set(y,this.$M+M);if(G===m)return this.set(m,this.$y+M);if(G===d)return de(1);if(G===p)return de(7);var $e=(k={},k[l]=n,k[c]=i,k[o]=r,k)[G]||1,Se=this.$d.getTime()+M*$e;return ie.w(Se,this)},S.subtract=function(M,j){return this.add(-1*M,j)},S.format=function(M){var j=this,k=this.$locale();if(!this.isValid())return k.invalidDate||E;var K=M||"YYYY-MM-DDTHH:mm:ssZ",G=ie.z(this),de=this.$H,$e=this.$m,Se=this.$M,ke=k.weekdays,Ie=k.months,Pe=k.meridiem,Be=function(re,Oe,ft,_e){return re&&(re[Oe]||re(j,K))||ft[Oe].slice(0,_e)},se=function(re){return ie.s(de%12||12,re,"0")},Te=Pe||function(re,Oe,ft){var _e=re<12?"AM":"PM";return ft?_e.toLowerCase():_e};return K.replace(H,function(re,Oe){return Oe||function(ft){switch(ft){case"YY":return String(j.$y).slice(-2);case"YYYY":return ie.s(j.$y,4,"0");case"M":return Se+1;case"MM":return ie.s(Se+1,2,"0");case"MMM":return Be(k.monthsShort,Se,Ie,3);case"MMMM":return Be(Ie,Se);case"D":return j.$D;case"DD":return ie.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return Be(k.weekdaysMin,j.$W,ke,2);case"ddd":return Be(k.weekdaysShort,j.$W,ke,3);case"dddd":return ke[j.$W];case"H":return String(de);case"HH":return ie.s(de,2,"0");case"h":return se(1);case"hh":return se(2);case"a":return Te(de,$e,!0);case"A":return Te(de,$e,!1);case"m":return String($e);case"mm":return ie.s($e,2,"0");case"s":return String(j.$s);case"ss":return ie.s(j.$s,2,"0");case"SSS":return ie.s(j.$ms,3,"0");case"Z":return G}return null}(re)||G.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(M,j,k){var K,G=this,de=ie.p(j),$e=ye(M),Se=($e.utcOffset()-this.utcOffset())*n,ke=this-$e,Ie=function(){return ie.m(G,$e)};switch(de){case m:K=Ie()/12;break;case y:K=Ie();break;case w:K=Ie()/3;break;case p:K=(ke-Se)/6048e5;break;case d:K=(ke-Se)/864e5;break;case c:K=ke/i;break;case l:K=ke/n;break;case o:K=ke/r;break;default:K=ke}return k?K:ie.a(K)},S.daysInMonth=function(){return this.endOf(y).$D},S.$locale=function(){return Z[this.$L]},S.locale=function(M,j){if(!M)return this.$L;var k=this.clone(),K=Ce(M,j,!0);return K&&(k.$L=K),k},S.clone=function(){return ie.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},D}(),Ft=Ge.prototype;return ye.prototype=Ft,[["$ms",s],["$s",o],["$m",l],["$H",c],["$W",d],["$M",y],["$y",m],["$D",_]].forEach(function(D){Ft[D[1]]=function(S){return this.$g(S,D[0],D[1])}}),ye.extend=function(D,S){return D.$i||(D(S,Ge,ye),D.$i=!0),ye},ye.locale=Ce,ye.isDayjs=Ae,ye.unix=function(D){return ye(1e3*D)},ye.en=Z[te],ye.Ls=Z,ye.p={},ye})})(jo);var Uc=jo.exports;const Wr=Cn(Uc);let No;const zc=(t,e)=>{No=new Ct(t,{threshold:.4,distance:50,includeMatches:!0,useExtendedSearch:!0,...e})},qc=async(t,e,r)=>{const n=Object.entries(e).filter(([,l])=>l.type==="text"||l.type==="select"||l.type==="multiselect").reduce((l,[c,d])=>{const p="$or",y=[],w=(m,_)=>{const E={};d.type==="text"?E[m]=`${_}`:E[c]=`="${m}"`,y.push(E)};return Object.entries(d.state).filter(([,m])=>m).forEach(([m,_])=>w(m,_)),y.length>0&&l.push({[p]:y}),l},[]);let i;if(!(n.length>0)&&r.matchAllWhenEmpty!==!1)i=t;else{const l={$and:[...n]},c=No.search(l);i=r.enableHighlighting?Bc(c,"highlight",r.titleProperty):c.map(d=>d.item)}const s=Object.entries(e).filter(([,l])=>l.type==="range").reduce((l,[c,d])=>(l[c]={min:d.state.min,max:d.state.max,format:d.format},l),{});if(Object.keys(s).length>0){const l=[];for(let c=0;c<i.length;c++){const d={};for(const[p,y]of Object.entries(s)){const w=_=>y.format==="date"?Wr(_).unix():_,m=Di(p,i[c]);m?Array.isArray(m)?d[p]=s[p].min<=w(m[1])&&w(m[0])<=s[p].max:w(m)>=s[p].min&&w(m)<=s[p].max?d[p]=!0:d[p]=!1:d[p]=!0}Object.values(d).every(p=>!!p)&&l.push(i[c])}i=[...l]}const o=Object.entries(e).filter(([,l])=>l.type==="spatial").reduce((l,[c,d])=>(l[c]={geometry:d.state.geometry,mode:d.state.mode},l),{});if(Object.values(o).map(l=>l.geometry).filter(l=>!!l).length>0){const l=[];for(let c=0;c<i.length;c++){const d={};for(const p of Object.keys(o)){const y=Di(p,i[c]),w=o[p].mode||"within";y&&(w==="within"?Ic(y,o[p].geometry):Hc(y,o[p].geometry))?d[p]=!0:d[p]=!1}Object.values(d).every(p=>!!p)&&l.push(i[c])}i=[...l]}return i};function Wc(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://tiles.maps.eox.at/wmts/1.0.0/osm_3857/default/g/{z}/{y}/{x}.jpg",attribution:"{ OSM: Data &copy; OpenStreetMap contributors and others, Rendering &copy; EOX }"}}]}function kn(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 Ho(t,e){return t*2+e}function Vc(t){return Object.keys(t).map(e=>({title:Y`${t[e].title||t[e].key}:
532
532
  <strong>${t[e].stringifiedState}</strong>`,key:e})).filter(e=>t[e.key].dirty)}function Ri(t){return Object.values(t).map(e=>e.dirty).filter(e=>e).length>0}async function Kc(t,e,r){return await(await fetch(`${r.externalFilter(t,e)}`)).json()}function Io(t,e,r){let n;if(t.detail?n=t.detail.target:n=t.target,n!=null&&n.classList.contains("details-filter")){if(!n.open||e!=null&&e.expandMultipleFilters)return;r.shadowRoot.querySelectorAll("eox-itemfilter-expandcontainer").forEach(i=>{const s=i.shadowRoot.querySelector(".details-filter");s&&s!==n&&s.removeAttribute("open")})}else{if(!(n!=null&&n.open)||e!=null&&e.expandMultipleResults)return;r.querySelectorAll("details").forEach(i=>{i!==n&&i.removeAttribute("open")})}}function Di(t,e){return t!=null&&t.includes(".")?t.split(".").reduce((r,n)=>r&&r[n],e):e[t]}class Gc extends Ye{constructor(){super();Ze(this,me);this.filterProperties={},this.unstyled=!1,this.inlineMode=!1,this.filters={},this._handleClickOutside=le(this,me,ha).bind(this),this._handleKeyDown=le(this,me,$s).bind(this)}static get properties(){return{filterProperties:{attribute:!1,type:Object},inlineMode:{attribute:"inline-mode",type:Boolean},unstyled:{type:Boolean},filters:{state:!0,type:Object}}}set showDropdown(r){this.renderRoot.querySelector("[popover]").togglePopover(r)}get showDropdown(){var r;return(r=this.renderRoot.querySelector("[popover]"))==null?void 0:r.matches(":popover-open")}connectedCallback(){super.connectedCallback(),this.inlineMode&&le(this,me,ws).call(this)}disconnectedCallback(){this.inlineMode&&le(this,me,xs).call(this),super.disconnectedCallback()}_overlayCleanup(){}updateInline(){this.inlineMode&&this.requestUpdate()}updated(r){r.has("inlineMode")&&(this.inlineMode?le(this,me,ws).call(this):le(this,me,xs).call(this))}render(){return Y`
533
533
  <style>
534
534
  ${!this.unstyled&&Ur}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eox/itemfilter",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "type": "module",
5
5
  "devDependencies": {
6
6
  "@types/geojson": "^7946.0.14",
@@ -26,7 +26,7 @@
26
26
  "@turf/boolean-intersects": "^7.0.0",
27
27
  "@turf/boolean-within": "^7.0.0",
28
28
  "fuse.js": "^7.0.0",
29
- "lit": "^3.0.2",
29
+ "lit": "^3.2.0",
30
30
  "lodash.debounce": "^4.0.8",
31
31
  "lodash.flatmap": "^4.5.0",
32
32
  "lodash.uniq": "^4.5.0",
@@ -9,7 +9,7 @@ import { html } from "lit";
9
9
  function getChipItems(filters) {
10
10
  return Object.keys(filters)
11
11
  .map((filter) => ({
12
- title: html`${filters[filter].title}:
12
+ title: html`${filters[filter].title || filters[filter].key}:
13
13
  <strong>${filters[filter].stringifiedState}</strong>`,
14
14
  key: filter,
15
15
  }))