@fest-lib/lure 0.1.9 → 0.1.10
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/index.js +232 -228
- package/dist/lure.js +232 -228
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -213,13 +213,13 @@ var Uc = /* @__PURE__ */ Symbol.for("@fix"), ci = (e) => Array.isArray(e) || e i
|
|
|
213
213
|
const t = new Uint8Array(e.length);
|
|
214
214
|
for (let n = 0; n < e.length; n++) t[n] = Math.floor(Math.random() * 256);
|
|
215
215
|
return t;
|
|
216
|
-
})(), gl = (e, t, n) => Math.max(e, Math.min(t, n)), bl = (e, t) => typeof t == "function" ? t?.bind?.(e) ?? t : t, Z = () => crypto?.randomUUID ? crypto?.randomUUID?.() : "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (e) => (+e ^ wd?.(/* @__PURE__ */ new Uint8Array(1))?.[0] & 15 >> +e / 4).toString(16)), Qr = (e) => e && e?.replace?.(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), Vc = (e) => e && e?.replace?.(/-([a-z])/g, (t, n) => n.toUpperCase()), Sd = (e) => typeof CSSStyleValue < "u" && e instanceof CSSStyleValue, xd = (e) => e != null && (typeof e == "boolean" ? e !== !1 : !0) && typeof e != "object" && typeof e != "function", Ot = (e) => typeof e == "boolean" ? e ? "" : null : typeof e == "number" ? String(e) : e,
|
|
217
|
-
oa(e, n) && (e[
|
|
216
|
+
})(), gl = (e, t, n) => Math.max(e, Math.min(t, n)), bl = (e, t) => typeof t == "function" ? t?.bind?.(e) ?? t : t, Z = () => crypto?.randomUUID ? crypto?.randomUUID?.() : "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (e) => (+e ^ wd?.(/* @__PURE__ */ new Uint8Array(1))?.[0] & 15 >> +e / 4).toString(16)), Qr = (e) => e && e?.replace?.(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), Vc = (e) => e && e?.replace?.(/-([a-z])/g, (t, n) => n.toUpperCase()), Sd = (e) => typeof CSSStyleValue < "u" && e instanceof CSSStyleValue, xd = (e) => e != null && (typeof e == "boolean" ? e !== !1 : !0) && typeof e != "object" && typeof e != "function", Ot = (e) => typeof e == "boolean" ? e ? "" : null : typeof e == "number" ? String(e) : e, Zn = /* @__PURE__ */ Symbol.for("@trigger-lock"), _t = (e, t, n = "value") => {
|
|
217
|
+
oa(e, n) && (e[Zn] = !0);
|
|
218
218
|
let r;
|
|
219
219
|
try {
|
|
220
220
|
r = t?.();
|
|
221
221
|
} finally {
|
|
222
|
-
oa(e, n) && delete e[
|
|
222
|
+
oa(e, n) && delete e[Zn];
|
|
223
223
|
}
|
|
224
224
|
return r;
|
|
225
225
|
}, qc = (e) => {
|
|
@@ -242,12 +242,12 @@ var Uc = /* @__PURE__ */ Symbol.for("@fix"), ci = (e) => Array.isArray(e) || e i
|
|
|
242
242
|
};
|
|
243
243
|
}, Gc = (e) => e instanceof WeakRef || typeof e?.deref == "function", Pd = (e) => Gc(e) ? pe(e) : e, Ye = (e) => e != null ? Gc(e) ? e : typeof e == "function" || typeof e == "object" ? new WeakRef(e) : e : e, ct = (e) => (typeof e == "object" || typeof e == "function") && (e?.value != null || e != null && "value" in e), Nt = (e) => e != null && (typeof e == "object" || typeof e == "function"), Xc = (e) => ne(e) ? e?.value : e, Ad = (e, t) => e instanceof Promise || typeof e?.then == "function" ? e?.then?.(t) : t?.(e), Td = (e, t) => e instanceof Promise || typeof e?.then == "function" ? e?.then?.(t) : t?.(e), ds = function(e) {
|
|
244
244
|
return (t) => {
|
|
245
|
-
e[
|
|
245
|
+
e[Zn] = !0;
|
|
246
246
|
let n;
|
|
247
247
|
try {
|
|
248
248
|
n = t?.();
|
|
249
249
|
} finally {
|
|
250
|
-
e[
|
|
250
|
+
e[Zn] = !1;
|
|
251
251
|
}
|
|
252
252
|
return n;
|
|
253
253
|
};
|
|
@@ -268,7 +268,7 @@ var Uc = /* @__PURE__ */ Symbol.for("@fix"), ci = (e) => Array.isArray(e) || e i
|
|
|
268
268
|
case "bigint":
|
|
269
269
|
return 0n;
|
|
270
270
|
}
|
|
271
|
-
}, Od = (e) => typeof e?.[Symbol.iterator] == "function",
|
|
271
|
+
}, Od = (e) => typeof e?.[Symbol.iterator] == "function", or = (e) => [
|
|
272
272
|
"symbol",
|
|
273
273
|
"string",
|
|
274
274
|
"number"
|
|
@@ -720,8 +720,8 @@ var kt = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries
|
|
|
720
720
|
}), t = !0);
|
|
721
721
|
}, r = [];
|
|
722
722
|
return r.push(T(navigator?.virtualKeyboard, "geometrychange", n, Hs)), r.push(T(window?.visualViewport, "scroll", n, Hs)), r.push(T(window?.visualViewport, "resize", n, Hs)), r.push(T(screen?.orientation, "change", n)), r.push(T(window, "resize", n)), r.push(T(document?.documentElement, "fullscreenchange", n)), r.push(T(document, "DOMContentLoaded", n)), r.push(T(matchMedia("(orientation: portrait)"), "change", n)), r.push(T(matchMedia("(orientation: landscape)"), "change", n)), n(), oh(() => n(), 100), () => r.forEach((i) => i());
|
|
723
|
-
}, dw = new OffscreenCanvas(1, 1).getContext("2d"), ch = /* @__PURE__ */ Symbol.for("dom.ts@onBorderObserve"), hw = globalThis[ch] ??= /* @__PURE__ */ new WeakMap(), uh = /* @__PURE__ */ Symbol.for("dom.ts@onContentObserve"),
|
|
724
|
-
if (!
|
|
723
|
+
}, dw = new OffscreenCanvas(1, 1).getContext("2d"), ch = /* @__PURE__ */ Symbol.for("dom.ts@onBorderObserve"), hw = globalThis[ch] ??= /* @__PURE__ */ new WeakMap(), uh = /* @__PURE__ */ Symbol.for("dom.ts@onContentObserve"), dr = globalThis[uh] ??= /* @__PURE__ */ new WeakMap(), ys = (e) => (typeof e?.current == "object" && (e = e?.element ?? e?.current ?? (typeof e?.self == "object" ? e?.self : null) ?? e), e), fh = (e, t) => {
|
|
724
|
+
if (!dr.has(e = ys(e))) {
|
|
725
725
|
const n = [], r = new ResizeObserver((i) => {
|
|
726
726
|
for (const s of i) if (s.contentBoxSize) {
|
|
727
727
|
const o = s.contentBoxSize[0];
|
|
@@ -731,9 +731,9 @@ var kt = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries
|
|
|
731
731
|
t?.({
|
|
732
732
|
inlineSize: e.clientWidth,
|
|
733
733
|
blockSize: e.clientHeight
|
|
734
|
-
}, r),
|
|
734
|
+
}, r), dr.set(e, n), (e?.element ?? e) instanceof Node && r.observe(e?.element ?? e, { box: "content-box" });
|
|
735
735
|
}
|
|
736
|
-
return
|
|
736
|
+
return dr.get(e)?.push?.(t), { disconnect: () => dr.get(e)?.splice?.(dr.get(e)?.indexOf(t) || -1, 1) };
|
|
737
737
|
}, eu = (e, t, n) => {
|
|
738
738
|
if (typeof e?.selector == "string") return Ha(e, e?.selector, t, n);
|
|
739
739
|
const r = new Set((t.split(",") || [t]).map((s) => s.trim())), i = new MutationObserver((s, o) => {
|
|
@@ -895,13 +895,13 @@ var Tl = (e, t, n = "") => {
|
|
|
895
895
|
if (!s) return e;
|
|
896
896
|
let o = ne(n) && !(qn(n) || Ln(n)) ? n?.value : n;
|
|
897
897
|
return typeof o == "string" && !qn(o) && (o = qc(o) ?? o), o == null ? (nn(s, i, null, r), e) : (qn(o) || typeof o == "number", nn(s, i, String(o), r), e);
|
|
898
|
-
}, ru = (e, t) => typeof e?.then == "function" ? e?.then?.(t) : t(e), hh = /* @__PURE__ */ Symbol.for("dom.ts@blobURLMap"),
|
|
898
|
+
}, ru = (e, t) => typeof e?.then == "function" ? e?.then?.(t) : t(e), hh = /* @__PURE__ */ Symbol.for("dom.ts@blobURLMap"), hr = globalThis[hh] ??= /* @__PURE__ */ new WeakMap(), ph = /* @__PURE__ */ Symbol.for("dom.ts@cacheMap"), mn = globalThis[ph] ??= /* @__PURE__ */ new Map(), yh = (e) => {
|
|
899
899
|
if (!e) return null;
|
|
900
900
|
if (mn.has(e)) return mn.get(e);
|
|
901
901
|
if (e instanceof Blob || e instanceof File) {
|
|
902
|
-
if (
|
|
902
|
+
if (hr.has(e)) return hr.get(e);
|
|
903
903
|
const t = URL.createObjectURL(e);
|
|
904
|
-
return
|
|
904
|
+
return hr.set(e, t), mn.set(t, t), t;
|
|
905
905
|
}
|
|
906
906
|
if (URL.canParse(e) || e?.trim?.()?.startsWith?.("./")) {
|
|
907
907
|
const t = fetch(e?.replace?.("?url", "?raw"), {
|
|
@@ -910,18 +910,18 @@ var Tl = (e, t, n = "") => {
|
|
|
910
910
|
priority: "high"
|
|
911
911
|
})?.then?.(async (n) => {
|
|
912
912
|
const r = await n.blob(), i = URL.createObjectURL(r);
|
|
913
|
-
return
|
|
913
|
+
return hr.set(r, i), mn.set(e, i), mn.set(i, i), i;
|
|
914
914
|
});
|
|
915
915
|
return mn.set(e, t), t;
|
|
916
916
|
}
|
|
917
917
|
if (typeof e == "string") {
|
|
918
918
|
const t = new Blob([e], { type: "text/css" }), n = URL.createObjectURL(t);
|
|
919
|
-
return
|
|
919
|
+
return hr.set(t, n), mn.set(n, n), n;
|
|
920
920
|
}
|
|
921
921
|
return e;
|
|
922
|
-
},
|
|
922
|
+
}, pr = /* @__PURE__ */ new Map(), fi = /* @__PURE__ */ new WeakMap(), mh = (e) => {
|
|
923
923
|
if (!e) return "";
|
|
924
|
-
if (
|
|
924
|
+
if (pr.has(e)) return pr.get(e) ?? "";
|
|
925
925
|
if (e instanceof Blob || e instanceof File) {
|
|
926
926
|
if (fi.has(e)) return fi.get(e) ?? "";
|
|
927
927
|
const t = e?.text?.()?.then?.((n) => (fi.set(e, n), n));
|
|
@@ -934,11 +934,11 @@ var Tl = (e, t, n = "") => {
|
|
|
934
934
|
priority: "high"
|
|
935
935
|
})?.then?.(async (n) => {
|
|
936
936
|
const r = await n.text();
|
|
937
|
-
return
|
|
937
|
+
return pr.set(e, r), r;
|
|
938
938
|
});
|
|
939
|
-
return
|
|
939
|
+
return pr.set(e, t), t;
|
|
940
940
|
}
|
|
941
|
-
return typeof e == "string" &&
|
|
941
|
+
return typeof e == "string" && pr.set(e, e), e;
|
|
942
942
|
}, vh = /* @__PURE__ */ Symbol.for("dom.ts@adoptedSelectorMap"), Ml = globalThis[vh] ??= /* @__PURE__ */ new Map(), gh = /* @__PURE__ */ Symbol.for("dom.ts@adoptedShadowSelectorMap"), Rl = globalThis[gh] ??= /* @__PURE__ */ new WeakMap(), bh = /* @__PURE__ */ Symbol.for("dom.ts@adoptedLayerMap"), Ol = globalThis[bh] ??= /* @__PURE__ */ new Map(), wh = /* @__PURE__ */ Symbol.for("dom.ts@adoptedShadowLayerMap"), di = globalThis[wh] ??= /* @__PURE__ */ new WeakMap(), iu = (e, t = "ux-query", n = null) => {
|
|
943
943
|
if (!e || !tu()) return null;
|
|
944
944
|
const r = n instanceof ShadowRoot ? n : n?.getRootNode ? n.getRootNode({ composed: !0 }) : null, i = r instanceof ShadowRoot, s = i ? r.adoptedStyleSheets : typeof document < "u" ? document.adoptedStyleSheets : null;
|
|
@@ -1008,7 +1008,7 @@ var Tl = (e, t, n = "") => {
|
|
|
1008
1008
|
if (typeof HTMLHeadElement < "u" && r instanceof HTMLHeadElement) return Sh(e);
|
|
1009
1009
|
const i = typeof document < "u" ? document.createElement("style") : null;
|
|
1010
1010
|
return i ? (i.dataset.owner = Ba, su(e, [i, "innerHTML"], n), r?.prepend?.(i), i) : null;
|
|
1011
|
-
},
|
|
1011
|
+
}, Er = (e, t, n, r = "") => St(e, t, n, r), xh = /* @__PURE__ */ Symbol.for("dom.ts@adoptedMap"), Dt = globalThis[xh] ??= /* @__PURE__ */ new Map(), _h = /* @__PURE__ */ Symbol.for("dom.ts@adoptedBlobMap"), yr = globalThis[_h] ??= /* @__PURE__ */ new WeakMap(), kh = /* @__PURE__ */ Symbol.for("dom.ts@layerCounter"), pw = globalThis[kh] ??= 0, Il = (e, t) => {
|
|
1012
1012
|
if (!e || !t) return !1;
|
|
1013
1013
|
try {
|
|
1014
1014
|
return e.replaceSync(t), !0;
|
|
@@ -1025,21 +1025,21 @@ var Tl = (e, t, n = "") => {
|
|
|
1025
1025
|
const r = Dt.get(e);
|
|
1026
1026
|
return typeof document < "u" && document.adoptedStyleSheets && !document.adoptedStyleSheets.includes(r) && document.adoptedStyleSheets.push(r), r;
|
|
1027
1027
|
}
|
|
1028
|
-
if ((e instanceof Blob || e instanceof File) &&
|
|
1029
|
-
const r =
|
|
1028
|
+
if ((e instanceof Blob || e instanceof File) && yr?.has?.(e)) {
|
|
1029
|
+
const r = yr.get(e);
|
|
1030
1030
|
return typeof document < "u" && document.adoptedStyleSheets && !document.adoptedStyleSheets.includes(r) && document.adoptedStyleSheets.push(r), r;
|
|
1031
1031
|
}
|
|
1032
1032
|
if (!e) return null;
|
|
1033
|
-
const n = typeof e == "string" ? Dt.getOrInsertComputed(e, (r) => new CSSStyleSheet()) :
|
|
1033
|
+
const n = typeof e == "string" ? Dt.getOrInsertComputed(e, (r) => new CSSStyleSheet()) : yr.getOrInsertComputed(e, (r) => new CSSStyleSheet());
|
|
1034
1034
|
if (typeof document < "u" && document.adoptedStyleSheets && !document.adoptedStyleSheets.includes(n) && document.adoptedStyleSheets.push(n), typeof e == "string" && !URL.canParse(e)) {
|
|
1035
1035
|
const r = t ? `@layer ${t} { ${e} }` : e;
|
|
1036
1036
|
return Dt.set(e, n), Il(n, r) || (js(n), Dt.delete(e), Dn(e)), n;
|
|
1037
1037
|
} else ru(mh(e), (r) => {
|
|
1038
1038
|
if (Dt.set(r, n), r) {
|
|
1039
1039
|
if (Al(r))
|
|
1040
|
-
return js(n), Dt.delete(r),
|
|
1040
|
+
return js(n), Dt.delete(r), yr.delete(e), Dn(r, void 0, t || ""), n;
|
|
1041
1041
|
const i = t ? `@layer ${t} { ${r} }` : r;
|
|
1042
|
-
return Il(n, i) || (js(n), Dt.delete(r),
|
|
1042
|
+
return Il(n, i) || (js(n), Dt.delete(r), yr.delete(e), Dn(r, void 0, t || "")), n;
|
|
1043
1043
|
}
|
|
1044
1044
|
});
|
|
1045
1045
|
return n;
|
|
@@ -1067,12 +1067,12 @@ var Tl = (e, t, n = "") => {
|
|
|
1067
1067
|
}
|
|
1068
1068
|
return e;
|
|
1069
1069
|
}
|
|
1070
|
-
}, Ph = /* @__PURE__ */ Symbol.for("dom.ts@namedStoreMaps"),
|
|
1070
|
+
}, Ph = /* @__PURE__ */ Symbol.for("dom.ts@namedStoreMaps"), er = globalThis[Ph] ??= /* @__PURE__ */ new Map(), Ah = (e, t) => {
|
|
1071
1071
|
const n = [...e.entries() || []];
|
|
1072
1072
|
return new Map(n?.map?.(([r, i]) => [r, i?.get?.(t)])?.filter?.(([r, i]) => !!i) || []);
|
|
1073
1073
|
}, Th = (e, t, n) => {
|
|
1074
|
-
let r =
|
|
1075
|
-
return r || (r = /* @__PURE__ */ new WeakMap(),
|
|
1074
|
+
let r = er.get(t);
|
|
1075
|
+
return r || (r = /* @__PURE__ */ new WeakMap(), er.set(t, r)), r.has(e) || r.set(e, n), e;
|
|
1076
1076
|
}, Mh = (e, t) => {
|
|
1077
1077
|
if (!(!e || !t)) {
|
|
1078
1078
|
for (const [n, r] of t.entries()) Th(e, n, r);
|
|
@@ -1086,19 +1086,19 @@ var Tl = (e, t, n = "") => {
|
|
|
1086
1086
|
}
|
|
1087
1087
|
return e;
|
|
1088
1088
|
}
|
|
1089
|
-
},
|
|
1090
|
-
storeSet: Ah(
|
|
1089
|
+
}, Ar = (e) => ({
|
|
1090
|
+
storeSet: Ah(er, e),
|
|
1091
1091
|
mixinSet: on?.get?.(e),
|
|
1092
1092
|
behaviorSet: au?.get?.(e)
|
|
1093
1093
|
}), Oh = (e, t, n) => {
|
|
1094
1094
|
const r = new WeakRef(e);
|
|
1095
|
-
return n ||= on?.get?.(e), n?.has?.(t) || (n?.add?.(t), Bn?.get?.(t)?.add?.(e), t.name && e?.setAttribute?.("data-mixin", [...e?.getAttribute?.("data-mixin")?.split?.(" ") || [], t.name].filter((i) => !!i).join(" ")), t?.connect?.(r, t,
|
|
1095
|
+
return n ||= on?.get?.(e), n?.has?.(t) || (n?.add?.(t), Bn?.get?.(t)?.add?.(e), t.name && e?.setAttribute?.("data-mixin", [...e?.getAttribute?.("data-mixin")?.split?.(" ") || [], t.name].filter((i) => !!i).join(" ")), t?.connect?.(r, t, Ar(e))), e;
|
|
1096
1096
|
}, Ih = /* @__PURE__ */ Symbol.for("dom.ts@boundMixinSet"), on = globalThis[Ih] ??= /* @__PURE__ */ new WeakMap(), Nh = /* @__PURE__ */ Symbol.for("dom.ts@mixinElements"), Bn = globalThis[Nh] ??= /* @__PURE__ */ new WeakMap(), zh = /* @__PURE__ */ Symbol.for("dom.ts@mixinRegistry"), Wr = globalThis[zh] ??= /* @__PURE__ */ new Map(), $h = /* @__PURE__ */ Symbol.for("dom.ts@mixinNamespace"), Xi = globalThis[$h] ??= /* @__PURE__ */ new WeakMap(), lu = (e, t) => {
|
|
1097
1097
|
typeof t == "string" && (t = Wr?.get?.(t));
|
|
1098
1098
|
const n = /* @__PURE__ */ new Set([...e?.getAttribute?.("data-mixin")?.split?.(" ") || []]), r = new Set([...n].map((o) => Wr?.get?.(o)).filter((o) => !!o)), i = on?.get?.(e) ?? /* @__PURE__ */ new WeakSet();
|
|
1099
1099
|
Bn?.has?.(t) || Bn?.set?.(t, /* @__PURE__ */ new WeakSet()), on?.has?.(e) || on?.set?.(e, i);
|
|
1100
1100
|
const s = new WeakRef(e);
|
|
1101
|
-
i?.has?.(t) || (r.has(t) || t?.disconnect?.(s, t,
|
|
1101
|
+
i?.has?.(t) || (r.has(t) || t?.disconnect?.(s, t, Ar(e)), (r.has(t) || !Bn?.get?.(t)?.has?.(e)) && (t?.connect?.(s, t, Ar(e)), n.add(Xi?.get?.(t)), i?.add?.(t), e?.setAttribute?.("data-mixin", [...n].filter((o) => !!o).join(" "))), Bn?.get?.(t)?.add?.(e)), i?.has?.(t) && (r.has(t) || (i?.delete?.(t), t?.disconnect?.(s, t, Ar(e))));
|
|
1102
1102
|
}, ha = /* @__PURE__ */ new Set(), pa = (e = typeof document < "u" ? document : null) => {
|
|
1103
1103
|
if (e)
|
|
1104
1104
|
return ha?.has?.(e) || (ha?.add?.(e), Ha(e, "*", "data-mixin", (t) => Hr(t.target)), Gi(e, "[data-mixin]", (t) => {
|
|
@@ -1131,16 +1131,16 @@ var vs = class {
|
|
|
1131
1131
|
return this;
|
|
1132
1132
|
}
|
|
1133
1133
|
storeForElement(e) {
|
|
1134
|
-
return
|
|
1134
|
+
return er.get(this.name || "")?.get?.(e);
|
|
1135
1135
|
}
|
|
1136
1136
|
relatedForElement(e) {
|
|
1137
|
-
return
|
|
1137
|
+
return Ar(e);
|
|
1138
1138
|
}
|
|
1139
1139
|
get elements() {
|
|
1140
1140
|
return Bn?.get?.(this);
|
|
1141
1141
|
}
|
|
1142
1142
|
get storage() {
|
|
1143
|
-
return
|
|
1143
|
+
return er?.get?.(this.name || "");
|
|
1144
1144
|
}
|
|
1145
1145
|
get name() {
|
|
1146
1146
|
return Xi?.get?.(this);
|
|
@@ -1492,7 +1492,7 @@ var Jh = globalThis[yu], Qh = (e, t) => {
|
|
|
1492
1492
|
const n = e?.[Te] ?? e;
|
|
1493
1493
|
let r = ge.get(n);
|
|
1494
1494
|
return r ? r.bindSource(n) : (r = new tp(n), ge.set(n, r)), t;
|
|
1495
|
-
}, ti = (e, t) => (e = at(e?.[Te] ?? e), typeof e == "symbol" || !(typeof e == "object" || typeof e == "function") || e == null ? e : Jh.getOrInsertComputed(e, () => new Proxy(e, Qh(e, t)))),
|
|
1495
|
+
}, ti = (e, t) => (e = at(e?.[Te] ?? e), typeof e == "symbol" || !(typeof e == "object" || typeof e == "function") || e == null ? e : Jh.getOrInsertComputed(e, () => new Proxy(e, Qh(e, t)))), mr = /* @__PURE__ */ Symbol.for("@allProps"), mu = /* @__PURE__ */ new Set(["*", "all"]), Va = /* @__PURE__ */ new Map([
|
|
1496
1496
|
["set", ["setter", "@set"]],
|
|
1497
1497
|
["add", ["@add"]],
|
|
1498
1498
|
["delete", ["@delete"]],
|
|
@@ -1585,7 +1585,7 @@ globalThis[bu] ??= class {
|
|
|
1585
1585
|
i = jr(i) ?? i;
|
|
1586
1586
|
const o = this.#t;
|
|
1587
1587
|
if (o?.size)
|
|
1588
|
-
for (const [a, l] of o.entries()) (l.prop === t || l.prop ===
|
|
1588
|
+
for (const [a, l] of o.entries()) (l.prop === t || l.prop === mr || l.prop === null) && Gn(l.triggers, i) && this.$safeExec(a, n, t, r, i, ...s);
|
|
1589
1589
|
if (zl.size) {
|
|
1590
1590
|
const a = {
|
|
1591
1591
|
source: this.#e,
|
|
@@ -1631,15 +1631,15 @@ globalThis[bu] ??= class {
|
|
|
1631
1631
|
if (t == null || typeof t != "function") return;
|
|
1632
1632
|
const i = bs(r);
|
|
1633
1633
|
return this.#t.set(t, {
|
|
1634
|
-
prop: n ||
|
|
1634
|
+
prop: n || mr,
|
|
1635
1635
|
triggers: i.affectTypes
|
|
1636
|
-
}), () => this.unaffected(t, n ||
|
|
1636
|
+
}), () => this.unaffected(t, n || mr);
|
|
1637
1637
|
}
|
|
1638
1638
|
unaffected(t, n) {
|
|
1639
1639
|
if (t != null && typeof t == "function") {
|
|
1640
1640
|
const r = this.#t, i = r?.get(t);
|
|
1641
|
-
if (i && (i.prop == n || n == null || n ==
|
|
1642
|
-
return r.delete(t), () => this.affected(t, n ||
|
|
1641
|
+
if (i && (i.prop == n || n == null || n == mr))
|
|
1642
|
+
return r.delete(t), () => this.affected(t, n || mr, i.triggers);
|
|
1643
1643
|
}
|
|
1644
1644
|
return this.#t.clear();
|
|
1645
1645
|
}
|
|
@@ -1694,7 +1694,7 @@ var tp = globalThis[bu], np = /* @__PURE__ */ Symbol.for("object.ts@__safeGetGua
|
|
|
1694
1694
|
"catch",
|
|
1695
1695
|
"finally",
|
|
1696
1696
|
"next"
|
|
1697
|
-
]),
|
|
1697
|
+
]), Tr = (e, t) => {
|
|
1698
1698
|
if (!rp.has(t)) return null;
|
|
1699
1699
|
const n = C(e, t);
|
|
1700
1700
|
return typeof n == "function" ? Cn(e, n) : n;
|
|
@@ -1801,7 +1801,7 @@ var Sn = (e, t) => {
|
|
|
1801
1801
|
this.#e = e, this.#t = t, this.#n = n;
|
|
1802
1802
|
}
|
|
1803
1803
|
get(e, t, n) {
|
|
1804
|
-
const r =
|
|
1804
|
+
const r = Tr(e, t);
|
|
1805
1805
|
return r ?? Reflect.get(e, t, n);
|
|
1806
1806
|
}
|
|
1807
1807
|
apply(e, t, n) {
|
|
@@ -1883,7 +1883,7 @@ var Sn = (e, t) => {
|
|
|
1883
1883
|
return Reflect.has(e, t);
|
|
1884
1884
|
}
|
|
1885
1885
|
get(e, t, n) {
|
|
1886
|
-
const r =
|
|
1886
|
+
const r = Tr(e, t);
|
|
1887
1887
|
if (r != null) return r;
|
|
1888
1888
|
if ([
|
|
1889
1889
|
Te,
|
|
@@ -2000,9 +2000,9 @@ var Sn = (e, t) => {
|
|
|
2000
2000
|
return t in e;
|
|
2001
2001
|
}
|
|
2002
2002
|
set(e, t, n) {
|
|
2003
|
-
const r =
|
|
2003
|
+
const r = Tr(e, t);
|
|
2004
2004
|
return r ?? Ad(n, (i) => {
|
|
2005
|
-
const s =
|
|
2005
|
+
const s = Tr(i, t);
|
|
2006
2006
|
if (s != null) return s;
|
|
2007
2007
|
if (t == j && n)
|
|
2008
2008
|
return this[j] = !!n, !0;
|
|
@@ -2017,7 +2017,7 @@ var Sn = (e, t) => {
|
|
|
2017
2017
|
});
|
|
2018
2018
|
}
|
|
2019
2019
|
defineProperty(e, t, n) {
|
|
2020
|
-
const r =
|
|
2020
|
+
const r = Tr(e, t);
|
|
2021
2021
|
if (r != null) return r;
|
|
2022
2022
|
if (t == j && n.value)
|
|
2023
2023
|
return this[j] = !!n.value, !0;
|
|
@@ -2177,7 +2177,7 @@ var Sn = (e, t) => {
|
|
|
2177
2177
|
deleteProperty(e, t) {
|
|
2178
2178
|
return t == j ? (delete this[j], !0) : Reflect.deleteProperty(e, t);
|
|
2179
2179
|
}
|
|
2180
|
-
},
|
|
2180
|
+
}, tr = (e) => !!((typeof e == "object" || typeof e == "function") && e != null && (e?.[Te] || e?.[An])), ma = (e) => tr(e) ? e : ti(e, new up()), pp = (e) => tr(e) ? e : ti(e, new fp()), yp = (e) => tr(e) ? e : ti(e, new dp()), mp = (e) => tr(e) ? e : ti(e, new hp()), w = (e, t) => {
|
|
2181
2181
|
const n = e instanceof Promise || typeof e?.then == "function", r = be({
|
|
2182
2182
|
[Zr]: n ? e : null,
|
|
2183
2183
|
[U]: n ? 0 : Number(at(e) || 0) || 0,
|
|
@@ -2299,12 +2299,12 @@ var Sn = (e, t) => {
|
|
|
2299
2299
|
return xt(o(), d);
|
|
2300
2300
|
},
|
|
2301
2301
|
set value(d) {
|
|
2302
|
-
if (c[
|
|
2302
|
+
if (c[Zn] = !0, s) this[U] = a(d);
|
|
2303
2303
|
else {
|
|
2304
2304
|
const p = d ?? Rd(o());
|
|
2305
2305
|
this[U] = a(p);
|
|
2306
2306
|
}
|
|
2307
|
-
c[
|
|
2307
|
+
c[Zn] = !1;
|
|
2308
2308
|
},
|
|
2309
2309
|
get value() {
|
|
2310
2310
|
const d = o();
|
|
@@ -2342,7 +2342,7 @@ var Sn = (e, t) => {
|
|
|
2342
2342
|
return t != null ? vp(r, t, n) : r;
|
|
2343
2343
|
};
|
|
2344
2344
|
function be(e, t) {
|
|
2345
|
-
if (e == null || typeof e == "symbol" || !(typeof e == "object" || typeof e == "function") ||
|
|
2345
|
+
if (e == null || typeof e == "symbol" || !(typeof e == "object" || typeof e == "function") || tr(e) || (e = at?.(e)) == null || e instanceof Promise || e instanceof WeakRef || tr(e)) return e;
|
|
2346
2346
|
const n = e;
|
|
2347
2347
|
if (n == null || typeof n == "symbol" || !(typeof n == "object" || typeof n == "function") || n instanceof Promise || n instanceof WeakRef) return n;
|
|
2348
2348
|
let r = n;
|
|
@@ -2353,7 +2353,7 @@ var Tn = (e) => typeof HTMLInputElement < "u" && e instanceof HTMLInputElement ?
|
|
|
2353
2353
|
return e;
|
|
2354
2354
|
}, Zi = "initial", Ga = (e) => {
|
|
2355
2355
|
const t = e?.[Ki] ?? e?.realProp;
|
|
2356
|
-
return
|
|
2356
|
+
return or(t) ? t : null;
|
|
2357
2357
|
}, wu = (e, t) => {
|
|
2358
2358
|
const n = Ga(e);
|
|
2359
2359
|
return n != null && (t == null || t == "value") ? n : t;
|
|
@@ -2387,8 +2387,8 @@ var Tn = (e) => typeof HTMLInputElement < "u" && e instanceof HTMLInputElement ?
|
|
|
2387
2387
|
Gn(i, "set") && n?.(c, "value", o, "set", l), o = c;
|
|
2388
2388
|
};
|
|
2389
2389
|
return e?.addEventListener?.("change", a, s), () => e?.removeEventListener?.("change", a, s);
|
|
2390
|
-
}, Ks = (e) => Array.isArray(e) && e?.length == 2 && qa(e?.[0]) && (
|
|
2391
|
-
const i =
|
|
2390
|
+
}, Ks = (e) => Array.isArray(e) && e?.length == 2 && qa(e?.[0]) && (or(e?.[1]) || e?.[1] == Symbol.iterator), kp = (e, t, n, r = ["*"]) => {
|
|
2391
|
+
const i = or(e?.[1]) ? e?.[1] : null;
|
|
2392
2392
|
return W(e?.[0], i, n, r);
|
|
2393
2393
|
}, Ep = (e, t, n, r = ["*"]) => e?.then?.((i) => W?.(i, t, n, r))?.catch?.((i) => (console.warn(i), null)), W = (e, t, n = () => {
|
|
2394
2394
|
}, r) => {
|
|
@@ -2467,11 +2467,11 @@ function Ya(e, t, n = ["*"]) {
|
|
|
2467
2467
|
}
|
|
2468
2468
|
return s == null ? void 0 : e[s];
|
|
2469
2469
|
};
|
|
2470
|
-
return Js.getOrInsertComputed([e, t], () => e instanceof Set ? W([Ap(e), Symbol.iterator], t, n) : e instanceof Map ? W(e, t, n) : ne(e) ? W(e, r, n) : Array.isArray(e) && !(e?.length == 2 &&
|
|
2470
|
+
return Js.getOrInsertComputed([e, t], () => e instanceof Set ? W([Ap(e), Symbol.iterator], t, n) : e instanceof Map ? W(e, t, n) : ne(e) ? W(e, r, n) : Array.isArray(e) && !(e?.length == 2 && or(e?.[1]) && Tn(e?.[0])) ? W([e, Symbol.iterator], t, n) : W(e, t, n));
|
|
2471
2471
|
}
|
|
2472
2472
|
function Wi(e, t) {
|
|
2473
2473
|
return Gh(e, (n) => {
|
|
2474
|
-
const r = Array.isArray(n) && n?.length == 2 && ["object", "function"].indexOf(typeof n?.[0]) >= 0 &&
|
|
2474
|
+
const r = Array.isArray(n) && n?.length == 2 && ["object", "function"].indexOf(typeof n?.[0]) >= 0 && or(n?.[1]), i = r ? n?.[1] : null;
|
|
2475
2475
|
n = r && i != null ? n?.[0] ?? n : n;
|
|
2476
2476
|
const s = typeof n == "object" || typeof n == "function" ? n?.[Te] ?? n : n;
|
|
2477
2477
|
(n?.[Br] ?? ge.get(s))?.unaffected?.(t, i);
|
|
@@ -2517,7 +2517,7 @@ var Cp = (e, t, n, r) => {
|
|
|
2517
2517
|
}
|
|
2518
2518
|
})), t;
|
|
2519
2519
|
}, Ur = (e, t, n, r = "value") => {
|
|
2520
|
-
const i = typeof e?.[1] == "function" && e?.length == 2, s = (
|
|
2520
|
+
const i = typeof e?.[1] == "function" && e?.length == 2, s = (or(e?.[1]) || e?.[1] == Symbol.iterator) && e?.length == 2;
|
|
2521
2521
|
let o = s && !i ? e?.[1] : Array.isArray(e) ? null : r;
|
|
2522
2522
|
if (!s && !i && (e = [s ? e?.[0] : e, o]), i && (e[1] = o), o == null || ua(o, e?.[0])) return;
|
|
2523
2523
|
const a = (d) => {
|
|
@@ -2732,7 +2732,7 @@ var Lp = {
|
|
|
2732
2732
|
const d = pe(i);
|
|
2733
2733
|
if (d) {
|
|
2734
2734
|
const p = pe(s)?.value || 0, f = u;
|
|
2735
|
-
|
|
2735
|
+
Er(d, c, f[0] * (1 - p) + f[1] * p);
|
|
2736
2736
|
}
|
|
2737
2737
|
}, a = Wa(), l = () => Object.entries(t)?.forEach?.(o);
|
|
2738
2738
|
return W(n, (c) => a?.schedule?.(l));
|
|
@@ -2743,7 +2743,7 @@ var Lp = {
|
|
|
2743
2743
|
const r = Ye(e), i = t?.[0] ?? t?.name;
|
|
2744
2744
|
if (t?.[1] ?? t?.value, n) {
|
|
2745
2745
|
const s = W?.(t, (o, a, l) => {
|
|
2746
|
-
const c =
|
|
2746
|
+
const c = er?.get?.(i);
|
|
2747
2747
|
n?.([
|
|
2748
2748
|
o,
|
|
2749
2749
|
a,
|
|
@@ -3097,7 +3097,7 @@ var Lp = {
|
|
|
3097
3097
|
const o = Gr(e, "CSSUnitValue");
|
|
3098
3098
|
if (typeof o != "function") throw new TypeError(`Typed OM does not support CSS unit "${t}"`);
|
|
3099
3099
|
return new o(n, ny(t));
|
|
3100
|
-
},
|
|
3100
|
+
}, Mr = (e) => {
|
|
3101
3101
|
const t = e.value?.value, n = typeof t == "number" ? t : Number(t);
|
|
3102
3102
|
if (!Number.isFinite(n)) throw new TypeError(`Reactive CSS value "${String(t)}" is not finite`);
|
|
3103
3103
|
return n;
|
|
@@ -3245,7 +3245,7 @@ var Lp = {
|
|
|
3245
3245
|
const s = this.current();
|
|
3246
3246
|
if (s?.kind === "number" && s.value === 1 && typeof s.unit == "string" && (!t.multipliedByUnit || t.multipliedByUnit === s.unit.toLowerCase())) {
|
|
3247
3247
|
this.consume();
|
|
3248
|
-
const o = qe(this.win, s.unit.toLowerCase(),
|
|
3248
|
+
const o = qe(this.win, s.unit.toLowerCase(), Mr(t));
|
|
3249
3249
|
return this.leaves.push({
|
|
3250
3250
|
slot: t,
|
|
3251
3251
|
value: o
|
|
@@ -3253,7 +3253,7 @@ var Lp = {
|
|
|
3253
3253
|
}
|
|
3254
3254
|
this.index = i;
|
|
3255
3255
|
}
|
|
3256
|
-
const r = qe(this.win, "number",
|
|
3256
|
+
const r = qe(this.win, "number", Mr(t));
|
|
3257
3257
|
return this.leaves.push({
|
|
3258
3258
|
slot: t,
|
|
3259
3259
|
value: r
|
|
@@ -3446,13 +3446,13 @@ var Lp = {
|
|
|
3446
3446
|
if (k && x.length > 0) try {
|
|
3447
3447
|
const M = x.length === 1 && m.length === 0 ? x[0] : null;
|
|
3448
3448
|
if (M && Ul(y, M.marker, M.multipliedByUnit)) {
|
|
3449
|
-
const O = qe(l, M.multipliedByUnit,
|
|
3449
|
+
const O = qe(l, M.multipliedByUnit, Mr(M));
|
|
3450
3450
|
a.set(h, O), Zs(u, eo([{
|
|
3451
3451
|
slot: M,
|
|
3452
3452
|
value: O
|
|
3453
3453
|
}], h, O)), v = !0;
|
|
3454
3454
|
} else if (M && jl(y, M.marker)) {
|
|
3455
|
-
const O = qe(l, "number",
|
|
3455
|
+
const O = qe(l, "number", Mr(M));
|
|
3456
3456
|
a.set(h, O), Zs(u, eo([{
|
|
3457
3457
|
slot: M,
|
|
3458
3458
|
value: O
|
|
@@ -3495,7 +3495,7 @@ var Lp = {
|
|
|
3495
3495
|
if (h.length === 0 && !y) continue;
|
|
3496
3496
|
const b = A(e, f.marker, f.value, function(...m) {
|
|
3497
3497
|
if (h.length > 0) try {
|
|
3498
|
-
const x =
|
|
3498
|
+
const x = Mr(f), k = /* @__PURE__ */ new Map();
|
|
3499
3499
|
for (const v of h)
|
|
3500
3500
|
v.value.value = x, k.set(v.property, v.root);
|
|
3501
3501
|
if (a?.set) for (const [v, S] of k) a.set(v, S);
|
|
@@ -3664,11 +3664,11 @@ var Lp = {
|
|
|
3664
3664
|
this.#l = Object.assign(r, i), this.boundParent = te(this.#l?.boundParent) ?? te(n) ?? null;
|
|
3665
3665
|
}
|
|
3666
3666
|
$getNodeBy(e, t) {
|
|
3667
|
-
const n = $(ne(t) ? t?.value : t) ? this.#i ??=
|
|
3667
|
+
const n = $(ne(t) ? t?.value : t) ? this.#i ??= nr(t) : de(t, t == e ? null : this.#u, -1, e);
|
|
3668
3668
|
return this.#i != null && ($(t) || ne(t)) && (this.#i.textContent = "" + (t?.value ?? ($(t) ? t : ""))), n;
|
|
3669
3669
|
}
|
|
3670
3670
|
$getNode(e, t = !0) {
|
|
3671
|
-
const n = $(this.#t?.value) ? this.#i ??=
|
|
3671
|
+
const n = $(this.#t?.value) ? this.#i ??= nr(this.#t) : de(this.#t?.value, e == this.#t?.value ? null : this.#u, -1, e);
|
|
3672
3672
|
return this.#i != null && ($(this.#t) || ne(this.#t)) && (this.#i.textContent = "" + ($(this.#t) ? this.#t : this.#t?.value ?? "")), n != null && t && (this.#r = n), n;
|
|
3673
3673
|
}
|
|
3674
3674
|
get [Vr]() {
|
|
@@ -3713,13 +3713,13 @@ var Lp = {
|
|
|
3713
3713
|
if (e instanceof HTMLElement) return Ke(e);
|
|
3714
3714
|
if (e == null) return document.createComment(":NULL:");
|
|
3715
3715
|
const i = (typeof t == "function" ? t(e, -1) : e) ?? e;
|
|
3716
|
-
if ($(i)) return r ??=
|
|
3716
|
+
if ($(i)) return r ??= nr(ne(e) ? e : i);
|
|
3717
3717
|
if (r != null && $(i) && (r.textContent = "" + i), i != null && ne(i) && !t) {
|
|
3718
|
-
if ($(i?.value)) return i?.value != null ? r ??=
|
|
3718
|
+
if ($(i?.value)) return i?.value != null ? r ??= nr(i) : document.createComment(":NULL:");
|
|
3719
3719
|
if (typeof i == "object" || typeof i == "function") return rs.getOrInsertComputed(yy(e) ? e : i, () => new py(e, t, n));
|
|
3720
3720
|
}
|
|
3721
3721
|
return de(i, null, -1, n);
|
|
3722
|
-
}, Ru = (e, t) => (t && t != e && !e?.contains?.(t) && te(t) ? e?.elementForPotentialParent?.(t) : null) ?? e?.element, Ou = (e, t) => Ru(e, t) ?? (ne(e) && ke(e?.value) ? e?.value : e), my = /* @__PURE__ */ Symbol.for("lur.e@__nodeGuard"), to = globalThis[my] ??= /* @__PURE__ */ new WeakSet(), vy = /* @__PURE__ */ Symbol.for("lur.e@elMap"), rs = globalThis[vy] ??= /* @__PURE__ */ new WeakMap(), gy = /* @__PURE__ */ Symbol.for("lur.e@tmMap"), Iu = globalThis[gy] ??= /* @__PURE__ */ new WeakMap(), Es = (e) => $(e) ? e : ne(e) && $(e?.value) ? Iu?.get(e) : rs?.get?.(e), no = /* @__PURE__ */ new WeakMap(), Ja = (e, t) => {
|
|
3722
|
+
}, Ru = (e, t) => (t && t != e && !e?.contains?.(t) && te(t) ? e?.elementForPotentialParent?.(t) : null) ?? e?.element, Ou = (e, t) => Ru(e, t) ?? (ne(e) && ke(e?.value) ? e?.value : e), my = /* @__PURE__ */ Symbol.for("lur.e@__nodeGuard"), to = globalThis[my] ??= /* @__PURE__ */ new WeakSet(), vy = /* @__PURE__ */ Symbol.for("lur.e@elMap"), rs = globalThis[vy] ??= /* @__PURE__ */ new WeakMap(), gy = /* @__PURE__ */ Symbol.for("lur.e@tmMap"), Iu = globalThis[gy] ??= /* @__PURE__ */ new WeakMap(), Es = (e) => $(e) ? e : ne(e) && $(e?.value) && e != null ? Iu?.get(e) : (typeof e == "object" || typeof e == "function") && e != null ? rs?.get?.(e) : e, no = /* @__PURE__ */ new WeakMap(), Ja = (e, t) => {
|
|
3723
3723
|
if (no?.has?.(e)) return no?.get?.(e);
|
|
3724
3724
|
const n = document.createComment(":PROMISE:");
|
|
3725
3725
|
return e?.then?.((r) => {
|
|
@@ -3736,22 +3736,22 @@ var Lp = {
|
|
|
3736
3736
|
}
|
|
3737
3737
|
});
|
|
3738
3738
|
}), n;
|
|
3739
|
-
},
|
|
3739
|
+
}, Rr = (e, t, n = -1, r) => t != null ? e = Rr(t?.(e, n), null, -1, r) : ((e instanceof WeakRef || typeof e?.deref == "function") && (e = e.deref()), e instanceof Promise || typeof e?.then == "function" ? Ja(e, (i) => Rr(i, t, n, r)) : ke(e) && !e?.element || ke(e?.element) ? e : ne(e) ? (e instanceof HTMLElement ? Ke : Mu)(e) : typeof e == "object" && e != null ? Es(e) : typeof e == "function" ? Rr(e?.(), t, n, r) : $(e) && e != null ? nr(e) : document.createComment(":NULL:")), Gl = (e, t) => Ou(e, t) ?? ke(e), by = (e, t, n = -1, r) => t != null ? e = de(t?.(e, n), null, -1, r) : ((e instanceof WeakRef || typeof e?.deref == "function") && (e = e.deref()), e instanceof Promise || typeof e?.then == "function" ? Ja(e, (i) => de(i, t, n, r)) : ke(e) && !e?.element ? e : ke(e?.element) ? Ou(e, r) : ne(e) ? (e instanceof HTMLElement ? Ke : Mu)(e)?.element : typeof e == "object" && e != null ? Es(e) : typeof e == "function" ? de(e?.(), t, n, r) : $(e) && e != null ? nr(e) : document.createComment(":NULL:")), Xn = (e) => (typeof e == "object" || typeof e == "function" || typeof e == "symbol") && e != null, Nu = (e, t, n = -1, r) => {
|
|
3740
3740
|
if ((e instanceof WeakRef || typeof e?.deref == "function") && (e = e.deref()), e instanceof Promise || typeof e?.then == "function") return Ja(e, (i) => Nu(i, t, n, r));
|
|
3741
|
-
if (
|
|
3741
|
+
if (Xn(e) && !ke(e)) {
|
|
3742
3742
|
if (rs.has(e)) {
|
|
3743
|
-
const s = Es(e) ??
|
|
3743
|
+
const s = Es(e) ?? Rr(e, t, n, r);
|
|
3744
3744
|
return Gl(s instanceof WeakRef ? s?.deref?.() : s, r);
|
|
3745
3745
|
}
|
|
3746
|
-
const i =
|
|
3747
|
-
return !t && i != null && i != e &&
|
|
3746
|
+
const i = Rr(e, t, n, r);
|
|
3747
|
+
return !t && i != null && i != e && Xn(e) && !ke(e) && rs.set(e, i), Gl(i, r);
|
|
3748
3748
|
}
|
|
3749
3749
|
return by(e, t, n, r);
|
|
3750
3750
|
}, de = (e, t, n = -1, r) => {
|
|
3751
|
-
if (
|
|
3752
|
-
|
|
3751
|
+
if (Xn(e) && to.has(e)) return Es(e) ?? ke(e);
|
|
3752
|
+
Xn(e) && to.add(e);
|
|
3753
3753
|
const i = Nu(e, t, n, r);
|
|
3754
|
-
return
|
|
3754
|
+
return Xn(e) && to.delete(e), i;
|
|
3755
3755
|
}, Xl = (e, t, n = -1) => {
|
|
3756
3756
|
ke(t) && t != null && t?.parentNode != e && (Number.isInteger(n) && n >= 0 && n < e?.childNodes?.length ? e?.insertBefore?.(t, e?.childNodes?.[n]) : e?.append?.(t));
|
|
3757
3757
|
}, Or = (e, t, n = -1) => {
|
|
@@ -3800,15 +3800,19 @@ var Lp = {
|
|
|
3800
3800
|
return Array.from(e.childNodes).forEach((i) => {
|
|
3801
3801
|
r?.find?.((s) => !_e?.(s, i)) || i?.remove?.();
|
|
3802
3802
|
}), e;
|
|
3803
|
-
},
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
t
|
|
3808
|
-
|
|
3809
|
-
|
|
3803
|
+
}, nr = (e) => {
|
|
3804
|
+
if ($(e) && e != null) return document.createTextNode(e);
|
|
3805
|
+
if (e == null) return document.createComment(":NULL:");
|
|
3806
|
+
if (Xn(e)) return Iu.getOrInsertComputed(e, () => {
|
|
3807
|
+
const t = document.createTextNode(((ne(e) ? e?.value : e) ?? "")?.trim?.() ?? "");
|
|
3808
|
+
return W([e, "value"], (n) => {
|
|
3809
|
+
const r = "" + (n?.innerText ?? n?.textContent ?? n?.value ?? n ?? "");
|
|
3810
|
+
t.textContent = r?.trim?.() ?? "";
|
|
3811
|
+
}), t;
|
|
3812
|
+
});
|
|
3813
|
+
}, $u = /* @__PURE__ */ Symbol.for("lure.existsQueries");
|
|
3810
3814
|
globalThis[$u] ??= /* @__PURE__ */ new WeakMap();
|
|
3811
|
-
var
|
|
3815
|
+
var Yn = globalThis[$u], Lu = /* @__PURE__ */ Symbol.for("lure.alreadyUsed");
|
|
3812
3816
|
globalThis[Lu] ??= /* @__PURE__ */ new WeakMap();
|
|
3813
3817
|
var Kl = globalThis[Lu], wa = {
|
|
3814
3818
|
logAll(e) {
|
|
@@ -4175,7 +4179,7 @@ var Ey = class {
|
|
|
4175
4179
|
if (t == "addEventListener") return (o, a, l) => this._addEventListener(e, o, a, l);
|
|
4176
4180
|
if (t == "removeEventListener") return (o, a, l) => this._removeEventListener(e, o, a, l);
|
|
4177
4181
|
if (t == "getAttribute") return (o) => {
|
|
4178
|
-
const a = this._getArray(e), l = a.length > 0 ? a[this.index] : this._getSelected(e), c =
|
|
4182
|
+
const a = this._getArray(e), l = a.length > 0 ? a[this.index] : this._getSelected(e), c = Yn?.get?.(e)?.get?.(this.selector) ?? l;
|
|
4179
4183
|
return jt?.get?.(c)?.get?.(Se)?.has?.(o) ? jt?.get?.(c)?.get?.(Se)?.get?.(o)?.[0] : l?.getAttribute?.(o);
|
|
4180
4184
|
};
|
|
4181
4185
|
if (t == "setAttribute") return (o, a) => {
|
|
@@ -4183,11 +4187,11 @@ var Ey = class {
|
|
|
4183
4187
|
return typeof a == "object" && (a?.value != null || "value" in a) ? A(c, o, a, Se, null, !0) : c?.setAttribute?.(o, a);
|
|
4184
4188
|
};
|
|
4185
4189
|
if (t == "removeAttribute") return (o) => {
|
|
4186
|
-
const a = this._getArray(e), l = a.length > 0 ? a[this.index] : this._getSelected(e), c =
|
|
4190
|
+
const a = this._getArray(e), l = a.length > 0 ? a[this.index] : this._getSelected(e), c = Yn?.get?.(e)?.get?.(this.selector) ?? l;
|
|
4187
4191
|
return jt?.get?.(c)?.get?.(Se)?.has?.(o) ? jt?.get?.(c)?.get?.(Se)?.get?.(o)?.[1]?.() : l?.removeAttribute?.(o);
|
|
4188
4192
|
};
|
|
4189
4193
|
if (t == "hasAttribute") return (o) => {
|
|
4190
|
-
const a = this._getArray(e), l = a.length > 0 ? a[this.index] : this._getSelected(e), c =
|
|
4194
|
+
const a = this._getArray(e), l = a.length > 0 ? a[this.index] : this._getSelected(e), c = Yn?.get?.(e)?.get?.(this.selector) ?? l;
|
|
4191
4195
|
return jt?.get?.(c)?.get?.(Se)?.has?.(o) ? !0 : l?.hasAttribute?.(o);
|
|
4192
4196
|
};
|
|
4193
4197
|
if (t == "element") {
|
|
@@ -4246,12 +4250,12 @@ var Ey = class {
|
|
|
4246
4250
|
const i = e;
|
|
4247
4251
|
return Kl.getOrInsert(i, new Proxy(i, new ro("", n, r)));
|
|
4248
4252
|
}
|
|
4249
|
-
return t == null || typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "symbol" || typeof t > "u" ? null :
|
|
4250
|
-
}, Aw = (e = {}) => Object.assign(wa, e),
|
|
4253
|
+
return t == null || typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "symbol" || typeof t > "u" ? null : Yn?.get?.(t)?.has?.(e) ? Yn?.get?.(t)?.get?.(e) : Yn?.getOrInsert?.(t, /* @__PURE__ */ new Map())?.getOrInsertComputed?.(e, () => new Proxy(t, new ro(e, n, r)));
|
|
4254
|
+
}, Aw = (e = {}) => Object.assign(wa, e), ar = (e) => $(e) ? [] : Array.isArray(e) ? e.map((t, n) => [n, t]) : e instanceof Map ? Array.from(e.entries()) : e instanceof Set ? Array.from(e.values()) : Array.from(Object.entries(e)), Py = (e) => Array.isArray(e) && typeof e[0] == "function", Ay = (e, t) => {
|
|
4251
4255
|
if (!t) return e;
|
|
4252
4256
|
const n = new WeakRef(t), r = new WeakRef(e);
|
|
4253
4257
|
if (typeof t == "object" || typeof t == "function") {
|
|
4254
|
-
|
|
4258
|
+
ar(t).forEach(([s, o]) => {
|
|
4255
4259
|
Se(r?.deref?.(), s, o);
|
|
4256
4260
|
});
|
|
4257
4261
|
const i = W(t, (s, o) => {
|
|
@@ -4263,7 +4267,7 @@ var Ey = class {
|
|
|
4263
4267
|
if (!t) return e;
|
|
4264
4268
|
const n = new WeakRef(t), r = new WeakRef(e);
|
|
4265
4269
|
if (typeof t == "object" || typeof t == "function") {
|
|
4266
|
-
|
|
4270
|
+
ar(t).forEach(([s, o]) => {
|
|
4267
4271
|
Se(r?.deref?.(), "aria-" + (s?.toString?.() || s || ""), o);
|
|
4268
4272
|
});
|
|
4269
4273
|
const i = W(t, (s, o) => {
|
|
@@ -4276,7 +4280,7 @@ var Ey = class {
|
|
|
4276
4280
|
if (!t) return e;
|
|
4277
4281
|
const n = new WeakRef(t), r = new WeakRef(e);
|
|
4278
4282
|
if (typeof t == "object" || typeof t == "function") {
|
|
4279
|
-
|
|
4283
|
+
ar(t).forEach(([s, o]) => {
|
|
4280
4284
|
Us(r?.deref?.(), s, o);
|
|
4281
4285
|
});
|
|
4282
4286
|
const i = W(t, (s, o) => {
|
|
@@ -4294,7 +4298,7 @@ var Ey = class {
|
|
|
4294
4298
|
else if (Py(t) || typeof t == "function") dy(e, t);
|
|
4295
4299
|
else if (typeof t == "object") {
|
|
4296
4300
|
const n = new WeakRef(t), r = new WeakRef(e);
|
|
4297
|
-
|
|
4301
|
+
ar(t).forEach(([s, o]) => {
|
|
4298
4302
|
R(r?.deref?.(), s, o);
|
|
4299
4303
|
});
|
|
4300
4304
|
const i = W(t, (s, o) => {
|
|
@@ -4312,7 +4316,7 @@ var Ey = class {
|
|
|
4312
4316
|
const a = Ke("input", o?.target);
|
|
4313
4317
|
a?.value != null && _e(a?.value, t?.value) && (t.value = a?.value), a?.valueAsNumber != null && _e(a?.valueAsNumber, t?.valueAsNumber) && (t.valueAsNumber = a?.valueAsNumber), a?.checked != null && _e(a?.checked, t?.checked) && (t.checked = a?.checked);
|
|
4314
4318
|
};
|
|
4315
|
-
|
|
4319
|
+
ar(t).forEach(([o, a]) => {
|
|
4316
4320
|
kn(r?.deref?.(), o, a);
|
|
4317
4321
|
});
|
|
4318
4322
|
const s = W(t, (o, a) => {
|
|
@@ -4323,7 +4327,7 @@ var Ey = class {
|
|
|
4323
4327
|
}, Iy = (e, t) => {
|
|
4324
4328
|
if (!t) return e;
|
|
4325
4329
|
const n = new WeakRef(e);
|
|
4326
|
-
|
|
4330
|
+
ar(t).forEach(([i, s]) => {
|
|
4327
4331
|
const o = e;
|
|
4328
4332
|
typeof s > "u" || s == null ? o.classList.contains(s) && o.classList.remove(s) : o.classList.contains(s) || o.classList.add(s);
|
|
4329
4333
|
});
|
|
@@ -4633,7 +4637,7 @@ var Ey = class {
|
|
|
4633
4637
|
} catch {
|
|
4634
4638
|
return {};
|
|
4635
4639
|
}
|
|
4636
|
-
},
|
|
4640
|
+
}, vr = () => {
|
|
4637
4641
|
try {
|
|
4638
4642
|
sessionStorage.setItem(Hu, JSON.stringify(B?.entries));
|
|
4639
4643
|
} catch {
|
|
@@ -4671,7 +4675,7 @@ var Ey = class {
|
|
|
4671
4675
|
view: n,
|
|
4672
4676
|
timestamp: Date.now()
|
|
4673
4677
|
}), B.entries = r, t.timestamp)
|
|
4674
|
-
B.index = t.index || 0, B.view = t.view || n, B?.entries?.[B?.index] || (B.entries[B.index] = t,
|
|
4678
|
+
B.index = t.index || 0, B.view = t.view || n, B?.entries?.[B?.index] || (B.entries[B.index] = t, vr());
|
|
4675
4679
|
else {
|
|
4676
4680
|
const s = {
|
|
4677
4681
|
index: i,
|
|
@@ -4680,7 +4684,7 @@ var Ey = class {
|
|
|
4680
4684
|
view: n,
|
|
4681
4685
|
timestamp: Date.now()
|
|
4682
4686
|
};
|
|
4683
|
-
history?.replaceState?.(vi(s), "", location.hash), B?.entries && (B.entries[i] = s),
|
|
4687
|
+
history?.replaceState?.(vi(s), "", location.hash), B?.entries && (B.entries[i] = s), vr();
|
|
4684
4688
|
}
|
|
4685
4689
|
vn(Fn()?.action || "REPLACE", n), history.go = (s = 0) => {
|
|
4686
4690
|
const o = Fn();
|
|
@@ -4699,7 +4703,7 @@ var Ey = class {
|
|
|
4699
4703
|
view: a ? String(a) : l.view || "",
|
|
4700
4704
|
timestamp: Date.now()
|
|
4701
4705
|
}, d = By?.(vi(u, s), o, a);
|
|
4702
|
-
return B.entries = B?.entries?.slice?.(0, c), B.entries?.push?.(u),
|
|
4706
|
+
return B.entries = B?.entries?.slice?.(0, c), B.entries?.push?.(u), vr(), vn("PUSH", u.view), d;
|
|
4703
4707
|
}, history.replaceState = (s, o, a) => {
|
|
4704
4708
|
const l = Fn(), c = l?.index || 0, u = {
|
|
4705
4709
|
...l,
|
|
@@ -4709,7 +4713,7 @@ var Ey = class {
|
|
|
4709
4713
|
view: a ? String(a) : l?.view || "",
|
|
4710
4714
|
timestamp: Date.now()
|
|
4711
4715
|
}, d = jy?.(vi(u, s), o, a);
|
|
4712
|
-
return B?.entries && (B.entries[c] = u, B.entries[B.index].view = a ? String(a) : l?.view || ""),
|
|
4716
|
+
return B?.entries && (B.entries[c] = u, B.entries[B.index].view = a ? String(a) : l?.view || ""), vr(), vn("REPLACE", u.view), d;
|
|
4713
4717
|
}, T(window, "popstate", (s) => {
|
|
4714
4718
|
const o = s.state?.[jn], a = B.index ?? 0;
|
|
4715
4719
|
if (o) {
|
|
@@ -4724,7 +4728,7 @@ var Ey = class {
|
|
|
4724
4728
|
view: location.hash || "#",
|
|
4725
4729
|
timestamp: Date.now()
|
|
4726
4730
|
};
|
|
4727
|
-
history.replaceState(vi(l, s.state), "", location.hash), B.entries = B?.entries?.slice?.(0, l.index), B?.entries?.push?.(l),
|
|
4731
|
+
history.replaceState(vi(l, s.state), "", location.hash), B.entries = B?.entries?.slice?.(0, l.index), B?.entries?.push?.(l), vr(), vn("PUSH", l.view);
|
|
4728
4732
|
return;
|
|
4729
4733
|
}
|
|
4730
4734
|
}), T(window, "hashchange", (s) => {
|
|
@@ -4759,27 +4763,27 @@ var Ey = class {
|
|
|
4759
4763
|
}), n;
|
|
4760
4764
|
}, Bu = /* @__PURE__ */ (function(e) {
|
|
4761
4765
|
return e[e.CONTEXT_MENU = 100] = "CONTEXT_MENU", e[e.DROPDOWN = 90] = "DROPDOWN", e[e.MODAL = 80] = "MODAL", e[e.DIALOG = 70] = "DIALOG", e[e.SIDEBAR = 60] = "SIDEBAR", e[e.OVERLAY = 50] = "OVERLAY", e[e.PANEL = 40] = "PANEL", e[e.TOAST = 30] = "TOAST", e[e.TASK = 20] = "TASK", e[e.VIEW = 10] = "VIEW", e[e.DEFAULT = 0] = "DEFAULT", e;
|
|
4762
|
-
})({}), Mn = /* @__PURE__ */ new Map(), so = !1,
|
|
4766
|
+
})({}), Mn = /* @__PURE__ */ new Map(), so = !1, gr = !1, Zl = 0, Kn = {}, Ht = !1, Xe = (e) => {
|
|
4763
4767
|
Ht = e;
|
|
4764
|
-
}, Za = () => Ht, ii = () => `closeable-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`,
|
|
4768
|
+
}, Za = () => Ht, ii = () => `closeable-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`, lr = (e) => {
|
|
4765
4769
|
const t = e.id || ii(), n = Object.assign(e, { id: t });
|
|
4766
|
-
return n?.hashId == null && (n.hashId = t), Mn.set(t, n),
|
|
4770
|
+
return n?.hashId == null && (n.hashId = t), Mn.set(t, n), Kn.debug && console.log("[BackNav] Registered:", t, "priority:", e.priority), () => Xy(t);
|
|
4767
4771
|
}, Xy = (e) => {
|
|
4768
4772
|
const t = Mn.delete(e);
|
|
4769
|
-
return
|
|
4773
|
+
return Kn.debug && t && console.log("[BackNav] Unregistered:", e), t;
|
|
4770
4774
|
}, Yy = (e) => Array.from(Mn.values()).filter((t) => t.element && !t.element.deref() ? (Mn.delete(t.id), !1) : t.isActive(e)).sort((t, n) => n.priority - t.priority), ju = (e) => Yy(e)[0] || null, Ky = (e) => {
|
|
4771
4775
|
const t = ju(e);
|
|
4772
|
-
return t ? (
|
|
4776
|
+
return t ? (Kn.debug && console.log("[BackNav] Closing:", t.id, "priority:", t.priority), t?.close?.(e) != !1 ? t : null) : null;
|
|
4773
4777
|
}, Ow = (e) => {
|
|
4774
4778
|
let t = 0;
|
|
4775
4779
|
for (const n of Mn.values()) n.group === e && n.isActive() && (Mn?.delete?.(n.id), n.close() !== !1 && t++);
|
|
4776
4780
|
return t;
|
|
4777
4781
|
}, Iw = (e) => ju(e) != null, Jy = (e) => {
|
|
4778
|
-
if (
|
|
4782
|
+
if (gr) return !1;
|
|
4779
4783
|
if (Ht)
|
|
4780
4784
|
return Ht = !1, !1;
|
|
4781
4785
|
if (e?.state?.action) return !1;
|
|
4782
|
-
|
|
4786
|
+
gr = !0;
|
|
4783
4787
|
try {
|
|
4784
4788
|
Ht = !0;
|
|
4785
4789
|
let t;
|
|
@@ -4787,17 +4791,17 @@ var Ey = class {
|
|
|
4787
4791
|
const n = B.entries[B.index + 1];
|
|
4788
4792
|
n && (t = n.view);
|
|
4789
4793
|
}
|
|
4790
|
-
return Ky(t) ?? !0 ? (Ht = !1,
|
|
4794
|
+
return Ky(t) ?? !0 ? (Ht = !1, gr = !1, !1) : (e.preventDefault?.(), Ht = !0, Vy?.(), setTimeout(() => {
|
|
4791
4795
|
Ht = !1;
|
|
4792
|
-
}, 0),
|
|
4796
|
+
}, 0), gr = !1, !0);
|
|
4793
4797
|
} finally {
|
|
4794
|
-
return Ht = !1,
|
|
4798
|
+
return Ht = !1, gr = !1, !1;
|
|
4795
4799
|
}
|
|
4796
4800
|
}, Qy = (e = {}) => {
|
|
4797
4801
|
if (so)
|
|
4798
4802
|
return console.warn("[BackNav] Already initialized"), () => {
|
|
4799
4803
|
};
|
|
4800
|
-
if (
|
|
4804
|
+
if (Kn = { ...e }, so = !0, qy(location.hash), e.pushInitialState !== !1 && !e.skipPopstateHandler) {
|
|
4801
4805
|
Zl = 0, Xe(!0);
|
|
4802
4806
|
const n = {
|
|
4803
4807
|
...history.state || {},
|
|
@@ -4809,17 +4813,17 @@ var Ey = class {
|
|
|
4809
4813
|
let t;
|
|
4810
4814
|
return e.skipPopstateHandler || (t = T(window, "popstate", (r) => {
|
|
4811
4815
|
r?.state?.action || !Jy(r) && e.preventDefaultNavigation;
|
|
4812
|
-
})),
|
|
4813
|
-
t?.(), so = !1, Mn.clear(),
|
|
4816
|
+
})), Kn.debug && console.log("[BackNav] Initialized", e.skipPopstateHandler ? "(external handler)" : ""), () => {
|
|
4817
|
+
t?.(), so = !1, Mn.clear(), Kn.debug && console.log("[BackNav] Destroyed");
|
|
4814
4818
|
};
|
|
4815
|
-
}, Zy = (e, t, n) =>
|
|
4819
|
+
}, Zy = (e, t, n) => lr({
|
|
4816
4820
|
id: `ctx-menu-${e.id || ii()}`,
|
|
4817
4821
|
priority: 100,
|
|
4818
4822
|
element: new WeakRef(e),
|
|
4819
4823
|
group: "context-menu",
|
|
4820
4824
|
isActive: () => t.value === !0,
|
|
4821
4825
|
close: () => (t.value = !1, n?.(), !1)
|
|
4822
|
-
}), em = (e, t, n) =>
|
|
4826
|
+
}), em = (e, t, n) => lr({
|
|
4823
4827
|
id: `modal-${e.id || ii()}`,
|
|
4824
4828
|
priority: 80,
|
|
4825
4829
|
element: new WeakRef(e),
|
|
@@ -4832,7 +4836,7 @@ var Ey = class {
|
|
|
4832
4836
|
}) !== !1;
|
|
4833
4837
|
}),
|
|
4834
4838
|
close: () => (n?.(), e?.remove?.(), !1)
|
|
4835
|
-
}), Nw = (e, t, n) =>
|
|
4839
|
+
}), Nw = (e, t, n) => lr({
|
|
4836
4840
|
id: `sidebar-${e.id || ii()}`,
|
|
4837
4841
|
priority: 60,
|
|
4838
4842
|
element: new WeakRef(e),
|
|
@@ -4842,7 +4846,7 @@ var Ey = class {
|
|
|
4842
4846
|
return !!r && String(r) !== "false";
|
|
4843
4847
|
},
|
|
4844
4848
|
close: () => (t.value = !1, n?.(), !1)
|
|
4845
|
-
}), zw = (e, t, n, r = 50) =>
|
|
4849
|
+
}), zw = (e, t, n, r = 50) => lr({
|
|
4846
4850
|
id: `overlay-${e.id || ii()}`,
|
|
4847
4851
|
priority: r,
|
|
4848
4852
|
element: new WeakRef(e),
|
|
@@ -4881,7 +4885,7 @@ var Ey = class {
|
|
|
4881
4885
|
}, Uu = (e) => e?.matches?.('input[type="radio"]') ? e?.form ?? e?.parentNode ?? e : e, im = (e, t) => t || (e?.type == "radio" && e?.name ? e.name : e?.querySelector?.('input[type="radio"]:checked')?.name ?? e?.querySelector?.('input[type="radio"]')?.name ?? ""), tl = (e) => `input[type="radio"]${e ? `[name="${globalThis.CSS?.escape?.(e) ?? e}"]` : ""}`, ec = (e, t) => {
|
|
4882
4886
|
const n = Uu(e);
|
|
4883
4887
|
return e?.type == "radio" && (!t || e.name == t) && e.checked ? e : n?.querySelector?.(`${tl(t)}:checked`) ?? null;
|
|
4884
|
-
}, sm = (e, t, n) => [...Uu(e)?.querySelectorAll?.(tl(n)) ?? (e?.type == "radio" ? [e] : [])].find((r) => r?.value == t) ?? null,
|
|
4888
|
+
}, sm = (e, t, n) => [...Uu(e)?.querySelectorAll?.(tl(n)) ?? (e?.type == "radio" ? [e] : [])].find((r) => r?.value == t) ?? null, cr = (e, t) => {
|
|
4885
4889
|
const n = Array.isArray(e) ? e : [e];
|
|
4886
4890
|
return ({ source: r, commit: i }) => {
|
|
4887
4891
|
const s = r?.element ?? r?.self ?? r;
|
|
@@ -5021,7 +5025,7 @@ var Ey = class {
|
|
|
5021
5025
|
ref: i,
|
|
5022
5026
|
getter: ({ event: o }) => o?.type != "u2-hidden",
|
|
5023
5027
|
setter: (o, { source: a }) => cu(a, "data-hidden", o),
|
|
5024
|
-
trigger:
|
|
5028
|
+
trigger: cr(["u2-hidden", "u2-appear"], { passive: !0 })
|
|
5025
5029
|
}).bind();
|
|
5026
5030
|
return () => s.unbind();
|
|
5027
5031
|
}, Vu = (e, t, n, r) => {
|
|
@@ -5055,7 +5059,7 @@ var Ey = class {
|
|
|
5055
5059
|
setter: (c, { source: u }) => {
|
|
5056
5060
|
Math.abs((u?.[o] || 0) - Number(c || 0)) > 1e-3 && u?.scrollTo?.({ [a]: Number(c || 0) });
|
|
5057
5061
|
},
|
|
5058
|
-
trigger:
|
|
5062
|
+
trigger: cr("scroll", { passive: !0 })
|
|
5059
5063
|
}).bind();
|
|
5060
5064
|
return () => l.unbind();
|
|
5061
5065
|
}, hm = (e, t) => {
|
|
@@ -5068,7 +5072,7 @@ var Ey = class {
|
|
|
5068
5072
|
setter: (o) => {
|
|
5069
5073
|
e && e?.checked != o && cn(e, o);
|
|
5070
5074
|
},
|
|
5071
|
-
trigger:
|
|
5075
|
+
trigger: cr([
|
|
5072
5076
|
"click",
|
|
5073
5077
|
"input",
|
|
5074
5078
|
"change"
|
|
@@ -5090,7 +5094,7 @@ var Ey = class {
|
|
|
5090
5094
|
const u = sm(c, Be(l), i);
|
|
5091
5095
|
u && !u.checked && (cn(u, !0), u.dispatchEvent?.(new Event("change", { bubbles: !0 })));
|
|
5092
5096
|
},
|
|
5093
|
-
trigger:
|
|
5097
|
+
trigger: cr([
|
|
5094
5098
|
"click",
|
|
5095
5099
|
"input",
|
|
5096
5100
|
"change"
|
|
@@ -5109,7 +5113,7 @@ var Ey = class {
|
|
|
5109
5113
|
const a = Be(s);
|
|
5110
5114
|
o && _e(o?.value, a) && (o.value = a ?? "", o?.dispatchEvent?.(new Event("change", { bubbles: !0 })));
|
|
5111
5115
|
},
|
|
5112
|
-
trigger:
|
|
5116
|
+
trigger: cr([
|
|
5113
5117
|
"click",
|
|
5114
5118
|
"input",
|
|
5115
5119
|
"change"
|
|
@@ -5127,7 +5131,7 @@ var Ey = class {
|
|
|
5127
5131
|
setter: (s, { source: o }) => {
|
|
5128
5132
|
o && (o.type == "range" || o.type == "number") && typeof o?.valueAsNumber == "number" && _e(o?.valueAsNumber, s) && (o.valueAsNumber = Number(s), o?.dispatchEvent?.(new Event("change", { bubbles: !0 })));
|
|
5129
5133
|
},
|
|
5130
|
-
trigger:
|
|
5134
|
+
trigger: cr([
|
|
5131
5135
|
"click",
|
|
5132
5136
|
"input",
|
|
5133
5137
|
"change"
|
|
@@ -6794,7 +6798,7 @@ var xa = (e = [], t) => e.find((n) => t == n || typeof n.taskId == "string" && n
|
|
|
6794
6798
|
Xe(!0), history?.back?.();
|
|
6795
6799
|
const t = rn(e, !1)?.taskId || "";
|
|
6796
6800
|
return location?.hash?.trim?.()?.replace?.(/^#/, "")?.trim?.() != t?.trim?.()?.replace?.(/^#/, "")?.trim?.() && (Xe(!0), history?.replaceState?.("", "", _a(t))), e;
|
|
6797
|
-
}, rn = (e = [], t = !0) => e.findLast((n) => n.active) ?? (t ? e?.find?.((n) => n.taskId?.replace?.(/^#/, "") == location.hash?.replace?.(/^#/, "")) : null), Zm = (e, t) =>
|
|
6801
|
+
}, rn = (e = [], t = !0) => e.findLast((n) => n.active) ?? (t ? e?.find?.((n) => n.taskId?.replace?.(/^#/, "") == location.hash?.replace?.(/^#/, "")) : null), Zm = (e, t) => lr({
|
|
6798
6802
|
id: `task-${e.taskId?.replace?.(/^#/, "") ?? e.taskId}`,
|
|
6799
6803
|
priority: Bu.TASK,
|
|
6800
6804
|
group: "task",
|
|
@@ -6805,7 +6809,7 @@ var xa = (e = [], t) => e.find((n) => t == n || typeof n.taskId == "string" && n
|
|
|
6805
6809
|
if (Qy({
|
|
6806
6810
|
preventDefaultNavigation: !1,
|
|
6807
6811
|
pushInitialState: !1
|
|
6808
|
-
}), t &&
|
|
6812
|
+
}), t && lr({
|
|
6809
6813
|
id: "task-env-manager",
|
|
6810
6814
|
priority: Bu.VIEW,
|
|
6811
6815
|
isActive: () => !!rn(e, !0),
|
|
@@ -6964,7 +6968,7 @@ var xa = (e = [], t) => e.find((n) => t == n || typeof n.taskId == "string" && n
|
|
|
6964
6968
|
const l = wi.get(e), c = l?.get(s);
|
|
6965
6969
|
c && (c.handlers.delete(n), !(c.handlers.size > 0) && (e.removeEventListener(t, c.listener, c.options), l?.delete(s), l && l.size === 0 && wi.delete(e)));
|
|
6966
6970
|
};
|
|
6967
|
-
}, Si = /* @__PURE__ */ new WeakMap(),
|
|
6971
|
+
}, Si = /* @__PURE__ */ new WeakMap(), br = (e) => {
|
|
6968
6972
|
const t = e?.element ?? e;
|
|
6969
6973
|
return t instanceof HTMLElement ? t : null;
|
|
6970
6974
|
}, uo = (e, t, n) => e ? e === "handled" ? n : t : !1, tv = (e, t, n = {
|
|
@@ -6998,7 +7002,7 @@ var xa = (e = [], t) => e.find((n) => t == n || typeof n.taskId == "string" && n
|
|
|
6998
7002
|
}
|
|
6999
7003
|
}, b = p?.composedPath?.();
|
|
7000
7004
|
if (Array.isArray(b)) if (o === "closest") for (const m of b) {
|
|
7001
|
-
const x =
|
|
7005
|
+
const x = br(m);
|
|
7002
7006
|
if (!x) continue;
|
|
7003
7007
|
const k = u.get(x);
|
|
7004
7008
|
if (k) {
|
|
@@ -7007,11 +7011,11 @@ var xa = (e = [], t) => e.find((n) => t == n || typeof n.taskId == "string" && n
|
|
|
7007
7011
|
}
|
|
7008
7012
|
}
|
|
7009
7013
|
else for (const m of b) {
|
|
7010
|
-
const x =
|
|
7014
|
+
const x = br(m);
|
|
7011
7015
|
x && y(u.get(x));
|
|
7012
7016
|
}
|
|
7013
7017
|
else {
|
|
7014
|
-
let m =
|
|
7018
|
+
let m = br(p?.target);
|
|
7015
7019
|
for (; m; ) {
|
|
7016
7020
|
const x = u.get(m);
|
|
7017
7021
|
if (x && (y(x), o === "closest"))
|
|
@@ -7025,7 +7029,7 @@ var xa = (e = [], t) => e.find((n) => t == n || typeof n.taskId == "string" && n
|
|
|
7025
7029
|
}, l.set(a, c);
|
|
7026
7030
|
}
|
|
7027
7031
|
return (u, d) => {
|
|
7028
|
-
const p =
|
|
7032
|
+
const p = br(u);
|
|
7029
7033
|
if (!p) return () => {
|
|
7030
7034
|
};
|
|
7031
7035
|
c.targets.size === 0 && !c.unbindGlobal && (c.unbindGlobal = zr(i, t, c.dispatch, c.options));
|
|
@@ -7033,7 +7037,7 @@ var xa = (e = [], t) => e.find((n) => t == n || typeof n.taskId == "string" && n
|
|
|
7033
7037
|
return f || (f = /* @__PURE__ */ new Set(), c.targets.set(p, f)), f.add(d), () => {
|
|
7034
7038
|
const h = Si.get(i), y = h?.get(a);
|
|
7035
7039
|
if (!y) return;
|
|
7036
|
-
const b =
|
|
7040
|
+
const b = br(u);
|
|
7037
7041
|
if (!b) return;
|
|
7038
7042
|
const m = y.targets.get(b);
|
|
7039
7043
|
m && (m.delete(d), m.size === 0 && y.targets.delete(b), y.targets.size === 0 && (y.unbindGlobal?.(), y.unbindGlobal = null, h?.delete(a), h && h.size === 0 && Si.delete(i)));
|
|
@@ -7605,7 +7609,7 @@ var iS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
7605
7609
|
return i;
|
|
7606
7610
|
}
|
|
7607
7611
|
}
|
|
7608
|
-
},
|
|
7612
|
+
}, Cr = class {
|
|
7609
7613
|
static translate2D(e) {
|
|
7610
7614
|
return g([e.x, e.y], () => `translate(${e.x.value}px, ${e.y.value}px)`);
|
|
7611
7615
|
}
|
|
@@ -7649,7 +7653,7 @@ var iS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
7649
7653
|
}
|
|
7650
7654
|
}, tt = class {
|
|
7651
7655
|
static bindTransform(e, t, n = "instant", r) {
|
|
7652
|
-
const i =
|
|
7656
|
+
const i = Cr.translate2D(t);
|
|
7653
7657
|
return (n === "instant" ? A : n === "animate" ? Ge : n === "transition" ? wt : Wt)(e, "transform", i, r) ?? (() => {
|
|
7654
7658
|
});
|
|
7655
7659
|
}
|
|
@@ -7721,7 +7725,7 @@ var iS = (e, t, n, r = typeof document < "u" ? document?.documentElement : null)
|
|
|
7721
7725
|
return (n === "instant" ? A : n === "animate" ? Ge : n === "transition" ? wt : Wt)(e, "border-radius", t instanceof Y ? g([t.x, t.y], () => `${t.x.value}px ${t.y.value}px`) : g([t], () => `${t.value}px`), r) ?? (() => {
|
|
7722
7726
|
});
|
|
7723
7727
|
}
|
|
7724
|
-
},
|
|
7728
|
+
}, rr = class {
|
|
7725
7729
|
static add(e, t, n = "px") {
|
|
7726
7730
|
return g([e, t], () => `calc(${e.value}${n} + ${t.value}${n})`);
|
|
7727
7731
|
}
|
|
@@ -8758,7 +8762,7 @@ var fv = () => "--" + Math.random().toString(36).substring(2, 15).replace(/[0-9]
|
|
|
8758
8762
|
return tt.bindWithUnit({}, "", this.value, this.unit);
|
|
8759
8763
|
}
|
|
8760
8764
|
toUnit(e) {
|
|
8761
|
-
return
|
|
8765
|
+
return rr.multiply(this.value, w(1));
|
|
8762
8766
|
}
|
|
8763
8767
|
bindTo(e, t) {
|
|
8764
8768
|
return tt.bindWithUnit(e, t, this.value, this.unit);
|
|
@@ -8773,21 +8777,21 @@ var fv = () => "--" + Math.random().toString(36).substring(2, 15).replace(/[0-9]
|
|
|
8773
8777
|
x: typeof e == "number" ? w(e) : e,
|
|
8774
8778
|
y: typeof t == "number" ? w(t) : t
|
|
8775
8779
|
};
|
|
8776
|
-
return this.transforms.push(
|
|
8780
|
+
return this.transforms.push(Cr.translate2D(n)), this;
|
|
8777
8781
|
}
|
|
8778
8782
|
scale(e, t) {
|
|
8779
8783
|
const n = typeof e == "number" ? w(e) : e, r = t !== void 0 ? typeof t == "number" ? w(t) : t : n;
|
|
8780
|
-
return this.transforms.push(
|
|
8784
|
+
return this.transforms.push(Cr.scale2D({
|
|
8781
8785
|
x: n,
|
|
8782
8786
|
y: r
|
|
8783
8787
|
})), this;
|
|
8784
8788
|
}
|
|
8785
8789
|
rotate(e) {
|
|
8786
8790
|
const t = typeof e == "number" ? w(e) : e;
|
|
8787
|
-
return this.transforms.push(
|
|
8791
|
+
return this.transforms.push(Cr.rotate(t)), this;
|
|
8788
8792
|
}
|
|
8789
8793
|
get value() {
|
|
8790
|
-
return
|
|
8794
|
+
return Cr.combine(this.transforms);
|
|
8791
8795
|
}
|
|
8792
8796
|
bindTo(e) {
|
|
8793
8797
|
return tt.bindTransform(e, {
|
|
@@ -8853,8 +8857,8 @@ var fv = () => "--" + Math.random().toString(36).substring(2, 15).replace(/[0-9]
|
|
|
8853
8857
|
}
|
|
8854
8858
|
static center() {
|
|
8855
8859
|
return {
|
|
8856
|
-
x:
|
|
8857
|
-
y:
|
|
8860
|
+
x: rr.divide(this.width, w(2)),
|
|
8861
|
+
y: rr.divide(this.height, w(2))
|
|
8858
8862
|
};
|
|
8859
8863
|
}
|
|
8860
8864
|
};
|
|
@@ -8879,8 +8883,8 @@ var ff = class {
|
|
|
8879
8883
|
}
|
|
8880
8884
|
center() {
|
|
8881
8885
|
return {
|
|
8882
|
-
x:
|
|
8883
|
-
y:
|
|
8886
|
+
x: rr.divide(this.size.width, w(2)),
|
|
8887
|
+
y: rr.divide(this.size.height, w(2))
|
|
8884
8888
|
};
|
|
8885
8889
|
}
|
|
8886
8890
|
destroy() {
|
|
@@ -8903,7 +8907,7 @@ var ff = class {
|
|
|
8903
8907
|
}
|
|
8904
8908
|
progress(e = "y") {
|
|
8905
8909
|
const t = e === "x" ? this.element.scrollWidth - this.element.clientWidth : this.element.scrollHeight - this.element.clientHeight, n = e === "x" ? this.scrollLeft : this.scrollTop;
|
|
8906
|
-
return
|
|
8910
|
+
return rr.divide(n, w(Math.max(t, 1)));
|
|
8907
8911
|
}
|
|
8908
8912
|
}, df = (e) => e === "underlying" ? -1 : 1;
|
|
8909
8913
|
function pv(e, t) {
|
|
@@ -9391,7 +9395,7 @@ var Lr = (e) => e?.parentElement ? e?.parentElement instanceof DocumentFragment
|
|
|
9391
9395
|
observeMutations: !0
|
|
9392
9396
|
}), A(this.shadowContainer, "left", D.asPx(this.anchorBox?.[0]), R), A(this.shadowContainer, "top", D.asPx(this.anchorBox?.[1]), R), A(this.shadowContainer, "width", D.asPx(this.anchorBox?.[2]), R), A(this.shadowContainer, "height", D.asPx(this.anchorBox?.[3]), R)), this.options.inset !== 0)) {
|
|
9393
9397
|
const t = D.asPx(this.options.inset);
|
|
9394
|
-
|
|
9398
|
+
Er(this.shadowContainer, "left", `calc(var(--left) + ${t})`), Er(this.shadowContainer, "top", `calc(var(--top) + ${t})`), Er(this.shadowContainer, "width", `calc(var(--width) - ${2 * t})`), Er(this.shadowContainer, "height", `calc(var(--height) - ${2 * t})`);
|
|
9395
9399
|
}
|
|
9396
9400
|
}
|
|
9397
9401
|
setupGeometryCloning() {
|
|
@@ -9847,10 +9851,10 @@ var xv = (e, t) => {
|
|
|
9847
9851
|
} catch (n) {
|
|
9848
9852
|
console.warn("[Clipboard] Request broadcast failed:", n);
|
|
9849
9853
|
}
|
|
9850
|
-
}, ho = null,
|
|
9854
|
+
}, ho = null, wr = 0, po = null, yc = Promise.resolve(), Nv = () => {
|
|
9851
9855
|
if (typeof BroadcastChannel > "u") return () => {
|
|
9852
9856
|
};
|
|
9853
|
-
if (
|
|
9857
|
+
if (wr === 0) {
|
|
9854
9858
|
const e = new BroadcastChannel(_f), t = (n) => {
|
|
9855
9859
|
if (n.data?.type !== "copy") return;
|
|
9856
9860
|
const r = n.data.options || {}, i = n.data.data;
|
|
@@ -9868,10 +9872,10 @@ var xv = (e, t) => {
|
|
|
9868
9872
|
};
|
|
9869
9873
|
e.addEventListener("message", t), ho = e, po = t;
|
|
9870
9874
|
}
|
|
9871
|
-
return
|
|
9872
|
-
if (
|
|
9875
|
+
return wr++, () => {
|
|
9876
|
+
if (wr--, wr <= 0) {
|
|
9873
9877
|
const e = ho, t = po;
|
|
9874
|
-
e && t && (e.removeEventListener("message", t), e.close()), ho = null, po = null,
|
|
9878
|
+
e && t && (e.removeEventListener("message", t), e.close()), ho = null, po = null, wr = 0;
|
|
9875
9879
|
}
|
|
9876
9880
|
};
|
|
9877
9881
|
}, QS = () => Nv(), ZS = () => typeof navigator < "u" && !!navigator.clipboard, ex = () => typeof navigator < "u" && typeof navigator.clipboard?.writeText == "function", zv = () => {
|
|
@@ -10070,7 +10074,7 @@ var Pf = /^https:\/\/www\.google\.com\/s2\/favicons\?[^#]*domain=([^&]+)/i, ai =
|
|
|
10070
10074
|
}, Fv = (e) => {
|
|
10071
10075
|
const t = String(e || "").trim();
|
|
10072
10076
|
return t ? t.startsWith("S") ? `https://${t.slice(1)}` : t.startsWith("H") ? `http://${t.slice(1)}` : t.startsWith("R") ? t.slice(1) : t : "";
|
|
10073
|
-
},
|
|
10077
|
+
}, ir = (e) => {
|
|
10074
10078
|
const t = String(e || "").trim().toLowerCase().replace(/\.$/, "");
|
|
10075
10079
|
return !t || ai(t) || typeof location < "u" && location.hostname && t === location.hostname.toLowerCase() ? "" : `g:${t}`;
|
|
10076
10080
|
}, Wv = (e) => {
|
|
@@ -10085,7 +10089,7 @@ var Pf = /^https:\/\/www\.google\.com\/s2\/favicons\?[^#]*domain=([^&]+)/i, ai =
|
|
|
10085
10089
|
if (!Lv(e, t)) return "";
|
|
10086
10090
|
try {
|
|
10087
10091
|
const n = t || (typeof location < "u" ? location.href : "https://local.invalid/"), r = new URL(String(e || "").trim(), n);
|
|
10088
|
-
return
|
|
10092
|
+
return ir(r.hostname);
|
|
10089
10093
|
} catch {
|
|
10090
10094
|
return "";
|
|
10091
10095
|
}
|
|
@@ -10094,12 +10098,12 @@ var Pf = /^https:\/\/www\.google\.com\/s2\/favicons\?[^#]*domain=([^&]+)/i, ai =
|
|
|
10094
10098
|
if (/^(data:|blob:)/i.test(r)) return "";
|
|
10095
10099
|
if (r.startsWith("g:")) {
|
|
10096
10100
|
const s = r.slice(2).trim().toLowerCase();
|
|
10097
|
-
return
|
|
10101
|
+
return ir(s);
|
|
10098
10102
|
}
|
|
10099
10103
|
const i = r.match(Pf);
|
|
10100
10104
|
if (i) try {
|
|
10101
10105
|
const s = decodeURIComponent(i[1]).toLowerCase();
|
|
10102
|
-
return
|
|
10106
|
+
return ir(s);
|
|
10103
10107
|
} catch {
|
|
10104
10108
|
return "";
|
|
10105
10109
|
}
|
|
@@ -10115,17 +10119,17 @@ var Pf = /^https:\/\/www\.google\.com\/s2\/favicons\?[^#]*domain=([^&]+)/i, ai =
|
|
|
10115
10119
|
if (!t || /^(data:|blob:)/i.test(t)) return "";
|
|
10116
10120
|
if (t.startsWith("g:")) {
|
|
10117
10121
|
const n = t.slice(2);
|
|
10118
|
-
return
|
|
10122
|
+
return ir(n) ? Wv(n) : "";
|
|
10119
10123
|
}
|
|
10120
10124
|
return t;
|
|
10121
10125
|
}, Hv = (e, t, n) => {
|
|
10122
10126
|
const r = String(e || "").trim();
|
|
10123
10127
|
if (/^(data:|blob:)/i.test(r)) return "";
|
|
10124
|
-
if (r.startsWith("g:")) return
|
|
10128
|
+
if (r.startsWith("g:")) return ir(r.slice(2));
|
|
10125
10129
|
const i = r.match(Pf);
|
|
10126
10130
|
if (i) try {
|
|
10127
10131
|
const s = decodeURIComponent(i[1]).toLowerCase();
|
|
10128
|
-
return
|
|
10132
|
+
return ir(s);
|
|
10129
10133
|
} catch {
|
|
10130
10134
|
return "";
|
|
10131
10135
|
}
|
|
@@ -10385,7 +10389,7 @@ function hx(e) {
|
|
|
10385
10389
|
var Uv = JSON, Q = {};
|
|
10386
10390
|
Q.JSOX = Q;
|
|
10387
10391
|
Q.version = "1.2.125";
|
|
10388
|
-
var Vv = typeof BigInt == "function", mo = -1, ve = 0, vo = 1, go = 2, bo = 3, gt = 4, wo = 5, $n = 6, So = 7, xo = 8, _o = 9, ko = 10, Ci = 12,
|
|
10392
|
+
var Vv = typeof BigInt == "function", mo = -1, ve = 0, vo = 1, go = 2, bo = 3, gt = 4, wo = 5, $n = 6, So = 7, xo = 8, _o = 9, ko = 10, Ci = 12, Sr = 13, qv = [
|
|
10389
10393
|
"ab",
|
|
10390
10394
|
"u8",
|
|
10391
10395
|
"cu8",
|
|
@@ -10398,7 +10402,7 @@ var Vv = typeof BigInt == "function", mo = -1, ve = 0, vo = 1, go = 2, bo = 3, g
|
|
|
10398
10402
|
"s64",
|
|
10399
10403
|
"f32",
|
|
10400
10404
|
"f64"
|
|
10401
|
-
], Pi = null,
|
|
10405
|
+
], Pi = null, xr = null, Gv = [
|
|
10402
10406
|
ArrayBuffer,
|
|
10403
10407
|
Uint8Array,
|
|
10404
10408
|
Uint8ClampedArray,
|
|
@@ -10627,7 +10631,7 @@ Q.begin = function(e, t) {
|
|
|
10627
10631
|
return;
|
|
10628
10632
|
case $n:
|
|
10629
10633
|
return n.className && (E = o.get(n.className), E || (E = Rt.get(n.className)), n.className = null, E && E.cb) ? n.contains = E.cb.call(n.contains) : n.contains;
|
|
10630
|
-
case
|
|
10634
|
+
case Sr:
|
|
10631
10635
|
if (v >= 0) {
|
|
10632
10636
|
let P;
|
|
10633
10637
|
if (n.contains.length ? P = _c(n.contains[0]) : P = _c(n.string), v === 0)
|
|
@@ -10688,7 +10692,7 @@ Q.begin = function(e, t) {
|
|
|
10688
10692
|
n.value_type === Ci ? (f.push(void 0), delete f[f.length - 1]) : f.push(Pt()), se();
|
|
10689
10693
|
}
|
|
10690
10694
|
function fe() {
|
|
10691
|
-
if (v === -3 && n.value_type ===
|
|
10695
|
+
if (v === -3 && n.value_type === Sr) {
|
|
10692
10696
|
se(), v = -1;
|
|
10693
10697
|
return;
|
|
10694
10698
|
}
|
|
@@ -11034,7 +11038,7 @@ Q.begin = function(e, t) {
|
|
|
11034
11038
|
return I("Fault while parsing; while getting field name unexpected", _), l = !1, !1;
|
|
11035
11039
|
{
|
|
11036
11040
|
let E = wc();
|
|
11037
|
-
n.value_type =
|
|
11041
|
+
n.value_type = Sr;
|
|
11038
11042
|
let P = [];
|
|
11039
11043
|
if (S == xe) f = P;
|
|
11040
11044
|
else if (S == Lt)
|
|
@@ -11131,7 +11135,7 @@ Q.begin = function(e, t) {
|
|
|
11131
11135
|
let E = h.pop();
|
|
11132
11136
|
n.name = E.name, n.className = E.className, S = E.context, f = E.elements, m = E.current_proto, x = E.current_class, k = E.current_class_field, v = E.arrayType, n.value_type = E.valueType, Mi(E);
|
|
11133
11137
|
}
|
|
11134
|
-
n.value_type =
|
|
11138
|
+
n.value_type = Sr, S == xe && (K = !0);
|
|
11135
11139
|
} else
|
|
11136
11140
|
I(`bad context ${S}; fault while parsing`, _), l = !1;
|
|
11137
11141
|
u = !1;
|
|
@@ -11205,7 +11209,7 @@ Q.begin = function(e, t) {
|
|
|
11205
11209
|
else if (n.value_type == ve) a != F ? V(_) : (a = he, n.string += s, n.value_type = gt);
|
|
11206
11210
|
else if (S == ot) I("Multiple values found in field name", _);
|
|
11207
11211
|
else if (S == ft)
|
|
11208
|
-
n.value_type != gt && ((n.value_type == $n || n.value_type ==
|
|
11212
|
+
n.value_type != gt && ((n.value_type == $n || n.value_type == Sr) && I("String unexpected", _), V(_)), a == Qe ? ml() ? n.string = s : I("String unexpected", _) : a == he ? n.string += s : I("String unexpected", _);
|
|
11209
11213
|
else if (S == Lt)
|
|
11210
11214
|
if (a == Qe) {
|
|
11211
11215
|
n.className || (n.className = n.string, n.string = ""), n.string += s;
|
|
@@ -11558,7 +11562,7 @@ Q.stringifier = function() {
|
|
|
11558
11562
|
cb: function() {
|
|
11559
11563
|
return "[" + u(bt(this.buffer)) + "]";
|
|
11560
11564
|
}
|
|
11561
|
-
}), ue.set(RegExp.prototype,
|
|
11565
|
+
}), ue.set(RegExp.prototype, xr = {
|
|
11562
11566
|
external: !0,
|
|
11563
11567
|
name: "regex",
|
|
11564
11568
|
cb: function(y, b) {
|
|
@@ -11569,7 +11573,7 @@ Q.stringifier = function() {
|
|
|
11569
11573
|
cb: function(y, b) {
|
|
11570
11574
|
return new RegExp(this);
|
|
11571
11575
|
}
|
|
11572
|
-
}), ue.set(Map.prototype,
|
|
11576
|
+
}), ue.set(Map.prototype, xr = {
|
|
11573
11577
|
external: !0,
|
|
11574
11578
|
name: "map",
|
|
11575
11579
|
cb: null
|
|
@@ -11698,10 +11702,10 @@ Q.stringifier = function() {
|
|
|
11698
11702
|
return xn.length = 0, re;
|
|
11699
11703
|
function ie(ye, Me) {
|
|
11700
11704
|
var Ee = x;
|
|
11701
|
-
const Ce = Pi.cb, ut =
|
|
11702
|
-
Pi.cb = Ue,
|
|
11705
|
+
const Ce = Pi.cb, ut = xr.cb;
|
|
11706
|
+
Pi.cb = Ue, xr.cb = Ct;
|
|
11703
11707
|
const Et = pn(ye, Me);
|
|
11704
|
-
return Pi.cb = Ce,
|
|
11708
|
+
return Pi.cb = Ce, xr.cb = ut, Et;
|
|
11705
11709
|
function Ue() {
|
|
11706
11710
|
let Re, $e = [], oe = r.length;
|
|
11707
11711
|
for (let ee = 0; ee < this.length; ee += 1)
|
|
@@ -11948,7 +11952,7 @@ var Qv = (e) => e ? e instanceof Map ? Array.from(e.entries()) : Array.isArray(e
|
|
|
11948
11952
|
return e;
|
|
11949
11953
|
}
|
|
11950
11954
|
return e;
|
|
11951
|
-
},
|
|
11955
|
+
}, _r = (e, t = "id") => {
|
|
11952
11956
|
if (e && (e instanceof Set || Array.isArray(e))) {
|
|
11953
11957
|
const n = Array.from(e?.values?.() || []).map((r) => [r?.[t], r]).filter((r) => r?.[0] != null);
|
|
11954
11958
|
return sn(e, new Map(n));
|
|
@@ -11962,13 +11966,13 @@ var Qv = (e) => e ? e instanceof Map ? Array.from(e.entries()) : Array.isArray(e
|
|
|
11962
11966
|
typeof n == "function" && n(t);
|
|
11963
11967
|
}, yx = (e, t, n, r = (o) => Fi(o), i = "id", s = 6e3) => {
|
|
11964
11968
|
let o = null;
|
|
11965
|
-
o =
|
|
11969
|
+
o = _r(t?.() || {}, i);
|
|
11966
11970
|
let a = !Oi();
|
|
11967
11971
|
if (Oi()) chrome.storage.local.get([e], (c) => {
|
|
11968
11972
|
try {
|
|
11969
11973
|
if (c[e]) {
|
|
11970
11974
|
const u = n(Q.parse(c?.[e] || "{}"));
|
|
11971
|
-
sn(o, u),
|
|
11975
|
+
sn(o, u), _r(o, i);
|
|
11972
11976
|
}
|
|
11973
11977
|
} finally {
|
|
11974
11978
|
a = !0;
|
|
@@ -11977,13 +11981,13 @@ var Qv = (e) => e ? e instanceof Map ? Array.from(e.entries()) : Array.isArray(e
|
|
|
11977
11981
|
else if (typeof localStorage < "u") {
|
|
11978
11982
|
if (localStorage.getItem(e)) {
|
|
11979
11983
|
const c = n(Q.parse(localStorage.getItem(e) || "{}"));
|
|
11980
|
-
sn(o, c),
|
|
11984
|
+
sn(o, c), _r(o, i);
|
|
11981
11985
|
} else localStorage.setItem(e, Q.stringify(r(o)));
|
|
11982
11986
|
a = !0;
|
|
11983
11987
|
}
|
|
11984
11988
|
const l = (c) => {
|
|
11985
11989
|
if (!a) return;
|
|
11986
|
-
const u = Q.stringify(r(
|
|
11990
|
+
const u = Q.stringify(r(_r(o, i)));
|
|
11987
11991
|
Oi() ? chrome.storage.local.set({ [e]: u }) : typeof localStorage < "u" && localStorage.setItem(e, u);
|
|
11988
11992
|
};
|
|
11989
11993
|
if (Of().set(e, l), ps(l, s), typeof window < "u" && typeof document < "u") {
|
|
@@ -11994,7 +11998,7 @@ var Qv = (e) => e ? e instanceof Map ? Array.from(e.entries()) : Array.isArray(e
|
|
|
11994
11998
|
T(window, "beforeunload", (u) => l(u)),
|
|
11995
11999
|
T(window, "pagehide", (u) => l(u)),
|
|
11996
12000
|
T(window, "storage", (u) => {
|
|
11997
|
-
u.storageArea == localStorage && u.key == e && sn(o, n(Q.parse(u?.newValue || Q.stringify(r(
|
|
12001
|
+
u.storageArea == localStorage && u.key == e && sn(o, n(Q.parse(u?.newValue || Q.stringify(r(_r(o, i))))));
|
|
11998
12002
|
})
|
|
11999
12003
|
];
|
|
12000
12004
|
J(o, Symbol.dispose, () => c.forEach((u) => u?.()));
|
|
@@ -13204,7 +13208,7 @@ var Cc = (e, t, n, r = 0, i = {}, s, o) => {
|
|
|
13204
13208
|
const n = Nf(e, t);
|
|
13205
13209
|
return new uf(), g([n], () => `translateX(${n.value}px)`);
|
|
13206
13210
|
}, Tx = (e) => {
|
|
13207
|
-
const [t, n, r] =
|
|
13211
|
+
const [t, n, r] = ur(e);
|
|
13208
13212
|
if (e?.type == "number" || e?.type == "range") return (t - n) / (r - n);
|
|
13209
13213
|
if (e?.type == "checkbox") return t ? 1 : 0;
|
|
13210
13214
|
if (e?.type == "radio") {
|
|
@@ -13213,7 +13217,7 @@ var Cc = (e, t, n, r = 0, i = {}, s, o) => {
|
|
|
13213
13217
|
}
|
|
13214
13218
|
return t;
|
|
13215
13219
|
}, zf = (e, t, n) => {
|
|
13216
|
-
const r = (t?.[0]?.value || 0) / (n?.offsetWidth || 1), [i, s, o] =
|
|
13220
|
+
const r = (t?.[0]?.value || 0) / (n?.offsetWidth || 1), [i, s, o] = ur(e);
|
|
13217
13221
|
return e?.type == "checkbox" ? Math.sign(t?.[0]?.value) : e?.type == "range" || e?.type == "number" ? r * (o - s) : e?.type == "radio" ? Math.round(r * o) : r;
|
|
13218
13222
|
}, $f = (e, t) => {
|
|
13219
13223
|
if (e?.type == "number" || e?.type == "range") return t;
|
|
@@ -13223,13 +13227,13 @@ var Cc = (e, t, n, r = 0, i = {}, s, o) => {
|
|
|
13223
13227
|
return Math.max(Math.min(Math.round(t), n), 0);
|
|
13224
13228
|
}
|
|
13225
13229
|
}, hg = (e, t, n) => {
|
|
13226
|
-
const r = t / (n?.offsetWidth || 1), [i, s, o] =
|
|
13230
|
+
const r = t / (n?.offsetWidth || 1), [i, s, o] = ur(e), a = r * (o - s) + s;
|
|
13227
13231
|
return $f(e, a);
|
|
13228
13232
|
}, pg = (e, t) => {
|
|
13229
|
-
const n =
|
|
13233
|
+
const n = ur(e);
|
|
13230
13234
|
return $f(e, n?.[0] + t);
|
|
13231
13235
|
}, Lf = (e, t) => {
|
|
13232
|
-
const [n, r, i] =
|
|
13236
|
+
const [n, r, i] = ur(e);
|
|
13233
13237
|
if (e?.type == "number" || e?.type == "range")
|
|
13234
13238
|
t != e.valueAsNumber && (e.valueAsNumber = t, e?.dispatchEvent?.(new Event("change", { bubbles: !0 })));
|
|
13235
13239
|
else if (e?.type == "checkbox") cn(e, t > 0.5);
|
|
@@ -13244,7 +13248,7 @@ var Cc = (e, t, n, r = 0, i = {}, s, o) => {
|
|
|
13244
13248
|
} catch {
|
|
13245
13249
|
}
|
|
13246
13250
|
return [0, 0];
|
|
13247
|
-
},
|
|
13251
|
+
}, ur = (e) => {
|
|
13248
13252
|
if ((e?.type == "number" || e?.type == "range") && e?.valueAsNumber != null) return [
|
|
13249
13253
|
e?.valueAsNumber || 0,
|
|
13250
13254
|
parseFloat(e?.min || 0),
|
|
@@ -13268,7 +13272,7 @@ var Cc = (e, t, n, r = 0, i = {}, s, o) => {
|
|
|
13268
13272
|
0,
|
|
13269
13273
|
0
|
|
13270
13274
|
];
|
|
13271
|
-
}, gg = (e, t, n) => (e - t) / (n - t), Pc = (e) => gg(...
|
|
13275
|
+
}, gg = (e, t, n) => (e - t) / (n - t), Pc = (e) => gg(...ur(e)), Df = (e) => {
|
|
13272
13276
|
const t = w(Pc(e));
|
|
13273
13277
|
return _u?.(e, (r) => {
|
|
13274
13278
|
t.value = Pc(r?.target ?? e);
|
|
@@ -13616,7 +13620,7 @@ function Ac(e) {
|
|
|
13616
13620
|
function Ii(e, t, n) {
|
|
13617
13621
|
return Math.min(n, Math.max(t, e));
|
|
13618
13622
|
}
|
|
13619
|
-
var
|
|
13623
|
+
var Jn = (e) => !e || e == null ? 0 : (wg?.(e) || 0) > 0.1, cl = (e, t = 1e3, ...n) => {
|
|
13620
13624
|
Fe(async () => {
|
|
13621
13625
|
if (!(!e || typeof e != "function"))
|
|
13622
13626
|
for (; ; )
|
|
@@ -13632,7 +13636,7 @@ var Kn = (e) => !e || e == null ? 0 : (wg?.(e) || 0) > 0.1, cl = (e, t = 1e3, ..
|
|
|
13632
13636
|
const r = n.querySelector(".app-shell__nav, .app-shell__toolbar");
|
|
13633
13637
|
if (!r) continue;
|
|
13634
13638
|
const i = getComputedStyle(r).backgroundColor;
|
|
13635
|
-
if (
|
|
13639
|
+
if (Jn(i)) return i;
|
|
13636
13640
|
}
|
|
13637
13641
|
} catch {
|
|
13638
13642
|
}
|
|
@@ -13654,7 +13658,7 @@ var Kn = (e) => !e || e == null ? 0 : (wg?.(e) || 0) > 0.1, cl = (e, t = 1e3, ..
|
|
|
13654
13658
|
const t = e.getBoundingClientRect();
|
|
13655
13659
|
if (t.width < 1 || t.height < 1) return null;
|
|
13656
13660
|
const n = Math.floor(t.left + Math.min(40, t.width * 0.2)), r = Math.floor(t.top + t.height * 0.5), i = cs(n, r);
|
|
13657
|
-
return
|
|
13661
|
+
return Jn(i) ? i : null;
|
|
13658
13662
|
} finally {
|
|
13659
13663
|
e.remove();
|
|
13660
13664
|
}
|
|
@@ -13670,7 +13674,7 @@ var Kn = (e) => !e || e == null ? 0 : (wg?.(e) || 0) > 0.1, cl = (e, t = 1e3, ..
|
|
|
13670
13674
|
zIndex: parseInt(s?.zIndex || "0", 10) || 0,
|
|
13671
13675
|
color: s?.backgroundColor || "transparent"
|
|
13672
13676
|
};
|
|
13673
|
-
}).sort((i, s) => Math.sign(s.zIndex - i.zIndex)).filter(({ color: i }) =>
|
|
13677
|
+
}).sort((i, s) => Math.sign(s.zIndex - i.zIndex)).filter(({ color: i }) => Jn(i));
|
|
13674
13678
|
return r?.[0]?.element instanceof HTMLElement && r?.[0]?.color || "transparent";
|
|
13675
13679
|
}, Ma = (e) => {
|
|
13676
13680
|
const t = e?.getBoundingClientRect();
|
|
@@ -13686,7 +13690,7 @@ var Kn = (e) => !e || e == null ? 0 : (wg?.(e) || 0) > 0.1, cl = (e, t = 1e3, ..
|
|
|
13686
13690
|
if (o || a) {
|
|
13687
13691
|
if (o) return;
|
|
13688
13692
|
if (a?.shadowRoot && e == document.documentElement) {
|
|
13689
|
-
const l = a.shadowRoot.querySelector(".title-handler"), c = l && getComputedStyle(l).getPropertyValue("--ui-win-titlebar-bg").trim() || getComputedStyle(a).getPropertyValue("--ui-win-titlebar-bg").trim() || getComputedStyle(document.documentElement).getPropertyValue("--color-surface-container").trim(), u = l ? getComputedStyle(l).backgroundColor : "", d = (u &&
|
|
13693
|
+
const l = a.shadowRoot.querySelector(".title-handler"), c = l && getComputedStyle(l).getPropertyValue("--ui-win-titlebar-bg").trim() || getComputedStyle(a).getPropertyValue("--ui-win-titlebar-bg").trim() || getComputedStyle(document.documentElement).getPropertyValue("--color-surface-container").trim(), u = l ? getComputedStyle(l).backgroundColor : "", d = (u && Jn(u) ? u : null) || (c && Jn(c) ? c : null);
|
|
13690
13694
|
if (d) {
|
|
13691
13695
|
const p = String(d).toLowerCase();
|
|
13692
13696
|
!/#007acc\b/.test(p) && !/rgba?\(\s*0\s*,\s*122\s*,\s*204/.test(p) && t?.setAttribute?.("content", d);
|
|
@@ -13700,7 +13704,7 @@ var Kn = (e) => !e || e == null ? 0 : (wg?.(e) || 0) > 0.1, cl = (e, t = 1e3, ..
|
|
|
13700
13704
|
const n = Sg(), r = n ? null : xg(), i = !n && !r ? (() => {
|
|
13701
13705
|
try {
|
|
13702
13706
|
const o = getComputedStyle(document.documentElement).getPropertyValue("--color-surface-container").trim();
|
|
13703
|
-
return o &&
|
|
13707
|
+
return o && Jn(o) ? o : null;
|
|
13704
13708
|
} catch {
|
|
13705
13709
|
return null;
|
|
13706
13710
|
}
|
|
@@ -13927,7 +13931,7 @@ var Og = {
|
|
|
13927
13931
|
if (t === Ig) return !0;
|
|
13928
13932
|
if (t === Ng) return this._config;
|
|
13929
13933
|
if (t === Xg) return !0;
|
|
13930
|
-
if (t ===
|
|
13934
|
+
if (t === fr) return this._getDescriptor();
|
|
13931
13935
|
if (t === "then" || t === "catch" || t === "finally" || typeof t == "symbol") return;
|
|
13932
13936
|
if (t === "$path") return this._config.basePath;
|
|
13933
13937
|
if (t === "$channel") return this._config.channel;
|
|
@@ -14774,10 +14778,10 @@ var pt = {
|
|
|
14774
14778
|
enumerable: !0,
|
|
14775
14779
|
configurable: !0,
|
|
14776
14780
|
argumentCount: e instanceof Function ? e.length : -1
|
|
14777
|
-
} : en(e) ? e : null, Xg = /* @__PURE__ */ Symbol.for("@requestHandler"),
|
|
14781
|
+
} : en(e) ? e : null, Xg = /* @__PURE__ */ Symbol.for("@requestHandler"), fr = /* @__PURE__ */ Symbol.for("@descriptor"), ta = (e) => en(e) || e?.[fr] ? e : e?.$isDescriptor ? Dg(e, async () => {
|
|
14778
14782
|
}) : La(e) ? e : null, Jr = /* @__PURE__ */ new Map(), fn = /* @__PURE__ */ new WeakMap(), ul = (e, t) => {
|
|
14779
14783
|
if (t != null && !Array.isArray(t) && (t = [t]), t == null || t?.length < 1) return e;
|
|
14780
|
-
const n = e?.[
|
|
14784
|
+
const n = e?.[fr] ?? (e?.$isDescriptor ? e : null);
|
|
14781
14785
|
if (n && n?.owner == pt?.name && (e = Rn(n?.path) ?? e), $(e)) return e;
|
|
14782
14786
|
for (const r of t)
|
|
14783
14787
|
if (e = e?.[r], e == null) return e;
|
|
@@ -14787,7 +14791,7 @@ var pt = {
|
|
|
14787
14791
|
const t = Jr?.get?.(e?.[0]) ?? null;
|
|
14788
14792
|
return t != null ? ul(t, e?.slice?.(1)) : null;
|
|
14789
14793
|
}, Os = (e, t) => {
|
|
14790
|
-
const n = t?.[
|
|
14794
|
+
const n = t?.[fr] ?? (t?.$isDescriptor ? t : null);
|
|
14791
14795
|
if (n && n?.owner == pt?.name && (t = Rn(n?.path) ?? t), e != null && !Array.isArray(e) && (e = [e]), e == null || e?.length < 1) return null;
|
|
14792
14796
|
const r = Jr?.get?.(e?.[0]) ?? null;
|
|
14793
14797
|
return e?.length > 1 ? ul(r, e?.slice?.(1, -1))[e?.[e?.length - 1]] = t : Jr?.set?.(e?.[0], t), (typeof t == "object" || typeof t == "function") && fn?.set?.(t, e), t;
|
|
@@ -14796,12 +14800,12 @@ var pt = {
|
|
|
14796
14800
|
const t = Jr?.get?.(e?.[0]) ?? null;
|
|
14797
14801
|
return !t && e?.length <= 1 ? (Jr?.delete?.(e?.[0]), !0) : !1;
|
|
14798
14802
|
}, Yg = (e) => {
|
|
14799
|
-
const t = e?.[
|
|
14803
|
+
const t = e?.[fr] ?? (e?.$isDescriptor ? e : null);
|
|
14800
14804
|
t && t?.owner == pt?.name && (e = Rn(t?.path) ?? e);
|
|
14801
14805
|
const n = fn?.get?.(e) ?? t?.path;
|
|
14802
14806
|
return n == null || n?.length < 1 ? !1 : (Gf(n), (typeof e == "object" || typeof e == "function") && fn?.delete?.(e), !0);
|
|
14803
14807
|
}, Kg = (e) => {
|
|
14804
|
-
const t = e?.[
|
|
14808
|
+
const t = e?.[fr] ?? (e?.$isDescriptor ? e : null);
|
|
14805
14809
|
return (fn?.get?.(e) ?? t?.path) == null;
|
|
14806
14810
|
}, Qt = (e) => (typeof e == "object" || typeof e == "function") && e != null, Xf = {
|
|
14807
14811
|
get: (e, t) => e?.[t],
|
|
@@ -15162,11 +15166,11 @@ var Zg = class {
|
|
|
15162
15166
|
connectedChannels: new Set(this._connectedPeers.keys())
|
|
15163
15167
|
};
|
|
15164
15168
|
}
|
|
15165
|
-
}, eb = class
|
|
15169
|
+
}, eb = class Pr {
|
|
15166
15170
|
_connections = /* @__PURE__ */ new Map();
|
|
15167
15171
|
static _instance = null;
|
|
15168
15172
|
static getInstance() {
|
|
15169
|
-
return
|
|
15173
|
+
return Pr._instance || (Pr._instance = new Pr()), Pr._instance;
|
|
15170
15174
|
}
|
|
15171
15175
|
getOrCreate(t, n = "internal", r = {}) {
|
|
15172
15176
|
return this._connections.has(t) || this._connections.set(t, new Zg(t, n, r)), this._connections.get(t);
|
|
@@ -16883,7 +16887,7 @@ var zi = null, dl = typeof ServiceWorkerGlobalScope < "u" && self instanceof Ser
|
|
|
16883
16887
|
handle: r
|
|
16884
16888
|
}), t && r && n == "user") {
|
|
16885
16889
|
const i = await navigator?.storage?.getDirectory?.();
|
|
16886
|
-
await
|
|
16890
|
+
await sr(i, r, {})?.catch?.(console.warn.bind(console));
|
|
16887
16891
|
}
|
|
16888
16892
|
return r;
|
|
16889
16893
|
}, Ux = async (e) => {
|
|
@@ -17161,7 +17165,7 @@ async function Jx(e, t, n = {}, r = je) {
|
|
|
17161
17165
|
async function Wn(e, t, n, r = je) {
|
|
17162
17166
|
if (n instanceof FileSystemFileHandle && (n = await n.getFile()), n instanceof FileSystemDirectoryHandle) {
|
|
17163
17167
|
const i = await zt(await li(e), t + (t?.trim?.()?.endsWith?.("/") ? "" : "/") + (n?.name || "")?.trim?.()?.replace?.(/\s+/g, "-"), { create: !0 });
|
|
17164
|
-
return await
|
|
17168
|
+
return await sr(n, i, {})?.catch?.(console.warn.bind(console));
|
|
17165
17169
|
} else try {
|
|
17166
17170
|
const { rootHandle: i, resolvedPath: s } = await $t(e, t, ""), o = yt(s);
|
|
17167
17171
|
return await It("writeFile", {
|
|
@@ -17220,7 +17224,7 @@ var t_ = async () => {
|
|
|
17220
17224
|
if (e instanceof FileSystemFileHandle && (e = await e.getFile()), typeof e == "string" && (e = await sd(e)), t = t ?? e?.name, !t) return;
|
|
17221
17225
|
if ("msSaveOrOpenBlob" in self.navigator && self.navigator.msSaveOrOpenBlob(e, t), e instanceof FileSystemDirectoryHandle) {
|
|
17222
17226
|
let r = await showDirectoryPicker?.({ mode: "readwrite" })?.catch?.(console.warn.bind(console));
|
|
17223
|
-
return e && r ? (r = await zt(r, e?.name || "", { create: !0 })?.catch?.(console.warn.bind(console)) || r, await
|
|
17227
|
+
return e && r ? (r = await zt(r, e?.name || "", { create: !0 })?.catch?.(console.warn.bind(console)) || r, await sr(e, r, {})?.catch?.(console.warn.bind(console))) : void 0;
|
|
17224
17228
|
}
|
|
17225
17229
|
const n = await (self?.showOpenFilePicker ? new Promise((r) => r({
|
|
17226
17230
|
showOpenFilePicker: self?.showOpenFilePicker?.bind?.(window),
|
|
@@ -17283,7 +17287,7 @@ var t_ = async () => {
|
|
|
17283
17287
|
if (!n) return;
|
|
17284
17288
|
const r = await zt(await li(null), e + (e?.trim?.()?.endsWith?.("/") ? "" : "/") + n.name?.trim?.()?.replace?.(/\s+/g, "-"), { create: !0 });
|
|
17285
17289
|
if (r)
|
|
17286
|
-
return await
|
|
17290
|
+
return await sr(n, r, {})?.catch?.(console.warn.bind(console));
|
|
17287
17291
|
}, r_ = async (e = "/user/".trim?.()?.replace?.(/\s+/g, "-"), t) => {
|
|
17288
17292
|
const n = "showOpenFilePicker";
|
|
17289
17293
|
return e = yt(e), (window?.[n]?.bind?.(window) ?? (await import("./showOpenFilePicker-BDv4F3Em.js"))?.[n])({
|
|
@@ -17295,11 +17299,11 @@ var t_ = async () => {
|
|
|
17295
17299
|
await od(s, e, t);
|
|
17296
17300
|
}
|
|
17297
17301
|
});
|
|
17298
|
-
},
|
|
17299
|
-
if (
|
|
17300
|
-
|
|
17302
|
+
}, kr = typeof Image < "u" ? new Image() : null;
|
|
17303
|
+
if (kr) {
|
|
17304
|
+
kr.decoding = "async", kr.width = 24, kr.height = 24;
|
|
17301
17305
|
try {
|
|
17302
|
-
|
|
17306
|
+
kr.src = URL.createObjectURL(new Blob(['<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 384 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 288c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128z"/></svg>'], { type: "image/svg+xml" }));
|
|
17303
17307
|
} catch {
|
|
17304
17308
|
}
|
|
17305
17309
|
}
|
|
@@ -17323,7 +17327,7 @@ var i_ = (e, t, n = "") => {
|
|
|
17323
17327
|
} catch (i) {
|
|
17324
17328
|
return nt(r, "error", `clearAllInDirectory: ${i.message}`);
|
|
17325
17329
|
}
|
|
17326
|
-
},
|
|
17330
|
+
}, sr = async (e, t, n = {}, r = je) => It("copy", {
|
|
17327
17331
|
from: e,
|
|
17328
17332
|
to: t
|
|
17329
17333
|
}, [e, t]), Nb = (e, t = "/user/", n = null, r) => {
|
|
@@ -17338,7 +17342,7 @@ var i_ = (e, t, n = "") => {
|
|
|
17338
17342
|
if (p) {
|
|
17339
17343
|
if (p.kind === "directory") {
|
|
17340
17344
|
const f = await zt(l, t + (p.name || "").trim().replace(/\s+/g, "-"), { create: !0 });
|
|
17341
|
-
f && i.push(
|
|
17345
|
+
f && i.push(sr(p, f, { create: !0 }));
|
|
17342
17346
|
} else {
|
|
17343
17347
|
const f = await p.getFile(), h = t + (f.name || p.name).trim().replace(/\s+/g, "-");
|
|
17344
17348
|
i.push(Wn(l, h, f).then(() => r?.(f, h)));
|
|
@@ -17370,7 +17374,7 @@ var i_ = (e, t, n = "") => {
|
|
|
17370
17374
|
const y = f.split("/").filter(Boolean).pop();
|
|
17371
17375
|
if (h.type === "directory") {
|
|
17372
17376
|
const b = await zt(l, t + y, { create: !0 });
|
|
17373
|
-
await
|
|
17377
|
+
await sr(h.handle, b, { create: !0 });
|
|
17374
17378
|
} else {
|
|
17375
17379
|
const b = await h.handle.getFile(), m = t + y;
|
|
17376
17380
|
await Wn(l, m, b), r?.(b, m);
|
|
@@ -18244,18 +18248,18 @@ async function fw(e) {
|
|
|
18244
18248
|
r.rel = "stylesheet", r.href = e, r.onload = () => t(), r.onerror = () => n(/* @__PURE__ */ new Error(`Failed to load CSS: ${e}`)), document.head.appendChild(r);
|
|
18245
18249
|
});
|
|
18246
18250
|
}
|
|
18247
|
-
var
|
|
18251
|
+
var Qn = /* @__PURE__ */ new Map();
|
|
18248
18252
|
async function $_(e, t, n) {
|
|
18249
|
-
if (
|
|
18253
|
+
if (Qn.has(e)) return Qn.get(e);
|
|
18250
18254
|
const r = await uw(t, n);
|
|
18251
|
-
return
|
|
18255
|
+
return Qn.set(e, r), r;
|
|
18252
18256
|
}
|
|
18253
18257
|
function L_() {
|
|
18254
|
-
|
|
18258
|
+
Qn.clear();
|
|
18255
18259
|
}
|
|
18256
18260
|
function D_() {
|
|
18257
|
-
for (const [, e] of
|
|
18258
|
-
|
|
18261
|
+
for (const [, e] of Qn) e.dispose && e.dispose();
|
|
18262
|
+
Qn.clear();
|
|
18259
18263
|
}
|
|
18260
18264
|
export {
|
|
18261
18265
|
Fl as $behavior,
|
|
@@ -18268,14 +18272,14 @@ export {
|
|
|
18268
18272
|
nx as COPY_HACK,
|
|
18269
18273
|
mv as CSSAnchor,
|
|
18270
18274
|
tt as CSSBinder,
|
|
18271
|
-
|
|
18275
|
+
rr as CSSCalc,
|
|
18272
18276
|
bS as CSSCustomProps,
|
|
18273
18277
|
wS as CSSInputControls,
|
|
18274
18278
|
_S as CSSInteractionStates,
|
|
18275
18279
|
xS as CSSMomentumScrolling,
|
|
18276
18280
|
uc as CSSPosition,
|
|
18277
18281
|
SS as CSSScrollbarControls,
|
|
18278
|
-
|
|
18282
|
+
Cr as CSSTransform,
|
|
18279
18283
|
sv as CSSUnitConverter,
|
|
18280
18284
|
D as CSSUnitUtils,
|
|
18281
18285
|
Bu as ClosePriority,
|
|
@@ -18326,7 +18330,7 @@ export {
|
|
|
18326
18330
|
MS as SelectionController,
|
|
18327
18331
|
Jl as SwM,
|
|
18328
18332
|
IS as SwipeHandler,
|
|
18329
|
-
|
|
18333
|
+
nr as T,
|
|
18330
18334
|
cc as Task,
|
|
18331
18335
|
bg as TemplateManager,
|
|
18332
18336
|
Sv as UnderlyingShadow,
|
|
@@ -18411,7 +18415,7 @@ export {
|
|
|
18411
18415
|
zf as convertPointerToValueShift,
|
|
18412
18416
|
Tx as convertValueToPointer,
|
|
18413
18417
|
Rv as copy,
|
|
18414
|
-
|
|
18418
|
+
sr as copyFromOneHandlerToAnother,
|
|
18415
18419
|
rx as copyWithResult,
|
|
18416
18420
|
$f as correctValue,
|
|
18417
18421
|
m0 as cosRef,
|
|
@@ -18481,7 +18485,7 @@ export {
|
|
|
18481
18485
|
Cf as encodeDesktopState,
|
|
18482
18486
|
yf as enhancedIntersectionBoxAnchorRef,
|
|
18483
18487
|
Eb as ensureWorker,
|
|
18484
|
-
|
|
18488
|
+
cr as eventTrigger,
|
|
18485
18489
|
ux as expandIconSrcForDom,
|
|
18486
18490
|
Aw as extendQueryPrototype,
|
|
18487
18491
|
z_ as extractTextFromDataTransfer,
|
|
@@ -18513,7 +18517,7 @@ export {
|
|
|
18513
18517
|
Sf as getGlobalContextMenu,
|
|
18514
18518
|
Rb as getHandler,
|
|
18515
18519
|
Za as getIgnoreNextPopState,
|
|
18516
|
-
|
|
18520
|
+
ur as getInputValues,
|
|
18517
18521
|
O_ as getJSONFromFile,
|
|
18518
18522
|
Ib as getLeast,
|
|
18519
18523
|
R_ as getMarkDownFromFile,
|
|
@@ -18521,7 +18525,7 @@ export {
|
|
|
18521
18525
|
Lr as getParentOrShadowRoot,
|
|
18522
18526
|
mx as getSpeechPrompt,
|
|
18523
18527
|
pg as getValueWithShift,
|
|
18524
|
-
|
|
18528
|
+
kr as ghostImage,
|
|
18525
18529
|
lv as grabForDrag,
|
|
18526
18530
|
sl as handleByPointer,
|
|
18527
18531
|
nt as handleError,
|
|
@@ -18535,7 +18539,7 @@ export {
|
|
|
18535
18539
|
eS as historyBack,
|
|
18536
18540
|
B as historyState,
|
|
18537
18541
|
Rw as historyViewRef,
|
|
18538
|
-
|
|
18542
|
+
ir as hostnameToFaviconRef,
|
|
18539
18543
|
Vm as html,
|
|
18540
18544
|
Gm as htmlBuilder,
|
|
18541
18545
|
x0 as hypotRef,
|
|
@@ -18597,7 +18601,7 @@ export {
|
|
|
18597
18601
|
Uw as matrix4x4Ref,
|
|
18598
18602
|
Xx as mayNotPromise,
|
|
18599
18603
|
Eg as maybeStartThemeEngine,
|
|
18600
|
-
|
|
18604
|
+
_r as mergeByKey,
|
|
18601
18605
|
Yi as mixinDisposers,
|
|
18602
18606
|
h0 as modulusRef,
|
|
18603
18607
|
a0 as momentumScroll,
|
|
@@ -18675,7 +18679,7 @@ export {
|
|
|
18675
18679
|
xm as rectUnion,
|
|
18676
18680
|
Fw as refCtl,
|
|
18677
18681
|
Up as reflectControllers,
|
|
18678
|
-
|
|
18682
|
+
lr as registerCloseable,
|
|
18679
18683
|
Zy as registerContextMenu,
|
|
18680
18684
|
gf as registerLayerElement,
|
|
18681
18685
|
em as registerModal,
|