@eox/layercontrol 0.18.2-dev.1722439716.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eox-layercontrol.js +550 -540
- package/dist/eox-layercontrol.umd.cjs +71 -71
- package/package.json +1 -1
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
(function(C,_){typeof exports=="object"&&typeof module<"u"?_(exports):typeof define=="function"&&define.amd?define(["exports"],_):(C=typeof globalThis<"u"?globalThis:C||self,_(C["eox-layercontrol"]={}))})(this,function(C){"use strict";var ya=Object.defineProperty;var
|
|
1
|
+
(function(C,_){typeof exports=="object"&&typeof module<"u"?_(exports):typeof define=="function"&&define.amd?define(["exports"],_):(C=typeof globalThis<"u"?globalThis:C||self,_(C["eox-layercontrol"]={}))})(this,function(C){"use strict";var ya=Object.defineProperty;var So=C=>{throw TypeError(C)};var ba=(C,_,H)=>_ in C?ya(C,_,{enumerable:!0,configurable:!0,writable:!0,value:H}):C[_]=H;var L=(C,_,H)=>ba(C,typeof _!="symbol"?_+"":_,H),Jn=(C,_,H)=>_.has(C)||So("Cannot "+H);var R=(C,_,H)=>(Jn(C,_,"read from private field"),H?H.call(C):_.get(C)),D=(C,_,H)=>_.has(C)?So("Cannot add the same private member more than once"):_ instanceof WeakSet?_.add(C):_.set(C,H),_e=(C,_,H,Kt)=>(Jn(C,_,"write to private field"),Kt?Kt.call(C,H):_.set(C,H),H),U=(C,_,H)=>(Jn(C,_,"access private method"),H);/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/var
|
|
5
|
+
*/var Eo,Gt,be,ve,Xe,$o,qe,Ye,We,_o,Ge,Je,we,Ke,Qe,tn,en,Ct,fn,Ao,nn,on,rn,sn,an,ln,un,Co,X,To,Po,Kn,Do,Ro,gn,dn,cn,Tt,Jt,Oo,Mo,hn;const _=globalThis,H=_.ShadowRoot&&(_.ShadyCSS===void 0||_.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Kt=Symbol(),Qn=new WeakMap;let No=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Kt)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(H&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Qn.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Qn.set(e,t))}return t}toString(){return this.cssText}};const Io=n=>new No(typeof n=="string"?n:n+"",void 0,Kt),Ho=(n,t)=>{if(H)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),o=_.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=e.cssText,n.appendChild(i)}},ti=H?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Io(e)})(n):n;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:
|
|
9
|
+
*/const{is:Bo,defineProperty:Vo,getOwnPropertyDescriptor:Lo,getOwnPropertyNames:Uo,getOwnPropertySymbols:ko,getPrototypeOf:Fo}=Object,xt=globalThis,ei=xt.trustedTypes,jo=ei?ei.emptyScript:"",mn=xt.reactiveElementPolyfillSupport,Qt=(n,t)=>n,yn={toAttribute(n,t){switch(t){case Boolean:n=n?jo: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}},ni=(n,t)=>!Bo(n,t),ii={attribute:!0,type:String,converter:yn,reflect:!1,hasChanged:ni};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),xt.litPropertyMetadata??(xt.litPropertyMetadata=new WeakMap);class kt 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=ii){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&&Vo(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:r}=Lo(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)??ii}static _$Ei(){if(this.hasOwnProperty(Qt("elementProperties")))return;const t=Fo(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Qt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Qt("properties"))){const e=this.properties,i=[...Uo(e),...ko(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(ti(o))}else t!==void 0&&e.push(ti(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 Ho(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:yn).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:yn;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??ni)(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){}}kt.elementStyles=[],kt.shadowRootOptions={mode:"open"},kt[Qt("elementProperties")]=new Map,kt[Qt("finalized")]=new Map,mn==null||mn({ReactiveElement:kt}),(xt.reactiveElementVersions??(xt.reactiveElementVersions=[])).push("2.0.4");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const te=globalThis,Ae=te.trustedTypes,oi=Ae?Ae.createPolicy("lit-html",{createHTML:
|
|
14
|
-
\f\r]`,ie=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ai=/-->/g,li=/>/g,
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ui=/'/g,di=/"/g,ci=/^(?:script|style|textarea|title)$/i,
|
|
13
|
+
*/const te=globalThis,Ae=te.trustedTypes,oi=Ae?Ae.createPolicy("lit-html",{createHTML:n=>n}):void 0,bn="$lit$",gt=`lit$${Math.random().toFixed(9).slice(2)}$`,vn="?"+gt,Zo=`<${vn}>`,Rt=document,ee=()=>Rt.createComment(""),ne=n=>n===null||typeof n!="object"&&typeof n!="function",ri=Array.isArray,si=n=>ri(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",wn=`[
|
|
14
|
+
\f\r]`,ie=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ai=/-->/g,li=/>/g,Ot=RegExp(`>|${wn}(?:([^\\s"'>=/]+)(${wn}*=${wn}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ui=/'/g,di=/"/g,ci=/^(?:script|style|textarea|title)$/i,zo=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),E=zo(1),at=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),hi=new WeakMap,Mt=Rt.createTreeWalker(Rt,129);function pi(n,t){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return oi!==void 0?oi.createHTML(t):t}const fi=(n,t)=>{const e=n.length-1,i=[];let o,r=t===2?"<svg>":"",s=ie;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===ie?c[1]==="!--"?s=ai:c[1]!==void 0?s=li:c[2]!==void 0?(ci.test(c[2])&&(o=RegExp("</"+c[2],"g")),s=Ot):c[3]!==void 0&&(s=Ot):s===Ot?c[0]===">"?(s=o??ie,d=-1):c[1]===void 0?d=-2:(d=s.lastIndex-c[2].length,u=c[1],s=c[3]===void 0?Ot:c[3]==='"'?di:ui):s===di||s===ui?s=Ot:s===ai||s===li?s=ie:(s=Ot,o=void 0);const f=s===Ot&&n[a+1].startsWith("/>")?" ":"";r+=s===ie?l+Zo:d>=0?(i.push(u),l.slice(0,d)+bn+l.slice(d)+gt+f):l+gt+(d===-2?a:f)}return[pi(n,r+(n[e]||"<?>")+(t===2?"</svg>":"")),i]};class oe{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]=fi(t,e);if(this.el=oe.createElement(u,i),Mt.currentNode=this.el.content,e===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(o=Mt.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const d of o.getAttributeNames())if(d.endsWith(bn)){const p=c[s++],f=o.getAttribute(d).split(gt),g=/([.?@])?(.*)/.exec(p);l.push({type:1,index:r,name:g[2],strings:f,ctor:g[1]==="."?mi:g[1]==="?"?yi:g[1]==="@"?bi:re}),o.removeAttribute(d)}else d.startsWith(gt)&&(l.push({type:6,index:r}),o.removeAttribute(d));if(ci.test(o.tagName)){const d=o.textContent.split(gt),p=d.length-1;if(p>0){o.textContent=Ae?Ae.emptyScript:"";for(let f=0;f<p;f++)o.append(d[f],ee()),Mt.nextNode(),l.push({type:2,index:++r});o.append(d[p],ee())}}}else if(o.nodeType===8)if(o.data===vn)l.push({type:2,index:r});else{let d=-1;for(;(d=o.data.indexOf(gt,d+1))!==-1;)l.push({type:7,index:r}),d+=gt.length-1}r++}}static createElement(t,e){const i=Rt.createElement("template");return i.innerHTML=t,i}}function Nt(n,t,e=n,i){var s,a;if(t===at)return t;let o=i!==void 0?(s=e._$Co)==null?void 0:s[i]:e._$Cl;const r=ne(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=Nt(n,o._$AS(n,t.values),o,i)),t}class gi{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)??Rt).importNode(e,!0);Mt.currentNode=o;let r=Mt.nextNode(),s=0,a=0,l=i[0];for(;l!==void 0;){if(s===l.index){let u;l.type===2?u=new Ft(r,r.nextSibling,this,t):l.type===1?u=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(u=new vi(r,this,t)),this._$AV.push(u),l=i[++a]}s!==(l==null?void 0:l.index)&&(r=Mt.nextNode(),s++)}return Mt.currentNode=Rt,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 Ft{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=Nt(this,t,e),ne(t)?t===T||t==null||t===""?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==at&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):si(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&&ne(this._$AH)?this._$AA.nextSibling.data=t:this.T(Rt.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=oe.createElement(pi(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 gi(o,this),a=s.u(this.options);s.p(e),this.T(a),this._$AH=s}}_$AC(t){let e=hi.get(t.strings);return e===void 0&&hi.set(t.strings,e=new oe(t)),e}k(t){ri(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 Ft(this.S(ee()),this.S(ee()),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 re{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=Nt(this,t,e,0),s=!ne(t)||t!==this._$AH&&t!==at,s&&(this._$AH=t);else{const a=t;let l,u;for(t=r[0],l=0;l<r.length-1;l++)u=Nt(this,a[i+l],e,l),u===at&&(u=this._$AH[l]),s||(s=!ne(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 mi extends re{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===T?void 0:t}}class yi extends re{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==T)}}class bi extends re{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){if((t=Nt(this,t,e,0)??T)===at)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 vi{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){Nt(this,t)}}const Xo={P:bn,A:gt,C:vn,M:1,L:fi,R:gi,D:si,V:Nt,I:Ft,H:re,N:yi,U:bi,B:mi,F:vi},En=te.litHtmlPolyfillSupport;En==null||En(oe,Ft),(te.litHtmlVersions??(te.litHtmlVersions=[])).push("3.1.4");const qo=(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 Ft(t.insertBefore(ee(),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 Q=class extends
|
|
19
|
+
*/let Q=class extends kt{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=qo(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 at}};Q._$litElement$=!0,Q.finalized=!0,(Eo=globalThis.litElementHydrateSupport)==null||Eo.call(globalThis,{LitElement:Q});const xn=globalThis.litElementPolyfillSupport;xn==null||xn({LitElement:Q}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.6");/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2021 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/function tt(
|
|
23
|
+
*/function tt(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 St={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Sn=
|
|
27
|
+
*/const St={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Sn=n=>(...t)=>({_$litDirective$:n,values:t});class $n{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:
|
|
31
|
+
*/const{I:Yo}=Xo,Wo=n=>n.strings===void 0,wi=()=>document.createComment(""),se=(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(wi(),o),a=i.insertBefore(wi(),o);e=new Yo(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},It=(n,t,e=n)=>(n._$AI(t,e),n),Go={},Ei=(n,t=Go)=>n._$AH=t,Jo=n=>n._$AH,_n=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 xi=(
|
|
35
|
+
*/const xi=(n,t,e)=>{const i=new Map;for(let o=t;o<=e;o++)i.set(n[o],o);return i},Ko=Sn(class extends $n{constructor(n){if(super(n),n.type!==St.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=Jo(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]=It(o[d],r[f]),d++,f++;else if(a[p]===s[g])l[g]=It(o[p],r[g]),p--,g--;else if(a[d]===s[g])l[g]=It(o[d],r[g]),se(n,l[g+1],o[d]),d++,g--;else if(a[p]===s[f])l[f]=It(o[p],r[f]),se(n,o[d],o[p]),p--,f++;else if(u===void 0&&(u=xi(s,f,g),c=xi(a,d,p)),u.has(a[d]))if(u.has(a[p])){const y=c.get(s[f]),M=y!==void 0?o[y]:null;if(M===null){const q=se(n,o[d]);It(q,r[f]),l[f]=q}else l[f]=It(M,r[f]),se(n,o[d],M),o[y]=null;f++}else _n(o[p]),p--;else _n(o[d]),d++;for(;f<=g;){const y=se(n,l[g+1]);It(y,r[f]),l[f++]=y}for(;d<=p;){const y=o[d++];y!==null&&_n(y)}return this.ut=s,Ei(n,l),at}});/**
|
|
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 x=
|
|
40
|
+
*/var x=n=>n!==void 0,Si=(n,t,e)=>t in n?n[t]:n[t]=e;const ae={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 Qo{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 $i(n,t,[]).join("")}function $i(n,t,e){if(n.nodeType===ae.CDATA_SECTION||n.nodeType===ae.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)$i(i,t,e)}return e}function tr(n,t,e,i){for(var o=er(t);o;o=nr(o)){var r=o.namespaceURI||null,s=n[r];if(x(s)){var a=s[o.localName];x(a)&&a.call(i,o,e)}}}function er(n){let t=n.firstElementChild||n.firstChild;for(;t&&t.nodeType!==ae.ELEMENT;)t=t.nextSibling;return t}function nr(n){let t=n.nextElementSibling||n.nextSibling;for(;t&&t.nodeType!==ae.ELEMENT;)t=t.nextSibling;return t}function j(n,t,e){return ir(n,t,e)}function ir(n,t,e){var i=x(e)?e:{},o,r;for(o=0,r=n.length;o<r;++o)i[n[o]]=t;return i}function _i(n,t){return function(e,i){var o=n.call(x(t)?t:this,e,i);if(x(o)){var r=i[i.length-1];r.push(o)}}}function k(n,t,e,i,o){return i.push(n),tr(t,e,i,o),i.pop()}function m(n,t,e){return function(i,o){let r=n.call(x(e)?e:this,i,o);if(x(r)){var s=o[o.length-1],a=x(t)?t:i.localName;s[a]=r}}}function et(n,t,e){return function(i,o){var r=n.call(x(e)?e:this,i,o);if(x(r)){var s=o[o.length-1],a=x(t)?t:i.localName,l=Si(s,a,[]);l.push(r)}}}const or=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function rr(n){return n.replace(or,"")}function Ht(n){const t=/^\s*(true|1)|(false|0)\s*$/.exec(n);if(t)return x(t[1])||!1}function jt(n){return mt(Ce(n,!1))}function mt(n){const t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(n);if(t)return parseFloat(t[1])}function An(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 rr(Ce(n,!1))}const sr="http://www.w3.org/1999/xlink";function Cn(n){return n.getAttributeNS(sr,"href")}function ar(n,t){return k({},Nr,n,t)}function Ai(n){return[mt(n.getAttribute("minx")),mt(n.getAttribute("miny")),mt(n.getAttribute("maxx")),mt(n.getAttribute("maxy"))]}function lr(n,t){const e=Ai(n),i=[mt(n.getAttribute("resx")),mt(n.getAttribute("resy"))];return{crs:n.getAttribute("CRS")||n.getAttribute("SRS"),extent:e,res:i}}function ur(n,t){const e=Ai(n);if(!(!x(e[0])||!x(e[1])||!x(e[2])||!x(e[3])))return e}function dr(n,t){const e=parseFloat(n.getAttribute("min")),i=parseFloat(n.getAttribute("max"));return{min:e,max:i}}function cr(n,t){const e=k({},Ir,n,t);if(!x(e))return;const i=e.westBoundLongitude,o=e.southBoundLatitude,r=e.eastBoundLongitude,s=e.northBoundLatitude;if(!(!x(i)||!x(o)||!x(r)||!x(s)))return[i,o,r,s]}function hr(n,t){return k({},Tr,n,t)}function pr(n,t){return k({},Pr,n,t)}function fr(n,t){return k({},Dr,n,t)}function gr(n,t){return k({},Rr,n,t)}function mr(n,t){return k({},Or,n,t)}function yr(n,t){return k([],Mr,n,t)}function br(n,t){const e=Ht(n.getAttribute("queryable"));return k({queryable:x(e)?e:!1},Pi,n,t)}function vr(n,t){var e=t[t.length-1];const i=k({},Pi,n,t);if(!x(i))return;let o=Ht(n.getAttribute("queryable"));x(o)||(o=e.queryable),i.queryable=x(o)?o:!1;let r=Te(n.getAttribute("cascaded"));x(r)||(r=e.cascaded),i.cascaded=r;let s=Ht(n.getAttribute("opaque"));x(s)||(s=e.opaque),i.opaque=x(s)?s:!1;let a=Ht(n.getAttribute("noSubsets"));x(a)||(a=e.noSubsets),i.noSubsets=x(a)?a:!1;let l=mt(n.getAttribute("fixedWidth"));x(l)||(l=e.fixedWidth),i.fixedWidth=l;let u=mt(n.getAttribute("fixedHeight"));x(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(x(y)){let M=Si(i,g,[]);M=M.concat(y),i[g]=M}}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(!x(y)){const M=e[g];i[g]=M}}return i}function wr(n,t){return{name:n.getAttribute("name"),units:n.getAttribute("units"),unitSymbol:n.getAttribute("unitSymbol"),default:n.getAttribute("default"),multipleValues:Ht(n.getAttribute("multipleValues")),nearestValue:Ht(n.getAttribute("nearestValue")),current:Ht(n.getAttribute("current")),values:$(n)}}function yt(n,t){return k({},kr,n,t)}function Er(n,t){return k({},Hr,n,t)}function xr(n,t){return k({},Vr,n,t)}function Sr(n,t){return k({},Lr,n,t)}function Tn(n,t){return k({},Br,n,t)}function Ci(n,t){var e=yt(n,t);if(x(e)){const i=[Te(n.getAttribute("width")),Te(n.getAttribute("height"))];return e.size=i,e}}function $r(n,t){var e=yt(n,t);if(x(e))return e.name=n.getAttribute("name"),e}function _r(n,t){var e=yt(n,t);if(x(e))return e.type=n.getAttribute("type"),e}function Ar(n,t){return k({},Ur,n,t)}function Ti(n,t){return k([],Fr,n,t)}const Z=[null,"http://www.opengis.net/wms"],Cr=j(Z,{Service:m(pr),Capability:m(hr)}),Tr=j(Z,{Request:m(Er),Exception:m(yr),Layer:m(br)}),Pr=j(Z,{Name:m($),Title:m($),Abstract:m($),KeywordList:m(Ti),OnlineResource:m(Cn),ContactInformation:m(fr),Fees:m($),AccessConstraints:m($),LayerLimit:m(An),MaxWidth:m(An),MaxHeight:m(An)}),Dr=j(Z,{ContactPersonPrimary:m(gr),ContactPosition:m($),ContactAddress:m(mr),ContactVoiceTelephone:m($),ContactFacsimileTelephone:m($),ContactElectronicMailAddress:m($)}),Rr=j(Z,{ContactPerson:m($),ContactOrganization:m($)}),Or=j(Z,{AddressType:m($),Address:m($),City:m($),StateOrProvince:m($),PostCode:m($),Country:m($)}),Mr=j(Z,{Format:_i($)}),Pi=j(Z,{Name:m($),Title:m($),Abstract:m($),KeywordList:m(Ti),CRS:et($),SRS:et($),EX_GeographicBoundingBox:m(cr),LatLonBoundingBox:m(ur),BoundingBox:et(lr),Dimension:et(wr),Attribution:m(ar),AuthorityURL:et($r),Identifier:et($),MetadataURL:et(_r),DataURL:et(yt),FeatureListURL:et(yt),Style:et(Ar),MinScaleDenominator:m(jt),MaxScaleDenominator:m(jt),ScaleHint:m(dr),Layer:et(vr)}),Nr=j(Z,{Title:m($),OnlineResource:m(Cn),LogoURL:m(Ci)}),Ir=j(Z,{westBoundLongitude:m(jt),eastBoundLongitude:m(jt),southBoundLatitude:m(jt),northBoundLatitude:m(jt)}),Hr=j(Z,{GetCapabilities:m(Tn),GetMap:m(Tn),GetFeatureInfo:m(Tn)}),Br=j(Z,{Format:et($),DCPType:et(xr)}),Vr=j(Z,{HTTP:m(Sr)}),Lr=j(Z,{Get:m(yt),Post:m(yt)}),Ur=j(Z,{Name:m($),Title:m($),Abstract:m($),LegendURL:et(Ci),StyleSheetURL:m(yt),StyleURL:m(yt)}),kr=j(Z,{Format:m($),OnlineResource:m(Cn)}),Fr=j(Z,{Keyword:_i($)});class jr{constructor(t,e){!e&&typeof window<"u"&&(e=window.DOMParser),this.version=void 0,this._parser=new Qo(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==ae.ELEMENT)return this.readFromNode(e);return null}readFromNode(t){return this.version=t.getAttribute("version"),k({version:this.version},Cr,t,[])||null}}async function Zr(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 jr(r).toJSON()}else throw new Error(`Error: ${o.status}`)}function Pn(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 zr(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=Pn(n);return!!(n&&e&&i)}function Di(n){return n.replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g,'"$2": ').replace(/,\s*}/g,"}").replace(/,\s*]/g,"]").replace(/\s*(\{|}|\[|\]|,)\s*/g,"$1").replaceAll('": //',"://")}function Xr(n){try{return JSON.parse(Di(n)),!!n}catch{return!1}}function qr(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 Ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ri(Object(n),!0).forEach(function(i){qr(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ri(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 qr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bt(){return bt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},bt.apply(this,arguments)}function Yr(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 Wr(e,t){if(e==null)return{};var n=Yr(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 Gr="1.15.2";function vt(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var wt=vt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),le=vt(/Edge/i),Oi=vt(/firefox/i),ue=vt(/safari/i)&&!vt(/chrome/i)&&!vt(/android/i),Ni=vt(/iP(ad|od|hone)/i),Mi=vt(/chrome/i)&&vt(/android/i),Ii={capture:!1,passive:!1};function A(e,t,n){e.addEventListener(t,n,!wt&&Ii)}function S(e,t,n){e.removeEventListener(t,n,!wt&&Ii)}function De(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 Jr(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function ut(e,t,n,i){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&De(e,t):De(e,t))||i&&e===n)return e;if(e===n)break}while(e=Jr(e))}return null}var Hi=/\s+/g;function it(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(Hi," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(Hi," ")}}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 jt(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 Bi(e,t,n){if(e){var i=e.getElementsByTagName(t),o=0,r=i.length;if(n)for(;o<r;o++)n(i[o],o);return i}return[]}function ft(){var e=document.scrollingElement;return e||document.documentElement}function 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!==ft()?(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,!wt))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=jt(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 Vi(e,t,n){for(var i=$t(e,!0),o=B(e)[t];i;){var r=B(i)[n],s=void 0;if(s=o>=r,!s)return i;if(i===ft())break;i=$t(i,!1)}return!1}function Zt(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)&&ut(s[r],n.draggable,e,!1)){if(o===t)return s[r];o++}r++}return null}function Dn(e,t){for(var n=e.lastElementChild;n&&(n===v.ghost||b(n,"display")==="none"||t&&!De(n,t));)n=n.previousElementSibling;return n||null}function lt(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==v.clone&&(!t||De(e,t))&&n++;return n}function Li(e){var t=0,n=0,i=ft();if(e)do{var o=jt(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 Kr(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 $t(e,t){if(!e||!e.getBoundingClientRect)return ft();var n=e,i=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=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 ft();if(i||t)return n;i=!0}}while(n=n.parentNode);return ft()}function Qr(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Rn(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 de;function Ui(e,t){return function(){if(!de){var n=arguments,i=this;n.length===1?e.call(i,n[0]):e.apply(i,n),de=setTimeout(function(){de=void 0},t)}}}function ts(){clearTimeout(de),de=void 0}function ki(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Fi(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 ji(e,t,n){var i={};return Array.from(e.children).forEach(function(o){var r,s,a,l;if(!(!ut(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 ot="Sortable"+new Date().getTime();function es(){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=pt({},e[e.length-1].rect);if(o.thisAnimationDuration){var s=jt(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(Kr(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=jt(u,!0);y&&(d.top-=y.f,d.left-=y.e),u.toRect=d,u.thisAnimationDuration&&Rn(p,d)&&!Rn(c,d)&&(g.top-d.top)/(g.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(l=is(g,p,f,o.options)),Rn(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=jt(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=ns(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 ns(e){return e.offsetWidth}function is(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 zt=[],On={initializeByDefault:!0},ce={mount:function(t){for(var n in On)On.hasOwnProperty(n)&&!(n in t)&&(t[n]=On[n]);zt.forEach(function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),zt.push(t)},pluginEvent:function(t,n,i){var o=this;this.eventCanceled=!1,i.cancel=function(){o.eventCanceled=!0};var r=t+"Global";zt.forEach(function(s){n[s.pluginName]&&(n[s.pluginName][r]&&n[s.pluginName][r](pt({sortable:n},i)),n.options[s.pluginName]&&n[s.pluginName][t]&&n[s.pluginName][t](pt({sortable:n},i)))})},initializePlugins:function(t,n,i,o){zt.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,bt(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 zt.forEach(function(o){typeof o.eventProperties=="function"&&bt(i,o.eventProperties.call(n[o.pluginName],t))}),i},modifyOption:function(t,n,i){var o;return zt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[n]=="function"&&(o=r.optionListeners[n].call(t[r.pluginName],i))}),o}};function os(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[ot],!!t){var y,N=t.options,q="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!wt&&!le?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 F=pt(pt({},g),ce.getEventProperties(i,t));for(var st in F)y[st]=F[st];n&&n.dispatchEvent(y),N[q]&&N[q].call(t,y)}}var rs=["evt"],nt=function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.evt,r=Wr(i,rs);ce.pluginEvent.bind(v)(t,n,pt({dragEl:h,parentEl:I,ghostEl:w,rootEl:O,nextEl:Ht,lastDownEl:Re,cloneEl:M,cloneHidden:_t,dragStarted:pe,putSortable:z,activeSortable:v.active,originalEvent:o,oldIndex:Xt,oldDraggableIndex:he,newIndex:rt,newDraggableIndex:At,hideGhostForTarget:Gi,unhideGhostForTarget:Ji,cloneNowHidden:function(){_t=!0},cloneNowShown:function(){_t=!1},dispatchSortableEvent:function(a){J({sortable:n,name:a,originalEvent:o})}},r))};function J(e){os(pt({putSortable:z,cloneEl:M,targetEl:h,rootEl:O,oldIndex:Xt,oldDraggableIndex:he,newIndex:rt,newDraggableIndex:At},e))}var h,I,w,O,Ht,Re,M,_t,Xt,rt,he,At,Oe,z,qt=!1,Ne=!1,Me=[],Bt,dt,Nn,Mn,Zi,zi,pe,Yt,fe,ge=!1,Ie=!1,He,Y,In=[],Hn=!1,Be=[],Ve=typeof document<"u",Le=Ni,Xi=le||wt?"cssFloat":"float",ss=Ve&&!Mi&&!Ni&&"draggable"in document.createElement("div"),qi=function(){if(Ve){if(wt)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Yi=function(t,n){var i=b(t),o=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),r=Zt(t,0,n),s=Zt(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[Xi]==="none"||s&&i[Xi]==="none"&&u+c>o)?"vertical":"horizontal"},as=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},ls=function(t,n){var i;return Me.some(function(o){var r=o[ot].options.emptyInsertThreshold;if(!(!r||Dn(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},Wi=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},Gi=function(){!qi&&w&&b(w,"display","none")},Ji=function(){!qi&&w&&b(w,"display","")};Ve&&!Mi&&document.addEventListener("click",function(e){if(Ne)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ne=!1,!1},!0);var Vt=function(t){if(h){t=t.touches?t.touches[0]:t;var n=ls(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[ot]._onDragOver(i)}}},us=function(t){h&&h.parentNode[ot]._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=bt({},t),e[ot]=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 Yi(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&&!ue,emptyInsertThreshold:5};ce.initializePlugins(this,e,n);for(var i in n)!(i in t)&&(t[i]=n[i]);Wi(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:ss,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?A(e,"pointerdown",this._onTapStart):(A(e,"mousedown",this._onTapStart),A(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(A(e,"dragover",this),A(e,"dragenter",this)),Me.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),bt(this,es())}v.prototype={constructor:v,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Yt=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(ys(i),!h&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||o.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&ue&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=ut(l,o.draggable,i,!1),!(l&&l.animated)&&Re!==l)){if(Xt=lt(l),he=lt(l,o.draggable),typeof c=="function"){if(c.call(this,t,l,this)){J({sortable:n,rootEl:u,name:"filter",targetEl:l,toEl:i,fromEl:i}),nt("filter",n,{evt:t}),r&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=ut(u,d.trim(),i,!1),d)return J({sortable:n,rootEl:d,name:"filter",targetEl:l,fromEl:i,toEl:i}),nt("filter",n,{evt:t}),!0}),c)){r&&t.cancelable&&t.preventDefault();return}o.handle&&!ut(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(O=r,h=i,I=h.parentNode,Ht=h.nextSibling,Re=i,Oe=s.group,v.dragged=h,Bt={target:h,clientX:(n||t).clientX,clientY:(n||t).clientY},Zi=Bt.clientX-u.left,zi=Bt.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,h.style["will-change"]="all",l=function(){if(nt("delayEnded",o,{evt:t}),v.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Oi&&o.nativeDraggable&&(h.draggable=!0),o._triggerDragStart(t,n),J({sortable:o,name:"choose",originalEvent:t}),it(h,s.chosenClass,!0)},s.ignore.split(",").forEach(function(c){Bi(h,c.trim(),Bn)}),A(a,"dragover",Vt),A(a,"mousemove",Vt),A(a,"touchmove",Vt),A(a,"mouseup",o._onDrop),A(a,"touchend",o._onDrop),A(a,"touchcancel",o._onDrop),Oi&&this.nativeDraggable&&(this.options.touchStartThreshold=4,h.draggable=!0),nt("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(le||wt))){if(v.eventCanceled){this._onDrop();return}A(a,"mouseup",o._disableDelayedDrag),A(a,"touchend",o._disableDelayedDrag),A(a,"touchcancel",o._disableDelayedDrag),A(a,"mousemove",o._delayedDragTouchMoveHandler),A(a,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&A(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&&Bn(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?A(document,"pointermove",this._onTouchMove):n?A(document,"touchmove",this._onTouchMove):A(document,"mousemove",this._onTouchMove):(A(h,"dragend",this),A(O,"dragstart",this._onDragStart));try{document.selection?ke(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(qt=!1,O&&h){nt("dragStarted",this,{evt:n}),this.nativeDraggable&&A(document,"dragover",us);var i=this.options;!t&&it(h,i.dragClass,!1),it(h,i.ghostClass,!0),v.active=this,t&&this._appendGhost(),J({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(dt){this._lastX=dt.clientX,this._lastY=dt.clientY,Gi();for(var t=document.elementFromPoint(dt.clientX,dt.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(dt.clientX,dt.clientY),t!==n);)n=t;if(h.parentNode[ot]._isOutsideThisEl(t),n)do{if(n[ot]){var i=void 0;if(i=n[ot]._onDragOver({clientX:dt.clientX,clientY:dt.clientY,target:t,rootEl:n}),i&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);Ji()}},_onTouchMove:function(t){if(Bt){var n=this.options,i=n.fallbackTolerance,o=n.fallbackOffset,r=t.touches?t.touches[0]:t,s=w&&jt(w,!0),a=w&&s&&s.a,l=w&&s&&s.d,u=Le&&Y&&Li(Y),c=(r.clientX-Bt.clientX+o.x)/(a||1)+(u?u[0]-In[0]:0)/(a||1),d=(r.clientY-Bt.clientY+o.y)/(l||1)+(u?u[1]-In[1]:0)/(l||1);if(!v.active&&!qt){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-(Nn||0),s.f+=d-(Mn||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),Nn=c,Mn=d,dt=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!w){var t=this.options.fallbackOnBody?document.body:O,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=ft()),n.top+=Y.scrollTop,n.left+=Y.scrollLeft):Y=ft(),In=Li(Y)}w=h.cloneNode(!0),it(w,i.ghostClass,!1),it(w,i.fallbackClass,!0),it(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",Zi/parseInt(w.style.width)*100+"% "+zi/parseInt(w.style.height)*100+"%")}},_onDragStart:function(t,n){var i=this,o=t.dataTransfer,r=i.options;if(nt("dragStart",this,{evt:t}),v.eventCanceled){this._onDrop();return}nt("setupClone",this),v.eventCanceled||(M=Fi(h),M.removeAttribute("id"),M.draggable=!1,M.style["will-change"]="",this._hideClone(),it(M,this.options.chosenClass,!1),v.clone=M),i.cloneId=ke(function(){nt("clone",i),!v.eventCanceled&&(i.options.removeCloneOnHide||O.insertBefore(M,h),i._hideClone(),J({sortable:i,name:"clone"}))}),!n&&it(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)),A(document,"drop",i),b(h,"transform","translateZ(0)")),qt=!0,i._dragStartId=ke(i._dragStarted.bind(i,n,t)),A(document,"selectstart",i),pe=!0,ue&&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=Oe===l,d=a.sort,p=z||u,f,g=this,y=!1;if(Hn)return;function N($e,ga){nt($e,g,pt({evt:t,isOwner:c,axis:f?"vertical":"horizontal",revert:s,dragRect:o,targetRect:r,canSort:d,fromSortable:p,target:i,completed:F,onMove:function(Eo,ma){return Ue(O,n,h,o,Eo,B(Eo),t,ma)},changed:st},ga))}function q(){N("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function F($e){return N("dragOverCompleted",{insertion:$e}),$e&&(c?u._hideClone():u._showClone(g),g!==p&&(it(h,z?z.options.ghostClass:u.options.ghostClass,!1),it(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(){N("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===h&&!h.animated||i===n&&!i.animated)&&(Yt=null),!a.dragoverBubble&&!t.rootEl&&i!==document&&(h.parentNode[ot]._isOutsideThisEl(t.target),!$e&&Vt(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),y=!0}function st(){rt=lt(h),At=lt(h,a.draggable),J({sortable:g,name:"change",toEl:n,newIndex:rt,newDraggableIndex:At,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),i=ut(i,a.draggable,n,!0),N("dragOver"),v.eventCanceled)return y;if(h.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||g._ignoreWhileAnimating===i)return F(!1);if(Ne=!1,u&&!a.disabled&&(c?d||(s=I!==O):z===this||(this.lastPutMode=Oe.checkPull(this,u,h,t))&&l.checkPut(this,u,h,t))){if(f=this._getDirection(t,i)==="vertical",o=B(h),N("dragOverValid"),v.eventCanceled)return y;if(s)return I=O,q(),this._hideClone(),N("revert"),v.eventCanceled||(Ht?O.insertBefore(h,Ht):O.appendChild(h)),F(!0);var K=Dn(n,a.draggable);if(!K||ps(t,f,this)&&!K.animated){if(K===h)return F(!1);if(K&&n===t.target&&(i=K),i&&(r=B(i)),Ue(O,n,h,o,i,r,t,!!i)!==!1)return q(),K&&K.nextSibling?n.insertBefore(h,K.nextSibling):n.appendChild(h),I=n,st(),F(!0)}else if(K&&hs(t,f,this)){var ct=Zt(n,0,a,!0);if(ct===h)return F(!1);if(i=ct,r=B(i),Ue(O,n,h,o,i,r,t,!1)!==!1)return q(),n.insertBefore(h,ct),I=n,st(),F(!0)}else if(i.parentNode===n){r=B(i);var P=0,W,ht=h.parentNode!==n,G=!as(h.animated&&h.toRect||o,i.animated&&i.toRect||r,f),Ee=f?"top":"left",Tt=Vi(i,"top","top")||Vi(h,"top","top"),xe=Tt?Tt.scrollTop:void 0;Yt!==i&&(W=r[Ee],ge=!1,Ie=!G&&a.invertSwap||ht),P=fs(t,i,r,f,G?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Ie,Yt===i);var Et;if(P!==0){var Lt=lt(h);do Lt-=P,Et=I.children[Lt];while(Et&&(b(Et,"display")==="none"||Et===w))}if(P===0||Et===i)return F(!1);Yt=i,fe=P;var Se=i.nextElementSibling,Pt=!1;Pt=P===1;var pn=Ue(O,n,h,o,i,r,t,Pt);if(pn!==!1)return(pn===1||pn===-1)&&(Pt=pn===1),Hn=!0,setTimeout(cs,30),q(),Pt&&!Se?n.appendChild(h):i.parentNode.insertBefore(h,Pt?Se:i),Tt&&ki(Tt,0,xe-Tt.scrollTop),I=h.parentNode,W!==void 0&&!Ie&&(He=Math.abs(W-B(i)[Ee])),st(),F(!0)}if(n.contains(h))return F(!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",Vt),S(document,"mousemove",Vt),S(document,"touchmove",Vt)},_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(rt=lt(h),At=lt(h,i.draggable),nt("drop",this,{evt:t}),I=h&&h.parentNode,rt=lt(h),At=lt(h,i.draggable),v.eventCanceled){this._nulling();return}qt=!1,Ie=!1,ge=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Vn(this.cloneId),Vn(this._dragStartId),this.nativeDraggable&&(S(document,"drop",this),S(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ue&&b(document.body,"user-select",""),b(h,"transform",""),t&&(pe&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),w&&w.parentNode&&w.parentNode.removeChild(w),(O===I||z&&z.lastPutMode!=="clone")&&M&&M.parentNode&&M.parentNode.removeChild(M),h&&(this.nativeDraggable&&S(h,"dragend",this),Bn(h),h.style["will-change"]="",pe&&!qt&&it(h,z?z.options.ghostClass:this.options.ghostClass,!1),it(h,this.options.chosenClass,!1),J({sortable:this,name:"unchoose",toEl:I,newIndex:null,newDraggableIndex:null,originalEvent:t}),O!==I?(rt>=0&&(J({rootEl:I,name:"add",toEl:I,fromEl:O,originalEvent:t}),J({sortable:this,name:"remove",toEl:I,originalEvent:t}),J({rootEl:I,name:"sort",toEl:I,fromEl:O,originalEvent:t}),J({sortable:this,name:"sort",toEl:I,originalEvent:t})),z&&z.save()):rt!==Xt&&rt>=0&&(J({sortable:this,name:"update",toEl:I,originalEvent:t}),J({sortable:this,name:"sort",toEl:I,originalEvent:t})),v.active&&((rt==null||rt===-1)&&(rt=Xt,At=he),J({sortable:this,name:"end",toEl:I,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){nt("nulling",this),O=h=I=w=Ht=M=Re=_t=Bt=dt=pe=rt=At=Xt=he=Yt=fe=z=Oe=v.dragged=v.ghost=v.clone=v.active=null,Be.forEach(function(t){t.checked=!0}),Be.length=Nn=Mn=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":h&&(this._onDragOver(t),ds(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,i=this.el.children,o=0,r=i.length,s=this.options;o<r;o++)n=i[o],ut(n,s.draggable,this.el,!1)&&t.push(n.getAttribute(s.dataIdAttr)||ms(n));return t},sort:function(t,n){var i={},o=this.el;this.toArray().forEach(function(r,s){var a=o.children[s];ut(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 ut(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=ce.modifyOption(this,t,n);typeof o<"u"?i[t]=o:i[t]=n,t==="group"&&Wi(i)},destroy:function(){nt("destroy",this);var t=this.el;t[ot]=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(nt("hideClone",this),v.eventCanceled)return;b(M,"display","none"),this.options.removeCloneOnHide&&M.parentNode&&M.parentNode.removeChild(M),_t=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(_t){if(nt("showClone",this),v.eventCanceled)return;h.parentNode==O&&!this.options.group.revertClone?O.insertBefore(M,h):Ht?O.insertBefore(M,Ht):O.appendChild(M),this.options.group.revertClone&&this.animate(h,M),b(M,"display",""),_t=!1}}};function ds(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[ot],c=u.options.onMove,d;return window.CustomEvent&&!wt&&!le?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 Bn(e){e.draggable=!1}function cs(){Hn=!1}function hs(e,t,n){var i=B(Zt(n.el,0,n.options,!0)),o=ji(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 ps(e,t,n){var i=B(Dn(n.el,n.options.draggable)),o=ji(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 fs(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(!ge&&(fe===1?l>c+u*r/2:l<d-u*r/2)&&(ge=!0),ge)p=!0;else if(fe===1?l<c+He:l>d-He)return-fe}else if(l>c+u*(1-o)/2&&l<d-u*(1-o)/2)return gs(t)}return p=p||s,p&&(l<c+u*r/2||l>d-u*r/2)?l>c+u/2?1:-1:0}function gs(e){return lt(h)<lt(e)?1:-1}function ms(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 ys(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 Vn(e){return clearTimeout(e)}Ve&&A(document,"touchmove",function(e){(v.active||qt)&&e.cancelable&&e.preventDefault()}),v.utils={on:A,off:S,css:b,find:Bi,is:function(t,n){return!!ut(t,n,t,!1)},extend:Qr,throttle:Ui,closest:ut,toggleClass:it,clone:Fi,index:lt,nextTick:ke,cancelNextTick:Vn,detectDirection:Yi,getChild:Zt},v.get=function(e){return e[ot]},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=pt(pt({},v.utils),i.utils)),ce.mount(i)})},v.create=function(e,t){return new v(e,t)},v.version=Gr;var V=[],me,Ln,Un=!1,kn,Fn,Fe,ye;function bs(){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?A(document,"dragover",this._handleAutoScroll):this.options.supportPointer?A(document,"pointermove",this._handleFallbackAutoScroll):i.touches?A(document,"touchmove",this._handleFallbackAutoScroll):A(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)),Ki(),je(),ts()},nulling:function(){Fe=Ln=me=Un=ye=kn=Fn=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||le||wt||ue){jn(n,this.options,a,i);var l=$t(a,!0);Un&&(!ye||r!==kn||s!==Fn)&&(ye&&Ki(),ye=setInterval(function(){var u=$t(document.elementFromPoint(r,s),!0);u!==l&&(l=u,je()),jn(n,o.options,u,i)},10),kn=r,Fn=s)}else{if(!this.options.bubbleScroll||$t(a,!0)===ft()){je();return}jn(n,this.options,$t(a,!1),!1)}}},bt(e,{pluginName:"scroll",initializeByDefault:!0})}function je(){V.forEach(function(e){clearInterval(e.pid)}),V=[]}function Ki(){clearInterval(ye)}var jn=Ui(function(e,t,n,i){if(t.scroll){var o=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,a=t.scrollSpeed,l=ft(),u=!1,c;Ln!==n&&(Ln=n,je(),me=t.scroll,c=t.scrollFn,me===!0&&(me=$t(n,!0)));var d=0,p=me;do{var f=p,g=B(f),y=g.top,N=g.bottom,q=g.left,F=g.right,st=g.width,K=g.height,ct=void 0,P=void 0,W=f.scrollWidth,ht=f.scrollHeight,G=b(f),Ee=f.scrollLeft,Tt=f.scrollTop;f===l?(ct=st<W&&(G.overflowX==="auto"||G.overflowX==="scroll"||G.overflowX==="visible"),P=K<ht&&(G.overflowY==="auto"||G.overflowY==="scroll"||G.overflowY==="visible")):(ct=st<W&&(G.overflowX==="auto"||G.overflowX==="scroll"),P=K<ht&&(G.overflowY==="auto"||G.overflowY==="scroll"));var xe=ct&&(Math.abs(F-o)<=s&&Ee+st<W)-(Math.abs(q-o)<=s&&!!Ee),Et=P&&(Math.abs(N-r)<=s&&Tt+K<ht)-(Math.abs(y-r)<=s&&!!Tt);if(!V[d])for(var Lt=0;Lt<=d;Lt++)V[Lt]||(V[Lt]={});(V[d].vx!=xe||V[d].vy!=Et||V[d].el!==f)&&(V[d].el=f,V[d].vx=xe,V[d].vy=Et,clearInterval(V[d].pid),(xe!=0||Et!=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,Pt=V[this.layer].vx?V[this.layer].vx*a:0;typeof c=="function"&&c.call(v.dragged.parentNode[ot],Pt,Se,e,Fe,V[this.layer].el)!=="continue"||ki(V[this.layer].el,Pt,Se)}).bind({layer:d}),24))),d++}while(t.bubbleScroll&&p!==l&&(p=$t(p,!1)));Un=u}},30),Qi=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 Zn(){}Zn.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=Zt(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:Qi},bt(Zn,{pluginName:"revertOnSpill"});function zn(){}zn.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:Qi},bt(zn,{pluginName:"removeOnSpill"}),v.mount(new bs),v.mount(zn,Zn);const vs=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},ws=(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 Es(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=vs(s),onMove:s=>{r=s.related},onEnd:s=>ws(s,i,o,t,n,r)})}function xs(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 Xn(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 Ss(e,t,n){if(!e||!t)return!1;if(!to(e,n))return!0;const i=e.get("minZoom"),o=e.get("maxZoom"),r=t.getView().getZoom();return r>i&&r<o}function to(e,t){const n=e.get("minZoom"),i=e.get("maxZoom");return!!(t&&(n!==-1/0||i!==1/0))}function $s(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 eo(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=eo(e[o].properties,t);Object.keys(s).length>0&&(n[o]=s)}}return n}function _s(e,t){var r,s,a,l,u;if(!t)return null;let n={},i="updateStyleVariables"in e?(r=e.style_)==null?void 0:r.variables:(s=t.style)==null?void 0:s.variables;if((t.type==="style"||t.style)&&i)n=i;else if((l=(a=e.getSource())==null?void 0:a.getTileUrlFunction)!=null&&l.call(a)){const c=new URL(e.getSource().getTileUrlFunction()([0,0,0]));n=Object.fromEntries(c.searchParams.entries())}else return null;const o=eo(((u=t.schema)==null?void 0:u.properties)||t.schema,n);return Object.keys(o).length?o:null}const As=(e,t)=>e==null?void 0:e.filter(n=>["remove","sort"].filter(i=>t!=null&&t.get("layerControlDisable")?i!=="sort":!0).includes(n)),Cs=(e,t)=>e==null?void 0:e.filter(n=>{let i=!0;return["remove","sort"].includes(n)&&(i=!1),n==="info"&&(i=t.get("description")),n==="config"&&(i=t.get("layerConfig")),n==="datetime"&&(i=t.get("layerDatetime")),i}),Ts=(e,t)=>E`
|
|
46
|
-
<button slot="${
|
|
47
|
-
`,
|
|
45
|
+
*/function Ri(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 pt(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Ri(Object(e),!0).forEach(function(i){Yr(n,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Ri(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 Yr(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function bt(){return bt=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},bt.apply(this,arguments)}function Wr(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 Gr(n,t){if(n==null)return{};var e=Wr(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 Jr="1.15.2";function vt(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var wt=vt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),le=vt(/Edge/i),Oi=vt(/firefox/i),ue=vt(/safari/i)&&!vt(/chrome/i)&&!vt(/android/i),Mi=vt(/iP(ad|od|hone)/i),Ni=vt(/chrome/i)&&vt(/android/i),Ii={capture:!1,passive:!1};function A(n,t,e){n.addEventListener(t,e,!wt&&Ii)}function S(n,t,e){n.removeEventListener(t,e,!wt&&Ii)}function De(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 Kr(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function ut(n,t,e,i){if(n){e=e||document;do{if(t!=null&&(t[0]===">"?n.parentNode===e&&De(n,t):De(n,t))||i&&n===e)return n;if(n===e)break}while(n=Kr(n))}return null}var Hi=/\s+/g;function it(n,t,e){if(n&&t)if(n.classList)n.classList[e?"add":"remove"](t);else{var i=(" "+n.className+" ").replace(Hi," ").replace(" "+t+" "," ");n.className=(i+(e?" "+t:"")).replace(Hi," ")}}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 Zt(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 Bi(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 ft(){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!==ft()?(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,!wt))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=Zt(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 Vi(n,t,e){for(var i=$t(n,!0),o=B(n)[t];i;){var r=B(i)[e],s=void 0;if(s=o>=r,!s)return i;if(i===ft())break;i=$t(i,!1)}return!1}function zt(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)&&ut(s[r],e.draggable,n,!1)){if(o===t)return s[r];o++}r++}return null}function Dn(n,t){for(var e=n.lastElementChild;e&&(e===v.ghost||b(e,"display")==="none"||t&&!De(e,t));)e=e.previousElementSibling;return e||null}function lt(n,t){var e=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==v.clone&&(!t||De(n,t))&&e++;return e}function Li(n){var t=0,e=0,i=ft();if(n)do{var o=Zt(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 Qr(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 $t(n,t){if(!n||!n.getBoundingClientRect)return ft();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 ft();if(i||t)return e;i=!0}}while(e=e.parentNode);return ft()}function ts(n,t){if(n&&t)for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function Rn(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 de;function Ui(n,t){return function(){if(!de){var e=arguments,i=this;e.length===1?n.call(i,e[0]):n.apply(i,e),de=setTimeout(function(){de=void 0},t)}}}function es(){clearTimeout(de),de=void 0}function ki(n,t,e){n.scrollLeft+=t,n.scrollTop+=e}function Fi(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 ji(n,t,e){var i={};return Array.from(n.children).forEach(function(o){var r,s,a,l;if(!(!ut(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 ot="Sortable"+new Date().getTime();function ns(){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=pt({},n[n.length-1].rect);if(o.thisAnimationDuration){var s=Zt(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(Qr(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=Zt(u,!0);y&&(d.top-=y.f,d.left-=y.e),u.toRect=d,u.thisAnimationDuration&&Rn(p,d)&&!Rn(c,d)&&(g.top-d.top)/(g.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(l=os(g,p,f,o.options)),Rn(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=Zt(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=is(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 is(n){return n.offsetWidth}function os(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 Xt=[],On={initializeByDefault:!0},ce={mount:function(t){for(var e in On)On.hasOwnProperty(e)&&!(e in t)&&(t[e]=On[e]);Xt.forEach(function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Xt.push(t)},pluginEvent:function(t,e,i){var o=this;this.eventCanceled=!1,i.cancel=function(){o.eventCanceled=!0};var r=t+"Global";Xt.forEach(function(s){e[s.pluginName]&&(e[s.pluginName][r]&&e[s.pluginName][r](pt({sortable:e},i)),e.options[s.pluginName]&&e[s.pluginName][t]&&e[s.pluginName][t](pt({sortable:e},i)))})},initializePlugins:function(t,e,i,o){Xt.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,bt(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 Xt.forEach(function(o){typeof o.eventProperties=="function"&&bt(i,o.eventProperties.call(e[o.pluginName],t))}),i},modifyOption:function(t,e,i){var o;return Xt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[e]=="function"&&(o=r.optionListeners[e].call(t[r.pluginName],i))}),o}};function rs(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[ot],!!t){var y,M=t.options,q="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!wt&&!le?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 F=pt(pt({},g),ce.getEventProperties(i,t));for(var st in F)y[st]=F[st];e&&e.dispatchEvent(y),M[q]&&M[q].call(t,y)}}var ss=["evt"],nt=function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.evt,r=Gr(i,ss);ce.pluginEvent.bind(v)(t,e,pt({dragEl:h,parentEl:I,ghostEl:w,rootEl:O,nextEl:Bt,lastDownEl:Re,cloneEl:N,cloneHidden:_t,dragStarted:pe,putSortable:z,activeSortable:v.active,originalEvent:o,oldIndex:qt,oldDraggableIndex:he,newIndex:rt,newDraggableIndex:At,hideGhostForTarget:Gi,unhideGhostForTarget:Ji,cloneNowHidden:function(){_t=!0},cloneNowShown:function(){_t=!1},dispatchSortableEvent:function(a){J({sortable:e,name:a,originalEvent:o})}},r))};function J(n){rs(pt({putSortable:z,cloneEl:N,targetEl:h,rootEl:O,oldIndex:qt,oldDraggableIndex:he,newIndex:rt,newDraggableIndex:At},n))}var h,I,w,O,Bt,Re,N,_t,qt,rt,he,At,Oe,z,Yt=!1,Me=!1,Ne=[],Vt,dt,Mn,Nn,Zi,zi,pe,Wt,fe,ge=!1,Ie=!1,He,Y,In=[],Hn=!1,Be=[],Ve=typeof document<"u",Le=Mi,Xi=le||wt?"cssFloat":"float",as=Ve&&!Ni&&!Mi&&"draggable"in document.createElement("div"),qi=function(){if(Ve){if(wt)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),Yi=function(t,e){var i=b(t),o=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),r=zt(t,0,e),s=zt(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[Xi]==="none"||s&&i[Xi]==="none"&&u+c>o)?"vertical":"horizontal"},ls=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},us=function(t,e){var i;return Ne.some(function(o){var r=o[ot].options.emptyInsertThreshold;if(!(!r||Dn(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},Wi=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},Gi=function(){!qi&&w&&b(w,"display","none")},Ji=function(){!qi&&w&&b(w,"display","")};Ve&&!Ni&&document.addEventListener("click",function(n){if(Me)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),Me=!1,!1},!0);var Lt=function(t){if(h){t=t.touches?t.touches[0]:t;var e=us(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[ot]._onDragOver(i)}}},ds=function(t){h&&h.parentNode[ot]._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=bt({},t),n[ot]=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 Yi(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&&!ue,emptyInsertThreshold:5};ce.initializePlugins(this,n,e);for(var i in e)!(i in t)&&(t[i]=e[i]);Wi(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:as,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?A(n,"pointerdown",this._onTapStart):(A(n,"mousedown",this._onTapStart),A(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(A(n,"dragover",this),A(n,"dragenter",this)),Ne.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),bt(this,ns())}v.prototype={constructor:v,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Wt=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(bs(i),!h&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||o.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&ue&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=ut(l,o.draggable,i,!1),!(l&&l.animated)&&Re!==l)){if(qt=lt(l),he=lt(l,o.draggable),typeof c=="function"){if(c.call(this,t,l,this)){J({sortable:e,rootEl:u,name:"filter",targetEl:l,toEl:i,fromEl:i}),nt("filter",e,{evt:t}),r&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=ut(u,d.trim(),i,!1),d)return J({sortable:e,rootEl:d,name:"filter",targetEl:l,fromEl:i,toEl:i}),nt("filter",e,{evt:t}),!0}),c)){r&&t.cancelable&&t.preventDefault();return}o.handle&&!ut(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(O=r,h=i,I=h.parentNode,Bt=h.nextSibling,Re=i,Oe=s.group,v.dragged=h,Vt={target:h,clientX:(e||t).clientX,clientY:(e||t).clientY},Zi=Vt.clientX-u.left,zi=Vt.clientY-u.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,h.style["will-change"]="all",l=function(){if(nt("delayEnded",o,{evt:t}),v.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Oi&&o.nativeDraggable&&(h.draggable=!0),o._triggerDragStart(t,e),J({sortable:o,name:"choose",originalEvent:t}),it(h,s.chosenClass,!0)},s.ignore.split(",").forEach(function(c){Bi(h,c.trim(),Bn)}),A(a,"dragover",Lt),A(a,"mousemove",Lt),A(a,"touchmove",Lt),A(a,"mouseup",o._onDrop),A(a,"touchend",o._onDrop),A(a,"touchcancel",o._onDrop),Oi&&this.nativeDraggable&&(this.options.touchStartThreshold=4,h.draggable=!0),nt("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(le||wt))){if(v.eventCanceled){this._onDrop();return}A(a,"mouseup",o._disableDelayedDrag),A(a,"touchend",o._disableDelayedDrag),A(a,"touchcancel",o._disableDelayedDrag),A(a,"mousemove",o._delayedDragTouchMoveHandler),A(a,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&A(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&&Bn(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?A(document,"pointermove",this._onTouchMove):e?A(document,"touchmove",this._onTouchMove):A(document,"mousemove",this._onTouchMove):(A(h,"dragend",this),A(O,"dragstart",this._onDragStart));try{document.selection?ke(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(Yt=!1,O&&h){nt("dragStarted",this,{evt:e}),this.nativeDraggable&&A(document,"dragover",ds);var i=this.options;!t&&it(h,i.dragClass,!1),it(h,i.ghostClass,!0),v.active=this,t&&this._appendGhost(),J({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(dt){this._lastX=dt.clientX,this._lastY=dt.clientY,Gi();for(var t=document.elementFromPoint(dt.clientX,dt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(dt.clientX,dt.clientY),t!==e);)e=t;if(h.parentNode[ot]._isOutsideThisEl(t),e)do{if(e[ot]){var i=void 0;if(i=e[ot]._onDragOver({clientX:dt.clientX,clientY:dt.clientY,target:t,rootEl:e}),i&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Ji()}},_onTouchMove:function(t){if(Vt){var e=this.options,i=e.fallbackTolerance,o=e.fallbackOffset,r=t.touches?t.touches[0]:t,s=w&&Zt(w,!0),a=w&&s&&s.a,l=w&&s&&s.d,u=Le&&Y&&Li(Y),c=(r.clientX-Vt.clientX+o.x)/(a||1)+(u?u[0]-In[0]:0)/(a||1),d=(r.clientY-Vt.clientY+o.y)/(l||1)+(u?u[1]-In[1]:0)/(l||1);if(!v.active&&!Yt){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-(Mn||0),s.f+=d-(Nn||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),Mn=c,Nn=d,dt=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!w){var t=this.options.fallbackOnBody?document.body:O,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=ft()),e.top+=Y.scrollTop,e.left+=Y.scrollLeft):Y=ft(),In=Li(Y)}w=h.cloneNode(!0),it(w,i.ghostClass,!1),it(w,i.fallbackClass,!0),it(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",Zi/parseInt(w.style.width)*100+"% "+zi/parseInt(w.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this,o=t.dataTransfer,r=i.options;if(nt("dragStart",this,{evt:t}),v.eventCanceled){this._onDrop();return}nt("setupClone",this),v.eventCanceled||(N=Fi(h),N.removeAttribute("id"),N.draggable=!1,N.style["will-change"]="",this._hideClone(),it(N,this.options.chosenClass,!1),v.clone=N),i.cloneId=ke(function(){nt("clone",i),!v.eventCanceled&&(i.options.removeCloneOnHide||O.insertBefore(N,h),i._hideClone(),J({sortable:i,name:"clone"}))}),!e&&it(h,r.dragClass,!0),e?(Me=!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)),A(document,"drop",i),b(h,"transform","translateZ(0)")),Yt=!0,i._dragStartId=ke(i._dragStarted.bind(i,e,t)),A(document,"selectstart",i),pe=!0,ue&&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=Oe===l,d=a.sort,p=z||u,f,g=this,y=!1;if(Hn)return;function M($e,ga){nt($e,g,pt({evt:t,isOwner:c,axis:f?"vertical":"horizontal",revert:s,dragRect:o,targetRect:r,canSort:d,fromSortable:p,target:i,completed:F,onMove:function(xo,ma){return Ue(O,e,h,o,xo,B(xo),t,ma)},changed:st},ga))}function q(){M("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function F($e){return M("dragOverCompleted",{insertion:$e}),$e&&(c?u._hideClone():u._showClone(g),g!==p&&(it(h,z?z.options.ghostClass:u.options.ghostClass,!1),it(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(){M("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===h&&!h.animated||i===e&&!i.animated)&&(Wt=null),!a.dragoverBubble&&!t.rootEl&&i!==document&&(h.parentNode[ot]._isOutsideThisEl(t.target),!$e&&Lt(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),y=!0}function st(){rt=lt(h),At=lt(h,a.draggable),J({sortable:g,name:"change",toEl:e,newIndex:rt,newDraggableIndex:At,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),i=ut(i,a.draggable,e,!0),M("dragOver"),v.eventCanceled)return y;if(h.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||g._ignoreWhileAnimating===i)return F(!1);if(Me=!1,u&&!a.disabled&&(c?d||(s=I!==O):z===this||(this.lastPutMode=Oe.checkPull(this,u,h,t))&&l.checkPut(this,u,h,t))){if(f=this._getDirection(t,i)==="vertical",o=B(h),M("dragOverValid"),v.eventCanceled)return y;if(s)return I=O,q(),this._hideClone(),M("revert"),v.eventCanceled||(Bt?O.insertBefore(h,Bt):O.appendChild(h)),F(!0);var K=Dn(e,a.draggable);if(!K||fs(t,f,this)&&!K.animated){if(K===h)return F(!1);if(K&&e===t.target&&(i=K),i&&(r=B(i)),Ue(O,e,h,o,i,r,t,!!i)!==!1)return q(),K&&K.nextSibling?e.insertBefore(h,K.nextSibling):e.appendChild(h),I=e,st(),F(!0)}else if(K&&ps(t,f,this)){var ct=zt(e,0,a,!0);if(ct===h)return F(!1);if(i=ct,r=B(i),Ue(O,e,h,o,i,r,t,!1)!==!1)return q(),e.insertBefore(h,ct),I=e,st(),F(!0)}else if(i.parentNode===e){r=B(i);var P=0,W,ht=h.parentNode!==e,G=!ls(h.animated&&h.toRect||o,i.animated&&i.toRect||r,f),Ee=f?"top":"left",Pt=Vi(i,"top","top")||Vi(h,"top","top"),xe=Pt?Pt.scrollTop:void 0;Wt!==i&&(W=r[Ee],ge=!1,Ie=!G&&a.invertSwap||ht),P=gs(t,i,r,f,G?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Ie,Wt===i);var Et;if(P!==0){var Ut=lt(h);do Ut-=P,Et=I.children[Ut];while(Et&&(b(Et,"display")==="none"||Et===w))}if(P===0||Et===i)return F(!1);Wt=i,fe=P;var Se=i.nextElementSibling,Dt=!1;Dt=P===1;var pn=Ue(O,e,h,o,i,r,t,Dt);if(pn!==!1)return(pn===1||pn===-1)&&(Dt=pn===1),Hn=!0,setTimeout(hs,30),q(),Dt&&!Se?e.appendChild(h):i.parentNode.insertBefore(h,Dt?Se:i),Pt&&ki(Pt,0,xe-Pt.scrollTop),I=h.parentNode,W!==void 0&&!Ie&&(He=Math.abs(W-B(i)[Ee])),st(),F(!0)}if(e.contains(h))return F(!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",Lt),S(document,"mousemove",Lt),S(document,"touchmove",Lt)},_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(rt=lt(h),At=lt(h,i.draggable),nt("drop",this,{evt:t}),I=h&&h.parentNode,rt=lt(h),At=lt(h,i.draggable),v.eventCanceled){this._nulling();return}Yt=!1,Ie=!1,ge=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Vn(this.cloneId),Vn(this._dragStartId),this.nativeDraggable&&(S(document,"drop",this),S(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ue&&b(document.body,"user-select",""),b(h,"transform",""),t&&(pe&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),w&&w.parentNode&&w.parentNode.removeChild(w),(O===I||z&&z.lastPutMode!=="clone")&&N&&N.parentNode&&N.parentNode.removeChild(N),h&&(this.nativeDraggable&&S(h,"dragend",this),Bn(h),h.style["will-change"]="",pe&&!Yt&&it(h,z?z.options.ghostClass:this.options.ghostClass,!1),it(h,this.options.chosenClass,!1),J({sortable:this,name:"unchoose",toEl:I,newIndex:null,newDraggableIndex:null,originalEvent:t}),O!==I?(rt>=0&&(J({rootEl:I,name:"add",toEl:I,fromEl:O,originalEvent:t}),J({sortable:this,name:"remove",toEl:I,originalEvent:t}),J({rootEl:I,name:"sort",toEl:I,fromEl:O,originalEvent:t}),J({sortable:this,name:"sort",toEl:I,originalEvent:t})),z&&z.save()):rt!==qt&&rt>=0&&(J({sortable:this,name:"update",toEl:I,originalEvent:t}),J({sortable:this,name:"sort",toEl:I,originalEvent:t})),v.active&&((rt==null||rt===-1)&&(rt=qt,At=he),J({sortable:this,name:"end",toEl:I,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){nt("nulling",this),O=h=I=w=Bt=N=Re=_t=Vt=dt=pe=rt=At=qt=he=Wt=fe=z=Oe=v.dragged=v.ghost=v.clone=v.active=null,Be.forEach(function(t){t.checked=!0}),Be.length=Mn=Nn=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":h&&(this._onDragOver(t),cs(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],ut(e,s.draggable,this.el,!1)&&t.push(e.getAttribute(s.dataIdAttr)||ys(e));return t},sort:function(t,e){var i={},o=this.el;this.toArray().forEach(function(r,s){var a=o.children[s];ut(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 ut(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=ce.modifyOption(this,t,e);typeof o<"u"?i[t]=o:i[t]=e,t==="group"&&Wi(i)},destroy:function(){nt("destroy",this);var t=this.el;t[ot]=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(),Ne.splice(Ne.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!_t){if(nt("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(nt("showClone",this),v.eventCanceled)return;h.parentNode==O&&!this.options.group.revertClone?O.insertBefore(N,h):Bt?O.insertBefore(N,Bt):O.appendChild(N),this.options.group.revertClone&&this.animate(h,N),b(N,"display",""),_t=!1}}};function cs(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function Ue(n,t,e,i,o,r,s,a){var l,u=n[ot],c=u.options.onMove,d;return window.CustomEvent&&!wt&&!le?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 Bn(n){n.draggable=!1}function hs(){Hn=!1}function ps(n,t,e){var i=B(zt(e.el,0,e.options,!0)),o=ji(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 fs(n,t,e){var i=B(Dn(e.el,e.options.draggable)),o=ji(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 gs(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(!ge&&(fe===1?l>c+u*r/2:l<d-u*r/2)&&(ge=!0),ge)p=!0;else if(fe===1?l<c+He:l>d-He)return-fe}else if(l>c+u*(1-o)/2&&l<d-u*(1-o)/2)return ms(t)}return p=p||s,p&&(l<c+u*r/2||l>d-u*r/2)?l>c+u/2?1:-1:0}function ms(n){return lt(h)<lt(n)?1:-1}function ys(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 bs(n){Be.length=0;for(var t=n.getElementsByTagName("input"),e=t.length;e--;){var i=t[e];i.checked&&Be.push(i)}}function ke(n){return setTimeout(n,0)}function Vn(n){return clearTimeout(n)}Ve&&A(document,"touchmove",function(n){(v.active||Yt)&&n.cancelable&&n.preventDefault()}),v.utils={on:A,off:S,css:b,find:Bi,is:function(t,e){return!!ut(t,e,t,!1)},extend:ts,throttle:Ui,closest:ut,toggleClass:it,clone:Fi,index:lt,nextTick:ke,cancelNextTick:Vn,detectDirection:Yi,getChild:zt},v.get=function(n){return n[ot]},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=pt(pt({},v.utils),i.utils)),ce.mount(i)})},v.create=function(n,t){return new v(n,t)},v.version=Jr;var V=[],me,Ln,Un=!1,kn,Fn,Fe,ye;function vs(){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?A(document,"dragover",this._handleAutoScroll):this.options.supportPointer?A(document,"pointermove",this._handleFallbackAutoScroll):i.touches?A(document,"touchmove",this._handleFallbackAutoScroll):A(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)),Ki(),je(),es()},nulling:function(){Fe=Ln=me=Un=ye=kn=Fn=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||le||wt||ue){jn(e,this.options,a,i);var l=$t(a,!0);Un&&(!ye||r!==kn||s!==Fn)&&(ye&&Ki(),ye=setInterval(function(){var u=$t(document.elementFromPoint(r,s),!0);u!==l&&(l=u,je()),jn(e,o.options,u,i)},10),kn=r,Fn=s)}else{if(!this.options.bubbleScroll||$t(a,!0)===ft()){je();return}jn(e,this.options,$t(a,!1),!1)}}},bt(n,{pluginName:"scroll",initializeByDefault:!0})}function je(){V.forEach(function(n){clearInterval(n.pid)}),V=[]}function Ki(){clearInterval(ye)}var jn=Ui(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=ft(),u=!1,c;Ln!==e&&(Ln=e,je(),me=t.scroll,c=t.scrollFn,me===!0&&(me=$t(e,!0)));var d=0,p=me;do{var f=p,g=B(f),y=g.top,M=g.bottom,q=g.left,F=g.right,st=g.width,K=g.height,ct=void 0,P=void 0,W=f.scrollWidth,ht=f.scrollHeight,G=b(f),Ee=f.scrollLeft,Pt=f.scrollTop;f===l?(ct=st<W&&(G.overflowX==="auto"||G.overflowX==="scroll"||G.overflowX==="visible"),P=K<ht&&(G.overflowY==="auto"||G.overflowY==="scroll"||G.overflowY==="visible")):(ct=st<W&&(G.overflowX==="auto"||G.overflowX==="scroll"),P=K<ht&&(G.overflowY==="auto"||G.overflowY==="scroll"));var xe=ct&&(Math.abs(F-o)<=s&&Ee+st<W)-(Math.abs(q-o)<=s&&!!Ee),Et=P&&(Math.abs(M-r)<=s&&Pt+K<ht)-(Math.abs(y-r)<=s&&!!Pt);if(!V[d])for(var Ut=0;Ut<=d;Ut++)V[Ut]||(V[Ut]={});(V[d].vx!=xe||V[d].vy!=Et||V[d].el!==f)&&(V[d].el=f,V[d].vx=xe,V[d].vy=Et,clearInterval(V[d].pid),(xe!=0||Et!=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,Dt=V[this.layer].vx?V[this.layer].vx*a:0;typeof c=="function"&&c.call(v.dragged.parentNode[ot],Dt,Se,n,Fe,V[this.layer].el)!=="continue"||ki(V[this.layer].el,Dt,Se)}).bind({layer:d}),24))),d++}while(t.bubbleScroll&&p!==l&&(p=$t(p,!1)));Un=u}},30),Qi=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 Zn(){}Zn.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=zt(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:Qi},bt(Zn,{pluginName:"revertOnSpill"});function zn(){}zn.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:Qi},bt(zn,{pluginName:"removeOnSpill"}),v.mount(new vs),v.mount(zn,Zn);const ws=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},Es=(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 xs(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=ws(s),onMove:s=>{r=s.related},onEnd:s=>Es(s,i,o,t,e,r)})}function Ss(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 Xn(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 $s(n,t,e){if(!n||!t)return!1;if(!to(n,e))return!0;const i=n.get("minZoom"),o=n.get("maxZoom"),r=t.getView().getZoom();return r>i&&r<o}function to(n,t){const e=n.get("minZoom"),i=n.get("maxZoom");return!!(t&&(e!==-1/0||i!==1/0))}function _s(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 eo(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=eo(n[o].properties,t);Object.keys(s).length>0&&(e[o]=s)}}return e}function As(n,t){var r,s,a,l,u;if(!t)return null;let e={},i="updateStyleVariables"in n?(r=n.style_)==null?void 0:r.variables:(s=t.style)==null?void 0:s.variables;if((t.type==="style"||t.style)&&i)e=i;else if((l=(a=n.getSource())==null?void 0:a.getTileUrlFunction)!=null&&l.call(a)){const c=new URL(n.getSource().getTileUrlFunction()([0,0,0]));e=Object.fromEntries(c.searchParams.entries())}else return null;const o=eo(((u=t.schema)==null?void 0:u.properties)||t.schema,e);return Object.keys(o).length?o:null}const Cs=(n,t)=>n==null?void 0:n.filter(e=>["remove","sort"].filter(i=>t!=null&&t.get("layerControlDisable")?i!=="sort":!0).includes(e)),Ts=(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")),e==="datetime"&&(i=t.get("layerDatetime")),i}),Ps=(n,t)=>E`
|
|
46
|
+
<button slot="${n}-icon" class="icon">${t?n:T}</button>
|
|
47
|
+
`,Ds=n=>E`
|
|
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
|
-
`,
|
|
54
|
+
`,Rs=n=>E`
|
|
55
55
|
<span class="button sort-icon icon drag-handle">
|
|
56
|
-
${
|
|
56
|
+
${n?"═":T}
|
|
57
57
|
</span>
|
|
58
|
-
`,no=
|
|
58
|
+
`,no=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 io=Sn(class extends $n{constructor(
|
|
62
|
+
*/const io=Sn(class extends $n{constructor(n){if(super(n),n.type!==St.PROPERTY&&n.type!==St.ATTRIBUTE&&n.type!==St.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Wo(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[t]){if(t===at||t===T)return t;const e=n.element,i=n.name;if(n.type===St.PROPERTY){if(t===e[i])return at}else if(n.type===St.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(i))return at}else if(n.type===St.ATTRIBUTE&&e.getAttribute(i)===t+"")return at;return Ei(n),t}});/**
|
|
63
63
|
* @license
|
|
64
64
|
* Copyright 2017 Google LLC
|
|
65
65
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
66
|
-
*/class qn extends $n{constructor(t){if(super(t),this.it=T,t.type!==St.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===T||t==null)return this._t=void 0,this.it=t;if(t===at)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 qn extends $n{constructor(t){if(super(t),this.it=T,t.type!==St.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===T||t==null)return this._t=void 0,this.it=t;if(t===at)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:[]}}}qn.directiveName="unsafeHTML",qn.resultType=1;const Os=Sn(qn);/**
|
|
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 Ms=(n,t,e)=>{let i=t;return e.layer.getSource().getTileUrlFunction()&&(i||(i=e.layer.getSource().getTileUrlFunction()),e.layer.getSource().setTileUrlFunction((...o)=>qr(i(...o),n)),e.layer.getSource().setKey(new Date)),i};function Ns(n,t,e){const i="updateStyleVariables"in t,o="setStyle"in t,r=i?t.style_:e.style;let s=r==null?void 0:r.variables;if(s){const a=oo(n);if(r.variables={...s,...a},i)t.updateStyleVariables(a);else if(o){const l=Is(r);t.setStyle(l)}}}const oo=n=>{const t={};for(const e in n)if(typeof n[e]=="object"&&n[e]!==null){const i=oo(n[e]);for(const o in i)t[o]=i==null?void 0:i[o]}else t[e]=n==null?void 0:n[e];return t};function Is(n){let t=n;if("variables"in n){let e=JSON.stringify(n);const{variables:i}=n;for(const o in i)typeof i[o]=="number"?e=e.replaceAll(`["var","${o}"]`,i[o]):e=e.replaceAll(`["var","${o}"]`,`"${i[o]}"`);t=JSON.parse(e)}return t}var ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hs(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Bs="Expected a function",ro=NaN,Vs="[object Symbol]",Ls=/^\s+|\s+$/g,Us=/^[-+]0x[0-9a-f]+$/i,ks=/^0b[01]+$/i,Fs=/^0o[0-7]+$/i,js=parseInt,Zs=typeof ze=="object"&&ze&&ze.Object===Object&&ze,zs=typeof self=="object"&&self&&self.Object===Object&&self,Xs=Zs||zs||Function("return this")(),qs=Object.prototype,Ys=qs.toString,Ws=Math.max,Gs=Math.min,Yn=function(){return Xs.Date.now()};function Js(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(Bs);t=so(t)||0,Wn(e)&&(c=!!e.leading,d="maxWait"in e,r=d?Ws(so(e.maxWait)||0,t):r,p="trailing"in e?!!e.trailing:p);function f(P){var W=i,ht=o;return i=o=void 0,u=P,s=n.apply(ht,W),s}function g(P){return u=P,a=setTimeout(q,t),c?f(P):s}function y(P){var W=P-l,ht=P-u,G=t-W;return d?Gs(G,r-ht):G}function M(P){var W=P-l,ht=P-u;return l===void 0||W>=t||W<0||d&&ht>=r}function q(){var P=Yn();if(M(P))return F(P);a=setTimeout(q,y(P))}function F(P){return a=void 0,p&&i?f(P):(i=o=void 0,s)}function st(){a!==void 0&&clearTimeout(a),u=0,i=l=o=a=void 0}function K(){return a===void 0?s:F(Yn())}function ct(){var P=Yn(),W=M(P);if(i=arguments,o=this,l=P,W){if(a===void 0)return g(l);if(d)return a=setTimeout(q,t),f(l)}return a===void 0&&(a=setTimeout(q,t)),s}return ct.cancel=st,ct.flush=K,ct}function Wn(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}function Ks(n){return!!n&&typeof n=="object"}function Qs(n){return typeof n=="symbol"||Ks(n)&&Ys.call(n)==Vs}function so(n){if(typeof n=="number")return n;if(Qs(n))return ro;if(Wn(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=Wn(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=n.replace(Ls,"");var e=ks.test(n);return e||Fs.test(n)?js(n.slice(2),e?2:8):Us.test(n)?ro:+n}var ta=Js;const ao=Hs(ta);class lo extends Q{constructor(){super();D(this,Xe);D(this,Gt,{});D(this,be,null);D(this,ve);D(this,qe,"");D(this,Ye,"");this.layer=null,this.unstyled=!1,this.noShadow=!1,this.layerConfig=null,this.debouncedDataChange=ao(U(this,Xe,$o),1e3,{leading:!0})}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){_e(this,be,As(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 E`
|
|
71
71
|
<style>
|
|
72
72
|
${R(this,qe)}
|
|
73
73
|
${!this.unstyled&&R(this,Ye)}
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
<eox-jsonform
|
|
78
78
|
.schema=${this.layerConfig.schema}
|
|
79
79
|
.value=${R(this,be)}
|
|
80
|
-
.options=${
|
|
80
|
+
.options=${e}
|
|
81
81
|
@change=${this.debouncedDataChange}
|
|
82
82
|
></eox-jsonform>
|
|
83
83
|
`)}
|
|
84
|
-
`}}
|
|
84
|
+
`}}Gt=new WeakMap,be=new WeakMap,ve=new WeakMap,Xe=new WeakSet,$o=function(e){_e(this,Gt,e.detail),this.layerConfig.type==="style"||this.layerConfig.style?"setStyle"in this.layer||"updateStyleVariables"in this.layer?Ns(R(this,Gt),this.layer,this.layerConfig):console.error(`Layer type ${this.layer.get("type")??""} does not support styles configuration`):(_e(this,ve,Ms(R(this,Gt),R(this,ve),this)),this.requestUpdate())},qe=new WeakMap,Ye=new WeakMap,L(lo,"properties",{layer:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},layerConfig:{attribute:!1}}),customElements.define("eox-layercontrol-layerconfig",lo);class uo extends Q{constructor(){super();D(this,We);D(this,Ge,"");D(this,Je,"");this.unstyled=!1,this.noShadow=!1,this.layerDatetime=null,this.layer=null}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){return customElements.get("eox-timecontrol")||console.error("Please import @eox/timecontrol in order to use layerDatetime"),E`
|
|
85
85
|
<style>
|
|
86
86
|
${R(this,Ge)}
|
|
87
87
|
${!this.unstyled&&R(this,Je)}
|
|
@@ -94,13 +94,13 @@
|
|
|
94
94
|
.layer=${void 0}
|
|
95
95
|
.slider=${this.layerDatetime.slider??!1}
|
|
96
96
|
.disablePlay=${this.layerDatetime.disablePlay??!1}
|
|
97
|
-
.controlValues=${this.layerDatetime.
|
|
97
|
+
.controlValues=${this.layerDatetime.controlValues}
|
|
98
98
|
.controlProperty=${void 0}
|
|
99
|
-
current-step=${this.layerDatetime.
|
|
100
|
-
@stepchange=${U(this,We
|
|
99
|
+
current-step=${this.layerDatetime.currentStep}
|
|
100
|
+
@stepchange=${U(this,We,_o)}
|
|
101
101
|
></eox-timecontrol>
|
|
102
102
|
`)}
|
|
103
|
-
`}}We=new WeakSet
|
|
103
|
+
`}}We=new WeakSet,_o=function(e){this.dispatchEvent(new CustomEvent("datetime:updated",{bubbles:!0,detail:{datetime:e.detail.currentStep,layer:this.layer}})),this.layerDatetime.currentStep=e.detail.currentStep,this.requestUpdate()},Ge=new WeakMap,Je=new WeakMap,L(uo,"properties",{unstyled:{type:Boolean},noShadow:{type:Boolean},layerDatetime:{attribute:!1},layer:{attribute:!1}}),customElements.define("eox-layercontrol-layer-datetime",uo);class co extends Q{constructor(){super();D(this,we,e=>this.selectedTab===e&&"highlighted");D(this,Ke,`
|
|
104
104
|
.tabbed figure {
|
|
105
105
|
margin: 0;
|
|
106
106
|
}
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
background: #00417011;
|
|
142
142
|
border-top: 1px solid #0041701a;
|
|
143
143
|
}
|
|
144
|
-
`);this.actions=[],this.selectedTab=0,this.tabs=[],this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const
|
|
144
|
+
`);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 E`
|
|
145
145
|
<style>
|
|
146
146
|
${R(this,Ke)}
|
|
147
147
|
${!this.unstyled&&R(this,Qe)}
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
<nav>
|
|
153
153
|
<div>
|
|
154
154
|
<!-- Labels for tabs -->
|
|
155
|
-
${Ze(
|
|
155
|
+
${Ze(e,(r,s)=>E`
|
|
156
156
|
<label
|
|
157
157
|
class=${R(this,we).call(this,s)}
|
|
158
158
|
@click=${()=>this.selectedTab=s}
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
`)}
|
|
176
176
|
<figure>
|
|
177
177
|
<!-- Content for each tab -->
|
|
178
|
-
${Ze(
|
|
178
|
+
${Ze(e,(r,s)=>E`
|
|
179
179
|
<div class="tab ${R(this,we).call(this,s)}">
|
|
180
180
|
<!-- Content slot for each tab -->
|
|
181
181
|
<slot name=${`${r}-content`}>${r}</slot>
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
`)}
|
|
184
184
|
</figure>
|
|
185
185
|
</div>
|
|
186
|
-
`}}we=new WeakMap,Ke=new WeakMap,Qe=new WeakMap,L(co,"properties",{actions:{attribute:!1},selectedTab:{state:!0},tabs:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-tabs",co);const
|
|
186
|
+
`}}we=new WeakMap,Ke=new WeakMap,Qe=new WeakMap,L(co,"properties",{actions:{attribute:!1},selectedTab:{state:!0},tabs:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-tabs",co);const ea=`
|
|
187
187
|
button,
|
|
188
188
|
.button {
|
|
189
189
|
/* TODO: why does this only work here and not from :root? */
|
|
@@ -307,7 +307,7 @@ button.smallest.icon::before {
|
|
|
307
307
|
width: 16px;
|
|
308
308
|
padding: 0px;
|
|
309
309
|
}
|
|
310
|
-
`,
|
|
310
|
+
`,na=`
|
|
311
311
|
input[type=radio] {
|
|
312
312
|
appearance: none;
|
|
313
313
|
-webkit-appearance: none;
|
|
@@ -358,7 +358,7 @@ input[type=checkbox]:checked:after {
|
|
|
358
358
|
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");
|
|
359
359
|
|
|
360
360
|
}
|
|
361
|
-
`,
|
|
361
|
+
`,ia=`
|
|
362
362
|
input[type="range"] {
|
|
363
363
|
-webkit-appearance: none;
|
|
364
364
|
width: 90%;
|
|
@@ -435,11 +435,11 @@ input[type="range"]:focus::-webkit-slider-thumb {
|
|
|
435
435
|
input::-moz-focus-inner, input::-moz-focus-outer {
|
|
436
436
|
border: 0;
|
|
437
437
|
}
|
|
438
|
-
`;class po extends Q{constructor(){super();L(this,"_removeButton",()=>
|
|
439
|
-
${
|
|
440
|
-
${ea}
|
|
441
|
-
${ho}
|
|
438
|
+
`;class po extends Q{constructor(){super();L(this,"_removeButton",()=>Ds(this));L(this,"_sortButton",()=>Rs(this.unstyled));L(this,"_button",e=>Ps(e,this.unstyled));D(this,tn,"");D(this,en,`
|
|
439
|
+
${ea}
|
|
442
440
|
${na}
|
|
441
|
+
${ho}
|
|
442
|
+
${ia}
|
|
443
443
|
.drag-handle {
|
|
444
444
|
cursor: n-resize;
|
|
445
445
|
}
|
|
@@ -535,7 +535,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
535
535
|
[slot=opacity-content] {
|
|
536
536
|
padding: 12px 6px;
|
|
537
537
|
}
|
|
538
|
-
`);this.layer=null,this.tools=[],this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var l;const
|
|
538
|
+
`);this.layer=null,this.tools=[],this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var l;const e=Cs(this.tools,this.layer),i=Ts(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 E`
|
|
539
539
|
<style>
|
|
540
540
|
${R(this,tn)}
|
|
541
541
|
${!this.unstyled&&R(this,en)}
|
|
@@ -555,7 +555,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
555
555
|
</summary>
|
|
556
556
|
<eox-layercontrol-tabs
|
|
557
557
|
.noShadow=${!1}
|
|
558
|
-
.actions=${
|
|
558
|
+
.actions=${e}
|
|
559
559
|
.tabs=${i}
|
|
560
560
|
.unstyled=${this.unstyled}
|
|
561
561
|
>
|
|
@@ -563,7 +563,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
563
563
|
${Ze(i,c=>this._button(c))}
|
|
564
564
|
|
|
565
565
|
<div slot="info-content">
|
|
566
|
-
${
|
|
566
|
+
${Os(this.layer.get("description"))}
|
|
567
567
|
</div>
|
|
568
568
|
<div slot="opacity-content">
|
|
569
569
|
<!-- Input for opacity -->
|
|
@@ -608,7 +608,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
608
608
|
</details>
|
|
609
609
|
`})}
|
|
610
610
|
`)}
|
|
611
|
-
`}}tn=new WeakMap,en=new WeakMap,L(po,"properties",{layer:{attribute:!1},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-layer-tools",po);const
|
|
611
|
+
`}}tn=new WeakMap,en=new WeakMap,L(po,"properties",{layer:{attribute:!1},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-layer-tools",po);const oa=n=>{const t=()=>{const e=$s(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})))};to(n.layer,n.showLayerZoomState)&&(t(),n.map.getView().on("change:resolution",()=>t()))},ra=(n,t)=>{const e=t.layer;e.setVisible(n.target.checked),n.target.checked&&e.get("layerControlExclusive")&&t.closest(".layers > ul").querySelectorAll("eox-layercontrol-layer").forEach(o=>{var r;o.layer!==e&&((r=o.layer)!=null&&r.get("layerControlExclusive"))&&(o.layer.setVisible(!1),o.requestUpdate())}),t.dispatchEvent(new CustomEvent("changed",{bubbles:!0,detail:e})),t.requestUpdate()};class fo extends Q{constructor(){super();D(this,Ct);L(this,"currLayerVisibilityBasedOnZoom",!0);D(this,nn,"");D(this,on,`
|
|
612
612
|
${ho}
|
|
613
613
|
eox-layercontrol-layer {
|
|
614
614
|
width: 100%;
|
|
@@ -649,7 +649,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
649
649
|
[data-type=draw] .title::before {
|
|
650
650
|
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");
|
|
651
651
|
}
|
|
652
|
-
`);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(){
|
|
652
|
+
`);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(){oa(this)}render(){var l;const e=this.layer.getVisible(),i=e?"visible":"",o=this.currLayerVisibilityBasedOnZoom?"":"zoom-state-invisible",r=U(this,Ct,fn).call(this,"layerControlDisable")?"disabled":"",s=U(this,Ct,fn).call(this,"layerControlExclusive")?"radio":"checkbox",a=((l=this.tools)==null?void 0:l.length)>0;return E`
|
|
653
653
|
<style>
|
|
654
654
|
${R(this,nn)}
|
|
655
655
|
${!this.unstyled&&R(this,on)}
|
|
@@ -661,8 +661,8 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
661
661
|
<!-- Input element for layer visibility -->
|
|
662
662
|
<input
|
|
663
663
|
type=${s}
|
|
664
|
-
.checked=${io(
|
|
665
|
-
@click=${U(this,Ct,
|
|
664
|
+
.checked=${io(e)}
|
|
665
|
+
@click=${U(this,Ct,Ao)}
|
|
666
666
|
/>
|
|
667
667
|
|
|
668
668
|
<!-- Layer title -->
|
|
@@ -679,7 +679,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
679
679
|
.unstyled=${this.unstyled}
|
|
680
680
|
></eox-layercontrol-layer-tools>
|
|
681
681
|
`)}
|
|
682
|
-
`}}Ct=new WeakSet,fn=function(
|
|
682
|
+
`}}Ct=new WeakSet,fn=function(e){var i;return(i=this.layer)==null?void 0:i.get(e)},Ao=function(e){ra(e,this)},nn=new WeakMap,on=new WeakMap,L(fo,"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",fo);class go extends Q{constructor(){super();D(this,rn,"");D(this,sn,`
|
|
683
683
|
details summary {
|
|
684
684
|
cursor: pointer;
|
|
685
685
|
display: flex;
|
|
@@ -703,7 +703,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
703
703
|
details[data-children-length="0"] summary::before {
|
|
704
704
|
display: none;
|
|
705
705
|
}
|
|
706
|
-
`);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
|
|
706
|
+
`);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=no(this.group.getLayers()))==null?void 0:r.length;return E`
|
|
707
707
|
<style>
|
|
708
708
|
${R(this,rn)}
|
|
709
709
|
${!this.unstyled&&R(this,sn)}
|
|
@@ -711,7 +711,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
711
711
|
${tt(this.group,()=>E`
|
|
712
712
|
<!-- Render the details element with the layer control -->
|
|
713
713
|
<details
|
|
714
|
-
open=${
|
|
714
|
+
open=${e||T}
|
|
715
715
|
data-children-length=${i}
|
|
716
716
|
>
|
|
717
717
|
<summary>
|
|
@@ -742,7 +742,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
742
742
|
></eox-layercontrol-layer-list>
|
|
743
743
|
</details>
|
|
744
744
|
`)}
|
|
745
|
-
`}}rn=new WeakMap,sn=new WeakMap,L(go,"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",go);const
|
|
745
|
+
`}}rn=new WeakMap,sn=new WeakMap,L(go,"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",go);const sa=n=>{const{layers:t,idProperty:e,titleProperty:i,renderRoot:o}=n,r=ao(()=>{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");Ss(t,e,i,n),xs(a,t,e,n)}};class mo extends Q{constructor(){super();D(this,an,"");D(this,ln,`
|
|
746
746
|
ul {
|
|
747
747
|
padding: 0;
|
|
748
748
|
margin: 0;
|
|
@@ -770,17 +770,17 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
770
770
|
}
|
|
771
771
|
li.sortable-ghost {
|
|
772
772
|
}
|
|
773
|
-
`);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(){
|
|
773
|
+
`);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(){sa(this)}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const e=this.layers?no(this.layers).reverse():[];return E`
|
|
774
774
|
<style>
|
|
775
775
|
${R(this,an)}
|
|
776
776
|
${!this.unstyled&&R(this,ln)}
|
|
777
777
|
</style>
|
|
778
778
|
<ul>
|
|
779
779
|
${tt(this.layers,()=>E`
|
|
780
|
-
${
|
|
780
|
+
${Ko(e,i=>i,i=>E`
|
|
781
781
|
<li
|
|
782
782
|
data-layer="${i.get(this.idProperty)}"
|
|
783
|
-
data-type="${
|
|
783
|
+
data-type="${_s(i,this.map)}"
|
|
784
784
|
>
|
|
785
785
|
${i.getLayers?E`
|
|
786
786
|
<eox-layercontrol-layer-group
|
|
@@ -811,7 +811,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
811
811
|
`)}
|
|
812
812
|
`)}
|
|
813
813
|
</ul>
|
|
814
|
-
`}}an=new WeakMap,ln=new WeakMap,L(mo,"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",mo);const
|
|
814
|
+
`}}an=new WeakMap,ln=new WeakMap,L(mo,"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",mo);const aa=n=>{const t=n.querySelector("select[name=optional]"),e=t?t.value:null,i=Xn(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 yo extends Q{constructor(){super();D(this,un);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=Xn(this.layers.getArray(),"layerControlOptional",!0);return E`
|
|
815
815
|
<!-- Label for the dropdown -->
|
|
816
816
|
<label for="optional">Optional layers</label>
|
|
817
817
|
|
|
@@ -823,12 +823,12 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
823
823
|
</option>
|
|
824
824
|
|
|
825
825
|
<!-- Mapping through filtered layers list to generate dropdown options -->
|
|
826
|
-
${
|
|
826
|
+
${e.map(i=>{const o=i.get(this.idProperty)||i.ol_uid,r=i.get(this.titleProperty),s=`layer ${i.get(this.idProperty)}`;return E` <option value="${o}">${r||s}</option> `})}
|
|
827
827
|
</select>
|
|
828
828
|
|
|
829
829
|
<!-- Button to handle adding layers -->
|
|
830
|
-
<button @click="${U(this,un,
|
|
831
|
-
`}}un=new WeakSet,
|
|
830
|
+
<button @click="${U(this,un,Co)}">add</button>
|
|
831
|
+
`}}un=new WeakSet,Co=function(){aa(this)},L(yo,"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",yo);const la=(n,t)=>{t.jsonInput=n.target.value,t.requestUpdate()},bo=n=>{const t=JSON.parse(`{"data":${Di(n.jsonInput)}}`);Array.isArray(t.data)?t.data.forEach(e=>{n.eoxMap.addOrUpdateLayer(e)}):n.eoxMap.addOrUpdateLayer(t.data),n.jsonInput=null,n.requestUpdate()},ua=(n,t)=>{t.urlInput=n.target.value,t.requestUpdate()};async function da(n){const t=n.urlInput;if(n.wmsCapabilities=null,n.searchLoad=!0,n.requestUpdate(),!t)return!1;if(Pn(t)==="XYZ")return{Name:t};try{const e=await Zr(t);n.wmsCapabilities=e}catch{}finally{n.searchLoad=!1,n.requestUpdate()}return!1}const ca=(n,t)=>{const{Name:e}=n,i=Pn(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)},ha=(n,t)=>{t.open=n||null,t.urlInput=null,t.jsonInput=null,t.wmsCapabilities=null,t.requestUpdate()};class vo extends Q{constructor(){super();D(this,X);L(this,"urlInput",null);L(this,"jsonInput",null);L(this,"open",null);L(this,"searchLoad",!1);L(this,"wmsCapabilities",null);D(this,dn,`
|
|
832
832
|
.eox-add-layer-main .open {
|
|
833
833
|
position: relative;
|
|
834
834
|
}
|
|
@@ -968,7 +968,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
968
968
|
font-weight: bold;
|
|
969
969
|
display: inline-block;
|
|
970
970
|
}
|
|
971
|
-
`);this.eoxMap=null,this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const
|
|
971
|
+
`);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=!zr(this.urlInput)||this.searchLoad?!0:T;return E`
|
|
972
972
|
<style>
|
|
973
973
|
${R(this,dn)}
|
|
974
974
|
${!this.unstyled&&R(this,cn)}
|
|
@@ -976,7 +976,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
976
976
|
<div class="eox-add-layer-main">
|
|
977
977
|
<div class="eox-add-layer-col">
|
|
978
978
|
<!-- Tabbed interface for URL and JSON -->
|
|
979
|
-
<ul class="eox-add-layer-tab ${
|
|
979
|
+
<ul class="eox-add-layer-tab ${e}">
|
|
980
980
|
<li
|
|
981
981
|
@click=${()=>U(this,X,gn).call(this,"url")}
|
|
982
982
|
class="${i?"active":""}"
|
|
@@ -999,7 +999,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
999
999
|
${this.unstyled?"Add Layer":""}
|
|
1000
1000
|
</button>
|
|
1001
1001
|
</div>
|
|
1002
|
-
<div class="eox-add ${
|
|
1002
|
+
<div class="eox-add ${e}">
|
|
1003
1003
|
${i?E`
|
|
1004
1004
|
<!-- Input field for URL -->
|
|
1005
1005
|
<div class="eox-add-layer-col">
|
|
@@ -1008,14 +1008,14 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
1008
1008
|
class="add-url"
|
|
1009
1009
|
placeholder="Add URL (WMS/XYZ)"
|
|
1010
1010
|
.value="${this.urlInput}"
|
|
1011
|
-
@input=${U(this,X,
|
|
1011
|
+
@input=${U(this,X,To)}
|
|
1012
1012
|
>
|
|
1013
1013
|
</input>
|
|
1014
1014
|
<!-- Search button for URL -->
|
|
1015
1015
|
<button
|
|
1016
1016
|
class="search-icon"
|
|
1017
1017
|
disabled=${r}
|
|
1018
|
-
@click=${U(this,X,
|
|
1018
|
+
@click=${U(this,X,Po)}
|
|
1019
1019
|
>
|
|
1020
1020
|
${this.unstyled?"Search":""}
|
|
1021
1021
|
</button>
|
|
@@ -1041,32 +1041,32 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
1041
1041
|
<textarea
|
|
1042
1042
|
class="add-layer-input"
|
|
1043
1043
|
placeholder="Please put a valid eox-map layer JSON."
|
|
1044
|
-
@input=${U(this,X,
|
|
1044
|
+
@input=${U(this,X,Ro)}
|
|
1045
1045
|
.value=${this.jsonInput}
|
|
1046
1046
|
></textarea>
|
|
1047
1047
|
|
|
1048
1048
|
<!-- Button to add JSON layer -->
|
|
1049
1049
|
<button
|
|
1050
1050
|
class="add-layer-icon json-add-layer"
|
|
1051
|
-
disabled=${
|
|
1052
|
-
@click=${U(this,X,
|
|
1051
|
+
disabled=${Xr(this.jsonInput)?T:!0}
|
|
1052
|
+
@click=${U(this,X,Do)}
|
|
1053
1053
|
>
|
|
1054
1054
|
${this.unstyled?"Add JSON":""}
|
|
1055
1055
|
</button>
|
|
1056
1056
|
`}
|
|
1057
1057
|
</div>
|
|
1058
1058
|
</div>
|
|
1059
|
-
`}}X=new WeakSet,
|
|
1059
|
+
`}}X=new WeakSet,To=function(e){ua(e,this)},Po=async function(){const e=await da(this);e&&U(this,X,Kn).call(this,e)},Kn=function(e){ca(e,this),bo(this)},Do=function(){bo(this)},Ro=function(e){la(e,this)},gn=function(e){ha(e,this)},dn=new WeakMap,cn=new WeakMap,L(vo,"properties",{eoxMap:{attribute:!1,state:!0},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-add-layers",vo);const pa=(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()}},fa=n=>{let t;return typeof n=="string"?t=document.querySelector(n):t=n,t},wo=n=>{const t=fa(n.for);return t&&t.map!==n.map&&(n.map=t.map),t};class Gn extends Q{constructor(){super();D(this,Jt);D(this,Tt);D(this,hn,"* { 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","datetime","config","remove","sort"],this.addExternalLayers=!1,this.unstyled=!1,this.styleOverride=""}firstUpdated(){this.eoxMap=wo(this)}updated(e){e.has("for")&&(this.eoxMap=wo(this))}get eoxMap(){return R(this,Tt)}set eoxMap(e){const i=R(this,Tt);_e(this,Tt,e),this.requestUpdate("eoxMap",i)}render(){var o,r,s;const e=(o=this.map)==null?void 0:o.getLayers().getArray(),i=e&&((r=Xn(e,"layerControlOptional",!0))==null?void 0:r.length)>0;return E`
|
|
1060
1060
|
<style>
|
|
1061
1061
|
${!this.unstyled&&R(this,hn)}
|
|
1062
1062
|
${this.styleOverride}
|
|
1063
1063
|
</style>
|
|
1064
1064
|
|
|
1065
1065
|
<!-- Conditional rendering of add layers component -->
|
|
1066
|
-
${tt(this.addExternalLayers&&((s=R(this,
|
|
1066
|
+
${tt(this.addExternalLayers&&((s=R(this,Tt))==null?void 0:s.addOrUpdateLayer),()=>E`
|
|
1067
1067
|
<eox-layercontrol-add-layers
|
|
1068
1068
|
.noShadow=${!0}
|
|
1069
|
-
.eoxMap=${R(this,
|
|
1069
|
+
.eoxMap=${R(this,Tt)}
|
|
1070
1070
|
.unstyled=${this.unstyled}
|
|
1071
1071
|
></eox-layercontrol-add-layers>
|
|
1072
1072
|
`)}
|
|
@@ -1083,8 +1083,8 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
1083
1083
|
.showLayerZoomState=${this.showLayerZoomState}
|
|
1084
1084
|
.tools=${this.tools}
|
|
1085
1085
|
.unstyled=${this.unstyled}
|
|
1086
|
-
@changed=${U(this,Jt,
|
|
1087
|
-
@datetime:updated=${U(this,Jt,
|
|
1086
|
+
@changed=${U(this,Jt,Oo)}
|
|
1087
|
+
@datetime:updated=${U(this,Jt,Mo)}
|
|
1088
1088
|
></eox-layercontrol-layer-list>
|
|
1089
1089
|
`)}
|
|
1090
1090
|
|
|
@@ -1098,4 +1098,4 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
1098
1098
|
@changed=${()=>this.requestUpdate()}
|
|
1099
1099
|
></eox-layercontrol-optional-list>
|
|
1100
1100
|
`)}
|
|
1101
|
-
`}}
|
|
1101
|
+
`}}Tt=new WeakMap,Jt=new WeakSet,Oo=function(e){pa(e,this),this.dispatchEvent(new CustomEvent("layerchange",{detail:e.detail}))},Mo=function(e){this.dispatchEvent(new CustomEvent("datetime:updated",{detail:e.detail}))},hn=new WeakMap,L(Gn,"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",Gn),C.EOxLayerControl=Gn,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
|