@edugis-org/webmapx 0.1.7 → 0.1.9
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-lib/{decorate-CWgUV1hU.js → decorate-DnZTfaod.js} +6 -6
- package/dist-lib/dist-BIbq3o-p.js +213 -0
- package/dist-lib/{dist-Dm6b7XCs.js → dist-CKAaoSoW.js} +2743 -2491
- package/dist-lib/{dist-kKlmcBXq.js → dist-CWCNMXMK.js} +1 -1
- package/dist-lib/{dist-Ha9LQCut.js → dist-D-5Gmgwo.js} +1 -1
- package/dist-lib/{layer-discovery-afWzu5hY.js → layer-discovery-DFP-WHAh.js} +1 -1
- package/dist-lib/{leaflet-adapter-D9djjrKv.js → leaflet-adapter-A0rte-c7.js} +1 -1
- package/dist-lib/{maplibre-adapter-TFc3e0G9.js → maplibre-adapter-Cy6yX6o7.js} +1 -1
- package/dist-lib/ol-tilegrid-Ct4my3IN.js +24 -0
- package/dist-lib/openlayers-adapter-B8WtV1tn.js +1462 -0
- package/dist-lib/{toast-Cm28o9U6.js → toast-BsoXOdeA.js} +1 -1
- package/dist-lib/{webmapx-3d-tool-D4CTD2gB.js → webmapx-3d-tool-CLppA7mK.js} +13 -13
- package/dist-lib/{webmapx-base-tool-Dm9NAWLD.js → webmapx-base-tool-DfRa7TlD.js} +1 -1
- package/dist-lib/{webmapx-config-edit-tool-BgcSkmmg.js → webmapx-config-edit-tool-BztWspia.js} +21 -21
- package/dist-lib/{webmapx-coordinates-tool-GMfztOzE.js → webmapx-coordinates-tool-DnTSkrRG.js} +20 -20
- package/dist-lib/{webmapx-core-bundle-BDImi1RE.js → webmapx-core-bundle-CH-5vYXU.js} +607 -1519
- package/dist-lib/webmapx-draw-tool-DxQgUF1Q.js +2117 -0
- package/dist-lib/{webmapx-geolocation-tool-Rw3-Iad1.js → webmapx-geolocation-tool-DIMh2kIr.js} +26 -25
- package/dist-lib/{webmapx-import-layer-tool-DRYviHd5.js → webmapx-import-layer-tool-DMiC1TpU.js} +16 -16
- package/dist-lib/{webmapx-info-tool-BJA157cy.js → webmapx-info-tool-D-XbAU9J.js} +56 -56
- package/dist-lib/{webmapx-language-osmvector-M5y_lwOg.js → webmapx-language-osmvector-BAw9TR-M.js} +12 -11
- package/dist-lib/{webmapx-measure-tool-BXhMJFC6.js → webmapx-measure-tool-CXlg11s8.js} +34 -34
- package/dist-lib/{webmapx-modal-tool-eF6Naluv.js → webmapx-modal-tool-Cs7LRrgW.js} +3 -3
- package/dist-lib/{webmapx-plugin-tool-D2Hghf9n.js → webmapx-plugin-tool-qe2yTrWB.js} +7 -7
- package/dist-lib/{webmapx-print-tool-ob1bOsR5.js → webmapx-print-tool-DrK9sLC7.js} +27 -26
- package/dist-lib/{webmapx-search-tool-Cv8BrYvY.js → webmapx-search-tool-H7NisgWH.js} +11 -11
- package/dist-lib/webmapx-settings-EHSm-AGU.js +167 -0
- package/dist-lib/{webmapx-truearea-tool-CMB4Orm-.js → webmapx-truearea-tool-CSU9mE1D.js} +26 -26
- package/dist-lib/{webmapx-view-mode-tool-CUpLNjOj.js → webmapx-view-mode-tool-D1QyQfq8.js} +9 -9
- package/dist-lib/webmapx.css +1 -1
- package/dist-lib/webmapx.js +42 -41
- package/package.json +1 -1
- package/dist-lib/WMTS-DCN4zX0-.js +0 -1169
- package/dist-lib/alert-GeHlqlN8.js +0 -310
- package/dist-lib/button-DFdGkRPQ.js +0 -741
- package/dist-lib/checkbox-QoR4S8tV.js +0 -284
- package/dist-lib/chunk.36O46B5H-B6ZL7Sm1.js +0 -77
- package/dist-lib/chunk.3RPBFEDE-BFO1fHVm.js +0 -138
- package/dist-lib/chunk.5JY5FUCG-DTXsslmx.js +0 -1090
- package/dist-lib/chunk.6CTB5ZDJ-DjZrBd6Y.js +0 -99
- package/dist-lib/chunk.AJ3ENQ5C-Ci7Gm2b6.js +0 -175
- package/dist-lib/chunk.LD4M4QGE-CiCfhE8r.js +0 -8
- package/dist-lib/chunk.NYIIDP5N-BikXIStD.js +0 -99
- package/dist-lib/chunk.RWUUFNUL-DFztA4uV.js +0 -43
- package/dist-lib/chunk.SI4ACBFK-CLb9VfMG.js +0 -61
- package/dist-lib/chunk.YHLNUJ7P-D-kanrCf.js +0 -503
- package/dist-lib/decorators-B35AgiCU.js +0 -351
- package/dist-lib/dist-c1PlDAd1.js +0 -2359
- package/dist-lib/divider-CPm675yY.js +0 -41
- package/dist-lib/icon-CEOgWlro.js +0 -9
- package/dist-lib/icon-button-Da_nBTy3.js +0 -408
- package/dist-lib/input-CeGntPlT.js +0 -590
- package/dist-lib/ol-tilegrid-9VtyxaLG.js +0 -64
- package/dist-lib/openlayers-adapter-DVW1KCRv.js +0 -13307
- package/dist-lib/option-CBxl1mZP.js +0 -1106
- package/dist-lib/rbush-C8k41T4z.js +0 -254
- package/dist-lib/spinner-DysxdNG9.js +0 -6
- package/dist-lib/tooltip-Cucn1SiD.js +0 -197
- package/dist-lib/webmapx-draw-tool-DooAV8cF.js +0 -4336
- package/dist-lib/webmapx-settings-DDEJ8aoV.js +0 -479
|
@@ -1,503 +0,0 @@
|
|
|
1
|
-
import { a as e, i as t } from "./decorators-B35AgiCU.js";
|
|
2
|
-
import { LitElement as n, css as r, html as i } from "lit";
|
|
3
|
-
//#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.3Y6SB6QS.js
|
|
4
|
-
var a = "";
|
|
5
|
-
function o(e) {
|
|
6
|
-
a = e;
|
|
7
|
-
}
|
|
8
|
-
function s(e = "") {
|
|
9
|
-
if (!a) {
|
|
10
|
-
let e = [...document.getElementsByTagName("script")], t = e.find((e) => e.hasAttribute("data-shoelace"));
|
|
11
|
-
if (t) o(t.getAttribute("data-shoelace"));
|
|
12
|
-
else {
|
|
13
|
-
let t = e.find((e) => /shoelace(\.min)?\.js($|\?)/.test(e.src) || /shoelace-autoloader(\.min)?\.js($|\?)/.test(e.src)), n = "";
|
|
14
|
-
t && (n = t.getAttribute("src")), o(n.split("/").slice(0, -1).join("/"));
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
return a.replace(/\/$/, "") + (e ? `/${e.replace(/^\//, "")}` : "");
|
|
18
|
-
}
|
|
19
|
-
//#endregion
|
|
20
|
-
//#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.P7ZG6EMR.js
|
|
21
|
-
var c = {
|
|
22
|
-
name: "default",
|
|
23
|
-
resolver: (e) => s(`assets/icons/${e}.svg`)
|
|
24
|
-
}, l = {
|
|
25
|
-
caret: "\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <polyline points=\"6 9 12 15 18 9\"></polyline>\n </svg>\n ",
|
|
26
|
-
check: "\n <svg part=\"checked-icon\" class=\"checkbox__icon\" viewBox=\"0 0 16 16\">\n <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" stroke-linecap=\"round\">\n <g stroke=\"currentColor\">\n <g transform=\"translate(3.428571, 3.428571)\">\n <path d=\"M0,5.71428571 L3.42857143,9.14285714\"></path>\n <path d=\"M9.14285714,0 L3.42857143,9.14285714\"></path>\n </g>\n </g>\n </g>\n </svg>\n ",
|
|
27
|
-
"chevron-down": "\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-chevron-down\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" d=\"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z\"/>\n </svg>\n ",
|
|
28
|
-
"chevron-left": "\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-chevron-left\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" d=\"M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z\"/>\n </svg>\n ",
|
|
29
|
-
"chevron-right": "\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-chevron-right\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" d=\"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z\"/>\n </svg>\n ",
|
|
30
|
-
copy: "\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-copy\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" d=\"M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V2Zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H6ZM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1H2Z\"/>\n </svg>\n ",
|
|
31
|
-
eye: "\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-eye\" viewBox=\"0 0 16 16\">\n <path d=\"M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z\"/>\n <path d=\"M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z\"/>\n </svg>\n ",
|
|
32
|
-
"eye-slash": "\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-eye-slash\" viewBox=\"0 0 16 16\">\n <path d=\"M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755-.165.165-.337.328-.517.486l.708.709z\"/>\n <path d=\"M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z\"/>\n <path d=\"M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884-12-12 .708-.708 12 12-.708.708z\"/>\n </svg>\n ",
|
|
33
|
-
eyedropper: "\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-eyedropper\" viewBox=\"0 0 16 16\">\n <path d=\"M13.354.646a1.207 1.207 0 0 0-1.708 0L8.5 3.793l-.646-.647a.5.5 0 1 0-.708.708L8.293 5l-7.147 7.146A.5.5 0 0 0 1 12.5v1.793l-.854.853a.5.5 0 1 0 .708.707L1.707 15H3.5a.5.5 0 0 0 .354-.146L11 7.707l1.146 1.147a.5.5 0 0 0 .708-.708l-.647-.646 3.147-3.146a1.207 1.207 0 0 0 0-1.708l-2-2zM2 12.707l7-7L10.293 7l-7 7H2v-1.293z\"></path>\n </svg>\n ",
|
|
34
|
-
"grip-vertical": "\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-grip-vertical\" viewBox=\"0 0 16 16\">\n <path d=\"M7 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z\"></path>\n </svg>\n ",
|
|
35
|
-
indeterminate: "\n <svg part=\"indeterminate-icon\" class=\"checkbox__icon\" viewBox=\"0 0 16 16\">\n <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" stroke-linecap=\"round\">\n <g stroke=\"currentColor\" stroke-width=\"2\">\n <g transform=\"translate(2.285714, 6.857143)\">\n <path d=\"M10.2857143,1.14285714 L1.14285714,1.14285714\"></path>\n </g>\n </g>\n </g>\n </svg>\n ",
|
|
36
|
-
"person-fill": "\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-person-fill\" viewBox=\"0 0 16 16\">\n <path d=\"M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z\"/>\n </svg>\n ",
|
|
37
|
-
"play-fill": "\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-play-fill\" viewBox=\"0 0 16 16\">\n <path d=\"m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z\"></path>\n </svg>\n ",
|
|
38
|
-
"pause-fill": "\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-pause-fill\" viewBox=\"0 0 16 16\">\n <path d=\"M5.5 3.5A1.5 1.5 0 0 1 7 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5zm5 0A1.5 1.5 0 0 1 12 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5z\"></path>\n </svg>\n ",
|
|
39
|
-
radio: "\n <svg part=\"checked-icon\" class=\"radio__icon\" viewBox=\"0 0 16 16\">\n <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g fill=\"currentColor\">\n <circle cx=\"8\" cy=\"8\" r=\"3.42857143\"></circle>\n </g>\n </g>\n </svg>\n ",
|
|
40
|
-
"star-fill": "\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-star-fill\" viewBox=\"0 0 16 16\">\n <path d=\"M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z\"/>\n </svg>\n ",
|
|
41
|
-
"x-lg": "\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-x-lg\" viewBox=\"0 0 16 16\">\n <path d=\"M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z\"/>\n </svg>\n ",
|
|
42
|
-
"x-circle-fill": "\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" class=\"bi bi-x-circle-fill\" viewBox=\"0 0 16 16\">\n <path d=\"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z\"></path>\n </svg>\n "
|
|
43
|
-
}, u = [c, {
|
|
44
|
-
name: "system",
|
|
45
|
-
resolver: (e) => e in l ? `data:image/svg+xml,${encodeURIComponent(l[e])}` : ""
|
|
46
|
-
}], d = [];
|
|
47
|
-
function ee(e) {
|
|
48
|
-
d.push(e);
|
|
49
|
-
}
|
|
50
|
-
function te(e) {
|
|
51
|
-
d = d.filter((t) => t !== e);
|
|
52
|
-
}
|
|
53
|
-
function f(e) {
|
|
54
|
-
return u.find((t) => t.name === e);
|
|
55
|
-
}
|
|
56
|
-
//#endregion
|
|
57
|
-
//#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.QLXRCYS4.js
|
|
58
|
-
var ne = r`
|
|
59
|
-
:host {
|
|
60
|
-
display: inline-block;
|
|
61
|
-
width: 1em;
|
|
62
|
-
height: 1em;
|
|
63
|
-
box-sizing: content-box !important;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
svg {
|
|
67
|
-
display: block;
|
|
68
|
-
height: 100%;
|
|
69
|
-
width: 100%;
|
|
70
|
-
}
|
|
71
|
-
`, p = Object.defineProperty, re = Object.defineProperties, ie = Object.getOwnPropertyDescriptor, ae = Object.getOwnPropertyDescriptors, oe = Object.getOwnPropertySymbols, se = Object.prototype.hasOwnProperty, ce = Object.prototype.propertyIsEnumerable, m = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), h = (e) => {
|
|
72
|
-
throw TypeError(e);
|
|
73
|
-
}, g = (e, t, n) => t in e ? p(e, t, {
|
|
74
|
-
enumerable: !0,
|
|
75
|
-
configurable: !0,
|
|
76
|
-
writable: !0,
|
|
77
|
-
value: n
|
|
78
|
-
}) : e[t] = n, _ = (e, t) => {
|
|
79
|
-
for (var n in t ||= {}) se.call(t, n) && g(e, n, t[n]);
|
|
80
|
-
if (oe) for (var n of oe(t)) ce.call(t, n) && g(e, n, t[n]);
|
|
81
|
-
return e;
|
|
82
|
-
}, le = (e, t) => re(e, ae(t)), v = (e, t, n, r) => {
|
|
83
|
-
for (var i = r > 1 ? void 0 : r ? ie(t, n) : t, a = e.length - 1, o; a >= 0; a--) (o = e[a]) && (i = (r ? o(t, n, i) : o(i)) || i);
|
|
84
|
-
return r && i && p(t, n, i), i;
|
|
85
|
-
}, ue = (e, t, n) => t.has(e) || h("Cannot " + n), de = (e, t, n) => (ue(e, t, "read from private field"), n ? n.call(e) : t.get(e)), fe = (e, t, n) => t.has(e) ? h("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), pe = (e, t, n, r) => (ue(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), me = function(e, t) {
|
|
86
|
-
this[0] = e, this[1] = t;
|
|
87
|
-
}, he = (e) => {
|
|
88
|
-
var t = e[m("asyncIterator")], n = !1, r, i = {};
|
|
89
|
-
return t == null ? (t = e[m("iterator")](), r = (e) => i[e] = (n) => t[e](n)) : (t = t.call(e), r = (e) => i[e] = (r) => {
|
|
90
|
-
if (n) {
|
|
91
|
-
if (n = !1, e === "throw") throw r;
|
|
92
|
-
return r;
|
|
93
|
-
}
|
|
94
|
-
return n = !0, {
|
|
95
|
-
done: !1,
|
|
96
|
-
value: new me(new Promise((n) => {
|
|
97
|
-
var i = t[e](r);
|
|
98
|
-
i instanceof Object || h("Object expected"), n(i);
|
|
99
|
-
}), 1)
|
|
100
|
-
};
|
|
101
|
-
}), i[m("iterator")] = () => i, r("next"), "throw" in t ? r("throw") : i.throw = (e) => {
|
|
102
|
-
throw e;
|
|
103
|
-
}, "return" in t && r("return"), i;
|
|
104
|
-
};
|
|
105
|
-
//#endregion
|
|
106
|
-
//#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.GMYPQTFK.js
|
|
107
|
-
function y(e, t) {
|
|
108
|
-
let n = _({ waitUntilFirstUpdate: !1 }, t);
|
|
109
|
-
return (t, r) => {
|
|
110
|
-
let { update: i } = t, a = Array.isArray(e) ? e : [e];
|
|
111
|
-
t.update = function(e) {
|
|
112
|
-
a.forEach((t) => {
|
|
113
|
-
let i = t;
|
|
114
|
-
if (e.has(i)) {
|
|
115
|
-
let t = e.get(i), a = this[i];
|
|
116
|
-
t !== a && (!n.waitUntilFirstUpdate || this.hasUpdated) && this[r](t, a);
|
|
117
|
-
}
|
|
118
|
-
}), i.call(this, e);
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
//#endregion
|
|
123
|
-
//#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.TUVJKY7S.js
|
|
124
|
-
var b = r`
|
|
125
|
-
:host {
|
|
126
|
-
box-sizing: border-box;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
:host *,
|
|
130
|
-
:host *::before,
|
|
131
|
-
:host *::after {
|
|
132
|
-
box-sizing: inherit;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
[hidden] {
|
|
136
|
-
display: none !important;
|
|
137
|
-
}
|
|
138
|
-
`, x, S = class extends n {
|
|
139
|
-
constructor() {
|
|
140
|
-
super(), fe(this, x, !1), this.initialReflectedProperties = /* @__PURE__ */ new Map(), Object.entries(this.constructor.dependencies).forEach(([e, t]) => {
|
|
141
|
-
this.constructor.define(e, t);
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
emit(e, t) {
|
|
145
|
-
let n = new CustomEvent(e, _({
|
|
146
|
-
bubbles: !0,
|
|
147
|
-
cancelable: !1,
|
|
148
|
-
composed: !0,
|
|
149
|
-
detail: {}
|
|
150
|
-
}, t));
|
|
151
|
-
return this.dispatchEvent(n), n;
|
|
152
|
-
}
|
|
153
|
-
static define(e, t = this, n = {}) {
|
|
154
|
-
let r = customElements.get(e);
|
|
155
|
-
if (!r) {
|
|
156
|
-
try {
|
|
157
|
-
customElements.define(e, t, n);
|
|
158
|
-
} catch {
|
|
159
|
-
customElements.define(e, class extends t {}, n);
|
|
160
|
-
}
|
|
161
|
-
return;
|
|
162
|
-
}
|
|
163
|
-
let i = " (unknown version)", a = i;
|
|
164
|
-
"version" in t && t.version && (i = " v" + t.version), "version" in r && r.version && (a = " v" + r.version), !(i && a && i === a) && console.warn(`Attempted to register <${e}>${i}, but <${e}>${a} has already been registered.`);
|
|
165
|
-
}
|
|
166
|
-
attributeChangedCallback(e, t, n) {
|
|
167
|
-
de(this, x) || (this.constructor.elementProperties.forEach((e, t) => {
|
|
168
|
-
e.reflect && this[t] != null && this.initialReflectedProperties.set(t, this[t]);
|
|
169
|
-
}), pe(this, x, !0)), super.attributeChangedCallback(e, t, n);
|
|
170
|
-
}
|
|
171
|
-
willUpdate(e) {
|
|
172
|
-
super.willUpdate(e), this.initialReflectedProperties.forEach((t, n) => {
|
|
173
|
-
e.has(n) && this[n] == null && (this[n] = t);
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
|
-
x = /* @__PURE__ */ new WeakMap(), S.version = "2.20.1", S.dependencies = {}, v([e()], S.prototype, "dir", 2), v([e()], S.prototype, "lang", 2);
|
|
178
|
-
//#endregion
|
|
179
|
-
//#region node_modules/lit-html/lit-html.js
|
|
180
|
-
var C = globalThis, w = C.trustedTypes, ge = w ? w.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, T = "$lit$", E = `lit$${Math.random().toFixed(9).slice(2)}$`, D = "?" + E, _e = `<${D}>`, O = document, k = () => O.createComment(""), A = (e) => e === null || typeof e != "object" && typeof e != "function", j = Array.isArray, ve = (e) => j(e) || typeof e?.[Symbol.iterator] == "function", M = "[ \n\f\r]", N = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ye = /-->/g, P = />/g, F = RegExp(`>|${M}(?:([^\\s"'>=/]+)(${M}*=${M}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), I = /'/g, L = /"/g, R = /^(?:script|style|textarea|title)$/i, z = (e) => (t, ...n) => ({
|
|
181
|
-
_$litType$: e,
|
|
182
|
-
strings: t,
|
|
183
|
-
values: n
|
|
184
|
-
}), be = z(1), xe = z(2), Se = z(3), B = Symbol.for("lit-noChange"), V = Symbol.for("lit-nothing"), H = /* @__PURE__ */ new WeakMap(), U = O.createTreeWalker(O, 129);
|
|
185
|
-
function W(e, t) {
|
|
186
|
-
if (!j(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
187
|
-
return ge === void 0 ? t : ge.createHTML(t);
|
|
188
|
-
}
|
|
189
|
-
var Ce = (e, t) => {
|
|
190
|
-
let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = N;
|
|
191
|
-
for (let t = 0; t < n; t++) {
|
|
192
|
-
let n = e[t], s, c, l = -1, u = 0;
|
|
193
|
-
for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === N ? c[1] === "!--" ? o = ye : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = F) : (R.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = F) : o = P : o === F ? c[0] === ">" ? (o = i ?? N, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? F : c[3] === "\"" ? L : I) : o === L || o === I ? o = F : o === ye || o === P ? o = N : (o = F, i = void 0);
|
|
194
|
-
let d = o === F && e[t + 1].startsWith("/>") ? " " : "";
|
|
195
|
-
a += o === N ? n + _e : l >= 0 ? (r.push(s), n.slice(0, l) + T + n.slice(l) + E + d) : n + E + (l === -2 ? t : d);
|
|
196
|
-
}
|
|
197
|
-
return [W(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
|
|
198
|
-
}, G = class e {
|
|
199
|
-
constructor({ strings: t, _$litType$: n }, r) {
|
|
200
|
-
let i;
|
|
201
|
-
this.parts = [];
|
|
202
|
-
let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = Ce(t, n);
|
|
203
|
-
if (this.el = e.createElement(l, r), U.currentNode = this.el.content, n === 2 || n === 3) {
|
|
204
|
-
let e = this.el.content.firstChild;
|
|
205
|
-
e.replaceWith(...e.childNodes);
|
|
206
|
-
}
|
|
207
|
-
for (; (i = U.nextNode()) !== null && c.length < s;) {
|
|
208
|
-
if (i.nodeType === 1) {
|
|
209
|
-
if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(T)) {
|
|
210
|
-
let t = u[o++], n = i.getAttribute(e).split(E), r = /([.?@])?(.*)/.exec(t);
|
|
211
|
-
c.push({
|
|
212
|
-
type: 1,
|
|
213
|
-
index: a,
|
|
214
|
-
name: r[2],
|
|
215
|
-
strings: n,
|
|
216
|
-
ctor: r[1] === "." ? Y : r[1] === "?" ? Te : r[1] === "@" ? Ee : J
|
|
217
|
-
}), i.removeAttribute(e);
|
|
218
|
-
} else e.startsWith(E) && (c.push({
|
|
219
|
-
type: 6,
|
|
220
|
-
index: a
|
|
221
|
-
}), i.removeAttribute(e));
|
|
222
|
-
if (R.test(i.tagName)) {
|
|
223
|
-
let e = i.textContent.split(E), t = e.length - 1;
|
|
224
|
-
if (t > 0) {
|
|
225
|
-
i.textContent = w ? w.emptyScript : "";
|
|
226
|
-
for (let n = 0; n < t; n++) i.append(e[n], k()), U.nextNode(), c.push({
|
|
227
|
-
type: 2,
|
|
228
|
-
index: ++a
|
|
229
|
-
});
|
|
230
|
-
i.append(e[t], k());
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
} else if (i.nodeType === 8) if (i.data === D) c.push({
|
|
234
|
-
type: 2,
|
|
235
|
-
index: a
|
|
236
|
-
});
|
|
237
|
-
else {
|
|
238
|
-
let e = -1;
|
|
239
|
-
for (; (e = i.data.indexOf(E, e + 1)) !== -1;) c.push({
|
|
240
|
-
type: 7,
|
|
241
|
-
index: a
|
|
242
|
-
}), e += E.length - 1;
|
|
243
|
-
}
|
|
244
|
-
a++;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
static createElement(e, t) {
|
|
248
|
-
let n = O.createElement("template");
|
|
249
|
-
return n.innerHTML = e, n;
|
|
250
|
-
}
|
|
251
|
-
};
|
|
252
|
-
function K(e, t, n = e, r) {
|
|
253
|
-
if (t === B) return t;
|
|
254
|
-
let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = A(t) ? void 0 : t._$litDirective$;
|
|
255
|
-
return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t = K(e, i._$AS(e, t.values), i, r)), t;
|
|
256
|
-
}
|
|
257
|
-
var we = class {
|
|
258
|
-
constructor(e, t) {
|
|
259
|
-
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
|
260
|
-
}
|
|
261
|
-
get parentNode() {
|
|
262
|
-
return this._$AM.parentNode;
|
|
263
|
-
}
|
|
264
|
-
get _$AU() {
|
|
265
|
-
return this._$AM._$AU;
|
|
266
|
-
}
|
|
267
|
-
u(e) {
|
|
268
|
-
let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? O).importNode(t, !0);
|
|
269
|
-
U.currentNode = r;
|
|
270
|
-
let i = U.nextNode(), a = 0, o = 0, s = n[0];
|
|
271
|
-
for (; s !== void 0;) {
|
|
272
|
-
if (a === s.index) {
|
|
273
|
-
let t;
|
|
274
|
-
s.type === 2 ? t = new q(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new De(i, this, e)), this._$AV.push(t), s = n[++o];
|
|
275
|
-
}
|
|
276
|
-
a !== s?.index && (i = U.nextNode(), a++);
|
|
277
|
-
}
|
|
278
|
-
return U.currentNode = O, r;
|
|
279
|
-
}
|
|
280
|
-
p(e) {
|
|
281
|
-
let t = 0;
|
|
282
|
-
for (let n of this._$AV) n !== void 0 && (n.strings === void 0 ? n._$AI(e[t]) : (n._$AI(e, n, t), t += n.strings.length - 2)), t++;
|
|
283
|
-
}
|
|
284
|
-
}, q = class e {
|
|
285
|
-
get _$AU() {
|
|
286
|
-
return this._$AM?._$AU ?? this._$Cv;
|
|
287
|
-
}
|
|
288
|
-
constructor(e, t, n, r) {
|
|
289
|
-
this.type = 2, this._$AH = V, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = n, this.options = r, this._$Cv = r?.isConnected ?? !0;
|
|
290
|
-
}
|
|
291
|
-
get parentNode() {
|
|
292
|
-
let e = this._$AA.parentNode, t = this._$AM;
|
|
293
|
-
return t !== void 0 && e?.nodeType === 11 && (e = t.parentNode), e;
|
|
294
|
-
}
|
|
295
|
-
get startNode() {
|
|
296
|
-
return this._$AA;
|
|
297
|
-
}
|
|
298
|
-
get endNode() {
|
|
299
|
-
return this._$AB;
|
|
300
|
-
}
|
|
301
|
-
_$AI(e, t = this) {
|
|
302
|
-
e = K(this, e, t), A(e) ? e === V || e == null || e === "" ? (this._$AH !== V && this._$AR(), this._$AH = V) : e !== this._$AH && e !== B && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? ve(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
|
|
303
|
-
}
|
|
304
|
-
O(e) {
|
|
305
|
-
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
306
|
-
}
|
|
307
|
-
T(e) {
|
|
308
|
-
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
309
|
-
}
|
|
310
|
-
_(e) {
|
|
311
|
-
this._$AH !== V && A(this._$AH) ? this._$AA.nextSibling.data = e : this.T(O.createTextNode(e)), this._$AH = e;
|
|
312
|
-
}
|
|
313
|
-
$(e) {
|
|
314
|
-
let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = G.createElement(W(n.h, n.h[0]), this.options)), n);
|
|
315
|
-
if (this._$AH?._$AD === r) this._$AH.p(t);
|
|
316
|
-
else {
|
|
317
|
-
let e = new we(r, this), n = e.u(this.options);
|
|
318
|
-
e.p(t), this.T(n), this._$AH = e;
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
_$AC(e) {
|
|
322
|
-
let t = H.get(e.strings);
|
|
323
|
-
return t === void 0 && H.set(e.strings, t = new G(e)), t;
|
|
324
|
-
}
|
|
325
|
-
k(t) {
|
|
326
|
-
j(this._$AH) || (this._$AH = [], this._$AR());
|
|
327
|
-
let n = this._$AH, r, i = 0;
|
|
328
|
-
for (let a of t) i === n.length ? n.push(r = new e(this.O(k()), this.O(k()), this, this.options)) : r = n[i], r._$AI(a), i++;
|
|
329
|
-
i < n.length && (this._$AR(r && r._$AB.nextSibling, i), n.length = i);
|
|
330
|
-
}
|
|
331
|
-
_$AR(e = this._$AA.nextSibling, t) {
|
|
332
|
-
for (this._$AP?.(!1, !0, t); e !== this._$AB;) {
|
|
333
|
-
let t = e.nextSibling;
|
|
334
|
-
e.remove(), e = t;
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
setConnected(e) {
|
|
338
|
-
this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
|
|
339
|
-
}
|
|
340
|
-
}, J = class {
|
|
341
|
-
get tagName() {
|
|
342
|
-
return this.element.tagName;
|
|
343
|
-
}
|
|
344
|
-
get _$AU() {
|
|
345
|
-
return this._$AM._$AU;
|
|
346
|
-
}
|
|
347
|
-
constructor(e, t, n, r, i) {
|
|
348
|
-
this.type = 1, this._$AH = V, this._$AN = void 0, this.element = e, this.name = t, this._$AM = r, this.options = i, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(/* @__PURE__ */ new String()), this.strings = n) : this._$AH = V;
|
|
349
|
-
}
|
|
350
|
-
_$AI(e, t = this, n, r) {
|
|
351
|
-
let i = this.strings, a = !1;
|
|
352
|
-
if (i === void 0) e = K(this, e, t, 0), a = !A(e) || e !== this._$AH && e !== B, a && (this._$AH = e);
|
|
353
|
-
else {
|
|
354
|
-
let r = e, o, s;
|
|
355
|
-
for (e = i[0], o = 0; o < i.length - 1; o++) s = K(this, r[n + o], t, o), s === B && (s = this._$AH[o]), a ||= !A(s) || s !== this._$AH[o], s === V ? e = V : e !== V && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
|
|
356
|
-
}
|
|
357
|
-
a && !r && this.j(e);
|
|
358
|
-
}
|
|
359
|
-
j(e) {
|
|
360
|
-
e === V ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
361
|
-
}
|
|
362
|
-
}, Y = class extends J {
|
|
363
|
-
constructor() {
|
|
364
|
-
super(...arguments), this.type = 3;
|
|
365
|
-
}
|
|
366
|
-
j(e) {
|
|
367
|
-
this.element[this.name] = e === V ? void 0 : e;
|
|
368
|
-
}
|
|
369
|
-
}, Te = class extends J {
|
|
370
|
-
constructor() {
|
|
371
|
-
super(...arguments), this.type = 4;
|
|
372
|
-
}
|
|
373
|
-
j(e) {
|
|
374
|
-
this.element.toggleAttribute(this.name, !!e && e !== V);
|
|
375
|
-
}
|
|
376
|
-
}, Ee = class extends J {
|
|
377
|
-
constructor(e, t, n, r, i) {
|
|
378
|
-
super(e, t, n, r, i), this.type = 5;
|
|
379
|
-
}
|
|
380
|
-
_$AI(e, t = this) {
|
|
381
|
-
if ((e = K(this, e, t, 0) ?? V) === B) return;
|
|
382
|
-
let n = this._$AH, r = e === V && n !== V || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== V && (n === V || r);
|
|
383
|
-
r && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
384
|
-
}
|
|
385
|
-
handleEvent(e) {
|
|
386
|
-
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
|
|
387
|
-
}
|
|
388
|
-
}, De = class {
|
|
389
|
-
constructor(e, t, n) {
|
|
390
|
-
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
|
|
391
|
-
}
|
|
392
|
-
get _$AU() {
|
|
393
|
-
return this._$AM._$AU;
|
|
394
|
-
}
|
|
395
|
-
_$AI(e) {
|
|
396
|
-
K(this, e);
|
|
397
|
-
}
|
|
398
|
-
}, Oe = {
|
|
399
|
-
M: T,
|
|
400
|
-
P: E,
|
|
401
|
-
A: D,
|
|
402
|
-
C: 1,
|
|
403
|
-
L: Ce,
|
|
404
|
-
R: we,
|
|
405
|
-
D: ve,
|
|
406
|
-
V: K,
|
|
407
|
-
I: q,
|
|
408
|
-
H: J,
|
|
409
|
-
N: Te,
|
|
410
|
-
U: Ee,
|
|
411
|
-
B: Y,
|
|
412
|
-
F: De
|
|
413
|
-
}, ke = C.litHtmlPolyfillSupport;
|
|
414
|
-
ke?.(G, q), (C.litHtmlVersions ??= []).push("3.3.1");
|
|
415
|
-
//#endregion
|
|
416
|
-
//#region node_modules/lit-html/directive-helpers.js
|
|
417
|
-
var { I: Ae } = Oe, je = (e, t) => t === void 0 ? e?._$litType$ !== void 0 : e?._$litType$ === t, Me = (e) => e.strings === void 0, Ne = {}, Pe = (e, t = Ne) => e._$AH = t, X = Symbol(), Z = Symbol(), Fe, Q = /* @__PURE__ */ new Map(), $ = class extends S {
|
|
418
|
-
constructor() {
|
|
419
|
-
super(...arguments), this.initialRender = !1, this.svg = null, this.label = "", this.library = "default";
|
|
420
|
-
}
|
|
421
|
-
async resolveIcon(e, t) {
|
|
422
|
-
let n;
|
|
423
|
-
if (t?.spriteSheet) return this.svg = i`<svg part="svg">
|
|
424
|
-
<use part="use" href="${e}"></use>
|
|
425
|
-
</svg>`, this.svg;
|
|
426
|
-
try {
|
|
427
|
-
if (n = await fetch(e, { mode: "cors" }), !n.ok) return n.status === 410 ? X : Z;
|
|
428
|
-
} catch {
|
|
429
|
-
return Z;
|
|
430
|
-
}
|
|
431
|
-
try {
|
|
432
|
-
let e = document.createElement("div");
|
|
433
|
-
e.innerHTML = await n.text();
|
|
434
|
-
let t = e.firstElementChild;
|
|
435
|
-
if ((t?.tagName)?.toLowerCase() !== "svg") return X;
|
|
436
|
-
Fe ||= new DOMParser();
|
|
437
|
-
let r = Fe.parseFromString(t.outerHTML, "text/html").body.querySelector("svg");
|
|
438
|
-
return r ? (r.part.add("svg"), document.adoptNode(r)) : X;
|
|
439
|
-
} catch {
|
|
440
|
-
return X;
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
connectedCallback() {
|
|
444
|
-
super.connectedCallback(), ee(this);
|
|
445
|
-
}
|
|
446
|
-
firstUpdated() {
|
|
447
|
-
this.initialRender = !0, this.setIcon();
|
|
448
|
-
}
|
|
449
|
-
disconnectedCallback() {
|
|
450
|
-
super.disconnectedCallback(), te(this);
|
|
451
|
-
}
|
|
452
|
-
getIconSource() {
|
|
453
|
-
let e = f(this.library);
|
|
454
|
-
return this.name && e ? {
|
|
455
|
-
url: e.resolver(this.name),
|
|
456
|
-
fromLibrary: !0
|
|
457
|
-
} : {
|
|
458
|
-
url: this.src,
|
|
459
|
-
fromLibrary: !1
|
|
460
|
-
};
|
|
461
|
-
}
|
|
462
|
-
handleLabelChange() {
|
|
463
|
-
typeof this.label == "string" && this.label.length > 0 ? (this.setAttribute("role", "img"), this.setAttribute("aria-label", this.label), this.removeAttribute("aria-hidden")) : (this.removeAttribute("role"), this.removeAttribute("aria-label"), this.setAttribute("aria-hidden", "true"));
|
|
464
|
-
}
|
|
465
|
-
async setIcon() {
|
|
466
|
-
var e;
|
|
467
|
-
let { url: t, fromLibrary: n } = this.getIconSource(), r = n ? f(this.library) : void 0;
|
|
468
|
-
if (!t) {
|
|
469
|
-
this.svg = null;
|
|
470
|
-
return;
|
|
471
|
-
}
|
|
472
|
-
let i = Q.get(t);
|
|
473
|
-
if (i || (i = this.resolveIcon(t, r), Q.set(t, i)), !this.initialRender) return;
|
|
474
|
-
let a = await i;
|
|
475
|
-
if (a === Z && Q.delete(t), t === this.getIconSource().url) {
|
|
476
|
-
if (je(a)) {
|
|
477
|
-
if (this.svg = a, r) {
|
|
478
|
-
await this.updateComplete;
|
|
479
|
-
let e = this.shadowRoot.querySelector("[part='svg']");
|
|
480
|
-
typeof r.mutator == "function" && e && r.mutator(e);
|
|
481
|
-
}
|
|
482
|
-
return;
|
|
483
|
-
}
|
|
484
|
-
switch (a) {
|
|
485
|
-
case Z:
|
|
486
|
-
case X:
|
|
487
|
-
this.svg = null, this.emit("sl-error");
|
|
488
|
-
break;
|
|
489
|
-
default: this.svg = a.cloneNode(!0), (e = r?.mutator) == null || e.call(r, this.svg), this.emit("sl-load");
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
render() {
|
|
494
|
-
return this.svg;
|
|
495
|
-
}
|
|
496
|
-
};
|
|
497
|
-
$.styles = [b, ne], v([t()], $.prototype, "svg", 2), v([e({ reflect: !0 })], $.prototype, "name", 2), v([e()], $.prototype, "src", 2), v([e()], $.prototype, "label", 2), v([e({ reflect: !0 })], $.prototype, "library", 2), v([y("label")], $.prototype, "handleLabelChange", 1), v([y([
|
|
498
|
-
"name",
|
|
499
|
-
"src",
|
|
500
|
-
"library"
|
|
501
|
-
])], $.prototype, "setIcon", 1);
|
|
502
|
-
//#endregion
|
|
503
|
-
export { B as a, be as c, y as d, v as f, he as h, V as i, S as l, _ as m, Me as n, xe as o, le as p, Pe as r, Se as s, $ as t, b as u };
|