@eox/layercontrol 0.28.2-dev.1737128144.0 → 0.29.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 +770 -778
- package/dist/eox-layercontrol.umd.cjs +55 -55
- package/package.json +5 -3
- package/src/components/add-layers.js +1 -1
- package/src/components/layer-group.js +3 -1
- package/src/components/layer-tools.js +1 -3
- package/src/helpers/clean-json-input.js +0 -1
- package/src/helpers/get-start-vals.js +0 -3
- package/src/main.js +1 -1
- package/src/methods/layer-config/apply-updated-styles.js +1 -0
- package/src/methods/layercontrol/first-update.js +10 -4
- package/types/layercontrol/src/components/add-layers.d.ts +2 -2
- package/types/layercontrol/src/components/add-layers.d.ts.map +1 -1
- package/types/layercontrol/src/components/layer-config.d.ts.map +1 -1
- package/types/layercontrol/src/components/layer-datetime.d.ts.map +1 -1
- package/types/layercontrol/src/components/layer-group.d.ts.map +1 -1
- package/types/layercontrol/src/components/layer-legend.d.ts.map +1 -1
- package/types/layercontrol/src/components/layer-list.d.ts.map +1 -1
- package/types/layercontrol/src/components/layer-tools.d.ts.map +1 -1
- package/types/layercontrol/src/components/layer.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.map +1 -1
- package/types/layercontrol/src/helpers/clean-json-input.d.ts.map +1 -1
- package/types/layercontrol/src/helpers/fetch-capabilities.d.ts.map +1 -1
- package/types/layercontrol/src/helpers/filter-layers.d.ts.map +1 -1
- package/types/layercontrol/src/helpers/get-legend-config.d.ts.map +1 -1
- package/types/layercontrol/src/helpers/get-start-vals.d.ts +1 -1
- package/types/layercontrol/src/helpers/get-start-vals.d.ts.map +1 -1
- package/types/layercontrol/src/helpers/layer-tools.d.ts.map +1 -1
- package/types/layercontrol/src/main.d.ts +2 -2
- package/types/layercontrol/src/main.d.ts.map +1 -1
- package/types/layercontrol/src/methods/add-layer/wms-search-url.d.ts.map +1 -1
- package/types/layercontrol/src/methods/layer-config/apply-updated-styles.d.ts +1 -1
- package/types/layercontrol/src/methods/layer-config/apply-updated-styles.d.ts.map +1 -1
- package/types/layercontrol/src/methods/layercontrol/first-update.d.ts +2 -2
- package/types/layercontrol/src/methods/layercontrol/first-update.d.ts.map +1 -1
- package/types/map/src/controls/controls.d.ts +2 -2
- package/types/map/src/controls/controls.d.ts.map +1 -1
- package/types/map/src/controls/geo-location.d.ts +2 -2
- package/types/map/src/controls/geo-location.d.ts.map +1 -1
- package/types/map/src/controls/loading-indicator.d.ts +2 -2
- package/types/map/src/controls/loading-indicator.d.ts.map +1 -1
- package/types/map/src/helpers/add-new-feature.d.ts.map +1 -1
- package/types/map/src/helpers/center.d.ts.map +1 -1
- package/types/map/src/helpers/coordinates-roughly-equals.d.ts.map +1 -1
- package/types/map/src/helpers/draw.d.ts +6 -6
- package/types/map/src/helpers/draw.d.ts.map +1 -1
- package/types/map/src/helpers/generate.d.ts +9 -8
- package/types/map/src/helpers/generate.d.ts.map +1 -1
- package/types/map/src/helpers/layer.d.ts +5 -5
- package/types/map/src/helpers/layer.d.ts.map +1 -1
- package/types/map/src/helpers/parse-feature.d.ts.map +1 -1
- package/types/map/src/helpers/register-projection-from-code.d.ts.map +1 -1
- package/types/map/src/helpers/register-projection.d.ts.map +1 -1
- package/types/map/src/helpers/select.d.ts +11 -11
- package/types/map/src/helpers/select.d.ts.map +1 -1
- package/types/map/src/helpers/tile-grid.d.ts +2 -2
- package/types/map/src/helpers/tile-grid.d.ts.map +1 -1
- package/types/map/src/helpers/transform.d.ts +2 -2
- package/types/map/src/helpers/transform.d.ts.map +1 -1
- package/types/map/src/main.d.ts +26 -26
- package/types/map/src/main.d.ts.map +1 -1
- package/types/map/src/methods/map/add-update-layer.d.ts +2 -2
- package/types/map/src/methods/map/add-update-layer.d.ts.map +1 -1
- package/types/map/src/methods/map/getters.d.ts.map +1 -1
- package/types/map/src/methods/map/setters.d.ts +12 -12
- package/types/map/src/methods/map/setters.d.ts.map +1 -1
- package/types/map/{types.d.ts → src/types.d.ts} +13 -2
- package/types/map/src/types.d.ts.map +1 -0
- package/types/map/types.d.ts.map +0 -1
package/dist/eox-layercontrol.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Xr = Object.defineProperty;
|
|
2
|
+
var mn = (i) => {
|
|
3
3
|
throw TypeError(i);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var j = (i, t, e) =>
|
|
7
|
-
var S = (i, t, e) => (Ti(i, t, "read from private field"), e ? e.call(i) : t.get(i)), D = (i, t, e) => t.has(i) ?
|
|
5
|
+
var Wr = (i, t, e) => t in i ? Xr(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
6
|
+
var j = (i, t, e) => Wr(i, typeof t != "symbol" ? t + "" : t, e), Ti = (i, t, e) => t.has(i) || mn("Cannot " + e);
|
|
7
|
+
var S = (i, t, e) => (Ti(i, t, "read from private field"), e ? e.call(i) : t.get(i)), D = (i, t, e) => t.has(i) ? mn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, e), Ct = (i, t, e, n) => (Ti(i, t, "write to private field"), n ? n.call(i, e) : t.set(i, e), e), B = (i, t, e) => (Ti(i, t, "access private method"), e);
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2019 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const
|
|
14
|
-
let
|
|
13
|
+
const Fe = globalThis, en = Fe.ShadowRoot && (Fe.ShadyCSS === void 0 || Fe.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, nn = Symbol(), yn = /* @__PURE__ */ new WeakMap();
|
|
14
|
+
let zn = class {
|
|
15
15
|
constructor(t, e, n) {
|
|
16
16
|
if (this._$cssResult$ = !0, n !== nn) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
17
17
|
this.cssText = t, this.t = e;
|
|
@@ -21,7 +21,7 @@ let qn = class {
|
|
|
21
21
|
const e = this.t;
|
|
22
22
|
if (en && t === void 0) {
|
|
23
23
|
const n = e !== void 0 && e.length === 1;
|
|
24
|
-
n && (t =
|
|
24
|
+
n && (t = yn.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), n && yn.set(e, t));
|
|
25
25
|
}
|
|
26
26
|
return t;
|
|
27
27
|
}
|
|
@@ -29,33 +29,33 @@ let qn = class {
|
|
|
29
29
|
return this.cssText;
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
const
|
|
32
|
+
const Yr = (i) => new zn(typeof i == "string" ? i : i + "", void 0, nn), Zn = (i, ...t) => {
|
|
33
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
|
-
return new
|
|
39
|
-
},
|
|
38
|
+
return new zn(e, i, nn);
|
|
39
|
+
}, Gr = (i, t) => {
|
|
40
40
|
if (en) 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"), r =
|
|
42
|
+
const n = document.createElement("style"), r = Fe.litNonce;
|
|
43
43
|
r !== void 0 && n.setAttribute("nonce", r), n.textContent = e.cssText, i.appendChild(n);
|
|
44
44
|
}
|
|
45
|
-
},
|
|
45
|
+
}, bn = en ? (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 Yr(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: Jr, defineProperty: Kr, getOwnPropertyDescriptor: Qr, getOwnPropertyNames: to, getOwnPropertySymbols: eo, getPrototypeOf: io } = Object, Ft = globalThis, vn = Ft.trustedTypes, no = vn ? vn.emptyScript : "", Di = Ft.reactiveElementPolyfillSupport, ve = (i, t) => i, Xi = { toAttribute(i, t) {
|
|
56
56
|
switch (t) {
|
|
57
57
|
case Boolean:
|
|
58
|
-
i = i ?
|
|
58
|
+
i = i ? no : null;
|
|
59
59
|
break;
|
|
60
60
|
case Object:
|
|
61
61
|
case Array:
|
|
@@ -80,23 +80,23 @@ const { is: ro, defineProperty: oo, getOwnPropertyDescriptor: so, getOwnProperty
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
return e;
|
|
83
|
-
} },
|
|
83
|
+
} }, qn = (i, t) => !Jr(i, t), wn = { attribute: !0, type: String, converter: Xi, reflect: !1, hasChanged: qn };
|
|
84
84
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Ft.litPropertyMetadata ?? (Ft.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
85
|
-
class
|
|
85
|
+
class ne extends HTMLElement {
|
|
86
86
|
static addInitializer(t) {
|
|
87
87
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
88
88
|
}
|
|
89
89
|
static get observedAttributes() {
|
|
90
90
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
91
91
|
}
|
|
92
|
-
static createProperty(t, e =
|
|
92
|
+
static createProperty(t, e = wn) {
|
|
93
93
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
94
94
|
const n = Symbol(), r = this.getPropertyDescriptor(t, n, e);
|
|
95
|
-
r !== void 0 &&
|
|
95
|
+
r !== void 0 && Kr(this.prototype, t, r);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
static getPropertyDescriptor(t, e, n) {
|
|
99
|
-
const { get: r, set: o } =
|
|
99
|
+
const { get: r, set: o } = Qr(this.prototype, t) ?? { get() {
|
|
100
100
|
return this[e];
|
|
101
101
|
}, set(s) {
|
|
102
102
|
this[e] = s;
|
|
@@ -109,17 +109,17 @@ class re extends HTMLElement {
|
|
|
109
109
|
}, configurable: !0, enumerable: !0 };
|
|
110
110
|
}
|
|
111
111
|
static getPropertyOptions(t) {
|
|
112
|
-
return this.elementProperties.get(t) ??
|
|
112
|
+
return this.elementProperties.get(t) ?? wn;
|
|
113
113
|
}
|
|
114
114
|
static _$Ei() {
|
|
115
115
|
if (this.hasOwnProperty(ve("elementProperties"))) return;
|
|
116
|
-
const t =
|
|
116
|
+
const t = io(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(ve("finalized"))) return;
|
|
121
121
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ve("properties"))) {
|
|
122
|
-
const e = this.properties, n = [...
|
|
122
|
+
const e = this.properties, n = [...to(e), ...eo(e)];
|
|
123
123
|
for (const r of n) this.createProperty(r, e[r]);
|
|
124
124
|
}
|
|
125
125
|
const t = this[Symbol.metadata];
|
|
@@ -138,8 +138,8 @@ class re 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 r of n) e.unshift(
|
|
142
|
-
} else t !== void 0 && e.push(
|
|
141
|
+
for (const r of n) e.unshift(bn(r));
|
|
142
|
+
} else t !== void 0 && e.push(bn(t));
|
|
143
143
|
return e;
|
|
144
144
|
}
|
|
145
145
|
static _$Eu(t, e) {
|
|
@@ -168,7 +168,7 @@ class re extends HTMLElement {
|
|
|
168
168
|
}
|
|
169
169
|
createRenderRoot() {
|
|
170
170
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
171
|
-
return
|
|
171
|
+
return Gr(t, this.constructor.elementStyles), t;
|
|
172
172
|
}
|
|
173
173
|
connectedCallback() {
|
|
174
174
|
var t;
|
|
@@ -207,7 +207,7 @@ class re extends HTMLElement {
|
|
|
207
207
|
}
|
|
208
208
|
requestUpdate(t, e, n) {
|
|
209
209
|
if (t !== void 0) {
|
|
210
|
-
if (n ?? (n = this.constructor.getPropertyOptions(t)), !(n.hasChanged ??
|
|
210
|
+
if (n ?? (n = this.constructor.getPropertyOptions(t)), !(n.hasChanged ?? qn)(this[t], e)) return;
|
|
211
211
|
this.P(t, e, n);
|
|
212
212
|
}
|
|
213
213
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
@@ -280,59 +280,59 @@ class re extends HTMLElement {
|
|
|
280
280
|
firstUpdated(t) {
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
|
-
|
|
283
|
+
ne.elementStyles = [], ne.shadowRootOptions = { mode: "open" }, ne[ve("elementProperties")] = /* @__PURE__ */ new Map(), ne[ve("finalized")] = /* @__PURE__ */ new Map(), Di == null || Di({ ReactiveElement: ne }), (Ft.reactiveElementVersions ?? (Ft.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 we = globalThis,
|
|
290
|
-
\f\r]`, fe = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
291
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
292
|
-
function
|
|
293
|
-
if (!
|
|
294
|
-
return
|
|
295
|
-
}
|
|
296
|
-
const
|
|
289
|
+
const we = globalThis, Ge = we.trustedTypes, xn = Ge ? Ge.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Xn = "$lit$", Nt = `lit$${Math.random().toFixed(9).slice(2)}$`, Wn = "?" + Nt, ro = `<${Wn}>`, te = document, _e = () => te.createComment(""), Ce = (i) => i === null || typeof i != "object" && typeof i != "function", rn = Array.isArray, oo = (i) => rn(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Pi = `[
|
|
290
|
+
\f\r]`, fe = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $n = /-->/g, En = />/g, Xt = RegExp(`>|${Pi}(?:([^\\s"'>=/]+)(${Pi}*=${Pi}*(?:[^
|
|
291
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Sn = /'/g, An = /"/g, Yn = /^(?:script|style|textarea|title)$/i, so = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), x = so(1), wt = Symbol.for("lit-noChange"), P = Symbol.for("lit-nothing"), _n = /* @__PURE__ */ new WeakMap(), Kt = te.createTreeWalker(te, 129);
|
|
292
|
+
function Gn(i, t) {
|
|
293
|
+
if (!rn(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
294
|
+
return xn !== void 0 ? xn.createHTML(t) : t;
|
|
295
|
+
}
|
|
296
|
+
const ao = (i, t) => {
|
|
297
297
|
const e = i.length - 1, n = [];
|
|
298
298
|
let r, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = fe;
|
|
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, c, u = -1, p = 0;
|
|
302
|
+
for (; p < l.length && (s.lastIndex = p, c = s.exec(l), c !== null); ) p = s.lastIndex, s === fe ? c[1] === "!--" ? s = $n : c[1] !== void 0 ? s = En : c[2] !== void 0 ? (Yn.test(c[2]) && (r = RegExp("</" + c[2], "g")), s = Xt) : c[3] !== void 0 && (s = Xt) : s === Xt ? c[0] === ">" ? (s = r ?? fe, u = -1) : c[1] === void 0 ? u = -2 : (u = s.lastIndex - c[2].length, d = c[1], s = c[3] === void 0 ? Xt : c[3] === '"' ? An : Sn) : s === An || s === Sn ? s = Xt : s === $n || s === En ? s = fe : (s = Xt, r = void 0);
|
|
303
303
|
const f = s === Xt && i[a + 1].startsWith("/>") ? " " : "";
|
|
304
|
-
o += s === fe ? l +
|
|
304
|
+
o += s === fe ? l + ro : u >= 0 ? (n.push(d), l.slice(0, u) + Xn + l.slice(u) + Nt + f) : l + Nt + (u === -2 ? a : f);
|
|
305
305
|
}
|
|
306
|
-
return [
|
|
306
|
+
return [Gn(i, o + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
|
|
307
307
|
};
|
|
308
308
|
class Te {
|
|
309
309
|
constructor({ strings: t, _$litType$: e }, n) {
|
|
310
310
|
let r;
|
|
311
311
|
this.parts = [];
|
|
312
312
|
let o = 0, s = 0;
|
|
313
|
-
const a = t.length - 1, l = this.parts, [d,
|
|
313
|
+
const a = t.length - 1, l = this.parts, [d, c] = ao(t, e);
|
|
314
314
|
if (this.el = Te.createElement(d, n), Kt.currentNode = this.el.content, e === 2 || e === 3) {
|
|
315
|
-
const
|
|
316
|
-
|
|
315
|
+
const u = this.el.content.firstChild;
|
|
316
|
+
u.replaceWith(...u.childNodes);
|
|
317
317
|
}
|
|
318
318
|
for (; (r = Kt.nextNode()) !== null && l.length < a; ) {
|
|
319
319
|
if (r.nodeType === 1) {
|
|
320
|
-
if (r.hasAttributes()) for (const
|
|
321
|
-
const p =
|
|
322
|
-
l.push({ type: 1, index: o, name: g[2], strings: f, ctor: g[1] === "." ?
|
|
323
|
-
} else
|
|
324
|
-
if (
|
|
325
|
-
const
|
|
320
|
+
if (r.hasAttributes()) for (const u of r.getAttributeNames()) if (u.endsWith(Xn)) {
|
|
321
|
+
const p = c[s++], f = r.getAttribute(u).split(Nt), g = /([.?@])?(.*)/.exec(p);
|
|
322
|
+
l.push({ type: 1, index: o, name: g[2], strings: f, ctor: g[1] === "." ? uo : g[1] === "?" ? co : g[1] === "@" ? ho : Si }), r.removeAttribute(u);
|
|
323
|
+
} else u.startsWith(Nt) && (l.push({ type: 6, index: o }), r.removeAttribute(u));
|
|
324
|
+
if (Yn.test(r.tagName)) {
|
|
325
|
+
const u = r.textContent.split(Nt), p = u.length - 1;
|
|
326
326
|
if (p > 0) {
|
|
327
|
-
r.textContent =
|
|
328
|
-
for (let f = 0; f < p; f++) r.append(
|
|
329
|
-
r.append(
|
|
327
|
+
r.textContent = Ge ? Ge.emptyScript : "";
|
|
328
|
+
for (let f = 0; f < p; f++) r.append(u[f], _e()), Kt.nextNode(), l.push({ type: 2, index: ++o });
|
|
329
|
+
r.append(u[p], _e());
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
|
-
} else if (r.nodeType === 8) if (r.data ===
|
|
332
|
+
} else if (r.nodeType === 8) if (r.data === Wn) l.push({ type: 2, index: o });
|
|
333
333
|
else {
|
|
334
|
-
let
|
|
335
|
-
for (; (
|
|
334
|
+
let u = -1;
|
|
335
|
+
for (; (u = r.data.indexOf(Nt, u + 1)) !== -1; ) l.push({ type: 7, index: o }), u += Nt.length - 1;
|
|
336
336
|
}
|
|
337
337
|
o++;
|
|
338
338
|
}
|
|
@@ -342,14 +342,14 @@ class Te {
|
|
|
342
342
|
return n.innerHTML = t, n;
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function ue(i, t, e = i, n) {
|
|
346
346
|
var s, a;
|
|
347
347
|
if (t === wt) return t;
|
|
348
348
|
let r = n !== void 0 ? (s = e._$Co) == null ? void 0 : s[n] : e._$Cl;
|
|
349
|
-
const o =
|
|
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 =
|
|
349
|
+
const o = Ce(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 = ue(i, r._$AS(i, t.values), r, n)), t;
|
|
351
351
|
}
|
|
352
|
-
let
|
|
352
|
+
let lo = class {
|
|
353
353
|
constructor(t, e) {
|
|
354
354
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
355
355
|
}
|
|
@@ -366,7 +366,7 @@ let Qn = class {
|
|
|
366
366
|
for (; l !== void 0; ) {
|
|
367
367
|
if (s === l.index) {
|
|
368
368
|
let d;
|
|
369
|
-
l.type === 2 ? d = new he(o, o.nextSibling, this, t) : l.type === 1 ? d = new l.ctor(o, l.name, l.strings, this, t) : l.type === 6 && (d = new
|
|
369
|
+
l.type === 2 ? d = new he(o, o.nextSibling, this, t) : l.type === 1 ? d = new l.ctor(o, l.name, l.strings, this, t) : l.type === 6 && (d = new po(o, this, t)), this._$AV.push(d), l = n[++a];
|
|
370
370
|
}
|
|
371
371
|
s !== (l == null ? void 0 : l.index) && (o = Kt.nextNode(), s++);
|
|
372
372
|
}
|
|
@@ -397,7 +397,7 @@ class he {
|
|
|
397
397
|
return this._$AB;
|
|
398
398
|
}
|
|
399
399
|
_$AI(t, e = this) {
|
|
400
|
-
t =
|
|
400
|
+
t = ue(this, t, e), Ce(t) ? t === P || t == null || t === "" ? (this._$AH !== P && this._$AR(), this._$AH = P) : t !== this._$AH && t !== wt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : oo(t) ? this.k(t) : this._(t);
|
|
401
401
|
}
|
|
402
402
|
O(t) {
|
|
403
403
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -406,26 +406,26 @@ class he {
|
|
|
406
406
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
407
407
|
}
|
|
408
408
|
_(t) {
|
|
409
|
-
this._$AH !== P &&
|
|
409
|
+
this._$AH !== P && Ce(this._$AH) ? this._$AA.nextSibling.data = t : this.T(te.createTextNode(t)), this._$AH = t;
|
|
410
410
|
}
|
|
411
411
|
$(t) {
|
|
412
412
|
var o;
|
|
413
|
-
const { values: e, _$litType$: n } = t, r = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = Te.createElement(
|
|
413
|
+
const { values: e, _$litType$: n } = t, r = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = Te.createElement(Gn(n.h, n.h[0]), this.options)), n);
|
|
414
414
|
if (((o = this._$AH) == null ? void 0 : o._$AD) === r) this._$AH.p(e);
|
|
415
415
|
else {
|
|
416
|
-
const s = new
|
|
416
|
+
const s = new lo(r, this), a = s.u(this.options);
|
|
417
417
|
s.p(e), this.T(a), this._$AH = s;
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
420
|
_$AC(t) {
|
|
421
|
-
let e =
|
|
422
|
-
return e === void 0 &&
|
|
421
|
+
let e = _n.get(t.strings);
|
|
422
|
+
return e === void 0 && _n.set(t.strings, e = new Te(t)), e;
|
|
423
423
|
}
|
|
424
424
|
k(t) {
|
|
425
|
-
|
|
425
|
+
rn(this._$AH) || (this._$AH = [], this._$AR());
|
|
426
426
|
const e = this._$AH;
|
|
427
427
|
let n, r = 0;
|
|
428
|
-
for (const o of t) r === e.length ? e.push(n = new he(this.O(
|
|
428
|
+
for (const o of t) r === e.length ? e.push(n = new he(this.O(_e()), this.O(_e()), this, this.options)) : n = e[r], n._$AI(o), r++;
|
|
429
429
|
r < e.length && (this._$AR(n && n._$AB.nextSibling, r), e.length = r);
|
|
430
430
|
}
|
|
431
431
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -440,7 +440,7 @@ class he {
|
|
|
440
440
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
|
-
class
|
|
443
|
+
class Si {
|
|
444
444
|
get tagName() {
|
|
445
445
|
return this.element.tagName;
|
|
446
446
|
}
|
|
@@ -453,11 +453,11 @@ class Le {
|
|
|
453
453
|
_$AI(t, e = this, n, r) {
|
|
454
454
|
const o = this.strings;
|
|
455
455
|
let s = !1;
|
|
456
|
-
if (o === void 0) t =
|
|
456
|
+
if (o === void 0) t = ue(this, t, e, 0), s = !Ce(t) || t !== this._$AH && t !== wt, s && (this._$AH = t);
|
|
457
457
|
else {
|
|
458
458
|
const a = t;
|
|
459
459
|
let l, d;
|
|
460
|
-
for (t = o[0], l = 0; l < o.length - 1; l++) d =
|
|
460
|
+
for (t = o[0], l = 0; l < o.length - 1; l++) d = ue(this, a[n + l], e, l), d === wt && (d = this._$AH[l]), s || (s = !Ce(d) || d !== this._$AH[l]), d === P ? t = P : t !== P && (t += (d ?? "") + o[l + 1]), this._$AH[l] = d;
|
|
461
461
|
}
|
|
462
462
|
s && !r && this.j(t);
|
|
463
463
|
}
|
|
@@ -465,7 +465,7 @@ class Le {
|
|
|
465
465
|
t === P ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
class
|
|
468
|
+
class uo extends Si {
|
|
469
469
|
constructor() {
|
|
470
470
|
super(...arguments), this.type = 3;
|
|
471
471
|
}
|
|
@@ -473,7 +473,7 @@ class tr extends Le {
|
|
|
473
473
|
this.element[this.name] = t === P ? void 0 : t;
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
class
|
|
476
|
+
class co extends Si {
|
|
477
477
|
constructor() {
|
|
478
478
|
super(...arguments), this.type = 4;
|
|
479
479
|
}
|
|
@@ -481,12 +481,12 @@ class er extends Le {
|
|
|
481
481
|
this.element.toggleAttribute(this.name, !!t && t !== P);
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
-
class
|
|
484
|
+
class ho extends Si {
|
|
485
485
|
constructor(t, e, n, r, o) {
|
|
486
486
|
super(t, e, n, r, o), this.type = 5;
|
|
487
487
|
}
|
|
488
488
|
_$AI(t, e = this) {
|
|
489
|
-
if ((t =
|
|
489
|
+
if ((t = ue(this, t, e, 0) ?? P) === wt) return;
|
|
490
490
|
const n = this._$AH, r = t === P && n !== P || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, o = t !== P && (n === P || r);
|
|
491
491
|
r && this.element.removeEventListener(this.name, this, n), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
492
492
|
}
|
|
@@ -495,7 +495,7 @@ class ir extends Le {
|
|
|
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 po {
|
|
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
|
}
|
|
@@ -503,17 +503,17 @@ class nr {
|
|
|
503
503
|
return this._$AM._$AU;
|
|
504
504
|
}
|
|
505
505
|
_$AI(t) {
|
|
506
|
-
|
|
506
|
+
ue(this, t);
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
const fo = {
|
|
509
|
+
const fo = { I: he }, Oi = we.litHtmlPolyfillSupport;
|
|
510
510
|
Oi == null || Oi(Te, he), (we.litHtmlVersions ?? (we.litHtmlVersions = [])).push("3.2.1");
|
|
511
511
|
const go = (i, t, e) => {
|
|
512
512
|
const n = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
513
513
|
let r = n._$litPart$;
|
|
514
514
|
if (r === void 0) {
|
|
515
515
|
const o = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
516
|
-
n._$litPart$ = r = new he(t.insertBefore(
|
|
516
|
+
n._$litPart$ = r = new he(t.insertBefore(_e(), o), o, void 0, e ?? {});
|
|
517
517
|
}
|
|
518
518
|
return r._$AI(i), r;
|
|
519
519
|
};
|
|
@@ -522,7 +522,7 @@ const go = (i, t, e) => {
|
|
|
522
522
|
* Copyright 2017 Google LLC
|
|
523
523
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
524
524
|
*/
|
|
525
|
-
let lt = class extends
|
|
525
|
+
let lt = class extends ne {
|
|
526
526
|
constructor() {
|
|
527
527
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
528
528
|
}
|
|
@@ -547,8 +547,8 @@ let lt = class extends re {
|
|
|
547
547
|
return wt;
|
|
548
548
|
}
|
|
549
549
|
};
|
|
550
|
-
var
|
|
551
|
-
lt._$litElement$ = !0, lt.finalized = !0, (
|
|
550
|
+
var jn;
|
|
551
|
+
lt._$litElement$ = !0, lt.finalized = !0, (jn = globalThis.litElementHydrateSupport) == null || jn.call(globalThis, { LitElement: lt });
|
|
552
552
|
const Ri = globalThis.litElementPolyfillSupport;
|
|
553
553
|
Ri == null || Ri({ LitElement: lt });
|
|
554
554
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
|
@@ -565,8 +565,8 @@ function G(i, t, e) {
|
|
|
565
565
|
* Copyright 2017 Google LLC
|
|
566
566
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
567
567
|
*/
|
|
568
|
-
const
|
|
569
|
-
class
|
|
568
|
+
const It = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4 }, on = (i) => (...t) => ({ _$litDirective$: i, values: t });
|
|
569
|
+
class sn {
|
|
570
570
|
constructor(t) {
|
|
571
571
|
}
|
|
572
572
|
get _$AU() {
|
|
@@ -587,11 +587,11 @@ class ln {
|
|
|
587
587
|
* Copyright 2020 Google LLC
|
|
588
588
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
589
589
|
*/
|
|
590
|
-
const { I: mo } = fo, yo = (i) => i.strings === void 0,
|
|
590
|
+
const { I: mo } = fo, yo = (i) => i.strings === void 0, Cn = () => document.createComment(""), ge = (i, t, e) => {
|
|
591
591
|
var o;
|
|
592
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(
|
|
594
|
+
const s = n.insertBefore(Cn(), r), a = n.insertBefore(Cn(), r);
|
|
595
595
|
e = new mo(s, a, i, i.options);
|
|
596
596
|
} else {
|
|
597
597
|
const s = e._$AB.nextSibling, a = e._$AM, l = a !== i;
|
|
@@ -602,13 +602,13 @@ const { I: mo } = fo, yo = (i) => i.strings === void 0, Dn = () => document.crea
|
|
|
602
602
|
if (s !== r || l) {
|
|
603
603
|
let d = e._$AA;
|
|
604
604
|
for (; d !== s; ) {
|
|
605
|
-
const
|
|
606
|
-
n.insertBefore(d, r), d =
|
|
605
|
+
const c = d.nextSibling;
|
|
606
|
+
n.insertBefore(d, r), d = c;
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
return e;
|
|
611
|
-
},
|
|
611
|
+
}, Wt = (i, t, e = i) => (i._$AI(t, e), i), bo = {}, Jn = (i, t = bo) => i._$AH = t, vo = (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;
|
|
@@ -623,13 +623,13 @@ const { I: mo } = fo, yo = (i) => i.strings === void 0, Dn = () => document.crea
|
|
|
623
623
|
* Copyright 2017 Google LLC
|
|
624
624
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
625
625
|
*/
|
|
626
|
-
const
|
|
626
|
+
const Tn = (i, t, e) => {
|
|
627
627
|
const n = /* @__PURE__ */ new Map();
|
|
628
628
|
for (let r = t; r <= e; r++) n.set(i[r], r);
|
|
629
629
|
return n;
|
|
630
|
-
}, wo =
|
|
630
|
+
}, wo = on(class extends sn {
|
|
631
631
|
constructor(i) {
|
|
632
|
-
if (super(i), i.type !==
|
|
632
|
+
if (super(i), i.type !== It.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
633
633
|
}
|
|
634
634
|
dt(i, t, e) {
|
|
635
635
|
let n;
|
|
@@ -646,31 +646,31 @@ const Pn = (i, t, e) => {
|
|
|
646
646
|
const r = vo(i), { values: o, keys: s } = this.dt(t, e, n);
|
|
647
647
|
if (!Array.isArray(r)) return this.ut = s, o;
|
|
648
648
|
const a = this.ut ?? (this.ut = []), l = [];
|
|
649
|
-
let d,
|
|
650
|
-
for (;
|
|
649
|
+
let d, c, u = 0, p = r.length - 1, f = 0, g = o.length - 1;
|
|
650
|
+
for (; u <= p && f <= g; ) if (r[u] === null) u++;
|
|
651
651
|
else if (r[p] === null) p--;
|
|
652
|
-
else if (a[
|
|
653
|
-
else if (a[p] === s[g]) l[g] =
|
|
654
|
-
else if (a[
|
|
655
|
-
else if (a[p] === s[f]) l[f] =
|
|
656
|
-
else if (d === void 0 && (d =
|
|
657
|
-
const b =
|
|
658
|
-
if (
|
|
659
|
-
const J = ge(i, r[
|
|
660
|
-
|
|
661
|
-
} else l[f] =
|
|
652
|
+
else if (a[u] === s[f]) l[f] = Wt(r[u], o[f]), u++, f++;
|
|
653
|
+
else if (a[p] === s[g]) l[g] = Wt(r[p], o[g]), p--, g--;
|
|
654
|
+
else if (a[u] === s[g]) l[g] = Wt(r[u], o[g]), ge(i, l[g + 1], r[u]), u++, g--;
|
|
655
|
+
else if (a[p] === s[f]) l[f] = Wt(r[p], o[f]), ge(i, r[u], r[p]), p--, f++;
|
|
656
|
+
else if (d === void 0 && (d = Tn(s, f, g), c = Tn(a, u, p)), d.has(a[u])) if (d.has(a[p])) {
|
|
657
|
+
const b = c.get(s[f]), H = b !== void 0 ? r[b] : null;
|
|
658
|
+
if (H === null) {
|
|
659
|
+
const J = ge(i, r[u]);
|
|
660
|
+
Wt(J, o[f]), l[f] = J;
|
|
661
|
+
} else l[f] = Wt(H, o[f]), ge(i, r[u], H), r[b] = null;
|
|
662
662
|
f++;
|
|
663
663
|
} else Li(r[p]), p--;
|
|
664
|
-
else Li(r[
|
|
664
|
+
else Li(r[u]), u++;
|
|
665
665
|
for (; f <= g; ) {
|
|
666
666
|
const b = ge(i, l[g + 1]);
|
|
667
|
-
|
|
667
|
+
Wt(b, o[f]), l[f++] = b;
|
|
668
668
|
}
|
|
669
|
-
for (;
|
|
670
|
-
const b = r[
|
|
669
|
+
for (; u <= p; ) {
|
|
670
|
+
const b = r[u++];
|
|
671
671
|
b !== null && Li(b);
|
|
672
672
|
}
|
|
673
|
-
return this.ut = s,
|
|
673
|
+
return this.ut = s, Jn(i, l), wt;
|
|
674
674
|
}
|
|
675
675
|
});
|
|
676
676
|
/**
|
|
@@ -679,20 +679,11 @@ const Pn = (i, t, e) => {
|
|
|
679
679
|
* @license BSD-2-Clause
|
|
680
680
|
* @preserve
|
|
681
681
|
*/
|
|
682
|
-
var A = (i) => i !== void 0,
|
|
682
|
+
var A = (i) => i !== void 0, Kn = (i, t, e) => t in i ? i[t] : i[t] = e;
|
|
683
683
|
const De = {
|
|
684
684
|
ELEMENT: 1,
|
|
685
|
-
ATTRIBUTE: 2,
|
|
686
685
|
TEXT: 3,
|
|
687
|
-
CDATA_SECTION: 4
|
|
688
|
-
ENTITY_REFERENCE: 5,
|
|
689
|
-
ENTITY: 6,
|
|
690
|
-
PROCESSING_INSTRUCTION: 7,
|
|
691
|
-
COMMENT: 8,
|
|
692
|
-
DOCUMENT: 9,
|
|
693
|
-
DOCUMENT_TYPE: 10,
|
|
694
|
-
DOCUMENT_FRAGMENT: 11,
|
|
695
|
-
NOTATION: 12
|
|
686
|
+
CDATA_SECTION: 4
|
|
696
687
|
};
|
|
697
688
|
class xo {
|
|
698
689
|
/**
|
|
@@ -723,20 +714,20 @@ class xo {
|
|
|
723
714
|
}
|
|
724
715
|
}
|
|
725
716
|
function Ai(i, t) {
|
|
726
|
-
return
|
|
717
|
+
return Qn(i, t, []).join("");
|
|
727
718
|
}
|
|
728
|
-
function
|
|
719
|
+
function Qn(i, t, e) {
|
|
729
720
|
if (i.nodeType === De.CDATA_SECTION || i.nodeType === De.TEXT)
|
|
730
721
|
t ? e.push(String(i.nodeValue).replace(/(\r\n|\r|\n)/g, "")) : e.push(i.nodeValue);
|
|
731
722
|
else {
|
|
732
723
|
var n;
|
|
733
724
|
for (n = i.firstChild; n; n = n.nextSibling)
|
|
734
|
-
|
|
725
|
+
Qn(n, t, e);
|
|
735
726
|
}
|
|
736
727
|
return e;
|
|
737
728
|
}
|
|
738
|
-
function
|
|
739
|
-
for (var r =
|
|
729
|
+
function $o(i, t, e, n) {
|
|
730
|
+
for (var r = Eo(t); r; r = So(r)) {
|
|
740
731
|
var o = r.namespaceURI || null, s = i[o];
|
|
741
732
|
if (A(s)) {
|
|
742
733
|
var a = s[r.localName];
|
|
@@ -744,7 +735,7 @@ function Eo(i, t, e, n) {
|
|
|
744
735
|
}
|
|
745
736
|
}
|
|
746
737
|
}
|
|
747
|
-
function
|
|
738
|
+
function Eo(i) {
|
|
748
739
|
let t = i.firstElementChild || i.firstChild;
|
|
749
740
|
for (; t && t.nodeType !== De.ELEMENT; )
|
|
750
741
|
t = t.nextSibling;
|
|
@@ -768,7 +759,7 @@ function Ao(i, t, e) {
|
|
|
768
759
|
n[i[r]] = t;
|
|
769
760
|
return n;
|
|
770
761
|
}
|
|
771
|
-
function
|
|
762
|
+
function tr(i, t) {
|
|
772
763
|
return (
|
|
773
764
|
/**
|
|
774
765
|
* @param {Node} node Node.
|
|
@@ -788,7 +779,7 @@ function ar(i, t) {
|
|
|
788
779
|
);
|
|
789
780
|
}
|
|
790
781
|
function Q(i, t, e, n, r) {
|
|
791
|
-
return n.push(i),
|
|
782
|
+
return n.push(i), $o(t, e, n, r), n.pop();
|
|
792
783
|
}
|
|
793
784
|
function y(i, t, e) {
|
|
794
785
|
return (
|
|
@@ -828,59 +819,59 @@ function pt(i, t, e) {
|
|
|
828
819
|
var s = (
|
|
829
820
|
/** @type {Object} */
|
|
830
821
|
r[r.length - 1]
|
|
831
|
-
), a = A(t) ? t : n.localName, l =
|
|
822
|
+
), a = A(t) ? t : n.localName, l = Kn(s, a, []);
|
|
832
823
|
l.push(o);
|
|
833
824
|
}
|
|
834
825
|
}
|
|
835
826
|
);
|
|
836
827
|
}
|
|
837
|
-
const
|
|
838
|
-
function
|
|
839
|
-
return i.replace(
|
|
828
|
+
const _o = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
|
|
829
|
+
function Co(i) {
|
|
830
|
+
return i.replace(_o, "");
|
|
840
831
|
}
|
|
841
832
|
function Qt(i) {
|
|
842
833
|
const t = /^\s*(true|1)|(false|0)\s*$/.exec(i);
|
|
843
834
|
if (t)
|
|
844
835
|
return A(t[1]) || !1;
|
|
845
836
|
}
|
|
846
|
-
function
|
|
847
|
-
return
|
|
837
|
+
function se(i) {
|
|
838
|
+
return Dt(Ai(i, !1));
|
|
848
839
|
}
|
|
849
|
-
function
|
|
840
|
+
function Dt(i) {
|
|
850
841
|
const t = /^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(i);
|
|
851
842
|
if (t)
|
|
852
843
|
return parseFloat(t[1]);
|
|
853
844
|
}
|
|
854
845
|
function Mi(i) {
|
|
855
|
-
return
|
|
846
|
+
return Je(Ai(i, !1));
|
|
856
847
|
}
|
|
857
|
-
function
|
|
848
|
+
function Je(i) {
|
|
858
849
|
const t = /^\s*(\d+)\s*$/.exec(i);
|
|
859
850
|
if (t)
|
|
860
851
|
return parseInt(t[1], 10);
|
|
861
852
|
}
|
|
862
853
|
function O(i) {
|
|
863
|
-
return
|
|
854
|
+
return Co(Ai(i, !1));
|
|
864
855
|
}
|
|
865
856
|
const To = "http://www.w3.org/1999/xlink";
|
|
866
|
-
function
|
|
857
|
+
function an(i) {
|
|
867
858
|
return i.getAttributeNS(To, "href");
|
|
868
859
|
}
|
|
869
860
|
function Do(i, t) {
|
|
870
861
|
return Q({}, is, i, t);
|
|
871
862
|
}
|
|
872
|
-
function
|
|
863
|
+
function er(i) {
|
|
873
864
|
return [
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
865
|
+
Dt(i.getAttribute("minx")),
|
|
866
|
+
Dt(i.getAttribute("miny")),
|
|
867
|
+
Dt(i.getAttribute("maxx")),
|
|
868
|
+
Dt(i.getAttribute("maxy"))
|
|
878
869
|
];
|
|
879
870
|
}
|
|
880
871
|
function Po(i, t) {
|
|
881
|
-
const e =
|
|
882
|
-
|
|
883
|
-
|
|
872
|
+
const e = er(i), n = [
|
|
873
|
+
Dt(i.getAttribute("resx")),
|
|
874
|
+
Dt(i.getAttribute("resy"))
|
|
884
875
|
];
|
|
885
876
|
return {
|
|
886
877
|
crs: i.getAttribute("CRS") || i.getAttribute("SRS"),
|
|
@@ -889,7 +880,7 @@ function Po(i, t) {
|
|
|
889
880
|
};
|
|
890
881
|
}
|
|
891
882
|
function Oo(i, t) {
|
|
892
|
-
const e =
|
|
883
|
+
const e = er(i);
|
|
893
884
|
if (!(!A(e[0]) || !A(e[1]) || !A(e[2]) || !A(e[3])))
|
|
894
885
|
return e;
|
|
895
886
|
}
|
|
@@ -932,7 +923,7 @@ function Mo(i, t) {
|
|
|
932
923
|
function Io(i, t) {
|
|
933
924
|
return Q({}, Jo, i, t);
|
|
934
925
|
}
|
|
935
|
-
function
|
|
926
|
+
function Ho(i, t) {
|
|
936
927
|
return Q(
|
|
937
928
|
{},
|
|
938
929
|
Ko,
|
|
@@ -940,7 +931,7 @@ function No(i, t) {
|
|
|
940
931
|
t
|
|
941
932
|
);
|
|
942
933
|
}
|
|
943
|
-
function
|
|
934
|
+
function No(i, t) {
|
|
944
935
|
return Q(
|
|
945
936
|
{},
|
|
946
937
|
Qo,
|
|
@@ -970,7 +961,7 @@ function Bo(i, t) {
|
|
|
970
961
|
{
|
|
971
962
|
queryable: A(e) ? e : !1
|
|
972
963
|
},
|
|
973
|
-
|
|
964
|
+
rr,
|
|
974
965
|
i,
|
|
975
966
|
t
|
|
976
967
|
);
|
|
@@ -984,7 +975,7 @@ function Uo(i, t) {
|
|
|
984
975
|
/** @type {Object.<string,*>} */
|
|
985
976
|
Q(
|
|
986
977
|
{},
|
|
987
|
-
|
|
978
|
+
rr,
|
|
988
979
|
i,
|
|
989
980
|
t
|
|
990
981
|
)
|
|
@@ -992,25 +983,25 @@ function Uo(i, t) {
|
|
|
992
983
|
if (!A(n)) return;
|
|
993
984
|
let r = Qt(i.getAttribute("queryable"));
|
|
994
985
|
A(r) || (r = e.queryable), n.queryable = A(r) ? r : !1;
|
|
995
|
-
let o =
|
|
986
|
+
let o = Je(i.getAttribute("cascaded"));
|
|
996
987
|
A(o) || (o = e.cascaded), n.cascaded = o;
|
|
997
988
|
let s = Qt(i.getAttribute("opaque"));
|
|
998
989
|
A(s) || (s = e.opaque), n.opaque = A(s) ? s : !1;
|
|
999
990
|
let a = Qt(i.getAttribute("noSubsets"));
|
|
1000
991
|
A(a) || (a = e.noSubsets), n.noSubsets = A(a) ? a : !1;
|
|
1001
|
-
let l =
|
|
992
|
+
let l = Dt(i.getAttribute("fixedWidth"));
|
|
1002
993
|
A(l) || (l = e.fixedWidth), n.fixedWidth = l;
|
|
1003
|
-
let d =
|
|
994
|
+
let d = Dt(i.getAttribute("fixedHeight"));
|
|
1004
995
|
A(d) || (d = e.fixedHeight), n.fixedHeight = d;
|
|
1005
|
-
const
|
|
1006
|
-
for (let p = 0, f =
|
|
1007
|
-
const g =
|
|
996
|
+
const c = ["Style", "CRS", "AuthorityURL"];
|
|
997
|
+
for (let p = 0, f = c.length; p < f; p++) {
|
|
998
|
+
const g = c[p], b = e[g];
|
|
1008
999
|
if (A(b)) {
|
|
1009
|
-
let
|
|
1010
|
-
|
|
1000
|
+
let H = Kn(n, g, []);
|
|
1001
|
+
H = H.concat(b), n[g] = H;
|
|
1011
1002
|
}
|
|
1012
1003
|
}
|
|
1013
|
-
const
|
|
1004
|
+
const u = [
|
|
1014
1005
|
"EX_GeographicBoundingBox",
|
|
1015
1006
|
"BoundingBox",
|
|
1016
1007
|
"Dimension",
|
|
@@ -1018,11 +1009,11 @@ function Uo(i, t) {
|
|
|
1018
1009
|
"MinScaleDenominator",
|
|
1019
1010
|
"MaxScaleDenominator"
|
|
1020
1011
|
];
|
|
1021
|
-
for (let p = 0, f =
|
|
1022
|
-
const g =
|
|
1012
|
+
for (let p = 0, f = u.length; p < f; p++) {
|
|
1013
|
+
const g = u[p], b = n[g];
|
|
1023
1014
|
if (!A(b)) {
|
|
1024
|
-
const
|
|
1025
|
-
n[g] =
|
|
1015
|
+
const H = e[g];
|
|
1016
|
+
n[g] = H;
|
|
1026
1017
|
}
|
|
1027
1018
|
}
|
|
1028
1019
|
return n;
|
|
@@ -1039,7 +1030,7 @@ function Fo(i, t) {
|
|
|
1039
1030
|
values: O(i)
|
|
1040
1031
|
};
|
|
1041
1032
|
}
|
|
1042
|
-
function
|
|
1033
|
+
function Ot(i, t) {
|
|
1043
1034
|
return Q(
|
|
1044
1035
|
{},
|
|
1045
1036
|
ds,
|
|
@@ -1059,33 +1050,33 @@ function Zo(i, t) {
|
|
|
1059
1050
|
function Ii(i, t) {
|
|
1060
1051
|
return Q({}, os, i, t);
|
|
1061
1052
|
}
|
|
1062
|
-
function
|
|
1063
|
-
var e =
|
|
1053
|
+
function ir(i, t) {
|
|
1054
|
+
var e = Ot(i, t);
|
|
1064
1055
|
if (A(e)) {
|
|
1065
1056
|
const n = [
|
|
1066
|
-
|
|
1067
|
-
|
|
1057
|
+
Je(i.getAttribute("width")),
|
|
1058
|
+
Je(i.getAttribute("height"))
|
|
1068
1059
|
];
|
|
1069
1060
|
return e.size = n, e;
|
|
1070
1061
|
}
|
|
1071
1062
|
}
|
|
1072
1063
|
function qo(i, t) {
|
|
1073
|
-
var e =
|
|
1064
|
+
var e = Ot(i, t);
|
|
1074
1065
|
if (A(e))
|
|
1075
1066
|
return e.name = i.getAttribute("name"), e;
|
|
1076
1067
|
}
|
|
1077
1068
|
function Xo(i, t) {
|
|
1078
|
-
var e =
|
|
1069
|
+
var e = Ot(i, t);
|
|
1079
1070
|
if (A(e))
|
|
1080
1071
|
return e.type = i.getAttribute("type"), e;
|
|
1081
1072
|
}
|
|
1082
|
-
function
|
|
1073
|
+
function Wo(i, t) {
|
|
1083
1074
|
return Q({}, ls, i, t);
|
|
1084
1075
|
}
|
|
1085
|
-
function
|
|
1076
|
+
function nr(i, t) {
|
|
1086
1077
|
return Q(
|
|
1087
1078
|
[],
|
|
1088
|
-
|
|
1079
|
+
us,
|
|
1089
1080
|
i,
|
|
1090
1081
|
t
|
|
1091
1082
|
);
|
|
@@ -1093,7 +1084,7 @@ function cr(i, t) {
|
|
|
1093
1084
|
const rt = [
|
|
1094
1085
|
null,
|
|
1095
1086
|
"http://www.opengis.net/wms"
|
|
1096
|
-
],
|
|
1087
|
+
], Yo = nt(
|
|
1097
1088
|
rt,
|
|
1098
1089
|
{
|
|
1099
1090
|
Service: y(Io),
|
|
@@ -1112,9 +1103,9 @@ const rt = [
|
|
|
1112
1103
|
Name: y(O),
|
|
1113
1104
|
Title: y(O),
|
|
1114
1105
|
Abstract: y(O),
|
|
1115
|
-
KeywordList: y(
|
|
1116
|
-
OnlineResource: y(
|
|
1117
|
-
ContactInformation: y(
|
|
1106
|
+
KeywordList: y(nr),
|
|
1107
|
+
OnlineResource: y(an),
|
|
1108
|
+
ContactInformation: y(Ho),
|
|
1118
1109
|
Fees: y(O),
|
|
1119
1110
|
AccessConstraints: y(O),
|
|
1120
1111
|
LayerLimit: y(Mi),
|
|
@@ -1124,7 +1115,7 @@ const rt = [
|
|
|
1124
1115
|
), Ko = nt(
|
|
1125
1116
|
rt,
|
|
1126
1117
|
{
|
|
1127
|
-
ContactPersonPrimary: y(
|
|
1118
|
+
ContactPersonPrimary: y(No),
|
|
1128
1119
|
ContactPosition: y(O),
|
|
1129
1120
|
ContactAddress: y(Vo),
|
|
1130
1121
|
ContactVoiceTelephone: y(O),
|
|
@@ -1150,15 +1141,15 @@ const rt = [
|
|
|
1150
1141
|
), es = nt(
|
|
1151
1142
|
rt,
|
|
1152
1143
|
{
|
|
1153
|
-
Format:
|
|
1144
|
+
Format: tr(O)
|
|
1154
1145
|
}
|
|
1155
|
-
),
|
|
1146
|
+
), rr = nt(
|
|
1156
1147
|
rt,
|
|
1157
1148
|
{
|
|
1158
1149
|
Name: y(O),
|
|
1159
1150
|
Title: y(O),
|
|
1160
1151
|
Abstract: y(O),
|
|
1161
|
-
KeywordList: y(
|
|
1152
|
+
KeywordList: y(nr),
|
|
1162
1153
|
CRS: pt(O),
|
|
1163
1154
|
SRS: pt(O),
|
|
1164
1155
|
EX_GeographicBoundingBox: y(Lo),
|
|
@@ -1169,11 +1160,11 @@ const rt = [
|
|
|
1169
1160
|
AuthorityURL: pt(qo),
|
|
1170
1161
|
Identifier: pt(O),
|
|
1171
1162
|
MetadataURL: pt(Xo),
|
|
1172
|
-
DataURL: pt(
|
|
1173
|
-
FeatureListURL: pt(
|
|
1174
|
-
Style: pt(
|
|
1175
|
-
MinScaleDenominator: y(
|
|
1176
|
-
MaxScaleDenominator: y(
|
|
1163
|
+
DataURL: pt(Ot),
|
|
1164
|
+
FeatureListURL: pt(Ot),
|
|
1165
|
+
Style: pt(Wo),
|
|
1166
|
+
MinScaleDenominator: y(se),
|
|
1167
|
+
MaxScaleDenominator: y(se),
|
|
1177
1168
|
ScaleHint: y(Ro),
|
|
1178
1169
|
Layer: pt(Uo)
|
|
1179
1170
|
}
|
|
@@ -1181,14 +1172,14 @@ const rt = [
|
|
|
1181
1172
|
rt,
|
|
1182
1173
|
{
|
|
1183
1174
|
Title: y(O),
|
|
1184
|
-
OnlineResource: y(
|
|
1185
|
-
LogoURL: y(
|
|
1175
|
+
OnlineResource: y(an),
|
|
1176
|
+
LogoURL: y(ir)
|
|
1186
1177
|
}
|
|
1187
1178
|
), ns = nt(rt, {
|
|
1188
|
-
westBoundLongitude: y(
|
|
1189
|
-
eastBoundLongitude: y(
|
|
1190
|
-
southBoundLatitude: y(
|
|
1191
|
-
northBoundLatitude: y(
|
|
1179
|
+
westBoundLongitude: y(se),
|
|
1180
|
+
eastBoundLongitude: y(se),
|
|
1181
|
+
southBoundLatitude: y(se),
|
|
1182
|
+
northBoundLatitude: y(se)
|
|
1192
1183
|
}), rs = nt(
|
|
1193
1184
|
rt,
|
|
1194
1185
|
{
|
|
@@ -1221,10 +1212,10 @@ const rt = [
|
|
|
1221
1212
|
rt,
|
|
1222
1213
|
{
|
|
1223
1214
|
Get: y(
|
|
1224
|
-
|
|
1215
|
+
Ot
|
|
1225
1216
|
),
|
|
1226
1217
|
Post: y(
|
|
1227
|
-
|
|
1218
|
+
Ot
|
|
1228
1219
|
)
|
|
1229
1220
|
}
|
|
1230
1221
|
), ls = nt(
|
|
@@ -1233,23 +1224,23 @@ const rt = [
|
|
|
1233
1224
|
Name: y(O),
|
|
1234
1225
|
Title: y(O),
|
|
1235
1226
|
Abstract: y(O),
|
|
1236
|
-
LegendURL: pt(
|
|
1237
|
-
StyleSheetURL: y(
|
|
1238
|
-
StyleURL: y(
|
|
1227
|
+
LegendURL: pt(ir),
|
|
1228
|
+
StyleSheetURL: y(Ot),
|
|
1229
|
+
StyleURL: y(Ot)
|
|
1239
1230
|
}
|
|
1240
1231
|
), ds = nt(
|
|
1241
1232
|
rt,
|
|
1242
1233
|
{
|
|
1243
1234
|
Format: y(O),
|
|
1244
|
-
OnlineResource: y(
|
|
1235
|
+
OnlineResource: y(an)
|
|
1245
1236
|
}
|
|
1246
|
-
),
|
|
1237
|
+
), us = nt(
|
|
1247
1238
|
rt,
|
|
1248
1239
|
{
|
|
1249
|
-
Keyword:
|
|
1240
|
+
Keyword: tr(O)
|
|
1250
1241
|
}
|
|
1251
1242
|
);
|
|
1252
|
-
class
|
|
1243
|
+
class cs {
|
|
1253
1244
|
/**
|
|
1254
1245
|
* WMS Capabilities parser
|
|
1255
1246
|
*
|
|
@@ -1297,7 +1288,7 @@ class us {
|
|
|
1297
1288
|
readFromNode(t) {
|
|
1298
1289
|
return this.version = t.getAttribute("version"), Q({
|
|
1299
1290
|
version: this.version
|
|
1300
|
-
},
|
|
1291
|
+
}, Yo, t, []) || null;
|
|
1301
1292
|
}
|
|
1302
1293
|
}
|
|
1303
1294
|
async function hs(i) {
|
|
@@ -1307,19 +1298,19 @@ async function hs(i) {
|
|
|
1307
1298
|
const r = await fetch(n);
|
|
1308
1299
|
if (r.ok) {
|
|
1309
1300
|
const o = await r.text();
|
|
1310
|
-
return new
|
|
1301
|
+
return new cs(o).toJSON();
|
|
1311
1302
|
} else
|
|
1312
1303
|
throw new Error(`Error: ${r.status}`);
|
|
1313
1304
|
}
|
|
1314
|
-
function
|
|
1305
|
+
function ln(i) {
|
|
1315
1306
|
const t = /\b(?:wms|ows)\b/i, e = /{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;
|
|
1316
1307
|
return t.test(i) ? "TileWMS" : e.test(i) ? "XYZ" : !1;
|
|
1317
1308
|
}
|
|
1318
1309
|
function ps(i) {
|
|
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 =
|
|
1310
|
+
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 = ln(i);
|
|
1320
1311
|
return !!(i && e && n);
|
|
1321
1312
|
}
|
|
1322
|
-
function
|
|
1313
|
+
function or(i) {
|
|
1323
1314
|
return i.replace(
|
|
1324
1315
|
/(['"])?([a-zA-Z0-9_]+)(['"])?:/g,
|
|
1325
1316
|
'"$2": '
|
|
@@ -1327,7 +1318,7 @@ function hr(i) {
|
|
|
1327
1318
|
}
|
|
1328
1319
|
function fs(i) {
|
|
1329
1320
|
try {
|
|
1330
|
-
return JSON.parse(
|
|
1321
|
+
return JSON.parse(or(i)), !!i;
|
|
1331
1322
|
} catch {
|
|
1332
1323
|
return !1;
|
|
1333
1324
|
}
|
|
@@ -1348,7 +1339,7 @@ function gs(i, t) {
|
|
|
1348
1339
|
* @author owenm <owen23355@gmail.com>
|
|
1349
1340
|
* @license MIT
|
|
1350
1341
|
*/
|
|
1351
|
-
function
|
|
1342
|
+
function Dn(i, t) {
|
|
1352
1343
|
var e = Object.keys(i);
|
|
1353
1344
|
if (Object.getOwnPropertySymbols) {
|
|
1354
1345
|
var n = Object.getOwnPropertySymbols(i);
|
|
@@ -1361,21 +1352,21 @@ function On(i, t) {
|
|
|
1361
1352
|
function At(i) {
|
|
1362
1353
|
for (var t = 1; t < arguments.length; t++) {
|
|
1363
1354
|
var e = arguments[t] != null ? arguments[t] : {};
|
|
1364
|
-
t % 2 ?
|
|
1355
|
+
t % 2 ? Dn(Object(e), !0).forEach(function(n) {
|
|
1365
1356
|
ms(i, n, e[n]);
|
|
1366
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(e)) :
|
|
1357
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(e)) : Dn(Object(e)).forEach(function(n) {
|
|
1367
1358
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(e, n));
|
|
1368
1359
|
});
|
|
1369
1360
|
}
|
|
1370
1361
|
return i;
|
|
1371
1362
|
}
|
|
1372
|
-
function
|
|
1363
|
+
function je(i) {
|
|
1373
1364
|
"@babel/helpers - typeof";
|
|
1374
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
1365
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? je = function(t) {
|
|
1375
1366
|
return typeof t;
|
|
1376
|
-
} :
|
|
1367
|
+
} : je = function(t) {
|
|
1377
1368
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1378
|
-
},
|
|
1369
|
+
}, je(i);
|
|
1379
1370
|
}
|
|
1380
1371
|
function ms(i, t, e) {
|
|
1381
1372
|
return t in i ? Object.defineProperty(i, t, {
|
|
@@ -1385,15 +1376,15 @@ function ms(i, t, e) {
|
|
|
1385
1376
|
writable: !0
|
|
1386
1377
|
}) : i[t] = e, i;
|
|
1387
1378
|
}
|
|
1388
|
-
function
|
|
1389
|
-
return
|
|
1379
|
+
function Rt() {
|
|
1380
|
+
return Rt = Object.assign || function(i) {
|
|
1390
1381
|
for (var t = 1; t < arguments.length; t++) {
|
|
1391
1382
|
var e = arguments[t];
|
|
1392
1383
|
for (var n in e)
|
|
1393
1384
|
Object.prototype.hasOwnProperty.call(e, n) && (i[n] = e[n]);
|
|
1394
1385
|
}
|
|
1395
1386
|
return i;
|
|
1396
|
-
},
|
|
1387
|
+
}, Rt.apply(this, arguments);
|
|
1397
1388
|
}
|
|
1398
1389
|
function ys(i, t) {
|
|
1399
1390
|
if (i == null) return {};
|
|
@@ -1413,21 +1404,21 @@ function bs(i, t) {
|
|
|
1413
1404
|
return e;
|
|
1414
1405
|
}
|
|
1415
1406
|
var vs = "1.15.6";
|
|
1416
|
-
function
|
|
1407
|
+
function Pt(i) {
|
|
1417
1408
|
if (typeof window < "u" && window.navigator)
|
|
1418
1409
|
return !!/* @__PURE__ */ navigator.userAgent.match(i);
|
|
1419
1410
|
}
|
|
1420
|
-
var
|
|
1411
|
+
var Lt = Pt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Le = Pt(/Edge/i), Pn = Pt(/firefox/i), xe = Pt(/safari/i) && !Pt(/chrome/i) && !Pt(/android/i), dn = Pt(/iP(ad|od|hone)/i), sr = Pt(/chrome/i) && Pt(/android/i), ar = {
|
|
1421
1412
|
capture: !1,
|
|
1422
1413
|
passive: !1
|
|
1423
1414
|
};
|
|
1424
1415
|
function T(i, t, e) {
|
|
1425
|
-
i.addEventListener(t, e, !
|
|
1416
|
+
i.addEventListener(t, e, !Lt && ar);
|
|
1426
1417
|
}
|
|
1427
|
-
function
|
|
1428
|
-
i.removeEventListener(t, e, !
|
|
1418
|
+
function C(i, t, e) {
|
|
1419
|
+
i.removeEventListener(t, e, !Lt && ar);
|
|
1429
1420
|
}
|
|
1430
|
-
function
|
|
1421
|
+
function Ke(i, t) {
|
|
1431
1422
|
if (t) {
|
|
1432
1423
|
if (t[0] === ">" && (t = t.substring(1)), i)
|
|
1433
1424
|
try {
|
|
@@ -1443,28 +1434,28 @@ function Qe(i, t) {
|
|
|
1443
1434
|
return !1;
|
|
1444
1435
|
}
|
|
1445
1436
|
}
|
|
1446
|
-
function
|
|
1437
|
+
function lr(i) {
|
|
1447
1438
|
return i.host && i !== document && i.host.nodeType ? i.host : i.parentNode;
|
|
1448
1439
|
}
|
|
1449
|
-
function
|
|
1440
|
+
function $t(i, t, e, n) {
|
|
1450
1441
|
if (i) {
|
|
1451
1442
|
e = e || document;
|
|
1452
1443
|
do {
|
|
1453
|
-
if (t != null && (t[0] === ">" ? i.parentNode === e &&
|
|
1444
|
+
if (t != null && (t[0] === ">" ? i.parentNode === e && Ke(i, t) : Ke(i, t)) || n && i === e)
|
|
1454
1445
|
return i;
|
|
1455
1446
|
if (i === e) break;
|
|
1456
|
-
} while (i =
|
|
1447
|
+
} while (i = lr(i));
|
|
1457
1448
|
}
|
|
1458
1449
|
return null;
|
|
1459
1450
|
}
|
|
1460
|
-
var
|
|
1451
|
+
var On = /\s+/g;
|
|
1461
1452
|
function mt(i, t, e) {
|
|
1462
1453
|
if (i && t)
|
|
1463
1454
|
if (i.classList)
|
|
1464
1455
|
i.classList[e ? "add" : "remove"](t);
|
|
1465
1456
|
else {
|
|
1466
|
-
var n = (" " + i.className + " ").replace(
|
|
1467
|
-
i.className = (n + (e ? " " + t : "")).replace(
|
|
1457
|
+
var n = (" " + i.className + " ").replace(On, " ").replace(" " + t + " ", " ");
|
|
1458
|
+
i.className = (n + (e ? " " + t : "")).replace(On, " ");
|
|
1468
1459
|
}
|
|
1469
1460
|
}
|
|
1470
1461
|
function v(i, t, e) {
|
|
@@ -1475,7 +1466,7 @@ function v(i, t, e) {
|
|
|
1475
1466
|
!(t in n) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), n[t] = e + (typeof e == "string" ? "" : "px");
|
|
1476
1467
|
}
|
|
1477
1468
|
}
|
|
1478
|
-
function
|
|
1469
|
+
function le(i, t) {
|
|
1479
1470
|
var e = "";
|
|
1480
1471
|
if (typeof i == "string")
|
|
1481
1472
|
e = i;
|
|
@@ -1487,7 +1478,7 @@ function de(i, t) {
|
|
|
1487
1478
|
var r = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
1488
1479
|
return r && new r(e);
|
|
1489
1480
|
}
|
|
1490
|
-
function
|
|
1481
|
+
function dr(i, t, e) {
|
|
1491
1482
|
if (i) {
|
|
1492
1483
|
var n = i.getElementsByTagName(t), r = 0, o = n.length;
|
|
1493
1484
|
if (e)
|
|
@@ -1501,10 +1492,10 @@ function St() {
|
|
|
1501
1492
|
var i = document.scrollingElement;
|
|
1502
1493
|
return i || document.documentElement;
|
|
1503
1494
|
}
|
|
1504
|
-
function
|
|
1495
|
+
function Y(i, t, e, n, r) {
|
|
1505
1496
|
if (!(!i.getBoundingClientRect && i !== window)) {
|
|
1506
|
-
var o, s, a, l, d,
|
|
1507
|
-
if (i !== window && i.parentNode && i !== St() ? (o = i.getBoundingClientRect(), s = o.top, a = o.left, l = o.bottom, d = o.right,
|
|
1497
|
+
var o, s, a, l, d, c, u;
|
|
1498
|
+
if (i !== window && i.parentNode && i !== St() ? (o = i.getBoundingClientRect(), s = o.top, a = o.left, l = o.bottom, d = o.right, c = o.height, u = o.width) : (s = 0, a = 0, l = window.innerHeight, d = window.innerWidth, c = window.innerHeight, u = window.innerWidth), (t || e) && i !== window && (r = r || i.parentNode, !Lt))
|
|
1508
1499
|
do
|
|
1509
1500
|
if (r && r.getBoundingClientRect && (v(r, "transform") !== "none" || e && v(r, "position") !== "static")) {
|
|
1510
1501
|
var p = r.getBoundingClientRect();
|
|
@@ -1513,31 +1504,31 @@ function W(i, t, e, n, r) {
|
|
|
1513
1504
|
}
|
|
1514
1505
|
while (r = r.parentNode);
|
|
1515
1506
|
if (n && i !== window) {
|
|
1516
|
-
var f =
|
|
1517
|
-
f && (s /= b, a /= g,
|
|
1507
|
+
var f = le(r || i), g = f && f.a, b = f && f.d;
|
|
1508
|
+
f && (s /= b, a /= g, u /= g, c /= b, l = s + c, d = a + u);
|
|
1518
1509
|
}
|
|
1519
1510
|
return {
|
|
1520
1511
|
top: s,
|
|
1521
1512
|
left: a,
|
|
1522
1513
|
bottom: l,
|
|
1523
1514
|
right: d,
|
|
1524
|
-
width:
|
|
1525
|
-
height:
|
|
1515
|
+
width: u,
|
|
1516
|
+
height: c
|
|
1526
1517
|
};
|
|
1527
1518
|
}
|
|
1528
1519
|
}
|
|
1529
|
-
function
|
|
1530
|
-
for (var n = Bt(i, !0), r =
|
|
1531
|
-
var o =
|
|
1520
|
+
function Rn(i, t, e) {
|
|
1521
|
+
for (var n = Bt(i, !0), r = Y(i)[t]; n; ) {
|
|
1522
|
+
var o = Y(n)[e], s = void 0;
|
|
1532
1523
|
if (s = r >= o, !s) return n;
|
|
1533
1524
|
if (n === St()) break;
|
|
1534
1525
|
n = Bt(n, !1);
|
|
1535
1526
|
}
|
|
1536
1527
|
return !1;
|
|
1537
1528
|
}
|
|
1538
|
-
function
|
|
1529
|
+
function ce(i, t, e, n) {
|
|
1539
1530
|
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) &&
|
|
1531
|
+
if (s[o].style.display !== "none" && s[o] !== w.ghost && (n || s[o] !== w.dragged) && $t(s[o], e.draggable, i, !1)) {
|
|
1541
1532
|
if (r === t)
|
|
1542
1533
|
return s[o];
|
|
1543
1534
|
r++;
|
|
@@ -1546,8 +1537,8 @@ function ue(i, t, e, n) {
|
|
|
1546
1537
|
}
|
|
1547
1538
|
return null;
|
|
1548
1539
|
}
|
|
1549
|
-
function
|
|
1550
|
-
for (var e = i.lastElementChild; e && (e === w.ghost || v(e, "display") === "none" || t && !
|
|
1540
|
+
function un(i, t) {
|
|
1541
|
+
for (var e = i.lastElementChild; e && (e === w.ghost || v(e, "display") === "none" || t && !Ke(e, t)); )
|
|
1551
1542
|
e = e.previousElementSibling;
|
|
1552
1543
|
return e || null;
|
|
1553
1544
|
}
|
|
@@ -1556,14 +1547,14 @@ function bt(i, t) {
|
|
|
1556
1547
|
if (!i || !i.parentNode)
|
|
1557
1548
|
return -1;
|
|
1558
1549
|
for (; i = i.previousElementSibling; )
|
|
1559
|
-
i.nodeName.toUpperCase() !== "TEMPLATE" && i !== w.clone && (!t ||
|
|
1550
|
+
i.nodeName.toUpperCase() !== "TEMPLATE" && i !== w.clone && (!t || Ke(i, t)) && e++;
|
|
1560
1551
|
return e;
|
|
1561
1552
|
}
|
|
1562
|
-
function
|
|
1553
|
+
function Ln(i) {
|
|
1563
1554
|
var t = 0, e = 0, n = St();
|
|
1564
1555
|
if (i)
|
|
1565
1556
|
do {
|
|
1566
|
-
var r =
|
|
1557
|
+
var r = le(i), o = r.a, s = r.d;
|
|
1567
1558
|
t += i.scrollLeft * o, e += i.scrollTop * s;
|
|
1568
1559
|
} while (i !== n && (i = i.parentNode));
|
|
1569
1560
|
return [t, e];
|
|
@@ -1597,42 +1588,42 @@ function xs(i, t) {
|
|
|
1597
1588
|
t.hasOwnProperty(e) && (i[e] = t[e]);
|
|
1598
1589
|
return i;
|
|
1599
1590
|
}
|
|
1600
|
-
function
|
|
1591
|
+
function Hi(i, t) {
|
|
1601
1592
|
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
1593
|
}
|
|
1603
|
-
var
|
|
1604
|
-
function
|
|
1594
|
+
var $e;
|
|
1595
|
+
function ur(i, t) {
|
|
1605
1596
|
return function() {
|
|
1606
|
-
if (
|
|
1597
|
+
if (!$e) {
|
|
1607
1598
|
var e = arguments, n = this;
|
|
1608
|
-
e.length === 1 ? i.call(n, e[0]) : i.apply(n, e),
|
|
1609
|
-
|
|
1599
|
+
e.length === 1 ? i.call(n, e[0]) : i.apply(n, e), $e = setTimeout(function() {
|
|
1600
|
+
$e = void 0;
|
|
1610
1601
|
}, t);
|
|
1611
1602
|
}
|
|
1612
1603
|
};
|
|
1613
1604
|
}
|
|
1614
|
-
function
|
|
1615
|
-
clearTimeout(
|
|
1605
|
+
function $s() {
|
|
1606
|
+
clearTimeout($e), $e = void 0;
|
|
1616
1607
|
}
|
|
1617
|
-
function
|
|
1608
|
+
function cr(i, t, e) {
|
|
1618
1609
|
i.scrollLeft += t, i.scrollTop += e;
|
|
1619
1610
|
}
|
|
1620
|
-
function
|
|
1611
|
+
function hr(i) {
|
|
1621
1612
|
var t = window.Polymer, e = window.jQuery || window.Zepto;
|
|
1622
1613
|
return t && t.dom ? t.dom(i).cloneNode(!0) : e ? e(i).clone(!0)[0] : i.cloneNode(!0);
|
|
1623
1614
|
}
|
|
1624
|
-
function
|
|
1615
|
+
function pr(i, t, e) {
|
|
1625
1616
|
var n = {};
|
|
1626
1617
|
return Array.from(i.children).forEach(function(r) {
|
|
1627
1618
|
var o, s, a, l;
|
|
1628
|
-
if (!(
|
|
1629
|
-
var d =
|
|
1619
|
+
if (!(!$t(r, t.draggable, i, !1) || r.animated || r === e)) {
|
|
1620
|
+
var d = Y(r);
|
|
1630
1621
|
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
1622
|
}
|
|
1632
1623
|
}), n.width = n.right - n.left, n.height = n.bottom - n.top, n.x = n.left, n.y = n.top, n;
|
|
1633
1624
|
}
|
|
1634
1625
|
var ft = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
1635
|
-
function
|
|
1626
|
+
function Es() {
|
|
1636
1627
|
var i = [], t;
|
|
1637
1628
|
return {
|
|
1638
1629
|
captureAnimationState: function() {
|
|
@@ -1642,11 +1633,11 @@ function $s() {
|
|
|
1642
1633
|
if (!(v(r, "display") === "none" || r === w.ghost)) {
|
|
1643
1634
|
i.push({
|
|
1644
1635
|
target: r,
|
|
1645
|
-
rect:
|
|
1636
|
+
rect: Y(r)
|
|
1646
1637
|
});
|
|
1647
1638
|
var o = At({}, i[i.length - 1].rect);
|
|
1648
1639
|
if (r.thisAnimationDuration) {
|
|
1649
|
-
var s =
|
|
1640
|
+
var s = le(r, !0);
|
|
1650
1641
|
s && (o.top -= s.f, o.left -= s.e);
|
|
1651
1642
|
}
|
|
1652
1643
|
r.fromRect = o;
|
|
@@ -1670,9 +1661,9 @@ function $s() {
|
|
|
1670
1661
|
}
|
|
1671
1662
|
var o = !1, s = 0;
|
|
1672
1663
|
i.forEach(function(a) {
|
|
1673
|
-
var l = 0, d = a.target,
|
|
1674
|
-
b && (
|
|
1675
|
-
(g.top -
|
|
1664
|
+
var l = 0, d = a.target, c = d.fromRect, u = Y(d), p = d.prevFromRect, f = d.prevToRect, g = a.rect, b = le(d, !0);
|
|
1665
|
+
b && (u.top -= b.f, u.left -= b.e), d.toRect = u, d.thisAnimationDuration && Hi(p, u) && !Hi(c, u) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1666
|
+
(g.top - u.top) / (g.left - u.left) === (c.top - u.top) / (c.left - u.left) && (l = As(g, p, f, r.options)), Hi(u, c) || (d.prevFromRect = c, d.prevToRect = u, l || (l = r.options.animation), r.animate(d, g, u, l)), l && (o = !0, s = Math.max(s, l), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
|
|
1676
1667
|
d.animationTime = 0, d.prevFromRect = null, d.fromRect = null, d.prevToRect = null, d.thisAnimationDuration = null;
|
|
1677
1668
|
}, l), d.thisAnimationDuration = l);
|
|
1678
1669
|
}), clearTimeout(t), o ? t = setTimeout(function() {
|
|
@@ -1682,8 +1673,8 @@ function $s() {
|
|
|
1682
1673
|
animate: function(n, r, o, s) {
|
|
1683
1674
|
if (s) {
|
|
1684
1675
|
v(n, "transition", ""), v(n, "transform", "");
|
|
1685
|
-
var a =
|
|
1686
|
-
n.animatingX = !!
|
|
1676
|
+
var a = le(this.el), l = a && a.a, d = a && a.d, c = (r.left - o.left) / (l || 1), u = (r.top - o.top) / (d || 1);
|
|
1677
|
+
n.animatingX = !!c, n.animatingY = !!u, v(n, "transform", "translate3d(" + c + "px," + u + "px,0)"), this.forRepaintDummy = Ss(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
1678
|
v(n, "transition", ""), v(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
|
|
1688
1679
|
}, s);
|
|
1689
1680
|
}
|
|
@@ -1696,16 +1687,16 @@ function Ss(i) {
|
|
|
1696
1687
|
function As(i, t, e, n) {
|
|
1697
1688
|
return Math.sqrt(Math.pow(t.top - i.top, 2) + Math.pow(t.left - i.left, 2)) / Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) * n.animation;
|
|
1698
1689
|
}
|
|
1699
|
-
var
|
|
1690
|
+
var ee = [], Ni = {
|
|
1700
1691
|
initializeByDefault: !0
|
|
1701
|
-
},
|
|
1692
|
+
}, Me = {
|
|
1702
1693
|
mount: function(t) {
|
|
1703
|
-
for (var e in
|
|
1704
|
-
|
|
1705
|
-
|
|
1694
|
+
for (var e in Ni)
|
|
1695
|
+
Ni.hasOwnProperty(e) && !(e in t) && (t[e] = Ni[e]);
|
|
1696
|
+
ee.forEach(function(n) {
|
|
1706
1697
|
if (n.pluginName === t.pluginName)
|
|
1707
1698
|
throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
|
|
1708
|
-
}),
|
|
1699
|
+
}), ee.push(t);
|
|
1709
1700
|
},
|
|
1710
1701
|
pluginEvent: function(t, e, n) {
|
|
1711
1702
|
var r = this;
|
|
@@ -1713,7 +1704,7 @@ var ie = [], Hi = {
|
|
|
1713
1704
|
r.eventCanceled = !0;
|
|
1714
1705
|
};
|
|
1715
1706
|
var o = t + "Global";
|
|
1716
|
-
|
|
1707
|
+
ee.forEach(function(s) {
|
|
1717
1708
|
e[s.pluginName] && (e[s.pluginName][o] && e[s.pluginName][o](At({
|
|
1718
1709
|
sortable: e
|
|
1719
1710
|
}, n)), e.options[s.pluginName] && e[s.pluginName][t] && e[s.pluginName][t](At({
|
|
@@ -1722,11 +1713,11 @@ var ie = [], Hi = {
|
|
|
1722
1713
|
});
|
|
1723
1714
|
},
|
|
1724
1715
|
initializePlugins: function(t, e, n, r) {
|
|
1725
|
-
|
|
1716
|
+
ee.forEach(function(a) {
|
|
1726
1717
|
var l = a.pluginName;
|
|
1727
1718
|
if (!(!t.options[l] && !a.initializeByDefault)) {
|
|
1728
1719
|
var d = new a(t, e, t.options);
|
|
1729
|
-
d.sortable = t, d.options = t.options, t[l] = d,
|
|
1720
|
+
d.sortable = t, d.options = t.options, t[l] = d, Rt(n, d.defaults);
|
|
1730
1721
|
}
|
|
1731
1722
|
});
|
|
1732
1723
|
for (var o in t.options)
|
|
@@ -1737,52 +1728,52 @@ var ie = [], Hi = {
|
|
|
1737
1728
|
},
|
|
1738
1729
|
getEventProperties: function(t, e) {
|
|
1739
1730
|
var n = {};
|
|
1740
|
-
return
|
|
1741
|
-
typeof r.eventProperties == "function" &&
|
|
1731
|
+
return ee.forEach(function(r) {
|
|
1732
|
+
typeof r.eventProperties == "function" && Rt(n, r.eventProperties.call(e[r.pluginName], t));
|
|
1742
1733
|
}), n;
|
|
1743
1734
|
},
|
|
1744
1735
|
modifyOption: function(t, e, n) {
|
|
1745
1736
|
var r;
|
|
1746
|
-
return
|
|
1737
|
+
return ee.forEach(function(o) {
|
|
1747
1738
|
t[o.pluginName] && o.optionListeners && typeof o.optionListeners[e] == "function" && (r = o.optionListeners[e].call(t[o.pluginName], n));
|
|
1748
1739
|
}), r;
|
|
1749
1740
|
}
|
|
1750
1741
|
};
|
|
1751
|
-
function
|
|
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,
|
|
1742
|
+
function _s(i) {
|
|
1743
|
+
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, c = i.oldDraggableIndex, u = i.newDraggableIndex, p = i.originalEvent, f = i.putSortable, g = i.extraEventProperties;
|
|
1753
1744
|
if (t = t || e && e[ft], !!t) {
|
|
1754
|
-
var b,
|
|
1755
|
-
window.CustomEvent && !
|
|
1745
|
+
var b, H = t.options, J = "on" + n.charAt(0).toUpperCase() + n.substr(1);
|
|
1746
|
+
window.CustomEvent && !Lt && !Le ? b = new CustomEvent(n, {
|
|
1756
1747
|
bubbles: !0,
|
|
1757
1748
|
cancelable: !0
|
|
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 =
|
|
1759
|
-
var F = At(At({}, g),
|
|
1749
|
+
}) : (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 = c, b.newDraggableIndex = u, b.originalEvent = p, b.pullMode = f ? f.lastPutMode : void 0;
|
|
1750
|
+
var F = At(At({}, g), Me.getEventProperties(n, t));
|
|
1760
1751
|
for (var st in F)
|
|
1761
1752
|
b[st] = F[st];
|
|
1762
|
-
e && e.dispatchEvent(b),
|
|
1753
|
+
e && e.dispatchEvent(b), H[J] && H[J].call(t, b);
|
|
1763
1754
|
}
|
|
1764
1755
|
}
|
|
1765
|
-
var
|
|
1766
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o = bs(n,
|
|
1767
|
-
|
|
1756
|
+
var Cs = ["evt"], ht = function(t, e) {
|
|
1757
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, o = bs(n, Cs);
|
|
1758
|
+
Me.pluginEvent.bind(w)(t, e, At({
|
|
1768
1759
|
dragEl: h,
|
|
1769
1760
|
parentEl: z,
|
|
1770
|
-
ghostEl:
|
|
1761
|
+
ghostEl: $,
|
|
1771
1762
|
rootEl: V,
|
|
1772
1763
|
nextEl: Jt,
|
|
1773
|
-
lastDownEl:
|
|
1764
|
+
lastDownEl: ze,
|
|
1774
1765
|
cloneEl: U,
|
|
1775
1766
|
cloneHidden: Vt,
|
|
1776
1767
|
dragStarted: me,
|
|
1777
1768
|
putSortable: et,
|
|
1778
1769
|
activeSortable: w.active,
|
|
1779
1770
|
originalEvent: r,
|
|
1780
|
-
oldIndex:
|
|
1781
|
-
oldDraggableIndex:
|
|
1771
|
+
oldIndex: ae,
|
|
1772
|
+
oldDraggableIndex: Ee,
|
|
1782
1773
|
newIndex: yt,
|
|
1783
1774
|
newDraggableIndex: Ht,
|
|
1784
|
-
hideGhostForTarget:
|
|
1785
|
-
unhideGhostForTarget:
|
|
1775
|
+
hideGhostForTarget: yr,
|
|
1776
|
+
unhideGhostForTarget: br,
|
|
1786
1777
|
cloneNowHidden: function() {
|
|
1787
1778
|
Vt = !0;
|
|
1788
1779
|
},
|
|
@@ -1799,76 +1790,76 @@ var _s = ["evt"], ht = function(t, e) {
|
|
|
1799
1790
|
}, o));
|
|
1800
1791
|
};
|
|
1801
1792
|
function at(i) {
|
|
1802
|
-
|
|
1793
|
+
_s(At({
|
|
1803
1794
|
putSortable: et,
|
|
1804
1795
|
cloneEl: U,
|
|
1805
1796
|
targetEl: h,
|
|
1806
1797
|
rootEl: V,
|
|
1807
|
-
oldIndex:
|
|
1808
|
-
oldDraggableIndex:
|
|
1798
|
+
oldIndex: ae,
|
|
1799
|
+
oldDraggableIndex: Ee,
|
|
1809
1800
|
newIndex: yt,
|
|
1810
1801
|
newDraggableIndex: Ht
|
|
1811
1802
|
}, i));
|
|
1812
1803
|
}
|
|
1813
|
-
var h, z,
|
|
1814
|
-
if (
|
|
1815
|
-
if (
|
|
1804
|
+
var h, z, $, V, Jt, ze, U, Vt, ae, yt, Ee, Ht, Ne, et, re = !1, Qe = !1, ti = [], Yt, xt, Vi, ki, Mn, In, me, ie, Se, Ae = !1, Ve = !1, Ze, ot, Bi = [], Wi = !1, ei = [], _i = typeof document < "u", ke = dn, Hn = Le || Lt ? "cssFloat" : "float", Ts = _i && !sr && !dn && "draggable" in document.createElement("div"), fr = function() {
|
|
1805
|
+
if (_i) {
|
|
1806
|
+
if (Lt)
|
|
1816
1807
|
return !1;
|
|
1817
1808
|
var i = document.createElement("x");
|
|
1818
1809
|
return i.style.cssText = "pointer-events:auto", i.style.pointerEvents === "auto";
|
|
1819
1810
|
}
|
|
1820
|
-
}(),
|
|
1821
|
-
var n = v(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o =
|
|
1811
|
+
}(), gr = function(t, e) {
|
|
1812
|
+
var n = v(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o = ce(t, 0, e), s = ce(t, 1, e), a = o && v(o), l = s && v(s), d = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + Y(o).width, c = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + Y(s).width;
|
|
1822
1813
|
if (n.display === "flex")
|
|
1823
1814
|
return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
1824
1815
|
if (n.display === "grid")
|
|
1825
1816
|
return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
1826
1817
|
if (o && a.float && a.float !== "none") {
|
|
1827
|
-
var
|
|
1828
|
-
return s && (l.clear === "both" || l.clear ===
|
|
1818
|
+
var u = a.float === "left" ? "left" : "right";
|
|
1819
|
+
return s && (l.clear === "both" || l.clear === u) ? "vertical" : "horizontal";
|
|
1829
1820
|
}
|
|
1830
|
-
return o && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || d >= r && n[
|
|
1821
|
+
return o && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || d >= r && n[Hn] === "none" || s && n[Hn] === "none" && d + c > r) ? "vertical" : "horizontal";
|
|
1831
1822
|
}, Ds = function(t, e, n) {
|
|
1832
1823
|
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
1824
|
return r === a || o === l || r + s / 2 === a + d / 2;
|
|
1834
1825
|
}, Ps = function(t, e) {
|
|
1835
1826
|
var n;
|
|
1836
|
-
return
|
|
1827
|
+
return ti.some(function(r) {
|
|
1837
1828
|
var o = r[ft].options.emptyInsertThreshold;
|
|
1838
|
-
if (!(!o ||
|
|
1839
|
-
var s =
|
|
1829
|
+
if (!(!o || un(r))) {
|
|
1830
|
+
var s = Y(r), a = t >= s.left - o && t <= s.right + o, l = e >= s.top - o && e <= s.bottom + o;
|
|
1840
1831
|
if (a && l)
|
|
1841
1832
|
return n = r;
|
|
1842
1833
|
}
|
|
1843
1834
|
}), n;
|
|
1844
|
-
},
|
|
1835
|
+
}, mr = function(t) {
|
|
1845
1836
|
function e(o, s) {
|
|
1846
|
-
return function(a, l, d,
|
|
1847
|
-
var
|
|
1848
|
-
if (o == null && (s ||
|
|
1837
|
+
return function(a, l, d, c) {
|
|
1838
|
+
var u = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
|
|
1839
|
+
if (o == null && (s || u))
|
|
1849
1840
|
return !0;
|
|
1850
1841
|
if (o == null || o === !1)
|
|
1851
1842
|
return !1;
|
|
1852
1843
|
if (s && o === "clone")
|
|
1853
1844
|
return o;
|
|
1854
1845
|
if (typeof o == "function")
|
|
1855
|
-
return e(o(a, l, d,
|
|
1846
|
+
return e(o(a, l, d, c), s)(a, l, d, c);
|
|
1856
1847
|
var p = (s ? a : l).options.group.name;
|
|
1857
1848
|
return o === !0 || typeof o == "string" && o === p || o.join && o.indexOf(p) > -1;
|
|
1858
1849
|
};
|
|
1859
1850
|
}
|
|
1860
1851
|
var n = {}, r = t.group;
|
|
1861
|
-
(!r ||
|
|
1852
|
+
(!r || je(r) != "object") && (r = {
|
|
1862
1853
|
name: r
|
|
1863
1854
|
}), n.name = r.name, n.checkPull = e(r.pull, !0), n.checkPut = e(r.put), n.revertClone = r.revertClone, t.group = n;
|
|
1864
|
-
},
|
|
1865
|
-
!
|
|
1866
|
-
},
|
|
1867
|
-
!
|
|
1855
|
+
}, yr = function() {
|
|
1856
|
+
!fr && $ && v($, "display", "none");
|
|
1857
|
+
}, br = function() {
|
|
1858
|
+
!fr && $ && v($, "display", "");
|
|
1868
1859
|
};
|
|
1869
|
-
|
|
1870
|
-
if (
|
|
1871
|
-
return i.preventDefault(), i.stopPropagation && i.stopPropagation(), i.stopImmediatePropagation && i.stopImmediatePropagation(),
|
|
1860
|
+
_i && !sr && document.addEventListener("click", function(i) {
|
|
1861
|
+
if (Qe)
|
|
1862
|
+
return i.preventDefault(), i.stopPropagation && i.stopPropagation(), i.stopImmediatePropagation && i.stopImmediatePropagation(), Qe = !1, !1;
|
|
1872
1863
|
}, !0);
|
|
1873
1864
|
var Gt = function(t) {
|
|
1874
1865
|
if (h) {
|
|
@@ -1887,7 +1878,7 @@ var Gt = function(t) {
|
|
|
1887
1878
|
function w(i, t) {
|
|
1888
1879
|
if (!(i && i.nodeType && i.nodeType === 1))
|
|
1889
1880
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));
|
|
1890
|
-
this.el = i, this.options = t =
|
|
1881
|
+
this.el = i, this.options = t = Rt({}, t), i[ft] = this;
|
|
1891
1882
|
var e = {
|
|
1892
1883
|
group: null,
|
|
1893
1884
|
sort: !0,
|
|
@@ -1903,7 +1894,7 @@ function w(i, t) {
|
|
|
1903
1894
|
// will be set to same as swapThreshold if default
|
|
1904
1895
|
removeCloneOnHide: !0,
|
|
1905
1896
|
direction: function() {
|
|
1906
|
-
return
|
|
1897
|
+
return gr(i, this.options);
|
|
1907
1898
|
},
|
|
1908
1899
|
ghostClass: "sortable-ghost",
|
|
1909
1900
|
chosenClass: "sortable-chosen",
|
|
@@ -1931,32 +1922,32 @@ function w(i, t) {
|
|
|
1931
1922
|
y: 0
|
|
1932
1923
|
},
|
|
1933
1924
|
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
|
1934
|
-
supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && (!xe ||
|
|
1925
|
+
supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && (!xe || dn),
|
|
1935
1926
|
emptyInsertThreshold: 5
|
|
1936
1927
|
};
|
|
1937
|
-
|
|
1928
|
+
Me.initializePlugins(this, i, e);
|
|
1938
1929
|
for (var n in e)
|
|
1939
1930
|
!(n in t) && (t[n] = e[n]);
|
|
1940
|
-
|
|
1931
|
+
mr(t);
|
|
1941
1932
|
for (var r in this)
|
|
1942
1933
|
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
1943
|
-
this.nativeDraggable = t.forceFallback ? !1 : Ts, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? T(i, "pointerdown", this._onTapStart) : (T(i, "mousedown", this._onTapStart), T(i, "touchstart", this._onTapStart)), this.nativeDraggable && (T(i, "dragover", this), T(i, "dragenter", this)),
|
|
1934
|
+
this.nativeDraggable = t.forceFallback ? !1 : Ts, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? T(i, "pointerdown", this._onTapStart) : (T(i, "mousedown", this._onTapStart), T(i, "touchstart", this._onTapStart)), this.nativeDraggable && (T(i, "dragover", this), T(i, "dragenter", this)), ti.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Rt(this, Es());
|
|
1944
1935
|
}
|
|
1945
1936
|
w.prototype = /** @lends Sortable.prototype */
|
|
1946
1937
|
{
|
|
1947
1938
|
constructor: w,
|
|
1948
1939
|
_isOutsideThisEl: function(t) {
|
|
1949
|
-
!this.el.contains(t) && t !== this.el && (
|
|
1940
|
+
!this.el.contains(t) && t !== this.el && (ie = null);
|
|
1950
1941
|
},
|
|
1951
1942
|
_getDirection: function(t, e) {
|
|
1952
1943
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, t, e, h) : this.options.direction;
|
|
1953
1944
|
},
|
|
1954
1945
|
_onTapStart: function(t) {
|
|
1955
1946
|
if (t.cancelable) {
|
|
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,
|
|
1957
|
-
if (ks(n), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || r.disabled) && !d.isContentEditable && !(!this.nativeDraggable && xe && l && l.tagName.toUpperCase() === "SELECT") && (l =
|
|
1958
|
-
if (
|
|
1959
|
-
if (
|
|
1947
|
+
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, c = r.filter;
|
|
1948
|
+
if (ks(n), !h && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || r.disabled) && !d.isContentEditable && !(!this.nativeDraggable && xe && l && l.tagName.toUpperCase() === "SELECT") && (l = $t(l, r.draggable, n, !1), !(l && l.animated) && ze !== l)) {
|
|
1949
|
+
if (ae = bt(l), Ee = bt(l, r.draggable), typeof c == "function") {
|
|
1950
|
+
if (c.call(this, t, l, this)) {
|
|
1960
1951
|
at({
|
|
1961
1952
|
sortable: e,
|
|
1962
1953
|
rootEl: d,
|
|
@@ -1969,11 +1960,11 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
1969
1960
|
}), o && t.preventDefault();
|
|
1970
1961
|
return;
|
|
1971
1962
|
}
|
|
1972
|
-
} else if (
|
|
1973
|
-
if (
|
|
1963
|
+
} else if (c && (c = c.split(",").some(function(u) {
|
|
1964
|
+
if (u = $t(d, u.trim(), n, !1), u)
|
|
1974
1965
|
return at({
|
|
1975
1966
|
sortable: e,
|
|
1976
|
-
rootEl:
|
|
1967
|
+
rootEl: u,
|
|
1977
1968
|
name: "filter",
|
|
1978
1969
|
targetEl: l,
|
|
1979
1970
|
fromEl: n,
|
|
@@ -1981,39 +1972,39 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
1981
1972
|
}), ht("filter", e, {
|
|
1982
1973
|
evt: t
|
|
1983
1974
|
}), !0;
|
|
1984
|
-
}),
|
|
1975
|
+
}), c)) {
|
|
1985
1976
|
o && t.preventDefault();
|
|
1986
1977
|
return;
|
|
1987
1978
|
}
|
|
1988
|
-
r.handle &&
|
|
1979
|
+
r.handle && !$t(d, r.handle, n, !1) || this._prepareDragStart(t, a, l);
|
|
1989
1980
|
}
|
|
1990
1981
|
}
|
|
1991
1982
|
},
|
|
1992
1983
|
_prepareDragStart: function(t, e, n) {
|
|
1993
1984
|
var r = this, o = r.el, s = r.options, a = o.ownerDocument, l;
|
|
1994
1985
|
if (n && !h && n.parentNode === o) {
|
|
1995
|
-
var d =
|
|
1996
|
-
if (V = o, h = n, z = h.parentNode, Jt = h.nextSibling,
|
|
1986
|
+
var d = Y(n);
|
|
1987
|
+
if (V = o, h = n, z = h.parentNode, Jt = h.nextSibling, ze = n, Ne = s.group, w.dragged = h, Yt = {
|
|
1997
1988
|
target: h,
|
|
1998
1989
|
clientX: (e || t).clientX,
|
|
1999
1990
|
clientY: (e || t).clientY
|
|
2000
|
-
},
|
|
1991
|
+
}, Mn = Yt.clientX - d.left, In = Yt.clientY - d.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, h.style["will-change"] = "all", l = function() {
|
|
2001
1992
|
if (ht("delayEnded", r, {
|
|
2002
1993
|
evt: t
|
|
2003
1994
|
}), w.eventCanceled) {
|
|
2004
1995
|
r._onDrop();
|
|
2005
1996
|
return;
|
|
2006
1997
|
}
|
|
2007
|
-
r._disableDelayedDragEvents(), !
|
|
1998
|
+
r._disableDelayedDragEvents(), !Pn && r.nativeDraggable && (h.draggable = !0), r._triggerDragStart(t, e), at({
|
|
2008
1999
|
sortable: r,
|
|
2009
2000
|
name: "choose",
|
|
2010
2001
|
originalEvent: t
|
|
2011
2002
|
}), mt(h, s.chosenClass, !0);
|
|
2012
|
-
}, s.ignore.split(",").forEach(function(
|
|
2013
|
-
|
|
2014
|
-
}), T(a, "dragover", Gt), T(a, "mousemove", Gt), T(a, "touchmove", Gt), s.supportPointer ? (T(a, "pointerup", r._onDrop), !this.nativeDraggable && T(a, "pointercancel", r._onDrop)) : (T(a, "mouseup", r._onDrop), T(a, "touchend", r._onDrop), T(a, "touchcancel", r._onDrop)),
|
|
2003
|
+
}, s.ignore.split(",").forEach(function(c) {
|
|
2004
|
+
dr(h, c.trim(), Ui);
|
|
2005
|
+
}), T(a, "dragover", Gt), T(a, "mousemove", Gt), T(a, "touchmove", Gt), s.supportPointer ? (T(a, "pointerup", r._onDrop), !this.nativeDraggable && T(a, "pointercancel", r._onDrop)) : (T(a, "mouseup", r._onDrop), T(a, "touchend", r._onDrop), T(a, "touchcancel", r._onDrop)), Pn && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), ht("delayStart", this, {
|
|
2015
2006
|
evt: t
|
|
2016
|
-
}), s.delay && (!s.delayOnTouchOnly || e) && (!this.nativeDraggable || !(
|
|
2007
|
+
}), s.delay && (!s.delayOnTouchOnly || e) && (!this.nativeDraggable || !(Le || Lt))) {
|
|
2017
2008
|
if (w.eventCanceled) {
|
|
2018
2009
|
this._onDrop();
|
|
2019
2010
|
return;
|
|
@@ -2032,19 +2023,19 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2032
2023
|
},
|
|
2033
2024
|
_disableDelayedDragEvents: function() {
|
|
2034
2025
|
var t = this.el.ownerDocument;
|
|
2035
|
-
|
|
2026
|
+
C(t, "mouseup", this._disableDelayedDrag), C(t, "touchend", this._disableDelayedDrag), C(t, "touchcancel", this._disableDelayedDrag), C(t, "pointerup", this._disableDelayedDrag), C(t, "pointercancel", this._disableDelayedDrag), C(t, "mousemove", this._delayedDragTouchMoveHandler), C(t, "touchmove", this._delayedDragTouchMoveHandler), C(t, "pointermove", this._delayedDragTouchMoveHandler);
|
|
2036
2027
|
},
|
|
2037
2028
|
_triggerDragStart: function(t, e) {
|
|
2038
2029
|
e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? T(document, "pointermove", this._onTouchMove) : e ? T(document, "touchmove", this._onTouchMove) : T(document, "mousemove", this._onTouchMove) : (T(h, "dragend", this), T(V, "dragstart", this._onDragStart));
|
|
2039
2030
|
try {
|
|
2040
|
-
document.selection ?
|
|
2031
|
+
document.selection ? qe(function() {
|
|
2041
2032
|
document.selection.empty();
|
|
2042
2033
|
}) : window.getSelection().removeAllRanges();
|
|
2043
2034
|
} catch {
|
|
2044
2035
|
}
|
|
2045
2036
|
},
|
|
2046
2037
|
_dragStarted: function(t, e) {
|
|
2047
|
-
if (
|
|
2038
|
+
if (re = !1, V && h) {
|
|
2048
2039
|
ht("dragStarted", this, {
|
|
2049
2040
|
evt: e
|
|
2050
2041
|
}), this.nativeDraggable && T(document, "dragover", Os);
|
|
@@ -2059,7 +2050,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2059
2050
|
},
|
|
2060
2051
|
_emulateDragOver: function() {
|
|
2061
2052
|
if (xt) {
|
|
2062
|
-
this._lastX = xt.clientX, this._lastY = xt.clientY,
|
|
2053
|
+
this._lastX = xt.clientX, this._lastY = xt.clientY, yr();
|
|
2063
2054
|
for (var t = document.elementFromPoint(xt.clientX, xt.clientY), e = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(xt.clientX, xt.clientY), t !== e); )
|
|
2064
2055
|
e = t;
|
|
2065
2056
|
if (h.parentNode[ft]._isOutsideThisEl(t), e)
|
|
@@ -2075,42 +2066,42 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2075
2066
|
break;
|
|
2076
2067
|
}
|
|
2077
2068
|
t = e;
|
|
2078
|
-
} while (e =
|
|
2079
|
-
|
|
2069
|
+
} while (e = lr(e));
|
|
2070
|
+
br();
|
|
2080
2071
|
}
|
|
2081
2072
|
},
|
|
2082
2073
|
_onTouchMove: function(t) {
|
|
2083
|
-
if (
|
|
2084
|
-
var e = this.options, n = e.fallbackTolerance, r = e.fallbackOffset, o = t.touches ? t.touches[0] : t, s =
|
|
2085
|
-
if (!w.active && !
|
|
2074
|
+
if (Yt) {
|
|
2075
|
+
var e = this.options, n = e.fallbackTolerance, r = e.fallbackOffset, o = t.touches ? t.touches[0] : t, s = $ && le($, !0), a = $ && s && s.a, l = $ && s && s.d, d = ke && ot && Ln(ot), c = (o.clientX - Yt.clientX + r.x) / (a || 1) + (d ? d[0] - Bi[0] : 0) / (a || 1), u = (o.clientY - Yt.clientY + r.y) / (l || 1) + (d ? d[1] - Bi[1] : 0) / (l || 1);
|
|
2076
|
+
if (!w.active && !re) {
|
|
2086
2077
|
if (n && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < n)
|
|
2087
2078
|
return;
|
|
2088
2079
|
this._onDragStart(t, !0);
|
|
2089
2080
|
}
|
|
2090
|
-
if (
|
|
2091
|
-
s ? (s.e +=
|
|
2081
|
+
if ($) {
|
|
2082
|
+
s ? (s.e += c - (Vi || 0), s.f += u - (ki || 0)) : s = {
|
|
2092
2083
|
a: 1,
|
|
2093
2084
|
b: 0,
|
|
2094
2085
|
c: 0,
|
|
2095
2086
|
d: 1,
|
|
2096
|
-
e:
|
|
2097
|
-
f:
|
|
2087
|
+
e: c,
|
|
2088
|
+
f: u
|
|
2098
2089
|
};
|
|
2099
2090
|
var p = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
|
|
2100
|
-
v(
|
|
2091
|
+
v($, "webkitTransform", p), v($, "mozTransform", p), v($, "msTransform", p), v($, "transform", p), Vi = c, ki = u, xt = o;
|
|
2101
2092
|
}
|
|
2102
2093
|
t.cancelable && t.preventDefault();
|
|
2103
2094
|
}
|
|
2104
2095
|
},
|
|
2105
2096
|
_appendGhost: function() {
|
|
2106
|
-
if (
|
|
2107
|
-
var t = this.options.fallbackOnBody ? document.body : V, e =
|
|
2108
|
-
if (
|
|
2097
|
+
if (!$) {
|
|
2098
|
+
var t = this.options.fallbackOnBody ? document.body : V, e = Y(h, !0, ke, !0, t), n = this.options;
|
|
2099
|
+
if (ke) {
|
|
2109
2100
|
for (ot = t; v(ot, "position") === "static" && v(ot, "transform") === "none" && ot !== document; )
|
|
2110
2101
|
ot = ot.parentNode;
|
|
2111
|
-
ot !== document.body && ot !== document.documentElement ? (ot === document && (ot = St()), e.top += ot.scrollTop, e.left += ot.scrollLeft) : ot = St(), Bi =
|
|
2102
|
+
ot !== document.body && ot !== document.documentElement ? (ot === document && (ot = St()), e.top += ot.scrollTop, e.left += ot.scrollLeft) : ot = St(), Bi = Ln(ot);
|
|
2112
2103
|
}
|
|
2113
|
-
|
|
2104
|
+
$ = h.cloneNode(!0), mt($, n.ghostClass, !1), mt($, n.fallbackClass, !0), mt($, n.dragClass, !0), v($, "transition", ""), v($, "transform", ""), v($, "box-sizing", "border-box"), v($, "margin", 0), v($, "top", e.top), v($, "left", e.left), v($, "width", e.width), v($, "height", e.height), v($, "opacity", "0.8"), v($, "position", ke ? "absolute" : "fixed"), v($, "zIndex", "100000"), v($, "pointerEvents", "none"), w.ghost = $, t.appendChild($), v($, "transform-origin", Mn / parseInt($.style.width) * 100 + "% " + In / parseInt($.style.height) * 100 + "%");
|
|
2114
2105
|
}
|
|
2115
2106
|
},
|
|
2116
2107
|
_onDragStart: function(t, e) {
|
|
@@ -2121,44 +2112,44 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2121
2112
|
this._onDrop();
|
|
2122
2113
|
return;
|
|
2123
2114
|
}
|
|
2124
|
-
ht("setupClone", this), w.eventCanceled || (U =
|
|
2115
|
+
ht("setupClone", this), w.eventCanceled || (U = hr(h), U.removeAttribute("id"), U.draggable = !1, U.style["will-change"] = "", this._hideClone(), mt(U, this.options.chosenClass, !1), w.clone = U), n.cloneId = qe(function() {
|
|
2125
2116
|
ht("clone", n), !w.eventCanceled && (n.options.removeCloneOnHide || V.insertBefore(U, h), n._hideClone(), at({
|
|
2126
2117
|
sortable: n,
|
|
2127
2118
|
name: "clone"
|
|
2128
2119
|
}));
|
|
2129
|
-
}), !e && mt(h, o.dragClass, !0), e ? (
|
|
2120
|
+
}), !e && mt(h, o.dragClass, !0), e ? (Qe = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (C(document, "mouseup", n._onDrop), C(document, "touchend", n._onDrop), C(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", o.setData && o.setData.call(n, r, h)), T(document, "drop", n), v(h, "transform", "translateZ(0)")), re = !0, n._dragStartId = qe(n._dragStarted.bind(n, e, t)), T(document, "selectstart", n), me = !0, window.getSelection().removeAllRanges(), xe && v(document.body, "user-select", "none");
|
|
2130
2121
|
},
|
|
2131
2122
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
2132
2123
|
_onDragOver: function(t) {
|
|
2133
|
-
var e = this.el, n = t.target, r, o, s, a = this.options, l = a.group, d = w.active,
|
|
2134
|
-
if (
|
|
2135
|
-
function
|
|
2124
|
+
var e = this.el, n = t.target, r, o, s, a = this.options, l = a.group, d = w.active, c = Ne === l, u = a.sort, p = et || d, f, g = this, b = !1;
|
|
2125
|
+
if (Wi) return;
|
|
2126
|
+
function H(gt, zt) {
|
|
2136
2127
|
ht(gt, g, At({
|
|
2137
2128
|
evt: t,
|
|
2138
|
-
isOwner:
|
|
2129
|
+
isOwner: c,
|
|
2139
2130
|
axis: f ? "vertical" : "horizontal",
|
|
2140
2131
|
revert: s,
|
|
2141
2132
|
dragRect: r,
|
|
2142
2133
|
targetRect: o,
|
|
2143
|
-
canSort:
|
|
2134
|
+
canSort: u,
|
|
2144
2135
|
fromSortable: p,
|
|
2145
2136
|
target: n,
|
|
2146
2137
|
completed: F,
|
|
2147
|
-
onMove: function(Zt,
|
|
2148
|
-
return
|
|
2138
|
+
onMove: function(Zt, _t) {
|
|
2139
|
+
return Be(V, e, h, r, Zt, Y(Zt), t, _t);
|
|
2149
2140
|
},
|
|
2150
2141
|
changed: st
|
|
2151
2142
|
}, zt));
|
|
2152
2143
|
}
|
|
2153
2144
|
function J() {
|
|
2154
|
-
|
|
2145
|
+
H("dragOverAnimationCapture"), g.captureAnimationState(), g !== p && p.captureAnimationState();
|
|
2155
2146
|
}
|
|
2156
2147
|
function F(gt) {
|
|
2157
|
-
return
|
|
2148
|
+
return H("dragOverCompleted", {
|
|
2158
2149
|
insertion: gt
|
|
2159
|
-
}), gt && (
|
|
2160
|
-
|
|
2161
|
-
}), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === h && !h.animated || n === e && !n.animated) && (
|
|
2150
|
+
}), gt && (c ? 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() {
|
|
2151
|
+
H("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
|
|
2152
|
+
}), g !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (n === h && !h.animated || n === e && !n.animated) && (ie = null), !a.dragoverBubble && !t.rootEl && n !== document && (h.parentNode[ft]._isOutsideThisEl(t.target), !gt && Gt(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), b = !0;
|
|
2162
2153
|
}
|
|
2163
2154
|
function st() {
|
|
2164
2155
|
yt = bt(h), Ht = bt(h, a.draggable), at({
|
|
@@ -2170,44 +2161,44 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2170
2161
|
originalEvent: t
|
|
2171
2162
|
});
|
|
2172
2163
|
}
|
|
2173
|
-
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n =
|
|
2164
|
+
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = $t(n, a.draggable, e, !0), H("dragOver"), w.eventCanceled) return b;
|
|
2174
2165
|
if (h.contains(t.target) || n.animated && n.animatingX && n.animatingY || g._ignoreWhileAnimating === n)
|
|
2175
2166
|
return F(!1);
|
|
2176
|
-
if (
|
|
2177
|
-
if (f = this._getDirection(t, n) === "vertical", r =
|
|
2167
|
+
if (Qe = !1, d && !a.disabled && (c ? u || (s = z !== V) : et === this || (this.lastPutMode = Ne.checkPull(this, d, h, t)) && l.checkPut(this, d, h, t))) {
|
|
2168
|
+
if (f = this._getDirection(t, n) === "vertical", r = Y(h), H("dragOverValid"), w.eventCanceled) return b;
|
|
2178
2169
|
if (s)
|
|
2179
|
-
return z = V, J(), this._hideClone(),
|
|
2180
|
-
var K =
|
|
2170
|
+
return z = V, J(), this._hideClone(), H("revert"), w.eventCanceled || (Jt ? V.insertBefore(h, Jt) : V.appendChild(h)), F(!0);
|
|
2171
|
+
var K = un(e, a.draggable);
|
|
2181
2172
|
if (!K || Is(t, f, this) && !K.animated) {
|
|
2182
2173
|
if (K === h)
|
|
2183
2174
|
return F(!1);
|
|
2184
|
-
if (K && e === t.target && (n = K), n && (o =
|
|
2175
|
+
if (K && e === t.target && (n = K), n && (o = Y(n)), Be(V, e, h, r, n, o, t, !!n) !== !1)
|
|
2185
2176
|
return J(), K && K.nextSibling ? e.insertBefore(h, K.nextSibling) : e.appendChild(h), z = e, st(), F(!0);
|
|
2186
2177
|
} else if (K && Ms(t, f, this)) {
|
|
2187
|
-
var
|
|
2188
|
-
if (
|
|
2178
|
+
var E = ce(e, 0, a, !0);
|
|
2179
|
+
if (E === h)
|
|
2189
2180
|
return F(!1);
|
|
2190
|
-
if (n =
|
|
2191
|
-
return J(), e.insertBefore(h,
|
|
2181
|
+
if (n = E, o = Y(n), Be(V, e, h, r, n, o, t, !1) !== !1)
|
|
2182
|
+
return J(), e.insertBefore(h, E), z = e, st(), F(!0);
|
|
2192
2183
|
} else if (n.parentNode === e) {
|
|
2193
|
-
o =
|
|
2194
|
-
var m = 0,
|
|
2195
|
-
|
|
2184
|
+
o = Y(n);
|
|
2185
|
+
var m = 0, _, M = h.parentNode !== e, R = !Ds(h.animated && h.toRect || r, n.animated && n.toRect || o, f), q = f ? "top" : "left", X = Rn(n, "top", "top") || Rn(h, "top", "top"), N = X ? X.scrollTop : void 0;
|
|
2186
|
+
ie !== n && (_ = o[q], Ae = !1, Ve = !R && a.invertSwap || M), m = Hs(t, n, o, f, R ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Ve, ie === n);
|
|
2196
2187
|
var L;
|
|
2197
2188
|
if (m !== 0) {
|
|
2198
2189
|
var Z = bt(h);
|
|
2199
2190
|
do
|
|
2200
2191
|
Z -= m, L = z.children[Z];
|
|
2201
|
-
while (L && (v(L, "display") === "none" || L ===
|
|
2192
|
+
while (L && (v(L, "display") === "none" || L === $));
|
|
2202
2193
|
}
|
|
2203
2194
|
if (m === 0 || L === n)
|
|
2204
2195
|
return F(!1);
|
|
2205
|
-
|
|
2196
|
+
ie = n, Se = m;
|
|
2206
2197
|
var dt = n.nextElementSibling, tt = !1;
|
|
2207
2198
|
tt = m === 1;
|
|
2208
|
-
var
|
|
2209
|
-
if (
|
|
2210
|
-
return (
|
|
2199
|
+
var ut = Be(V, e, h, r, n, o, t, tt);
|
|
2200
|
+
if (ut !== !1)
|
|
2201
|
+
return (ut === 1 || ut === -1) && (tt = ut === 1), Wi = !0, setTimeout(Ls, 30), J(), tt && !dt ? e.appendChild(h) : n.parentNode.insertBefore(h, tt ? dt : n), X && cr(X, 0, N - X.scrollTop), z = h.parentNode, _ !== void 0 && !Ve && (Ze = Math.abs(_ - Y(n)[q])), st(), F(!0);
|
|
2211
2202
|
}
|
|
2212
2203
|
if (e.contains(h))
|
|
2213
2204
|
return F(!1);
|
|
@@ -2216,11 +2207,11 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2216
2207
|
},
|
|
2217
2208
|
_ignoreWhileAnimating: null,
|
|
2218
2209
|
_offMoveEvents: function() {
|
|
2219
|
-
|
|
2210
|
+
C(document, "mousemove", this._onTouchMove), C(document, "touchmove", this._onTouchMove), C(document, "pointermove", this._onTouchMove), C(document, "dragover", Gt), C(document, "mousemove", Gt), C(document, "touchmove", Gt);
|
|
2220
2211
|
},
|
|
2221
2212
|
_offUpEvents: function() {
|
|
2222
2213
|
var t = this.el.ownerDocument;
|
|
2223
|
-
|
|
2214
|
+
C(t, "mouseup", this._onDrop), C(t, "touchend", this._onDrop), C(t, "pointerup", this._onDrop), C(t, "pointercancel", this._onDrop), C(t, "touchcancel", this._onDrop), C(document, "selectstart", this);
|
|
2224
2215
|
},
|
|
2225
2216
|
_onDrop: function(t) {
|
|
2226
2217
|
var e = this.el, n = this.options;
|
|
@@ -2230,7 +2221,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2230
2221
|
this._nulling();
|
|
2231
2222
|
return;
|
|
2232
2223
|
}
|
|
2233
|
-
|
|
2224
|
+
re = !1, Ve = !1, Ae = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Yi(this.cloneId), Yi(this._dragStartId), this.nativeDraggable && (C(document, "drop", this), C(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), xe && v(document.body, "user-select", ""), v(h, "transform", ""), t && (me && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), $ && $.parentNode && $.parentNode.removeChild($), (V === z || et && et.lastPutMode !== "clone") && U && U.parentNode && U.parentNode.removeChild(U), h && (this.nativeDraggable && C(h, "dragend", this), Ui(h), h.style["will-change"] = "", me && !re && mt(h, et ? et.options.ghostClass : this.options.ghostClass, !1), mt(h, this.options.chosenClass, !1), at({
|
|
2234
2225
|
sortable: this,
|
|
2235
2226
|
name: "unchoose",
|
|
2236
2227
|
toEl: z,
|
|
@@ -2259,7 +2250,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2259
2250
|
name: "sort",
|
|
2260
2251
|
toEl: z,
|
|
2261
2252
|
originalEvent: t
|
|
2262
|
-
})), et && et.save()) : yt !==
|
|
2253
|
+
})), et && et.save()) : yt !== ae && yt >= 0 && (at({
|
|
2263
2254
|
sortable: this,
|
|
2264
2255
|
name: "update",
|
|
2265
2256
|
toEl: z,
|
|
@@ -2269,7 +2260,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2269
2260
|
name: "sort",
|
|
2270
2261
|
toEl: z,
|
|
2271
2262
|
originalEvent: t
|
|
2272
|
-
})), w.active && ((yt == null || yt === -1) && (yt =
|
|
2263
|
+
})), w.active && ((yt == null || yt === -1) && (yt = ae, Ht = Ee), at({
|
|
2273
2264
|
sortable: this,
|
|
2274
2265
|
name: "end",
|
|
2275
2266
|
toEl: z,
|
|
@@ -2277,9 +2268,9 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2277
2268
|
}), this.save()))), this._nulling();
|
|
2278
2269
|
},
|
|
2279
2270
|
_nulling: function() {
|
|
2280
|
-
ht("nulling", this), V = h = z =
|
|
2271
|
+
ht("nulling", this), V = h = z = $ = Jt = U = ze = Vt = Yt = xt = me = yt = Ht = ae = Ee = ie = Se = et = Ne = w.dragged = w.ghost = w.clone = w.active = null, ei.forEach(function(t) {
|
|
2281
2272
|
t.checked = !0;
|
|
2282
|
-
}),
|
|
2273
|
+
}), ei.length = Vi = ki = 0;
|
|
2283
2274
|
},
|
|
2284
2275
|
handleEvent: function(t) {
|
|
2285
2276
|
switch (t.type) {
|
|
@@ -2302,7 +2293,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2302
2293
|
*/
|
|
2303
2294
|
toArray: function() {
|
|
2304
2295
|
for (var t = [], e, n = this.el.children, r = 0, o = n.length, s = this.options; r < o; r++)
|
|
2305
|
-
e = n[r],
|
|
2296
|
+
e = n[r], $t(e, s.draggable, this.el, !1) && t.push(e.getAttribute(s.dataIdAttr) || Vs(e));
|
|
2306
2297
|
return t;
|
|
2307
2298
|
},
|
|
2308
2299
|
/**
|
|
@@ -2313,7 +2304,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2313
2304
|
var n = {}, r = this.el;
|
|
2314
2305
|
this.toArray().forEach(function(o, s) {
|
|
2315
2306
|
var a = r.children[s];
|
|
2316
|
-
|
|
2307
|
+
$t(a, this.options.draggable, r, !1) && (n[o] = a);
|
|
2317
2308
|
}, this), e && this.captureAnimationState(), t.forEach(function(o) {
|
|
2318
2309
|
n[o] && (r.removeChild(n[o]), r.appendChild(n[o]));
|
|
2319
2310
|
}), e && this.animateAll();
|
|
@@ -2332,7 +2323,7 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2332
2323
|
* @returns {HTMLElement|null}
|
|
2333
2324
|
*/
|
|
2334
2325
|
closest: function(t, e) {
|
|
2335
|
-
return
|
|
2326
|
+
return $t(t, e || this.options.draggable, this.el, !1);
|
|
2336
2327
|
},
|
|
2337
2328
|
/**
|
|
2338
2329
|
* Set/get option
|
|
@@ -2344,8 +2335,8 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2344
2335
|
var n = this.options;
|
|
2345
2336
|
if (e === void 0)
|
|
2346
2337
|
return n[t];
|
|
2347
|
-
var r =
|
|
2348
|
-
typeof r < "u" ? n[t] = r : n[t] = e, t === "group" &&
|
|
2338
|
+
var r = Me.modifyOption(this, t, e);
|
|
2339
|
+
typeof r < "u" ? n[t] = r : n[t] = e, t === "group" && mr(n);
|
|
2349
2340
|
},
|
|
2350
2341
|
/**
|
|
2351
2342
|
* Destroy
|
|
@@ -2353,9 +2344,9 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2353
2344
|
destroy: function() {
|
|
2354
2345
|
ht("destroy", this);
|
|
2355
2346
|
var t = this.el;
|
|
2356
|
-
t[ft] = null,
|
|
2347
|
+
t[ft] = null, C(t, "mousedown", this._onTapStart), C(t, "touchstart", this._onTapStart), C(t, "pointerdown", this._onTapStart), this.nativeDraggable && (C(t, "dragover", this), C(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(e) {
|
|
2357
2348
|
e.removeAttribute("draggable");
|
|
2358
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
2349
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), ti.splice(ti.indexOf(this.el), 1), this.el = t = null;
|
|
2359
2350
|
},
|
|
2360
2351
|
_hideClone: function() {
|
|
2361
2352
|
if (!Vt) {
|
|
@@ -2377,41 +2368,41 @@ w.prototype = /** @lends Sortable.prototype */
|
|
|
2377
2368
|
function Rs(i) {
|
|
2378
2369
|
i.dataTransfer && (i.dataTransfer.dropEffect = "move"), i.cancelable && i.preventDefault();
|
|
2379
2370
|
}
|
|
2380
|
-
function
|
|
2381
|
-
var l, d = i[ft],
|
|
2382
|
-
return window.CustomEvent && !
|
|
2371
|
+
function Be(i, t, e, n, r, o, s, a) {
|
|
2372
|
+
var l, d = i[ft], c = d.options.onMove, u;
|
|
2373
|
+
return window.CustomEvent && !Lt && !Le ? l = new CustomEvent("move", {
|
|
2383
2374
|
bubbles: !0,
|
|
2384
2375
|
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 = r || t, l.relatedRect = o ||
|
|
2376
|
+
}) : (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 || Y(t), l.willInsertAfter = a, l.originalEvent = s, i.dispatchEvent(l), c && (u = c.call(d, l, s)), u;
|
|
2386
2377
|
}
|
|
2387
2378
|
function Ui(i) {
|
|
2388
2379
|
i.draggable = !1;
|
|
2389
2380
|
}
|
|
2390
2381
|
function Ls() {
|
|
2391
|
-
|
|
2382
|
+
Wi = !1;
|
|
2392
2383
|
}
|
|
2393
2384
|
function Ms(i, t, e) {
|
|
2394
|
-
var n =
|
|
2385
|
+
var n = Y(ce(e.el, 0, e.options, !0)), r = pr(e.el, e.options, $), o = 10;
|
|
2395
2386
|
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
2387
|
}
|
|
2397
2388
|
function Is(i, t, e) {
|
|
2398
|
-
var n =
|
|
2389
|
+
var n = Y(un(e.el, e.options.draggable)), r = pr(e.el, e.options, $), o = 10;
|
|
2399
2390
|
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
2391
|
}
|
|
2401
|
-
function
|
|
2402
|
-
var l = n ? i.clientY : i.clientX, d = n ? e.height : e.width,
|
|
2392
|
+
function Hs(i, t, e, n, r, o, s, a) {
|
|
2393
|
+
var l = n ? i.clientY : i.clientX, d = n ? e.height : e.width, c = n ? e.top : e.left, u = n ? e.bottom : e.right, p = !1;
|
|
2403
2394
|
if (!s) {
|
|
2404
|
-
if (a &&
|
|
2405
|
-
if (!Ae && (Se === 1 ? l >
|
|
2395
|
+
if (a && Ze < d * r) {
|
|
2396
|
+
if (!Ae && (Se === 1 ? l > c + d * o / 2 : l < u - d * o / 2) && (Ae = !0), Ae)
|
|
2406
2397
|
p = !0;
|
|
2407
|
-
else if (Se === 1 ? l <
|
|
2398
|
+
else if (Se === 1 ? l < c + Ze : l > u - Ze)
|
|
2408
2399
|
return -Se;
|
|
2409
|
-
} else if (l >
|
|
2410
|
-
return
|
|
2400
|
+
} else if (l > c + d * (1 - r) / 2 && l < u - d * (1 - r) / 2)
|
|
2401
|
+
return Ns(t);
|
|
2411
2402
|
}
|
|
2412
|
-
return p = p || s, p && (l <
|
|
2403
|
+
return p = p || s, p && (l < c + d * o / 2 || l > u - d * o / 2) ? l > c + d / 2 ? 1 : -1 : 0;
|
|
2413
2404
|
}
|
|
2414
|
-
function
|
|
2405
|
+
function Ns(i) {
|
|
2415
2406
|
return bt(h) < bt(i) ? 1 : -1;
|
|
2416
2407
|
}
|
|
2417
2408
|
function Vs(i) {
|
|
@@ -2420,39 +2411,39 @@ function Vs(i) {
|
|
|
2420
2411
|
return n.toString(36);
|
|
2421
2412
|
}
|
|
2422
2413
|
function ks(i) {
|
|
2423
|
-
|
|
2414
|
+
ei.length = 0;
|
|
2424
2415
|
for (var t = i.getElementsByTagName("input"), e = t.length; e--; ) {
|
|
2425
2416
|
var n = t[e];
|
|
2426
|
-
n.checked &&
|
|
2417
|
+
n.checked && ei.push(n);
|
|
2427
2418
|
}
|
|
2428
2419
|
}
|
|
2429
|
-
function
|
|
2420
|
+
function qe(i) {
|
|
2430
2421
|
return setTimeout(i, 0);
|
|
2431
2422
|
}
|
|
2432
|
-
function
|
|
2423
|
+
function Yi(i) {
|
|
2433
2424
|
return clearTimeout(i);
|
|
2434
2425
|
}
|
|
2435
|
-
|
|
2436
|
-
(w.active ||
|
|
2426
|
+
_i && T(document, "touchmove", function(i) {
|
|
2427
|
+
(w.active || re) && i.cancelable && i.preventDefault();
|
|
2437
2428
|
});
|
|
2438
2429
|
w.utils = {
|
|
2439
2430
|
on: T,
|
|
2440
|
-
off:
|
|
2431
|
+
off: C,
|
|
2441
2432
|
css: v,
|
|
2442
|
-
find:
|
|
2433
|
+
find: dr,
|
|
2443
2434
|
is: function(t, e) {
|
|
2444
|
-
return
|
|
2435
|
+
return !!$t(t, e, t, !1);
|
|
2445
2436
|
},
|
|
2446
2437
|
extend: xs,
|
|
2447
|
-
throttle:
|
|
2448
|
-
closest:
|
|
2438
|
+
throttle: ur,
|
|
2439
|
+
closest: $t,
|
|
2449
2440
|
toggleClass: mt,
|
|
2450
|
-
clone:
|
|
2441
|
+
clone: hr,
|
|
2451
2442
|
index: bt,
|
|
2452
|
-
nextTick:
|
|
2453
|
-
cancelNextTick:
|
|
2454
|
-
detectDirection:
|
|
2455
|
-
getChild:
|
|
2443
|
+
nextTick: qe,
|
|
2444
|
+
cancelNextTick: Yi,
|
|
2445
|
+
detectDirection: gr,
|
|
2446
|
+
getChild: ce,
|
|
2456
2447
|
expando: ft
|
|
2457
2448
|
};
|
|
2458
2449
|
w.get = function(i) {
|
|
@@ -2464,14 +2455,14 @@ w.mount = function() {
|
|
|
2464
2455
|
t[0].constructor === Array && (t = t[0]), t.forEach(function(n) {
|
|
2465
2456
|
if (!n.prototype || !n.prototype.constructor)
|
|
2466
2457
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));
|
|
2467
|
-
n.utils && (w.utils = At(At({}, w.utils), n.utils)),
|
|
2458
|
+
n.utils && (w.utils = At(At({}, w.utils), n.utils)), Me.mount(n);
|
|
2468
2459
|
});
|
|
2469
2460
|
};
|
|
2470
2461
|
w.create = function(i, t) {
|
|
2471
2462
|
return new w(i, t);
|
|
2472
2463
|
};
|
|
2473
2464
|
w.version = vs;
|
|
2474
|
-
var
|
|
2465
|
+
var W = [], ye, Gi, Ji = !1, Fi, ji, ii, be;
|
|
2475
2466
|
function Bs() {
|
|
2476
2467
|
function i() {
|
|
2477
2468
|
this.defaults = {
|
|
@@ -2494,81 +2485,81 @@ function Bs() {
|
|
|
2494
2485
|
!this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
|
|
2495
2486
|
},
|
|
2496
2487
|
drop: function() {
|
|
2497
|
-
this.sortable.nativeDraggable ?
|
|
2488
|
+
this.sortable.nativeDraggable ? C(document, "dragover", this._handleAutoScroll) : (C(document, "pointermove", this._handleFallbackAutoScroll), C(document, "touchmove", this._handleFallbackAutoScroll), C(document, "mousemove", this._handleFallbackAutoScroll)), Nn(), Xe(), $s();
|
|
2498
2489
|
},
|
|
2499
2490
|
nulling: function() {
|
|
2500
|
-
|
|
2491
|
+
ii = Gi = ye = Ji = be = Fi = ji = null, W.length = 0;
|
|
2501
2492
|
},
|
|
2502
2493
|
_handleFallbackAutoScroll: function(e) {
|
|
2503
2494
|
this._handleAutoScroll(e, !0);
|
|
2504
2495
|
},
|
|
2505
2496
|
_handleAutoScroll: function(e, n) {
|
|
2506
2497
|
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
|
-
if (
|
|
2498
|
+
if (ii = e, n || this.options.forceAutoScrollFallback || Le || Lt || xe) {
|
|
2508
2499
|
zi(e, this.options, a, n);
|
|
2509
2500
|
var l = Bt(a, !0);
|
|
2510
|
-
Ji && (!be || o !== Fi || s !== ji) && (be &&
|
|
2501
|
+
Ji && (!be || o !== Fi || s !== ji) && (be && Nn(), be = setInterval(function() {
|
|
2511
2502
|
var d = Bt(document.elementFromPoint(o, s), !0);
|
|
2512
|
-
d !== l && (l = d,
|
|
2503
|
+
d !== l && (l = d, Xe()), zi(e, r.options, d, n);
|
|
2513
2504
|
}, 10), Fi = o, ji = s);
|
|
2514
2505
|
} else {
|
|
2515
2506
|
if (!this.options.bubbleScroll || Bt(a, !0) === St()) {
|
|
2516
|
-
|
|
2507
|
+
Xe();
|
|
2517
2508
|
return;
|
|
2518
2509
|
}
|
|
2519
2510
|
zi(e, this.options, Bt(a, !1), !1);
|
|
2520
2511
|
}
|
|
2521
2512
|
}
|
|
2522
|
-
},
|
|
2513
|
+
}, Rt(i, {
|
|
2523
2514
|
pluginName: "scroll",
|
|
2524
2515
|
initializeByDefault: !0
|
|
2525
2516
|
});
|
|
2526
2517
|
}
|
|
2527
|
-
function
|
|
2528
|
-
|
|
2518
|
+
function Xe() {
|
|
2519
|
+
W.forEach(function(i) {
|
|
2529
2520
|
clearInterval(i.pid);
|
|
2530
|
-
}),
|
|
2521
|
+
}), W = [];
|
|
2531
2522
|
}
|
|
2532
|
-
function
|
|
2523
|
+
function Nn() {
|
|
2533
2524
|
clearInterval(be);
|
|
2534
2525
|
}
|
|
2535
|
-
var zi =
|
|
2526
|
+
var zi = ur(function(i, t, e, n) {
|
|
2536
2527
|
if (t.scroll) {
|
|
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 = St(), d = !1,
|
|
2538
|
-
Gi !== e && (Gi = e,
|
|
2539
|
-
var
|
|
2528
|
+
var r = (i.touches ? i.touches[0] : i).clientX, o = (i.touches ? i.touches[0] : i).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = St(), d = !1, c;
|
|
2529
|
+
Gi !== e && (Gi = e, Xe(), ye = t.scroll, c = t.scrollFn, ye === !0 && (ye = Bt(e, !0)));
|
|
2530
|
+
var u = 0, p = ye;
|
|
2540
2531
|
do {
|
|
2541
|
-
var f = p, g =
|
|
2542
|
-
f === l ? (
|
|
2543
|
-
var
|
|
2544
|
-
if (!
|
|
2545
|
-
for (var Z = 0; Z <=
|
|
2546
|
-
|
|
2547
|
-
(
|
|
2548
|
-
n && this.layer === 0 && w.active._onTouchMove(
|
|
2549
|
-
var dt =
|
|
2550
|
-
typeof
|
|
2532
|
+
var f = p, g = Y(f), b = g.top, H = g.bottom, J = g.left, F = g.right, st = g.width, K = g.height, E = void 0, m = void 0, _ = f.scrollWidth, M = f.scrollHeight, R = v(f), q = f.scrollLeft, X = f.scrollTop;
|
|
2533
|
+
f === l ? (E = st < _ && (R.overflowX === "auto" || R.overflowX === "scroll" || R.overflowX === "visible"), m = K < M && (R.overflowY === "auto" || R.overflowY === "scroll" || R.overflowY === "visible")) : (E = st < _ && (R.overflowX === "auto" || R.overflowX === "scroll"), m = K < M && (R.overflowY === "auto" || R.overflowY === "scroll"));
|
|
2534
|
+
var N = E && (Math.abs(F - r) <= s && q + st < _) - (Math.abs(J - r) <= s && !!q), L = m && (Math.abs(H - o) <= s && X + K < M) - (Math.abs(b - o) <= s && !!X);
|
|
2535
|
+
if (!W[u])
|
|
2536
|
+
for (var Z = 0; Z <= u; Z++)
|
|
2537
|
+
W[Z] || (W[Z] = {});
|
|
2538
|
+
(W[u].vx != N || W[u].vy != L || W[u].el !== f) && (W[u].el = f, W[u].vx = N, W[u].vy = L, clearInterval(W[u].pid), (N != 0 || L != 0) && (d = !0, W[u].pid = setInterval((function() {
|
|
2539
|
+
n && this.layer === 0 && w.active._onTouchMove(ii);
|
|
2540
|
+
var dt = W[this.layer].vy ? W[this.layer].vy * a : 0, tt = W[this.layer].vx ? W[this.layer].vx * a : 0;
|
|
2541
|
+
typeof c == "function" && c.call(w.dragged.parentNode[ft], tt, dt, i, ii, W[this.layer].el) !== "continue" || cr(W[this.layer].el, tt, dt);
|
|
2551
2542
|
}).bind({
|
|
2552
|
-
layer:
|
|
2553
|
-
}), 24))),
|
|
2543
|
+
layer: u
|
|
2544
|
+
}), 24))), u++;
|
|
2554
2545
|
} while (t.bubbleScroll && p !== l && (p = Bt(p, !1)));
|
|
2555
2546
|
Ji = d;
|
|
2556
2547
|
}
|
|
2557
|
-
}, 30),
|
|
2548
|
+
}, 30), vr = function(t) {
|
|
2558
2549
|
var e = t.originalEvent, n = t.putSortable, r = t.dragEl, o = t.activeSortable, s = t.dispatchSortableEvent, a = t.hideGhostForTarget, l = t.unhideGhostForTarget;
|
|
2559
2550
|
if (e) {
|
|
2560
2551
|
var d = n || o;
|
|
2561
2552
|
a();
|
|
2562
|
-
var
|
|
2563
|
-
l(), d && !d.el.contains(
|
|
2553
|
+
var c = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e, u = document.elementFromPoint(c.clientX, c.clientY);
|
|
2554
|
+
l(), d && !d.el.contains(u) && (s("spill"), this.onSpill({
|
|
2564
2555
|
dragEl: r,
|
|
2565
2556
|
putSortable: n
|
|
2566
2557
|
}));
|
|
2567
2558
|
}
|
|
2568
2559
|
};
|
|
2569
|
-
function
|
|
2560
|
+
function cn() {
|
|
2570
2561
|
}
|
|
2571
|
-
|
|
2562
|
+
cn.prototype = {
|
|
2572
2563
|
startIndex: null,
|
|
2573
2564
|
dragStart: function(t) {
|
|
2574
2565
|
var e = t.oldDraggableIndex;
|
|
@@ -2577,28 +2568,28 @@ pn.prototype = {
|
|
|
2577
2568
|
onSpill: function(t) {
|
|
2578
2569
|
var e = t.dragEl, n = t.putSortable;
|
|
2579
2570
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
2580
|
-
var r =
|
|
2571
|
+
var r = ce(this.sortable.el, this.startIndex, this.options);
|
|
2581
2572
|
r ? this.sortable.el.insertBefore(e, r) : this.sortable.el.appendChild(e), this.sortable.animateAll(), n && n.animateAll();
|
|
2582
2573
|
},
|
|
2583
|
-
drop:
|
|
2574
|
+
drop: vr
|
|
2584
2575
|
};
|
|
2585
|
-
|
|
2576
|
+
Rt(cn, {
|
|
2586
2577
|
pluginName: "revertOnSpill"
|
|
2587
2578
|
});
|
|
2588
|
-
function
|
|
2579
|
+
function hn() {
|
|
2589
2580
|
}
|
|
2590
|
-
|
|
2581
|
+
hn.prototype = {
|
|
2591
2582
|
onSpill: function(t) {
|
|
2592
2583
|
var e = t.dragEl, n = t.putSortable, r = n || this.sortable;
|
|
2593
2584
|
r.captureAnimationState(), e.parentNode && e.parentNode.removeChild(e), r.animateAll();
|
|
2594
2585
|
},
|
|
2595
|
-
drop:
|
|
2586
|
+
drop: vr
|
|
2596
2587
|
};
|
|
2597
|
-
|
|
2588
|
+
Rt(hn, {
|
|
2598
2589
|
pluginName: "removeOnSpill"
|
|
2599
2590
|
});
|
|
2600
2591
|
w.mount(new Bs());
|
|
2601
|
-
w.mount(
|
|
2592
|
+
w.mount(hn, cn);
|
|
2602
2593
|
const Us = (i) => {
|
|
2603
2594
|
const t = i.item;
|
|
2604
2595
|
let e = Array.prototype.slice.call(t.parentNode.childNodes);
|
|
@@ -2613,18 +2604,18 @@ const Us = (i) => {
|
|
|
2613
2604
|
const l = n.getArray(), d = (
|
|
2614
2605
|
/** @type {Element & {layer: import("ol/layer").Layer}} */
|
|
2615
2606
|
i.item.querySelector("eox-layercontrol-layer").layer.get(r)
|
|
2616
|
-
),
|
|
2617
|
-
(b) => b.get(r) ==
|
|
2607
|
+
), c = l.find((b) => b.get(r) === d), u = o.dataset.layer, p = l.find(
|
|
2608
|
+
(b) => b.get(r) == u
|
|
2618
2609
|
);
|
|
2619
2610
|
let f, g;
|
|
2620
2611
|
for (f = 0; f < l.length; f++)
|
|
2621
|
-
if (l[f] ==
|
|
2612
|
+
if (l[f] == c) {
|
|
2622
2613
|
n.removeAt(f);
|
|
2623
2614
|
break;
|
|
2624
2615
|
}
|
|
2625
2616
|
for (g = 0; g < l.length; g++)
|
|
2626
2617
|
if (l[g] === p) {
|
|
2627
|
-
f > g ? n.insertAt(g,
|
|
2618
|
+
f > g ? n.insertAt(g, c) : n.insertAt(g + 1, c);
|
|
2628
2619
|
break;
|
|
2629
2620
|
}
|
|
2630
2621
|
t.requestUpdate();
|
|
@@ -2652,7 +2643,7 @@ function zs(i, t, e, n) {
|
|
|
2652
2643
|
s.get(t) || (s.set(t, a), o = !0), s.get(e) || (s.set(e, `layer ${a}`), o = !0), o && n.requestUpdate();
|
|
2653
2644
|
});
|
|
2654
2645
|
}
|
|
2655
|
-
function
|
|
2646
|
+
function pn(i, t, e) {
|
|
2656
2647
|
let n = [];
|
|
2657
2648
|
const r = (o, s, a) => {
|
|
2658
2649
|
n = [
|
|
@@ -2676,11 +2667,11 @@ function gn(i, t, e) {
|
|
|
2676
2667
|
}
|
|
2677
2668
|
function Zs(i, t, e) {
|
|
2678
2669
|
if (!i || !t) return !1;
|
|
2679
|
-
if (!
|
|
2670
|
+
if (!wr(i, e)) return !0;
|
|
2680
2671
|
const n = i.get("minZoom"), r = i.get("maxZoom"), o = t.getView().getZoom();
|
|
2681
2672
|
return o > n && o < r;
|
|
2682
2673
|
}
|
|
2683
|
-
function
|
|
2674
|
+
function wr(i, t) {
|
|
2684
2675
|
const e = i.get("minZoom"), n = i.get("maxZoom");
|
|
2685
2676
|
return !!(t && (e !== -1 / 0 || n !== 1 / 0));
|
|
2686
2677
|
}
|
|
@@ -2697,32 +2688,32 @@ const Xs = (i, t, e) => {
|
|
|
2697
2688
|
(...r) => gs(n(...r), i)
|
|
2698
2689
|
), e.layer.getSource().setKey(/* @__PURE__ */ new Date())), n;
|
|
2699
2690
|
};
|
|
2700
|
-
function
|
|
2691
|
+
function Ws(i, t, e) {
|
|
2701
2692
|
const n = "updateStyleVariables" in t, r = "setStyle" in t, o = n ? (
|
|
2702
2693
|
/** @type {import('ol/layer/WebGLTile').default} */
|
|
2703
2694
|
t.style_
|
|
2704
2695
|
) : e.style;
|
|
2705
2696
|
let s = o == null ? void 0 : o.variables;
|
|
2706
2697
|
if (s) {
|
|
2707
|
-
const a =
|
|
2698
|
+
const a = fn(i);
|
|
2708
2699
|
if (o.variables = {
|
|
2709
2700
|
...s,
|
|
2710
2701
|
...a
|
|
2711
2702
|
}, n)
|
|
2712
2703
|
t.updateStyleVariables(a);
|
|
2713
2704
|
else if (r) {
|
|
2714
|
-
const l =
|
|
2705
|
+
const l = Ys(o);
|
|
2715
2706
|
t.setStyle(
|
|
2716
2707
|
l
|
|
2717
2708
|
);
|
|
2718
2709
|
}
|
|
2719
2710
|
}
|
|
2720
2711
|
}
|
|
2721
|
-
const
|
|
2712
|
+
const fn = (i) => {
|
|
2722
2713
|
const t = {};
|
|
2723
2714
|
for (const e in i)
|
|
2724
2715
|
if (typeof i[e] == "object" && i[e] !== null) {
|
|
2725
|
-
const n =
|
|
2716
|
+
const n = fn(
|
|
2726
2717
|
/** @type {Record<string,any>} */
|
|
2727
2718
|
i[e]
|
|
2728
2719
|
);
|
|
@@ -2732,7 +2723,7 @@ const mn = (i) => {
|
|
|
2732
2723
|
t[e] = i == null ? void 0 : i[e];
|
|
2733
2724
|
return t;
|
|
2734
2725
|
};
|
|
2735
|
-
function
|
|
2726
|
+
function Ys(i) {
|
|
2736
2727
|
let t = i;
|
|
2737
2728
|
if ("variables" in i) {
|
|
2738
2729
|
let e = JSON.stringify(i);
|
|
@@ -2749,7 +2740,7 @@ function Ws(i) {
|
|
|
2749
2740
|
const Gs = (i, t) => {
|
|
2750
2741
|
if (!i)
|
|
2751
2742
|
return;
|
|
2752
|
-
const e =
|
|
2743
|
+
const e = fn(t);
|
|
2753
2744
|
let n, r;
|
|
2754
2745
|
return Array.isArray(i) ? r = structuredClone(i) : r = [structuredClone(i)], n = r.filter((o) => {
|
|
2755
2746
|
if (!("boundTo" in o))
|
|
@@ -2766,7 +2757,7 @@ const Gs = (i, t) => {
|
|
|
2766
2757
|
);
|
|
2767
2758
|
});
|
|
2768
2759
|
};
|
|
2769
|
-
function
|
|
2760
|
+
function xr(i, t) {
|
|
2770
2761
|
var n;
|
|
2771
2762
|
let e = {};
|
|
2772
2763
|
for (const r in i) {
|
|
@@ -2774,7 +2765,7 @@ function Tr(i, t) {
|
|
|
2774
2765
|
if (o && o !== "object")
|
|
2775
2766
|
e[r] = o === "number" ? Number(t[r]) : t[r];
|
|
2776
2767
|
else if (typeof i[r] == "object" && ((n = i[r]) != null && n.properties)) {
|
|
2777
|
-
const s =
|
|
2768
|
+
const s = xr(
|
|
2778
2769
|
i[r].properties,
|
|
2779
2770
|
t
|
|
2780
2771
|
);
|
|
@@ -2793,10 +2784,10 @@ function Js(i, t) {
|
|
|
2793
2784
|
if ((t.type === "style" || t.style) && n)
|
|
2794
2785
|
e = n;
|
|
2795
2786
|
else if ((l = (a = i.getSource()) == null ? void 0 : a.getTileUrlFunction) != null && l.call(a)) {
|
|
2796
|
-
const
|
|
2797
|
-
e = Object.fromEntries(
|
|
2787
|
+
const c = new URL(i.getSource().getTileUrlFunction()([0, 0, 0]));
|
|
2788
|
+
e = Object.fromEntries(c.searchParams.entries());
|
|
2798
2789
|
} else return null;
|
|
2799
|
-
const r =
|
|
2790
|
+
const r = xr(
|
|
2800
2791
|
((d = t.schema) == null ? void 0 : d.properties) || t.schema,
|
|
2801
2792
|
e
|
|
2802
2793
|
);
|
|
@@ -2828,7 +2819,7 @@ const Ks = (i, t) => i == null ? void 0 : i.filter(
|
|
|
2828
2819
|
<span class="button sort-icon icon drag-handle">
|
|
2829
2820
|
${i ? "═" : P}
|
|
2830
2821
|
</span>
|
|
2831
|
-
`,
|
|
2822
|
+
`, $r = (i) => {
|
|
2832
2823
|
var e;
|
|
2833
2824
|
const t = ["layerControlHide", "layerControlOptional"];
|
|
2834
2825
|
return (e = i == null ? void 0 : i.getArray()) == null ? void 0 : e.filter((n) => t.every((r) => !n.get(r)));
|
|
@@ -2838,9 +2829,9 @@ const Ks = (i, t) => i == null ? void 0 : i.filter(
|
|
|
2838
2829
|
* Copyright 2020 Google LLC
|
|
2839
2830
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2840
2831
|
*/
|
|
2841
|
-
const
|
|
2832
|
+
const Er = on(class extends sn {
|
|
2842
2833
|
constructor(i) {
|
|
2843
|
-
if (super(i), i.type !==
|
|
2834
|
+
if (super(i), i.type !== It.PROPERTY && i.type !== It.ATTRIBUTE && i.type !== It.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
|
|
2844
2835
|
if (!yo(i)) throw Error("`live` bindings can only contain a single expression");
|
|
2845
2836
|
}
|
|
2846
2837
|
render(i) {
|
|
@@ -2849,12 +2840,12 @@ const Pr = an(class extends ln {
|
|
|
2849
2840
|
update(i, [t]) {
|
|
2850
2841
|
if (t === wt || t === P) return t;
|
|
2851
2842
|
const e = i.element, n = i.name;
|
|
2852
|
-
if (i.type ===
|
|
2843
|
+
if (i.type === It.PROPERTY) {
|
|
2853
2844
|
if (t === e[n]) return wt;
|
|
2854
|
-
} else if (i.type ===
|
|
2845
|
+
} else if (i.type === It.BOOLEAN_ATTRIBUTE) {
|
|
2855
2846
|
if (!!t === e.hasAttribute(n)) return wt;
|
|
2856
|
-
} else if (i.type ===
|
|
2857
|
-
return
|
|
2847
|
+
} else if (i.type === It.ATTRIBUTE && e.getAttribute(n) === t + "") return wt;
|
|
2848
|
+
return Jn(i), t;
|
|
2858
2849
|
}
|
|
2859
2850
|
});
|
|
2860
2851
|
/**
|
|
@@ -2862,9 +2853,9 @@ const Pr = an(class extends ln {
|
|
|
2862
2853
|
* Copyright 2017 Google LLC
|
|
2863
2854
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2864
2855
|
*/
|
|
2865
|
-
class Ki extends
|
|
2856
|
+
class Ki extends sn {
|
|
2866
2857
|
constructor(t) {
|
|
2867
|
-
if (super(t), this.it = P, t.type !==
|
|
2858
|
+
if (super(t), this.it = P, t.type !== It.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
2868
2859
|
}
|
|
2869
2860
|
render(t) {
|
|
2870
2861
|
if (t === P || t == null) return this._t = void 0, this.it = t;
|
|
@@ -2877,7 +2868,7 @@ class Ki extends ln {
|
|
|
2877
2868
|
}
|
|
2878
2869
|
}
|
|
2879
2870
|
Ki.directiveName = "unsafeHTML", Ki.resultType = 1;
|
|
2880
|
-
const na =
|
|
2871
|
+
const na = on(Ki);
|
|
2881
2872
|
/**
|
|
2882
2873
|
* @license
|
|
2883
2874
|
* Copyright 2021 Google LLC
|
|
@@ -2890,76 +2881,76 @@ function* We(i, t) {
|
|
|
2890
2881
|
}
|
|
2891
2882
|
}
|
|
2892
2883
|
var Ut = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2893
|
-
function
|
|
2884
|
+
function Sr(i) {
|
|
2894
2885
|
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
2895
2886
|
}
|
|
2896
|
-
var Zi,
|
|
2887
|
+
var Zi, Vn;
|
|
2897
2888
|
function ra() {
|
|
2898
|
-
if (
|
|
2899
|
-
|
|
2900
|
-
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 Ut == "object" && Ut && Ut.Object === Object && Ut, d = typeof self == "object" && self && self.Object === Object && self,
|
|
2901
|
-
return
|
|
2889
|
+
if (Vn) return Zi;
|
|
2890
|
+
Vn = 1;
|
|
2891
|
+
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 Ut == "object" && Ut && Ut.Object === Object && Ut, d = typeof self == "object" && self && self.Object === Object && self, c = l || d || Function("return this")(), u = Object.prototype, p = u.toString, f = Math.max, g = Math.min, b = function() {
|
|
2892
|
+
return c.Date.now();
|
|
2902
2893
|
};
|
|
2903
|
-
function
|
|
2904
|
-
var R, q, X,
|
|
2894
|
+
function H(m, _, M) {
|
|
2895
|
+
var R, q, X, N, L, Z, dt = 0, tt = !1, ut = !1, gt = !0;
|
|
2905
2896
|
if (typeof m != "function")
|
|
2906
2897
|
throw new TypeError(i);
|
|
2907
|
-
|
|
2898
|
+
_ = E(_) || 0, F(M) && (tt = !!M.leading, ut = "maxWait" in M, X = ut ? f(E(M.maxWait) || 0, _) : X, gt = "trailing" in M ? !!M.trailing : gt);
|
|
2908
2899
|
function zt(I) {
|
|
2909
|
-
var
|
|
2910
|
-
return R = q = void 0, dt = I,
|
|
2900
|
+
var ct = R, Mt = q;
|
|
2901
|
+
return R = q = void 0, dt = I, N = m.apply(Mt, ct), N;
|
|
2911
2902
|
}
|
|
2912
|
-
function
|
|
2913
|
-
return dt = I, L = setTimeout(qt,
|
|
2903
|
+
function Ie(I) {
|
|
2904
|
+
return dt = I, L = setTimeout(qt, _), tt ? zt(I) : N;
|
|
2914
2905
|
}
|
|
2915
2906
|
function Zt(I) {
|
|
2916
|
-
var
|
|
2917
|
-
return
|
|
2907
|
+
var ct = I - Z, Mt = I - dt, gn = _ - ct;
|
|
2908
|
+
return ut ? g(gn, X - Mt) : gn;
|
|
2918
2909
|
}
|
|
2919
|
-
function
|
|
2920
|
-
var
|
|
2921
|
-
return Z === void 0 ||
|
|
2910
|
+
function _t(I) {
|
|
2911
|
+
var ct = I - Z, Mt = I - dt;
|
|
2912
|
+
return Z === void 0 || ct >= _ || ct < 0 || ut && Mt >= X;
|
|
2922
2913
|
}
|
|
2923
2914
|
function qt() {
|
|
2924
2915
|
var I = b();
|
|
2925
|
-
if (
|
|
2916
|
+
if (_t(I))
|
|
2926
2917
|
return He(I);
|
|
2927
2918
|
L = setTimeout(qt, Zt(I));
|
|
2928
2919
|
}
|
|
2929
2920
|
function He(I) {
|
|
2930
|
-
return L = void 0, gt && R ? zt(I) : (R = q = void 0,
|
|
2921
|
+
return L = void 0, gt && R ? zt(I) : (R = q = void 0, N);
|
|
2931
2922
|
}
|
|
2932
|
-
function
|
|
2923
|
+
function Ci() {
|
|
2933
2924
|
L !== void 0 && clearTimeout(L), dt = 0, R = Z = q = L = void 0;
|
|
2934
2925
|
}
|
|
2935
2926
|
function pe() {
|
|
2936
|
-
return L === void 0 ?
|
|
2927
|
+
return L === void 0 ? N : He(b());
|
|
2937
2928
|
}
|
|
2938
2929
|
function k() {
|
|
2939
|
-
var I = b(),
|
|
2940
|
-
if (R = arguments, q = this, Z = I,
|
|
2930
|
+
var I = b(), ct = _t(I);
|
|
2931
|
+
if (R = arguments, q = this, Z = I, ct) {
|
|
2941
2932
|
if (L === void 0)
|
|
2942
|
-
return
|
|
2943
|
-
if (
|
|
2944
|
-
return L = setTimeout(qt,
|
|
2933
|
+
return Ie(Z);
|
|
2934
|
+
if (ut)
|
|
2935
|
+
return L = setTimeout(qt, _), zt(Z);
|
|
2945
2936
|
}
|
|
2946
|
-
return L === void 0 && (L = setTimeout(qt,
|
|
2937
|
+
return L === void 0 && (L = setTimeout(qt, _)), N;
|
|
2947
2938
|
}
|
|
2948
|
-
return k.cancel =
|
|
2939
|
+
return k.cancel = Ci, k.flush = pe, k;
|
|
2949
2940
|
}
|
|
2950
|
-
function J(m,
|
|
2941
|
+
function J(m, _, M) {
|
|
2951
2942
|
var R = !0, q = !0;
|
|
2952
2943
|
if (typeof m != "function")
|
|
2953
2944
|
throw new TypeError(i);
|
|
2954
|
-
return F(M) && (R = "leading" in M ? !!M.leading : R, q = "trailing" in M ? !!M.trailing : q),
|
|
2945
|
+
return F(M) && (R = "leading" in M ? !!M.leading : R, q = "trailing" in M ? !!M.trailing : q), H(m, _, {
|
|
2955
2946
|
leading: R,
|
|
2956
|
-
maxWait:
|
|
2947
|
+
maxWait: _,
|
|
2957
2948
|
trailing: q
|
|
2958
2949
|
});
|
|
2959
2950
|
}
|
|
2960
2951
|
function F(m) {
|
|
2961
|
-
var
|
|
2962
|
-
return !!m && (
|
|
2952
|
+
var _ = typeof m;
|
|
2953
|
+
return !!m && (_ == "object" || _ == "function");
|
|
2963
2954
|
}
|
|
2964
2955
|
function st(m) {
|
|
2965
2956
|
return !!m && typeof m == "object";
|
|
@@ -2967,14 +2958,14 @@ function ra() {
|
|
|
2967
2958
|
function K(m) {
|
|
2968
2959
|
return typeof m == "symbol" || st(m) && p.call(m) == e;
|
|
2969
2960
|
}
|
|
2970
|
-
function
|
|
2961
|
+
function E(m) {
|
|
2971
2962
|
if (typeof m == "number")
|
|
2972
2963
|
return m;
|
|
2973
2964
|
if (K(m))
|
|
2974
2965
|
return t;
|
|
2975
2966
|
if (F(m)) {
|
|
2976
|
-
var
|
|
2977
|
-
m = F(
|
|
2967
|
+
var _ = typeof m.valueOf == "function" ? m.valueOf() : m;
|
|
2968
|
+
m = F(_) ? _ + "" : _;
|
|
2978
2969
|
}
|
|
2979
2970
|
if (typeof m != "string")
|
|
2980
2971
|
return m === 0 ? m : +m;
|
|
@@ -2985,20 +2976,20 @@ function ra() {
|
|
|
2985
2976
|
return Zi = J, Zi;
|
|
2986
2977
|
}
|
|
2987
2978
|
var oa = ra();
|
|
2988
|
-
const
|
|
2979
|
+
const kn = /* @__PURE__ */ Sr(oa);
|
|
2989
2980
|
/**
|
|
2990
2981
|
* @license
|
|
2991
2982
|
* Copyright 2018 Google LLC
|
|
2992
2983
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2993
2984
|
*/
|
|
2994
|
-
const
|
|
2995
|
-
var vt,
|
|
2996
|
-
class
|
|
2985
|
+
const Ue = (i) => i ?? P;
|
|
2986
|
+
var vt, ni, ri;
|
|
2987
|
+
class Ar extends lt {
|
|
2997
2988
|
constructor() {
|
|
2998
2989
|
super();
|
|
2999
2990
|
/** @type {(LegendConfig & {id:string})[]}} */
|
|
3000
2991
|
D(this, vt, []);
|
|
3001
|
-
D(this,
|
|
2992
|
+
D(this, ni, Zn`
|
|
3002
2993
|
.separator {
|
|
3003
2994
|
margin: 0 0 24px 0;
|
|
3004
2995
|
}
|
|
@@ -3011,7 +3002,7 @@ class Rr extends lt {
|
|
|
3011
3002
|
--cle-padding: 0;
|
|
3012
3003
|
}
|
|
3013
3004
|
`);
|
|
3014
|
-
D(this,
|
|
3005
|
+
D(this, ri, "");
|
|
3015
3006
|
this.unstyled = !1, this.noShadow = !1, this.layer = null;
|
|
3016
3007
|
}
|
|
3017
3008
|
get layerLegend() {
|
|
@@ -3024,13 +3015,13 @@ class Rr extends lt {
|
|
|
3024
3015
|
**/
|
|
3025
3016
|
set layerLegend(e) {
|
|
3026
3017
|
var n;
|
|
3027
|
-
Array.isArray(e) ?
|
|
3018
|
+
Array.isArray(e) ? Ct(this, vt, e.map((r, o) => {
|
|
3028
3019
|
var s;
|
|
3029
3020
|
return {
|
|
3030
3021
|
id: (((s = this.layer) == null ? void 0 : s.get("id")) ?? "") + o,
|
|
3031
3022
|
...r
|
|
3032
3023
|
};
|
|
3033
|
-
})) :
|
|
3024
|
+
})) : Ct(this, vt, [
|
|
3034
3025
|
{
|
|
3035
3026
|
id: (((n = this.layer) == null ? void 0 : n.get("id")) ?? "") + 0,
|
|
3036
3027
|
...e
|
|
@@ -3046,7 +3037,7 @@ class Rr extends lt {
|
|
|
3046
3037
|
firstUpdated() {
|
|
3047
3038
|
this.layerLegend && new ResizeObserver(() => {
|
|
3048
3039
|
var e;
|
|
3049
|
-
|
|
3040
|
+
Ct(this, vt, (e = S(this, vt)) == null ? void 0 : e.map((n) => (this.offsetWidth !== n.width && (n.width = this.offsetWidth), { ...n }))), this.requestUpdate();
|
|
3050
3041
|
}).observe(this.renderRoot.querySelector(".legend-container"));
|
|
3051
3042
|
}
|
|
3052
3043
|
/**
|
|
@@ -3057,8 +3048,8 @@ class Rr extends lt {
|
|
|
3057
3048
|
"Please import `color-legend-element` in order to use layerLegend"
|
|
3058
3049
|
), x`
|
|
3059
3050
|
<style>
|
|
3060
|
-
${S(this,
|
|
3061
|
-
${!this.unstyled && S(this,
|
|
3051
|
+
${S(this, ni)}
|
|
3052
|
+
${!this.unstyled && S(this, ri)}
|
|
3062
3053
|
</style>
|
|
3063
3054
|
${G(
|
|
3064
3055
|
this.layerLegend,
|
|
@@ -3070,12 +3061,12 @@ class Rr extends lt {
|
|
|
3070
3061
|
<color-legend
|
|
3071
3062
|
id="${e.id}"
|
|
3072
3063
|
width=${e.width ?? 325}
|
|
3073
|
-
scaleType="${
|
|
3074
|
-
markType="${
|
|
3075
|
-
titleText="${
|
|
3064
|
+
scaleType="${Ue(e.scaleType)}"
|
|
3065
|
+
markType="${Ue(e.markType)}"
|
|
3066
|
+
titleText="${Ue(e.title)}"
|
|
3076
3067
|
.range=${e.range}
|
|
3077
3068
|
.domain=${e.domain}
|
|
3078
|
-
tickFormat="${
|
|
3069
|
+
tickFormat="${Ue(e.tickFormat)}"
|
|
3079
3070
|
.ticks=${e.ticks ?? 5}
|
|
3080
3071
|
.tickValues=${e.tickValues}
|
|
3081
3072
|
.marginLeft=${0}
|
|
@@ -3091,8 +3082,8 @@ class Rr extends lt {
|
|
|
3091
3082
|
`;
|
|
3092
3083
|
}
|
|
3093
3084
|
}
|
|
3094
|
-
vt = new WeakMap(),
|
|
3095
|
-
j(
|
|
3085
|
+
vt = new WeakMap(), ni = new WeakMap(), ri = new WeakMap(), // Define static properties for the component
|
|
3086
|
+
j(Ar, "properties", {
|
|
3096
3087
|
unstyled: { type: Boolean },
|
|
3097
3088
|
noShadow: { type: Boolean },
|
|
3098
3089
|
layerLegend: { attribute: !1 },
|
|
@@ -3100,10 +3091,10 @@ j(Rr, "properties", {
|
|
|
3100
3091
|
});
|
|
3101
3092
|
customElements.define(
|
|
3102
3093
|
"eox-layercontrol-layer-legend",
|
|
3103
|
-
|
|
3094
|
+
Ar
|
|
3104
3095
|
);
|
|
3105
|
-
var Tt,
|
|
3106
|
-
class
|
|
3096
|
+
var Tt, de, Pe, Oe, Qi, oi, si;
|
|
3097
|
+
class _r extends lt {
|
|
3107
3098
|
constructor() {
|
|
3108
3099
|
super();
|
|
3109
3100
|
D(this, Oe);
|
|
@@ -3118,14 +3109,14 @@ class Lr extends lt {
|
|
|
3118
3109
|
*
|
|
3119
3110
|
* @type {{[key: string]: any}}
|
|
3120
3111
|
*/
|
|
3121
|
-
D(this,
|
|
3112
|
+
D(this, de, null);
|
|
3122
3113
|
/**
|
|
3123
3114
|
* Original tile url function, if it exist
|
|
3124
3115
|
*
|
|
3125
3116
|
* @type {Function}
|
|
3126
3117
|
*/
|
|
3127
3118
|
D(this, Pe);
|
|
3128
|
-
D(this,
|
|
3119
|
+
D(this, oi, Zn`
|
|
3129
3120
|
color-legend {
|
|
3130
3121
|
--cle-background: transparent;
|
|
3131
3122
|
--cle-font-family: inherit;
|
|
@@ -3134,8 +3125,8 @@ class Lr extends lt {
|
|
|
3134
3125
|
--cle-letter-spacing-title: inherit;
|
|
3135
3126
|
}
|
|
3136
3127
|
`);
|
|
3137
|
-
D(this,
|
|
3138
|
-
this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange =
|
|
3128
|
+
D(this, si, "");
|
|
3129
|
+
this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange = kn(B(this, Oe, Qi), 1e3);
|
|
3139
3130
|
}
|
|
3140
3131
|
/** Decide what type of throttling to do based on layerConfig type
|
|
3141
3132
|
*
|
|
@@ -3144,7 +3135,7 @@ class Lr extends lt {
|
|
|
3144
3135
|
updated(e) {
|
|
3145
3136
|
if (e.has("layerConfig")) {
|
|
3146
3137
|
const n = this.layerConfig.type === "style" || this.layerConfig.style ? 100 : 1e3;
|
|
3147
|
-
this.throttleDataChange =
|
|
3138
|
+
this.throttleDataChange = kn(B(this, Oe, Qi), n), this.requestUpdate();
|
|
3148
3139
|
}
|
|
3149
3140
|
}
|
|
3150
3141
|
/**
|
|
@@ -3157,7 +3148,7 @@ class Lr extends lt {
|
|
|
3157
3148
|
* Renders a JSON form for configuration options of a layer.
|
|
3158
3149
|
*/
|
|
3159
3150
|
render() {
|
|
3160
|
-
|
|
3151
|
+
Ct(this, de, Js(this.layer, this.layerConfig)), Object.keys(S(this, Tt)).length !== 0 && Ct(this, de, S(this, Tt)), customElements.get("eox-jsonform") || console.error("Please import @eox/jsonform in order to use layerconfig");
|
|
3161
3152
|
const e = {
|
|
3162
3153
|
disable_edit_json: !0,
|
|
3163
3154
|
disable_collapse: !0,
|
|
@@ -3165,8 +3156,8 @@ class Lr extends lt {
|
|
|
3165
3156
|
};
|
|
3166
3157
|
return x`
|
|
3167
3158
|
<style>
|
|
3168
|
-
${S(this,
|
|
3169
|
-
${!this.unstyled && S(this,
|
|
3159
|
+
${S(this, oi)}
|
|
3160
|
+
${!this.unstyled && S(this, si)}
|
|
3170
3161
|
</style>
|
|
3171
3162
|
${G(
|
|
3172
3163
|
this.layerConfig,
|
|
@@ -3188,7 +3179,7 @@ class Lr extends lt {
|
|
|
3188
3179
|
<!-- Render a JSON form for layer configuration -->
|
|
3189
3180
|
<eox-jsonform
|
|
3190
3181
|
.schema=${this.layerConfig.schema}
|
|
3191
|
-
.value=${S(this,
|
|
3182
|
+
.value=${S(this, de)}
|
|
3192
3183
|
.options=${e}
|
|
3193
3184
|
@change=${this.throttleDataChange}
|
|
3194
3185
|
></eox-jsonform>
|
|
@@ -3197,15 +3188,15 @@ class Lr extends lt {
|
|
|
3197
3188
|
`;
|
|
3198
3189
|
}
|
|
3199
3190
|
}
|
|
3200
|
-
Tt = new WeakMap(),
|
|
3191
|
+
Tt = new WeakMap(), de = new WeakMap(), Pe = new WeakMap(), Oe = new WeakSet(), /**
|
|
3201
3192
|
* Handles changes in eox-jsonform values.
|
|
3202
3193
|
*
|
|
3203
3194
|
* @param {{ detail: { value: string; }; }} e
|
|
3204
3195
|
*/
|
|
3205
3196
|
Qi = function(e) {
|
|
3206
|
-
|
|
3197
|
+
Ct(this, Tt, e.detail), this.layerConfig.type === "style" || this.layerConfig.style ? "setStyle" in this.layer || "updateStyleVariables" in this.layer ? Ws(S(this, Tt), this.layer, this.layerConfig) : console.error(
|
|
3207
3198
|
`Layer type ${this.layer.get("type") ?? ""} does not support styles configuration`
|
|
3208
|
-
) :
|
|
3199
|
+
) : Ct(this, Pe, Xs(
|
|
3209
3200
|
S(this, Tt),
|
|
3210
3201
|
S(this, Pe),
|
|
3211
3202
|
this
|
|
@@ -3218,8 +3209,8 @@ Qi = function(e) {
|
|
|
3218
3209
|
}
|
|
3219
3210
|
})
|
|
3220
3211
|
), this.requestUpdate();
|
|
3221
|
-
},
|
|
3222
|
-
j(
|
|
3212
|
+
}, oi = new WeakMap(), si = new WeakMap(), // Define static properties for the component
|
|
3213
|
+
j(_r, "properties", {
|
|
3223
3214
|
layer: { attribute: !1 },
|
|
3224
3215
|
unstyled: { type: Boolean },
|
|
3225
3216
|
noShadow: { type: Boolean },
|
|
@@ -3227,15 +3218,15 @@ j(Lr, "properties", {
|
|
|
3227
3218
|
});
|
|
3228
3219
|
customElements.define(
|
|
3229
3220
|
"eox-layercontrol-layerconfig",
|
|
3230
|
-
|
|
3221
|
+
_r
|
|
3231
3222
|
);
|
|
3232
|
-
var
|
|
3233
|
-
class
|
|
3223
|
+
var ai, Tr, li, di;
|
|
3224
|
+
class Cr extends lt {
|
|
3234
3225
|
constructor() {
|
|
3235
3226
|
super();
|
|
3236
|
-
D(this,
|
|
3227
|
+
D(this, ai);
|
|
3228
|
+
D(this, li, "");
|
|
3237
3229
|
D(this, di, "");
|
|
3238
|
-
D(this, ci, "");
|
|
3239
3230
|
this.unstyled = !1, this.noShadow = !1, this.layerDatetime = null, this.layer = null;
|
|
3240
3231
|
}
|
|
3241
3232
|
/**
|
|
@@ -3252,8 +3243,8 @@ class Mr extends lt {
|
|
|
3252
3243
|
"Please import @eox/timecontrol in order to use layerDatetime"
|
|
3253
3244
|
), x`
|
|
3254
3245
|
<style>
|
|
3255
|
-
${S(this,
|
|
3256
|
-
${!this.unstyled && S(this,
|
|
3246
|
+
${S(this, li)}
|
|
3247
|
+
${!this.unstyled && S(this, di)}
|
|
3257
3248
|
</style>
|
|
3258
3249
|
${G(
|
|
3259
3250
|
this.layerDatetime,
|
|
@@ -3270,20 +3261,20 @@ class Mr extends lt {
|
|
|
3270
3261
|
.controlProperty=${void 0}
|
|
3271
3262
|
current-step=${this.layerDatetime.currentStep}
|
|
3272
3263
|
.displayFormat=${this.layerDatetime.displayFormat}
|
|
3273
|
-
@stepchange=${B(this,
|
|
3264
|
+
@stepchange=${B(this, ai, Tr)}
|
|
3274
3265
|
></eox-timecontrol>
|
|
3275
3266
|
`
|
|
3276
3267
|
)}
|
|
3277
3268
|
`;
|
|
3278
3269
|
}
|
|
3279
3270
|
}
|
|
3280
|
-
|
|
3271
|
+
ai = new WeakSet(), /**
|
|
3281
3272
|
* Handles timecontrol Stepchange &
|
|
3282
3273
|
* triggers `datetime:updated` event on step change
|
|
3283
3274
|
*
|
|
3284
3275
|
* @param {CustomEvent<{currentStep:string|number}>} evt
|
|
3285
3276
|
**/
|
|
3286
|
-
|
|
3277
|
+
Tr = function(e) {
|
|
3287
3278
|
this.dispatchEvent(
|
|
3288
3279
|
new CustomEvent("datetime:updated", {
|
|
3289
3280
|
bubbles: !0,
|
|
@@ -3293,8 +3284,8 @@ Ir = function(e) {
|
|
|
3293
3284
|
}
|
|
3294
3285
|
})
|
|
3295
3286
|
), this.layerDatetime.currentStep = e.detail.currentStep, this.requestUpdate();
|
|
3296
|
-
},
|
|
3297
|
-
j(
|
|
3287
|
+
}, li = new WeakMap(), di = new WeakMap(), // Define static properties for the component
|
|
3288
|
+
j(Cr, "properties", {
|
|
3298
3289
|
unstyled: { type: Boolean },
|
|
3299
3290
|
noShadow: { type: Boolean },
|
|
3300
3291
|
layerDatetime: { attribute: !1 },
|
|
@@ -3302,10 +3293,10 @@ j(Mr, "properties", {
|
|
|
3302
3293
|
});
|
|
3303
3294
|
customElements.define(
|
|
3304
3295
|
"eox-layercontrol-layer-datetime",
|
|
3305
|
-
|
|
3296
|
+
Cr
|
|
3306
3297
|
);
|
|
3307
|
-
var Re, ui,
|
|
3308
|
-
class
|
|
3298
|
+
var Re, ui, ci;
|
|
3299
|
+
class Dr extends lt {
|
|
3309
3300
|
constructor() {
|
|
3310
3301
|
super();
|
|
3311
3302
|
/** @param {number} index */
|
|
@@ -3333,7 +3324,7 @@ class Nr extends lt {
|
|
|
3333
3324
|
display: block;
|
|
3334
3325
|
}
|
|
3335
3326
|
`);
|
|
3336
|
-
D(this,
|
|
3327
|
+
D(this, ci, `
|
|
3337
3328
|
.listed label {
|
|
3338
3329
|
display: flex;
|
|
3339
3330
|
justify-content: start;
|
|
@@ -3389,7 +3380,7 @@ class Nr extends lt {
|
|
|
3389
3380
|
return x`
|
|
3390
3381
|
<style>
|
|
3391
3382
|
${S(this, ui)}
|
|
3392
|
-
${!this.unstyled && S(this,
|
|
3383
|
+
${!this.unstyled && S(this, ci)}
|
|
3393
3384
|
</style>
|
|
3394
3385
|
<div class="${this.toolsAsList ? "listed" : "tabbed"}">
|
|
3395
3386
|
<!-- Navigation for tabs and actions -->
|
|
@@ -3458,8 +3449,8 @@ class Nr extends lt {
|
|
|
3458
3449
|
`;
|
|
3459
3450
|
}
|
|
3460
3451
|
}
|
|
3461
|
-
Re = new WeakMap(), ui = new WeakMap(),
|
|
3462
|
-
j(
|
|
3452
|
+
Re = new WeakMap(), ui = new WeakMap(), ci = new WeakMap(), // Define static properties for the component
|
|
3453
|
+
j(Dr, "properties", {
|
|
3463
3454
|
actions: { attribute: !1 },
|
|
3464
3455
|
selectedTab: { state: !0 },
|
|
3465
3456
|
tabs: { attribute: !1 },
|
|
@@ -3467,10 +3458,10 @@ j(Nr, "properties", {
|
|
|
3467
3458
|
noShadow: { type: Boolean },
|
|
3468
3459
|
toolsAsList: { type: Boolean }
|
|
3469
3460
|
});
|
|
3470
|
-
customElements.define("eox-layercontrol-tools-items",
|
|
3471
|
-
const sa = "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;}", aa = `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");}`,
|
|
3472
|
-
var
|
|
3473
|
-
class
|
|
3461
|
+
customElements.define("eox-layercontrol-tools-items", Dr);
|
|
3462
|
+
const sa = "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;}", aa = `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");}`, Pr = `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");}`, la = ':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);}';
|
|
3463
|
+
var hi, pi;
|
|
3464
|
+
class Or extends lt {
|
|
3474
3465
|
constructor() {
|
|
3475
3466
|
super();
|
|
3476
3467
|
// Initializes '_removeButton' invoking 'removeButton' function with 'this' context.
|
|
@@ -3498,7 +3489,7 @@ class Vr extends lt {
|
|
|
3498
3489
|
min="0"
|
|
3499
3490
|
max="1"
|
|
3500
3491
|
step="0.01"
|
|
3501
|
-
value=${
|
|
3492
|
+
value=${Er((e = this.layer) == null ? void 0 : e.getOpacity())}
|
|
3502
3493
|
@input=${(n) => this.layer.setOpacity(parseFloat(n.target.value))}
|
|
3503
3494
|
/>
|
|
3504
3495
|
</div>
|
|
@@ -3554,11 +3545,11 @@ class Vr extends lt {
|
|
|
3554
3545
|
<div slot="sort-icon">${this._sortButton()}</div>
|
|
3555
3546
|
`;
|
|
3556
3547
|
});
|
|
3557
|
-
D(this,
|
|
3558
|
-
D(this,
|
|
3548
|
+
D(this, hi, "");
|
|
3549
|
+
D(this, pi, `
|
|
3559
3550
|
${sa}
|
|
3560
3551
|
${aa}
|
|
3561
|
-
${
|
|
3552
|
+
${Pr}
|
|
3562
3553
|
${la}
|
|
3563
3554
|
.drag-handle {
|
|
3564
3555
|
cursor: n-resize;
|
|
@@ -3687,14 +3678,11 @@ class Vr extends lt {
|
|
|
3687
3678
|
}
|
|
3688
3679
|
render() {
|
|
3689
3680
|
var l;
|
|
3690
|
-
const e = Ks(this.tools, this.layer), n = Qs(this.tools, this.layer), r = this[`_${e == null ? void 0 : e[0]}Button`] ? (
|
|
3691
|
-
// @ts-expect-error TODO
|
|
3692
|
-
this[`_${e == null ? void 0 : e[0]}Button`]()
|
|
3693
|
-
) : P, 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;
|
|
3681
|
+
const e = Ks(this.tools, this.layer), n = Qs(this.tools, this.layer), r = this[`_${e == null ? void 0 : e[0]}Button`] ? this[`_${e == null ? void 0 : e[0]}Button`]() : P, 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;
|
|
3694
3682
|
return x`
|
|
3695
3683
|
<style>
|
|
3696
|
-
${S(this,
|
|
3697
|
-
${!this.unstyled && S(this,
|
|
3684
|
+
${S(this, hi)}
|
|
3685
|
+
${!this.unstyled && S(this, pi)}
|
|
3698
3686
|
</style>
|
|
3699
3687
|
${G(
|
|
3700
3688
|
s + a > 0,
|
|
@@ -3735,8 +3723,8 @@ class Vr extends lt {
|
|
|
3735
3723
|
`;
|
|
3736
3724
|
}
|
|
3737
3725
|
}
|
|
3738
|
-
|
|
3739
|
-
j(
|
|
3726
|
+
hi = new WeakMap(), pi = new WeakMap(), // Define static properties for the component
|
|
3727
|
+
j(Or, "properties", {
|
|
3740
3728
|
layer: { attribute: !1 },
|
|
3741
3729
|
tools: { attribute: !1 },
|
|
3742
3730
|
unstyled: { type: Boolean },
|
|
@@ -3745,7 +3733,7 @@ j(Vr, "properties", {
|
|
|
3745
3733
|
});
|
|
3746
3734
|
customElements.define(
|
|
3747
3735
|
"eox-layercontrol-layer-tools",
|
|
3748
|
-
|
|
3736
|
+
Or
|
|
3749
3737
|
);
|
|
3750
3738
|
const da = (i) => {
|
|
3751
3739
|
const t = () => {
|
|
@@ -3759,11 +3747,11 @@ const da = (i) => {
|
|
|
3759
3747
|
new CustomEvent("change:resolution", { bubbles: !0 })
|
|
3760
3748
|
));
|
|
3761
3749
|
};
|
|
3762
|
-
|
|
3750
|
+
wr(
|
|
3763
3751
|
i.layer,
|
|
3764
3752
|
i.showLayerZoomState
|
|
3765
3753
|
) && (t(), i.map.getView().on("change:resolution", () => t()));
|
|
3766
|
-
},
|
|
3754
|
+
}, ua = (i, t) => {
|
|
3767
3755
|
const e = t.layer;
|
|
3768
3756
|
e.setVisible(i.target.checked), i.target.checked && e.get("layerControlExclusive") && t.closest(
|
|
3769
3757
|
".layers > ul"
|
|
@@ -3774,20 +3762,20 @@ const da = (i) => {
|
|
|
3774
3762
|
new CustomEvent("changed", { bubbles: !0, detail: e })
|
|
3775
3763
|
), t.requestUpdate();
|
|
3776
3764
|
};
|
|
3777
|
-
var
|
|
3778
|
-
class
|
|
3765
|
+
var Et, oe, Lr, fi, gi;
|
|
3766
|
+
class Rr extends lt {
|
|
3779
3767
|
constructor() {
|
|
3780
3768
|
super();
|
|
3781
|
-
D(this,
|
|
3769
|
+
D(this, Et);
|
|
3782
3770
|
/**
|
|
3783
3771
|
* Represents the current layer visibility based on zoom level.
|
|
3784
3772
|
*
|
|
3785
3773
|
* @type {Boolean}
|
|
3786
3774
|
*/
|
|
3787
3775
|
j(this, "currLayerVisibilityBasedOnZoom", !0);
|
|
3788
|
-
D(this,
|
|
3789
|
-
D(this,
|
|
3790
|
-
${
|
|
3776
|
+
D(this, fi, "");
|
|
3777
|
+
D(this, gi, `
|
|
3778
|
+
${Pr}
|
|
3791
3779
|
eox-layercontrol-layer {
|
|
3792
3780
|
width: 100%;
|
|
3793
3781
|
position: relative;
|
|
@@ -3868,11 +3856,11 @@ class kr extends lt {
|
|
|
3868
3856
|
*/
|
|
3869
3857
|
render() {
|
|
3870
3858
|
var l;
|
|
3871
|
-
const e = this.layer.getVisible(), n = e ? "visible" : "", r = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", o = B(this,
|
|
3859
|
+
const e = this.layer.getVisible(), n = e ? "visible" : "", r = this.currLayerVisibilityBasedOnZoom ? "" : "zoom-state-invisible", o = B(this, Et, oe).call(this, "layerControlDisable") ? "disabled" : "", s = B(this, Et, oe).call(this, "layerControlExclusive") ? "radio" : "checkbox", a = ((l = this.tools) == null ? void 0 : l.length) > 0;
|
|
3872
3860
|
return x`
|
|
3873
3861
|
<style>
|
|
3874
|
-
${S(this,
|
|
3875
|
-
${!this.unstyled && S(this,
|
|
3862
|
+
${S(this, fi)}
|
|
3863
|
+
${!this.unstyled && S(this, gi)}
|
|
3876
3864
|
</style>
|
|
3877
3865
|
${G(
|
|
3878
3866
|
this.layer,
|
|
@@ -3883,16 +3871,16 @@ class kr extends lt {
|
|
|
3883
3871
|
<!-- Input element for layer visibility -->
|
|
3884
3872
|
<input
|
|
3885
3873
|
type=${s}
|
|
3886
|
-
.checked=${
|
|
3887
|
-
@click=${B(this,
|
|
3874
|
+
.checked=${Er(e)}
|
|
3875
|
+
@click=${B(this, Et, Lr)}
|
|
3888
3876
|
/>
|
|
3889
3877
|
|
|
3890
3878
|
<!-- Layer title -->
|
|
3891
3879
|
<span
|
|
3892
|
-
class="title ${B(this,
|
|
3893
|
-
style="--layer-color: ${B(this,
|
|
3880
|
+
class="title ${B(this, Et, oe).call(this, "color") ? "color-swatch" : ""}"
|
|
3881
|
+
style="--layer-color: ${B(this, Et, oe).call(this, "color")}"
|
|
3894
3882
|
>
|
|
3895
|
-
${B(this,
|
|
3883
|
+
${B(this, Et, oe).call(this, this.titleProperty)}
|
|
3896
3884
|
</span>
|
|
3897
3885
|
${G(
|
|
3898
3886
|
a,
|
|
@@ -3914,13 +3902,13 @@ class kr extends lt {
|
|
|
3914
3902
|
`;
|
|
3915
3903
|
}
|
|
3916
3904
|
}
|
|
3917
|
-
|
|
3905
|
+
Et = new WeakSet(), /**
|
|
3918
3906
|
* Private method to get layer property by key if available.
|
|
3919
3907
|
*
|
|
3920
3908
|
* @param {string} key - The key for the layer property.
|
|
3921
3909
|
* @returns {any} - The value of the layer property if exists, otherwise undefined.
|
|
3922
3910
|
*/
|
|
3923
|
-
|
|
3911
|
+
oe = function(e) {
|
|
3924
3912
|
var n;
|
|
3925
3913
|
return (n = this.layer) == null ? void 0 : n.get(e);
|
|
3926
3914
|
}, /**
|
|
@@ -3928,10 +3916,10 @@ se = function(e) {
|
|
|
3928
3916
|
*
|
|
3929
3917
|
* @param {{target: { checked: boolean }}} evt - The input change event.
|
|
3930
3918
|
*/
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
},
|
|
3934
|
-
j(
|
|
3919
|
+
Lr = function(e) {
|
|
3920
|
+
ua(e, this);
|
|
3921
|
+
}, fi = new WeakMap(), gi = new WeakMap(), // Define static properties for the component
|
|
3922
|
+
j(Rr, "properties", {
|
|
3935
3923
|
layer: { attribute: !1 },
|
|
3936
3924
|
map: { attribute: !1, state: !0 },
|
|
3937
3925
|
titleProperty: { attribute: "title-property", type: String },
|
|
@@ -3941,13 +3929,13 @@ j(kr, "properties", {
|
|
|
3941
3929
|
noShadow: { type: Boolean },
|
|
3942
3930
|
toolsAsList: { type: Boolean }
|
|
3943
3931
|
});
|
|
3944
|
-
customElements.define("eox-layercontrol-layer",
|
|
3945
|
-
var
|
|
3946
|
-
class
|
|
3932
|
+
customElements.define("eox-layercontrol-layer", Rr);
|
|
3933
|
+
var mi, yi;
|
|
3934
|
+
class Mr extends lt {
|
|
3947
3935
|
constructor() {
|
|
3948
3936
|
super();
|
|
3949
|
-
D(this,
|
|
3950
|
-
D(this,
|
|
3937
|
+
D(this, mi, "");
|
|
3938
|
+
D(this, yi, `
|
|
3951
3939
|
details summary {
|
|
3952
3940
|
cursor: pointer;
|
|
3953
3941
|
display: var(--layer-summary-visibility);
|
|
@@ -3987,13 +3975,14 @@ class Ur extends lt {
|
|
|
3987
3975
|
*/
|
|
3988
3976
|
render() {
|
|
3989
3977
|
var r, o;
|
|
3990
|
-
const e = !!((r = this.group) != null && r.get("layerControlExpand")), n = (o =
|
|
3978
|
+
const e = !!((r = this.group) != null && r.get("layerControlExpand")), n = (o = $r(
|
|
3979
|
+
/** @type import("ol").Collection<import("ol/layer").Layer> */
|
|
3991
3980
|
this.group.getLayers()
|
|
3992
3981
|
)) == null ? void 0 : o.length;
|
|
3993
3982
|
return x`
|
|
3994
3983
|
<style>
|
|
3995
|
-
${S(this,
|
|
3996
|
-
${!this.unstyled && S(this,
|
|
3984
|
+
${S(this, mi)}
|
|
3985
|
+
${!this.unstyled && S(this, yi)}
|
|
3997
3986
|
</style>
|
|
3998
3987
|
${G(
|
|
3999
3988
|
this.group,
|
|
@@ -4037,8 +4026,8 @@ class Ur extends lt {
|
|
|
4037
4026
|
`;
|
|
4038
4027
|
}
|
|
4039
4028
|
}
|
|
4040
|
-
|
|
4041
|
-
j(
|
|
4029
|
+
mi = new WeakMap(), yi = new WeakMap(), // Define static properties for the component
|
|
4030
|
+
j(Mr, "properties", {
|
|
4042
4031
|
group: { attribute: !1 },
|
|
4043
4032
|
idProperty: { attribute: "id-property" },
|
|
4044
4033
|
map: { attribute: !1, state: !0 },
|
|
@@ -4051,91 +4040,91 @@ j(Ur, "properties", {
|
|
|
4051
4040
|
});
|
|
4052
4041
|
customElements.define(
|
|
4053
4042
|
"eox-layercontrol-layer-group",
|
|
4054
|
-
|
|
4043
|
+
Mr
|
|
4055
4044
|
);
|
|
4056
|
-
var qi,
|
|
4057
|
-
function
|
|
4058
|
-
if (
|
|
4059
|
-
|
|
4060
|
-
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 Ut == "object" && Ut && Ut.Object === Object && Ut, d = typeof self == "object" && self && self.Object === Object && self,
|
|
4061
|
-
return
|
|
4045
|
+
var qi, Bn;
|
|
4046
|
+
function ca() {
|
|
4047
|
+
if (Bn) return qi;
|
|
4048
|
+
Bn = 1;
|
|
4049
|
+
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 Ut == "object" && Ut && Ut.Object === Object && Ut, d = typeof self == "object" && self && self.Object === Object && self, c = l || d || Function("return this")(), u = Object.prototype, p = u.toString, f = Math.max, g = Math.min, b = function() {
|
|
4050
|
+
return c.Date.now();
|
|
4062
4051
|
};
|
|
4063
|
-
function
|
|
4064
|
-
var M, R, q, X,
|
|
4065
|
-
if (typeof
|
|
4052
|
+
function H(E, m, _) {
|
|
4053
|
+
var M, R, q, X, N, L, Z = 0, dt = !1, tt = !1, ut = !0;
|
|
4054
|
+
if (typeof E != "function")
|
|
4066
4055
|
throw new TypeError(i);
|
|
4067
|
-
m = K(m) || 0, J(
|
|
4056
|
+
m = K(m) || 0, J(_) && (dt = !!_.leading, tt = "maxWait" in _, q = tt ? f(K(_.maxWait) || 0, m) : q, ut = "trailing" in _ ? !!_.trailing : ut);
|
|
4068
4057
|
function gt(k) {
|
|
4069
|
-
var I = M,
|
|
4070
|
-
return M = R = void 0, Z = k, X =
|
|
4058
|
+
var I = M, ct = R;
|
|
4059
|
+
return M = R = void 0, Z = k, X = E.apply(ct, I), X;
|
|
4071
4060
|
}
|
|
4072
4061
|
function zt(k) {
|
|
4073
|
-
return Z = k,
|
|
4062
|
+
return Z = k, N = setTimeout(_t, m), dt ? gt(k) : X;
|
|
4074
4063
|
}
|
|
4075
|
-
function
|
|
4076
|
-
var I = k - L,
|
|
4077
|
-
return tt ? g(
|
|
4064
|
+
function Ie(k) {
|
|
4065
|
+
var I = k - L, ct = k - Z, Mt = m - I;
|
|
4066
|
+
return tt ? g(Mt, q - ct) : Mt;
|
|
4078
4067
|
}
|
|
4079
4068
|
function Zt(k) {
|
|
4080
|
-
var I = k - L,
|
|
4081
|
-
return L === void 0 || I >= m || I < 0 || tt &&
|
|
4069
|
+
var I = k - L, ct = k - Z;
|
|
4070
|
+
return L === void 0 || I >= m || I < 0 || tt && ct >= q;
|
|
4082
4071
|
}
|
|
4083
|
-
function
|
|
4072
|
+
function _t() {
|
|
4084
4073
|
var k = b();
|
|
4085
4074
|
if (Zt(k))
|
|
4086
4075
|
return qt(k);
|
|
4087
|
-
|
|
4076
|
+
N = setTimeout(_t, Ie(k));
|
|
4088
4077
|
}
|
|
4089
4078
|
function qt(k) {
|
|
4090
|
-
return
|
|
4079
|
+
return N = void 0, ut && M ? gt(k) : (M = R = void 0, X);
|
|
4091
4080
|
}
|
|
4092
4081
|
function He() {
|
|
4093
|
-
|
|
4082
|
+
N !== void 0 && clearTimeout(N), Z = 0, M = L = R = N = void 0;
|
|
4094
4083
|
}
|
|
4095
|
-
function
|
|
4096
|
-
return
|
|
4084
|
+
function Ci() {
|
|
4085
|
+
return N === void 0 ? X : qt(b());
|
|
4097
4086
|
}
|
|
4098
4087
|
function pe() {
|
|
4099
4088
|
var k = b(), I = Zt(k);
|
|
4100
4089
|
if (M = arguments, R = this, L = k, I) {
|
|
4101
|
-
if (
|
|
4090
|
+
if (N === void 0)
|
|
4102
4091
|
return zt(L);
|
|
4103
4092
|
if (tt)
|
|
4104
|
-
return
|
|
4093
|
+
return N = setTimeout(_t, m), gt(L);
|
|
4105
4094
|
}
|
|
4106
|
-
return
|
|
4095
|
+
return N === void 0 && (N = setTimeout(_t, m)), X;
|
|
4107
4096
|
}
|
|
4108
|
-
return pe.cancel = He, pe.flush =
|
|
4097
|
+
return pe.cancel = He, pe.flush = Ci, pe;
|
|
4109
4098
|
}
|
|
4110
|
-
function J(
|
|
4111
|
-
var m = typeof
|
|
4112
|
-
return
|
|
4099
|
+
function J(E) {
|
|
4100
|
+
var m = typeof E;
|
|
4101
|
+
return !!E && (m == "object" || m == "function");
|
|
4113
4102
|
}
|
|
4114
|
-
function F(
|
|
4115
|
-
return
|
|
4103
|
+
function F(E) {
|
|
4104
|
+
return !!E && typeof E == "object";
|
|
4116
4105
|
}
|
|
4117
|
-
function st(
|
|
4118
|
-
return typeof
|
|
4106
|
+
function st(E) {
|
|
4107
|
+
return typeof E == "symbol" || F(E) && p.call(E) == e;
|
|
4119
4108
|
}
|
|
4120
|
-
function K(
|
|
4121
|
-
if (typeof
|
|
4122
|
-
return
|
|
4123
|
-
if (st(
|
|
4109
|
+
function K(E) {
|
|
4110
|
+
if (typeof E == "number")
|
|
4111
|
+
return E;
|
|
4112
|
+
if (st(E))
|
|
4124
4113
|
return t;
|
|
4125
|
-
if (J(
|
|
4126
|
-
var m = typeof
|
|
4127
|
-
|
|
4114
|
+
if (J(E)) {
|
|
4115
|
+
var m = typeof E.valueOf == "function" ? E.valueOf() : E;
|
|
4116
|
+
E = J(m) ? m + "" : m;
|
|
4128
4117
|
}
|
|
4129
|
-
if (typeof
|
|
4130
|
-
return
|
|
4131
|
-
|
|
4132
|
-
var
|
|
4133
|
-
return
|
|
4118
|
+
if (typeof E != "string")
|
|
4119
|
+
return E === 0 ? E : +E;
|
|
4120
|
+
E = E.replace(n, "");
|
|
4121
|
+
var _ = o.test(E);
|
|
4122
|
+
return _ || s.test(E) ? a(E.slice(2), _ ? 2 : 8) : r.test(E) ? t : +E;
|
|
4134
4123
|
}
|
|
4135
|
-
return qi =
|
|
4124
|
+
return qi = H, qi;
|
|
4136
4125
|
}
|
|
4137
|
-
var ha =
|
|
4138
|
-
const pa = /* @__PURE__ */
|
|
4126
|
+
var ha = ca();
|
|
4127
|
+
const pa = /* @__PURE__ */ Sr(ha), fa = (i) => {
|
|
4139
4128
|
const { layers: t, idProperty: e, titleProperty: n, renderRoot: r } = i, o = pa(() => {
|
|
4140
4129
|
i.requestUpdate(), i.dispatchEvent(
|
|
4141
4130
|
new CustomEvent("changed", { bubbles: !0 })
|
|
@@ -4151,12 +4140,12 @@ const pa = /* @__PURE__ */ Or(ha), fa = (i) => {
|
|
|
4151
4140
|
), js(a, t, e, i);
|
|
4152
4141
|
}
|
|
4153
4142
|
};
|
|
4154
|
-
var
|
|
4155
|
-
class
|
|
4143
|
+
var bi, vi;
|
|
4144
|
+
class Ir extends lt {
|
|
4156
4145
|
constructor() {
|
|
4157
4146
|
super();
|
|
4158
|
-
D(this,
|
|
4159
|
-
D(this,
|
|
4147
|
+
D(this, bi, "");
|
|
4148
|
+
D(this, vi, `
|
|
4160
4149
|
ul {
|
|
4161
4150
|
padding: 0;
|
|
4162
4151
|
margin: 0;
|
|
@@ -4203,11 +4192,11 @@ class Fr extends lt {
|
|
|
4203
4192
|
* layer groups or individual layers accordingly. Utilizes conditional rendering and iterates through available layers.
|
|
4204
4193
|
*/
|
|
4205
4194
|
render() {
|
|
4206
|
-
const e = this.layers ?
|
|
4195
|
+
const e = this.layers ? $r(this.layers).reverse() : [];
|
|
4207
4196
|
return x`
|
|
4208
4197
|
<style>
|
|
4209
|
-
${S(this,
|
|
4210
|
-
${!this.unstyled && S(this,
|
|
4198
|
+
${S(this, bi)}
|
|
4199
|
+
${!this.unstyled && S(this, vi)}
|
|
4211
4200
|
</style>
|
|
4212
4201
|
<ul>
|
|
4213
4202
|
${G(
|
|
@@ -4259,8 +4248,8 @@ class Fr extends lt {
|
|
|
4259
4248
|
`;
|
|
4260
4249
|
}
|
|
4261
4250
|
}
|
|
4262
|
-
|
|
4263
|
-
j(
|
|
4251
|
+
bi = new WeakMap(), vi = new WeakMap(), // Define static properties for the component
|
|
4252
|
+
j(Ir, "properties", {
|
|
4264
4253
|
idProperty: { attribute: "id-property" },
|
|
4265
4254
|
layers: { attribute: !1 },
|
|
4266
4255
|
map: { attribute: !1, state: !0 },
|
|
@@ -4271,11 +4260,11 @@ j(Fr, "properties", {
|
|
|
4271
4260
|
noShadow: { type: Boolean },
|
|
4272
4261
|
toolsAsList: { type: Boolean }
|
|
4273
4262
|
});
|
|
4274
|
-
customElements.define("eox-layercontrol-layer-list",
|
|
4263
|
+
customElements.define("eox-layercontrol-layer-list", Ir);
|
|
4275
4264
|
const ga = (i) => {
|
|
4276
4265
|
const t = i.querySelector(
|
|
4277
4266
|
"select[name=optional]"
|
|
4278
|
-
), e = t ? t.value : null, n =
|
|
4267
|
+
), e = t ? t.value : null, n = pn(
|
|
4279
4268
|
i.layers.getArray(),
|
|
4280
4269
|
"layerControlOptional",
|
|
4281
4270
|
!0
|
|
@@ -4294,11 +4283,11 @@ const ga = (i) => {
|
|
|
4294
4283
|
)
|
|
4295
4284
|
), i.requestUpdate();
|
|
4296
4285
|
};
|
|
4297
|
-
var
|
|
4298
|
-
class
|
|
4286
|
+
var wi, Nr;
|
|
4287
|
+
class Hr extends lt {
|
|
4299
4288
|
constructor() {
|
|
4300
4289
|
super();
|
|
4301
|
-
D(this,
|
|
4290
|
+
D(this, wi);
|
|
4302
4291
|
this.idProperty = "id", this.layers = null, this.titleProperty = "title", this.unstyled = !1, this.noShadow = !1;
|
|
4303
4292
|
}
|
|
4304
4293
|
/**
|
|
@@ -4313,7 +4302,7 @@ class jr extends lt {
|
|
|
4313
4302
|
* Generates dropdown options based on the extracted layer information.
|
|
4314
4303
|
*/
|
|
4315
4304
|
render() {
|
|
4316
|
-
const e =
|
|
4305
|
+
const e = pn(
|
|
4317
4306
|
this.layers.getArray(),
|
|
4318
4307
|
"layerControlOptional",
|
|
4319
4308
|
!0
|
|
@@ -4337,18 +4326,18 @@ class jr extends lt {
|
|
|
4337
4326
|
</select>
|
|
4338
4327
|
|
|
4339
4328
|
<!-- Button to handle adding layers -->
|
|
4340
|
-
<button @click="${B(this,
|
|
4329
|
+
<button @click="${B(this, wi, Nr)}">add</button>
|
|
4341
4330
|
`;
|
|
4342
4331
|
}
|
|
4343
4332
|
}
|
|
4344
|
-
|
|
4333
|
+
wi = new WeakSet(), /**
|
|
4345
4334
|
* Handles the addition of selected layers to a list.
|
|
4346
4335
|
* Invokes the 'addToListMethod' with the current context.
|
|
4347
4336
|
*/
|
|
4348
|
-
|
|
4337
|
+
Nr = function() {
|
|
4349
4338
|
ga(this);
|
|
4350
4339
|
}, // Define static properties for the component
|
|
4351
|
-
j(
|
|
4340
|
+
j(Hr, "properties", {
|
|
4352
4341
|
idProperty: { attribute: "id-property" },
|
|
4353
4342
|
layers: { attribute: !1 },
|
|
4354
4343
|
titleProperty: { attribute: "title-property", type: String },
|
|
@@ -4357,13 +4346,13 @@ j(jr, "properties", {
|
|
|
4357
4346
|
});
|
|
4358
4347
|
customElements.define(
|
|
4359
4348
|
"eox-layercontrol-optional-list",
|
|
4360
|
-
|
|
4349
|
+
Hr
|
|
4361
4350
|
);
|
|
4362
4351
|
const ma = (i, t) => {
|
|
4363
4352
|
t.jsonInput = i.target.value, t.requestUpdate();
|
|
4364
|
-
},
|
|
4353
|
+
}, Un = (i) => {
|
|
4365
4354
|
const t = JSON.parse(
|
|
4366
|
-
`{"data":${
|
|
4355
|
+
`{"data":${or(i.jsonInput)}}`
|
|
4367
4356
|
);
|
|
4368
4357
|
Array.isArray(t.data) ? t.data.forEach((e) => {
|
|
4369
4358
|
i.eoxMap.addOrUpdateLayer(e);
|
|
@@ -4374,7 +4363,7 @@ const ma = (i, t) => {
|
|
|
4374
4363
|
async function ba(i) {
|
|
4375
4364
|
const t = i.urlInput;
|
|
4376
4365
|
if (i.wmsCapabilities = null, i.searchLoad = !0, i.requestUpdate(), !t) return !1;
|
|
4377
|
-
if (
|
|
4366
|
+
if (ln(t) === "XYZ")
|
|
4378
4367
|
return { Name: t };
|
|
4379
4368
|
try {
|
|
4380
4369
|
const e = await hs(t);
|
|
@@ -4386,7 +4375,7 @@ async function ba(i) {
|
|
|
4386
4375
|
return !1;
|
|
4387
4376
|
}
|
|
4388
4377
|
const va = (i, t) => {
|
|
4389
|
-
const { Name: e } = i, n =
|
|
4378
|
+
const { Name: e } = i, n = ln(t.urlInput) || "XYZ", r = {
|
|
4390
4379
|
type: "Tile",
|
|
4391
4380
|
properties: {
|
|
4392
4381
|
id: e,
|
|
@@ -4407,8 +4396,8 @@ const va = (i, t) => {
|
|
|
4407
4396
|
}, wa = (i, t) => {
|
|
4408
4397
|
t.open = i || null, t.urlInput = null, t.jsonInput = null, t.wmsCapabilities = null, t.requestUpdate();
|
|
4409
4398
|
};
|
|
4410
|
-
var it,
|
|
4411
|
-
class
|
|
4399
|
+
var it, kr, Br, tn, Ur, Fr, Ye, xi, $i;
|
|
4400
|
+
class Vr extends lt {
|
|
4412
4401
|
constructor() {
|
|
4413
4402
|
super();
|
|
4414
4403
|
D(this, it);
|
|
@@ -4442,7 +4431,7 @@ class Zr extends lt {
|
|
|
4442
4431
|
* @type {import("wms-capabilities").WMSCapabilitiesJSON}
|
|
4443
4432
|
*/
|
|
4444
4433
|
j(this, "wmsCapabilities", null);
|
|
4445
|
-
D(this,
|
|
4434
|
+
D(this, xi, `
|
|
4446
4435
|
.eox-add-layer-main .open {
|
|
4447
4436
|
position: relative;
|
|
4448
4437
|
}
|
|
@@ -4602,7 +4591,7 @@ class Zr extends lt {
|
|
|
4602
4591
|
const e = this.open ? "open" : "close", n = this.open === "url", r = this.open === "json", o = !ps(this.urlInput) || this.searchLoad ? !0 : P;
|
|
4603
4592
|
return x`
|
|
4604
4593
|
<style>
|
|
4605
|
-
${S(this,
|
|
4594
|
+
${S(this, xi)}
|
|
4606
4595
|
${!this.unstyled && S(this, $i)}
|
|
4607
4596
|
</style>
|
|
4608
4597
|
<div class="eox-add-layer-main">
|
|
@@ -4610,13 +4599,13 @@ class Zr extends lt {
|
|
|
4610
4599
|
<!-- Tabbed interface for URL and JSON -->
|
|
4611
4600
|
<ul class="eox-add-layer-tab ${e}">
|
|
4612
4601
|
<li
|
|
4613
|
-
@click=${() => B(this, it,
|
|
4602
|
+
@click=${() => B(this, it, Ye).call(this, "url")}
|
|
4614
4603
|
class="${n ? "active" : ""}"
|
|
4615
4604
|
>
|
|
4616
4605
|
URL
|
|
4617
4606
|
</li>
|
|
4618
4607
|
<li
|
|
4619
|
-
@click=${() => B(this, it,
|
|
4608
|
+
@click=${() => B(this, it, Ye).call(this, "json")}
|
|
4620
4609
|
class="${r ? "active" : ""}"
|
|
4621
4610
|
>
|
|
4622
4611
|
JSON
|
|
@@ -4626,7 +4615,7 @@ class Zr extends lt {
|
|
|
4626
4615
|
<!-- Button to toggle tabs -->
|
|
4627
4616
|
<button
|
|
4628
4617
|
class="add-icon icon"
|
|
4629
|
-
@click=${() => B(this, it,
|
|
4618
|
+
@click=${() => B(this, it, Ye).call(this, this.open ? null : "url")}
|
|
4630
4619
|
>
|
|
4631
4620
|
${this.unstyled ? "Add Layer" : ""}
|
|
4632
4621
|
</button>
|
|
@@ -4640,14 +4629,14 @@ class Zr extends lt {
|
|
|
4640
4629
|
class="add-url"
|
|
4641
4630
|
placeholder="Add URL (WMS/XYZ)"
|
|
4642
4631
|
.value="${this.urlInput}"
|
|
4643
|
-
@input=${B(this, it,
|
|
4632
|
+
@input=${B(this, it, kr)}
|
|
4644
4633
|
>
|
|
4645
4634
|
</input>
|
|
4646
4635
|
<!-- Search button for URL -->
|
|
4647
4636
|
<button
|
|
4648
4637
|
class="search-icon"
|
|
4649
4638
|
disabled=${o}
|
|
4650
|
-
@click=${B(this, it,
|
|
4639
|
+
@click=${B(this, it, Br)}
|
|
4651
4640
|
>
|
|
4652
4641
|
${this.unstyled ? "Search" : ""}
|
|
4653
4642
|
</button>
|
|
@@ -4681,7 +4670,7 @@ class Zr extends lt {
|
|
|
4681
4670
|
<textarea
|
|
4682
4671
|
class="add-layer-input"
|
|
4683
4672
|
placeholder="Please put a valid eox-map layer JSON."
|
|
4684
|
-
@input=${B(this, it,
|
|
4673
|
+
@input=${B(this, it, Fr)}
|
|
4685
4674
|
.value=${this.jsonInput}
|
|
4686
4675
|
></textarea>
|
|
4687
4676
|
|
|
@@ -4689,7 +4678,7 @@ class Zr extends lt {
|
|
|
4689
4678
|
<button
|
|
4690
4679
|
class="add-layer-icon json-add-layer"
|
|
4691
4680
|
disabled=${fs(this.jsonInput) ? P : !0}
|
|
4692
|
-
@click=${B(this, it,
|
|
4681
|
+
@click=${B(this, it, Ur)}
|
|
4693
4682
|
>
|
|
4694
4683
|
${this.unstyled ? "Add JSON" : ""}
|
|
4695
4684
|
</button>
|
|
@@ -4705,9 +4694,9 @@ it = new WeakSet(), /**
|
|
|
4705
4694
|
*
|
|
4706
4695
|
* @param {Event} evt - The input change event triggering the method.
|
|
4707
4696
|
*/
|
|
4708
|
-
|
|
4697
|
+
kr = function(e) {
|
|
4709
4698
|
ya(e, this);
|
|
4710
|
-
},
|
|
4699
|
+
}, Br = async function() {
|
|
4711
4700
|
const e = await ba(this);
|
|
4712
4701
|
e && B(this, it, tn).call(this, e);
|
|
4713
4702
|
}, /**
|
|
@@ -4716,33 +4705,33 @@ qr = function(e) {
|
|
|
4716
4705
|
* @param {{"Name": string}} layer - The layer information triggering the method.
|
|
4717
4706
|
*/
|
|
4718
4707
|
tn = function(e) {
|
|
4719
|
-
va(e, this),
|
|
4708
|
+
va(e, this), Un(this);
|
|
4720
4709
|
}, /**
|
|
4721
4710
|
* Initiates the addition of layers, triggering the handleAddLayerMethod.
|
|
4722
4711
|
*/
|
|
4723
|
-
|
|
4724
|
-
|
|
4712
|
+
Ur = function() {
|
|
4713
|
+
Un(this);
|
|
4725
4714
|
}, /**
|
|
4726
4715
|
* Handles input field changes by invoking the 'handleJsonInputChangeMethod'.
|
|
4727
4716
|
*
|
|
4728
4717
|
* @param {{target: { value: string }}} evt - The input change event triggering the method.
|
|
4729
4718
|
*/
|
|
4730
|
-
|
|
4719
|
+
Fr = function(e) {
|
|
4731
4720
|
ma(e, this);
|
|
4732
4721
|
}, /**
|
|
4733
4722
|
* Handles tab changes by invoking the 'openCloseTabMethod'.
|
|
4734
4723
|
*
|
|
4735
4724
|
* @param {"url" | "json" | null} tab - The tab identifier triggering the method.
|
|
4736
4725
|
*/
|
|
4737
|
-
|
|
4726
|
+
Ye = function(e) {
|
|
4738
4727
|
wa(e, this);
|
|
4739
|
-
},
|
|
4740
|
-
j(
|
|
4728
|
+
}, xi = new WeakMap(), $i = new WeakMap(), // Define static properties for the component
|
|
4729
|
+
j(Vr, "properties", {
|
|
4741
4730
|
eoxMap: { attribute: !1, state: !0 },
|
|
4742
4731
|
unstyled: { type: Boolean },
|
|
4743
4732
|
noShadow: { type: Boolean }
|
|
4744
4733
|
});
|
|
4745
|
-
customElements.define("eox-layercontrol-add-layers",
|
|
4734
|
+
customElements.define("eox-layercontrol-add-layers", Vr);
|
|
4746
4735
|
const xa = (i, t) => {
|
|
4747
4736
|
if (t.requestUpdate(), i.target.tagName === "EOX-LAYERCONTROL-LAYER-TOOLS") {
|
|
4748
4737
|
const e = t.renderRoot.querySelector(
|
|
@@ -4750,16 +4739,19 @@ const xa = (i, t) => {
|
|
|
4750
4739
|
);
|
|
4751
4740
|
e == null || e.requestUpdate();
|
|
4752
4741
|
}
|
|
4753
|
-
},
|
|
4742
|
+
}, $a = (i) => {
|
|
4754
4743
|
let t;
|
|
4755
4744
|
return typeof i == "string" ? t = /** @type {HTMLElement} */
|
|
4756
4745
|
document.querySelector(i) : t = i, t;
|
|
4757
|
-
},
|
|
4758
|
-
const t =
|
|
4759
|
-
return t &&
|
|
4746
|
+
}, Fn = (i) => {
|
|
4747
|
+
const t = $a(i.for);
|
|
4748
|
+
return t && /** @type {import("@eox/map").EOxMap} */
|
|
4749
|
+
t.map !== i.map && (i.map = /** @type {import("@eox/map").EOxMap} */
|
|
4750
|
+
t.map), /** @type {import("@eox/map").EOxMap} */
|
|
4751
|
+
t;
|
|
4760
4752
|
};
|
|
4761
|
-
var kt, jt,
|
|
4762
|
-
class
|
|
4753
|
+
var kt, jt, zr, Zr, qr, Ei;
|
|
4754
|
+
class jr extends lt {
|
|
4763
4755
|
// Constructor to set default values for properties
|
|
4764
4756
|
constructor() {
|
|
4765
4757
|
super();
|
|
@@ -4767,10 +4759,10 @@ class Gr extends lt {
|
|
|
4767
4759
|
/**
|
|
4768
4760
|
* Instance of `eox-map` which is a wrapper for the OL
|
|
4769
4761
|
*
|
|
4770
|
-
* @type {import("
|
|
4762
|
+
* @type {import("@eox/map").EOxMap}
|
|
4771
4763
|
*/
|
|
4772
4764
|
D(this, kt);
|
|
4773
|
-
D(this,
|
|
4765
|
+
D(this, Ei, `
|
|
4774
4766
|
:host, :root {
|
|
4775
4767
|
font-family: Roboto, sans-serif;
|
|
4776
4768
|
--padding: 0.5rem;
|
|
@@ -4799,24 +4791,24 @@ class Gr extends lt {
|
|
|
4799
4791
|
* Updated #eoxMap after first update.
|
|
4800
4792
|
*/
|
|
4801
4793
|
firstUpdated() {
|
|
4802
|
-
this.eoxMap =
|
|
4794
|
+
this.eoxMap = Fn(this);
|
|
4803
4795
|
}
|
|
4804
4796
|
updated(e) {
|
|
4805
|
-
e.has("for") && (this.eoxMap =
|
|
4797
|
+
e.has("for") && (this.eoxMap = Fn(this));
|
|
4806
4798
|
}
|
|
4807
4799
|
get eoxMap() {
|
|
4808
4800
|
return S(this, kt);
|
|
4809
4801
|
}
|
|
4810
4802
|
set eoxMap(e) {
|
|
4811
4803
|
const n = S(this, kt);
|
|
4812
|
-
|
|
4804
|
+
Ct(this, kt, e), this.requestUpdate("eoxMap", n);
|
|
4813
4805
|
}
|
|
4814
4806
|
render() {
|
|
4815
4807
|
var r, o, s;
|
|
4816
|
-
const e = (r = this.map) == null ? void 0 : r.getLayers().getArray(), n = e && ((o =
|
|
4808
|
+
const e = (r = this.map) == null ? void 0 : r.getLayers().getArray(), n = e && ((o = pn(e, "layerControlOptional", !0)) == null ? void 0 : o.length) > 0;
|
|
4817
4809
|
return x`
|
|
4818
4810
|
<style>
|
|
4819
|
-
${!this.unstyled && S(this,
|
|
4811
|
+
${!this.unstyled && S(this, Ei)}
|
|
4820
4812
|
${this.styleOverride}
|
|
4821
4813
|
</style>
|
|
4822
4814
|
|
|
@@ -4847,9 +4839,9 @@ class Gr extends lt {
|
|
|
4847
4839
|
.tools=${this.tools}
|
|
4848
4840
|
.unstyled=${this.unstyled}
|
|
4849
4841
|
.toolsAsList=${this.toolsAsList}
|
|
4850
|
-
@changed=${B(this, jt,
|
|
4851
|
-
@datetime:updated=${B(this, jt,
|
|
4852
|
-
@layerConfig:change=${B(this, jt,
|
|
4842
|
+
@changed=${B(this, jt, zr)}
|
|
4843
|
+
@datetime:updated=${B(this, jt, Zr)}
|
|
4844
|
+
@layerConfig:change=${B(this, jt, qr)}
|
|
4853
4845
|
></eox-layercontrol-layer-list>
|
|
4854
4846
|
`
|
|
4855
4847
|
)}
|
|
@@ -4875,13 +4867,13 @@ kt = new WeakMap(), jt = new WeakSet(), /**
|
|
|
4875
4867
|
*
|
|
4876
4868
|
* @param {CustomEvent & {target: Element}} evt
|
|
4877
4869
|
*/
|
|
4878
|
-
|
|
4870
|
+
zr = function(e) {
|
|
4879
4871
|
xa(e, this), this.dispatchEvent(new CustomEvent("layerchange", { detail: e.detail }));
|
|
4880
4872
|
}, /**
|
|
4881
4873
|
* Dispatches datetime updates from layer datetime to the layercontrol
|
|
4882
4874
|
* @param {CustomEvent} evt
|
|
4883
4875
|
*/
|
|
4884
|
-
|
|
4876
|
+
Zr = function(e) {
|
|
4885
4877
|
this.dispatchEvent(
|
|
4886
4878
|
new CustomEvent("datetime:updated", { detail: e.detail })
|
|
4887
4879
|
);
|
|
@@ -4889,12 +4881,12 @@ Kr = function(e) {
|
|
|
4889
4881
|
* Dispatches jsonform updates from layer config to the layercontrol
|
|
4890
4882
|
* @param {CustomEvent} evt
|
|
4891
4883
|
*/
|
|
4892
|
-
|
|
4884
|
+
qr = function(e) {
|
|
4893
4885
|
this.dispatchEvent(
|
|
4894
4886
|
new CustomEvent("layerConfig:change", { detail: e.detail })
|
|
4895
4887
|
);
|
|
4896
|
-
},
|
|
4897
|
-
j(
|
|
4888
|
+
}, Ei = new WeakMap(), // Define static properties for the component
|
|
4889
|
+
j(jr, "properties", {
|
|
4898
4890
|
for: { type: String },
|
|
4899
4891
|
idProperty: { attribute: "id-property" },
|
|
4900
4892
|
map: { attribute: !1, state: !0 },
|
|
@@ -4906,7 +4898,7 @@ j(Gr, "properties", {
|
|
|
4906
4898
|
styleOverride: { type: String },
|
|
4907
4899
|
toolsAsList: { type: Boolean }
|
|
4908
4900
|
});
|
|
4909
|
-
customElements.define("eox-layercontrol",
|
|
4901
|
+
customElements.define("eox-layercontrol", jr);
|
|
4910
4902
|
export {
|
|
4911
|
-
|
|
4903
|
+
jr as EOxLayerControl
|
|
4912
4904
|
};
|