@eox/layercontrol 0.26.0 → 0.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eox-layercontrol.js +202 -168
- package/dist/eox-layercontrol.umd.cjs +79 -50
- package/package.json +2 -2
- package/src/components/layer-legend.js +15 -5
- package/src/components/layer-tools.js +12 -2
- package/src/components/tools-items.js +29 -13
- package/src/main.js +5 -0
- package/types/layercontrol/src/components/layer-legend.d.ts +1 -0
- package/types/layercontrol/src/components/layer-legend.d.ts.map +1 -1
- package/types/layercontrol/src/components/layer-tools.d.ts.map +1 -1
- package/types/layercontrol/src/components/tools-items.d.ts.map +1 -1
- package/types/layercontrol/src/main.d.ts.map +1 -1
- package/types/map/src/helpers/select.d.ts +4 -1
- package/types/map/src/helpers/select.d.ts.map +1 -1
- package/types/map/types.d.ts +4 -0
- package/types/map/types.d.ts.map +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(R,P){typeof exports=="object"&&typeof module<"u"?P(exports):typeof define=="function"&&define.amd?define(["exports"],P):(R=typeof globalThis<"u"?globalThis:R||self,P(R["eox-layercontrol"]={}))})(this,function(R){"use strict";var wa=Object.defineProperty;var zo=R=>{throw TypeError(R)};var xa=(R,P,X)=>P in R?wa(R,P,{enumerable:!0,configurable:!0,writable:!0,value:X}):R[P]=X;var Z=(R,P,X)=>xa(R,typeof P!="symbol"?P+"":P,X),gn=(R,P,X)=>P.has(R)||zo("Cannot "+X);var T=(R,P,X)=>(gn(R,P,"read from private field"),X?X.call(R):P.get(R)),L=(R,P,X)=>P.has(R)?zo("Cannot add the same private member more than once"):P instanceof WeakSet?P.add(R):P.set(R,X),fe=(R,P,X,ie)=>(gn(R,P,"write to private field"),ie?ie.call(R,X):P.set(R,X),X),q=(R,P,X)=>(gn(R,P,"access private method"),X);/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/var Fo,ri,si,Mt,he,Ie,Ne,mn,ai,li,di,
|
|
5
|
+
*/var Fo,ri,si,Mt,he,Ie,Ne,mn,ai,li,di,Zo,ui,ci,He,hi,pi,fi,gi,Ct,ge,qo,mi,yi,bi,vi,wi,xi,Ei,Xo,st,Yo,Wo,yn,Go,Jo,Ti,$i,Si,Ft,pe,Ko,Qo,_i;const P=globalThis,X=P.ShadowRoot&&(P.ShadyCSS===void 0||P.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ie=Symbol(),bn=new WeakMap;let vn=class{constructor(t,e,n){if(this._$cssResult$=!0,n!==ie)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(X&&t===void 0){const n=e!==void 0&&e.length===1;n&&(t=bn.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&bn.set(e,t))}return t}toString(){return this.cssText}};const tr=i=>new vn(typeof i=="string"?i:i+"",void 0,ie),wn=(i,...t)=>{const e=i.length===1?i[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)+i[r+1],i[0]);return new vn(e,i,ie)},er=(i,t)=>{if(X)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const n=document.createElement("style"),o=P.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=e.cssText,i.appendChild(n)}},xn=X?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return tr(e)})(i):i;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const ye=globalThis,Be=ye.trustedTypes,_n=Be?Be.createPolicy("lit-html",{createHTML:i=>i}):void 0,Oi="$lit$",Tt=`lit$${Math.random().toFixed(9).slice(2)}$`,
|
|
14
|
-
\f\r]`,we=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Cn=/-->/g,Tn=/>/g,
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Dn=/'/g,Pn=/"/g,On=/^(?:script|style|textarea|title)$/i,ur=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),x=ur(1),xt=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),
|
|
13
|
+
*/const ye=globalThis,Be=ye.trustedTypes,_n=Be?Be.createPolicy("lit-html",{createHTML:i=>i}):void 0,Oi="$lit$",Tt=`lit$${Math.random().toFixed(9).slice(2)}$`,Li="?"+Tt,dr=`<${Li}>`,zt=document,be=()=>zt.createComment(""),ve=i=>i===null||typeof i!="object"&&typeof i!="function",Ri=Array.isArray,An=i=>Ri(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Mi=`[
|
|
14
|
+
\f\r]`,we=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Cn=/-->/g,Tn=/>/g,Zt=RegExp(`>|${Mi}(?:([^\\s"'>=/]+)(${Mi}*=${Mi}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Dn=/'/g,Pn=/"/g,On=/^(?:script|style|textarea|title)$/i,ur=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),x=ur(1),xt=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),Ln=new WeakMap,qt=zt.createTreeWalker(zt,129);function Rn(i,t){if(!Ri(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return _n!==void 0?_n.createHTML(t):t}const Mn=(i,t)=>{const e=i.length-1,n=[];let o,r=t===2?"<svg>":t===3?"<math>":"",s=we;for(let a=0;a<e;a++){const l=i[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===we?c[1]==="!--"?s=Cn:c[1]!==void 0?s=Tn:c[2]!==void 0?(On.test(c[2])&&(o=RegExp("</"+c[2],"g")),s=Zt):c[3]!==void 0&&(s=Zt):s===Zt?c[0]===">"?(s=o??we,u=-1):c[1]===void 0?u=-2:(u=s.lastIndex-c[2].length,d=c[1],s=c[3]===void 0?Zt:c[3]==='"'?Pn:Dn):s===Pn||s===Dn?s=Zt:s===Cn||s===Tn?s=we:(s=Zt,o=void 0);const f=s===Zt&&i[a+1].startsWith("/>")?" ":"";r+=s===we?l+dr:u>=0?(n.push(d),l.slice(0,u)+Oi+l.slice(u)+Tt+f):l+Tt+(u===-2?a:f)}return[Rn(i,r+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class xe{constructor({strings:t,_$litType$:e},n){let o;this.parts=[];let r=0,s=0;const a=t.length-1,l=this.parts,[d,c]=Mn(t,e);if(this.el=xe.createElement(d,n),qt.currentNode=this.el.content,e===2||e===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(o=qt.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const u of o.getAttributeNames())if(u.endsWith(Oi)){const p=c[s++],f=o.getAttribute(u).split(Tt),g=/([.?@])?(.*)/.exec(p);l.push({type:1,index:r,name:g[2],strings:f,ctor:g[1]==="."?Nn:g[1]==="?"?Hn:g[1]==="@"?Vn:Ee}),o.removeAttribute(u)}else u.startsWith(Tt)&&(l.push({type:6,index:r}),o.removeAttribute(u));if(On.test(o.tagName)){const u=o.textContent.split(Tt),p=u.length-1;if(p>0){o.textContent=Be?Be.emptyScript:"";for(let f=0;f<p;f++)o.append(u[f],be()),qt.nextNode(),l.push({type:2,index:++r});o.append(u[p],be())}}}else if(o.nodeType===8)if(o.data===Li)l.push({type:2,index:r});else{let u=-1;for(;(u=o.data.indexOf(Tt,u+1))!==-1;)l.push({type:7,index:r}),u+=Tt.length-1}r++}}static createElement(t,e){const n=zt.createElement("template");return n.innerHTML=t,n}}function Xt(i,t,e=i,n){var s,a;if(t===xt)return t;let o=n!==void 0?(s=e._$Co)==null?void 0:s[n]:e._$Cl;const r=ve(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(i),o._$AT(i,e,n)),n!==void 0?(e._$Co??(e._$Co=[]))[n]=o:e._$Cl=o),o!==void 0&&(t=Xt(i,o._$AS(i,t.values),o,n)),t}let In=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:n}=this._$AD,o=((t==null?void 0:t.creationScope)??zt).importNode(e,!0);qt.currentNode=o;let r=qt.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new oe(r,r.nextSibling,this,t):l.type===1?d=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(d=new Bn(r,this,t)),this._$AV.push(d),l=n[++a]}s!==(l==null?void 0:l.index)&&(r=qt.nextNode(),s++)}return qt.currentNode=zt,o}p(t){let e=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}};class oe{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,n,o){this.type=2,this._$AH=O,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=o,this._$Cv=(o==null?void 0:o.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Xt(this,t,e),ve(t)?t===O||t==null||t===""?(this._$AH!==O&&this._$AR(),this._$AH=O):t!==this._$AH&&t!==xt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):An(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!==O&&ve(this._$AH)?this._$AA.nextSibling.data=t:this.T(zt.createTextNode(t)),this._$AH=t}$(t){var r;const{values:e,_$litType$:n}=t,o=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=xe.createElement(Rn(n.h,n.h[0]),this.options)),n);if(((r=this._$AH)==null?void 0:r._$AD)===o)this._$AH.p(e);else{const s=new In(o,this),a=s.u(this.options);s.p(e),this.T(a),this._$AH=s}}_$AC(t){let e=Ln.get(t.strings);return e===void 0&&Ln.set(t.strings,e=new xe(t)),e}k(t){Ri(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,o=0;for(const r of t)o===e.length?e.push(n=new oe(this.O(be()),this.O(be()),this,this.options)):n=e[o],n._$AI(r),o++;o<e.length&&(this._$AR(n&&n._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,e);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class Ee{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,o,r){this.type=1,this._$AH=O,this._$AN=void 0,this.element=t,this.name=e,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=O}_$AI(t,e=this,n,o){const r=this.strings;let s=!1;if(r===void 0)t=Xt(this,t,e,0),s=!ve(t)||t!==this._$AH&&t!==xt,s&&(this._$AH=t);else{const a=t;let l,d;for(t=r[0],l=0;l<r.length-1;l++)d=Xt(this,a[n+l],e,l),d===xt&&(d=this._$AH[l]),s||(s=!ve(d)||d!==this._$AH[l]),d===O?t=O:t!==O&&(t+=(d??"")+r[l+1]),this._$AH[l]=d}s&&!o&&this.j(t)}j(t){t===O?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Nn extends Ee{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===O?void 0:t}}class Hn extends Ee{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==O)}}class Vn extends Ee{constructor(t,e,n,o,r){super(t,e,n,o,r),this.type=5}_$AI(t,e=this){if((t=Xt(this,t,e,0)??O)===xt)return;const n=this._$AH,o=t===O&&n!==O||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==O&&(n===O||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Bn{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Xt(this,t)}}const cr={M:Oi,P:Tt,A:Li,C:1,L:Mn,R:In,D:An,V:Xt,I:oe,H:Ee,N:Hn,U:Vn,B:Nn,F:Bn},Ii=ye.litHtmlPolyfillSupport;Ii==null||Ii(xe,oe),(ye.litHtmlVersions??(ye.litHtmlVersions=[])).push("3.2.1");const hr=(i,t,e)=>{const n=(e==null?void 0:e.renderBefore)??t;let o=n._$litPart$;if(o===void 0){const r=(e==null?void 0:e.renderBefore)??null;n._$litPart$=o=new oe(t.insertBefore(be(),r),r,void 0,e??{})}return o._$AI(i),o};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
* @description WMS service Capabilities > JSON, based on openlayers
|
|
38
38
|
* @license BSD-2-Clause
|
|
39
39
|
* @preserve
|
|
40
|
-
*/var S=i=>i!==void 0,jn=(i,t,e)=>t in i?i[t]:i[t]=e;const Se={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 br{constructor(t){this._parser=new t}toDocument(t){return this._parser.parseFromString(t,"application/xml")}getAllTextContent(t,e){return ke(t,e).join("")}}function ke(i,t){return
|
|
40
|
+
*/var S=i=>i!==void 0,jn=(i,t,e)=>t in i?i[t]:i[t]=e;const Se={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 br{constructor(t){this._parser=new t}toDocument(t){return this._parser.parseFromString(t,"application/xml")}getAllTextContent(t,e){return ke(t,e).join("")}}function ke(i,t){return zn(i,t,[]).join("")}function zn(i,t,e){if(i.nodeType===Se.CDATA_SECTION||i.nodeType===Se.TEXT)t?e.push(String(i.nodeValue).replace(/(\r\n|\r|\n)/g,"")):e.push(i.nodeValue);else{var n;for(n=i.firstChild;n;n=n.nextSibling)zn(n,t,e)}return e}function vr(i,t,e,n){for(var o=wr(t);o;o=xr(o)){var r=o.namespaceURI||null,s=i[r];if(S(s)){var a=s[o.localName];S(a)&&a.call(n,o,e)}}}function wr(i){let t=i.firstElementChild||i.firstChild;for(;t&&t.nodeType!==Se.ELEMENT;)t=t.nextSibling;return t}function xr(i){let t=i.nextElementSibling||i.nextSibling;for(;t&&t.nodeType!==Se.ELEMENT;)t=t.nextSibling;return t}function nt(i,t,e){return Er(i,t,e)}function Er(i,t,e){var n=S(e)?e:{},o,r;for(o=0,r=i.length;o<r;++o)n[i[o]]=t;return n}function Zn(i,t){return function(e,n){var o=i.call(S(t)?t:this,e,n);if(S(o)){var r=n[n.length-1];r.push(o)}}}function tt(i,t,e,n,o){return n.push(i),vr(t,e,n,o),n.pop()}function y(i,t,e){return function(n,o){let r=i.call(S(e)?e:this,n,o);if(S(r)){var s=o[o.length-1],a=S(t)?t:n.localName;s[a]=r}}}function ht(i,t,e){return function(n,o){var r=i.call(S(e)?e:this,n,o);if(S(r)){var s=o[o.length-1],a=S(t)?t:n.localName,l=jn(s,a,[]);l.push(r)}}}const $r=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function Sr(i){return i.replace($r,"")}function Wt(i){const t=/^\s*(true|1)|(false|0)\s*$/.exec(i);if(t)return S(t[1])||!1}function re(i){return Dt(ke(i,!1))}function Dt(i){const t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(i);if(t)return parseFloat(t[1])}function ki(i){return Ue(ke(i,!1))}function Ue(i){const t=/^\s*(\d+)\s*$/.exec(i);if(t)return parseInt(t[1],10)}function D(i){return Sr(ke(i,!1))}const _r="http://www.w3.org/1999/xlink";function Ui(i){return i.getAttributeNS(_r,"href")}function Ar(i,t){return tt({},Qr,i,t)}function qn(i){return[Dt(i.getAttribute("minx")),Dt(i.getAttribute("miny")),Dt(i.getAttribute("maxx")),Dt(i.getAttribute("maxy"))]}function Cr(i,t){const e=qn(i),n=[Dt(i.getAttribute("resx")),Dt(i.getAttribute("resy"))];return{crs:i.getAttribute("CRS")||i.getAttribute("SRS"),extent:e,res:n}}function Tr(i,t){const e=qn(i);if(!(!S(e[0])||!S(e[1])||!S(e[2])||!S(e[3])))return e}function Dr(i,t){const e=parseFloat(i.getAttribute("min")),n=parseFloat(i.getAttribute("max"));return{min:e,max:n}}function Pr(i,t){const e=tt({},ts,i,t);if(!S(e))return;const n=e.westBoundLongitude,o=e.southBoundLatitude,r=e.eastBoundLongitude,s=e.northBoundLatitude;if(!(!S(n)||!S(o)||!S(r)||!S(s)))return[n,o,r,s]}function Or(i,t){return tt({},Xr,i,t)}function Lr(i,t){return tt({},Yr,i,t)}function Rr(i,t){return tt({},Wr,i,t)}function Mr(i,t){return tt({},Gr,i,t)}function Ir(i,t){return tt({},Jr,i,t)}function Nr(i,t){return tt([],Kr,i,t)}function Hr(i,t){const e=Wt(i.getAttribute("queryable"));return tt({queryable:S(e)?e:!1},Wn,i,t)}function Vr(i,t){var e=t[t.length-1];const n=tt({},Wn,i,t);if(!S(n))return;let o=Wt(i.getAttribute("queryable"));S(o)||(o=e.queryable),n.queryable=S(o)?o:!1;let r=Ue(i.getAttribute("cascaded"));S(r)||(r=e.cascaded),n.cascaded=r;let s=Wt(i.getAttribute("opaque"));S(s)||(s=e.opaque),n.opaque=S(s)?s:!1;let a=Wt(i.getAttribute("noSubsets"));S(a)||(a=e.noSubsets),n.noSubsets=S(a)?a:!1;let l=Dt(i.getAttribute("fixedWidth"));S(l)||(l=e.fixedWidth),n.fixedWidth=l;let d=Dt(i.getAttribute("fixedHeight"));S(d)||(d=e.fixedHeight),n.fixedHeight=d;const c=["Style","CRS","AuthorityURL"];for(let p=0,f=c.length;p<f;p++){const g=c[p],b=e[g];if(S(b)){let V=jn(n,g,[]);V=V.concat(b),n[g]=V}}const u=["EX_GeographicBoundingBox","BoundingBox","Dimension","Attribution","MinScaleDenominator","MaxScaleDenominator"];for(let p=0,f=u.length;p<f;p++){const g=u[p],b=n[g];if(!S(b)){const V=e[g];n[g]=V}}return n}function Br(i,t){return{name:i.getAttribute("name"),units:i.getAttribute("units"),unitSymbol:i.getAttribute("unitSymbol"),default:i.getAttribute("default"),multipleValues:Wt(i.getAttribute("multipleValues")),nearestValue:Wt(i.getAttribute("nearestValue")),current:Wt(i.getAttribute("current")),values:D(i)}}function Pt(i,t){return tt({},ss,i,t)}function kr(i,t){return tt({},es,i,t)}function Ur(i,t){return tt({},ns,i,t)}function Fr(i,t){return tt({},os,i,t)}function Fi(i,t){return tt({},is,i,t)}function Xn(i,t){var e=Pt(i,t);if(S(e)){const n=[Ue(i.getAttribute("width")),Ue(i.getAttribute("height"))];return e.size=n,e}}function jr(i,t){var e=Pt(i,t);if(S(e))return e.name=i.getAttribute("name"),e}function zr(i,t){var e=Pt(i,t);if(S(e))return e.type=i.getAttribute("type"),e}function Zr(i,t){return tt({},rs,i,t)}function Yn(i,t){return tt([],as,i,t)}const ot=[null,"http://www.opengis.net/wms"],qr=nt(ot,{Service:y(Lr),Capability:y(Or)}),Xr=nt(ot,{Request:y(kr),Exception:y(Nr),Layer:y(Hr)}),Yr=nt(ot,{Name:y(D),Title:y(D),Abstract:y(D),KeywordList:y(Yn),OnlineResource:y(Ui),ContactInformation:y(Rr),Fees:y(D),AccessConstraints:y(D),LayerLimit:y(ki),MaxWidth:y(ki),MaxHeight:y(ki)}),Wr=nt(ot,{ContactPersonPrimary:y(Mr),ContactPosition:y(D),ContactAddress:y(Ir),ContactVoiceTelephone:y(D),ContactFacsimileTelephone:y(D),ContactElectronicMailAddress:y(D)}),Gr=nt(ot,{ContactPerson:y(D),ContactOrganization:y(D)}),Jr=nt(ot,{AddressType:y(D),Address:y(D),City:y(D),StateOrProvince:y(D),PostCode:y(D),Country:y(D)}),Kr=nt(ot,{Format:Zn(D)}),Wn=nt(ot,{Name:y(D),Title:y(D),Abstract:y(D),KeywordList:y(Yn),CRS:ht(D),SRS:ht(D),EX_GeographicBoundingBox:y(Pr),LatLonBoundingBox:y(Tr),BoundingBox:ht(Cr),Dimension:ht(Br),Attribution:y(Ar),AuthorityURL:ht(jr),Identifier:ht(D),MetadataURL:ht(zr),DataURL:ht(Pt),FeatureListURL:ht(Pt),Style:ht(Zr),MinScaleDenominator:y(re),MaxScaleDenominator:y(re),ScaleHint:y(Dr),Layer:ht(Vr)}),Qr=nt(ot,{Title:y(D),OnlineResource:y(Ui),LogoURL:y(Xn)}),ts=nt(ot,{westBoundLongitude:y(re),eastBoundLongitude:y(re),southBoundLatitude:y(re),northBoundLatitude:y(re)}),es=nt(ot,{GetCapabilities:y(Fi),GetMap:y(Fi),GetFeatureInfo:y(Fi)}),is=nt(ot,{Format:ht(D),DCPType:ht(Ur)}),ns=nt(ot,{HTTP:y(Fr)}),os=nt(ot,{Get:y(Pt),Post:y(Pt)}),rs=nt(ot,{Name:y(D),Title:y(D),Abstract:y(D),LegendURL:ht(Xn),StyleSheetURL:y(Pt),StyleURL:y(Pt)}),ss=nt(ot,{Format:y(D),OnlineResource:y(Ui)}),as=nt(ot,{Keyword:Zn(D)});class ls{constructor(t,e){!e&&typeof window<"u"&&(e=window.DOMParser),this.version=void 0,this._parser=new br(e),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 e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Se.ELEMENT)return this.readFromNode(e);return null}readFromNode(t){return this.version=t.getAttribute("version"),tt({version:this.version},qr,t,[])||null}}async function ds(i){let t=new URL(i),e=t.searchParams;e.set("SERVICE","WMS"),e.set("REQUEST","GetCapabilities");let n=t.toString();const o=await fetch(n);if(o.ok){const r=await o.text();return new ls(r).toJSON()}else throw new Error(`Error: ${o.status}`)}function ji(i){const t=/\b(?:wms|ows)\b/i,e=/{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;return t.test(i)?"TileWMS":e.test(i)?"XYZ":!1}function us(i){const e=/^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(i),n=ji(i);return!!(i&&e&&n)}function Gn(i){return i.replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g,'"$2": ').replace(/,\s*}/g,"}").replace(/,\s*]/g,"]").replace(/\s*(\{|}|\[|\]|,)\s*/g,"$1").replaceAll('": //',"://")}function cs(i){try{return JSON.parse(Gn(i)),!!i}catch{return!1}}function hs(i,t){const e=new URL(i).searchParams;Object.entries(t).forEach(([s,a])=>{typeof a=="object"&&!Array.isArray(a)&&a!==null?Object.keys(a).forEach(l=>{e.set(l,a[l])}):e.set(s,a)});const n=i.split("?")[0],o=e.toString();return`${n}?${o}`}/**!
|
|
41
41
|
* Sortable 1.15.6
|
|
42
42
|
* @author RubaXa <trash@rubaxa.org>
|
|
43
43
|
* @author owenm <owen23355@gmail.com>
|
|
44
44
|
* @license MIT
|
|
45
|
-
*/function Jn(i,t){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable})),e.push.apply(e,n)}return e}function _t(i){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Jn(Object(e),!0).forEach(function(n){ps(i,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):Jn(Object(e)).forEach(function(n){Object.defineProperty(i,n,Object.getOwnPropertyDescriptor(e,n))})}return i}function Fe(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fe=function(t){return typeof t}:Fe=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fe(i)}function ps(i,t,e){return t in i?Object.defineProperty(i,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[t]=e,i}function Ot(){return Ot=Object.assign||function(i){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},Ot.apply(this,arguments)}function fs(i,t){if(i==null)return{};var e={},n=Object.keys(i),o,r;for(r=0;r<n.length;r++)o=n[r],!(t.indexOf(o)>=0)&&(e[o]=i[o]);return e}function gs(i,t){if(i==null)return{};var e=fs(i,t),n,o;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);for(o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(i,n)&&(e[n]=i[n])}return e}var ms="1.15.6";function Rt(i){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(i)}var Lt=Rt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),_e=Rt(/Edge/i),Kn=Rt(/firefox/i),Ae=Rt(/safari/i)&&!Rt(/chrome/i)&&!Rt(/android/i),Zi=Rt(/iP(ad|od|hone)/i),Qn=Rt(/chrome/i)&&Rt(/android/i),to={capture:!1,passive:!1};function C(i,t,e){i.addEventListener(t,e,!Lt&&to)}function _(i,t,e){i.removeEventListener(t,e,!Lt&&to)}function je(i,t){if(t){if(t[0]===">"&&(t=t.substring(1)),i)try{if(i.matches)return i.matches(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t)}catch{return!1}return!1}}function eo(i){return i.host&&i!==document&&i.host.nodeType?i.host:i.parentNode}function $t(i,t,e,n){if(i){e=e||document;do{if(t!=null&&(t[0]===">"?i.parentNode===e&&je(i,t):je(i,t))||n&&i===e)return i;if(i===e)break}while(i=eo(i))}return null}var io=/\s+/g;function bt(i,t,e){if(i&&t)if(i.classList)i.classList[e?"add":"remove"](t);else{var n=(" "+i.className+" ").replace(io," ").replace(" "+t+" "," ");i.className=(n+(e?" "+t:"")).replace(io," ")}}function v(i,t,e){var n=i&&i.style;if(n){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(i,""):i.currentStyle&&(e=i.currentStyle),t===void 0?e:e[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=e+(typeof e=="string"?"":"px")}}function se(i,t){var e="";if(typeof i=="string")e=i;else do{var n=v(i,"transform");n&&n!=="none"&&(e=n+" "+e)}while(!t&&(i=i.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(e)}function no(i,t,e){if(i){var n=i.getElementsByTagName(t),o=0,r=n.length;if(e)for(;o<r;o++)e(n[o],o);return n}return[]}function At(){var i=document.scrollingElement;return i||document.documentElement}function W(i,t,e,n,o){if(!(!i.getBoundingClientRect&&i!==window)){var r,s,a,l,d,c,u;if(i!==window&&i.parentNode&&i!==At()?(r=i.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||e)&&i!==window&&(o=o||i.parentNode,!Lt))do if(o&&o.getBoundingClientRect&&(v(o,"transform")!=="none"||e&&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&&i!==window){var f=se(o||i),g=f&&f.a,b=f&&f.d;f&&(s/=b,a/=g,u/=g,c/=b,l=s+c,d=a+u)}return{top:s,left:a,bottom:l,right:d,width:u,height:c}}}function oo(i,t,e){for(var n=Vt(i,!0),o=W(i)[t];n;){var r=W(n)[e],s=void 0;if(s=o>=r,!s)return n;if(n===At())break;n=Vt(n,!1)}return!1}function ae(i,t,e,n){for(var o=0,r=0,s=i.children;r<s.length;){if(s[r].style.display!=="none"&&s[r]!==w.ghost&&(n||s[r]!==w.dragged)&&$t(s[r],e.draggable,i,!1)){if(o===t)return s[r];o++}r++}return null}function zi(i,t){for(var e=i.lastElementChild;e&&(e===w.ghost||v(e,"display")==="none"||t&&!je(e,t));)e=e.previousElementSibling;return e||null}function Et(i,t){var e=0;if(!i||!i.parentNode)return-1;for(;i=i.previousElementSibling;)i.nodeName.toUpperCase()!=="TEMPLATE"&&i!==w.clone&&(!t||je(i,t))&&e++;return e}function ro(i){var t=0,e=0,n=At();if(i)do{var o=se(i),r=o.a,s=o.d;t+=i.scrollLeft*r,e+=i.scrollTop*s}while(i!==n&&(i=i.parentNode));return[t,e]}function ys(i,t){for(var e in i)if(i.hasOwnProperty(e)){for(var n in t)if(t.hasOwnProperty(n)&&t[n]===i[e][n])return Number(e)}return-1}function Vt(i,t){if(!i||!i.getBoundingClientRect)return At();var e=i,n=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var o=v(e);if(e.clientWidth<e.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return At();if(n||t)return e;n=!0}}while(e=e.parentNode);return At()}function bs(i,t){if(i&&t)for(var e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);return i}function qi(i,t){return Math.round(i.top)===Math.round(t.top)&&Math.round(i.left)===Math.round(t.left)&&Math.round(i.height)===Math.round(t.height)&&Math.round(i.width)===Math.round(t.width)}var Ce;function so(i,t){return function(){if(!Ce){var e=arguments,n=this;e.length===1?i.call(n,e[0]):i.apply(n,e),Ce=setTimeout(function(){Ce=void 0},t)}}}function vs(){clearTimeout(Ce),Ce=void 0}function ao(i,t,e){i.scrollLeft+=t,i.scrollTop+=e}function lo(i){var t=window.Polymer,e=window.jQuery||window.Zepto;return t&&t.dom?t.dom(i).cloneNode(!0):e?e(i).clone(!0)[0]:i.cloneNode(!0)}function uo(i,t,e){var n={};return Array.from(i.children).forEach(function(o){var r,s,a,l;if(!(!$t(o,t.draggable,i,!1)||o.animated||o===e)){var d=W(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 pt="Sortable"+new Date().getTime();function ws(){var i=[],t;return{captureAnimationState:function(){if(i=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(o){if(!(v(o,"display")==="none"||o===w.ghost)){i.push({target:o,rect:W(o)});var r=_t({},i[i.length-1].rect);if(o.thisAnimationDuration){var s=se(o,!0);s&&(r.top-=s.f,r.left-=s.e)}o.fromRect=r}})}},addAnimationState:function(n){i.push(n)},removeAnimationState:function(n){i.splice(ys(i,{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;i.forEach(function(a){var l=0,d=a.target,c=d.fromRect,u=W(d),p=d.prevFromRect,f=d.prevToRect,g=a.rect,b=se(d,!0);b&&(u.top-=b.f,u.left-=b.e),d.toRect=u,d.thisAnimationDuration&&qi(p,u)&&!qi(c,u)&&(g.top-u.top)/(g.left-u.left)===(c.top-u.top)/(c.left-u.left)&&(l=Es(g,p,f,o.options)),qi(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(),i=[]},animate:function(n,o,r,s){if(s){v(n,"transition",""),v(n,"transform","");var a=se(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=xs(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 xs(i){return i.offsetWidth}function Es(i,t,e,n){return Math.sqrt(Math.pow(t.top-i.top,2)+Math.pow(t.left-i.left,2))/Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))*n.animation}var le=[],Xi={initializeByDefault:!0},Te={mount:function(t){for(var e in Xi)Xi.hasOwnProperty(e)&&!(e in t)&&(t[e]=Xi[e]);le.forEach(function(n){if(n.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),le.push(t)},pluginEvent:function(t,e,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var r=t+"Global";le.forEach(function(s){e[s.pluginName]&&(e[s.pluginName][r]&&e[s.pluginName][r](_t({sortable:e},n)),e.options[s.pluginName]&&e[s.pluginName][t]&&e[s.pluginName][t](_t({sortable:e},n)))})},initializePlugins:function(t,e,n,o){le.forEach(function(a){var l=a.pluginName;if(!(!t.options[l]&&!a.initializeByDefault)){var d=new a(t,e,t.options);d.sortable=t,d.options=t.options,t[l]=d,Ot(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,e){var n={};return le.forEach(function(o){typeof o.eventProperties=="function"&&Ot(n,o.eventProperties.call(e[o.pluginName],t))}),n},modifyOption:function(t,e,n){var o;return le.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[e]=="function"&&(o=r.optionListeners[e].call(t[r.pluginName],n))}),o}};function $s(i){var t=i.sortable,e=i.rootEl,n=i.name,o=i.targetEl,r=i.cloneEl,s=i.toEl,a=i.fromEl,l=i.oldIndex,d=i.newIndex,c=i.oldDraggableIndex,u=i.newDraggableIndex,p=i.originalEvent,f=i.putSortable,g=i.extraEventProperties;if(t=t||e&&e[pt],!!t){var b,V=t.options,et="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!Lt&&!_e?b=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(b=document.createEvent("Event"),b.initEvent(n,!0,!0)),b.to=s||e,b.from=a||e,b.item=o||e,b.clone=r,b.oldIndex=l,b.newIndex=d,b.oldDraggableIndex=c,b.newDraggableIndex=u,b.originalEvent=p,b.pullMode=f?f.lastPutMode:void 0;var Z=_t(_t({},g),Te.getEventProperties(n,t));for(var ct in Z)b[ct]=Z[ct];e&&e.dispatchEvent(b),V[et]&&V[et].call(t,b)}}var Ss=["evt"],ft=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n.evt,r=gs(n,Ss);Te.pluginEvent.bind(w)(t,e,_t({dragEl:h,parentEl:j,ghostEl:E,rootEl:B,nextEl:Gt,lastDownEl:Ze,cloneEl:U,cloneHidden:Bt,dragStarted:Pe,putSortable:rt,activeSortable:w.active,originalEvent:o,oldIndex:de,oldDraggableIndex:De,newIndex:vt,newDraggableIndex:kt,hideGhostForTarget:yo,unhideGhostForTarget:bo,cloneNowHidden:function(){Bt=!0},cloneNowShown:function(){Bt=!1},dispatchSortableEvent:function(a){ut({sortable:e,name:a,originalEvent:o})}},r))};function ut(i){$s(_t({putSortable:rt,cloneEl:U,targetEl:h,rootEl:B,oldIndex:de,oldDraggableIndex:De,newIndex:vt,newDraggableIndex:kt},i))}var h,j,E,B,Gt,Ze,U,Bt,de,vt,De,kt,ze,rt,ue=!1,qe=!1,Xe=[],Jt,St,Yi,Wi,co,ho,Pe,ce,Oe,Re=!1,Ye=!1,We,lt,Gi=[],Ji=!1,Ge=[],Je=typeof document<"u",Ke=Zi,po=_e||Lt?"cssFloat":"float",_s=Je&&!Qn&&!Zi&&"draggable"in document.createElement("div"),fo=function(){if(Je){if(Lt)return!1;var i=document.createElement("x");return i.style.cssText="pointer-events:auto",i.style.pointerEvents==="auto"}}(),go=function(t,e){var n=v(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=ae(t,0,e),s=ae(t,1,e),a=r&&v(r),l=s&&v(s),d=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+W(r).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+W(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[po]==="none"||s&&n[po]==="none"&&d+c>o)?"vertical":"horizontal"},As=function(t,e,n){var o=n?t.left:t.top,r=n?t.right:t.bottom,s=n?t.width:t.height,a=n?e.left:e.top,l=n?e.right:e.bottom,d=n?e.width:e.height;return o===a||r===l||o+s/2===a+d/2},Cs=function(t,e){var n;return Xe.some(function(o){var r=o[pt].options.emptyInsertThreshold;if(!(!r||zi(o))){var s=W(o),a=t>=s.left-r&&t<=s.right+r,l=e>=s.top-r&&e<=s.bottom+r;if(a&&l)return n=o}}),n},mo=function(t){function e(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 e(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||Fe(o)!="object")&&(o={name:o}),n.name=o.name,n.checkPull=e(o.pull,!0),n.checkPut=e(o.put),n.revertClone=o.revertClone,t.group=n},yo=function(){!fo&&E&&v(E,"display","none")},bo=function(){!fo&&E&&v(E,"display","")};Je&&!Qn&&document.addEventListener("click",function(i){if(qe)return i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.stopImmediatePropagation&&i.stopImmediatePropagation(),qe=!1,!1},!0);var Kt=function(t){if(h){t=t.touches?t.touches[0]:t;var e=Cs(t.clientX,t.clientY);if(e){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[pt]._onDragOver(n)}}},Ts=function(t){h&&h.parentNode[pt]._isOutsideThisEl(t.target)};function w(i,t){if(!(i&&i.nodeType&&i.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));this.el=i,this.options=t=Ot({},t),i[pt]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(i.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return go(i,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&&(!Ae||Zi),emptyInsertThreshold:5};Te.initializePlugins(this,i,e);for(var n in e)!(n in t)&&(t[n]=e[n]);mo(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:_s,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?C(i,"pointerdown",this._onTapStart):(C(i,"mousedown",this._onTapStart),C(i,"touchstart",this._onTapStart)),this.nativeDraggable&&(C(i,"dragover",this),C(i,"dragenter",this)),Xe.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Ot(this,ws())}w.prototype={constructor:w,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(ce=null)},_getDirection:function(t,e){return typeof this.options.direction=="function"?this.options.direction.call(this,t,e,h):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=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(Ns(n),!h&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||o.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Ae&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=$t(l,o.draggable,n,!1),!(l&&l.animated)&&Ze!==l)){if(de=Et(l),De=Et(l,o.draggable),typeof c=="function"){if(c.call(this,t,l,this)){ut({sortable:e,rootEl:d,name:"filter",targetEl:l,toEl:n,fromEl:n}),ft("filter",e,{evt:t}),r&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(u){if(u=$t(d,u.trim(),n,!1),u)return ut({sortable:e,rootEl:u,name:"filter",targetEl:l,fromEl:n,toEl:n}),ft("filter",e,{evt:t}),!0}),c)){r&&t.preventDefault();return}o.handle&&!$t(d,o.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,n){var o=this,r=o.el,s=o.options,a=r.ownerDocument,l;if(n&&!h&&n.parentNode===r){var d=W(n);if(B=r,h=n,j=h.parentNode,Gt=h.nextSibling,Ze=n,ze=s.group,w.dragged=h,Jt={target:h,clientX:(e||t).clientX,clientY:(e||t).clientY},co=Jt.clientX-d.left,ho=Jt.clientY-d.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,h.style["will-change"]="all",l=function(){if(ft("delayEnded",o,{evt:t}),w.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Kn&&o.nativeDraggable&&(h.draggable=!0),o._triggerDragStart(t,e),ut({sortable:o,name:"choose",originalEvent:t}),bt(h,s.chosenClass,!0)},s.ignore.split(",").forEach(function(c){no(h,c.trim(),Ki)}),C(a,"dragover",Kt),C(a,"mousemove",Kt),C(a,"touchmove",Kt),s.supportPointer?(C(a,"pointerup",o._onDrop),!this.nativeDraggable&&C(a,"pointercancel",o._onDrop)):(C(a,"mouseup",o._onDrop),C(a,"touchend",o._onDrop),C(a,"touchcancel",o._onDrop)),Kn&&this.nativeDraggable&&(this.options.touchStartThreshold=4,h.draggable=!0),ft("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(_e||Lt))){if(w.eventCanceled){this._onDrop();return}s.supportPointer?(C(a,"pointerup",o._disableDelayedDrag),C(a,"pointercancel",o._disableDelayedDrag)):(C(a,"mouseup",o._disableDelayedDrag),C(a,"touchend",o._disableDelayedDrag),C(a,"touchcancel",o._disableDelayedDrag)),C(a,"mousemove",o._delayedDragTouchMoveHandler),C(a,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&C(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(l,s.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){h&&Ki(h),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;_(t,"mouseup",this._disableDelayedDrag),_(t,"touchend",this._disableDelayedDrag),_(t,"touchcancel",this._disableDelayedDrag),_(t,"pointerup",this._disableDelayedDrag),_(t,"pointercancel",this._disableDelayedDrag),_(t,"mousemove",this._delayedDragTouchMoveHandler),_(t,"touchmove",this._delayedDragTouchMoveHandler),_(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?C(document,"pointermove",this._onTouchMove):e?C(document,"touchmove",this._onTouchMove):C(document,"mousemove",this._onTouchMove):(C(h,"dragend",this),C(B,"dragstart",this._onDragStart));try{document.selection?ti(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(ue=!1,B&&h){ft("dragStarted",this,{evt:e}),this.nativeDraggable&&C(document,"dragover",Ts);var n=this.options;!t&&bt(h,n.dragClass,!1),bt(h,n.ghostClass,!0),w.active=this,t&&this._appendGhost(),ut({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(St){this._lastX=St.clientX,this._lastY=St.clientY,yo();for(var t=document.elementFromPoint(St.clientX,St.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(St.clientX,St.clientY),t!==e);)e=t;if(h.parentNode[pt]._isOutsideThisEl(t),e)do{if(e[pt]){var n=void 0;if(n=e[pt]._onDragOver({clientX:St.clientX,clientY:St.clientY,target:t,rootEl:e}),n&&!this.options.dragoverBubble)break}t=e}while(e=eo(e));bo()}},_onTouchMove:function(t){if(Jt){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,r=t.touches?t.touches[0]:t,s=E&&se(E,!0),a=E&&s&&s.a,l=E&&s&&s.d,d=Ke&<&&ro(lt),c=(r.clientX-Jt.clientX+o.x)/(a||1)+(d?d[0]-Gi[0]:0)/(a||1),u=(r.clientY-Jt.clientY+o.y)/(l||1)+(d?d[1]-Gi[1]:0)/(l||1);if(!w.active&&!ue){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(E){s?(s.e+=c-(Yi||0),s.f+=u-(Wi||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(E,"webkitTransform",p),v(E,"mozTransform",p),v(E,"msTransform",p),v(E,"transform",p),Yi=c,Wi=u,St=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!E){var t=this.options.fallbackOnBody?document.body:B,e=W(h,!0,Ke,!0,t),n=this.options;if(Ke){for(lt=t;v(lt,"position")==="static"&&v(lt,"transform")==="none"&<!==document;)lt=lt.parentNode;lt!==document.body&<!==document.documentElement?(lt===document&&(lt=At()),e.top+=lt.scrollTop,e.left+=lt.scrollLeft):lt=At(),Gi=ro(lt)}E=h.cloneNode(!0),bt(E,n.ghostClass,!1),bt(E,n.fallbackClass,!0),bt(E,n.dragClass,!0),v(E,"transition",""),v(E,"transform",""),v(E,"box-sizing","border-box"),v(E,"margin",0),v(E,"top",e.top),v(E,"left",e.left),v(E,"width",e.width),v(E,"height",e.height),v(E,"opacity","0.8"),v(E,"position",Ke?"absolute":"fixed"),v(E,"zIndex","100000"),v(E,"pointerEvents","none"),w.ghost=E,t.appendChild(E),v(E,"transform-origin",co/parseInt(E.style.width)*100+"% "+ho/parseInt(E.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,o=t.dataTransfer,r=n.options;if(ft("dragStart",this,{evt:t}),w.eventCanceled){this._onDrop();return}ft("setupClone",this),w.eventCanceled||(U=lo(h),U.removeAttribute("id"),U.draggable=!1,U.style["will-change"]="",this._hideClone(),bt(U,this.options.chosenClass,!1),w.clone=U),n.cloneId=ti(function(){ft("clone",n),!w.eventCanceled&&(n.options.removeCloneOnHide||B.insertBefore(U,h),n._hideClone(),ut({sortable:n,name:"clone"}))}),!e&&bt(h,r.dragClass,!0),e?(qe=!0,n._loopId=setInterval(n._emulateDragOver,50)):(_(document,"mouseup",n._onDrop),_(document,"touchend",n._onDrop),_(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(n,o,h)),C(document,"drop",n),v(h,"transform","translateZ(0)")),ue=!0,n._dragStartId=ti(n._dragStarted.bind(n,e,t)),C(document,"selectstart",n),Pe=!0,window.getSelection().removeAllRanges(),Ae&&v(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,n=t.target,o,r,s,a=this.options,l=a.group,d=w.active,c=ze===l,u=a.sort,p=rt||d,f,g=this,b=!1;if(Ji)return;function V(wt,Qt){ft(wt,g,_t({evt:t,isOwner:c,axis:f?"vertical":"horizontal",revert:s,dragRect:o,targetRect:r,canSort:u,fromSortable:p,target:n,completed:Z,onMove:function(te,It){return Qe(B,e,h,o,te,W(te),t,It)},changed:ct},Qt))}function et(){V("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function Z(wt){return V("dragOverCompleted",{insertion:wt}),wt&&(c?d._hideClone():d._showClone(g),g!==p&&(bt(h,rt?rt.options.ghostClass:d.options.ghostClass,!1),bt(h,a.ghostClass,!0)),rt!==g&&g!==w.active?rt=g:g===w.active&&rt&&(rt=null),p===g&&(g._ignoreWhileAnimating=n),g.animateAll(function(){V("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(n===h&&!h.animated||n===e&&!n.animated)&&(ce=null),!a.dragoverBubble&&!t.rootEl&&n!==document&&(h.parentNode[pt]._isOutsideThisEl(t.target),!wt&&Kt(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),b=!0}function ct(){vt=Et(h),kt=Et(h,a.draggable),ut({sortable:g,name:"change",toEl:e,newIndex:vt,newDraggableIndex:kt,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),n=$t(n,a.draggable,e,!0),V("dragOver"),w.eventCanceled)return b;if(h.contains(t.target)||n.animated&&n.animatingX&&n.animatingY||g._ignoreWhileAnimating===n)return Z(!1);if(qe=!1,d&&!a.disabled&&(c?u||(s=j!==B):rt===this||(this.lastPutMode=ze.checkPull(this,d,h,t))&&l.checkPut(this,d,h,t))){if(f=this._getDirection(t,n)==="vertical",o=W(h),V("dragOverValid"),w.eventCanceled)return b;if(s)return j=B,et(),this._hideClone(),V("revert"),w.eventCanceled||(Gt?B.insertBefore(h,Gt):B.appendChild(h)),Z(!0);var it=zi(e,a.draggable);if(!it||Rs(t,f,this)&&!it.animated){if(it===h)return Z(!1);if(it&&e===t.target&&(n=it),n&&(r=W(n)),Qe(B,e,h,o,n,r,t,!!n)!==!1)return et(),it&&it.nextSibling?e.insertBefore(h,it.nextSibling):e.appendChild(h),j=e,ct(),Z(!0)}else if(it&&Os(t,f,this)){var $=ae(e,0,a,!0);if($===h)return Z(!1);if(n=$,r=W(n),Qe(B,e,h,o,n,r,t,!1)!==!1)return et(),e.insertBefore(h,$),j=e,ct(),Z(!0)}else if(n.parentNode===e){r=W(n);var m=0,A,N=h.parentNode!==e,M=!As(h.animated&&h.toRect||o,n.animated&&n.toRect||r,f),J=f?"top":"left",K=oo(n,"top","top")||oo(h,"top","top"),k=K?K.scrollTop:void 0;ce!==n&&(A=r[J],Re=!1,Ye=!M&&a.invertSwap||N),m=Ls(t,n,r,f,M?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Ye,ce===n);var I;if(m!==0){var Y=Et(h);do Y-=m,I=j.children[Y];while(I&&(v(I,"display")==="none"||I===E))}if(m===0||I===n)return Z(!1);ce=n,Oe=m;var gt=n.nextElementSibling,at=!1;at=m===1;var mt=Qe(B,e,h,o,n,r,t,at);if(mt!==!1)return(mt===1||mt===-1)&&(at=mt===1),Ji=!0,setTimeout(Ps,30),et(),at&&!gt?e.appendChild(h):n.parentNode.insertBefore(h,at?gt:n),K&&ao(K,0,k-K.scrollTop),j=h.parentNode,A!==void 0&&!Ye&&(We=Math.abs(A-W(n)[J])),ct(),Z(!0)}if(e.contains(h))return Z(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){_(document,"mousemove",this._onTouchMove),_(document,"touchmove",this._onTouchMove),_(document,"pointermove",this._onTouchMove),_(document,"dragover",Kt),_(document,"mousemove",Kt),_(document,"touchmove",Kt)},_offUpEvents:function(){var t=this.el.ownerDocument;_(t,"mouseup",this._onDrop),_(t,"touchend",this._onDrop),_(t,"pointerup",this._onDrop),_(t,"pointercancel",this._onDrop),_(t,"touchcancel",this._onDrop),_(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;if(vt=Et(h),kt=Et(h,n.draggable),ft("drop",this,{evt:t}),j=h&&h.parentNode,vt=Et(h),kt=Et(h,n.draggable),w.eventCanceled){this._nulling();return}ue=!1,Ye=!1,Re=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Qi(this.cloneId),Qi(this._dragStartId),this.nativeDraggable&&(_(document,"drop",this),_(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ae&&v(document.body,"user-select",""),v(h,"transform",""),t&&(Pe&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),E&&E.parentNode&&E.parentNode.removeChild(E),(B===j||rt&&rt.lastPutMode!=="clone")&&U&&U.parentNode&&U.parentNode.removeChild(U),h&&(this.nativeDraggable&&_(h,"dragend",this),Ki(h),h.style["will-change"]="",Pe&&!ue&&bt(h,rt?rt.options.ghostClass:this.options.ghostClass,!1),bt(h,this.options.chosenClass,!1),ut({sortable:this,name:"unchoose",toEl:j,newIndex:null,newDraggableIndex:null,originalEvent:t}),B!==j?(vt>=0&&(ut({rootEl:j,name:"add",toEl:j,fromEl:B,originalEvent:t}),ut({sortable:this,name:"remove",toEl:j,originalEvent:t}),ut({rootEl:j,name:"sort",toEl:j,fromEl:B,originalEvent:t}),ut({sortable:this,name:"sort",toEl:j,originalEvent:t})),rt&&rt.save()):vt!==de&&vt>=0&&(ut({sortable:this,name:"update",toEl:j,originalEvent:t}),ut({sortable:this,name:"sort",toEl:j,originalEvent:t})),w.active&&((vt==null||vt===-1)&&(vt=de,kt=De),ut({sortable:this,name:"end",toEl:j,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){ft("nulling",this),B=h=j=E=Gt=U=Ze=Bt=Jt=St=Pe=vt=kt=de=De=ce=Oe=rt=ze=w.dragged=w.ghost=w.clone=w.active=null,Ge.forEach(function(t){t.checked=!0}),Ge.length=Yi=Wi=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":h&&(this._onDragOver(t),Ds(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,n=this.el.children,o=0,r=n.length,s=this.options;o<r;o++)e=n[o],$t(e,s.draggable,this.el,!1)&&t.push(e.getAttribute(s.dataIdAttr)||Is(e));return t},sort:function(t,e){var n={},o=this.el;this.toArray().forEach(function(r,s){var a=o.children[s];$t(a,this.options.draggable,o,!1)&&(n[r]=a)},this),e&&this.captureAnimationState(),t.forEach(function(r){n[r]&&(o.removeChild(n[r]),o.appendChild(n[r]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return $t(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(e===void 0)return n[t];var o=Te.modifyOption(this,t,e);typeof o<"u"?n[t]=o:n[t]=e,t==="group"&&mo(n)},destroy:function(){ft("destroy",this);var t=this.el;t[pt]=null,_(t,"mousedown",this._onTapStart),_(t,"touchstart",this._onTapStart),_(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(_(t,"dragover",this),_(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Xe.splice(Xe.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Bt){if(ft("hideClone",this),w.eventCanceled)return;v(U,"display","none"),this.options.removeCloneOnHide&&U.parentNode&&U.parentNode.removeChild(U),Bt=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Bt){if(ft("showClone",this),w.eventCanceled)return;h.parentNode==B&&!this.options.group.revertClone?B.insertBefore(U,h):Gt?B.insertBefore(U,Gt):B.appendChild(U),this.options.group.revertClone&&this.animate(h,U),v(U,"display",""),Bt=!1}}};function Ds(i){i.dataTransfer&&(i.dataTransfer.dropEffect="move"),i.cancelable&&i.preventDefault()}function Qe(i,t,e,n,o,r,s,a){var l,d=i[pt],c=d.options.onMove,u;return window.CustomEvent&&!Lt&&!_e?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=i,l.dragged=e,l.draggedRect=n,l.related=o||t,l.relatedRect=r||W(t),l.willInsertAfter=a,l.originalEvent=s,i.dispatchEvent(l),c&&(u=c.call(d,l,s)),u}function Ki(i){i.draggable=!1}function Ps(){Ji=!1}function Os(i,t,e){var n=W(ae(e.el,0,e.options,!0)),o=uo(e.el,e.options,E),r=10;return t?i.clientX<o.left-r||i.clientY<n.top&&i.clientX<n.right:i.clientY<o.top-r||i.clientY<n.bottom&&i.clientX<n.left}function Rs(i,t,e){var n=W(zi(e.el,e.options.draggable)),o=uo(e.el,e.options,E),r=10;return t?i.clientX>o.right+r||i.clientY>n.bottom&&i.clientX>n.left:i.clientY>o.bottom+r||i.clientX>n.right&&i.clientY>n.top}function Ls(i,t,e,n,o,r,s,a){var l=n?i.clientY:i.clientX,d=n?e.height:e.width,c=n?e.top:e.left,u=n?e.bottom:e.right,p=!1;if(!s){if(a&&We<d*o){if(!Re&&(Oe===1?l>c+d*r/2:l<u-d*r/2)&&(Re=!0),Re)p=!0;else if(Oe===1?l<c+We:l>u-We)return-Oe}else if(l>c+d*(1-o)/2&&l<u-d*(1-o)/2)return Ms(t)}return p=p||s,p&&(l<c+d*r/2||l>u-d*r/2)?l>c+d/2?1:-1:0}function Ms(i){return Et(h)<Et(i)?1:-1}function Is(i){for(var t=i.tagName+i.className+i.src+i.href+i.textContent,e=t.length,n=0;e--;)n+=t.charCodeAt(e);return n.toString(36)}function Ns(i){Ge.length=0;for(var t=i.getElementsByTagName("input"),e=t.length;e--;){var n=t[e];n.checked&&Ge.push(n)}}function ti(i){return setTimeout(i,0)}function Qi(i){return clearTimeout(i)}Je&&C(document,"touchmove",function(i){(w.active||ue)&&i.cancelable&&i.preventDefault()}),w.utils={on:C,off:_,css:v,find:no,is:function(t,e){return!!$t(t,e,t,!1)},extend:bs,throttle:so,closest:$t,toggleClass:bt,clone:lo,index:Et,nextTick:ti,cancelNextTick:Qi,detectDirection:go,getChild:ae,expando:pt},w.get=function(i){return i[pt]},w.mount=function(){for(var i=arguments.length,t=new Array(i),e=0;e<i;e++)t[e]=arguments[e];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=_t(_t({},w.utils),n.utils)),Te.mount(n)})},w.create=function(i,t){return new w(i,t)},w.version=ms;var G=[],Le,tn,en=!1,nn,on,ei,Me;function Hs(){function i(){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 i.prototype={dragStarted:function(e){var n=e.originalEvent;this.sortable.nativeDraggable?C(document,"dragover",this._handleAutoScroll):this.options.supportPointer?C(document,"pointermove",this._handleFallbackAutoScroll):n.touches?C(document,"touchmove",this._handleFallbackAutoScroll):C(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var n=e.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?_(document,"dragover",this._handleAutoScroll):(_(document,"pointermove",this._handleFallbackAutoScroll),_(document,"touchmove",this._handleFallbackAutoScroll),_(document,"mousemove",this._handleFallbackAutoScroll)),vo(),ii(),vs()},nulling:function(){ei=tn=Le=en=Me=nn=on=null,G.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,n){var o=this,r=(e.touches?e.touches[0]:e).clientX,s=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,s);if(ei=e,n||this.options.forceAutoScrollFallback||_e||Lt||Ae){rn(e,this.options,a,n);var l=Vt(a,!0);en&&(!Me||r!==nn||s!==on)&&(Me&&vo(),Me=setInterval(function(){var d=Vt(document.elementFromPoint(r,s),!0);d!==l&&(l=d,ii()),rn(e,o.options,d,n)},10),nn=r,on=s)}else{if(!this.options.bubbleScroll||Vt(a,!0)===At()){ii();return}rn(e,this.options,Vt(a,!1),!1)}}},Ot(i,{pluginName:"scroll",initializeByDefault:!0})}function ii(){G.forEach(function(i){clearInterval(i.pid)}),G=[]}function vo(){clearInterval(Me)}var rn=so(function(i,t,e,n){if(t.scroll){var o=(i.touches?i.touches[0]:i).clientX,r=(i.touches?i.touches[0]:i).clientY,s=t.scrollSensitivity,a=t.scrollSpeed,l=At(),d=!1,c;tn!==e&&(tn=e,ii(),Le=t.scroll,c=t.scrollFn,Le===!0&&(Le=Vt(e,!0)));var u=0,p=Le;do{var f=p,g=W(f),b=g.top,V=g.bottom,et=g.left,Z=g.right,ct=g.width,it=g.height,$=void 0,m=void 0,A=f.scrollWidth,N=f.scrollHeight,M=v(f),J=f.scrollLeft,K=f.scrollTop;f===l?($=ct<A&&(M.overflowX==="auto"||M.overflowX==="scroll"||M.overflowX==="visible"),m=it<N&&(M.overflowY==="auto"||M.overflowY==="scroll"||M.overflowY==="visible")):($=ct<A&&(M.overflowX==="auto"||M.overflowX==="scroll"),m=it<N&&(M.overflowY==="auto"||M.overflowY==="scroll"));var k=$&&(Math.abs(Z-o)<=s&&J+ct<A)-(Math.abs(et-o)<=s&&!!J),I=m&&(Math.abs(V-r)<=s&&K+it<N)-(Math.abs(b-r)<=s&&!!K);if(!G[u])for(var Y=0;Y<=u;Y++)G[Y]||(G[Y]={});(G[u].vx!=k||G[u].vy!=I||G[u].el!==f)&&(G[u].el=f,G[u].vx=k,G[u].vy=I,clearInterval(G[u].pid),(k!=0||I!=0)&&(d=!0,G[u].pid=setInterval((function(){n&&this.layer===0&&w.active._onTouchMove(ei);var gt=G[this.layer].vy?G[this.layer].vy*a:0,at=G[this.layer].vx?G[this.layer].vx*a:0;typeof c=="function"&&c.call(w.dragged.parentNode[pt],at,gt,i,ei,G[this.layer].el)!=="continue"||ao(G[this.layer].el,at,gt)}).bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==l&&(p=Vt(p,!1)));en=d}},30),wo=function(t){var e=t.originalEvent,n=t.putSortable,o=t.dragEl,r=t.activeSortable,s=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var d=n||r;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);l(),d&&!d.el.contains(u)&&(s("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function sn(){}sn.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=ae(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:wo},Ot(sn,{pluginName:"revertOnSpill"});function an(){}an.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable,o=n||this.sortable;o.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),o.animateAll()},drop:wo},Ot(an,{pluginName:"removeOnSpill"}),w.mount(new Hs),w.mount(an,sn);const Vs=i=>{const t=i.item;let e=Array.prototype.slice.call(t.parentNode.childNodes);return e=e.filter(n=>n.nodeType!=Node.ELEMENT_NODE||!n.classList.contains("sortable-fallback")),e},Bs=(i,t,e,n,o,r)=>{const a=i.item.parentNode;for(const b of e)a.appendChild(b);if(i.oldIndex==i.newIndex)return;const l=n.getArray(),d=i.item.querySelector("eox-layercontrol-layer").layer.get(o),c=l.find(b=>b.get(o)===d),u=r.dataset.layer,p=l.find(b=>b.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 ks(i,t,e,n){let o=[],r=null;i._sortable=w.create(i,{handle:".drag-handle",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",onStart:s=>o=Vs(s),onMove:s=>{r=s.related},onEnd:s=>Bs(s,n,o,t,e,r)})}function Us(i,t,e,n){const o=i.getArray();let r=!1;o.forEach(s=>{const a=s.ol_uid;s.get(t)||(s.set(t,a),r=!0),s.get(e)||(s.set(e,`layer ${a}`),r=!0),r&&n.requestUpdate()})}function ln(i,t,e){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(i,t,e),n}function Fs(i,t,e){if(!i||!t)return!1;if(!xo(i,e))return!0;const n=i.get("minZoom"),o=i.get("maxZoom"),r=t.getView().getZoom();return r>n&&r<o}function xo(i,t){const e=i.get("minZoom"),n=i.get("maxZoom");return!!(t&&(e!==-1/0||n!==1/0))}function js(i,t){var o,r,s;return!i||!t?void 0:i.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(i.getSource?(r=i.getSource())==null?void 0:r.ol_uid:void 0))?"draw":i.declutter_!==void 0?"vector":"raster"}const Zs=(i,t,e)=>{let n=t;return e.layer.getSource().getTileUrlFunction()&&(n||(n=e.layer.getSource().getTileUrlFunction()),e.layer.getSource().setTileUrlFunction((...o)=>hs(n(...o),i)),e.layer.getSource().setKey(new Date)),n};function zs(i,t,e){const n="updateStyleVariables"in t,o="setStyle"in t,r=n?t.style_:e.style;let s=r==null?void 0:r.variables;if(s){const a=dn(i);if(r.variables={...s,...a},n)t.updateStyleVariables(a);else if(o){const l=qs(r);t.setStyle(l)}}}const dn=i=>{const t={};for(const e in i)if(typeof i[e]=="object"&&i[e]!==null){const n=dn(i[e]);for(const o in n)t[o]=n==null?void 0:n[o]}else t[e]=i==null?void 0:i[e];return t};function qs(i){let t=i;if("variables"in i){let e=JSON.stringify(i);const{variables:n}=i;for(const o in n)typeof n[o]=="number"?e=e.replaceAll(`["var","${o}"]`,n[o]):e=e.replaceAll(`["var","${o}"]`,`"${n[o]}"`);t=JSON.parse(e)}return t}const Xs=(i,t)=>{var e;if(i)return!("domainProperties"in i)||"domain"in i?{...i}:(e=Object.keys(i))==null?void 0:e.reduce((n,o)=>{if(o==="domainProperties"){const r=dn(t);n.domain=i[o].map(s=>r[s])}else n[o]=i[o];return n},{})};function Eo(i,t){var n;let e={};for(const o in i){const r=i[o].type;if(r&&r!=="object")e[o]=r==="number"?Number(t[o]):t[o];else if(typeof i[o]=="object"&&((n=i[o])!=null&&n.properties)){const s=Eo(i[o].properties,t);Object.keys(s).length>0&&(e[o]=s)}}return e}function Ys(i,t){var r,s,a,l,d;if(!t)return null;let e={},n="updateStyleVariables"in i?(r=i.style_)==null?void 0:r.variables:(s=t.style)==null?void 0:s.variables;if((t.type==="style"||t.style)&&n)e=n;else if((l=(a=i.getSource())==null?void 0:a.getTileUrlFunction)!=null&&l.call(a)){const c=new URL(i.getSource().getTileUrlFunction()([0,0,0]));e=Object.fromEntries(c.searchParams.entries())}else return null;const o=Eo(((d=t.schema)==null?void 0:d.properties)||t.schema,e);return Object.keys(o).length?o:null}const Ws=(i,t)=>i==null?void 0:i.filter(e=>["remove","sort"].filter(n=>t!=null&&t.get("layerControlDisable")?n!=="sort":!0).includes(e)),Gs=(i,t)=>i==null?void 0:i.filter(e=>{let n=!0;return["remove","sort"].includes(e)&&(n=!1),e==="info"&&(n=t.get("description")),e==="config"&&(n=t.get("layerConfig")),e==="datetime"&&(n=t.get("layerDatetime")),e==="legend"&&(n=t.get("layerLegend")),n}),Js=(i,t)=>x`
|
|
45
|
+
*/function Jn(i,t){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable})),e.push.apply(e,n)}return e}function _t(i){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Jn(Object(e),!0).forEach(function(n){ps(i,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):Jn(Object(e)).forEach(function(n){Object.defineProperty(i,n,Object.getOwnPropertyDescriptor(e,n))})}return i}function Fe(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fe=function(t){return typeof t}:Fe=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fe(i)}function ps(i,t,e){return t in i?Object.defineProperty(i,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[t]=e,i}function Ot(){return Ot=Object.assign||function(i){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},Ot.apply(this,arguments)}function fs(i,t){if(i==null)return{};var e={},n=Object.keys(i),o,r;for(r=0;r<n.length;r++)o=n[r],!(t.indexOf(o)>=0)&&(e[o]=i[o]);return e}function gs(i,t){if(i==null)return{};var e=fs(i,t),n,o;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);for(o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(i,n)&&(e[n]=i[n])}return e}var ms="1.15.6";function Lt(i){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(i)}var Rt=Lt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),_e=Lt(/Edge/i),Kn=Lt(/firefox/i),Ae=Lt(/safari/i)&&!Lt(/chrome/i)&&!Lt(/android/i),zi=Lt(/iP(ad|od|hone)/i),Qn=Lt(/chrome/i)&&Lt(/android/i),to={capture:!1,passive:!1};function C(i,t,e){i.addEventListener(t,e,!Rt&&to)}function _(i,t,e){i.removeEventListener(t,e,!Rt&&to)}function je(i,t){if(t){if(t[0]===">"&&(t=t.substring(1)),i)try{if(i.matches)return i.matches(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t)}catch{return!1}return!1}}function eo(i){return i.host&&i!==document&&i.host.nodeType?i.host:i.parentNode}function $t(i,t,e,n){if(i){e=e||document;do{if(t!=null&&(t[0]===">"?i.parentNode===e&&je(i,t):je(i,t))||n&&i===e)return i;if(i===e)break}while(i=eo(i))}return null}var io=/\s+/g;function bt(i,t,e){if(i&&t)if(i.classList)i.classList[e?"add":"remove"](t);else{var n=(" "+i.className+" ").replace(io," ").replace(" "+t+" "," ");i.className=(n+(e?" "+t:"")).replace(io," ")}}function v(i,t,e){var n=i&&i.style;if(n){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(i,""):i.currentStyle&&(e=i.currentStyle),t===void 0?e:e[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=e+(typeof e=="string"?"":"px")}}function se(i,t){var e="";if(typeof i=="string")e=i;else do{var n=v(i,"transform");n&&n!=="none"&&(e=n+" "+e)}while(!t&&(i=i.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(e)}function no(i,t,e){if(i){var n=i.getElementsByTagName(t),o=0,r=n.length;if(e)for(;o<r;o++)e(n[o],o);return n}return[]}function At(){var i=document.scrollingElement;return i||document.documentElement}function W(i,t,e,n,o){if(!(!i.getBoundingClientRect&&i!==window)){var r,s,a,l,d,c,u;if(i!==window&&i.parentNode&&i!==At()?(r=i.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||e)&&i!==window&&(o=o||i.parentNode,!Rt))do if(o&&o.getBoundingClientRect&&(v(o,"transform")!=="none"||e&&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&&i!==window){var f=se(o||i),g=f&&f.a,b=f&&f.d;f&&(s/=b,a/=g,u/=g,c/=b,l=s+c,d=a+u)}return{top:s,left:a,bottom:l,right:d,width:u,height:c}}}function oo(i,t,e){for(var n=Vt(i,!0),o=W(i)[t];n;){var r=W(n)[e],s=void 0;if(s=o>=r,!s)return n;if(n===At())break;n=Vt(n,!1)}return!1}function ae(i,t,e,n){for(var o=0,r=0,s=i.children;r<s.length;){if(s[r].style.display!=="none"&&s[r]!==w.ghost&&(n||s[r]!==w.dragged)&&$t(s[r],e.draggable,i,!1)){if(o===t)return s[r];o++}r++}return null}function Zi(i,t){for(var e=i.lastElementChild;e&&(e===w.ghost||v(e,"display")==="none"||t&&!je(e,t));)e=e.previousElementSibling;return e||null}function Et(i,t){var e=0;if(!i||!i.parentNode)return-1;for(;i=i.previousElementSibling;)i.nodeName.toUpperCase()!=="TEMPLATE"&&i!==w.clone&&(!t||je(i,t))&&e++;return e}function ro(i){var t=0,e=0,n=At();if(i)do{var o=se(i),r=o.a,s=o.d;t+=i.scrollLeft*r,e+=i.scrollTop*s}while(i!==n&&(i=i.parentNode));return[t,e]}function ys(i,t){for(var e in i)if(i.hasOwnProperty(e)){for(var n in t)if(t.hasOwnProperty(n)&&t[n]===i[e][n])return Number(e)}return-1}function Vt(i,t){if(!i||!i.getBoundingClientRect)return At();var e=i,n=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var o=v(e);if(e.clientWidth<e.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return At();if(n||t)return e;n=!0}}while(e=e.parentNode);return At()}function bs(i,t){if(i&&t)for(var e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);return i}function qi(i,t){return Math.round(i.top)===Math.round(t.top)&&Math.round(i.left)===Math.round(t.left)&&Math.round(i.height)===Math.round(t.height)&&Math.round(i.width)===Math.round(t.width)}var Ce;function so(i,t){return function(){if(!Ce){var e=arguments,n=this;e.length===1?i.call(n,e[0]):i.apply(n,e),Ce=setTimeout(function(){Ce=void 0},t)}}}function vs(){clearTimeout(Ce),Ce=void 0}function ao(i,t,e){i.scrollLeft+=t,i.scrollTop+=e}function lo(i){var t=window.Polymer,e=window.jQuery||window.Zepto;return t&&t.dom?t.dom(i).cloneNode(!0):e?e(i).clone(!0)[0]:i.cloneNode(!0)}function uo(i,t,e){var n={};return Array.from(i.children).forEach(function(o){var r,s,a,l;if(!(!$t(o,t.draggable,i,!1)||o.animated||o===e)){var d=W(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 pt="Sortable"+new Date().getTime();function ws(){var i=[],t;return{captureAnimationState:function(){if(i=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(o){if(!(v(o,"display")==="none"||o===w.ghost)){i.push({target:o,rect:W(o)});var r=_t({},i[i.length-1].rect);if(o.thisAnimationDuration){var s=se(o,!0);s&&(r.top-=s.f,r.left-=s.e)}o.fromRect=r}})}},addAnimationState:function(n){i.push(n)},removeAnimationState:function(n){i.splice(ys(i,{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;i.forEach(function(a){var l=0,d=a.target,c=d.fromRect,u=W(d),p=d.prevFromRect,f=d.prevToRect,g=a.rect,b=se(d,!0);b&&(u.top-=b.f,u.left-=b.e),d.toRect=u,d.thisAnimationDuration&&qi(p,u)&&!qi(c,u)&&(g.top-u.top)/(g.left-u.left)===(c.top-u.top)/(c.left-u.left)&&(l=Es(g,p,f,o.options)),qi(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(),i=[]},animate:function(n,o,r,s){if(s){v(n,"transition",""),v(n,"transform","");var a=se(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=xs(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 xs(i){return i.offsetWidth}function Es(i,t,e,n){return Math.sqrt(Math.pow(t.top-i.top,2)+Math.pow(t.left-i.left,2))/Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))*n.animation}var le=[],Xi={initializeByDefault:!0},Te={mount:function(t){for(var e in Xi)Xi.hasOwnProperty(e)&&!(e in t)&&(t[e]=Xi[e]);le.forEach(function(n){if(n.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),le.push(t)},pluginEvent:function(t,e,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var r=t+"Global";le.forEach(function(s){e[s.pluginName]&&(e[s.pluginName][r]&&e[s.pluginName][r](_t({sortable:e},n)),e.options[s.pluginName]&&e[s.pluginName][t]&&e[s.pluginName][t](_t({sortable:e},n)))})},initializePlugins:function(t,e,n,o){le.forEach(function(a){var l=a.pluginName;if(!(!t.options[l]&&!a.initializeByDefault)){var d=new a(t,e,t.options);d.sortable=t,d.options=t.options,t[l]=d,Ot(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,e){var n={};return le.forEach(function(o){typeof o.eventProperties=="function"&&Ot(n,o.eventProperties.call(e[o.pluginName],t))}),n},modifyOption:function(t,e,n){var o;return le.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[e]=="function"&&(o=r.optionListeners[e].call(t[r.pluginName],n))}),o}};function $s(i){var t=i.sortable,e=i.rootEl,n=i.name,o=i.targetEl,r=i.cloneEl,s=i.toEl,a=i.fromEl,l=i.oldIndex,d=i.newIndex,c=i.oldDraggableIndex,u=i.newDraggableIndex,p=i.originalEvent,f=i.putSortable,g=i.extraEventProperties;if(t=t||e&&e[pt],!!t){var b,V=t.options,et="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!Rt&&!_e?b=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(b=document.createEvent("Event"),b.initEvent(n,!0,!0)),b.to=s||e,b.from=a||e,b.item=o||e,b.clone=r,b.oldIndex=l,b.newIndex=d,b.oldDraggableIndex=c,b.newDraggableIndex=u,b.originalEvent=p,b.pullMode=f?f.lastPutMode:void 0;var z=_t(_t({},g),Te.getEventProperties(n,t));for(var ct in z)b[ct]=z[ct];e&&e.dispatchEvent(b),V[et]&&V[et].call(t,b)}}var Ss=["evt"],ft=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n.evt,r=gs(n,Ss);Te.pluginEvent.bind(w)(t,e,_t({dragEl:h,parentEl:j,ghostEl:E,rootEl:B,nextEl:Gt,lastDownEl:ze,cloneEl:U,cloneHidden:Bt,dragStarted:Pe,putSortable:rt,activeSortable:w.active,originalEvent:o,oldIndex:de,oldDraggableIndex:De,newIndex:vt,newDraggableIndex:kt,hideGhostForTarget:yo,unhideGhostForTarget:bo,cloneNowHidden:function(){Bt=!0},cloneNowShown:function(){Bt=!1},dispatchSortableEvent:function(a){ut({sortable:e,name:a,originalEvent:o})}},r))};function ut(i){$s(_t({putSortable:rt,cloneEl:U,targetEl:h,rootEl:B,oldIndex:de,oldDraggableIndex:De,newIndex:vt,newDraggableIndex:kt},i))}var h,j,E,B,Gt,ze,U,Bt,de,vt,De,kt,Ze,rt,ue=!1,qe=!1,Xe=[],Jt,St,Yi,Wi,co,ho,Pe,ce,Oe,Le=!1,Ye=!1,We,lt,Gi=[],Ji=!1,Ge=[],Je=typeof document<"u",Ke=zi,po=_e||Rt?"cssFloat":"float",_s=Je&&!Qn&&!zi&&"draggable"in document.createElement("div"),fo=function(){if(Je){if(Rt)return!1;var i=document.createElement("x");return i.style.cssText="pointer-events:auto",i.style.pointerEvents==="auto"}}(),go=function(t,e){var n=v(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=ae(t,0,e),s=ae(t,1,e),a=r&&v(r),l=s&&v(s),d=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+W(r).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+W(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[po]==="none"||s&&n[po]==="none"&&d+c>o)?"vertical":"horizontal"},As=function(t,e,n){var o=n?t.left:t.top,r=n?t.right:t.bottom,s=n?t.width:t.height,a=n?e.left:e.top,l=n?e.right:e.bottom,d=n?e.width:e.height;return o===a||r===l||o+s/2===a+d/2},Cs=function(t,e){var n;return Xe.some(function(o){var r=o[pt].options.emptyInsertThreshold;if(!(!r||Zi(o))){var s=W(o),a=t>=s.left-r&&t<=s.right+r,l=e>=s.top-r&&e<=s.bottom+r;if(a&&l)return n=o}}),n},mo=function(t){function e(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 e(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||Fe(o)!="object")&&(o={name:o}),n.name=o.name,n.checkPull=e(o.pull,!0),n.checkPut=e(o.put),n.revertClone=o.revertClone,t.group=n},yo=function(){!fo&&E&&v(E,"display","none")},bo=function(){!fo&&E&&v(E,"display","")};Je&&!Qn&&document.addEventListener("click",function(i){if(qe)return i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.stopImmediatePropagation&&i.stopImmediatePropagation(),qe=!1,!1},!0);var Kt=function(t){if(h){t=t.touches?t.touches[0]:t;var e=Cs(t.clientX,t.clientY);if(e){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[pt]._onDragOver(n)}}},Ts=function(t){h&&h.parentNode[pt]._isOutsideThisEl(t.target)};function w(i,t){if(!(i&&i.nodeType&&i.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));this.el=i,this.options=t=Ot({},t),i[pt]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(i.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return go(i,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&&(!Ae||zi),emptyInsertThreshold:5};Te.initializePlugins(this,i,e);for(var n in e)!(n in t)&&(t[n]=e[n]);mo(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:_s,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?C(i,"pointerdown",this._onTapStart):(C(i,"mousedown",this._onTapStart),C(i,"touchstart",this._onTapStart)),this.nativeDraggable&&(C(i,"dragover",this),C(i,"dragenter",this)),Xe.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Ot(this,ws())}w.prototype={constructor:w,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(ce=null)},_getDirection:function(t,e){return typeof this.options.direction=="function"?this.options.direction.call(this,t,e,h):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=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(Ns(n),!h&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||o.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Ae&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=$t(l,o.draggable,n,!1),!(l&&l.animated)&&ze!==l)){if(de=Et(l),De=Et(l,o.draggable),typeof c=="function"){if(c.call(this,t,l,this)){ut({sortable:e,rootEl:d,name:"filter",targetEl:l,toEl:n,fromEl:n}),ft("filter",e,{evt:t}),r&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(u){if(u=$t(d,u.trim(),n,!1),u)return ut({sortable:e,rootEl:u,name:"filter",targetEl:l,fromEl:n,toEl:n}),ft("filter",e,{evt:t}),!0}),c)){r&&t.preventDefault();return}o.handle&&!$t(d,o.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,n){var o=this,r=o.el,s=o.options,a=r.ownerDocument,l;if(n&&!h&&n.parentNode===r){var d=W(n);if(B=r,h=n,j=h.parentNode,Gt=h.nextSibling,ze=n,Ze=s.group,w.dragged=h,Jt={target:h,clientX:(e||t).clientX,clientY:(e||t).clientY},co=Jt.clientX-d.left,ho=Jt.clientY-d.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,h.style["will-change"]="all",l=function(){if(ft("delayEnded",o,{evt:t}),w.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Kn&&o.nativeDraggable&&(h.draggable=!0),o._triggerDragStart(t,e),ut({sortable:o,name:"choose",originalEvent:t}),bt(h,s.chosenClass,!0)},s.ignore.split(",").forEach(function(c){no(h,c.trim(),Ki)}),C(a,"dragover",Kt),C(a,"mousemove",Kt),C(a,"touchmove",Kt),s.supportPointer?(C(a,"pointerup",o._onDrop),!this.nativeDraggable&&C(a,"pointercancel",o._onDrop)):(C(a,"mouseup",o._onDrop),C(a,"touchend",o._onDrop),C(a,"touchcancel",o._onDrop)),Kn&&this.nativeDraggable&&(this.options.touchStartThreshold=4,h.draggable=!0),ft("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(_e||Rt))){if(w.eventCanceled){this._onDrop();return}s.supportPointer?(C(a,"pointerup",o._disableDelayedDrag),C(a,"pointercancel",o._disableDelayedDrag)):(C(a,"mouseup",o._disableDelayedDrag),C(a,"touchend",o._disableDelayedDrag),C(a,"touchcancel",o._disableDelayedDrag)),C(a,"mousemove",o._delayedDragTouchMoveHandler),C(a,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&C(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(l,s.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){h&&Ki(h),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;_(t,"mouseup",this._disableDelayedDrag),_(t,"touchend",this._disableDelayedDrag),_(t,"touchcancel",this._disableDelayedDrag),_(t,"pointerup",this._disableDelayedDrag),_(t,"pointercancel",this._disableDelayedDrag),_(t,"mousemove",this._delayedDragTouchMoveHandler),_(t,"touchmove",this._delayedDragTouchMoveHandler),_(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?C(document,"pointermove",this._onTouchMove):e?C(document,"touchmove",this._onTouchMove):C(document,"mousemove",this._onTouchMove):(C(h,"dragend",this),C(B,"dragstart",this._onDragStart));try{document.selection?ti(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(ue=!1,B&&h){ft("dragStarted",this,{evt:e}),this.nativeDraggable&&C(document,"dragover",Ts);var n=this.options;!t&&bt(h,n.dragClass,!1),bt(h,n.ghostClass,!0),w.active=this,t&&this._appendGhost(),ut({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(St){this._lastX=St.clientX,this._lastY=St.clientY,yo();for(var t=document.elementFromPoint(St.clientX,St.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(St.clientX,St.clientY),t!==e);)e=t;if(h.parentNode[pt]._isOutsideThisEl(t),e)do{if(e[pt]){var n=void 0;if(n=e[pt]._onDragOver({clientX:St.clientX,clientY:St.clientY,target:t,rootEl:e}),n&&!this.options.dragoverBubble)break}t=e}while(e=eo(e));bo()}},_onTouchMove:function(t){if(Jt){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,r=t.touches?t.touches[0]:t,s=E&&se(E,!0),a=E&&s&&s.a,l=E&&s&&s.d,d=Ke&<&&ro(lt),c=(r.clientX-Jt.clientX+o.x)/(a||1)+(d?d[0]-Gi[0]:0)/(a||1),u=(r.clientY-Jt.clientY+o.y)/(l||1)+(d?d[1]-Gi[1]:0)/(l||1);if(!w.active&&!ue){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(E){s?(s.e+=c-(Yi||0),s.f+=u-(Wi||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(E,"webkitTransform",p),v(E,"mozTransform",p),v(E,"msTransform",p),v(E,"transform",p),Yi=c,Wi=u,St=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!E){var t=this.options.fallbackOnBody?document.body:B,e=W(h,!0,Ke,!0,t),n=this.options;if(Ke){for(lt=t;v(lt,"position")==="static"&&v(lt,"transform")==="none"&<!==document;)lt=lt.parentNode;lt!==document.body&<!==document.documentElement?(lt===document&&(lt=At()),e.top+=lt.scrollTop,e.left+=lt.scrollLeft):lt=At(),Gi=ro(lt)}E=h.cloneNode(!0),bt(E,n.ghostClass,!1),bt(E,n.fallbackClass,!0),bt(E,n.dragClass,!0),v(E,"transition",""),v(E,"transform",""),v(E,"box-sizing","border-box"),v(E,"margin",0),v(E,"top",e.top),v(E,"left",e.left),v(E,"width",e.width),v(E,"height",e.height),v(E,"opacity","0.8"),v(E,"position",Ke?"absolute":"fixed"),v(E,"zIndex","100000"),v(E,"pointerEvents","none"),w.ghost=E,t.appendChild(E),v(E,"transform-origin",co/parseInt(E.style.width)*100+"% "+ho/parseInt(E.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,o=t.dataTransfer,r=n.options;if(ft("dragStart",this,{evt:t}),w.eventCanceled){this._onDrop();return}ft("setupClone",this),w.eventCanceled||(U=lo(h),U.removeAttribute("id"),U.draggable=!1,U.style["will-change"]="",this._hideClone(),bt(U,this.options.chosenClass,!1),w.clone=U),n.cloneId=ti(function(){ft("clone",n),!w.eventCanceled&&(n.options.removeCloneOnHide||B.insertBefore(U,h),n._hideClone(),ut({sortable:n,name:"clone"}))}),!e&&bt(h,r.dragClass,!0),e?(qe=!0,n._loopId=setInterval(n._emulateDragOver,50)):(_(document,"mouseup",n._onDrop),_(document,"touchend",n._onDrop),_(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(n,o,h)),C(document,"drop",n),v(h,"transform","translateZ(0)")),ue=!0,n._dragStartId=ti(n._dragStarted.bind(n,e,t)),C(document,"selectstart",n),Pe=!0,window.getSelection().removeAllRanges(),Ae&&v(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,n=t.target,o,r,s,a=this.options,l=a.group,d=w.active,c=Ze===l,u=a.sort,p=rt||d,f,g=this,b=!1;if(Ji)return;function V(wt,Qt){ft(wt,g,_t({evt:t,isOwner:c,axis:f?"vertical":"horizontal",revert:s,dragRect:o,targetRect:r,canSort:u,fromSortable:p,target:n,completed:z,onMove:function(te,It){return Qe(B,e,h,o,te,W(te),t,It)},changed:ct},Qt))}function et(){V("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function z(wt){return V("dragOverCompleted",{insertion:wt}),wt&&(c?d._hideClone():d._showClone(g),g!==p&&(bt(h,rt?rt.options.ghostClass:d.options.ghostClass,!1),bt(h,a.ghostClass,!0)),rt!==g&&g!==w.active?rt=g:g===w.active&&rt&&(rt=null),p===g&&(g._ignoreWhileAnimating=n),g.animateAll(function(){V("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(n===h&&!h.animated||n===e&&!n.animated)&&(ce=null),!a.dragoverBubble&&!t.rootEl&&n!==document&&(h.parentNode[pt]._isOutsideThisEl(t.target),!wt&&Kt(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),b=!0}function ct(){vt=Et(h),kt=Et(h,a.draggable),ut({sortable:g,name:"change",toEl:e,newIndex:vt,newDraggableIndex:kt,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),n=$t(n,a.draggable,e,!0),V("dragOver"),w.eventCanceled)return b;if(h.contains(t.target)||n.animated&&n.animatingX&&n.animatingY||g._ignoreWhileAnimating===n)return z(!1);if(qe=!1,d&&!a.disabled&&(c?u||(s=j!==B):rt===this||(this.lastPutMode=Ze.checkPull(this,d,h,t))&&l.checkPut(this,d,h,t))){if(f=this._getDirection(t,n)==="vertical",o=W(h),V("dragOverValid"),w.eventCanceled)return b;if(s)return j=B,et(),this._hideClone(),V("revert"),w.eventCanceled||(Gt?B.insertBefore(h,Gt):B.appendChild(h)),z(!0);var it=Zi(e,a.draggable);if(!it||Ls(t,f,this)&&!it.animated){if(it===h)return z(!1);if(it&&e===t.target&&(n=it),n&&(r=W(n)),Qe(B,e,h,o,n,r,t,!!n)!==!1)return et(),it&&it.nextSibling?e.insertBefore(h,it.nextSibling):e.appendChild(h),j=e,ct(),z(!0)}else if(it&&Os(t,f,this)){var $=ae(e,0,a,!0);if($===h)return z(!1);if(n=$,r=W(n),Qe(B,e,h,o,n,r,t,!1)!==!1)return et(),e.insertBefore(h,$),j=e,ct(),z(!0)}else if(n.parentNode===e){r=W(n);var m=0,A,N=h.parentNode!==e,M=!As(h.animated&&h.toRect||o,n.animated&&n.toRect||r,f),J=f?"top":"left",K=oo(n,"top","top")||oo(h,"top","top"),k=K?K.scrollTop:void 0;ce!==n&&(A=r[J],Le=!1,Ye=!M&&a.invertSwap||N),m=Rs(t,n,r,f,M?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Ye,ce===n);var I;if(m!==0){var Y=Et(h);do Y-=m,I=j.children[Y];while(I&&(v(I,"display")==="none"||I===E))}if(m===0||I===n)return z(!1);ce=n,Oe=m;var gt=n.nextElementSibling,at=!1;at=m===1;var mt=Qe(B,e,h,o,n,r,t,at);if(mt!==!1)return(mt===1||mt===-1)&&(at=mt===1),Ji=!0,setTimeout(Ps,30),et(),at&&!gt?e.appendChild(h):n.parentNode.insertBefore(h,at?gt:n),K&&ao(K,0,k-K.scrollTop),j=h.parentNode,A!==void 0&&!Ye&&(We=Math.abs(A-W(n)[J])),ct(),z(!0)}if(e.contains(h))return z(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){_(document,"mousemove",this._onTouchMove),_(document,"touchmove",this._onTouchMove),_(document,"pointermove",this._onTouchMove),_(document,"dragover",Kt),_(document,"mousemove",Kt),_(document,"touchmove",Kt)},_offUpEvents:function(){var t=this.el.ownerDocument;_(t,"mouseup",this._onDrop),_(t,"touchend",this._onDrop),_(t,"pointerup",this._onDrop),_(t,"pointercancel",this._onDrop),_(t,"touchcancel",this._onDrop),_(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;if(vt=Et(h),kt=Et(h,n.draggable),ft("drop",this,{evt:t}),j=h&&h.parentNode,vt=Et(h),kt=Et(h,n.draggable),w.eventCanceled){this._nulling();return}ue=!1,Ye=!1,Le=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Qi(this.cloneId),Qi(this._dragStartId),this.nativeDraggable&&(_(document,"drop",this),_(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ae&&v(document.body,"user-select",""),v(h,"transform",""),t&&(Pe&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),E&&E.parentNode&&E.parentNode.removeChild(E),(B===j||rt&&rt.lastPutMode!=="clone")&&U&&U.parentNode&&U.parentNode.removeChild(U),h&&(this.nativeDraggable&&_(h,"dragend",this),Ki(h),h.style["will-change"]="",Pe&&!ue&&bt(h,rt?rt.options.ghostClass:this.options.ghostClass,!1),bt(h,this.options.chosenClass,!1),ut({sortable:this,name:"unchoose",toEl:j,newIndex:null,newDraggableIndex:null,originalEvent:t}),B!==j?(vt>=0&&(ut({rootEl:j,name:"add",toEl:j,fromEl:B,originalEvent:t}),ut({sortable:this,name:"remove",toEl:j,originalEvent:t}),ut({rootEl:j,name:"sort",toEl:j,fromEl:B,originalEvent:t}),ut({sortable:this,name:"sort",toEl:j,originalEvent:t})),rt&&rt.save()):vt!==de&&vt>=0&&(ut({sortable:this,name:"update",toEl:j,originalEvent:t}),ut({sortable:this,name:"sort",toEl:j,originalEvent:t})),w.active&&((vt==null||vt===-1)&&(vt=de,kt=De),ut({sortable:this,name:"end",toEl:j,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){ft("nulling",this),B=h=j=E=Gt=U=ze=Bt=Jt=St=Pe=vt=kt=de=De=ce=Oe=rt=Ze=w.dragged=w.ghost=w.clone=w.active=null,Ge.forEach(function(t){t.checked=!0}),Ge.length=Yi=Wi=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":h&&(this._onDragOver(t),Ds(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,n=this.el.children,o=0,r=n.length,s=this.options;o<r;o++)e=n[o],$t(e,s.draggable,this.el,!1)&&t.push(e.getAttribute(s.dataIdAttr)||Is(e));return t},sort:function(t,e){var n={},o=this.el;this.toArray().forEach(function(r,s){var a=o.children[s];$t(a,this.options.draggable,o,!1)&&(n[r]=a)},this),e&&this.captureAnimationState(),t.forEach(function(r){n[r]&&(o.removeChild(n[r]),o.appendChild(n[r]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return $t(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(e===void 0)return n[t];var o=Te.modifyOption(this,t,e);typeof o<"u"?n[t]=o:n[t]=e,t==="group"&&mo(n)},destroy:function(){ft("destroy",this);var t=this.el;t[pt]=null,_(t,"mousedown",this._onTapStart),_(t,"touchstart",this._onTapStart),_(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(_(t,"dragover",this),_(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Xe.splice(Xe.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Bt){if(ft("hideClone",this),w.eventCanceled)return;v(U,"display","none"),this.options.removeCloneOnHide&&U.parentNode&&U.parentNode.removeChild(U),Bt=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Bt){if(ft("showClone",this),w.eventCanceled)return;h.parentNode==B&&!this.options.group.revertClone?B.insertBefore(U,h):Gt?B.insertBefore(U,Gt):B.appendChild(U),this.options.group.revertClone&&this.animate(h,U),v(U,"display",""),Bt=!1}}};function Ds(i){i.dataTransfer&&(i.dataTransfer.dropEffect="move"),i.cancelable&&i.preventDefault()}function Qe(i,t,e,n,o,r,s,a){var l,d=i[pt],c=d.options.onMove,u;return window.CustomEvent&&!Rt&&!_e?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=i,l.dragged=e,l.draggedRect=n,l.related=o||t,l.relatedRect=r||W(t),l.willInsertAfter=a,l.originalEvent=s,i.dispatchEvent(l),c&&(u=c.call(d,l,s)),u}function Ki(i){i.draggable=!1}function Ps(){Ji=!1}function Os(i,t,e){var n=W(ae(e.el,0,e.options,!0)),o=uo(e.el,e.options,E),r=10;return t?i.clientX<o.left-r||i.clientY<n.top&&i.clientX<n.right:i.clientY<o.top-r||i.clientY<n.bottom&&i.clientX<n.left}function Ls(i,t,e){var n=W(Zi(e.el,e.options.draggable)),o=uo(e.el,e.options,E),r=10;return t?i.clientX>o.right+r||i.clientY>n.bottom&&i.clientX>n.left:i.clientY>o.bottom+r||i.clientX>n.right&&i.clientY>n.top}function Rs(i,t,e,n,o,r,s,a){var l=n?i.clientY:i.clientX,d=n?e.height:e.width,c=n?e.top:e.left,u=n?e.bottom:e.right,p=!1;if(!s){if(a&&We<d*o){if(!Le&&(Oe===1?l>c+d*r/2:l<u-d*r/2)&&(Le=!0),Le)p=!0;else if(Oe===1?l<c+We:l>u-We)return-Oe}else if(l>c+d*(1-o)/2&&l<u-d*(1-o)/2)return Ms(t)}return p=p||s,p&&(l<c+d*r/2||l>u-d*r/2)?l>c+d/2?1:-1:0}function Ms(i){return Et(h)<Et(i)?1:-1}function Is(i){for(var t=i.tagName+i.className+i.src+i.href+i.textContent,e=t.length,n=0;e--;)n+=t.charCodeAt(e);return n.toString(36)}function Ns(i){Ge.length=0;for(var t=i.getElementsByTagName("input"),e=t.length;e--;){var n=t[e];n.checked&&Ge.push(n)}}function ti(i){return setTimeout(i,0)}function Qi(i){return clearTimeout(i)}Je&&C(document,"touchmove",function(i){(w.active||ue)&&i.cancelable&&i.preventDefault()}),w.utils={on:C,off:_,css:v,find:no,is:function(t,e){return!!$t(t,e,t,!1)},extend:bs,throttle:so,closest:$t,toggleClass:bt,clone:lo,index:Et,nextTick:ti,cancelNextTick:Qi,detectDirection:go,getChild:ae,expando:pt},w.get=function(i){return i[pt]},w.mount=function(){for(var i=arguments.length,t=new Array(i),e=0;e<i;e++)t[e]=arguments[e];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=_t(_t({},w.utils),n.utils)),Te.mount(n)})},w.create=function(i,t){return new w(i,t)},w.version=ms;var G=[],Re,tn,en=!1,nn,on,ei,Me;function Hs(){function i(){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 i.prototype={dragStarted:function(e){var n=e.originalEvent;this.sortable.nativeDraggable?C(document,"dragover",this._handleAutoScroll):this.options.supportPointer?C(document,"pointermove",this._handleFallbackAutoScroll):n.touches?C(document,"touchmove",this._handleFallbackAutoScroll):C(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var n=e.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?_(document,"dragover",this._handleAutoScroll):(_(document,"pointermove",this._handleFallbackAutoScroll),_(document,"touchmove",this._handleFallbackAutoScroll),_(document,"mousemove",this._handleFallbackAutoScroll)),vo(),ii(),vs()},nulling:function(){ei=tn=Re=en=Me=nn=on=null,G.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,n){var o=this,r=(e.touches?e.touches[0]:e).clientX,s=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,s);if(ei=e,n||this.options.forceAutoScrollFallback||_e||Rt||Ae){rn(e,this.options,a,n);var l=Vt(a,!0);en&&(!Me||r!==nn||s!==on)&&(Me&&vo(),Me=setInterval(function(){var d=Vt(document.elementFromPoint(r,s),!0);d!==l&&(l=d,ii()),rn(e,o.options,d,n)},10),nn=r,on=s)}else{if(!this.options.bubbleScroll||Vt(a,!0)===At()){ii();return}rn(e,this.options,Vt(a,!1),!1)}}},Ot(i,{pluginName:"scroll",initializeByDefault:!0})}function ii(){G.forEach(function(i){clearInterval(i.pid)}),G=[]}function vo(){clearInterval(Me)}var rn=so(function(i,t,e,n){if(t.scroll){var o=(i.touches?i.touches[0]:i).clientX,r=(i.touches?i.touches[0]:i).clientY,s=t.scrollSensitivity,a=t.scrollSpeed,l=At(),d=!1,c;tn!==e&&(tn=e,ii(),Re=t.scroll,c=t.scrollFn,Re===!0&&(Re=Vt(e,!0)));var u=0,p=Re;do{var f=p,g=W(f),b=g.top,V=g.bottom,et=g.left,z=g.right,ct=g.width,it=g.height,$=void 0,m=void 0,A=f.scrollWidth,N=f.scrollHeight,M=v(f),J=f.scrollLeft,K=f.scrollTop;f===l?($=ct<A&&(M.overflowX==="auto"||M.overflowX==="scroll"||M.overflowX==="visible"),m=it<N&&(M.overflowY==="auto"||M.overflowY==="scroll"||M.overflowY==="visible")):($=ct<A&&(M.overflowX==="auto"||M.overflowX==="scroll"),m=it<N&&(M.overflowY==="auto"||M.overflowY==="scroll"));var k=$&&(Math.abs(z-o)<=s&&J+ct<A)-(Math.abs(et-o)<=s&&!!J),I=m&&(Math.abs(V-r)<=s&&K+it<N)-(Math.abs(b-r)<=s&&!!K);if(!G[u])for(var Y=0;Y<=u;Y++)G[Y]||(G[Y]={});(G[u].vx!=k||G[u].vy!=I||G[u].el!==f)&&(G[u].el=f,G[u].vx=k,G[u].vy=I,clearInterval(G[u].pid),(k!=0||I!=0)&&(d=!0,G[u].pid=setInterval((function(){n&&this.layer===0&&w.active._onTouchMove(ei);var gt=G[this.layer].vy?G[this.layer].vy*a:0,at=G[this.layer].vx?G[this.layer].vx*a:0;typeof c=="function"&&c.call(w.dragged.parentNode[pt],at,gt,i,ei,G[this.layer].el)!=="continue"||ao(G[this.layer].el,at,gt)}).bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==l&&(p=Vt(p,!1)));en=d}},30),wo=function(t){var e=t.originalEvent,n=t.putSortable,o=t.dragEl,r=t.activeSortable,s=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var d=n||r;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);l(),d&&!d.el.contains(u)&&(s("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function sn(){}sn.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=ae(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:wo},Ot(sn,{pluginName:"revertOnSpill"});function an(){}an.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable,o=n||this.sortable;o.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),o.animateAll()},drop:wo},Ot(an,{pluginName:"removeOnSpill"}),w.mount(new Hs),w.mount(an,sn);const Vs=i=>{const t=i.item;let e=Array.prototype.slice.call(t.parentNode.childNodes);return e=e.filter(n=>n.nodeType!=Node.ELEMENT_NODE||!n.classList.contains("sortable-fallback")),e},Bs=(i,t,e,n,o,r)=>{const a=i.item.parentNode;for(const b of e)a.appendChild(b);if(i.oldIndex==i.newIndex)return;const l=n.getArray(),d=i.item.querySelector("eox-layercontrol-layer").layer.get(o),c=l.find(b=>b.get(o)===d),u=r.dataset.layer,p=l.find(b=>b.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 ks(i,t,e,n){let o=[],r=null;i._sortable=w.create(i,{handle:".drag-handle",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",onStart:s=>o=Vs(s),onMove:s=>{r=s.related},onEnd:s=>Bs(s,n,o,t,e,r)})}function Us(i,t,e,n){const o=i.getArray();let r=!1;o.forEach(s=>{const a=s.ol_uid;s.get(t)||(s.set(t,a),r=!0),s.get(e)||(s.set(e,`layer ${a}`),r=!0),r&&n.requestUpdate()})}function ln(i,t,e){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(i,t,e),n}function Fs(i,t,e){if(!i||!t)return!1;if(!xo(i,e))return!0;const n=i.get("minZoom"),o=i.get("maxZoom"),r=t.getView().getZoom();return r>n&&r<o}function xo(i,t){const e=i.get("minZoom"),n=i.get("maxZoom");return!!(t&&(e!==-1/0||n!==1/0))}function js(i,t){var o,r,s;return!i||!t?void 0:i.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(i.getSource?(r=i.getSource())==null?void 0:r.ol_uid:void 0))?"draw":i.declutter_!==void 0?"vector":"raster"}const zs=(i,t,e)=>{let n=t;return e.layer.getSource().getTileUrlFunction()&&(n||(n=e.layer.getSource().getTileUrlFunction()),e.layer.getSource().setTileUrlFunction((...o)=>hs(n(...o),i)),e.layer.getSource().setKey(new Date)),n};function Zs(i,t,e){const n="updateStyleVariables"in t,o="setStyle"in t,r=n?t.style_:e.style;let s=r==null?void 0:r.variables;if(s){const a=dn(i);if(r.variables={...s,...a},n)t.updateStyleVariables(a);else if(o){const l=qs(r);t.setStyle(l)}}}const dn=i=>{const t={};for(const e in i)if(typeof i[e]=="object"&&i[e]!==null){const n=dn(i[e]);for(const o in n)t[o]=n==null?void 0:n[o]}else t[e]=i==null?void 0:i[e];return t};function qs(i){let t=i;if("variables"in i){let e=JSON.stringify(i);const{variables:n}=i;for(const o in n)typeof n[o]=="number"?e=e.replaceAll(`["var","${o}"]`,n[o]):e=e.replaceAll(`["var","${o}"]`,`"${n[o]}"`);t=JSON.parse(e)}return t}const Xs=(i,t)=>{var e;if(i)return!("domainProperties"in i)||"domain"in i?{...i}:(e=Object.keys(i))==null?void 0:e.reduce((n,o)=>{if(o==="domainProperties"){const r=dn(t);n.domain=i[o].map(s=>r[s])}else n[o]=i[o];return n},{})};function Eo(i,t){var n;let e={};for(const o in i){const r=i[o].type;if(r&&r!=="object")e[o]=r==="number"?Number(t[o]):t[o];else if(typeof i[o]=="object"&&((n=i[o])!=null&&n.properties)){const s=Eo(i[o].properties,t);Object.keys(s).length>0&&(e[o]=s)}}return e}function Ys(i,t){var r,s,a,l,d;if(!t)return null;let e={},n="updateStyleVariables"in i?(r=i.style_)==null?void 0:r.variables:(s=t.style)==null?void 0:s.variables;if((t.type==="style"||t.style)&&n)e=n;else if((l=(a=i.getSource())==null?void 0:a.getTileUrlFunction)!=null&&l.call(a)){const c=new URL(i.getSource().getTileUrlFunction()([0,0,0]));e=Object.fromEntries(c.searchParams.entries())}else return null;const o=Eo(((d=t.schema)==null?void 0:d.properties)||t.schema,e);return Object.keys(o).length?o:null}const Ws=(i,t)=>i==null?void 0:i.filter(e=>["remove","sort"].filter(n=>t!=null&&t.get("layerControlDisable")?n!=="sort":!0).includes(e)),Gs=(i,t)=>i==null?void 0:i.filter(e=>{let n=!0;return["remove","sort"].includes(e)&&(n=!1),e==="info"&&(n=t.get("description")),e==="config"&&(n=t.get("layerConfig")),e==="datetime"&&(n=t.get("layerDatetime")),e==="legend"&&(n=t.get("layerLegend")),n}),Js=(i,t)=>x`
|
|
46
46
|
<button slot="${i}-icon" class="icon">${t?i:O}</button>
|
|
47
47
|
`,Ks=i=>x`
|
|
48
48
|
<button
|
|
@@ -67,24 +67,20 @@
|
|
|
67
67
|
* @license
|
|
68
68
|
* Copyright 2021 Google LLC
|
|
69
69
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
70
|
-
*/function*ni(i,t){if(i!==void 0){let e=0;for(const n of i)yield t(n,e++)}}var Ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _o(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var cn,Ao;function ea(){if(Ao)return cn;Ao=1;var i="Expected a function",t=NaN,e="[object Symbol]",n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt,l=typeof Ut=="object"&&Ut&&Ut.Object===Object&&Ut,d=typeof self=="object"&&self&&self.Object===Object&&self,c=l||d||Function("return this")(),u=Object.prototype,p=u.toString,f=Math.max,g=Math.min,b=function(){return c.Date.now()};function V(m,A,N){var M,J,K,k,I,Y,gt=0,at=!1,mt=!1,wt=!0;if(typeof m!="function")throw new TypeError(i);A=$(A)||0,
|
|
70
|
+
*/function*ni(i,t){if(i!==void 0){let e=0;for(const n of i)yield t(n,e++)}}var Ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _o(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var cn,Ao;function ea(){if(Ao)return cn;Ao=1;var i="Expected a function",t=NaN,e="[object Symbol]",n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt,l=typeof Ut=="object"&&Ut&&Ut.Object===Object&&Ut,d=typeof self=="object"&&self&&self.Object===Object&&self,c=l||d||Function("return this")(),u=Object.prototype,p=u.toString,f=Math.max,g=Math.min,b=function(){return c.Date.now()};function V(m,A,N){var M,J,K,k,I,Y,gt=0,at=!1,mt=!1,wt=!0;if(typeof m!="function")throw new TypeError(i);A=$(A)||0,z(N)&&(at=!!N.leading,mt="maxWait"in N,K=mt?f($(N.maxWait)||0,A):K,wt="trailing"in N?!!N.trailing:wt);function Qt(H){var yt=M,jt=J;return M=J=void 0,gt=H,k=m.apply(jt,yt),k}function Ai(H){return gt=H,I=setTimeout(ee,A),at?Qt(H):k}function te(H){var yt=H-Y,jt=H-gt,jo=A-yt;return mt?g(jo,K-jt):jo}function It(H){var yt=H-Y,jt=H-gt;return Y===void 0||yt>=A||yt<0||mt&&jt>=K}function ee(){var H=b();if(It(H))return Ci(H);I=setTimeout(ee,te(H))}function Ci(H){return I=void 0,wt&&M?Qt(H):(M=J=void 0,k)}function fn(){I!==void 0&&clearTimeout(I),gt=0,M=Y=J=I=void 0}function Ve(){return I===void 0?k:Ci(b())}function F(){var H=b(),yt=It(H);if(M=arguments,J=this,Y=H,yt){if(I===void 0)return Ai(Y);if(mt)return I=setTimeout(ee,A),Qt(Y)}return I===void 0&&(I=setTimeout(ee,A)),k}return F.cancel=fn,F.flush=Ve,F}function et(m,A,N){var M=!0,J=!0;if(typeof m!="function")throw new TypeError(i);return z(N)&&(M="leading"in N?!!N.leading:M,J="trailing"in N?!!N.trailing:J),V(m,A,{leading:M,maxWait:A,trailing:J})}function z(m){var A=typeof m;return!!m&&(A=="object"||A=="function")}function ct(m){return!!m&&typeof m=="object"}function it(m){return typeof m=="symbol"||ct(m)&&p.call(m)==e}function $(m){if(typeof m=="number")return m;if(it(m))return t;if(z(m)){var A=typeof m.valueOf=="function"?m.valueOf():m;m=z(A)?A+"":A}if(typeof m!="string")return m===0?m:+m;m=m.replace(n,"");var N=r.test(m);return N||s.test(m)?a(m.slice(2),N?2:8):o.test(m)?t:+m}return cn=et,cn}var ia=ea();const Co=_o(ia);/**
|
|
71
71
|
* @license
|
|
72
72
|
* Copyright 2018 Google LLC
|
|
73
73
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
74
|
-
*/const oi=i=>i??O;class To extends dt{constructor(){super();
|
|
75
|
-
.legend-container {
|
|
76
|
-
display: flex;
|
|
77
|
-
justify-content: center;
|
|
78
|
-
}
|
|
79
|
-
|
|
74
|
+
*/const oi=i=>i??O;class To extends dt{constructor(){super();L(this,ri,wn`
|
|
80
75
|
color-legend {
|
|
81
76
|
--cle-background: transparent;
|
|
82
77
|
--cle-font-family: inherit;
|
|
83
78
|
--cle-font-size: inherit;
|
|
84
79
|
--cle-font-weight: inherit --cle-letter-spacing: inherit;
|
|
85
80
|
--cle-letter-spacing-title: inherit;
|
|
81
|
+
--cle-padding: 0;
|
|
86
82
|
}
|
|
87
|
-
`);
|
|
83
|
+
`);L(this,si,"");this.unstyled=!1,this.noShadow=!1,this.layerLegend=null,this.layer=null}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}firstUpdated(){this.layerLegend.width||new ResizeObserver(()=>{this.offsetWidth!==this.layerLegend.width&&(this.layerLegend.width=this.offsetWidth,this.requestUpdate())}).observe(this.renderRoot.querySelector(".legend-container"))}render(){return customElements.get("color-legend")||console.error("Please import `color-legend-element` in order to use layerLegend"),x`
|
|
88
84
|
<style>
|
|
89
85
|
${T(this,ri)}
|
|
90
86
|
${!this.unstyled&&T(this,si)}
|
|
@@ -103,11 +99,13 @@
|
|
|
103
99
|
tickFormat="${oi(this.layerLegend.tickFormat)}"
|
|
104
100
|
.ticks=${this.layerLegend.ticks??5}
|
|
105
101
|
.tickValues=${this.layerLegend.tickValues}
|
|
102
|
+
.marginLeft=${0}
|
|
103
|
+
.marginRight=${0}
|
|
106
104
|
>
|
|
107
105
|
</color-legend>
|
|
108
106
|
</div>
|
|
109
107
|
`)}
|
|
110
|
-
`}}ri=new WeakMap,si=new WeakMap,
|
|
108
|
+
`}}ri=new WeakMap,si=new WeakMap,Z(To,"properties",{unstyled:{type:Boolean},noShadow:{type:Boolean},layerLegend:{attribute:!1},layer:{attribute:!1}}),customElements.define("eox-layercontrol-layer-legend",To);class Do extends dt{constructor(){super();L(this,Ne);L(this,Mt,{});L(this,he,null);L(this,Ie);L(this,ai,wn`
|
|
111
109
|
color-legend {
|
|
112
110
|
--cle-background: transparent;
|
|
113
111
|
--cle-font-family: inherit;
|
|
@@ -115,7 +113,7 @@
|
|
|
115
113
|
--cle-font-weight: inherit --cle-letter-spacing: inherit;
|
|
116
114
|
--cle-letter-spacing-title: inherit;
|
|
117
115
|
}
|
|
118
|
-
`);
|
|
116
|
+
`);L(this,li,"");this.layer=null,this.unstyled=!1,this.noShadow=!1,this.layerConfig=null,this.throttleDataChange=Co(q(this,Ne,mn),1e3)}updated(e){if(e.has("layerConfig")){const n=this.layerConfig.type==="style"||this.layerConfig.style?100:1e3;this.throttleDataChange=Co(q(this,Ne,mn),n),this.requestUpdate()}}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){fe(this,he,Ys(this.layer,this.layerConfig)),Object.keys(T(this,Mt)).length!==0&&fe(this,he,T(this,Mt)),customElements.get("eox-jsonform")||console.error("Please import @eox/jsonform in order to use layerconfig");const e={disable_edit_json:!0,disable_collapse:!0,disable_properties:!0};return x`
|
|
119
117
|
<style>
|
|
120
118
|
${T(this,ai)}
|
|
121
119
|
${!this.unstyled&&T(this,li)}
|
|
@@ -137,7 +135,7 @@
|
|
|
137
135
|
@change=${this.throttleDataChange}
|
|
138
136
|
></eox-jsonform>
|
|
139
137
|
`)}
|
|
140
|
-
`}}Mt=new WeakMap,he=new WeakMap,Ie=new WeakMap,Ne=new WeakSet,mn=function(e){fe(this,Mt,e.detail),this.layerConfig.type==="style"||this.layerConfig.style?"setStyle"in this.layer||"updateStyleVariables"in this.layer?
|
|
138
|
+
`}}Mt=new WeakMap,he=new WeakMap,Ie=new WeakMap,Ne=new WeakSet,mn=function(e){fe(this,Mt,e.detail),this.layerConfig.type==="style"||this.layerConfig.style?"setStyle"in this.layer||"updateStyleVariables"in this.layer?Zs(T(this,Mt),this.layer,this.layerConfig):console.error(`Layer type ${this.layer.get("type")??""} does not support styles configuration`):fe(this,Ie,zs(T(this,Mt),T(this,Ie),this)),this.requestUpdate()},ai=new WeakMap,li=new WeakMap,Z(Do,"properties",{layer:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},layerConfig:{attribute:!1}}),customElements.define("eox-layercontrol-layerconfig",Do);class Po extends dt{constructor(){super();L(this,di);L(this,ui,"");L(this,ci,"");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"),x`
|
|
141
139
|
<style>
|
|
142
140
|
${T(this,ui)}
|
|
143
141
|
${!this.unstyled&&T(this,ci)}
|
|
@@ -153,36 +151,50 @@
|
|
|
153
151
|
.controlValues=${this.layerDatetime.controlValues}
|
|
154
152
|
.controlProperty=${void 0}
|
|
155
153
|
current-step=${this.layerDatetime.currentStep}
|
|
156
|
-
@stepchange=${q(this,di,
|
|
154
|
+
@stepchange=${q(this,di,Zo)}
|
|
157
155
|
></eox-timecontrol>
|
|
158
156
|
`)}
|
|
159
|
-
`}}di=new WeakSet,
|
|
160
|
-
.tabbed figure
|
|
157
|
+
`}}di=new WeakSet,Zo=function(e){this.dispatchEvent(new CustomEvent("datetime:updated",{bubbles:!0,detail:{datetime:e.detail.currentStep,layer:this.layer}})),this.layerDatetime.currentStep=e.detail.currentStep,this.requestUpdate()},ui=new WeakMap,ci=new WeakMap,Z(Po,"properties",{unstyled:{type:Boolean},noShadow:{type:Boolean},layerDatetime:{attribute:!1},layer:{attribute:!1}}),customElements.define("eox-layercontrol-layer-datetime",Po);class Oo extends dt{constructor(){super();L(this,He,e=>(this.selectedTab===e||this.toolsAsList)&&"highlighted");L(this,hi,`
|
|
158
|
+
.tabbed figure,
|
|
159
|
+
.listed figure {
|
|
161
160
|
margin: 0;
|
|
162
161
|
}
|
|
163
|
-
.tabbed nav
|
|
162
|
+
.tabbed nav,
|
|
163
|
+
.listed nav {
|
|
164
164
|
display: flex;
|
|
165
165
|
justify-content: space-between;
|
|
166
166
|
}
|
|
167
|
-
.tabbed nav div
|
|
167
|
+
.tabbed nav div,
|
|
168
|
+
.listed nav div {
|
|
168
169
|
display: flex;
|
|
169
170
|
}
|
|
170
|
-
.tabbed .tab
|
|
171
|
+
.tabbed .tab,
|
|
172
|
+
.listed .tab {
|
|
171
173
|
display: none;
|
|
172
174
|
}
|
|
173
|
-
.tabbed .tab.highlighted
|
|
175
|
+
.tabbed .tab.highlighted,
|
|
176
|
+
.listed .tab.highlighted {
|
|
174
177
|
display: block;
|
|
175
178
|
}
|
|
176
|
-
.tabbed label.highlighted
|
|
179
|
+
.tabbed label.highlighted,
|
|
180
|
+
.listed label.highlighted {
|
|
177
181
|
background: lightgrey;
|
|
178
182
|
}
|
|
179
|
-
`);
|
|
180
|
-
.listed {
|
|
181
|
-
background: #ffffff !important;
|
|
183
|
+
`);L(this,pi,`
|
|
184
|
+
.listed label {
|
|
182
185
|
display: flex;
|
|
183
|
-
justify-content:
|
|
186
|
+
justify-content: start;
|
|
187
|
+
align-items: center;
|
|
188
|
+
background: var(--background-color) !important;
|
|
184
189
|
}
|
|
185
|
-
.
|
|
190
|
+
.listed label:not(:first-of-type) {
|
|
191
|
+
margin-top: 10px;
|
|
192
|
+
}
|
|
193
|
+
.listed label span {
|
|
194
|
+
text-transform: capitalize;
|
|
195
|
+
font-weight: 300;
|
|
196
|
+
}
|
|
197
|
+
.tabbed, .listed {
|
|
186
198
|
font-size: small;
|
|
187
199
|
}
|
|
188
200
|
.tabbed label.highlighted {
|
|
@@ -199,15 +211,16 @@
|
|
|
199
211
|
cursor: pointer;
|
|
200
212
|
}
|
|
201
213
|
figure {
|
|
202
|
-
background:
|
|
214
|
+
background: var(--background-color);
|
|
203
215
|
border-top: 1px solid #0041701a;
|
|
216
|
+
padding: 8px var(--padding);
|
|
204
217
|
}
|
|
205
218
|
`);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 e=this.tabs,n=this.actions,o=n.length+e.length>1;return x`
|
|
206
219
|
<style>
|
|
207
220
|
${T(this,hi)}
|
|
208
221
|
${!this.unstyled&&T(this,pi)}
|
|
209
222
|
</style>
|
|
210
|
-
<div class="tabbed">
|
|
223
|
+
<div class="${this.toolsAsList?"listed":"tabbed"}">
|
|
211
224
|
<!-- Navigation for tabs and actions -->
|
|
212
225
|
${Q(o,()=>x`
|
|
213
226
|
<nav>
|
|
@@ -240,9 +253,10 @@
|
|
|
240
253
|
<!-- Content for each tab -->
|
|
241
254
|
${ni(e,(r,s)=>x`
|
|
242
255
|
${Q(this.toolsAsList,()=>x`
|
|
243
|
-
<label
|
|
256
|
+
<label>
|
|
244
257
|
<!-- Customizable icon for each tab -->
|
|
245
258
|
<slot name=${`${r}-icon`}>${r}</slot>
|
|
259
|
+
<span>${r}</span>
|
|
246
260
|
</label>
|
|
247
261
|
`)}
|
|
248
262
|
<div class="tab ${T(this,He).call(this,s)}">
|
|
@@ -252,7 +266,7 @@
|
|
|
252
266
|
`)}
|
|
253
267
|
</figure>
|
|
254
268
|
</div>
|
|
255
|
-
`}}He=new WeakMap,hi=new WeakMap,pi=new WeakMap,
|
|
269
|
+
`}}He=new WeakMap,hi=new WeakMap,pi=new WeakMap,Z(Oo,"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",Oo);const na=`
|
|
256
270
|
button,
|
|
257
271
|
.button {
|
|
258
272
|
/* TODO: why does this only work here and not from :root? */
|
|
@@ -404,7 +418,7 @@ input[type=radio]:checked:after {
|
|
|
404
418
|
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");
|
|
405
419
|
|
|
406
420
|
}
|
|
407
|
-
`,
|
|
421
|
+
`,Lo=`
|
|
408
422
|
input[type=checkbox] {
|
|
409
423
|
appearance: none;
|
|
410
424
|
-webkit-appearance: none;
|
|
@@ -504,7 +518,7 @@ input[type="range"]:focus::-webkit-slider-thumb {
|
|
|
504
518
|
input::-moz-focus-inner, input::-moz-focus-outer {
|
|
505
519
|
border: 0;
|
|
506
520
|
}
|
|
507
|
-
`;class
|
|
521
|
+
`;class Ro extends dt{constructor(){super();Z(this,"_removeButton",()=>Ks(this));Z(this,"_sortButton",()=>Qs(this.unstyled));Z(this,"_button",e=>Js(e,this.unstyled));Z(this,"_getDefaultTools",()=>{var e;return x`
|
|
508
522
|
<div slot="info-content">
|
|
509
523
|
${ta(this.layer.get("description"))}
|
|
510
524
|
</div>
|
|
@@ -560,10 +574,10 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
560
574
|
</div>
|
|
561
575
|
<div slot="remove-icon">${this._removeButton()}</div>
|
|
562
576
|
<div slot="sort-icon">${this._sortButton()}</div>
|
|
563
|
-
`});
|
|
577
|
+
`});L(this,fi,"");L(this,gi,`
|
|
564
578
|
${na}
|
|
565
579
|
${oa}
|
|
566
|
-
${
|
|
580
|
+
${Lo}
|
|
567
581
|
${ra}
|
|
568
582
|
.drag-handle {
|
|
569
583
|
cursor: n-resize;
|
|
@@ -634,6 +648,10 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
634
648
|
display: flex;
|
|
635
649
|
justify-content: center;
|
|
636
650
|
}
|
|
651
|
+
eox-layercontrol-tools-items.tools-list button.icon,
|
|
652
|
+
eox-layercontrol-tools-items.tools-list .button.icon {
|
|
653
|
+
margin-left: -6px;
|
|
654
|
+
}
|
|
637
655
|
eox-layercontrol-tools-items button.icon::before,
|
|
638
656
|
eox-layercontrol-tools-items .button.icon::before {
|
|
639
657
|
width: 16px;
|
|
@@ -668,8 +686,14 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
668
686
|
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Edrag-horizontal-variant%3C/title%3E%3Cpath d='M21 11H3V9H21V11M21 13H3V15H21V13Z' /%3E%3C/svg%3E");
|
|
669
687
|
}
|
|
670
688
|
[slot=info-content],
|
|
671
|
-
[slot=opacity-content]
|
|
672
|
-
|
|
689
|
+
[slot=opacity-content],
|
|
690
|
+
[slot=config-content],
|
|
691
|
+
[slot=datetime-content],
|
|
692
|
+
[slot=legend-content] {
|
|
693
|
+
padding: 6px 0;
|
|
694
|
+
}
|
|
695
|
+
[slot=info-content] * {
|
|
696
|
+
max-width: 100%;
|
|
673
697
|
}
|
|
674
698
|
`);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 e=Ws(this.tools,this.layer),n=Gs(this.tools,this.layer),o=this[`_${e==null?void 0:e[0]}Button`]?this[`_${e==null?void 0:e[0]}Button`]():O,r=((l=this.tools)==null?void 0:l.length)===1?`${this.tools[0]}-icon`:"",s=e==null?void 0:e.length,a=n==null?void 0:n.length;return x`
|
|
675
699
|
<style>
|
|
@@ -705,8 +729,8 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
705
729
|
</details>
|
|
706
730
|
`)}
|
|
707
731
|
`)}
|
|
708
|
-
`}}fi=new WeakMap,gi=new WeakMap,
|
|
709
|
-
${
|
|
732
|
+
`}}fi=new WeakMap,gi=new WeakMap,Z(Ro,"properties",{layer:{attribute:!1},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol-layer-tools",Ro);const sa=i=>{const t=()=>{const e=Fs(i.layer,i.map,i.showLayerZoomState);let n=!1;!e&&i.currLayerVisibilityBasedOnZoom?(i.currLayerVisibilityBasedOnZoom=!1,n=!0):e&&!i.currLayerVisibilityBasedOnZoom&&(i.currLayerVisibilityBasedOnZoom=!0,n=!0),n&&(i.requestUpdate(),i.dispatchEvent(new CustomEvent("change:resolution",{bubbles:!0})))};xo(i.layer,i.showLayerZoomState)&&(t(),i.map.getView().on("change:resolution",()=>t()))},aa=(i,t)=>{const e=t.layer;e.setVisible(i.target.checked),i.target.checked&&e.get("layerControlExclusive")&&t.closest(".layers > ul").querySelectorAll("eox-layercontrol-layer").forEach(o=>{var r;o.layer!==e&&((r=o.layer)!=null&&r.get("layerControlExclusive"))&&(o.layer.setVisible(!1),o.requestUpdate())}),t.dispatchEvent(new CustomEvent("changed",{bubbles:!0,detail:e})),t.requestUpdate()};class Mo extends dt{constructor(){super();L(this,Ct);Z(this,"currLayerVisibilityBasedOnZoom",!0);L(this,mi,"");L(this,yi,`
|
|
733
|
+
${Lo}
|
|
710
734
|
eox-layercontrol-layer {
|
|
711
735
|
width: 100%;
|
|
712
736
|
position: relative;
|
|
@@ -800,7 +824,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
800
824
|
.toolsAsList=${this.toolsAsList}
|
|
801
825
|
></eox-layercontrol-layer-tools>
|
|
802
826
|
`)}
|
|
803
|
-
`}}Ct=new WeakSet,ge=function(e){var n;return(n=this.layer)==null?void 0:n.get(e)},qo=function(e){aa(e,this)},mi=new WeakMap,yi=new WeakMap,
|
|
827
|
+
`}}Ct=new WeakSet,ge=function(e){var n;return(n=this.layer)==null?void 0:n.get(e)},qo=function(e){aa(e,this)},mi=new WeakMap,yi=new WeakMap,Z(Mo,"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",Mo);class Io extends dt{constructor(){super();L(this,bi,"");L(this,vi,`
|
|
804
828
|
details summary {
|
|
805
829
|
cursor: pointer;
|
|
806
830
|
display: flex;
|
|
@@ -865,7 +889,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
865
889
|
></eox-layercontrol-layer-list>
|
|
866
890
|
</details>
|
|
867
891
|
`)}
|
|
868
|
-
`}}bi=new WeakMap,vi=new WeakMap,
|
|
892
|
+
`}}bi=new WeakMap,vi=new WeakMap,Z(Io,"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",Io);var hn,No;function la(){if(No)return hn;No=1;var i="Expected a function",t=NaN,e="[object Symbol]",n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt,l=typeof Ut=="object"&&Ut&&Ut.Object===Object&&Ut,d=typeof self=="object"&&self&&self.Object===Object&&self,c=l||d||Function("return this")(),u=Object.prototype,p=u.toString,f=Math.max,g=Math.min,b=function(){return c.Date.now()};function V($,m,A){var N,M,J,K,k,I,Y=0,gt=!1,at=!1,mt=!0;if(typeof $!="function")throw new TypeError(i);m=it(m)||0,et(A)&&(gt=!!A.leading,at="maxWait"in A,J=at?f(it(A.maxWait)||0,m):J,mt="trailing"in A?!!A.trailing:mt);function wt(F){var H=N,yt=M;return N=M=void 0,Y=F,K=$.apply(yt,H),K}function Qt(F){return Y=F,k=setTimeout(It,m),gt?wt(F):K}function Ai(F){var H=F-I,yt=F-Y,jt=m-H;return at?g(jt,J-yt):jt}function te(F){var H=F-I,yt=F-Y;return I===void 0||H>=m||H<0||at&&yt>=J}function It(){var F=b();if(te(F))return ee(F);k=setTimeout(It,Ai(F))}function ee(F){return k=void 0,mt&&N?wt(F):(N=M=void 0,K)}function Ci(){k!==void 0&&clearTimeout(k),Y=0,N=I=M=k=void 0}function fn(){return k===void 0?K:ee(b())}function Ve(){var F=b(),H=te(F);if(N=arguments,M=this,I=F,H){if(k===void 0)return Qt(I);if(at)return k=setTimeout(It,m),wt(I)}return k===void 0&&(k=setTimeout(It,m)),K}return Ve.cancel=Ci,Ve.flush=fn,Ve}function et($){var m=typeof $;return!!$&&(m=="object"||m=="function")}function z($){return!!$&&typeof $=="object"}function ct($){return typeof $=="symbol"||z($)&&p.call($)==e}function it($){if(typeof $=="number")return $;if(ct($))return t;if(et($)){var m=typeof $.valueOf=="function"?$.valueOf():$;$=et(m)?m+"":m}if(typeof $!="string")return $===0?$:+$;$=$.replace(n,"");var A=r.test($);return A||s.test($)?a($.slice(2),A?2:8):o.test($)?t:+$}return hn=V,hn}var da=la();const ua=_o(da),ca=i=>{const{layers:t,idProperty:e,titleProperty:n,renderRoot:o}=i,r=ua(()=>{i.requestUpdate(),i.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");Us(t,e,n,i),ks(a,t,e,i)}};class Ho extends dt{constructor(){super();L(this,wi,"");L(this,xi,`
|
|
869
893
|
ul {
|
|
870
894
|
padding: 0;
|
|
871
895
|
margin: 0;
|
|
@@ -935,7 +959,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
935
959
|
`)}
|
|
936
960
|
`)}
|
|
937
961
|
</ul>
|
|
938
|
-
`}}wi=new WeakMap,xi=new WeakMap,
|
|
962
|
+
`}}wi=new WeakMap,xi=new WeakMap,Z(Ho,"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",Ho);const ha=i=>{const t=i.querySelector("select[name=optional]"),e=t?t.value:null,n=ln(i.layers.getArray(),"layerControlOptional",!0).find(o=>(o.get(i.idProperty)||o.ol_uid)===e);n==null||n.set("layerControlOptional",!1),n==null||n.setVisible(!0),i.dispatchEvent(new CustomEvent("changed",{bubbles:!0})),i.renderRoot.parentNode.querySelectorAll("eox-layercontrol-layer-list").forEach(o=>o.requestUpdate()),i.requestUpdate()};class Vo extends dt{constructor(){super();L(this,Ei);this.idProperty="id",this.layers=null,this.titleProperty="title",this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const e=ln(this.layers.getArray(),"layerControlOptional",!0);return x`
|
|
939
963
|
<!-- Label for the dropdown -->
|
|
940
964
|
<label for="optional">Optional layers</label>
|
|
941
965
|
|
|
@@ -952,14 +976,14 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
952
976
|
|
|
953
977
|
<!-- Button to handle adding layers -->
|
|
954
978
|
<button @click="${q(this,Ei,Xo)}">add</button>
|
|
955
|
-
`}}Ei=new WeakSet,Xo=function(){ha(this)},
|
|
979
|
+
`}}Ei=new WeakSet,Xo=function(){ha(this)},Z(Vo,"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",Vo);const pa=(i,t)=>{t.jsonInput=i.target.value,t.requestUpdate()},Bo=i=>{const t=JSON.parse(`{"data":${Gn(i.jsonInput)}}`);Array.isArray(t.data)?t.data.forEach(e=>{i.eoxMap.addOrUpdateLayer(e)}):i.eoxMap.addOrUpdateLayer(t.data),i.jsonInput=null,i.requestUpdate()},fa=(i,t)=>{t.urlInput=i.target.value,t.requestUpdate()};async function ga(i){const t=i.urlInput;if(i.wmsCapabilities=null,i.searchLoad=!0,i.requestUpdate(),!t)return!1;if(ji(t)==="XYZ")return{Name:t};try{const e=await ds(t);i.wmsCapabilities=e}catch{}finally{i.searchLoad=!1,i.requestUpdate()}return!1}const ma=(i,t)=>{const{Name:e}=i,n=ji(t.urlInput)||"XYZ",o={type:"Tile",properties:{id:e,title:e},source:{type:n,url:t.urlInput,params:{LAYERS:e}}};t.jsonInput=JSON.stringify(o)},ya=(i,t)=>{t.open=i||null,t.urlInput=null,t.jsonInput=null,t.wmsCapabilities=null,t.requestUpdate()};class ko extends dt{constructor(){super();L(this,st);Z(this,"urlInput",null);Z(this,"jsonInput",null);Z(this,"open",null);Z(this,"searchLoad",!1);Z(this,"wmsCapabilities",null);L(this,$i,`
|
|
956
980
|
.eox-add-layer-main .open {
|
|
957
981
|
position: relative;
|
|
958
982
|
}
|
|
959
983
|
.eox-add-layer-main .close {
|
|
960
984
|
display: none;
|
|
961
985
|
}
|
|
962
|
-
`);
|
|
986
|
+
`);L(this,Si,`
|
|
963
987
|
.eox-add {
|
|
964
988
|
background: #f0f2f5;
|
|
965
989
|
border-top: 1px solid #0041701a;
|
|
@@ -1180,7 +1204,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
1180
1204
|
`}
|
|
1181
1205
|
</div>
|
|
1182
1206
|
</div>
|
|
1183
|
-
`}}st=new WeakSet,Yo=function(e){fa(e,this)},Wo=async function(){const e=await ga(this);e&&q(this,st,yn).call(this,e)},yn=function(e){ma(e,this),Bo(this)},Go=function(){Bo(this)},Jo=function(e){pa(e,this)},Ti=function(e){ya(e,this)},$i=new WeakMap,Si=new WeakMap,
|
|
1207
|
+
`}}st=new WeakSet,Yo=function(e){fa(e,this)},Wo=async function(){const e=await ga(this);e&&q(this,st,yn).call(this,e)},yn=function(e){ma(e,this),Bo(this)},Go=function(){Bo(this)},Jo=function(e){pa(e,this)},Ti=function(e){ya(e,this)},$i=new WeakMap,Si=new WeakMap,Z(ko,"properties",{eoxMap:{attribute:!1,state:!0},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-add-layers",ko);const ba=(i,t)=>{if(t.requestUpdate(),i.target.tagName==="EOX-LAYERCONTROL-LAYER-TOOLS"){const e=t.renderRoot.querySelector("eox-layercontrol-optional-list");e==null||e.requestUpdate()}},va=i=>{let t;return typeof i=="string"?t=document.querySelector(i):t=i,t},Uo=i=>{const t=va(i.for);return t&&t.map!==i.map&&(i.map=t.map),t};class pn extends dt{constructor(){super();L(this,pe);L(this,Ft);L(this,_i,`
|
|
1184
1208
|
:host, :root {
|
|
1185
1209
|
font-family: Roboto, sans-serif;
|
|
1186
1210
|
--padding: 0.5rem;
|
|
@@ -1193,6 +1217,11 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
1193
1217
|
|
|
1194
1218
|
display: block;
|
|
1195
1219
|
padding: var(--padding) 0;
|
|
1220
|
+
--background-color: var(--eox-background-color, transparent);
|
|
1221
|
+
background-color: var(--background-color, transparent);
|
|
1222
|
+
}
|
|
1223
|
+
select {
|
|
1224
|
+
background-color: var(--background-color);
|
|
1196
1225
|
}
|
|
1197
1226
|
`);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=Uo(this)}updated(e){e.has("for")&&(this.eoxMap=Uo(this))}get eoxMap(){return T(this,Ft)}set eoxMap(e){const n=T(this,Ft);fe(this,Ft,e),this.requestUpdate("eoxMap",n)}render(){var o,r,s;const e=(o=this.map)==null?void 0:o.getLayers().getArray(),n=e&&((r=ln(e,"layerControlOptional",!0))==null?void 0:r.length)>0;return x`
|
|
1198
1227
|
<style>
|
|
@@ -1237,4 +1266,4 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
1237
1266
|
@changed=${()=>this.requestUpdate()}
|
|
1238
1267
|
></eox-layercontrol-optional-list>
|
|
1239
1268
|
`)}
|
|
1240
|
-
`}}Ft=new WeakMap,pe=new WeakSet,Ko=function(e){ba(e,this),this.dispatchEvent(new CustomEvent("layerchange",{detail:e.detail}))},Qo=function(e){this.dispatchEvent(new CustomEvent("datetime:updated",{detail:e.detail}))},_i=new WeakMap,
|
|
1269
|
+
`}}Ft=new WeakMap,pe=new WeakSet,Ko=function(e){ba(e,this),this.dispatchEvent(new CustomEvent("layerchange",{detail:e.detail}))},Qo=function(e){this.dispatchEvent(new CustomEvent("datetime:updated",{detail:e.detail}))},_i=new WeakMap,Z(pn,"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",pn),R.EOxLayerControl=pn,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
|