@eox/layercontrol 0.17.4 → 0.17.6-dev.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 +1179 -1213
- package/dist/eox-layercontrol.umd.cjs +98 -98
- package/package.json +3 -3
- package/test/cases/general/exclusive-layers.js +35 -0
- package/test/cases/general/index.js +1 -0
- package/test/general.cy.js +4 -0
package/dist/eox-layercontrol.js
CHANGED
|
@@ -1,33 +1,27 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
if (!t.has(n))
|
|
5
|
-
throw TypeError("Cannot " + e);
|
|
1
|
+
var To = Object.defineProperty;
|
|
2
|
+
var qn = (n) => {
|
|
3
|
+
throw TypeError(n);
|
|
6
4
|
};
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
t instanceof WeakSet ? t.add(n) : t.set(n, e);
|
|
11
|
-
}, Jt = (n, t, e, i) => (mn(n, t, "write to private field"), i ? i.call(n, e) : t.set(n, e), e);
|
|
12
|
-
var k = (n, t, e) => (mn(n, t, "access private method"), e);
|
|
5
|
+
var Po = (n, t, e) => t in n ? To(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
6
|
+
var H = (n, t, e) => Po(n, typeof t != "symbol" ? t + "" : t, e), cn = (n, t, e) => t.has(n) || qn("Cannot " + e);
|
|
7
|
+
var O = (n, t, e) => (cn(n, t, "read from private field"), e ? e.call(n) : t.get(n)), T = (n, t, e) => t.has(n) ? qn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, e), Kt = (n, t, e, i) => (cn(n, t, "write to private field"), i ? i.call(n, e) : t.set(n, e), e), k = (n, t, e) => (cn(n, t, "access private method"), e);
|
|
13
8
|
/**
|
|
14
9
|
* @license
|
|
15
10
|
* Copyright 2019 Google LLC
|
|
16
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
12
|
*/
|
|
18
|
-
const
|
|
19
|
-
let
|
|
13
|
+
const Ce = globalThis, Hn = Ce.ShadowRoot && (Ce.ShadyCSS === void 0 || Ce.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, wi = Symbol(), Wn = /* @__PURE__ */ new WeakMap();
|
|
14
|
+
let Oo = class {
|
|
20
15
|
constructor(t, e, i) {
|
|
21
|
-
if (this._$cssResult$ = !0, i !==
|
|
22
|
-
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
16
|
+
if (this._$cssResult$ = !0, i !== wi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
23
17
|
this.cssText = t, this.t = e;
|
|
24
18
|
}
|
|
25
19
|
get styleSheet() {
|
|
26
20
|
let t = this.o;
|
|
27
21
|
const e = this.t;
|
|
28
|
-
if (
|
|
22
|
+
if (Hn && t === void 0) {
|
|
29
23
|
const i = e !== void 0 && e.length === 1;
|
|
30
|
-
i && (t =
|
|
24
|
+
i && (t = Wn.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Wn.set(e, t));
|
|
31
25
|
}
|
|
32
26
|
return t;
|
|
33
27
|
}
|
|
@@ -35,29 +29,26 @@ let Mo = class {
|
|
|
35
29
|
return this.cssText;
|
|
36
30
|
}
|
|
37
31
|
};
|
|
38
|
-
const
|
|
39
|
-
if (
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
}, ei = Fn ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
|
|
32
|
+
const Ro = (n) => new Oo(typeof n == "string" ? n : n + "", void 0, wi), Do = (n, t) => {
|
|
33
|
+
if (Hn) n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
34
|
+
else for (const e of t) {
|
|
35
|
+
const i = document.createElement("style"), o = Ce.litNonce;
|
|
36
|
+
o !== void 0 && i.setAttribute("nonce", o), i.textContent = e.cssText, n.appendChild(i);
|
|
37
|
+
}
|
|
38
|
+
}, Gn = Hn ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
|
|
47
39
|
let e = "";
|
|
48
|
-
for (const i of t.cssRules)
|
|
49
|
-
|
|
50
|
-
return Io(e);
|
|
40
|
+
for (const i of t.cssRules) e += i.cssText;
|
|
41
|
+
return Ro(e);
|
|
51
42
|
})(n) : n;
|
|
52
43
|
/**
|
|
53
44
|
* @license
|
|
54
45
|
* Copyright 2017 Google LLC
|
|
55
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
56
47
|
*/
|
|
57
|
-
const { is:
|
|
48
|
+
const { is: No, defineProperty: Mo, getOwnPropertyDescriptor: Io, getOwnPropertyNames: Ho, getOwnPropertySymbols: Bo, getPrototypeOf: Vo } = Object, _t = globalThis, Jn = _t.trustedTypes, Lo = Jn ? Jn.emptyScript : "", dn = _t.reactiveElementPolyfillSupport, oe = (n, t) => n, Tn = { toAttribute(n, t) {
|
|
58
49
|
switch (t) {
|
|
59
50
|
case Boolean:
|
|
60
|
-
n = n ?
|
|
51
|
+
n = n ? Lo : null;
|
|
61
52
|
break;
|
|
62
53
|
case Object:
|
|
63
54
|
case Array:
|
|
@@ -82,23 +73,23 @@ const { is: Bo, defineProperty: Vo, getOwnPropertyDescriptor: Lo, getOwnProperty
|
|
|
82
73
|
}
|
|
83
74
|
}
|
|
84
75
|
return e;
|
|
85
|
-
} },
|
|
86
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
87
|
-
class
|
|
76
|
+
} }, Ei = (n, t) => !No(n, t), Kn = { attribute: !0, type: String, converter: Tn, reflect: !1, hasChanged: Ei };
|
|
77
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _t.litPropertyMetadata ?? (_t.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
|
+
class Lt extends HTMLElement {
|
|
88
79
|
static addInitializer(t) {
|
|
89
80
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
90
81
|
}
|
|
91
82
|
static get observedAttributes() {
|
|
92
83
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
93
84
|
}
|
|
94
|
-
static createProperty(t, e =
|
|
85
|
+
static createProperty(t, e = Kn) {
|
|
95
86
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
96
87
|
const i = Symbol(), o = this.getPropertyDescriptor(t, i, e);
|
|
97
|
-
o !== void 0 &&
|
|
88
|
+
o !== void 0 && Mo(this.prototype, t, o);
|
|
98
89
|
}
|
|
99
90
|
}
|
|
100
91
|
static getPropertyDescriptor(t, e, i) {
|
|
101
|
-
const { get: o, set: r } =
|
|
92
|
+
const { get: o, set: r } = Io(this.prototype, t) ?? { get() {
|
|
102
93
|
return this[e];
|
|
103
94
|
}, set(s) {
|
|
104
95
|
this[e] = s;
|
|
@@ -111,28 +102,23 @@ class Bt extends HTMLElement {
|
|
|
111
102
|
}, configurable: !0, enumerable: !0 };
|
|
112
103
|
}
|
|
113
104
|
static getPropertyOptions(t) {
|
|
114
|
-
return this.elementProperties.get(t) ??
|
|
105
|
+
return this.elementProperties.get(t) ?? Kn;
|
|
115
106
|
}
|
|
116
107
|
static _$Ei() {
|
|
117
|
-
if (this.hasOwnProperty(
|
|
118
|
-
|
|
119
|
-
const t = Fo(this);
|
|
108
|
+
if (this.hasOwnProperty(oe("elementProperties"))) return;
|
|
109
|
+
const t = Vo(this);
|
|
120
110
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
121
111
|
}
|
|
122
112
|
static finalize() {
|
|
123
|
-
if (this.hasOwnProperty(
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
const
|
|
127
|
-
for (const o of i)
|
|
128
|
-
this.createProperty(o, e[o]);
|
|
113
|
+
if (this.hasOwnProperty(oe("finalized"))) return;
|
|
114
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(oe("properties"))) {
|
|
115
|
+
const e = this.properties, i = [...Ho(e), ...Bo(e)];
|
|
116
|
+
for (const o of i) this.createProperty(o, e[o]);
|
|
129
117
|
}
|
|
130
118
|
const t = this[Symbol.metadata];
|
|
131
119
|
if (t !== null) {
|
|
132
120
|
const e = litPropertyMetadata.get(t);
|
|
133
|
-
if (e !== void 0)
|
|
134
|
-
for (const [i, o] of e)
|
|
135
|
-
this.elementProperties.set(i, o);
|
|
121
|
+
if (e !== void 0) for (const [i, o] of e) this.elementProperties.set(i, o);
|
|
136
122
|
}
|
|
137
123
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
138
124
|
for (const [e, i] of this.elementProperties) {
|
|
@@ -145,10 +131,8 @@ class Bt extends HTMLElement {
|
|
|
145
131
|
const e = [];
|
|
146
132
|
if (Array.isArray(t)) {
|
|
147
133
|
const i = new Set(t.flat(1 / 0).reverse());
|
|
148
|
-
for (const o of i)
|
|
149
|
-
|
|
150
|
-
} else
|
|
151
|
-
t !== void 0 && e.push(ei(t));
|
|
134
|
+
for (const o of i) e.unshift(Gn(o));
|
|
135
|
+
} else t !== void 0 && e.push(Gn(t));
|
|
152
136
|
return e;
|
|
153
137
|
}
|
|
154
138
|
static _$Eu(t, e) {
|
|
@@ -172,13 +156,12 @@ class Bt extends HTMLElement {
|
|
|
172
156
|
}
|
|
173
157
|
_$E_() {
|
|
174
158
|
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
|
175
|
-
for (const i of e.keys())
|
|
176
|
-
this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
|
|
159
|
+
for (const i of e.keys()) this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
|
|
177
160
|
t.size > 0 && (this._$Ep = t);
|
|
178
161
|
}
|
|
179
162
|
createRenderRoot() {
|
|
180
163
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
181
|
-
return
|
|
164
|
+
return Do(t, this.constructor.elementStyles), t;
|
|
182
165
|
}
|
|
183
166
|
connectedCallback() {
|
|
184
167
|
var t;
|
|
@@ -203,7 +186,7 @@ class Bt extends HTMLElement {
|
|
|
203
186
|
var r;
|
|
204
187
|
const i = this.constructor.elementProperties.get(t), o = this.constructor._$Eu(t, i);
|
|
205
188
|
if (o !== void 0 && i.reflect === !0) {
|
|
206
|
-
const s = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter :
|
|
189
|
+
const s = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : Tn).toAttribute(e, i.type);
|
|
207
190
|
this._$Em = t, s == null ? this.removeAttribute(o) : this.setAttribute(o, s), this._$Em = null;
|
|
208
191
|
}
|
|
209
192
|
}
|
|
@@ -211,14 +194,13 @@ class Bt extends HTMLElement {
|
|
|
211
194
|
var r;
|
|
212
195
|
const i = this.constructor, o = i._$Eh.get(t);
|
|
213
196
|
if (o !== void 0 && this._$Em !== o) {
|
|
214
|
-
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 :
|
|
197
|
+
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 : Tn;
|
|
215
198
|
this._$Em = o, this[o] = a.fromAttribute(e, s.type), this._$Em = null;
|
|
216
199
|
}
|
|
217
200
|
}
|
|
218
201
|
requestUpdate(t, e, i) {
|
|
219
202
|
if (t !== void 0) {
|
|
220
|
-
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ??
|
|
221
|
-
return;
|
|
203
|
+
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? Ei)(this[t], e)) return;
|
|
222
204
|
this.P(t, e, i);
|
|
223
205
|
}
|
|
224
206
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
@@ -241,18 +223,14 @@ class Bt extends HTMLElement {
|
|
|
241
223
|
}
|
|
242
224
|
performUpdate() {
|
|
243
225
|
var i;
|
|
244
|
-
if (!this.isUpdatePending)
|
|
245
|
-
return;
|
|
226
|
+
if (!this.isUpdatePending) return;
|
|
246
227
|
if (!this.hasUpdated) {
|
|
247
228
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
248
|
-
for (const [r, s] of this._$Ep)
|
|
249
|
-
this[r] = s;
|
|
229
|
+
for (const [r, s] of this._$Ep) this[r] = s;
|
|
250
230
|
this._$Ep = void 0;
|
|
251
231
|
}
|
|
252
232
|
const o = this.constructor.elementProperties;
|
|
253
|
-
if (o.size > 0)
|
|
254
|
-
for (const [r, s] of o)
|
|
255
|
-
s.wrapped !== !0 || this._$AL.has(r) || this[r] === void 0 || this.P(r, this[r], s);
|
|
233
|
+
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);
|
|
256
234
|
}
|
|
257
235
|
let t = !1;
|
|
258
236
|
const e = this._$AL;
|
|
@@ -295,86 +273,76 @@ class Bt extends HTMLElement {
|
|
|
295
273
|
firstUpdated(t) {
|
|
296
274
|
}
|
|
297
275
|
}
|
|
298
|
-
|
|
276
|
+
Lt.elementStyles = [], Lt.shadowRootOptions = { mode: "open" }, Lt[oe("elementProperties")] = /* @__PURE__ */ new Map(), Lt[oe("finalized")] = /* @__PURE__ */ new Map(), dn == null || dn({ ReactiveElement: Lt }), (_t.reactiveElementVersions ?? (_t.reactiveElementVersions = [])).push("2.0.4");
|
|
299
277
|
/**
|
|
300
278
|
* @license
|
|
301
279
|
* Copyright 2017 Google LLC
|
|
302
280
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
303
281
|
*/
|
|
304
|
-
const
|
|
305
|
-
\f\r]`,
|
|
306
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
307
|
-
function
|
|
308
|
-
if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
const Ri = (n, t) => {
|
|
282
|
+
const re = globalThis, He = re.trustedTypes, Qn = He ? He.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Bn = "$lit$", pt = `lit$${(Math.random() + "").slice(9)}$`, Vn = "?" + pt, ko = `<${Vn}>`, It = document, de = () => It.createComment(""), he = (n) => n === null || typeof n != "object" && typeof n != "function", xi = Array.isArray, Si = (n) => xi(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", hn = `[
|
|
283
|
+
\f\r]`, Qt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ti = /-->/g, ei = />/g, Tt = RegExp(`>|${hn}(?:([^\\s"'>=/]+)(${hn}*=${hn}*(?:[^
|
|
284
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), ni = /'/g, ii = /"/g, $i = /^(?:script|style|textarea|title)$/i, Uo = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), x = Uo(1), ot = Symbol.for("lit-noChange"), C = Symbol.for("lit-nothing"), oi = /* @__PURE__ */ new WeakMap(), Nt = It.createTreeWalker(It, 129);
|
|
285
|
+
function _i(n, t) {
|
|
286
|
+
if (!Array.isArray(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
287
|
+
return Qn !== void 0 ? Qn.createHTML(t) : t;
|
|
288
|
+
}
|
|
289
|
+
const Ai = (n, t) => {
|
|
313
290
|
const e = n.length - 1, i = [];
|
|
314
|
-
let o, r = t === 2 ? "<svg>" : "", s =
|
|
291
|
+
let o, r = t === 2 ? "<svg>" : "", s = Qt;
|
|
315
292
|
for (let a = 0; a < e; a++) {
|
|
316
293
|
const l = n[a];
|
|
317
294
|
let u, d, c = -1, p = 0;
|
|
318
|
-
for (; p < l.length && (s.lastIndex = p, d = s.exec(l), d !== null); )
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
r += s === Kt ? l + zo : c >= 0 ? (i.push(u), l.slice(0, c) + jn + l.slice(c) + ht + f) : l + ht + (c === -2 ? a : f);
|
|
295
|
+
for (; p < l.length && (s.lastIndex = p, d = s.exec(l), d !== null); ) p = s.lastIndex, s === Qt ? d[1] === "!--" ? s = ti : d[1] !== void 0 ? s = ei : d[2] !== void 0 ? ($i.test(d[2]) && (o = RegExp("</" + d[2], "g")), s = Tt) : d[3] !== void 0 && (s = Tt) : s === Tt ? d[0] === ">" ? (s = o ?? Qt, c = -1) : d[1] === void 0 ? c = -2 : (c = s.lastIndex - d[2].length, u = d[1], s = d[3] === void 0 ? Tt : d[3] === '"' ? ii : ni) : s === ii || s === ni ? s = Tt : s === ti || s === ei ? s = Qt : (s = Tt, o = void 0);
|
|
296
|
+
const f = s === Tt && n[a + 1].startsWith("/>") ? " " : "";
|
|
297
|
+
r += s === Qt ? l + ko : c >= 0 ? (i.push(u), l.slice(0, c) + Bn + l.slice(c) + pt + f) : l + pt + (c === -2 ? a : f);
|
|
322
298
|
}
|
|
323
|
-
return [
|
|
299
|
+
return [_i(n, r + (n[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
|
324
300
|
};
|
|
325
|
-
class
|
|
301
|
+
class pe {
|
|
326
302
|
constructor({ strings: t, _$litType$: e }, i) {
|
|
327
303
|
let o;
|
|
328
304
|
this.parts = [];
|
|
329
305
|
let r = 0, s = 0;
|
|
330
|
-
const a = t.length - 1, l = this.parts, [u, d] =
|
|
331
|
-
if (this.el =
|
|
306
|
+
const a = t.length - 1, l = this.parts, [u, d] = Ai(t, e);
|
|
307
|
+
if (this.el = pe.createElement(u, i), Nt.currentNode = this.el.content, e === 2) {
|
|
332
308
|
const c = this.el.content.firstChild;
|
|
333
309
|
c.replaceWith(...c.childNodes);
|
|
334
310
|
}
|
|
335
|
-
for (; (o =
|
|
311
|
+
for (; (o = Nt.nextNode()) !== null && l.length < a; ) {
|
|
336
312
|
if (o.nodeType === 1) {
|
|
337
|
-
if (o.hasAttributes())
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
c.startsWith(ht) && (l.push({ type: 6, index: r }), o.removeAttribute(c));
|
|
344
|
-
if (Pi.test(o.tagName)) {
|
|
345
|
-
const c = o.textContent.split(ht), p = c.length - 1;
|
|
313
|
+
if (o.hasAttributes()) for (const c of o.getAttributeNames()) if (c.endsWith(Bn)) {
|
|
314
|
+
const p = d[s++], f = o.getAttribute(c).split(pt), g = /([.?@])?(.*)/.exec(p);
|
|
315
|
+
l.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Ti : g[1] === "?" ? Pi : g[1] === "@" ? Oi : be }), o.removeAttribute(c);
|
|
316
|
+
} else c.startsWith(pt) && (l.push({ type: 6, index: r }), o.removeAttribute(c));
|
|
317
|
+
if ($i.test(o.tagName)) {
|
|
318
|
+
const c = o.textContent.split(pt), p = c.length - 1;
|
|
346
319
|
if (p > 0) {
|
|
347
|
-
o.textContent =
|
|
348
|
-
for (let f = 0; f < p; f++)
|
|
349
|
-
|
|
350
|
-
o.append(c[p], ce());
|
|
320
|
+
o.textContent = He ? He.emptyScript : "";
|
|
321
|
+
for (let f = 0; f < p; f++) o.append(c[f], de()), Nt.nextNode(), l.push({ type: 2, index: ++r });
|
|
322
|
+
o.append(c[p], de());
|
|
351
323
|
}
|
|
352
324
|
}
|
|
353
|
-
} else if (o.nodeType === 8)
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
for (; (c = o.data.indexOf(ht, c + 1)) !== -1; )
|
|
359
|
-
l.push({ type: 7, index: r }), c += ht.length - 1;
|
|
360
|
-
}
|
|
325
|
+
} else if (o.nodeType === 8) if (o.data === Vn) l.push({ type: 2, index: r });
|
|
326
|
+
else {
|
|
327
|
+
let c = -1;
|
|
328
|
+
for (; (c = o.data.indexOf(pt, c + 1)) !== -1; ) l.push({ type: 7, index: r }), c += pt.length - 1;
|
|
329
|
+
}
|
|
361
330
|
r++;
|
|
362
331
|
}
|
|
363
332
|
}
|
|
364
333
|
static createElement(t, e) {
|
|
365
|
-
const i =
|
|
334
|
+
const i = It.createElement("template");
|
|
366
335
|
return i.innerHTML = t, i;
|
|
367
336
|
}
|
|
368
337
|
}
|
|
369
|
-
function
|
|
338
|
+
function Ht(n, t, e = n, i) {
|
|
370
339
|
var s, a;
|
|
371
|
-
if (t ===
|
|
372
|
-
return t;
|
|
340
|
+
if (t === ot) return t;
|
|
373
341
|
let o = i !== void 0 ? (s = e._$Co) == null ? void 0 : s[i] : e._$Cl;
|
|
374
|
-
const r =
|
|
375
|
-
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 =
|
|
342
|
+
const r = he(t) ? void 0 : t._$litDirective$;
|
|
343
|
+
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 = Ht(n, o._$AS(n, t.values), o, i)), t;
|
|
376
344
|
}
|
|
377
|
-
class
|
|
345
|
+
class Ci {
|
|
378
346
|
constructor(t, e) {
|
|
379
347
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
380
348
|
}
|
|
@@ -385,31 +353,30 @@ class Di {
|
|
|
385
353
|
return this._$AM._$AU;
|
|
386
354
|
}
|
|
387
355
|
u(t) {
|
|
388
|
-
const { el: { content: e }, parts: i } = this._$AD, o = ((t == null ? void 0 : t.creationScope) ??
|
|
389
|
-
|
|
390
|
-
let r =
|
|
356
|
+
const { el: { content: e }, parts: i } = this._$AD, o = ((t == null ? void 0 : t.creationScope) ?? It).importNode(e, !0);
|
|
357
|
+
Nt.currentNode = o;
|
|
358
|
+
let r = Nt.nextNode(), s = 0, a = 0, l = i[0];
|
|
391
359
|
for (; l !== void 0; ) {
|
|
392
360
|
if (s === l.index) {
|
|
393
361
|
let u;
|
|
394
|
-
l.type === 2 ? u = new
|
|
362
|
+
l.type === 2 ? u = new Yt(r, r.nextSibling, this, t) : l.type === 1 ? u = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (u = new Ri(r, this, t)), this._$AV.push(u), l = i[++a];
|
|
395
363
|
}
|
|
396
|
-
s !== (l == null ? void 0 : l.index) && (r =
|
|
364
|
+
s !== (l == null ? void 0 : l.index) && (r = Nt.nextNode(), s++);
|
|
397
365
|
}
|
|
398
|
-
return
|
|
366
|
+
return Nt.currentNode = It, o;
|
|
399
367
|
}
|
|
400
368
|
p(t) {
|
|
401
369
|
let e = 0;
|
|
402
|
-
for (const i of this._$AV)
|
|
403
|
-
i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
|
370
|
+
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++;
|
|
404
371
|
}
|
|
405
372
|
}
|
|
406
|
-
class
|
|
373
|
+
class Yt {
|
|
407
374
|
get _$AU() {
|
|
408
375
|
var t;
|
|
409
376
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
410
377
|
}
|
|
411
378
|
constructor(t, e, i, o) {
|
|
412
|
-
this.type = 2, this._$AH =
|
|
379
|
+
this.type = 2, this._$AH = C, 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;
|
|
413
380
|
}
|
|
414
381
|
get parentNode() {
|
|
415
382
|
let t = this._$AA.parentNode;
|
|
@@ -423,7 +390,7 @@ class Xt {
|
|
|
423
390
|
return this._$AB;
|
|
424
391
|
}
|
|
425
392
|
_$AI(t, e = this) {
|
|
426
|
-
t =
|
|
393
|
+
t = Ht(this, t, e), he(t) ? t === C || t == null || t === "" ? (this._$AH !== C && this._$AR(), this._$AH = C) : t !== this._$AH && t !== ot && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Si(t) ? this.k(t) : this._(t);
|
|
427
394
|
}
|
|
428
395
|
S(t) {
|
|
429
396
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -432,28 +399,26 @@ class Xt {
|
|
|
432
399
|
this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
|
|
433
400
|
}
|
|
434
401
|
_(t) {
|
|
435
|
-
this._$AH !==
|
|
402
|
+
this._$AH !== C && he(this._$AH) ? this._$AA.nextSibling.data = t : this.T(It.createTextNode(t)), this._$AH = t;
|
|
436
403
|
}
|
|
437
404
|
$(t) {
|
|
438
405
|
var r;
|
|
439
|
-
const { values: e, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el =
|
|
440
|
-
if (((r = this._$AH) == null ? void 0 : r._$AD) === o)
|
|
441
|
-
this._$AH.p(e);
|
|
406
|
+
const { values: e, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = pe.createElement(_i(i.h, i.h[0]), this.options)), i);
|
|
407
|
+
if (((r = this._$AH) == null ? void 0 : r._$AD) === o) this._$AH.p(e);
|
|
442
408
|
else {
|
|
443
|
-
const s = new
|
|
409
|
+
const s = new Ci(o, this), a = s.u(this.options);
|
|
444
410
|
s.p(e), this.T(a), this._$AH = s;
|
|
445
411
|
}
|
|
446
412
|
}
|
|
447
413
|
_$AC(t) {
|
|
448
|
-
let e =
|
|
449
|
-
return e === void 0 &&
|
|
414
|
+
let e = oi.get(t.strings);
|
|
415
|
+
return e === void 0 && oi.set(t.strings, e = new pe(t)), e;
|
|
450
416
|
}
|
|
451
417
|
k(t) {
|
|
452
|
-
|
|
418
|
+
xi(this._$AH) || (this._$AH = [], this._$AR());
|
|
453
419
|
const e = this._$AH;
|
|
454
420
|
let i, o = 0;
|
|
455
|
-
for (const r of t)
|
|
456
|
-
o === e.length ? e.push(i = new Xt(this.S(ce()), this.S(ce()), this, this.options)) : i = e[o], i._$AI(r), o++;
|
|
421
|
+
for (const r of t) o === e.length ? e.push(i = new Yt(this.S(de()), this.S(de()), this, this.options)) : i = e[o], i._$AI(r), o++;
|
|
457
422
|
o < e.length && (this._$AR(i && i._$AB.nextSibling, o), e.length = o);
|
|
458
423
|
}
|
|
459
424
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -468,7 +433,7 @@ class Xt {
|
|
|
468
433
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
|
469
434
|
}
|
|
470
435
|
}
|
|
471
|
-
class
|
|
436
|
+
class be {
|
|
472
437
|
get tagName() {
|
|
473
438
|
return this.element.tagName;
|
|
474
439
|
}
|
|
@@ -476,49 +441,46 @@ class ve {
|
|
|
476
441
|
return this._$AM._$AU;
|
|
477
442
|
}
|
|
478
443
|
constructor(t, e, i, o, r) {
|
|
479
|
-
this.type = 1, this._$AH =
|
|
444
|
+
this.type = 1, this._$AH = C, 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 = C;
|
|
480
445
|
}
|
|
481
446
|
_$AI(t, e = this, i, o) {
|
|
482
447
|
const r = this.strings;
|
|
483
448
|
let s = !1;
|
|
484
|
-
if (r === void 0)
|
|
485
|
-
t = Mt(this, t, e, 0), s = !de(t) || t !== this._$AH && t !== it, s && (this._$AH = t);
|
|
449
|
+
if (r === void 0) t = Ht(this, t, e, 0), s = !he(t) || t !== this._$AH && t !== ot, s && (this._$AH = t);
|
|
486
450
|
else {
|
|
487
451
|
const a = t;
|
|
488
452
|
let l, u;
|
|
489
|
-
for (t = r[0], l = 0; l < r.length - 1; l++)
|
|
490
|
-
u = Mt(this, a[i + l], e, l), u === it && (u = this._$AH[l]), s || (s = !de(u) || u !== this._$AH[l]), u === T ? t = T : t !== T && (t += (u ?? "") + r[l + 1]), this._$AH[l] = u;
|
|
453
|
+
for (t = r[0], l = 0; l < r.length - 1; l++) u = Ht(this, a[i + l], e, l), u === ot && (u = this._$AH[l]), s || (s = !he(u) || u !== this._$AH[l]), u === C ? t = C : t !== C && (t += (u ?? "") + r[l + 1]), this._$AH[l] = u;
|
|
491
454
|
}
|
|
492
455
|
s && !o && this.j(t);
|
|
493
456
|
}
|
|
494
457
|
j(t) {
|
|
495
|
-
t ===
|
|
458
|
+
t === C ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
496
459
|
}
|
|
497
460
|
}
|
|
498
|
-
class
|
|
461
|
+
class Ti extends be {
|
|
499
462
|
constructor() {
|
|
500
463
|
super(...arguments), this.type = 3;
|
|
501
464
|
}
|
|
502
465
|
j(t) {
|
|
503
|
-
this.element[this.name] = t ===
|
|
466
|
+
this.element[this.name] = t === C ? void 0 : t;
|
|
504
467
|
}
|
|
505
468
|
}
|
|
506
|
-
class
|
|
469
|
+
class Pi extends be {
|
|
507
470
|
constructor() {
|
|
508
471
|
super(...arguments), this.type = 4;
|
|
509
472
|
}
|
|
510
473
|
j(t) {
|
|
511
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
|
474
|
+
this.element.toggleAttribute(this.name, !!t && t !== C);
|
|
512
475
|
}
|
|
513
476
|
}
|
|
514
|
-
class
|
|
477
|
+
class Oi extends be {
|
|
515
478
|
constructor(t, e, i, o, r) {
|
|
516
479
|
super(t, e, i, o, r), this.type = 5;
|
|
517
480
|
}
|
|
518
481
|
_$AI(t, e = this) {
|
|
519
|
-
if ((t =
|
|
520
|
-
|
|
521
|
-
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);
|
|
482
|
+
if ((t = Ht(this, t, e, 0) ?? C) === ot) return;
|
|
483
|
+
const i = this._$AH, o = t === C && i !== C || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, r = t !== C && (i === C || o);
|
|
522
484
|
o && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
523
485
|
}
|
|
524
486
|
handleEvent(t) {
|
|
@@ -526,7 +488,7 @@ class Ii extends ve {
|
|
|
526
488
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
527
489
|
}
|
|
528
490
|
}
|
|
529
|
-
class
|
|
491
|
+
class Ri {
|
|
530
492
|
constructor(t, e, i) {
|
|
531
493
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
|
532
494
|
}
|
|
@@ -534,17 +496,17 @@ class Hi {
|
|
|
534
496
|
return this._$AM._$AU;
|
|
535
497
|
}
|
|
536
498
|
_$AI(t) {
|
|
537
|
-
|
|
499
|
+
Ht(this, t);
|
|
538
500
|
}
|
|
539
501
|
}
|
|
540
|
-
const
|
|
541
|
-
|
|
542
|
-
const
|
|
502
|
+
const Fo = { P: Bn, A: pt, C: Vn, M: 1, L: Ai, R: Ci, D: Si, V: Ht, I: Yt, H: be, N: Pi, U: Oi, B: Ti, F: Ri }, pn = re.litHtmlPolyfillSupport;
|
|
503
|
+
pn == null || pn(pe, Yt), (re.litHtmlVersions ?? (re.litHtmlVersions = [])).push("3.1.2");
|
|
504
|
+
const jo = (n, t, e) => {
|
|
543
505
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
544
506
|
let o = i._$litPart$;
|
|
545
507
|
if (o === void 0) {
|
|
546
508
|
const r = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
547
|
-
i._$litPart$ = o = new
|
|
509
|
+
i._$litPart$ = o = new Yt(t.insertBefore(de(), r), r, void 0, e ?? {});
|
|
548
510
|
}
|
|
549
511
|
return o._$AI(n), o;
|
|
550
512
|
};
|
|
@@ -553,7 +515,7 @@ const Yo = (n, t, e) => {
|
|
|
553
515
|
* Copyright 2017 Google LLC
|
|
554
516
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
555
517
|
*/
|
|
556
|
-
let
|
|
518
|
+
let nt = class extends Lt {
|
|
557
519
|
constructor() {
|
|
558
520
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
559
521
|
}
|
|
@@ -564,7 +526,7 @@ let et = class extends Bt {
|
|
|
564
526
|
}
|
|
565
527
|
update(t) {
|
|
566
528
|
const e = this.render();
|
|
567
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
529
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = jo(e, this.renderRoot, this.renderOptions);
|
|
568
530
|
}
|
|
569
531
|
connectedCallback() {
|
|
570
532
|
var t;
|
|
@@ -575,20 +537,20 @@ let et = class extends Bt {
|
|
|
575
537
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
576
538
|
}
|
|
577
539
|
render() {
|
|
578
|
-
return
|
|
540
|
+
return ot;
|
|
579
541
|
}
|
|
580
542
|
};
|
|
581
|
-
var
|
|
582
|
-
|
|
583
|
-
const
|
|
584
|
-
|
|
543
|
+
var vi;
|
|
544
|
+
nt._$litElement$ = !0, nt.finalized = !0, (vi = globalThis.litElementHydrateSupport) == null || vi.call(globalThis, { LitElement: nt });
|
|
545
|
+
const fn = globalThis.litElementPolyfillSupport;
|
|
546
|
+
fn == null || fn({ LitElement: nt });
|
|
585
547
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
|
|
586
548
|
/**
|
|
587
549
|
* @license
|
|
588
550
|
* Copyright 2021 Google LLC
|
|
589
551
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
590
552
|
*/
|
|
591
|
-
function
|
|
553
|
+
function rt(n, t, e) {
|
|
592
554
|
return n ? t(n) : e == null ? void 0 : e(n);
|
|
593
555
|
}
|
|
594
556
|
/**
|
|
@@ -596,8 +558,8 @@ function ot(n, t, e) {
|
|
|
596
558
|
* Copyright 2017 Google LLC
|
|
597
559
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
598
560
|
*/
|
|
599
|
-
const
|
|
600
|
-
class
|
|
561
|
+
const Et = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Ln = (n) => (...t) => ({ _$litDirective$: n, values: t });
|
|
562
|
+
class kn {
|
|
601
563
|
constructor(t) {
|
|
602
564
|
}
|
|
603
565
|
get _$AU() {
|
|
@@ -618,12 +580,12 @@ class Xn {
|
|
|
618
580
|
* Copyright 2020 Google LLC
|
|
619
581
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
620
582
|
*/
|
|
621
|
-
const { I:
|
|
583
|
+
const { I: zo } = Fo, Zo = (n) => n.strings === void 0, ri = () => document.createComment(""), te = (n, t, e) => {
|
|
622
584
|
var r;
|
|
623
585
|
const i = n._$AA.parentNode, o = t === void 0 ? n._$AB : t._$AA;
|
|
624
586
|
if (e === void 0) {
|
|
625
|
-
const s = i.insertBefore(
|
|
626
|
-
e = new
|
|
587
|
+
const s = i.insertBefore(ri(), o), a = i.insertBefore(ri(), o);
|
|
588
|
+
e = new zo(s, a, n, n.options);
|
|
627
589
|
} else {
|
|
628
590
|
const s = e._$AB.nextSibling, a = e._$AM, l = a !== n;
|
|
629
591
|
if (l) {
|
|
@@ -639,7 +601,7 @@ const { I: qo } = Xo, Wo = (n) => n.strings === void 0, ci = () => document.crea
|
|
|
639
601
|
}
|
|
640
602
|
}
|
|
641
603
|
return e;
|
|
642
|
-
},
|
|
604
|
+
}, Pt = (n, t, e = n) => (n._$AI(t, e), n), Xo = {}, Di = (n, t = Xo) => n._$AH = t, Yo = (n) => n._$AH, gn = (n) => {
|
|
643
605
|
var i;
|
|
644
606
|
(i = n._$AP) == null || i.call(n, !1, !0);
|
|
645
607
|
let t = n._$AA;
|
|
@@ -654,69 +616,54 @@ const { I: qo } = Xo, Wo = (n) => n.strings === void 0, ci = () => document.crea
|
|
|
654
616
|
* Copyright 2017 Google LLC
|
|
655
617
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
656
618
|
*/
|
|
657
|
-
const
|
|
619
|
+
const si = (n, t, e) => {
|
|
658
620
|
const i = /* @__PURE__ */ new Map();
|
|
659
|
-
for (let o = t; o <= e; o++)
|
|
660
|
-
i.set(n[o], o);
|
|
621
|
+
for (let o = t; o <= e; o++) i.set(n[o], o);
|
|
661
622
|
return i;
|
|
662
|
-
},
|
|
623
|
+
}, qo = Ln(class extends kn {
|
|
663
624
|
constructor(n) {
|
|
664
|
-
if (super(n), n.type !==
|
|
665
|
-
throw Error("repeat() can only be used in text expressions");
|
|
625
|
+
if (super(n), n.type !== Et.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
666
626
|
}
|
|
667
627
|
dt(n, t, e) {
|
|
668
628
|
let i;
|
|
669
629
|
e === void 0 ? e = t : t !== void 0 && (i = t);
|
|
670
630
|
const o = [], r = [];
|
|
671
631
|
let s = 0;
|
|
672
|
-
for (const a of n)
|
|
673
|
-
o[s] = i ? i(a, s) : s, r[s] = e(a, s), s++;
|
|
632
|
+
for (const a of n) o[s] = i ? i(a, s) : s, r[s] = e(a, s), s++;
|
|
674
633
|
return { values: r, keys: o };
|
|
675
634
|
}
|
|
676
635
|
render(n, t, e) {
|
|
677
636
|
return this.dt(n, t, e).values;
|
|
678
637
|
}
|
|
679
638
|
update(n, [t, e, i]) {
|
|
680
|
-
const o =
|
|
681
|
-
if (!Array.isArray(o))
|
|
682
|
-
return this.ut = s, r;
|
|
639
|
+
const o = Yo(n), { values: r, keys: s } = this.dt(t, e, i);
|
|
640
|
+
if (!Array.isArray(o)) return this.ut = s, r;
|
|
683
641
|
const a = this.ut ?? (this.ut = []), l = [];
|
|
684
642
|
let u, d, c = 0, p = o.length - 1, f = 0, g = r.length - 1;
|
|
685
|
-
for (; c <= p && f <= g; )
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
else
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
const y = d.get(s[f]), P = y !== void 0 ? o[y] : null;
|
|
701
|
-
if (P === null) {
|
|
702
|
-
const L = Qt(n, o[c]);
|
|
703
|
-
Ct(L, r[f]), l[f] = L;
|
|
704
|
-
} else
|
|
705
|
-
l[f] = Ct(P, r[f]), Qt(n, o[c], P), o[y] = null;
|
|
706
|
-
f++;
|
|
707
|
-
} else
|
|
708
|
-
En(o[p]), p--;
|
|
709
|
-
else
|
|
710
|
-
En(o[c]), c++;
|
|
643
|
+
for (; c <= p && f <= g; ) if (o[c] === null) c++;
|
|
644
|
+
else if (o[p] === null) p--;
|
|
645
|
+
else if (a[c] === s[f]) l[f] = Pt(o[c], r[f]), c++, f++;
|
|
646
|
+
else if (a[p] === s[g]) l[g] = Pt(o[p], r[g]), p--, g--;
|
|
647
|
+
else if (a[c] === s[g]) l[g] = Pt(o[c], r[g]), te(n, l[g + 1], o[c]), c++, g--;
|
|
648
|
+
else if (a[p] === s[f]) l[f] = Pt(o[p], r[f]), te(n, o[c], o[p]), p--, f++;
|
|
649
|
+
else if (u === void 0 && (u = si(s, f, g), d = si(a, c, p)), u.has(a[c])) if (u.has(a[p])) {
|
|
650
|
+
const y = d.get(s[f]), P = y !== void 0 ? o[y] : null;
|
|
651
|
+
if (P === null) {
|
|
652
|
+
const L = te(n, o[c]);
|
|
653
|
+
Pt(L, r[f]), l[f] = L;
|
|
654
|
+
} else l[f] = Pt(P, r[f]), te(n, o[c], P), o[y] = null;
|
|
655
|
+
f++;
|
|
656
|
+
} else gn(o[p]), p--;
|
|
657
|
+
else gn(o[c]), c++;
|
|
711
658
|
for (; f <= g; ) {
|
|
712
|
-
const y =
|
|
713
|
-
|
|
659
|
+
const y = te(n, l[g + 1]);
|
|
660
|
+
Pt(y, r[f]), l[f++] = y;
|
|
714
661
|
}
|
|
715
662
|
for (; c <= p; ) {
|
|
716
663
|
const y = o[c++];
|
|
717
|
-
y !== null &&
|
|
664
|
+
y !== null && gn(y);
|
|
718
665
|
}
|
|
719
|
-
return this.ut = s,
|
|
666
|
+
return this.ut = s, Di(n, l), ot;
|
|
720
667
|
}
|
|
721
668
|
});
|
|
722
669
|
/**
|
|
@@ -725,8 +672,8 @@ const di = (n, t, e) => {
|
|
|
725
672
|
* @license BSD-2-Clause
|
|
726
673
|
* @preserve
|
|
727
674
|
*/
|
|
728
|
-
var E = (n) => n !== void 0,
|
|
729
|
-
const
|
|
675
|
+
var E = (n) => n !== void 0, Ni = (n, t, e) => t in n ? n[t] : n[t] = e;
|
|
676
|
+
const fe = {
|
|
730
677
|
ELEMENT: 1,
|
|
731
678
|
ATTRIBUTE: 2,
|
|
732
679
|
TEXT: 3,
|
|
@@ -740,7 +687,7 @@ const pe = {
|
|
|
740
687
|
DOCUMENT_FRAGMENT: 11,
|
|
741
688
|
NOTATION: 12
|
|
742
689
|
};
|
|
743
|
-
class
|
|
690
|
+
class Wo {
|
|
744
691
|
/**
|
|
745
692
|
* XML DOM parser
|
|
746
693
|
* @constructor
|
|
@@ -765,24 +712,24 @@ class Qo {
|
|
|
765
712
|
* @api
|
|
766
713
|
*/
|
|
767
714
|
getAllTextContent(t, e) {
|
|
768
|
-
return
|
|
715
|
+
return ln(t, e).join("");
|
|
769
716
|
}
|
|
770
717
|
}
|
|
771
|
-
function
|
|
772
|
-
return
|
|
718
|
+
function ln(n, t) {
|
|
719
|
+
return Mi(n, t, []).join("");
|
|
773
720
|
}
|
|
774
|
-
function
|
|
775
|
-
if (n.nodeType ===
|
|
721
|
+
function Mi(n, t, e) {
|
|
722
|
+
if (n.nodeType === fe.CDATA_SECTION || n.nodeType === fe.TEXT)
|
|
776
723
|
t ? e.push(String(n.nodeValue).replace(/(\r\n|\r|\n)/g, "")) : e.push(n.nodeValue);
|
|
777
724
|
else {
|
|
778
725
|
var i;
|
|
779
726
|
for (i = n.firstChild; i; i = i.nextSibling)
|
|
780
|
-
|
|
727
|
+
Mi(i, t, e);
|
|
781
728
|
}
|
|
782
729
|
return e;
|
|
783
730
|
}
|
|
784
|
-
function
|
|
785
|
-
for (var o =
|
|
731
|
+
function Go(n, t, e, i) {
|
|
732
|
+
for (var o = Jo(t); o; o = Ko(o)) {
|
|
786
733
|
var r = o.namespaceURI || null, s = n[r];
|
|
787
734
|
if (E(s)) {
|
|
788
735
|
var a = s[o.localName];
|
|
@@ -790,31 +737,31 @@ function tr(n, t, e, i) {
|
|
|
790
737
|
}
|
|
791
738
|
}
|
|
792
739
|
}
|
|
793
|
-
function
|
|
740
|
+
function Jo(n) {
|
|
794
741
|
let t = n.firstElementChild || n.firstChild;
|
|
795
|
-
for (; t && t.nodeType !==
|
|
742
|
+
for (; t && t.nodeType !== fe.ELEMENT; )
|
|
796
743
|
t = t.nextSibling;
|
|
797
744
|
return t;
|
|
798
745
|
}
|
|
799
|
-
function
|
|
746
|
+
function Ko(n) {
|
|
800
747
|
let t = n.nextElementSibling || n.nextSibling;
|
|
801
|
-
for (; t && t.nodeType !==
|
|
748
|
+
for (; t && t.nodeType !== fe.ELEMENT; )
|
|
802
749
|
t = t.nextSibling;
|
|
803
750
|
return t;
|
|
804
751
|
}
|
|
805
|
-
function
|
|
752
|
+
function j(n, t, e) {
|
|
806
753
|
return (
|
|
807
754
|
/** @type {Object.<string, Object.<string, XMLParser.Parser>>} */
|
|
808
|
-
|
|
755
|
+
Qo(n, t, e)
|
|
809
756
|
);
|
|
810
757
|
}
|
|
811
|
-
function
|
|
758
|
+
function Qo(n, t, e) {
|
|
812
759
|
var i = E(e) ? e : {}, o, r;
|
|
813
760
|
for (o = 0, r = n.length; o < r; ++o)
|
|
814
761
|
i[n[o]] = t;
|
|
815
762
|
return i;
|
|
816
763
|
}
|
|
817
|
-
function
|
|
764
|
+
function Ii(n, t) {
|
|
818
765
|
return (
|
|
819
766
|
/**
|
|
820
767
|
* @param {Node} node Node.
|
|
@@ -834,7 +781,7 @@ function ki(n, t) {
|
|
|
834
781
|
);
|
|
835
782
|
}
|
|
836
783
|
function V(n, t, e, i, o) {
|
|
837
|
-
return i.push(n),
|
|
784
|
+
return i.push(n), Go(t, e, i, o), i.pop();
|
|
838
785
|
}
|
|
839
786
|
function m(n, t, e) {
|
|
840
787
|
return (
|
|
@@ -858,7 +805,7 @@ function m(n, t, e) {
|
|
|
858
805
|
}
|
|
859
806
|
);
|
|
860
807
|
}
|
|
861
|
-
function
|
|
808
|
+
function J(n, t, e) {
|
|
862
809
|
return (
|
|
863
810
|
/**
|
|
864
811
|
* @param {Node} node Node.
|
|
@@ -874,59 +821,59 @@ function G(n, t, e) {
|
|
|
874
821
|
var s = (
|
|
875
822
|
/** @type {Object} */
|
|
876
823
|
o[o.length - 1]
|
|
877
|
-
), a = E(t) ? t : i.localName, l =
|
|
824
|
+
), a = E(t) ? t : i.localName, l = Ni(s, a, []);
|
|
878
825
|
l.push(r);
|
|
879
826
|
}
|
|
880
827
|
}
|
|
881
828
|
);
|
|
882
829
|
}
|
|
883
|
-
const
|
|
884
|
-
function
|
|
885
|
-
return n.replace(
|
|
830
|
+
const tr = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
|
|
831
|
+
function er(n) {
|
|
832
|
+
return n.replace(tr, "");
|
|
886
833
|
}
|
|
887
|
-
function
|
|
834
|
+
function Mt(n) {
|
|
888
835
|
const t = /^\s*(true|1)|(false|0)\s*$/.exec(n);
|
|
889
836
|
if (t)
|
|
890
837
|
return E(t[1]) || !1;
|
|
891
838
|
}
|
|
892
|
-
function
|
|
893
|
-
return
|
|
839
|
+
function Ut(n) {
|
|
840
|
+
return ft(ln(n, !1));
|
|
894
841
|
}
|
|
895
|
-
function
|
|
842
|
+
function ft(n) {
|
|
896
843
|
const t = /^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(n);
|
|
897
844
|
if (t)
|
|
898
845
|
return parseFloat(t[1]);
|
|
899
846
|
}
|
|
900
|
-
function
|
|
901
|
-
return
|
|
847
|
+
function mn(n) {
|
|
848
|
+
return Be(ln(n, !1));
|
|
902
849
|
}
|
|
903
|
-
function
|
|
850
|
+
function Be(n) {
|
|
904
851
|
const t = /^\s*(\d+)\s*$/.exec(n);
|
|
905
852
|
if (t)
|
|
906
853
|
return parseInt(t[1], 10);
|
|
907
854
|
}
|
|
908
|
-
function
|
|
909
|
-
return
|
|
855
|
+
function $(n) {
|
|
856
|
+
return er(ln(n, !1));
|
|
910
857
|
}
|
|
911
|
-
const
|
|
912
|
-
function
|
|
913
|
-
return n.getAttributeNS(
|
|
858
|
+
const nr = "http://www.w3.org/1999/xlink";
|
|
859
|
+
function Un(n) {
|
|
860
|
+
return n.getAttributeNS(nr, "href");
|
|
914
861
|
}
|
|
915
|
-
function
|
|
916
|
-
return V({},
|
|
862
|
+
function ir(n, t) {
|
|
863
|
+
return V({}, Or, n, t);
|
|
917
864
|
}
|
|
918
|
-
function
|
|
865
|
+
function Hi(n) {
|
|
919
866
|
return [
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
867
|
+
ft(n.getAttribute("minx")),
|
|
868
|
+
ft(n.getAttribute("miny")),
|
|
869
|
+
ft(n.getAttribute("maxx")),
|
|
870
|
+
ft(n.getAttribute("maxy"))
|
|
924
871
|
];
|
|
925
872
|
}
|
|
926
|
-
function
|
|
927
|
-
const e =
|
|
928
|
-
|
|
929
|
-
|
|
873
|
+
function or(n, t) {
|
|
874
|
+
const e = Hi(n), i = [
|
|
875
|
+
ft(n.getAttribute("resx")),
|
|
876
|
+
ft(n.getAttribute("resy"))
|
|
930
877
|
];
|
|
931
878
|
return {
|
|
932
879
|
crs: n.getAttribute("CRS") || n.getAttribute("SRS"),
|
|
@@ -934,24 +881,23 @@ function lr(n, t) {
|
|
|
934
881
|
res: i
|
|
935
882
|
};
|
|
936
883
|
}
|
|
937
|
-
function
|
|
938
|
-
const e =
|
|
884
|
+
function rr(n, t) {
|
|
885
|
+
const e = Hi(n);
|
|
939
886
|
if (!(!E(e[0]) || !E(e[1]) || !E(e[2]) || !E(e[3])))
|
|
940
887
|
return e;
|
|
941
888
|
}
|
|
942
|
-
function
|
|
889
|
+
function sr(n, t) {
|
|
943
890
|
const e = parseFloat(n.getAttribute("min")), i = parseFloat(n.getAttribute("max"));
|
|
944
891
|
return { min: e, max: i };
|
|
945
892
|
}
|
|
946
|
-
function
|
|
893
|
+
function ar(n, t) {
|
|
947
894
|
const e = V(
|
|
948
895
|
{},
|
|
949
|
-
|
|
896
|
+
Rr,
|
|
950
897
|
n,
|
|
951
898
|
t
|
|
952
899
|
);
|
|
953
|
-
if (!E(e))
|
|
954
|
-
return;
|
|
900
|
+
if (!E(e)) return;
|
|
955
901
|
const i = (
|
|
956
902
|
/** @type {number|undefined} */
|
|
957
903
|
e.westBoundLongitude
|
|
@@ -973,56 +919,56 @@ function dr(n, t) {
|
|
|
973
919
|
s
|
|
974
920
|
];
|
|
975
921
|
}
|
|
976
|
-
function
|
|
977
|
-
return V({},
|
|
922
|
+
function lr(n, t) {
|
|
923
|
+
return V({}, $r, n, t);
|
|
978
924
|
}
|
|
979
|
-
function
|
|
980
|
-
return V({},
|
|
925
|
+
function ur(n, t) {
|
|
926
|
+
return V({}, _r, n, t);
|
|
981
927
|
}
|
|
982
|
-
function
|
|
928
|
+
function cr(n, t) {
|
|
983
929
|
return V(
|
|
984
930
|
{},
|
|
985
|
-
|
|
931
|
+
Ar,
|
|
986
932
|
n,
|
|
987
933
|
t
|
|
988
934
|
);
|
|
989
935
|
}
|
|
990
|
-
function
|
|
936
|
+
function dr(n, t) {
|
|
991
937
|
return V(
|
|
992
938
|
{},
|
|
993
|
-
|
|
939
|
+
Cr,
|
|
994
940
|
n,
|
|
995
941
|
t
|
|
996
942
|
);
|
|
997
943
|
}
|
|
998
|
-
function
|
|
944
|
+
function hr(n, t) {
|
|
999
945
|
return V(
|
|
1000
946
|
{},
|
|
1001
|
-
|
|
947
|
+
Tr,
|
|
1002
948
|
n,
|
|
1003
949
|
t
|
|
1004
950
|
);
|
|
1005
951
|
}
|
|
1006
|
-
function
|
|
952
|
+
function pr(n, t) {
|
|
1007
953
|
return V(
|
|
1008
954
|
[],
|
|
1009
|
-
|
|
955
|
+
Pr,
|
|
1010
956
|
n,
|
|
1011
957
|
t
|
|
1012
958
|
);
|
|
1013
959
|
}
|
|
1014
|
-
function
|
|
1015
|
-
const e =
|
|
960
|
+
function fr(n, t) {
|
|
961
|
+
const e = Mt(n.getAttribute("queryable"));
|
|
1016
962
|
return V(
|
|
1017
963
|
{
|
|
1018
964
|
queryable: E(e) ? e : !1
|
|
1019
965
|
},
|
|
1020
|
-
|
|
966
|
+
Li,
|
|
1021
967
|
n,
|
|
1022
968
|
t
|
|
1023
969
|
);
|
|
1024
970
|
}
|
|
1025
|
-
function
|
|
971
|
+
function gr(n, t) {
|
|
1026
972
|
var e = (
|
|
1027
973
|
/** @type {Object.<string,*>} */
|
|
1028
974
|
t[t.length - 1]
|
|
@@ -1031,30 +977,29 @@ function vr(n, t) {
|
|
|
1031
977
|
/** @type {Object.<string,*>} */
|
|
1032
978
|
V(
|
|
1033
979
|
{},
|
|
1034
|
-
|
|
980
|
+
Li,
|
|
1035
981
|
n,
|
|
1036
982
|
t
|
|
1037
983
|
)
|
|
1038
984
|
);
|
|
1039
|
-
if (!E(i))
|
|
1040
|
-
|
|
1041
|
-
let o = Dt(n.getAttribute("queryable"));
|
|
985
|
+
if (!E(i)) return;
|
|
986
|
+
let o = Mt(n.getAttribute("queryable"));
|
|
1042
987
|
E(o) || (o = e.queryable), i.queryable = E(o) ? o : !1;
|
|
1043
|
-
let r =
|
|
988
|
+
let r = Be(n.getAttribute("cascaded"));
|
|
1044
989
|
E(r) || (r = e.cascaded), i.cascaded = r;
|
|
1045
|
-
let s =
|
|
990
|
+
let s = Mt(n.getAttribute("opaque"));
|
|
1046
991
|
E(s) || (s = e.opaque), i.opaque = E(s) ? s : !1;
|
|
1047
|
-
let a =
|
|
992
|
+
let a = Mt(n.getAttribute("noSubsets"));
|
|
1048
993
|
E(a) || (a = e.noSubsets), i.noSubsets = E(a) ? a : !1;
|
|
1049
|
-
let l =
|
|
994
|
+
let l = ft(n.getAttribute("fixedWidth"));
|
|
1050
995
|
E(l) || (l = e.fixedWidth), i.fixedWidth = l;
|
|
1051
|
-
let u =
|
|
996
|
+
let u = ft(n.getAttribute("fixedHeight"));
|
|
1052
997
|
E(u) || (u = e.fixedHeight), i.fixedHeight = u;
|
|
1053
998
|
const d = ["Style", "CRS", "AuthorityURL"];
|
|
1054
999
|
for (let p = 0, f = d.length; p < f; p++) {
|
|
1055
1000
|
const g = d[p], y = e[g];
|
|
1056
1001
|
if (E(y)) {
|
|
1057
|
-
let P =
|
|
1002
|
+
let P = Ni(i, g, []);
|
|
1058
1003
|
P = P.concat(y), i[g] = P;
|
|
1059
1004
|
}
|
|
1060
1005
|
}
|
|
@@ -1075,229 +1020,229 @@ function vr(n, t) {
|
|
|
1075
1020
|
}
|
|
1076
1021
|
return i;
|
|
1077
1022
|
}
|
|
1078
|
-
function
|
|
1023
|
+
function mr(n, t) {
|
|
1079
1024
|
return {
|
|
1080
1025
|
name: n.getAttribute("name"),
|
|
1081
1026
|
units: n.getAttribute("units"),
|
|
1082
1027
|
unitSymbol: n.getAttribute("unitSymbol"),
|
|
1083
1028
|
default: n.getAttribute("default"),
|
|
1084
|
-
multipleValues:
|
|
1085
|
-
nearestValue:
|
|
1086
|
-
current:
|
|
1087
|
-
values:
|
|
1029
|
+
multipleValues: Mt(n.getAttribute("multipleValues")),
|
|
1030
|
+
nearestValue: Mt(n.getAttribute("nearestValue")),
|
|
1031
|
+
current: Mt(n.getAttribute("current")),
|
|
1032
|
+
values: $(n)
|
|
1088
1033
|
};
|
|
1089
1034
|
}
|
|
1090
|
-
function
|
|
1035
|
+
function mt(n, t) {
|
|
1091
1036
|
return V(
|
|
1092
1037
|
{},
|
|
1093
|
-
|
|
1038
|
+
Br,
|
|
1094
1039
|
n,
|
|
1095
1040
|
t
|
|
1096
1041
|
);
|
|
1097
1042
|
}
|
|
1098
|
-
function
|
|
1099
|
-
return V({},
|
|
1043
|
+
function yr(n, t) {
|
|
1044
|
+
return V({}, Dr, n, t);
|
|
1100
1045
|
}
|
|
1101
|
-
function
|
|
1102
|
-
return V({},
|
|
1046
|
+
function br(n, t) {
|
|
1047
|
+
return V({}, Mr, n, t);
|
|
1103
1048
|
}
|
|
1104
|
-
function
|
|
1105
|
-
return V({},
|
|
1049
|
+
function vr(n, t) {
|
|
1050
|
+
return V({}, Ir, n, t);
|
|
1106
1051
|
}
|
|
1107
|
-
function
|
|
1108
|
-
return V({},
|
|
1052
|
+
function yn(n, t) {
|
|
1053
|
+
return V({}, Nr, n, t);
|
|
1109
1054
|
}
|
|
1110
|
-
function
|
|
1111
|
-
var e =
|
|
1055
|
+
function Bi(n, t) {
|
|
1056
|
+
var e = mt(n, t);
|
|
1112
1057
|
if (E(e)) {
|
|
1113
1058
|
const i = [
|
|
1114
|
-
|
|
1115
|
-
|
|
1059
|
+
Be(n.getAttribute("width")),
|
|
1060
|
+
Be(n.getAttribute("height"))
|
|
1116
1061
|
];
|
|
1117
1062
|
return e.size = i, e;
|
|
1118
1063
|
}
|
|
1119
1064
|
}
|
|
1120
|
-
function
|
|
1121
|
-
var e =
|
|
1065
|
+
function wr(n, t) {
|
|
1066
|
+
var e = mt(n, t);
|
|
1122
1067
|
if (E(e))
|
|
1123
1068
|
return e.name = n.getAttribute("name"), e;
|
|
1124
1069
|
}
|
|
1125
|
-
function
|
|
1126
|
-
var e =
|
|
1070
|
+
function Er(n, t) {
|
|
1071
|
+
var e = mt(n, t);
|
|
1127
1072
|
if (E(e))
|
|
1128
1073
|
return e.type = n.getAttribute("type"), e;
|
|
1129
1074
|
}
|
|
1130
|
-
function
|
|
1131
|
-
return V({},
|
|
1075
|
+
function xr(n, t) {
|
|
1076
|
+
return V({}, Hr, n, t);
|
|
1132
1077
|
}
|
|
1133
|
-
function
|
|
1078
|
+
function Vi(n, t) {
|
|
1134
1079
|
return V(
|
|
1135
1080
|
[],
|
|
1136
|
-
|
|
1081
|
+
Vr,
|
|
1137
1082
|
n,
|
|
1138
1083
|
t
|
|
1139
1084
|
);
|
|
1140
1085
|
}
|
|
1141
|
-
const
|
|
1086
|
+
const z = [
|
|
1142
1087
|
null,
|
|
1143
1088
|
"http://www.opengis.net/wms"
|
|
1144
|
-
],
|
|
1145
|
-
|
|
1089
|
+
], Sr = j(
|
|
1090
|
+
z,
|
|
1146
1091
|
{
|
|
1147
|
-
Service: m(
|
|
1148
|
-
Capability: m(
|
|
1092
|
+
Service: m(ur),
|
|
1093
|
+
Capability: m(lr)
|
|
1149
1094
|
}
|
|
1150
|
-
),
|
|
1151
|
-
|
|
1095
|
+
), $r = j(
|
|
1096
|
+
z,
|
|
1152
1097
|
{
|
|
1153
|
-
Request: m(
|
|
1154
|
-
Exception: m(
|
|
1155
|
-
Layer: m(
|
|
1098
|
+
Request: m(yr),
|
|
1099
|
+
Exception: m(pr),
|
|
1100
|
+
Layer: m(fr)
|
|
1156
1101
|
}
|
|
1157
|
-
),
|
|
1158
|
-
|
|
1102
|
+
), _r = j(
|
|
1103
|
+
z,
|
|
1159
1104
|
{
|
|
1160
|
-
Name: m(
|
|
1161
|
-
Title: m(
|
|
1162
|
-
Abstract: m(
|
|
1163
|
-
KeywordList: m(
|
|
1164
|
-
OnlineResource: m(
|
|
1165
|
-
ContactInformation: m(
|
|
1166
|
-
Fees: m(
|
|
1167
|
-
AccessConstraints: m(
|
|
1168
|
-
LayerLimit: m(
|
|
1169
|
-
MaxWidth: m(
|
|
1170
|
-
MaxHeight: m(
|
|
1171
|
-
}
|
|
1172
|
-
),
|
|
1173
|
-
|
|
1105
|
+
Name: m($),
|
|
1106
|
+
Title: m($),
|
|
1107
|
+
Abstract: m($),
|
|
1108
|
+
KeywordList: m(Vi),
|
|
1109
|
+
OnlineResource: m(Un),
|
|
1110
|
+
ContactInformation: m(cr),
|
|
1111
|
+
Fees: m($),
|
|
1112
|
+
AccessConstraints: m($),
|
|
1113
|
+
LayerLimit: m(mn),
|
|
1114
|
+
MaxWidth: m(mn),
|
|
1115
|
+
MaxHeight: m(mn)
|
|
1116
|
+
}
|
|
1117
|
+
), Ar = j(
|
|
1118
|
+
z,
|
|
1174
1119
|
{
|
|
1175
|
-
ContactPersonPrimary: m(
|
|
1176
|
-
ContactPosition: m(
|
|
1177
|
-
ContactAddress: m(
|
|
1178
|
-
ContactVoiceTelephone: m(
|
|
1179
|
-
ContactFacsimileTelephone: m(
|
|
1180
|
-
ContactElectronicMailAddress: m(
|
|
1181
|
-
}
|
|
1182
|
-
),
|
|
1183
|
-
|
|
1120
|
+
ContactPersonPrimary: m(dr),
|
|
1121
|
+
ContactPosition: m($),
|
|
1122
|
+
ContactAddress: m(hr),
|
|
1123
|
+
ContactVoiceTelephone: m($),
|
|
1124
|
+
ContactFacsimileTelephone: m($),
|
|
1125
|
+
ContactElectronicMailAddress: m($)
|
|
1126
|
+
}
|
|
1127
|
+
), Cr = j(
|
|
1128
|
+
z,
|
|
1184
1129
|
{
|
|
1185
|
-
ContactPerson: m(
|
|
1186
|
-
ContactOrganization: m(
|
|
1130
|
+
ContactPerson: m($),
|
|
1131
|
+
ContactOrganization: m($)
|
|
1187
1132
|
}
|
|
1188
|
-
),
|
|
1189
|
-
|
|
1133
|
+
), Tr = j(
|
|
1134
|
+
z,
|
|
1190
1135
|
{
|
|
1191
|
-
AddressType: m(
|
|
1192
|
-
Address: m(
|
|
1193
|
-
City: m(
|
|
1194
|
-
StateOrProvince: m(
|
|
1195
|
-
PostCode: m(
|
|
1196
|
-
Country: m(
|
|
1197
|
-
}
|
|
1198
|
-
),
|
|
1199
|
-
|
|
1136
|
+
AddressType: m($),
|
|
1137
|
+
Address: m($),
|
|
1138
|
+
City: m($),
|
|
1139
|
+
StateOrProvince: m($),
|
|
1140
|
+
PostCode: m($),
|
|
1141
|
+
Country: m($)
|
|
1142
|
+
}
|
|
1143
|
+
), Pr = j(
|
|
1144
|
+
z,
|
|
1200
1145
|
{
|
|
1201
|
-
Format:
|
|
1146
|
+
Format: Ii($)
|
|
1202
1147
|
}
|
|
1203
|
-
),
|
|
1204
|
-
|
|
1148
|
+
), Li = j(
|
|
1149
|
+
z,
|
|
1205
1150
|
{
|
|
1206
|
-
Name: m(
|
|
1207
|
-
Title: m(
|
|
1208
|
-
Abstract: m(
|
|
1209
|
-
KeywordList: m(
|
|
1210
|
-
CRS:
|
|
1211
|
-
SRS:
|
|
1212
|
-
EX_GeographicBoundingBox: m(
|
|
1213
|
-
LatLonBoundingBox: m(
|
|
1214
|
-
BoundingBox:
|
|
1215
|
-
Dimension:
|
|
1216
|
-
Attribution: m(
|
|
1217
|
-
AuthorityURL:
|
|
1218
|
-
Identifier:
|
|
1219
|
-
MetadataURL:
|
|
1220
|
-
DataURL:
|
|
1221
|
-
FeatureListURL:
|
|
1222
|
-
Style:
|
|
1223
|
-
MinScaleDenominator: m(
|
|
1224
|
-
MaxScaleDenominator: m(
|
|
1225
|
-
ScaleHint: m(
|
|
1226
|
-
Layer:
|
|
1227
|
-
}
|
|
1228
|
-
),
|
|
1229
|
-
|
|
1151
|
+
Name: m($),
|
|
1152
|
+
Title: m($),
|
|
1153
|
+
Abstract: m($),
|
|
1154
|
+
KeywordList: m(Vi),
|
|
1155
|
+
CRS: J($),
|
|
1156
|
+
SRS: J($),
|
|
1157
|
+
EX_GeographicBoundingBox: m(ar),
|
|
1158
|
+
LatLonBoundingBox: m(rr),
|
|
1159
|
+
BoundingBox: J(or),
|
|
1160
|
+
Dimension: J(mr),
|
|
1161
|
+
Attribution: m(ir),
|
|
1162
|
+
AuthorityURL: J(wr),
|
|
1163
|
+
Identifier: J($),
|
|
1164
|
+
MetadataURL: J(Er),
|
|
1165
|
+
DataURL: J(mt),
|
|
1166
|
+
FeatureListURL: J(mt),
|
|
1167
|
+
Style: J(xr),
|
|
1168
|
+
MinScaleDenominator: m(Ut),
|
|
1169
|
+
MaxScaleDenominator: m(Ut),
|
|
1170
|
+
ScaleHint: m(sr),
|
|
1171
|
+
Layer: J(gr)
|
|
1172
|
+
}
|
|
1173
|
+
), Or = j(
|
|
1174
|
+
z,
|
|
1230
1175
|
{
|
|
1231
|
-
Title: m(
|
|
1232
|
-
OnlineResource: m(
|
|
1233
|
-
LogoURL: m(
|
|
1234
|
-
}
|
|
1235
|
-
),
|
|
1236
|
-
westBoundLongitude: m(
|
|
1237
|
-
eastBoundLongitude: m(
|
|
1238
|
-
southBoundLatitude: m(
|
|
1239
|
-
northBoundLatitude: m(
|
|
1240
|
-
}),
|
|
1241
|
-
|
|
1176
|
+
Title: m($),
|
|
1177
|
+
OnlineResource: m(Un),
|
|
1178
|
+
LogoURL: m(Bi)
|
|
1179
|
+
}
|
|
1180
|
+
), Rr = j(z, {
|
|
1181
|
+
westBoundLongitude: m(Ut),
|
|
1182
|
+
eastBoundLongitude: m(Ut),
|
|
1183
|
+
southBoundLatitude: m(Ut),
|
|
1184
|
+
northBoundLatitude: m(Ut)
|
|
1185
|
+
}), Dr = j(
|
|
1186
|
+
z,
|
|
1242
1187
|
{
|
|
1243
1188
|
GetCapabilities: m(
|
|
1244
|
-
|
|
1189
|
+
yn
|
|
1245
1190
|
),
|
|
1246
1191
|
GetMap: m(
|
|
1247
|
-
|
|
1192
|
+
yn
|
|
1248
1193
|
),
|
|
1249
1194
|
GetFeatureInfo: m(
|
|
1250
|
-
|
|
1195
|
+
yn
|
|
1251
1196
|
)
|
|
1252
1197
|
}
|
|
1253
|
-
),
|
|
1254
|
-
|
|
1198
|
+
), Nr = j(
|
|
1199
|
+
z,
|
|
1255
1200
|
{
|
|
1256
|
-
Format:
|
|
1257
|
-
DCPType:
|
|
1258
|
-
|
|
1201
|
+
Format: J($),
|
|
1202
|
+
DCPType: J(
|
|
1203
|
+
br
|
|
1259
1204
|
)
|
|
1260
1205
|
}
|
|
1261
|
-
),
|
|
1262
|
-
|
|
1206
|
+
), Mr = j(
|
|
1207
|
+
z,
|
|
1263
1208
|
{
|
|
1264
1209
|
HTTP: m(
|
|
1265
|
-
|
|
1210
|
+
vr
|
|
1266
1211
|
)
|
|
1267
1212
|
}
|
|
1268
|
-
),
|
|
1269
|
-
|
|
1213
|
+
), Ir = j(
|
|
1214
|
+
z,
|
|
1270
1215
|
{
|
|
1271
1216
|
Get: m(
|
|
1272
|
-
|
|
1217
|
+
mt
|
|
1273
1218
|
),
|
|
1274
1219
|
Post: m(
|
|
1275
|
-
|
|
1220
|
+
mt
|
|
1276
1221
|
)
|
|
1277
1222
|
}
|
|
1278
|
-
),
|
|
1279
|
-
|
|
1223
|
+
), Hr = j(
|
|
1224
|
+
z,
|
|
1280
1225
|
{
|
|
1281
|
-
Name: m(
|
|
1282
|
-
Title: m(
|
|
1283
|
-
Abstract: m(
|
|
1284
|
-
LegendURL:
|
|
1285
|
-
StyleSheetURL: m(
|
|
1286
|
-
StyleURL: m(
|
|
1287
|
-
}
|
|
1288
|
-
),
|
|
1289
|
-
|
|
1226
|
+
Name: m($),
|
|
1227
|
+
Title: m($),
|
|
1228
|
+
Abstract: m($),
|
|
1229
|
+
LegendURL: J(Bi),
|
|
1230
|
+
StyleSheetURL: m(mt),
|
|
1231
|
+
StyleURL: m(mt)
|
|
1232
|
+
}
|
|
1233
|
+
), Br = j(
|
|
1234
|
+
z,
|
|
1290
1235
|
{
|
|
1291
|
-
Format: m(
|
|
1292
|
-
OnlineResource: m(
|
|
1236
|
+
Format: m($),
|
|
1237
|
+
OnlineResource: m(Un)
|
|
1293
1238
|
}
|
|
1294
|
-
),
|
|
1295
|
-
|
|
1239
|
+
), Vr = j(
|
|
1240
|
+
z,
|
|
1296
1241
|
{
|
|
1297
|
-
Keyword:
|
|
1242
|
+
Keyword: Ii($)
|
|
1298
1243
|
}
|
|
1299
1244
|
);
|
|
1300
|
-
class
|
|
1245
|
+
class Lr {
|
|
1301
1246
|
/**
|
|
1302
1247
|
* WMS Capabilities parser
|
|
1303
1248
|
*
|
|
@@ -1305,7 +1250,7 @@ class jr {
|
|
|
1305
1250
|
* @constructor
|
|
1306
1251
|
*/
|
|
1307
1252
|
constructor(t, e) {
|
|
1308
|
-
!e && typeof window < "u" && (e = window.DOMParser), this.version = void 0, this._parser = new
|
|
1253
|
+
!e && typeof window < "u" && (e = window.DOMParser), this.version = void 0, this._parser = new Wo(e), this._data = t;
|
|
1309
1254
|
}
|
|
1310
1255
|
/**
|
|
1311
1256
|
* @param {String} xmlString
|
|
@@ -1334,7 +1279,7 @@ class jr {
|
|
|
1334
1279
|
*/
|
|
1335
1280
|
readFromDocument(t) {
|
|
1336
1281
|
for (let e = t.firstChild; e; e = e.nextSibling)
|
|
1337
|
-
if (e.nodeType ==
|
|
1282
|
+
if (e.nodeType == fe.ELEMENT)
|
|
1338
1283
|
return this.readFromNode(e);
|
|
1339
1284
|
return null;
|
|
1340
1285
|
}
|
|
@@ -1345,42 +1290,42 @@ class jr {
|
|
|
1345
1290
|
readFromNode(t) {
|
|
1346
1291
|
return this.version = t.getAttribute("version"), V({
|
|
1347
1292
|
version: this.version
|
|
1348
|
-
},
|
|
1293
|
+
}, Sr, t, []) || null;
|
|
1349
1294
|
}
|
|
1350
1295
|
}
|
|
1351
|
-
async function
|
|
1296
|
+
async function kr(n) {
|
|
1352
1297
|
let t = new URL(n), e = t.searchParams;
|
|
1353
1298
|
e.set("SERVICE", "WMS"), e.set("REQUEST", "GetCapabilities");
|
|
1354
1299
|
let i = t.toString();
|
|
1355
1300
|
const o = await fetch(i);
|
|
1356
1301
|
if (o.ok) {
|
|
1357
1302
|
const r = await o.text();
|
|
1358
|
-
return new
|
|
1303
|
+
return new Lr(r).toJSON();
|
|
1359
1304
|
} else
|
|
1360
1305
|
throw new Error(`Error: ${o.status}`);
|
|
1361
1306
|
}
|
|
1362
|
-
function
|
|
1307
|
+
function Fn(n) {
|
|
1363
1308
|
const t = /\b(?:wms|ows)\b/i, e = /{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;
|
|
1364
1309
|
return t.test(n) ? "TileWMS" : e.test(n) ? "XYZ" : !1;
|
|
1365
1310
|
}
|
|
1366
|
-
function
|
|
1367
|
-
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 =
|
|
1311
|
+
function Ur(n) {
|
|
1312
|
+
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 = Fn(n);
|
|
1368
1313
|
return !!(n && e && i);
|
|
1369
1314
|
}
|
|
1370
|
-
function
|
|
1315
|
+
function ki(n) {
|
|
1371
1316
|
return n.replace(
|
|
1372
1317
|
/(['"])?([a-zA-Z0-9_]+)(['"])?:/g,
|
|
1373
1318
|
'"$2": '
|
|
1374
1319
|
).replace(/,\s*}/g, "}").replace(/,\s*]/g, "]").replace(/\s*(\{|}|\[|\]|,)\s*/g, "$1").replaceAll('": //', "://");
|
|
1375
1320
|
}
|
|
1376
|
-
function
|
|
1321
|
+
function Fr(n) {
|
|
1377
1322
|
try {
|
|
1378
|
-
return JSON.parse(
|
|
1323
|
+
return JSON.parse(ki(n)), !!n;
|
|
1379
1324
|
} catch {
|
|
1380
1325
|
return !1;
|
|
1381
1326
|
}
|
|
1382
1327
|
}
|
|
1383
|
-
function
|
|
1328
|
+
function jr(n, t) {
|
|
1384
1329
|
const e = new URL(n).searchParams;
|
|
1385
1330
|
Object.entries(t).forEach(([s, a]) => {
|
|
1386
1331
|
typeof a == "object" && !Array.isArray(a) && a !== null ? Object.keys(a).forEach((l) => {
|
|
@@ -1396,7 +1341,7 @@ function Yr(n, t) {
|
|
|
1396
1341
|
* @author owenm <owen23355@gmail.com>
|
|
1397
1342
|
* @license MIT
|
|
1398
1343
|
*/
|
|
1399
|
-
function
|
|
1344
|
+
function ai(n, t) {
|
|
1400
1345
|
var e = Object.keys(n);
|
|
1401
1346
|
if (Object.getOwnPropertySymbols) {
|
|
1402
1347
|
var i = Object.getOwnPropertySymbols(n);
|
|
@@ -1406,26 +1351,26 @@ function hi(n, t) {
|
|
|
1406
1351
|
}
|
|
1407
1352
|
return e;
|
|
1408
1353
|
}
|
|
1409
|
-
function
|
|
1354
|
+
function dt(n) {
|
|
1410
1355
|
for (var t = 1; t < arguments.length; t++) {
|
|
1411
1356
|
var e = arguments[t] != null ? arguments[t] : {};
|
|
1412
|
-
t % 2 ?
|
|
1413
|
-
|
|
1414
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(e)) :
|
|
1357
|
+
t % 2 ? ai(Object(e), !0).forEach(function(i) {
|
|
1358
|
+
zr(n, i, e[i]);
|
|
1359
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(e)) : ai(Object(e)).forEach(function(i) {
|
|
1415
1360
|
Object.defineProperty(n, i, Object.getOwnPropertyDescriptor(e, i));
|
|
1416
1361
|
});
|
|
1417
1362
|
}
|
|
1418
1363
|
return n;
|
|
1419
1364
|
}
|
|
1420
|
-
function
|
|
1365
|
+
function Te(n) {
|
|
1421
1366
|
"@babel/helpers - typeof";
|
|
1422
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
1367
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Te = function(t) {
|
|
1423
1368
|
return typeof t;
|
|
1424
|
-
} :
|
|
1369
|
+
} : Te = function(t) {
|
|
1425
1370
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1426
|
-
},
|
|
1371
|
+
}, Te(n);
|
|
1427
1372
|
}
|
|
1428
|
-
function
|
|
1373
|
+
function zr(n, t, e) {
|
|
1429
1374
|
return t in n ? Object.defineProperty(n, t, {
|
|
1430
1375
|
value: e,
|
|
1431
1376
|
enumerable: !0,
|
|
@@ -1433,28 +1378,26 @@ function qr(n, t, e) {
|
|
|
1433
1378
|
writable: !0
|
|
1434
1379
|
}) : n[t] = e, n;
|
|
1435
1380
|
}
|
|
1436
|
-
function
|
|
1437
|
-
return
|
|
1381
|
+
function yt() {
|
|
1382
|
+
return yt = Object.assign || function(n) {
|
|
1438
1383
|
for (var t = 1; t < arguments.length; t++) {
|
|
1439
1384
|
var e = arguments[t];
|
|
1440
1385
|
for (var i in e)
|
|
1441
1386
|
Object.prototype.hasOwnProperty.call(e, i) && (n[i] = e[i]);
|
|
1442
1387
|
}
|
|
1443
1388
|
return n;
|
|
1444
|
-
},
|
|
1389
|
+
}, yt.apply(this, arguments);
|
|
1445
1390
|
}
|
|
1446
|
-
function
|
|
1447
|
-
if (n == null)
|
|
1448
|
-
return {};
|
|
1391
|
+
function Zr(n, t) {
|
|
1392
|
+
if (n == null) return {};
|
|
1449
1393
|
var e = {}, i = Object.keys(n), o, r;
|
|
1450
1394
|
for (r = 0; r < i.length; r++)
|
|
1451
1395
|
o = i[r], !(t.indexOf(o) >= 0) && (e[o] = n[o]);
|
|
1452
1396
|
return e;
|
|
1453
1397
|
}
|
|
1454
|
-
function
|
|
1455
|
-
if (n == null)
|
|
1456
|
-
|
|
1457
|
-
var e = Wr(n, t), i, o;
|
|
1398
|
+
function Xr(n, t) {
|
|
1399
|
+
if (n == null) return {};
|
|
1400
|
+
var e = Zr(n, t), i, o;
|
|
1458
1401
|
if (Object.getOwnPropertySymbols) {
|
|
1459
1402
|
var r = Object.getOwnPropertySymbols(n);
|
|
1460
1403
|
for (o = 0; o < r.length; o++)
|
|
@@ -1462,22 +1405,22 @@ function Gr(n, t) {
|
|
|
1462
1405
|
}
|
|
1463
1406
|
return e;
|
|
1464
1407
|
}
|
|
1465
|
-
var
|
|
1466
|
-
function
|
|
1408
|
+
var Yr = "1.15.2";
|
|
1409
|
+
function gt(n) {
|
|
1467
1410
|
if (typeof window < "u" && window.navigator)
|
|
1468
1411
|
return !!/* @__PURE__ */ navigator.userAgent.match(n);
|
|
1469
1412
|
}
|
|
1470
|
-
var
|
|
1413
|
+
var bt = gt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ve = gt(/Edge/i), li = gt(/firefox/i), se = gt(/safari/i) && !gt(/chrome/i) && !gt(/android/i), Ui = gt(/iP(ad|od|hone)/i), Fi = gt(/chrome/i) && gt(/android/i), ji = {
|
|
1471
1414
|
capture: !1,
|
|
1472
1415
|
passive: !1
|
|
1473
1416
|
};
|
|
1474
|
-
function
|
|
1475
|
-
n.addEventListener(t, e, !
|
|
1417
|
+
function _(n, t, e) {
|
|
1418
|
+
n.addEventListener(t, e, !bt && ji);
|
|
1476
1419
|
}
|
|
1477
1420
|
function S(n, t, e) {
|
|
1478
|
-
n.removeEventListener(t, e, !
|
|
1421
|
+
n.removeEventListener(t, e, !bt && ji);
|
|
1479
1422
|
}
|
|
1480
|
-
function
|
|
1423
|
+
function Ve(n, t) {
|
|
1481
1424
|
if (t) {
|
|
1482
1425
|
if (t[0] === ">" && (t = t.substring(1)), n)
|
|
1483
1426
|
try {
|
|
@@ -1493,29 +1436,28 @@ function Le(n, t) {
|
|
|
1493
1436
|
return !1;
|
|
1494
1437
|
}
|
|
1495
1438
|
}
|
|
1496
|
-
function
|
|
1439
|
+
function qr(n) {
|
|
1497
1440
|
return n.host && n !== document && n.host.nodeType ? n.host : n.parentNode;
|
|
1498
1441
|
}
|
|
1499
|
-
function
|
|
1442
|
+
function ut(n, t, e, i) {
|
|
1500
1443
|
if (n) {
|
|
1501
1444
|
e = e || document;
|
|
1502
1445
|
do {
|
|
1503
|
-
if (t != null && (t[0] === ">" ? n.parentNode === e &&
|
|
1446
|
+
if (t != null && (t[0] === ">" ? n.parentNode === e && Ve(n, t) : Ve(n, t)) || i && n === e)
|
|
1504
1447
|
return n;
|
|
1505
|
-
if (n === e)
|
|
1506
|
-
|
|
1507
|
-
} while (n = Kr(n));
|
|
1448
|
+
if (n === e) break;
|
|
1449
|
+
} while (n = qr(n));
|
|
1508
1450
|
}
|
|
1509
1451
|
return null;
|
|
1510
1452
|
}
|
|
1511
|
-
var
|
|
1512
|
-
function
|
|
1453
|
+
var ui = /\s+/g;
|
|
1454
|
+
function Q(n, t, e) {
|
|
1513
1455
|
if (n && t)
|
|
1514
1456
|
if (n.classList)
|
|
1515
1457
|
n.classList[e ? "add" : "remove"](t);
|
|
1516
1458
|
else {
|
|
1517
|
-
var i = (" " + n.className + " ").replace(
|
|
1518
|
-
n.className = (i + (e ? " " + t : "")).replace(
|
|
1459
|
+
var i = (" " + n.className + " ").replace(ui, " ").replace(" " + t + " ", " ");
|
|
1460
|
+
n.className = (i + (e ? " " + t : "")).replace(ui, " ");
|
|
1519
1461
|
}
|
|
1520
1462
|
}
|
|
1521
1463
|
function b(n, t, e) {
|
|
@@ -1526,7 +1468,7 @@ function b(n, t, e) {
|
|
|
1526
1468
|
!(t in i) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), i[t] = e + (typeof e == "string" ? "" : "px");
|
|
1527
1469
|
}
|
|
1528
1470
|
}
|
|
1529
|
-
function
|
|
1471
|
+
function jt(n, t) {
|
|
1530
1472
|
var e = "";
|
|
1531
1473
|
if (typeof n == "string")
|
|
1532
1474
|
e = n;
|
|
@@ -1538,7 +1480,7 @@ function Ut(n, t) {
|
|
|
1538
1480
|
var o = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
1539
1481
|
return o && new o(e);
|
|
1540
1482
|
}
|
|
1541
|
-
function
|
|
1483
|
+
function zi(n, t, e) {
|
|
1542
1484
|
if (n) {
|
|
1543
1485
|
var i = n.getElementsByTagName(t), o = 0, r = i.length;
|
|
1544
1486
|
if (e)
|
|
@@ -1548,14 +1490,14 @@ function Wi(n, t, e) {
|
|
|
1548
1490
|
}
|
|
1549
1491
|
return [];
|
|
1550
1492
|
}
|
|
1551
|
-
function
|
|
1493
|
+
function ct() {
|
|
1552
1494
|
var n = document.scrollingElement;
|
|
1553
1495
|
return n || document.documentElement;
|
|
1554
1496
|
}
|
|
1555
1497
|
function I(n, t, e, i, o) {
|
|
1556
1498
|
if (!(!n.getBoundingClientRect && n !== window)) {
|
|
1557
1499
|
var r, s, a, l, u, d, c;
|
|
1558
|
-
if (n !== window && n.parentNode && n !==
|
|
1500
|
+
if (n !== window && n.parentNode && n !== ct() ? (r = n.getBoundingClientRect(), s = r.top, a = r.left, l = r.bottom, u = r.right, d = r.height, c = r.width) : (s = 0, a = 0, l = window.innerHeight, u = window.innerWidth, d = window.innerHeight, c = window.innerWidth), (t || e) && n !== window && (o = o || n.parentNode, !bt))
|
|
1559
1501
|
do
|
|
1560
1502
|
if (o && o.getBoundingClientRect && (b(o, "transform") !== "none" || e && b(o, "position") !== "static")) {
|
|
1561
1503
|
var p = o.getBoundingClientRect();
|
|
@@ -1564,7 +1506,7 @@ function I(n, t, e, i, o) {
|
|
|
1564
1506
|
}
|
|
1565
1507
|
while (o = o.parentNode);
|
|
1566
1508
|
if (i && n !== window) {
|
|
1567
|
-
var f =
|
|
1509
|
+
var f = jt(o || n), g = f && f.a, y = f && f.d;
|
|
1568
1510
|
f && (s /= y, a /= g, c /= g, d /= y, l = s + d, u = a + c);
|
|
1569
1511
|
}
|
|
1570
1512
|
return {
|
|
@@ -1577,20 +1519,18 @@ function I(n, t, e, i, o) {
|
|
|
1577
1519
|
};
|
|
1578
1520
|
}
|
|
1579
1521
|
}
|
|
1580
|
-
function
|
|
1581
|
-
for (var i =
|
|
1522
|
+
function ci(n, t, e) {
|
|
1523
|
+
for (var i = $t(n, !0), o = I(n)[t]; i; ) {
|
|
1582
1524
|
var r = I(i)[e], s = void 0;
|
|
1583
|
-
if (e === "top" || e === "left" ? s = o >= r : s = o <= r, !s)
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
break;
|
|
1587
|
-
i = St(i, !1);
|
|
1525
|
+
if (e === "top" || e === "left" ? s = o >= r : s = o <= r, !s) return i;
|
|
1526
|
+
if (i === ct()) break;
|
|
1527
|
+
i = $t(i, !1);
|
|
1588
1528
|
}
|
|
1589
1529
|
return !1;
|
|
1590
1530
|
}
|
|
1591
|
-
function
|
|
1531
|
+
function Xt(n, t, e, i) {
|
|
1592
1532
|
for (var o = 0, r = 0, s = n.children; r < s.length; ) {
|
|
1593
|
-
if (s[r].style.display !== "none" && s[r] !== v.ghost && (i || s[r] !== v.dragged) &&
|
|
1533
|
+
if (s[r].style.display !== "none" && s[r] !== v.ghost && (i || s[r] !== v.dragged) && ut(s[r], e.draggable, n, !1)) {
|
|
1594
1534
|
if (o === t)
|
|
1595
1535
|
return s[r];
|
|
1596
1536
|
o++;
|
|
@@ -1599,97 +1539,93 @@ function Zt(n, t, e, i) {
|
|
|
1599
1539
|
}
|
|
1600
1540
|
return null;
|
|
1601
1541
|
}
|
|
1602
|
-
function
|
|
1603
|
-
for (var e = n.lastElementChild; e && (e === v.ghost || b(e, "display") === "none" || t && !
|
|
1542
|
+
function jn(n, t) {
|
|
1543
|
+
for (var e = n.lastElementChild; e && (e === v.ghost || b(e, "display") === "none" || t && !Ve(e, t)); )
|
|
1604
1544
|
e = e.previousElementSibling;
|
|
1605
1545
|
return e || null;
|
|
1606
1546
|
}
|
|
1607
|
-
function
|
|
1547
|
+
function it(n, t) {
|
|
1608
1548
|
var e = 0;
|
|
1609
1549
|
if (!n || !n.parentNode)
|
|
1610
1550
|
return -1;
|
|
1611
1551
|
for (; n = n.previousElementSibling; )
|
|
1612
|
-
n.nodeName.toUpperCase() !== "TEMPLATE" && n !== v.clone && (!t ||
|
|
1552
|
+
n.nodeName.toUpperCase() !== "TEMPLATE" && n !== v.clone && (!t || Ve(n, t)) && e++;
|
|
1613
1553
|
return e;
|
|
1614
1554
|
}
|
|
1615
|
-
function
|
|
1616
|
-
var t = 0, e = 0, i =
|
|
1555
|
+
function di(n) {
|
|
1556
|
+
var t = 0, e = 0, i = ct();
|
|
1617
1557
|
if (n)
|
|
1618
1558
|
do {
|
|
1619
|
-
var o =
|
|
1559
|
+
var o = jt(n), r = o.a, s = o.d;
|
|
1620
1560
|
t += n.scrollLeft * r, e += n.scrollTop * s;
|
|
1621
1561
|
} while (n !== i && (n = n.parentNode));
|
|
1622
1562
|
return [t, e];
|
|
1623
1563
|
}
|
|
1624
|
-
function
|
|
1564
|
+
function Wr(n, t) {
|
|
1625
1565
|
for (var e in n)
|
|
1626
1566
|
if (n.hasOwnProperty(e)) {
|
|
1627
1567
|
for (var i in t)
|
|
1628
|
-
if (t.hasOwnProperty(i) && t[i] === n[e][i])
|
|
1629
|
-
return Number(e);
|
|
1568
|
+
if (t.hasOwnProperty(i) && t[i] === n[e][i]) return Number(e);
|
|
1630
1569
|
}
|
|
1631
1570
|
return -1;
|
|
1632
1571
|
}
|
|
1633
|
-
function
|
|
1634
|
-
if (!n || !n.getBoundingClientRect)
|
|
1635
|
-
return ut();
|
|
1572
|
+
function $t(n, t) {
|
|
1573
|
+
if (!n || !n.getBoundingClientRect) return ct();
|
|
1636
1574
|
var e = n, i = !1;
|
|
1637
1575
|
do
|
|
1638
1576
|
if (e.clientWidth < e.scrollWidth || e.clientHeight < e.scrollHeight) {
|
|
1639
1577
|
var o = b(e);
|
|
1640
1578
|
if (e.clientWidth < e.scrollWidth && (o.overflowX == "auto" || o.overflowX == "scroll") || e.clientHeight < e.scrollHeight && (o.overflowY == "auto" || o.overflowY == "scroll")) {
|
|
1641
|
-
if (!e.getBoundingClientRect || e === document.body)
|
|
1642
|
-
|
|
1643
|
-
if (i || t)
|
|
1644
|
-
return e;
|
|
1579
|
+
if (!e.getBoundingClientRect || e === document.body) return ct();
|
|
1580
|
+
if (i || t) return e;
|
|
1645
1581
|
i = !0;
|
|
1646
1582
|
}
|
|
1647
1583
|
}
|
|
1648
1584
|
while (e = e.parentNode);
|
|
1649
|
-
return
|
|
1585
|
+
return ct();
|
|
1650
1586
|
}
|
|
1651
|
-
function
|
|
1587
|
+
function Gr(n, t) {
|
|
1652
1588
|
if (n && t)
|
|
1653
1589
|
for (var e in t)
|
|
1654
1590
|
t.hasOwnProperty(e) && (n[e] = t[e]);
|
|
1655
1591
|
return n;
|
|
1656
1592
|
}
|
|
1657
|
-
function
|
|
1593
|
+
function bn(n, t) {
|
|
1658
1594
|
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);
|
|
1659
1595
|
}
|
|
1660
|
-
var
|
|
1661
|
-
function
|
|
1596
|
+
var ae;
|
|
1597
|
+
function Zi(n, t) {
|
|
1662
1598
|
return function() {
|
|
1663
|
-
if (!
|
|
1599
|
+
if (!ae) {
|
|
1664
1600
|
var e = arguments, i = this;
|
|
1665
|
-
e.length === 1 ? n.call(i, e[0]) : n.apply(i, e),
|
|
1666
|
-
|
|
1601
|
+
e.length === 1 ? n.call(i, e[0]) : n.apply(i, e), ae = setTimeout(function() {
|
|
1602
|
+
ae = void 0;
|
|
1667
1603
|
}, t);
|
|
1668
1604
|
}
|
|
1669
1605
|
};
|
|
1670
1606
|
}
|
|
1671
|
-
function
|
|
1672
|
-
clearTimeout(
|
|
1607
|
+
function Jr() {
|
|
1608
|
+
clearTimeout(ae), ae = void 0;
|
|
1673
1609
|
}
|
|
1674
|
-
function
|
|
1610
|
+
function Xi(n, t, e) {
|
|
1675
1611
|
n.scrollLeft += t, n.scrollTop += e;
|
|
1676
1612
|
}
|
|
1677
|
-
function
|
|
1613
|
+
function Yi(n) {
|
|
1678
1614
|
var t = window.Polymer, e = window.jQuery || window.Zepto;
|
|
1679
1615
|
return t && t.dom ? t.dom(n).cloneNode(!0) : e ? e(n).clone(!0)[0] : n.cloneNode(!0);
|
|
1680
1616
|
}
|
|
1681
|
-
function
|
|
1617
|
+
function qi(n, t, e) {
|
|
1682
1618
|
var i = {};
|
|
1683
1619
|
return Array.from(n.children).forEach(function(o) {
|
|
1684
1620
|
var r, s, a, l;
|
|
1685
|
-
if (!(!
|
|
1621
|
+
if (!(!ut(o, t.draggable, n, !1) || o.animated || o === e)) {
|
|
1686
1622
|
var u = I(o);
|
|
1687
1623
|
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);
|
|
1688
1624
|
}
|
|
1689
1625
|
}), i.width = i.right - i.left, i.height = i.bottom - i.top, i.x = i.left, i.y = i.top, i;
|
|
1690
1626
|
}
|
|
1691
|
-
var
|
|
1692
|
-
function
|
|
1627
|
+
var et = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
1628
|
+
function Kr() {
|
|
1693
1629
|
var n = [], t;
|
|
1694
1630
|
return {
|
|
1695
1631
|
captureAnimationState: function() {
|
|
@@ -1701,9 +1637,9 @@ function ns() {
|
|
|
1701
1637
|
target: o,
|
|
1702
1638
|
rect: I(o)
|
|
1703
1639
|
});
|
|
1704
|
-
var r =
|
|
1640
|
+
var r = dt({}, n[n.length - 1].rect);
|
|
1705
1641
|
if (o.thisAnimationDuration) {
|
|
1706
|
-
var s =
|
|
1642
|
+
var s = jt(o, !0);
|
|
1707
1643
|
s && (r.top -= s.f, r.left -= s.e);
|
|
1708
1644
|
}
|
|
1709
1645
|
o.fromRect = r;
|
|
@@ -1715,7 +1651,7 @@ function ns() {
|
|
|
1715
1651
|
n.push(i);
|
|
1716
1652
|
},
|
|
1717
1653
|
removeAnimationState: function(i) {
|
|
1718
|
-
n.splice(
|
|
1654
|
+
n.splice(Wr(n, {
|
|
1719
1655
|
target: i
|
|
1720
1656
|
}), 1);
|
|
1721
1657
|
},
|
|
@@ -1727,9 +1663,9 @@ function ns() {
|
|
|
1727
1663
|
}
|
|
1728
1664
|
var r = !1, s = 0;
|
|
1729
1665
|
n.forEach(function(a) {
|
|
1730
|
-
var l = 0, u = a.target, d = u.fromRect, c = I(u), p = u.prevFromRect, f = u.prevToRect, g = a.rect, y =
|
|
1731
|
-
y && (c.top -= y.f, c.left -= y.e), u.toRect = c, u.thisAnimationDuration &&
|
|
1732
|
-
(g.top - c.top) / (g.left - c.left) === (d.top - c.top) / (d.left - c.left) && (l =
|
|
1666
|
+
var l = 0, u = a.target, d = u.fromRect, c = I(u), p = u.prevFromRect, f = u.prevToRect, g = a.rect, y = jt(u, !0);
|
|
1667
|
+
y && (c.top -= y.f, c.left -= y.e), u.toRect = c, u.thisAnimationDuration && bn(p, c) && !bn(d, c) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1668
|
+
(g.top - c.top) / (g.left - c.left) === (d.top - c.top) / (d.left - c.left) && (l = ts(g, p, f, o.options)), bn(c, d) || (u.prevFromRect = d, u.prevToRect = c, l || (l = o.options.animation), o.animate(u, g, c, l)), l && (r = !0, s = Math.max(s, l), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
1733
1669
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
1734
1670
|
}, l), u.thisAnimationDuration = l);
|
|
1735
1671
|
}), clearTimeout(t), r ? t = setTimeout(function() {
|
|
@@ -1739,30 +1675,30 @@ function ns() {
|
|
|
1739
1675
|
animate: function(i, o, r, s) {
|
|
1740
1676
|
if (s) {
|
|
1741
1677
|
b(i, "transition", ""), b(i, "transform", "");
|
|
1742
|
-
var a =
|
|
1743
|
-
i.animatingX = !!d, i.animatingY = !!c, b(i, "transform", "translate3d(" + d + "px," + c + "px,0)"), this.forRepaintDummy =
|
|
1678
|
+
var a = jt(this.el), l = a && a.a, u = a && a.d, d = (o.left - r.left) / (l || 1), c = (o.top - r.top) / (u || 1);
|
|
1679
|
+
i.animatingX = !!d, i.animatingY = !!c, b(i, "transform", "translate3d(" + d + "px," + c + "px,0)"), this.forRepaintDummy = Qr(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() {
|
|
1744
1680
|
b(i, "transition", ""), b(i, "transform", ""), i.animated = !1, i.animatingX = !1, i.animatingY = !1;
|
|
1745
1681
|
}, s);
|
|
1746
1682
|
}
|
|
1747
1683
|
}
|
|
1748
1684
|
};
|
|
1749
1685
|
}
|
|
1750
|
-
function
|
|
1686
|
+
function Qr(n) {
|
|
1751
1687
|
return n.offsetWidth;
|
|
1752
1688
|
}
|
|
1753
|
-
function
|
|
1689
|
+
function ts(n, t, e, i) {
|
|
1754
1690
|
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;
|
|
1755
1691
|
}
|
|
1756
|
-
var
|
|
1692
|
+
var Bt = [], vn = {
|
|
1757
1693
|
initializeByDefault: !0
|
|
1758
|
-
},
|
|
1694
|
+
}, we = {
|
|
1759
1695
|
mount: function(t) {
|
|
1760
|
-
for (var e in
|
|
1761
|
-
|
|
1762
|
-
|
|
1696
|
+
for (var e in vn)
|
|
1697
|
+
vn.hasOwnProperty(e) && !(e in t) && (t[e] = vn[e]);
|
|
1698
|
+
Bt.forEach(function(i) {
|
|
1763
1699
|
if (i.pluginName === t.pluginName)
|
|
1764
1700
|
throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
|
|
1765
|
-
}),
|
|
1701
|
+
}), Bt.push(t);
|
|
1766
1702
|
},
|
|
1767
1703
|
pluginEvent: function(t, e, i) {
|
|
1768
1704
|
var o = this;
|
|
@@ -1770,20 +1706,20 @@ var It = [], _n = {
|
|
|
1770
1706
|
o.eventCanceled = !0;
|
|
1771
1707
|
};
|
|
1772
1708
|
var r = t + "Global";
|
|
1773
|
-
|
|
1774
|
-
e[s.pluginName] && (e[s.pluginName][r] && e[s.pluginName][r](
|
|
1709
|
+
Bt.forEach(function(s) {
|
|
1710
|
+
e[s.pluginName] && (e[s.pluginName][r] && e[s.pluginName][r](dt({
|
|
1775
1711
|
sortable: e
|
|
1776
|
-
}, i)), e.options[s.pluginName] && e[s.pluginName][t] && e[s.pluginName][t](
|
|
1712
|
+
}, i)), e.options[s.pluginName] && e[s.pluginName][t] && e[s.pluginName][t](dt({
|
|
1777
1713
|
sortable: e
|
|
1778
1714
|
}, i)));
|
|
1779
1715
|
});
|
|
1780
1716
|
},
|
|
1781
1717
|
initializePlugins: function(t, e, i, o) {
|
|
1782
|
-
|
|
1718
|
+
Bt.forEach(function(a) {
|
|
1783
1719
|
var l = a.pluginName;
|
|
1784
1720
|
if (!(!t.options[l] && !a.initializeByDefault)) {
|
|
1785
1721
|
var u = new a(t, e, t.options);
|
|
1786
|
-
u.sortable = t, u.options = t.options, t[l] = u,
|
|
1722
|
+
u.sortable = t, u.options = t.options, t[l] = u, yt(i, u.defaults);
|
|
1787
1723
|
}
|
|
1788
1724
|
});
|
|
1789
1725
|
for (var r in t.options)
|
|
@@ -1794,60 +1730,60 @@ var It = [], _n = {
|
|
|
1794
1730
|
},
|
|
1795
1731
|
getEventProperties: function(t, e) {
|
|
1796
1732
|
var i = {};
|
|
1797
|
-
return
|
|
1798
|
-
typeof o.eventProperties == "function" &&
|
|
1733
|
+
return Bt.forEach(function(o) {
|
|
1734
|
+
typeof o.eventProperties == "function" && yt(i, o.eventProperties.call(e[o.pluginName], t));
|
|
1799
1735
|
}), i;
|
|
1800
1736
|
},
|
|
1801
1737
|
modifyOption: function(t, e, i) {
|
|
1802
1738
|
var o;
|
|
1803
|
-
return
|
|
1739
|
+
return Bt.forEach(function(r) {
|
|
1804
1740
|
t[r.pluginName] && r.optionListeners && typeof r.optionListeners[e] == "function" && (o = r.optionListeners[e].call(t[r.pluginName], i));
|
|
1805
1741
|
}), o;
|
|
1806
1742
|
}
|
|
1807
1743
|
};
|
|
1808
|
-
function
|
|
1744
|
+
function es(n) {
|
|
1809
1745
|
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, d = n.oldDraggableIndex, c = n.newDraggableIndex, p = n.originalEvent, f = n.putSortable, g = n.extraEventProperties;
|
|
1810
|
-
if (t = t || e && e[
|
|
1746
|
+
if (t = t || e && e[et], !!t) {
|
|
1811
1747
|
var y, P = t.options, L = "on" + i.charAt(0).toUpperCase() + i.substr(1);
|
|
1812
|
-
window.CustomEvent && !
|
|
1748
|
+
window.CustomEvent && !bt && !ve ? y = new CustomEvent(i, {
|
|
1813
1749
|
bubbles: !0,
|
|
1814
1750
|
cancelable: !0
|
|
1815
1751
|
}) : (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 = d, y.newDraggableIndex = c, y.originalEvent = p, y.pullMode = f ? f.lastPutMode : void 0;
|
|
1816
|
-
var B =
|
|
1817
|
-
for (var
|
|
1818
|
-
y[
|
|
1752
|
+
var B = dt(dt({}, g), we.getEventProperties(i, t));
|
|
1753
|
+
for (var K in B)
|
|
1754
|
+
y[K] = B[K];
|
|
1819
1755
|
e && e.dispatchEvent(y), P[L] && P[L].call(t, y);
|
|
1820
1756
|
}
|
|
1821
1757
|
}
|
|
1822
|
-
var
|
|
1823
|
-
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = i.evt, r =
|
|
1824
|
-
|
|
1758
|
+
var ns = ["evt"], G = function(t, e) {
|
|
1759
|
+
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = i.evt, r = Xr(i, ns);
|
|
1760
|
+
we.pluginEvent.bind(v)(t, e, dt({
|
|
1825
1761
|
dragEl: h,
|
|
1826
1762
|
parentEl: N,
|
|
1827
1763
|
ghostEl: w,
|
|
1828
|
-
rootEl:
|
|
1829
|
-
nextEl:
|
|
1830
|
-
lastDownEl:
|
|
1764
|
+
rootEl: R,
|
|
1765
|
+
nextEl: Dt,
|
|
1766
|
+
lastDownEl: Pe,
|
|
1831
1767
|
cloneEl: D,
|
|
1832
|
-
cloneHidden:
|
|
1833
|
-
dragStarted:
|
|
1768
|
+
cloneHidden: St,
|
|
1769
|
+
dragStarted: ee,
|
|
1834
1770
|
putSortable: U,
|
|
1835
1771
|
activeSortable: v.active,
|
|
1836
1772
|
originalEvent: o,
|
|
1837
|
-
oldIndex:
|
|
1838
|
-
oldDraggableIndex:
|
|
1839
|
-
newIndex:
|
|
1840
|
-
newDraggableIndex:
|
|
1841
|
-
hideGhostForTarget:
|
|
1842
|
-
unhideGhostForTarget:
|
|
1773
|
+
oldIndex: Ft,
|
|
1774
|
+
oldDraggableIndex: le,
|
|
1775
|
+
newIndex: tt,
|
|
1776
|
+
newDraggableIndex: xt,
|
|
1777
|
+
hideGhostForTarget: Ki,
|
|
1778
|
+
unhideGhostForTarget: Qi,
|
|
1843
1779
|
cloneNowHidden: function() {
|
|
1844
|
-
|
|
1780
|
+
St = !0;
|
|
1845
1781
|
},
|
|
1846
1782
|
cloneNowShown: function() {
|
|
1847
|
-
|
|
1783
|
+
St = !1;
|
|
1848
1784
|
},
|
|
1849
1785
|
dispatchSortableEvent: function(a) {
|
|
1850
|
-
|
|
1786
|
+
W({
|
|
1851
1787
|
sortable: e,
|
|
1852
1788
|
name: a,
|
|
1853
1789
|
originalEvent: o
|
|
@@ -1855,27 +1791,27 @@ var ss = ["evt"], W = function(t, e) {
|
|
|
1855
1791
|
}
|
|
1856
1792
|
}, r));
|
|
1857
1793
|
};
|
|
1858
|
-
function
|
|
1859
|
-
|
|
1794
|
+
function W(n) {
|
|
1795
|
+
es(dt({
|
|
1860
1796
|
putSortable: U,
|
|
1861
1797
|
cloneEl: D,
|
|
1862
1798
|
targetEl: h,
|
|
1863
|
-
rootEl:
|
|
1864
|
-
oldIndex:
|
|
1865
|
-
oldDraggableIndex:
|
|
1866
|
-
newIndex:
|
|
1867
|
-
newDraggableIndex:
|
|
1799
|
+
rootEl: R,
|
|
1800
|
+
oldIndex: Ft,
|
|
1801
|
+
oldDraggableIndex: le,
|
|
1802
|
+
newIndex: tt,
|
|
1803
|
+
newDraggableIndex: xt
|
|
1868
1804
|
}, n));
|
|
1869
1805
|
}
|
|
1870
|
-
var h, N, w,
|
|
1871
|
-
if (
|
|
1872
|
-
if (
|
|
1806
|
+
var h, N, w, R, Dt, Pe, D, St, Ft, tt, le, xt, xe, U, kt = !1, Le = !1, ke = [], Ot, lt, wn, En, hi, pi, ee, Vt, ue, ce = !1, Se = !1, Oe, Y, xn = [], Pn = !1, Ue = [], un = typeof document < "u", $e = Ui, fi = ve || bt ? "cssFloat" : "float", is = un && !Fi && !Ui && "draggable" in document.createElement("div"), Wi = function() {
|
|
1807
|
+
if (un) {
|
|
1808
|
+
if (bt)
|
|
1873
1809
|
return !1;
|
|
1874
1810
|
var n = document.createElement("x");
|
|
1875
1811
|
return n.style.cssText = "pointer-events:auto", n.style.pointerEvents === "auto";
|
|
1876
1812
|
}
|
|
1877
|
-
}(),
|
|
1878
|
-
var i = b(t), o = parseInt(i.width) - parseInt(i.paddingLeft) - parseInt(i.paddingRight) - parseInt(i.borderLeftWidth) - parseInt(i.borderRightWidth), r =
|
|
1813
|
+
}(), Gi = function(t, e) {
|
|
1814
|
+
var i = b(t), o = parseInt(i.width) - parseInt(i.paddingLeft) - parseInt(i.paddingRight) - parseInt(i.borderLeftWidth) - parseInt(i.borderRightWidth), r = Xt(t, 0, e), s = Xt(t, 1, e), a = r && b(r), l = s && b(s), u = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + I(r).width, d = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + I(s).width;
|
|
1879
1815
|
if (i.display === "flex")
|
|
1880
1816
|
return i.flexDirection === "column" || i.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
1881
1817
|
if (i.display === "grid")
|
|
@@ -1884,21 +1820,21 @@ var h, N, w, O, Ot, Oe, D, xt, kt, Q, ae, Et, Se, U, Vt = !1, ke = !1, Ue = [],
|
|
|
1884
1820
|
var c = a.float === "left" ? "left" : "right";
|
|
1885
1821
|
return s && (l.clear === "both" || l.clear === c) ? "vertical" : "horizontal";
|
|
1886
1822
|
}
|
|
1887
|
-
return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || u >= o && i[
|
|
1888
|
-
},
|
|
1823
|
+
return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || u >= o && i[fi] === "none" || s && i[fi] === "none" && u + d > o) ? "vertical" : "horizontal";
|
|
1824
|
+
}, os = function(t, e, i) {
|
|
1889
1825
|
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;
|
|
1890
1826
|
return o === a || r === l || o + s / 2 === a + u / 2;
|
|
1891
|
-
},
|
|
1827
|
+
}, rs = function(t, e) {
|
|
1892
1828
|
var i;
|
|
1893
|
-
return
|
|
1894
|
-
var r = o[
|
|
1895
|
-
if (!(!r ||
|
|
1829
|
+
return ke.some(function(o) {
|
|
1830
|
+
var r = o[et].options.emptyInsertThreshold;
|
|
1831
|
+
if (!(!r || jn(o))) {
|
|
1896
1832
|
var s = I(o), a = t >= s.left - r && t <= s.right + r, l = e >= s.top - r && e <= s.bottom + r;
|
|
1897
1833
|
if (a && l)
|
|
1898
1834
|
return i = o;
|
|
1899
1835
|
}
|
|
1900
1836
|
}), i;
|
|
1901
|
-
},
|
|
1837
|
+
}, Ji = function(t) {
|
|
1902
1838
|
function e(r, s) {
|
|
1903
1839
|
return function(a, l, u, d) {
|
|
1904
1840
|
var c = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
|
|
@@ -1915,36 +1851,36 @@ var h, N, w, O, Ot, Oe, D, xt, kt, Q, ae, Et, Se, U, Vt = !1, ke = !1, Ue = [],
|
|
|
1915
1851
|
};
|
|
1916
1852
|
}
|
|
1917
1853
|
var i = {}, o = t.group;
|
|
1918
|
-
(!o ||
|
|
1854
|
+
(!o || Te(o) != "object") && (o = {
|
|
1919
1855
|
name: o
|
|
1920
1856
|
}), i.name = o.name, i.checkPull = e(o.pull, !0), i.checkPut = e(o.put), i.revertClone = o.revertClone, t.group = i;
|
|
1921
|
-
},
|
|
1922
|
-
!
|
|
1923
|
-
},
|
|
1924
|
-
!
|
|
1857
|
+
}, Ki = function() {
|
|
1858
|
+
!Wi && w && b(w, "display", "none");
|
|
1859
|
+
}, Qi = function() {
|
|
1860
|
+
!Wi && w && b(w, "display", "");
|
|
1925
1861
|
};
|
|
1926
|
-
|
|
1927
|
-
if (
|
|
1928
|
-
return n.preventDefault(), n.stopPropagation && n.stopPropagation(), n.stopImmediatePropagation && n.stopImmediatePropagation(),
|
|
1862
|
+
un && !Fi && document.addEventListener("click", function(n) {
|
|
1863
|
+
if (Le)
|
|
1864
|
+
return n.preventDefault(), n.stopPropagation && n.stopPropagation(), n.stopImmediatePropagation && n.stopImmediatePropagation(), Le = !1, !1;
|
|
1929
1865
|
}, !0);
|
|
1930
|
-
var
|
|
1866
|
+
var Rt = function(t) {
|
|
1931
1867
|
if (h) {
|
|
1932
1868
|
t = t.touches ? t.touches[0] : t;
|
|
1933
|
-
var e =
|
|
1869
|
+
var e = rs(t.clientX, t.clientY);
|
|
1934
1870
|
if (e) {
|
|
1935
1871
|
var i = {};
|
|
1936
1872
|
for (var o in t)
|
|
1937
1873
|
t.hasOwnProperty(o) && (i[o] = t[o]);
|
|
1938
|
-
i.target = i.rootEl = e, i.preventDefault = void 0, i.stopPropagation = void 0, e[
|
|
1874
|
+
i.target = i.rootEl = e, i.preventDefault = void 0, i.stopPropagation = void 0, e[et]._onDragOver(i);
|
|
1939
1875
|
}
|
|
1940
1876
|
}
|
|
1941
|
-
},
|
|
1942
|
-
h && h.parentNode[
|
|
1877
|
+
}, ss = function(t) {
|
|
1878
|
+
h && h.parentNode[et]._isOutsideThisEl(t.target);
|
|
1943
1879
|
};
|
|
1944
1880
|
function v(n, t) {
|
|
1945
1881
|
if (!(n && n.nodeType && n.nodeType === 1))
|
|
1946
1882
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));
|
|
1947
|
-
this.el = n, this.options = t =
|
|
1883
|
+
this.el = n, this.options = t = yt({}, t), n[et] = this;
|
|
1948
1884
|
var e = {
|
|
1949
1885
|
group: null,
|
|
1950
1886
|
sort: !0,
|
|
@@ -1960,7 +1896,7 @@ function v(n, t) {
|
|
|
1960
1896
|
// will be set to same as swapThreshold if default
|
|
1961
1897
|
removeCloneOnHide: !0,
|
|
1962
1898
|
direction: function() {
|
|
1963
|
-
return
|
|
1899
|
+
return Gi(n, this.options);
|
|
1964
1900
|
},
|
|
1965
1901
|
ghostClass: "sortable-ghost",
|
|
1966
1902
|
chosenClass: "sortable-chosen",
|
|
@@ -1987,22 +1923,22 @@ function v(n, t) {
|
|
|
1987
1923
|
x: 0,
|
|
1988
1924
|
y: 0
|
|
1989
1925
|
},
|
|
1990
|
-
supportPointer: v.supportPointer !== !1 && "PointerEvent" in window && !
|
|
1926
|
+
supportPointer: v.supportPointer !== !1 && "PointerEvent" in window && !se,
|
|
1991
1927
|
emptyInsertThreshold: 5
|
|
1992
1928
|
};
|
|
1993
|
-
|
|
1929
|
+
we.initializePlugins(this, n, e);
|
|
1994
1930
|
for (var i in e)
|
|
1995
1931
|
!(i in t) && (t[i] = e[i]);
|
|
1996
|
-
|
|
1932
|
+
Ji(t);
|
|
1997
1933
|
for (var o in this)
|
|
1998
1934
|
o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this));
|
|
1999
|
-
this.nativeDraggable = t.forceFallback ? !1 :
|
|
1935
|
+
this.nativeDraggable = t.forceFallback ? !1 : is, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? _(n, "pointerdown", this._onTapStart) : (_(n, "mousedown", this._onTapStart), _(n, "touchstart", this._onTapStart)), this.nativeDraggable && (_(n, "dragover", this), _(n, "dragenter", this)), ke.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), yt(this, Kr());
|
|
2000
1936
|
}
|
|
2001
1937
|
v.prototype = /** @lends Sortable.prototype */
|
|
2002
1938
|
{
|
|
2003
1939
|
constructor: v,
|
|
2004
1940
|
_isOutsideThisEl: function(t) {
|
|
2005
|
-
!this.el.contains(t) && t !== this.el && (
|
|
1941
|
+
!this.el.contains(t) && t !== this.el && (Vt = null);
|
|
2006
1942
|
},
|
|
2007
1943
|
_getDirection: function(t, e) {
|
|
2008
1944
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, t, e, h) : this.options.direction;
|
|
@@ -2010,38 +1946,38 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2010
1946
|
_onTapStart: function(t) {
|
|
2011
1947
|
if (t.cancelable) {
|
|
2012
1948
|
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, d = o.filter;
|
|
2013
|
-
if (
|
|
2014
|
-
if (
|
|
1949
|
+
if (fs(i), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || o.disabled) && !u.isContentEditable && !(!this.nativeDraggable && se && l && l.tagName.toUpperCase() === "SELECT") && (l = ut(l, o.draggable, i, !1), !(l && l.animated) && Pe !== l)) {
|
|
1950
|
+
if (Ft = it(l), le = it(l, o.draggable), typeof d == "function") {
|
|
2015
1951
|
if (d.call(this, t, l, this)) {
|
|
2016
|
-
|
|
1952
|
+
W({
|
|
2017
1953
|
sortable: e,
|
|
2018
1954
|
rootEl: u,
|
|
2019
1955
|
name: "filter",
|
|
2020
1956
|
targetEl: l,
|
|
2021
1957
|
toEl: i,
|
|
2022
1958
|
fromEl: i
|
|
2023
|
-
}),
|
|
1959
|
+
}), G("filter", e, {
|
|
2024
1960
|
evt: t
|
|
2025
1961
|
}), r && t.cancelable && t.preventDefault();
|
|
2026
1962
|
return;
|
|
2027
1963
|
}
|
|
2028
1964
|
} else if (d && (d = d.split(",").some(function(c) {
|
|
2029
|
-
if (c =
|
|
2030
|
-
return
|
|
1965
|
+
if (c = ut(u, c.trim(), i, !1), c)
|
|
1966
|
+
return W({
|
|
2031
1967
|
sortable: e,
|
|
2032
1968
|
rootEl: c,
|
|
2033
1969
|
name: "filter",
|
|
2034
1970
|
targetEl: l,
|
|
2035
1971
|
fromEl: i,
|
|
2036
1972
|
toEl: i
|
|
2037
|
-
}),
|
|
1973
|
+
}), G("filter", e, {
|
|
2038
1974
|
evt: t
|
|
2039
1975
|
}), !0;
|
|
2040
1976
|
}), d)) {
|
|
2041
1977
|
r && t.cancelable && t.preventDefault();
|
|
2042
1978
|
return;
|
|
2043
1979
|
}
|
|
2044
|
-
o.handle && !
|
|
1980
|
+
o.handle && !ut(u, o.handle, i, !1) || this._prepareDragStart(t, a, l);
|
|
2045
1981
|
}
|
|
2046
1982
|
}
|
|
2047
1983
|
},
|
|
@@ -2049,32 +1985,32 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2049
1985
|
var o = this, r = o.el, s = o.options, a = r.ownerDocument, l;
|
|
2050
1986
|
if (i && !h && i.parentNode === r) {
|
|
2051
1987
|
var u = I(i);
|
|
2052
|
-
if (
|
|
1988
|
+
if (R = r, h = i, N = h.parentNode, Dt = h.nextSibling, Pe = i, xe = s.group, v.dragged = h, Ot = {
|
|
2053
1989
|
target: h,
|
|
2054
1990
|
clientX: (e || t).clientX,
|
|
2055
1991
|
clientY: (e || t).clientY
|
|
2056
|
-
},
|
|
2057
|
-
if (
|
|
1992
|
+
}, hi = Ot.clientX - u.left, pi = Ot.clientY - u.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, h.style["will-change"] = "all", l = function() {
|
|
1993
|
+
if (G("delayEnded", o, {
|
|
2058
1994
|
evt: t
|
|
2059
1995
|
}), v.eventCanceled) {
|
|
2060
1996
|
o._onDrop();
|
|
2061
1997
|
return;
|
|
2062
1998
|
}
|
|
2063
|
-
o._disableDelayedDragEvents(), !
|
|
1999
|
+
o._disableDelayedDragEvents(), !li && o.nativeDraggable && (h.draggable = !0), o._triggerDragStart(t, e), W({
|
|
2064
2000
|
sortable: o,
|
|
2065
2001
|
name: "choose",
|
|
2066
2002
|
originalEvent: t
|
|
2067
|
-
}),
|
|
2003
|
+
}), Q(h, s.chosenClass, !0);
|
|
2068
2004
|
}, s.ignore.split(",").forEach(function(d) {
|
|
2069
|
-
|
|
2070
|
-
}),
|
|
2005
|
+
zi(h, d.trim(), Sn);
|
|
2006
|
+
}), _(a, "dragover", Rt), _(a, "mousemove", Rt), _(a, "touchmove", Rt), _(a, "mouseup", o._onDrop), _(a, "touchend", o._onDrop), _(a, "touchcancel", o._onDrop), li && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), G("delayStart", this, {
|
|
2071
2007
|
evt: t
|
|
2072
|
-
}), s.delay && (!s.delayOnTouchOnly || e) && (!this.nativeDraggable || !(
|
|
2008
|
+
}), s.delay && (!s.delayOnTouchOnly || e) && (!this.nativeDraggable || !(ve || bt))) {
|
|
2073
2009
|
if (v.eventCanceled) {
|
|
2074
2010
|
this._onDrop();
|
|
2075
2011
|
return;
|
|
2076
2012
|
}
|
|
2077
|
-
|
|
2013
|
+
_(a, "mouseup", o._disableDelayedDrag), _(a, "touchend", o._disableDelayedDrag), _(a, "touchcancel", o._disableDelayedDrag), _(a, "mousemove", o._delayedDragTouchMoveHandler), _(a, "touchmove", o._delayedDragTouchMoveHandler), s.supportPointer && _(a, "pointermove", o._delayedDragTouchMoveHandler), o._dragStartTimer = setTimeout(l, s.delay);
|
|
2078
2014
|
} else
|
|
2079
2015
|
l();
|
|
2080
2016
|
}
|
|
@@ -2084,28 +2020,28 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2084
2020
|
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();
|
|
2085
2021
|
},
|
|
2086
2022
|
_disableDelayedDrag: function() {
|
|
2087
|
-
h &&
|
|
2023
|
+
h && Sn(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
2088
2024
|
},
|
|
2089
2025
|
_disableDelayedDragEvents: function() {
|
|
2090
2026
|
var t = this.el.ownerDocument;
|
|
2091
2027
|
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);
|
|
2092
2028
|
},
|
|
2093
2029
|
_triggerDragStart: function(t, e) {
|
|
2094
|
-
e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ?
|
|
2030
|
+
e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? _(document, "pointermove", this._onTouchMove) : e ? _(document, "touchmove", this._onTouchMove) : _(document, "mousemove", this._onTouchMove) : (_(h, "dragend", this), _(R, "dragstart", this._onDragStart));
|
|
2095
2031
|
try {
|
|
2096
|
-
document.selection ?
|
|
2032
|
+
document.selection ? Re(function() {
|
|
2097
2033
|
document.selection.empty();
|
|
2098
2034
|
}) : window.getSelection().removeAllRanges();
|
|
2099
2035
|
} catch {
|
|
2100
2036
|
}
|
|
2101
2037
|
},
|
|
2102
2038
|
_dragStarted: function(t, e) {
|
|
2103
|
-
if (
|
|
2104
|
-
|
|
2039
|
+
if (kt = !1, R && h) {
|
|
2040
|
+
G("dragStarted", this, {
|
|
2105
2041
|
evt: e
|
|
2106
|
-
}), this.nativeDraggable &&
|
|
2042
|
+
}), this.nativeDraggable && _(document, "dragover", ss);
|
|
2107
2043
|
var i = this.options;
|
|
2108
|
-
!t &&
|
|
2044
|
+
!t && Q(h, i.dragClass, !1), Q(h, i.ghostClass, !0), v.active = this, t && this._appendGhost(), W({
|
|
2109
2045
|
sortable: this,
|
|
2110
2046
|
name: "start",
|
|
2111
2047
|
originalEvent: e
|
|
@@ -2114,17 +2050,17 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2114
2050
|
this._nulling();
|
|
2115
2051
|
},
|
|
2116
2052
|
_emulateDragOver: function() {
|
|
2117
|
-
if (
|
|
2118
|
-
this._lastX =
|
|
2119
|
-
for (var t = document.elementFromPoint(
|
|
2053
|
+
if (lt) {
|
|
2054
|
+
this._lastX = lt.clientX, this._lastY = lt.clientY, Ki();
|
|
2055
|
+
for (var t = document.elementFromPoint(lt.clientX, lt.clientY), e = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(lt.clientX, lt.clientY), t !== e); )
|
|
2120
2056
|
e = t;
|
|
2121
|
-
if (h.parentNode[
|
|
2057
|
+
if (h.parentNode[et]._isOutsideThisEl(t), e)
|
|
2122
2058
|
do {
|
|
2123
|
-
if (e[
|
|
2059
|
+
if (e[et]) {
|
|
2124
2060
|
var i = void 0;
|
|
2125
|
-
if (i = e[
|
|
2126
|
-
clientX:
|
|
2127
|
-
clientY:
|
|
2061
|
+
if (i = e[et]._onDragOver({
|
|
2062
|
+
clientX: lt.clientX,
|
|
2063
|
+
clientY: lt.clientY,
|
|
2128
2064
|
target: t,
|
|
2129
2065
|
rootEl: e
|
|
2130
2066
|
}), i && !this.options.dragoverBubble)
|
|
@@ -2132,19 +2068,19 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2132
2068
|
}
|
|
2133
2069
|
t = e;
|
|
2134
2070
|
} while (e = e.parentNode);
|
|
2135
|
-
|
|
2071
|
+
Qi();
|
|
2136
2072
|
}
|
|
2137
2073
|
},
|
|
2138
2074
|
_onTouchMove: function(t) {
|
|
2139
|
-
if (
|
|
2140
|
-
var e = this.options, i = e.fallbackTolerance, o = e.fallbackOffset, r = t.touches ? t.touches[0] : t, s = w &&
|
|
2141
|
-
if (!v.active && !
|
|
2075
|
+
if (Ot) {
|
|
2076
|
+
var e = this.options, i = e.fallbackTolerance, o = e.fallbackOffset, r = t.touches ? t.touches[0] : t, s = w && jt(w, !0), a = w && s && s.a, l = w && s && s.d, u = $e && Y && di(Y), d = (r.clientX - Ot.clientX + o.x) / (a || 1) + (u ? u[0] - xn[0] : 0) / (a || 1), c = (r.clientY - Ot.clientY + o.y) / (l || 1) + (u ? u[1] - xn[1] : 0) / (l || 1);
|
|
2077
|
+
if (!v.active && !kt) {
|
|
2142
2078
|
if (i && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < i)
|
|
2143
2079
|
return;
|
|
2144
2080
|
this._onDragStart(t, !0);
|
|
2145
2081
|
}
|
|
2146
2082
|
if (w) {
|
|
2147
|
-
s ? (s.e += d - (
|
|
2083
|
+
s ? (s.e += d - (wn || 0), s.f += c - (En || 0)) : s = {
|
|
2148
2084
|
a: 1,
|
|
2149
2085
|
b: 0,
|
|
2150
2086
|
c: 0,
|
|
@@ -2153,44 +2089,43 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2153
2089
|
f: c
|
|
2154
2090
|
};
|
|
2155
2091
|
var p = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
|
|
2156
|
-
b(w, "webkitTransform", p), b(w, "mozTransform", p), b(w, "msTransform", p), b(w, "transform", p),
|
|
2092
|
+
b(w, "webkitTransform", p), b(w, "mozTransform", p), b(w, "msTransform", p), b(w, "transform", p), wn = d, En = c, lt = r;
|
|
2157
2093
|
}
|
|
2158
2094
|
t.cancelable && t.preventDefault();
|
|
2159
2095
|
}
|
|
2160
2096
|
},
|
|
2161
2097
|
_appendGhost: function() {
|
|
2162
2098
|
if (!w) {
|
|
2163
|
-
var t = this.options.fallbackOnBody ? document.body :
|
|
2164
|
-
if (
|
|
2165
|
-
for (
|
|
2166
|
-
|
|
2167
|
-
|
|
2099
|
+
var t = this.options.fallbackOnBody ? document.body : R, e = I(h, !0, $e, !0, t), i = this.options;
|
|
2100
|
+
if ($e) {
|
|
2101
|
+
for (Y = t; b(Y, "position") === "static" && b(Y, "transform") === "none" && Y !== document; )
|
|
2102
|
+
Y = Y.parentNode;
|
|
2103
|
+
Y !== document.body && Y !== document.documentElement ? (Y === document && (Y = ct()), e.top += Y.scrollTop, e.left += Y.scrollLeft) : Y = ct(), xn = di(Y);
|
|
2168
2104
|
}
|
|
2169
|
-
w = h.cloneNode(!0),
|
|
2105
|
+
w = h.cloneNode(!0), Q(w, i.ghostClass, !1), Q(w, i.fallbackClass, !0), Q(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", $e ? "absolute" : "fixed"), b(w, "zIndex", "100000"), b(w, "pointerEvents", "none"), v.ghost = w, t.appendChild(w), b(w, "transform-origin", hi / parseInt(w.style.width) * 100 + "% " + pi / parseInt(w.style.height) * 100 + "%");
|
|
2170
2106
|
}
|
|
2171
2107
|
},
|
|
2172
2108
|
_onDragStart: function(t, e) {
|
|
2173
2109
|
var i = this, o = t.dataTransfer, r = i.options;
|
|
2174
|
-
if (
|
|
2110
|
+
if (G("dragStart", this, {
|
|
2175
2111
|
evt: t
|
|
2176
2112
|
}), v.eventCanceled) {
|
|
2177
2113
|
this._onDrop();
|
|
2178
2114
|
return;
|
|
2179
2115
|
}
|
|
2180
|
-
|
|
2181
|
-
|
|
2116
|
+
G("setupClone", this), v.eventCanceled || (D = Yi(h), D.removeAttribute("id"), D.draggable = !1, D.style["will-change"] = "", this._hideClone(), Q(D, this.options.chosenClass, !1), v.clone = D), i.cloneId = Re(function() {
|
|
2117
|
+
G("clone", i), !v.eventCanceled && (i.options.removeCloneOnHide || R.insertBefore(D, h), i._hideClone(), W({
|
|
2182
2118
|
sortable: i,
|
|
2183
2119
|
name: "clone"
|
|
2184
2120
|
}));
|
|
2185
|
-
}), !e &&
|
|
2121
|
+
}), !e && Q(h, r.dragClass, !0), e ? (Le = !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)), _(document, "drop", i), b(h, "transform", "translateZ(0)")), kt = !0, i._dragStartId = Re(i._dragStarted.bind(i, e, t)), _(document, "selectstart", i), ee = !0, se && b(document.body, "user-select", "none");
|
|
2186
2122
|
},
|
|
2187
2123
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
2188
2124
|
_onDragOver: function(t) {
|
|
2189
|
-
var e = this.el, i = t.target, o, r, s, a = this.options, l = a.group, u = v.active, d =
|
|
2190
|
-
if (
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
W(Gt, g, ct({
|
|
2125
|
+
var e = this.el, i = t.target, o, r, s, a = this.options, l = a.group, u = v.active, d = xe === l, c = a.sort, p = U || u, f, g = this, y = !1;
|
|
2126
|
+
if (Pn) return;
|
|
2127
|
+
function P(Jt, Ao) {
|
|
2128
|
+
G(Jt, g, dt({
|
|
2194
2129
|
evt: t,
|
|
2195
2130
|
isOwner: d,
|
|
2196
2131
|
axis: f ? "vertical" : "horizontal",
|
|
@@ -2201,72 +2136,70 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2201
2136
|
fromSortable: p,
|
|
2202
2137
|
target: i,
|
|
2203
2138
|
completed: B,
|
|
2204
|
-
onMove: function(
|
|
2205
|
-
return
|
|
2139
|
+
onMove: function(Yn, Co) {
|
|
2140
|
+
return _e(R, e, h, o, Yn, I(Yn), t, Co);
|
|
2206
2141
|
},
|
|
2207
|
-
changed:
|
|
2208
|
-
},
|
|
2142
|
+
changed: K
|
|
2143
|
+
}, Ao));
|
|
2209
2144
|
}
|
|
2210
2145
|
function L() {
|
|
2211
2146
|
P("dragOverAnimationCapture"), g.captureAnimationState(), g !== p && p.captureAnimationState();
|
|
2212
2147
|
}
|
|
2213
|
-
function B(
|
|
2148
|
+
function B(Jt) {
|
|
2214
2149
|
return P("dragOverCompleted", {
|
|
2215
|
-
insertion:
|
|
2216
|
-
}),
|
|
2150
|
+
insertion: Jt
|
|
2151
|
+
}), Jt && (d ? u._hideClone() : u._showClone(g), g !== p && (Q(h, U ? U.options.ghostClass : u.options.ghostClass, !1), Q(h, a.ghostClass, !0)), U !== g && g !== v.active ? U = g : g === v.active && U && (U = null), p === g && (g._ignoreWhileAnimating = i), g.animateAll(function() {
|
|
2217
2152
|
P("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
|
|
2218
|
-
}), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (i === h && !h.animated || i === e && !i.animated) && (
|
|
2153
|
+
}), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (i === h && !h.animated || i === e && !i.animated) && (Vt = null), !a.dragoverBubble && !t.rootEl && i !== document && (h.parentNode[et]._isOutsideThisEl(t.target), !Jt && Rt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), y = !0;
|
|
2219
2154
|
}
|
|
2220
|
-
function
|
|
2221
|
-
|
|
2155
|
+
function K() {
|
|
2156
|
+
tt = it(h), xt = it(h, a.draggable), W({
|
|
2222
2157
|
sortable: g,
|
|
2223
2158
|
name: "change",
|
|
2224
2159
|
toEl: e,
|
|
2225
|
-
newIndex:
|
|
2226
|
-
newDraggableIndex:
|
|
2160
|
+
newIndex: tt,
|
|
2161
|
+
newDraggableIndex: xt,
|
|
2227
2162
|
originalEvent: t
|
|
2228
2163
|
});
|
|
2229
2164
|
}
|
|
2230
|
-
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), i =
|
|
2231
|
-
return y;
|
|
2165
|
+
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), i = ut(i, a.draggable, e, !0), P("dragOver"), v.eventCanceled) return y;
|
|
2232
2166
|
if (h.contains(t.target) || i.animated && i.animatingX && i.animatingY || g._ignoreWhileAnimating === i)
|
|
2233
2167
|
return B(!1);
|
|
2234
|
-
if (
|
|
2235
|
-
if (f = this._getDirection(t, i) === "vertical", o = I(h), P("dragOverValid"), v.eventCanceled)
|
|
2236
|
-
return y;
|
|
2168
|
+
if (Le = !1, u && !a.disabled && (d ? c || (s = N !== R) : U === this || (this.lastPutMode = xe.checkPull(this, u, h, t)) && l.checkPut(this, u, h, t))) {
|
|
2169
|
+
if (f = this._getDirection(t, i) === "vertical", o = I(h), P("dragOverValid"), v.eventCanceled) return y;
|
|
2237
2170
|
if (s)
|
|
2238
|
-
return N =
|
|
2239
|
-
var
|
|
2240
|
-
if (!
|
|
2241
|
-
if (
|
|
2171
|
+
return N = R, L(), this._hideClone(), P("revert"), v.eventCanceled || (Dt ? R.insertBefore(h, Dt) : R.appendChild(h)), B(!0);
|
|
2172
|
+
var q = jn(e, a.draggable);
|
|
2173
|
+
if (!q || cs(t, f, this) && !q.animated) {
|
|
2174
|
+
if (q === h)
|
|
2242
2175
|
return B(!1);
|
|
2243
|
-
if (
|
|
2244
|
-
return L(),
|
|
2245
|
-
} else if (
|
|
2246
|
-
var
|
|
2247
|
-
if (
|
|
2176
|
+
if (q && e === t.target && (i = q), i && (r = I(i)), _e(R, e, h, o, i, r, t, !!i) !== !1)
|
|
2177
|
+
return L(), q && q.nextSibling ? e.insertBefore(h, q.nextSibling) : e.appendChild(h), N = e, K(), B(!0);
|
|
2178
|
+
} else if (q && us(t, f, this)) {
|
|
2179
|
+
var st = Xt(e, 0, a, !0);
|
|
2180
|
+
if (st === h)
|
|
2248
2181
|
return B(!1);
|
|
2249
|
-
if (i =
|
|
2250
|
-
return L(), e.insertBefore(h,
|
|
2182
|
+
if (i = st, r = I(i), _e(R, e, h, o, i, r, t, !1) !== !1)
|
|
2183
|
+
return L(), e.insertBefore(h, st), N = e, K(), B(!0);
|
|
2251
2184
|
} else if (i.parentNode === e) {
|
|
2252
2185
|
r = I(i);
|
|
2253
|
-
var
|
|
2254
|
-
|
|
2255
|
-
var
|
|
2256
|
-
if (
|
|
2257
|
-
var
|
|
2186
|
+
var A = 0, Z, at = h.parentNode !== e, X = !os(h.animated && h.toRect || o, i.animated && i.toRect || r, f), qt = f ? "top" : "left", vt = ci(i, "top", "top") || ci(h, "top", "top"), Wt = vt ? vt.scrollTop : void 0;
|
|
2187
|
+
Vt !== i && (Z = r[qt], ce = !1, Se = !X && a.invertSwap || at), A = ds(t, i, r, f, X ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Se, Vt === i);
|
|
2188
|
+
var ht;
|
|
2189
|
+
if (A !== 0) {
|
|
2190
|
+
var Ct = it(h);
|
|
2258
2191
|
do
|
|
2259
|
-
|
|
2260
|
-
while (
|
|
2192
|
+
Ct -= A, ht = N.children[Ct];
|
|
2193
|
+
while (ht && (b(ht, "display") === "none" || ht === w));
|
|
2261
2194
|
}
|
|
2262
|
-
if (
|
|
2195
|
+
if (A === 0 || ht === i)
|
|
2263
2196
|
return B(!1);
|
|
2264
|
-
|
|
2265
|
-
var
|
|
2266
|
-
|
|
2267
|
-
var
|
|
2268
|
-
if (
|
|
2269
|
-
return (
|
|
2197
|
+
Vt = i, ue = A;
|
|
2198
|
+
var Gt = i.nextElementSibling, wt = !1;
|
|
2199
|
+
wt = A === 1;
|
|
2200
|
+
var Ee = _e(R, e, h, o, i, r, t, wt);
|
|
2201
|
+
if (Ee !== !1)
|
|
2202
|
+
return (Ee === 1 || Ee === -1) && (wt = Ee === 1), Pn = !0, setTimeout(ls, 30), L(), wt && !Gt ? e.appendChild(h) : i.parentNode.insertBefore(h, wt ? Gt : i), vt && Xi(vt, 0, Wt - vt.scrollTop), N = h.parentNode, Z !== void 0 && !Se && (Oe = Math.abs(Z - I(i)[qt])), K(), B(!0);
|
|
2270
2203
|
}
|
|
2271
2204
|
if (e.contains(h))
|
|
2272
2205
|
return B(!1);
|
|
@@ -2275,7 +2208,7 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2275
2208
|
},
|
|
2276
2209
|
_ignoreWhileAnimating: null,
|
|
2277
2210
|
_offMoveEvents: function() {
|
|
2278
|
-
S(document, "mousemove", this._onTouchMove), S(document, "touchmove", this._onTouchMove), S(document, "pointermove", this._onTouchMove), S(document, "dragover",
|
|
2211
|
+
S(document, "mousemove", this._onTouchMove), S(document, "touchmove", this._onTouchMove), S(document, "pointermove", this._onTouchMove), S(document, "dragover", Rt), S(document, "mousemove", Rt), S(document, "touchmove", Rt);
|
|
2279
2212
|
},
|
|
2280
2213
|
_offUpEvents: function() {
|
|
2281
2214
|
var t = this.el.ownerDocument;
|
|
@@ -2283,52 +2216,52 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2283
2216
|
},
|
|
2284
2217
|
_onDrop: function(t) {
|
|
2285
2218
|
var e = this.el, i = this.options;
|
|
2286
|
-
if (
|
|
2219
|
+
if (tt = it(h), xt = it(h, i.draggable), G("drop", this, {
|
|
2287
2220
|
evt: t
|
|
2288
|
-
}), N = h && h.parentNode,
|
|
2221
|
+
}), N = h && h.parentNode, tt = it(h), xt = it(h, i.draggable), v.eventCanceled) {
|
|
2289
2222
|
this._nulling();
|
|
2290
2223
|
return;
|
|
2291
2224
|
}
|
|
2292
|
-
|
|
2225
|
+
kt = !1, Se = !1, ce = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), On(this.cloneId), On(this._dragStartId), this.nativeDraggable && (S(document, "drop", this), S(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), se && b(document.body, "user-select", ""), b(h, "transform", ""), t && (ee && (t.cancelable && t.preventDefault(), !i.dropBubble && t.stopPropagation()), w && w.parentNode && w.parentNode.removeChild(w), (R === N || U && U.lastPutMode !== "clone") && D && D.parentNode && D.parentNode.removeChild(D), h && (this.nativeDraggable && S(h, "dragend", this), Sn(h), h.style["will-change"] = "", ee && !kt && Q(h, U ? U.options.ghostClass : this.options.ghostClass, !1), Q(h, this.options.chosenClass, !1), W({
|
|
2293
2226
|
sortable: this,
|
|
2294
2227
|
name: "unchoose",
|
|
2295
2228
|
toEl: N,
|
|
2296
2229
|
newIndex: null,
|
|
2297
2230
|
newDraggableIndex: null,
|
|
2298
2231
|
originalEvent: t
|
|
2299
|
-
}),
|
|
2232
|
+
}), R !== N ? (tt >= 0 && (W({
|
|
2300
2233
|
rootEl: N,
|
|
2301
2234
|
name: "add",
|
|
2302
2235
|
toEl: N,
|
|
2303
|
-
fromEl:
|
|
2236
|
+
fromEl: R,
|
|
2304
2237
|
originalEvent: t
|
|
2305
|
-
}),
|
|
2238
|
+
}), W({
|
|
2306
2239
|
sortable: this,
|
|
2307
2240
|
name: "remove",
|
|
2308
2241
|
toEl: N,
|
|
2309
2242
|
originalEvent: t
|
|
2310
|
-
}),
|
|
2243
|
+
}), W({
|
|
2311
2244
|
rootEl: N,
|
|
2312
2245
|
name: "sort",
|
|
2313
2246
|
toEl: N,
|
|
2314
|
-
fromEl:
|
|
2247
|
+
fromEl: R,
|
|
2315
2248
|
originalEvent: t
|
|
2316
|
-
}),
|
|
2249
|
+
}), W({
|
|
2317
2250
|
sortable: this,
|
|
2318
2251
|
name: "sort",
|
|
2319
2252
|
toEl: N,
|
|
2320
2253
|
originalEvent: t
|
|
2321
|
-
})), U && U.save()) :
|
|
2254
|
+
})), U && U.save()) : tt !== Ft && tt >= 0 && (W({
|
|
2322
2255
|
sortable: this,
|
|
2323
2256
|
name: "update",
|
|
2324
2257
|
toEl: N,
|
|
2325
2258
|
originalEvent: t
|
|
2326
|
-
}),
|
|
2259
|
+
}), W({
|
|
2327
2260
|
sortable: this,
|
|
2328
2261
|
name: "sort",
|
|
2329
2262
|
toEl: N,
|
|
2330
2263
|
originalEvent: t
|
|
2331
|
-
})), v.active && ((
|
|
2264
|
+
})), v.active && ((tt == null || tt === -1) && (tt = Ft, xt = le), W({
|
|
2332
2265
|
sortable: this,
|
|
2333
2266
|
name: "end",
|
|
2334
2267
|
toEl: N,
|
|
@@ -2336,9 +2269,9 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2336
2269
|
}), this.save()))), this._nulling();
|
|
2337
2270
|
},
|
|
2338
2271
|
_nulling: function() {
|
|
2339
|
-
|
|
2272
|
+
G("nulling", this), R = h = N = w = Dt = D = Pe = St = Ot = lt = ee = tt = xt = Ft = le = Vt = ue = U = xe = v.dragged = v.ghost = v.clone = v.active = null, Ue.forEach(function(t) {
|
|
2340
2273
|
t.checked = !0;
|
|
2341
|
-
}),
|
|
2274
|
+
}), Ue.length = wn = En = 0;
|
|
2342
2275
|
},
|
|
2343
2276
|
handleEvent: function(t) {
|
|
2344
2277
|
switch (t.type) {
|
|
@@ -2348,7 +2281,7 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2348
2281
|
break;
|
|
2349
2282
|
case "dragenter":
|
|
2350
2283
|
case "dragover":
|
|
2351
|
-
h && (this._onDragOver(t),
|
|
2284
|
+
h && (this._onDragOver(t), as(t));
|
|
2352
2285
|
break;
|
|
2353
2286
|
case "selectstart":
|
|
2354
2287
|
t.preventDefault();
|
|
@@ -2361,7 +2294,7 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2361
2294
|
*/
|
|
2362
2295
|
toArray: function() {
|
|
2363
2296
|
for (var t = [], e, i = this.el.children, o = 0, r = i.length, s = this.options; o < r; o++)
|
|
2364
|
-
e = i[o],
|
|
2297
|
+
e = i[o], ut(e, s.draggable, this.el, !1) && t.push(e.getAttribute(s.dataIdAttr) || ps(e));
|
|
2365
2298
|
return t;
|
|
2366
2299
|
},
|
|
2367
2300
|
/**
|
|
@@ -2372,7 +2305,7 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2372
2305
|
var i = {}, o = this.el;
|
|
2373
2306
|
this.toArray().forEach(function(r, s) {
|
|
2374
2307
|
var a = o.children[s];
|
|
2375
|
-
|
|
2308
|
+
ut(a, this.options.draggable, o, !1) && (i[r] = a);
|
|
2376
2309
|
}, this), e && this.captureAnimationState(), t.forEach(function(r) {
|
|
2377
2310
|
i[r] && (o.removeChild(i[r]), o.appendChild(i[r]));
|
|
2378
2311
|
}), e && this.animateAll();
|
|
@@ -2391,7 +2324,7 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2391
2324
|
* @returns {HTMLElement|null}
|
|
2392
2325
|
*/
|
|
2393
2326
|
closest: function(t, e) {
|
|
2394
|
-
return
|
|
2327
|
+
return ut(t, e || this.options.draggable, this.el, !1);
|
|
2395
2328
|
},
|
|
2396
2329
|
/**
|
|
2397
2330
|
* Set/get option
|
|
@@ -2403,24 +2336,23 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2403
2336
|
var i = this.options;
|
|
2404
2337
|
if (e === void 0)
|
|
2405
2338
|
return i[t];
|
|
2406
|
-
var o =
|
|
2407
|
-
typeof o < "u" ? i[t] = o : i[t] = e, t === "group" &&
|
|
2339
|
+
var o = we.modifyOption(this, t, e);
|
|
2340
|
+
typeof o < "u" ? i[t] = o : i[t] = e, t === "group" && Ji(i);
|
|
2408
2341
|
},
|
|
2409
2342
|
/**
|
|
2410
2343
|
* Destroy
|
|
2411
2344
|
*/
|
|
2412
2345
|
destroy: function() {
|
|
2413
|
-
|
|
2346
|
+
G("destroy", this);
|
|
2414
2347
|
var t = this.el;
|
|
2415
|
-
t[
|
|
2348
|
+
t[et] = 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) {
|
|
2416
2349
|
e.removeAttribute("draggable");
|
|
2417
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
2350
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), ke.splice(ke.indexOf(this.el), 1), this.el = t = null;
|
|
2418
2351
|
},
|
|
2419
2352
|
_hideClone: function() {
|
|
2420
|
-
if (!
|
|
2421
|
-
if (
|
|
2422
|
-
|
|
2423
|
-
b(D, "display", "none"), this.options.removeCloneOnHide && D.parentNode && D.parentNode.removeChild(D), xt = !0;
|
|
2353
|
+
if (!St) {
|
|
2354
|
+
if (G("hideClone", this), v.eventCanceled) return;
|
|
2355
|
+
b(D, "display", "none"), this.options.removeCloneOnHide && D.parentNode && D.parentNode.removeChild(D), St = !0;
|
|
2424
2356
|
}
|
|
2425
2357
|
},
|
|
2426
2358
|
_showClone: function(t) {
|
|
@@ -2428,95 +2360,94 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
2428
2360
|
this._hideClone();
|
|
2429
2361
|
return;
|
|
2430
2362
|
}
|
|
2431
|
-
if (
|
|
2432
|
-
if (
|
|
2433
|
-
|
|
2434
|
-
h.parentNode == O && !this.options.group.revertClone ? O.insertBefore(D, h) : Ot ? O.insertBefore(D, Ot) : O.appendChild(D), this.options.group.revertClone && this.animate(h, D), b(D, "display", ""), xt = !1;
|
|
2363
|
+
if (St) {
|
|
2364
|
+
if (G("showClone", this), v.eventCanceled) return;
|
|
2365
|
+
h.parentNode == R && !this.options.group.revertClone ? R.insertBefore(D, h) : Dt ? R.insertBefore(D, Dt) : R.appendChild(D), this.options.group.revertClone && this.animate(h, D), b(D, "display", ""), St = !1;
|
|
2435
2366
|
}
|
|
2436
2367
|
}
|
|
2437
2368
|
};
|
|
2438
|
-
function
|
|
2369
|
+
function as(n) {
|
|
2439
2370
|
n.dataTransfer && (n.dataTransfer.dropEffect = "move"), n.cancelable && n.preventDefault();
|
|
2440
2371
|
}
|
|
2441
|
-
function
|
|
2442
|
-
var l, u = n[
|
|
2443
|
-
return window.CustomEvent && !
|
|
2372
|
+
function _e(n, t, e, i, o, r, s, a) {
|
|
2373
|
+
var l, u = n[et], d = u.options.onMove, c;
|
|
2374
|
+
return window.CustomEvent && !bt && !ve ? l = new CustomEvent("move", {
|
|
2444
2375
|
bubbles: !0,
|
|
2445
2376
|
cancelable: !0
|
|
2446
2377
|
}) : (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 || I(t), l.willInsertAfter = a, l.originalEvent = s, n.dispatchEvent(l), d && (c = d.call(u, l, s)), c;
|
|
2447
2378
|
}
|
|
2448
|
-
function
|
|
2379
|
+
function Sn(n) {
|
|
2449
2380
|
n.draggable = !1;
|
|
2450
2381
|
}
|
|
2451
|
-
function
|
|
2452
|
-
|
|
2382
|
+
function ls() {
|
|
2383
|
+
Pn = !1;
|
|
2453
2384
|
}
|
|
2454
|
-
function
|
|
2455
|
-
var i = I(
|
|
2385
|
+
function us(n, t, e) {
|
|
2386
|
+
var i = I(Xt(e.el, 0, e.options, !0)), o = qi(e.el, e.options, w), r = 10;
|
|
2456
2387
|
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;
|
|
2457
2388
|
}
|
|
2458
|
-
function
|
|
2459
|
-
var i = I(
|
|
2389
|
+
function cs(n, t, e) {
|
|
2390
|
+
var i = I(jn(e.el, e.options.draggable)), o = qi(e.el, e.options, w), r = 10;
|
|
2460
2391
|
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;
|
|
2461
2392
|
}
|
|
2462
|
-
function
|
|
2393
|
+
function ds(n, t, e, i, o, r, s, a) {
|
|
2463
2394
|
var l = i ? n.clientY : n.clientX, u = i ? e.height : e.width, d = i ? e.top : e.left, c = i ? e.bottom : e.right, p = !1;
|
|
2464
2395
|
if (!s) {
|
|
2465
|
-
if (a &&
|
|
2466
|
-
if (!
|
|
2396
|
+
if (a && Oe < u * o) {
|
|
2397
|
+
if (!ce && (ue === 1 ? l > d + u * r / 2 : l < c - u * r / 2) && (ce = !0), ce)
|
|
2467
2398
|
p = !0;
|
|
2468
|
-
else if (
|
|
2469
|
-
return -
|
|
2399
|
+
else if (ue === 1 ? l < d + Oe : l > c - Oe)
|
|
2400
|
+
return -ue;
|
|
2470
2401
|
} else if (l > d + u * (1 - o) / 2 && l < c - u * (1 - o) / 2)
|
|
2471
|
-
return
|
|
2402
|
+
return hs(t);
|
|
2472
2403
|
}
|
|
2473
2404
|
return p = p || s, p && (l < d + u * r / 2 || l > c - u * r / 2) ? l > d + u / 2 ? 1 : -1 : 0;
|
|
2474
2405
|
}
|
|
2475
|
-
function
|
|
2476
|
-
return
|
|
2406
|
+
function hs(n) {
|
|
2407
|
+
return it(h) < it(n) ? 1 : -1;
|
|
2477
2408
|
}
|
|
2478
|
-
function
|
|
2409
|
+
function ps(n) {
|
|
2479
2410
|
for (var t = n.tagName + n.className + n.src + n.href + n.textContent, e = t.length, i = 0; e--; )
|
|
2480
2411
|
i += t.charCodeAt(e);
|
|
2481
2412
|
return i.toString(36);
|
|
2482
2413
|
}
|
|
2483
|
-
function
|
|
2484
|
-
|
|
2414
|
+
function fs(n) {
|
|
2415
|
+
Ue.length = 0;
|
|
2485
2416
|
for (var t = n.getElementsByTagName("input"), e = t.length; e--; ) {
|
|
2486
2417
|
var i = t[e];
|
|
2487
|
-
i.checked &&
|
|
2418
|
+
i.checked && Ue.push(i);
|
|
2488
2419
|
}
|
|
2489
2420
|
}
|
|
2490
|
-
function
|
|
2421
|
+
function Re(n) {
|
|
2491
2422
|
return setTimeout(n, 0);
|
|
2492
2423
|
}
|
|
2493
|
-
function
|
|
2424
|
+
function On(n) {
|
|
2494
2425
|
return clearTimeout(n);
|
|
2495
2426
|
}
|
|
2496
|
-
|
|
2497
|
-
(v.active ||
|
|
2427
|
+
un && _(document, "touchmove", function(n) {
|
|
2428
|
+
(v.active || kt) && n.cancelable && n.preventDefault();
|
|
2498
2429
|
});
|
|
2499
2430
|
v.utils = {
|
|
2500
|
-
on:
|
|
2431
|
+
on: _,
|
|
2501
2432
|
off: S,
|
|
2502
2433
|
css: b,
|
|
2503
|
-
find:
|
|
2434
|
+
find: zi,
|
|
2504
2435
|
is: function(t, e) {
|
|
2505
|
-
return !!
|
|
2436
|
+
return !!ut(t, e, t, !1);
|
|
2506
2437
|
},
|
|
2507
|
-
extend:
|
|
2508
|
-
throttle:
|
|
2509
|
-
closest:
|
|
2510
|
-
toggleClass:
|
|
2511
|
-
clone:
|
|
2512
|
-
index:
|
|
2513
|
-
nextTick:
|
|
2514
|
-
cancelNextTick:
|
|
2515
|
-
detectDirection:
|
|
2516
|
-
getChild:
|
|
2438
|
+
extend: Gr,
|
|
2439
|
+
throttle: Zi,
|
|
2440
|
+
closest: ut,
|
|
2441
|
+
toggleClass: Q,
|
|
2442
|
+
clone: Yi,
|
|
2443
|
+
index: it,
|
|
2444
|
+
nextTick: Re,
|
|
2445
|
+
cancelNextTick: On,
|
|
2446
|
+
detectDirection: Gi,
|
|
2447
|
+
getChild: Xt
|
|
2517
2448
|
};
|
|
2518
2449
|
v.get = function(n) {
|
|
2519
|
-
return n[
|
|
2450
|
+
return n[et];
|
|
2520
2451
|
};
|
|
2521
2452
|
v.mount = function() {
|
|
2522
2453
|
for (var n = arguments.length, t = new Array(n), e = 0; e < n; e++)
|
|
@@ -2524,15 +2455,15 @@ v.mount = function() {
|
|
|
2524
2455
|
t[0].constructor === Array && (t = t[0]), t.forEach(function(i) {
|
|
2525
2456
|
if (!i.prototype || !i.prototype.constructor)
|
|
2526
2457
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));
|
|
2527
|
-
i.utils && (v.utils =
|
|
2458
|
+
i.utils && (v.utils = dt(dt({}, v.utils), i.utils)), we.mount(i);
|
|
2528
2459
|
});
|
|
2529
2460
|
};
|
|
2530
2461
|
v.create = function(n, t) {
|
|
2531
2462
|
return new v(n, t);
|
|
2532
2463
|
};
|
|
2533
|
-
v.version =
|
|
2534
|
-
var M = [],
|
|
2535
|
-
function
|
|
2464
|
+
v.version = Yr;
|
|
2465
|
+
var M = [], ne, Rn, Dn = !1, $n, _n, Fe, ie;
|
|
2466
|
+
function gs() {
|
|
2536
2467
|
function n() {
|
|
2537
2468
|
this.defaults = {
|
|
2538
2469
|
scroll: !0,
|
|
@@ -2547,74 +2478,74 @@ function vs() {
|
|
|
2547
2478
|
return n.prototype = {
|
|
2548
2479
|
dragStarted: function(e) {
|
|
2549
2480
|
var i = e.originalEvent;
|
|
2550
|
-
this.sortable.nativeDraggable ?
|
|
2481
|
+
this.sortable.nativeDraggable ? _(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? _(document, "pointermove", this._handleFallbackAutoScroll) : i.touches ? _(document, "touchmove", this._handleFallbackAutoScroll) : _(document, "mousemove", this._handleFallbackAutoScroll);
|
|
2551
2482
|
},
|
|
2552
2483
|
dragOverCompleted: function(e) {
|
|
2553
2484
|
var i = e.originalEvent;
|
|
2554
2485
|
!this.options.dragOverBubble && !i.rootEl && this._handleAutoScroll(i);
|
|
2555
2486
|
},
|
|
2556
2487
|
drop: function() {
|
|
2557
|
-
this.sortable.nativeDraggable ? S(document, "dragover", this._handleAutoScroll) : (S(document, "pointermove", this._handleFallbackAutoScroll), S(document, "touchmove", this._handleFallbackAutoScroll), S(document, "mousemove", this._handleFallbackAutoScroll)),
|
|
2488
|
+
this.sortable.nativeDraggable ? S(document, "dragover", this._handleAutoScroll) : (S(document, "pointermove", this._handleFallbackAutoScroll), S(document, "touchmove", this._handleFallbackAutoScroll), S(document, "mousemove", this._handleFallbackAutoScroll)), gi(), De(), Jr();
|
|
2558
2489
|
},
|
|
2559
2490
|
nulling: function() {
|
|
2560
|
-
|
|
2491
|
+
Fe = Rn = ne = Dn = ie = $n = _n = null, M.length = 0;
|
|
2561
2492
|
},
|
|
2562
2493
|
_handleFallbackAutoScroll: function(e) {
|
|
2563
2494
|
this._handleAutoScroll(e, !0);
|
|
2564
2495
|
},
|
|
2565
2496
|
_handleAutoScroll: function(e, i) {
|
|
2566
2497
|
var o = this, r = (e.touches ? e.touches[0] : e).clientX, s = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, s);
|
|
2567
|
-
if (
|
|
2568
|
-
|
|
2569
|
-
var l =
|
|
2570
|
-
|
|
2571
|
-
var u =
|
|
2572
|
-
u !== l && (l = u,
|
|
2573
|
-
}, 10),
|
|
2498
|
+
if (Fe = e, i || this.options.forceAutoScrollFallback || ve || bt || se) {
|
|
2499
|
+
An(e, this.options, a, i);
|
|
2500
|
+
var l = $t(a, !0);
|
|
2501
|
+
Dn && (!ie || r !== $n || s !== _n) && (ie && gi(), ie = setInterval(function() {
|
|
2502
|
+
var u = $t(document.elementFromPoint(r, s), !0);
|
|
2503
|
+
u !== l && (l = u, De()), An(e, o.options, u, i);
|
|
2504
|
+
}, 10), $n = r, _n = s);
|
|
2574
2505
|
} else {
|
|
2575
|
-
if (!this.options.bubbleScroll ||
|
|
2576
|
-
|
|
2506
|
+
if (!this.options.bubbleScroll || $t(a, !0) === ct()) {
|
|
2507
|
+
De();
|
|
2577
2508
|
return;
|
|
2578
2509
|
}
|
|
2579
|
-
|
|
2510
|
+
An(e, this.options, $t(a, !1), !1);
|
|
2580
2511
|
}
|
|
2581
2512
|
}
|
|
2582
|
-
},
|
|
2513
|
+
}, yt(n, {
|
|
2583
2514
|
pluginName: "scroll",
|
|
2584
2515
|
initializeByDefault: !0
|
|
2585
2516
|
});
|
|
2586
2517
|
}
|
|
2587
|
-
function
|
|
2518
|
+
function De() {
|
|
2588
2519
|
M.forEach(function(n) {
|
|
2589
2520
|
clearInterval(n.pid);
|
|
2590
2521
|
}), M = [];
|
|
2591
2522
|
}
|
|
2592
|
-
function
|
|
2593
|
-
clearInterval(
|
|
2523
|
+
function gi() {
|
|
2524
|
+
clearInterval(ie);
|
|
2594
2525
|
}
|
|
2595
|
-
var
|
|
2526
|
+
var An = Zi(function(n, t, e, i) {
|
|
2596
2527
|
if (t.scroll) {
|
|
2597
|
-
var o = (n.touches ? n.touches[0] : n).clientX, r = (n.touches ? n.touches[0] : n).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l =
|
|
2598
|
-
|
|
2599
|
-
var c = 0, p =
|
|
2528
|
+
var o = (n.touches ? n.touches[0] : n).clientX, r = (n.touches ? n.touches[0] : n).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = ct(), u = !1, d;
|
|
2529
|
+
Rn !== e && (Rn = e, De(), ne = t.scroll, d = t.scrollFn, ne === !0 && (ne = $t(e, !0)));
|
|
2530
|
+
var c = 0, p = ne;
|
|
2600
2531
|
do {
|
|
2601
|
-
var f = p, g = I(f), y = g.top, P = g.bottom, L = g.left, B = g.right,
|
|
2602
|
-
f === l ? (
|
|
2603
|
-
var
|
|
2532
|
+
var f = p, g = I(f), y = g.top, P = g.bottom, L = g.left, B = g.right, K = g.width, q = g.height, st = void 0, A = void 0, Z = f.scrollWidth, at = f.scrollHeight, X = b(f), qt = f.scrollLeft, vt = f.scrollTop;
|
|
2533
|
+
f === l ? (st = K < Z && (X.overflowX === "auto" || X.overflowX === "scroll" || X.overflowX === "visible"), A = q < at && (X.overflowY === "auto" || X.overflowY === "scroll" || X.overflowY === "visible")) : (st = K < Z && (X.overflowX === "auto" || X.overflowX === "scroll"), A = q < at && (X.overflowY === "auto" || X.overflowY === "scroll"));
|
|
2534
|
+
var Wt = st && (Math.abs(B - o) <= s && qt + K < Z) - (Math.abs(L - o) <= s && !!qt), ht = A && (Math.abs(P - r) <= s && vt + q < at) - (Math.abs(y - r) <= s && !!vt);
|
|
2604
2535
|
if (!M[c])
|
|
2605
|
-
for (var
|
|
2606
|
-
M[
|
|
2607
|
-
(M[c].vx !=
|
|
2608
|
-
i && this.layer === 0 && v.active._onTouchMove(
|
|
2609
|
-
var
|
|
2610
|
-
typeof d == "function" && d.call(v.dragged.parentNode[
|
|
2536
|
+
for (var Ct = 0; Ct <= c; Ct++)
|
|
2537
|
+
M[Ct] || (M[Ct] = {});
|
|
2538
|
+
(M[c].vx != Wt || M[c].vy != ht || M[c].el !== f) && (M[c].el = f, M[c].vx = Wt, M[c].vy = ht, clearInterval(M[c].pid), (Wt != 0 || ht != 0) && (u = !0, M[c].pid = setInterval((function() {
|
|
2539
|
+
i && this.layer === 0 && v.active._onTouchMove(Fe);
|
|
2540
|
+
var Gt = M[this.layer].vy ? M[this.layer].vy * a : 0, wt = M[this.layer].vx ? M[this.layer].vx * a : 0;
|
|
2541
|
+
typeof d == "function" && d.call(v.dragged.parentNode[et], wt, Gt, n, Fe, M[this.layer].el) !== "continue" || Xi(M[this.layer].el, wt, Gt);
|
|
2611
2542
|
}).bind({
|
|
2612
2543
|
layer: c
|
|
2613
2544
|
}), 24))), c++;
|
|
2614
|
-
} while (t.bubbleScroll && p !== l && (p =
|
|
2615
|
-
|
|
2545
|
+
} while (t.bubbleScroll && p !== l && (p = $t(p, !1)));
|
|
2546
|
+
Dn = u;
|
|
2616
2547
|
}
|
|
2617
|
-
}, 30),
|
|
2548
|
+
}, 30), to = function(t) {
|
|
2618
2549
|
var e = t.originalEvent, i = t.putSortable, o = t.dragEl, r = t.activeSortable, s = t.dispatchSortableEvent, a = t.hideGhostForTarget, l = t.unhideGhostForTarget;
|
|
2619
2550
|
if (e) {
|
|
2620
2551
|
var u = i || r;
|
|
@@ -2626,9 +2557,9 @@ var Dn = Gi(function(n, t, e, i) {
|
|
|
2626
2557
|
}));
|
|
2627
2558
|
}
|
|
2628
2559
|
};
|
|
2629
|
-
function
|
|
2560
|
+
function zn() {
|
|
2630
2561
|
}
|
|
2631
|
-
|
|
2562
|
+
zn.prototype = {
|
|
2632
2563
|
startIndex: null,
|
|
2633
2564
|
dragStart: function(t) {
|
|
2634
2565
|
var e = t.oldDraggableIndex;
|
|
@@ -2637,40 +2568,39 @@ Gn.prototype = {
|
|
|
2637
2568
|
onSpill: function(t) {
|
|
2638
2569
|
var e = t.dragEl, i = t.putSortable;
|
|
2639
2570
|
this.sortable.captureAnimationState(), i && i.captureAnimationState();
|
|
2640
|
-
var o =
|
|
2571
|
+
var o = Xt(this.sortable.el, this.startIndex, this.options);
|
|
2641
2572
|
o ? this.sortable.el.insertBefore(e, o) : this.sortable.el.appendChild(e), this.sortable.animateAll(), i && i.animateAll();
|
|
2642
2573
|
},
|
|
2643
|
-
drop:
|
|
2574
|
+
drop: to
|
|
2644
2575
|
};
|
|
2645
|
-
|
|
2576
|
+
yt(zn, {
|
|
2646
2577
|
pluginName: "revertOnSpill"
|
|
2647
2578
|
});
|
|
2648
|
-
function
|
|
2579
|
+
function Zn() {
|
|
2649
2580
|
}
|
|
2650
|
-
|
|
2581
|
+
Zn.prototype = {
|
|
2651
2582
|
onSpill: function(t) {
|
|
2652
2583
|
var e = t.dragEl, i = t.putSortable, o = i || this.sortable;
|
|
2653
2584
|
o.captureAnimationState(), e.parentNode && e.parentNode.removeChild(e), o.animateAll();
|
|
2654
2585
|
},
|
|
2655
|
-
drop:
|
|
2586
|
+
drop: to
|
|
2656
2587
|
};
|
|
2657
|
-
|
|
2588
|
+
yt(Zn, {
|
|
2658
2589
|
pluginName: "removeOnSpill"
|
|
2659
2590
|
});
|
|
2660
|
-
v.mount(new
|
|
2661
|
-
v.mount(
|
|
2662
|
-
const
|
|
2591
|
+
v.mount(new gs());
|
|
2592
|
+
v.mount(Zn, zn);
|
|
2593
|
+
const ms = (n) => {
|
|
2663
2594
|
const t = n.item;
|
|
2664
2595
|
let e = Array.prototype.slice.call(t.parentNode.childNodes);
|
|
2665
2596
|
return e = e.filter(
|
|
2666
2597
|
(i) => i.nodeType != Node.ELEMENT_NODE || !i.classList.contains("sortable-fallback")
|
|
2667
2598
|
), e;
|
|
2668
|
-
},
|
|
2599
|
+
}, ys = (n, t, e, i, o, r) => {
|
|
2669
2600
|
const a = n.item.parentNode;
|
|
2670
2601
|
for (const y of e)
|
|
2671
2602
|
a.appendChild(y);
|
|
2672
|
-
if (n.oldIndex == n.newIndex)
|
|
2673
|
-
return;
|
|
2603
|
+
if (n.oldIndex == n.newIndex) return;
|
|
2674
2604
|
const l = i.getArray(), u = (
|
|
2675
2605
|
/** @type {Element & {layer: import("ol/layer").Layer}} */
|
|
2676
2606
|
n.item.querySelector("eox-layercontrol-layer").layer.get(o)
|
|
@@ -2690,7 +2620,7 @@ const ws = (n) => {
|
|
|
2690
2620
|
}
|
|
2691
2621
|
t.requestUpdate();
|
|
2692
2622
|
};
|
|
2693
|
-
function
|
|
2623
|
+
function bs(n, t, e, i) {
|
|
2694
2624
|
let o = [], r = null;
|
|
2695
2625
|
n._sortable = v.create(n, {
|
|
2696
2626
|
handle: ".drag-handle",
|
|
@@ -2698,14 +2628,14 @@ function xs(n, t, e, i) {
|
|
|
2698
2628
|
swapThreshold: 0.5,
|
|
2699
2629
|
animation: 150,
|
|
2700
2630
|
easing: "cubic-bezier(1, 0, 0, 1)",
|
|
2701
|
-
onStart: (s) => o =
|
|
2631
|
+
onStart: (s) => o = ms(s),
|
|
2702
2632
|
onMove: (s) => {
|
|
2703
2633
|
r = s.related;
|
|
2704
2634
|
},
|
|
2705
|
-
onEnd: (s) =>
|
|
2635
|
+
onEnd: (s) => ys(s, i, o, t, e, r)
|
|
2706
2636
|
});
|
|
2707
2637
|
}
|
|
2708
|
-
function
|
|
2638
|
+
function vs(n, t, e, i) {
|
|
2709
2639
|
const o = n.getArray();
|
|
2710
2640
|
let r = !1;
|
|
2711
2641
|
o.forEach((s) => {
|
|
@@ -2713,7 +2643,7 @@ function Ss(n, t, e, i) {
|
|
|
2713
2643
|
s.get(t) || (s.set(t, a), r = !0), s.get(e) || (s.set(e, `layer ${a}`), r = !0), r && i.requestUpdate();
|
|
2714
2644
|
});
|
|
2715
2645
|
}
|
|
2716
|
-
function
|
|
2646
|
+
function Xn(n, t, e) {
|
|
2717
2647
|
let i = [];
|
|
2718
2648
|
const o = (r, s, a) => {
|
|
2719
2649
|
i = [
|
|
@@ -2735,26 +2665,24 @@ function Kn(n, t, e) {
|
|
|
2735
2665
|
};
|
|
2736
2666
|
return o(n, t, e), i;
|
|
2737
2667
|
}
|
|
2738
|
-
function
|
|
2739
|
-
if (!n || !t)
|
|
2740
|
-
|
|
2741
|
-
if (!so(n, e))
|
|
2742
|
-
return !0;
|
|
2668
|
+
function ws(n, t, e) {
|
|
2669
|
+
if (!n || !t) return !1;
|
|
2670
|
+
if (!eo(n, e)) return !0;
|
|
2743
2671
|
const i = n.get("minZoom"), o = n.get("maxZoom"), r = t.getView().getZoom();
|
|
2744
2672
|
return r > i && r < o;
|
|
2745
2673
|
}
|
|
2746
|
-
function
|
|
2674
|
+
function eo(n, t) {
|
|
2747
2675
|
const e = n.get("minZoom"), i = n.get("maxZoom");
|
|
2748
2676
|
return !!(t && (e !== -1 / 0 || i !== 1 / 0));
|
|
2749
2677
|
}
|
|
2750
|
-
function
|
|
2678
|
+
function Es(n, t) {
|
|
2751
2679
|
var o, r, s;
|
|
2752
2680
|
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(
|
|
2753
2681
|
// @ts-ignore
|
|
2754
2682
|
n.getSource ? (r = n.getSource()) == null ? void 0 : r.ol_uid : void 0
|
|
2755
2683
|
)) ? "draw" : n.declutter_ !== void 0 ? "vector" : "raster";
|
|
2756
2684
|
}
|
|
2757
|
-
function
|
|
2685
|
+
function no(n, t) {
|
|
2758
2686
|
var i;
|
|
2759
2687
|
let e = {};
|
|
2760
2688
|
for (const o in n) {
|
|
@@ -2762,7 +2690,7 @@ function ao(n, t) {
|
|
|
2762
2690
|
if (r && r !== "object")
|
|
2763
2691
|
e[o] = r === "number" ? Number(t[o]) : t[o];
|
|
2764
2692
|
else if (typeof n[o] == "object" && ((i = n[o]) != null && i.properties)) {
|
|
2765
|
-
const s =
|
|
2693
|
+
const s = no(
|
|
2766
2694
|
n[o].properties,
|
|
2767
2695
|
t
|
|
2768
2696
|
);
|
|
@@ -2771,24 +2699,33 @@ function ao(n, t) {
|
|
|
2771
2699
|
}
|
|
2772
2700
|
return e;
|
|
2773
2701
|
}
|
|
2774
|
-
function
|
|
2775
|
-
var r;
|
|
2776
|
-
if (!t
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
(
|
|
2780
|
-
|
|
2702
|
+
function xs(n, t) {
|
|
2703
|
+
var r, s, a, l, u;
|
|
2704
|
+
if (!t) return null;
|
|
2705
|
+
let e = {}, i = n.get("type") === "WebGLTile" ? (
|
|
2706
|
+
/** @type {import("ol/layer/WebGLTile").default} */
|
|
2707
|
+
(r = n.style_) == null ? void 0 : r.variables
|
|
2708
|
+
) : (s = n.get("styles")) == null ? void 0 : s.variables;
|
|
2709
|
+
if (t.type === "style" && i)
|
|
2710
|
+
e = i;
|
|
2711
|
+
else if ((l = (a = n.getSource()) == null ? void 0 : a.getTileUrlFunction) != null && l.call(a)) {
|
|
2712
|
+
const d = new URL(n.getSource().getTileUrlFunction()([0, 0, 0]));
|
|
2713
|
+
e = Object.fromEntries(d.searchParams.entries());
|
|
2714
|
+
} else return null;
|
|
2715
|
+
const o = no(
|
|
2716
|
+
((u = t.schema) == null ? void 0 : u.properties) || t.schema,
|
|
2717
|
+
e
|
|
2781
2718
|
);
|
|
2782
2719
|
return Object.keys(o).length ? o : null;
|
|
2783
2720
|
}
|
|
2784
|
-
const
|
|
2721
|
+
const Ss = (n, t) => n == null ? void 0 : n.filter(
|
|
2785
2722
|
(e) => ["remove", "sort"].filter((i) => t != null && t.get("layerControlDisable") ? i !== "sort" : !0).includes(e)
|
|
2786
|
-
),
|
|
2723
|
+
), $s = (n, t) => n == null ? void 0 : n.filter((e) => {
|
|
2787
2724
|
let i = !0;
|
|
2788
2725
|
return ["remove", "sort"].includes(e) && (i = !1), e === "info" && (i = t.get("description")), e === "config" && (i = t.get("layerConfig")), i;
|
|
2789
|
-
}),
|
|
2790
|
-
<button slot="${n}-icon" class="icon">${t ? n :
|
|
2791
|
-
`,
|
|
2726
|
+
}), _s = (n, t) => x`
|
|
2727
|
+
<button slot="${n}-icon" class="icon">${t ? n : C}</button>
|
|
2728
|
+
`, As = (n) => x`
|
|
2792
2729
|
<button
|
|
2793
2730
|
class="remove-icon icon"
|
|
2794
2731
|
@click=${() => {
|
|
@@ -2801,13 +2738,13 @@ const Cs = (n, t) => n == null ? void 0 : n.filter(
|
|
|
2801
2738
|
);
|
|
2802
2739
|
}}
|
|
2803
2740
|
>
|
|
2804
|
-
${n.unstyled ? "x" :
|
|
2741
|
+
${n.unstyled ? "x" : C}
|
|
2805
2742
|
</button>
|
|
2806
|
-
`,
|
|
2743
|
+
`, Cs = (n) => x`
|
|
2807
2744
|
<span class="button sort-icon icon drag-handle">
|
|
2808
|
-
${n ? "═" :
|
|
2745
|
+
${n ? "═" : C}
|
|
2809
2746
|
</span>
|
|
2810
|
-
`,
|
|
2747
|
+
`, io = (n) => {
|
|
2811
2748
|
var e;
|
|
2812
2749
|
const t = ["layerControlHide", "layerControlOptional"];
|
|
2813
2750
|
return (e = n == null ? void 0 : n.getArray()) == null ? void 0 : e.filter((i) => t.every((o) => !i.get(o)));
|
|
@@ -2817,29 +2754,23 @@ const Cs = (n, t) => n == null ? void 0 : n.filter(
|
|
|
2817
2754
|
* Copyright 2020 Google LLC
|
|
2818
2755
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2819
2756
|
*/
|
|
2820
|
-
const
|
|
2757
|
+
const oo = Ln(class extends kn {
|
|
2821
2758
|
constructor(n) {
|
|
2822
|
-
if (super(n), n.type !==
|
|
2823
|
-
|
|
2824
|
-
if (!Wo(n))
|
|
2825
|
-
throw Error("`live` bindings can only contain a single expression");
|
|
2759
|
+
if (super(n), n.type !== Et.PROPERTY && n.type !== Et.ATTRIBUTE && n.type !== Et.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
|
|
2760
|
+
if (!Zo(n)) throw Error("`live` bindings can only contain a single expression");
|
|
2826
2761
|
}
|
|
2827
2762
|
render(n) {
|
|
2828
2763
|
return n;
|
|
2829
2764
|
}
|
|
2830
2765
|
update(n, [t]) {
|
|
2831
|
-
if (t ===
|
|
2832
|
-
return t;
|
|
2766
|
+
if (t === ot || t === C) return t;
|
|
2833
2767
|
const e = n.element, i = n.name;
|
|
2834
|
-
if (n.type ===
|
|
2835
|
-
if (t === e[i])
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
} else if (n.type === wt.ATTRIBUTE && e.getAttribute(i) === t + "")
|
|
2841
|
-
return it;
|
|
2842
|
-
return Bi(n), t;
|
|
2768
|
+
if (n.type === Et.PROPERTY) {
|
|
2769
|
+
if (t === e[i]) return ot;
|
|
2770
|
+
} else if (n.type === Et.BOOLEAN_ATTRIBUTE) {
|
|
2771
|
+
if (!!t === e.hasAttribute(i)) return ot;
|
|
2772
|
+
} else if (n.type === Et.ATTRIBUTE && e.getAttribute(i) === t + "") return ot;
|
|
2773
|
+
return Di(n), t;
|
|
2843
2774
|
}
|
|
2844
2775
|
});
|
|
2845
2776
|
/**
|
|
@@ -2847,90 +2778,131 @@ const uo = Zn(class extends Xn {
|
|
|
2847
2778
|
* Copyright 2017 Google LLC
|
|
2848
2779
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2849
2780
|
*/
|
|
2850
|
-
class
|
|
2781
|
+
class Nn extends kn {
|
|
2851
2782
|
constructor(t) {
|
|
2852
|
-
if (super(t), this.it =
|
|
2853
|
-
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
2783
|
+
if (super(t), this.it = C, t.type !== Et.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
2854
2784
|
}
|
|
2855
2785
|
render(t) {
|
|
2856
|
-
if (t ===
|
|
2857
|
-
|
|
2858
|
-
if (t
|
|
2859
|
-
|
|
2860
|
-
if (typeof t != "string")
|
|
2861
|
-
throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
2862
|
-
if (t === this.it)
|
|
2863
|
-
return this._t;
|
|
2786
|
+
if (t === C || t == null) return this._t = void 0, this.it = t;
|
|
2787
|
+
if (t === ot) return t;
|
|
2788
|
+
if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
2789
|
+
if (t === this.it) return this._t;
|
|
2864
2790
|
this.it = t;
|
|
2865
2791
|
const e = [t];
|
|
2866
2792
|
return e.raw = e, this._t = { _$litType$: this.constructor.resultType, strings: e, values: [] };
|
|
2867
2793
|
}
|
|
2868
2794
|
}
|
|
2869
|
-
|
|
2870
|
-
const
|
|
2795
|
+
Nn.directiveName = "unsafeHTML", Nn.resultType = 1;
|
|
2796
|
+
const Ts = Ln(Nn);
|
|
2871
2797
|
/**
|
|
2872
2798
|
* @license
|
|
2873
2799
|
* Copyright 2021 Google LLC
|
|
2874
2800
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2875
2801
|
*/
|
|
2876
|
-
function*
|
|
2802
|
+
function* Ne(n, t) {
|
|
2877
2803
|
if (n !== void 0) {
|
|
2878
2804
|
let e = 0;
|
|
2879
|
-
for (const i of n)
|
|
2880
|
-
yield t(i, e++);
|
|
2805
|
+
for (const i of n) yield t(i, e++);
|
|
2881
2806
|
}
|
|
2882
2807
|
}
|
|
2883
|
-
const
|
|
2808
|
+
const Ps = (n, t, e) => {
|
|
2884
2809
|
let i = t;
|
|
2885
2810
|
return e.layer.getSource().getTileUrlFunction() && (i || (i = e.layer.getSource().getTileUrlFunction()), e.layer.getSource().setTileUrlFunction(
|
|
2886
|
-
(...o) =>
|
|
2811
|
+
(...o) => jr(i(...o), n)
|
|
2887
2812
|
), e.layer.getSource().setKey(/* @__PURE__ */ new Date())), i;
|
|
2888
2813
|
};
|
|
2889
|
-
|
|
2890
|
-
|
|
2814
|
+
function Os(n, t) {
|
|
2815
|
+
const e = t.get("type") === "WebGLTile" ? (
|
|
2816
|
+
/** @type {import('ol/layer/WebGLTile').default} */
|
|
2817
|
+
t.style_
|
|
2818
|
+
) : t.get("styles");
|
|
2819
|
+
let i = e == null ? void 0 : e.variables;
|
|
2820
|
+
if (i) {
|
|
2821
|
+
const o = ro(n);
|
|
2822
|
+
if (e.variables = {
|
|
2823
|
+
...i,
|
|
2824
|
+
...o
|
|
2825
|
+
}, t.get("type") === "Vector") {
|
|
2826
|
+
const r = Rs(e);
|
|
2827
|
+
t.setStyle(
|
|
2828
|
+
r
|
|
2829
|
+
);
|
|
2830
|
+
} else t.get("type") === "WebGLTile" && t.updateStyleVariables(o);
|
|
2831
|
+
}
|
|
2832
|
+
}
|
|
2833
|
+
const ro = (n) => {
|
|
2834
|
+
const t = {};
|
|
2835
|
+
for (const e in n)
|
|
2836
|
+
if (typeof n[e] == "object" && n[e] !== null) {
|
|
2837
|
+
const i = ro(
|
|
2838
|
+
/** @type {Record<string,any>} */
|
|
2839
|
+
n[e]
|
|
2840
|
+
);
|
|
2841
|
+
for (const o in i)
|
|
2842
|
+
t[o] = i == null ? void 0 : i[o];
|
|
2843
|
+
} else
|
|
2844
|
+
t[e] = n == null ? void 0 : n[e];
|
|
2845
|
+
return t;
|
|
2846
|
+
};
|
|
2847
|
+
function Rs(n) {
|
|
2848
|
+
let t = n;
|
|
2849
|
+
if ("variables" in n) {
|
|
2850
|
+
let e = JSON.stringify(n);
|
|
2851
|
+
const { variables: i } = n;
|
|
2852
|
+
for (const o in i)
|
|
2853
|
+
typeof i[o] == "number" ? e = e.replaceAll(`["var","${o}"]`, i[o]) : e = e.replaceAll(
|
|
2854
|
+
`["var","${o}"]`,
|
|
2855
|
+
`"${i[o]}"`
|
|
2856
|
+
);
|
|
2857
|
+
t = JSON.parse(e);
|
|
2858
|
+
}
|
|
2859
|
+
return t;
|
|
2860
|
+
}
|
|
2861
|
+
var Ae = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2862
|
+
function Ds(n) {
|
|
2891
2863
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
2892
2864
|
}
|
|
2893
|
-
var
|
|
2894
|
-
return
|
|
2865
|
+
var Ns = "Expected a function", mi = NaN, Ms = "[object Symbol]", Is = /^\s+|\s+$/g, Hs = /^[-+]0x[0-9a-f]+$/i, Bs = /^0b[01]+$/i, Vs = /^0o[0-7]+$/i, Ls = parseInt, ks = typeof Ae == "object" && Ae && Ae.Object === Object && Ae, Us = typeof self == "object" && self && self.Object === Object && self, Fs = ks || Us || Function("return this")(), js = Object.prototype, zs = js.toString, Zs = Math.max, Xs = Math.min, Cn = function() {
|
|
2866
|
+
return Fs.Date.now();
|
|
2895
2867
|
};
|
|
2896
|
-
function
|
|
2868
|
+
function Ys(n, t, e) {
|
|
2897
2869
|
var i, o, r, s, a, l, u = 0, d = !1, c = !1, p = !0;
|
|
2898
2870
|
if (typeof n != "function")
|
|
2899
|
-
throw new TypeError(
|
|
2900
|
-
t =
|
|
2901
|
-
function f(
|
|
2902
|
-
var
|
|
2903
|
-
return i = o = void 0, u =
|
|
2871
|
+
throw new TypeError(Ns);
|
|
2872
|
+
t = yi(t) || 0, Mn(e) && (d = !!e.leading, c = "maxWait" in e, r = c ? Zs(yi(e.maxWait) || 0, t) : r, p = "trailing" in e ? !!e.trailing : p);
|
|
2873
|
+
function f(A) {
|
|
2874
|
+
var Z = i, at = o;
|
|
2875
|
+
return i = o = void 0, u = A, s = n.apply(at, Z), s;
|
|
2904
2876
|
}
|
|
2905
|
-
function g(
|
|
2906
|
-
return u =
|
|
2877
|
+
function g(A) {
|
|
2878
|
+
return u = A, a = setTimeout(L, t), d ? f(A) : s;
|
|
2907
2879
|
}
|
|
2908
|
-
function y(
|
|
2909
|
-
var
|
|
2910
|
-
return c ?
|
|
2880
|
+
function y(A) {
|
|
2881
|
+
var Z = A - l, at = A - u, X = t - Z;
|
|
2882
|
+
return c ? Xs(X, r - at) : X;
|
|
2911
2883
|
}
|
|
2912
|
-
function P(
|
|
2913
|
-
var
|
|
2914
|
-
return l === void 0 ||
|
|
2884
|
+
function P(A) {
|
|
2885
|
+
var Z = A - l, at = A - u;
|
|
2886
|
+
return l === void 0 || Z >= t || Z < 0 || c && at >= r;
|
|
2915
2887
|
}
|
|
2916
2888
|
function L() {
|
|
2917
|
-
var
|
|
2918
|
-
if (P(
|
|
2919
|
-
return B(
|
|
2920
|
-
a = setTimeout(L, y(
|
|
2889
|
+
var A = Cn();
|
|
2890
|
+
if (P(A))
|
|
2891
|
+
return B(A);
|
|
2892
|
+
a = setTimeout(L, y(A));
|
|
2921
2893
|
}
|
|
2922
|
-
function B(
|
|
2923
|
-
return a = void 0, p && i ? f(
|
|
2894
|
+
function B(A) {
|
|
2895
|
+
return a = void 0, p && i ? f(A) : (i = o = void 0, s);
|
|
2924
2896
|
}
|
|
2925
|
-
function
|
|
2897
|
+
function K() {
|
|
2926
2898
|
a !== void 0 && clearTimeout(a), u = 0, i = l = o = a = void 0;
|
|
2927
2899
|
}
|
|
2928
|
-
function
|
|
2929
|
-
return a === void 0 ? s : B(
|
|
2900
|
+
function q() {
|
|
2901
|
+
return a === void 0 ? s : B(Cn());
|
|
2930
2902
|
}
|
|
2931
|
-
function
|
|
2932
|
-
var
|
|
2933
|
-
if (i = arguments, o = this, l =
|
|
2903
|
+
function st() {
|
|
2904
|
+
var A = Cn(), Z = P(A);
|
|
2905
|
+
if (i = arguments, o = this, l = A, Z) {
|
|
2934
2906
|
if (a === void 0)
|
|
2935
2907
|
return g(l);
|
|
2936
2908
|
if (c)
|
|
@@ -2938,66 +2910,61 @@ function Ws(n, t, e) {
|
|
|
2938
2910
|
}
|
|
2939
2911
|
return a === void 0 && (a = setTimeout(L, t)), s;
|
|
2940
2912
|
}
|
|
2941
|
-
return
|
|
2913
|
+
return st.cancel = K, st.flush = q, st;
|
|
2942
2914
|
}
|
|
2943
|
-
function
|
|
2915
|
+
function Mn(n) {
|
|
2944
2916
|
var t = typeof n;
|
|
2945
2917
|
return !!n && (t == "object" || t == "function");
|
|
2946
2918
|
}
|
|
2947
|
-
function
|
|
2919
|
+
function qs(n) {
|
|
2948
2920
|
return !!n && typeof n == "object";
|
|
2949
2921
|
}
|
|
2950
|
-
function
|
|
2951
|
-
return typeof n == "symbol" ||
|
|
2922
|
+
function Ws(n) {
|
|
2923
|
+
return typeof n == "symbol" || qs(n) && zs.call(n) == Ms;
|
|
2952
2924
|
}
|
|
2953
|
-
function
|
|
2925
|
+
function yi(n) {
|
|
2954
2926
|
if (typeof n == "number")
|
|
2955
2927
|
return n;
|
|
2956
|
-
if (
|
|
2957
|
-
return
|
|
2958
|
-
if (
|
|
2928
|
+
if (Ws(n))
|
|
2929
|
+
return mi;
|
|
2930
|
+
if (Mn(n)) {
|
|
2959
2931
|
var t = typeof n.valueOf == "function" ? n.valueOf() : n;
|
|
2960
|
-
n =
|
|
2932
|
+
n = Mn(t) ? t + "" : t;
|
|
2961
2933
|
}
|
|
2962
2934
|
if (typeof n != "string")
|
|
2963
2935
|
return n === 0 ? n : +n;
|
|
2964
|
-
n = n.replace(
|
|
2965
|
-
var e =
|
|
2966
|
-
return e ||
|
|
2967
|
-
}
|
|
2968
|
-
var
|
|
2969
|
-
const
|
|
2970
|
-
var
|
|
2971
|
-
class
|
|
2936
|
+
n = n.replace(Is, "");
|
|
2937
|
+
var e = Bs.test(n);
|
|
2938
|
+
return e || Vs.test(n) ? Ls(n.slice(2), e ? 2 : 8) : Hs.test(n) ? mi : +n;
|
|
2939
|
+
}
|
|
2940
|
+
var Gs = Ys;
|
|
2941
|
+
const so = /* @__PURE__ */ Ds(Gs);
|
|
2942
|
+
var zt, ge, me, je, lo, ze, Ze;
|
|
2943
|
+
class ao extends nt {
|
|
2972
2944
|
constructor() {
|
|
2973
2945
|
super();
|
|
2974
|
-
|
|
2975
|
-
* Handles changes in eox-jsonform values.
|
|
2976
|
-
*
|
|
2977
|
-
* @param {{ detail: { value: string; }; }} e
|
|
2978
|
-
*/
|
|
2979
|
-
$(this, ze);
|
|
2946
|
+
T(this, je);
|
|
2980
2947
|
/**
|
|
2981
2948
|
* data input by the user
|
|
2982
2949
|
*
|
|
2983
2950
|
* @type {{[key: string]: any}}
|
|
2984
2951
|
*/
|
|
2985
|
-
|
|
2952
|
+
T(this, zt, {});
|
|
2986
2953
|
/**
|
|
2987
2954
|
* data input by the user
|
|
2988
2955
|
*
|
|
2989
2956
|
* @type {{[key: string]: any}}
|
|
2990
2957
|
*/
|
|
2991
|
-
|
|
2958
|
+
T(this, ge, null);
|
|
2992
2959
|
/**
|
|
2993
2960
|
* Original tile url function, if it exist
|
|
2994
2961
|
*
|
|
2995
2962
|
* @type {Function}
|
|
2996
2963
|
*/
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.debouncedDataChange =
|
|
2964
|
+
T(this, me);
|
|
2965
|
+
T(this, ze, "");
|
|
2966
|
+
T(this, Ze, "");
|
|
2967
|
+
this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.debouncedDataChange = so(k(this, je, lo), 1e3, {
|
|
3001
2968
|
leading: !0
|
|
3002
2969
|
});
|
|
3003
2970
|
}
|
|
@@ -3011,7 +2978,7 @@ class ho extends et {
|
|
|
3011
2978
|
* Renders a JSON form for configuration options of a layer.
|
|
3012
2979
|
*/
|
|
3013
2980
|
render() {
|
|
3014
|
-
|
|
2981
|
+
Kt(this, ge, xs(this.layer, this.layerConfig)), customElements.get("eox-jsonform") || console.error("Please import @eox/jsonform in order to use layerconfig");
|
|
3015
2982
|
const e = {
|
|
3016
2983
|
disable_edit_json: !0,
|
|
3017
2984
|
disable_collapse: !0,
|
|
@@ -3019,16 +2986,16 @@ class ho extends et {
|
|
|
3019
2986
|
};
|
|
3020
2987
|
return x`
|
|
3021
2988
|
<style>
|
|
3022
|
-
${
|
|
3023
|
-
${!this.unstyled &&
|
|
2989
|
+
${O(this, ze)}
|
|
2990
|
+
${!this.unstyled && O(this, Ze)}
|
|
3024
2991
|
</style>
|
|
3025
|
-
${
|
|
2992
|
+
${rt(
|
|
3026
2993
|
this.layerConfig,
|
|
3027
2994
|
() => x`
|
|
3028
2995
|
<!-- Render a JSON form for layer configuration -->
|
|
3029
2996
|
<eox-jsonform
|
|
3030
2997
|
.schema=${this.layerConfig.schema}
|
|
3031
|
-
.value=${
|
|
2998
|
+
.value=${O(this, ge)}
|
|
3032
2999
|
.options=${e}
|
|
3033
3000
|
@change=${this.debouncedDataChange}
|
|
3034
3001
|
></eox-jsonform>
|
|
@@ -3037,14 +3004,23 @@ class ho extends et {
|
|
|
3037
3004
|
`;
|
|
3038
3005
|
}
|
|
3039
3006
|
}
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3007
|
+
zt = new WeakMap(), ge = new WeakMap(), me = new WeakMap(), je = new WeakSet(), /**
|
|
3008
|
+
* Handles changes in eox-jsonform values.
|
|
3009
|
+
*
|
|
3010
|
+
* @param {{ detail: { value: string; }; }} e
|
|
3011
|
+
*/
|
|
3012
|
+
lo = function(e) {
|
|
3013
|
+
Kt(this, zt, e.detail), this.layerConfig.type === "style" ? ["Vector", "WebGLTile"].includes(this.layer.get("type")) ? Os(O(this, zt), this.layer) : console.error(
|
|
3014
|
+
`Layer type ${this.layer.get(
|
|
3015
|
+
"type"
|
|
3016
|
+
)} does not support styles configuration`
|
|
3017
|
+
) : (Kt(this, me, Ps(
|
|
3018
|
+
O(this, zt),
|
|
3019
|
+
O(this, me),
|
|
3044
3020
|
this
|
|
3045
|
-
)), this.requestUpdate();
|
|
3046
|
-
},
|
|
3047
|
-
H(
|
|
3021
|
+
)), this.requestUpdate());
|
|
3022
|
+
}, ze = new WeakMap(), Ze = new WeakMap(), // Define static properties for the component
|
|
3023
|
+
H(ao, "properties", {
|
|
3048
3024
|
layer: { attribute: !1 },
|
|
3049
3025
|
unstyled: { type: Boolean },
|
|
3050
3026
|
noShadow: { type: Boolean },
|
|
@@ -3052,15 +3028,15 @@ H(ho, "properties", {
|
|
|
3052
3028
|
});
|
|
3053
3029
|
customElements.define(
|
|
3054
3030
|
"eox-layercontrol-layerconfig",
|
|
3055
|
-
|
|
3031
|
+
ao
|
|
3056
3032
|
);
|
|
3057
|
-
var ye,
|
|
3058
|
-
class
|
|
3033
|
+
var ye, Xe, Ye;
|
|
3034
|
+
class uo extends nt {
|
|
3059
3035
|
constructor() {
|
|
3060
3036
|
super();
|
|
3061
3037
|
/** @param {number} index */
|
|
3062
|
-
|
|
3063
|
-
|
|
3038
|
+
T(this, ye, (e) => this.selectedTab === e && "highlighted");
|
|
3039
|
+
T(this, Xe, `
|
|
3064
3040
|
.tabbed figure {
|
|
3065
3041
|
margin: 0;
|
|
3066
3042
|
}
|
|
@@ -3081,7 +3057,7 @@ class fo extends et {
|
|
|
3081
3057
|
background: lightgrey;
|
|
3082
3058
|
}
|
|
3083
3059
|
`);
|
|
3084
|
-
|
|
3060
|
+
T(this, Ye, `
|
|
3085
3061
|
.tabbed {
|
|
3086
3062
|
font-size: small;
|
|
3087
3063
|
}
|
|
@@ -3119,22 +3095,22 @@ class fo extends et {
|
|
|
3119
3095
|
const e = this.tabs, i = this.actions, o = i.length + e.length > 1;
|
|
3120
3096
|
return x`
|
|
3121
3097
|
<style>
|
|
3122
|
-
${
|
|
3123
|
-
${!this.unstyled &&
|
|
3098
|
+
${O(this, Xe)}
|
|
3099
|
+
${!this.unstyled && O(this, Ye)}
|
|
3124
3100
|
</style>
|
|
3125
3101
|
<div class="tabbed">
|
|
3126
3102
|
<!-- Navigation for tabs and actions -->
|
|
3127
|
-
${
|
|
3103
|
+
${rt(
|
|
3128
3104
|
o,
|
|
3129
3105
|
() => x`
|
|
3130
3106
|
<nav>
|
|
3131
3107
|
<div>
|
|
3132
3108
|
<!-- Labels for tabs -->
|
|
3133
|
-
${
|
|
3109
|
+
${Ne(
|
|
3134
3110
|
e,
|
|
3135
3111
|
(r, s) => x`
|
|
3136
3112
|
<label
|
|
3137
|
-
class=${
|
|
3113
|
+
class=${O(this, ye).call(this, s)}
|
|
3138
3114
|
@click=${() => this.selectedTab = s}
|
|
3139
3115
|
>
|
|
3140
3116
|
<!-- Customizable icon for each tab -->
|
|
@@ -3145,7 +3121,7 @@ class fo extends et {
|
|
|
3145
3121
|
</div>
|
|
3146
3122
|
<div>
|
|
3147
3123
|
<!-- Icons for actions -->
|
|
3148
|
-
${
|
|
3124
|
+
${Ne(
|
|
3149
3125
|
i,
|
|
3150
3126
|
(r) => x`
|
|
3151
3127
|
<span>
|
|
@@ -3160,10 +3136,10 @@ class fo extends et {
|
|
|
3160
3136
|
)}
|
|
3161
3137
|
<figure>
|
|
3162
3138
|
<!-- Content for each tab -->
|
|
3163
|
-
${
|
|
3139
|
+
${Ne(
|
|
3164
3140
|
e,
|
|
3165
3141
|
(r, s) => x`
|
|
3166
|
-
<div class="tab ${
|
|
3142
|
+
<div class="tab ${O(this, ye).call(this, s)}">
|
|
3167
3143
|
<!-- Content slot for each tab -->
|
|
3168
3144
|
<slot name=${`${r}-content`}>${r}</slot>
|
|
3169
3145
|
</div>
|
|
@@ -3174,16 +3150,16 @@ class fo extends et {
|
|
|
3174
3150
|
`;
|
|
3175
3151
|
}
|
|
3176
3152
|
}
|
|
3177
|
-
ye = new WeakMap(),
|
|
3178
|
-
H(
|
|
3153
|
+
ye = new WeakMap(), Xe = new WeakMap(), Ye = new WeakMap(), // Define static properties for the component
|
|
3154
|
+
H(uo, "properties", {
|
|
3179
3155
|
actions: { attribute: !1 },
|
|
3180
3156
|
selectedTab: { state: !0 },
|
|
3181
3157
|
tabs: { attribute: !1 },
|
|
3182
3158
|
unstyled: { type: Boolean },
|
|
3183
3159
|
noShadow: { type: Boolean }
|
|
3184
3160
|
});
|
|
3185
|
-
customElements.define("eox-layercontrol-tabs",
|
|
3186
|
-
const
|
|
3161
|
+
customElements.define("eox-layercontrol-tabs", uo);
|
|
3162
|
+
const Js = `
|
|
3187
3163
|
button,
|
|
3188
3164
|
.button {
|
|
3189
3165
|
/* TODO: why does this only work here and not from :root? */
|
|
@@ -3307,7 +3283,7 @@ button.smallest.icon::before {
|
|
|
3307
3283
|
width: 16px;
|
|
3308
3284
|
padding: 0px;
|
|
3309
3285
|
}
|
|
3310
|
-
`,
|
|
3286
|
+
`, Ks = `
|
|
3311
3287
|
input[type=radio] {
|
|
3312
3288
|
appearance: none;
|
|
3313
3289
|
-webkit-appearance: none;
|
|
@@ -3335,7 +3311,7 @@ input[type=radio]:checked:after {
|
|
|
3335
3311
|
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");
|
|
3336
3312
|
|
|
3337
3313
|
}
|
|
3338
|
-
`,
|
|
3314
|
+
`, co = `
|
|
3339
3315
|
input[type=checkbox] {
|
|
3340
3316
|
appearance: none;
|
|
3341
3317
|
-webkit-appearance: none;
|
|
@@ -3358,7 +3334,7 @@ input[type=checkbox]:checked:after {
|
|
|
3358
3334
|
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");
|
|
3359
3335
|
|
|
3360
3336
|
}
|
|
3361
|
-
`,
|
|
3337
|
+
`, Qs = `
|
|
3362
3338
|
input[type="range"] {
|
|
3363
3339
|
-webkit-appearance: none;
|
|
3364
3340
|
width: 90%;
|
|
@@ -3436,14 +3412,14 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
3436
3412
|
border: 0;
|
|
3437
3413
|
}
|
|
3438
3414
|
`;
|
|
3439
|
-
var
|
|
3440
|
-
class
|
|
3415
|
+
var qe, We;
|
|
3416
|
+
class ho extends nt {
|
|
3441
3417
|
constructor() {
|
|
3442
3418
|
super();
|
|
3443
3419
|
// Initializes '_removeButton' invoking 'removeButton' function with 'this' context.
|
|
3444
|
-
H(this, "_removeButton", () =>
|
|
3420
|
+
H(this, "_removeButton", () => As(this));
|
|
3445
3421
|
// Initializes '_sortButton' invoking 'sortButton' function with 'unstyled' property as a parameter.
|
|
3446
|
-
H(this, "_sortButton", () =>
|
|
3422
|
+
H(this, "_sortButton", () => Cs(this.unstyled));
|
|
3447
3423
|
/**
|
|
3448
3424
|
* Initializes '_button' as a function accepting 'tool' parameter to generate a Button.
|
|
3449
3425
|
* Uses 'this.unstyled' as a context parameter for Button generation.
|
|
@@ -3451,13 +3427,13 @@ class mo extends et {
|
|
|
3451
3427
|
* @param {string} tool - Tool parameter for Button generation.
|
|
3452
3428
|
* @returns {import("lit").HTMLTemplateResult} - The generated Button element.
|
|
3453
3429
|
*/
|
|
3454
|
-
H(this, "_button", (e) =>
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
${
|
|
3458
|
-
${
|
|
3459
|
-
${
|
|
3460
|
-
${
|
|
3430
|
+
H(this, "_button", (e) => _s(e, this.unstyled));
|
|
3431
|
+
T(this, qe, "");
|
|
3432
|
+
T(this, We, `
|
|
3433
|
+
${Js}
|
|
3434
|
+
${Ks}
|
|
3435
|
+
${co}
|
|
3436
|
+
${Qs}
|
|
3461
3437
|
.drag-handle {
|
|
3462
3438
|
cursor: n-resize;
|
|
3463
3439
|
}
|
|
@@ -3560,19 +3536,19 @@ class mo extends et {
|
|
|
3560
3536
|
}
|
|
3561
3537
|
render() {
|
|
3562
3538
|
var l;
|
|
3563
|
-
const e =
|
|
3539
|
+
const e = Ss(this.tools, this.layer), i = $s(this.tools, this.layer), o = this[`_${e == null ? void 0 : e[0]}Button`] ? (
|
|
3564
3540
|
// @ts-ignore
|
|
3565
3541
|
this[`_${e == null ? void 0 : e[0]}Button`]()
|
|
3566
|
-
) :
|
|
3542
|
+
) : C, 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;
|
|
3567
3543
|
return x`
|
|
3568
3544
|
<style>
|
|
3569
|
-
${
|
|
3570
|
-
${!this.unstyled &&
|
|
3545
|
+
${O(this, qe)}
|
|
3546
|
+
${!this.unstyled && O(this, We)}
|
|
3571
3547
|
</style>
|
|
3572
|
-
${
|
|
3548
|
+
${rt(
|
|
3573
3549
|
s + a > 0,
|
|
3574
3550
|
() => x`
|
|
3575
|
-
${
|
|
3551
|
+
${rt(
|
|
3576
3552
|
s === 1 && a === 0,
|
|
3577
3553
|
() => x`
|
|
3578
3554
|
<div class="single-action-container">
|
|
@@ -3584,7 +3560,7 @@ class mo extends et {
|
|
|
3584
3560
|
return x`
|
|
3585
3561
|
<details
|
|
3586
3562
|
class="tools"
|
|
3587
|
-
open=${this.layer.get("layerControlToolsExpand") ||
|
|
3563
|
+
open=${this.layer.get("layerControlToolsExpand") || C}
|
|
3588
3564
|
>
|
|
3589
3565
|
<summary>
|
|
3590
3566
|
<button class="icon ${r}">Tools</button>
|
|
@@ -3596,10 +3572,10 @@ class mo extends et {
|
|
|
3596
3572
|
.unstyled=${this.unstyled}
|
|
3597
3573
|
>
|
|
3598
3574
|
<!-- Rendering tabs and content -->
|
|
3599
|
-
${
|
|
3575
|
+
${Ne(i, (d) => this._button(d))}
|
|
3600
3576
|
|
|
3601
3577
|
<div slot="info-content">
|
|
3602
|
-
${
|
|
3578
|
+
${Ts(this.layer.get("description"))}
|
|
3603
3579
|
</div>
|
|
3604
3580
|
<div slot="opacity-content">
|
|
3605
3581
|
<!-- Input for opacity -->
|
|
@@ -3608,13 +3584,13 @@ class mo extends et {
|
|
|
3608
3584
|
min="0"
|
|
3609
3585
|
max="1"
|
|
3610
3586
|
step="0.01"
|
|
3611
|
-
value=${
|
|
3587
|
+
value=${oo((u = this.layer) == null ? void 0 : u.getOpacity())}
|
|
3612
3588
|
@input=${(d) => this.layer.setOpacity(parseFloat(d.target.value))}
|
|
3613
3589
|
/>
|
|
3614
3590
|
</div>
|
|
3615
3591
|
<div slot="config-content">
|
|
3616
3592
|
<!-- Layer configuration -->
|
|
3617
|
-
${
|
|
3593
|
+
${rt(
|
|
3618
3594
|
this.layer.get("layerConfig"),
|
|
3619
3595
|
() => x`
|
|
3620
3596
|
<eox-layercontrol-layerconfig
|
|
@@ -3640,8 +3616,8 @@ class mo extends et {
|
|
|
3640
3616
|
`;
|
|
3641
3617
|
}
|
|
3642
3618
|
}
|
|
3643
|
-
|
|
3644
|
-
H(
|
|
3619
|
+
qe = new WeakMap(), We = new WeakMap(), // Define static properties for the component
|
|
3620
|
+
H(ho, "properties", {
|
|
3645
3621
|
layer: { attribute: !1 },
|
|
3646
3622
|
tools: { attribute: !1 },
|
|
3647
3623
|
unstyled: { type: Boolean },
|
|
@@ -3649,11 +3625,11 @@ H(mo, "properties", {
|
|
|
3649
3625
|
});
|
|
3650
3626
|
customElements.define(
|
|
3651
3627
|
"eox-layercontrol-layer-tools",
|
|
3652
|
-
|
|
3628
|
+
ho
|
|
3653
3629
|
);
|
|
3654
|
-
const
|
|
3630
|
+
const ta = (n) => {
|
|
3655
3631
|
const t = () => {
|
|
3656
|
-
const e =
|
|
3632
|
+
const e = ws(
|
|
3657
3633
|
n.layer,
|
|
3658
3634
|
n.map,
|
|
3659
3635
|
n.showLayerZoomState
|
|
@@ -3663,47 +3639,35 @@ const na = (n) => {
|
|
|
3663
3639
|
new CustomEvent("change:resolution", { bubbles: !0 })
|
|
3664
3640
|
));
|
|
3665
3641
|
};
|
|
3666
|
-
|
|
3642
|
+
eo(
|
|
3667
3643
|
n.layer,
|
|
3668
3644
|
n.showLayerZoomState
|
|
3669
3645
|
) && (t(), n.map.getView().on("change:resolution", () => t()));
|
|
3670
|
-
},
|
|
3646
|
+
}, ea = (n, t) => {
|
|
3671
3647
|
const e = t.layer;
|
|
3672
|
-
e.setVisible(n.target.checked), n.target.checked && e.get("layerControlExclusive") && t.
|
|
3673
|
-
"
|
|
3674
|
-
).forEach((o) => {
|
|
3648
|
+
e.setVisible(n.target.checked), n.target.checked && e.get("layerControlExclusive") && t.closest(
|
|
3649
|
+
".layers > ul"
|
|
3650
|
+
).querySelectorAll("eox-layercontrol-layer").forEach((o) => {
|
|
3675
3651
|
var r;
|
|
3676
3652
|
o.layer !== e && ((r = o.layer) != null && r.get("layerControlExclusive")) && (o.layer.setVisible(!1), o.requestUpdate());
|
|
3677
3653
|
}), t.dispatchEvent(
|
|
3678
3654
|
new CustomEvent("changed", { bubbles: !0, detail: e })
|
|
3679
3655
|
), t.requestUpdate();
|
|
3680
3656
|
};
|
|
3681
|
-
var
|
|
3682
|
-
class
|
|
3657
|
+
var At, Me, fo, Ge, Je;
|
|
3658
|
+
class po extends nt {
|
|
3683
3659
|
constructor() {
|
|
3684
3660
|
super();
|
|
3685
|
-
|
|
3686
|
-
* Private method to get layer property by key if available.
|
|
3687
|
-
*
|
|
3688
|
-
* @param {string} key - The key for the layer property.
|
|
3689
|
-
* @returns {any} - The value of the layer property if exists, otherwise undefined.
|
|
3690
|
-
*/
|
|
3691
|
-
$(this, Ft);
|
|
3692
|
-
/**
|
|
3693
|
-
* Handles the click event on the input element triggering the method.
|
|
3694
|
-
*
|
|
3695
|
-
* @param {{target: { checked: boolean }}} evt - The input change event.
|
|
3696
|
-
*/
|
|
3697
|
-
$(this, Je);
|
|
3661
|
+
T(this, At);
|
|
3698
3662
|
/**
|
|
3699
3663
|
* Represents the current layer visibility based on zoom level.
|
|
3700
3664
|
*
|
|
3701
3665
|
* @type {Boolean}
|
|
3702
3666
|
*/
|
|
3703
3667
|
H(this, "currLayerVisibilityBasedOnZoom", !0);
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
${
|
|
3668
|
+
T(this, Ge, "");
|
|
3669
|
+
T(this, Je, `
|
|
3670
|
+
${co}
|
|
3707
3671
|
eox-layercontrol-layer {
|
|
3708
3672
|
width: 100%;
|
|
3709
3673
|
}
|
|
@@ -3757,7 +3721,7 @@ class yo extends et {
|
|
|
3757
3721
|
* and register "change:resolution" ones at the beginning if `showLayerZoomState` is present
|
|
3758
3722
|
*/
|
|
3759
3723
|
firstUpdated() {
|
|
3760
|
-
|
|
3724
|
+
ta(this);
|
|
3761
3725
|
}
|
|
3762
3726
|
/**
|
|
3763
3727
|
* Renders layer controls and tools with conditional display based on certain properties.
|
|
@@ -3766,13 +3730,13 @@ class yo extends et {
|
|
|
3766
3730
|
*/
|
|
3767
3731
|
render() {
|
|
3768
3732
|
var l;
|
|
3769
|
-
const e = this.layer.getVisible(), i = e ? "visible" : "", o = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", r = k(this,
|
|
3733
|
+
const e = this.layer.getVisible(), i = e ? "visible" : "", o = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", r = k(this, At, Me).call(this, "layerControlDisable") ? "disabled" : "", s = k(this, At, Me).call(this, "layerControlExclusive") ? "radio" : "checkbox", a = ((l = this.tools) == null ? void 0 : l.length) > 0;
|
|
3770
3734
|
return x`
|
|
3771
3735
|
<style>
|
|
3772
|
-
${
|
|
3773
|
-
${!this.unstyled &&
|
|
3736
|
+
${O(this, Ge)}
|
|
3737
|
+
${!this.unstyled && O(this, Je)}
|
|
3774
3738
|
</style>
|
|
3775
|
-
${
|
|
3739
|
+
${rt(
|
|
3776
3740
|
this.layer,
|
|
3777
3741
|
() => x`
|
|
3778
3742
|
<!-- Render the layer -->
|
|
@@ -3781,13 +3745,13 @@ class yo extends et {
|
|
|
3781
3745
|
<!-- Input element for layer visibility -->
|
|
3782
3746
|
<input
|
|
3783
3747
|
type=${s}
|
|
3784
|
-
.checked=${
|
|
3785
|
-
@click=${k(this,
|
|
3748
|
+
.checked=${oo(e)}
|
|
3749
|
+
@click=${k(this, At, fo)}
|
|
3786
3750
|
/>
|
|
3787
3751
|
|
|
3788
3752
|
<!-- Layer title -->
|
|
3789
|
-
<span class="title">${k(this,
|
|
3790
|
-
${
|
|
3753
|
+
<span class="title">${k(this, At, Me).call(this, this.titleProperty)}</span>
|
|
3754
|
+
${rt(
|
|
3791
3755
|
a,
|
|
3792
3756
|
() => x`<span class="tools-placeholder"></span>`
|
|
3793
3757
|
)}
|
|
@@ -3806,13 +3770,24 @@ class yo extends et {
|
|
|
3806
3770
|
`;
|
|
3807
3771
|
}
|
|
3808
3772
|
}
|
|
3809
|
-
|
|
3773
|
+
At = new WeakSet(), /**
|
|
3774
|
+
* Private method to get layer property by key if available.
|
|
3775
|
+
*
|
|
3776
|
+
* @param {string} key - The key for the layer property.
|
|
3777
|
+
* @returns {any} - The value of the layer property if exists, otherwise undefined.
|
|
3778
|
+
*/
|
|
3779
|
+
Me = function(e) {
|
|
3810
3780
|
var i;
|
|
3811
3781
|
return (i = this.layer) == null ? void 0 : i.get(e);
|
|
3812
|
-
},
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3782
|
+
}, /**
|
|
3783
|
+
* Handles the click event on the input element triggering the method.
|
|
3784
|
+
*
|
|
3785
|
+
* @param {{target: { checked: boolean }}} evt - The input change event.
|
|
3786
|
+
*/
|
|
3787
|
+
fo = function(e) {
|
|
3788
|
+
ea(e, this);
|
|
3789
|
+
}, Ge = new WeakMap(), Je = new WeakMap(), // Define static properties for the component
|
|
3790
|
+
H(po, "properties", {
|
|
3816
3791
|
layer: { attribute: !1 },
|
|
3817
3792
|
map: { attribute: !1, state: !0 },
|
|
3818
3793
|
titleProperty: { attribute: "title-property", type: String },
|
|
@@ -3821,13 +3796,13 @@ H(yo, "properties", {
|
|
|
3821
3796
|
unstyled: { type: Boolean },
|
|
3822
3797
|
noShadow: { type: Boolean }
|
|
3823
3798
|
});
|
|
3824
|
-
customElements.define("eox-layercontrol-layer",
|
|
3825
|
-
var
|
|
3826
|
-
class
|
|
3799
|
+
customElements.define("eox-layercontrol-layer", po);
|
|
3800
|
+
var Ke, Qe;
|
|
3801
|
+
class go extends nt {
|
|
3827
3802
|
constructor() {
|
|
3828
3803
|
super();
|
|
3829
|
-
|
|
3830
|
-
|
|
3804
|
+
T(this, Ke, "");
|
|
3805
|
+
T(this, Qe, `
|
|
3831
3806
|
details summary {
|
|
3832
3807
|
cursor: pointer;
|
|
3833
3808
|
display: flex;
|
|
@@ -3867,20 +3842,20 @@ class vo extends et {
|
|
|
3867
3842
|
*/
|
|
3868
3843
|
render() {
|
|
3869
3844
|
var o, r;
|
|
3870
|
-
const e = !!((o = this.group) != null && o.get("layerControlExpand")), i = (r =
|
|
3845
|
+
const e = !!((o = this.group) != null && o.get("layerControlExpand")), i = (r = io(
|
|
3871
3846
|
this.group.getLayers()
|
|
3872
3847
|
)) == null ? void 0 : r.length;
|
|
3873
3848
|
return x`
|
|
3874
3849
|
<style>
|
|
3875
|
-
${
|
|
3876
|
-
${!this.unstyled &&
|
|
3850
|
+
${O(this, Ke)}
|
|
3851
|
+
${!this.unstyled && O(this, Qe)}
|
|
3877
3852
|
</style>
|
|
3878
|
-
${
|
|
3853
|
+
${rt(
|
|
3879
3854
|
this.group,
|
|
3880
3855
|
() => x`
|
|
3881
3856
|
<!-- Render the details element with the layer control -->
|
|
3882
3857
|
<details
|
|
3883
|
-
open=${e ||
|
|
3858
|
+
open=${e || C}
|
|
3884
3859
|
data-children-length=${i}
|
|
3885
3860
|
>
|
|
3886
3861
|
<summary>
|
|
@@ -3915,8 +3890,8 @@ class vo extends et {
|
|
|
3915
3890
|
`;
|
|
3916
3891
|
}
|
|
3917
3892
|
}
|
|
3918
|
-
|
|
3919
|
-
H(
|
|
3893
|
+
Ke = new WeakMap(), Qe = new WeakMap(), // Define static properties for the component
|
|
3894
|
+
H(go, "properties", {
|
|
3920
3895
|
group: { attribute: !1 },
|
|
3921
3896
|
idProperty: { attribute: "id-property" },
|
|
3922
3897
|
map: { attribute: !1, state: !0 },
|
|
@@ -3928,30 +3903,30 @@ H(vo, "properties", {
|
|
|
3928
3903
|
});
|
|
3929
3904
|
customElements.define(
|
|
3930
3905
|
"eox-layercontrol-layer-group",
|
|
3931
|
-
|
|
3906
|
+
go
|
|
3932
3907
|
);
|
|
3933
|
-
const
|
|
3934
|
-
const { layers: t, idProperty: e, titleProperty: i, renderRoot: o } = n, r =
|
|
3908
|
+
const na = (n) => {
|
|
3909
|
+
const { layers: t, idProperty: e, titleProperty: i, renderRoot: o } = n, r = so(() => {
|
|
3935
3910
|
n.requestUpdate(), n.dispatchEvent(
|
|
3936
3911
|
new CustomEvent("changed", { bubbles: !0 })
|
|
3937
3912
|
);
|
|
3938
3913
|
}, 50), s = () => r();
|
|
3939
3914
|
if (t && (t.hasListener("change:length") && (t == null || t.un("change:length", s)), t.on("change:length", s), t)) {
|
|
3940
3915
|
const a = o.querySelector("ul");
|
|
3941
|
-
|
|
3916
|
+
vs(
|
|
3942
3917
|
t,
|
|
3943
3918
|
e,
|
|
3944
3919
|
i,
|
|
3945
3920
|
n
|
|
3946
|
-
),
|
|
3921
|
+
), bs(a, t, e, n);
|
|
3947
3922
|
}
|
|
3948
3923
|
};
|
|
3949
|
-
var
|
|
3950
|
-
class
|
|
3924
|
+
var tn, en;
|
|
3925
|
+
class mo extends nt {
|
|
3951
3926
|
constructor() {
|
|
3952
3927
|
super();
|
|
3953
|
-
|
|
3954
|
-
|
|
3928
|
+
T(this, tn, "");
|
|
3929
|
+
T(this, en, `
|
|
3955
3930
|
ul {
|
|
3956
3931
|
padding: 0;
|
|
3957
3932
|
margin: 0;
|
|
@@ -3986,7 +3961,7 @@ class wo extends et {
|
|
|
3986
3961
|
* Executes specific logic after the initial render of the component.
|
|
3987
3962
|
*/
|
|
3988
3963
|
firstUpdated() {
|
|
3989
|
-
|
|
3964
|
+
na(this);
|
|
3990
3965
|
}
|
|
3991
3966
|
/**
|
|
3992
3967
|
* Overrides createRenderRoot to handle shadow DOM creation based on the noShadow property.
|
|
@@ -3999,23 +3974,23 @@ class wo extends et {
|
|
|
3999
3974
|
* layer groups or individual layers accordingly. Utilizes conditional rendering and iterates through available layers.
|
|
4000
3975
|
*/
|
|
4001
3976
|
render() {
|
|
4002
|
-
const e = this.layers ?
|
|
3977
|
+
const e = this.layers ? io(this.layers).reverse() : [];
|
|
4003
3978
|
return x`
|
|
4004
3979
|
<style>
|
|
4005
|
-
${
|
|
4006
|
-
${!this.unstyled &&
|
|
3980
|
+
${O(this, tn)}
|
|
3981
|
+
${!this.unstyled && O(this, en)}
|
|
4007
3982
|
</style>
|
|
4008
3983
|
<ul>
|
|
4009
|
-
${
|
|
3984
|
+
${rt(
|
|
4010
3985
|
this.layers,
|
|
4011
3986
|
() => x`
|
|
4012
|
-
${
|
|
3987
|
+
${qo(
|
|
4013
3988
|
e,
|
|
4014
3989
|
(i) => i,
|
|
4015
3990
|
(i) => x`
|
|
4016
3991
|
<li
|
|
4017
3992
|
data-layer="${i.get(this.idProperty)}"
|
|
4018
|
-
data-type="${
|
|
3993
|
+
data-type="${Es(i, this.map)}"
|
|
4019
3994
|
>
|
|
4020
3995
|
${/** Checks if the layer is a group or individual layer and renders accordingly */
|
|
4021
3996
|
/** @type {import("ol/layer").Group} */
|
|
@@ -4053,8 +4028,8 @@ class wo extends et {
|
|
|
4053
4028
|
`;
|
|
4054
4029
|
}
|
|
4055
4030
|
}
|
|
4056
|
-
|
|
4057
|
-
H(
|
|
4031
|
+
tn = new WeakMap(), en = new WeakMap(), // Define static properties for the component
|
|
4032
|
+
H(mo, "properties", {
|
|
4058
4033
|
idProperty: { attribute: "id-property" },
|
|
4059
4034
|
layers: { attribute: !1 },
|
|
4060
4035
|
map: { attribute: !1, state: !0 },
|
|
@@ -4064,11 +4039,11 @@ H(wo, "properties", {
|
|
|
4064
4039
|
unstyled: { type: Boolean },
|
|
4065
4040
|
noShadow: { type: Boolean }
|
|
4066
4041
|
});
|
|
4067
|
-
customElements.define("eox-layercontrol-layer-list",
|
|
4068
|
-
const
|
|
4042
|
+
customElements.define("eox-layercontrol-layer-list", mo);
|
|
4043
|
+
const ia = (n) => {
|
|
4069
4044
|
const t = n.querySelector(
|
|
4070
4045
|
"select[name=optional]"
|
|
4071
|
-
), e = t ? t.value : null, i =
|
|
4046
|
+
), e = t ? t.value : null, i = Xn(
|
|
4072
4047
|
n.layers.getArray(),
|
|
4073
4048
|
"layerControlOptional",
|
|
4074
4049
|
!0
|
|
@@ -4087,15 +4062,11 @@ const ra = (n) => {
|
|
|
4087
4062
|
)
|
|
4088
4063
|
), n.requestUpdate();
|
|
4089
4064
|
};
|
|
4090
|
-
var
|
|
4091
|
-
class
|
|
4065
|
+
var nn, bo;
|
|
4066
|
+
class yo extends nt {
|
|
4092
4067
|
constructor() {
|
|
4093
4068
|
super();
|
|
4094
|
-
|
|
4095
|
-
* Handles the addition of selected layers to a list.
|
|
4096
|
-
* Invokes the 'addToListMethod' with the current context.
|
|
4097
|
-
*/
|
|
4098
|
-
$(this, rn);
|
|
4069
|
+
T(this, nn);
|
|
4099
4070
|
this.idProperty = "id", this.layers = null, this.titleProperty = "title", this.unstyled = !1, this.noShadow = !1;
|
|
4100
4071
|
}
|
|
4101
4072
|
/**
|
|
@@ -4110,7 +4081,7 @@ class Eo extends et {
|
|
|
4110
4081
|
* Generates dropdown options based on the extracted layer information.
|
|
4111
4082
|
*/
|
|
4112
4083
|
render() {
|
|
4113
|
-
const e =
|
|
4084
|
+
const e = Xn(
|
|
4114
4085
|
this.layers.getArray(),
|
|
4115
4086
|
"layerControlOptional",
|
|
4116
4087
|
!0
|
|
@@ -4134,14 +4105,18 @@ class Eo extends et {
|
|
|
4134
4105
|
</select>
|
|
4135
4106
|
|
|
4136
4107
|
<!-- Button to handle adding layers -->
|
|
4137
|
-
<button @click="${k(this,
|
|
4108
|
+
<button @click="${k(this, nn, bo)}">add</button>
|
|
4138
4109
|
`;
|
|
4139
4110
|
}
|
|
4140
4111
|
}
|
|
4141
|
-
|
|
4142
|
-
|
|
4112
|
+
nn = new WeakSet(), /**
|
|
4113
|
+
* Handles the addition of selected layers to a list.
|
|
4114
|
+
* Invokes the 'addToListMethod' with the current context.
|
|
4115
|
+
*/
|
|
4116
|
+
bo = function() {
|
|
4117
|
+
ia(this);
|
|
4143
4118
|
}, // Define static properties for the component
|
|
4144
|
-
H(
|
|
4119
|
+
H(yo, "properties", {
|
|
4145
4120
|
idProperty: { attribute: "id-property" },
|
|
4146
4121
|
layers: { attribute: !1 },
|
|
4147
4122
|
titleProperty: { attribute: "title-property", type: String },
|
|
@@ -4150,28 +4125,27 @@ H(Eo, "properties", {
|
|
|
4150
4125
|
});
|
|
4151
4126
|
customElements.define(
|
|
4152
4127
|
"eox-layercontrol-optional-list",
|
|
4153
|
-
|
|
4128
|
+
yo
|
|
4154
4129
|
);
|
|
4155
|
-
const
|
|
4130
|
+
const oa = (n, t) => {
|
|
4156
4131
|
t.jsonInput = n.target.value, t.requestUpdate();
|
|
4157
|
-
},
|
|
4132
|
+
}, bi = (n) => {
|
|
4158
4133
|
const t = JSON.parse(
|
|
4159
|
-
`{"data":${
|
|
4134
|
+
`{"data":${ki(n.jsonInput)}}`
|
|
4160
4135
|
);
|
|
4161
4136
|
Array.isArray(t.data) ? t.data.forEach((e) => {
|
|
4162
4137
|
n.eoxMap.addOrUpdateLayer(e);
|
|
4163
4138
|
}) : n.eoxMap.addOrUpdateLayer(t.data), n.jsonInput = null, n.requestUpdate();
|
|
4164
|
-
},
|
|
4139
|
+
}, ra = (n, t) => {
|
|
4165
4140
|
t.urlInput = n.target.value, t.requestUpdate();
|
|
4166
4141
|
};
|
|
4167
|
-
async function
|
|
4142
|
+
async function sa(n) {
|
|
4168
4143
|
const t = n.urlInput;
|
|
4169
|
-
if (n.wmsCapabilities = null, n.searchLoad = !0, n.requestUpdate(), !t)
|
|
4170
|
-
|
|
4171
|
-
if (qn(t) === "XYZ")
|
|
4144
|
+
if (n.wmsCapabilities = null, n.searchLoad = !0, n.requestUpdate(), !t) return !1;
|
|
4145
|
+
if (Fn(t) === "XYZ")
|
|
4172
4146
|
return { Name: t };
|
|
4173
4147
|
try {
|
|
4174
|
-
const e = await
|
|
4148
|
+
const e = await kr(t);
|
|
4175
4149
|
n.wmsCapabilities = e;
|
|
4176
4150
|
} catch {
|
|
4177
4151
|
} finally {
|
|
@@ -4179,8 +4153,8 @@ async function la(n) {
|
|
|
4179
4153
|
}
|
|
4180
4154
|
return !1;
|
|
4181
4155
|
}
|
|
4182
|
-
const
|
|
4183
|
-
const { Name: e } = n, i =
|
|
4156
|
+
const aa = (n, t) => {
|
|
4157
|
+
const { Name: e } = n, i = Fn(t.urlInput) || "XYZ", o = {
|
|
4184
4158
|
type: "Tile",
|
|
4185
4159
|
properties: {
|
|
4186
4160
|
id: e,
|
|
@@ -4198,46 +4172,14 @@ const ua = (n, t) => {
|
|
|
4198
4172
|
}
|
|
4199
4173
|
};
|
|
4200
4174
|
t.jsonInput = JSON.stringify(o);
|
|
4201
|
-
},
|
|
4175
|
+
}, la = (n, t) => {
|
|
4202
4176
|
t.open = n || null, t.urlInput = null, t.jsonInput = null, t.wmsCapabilities = null, t.requestUpdate();
|
|
4203
4177
|
};
|
|
4204
|
-
var
|
|
4205
|
-
class
|
|
4178
|
+
var F, wo, Eo, In, xo, So, Ie, on, rn;
|
|
4179
|
+
class vo extends nt {
|
|
4206
4180
|
constructor() {
|
|
4207
4181
|
super();
|
|
4208
|
-
|
|
4209
|
-
* Handles changes in the input field by invoking the 'urlInputChangeMethod'.
|
|
4210
|
-
* This method is triggered upon an @input change event.
|
|
4211
|
-
*
|
|
4212
|
-
* @param {Event} evt - The input change event triggering the method.
|
|
4213
|
-
*/
|
|
4214
|
-
$(this, sn);
|
|
4215
|
-
/**
|
|
4216
|
-
* Asynchronously handles WMS URL search, invokes further processing if data is available.
|
|
4217
|
-
*/
|
|
4218
|
-
$(this, an);
|
|
4219
|
-
/**
|
|
4220
|
-
* Handles input field changes by triggering layer processing and adding layers.
|
|
4221
|
-
*
|
|
4222
|
-
* @param {{"Name": string}} layer - The layer information triggering the method.
|
|
4223
|
-
*/
|
|
4224
|
-
$(this, be);
|
|
4225
|
-
/**
|
|
4226
|
-
* Initiates the addition of layers, triggering the handleAddLayerMethod.
|
|
4227
|
-
*/
|
|
4228
|
-
$(this, ln);
|
|
4229
|
-
/**
|
|
4230
|
-
* Handles input field changes by invoking the 'handleJsonInputChangeMethod'.
|
|
4231
|
-
*
|
|
4232
|
-
* @param {{target: { value: string }}} evt - The input change event triggering the method.
|
|
4233
|
-
*/
|
|
4234
|
-
$(this, un);
|
|
4235
|
-
/**
|
|
4236
|
-
* Handles tab changes by invoking the 'openCloseTabMethod'.
|
|
4237
|
-
*
|
|
4238
|
-
* @param {"url" | "json" | null} tab - The tab identifier triggering the method.
|
|
4239
|
-
*/
|
|
4240
|
-
$(this, jt);
|
|
4182
|
+
T(this, F);
|
|
4241
4183
|
/**
|
|
4242
4184
|
* State for URL Input for WMS/XYZ URLs
|
|
4243
4185
|
*
|
|
@@ -4268,7 +4210,7 @@ class So extends et {
|
|
|
4268
4210
|
* @type {import("wms-capabilities").WMSCapabilitiesJSON}
|
|
4269
4211
|
*/
|
|
4270
4212
|
H(this, "wmsCapabilities", null);
|
|
4271
|
-
|
|
4213
|
+
T(this, on, `
|
|
4272
4214
|
.eox-add-layer-main .open {
|
|
4273
4215
|
position: relative;
|
|
4274
4216
|
}
|
|
@@ -4276,7 +4218,7 @@ class So extends et {
|
|
|
4276
4218
|
display: none;
|
|
4277
4219
|
}
|
|
4278
4220
|
`);
|
|
4279
|
-
|
|
4221
|
+
T(this, rn, `
|
|
4280
4222
|
.eox-add {
|
|
4281
4223
|
background: #f0f2f5;
|
|
4282
4224
|
border-top: 1px solid #0041701a;
|
|
@@ -4425,24 +4367,24 @@ class So extends et {
|
|
|
4425
4367
|
* Handles input fields, search, and addition of layers.
|
|
4426
4368
|
*/
|
|
4427
4369
|
render() {
|
|
4428
|
-
const e = this.open ? "open" : "close", i = this.open === "url", o = this.open === "json", r = !
|
|
4370
|
+
const e = this.open ? "open" : "close", i = this.open === "url", o = this.open === "json", r = !Ur(this.urlInput) || this.searchLoad ? !0 : C;
|
|
4429
4371
|
return x`
|
|
4430
4372
|
<style>
|
|
4431
|
-
${
|
|
4432
|
-
${!this.unstyled &&
|
|
4373
|
+
${O(this, on)}
|
|
4374
|
+
${!this.unstyled && O(this, rn)}
|
|
4433
4375
|
</style>
|
|
4434
4376
|
<div class="eox-add-layer-main">
|
|
4435
4377
|
<div class="eox-add-layer-col">
|
|
4436
4378
|
<!-- Tabbed interface for URL and JSON -->
|
|
4437
4379
|
<ul class="eox-add-layer-tab ${e}">
|
|
4438
4380
|
<li
|
|
4439
|
-
@click=${() => k(this,
|
|
4381
|
+
@click=${() => k(this, F, Ie).call(this, "url")}
|
|
4440
4382
|
class="${i ? "active" : ""}"
|
|
4441
4383
|
>
|
|
4442
4384
|
URL
|
|
4443
4385
|
</li>
|
|
4444
4386
|
<li
|
|
4445
|
-
@click=${() => k(this,
|
|
4387
|
+
@click=${() => k(this, F, Ie).call(this, "json")}
|
|
4446
4388
|
class="${o ? "active" : ""}"
|
|
4447
4389
|
>
|
|
4448
4390
|
JSON
|
|
@@ -4452,7 +4394,7 @@ class So extends et {
|
|
|
4452
4394
|
<!-- Button to toggle tabs -->
|
|
4453
4395
|
<button
|
|
4454
4396
|
class="add-icon icon"
|
|
4455
|
-
@click=${() => k(this,
|
|
4397
|
+
@click=${() => k(this, F, Ie).call(this, this.open ? null : "url")}
|
|
4456
4398
|
>
|
|
4457
4399
|
${this.unstyled ? "Add Layer" : ""}
|
|
4458
4400
|
</button>
|
|
@@ -4466,14 +4408,14 @@ class So extends et {
|
|
|
4466
4408
|
class="add-url"
|
|
4467
4409
|
placeholder="Add URL (WMS/XYZ)"
|
|
4468
4410
|
.value="${this.urlInput}"
|
|
4469
|
-
@input=${k(this,
|
|
4411
|
+
@input=${k(this, F, wo)}
|
|
4470
4412
|
>
|
|
4471
4413
|
</input>
|
|
4472
4414
|
<!-- Search button for URL -->
|
|
4473
4415
|
<button
|
|
4474
4416
|
class="search-icon"
|
|
4475
4417
|
disabled=${r}
|
|
4476
|
-
@click=${k(this,
|
|
4418
|
+
@click=${k(this, F, Eo)}
|
|
4477
4419
|
>
|
|
4478
4420
|
${this.unstyled ? "Search" : ""}
|
|
4479
4421
|
</button>
|
|
@@ -4492,7 +4434,7 @@ class So extends et {
|
|
|
4492
4434
|
class="add-layer-icon icon"
|
|
4493
4435
|
@click=${() => (
|
|
4494
4436
|
//@ts-ignore
|
|
4495
|
-
k(this,
|
|
4437
|
+
k(this, F, In).call(this, s)
|
|
4496
4438
|
)}
|
|
4497
4439
|
>
|
|
4498
4440
|
${this.unstyled ? "+" : ""}
|
|
@@ -4501,21 +4443,21 @@ class So extends et {
|
|
|
4501
4443
|
`;
|
|
4502
4444
|
}
|
|
4503
4445
|
)}
|
|
4504
|
-
</ul>` :
|
|
4446
|
+
</ul>` : C}
|
|
4505
4447
|
` : x`
|
|
4506
4448
|
<!-- Textarea for JSON input -->
|
|
4507
4449
|
<textarea
|
|
4508
4450
|
class="add-layer-input"
|
|
4509
4451
|
placeholder="Please put a valid eox-map layer JSON."
|
|
4510
|
-
@input=${k(this,
|
|
4452
|
+
@input=${k(this, F, So)}
|
|
4511
4453
|
.value=${this.jsonInput}
|
|
4512
4454
|
></textarea>
|
|
4513
4455
|
|
|
4514
4456
|
<!-- Button to add JSON layer -->
|
|
4515
4457
|
<button
|
|
4516
4458
|
class="add-layer-icon json-add-layer"
|
|
4517
|
-
disabled=${
|
|
4518
|
-
@click=${k(this,
|
|
4459
|
+
disabled=${Fr(this.jsonInput) ? C : !0}
|
|
4460
|
+
@click=${k(this, F, xo)}
|
|
4519
4461
|
>
|
|
4520
4462
|
${this.unstyled ? "Add JSON" : ""}
|
|
4521
4463
|
</button>
|
|
@@ -4525,55 +4467,74 @@ class So extends et {
|
|
|
4525
4467
|
`;
|
|
4526
4468
|
}
|
|
4527
4469
|
}
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
},
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4470
|
+
F = new WeakSet(), /**
|
|
4471
|
+
* Handles changes in the input field by invoking the 'urlInputChangeMethod'.
|
|
4472
|
+
* This method is triggered upon an @input change event.
|
|
4473
|
+
*
|
|
4474
|
+
* @param {Event} evt - The input change event triggering the method.
|
|
4475
|
+
*/
|
|
4476
|
+
wo = function(e) {
|
|
4477
|
+
ra(e, this);
|
|
4478
|
+
}, Eo = async function() {
|
|
4479
|
+
const e = await sa(this);
|
|
4480
|
+
e && k(this, F, In).call(this, e);
|
|
4481
|
+
}, /**
|
|
4482
|
+
* Handles input field changes by triggering layer processing and adding layers.
|
|
4483
|
+
*
|
|
4484
|
+
* @param {{"Name": string}} layer - The layer information triggering the method.
|
|
4485
|
+
*/
|
|
4486
|
+
In = function(e) {
|
|
4487
|
+
aa(e, this), bi(this);
|
|
4488
|
+
}, /**
|
|
4489
|
+
* Initiates the addition of layers, triggering the handleAddLayerMethod.
|
|
4490
|
+
*/
|
|
4491
|
+
xo = function() {
|
|
4492
|
+
bi(this);
|
|
4493
|
+
}, /**
|
|
4494
|
+
* Handles input field changes by invoking the 'handleJsonInputChangeMethod'.
|
|
4495
|
+
*
|
|
4496
|
+
* @param {{target: { value: string }}} evt - The input change event triggering the method.
|
|
4497
|
+
*/
|
|
4498
|
+
So = function(e) {
|
|
4499
|
+
oa(e, this);
|
|
4500
|
+
}, /**
|
|
4501
|
+
* Handles tab changes by invoking the 'openCloseTabMethod'.
|
|
4502
|
+
*
|
|
4503
|
+
* @param {"url" | "json" | null} tab - The tab identifier triggering the method.
|
|
4504
|
+
*/
|
|
4505
|
+
Ie = function(e) {
|
|
4506
|
+
la(e, this);
|
|
4507
|
+
}, on = new WeakMap(), rn = new WeakMap(), // Define static properties for the component
|
|
4508
|
+
H(vo, "properties", {
|
|
4543
4509
|
eoxMap: { attribute: !1, state: !0 },
|
|
4544
4510
|
unstyled: { type: Boolean },
|
|
4545
4511
|
noShadow: { type: Boolean }
|
|
4546
4512
|
});
|
|
4547
|
-
customElements.define("eox-layercontrol-add-layers",
|
|
4548
|
-
const
|
|
4513
|
+
customElements.define("eox-layercontrol-add-layers", vo);
|
|
4514
|
+
const ua = (n, t) => {
|
|
4549
4515
|
if (t.requestUpdate(), n.target.tagName === "EOX-LAYERCONTROL-LAYER-TOOLS") {
|
|
4550
4516
|
const e = t.renderRoot.querySelector(
|
|
4551
4517
|
"eox-layercontrol-optional-list"
|
|
4552
4518
|
);
|
|
4553
4519
|
e == null || e.requestUpdate();
|
|
4554
4520
|
}
|
|
4555
|
-
},
|
|
4521
|
+
}, ca = (n) => {
|
|
4556
4522
|
const t = n.for, e = document.querySelector(t);
|
|
4557
4523
|
return e && e.map !== n.map && (n.map = e.map), e;
|
|
4558
4524
|
};
|
|
4559
|
-
var
|
|
4560
|
-
class
|
|
4525
|
+
var Zt, sn, _o, an;
|
|
4526
|
+
class $o extends nt {
|
|
4561
4527
|
// Constructor to set default values for properties
|
|
4562
4528
|
constructor() {
|
|
4563
4529
|
super();
|
|
4564
|
-
|
|
4565
|
-
* Event handler for changes in the layer list
|
|
4566
|
-
*
|
|
4567
|
-
* @param {CustomEvent & {target: Element}} evt
|
|
4568
|
-
*/
|
|
4569
|
-
$(this, hn);
|
|
4530
|
+
T(this, sn);
|
|
4570
4531
|
/**
|
|
4571
4532
|
* Instance of `eox-map` which is a wrapper for the OL
|
|
4572
4533
|
*
|
|
4573
4534
|
* @type {import("../../map/main").EOxMap}
|
|
4574
4535
|
*/
|
|
4575
|
-
|
|
4576
|
-
|
|
4536
|
+
T(this, Zt);
|
|
4537
|
+
T(this, an, "* { font-family: Roboto, sans-serif; }");
|
|
4577
4538
|
this.for = "eox-map", this.idProperty = "id", this.map = null, this.titleProperty = "title", this.showLayerZoomState = !1, this.tools = ["info", "opacity", "config", "remove", "sort"], this.addExternalLayers = !1, this.unstyled = !1, this.styleOverride = "";
|
|
4578
4539
|
}
|
|
4579
4540
|
/**
|
|
@@ -4581,31 +4542,31 @@ class To extends et {
|
|
|
4581
4542
|
* Updated #eoxMap after first update.
|
|
4582
4543
|
*/
|
|
4583
4544
|
firstUpdated() {
|
|
4584
|
-
|
|
4545
|
+
Kt(this, Zt, ca(this));
|
|
4585
4546
|
}
|
|
4586
4547
|
render() {
|
|
4587
4548
|
var o, r, s;
|
|
4588
|
-
const e = (o = this.map) == null ? void 0 : o.getLayers().getArray(), i = e && ((r =
|
|
4549
|
+
const e = (o = this.map) == null ? void 0 : o.getLayers().getArray(), i = e && ((r = Xn(e, "layerControlOptional", !0)) == null ? void 0 : r.length) > 0;
|
|
4589
4550
|
return x`
|
|
4590
4551
|
<style>
|
|
4591
|
-
${!this.unstyled &&
|
|
4552
|
+
${!this.unstyled && O(this, an)}
|
|
4592
4553
|
${this.styleOverride}
|
|
4593
4554
|
</style>
|
|
4594
4555
|
|
|
4595
4556
|
<!-- Conditional rendering of add layers component -->
|
|
4596
|
-
${
|
|
4597
|
-
this.addExternalLayers && ((s =
|
|
4557
|
+
${rt(
|
|
4558
|
+
this.addExternalLayers && ((s = O(this, Zt)) == null ? void 0 : s.addOrUpdateLayer),
|
|
4598
4559
|
() => x`
|
|
4599
4560
|
<eox-layercontrol-add-layers
|
|
4600
4561
|
.noShadow=${!0}
|
|
4601
|
-
.eoxMap=${
|
|
4562
|
+
.eoxMap=${O(this, Zt)}
|
|
4602
4563
|
.unstyled=${this.unstyled}
|
|
4603
4564
|
></eox-layercontrol-add-layers>
|
|
4604
4565
|
`
|
|
4605
4566
|
)}
|
|
4606
4567
|
|
|
4607
4568
|
<!-- Conditional rendering of layer list component -->
|
|
4608
|
-
${
|
|
4569
|
+
${rt(
|
|
4609
4570
|
this.map,
|
|
4610
4571
|
() => x`
|
|
4611
4572
|
<eox-layercontrol-layer-list
|
|
@@ -4618,13 +4579,13 @@ class To extends et {
|
|
|
4618
4579
|
.showLayerZoomState=${this.showLayerZoomState}
|
|
4619
4580
|
.tools=${this.tools}
|
|
4620
4581
|
.unstyled=${this.unstyled}
|
|
4621
|
-
@changed=${k(this,
|
|
4582
|
+
@changed=${k(this, sn, _o)}
|
|
4622
4583
|
></eox-layercontrol-layer-list>
|
|
4623
4584
|
`
|
|
4624
4585
|
)}
|
|
4625
4586
|
|
|
4626
4587
|
<!-- Conditional rendering of optional list component -->
|
|
4627
|
-
${
|
|
4588
|
+
${rt(
|
|
4628
4589
|
i,
|
|
4629
4590
|
() => x`
|
|
4630
4591
|
<eox-layercontrol-optional-list
|
|
@@ -4639,10 +4600,15 @@ class To extends et {
|
|
|
4639
4600
|
`;
|
|
4640
4601
|
}
|
|
4641
4602
|
}
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4603
|
+
Zt = new WeakMap(), sn = new WeakSet(), /**
|
|
4604
|
+
* Event handler for changes in the layer list
|
|
4605
|
+
*
|
|
4606
|
+
* @param {CustomEvent & {target: Element}} evt
|
|
4607
|
+
*/
|
|
4608
|
+
_o = function(e) {
|
|
4609
|
+
ua(e, this), this.dispatchEvent(new CustomEvent("layerchange", { detail: e.detail }));
|
|
4610
|
+
}, an = new WeakMap(), // Define static properties for the component
|
|
4611
|
+
H($o, "properties", {
|
|
4646
4612
|
for: { type: String },
|
|
4647
4613
|
idProperty: { attribute: "id-property" },
|
|
4648
4614
|
map: { attribute: !1, state: !0 },
|
|
@@ -4653,7 +4619,7 @@ H(To, "properties", {
|
|
|
4653
4619
|
unstyled: { type: Boolean },
|
|
4654
4620
|
styleOverride: { type: String }
|
|
4655
4621
|
});
|
|
4656
|
-
customElements.define("eox-layercontrol",
|
|
4622
|
+
customElements.define("eox-layercontrol", $o);
|
|
4657
4623
|
export {
|
|
4658
|
-
|
|
4624
|
+
$o as EOxLayerControl
|
|
4659
4625
|
};
|