@fest-lib/dom 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/dom.js +474 -538
- package/package.json +1 -1
- package/dist/index.js +0 -1716
package/dist/dom.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { $avoidTrigger as B, camelToKebab as ee, cvt_cs_to_os as Se, hasValue as E, isArrayOrIterable as Xe, isVal as Ye, isValueUnit as Ge, kebabToCamel as Oe, normalizeGridLayout as Je, normalizePrimitive as he, resolveLocalPointToGridCell as Ke, tryStringAsNumber as We } from "@fest-lib/core";
|
|
2
|
+
var Qe = /* @__PURE__ */ Symbol.for("dom.ts@__registeredCssProperties"), we = globalThis[Qe] ??= /* @__PURE__ */ new Set();
|
|
2
3
|
[
|
|
3
4
|
{
|
|
4
5
|
name: "--screen-width",
|
|
@@ -195,22 +196,22 @@ var Je = /* @__PURE__ */ Symbol.for("dom.ts@__registeredCssProperties"), Me = gl
|
|
|
195
196
|
].forEach((e) => {
|
|
196
197
|
if (typeof CSS > "u" || typeof CSS?.registerProperty != "function") return;
|
|
197
198
|
const t = String(e?.name || "").trim();
|
|
198
|
-
if (!(!t ||
|
|
199
|
+
if (!(!t || we.has(t)))
|
|
199
200
|
try {
|
|
200
201
|
CSS.registerProperty(e);
|
|
201
202
|
} catch (n) {
|
|
202
203
|
String(n?.name || "").toLowerCase() !== "invalidmodificationerror" && console.warn(n);
|
|
203
204
|
} finally {
|
|
204
|
-
|
|
205
|
+
we.add(t);
|
|
205
206
|
}
|
|
206
207
|
});
|
|
207
|
-
var
|
|
208
|
-
},
|
|
208
|
+
var nn = () => {
|
|
209
|
+
}, et = () => {
|
|
209
210
|
let e = navigator?.userAgentData?.mobile || !1;
|
|
210
211
|
return ((t) => {
|
|
211
212
|
(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0, 4))) && (e = !0);
|
|
212
213
|
})(navigator.userAgent || navigator.vendor || globalThis.opera), e;
|
|
213
|
-
},
|
|
214
|
+
}, rn = () => [
|
|
214
215
|
/Android/i,
|
|
215
216
|
/webOS/i,
|
|
216
217
|
/iPhone/i,
|
|
@@ -218,80 +219,19 @@ var gn = () => {
|
|
|
218
219
|
/iPod/i,
|
|
219
220
|
/BlackBerry/i,
|
|
220
221
|
/Windows Phone/i
|
|
221
|
-
].some(navigator.userAgent.match.bind(navigator.userAgent)) && (navigator.maxTouchPoints || "ontouchstart" in document.documentElement) && globalThis.matchMedia("(pointer: coarse)").matches,
|
|
222
|
-
le(e, n) && (e[Ee] = !0);
|
|
223
|
-
let r;
|
|
224
|
-
try {
|
|
225
|
-
r = t?.();
|
|
226
|
-
} finally {
|
|
227
|
-
le(e, n) && delete e[Ee];
|
|
228
|
-
}
|
|
229
|
-
return r;
|
|
230
|
-
}, Ie = (e) => {
|
|
231
|
-
if (typeof e != "string") return null;
|
|
232
|
-
const t = [...e?.matchAll?.(/^\d+(\.\d+)?$/g)];
|
|
233
|
-
if (t?.length != 1) return null;
|
|
234
|
-
const n = parseFloat(t[0][0]);
|
|
235
|
-
return !Number.isNaN(n) && Number.isFinite(n) ? n : null;
|
|
236
|
-
}, tt = (e) => Array.isArray(e) || e != null && typeof e == "object" && typeof e[Symbol.iterator] == "function", de = (e, t, n = 0) => {
|
|
237
|
-
const r = [...t], i = [...e];
|
|
238
|
-
return n % 2 && (i.reverse(), r.reverse()), [(n == 0 || n == 3 ? i[0] : r[0] - i[0]) || 0, (n == 0 || n == 1 ? i[1] : r[1] - i[1]) || 0];
|
|
239
|
-
}, H = (e, t = [4, 8]) => {
|
|
240
|
-
if (Array.isArray(e) && e.length >= 2) return [Math.max(1, Math.floor(Number(e[0]) || t[0])), Math.max(1, Math.floor(Number(e[1]) || t[1]))];
|
|
241
|
-
if (e && typeof e == "object") {
|
|
242
|
-
const n = e;
|
|
243
|
-
return [Math.max(1, Math.floor(Number(n.columns) || t[0])), Math.max(1, Math.floor(Number(n.rows) || t[1]))];
|
|
244
|
-
}
|
|
245
|
-
return [t[0], t[1]];
|
|
246
|
-
}, nt = (e, t) => {
|
|
247
|
-
const [n, r] = H(t);
|
|
248
|
-
return [Math.max(0, Math.min(n - 1, Math.floor(Number(e[0]) || 0))), Math.max(0, Math.min(r - 1, Math.floor(Number(e[1]) || 0)))];
|
|
249
|
-
}, rt = (e, t, n, r, i) => {
|
|
250
|
-
const s = H(n), a = Math.max(1, t[0] || 1), o = Math.max(1, t[1] || 1), c = de(e, [a, o], r), u = {
|
|
251
|
-
item: i?.redirect?.item ?? { id: "" },
|
|
252
|
-
list: i?.redirect?.list ?? [],
|
|
253
|
-
items: i?.redirect?.items ?? /* @__PURE__ */ new Map(),
|
|
254
|
-
layout: s,
|
|
255
|
-
size: [a, o]
|
|
256
|
-
}, d = at(c, u, r), h = (i?.mode ?? "floor") === "round" ? [Math.round(d[0]), Math.round(d[1])] : [Math.floor(d[0]), Math.floor(d[1])], l = ot(h, u);
|
|
257
|
-
return nt(l, s);
|
|
258
|
-
}, it = (e) => e == null ? [] : Array.isArray(e) ? e : e instanceof Map ? Array.from(e.values()) : e instanceof Set || typeof e[Symbol.iterator] == "function" ? Array.from(e) : [], ot = (e, t) => {
|
|
259
|
-
const n = H(t?.layout ?? [4, 8]), r = {
|
|
260
|
-
...t,
|
|
261
|
-
layout: n
|
|
262
|
-
}, i = it(r?.items), s = r?.item || {}, a = (p) => i.filter((y) => !(y == s || y?.id == s?.id)).some((y) => (y?.cell?.[0] || 0) == (p[0] || 0) && (y?.cell?.[1] || 0) == (p[1] || 0)), o = [...e];
|
|
263
|
-
if (!a(o)) return [...o];
|
|
264
|
-
const c = n[0] || 4, u = n[1] || 8, d = ([
|
|
265
|
-
[o[0] + 1, o[1]],
|
|
266
|
-
[o[0] - 1, o[1]],
|
|
267
|
-
[o[0], o[1] + 1],
|
|
268
|
-
[o[0], o[1] - 1]
|
|
269
|
-
].filter((p) => p[0] >= 0 && p[0] < c && p[1] >= 0 && p[1] < u) || []).find((p) => !a(p));
|
|
270
|
-
if (d) return [...d];
|
|
271
|
-
let h = 0, l = !0, f = [...o];
|
|
272
|
-
for (; l && h++ < c * u; ) {
|
|
273
|
-
if (!(l = a(f))) return [...f];
|
|
274
|
-
f[0]++, f[0] >= c && (f[0] = 0, f[1]++, f[1] >= u && (f[1] = 0));
|
|
275
|
-
}
|
|
276
|
-
return [...o];
|
|
277
|
-
}, at = (e, t, n = 0) => {
|
|
278
|
-
const r = [...t.size], i = [...e], s = H(t.layout ?? [4, 8]);
|
|
279
|
-
n % 2 && r.reverse();
|
|
280
|
-
const a = [s[0] / r[0], s[1] / r[1]];
|
|
281
|
-
return [i[0] * a[0], i[1] * a[1]];
|
|
282
|
-
}, st = () => ({
|
|
222
|
+
].some(navigator.userAgent.match.bind(navigator.userAgent)) && (navigator.maxTouchPoints || "ontouchstart" in document.documentElement) && globalThis.matchMedia("(pointer: coarse)").matches, tt = () => ({
|
|
283
223
|
didTimeout: !1,
|
|
284
224
|
timeRemaining: () => 0
|
|
285
|
-
}),
|
|
225
|
+
}), xe = (e, t = 1e3) => typeof globalThis.requestIdleCallback == "function" ? globalThis.requestIdleCallback(e, { timeout: t }) : setTimeout(() => e(tt()), 0), nt = (e) => e?.offsetParent ?? e?.host, on = (e) => {
|
|
286
226
|
const t = [];
|
|
287
227
|
let n = e;
|
|
288
228
|
for (; n; ) {
|
|
289
|
-
const r =
|
|
229
|
+
const r = nt(n);
|
|
290
230
|
if (r && r instanceof HTMLHtmlElement) break;
|
|
291
231
|
(n = r) && t.push(n);
|
|
292
232
|
}
|
|
293
233
|
return t;
|
|
294
|
-
},
|
|
234
|
+
}, an = (e, t = 1e-6) => Math.abs(e.a - 1) < t && Math.abs(e.b) < t && Math.abs(e.c) < t && Math.abs(e.d - 1) < t && Math.abs(e.e) < t && Math.abs(e.f) < t, rt = () => {
|
|
295
235
|
const e = {
|
|
296
236
|
canceled: !1,
|
|
297
237
|
rAFs: /* @__PURE__ */ new Set(),
|
|
@@ -311,25 +251,25 @@ var gn = () => {
|
|
|
311
251
|
setTimeout(t, 16);
|
|
312
252
|
});
|
|
313
253
|
})(), e;
|
|
314
|
-
},
|
|
254
|
+
}, sn = (e = rt()) => (t) => e.shedule(t), cn = typeof document < "u" ? document?.documentElement : null, un = (e, t = {}) => {
|
|
315
255
|
if (!(!t || typeof t != "object" || !e))
|
|
316
256
|
return Array.from(Object.entries(t)).map(([n, r]) => {
|
|
317
257
|
const i = e.getAttribute(n);
|
|
318
258
|
r == null ? e.removeAttribute(n) : r != i && e.setAttribute(n, i == "" ? r ?? i : i ?? r);
|
|
319
259
|
});
|
|
320
|
-
},
|
|
260
|
+
}, dn = (e, t = {}) => Array.from(Object.entries(t)).map(([n, r]) => {
|
|
321
261
|
r == null ? e.removeAttribute(n) : e.setAttribute(n, r ?? e.getAttribute(n));
|
|
322
|
-
}),
|
|
262
|
+
}), it = /* @__PURE__ */ new Map(), ln = (e, t = 1e3, ...n) => {
|
|
323
263
|
const r = {
|
|
324
264
|
running: !0,
|
|
325
265
|
cancel: () => {
|
|
326
266
|
r.running = !1;
|
|
327
267
|
}
|
|
328
268
|
};
|
|
329
|
-
return
|
|
269
|
+
return xe(async () => {
|
|
330
270
|
if (!(!e || typeof e != "function")) {
|
|
331
271
|
for (; r.running; )
|
|
332
|
-
await Promise.all([Promise.try(e, ...n), new Promise((i) => setTimeout(i, t))]).catch?.(console.warn.bind(console)), await Promise.any([new Promise((i) =>
|
|
272
|
+
await Promise.all([Promise.try(e, ...n), new Promise((i) => setTimeout(i, t))]).catch?.(console.warn.bind(console)), await Promise.any([new Promise((i) => xe(i, t)), new Promise((i) => setTimeout(i, t))]);
|
|
333
273
|
r.cancel = () => {
|
|
334
274
|
};
|
|
335
275
|
}
|
|
@@ -337,67 +277,67 @@ var gn = () => {
|
|
|
337
277
|
};
|
|
338
278
|
typeof requestAnimationFrame < "u" && requestAnimationFrame(async () => {
|
|
339
279
|
for (; ; )
|
|
340
|
-
|
|
280
|
+
it.forEach((e) => e?.()), await new Promise((e) => requestAnimationFrame(e));
|
|
341
281
|
});
|
|
342
|
-
var
|
|
282
|
+
var U = /* @__PURE__ */ Symbol("@border-box-width"), X = /* @__PURE__ */ Symbol("@border-box-height"), Y = /* @__PURE__ */ Symbol("@content-box-width"), G = /* @__PURE__ */ Symbol("@content-box-height"), Ee = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), fn = (e, t = () => {
|
|
343
283
|
}) => {
|
|
344
|
-
if (e instanceof HTMLElement && !
|
|
345
|
-
e[
|
|
284
|
+
if (e instanceof HTMLElement && !Ae.has(e)) {
|
|
285
|
+
e[Y] = e.clientWidth, e[G] = e.clientHeight;
|
|
346
286
|
const n = new ResizeObserver((r) => {
|
|
347
287
|
for (const i of r) if (i.contentBoxSize) {
|
|
348
288
|
const s = i.contentBoxSize[0];
|
|
349
|
-
s && (e[
|
|
289
|
+
s && (e[Y] = Math.min(s.inlineSize, e.clientWidth), e[G] = Math.min(s.blockSize, e.clientHeight), t?.(e));
|
|
350
290
|
}
|
|
351
291
|
});
|
|
352
|
-
|
|
292
|
+
Ae.set(e, n), n.observe(e?.element ?? e, { box: "content-box" });
|
|
353
293
|
}
|
|
354
|
-
},
|
|
294
|
+
}, pn = (e, t = () => {
|
|
355
295
|
}) => {
|
|
356
|
-
if (e instanceof HTMLElement && !
|
|
357
|
-
e[
|
|
296
|
+
if (e instanceof HTMLElement && !Ee.has(e)) {
|
|
297
|
+
e[U] = e.offsetWidth, e[X] = e.offsetHeight;
|
|
358
298
|
const n = new ResizeObserver((r) => {
|
|
359
299
|
for (const i of r) if (i.borderBoxSize) {
|
|
360
300
|
const s = i.borderBoxSize[0];
|
|
361
|
-
s && (e[
|
|
301
|
+
s && (e[U] = Math.min(s.inlineSize, e.offsetWidth), e[X] = Math.min(s.blockSize, e.offsetHeight), t?.(e));
|
|
362
302
|
}
|
|
363
303
|
});
|
|
364
|
-
|
|
304
|
+
Ee.set(e, n), n.observe(e?.element ?? e, { box: "border-box" });
|
|
365
305
|
}
|
|
366
|
-
},
|
|
306
|
+
}, hn = (e, ...t) => URL.createObjectURL(new Blob(t, { type: e })), mn = (e, t = "text/html") => {
|
|
367
307
|
const n = new DOMParser().parseFromString(e, t);
|
|
368
308
|
return n.querySelector("template") ?? n.querySelector("*");
|
|
369
|
-
},
|
|
309
|
+
}, yn = (e, t, n) => {
|
|
370
310
|
t != null && e.checked != t && (e?.type == "checkbox" || e?.type == "radio" && !e?.checked ? (e?.click?.(), n?.preventDefault?.()) : (e.checked = !!t, e?.dispatchEvent?.(new Event("change", {
|
|
371
311
|
bubbles: !0,
|
|
372
312
|
cancelable: !0
|
|
373
313
|
}))));
|
|
374
|
-
},
|
|
314
|
+
}, gn = (e) => e != null && e instanceof HTMLElement && !(e instanceof DocumentFragment || e instanceof HTMLBodyElement) ? e : null, vn = (e, t) => e == null || t == null ? -1 : Array.from(e?.childNodes ?? [])?.indexOf?.(t) ?? -1, bn = "(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)", Sn = `^(?:(-?[_a-zA-Z]+[_a-zA-Z0-9-]*))|^#(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)|^\\.(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)|^\\[(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)(?:([*$|~^]?=)(["'])((?:(?=(\\\\?))\\8.)*?)\\6)?\\]`, wn = (e) => {
|
|
375
315
|
if (e == ":fragment:") return document.createDocumentFragment();
|
|
376
316
|
const t = document.createElement.bind(document);
|
|
377
317
|
for (var n = t("div"), r, i = ""; e && (r = e.match(`^(?:(-?[_a-zA-Z]+[_a-zA-Z0-9-]*))|^#(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)|^\\.(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)|^\\[(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)(?:([*$|~^]?=)(["'])((?:(?=(\\\\?))\\8.)*?)\\6)?\\]`)); )
|
|
378
318
|
r[1] && (n = t(r[1])), r[2] && (n.id = r[2]), r[3] && (i += " " + r[3]), r[4] && n.setAttribute(r[4], r[7] || ""), e = e.slice(r[0].length);
|
|
379
319
|
return i && (n.className = i.slice(1)), n;
|
|
380
|
-
},
|
|
320
|
+
}, xn = (e) => e != null && (e instanceof Node || e instanceof Text || e instanceof Element || e instanceof Comment || e instanceof HTMLElement || e instanceof DocumentFragment) ? e : null, En = (e, t) => e.querySelector(t) ?? (e.matches(t) ? e : null), ne = (e, t) => {
|
|
381
321
|
for (; e; ) {
|
|
382
322
|
if (!(e?.element ?? e)) return !1;
|
|
383
323
|
if ((e?.element ?? e) === (t?.element ?? t)) return !0;
|
|
384
324
|
e = e.parentElement ?? (e.parentNode == e?.getRootNode?.({ composed: !0 }) ? e?.getRootNode?.({ composed: !0 })?.host : e?.parentNode);
|
|
385
325
|
}
|
|
386
|
-
},
|
|
387
|
-
function m(e, t, n, r =
|
|
326
|
+
}, Fe = {};
|
|
327
|
+
function m(e, t, n, r = Fe) {
|
|
388
328
|
e?.addEventListener?.(t, n, r);
|
|
389
329
|
const i = typeof e == "object" || typeof e == "function" && !e?.deref ? new WeakRef(e) : e;
|
|
390
330
|
return () => i?.deref?.()?.removeEventListener?.(t, n, r);
|
|
391
331
|
}
|
|
392
|
-
function
|
|
332
|
+
function Me(e, t, n, r = Fe) {
|
|
393
333
|
e?.removeEventListener?.(t, n, r);
|
|
394
334
|
}
|
|
395
|
-
var
|
|
335
|
+
var J = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(t)].map?.(([n, r]) => Array.isArray(r) ? m(e, n, ...r) : m(e, n, r))), An = (e, t) => {
|
|
396
336
|
if (t) {
|
|
397
337
|
let n = t;
|
|
398
|
-
return t instanceof Map ? n = [...t.entries()] : n = [...Object.entries(t)], n.map(([r, i]) => ((
|
|
338
|
+
return t instanceof Map ? n = [...t.entries()] : n = [...Object.entries(t)], n.map(([r, i]) => ((Xe(i) ? [...i] : i) ?? [])?.map?.((s) => m(e, r, s)));
|
|
399
339
|
}
|
|
400
|
-
},
|
|
340
|
+
}, Mn = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(t)].map?.(([n, r]) => Array.isArray(r) ? Me(e, n, ...r) : Me(e, n, r))), Cn = (e) => {
|
|
401
341
|
if (!e) return null;
|
|
402
342
|
if (e?.composedPath && typeof e.composedPath == "function") {
|
|
403
343
|
const n = e.composedPath();
|
|
@@ -405,7 +345,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
405
345
|
}
|
|
406
346
|
const t = e?.target;
|
|
407
347
|
return t instanceof HTMLElement || t instanceof Element ? t : null;
|
|
408
|
-
},
|
|
348
|
+
}, Rn = (e, t, n) => {
|
|
409
349
|
if (t == null || !(t instanceof Node) && t?.element == null) return !1;
|
|
410
350
|
if (e == t || (e?.element ?? e) == (t?.element ?? t)) return !0;
|
|
411
351
|
if (n?.composedPath && typeof n.composedPath == "function") {
|
|
@@ -416,7 +356,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
416
356
|
}
|
|
417
357
|
}
|
|
418
358
|
return !!(e?.contains?.(t?.element ?? t) || e?.getRootNode({ composed: !0 })?.host == (t?.element ?? t));
|
|
419
|
-
},
|
|
359
|
+
}, ue = (e, t, n) => {
|
|
420
360
|
if (n?.composedPath && typeof n.composedPath == "function") {
|
|
421
361
|
const o = n.composedPath();
|
|
422
362
|
for (const c of o) if ((c instanceof HTMLElement || c instanceof Element) && c.matches?.(t))
|
|
@@ -424,34 +364,35 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
424
364
|
}
|
|
425
365
|
const r = e?.matches?.(t) ? e : null, i = (e?.getRootNode({ composed: !0 }) ?? e?.parentElement?.getRootNode({ composed: !0 }))?.host, s = i?.matches?.(t) ? i : null, a = e?.closest?.(t) ?? r?.closest?.(t) ?? s?.closest?.(t) ?? null;
|
|
426
366
|
return r ?? a ?? s;
|
|
427
|
-
},
|
|
367
|
+
}, Pn = (e, t) => !!ue(e, t), kn = (e, t, n = "parent") => {
|
|
428
368
|
if (!e || e.checkVisibility && !e.checkVisibility({
|
|
429
369
|
checkOpacity: !0,
|
|
430
370
|
checkVisibilityCSS: !0
|
|
431
371
|
}) || !e.checkVisibility && e.offsetParent === null && e.style.position !== "fixed") return !1;
|
|
432
372
|
let r = document.activeElement;
|
|
433
373
|
for (; r && r.shadowRoot && r.shadowRoot.activeElement; ) r = r.shadowRoot.activeElement;
|
|
434
|
-
const i = r === e ||
|
|
374
|
+
const i = r === e || ne(r, e), s = e.matches(":hover");
|
|
435
375
|
if (!i && !s && !t) return !1;
|
|
436
376
|
if (t) {
|
|
437
377
|
if (typeof t == "string") {
|
|
438
|
-
if (n === "parent") return !!
|
|
378
|
+
if (n === "parent") return !!ue(e, t);
|
|
439
379
|
{
|
|
440
|
-
const a = i ? r : e.querySelector(":hover") || e, o = !!
|
|
380
|
+
const a = i ? r : e.querySelector(":hover") || e, o = !!ue(a, t);
|
|
441
381
|
return e?.querySelector?.(t) != null || e?.matches?.(t) || o;
|
|
442
382
|
}
|
|
443
|
-
} else if (t instanceof HTMLElement)
|
|
383
|
+
} else if (t instanceof HTMLElement)
|
|
384
|
+
return n === "parent" ? ne(e, t) || !1 : ne(t, e) || !1;
|
|
444
385
|
}
|
|
445
386
|
return !0;
|
|
446
|
-
},
|
|
387
|
+
}, zn = () => "currentCSSZoom" in document.documentElement ? document.documentElement.currentCSSZoom || 1 : parseFloat(document.documentElement.style.getPropertyValue("--scaling") || "1") || 1, ot = /* @__PURE__ */ Symbol.for("dom.ts@zoomValues"), at = globalThis[ot] ??= /* @__PURE__ */ new WeakMap(), st = (e = document.documentElement) => at.getOrInsertComputed(e, () => {
|
|
447
388
|
const t = (e?.matches?.(".ui-orientbox") ? e : null) || e?.closest?.(".ui-orientbox") || document.body;
|
|
448
389
|
if (t?.zoom) return t?.zoom || 1;
|
|
449
390
|
if (e?.currentCSSZoom) return e?.currentCSSZoom || 1;
|
|
450
|
-
}),
|
|
391
|
+
}), Ln = (e = 1) => (document.documentElement.style.setProperty("--scaling", e), document.documentElement.dispatchEvent(new CustomEvent("scaling", {
|
|
451
392
|
detail: { zoom: e },
|
|
452
393
|
bubbles: !0,
|
|
453
394
|
cancelable: !0
|
|
454
|
-
})), e),
|
|
395
|
+
})), e), Tn = (e = document.documentElement) => (e?.currentCSSZoom != null ? 1 : st(e)) || 1, de = (e = document.documentElement) => (e?.currentCSSZoom == null ? 1 : e?.currentCSSZoom) || 1, k = (e = document.documentElement) => {
|
|
455
396
|
const t = (e?.matches?.('[orient], [data-mixin="ui-orientbox"]') ? e : null) || e?.closest?.('[orient], [data-mixin="ui-orientbox"]') || e;
|
|
456
397
|
if (t?.hasAttribute?.("orient")) return parseInt(t?.getAttribute?.("orient") || "0") || 0;
|
|
457
398
|
if (t?.orient != null && Number.isFinite(Number(t.orient))) return Number(t.orient) || 0;
|
|
@@ -461,27 +402,27 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
461
402
|
} catch {
|
|
462
403
|
}
|
|
463
404
|
return 0;
|
|
464
|
-
},
|
|
465
|
-
const n =
|
|
405
|
+
}, Vn = (e, t = null) => {
|
|
406
|
+
const n = de(e) || 1, r = e?.getBoundingClientRect?.(), i = {
|
|
466
407
|
left: r?.left / n,
|
|
467
408
|
right: r?.right / n,
|
|
468
409
|
top: r?.top / n,
|
|
469
410
|
bottom: r?.bottom / n,
|
|
470
411
|
width: r?.width / n,
|
|
471
412
|
height: r?.height / n
|
|
472
|
-
}, s = t ?? (
|
|
413
|
+
}, s = t ?? (k(e) || 0), a = typeof window < "u" ? window.visualViewport : null, o = [((a?.width ?? document.documentElement?.clientWidth ?? window.innerWidth) || 1) / n, ((a?.height ?? document.documentElement?.clientHeight ?? window.innerHeight) || 1) / n], [c, u] = Se([i.left, i.top], o, s), [l, h] = Se([i.right, i.bottom], o, s), [d, f] = s == 0 || s == 3 ? [c, l] : [l, c], [p, y] = s == 0 || s == 1 ? [u, h] : [h, u], [q, Ue] = s % 2 ? [i.height, i.width] : [i.width, i.height];
|
|
473
414
|
return {
|
|
474
|
-
left:
|
|
415
|
+
left: d,
|
|
475
416
|
top: p,
|
|
476
417
|
right: f,
|
|
477
418
|
bottom: y,
|
|
478
|
-
width:
|
|
479
|
-
height:
|
|
419
|
+
width: q,
|
|
420
|
+
height: Ue
|
|
480
421
|
};
|
|
481
|
-
},
|
|
422
|
+
}, jn = (e, t = null) => (t ?? k(e)) % 2 ? e[X] ?? e?.clientHeight : e[U] ?? e?.clientWidth, On = (e, t = null) => (t ?? k(e)) % 2 ? e[U] ?? e?.clientWidth : e[X] ?? e?.clientHeight, Wn = (e, t = null) => (t ?? k(e)) % 2 ? e[G] ?? e?.clientHeight : e[Y] ?? e?.clientWidth, Fn = (e, t = null) => (t ?? k(e)) % 2 ? e[Y] ?? e?.clientWidth : e[G] ?? e?.clientHeight, ct = (e, t = 100) => typeof globalThis.requestIdleCallback == "function" ? globalThis.requestIdleCallback(e, { timeout: t }) : setTimeout(() => e({
|
|
482
423
|
didTimeout: !1,
|
|
483
424
|
timeRemaining: () => 0
|
|
484
|
-
}), 0),
|
|
425
|
+
}), 0), Ie = () => {
|
|
485
426
|
const e = typeof matchMedia < "u" ? matchMedia("(orientation: landscape)")?.matches : !1, t = typeof window < "u" ? window.visualViewport : null, n = t ? {
|
|
486
427
|
"--vv-width": `${t.width}px`,
|
|
487
428
|
"--vv-height": `${t.height}px`,
|
|
@@ -516,35 +457,35 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
516
457
|
"--pixel-ratio": "1",
|
|
517
458
|
...n
|
|
518
459
|
};
|
|
519
|
-
},
|
|
460
|
+
}, le = Ie(), In = [[":root, :host, :scope", le]], ut = {
|
|
520
461
|
"portrait-primary": 0,
|
|
521
462
|
"landscape-primary": 1,
|
|
522
463
|
"portrait-secondary": 2,
|
|
523
464
|
"landscape-secondary": 3
|
|
524
|
-
},
|
|
465
|
+
}, dt = (e) => {
|
|
525
466
|
const t = document.documentElement;
|
|
526
|
-
Object.assign(
|
|
467
|
+
Object.assign(le, Ie()), Object.entries(le).forEach(([n, r]) => {
|
|
527
468
|
const i = t?.style?.getPropertyValue(n);
|
|
528
469
|
(!i || i != r) && t?.style?.setProperty?.(n, r || "", "");
|
|
529
470
|
}), document.documentElement.style.setProperty("--orientation-secondary", screen?.orientation?.type?.endsWith?.("secondary") ? "1" : "0");
|
|
530
|
-
},
|
|
471
|
+
}, lt = () => {
|
|
531
472
|
let e = screen?.orientation?.type || "portrait-primary";
|
|
532
473
|
return globalThis.matchMedia("((display-mode: fullscreen) or (display-mode: standalone) or (display-mode: window-controls-overlay))").matches || (matchMedia("(orientation: portrait)").matches ? e = e.replace("landscape", "portrait") : matchMedia("(orientation: landscape)").matches && (e = e.replace("portrait", "landscape"))), e;
|
|
533
|
-
},
|
|
474
|
+
}, re = { passive: !0 }, ft = (e) => {
|
|
534
475
|
let t = !1;
|
|
535
476
|
const n = () => {
|
|
536
477
|
t || (requestAnimationFrame(() => {
|
|
537
|
-
|
|
478
|
+
dt(), e(), t = !1;
|
|
538
479
|
}), t = !0);
|
|
539
480
|
}, r = [];
|
|
540
|
-
return r.push(m(navigator?.virtualKeyboard, "geometrychange", n,
|
|
541
|
-
},
|
|
481
|
+
return r.push(m(navigator?.virtualKeyboard, "geometrychange", n, re)), r.push(m(window?.visualViewport, "scroll", n, re)), r.push(m(window?.visualViewport, "resize", n, re)), r.push(m(screen?.orientation, "change", n)), r.push(m(window, "resize", n)), r.push(m(document?.documentElement, "fullscreenchange", n)), r.push(m(document, "DOMContentLoaded", n)), r.push(m(matchMedia("(orientation: portrait)"), "change", n)), r.push(m(matchMedia("(orientation: landscape)"), "change", n)), n(), ct(() => n(), 100), () => r.forEach((i) => i());
|
|
482
|
+
}, $n = (e) => {
|
|
542
483
|
if (!e?.classList?.contains?.("native-portrait-optimized"))
|
|
543
|
-
return e?.classList?.add?.("native-portrait-optimized"),
|
|
544
|
-
const t =
|
|
484
|
+
return e?.classList?.add?.("native-portrait-optimized"), ft(() => {
|
|
485
|
+
const t = ut?.[lt()] ?? 0;
|
|
545
486
|
e.orient = t, e.setAttribute?.("orient", String(t)), e.style?.setProperty?.("--orient", String(t));
|
|
546
487
|
});
|
|
547
|
-
}, R = new OffscreenCanvas(1, 1).getContext("2d"),
|
|
488
|
+
}, R = new OffscreenCanvas(1, 1).getContext("2d"), $e = (e, t) => {
|
|
548
489
|
const n = getComputedStyle(e, "");
|
|
549
490
|
if (t && n) {
|
|
550
491
|
const r = n.getPropertyValue("font-weight") || "normal", i = n.getPropertyValue("font-size") || "16px", s = n.getPropertyValue("font-family") || "Times New Roman", a = n.getPropertyValue("font-stretch") || "normal";
|
|
@@ -569,22 +510,22 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
569
510
|
} catch {
|
|
570
511
|
}
|
|
571
512
|
}
|
|
572
|
-
},
|
|
513
|
+
}, pt = (e, t) => {
|
|
573
514
|
if (R) {
|
|
574
|
-
|
|
515
|
+
$e(t, R);
|
|
575
516
|
try {
|
|
576
517
|
return R.measureText(e);
|
|
577
518
|
} catch {
|
|
578
519
|
}
|
|
579
520
|
}
|
|
580
521
|
return { width: null };
|
|
581
|
-
},
|
|
522
|
+
}, Nn = (e) => {
|
|
582
523
|
const t = e.value.slice(0, e.selectionEnd || 0);
|
|
583
|
-
return
|
|
584
|
-
},
|
|
524
|
+
return pt(t, e);
|
|
525
|
+
}, ht = (e, t) => {
|
|
585
526
|
const n = e?.value || "";
|
|
586
527
|
if (R) {
|
|
587
|
-
|
|
528
|
+
$e(e, R);
|
|
588
529
|
let r = 0;
|
|
589
530
|
for (let i = 0; i < n.length; i++) {
|
|
590
531
|
if (r = R.measureText(n.slice(0, i))?.width, r == null) return n.length;
|
|
@@ -592,18 +533,18 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
592
533
|
}
|
|
593
534
|
}
|
|
594
535
|
return n.length;
|
|
595
|
-
},
|
|
596
|
-
const n = e.getBoundingClientRect(), r = [t[0] - n.left /
|
|
597
|
-
return
|
|
598
|
-
},
|
|
599
|
-
const n = parseInt(e.getAttribute("data-grid-columns") || "", 10), r = parseInt(e.getAttribute("data-grid-rows") || "", 10), i =
|
|
536
|
+
}, Bn = (e, t) => {
|
|
537
|
+
const n = e.getBoundingClientRect(), r = [t[0] - n.left / de(), t[1] - n.top / de()];
|
|
538
|
+
return ht(e, r);
|
|
539
|
+
}, mt = (e, t) => {
|
|
540
|
+
const n = parseInt(e.getAttribute("data-grid-columns") || "", 10), r = parseInt(e.getAttribute("data-grid-rows") || "", 10), i = Je(t ?? [4, 8]);
|
|
600
541
|
return [Number.isFinite(n) && n > 0 ? n : i[0], Number.isFinite(r) && r > 0 ? r : i[1]];
|
|
601
|
-
},
|
|
542
|
+
}, Hn = (e, t, n, r = "floor") => {
|
|
602
543
|
if (!e) return [0, 0];
|
|
603
544
|
const i = e.getBoundingClientRect?.();
|
|
604
545
|
if (!i) return [0, 0];
|
|
605
|
-
const s =
|
|
606
|
-
return
|
|
546
|
+
const s = mt(e, n?.layout), a = k(e), o = globalThis.getComputedStyle?.(e), c = parseFloat(o?.paddingLeft) || 0, u = parseFloat(o?.paddingTop) || 0, l = parseFloat(o?.paddingRight) || 0, h = parseFloat(o?.paddingBottom) || 0, d = Math.max(1, (i.width || e.clientWidth || 1) - c - l), f = Math.max(1, (i.height || e.clientHeight || 1) - u - h), p = [(t?.[0] || 0) - i.left - c, (t?.[1] || 0) - i.top - u];
|
|
547
|
+
return Ke(p, [d, f], s, a, {
|
|
607
548
|
mode: r,
|
|
608
549
|
redirect: {
|
|
609
550
|
item: n?.item,
|
|
@@ -611,7 +552,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
611
552
|
items: n?.items
|
|
612
553
|
}
|
|
613
554
|
});
|
|
614
|
-
},
|
|
555
|
+
}, yt = async (e) => {
|
|
615
556
|
const t = () => {
|
|
616
557
|
e?.hasAttribute?.("data-hidden") || (e?.removeAttribute?.("data-opacity-animation"), e?.dispatchEvent?.(new CustomEvent("u2-appear", {
|
|
617
558
|
detail: {},
|
|
@@ -651,14 +592,14 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
651
592
|
pointerEvents: "revert-layer"
|
|
652
593
|
}
|
|
653
594
|
], {
|
|
654
|
-
duration:
|
|
595
|
+
duration: et() ? 100 : 80,
|
|
655
596
|
easing: "linear",
|
|
656
597
|
delay: 0
|
|
657
598
|
});
|
|
658
599
|
let r = !1;
|
|
659
600
|
const i = () => {
|
|
660
601
|
r || (r = !0, s?.forEach?.((a) => a?.()), n.currentTime = 1, n.finish(), t?.());
|
|
661
|
-
}, s =
|
|
602
|
+
}, s = J(e, {
|
|
662
603
|
"u2-before-hide": [i, {
|
|
663
604
|
once: !0,
|
|
664
605
|
passive: !0
|
|
@@ -674,7 +615,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
674
615
|
let a = !1;
|
|
675
616
|
const o = () => {
|
|
676
617
|
a || (a = !0, c?.forEach?.((u) => u?.()), cancelAnimationFrame(s), n(performance.now()), t?.());
|
|
677
|
-
}, c =
|
|
618
|
+
}, c = J(e, {
|
|
678
619
|
"u2-before-hide": [o, {
|
|
679
620
|
once: !0,
|
|
680
621
|
passive: !0
|
|
@@ -686,7 +627,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
686
627
|
});
|
|
687
628
|
await i, o?.();
|
|
688
629
|
}
|
|
689
|
-
},
|
|
630
|
+
}, gt = async (e) => {
|
|
690
631
|
const t = () => {
|
|
691
632
|
e?.hasAttribute?.("data-hidden") && (e?.removeAttribute?.("data-opacity-animation"), e?.dispatchEvent?.(new CustomEvent("u2-hidden", {
|
|
692
633
|
detail: {},
|
|
@@ -729,7 +670,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
729
670
|
let r = !1;
|
|
730
671
|
const i = () => {
|
|
731
672
|
r || (r = !0, s?.forEach?.((a) => a?.()), n.currentTime = 1, n.finish(), t?.());
|
|
732
|
-
}, s =
|
|
673
|
+
}, s = J(e, { "u2-before-show": [i, {
|
|
733
674
|
once: !0,
|
|
734
675
|
passive: !0
|
|
735
676
|
}] });
|
|
@@ -739,7 +680,7 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
739
680
|
let a = !1;
|
|
740
681
|
const o = () => {
|
|
741
682
|
a || (a = !0, c?.forEach?.((u) => u?.()), cancelAnimationFrame(s), n(performance.now()), t?.());
|
|
742
|
-
}, c =
|
|
683
|
+
}, c = J(e, {
|
|
743
684
|
"u2-before-hide": [o, {
|
|
744
685
|
once: !0,
|
|
745
686
|
passive: !0
|
|
@@ -751,8 +692,8 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
751
692
|
});
|
|
752
693
|
await i, o?.();
|
|
753
694
|
}
|
|
754
|
-
},
|
|
755
|
-
if (!L.has(e =
|
|
695
|
+
}, vt = /* @__PURE__ */ Symbol.for("dom.ts@onBorderObserve"), z = globalThis[vt] ??= /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ Symbol.for("dom.ts@onContentObserve"), L = globalThis[bt] ??= /* @__PURE__ */ new WeakMap(), H = (e) => (typeof e?.current == "object" && (e = e?.element ?? e?.current ?? (typeof e?.self == "object" ? e?.self : null) ?? e), e), qn = (e, t) => {
|
|
696
|
+
if (!L.has(e = H(e))) {
|
|
756
697
|
const n = [], r = new ResizeObserver((i) => {
|
|
757
698
|
for (const s of i) if (s.contentBoxSize) {
|
|
758
699
|
const a = s.contentBoxSize[0];
|
|
@@ -765,8 +706,8 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
765
706
|
}, r), L.set(e, n), (e?.element ?? e) instanceof Node && r.observe(e?.element ?? e, { box: "content-box" });
|
|
766
707
|
}
|
|
767
708
|
return L.get(e)?.push?.(t), { disconnect: () => L.get(e)?.splice?.(L.get(e)?.indexOf(t) || -1, 1) };
|
|
768
|
-
},
|
|
769
|
-
if (!
|
|
709
|
+
}, _n = (e, t) => {
|
|
710
|
+
if (!z.has(e = H(e))) {
|
|
770
711
|
const n = [], r = new ResizeObserver((i) => {
|
|
771
712
|
for (const s of i) if (s.borderBoxSize) {
|
|
772
713
|
const a = s.borderBoxSize[0];
|
|
@@ -776,15 +717,15 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
776
717
|
t?.({
|
|
777
718
|
inlineSize: e.offsetWidth,
|
|
778
719
|
blockSize: e.offsetHeight
|
|
779
|
-
}, r),
|
|
720
|
+
}, r), z.set(e, n), (e?.element ?? e) instanceof Node && r.observe(e?.element ?? e, { box: "border-box" });
|
|
780
721
|
}
|
|
781
|
-
return
|
|
782
|
-
},
|
|
783
|
-
if (typeof e?.selector == "string") return
|
|
722
|
+
return z.get(e)?.push?.(t), { disconnect: () => z.get(e)?.splice?.(z.get(e)?.indexOf(t) || -1, 1) };
|
|
723
|
+
}, Dn = (e, t, n) => {
|
|
724
|
+
if (typeof e?.selector == "string") return me(e, e?.selector, t, n);
|
|
784
725
|
const r = new Set((t.split(",") || [t]).map((s) => s.trim())), i = new MutationObserver((s, a) => {
|
|
785
726
|
for (const o of s) o.attributeName && r.has(o.attributeName) && n(o, a);
|
|
786
727
|
});
|
|
787
|
-
return (e?.element ?? e) instanceof Node && i.observe(e =
|
|
728
|
+
return (e?.element ?? e) instanceof Node && i.observe(e = H(e), {
|
|
788
729
|
attributes: !0,
|
|
789
730
|
attributeOldValue: !0,
|
|
790
731
|
attributeFilter: [...r]
|
|
@@ -794,23 +735,23 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
794
735
|
attributeName: s,
|
|
795
736
|
oldValue: e?.getAttribute?.(s)
|
|
796
737
|
}, i)), i;
|
|
797
|
-
},
|
|
738
|
+
}, me = (e, t, n, r) => {
|
|
798
739
|
const i = new Set([...n.split(",") || [n]].map((a) => a.trim())), s = new MutationObserver((a, o) => {
|
|
799
740
|
for (const c of a) if (c.type == "childList") {
|
|
800
|
-
const u = Array.from(c.addedNodes) || [],
|
|
801
|
-
u.push(...Array.from(c.addedNodes || []).flatMap((h) => Array.from(h?.querySelectorAll?.(t) || []))),
|
|
802
|
-
i.forEach((
|
|
741
|
+
const u = Array.from(c.addedNodes) || [], l = Array.from(c.removedNodes) || [];
|
|
742
|
+
u.push(...Array.from(c.addedNodes || []).flatMap((h) => Array.from(h?.querySelectorAll?.(t) || []))), l.push(...Array.from(c.removedNodes || []).flatMap((h) => Array.from(h?.querySelectorAll?.(t) || []))), [...new Set(u)].filter((h) => h?.matches?.(t))?.map?.((h) => {
|
|
743
|
+
i.forEach((d) => {
|
|
803
744
|
r({
|
|
804
745
|
target: h,
|
|
805
746
|
type: "attributes",
|
|
806
|
-
attributeName:
|
|
807
|
-
oldValue: h?.getAttribute?.(
|
|
747
|
+
attributeName: d,
|
|
748
|
+
oldValue: h?.getAttribute?.(d)
|
|
808
749
|
}, o);
|
|
809
750
|
});
|
|
810
751
|
});
|
|
811
752
|
} else c.target?.matches?.(t) && c.attributeName && i.has(c.attributeName) && r(c, o);
|
|
812
753
|
});
|
|
813
|
-
return s.observe(e =
|
|
754
|
+
return s.observe(e = H(e), {
|
|
814
755
|
attributeOldValue: !0,
|
|
815
756
|
attributes: !0,
|
|
816
757
|
attributeFilter: [...i],
|
|
@@ -823,46 +764,46 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
823
764
|
attributeName: o,
|
|
824
765
|
oldValue: a?.getAttribute?.(o)
|
|
825
766
|
}, s))), s;
|
|
826
|
-
},
|
|
767
|
+
}, St = (e, t = "*", n = (r, i) => {
|
|
827
768
|
}) => {
|
|
828
|
-
const r = (
|
|
829
|
-
const f = Array.from(
|
|
830
|
-
return f.push(...Array.from(
|
|
769
|
+
const r = (d) => {
|
|
770
|
+
const f = Array.from(d || []) || [];
|
|
771
|
+
return f.push(...Array.from(d || []).flatMap((p) => Array.from(p?.querySelectorAll?.(t) || []))), [...Array.from(new Set(f).values())].filter((p) => p?.matches?.(t));
|
|
831
772
|
};
|
|
832
773
|
let i = null;
|
|
833
|
-
const s = (
|
|
834
|
-
const f = i?.deref?.(), p = r(
|
|
774
|
+
const s = (d) => {
|
|
775
|
+
const f = i?.deref?.(), p = r(d.addedNodes), y = r(d.removedNodes);
|
|
835
776
|
(p.length > 0 || y.length > 0) && n?.({
|
|
836
|
-
type:
|
|
837
|
-
target:
|
|
838
|
-
attributeName:
|
|
839
|
-
attributeNamespace:
|
|
840
|
-
nextSibling:
|
|
841
|
-
oldValue:
|
|
842
|
-
previousSibling:
|
|
777
|
+
type: d.type,
|
|
778
|
+
target: d.target,
|
|
779
|
+
attributeName: d.attributeName,
|
|
780
|
+
attributeNamespace: d.attributeNamespace,
|
|
781
|
+
nextSibling: d.nextSibling,
|
|
782
|
+
oldValue: d.oldValue,
|
|
783
|
+
previousSibling: d.previousSibling,
|
|
843
784
|
addedNodes: p,
|
|
844
785
|
removedNodes: y
|
|
845
786
|
}, f);
|
|
846
|
-
}, a = (
|
|
787
|
+
}, a = (d) => {
|
|
847
788
|
s({
|
|
848
|
-
addedNodes: [
|
|
849
|
-
removedNodes: [
|
|
789
|
+
addedNodes: [d?.target].filter((f) => !!f),
|
|
790
|
+
removedNodes: [d?.relatedTarget].filter((f) => !!f),
|
|
850
791
|
type: "childList",
|
|
851
|
-
target:
|
|
792
|
+
target: d?.currentTarget
|
|
852
793
|
});
|
|
853
|
-
}, o = (
|
|
794
|
+
}, o = (d) => {
|
|
854
795
|
s({
|
|
855
|
-
addedNodes: [
|
|
856
|
-
removedNodes: [
|
|
796
|
+
addedNodes: [d?.relatedTarget].filter((f) => !!f),
|
|
797
|
+
removedNodes: [d?.target].filter((f) => !!f),
|
|
857
798
|
type: "childList",
|
|
858
|
-
target:
|
|
799
|
+
target: d?.currentTarget
|
|
859
800
|
});
|
|
860
|
-
}, c = (
|
|
801
|
+
}, c = (d) => {
|
|
861
802
|
s({
|
|
862
|
-
addedNodes: [
|
|
863
|
-
removedNodes: [
|
|
803
|
+
addedNodes: [d?.target].filter((f) => !!f),
|
|
804
|
+
removedNodes: [d?.relatedTarget || document?.activeElement].filter((f) => !!f),
|
|
864
805
|
type: "childList",
|
|
865
|
-
target:
|
|
806
|
+
target: d?.currentTarget
|
|
866
807
|
});
|
|
867
808
|
}, u = {
|
|
868
809
|
passive: !0,
|
|
@@ -884,10 +825,10 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
884
825
|
return e.addEventListener("focusin", a, u), e.addEventListener("focusout", o, u), e.addEventListener("click", c, u), { disconnect: () => {
|
|
885
826
|
e.removeEventListener("focusin", a, u), e.removeEventListener("focusout", o, u), e.removeEventListener("click", c, u);
|
|
886
827
|
} };
|
|
887
|
-
const
|
|
888
|
-
for (const p of
|
|
828
|
+
const l = new MutationObserver((d, f) => {
|
|
829
|
+
for (const p of d) p.type == "childList" && s(p);
|
|
889
830
|
});
|
|
890
|
-
i = new WeakRef(
|
|
831
|
+
i = new WeakRef(l), (e?.element ?? e) instanceof Node && l.observe(e = H(e), {
|
|
891
832
|
childList: !0,
|
|
892
833
|
subtree: !0
|
|
893
834
|
});
|
|
@@ -895,15 +836,15 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
895
836
|
return h.length > 0 && n?.({
|
|
896
837
|
addedNodes: h,
|
|
897
838
|
removedNodes: []
|
|
898
|
-
},
|
|
899
|
-
},
|
|
900
|
-
|
|
839
|
+
}, l), l;
|
|
840
|
+
}, Zn = async (e = document.body) => {
|
|
841
|
+
me(e, "*", "data-hidden", (t, n) => {
|
|
901
842
|
if (t.attributeName == "data-hidden") {
|
|
902
843
|
const r = t.target;
|
|
903
|
-
r.getAttribute("data-hidden") !== t.oldValue && Promise?.try?.(r.getAttribute("data-hidden") != null ?
|
|
844
|
+
r.getAttribute("data-hidden") !== t.oldValue && Promise?.try?.(r.getAttribute("data-hidden") != null ? gt : yt, r, n)?.catch?.(console.warn.bind(console));
|
|
904
845
|
}
|
|
905
846
|
});
|
|
906
|
-
},
|
|
847
|
+
}, Un = (e = 100, t = 0.05, n = 8) => {
|
|
907
848
|
const r = [];
|
|
908
849
|
for (let o = 0; o < e; o++) r.push(o / e);
|
|
909
850
|
const i = (o) => `calc(${o}rad * pi * 2)`, s = (o) => `calc(calc(cos(calc(var(--clip-freq, 8) * ${i(o)})) * 0.5 + 0.5) * var(--clip-amplitude, 0))`, a = (o) => [`calc(calc(0.5 + calc(cos(${i(o)}) * calc(0.5 - ${s(o)}))) * var(--icon-size, 100%))`, `calc(calc(0.5 + calc(sin(${i(o)}) * calc(0.5 - ${s(o)}))) * var(--icon-size, 100%))`];
|
|
@@ -912,40 +853,40 @@ var K = (e, t) => (e = e instanceof WeakRef ? e.deref() : e, [...Object.entries(
|
|
|
912
853
|
"--clip-freq": n,
|
|
913
854
|
"--clip-path": `polygon(${r.map((o) => a(o).join(" ")).join(", ")})`
|
|
914
855
|
};
|
|
915
|
-
},
|
|
916
|
-
|
|
917
|
-
var
|
|
856
|
+
}, Ne = () => typeof globalThis < "u" && typeof globalThis.CSSStyleSheet == "function", Ce = (e) => typeof e == "string" && /@import\b/i.test(e), ye = "DOM", F = typeof document < "u" ? document.createElement("style") : null;
|
|
857
|
+
F && (typeof document < "u" && document.querySelector("head")?.appendChild?.(F), F.dataset.owner = ye);
|
|
858
|
+
var Re = (e, t, n = "") => {
|
|
918
859
|
e[0][e[1]] = e[1] == "innerHTML" ? `@import url("${t}") ${n && typeof n == "string" ? `layer(${n})` : ""};` : t;
|
|
919
|
-
},
|
|
920
|
-
t ||=
|
|
860
|
+
}, Xn = (e) => e?.map?.((t) => Lt(...t)), wt = (e, t) => {
|
|
861
|
+
t ||= F?.sheet;
|
|
921
862
|
let n = Array.from(t?.cssRules || []).findIndex((i) => i instanceof CSSLayerBlockRule && i?.name === e), r;
|
|
922
863
|
return n === -1 && t ? r = t?.cssRules?.[n = t.insertRule(`@layer ${e} {}`)] : r = t?.cssRules?.[n], r;
|
|
923
|
-
},
|
|
864
|
+
}, xt = 0, ie = (e) => typeof ShadowRoot < "u" && e instanceof ShadowRoot, Pe = (e) => typeof Document < "u" && e instanceof Document, Et = (e) => typeof Element < "u" && e instanceof Element, ke = (e) => typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : Array.from(e).map((t) => `\\${t.codePointAt(0).toString(16)} `).join(""), At = () => typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `ux-${Date.now().toString(36)}-${(++xt).toString(36)}`, Mt = (e, t) => (t = t.trim(), e ? t ? t.startsWith("::") ? `${e}${t}` : `${e} ${t}` : e : t), Ct = (e, t, n, r) => {
|
|
924
865
|
const i = Array.from(e?.cssRules || []), s = t.trim(), a = r.trim();
|
|
925
866
|
return i.findIndex((o) => {
|
|
926
867
|
if (!(o instanceof CSSStyleRule)) return !1;
|
|
927
868
|
const c = o.selectorText?.trim?.() ?? "";
|
|
928
869
|
return c === s ? !0 : a && c.endsWith(a) ? c.slice(0, c.length - a.length).trim() === n : !1;
|
|
929
870
|
});
|
|
930
|
-
},
|
|
931
|
-
const i =
|
|
871
|
+
}, ge = (e, t, n = "ux-query", r = null) => {
|
|
872
|
+
const i = ie(r) || Pe(r) ? r : r?.getRootNode?.() ?? (typeof document < "u" ? document : null), s = Et(r) ? r : null;
|
|
932
873
|
let a = "";
|
|
933
874
|
if (s?.id) a = `#${ke(s.id)}`;
|
|
934
875
|
else if (s) {
|
|
935
|
-
let
|
|
936
|
-
|
|
937
|
-
} else
|
|
876
|
+
let l = s.getAttribute("data-style-id");
|
|
877
|
+
l || (l = At(), s.setAttribute("data-style-id", l)), a = `[data-style-id="${ke(l)}"]`;
|
|
878
|
+
} else ie(i) ? a = ":host" : Pe(i) && (a = ":root");
|
|
938
879
|
let o = null;
|
|
939
|
-
if (
|
|
940
|
-
if (n) return
|
|
941
|
-
const c =
|
|
942
|
-
let u =
|
|
880
|
+
if (ie(i) ? (o = i.querySelector("style[data-ux-query]"), !o && typeof document < "u" && (o = document.createElement("style"), o.setAttribute("data-ux-query", ""), i.appendChild(o))) : o = Rt(), t ||= o?.sheet, !t) return;
|
|
881
|
+
if (n) return ge(e, wt(n, t), null, r);
|
|
882
|
+
const c = Mt(a, e);
|
|
883
|
+
let u = Ct(t, c, a, e);
|
|
943
884
|
return u === -1 && (u = t.insertRule(`${c} {}`)), t.cssRules?.[u];
|
|
944
885
|
};
|
|
945
|
-
function
|
|
946
|
-
return
|
|
886
|
+
function Rt() {
|
|
887
|
+
return F ?? null;
|
|
947
888
|
}
|
|
948
|
-
var
|
|
889
|
+
var te = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => te && e instanceof CSSStyleValue, M = (e) => te && e instanceof CSSUnitValue, b = (e, t, n, r = "") => {
|
|
949
890
|
if (!(!e || !t)) {
|
|
950
891
|
if (n == null) {
|
|
951
892
|
e.getPropertyValue(t) !== "" && e.removeProperty(t);
|
|
@@ -953,47 +894,48 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
953
894
|
}
|
|
954
895
|
e.getPropertyValue(t) !== n && e.setProperty(t, n, r);
|
|
955
896
|
}
|
|
956
|
-
},
|
|
897
|
+
}, Pt = (e, t, n, r = "") => {
|
|
957
898
|
if (!e || !t) return e;
|
|
958
|
-
const i =
|
|
959
|
-
if (!
|
|
960
|
-
let o =
|
|
899
|
+
const i = ee(t), s = e.style, a = e.attributeStyleMap ?? e.styleMap;
|
|
900
|
+
if (!te || !a) return Be(e, t, n, r);
|
|
901
|
+
let o = E(n) && !(P(n) || M(n)) ? n?.value : n;
|
|
961
902
|
if (o == null)
|
|
962
903
|
return a.delete?.(i), s && b(s, i, null, r), e;
|
|
963
904
|
if (P(o)) {
|
|
964
905
|
const c = a.get(i);
|
|
965
|
-
if (
|
|
906
|
+
if (M(o) && M(c)) {
|
|
966
907
|
if (c.value === o.value && c.unit === o.unit) return e;
|
|
967
908
|
} else if (c === o) return e;
|
|
968
909
|
return a.set(i, o), e;
|
|
969
910
|
}
|
|
970
|
-
if (typeof o == "number")
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
911
|
+
if (typeof o == "number")
|
|
912
|
+
if (CSS?.number && !i.startsWith("--")) {
|
|
913
|
+
const c = CSS.number(o), u = a.get(i);
|
|
914
|
+
return M(u) && u.value === c.value && u.unit === c.unit || a.set(i, c), e;
|
|
915
|
+
} else
|
|
916
|
+
return b(s, i, String(o), r), e;
|
|
975
917
|
if (typeof o == "string" && !P(o)) {
|
|
976
|
-
const c =
|
|
918
|
+
const c = We(o);
|
|
977
919
|
if (typeof c == "number" && CSS?.number && !i.startsWith("--")) {
|
|
978
|
-
const u = CSS.number(c),
|
|
979
|
-
return
|
|
920
|
+
const u = CSS.number(c), l = a.get(i);
|
|
921
|
+
return M(l) && l.value === u.value && l.unit === u.unit || a.set(i, u), e;
|
|
980
922
|
} else
|
|
981
923
|
return b(s, i, o, r), e;
|
|
982
924
|
}
|
|
983
925
|
return b(s, i, String(o), r), e;
|
|
984
|
-
},
|
|
926
|
+
}, Be = (e, t, n, r = "") => {
|
|
985
927
|
if (!e || !t) return e;
|
|
986
|
-
const i =
|
|
928
|
+
const i = ee(t), s = e.style;
|
|
987
929
|
if (!s) return e;
|
|
988
|
-
let a =
|
|
989
|
-
return typeof a == "string" && !P(a) && (a =
|
|
990
|
-
},
|
|
930
|
+
let a = E(n) && !(P(n) || M(n)) ? n?.value : n;
|
|
931
|
+
return typeof a == "string" && !P(a) && (a = We(a) ?? a), a == null ? (b(s, i, null, r), e) : (P(a) || typeof a == "number", b(s, i, String(a), r), e);
|
|
932
|
+
}, He = (e, t) => typeof e?.then == "function" ? e?.then?.(t) : t(e), T = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new Map(), kt = (e) => {
|
|
991
933
|
if (!e) return null;
|
|
992
934
|
if (x.has(e)) return x.get(e);
|
|
993
935
|
if (e instanceof Blob || e instanceof File) {
|
|
994
|
-
if (
|
|
936
|
+
if (T.has(e)) return T.get(e);
|
|
995
937
|
const t = URL.createObjectURL(e);
|
|
996
|
-
return
|
|
938
|
+
return T.set(e, t), x.set(t, t), t;
|
|
997
939
|
}
|
|
998
940
|
if (URL.canParse(e) || e?.trim?.()?.startsWith?.("./")) {
|
|
999
941
|
const t = fetch(e?.replace?.("?url", "?raw"), {
|
|
@@ -1002,22 +944,22 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
1002
944
|
priority: "high"
|
|
1003
945
|
})?.then?.(async (n) => {
|
|
1004
946
|
const r = await n.blob(), i = URL.createObjectURL(r);
|
|
1005
|
-
return
|
|
947
|
+
return T.set(r, i), x.set(e, i), x.set(i, i), i;
|
|
1006
948
|
});
|
|
1007
949
|
return x.set(e, t), t;
|
|
1008
950
|
}
|
|
1009
951
|
if (typeof e == "string") {
|
|
1010
952
|
const t = new Blob([e], { type: "text/css" }), n = URL.createObjectURL(t);
|
|
1011
|
-
return
|
|
953
|
+
return T.set(t, n), x.set(n, n), n;
|
|
1012
954
|
}
|
|
1013
955
|
return e;
|
|
1014
|
-
}, V = /* @__PURE__ */ new Map(),
|
|
956
|
+
}, V = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new WeakMap(), zt = (e) => {
|
|
1015
957
|
if (!e) return "";
|
|
1016
958
|
if (V.has(e)) return V.get(e) ?? "";
|
|
1017
959
|
if (e instanceof Blob || e instanceof File) {
|
|
1018
|
-
if (
|
|
1019
|
-
const t = e?.text?.()?.then?.((n) => (
|
|
1020
|
-
return
|
|
960
|
+
if (_.has(e)) return _.get(e) ?? "";
|
|
961
|
+
const t = e?.text?.()?.then?.((n) => (_.set(e, n), n));
|
|
962
|
+
return _.set(e, t), t;
|
|
1021
963
|
}
|
|
1022
964
|
if (URL.canParse(e) || e?.trim?.()?.startsWith?.("./")) {
|
|
1023
965
|
const t = fetch(e?.replace?.("?url", "?raw"), {
|
|
@@ -1031,49 +973,50 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
1031
973
|
return V.set(e, t), t;
|
|
1032
974
|
}
|
|
1033
975
|
return typeof e == "string" && V.set(e, e), e;
|
|
1034
|
-
},
|
|
1035
|
-
if (!e || !
|
|
976
|
+
}, ze = /* @__PURE__ */ new Map(), Le = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new WeakMap(), Yn = (e, t = "ux-query", n = null) => {
|
|
977
|
+
if (!e || !Ne()) return null;
|
|
1036
978
|
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;
|
|
1037
979
|
if (!s) return null;
|
|
1038
980
|
const a = `${t || ""}:${e}`;
|
|
1039
981
|
let o;
|
|
1040
982
|
if (i) {
|
|
1041
|
-
let
|
|
1042
|
-
|
|
983
|
+
let l = Le.get(r);
|
|
984
|
+
l || (l = /* @__PURE__ */ new Map(), Le.set(r, l)), o = l.get(a), o || (o = new CSSStyleSheet(), l.set(a, o), s.includes(o) || s.push(o));
|
|
1043
985
|
} else
|
|
1044
|
-
o =
|
|
986
|
+
o = ze.get(a), o || (o = new CSSStyleSheet(), ze.set(a, o), s.includes(o) || s.push(o));
|
|
1045
987
|
if (t) {
|
|
1046
|
-
let
|
|
988
|
+
let l;
|
|
1047
989
|
if (i) {
|
|
1048
990
|
let h = D.get(r);
|
|
1049
|
-
h || (h = /* @__PURE__ */ new Map(), D.set(r, h)),
|
|
1050
|
-
} else
|
|
1051
|
-
if (!
|
|
1052
|
-
const h = Array.from(o.cssRules || []),
|
|
1053
|
-
if (
|
|
991
|
+
h || (h = /* @__PURE__ */ new Map(), D.set(r, h)), l = h.get(t);
|
|
992
|
+
} else l = Te.get(t);
|
|
993
|
+
if (!l) {
|
|
994
|
+
const h = Array.from(o.cssRules || []), d = h.findIndex((f) => f instanceof CSSLayerBlockRule && f.name === t);
|
|
995
|
+
if (d === -1) try {
|
|
1054
996
|
o.insertRule(`@layer ${t} {}`, o.cssRules.length);
|
|
1055
997
|
const f = o.cssRules[o.cssRules.length - 1];
|
|
1056
|
-
f instanceof CSSLayerBlockRule && (
|
|
998
|
+
f instanceof CSSLayerBlockRule && (l = f);
|
|
1057
999
|
} catch {
|
|
1058
|
-
|
|
1000
|
+
l = void 0;
|
|
1059
1001
|
}
|
|
1060
|
-
else
|
|
1061
|
-
if (
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1002
|
+
else l = h[d];
|
|
1003
|
+
if (l)
|
|
1004
|
+
if (i) {
|
|
1005
|
+
let f = D.get(r);
|
|
1006
|
+
f || (f = /* @__PURE__ */ new Map(), D.set(r, f)), f.set(t, l);
|
|
1007
|
+
} else Te.set(t, l);
|
|
1065
1008
|
}
|
|
1066
|
-
if (
|
|
1067
|
-
let h = Array.from(
|
|
1009
|
+
if (l) {
|
|
1010
|
+
let h = Array.from(l.cssRules || []).findIndex((d) => d instanceof CSSStyleRule && d.selectorText?.trim?.() === e?.trim?.());
|
|
1068
1011
|
if (h === -1) try {
|
|
1069
|
-
h =
|
|
1012
|
+
h = l.insertRule(`${e} {}`, l.cssRules.length);
|
|
1070
1013
|
} catch {
|
|
1071
1014
|
return null;
|
|
1072
1015
|
}
|
|
1073
|
-
return
|
|
1016
|
+
return l.cssRules[h];
|
|
1074
1017
|
}
|
|
1075
1018
|
}
|
|
1076
|
-
let c = Array.from(o.cssRules || []).findIndex((
|
|
1019
|
+
let c = Array.from(o.cssRules || []).findIndex((l) => l instanceof CSSStyleRule && l.selectorText?.trim?.() === e?.trim?.());
|
|
1077
1020
|
if (c === -1) try {
|
|
1078
1021
|
c = o.insertRule(`${e} {}`, o.cssRules.length);
|
|
1079
1022
|
} catch {
|
|
@@ -1081,32 +1024,32 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
1081
1024
|
}
|
|
1082
1025
|
const u = o.cssRules[c];
|
|
1083
1026
|
return u instanceof CSSStyleRule ? u : null;
|
|
1084
|
-
}, S = (e, t, n, r = "") =>
|
|
1085
|
-
const n =
|
|
1027
|
+
}, S = (e, t, n, r = "") => te ? Pt(e, t, n, r) : Be(e, t, n, r), Gn = (e, t, n) => S(ge(e), t, n), Lt = (e, t) => {
|
|
1028
|
+
const n = ge(e);
|
|
1086
1029
|
return Object.entries(t).forEach(([r, i]) => S(n, r, i)), n;
|
|
1087
|
-
},
|
|
1030
|
+
}, Jn = async (e) => {
|
|
1088
1031
|
const t = await crypto?.subtle?.digest("SHA-256", typeof e == "string" ? new TextEncoder().encode(e) : e instanceof ArrayBuffer ? e : await e?.arrayBuffer?.());
|
|
1089
1032
|
return "sha256-" + btoa(String.fromCharCode.apply(null, new Uint8Array(t)));
|
|
1090
|
-
},
|
|
1091
|
-
const i =
|
|
1092
|
-
return t?.[0] && (t[0].fetchPriority = "high"), t && s && typeof s == "string" &&
|
|
1093
|
-
t?.[0] && a && (
|
|
1033
|
+
}, qe = (e, t, n = "", r) => {
|
|
1034
|
+
const i = kt(e), s = typeof e == "string" && URL.canParse(e) ? e : i;
|
|
1035
|
+
return t?.[0] && (t[0].fetchPriority = "high"), t && s && typeof s == "string" && Re(t, s, n), t?.[0] && (!URL.canParse(e) || r) && t?.[0] instanceof HTMLLinkElement, He(i, (a) => {
|
|
1036
|
+
t?.[0] && a && (Re(t, a, n), t?.[0].setAttribute("loaded", ""));
|
|
1094
1037
|
})?.catch?.((a) => {
|
|
1095
1038
|
console.warn("Failed to load style sheet:", a);
|
|
1096
1039
|
});
|
|
1097
|
-
},
|
|
1040
|
+
}, Tt = (e) => {
|
|
1098
1041
|
const t = typeof document < "u" ? document.createElement("link") : null;
|
|
1099
1042
|
return t && (t.fetchPriority = "high"), t ? (Object.assign(t, {
|
|
1100
1043
|
rel: "stylesheet",
|
|
1101
1044
|
type: "text/css",
|
|
1102
1045
|
crossOrigin: "same-origin"
|
|
1103
|
-
}), t.dataset.owner =
|
|
1046
|
+
}), t.dataset.owner = ye, qe(e, [t, "href"]), typeof document < "u" && document.head.append(t), t) : null;
|
|
1104
1047
|
}, j = (e, t = typeof document < "u" ? document?.head : null, n = "") => {
|
|
1105
1048
|
const r = t?.querySelector?.("head") ?? t;
|
|
1106
|
-
if (typeof HTMLHeadElement < "u" && r instanceof HTMLHeadElement) return
|
|
1049
|
+
if (typeof HTMLHeadElement < "u" && r instanceof HTMLHeadElement) return Tt(e);
|
|
1107
1050
|
const i = typeof document < "u" ? document.createElement("style") : null;
|
|
1108
|
-
return i ? (i.dataset.owner =
|
|
1109
|
-
},
|
|
1051
|
+
return i ? (i.dataset.owner = ye, qe(e, [i, "innerHTML"], n), r?.prepend?.(i), i) : null;
|
|
1052
|
+
}, Kn = (e, t, n, r = "") => S(e, t, n, r), Qn = (e) => Vt(e, ""), v = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new WeakMap(), Ve = (e, t) => {
|
|
1110
1053
|
if (!e || !t) return !1;
|
|
1111
1054
|
try {
|
|
1112
1055
|
return e.replaceSync(t), !0;
|
|
@@ -1114,10 +1057,10 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
1114
1057
|
const r = String(n?.message || "").toLowerCase();
|
|
1115
1058
|
return r.includes("@import rules are not allowed") || r.includes("@import") && r.includes("not allowed") || console.warn("[DOM] Failed to apply adopted stylesheet:", n), !1;
|
|
1116
1059
|
}
|
|
1117
|
-
},
|
|
1118
|
-
if (!
|
|
1060
|
+
}, Vt = (e, t = null) => {
|
|
1061
|
+
if (!Ne())
|
|
1119
1062
|
return typeof e == "string" && j(e, void 0, t || ""), null;
|
|
1120
|
-
if (typeof e == "string" &&
|
|
1063
|
+
if (typeof e == "string" && Ce(e))
|
|
1121
1064
|
return j(e, void 0, t || ""), null;
|
|
1122
1065
|
if (typeof e == "string" && v?.has?.(e)) {
|
|
1123
1066
|
const r = v.get(e);
|
|
@@ -1131,26 +1074,26 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
1131
1074
|
const n = typeof e == "string" ? v.getOrInsertComputed(e, (r) => new CSSStyleSheet()) : O.getOrInsertComputed(e, (r) => new CSSStyleSheet());
|
|
1132
1075
|
if (typeof document < "u" && document.adoptedStyleSheets && !document.adoptedStyleSheets.includes(n) && document.adoptedStyleSheets.push(n), typeof e == "string" && !URL.canParse(e)) {
|
|
1133
1076
|
const r = t ? `@layer ${t} { ${e} }` : e;
|
|
1134
|
-
return v.set(e, n),
|
|
1135
|
-
} else
|
|
1077
|
+
return v.set(e, n), Ve(n, r) || (oe(n), v.delete(e), j(e)), n;
|
|
1078
|
+
} else He(zt(e), (r) => {
|
|
1136
1079
|
if (v.set(r, n), r) {
|
|
1137
|
-
if (
|
|
1138
|
-
return
|
|
1080
|
+
if (Ce(r))
|
|
1081
|
+
return oe(n), v.delete(r), O.delete(e), j(r, void 0, t || ""), n;
|
|
1139
1082
|
const i = t ? `@layer ${t} { ${r} }` : r;
|
|
1140
|
-
return
|
|
1083
|
+
return Ve(n, i) || (oe(n), v.delete(r), O.delete(e), j(r, void 0, t || "")), n;
|
|
1141
1084
|
}
|
|
1142
1085
|
});
|
|
1143
1086
|
return n;
|
|
1144
|
-
},
|
|
1087
|
+
}, oe = (e) => {
|
|
1145
1088
|
if (!e) return !1;
|
|
1146
1089
|
const t = typeof e == "string" ? v.get(e) : e;
|
|
1147
1090
|
if (!t || typeof document > "u") return !1;
|
|
1148
1091
|
const n = document.adoptedStyleSheets, r = n.indexOf(t);
|
|
1149
1092
|
return r !== -1 ? (n.splice(r, 1), !0) : !1;
|
|
1150
|
-
},
|
|
1093
|
+
}, jt = (e, t) => {
|
|
1151
1094
|
const n = e.split(" ");
|
|
1152
|
-
return new DOMPoint(
|
|
1153
|
-
},
|
|
1095
|
+
return new DOMPoint(je(n[0], () => t.clientWidth), je(n[1], () => t.clientHeight));
|
|
1096
|
+
}, je = (e, t) => e.endsWith("%") ? parseFloat(e) / 100 * t() : parseFloat(e), er = (e) => {
|
|
1154
1097
|
if (e?.computedStyleMap) {
|
|
1155
1098
|
const t = e.computedStyleMap().get("transform")?.toMatrix?.();
|
|
1156
1099
|
if (t) return t;
|
|
@@ -1159,10 +1102,10 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
1159
1102
|
return new DOMMatrix(t?.getPropertyValue?.("transform"));
|
|
1160
1103
|
}
|
|
1161
1104
|
return new DOMMatrix();
|
|
1162
|
-
},
|
|
1105
|
+
}, tr = (e) => {
|
|
1163
1106
|
const t = getComputedStyle(e)?.getPropertyValue?.("transform-origin") || "50% 50%";
|
|
1164
|
-
return
|
|
1165
|
-
},
|
|
1107
|
+
return jt(t, e);
|
|
1108
|
+
}, W = (e, t) => {
|
|
1166
1109
|
if ("computedStyleMap" in e) {
|
|
1167
1110
|
const n = e?.computedStyleMap?.()?.get(t);
|
|
1168
1111
|
return n instanceof CSSUnitValue ? n?.value || 0 : n?.toString?.();
|
|
@@ -1172,7 +1115,7 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
1172
1115
|
return parseFloat(n?.getPropertyValue?.(t)?.replace?.("px", "")) || 0;
|
|
1173
1116
|
}
|
|
1174
1117
|
return parseFloat((e?.style ?? e).getPropertyValue?.(t)?.replace?.("px", "")) || 0;
|
|
1175
|
-
},
|
|
1118
|
+
}, nr = (e) => {
|
|
1176
1119
|
let t = 1, n = e;
|
|
1177
1120
|
for (; n; ) {
|
|
1178
1121
|
if ("currentCSSZoom" in n) {
|
|
@@ -1185,71 +1128,71 @@ var ne = typeof CSSStyleValue < "u" && typeof CSSUnitValue < "u", P = (e) => ne
|
|
|
1185
1128
|
n = n?.offsetParent ?? n?.parentElement;
|
|
1186
1129
|
}
|
|
1187
1130
|
return t;
|
|
1188
|
-
},
|
|
1131
|
+
}, rr = (e, t) => W?.(e, t), ir = (e, t) => t == "inline" ? W(e, "padding-inline-start") + W(e, "padding-inline-end") : W(e, "padding-block-start") + W(e, "padding-block-end"), _e = /* @__PURE__ */ new WeakMap(), Ot = (e, t, n) => (new WeakRef(e), t.has(n) || t.add(n), e), or = (e, t) => {
|
|
1189
1132
|
if (e) {
|
|
1190
1133
|
if (t) {
|
|
1191
|
-
const n =
|
|
1192
|
-
[...t?.values?.() || []].map((r) =>
|
|
1134
|
+
const n = _e.getOrInsert(e, /* @__PURE__ */ new Set());
|
|
1135
|
+
[...t?.values?.() || []].map((r) => Ot(e, n, r));
|
|
1193
1136
|
}
|
|
1194
1137
|
return e;
|
|
1195
1138
|
}
|
|
1196
|
-
},
|
|
1139
|
+
}, Wt = /* @__PURE__ */ Symbol.for("dom.ts@namedStoreMaps"), $ = globalThis[Wt] ??= /* @__PURE__ */ new Map(), Ft = (e, t) => {
|
|
1197
1140
|
const n = [...e.entries() || []];
|
|
1198
1141
|
return new Map(n?.map?.(([r, i]) => [r, i?.get?.(t)])?.filter?.(([r, i]) => !!i) || []);
|
|
1199
|
-
},
|
|
1200
|
-
if (!
|
|
1201
|
-
let r =
|
|
1202
|
-
return r || (r = /* @__PURE__ */ new WeakMap(),
|
|
1203
|
-
},
|
|
1142
|
+
}, It = (e) => (typeof e == "object" || typeof e == "function") && e != null, $t = (e, t, n) => {
|
|
1143
|
+
if (!It(e) && e != null) return e;
|
|
1144
|
+
let r = $.get(t);
|
|
1145
|
+
return r || (r = /* @__PURE__ */ new WeakMap(), $.set(t, r)), !r.has(e) && e != null && r.set(e, n), e;
|
|
1146
|
+
}, ar = (e, t) => {
|
|
1204
1147
|
if (!(!e || !t)) {
|
|
1205
|
-
for (const [n, r] of t.entries())
|
|
1148
|
+
for (const [n, r] of t.entries()) $t(e, n, r);
|
|
1206
1149
|
return e;
|
|
1207
1150
|
}
|
|
1208
|
-
},
|
|
1151
|
+
}, sr = (e, t) => {
|
|
1209
1152
|
if (e) {
|
|
1210
1153
|
if (t) {
|
|
1211
1154
|
const n = w?.get?.(e) ?? /* @__PURE__ */ new WeakSet();
|
|
1212
|
-
w?.has?.(e) || w?.set?.(e, n), [...t?.values?.() || []].map((r) =>
|
|
1155
|
+
w?.has?.(e) || w?.set?.(e, n), [...t?.values?.() || []].map((r) => Nt(e, r, n));
|
|
1213
1156
|
}
|
|
1214
1157
|
return e;
|
|
1215
1158
|
}
|
|
1216
|
-
},
|
|
1217
|
-
storeSet:
|
|
1159
|
+
}, I = (e) => ({
|
|
1160
|
+
storeSet: Ft($, e),
|
|
1218
1161
|
mixinSet: w?.get?.(e),
|
|
1219
|
-
behaviorSet:
|
|
1220
|
-
}),
|
|
1162
|
+
behaviorSet: _e?.get?.(e)
|
|
1163
|
+
}), Nt = (e, t, n) => {
|
|
1221
1164
|
const r = new WeakRef(e);
|
|
1222
|
-
return n ||= w?.get?.(e), n?.has?.(t) || (n?.add?.(t), C?.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,
|
|
1223
|
-
},
|
|
1224
|
-
typeof t == "string" && (t =
|
|
1225
|
-
const n = /* @__PURE__ */ new Set([...e?.getAttribute?.("data-mixin")?.split?.(" ") || []]), r = new Set([...n].map((a) =>
|
|
1165
|
+
return n ||= w?.get?.(e), n?.has?.(t) || (n?.add?.(t), C?.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, I(e))), e;
|
|
1166
|
+
}, Bt = /* @__PURE__ */ Symbol.for("dom.ts@boundMixinSet"), w = globalThis[Bt] ??= /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ Symbol.for("dom.ts@mixinElements"), C = globalThis[Ht] ??= /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ Symbol.for("dom.ts@mixinRegistry"), N = globalThis[qt] ??= /* @__PURE__ */ new Map(), _t = /* @__PURE__ */ Symbol.for("dom.ts@mixinNamespace"), K = globalThis[_t] ??= /* @__PURE__ */ new WeakMap(), De = (e, t) => {
|
|
1167
|
+
typeof t == "string" && (t = N?.get?.(t));
|
|
1168
|
+
const n = /* @__PURE__ */ new Set([...e?.getAttribute?.("data-mixin")?.split?.(" ") || []]), r = new Set([...n].map((a) => N?.get?.(a)).filter((a) => !!a)), i = w?.get?.(e) ?? /* @__PURE__ */ new WeakSet();
|
|
1226
1169
|
C?.has?.(t) || C?.set?.(t, /* @__PURE__ */ new WeakSet()), w?.has?.(e) || w?.set?.(e, i);
|
|
1227
1170
|
const s = new WeakRef(e);
|
|
1228
|
-
i?.has?.(t) || (r.has(t) || t?.disconnect?.(s, t,
|
|
1229
|
-
},
|
|
1171
|
+
i?.has?.(t) || (r.has(t) || t?.disconnect?.(s, t, I(e)), (r.has(t) || !C?.get?.(t)?.has?.(e)) && (t?.connect?.(s, t, I(e)), n.add(K?.get?.(t)), i?.add?.(t), e?.setAttribute?.("data-mixin", [...n].filter((a) => !!a).join(" "))), C?.get?.(t)?.add?.(e)), i?.has?.(t) && (r.has(t) || (i?.delete?.(t), t?.disconnect?.(s, t, I(e))));
|
|
1172
|
+
}, fe = /* @__PURE__ */ new Set(), Dt = (e = typeof document < "u" ? document : null) => {
|
|
1230
1173
|
if (e)
|
|
1231
|
-
return
|
|
1232
|
-
for (const n of t.addedNodes) n instanceof HTMLElement &&
|
|
1174
|
+
return fe?.has?.(e) || (fe?.add?.(e), me(e, "*", "data-mixin", (t) => pe(t.target)), St(e, "[data-mixin]", (t) => {
|
|
1175
|
+
for (const n of t.addedNodes) n instanceof HTMLElement && pe(n);
|
|
1233
1176
|
})), e;
|
|
1234
|
-
},
|
|
1177
|
+
}, pe = (e) => {
|
|
1235
1178
|
const t = /* @__PURE__ */ new Set([...e?.getAttribute?.("data-mixin")?.split?.(" ") || []]);
|
|
1236
|
-
[...new Set([...t].map((n) =>
|
|
1237
|
-
},
|
|
1238
|
-
e.forEach((n) => t ?
|
|
1239
|
-
},
|
|
1240
|
-
for (const t of
|
|
1241
|
-
},
|
|
1242
|
-
|
|
1243
|
-
}),
|
|
1244
|
-
if (!
|
|
1179
|
+
[...new Set([...t].map((n) => N?.get?.(n)).filter((n) => !!n))].map?.((n) => De(e, n));
|
|
1180
|
+
}, Zt = (e, t) => {
|
|
1181
|
+
e.forEach((n) => t ? De(n, t) : pe(n));
|
|
1182
|
+
}, Ut = (e) => {
|
|
1183
|
+
for (const t of fe) Zt(t?.querySelectorAll?.("[data-mixin]"), e);
|
|
1184
|
+
}, Xt = new FinalizationRegistry((e) => {
|
|
1185
|
+
N?.delete?.(e);
|
|
1186
|
+
}), Yt = (e, t) => {
|
|
1187
|
+
if (!K?.has?.(t)) {
|
|
1245
1188
|
const n = e?.trim?.();
|
|
1246
|
-
n && (
|
|
1189
|
+
n && (K?.set?.(t, n), N?.set?.(n, t), Xt?.register?.(t, n), Ut(t));
|
|
1247
1190
|
}
|
|
1248
1191
|
};
|
|
1249
|
-
|
|
1250
|
-
var
|
|
1192
|
+
Dt(typeof document < "u" ? document : null);
|
|
1193
|
+
var ve = class {
|
|
1251
1194
|
constructor(e = null) {
|
|
1252
|
-
e &&
|
|
1195
|
+
e && Yt(e, this);
|
|
1253
1196
|
}
|
|
1254
1197
|
connect(e, t, n) {
|
|
1255
1198
|
return this;
|
|
@@ -1258,29 +1201,29 @@ var we = class {
|
|
|
1258
1201
|
return this;
|
|
1259
1202
|
}
|
|
1260
1203
|
storeForElement(e) {
|
|
1261
|
-
return
|
|
1204
|
+
return $.get(this.name || "")?.get?.(e);
|
|
1262
1205
|
}
|
|
1263
1206
|
relatedForElement(e) {
|
|
1264
|
-
return
|
|
1207
|
+
return I(e);
|
|
1265
1208
|
}
|
|
1266
1209
|
get elements() {
|
|
1267
1210
|
return C?.get?.(this);
|
|
1268
1211
|
}
|
|
1269
1212
|
get storage() {
|
|
1270
|
-
return
|
|
1213
|
+
return $?.get?.(this.name || "");
|
|
1271
1214
|
}
|
|
1272
1215
|
get name() {
|
|
1273
|
-
return
|
|
1216
|
+
return K?.get?.(this);
|
|
1274
1217
|
}
|
|
1275
|
-
},
|
|
1218
|
+
}, cr = (e, t, n) => {
|
|
1276
1219
|
const r = n;
|
|
1277
|
-
|
|
1278
|
-
const i = (n =
|
|
1220
|
+
E(n) && (n = n.value);
|
|
1221
|
+
const i = (n = he(n)) != null && n !== !1;
|
|
1279
1222
|
return B(r, () => {
|
|
1280
1223
|
e instanceof HTMLInputElement ? e.hidden = !i : i ? e?.removeAttribute?.("data-hidden") : e?.setAttribute?.("data-hidden", "");
|
|
1281
1224
|
}), e;
|
|
1282
|
-
},
|
|
1283
|
-
if (!(t = typeof t == "string" ?
|
|
1225
|
+
}, ur = (e, t, n) => {
|
|
1226
|
+
if (!(t = typeof t == "string" ? Oe(t) : t) || !e || [
|
|
1284
1227
|
"style",
|
|
1285
1228
|
"dataset",
|
|
1286
1229
|
"attributeStyleMap",
|
|
@@ -1288,29 +1231,29 @@ var we = class {
|
|
|
1288
1231
|
"computedStyleMap"
|
|
1289
1232
|
].indexOf(t || "") != -1) return e;
|
|
1290
1233
|
const r = n;
|
|
1291
|
-
return
|
|
1234
|
+
return E(n) && (n = n.value), e?.[t] === n || e?.[t] !== n && B(r, () => {
|
|
1292
1235
|
n != null ? e[t] = n : delete e[t];
|
|
1293
1236
|
}), e;
|
|
1294
|
-
},
|
|
1237
|
+
}, dr = (e, t, n) => {
|
|
1295
1238
|
const r = e?.dataset;
|
|
1296
1239
|
if (!t || !e || !r) return e;
|
|
1297
1240
|
const i = n;
|
|
1298
|
-
return
|
|
1241
|
+
return E(n) && (n = n?.value), t = Oe(t), r?.[t] === (n = he(n)) || (n == null || n === !1 ? delete r[t] : B(i, () => {
|
|
1299
1242
|
typeof n != "object" && typeof n != "function" ? r[t] = String(n) : delete r[t];
|
|
1300
1243
|
})), e;
|
|
1301
|
-
},
|
|
1244
|
+
}, Gt = (e, t) => e.style.removeProperty(ee(t)), lr = (e, t, n) => {
|
|
1302
1245
|
const r = e?.style;
|
|
1303
1246
|
return !t || typeof t != "string" || !e || !r || B(n, () => {
|
|
1304
|
-
|
|
1247
|
+
Ye(n) || E(n) || Ge(n) ? S(e, t, n) : n == null && Gt(e, t);
|
|
1305
1248
|
}), e;
|
|
1306
|
-
},
|
|
1249
|
+
}, fr = (e, t, n) => {
|
|
1307
1250
|
if (!t || !e) return e;
|
|
1308
1251
|
const r = n;
|
|
1309
|
-
return
|
|
1252
|
+
return E(n) && (n = n.value), t = ee(t), e?.getAttribute?.(t) === (n = he(n)) || B(r, () => {
|
|
1310
1253
|
typeof n != "object" && typeof n != "function" && n != null && (typeof n != "boolean" || n == !0) ? e?.setAttribute?.(t, String(n)) : e?.removeAttribute?.(t);
|
|
1311
1254
|
}), e;
|
|
1312
1255
|
};
|
|
1313
|
-
function
|
|
1256
|
+
function ae(e, t) {
|
|
1314
1257
|
const n = Math.min(e.x, t.x), r = Math.min(e.y, t.y), i = Math.max(e.x, t.x), s = Math.max(e.y, t.y);
|
|
1315
1258
|
return {
|
|
1316
1259
|
left: n,
|
|
@@ -1321,12 +1264,12 @@ function se(e, t) {
|
|
|
1321
1264
|
height: s - r
|
|
1322
1265
|
};
|
|
1323
1266
|
}
|
|
1324
|
-
var
|
|
1267
|
+
var Z = {
|
|
1325
1268
|
start: "junction-select:start",
|
|
1326
1269
|
move: "junction-select:move",
|
|
1327
1270
|
end: "junction-select:end",
|
|
1328
1271
|
cancel: "junction-select:cancel"
|
|
1329
|
-
},
|
|
1272
|
+
}, se = {
|
|
1330
1273
|
start: "junction-drag:start",
|
|
1331
1274
|
move: "junction-drag:move",
|
|
1332
1275
|
end: "junction-drag:end"
|
|
@@ -1334,27 +1277,27 @@ var U = {
|
|
|
1334
1277
|
start: "junction-resize:start",
|
|
1335
1278
|
move: "junction-resize:move",
|
|
1336
1279
|
end: "junction-resize:end"
|
|
1337
|
-
},
|
|
1338
|
-
const r =
|
|
1339
|
-
i.push(n), r.set(t, i),
|
|
1340
|
-
},
|
|
1341
|
-
const n =
|
|
1280
|
+
}, Jt = /* @__PURE__ */ Symbol.for("dom.ts@mixinDisposers"), Q = globalThis[Jt] ??= /* @__PURE__ */ new WeakMap(), g = (e, t, n) => {
|
|
1281
|
+
const r = Q.get(e) ?? /* @__PURE__ */ new Map(), i = r.get(t) ?? [];
|
|
1282
|
+
i.push(n), r.set(t, i), Q.set(e, r);
|
|
1283
|
+
}, be = (e, t) => {
|
|
1284
|
+
const n = Q.get(e), r = n?.get(t);
|
|
1342
1285
|
if (r) {
|
|
1343
1286
|
for (const i of r) try {
|
|
1344
1287
|
i();
|
|
1345
1288
|
} catch {
|
|
1346
1289
|
}
|
|
1347
|
-
n.delete(t), n.size === 0 &&
|
|
1290
|
+
n.delete(t), n.size === 0 && Q.delete(e);
|
|
1348
1291
|
}
|
|
1349
|
-
},
|
|
1292
|
+
}, A = (e, t) => {
|
|
1350
1293
|
const n = globalThis.getComputedStyle?.(e)?.getPropertyValue?.(t)?.trim?.() ?? "", r = parseFloat(n);
|
|
1351
1294
|
return Number.isFinite(r) ? r : 0;
|
|
1352
|
-
},
|
|
1295
|
+
}, Ze = (e, t, n) => {
|
|
1353
1296
|
const r = e.getAttribute(t)?.trim();
|
|
1354
1297
|
if (!r) return n;
|
|
1355
1298
|
const i = e.querySelector(r);
|
|
1356
1299
|
return i instanceof HTMLElement ? i : n;
|
|
1357
|
-
},
|
|
1300
|
+
}, Kt = class extends ve {
|
|
1358
1301
|
constructor() {
|
|
1359
1302
|
super("ui-junction-select");
|
|
1360
1303
|
}
|
|
@@ -1377,14 +1320,14 @@ var U = {
|
|
|
1377
1320
|
y: p.clientY - y.top
|
|
1378
1321
|
};
|
|
1379
1322
|
}, c = () => {
|
|
1380
|
-
const p =
|
|
1323
|
+
const p = ae(s, a);
|
|
1381
1324
|
if (p.width < 1 && p.height < 1) {
|
|
1382
1325
|
n.style.display = "none";
|
|
1383
1326
|
return;
|
|
1384
1327
|
}
|
|
1385
1328
|
n.style.display = "block", n.style.left = `${p.left}px`, n.style.top = `${p.top}px`, n.style.width = `${p.width}px`, n.style.height = `${p.height}px`;
|
|
1386
1329
|
}, u = (p) => {
|
|
1387
|
-
p.button === 0 && (p.target?.closest?.("[data-junction-ignore-select], [data-junction-drag-handle], [data-junction-resize-handle], button, a, input, textarea, select") || (p.target === t || t.contains(p.target)) && (i = !0, s = o(p), a = { ...s }, t.setPointerCapture(p.pointerId), t.dispatchEvent(new CustomEvent(
|
|
1330
|
+
p.button === 0 && (p.target?.closest?.("[data-junction-ignore-select], [data-junction-drag-handle], [data-junction-resize-handle], button, a, input, textarea, select") || (p.target === t || t.contains(p.target)) && (i = !0, s = o(p), a = { ...s }, t.setPointerCapture(p.pointerId), t.dispatchEvent(new CustomEvent(Z.start, {
|
|
1388
1331
|
bubbles: !0,
|
|
1389
1332
|
detail: {
|
|
1390
1333
|
a: { ...s },
|
|
@@ -1392,11 +1335,11 @@ var U = {
|
|
|
1392
1335
|
host: t
|
|
1393
1336
|
}
|
|
1394
1337
|
})), c()));
|
|
1395
|
-
},
|
|
1338
|
+
}, l = (p) => {
|
|
1396
1339
|
if (!i) return;
|
|
1397
1340
|
a = o(p), c();
|
|
1398
|
-
const y =
|
|
1399
|
-
t.dispatchEvent(new CustomEvent(
|
|
1341
|
+
const y = ae(s, a);
|
|
1342
|
+
t.dispatchEvent(new CustomEvent(Z.move, {
|
|
1400
1343
|
bubbles: !0,
|
|
1401
1344
|
detail: {
|
|
1402
1345
|
a: { ...s },
|
|
@@ -1412,8 +1355,8 @@ var U = {
|
|
|
1412
1355
|
t.releasePointerCapture(p.pointerId);
|
|
1413
1356
|
} catch {
|
|
1414
1357
|
}
|
|
1415
|
-
const y =
|
|
1416
|
-
t.dispatchEvent(new CustomEvent(
|
|
1358
|
+
const y = ae(s, a);
|
|
1359
|
+
t.dispatchEvent(new CustomEvent(Z.end, {
|
|
1417
1360
|
bubbles: !0,
|
|
1418
1361
|
detail: {
|
|
1419
1362
|
a: { ...s },
|
|
@@ -1422,7 +1365,7 @@ var U = {
|
|
|
1422
1365
|
host: t
|
|
1423
1366
|
}
|
|
1424
1367
|
}));
|
|
1425
|
-
},
|
|
1368
|
+
}, d = (p) => {
|
|
1426
1369
|
i && h(p);
|
|
1427
1370
|
}, f = (p) => {
|
|
1428
1371
|
if (i) {
|
|
@@ -1431,7 +1374,7 @@ var U = {
|
|
|
1431
1374
|
t.releasePointerCapture(p.pointerId);
|
|
1432
1375
|
} catch {
|
|
1433
1376
|
}
|
|
1434
|
-
t.dispatchEvent(new CustomEvent(
|
|
1377
|
+
t.dispatchEvent(new CustomEvent(Z.cancel, {
|
|
1435
1378
|
bubbles: !0,
|
|
1436
1379
|
detail: { host: t }
|
|
1437
1380
|
}));
|
|
@@ -1439,83 +1382,83 @@ var U = {
|
|
|
1439
1382
|
};
|
|
1440
1383
|
return g(t, "ui-junction-select", () => {
|
|
1441
1384
|
n.remove();
|
|
1442
|
-
}), g(t, "ui-junction-select", m(t, "pointerdown", u)), g(t, "ui-junction-select", m(t, "pointermove",
|
|
1385
|
+
}), g(t, "ui-junction-select", m(t, "pointerdown", u)), g(t, "ui-junction-select", m(t, "pointermove", l)), g(t, "ui-junction-select", m(t, "pointerup", d)), g(t, "ui-junction-select", m(t, "pointercancel", f)), this;
|
|
1443
1386
|
}
|
|
1444
1387
|
disconnect(e) {
|
|
1445
1388
|
const t = e?.deref?.();
|
|
1446
|
-
return t &&
|
|
1389
|
+
return t && be(t, "ui-junction-select"), this;
|
|
1447
1390
|
}
|
|
1448
|
-
},
|
|
1391
|
+
}, Qt = class extends ve {
|
|
1449
1392
|
constructor() {
|
|
1450
1393
|
super("ui-junction-drag");
|
|
1451
1394
|
}
|
|
1452
1395
|
connect(e) {
|
|
1453
1396
|
const t = e?.deref?.();
|
|
1454
1397
|
if (!t) return this;
|
|
1455
|
-
S(t, "--jx-drag-x",
|
|
1398
|
+
S(t, "--jx-drag-x", A(t, "--jx-drag-x")), S(t, "--jx-drag-y", A(t, "--jx-drag-y"));
|
|
1456
1399
|
const n = t.style.transform;
|
|
1457
1400
|
(!t.style.transform || t.style.transform === "none") && (t.style.transform = "translate3d(calc(var(--jx-drag-x, 0) * 1px), calc(var(--jx-drag-y, 0) * 1px), 0)");
|
|
1458
|
-
const r =
|
|
1401
|
+
const r = Ze(t, "data-junction-drag-handle", t);
|
|
1459
1402
|
let i = !1, s = 0, a = 0, o = 0, c = 0;
|
|
1460
|
-
const u = (
|
|
1461
|
-
|
|
1403
|
+
const u = (d) => {
|
|
1404
|
+
d.button === 0 && (d.target !== r && !r.contains(d.target) || (i = !0, s = d.clientX, a = d.clientY, o = A(t, "--jx-drag-x"), c = A(t, "--jx-drag-y"), r.setPointerCapture(d.pointerId), t.dispatchEvent(new CustomEvent(se.start, {
|
|
1462
1405
|
bubbles: !0,
|
|
1463
1406
|
detail: {
|
|
1464
1407
|
host: t,
|
|
1465
|
-
clientX:
|
|
1466
|
-
clientY:
|
|
1408
|
+
clientX: d.clientX,
|
|
1409
|
+
clientY: d.clientY,
|
|
1467
1410
|
baseX: o,
|
|
1468
1411
|
baseY: c
|
|
1469
1412
|
}
|
|
1470
1413
|
}))));
|
|
1471
|
-
},
|
|
1414
|
+
}, l = (d) => {
|
|
1472
1415
|
if (!i) return;
|
|
1473
|
-
const f =
|
|
1474
|
-
S(t, "--jx-drag-x", y), S(t, "--jx-drag-y",
|
|
1416
|
+
const f = d.clientX - s, p = d.clientY - a, y = o + f, q = c + p;
|
|
1417
|
+
S(t, "--jx-drag-x", y), S(t, "--jx-drag-y", q), t.dispatchEvent(new CustomEvent(se.move, {
|
|
1475
1418
|
bubbles: !0,
|
|
1476
1419
|
detail: {
|
|
1477
1420
|
host: t,
|
|
1478
1421
|
dx: f,
|
|
1479
1422
|
dy: p,
|
|
1480
1423
|
x: y,
|
|
1481
|
-
y:
|
|
1424
|
+
y: q
|
|
1482
1425
|
}
|
|
1483
1426
|
}));
|
|
1484
|
-
}, h = (
|
|
1427
|
+
}, h = (d) => {
|
|
1485
1428
|
if (i) {
|
|
1486
1429
|
i = !1;
|
|
1487
1430
|
try {
|
|
1488
|
-
r.releasePointerCapture(
|
|
1431
|
+
r.releasePointerCapture(d.pointerId);
|
|
1489
1432
|
} catch {
|
|
1490
1433
|
}
|
|
1491
|
-
t.dispatchEvent(new CustomEvent(
|
|
1434
|
+
t.dispatchEvent(new CustomEvent(se.end, {
|
|
1492
1435
|
bubbles: !0,
|
|
1493
1436
|
detail: {
|
|
1494
1437
|
host: t,
|
|
1495
|
-
x:
|
|
1496
|
-
y:
|
|
1438
|
+
x: A(t, "--jx-drag-x"),
|
|
1439
|
+
y: A(t, "--jx-drag-y")
|
|
1497
1440
|
}
|
|
1498
1441
|
}));
|
|
1499
1442
|
}
|
|
1500
1443
|
};
|
|
1501
1444
|
return g(t, "ui-junction-drag", () => {
|
|
1502
1445
|
t.style.transform = n;
|
|
1503
|
-
}), g(t, "ui-junction-drag", m(r, "pointerdown", u)), g(t, "ui-junction-drag", m(r, "pointermove",
|
|
1446
|
+
}), g(t, "ui-junction-drag", m(r, "pointerdown", u)), g(t, "ui-junction-drag", m(r, "pointermove", l)), g(t, "ui-junction-drag", m(r, "pointerup", h)), g(t, "ui-junction-drag", m(r, "pointercancel", h)), this;
|
|
1504
1447
|
}
|
|
1505
1448
|
disconnect(e) {
|
|
1506
1449
|
const t = e?.deref?.();
|
|
1507
|
-
return t &&
|
|
1450
|
+
return t && be(t, "ui-junction-drag"), this;
|
|
1508
1451
|
}
|
|
1509
|
-
},
|
|
1452
|
+
}, en = class extends ve {
|
|
1510
1453
|
constructor() {
|
|
1511
1454
|
super("ui-junction-resize");
|
|
1512
1455
|
}
|
|
1513
1456
|
connect(e) {
|
|
1514
1457
|
const t = e?.deref?.();
|
|
1515
1458
|
if (!t) return this;
|
|
1516
|
-
const n =
|
|
1459
|
+
const n = Ze(t, "data-junction-resize-handle", t);
|
|
1517
1460
|
let r = !1, i = 0, s = 0, a = 0, o = 0;
|
|
1518
|
-
const c = Math.max(120, parseFloat(t.getAttribute("data-junction-resize-min-w") || "") || 120), u = Math.max(80, parseFloat(t.getAttribute("data-junction-resize-min-h") || "") || 80),
|
|
1461
|
+
const c = Math.max(120, parseFloat(t.getAttribute("data-junction-resize-min-w") || "") || 120), u = Math.max(80, parseFloat(t.getAttribute("data-junction-resize-min-h") || "") || 80), l = (f) => {
|
|
1519
1462
|
f.button === 0 && (f.target !== n && !n.contains(f.target) || (r = !0, i = f.clientX, s = f.clientY, a = t.offsetWidth, o = t.offsetHeight, n.setPointerCapture(f.pointerId), t.dispatchEvent(new CustomEvent(ce.start, {
|
|
1520
1463
|
bubbles: !0,
|
|
1521
1464
|
detail: {
|
|
@@ -1535,7 +1478,7 @@ var U = {
|
|
|
1535
1478
|
height: y
|
|
1536
1479
|
}
|
|
1537
1480
|
}));
|
|
1538
|
-
},
|
|
1481
|
+
}, d = (f) => {
|
|
1539
1482
|
if (r) {
|
|
1540
1483
|
r = !1;
|
|
1541
1484
|
try {
|
|
@@ -1552,165 +1495,158 @@ var U = {
|
|
|
1552
1495
|
}));
|
|
1553
1496
|
}
|
|
1554
1497
|
};
|
|
1555
|
-
return g(t, "ui-junction-resize", m(n, "pointerdown",
|
|
1498
|
+
return g(t, "ui-junction-resize", m(n, "pointerdown", l)), g(t, "ui-junction-resize", m(n, "pointermove", h)), g(t, "ui-junction-resize", m(n, "pointerup", d)), g(t, "ui-junction-resize", m(n, "pointercancel", d)), this;
|
|
1556
1499
|
}
|
|
1557
1500
|
disconnect(e) {
|
|
1558
1501
|
const t = e?.deref?.();
|
|
1559
|
-
return t &&
|
|
1502
|
+
return t && be(t, "ui-junction-resize"), this;
|
|
1560
1503
|
}
|
|
1561
1504
|
};
|
|
1562
|
-
new
|
|
1563
|
-
new
|
|
1564
|
-
new
|
|
1505
|
+
new Kt();
|
|
1506
|
+
new Qt();
|
|
1507
|
+
new en();
|
|
1565
1508
|
export {
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1509
|
+
ve as DOMMixin,
|
|
1510
|
+
Qt as JunctionDragMixin,
|
|
1511
|
+
en as JunctionResizeMixin,
|
|
1512
|
+
Kt as JunctionSelectMixin,
|
|
1513
|
+
bn as MATCH,
|
|
1514
|
+
Pn as MOC,
|
|
1515
|
+
ue as MOCElement,
|
|
1516
|
+
sn as RAFBehavior,
|
|
1517
|
+
Sn as REGEX,
|
|
1518
|
+
cn as ROOT,
|
|
1519
|
+
Un as WavyShapedCircle,
|
|
1520
|
+
nn as __exportProperties,
|
|
1521
|
+
we as __registeredCssProperties,
|
|
1579
1522
|
m as addEvent,
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1523
|
+
J as addEvents,
|
|
1524
|
+
An as addEventsList,
|
|
1525
|
+
Dt as addRoot,
|
|
1583
1526
|
O as adoptedBlobMap,
|
|
1584
|
-
Oe as adoptedLayerMap,
|
|
1585
1527
|
v as adoptedMap,
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
k as blobURLMap,
|
|
1598
|
-
Y as borderBoxHeight,
|
|
1599
|
-
X as borderBoxWidth,
|
|
1600
|
-
Ue as boundBehaviors,
|
|
1528
|
+
gt as animateHide,
|
|
1529
|
+
yt as animateShow,
|
|
1530
|
+
le as availSize,
|
|
1531
|
+
On as bbh,
|
|
1532
|
+
jn as bbw,
|
|
1533
|
+
Ot as bindBehavior,
|
|
1534
|
+
Nt as bindMixins,
|
|
1535
|
+
$t as bindStore,
|
|
1536
|
+
X as borderBoxHeight,
|
|
1537
|
+
U as borderBoxWidth,
|
|
1538
|
+
_e as boundBehaviors,
|
|
1601
1539
|
w as boundMixinSet,
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
Xt as loadAsAdopted,
|
|
1658
|
-
_t as loadBlobStyle,
|
|
1540
|
+
Fn as cbh,
|
|
1541
|
+
Wn as cbw,
|
|
1542
|
+
Ln as changeZoom,
|
|
1543
|
+
In as classes,
|
|
1544
|
+
ht as computeCaretPosition,
|
|
1545
|
+
Bn as computeCaretPositionFromClient,
|
|
1546
|
+
Rn as containsOrSelf,
|
|
1547
|
+
G as contentBoxHeight,
|
|
1548
|
+
Y as contentBoxWidth,
|
|
1549
|
+
wn as createElementVanilla,
|
|
1550
|
+
Gt as deleteStyleProperty,
|
|
1551
|
+
rn as detectMobile,
|
|
1552
|
+
pn as doBorderObserve,
|
|
1553
|
+
fn as doContentObserve,
|
|
1554
|
+
kt as fetchAndCache,
|
|
1555
|
+
zt as fetchAsInline,
|
|
1556
|
+
$n as fixOrientToScreen,
|
|
1557
|
+
Tn as fixedClientZoom,
|
|
1558
|
+
Yn as getAdoptedStyleRule,
|
|
1559
|
+
Ie as getAvailSize,
|
|
1560
|
+
Vn as getBoundingOrientRect,
|
|
1561
|
+
lt as getCorrectOrientation,
|
|
1562
|
+
I as getElementRelated,
|
|
1563
|
+
nr as getElementZoom,
|
|
1564
|
+
Cn as getEventTarget,
|
|
1565
|
+
nt as getOffsetParent,
|
|
1566
|
+
on as getOffsetParentChain,
|
|
1567
|
+
ir as getPadding,
|
|
1568
|
+
W as getPropertyValue,
|
|
1569
|
+
rr as getPxValue,
|
|
1570
|
+
Ft as getStoresOfElement,
|
|
1571
|
+
wt as getStyleLayer,
|
|
1572
|
+
ge as getStyleRule,
|
|
1573
|
+
er as getTransform,
|
|
1574
|
+
tr as getTransformOrigin,
|
|
1575
|
+
zn as getZoom,
|
|
1576
|
+
fr as handleAttribute,
|
|
1577
|
+
dr as handleDataset,
|
|
1578
|
+
cr as handleHidden,
|
|
1579
|
+
ur as handleProperty,
|
|
1580
|
+
lr as handleStyleChange,
|
|
1581
|
+
ne as hasParent,
|
|
1582
|
+
Jn as hash,
|
|
1583
|
+
mn as html,
|
|
1584
|
+
En as includeSelf,
|
|
1585
|
+
vn as indexOf,
|
|
1586
|
+
$e as initTextStyle,
|
|
1587
|
+
Zn as initVisibility,
|
|
1588
|
+
xn as isElement,
|
|
1589
|
+
kn as isInFocus,
|
|
1590
|
+
et as isMobile,
|
|
1591
|
+
an as isNearlyIdentity,
|
|
1592
|
+
gn as isValidParent,
|
|
1593
|
+
Vt as loadAsAdopted,
|
|
1594
|
+
Tt as loadBlobStyle,
|
|
1659
1595
|
j as loadInlineStyle,
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1596
|
+
qe as loadStyleSheet,
|
|
1597
|
+
rt as makeRAFCycle,
|
|
1598
|
+
Nn as measureInputInFocus,
|
|
1599
|
+
pt as measureText,
|
|
1600
|
+
Q as mixinDisposers,
|
|
1665
1601
|
C as mixinElements,
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1602
|
+
K as mixinNamespace,
|
|
1603
|
+
N as mixinRegistry,
|
|
1604
|
+
Xt as nameRegistryF,
|
|
1605
|
+
$ as namedStoreMaps,
|
|
1606
|
+
Dn as observeAttribute,
|
|
1607
|
+
me as observeAttributeBySelector,
|
|
1608
|
+
_n as observeBorderBox,
|
|
1609
|
+
St as observeBySelector,
|
|
1610
|
+
qn as observeContentBox,
|
|
1611
|
+
Ee as onBorderObserve,
|
|
1612
|
+
Ae as onContentObserve,
|
|
1613
|
+
k as orientOf,
|
|
1614
|
+
ut as orientationNumberMap,
|
|
1615
|
+
je as parseLength,
|
|
1616
|
+
jt as parseOrigin,
|
|
1617
|
+
Fe as passiveOpts,
|
|
1618
|
+
Qn as preloadStyle,
|
|
1619
|
+
mt as readLauncherLayoutFromElement,
|
|
1620
|
+
or as reflectBehaviors,
|
|
1621
|
+
sr as reflectMixins,
|
|
1622
|
+
ar as reflectStores,
|
|
1623
|
+
Yt as registerMixin,
|
|
1624
|
+
oe as removeAdopted,
|
|
1625
|
+
Me as removeEvent,
|
|
1626
|
+
Mn as removeEvents,
|
|
1627
|
+
Hn as resolveGridCellFromClientPoint,
|
|
1628
|
+
fe as roots,
|
|
1629
|
+
dn as setAttributes,
|
|
1630
|
+
un as setAttributesIfNull,
|
|
1631
|
+
yn as setChecked,
|
|
1632
|
+
ln as setIdleInterval,
|
|
1633
|
+
Kn as setProperty,
|
|
1634
|
+
Gn as setStyleInRule,
|
|
1699
1635
|
S as setStyleProperty,
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1636
|
+
Be as setStylePropertyFallback,
|
|
1637
|
+
Pt as setStylePropertyTyped,
|
|
1638
|
+
Lt as setStyleRule,
|
|
1639
|
+
Xn as setStyleRules,
|
|
1640
|
+
Re as setStyleURL,
|
|
1641
|
+
it as throttleMap,
|
|
1642
|
+
de as unfixedClientZoom,
|
|
1643
|
+
pe as updateAllMixins,
|
|
1644
|
+
De as updateMixinAttributes,
|
|
1645
|
+
Zt as updateMixinAttributesAll,
|
|
1646
|
+
Ut as updateMixinAttributesAllInRoots,
|
|
1647
|
+
dt as updateVP,
|
|
1648
|
+
hn as url,
|
|
1649
|
+
ft as whenAnyScreenChanges,
|
|
1650
|
+
st as zoomOf,
|
|
1651
|
+
at as zoomValues
|
|
1716
1652
|
};
|