@eox/layercontrol 0.24.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eox-layercontrol.js +1142 -1126
- package/dist/eox-layercontrol.umd.cjs +107 -91
- package/package.json +2 -2
- package/src/components/layer-group.js +1 -1
- package/src/components/layer-list.js +2 -1
- package/src/components/layer-tools.js +2 -2
- package/src/components/layer.js +9 -0
- package/src/main.js +6 -0
- package/types/layercontrol/src/components/layer-list.d.ts.map +1 -1
- package/types/layercontrol/src/components/layer.d.ts.map +1 -1
- package/types/layercontrol/src/main.d.ts.map +1 -1
- package/types/map/src/helpers/generate.d.ts.map +1 -1
- package/types/map/src/helpers/select.d.ts +9 -0
- package/types/map/src/helpers/select.d.ts.map +1 -1
- package/types/map/src/main.d.ts +2 -2
- package/types/map/src/main.d.ts.map +1 -1
- package/types/map/src/methods/map/remove.d.ts +2 -2
- package/types/map/src/methods/map/remove.d.ts.map +1 -1
- package/types/map/types.d.ts +2 -0
- package/types/map/types.d.ts.map +1 -1
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
(function(D,C){typeof exports=="object"&&typeof module<"u"?C(exports):typeof define=="function"&&define.amd?define(["exports"],C):(D=typeof globalThis<"u"?globalThis:D||self,C(D["eox-layercontrol"]={}))})(this,function(D){"use strict";var qa=Object.defineProperty;var Ho=D=>{throw TypeError(D)};var Ya=(D,C,B)=>C in D?qa(D,C,{enumerable:!0,configurable:!0,writable:!0,value:B}):D[C]=B;var V=(D,C,B)=>Ya(D,typeof C!="symbol"?C+"":C,B),
|
|
1
|
+
(function(D,C){typeof exports=="object"&&typeof module<"u"?C(exports):typeof define=="function"&&define.amd?define(["exports"],C):(D=typeof globalThis<"u"?globalThis:D||self,C(D["eox-layercontrol"]={}))})(this,function(D){"use strict";var qa=Object.defineProperty;var Ho=D=>{throw TypeError(D)};var Ya=(D,C,B)=>C in D?qa(D,C,{enumerable:!0,configurable:!0,writable:!0,value:B}):D[C]=B;var V=(D,C,B)=>Ya(D,typeof C!="symbol"?C+"":C,B),on=(D,C,B)=>C.has(D)||Ho("Cannot "+B);var A=(D,C,B)=>(on(D,C,"read from private field"),B?B.call(D):C.get(D)),O=(D,C,B)=>C.has(D)?Ho("Cannot add the same private member more than once"):C instanceof WeakSet?C.add(D):C.set(D,B),ee=(D,C,B,jt)=>(on(D,C,"write to private field"),jt?jt.call(D,B):C.set(D,B),B),j=(D,C,B)=>(on(D,C,"access private method"),B);/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/var Io,We,Ge,$t,Qt,$e,xe,
|
|
5
|
+
*/var Io,We,Ge,$t,Qt,$e,xe,rn,Je,Ke,Qe,Vo,ti,ei,Ee,ii,ni,oi,ri,Pt,yi,Bo,si,ai,li,di,ui,ci,hi,ko,G,Uo,Fo,sn,jo,Zo,bi,pi,fi,Ot,te,zo,Xo,gi;const C=globalThis,B=C.ShadowRoot&&(C.ShadyCSS===void 0||C.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,jt=Symbol(),an=new WeakMap;let ln=class{constructor(t,i,n){if(this._$cssResult$=!0,n!==jt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const i=this.t;if(B&&t===void 0){const n=i!==void 0&&i.length===1;n&&(t=an.get(i)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&an.set(i,t))}return t}toString(){return this.cssText}};const qo=e=>new ln(typeof e=="string"?e:e+"",void 0,jt),dn=(e,...t)=>{const i=e.length===1?e[0]:t.reduce((n,o,r)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[r+1],e[0]);return new ln(i,e,jt)},Yo=(e,t)=>{if(B)e.adoptedStyleSheets=t.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(const i of t){const n=document.createElement("style"),o=C.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=i.cssText,e.appendChild(n)}},un=B?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let i="";for(const n of t.cssRules)i+=n.cssText;return qo(i)})(e):e;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:Wo,defineProperty:Go,getOwnPropertyDescriptor:Jo,getOwnPropertyNames:Ko,getOwnPropertySymbols:Qo,getPrototypeOf:tr}=Object,Et=globalThis,
|
|
9
|
+
*/const{is:Wo,defineProperty:Go,getOwnPropertyDescriptor:Jo,getOwnPropertyNames:Ko,getOwnPropertySymbols:Qo,getPrototypeOf:tr}=Object,Et=globalThis,cn=Et.trustedTypes,er=cn?cn.emptyScript:"",vi=Et.reactiveElementPolyfillSupport,ie=(e,t)=>e,wi={toAttribute(e,t){switch(t){case Boolean:e=e?er:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=e!==null;break;case Number:i=e===null?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch{i=null}}return i}},hn=(e,t)=>!Wo(e,t),pn={attribute:!0,type:String,converter:wi,reflect:!1,hasChanged:hn};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Et.litPropertyMetadata??(Et.litPropertyMetadata=new WeakMap);class Zt extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,i=pn){if(i.state&&(i.attribute=!1),this._$Ei(),this.elementProperties.set(t,i),!i.noAccessor){const n=Symbol(),o=this.getPropertyDescriptor(t,n,i);o!==void 0&&Go(this.prototype,t,o)}}static getPropertyDescriptor(t,i,n){const{get:o,set:r}=Jo(this.prototype,t)??{get(){return this[i]},set(s){this[i]=s}};return{get(){return o==null?void 0:o.call(this)},set(s){const a=o==null?void 0:o.call(this);r.call(this,s),this.requestUpdate(t,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??pn}static _$Ei(){if(this.hasOwnProperty(ie("elementProperties")))return;const t=tr(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ie("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ie("properties"))){const i=this.properties,n=[...Ko(i),...Qo(i)];for(const o of n)this.createProperty(o,i[o])}const t=this[Symbol.metadata];if(t!==null){const i=litPropertyMetadata.get(t);if(i!==void 0)for(const[n,o]of i)this.elementProperties.set(n,o)}this._$Eh=new Map;for(const[i,n]of this.elementProperties){const o=this._$Eu(i,n);o!==void 0&&this._$Eh.set(o,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const o of n)i.unshift(un(o))}else t!==void 0&&i.push(un(t));return i}static _$Eu(t,i){const n=i.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(i=>i(this))}addController(t){var i;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)==null||i.call(t))}removeController(t){var i;(i=this._$EO)==null||i.delete(t)}_$E_(){const t=new Map,i=this.constructor.elementProperties;for(const n of i.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Yo(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(i=>{var n;return(n=i.hostConnected)==null?void 0:n.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(i=>{var n;return(n=i.hostDisconnected)==null?void 0:n.call(i)})}attributeChangedCallback(t,i,n){this._$AK(t,n)}_$EC(t,i){var r;const n=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,n);if(o!==void 0&&n.reflect===!0){const s=(((r=n.converter)==null?void 0:r.toAttribute)!==void 0?n.converter:wi).toAttribute(i,n.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,i){var r;const n=this.constructor,o=n._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const s=n.getPropertyOptions(o),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((r=s.converter)==null?void 0:r.fromAttribute)!==void 0?s.converter:wi;this._$Em=o,this[o]=a.fromAttribute(i,s.type),this._$Em=null}}requestUpdate(t,i,n){if(t!==void 0){if(n??(n=this.constructor.getPropertyOptions(t)),!(n.hasChanged??hn)(this[t],i))return;this.P(t,i,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,i,n){this._$AL.has(t)||this._$AL.set(t,i),n.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[r,s]of this._$Ep)this[r]=s;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[r,s]of o)s.wrapped!==!0||this._$AL.has(r)||this[r]===void 0||this.P(r,this[r],s)}let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),(n=this._$EO)==null||n.forEach(o=>{var r;return(r=o.hostUpdate)==null?void 0:r.call(o)}),this.update(i)):this._$EU()}catch(o){throw t=!1,this._$EU(),o}t&&this._$AE(i)}willUpdate(t){}_$AE(t){var i;(i=this._$EO)==null||i.forEach(n=>{var o;return(o=n.hostUpdated)==null?void 0:o.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(i=>this._$EC(i,this[i]))),this._$EU()}updated(t){}firstUpdated(t){}}Zt.elementStyles=[],Zt.shadowRootOptions={mode:"open"},Zt[ie("elementProperties")]=new Map,Zt[ie("finalized")]=new Map,vi==null||vi({ReactiveElement:Zt}),(Et.reactiveElementVersions??(Et.reactiveElementVersions=[])).push("2.0.4");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const
|
|
14
|
-
\f\r]`,se=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
13
|
+
*/const ne=globalThis,Te=ne.trustedTypes,fn=Te?Te.createPolicy("lit-html",{createHTML:e=>e}):void 0,$i="$lit$",gt=`lit$${Math.random().toFixed(9).slice(2)}$`,xi="?"+gt,ir=`<${xi}>`,Lt=document,oe=()=>Lt.createComment(""),re=e=>e===null||typeof e!="object"&&typeof e!="function",Ei=Array.isArray,gn=e=>Ei(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Si=`[
|
|
14
|
+
\f\r]`,se=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,mn=/-->/g,yn=/>/g,Mt=RegExp(`>|${Si}(?:([^\\s"'>=/]+)(${Si}*=${Si}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),bn=/'/g,vn=/"/g,wn=/^(?:script|style|textarea|title)$/i,nr=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),$=nr(1),dt=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),$n=new WeakMap,It=Lt.createTreeWalker(Lt,129);function xn(e,t){if(!Ei(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return fn!==void 0?fn.createHTML(t):t}const En=(e,t)=>{const i=e.length-1,n=[];let o,r=t===2?"<svg>":t===3?"<math>":"",s=se;for(let a=0;a<i;a++){const l=e[a];let d,c,u=-1,p=0;for(;p<l.length&&(s.lastIndex=p,c=s.exec(l),c!==null);)p=s.lastIndex,s===se?c[1]==="!--"?s=mn:c[1]!==void 0?s=yn:c[2]!==void 0?(wn.test(c[2])&&(o=RegExp("</"+c[2],"g")),s=Mt):c[3]!==void 0&&(s=Mt):s===Mt?c[0]===">"?(s=o??se,u=-1):c[1]===void 0?u=-2:(u=s.lastIndex-c[2].length,d=c[1],s=c[3]===void 0?Mt:c[3]==='"'?vn:bn):s===vn||s===bn?s=Mt:s===mn||s===yn?s=se:(s=Mt,o=void 0);const f=s===Mt&&e[a+1].startsWith("/>")?" ":"";r+=s===se?l+ir:u>=0?(n.push(d),l.slice(0,u)+$i+l.slice(u)+gt+f):l+gt+(u===-2?a:f)}return[xn(e,r+(e[i]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class ae{constructor({strings:t,_$litType$:i},n){let o;this.parts=[];let r=0,s=0;const a=t.length-1,l=this.parts,[d,c]=En(t,i);if(this.el=ae.createElement(d,n),It.currentNode=this.el.content,i===2||i===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(o=It.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const u of o.getAttributeNames())if(u.endsWith($i)){const p=c[s++],f=o.getAttribute(u).split(gt),g=/([.?@])?(.*)/.exec(p);l.push({type:1,index:r,name:g[2],strings:f,ctor:g[1]==="."?An:g[1]==="?"?_n:g[1]==="@"?Cn:le}),o.removeAttribute(u)}else u.startsWith(gt)&&(l.push({type:6,index:r}),o.removeAttribute(u));if(wn.test(o.tagName)){const u=o.textContent.split(gt),p=u.length-1;if(p>0){o.textContent=Te?Te.emptyScript:"";for(let f=0;f<p;f++)o.append(u[f],oe()),It.nextNode(),l.push({type:2,index:++r});o.append(u[p],oe())}}}else if(o.nodeType===8)if(o.data===xi)l.push({type:2,index:r});else{let u=-1;for(;(u=o.data.indexOf(gt,u+1))!==-1;)l.push({type:7,index:r}),u+=gt.length-1}r++}}static createElement(t,i){const n=Lt.createElement("template");return n.innerHTML=t,n}}function Nt(e,t,i=e,n){var s,a;if(t===dt)return t;let o=n!==void 0?(s=i._$Co)==null?void 0:s[n]:i._$Cl;const r=re(t)?void 0:t._$litDirective$;return(o==null?void 0:o.constructor)!==r&&((a=o==null?void 0:o._$AO)==null||a.call(o,!1),r===void 0?o=void 0:(o=new r(e),o._$AT(e,i,n)),n!==void 0?(i._$Co??(i._$Co=[]))[n]=o:i._$Cl=o),o!==void 0&&(t=Nt(e,o._$AS(e,t.values),o,n)),t}let Sn=class{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:n}=this._$AD,o=((t==null?void 0:t.creationScope)??Lt).importNode(i,!0);It.currentNode=o;let r=It.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new zt(r,r.nextSibling,this,t):l.type===1?d=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(d=new Tn(r,this,t)),this._$AV.push(d),l=n[++a]}s!==(l==null?void 0:l.index)&&(r=It.nextNode(),s++)}return It.currentNode=Lt,o}p(t){let i=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,i),i+=n.strings.length-2):n._$AI(t[i])),i++}};class zt{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,i,n,o){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=n,this.options=o,this._$Cv=(o==null?void 0:o.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=Nt(this,t,i),re(t)?t===T||t==null||t===""?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==dt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):gn(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==T&&re(this._$AH)?this._$AA.nextSibling.data=t:this.T(Lt.createTextNode(t)),this._$AH=t}$(t){var r;const{values:i,_$litType$:n}=t,o=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=ae.createElement(xn(n.h,n.h[0]),this.options)),n);if(((r=this._$AH)==null?void 0:r._$AD)===o)this._$AH.p(i);else{const s=new Sn(o,this),a=s.u(this.options);s.p(i),this.T(a),this._$AH=s}}_$AC(t){let i=$n.get(t.strings);return i===void 0&&$n.set(t.strings,i=new ae(t)),i}k(t){Ei(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let n,o=0;for(const r of t)o===i.length?i.push(n=new zt(this.O(oe()),this.O(oe()),this,this.options)):n=i[o],n._$AI(r),o++;o<i.length&&(this._$AR(n&&n._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,i);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var i;this._$AM===void 0&&(this._$Cv=t,(i=this._$AP)==null||i.call(this,t))}}class le{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,n,o,r){this.type=1,this._$AH=T,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=r,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=T}_$AI(t,i=this,n,o){const r=this.strings;let s=!1;if(r===void 0)t=Nt(this,t,i,0),s=!re(t)||t!==this._$AH&&t!==dt,s&&(this._$AH=t);else{const a=t;let l,d;for(t=r[0],l=0;l<r.length-1;l++)d=Nt(this,a[n+l],i,l),d===dt&&(d=this._$AH[l]),s||(s=!re(d)||d!==this._$AH[l]),d===T?t=T:t!==T&&(t+=(d??"")+r[l+1]),this._$AH[l]=d}s&&!o&&this.j(t)}j(t){t===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class An extends le{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===T?void 0:t}}class _n extends le{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==T)}}class Cn extends le{constructor(t,i,n,o,r){super(t,i,n,o,r),this.type=5}_$AI(t,i=this){if((t=Nt(this,t,i,0)??T)===dt)return;const n=this._$AH,o=t===T&&n!==T||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==T&&(n===T||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i;typeof this._$AH=="function"?this._$AH.call(((i=this.options)==null?void 0:i.host)??this.element,t):this._$AH.handleEvent(t)}}class Tn{constructor(t,i,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Nt(this,t)}}const or={M:$i,P:gt,A:xi,C:1,L:En,R:Sn,D:gn,V:Nt,I:zt,H:le,N:_n,U:Cn,B:An,F:Tn},Ai=ne.litHtmlPolyfillSupport;Ai==null||Ai(ae,zt),(ne.litHtmlVersions??(ne.litHtmlVersions=[])).push("3.2.1");const rr=(e,t,i)=>{const n=(i==null?void 0:i.renderBefore)??t;let o=n._$litPart$;if(o===void 0){const r=(i==null?void 0:i.renderBefore)??null;n._$litPart$=o=new zt(t.insertBefore(oe(),r),r,void 0,i??{})}return o._$AI(e),o};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/let tt=class extends Zt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var
|
|
19
|
+
*/let tt=class extends Zt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var i;const t=super.createRenderRoot();return(i=this.renderOptions).renderBefore??(i.renderBefore=t.firstChild),t}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=rr(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return dt}};tt._$litElement$=!0,tt.finalized=!0,(Io=globalThis.litElementHydrateSupport)==null||Io.call(globalThis,{LitElement:tt});const _i=globalThis.litElementPolyfillSupport;_i==null||_i({LitElement:tt}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2021 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/function Z(e,t,
|
|
23
|
+
*/function Z(e,t,i){return e?t(e):i==null?void 0:i(e)}/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/const St={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},
|
|
27
|
+
*/const St={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ci=e=>(...t)=>({_$litDirective$:e,values:t});class Ti{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,n){this._$Ct=t,this._$AM=i,this._$Ci=n}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}/**
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright 2020 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
-
*/const{I:sr}=or,ar=e=>e.strings===void 0,
|
|
31
|
+
*/const{I:sr}=or,ar=e=>e.strings===void 0,Pn=()=>document.createComment(""),de=(e,t,i)=>{var r;const n=e._$AA.parentNode,o=t===void 0?e._$AB:t._$AA;if(i===void 0){const s=n.insertBefore(Pn(),o),a=n.insertBefore(Pn(),o);i=new sr(s,a,e,e.options)}else{const s=i._$AB.nextSibling,a=i._$AM,l=a!==e;if(l){let d;(r=i._$AQ)==null||r.call(i,e),i._$AM=e,i._$AP!==void 0&&(d=e._$AU)!==a._$AU&&i._$AP(d)}if(s!==o||l){let d=i._$AA;for(;d!==s;){const c=d.nextSibling;n.insertBefore(d,o),d=c}}}return i},Ht=(e,t,i=e)=>(e._$AI(t,i),e),lr={},On=(e,t=lr)=>e._$AH=t,dr=e=>e._$AH,Pi=e=>{var n;(n=e._$AP)==null||n.call(e,!1,!0);let t=e._$AA;const i=e._$AB.nextSibling;for(;t!==i;){const o=t.nextSibling;t.remove(),t=o}};/**
|
|
32
32
|
* @license
|
|
33
33
|
* Copyright 2017 Google LLC
|
|
34
34
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
35
|
-
*/const
|
|
35
|
+
*/const Dn=(e,t,i)=>{const n=new Map;for(let o=t;o<=i;o++)n.set(e[o],o);return n},ur=Ci(class extends Ti{constructor(e){if(super(e),e.type!==St.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,t,i){let n;i===void 0?i=t:t!==void 0&&(n=t);const o=[],r=[];let s=0;for(const a of e)o[s]=n?n(a,s):s,r[s]=i(a,s),s++;return{values:r,keys:o}}render(e,t,i){return this.dt(e,t,i).values}update(e,[t,i,n]){const o=dr(e),{values:r,keys:s}=this.dt(t,i,n);if(!Array.isArray(o))return this.ut=s,r;const a=this.ut??(this.ut=[]),l=[];let d,c,u=0,p=o.length-1,f=0,g=r.length-1;for(;u<=p&&f<=g;)if(o[u]===null)u++;else if(o[p]===null)p--;else if(a[u]===s[f])l[f]=Ht(o[u],r[f]),u++,f++;else if(a[p]===s[g])l[g]=Ht(o[p],r[g]),p--,g--;else if(a[u]===s[g])l[g]=Ht(o[u],r[g]),de(e,l[g+1],o[u]),u++,g--;else if(a[p]===s[f])l[f]=Ht(o[p],r[f]),de(e,o[u],o[p]),p--,f++;else if(d===void 0&&(d=Dn(s,f,g),c=Dn(a,u,p)),d.has(a[u]))if(d.has(a[p])){const y=c.get(s[f]),R=y!==void 0?o[y]:null;if(R===null){const H=de(e,o[u]);Ht(H,r[f]),l[f]=H}else l[f]=Ht(R,r[f]),de(e,o[u],R),o[y]=null;f++}else Pi(o[p]),p--;else Pi(o[u]),u++;for(;f<=g;){const y=de(e,l[g+1]);Ht(y,r[f]),l[f++]=y}for(;u<=p;){const y=o[u++];y!==null&&Pi(y)}return this.ut=s,On(e,l),dt}});/**
|
|
36
36
|
* wms-capabilities @0.6.0
|
|
37
37
|
* @description WMS service Capabilities > JSON, based on openlayers
|
|
38
38
|
* @license BSD-2-Clause
|
|
39
39
|
* @preserve
|
|
40
|
-
*/var E=e=>e!==void 0,
|
|
40
|
+
*/var E=e=>e!==void 0,Rn=(e,t,i)=>t in e?e[t]:e[t]=i;const ue={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12};class cr{constructor(t){this._parser=new t}toDocument(t){return this._parser.parseFromString(t,"application/xml")}getAllTextContent(t,i){return Pe(t,i).join("")}}function Pe(e,t){return Ln(e,t,[]).join("")}function Ln(e,t,i){if(e.nodeType===ue.CDATA_SECTION||e.nodeType===ue.TEXT)t?i.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g,"")):i.push(e.nodeValue);else{var n;for(n=e.firstChild;n;n=n.nextSibling)Ln(n,t,i)}return i}function hr(e,t,i,n){for(var o=pr(t);o;o=fr(o)){var r=o.namespaceURI||null,s=e[r];if(E(s)){var a=s[o.localName];E(a)&&a.call(n,o,i)}}}function pr(e){let t=e.firstElementChild||e.firstChild;for(;t&&t.nodeType!==ue.ELEMENT;)t=t.nextSibling;return t}function fr(e){let t=e.nextElementSibling||e.nextSibling;for(;t&&t.nodeType!==ue.ELEMENT;)t=t.nextSibling;return t}function q(e,t,i){return gr(e,t,i)}function gr(e,t,i){var n=E(i)?i:{},o,r;for(o=0,r=e.length;o<r;++o)n[e[o]]=t;return n}function Mn(e,t){return function(i,n){var o=e.call(E(t)?t:this,i,n);if(E(o)){var r=n[n.length-1];r.push(o)}}}function X(e,t,i,n,o){return n.push(e),hr(t,i,n,o),n.pop()}function m(e,t,i){return function(n,o){let r=e.call(E(i)?i:this,n,o);if(E(r)){var s=o[o.length-1],a=E(t)?t:n.localName;s[a]=r}}}function ot(e,t,i){return function(n,o){var r=e.call(E(i)?i:this,n,o);if(E(r)){var s=o[o.length-1],a=E(t)?t:n.localName,l=Rn(s,a,[]);l.push(r)}}}const mr=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function yr(e){return e.replace(mr,"")}function Vt(e){const t=/^\s*(true|1)|(false|0)\s*$/.exec(e);if(t)return E(t[1])||!1}function Xt(e){return mt(Pe(e,!1))}function mt(e){const t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(e);if(t)return parseFloat(t[1])}function Oi(e){return Oe(Pe(e,!1))}function Oe(e){const t=/^\s*(\d+)\s*$/.exec(e);if(t)return parseInt(t[1],10)}function _(e){return yr(Pe(e,!1))}const br="http://www.w3.org/1999/xlink";function Di(e){return e.getAttributeNS(br,"href")}function vr(e,t){return X({},Xr,e,t)}function In(e){return[mt(e.getAttribute("minx")),mt(e.getAttribute("miny")),mt(e.getAttribute("maxx")),mt(e.getAttribute("maxy"))]}function wr(e,t){const i=In(e),n=[mt(e.getAttribute("resx")),mt(e.getAttribute("resy"))];return{crs:e.getAttribute("CRS")||e.getAttribute("SRS"),extent:i,res:n}}function $r(e,t){const i=In(e);if(!(!E(i[0])||!E(i[1])||!E(i[2])||!E(i[3])))return i}function xr(e,t){const i=parseFloat(e.getAttribute("min")),n=parseFloat(e.getAttribute("max"));return{min:i,max:n}}function Er(e,t){const i=X({},qr,e,t);if(!E(i))return;const n=i.westBoundLongitude,o=i.southBoundLatitude,r=i.eastBoundLongitude,s=i.northBoundLatitude;if(!(!E(n)||!E(o)||!E(r)||!E(s)))return[n,o,r,s]}function Sr(e,t){return X({},kr,e,t)}function Ar(e,t){return X({},Ur,e,t)}function _r(e,t){return X({},Fr,e,t)}function Cr(e,t){return X({},jr,e,t)}function Tr(e,t){return X({},Zr,e,t)}function Pr(e,t){return X([],zr,e,t)}function Or(e,t){const i=Vt(e.getAttribute("queryable"));return X({queryable:E(i)?i:!1},Vn,e,t)}function Dr(e,t){var i=t[t.length-1];const n=X({},Vn,e,t);if(!E(n))return;let o=Vt(e.getAttribute("queryable"));E(o)||(o=i.queryable),n.queryable=E(o)?o:!1;let r=Oe(e.getAttribute("cascaded"));E(r)||(r=i.cascaded),n.cascaded=r;let s=Vt(e.getAttribute("opaque"));E(s)||(s=i.opaque),n.opaque=E(s)?s:!1;let a=Vt(e.getAttribute("noSubsets"));E(a)||(a=i.noSubsets),n.noSubsets=E(a)?a:!1;let l=mt(e.getAttribute("fixedWidth"));E(l)||(l=i.fixedWidth),n.fixedWidth=l;let d=mt(e.getAttribute("fixedHeight"));E(d)||(d=i.fixedHeight),n.fixedHeight=d;const c=["Style","CRS","AuthorityURL"];for(let p=0,f=c.length;p<f;p++){const g=c[p],y=i[g];if(E(y)){let R=Rn(n,g,[]);R=R.concat(y),n[g]=R}}const u=["EX_GeographicBoundingBox","BoundingBox","Dimension","Attribution","MinScaleDenominator","MaxScaleDenominator"];for(let p=0,f=u.length;p<f;p++){const g=u[p],y=n[g];if(!E(y)){const R=i[g];n[g]=R}}return n}function Rr(e,t){return{name:e.getAttribute("name"),units:e.getAttribute("units"),unitSymbol:e.getAttribute("unitSymbol"),default:e.getAttribute("default"),multipleValues:Vt(e.getAttribute("multipleValues")),nearestValue:Vt(e.getAttribute("nearestValue")),current:Vt(e.getAttribute("current")),values:_(e)}}function yt(e,t){return X({},Qr,e,t)}function Lr(e,t){return X({},Yr,e,t)}function Mr(e,t){return X({},Gr,e,t)}function Ir(e,t){return X({},Jr,e,t)}function Ri(e,t){return X({},Wr,e,t)}function Nn(e,t){var i=yt(e,t);if(E(i)){const n=[Oe(e.getAttribute("width")),Oe(e.getAttribute("height"))];return i.size=n,i}}function Nr(e,t){var i=yt(e,t);if(E(i))return i.name=e.getAttribute("name"),i}function Hr(e,t){var i=yt(e,t);if(E(i))return i.type=e.getAttribute("type"),i}function Vr(e,t){return X({},Kr,e,t)}function Hn(e,t){return X([],ts,e,t)}const Y=[null,"http://www.opengis.net/wms"],Br=q(Y,{Service:m(Ar),Capability:m(Sr)}),kr=q(Y,{Request:m(Lr),Exception:m(Pr),Layer:m(Or)}),Ur=q(Y,{Name:m(_),Title:m(_),Abstract:m(_),KeywordList:m(Hn),OnlineResource:m(Di),ContactInformation:m(_r),Fees:m(_),AccessConstraints:m(_),LayerLimit:m(Oi),MaxWidth:m(Oi),MaxHeight:m(Oi)}),Fr=q(Y,{ContactPersonPrimary:m(Cr),ContactPosition:m(_),ContactAddress:m(Tr),ContactVoiceTelephone:m(_),ContactFacsimileTelephone:m(_),ContactElectronicMailAddress:m(_)}),jr=q(Y,{ContactPerson:m(_),ContactOrganization:m(_)}),Zr=q(Y,{AddressType:m(_),Address:m(_),City:m(_),StateOrProvince:m(_),PostCode:m(_),Country:m(_)}),zr=q(Y,{Format:Mn(_)}),Vn=q(Y,{Name:m(_),Title:m(_),Abstract:m(_),KeywordList:m(Hn),CRS:ot(_),SRS:ot(_),EX_GeographicBoundingBox:m(Er),LatLonBoundingBox:m($r),BoundingBox:ot(wr),Dimension:ot(Rr),Attribution:m(vr),AuthorityURL:ot(Nr),Identifier:ot(_),MetadataURL:ot(Hr),DataURL:ot(yt),FeatureListURL:ot(yt),Style:ot(Vr),MinScaleDenominator:m(Xt),MaxScaleDenominator:m(Xt),ScaleHint:m(xr),Layer:ot(Dr)}),Xr=q(Y,{Title:m(_),OnlineResource:m(Di),LogoURL:m(Nn)}),qr=q(Y,{westBoundLongitude:m(Xt),eastBoundLongitude:m(Xt),southBoundLatitude:m(Xt),northBoundLatitude:m(Xt)}),Yr=q(Y,{GetCapabilities:m(Ri),GetMap:m(Ri),GetFeatureInfo:m(Ri)}),Wr=q(Y,{Format:ot(_),DCPType:ot(Mr)}),Gr=q(Y,{HTTP:m(Ir)}),Jr=q(Y,{Get:m(yt),Post:m(yt)}),Kr=q(Y,{Name:m(_),Title:m(_),Abstract:m(_),LegendURL:ot(Nn),StyleSheetURL:m(yt),StyleURL:m(yt)}),Qr=q(Y,{Format:m(_),OnlineResource:m(Di)}),ts=q(Y,{Keyword:Mn(_)});class es{constructor(t,i){!i&&typeof window<"u"&&(i=window.DOMParser),this.version=void 0,this._parser=new cr(i),this._data=t}data(t){return this._data=t,this}toJSON(t){return t=t||this._data,this.parse(t)}parse(t){return this.readFromDocument(this._parser.toDocument(t))}readFromDocument(t){for(let i=t.firstChild;i;i=i.nextSibling)if(i.nodeType==ue.ELEMENT)return this.readFromNode(i);return null}readFromNode(t){return this.version=t.getAttribute("version"),X({version:this.version},Br,t,[])||null}}async function is(e){let t=new URL(e),i=t.searchParams;i.set("SERVICE","WMS"),i.set("REQUEST","GetCapabilities");let n=t.toString();const o=await fetch(n);if(o.ok){const r=await o.text();return new es(r).toJSON()}else throw new Error(`Error: ${o.status}`)}function Li(e){const t=/\b(?:wms|ows)\b/i,i=/{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;return t.test(e)?"TileWMS":i.test(e)?"XYZ":!1}function ns(e){const i=/^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(e),n=Li(e);return!!(e&&i&&n)}function Bn(e){return e.replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g,'"$2": ').replace(/,\s*}/g,"}").replace(/,\s*]/g,"]").replace(/\s*(\{|}|\[|\]|,)\s*/g,"$1").replaceAll('": //',"://")}function os(e){try{return JSON.parse(Bn(e)),!!e}catch{return!1}}function rs(e,t){const i=new URL(e).searchParams;Object.entries(t).forEach(([s,a])=>{typeof a=="object"&&!Array.isArray(a)&&a!==null?Object.keys(a).forEach(l=>{i.set(l,a[l])}):i.set(s,a)});const n=e.split("?")[0],o=i.toString();return`${n}?${o}`}/**!
|
|
41
41
|
* Sortable 1.15.3
|
|
42
42
|
* @author RubaXa <trash@rubaxa.org>
|
|
43
43
|
* @author owenm <owen23355@gmail.com>
|
|
44
44
|
* @license MIT
|
|
45
|
-
*/function ki(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ki(Object(n),!0).forEach(function(i){ss(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ki(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function De(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?De=function(t){return typeof t}:De=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},De(e)}function ss(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bt(){return bt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},bt.apply(this,arguments)}function as(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,r;for(r=0;r<i.length;r++)o=i[r],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function ls(e,t){if(e==null)return{};var n=as(e,t),i,o;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}var ds="1.15.3";function vt(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var wt=vt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ce=vt(/Edge/i),Ui=vt(/firefox/i),he=vt(/safari/i)&&!vt(/chrome/i)&&!vt(/android/i),Fi=vt(/iP(ad|od|hone)/i),ji=vt(/chrome/i)&&vt(/android/i),Zi={capture:!1,passive:!1};function P(e,t,n){e.addEventListener(t,n,!wt&&Zi)}function S(e,t,n){e.removeEventListener(t,n,!wt&&Zi)}function Re(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function zi(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function ct(e,t,n,i){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&Re(e,t):Re(e,t))||i&&e===n)return e;if(e===n)break}while(e=zi(e))}return null}var Xi=/\s+/g;function at(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(Xi," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(Xi," ")}}function v(e,t,n){var i=e&&e.style;if(i){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in i)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),i[t]=n+(typeof n=="string"?"":"px")}}function qt(e,t){var n="";if(typeof e=="string")n=e;else do{var i=v(e,"transform");i&&i!=="none"&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function qi(e,t,n){if(e){var i=e.getElementsByTagName(t),o=0,r=i.length;if(n)for(;o<r;o++)n(i[o],o);return i}return[]}function ft(){var e=document.scrollingElement;return e||document.documentElement}function U(e,t,n,i,o){if(!(!e.getBoundingClientRect&&e!==window)){var r,s,a,l,d,c,u;if(e!==window&&e.parentNode&&e!==ft()?(r=e.getBoundingClientRect(),s=r.top,a=r.left,l=r.bottom,d=r.right,c=r.height,u=r.width):(s=0,a=0,l=window.innerHeight,d=window.innerWidth,c=window.innerHeight,u=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!wt))do if(o&&o.getBoundingClientRect&&(v(o,"transform")!=="none"||n&&v(o,"position")!=="static")){var p=o.getBoundingClientRect();s-=p.top+parseInt(v(o,"border-top-width")),a-=p.left+parseInt(v(o,"border-left-width")),l=s+r.height,d=a+r.width;break}while(o=o.parentNode);if(i&&e!==window){var f=qt(o||e),g=f&&f.a,y=f&&f.d;f&&(s/=y,a/=g,u/=g,c/=y,l=s+c,d=a+u)}return{top:s,left:a,bottom:l,right:d,width:u,height:c}}}function Yi(e,t,n){for(var i=At(e,!0),o=U(e)[t];i;){var r=U(i)[n],s=void 0;if(s=o>=r,!s)return i;if(i===ft())break;i=At(i,!1)}return!1}function Yt(e,t,n,i){for(var o=0,r=0,s=e.children;r<s.length;){if(s[r].style.display!=="none"&&s[r]!==w.ghost&&(i||s[r]!==w.dragged)&&ct(s[r],n.draggable,e,!1)){if(o===t)return s[r];o++}r++}return null}function In(e,t){for(var n=e.lastElementChild;n&&(n===w.ghost||v(n,"display")==="none"||t&&!Re(n,t));)n=n.previousElementSibling;return n||null}function ut(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==w.clone&&(!t||Re(e,t))&&n++;return n}function Wi(e){var t=0,n=0,i=ft();if(e)do{var o=qt(e),r=o.a,s=o.d;t+=e.scrollLeft*r,n+=e.scrollTop*s}while(e!==i&&(e=e.parentNode));return[t,n]}function us(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[n][i])return Number(n)}return-1}function At(e,t){if(!e||!e.getBoundingClientRect)return ft();var n=e,i=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=v(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return ft();if(i||t)return n;i=!0}}while(n=n.parentNode);return ft()}function cs(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Nn(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var pe;function Gi(e,t){return function(){if(!pe){var n=arguments,i=this;n.length===1?e.call(i,n[0]):e.apply(i,n),pe=setTimeout(function(){pe=void 0},t)}}}function hs(){clearTimeout(pe),pe=void 0}function Ji(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Ki(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function Qi(e,t,n){var i={};return Array.from(e.children).forEach(function(o){var r,s,a,l;if(!(!ct(o,t.draggable,e,!1)||o.animated||o===n)){var d=U(o);i.left=Math.min((r=i.left)!==null&&r!==void 0?r:1/0,d.left),i.top=Math.min((s=i.top)!==null&&s!==void 0?s:1/0,d.top),i.right=Math.max((a=i.right)!==null&&a!==void 0?a:-1/0,d.right),i.bottom=Math.max((l=i.bottom)!==null&&l!==void 0?l:-1/0,d.bottom)}}),i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}var rt="Sortable"+new Date().getTime();function ps(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(o){if(!(v(o,"display")==="none"||o===w.ghost)){e.push({target:o,rect:U(o)});var r=pt({},e[e.length-1].rect);if(o.thisAnimationDuration){var s=qt(o,!0);s&&(r.top-=s.f,r.left-=s.e)}o.fromRect=r}})}},addAnimationState:function(i){e.push(i)},removeAnimationState:function(i){e.splice(us(e,{target:i}),1)},animateAll:function(i){var o=this;if(!this.options.animation){clearTimeout(t),typeof i=="function"&&i();return}var r=!1,s=0;e.forEach(function(a){var l=0,d=a.target,c=d.fromRect,u=U(d),p=d.prevFromRect,f=d.prevToRect,g=a.rect,y=qt(d,!0);y&&(u.top-=y.f,u.left-=y.e),d.toRect=u,d.thisAnimationDuration&&Nn(p,u)&&!Nn(c,u)&&(g.top-u.top)/(g.left-u.left)===(c.top-u.top)/(c.left-u.left)&&(l=gs(g,p,f,o.options)),Nn(u,c)||(d.prevFromRect=c,d.prevToRect=u,l||(l=o.options.animation),o.animate(d,g,u,l)),l&&(r=!0,s=Math.max(s,l),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},l),d.thisAnimationDuration=l)}),clearTimeout(t),r?t=setTimeout(function(){typeof i=="function"&&i()},s):typeof i=="function"&&i(),e=[]},animate:function(i,o,r,s){if(s){v(i,"transition",""),v(i,"transform","");var a=qt(this.el),l=a&&a.a,d=a&&a.d,c=(o.left-r.left)/(l||1),u=(o.top-r.top)/(d||1);i.animatingX=!!c,i.animatingY=!!u,v(i,"transform","translate3d("+c+"px,"+u+"px,0)"),this.forRepaintDummy=fs(i),v(i,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),v(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){v(i,"transition",""),v(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},s)}}}}function fs(e){return e.offsetWidth}function gs(e,t,n,i){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*i.animation}var Wt=[],Hn={initializeByDefault:!0},fe={mount:function(t){for(var n in Hn)Hn.hasOwnProperty(n)&&!(n in t)&&(t[n]=Hn[n]);Wt.forEach(function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Wt.push(t)},pluginEvent:function(t,n,i){var o=this;this.eventCanceled=!1,i.cancel=function(){o.eventCanceled=!0};var r=t+"Global";Wt.forEach(function(s){n[s.pluginName]&&(n[s.pluginName][r]&&n[s.pluginName][r](pt({sortable:n},i)),n.options[s.pluginName]&&n[s.pluginName][t]&&n[s.pluginName][t](pt({sortable:n},i)))})},initializePlugins:function(t,n,i,o){Wt.forEach(function(a){var l=a.pluginName;if(!(!t.options[l]&&!a.initializeByDefault)){var d=new a(t,n,t.options);d.sortable=t,d.options=t.options,t[l]=d,bt(i,d.defaults)}});for(var r in t.options)if(t.options.hasOwnProperty(r)){var s=this.modifyOption(t,r,t.options[r]);typeof s<"u"&&(t.options[r]=s)}},getEventProperties:function(t,n){var i={};return Wt.forEach(function(o){typeof o.eventProperties=="function"&&bt(i,o.eventProperties.call(n[o.pluginName],t))}),i},modifyOption:function(t,n,i){var o;return Wt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[n]=="function"&&(o=r.optionListeners[n].call(t[r.pluginName],i))}),o}};function ms(e){var t=e.sortable,n=e.rootEl,i=e.name,o=e.targetEl,r=e.cloneEl,s=e.toEl,a=e.fromEl,l=e.oldIndex,d=e.newIndex,c=e.oldDraggableIndex,u=e.newDraggableIndex,p=e.originalEvent,f=e.putSortable,g=e.extraEventProperties;if(t=t||n&&n[rt],!!t){var y,R=t.options,H="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!wt&&!ce?y=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(i,!0,!0)),y.to=s||n,y.from=a||n,y.item=o||n,y.clone=r,y.oldIndex=l,y.newIndex=d,y.oldDraggableIndex=c,y.newDraggableIndex=u,y.originalEvent=p,y.pullMode=f?f.lastPutMode:void 0;var k=pt(pt({},g),fe.getEventProperties(i,t));for(var nt in k)y[nt]=k[nt];n&&n.dispatchEvent(y),R[H]&&R[H].call(t,y)}}var ys=["evt"],st=function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.evt,r=ls(i,ys);fe.pluginEvent.bind(w)(t,n,pt({dragEl:h,parentEl:N,ghostEl:x,rootEl:M,nextEl:Bt,lastDownEl:Le,cloneEl:I,cloneHidden:_t,dragStarted:me,putSortable:W,activeSortable:w.active,originalEvent:o,oldIndex:Gt,oldDraggableIndex:ge,newIndex:lt,newDraggableIndex:Ct,hideGhostForTarget:so,unhideGhostForTarget:ao,cloneNowHidden:function(){_t=!0},cloneNowShown:function(){_t=!1},dispatchSortableEvent:function(a){et({sortable:n,name:a,originalEvent:o})}},r))};function et(e){ms(pt({putSortable:W,cloneEl:I,targetEl:h,rootEl:M,oldIndex:Gt,oldDraggableIndex:ge,newIndex:lt,newDraggableIndex:Ct},e))}var h,N,x,M,Bt,Le,I,_t,Gt,lt,ge,Ct,Me,W,Jt=!1,Ie=!1,Ne=[],kt,ht,Vn,Bn,to,eo,me,Kt,ye,be=!1,He=!1,Ve,Q,kn=[],Un=!1,Be=[],ke=typeof document<"u",Ue=Fi,no=ce||wt?"cssFloat":"float",bs=ke&&!ji&&!Fi&&"draggable"in document.createElement("div"),io=function(){if(ke){if(wt)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),oo=function(t,n){var i=v(t),o=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),r=Yt(t,0,n),s=Yt(t,1,n),a=r&&v(r),l=s&&v(s),d=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+U(r).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+U(s).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var u=a.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===u)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||d>=o&&i[no]==="none"||s&&i[no]==="none"&&d+c>o)?"vertical":"horizontal"},vs=function(t,n,i){var o=i?t.left:t.top,r=i?t.right:t.bottom,s=i?t.width:t.height,a=i?n.left:n.top,l=i?n.right:n.bottom,d=i?n.width:n.height;return o===a||r===l||o+s/2===a+d/2},ws=function(t,n){var i;return Ne.some(function(o){var r=o[rt].options.emptyInsertThreshold;if(!(!r||In(o))){var s=U(o),a=t>=s.left-r&&t<=s.right+r,l=n>=s.top-r&&n<=s.bottom+r;if(a&&l)return i=o}}),i},ro=function(t){function n(r,s){return function(a,l,d,c){var u=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(r==null&&(s||u))return!0;if(r==null||r===!1)return!1;if(s&&r==="clone")return r;if(typeof r=="function")return n(r(a,l,d,c),s)(a,l,d,c);var p=(s?a:l).options.group.name;return r===!0||typeof r=="string"&&r===p||r.join&&r.indexOf(p)>-1}}var i={},o=t.group;(!o||De(o)!="object")&&(o={name:o}),i.name=o.name,i.checkPull=n(o.pull,!0),i.checkPut=n(o.put),i.revertClone=o.revertClone,t.group=i},so=function(){!io&&x&&v(x,"display","none")},ao=function(){!io&&x&&v(x,"display","")};ke&&!ji&&document.addEventListener("click",function(e){if(Ie)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ie=!1,!1},!0);var Ut=function(t){if(h){t=t.touches?t.touches[0]:t;var n=ws(t.clientX,t.clientY);if(n){var i={};for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o]);i.target=i.rootEl=n,i.preventDefault=void 0,i.stopPropagation=void 0,n[rt]._onDragOver(i)}}},$s=function(t){h&&h.parentNode[rt]._isOutsideThisEl(t.target)};function w(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=bt({},t),e[rt]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return oo(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,a){s.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:w.supportPointer!==!1&&"PointerEvent"in window&&!he,emptyInsertThreshold:5};fe.initializePlugins(this,e,n);for(var i in n)!(i in t)&&(t[i]=n[i]);ro(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:bs,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?P(e,"pointerdown",this._onTapStart):(P(e,"mousedown",this._onTapStart),P(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(P(e,"dragover",this),P(e,"dragenter",this)),Ne.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),bt(this,ps())}w.prototype={constructor:w,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Kt=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,h):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,i=this.el,o=this.options,r=o.preventOnFilter,s=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(a||t).target,d=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=o.filter;if(Ps(i),!h&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||o.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&he&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=ct(l,o.draggable,i,!1),!(l&&l.animated)&&Le!==l)){if(Gt=ut(l),ge=ut(l,o.draggable),typeof c=="function"){if(c.call(this,t,l,this)){et({sortable:n,rootEl:d,name:"filter",targetEl:l,toEl:i,fromEl:i}),st("filter",n,{evt:t}),r&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(u){if(u=ct(d,u.trim(),i,!1),u)return et({sortable:n,rootEl:u,name:"filter",targetEl:l,fromEl:i,toEl:i}),st("filter",n,{evt:t}),!0}),c)){r&&t.cancelable&&t.preventDefault();return}o.handle&&!ct(d,o.handle,i,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,n,i){var o=this,r=o.el,s=o.options,a=r.ownerDocument,l;if(i&&!h&&i.parentNode===r){var d=U(i);if(M=r,h=i,N=h.parentNode,Bt=h.nextSibling,Le=i,Me=s.group,w.dragged=h,kt={target:h,clientX:(n||t).clientX,clientY:(n||t).clientY},to=kt.clientX-d.left,eo=kt.clientY-d.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,h.style["will-change"]="all",l=function(){if(st("delayEnded",o,{evt:t}),w.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Ui&&o.nativeDraggable&&(h.draggable=!0),o._triggerDragStart(t,n),et({sortable:o,name:"choose",originalEvent:t}),at(h,s.chosenClass,!0)},s.ignore.split(",").forEach(function(c){qi(h,c.trim(),Fn)}),P(a,"dragover",Ut),P(a,"mousemove",Ut),P(a,"touchmove",Ut),P(a,"mouseup",o._onDrop),P(a,"touchend",o._onDrop),P(a,"touchcancel",o._onDrop),Ui&&this.nativeDraggable&&(this.options.touchStartThreshold=4,h.draggable=!0),st("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(ce||wt))){if(w.eventCanceled){this._onDrop();return}P(a,"mouseup",o._disableDelayedDrag),P(a,"touchend",o._disableDelayedDrag),P(a,"touchcancel",o._disableDelayedDrag),P(a,"mousemove",o._delayedDragTouchMoveHandler),P(a,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&P(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(l,s.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){h&&Fn(h),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;S(t,"mouseup",this._disableDelayedDrag),S(t,"touchend",this._disableDelayedDrag),S(t,"touchcancel",this._disableDelayedDrag),S(t,"mousemove",this._delayedDragTouchMoveHandler),S(t,"touchmove",this._delayedDragTouchMoveHandler),S(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?P(document,"pointermove",this._onTouchMove):n?P(document,"touchmove",this._onTouchMove):P(document,"mousemove",this._onTouchMove):(P(h,"dragend",this),P(M,"dragstart",this._onDragStart));try{document.selection?je(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Jt=!1,M&&h){st("dragStarted",this,{evt:n}),this.nativeDraggable&&P(document,"dragover",$s);var i=this.options;!t&&at(h,i.dragClass,!1),at(h,i.ghostClass,!0),w.active=this,t&&this._appendGhost(),et({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(ht){this._lastX=ht.clientX,this._lastY=ht.clientY,so();for(var t=document.elementFromPoint(ht.clientX,ht.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ht.clientX,ht.clientY),t!==n);)n=t;if(h.parentNode[rt]._isOutsideThisEl(t),n)do{if(n[rt]){var i=void 0;if(i=n[rt]._onDragOver({clientX:ht.clientX,clientY:ht.clientY,target:t,rootEl:n}),i&&!this.options.dragoverBubble)break}t=n}while(n=zi(n));ao()}},_onTouchMove:function(t){if(kt){var n=this.options,i=n.fallbackTolerance,o=n.fallbackOffset,r=t.touches?t.touches[0]:t,s=x&&qt(x,!0),a=x&&s&&s.a,l=x&&s&&s.d,d=Ue&&Q&&Wi(Q),c=(r.clientX-kt.clientX+o.x)/(a||1)+(d?d[0]-kn[0]:0)/(a||1),u=(r.clientY-kt.clientY+o.y)/(l||1)+(d?d[1]-kn[1]:0)/(l||1);if(!w.active&&!Jt){if(i&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(x){s?(s.e+=c-(Vn||0),s.f+=u-(Bn||0)):s={a:1,b:0,c:0,d:1,e:c,f:u};var p="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");v(x,"webkitTransform",p),v(x,"mozTransform",p),v(x,"msTransform",p),v(x,"transform",p),Vn=c,Bn=u,ht=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!x){var t=this.options.fallbackOnBody?document.body:M,n=U(h,!0,Ue,!0,t),i=this.options;if(Ue){for(Q=t;v(Q,"position")==="static"&&v(Q,"transform")==="none"&&Q!==document;)Q=Q.parentNode;Q!==document.body&&Q!==document.documentElement?(Q===document&&(Q=ft()),n.top+=Q.scrollTop,n.left+=Q.scrollLeft):Q=ft(),kn=Wi(Q)}x=h.cloneNode(!0),at(x,i.ghostClass,!1),at(x,i.fallbackClass,!0),at(x,i.dragClass,!0),v(x,"transition",""),v(x,"transform",""),v(x,"box-sizing","border-box"),v(x,"margin",0),v(x,"top",n.top),v(x,"left",n.left),v(x,"width",n.width),v(x,"height",n.height),v(x,"opacity","0.8"),v(x,"position",Ue?"absolute":"fixed"),v(x,"zIndex","100000"),v(x,"pointerEvents","none"),w.ghost=x,t.appendChild(x),v(x,"transform-origin",to/parseInt(x.style.width)*100+"% "+eo/parseInt(x.style.height)*100+"%")}},_onDragStart:function(t,n){var i=this,o=t.dataTransfer,r=i.options;if(st("dragStart",this,{evt:t}),w.eventCanceled){this._onDrop();return}st("setupClone",this),w.eventCanceled||(I=Ki(h),I.removeAttribute("id"),I.draggable=!1,I.style["will-change"]="",this._hideClone(),at(I,this.options.chosenClass,!1),w.clone=I),i.cloneId=je(function(){st("clone",i),!w.eventCanceled&&(i.options.removeCloneOnHide||M.insertBefore(I,h),i._hideClone(),et({sortable:i,name:"clone"}))}),!n&&at(h,r.dragClass,!0),n?(Ie=!0,i._loopId=setInterval(i._emulateDragOver,50)):(S(document,"mouseup",i._onDrop),S(document,"touchend",i._onDrop),S(document,"touchcancel",i._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(i,o,h)),P(document,"drop",i),v(h,"transform","translateZ(0)")),Jt=!0,i._dragStartId=je(i._dragStarted.bind(i,n,t)),P(document,"selectstart",i),me=!0,he&&v(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,i=t.target,o,r,s,a=this.options,l=a.group,d=w.active,c=Me===l,u=a.sort,p=W||d,f,g=this,y=!1;if(Un)return;function R(Ce,za){st(Ce,g,pt({evt:t,isOwner:c,axis:f?"vertical":"horizontal",revert:s,dragRect:o,targetRect:r,canSort:u,fromSortable:p,target:i,completed:k,onMove:function(No,Xa){return Fe(M,n,h,o,No,U(No),t,Xa)},changed:nt},za))}function H(){R("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function k(Ce){return R("dragOverCompleted",{insertion:Ce}),Ce&&(c?d._hideClone():d._showClone(g),g!==p&&(at(h,W?W.options.ghostClass:d.options.ghostClass,!1),at(h,a.ghostClass,!0)),W!==g&&g!==w.active?W=g:g===w.active&&W&&(W=null),p===g&&(g._ignoreWhileAnimating=i),g.animateAll(function(){R("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===h&&!h.animated||i===n&&!i.animated)&&(Kt=null),!a.dragoverBubble&&!t.rootEl&&i!==document&&(h.parentNode[rt]._isOutsideThisEl(t.target),!Ce&&Ut(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),y=!0}function nt(){lt=ut(h),Ct=ut(h,a.draggable),et({sortable:g,name:"change",toEl:n,newIndex:lt,newDraggableIndex:Ct,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),i=ct(i,a.draggable,n,!0),R("dragOver"),w.eventCanceled)return y;if(h.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||g._ignoreWhileAnimating===i)return k(!1);if(Ie=!1,d&&!a.disabled&&(c?u||(s=N!==M):W===this||(this.lastPutMode=Me.checkPull(this,d,h,t))&&l.checkPut(this,d,h,t))){if(f=this._getDirection(t,i)==="vertical",o=U(h),R("dragOverValid"),w.eventCanceled)return y;if(s)return N=M,H(),this._hideClone(),R("revert"),w.eventCanceled||(Bt?M.insertBefore(h,Bt):M.appendChild(h)),k(!0);var J=In(n,a.draggable);if(!J||As(t,f,this)&&!J.animated){if(J===h)return k(!1);if(J&&n===t.target&&(i=J),i&&(r=U(i)),Fe(M,n,h,o,i,r,t,!!i)!==!1)return H(),J&&J.nextSibling?n.insertBefore(h,J.nextSibling):n.appendChild(h),N=n,nt(),k(!0)}else if(J&&Ss(t,f,this)){var it=Yt(n,0,a,!0);if(it===h)return k(!1);if(i=it,r=U(i),Fe(M,n,h,o,i,r,t,!1)!==!1)return H(),n.insertBefore(h,it),N=n,nt(),k(!0)}else if(i.parentNode===n){r=U(i);var b=0,L,K=h.parentNode!==n,z=!vs(h.animated&&h.toRect||o,i.animated&&i.toRect||r,f),Se=f?"top":"left",Dt=Yi(i,"top","top")||Yi(h,"top","top"),Ae=Dt?Dt.scrollTop:void 0;Kt!==i&&(L=r[Se],be=!1,He=!z&&a.invertSwap||K),b=_s(t,i,r,f,z?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,He,Kt===i);var xt;if(b!==0){var Ft=ut(h);do Ft-=b,xt=N.children[Ft];while(xt&&(v(xt,"display")==="none"||xt===x))}if(b===0||xt===i)return k(!1);Kt=i,ye=b;var _e=i.nextElementSibling,Rt=!1;Rt=b===1;var yn=Fe(M,n,h,o,i,r,t,Rt);if(yn!==!1)return(yn===1||yn===-1)&&(Rt=yn===1),Un=!0,setTimeout(Es,30),H(),Rt&&!_e?n.appendChild(h):i.parentNode.insertBefore(h,Rt?_e:i),Dt&&Ji(Dt,0,Ae-Dt.scrollTop),N=h.parentNode,L!==void 0&&!He&&(Ve=Math.abs(L-U(i)[Se])),nt(),k(!0)}if(n.contains(h))return k(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){S(document,"mousemove",this._onTouchMove),S(document,"touchmove",this._onTouchMove),S(document,"pointermove",this._onTouchMove),S(document,"dragover",Ut),S(document,"mousemove",Ut),S(document,"touchmove",Ut)},_offUpEvents:function(){var t=this.el.ownerDocument;S(t,"mouseup",this._onDrop),S(t,"touchend",this._onDrop),S(t,"pointerup",this._onDrop),S(t,"touchcancel",this._onDrop),S(document,"selectstart",this)},_onDrop:function(t){var n=this.el,i=this.options;if(lt=ut(h),Ct=ut(h,i.draggable),st("drop",this,{evt:t}),N=h&&h.parentNode,lt=ut(h),Ct=ut(h,i.draggable),w.eventCanceled){this._nulling();return}Jt=!1,He=!1,be=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),jn(this.cloneId),jn(this._dragStartId),this.nativeDraggable&&(S(document,"drop",this),S(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),he&&v(document.body,"user-select",""),v(h,"transform",""),t&&(me&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),x&&x.parentNode&&x.parentNode.removeChild(x),(M===N||W&&W.lastPutMode!=="clone")&&I&&I.parentNode&&I.parentNode.removeChild(I),h&&(this.nativeDraggable&&S(h,"dragend",this),Fn(h),h.style["will-change"]="",me&&!Jt&&at(h,W?W.options.ghostClass:this.options.ghostClass,!1),at(h,this.options.chosenClass,!1),et({sortable:this,name:"unchoose",toEl:N,newIndex:null,newDraggableIndex:null,originalEvent:t}),M!==N?(lt>=0&&(et({rootEl:N,name:"add",toEl:N,fromEl:M,originalEvent:t}),et({sortable:this,name:"remove",toEl:N,originalEvent:t}),et({rootEl:N,name:"sort",toEl:N,fromEl:M,originalEvent:t}),et({sortable:this,name:"sort",toEl:N,originalEvent:t})),W&&W.save()):lt!==Gt&<>=0&&(et({sortable:this,name:"update",toEl:N,originalEvent:t}),et({sortable:this,name:"sort",toEl:N,originalEvent:t})),w.active&&((lt==null||lt===-1)&&(lt=Gt,Ct=ge),et({sortable:this,name:"end",toEl:N,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){st("nulling",this),M=h=N=x=Bt=I=Le=_t=kt=ht=me=lt=Ct=Gt=ge=Kt=ye=W=Me=w.dragged=w.ghost=w.clone=w.active=null,Be.forEach(function(t){t.checked=!0}),Be.length=Vn=Bn=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":h&&(this._onDragOver(t),xs(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,i=this.el.children,o=0,r=i.length,s=this.options;o<r;o++)n=i[o],ct(n,s.draggable,this.el,!1)&&t.push(n.getAttribute(s.dataIdAttr)||Ts(n));return t},sort:function(t,n){var i={},o=this.el;this.toArray().forEach(function(r,s){var a=o.children[s];ct(a,this.options.draggable,o,!1)&&(i[r]=a)},this),n&&this.captureAnimationState(),t.forEach(function(r){i[r]&&(o.removeChild(i[r]),o.appendChild(i[r]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return ct(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var i=this.options;if(n===void 0)return i[t];var o=fe.modifyOption(this,t,n);typeof o<"u"?i[t]=o:i[t]=n,t==="group"&&ro(i)},destroy:function(){st("destroy",this);var t=this.el;t[rt]=null,S(t,"mousedown",this._onTapStart),S(t,"touchstart",this._onTapStart),S(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(S(t,"dragover",this),S(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ne.splice(Ne.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!_t){if(st("hideClone",this),w.eventCanceled)return;v(I,"display","none"),this.options.removeCloneOnHide&&I.parentNode&&I.parentNode.removeChild(I),_t=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(_t){if(st("showClone",this),w.eventCanceled)return;h.parentNode==M&&!this.options.group.revertClone?M.insertBefore(I,h):Bt?M.insertBefore(I,Bt):M.appendChild(I),this.options.group.revertClone&&this.animate(h,I),v(I,"display",""),_t=!1}}};function xs(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Fe(e,t,n,i,o,r,s,a){var l,d=e[rt],c=d.options.onMove,u;return window.CustomEvent&&!wt&&!ce?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=n,l.draggedRect=i,l.related=o||t,l.relatedRect=r||U(t),l.willInsertAfter=a,l.originalEvent=s,e.dispatchEvent(l),c&&(u=c.call(d,l,s)),u}function Fn(e){e.draggable=!1}function Es(){Un=!1}function Ss(e,t,n){var i=U(Yt(n.el,0,n.options,!0)),o=Qi(n.el,n.options,x),r=10;return t?e.clientX<o.left-r||e.clientY<i.top&&e.clientX<i.right:e.clientY<o.top-r||e.clientY<i.bottom&&e.clientX<i.left}function As(e,t,n){var i=U(In(n.el,n.options.draggable)),o=Qi(n.el,n.options,x),r=10;return t?e.clientX>o.right+r||e.clientY>i.bottom&&e.clientX>i.left:e.clientY>o.bottom+r||e.clientX>i.right&&e.clientY>i.top}function _s(e,t,n,i,o,r,s,a){var l=i?e.clientY:e.clientX,d=i?n.height:n.width,c=i?n.top:n.left,u=i?n.bottom:n.right,p=!1;if(!s){if(a&&Ve<d*o){if(!be&&(ye===1?l>c+d*r/2:l<u-d*r/2)&&(be=!0),be)p=!0;else if(ye===1?l<c+Ve:l>u-Ve)return-ye}else if(l>c+d*(1-o)/2&&l<u-d*(1-o)/2)return Cs(t)}return p=p||s,p&&(l<c+d*r/2||l>u-d*r/2)?l>c+d/2?1:-1:0}function Cs(e){return ut(h)<ut(e)?1:-1}function Ts(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function Ps(e){Be.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var i=t[n];i.checked&&Be.push(i)}}function je(e){return setTimeout(e,0)}function jn(e){return clearTimeout(e)}ke&&P(document,"touchmove",function(e){(w.active||Jt)&&e.cancelable&&e.preventDefault()}),w.utils={on:P,off:S,css:v,find:qi,is:function(t,n){return!!ct(t,n,t,!1)},extend:cs,throttle:Gi,closest:ct,toggleClass:at,clone:Ki,index:ut,nextTick:je,cancelNextTick:jn,detectDirection:oo,getChild:Yt,expando:rt},w.get=function(e){return e[rt]},w.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(w.utils=pt(pt({},w.utils),i.utils)),fe.mount(i)})},w.create=function(e,t){return new w(e,t)},w.version=ds;var F=[],ve,Zn,zn=!1,Xn,qn,Ze,we;function Os(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var i=n.originalEvent;this.sortable.nativeDraggable?P(document,"dragover",this._handleAutoScroll):this.options.supportPointer?P(document,"pointermove",this._handleFallbackAutoScroll):i.touches?P(document,"touchmove",this._handleFallbackAutoScroll):P(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var i=n.originalEvent;!this.options.dragOverBubble&&!i.rootEl&&this._handleAutoScroll(i)},drop:function(){this.sortable.nativeDraggable?S(document,"dragover",this._handleAutoScroll):(S(document,"pointermove",this._handleFallbackAutoScroll),S(document,"touchmove",this._handleFallbackAutoScroll),S(document,"mousemove",this._handleFallbackAutoScroll)),lo(),ze(),hs()},nulling:function(){Ze=Zn=ve=zn=we=Xn=qn=null,F.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,i){var o=this,r=(n.touches?n.touches[0]:n).clientX,s=(n.touches?n.touches[0]:n).clientY,a=document.elementFromPoint(r,s);if(Ze=n,i||this.options.forceAutoScrollFallback||ce||wt||he){Yn(n,this.options,a,i);var l=At(a,!0);zn&&(!we||r!==Xn||s!==qn)&&(we&&lo(),we=setInterval(function(){var d=At(document.elementFromPoint(r,s),!0);d!==l&&(l=d,ze()),Yn(n,o.options,d,i)},10),Xn=r,qn=s)}else{if(!this.options.bubbleScroll||At(a,!0)===ft()){ze();return}Yn(n,this.options,At(a,!1),!1)}}},bt(e,{pluginName:"scroll",initializeByDefault:!0})}function ze(){F.forEach(function(e){clearInterval(e.pid)}),F=[]}function lo(){clearInterval(we)}var Yn=Gi(function(e,t,n,i){if(t.scroll){var o=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,a=t.scrollSpeed,l=ft(),d=!1,c;Zn!==n&&(Zn=n,ze(),ve=t.scroll,c=t.scrollFn,ve===!0&&(ve=At(n,!0)));var u=0,p=ve;do{var f=p,g=U(f),y=g.top,R=g.bottom,H=g.left,k=g.right,nt=g.width,J=g.height,it=void 0,b=void 0,L=f.scrollWidth,K=f.scrollHeight,z=v(f),Se=f.scrollLeft,Dt=f.scrollTop;f===l?(it=nt<L&&(z.overflowX==="auto"||z.overflowX==="scroll"||z.overflowX==="visible"),b=J<K&&(z.overflowY==="auto"||z.overflowY==="scroll"||z.overflowY==="visible")):(it=nt<L&&(z.overflowX==="auto"||z.overflowX==="scroll"),b=J<K&&(z.overflowY==="auto"||z.overflowY==="scroll"));var Ae=it&&(Math.abs(k-o)<=s&&Se+nt<L)-(Math.abs(H-o)<=s&&!!Se),xt=b&&(Math.abs(R-r)<=s&&Dt+J<K)-(Math.abs(y-r)<=s&&!!Dt);if(!F[u])for(var Ft=0;Ft<=u;Ft++)F[Ft]||(F[Ft]={});(F[u].vx!=Ae||F[u].vy!=xt||F[u].el!==f)&&(F[u].el=f,F[u].vx=Ae,F[u].vy=xt,clearInterval(F[u].pid),(Ae!=0||xt!=0)&&(d=!0,F[u].pid=setInterval((function(){i&&this.layer===0&&w.active._onTouchMove(Ze);var _e=F[this.layer].vy?F[this.layer].vy*a:0,Rt=F[this.layer].vx?F[this.layer].vx*a:0;typeof c=="function"&&c.call(w.dragged.parentNode[rt],Rt,_e,e,Ze,F[this.layer].el)!=="continue"||Ji(F[this.layer].el,Rt,_e)}).bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==l&&(p=At(p,!1)));zn=d}},30),uo=function(t){var n=t.originalEvent,i=t.putSortable,o=t.dragEl,r=t.activeSortable,s=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(n){var d=i||r;a();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,u=document.elementFromPoint(c.clientX,c.clientY);l(),d&&!d.el.contains(u)&&(s("spill"),this.onSpill({dragEl:o,putSortable:i}))}};function Wn(){}Wn.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var o=Yt(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),i&&i.animateAll()},drop:uo},bt(Wn,{pluginName:"revertOnSpill"});function Gn(){}Gn.prototype={onSpill:function(t){var n=t.dragEl,i=t.putSortable,o=i||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:uo},bt(Gn,{pluginName:"removeOnSpill"}),w.mount(new Os),w.mount(Gn,Wn);const Ds=e=>{const t=e.item;let n=Array.prototype.slice.call(t.parentNode.childNodes);return n=n.filter(i=>i.nodeType!=Node.ELEMENT_NODE||!i.classList.contains("sortable-fallback")),n},Rs=(e,t,n,i,o,r)=>{const a=e.item.parentNode;for(const y of n)a.appendChild(y);if(e.oldIndex==e.newIndex)return;const l=i.getArray(),d=e.item.querySelector("eox-layercontrol-layer").layer.get(o),c=l.find(y=>y.get(o)===d),u=r.dataset.layer,p=l.find(y=>y.get(o)==u);let f,g;for(f=0;f<l.length;f++)if(l[f]==c){i.removeAt(f);break}for(g=0;g<l.length;g++)if(l[g]===p){f>g?i.insertAt(g,c):i.insertAt(g+1,c);break}t.requestUpdate()};function Ls(e,t,n,i){let o=[],r=null;e._sortable=w.create(e,{handle:".drag-handle",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",onStart:s=>o=Ds(s),onMove:s=>{r=s.related},onEnd:s=>Rs(s,i,o,t,n,r)})}function Ms(e,t,n,i){const o=e.getArray();let r=!1;o.forEach(s=>{const a=s.ol_uid;s.get(t)||(s.set(t,a),r=!0),s.get(n)||(s.set(n,`layer ${a}`),r=!0),r&&i.requestUpdate()})}function Jn(e,t,n){let i=[];const o=(r,s,a)=>{i=[...i,...r.filter(d=>d.get(s)===a)];const l=r.filter(d=>d.getLayers);return l.length>0&&l.forEach(d=>o(d.getLayers().getArray(),s,a)),i};return o(e,t,n),i}function Is(e,t,n){if(!e||!t)return!1;if(!co(e,n))return!0;const i=e.get("minZoom"),o=e.get("maxZoom"),r=t.getView().getZoom();return r>i&&r<o}function co(e,t){const n=e.get("minZoom"),i=e.get("maxZoom");return!!(t&&(n!==-1/0||i!==1/0))}function Ns(e,t){var o,r,s;return!e||!t?void 0:e.getLayers?"group":((s=(o=t.getInteractions().getArray().filter(a=>a.freehand_!==void 0).map(a=>a.source_))==null?void 0:o.ol_uid)==null?void 0:s.includes(e.getSource?(r=e.getSource())==null?void 0:r.ol_uid:void 0))?"draw":e.declutter_!==void 0?"vector":"raster"}const Hs=(e,t,n)=>{let i=t;return n.layer.getSource().getTileUrlFunction()&&(i||(i=n.layer.getSource().getTileUrlFunction()),n.layer.getSource().setTileUrlFunction((...o)=>rs(i(...o),e)),n.layer.getSource().setKey(new Date)),i};function Vs(e,t,n){const i="updateStyleVariables"in t,o="setStyle"in t,r=i?t.style_:n.style;let s=r==null?void 0:r.variables;if(s){const a=Kn(e);if(r.variables={...s,...a},i)t.updateStyleVariables(a);else if(o){const l=Bs(r);t.setStyle(l)}}}const Kn=e=>{const t={};for(const n in e)if(typeof e[n]=="object"&&e[n]!==null){const i=Kn(e[n]);for(const o in i)t[o]=i==null?void 0:i[o]}else t[n]=e==null?void 0:e[n];return t};function Bs(e){let t=e;if("variables"in e){let n=JSON.stringify(e);const{variables:i}=e;for(const o in i)typeof i[o]=="number"?n=n.replaceAll(`["var","${o}"]`,i[o]):n=n.replaceAll(`["var","${o}"]`,`"${i[o]}"`);t=JSON.parse(n)}return t}const ks=(e,t)=>{var n;if(e)return!("domainProperties"in e)||"domain"in e?{...e}:(n=Object.keys(e))==null?void 0:n.reduce((i,o)=>{if(o==="domainProperties"){const r=Kn(t);i.domain=e[o].map(s=>r[s])}else i[o]=e[o];return i},{})};function ho(e,t){var i;let n={};for(const o in e){const r=e[o].type;if(r&&r!=="object")n[o]=r==="number"?Number(t[o]):t[o];else if(typeof e[o]=="object"&&((i=e[o])!=null&&i.properties)){const s=ho(e[o].properties,t);Object.keys(s).length>0&&(n[o]=s)}}return n}function Us(e,t){var r,s,a,l,d;if(!t)return null;let n={},i="updateStyleVariables"in e?(r=e.style_)==null?void 0:r.variables:(s=t.style)==null?void 0:s.variables;if((t.type==="style"||t.style)&&i)n=i;else if((l=(a=e.getSource())==null?void 0:a.getTileUrlFunction)!=null&&l.call(a)){const c=new URL(e.getSource().getTileUrlFunction()([0,0,0]));n=Object.fromEntries(c.searchParams.entries())}else return null;const o=ho(((d=t.schema)==null?void 0:d.properties)||t.schema,n);return Object.keys(o).length?o:null}const Fs=(e,t)=>e==null?void 0:e.filter(n=>["remove","sort"].filter(i=>t!=null&&t.get("layerControlDisable")?i!=="sort":!0).includes(n)),js=(e,t)=>e==null?void 0:e.filter(n=>{let i=!0;return["remove","sort"].includes(n)&&(i=!1),n==="info"&&(i=t.get("description")),n==="config"&&(i=t.get("layerConfig")),n==="datetime"&&(i=t.get("layerDatetime")),n==="legend"&&(i=t.get("layerLegend")),i}),Zs=(e,t)=>$`
|
|
45
|
+
*/function kn(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),i.push.apply(i,n)}return i}function pt(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?kn(Object(i),!0).forEach(function(n){ss(e,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):kn(Object(i)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))})}return e}function De(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?De=function(t){return typeof t}:De=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},De(e)}function ss(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function bt(){return bt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},bt.apply(this,arguments)}function as(e,t){if(e==null)return{};var i={},n=Object.keys(e),o,r;for(r=0;r<n.length;r++)o=n[r],!(t.indexOf(o)>=0)&&(i[o]=e[o]);return i}function ls(e,t){if(e==null)return{};var i=as(e,t),n,o;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ds="1.15.3";function vt(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var wt=vt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ce=vt(/Edge/i),Un=vt(/firefox/i),he=vt(/safari/i)&&!vt(/chrome/i)&&!vt(/android/i),Fn=vt(/iP(ad|od|hone)/i),jn=vt(/chrome/i)&&vt(/android/i),Zn={capture:!1,passive:!1};function P(e,t,i){e.addEventListener(t,i,!wt&&Zn)}function S(e,t,i){e.removeEventListener(t,i,!wt&&Zn)}function Re(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function zn(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function ct(e,t,i,n){if(e){i=i||document;do{if(t!=null&&(t[0]===">"?e.parentNode===i&&Re(e,t):Re(e,t))||n&&e===i)return e;if(e===i)break}while(e=zn(e))}return null}var Xn=/\s+/g;function at(e,t,i){if(e&&t)if(e.classList)e.classList[i?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(Xn," ").replace(" "+t+" "," ");e.className=(n+(i?" "+t:"")).replace(Xn," ")}}function v(e,t,i){var n=e&&e.style;if(n){if(i===void 0)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(i=e.currentStyle),t===void 0?i:i[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=i+(typeof i=="string"?"":"px")}}function qt(e,t){var i="";if(typeof e=="string")i=e;else do{var n=v(e,"transform");n&&n!=="none"&&(i=n+" "+i)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(i)}function qn(e,t,i){if(e){var n=e.getElementsByTagName(t),o=0,r=n.length;if(i)for(;o<r;o++)i(n[o],o);return n}return[]}function ft(){var e=document.scrollingElement;return e||document.documentElement}function U(e,t,i,n,o){if(!(!e.getBoundingClientRect&&e!==window)){var r,s,a,l,d,c,u;if(e!==window&&e.parentNode&&e!==ft()?(r=e.getBoundingClientRect(),s=r.top,a=r.left,l=r.bottom,d=r.right,c=r.height,u=r.width):(s=0,a=0,l=window.innerHeight,d=window.innerWidth,c=window.innerHeight,u=window.innerWidth),(t||i)&&e!==window&&(o=o||e.parentNode,!wt))do if(o&&o.getBoundingClientRect&&(v(o,"transform")!=="none"||i&&v(o,"position")!=="static")){var p=o.getBoundingClientRect();s-=p.top+parseInt(v(o,"border-top-width")),a-=p.left+parseInt(v(o,"border-left-width")),l=s+r.height,d=a+r.width;break}while(o=o.parentNode);if(n&&e!==window){var f=qt(o||e),g=f&&f.a,y=f&&f.d;f&&(s/=y,a/=g,u/=g,c/=y,l=s+c,d=a+u)}return{top:s,left:a,bottom:l,right:d,width:u,height:c}}}function Yn(e,t,i){for(var n=At(e,!0),o=U(e)[t];n;){var r=U(n)[i],s=void 0;if(s=o>=r,!s)return n;if(n===ft())break;n=At(n,!1)}return!1}function Yt(e,t,i,n){for(var o=0,r=0,s=e.children;r<s.length;){if(s[r].style.display!=="none"&&s[r]!==w.ghost&&(n||s[r]!==w.dragged)&&ct(s[r],i.draggable,e,!1)){if(o===t)return s[r];o++}r++}return null}function Mi(e,t){for(var i=e.lastElementChild;i&&(i===w.ghost||v(i,"display")==="none"||t&&!Re(i,t));)i=i.previousElementSibling;return i||null}function ut(e,t){var i=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==w.clone&&(!t||Re(e,t))&&i++;return i}function Wn(e){var t=0,i=0,n=ft();if(e)do{var o=qt(e),r=o.a,s=o.d;t+=e.scrollLeft*r,i+=e.scrollTop*s}while(e!==n&&(e=e.parentNode));return[t,i]}function us(e,t){for(var i in e)if(e.hasOwnProperty(i)){for(var n in t)if(t.hasOwnProperty(n)&&t[n]===e[i][n])return Number(i)}return-1}function At(e,t){if(!e||!e.getBoundingClientRect)return ft();var i=e,n=!1;do if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var o=v(i);if(i.clientWidth<i.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||i.clientHeight<i.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!i.getBoundingClientRect||i===document.body)return ft();if(n||t)return i;n=!0}}while(i=i.parentNode);return ft()}function cs(e,t){if(e&&t)for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function Ii(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var pe;function Gn(e,t){return function(){if(!pe){var i=arguments,n=this;i.length===1?e.call(n,i[0]):e.apply(n,i),pe=setTimeout(function(){pe=void 0},t)}}}function hs(){clearTimeout(pe),pe=void 0}function Jn(e,t,i){e.scrollLeft+=t,e.scrollTop+=i}function Kn(e){var t=window.Polymer,i=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):i?i(e).clone(!0)[0]:e.cloneNode(!0)}function Qn(e,t,i){var n={};return Array.from(e.children).forEach(function(o){var r,s,a,l;if(!(!ct(o,t.draggable,e,!1)||o.animated||o===i)){var d=U(o);n.left=Math.min((r=n.left)!==null&&r!==void 0?r:1/0,d.left),n.top=Math.min((s=n.top)!==null&&s!==void 0?s:1/0,d.top),n.right=Math.max((a=n.right)!==null&&a!==void 0?a:-1/0,d.right),n.bottom=Math.max((l=n.bottom)!==null&&l!==void 0?l:-1/0,d.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var rt="Sortable"+new Date().getTime();function ps(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(o){if(!(v(o,"display")==="none"||o===w.ghost)){e.push({target:o,rect:U(o)});var r=pt({},e[e.length-1].rect);if(o.thisAnimationDuration){var s=qt(o,!0);s&&(r.top-=s.f,r.left-=s.e)}o.fromRect=r}})}},addAnimationState:function(n){e.push(n)},removeAnimationState:function(n){e.splice(us(e,{target:n}),1)},animateAll:function(n){var o=this;if(!this.options.animation){clearTimeout(t),typeof n=="function"&&n();return}var r=!1,s=0;e.forEach(function(a){var l=0,d=a.target,c=d.fromRect,u=U(d),p=d.prevFromRect,f=d.prevToRect,g=a.rect,y=qt(d,!0);y&&(u.top-=y.f,u.left-=y.e),d.toRect=u,d.thisAnimationDuration&&Ii(p,u)&&!Ii(c,u)&&(g.top-u.top)/(g.left-u.left)===(c.top-u.top)/(c.left-u.left)&&(l=gs(g,p,f,o.options)),Ii(u,c)||(d.prevFromRect=c,d.prevToRect=u,l||(l=o.options.animation),o.animate(d,g,u,l)),l&&(r=!0,s=Math.max(s,l),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},l),d.thisAnimationDuration=l)}),clearTimeout(t),r?t=setTimeout(function(){typeof n=="function"&&n()},s):typeof n=="function"&&n(),e=[]},animate:function(n,o,r,s){if(s){v(n,"transition",""),v(n,"transform","");var a=qt(this.el),l=a&&a.a,d=a&&a.d,c=(o.left-r.left)/(l||1),u=(o.top-r.top)/(d||1);n.animatingX=!!c,n.animatingY=!!u,v(n,"transform","translate3d("+c+"px,"+u+"px,0)"),this.forRepaintDummy=fs(n),v(n,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),v(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){v(n,"transition",""),v(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},s)}}}}function fs(e){return e.offsetWidth}function gs(e,t,i,n){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-i.top,2)+Math.pow(t.left-i.left,2))*n.animation}var Wt=[],Ni={initializeByDefault:!0},fe={mount:function(t){for(var i in Ni)Ni.hasOwnProperty(i)&&!(i in t)&&(t[i]=Ni[i]);Wt.forEach(function(n){if(n.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Wt.push(t)},pluginEvent:function(t,i,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var r=t+"Global";Wt.forEach(function(s){i[s.pluginName]&&(i[s.pluginName][r]&&i[s.pluginName][r](pt({sortable:i},n)),i.options[s.pluginName]&&i[s.pluginName][t]&&i[s.pluginName][t](pt({sortable:i},n)))})},initializePlugins:function(t,i,n,o){Wt.forEach(function(a){var l=a.pluginName;if(!(!t.options[l]&&!a.initializeByDefault)){var d=new a(t,i,t.options);d.sortable=t,d.options=t.options,t[l]=d,bt(n,d.defaults)}});for(var r in t.options)if(t.options.hasOwnProperty(r)){var s=this.modifyOption(t,r,t.options[r]);typeof s<"u"&&(t.options[r]=s)}},getEventProperties:function(t,i){var n={};return Wt.forEach(function(o){typeof o.eventProperties=="function"&&bt(n,o.eventProperties.call(i[o.pluginName],t))}),n},modifyOption:function(t,i,n){var o;return Wt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[i]=="function"&&(o=r.optionListeners[i].call(t[r.pluginName],n))}),o}};function ms(e){var t=e.sortable,i=e.rootEl,n=e.name,o=e.targetEl,r=e.cloneEl,s=e.toEl,a=e.fromEl,l=e.oldIndex,d=e.newIndex,c=e.oldDraggableIndex,u=e.newDraggableIndex,p=e.originalEvent,f=e.putSortable,g=e.extraEventProperties;if(t=t||i&&i[rt],!!t){var y,R=t.options,H="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!wt&&!ce?y=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(n,!0,!0)),y.to=s||i,y.from=a||i,y.item=o||i,y.clone=r,y.oldIndex=l,y.newIndex=d,y.oldDraggableIndex=c,y.newDraggableIndex=u,y.originalEvent=p,y.pullMode=f?f.lastPutMode:void 0;var k=pt(pt({},g),fe.getEventProperties(n,t));for(var it in k)y[it]=k[it];i&&i.dispatchEvent(y),R[H]&&R[H].call(t,y)}}var ys=["evt"],st=function(t,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n.evt,r=ls(n,ys);fe.pluginEvent.bind(w)(t,i,pt({dragEl:h,parentEl:N,ghostEl:x,rootEl:M,nextEl:Bt,lastDownEl:Le,cloneEl:I,cloneHidden:_t,dragStarted:me,putSortable:W,activeSortable:w.active,originalEvent:o,oldIndex:Gt,oldDraggableIndex:ge,newIndex:lt,newDraggableIndex:Ct,hideGhostForTarget:so,unhideGhostForTarget:ao,cloneNowHidden:function(){_t=!0},cloneNowShown:function(){_t=!1},dispatchSortableEvent:function(a){et({sortable:i,name:a,originalEvent:o})}},r))};function et(e){ms(pt({putSortable:W,cloneEl:I,targetEl:h,rootEl:M,oldIndex:Gt,oldDraggableIndex:ge,newIndex:lt,newDraggableIndex:Ct},e))}var h,N,x,M,Bt,Le,I,_t,Gt,lt,ge,Ct,Me,W,Jt=!1,Ie=!1,Ne=[],kt,ht,Hi,Vi,to,eo,me,Kt,ye,be=!1,He=!1,Ve,Q,Bi=[],ki=!1,Be=[],ke=typeof document<"u",Ue=Fn,io=ce||wt?"cssFloat":"float",bs=ke&&!jn&&!Fn&&"draggable"in document.createElement("div"),no=function(){if(ke){if(wt)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),oo=function(t,i){var n=v(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=Yt(t,0,i),s=Yt(t,1,i),a=r&&v(r),l=s&&v(s),d=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+U(r).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+U(s).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var u=a.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===u)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||d>=o&&n[io]==="none"||s&&n[io]==="none"&&d+c>o)?"vertical":"horizontal"},vs=function(t,i,n){var o=n?t.left:t.top,r=n?t.right:t.bottom,s=n?t.width:t.height,a=n?i.left:i.top,l=n?i.right:i.bottom,d=n?i.width:i.height;return o===a||r===l||o+s/2===a+d/2},ws=function(t,i){var n;return Ne.some(function(o){var r=o[rt].options.emptyInsertThreshold;if(!(!r||Mi(o))){var s=U(o),a=t>=s.left-r&&t<=s.right+r,l=i>=s.top-r&&i<=s.bottom+r;if(a&&l)return n=o}}),n},ro=function(t){function i(r,s){return function(a,l,d,c){var u=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(r==null&&(s||u))return!0;if(r==null||r===!1)return!1;if(s&&r==="clone")return r;if(typeof r=="function")return i(r(a,l,d,c),s)(a,l,d,c);var p=(s?a:l).options.group.name;return r===!0||typeof r=="string"&&r===p||r.join&&r.indexOf(p)>-1}}var n={},o=t.group;(!o||De(o)!="object")&&(o={name:o}),n.name=o.name,n.checkPull=i(o.pull,!0),n.checkPut=i(o.put),n.revertClone=o.revertClone,t.group=n},so=function(){!no&&x&&v(x,"display","none")},ao=function(){!no&&x&&v(x,"display","")};ke&&!jn&&document.addEventListener("click",function(e){if(Ie)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ie=!1,!1},!0);var Ut=function(t){if(h){t=t.touches?t.touches[0]:t;var i=ws(t.clientX,t.clientY);if(i){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);n.target=n.rootEl=i,n.preventDefault=void 0,n.stopPropagation=void 0,i[rt]._onDragOver(n)}}},$s=function(t){h&&h.parentNode[rt]._isOutsideThisEl(t.target)};function w(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=bt({},t),e[rt]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return oo(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,a){s.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:w.supportPointer!==!1&&"PointerEvent"in window&&!he,emptyInsertThreshold:5};fe.initializePlugins(this,e,i);for(var n in i)!(n in t)&&(t[n]=i[n]);ro(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:bs,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?P(e,"pointerdown",this._onTapStart):(P(e,"mousedown",this._onTapStart),P(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(P(e,"dragover",this),P(e,"dragenter",this)),Ne.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),bt(this,ps())}w.prototype={constructor:w,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Kt=null)},_getDirection:function(t,i){return typeof this.options.direction=="function"?this.options.direction.call(this,t,i,h):this.options.direction},_onTapStart:function(t){if(t.cancelable){var i=this,n=this.el,o=this.options,r=o.preventOnFilter,s=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(a||t).target,d=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=o.filter;if(Ps(n),!h&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||o.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&he&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=ct(l,o.draggable,n,!1),!(l&&l.animated)&&Le!==l)){if(Gt=ut(l),ge=ut(l,o.draggable),typeof c=="function"){if(c.call(this,t,l,this)){et({sortable:i,rootEl:d,name:"filter",targetEl:l,toEl:n,fromEl:n}),st("filter",i,{evt:t}),r&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(u){if(u=ct(d,u.trim(),n,!1),u)return et({sortable:i,rootEl:u,name:"filter",targetEl:l,fromEl:n,toEl:n}),st("filter",i,{evt:t}),!0}),c)){r&&t.cancelable&&t.preventDefault();return}o.handle&&!ct(d,o.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,i,n){var o=this,r=o.el,s=o.options,a=r.ownerDocument,l;if(n&&!h&&n.parentNode===r){var d=U(n);if(M=r,h=n,N=h.parentNode,Bt=h.nextSibling,Le=n,Me=s.group,w.dragged=h,kt={target:h,clientX:(i||t).clientX,clientY:(i||t).clientY},to=kt.clientX-d.left,eo=kt.clientY-d.top,this._lastX=(i||t).clientX,this._lastY=(i||t).clientY,h.style["will-change"]="all",l=function(){if(st("delayEnded",o,{evt:t}),w.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Un&&o.nativeDraggable&&(h.draggable=!0),o._triggerDragStart(t,i),et({sortable:o,name:"choose",originalEvent:t}),at(h,s.chosenClass,!0)},s.ignore.split(",").forEach(function(c){qn(h,c.trim(),Ui)}),P(a,"dragover",Ut),P(a,"mousemove",Ut),P(a,"touchmove",Ut),P(a,"mouseup",o._onDrop),P(a,"touchend",o._onDrop),P(a,"touchcancel",o._onDrop),Un&&this.nativeDraggable&&(this.options.touchStartThreshold=4,h.draggable=!0),st("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||i)&&(!this.nativeDraggable||!(ce||wt))){if(w.eventCanceled){this._onDrop();return}P(a,"mouseup",o._disableDelayedDrag),P(a,"touchend",o._disableDelayedDrag),P(a,"touchcancel",o._disableDelayedDrag),P(a,"mousemove",o._delayedDragTouchMoveHandler),P(a,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&P(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(l,s.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var i=t.touches?t.touches[0]:t;Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){h&&Ui(h),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;S(t,"mouseup",this._disableDelayedDrag),S(t,"touchend",this._disableDelayedDrag),S(t,"touchcancel",this._disableDelayedDrag),S(t,"mousemove",this._delayedDragTouchMoveHandler),S(t,"touchmove",this._delayedDragTouchMoveHandler),S(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,i){i=i||t.pointerType=="touch"&&t,!this.nativeDraggable||i?this.options.supportPointer?P(document,"pointermove",this._onTouchMove):i?P(document,"touchmove",this._onTouchMove):P(document,"mousemove",this._onTouchMove):(P(h,"dragend",this),P(M,"dragstart",this._onDragStart));try{document.selection?je(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,i){if(Jt=!1,M&&h){st("dragStarted",this,{evt:i}),this.nativeDraggable&&P(document,"dragover",$s);var n=this.options;!t&&at(h,n.dragClass,!1),at(h,n.ghostClass,!0),w.active=this,t&&this._appendGhost(),et({sortable:this,name:"start",originalEvent:i})}else this._nulling()},_emulateDragOver:function(){if(ht){this._lastX=ht.clientX,this._lastY=ht.clientY,so();for(var t=document.elementFromPoint(ht.clientX,ht.clientY),i=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ht.clientX,ht.clientY),t!==i);)i=t;if(h.parentNode[rt]._isOutsideThisEl(t),i)do{if(i[rt]){var n=void 0;if(n=i[rt]._onDragOver({clientX:ht.clientX,clientY:ht.clientY,target:t,rootEl:i}),n&&!this.options.dragoverBubble)break}t=i}while(i=zn(i));ao()}},_onTouchMove:function(t){if(kt){var i=this.options,n=i.fallbackTolerance,o=i.fallbackOffset,r=t.touches?t.touches[0]:t,s=x&&qt(x,!0),a=x&&s&&s.a,l=x&&s&&s.d,d=Ue&&Q&&Wn(Q),c=(r.clientX-kt.clientX+o.x)/(a||1)+(d?d[0]-Bi[0]:0)/(a||1),u=(r.clientY-kt.clientY+o.y)/(l||1)+(d?d[1]-Bi[1]:0)/(l||1);if(!w.active&&!Jt){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(x){s?(s.e+=c-(Hi||0),s.f+=u-(Vi||0)):s={a:1,b:0,c:0,d:1,e:c,f:u};var p="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");v(x,"webkitTransform",p),v(x,"mozTransform",p),v(x,"msTransform",p),v(x,"transform",p),Hi=c,Vi=u,ht=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!x){var t=this.options.fallbackOnBody?document.body:M,i=U(h,!0,Ue,!0,t),n=this.options;if(Ue){for(Q=t;v(Q,"position")==="static"&&v(Q,"transform")==="none"&&Q!==document;)Q=Q.parentNode;Q!==document.body&&Q!==document.documentElement?(Q===document&&(Q=ft()),i.top+=Q.scrollTop,i.left+=Q.scrollLeft):Q=ft(),Bi=Wn(Q)}x=h.cloneNode(!0),at(x,n.ghostClass,!1),at(x,n.fallbackClass,!0),at(x,n.dragClass,!0),v(x,"transition",""),v(x,"transform",""),v(x,"box-sizing","border-box"),v(x,"margin",0),v(x,"top",i.top),v(x,"left",i.left),v(x,"width",i.width),v(x,"height",i.height),v(x,"opacity","0.8"),v(x,"position",Ue?"absolute":"fixed"),v(x,"zIndex","100000"),v(x,"pointerEvents","none"),w.ghost=x,t.appendChild(x),v(x,"transform-origin",to/parseInt(x.style.width)*100+"% "+eo/parseInt(x.style.height)*100+"%")}},_onDragStart:function(t,i){var n=this,o=t.dataTransfer,r=n.options;if(st("dragStart",this,{evt:t}),w.eventCanceled){this._onDrop();return}st("setupClone",this),w.eventCanceled||(I=Kn(h),I.removeAttribute("id"),I.draggable=!1,I.style["will-change"]="",this._hideClone(),at(I,this.options.chosenClass,!1),w.clone=I),n.cloneId=je(function(){st("clone",n),!w.eventCanceled&&(n.options.removeCloneOnHide||M.insertBefore(I,h),n._hideClone(),et({sortable:n,name:"clone"}))}),!i&&at(h,r.dragClass,!0),i?(Ie=!0,n._loopId=setInterval(n._emulateDragOver,50)):(S(document,"mouseup",n._onDrop),S(document,"touchend",n._onDrop),S(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(n,o,h)),P(document,"drop",n),v(h,"transform","translateZ(0)")),Jt=!0,n._dragStartId=je(n._dragStarted.bind(n,i,t)),P(document,"selectstart",n),me=!0,he&&v(document.body,"user-select","none")},_onDragOver:function(t){var i=this.el,n=t.target,o,r,s,a=this.options,l=a.group,d=w.active,c=Me===l,u=a.sort,p=W||d,f,g=this,y=!1;if(ki)return;function R(Ce,za){st(Ce,g,pt({evt:t,isOwner:c,axis:f?"vertical":"horizontal",revert:s,dragRect:o,targetRect:r,canSort:u,fromSortable:p,target:n,completed:k,onMove:function(No,Xa){return Fe(M,i,h,o,No,U(No),t,Xa)},changed:it},za))}function H(){R("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function k(Ce){return R("dragOverCompleted",{insertion:Ce}),Ce&&(c?d._hideClone():d._showClone(g),g!==p&&(at(h,W?W.options.ghostClass:d.options.ghostClass,!1),at(h,a.ghostClass,!0)),W!==g&&g!==w.active?W=g:g===w.active&&W&&(W=null),p===g&&(g._ignoreWhileAnimating=n),g.animateAll(function(){R("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(n===h&&!h.animated||n===i&&!n.animated)&&(Kt=null),!a.dragoverBubble&&!t.rootEl&&n!==document&&(h.parentNode[rt]._isOutsideThisEl(t.target),!Ce&&Ut(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),y=!0}function it(){lt=ut(h),Ct=ut(h,a.draggable),et({sortable:g,name:"change",toEl:i,newIndex:lt,newDraggableIndex:Ct,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),n=ct(n,a.draggable,i,!0),R("dragOver"),w.eventCanceled)return y;if(h.contains(t.target)||n.animated&&n.animatingX&&n.animatingY||g._ignoreWhileAnimating===n)return k(!1);if(Ie=!1,d&&!a.disabled&&(c?u||(s=N!==M):W===this||(this.lastPutMode=Me.checkPull(this,d,h,t))&&l.checkPut(this,d,h,t))){if(f=this._getDirection(t,n)==="vertical",o=U(h),R("dragOverValid"),w.eventCanceled)return y;if(s)return N=M,H(),this._hideClone(),R("revert"),w.eventCanceled||(Bt?M.insertBefore(h,Bt):M.appendChild(h)),k(!0);var J=Mi(i,a.draggable);if(!J||As(t,f,this)&&!J.animated){if(J===h)return k(!1);if(J&&i===t.target&&(n=J),n&&(r=U(n)),Fe(M,i,h,o,n,r,t,!!n)!==!1)return H(),J&&J.nextSibling?i.insertBefore(h,J.nextSibling):i.appendChild(h),N=i,it(),k(!0)}else if(J&&Ss(t,f,this)){var nt=Yt(i,0,a,!0);if(nt===h)return k(!1);if(n=nt,r=U(n),Fe(M,i,h,o,n,r,t,!1)!==!1)return H(),i.insertBefore(h,nt),N=i,it(),k(!0)}else if(n.parentNode===i){r=U(n);var b=0,L,K=h.parentNode!==i,z=!vs(h.animated&&h.toRect||o,n.animated&&n.toRect||r,f),Se=f?"top":"left",Dt=Yn(n,"top","top")||Yn(h,"top","top"),Ae=Dt?Dt.scrollTop:void 0;Kt!==n&&(L=r[Se],be=!1,He=!z&&a.invertSwap||K),b=_s(t,n,r,f,z?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,He,Kt===n);var xt;if(b!==0){var Ft=ut(h);do Ft-=b,xt=N.children[Ft];while(xt&&(v(xt,"display")==="none"||xt===x))}if(b===0||xt===n)return k(!1);Kt=n,ye=b;var _e=n.nextElementSibling,Rt=!1;Rt=b===1;var mi=Fe(M,i,h,o,n,r,t,Rt);if(mi!==!1)return(mi===1||mi===-1)&&(Rt=mi===1),ki=!0,setTimeout(Es,30),H(),Rt&&!_e?i.appendChild(h):n.parentNode.insertBefore(h,Rt?_e:n),Dt&&Jn(Dt,0,Ae-Dt.scrollTop),N=h.parentNode,L!==void 0&&!He&&(Ve=Math.abs(L-U(n)[Se])),it(),k(!0)}if(i.contains(h))return k(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){S(document,"mousemove",this._onTouchMove),S(document,"touchmove",this._onTouchMove),S(document,"pointermove",this._onTouchMove),S(document,"dragover",Ut),S(document,"mousemove",Ut),S(document,"touchmove",Ut)},_offUpEvents:function(){var t=this.el.ownerDocument;S(t,"mouseup",this._onDrop),S(t,"touchend",this._onDrop),S(t,"pointerup",this._onDrop),S(t,"touchcancel",this._onDrop),S(document,"selectstart",this)},_onDrop:function(t){var i=this.el,n=this.options;if(lt=ut(h),Ct=ut(h,n.draggable),st("drop",this,{evt:t}),N=h&&h.parentNode,lt=ut(h),Ct=ut(h,n.draggable),w.eventCanceled){this._nulling();return}Jt=!1,He=!1,be=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Fi(this.cloneId),Fi(this._dragStartId),this.nativeDraggable&&(S(document,"drop",this),S(i,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),he&&v(document.body,"user-select",""),v(h,"transform",""),t&&(me&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),x&&x.parentNode&&x.parentNode.removeChild(x),(M===N||W&&W.lastPutMode!=="clone")&&I&&I.parentNode&&I.parentNode.removeChild(I),h&&(this.nativeDraggable&&S(h,"dragend",this),Ui(h),h.style["will-change"]="",me&&!Jt&&at(h,W?W.options.ghostClass:this.options.ghostClass,!1),at(h,this.options.chosenClass,!1),et({sortable:this,name:"unchoose",toEl:N,newIndex:null,newDraggableIndex:null,originalEvent:t}),M!==N?(lt>=0&&(et({rootEl:N,name:"add",toEl:N,fromEl:M,originalEvent:t}),et({sortable:this,name:"remove",toEl:N,originalEvent:t}),et({rootEl:N,name:"sort",toEl:N,fromEl:M,originalEvent:t}),et({sortable:this,name:"sort",toEl:N,originalEvent:t})),W&&W.save()):lt!==Gt&<>=0&&(et({sortable:this,name:"update",toEl:N,originalEvent:t}),et({sortable:this,name:"sort",toEl:N,originalEvent:t})),w.active&&((lt==null||lt===-1)&&(lt=Gt,Ct=ge),et({sortable:this,name:"end",toEl:N,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){st("nulling",this),M=h=N=x=Bt=I=Le=_t=kt=ht=me=lt=Ct=Gt=ge=Kt=ye=W=Me=w.dragged=w.ghost=w.clone=w.active=null,Be.forEach(function(t){t.checked=!0}),Be.length=Hi=Vi=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":h&&(this._onDragOver(t),xs(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],i,n=this.el.children,o=0,r=n.length,s=this.options;o<r;o++)i=n[o],ct(i,s.draggable,this.el,!1)&&t.push(i.getAttribute(s.dataIdAttr)||Ts(i));return t},sort:function(t,i){var n={},o=this.el;this.toArray().forEach(function(r,s){var a=o.children[s];ct(a,this.options.draggable,o,!1)&&(n[r]=a)},this),i&&this.captureAnimationState(),t.forEach(function(r){n[r]&&(o.removeChild(n[r]),o.appendChild(n[r]))}),i&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,i){return ct(t,i||this.options.draggable,this.el,!1)},option:function(t,i){var n=this.options;if(i===void 0)return n[t];var o=fe.modifyOption(this,t,i);typeof o<"u"?n[t]=o:n[t]=i,t==="group"&&ro(n)},destroy:function(){st("destroy",this);var t=this.el;t[rt]=null,S(t,"mousedown",this._onTapStart),S(t,"touchstart",this._onTapStart),S(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(S(t,"dragover",this),S(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(i){i.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ne.splice(Ne.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!_t){if(st("hideClone",this),w.eventCanceled)return;v(I,"display","none"),this.options.removeCloneOnHide&&I.parentNode&&I.parentNode.removeChild(I),_t=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(_t){if(st("showClone",this),w.eventCanceled)return;h.parentNode==M&&!this.options.group.revertClone?M.insertBefore(I,h):Bt?M.insertBefore(I,Bt):M.appendChild(I),this.options.group.revertClone&&this.animate(h,I),v(I,"display",""),_t=!1}}};function xs(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Fe(e,t,i,n,o,r,s,a){var l,d=e[rt],c=d.options.onMove,u;return window.CustomEvent&&!wt&&!ce?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=i,l.draggedRect=n,l.related=o||t,l.relatedRect=r||U(t),l.willInsertAfter=a,l.originalEvent=s,e.dispatchEvent(l),c&&(u=c.call(d,l,s)),u}function Ui(e){e.draggable=!1}function Es(){ki=!1}function Ss(e,t,i){var n=U(Yt(i.el,0,i.options,!0)),o=Qn(i.el,i.options,x),r=10;return t?e.clientX<o.left-r||e.clientY<n.top&&e.clientX<n.right:e.clientY<o.top-r||e.clientY<n.bottom&&e.clientX<n.left}function As(e,t,i){var n=U(Mi(i.el,i.options.draggable)),o=Qn(i.el,i.options,x),r=10;return t?e.clientX>o.right+r||e.clientY>n.bottom&&e.clientX>n.left:e.clientY>o.bottom+r||e.clientX>n.right&&e.clientY>n.top}function _s(e,t,i,n,o,r,s,a){var l=n?e.clientY:e.clientX,d=n?i.height:i.width,c=n?i.top:i.left,u=n?i.bottom:i.right,p=!1;if(!s){if(a&&Ve<d*o){if(!be&&(ye===1?l>c+d*r/2:l<u-d*r/2)&&(be=!0),be)p=!0;else if(ye===1?l<c+Ve:l>u-Ve)return-ye}else if(l>c+d*(1-o)/2&&l<u-d*(1-o)/2)return Cs(t)}return p=p||s,p&&(l<c+d*r/2||l>u-d*r/2)?l>c+d/2?1:-1:0}function Cs(e){return ut(h)<ut(e)?1:-1}function Ts(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,i=t.length,n=0;i--;)n+=t.charCodeAt(i);return n.toString(36)}function Ps(e){Be.length=0;for(var t=e.getElementsByTagName("input"),i=t.length;i--;){var n=t[i];n.checked&&Be.push(n)}}function je(e){return setTimeout(e,0)}function Fi(e){return clearTimeout(e)}ke&&P(document,"touchmove",function(e){(w.active||Jt)&&e.cancelable&&e.preventDefault()}),w.utils={on:P,off:S,css:v,find:qn,is:function(t,i){return!!ct(t,i,t,!1)},extend:cs,throttle:Gn,closest:ct,toggleClass:at,clone:Kn,index:ut,nextTick:je,cancelNextTick:Fi,detectDirection:oo,getChild:Yt,expando:rt},w.get=function(e){return e[rt]},w.mount=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];t[0].constructor===Array&&(t=t[0]),t.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(w.utils=pt(pt({},w.utils),n.utils)),fe.mount(n)})},w.create=function(e,t){return new w(e,t)},w.version=ds;var F=[],ve,ji,Zi=!1,zi,Xi,Ze,we;function Os(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(i){var n=i.originalEvent;this.sortable.nativeDraggable?P(document,"dragover",this._handleAutoScroll):this.options.supportPointer?P(document,"pointermove",this._handleFallbackAutoScroll):n.touches?P(document,"touchmove",this._handleFallbackAutoScroll):P(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(i){var n=i.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?S(document,"dragover",this._handleAutoScroll):(S(document,"pointermove",this._handleFallbackAutoScroll),S(document,"touchmove",this._handleFallbackAutoScroll),S(document,"mousemove",this._handleFallbackAutoScroll)),lo(),ze(),hs()},nulling:function(){Ze=ji=ve=Zi=we=zi=Xi=null,F.length=0},_handleFallbackAutoScroll:function(i){this._handleAutoScroll(i,!0)},_handleAutoScroll:function(i,n){var o=this,r=(i.touches?i.touches[0]:i).clientX,s=(i.touches?i.touches[0]:i).clientY,a=document.elementFromPoint(r,s);if(Ze=i,n||this.options.forceAutoScrollFallback||ce||wt||he){qi(i,this.options,a,n);var l=At(a,!0);Zi&&(!we||r!==zi||s!==Xi)&&(we&&lo(),we=setInterval(function(){var d=At(document.elementFromPoint(r,s),!0);d!==l&&(l=d,ze()),qi(i,o.options,d,n)},10),zi=r,Xi=s)}else{if(!this.options.bubbleScroll||At(a,!0)===ft()){ze();return}qi(i,this.options,At(a,!1),!1)}}},bt(e,{pluginName:"scroll",initializeByDefault:!0})}function ze(){F.forEach(function(e){clearInterval(e.pid)}),F=[]}function lo(){clearInterval(we)}var qi=Gn(function(e,t,i,n){if(t.scroll){var o=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,a=t.scrollSpeed,l=ft(),d=!1,c;ji!==i&&(ji=i,ze(),ve=t.scroll,c=t.scrollFn,ve===!0&&(ve=At(i,!0)));var u=0,p=ve;do{var f=p,g=U(f),y=g.top,R=g.bottom,H=g.left,k=g.right,it=g.width,J=g.height,nt=void 0,b=void 0,L=f.scrollWidth,K=f.scrollHeight,z=v(f),Se=f.scrollLeft,Dt=f.scrollTop;f===l?(nt=it<L&&(z.overflowX==="auto"||z.overflowX==="scroll"||z.overflowX==="visible"),b=J<K&&(z.overflowY==="auto"||z.overflowY==="scroll"||z.overflowY==="visible")):(nt=it<L&&(z.overflowX==="auto"||z.overflowX==="scroll"),b=J<K&&(z.overflowY==="auto"||z.overflowY==="scroll"));var Ae=nt&&(Math.abs(k-o)<=s&&Se+it<L)-(Math.abs(H-o)<=s&&!!Se),xt=b&&(Math.abs(R-r)<=s&&Dt+J<K)-(Math.abs(y-r)<=s&&!!Dt);if(!F[u])for(var Ft=0;Ft<=u;Ft++)F[Ft]||(F[Ft]={});(F[u].vx!=Ae||F[u].vy!=xt||F[u].el!==f)&&(F[u].el=f,F[u].vx=Ae,F[u].vy=xt,clearInterval(F[u].pid),(Ae!=0||xt!=0)&&(d=!0,F[u].pid=setInterval((function(){n&&this.layer===0&&w.active._onTouchMove(Ze);var _e=F[this.layer].vy?F[this.layer].vy*a:0,Rt=F[this.layer].vx?F[this.layer].vx*a:0;typeof c=="function"&&c.call(w.dragged.parentNode[rt],Rt,_e,e,Ze,F[this.layer].el)!=="continue"||Jn(F[this.layer].el,Rt,_e)}).bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==l&&(p=At(p,!1)));Zi=d}},30),uo=function(t){var i=t.originalEvent,n=t.putSortable,o=t.dragEl,r=t.activeSortable,s=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(i){var d=n||r;a();var c=i.changedTouches&&i.changedTouches.length?i.changedTouches[0]:i,u=document.elementFromPoint(c.clientX,c.clientY);l(),d&&!d.el.contains(u)&&(s("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function Yi(){}Yi.prototype={startIndex:null,dragStart:function(t){var i=t.oldDraggableIndex;this.startIndex=i},onSpill:function(t){var i=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=Yt(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(i,o):this.sortable.el.appendChild(i),this.sortable.animateAll(),n&&n.animateAll()},drop:uo},bt(Yi,{pluginName:"revertOnSpill"});function Wi(){}Wi.prototype={onSpill:function(t){var i=t.dragEl,n=t.putSortable,o=n||this.sortable;o.captureAnimationState(),i.parentNode&&i.parentNode.removeChild(i),o.animateAll()},drop:uo},bt(Wi,{pluginName:"removeOnSpill"}),w.mount(new Os),w.mount(Wi,Yi);const Ds=e=>{const t=e.item;let i=Array.prototype.slice.call(t.parentNode.childNodes);return i=i.filter(n=>n.nodeType!=Node.ELEMENT_NODE||!n.classList.contains("sortable-fallback")),i},Rs=(e,t,i,n,o,r)=>{const a=e.item.parentNode;for(const y of i)a.appendChild(y);if(e.oldIndex==e.newIndex)return;const l=n.getArray(),d=e.item.querySelector("eox-layercontrol-layer").layer.get(o),c=l.find(y=>y.get(o)===d),u=r.dataset.layer,p=l.find(y=>y.get(o)==u);let f,g;for(f=0;f<l.length;f++)if(l[f]==c){n.removeAt(f);break}for(g=0;g<l.length;g++)if(l[g]===p){f>g?n.insertAt(g,c):n.insertAt(g+1,c);break}t.requestUpdate()};function Ls(e,t,i,n){let o=[],r=null;e._sortable=w.create(e,{handle:".drag-handle",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",onStart:s=>o=Ds(s),onMove:s=>{r=s.related},onEnd:s=>Rs(s,n,o,t,i,r)})}function Ms(e,t,i,n){const o=e.getArray();let r=!1;o.forEach(s=>{const a=s.ol_uid;s.get(t)||(s.set(t,a),r=!0),s.get(i)||(s.set(i,`layer ${a}`),r=!0),r&&n.requestUpdate()})}function Gi(e,t,i){let n=[];const o=(r,s,a)=>{n=[...n,...r.filter(d=>d.get(s)===a)];const l=r.filter(d=>d.getLayers);return l.length>0&&l.forEach(d=>o(d.getLayers().getArray(),s,a)),n};return o(e,t,i),n}function Is(e,t,i){if(!e||!t)return!1;if(!co(e,i))return!0;const n=e.get("minZoom"),o=e.get("maxZoom"),r=t.getView().getZoom();return r>n&&r<o}function co(e,t){const i=e.get("minZoom"),n=e.get("maxZoom");return!!(t&&(i!==-1/0||n!==1/0))}function Ns(e,t){var o,r,s;return!e||!t?void 0:e.getLayers?"group":((s=(o=t.getInteractions().getArray().filter(a=>a.freehand_!==void 0).map(a=>a.source_))==null?void 0:o.ol_uid)==null?void 0:s.includes(e.getSource?(r=e.getSource())==null?void 0:r.ol_uid:void 0))?"draw":e.declutter_!==void 0?"vector":"raster"}const Hs=(e,t,i)=>{let n=t;return i.layer.getSource().getTileUrlFunction()&&(n||(n=i.layer.getSource().getTileUrlFunction()),i.layer.getSource().setTileUrlFunction((...o)=>rs(n(...o),e)),i.layer.getSource().setKey(new Date)),n};function Vs(e,t,i){const n="updateStyleVariables"in t,o="setStyle"in t,r=n?t.style_:i.style;let s=r==null?void 0:r.variables;if(s){const a=Ji(e);if(r.variables={...s,...a},n)t.updateStyleVariables(a);else if(o){const l=Bs(r);t.setStyle(l)}}}const Ji=e=>{const t={};for(const i in e)if(typeof e[i]=="object"&&e[i]!==null){const n=Ji(e[i]);for(const o in n)t[o]=n==null?void 0:n[o]}else t[i]=e==null?void 0:e[i];return t};function Bs(e){let t=e;if("variables"in e){let i=JSON.stringify(e);const{variables:n}=e;for(const o in n)typeof n[o]=="number"?i=i.replaceAll(`["var","${o}"]`,n[o]):i=i.replaceAll(`["var","${o}"]`,`"${n[o]}"`);t=JSON.parse(i)}return t}const ks=(e,t)=>{var i;if(e)return!("domainProperties"in e)||"domain"in e?{...e}:(i=Object.keys(e))==null?void 0:i.reduce((n,o)=>{if(o==="domainProperties"){const r=Ji(t);n.domain=e[o].map(s=>r[s])}else n[o]=e[o];return n},{})};function ho(e,t){var n;let i={};for(const o in e){const r=e[o].type;if(r&&r!=="object")i[o]=r==="number"?Number(t[o]):t[o];else if(typeof e[o]=="object"&&((n=e[o])!=null&&n.properties)){const s=ho(e[o].properties,t);Object.keys(s).length>0&&(i[o]=s)}}return i}function Us(e,t){var r,s,a,l,d;if(!t)return null;let i={},n="updateStyleVariables"in e?(r=e.style_)==null?void 0:r.variables:(s=t.style)==null?void 0:s.variables;if((t.type==="style"||t.style)&&n)i=n;else if((l=(a=e.getSource())==null?void 0:a.getTileUrlFunction)!=null&&l.call(a)){const c=new URL(e.getSource().getTileUrlFunction()([0,0,0]));i=Object.fromEntries(c.searchParams.entries())}else return null;const o=ho(((d=t.schema)==null?void 0:d.properties)||t.schema,i);return Object.keys(o).length?o:null}const Fs=(e,t)=>e==null?void 0:e.filter(i=>["remove","sort"].filter(n=>t!=null&&t.get("layerControlDisable")?n!=="sort":!0).includes(i)),js=(e,t)=>e==null?void 0:e.filter(i=>{let n=!0;return["remove","sort"].includes(i)&&(n=!1),i==="info"&&(n=t.get("description")),i==="config"&&(n=t.get("layerConfig")),i==="datetime"&&(n=t.get("layerDatetime")),i==="legend"&&(n=t.get("layerLegend")),n}),Zs=(e,t)=>$`
|
|
46
46
|
<button slot="${e}-icon" class="icon">${t?e:T}</button>
|
|
47
47
|
`,zs=e=>$`
|
|
48
48
|
<button
|
|
@@ -55,23 +55,23 @@
|
|
|
55
55
|
<span class="button sort-icon icon drag-handle">
|
|
56
56
|
${e?"═":T}
|
|
57
57
|
</span>
|
|
58
|
-
`,po=e=>{var
|
|
58
|
+
`,po=e=>{var i;const t=["layerControlHide","layerControlOptional"];return(i=e==null?void 0:e.getArray())==null?void 0:i.filter(n=>t.every(o=>!n.get(o)))};/**
|
|
59
59
|
* @license
|
|
60
60
|
* Copyright 2020 Google LLC
|
|
61
61
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
62
|
-
*/const fo=
|
|
62
|
+
*/const fo=Ci(class extends Ti{constructor(e){if(super(e),e.type!==St.PROPERTY&&e.type!==St.ATTRIBUTE&&e.type!==St.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ar(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===dt||t===T)return t;const i=e.element,n=e.name;if(e.type===St.PROPERTY){if(t===i[n])return dt}else if(e.type===St.BOOLEAN_ATTRIBUTE){if(!!t===i.hasAttribute(n))return dt}else if(e.type===St.ATTRIBUTE&&i.getAttribute(n)===t+"")return dt;return On(e),t}});/**
|
|
63
63
|
* @license
|
|
64
64
|
* Copyright 2017 Google LLC
|
|
65
65
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
66
|
-
*/class
|
|
66
|
+
*/class Ki extends Ti{constructor(t){if(super(t),this.it=T,t.type!==St.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===T||t==null)return this._t=void 0,this.it=t;if(t===dt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Ki.directiveName="unsafeHTML",Ki.resultType=1;const qs=Ci(Ki);/**
|
|
67
67
|
* @license
|
|
68
68
|
* Copyright 2021 Google LLC
|
|
69
69
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
70
|
-
*/function*Xe(e,t){if(e!==void 0){let
|
|
70
|
+
*/function*Xe(e,t){if(e!==void 0){let i=0;for(const n of e)yield t(n,i++)}}var Tt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function go(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mo="Expected a function",yo=NaN,Ys="[object Symbol]",Ws=/^\s+|\s+$/g,Gs=/^[-+]0x[0-9a-f]+$/i,Js=/^0b[01]+$/i,Ks=/^0o[0-7]+$/i,Qs=parseInt,ta=typeof Tt=="object"&&Tt&&Tt.Object===Object&&Tt,ea=typeof self=="object"&&self&&self.Object===Object&&self,ia=ta||ea||Function("return this")(),na=Object.prototype,oa=na.toString,ra=Math.max,sa=Math.min,Qi=function(){return ia.Date.now()};function aa(e,t,i){var n,o,r,s,a,l,d=0,c=!1,u=!1,p=!0;if(typeof e!="function")throw new TypeError(mo);t=bo(t)||0,qe(i)&&(c=!!i.leading,u="maxWait"in i,r=u?ra(bo(i.maxWait)||0,t):r,p="trailing"in i?!!i.trailing:p);function f(b){var L=n,K=o;return n=o=void 0,d=b,s=e.apply(K,L),s}function g(b){return d=b,a=setTimeout(H,t),c?f(b):s}function y(b){var L=b-l,K=b-d,z=t-L;return u?sa(z,r-K):z}function R(b){var L=b-l,K=b-d;return l===void 0||L>=t||L<0||u&&K>=r}function H(){var b=Qi();if(R(b))return k(b);a=setTimeout(H,y(b))}function k(b){return a=void 0,p&&n?f(b):(n=o=void 0,s)}function it(){a!==void 0&&clearTimeout(a),d=0,n=l=o=a=void 0}function J(){return a===void 0?s:k(Qi())}function nt(){var b=Qi(),L=R(b);if(n=arguments,o=this,l=b,L){if(a===void 0)return g(l);if(u)return a=setTimeout(H,t),f(l)}return a===void 0&&(a=setTimeout(H,t)),s}return nt.cancel=it,nt.flush=J,nt}function la(e,t,i){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(mo);return qe(i)&&(n="leading"in i?!!i.leading:n,o="trailing"in i?!!i.trailing:o),aa(e,t,{leading:n,maxWait:t,trailing:o})}function qe(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function da(e){return!!e&&typeof e=="object"}function ua(e){return typeof e=="symbol"||da(e)&&oa.call(e)==Ys}function bo(e){if(typeof e=="number")return e;if(ua(e))return yo;if(qe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Ws,"");var i=Js.test(e);return i||Ks.test(e)?Qs(e.slice(2),i?2:8):Gs.test(e)?yo:+e}var ca=la;const vo=go(ca);/**
|
|
71
71
|
* @license
|
|
72
72
|
* Copyright 2018 Google LLC
|
|
73
73
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
74
|
-
*/const Ye=e=>e??T;class wo extends tt{constructor(){super();O(this,We,
|
|
74
|
+
*/const Ye=e=>e??T;class wo extends tt{constructor(){super();O(this,We,dn`
|
|
75
75
|
.legend-container {
|
|
76
76
|
display: flex;
|
|
77
77
|
justify-content: center;
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
</color-legend>
|
|
108
108
|
</div>
|
|
109
109
|
`)}
|
|
110
|
-
`}}We=new WeakMap,Ge=new WeakMap,V(wo,"properties",{unstyled:{type:Boolean},noShadow:{type:Boolean},layerLegend:{attribute:!1},layer:{attribute:!1}}),customElements.define("eox-layercontrol-layer-legend",wo);class $o extends tt{constructor(){super();O(this,xe);O(this,$t,{});O(this,Qt,null);O(this,$e);O(this,Je,
|
|
110
|
+
`}}We=new WeakMap,Ge=new WeakMap,V(wo,"properties",{unstyled:{type:Boolean},noShadow:{type:Boolean},layerLegend:{attribute:!1},layer:{attribute:!1}}),customElements.define("eox-layercontrol-layer-legend",wo);class $o extends tt{constructor(){super();O(this,xe);O(this,$t,{});O(this,Qt,null);O(this,$e);O(this,Je,dn`
|
|
111
111
|
color-legend {
|
|
112
112
|
--cle-background: transparent;
|
|
113
113
|
--cle-font-family: inherit;
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
--cle-font-weight: inherit --cle-letter-spacing: inherit;
|
|
116
116
|
--cle-letter-spacing-title: inherit;
|
|
117
117
|
}
|
|
118
|
-
`);O(this,Ke,"");this.layer=null,this.unstyled=!1,this.noShadow=!1,this.layerConfig=null,this.throttleDataChange=vo(j(this,xe,
|
|
118
|
+
`);O(this,Ke,"");this.layer=null,this.unstyled=!1,this.noShadow=!1,this.layerConfig=null,this.throttleDataChange=vo(j(this,xe,rn),1e3)}updated(i){if(i.has("layerConfig")){const n=this.layerConfig.type==="style"||this.layerConfig.style?100:1e3;this.throttleDataChange=vo(j(this,xe,rn),n),this.requestUpdate()}}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){ee(this,Qt,Us(this.layer,this.layerConfig)),Object.keys(A(this,$t)).length!==0&&ee(this,Qt,A(this,$t)),customElements.get("eox-jsonform")||console.error("Please import @eox/jsonform in order to use layerconfig");const i={disable_edit_json:!0,disable_collapse:!0,disable_properties:!0};return $`
|
|
119
119
|
<style>
|
|
120
120
|
${A(this,Je)}
|
|
121
121
|
${!this.unstyled&&A(this,Ke)}
|
|
@@ -133,14 +133,14 @@
|
|
|
133
133
|
<eox-jsonform
|
|
134
134
|
.schema=${this.layerConfig.schema}
|
|
135
135
|
.value=${A(this,Qt)}
|
|
136
|
-
.options=${
|
|
136
|
+
.options=${i}
|
|
137
137
|
@change=${this.throttleDataChange}
|
|
138
138
|
></eox-jsonform>
|
|
139
139
|
`)}
|
|
140
|
-
`}}$t=new WeakMap,Qt=new WeakMap,$e=new WeakMap,xe=new WeakSet,
|
|
140
|
+
`}}$t=new WeakMap,Qt=new WeakMap,$e=new WeakMap,xe=new WeakSet,rn=function(i){ee(this,$t,i.detail),this.layerConfig.type==="style"||this.layerConfig.style?"setStyle"in this.layer||"updateStyleVariables"in this.layer?Vs(A(this,$t),this.layer,this.layerConfig):console.error(`Layer type ${this.layer.get("type")??""} does not support styles configuration`):ee(this,$e,Hs(A(this,$t),A(this,$e),this)),this.requestUpdate()},Je=new WeakMap,Ke=new WeakMap,V($o,"properties",{layer:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},layerConfig:{attribute:!1}}),customElements.define("eox-layercontrol-layerconfig",$o);class xo extends tt{constructor(){super();O(this,Qe);O(this,ti,"");O(this,ei,"");this.unstyled=!1,this.noShadow=!1,this.layerDatetime=null,this.layer=null}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){return customElements.get("eox-timecontrol")||console.error("Please import @eox/timecontrol in order to use layerDatetime"),$`
|
|
141
141
|
<style>
|
|
142
|
-
${A(this,
|
|
143
|
-
${!this.unstyled&&A(this,
|
|
142
|
+
${A(this,ti)}
|
|
143
|
+
${!this.unstyled&&A(this,ei)}
|
|
144
144
|
</style>
|
|
145
145
|
${Z(this.layerDatetime,()=>$`
|
|
146
146
|
<!-- Render a Timecontrol for layer date time -->
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
@stepchange=${j(this,Qe,Vo)}
|
|
157
157
|
></eox-timecontrol>
|
|
158
158
|
`)}
|
|
159
|
-
`}}Qe=new WeakSet,Vo=function(
|
|
159
|
+
`}}Qe=new WeakSet,Vo=function(i){this.dispatchEvent(new CustomEvent("datetime:updated",{bubbles:!0,detail:{datetime:i.detail.currentStep,layer:this.layer}})),this.layerDatetime.currentStep=i.detail.currentStep,this.requestUpdate()},ti=new WeakMap,ei=new WeakMap,V(xo,"properties",{unstyled:{type:Boolean},noShadow:{type:Boolean},layerDatetime:{attribute:!1},layer:{attribute:!1}}),customElements.define("eox-layercontrol-layer-datetime",xo);class Eo extends tt{constructor(){super();O(this,Ee,i=>(this.selectedTab===i||this.toolsAsList)&&"highlighted");O(this,ii,`
|
|
160
160
|
.tabbed figure {
|
|
161
161
|
margin: 0;
|
|
162
162
|
}
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
.tabbed label.highlighted {
|
|
177
177
|
background: lightgrey;
|
|
178
178
|
}
|
|
179
|
-
`);O(this,
|
|
179
|
+
`);O(this,ni,`
|
|
180
180
|
.listed {
|
|
181
181
|
background: #ffffff !important;
|
|
182
182
|
display: flex;
|
|
@@ -202,10 +202,10 @@
|
|
|
202
202
|
background: #00417011;
|
|
203
203
|
border-top: 1px solid #0041701a;
|
|
204
204
|
}
|
|
205
|
-
`);this.actions=[],this.selectedTab=0,this.tabs=[],this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const
|
|
205
|
+
`);this.actions=[],this.selectedTab=0,this.tabs=[],this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const i=this.tabs,n=this.actions,o=n.length+i.length>1;return $`
|
|
206
206
|
<style>
|
|
207
|
-
${A(this,
|
|
208
|
-
${!this.unstyled&&A(this,
|
|
207
|
+
${A(this,ii)}
|
|
208
|
+
${!this.unstyled&&A(this,ni)}
|
|
209
209
|
</style>
|
|
210
210
|
<div class="tabbed">
|
|
211
211
|
<!-- Navigation for tabs and actions -->
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
${Z(!this.toolsAsList,()=>$`
|
|
215
215
|
<div>
|
|
216
216
|
<!-- Labels for tabs -->
|
|
217
|
-
${Xe(
|
|
217
|
+
${Xe(i,(r,s)=>$`
|
|
218
218
|
<label
|
|
219
219
|
class=${A(this,Ee).call(this,s)}
|
|
220
220
|
@click=${()=>this.selectedTab=s}
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
</div>
|
|
227
227
|
<div>
|
|
228
228
|
<!-- Icons for actions -->
|
|
229
|
-
${Xe(
|
|
229
|
+
${Xe(n,r=>$`
|
|
230
230
|
<span>
|
|
231
231
|
<!-- Customizable icon for each action -->
|
|
232
232
|
<slot name=${`${r}-icon`}>${r}</slot>
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
`)}
|
|
239
239
|
<figure>
|
|
240
240
|
<!-- Content for each tab -->
|
|
241
|
-
${Xe(
|
|
241
|
+
${Xe(i,(r,s)=>$`
|
|
242
242
|
${Z(this.toolsAsList,()=>$`
|
|
243
243
|
<label class="listed">
|
|
244
244
|
<!-- Customizable icon for each tab -->
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
`)}
|
|
253
253
|
</figure>
|
|
254
254
|
</div>
|
|
255
|
-
`}}Ee=new WeakMap,
|
|
255
|
+
`}}Ee=new WeakMap,ii=new WeakMap,ni=new WeakMap,V(Eo,"properties",{actions:{attribute:!1},selectedTab:{state:!0},tabs:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol-tools-items",Eo);const ha=`
|
|
256
256
|
button,
|
|
257
257
|
.button {
|
|
258
258
|
/* TODO: why does this only work here and not from :root? */
|
|
@@ -504,7 +504,7 @@ input[type="range"]:focus::-webkit-slider-thumb {
|
|
|
504
504
|
input::-moz-focus-inner, input::-moz-focus-outer {
|
|
505
505
|
border: 0;
|
|
506
506
|
}
|
|
507
|
-
`;class Ao extends tt{constructor(){super();V(this,"_removeButton",()=>zs(this));V(this,"_sortButton",()=>Xs(this.unstyled));V(this,"_button",
|
|
507
|
+
`;class Ao extends tt{constructor(){super();V(this,"_removeButton",()=>zs(this));V(this,"_sortButton",()=>Xs(this.unstyled));V(this,"_button",i=>Zs(i,this.unstyled));V(this,"_getDefaultTools",()=>{var i;return $`
|
|
508
508
|
<div slot="info-content">
|
|
509
509
|
${qs(this.layer.get("description"))}
|
|
510
510
|
</div>
|
|
@@ -515,8 +515,8 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
515
515
|
min="0"
|
|
516
516
|
max="1"
|
|
517
517
|
step="0.01"
|
|
518
|
-
value=${fo((
|
|
519
|
-
@input=${
|
|
518
|
+
value=${fo((i=this.layer)==null?void 0:i.getOpacity())}
|
|
519
|
+
@input=${n=>this.layer.setOpacity(parseFloat(n.target.value))}
|
|
520
520
|
/>
|
|
521
521
|
</div>
|
|
522
522
|
<div slot="config-content">
|
|
@@ -560,7 +560,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
560
560
|
</div>
|
|
561
561
|
<div slot="remove-icon">${this._removeButton()}</div>
|
|
562
562
|
<div slot="sort-icon">${this._sortButton()}</div>
|
|
563
|
-
`});O(this,
|
|
563
|
+
`});O(this,oi,"");O(this,ri,`
|
|
564
564
|
${ha}
|
|
565
565
|
${pa}
|
|
566
566
|
${So}
|
|
@@ -589,9 +589,9 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
589
589
|
position: absolute;
|
|
590
590
|
right: 0;
|
|
591
591
|
top: -24px;
|
|
592
|
-
|
|
593
|
-
border-radius: 4px;
|
|
592
|
+
height: 24px;
|
|
594
593
|
cursor: pointer;
|
|
594
|
+
display: var(--layer-tools-button-visibility);
|
|
595
595
|
}
|
|
596
596
|
.single-action .icon::before,
|
|
597
597
|
details.tools summary .icon::before {
|
|
@@ -671,10 +671,10 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
671
671
|
[slot=opacity-content] {
|
|
672
672
|
padding: 12px 6px;
|
|
673
673
|
}
|
|
674
|
-
`);this.layer=null,this.tools=[],this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var l;const
|
|
674
|
+
`);this.layer=null,this.tools=[],this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var l;const i=Fs(this.tools,this.layer),n=js(this.tools,this.layer),o=this[`_${i==null?void 0:i[0]}Button`]?this[`_${i==null?void 0:i[0]}Button`]():T,r=((l=this.tools)==null?void 0:l.length)===1?`${this.tools[0]}-icon`:"",s=i==null?void 0:i.length,a=n==null?void 0:n.length;return $`
|
|
675
675
|
<style>
|
|
676
|
-
${A(this,
|
|
677
|
-
${!this.unstyled&&A(this,
|
|
676
|
+
${A(this,oi)}
|
|
677
|
+
${!this.unstyled&&A(this,ri)}
|
|
678
678
|
</style>
|
|
679
679
|
${Z(s+a>0,()=>$`
|
|
680
680
|
${Z(s===1&&a===0,()=>$`
|
|
@@ -692,24 +692,28 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
692
692
|
<eox-layercontrol-tools-items
|
|
693
693
|
class="${this.toolsAsList?"tools-list":"tools-tab"}"
|
|
694
694
|
.noShadow=${!1}
|
|
695
|
-
.actions=${
|
|
696
|
-
.tabs=${
|
|
695
|
+
.actions=${i}
|
|
696
|
+
.tabs=${n}
|
|
697
697
|
.unstyled=${this.unstyled}
|
|
698
698
|
.toolsAsList=${this.toolsAsList}
|
|
699
699
|
>
|
|
700
700
|
<!-- Rendering tabs and content -->
|
|
701
|
-
${Xe(
|
|
701
|
+
${Xe(n,d=>this._button(d))}
|
|
702
702
|
<!-- Including default tools -->
|
|
703
703
|
${this._getDefaultTools()}
|
|
704
704
|
</eox-layercontrol-tools-items>
|
|
705
705
|
</details>
|
|
706
706
|
`)}
|
|
707
707
|
`)}
|
|
708
|
-
`}}
|
|
708
|
+
`}}oi=new WeakMap,ri=new WeakMap,V(Ao,"properties",{layer:{attribute:!1},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol-layer-tools",Ao);const ga=e=>{const t=()=>{const i=Is(e.layer,e.map,e.showLayerZoomState);let n=!1;!i&&e.currLayerVisibilityBasedOnZoom?(e.currLayerVisibilityBasedOnZoom=!1,n=!0):i&&!e.currLayerVisibilityBasedOnZoom&&(e.currLayerVisibilityBasedOnZoom=!0,n=!0),n&&(e.requestUpdate(),e.dispatchEvent(new CustomEvent("change:resolution",{bubbles:!0})))};co(e.layer,e.showLayerZoomState)&&(t(),e.map.getView().on("change:resolution",()=>t()))},ma=(e,t)=>{const i=t.layer;i.setVisible(e.target.checked),e.target.checked&&i.get("layerControlExclusive")&&t.closest(".layers > ul").querySelectorAll("eox-layercontrol-layer").forEach(o=>{var r;o.layer!==i&&((r=o.layer)!=null&&r.get("layerControlExclusive"))&&(o.layer.setVisible(!1),o.requestUpdate())}),t.dispatchEvent(new CustomEvent("changed",{bubbles:!0,detail:i})),t.requestUpdate()};class _o extends tt{constructor(){super();O(this,Pt);V(this,"currLayerVisibilityBasedOnZoom",!0);O(this,si,"");O(this,ai,`
|
|
709
709
|
${So}
|
|
710
710
|
eox-layercontrol-layer {
|
|
711
711
|
width: 100%;
|
|
712
712
|
}
|
|
713
|
+
.layer input[type=checkbox],
|
|
714
|
+
.layer input[type=radio] {
|
|
715
|
+
display: var(--layer-input-visibility);
|
|
716
|
+
}
|
|
713
717
|
.layer.zoom-state-invisible {
|
|
714
718
|
background: #d2e2ee;
|
|
715
719
|
opacity: 0.3;
|
|
@@ -719,17 +723,22 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
719
723
|
align-items: center;
|
|
720
724
|
justify-content: space-between;
|
|
721
725
|
padding: 4px 0;
|
|
726
|
+
display: var(--layer-visibility);
|
|
722
727
|
}
|
|
723
728
|
label, span {
|
|
724
729
|
display: flex;
|
|
725
730
|
align-items: center;
|
|
726
731
|
cursor: pointer;
|
|
727
732
|
}
|
|
733
|
+
.title {
|
|
734
|
+
display: var(--layer-title-visibility);
|
|
735
|
+
}
|
|
728
736
|
[data-type] .title::before {
|
|
729
737
|
width: 20px;
|
|
730
738
|
min-width: 20px;
|
|
731
739
|
height: 20px;
|
|
732
740
|
margin-right: 6px;
|
|
741
|
+
display: var(--layer-type-visibility);
|
|
733
742
|
}
|
|
734
743
|
[data-type=group] .title::before {
|
|
735
744
|
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230041703a' viewBox='0 0 24 24'%3E%3Ctitle%3Efolder-outline%3C/title%3E%3Cpath d='M20,18H4V8H20M20,6H12L10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6Z' /%3E%3C/svg%3E");
|
|
@@ -746,24 +755,24 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
746
755
|
[data-type=draw] .title::before {
|
|
747
756
|
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230041703a' viewBox='0 0 24 24'%3E%3Ctitle%3Evector-square-edit%3C/title%3E%3Cpath d='M22.7 14.4L21.7 15.4L19.6 13.3L20.6 12.3C20.8 12.1 21.2 12.1 21.4 12.3L22.7 13.6C22.9 13.8 22.9 14.1 22.7 14.4M13 19.9L19.1 13.8L21.2 15.9L15.1 22H13V19.9M11 19.9V19.1L11.6 18.5L12.1 18H8V16H6V8H8V6H16V8H18V12.1L19.1 11L19.3 10.8C19.5 10.6 19.8 10.4 20.1 10.3V8H22.1V2H16.1V4H8V2H2V8H4V16H2V22H8V20L11 19.9M18 4H20V6H18V4M4 4H6V6H4V4M6 20H4V18H6V20Z' /%3E%3C/svg%3E");
|
|
748
757
|
}
|
|
749
|
-
`);this.layer=null,this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=[],this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}firstUpdated(){ga(this)}render(){var l;const
|
|
758
|
+
`);this.layer=null,this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=[],this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}firstUpdated(){ga(this)}render(){var l;const i=this.layer.getVisible(),n=i?"visible":"",o=this.currLayerVisibilityBasedOnZoom?"":"zoom-state-invisible",r=j(this,Pt,yi).call(this,"layerControlDisable")?"disabled":"",s=j(this,Pt,yi).call(this,"layerControlExclusive")?"radio":"checkbox",a=((l=this.tools)==null?void 0:l.length)>0;return $`
|
|
750
759
|
<style>
|
|
751
|
-
${A(this,
|
|
752
|
-
${!this.unstyled&&A(this,
|
|
760
|
+
${A(this,si)}
|
|
761
|
+
${!this.unstyled&&A(this,ai)}
|
|
753
762
|
</style>
|
|
754
763
|
${Z(this.layer,()=>$`
|
|
755
764
|
<!-- Render the layer -->
|
|
756
|
-
<div class="layer ${
|
|
765
|
+
<div class="layer ${n} ${o}">
|
|
757
766
|
<label class="drag-handle ${r}">
|
|
758
767
|
<!-- Input element for layer visibility -->
|
|
759
768
|
<input
|
|
760
769
|
type=${s}
|
|
761
|
-
.checked=${fo(
|
|
770
|
+
.checked=${fo(i)}
|
|
762
771
|
@click=${j(this,Pt,Bo)}
|
|
763
772
|
/>
|
|
764
773
|
|
|
765
774
|
<!-- Layer title -->
|
|
766
|
-
<span class="title">${j(this,Pt,
|
|
775
|
+
<span class="title">${j(this,Pt,yi).call(this,this.titleProperty)}</span>
|
|
767
776
|
${Z(a,()=>$`<span class="tools-placeholder"></span>`)}
|
|
768
777
|
</label>
|
|
769
778
|
</div>
|
|
@@ -777,7 +786,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
777
786
|
.toolsAsList=${this.toolsAsList}
|
|
778
787
|
></eox-layercontrol-layer-tools>
|
|
779
788
|
`)}
|
|
780
|
-
`}}Pt=new WeakSet,
|
|
789
|
+
`}}Pt=new WeakSet,yi=function(i){var n;return(n=this.layer)==null?void 0:n.get(i)},Bo=function(i){ma(i,this)},si=new WeakMap,ai=new WeakMap,V(_o,"properties",{layer:{attribute:!1},map:{attribute:!1,state:!0},titleProperty:{attribute:"title-property",type:String},showLayerZoomState:{attribute:"show-layer-zoom-state",type:Boolean},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol-layer",_o);class Co extends tt{constructor(){super();O(this,li,"");O(this,di,`
|
|
781
790
|
details summary {
|
|
782
791
|
cursor: pointer;
|
|
783
792
|
display: flex;
|
|
@@ -786,7 +795,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
786
795
|
details summary::-webkit-details-marker { display: none; } /* Chrome */
|
|
787
796
|
details summary::marker { display: none; }
|
|
788
797
|
details summary::before {
|
|
789
|
-
display:
|
|
798
|
+
display: var(--layer-visibility);
|
|
790
799
|
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echevron-right%3C/title%3E%3Cpath d='M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z' /%3E%3C/svg%3E");
|
|
791
800
|
font-size: 13px;
|
|
792
801
|
width: 24px;
|
|
@@ -801,16 +810,16 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
801
810
|
details[data-children-length="0"] summary::before {
|
|
802
811
|
display: none;
|
|
803
812
|
}
|
|
804
|
-
`);this.group=null,this.idProperty="id",this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=[],this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var o,r;const
|
|
813
|
+
`);this.group=null,this.idProperty="id",this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=[],this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var o,r;const i=!!((o=this.group)!=null&&o.get("layerControlExpand")),n=(r=po(this.group.getLayers()))==null?void 0:r.length;return $`
|
|
805
814
|
<style>
|
|
806
|
-
${A(this,
|
|
807
|
-
${!this.unstyled&&A(this,
|
|
815
|
+
${A(this,li)}
|
|
816
|
+
${!this.unstyled&&A(this,di)}
|
|
808
817
|
</style>
|
|
809
818
|
${Z(this.group,()=>$`
|
|
810
819
|
<!-- Render the details element with the layer control -->
|
|
811
820
|
<details
|
|
812
|
-
open=${
|
|
813
|
-
data-children-length=${
|
|
821
|
+
open=${i||T}
|
|
822
|
+
data-children-length=${n}
|
|
814
823
|
>
|
|
815
824
|
<summary>
|
|
816
825
|
<!-- Render the layer control within the summary -->
|
|
@@ -842,13 +851,13 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
842
851
|
></eox-layercontrol-layer-list>
|
|
843
852
|
</details>
|
|
844
853
|
`)}
|
|
845
|
-
`}}
|
|
854
|
+
`}}li=new WeakMap,di=new WeakMap,V(Co,"properties",{group:{attribute:!1},idProperty:{attribute:"id-property"},map:{attribute:!1,state:!0},titleProperty:{attribute:"title-property",type:String},showLayerZoomState:{attribute:"show-layer-zoom-state",type:Boolean},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol-layer-group",Co);var ya="Expected a function",To=NaN,ba="[object Symbol]",va=/^\s+|\s+$/g,wa=/^[-+]0x[0-9a-f]+$/i,$a=/^0b[01]+$/i,xa=/^0o[0-7]+$/i,Ea=parseInt,Sa=typeof Tt=="object"&&Tt&&Tt.Object===Object&&Tt,Aa=typeof self=="object"&&self&&self.Object===Object&&self,_a=Sa||Aa||Function("return this")(),Ca=Object.prototype,Ta=Ca.toString,Pa=Math.max,Oa=Math.min,tn=function(){return _a.Date.now()};function Da(e,t,i){var n,o,r,s,a,l,d=0,c=!1,u=!1,p=!0;if(typeof e!="function")throw new TypeError(ya);t=Po(t)||0,en(i)&&(c=!!i.leading,u="maxWait"in i,r=u?Pa(Po(i.maxWait)||0,t):r,p="trailing"in i?!!i.trailing:p);function f(b){var L=n,K=o;return n=o=void 0,d=b,s=e.apply(K,L),s}function g(b){return d=b,a=setTimeout(H,t),c?f(b):s}function y(b){var L=b-l,K=b-d,z=t-L;return u?Oa(z,r-K):z}function R(b){var L=b-l,K=b-d;return l===void 0||L>=t||L<0||u&&K>=r}function H(){var b=tn();if(R(b))return k(b);a=setTimeout(H,y(b))}function k(b){return a=void 0,p&&n?f(b):(n=o=void 0,s)}function it(){a!==void 0&&clearTimeout(a),d=0,n=l=o=a=void 0}function J(){return a===void 0?s:k(tn())}function nt(){var b=tn(),L=R(b);if(n=arguments,o=this,l=b,L){if(a===void 0)return g(l);if(u)return a=setTimeout(H,t),f(l)}return a===void 0&&(a=setTimeout(H,t)),s}return nt.cancel=it,nt.flush=J,nt}function en(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Ra(e){return!!e&&typeof e=="object"}function La(e){return typeof e=="symbol"||Ra(e)&&Ta.call(e)==ba}function Po(e){if(typeof e=="number")return e;if(La(e))return To;if(en(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=en(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(va,"");var i=$a.test(e);return i||xa.test(e)?Ea(e.slice(2),i?2:8):wa.test(e)?To:+e}var Ma=Da;const Ia=go(Ma),Na=e=>{const{layers:t,idProperty:i,titleProperty:n,renderRoot:o}=e,r=Ia(()=>{e.requestUpdate(),e.dispatchEvent(new CustomEvent("changed",{bubbles:!0}))},50),s=()=>r();if(t&&(t.hasListener("change:length")&&(t==null||t.un("change:length",s)),t.on("change:length",s),t)){const a=o.querySelector("ul");Ms(t,i,n,e),Ls(a,t,i,e)}};class Oo extends tt{constructor(){super();O(this,ui,"");O(this,ci,`
|
|
846
855
|
ul {
|
|
847
856
|
padding: 0;
|
|
848
857
|
margin: 0;
|
|
849
858
|
}
|
|
850
859
|
ul ul {
|
|
851
|
-
padding-left:
|
|
860
|
+
padding-left: var(--list-padding);
|
|
852
861
|
}
|
|
853
862
|
li {
|
|
854
863
|
list-style: none;
|
|
@@ -856,6 +865,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
856
865
|
}
|
|
857
866
|
li {
|
|
858
867
|
border-bottom: 1px solid #0041703a;
|
|
868
|
+
border: var(--layer-visibility);
|
|
859
869
|
}
|
|
860
870
|
li:last-child {
|
|
861
871
|
border: none;
|
|
@@ -868,22 +878,22 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
868
878
|
}
|
|
869
879
|
li.sortable-ghost {
|
|
870
880
|
}
|
|
871
|
-
`);this.idProperty="id",this.layers=null,this.map=null,this.tools=void 0,this.titleProperty="title",this.showLayerZoomState=!1,this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}firstUpdated(){Na(this)}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const
|
|
881
|
+
`);this.idProperty="id",this.layers=null,this.map=null,this.tools=void 0,this.titleProperty="title",this.showLayerZoomState=!1,this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}firstUpdated(){Na(this)}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const i=this.layers?po(this.layers).reverse():[];return $`
|
|
872
882
|
<style>
|
|
873
|
-
${A(this,
|
|
874
|
-
${!this.unstyled&&A(this,
|
|
883
|
+
${A(this,ui)}
|
|
884
|
+
${!this.unstyled&&A(this,ci)}
|
|
875
885
|
</style>
|
|
876
886
|
<ul>
|
|
877
887
|
${Z(this.layers,()=>$`
|
|
878
|
-
${ur(n
|
|
888
|
+
${ur(i,n=>n,n=>$`
|
|
879
889
|
<li
|
|
880
|
-
data-layer="${
|
|
881
|
-
data-type="${Ns(
|
|
890
|
+
data-layer="${n.get(this.idProperty)}"
|
|
891
|
+
data-type="${Ns(n,this.map)}"
|
|
882
892
|
>
|
|
883
|
-
${
|
|
893
|
+
${n.getLayers?$`
|
|
884
894
|
<eox-layercontrol-layer-group
|
|
885
895
|
.noShadow=${!0}
|
|
886
|
-
.group=${
|
|
896
|
+
.group=${n}
|
|
887
897
|
.idProperty=${this.idProperty}
|
|
888
898
|
.map=${this.map}
|
|
889
899
|
.titleProperty=${this.titleProperty}
|
|
@@ -897,7 +907,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
897
907
|
`:$`
|
|
898
908
|
<eox-layercontrol-layer
|
|
899
909
|
.noShadow=${!0}
|
|
900
|
-
.layer=${
|
|
910
|
+
.layer=${n}
|
|
901
911
|
.map=${this.map}
|
|
902
912
|
.titleProperty=${this.titleProperty}
|
|
903
913
|
.showLayerZoomState=${this.showLayerZoomState}
|
|
@@ -911,7 +921,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
911
921
|
`)}
|
|
912
922
|
`)}
|
|
913
923
|
</ul>
|
|
914
|
-
`}}
|
|
924
|
+
`}}ui=new WeakMap,ci=new WeakMap,V(Oo,"properties",{idProperty:{attribute:"id-property"},layers:{attribute:!1},map:{attribute:!1,state:!0},titleProperty:{attribute:"title-property",type:String},showLayerZoomState:{attribute:"show-layer-zoom-state",type:Boolean},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol-layer-list",Oo);const Ha=e=>{const t=e.querySelector("select[name=optional]"),i=t?t.value:null,n=Gi(e.layers.getArray(),"layerControlOptional",!0).find(o=>(o.get(e.idProperty)||o.ol_uid)===i);n==null||n.set("layerControlOptional",!1),n==null||n.setVisible(!0),e.dispatchEvent(new CustomEvent("changed",{bubbles:!0})),e.renderRoot.parentNode.querySelectorAll("eox-layercontrol-layer-list").forEach(o=>o.requestUpdate()),e.requestUpdate()};class Do extends tt{constructor(){super();O(this,hi);this.idProperty="id",this.layers=null,this.titleProperty="title",this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const i=Gi(this.layers.getArray(),"layerControlOptional",!0);return $`
|
|
915
925
|
<!-- Label for the dropdown -->
|
|
916
926
|
<label for="optional">Optional layers</label>
|
|
917
927
|
|
|
@@ -923,19 +933,19 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
923
933
|
</option>
|
|
924
934
|
|
|
925
935
|
<!-- Mapping through filtered layers list to generate dropdown options -->
|
|
926
|
-
${
|
|
936
|
+
${i.map(n=>{const o=n.get(this.idProperty)||n.ol_uid,r=n.get(this.titleProperty),s=`layer ${n.get(this.idProperty)}`;return $` <option value="${o}">${r||s}</option> `})}
|
|
927
937
|
</select>
|
|
928
938
|
|
|
929
939
|
<!-- Button to handle adding layers -->
|
|
930
|
-
<button @click="${j(this,
|
|
931
|
-
`}}
|
|
940
|
+
<button @click="${j(this,hi,ko)}">add</button>
|
|
941
|
+
`}}hi=new WeakSet,ko=function(){Ha(this)},V(Do,"properties",{idProperty:{attribute:"id-property"},layers:{attribute:!1},titleProperty:{attribute:"title-property",type:String},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-optional-list",Do);const Va=(e,t)=>{t.jsonInput=e.target.value,t.requestUpdate()},Ro=e=>{const t=JSON.parse(`{"data":${Bn(e.jsonInput)}}`);Array.isArray(t.data)?t.data.forEach(i=>{e.eoxMap.addOrUpdateLayer(i)}):e.eoxMap.addOrUpdateLayer(t.data),e.jsonInput=null,e.requestUpdate()},Ba=(e,t)=>{t.urlInput=e.target.value,t.requestUpdate()};async function ka(e){const t=e.urlInput;if(e.wmsCapabilities=null,e.searchLoad=!0,e.requestUpdate(),!t)return!1;if(Li(t)==="XYZ")return{Name:t};try{const i=await is(t);e.wmsCapabilities=i}catch{}finally{e.searchLoad=!1,e.requestUpdate()}return!1}const Ua=(e,t)=>{const{Name:i}=e,n=Li(t.urlInput)||"XYZ",o={type:"Tile",properties:{id:i,title:i},source:{type:n,url:t.urlInput,params:{LAYERS:i}}};t.jsonInput=JSON.stringify(o)},Fa=(e,t)=>{t.open=e||null,t.urlInput=null,t.jsonInput=null,t.wmsCapabilities=null,t.requestUpdate()};class Lo extends tt{constructor(){super();O(this,G);V(this,"urlInput",null);V(this,"jsonInput",null);V(this,"open",null);V(this,"searchLoad",!1);V(this,"wmsCapabilities",null);O(this,pi,`
|
|
932
942
|
.eox-add-layer-main .open {
|
|
933
943
|
position: relative;
|
|
934
944
|
}
|
|
935
945
|
.eox-add-layer-main .close {
|
|
936
946
|
display: none;
|
|
937
947
|
}
|
|
938
|
-
`);O(this,
|
|
948
|
+
`);O(this,fi,`
|
|
939
949
|
.eox-add {
|
|
940
950
|
background: #f0f2f5;
|
|
941
951
|
border-top: 1px solid #0041701a;
|
|
@@ -1068,23 +1078,23 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
1068
1078
|
font-weight: bold;
|
|
1069
1079
|
display: inline-block;
|
|
1070
1080
|
}
|
|
1071
|
-
`);this.eoxMap=null,this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const
|
|
1081
|
+
`);this.eoxMap=null,this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const i=this.open?"open":"close",n=this.open==="url",o=this.open==="json",r=!ns(this.urlInput)||this.searchLoad?!0:T;return $`
|
|
1072
1082
|
<style>
|
|
1073
|
-
${A(this,
|
|
1074
|
-
${!this.unstyled&&A(this,
|
|
1083
|
+
${A(this,pi)}
|
|
1084
|
+
${!this.unstyled&&A(this,fi)}
|
|
1075
1085
|
</style>
|
|
1076
1086
|
<div class="eox-add-layer-main">
|
|
1077
1087
|
<div class="eox-add-layer-col">
|
|
1078
1088
|
<!-- Tabbed interface for URL and JSON -->
|
|
1079
|
-
<ul class="eox-add-layer-tab ${
|
|
1089
|
+
<ul class="eox-add-layer-tab ${i}">
|
|
1080
1090
|
<li
|
|
1081
|
-
@click=${()=>j(this,G,
|
|
1082
|
-
class="${
|
|
1091
|
+
@click=${()=>j(this,G,bi).call(this,"url")}
|
|
1092
|
+
class="${n?"active":""}"
|
|
1083
1093
|
>
|
|
1084
1094
|
URL
|
|
1085
1095
|
</li>
|
|
1086
1096
|
<li
|
|
1087
|
-
@click=${()=>j(this,G,
|
|
1097
|
+
@click=${()=>j(this,G,bi).call(this,"json")}
|
|
1088
1098
|
class="${o?"active":""}"
|
|
1089
1099
|
>
|
|
1090
1100
|
JSON
|
|
@@ -1094,13 +1104,13 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
1094
1104
|
<!-- Button to toggle tabs -->
|
|
1095
1105
|
<button
|
|
1096
1106
|
class="add-icon icon"
|
|
1097
|
-
@click=${()=>j(this,G,
|
|
1107
|
+
@click=${()=>j(this,G,bi).call(this,this.open?null:"url")}
|
|
1098
1108
|
>
|
|
1099
1109
|
${this.unstyled?"Add Layer":""}
|
|
1100
1110
|
</button>
|
|
1101
1111
|
</div>
|
|
1102
|
-
<div class="eox-add ${
|
|
1103
|
-
${
|
|
1112
|
+
<div class="eox-add ${i}">
|
|
1113
|
+
${n?$`
|
|
1104
1114
|
<!-- Input field for URL -->
|
|
1105
1115
|
<div class="eox-add-layer-col">
|
|
1106
1116
|
<input
|
|
@@ -1129,7 +1139,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
1129
1139
|
<!-- Button to add layer -->
|
|
1130
1140
|
<button
|
|
1131
1141
|
class="add-layer-icon icon"
|
|
1132
|
-
@click=${()=>j(this,G,
|
|
1142
|
+
@click=${()=>j(this,G,sn).call(this,s)}
|
|
1133
1143
|
>
|
|
1134
1144
|
${this.unstyled?"+":""}
|
|
1135
1145
|
</button>
|
|
@@ -1156,17 +1166,23 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
1156
1166
|
`}
|
|
1157
1167
|
</div>
|
|
1158
1168
|
</div>
|
|
1159
|
-
`}}G=new WeakSet,Uo=function(
|
|
1169
|
+
`}}G=new WeakSet,Uo=function(i){Ba(i,this)},Fo=async function(){const i=await ka(this);i&&j(this,G,sn).call(this,i)},sn=function(i){Ua(i,this),Ro(this)},jo=function(){Ro(this)},Zo=function(i){Va(i,this)},bi=function(i){Fa(i,this)},pi=new WeakMap,fi=new WeakMap,V(Lo,"properties",{eoxMap:{attribute:!1,state:!0},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-add-layers",Lo);const ja=(e,t)=>{if(t.requestUpdate(),e.target.tagName==="EOX-LAYERCONTROL-LAYER-TOOLS"){const i=t.renderRoot.querySelector("eox-layercontrol-optional-list");i==null||i.requestUpdate()}},Za=e=>{let t;return typeof e=="string"?t=document.querySelector(e):t=e,t},Mo=e=>{const t=Za(e.for);return t&&t.map!==e.map&&(e.map=t.map),t};class nn extends tt{constructor(){super();O(this,te);O(this,Ot);O(this,gi,`
|
|
1160
1170
|
:host, :root {
|
|
1161
1171
|
font-family: Roboto, sans-serif;
|
|
1162
1172
|
--padding: 0.5rem;
|
|
1173
|
+
--list-padding: 48px;
|
|
1174
|
+
--layer-input-visibility: flex;
|
|
1175
|
+
--layer-type-visibility: block;
|
|
1176
|
+
--layer-title-visibility: flex;
|
|
1177
|
+
--layer-visibility: block;
|
|
1178
|
+
--layer-tools-button-visibility: flex;
|
|
1163
1179
|
|
|
1164
1180
|
display: block;
|
|
1165
1181
|
padding: var(--padding) 0;
|
|
1166
1182
|
}
|
|
1167
|
-
`);this.for="eox-map",this.idProperty="id",this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=["info","opacity","datetime","config","remove","sort"],this.addExternalLayers=!1,this.unstyled=!1,this.styleOverride="",this.toolsAsList=!1}firstUpdated(){this.eoxMap=Mo(this)}updated(
|
|
1183
|
+
`);this.for="eox-map",this.idProperty="id",this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=["info","opacity","datetime","config","remove","sort"],this.addExternalLayers=!1,this.unstyled=!1,this.styleOverride="",this.toolsAsList=!1}firstUpdated(){this.eoxMap=Mo(this)}updated(i){i.has("for")&&(this.eoxMap=Mo(this))}get eoxMap(){return A(this,Ot)}set eoxMap(i){const n=A(this,Ot);ee(this,Ot,i),this.requestUpdate("eoxMap",n)}render(){var o,r,s;const i=(o=this.map)==null?void 0:o.getLayers().getArray(),n=i&&((r=Gi(i,"layerControlOptional",!0))==null?void 0:r.length)>0;return $`
|
|
1168
1184
|
<style>
|
|
1169
|
-
${!this.unstyled&&A(this,
|
|
1185
|
+
${!this.unstyled&&A(this,gi)}
|
|
1170
1186
|
${this.styleOverride}
|
|
1171
1187
|
</style>
|
|
1172
1188
|
|
|
@@ -1198,7 +1214,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
1198
1214
|
`)}
|
|
1199
1215
|
|
|
1200
1216
|
<!-- Conditional rendering of optional list component -->
|
|
1201
|
-
${Z(
|
|
1217
|
+
${Z(n,()=>$`
|
|
1202
1218
|
<eox-layercontrol-optional-list
|
|
1203
1219
|
.noShadow=${!0}
|
|
1204
1220
|
.idProperty=${this.idProperty}
|
|
@@ -1207,4 +1223,4 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
1207
1223
|
@changed=${()=>this.requestUpdate()}
|
|
1208
1224
|
></eox-layercontrol-optional-list>
|
|
1209
1225
|
`)}
|
|
1210
|
-
`}}Ot=new WeakMap,te=new WeakSet,zo=function(
|
|
1226
|
+
`}}Ot=new WeakMap,te=new WeakSet,zo=function(i){ja(i,this),this.dispatchEvent(new CustomEvent("layerchange",{detail:i.detail}))},Xo=function(i){this.dispatchEvent(new CustomEvent("datetime:updated",{detail:i.detail}))},gi=new WeakMap,V(nn,"properties",{for:{type:String},idProperty:{attribute:"id-property"},map:{attribute:!1,state:!0},titleProperty:{attribute:"title-property",type:String},showLayerZoomState:{attribute:"show-layer-zoom-state",type:Boolean},tools:{attribute:!1},addExternalLayers:{attribute:!1},unstyled:{type:Boolean},styleOverride:{type:String},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol",nn),D.EOxLayerControl=nn,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})});
|