@eox/layercontrol 0.17.2 → 0.17.3
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 +1072 -1075
- package/dist/eox-layercontrol.umd.cjs +62 -47
- package/package.json +1 -1
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
(function(O,A){typeof exports=="object"&&typeof module<"u"?A(exports):typeof define=="function"&&define.amd?define(["exports"],A):(O=typeof globalThis<"u"?globalThis:O||self,A(O["eox-layercontrol"]={}))})(this,function(O){"use strict";var
|
|
1
|
+
(function(O,A){typeof exports=="object"&&typeof module<"u"?A(exports):typeof define=="function"&&define.amd?define(["exports"],A):(O=typeof globalThis<"u"?globalThis:O||self,A(O["eox-layercontrol"]={}))})(this,function(O){"use strict";var ha=Object.defineProperty;var pa=(O,A,I)=>A in O?ha(O,A,{enumerable:!0,configurable:!0,writable:!0,value:I}):O[A]=I;var L=(O,A,I)=>(pa(O,typeof A!="symbol"?A+"":A,I),I),ti=(O,A,I)=>{if(!A.has(O))throw TypeError("Cannot "+I)};var M=(O,A,I)=>(ti(O,A,"read from private field"),I?I.call(O):A.get(O)),_=(O,A,I)=>{if(A.has(O))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(O):A.set(O,I)},_e=(O,A,I,Gt)=>(ti(O,A,"write to private field"),Gt?Gt.call(O,I):A.set(O,I),I);var X=(O,A,I)=>(ti(O,A,"access private method"),I);/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/var Eo,me,ye,be,Xe,So,Ye,qe,ve,We,Ge,Je,Ke,Yt,yn,Qe,$o,tn,en,nn,on,rn,sn,an,_o,ln,Ao,un,Co,we,ei,dn,To,cn,Po,qt,bn,hn,pn,Wt,fn,Oo,gn;const A=globalThis,I=A.ShadowRoot&&(A.ShadyCSS===void 0||A.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Gt=Symbol(),ni=new WeakMap;let Ro=class{constructor(t,
|
|
5
|
+
*/var Eo,me,ye,be,Xe,So,Ye,qe,ve,We,Ge,Je,Ke,Yt,yn,Qe,$o,tn,en,nn,on,rn,sn,an,_o,ln,Ao,un,Co,we,ei,dn,To,cn,Po,qt,bn,hn,pn,Wt,fn,Oo,gn;const A=globalThis,I=A.ShadowRoot&&(A.ShadyCSS===void 0||A.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Gt=Symbol(),ni=new WeakMap;let Ro=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Gt)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(I&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=ni.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&ni.set(e,t))}return t}toString(){return this.cssText}};const Do=n=>new Ro(typeof n=="string"?n:n+"",void 0,Gt),No=(n,t)=>{if(I)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),o=A.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=e.cssText,n.appendChild(i)}},ii=I?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Do(e)})(n):n;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:Mo,defineProperty:Io,getOwnPropertyDescriptor:Ho,getOwnPropertyNames:Bo,getOwnPropertySymbols:Vo,getPrototypeOf:Lo}=Object,Et=globalThis,oi=Et.trustedTypes,
|
|
9
|
+
*/const{is:Mo,defineProperty:Io,getOwnPropertyDescriptor:Ho,getOwnPropertyNames:Bo,getOwnPropertySymbols:Vo,getPrototypeOf:Lo}=Object,Et=globalThis,oi=Et.trustedTypes,ko=oi?oi.emptyScript:"",vn=Et.reactiveElementPolyfillSupport,Jt=(n,t)=>n,wn={toAttribute(n,t){switch(t){case Boolean:n=n?ko:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},ri=(n,t)=>!Mo(n,t),si={attribute:!0,type:String,converter:wn,reflect:!1,hasChanged:ri};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Et.litPropertyMetadata??(Et.litPropertyMetadata=new WeakMap);class Vt extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=si){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);o!==void 0&&Io(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:r}=Ho(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return o==null?void 0:o.call(this)},set(s){const a=o==null?void 0:o.call(this);r.call(this,s),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??si}static _$Ei(){if(this.hasOwnProperty(Jt("elementProperties")))return;const t=Lo(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Jt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Jt("properties"))){const e=this.properties,i=[...Bo(e),...Vo(e)];for(const o of i)this.createProperty(o,e[o])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,o]of e)this.elementProperties.set(i,o)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const o=this._$Eu(e,i);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const o of i)e.unshift(ii(o))}else t!==void 0&&e.push(ii(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return No(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){var r;const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(o!==void 0&&i.reflect===!0){const s=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:wn).toAttribute(e,i.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,e){var r;const i=this.constructor,o=i._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const s=i.getPropertyOptions(o),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((r=s.converter)==null?void 0:r.fromAttribute)!==void 0?s.converter:wn;this._$Em=o,this[o]=a.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(t,e,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??ri)(this[t],e))return;this.P(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[r,s]of this._$Ep)this[r]=s;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[r,s]of o)s.wrapped!==!0||this._$AL.has(r)||this[r]===void 0||this.P(r,this[r],s)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(o=>{var r;return(r=o.hostUpdate)==null?void 0:r.call(o)}),this.update(e)):this._$EU()}catch(o){throw t=!1,this._$EU(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var o;return(o=i.hostUpdated)==null?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}Vt.elementStyles=[],Vt.shadowRootOptions={mode:"open"},Vt[Jt("elementProperties")]=new Map,Vt[Jt("finalized")]=new Map,vn==null||vn({ReactiveElement:Vt}),(Et.reactiveElementVersions??(Et.reactiveElementVersions=[])).push("2.0.4");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const Kt=globalThis,Ae=Kt.trustedTypes,ai=Ae?Ae.createPolicy("lit-html",{createHTML:
|
|
13
|
+
*/const Kt=globalThis,Ae=Kt.trustedTypes,ai=Ae?Ae.createPolicy("lit-html",{createHTML:n=>n}):void 0,En="$lit$",ft=`lit$${(Math.random()+"").slice(9)}$`,xn="?"+ft,Uo=`<${xn}>`,Tt=document,Qt=()=>Tt.createComment(""),te=n=>n===null||typeof n!="object"&&typeof n!="function",li=Array.isArray,ui=n=>li(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Sn=`[
|
|
14
14
|
\f\r]`,ee=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,di=/-->/g,ci=/>/g,Pt=RegExp(`>|${Sn}(?:([^\\s"'>=/]+)(${Sn}*=${Sn}*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),hi=/'/g,pi=/"/g,fi=/^(?:script|style|textarea|title)$/i,Fo=
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),hi=/'/g,pi=/"/g,fi=/^(?:script|style|textarea|title)$/i,Fo=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),x=Fo(1),rt=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),gi=new WeakMap,Ot=Tt.createTreeWalker(Tt,129);function mi(n,t){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return ai!==void 0?ai.createHTML(t):t}const yi=(n,t)=>{const e=n.length-1,i=[];let o,r=t===2?"<svg>":"",s=ee;for(let a=0;a<e;a++){const l=n[a];let u,c,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,c=s.exec(l),c!==null);)p=s.lastIndex,s===ee?c[1]==="!--"?s=di:c[1]!==void 0?s=ci:c[2]!==void 0?(fi.test(c[2])&&(o=RegExp("</"+c[2],"g")),s=Pt):c[3]!==void 0&&(s=Pt):s===Pt?c[0]===">"?(s=o??ee,d=-1):c[1]===void 0?d=-2:(d=s.lastIndex-c[2].length,u=c[1],s=c[3]===void 0?Pt:c[3]==='"'?pi:hi):s===pi||s===hi?s=Pt:s===di||s===ci?s=ee:(s=Pt,o=void 0);const f=s===Pt&&n[a+1].startsWith("/>")?" ":"";r+=s===ee?l+Uo:d>=0?(i.push(u),l.slice(0,d)+En+l.slice(d)+ft+f):l+ft+(d===-2?a:f)}return[mi(n,r+(n[e]||"<?>")+(t===2?"</svg>":"")),i]};class ne{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,s=0;const a=t.length-1,l=this.parts,[u,c]=yi(t,e);if(this.el=ne.createElement(u,i),Ot.currentNode=this.el.content,e===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(o=Ot.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const d of o.getAttributeNames())if(d.endsWith(En)){const p=c[s++],f=o.getAttribute(d).split(ft),g=/([.?@])?(.*)/.exec(p);l.push({type:1,index:r,name:g[2],strings:f,ctor:g[1]==="."?vi:g[1]==="?"?wi:g[1]==="@"?Ei:ie}),o.removeAttribute(d)}else d.startsWith(ft)&&(l.push({type:6,index:r}),o.removeAttribute(d));if(fi.test(o.tagName)){const d=o.textContent.split(ft),p=d.length-1;if(p>0){o.textContent=Ae?Ae.emptyScript:"";for(let f=0;f<p;f++)o.append(d[f],Qt()),Ot.nextNode(),l.push({type:2,index:++r});o.append(d[p],Qt())}}}else if(o.nodeType===8)if(o.data===xn)l.push({type:2,index:r});else{let d=-1;for(;(d=o.data.indexOf(ft,d+1))!==-1;)l.push({type:7,index:r}),d+=ft.length-1}r++}}static createElement(t,e){const i=Tt.createElement("template");return i.innerHTML=t,i}}function Rt(n,t,e=n,i){var s,a;if(t===rt)return t;let o=i!==void 0?(s=e._$Co)==null?void 0:s[i]:e._$Cl;const r=te(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(n),o._$AT(n,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=o:e._$Cl=o),o!==void 0&&(t=Rt(n,o._$AS(n,t.values),o,i)),t}class bi{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:i}=this._$AD,o=((t==null?void 0:t.creationScope)??Tt).importNode(e,!0);Ot.currentNode=o;let r=Ot.nextNode(),s=0,a=0,l=i[0];for(;l!==void 0;){if(s===l.index){let u;l.type===2?u=new Lt(r,r.nextSibling,this,t):l.type===1?u=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(u=new xi(r,this,t)),this._$AV.push(u),l=i[++a]}s!==(l==null?void 0:l.index)&&(r=Ot.nextNode(),s++)}return Ot.currentNode=Tt,o}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Lt{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,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=Rt(this,t,e),te(t)?t===T||t==null||t===""?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==rt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ui(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==T&&te(this._$AH)?this._$AA.nextSibling.data=t:this.T(Tt.createTextNode(t)),this._$AH=t}$(t){var r;const{values:e,_$litType$:i}=t,o=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=ne.createElement(mi(i.h,i.h[0]),this.options)),i);if(((r=this._$AH)==null?void 0:r._$AD)===o)this._$AH.p(e);else{const s=new bi(o,this),a=s.u(this.options);s.p(e),this.T(a),this._$AH=s}}_$AC(t){let e=gi.get(t.strings);return e===void 0&&gi.set(t.strings,e=new ne(t)),e}k(t){li(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new Lt(this.S(Qt()),this.S(Qt()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.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 ie{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=T,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=T}_$AI(t,e=this,i,o){const r=this.strings;let s=!1;if(r===void 0)t=Rt(this,t,e,0),s=!te(t)||t!==this._$AH&&t!==rt,s&&(this._$AH=t);else{const a=t;let l,u;for(t=r[0],l=0;l<r.length-1;l++)u=Rt(this,a[i+l],e,l),u===rt&&(u=this._$AH[l]),s||(s=!te(u)||u!==this._$AH[l]),u===T?t=T:t!==T&&(t+=(u??"")+r[l+1]),this._$AH[l]=u}s&&!o&&this.j(t)}j(t){t===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class vi extends ie{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===T?void 0:t}}class wi extends ie{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==T)}}class Ei extends ie{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){if((t=Rt(this,t,e,0)??T)===rt)return;const i=this._$AH,o=t===T&&i!==T||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==T&&(i===T||o);o&&this.element.removeEventListener(this.name,this,i),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 xi{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Rt(this,t)}}const jo={P:En,A:ft,C:xn,M:1,L:yi,R:bi,D:ui,V:Rt,I:Lt,H:ie,N:wi,U:Ei,B:vi,F:xi},$n=Kt.litHtmlPolyfillSupport;$n==null||$n(ne,Lt),(Kt.litHtmlVersions??(Kt.litHtmlVersions=[])).push("3.1.2");const zo=(n,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let o=i._$litPart$;if(o===void 0){const r=(e==null?void 0:e.renderBefore)??null;i._$litPart$=o=new Lt(t.insertBefore(Qt(),r),r,void 0,e??{})}return o._$AI(n),o};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/let tt=class extends Vt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var
|
|
19
|
+
*/let tt=class extends Vt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=zo(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return rt}};tt._$litElement$=!0,tt.finalized=!0,(Eo=globalThis.litElementHydrateSupport)==null||Eo.call(globalThis,{LitElement:tt});const _n=globalThis.litElementPolyfillSupport;_n==null||_n({LitElement:tt}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.4");/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2021 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/function st(
|
|
23
|
+
*/function st(n,t,e){return n?t(n):e==null?void 0:e(n)}/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/const xt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},An=
|
|
27
|
+
*/const xt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},An=n=>(...t)=>({_$litDirective$:n,values:t});class Cn{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright 2020 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
-
*/const{I:Zo}=jo,Xo=
|
|
31
|
+
*/const{I:Zo}=jo,Xo=n=>n.strings===void 0,Si=()=>document.createComment(""),oe=(n,t,e)=>{var r;const i=n._$AA.parentNode,o=t===void 0?n._$AB:t._$AA;if(e===void 0){const s=i.insertBefore(Si(),o),a=i.insertBefore(Si(),o);e=new Zo(s,a,n,n.options)}else{const s=e._$AB.nextSibling,a=e._$AM,l=a!==n;if(l){let u;(r=e._$AQ)==null||r.call(e,n),e._$AM=n,e._$AP!==void 0&&(u=n._$AU)!==a._$AU&&e._$AP(u)}if(s!==o||l){let u=e._$AA;for(;u!==s;){const c=u.nextSibling;i.insertBefore(u,o),u=c}}}return e},Dt=(n,t,e=n)=>(n._$AI(t,e),n),Yo={},$i=(n,t=Yo)=>n._$AH=t,qo=n=>n._$AH,Tn=n=>{var i;(i=n._$AP)==null||i.call(n,!1,!0);let t=n._$AA;const e=n._$AB.nextSibling;for(;t!==e;){const o=t.nextSibling;t.remove(),t=o}};/**
|
|
32
32
|
* @license
|
|
33
33
|
* Copyright 2017 Google LLC
|
|
34
34
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
35
|
-
*/const _i=(
|
|
35
|
+
*/const _i=(n,t,e)=>{const i=new Map;for(let o=t;o<=e;o++)i.set(n[o],o);return i},Wo=An(class extends Cn{constructor(n){if(super(n),n.type!==xt.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,t,e){let i;e===void 0?e=t:t!==void 0&&(i=t);const o=[],r=[];let s=0;for(const a of n)o[s]=i?i(a,s):s,r[s]=e(a,s),s++;return{values:r,keys:o}}render(n,t,e){return this.dt(n,t,e).values}update(n,[t,e,i]){const o=qo(n),{values:r,keys:s}=this.dt(t,e,i);if(!Array.isArray(o))return this.ut=s,r;const a=this.ut??(this.ut=[]),l=[];let u,c,d=0,p=o.length-1,f=0,g=r.length-1;for(;d<=p&&f<=g;)if(o[d]===null)d++;else if(o[p]===null)p--;else if(a[d]===s[f])l[f]=Dt(o[d],r[f]),d++,f++;else if(a[p]===s[g])l[g]=Dt(o[p],r[g]),p--,g--;else if(a[d]===s[g])l[g]=Dt(o[d],r[g]),oe(n,l[g+1],o[d]),d++,g--;else if(a[p]===s[f])l[f]=Dt(o[p],r[f]),oe(n,o[d],o[p]),p--,f++;else if(u===void 0&&(u=_i(s,f,g),c=_i(a,d,p)),u.has(a[d]))if(u.has(a[p])){const y=c.get(s[f]),D=y!==void 0?o[y]:null;if(D===null){const Z=oe(n,o[d]);Dt(Z,r[f]),l[f]=Z}else l[f]=Dt(D,r[f]),oe(n,o[d],D),o[y]=null;f++}else Tn(o[p]),p--;else Tn(o[d]),d++;for(;f<=g;){const y=oe(n,l[g+1]);Dt(y,r[f]),l[f++]=y}for(;d<=p;){const y=o[d++];y!==null&&Tn(y)}return this.ut=s,$i(n,l),rt}});/**
|
|
36
36
|
* wms-capabilities @0.6.0
|
|
37
37
|
* @description WMS service Capabilities > JSON, based on openlayers
|
|
38
38
|
* @license BSD-2-Clause
|
|
39
39
|
* @preserve
|
|
40
|
-
*/var E=
|
|
40
|
+
*/var E=n=>n!==void 0,Ai=(n,t,e)=>t in n?n[t]:n[t]=e;const re={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 Go{constructor(t){this._parser=new t}toDocument(t){return this._parser.parseFromString(t,"application/xml")}getAllTextContent(t,e){return Ce(t,e).join("")}}function Ce(n,t){return Ci(n,t,[]).join("")}function Ci(n,t,e){if(n.nodeType===re.CDATA_SECTION||n.nodeType===re.TEXT)t?e.push(String(n.nodeValue).replace(/(\r\n|\r|\n)/g,"")):e.push(n.nodeValue);else{var i;for(i=n.firstChild;i;i=i.nextSibling)Ci(i,t,e)}return e}function Jo(n,t,e,i){for(var o=Ko(t);o;o=Qo(o)){var r=o.namespaceURI||null,s=n[r];if(E(s)){var a=s[o.localName];E(a)&&a.call(i,o,e)}}}function Ko(n){let t=n.firstElementChild||n.firstChild;for(;t&&t.nodeType!==re.ELEMENT;)t=t.nextSibling;return t}function Qo(n){let t=n.nextElementSibling||n.nextSibling;for(;t&&t.nodeType!==re.ELEMENT;)t=t.nextSibling;return t}function F(n,t,e){return tr(n,t,e)}function tr(n,t,e){var i=E(e)?e:{},o,r;for(o=0,r=n.length;o<r;++o)i[n[o]]=t;return i}function Ti(n,t){return function(e,i){var o=n.call(E(t)?t:this,e,i);if(E(o)){var r=i[i.length-1];r.push(o)}}}function k(n,t,e,i,o){return i.push(n),Jo(t,e,i,o),i.pop()}function m(n,t,e){return function(i,o){let r=n.call(E(e)?e:this,i,o);if(E(r)){var s=o[o.length-1],a=E(t)?t:i.localName;s[a]=r}}}function K(n,t,e){return function(i,o){var r=n.call(E(e)?e:this,i,o);if(E(r)){var s=o[o.length-1],a=E(t)?t:i.localName,l=Ai(s,a,[]);l.push(r)}}}const er=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function nr(n){return n.replace(er,"")}function Nt(n){const t=/^\s*(true|1)|(false|0)\s*$/.exec(n);if(t)return E(t[1])||!1}function kt(n){return gt(Ce(n,!1))}function gt(n){const t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(n);if(t)return parseFloat(t[1])}function Pn(n){return Te(Ce(n,!1))}function Te(n){const t=/^\s*(\d+)\s*$/.exec(n);if(t)return parseInt(t[1],10)}function $(n){return nr(Ce(n,!1))}const ir="http://www.w3.org/1999/xlink";function On(n){return n.getAttributeNS(ir,"href")}function or(n,t){return k({},Rr,n,t)}function Pi(n){return[gt(n.getAttribute("minx")),gt(n.getAttribute("miny")),gt(n.getAttribute("maxx")),gt(n.getAttribute("maxy"))]}function rr(n,t){const e=Pi(n),i=[gt(n.getAttribute("resx")),gt(n.getAttribute("resy"))];return{crs:n.getAttribute("CRS")||n.getAttribute("SRS"),extent:e,res:i}}function sr(n,t){const e=Pi(n);if(!(!E(e[0])||!E(e[1])||!E(e[2])||!E(e[3])))return e}function ar(n,t){const e=parseFloat(n.getAttribute("min")),i=parseFloat(n.getAttribute("max"));return{min:e,max:i}}function lr(n,t){const e=k({},Dr,n,t);if(!E(e))return;const i=e.westBoundLongitude,o=e.southBoundLatitude,r=e.eastBoundLongitude,s=e.northBoundLatitude;if(!(!E(i)||!E(o)||!E(r)||!E(s)))return[i,o,r,s]}function ur(n,t){return k({},_r,n,t)}function dr(n,t){return k({},Ar,n,t)}function cr(n,t){return k({},Cr,n,t)}function hr(n,t){return k({},Tr,n,t)}function pr(n,t){return k({},Pr,n,t)}function fr(n,t){return k([],Or,n,t)}function gr(n,t){const e=Nt(n.getAttribute("queryable"));return k({queryable:E(e)?e:!1},Di,n,t)}function mr(n,t){var e=t[t.length-1];const i=k({},Di,n,t);if(!E(i))return;let o=Nt(n.getAttribute("queryable"));E(o)||(o=e.queryable),i.queryable=E(o)?o:!1;let r=Te(n.getAttribute("cascaded"));E(r)||(r=e.cascaded),i.cascaded=r;let s=Nt(n.getAttribute("opaque"));E(s)||(s=e.opaque),i.opaque=E(s)?s:!1;let a=Nt(n.getAttribute("noSubsets"));E(a)||(a=e.noSubsets),i.noSubsets=E(a)?a:!1;let l=gt(n.getAttribute("fixedWidth"));E(l)||(l=e.fixedWidth),i.fixedWidth=l;let u=gt(n.getAttribute("fixedHeight"));E(u)||(u=e.fixedHeight),i.fixedHeight=u;const c=["Style","CRS","AuthorityURL"];for(let p=0,f=c.length;p<f;p++){const g=c[p],y=e[g];if(E(y)){let D=Ai(i,g,[]);D=D.concat(y),i[g]=D}}const d=["EX_GeographicBoundingBox","BoundingBox","Dimension","Attribution","MinScaleDenominator","MaxScaleDenominator"];for(let p=0,f=d.length;p<f;p++){const g=d[p],y=i[g];if(!E(y)){const D=e[g];i[g]=D}}return i}function yr(n,t){return{name:n.getAttribute("name"),units:n.getAttribute("units"),unitSymbol:n.getAttribute("unitSymbol"),default:n.getAttribute("default"),multipleValues:Nt(n.getAttribute("multipleValues")),nearestValue:Nt(n.getAttribute("nearestValue")),current:Nt(n.getAttribute("current")),values:$(n)}}function mt(n,t){return k({},Vr,n,t)}function br(n,t){return k({},Nr,n,t)}function vr(n,t){return k({},Ir,n,t)}function wr(n,t){return k({},Hr,n,t)}function Rn(n,t){return k({},Mr,n,t)}function Oi(n,t){var e=mt(n,t);if(E(e)){const i=[Te(n.getAttribute("width")),Te(n.getAttribute("height"))];return e.size=i,e}}function Er(n,t){var e=mt(n,t);if(E(e))return e.name=n.getAttribute("name"),e}function xr(n,t){var e=mt(n,t);if(E(e))return e.type=n.getAttribute("type"),e}function Sr(n,t){return k({},Br,n,t)}function Ri(n,t){return k([],Lr,n,t)}const j=[null,"http://www.opengis.net/wms"],$r=F(j,{Service:m(dr),Capability:m(ur)}),_r=F(j,{Request:m(br),Exception:m(fr),Layer:m(gr)}),Ar=F(j,{Name:m($),Title:m($),Abstract:m($),KeywordList:m(Ri),OnlineResource:m(On),ContactInformation:m(cr),Fees:m($),AccessConstraints:m($),LayerLimit:m(Pn),MaxWidth:m(Pn),MaxHeight:m(Pn)}),Cr=F(j,{ContactPersonPrimary:m(hr),ContactPosition:m($),ContactAddress:m(pr),ContactVoiceTelephone:m($),ContactFacsimileTelephone:m($),ContactElectronicMailAddress:m($)}),Tr=F(j,{ContactPerson:m($),ContactOrganization:m($)}),Pr=F(j,{AddressType:m($),Address:m($),City:m($),StateOrProvince:m($),PostCode:m($),Country:m($)}),Or=F(j,{Format:Ti($)}),Di=F(j,{Name:m($),Title:m($),Abstract:m($),KeywordList:m(Ri),CRS:K($),SRS:K($),EX_GeographicBoundingBox:m(lr),LatLonBoundingBox:m(sr),BoundingBox:K(rr),Dimension:K(yr),Attribution:m(or),AuthorityURL:K(Er),Identifier:K($),MetadataURL:K(xr),DataURL:K(mt),FeatureListURL:K(mt),Style:K(Sr),MinScaleDenominator:m(kt),MaxScaleDenominator:m(kt),ScaleHint:m(ar),Layer:K(mr)}),Rr=F(j,{Title:m($),OnlineResource:m(On),LogoURL:m(Oi)}),Dr=F(j,{westBoundLongitude:m(kt),eastBoundLongitude:m(kt),southBoundLatitude:m(kt),northBoundLatitude:m(kt)}),Nr=F(j,{GetCapabilities:m(Rn),GetMap:m(Rn),GetFeatureInfo:m(Rn)}),Mr=F(j,{Format:K($),DCPType:K(vr)}),Ir=F(j,{HTTP:m(wr)}),Hr=F(j,{Get:m(mt),Post:m(mt)}),Br=F(j,{Name:m($),Title:m($),Abstract:m($),LegendURL:K(Oi),StyleSheetURL:m(mt),StyleURL:m(mt)}),Vr=F(j,{Format:m($),OnlineResource:m(On)}),Lr=F(j,{Keyword:Ti($)});class kr{constructor(t,e){!e&&typeof window<"u"&&(e=window.DOMParser),this.version=void 0,this._parser=new Go(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==re.ELEMENT)return this.readFromNode(e);return null}readFromNode(t){return this.version=t.getAttribute("version"),k({version:this.version},$r,t,[])||null}}async function Ur(n){let t=new URL(n),e=t.searchParams;e.set("SERVICE","WMS"),e.set("REQUEST","GetCapabilities");let i=t.toString();const o=await fetch(i);if(o.ok){const r=await o.text();return new kr(r).toJSON()}else throw new Error(`Error: ${o.status}`)}function Dn(n){const t=/\b(?:wms|ows)\b/i,e=/{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;return t.test(n)?"TileWMS":e.test(n)?"XYZ":!1}function Fr(n){const e=/^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(n),i=Dn(n);return!!(n&&e&&i)}function Ni(n){return n.replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g,'"$2": ').replace(/,\s*}/g,"}").replace(/,\s*]/g,"]").replace(/\s*(\{|}|\[|\]|,)\s*/g,"$1").replaceAll('": //',"://")}function jr(n){try{return JSON.parse(Ni(n)),!!n}catch{return!1}}function zr(n,t){const e=new URL(n).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 i=n.split("?")[0],o=e.toString();return`${i}?${o}`}/**!
|
|
41
41
|
* Sortable 1.15.2
|
|
42
42
|
* @author RubaXa <trash@rubaxa.org>
|
|
43
43
|
* @author owenm <owen23355@gmail.com>
|
|
44
44
|
* @license MIT
|
|
45
|
-
*/function Mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function ht(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mi(Object(n),!0).forEach(function(i){Zr(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mi(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Pe(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pe=function(t){return typeof t}:Pe=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pe(e)}function Zr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yt(){return yt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},yt.apply(this,arguments)}function Xr(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,r;for(r=0;r<i.length;r++)o=i[r],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Yr(e,t){if(e==null)return{};var n=Xr(e,t),i,o;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}var qr="1.15.2";function bt(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var vt=bt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),se=bt(/Edge/i),Ii=bt(/firefox/i),ae=bt(/safari/i)&&!bt(/chrome/i)&&!bt(/android/i),Hi=bt(/iP(ad|od|hone)/i),Bi=bt(/chrome/i)&&bt(/android/i),Vi={capture:!1,passive:!1};function C(e,t,n){e.addEventListener(t,n,!vt&&Vi)}function S(e,t,n){e.removeEventListener(t,n,!vt&&Vi)}function Oe(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function Wr(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function lt(e,t,n,i){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&Oe(e,t):Oe(e,t))||i&&e===n)return e;if(e===n)break}while(e=Wr(e))}return null}var Li=/\s+/g;function et(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(Li," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(Li," ")}}function b(e,t,n){var i=e&&e.style;if(i){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in i)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),i[t]=n+(typeof n=="string"?"":"px")}}function kt(e,t){var n="";if(typeof e=="string")n=e;else do{var i=b(e,"transform");i&&i!=="none"&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function Ui(e,t,n){if(e){var i=e.getElementsByTagName(t),o=0,r=i.length;if(n)for(;o<r;o++)n(i[o],o);return i}return[]}function pt(){var e=document.scrollingElement;return e||document.documentElement}function B(e,t,n,i,o){if(!(!e.getBoundingClientRect&&e!==window)){var r,s,a,l,u,c,d;if(e!==window&&e.parentNode&&e!==pt()?(r=e.getBoundingClientRect(),s=r.top,a=r.left,l=r.bottom,u=r.right,c=r.height,d=r.width):(s=0,a=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!vt))do if(o&&o.getBoundingClientRect&&(b(o,"transform")!=="none"||n&&b(o,"position")!=="static")){var p=o.getBoundingClientRect();s-=p.top+parseInt(b(o,"border-top-width")),a-=p.left+parseInt(b(o,"border-left-width")),l=s+r.height,u=a+r.width;break}while(o=o.parentNode);if(i&&e!==window){var f=kt(o||e),g=f&&f.a,y=f&&f.d;f&&(s/=y,a/=g,d/=g,c/=y,l=s+c,u=a+d)}return{top:s,left:a,bottom:l,right:u,width:d,height:c}}}function ki(e,t,n){for(var i=St(e,!0),o=B(e)[t];i;){var r=B(i)[n],s=void 0;if(n==="top"||n==="left"?s=o>=r:s=o<=r,!s)return i;if(i===pt())break;i=St(i,!1)}return!1}function Ft(e,t,n,i){for(var o=0,r=0,s=e.children;r<s.length;){if(s[r].style.display!=="none"&&s[r]!==v.ghost&&(i||s[r]!==v.dragged)&<(s[r],n.draggable,e,!1)){if(o===t)return s[r];o++}r++}return null}function Nn(e,t){for(var n=e.lastElementChild;n&&(n===v.ghost||b(n,"display")==="none"||t&&!Oe(n,t));)n=n.previousElementSibling;return n||null}function at(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==v.clone&&(!t||Oe(e,t))&&n++;return n}function Fi(e){var t=0,n=0,i=pt();if(e)do{var o=kt(e),r=o.a,s=o.d;t+=e.scrollLeft*r,n+=e.scrollTop*s}while(e!==i&&(e=e.parentNode));return[t,n]}function Gr(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[n][i])return Number(n)}return-1}function St(e,t){if(!e||!e.getBoundingClientRect)return pt();var n=e,i=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=b(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return pt();if(i||t)return n;i=!0}}while(n=n.parentNode);return pt()}function Jr(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Mn(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var le;function ji(e,t){return function(){if(!le){var n=arguments,i=this;n.length===1?e.call(i,n[0]):e.apply(i,n),le=setTimeout(function(){le=void 0},t)}}}function Kr(){clearTimeout(le),le=void 0}function zi(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Zi(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function Xi(e,t,n){var i={};return Array.from(e.children).forEach(function(o){var r,s,a,l;if(!(!lt(o,t.draggable,e,!1)||o.animated||o===n)){var u=B(o);i.left=Math.min((r=i.left)!==null&&r!==void 0?r:1/0,u.left),i.top=Math.min((s=i.top)!==null&&s!==void 0?s:1/0,u.top),i.right=Math.max((a=i.right)!==null&&a!==void 0?a:-1/0,u.right),i.bottom=Math.max((l=i.bottom)!==null&&l!==void 0?l:-1/0,u.bottom)}}),i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}var nt="Sortable"+new Date().getTime();function Qr(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(o){if(!(b(o,"display")==="none"||o===v.ghost)){e.push({target:o,rect:B(o)});var r=ht({},e[e.length-1].rect);if(o.thisAnimationDuration){var s=kt(o,!0);s&&(r.top-=s.f,r.left-=s.e)}o.fromRect=r}})}},addAnimationState:function(i){e.push(i)},removeAnimationState:function(i){e.splice(Gr(e,{target:i}),1)},animateAll:function(i){var o=this;if(!this.options.animation){clearTimeout(t),typeof i=="function"&&i();return}var r=!1,s=0;e.forEach(function(a){var l=0,u=a.target,c=u.fromRect,d=B(u),p=u.prevFromRect,f=u.prevToRect,g=a.rect,y=kt(u,!0);y&&(d.top-=y.f,d.left-=y.e),u.toRect=d,u.thisAnimationDuration&&Mn(p,d)&&!Mn(c,d)&&(g.top-d.top)/(g.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(l=es(g,p,f,o.options)),Mn(d,c)||(u.prevFromRect=c,u.prevToRect=d,l||(l=o.options.animation),o.animate(u,g,d,l)),l&&(r=!0,s=Math.max(s,l),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},l),u.thisAnimationDuration=l)}),clearTimeout(t),r?t=setTimeout(function(){typeof i=="function"&&i()},s):typeof i=="function"&&i(),e=[]},animate:function(i,o,r,s){if(s){b(i,"transition",""),b(i,"transform","");var a=kt(this.el),l=a&&a.a,u=a&&a.d,c=(o.left-r.left)/(l||1),d=(o.top-r.top)/(u||1);i.animatingX=!!c,i.animatingY=!!d,b(i,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=ts(i),b(i,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),b(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){b(i,"transition",""),b(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},s)}}}}function ts(e){return e.offsetWidth}function es(e,t,n,i){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*i.animation}var jt=[],In={initializeByDefault:!0},ue={mount:function(t){for(var n in In)In.hasOwnProperty(n)&&!(n in t)&&(t[n]=In[n]);jt.forEach(function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),jt.push(t)},pluginEvent:function(t,n,i){var o=this;this.eventCanceled=!1,i.cancel=function(){o.eventCanceled=!0};var r=t+"Global";jt.forEach(function(s){n[s.pluginName]&&(n[s.pluginName][r]&&n[s.pluginName][r](ht({sortable:n},i)),n.options[s.pluginName]&&n[s.pluginName][t]&&n[s.pluginName][t](ht({sortable:n},i)))})},initializePlugins:function(t,n,i,o){jt.forEach(function(a){var l=a.pluginName;if(!(!t.options[l]&&!a.initializeByDefault)){var u=new a(t,n,t.options);u.sortable=t,u.options=t.options,t[l]=u,yt(i,u.defaults)}});for(var r in t.options)if(t.options.hasOwnProperty(r)){var s=this.modifyOption(t,r,t.options[r]);typeof s<"u"&&(t.options[r]=s)}},getEventProperties:function(t,n){var i={};return jt.forEach(function(o){typeof o.eventProperties=="function"&&yt(i,o.eventProperties.call(n[o.pluginName],t))}),i},modifyOption:function(t,n,i){var o;return jt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[n]=="function"&&(o=r.optionListeners[n].call(t[r.pluginName],i))}),o}};function ns(e){var t=e.sortable,n=e.rootEl,i=e.name,o=e.targetEl,r=e.cloneEl,s=e.toEl,a=e.fromEl,l=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,p=e.originalEvent,f=e.putSortable,g=e.extraEventProperties;if(t=t||n&&n[nt],!!t){var y,D=t.options,Z="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!vt&&!se?y=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(i,!0,!0)),y.to=s||n,y.from=a||n,y.item=o||n,y.clone=r,y.oldIndex=l,y.newIndex=u,y.oldDraggableIndex=c,y.newDraggableIndex=d,y.originalEvent=p,y.pullMode=f?f.lastPutMode:void 0;var k=ht(ht({},g),ue.getEventProperties(i,t));for(var ot in k)y[ot]=k[ot];n&&n.dispatchEvent(y),D[Z]&&D[Z].call(t,y)}}var is=["evt"],Q=function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.evt,r=Yr(i,is);ue.pluginEvent.bind(v)(t,n,ht({dragEl:h,parentEl:H,ghostEl:w,rootEl:R,nextEl:Mt,lastDownEl:Re,cloneEl:N,cloneHidden:$t,dragStarted:ce,putSortable:z,activeSortable:v.active,originalEvent:o,oldIndex:zt,oldDraggableIndex:de,newIndex:it,newDraggableIndex:_t,hideGhostForTarget:Qi,unhideGhostForTarget:to,cloneNowHidden:function(){$t=!0},cloneNowShown:function(){$t=!1},dispatchSortableEvent:function(a){G({sortable:n,name:a,originalEvent:o})}},r))};function G(e){ns(ht({putSortable:z,cloneEl:N,targetEl:h,rootEl:R,oldIndex:zt,oldDraggableIndex:de,newIndex:it,newDraggableIndex:_t},e))}var h,H,w,R,Mt,Re,N,$t,zt,it,de,_t,De,z,Zt=!1,Ne=!1,Me=[],It,ut,Hn,Bn,Yi,qi,ce,Xt,he,pe=!1,Ie=!1,He,Y,Vn=[],Ln=!1,Be=[],Ve=typeof document<"u",Le=Hi,Wi=se||vt?"cssFloat":"float",os=Ve&&!Bi&&!Hi&&"draggable"in document.createElement("div"),Gi=function(){if(Ve){if(vt)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Ji=function(t,n){var i=b(t),o=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),r=Ft(t,0,n),s=Ft(t,1,n),a=r&&b(r),l=s&&b(s),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+B(r).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+B(s).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===d)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||u>=o&&i[Wi]==="none"||s&&i[Wi]==="none"&&u+c>o)?"vertical":"horizontal"},rs=function(t,n,i){var o=i?t.left:t.top,r=i?t.right:t.bottom,s=i?t.width:t.height,a=i?n.left:n.top,l=i?n.right:n.bottom,u=i?n.width:n.height;return o===a||r===l||o+s/2===a+u/2},ss=function(t,n){var i;return Me.some(function(o){var r=o[nt].options.emptyInsertThreshold;if(!(!r||Nn(o))){var s=B(o),a=t>=s.left-r&&t<=s.right+r,l=n>=s.top-r&&n<=s.bottom+r;if(a&&l)return i=o}}),i},Ki=function(t){function n(r,s){return function(a,l,u,c){var d=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(r==null&&(s||d))return!0;if(r==null||r===!1)return!1;if(s&&r==="clone")return r;if(typeof r=="function")return n(r(a,l,u,c),s)(a,l,u,c);var p=(s?a:l).options.group.name;return r===!0||typeof r=="string"&&r===p||r.join&&r.indexOf(p)>-1}}var i={},o=t.group;(!o||Pe(o)!="object")&&(o={name:o}),i.name=o.name,i.checkPull=n(o.pull,!0),i.checkPut=n(o.put),i.revertClone=o.revertClone,t.group=i},Qi=function(){!Gi&&w&&b(w,"display","none")},to=function(){!Gi&&w&&b(w,"display","")};Ve&&!Bi&&document.addEventListener("click",function(e){if(Ne)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ne=!1,!1},!0);var Ht=function(t){if(h){t=t.touches?t.touches[0]:t;var n=ss(t.clientX,t.clientY);if(n){var i={};for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o]);i.target=i.rootEl=n,i.preventDefault=void 0,i.stopPropagation=void 0,n[nt]._onDragOver(i)}}},as=function(t){h&&h.parentNode[nt]._isOutsideThisEl(t.target)};function v(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=yt({},t),e[nt]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ji(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,a){s.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:v.supportPointer!==!1&&"PointerEvent"in window&&!ae,emptyInsertThreshold:5};ue.initializePlugins(this,e,n);for(var i in n)!(i in t)&&(t[i]=n[i]);Ki(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:os,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?C(e,"pointerdown",this._onTapStart):(C(e,"mousedown",this._onTapStart),C(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(C(e,"dragover",this),C(e,"dragenter",this)),Me.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),yt(this,Qr())}v.prototype={constructor:v,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Xt=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,h):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,i=this.el,o=this.options,r=o.preventOnFilter,s=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(a||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=o.filter;if(gs(i),!h&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||o.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&ae&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=lt(l,o.draggable,i,!1),!(l&&l.animated)&&Re!==l)){if(zt=at(l),de=at(l,o.draggable),typeof c=="function"){if(c.call(this,t,l,this)){G({sortable:n,rootEl:u,name:"filter",targetEl:l,toEl:i,fromEl:i}),Q("filter",n,{evt:t}),r&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=lt(u,d.trim(),i,!1),d)return G({sortable:n,rootEl:d,name:"filter",targetEl:l,fromEl:i,toEl:i}),Q("filter",n,{evt:t}),!0}),c)){r&&t.cancelable&&t.preventDefault();return}o.handle&&!lt(u,o.handle,i,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,n,i){var o=this,r=o.el,s=o.options,a=r.ownerDocument,l;if(i&&!h&&i.parentNode===r){var u=B(i);if(R=r,h=i,H=h.parentNode,Mt=h.nextSibling,Re=i,De=s.group,v.dragged=h,It={target:h,clientX:(n||t).clientX,clientY:(n||t).clientY},Yi=It.clientX-u.left,qi=It.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,h.style["will-change"]="all",l=function(){if(Q("delayEnded",o,{evt:t}),v.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Ii&&o.nativeDraggable&&(h.draggable=!0),o._triggerDragStart(t,n),G({sortable:o,name:"choose",originalEvent:t}),et(h,s.chosenClass,!0)},s.ignore.split(",").forEach(function(c){Ui(h,c.trim(),Un)}),C(a,"dragover",Ht),C(a,"mousemove",Ht),C(a,"touchmove",Ht),C(a,"mouseup",o._onDrop),C(a,"touchend",o._onDrop),C(a,"touchcancel",o._onDrop),Ii&&this.nativeDraggable&&(this.options.touchStartThreshold=4,h.draggable=!0),Q("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(se||vt))){if(v.eventCanceled){this._onDrop();return}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 n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){h&&Un(h),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;S(t,"mouseup",this._disableDelayedDrag),S(t,"touchend",this._disableDelayedDrag),S(t,"touchcancel",this._disableDelayedDrag),S(t,"mousemove",this._delayedDragTouchMoveHandler),S(t,"touchmove",this._delayedDragTouchMoveHandler),S(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?C(document,"pointermove",this._onTouchMove):n?C(document,"touchmove",this._onTouchMove):C(document,"mousemove",this._onTouchMove):(C(h,"dragend",this),C(R,"dragstart",this._onDragStart));try{document.selection?ke(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Zt=!1,R&&h){Q("dragStarted",this,{evt:n}),this.nativeDraggable&&C(document,"dragover",as);var i=this.options;!t&&et(h,i.dragClass,!1),et(h,i.ghostClass,!0),v.active=this,t&&this._appendGhost(),G({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(ut){this._lastX=ut.clientX,this._lastY=ut.clientY,Qi();for(var t=document.elementFromPoint(ut.clientX,ut.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ut.clientX,ut.clientY),t!==n);)n=t;if(h.parentNode[nt]._isOutsideThisEl(t),n)do{if(n[nt]){var i=void 0;if(i=n[nt]._onDragOver({clientX:ut.clientX,clientY:ut.clientY,target:t,rootEl:n}),i&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);to()}},_onTouchMove:function(t){if(It){var n=this.options,i=n.fallbackTolerance,o=n.fallbackOffset,r=t.touches?t.touches[0]:t,s=w&&kt(w,!0),a=w&&s&&s.a,l=w&&s&&s.d,u=Le&&Y&&Fi(Y),c=(r.clientX-It.clientX+o.x)/(a||1)+(u?u[0]-Vn[0]:0)/(a||1),d=(r.clientY-It.clientY+o.y)/(l||1)+(u?u[1]-Vn[1]:0)/(l||1);if(!v.active&&!Zt){if(i&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(w){s?(s.e+=c-(Hn||0),s.f+=d-(Bn||0)):s={a:1,b:0,c:0,d:1,e:c,f:d};var p="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");b(w,"webkitTransform",p),b(w,"mozTransform",p),b(w,"msTransform",p),b(w,"transform",p),Hn=c,Bn=d,ut=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!w){var t=this.options.fallbackOnBody?document.body:R,n=B(h,!0,Le,!0,t),i=this.options;if(Le){for(Y=t;b(Y,"position")==="static"&&b(Y,"transform")==="none"&&Y!==document;)Y=Y.parentNode;Y!==document.body&&Y!==document.documentElement?(Y===document&&(Y=pt()),n.top+=Y.scrollTop,n.left+=Y.scrollLeft):Y=pt(),Vn=Fi(Y)}w=h.cloneNode(!0),et(w,i.ghostClass,!1),et(w,i.fallbackClass,!0),et(w,i.dragClass,!0),b(w,"transition",""),b(w,"transform",""),b(w,"box-sizing","border-box"),b(w,"margin",0),b(w,"top",n.top),b(w,"left",n.left),b(w,"width",n.width),b(w,"height",n.height),b(w,"opacity","0.8"),b(w,"position",Le?"absolute":"fixed"),b(w,"zIndex","100000"),b(w,"pointerEvents","none"),v.ghost=w,t.appendChild(w),b(w,"transform-origin",Yi/parseInt(w.style.width)*100+"% "+qi/parseInt(w.style.height)*100+"%")}},_onDragStart:function(t,n){var i=this,o=t.dataTransfer,r=i.options;if(Q("dragStart",this,{evt:t}),v.eventCanceled){this._onDrop();return}Q("setupClone",this),v.eventCanceled||(N=Zi(h),N.removeAttribute("id"),N.draggable=!1,N.style["will-change"]="",this._hideClone(),et(N,this.options.chosenClass,!1),v.clone=N),i.cloneId=ke(function(){Q("clone",i),!v.eventCanceled&&(i.options.removeCloneOnHide||R.insertBefore(N,h),i._hideClone(),G({sortable:i,name:"clone"}))}),!n&&et(h,r.dragClass,!0),n?(Ne=!0,i._loopId=setInterval(i._emulateDragOver,50)):(S(document,"mouseup",i._onDrop),S(document,"touchend",i._onDrop),S(document,"touchcancel",i._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(i,o,h)),C(document,"drop",i),b(h,"transform","translateZ(0)")),Zt=!0,i._dragStartId=ke(i._dragStarted.bind(i,n,t)),C(document,"selectstart",i),ce=!0,ae&&b(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,i=t.target,o,r,s,a=this.options,l=a.group,u=v.active,c=De===l,d=a.sort,p=z||u,f,g=this,y=!1;if(Ln)return;function D($e,ha){Q($e,g,ht({evt:t,isOwner:c,axis:f?"vertical":"horizontal",revert:s,dragRect:o,targetRect:r,canSort:d,fromSortable:p,target:i,completed:k,onMove:function(xo,pa){return Ue(R,n,h,o,xo,B(xo),t,pa)},changed:ot},ha))}function Z(){D("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function k($e){return D("dragOverCompleted",{insertion:$e}),$e&&(c?u._hideClone():u._showClone(g),g!==p&&(et(h,z?z.options.ghostClass:u.options.ghostClass,!1),et(h,a.ghostClass,!0)),z!==g&&g!==v.active?z=g:g===v.active&&z&&(z=null),p===g&&(g._ignoreWhileAnimating=i),g.animateAll(function(){D("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===h&&!h.animated||i===n&&!i.animated)&&(Xt=null),!a.dragoverBubble&&!t.rootEl&&i!==document&&(h.parentNode[nt]._isOutsideThisEl(t.target),!$e&&Ht(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),y=!0}function ot(){it=at(h),_t=at(h,a.draggable),G({sortable:g,name:"change",toEl:n,newIndex:it,newDraggableIndex:_t,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),i=lt(i,a.draggable,n,!0),D("dragOver"),v.eventCanceled)return y;if(h.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||g._ignoreWhileAnimating===i)return k(!1);if(Ne=!1,u&&!a.disabled&&(c?d||(s=H!==R):z===this||(this.lastPutMode=De.checkPull(this,u,h,t))&&l.checkPut(this,u,h,t))){if(f=this._getDirection(t,i)==="vertical",o=B(h),D("dragOverValid"),v.eventCanceled)return y;if(s)return H=R,Z(),this._hideClone(),D("revert"),v.eventCanceled||(Mt?R.insertBefore(h,Mt):R.appendChild(h)),k(!0);var J=Nn(n,a.draggable);if(!J||cs(t,f,this)&&!J.animated){if(J===h)return k(!1);if(J&&n===t.target&&(i=J),i&&(r=B(i)),Ue(R,n,h,o,i,r,t,!!i)!==!1)return Z(),J&&J.nextSibling?n.insertBefore(h,J.nextSibling):n.appendChild(h),H=n,ot(),k(!0)}else if(J&&ds(t,f,this)){var dt=Ft(n,0,a,!0);if(dt===h)return k(!1);if(i=dt,r=B(i),Ue(R,n,h,o,i,r,t,!1)!==!1)return Z(),n.insertBefore(h,dt),H=n,ot(),k(!0)}else if(i.parentNode===n){r=B(i);var P=0,q,ct=h.parentNode!==n,W=!rs(h.animated&&h.toRect||o,i.animated&&i.toRect||r,f),Ee=f?"top":"left",At=ki(i,"top","top")||ki(h,"top","top"),xe=At?At.scrollTop:void 0;Xt!==i&&(q=r[Ee],pe=!1,Ie=!W&&a.invertSwap||ct),P=hs(t,i,r,f,W?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Ie,Xt===i);var wt;if(P!==0){var Bt=at(h);do Bt-=P,wt=H.children[Bt];while(wt&&(b(wt,"display")==="none"||wt===w))}if(P===0||wt===i)return k(!1);Xt=i,he=P;var Se=i.nextElementSibling,Ct=!1;Ct=P===1;var mn=Ue(R,n,h,o,i,r,t,Ct);if(mn!==!1)return(mn===1||mn===-1)&&(Ct=mn===1),Ln=!0,setTimeout(us,30),Z(),Ct&&!Se?n.appendChild(h):i.parentNode.insertBefore(h,Ct?Se:i),At&&zi(At,0,xe-At.scrollTop),H=h.parentNode,q!==void 0&&!Ie&&(He=Math.abs(q-B(i)[Ee])),ot(),k(!0)}if(n.contains(h))return k(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){S(document,"mousemove",this._onTouchMove),S(document,"touchmove",this._onTouchMove),S(document,"pointermove",this._onTouchMove),S(document,"dragover",Ht),S(document,"mousemove",Ht),S(document,"touchmove",Ht)},_offUpEvents:function(){var t=this.el.ownerDocument;S(t,"mouseup",this._onDrop),S(t,"touchend",this._onDrop),S(t,"pointerup",this._onDrop),S(t,"touchcancel",this._onDrop),S(document,"selectstart",this)},_onDrop:function(t){var n=this.el,i=this.options;if(it=at(h),_t=at(h,i.draggable),Q("drop",this,{evt:t}),H=h&&h.parentNode,it=at(h),_t=at(h,i.draggable),v.eventCanceled){this._nulling();return}Zt=!1,Ie=!1,pe=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),kn(this.cloneId),kn(this._dragStartId),this.nativeDraggable&&(S(document,"drop",this),S(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ae&&b(document.body,"user-select",""),b(h,"transform",""),t&&(ce&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),w&&w.parentNode&&w.parentNode.removeChild(w),(R===H||z&&z.lastPutMode!=="clone")&&N&&N.parentNode&&N.parentNode.removeChild(N),h&&(this.nativeDraggable&&S(h,"dragend",this),Un(h),h.style["will-change"]="",ce&&!Zt&&et(h,z?z.options.ghostClass:this.options.ghostClass,!1),et(h,this.options.chosenClass,!1),G({sortable:this,name:"unchoose",toEl:H,newIndex:null,newDraggableIndex:null,originalEvent:t}),R!==H?(it>=0&&(G({rootEl:H,name:"add",toEl:H,fromEl:R,originalEvent:t}),G({sortable:this,name:"remove",toEl:H,originalEvent:t}),G({rootEl:H,name:"sort",toEl:H,fromEl:R,originalEvent:t}),G({sortable:this,name:"sort",toEl:H,originalEvent:t})),z&&z.save()):it!==zt&&it>=0&&(G({sortable:this,name:"update",toEl:H,originalEvent:t}),G({sortable:this,name:"sort",toEl:H,originalEvent:t})),v.active&&((it==null||it===-1)&&(it=zt,_t=de),G({sortable:this,name:"end",toEl:H,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Q("nulling",this),R=h=H=w=Mt=N=Re=$t=It=ut=ce=it=_t=zt=de=Xt=he=z=De=v.dragged=v.ghost=v.clone=v.active=null,Be.forEach(function(t){t.checked=!0}),Be.length=Hn=Bn=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":h&&(this._onDragOver(t),ls(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,i=this.el.children,o=0,r=i.length,s=this.options;o<r;o++)n=i[o],lt(n,s.draggable,this.el,!1)&&t.push(n.getAttribute(s.dataIdAttr)||fs(n));return t},sort:function(t,n){var i={},o=this.el;this.toArray().forEach(function(r,s){var a=o.children[s];lt(a,this.options.draggable,o,!1)&&(i[r]=a)},this),n&&this.captureAnimationState(),t.forEach(function(r){i[r]&&(o.removeChild(i[r]),o.appendChild(i[r]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return lt(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var i=this.options;if(n===void 0)return i[t];var o=ue.modifyOption(this,t,n);typeof o<"u"?i[t]=o:i[t]=n,t==="group"&&Ki(i)},destroy:function(){Q("destroy",this);var t=this.el;t[nt]=null,S(t,"mousedown",this._onTapStart),S(t,"touchstart",this._onTapStart),S(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(S(t,"dragover",this),S(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Me.splice(Me.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!$t){if(Q("hideClone",this),v.eventCanceled)return;b(N,"display","none"),this.options.removeCloneOnHide&&N.parentNode&&N.parentNode.removeChild(N),$t=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if($t){if(Q("showClone",this),v.eventCanceled)return;h.parentNode==R&&!this.options.group.revertClone?R.insertBefore(N,h):Mt?R.insertBefore(N,Mt):R.appendChild(N),this.options.group.revertClone&&this.animate(h,N),b(N,"display",""),$t=!1}}};function ls(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Ue(e,t,n,i,o,r,s,a){var l,u=e[nt],c=u.options.onMove,d;return window.CustomEvent&&!vt&&!se?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=n,l.draggedRect=i,l.related=o||t,l.relatedRect=r||B(t),l.willInsertAfter=a,l.originalEvent=s,e.dispatchEvent(l),c&&(d=c.call(u,l,s)),d}function Un(e){e.draggable=!1}function us(){Ln=!1}function ds(e,t,n){var i=B(Ft(n.el,0,n.options,!0)),o=Xi(n.el,n.options,w),r=10;return t?e.clientX<o.left-r||e.clientY<i.top&&e.clientX<i.right:e.clientY<o.top-r||e.clientY<i.bottom&&e.clientX<i.left}function cs(e,t,n){var i=B(Nn(n.el,n.options.draggable)),o=Xi(n.el,n.options,w),r=10;return t?e.clientX>o.right+r||e.clientY>i.bottom&&e.clientX>i.left:e.clientY>o.bottom+r||e.clientX>i.right&&e.clientY>i.top}function hs(e,t,n,i,o,r,s,a){var l=i?e.clientY:e.clientX,u=i?n.height:n.width,c=i?n.top:n.left,d=i?n.bottom:n.right,p=!1;if(!s){if(a&&He<u*o){if(!pe&&(he===1?l>c+u*r/2:l<d-u*r/2)&&(pe=!0),pe)p=!0;else if(he===1?l<c+He:l>d-He)return-he}else if(l>c+u*(1-o)/2&&l<d-u*(1-o)/2)return ps(t)}return p=p||s,p&&(l<c+u*r/2||l>d-u*r/2)?l>c+u/2?1:-1:0}function ps(e){return at(h)<at(e)?1:-1}function fs(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function gs(e){Be.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var i=t[n];i.checked&&Be.push(i)}}function ke(e){return setTimeout(e,0)}function kn(e){return clearTimeout(e)}Ve&&C(document,"touchmove",function(e){(v.active||Zt)&&e.cancelable&&e.preventDefault()}),v.utils={on:C,off:S,css:b,find:Ui,is:function(t,n){return!!lt(t,n,t,!1)},extend:Jr,throttle:ji,closest:lt,toggleClass:et,clone:Zi,index:at,nextTick:ke,cancelNextTick:kn,detectDirection:Ji,getChild:Ft},v.get=function(e){return e[nt]},v.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(v.utils=ht(ht({},v.utils),i.utils)),ue.mount(i)})},v.create=function(e,t){return new v(e,t)},v.version=qr;var V=[],fe,Fn,jn=!1,zn,Zn,Fe,ge;function ms(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var i=n.originalEvent;this.sortable.nativeDraggable?C(document,"dragover",this._handleAutoScroll):this.options.supportPointer?C(document,"pointermove",this._handleFallbackAutoScroll):i.touches?C(document,"touchmove",this._handleFallbackAutoScroll):C(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var i=n.originalEvent;!this.options.dragOverBubble&&!i.rootEl&&this._handleAutoScroll(i)},drop:function(){this.sortable.nativeDraggable?S(document,"dragover",this._handleAutoScroll):(S(document,"pointermove",this._handleFallbackAutoScroll),S(document,"touchmove",this._handleFallbackAutoScroll),S(document,"mousemove",this._handleFallbackAutoScroll)),eo(),je(),Kr()},nulling:function(){Fe=Fn=fe=jn=ge=zn=Zn=null,V.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,i){var o=this,r=(n.touches?n.touches[0]:n).clientX,s=(n.touches?n.touches[0]:n).clientY,a=document.elementFromPoint(r,s);if(Fe=n,i||this.options.forceAutoScrollFallback||se||vt||ae){Xn(n,this.options,a,i);var l=St(a,!0);jn&&(!ge||r!==zn||s!==Zn)&&(ge&&eo(),ge=setInterval(function(){var u=St(document.elementFromPoint(r,s),!0);u!==l&&(l=u,je()),Xn(n,o.options,u,i)},10),zn=r,Zn=s)}else{if(!this.options.bubbleScroll||St(a,!0)===pt()){je();return}Xn(n,this.options,St(a,!1),!1)}}},yt(e,{pluginName:"scroll",initializeByDefault:!0})}function je(){V.forEach(function(e){clearInterval(e.pid)}),V=[]}function eo(){clearInterval(ge)}var Xn=ji(function(e,t,n,i){if(t.scroll){var o=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,a=t.scrollSpeed,l=pt(),u=!1,c;Fn!==n&&(Fn=n,je(),fe=t.scroll,c=t.scrollFn,fe===!0&&(fe=St(n,!0)));var d=0,p=fe;do{var f=p,g=B(f),y=g.top,D=g.bottom,Z=g.left,k=g.right,ot=g.width,J=g.height,dt=void 0,P=void 0,q=f.scrollWidth,ct=f.scrollHeight,W=b(f),Ee=f.scrollLeft,At=f.scrollTop;f===l?(dt=ot<q&&(W.overflowX==="auto"||W.overflowX==="scroll"||W.overflowX==="visible"),P=J<ct&&(W.overflowY==="auto"||W.overflowY==="scroll"||W.overflowY==="visible")):(dt=ot<q&&(W.overflowX==="auto"||W.overflowX==="scroll"),P=J<ct&&(W.overflowY==="auto"||W.overflowY==="scroll"));var xe=dt&&(Math.abs(k-o)<=s&&Ee+ot<q)-(Math.abs(Z-o)<=s&&!!Ee),wt=P&&(Math.abs(D-r)<=s&&At+J<ct)-(Math.abs(y-r)<=s&&!!At);if(!V[d])for(var Bt=0;Bt<=d;Bt++)V[Bt]||(V[Bt]={});(V[d].vx!=xe||V[d].vy!=wt||V[d].el!==f)&&(V[d].el=f,V[d].vx=xe,V[d].vy=wt,clearInterval(V[d].pid),(xe!=0||wt!=0)&&(u=!0,V[d].pid=setInterval((function(){i&&this.layer===0&&v.active._onTouchMove(Fe);var Se=V[this.layer].vy?V[this.layer].vy*a:0,Ct=V[this.layer].vx?V[this.layer].vx*a:0;typeof c=="function"&&c.call(v.dragged.parentNode[nt],Ct,Se,e,Fe,V[this.layer].el)!=="continue"||zi(V[this.layer].el,Ct,Se)}).bind({layer:d}),24))),d++}while(t.bubbleScroll&&p!==l&&(p=St(p,!1)));jn=u}},30),no=function(t){var n=t.originalEvent,i=t.putSortable,o=t.dragEl,r=t.activeSortable,s=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(n){var u=i||r;a();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,d=document.elementFromPoint(c.clientX,c.clientY);l(),u&&!u.el.contains(d)&&(s("spill"),this.onSpill({dragEl:o,putSortable:i}))}};function Yn(){}Yn.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var o=Ft(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),i&&i.animateAll()},drop:no},yt(Yn,{pluginName:"revertOnSpill"});function qn(){}qn.prototype={onSpill:function(t){var n=t.dragEl,i=t.putSortable,o=i||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:no},yt(qn,{pluginName:"removeOnSpill"}),v.mount(new ms),v.mount(qn,Yn);const ys=e=>{const t=e.item;let n=Array.prototype.slice.call(t.parentNode.childNodes);return n=n.filter(i=>i.nodeType!=Node.ELEMENT_NODE||!i.classList.contains("sortable-fallback")),n},bs=(e,t,n,i,o,r)=>{const a=e.item.parentNode;for(const y of n)a.appendChild(y);if(e.oldIndex==e.newIndex)return;const l=i.getArray(),u=e.item.querySelector("eox-layercontrol-layer").layer.get(o),c=l.find(y=>y.get(o)===u),d=r.dataset.layer,p=l.find(y=>y.get(o)==d);let f,g;for(f=0;f<l.length;f++)if(l[f]==c){i.removeAt(f);break}for(g=0;g<l.length;g++)if(l[g]===p){f>g?i.insertAt(g,c):i.insertAt(g+1,c);break}t.requestUpdate()};function vs(e,t,n,i){let o=[],r=null;e._sortable=v.create(e,{handle:".drag-handle",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",onStart:s=>o=ys(s),onMove:s=>{r=s.related},onEnd:s=>bs(s,i,o,t,n,r)})}function ws(e,t,n,i){const o=e.getArray();let r=!1;o.forEach(s=>{const a=s.ol_uid;s.get(t)||(s.set(t,a),r=!0),s.get(n)||(s.set(n,`layer ${a}`),r=!0),r&&i.requestUpdate()})}function Wn(e,t,n){let i=[];const o=(r,s,a)=>{i=[...i,...r.filter(u=>u.get(s)===a)];const l=r.filter(u=>u.getLayers);return l.length>0&&l.forEach(u=>o(u.getLayers().getArray(),s,a)),i};return o(e,t,n),i}function Es(e,t,n){if(!e||!t)return!1;if(!io(e,n))return!0;const i=e.get("minZoom"),o=e.get("maxZoom"),r=t.getView().getZoom();return r>i&&r<o}function io(e,t){const n=e.get("minZoom"),i=e.get("maxZoom");return!!(t&&(n!==-1/0||i!==1/0))}function xs(e,t){var o,r,s;return!e||!t?void 0:e.getLayers?"group":((s=(o=t.getInteractions().getArray().filter(a=>a.freehand_!==void 0).map(a=>a.source_))==null?void 0:o.ol_uid)==null?void 0:s.includes(e.getSource?(r=e.getSource())==null?void 0:r.ol_uid:void 0))?"draw":e.declutter_!==void 0?"vector":"raster"}function oo(e,t){var i;let n={};for(const o in e){const r=e[o].type;if(r&&r!=="object")n[o]=r==="number"?Number(t[o]):t[o];else if(typeof e[o]=="object"&&((i=e[o])!=null&&i.properties)){const s=oo(e[o].properties,t);Object.keys(s).length>0&&(n[o]=s)}}return n}function Ss(e,t){var r;if(!t||!e.getSource().getTileUrlFunction())return null;const n=new URL(e.getSource().getTileUrlFunction()([0,0,0])),i=Object.fromEntries(n.searchParams.entries()),o=oo(((r=t.schema)==null?void 0:r.properties)||t.schema,i);return Object.keys(o).length?o:null}const $s=(e,t)=>e==null?void 0:e.filter(n=>["remove","sort"].filter(i=>t!=null&&t.get("layerControlDisable")?i!=="sort":!0).includes(n)),_s=(e,t)=>e==null?void 0:e.filter(n=>{let i=!0;return["remove","sort"].includes(n)&&(i=!1),n==="info"&&(i=t.get("description")),n==="config"&&(i=t.get("layerConfig")),i}),As=(e,t)=>x`
|
|
46
|
-
<button slot="${
|
|
47
|
-
`,Cs=
|
|
45
|
+
*/function Mi(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,i)}return e}function ht(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Mi(Object(e),!0).forEach(function(i){Zr(n,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Mi(Object(e)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i))})}return n}function Pe(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pe=function(t){return typeof t}:Pe=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pe(n)}function Zr(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function yt(){return yt=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},yt.apply(this,arguments)}function Xr(n,t){if(n==null)return{};var e={},i=Object.keys(n),o,r;for(r=0;r<i.length;r++)o=i[r],!(t.indexOf(o)>=0)&&(e[o]=n[o]);return e}function Yr(n,t){if(n==null)return{};var e=Xr(n,t),i,o;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(e[i]=n[i])}return e}var qr="1.15.2";function bt(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var vt=bt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),se=bt(/Edge/i),Ii=bt(/firefox/i),ae=bt(/safari/i)&&!bt(/chrome/i)&&!bt(/android/i),Hi=bt(/iP(ad|od|hone)/i),Bi=bt(/chrome/i)&&bt(/android/i),Vi={capture:!1,passive:!1};function C(n,t,e){n.addEventListener(t,e,!vt&&Vi)}function S(n,t,e){n.removeEventListener(t,e,!vt&&Vi)}function Oe(n,t){if(t){if(t[0]===">"&&(t=t.substring(1)),n)try{if(n.matches)return n.matches(t);if(n.msMatchesSelector)return n.msMatchesSelector(t);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(t)}catch{return!1}return!1}}function Wr(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function lt(n,t,e,i){if(n){e=e||document;do{if(t!=null&&(t[0]===">"?n.parentNode===e&&Oe(n,t):Oe(n,t))||i&&n===e)return n;if(n===e)break}while(n=Wr(n))}return null}var Li=/\s+/g;function et(n,t,e){if(n&&t)if(n.classList)n.classList[e?"add":"remove"](t);else{var i=(" "+n.className+" ").replace(Li," ").replace(" "+t+" "," ");n.className=(i+(e?" "+t:"")).replace(Li," ")}}function b(n,t,e){var i=n&&n.style;if(i){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(n,""):n.currentStyle&&(e=n.currentStyle),t===void 0?e:e[t];!(t in i)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),i[t]=e+(typeof e=="string"?"":"px")}}function Ut(n,t){var e="";if(typeof n=="string")e=n;else do{var i=b(n,"transform");i&&i!=="none"&&(e=i+" "+e)}while(!t&&(n=n.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(e)}function ki(n,t,e){if(n){var i=n.getElementsByTagName(t),o=0,r=i.length;if(e)for(;o<r;o++)e(i[o],o);return i}return[]}function pt(){var n=document.scrollingElement;return n||document.documentElement}function B(n,t,e,i,o){if(!(!n.getBoundingClientRect&&n!==window)){var r,s,a,l,u,c,d;if(n!==window&&n.parentNode&&n!==pt()?(r=n.getBoundingClientRect(),s=r.top,a=r.left,l=r.bottom,u=r.right,c=r.height,d=r.width):(s=0,a=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||e)&&n!==window&&(o=o||n.parentNode,!vt))do if(o&&o.getBoundingClientRect&&(b(o,"transform")!=="none"||e&&b(o,"position")!=="static")){var p=o.getBoundingClientRect();s-=p.top+parseInt(b(o,"border-top-width")),a-=p.left+parseInt(b(o,"border-left-width")),l=s+r.height,u=a+r.width;break}while(o=o.parentNode);if(i&&n!==window){var f=Ut(o||n),g=f&&f.a,y=f&&f.d;f&&(s/=y,a/=g,d/=g,c/=y,l=s+c,u=a+d)}return{top:s,left:a,bottom:l,right:u,width:d,height:c}}}function Ui(n,t,e){for(var i=St(n,!0),o=B(n)[t];i;){var r=B(i)[e],s=void 0;if(e==="top"||e==="left"?s=o>=r:s=o<=r,!s)return i;if(i===pt())break;i=St(i,!1)}return!1}function Ft(n,t,e,i){for(var o=0,r=0,s=n.children;r<s.length;){if(s[r].style.display!=="none"&&s[r]!==v.ghost&&(i||s[r]!==v.dragged)&<(s[r],e.draggable,n,!1)){if(o===t)return s[r];o++}r++}return null}function Nn(n,t){for(var e=n.lastElementChild;e&&(e===v.ghost||b(e,"display")==="none"||t&&!Oe(e,t));)e=e.previousElementSibling;return e||null}function at(n,t){var e=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==v.clone&&(!t||Oe(n,t))&&e++;return e}function Fi(n){var t=0,e=0,i=pt();if(n)do{var o=Ut(n),r=o.a,s=o.d;t+=n.scrollLeft*r,e+=n.scrollTop*s}while(n!==i&&(n=n.parentNode));return[t,e]}function Gr(n,t){for(var e in n)if(n.hasOwnProperty(e)){for(var i in t)if(t.hasOwnProperty(i)&&t[i]===n[e][i])return Number(e)}return-1}function St(n,t){if(!n||!n.getBoundingClientRect)return pt();var e=n,i=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var o=b(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 pt();if(i||t)return e;i=!0}}while(e=e.parentNode);return pt()}function Jr(n,t){if(n&&t)for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function Mn(n,t){return Math.round(n.top)===Math.round(t.top)&&Math.round(n.left)===Math.round(t.left)&&Math.round(n.height)===Math.round(t.height)&&Math.round(n.width)===Math.round(t.width)}var le;function ji(n,t){return function(){if(!le){var e=arguments,i=this;e.length===1?n.call(i,e[0]):n.apply(i,e),le=setTimeout(function(){le=void 0},t)}}}function Kr(){clearTimeout(le),le=void 0}function zi(n,t,e){n.scrollLeft+=t,n.scrollTop+=e}function Zi(n){var t=window.Polymer,e=window.jQuery||window.Zepto;return t&&t.dom?t.dom(n).cloneNode(!0):e?e(n).clone(!0)[0]:n.cloneNode(!0)}function Xi(n,t,e){var i={};return Array.from(n.children).forEach(function(o){var r,s,a,l;if(!(!lt(o,t.draggable,n,!1)||o.animated||o===e)){var u=B(o);i.left=Math.min((r=i.left)!==null&&r!==void 0?r:1/0,u.left),i.top=Math.min((s=i.top)!==null&&s!==void 0?s:1/0,u.top),i.right=Math.max((a=i.right)!==null&&a!==void 0?a:-1/0,u.right),i.bottom=Math.max((l=i.bottom)!==null&&l!==void 0?l:-1/0,u.bottom)}}),i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}var nt="Sortable"+new Date().getTime();function Qr(){var n=[],t;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(o){if(!(b(o,"display")==="none"||o===v.ghost)){n.push({target:o,rect:B(o)});var r=ht({},n[n.length-1].rect);if(o.thisAnimationDuration){var s=Ut(o,!0);s&&(r.top-=s.f,r.left-=s.e)}o.fromRect=r}})}},addAnimationState:function(i){n.push(i)},removeAnimationState:function(i){n.splice(Gr(n,{target:i}),1)},animateAll:function(i){var o=this;if(!this.options.animation){clearTimeout(t),typeof i=="function"&&i();return}var r=!1,s=0;n.forEach(function(a){var l=0,u=a.target,c=u.fromRect,d=B(u),p=u.prevFromRect,f=u.prevToRect,g=a.rect,y=Ut(u,!0);y&&(d.top-=y.f,d.left-=y.e),u.toRect=d,u.thisAnimationDuration&&Mn(p,d)&&!Mn(c,d)&&(g.top-d.top)/(g.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(l=es(g,p,f,o.options)),Mn(d,c)||(u.prevFromRect=c,u.prevToRect=d,l||(l=o.options.animation),o.animate(u,g,d,l)),l&&(r=!0,s=Math.max(s,l),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},l),u.thisAnimationDuration=l)}),clearTimeout(t),r?t=setTimeout(function(){typeof i=="function"&&i()},s):typeof i=="function"&&i(),n=[]},animate:function(i,o,r,s){if(s){b(i,"transition",""),b(i,"transform","");var a=Ut(this.el),l=a&&a.a,u=a&&a.d,c=(o.left-r.left)/(l||1),d=(o.top-r.top)/(u||1);i.animatingX=!!c,i.animatingY=!!d,b(i,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=ts(i),b(i,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),b(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){b(i,"transition",""),b(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},s)}}}}function ts(n){return n.offsetWidth}function es(n,t,e,i){return Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))/Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))*i.animation}var jt=[],In={initializeByDefault:!0},ue={mount:function(t){for(var e in In)In.hasOwnProperty(e)&&!(e in t)&&(t[e]=In[e]);jt.forEach(function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),jt.push(t)},pluginEvent:function(t,e,i){var o=this;this.eventCanceled=!1,i.cancel=function(){o.eventCanceled=!0};var r=t+"Global";jt.forEach(function(s){e[s.pluginName]&&(e[s.pluginName][r]&&e[s.pluginName][r](ht({sortable:e},i)),e.options[s.pluginName]&&e[s.pluginName][t]&&e[s.pluginName][t](ht({sortable:e},i)))})},initializePlugins:function(t,e,i,o){jt.forEach(function(a){var l=a.pluginName;if(!(!t.options[l]&&!a.initializeByDefault)){var u=new a(t,e,t.options);u.sortable=t,u.options=t.options,t[l]=u,yt(i,u.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 i={};return jt.forEach(function(o){typeof o.eventProperties=="function"&&yt(i,o.eventProperties.call(e[o.pluginName],t))}),i},modifyOption:function(t,e,i){var o;return jt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[e]=="function"&&(o=r.optionListeners[e].call(t[r.pluginName],i))}),o}};function ns(n){var t=n.sortable,e=n.rootEl,i=n.name,o=n.targetEl,r=n.cloneEl,s=n.toEl,a=n.fromEl,l=n.oldIndex,u=n.newIndex,c=n.oldDraggableIndex,d=n.newDraggableIndex,p=n.originalEvent,f=n.putSortable,g=n.extraEventProperties;if(t=t||e&&e[nt],!!t){var y,D=t.options,Z="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!vt&&!se?y=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(i,!0,!0)),y.to=s||e,y.from=a||e,y.item=o||e,y.clone=r,y.oldIndex=l,y.newIndex=u,y.oldDraggableIndex=c,y.newDraggableIndex=d,y.originalEvent=p,y.pullMode=f?f.lastPutMode:void 0;var U=ht(ht({},g),ue.getEventProperties(i,t));for(var ot in U)y[ot]=U[ot];e&&e.dispatchEvent(y),D[Z]&&D[Z].call(t,y)}}var is=["evt"],Q=function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.evt,r=Yr(i,is);ue.pluginEvent.bind(v)(t,e,ht({dragEl:h,parentEl:H,ghostEl:w,rootEl:R,nextEl:Mt,lastDownEl:Re,cloneEl:N,cloneHidden:$t,dragStarted:ce,putSortable:z,activeSortable:v.active,originalEvent:o,oldIndex:zt,oldDraggableIndex:de,newIndex:it,newDraggableIndex:_t,hideGhostForTarget:Qi,unhideGhostForTarget:to,cloneNowHidden:function(){$t=!0},cloneNowShown:function(){$t=!1},dispatchSortableEvent:function(a){G({sortable:e,name:a,originalEvent:o})}},r))};function G(n){ns(ht({putSortable:z,cloneEl:N,targetEl:h,rootEl:R,oldIndex:zt,oldDraggableIndex:de,newIndex:it,newDraggableIndex:_t},n))}var h,H,w,R,Mt,Re,N,$t,zt,it,de,_t,De,z,Zt=!1,Ne=!1,Me=[],It,ut,Hn,Bn,Yi,qi,ce,Xt,he,pe=!1,Ie=!1,He,Y,Vn=[],Ln=!1,Be=[],Ve=typeof document<"u",Le=Hi,Wi=se||vt?"cssFloat":"float",os=Ve&&!Bi&&!Hi&&"draggable"in document.createElement("div"),Gi=function(){if(Ve){if(vt)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),Ji=function(t,e){var i=b(t),o=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),r=Ft(t,0,e),s=Ft(t,1,e),a=r&&b(r),l=s&&b(s),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+B(r).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+B(s).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===d)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||u>=o&&i[Wi]==="none"||s&&i[Wi]==="none"&&u+c>o)?"vertical":"horizontal"},rs=function(t,e,i){var o=i?t.left:t.top,r=i?t.right:t.bottom,s=i?t.width:t.height,a=i?e.left:e.top,l=i?e.right:e.bottom,u=i?e.width:e.height;return o===a||r===l||o+s/2===a+u/2},ss=function(t,e){var i;return Me.some(function(o){var r=o[nt].options.emptyInsertThreshold;if(!(!r||Nn(o))){var s=B(o),a=t>=s.left-r&&t<=s.right+r,l=e>=s.top-r&&e<=s.bottom+r;if(a&&l)return i=o}}),i},Ki=function(t){function e(r,s){return function(a,l,u,c){var d=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(r==null&&(s||d))return!0;if(r==null||r===!1)return!1;if(s&&r==="clone")return r;if(typeof r=="function")return e(r(a,l,u,c),s)(a,l,u,c);var p=(s?a:l).options.group.name;return r===!0||typeof r=="string"&&r===p||r.join&&r.indexOf(p)>-1}}var i={},o=t.group;(!o||Pe(o)!="object")&&(o={name:o}),i.name=o.name,i.checkPull=e(o.pull,!0),i.checkPut=e(o.put),i.revertClone=o.revertClone,t.group=i},Qi=function(){!Gi&&w&&b(w,"display","none")},to=function(){!Gi&&w&&b(w,"display","")};Ve&&!Bi&&document.addEventListener("click",function(n){if(Ne)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),Ne=!1,!1},!0);var Ht=function(t){if(h){t=t.touches?t.touches[0]:t;var e=ss(t.clientX,t.clientY);if(e){var i={};for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o]);i.target=i.rootEl=e,i.preventDefault=void 0,i.stopPropagation=void 0,e[nt]._onDragOver(i)}}},as=function(t){h&&h.parentNode[nt]._isOutsideThisEl(t.target)};function v(n,t){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=t=yt({},t),n[nt]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(n.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ji(n,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:v.supportPointer!==!1&&"PointerEvent"in window&&!ae,emptyInsertThreshold:5};ue.initializePlugins(this,n,e);for(var i in e)!(i in t)&&(t[i]=e[i]);Ki(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:os,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?C(n,"pointerdown",this._onTapStart):(C(n,"mousedown",this._onTapStart),C(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(C(n,"dragover",this),C(n,"dragenter",this)),Me.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),yt(this,Qr())}v.prototype={constructor:v,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Xt=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,i=this.el,o=this.options,r=o.preventOnFilter,s=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(a||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=o.filter;if(gs(i),!h&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||o.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&ae&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=lt(l,o.draggable,i,!1),!(l&&l.animated)&&Re!==l)){if(zt=at(l),de=at(l,o.draggable),typeof c=="function"){if(c.call(this,t,l,this)){G({sortable:e,rootEl:u,name:"filter",targetEl:l,toEl:i,fromEl:i}),Q("filter",e,{evt:t}),r&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=lt(u,d.trim(),i,!1),d)return G({sortable:e,rootEl:d,name:"filter",targetEl:l,fromEl:i,toEl:i}),Q("filter",e,{evt:t}),!0}),c)){r&&t.cancelable&&t.preventDefault();return}o.handle&&!lt(u,o.handle,i,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,i){var o=this,r=o.el,s=o.options,a=r.ownerDocument,l;if(i&&!h&&i.parentNode===r){var u=B(i);if(R=r,h=i,H=h.parentNode,Mt=h.nextSibling,Re=i,De=s.group,v.dragged=h,It={target:h,clientX:(e||t).clientX,clientY:(e||t).clientY},Yi=It.clientX-u.left,qi=It.clientY-u.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,h.style["will-change"]="all",l=function(){if(Q("delayEnded",o,{evt:t}),v.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Ii&&o.nativeDraggable&&(h.draggable=!0),o._triggerDragStart(t,e),G({sortable:o,name:"choose",originalEvent:t}),et(h,s.chosenClass,!0)},s.ignore.split(",").forEach(function(c){ki(h,c.trim(),kn)}),C(a,"dragover",Ht),C(a,"mousemove",Ht),C(a,"touchmove",Ht),C(a,"mouseup",o._onDrop),C(a,"touchend",o._onDrop),C(a,"touchcancel",o._onDrop),Ii&&this.nativeDraggable&&(this.options.touchStartThreshold=4,h.draggable=!0),Q("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(se||vt))){if(v.eventCanceled){this._onDrop();return}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&&kn(h),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;S(t,"mouseup",this._disableDelayedDrag),S(t,"touchend",this._disableDelayedDrag),S(t,"touchcancel",this._disableDelayedDrag),S(t,"mousemove",this._delayedDragTouchMoveHandler),S(t,"touchmove",this._delayedDragTouchMoveHandler),S(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,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(R,"dragstart",this._onDragStart));try{document.selection?Ue(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(Zt=!1,R&&h){Q("dragStarted",this,{evt:e}),this.nativeDraggable&&C(document,"dragover",as);var i=this.options;!t&&et(h,i.dragClass,!1),et(h,i.ghostClass,!0),v.active=this,t&&this._appendGhost(),G({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(ut){this._lastX=ut.clientX,this._lastY=ut.clientY,Qi();for(var t=document.elementFromPoint(ut.clientX,ut.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ut.clientX,ut.clientY),t!==e);)e=t;if(h.parentNode[nt]._isOutsideThisEl(t),e)do{if(e[nt]){var i=void 0;if(i=e[nt]._onDragOver({clientX:ut.clientX,clientY:ut.clientY,target:t,rootEl:e}),i&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);to()}},_onTouchMove:function(t){if(It){var e=this.options,i=e.fallbackTolerance,o=e.fallbackOffset,r=t.touches?t.touches[0]:t,s=w&&Ut(w,!0),a=w&&s&&s.a,l=w&&s&&s.d,u=Le&&Y&&Fi(Y),c=(r.clientX-It.clientX+o.x)/(a||1)+(u?u[0]-Vn[0]:0)/(a||1),d=(r.clientY-It.clientY+o.y)/(l||1)+(u?u[1]-Vn[1]:0)/(l||1);if(!v.active&&!Zt){if(i&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(w){s?(s.e+=c-(Hn||0),s.f+=d-(Bn||0)):s={a:1,b:0,c:0,d:1,e:c,f:d};var p="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");b(w,"webkitTransform",p),b(w,"mozTransform",p),b(w,"msTransform",p),b(w,"transform",p),Hn=c,Bn=d,ut=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!w){var t=this.options.fallbackOnBody?document.body:R,e=B(h,!0,Le,!0,t),i=this.options;if(Le){for(Y=t;b(Y,"position")==="static"&&b(Y,"transform")==="none"&&Y!==document;)Y=Y.parentNode;Y!==document.body&&Y!==document.documentElement?(Y===document&&(Y=pt()),e.top+=Y.scrollTop,e.left+=Y.scrollLeft):Y=pt(),Vn=Fi(Y)}w=h.cloneNode(!0),et(w,i.ghostClass,!1),et(w,i.fallbackClass,!0),et(w,i.dragClass,!0),b(w,"transition",""),b(w,"transform",""),b(w,"box-sizing","border-box"),b(w,"margin",0),b(w,"top",e.top),b(w,"left",e.left),b(w,"width",e.width),b(w,"height",e.height),b(w,"opacity","0.8"),b(w,"position",Le?"absolute":"fixed"),b(w,"zIndex","100000"),b(w,"pointerEvents","none"),v.ghost=w,t.appendChild(w),b(w,"transform-origin",Yi/parseInt(w.style.width)*100+"% "+qi/parseInt(w.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this,o=t.dataTransfer,r=i.options;if(Q("dragStart",this,{evt:t}),v.eventCanceled){this._onDrop();return}Q("setupClone",this),v.eventCanceled||(N=Zi(h),N.removeAttribute("id"),N.draggable=!1,N.style["will-change"]="",this._hideClone(),et(N,this.options.chosenClass,!1),v.clone=N),i.cloneId=Ue(function(){Q("clone",i),!v.eventCanceled&&(i.options.removeCloneOnHide||R.insertBefore(N,h),i._hideClone(),G({sortable:i,name:"clone"}))}),!e&&et(h,r.dragClass,!0),e?(Ne=!0,i._loopId=setInterval(i._emulateDragOver,50)):(S(document,"mouseup",i._onDrop),S(document,"touchend",i._onDrop),S(document,"touchcancel",i._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(i,o,h)),C(document,"drop",i),b(h,"transform","translateZ(0)")),Zt=!0,i._dragStartId=Ue(i._dragStarted.bind(i,e,t)),C(document,"selectstart",i),ce=!0,ae&&b(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,i=t.target,o,r,s,a=this.options,l=a.group,u=v.active,c=De===l,d=a.sort,p=z||u,f,g=this,y=!1;if(Ln)return;function D($e,da){Q($e,g,ht({evt:t,isOwner:c,axis:f?"vertical":"horizontal",revert:s,dragRect:o,targetRect:r,canSort:d,fromSortable:p,target:i,completed:U,onMove:function(xo,ca){return ke(R,e,h,o,xo,B(xo),t,ca)},changed:ot},da))}function Z(){D("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function U($e){return D("dragOverCompleted",{insertion:$e}),$e&&(c?u._hideClone():u._showClone(g),g!==p&&(et(h,z?z.options.ghostClass:u.options.ghostClass,!1),et(h,a.ghostClass,!0)),z!==g&&g!==v.active?z=g:g===v.active&&z&&(z=null),p===g&&(g._ignoreWhileAnimating=i),g.animateAll(function(){D("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===h&&!h.animated||i===e&&!i.animated)&&(Xt=null),!a.dragoverBubble&&!t.rootEl&&i!==document&&(h.parentNode[nt]._isOutsideThisEl(t.target),!$e&&Ht(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),y=!0}function ot(){it=at(h),_t=at(h,a.draggable),G({sortable:g,name:"change",toEl:e,newIndex:it,newDraggableIndex:_t,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),i=lt(i,a.draggable,e,!0),D("dragOver"),v.eventCanceled)return y;if(h.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||g._ignoreWhileAnimating===i)return U(!1);if(Ne=!1,u&&!a.disabled&&(c?d||(s=H!==R):z===this||(this.lastPutMode=De.checkPull(this,u,h,t))&&l.checkPut(this,u,h,t))){if(f=this._getDirection(t,i)==="vertical",o=B(h),D("dragOverValid"),v.eventCanceled)return y;if(s)return H=R,Z(),this._hideClone(),D("revert"),v.eventCanceled||(Mt?R.insertBefore(h,Mt):R.appendChild(h)),U(!0);var J=Nn(e,a.draggable);if(!J||cs(t,f,this)&&!J.animated){if(J===h)return U(!1);if(J&&e===t.target&&(i=J),i&&(r=B(i)),ke(R,e,h,o,i,r,t,!!i)!==!1)return Z(),J&&J.nextSibling?e.insertBefore(h,J.nextSibling):e.appendChild(h),H=e,ot(),U(!0)}else if(J&&ds(t,f,this)){var dt=Ft(e,0,a,!0);if(dt===h)return U(!1);if(i=dt,r=B(i),ke(R,e,h,o,i,r,t,!1)!==!1)return Z(),e.insertBefore(h,dt),H=e,ot(),U(!0)}else if(i.parentNode===e){r=B(i);var P=0,q,ct=h.parentNode!==e,W=!rs(h.animated&&h.toRect||o,i.animated&&i.toRect||r,f),Ee=f?"top":"left",At=Ui(i,"top","top")||Ui(h,"top","top"),xe=At?At.scrollTop:void 0;Xt!==i&&(q=r[Ee],pe=!1,Ie=!W&&a.invertSwap||ct),P=hs(t,i,r,f,W?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Ie,Xt===i);var wt;if(P!==0){var Bt=at(h);do Bt-=P,wt=H.children[Bt];while(wt&&(b(wt,"display")==="none"||wt===w))}if(P===0||wt===i)return U(!1);Xt=i,he=P;var Se=i.nextElementSibling,Ct=!1;Ct=P===1;var mn=ke(R,e,h,o,i,r,t,Ct);if(mn!==!1)return(mn===1||mn===-1)&&(Ct=mn===1),Ln=!0,setTimeout(us,30),Z(),Ct&&!Se?e.appendChild(h):i.parentNode.insertBefore(h,Ct?Se:i),At&&zi(At,0,xe-At.scrollTop),H=h.parentNode,q!==void 0&&!Ie&&(He=Math.abs(q-B(i)[Ee])),ot(),U(!0)}if(e.contains(h))return U(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){S(document,"mousemove",this._onTouchMove),S(document,"touchmove",this._onTouchMove),S(document,"pointermove",this._onTouchMove),S(document,"dragover",Ht),S(document,"mousemove",Ht),S(document,"touchmove",Ht)},_offUpEvents:function(){var t=this.el.ownerDocument;S(t,"mouseup",this._onDrop),S(t,"touchend",this._onDrop),S(t,"pointerup",this._onDrop),S(t,"touchcancel",this._onDrop),S(document,"selectstart",this)},_onDrop:function(t){var e=this.el,i=this.options;if(it=at(h),_t=at(h,i.draggable),Q("drop",this,{evt:t}),H=h&&h.parentNode,it=at(h),_t=at(h,i.draggable),v.eventCanceled){this._nulling();return}Zt=!1,Ie=!1,pe=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Un(this.cloneId),Un(this._dragStartId),this.nativeDraggable&&(S(document,"drop",this),S(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ae&&b(document.body,"user-select",""),b(h,"transform",""),t&&(ce&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),w&&w.parentNode&&w.parentNode.removeChild(w),(R===H||z&&z.lastPutMode!=="clone")&&N&&N.parentNode&&N.parentNode.removeChild(N),h&&(this.nativeDraggable&&S(h,"dragend",this),kn(h),h.style["will-change"]="",ce&&!Zt&&et(h,z?z.options.ghostClass:this.options.ghostClass,!1),et(h,this.options.chosenClass,!1),G({sortable:this,name:"unchoose",toEl:H,newIndex:null,newDraggableIndex:null,originalEvent:t}),R!==H?(it>=0&&(G({rootEl:H,name:"add",toEl:H,fromEl:R,originalEvent:t}),G({sortable:this,name:"remove",toEl:H,originalEvent:t}),G({rootEl:H,name:"sort",toEl:H,fromEl:R,originalEvent:t}),G({sortable:this,name:"sort",toEl:H,originalEvent:t})),z&&z.save()):it!==zt&&it>=0&&(G({sortable:this,name:"update",toEl:H,originalEvent:t}),G({sortable:this,name:"sort",toEl:H,originalEvent:t})),v.active&&((it==null||it===-1)&&(it=zt,_t=de),G({sortable:this,name:"end",toEl:H,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Q("nulling",this),R=h=H=w=Mt=N=Re=$t=It=ut=ce=it=_t=zt=de=Xt=he=z=De=v.dragged=v.ghost=v.clone=v.active=null,Be.forEach(function(t){t.checked=!0}),Be.length=Hn=Bn=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":h&&(this._onDragOver(t),ls(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,i=this.el.children,o=0,r=i.length,s=this.options;o<r;o++)e=i[o],lt(e,s.draggable,this.el,!1)&&t.push(e.getAttribute(s.dataIdAttr)||fs(e));return t},sort:function(t,e){var i={},o=this.el;this.toArray().forEach(function(r,s){var a=o.children[s];lt(a,this.options.draggable,o,!1)&&(i[r]=a)},this),e&&this.captureAnimationState(),t.forEach(function(r){i[r]&&(o.removeChild(i[r]),o.appendChild(i[r]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return lt(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var i=this.options;if(e===void 0)return i[t];var o=ue.modifyOption(this,t,e);typeof o<"u"?i[t]=o:i[t]=e,t==="group"&&Ki(i)},destroy:function(){Q("destroy",this);var t=this.el;t[nt]=null,S(t,"mousedown",this._onTapStart),S(t,"touchstart",this._onTapStart),S(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(S(t,"dragover",this),S(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Me.splice(Me.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!$t){if(Q("hideClone",this),v.eventCanceled)return;b(N,"display","none"),this.options.removeCloneOnHide&&N.parentNode&&N.parentNode.removeChild(N),$t=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if($t){if(Q("showClone",this),v.eventCanceled)return;h.parentNode==R&&!this.options.group.revertClone?R.insertBefore(N,h):Mt?R.insertBefore(N,Mt):R.appendChild(N),this.options.group.revertClone&&this.animate(h,N),b(N,"display",""),$t=!1}}};function ls(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function ke(n,t,e,i,o,r,s,a){var l,u=n[nt],c=u.options.onMove,d;return window.CustomEvent&&!vt&&!se?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=n,l.dragged=e,l.draggedRect=i,l.related=o||t,l.relatedRect=r||B(t),l.willInsertAfter=a,l.originalEvent=s,n.dispatchEvent(l),c&&(d=c.call(u,l,s)),d}function kn(n){n.draggable=!1}function us(){Ln=!1}function ds(n,t,e){var i=B(Ft(e.el,0,e.options,!0)),o=Xi(e.el,e.options,w),r=10;return t?n.clientX<o.left-r||n.clientY<i.top&&n.clientX<i.right:n.clientY<o.top-r||n.clientY<i.bottom&&n.clientX<i.left}function cs(n,t,e){var i=B(Nn(e.el,e.options.draggable)),o=Xi(e.el,e.options,w),r=10;return t?n.clientX>o.right+r||n.clientY>i.bottom&&n.clientX>i.left:n.clientY>o.bottom+r||n.clientX>i.right&&n.clientY>i.top}function hs(n,t,e,i,o,r,s,a){var l=i?n.clientY:n.clientX,u=i?e.height:e.width,c=i?e.top:e.left,d=i?e.bottom:e.right,p=!1;if(!s){if(a&&He<u*o){if(!pe&&(he===1?l>c+u*r/2:l<d-u*r/2)&&(pe=!0),pe)p=!0;else if(he===1?l<c+He:l>d-He)return-he}else if(l>c+u*(1-o)/2&&l<d-u*(1-o)/2)return ps(t)}return p=p||s,p&&(l<c+u*r/2||l>d-u*r/2)?l>c+u/2?1:-1:0}function ps(n){return at(h)<at(n)?1:-1}function fs(n){for(var t=n.tagName+n.className+n.src+n.href+n.textContent,e=t.length,i=0;e--;)i+=t.charCodeAt(e);return i.toString(36)}function gs(n){Be.length=0;for(var t=n.getElementsByTagName("input"),e=t.length;e--;){var i=t[e];i.checked&&Be.push(i)}}function Ue(n){return setTimeout(n,0)}function Un(n){return clearTimeout(n)}Ve&&C(document,"touchmove",function(n){(v.active||Zt)&&n.cancelable&&n.preventDefault()}),v.utils={on:C,off:S,css:b,find:ki,is:function(t,e){return!!lt(t,e,t,!1)},extend:Jr,throttle:ji,closest:lt,toggleClass:et,clone:Zi,index:at,nextTick:Ue,cancelNextTick:Un,detectDirection:Ji,getChild:Ft},v.get=function(n){return n[nt]},v.mount=function(){for(var n=arguments.length,t=new Array(n),e=0;e<n;e++)t[e]=arguments[e];t[0].constructor===Array&&(t=t[0]),t.forEach(function(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(v.utils=ht(ht({},v.utils),i.utils)),ue.mount(i)})},v.create=function(n,t){return new v(n,t)},v.version=qr;var V=[],fe,Fn,jn=!1,zn,Zn,Fe,ge;function ms(){function n(){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 n.prototype={dragStarted:function(e){var i=e.originalEvent;this.sortable.nativeDraggable?C(document,"dragover",this._handleAutoScroll):this.options.supportPointer?C(document,"pointermove",this._handleFallbackAutoScroll):i.touches?C(document,"touchmove",this._handleFallbackAutoScroll):C(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var i=e.originalEvent;!this.options.dragOverBubble&&!i.rootEl&&this._handleAutoScroll(i)},drop:function(){this.sortable.nativeDraggable?S(document,"dragover",this._handleAutoScroll):(S(document,"pointermove",this._handleFallbackAutoScroll),S(document,"touchmove",this._handleFallbackAutoScroll),S(document,"mousemove",this._handleFallbackAutoScroll)),eo(),je(),Kr()},nulling:function(){Fe=Fn=fe=jn=ge=zn=Zn=null,V.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,i){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(Fe=e,i||this.options.forceAutoScrollFallback||se||vt||ae){Xn(e,this.options,a,i);var l=St(a,!0);jn&&(!ge||r!==zn||s!==Zn)&&(ge&&eo(),ge=setInterval(function(){var u=St(document.elementFromPoint(r,s),!0);u!==l&&(l=u,je()),Xn(e,o.options,u,i)},10),zn=r,Zn=s)}else{if(!this.options.bubbleScroll||St(a,!0)===pt()){je();return}Xn(e,this.options,St(a,!1),!1)}}},yt(n,{pluginName:"scroll",initializeByDefault:!0})}function je(){V.forEach(function(n){clearInterval(n.pid)}),V=[]}function eo(){clearInterval(ge)}var Xn=ji(function(n,t,e,i){if(t.scroll){var o=(n.touches?n.touches[0]:n).clientX,r=(n.touches?n.touches[0]:n).clientY,s=t.scrollSensitivity,a=t.scrollSpeed,l=pt(),u=!1,c;Fn!==e&&(Fn=e,je(),fe=t.scroll,c=t.scrollFn,fe===!0&&(fe=St(e,!0)));var d=0,p=fe;do{var f=p,g=B(f),y=g.top,D=g.bottom,Z=g.left,U=g.right,ot=g.width,J=g.height,dt=void 0,P=void 0,q=f.scrollWidth,ct=f.scrollHeight,W=b(f),Ee=f.scrollLeft,At=f.scrollTop;f===l?(dt=ot<q&&(W.overflowX==="auto"||W.overflowX==="scroll"||W.overflowX==="visible"),P=J<ct&&(W.overflowY==="auto"||W.overflowY==="scroll"||W.overflowY==="visible")):(dt=ot<q&&(W.overflowX==="auto"||W.overflowX==="scroll"),P=J<ct&&(W.overflowY==="auto"||W.overflowY==="scroll"));var xe=dt&&(Math.abs(U-o)<=s&&Ee+ot<q)-(Math.abs(Z-o)<=s&&!!Ee),wt=P&&(Math.abs(D-r)<=s&&At+J<ct)-(Math.abs(y-r)<=s&&!!At);if(!V[d])for(var Bt=0;Bt<=d;Bt++)V[Bt]||(V[Bt]={});(V[d].vx!=xe||V[d].vy!=wt||V[d].el!==f)&&(V[d].el=f,V[d].vx=xe,V[d].vy=wt,clearInterval(V[d].pid),(xe!=0||wt!=0)&&(u=!0,V[d].pid=setInterval((function(){i&&this.layer===0&&v.active._onTouchMove(Fe);var Se=V[this.layer].vy?V[this.layer].vy*a:0,Ct=V[this.layer].vx?V[this.layer].vx*a:0;typeof c=="function"&&c.call(v.dragged.parentNode[nt],Ct,Se,n,Fe,V[this.layer].el)!=="continue"||zi(V[this.layer].el,Ct,Se)}).bind({layer:d}),24))),d++}while(t.bubbleScroll&&p!==l&&(p=St(p,!1)));jn=u}},30),no=function(t){var e=t.originalEvent,i=t.putSortable,o=t.dragEl,r=t.activeSortable,s=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var u=i||r;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,d=document.elementFromPoint(c.clientX,c.clientY);l(),u&&!u.el.contains(d)&&(s("spill"),this.onSpill({dragEl:o,putSortable:i}))}};function Yn(){}Yn.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var o=Ft(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),i&&i.animateAll()},drop:no},yt(Yn,{pluginName:"revertOnSpill"});function qn(){}qn.prototype={onSpill:function(t){var e=t.dragEl,i=t.putSortable,o=i||this.sortable;o.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),o.animateAll()},drop:no},yt(qn,{pluginName:"removeOnSpill"}),v.mount(new ms),v.mount(qn,Yn);const ys=n=>{const t=n.item;let e=Array.prototype.slice.call(t.parentNode.childNodes);return e=e.filter(i=>i.nodeType!=Node.ELEMENT_NODE||!i.classList.contains("sortable-fallback")),e},bs=(n,t,e,i,o,r)=>{const a=n.item.parentNode;for(const y of e)a.appendChild(y);if(n.oldIndex==n.newIndex)return;const l=i.getArray(),u=n.item.querySelector("eox-layercontrol-layer").layer.get(o),c=l.find(y=>y.get(o)===u),d=r.dataset.layer,p=l.find(y=>y.get(o)==d);let f,g;for(f=0;f<l.length;f++)if(l[f]==c){i.removeAt(f);break}for(g=0;g<l.length;g++)if(l[g]===p){f>g?i.insertAt(g,c):i.insertAt(g+1,c);break}t.requestUpdate()};function vs(n,t,e,i){let o=[],r=null;n._sortable=v.create(n,{handle:".drag-handle",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",onStart:s=>o=ys(s),onMove:s=>{r=s.related},onEnd:s=>bs(s,i,o,t,e,r)})}function ws(n,t,e,i){const o=n.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&&i.requestUpdate()})}function Wn(n,t,e){let i=[];const o=(r,s,a)=>{i=[...i,...r.filter(u=>u.get(s)===a)];const l=r.filter(u=>u.getLayers);return l.length>0&&l.forEach(u=>o(u.getLayers().getArray(),s,a)),i};return o(n,t,e),i}function Es(n,t,e){if(!n||!t)return!1;if(!io(n,e))return!0;const i=n.get("minZoom"),o=n.get("maxZoom"),r=t.getView().getZoom();return r>i&&r<o}function io(n,t){const e=n.get("minZoom"),i=n.get("maxZoom");return!!(t&&(e!==-1/0||i!==1/0))}function xs(n,t){var o,r,s;return!n||!t?void 0:n.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(n.getSource?(r=n.getSource())==null?void 0:r.ol_uid:void 0))?"draw":n.declutter_!==void 0?"vector":"raster"}function oo(n,t){var i;let e={};for(const o in n){const r=n[o].type;if(r&&r!=="object")e[o]=r==="number"?Number(t[o]):t[o];else if(typeof n[o]=="object"&&((i=n[o])!=null&&i.properties)){const s=oo(n[o].properties,t);Object.keys(s).length>0&&(e[o]=s)}}return e}function Ss(n,t){var r;if(!t||!n.getSource().getTileUrlFunction())return null;const e=new URL(n.getSource().getTileUrlFunction()([0,0,0])),i=Object.fromEntries(e.searchParams.entries()),o=oo(((r=t.schema)==null?void 0:r.properties)||t.schema,i);return Object.keys(o).length?o:null}const $s=(n,t)=>n==null?void 0:n.filter(e=>["remove","sort"].filter(i=>t!=null&&t.get("layerControlDisable")?i!=="sort":!0).includes(e)),_s=(n,t)=>n==null?void 0:n.filter(e=>{let i=!0;return["remove","sort"].includes(e)&&(i=!1),e==="info"&&(i=t.get("description")),e==="config"&&(i=t.get("layerConfig")),i}),As=(n,t)=>x`
|
|
46
|
+
<button slot="${n}-icon" class="icon">${t?n:T}</button>
|
|
47
|
+
`,Cs=n=>x`
|
|
48
48
|
<button
|
|
49
49
|
class="remove-icon icon"
|
|
50
|
-
@click=${()=>{const{layer:t}=
|
|
50
|
+
@click=${()=>{const{layer:t}=n;t==null||t.set("layerControlOptional",!0),t==null||t.setVisible(!1),n.dispatchEvent(new CustomEvent("changed",{detail:t,bubbles:!0}))}}
|
|
51
51
|
>
|
|
52
|
-
${
|
|
52
|
+
${n.unstyled?"x":T}
|
|
53
53
|
</button>
|
|
54
|
-
`,Ts=
|
|
54
|
+
`,Ts=n=>x`
|
|
55
55
|
<span class="button sort-icon icon drag-handle">
|
|
56
|
-
${
|
|
56
|
+
${n?"═":T}
|
|
57
57
|
</span>
|
|
58
|
-
`,ro=
|
|
58
|
+
`,ro=n=>{var e;const t=["layerControlHide","layerControlOptional"];return(e=n==null?void 0:n.getArray())==null?void 0:e.filter(i=>t.every(o=>!i.get(o)))};/**
|
|
59
59
|
* @license
|
|
60
60
|
* Copyright 2020 Google LLC
|
|
61
61
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
62
|
-
*/const so=An(class extends Cn{constructor(
|
|
62
|
+
*/const so=An(class extends Cn{constructor(n){if(super(n),n.type!==xt.PROPERTY&&n.type!==xt.ATTRIBUTE&&n.type!==xt.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Xo(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[t]){if(t===rt||t===T)return t;const e=n.element,i=n.name;if(n.type===xt.PROPERTY){if(t===e[i])return rt}else if(n.type===xt.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(i))return rt}else if(n.type===xt.ATTRIBUTE&&e.getAttribute(i)===t+"")return rt;return $i(n),t}});/**
|
|
63
63
|
* @license
|
|
64
64
|
* Copyright 2017 Google LLC
|
|
65
65
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
66
|
-
*/class Gn extends Cn{constructor(t){if(super(t),this.it=T,t.type!==xt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===T||t==null)return this._t=void 0,this.it=t;if(t===rt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const
|
|
66
|
+
*/class Gn extends Cn{constructor(t){if(super(t),this.it=T,t.type!==xt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===T||t==null)return this._t=void 0,this.it=t;if(t===rt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Gn.directiveName="unsafeHTML",Gn.resultType=1;const Ps=An(Gn);/**
|
|
67
67
|
* @license
|
|
68
68
|
* Copyright 2021 Google LLC
|
|
69
69
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
70
|
-
*/function*ze(
|
|
70
|
+
*/function*ze(n,t){if(n!==void 0){let e=0;for(const i of n)yield t(i,e++)}}const Os=(n,t,e)=>{let i=t;return e.layer.getSource().getTileUrlFunction()&&(i||(i=e.layer.getSource().getTileUrlFunction()),e.layer.getSource().setTileUrlFunction((...o)=>zr(i(...o),n)),e.layer.getSource().setKey(new Date)),i};var Ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rs(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ds="Expected a function",ao=NaN,Ns="[object Symbol]",Ms=/^\s+|\s+$/g,Is=/^[-+]0x[0-9a-f]+$/i,Hs=/^0b[01]+$/i,Bs=/^0o[0-7]+$/i,Vs=parseInt,Ls=typeof Ze=="object"&&Ze&&Ze.Object===Object&&Ze,ks=typeof self=="object"&&self&&self.Object===Object&&self,Us=Ls||ks||Function("return this")(),Fs=Object.prototype,js=Fs.toString,zs=Math.max,Zs=Math.min,Jn=function(){return Us.Date.now()};function Xs(n,t,e){var i,o,r,s,a,l,u=0,c=!1,d=!1,p=!0;if(typeof n!="function")throw new TypeError(Ds);t=lo(t)||0,Kn(e)&&(c=!!e.leading,d="maxWait"in e,r=d?zs(lo(e.maxWait)||0,t):r,p="trailing"in e?!!e.trailing:p);function f(P){var q=i,ct=o;return i=o=void 0,u=P,s=n.apply(ct,q),s}function g(P){return u=P,a=setTimeout(Z,t),c?f(P):s}function y(P){var q=P-l,ct=P-u,W=t-q;return d?Zs(W,r-ct):W}function D(P){var q=P-l,ct=P-u;return l===void 0||q>=t||q<0||d&&ct>=r}function Z(){var P=Jn();if(D(P))return U(P);a=setTimeout(Z,y(P))}function U(P){return a=void 0,p&&i?f(P):(i=o=void 0,s)}function ot(){a!==void 0&&clearTimeout(a),u=0,i=l=o=a=void 0}function J(){return a===void 0?s:U(Jn())}function dt(){var P=Jn(),q=D(P);if(i=arguments,o=this,l=P,q){if(a===void 0)return g(l);if(d)return a=setTimeout(Z,t),f(l)}return a===void 0&&(a=setTimeout(Z,t)),s}return dt.cancel=ot,dt.flush=J,dt}function Kn(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}function Ys(n){return!!n&&typeof n=="object"}function qs(n){return typeof n=="symbol"||Ys(n)&&js.call(n)==Ns}function lo(n){if(typeof n=="number")return n;if(qs(n))return ao;if(Kn(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=Kn(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=n.replace(Ms,"");var e=Hs.test(n);return e||Bs.test(n)?Vs(n.slice(2),e?2:8):Is.test(n)?ao:+n}var Ws=Xs;const uo=Rs(Ws);class co extends tt{constructor(){super();_(this,Xe);_(this,me,{});_(this,ye,null);_(this,be,void 0);_(this,Ye,"");_(this,qe,"");this.layer=null,this.unstyled=!1,this.noShadow=!1,this.layerConfig=null,this.debouncedDataChange=uo(X(this,Xe,So),1e3,{leading:!0})}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){_e(this,ye,Ss(this.layer,this.layerConfig)),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`
|
|
71
71
|
<style>
|
|
72
72
|
${M(this,Ye)}
|
|
73
73
|
${!this.unstyled&&M(this,qe)}
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
<eox-jsonform
|
|
78
78
|
.schema=${this.layerConfig.schema}
|
|
79
79
|
.value=${M(this,ye)}
|
|
80
|
-
.options=${
|
|
80
|
+
.options=${e}
|
|
81
81
|
@change=${this.debouncedDataChange}
|
|
82
82
|
></eox-jsonform>
|
|
83
83
|
`)}
|
|
84
|
-
`}}me=new WeakMap,ye=new WeakMap,be=new WeakMap,Xe=new WeakSet,So=function(
|
|
84
|
+
`}}me=new WeakMap,ye=new WeakMap,be=new WeakMap,Xe=new WeakSet,So=function(e){_e(this,me,e.detail),_e(this,be,Os(M(this,me),M(this,be),this)),this.requestUpdate()},Ye=new WeakMap,qe=new WeakMap,L(co,"properties",{layer:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},layerConfig:{attribute:!1}}),customElements.define("eox-layercontrol-layerconfig",co);class ho extends tt{constructor(){super();_(this,ve,e=>this.selectedTab===e&&"highlighted");_(this,We,`
|
|
85
85
|
.tabbed figure {
|
|
86
86
|
margin: 0;
|
|
87
87
|
}
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
background: #00417011;
|
|
123
123
|
border-top: 1px solid #0041701a;
|
|
124
124
|
}
|
|
125
|
-
`);this.actions=[],this.selectedTab=0,this.tabs=[],this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const
|
|
125
|
+
`);this.actions=[],this.selectedTab=0,this.tabs=[],this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const e=this.tabs,i=this.actions,o=i.length+e.length>1;return x`
|
|
126
126
|
<style>
|
|
127
127
|
${M(this,We)}
|
|
128
128
|
${!this.unstyled&&M(this,Ge)}
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
<nav>
|
|
134
134
|
<div>
|
|
135
135
|
<!-- Labels for tabs -->
|
|
136
|
-
${ze(
|
|
136
|
+
${ze(e,(r,s)=>x`
|
|
137
137
|
<label
|
|
138
138
|
class=${M(this,ve).call(this,s)}
|
|
139
139
|
@click=${()=>this.selectedTab=s}
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
`)}
|
|
157
157
|
<figure>
|
|
158
158
|
<!-- Content for each tab -->
|
|
159
|
-
${ze(
|
|
159
|
+
${ze(e,(r,s)=>x`
|
|
160
160
|
<div class="tab ${M(this,ve).call(this,s)}">
|
|
161
161
|
<!-- Content slot for each tab -->
|
|
162
162
|
<slot name=${`${r}-content`}>${r}</slot>
|
|
@@ -210,6 +210,11 @@ button[disabled],
|
|
|
210
210
|
cursor: not-allowed;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
+
button.block,
|
|
214
|
+
.button.block {
|
|
215
|
+
display: block;
|
|
216
|
+
}
|
|
217
|
+
|
|
213
218
|
button.outline,
|
|
214
219
|
.button.outline {
|
|
215
220
|
background: transparent;
|
|
@@ -240,6 +245,11 @@ button.icon-text,
|
|
|
240
245
|
text-indent: 26px;
|
|
241
246
|
}
|
|
242
247
|
|
|
248
|
+
button.icon-text.block,
|
|
249
|
+
.button.icon-text.block {
|
|
250
|
+
text-indent: 20px;
|
|
251
|
+
}
|
|
252
|
+
|
|
243
253
|
button.icon:before, button.icon-text:before,
|
|
244
254
|
.button.icon:before, .button.icon-text:before {
|
|
245
255
|
position: absolute;
|
|
@@ -247,6 +257,11 @@ button.icon:before, button.icon-text:before,
|
|
|
247
257
|
line-height: initial;
|
|
248
258
|
}
|
|
249
259
|
|
|
260
|
+
button.icon-text.block:before,
|
|
261
|
+
.button.icon-text.block:before {
|
|
262
|
+
text-indent: -54px;
|
|
263
|
+
}
|
|
264
|
+
|
|
250
265
|
button.icon:before,
|
|
251
266
|
.button.icon:before {
|
|
252
267
|
width: 24px;
|
|
@@ -401,7 +416,7 @@ input[type="range"]:focus::-webkit-slider-thumb {
|
|
|
401
416
|
input::-moz-focus-inner, input::-moz-focus-outer {
|
|
402
417
|
border: 0;
|
|
403
418
|
}
|
|
404
|
-
`;class fo extends tt{constructor(){super();L(this,"_removeButton",()=>Cs(this));L(this,"_sortButton",()=>Ts(this.unstyled));L(this,"_button",
|
|
419
|
+
`;class fo extends tt{constructor(){super();L(this,"_removeButton",()=>Cs(this));L(this,"_sortButton",()=>Ts(this.unstyled));L(this,"_button",e=>As(e,this.unstyled));_(this,Je,"");_(this,Ke,`
|
|
405
420
|
${Gs}
|
|
406
421
|
${Js}
|
|
407
422
|
${po}
|
|
@@ -497,7 +512,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
497
512
|
[slot=opacity-content] {
|
|
498
513
|
padding: 12px 6px;
|
|
499
514
|
}
|
|
500
|
-
`);this.layer=null,this.tools=[],this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var l;const
|
|
515
|
+
`);this.layer=null,this.tools=[],this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var l;const e=$s(this.tools,this.layer),i=_s(this.tools,this.layer),o=this[`_${e==null?void 0:e[0]}Button`]?this[`_${e==null?void 0:e[0]}Button`]():T,r=((l=this.tools)==null?void 0:l.length)===1?`${this.tools[0]}-icon`:"",s=e==null?void 0:e.length,a=i==null?void 0:i.length;return x`
|
|
501
516
|
<style>
|
|
502
517
|
${M(this,Je)}
|
|
503
518
|
${!this.unstyled&&M(this,Ke)}
|
|
@@ -517,7 +532,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
517
532
|
</summary>
|
|
518
533
|
<eox-layercontrol-tabs
|
|
519
534
|
.noShadow=${!1}
|
|
520
|
-
.actions=${
|
|
535
|
+
.actions=${e}
|
|
521
536
|
.tabs=${i}
|
|
522
537
|
.unstyled=${this.unstyled}
|
|
523
538
|
>
|
|
@@ -557,7 +572,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
557
572
|
</details>
|
|
558
573
|
`})}
|
|
559
574
|
`)}
|
|
560
|
-
`}}Je=new WeakMap,Ke=new WeakMap,L(fo,"properties",{layer:{attribute:!1},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-layer-tools",fo);const Qs=
|
|
575
|
+
`}}Je=new WeakMap,Ke=new WeakMap,L(fo,"properties",{layer:{attribute:!1},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-layer-tools",fo);const Qs=n=>{const t=()=>{const e=Es(n.layer,n.map,n.showLayerZoomState);let i=!1;!e&&n.currLayerVisibilityBasedOnZoom?(n.currLayerVisibilityBasedOnZoom=!1,i=!0):e&&!n.currLayerVisibilityBasedOnZoom&&(n.currLayerVisibilityBasedOnZoom=!0,i=!0),i&&(n.requestUpdate(),n.dispatchEvent(new CustomEvent("change:resolution",{bubbles:!0})))};io(n.layer,n.showLayerZoomState)&&(t(),n.map.getView().on("change:resolution",()=>t()))},ta=(n,t)=>{const e=t.layer;e.setVisible(n.target.checked),n.target.checked&&e.get("layerControlExclusive")&&t.parentNode.parentNode.querySelectorAll("li > 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 go extends tt{constructor(){super();_(this,Yt);_(this,Qe);L(this,"currLayerVisibilityBasedOnZoom",!0);_(this,tn,"");_(this,en,`
|
|
561
576
|
${po}
|
|
562
577
|
eox-layercontrol-layer {
|
|
563
578
|
width: 100%;
|
|
@@ -598,7 +613,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
598
613
|
[data-type=draw] .title::before {
|
|
599
614
|
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230041703a' viewBox='0 0 24 24'%3E%3Ctitle%3Evector-square-edit%3C/title%3E%3Cpath d='M22.7 14.4L21.7 15.4L19.6 13.3L20.6 12.3C20.8 12.1 21.2 12.1 21.4 12.3L22.7 13.6C22.9 13.8 22.9 14.1 22.7 14.4M13 19.9L19.1 13.8L21.2 15.9L15.1 22H13V19.9M11 19.9V19.1L11.6 18.5L12.1 18H8V16H6V8H8V6H16V8H18V12.1L19.1 11L19.3 10.8C19.5 10.6 19.8 10.4 20.1 10.3V8H22.1V2H16.1V4H8V2H2V8H4V16H2V22H8V20L11 19.9M18 4H20V6H18V4M4 4H6V6H4V4M6 20H4V18H6V20Z' /%3E%3C/svg%3E");
|
|
600
615
|
}
|
|
601
|
-
`);this.layer=null,this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=[],this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}firstUpdated(){Qs(this)}render(){var l;const
|
|
616
|
+
`);this.layer=null,this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=[],this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}firstUpdated(){Qs(this)}render(){var l;const e=this.layer.getVisible(),i=e?"visible":"",o=this.currLayerVisibilityBasedOnZoom?"":"zoom-state-invisible",r=X(this,Yt,yn).call(this,"layerControlDisable")?"disabled":"",s=X(this,Yt,yn).call(this,"layerControlExclusive")?"radio":"checkbox",a=((l=this.tools)==null?void 0:l.length)>0;return x`
|
|
602
617
|
<style>
|
|
603
618
|
${M(this,tn)}
|
|
604
619
|
${!this.unstyled&&M(this,en)}
|
|
@@ -610,7 +625,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
610
625
|
<!-- Input element for layer visibility -->
|
|
611
626
|
<input
|
|
612
627
|
type=${s}
|
|
613
|
-
.checked=${so(
|
|
628
|
+
.checked=${so(e)}
|
|
614
629
|
@click=${X(this,Qe,$o)}
|
|
615
630
|
/>
|
|
616
631
|
|
|
@@ -628,7 +643,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
628
643
|
.unstyled=${this.unstyled}
|
|
629
644
|
></eox-layercontrol-layer-tools>
|
|
630
645
|
`)}
|
|
631
|
-
`}}Yt=new WeakSet,yn=function(
|
|
646
|
+
`}}Yt=new WeakSet,yn=function(e){var i;return(i=this.layer)==null?void 0:i.get(e)},Qe=new WeakSet,$o=function(e){ta(e,this)},tn=new WeakMap,en=new WeakMap,L(go,"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}}),customElements.define("eox-layercontrol-layer",go);class mo extends tt{constructor(){super();_(this,nn,"");_(this,on,`
|
|
632
647
|
details summary {
|
|
633
648
|
cursor: pointer;
|
|
634
649
|
display: flex;
|
|
@@ -652,7 +667,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
652
667
|
details[data-children-length="0"] summary::before {
|
|
653
668
|
display: none;
|
|
654
669
|
}
|
|
655
|
-
`);this.group=null,this.idProperty="id",this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=[],this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var o,r;const
|
|
670
|
+
`);this.group=null,this.idProperty="id",this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=[],this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var o,r;const e=!!((o=this.group)!=null&&o.get("layerControlExpand")),i=(r=ro(this.group.getLayers()))==null?void 0:r.length;return x`
|
|
656
671
|
<style>
|
|
657
672
|
${M(this,nn)}
|
|
658
673
|
${!this.unstyled&&M(this,on)}
|
|
@@ -660,7 +675,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
660
675
|
${st(this.group,()=>x`
|
|
661
676
|
<!-- Render the details element with the layer control -->
|
|
662
677
|
<details
|
|
663
|
-
open=${
|
|
678
|
+
open=${e||T}
|
|
664
679
|
data-children-length=${i}
|
|
665
680
|
>
|
|
666
681
|
<summary>
|
|
@@ -691,7 +706,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
691
706
|
></eox-layercontrol-layer-list>
|
|
692
707
|
</details>
|
|
693
708
|
`)}
|
|
694
|
-
`}}nn=new WeakMap,on=new WeakMap,L(mo,"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}}),customElements.define("eox-layercontrol-layer-group",mo);const ea=
|
|
709
|
+
`}}nn=new WeakMap,on=new WeakMap,L(mo,"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}}),customElements.define("eox-layercontrol-layer-group",mo);const ea=n=>{const{layers:t,idProperty:e,titleProperty:i,renderRoot:o}=n,r=uo(()=>{n.requestUpdate(),n.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");ws(t,e,i,n),vs(a,t,e,n)}};class yo extends tt{constructor(){super();_(this,rn,"");_(this,sn,`
|
|
695
710
|
ul {
|
|
696
711
|
padding: 0;
|
|
697
712
|
margin: 0;
|
|
@@ -719,14 +734,14 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
719
734
|
}
|
|
720
735
|
li.sortable-ghost {
|
|
721
736
|
}
|
|
722
|
-
`);this.idProperty="id",this.layers=null,this.map=null,this.tools=void 0,this.titleProperty="title",this.showLayerZoomState=!1,this.unstyled=!1,this.noShadow=!1}firstUpdated(){ea(this)}
|
|
737
|
+
`);this.idProperty="id",this.layers=null,this.map=null,this.tools=void 0,this.titleProperty="title",this.showLayerZoomState=!1,this.unstyled=!1,this.noShadow=!1}firstUpdated(){ea(this)}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const e=this.layers?ro(this.layers).reverse():[];return x`
|
|
723
738
|
<style>
|
|
724
739
|
${M(this,rn)}
|
|
725
740
|
${!this.unstyled&&M(this,sn)}
|
|
726
741
|
</style>
|
|
727
742
|
<ul>
|
|
728
743
|
${st(this.layers,()=>x`
|
|
729
|
-
${Wo(
|
|
744
|
+
${Wo(e,i=>i,i=>x`
|
|
730
745
|
<li
|
|
731
746
|
data-layer="${i.get(this.idProperty)}"
|
|
732
747
|
data-type="${xs(i,this.map)}"
|
|
@@ -760,7 +775,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
760
775
|
`)}
|
|
761
776
|
`)}
|
|
762
777
|
</ul>
|
|
763
|
-
`}}rn=new WeakMap,sn=new WeakMap,L(yo,"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}}),customElements.define("eox-layercontrol-layer-list",yo);const
|
|
778
|
+
`}}rn=new WeakMap,sn=new WeakMap,L(yo,"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}}),customElements.define("eox-layercontrol-layer-list",yo);const na=n=>{const t=n.querySelector("select[name=optional]"),e=t?t.value:null,i=Wn(n.layers.getArray(),"layerControlOptional",!0).find(o=>(o.get(n.idProperty)||o.ol_uid)===e);i==null||i.set("layerControlOptional",!1),i==null||i.setVisible(!0),n.dispatchEvent(new CustomEvent("changed",{bubbles:!0})),n.renderRoot.parentNode.querySelectorAll("eox-layercontrol-layer-list").forEach(o=>o.requestUpdate()),n.requestUpdate()};class bo extends tt{constructor(){super();_(this,an);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=Wn(this.layers.getArray(),"layerControlOptional",!0);return x`
|
|
764
779
|
<!-- Label for the dropdown -->
|
|
765
780
|
<label for="optional">Optional layers</label>
|
|
766
781
|
|
|
@@ -772,12 +787,12 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
772
787
|
</option>
|
|
773
788
|
|
|
774
789
|
<!-- Mapping through filtered layers list to generate dropdown options -->
|
|
775
|
-
${
|
|
790
|
+
${e.map(i=>{const o=i.get(this.idProperty)||i.ol_uid,r=i.get(this.titleProperty),s=`layer ${i.get(this.idProperty)}`;return x` <option value="${o}">${r||s}</option> `})}
|
|
776
791
|
</select>
|
|
777
792
|
|
|
778
793
|
<!-- Button to handle adding layers -->
|
|
779
794
|
<button @click="${X(this,an,_o)}">add</button>
|
|
780
|
-
`}}an=new WeakSet,_o=function(){
|
|
795
|
+
`}}an=new WeakSet,_o=function(){na(this)},L(bo,"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",bo);const ia=(n,t)=>{t.jsonInput=n.target.value,t.requestUpdate()},vo=n=>{const t=JSON.parse(`{"data":${Ni(n.jsonInput)}}`);Array.isArray(t.data)?t.data.forEach(e=>{n.eoxMap.addOrUpdateLayer(e)}):n.eoxMap.addOrUpdateLayer(t.data),n.jsonInput=null,n.requestUpdate()},oa=(n,t)=>{t.urlInput=n.target.value,t.requestUpdate()};async function ra(n){const t=n.urlInput;if(n.wmsCapabilities=null,n.searchLoad=!0,n.requestUpdate(),!t)return!1;if(Dn(t)==="XYZ")return{Name:t};try{const e=await Ur(t);n.wmsCapabilities=e}catch{}finally{n.searchLoad=!1,n.requestUpdate()}return!1}const sa=(n,t)=>{const{Name:e}=n,i=Dn(t.urlInput)||"XYZ",o={type:"Tile",properties:{id:e,title:e},source:{type:i,url:t.urlInput,params:{LAYERS:e}}};t.jsonInput=JSON.stringify(o)},aa=(n,t)=>{t.open=n||null,t.urlInput=null,t.jsonInput=null,t.wmsCapabilities=null,t.requestUpdate()};class wo extends tt{constructor(){super();_(this,ln);_(this,un);_(this,we);_(this,dn);_(this,cn);_(this,qt);L(this,"urlInput",null);L(this,"jsonInput",null);L(this,"open",null);L(this,"searchLoad",!1);L(this,"wmsCapabilities",null);_(this,hn,`
|
|
781
796
|
.eox-add-layer-main .open {
|
|
782
797
|
position: relative;
|
|
783
798
|
}
|
|
@@ -917,7 +932,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
917
932
|
font-weight: bold;
|
|
918
933
|
display: inline-block;
|
|
919
934
|
}
|
|
920
|
-
`);this.eoxMap=null,this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const
|
|
935
|
+
`);this.eoxMap=null,this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const e=this.open?"open":"close",i=this.open==="url",o=this.open==="json",r=!Fr(this.urlInput)||this.searchLoad?!0:T;return x`
|
|
921
936
|
<style>
|
|
922
937
|
${M(this,hn)}
|
|
923
938
|
${!this.unstyled&&M(this,pn)}
|
|
@@ -925,7 +940,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
925
940
|
<div class="eox-add-layer-main">
|
|
926
941
|
<div class="eox-add-layer-col">
|
|
927
942
|
<!-- Tabbed interface for URL and JSON -->
|
|
928
|
-
<ul class="eox-add-layer-tab ${
|
|
943
|
+
<ul class="eox-add-layer-tab ${e}">
|
|
929
944
|
<li
|
|
930
945
|
@click=${()=>X(this,qt,bn).call(this,"url")}
|
|
931
946
|
class="${i?"active":""}"
|
|
@@ -948,7 +963,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
948
963
|
${this.unstyled?"Add Layer":""}
|
|
949
964
|
</button>
|
|
950
965
|
</div>
|
|
951
|
-
<div class="eox-add ${
|
|
966
|
+
<div class="eox-add ${e}">
|
|
952
967
|
${i?x`
|
|
953
968
|
<!-- Input field for URL -->
|
|
954
969
|
<div class="eox-add-layer-col">
|
|
@@ -1005,7 +1020,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
1005
1020
|
`}
|
|
1006
1021
|
</div>
|
|
1007
1022
|
</div>
|
|
1008
|
-
`}}ln=new WeakSet,Ao=function(
|
|
1023
|
+
`}}ln=new WeakSet,Ao=function(e){oa(e,this)},un=new WeakSet,Co=async function(){const e=await ra(this);e&&X(this,we,ei).call(this,e)},we=new WeakSet,ei=function(e){sa(e,this),vo(this)},dn=new WeakSet,To=function(){vo(this)},cn=new WeakSet,Po=function(e){ia(e,this)},qt=new WeakSet,bn=function(e){aa(e,this)},hn=new WeakMap,pn=new WeakMap,L(wo,"properties",{eoxMap:{attribute:!1,state:!0},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-add-layers",wo);const la=(n,t)=>{if(t.requestUpdate(),n.target.tagName==="EOX-LAYERCONTROL-LAYER-TOOLS"){const e=t.renderRoot.querySelector("eox-layercontrol-optional-list");e==null||e.requestUpdate()}},ua=n=>{const t=n.for,e=document.querySelector(t);return e&&e.map!==n.map&&(n.map=e.map),e};class Qn extends tt{constructor(){super();_(this,fn);_(this,Wt,void 0);_(this,gn,"* { font-family: Roboto, sans-serif; }");this.for="eox-map",this.idProperty="id",this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=["info","opacity","config","remove","sort"],this.addExternalLayers=!1,this.unstyled=!1,this.styleOverride=""}firstUpdated(){_e(this,Wt,ua(this))}render(){var o,r,s;const e=(o=this.map)==null?void 0:o.getLayers().getArray(),i=e&&((r=Wn(e,"layerControlOptional",!0))==null?void 0:r.length)>0;return x`
|
|
1009
1024
|
<style>
|
|
1010
1025
|
${!this.unstyled&&M(this,gn)}
|
|
1011
1026
|
${this.styleOverride}
|
|
@@ -1046,4 +1061,4 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
1046
1061
|
@changed=${()=>this.requestUpdate()}
|
|
1047
1062
|
></eox-layercontrol-optional-list>
|
|
1048
1063
|
`)}
|
|
1049
|
-
`}}Wt=new WeakMap,fn=new WeakSet,Oo=function(
|
|
1064
|
+
`}}Wt=new WeakMap,fn=new WeakSet,Oo=function(e){la(e,this),this.dispatchEvent(new CustomEvent("layerchange",{detail:e.detail}))},gn=new WeakMap,L(Qn,"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}}),customElements.define("eox-layercontrol",Qn),O.EOxLayerControl=Qn,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});
|