@eox/layercontrol 0.27.1 → 0.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eox-layercontrol.js +887 -1136
- package/dist/eox-layercontrol.umd.cjs +89 -338
- package/package.json +2 -2
- package/src/components/layer-datetime.js +7 -3
- package/src/components/layer-group.js +1 -1
- package/src/components/layer-list.js +2 -2
- package/src/components/layer-tools.js +4 -4
- package/src/components/layer.js +2 -2
- package/src/components/tools-items.js +6 -7
- package/src/enums/stories/index.js +2 -1
- package/src/main.js +2 -0
- package/types/layercontrol/src/components/layer-datetime.d.ts +7 -3
- package/types/layercontrol/src/components/layer-datetime.d.ts.map +1 -1
- package/types/layercontrol/src/components/tools-items.d.ts.map +1 -1
- package/types/layercontrol/src/enums/stories/index.d.ts +2 -1
- package/types/layercontrol/src/enums/stories/index.d.ts.map +1 -1
- package/types/layercontrol/src/main.d.ts.map +1 -1
package/dist/eox-layercontrol.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Kr = Object.defineProperty;
|
|
2
2
|
var yn = (i) => {
|
|
3
3
|
throw TypeError(i);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var F = (i, t, e) =>
|
|
5
|
+
var Qr = (i, t, e) => t in i ? Kr(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
6
|
+
var F = (i, t, e) => Qr(i, typeof t != "symbol" ? t + "" : t, e), Ci = (i, t, e) => t.has(i) || yn("Cannot " + e);
|
|
7
7
|
var T = (i, t, e) => (Ci(i, t, "read from private field"), e ? e.call(i) : t.get(i)), P = (i, t, e) => t.has(i) ? yn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, e), Qt = (i, t, e, n) => (Ci(i, t, "write to private field"), n ? n.call(i, e) : t.set(i, e), e), j = (i, t, e) => (Ci(i, t, "access private method"), e);
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
@@ -29,33 +29,33 @@ let Zn = class {
|
|
|
29
29
|
return this.cssText;
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
const
|
|
33
|
-
const e = i.length === 1 ? i[0] : t.reduce((n,
|
|
32
|
+
const to = (i) => new Zn(typeof i == "string" ? i : i + "", void 0, en), qn = (i, ...t) => {
|
|
33
|
+
const e = i.length === 1 ? i[0] : t.reduce((n, r, o) => n + ((s) => {
|
|
34
34
|
if (s._$cssResult$ === !0) return s.cssText;
|
|
35
35
|
if (typeof s == "number") return s;
|
|
36
36
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
37
|
-
})(
|
|
37
|
+
})(r) + i[o + 1], i[0]);
|
|
38
38
|
return new Zn(e, i, en);
|
|
39
|
-
},
|
|
39
|
+
}, eo = (i, t) => {
|
|
40
40
|
if (tn) i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
41
41
|
else for (const e of t) {
|
|
42
|
-
const n = document.createElement("style"),
|
|
43
|
-
|
|
42
|
+
const n = document.createElement("style"), r = Fe.litNonce;
|
|
43
|
+
r !== void 0 && n.setAttribute("nonce", r), n.textContent = e.cssText, i.appendChild(n);
|
|
44
44
|
}
|
|
45
45
|
}, vn = tn ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
|
|
46
46
|
let e = "";
|
|
47
47
|
for (const n of t.cssRules) e += n.cssText;
|
|
48
|
-
return
|
|
48
|
+
return to(e);
|
|
49
49
|
})(i) : i;
|
|
50
50
|
/**
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2017 Google LLC
|
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
54
|
*/
|
|
55
|
-
const { is:
|
|
55
|
+
const { is: io, defineProperty: no, getOwnPropertyDescriptor: ro, getOwnPropertyNames: oo, getOwnPropertySymbols: so, getPrototypeOf: ao } = Object, Bt = globalThis, wn = Bt.trustedTypes, lo = wn ? wn.emptyScript : "", Ti = Bt.reactiveElementPolyfillSupport, be = (i, t) => i, qi = { toAttribute(i, t) {
|
|
56
56
|
switch (t) {
|
|
57
57
|
case Boolean:
|
|
58
|
-
i = i ?
|
|
58
|
+
i = i ? lo : null;
|
|
59
59
|
break;
|
|
60
60
|
case Object:
|
|
61
61
|
case Array:
|
|
@@ -80,8 +80,8 @@ const { is: nr, defineProperty: or, getOwnPropertyDescriptor: rr, getOwnProperty
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
return e;
|
|
83
|
-
} }, Xn = (i, t) => !
|
|
84
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
83
|
+
} }, Xn = (i, t) => !io(i, t), xn = { attribute: !0, type: String, converter: qi, reflect: !1, hasChanged: Xn };
|
|
84
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Bt.litPropertyMetadata ?? (Bt.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
85
85
|
class ie extends HTMLElement {
|
|
86
86
|
static addInitializer(t) {
|
|
87
87
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
@@ -91,21 +91,21 @@ class ie extends HTMLElement {
|
|
|
91
91
|
}
|
|
92
92
|
static createProperty(t, e = xn) {
|
|
93
93
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
94
|
-
const n = Symbol(),
|
|
95
|
-
|
|
94
|
+
const n = Symbol(), r = this.getPropertyDescriptor(t, n, e);
|
|
95
|
+
r !== void 0 && no(this.prototype, t, r);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
static getPropertyDescriptor(t, e, n) {
|
|
99
|
-
const { get:
|
|
99
|
+
const { get: r, set: o } = ro(this.prototype, t) ?? { get() {
|
|
100
100
|
return this[e];
|
|
101
101
|
}, set(s) {
|
|
102
102
|
this[e] = s;
|
|
103
103
|
} };
|
|
104
104
|
return { get() {
|
|
105
|
-
return
|
|
105
|
+
return r == null ? void 0 : r.call(this);
|
|
106
106
|
}, set(s) {
|
|
107
|
-
const a =
|
|
108
|
-
|
|
107
|
+
const a = r == null ? void 0 : r.call(this);
|
|
108
|
+
o.call(this, s), this.requestUpdate(t, a, n);
|
|
109
109
|
}, configurable: !0, enumerable: !0 };
|
|
110
110
|
}
|
|
111
111
|
static getPropertyOptions(t) {
|
|
@@ -113,24 +113,24 @@ class ie extends HTMLElement {
|
|
|
113
113
|
}
|
|
114
114
|
static _$Ei() {
|
|
115
115
|
if (this.hasOwnProperty(be("elementProperties"))) return;
|
|
116
|
-
const t =
|
|
116
|
+
const t = ao(this);
|
|
117
117
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
118
118
|
}
|
|
119
119
|
static finalize() {
|
|
120
120
|
if (this.hasOwnProperty(be("finalized"))) return;
|
|
121
121
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(be("properties"))) {
|
|
122
|
-
const e = this.properties, n = [...
|
|
123
|
-
for (const
|
|
122
|
+
const e = this.properties, n = [...oo(e), ...so(e)];
|
|
123
|
+
for (const r of n) this.createProperty(r, e[r]);
|
|
124
124
|
}
|
|
125
125
|
const t = this[Symbol.metadata];
|
|
126
126
|
if (t !== null) {
|
|
127
127
|
const e = litPropertyMetadata.get(t);
|
|
128
|
-
if (e !== void 0) for (const [n,
|
|
128
|
+
if (e !== void 0) for (const [n, r] of e) this.elementProperties.set(n, r);
|
|
129
129
|
}
|
|
130
130
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
131
131
|
for (const [e, n] of this.elementProperties) {
|
|
132
|
-
const
|
|
133
|
-
|
|
132
|
+
const r = this._$Eu(e, n);
|
|
133
|
+
r !== void 0 && this._$Eh.set(r, e);
|
|
134
134
|
}
|
|
135
135
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
136
136
|
}
|
|
@@ -138,7 +138,7 @@ class ie extends HTMLElement {
|
|
|
138
138
|
const e = [];
|
|
139
139
|
if (Array.isArray(t)) {
|
|
140
140
|
const n = new Set(t.flat(1 / 0).reverse());
|
|
141
|
-
for (const
|
|
141
|
+
for (const r of n) e.unshift(vn(r));
|
|
142
142
|
} else t !== void 0 && e.push(vn(t));
|
|
143
143
|
return e;
|
|
144
144
|
}
|
|
@@ -168,7 +168,7 @@ class ie extends HTMLElement {
|
|
|
168
168
|
}
|
|
169
169
|
createRenderRoot() {
|
|
170
170
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
171
|
-
return
|
|
171
|
+
return eo(t, this.constructor.elementStyles), t;
|
|
172
172
|
}
|
|
173
173
|
connectedCallback() {
|
|
174
174
|
var t;
|
|
@@ -190,19 +190,19 @@ class ie extends HTMLElement {
|
|
|
190
190
|
this._$AK(t, n);
|
|
191
191
|
}
|
|
192
192
|
_$EC(t, e) {
|
|
193
|
-
var
|
|
194
|
-
const n = this.constructor.elementProperties.get(t),
|
|
195
|
-
if (
|
|
196
|
-
const s = (((
|
|
197
|
-
this._$Em = t, s == null ? this.removeAttribute(
|
|
193
|
+
var o;
|
|
194
|
+
const n = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, n);
|
|
195
|
+
if (r !== void 0 && n.reflect === !0) {
|
|
196
|
+
const s = (((o = n.converter) == null ? void 0 : o.toAttribute) !== void 0 ? n.converter : qi).toAttribute(e, n.type);
|
|
197
|
+
this._$Em = t, s == null ? this.removeAttribute(r) : this.setAttribute(r, s), this._$Em = null;
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
_$AK(t, e) {
|
|
201
|
-
var
|
|
202
|
-
const n = this.constructor,
|
|
203
|
-
if (
|
|
204
|
-
const s = n.getPropertyOptions(
|
|
205
|
-
this._$Em =
|
|
201
|
+
var o;
|
|
202
|
+
const n = this.constructor, r = n._$Eh.get(t);
|
|
203
|
+
if (r !== void 0 && this._$Em !== r) {
|
|
204
|
+
const s = n.getPropertyOptions(r), a = typeof s.converter == "function" ? { fromAttribute: s.converter } : ((o = s.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? s.converter : qi;
|
|
205
|
+
this._$Em = r, this[r] = a.fromAttribute(e, s.type), this._$Em = null;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
requestUpdate(t, e, n) {
|
|
@@ -233,21 +233,21 @@ class ie extends HTMLElement {
|
|
|
233
233
|
if (!this.isUpdatePending) return;
|
|
234
234
|
if (!this.hasUpdated) {
|
|
235
235
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
236
|
-
for (const [
|
|
236
|
+
for (const [o, s] of this._$Ep) this[o] = s;
|
|
237
237
|
this._$Ep = void 0;
|
|
238
238
|
}
|
|
239
|
-
const
|
|
240
|
-
if (
|
|
239
|
+
const r = this.constructor.elementProperties;
|
|
240
|
+
if (r.size > 0) for (const [o, s] of r) s.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], s);
|
|
241
241
|
}
|
|
242
242
|
let t = !1;
|
|
243
243
|
const e = this._$AL;
|
|
244
244
|
try {
|
|
245
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (n = this._$EO) == null || n.forEach((
|
|
246
|
-
var
|
|
247
|
-
return (
|
|
245
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (n = this._$EO) == null || n.forEach((r) => {
|
|
246
|
+
var o;
|
|
247
|
+
return (o = r.hostUpdate) == null ? void 0 : o.call(r);
|
|
248
248
|
}), this.update(e)) : this._$EU();
|
|
249
|
-
} catch (
|
|
250
|
-
throw t = !1, this._$EU(),
|
|
249
|
+
} catch (r) {
|
|
250
|
+
throw t = !1, this._$EU(), r;
|
|
251
251
|
}
|
|
252
252
|
t && this._$AE(e);
|
|
253
253
|
}
|
|
@@ -256,8 +256,8 @@ class ie extends HTMLElement {
|
|
|
256
256
|
_$AE(t) {
|
|
257
257
|
var e;
|
|
258
258
|
(e = this._$EO) == null || e.forEach((n) => {
|
|
259
|
-
var
|
|
260
|
-
return (
|
|
259
|
+
var r;
|
|
260
|
+
return (r = n.hostUpdated) == null ? void 0 : r.call(n);
|
|
261
261
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
262
262
|
}
|
|
263
263
|
_$EU() {
|
|
@@ -280,61 +280,61 @@ class ie extends HTMLElement {
|
|
|
280
280
|
firstUpdated(t) {
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
|
-
ie.elementStyles = [], ie.shadowRootOptions = { mode: "open" }, ie[be("elementProperties")] = /* @__PURE__ */ new Map(), ie[be("finalized")] = /* @__PURE__ */ new Map(), Ti == null || Ti({ ReactiveElement: ie }), (
|
|
283
|
+
ie.elementStyles = [], ie.shadowRootOptions = { mode: "open" }, ie[be("elementProperties")] = /* @__PURE__ */ new Map(), ie[be("finalized")] = /* @__PURE__ */ new Map(), Ti == null || Ti({ ReactiveElement: ie }), (Bt.reactiveElementVersions ?? (Bt.reactiveElementVersions = [])).push("2.0.4");
|
|
284
284
|
/**
|
|
285
285
|
* @license
|
|
286
286
|
* Copyright 2017 Google LLC
|
|
287
287
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
288
288
|
*/
|
|
289
|
-
const ve = globalThis, Ge = ve.trustedTypes, En = Ge ? Ge.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, nn = "$lit$", Ct = `lit$${Math.random().toFixed(9).slice(2)}$`,
|
|
289
|
+
const ve = globalThis, Ge = ve.trustedTypes, En = Ge ? Ge.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, nn = "$lit$", Ct = `lit$${Math.random().toFixed(9).slice(2)}$`, rn = "?" + Ct, co = `<${rn}>`, Jt = document, Ae = () => Jt.createComment(""), _e = (i) => i === null || typeof i != "object" && typeof i != "function", on = Array.isArray, Yn = (i) => on(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Di = `[
|
|
290
290
|
\f\r]`, pe = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $n = /-->/g, Sn = />/g, zt = RegExp(`>|${Di}(?:([^\\s"'>=/]+)(${Di}*=${Di}*(?:[^
|
|
291
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
291
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), An = /'/g, _n = /"/g, Wn = /^(?:script|style|textarea|title)$/i, uo = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), x = uo(1), vt = Symbol.for("lit-noChange"), O = Symbol.for("lit-nothing"), Cn = /* @__PURE__ */ new WeakMap(), Wt = Jt.createTreeWalker(Jt, 129);
|
|
292
292
|
function Gn(i, t) {
|
|
293
|
-
if (!
|
|
293
|
+
if (!on(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
294
294
|
return En !== void 0 ? En.createHTML(t) : t;
|
|
295
295
|
}
|
|
296
296
|
const Jn = (i, t) => {
|
|
297
297
|
const e = i.length - 1, n = [];
|
|
298
|
-
let
|
|
298
|
+
let r, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = pe;
|
|
299
299
|
for (let a = 0; a < e; a++) {
|
|
300
300
|
const l = i[a];
|
|
301
|
-
let d,
|
|
302
|
-
for (; p < l.length && (s.lastIndex = p,
|
|
301
|
+
let d, u, c = -1, p = 0;
|
|
302
|
+
for (; p < l.length && (s.lastIndex = p, u = s.exec(l), u !== null); ) p = s.lastIndex, s === pe ? u[1] === "!--" ? s = $n : u[1] !== void 0 ? s = Sn : u[2] !== void 0 ? (Wn.test(u[2]) && (r = RegExp("</" + u[2], "g")), s = zt) : u[3] !== void 0 && (s = zt) : s === zt ? u[0] === ">" ? (s = r ?? pe, c = -1) : u[1] === void 0 ? c = -2 : (c = s.lastIndex - u[2].length, d = u[1], s = u[3] === void 0 ? zt : u[3] === '"' ? _n : An) : s === _n || s === An ? s = zt : s === $n || s === Sn ? s = pe : (s = zt, r = void 0);
|
|
303
303
|
const f = s === zt && i[a + 1].startsWith("/>") ? " " : "";
|
|
304
|
-
|
|
304
|
+
o += s === pe ? l + co : c >= 0 ? (n.push(d), l.slice(0, c) + nn + l.slice(c) + Ct + f) : l + Ct + (c === -2 ? a : f);
|
|
305
305
|
}
|
|
306
|
-
return [Gn(i,
|
|
306
|
+
return [Gn(i, o + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
|
|
307
307
|
};
|
|
308
308
|
class Ce {
|
|
309
309
|
constructor({ strings: t, _$litType$: e }, n) {
|
|
310
|
-
let
|
|
310
|
+
let r;
|
|
311
311
|
this.parts = [];
|
|
312
|
-
let
|
|
313
|
-
const a = t.length - 1, l = this.parts, [d,
|
|
312
|
+
let o = 0, s = 0;
|
|
313
|
+
const a = t.length - 1, l = this.parts, [d, u] = Jn(t, e);
|
|
314
314
|
if (this.el = Ce.createElement(d, n), Wt.currentNode = this.el.content, e === 2 || e === 3) {
|
|
315
|
-
const
|
|
316
|
-
|
|
317
|
-
}
|
|
318
|
-
for (; (
|
|
319
|
-
if (
|
|
320
|
-
if (
|
|
321
|
-
const p =
|
|
322
|
-
l.push({ type: 1, index:
|
|
323
|
-
} else
|
|
324
|
-
if (Wn.test(
|
|
325
|
-
const
|
|
315
|
+
const c = this.el.content.firstChild;
|
|
316
|
+
c.replaceWith(...c.childNodes);
|
|
317
|
+
}
|
|
318
|
+
for (; (r = Wt.nextNode()) !== null && l.length < a; ) {
|
|
319
|
+
if (r.nodeType === 1) {
|
|
320
|
+
if (r.hasAttributes()) for (const c of r.getAttributeNames()) if (c.endsWith(nn)) {
|
|
321
|
+
const p = u[s++], f = r.getAttribute(c).split(Ct), g = /([.?@])?(.*)/.exec(p);
|
|
322
|
+
l.push({ type: 1, index: o, name: g[2], strings: f, ctor: g[1] === "." ? Qn : g[1] === "?" ? tr : g[1] === "@" ? er : Le }), r.removeAttribute(c);
|
|
323
|
+
} else c.startsWith(Ct) && (l.push({ type: 6, index: o }), r.removeAttribute(c));
|
|
324
|
+
if (Wn.test(r.tagName)) {
|
|
325
|
+
const c = r.textContent.split(Ct), p = c.length - 1;
|
|
326
326
|
if (p > 0) {
|
|
327
|
-
|
|
328
|
-
for (let f = 0; f < p; f++)
|
|
329
|
-
|
|
327
|
+
r.textContent = Ge ? Ge.emptyScript : "";
|
|
328
|
+
for (let f = 0; f < p; f++) r.append(c[f], Ae()), Wt.nextNode(), l.push({ type: 2, index: ++o });
|
|
329
|
+
r.append(c[p], Ae());
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
|
-
} else if (
|
|
332
|
+
} else if (r.nodeType === 8) if (r.data === rn) l.push({ type: 2, index: o });
|
|
333
333
|
else {
|
|
334
|
-
let
|
|
335
|
-
for (; (
|
|
334
|
+
let c = -1;
|
|
335
|
+
for (; (c = r.data.indexOf(Ct, c + 1)) !== -1; ) l.push({ type: 7, index: o }), c += Ct.length - 1;
|
|
336
336
|
}
|
|
337
|
-
|
|
337
|
+
o++;
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
static createElement(t, e) {
|
|
@@ -345,9 +345,9 @@ class Ce {
|
|
|
345
345
|
function Kt(i, t, e = i, n) {
|
|
346
346
|
var s, a;
|
|
347
347
|
if (t === vt) return t;
|
|
348
|
-
let
|
|
349
|
-
const
|
|
350
|
-
return (
|
|
348
|
+
let r = n !== void 0 ? (s = e._$Co) == null ? void 0 : s[n] : e._$Cl;
|
|
349
|
+
const o = _e(t) ? void 0 : t._$litDirective$;
|
|
350
|
+
return (r == null ? void 0 : r.constructor) !== o && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), o === void 0 ? r = void 0 : (r = new o(i), r._$AT(i, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = r : e._$Cl = r), r !== void 0 && (t = Kt(i, r._$AS(i, t.values), r, n)), t;
|
|
351
351
|
}
|
|
352
352
|
let Kn = class {
|
|
353
353
|
constructor(t, e) {
|
|
@@ -360,30 +360,30 @@ let Kn = class {
|
|
|
360
360
|
return this._$AM._$AU;
|
|
361
361
|
}
|
|
362
362
|
u(t) {
|
|
363
|
-
const { el: { content: e }, parts: n } = this._$AD,
|
|
364
|
-
Wt.currentNode =
|
|
365
|
-
let
|
|
363
|
+
const { el: { content: e }, parts: n } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? Jt).importNode(e, !0);
|
|
364
|
+
Wt.currentNode = r;
|
|
365
|
+
let o = Wt.nextNode(), s = 0, a = 0, l = n[0];
|
|
366
366
|
for (; l !== void 0; ) {
|
|
367
367
|
if (s === l.index) {
|
|
368
368
|
let d;
|
|
369
|
-
l.type === 2 ? d = new
|
|
369
|
+
l.type === 2 ? d = new ue(o, o.nextSibling, this, t) : l.type === 1 ? d = new l.ctor(o, l.name, l.strings, this, t) : l.type === 6 && (d = new ir(o, this, t)), this._$AV.push(d), l = n[++a];
|
|
370
370
|
}
|
|
371
|
-
s !== (l == null ? void 0 : l.index) && (
|
|
371
|
+
s !== (l == null ? void 0 : l.index) && (o = Wt.nextNode(), s++);
|
|
372
372
|
}
|
|
373
|
-
return Wt.currentNode = Jt,
|
|
373
|
+
return Wt.currentNode = Jt, r;
|
|
374
374
|
}
|
|
375
375
|
p(t) {
|
|
376
376
|
let e = 0;
|
|
377
377
|
for (const n of this._$AV) n !== void 0 && (n.strings !== void 0 ? (n._$AI(t, n, e), e += n.strings.length - 2) : n._$AI(t[e])), e++;
|
|
378
378
|
}
|
|
379
379
|
};
|
|
380
|
-
class
|
|
380
|
+
class ue {
|
|
381
381
|
get _$AU() {
|
|
382
382
|
var t;
|
|
383
383
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
384
384
|
}
|
|
385
|
-
constructor(t, e, n,
|
|
386
|
-
this.type = 2, this._$AH = O, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = n, this.options =
|
|
385
|
+
constructor(t, e, n, r) {
|
|
386
|
+
this.type = 2, this._$AH = O, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = n, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
|
|
387
387
|
}
|
|
388
388
|
get parentNode() {
|
|
389
389
|
let t = this._$AA.parentNode;
|
|
@@ -397,7 +397,7 @@ class ce {
|
|
|
397
397
|
return this._$AB;
|
|
398
398
|
}
|
|
399
399
|
_$AI(t, e = this) {
|
|
400
|
-
t = Kt(this, t, e),
|
|
400
|
+
t = Kt(this, t, e), _e(t) ? t === O || t == null || t === "" ? (this._$AH !== O && this._$AR(), this._$AH = O) : t !== this._$AH && t !== vt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Yn(t) ? this.k(t) : this._(t);
|
|
401
401
|
}
|
|
402
402
|
O(t) {
|
|
403
403
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -406,14 +406,14 @@ class ce {
|
|
|
406
406
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
407
407
|
}
|
|
408
408
|
_(t) {
|
|
409
|
-
this._$AH !== O &&
|
|
409
|
+
this._$AH !== O && _e(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Jt.createTextNode(t)), this._$AH = t;
|
|
410
410
|
}
|
|
411
411
|
$(t) {
|
|
412
|
-
var
|
|
413
|
-
const { values: e, _$litType$: n } = t,
|
|
414
|
-
if (((
|
|
412
|
+
var o;
|
|
413
|
+
const { values: e, _$litType$: n } = t, r = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = Ce.createElement(Gn(n.h, n.h[0]), this.options)), n);
|
|
414
|
+
if (((o = this._$AH) == null ? void 0 : o._$AD) === r) this._$AH.p(e);
|
|
415
415
|
else {
|
|
416
|
-
const s = new Kn(
|
|
416
|
+
const s = new Kn(r, this), a = s.u(this.options);
|
|
417
417
|
s.p(e), this.T(a), this._$AH = s;
|
|
418
418
|
}
|
|
419
419
|
}
|
|
@@ -422,17 +422,17 @@ class ce {
|
|
|
422
422
|
return e === void 0 && Cn.set(t.strings, e = new Ce(t)), e;
|
|
423
423
|
}
|
|
424
424
|
k(t) {
|
|
425
|
-
|
|
425
|
+
on(this._$AH) || (this._$AH = [], this._$AR());
|
|
426
426
|
const e = this._$AH;
|
|
427
|
-
let n,
|
|
428
|
-
for (const
|
|
429
|
-
|
|
427
|
+
let n, r = 0;
|
|
428
|
+
for (const o of t) r === e.length ? e.push(n = new ue(this.O(Ae()), this.O(Ae()), this, this.options)) : n = e[r], n._$AI(o), r++;
|
|
429
|
+
r < e.length && (this._$AR(n && n._$AB.nextSibling, r), e.length = r);
|
|
430
430
|
}
|
|
431
431
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
432
432
|
var n;
|
|
433
433
|
for ((n = this._$AP) == null ? void 0 : n.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
|
434
|
-
const
|
|
435
|
-
t.remove(), t =
|
|
434
|
+
const r = t.nextSibling;
|
|
435
|
+
t.remove(), t = r;
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
438
|
setConnected(t) {
|
|
@@ -447,19 +447,19 @@ class Le {
|
|
|
447
447
|
get _$AU() {
|
|
448
448
|
return this._$AM._$AU;
|
|
449
449
|
}
|
|
450
|
-
constructor(t, e, n,
|
|
451
|
-
this.type = 1, this._$AH = O, this._$AN = void 0, this.element = t, this.name = e, this._$AM =
|
|
450
|
+
constructor(t, e, n, r, o) {
|
|
451
|
+
this.type = 1, this._$AH = O, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = o, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = O;
|
|
452
452
|
}
|
|
453
|
-
_$AI(t, e = this, n,
|
|
454
|
-
const
|
|
453
|
+
_$AI(t, e = this, n, r) {
|
|
454
|
+
const o = this.strings;
|
|
455
455
|
let s = !1;
|
|
456
|
-
if (
|
|
456
|
+
if (o === void 0) t = Kt(this, t, e, 0), s = !_e(t) || t !== this._$AH && t !== vt, s && (this._$AH = t);
|
|
457
457
|
else {
|
|
458
458
|
const a = t;
|
|
459
459
|
let l, d;
|
|
460
|
-
for (t =
|
|
460
|
+
for (t = o[0], l = 0; l < o.length - 1; l++) d = Kt(this, a[n + l], e, l), d === vt && (d = this._$AH[l]), s || (s = !_e(d) || d !== this._$AH[l]), d === O ? t = O : t !== O && (t += (d ?? "") + o[l + 1]), this._$AH[l] = d;
|
|
461
461
|
}
|
|
462
|
-
s && !
|
|
462
|
+
s && !r && this.j(t);
|
|
463
463
|
}
|
|
464
464
|
j(t) {
|
|
465
465
|
t === O ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
@@ -473,7 +473,7 @@ class Qn extends Le {
|
|
|
473
473
|
this.element[this.name] = t === O ? void 0 : t;
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
class
|
|
476
|
+
class tr extends Le {
|
|
477
477
|
constructor() {
|
|
478
478
|
super(...arguments), this.type = 4;
|
|
479
479
|
}
|
|
@@ -481,21 +481,21 @@ class to extends Le {
|
|
|
481
481
|
this.element.toggleAttribute(this.name, !!t && t !== O);
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
-
class
|
|
485
|
-
constructor(t, e, n,
|
|
486
|
-
super(t, e, n,
|
|
484
|
+
class er extends Le {
|
|
485
|
+
constructor(t, e, n, r, o) {
|
|
486
|
+
super(t, e, n, r, o), this.type = 5;
|
|
487
487
|
}
|
|
488
488
|
_$AI(t, e = this) {
|
|
489
489
|
if ((t = Kt(this, t, e, 0) ?? O) === vt) return;
|
|
490
|
-
const n = this._$AH,
|
|
491
|
-
|
|
490
|
+
const n = this._$AH, r = t === O && n !== O || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, o = t !== O && (n === O || r);
|
|
491
|
+
r && this.element.removeEventListener(this.name, this, n), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
492
492
|
}
|
|
493
493
|
handleEvent(t) {
|
|
494
494
|
var e;
|
|
495
495
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
class
|
|
498
|
+
class ir {
|
|
499
499
|
constructor(t, e, n) {
|
|
500
500
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = n;
|
|
501
501
|
}
|
|
@@ -506,16 +506,16 @@ class io {
|
|
|
506
506
|
Kt(this, t);
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
const
|
|
510
|
-
Pi == null || Pi(Ce,
|
|
511
|
-
const
|
|
509
|
+
const ho = { M: nn, P: Ct, A: rn, C: 1, L: Jn, R: Kn, D: Yn, V: Kt, I: ue, H: Le, N: tr, U: er, B: Qn, F: ir }, Pi = ve.litHtmlPolyfillSupport;
|
|
510
|
+
Pi == null || Pi(Ce, ue), (ve.litHtmlVersions ?? (ve.litHtmlVersions = [])).push("3.2.1");
|
|
511
|
+
const po = (i, t, e) => {
|
|
512
512
|
const n = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
513
|
-
let
|
|
514
|
-
if (
|
|
515
|
-
const
|
|
516
|
-
n._$litPart$ =
|
|
513
|
+
let r = n._$litPart$;
|
|
514
|
+
if (r === void 0) {
|
|
515
|
+
const o = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
516
|
+
n._$litPart$ = r = new ue(t.insertBefore(Ae(), o), o, void 0, e ?? {});
|
|
517
517
|
}
|
|
518
|
-
return
|
|
518
|
+
return r._$AI(i), r;
|
|
519
519
|
};
|
|
520
520
|
/**
|
|
521
521
|
* @license
|
|
@@ -533,7 +533,7 @@ let lt = class extends ie {
|
|
|
533
533
|
}
|
|
534
534
|
update(t) {
|
|
535
535
|
const e = this.render();
|
|
536
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
536
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = po(e, this.renderRoot, this.renderOptions);
|
|
537
537
|
}
|
|
538
538
|
connectedCallback() {
|
|
539
539
|
var t;
|
|
@@ -587,35 +587,35 @@ class an {
|
|
|
587
587
|
* Copyright 2020 Google LLC
|
|
588
588
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
589
589
|
*/
|
|
590
|
-
const { I:
|
|
591
|
-
var
|
|
592
|
-
const n = i._$AA.parentNode,
|
|
590
|
+
const { I: fo } = ho, go = (i) => i.strings === void 0, Tn = () => document.createComment(""), fe = (i, t, e) => {
|
|
591
|
+
var o;
|
|
592
|
+
const n = i._$AA.parentNode, r = t === void 0 ? i._$AB : t._$AA;
|
|
593
593
|
if (e === void 0) {
|
|
594
|
-
const s = n.insertBefore(Tn(),
|
|
595
|
-
e = new
|
|
594
|
+
const s = n.insertBefore(Tn(), r), a = n.insertBefore(Tn(), r);
|
|
595
|
+
e = new fo(s, a, i, i.options);
|
|
596
596
|
} else {
|
|
597
597
|
const s = e._$AB.nextSibling, a = e._$AM, l = a !== i;
|
|
598
598
|
if (l) {
|
|
599
599
|
let d;
|
|
600
|
-
(
|
|
600
|
+
(o = e._$AQ) == null || o.call(e, i), e._$AM = i, e._$AP !== void 0 && (d = i._$AU) !== a._$AU && e._$AP(d);
|
|
601
601
|
}
|
|
602
|
-
if (s !==
|
|
602
|
+
if (s !== r || l) {
|
|
603
603
|
let d = e._$AA;
|
|
604
604
|
for (; d !== s; ) {
|
|
605
|
-
const
|
|
606
|
-
n.insertBefore(d,
|
|
605
|
+
const u = d.nextSibling;
|
|
606
|
+
n.insertBefore(d, r), d = u;
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
return e;
|
|
611
|
-
}, Zt = (i, t, e = i) => (i._$AI(t, e), i),
|
|
611
|
+
}, Zt = (i, t, e = i) => (i._$AI(t, e), i), mo = {}, nr = (i, t = mo) => i._$AH = t, yo = (i) => i._$AH, Li = (i) => {
|
|
612
612
|
var n;
|
|
613
613
|
(n = i._$AP) == null || n.call(i, !1, !0);
|
|
614
614
|
let t = i._$AA;
|
|
615
615
|
const e = i._$AB.nextSibling;
|
|
616
616
|
for (; t !== e; ) {
|
|
617
|
-
const
|
|
618
|
-
t.remove(), t =
|
|
617
|
+
const r = t.nextSibling;
|
|
618
|
+
t.remove(), t = r;
|
|
619
619
|
}
|
|
620
620
|
};
|
|
621
621
|
/**
|
|
@@ -625,52 +625,52 @@ const { I: fr } = hr, gr = (i) => i.strings === void 0, Tn = () => document.crea
|
|
|
625
625
|
*/
|
|
626
626
|
const Dn = (i, t, e) => {
|
|
627
627
|
const n = /* @__PURE__ */ new Map();
|
|
628
|
-
for (let
|
|
628
|
+
for (let r = t; r <= e; r++) n.set(i[r], r);
|
|
629
629
|
return n;
|
|
630
|
-
},
|
|
630
|
+
}, bo = sn(class extends an {
|
|
631
631
|
constructor(i) {
|
|
632
632
|
if (super(i), i.type !== Mt.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
633
633
|
}
|
|
634
634
|
dt(i, t, e) {
|
|
635
635
|
let n;
|
|
636
636
|
e === void 0 ? e = t : t !== void 0 && (n = t);
|
|
637
|
-
const
|
|
637
|
+
const r = [], o = [];
|
|
638
638
|
let s = 0;
|
|
639
|
-
for (const a of i)
|
|
640
|
-
return { values:
|
|
639
|
+
for (const a of i) r[s] = n ? n(a, s) : s, o[s] = e(a, s), s++;
|
|
640
|
+
return { values: o, keys: r };
|
|
641
641
|
}
|
|
642
642
|
render(i, t, e) {
|
|
643
643
|
return this.dt(i, t, e).values;
|
|
644
644
|
}
|
|
645
645
|
update(i, [t, e, n]) {
|
|
646
|
-
const
|
|
647
|
-
if (!Array.isArray(
|
|
646
|
+
const r = yo(i), { values: o, keys: s } = this.dt(t, e, n);
|
|
647
|
+
if (!Array.isArray(r)) return this.ut = s, o;
|
|
648
648
|
const a = this.ut ?? (this.ut = []), l = [];
|
|
649
|
-
let d,
|
|
650
|
-
for (;
|
|
651
|
-
else if (
|
|
652
|
-
else if (a[
|
|
653
|
-
else if (a[p] === s[g]) l[g] = Zt(
|
|
654
|
-
else if (a[
|
|
655
|
-
else if (a[p] === s[f]) l[f] = Zt(
|
|
656
|
-
else if (d === void 0 && (d = Dn(s, f, g),
|
|
657
|
-
const b =
|
|
649
|
+
let d, u, c = 0, p = r.length - 1, f = 0, g = o.length - 1;
|
|
650
|
+
for (; c <= p && f <= g; ) if (r[c] === null) c++;
|
|
651
|
+
else if (r[p] === null) p--;
|
|
652
|
+
else if (a[c] === s[f]) l[f] = Zt(r[c], o[f]), c++, f++;
|
|
653
|
+
else if (a[p] === s[g]) l[g] = Zt(r[p], o[g]), p--, g--;
|
|
654
|
+
else if (a[c] === s[g]) l[g] = Zt(r[c], o[g]), fe(i, l[g + 1], r[c]), c++, g--;
|
|
655
|
+
else if (a[p] === s[f]) l[f] = Zt(r[p], o[f]), fe(i, r[c], r[p]), p--, f++;
|
|
656
|
+
else if (d === void 0 && (d = Dn(s, f, g), u = Dn(a, c, p)), d.has(a[c])) if (d.has(a[p])) {
|
|
657
|
+
const b = u.get(s[f]), N = b !== void 0 ? r[b] : null;
|
|
658
658
|
if (N === null) {
|
|
659
|
-
const J = fe(i,
|
|
660
|
-
Zt(J,
|
|
661
|
-
} else l[f] = Zt(N,
|
|
659
|
+
const J = fe(i, r[c]);
|
|
660
|
+
Zt(J, o[f]), l[f] = J;
|
|
661
|
+
} else l[f] = Zt(N, o[f]), fe(i, r[c], N), r[b] = null;
|
|
662
662
|
f++;
|
|
663
|
-
} else Li(
|
|
664
|
-
else Li(
|
|
663
|
+
} else Li(r[p]), p--;
|
|
664
|
+
else Li(r[c]), c++;
|
|
665
665
|
for (; f <= g; ) {
|
|
666
666
|
const b = fe(i, l[g + 1]);
|
|
667
|
-
Zt(b,
|
|
667
|
+
Zt(b, o[f]), l[f++] = b;
|
|
668
668
|
}
|
|
669
|
-
for (;
|
|
670
|
-
const b =
|
|
669
|
+
for (; c <= p; ) {
|
|
670
|
+
const b = r[c++];
|
|
671
671
|
b !== null && Li(b);
|
|
672
672
|
}
|
|
673
|
-
return this.ut = s,
|
|
673
|
+
return this.ut = s, nr(i, l), vt;
|
|
674
674
|
}
|
|
675
675
|
});
|
|
676
676
|
/**
|
|
@@ -679,7 +679,7 @@ const Dn = (i, t, e) => {
|
|
|
679
679
|
* @license BSD-2-Clause
|
|
680
680
|
* @preserve
|
|
681
681
|
*/
|
|
682
|
-
var S = (i) => i !== void 0,
|
|
682
|
+
var S = (i) => i !== void 0, rr = (i, t, e) => t in i ? i[t] : i[t] = e;
|
|
683
683
|
const Te = {
|
|
684
684
|
ELEMENT: 1,
|
|
685
685
|
ATTRIBUTE: 2,
|
|
@@ -694,7 +694,7 @@ const Te = {
|
|
|
694
694
|
DOCUMENT_FRAGMENT: 11,
|
|
695
695
|
NOTATION: 12
|
|
696
696
|
};
|
|
697
|
-
class
|
|
697
|
+
class vo {
|
|
698
698
|
/**
|
|
699
699
|
* XML DOM parser
|
|
700
700
|
* @constructor
|
|
@@ -723,34 +723,34 @@ class vr {
|
|
|
723
723
|
}
|
|
724
724
|
}
|
|
725
725
|
function Si(i, t) {
|
|
726
|
-
return
|
|
726
|
+
return or(i, t, []).join("");
|
|
727
727
|
}
|
|
728
|
-
function
|
|
728
|
+
function or(i, t, e) {
|
|
729
729
|
if (i.nodeType === Te.CDATA_SECTION || i.nodeType === Te.TEXT)
|
|
730
730
|
t ? e.push(String(i.nodeValue).replace(/(\r\n|\r|\n)/g, "")) : e.push(i.nodeValue);
|
|
731
731
|
else {
|
|
732
732
|
var n;
|
|
733
733
|
for (n = i.firstChild; n; n = n.nextSibling)
|
|
734
|
-
|
|
734
|
+
or(n, t, e);
|
|
735
735
|
}
|
|
736
736
|
return e;
|
|
737
737
|
}
|
|
738
|
-
function
|
|
739
|
-
for (var
|
|
740
|
-
var
|
|
738
|
+
function wo(i, t, e, n) {
|
|
739
|
+
for (var r = xo(t); r; r = Eo(r)) {
|
|
740
|
+
var o = r.namespaceURI || null, s = i[o];
|
|
741
741
|
if (S(s)) {
|
|
742
|
-
var a = s[
|
|
743
|
-
S(a) && a.call(n,
|
|
742
|
+
var a = s[r.localName];
|
|
743
|
+
S(a) && a.call(n, r, e);
|
|
744
744
|
}
|
|
745
745
|
}
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function xo(i) {
|
|
748
748
|
let t = i.firstElementChild || i.firstChild;
|
|
749
749
|
for (; t && t.nodeType !== Te.ELEMENT; )
|
|
750
750
|
t = t.nextSibling;
|
|
751
751
|
return t;
|
|
752
752
|
}
|
|
753
|
-
function
|
|
753
|
+
function Eo(i) {
|
|
754
754
|
let t = i.nextElementSibling || i.nextSibling;
|
|
755
755
|
for (; t && t.nodeType !== Te.ELEMENT; )
|
|
756
756
|
t = t.nextSibling;
|
|
@@ -759,36 +759,36 @@ function Er(i) {
|
|
|
759
759
|
function nt(i, t, e) {
|
|
760
760
|
return (
|
|
761
761
|
/** @type {Object.<string, Object.<string, XMLParser.Parser>>} */
|
|
762
|
-
$
|
|
762
|
+
$o(i, t, e)
|
|
763
763
|
);
|
|
764
764
|
}
|
|
765
|
-
function $
|
|
766
|
-
var n = S(e) ? e : {},
|
|
767
|
-
for (
|
|
768
|
-
n[i[
|
|
765
|
+
function $o(i, t, e) {
|
|
766
|
+
var n = S(e) ? e : {}, r, o;
|
|
767
|
+
for (r = 0, o = i.length; r < o; ++r)
|
|
768
|
+
n[i[r]] = t;
|
|
769
769
|
return n;
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function sr(i, t) {
|
|
772
772
|
return (
|
|
773
773
|
/**
|
|
774
774
|
* @param {Node} node Node.
|
|
775
775
|
* @param {Array.<*>} objectStack Object stack.
|
|
776
776
|
*/
|
|
777
777
|
function(e, n) {
|
|
778
|
-
var
|
|
778
|
+
var r = i.call(
|
|
779
779
|
S(t) ? t : this,
|
|
780
780
|
e,
|
|
781
781
|
n
|
|
782
782
|
);
|
|
783
|
-
if (S(
|
|
784
|
-
var
|
|
785
|
-
|
|
783
|
+
if (S(r)) {
|
|
784
|
+
var o = n[n.length - 1];
|
|
785
|
+
o.push(r);
|
|
786
786
|
}
|
|
787
787
|
}
|
|
788
788
|
);
|
|
789
789
|
}
|
|
790
|
-
function Q(i, t, e, n,
|
|
791
|
-
return n.push(i),
|
|
790
|
+
function Q(i, t, e, n, r) {
|
|
791
|
+
return n.push(i), wo(t, e, n, r), n.pop();
|
|
792
792
|
}
|
|
793
793
|
function y(i, t, e) {
|
|
794
794
|
return (
|
|
@@ -796,18 +796,18 @@ function y(i, t, e) {
|
|
|
796
796
|
* @param {Node} node Node.
|
|
797
797
|
* @param {Array.<*>} objectStack Object stack.
|
|
798
798
|
*/
|
|
799
|
-
function(n,
|
|
800
|
-
let
|
|
799
|
+
function(n, r) {
|
|
800
|
+
let o = i.call(
|
|
801
801
|
S(e) ? e : this,
|
|
802
802
|
n,
|
|
803
|
-
|
|
803
|
+
r
|
|
804
804
|
);
|
|
805
|
-
if (S(
|
|
805
|
+
if (S(o)) {
|
|
806
806
|
var s = (
|
|
807
807
|
/** @type {Object} */
|
|
808
|
-
|
|
808
|
+
r[r.length - 1]
|
|
809
809
|
), a = S(t) ? t : n.localName;
|
|
810
|
-
s[a] =
|
|
810
|
+
s[a] = o;
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
813
|
);
|
|
@@ -818,32 +818,32 @@ function pt(i, t, e) {
|
|
|
818
818
|
* @param {Node} node Node.
|
|
819
819
|
* @param {Array.<*>} objectStack Object stack.
|
|
820
820
|
*/
|
|
821
|
-
function(n,
|
|
822
|
-
var
|
|
821
|
+
function(n, r) {
|
|
822
|
+
var o = i.call(
|
|
823
823
|
S(e) ? e : this,
|
|
824
824
|
n,
|
|
825
|
-
|
|
825
|
+
r
|
|
826
826
|
);
|
|
827
|
-
if (S(
|
|
827
|
+
if (S(o)) {
|
|
828
828
|
var s = (
|
|
829
829
|
/** @type {Object} */
|
|
830
|
-
|
|
831
|
-
), a = S(t) ? t : n.localName, l =
|
|
832
|
-
l.push(
|
|
830
|
+
r[r.length - 1]
|
|
831
|
+
), a = S(t) ? t : n.localName, l = rr(s, a, []);
|
|
832
|
+
l.push(o);
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
835
|
);
|
|
836
836
|
}
|
|
837
|
-
const
|
|
838
|
-
function
|
|
839
|
-
return i.replace(
|
|
837
|
+
const So = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
|
|
838
|
+
function Ao(i) {
|
|
839
|
+
return i.replace(So, "");
|
|
840
840
|
}
|
|
841
841
|
function Gt(i) {
|
|
842
842
|
const t = /^\s*(true|1)|(false|0)\s*$/.exec(i);
|
|
843
843
|
if (t)
|
|
844
844
|
return S(t[1]) || !1;
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function oe(i) {
|
|
847
847
|
return Tt(Si(i, !1));
|
|
848
848
|
}
|
|
849
849
|
function Tt(i) {
|
|
@@ -860,16 +860,16 @@ function Je(i) {
|
|
|
860
860
|
return parseInt(t[1], 10);
|
|
861
861
|
}
|
|
862
862
|
function D(i) {
|
|
863
|
-
return
|
|
863
|
+
return Ao(Si(i, !1));
|
|
864
864
|
}
|
|
865
|
-
const
|
|
865
|
+
const _o = "http://www.w3.org/1999/xlink";
|
|
866
866
|
function ln(i) {
|
|
867
|
-
return i.getAttributeNS(
|
|
867
|
+
return i.getAttributeNS(_o, "href");
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function Co(i, t) {
|
|
870
870
|
return Q({}, ts, i, t);
|
|
871
871
|
}
|
|
872
|
-
function
|
|
872
|
+
function ar(i) {
|
|
873
873
|
return [
|
|
874
874
|
Tt(i.getAttribute("minx")),
|
|
875
875
|
Tt(i.getAttribute("miny")),
|
|
@@ -877,8 +877,8 @@ function ao(i) {
|
|
|
877
877
|
Tt(i.getAttribute("maxy"))
|
|
878
878
|
];
|
|
879
879
|
}
|
|
880
|
-
function
|
|
881
|
-
const e =
|
|
880
|
+
function To(i, t) {
|
|
881
|
+
const e = ar(i), n = [
|
|
882
882
|
Tt(i.getAttribute("resx")),
|
|
883
883
|
Tt(i.getAttribute("resy"))
|
|
884
884
|
];
|
|
@@ -888,16 +888,16 @@ function Tr(i, t) {
|
|
|
888
888
|
res: n
|
|
889
889
|
};
|
|
890
890
|
}
|
|
891
|
-
function
|
|
892
|
-
const e =
|
|
891
|
+
function Do(i, t) {
|
|
892
|
+
const e = ar(i);
|
|
893
893
|
if (!(!S(e[0]) || !S(e[1]) || !S(e[2]) || !S(e[3])))
|
|
894
894
|
return e;
|
|
895
895
|
}
|
|
896
|
-
function
|
|
896
|
+
function Po(i, t) {
|
|
897
897
|
const e = parseFloat(i.getAttribute("min")), n = parseFloat(i.getAttribute("max"));
|
|
898
898
|
return { min: e, max: n };
|
|
899
899
|
}
|
|
900
|
-
function
|
|
900
|
+
function Oo(i, t) {
|
|
901
901
|
const e = Q(
|
|
902
902
|
{},
|
|
903
903
|
es,
|
|
@@ -908,74 +908,74 @@ function Or(i, t) {
|
|
|
908
908
|
const n = (
|
|
909
909
|
/** @type {number|undefined} */
|
|
910
910
|
e.westBoundLongitude
|
|
911
|
-
),
|
|
911
|
+
), r = (
|
|
912
912
|
/** @type {number|undefined} */
|
|
913
913
|
e.southBoundLatitude
|
|
914
|
-
),
|
|
914
|
+
), o = (
|
|
915
915
|
/** @type {number|undefined} */
|
|
916
916
|
e.eastBoundLongitude
|
|
917
917
|
), s = (
|
|
918
918
|
/** @type {number|undefined} */
|
|
919
919
|
e.northBoundLatitude
|
|
920
920
|
);
|
|
921
|
-
if (!(!S(n) || !S(
|
|
921
|
+
if (!(!S(n) || !S(r) || !S(o) || !S(s)))
|
|
922
922
|
return [
|
|
923
923
|
n,
|
|
924
|
-
o,
|
|
925
924
|
r,
|
|
925
|
+
o,
|
|
926
926
|
s
|
|
927
927
|
];
|
|
928
928
|
}
|
|
929
|
-
function
|
|
930
|
-
return Q({},
|
|
929
|
+
function Lo(i, t) {
|
|
930
|
+
return Q({}, Yo, i, t);
|
|
931
931
|
}
|
|
932
|
-
function
|
|
933
|
-
return Q({},
|
|
932
|
+
function Ro(i, t) {
|
|
933
|
+
return Q({}, Wo, i, t);
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function Mo(i, t) {
|
|
936
936
|
return Q(
|
|
937
937
|
{},
|
|
938
|
-
|
|
938
|
+
Go,
|
|
939
939
|
i,
|
|
940
940
|
t
|
|
941
941
|
);
|
|
942
942
|
}
|
|
943
|
-
function
|
|
943
|
+
function Io(i, t) {
|
|
944
944
|
return Q(
|
|
945
945
|
{},
|
|
946
|
-
|
|
946
|
+
Jo,
|
|
947
947
|
i,
|
|
948
948
|
t
|
|
949
949
|
);
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function No(i, t) {
|
|
952
952
|
return Q(
|
|
953
953
|
{},
|
|
954
|
-
|
|
954
|
+
Ko,
|
|
955
955
|
i,
|
|
956
956
|
t
|
|
957
957
|
);
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function Ho(i, t) {
|
|
960
960
|
return Q(
|
|
961
961
|
[],
|
|
962
|
-
|
|
962
|
+
Qo,
|
|
963
963
|
i,
|
|
964
964
|
t
|
|
965
965
|
);
|
|
966
966
|
}
|
|
967
|
-
function
|
|
967
|
+
function Vo(i, t) {
|
|
968
968
|
const e = Gt(i.getAttribute("queryable"));
|
|
969
969
|
return Q(
|
|
970
970
|
{
|
|
971
971
|
queryable: S(e) ? e : !1
|
|
972
972
|
},
|
|
973
|
-
|
|
973
|
+
cr,
|
|
974
974
|
i,
|
|
975
975
|
t
|
|
976
976
|
);
|
|
977
977
|
}
|
|
978
|
-
function
|
|
978
|
+
function ko(i, t) {
|
|
979
979
|
var e = (
|
|
980
980
|
/** @type {Object.<string,*>} */
|
|
981
981
|
t[t.length - 1]
|
|
@@ -984,16 +984,16 @@ function Br(i, t) {
|
|
|
984
984
|
/** @type {Object.<string,*>} */
|
|
985
985
|
Q(
|
|
986
986
|
{},
|
|
987
|
-
|
|
987
|
+
cr,
|
|
988
988
|
i,
|
|
989
989
|
t
|
|
990
990
|
)
|
|
991
991
|
);
|
|
992
992
|
if (!S(n)) return;
|
|
993
|
-
let
|
|
994
|
-
S(
|
|
995
|
-
let
|
|
996
|
-
S(
|
|
993
|
+
let r = Gt(i.getAttribute("queryable"));
|
|
994
|
+
S(r) || (r = e.queryable), n.queryable = S(r) ? r : !1;
|
|
995
|
+
let o = Je(i.getAttribute("cascaded"));
|
|
996
|
+
S(o) || (o = e.cascaded), n.cascaded = o;
|
|
997
997
|
let s = Gt(i.getAttribute("opaque"));
|
|
998
998
|
S(s) || (s = e.opaque), n.opaque = S(s) ? s : !1;
|
|
999
999
|
let a = Gt(i.getAttribute("noSubsets"));
|
|
@@ -1002,15 +1002,15 @@ function Br(i, t) {
|
|
|
1002
1002
|
S(l) || (l = e.fixedWidth), n.fixedWidth = l;
|
|
1003
1003
|
let d = Tt(i.getAttribute("fixedHeight"));
|
|
1004
1004
|
S(d) || (d = e.fixedHeight), n.fixedHeight = d;
|
|
1005
|
-
const
|
|
1006
|
-
for (let p = 0, f =
|
|
1007
|
-
const g =
|
|
1005
|
+
const u = ["Style", "CRS", "AuthorityURL"];
|
|
1006
|
+
for (let p = 0, f = u.length; p < f; p++) {
|
|
1007
|
+
const g = u[p], b = e[g];
|
|
1008
1008
|
if (S(b)) {
|
|
1009
|
-
let N =
|
|
1009
|
+
let N = rr(n, g, []);
|
|
1010
1010
|
N = N.concat(b), n[g] = N;
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
|
-
const
|
|
1013
|
+
const c = [
|
|
1014
1014
|
"EX_GeographicBoundingBox",
|
|
1015
1015
|
"BoundingBox",
|
|
1016
1016
|
"Dimension",
|
|
@@ -1018,8 +1018,8 @@ function Br(i, t) {
|
|
|
1018
1018
|
"MinScaleDenominator",
|
|
1019
1019
|
"MaxScaleDenominator"
|
|
1020
1020
|
];
|
|
1021
|
-
for (let p = 0, f =
|
|
1022
|
-
const g =
|
|
1021
|
+
for (let p = 0, f = c.length; p < f; p++) {
|
|
1022
|
+
const g = c[p], b = n[g];
|
|
1023
1023
|
if (!S(b)) {
|
|
1024
1024
|
const N = e[g];
|
|
1025
1025
|
n[g] = N;
|
|
@@ -1027,7 +1027,7 @@ function Br(i, t) {
|
|
|
1027
1027
|
}
|
|
1028
1028
|
return n;
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1030
|
+
function Bo(i, t) {
|
|
1031
1031
|
return {
|
|
1032
1032
|
name: i.getAttribute("name"),
|
|
1033
1033
|
units: i.getAttribute("units"),
|
|
@@ -1047,19 +1047,19 @@ function Pt(i, t) {
|
|
|
1047
1047
|
t
|
|
1048
1048
|
);
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1050
|
+
function Uo(i, t) {
|
|
1051
1051
|
return Q({}, is, i, t);
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1054
|
-
return Q({}, os, i, t);
|
|
1055
|
-
}
|
|
1056
|
-
function jr(i, t) {
|
|
1053
|
+
function Fo(i, t) {
|
|
1057
1054
|
return Q({}, rs, i, t);
|
|
1058
1055
|
}
|
|
1056
|
+
function jo(i, t) {
|
|
1057
|
+
return Q({}, os, i, t);
|
|
1058
|
+
}
|
|
1059
1059
|
function Mi(i, t) {
|
|
1060
1060
|
return Q({}, ns, i, t);
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1062
|
+
function lr(i, t) {
|
|
1063
1063
|
var e = Pt(i, t);
|
|
1064
1064
|
if (S(e)) {
|
|
1065
1065
|
const n = [
|
|
@@ -1069,20 +1069,20 @@ function lo(i, t) {
|
|
|
1069
1069
|
return e.size = n, e;
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function zo(i, t) {
|
|
1073
1073
|
var e = Pt(i, t);
|
|
1074
1074
|
if (S(e))
|
|
1075
1075
|
return e.name = i.getAttribute("name"), e;
|
|
1076
1076
|
}
|
|
1077
|
-
function
|
|
1077
|
+
function Zo(i, t) {
|
|
1078
1078
|
var e = Pt(i, t);
|
|
1079
1079
|
if (S(e))
|
|
1080
1080
|
return e.type = i.getAttribute("type"), e;
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1082
|
+
function qo(i, t) {
|
|
1083
1083
|
return Q({}, ss, i, t);
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1085
|
+
function dr(i, t) {
|
|
1086
1086
|
return Q(
|
|
1087
1087
|
[],
|
|
1088
1088
|
ls,
|
|
@@ -1090,55 +1090,55 @@ function uo(i, t) {
|
|
|
1090
1090
|
t
|
|
1091
1091
|
);
|
|
1092
1092
|
}
|
|
1093
|
-
const
|
|
1093
|
+
const rt = [
|
|
1094
1094
|
null,
|
|
1095
1095
|
"http://www.opengis.net/wms"
|
|
1096
|
-
],
|
|
1097
|
-
|
|
1096
|
+
], Xo = nt(
|
|
1097
|
+
rt,
|
|
1098
1098
|
{
|
|
1099
|
-
Service: y(
|
|
1100
|
-
Capability: y(
|
|
1099
|
+
Service: y(Ro),
|
|
1100
|
+
Capability: y(Lo)
|
|
1101
1101
|
}
|
|
1102
|
-
),
|
|
1103
|
-
|
|
1102
|
+
), Yo = nt(
|
|
1103
|
+
rt,
|
|
1104
1104
|
{
|
|
1105
|
-
Request: y(
|
|
1106
|
-
Exception: y(
|
|
1107
|
-
Layer: y(
|
|
1105
|
+
Request: y(Uo),
|
|
1106
|
+
Exception: y(Ho),
|
|
1107
|
+
Layer: y(Vo)
|
|
1108
1108
|
}
|
|
1109
|
-
),
|
|
1110
|
-
|
|
1109
|
+
), Wo = nt(
|
|
1110
|
+
rt,
|
|
1111
1111
|
{
|
|
1112
1112
|
Name: y(D),
|
|
1113
1113
|
Title: y(D),
|
|
1114
1114
|
Abstract: y(D),
|
|
1115
|
-
KeywordList: y(
|
|
1115
|
+
KeywordList: y(dr),
|
|
1116
1116
|
OnlineResource: y(ln),
|
|
1117
|
-
ContactInformation: y(
|
|
1117
|
+
ContactInformation: y(Mo),
|
|
1118
1118
|
Fees: y(D),
|
|
1119
1119
|
AccessConstraints: y(D),
|
|
1120
1120
|
LayerLimit: y(Ri),
|
|
1121
1121
|
MaxWidth: y(Ri),
|
|
1122
1122
|
MaxHeight: y(Ri)
|
|
1123
1123
|
}
|
|
1124
|
-
),
|
|
1125
|
-
|
|
1124
|
+
), Go = nt(
|
|
1125
|
+
rt,
|
|
1126
1126
|
{
|
|
1127
|
-
ContactPersonPrimary: y(
|
|
1127
|
+
ContactPersonPrimary: y(Io),
|
|
1128
1128
|
ContactPosition: y(D),
|
|
1129
|
-
ContactAddress: y(
|
|
1129
|
+
ContactAddress: y(No),
|
|
1130
1130
|
ContactVoiceTelephone: y(D),
|
|
1131
1131
|
ContactFacsimileTelephone: y(D),
|
|
1132
1132
|
ContactElectronicMailAddress: y(D)
|
|
1133
1133
|
}
|
|
1134
|
-
),
|
|
1135
|
-
|
|
1134
|
+
), Jo = nt(
|
|
1135
|
+
rt,
|
|
1136
1136
|
{
|
|
1137
1137
|
ContactPerson: y(D),
|
|
1138
1138
|
ContactOrganization: y(D)
|
|
1139
1139
|
}
|
|
1140
|
-
),
|
|
1141
|
-
|
|
1140
|
+
), Ko = nt(
|
|
1141
|
+
rt,
|
|
1142
1142
|
{
|
|
1143
1143
|
AddressType: y(D),
|
|
1144
1144
|
Address: y(D),
|
|
@@ -1147,50 +1147,50 @@ const ot = [
|
|
|
1147
1147
|
PostCode: y(D),
|
|
1148
1148
|
Country: y(D)
|
|
1149
1149
|
}
|
|
1150
|
-
),
|
|
1151
|
-
|
|
1150
|
+
), Qo = nt(
|
|
1151
|
+
rt,
|
|
1152
1152
|
{
|
|
1153
|
-
Format:
|
|
1153
|
+
Format: sr(D)
|
|
1154
1154
|
}
|
|
1155
|
-
),
|
|
1156
|
-
|
|
1155
|
+
), cr = nt(
|
|
1156
|
+
rt,
|
|
1157
1157
|
{
|
|
1158
1158
|
Name: y(D),
|
|
1159
1159
|
Title: y(D),
|
|
1160
1160
|
Abstract: y(D),
|
|
1161
|
-
KeywordList: y(
|
|
1161
|
+
KeywordList: y(dr),
|
|
1162
1162
|
CRS: pt(D),
|
|
1163
1163
|
SRS: pt(D),
|
|
1164
|
-
EX_GeographicBoundingBox: y(
|
|
1165
|
-
LatLonBoundingBox: y(
|
|
1166
|
-
BoundingBox: pt(
|
|
1167
|
-
Dimension: pt(
|
|
1168
|
-
Attribution: y(
|
|
1169
|
-
AuthorityURL: pt(
|
|
1164
|
+
EX_GeographicBoundingBox: y(Oo),
|
|
1165
|
+
LatLonBoundingBox: y(Do),
|
|
1166
|
+
BoundingBox: pt(To),
|
|
1167
|
+
Dimension: pt(Bo),
|
|
1168
|
+
Attribution: y(Co),
|
|
1169
|
+
AuthorityURL: pt(zo),
|
|
1170
1170
|
Identifier: pt(D),
|
|
1171
|
-
MetadataURL: pt(
|
|
1171
|
+
MetadataURL: pt(Zo),
|
|
1172
1172
|
DataURL: pt(Pt),
|
|
1173
1173
|
FeatureListURL: pt(Pt),
|
|
1174
|
-
Style: pt(
|
|
1175
|
-
MinScaleDenominator: y(
|
|
1176
|
-
MaxScaleDenominator: y(
|
|
1177
|
-
ScaleHint: y(
|
|
1178
|
-
Layer: pt(
|
|
1174
|
+
Style: pt(qo),
|
|
1175
|
+
MinScaleDenominator: y(oe),
|
|
1176
|
+
MaxScaleDenominator: y(oe),
|
|
1177
|
+
ScaleHint: y(Po),
|
|
1178
|
+
Layer: pt(ko)
|
|
1179
1179
|
}
|
|
1180
1180
|
), ts = nt(
|
|
1181
|
-
|
|
1181
|
+
rt,
|
|
1182
1182
|
{
|
|
1183
1183
|
Title: y(D),
|
|
1184
1184
|
OnlineResource: y(ln),
|
|
1185
|
-
LogoURL: y(
|
|
1185
|
+
LogoURL: y(lr)
|
|
1186
1186
|
}
|
|
1187
|
-
), es = nt(
|
|
1188
|
-
westBoundLongitude: y(
|
|
1189
|
-
eastBoundLongitude: y(
|
|
1190
|
-
southBoundLatitude: y(
|
|
1191
|
-
northBoundLatitude: y(
|
|
1187
|
+
), es = nt(rt, {
|
|
1188
|
+
westBoundLongitude: y(oe),
|
|
1189
|
+
eastBoundLongitude: y(oe),
|
|
1190
|
+
southBoundLatitude: y(oe),
|
|
1191
|
+
northBoundLatitude: y(oe)
|
|
1192
1192
|
}), is = nt(
|
|
1193
|
-
|
|
1193
|
+
rt,
|
|
1194
1194
|
{
|
|
1195
1195
|
GetCapabilities: y(
|
|
1196
1196
|
Mi
|
|
@@ -1203,22 +1203,22 @@ const ot = [
|
|
|
1203
1203
|
)
|
|
1204
1204
|
}
|
|
1205
1205
|
), ns = nt(
|
|
1206
|
-
|
|
1206
|
+
rt,
|
|
1207
1207
|
{
|
|
1208
1208
|
Format: pt(D),
|
|
1209
1209
|
DCPType: pt(
|
|
1210
|
-
|
|
1210
|
+
Fo
|
|
1211
1211
|
)
|
|
1212
1212
|
}
|
|
1213
|
-
),
|
|
1214
|
-
|
|
1213
|
+
), rs = nt(
|
|
1214
|
+
rt,
|
|
1215
1215
|
{
|
|
1216
1216
|
HTTP: y(
|
|
1217
|
-
|
|
1217
|
+
jo
|
|
1218
1218
|
)
|
|
1219
1219
|
}
|
|
1220
|
-
),
|
|
1221
|
-
|
|
1220
|
+
), os = nt(
|
|
1221
|
+
rt,
|
|
1222
1222
|
{
|
|
1223
1223
|
Get: y(
|
|
1224
1224
|
Pt
|
|
@@ -1228,25 +1228,25 @@ const ot = [
|
|
|
1228
1228
|
)
|
|
1229
1229
|
}
|
|
1230
1230
|
), ss = nt(
|
|
1231
|
-
|
|
1231
|
+
rt,
|
|
1232
1232
|
{
|
|
1233
1233
|
Name: y(D),
|
|
1234
1234
|
Title: y(D),
|
|
1235
1235
|
Abstract: y(D),
|
|
1236
|
-
LegendURL: pt(
|
|
1236
|
+
LegendURL: pt(lr),
|
|
1237
1237
|
StyleSheetURL: y(Pt),
|
|
1238
1238
|
StyleURL: y(Pt)
|
|
1239
1239
|
}
|
|
1240
1240
|
), as = nt(
|
|
1241
|
-
|
|
1241
|
+
rt,
|
|
1242
1242
|
{
|
|
1243
1243
|
Format: y(D),
|
|
1244
1244
|
OnlineResource: y(ln)
|
|
1245
1245
|
}
|
|
1246
1246
|
), ls = nt(
|
|
1247
|
-
|
|
1247
|
+
rt,
|
|
1248
1248
|
{
|
|
1249
|
-
Keyword:
|
|
1249
|
+
Keyword: sr(D)
|
|
1250
1250
|
}
|
|
1251
1251
|
);
|
|
1252
1252
|
class ds {
|
|
@@ -1257,7 +1257,7 @@ class ds {
|
|
|
1257
1257
|
* @constructor
|
|
1258
1258
|
*/
|
|
1259
1259
|
constructor(t, e) {
|
|
1260
|
-
!e && typeof window < "u" && (e = window.DOMParser), this.version = void 0, this._parser = new
|
|
1260
|
+
!e && typeof window < "u" && (e = window.DOMParser), this.version = void 0, this._parser = new vo(e), this._data = t;
|
|
1261
1261
|
}
|
|
1262
1262
|
/**
|
|
1263
1263
|
* @param {String} xmlString
|
|
@@ -1297,29 +1297,29 @@ class ds {
|
|
|
1297
1297
|
readFromNode(t) {
|
|
1298
1298
|
return this.version = t.getAttribute("version"), Q({
|
|
1299
1299
|
version: this.version
|
|
1300
|
-
},
|
|
1300
|
+
}, Xo, t, []) || null;
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
1303
|
-
async function
|
|
1303
|
+
async function cs(i) {
|
|
1304
1304
|
let t = new URL(i), e = t.searchParams;
|
|
1305
1305
|
e.set("SERVICE", "WMS"), e.set("REQUEST", "GetCapabilities");
|
|
1306
1306
|
let n = t.toString();
|
|
1307
|
-
const
|
|
1308
|
-
if (
|
|
1309
|
-
const
|
|
1310
|
-
return new ds(
|
|
1307
|
+
const r = await fetch(n);
|
|
1308
|
+
if (r.ok) {
|
|
1309
|
+
const o = await r.text();
|
|
1310
|
+
return new ds(o).toJSON();
|
|
1311
1311
|
} else
|
|
1312
|
-
throw new Error(`Error: ${
|
|
1312
|
+
throw new Error(`Error: ${r.status}`);
|
|
1313
1313
|
}
|
|
1314
1314
|
function dn(i) {
|
|
1315
1315
|
const t = /\b(?:wms|ows)\b/i, e = /{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;
|
|
1316
1316
|
return t.test(i) ? "TileWMS" : e.test(i) ? "XYZ" : !1;
|
|
1317
1317
|
}
|
|
1318
|
-
function
|
|
1318
|
+
function us(i) {
|
|
1319
1319
|
const e = /^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(i), n = dn(i);
|
|
1320
1320
|
return !!(i && e && n);
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1322
|
+
function ur(i) {
|
|
1323
1323
|
return i.replace(
|
|
1324
1324
|
/(['"])?([a-zA-Z0-9_]+)(['"])?:/g,
|
|
1325
1325
|
'"$2": '
|
|
@@ -1327,7 +1327,7 @@ function ho(i) {
|
|
|
1327
1327
|
}
|
|
1328
1328
|
function hs(i) {
|
|
1329
1329
|
try {
|
|
1330
|
-
return JSON.parse(
|
|
1330
|
+
return JSON.parse(ur(i)), !!i;
|
|
1331
1331
|
} catch {
|
|
1332
1332
|
return !1;
|
|
1333
1333
|
}
|
|
@@ -1339,8 +1339,8 @@ function ps(i, t) {
|
|
|
1339
1339
|
e.set(l, a[l]);
|
|
1340
1340
|
}) : e.set(s, a);
|
|
1341
1341
|
});
|
|
1342
|
-
const n = i.split("?")[0],
|
|
1343
|
-
return `${n}?${
|
|
1342
|
+
const n = i.split("?")[0], r = e.toString();
|
|
1343
|
+
return `${n}?${r}`;
|
|
1344
1344
|
}
|
|
1345
1345
|
/**!
|
|
1346
1346
|
* Sortable 1.15.6
|
|
@@ -1352,8 +1352,8 @@ function Pn(i, t) {
|
|
|
1352
1352
|
var e = Object.keys(i);
|
|
1353
1353
|
if (Object.getOwnPropertySymbols) {
|
|
1354
1354
|
var n = Object.getOwnPropertySymbols(i);
|
|
1355
|
-
t && (n = n.filter(function(
|
|
1356
|
-
return Object.getOwnPropertyDescriptor(i,
|
|
1355
|
+
t && (n = n.filter(function(r) {
|
|
1356
|
+
return Object.getOwnPropertyDescriptor(i, r).enumerable;
|
|
1357
1357
|
})), e.push.apply(e, n);
|
|
1358
1358
|
}
|
|
1359
1359
|
return e;
|
|
@@ -1397,18 +1397,18 @@ function Ot() {
|
|
|
1397
1397
|
}
|
|
1398
1398
|
function gs(i, t) {
|
|
1399
1399
|
if (i == null) return {};
|
|
1400
|
-
var e = {}, n = Object.keys(i),
|
|
1401
|
-
for (
|
|
1402
|
-
|
|
1400
|
+
var e = {}, n = Object.keys(i), r, o;
|
|
1401
|
+
for (o = 0; o < n.length; o++)
|
|
1402
|
+
r = n[o], !(t.indexOf(r) >= 0) && (e[r] = i[r]);
|
|
1403
1403
|
return e;
|
|
1404
1404
|
}
|
|
1405
1405
|
function ms(i, t) {
|
|
1406
1406
|
if (i == null) return {};
|
|
1407
|
-
var e = gs(i, t), n,
|
|
1407
|
+
var e = gs(i, t), n, r;
|
|
1408
1408
|
if (Object.getOwnPropertySymbols) {
|
|
1409
|
-
var
|
|
1410
|
-
for (
|
|
1411
|
-
n = r
|
|
1409
|
+
var o = Object.getOwnPropertySymbols(i);
|
|
1410
|
+
for (r = 0; r < o.length; r++)
|
|
1411
|
+
n = o[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(i, n) && (e[n] = i[n]);
|
|
1412
1412
|
}
|
|
1413
1413
|
return e;
|
|
1414
1414
|
}
|
|
@@ -1417,15 +1417,15 @@ function Dt(i) {
|
|
|
1417
1417
|
if (typeof window < "u" && window.navigator)
|
|
1418
1418
|
return !!/* @__PURE__ */ navigator.userAgent.match(i);
|
|
1419
1419
|
}
|
|
1420
|
-
var Lt = Dt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Re = Dt(/Edge/i), On = Dt(/firefox/i), we = Dt(/safari/i) && !Dt(/chrome/i) && !Dt(/android/i),
|
|
1420
|
+
var Lt = Dt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Re = Dt(/Edge/i), On = Dt(/firefox/i), we = Dt(/safari/i) && !Dt(/chrome/i) && !Dt(/android/i), cn = Dt(/iP(ad|od|hone)/i), hr = Dt(/chrome/i) && Dt(/android/i), pr = {
|
|
1421
1421
|
capture: !1,
|
|
1422
1422
|
passive: !1
|
|
1423
1423
|
};
|
|
1424
1424
|
function C(i, t, e) {
|
|
1425
|
-
i.addEventListener(t, e, !Lt &&
|
|
1425
|
+
i.addEventListener(t, e, !Lt && pr);
|
|
1426
1426
|
}
|
|
1427
|
-
function
|
|
1428
|
-
i.removeEventListener(t, e, !Lt &&
|
|
1427
|
+
function _(i, t, e) {
|
|
1428
|
+
i.removeEventListener(t, e, !Lt && pr);
|
|
1429
1429
|
}
|
|
1430
1430
|
function Ke(i, t) {
|
|
1431
1431
|
if (t) {
|
|
@@ -1443,7 +1443,7 @@ function Ke(i, t) {
|
|
|
1443
1443
|
return !1;
|
|
1444
1444
|
}
|
|
1445
1445
|
}
|
|
1446
|
-
function
|
|
1446
|
+
function fr(i) {
|
|
1447
1447
|
return i.host && i !== document && i.host.nodeType ? i.host : i.parentNode;
|
|
1448
1448
|
}
|
|
1449
1449
|
function xt(i, t, e, n) {
|
|
@@ -1453,7 +1453,7 @@ function xt(i, t, e, n) {
|
|
|
1453
1453
|
if (t != null && (t[0] === ">" ? i.parentNode === e && Ke(i, t) : Ke(i, t)) || n && i === e)
|
|
1454
1454
|
return i;
|
|
1455
1455
|
if (i === e) break;
|
|
1456
|
-
} while (i =
|
|
1456
|
+
} while (i = fr(i));
|
|
1457
1457
|
}
|
|
1458
1458
|
return null;
|
|
1459
1459
|
}
|
|
@@ -1484,15 +1484,15 @@ function ae(i, t) {
|
|
|
1484
1484
|
var n = v(i, "transform");
|
|
1485
1485
|
n && n !== "none" && (e = n + " " + e);
|
|
1486
1486
|
} while (!t && (i = i.parentNode));
|
|
1487
|
-
var
|
|
1488
|
-
return
|
|
1487
|
+
var r = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
1488
|
+
return r && new r(e);
|
|
1489
1489
|
}
|
|
1490
|
-
function
|
|
1490
|
+
function gr(i, t, e) {
|
|
1491
1491
|
if (i) {
|
|
1492
|
-
var n = i.getElementsByTagName(t),
|
|
1492
|
+
var n = i.getElementsByTagName(t), r = 0, o = n.length;
|
|
1493
1493
|
if (e)
|
|
1494
|
-
for (;
|
|
1495
|
-
e(n[
|
|
1494
|
+
for (; r < o; r++)
|
|
1495
|
+
e(n[r], r);
|
|
1496
1496
|
return n;
|
|
1497
1497
|
}
|
|
1498
1498
|
return [];
|
|
@@ -1501,52 +1501,52 @@ function $t() {
|
|
|
1501
1501
|
var i = document.scrollingElement;
|
|
1502
1502
|
return i || document.documentElement;
|
|
1503
1503
|
}
|
|
1504
|
-
function W(i, t, e, n,
|
|
1504
|
+
function W(i, t, e, n, r) {
|
|
1505
1505
|
if (!(!i.getBoundingClientRect && i !== window)) {
|
|
1506
|
-
var
|
|
1507
|
-
if (i !== window && i.parentNode && i !== $t() ? (
|
|
1506
|
+
var o, s, a, l, d, u, c;
|
|
1507
|
+
if (i !== window && i.parentNode && i !== $t() ? (o = i.getBoundingClientRect(), s = o.top, a = o.left, l = o.bottom, d = o.right, u = o.height, c = o.width) : (s = 0, a = 0, l = window.innerHeight, d = window.innerWidth, u = window.innerHeight, c = window.innerWidth), (t || e) && i !== window && (r = r || i.parentNode, !Lt))
|
|
1508
1508
|
do
|
|
1509
|
-
if (
|
|
1510
|
-
var p =
|
|
1511
|
-
s -= p.top + parseInt(v(
|
|
1509
|
+
if (r && r.getBoundingClientRect && (v(r, "transform") !== "none" || e && v(r, "position") !== "static")) {
|
|
1510
|
+
var p = r.getBoundingClientRect();
|
|
1511
|
+
s -= p.top + parseInt(v(r, "border-top-width")), a -= p.left + parseInt(v(r, "border-left-width")), l = s + o.height, d = a + o.width;
|
|
1512
1512
|
break;
|
|
1513
1513
|
}
|
|
1514
|
-
while (
|
|
1514
|
+
while (r = r.parentNode);
|
|
1515
1515
|
if (n && i !== window) {
|
|
1516
|
-
var f = ae(
|
|
1517
|
-
f && (s /= b, a /= g,
|
|
1516
|
+
var f = ae(r || i), g = f && f.a, b = f && f.d;
|
|
1517
|
+
f && (s /= b, a /= g, c /= g, u /= b, l = s + u, d = a + c);
|
|
1518
1518
|
}
|
|
1519
1519
|
return {
|
|
1520
1520
|
top: s,
|
|
1521
1521
|
left: a,
|
|
1522
1522
|
bottom: l,
|
|
1523
1523
|
right: d,
|
|
1524
|
-
width:
|
|
1525
|
-
height:
|
|
1524
|
+
width: c,
|
|
1525
|
+
height: u
|
|
1526
1526
|
};
|
|
1527
1527
|
}
|
|
1528
1528
|
}
|
|
1529
1529
|
function Rn(i, t, e) {
|
|
1530
|
-
for (var n = Vt(i, !0),
|
|
1531
|
-
var
|
|
1532
|
-
if (s =
|
|
1530
|
+
for (var n = Vt(i, !0), r = W(i)[t]; n; ) {
|
|
1531
|
+
var o = W(n)[e], s = void 0;
|
|
1532
|
+
if (s = r >= o, !s) return n;
|
|
1533
1533
|
if (n === $t()) break;
|
|
1534
1534
|
n = Vt(n, !1);
|
|
1535
1535
|
}
|
|
1536
1536
|
return !1;
|
|
1537
1537
|
}
|
|
1538
1538
|
function de(i, t, e, n) {
|
|
1539
|
-
for (var
|
|
1540
|
-
if (s[
|
|
1541
|
-
if (
|
|
1542
|
-
return s[
|
|
1543
|
-
|
|
1539
|
+
for (var r = 0, o = 0, s = i.children; o < s.length; ) {
|
|
1540
|
+
if (s[o].style.display !== "none" && s[o] !== w.ghost && (n || s[o] !== w.dragged) && xt(s[o], e.draggable, i, !1)) {
|
|
1541
|
+
if (r === t)
|
|
1542
|
+
return s[o];
|
|
1543
|
+
r++;
|
|
1544
1544
|
}
|
|
1545
|
-
|
|
1545
|
+
o++;
|
|
1546
1546
|
}
|
|
1547
1547
|
return null;
|
|
1548
1548
|
}
|
|
1549
|
-
function
|
|
1549
|
+
function un(i, t) {
|
|
1550
1550
|
for (var e = i.lastElementChild; e && (e === w.ghost || v(e, "display") === "none" || t && !Ke(e, t)); )
|
|
1551
1551
|
e = e.previousElementSibling;
|
|
1552
1552
|
return e || null;
|
|
@@ -1563,8 +1563,8 @@ function Mn(i) {
|
|
|
1563
1563
|
var t = 0, e = 0, n = $t();
|
|
1564
1564
|
if (i)
|
|
1565
1565
|
do {
|
|
1566
|
-
var
|
|
1567
|
-
t += i.scrollLeft *
|
|
1566
|
+
var r = ae(i), o = r.a, s = r.d;
|
|
1567
|
+
t += i.scrollLeft * o, e += i.scrollTop * s;
|
|
1568
1568
|
} while (i !== n && (i = i.parentNode));
|
|
1569
1569
|
return [t, e];
|
|
1570
1570
|
}
|
|
@@ -1581,8 +1581,8 @@ function Vt(i, t) {
|
|
|
1581
1581
|
var e = i, n = !1;
|
|
1582
1582
|
do
|
|
1583
1583
|
if (e.clientWidth < e.scrollWidth || e.clientHeight < e.scrollHeight) {
|
|
1584
|
-
var
|
|
1585
|
-
if (e.clientWidth < e.scrollWidth && (
|
|
1584
|
+
var r = v(e);
|
|
1585
|
+
if (e.clientWidth < e.scrollWidth && (r.overflowX == "auto" || r.overflowX == "scroll") || e.clientHeight < e.scrollHeight && (r.overflowY == "auto" || r.overflowY == "scroll")) {
|
|
1586
1586
|
if (!e.getBoundingClientRect || e === document.body) return $t();
|
|
1587
1587
|
if (n || t) return e;
|
|
1588
1588
|
n = !0;
|
|
@@ -1601,7 +1601,7 @@ function Ii(i, t) {
|
|
|
1601
1601
|
return Math.round(i.top) === Math.round(t.top) && Math.round(i.left) === Math.round(t.left) && Math.round(i.height) === Math.round(t.height) && Math.round(i.width) === Math.round(t.width);
|
|
1602
1602
|
}
|
|
1603
1603
|
var xe;
|
|
1604
|
-
function
|
|
1604
|
+
function mr(i, t) {
|
|
1605
1605
|
return function() {
|
|
1606
1606
|
if (!xe) {
|
|
1607
1607
|
var e = arguments, n = this;
|
|
@@ -1614,20 +1614,20 @@ function yo(i, t) {
|
|
|
1614
1614
|
function ws() {
|
|
1615
1615
|
clearTimeout(xe), xe = void 0;
|
|
1616
1616
|
}
|
|
1617
|
-
function
|
|
1617
|
+
function yr(i, t, e) {
|
|
1618
1618
|
i.scrollLeft += t, i.scrollTop += e;
|
|
1619
1619
|
}
|
|
1620
|
-
function
|
|
1620
|
+
function br(i) {
|
|
1621
1621
|
var t = window.Polymer, e = window.jQuery || window.Zepto;
|
|
1622
1622
|
return t && t.dom ? t.dom(i).cloneNode(!0) : e ? e(i).clone(!0)[0] : i.cloneNode(!0);
|
|
1623
1623
|
}
|
|
1624
|
-
function
|
|
1624
|
+
function vr(i, t, e) {
|
|
1625
1625
|
var n = {};
|
|
1626
|
-
return Array.from(i.children).forEach(function(
|
|
1627
|
-
var
|
|
1628
|
-
if (!(!xt(
|
|
1629
|
-
var d = W(
|
|
1630
|
-
n.left = Math.min((
|
|
1626
|
+
return Array.from(i.children).forEach(function(r) {
|
|
1627
|
+
var o, s, a, l;
|
|
1628
|
+
if (!(!xt(r, t.draggable, i, !1) || r.animated || r === e)) {
|
|
1629
|
+
var d = W(r);
|
|
1630
|
+
n.left = Math.min((o = n.left) !== null && o !== void 0 ? o : 1 / 0, d.left), n.top = Math.min((s = n.top) !== null && s !== void 0 ? s : 1 / 0, d.top), n.right = Math.max((a = n.right) !== null && a !== void 0 ? a : -1 / 0, d.right), n.bottom = Math.max((l = n.bottom) !== null && l !== void 0 ? l : -1 / 0, d.bottom);
|
|
1631
1631
|
}
|
|
1632
1632
|
}), n.width = n.right - n.left, n.height = n.bottom - n.top, n.x = n.left, n.y = n.top, n;
|
|
1633
1633
|
}
|
|
@@ -1638,18 +1638,18 @@ function xs() {
|
|
|
1638
1638
|
captureAnimationState: function() {
|
|
1639
1639
|
if (i = [], !!this.options.animation) {
|
|
1640
1640
|
var n = [].slice.call(this.el.children);
|
|
1641
|
-
n.forEach(function(
|
|
1642
|
-
if (!(v(
|
|
1641
|
+
n.forEach(function(r) {
|
|
1642
|
+
if (!(v(r, "display") === "none" || r === w.ghost)) {
|
|
1643
1643
|
i.push({
|
|
1644
|
-
target:
|
|
1645
|
-
rect: W(
|
|
1644
|
+
target: r,
|
|
1645
|
+
rect: W(r)
|
|
1646
1646
|
});
|
|
1647
|
-
var
|
|
1648
|
-
if (
|
|
1649
|
-
var s = ae(
|
|
1650
|
-
s && (
|
|
1647
|
+
var o = St({}, i[i.length - 1].rect);
|
|
1648
|
+
if (r.thisAnimationDuration) {
|
|
1649
|
+
var s = ae(r, !0);
|
|
1650
|
+
s && (o.top -= s.f, o.left -= s.e);
|
|
1651
1651
|
}
|
|
1652
|
-
|
|
1652
|
+
r.fromRect = o;
|
|
1653
1653
|
}
|
|
1654
1654
|
});
|
|
1655
1655
|
}
|
|
@@ -1663,27 +1663,27 @@ function xs() {
|
|
|
1663
1663
|
}), 1);
|
|
1664
1664
|
},
|
|
1665
1665
|
animateAll: function(n) {
|
|
1666
|
-
var
|
|
1666
|
+
var r = this;
|
|
1667
1667
|
if (!this.options.animation) {
|
|
1668
1668
|
clearTimeout(t), typeof n == "function" && n();
|
|
1669
1669
|
return;
|
|
1670
1670
|
}
|
|
1671
|
-
var
|
|
1671
|
+
var o = !1, s = 0;
|
|
1672
1672
|
i.forEach(function(a) {
|
|
1673
|
-
var l = 0, d = a.target,
|
|
1674
|
-
b && (
|
|
1675
|
-
(g.top -
|
|
1673
|
+
var l = 0, d = a.target, u = d.fromRect, c = W(d), p = d.prevFromRect, f = d.prevToRect, g = a.rect, b = ae(d, !0);
|
|
1674
|
+
b && (c.top -= b.f, c.left -= b.e), d.toRect = c, d.thisAnimationDuration && Ii(p, c) && !Ii(u, c) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1675
|
+
(g.top - c.top) / (g.left - c.left) === (u.top - c.top) / (u.left - c.left) && (l = $s(g, p, f, r.options)), Ii(c, u) || (d.prevFromRect = u, d.prevToRect = c, l || (l = r.options.animation), r.animate(d, g, c, l)), l && (o = !0, s = Math.max(s, l), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
|
|
1676
1676
|
d.animationTime = 0, d.prevFromRect = null, d.fromRect = null, d.prevToRect = null, d.thisAnimationDuration = null;
|
|
1677
1677
|
}, l), d.thisAnimationDuration = l);
|
|
1678
|
-
}), clearTimeout(t),
|
|
1678
|
+
}), clearTimeout(t), o ? t = setTimeout(function() {
|
|
1679
1679
|
typeof n == "function" && n();
|
|
1680
1680
|
}, s) : typeof n == "function" && n(), i = [];
|
|
1681
1681
|
},
|
|
1682
|
-
animate: function(n,
|
|
1682
|
+
animate: function(n, r, o, s) {
|
|
1683
1683
|
if (s) {
|
|
1684
1684
|
v(n, "transition", ""), v(n, "transform", "");
|
|
1685
|
-
var a = ae(this.el), l = a && a.a, d = a && a.d,
|
|
1686
|
-
n.animatingX = !!
|
|
1685
|
+
var a = ae(this.el), l = a && a.a, d = a && a.d, u = (r.left - o.left) / (l || 1), c = (r.top - o.top) / (d || 1);
|
|
1686
|
+
n.animatingX = !!u, n.animatingY = !!c, v(n, "transform", "translate3d(" + u + "px," + c + "px,0)"), this.forRepaintDummy = Es(n), v(n, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
|
|
1687
1687
|
v(n, "transition", ""), v(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
|
|
1688
1688
|
}, s);
|
|
1689
1689
|
}
|
|
@@ -1708,20 +1708,20 @@ var te = [], Ni = {
|
|
|
1708
1708
|
}), te.push(t);
|
|
1709
1709
|
},
|
|
1710
1710
|
pluginEvent: function(t, e, n) {
|
|
1711
|
-
var
|
|
1711
|
+
var r = this;
|
|
1712
1712
|
this.eventCanceled = !1, n.cancel = function() {
|
|
1713
|
-
|
|
1713
|
+
r.eventCanceled = !0;
|
|
1714
1714
|
};
|
|
1715
|
-
var
|
|
1715
|
+
var o = t + "Global";
|
|
1716
1716
|
te.forEach(function(s) {
|
|
1717
|
-
e[s.pluginName] && (e[s.pluginName][
|
|
1717
|
+
e[s.pluginName] && (e[s.pluginName][o] && e[s.pluginName][o](St({
|
|
1718
1718
|
sortable: e
|
|
1719
1719
|
}, n)), e.options[s.pluginName] && e[s.pluginName][t] && e[s.pluginName][t](St({
|
|
1720
1720
|
sortable: e
|
|
1721
1721
|
}, n)));
|
|
1722
1722
|
});
|
|
1723
1723
|
},
|
|
1724
|
-
initializePlugins: function(t, e, n,
|
|
1724
|
+
initializePlugins: function(t, e, n, r) {
|
|
1725
1725
|
te.forEach(function(a) {
|
|
1726
1726
|
var l = a.pluginName;
|
|
1727
1727
|
if (!(!t.options[l] && !a.initializeByDefault)) {
|
|
@@ -1729,41 +1729,41 @@ var te = [], Ni = {
|
|
|
1729
1729
|
d.sortable = t, d.options = t.options, t[l] = d, Ot(n, d.defaults);
|
|
1730
1730
|
}
|
|
1731
1731
|
});
|
|
1732
|
-
for (var
|
|
1733
|
-
if (t.options.hasOwnProperty(
|
|
1734
|
-
var s = this.modifyOption(t,
|
|
1735
|
-
typeof s < "u" && (t.options[
|
|
1732
|
+
for (var o in t.options)
|
|
1733
|
+
if (t.options.hasOwnProperty(o)) {
|
|
1734
|
+
var s = this.modifyOption(t, o, t.options[o]);
|
|
1735
|
+
typeof s < "u" && (t.options[o] = s);
|
|
1736
1736
|
}
|
|
1737
1737
|
},
|
|
1738
1738
|
getEventProperties: function(t, e) {
|
|
1739
1739
|
var n = {};
|
|
1740
|
-
return te.forEach(function(
|
|
1741
|
-
typeof
|
|
1740
|
+
return te.forEach(function(r) {
|
|
1741
|
+
typeof r.eventProperties == "function" && Ot(n, r.eventProperties.call(e[r.pluginName], t));
|
|
1742
1742
|
}), n;
|
|
1743
1743
|
},
|
|
1744
1744
|
modifyOption: function(t, e, n) {
|
|
1745
|
-
var
|
|
1746
|
-
return te.forEach(function(
|
|
1747
|
-
t[
|
|
1748
|
-
}),
|
|
1745
|
+
var r;
|
|
1746
|
+
return te.forEach(function(o) {
|
|
1747
|
+
t[o.pluginName] && o.optionListeners && typeof o.optionListeners[e] == "function" && (r = o.optionListeners[e].call(t[o.pluginName], n));
|
|
1748
|
+
}), r;
|
|
1749
1749
|
}
|
|
1750
1750
|
};
|
|
1751
1751
|
function Ss(i) {
|
|
1752
|
-
var t = i.sortable, e = i.rootEl, n = i.name,
|
|
1752
|
+
var t = i.sortable, e = i.rootEl, n = i.name, r = i.targetEl, o = i.cloneEl, s = i.toEl, a = i.fromEl, l = i.oldIndex, d = i.newIndex, u = i.oldDraggableIndex, c = i.newDraggableIndex, p = i.originalEvent, f = i.putSortable, g = i.extraEventProperties;
|
|
1753
1753
|
if (t = t || e && e[ft], !!t) {
|
|
1754
1754
|
var b, N = t.options, J = "on" + n.charAt(0).toUpperCase() + n.substr(1);
|
|
1755
1755
|
window.CustomEvent && !Lt && !Re ? b = new CustomEvent(n, {
|
|
1756
1756
|
bubbles: !0,
|
|
1757
1757
|
cancelable: !0
|
|
1758
|
-
}) : (b = document.createEvent("Event"), b.initEvent(n, !0, !0)), b.to = s || e, b.from = a || e, b.item =
|
|
1758
|
+
}) : (b = document.createEvent("Event"), b.initEvent(n, !0, !0)), b.to = s || e, b.from = a || e, b.item = r || e, b.clone = o, b.oldIndex = l, b.newIndex = d, b.oldDraggableIndex = u, b.newDraggableIndex = c, b.originalEvent = p, b.pullMode = f ? f.lastPutMode : void 0;
|
|
1759
1759
|
var U = St(St({}, g), Me.getEventProperties(n, t));
|
|
1760
1760
|
for (var st in U)
|
|
1761
1761
|
b[st] = U[st];
|
|
1762
1762
|
e && e.dispatchEvent(b), N[J] && N[J].call(t, b);
|
|
1763
1763
|
}
|
|
1764
1764
|
}
|
|
1765
|
-
var
|
|
1766
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {},
|
|
1765
|
+
var As = ["evt"], ht = function(t, e) {
|
|
1766
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o = ms(n, As);
|
|
1767
1767
|
Me.pluginEvent.bind(w)(t, e, St({
|
|
1768
1768
|
dragEl: h,
|
|
1769
1769
|
parentEl: z,
|
|
@@ -1771,18 +1771,18 @@ var _s = ["evt"], ht = function(t, e) {
|
|
|
1771
1771
|
rootEl: V,
|
|
1772
1772
|
nextEl: Yt,
|
|
1773
1773
|
lastDownEl: ze,
|
|
1774
|
-
cloneEl:
|
|
1774
|
+
cloneEl: B,
|
|
1775
1775
|
cloneHidden: Nt,
|
|
1776
1776
|
dragStarted: ge,
|
|
1777
1777
|
putSortable: et,
|
|
1778
1778
|
activeSortable: w.active,
|
|
1779
|
-
originalEvent:
|
|
1779
|
+
originalEvent: r,
|
|
1780
1780
|
oldIndex: se,
|
|
1781
1781
|
oldDraggableIndex: Ee,
|
|
1782
1782
|
newIndex: yt,
|
|
1783
1783
|
newDraggableIndex: It,
|
|
1784
|
-
hideGhostForTarget:
|
|
1785
|
-
unhideGhostForTarget:
|
|
1784
|
+
hideGhostForTarget: $r,
|
|
1785
|
+
unhideGhostForTarget: Sr,
|
|
1786
1786
|
cloneNowHidden: function() {
|
|
1787
1787
|
Nt = !0;
|
|
1788
1788
|
},
|
|
@@ -1793,15 +1793,15 @@ var _s = ["evt"], ht = function(t, e) {
|
|
|
1793
1793
|
at({
|
|
1794
1794
|
sortable: e,
|
|
1795
1795
|
name: a,
|
|
1796
|
-
originalEvent:
|
|
1796
|
+
originalEvent: r
|
|
1797
1797
|
});
|
|
1798
1798
|
}
|
|
1799
|
-
},
|
|
1799
|
+
}, o));
|
|
1800
1800
|
};
|
|
1801
1801
|
function at(i) {
|
|
1802
1802
|
Ss(St({
|
|
1803
1803
|
putSortable: et,
|
|
1804
|
-
cloneEl:
|
|
1804
|
+
cloneEl: B,
|
|
1805
1805
|
targetEl: h,
|
|
1806
1806
|
rootEl: V,
|
|
1807
1807
|
oldIndex: se,
|
|
@@ -1810,63 +1810,63 @@ function at(i) {
|
|
|
1810
1810
|
newDraggableIndex: It
|
|
1811
1811
|
}, i));
|
|
1812
1812
|
}
|
|
1813
|
-
var h, z, E, V, Yt, ze,
|
|
1814
|
-
if (
|
|
1813
|
+
var h, z, E, V, Yt, ze, B, Nt, se, yt, Ee, It, He, et, ne = !1, Qe = !1, ti = [], qt, wt, Hi, Vi, In, Nn, ge, ee, $e, Se = !1, Ve = !1, Ze, ot, ki = [], Xi = !1, ei = [], Ai = typeof document < "u", ke = cn, Hn = Re || Lt ? "cssFloat" : "float", _s = Ai && !hr && !cn && "draggable" in document.createElement("div"), wr = function() {
|
|
1814
|
+
if (Ai) {
|
|
1815
1815
|
if (Lt)
|
|
1816
1816
|
return !1;
|
|
1817
1817
|
var i = document.createElement("x");
|
|
1818
1818
|
return i.style.cssText = "pointer-events:auto", i.style.pointerEvents === "auto";
|
|
1819
1819
|
}
|
|
1820
|
-
}(),
|
|
1821
|
-
var n = v(t),
|
|
1820
|
+
}(), xr = function(t, e) {
|
|
1821
|
+
var n = v(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o = de(t, 0, e), s = de(t, 1, e), a = o && v(o), l = s && v(s), d = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + W(o).width, u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + W(s).width;
|
|
1822
1822
|
if (n.display === "flex")
|
|
1823
1823
|
return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
1824
1824
|
if (n.display === "grid")
|
|
1825
1825
|
return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
1826
|
-
if (
|
|
1827
|
-
var
|
|
1828
|
-
return s && (l.clear === "both" || l.clear ===
|
|
1826
|
+
if (o && a.float && a.float !== "none") {
|
|
1827
|
+
var c = a.float === "left" ? "left" : "right";
|
|
1828
|
+
return s && (l.clear === "both" || l.clear === c) ? "vertical" : "horizontal";
|
|
1829
1829
|
}
|
|
1830
|
-
return
|
|
1830
|
+
return o && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || d >= r && n[Hn] === "none" || s && n[Hn] === "none" && d + u > r) ? "vertical" : "horizontal";
|
|
1831
1831
|
}, Cs = function(t, e, n) {
|
|
1832
|
-
var
|
|
1833
|
-
return
|
|
1832
|
+
var r = n ? t.left : t.top, o = n ? t.right : t.bottom, s = n ? t.width : t.height, a = n ? e.left : e.top, l = n ? e.right : e.bottom, d = n ? e.width : e.height;
|
|
1833
|
+
return r === a || o === l || r + s / 2 === a + d / 2;
|
|
1834
1834
|
}, Ts = function(t, e) {
|
|
1835
1835
|
var n;
|
|
1836
|
-
return ti.some(function(
|
|
1837
|
-
var
|
|
1838
|
-
if (!(!
|
|
1839
|
-
var s = W(
|
|
1836
|
+
return ti.some(function(r) {
|
|
1837
|
+
var o = r[ft].options.emptyInsertThreshold;
|
|
1838
|
+
if (!(!o || un(r))) {
|
|
1839
|
+
var s = W(r), a = t >= s.left - o && t <= s.right + o, l = e >= s.top - o && e <= s.bottom + o;
|
|
1840
1840
|
if (a && l)
|
|
1841
|
-
return n =
|
|
1841
|
+
return n = r;
|
|
1842
1842
|
}
|
|
1843
1843
|
}), n;
|
|
1844
|
-
},
|
|
1845
|
-
function e(
|
|
1846
|
-
return function(a, l, d,
|
|
1847
|
-
var
|
|
1848
|
-
if (
|
|
1844
|
+
}, Er = function(t) {
|
|
1845
|
+
function e(o, s) {
|
|
1846
|
+
return function(a, l, d, u) {
|
|
1847
|
+
var c = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
|
|
1848
|
+
if (o == null && (s || c))
|
|
1849
1849
|
return !0;
|
|
1850
|
-
if (
|
|
1850
|
+
if (o == null || o === !1)
|
|
1851
1851
|
return !1;
|
|
1852
|
-
if (s &&
|
|
1853
|
-
return
|
|
1854
|
-
if (typeof
|
|
1855
|
-
return e(
|
|
1852
|
+
if (s && o === "clone")
|
|
1853
|
+
return o;
|
|
1854
|
+
if (typeof o == "function")
|
|
1855
|
+
return e(o(a, l, d, u), s)(a, l, d, u);
|
|
1856
1856
|
var p = (s ? a : l).options.group.name;
|
|
1857
|
-
return
|
|
1857
|
+
return o === !0 || typeof o == "string" && o === p || o.join && o.indexOf(p) > -1;
|
|
1858
1858
|
};
|
|
1859
1859
|
}
|
|
1860
|
-
var n = {},
|
|
1861
|
-
(!
|
|
1862
|
-
name:
|
|
1863
|
-
}), n.name =
|
|
1864
|
-
},
|
|
1865
|
-
!
|
|
1866
|
-
},
|
|
1867
|
-
!
|
|
1860
|
+
var n = {}, r = t.group;
|
|
1861
|
+
(!r || je(r) != "object") && (r = {
|
|
1862
|
+
name: r
|
|
1863
|
+
}), n.name = r.name, n.checkPull = e(r.pull, !0), n.checkPut = e(r.put), n.revertClone = r.revertClone, t.group = n;
|
|
1864
|
+
}, $r = function() {
|
|
1865
|
+
!wr && E && v(E, "display", "none");
|
|
1866
|
+
}, Sr = function() {
|
|
1867
|
+
!wr && E && v(E, "display", "");
|
|
1868
1868
|
};
|
|
1869
|
-
|
|
1869
|
+
Ai && !hr && document.addEventListener("click", function(i) {
|
|
1870
1870
|
if (Qe)
|
|
1871
1871
|
return i.preventDefault(), i.stopPropagation && i.stopPropagation(), i.stopImmediatePropagation && i.stopImmediatePropagation(), Qe = !1, !1;
|
|
1872
1872
|
}, !0);
|
|
@@ -1876,8 +1876,8 @@ var Xt = function(t) {
|
|
|
1876
1876
|
var e = Ts(t.clientX, t.clientY);
|
|
1877
1877
|
if (e) {
|
|
1878
1878
|
var n = {};
|
|
1879
|
-
for (var
|
|
1880
|
-
t.hasOwnProperty(
|
|
1879
|
+
for (var r in t)
|
|
1880
|
+
t.hasOwnProperty(r) && (n[r] = t[r]);
|
|
1881
1881
|
n.target = n.rootEl = e, n.preventDefault = void 0, n.stopPropagation = void 0, e[ft]._onDragOver(n);
|
|
1882
1882
|
}
|
|
1883
1883
|
}
|
|
@@ -1903,7 +1903,7 @@ function w(i, t) {
|
|
|
1903
1903
|
// will be set to same as swapThreshold if default
|
|
1904
1904
|
removeCloneOnHide: !0,
|
|
1905
1905
|
direction: function() {
|
|
1906
|
-
return
|
|
1906
|
+
return xr(i, this.options);
|
|
1907
1907
|
},
|
|
1908
1908
|
ghostClass: "sortable-ghost",
|
|
1909
1909
|
chosenClass: "sortable-chosen",
|
|
@@ -1931,16 +1931,16 @@ function w(i, t) {
|
|
|
1931
1931
|
y: 0
|
|
1932
1932
|
},
|
|
1933
1933
|
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
|
1934
|
-
supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && (!we ||
|
|
1934
|
+
supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && (!we || cn),
|
|
1935
1935
|
emptyInsertThreshold: 5
|
|
1936
1936
|
};
|
|
1937
1937
|
Me.initializePlugins(this, i, e);
|
|
1938
1938
|
for (var n in e)
|
|
1939
1939
|
!(n in t) && (t[n] = e[n]);
|
|
1940
|
-
|
|
1941
|
-
for (var
|
|
1942
|
-
|
|
1943
|
-
this.nativeDraggable = t.forceFallback ? !1 :
|
|
1940
|
+
Er(t);
|
|
1941
|
+
for (var r in this)
|
|
1942
|
+
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
1943
|
+
this.nativeDraggable = t.forceFallback ? !1 : _s, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? C(i, "pointerdown", this._onTapStart) : (C(i, "mousedown", this._onTapStart), C(i, "touchstart", this._onTapStart)), this.nativeDraggable && (C(i, "dragover", this), C(i, "dragenter", this)), ti.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Ot(this, xs());
|
|
1944
1944
|
}
|
|
1945
1945
|
w.prototype = /** @lends Sortable.prototype */
|
|
1946
1946
|
{
|
|
@@ -1953,10 +1953,10 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
1953
1953
|
},
|
|
1954
1954
|
_onTapStart: function(t) {
|
|
1955
1955
|
if (t.cancelable) {
|
|
1956
|
-
var e = this, n = this.el,
|
|
1957
|
-
if (Hs(n), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 ||
|
|
1958
|
-
if (se = bt(l), Ee = bt(l,
|
|
1959
|
-
if (
|
|
1956
|
+
var e = this, n = this.el, r = this.options, o = r.preventOnFilter, s = t.type, a = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (a || t).target, d = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, u = r.filter;
|
|
1957
|
+
if (Hs(n), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || r.disabled) && !d.isContentEditable && !(!this.nativeDraggable && we && l && l.tagName.toUpperCase() === "SELECT") && (l = xt(l, r.draggable, n, !1), !(l && l.animated) && ze !== l)) {
|
|
1958
|
+
if (se = bt(l), Ee = bt(l, r.draggable), typeof u == "function") {
|
|
1959
|
+
if (u.call(this, t, l, this)) {
|
|
1960
1960
|
at({
|
|
1961
1961
|
sortable: e,
|
|
1962
1962
|
rootEl: d,
|
|
@@ -1966,14 +1966,14 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
1966
1966
|
fromEl: n
|
|
1967
1967
|
}), ht("filter", e, {
|
|
1968
1968
|
evt: t
|
|
1969
|
-
}),
|
|
1969
|
+
}), o && t.preventDefault();
|
|
1970
1970
|
return;
|
|
1971
1971
|
}
|
|
1972
|
-
} else if (
|
|
1973
|
-
if (
|
|
1972
|
+
} else if (u && (u = u.split(",").some(function(c) {
|
|
1973
|
+
if (c = xt(d, c.trim(), n, !1), c)
|
|
1974
1974
|
return at({
|
|
1975
1975
|
sortable: e,
|
|
1976
|
-
rootEl:
|
|
1976
|
+
rootEl: c,
|
|
1977
1977
|
name: "filter",
|
|
1978
1978
|
targetEl: l,
|
|
1979
1979
|
fromEl: n,
|
|
@@ -1981,44 +1981,44 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
1981
1981
|
}), ht("filter", e, {
|
|
1982
1982
|
evt: t
|
|
1983
1983
|
}), !0;
|
|
1984
|
-
}),
|
|
1985
|
-
|
|
1984
|
+
}), u)) {
|
|
1985
|
+
o && t.preventDefault();
|
|
1986
1986
|
return;
|
|
1987
1987
|
}
|
|
1988
|
-
|
|
1988
|
+
r.handle && !xt(d, r.handle, n, !1) || this._prepareDragStart(t, a, l);
|
|
1989
1989
|
}
|
|
1990
1990
|
}
|
|
1991
1991
|
},
|
|
1992
1992
|
_prepareDragStart: function(t, e, n) {
|
|
1993
|
-
var
|
|
1994
|
-
if (n && !h && n.parentNode ===
|
|
1993
|
+
var r = this, o = r.el, s = r.options, a = o.ownerDocument, l;
|
|
1994
|
+
if (n && !h && n.parentNode === o) {
|
|
1995
1995
|
var d = W(n);
|
|
1996
|
-
if (V =
|
|
1996
|
+
if (V = o, h = n, z = h.parentNode, Yt = h.nextSibling, ze = n, He = s.group, w.dragged = h, qt = {
|
|
1997
1997
|
target: h,
|
|
1998
1998
|
clientX: (e || t).clientX,
|
|
1999
1999
|
clientY: (e || t).clientY
|
|
2000
2000
|
}, In = qt.clientX - d.left, Nn = qt.clientY - d.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, h.style["will-change"] = "all", l = function() {
|
|
2001
|
-
if (ht("delayEnded",
|
|
2001
|
+
if (ht("delayEnded", r, {
|
|
2002
2002
|
evt: t
|
|
2003
2003
|
}), w.eventCanceled) {
|
|
2004
|
-
|
|
2004
|
+
r._onDrop();
|
|
2005
2005
|
return;
|
|
2006
2006
|
}
|
|
2007
|
-
|
|
2008
|
-
sortable:
|
|
2007
|
+
r._disableDelayedDragEvents(), !On && r.nativeDraggable && (h.draggable = !0), r._triggerDragStart(t, e), at({
|
|
2008
|
+
sortable: r,
|
|
2009
2009
|
name: "choose",
|
|
2010
2010
|
originalEvent: t
|
|
2011
2011
|
}), mt(h, s.chosenClass, !0);
|
|
2012
|
-
}, s.ignore.split(",").forEach(function(
|
|
2013
|
-
|
|
2014
|
-
}), C(a, "dragover", Xt), C(a, "mousemove", Xt), C(a, "touchmove", Xt), s.supportPointer ? (C(a, "pointerup",
|
|
2012
|
+
}, s.ignore.split(",").forEach(function(u) {
|
|
2013
|
+
gr(h, u.trim(), Bi);
|
|
2014
|
+
}), C(a, "dragover", Xt), C(a, "mousemove", Xt), C(a, "touchmove", Xt), s.supportPointer ? (C(a, "pointerup", r._onDrop), !this.nativeDraggable && C(a, "pointercancel", r._onDrop)) : (C(a, "mouseup", r._onDrop), C(a, "touchend", r._onDrop), C(a, "touchcancel", r._onDrop)), On && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), ht("delayStart", this, {
|
|
2015
2015
|
evt: t
|
|
2016
2016
|
}), s.delay && (!s.delayOnTouchOnly || e) && (!this.nativeDraggable || !(Re || Lt))) {
|
|
2017
2017
|
if (w.eventCanceled) {
|
|
2018
2018
|
this._onDrop();
|
|
2019
2019
|
return;
|
|
2020
2020
|
}
|
|
2021
|
-
s.supportPointer ? (C(a, "pointerup",
|
|
2021
|
+
s.supportPointer ? (C(a, "pointerup", r._disableDelayedDrag), C(a, "pointercancel", r._disableDelayedDrag)) : (C(a, "mouseup", r._disableDelayedDrag), C(a, "touchend", r._disableDelayedDrag), C(a, "touchcancel", r._disableDelayedDrag)), C(a, "mousemove", r._delayedDragTouchMoveHandler), C(a, "touchmove", r._delayedDragTouchMoveHandler), s.supportPointer && C(a, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(l, s.delay);
|
|
2022
2022
|
} else
|
|
2023
2023
|
l();
|
|
2024
2024
|
}
|
|
@@ -2028,11 +2028,11 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2028
2028
|
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();
|
|
2029
2029
|
},
|
|
2030
2030
|
_disableDelayedDrag: function() {
|
|
2031
|
-
h &&
|
|
2031
|
+
h && Bi(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
2032
2032
|
},
|
|
2033
2033
|
_disableDelayedDragEvents: function() {
|
|
2034
2034
|
var t = this.el.ownerDocument;
|
|
2035
|
-
|
|
2035
|
+
_(t, "mouseup", this._disableDelayedDrag), _(t, "touchend", this._disableDelayedDrag), _(t, "touchcancel", this._disableDelayedDrag), _(t, "pointerup", this._disableDelayedDrag), _(t, "pointercancel", this._disableDelayedDrag), _(t, "mousemove", this._delayedDragTouchMoveHandler), _(t, "touchmove", this._delayedDragTouchMoveHandler), _(t, "pointermove", this._delayedDragTouchMoveHandler);
|
|
2036
2036
|
},
|
|
2037
2037
|
_triggerDragStart: function(t, e) {
|
|
2038
2038
|
e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? C(document, "pointermove", this._onTouchMove) : e ? C(document, "touchmove", this._onTouchMove) : C(document, "mousemove", this._onTouchMove) : (C(h, "dragend", this), C(V, "dragstart", this._onDragStart));
|
|
@@ -2059,7 +2059,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2059
2059
|
},
|
|
2060
2060
|
_emulateDragOver: function() {
|
|
2061
2061
|
if (wt) {
|
|
2062
|
-
this._lastX = wt.clientX, this._lastY = wt.clientY,
|
|
2062
|
+
this._lastX = wt.clientX, this._lastY = wt.clientY, $r();
|
|
2063
2063
|
for (var t = document.elementFromPoint(wt.clientX, wt.clientY), e = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(wt.clientX, wt.clientY), t !== e); )
|
|
2064
2064
|
e = t;
|
|
2065
2065
|
if (h.parentNode[ft]._isOutsideThisEl(t), e)
|
|
@@ -2075,77 +2075,77 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2075
2075
|
break;
|
|
2076
2076
|
}
|
|
2077
2077
|
t = e;
|
|
2078
|
-
} while (e =
|
|
2079
|
-
|
|
2078
|
+
} while (e = fr(e));
|
|
2079
|
+
Sr();
|
|
2080
2080
|
}
|
|
2081
2081
|
},
|
|
2082
2082
|
_onTouchMove: function(t) {
|
|
2083
2083
|
if (qt) {
|
|
2084
|
-
var e = this.options, n = e.fallbackTolerance,
|
|
2084
|
+
var e = this.options, n = e.fallbackTolerance, r = e.fallbackOffset, o = t.touches ? t.touches[0] : t, s = E && ae(E, !0), a = E && s && s.a, l = E && s && s.d, d = ke && ot && Mn(ot), u = (o.clientX - qt.clientX + r.x) / (a || 1) + (d ? d[0] - ki[0] : 0) / (a || 1), c = (o.clientY - qt.clientY + r.y) / (l || 1) + (d ? d[1] - ki[1] : 0) / (l || 1);
|
|
2085
2085
|
if (!w.active && !ne) {
|
|
2086
|
-
if (n && Math.max(Math.abs(
|
|
2086
|
+
if (n && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < n)
|
|
2087
2087
|
return;
|
|
2088
2088
|
this._onDragStart(t, !0);
|
|
2089
2089
|
}
|
|
2090
2090
|
if (E) {
|
|
2091
|
-
s ? (s.e +=
|
|
2091
|
+
s ? (s.e += u - (Hi || 0), s.f += c - (Vi || 0)) : s = {
|
|
2092
2092
|
a: 1,
|
|
2093
2093
|
b: 0,
|
|
2094
2094
|
c: 0,
|
|
2095
2095
|
d: 1,
|
|
2096
|
-
e:
|
|
2097
|
-
f:
|
|
2096
|
+
e: u,
|
|
2097
|
+
f: c
|
|
2098
2098
|
};
|
|
2099
2099
|
var p = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
|
|
2100
|
-
v(E, "webkitTransform", p), v(E, "mozTransform", p), v(E, "msTransform", p), v(E, "transform", p), Hi =
|
|
2100
|
+
v(E, "webkitTransform", p), v(E, "mozTransform", p), v(E, "msTransform", p), v(E, "transform", p), Hi = u, Vi = c, wt = o;
|
|
2101
2101
|
}
|
|
2102
2102
|
t.cancelable && t.preventDefault();
|
|
2103
2103
|
}
|
|
2104
2104
|
},
|
|
2105
2105
|
_appendGhost: function() {
|
|
2106
2106
|
if (!E) {
|
|
2107
|
-
var t = this.options.fallbackOnBody ? document.body : V, e = W(h, !0,
|
|
2108
|
-
if (
|
|
2109
|
-
for (
|
|
2110
|
-
|
|
2111
|
-
|
|
2107
|
+
var t = this.options.fallbackOnBody ? document.body : V, e = W(h, !0, ke, !0, t), n = this.options;
|
|
2108
|
+
if (ke) {
|
|
2109
|
+
for (ot = t; v(ot, "position") === "static" && v(ot, "transform") === "none" && ot !== document; )
|
|
2110
|
+
ot = ot.parentNode;
|
|
2111
|
+
ot !== document.body && ot !== document.documentElement ? (ot === document && (ot = $t()), e.top += ot.scrollTop, e.left += ot.scrollLeft) : ot = $t(), ki = Mn(ot);
|
|
2112
2112
|
}
|
|
2113
|
-
E = h.cloneNode(!0), mt(E, n.ghostClass, !1), mt(E, n.fallbackClass, !0), mt(E, n.dragClass, !0), v(E, "transition", ""), v(E, "transform", ""), v(E, "box-sizing", "border-box"), v(E, "margin", 0), v(E, "top", e.top), v(E, "left", e.left), v(E, "width", e.width), v(E, "height", e.height), v(E, "opacity", "0.8"), v(E, "position",
|
|
2113
|
+
E = h.cloneNode(!0), mt(E, n.ghostClass, !1), mt(E, n.fallbackClass, !0), mt(E, n.dragClass, !0), v(E, "transition", ""), v(E, "transform", ""), v(E, "box-sizing", "border-box"), v(E, "margin", 0), v(E, "top", e.top), v(E, "left", e.left), v(E, "width", e.width), v(E, "height", e.height), v(E, "opacity", "0.8"), v(E, "position", ke ? "absolute" : "fixed"), v(E, "zIndex", "100000"), v(E, "pointerEvents", "none"), w.ghost = E, t.appendChild(E), v(E, "transform-origin", In / parseInt(E.style.width) * 100 + "% " + Nn / parseInt(E.style.height) * 100 + "%");
|
|
2114
2114
|
}
|
|
2115
2115
|
},
|
|
2116
2116
|
_onDragStart: function(t, e) {
|
|
2117
|
-
var n = this,
|
|
2117
|
+
var n = this, r = t.dataTransfer, o = n.options;
|
|
2118
2118
|
if (ht("dragStart", this, {
|
|
2119
2119
|
evt: t
|
|
2120
2120
|
}), w.eventCanceled) {
|
|
2121
2121
|
this._onDrop();
|
|
2122
2122
|
return;
|
|
2123
2123
|
}
|
|
2124
|
-
ht("setupClone", this), w.eventCanceled || (
|
|
2125
|
-
ht("clone", n), !w.eventCanceled && (n.options.removeCloneOnHide || V.insertBefore(
|
|
2124
|
+
ht("setupClone", this), w.eventCanceled || (B = br(h), B.removeAttribute("id"), B.draggable = !1, B.style["will-change"] = "", this._hideClone(), mt(B, this.options.chosenClass, !1), w.clone = B), n.cloneId = qe(function() {
|
|
2125
|
+
ht("clone", n), !w.eventCanceled && (n.options.removeCloneOnHide || V.insertBefore(B, h), n._hideClone(), at({
|
|
2126
2126
|
sortable: n,
|
|
2127
2127
|
name: "clone"
|
|
2128
2128
|
}));
|
|
2129
|
-
}), !e && mt(h,
|
|
2129
|
+
}), !e && mt(h, o.dragClass, !0), e ? (Qe = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (_(document, "mouseup", n._onDrop), _(document, "touchend", n._onDrop), _(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", o.setData && o.setData.call(n, r, h)), C(document, "drop", n), v(h, "transform", "translateZ(0)")), ne = !0, n._dragStartId = qe(n._dragStarted.bind(n, e, t)), C(document, "selectstart", n), ge = !0, window.getSelection().removeAllRanges(), we && v(document.body, "user-select", "none");
|
|
2130
2130
|
},
|
|
2131
2131
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
2132
2132
|
_onDragOver: function(t) {
|
|
2133
|
-
var e = this.el, n = t.target,
|
|
2133
|
+
var e = this.el, n = t.target, r, o, s, a = this.options, l = a.group, d = w.active, u = He === l, c = a.sort, p = et || d, f, g = this, b = !1;
|
|
2134
2134
|
if (Xi) return;
|
|
2135
2135
|
function N(gt, Ut) {
|
|
2136
2136
|
ht(gt, g, St({
|
|
2137
2137
|
evt: t,
|
|
2138
|
-
isOwner:
|
|
2138
|
+
isOwner: u,
|
|
2139
2139
|
axis: f ? "vertical" : "horizontal",
|
|
2140
2140
|
revert: s,
|
|
2141
|
-
dragRect:
|
|
2142
|
-
targetRect:
|
|
2143
|
-
canSort:
|
|
2141
|
+
dragRect: r,
|
|
2142
|
+
targetRect: o,
|
|
2143
|
+
canSort: c,
|
|
2144
2144
|
fromSortable: p,
|
|
2145
2145
|
target: n,
|
|
2146
2146
|
completed: U,
|
|
2147
|
-
onMove: function(Ft,
|
|
2148
|
-
return
|
|
2147
|
+
onMove: function(Ft, At) {
|
|
2148
|
+
return Be(V, e, h, r, Ft, W(Ft), t, At);
|
|
2149
2149
|
},
|
|
2150
2150
|
changed: st
|
|
2151
2151
|
}, Ut));
|
|
@@ -2156,7 +2156,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2156
2156
|
function U(gt) {
|
|
2157
2157
|
return N("dragOverCompleted", {
|
|
2158
2158
|
insertion: gt
|
|
2159
|
-
}), gt && (
|
|
2159
|
+
}), gt && (u ? d._hideClone() : d._showClone(g), g !== p && (mt(h, et ? et.options.ghostClass : d.options.ghostClass, !1), mt(h, a.ghostClass, !0)), et !== g && g !== w.active ? et = g : g === w.active && et && (et = null), p === g && (g._ignoreWhileAnimating = n), g.animateAll(function() {
|
|
2160
2160
|
N("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
|
|
2161
2161
|
}), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === h && !h.animated || n === e && !n.animated) && (ee = null), !a.dragoverBubble && !t.rootEl && n !== document && (h.parentNode[ft]._isOutsideThisEl(t.target), !gt && Xt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), b = !0;
|
|
2162
2162
|
}
|
|
@@ -2173,26 +2173,26 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2173
2173
|
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = xt(n, a.draggable, e, !0), N("dragOver"), w.eventCanceled) return b;
|
|
2174
2174
|
if (h.contains(t.target) || n.animated && n.animatingX && n.animatingY || g._ignoreWhileAnimating === n)
|
|
2175
2175
|
return U(!1);
|
|
2176
|
-
if (Qe = !1, d && !a.disabled && (
|
|
2177
|
-
if (f = this._getDirection(t, n) === "vertical",
|
|
2176
|
+
if (Qe = !1, d && !a.disabled && (u ? c || (s = z !== V) : et === this || (this.lastPutMode = He.checkPull(this, d, h, t)) && l.checkPut(this, d, h, t))) {
|
|
2177
|
+
if (f = this._getDirection(t, n) === "vertical", r = W(h), N("dragOverValid"), w.eventCanceled) return b;
|
|
2178
2178
|
if (s)
|
|
2179
2179
|
return z = V, J(), this._hideClone(), N("revert"), w.eventCanceled || (Yt ? V.insertBefore(h, Yt) : V.appendChild(h)), U(!0);
|
|
2180
|
-
var K =
|
|
2180
|
+
var K = un(e, a.draggable);
|
|
2181
2181
|
if (!K || Rs(t, f, this) && !K.animated) {
|
|
2182
2182
|
if (K === h)
|
|
2183
2183
|
return U(!1);
|
|
2184
|
-
if (K && e === t.target && (n = K), n && (
|
|
2184
|
+
if (K && e === t.target && (n = K), n && (o = W(n)), Be(V, e, h, r, n, o, t, !!n) !== !1)
|
|
2185
2185
|
return J(), K && K.nextSibling ? e.insertBefore(h, K.nextSibling) : e.appendChild(h), z = e, st(), U(!0);
|
|
2186
2186
|
} else if (K && Ls(t, f, this)) {
|
|
2187
2187
|
var $ = de(e, 0, a, !0);
|
|
2188
2188
|
if ($ === h)
|
|
2189
2189
|
return U(!1);
|
|
2190
|
-
if (n = $,
|
|
2190
|
+
if (n = $, o = W(n), Be(V, e, h, r, n, o, t, !1) !== !1)
|
|
2191
2191
|
return J(), e.insertBefore(h, $), z = e, st(), U(!0);
|
|
2192
2192
|
} else if (n.parentNode === e) {
|
|
2193
|
-
|
|
2194
|
-
var m = 0,
|
|
2195
|
-
ee !== n && (
|
|
2193
|
+
o = W(n);
|
|
2194
|
+
var m = 0, A, M = h.parentNode !== e, L = !Cs(h.animated && h.toRect || r, n.animated && n.toRect || o, f), q = f ? "top" : "left", X = Rn(n, "top", "top") || Rn(h, "top", "top"), H = X ? X.scrollTop : void 0;
|
|
2195
|
+
ee !== n && (A = o[q], Se = !1, Ve = !L && a.invertSwap || M), m = Ms(t, n, o, f, L ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ve, ee === n);
|
|
2196
2196
|
var R;
|
|
2197
2197
|
if (m !== 0) {
|
|
2198
2198
|
var Z = bt(h);
|
|
@@ -2205,9 +2205,9 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2205
2205
|
ee = n, $e = m;
|
|
2206
2206
|
var dt = n.nextElementSibling, tt = !1;
|
|
2207
2207
|
tt = m === 1;
|
|
2208
|
-
var
|
|
2209
|
-
if (
|
|
2210
|
-
return (
|
|
2208
|
+
var ct = Be(V, e, h, r, n, o, t, tt);
|
|
2209
|
+
if (ct !== !1)
|
|
2210
|
+
return (ct === 1 || ct === -1) && (tt = ct === 1), Xi = !0, setTimeout(Os, 30), J(), tt && !dt ? e.appendChild(h) : n.parentNode.insertBefore(h, tt ? dt : n), X && yr(X, 0, H - X.scrollTop), z = h.parentNode, A !== void 0 && !Ve && (Ze = Math.abs(A - W(n)[q])), st(), U(!0);
|
|
2211
2211
|
}
|
|
2212
2212
|
if (e.contains(h))
|
|
2213
2213
|
return U(!1);
|
|
@@ -2216,11 +2216,11 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2216
2216
|
},
|
|
2217
2217
|
_ignoreWhileAnimating: null,
|
|
2218
2218
|
_offMoveEvents: function() {
|
|
2219
|
-
|
|
2219
|
+
_(document, "mousemove", this._onTouchMove), _(document, "touchmove", this._onTouchMove), _(document, "pointermove", this._onTouchMove), _(document, "dragover", Xt), _(document, "mousemove", Xt), _(document, "touchmove", Xt);
|
|
2220
2220
|
},
|
|
2221
2221
|
_offUpEvents: function() {
|
|
2222
2222
|
var t = this.el.ownerDocument;
|
|
2223
|
-
|
|
2223
|
+
_(t, "mouseup", this._onDrop), _(t, "touchend", this._onDrop), _(t, "pointerup", this._onDrop), _(t, "pointercancel", this._onDrop), _(t, "touchcancel", this._onDrop), _(document, "selectstart", this);
|
|
2224
2224
|
},
|
|
2225
2225
|
_onDrop: function(t) {
|
|
2226
2226
|
var e = this.el, n = this.options;
|
|
@@ -2230,7 +2230,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2230
2230
|
this._nulling();
|
|
2231
2231
|
return;
|
|
2232
2232
|
}
|
|
2233
|
-
ne = !1, Ve = !1, Se = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Yi(this.cloneId), Yi(this._dragStartId), this.nativeDraggable && (
|
|
2233
|
+
ne = !1, Ve = !1, Se = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Yi(this.cloneId), Yi(this._dragStartId), this.nativeDraggable && (_(document, "drop", this), _(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), we && v(document.body, "user-select", ""), v(h, "transform", ""), t && (ge && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), E && E.parentNode && E.parentNode.removeChild(E), (V === z || et && et.lastPutMode !== "clone") && B && B.parentNode && B.parentNode.removeChild(B), h && (this.nativeDraggable && _(h, "dragend", this), Bi(h), h.style["will-change"] = "", ge && !ne && mt(h, et ? et.options.ghostClass : this.options.ghostClass, !1), mt(h, this.options.chosenClass, !1), at({
|
|
2234
2234
|
sortable: this,
|
|
2235
2235
|
name: "unchoose",
|
|
2236
2236
|
toEl: z,
|
|
@@ -2277,7 +2277,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2277
2277
|
}), this.save()))), this._nulling();
|
|
2278
2278
|
},
|
|
2279
2279
|
_nulling: function() {
|
|
2280
|
-
ht("nulling", this), V = h = z = E = Yt =
|
|
2280
|
+
ht("nulling", this), V = h = z = E = Yt = B = ze = Nt = qt = wt = ge = yt = It = se = Ee = ee = $e = et = He = w.dragged = w.ghost = w.clone = w.active = null, ei.forEach(function(t) {
|
|
2281
2281
|
t.checked = !0;
|
|
2282
2282
|
}), ei.length = Hi = Vi = 0;
|
|
2283
2283
|
},
|
|
@@ -2301,8 +2301,8 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2301
2301
|
* @returns {String[]}
|
|
2302
2302
|
*/
|
|
2303
2303
|
toArray: function() {
|
|
2304
|
-
for (var t = [], e, n = this.el.children,
|
|
2305
|
-
e = n[
|
|
2304
|
+
for (var t = [], e, n = this.el.children, r = 0, o = n.length, s = this.options; r < o; r++)
|
|
2305
|
+
e = n[r], xt(e, s.draggable, this.el, !1) && t.push(e.getAttribute(s.dataIdAttr) || Ns(e));
|
|
2306
2306
|
return t;
|
|
2307
2307
|
},
|
|
2308
2308
|
/**
|
|
@@ -2310,12 +2310,12 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2310
2310
|
* @param {String[]} order order of the items
|
|
2311
2311
|
*/
|
|
2312
2312
|
sort: function(t, e) {
|
|
2313
|
-
var n = {},
|
|
2314
|
-
this.toArray().forEach(function(
|
|
2315
|
-
var a =
|
|
2316
|
-
xt(a, this.options.draggable,
|
|
2317
|
-
}, this), e && this.captureAnimationState(), t.forEach(function(
|
|
2318
|
-
n[
|
|
2313
|
+
var n = {}, r = this.el;
|
|
2314
|
+
this.toArray().forEach(function(o, s) {
|
|
2315
|
+
var a = r.children[s];
|
|
2316
|
+
xt(a, this.options.draggable, r, !1) && (n[o] = a);
|
|
2317
|
+
}, this), e && this.captureAnimationState(), t.forEach(function(o) {
|
|
2318
|
+
n[o] && (r.removeChild(n[o]), r.appendChild(n[o]));
|
|
2319
2319
|
}), e && this.animateAll();
|
|
2320
2320
|
},
|
|
2321
2321
|
/**
|
|
@@ -2344,8 +2344,8 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2344
2344
|
var n = this.options;
|
|
2345
2345
|
if (e === void 0)
|
|
2346
2346
|
return n[t];
|
|
2347
|
-
var
|
|
2348
|
-
typeof
|
|
2347
|
+
var r = Me.modifyOption(this, t, e);
|
|
2348
|
+
typeof r < "u" ? n[t] = r : n[t] = e, t === "group" && Er(n);
|
|
2349
2349
|
},
|
|
2350
2350
|
/**
|
|
2351
2351
|
* Destroy
|
|
@@ -2353,14 +2353,14 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2353
2353
|
destroy: function() {
|
|
2354
2354
|
ht("destroy", this);
|
|
2355
2355
|
var t = this.el;
|
|
2356
|
-
t[ft] = null,
|
|
2356
|
+
t[ft] = null, _(t, "mousedown", this._onTapStart), _(t, "touchstart", this._onTapStart), _(t, "pointerdown", this._onTapStart), this.nativeDraggable && (_(t, "dragover", this), _(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(e) {
|
|
2357
2357
|
e.removeAttribute("draggable");
|
|
2358
2358
|
}), this._onDrop(), this._disableDelayedDragEvents(), ti.splice(ti.indexOf(this.el), 1), this.el = t = null;
|
|
2359
2359
|
},
|
|
2360
2360
|
_hideClone: function() {
|
|
2361
2361
|
if (!Nt) {
|
|
2362
2362
|
if (ht("hideClone", this), w.eventCanceled) return;
|
|
2363
|
-
v(
|
|
2363
|
+
v(B, "display", "none"), this.options.removeCloneOnHide && B.parentNode && B.parentNode.removeChild(B), Nt = !0;
|
|
2364
2364
|
}
|
|
2365
2365
|
},
|
|
2366
2366
|
_showClone: function(t) {
|
|
@@ -2370,46 +2370,46 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2370
2370
|
}
|
|
2371
2371
|
if (Nt) {
|
|
2372
2372
|
if (ht("showClone", this), w.eventCanceled) return;
|
|
2373
|
-
h.parentNode == V && !this.options.group.revertClone ? V.insertBefore(
|
|
2373
|
+
h.parentNode == V && !this.options.group.revertClone ? V.insertBefore(B, h) : Yt ? V.insertBefore(B, Yt) : V.appendChild(B), this.options.group.revertClone && this.animate(h, B), v(B, "display", ""), Nt = !1;
|
|
2374
2374
|
}
|
|
2375
2375
|
}
|
|
2376
2376
|
};
|
|
2377
2377
|
function Ps(i) {
|
|
2378
2378
|
i.dataTransfer && (i.dataTransfer.dropEffect = "move"), i.cancelable && i.preventDefault();
|
|
2379
2379
|
}
|
|
2380
|
-
function
|
|
2381
|
-
var l, d = i[ft],
|
|
2380
|
+
function Be(i, t, e, n, r, o, s, a) {
|
|
2381
|
+
var l, d = i[ft], u = d.options.onMove, c;
|
|
2382
2382
|
return window.CustomEvent && !Lt && !Re ? l = new CustomEvent("move", {
|
|
2383
2383
|
bubbles: !0,
|
|
2384
2384
|
cancelable: !0
|
|
2385
|
-
}) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = i, l.dragged = e, l.draggedRect = n, l.related =
|
|
2385
|
+
}) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = i, l.dragged = e, l.draggedRect = n, l.related = r || t, l.relatedRect = o || W(t), l.willInsertAfter = a, l.originalEvent = s, i.dispatchEvent(l), u && (c = u.call(d, l, s)), c;
|
|
2386
2386
|
}
|
|
2387
|
-
function
|
|
2387
|
+
function Bi(i) {
|
|
2388
2388
|
i.draggable = !1;
|
|
2389
2389
|
}
|
|
2390
2390
|
function Os() {
|
|
2391
2391
|
Xi = !1;
|
|
2392
2392
|
}
|
|
2393
2393
|
function Ls(i, t, e) {
|
|
2394
|
-
var n = W(de(e.el, 0, e.options, !0)),
|
|
2395
|
-
return t ? i.clientX <
|
|
2394
|
+
var n = W(de(e.el, 0, e.options, !0)), r = vr(e.el, e.options, E), o = 10;
|
|
2395
|
+
return t ? i.clientX < r.left - o || i.clientY < n.top && i.clientX < n.right : i.clientY < r.top - o || i.clientY < n.bottom && i.clientX < n.left;
|
|
2396
2396
|
}
|
|
2397
2397
|
function Rs(i, t, e) {
|
|
2398
|
-
var n = W(
|
|
2399
|
-
return t ? i.clientX >
|
|
2398
|
+
var n = W(un(e.el, e.options.draggable)), r = vr(e.el, e.options, E), o = 10;
|
|
2399
|
+
return t ? i.clientX > r.right + o || i.clientY > n.bottom && i.clientX > n.left : i.clientY > r.bottom + o || i.clientX > n.right && i.clientY > n.top;
|
|
2400
2400
|
}
|
|
2401
|
-
function Ms(i, t, e, n,
|
|
2402
|
-
var l = n ? i.clientY : i.clientX, d = n ? e.height : e.width,
|
|
2401
|
+
function Ms(i, t, e, n, r, o, s, a) {
|
|
2402
|
+
var l = n ? i.clientY : i.clientX, d = n ? e.height : e.width, u = n ? e.top : e.left, c = n ? e.bottom : e.right, p = !1;
|
|
2403
2403
|
if (!s) {
|
|
2404
|
-
if (a && Ze < d *
|
|
2405
|
-
if (!Se && ($e === 1 ? l >
|
|
2404
|
+
if (a && Ze < d * r) {
|
|
2405
|
+
if (!Se && ($e === 1 ? l > u + d * o / 2 : l < c - d * o / 2) && (Se = !0), Se)
|
|
2406
2406
|
p = !0;
|
|
2407
|
-
else if ($e === 1 ? l <
|
|
2407
|
+
else if ($e === 1 ? l < u + Ze : l > c - Ze)
|
|
2408
2408
|
return -$e;
|
|
2409
|
-
} else if (l >
|
|
2409
|
+
} else if (l > u + d * (1 - r) / 2 && l < c - d * (1 - r) / 2)
|
|
2410
2410
|
return Is(t);
|
|
2411
2411
|
}
|
|
2412
|
-
return p = p || s, p && (l <
|
|
2412
|
+
return p = p || s, p && (l < u + d * o / 2 || l > c - d * o / 2) ? l > u + d / 2 ? 1 : -1 : 0;
|
|
2413
2413
|
}
|
|
2414
2414
|
function Is(i) {
|
|
2415
2415
|
return bt(h) < bt(i) ? 1 : -1;
|
|
@@ -2432,26 +2432,26 @@ function qe(i) {
|
|
|
2432
2432
|
function Yi(i) {
|
|
2433
2433
|
return clearTimeout(i);
|
|
2434
2434
|
}
|
|
2435
|
-
|
|
2435
|
+
Ai && C(document, "touchmove", function(i) {
|
|
2436
2436
|
(w.active || ne) && i.cancelable && i.preventDefault();
|
|
2437
2437
|
});
|
|
2438
2438
|
w.utils = {
|
|
2439
2439
|
on: C,
|
|
2440
|
-
off:
|
|
2440
|
+
off: _,
|
|
2441
2441
|
css: v,
|
|
2442
|
-
find:
|
|
2442
|
+
find: gr,
|
|
2443
2443
|
is: function(t, e) {
|
|
2444
2444
|
return !!xt(t, e, t, !1);
|
|
2445
2445
|
},
|
|
2446
2446
|
extend: vs,
|
|
2447
|
-
throttle:
|
|
2447
|
+
throttle: mr,
|
|
2448
2448
|
closest: xt,
|
|
2449
2449
|
toggleClass: mt,
|
|
2450
|
-
clone:
|
|
2450
|
+
clone: br,
|
|
2451
2451
|
index: bt,
|
|
2452
2452
|
nextTick: qe,
|
|
2453
2453
|
cancelNextTick: Yi,
|
|
2454
|
-
detectDirection:
|
|
2454
|
+
detectDirection: xr,
|
|
2455
2455
|
getChild: de,
|
|
2456
2456
|
expando: ft
|
|
2457
2457
|
};
|
|
@@ -2494,7 +2494,7 @@ function Vs() {
|
|
|
2494
2494
|
!this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
|
|
2495
2495
|
},
|
|
2496
2496
|
drop: function() {
|
|
2497
|
-
this.sortable.nativeDraggable ?
|
|
2497
|
+
this.sortable.nativeDraggable ? _(document, "dragover", this._handleAutoScroll) : (_(document, "pointermove", this._handleFallbackAutoScroll), _(document, "touchmove", this._handleFallbackAutoScroll), _(document, "mousemove", this._handleFallbackAutoScroll)), Vn(), Xe(), ws();
|
|
2498
2498
|
},
|
|
2499
2499
|
nulling: function() {
|
|
2500
2500
|
ii = Wi = me = Gi = ye = Ui = Fi = null, Y.length = 0;
|
|
@@ -2503,14 +2503,14 @@ function Vs() {
|
|
|
2503
2503
|
this._handleAutoScroll(e, !0);
|
|
2504
2504
|
},
|
|
2505
2505
|
_handleAutoScroll: function(e, n) {
|
|
2506
|
-
var
|
|
2506
|
+
var r = this, o = (e.touches ? e.touches[0] : e).clientX, s = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(o, s);
|
|
2507
2507
|
if (ii = e, n || this.options.forceAutoScrollFallback || Re || Lt || we) {
|
|
2508
2508
|
ji(e, this.options, a, n);
|
|
2509
2509
|
var l = Vt(a, !0);
|
|
2510
|
-
Gi && (!ye ||
|
|
2511
|
-
var d = Vt(document.elementFromPoint(
|
|
2512
|
-
d !== l && (l = d, Xe()), ji(e,
|
|
2513
|
-
}, 10), Ui =
|
|
2510
|
+
Gi && (!ye || o !== Ui || s !== Fi) && (ye && Vn(), ye = setInterval(function() {
|
|
2511
|
+
var d = Vt(document.elementFromPoint(o, s), !0);
|
|
2512
|
+
d !== l && (l = d, Xe()), ji(e, r.options, d, n);
|
|
2513
|
+
}, 10), Ui = o, Fi = s);
|
|
2514
2514
|
} else {
|
|
2515
2515
|
if (!this.options.bubbleScroll || Vt(a, !0) === $t()) {
|
|
2516
2516
|
Xe();
|
|
@@ -2532,36 +2532,36 @@ function Xe() {
|
|
|
2532
2532
|
function Vn() {
|
|
2533
2533
|
clearInterval(ye);
|
|
2534
2534
|
}
|
|
2535
|
-
var ji =
|
|
2535
|
+
var ji = mr(function(i, t, e, n) {
|
|
2536
2536
|
if (t.scroll) {
|
|
2537
|
-
var
|
|
2538
|
-
Wi !== e && (Wi = e, Xe(), me = t.scroll,
|
|
2539
|
-
var
|
|
2537
|
+
var r = (i.touches ? i.touches[0] : i).clientX, o = (i.touches ? i.touches[0] : i).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = $t(), d = !1, u;
|
|
2538
|
+
Wi !== e && (Wi = e, Xe(), me = t.scroll, u = t.scrollFn, me === !0 && (me = Vt(e, !0)));
|
|
2539
|
+
var c = 0, p = me;
|
|
2540
2540
|
do {
|
|
2541
|
-
var f = p, g = W(f), b = g.top, N = g.bottom, J = g.left, U = g.right, st = g.width, K = g.height, $ = void 0, m = void 0,
|
|
2542
|
-
f === l ? ($ = st <
|
|
2543
|
-
var H = $ && (Math.abs(U -
|
|
2544
|
-
if (!Y[
|
|
2545
|
-
for (var Z = 0; Z <=
|
|
2541
|
+
var f = p, g = W(f), b = g.top, N = g.bottom, J = g.left, U = g.right, st = g.width, K = g.height, $ = void 0, m = void 0, A = f.scrollWidth, M = f.scrollHeight, L = v(f), q = f.scrollLeft, X = f.scrollTop;
|
|
2542
|
+
f === l ? ($ = st < A && (L.overflowX === "auto" || L.overflowX === "scroll" || L.overflowX === "visible"), m = K < M && (L.overflowY === "auto" || L.overflowY === "scroll" || L.overflowY === "visible")) : ($ = st < A && (L.overflowX === "auto" || L.overflowX === "scroll"), m = K < M && (L.overflowY === "auto" || L.overflowY === "scroll"));
|
|
2543
|
+
var H = $ && (Math.abs(U - r) <= s && q + st < A) - (Math.abs(J - r) <= s && !!q), R = m && (Math.abs(N - o) <= s && X + K < M) - (Math.abs(b - o) <= s && !!X);
|
|
2544
|
+
if (!Y[c])
|
|
2545
|
+
for (var Z = 0; Z <= c; Z++)
|
|
2546
2546
|
Y[Z] || (Y[Z] = {});
|
|
2547
|
-
(Y[
|
|
2547
|
+
(Y[c].vx != H || Y[c].vy != R || Y[c].el !== f) && (Y[c].el = f, Y[c].vx = H, Y[c].vy = R, clearInterval(Y[c].pid), (H != 0 || R != 0) && (d = !0, Y[c].pid = setInterval((function() {
|
|
2548
2548
|
n && this.layer === 0 && w.active._onTouchMove(ii);
|
|
2549
2549
|
var dt = Y[this.layer].vy ? Y[this.layer].vy * a : 0, tt = Y[this.layer].vx ? Y[this.layer].vx * a : 0;
|
|
2550
|
-
typeof
|
|
2550
|
+
typeof u == "function" && u.call(w.dragged.parentNode[ft], tt, dt, i, ii, Y[this.layer].el) !== "continue" || yr(Y[this.layer].el, tt, dt);
|
|
2551
2551
|
}).bind({
|
|
2552
|
-
layer:
|
|
2553
|
-
}), 24))),
|
|
2552
|
+
layer: c
|
|
2553
|
+
}), 24))), c++;
|
|
2554
2554
|
} while (t.bubbleScroll && p !== l && (p = Vt(p, !1)));
|
|
2555
2555
|
Gi = d;
|
|
2556
2556
|
}
|
|
2557
|
-
}, 30),
|
|
2558
|
-
var e = t.originalEvent, n = t.putSortable,
|
|
2557
|
+
}, 30), Ar = function(t) {
|
|
2558
|
+
var e = t.originalEvent, n = t.putSortable, r = t.dragEl, o = t.activeSortable, s = t.dispatchSortableEvent, a = t.hideGhostForTarget, l = t.unhideGhostForTarget;
|
|
2559
2559
|
if (e) {
|
|
2560
|
-
var d = n ||
|
|
2560
|
+
var d = n || o;
|
|
2561
2561
|
a();
|
|
2562
|
-
var
|
|
2563
|
-
l(), d && !d.el.contains(
|
|
2564
|
-
dragEl:
|
|
2562
|
+
var u = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e, c = document.elementFromPoint(u.clientX, u.clientY);
|
|
2563
|
+
l(), d && !d.el.contains(c) && (s("spill"), this.onSpill({
|
|
2564
|
+
dragEl: r,
|
|
2565
2565
|
putSortable: n
|
|
2566
2566
|
}));
|
|
2567
2567
|
}
|
|
@@ -2577,10 +2577,10 @@ hn.prototype = {
|
|
|
2577
2577
|
onSpill: function(t) {
|
|
2578
2578
|
var e = t.dragEl, n = t.putSortable;
|
|
2579
2579
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
2580
|
-
var
|
|
2581
|
-
|
|
2580
|
+
var r = de(this.sortable.el, this.startIndex, this.options);
|
|
2581
|
+
r ? this.sortable.el.insertBefore(e, r) : this.sortable.el.appendChild(e), this.sortable.animateAll(), n && n.animateAll();
|
|
2582
2582
|
},
|
|
2583
|
-
drop:
|
|
2583
|
+
drop: Ar
|
|
2584
2584
|
};
|
|
2585
2585
|
Ot(hn, {
|
|
2586
2586
|
pluginName: "revertOnSpill"
|
|
@@ -2589,77 +2589,77 @@ function pn() {
|
|
|
2589
2589
|
}
|
|
2590
2590
|
pn.prototype = {
|
|
2591
2591
|
onSpill: function(t) {
|
|
2592
|
-
var e = t.dragEl, n = t.putSortable,
|
|
2593
|
-
|
|
2592
|
+
var e = t.dragEl, n = t.putSortable, r = n || this.sortable;
|
|
2593
|
+
r.captureAnimationState(), e.parentNode && e.parentNode.removeChild(e), r.animateAll();
|
|
2594
2594
|
},
|
|
2595
|
-
drop:
|
|
2595
|
+
drop: Ar
|
|
2596
2596
|
};
|
|
2597
2597
|
Ot(pn, {
|
|
2598
2598
|
pluginName: "removeOnSpill"
|
|
2599
2599
|
});
|
|
2600
2600
|
w.mount(new Vs());
|
|
2601
2601
|
w.mount(pn, hn);
|
|
2602
|
-
const
|
|
2602
|
+
const ks = (i) => {
|
|
2603
2603
|
const t = i.item;
|
|
2604
2604
|
let e = Array.prototype.slice.call(t.parentNode.childNodes);
|
|
2605
2605
|
return e = e.filter(
|
|
2606
2606
|
(n) => n.nodeType != Node.ELEMENT_NODE || !n.classList.contains("sortable-fallback")
|
|
2607
2607
|
), e;
|
|
2608
|
-
},
|
|
2608
|
+
}, Bs = (i, t, e, n, r, o) => {
|
|
2609
2609
|
const a = i.item.parentNode;
|
|
2610
2610
|
for (const b of e)
|
|
2611
2611
|
a.appendChild(b);
|
|
2612
2612
|
if (i.oldIndex == i.newIndex) return;
|
|
2613
2613
|
const l = n.getArray(), d = (
|
|
2614
2614
|
/** @type {Element & {layer: import("ol/layer").Layer}} */
|
|
2615
|
-
i.item.querySelector("eox-layercontrol-layer").layer.get(
|
|
2616
|
-
),
|
|
2617
|
-
(b) => b.get(
|
|
2615
|
+
i.item.querySelector("eox-layercontrol-layer").layer.get(r)
|
|
2616
|
+
), u = l.find((b) => b.get(r) === d), c = o.dataset.layer, p = l.find(
|
|
2617
|
+
(b) => b.get(r) == c
|
|
2618
2618
|
);
|
|
2619
2619
|
let f, g;
|
|
2620
2620
|
for (f = 0; f < l.length; f++)
|
|
2621
|
-
if (l[f] ==
|
|
2621
|
+
if (l[f] == u) {
|
|
2622
2622
|
n.removeAt(f);
|
|
2623
2623
|
break;
|
|
2624
2624
|
}
|
|
2625
2625
|
for (g = 0; g < l.length; g++)
|
|
2626
2626
|
if (l[g] === p) {
|
|
2627
|
-
f > g ? n.insertAt(g,
|
|
2627
|
+
f > g ? n.insertAt(g, u) : n.insertAt(g + 1, u);
|
|
2628
2628
|
break;
|
|
2629
2629
|
}
|
|
2630
2630
|
t.requestUpdate();
|
|
2631
2631
|
};
|
|
2632
2632
|
function Us(i, t, e, n) {
|
|
2633
|
-
let
|
|
2633
|
+
let r = [], o = null;
|
|
2634
2634
|
i._sortable = w.create(i, {
|
|
2635
2635
|
handle: ".drag-handle",
|
|
2636
2636
|
filter: ".drag-handle.disabled",
|
|
2637
2637
|
swapThreshold: 0.5,
|
|
2638
2638
|
animation: 150,
|
|
2639
2639
|
easing: "cubic-bezier(1, 0, 0, 1)",
|
|
2640
|
-
onStart: (s) =>
|
|
2640
|
+
onStart: (s) => r = ks(s),
|
|
2641
2641
|
onMove: (s) => {
|
|
2642
|
-
|
|
2642
|
+
o = s.related;
|
|
2643
2643
|
},
|
|
2644
|
-
onEnd: (s) =>
|
|
2644
|
+
onEnd: (s) => Bs(s, n, r, t, e, o)
|
|
2645
2645
|
});
|
|
2646
2646
|
}
|
|
2647
2647
|
function Fs(i, t, e, n) {
|
|
2648
|
-
const
|
|
2649
|
-
let
|
|
2650
|
-
|
|
2648
|
+
const r = i.getArray();
|
|
2649
|
+
let o = !1;
|
|
2650
|
+
r.forEach((s) => {
|
|
2651
2651
|
const a = s.ol_uid;
|
|
2652
|
-
s.get(t) || (s.set(t, a),
|
|
2652
|
+
s.get(t) || (s.set(t, a), o = !0), s.get(e) || (s.set(e, `layer ${a}`), o = !0), o && n.requestUpdate();
|
|
2653
2653
|
});
|
|
2654
2654
|
}
|
|
2655
2655
|
function fn(i, t, e) {
|
|
2656
2656
|
let n = [];
|
|
2657
|
-
const
|
|
2657
|
+
const r = (o, s, a) => {
|
|
2658
2658
|
n = [
|
|
2659
2659
|
...n,
|
|
2660
|
-
...
|
|
2660
|
+
...o.filter((d) => d.get(s) === a)
|
|
2661
2661
|
];
|
|
2662
|
-
const l =
|
|
2662
|
+
const l = o.filter(
|
|
2663
2663
|
(d) => (
|
|
2664
2664
|
/** @type {import("ol/layer").Group} */
|
|
2665
2665
|
d.getLayers
|
|
@@ -2668,50 +2668,50 @@ function fn(i, t, e) {
|
|
|
2668
2668
|
return l.length > 0 && l.forEach(
|
|
2669
2669
|
(d) => (
|
|
2670
2670
|
// @ts-expect-error TODO
|
|
2671
|
-
|
|
2671
|
+
r(d.getLayers().getArray(), s, a)
|
|
2672
2672
|
)
|
|
2673
2673
|
), n;
|
|
2674
2674
|
};
|
|
2675
|
-
return
|
|
2675
|
+
return r(i, t, e), n;
|
|
2676
2676
|
}
|
|
2677
2677
|
function js(i, t, e) {
|
|
2678
2678
|
if (!i || !t) return !1;
|
|
2679
|
-
if (!
|
|
2680
|
-
const n = i.get("minZoom"),
|
|
2681
|
-
return
|
|
2679
|
+
if (!_r(i, e)) return !0;
|
|
2680
|
+
const n = i.get("minZoom"), r = i.get("maxZoom"), o = t.getView().getZoom();
|
|
2681
|
+
return o > n && o < r;
|
|
2682
2682
|
}
|
|
2683
|
-
function
|
|
2683
|
+
function _r(i, t) {
|
|
2684
2684
|
const e = i.get("minZoom"), n = i.get("maxZoom");
|
|
2685
2685
|
return !!(t && (e !== -1 / 0 || n !== 1 / 0));
|
|
2686
2686
|
}
|
|
2687
2687
|
function zs(i, t) {
|
|
2688
|
-
var
|
|
2689
|
-
return !i || !t ? void 0 : i.getLayers ? "group" : ((s = (
|
|
2688
|
+
var r, o, s;
|
|
2689
|
+
return !i || !t ? void 0 : i.getLayers ? "group" : ((s = (r = t.getInteractions().getArray().filter((a) => a.freehand_ !== void 0).map((a) => a.source_)) == null ? void 0 : r.ol_uid) == null ? void 0 : s.includes(
|
|
2690
2690
|
// @ts-expect-error TODO
|
|
2691
|
-
i.getSource ? (
|
|
2691
|
+
i.getSource ? (o = i.getSource()) == null ? void 0 : o.ol_uid : void 0
|
|
2692
2692
|
)) ? "draw" : i.declutter_ !== void 0 ? "vector" : "raster";
|
|
2693
2693
|
}
|
|
2694
2694
|
const Zs = (i, t, e) => {
|
|
2695
2695
|
let n = t;
|
|
2696
2696
|
return e.layer.getSource().getTileUrlFunction() && (n || (n = e.layer.getSource().getTileUrlFunction()), e.layer.getSource().setTileUrlFunction(
|
|
2697
|
-
(...
|
|
2697
|
+
(...r) => ps(n(...r), i)
|
|
2698
2698
|
), e.layer.getSource().setKey(/* @__PURE__ */ new Date())), n;
|
|
2699
2699
|
};
|
|
2700
2700
|
function qs(i, t, e) {
|
|
2701
|
-
const n = "updateStyleVariables" in t,
|
|
2701
|
+
const n = "updateStyleVariables" in t, r = "setStyle" in t, o = n ? (
|
|
2702
2702
|
/** @type {import('ol/layer/WebGLTile').default} */
|
|
2703
2703
|
t.style_
|
|
2704
2704
|
) : e.style;
|
|
2705
|
-
let s =
|
|
2705
|
+
let s = o == null ? void 0 : o.variables;
|
|
2706
2706
|
if (s) {
|
|
2707
2707
|
const a = gn(i);
|
|
2708
|
-
if (
|
|
2708
|
+
if (o.variables = {
|
|
2709
2709
|
...s,
|
|
2710
2710
|
...a
|
|
2711
2711
|
}, n)
|
|
2712
2712
|
t.updateStyleVariables(a);
|
|
2713
|
-
else if (
|
|
2714
|
-
const l = Xs(
|
|
2713
|
+
else if (r) {
|
|
2714
|
+
const l = Xs(o);
|
|
2715
2715
|
t.setStyle(
|
|
2716
2716
|
l
|
|
2717
2717
|
);
|
|
@@ -2726,8 +2726,8 @@ const gn = (i) => {
|
|
|
2726
2726
|
/** @type {Record<string,any>} */
|
|
2727
2727
|
i[e]
|
|
2728
2728
|
);
|
|
2729
|
-
for (const
|
|
2730
|
-
t[
|
|
2729
|
+
for (const r in n)
|
|
2730
|
+
t[r] = n == null ? void 0 : n[r];
|
|
2731
2731
|
} else
|
|
2732
2732
|
t[e] = i == null ? void 0 : i[e];
|
|
2733
2733
|
return t;
|
|
@@ -2737,10 +2737,10 @@ function Xs(i) {
|
|
|
2737
2737
|
if ("variables" in i) {
|
|
2738
2738
|
let e = JSON.stringify(i);
|
|
2739
2739
|
const { variables: n } = i;
|
|
2740
|
-
for (const
|
|
2741
|
-
typeof n[
|
|
2742
|
-
`["var","${
|
|
2743
|
-
`"${n[
|
|
2740
|
+
for (const r in n)
|
|
2741
|
+
typeof n[r] == "number" ? e = e.replaceAll(`["var","${r}"]`, n[r]) : e = e.replaceAll(
|
|
2742
|
+
`["var","${r}"]`,
|
|
2743
|
+
`"${n[r]}"`
|
|
2744
2744
|
);
|
|
2745
2745
|
t = JSON.parse(e);
|
|
2746
2746
|
}
|
|
@@ -2750,53 +2750,53 @@ const Ys = (i, t) => {
|
|
|
2750
2750
|
var e;
|
|
2751
2751
|
if (i)
|
|
2752
2752
|
return !("domainProperties" in i) || "domain" in i ? { ...i } : (e = Object.keys(i)) == null ? void 0 : e.reduce(
|
|
2753
|
-
(n,
|
|
2754
|
-
if (
|
|
2755
|
-
const
|
|
2756
|
-
n.domain = i[
|
|
2753
|
+
(n, r) => {
|
|
2754
|
+
if (r === "domainProperties") {
|
|
2755
|
+
const o = gn(t);
|
|
2756
|
+
n.domain = i[r].map((s) => o[s]);
|
|
2757
2757
|
} else
|
|
2758
|
-
n[
|
|
2758
|
+
n[r] = i[r];
|
|
2759
2759
|
return n;
|
|
2760
2760
|
},
|
|
2761
2761
|
/** @type {import("../components/layer-legend").LegendConfig} */
|
|
2762
2762
|
{}
|
|
2763
2763
|
);
|
|
2764
2764
|
};
|
|
2765
|
-
function
|
|
2765
|
+
function Cr(i, t) {
|
|
2766
2766
|
var n;
|
|
2767
2767
|
let e = {};
|
|
2768
|
-
for (const
|
|
2769
|
-
const
|
|
2770
|
-
if (
|
|
2771
|
-
e[
|
|
2772
|
-
else if (typeof i[
|
|
2773
|
-
const s =
|
|
2774
|
-
i[
|
|
2768
|
+
for (const r in i) {
|
|
2769
|
+
const o = i[r].type;
|
|
2770
|
+
if (o && o !== "object")
|
|
2771
|
+
e[r] = o === "number" ? Number(t[r]) : t[r];
|
|
2772
|
+
else if (typeof i[r] == "object" && ((n = i[r]) != null && n.properties)) {
|
|
2773
|
+
const s = Cr(
|
|
2774
|
+
i[r].properties,
|
|
2775
2775
|
t
|
|
2776
2776
|
);
|
|
2777
|
-
Object.keys(s).length > 0 && (e[
|
|
2777
|
+
Object.keys(s).length > 0 && (e[r] = s);
|
|
2778
2778
|
}
|
|
2779
2779
|
}
|
|
2780
2780
|
return e;
|
|
2781
2781
|
}
|
|
2782
2782
|
function Ws(i, t) {
|
|
2783
|
-
var
|
|
2783
|
+
var o, s, a, l, d;
|
|
2784
2784
|
if (!t) return null;
|
|
2785
2785
|
let e = {}, n = "updateStyleVariables" in i ? (
|
|
2786
2786
|
/** @type {import("ol/layer/WebGLTile").default} */
|
|
2787
|
-
(
|
|
2787
|
+
(o = i.style_) == null ? void 0 : o.variables
|
|
2788
2788
|
) : (s = t.style) == null ? void 0 : s.variables;
|
|
2789
2789
|
if ((t.type === "style" || t.style) && n)
|
|
2790
2790
|
e = n;
|
|
2791
2791
|
else if ((l = (a = i.getSource()) == null ? void 0 : a.getTileUrlFunction) != null && l.call(a)) {
|
|
2792
|
-
const
|
|
2793
|
-
e = Object.fromEntries(
|
|
2792
|
+
const u = new URL(i.getSource().getTileUrlFunction()([0, 0, 0]));
|
|
2793
|
+
e = Object.fromEntries(u.searchParams.entries());
|
|
2794
2794
|
} else return null;
|
|
2795
|
-
const
|
|
2795
|
+
const r = Cr(
|
|
2796
2796
|
((d = t.schema) == null ? void 0 : d.properties) || t.schema,
|
|
2797
2797
|
e
|
|
2798
2798
|
);
|
|
2799
|
-
return Object.keys(
|
|
2799
|
+
return Object.keys(r).length ? r : null;
|
|
2800
2800
|
}
|
|
2801
2801
|
const Gs = (i, t) => i == null ? void 0 : i.filter(
|
|
2802
2802
|
(e) => ["remove", "sort"].filter((n) => t != null && t.get("layerControlDisable") ? n !== "sort" : !0).includes(e)
|
|
@@ -2824,20 +2824,20 @@ const Gs = (i, t) => i == null ? void 0 : i.filter(
|
|
|
2824
2824
|
<span class="button sort-icon icon drag-handle">
|
|
2825
2825
|
${i ? "═" : O}
|
|
2826
2826
|
</span>
|
|
2827
|
-
`,
|
|
2827
|
+
`, Tr = (i) => {
|
|
2828
2828
|
var e;
|
|
2829
2829
|
const t = ["layerControlHide", "layerControlOptional"];
|
|
2830
|
-
return (e = i == null ? void 0 : i.getArray()) == null ? void 0 : e.filter((n) => t.every((
|
|
2830
|
+
return (e = i == null ? void 0 : i.getArray()) == null ? void 0 : e.filter((n) => t.every((r) => !n.get(r)));
|
|
2831
2831
|
};
|
|
2832
2832
|
/**
|
|
2833
2833
|
* @license
|
|
2834
2834
|
* Copyright 2020 Google LLC
|
|
2835
2835
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2836
2836
|
*/
|
|
2837
|
-
const
|
|
2837
|
+
const Dr = sn(class extends an {
|
|
2838
2838
|
constructor(i) {
|
|
2839
2839
|
if (super(i), i.type !== Mt.PROPERTY && i.type !== Mt.ATTRIBUTE && i.type !== Mt.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
|
|
2840
|
-
if (!
|
|
2840
|
+
if (!go(i)) throw Error("`live` bindings can only contain a single expression");
|
|
2841
2841
|
}
|
|
2842
2842
|
render(i) {
|
|
2843
2843
|
return i;
|
|
@@ -2850,7 +2850,7 @@ const Po = sn(class extends an {
|
|
|
2850
2850
|
} else if (i.type === Mt.BOOLEAN_ATTRIBUTE) {
|
|
2851
2851
|
if (!!t === e.hasAttribute(n)) return vt;
|
|
2852
2852
|
} else if (i.type === Mt.ATTRIBUTE && e.getAttribute(n) === t + "") return vt;
|
|
2853
|
-
return
|
|
2853
|
+
return nr(i), t;
|
|
2854
2854
|
}
|
|
2855
2855
|
});
|
|
2856
2856
|
/**
|
|
@@ -2885,77 +2885,77 @@ function* Ye(i, t) {
|
|
|
2885
2885
|
for (const n of i) yield t(n, e++);
|
|
2886
2886
|
}
|
|
2887
2887
|
}
|
|
2888
|
-
var
|
|
2889
|
-
function
|
|
2888
|
+
var kt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2889
|
+
function Pr(i) {
|
|
2890
2890
|
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
2891
2891
|
}
|
|
2892
|
-
var zi,
|
|
2892
|
+
var zi, kn;
|
|
2893
2893
|
function ia() {
|
|
2894
|
-
if (
|
|
2895
|
-
|
|
2896
|
-
var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g,
|
|
2897
|
-
return
|
|
2894
|
+
if (kn) return zi;
|
|
2895
|
+
kn = 1;
|
|
2896
|
+
var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, r = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, s = /^0o[0-7]+$/i, a = parseInt, l = typeof kt == "object" && kt && kt.Object === Object && kt, d = typeof self == "object" && self && self.Object === Object && self, u = l || d || Function("return this")(), c = Object.prototype, p = c.toString, f = Math.max, g = Math.min, b = function() {
|
|
2897
|
+
return u.Date.now();
|
|
2898
2898
|
};
|
|
2899
|
-
function N(m,
|
|
2900
|
-
var L, q, X, H, R, Z, dt = 0, tt = !1,
|
|
2899
|
+
function N(m, A, M) {
|
|
2900
|
+
var L, q, X, H, R, Z, dt = 0, tt = !1, ct = !1, gt = !0;
|
|
2901
2901
|
if (typeof m != "function")
|
|
2902
2902
|
throw new TypeError(i);
|
|
2903
|
-
|
|
2903
|
+
A = $(A) || 0, U(M) && (tt = !!M.leading, ct = "maxWait" in M, X = ct ? f($(M.maxWait) || 0, A) : X, gt = "trailing" in M ? !!M.trailing : gt);
|
|
2904
2904
|
function Ut(I) {
|
|
2905
|
-
var
|
|
2906
|
-
return L = q = void 0, dt = I, H = m.apply(Rt,
|
|
2905
|
+
var ut = L, Rt = q;
|
|
2906
|
+
return L = q = void 0, dt = I, H = m.apply(Rt, ut), H;
|
|
2907
2907
|
}
|
|
2908
2908
|
function Ie(I) {
|
|
2909
|
-
return dt = I, R = setTimeout(jt,
|
|
2909
|
+
return dt = I, R = setTimeout(jt, A), tt ? Ut(I) : H;
|
|
2910
2910
|
}
|
|
2911
2911
|
function Ft(I) {
|
|
2912
|
-
var
|
|
2913
|
-
return
|
|
2912
|
+
var ut = I - Z, Rt = I - dt, mn = A - ut;
|
|
2913
|
+
return ct ? g(mn, X - Rt) : mn;
|
|
2914
2914
|
}
|
|
2915
|
-
function
|
|
2916
|
-
var
|
|
2917
|
-
return Z === void 0 ||
|
|
2915
|
+
function At(I) {
|
|
2916
|
+
var ut = I - Z, Rt = I - dt;
|
|
2917
|
+
return Z === void 0 || ut >= A || ut < 0 || ct && Rt >= X;
|
|
2918
2918
|
}
|
|
2919
2919
|
function jt() {
|
|
2920
2920
|
var I = b();
|
|
2921
|
-
if (
|
|
2921
|
+
if (At(I))
|
|
2922
2922
|
return Ne(I);
|
|
2923
2923
|
R = setTimeout(jt, Ft(I));
|
|
2924
2924
|
}
|
|
2925
2925
|
function Ne(I) {
|
|
2926
2926
|
return R = void 0, gt && L ? Ut(I) : (L = q = void 0, H);
|
|
2927
2927
|
}
|
|
2928
|
-
function
|
|
2928
|
+
function _i() {
|
|
2929
2929
|
R !== void 0 && clearTimeout(R), dt = 0, L = Z = q = R = void 0;
|
|
2930
2930
|
}
|
|
2931
2931
|
function he() {
|
|
2932
2932
|
return R === void 0 ? H : Ne(b());
|
|
2933
2933
|
}
|
|
2934
|
-
function
|
|
2935
|
-
var I = b(),
|
|
2936
|
-
if (L = arguments, q = this, Z = I,
|
|
2934
|
+
function k() {
|
|
2935
|
+
var I = b(), ut = At(I);
|
|
2936
|
+
if (L = arguments, q = this, Z = I, ut) {
|
|
2937
2937
|
if (R === void 0)
|
|
2938
2938
|
return Ie(Z);
|
|
2939
|
-
if (
|
|
2940
|
-
return R = setTimeout(jt,
|
|
2939
|
+
if (ct)
|
|
2940
|
+
return R = setTimeout(jt, A), Ut(Z);
|
|
2941
2941
|
}
|
|
2942
|
-
return R === void 0 && (R = setTimeout(jt,
|
|
2942
|
+
return R === void 0 && (R = setTimeout(jt, A)), H;
|
|
2943
2943
|
}
|
|
2944
|
-
return
|
|
2944
|
+
return k.cancel = _i, k.flush = he, k;
|
|
2945
2945
|
}
|
|
2946
|
-
function J(m,
|
|
2946
|
+
function J(m, A, M) {
|
|
2947
2947
|
var L = !0, q = !0;
|
|
2948
2948
|
if (typeof m != "function")
|
|
2949
2949
|
throw new TypeError(i);
|
|
2950
|
-
return U(M) && (L = "leading" in M ? !!M.leading : L, q = "trailing" in M ? !!M.trailing : q), N(m,
|
|
2950
|
+
return U(M) && (L = "leading" in M ? !!M.leading : L, q = "trailing" in M ? !!M.trailing : q), N(m, A, {
|
|
2951
2951
|
leading: L,
|
|
2952
|
-
maxWait:
|
|
2952
|
+
maxWait: A,
|
|
2953
2953
|
trailing: q
|
|
2954
2954
|
});
|
|
2955
2955
|
}
|
|
2956
2956
|
function U(m) {
|
|
2957
|
-
var
|
|
2958
|
-
return !!m && (
|
|
2957
|
+
var A = typeof m;
|
|
2958
|
+
return !!m && (A == "object" || A == "function");
|
|
2959
2959
|
}
|
|
2960
2960
|
function st(m) {
|
|
2961
2961
|
return !!m && typeof m == "object";
|
|
@@ -2969,27 +2969,27 @@ function ia() {
|
|
|
2969
2969
|
if (K(m))
|
|
2970
2970
|
return t;
|
|
2971
2971
|
if (U(m)) {
|
|
2972
|
-
var
|
|
2973
|
-
m = U(
|
|
2972
|
+
var A = typeof m.valueOf == "function" ? m.valueOf() : m;
|
|
2973
|
+
m = U(A) ? A + "" : A;
|
|
2974
2974
|
}
|
|
2975
2975
|
if (typeof m != "string")
|
|
2976
2976
|
return m === 0 ? m : +m;
|
|
2977
2977
|
m = m.replace(n, "");
|
|
2978
|
-
var M =
|
|
2979
|
-
return M || s.test(m) ? a(m.slice(2), M ? 2 : 8) :
|
|
2978
|
+
var M = o.test(m);
|
|
2979
|
+
return M || s.test(m) ? a(m.slice(2), M ? 2 : 8) : r.test(m) ? t : +m;
|
|
2980
2980
|
}
|
|
2981
2981
|
return zi = J, zi;
|
|
2982
2982
|
}
|
|
2983
2983
|
var na = ia();
|
|
2984
|
-
const
|
|
2984
|
+
const Bn = /* @__PURE__ */ Pr(na);
|
|
2985
2985
|
/**
|
|
2986
2986
|
* @license
|
|
2987
2987
|
* Copyright 2018 Google LLC
|
|
2988
2988
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2989
2989
|
*/
|
|
2990
2990
|
const Ue = (i) => i ?? O;
|
|
2991
|
-
var ni,
|
|
2992
|
-
class
|
|
2991
|
+
var ni, ri;
|
|
2992
|
+
class Or extends lt {
|
|
2993
2993
|
constructor() {
|
|
2994
2994
|
super();
|
|
2995
2995
|
P(this, ni, qn`
|
|
@@ -3002,7 +3002,7 @@ class Lo extends lt {
|
|
|
3002
3002
|
--cle-padding: 0;
|
|
3003
3003
|
}
|
|
3004
3004
|
`);
|
|
3005
|
-
P(this,
|
|
3005
|
+
P(this, ri, "");
|
|
3006
3006
|
this.unstyled = !1, this.noShadow = !1, this.layerLegend = null, this.layer = null;
|
|
3007
3007
|
}
|
|
3008
3008
|
/**
|
|
@@ -3025,7 +3025,7 @@ class Lo extends lt {
|
|
|
3025
3025
|
), x`
|
|
3026
3026
|
<style>
|
|
3027
3027
|
${T(this, ni)}
|
|
3028
|
-
${!this.unstyled && T(this,
|
|
3028
|
+
${!this.unstyled && T(this, ri)}
|
|
3029
3029
|
</style>
|
|
3030
3030
|
${G(
|
|
3031
3031
|
this.layerLegend,
|
|
@@ -3053,8 +3053,8 @@ class Lo extends lt {
|
|
|
3053
3053
|
`;
|
|
3054
3054
|
}
|
|
3055
3055
|
}
|
|
3056
|
-
ni = new WeakMap(),
|
|
3057
|
-
F(
|
|
3056
|
+
ni = new WeakMap(), ri = new WeakMap(), // Define static properties for the component
|
|
3057
|
+
F(Or, "properties", {
|
|
3058
3058
|
unstyled: { type: Boolean },
|
|
3059
3059
|
noShadow: { type: Boolean },
|
|
3060
3060
|
layerLegend: { attribute: !1 },
|
|
@@ -3062,10 +3062,10 @@ F(Lo, "properties", {
|
|
|
3062
3062
|
});
|
|
3063
3063
|
customElements.define(
|
|
3064
3064
|
"eox-layercontrol-layer-legend",
|
|
3065
|
-
|
|
3065
|
+
Or
|
|
3066
3066
|
);
|
|
3067
|
-
var
|
|
3068
|
-
class
|
|
3067
|
+
var _t, le, De, Pe, Ki, oi, si;
|
|
3068
|
+
class Lr extends lt {
|
|
3069
3069
|
constructor() {
|
|
3070
3070
|
super();
|
|
3071
3071
|
P(this, Pe);
|
|
@@ -3074,7 +3074,7 @@ class Ro extends lt {
|
|
|
3074
3074
|
*
|
|
3075
3075
|
* @type {{[key: string]: any}}
|
|
3076
3076
|
*/
|
|
3077
|
-
P(this,
|
|
3077
|
+
P(this, _t, {});
|
|
3078
3078
|
/**
|
|
3079
3079
|
* data input by the user
|
|
3080
3080
|
*
|
|
@@ -3087,7 +3087,7 @@ class Ro extends lt {
|
|
|
3087
3087
|
* @type {Function}
|
|
3088
3088
|
*/
|
|
3089
3089
|
P(this, De);
|
|
3090
|
-
P(this,
|
|
3090
|
+
P(this, oi, qn`
|
|
3091
3091
|
color-legend {
|
|
3092
3092
|
--cle-background: transparent;
|
|
3093
3093
|
--cle-font-family: inherit;
|
|
@@ -3097,7 +3097,7 @@ class Ro extends lt {
|
|
|
3097
3097
|
}
|
|
3098
3098
|
`);
|
|
3099
3099
|
P(this, si, "");
|
|
3100
|
-
this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange =
|
|
3100
|
+
this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange = Bn(j(this, Pe, Ki), 1e3);
|
|
3101
3101
|
}
|
|
3102
3102
|
/** Decide what type of throttling to do based on layerConfig type
|
|
3103
3103
|
*
|
|
@@ -3106,7 +3106,7 @@ class Ro extends lt {
|
|
|
3106
3106
|
updated(e) {
|
|
3107
3107
|
if (e.has("layerConfig")) {
|
|
3108
3108
|
const n = this.layerConfig.type === "style" || this.layerConfig.style ? 100 : 1e3;
|
|
3109
|
-
this.throttleDataChange =
|
|
3109
|
+
this.throttleDataChange = Bn(j(this, Pe, Ki), n), this.requestUpdate();
|
|
3110
3110
|
}
|
|
3111
3111
|
}
|
|
3112
3112
|
/**
|
|
@@ -3119,7 +3119,7 @@ class Ro extends lt {
|
|
|
3119
3119
|
* Renders a JSON form for configuration options of a layer.
|
|
3120
3120
|
*/
|
|
3121
3121
|
render() {
|
|
3122
|
-
Qt(this, le, Ws(this.layer, this.layerConfig)), Object.keys(T(this,
|
|
3122
|
+
Qt(this, le, Ws(this.layer, this.layerConfig)), Object.keys(T(this, _t)).length !== 0 && Qt(this, le, T(this, _t)), customElements.get("eox-jsonform") || console.error("Please import @eox/jsonform in order to use layerconfig");
|
|
3123
3123
|
const e = {
|
|
3124
3124
|
disable_edit_json: !0,
|
|
3125
3125
|
disable_collapse: !0,
|
|
@@ -3127,7 +3127,7 @@ class Ro extends lt {
|
|
|
3127
3127
|
};
|
|
3128
3128
|
return x`
|
|
3129
3129
|
<style>
|
|
3130
|
-
${T(this,
|
|
3130
|
+
${T(this, oi)}
|
|
3131
3131
|
${!this.unstyled && T(this, si)}
|
|
3132
3132
|
</style>
|
|
3133
3133
|
${G(
|
|
@@ -3142,7 +3142,7 @@ class Ro extends lt {
|
|
|
3142
3142
|
.layer=${this.layer}
|
|
3143
3143
|
.layerLegend=${Ys(
|
|
3144
3144
|
this.layerConfig.legend,
|
|
3145
|
-
T(this,
|
|
3145
|
+
T(this, _t)
|
|
3146
3146
|
)}
|
|
3147
3147
|
></eox-layercontrol-layer-legend>
|
|
3148
3148
|
`
|
|
@@ -3159,21 +3159,21 @@ class Ro extends lt {
|
|
|
3159
3159
|
`;
|
|
3160
3160
|
}
|
|
3161
3161
|
}
|
|
3162
|
-
|
|
3162
|
+
_t = new WeakMap(), le = new WeakMap(), De = new WeakMap(), Pe = new WeakSet(), /**
|
|
3163
3163
|
* Handles changes in eox-jsonform values.
|
|
3164
3164
|
*
|
|
3165
3165
|
* @param {{ detail: { value: string; }; }} e
|
|
3166
3166
|
*/
|
|
3167
3167
|
Ki = function(e) {
|
|
3168
|
-
Qt(this,
|
|
3168
|
+
Qt(this, _t, e.detail), this.layerConfig.type === "style" || this.layerConfig.style ? "setStyle" in this.layer || "updateStyleVariables" in this.layer ? qs(T(this, _t), this.layer, this.layerConfig) : console.error(
|
|
3169
3169
|
`Layer type ${this.layer.get("type") ?? ""} does not support styles configuration`
|
|
3170
3170
|
) : Qt(this, De, Zs(
|
|
3171
|
-
T(this,
|
|
3171
|
+
T(this, _t),
|
|
3172
3172
|
T(this, De),
|
|
3173
3173
|
this
|
|
3174
3174
|
)), this.requestUpdate();
|
|
3175
|
-
},
|
|
3176
|
-
F(
|
|
3175
|
+
}, oi = new WeakMap(), si = new WeakMap(), // Define static properties for the component
|
|
3176
|
+
F(Lr, "properties", {
|
|
3177
3177
|
layer: { attribute: !1 },
|
|
3178
3178
|
unstyled: { type: Boolean },
|
|
3179
3179
|
noShadow: { type: Boolean },
|
|
@@ -3181,10 +3181,10 @@ F(Ro, "properties", {
|
|
|
3181
3181
|
});
|
|
3182
3182
|
customElements.define(
|
|
3183
3183
|
"eox-layercontrol-layerconfig",
|
|
3184
|
-
|
|
3184
|
+
Lr
|
|
3185
3185
|
);
|
|
3186
|
-
var ai,
|
|
3187
|
-
class
|
|
3186
|
+
var ai, Mr, li, di;
|
|
3187
|
+
class Rr extends lt {
|
|
3188
3188
|
constructor() {
|
|
3189
3189
|
super();
|
|
3190
3190
|
P(this, ai);
|
|
@@ -3217,12 +3217,14 @@ class Mo extends lt {
|
|
|
3217
3217
|
?unstyled=${this.unstyled}
|
|
3218
3218
|
.for=${void 0}
|
|
3219
3219
|
.layer=${void 0}
|
|
3220
|
+
.navigation=${this.layerDatetime.navigation ?? !1}
|
|
3220
3221
|
.slider=${this.layerDatetime.slider ?? !1}
|
|
3221
|
-
.
|
|
3222
|
+
.play=${this.layerDatetime.play ?? !1}
|
|
3222
3223
|
.controlValues=${this.layerDatetime.controlValues}
|
|
3223
3224
|
.controlProperty=${void 0}
|
|
3224
3225
|
current-step=${this.layerDatetime.currentStep}
|
|
3225
|
-
|
|
3226
|
+
.displayFormat=${this.layerDatetime.displayFormat}
|
|
3227
|
+
@stepchange=${j(this, ai, Mr)}
|
|
3226
3228
|
></eox-timecontrol>
|
|
3227
3229
|
`
|
|
3228
3230
|
)}
|
|
@@ -3235,7 +3237,7 @@ ai = new WeakSet(), /**
|
|
|
3235
3237
|
*
|
|
3236
3238
|
* @param {CustomEvent<{currentStep:string|number}>} evt
|
|
3237
3239
|
**/
|
|
3238
|
-
|
|
3240
|
+
Mr = function(e) {
|
|
3239
3241
|
this.dispatchEvent(
|
|
3240
3242
|
new CustomEvent("datetime:updated", {
|
|
3241
3243
|
bubbles: !0,
|
|
@@ -3246,7 +3248,7 @@ Io = function(e) {
|
|
|
3246
3248
|
})
|
|
3247
3249
|
), this.layerDatetime.currentStep = e.detail.currentStep, this.requestUpdate();
|
|
3248
3250
|
}, li = new WeakMap(), di = new WeakMap(), // Define static properties for the component
|
|
3249
|
-
F(
|
|
3251
|
+
F(Rr, "properties", {
|
|
3250
3252
|
unstyled: { type: Boolean },
|
|
3251
3253
|
noShadow: { type: Boolean },
|
|
3252
3254
|
layerDatetime: { attribute: !1 },
|
|
@@ -3254,15 +3256,15 @@ F(Mo, "properties", {
|
|
|
3254
3256
|
});
|
|
3255
3257
|
customElements.define(
|
|
3256
3258
|
"eox-layercontrol-layer-datetime",
|
|
3257
|
-
|
|
3259
|
+
Rr
|
|
3258
3260
|
);
|
|
3259
|
-
var Oe,
|
|
3260
|
-
class
|
|
3261
|
+
var Oe, ci, ui;
|
|
3262
|
+
class Ir extends lt {
|
|
3261
3263
|
constructor() {
|
|
3262
3264
|
super();
|
|
3263
3265
|
/** @param {number} index */
|
|
3264
3266
|
P(this, Oe, (e) => (this.selectedTab === e || this.toolsAsList) && "highlighted");
|
|
3265
|
-
P(this,
|
|
3267
|
+
P(this, ci, `
|
|
3266
3268
|
.tabbed figure,
|
|
3267
3269
|
.listed figure {
|
|
3268
3270
|
margin: 0;
|
|
@@ -3284,12 +3286,8 @@ class No extends lt {
|
|
|
3284
3286
|
.listed .tab.highlighted {
|
|
3285
3287
|
display: block;
|
|
3286
3288
|
}
|
|
3287
|
-
.tabbed label.highlighted,
|
|
3288
|
-
.listed label.highlighted {
|
|
3289
|
-
background: lightgrey;
|
|
3290
|
-
}
|
|
3291
3289
|
`);
|
|
3292
|
-
P(this,
|
|
3290
|
+
P(this, ui, `
|
|
3293
3291
|
.listed label {
|
|
3294
3292
|
display: flex;
|
|
3295
3293
|
justify-content: start;
|
|
@@ -3307,7 +3305,9 @@ class No extends lt {
|
|
|
3307
3305
|
font-size: small;
|
|
3308
3306
|
}
|
|
3309
3307
|
.tabbed label.highlighted {
|
|
3310
|
-
|
|
3308
|
+
border: 1px solid #0041701a;
|
|
3309
|
+
border-radius: 2px;
|
|
3310
|
+
border-bottom: none;
|
|
3311
3311
|
pointer-events: none;
|
|
3312
3312
|
}
|
|
3313
3313
|
nav div label,
|
|
@@ -3321,8 +3321,9 @@ class No extends lt {
|
|
|
3321
3321
|
}
|
|
3322
3322
|
figure {
|
|
3323
3323
|
background: var(--background-color);
|
|
3324
|
-
border
|
|
3325
|
-
|
|
3324
|
+
border: 1px solid #0041701a;
|
|
3325
|
+
border-radius: 2px;
|
|
3326
|
+
padding: var(--padding-vertical) var(--padding);
|
|
3326
3327
|
}
|
|
3327
3328
|
`);
|
|
3328
3329
|
this.actions = [], this.selectedTab = 0, this.tabs = [], this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1;
|
|
@@ -3338,16 +3339,16 @@ class No extends lt {
|
|
|
3338
3339
|
* It sets up navigation for switching between tabs and offers customizable icons for tabs and actions.
|
|
3339
3340
|
*/
|
|
3340
3341
|
render() {
|
|
3341
|
-
const e = this.tabs, n = this.actions,
|
|
3342
|
+
const e = this.tabs, n = this.actions, r = n.length + e.length > 1;
|
|
3342
3343
|
return x`
|
|
3343
3344
|
<style>
|
|
3344
|
-
${T(this,
|
|
3345
|
-
${!this.unstyled && T(this,
|
|
3345
|
+
${T(this, ci)}
|
|
3346
|
+
${!this.unstyled && T(this, ui)}
|
|
3346
3347
|
</style>
|
|
3347
3348
|
<div class="${this.toolsAsList ? "listed" : "tabbed"}">
|
|
3348
3349
|
<!-- Navigation for tabs and actions -->
|
|
3349
3350
|
${G(
|
|
3350
|
-
|
|
3351
|
+
r,
|
|
3351
3352
|
() => x`
|
|
3352
3353
|
<nav>
|
|
3353
3354
|
${G(
|
|
@@ -3357,13 +3358,13 @@ class No extends lt {
|
|
|
3357
3358
|
<!-- Labels for tabs -->
|
|
3358
3359
|
${Ye(
|
|
3359
3360
|
e,
|
|
3360
|
-
(
|
|
3361
|
+
(o, s) => x`
|
|
3361
3362
|
<label
|
|
3362
3363
|
class=${T(this, Oe).call(this, s)}
|
|
3363
3364
|
@click=${() => this.selectedTab = s}
|
|
3364
3365
|
>
|
|
3365
3366
|
<!-- Customizable icon for each tab -->
|
|
3366
|
-
<slot name=${`${
|
|
3367
|
+
<slot name=${`${o}-icon`}>${o}</slot>
|
|
3367
3368
|
</label>
|
|
3368
3369
|
`
|
|
3369
3370
|
)}
|
|
@@ -3372,10 +3373,10 @@ class No extends lt {
|
|
|
3372
3373
|
<!-- Icons for actions -->
|
|
3373
3374
|
${Ye(
|
|
3374
3375
|
n,
|
|
3375
|
-
(
|
|
3376
|
+
(o) => x`
|
|
3376
3377
|
<span>
|
|
3377
3378
|
<!-- Customizable icon for each action -->
|
|
3378
|
-
<slot name=${`${
|
|
3379
|
+
<slot name=${`${o}-icon`}>${o}</slot>
|
|
3379
3380
|
</span>
|
|
3380
3381
|
`
|
|
3381
3382
|
)}
|
|
@@ -3389,20 +3390,20 @@ class No extends lt {
|
|
|
3389
3390
|
<!-- Content for each tab -->
|
|
3390
3391
|
${Ye(
|
|
3391
3392
|
e,
|
|
3392
|
-
(
|
|
3393
|
+
(o, s) => x`
|
|
3393
3394
|
${G(
|
|
3394
3395
|
this.toolsAsList,
|
|
3395
3396
|
() => x`
|
|
3396
3397
|
<label>
|
|
3397
3398
|
<!-- Customizable icon for each tab -->
|
|
3398
|
-
<slot name=${`${
|
|
3399
|
-
<span>${
|
|
3399
|
+
<slot name=${`${o}-icon`}>${o}</slot>
|
|
3400
|
+
<span>${o}</span>
|
|
3400
3401
|
</label>
|
|
3401
3402
|
`
|
|
3402
3403
|
)}
|
|
3403
3404
|
<div class="tab ${T(this, Oe).call(this, s)}">
|
|
3404
3405
|
<!-- Content slot for each tab -->
|
|
3405
|
-
<slot name=${`${
|
|
3406
|
+
<slot name=${`${o}-content`}>${o}</slot>
|
|
3406
3407
|
</div>
|
|
3407
3408
|
`
|
|
3408
3409
|
)}
|
|
@@ -3411,8 +3412,8 @@ class No extends lt {
|
|
|
3411
3412
|
`;
|
|
3412
3413
|
}
|
|
3413
3414
|
}
|
|
3414
|
-
Oe = new WeakMap(),
|
|
3415
|
-
F(
|
|
3415
|
+
Oe = new WeakMap(), ci = new WeakMap(), ui = new WeakMap(), // Define static properties for the component
|
|
3416
|
+
F(Ir, "properties", {
|
|
3416
3417
|
actions: { attribute: !1 },
|
|
3417
3418
|
selectedTab: { state: !0 },
|
|
3418
3419
|
tabs: { attribute: !1 },
|
|
@@ -3420,262 +3421,10 @@ F(No, "properties", {
|
|
|
3420
3421
|
noShadow: { type: Boolean },
|
|
3421
3422
|
toolsAsList: { type: Boolean }
|
|
3422
3423
|
});
|
|
3423
|
-
customElements.define("eox-layercontrol-tools-items",
|
|
3424
|
-
const oa = `
|
|
3425
|
-
button,
|
|
3426
|
-
.button {
|
|
3427
|
-
/* TODO: why does this only work here and not from :root? */
|
|
3428
|
-
--primary-color: #004170;
|
|
3429
|
-
--primary-color-hover: #004170CC;
|
|
3430
|
-
--error-color: #FF5252;
|
|
3431
|
-
|
|
3432
|
-
display: inline-flex;
|
|
3433
|
-
position: relative;
|
|
3434
|
-
align-items: center;
|
|
3435
|
-
color: #fff;
|
|
3436
|
-
border-width: 0;
|
|
3437
|
-
outline: none;
|
|
3438
|
-
border-radius: 4px;
|
|
3439
|
-
padding: 16px;
|
|
3440
|
-
height: 36px;
|
|
3441
|
-
cursor: pointer;
|
|
3442
|
-
font-family: inherit;
|
|
3443
|
-
font-size: 0.875rem;
|
|
3444
|
-
text-transform: uppercase;
|
|
3445
|
-
letter-spacing: 1.25px;
|
|
3446
|
-
font-weight: 500;
|
|
3447
|
-
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
|
|
3448
|
-
transition-property: box-shadow, transform, opacity, background;
|
|
3449
|
-
transition-duration: 0.28s;
|
|
3450
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
3451
|
-
}
|
|
3452
|
-
|
|
3453
|
-
button:hover:not([disabled]):not(.icon),
|
|
3454
|
-
.button:hover:not([disabled]):not(.icon) {
|
|
3455
|
-
box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
|
|
3456
|
-
background: var(--primary-color-hover);
|
|
3457
|
-
}
|
|
3458
|
-
|
|
3459
|
-
button, button:active,
|
|
3460
|
-
.button, .button:active {
|
|
3461
|
-
background: var(--primary-color);
|
|
3462
|
-
}
|
|
3463
|
-
|
|
3464
|
-
button[disabled],
|
|
3465
|
-
.button[disabled] {
|
|
3466
|
-
opacity: 0.5;
|
|
3467
|
-
cursor: not-allowed;
|
|
3468
|
-
}
|
|
3469
|
-
|
|
3470
|
-
button.block,
|
|
3471
|
-
.button.block {
|
|
3472
|
-
display: block;
|
|
3473
|
-
}
|
|
3474
|
-
|
|
3475
|
-
button.outline,
|
|
3476
|
-
.button.outline {
|
|
3477
|
-
background: transparent;
|
|
3478
|
-
box-shadow: none;
|
|
3479
|
-
color: var(--primary-color);
|
|
3480
|
-
outline: 1px solid var(--primary-color);
|
|
3481
|
-
}
|
|
3482
|
-
|
|
3483
|
-
button.outline:hover,
|
|
3484
|
-
.button.outline:hover {
|
|
3485
|
-
background: transparent;
|
|
3486
|
-
}
|
|
3487
|
-
|
|
3488
|
-
button.icon,
|
|
3489
|
-
.button.icon {
|
|
3490
|
-
background: transparent;
|
|
3491
|
-
border: none;
|
|
3492
|
-
box-shadow: none;
|
|
3493
|
-
padding: 0;
|
|
3494
|
-
border-radius: 50%;
|
|
3495
|
-
width: 24px;
|
|
3496
|
-
height: 24px;
|
|
3497
|
-
text-indent: -9999px;
|
|
3498
|
-
}
|
|
3499
|
-
|
|
3500
|
-
button.icon-text,
|
|
3501
|
-
.button.icon-text {
|
|
3502
|
-
text-indent: 26px;
|
|
3503
|
-
}
|
|
3504
|
-
|
|
3505
|
-
button.icon-text.block,
|
|
3506
|
-
.button.icon-text.block {
|
|
3507
|
-
text-indent: 20px;
|
|
3508
|
-
}
|
|
3509
|
-
|
|
3510
|
-
button.icon:before, button.icon-text:before,
|
|
3511
|
-
.button.icon:before, .button.icon-text:before {
|
|
3512
|
-
position: absolute;
|
|
3513
|
-
text-indent: 0;
|
|
3514
|
-
line-height: initial;
|
|
3515
|
-
}
|
|
3516
|
-
|
|
3517
|
-
button.icon-text.block:before,
|
|
3518
|
-
.button.icon-text.block:before {
|
|
3519
|
-
text-indent: -54px;
|
|
3520
|
-
}
|
|
3521
|
-
|
|
3522
|
-
button.icon:before,
|
|
3523
|
-
.button.icon:before {
|
|
3524
|
-
width: 24px;
|
|
3525
|
-
height: 24px;
|
|
3526
|
-
margin-right: 0;
|
|
3527
|
-
}
|
|
3528
|
-
|
|
3529
|
-
button.icon-text:before,
|
|
3530
|
-
.button.icon-text:before {
|
|
3531
|
-
width: 18px;
|
|
3532
|
-
height: 18px;
|
|
3533
|
-
}
|
|
3534
|
-
|
|
3535
|
-
button.small,
|
|
3536
|
-
.button.small {
|
|
3537
|
-
height: 28px;
|
|
3538
|
-
padding: 12.4px;
|
|
3539
|
-
font-size: .75rem;
|
|
3540
|
-
}
|
|
3541
|
-
|
|
3542
|
-
button.smallest.icon,
|
|
3543
|
-
button.smallest.icon::before {
|
|
3544
|
-
height: 16px;
|
|
3545
|
-
width: 16px;
|
|
3546
|
-
padding: 0px;
|
|
3547
|
-
}
|
|
3548
|
-
`, ra = `
|
|
3549
|
-
input[type=radio] {
|
|
3550
|
-
appearance: none;
|
|
3551
|
-
-webkit-appearance: none;
|
|
3552
|
-
margin: 0;
|
|
3553
|
-
cursor: pointer;
|
|
3554
|
-
display: flex;
|
|
3555
|
-
flex-direction: row;
|
|
3556
|
-
align-items: center;
|
|
3557
|
-
width: 24px;
|
|
3558
|
-
height: 24px;
|
|
3559
|
-
}
|
|
3560
|
-
|
|
3561
|
-
label span {
|
|
3562
|
-
font-size: small;
|
|
3563
|
-
}
|
|
3564
|
-
|
|
3565
|
-
input[type=radio]:after {
|
|
3566
|
-
display: block;
|
|
3567
|
-
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%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,2Z' /%3E%3C/svg%3E");
|
|
3568
|
-
width: 20px;
|
|
3569
|
-
height: 20px;
|
|
3570
|
-
margin-right: 4px;
|
|
3571
|
-
}
|
|
3572
|
-
input[type=radio]:checked:after {
|
|
3573
|
-
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");
|
|
3574
|
-
|
|
3575
|
-
}
|
|
3576
|
-
`, Ho = `
|
|
3577
|
-
input[type=checkbox] {
|
|
3578
|
-
appearance: none;
|
|
3579
|
-
-webkit-appearance: none;
|
|
3580
|
-
margin: 0;
|
|
3581
|
-
cursor: pointer;
|
|
3582
|
-
display: flex;
|
|
3583
|
-
flex-direction: row;
|
|
3584
|
-
align-items: center;
|
|
3585
|
-
width: 24px;
|
|
3586
|
-
height: 24px;
|
|
3587
|
-
}
|
|
3588
|
-
input[type=checkbox]:after {
|
|
3589
|
-
display: block;
|
|
3590
|
-
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,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,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E");
|
|
3591
|
-
width: 20px;
|
|
3592
|
-
height: 20px;
|
|
3593
|
-
margin-right: 4px;
|
|
3594
|
-
}
|
|
3595
|
-
input[type=checkbox]:checked:after {
|
|
3596
|
-
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");
|
|
3597
|
-
|
|
3598
|
-
}
|
|
3599
|
-
`, sa = `
|
|
3600
|
-
input[type="range"] {
|
|
3601
|
-
-webkit-appearance: none;
|
|
3602
|
-
width: 90%;
|
|
3603
|
-
margin-left: 5%;
|
|
3604
|
-
height: 6px;
|
|
3605
|
-
border-radius: 5px;
|
|
3606
|
-
background: #d7dcdf;
|
|
3607
|
-
outline: none;
|
|
3608
|
-
padding: 0;
|
|
3609
|
-
}
|
|
3610
|
-
input[type="range"]::-webkit-slider-thumb {
|
|
3611
|
-
appearance: none;
|
|
3612
|
-
width: 15px;
|
|
3613
|
-
height: 15px;
|
|
3614
|
-
border-radius: 50%;
|
|
3615
|
-
background: #2c3e50;
|
|
3616
|
-
cursor: pointer;
|
|
3617
|
-
transition: background 0.15s ease-in-out;
|
|
3618
|
-
}
|
|
3619
|
-
.range-slider {
|
|
3620
|
-
margin: 60px 0 0 0;
|
|
3621
|
-
}
|
|
3622
|
-
.range-slider {
|
|
3623
|
-
width: 100%;
|
|
3624
|
-
}
|
|
3625
|
-
input[type="range"]::-webkit-slider-thumb:hover {
|
|
3626
|
-
background: #00416F;
|
|
3627
|
-
}
|
|
3628
|
-
input[type="range"]:active::-webkit-slider-thumb {
|
|
3629
|
-
background: #00416F;
|
|
3630
|
-
}
|
|
3631
|
-
input[type="range"]::-moz-range-thumb {
|
|
3632
|
-
width: 15px;
|
|
3633
|
-
height: 15px;
|
|
3634
|
-
border: 0;
|
|
3635
|
-
border-radius: 50%;
|
|
3636
|
-
background: #2c3e50;
|
|
3637
|
-
cursor: pointer;
|
|
3638
|
-
transition: background 0.15s ease-in-out;
|
|
3639
|
-
}
|
|
3640
|
-
input[type="range"]::-moz-range-thumb:hover {
|
|
3641
|
-
background: #00416F;
|
|
3642
|
-
}
|
|
3643
|
-
input[type="range"]:active::-moz-range-thumb {
|
|
3644
|
-
background: #00416F;
|
|
3645
|
-
}
|
|
3646
|
-
input[type="range"]:focus::-webkit-slider-thumb {
|
|
3647
|
-
box-shadow: 0 0 0 3px #fff0, 0 0 0 6px #00416F00;
|
|
3648
|
-
}
|
|
3649
|
-
.range-slider__value {
|
|
3650
|
-
display: inline-block;
|
|
3651
|
-
position: relative;
|
|
3652
|
-
width: 60px;
|
|
3653
|
-
color: #fff;
|
|
3654
|
-
line-height: 20px;
|
|
3655
|
-
text-align: center;
|
|
3656
|
-
border-radius: 3px;
|
|
3657
|
-
background: #2c3e50;
|
|
3658
|
-
padding: 5px 10px;
|
|
3659
|
-
margin-left: 8px;
|
|
3660
|
-
}
|
|
3661
|
-
.range-slider__value:after {
|
|
3662
|
-
position: absolute;
|
|
3663
|
-
top: 8px;
|
|
3664
|
-
left: -7px;
|
|
3665
|
-
width: 0;
|
|
3666
|
-
height: 0;
|
|
3667
|
-
border-top: 7px solid transparent;
|
|
3668
|
-
border-right: 7px solid #2c3e50;
|
|
3669
|
-
border-bottom: 7px solid transparent;
|
|
3670
|
-
content: '';
|
|
3671
|
-
}
|
|
3672
|
-
|
|
3673
|
-
input::-moz-focus-inner, input::-moz-focus-outer {
|
|
3674
|
-
border: 0;
|
|
3675
|
-
}
|
|
3676
|
-
`;
|
|
3424
|
+
customElements.define("eox-layercontrol-tools-items", Ir);
|
|
3425
|
+
const ra = "button,.button { /* TODO: why does this only work here and not from :root? */ --primary-color: #004170; --primary-color-hover: #004170cc; --error-color: #ff5252; display: inline-flex; position: relative; align-items: center; color: #fff; border-width: 0; outline: none; border-radius: 4px; padding: 16px; height: 36px; cursor: pointer; font-family: inherit; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1.25px; font-weight: 500; box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); transition-property: box-shadow, transform, opacity, background; transition-duration: 0.28s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);}button:hover:not([disabled]):not(.icon),.button:hover:not([disabled]):not(.icon) { box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); background: var(--primary-color-hover);}button,button:active,.button,.button:active { background: var(--primary-color);}button[disabled],.button[disabled] { opacity: 0.5; cursor: not-allowed;}button.block,.button.block { display: block;}button.outline,.button.outline { background: transparent; box-shadow: none; color: var(--primary-color); outline: 1px solid var(--primary-color);}button.outline:hover,.button.outline:hover { background: transparent;}button.icon,.button.icon { background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 50%; width: 24px; height: 24px; text-indent: -9999px;}button.icon-text,.button.icon-text { text-indent: 26px;}button.icon-text.block,.button.icon-text.block { text-indent: 20px;}button.icon:before,button.icon-text:before,.button.icon:before,.button.icon-text:before { position: absolute; text-indent: 0; line-height: initial;}button.icon-text.block:before,.button.icon-text.block:before { text-indent: -54px;}button.icon:before,.button.icon:before { width: 24px; height: 24px; margin-right: 0;}button.icon-text:before,.button.icon-text:before { width: 18px; height: 18px;}button.small,.button.small { height: 28px; padding: 12.4px; font-size: 0.75rem;}button.smallest.icon,button.smallest.icon::before { height: 16px; width: 16px; padding: 0px;}", oa = `input[type="radio"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}label span { font-size: small;}input[type="radio"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%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,2Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="radio"]:checked:after { 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");}`, Nr = `input[type="checkbox"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}input[type="checkbox"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,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,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="checkbox"]:checked:after { 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");}`, sa = ':root,:host { --range-slider-height: 6px; --range-slider-thumb-size: 15px; --range-slider-thumb-border-radius: 50%; --range-slider-color: #004170; --range-slider-track-color: #d7dcdf; --range-slider-track-border-radius: 0;}input[type="range"] { -webkit-appearance: none; border: none; color: var(--range-slider-color); overflow: hidden; padding-left: 0; margin-left: 7px;}/*webkit*/input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: var(--range-slider-thumb-size); height: var(--range-slider-thumb-size); border-radius: var(--range-slider-thumb-border-radius); background: var(--range-slider-color); border: none; box-shadow: none; margin-top: calc( var(--range-slider-height) * 0.5 - var(--range-slider-thumb-size) * 0.5 );}input[type="range"]::-webkit-slider-runnable-track { height: var(--range-slider-height); border: none; border-radius: var(--range-slider-track-border-radius); background: var(--range-slider-track-color); box-shadow: none;}input[type="range"]::-webkit-slider-thumb { cursor: grab; --clip-edges: 4px; --clip-top: calc( (var(--range-slider-thumb-size) - var(--range-slider-height)) * 0.5 ); --clip-bottom: calc(var(--range-slider-thumb-size) - var(--clip-top)); --clip-further: calc(100% + 1px); --box-fill: calc( -100vmax - var(--range-slider-thumb-size, var(--range-slider-thumb-size)) + 1px ) 0 0 100vmax currentColor; background: linear-gradient(currentColor 0 0) scroll no-repeat left center / 50% calc(var(--range-slider-height) + 1px); background-color: currentColor; box-shadow: var(--box-fill); border-radius: var(--range-slider-thumb-size, var(--range-slider-thumb-size)); filter: brightness(100%); clip-path: polygon( 100% -1px, var(--clip-edges) -1px, 0 var(--clip-top), -100vmax var(--clip-top), -100vmax var(--clip-bottom), 0 var(--clip-bottom), var(--clip-edges) 100%, var(--clip-further) var(--clip-further) );}/*mozilla*/input[type="range"]::-moz-range-thumb { width: var(--range-slider-thumb-size); height: var(--range-slider-thumb-size); border-radius: var(--range-slider-thumb-border-radius); background: var(--range-slider-color); border: none; box-shadow: none; cursor: grab;}input[type="range"]::-moz-range-track { border: none; border-radius: var(--range-slider-track-border-radius); background: var(--range-slider-track-color); box-shadow: none;}input[type="range"]::-moz-range-progress { appearance: none; background: currentColor; transition-delay: 30ms;}input[type="range"]::-moz-range-track,input[type="range"]::-moz-range-progress { height: calc(var(--range-slider-height)); border-radius: var(--range-slider-track-border-radius);}/*toolcool slider*/tc-range-slider { --height: var(--range-slider-height); --panel-bg: var(--range-slider-track-color); --panel-bg-hover: var(--range-slider-track-color); --panel-bg-fill: var(--range-slider-color); --panel-bg-border-radius: var(--range-slider-track-border-radius); --pointer-bg: var(--range-slider-color); --pointer-bg-hover: var(--range-slider-color); --pointer-bg-focus: var(--range-slider-color); --pointer-width: var(--range-slider-thumb-size); --pointer-height: var(--range-slider-thumb-size); --pointer-shadow: none; --pointer-shadow-hover: none; --pointer-shadow-focus: none; --pointer-border: none; --pointer-border-hover: 0; --pointer-border-focus: 0; --pointer-border-radius: var(--range-slider-thumb-border-radius);}';
|
|
3677
3426
|
var hi, pi;
|
|
3678
|
-
class
|
|
3427
|
+
class Hr extends lt {
|
|
3679
3428
|
constructor() {
|
|
3680
3429
|
super();
|
|
3681
3430
|
// Initializes '_removeButton' invoking 'removeButton' function with 'this' context.
|
|
@@ -3703,7 +3452,7 @@ class Vo extends lt {
|
|
|
3703
3452
|
min="0"
|
|
3704
3453
|
max="1"
|
|
3705
3454
|
step="0.01"
|
|
3706
|
-
value=${
|
|
3455
|
+
value=${Dr((e = this.layer) == null ? void 0 : e.getOpacity())}
|
|
3707
3456
|
@input=${(n) => this.layer.setOpacity(parseFloat(n.target.value))}
|
|
3708
3457
|
/>
|
|
3709
3458
|
</div>
|
|
@@ -3761,9 +3510,9 @@ class Vo extends lt {
|
|
|
3761
3510
|
});
|
|
3762
3511
|
P(this, hi, "");
|
|
3763
3512
|
P(this, pi, `
|
|
3764
|
-
${
|
|
3765
|
-
${
|
|
3766
|
-
${
|
|
3513
|
+
${ra}
|
|
3514
|
+
${oa}
|
|
3515
|
+
${Nr}
|
|
3767
3516
|
${sa}
|
|
3768
3517
|
.drag-handle {
|
|
3769
3518
|
cursor: n-resize;
|
|
@@ -3892,10 +3641,10 @@ class Vo extends lt {
|
|
|
3892
3641
|
}
|
|
3893
3642
|
render() {
|
|
3894
3643
|
var l;
|
|
3895
|
-
const e = Gs(this.tools, this.layer), n = Js(this.tools, this.layer),
|
|
3644
|
+
const e = Gs(this.tools, this.layer), n = Js(this.tools, this.layer), r = this[`_${e == null ? void 0 : e[0]}Button`] ? (
|
|
3896
3645
|
// @ts-expect-error TODO
|
|
3897
3646
|
this[`_${e == null ? void 0 : e[0]}Button`]()
|
|
3898
|
-
) : O,
|
|
3647
|
+
) : O, o = ((l = this.tools) == null ? void 0 : l.length) === 1 ? `${this.tools[0]}-icon` : "", s = e == null ? void 0 : e.length, a = n == null ? void 0 : n.length;
|
|
3899
3648
|
return x`
|
|
3900
3649
|
<style>
|
|
3901
3650
|
${T(this, hi)}
|
|
@@ -3908,7 +3657,7 @@ class Vo extends lt {
|
|
|
3908
3657
|
s === 1 && a === 0,
|
|
3909
3658
|
() => x`
|
|
3910
3659
|
<div class="single-action-container">
|
|
3911
|
-
<div class="single-action">${
|
|
3660
|
+
<div class="single-action">${r}</div>
|
|
3912
3661
|
</div>
|
|
3913
3662
|
`,
|
|
3914
3663
|
() => x`
|
|
@@ -3917,7 +3666,7 @@ class Vo extends lt {
|
|
|
3917
3666
|
open=${this.layer.get("layerControlToolsExpand") || O}
|
|
3918
3667
|
>
|
|
3919
3668
|
<summary>
|
|
3920
|
-
<button class="icon ${
|
|
3669
|
+
<button class="icon ${o}">Tools</button>
|
|
3921
3670
|
</summary>
|
|
3922
3671
|
<eox-layercontrol-tools-items
|
|
3923
3672
|
class="${this.toolsAsList ? "tools-list" : "tools-tab"}"
|
|
@@ -3941,7 +3690,7 @@ class Vo extends lt {
|
|
|
3941
3690
|
}
|
|
3942
3691
|
}
|
|
3943
3692
|
hi = new WeakMap(), pi = new WeakMap(), // Define static properties for the component
|
|
3944
|
-
F(
|
|
3693
|
+
F(Hr, "properties", {
|
|
3945
3694
|
layer: { attribute: !1 },
|
|
3946
3695
|
tools: { attribute: !1 },
|
|
3947
3696
|
unstyled: { type: Boolean },
|
|
@@ -3950,7 +3699,7 @@ F(Vo, "properties", {
|
|
|
3950
3699
|
});
|
|
3951
3700
|
customElements.define(
|
|
3952
3701
|
"eox-layercontrol-layer-tools",
|
|
3953
|
-
|
|
3702
|
+
Hr
|
|
3954
3703
|
);
|
|
3955
3704
|
const aa = (i) => {
|
|
3956
3705
|
const t = () => {
|
|
@@ -3964,7 +3713,7 @@ const aa = (i) => {
|
|
|
3964
3713
|
new CustomEvent("change:resolution", { bubbles: !0 })
|
|
3965
3714
|
));
|
|
3966
3715
|
};
|
|
3967
|
-
|
|
3716
|
+
_r(
|
|
3968
3717
|
i.layer,
|
|
3969
3718
|
i.showLayerZoomState
|
|
3970
3719
|
) && (t(), i.map.getView().on("change:resolution", () => t()));
|
|
@@ -3972,15 +3721,15 @@ const aa = (i) => {
|
|
|
3972
3721
|
const e = t.layer;
|
|
3973
3722
|
e.setVisible(i.target.checked), i.target.checked && e.get("layerControlExclusive") && t.closest(
|
|
3974
3723
|
".layers > ul"
|
|
3975
|
-
).querySelectorAll("eox-layercontrol-layer").forEach((
|
|
3976
|
-
var
|
|
3977
|
-
|
|
3724
|
+
).querySelectorAll("eox-layercontrol-layer").forEach((r) => {
|
|
3725
|
+
var o;
|
|
3726
|
+
r.layer !== e && ((o = r.layer) != null && o.get("layerControlExclusive")) && (r.layer.setVisible(!1), r.requestUpdate());
|
|
3978
3727
|
}), t.dispatchEvent(
|
|
3979
3728
|
new CustomEvent("changed", { bubbles: !0, detail: e })
|
|
3980
3729
|
), t.requestUpdate();
|
|
3981
3730
|
};
|
|
3982
|
-
var Et,
|
|
3983
|
-
class
|
|
3731
|
+
var Et, re, kr, fi, gi;
|
|
3732
|
+
class Vr extends lt {
|
|
3984
3733
|
constructor() {
|
|
3985
3734
|
super();
|
|
3986
3735
|
P(this, Et);
|
|
@@ -3992,7 +3741,7 @@ class Bo extends lt {
|
|
|
3992
3741
|
F(this, "currLayerVisibilityBasedOnZoom", !0);
|
|
3993
3742
|
P(this, fi, "");
|
|
3994
3743
|
P(this, gi, `
|
|
3995
|
-
${
|
|
3744
|
+
${Nr}
|
|
3996
3745
|
eox-layercontrol-layer {
|
|
3997
3746
|
width: 100%;
|
|
3998
3747
|
position: relative;
|
|
@@ -4009,7 +3758,7 @@ class Bo extends lt {
|
|
|
4009
3758
|
width: 100%;
|
|
4010
3759
|
align-items: center;
|
|
4011
3760
|
justify-content: space-between;
|
|
4012
|
-
padding:
|
|
3761
|
+
padding: var(--padding-vertical) 0;
|
|
4013
3762
|
display: var(--layer-visibility);
|
|
4014
3763
|
}
|
|
4015
3764
|
label, span {
|
|
@@ -4073,7 +3822,7 @@ class Bo extends lt {
|
|
|
4073
3822
|
*/
|
|
4074
3823
|
render() {
|
|
4075
3824
|
var l;
|
|
4076
|
-
const e = this.layer.getVisible(), n = e ? "visible" : "",
|
|
3825
|
+
const e = this.layer.getVisible(), n = e ? "visible" : "", r = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", o = j(this, Et, re).call(this, "layerControlDisable") ? "disabled" : "", s = j(this, Et, re).call(this, "layerControlExclusive") ? "radio" : "checkbox", a = ((l = this.tools) == null ? void 0 : l.length) > 0;
|
|
4077
3826
|
return x`
|
|
4078
3827
|
<style>
|
|
4079
3828
|
${T(this, fi)}
|
|
@@ -4083,21 +3832,21 @@ class Bo extends lt {
|
|
|
4083
3832
|
this.layer,
|
|
4084
3833
|
() => x`
|
|
4085
3834
|
<!-- Render the layer -->
|
|
4086
|
-
<div class="layer ${n} ${
|
|
4087
|
-
<label class="drag-handle ${
|
|
3835
|
+
<div class="layer ${n} ${r}">
|
|
3836
|
+
<label class="drag-handle ${o}">
|
|
4088
3837
|
<!-- Input element for layer visibility -->
|
|
4089
3838
|
<input
|
|
4090
3839
|
type=${s}
|
|
4091
|
-
.checked=${
|
|
4092
|
-
@click=${j(this, Et,
|
|
3840
|
+
.checked=${Dr(e)}
|
|
3841
|
+
@click=${j(this, Et, kr)}
|
|
4093
3842
|
/>
|
|
4094
3843
|
|
|
4095
3844
|
<!-- Layer title -->
|
|
4096
3845
|
<span
|
|
4097
|
-
class="title ${j(this, Et,
|
|
4098
|
-
style="--layer-color: ${j(this, Et,
|
|
3846
|
+
class="title ${j(this, Et, re).call(this, "color") ? "color-swatch" : ""}"
|
|
3847
|
+
style="--layer-color: ${j(this, Et, re).call(this, "color")}"
|
|
4099
3848
|
>
|
|
4100
|
-
${j(this, Et,
|
|
3849
|
+
${j(this, Et, re).call(this, this.titleProperty)}
|
|
4101
3850
|
</span>
|
|
4102
3851
|
${G(
|
|
4103
3852
|
a,
|
|
@@ -4125,7 +3874,7 @@ Et = new WeakSet(), /**
|
|
|
4125
3874
|
* @param {string} key - The key for the layer property.
|
|
4126
3875
|
* @returns {any} - The value of the layer property if exists, otherwise undefined.
|
|
4127
3876
|
*/
|
|
4128
|
-
|
|
3877
|
+
re = function(e) {
|
|
4129
3878
|
var n;
|
|
4130
3879
|
return (n = this.layer) == null ? void 0 : n.get(e);
|
|
4131
3880
|
}, /**
|
|
@@ -4133,10 +3882,10 @@ oe = function(e) {
|
|
|
4133
3882
|
*
|
|
4134
3883
|
* @param {{target: { checked: boolean }}} evt - The input change event.
|
|
4135
3884
|
*/
|
|
4136
|
-
|
|
3885
|
+
kr = function(e) {
|
|
4137
3886
|
la(e, this);
|
|
4138
3887
|
}, fi = new WeakMap(), gi = new WeakMap(), // Define static properties for the component
|
|
4139
|
-
F(
|
|
3888
|
+
F(Vr, "properties", {
|
|
4140
3889
|
layer: { attribute: !1 },
|
|
4141
3890
|
map: { attribute: !1, state: !0 },
|
|
4142
3891
|
titleProperty: { attribute: "title-property", type: String },
|
|
@@ -4146,16 +3895,16 @@ F(Bo, "properties", {
|
|
|
4146
3895
|
noShadow: { type: Boolean },
|
|
4147
3896
|
toolsAsList: { type: Boolean }
|
|
4148
3897
|
});
|
|
4149
|
-
customElements.define("eox-layercontrol-layer",
|
|
3898
|
+
customElements.define("eox-layercontrol-layer", Vr);
|
|
4150
3899
|
var mi, yi;
|
|
4151
|
-
class
|
|
3900
|
+
class Br extends lt {
|
|
4152
3901
|
constructor() {
|
|
4153
3902
|
super();
|
|
4154
3903
|
P(this, mi, "");
|
|
4155
3904
|
P(this, yi, `
|
|
4156
3905
|
details summary {
|
|
4157
3906
|
cursor: pointer;
|
|
4158
|
-
display:
|
|
3907
|
+
display: var(--layer-summary-visibility);
|
|
4159
3908
|
}
|
|
4160
3909
|
details summary { list-style-type: none; } /* Firefox */
|
|
4161
3910
|
details summary::-webkit-details-marker { display: none; } /* Chrome */
|
|
@@ -4191,10 +3940,10 @@ class Uo extends lt {
|
|
|
4191
3940
|
* Renders a layer control group with expandable details containing layers.
|
|
4192
3941
|
*/
|
|
4193
3942
|
render() {
|
|
4194
|
-
var
|
|
4195
|
-
const e = !!((
|
|
3943
|
+
var r, o;
|
|
3944
|
+
const e = !!((r = this.group) != null && r.get("layerControlExpand")), n = (o = Tr(
|
|
4196
3945
|
this.group.getLayers()
|
|
4197
|
-
)) == null ? void 0 :
|
|
3946
|
+
)) == null ? void 0 : o.length;
|
|
4198
3947
|
return x`
|
|
4199
3948
|
<style>
|
|
4200
3949
|
${T(this, mi)}
|
|
@@ -4243,7 +3992,7 @@ class Uo extends lt {
|
|
|
4243
3992
|
}
|
|
4244
3993
|
}
|
|
4245
3994
|
mi = new WeakMap(), yi = new WeakMap(), // Define static properties for the component
|
|
4246
|
-
F(
|
|
3995
|
+
F(Br, "properties", {
|
|
4247
3996
|
group: { attribute: !1 },
|
|
4248
3997
|
idProperty: { attribute: "id-property" },
|
|
4249
3998
|
map: { attribute: !1, state: !0 },
|
|
@@ -4256,61 +4005,61 @@ F(Uo, "properties", {
|
|
|
4256
4005
|
});
|
|
4257
4006
|
customElements.define(
|
|
4258
4007
|
"eox-layercontrol-layer-group",
|
|
4259
|
-
|
|
4008
|
+
Br
|
|
4260
4009
|
);
|
|
4261
4010
|
var Zi, Un;
|
|
4262
4011
|
function da() {
|
|
4263
4012
|
if (Un) return Zi;
|
|
4264
4013
|
Un = 1;
|
|
4265
|
-
var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g,
|
|
4266
|
-
return
|
|
4014
|
+
var i = "Expected a function", t = NaN, e = "[object Symbol]", n = /^\s+|\s+$/g, r = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, s = /^0o[0-7]+$/i, a = parseInt, l = typeof kt == "object" && kt && kt.Object === Object && kt, d = typeof self == "object" && self && self.Object === Object && self, u = l || d || Function("return this")(), c = Object.prototype, p = c.toString, f = Math.max, g = Math.min, b = function() {
|
|
4015
|
+
return u.Date.now();
|
|
4267
4016
|
};
|
|
4268
|
-
function N($, m,
|
|
4269
|
-
var M, L, q, X, H, R, Z = 0, dt = !1, tt = !1,
|
|
4017
|
+
function N($, m, A) {
|
|
4018
|
+
var M, L, q, X, H, R, Z = 0, dt = !1, tt = !1, ct = !0;
|
|
4270
4019
|
if (typeof $ != "function")
|
|
4271
4020
|
throw new TypeError(i);
|
|
4272
|
-
m = K(m) || 0, J(
|
|
4273
|
-
function gt(
|
|
4274
|
-
var I = M,
|
|
4275
|
-
return M = L = void 0, Z =
|
|
4021
|
+
m = K(m) || 0, J(A) && (dt = !!A.leading, tt = "maxWait" in A, q = tt ? f(K(A.maxWait) || 0, m) : q, ct = "trailing" in A ? !!A.trailing : ct);
|
|
4022
|
+
function gt(k) {
|
|
4023
|
+
var I = M, ut = L;
|
|
4024
|
+
return M = L = void 0, Z = k, X = $.apply(ut, I), X;
|
|
4276
4025
|
}
|
|
4277
|
-
function Ut(
|
|
4278
|
-
return Z =
|
|
4026
|
+
function Ut(k) {
|
|
4027
|
+
return Z = k, H = setTimeout(At, m), dt ? gt(k) : X;
|
|
4279
4028
|
}
|
|
4280
|
-
function Ie(
|
|
4281
|
-
var I =
|
|
4282
|
-
return tt ? g(Rt, q -
|
|
4029
|
+
function Ie(k) {
|
|
4030
|
+
var I = k - R, ut = k - Z, Rt = m - I;
|
|
4031
|
+
return tt ? g(Rt, q - ut) : Rt;
|
|
4283
4032
|
}
|
|
4284
|
-
function Ft(
|
|
4285
|
-
var I =
|
|
4286
|
-
return R === void 0 || I >= m || I < 0 || tt &&
|
|
4033
|
+
function Ft(k) {
|
|
4034
|
+
var I = k - R, ut = k - Z;
|
|
4035
|
+
return R === void 0 || I >= m || I < 0 || tt && ut >= q;
|
|
4287
4036
|
}
|
|
4288
|
-
function
|
|
4289
|
-
var
|
|
4290
|
-
if (Ft(
|
|
4291
|
-
return jt(
|
|
4292
|
-
H = setTimeout(
|
|
4037
|
+
function At() {
|
|
4038
|
+
var k = b();
|
|
4039
|
+
if (Ft(k))
|
|
4040
|
+
return jt(k);
|
|
4041
|
+
H = setTimeout(At, Ie(k));
|
|
4293
4042
|
}
|
|
4294
|
-
function jt(
|
|
4295
|
-
return H = void 0,
|
|
4043
|
+
function jt(k) {
|
|
4044
|
+
return H = void 0, ct && M ? gt(k) : (M = L = void 0, X);
|
|
4296
4045
|
}
|
|
4297
4046
|
function Ne() {
|
|
4298
4047
|
H !== void 0 && clearTimeout(H), Z = 0, M = R = L = H = void 0;
|
|
4299
4048
|
}
|
|
4300
|
-
function
|
|
4049
|
+
function _i() {
|
|
4301
4050
|
return H === void 0 ? X : jt(b());
|
|
4302
4051
|
}
|
|
4303
4052
|
function he() {
|
|
4304
|
-
var
|
|
4305
|
-
if (M = arguments, L = this, R =
|
|
4053
|
+
var k = b(), I = Ft(k);
|
|
4054
|
+
if (M = arguments, L = this, R = k, I) {
|
|
4306
4055
|
if (H === void 0)
|
|
4307
4056
|
return Ut(R);
|
|
4308
4057
|
if (tt)
|
|
4309
|
-
return H = setTimeout(
|
|
4058
|
+
return H = setTimeout(At, m), gt(R);
|
|
4310
4059
|
}
|
|
4311
|
-
return H === void 0 && (H = setTimeout(
|
|
4060
|
+
return H === void 0 && (H = setTimeout(At, m)), X;
|
|
4312
4061
|
}
|
|
4313
|
-
return he.cancel = Ne, he.flush =
|
|
4062
|
+
return he.cancel = Ne, he.flush = _i, he;
|
|
4314
4063
|
}
|
|
4315
4064
|
function J($) {
|
|
4316
4065
|
var m = typeof $;
|
|
@@ -4334,20 +4083,20 @@ function da() {
|
|
|
4334
4083
|
if (typeof $ != "string")
|
|
4335
4084
|
return $ === 0 ? $ : +$;
|
|
4336
4085
|
$ = $.replace(n, "");
|
|
4337
|
-
var
|
|
4338
|
-
return
|
|
4086
|
+
var A = o.test($);
|
|
4087
|
+
return A || s.test($) ? a($.slice(2), A ? 2 : 8) : r.test($) ? t : +$;
|
|
4339
4088
|
}
|
|
4340
4089
|
return Zi = N, Zi;
|
|
4341
4090
|
}
|
|
4342
|
-
var
|
|
4343
|
-
const
|
|
4344
|
-
const { layers: t, idProperty: e, titleProperty: n, renderRoot:
|
|
4091
|
+
var ca = da();
|
|
4092
|
+
const ua = /* @__PURE__ */ Pr(ca), ha = (i) => {
|
|
4093
|
+
const { layers: t, idProperty: e, titleProperty: n, renderRoot: r } = i, o = ua(() => {
|
|
4345
4094
|
i.requestUpdate(), i.dispatchEvent(
|
|
4346
4095
|
new CustomEvent("changed", { bubbles: !0 })
|
|
4347
4096
|
);
|
|
4348
|
-
}, 50), s = () =>
|
|
4097
|
+
}, 50), s = () => o();
|
|
4349
4098
|
if (t && (t.hasListener("change:length") && (t == null || t.un("change:length", s)), t.on("change:length", s), t)) {
|
|
4350
|
-
const a =
|
|
4099
|
+
const a = r.querySelector("ul");
|
|
4351
4100
|
Fs(
|
|
4352
4101
|
t,
|
|
4353
4102
|
e,
|
|
@@ -4357,7 +4106,7 @@ const ca = /* @__PURE__ */ Oo(ua), ha = (i) => {
|
|
|
4357
4106
|
}
|
|
4358
4107
|
};
|
|
4359
4108
|
var bi, vi;
|
|
4360
|
-
class
|
|
4109
|
+
class Ur extends lt {
|
|
4361
4110
|
constructor() {
|
|
4362
4111
|
super();
|
|
4363
4112
|
P(this, bi, "");
|
|
@@ -4369,11 +4118,11 @@ class Fo extends lt {
|
|
|
4369
4118
|
ul ul {
|
|
4370
4119
|
padding-left: var(--list-padding);
|
|
4371
4120
|
}
|
|
4372
|
-
li {
|
|
4373
|
-
list-style: none;
|
|
4121
|
+
li:not(li li) {
|
|
4374
4122
|
padding-left: var(--padding);
|
|
4375
4123
|
}
|
|
4376
4124
|
li {
|
|
4125
|
+
list-style: none;
|
|
4377
4126
|
border-bottom: 1px solid #0041703a;
|
|
4378
4127
|
border: var(--layer-visibility);
|
|
4379
4128
|
}
|
|
@@ -4408,7 +4157,7 @@ class Fo extends lt {
|
|
|
4408
4157
|
* layer groups or individual layers accordingly. Utilizes conditional rendering and iterates through available layers.
|
|
4409
4158
|
*/
|
|
4410
4159
|
render() {
|
|
4411
|
-
const e = this.layers ?
|
|
4160
|
+
const e = this.layers ? Tr(this.layers).reverse() : [];
|
|
4412
4161
|
return x`
|
|
4413
4162
|
<style>
|
|
4414
4163
|
${T(this, bi)}
|
|
@@ -4418,7 +4167,7 @@ class Fo extends lt {
|
|
|
4418
4167
|
${G(
|
|
4419
4168
|
this.layers,
|
|
4420
4169
|
() => x`
|
|
4421
|
-
${
|
|
4170
|
+
${bo(
|
|
4422
4171
|
e,
|
|
4423
4172
|
(n) => n,
|
|
4424
4173
|
(n) => x`
|
|
@@ -4465,7 +4214,7 @@ class Fo extends lt {
|
|
|
4465
4214
|
}
|
|
4466
4215
|
}
|
|
4467
4216
|
bi = new WeakMap(), vi = new WeakMap(), // Define static properties for the component
|
|
4468
|
-
F(
|
|
4217
|
+
F(Ur, "properties", {
|
|
4469
4218
|
idProperty: { attribute: "id-property" },
|
|
4470
4219
|
layers: { attribute: !1 },
|
|
4471
4220
|
map: { attribute: !1, state: !0 },
|
|
@@ -4476,7 +4225,7 @@ F(Fo, "properties", {
|
|
|
4476
4225
|
noShadow: { type: Boolean },
|
|
4477
4226
|
toolsAsList: { type: Boolean }
|
|
4478
4227
|
});
|
|
4479
|
-
customElements.define("eox-layercontrol-layer-list",
|
|
4228
|
+
customElements.define("eox-layercontrol-layer-list", Ur);
|
|
4480
4229
|
const pa = (i) => {
|
|
4481
4230
|
const t = i.querySelector(
|
|
4482
4231
|
"select[name=optional]"
|
|
@@ -4485,22 +4234,22 @@ const pa = (i) => {
|
|
|
4485
4234
|
"layerControlOptional",
|
|
4486
4235
|
!0
|
|
4487
4236
|
).find(
|
|
4488
|
-
(
|
|
4237
|
+
(r) => (
|
|
4489
4238
|
// @ts-expect-error TODO
|
|
4490
|
-
(
|
|
4239
|
+
(r.get(i.idProperty) || r.ol_uid) === e
|
|
4491
4240
|
)
|
|
4492
4241
|
);
|
|
4493
4242
|
n == null || n.set("layerControlOptional", !1), n == null || n.setVisible(!0), i.dispatchEvent(
|
|
4494
4243
|
new CustomEvent("changed", { bubbles: !0 })
|
|
4495
4244
|
), i.renderRoot.parentNode.querySelectorAll("eox-layercontrol-layer-list").forEach(
|
|
4496
|
-
(
|
|
4245
|
+
(r) => (
|
|
4497
4246
|
/** @type {import("lit").LitElement} */
|
|
4498
|
-
|
|
4247
|
+
r.requestUpdate()
|
|
4499
4248
|
)
|
|
4500
4249
|
), i.requestUpdate();
|
|
4501
4250
|
};
|
|
4502
|
-
var wi,
|
|
4503
|
-
class
|
|
4251
|
+
var wi, jr;
|
|
4252
|
+
class Fr extends lt {
|
|
4504
4253
|
constructor() {
|
|
4505
4254
|
super();
|
|
4506
4255
|
P(this, wi);
|
|
@@ -4536,13 +4285,13 @@ class jo extends lt {
|
|
|
4536
4285
|
|
|
4537
4286
|
<!-- Mapping through filtered layers list to generate dropdown options -->
|
|
4538
4287
|
${e.map((n) => {
|
|
4539
|
-
const
|
|
4540
|
-
return x` <option value="${
|
|
4288
|
+
const r = n.get(this.idProperty) || n.ol_uid, o = n.get(this.titleProperty), s = `layer ${n.get(this.idProperty)}`;
|
|
4289
|
+
return x` <option value="${r}">${o || s}</option> `;
|
|
4541
4290
|
})}
|
|
4542
4291
|
</select>
|
|
4543
4292
|
|
|
4544
4293
|
<!-- Button to handle adding layers -->
|
|
4545
|
-
<button @click="${j(this, wi,
|
|
4294
|
+
<button @click="${j(this, wi, jr)}">add</button>
|
|
4546
4295
|
`;
|
|
4547
4296
|
}
|
|
4548
4297
|
}
|
|
@@ -4550,10 +4299,10 @@ wi = new WeakSet(), /**
|
|
|
4550
4299
|
* Handles the addition of selected layers to a list.
|
|
4551
4300
|
* Invokes the 'addToListMethod' with the current context.
|
|
4552
4301
|
*/
|
|
4553
|
-
|
|
4302
|
+
jr = function() {
|
|
4554
4303
|
pa(this);
|
|
4555
4304
|
}, // Define static properties for the component
|
|
4556
|
-
F(
|
|
4305
|
+
F(Fr, "properties", {
|
|
4557
4306
|
idProperty: { attribute: "id-property" },
|
|
4558
4307
|
layers: { attribute: !1 },
|
|
4559
4308
|
titleProperty: { attribute: "title-property", type: String },
|
|
@@ -4562,13 +4311,13 @@ F(jo, "properties", {
|
|
|
4562
4311
|
});
|
|
4563
4312
|
customElements.define(
|
|
4564
4313
|
"eox-layercontrol-optional-list",
|
|
4565
|
-
|
|
4314
|
+
Fr
|
|
4566
4315
|
);
|
|
4567
4316
|
const fa = (i, t) => {
|
|
4568
4317
|
t.jsonInput = i.target.value, t.requestUpdate();
|
|
4569
4318
|
}, Fn = (i) => {
|
|
4570
4319
|
const t = JSON.parse(
|
|
4571
|
-
`{"data":${
|
|
4320
|
+
`{"data":${ur(i.jsonInput)}}`
|
|
4572
4321
|
);
|
|
4573
4322
|
Array.isArray(t.data) ? t.data.forEach((e) => {
|
|
4574
4323
|
i.eoxMap.addOrUpdateLayer(e);
|
|
@@ -4582,7 +4331,7 @@ async function ma(i) {
|
|
|
4582
4331
|
if (dn(t) === "XYZ")
|
|
4583
4332
|
return { Name: t };
|
|
4584
4333
|
try {
|
|
4585
|
-
const e = await
|
|
4334
|
+
const e = await cs(t);
|
|
4586
4335
|
i.wmsCapabilities = e;
|
|
4587
4336
|
} catch {
|
|
4588
4337
|
} finally {
|
|
@@ -4591,7 +4340,7 @@ async function ma(i) {
|
|
|
4591
4340
|
return !1;
|
|
4592
4341
|
}
|
|
4593
4342
|
const ya = (i, t) => {
|
|
4594
|
-
const { Name: e } = i, n = dn(t.urlInput) || "XYZ",
|
|
4343
|
+
const { Name: e } = i, n = dn(t.urlInput) || "XYZ", r = {
|
|
4595
4344
|
type: "Tile",
|
|
4596
4345
|
properties: {
|
|
4597
4346
|
id: e,
|
|
@@ -4608,12 +4357,12 @@ const ya = (i, t) => {
|
|
|
4608
4357
|
}
|
|
4609
4358
|
}
|
|
4610
4359
|
};
|
|
4611
|
-
t.jsonInput = JSON.stringify(
|
|
4360
|
+
t.jsonInput = JSON.stringify(r);
|
|
4612
4361
|
}, ba = (i, t) => {
|
|
4613
4362
|
t.open = i || null, t.urlInput = null, t.jsonInput = null, t.wmsCapabilities = null, t.requestUpdate();
|
|
4614
4363
|
};
|
|
4615
|
-
var it,
|
|
4616
|
-
class
|
|
4364
|
+
var it, Zr, qr, Qi, Xr, Yr, We, xi, Ei;
|
|
4365
|
+
class zr extends lt {
|
|
4617
4366
|
constructor() {
|
|
4618
4367
|
super();
|
|
4619
4368
|
P(this, it);
|
|
@@ -4804,7 +4553,7 @@ class Zo extends lt {
|
|
|
4804
4553
|
* Handles input fields, search, and addition of layers.
|
|
4805
4554
|
*/
|
|
4806
4555
|
render() {
|
|
4807
|
-
const e = this.open ? "open" : "close", n = this.open === "url",
|
|
4556
|
+
const e = this.open ? "open" : "close", n = this.open === "url", r = this.open === "json", o = !us(this.urlInput) || this.searchLoad ? !0 : O;
|
|
4808
4557
|
return x`
|
|
4809
4558
|
<style>
|
|
4810
4559
|
${T(this, xi)}
|
|
@@ -4822,7 +4571,7 @@ class Zo extends lt {
|
|
|
4822
4571
|
</li>
|
|
4823
4572
|
<li
|
|
4824
4573
|
@click=${() => j(this, it, We).call(this, "json")}
|
|
4825
|
-
class="${
|
|
4574
|
+
class="${r ? "active" : ""}"
|
|
4826
4575
|
>
|
|
4827
4576
|
JSON
|
|
4828
4577
|
</li>
|
|
@@ -4845,14 +4594,14 @@ class Zo extends lt {
|
|
|
4845
4594
|
class="add-url"
|
|
4846
4595
|
placeholder="Add URL (WMS/XYZ)"
|
|
4847
4596
|
.value="${this.urlInput}"
|
|
4848
|
-
@input=${j(this, it,
|
|
4597
|
+
@input=${j(this, it, Zr)}
|
|
4849
4598
|
>
|
|
4850
4599
|
</input>
|
|
4851
4600
|
<!-- Search button for URL -->
|
|
4852
4601
|
<button
|
|
4853
4602
|
class="search-icon"
|
|
4854
|
-
disabled=${
|
|
4855
|
-
@click=${j(this, it,
|
|
4603
|
+
disabled=${o}
|
|
4604
|
+
@click=${j(this, it, qr)}
|
|
4856
4605
|
>
|
|
4857
4606
|
${this.unstyled ? "Search" : ""}
|
|
4858
4607
|
</button>
|
|
@@ -4886,7 +4635,7 @@ class Zo extends lt {
|
|
|
4886
4635
|
<textarea
|
|
4887
4636
|
class="add-layer-input"
|
|
4888
4637
|
placeholder="Please put a valid eox-map layer JSON."
|
|
4889
|
-
@input=${j(this, it,
|
|
4638
|
+
@input=${j(this, it, Yr)}
|
|
4890
4639
|
.value=${this.jsonInput}
|
|
4891
4640
|
></textarea>
|
|
4892
4641
|
|
|
@@ -4894,7 +4643,7 @@ class Zo extends lt {
|
|
|
4894
4643
|
<button
|
|
4895
4644
|
class="add-layer-icon json-add-layer"
|
|
4896
4645
|
disabled=${hs(this.jsonInput) ? O : !0}
|
|
4897
|
-
@click=${j(this, it,
|
|
4646
|
+
@click=${j(this, it, Xr)}
|
|
4898
4647
|
>
|
|
4899
4648
|
${this.unstyled ? "Add JSON" : ""}
|
|
4900
4649
|
</button>
|
|
@@ -4910,9 +4659,9 @@ it = new WeakSet(), /**
|
|
|
4910
4659
|
*
|
|
4911
4660
|
* @param {Event} evt - The input change event triggering the method.
|
|
4912
4661
|
*/
|
|
4913
|
-
|
|
4662
|
+
Zr = function(e) {
|
|
4914
4663
|
ga(e, this);
|
|
4915
|
-
},
|
|
4664
|
+
}, qr = async function() {
|
|
4916
4665
|
const e = await ma(this);
|
|
4917
4666
|
e && j(this, it, Qi).call(this, e);
|
|
4918
4667
|
}, /**
|
|
@@ -4925,14 +4674,14 @@ Qi = function(e) {
|
|
|
4925
4674
|
}, /**
|
|
4926
4675
|
* Initiates the addition of layers, triggering the handleAddLayerMethod.
|
|
4927
4676
|
*/
|
|
4928
|
-
|
|
4677
|
+
Xr = function() {
|
|
4929
4678
|
Fn(this);
|
|
4930
4679
|
}, /**
|
|
4931
4680
|
* Handles input field changes by invoking the 'handleJsonInputChangeMethod'.
|
|
4932
4681
|
*
|
|
4933
4682
|
* @param {{target: { value: string }}} evt - The input change event triggering the method.
|
|
4934
4683
|
*/
|
|
4935
|
-
|
|
4684
|
+
Yr = function(e) {
|
|
4936
4685
|
fa(e, this);
|
|
4937
4686
|
}, /**
|
|
4938
4687
|
* Handles tab changes by invoking the 'openCloseTabMethod'.
|
|
@@ -4942,12 +4691,12 @@ Wo = function(e) {
|
|
|
4942
4691
|
We = function(e) {
|
|
4943
4692
|
ba(e, this);
|
|
4944
4693
|
}, xi = new WeakMap(), Ei = new WeakMap(), // Define static properties for the component
|
|
4945
|
-
F(
|
|
4694
|
+
F(zr, "properties", {
|
|
4946
4695
|
eoxMap: { attribute: !1, state: !0 },
|
|
4947
4696
|
unstyled: { type: Boolean },
|
|
4948
4697
|
noShadow: { type: Boolean }
|
|
4949
4698
|
});
|
|
4950
|
-
customElements.define("eox-layercontrol-add-layers",
|
|
4699
|
+
customElements.define("eox-layercontrol-add-layers", zr);
|
|
4951
4700
|
const va = (i, t) => {
|
|
4952
4701
|
if (t.requestUpdate(), i.target.tagName === "EOX-LAYERCONTROL-LAYER-TOOLS") {
|
|
4953
4702
|
const e = t.renderRoot.querySelector(
|
|
@@ -4963,12 +4712,12 @@ const va = (i, t) => {
|
|
|
4963
4712
|
const t = wa(i.for);
|
|
4964
4713
|
return t && t.map !== i.map && (i.map = t.map), t;
|
|
4965
4714
|
};
|
|
4966
|
-
var Ht,
|
|
4967
|
-
class
|
|
4715
|
+
var Ht, ce, Gr, Jr, $i;
|
|
4716
|
+
class Wr extends lt {
|
|
4968
4717
|
// Constructor to set default values for properties
|
|
4969
4718
|
constructor() {
|
|
4970
4719
|
super();
|
|
4971
|
-
P(this,
|
|
4720
|
+
P(this, ce);
|
|
4972
4721
|
/**
|
|
4973
4722
|
* Instance of `eox-map` which is a wrapper for the OL
|
|
4974
4723
|
*
|
|
@@ -4979,8 +4728,10 @@ class Go extends lt {
|
|
|
4979
4728
|
:host, :root {
|
|
4980
4729
|
font-family: Roboto, sans-serif;
|
|
4981
4730
|
--padding: 0.5rem;
|
|
4731
|
+
--padding-vertical: .2rem;
|
|
4982
4732
|
--list-padding: 48px;
|
|
4983
4733
|
--layer-input-visibility: flex;
|
|
4734
|
+
--layer-summary-visibility: flex;
|
|
4984
4735
|
--layer-type-visibility: block;
|
|
4985
4736
|
--layer-title-visibility: flex;
|
|
4986
4737
|
--layer-visibility: block;
|
|
@@ -5015,8 +4766,8 @@ class Go extends lt {
|
|
|
5015
4766
|
Qt(this, Ht, e), this.requestUpdate("eoxMap", n);
|
|
5016
4767
|
}
|
|
5017
4768
|
render() {
|
|
5018
|
-
var
|
|
5019
|
-
const e = (
|
|
4769
|
+
var r, o, s;
|
|
4770
|
+
const e = (r = this.map) == null ? void 0 : r.getLayers().getArray(), n = e && ((o = fn(e, "layerControlOptional", !0)) == null ? void 0 : o.length) > 0;
|
|
5020
4771
|
return x`
|
|
5021
4772
|
<style>
|
|
5022
4773
|
${!this.unstyled && T(this, $i)}
|
|
@@ -5050,8 +4801,8 @@ class Go extends lt {
|
|
|
5050
4801
|
.tools=${this.tools}
|
|
5051
4802
|
.unstyled=${this.unstyled}
|
|
5052
4803
|
.toolsAsList=${this.toolsAsList}
|
|
5053
|
-
@changed=${j(this,
|
|
5054
|
-
@datetime:updated=${j(this,
|
|
4804
|
+
@changed=${j(this, ce, Gr)}
|
|
4805
|
+
@datetime:updated=${j(this, ce, Jr)}
|
|
5055
4806
|
></eox-layercontrol-layer-list>
|
|
5056
4807
|
`
|
|
5057
4808
|
)}
|
|
@@ -5072,23 +4823,23 @@ class Go extends lt {
|
|
|
5072
4823
|
`;
|
|
5073
4824
|
}
|
|
5074
4825
|
}
|
|
5075
|
-
Ht = new WeakMap(),
|
|
4826
|
+
Ht = new WeakMap(), ce = new WeakSet(), /**
|
|
5076
4827
|
* Event handler for changes in the layer list
|
|
5077
4828
|
*
|
|
5078
4829
|
* @param {CustomEvent & {target: Element}} evt
|
|
5079
4830
|
*/
|
|
5080
|
-
|
|
4831
|
+
Gr = function(e) {
|
|
5081
4832
|
va(e, this), this.dispatchEvent(new CustomEvent("layerchange", { detail: e.detail }));
|
|
5082
4833
|
}, /**
|
|
5083
4834
|
* Dispatches datetime updates from layer datetime to the layercontrol
|
|
5084
4835
|
* @param {CustomEvent} evt
|
|
5085
4836
|
*/
|
|
5086
|
-
|
|
4837
|
+
Jr = function(e) {
|
|
5087
4838
|
this.dispatchEvent(
|
|
5088
4839
|
new CustomEvent("datetime:updated", { detail: e.detail })
|
|
5089
4840
|
);
|
|
5090
4841
|
}, $i = new WeakMap(), // Define static properties for the component
|
|
5091
|
-
F(
|
|
4842
|
+
F(Wr, "properties", {
|
|
5092
4843
|
for: { type: String },
|
|
5093
4844
|
idProperty: { attribute: "id-property" },
|
|
5094
4845
|
map: { attribute: !1, state: !0 },
|
|
@@ -5100,7 +4851,7 @@ F(Go, "properties", {
|
|
|
5100
4851
|
styleOverride: { type: String },
|
|
5101
4852
|
toolsAsList: { type: Boolean }
|
|
5102
4853
|
});
|
|
5103
|
-
customElements.define("eox-layercontrol",
|
|
4854
|
+
customElements.define("eox-layercontrol", Wr);
|
|
5104
4855
|
export {
|
|
5105
|
-
|
|
4856
|
+
Wr as EOxLayerControl
|
|
5106
4857
|
};
|