@tempots/dom 10.0.0 → 10.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -6
- package/dom/ssr-tracker.d.ts +13 -0
- package/index.cjs +1 -1
- package/index.js +474 -459
- package/mountable/style.d.ts +0 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var a = (t, e, r) =>
|
|
4
|
-
function
|
|
1
|
+
var We = Object.defineProperty;
|
|
2
|
+
var Fe = (t, e, r) => e in t ? We(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var a = (t, e, r) => Fe(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
+
function ze(t, e, r) {
|
|
5
5
|
return t + (e - t) * r;
|
|
6
6
|
}
|
|
7
|
-
const
|
|
8
|
-
function
|
|
7
|
+
const Q = 97;
|
|
8
|
+
function Ve(t, e, r) {
|
|
9
9
|
const n = Math.max(t.length, e.length);
|
|
10
10
|
let s = "";
|
|
11
11
|
for (let i = 0; i < n; i++) {
|
|
12
12
|
let o = t.charCodeAt(i);
|
|
13
|
-
isNaN(o) && (o =
|
|
14
|
-
let
|
|
15
|
-
isNaN(
|
|
13
|
+
isNaN(o) && (o = Q);
|
|
14
|
+
let l = e.charCodeAt(i);
|
|
15
|
+
isNaN(l) && (l = Q), s += String.fromCharCode(o + (l - o) * r);
|
|
16
16
|
}
|
|
17
17
|
return s;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function qe(t, e, r) {
|
|
20
20
|
return new Date(t.getTime() + (e.getTime() - t.getTime()) * r);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Ze(t, e, r) {
|
|
23
23
|
return e;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
return typeof t == "number" ?
|
|
25
|
+
function Xe(t) {
|
|
26
|
+
return typeof t == "number" ? ze : typeof t == "string" ? Ve : t instanceof Date ? qe : Ze;
|
|
27
27
|
}
|
|
28
|
-
class
|
|
28
|
+
class Ye {
|
|
29
29
|
constructor(e, r) {
|
|
30
30
|
this.index = e, this.total = r;
|
|
31
31
|
}
|
|
@@ -43,11 +43,11 @@ class Ze {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
const ee = Symbol("isSignal"), te = Symbol("isProp"), re = Symbol("isComputed");
|
|
46
|
-
var
|
|
47
|
-
|
|
48
|
-
const
|
|
46
|
+
var ue;
|
|
47
|
+
ue = ee;
|
|
48
|
+
const E = class E {
|
|
49
49
|
constructor(e, r) {
|
|
50
|
-
a(this,
|
|
50
|
+
a(this, ue, !0);
|
|
51
51
|
a(this, "_value");
|
|
52
52
|
a(this, "_derivatives", []);
|
|
53
53
|
a(this, "_onValueListeners", []);
|
|
@@ -70,7 +70,7 @@ const P = class P {
|
|
|
70
70
|
this._disposed || (this._disposed = !0, this._onDisposeListeners.forEach((e) => e()), this._onDisposeListeners.length = 0, this._derivatives.length = 0);
|
|
71
71
|
});
|
|
72
72
|
a(this, "map", (e, r = (n, s) => n === s) => {
|
|
73
|
-
const n = new
|
|
73
|
+
const n = new T(() => {
|
|
74
74
|
try {
|
|
75
75
|
return e(this.get());
|
|
76
76
|
} catch (s) {
|
|
@@ -80,7 +80,7 @@ const P = class P {
|
|
|
80
80
|
return this.setDerivative(n), n;
|
|
81
81
|
});
|
|
82
82
|
a(this, "flatMap", (e, r = (n, s) => n === s) => {
|
|
83
|
-
const n = new
|
|
83
|
+
const n = new T(() => {
|
|
84
84
|
try {
|
|
85
85
|
return e(this.get()).get();
|
|
86
86
|
} catch (s) {
|
|
@@ -93,7 +93,7 @@ const P = class P {
|
|
|
93
93
|
a(this, "at", (e) => this.map((r) => r[e]));
|
|
94
94
|
a(this, "filter", (e, r) => {
|
|
95
95
|
let n = r ?? this.get();
|
|
96
|
-
const s = new
|
|
96
|
+
const s = new T(() => {
|
|
97
97
|
try {
|
|
98
98
|
const i = this.get();
|
|
99
99
|
return n = e(i) ? i : n;
|
|
@@ -105,10 +105,10 @@ const P = class P {
|
|
|
105
105
|
});
|
|
106
106
|
a(this, "filterMap", (e, r, n = (s, i) => s === i) => {
|
|
107
107
|
let s = r;
|
|
108
|
-
const i = new
|
|
108
|
+
const i = new T(() => {
|
|
109
109
|
try {
|
|
110
|
-
const o = this.get(),
|
|
111
|
-
return s =
|
|
110
|
+
const o = this.get(), l = e(o);
|
|
111
|
+
return s = l ?? s;
|
|
112
112
|
} catch (o) {
|
|
113
113
|
throw console.error("Error in Signal.filterMap:", o), o;
|
|
114
114
|
}
|
|
@@ -116,16 +116,16 @@ const P = class P {
|
|
|
116
116
|
return this.setDerivative(i), i;
|
|
117
117
|
});
|
|
118
118
|
a(this, "mapAsync", (e, r, n, s = (i, o) => i === o) => {
|
|
119
|
-
const i =
|
|
119
|
+
const i = A(r, s);
|
|
120
120
|
let o = 0;
|
|
121
121
|
return i.onDispose(
|
|
122
|
-
this.on((
|
|
123
|
-
const
|
|
122
|
+
this.on((l) => {
|
|
123
|
+
const u = ++o;
|
|
124
124
|
try {
|
|
125
|
-
e(
|
|
126
|
-
|
|
125
|
+
e(l).then((c) => {
|
|
126
|
+
u === o && i.set(c);
|
|
127
127
|
}).catch((c) => {
|
|
128
|
-
|
|
128
|
+
u === o && (n != null ? i.set(n(c)) : console.error(
|
|
129
129
|
"Unhandled promise rejection in Signal.mapAsync:",
|
|
130
130
|
c
|
|
131
131
|
));
|
|
@@ -141,7 +141,7 @@ const P = class P {
|
|
|
141
141
|
const n = this.on(e.set);
|
|
142
142
|
return e.onDispose(n), r ? this.onDispose(e.dispose) : this.onDispose(n), e;
|
|
143
143
|
});
|
|
144
|
-
a(this, "deriveProp", (e = !0) => this.feedProp(
|
|
144
|
+
a(this, "deriveProp", (e = !0) => this.feedProp(A(this.get()), e));
|
|
145
145
|
a(this, "count", () => {
|
|
146
146
|
let e = 0;
|
|
147
147
|
return this.map(() => ++e);
|
|
@@ -157,7 +157,7 @@ const P = class P {
|
|
|
157
157
|
this.equals = r, this._value = e;
|
|
158
158
|
}
|
|
159
159
|
static ofPromise(e, r, n, s = (i, o) => i === o) {
|
|
160
|
-
const i = new
|
|
160
|
+
const i = new E(r, s);
|
|
161
161
|
return e.then((o) => i._setAndNotify(o, !1)).catch((o) => {
|
|
162
162
|
n != null ? i._setAndNotify(n(o), !1) : console.error(
|
|
163
163
|
"Unhandled promise rejection in Signal.ofPromise:",
|
|
@@ -169,25 +169,25 @@ const P = class P {
|
|
|
169
169
|
return e != null && e[ee] === !0;
|
|
170
170
|
}
|
|
171
171
|
static wrap(e, r = (n, s) => n === s) {
|
|
172
|
-
return
|
|
172
|
+
return E.is(e) ? e : new E(e, r);
|
|
173
173
|
}
|
|
174
174
|
static maybeWrap(e) {
|
|
175
|
-
return e == null ? e :
|
|
175
|
+
return e == null ? e : E.wrap(e);
|
|
176
176
|
}
|
|
177
177
|
static unwrap(e) {
|
|
178
|
-
return
|
|
178
|
+
return E.is(e) ? e.get() : e;
|
|
179
179
|
}
|
|
180
180
|
static map(e, r) {
|
|
181
|
-
return
|
|
181
|
+
return E.is(e) ? e.map(r) : r(e);
|
|
182
182
|
}
|
|
183
183
|
get value() {
|
|
184
184
|
return this._value;
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
|
-
let
|
|
188
|
-
const
|
|
189
|
-
var ae,
|
|
190
|
-
class
|
|
187
|
+
let d = E;
|
|
188
|
+
const He = typeof queueMicrotask == "function" ? queueMicrotask : (t) => Promise.resolve().then(t);
|
|
189
|
+
var ae, le;
|
|
190
|
+
class T extends (le = d, ae = re, le) {
|
|
191
191
|
constructor(r, n) {
|
|
192
192
|
super(void 0, n);
|
|
193
193
|
a(this, ae, !0);
|
|
@@ -198,7 +198,7 @@ class L extends (ue = p, ae = re, ue) {
|
|
|
198
198
|
a(this, "_scheduleCount", 0);
|
|
199
199
|
a(this, "scheduleNotify", () => {
|
|
200
200
|
const r = ++this._scheduleCount;
|
|
201
|
-
|
|
201
|
+
He(() => {
|
|
202
202
|
this._scheduleCount !== r || this._disposed !== !1 || this._isDirty && (this._isDirty = !1, this._setAndNotify(this._fn(), !1));
|
|
203
203
|
});
|
|
204
204
|
});
|
|
@@ -213,7 +213,7 @@ class L extends (ue = p, ae = re, ue) {
|
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
var ce, fe;
|
|
216
|
-
class
|
|
216
|
+
class F extends (fe = d, ce = te, fe) {
|
|
217
217
|
constructor() {
|
|
218
218
|
super(...arguments);
|
|
219
219
|
a(this, ce, !0);
|
|
@@ -225,7 +225,7 @@ class O extends (fe = p, ce = te, fe) {
|
|
|
225
225
|
});
|
|
226
226
|
a(this, "reducer", (r) => (n) => this.update((s) => r(s, n)));
|
|
227
227
|
a(this, "iso", (r, n, s = (i, o) => i === o) => {
|
|
228
|
-
const i = new
|
|
228
|
+
const i = new F(r(this.get()), s);
|
|
229
229
|
return i.onDispose(this.on((o) => i.set(r(o)))), i.on((o) => this._setAndNotify(n(o), !1)), i;
|
|
230
230
|
});
|
|
231
231
|
a(this, "atProp", (r) => this.iso(
|
|
@@ -244,17 +244,17 @@ class O extends (fe = p, ce = te, fe) {
|
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
function B(t, e, r = (n, s) => n === s) {
|
|
247
|
-
const n = new
|
|
247
|
+
const n = new T(t, r);
|
|
248
248
|
return e.forEach((s) => s.setDerivative(n)), n;
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function zt(t, e) {
|
|
251
251
|
return B(t, e).dispose;
|
|
252
252
|
}
|
|
253
|
-
function
|
|
254
|
-
return new
|
|
253
|
+
function A(t, e = (r, n) => r === n) {
|
|
254
|
+
return new F(t, e);
|
|
255
255
|
}
|
|
256
|
-
function
|
|
257
|
-
return new
|
|
256
|
+
function Vt(t, e = (r, n) => r === n) {
|
|
257
|
+
return new d(t, e);
|
|
258
258
|
}
|
|
259
259
|
class he {
|
|
260
260
|
constructor() {
|
|
@@ -271,24 +271,24 @@ function de({
|
|
|
271
271
|
store: r,
|
|
272
272
|
serialize: n = JSON.stringify,
|
|
273
273
|
deserialize: s = JSON.parse,
|
|
274
|
-
equals: i = (
|
|
275
|
-
onLoad: o = (
|
|
274
|
+
equals: i = (l, u) => l === u,
|
|
275
|
+
onLoad: o = (l) => l
|
|
276
276
|
}) {
|
|
277
|
-
const
|
|
278
|
-
|
|
277
|
+
const l = r.getItem(t), u = new F(
|
|
278
|
+
l != null ? o(s(l)) : typeof e == "function" ? e() : e,
|
|
279
279
|
i
|
|
280
280
|
);
|
|
281
|
-
return
|
|
281
|
+
return u.on((c) => {
|
|
282
282
|
r.setItem(t, n(c));
|
|
283
|
-
}),
|
|
283
|
+
}), u;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function qt(t) {
|
|
286
286
|
return de({
|
|
287
287
|
...t,
|
|
288
288
|
store: (window == null ? void 0 : window.localStorage) ?? new he()
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function Zt(t) {
|
|
292
292
|
return de({
|
|
293
293
|
...t,
|
|
294
294
|
store: (window == null ? void 0 : window.sessionStorage) ?? new he()
|
|
@@ -297,32 +297,32 @@ function Nt(t) {
|
|
|
297
297
|
function ne(t) {
|
|
298
298
|
return typeof requestAnimationFrame == "function" ? requestAnimationFrame(t) : setTimeout(t, 0);
|
|
299
299
|
}
|
|
300
|
-
function
|
|
301
|
-
const s = (n == null ? void 0 : n.duration) ?? 300, i = (n == null ? void 0 : n.easing) ?? ((
|
|
302
|
-
let
|
|
303
|
-
const _ = new
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
}),
|
|
307
|
-
|
|
300
|
+
function Ke(t, e, r, n) {
|
|
301
|
+
const s = (n == null ? void 0 : n.duration) ?? 300, i = (n == null ? void 0 : n.easing) ?? ((S) => S), o = (n == null ? void 0 : n.equals) ?? ((S, L) => S === L);
|
|
302
|
+
let l = n == null ? void 0 : n.interpolate, u = t, c = e(), p = performance.now(), m = null, h = !0;
|
|
303
|
+
const _ = new T(e, o), y = A(t, o);
|
|
304
|
+
y.onDispose(() => {
|
|
305
|
+
m !== null && cancelAnimationFrame(m);
|
|
306
|
+
}), y.onDispose(_.dispose), r.forEach((S) => {
|
|
307
|
+
S.setDerivative(_), S.onDispose(y.dispose);
|
|
308
308
|
});
|
|
309
|
-
const
|
|
310
|
-
c =
|
|
311
|
-
},
|
|
312
|
-
const
|
|
313
|
-
|
|
314
|
-
let
|
|
315
|
-
|
|
309
|
+
const X = (S) => {
|
|
310
|
+
c = S, p = performance.now(), u = y.value, h && (h = !1, m = ne(G));
|
|
311
|
+
}, G = () => {
|
|
312
|
+
const L = (performance.now() - p) / d.unwrap(s), xe = i(L);
|
|
313
|
+
l == null && (l = Xe(u));
|
|
314
|
+
let J = l(u, c, xe);
|
|
315
|
+
L >= 1 ? (h = !0, J = c) : m = ne(G), y.set(J);
|
|
316
316
|
};
|
|
317
|
-
return _.on(
|
|
317
|
+
return _.on(X), y;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function Xt(t, e) {
|
|
320
320
|
const { initialValue: r, ...n } = e ?? {};
|
|
321
|
-
return
|
|
321
|
+
return Ke(r ?? t.get(), t.get, [t], n);
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function Yt(t, e) {
|
|
324
324
|
const { signals: r, literals: n } = Object.entries(t).reduce(
|
|
325
|
-
({ signals: i, literals: o }, [
|
|
325
|
+
({ signals: i, literals: o }, [l, u]) => (d.is(u) ? i.push([l, u]) : o[l] = u, { signals: i, literals: o }),
|
|
326
326
|
{ signals: [], literals: {} }
|
|
327
327
|
), s = r.map(([, i]) => i);
|
|
328
328
|
return B(() => (r.forEach(([i, o]) => n[i] = o.value), e(n)), s);
|
|
@@ -360,103 +360,103 @@ function ie(t) {
|
|
|
360
360
|
spread: 0,
|
|
361
361
|
color: "rgba(0, 0, 0, 0)"
|
|
362
362
|
};
|
|
363
|
-
const [, n, s, , , i, , o, ,
|
|
363
|
+
const [, n, s, , , i, , o, , l, , u] = r, c = o != null ? parseInt(o, 10) : 0, p = l != null ? parseInt(l, 10) : 0;
|
|
364
364
|
return {
|
|
365
365
|
inset: !!n,
|
|
366
366
|
x: parseInt(s, 10),
|
|
367
367
|
y: parseInt(i, 10),
|
|
368
368
|
blur: c,
|
|
369
|
-
spread:
|
|
370
|
-
color:
|
|
369
|
+
spread: p,
|
|
370
|
+
color: u
|
|
371
371
|
};
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function je(t) {
|
|
374
374
|
const { inset: e, x: r, y: n, blur: s, spread: i, color: o } = t;
|
|
375
375
|
return `${e ? "inset " : ""}${r}px ${n}px ${s}px ${i}px ${o}`;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function Ue(t) {
|
|
378
378
|
return t[4] === "rgba" ? `rgba(${t[0]}, ${t[1]}, ${t[2]}, ${t[3]})` : t[4] === "hex" ? `#${t[0].toString(16).padStart(2, "0")}${t[1].toString(16).padStart(2, "0")}${t[2].toString(16).padStart(2, "0")}` : t[4] === "hsla" ? `hsla(${t[0]}, ${t[1]}%, ${t[2]}%, ${t[3]})` : "";
|
|
379
379
|
}
|
|
380
|
-
function
|
|
381
|
-
const [r, n, s, i, o] = se(t), [
|
|
382
|
-
return (
|
|
383
|
-
const
|
|
384
|
-
return
|
|
380
|
+
function Be(t, e) {
|
|
381
|
+
const [r, n, s, i, o] = se(t), [l, u, c, p] = se(e);
|
|
382
|
+
return (m) => {
|
|
383
|
+
const h = r + (l - r) * m, _ = n + (u - n) * m, y = s + (c - s) * m, X = i + (p - i) * m;
|
|
384
|
+
return Ue([h, _, y, X, o]);
|
|
385
385
|
};
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function Ht(t, e) {
|
|
388
388
|
const r = ie(t), n = ie(e);
|
|
389
389
|
return (s) => {
|
|
390
|
-
const i = r.x + (n.x - r.x) * s, o = r.y + (n.y - r.y) * s,
|
|
391
|
-
return
|
|
390
|
+
const i = r.x + (n.x - r.x) * s, o = r.y + (n.y - r.y) * s, l = r.blur + (n.blur - r.blur) * s, u = r.spread + (n.spread - r.spread) * s, c = me(r.color, n.color)(s);
|
|
391
|
+
return je({ inset: r.inset, x: i, y: o, blur: l, spread: u, color: c });
|
|
392
392
|
};
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
var r, n, s, i, o,
|
|
396
|
-
return e === "translateX" ? new WebKitCSSMatrix(t.transform).m41 : e === "translateY" ? new WebKitCSSMatrix(t.transform).m42 : e === "translateZ" ? new WebKitCSSMatrix(t.transform).m43 : e === "rotateX" ? new WebKitCSSMatrix(t.transform).m12 : e === "rotateY" ? new WebKitCSSMatrix(t.transform).m21 : e === "rotateZ" ? new WebKitCSSMatrix(t.transform).m31 : e === "scaleX" ? new WebKitCSSMatrix(t.transform).m11 : e === "scaleY" ? new WebKitCSSMatrix(t.transform).m22 : e === "scaleZ" ? new WebKitCSSMatrix(t.transform).m33 : e === "skewX" ? new WebKitCSSMatrix(t.transform).m13 : e === "skewY" ? new WebKitCSSMatrix(t.transform).m23 : Number(e === "grayScale" ? (r = t.filter.match(/grayscale\((\d+)%\)/)) == null ? void 0 : r[1] : e === "sepia" ? (n = t.filter.match(/sepia\((\d+)%\)/)) == null ? void 0 : n[1] : e === "saturate" ? (s = t.filter.match(/saturate\((\d+)%\)/)) == null ? void 0 : s[1] : e === "hueRotate" ? (i = t.filter.match(/hue-rotate\((\d+)deg\)/)) == null ? void 0 : i[1] : e === "invert" ? (o = t.filter.match(/invert\((\d+)%\)/)) == null ? void 0 : o[1] : e === "brightness" ? (
|
|
394
|
+
function ke(t, e) {
|
|
395
|
+
var r, n, s, i, o, l, u, c;
|
|
396
|
+
return e === "translateX" ? new WebKitCSSMatrix(t.transform).m41 : e === "translateY" ? new WebKitCSSMatrix(t.transform).m42 : e === "translateZ" ? new WebKitCSSMatrix(t.transform).m43 : e === "rotateX" ? new WebKitCSSMatrix(t.transform).m12 : e === "rotateY" ? new WebKitCSSMatrix(t.transform).m21 : e === "rotateZ" ? new WebKitCSSMatrix(t.transform).m31 : e === "scaleX" ? new WebKitCSSMatrix(t.transform).m11 : e === "scaleY" ? new WebKitCSSMatrix(t.transform).m22 : e === "scaleZ" ? new WebKitCSSMatrix(t.transform).m33 : e === "skewX" ? new WebKitCSSMatrix(t.transform).m13 : e === "skewY" ? new WebKitCSSMatrix(t.transform).m23 : Number(e === "grayScale" ? (r = t.filter.match(/grayscale\((\d+)%\)/)) == null ? void 0 : r[1] : e === "sepia" ? (n = t.filter.match(/sepia\((\d+)%\)/)) == null ? void 0 : n[1] : e === "saturate" ? (s = t.filter.match(/saturate\((\d+)%\)/)) == null ? void 0 : s[1] : e === "hueRotate" ? (i = t.filter.match(/hue-rotate\((\d+)deg\)/)) == null ? void 0 : i[1] : e === "invert" ? (o = t.filter.match(/invert\((\d+)%\)/)) == null ? void 0 : o[1] : e === "brightness" ? (l = t.filter.match(/brightness\((\d+)%\)/)) == null ? void 0 : l[1] : e === "contrast" ? (u = t.filter.match(/contrast\((\d+)%\)/)) == null ? void 0 : u[1] : e === "blur" ? (c = t.filter.match(/blur\((\d+)px\)/)) == null ? void 0 : c[1] : t.getPropertyValue(e));
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function Kt(t, e) {
|
|
399
399
|
const r = {}, n = getComputedStyle(t);
|
|
400
400
|
for (const [s, i] of Object.entries(e)) {
|
|
401
401
|
const o = s;
|
|
402
|
-
i != null && (r[o] =
|
|
402
|
+
i != null && (r[o] = ke(n, o));
|
|
403
403
|
}
|
|
404
404
|
return r;
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function R(t, e, r) {
|
|
407
407
|
r != null && (e === "translateX" ? t.style.transform += ` translateX(${r}px)` : e === "translateY" ? t.style.transform += ` translateY(${r}px)` : e === "translateZ" ? t.style.transform += ` translateZ(${r}px)` : e === "rotateX" ? t.style.transform += ` rotateX(${r}deg)` : e === "rotateY" ? t.style.transform += ` rotateY(${r}deg)` : e === "rotateZ" ? t.style.transform += ` rotateZ(${r}deg)` : e === "scaleX" ? t.style.transform += ` scaleX(${r})` : e === "scaleY" ? t.style.transform += ` scaleY(${r})` : e === "scaleZ" ? t.style.transform += ` scaleZ(${r})` : e === "skewX" ? t.style.transform += ` skewX(${r}deg)` : e === "skewY" ? t.style.transform += ` skewY(${r}deg)` : e === "grayScale" ? t.style.filter += ` grayscale(${r}%)` : e === "sepia" ? t.style.filter += ` sepia(${r}%)` : e === "saturate" ? t.style.filter += ` saturate(${r}%)` : e === "hueRotate" ? t.style.filter += ` hue-rotate(${r}deg)` : e === "invert" ? t.style.filter += ` invert(${r}%)` : e === "brightness" ? t.style.filter += ` brightness(${r}%)` : e === "contrast" ? t.style.filter += ` contrast(${r}%)` : e === "blur" && (t.style.filter += ` blur(${r}px)`), t.style.setProperty(e, String(r)));
|
|
408
408
|
}
|
|
409
|
-
const
|
|
409
|
+
const Y = /* @__PURE__ */ new Map();
|
|
410
410
|
function pe(t, e, r) {
|
|
411
|
-
if (
|
|
412
|
-
return
|
|
413
|
-
const n =
|
|
414
|
-
return
|
|
411
|
+
if (Y.has(r + ":" + t + e))
|
|
412
|
+
return Y.get(t + e);
|
|
413
|
+
const n = Be(t, e);
|
|
414
|
+
return Y.set(r + ":" + t + e, n), n;
|
|
415
415
|
}
|
|
416
416
|
function me(t, e) {
|
|
417
417
|
return pe(t, e, "c");
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function Ge(t, e) {
|
|
420
420
|
return pe(t, e, "s");
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function Je(t, e, r, n, s) {
|
|
423
423
|
if (r != null && n != null) {
|
|
424
424
|
if (typeof r == "number" && typeof n == "number") {
|
|
425
425
|
const i = r + (n - r) * s;
|
|
426
|
-
|
|
426
|
+
R(t, e, i);
|
|
427
427
|
} else if (e === "boxShadow" || e === "textShadow") {
|
|
428
|
-
const i =
|
|
428
|
+
const i = Ge(
|
|
429
429
|
r,
|
|
430
430
|
n
|
|
431
431
|
)(s);
|
|
432
|
-
|
|
432
|
+
R(t, e, i);
|
|
433
433
|
} else if (e === "color" || e === "backgroundColor" || e === "borderColor" || e === "outlineColor") {
|
|
434
434
|
const i = me(
|
|
435
435
|
r,
|
|
436
436
|
n
|
|
437
437
|
)(s);
|
|
438
|
-
|
|
438
|
+
R(t, e, i);
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function jt(t, e, r, n) {
|
|
443
443
|
t.style.transform = "", t.style.filter = "";
|
|
444
444
|
for (const [s, i] of Object.entries(r)) {
|
|
445
445
|
const o = s;
|
|
446
|
-
|
|
446
|
+
Je(t, o, e[o], i, n);
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function Ut(t, e) {
|
|
450
450
|
t.style.transform = "", t.style.filter = "";
|
|
451
451
|
for (const [r, n] of Object.entries(e))
|
|
452
|
-
n != null &&
|
|
452
|
+
n != null && R(t, r, n);
|
|
453
453
|
}
|
|
454
454
|
const ge = /* @__PURE__ */ new Set(["checked", "disabled", "hidden", "selected"]), we = /* @__PURE__ */ new Set([
|
|
455
455
|
"rowSpan",
|
|
456
456
|
"colSpan",
|
|
457
457
|
"tabIndex",
|
|
458
458
|
"valueAsNumber"
|
|
459
|
-
]),
|
|
459
|
+
]), be = /* @__PURE__ */ new Set(["valueAsDate"]), Se = /* @__PURE__ */ new Set([
|
|
460
460
|
"value",
|
|
461
461
|
"textContent",
|
|
462
462
|
"innerText",
|
|
@@ -464,47 +464,47 @@ const ge = /* @__PURE__ */ new Set(["checked", "disabled", "hidden", "selected"]
|
|
|
464
464
|
"outerHTML",
|
|
465
465
|
"className",
|
|
466
466
|
"classList"
|
|
467
|
-
]),
|
|
467
|
+
]), H = /* @__PURE__ */ new Map();
|
|
468
468
|
function $(t, e) {
|
|
469
|
-
if (
|
|
470
|
-
return
|
|
469
|
+
if (H.has(t))
|
|
470
|
+
return H.get(t);
|
|
471
471
|
{
|
|
472
472
|
const r = e(t);
|
|
473
|
-
return
|
|
473
|
+
return H.set(t, r), r;
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function Qe(t) {
|
|
477
477
|
return (e, r) => {
|
|
478
478
|
r == null ? e[t] = null : e[t] = !!r;
|
|
479
479
|
};
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function et(t) {
|
|
482
482
|
return (e, r) => {
|
|
483
483
|
r == null ? e[t] = null : e[t] = Number(r);
|
|
484
484
|
};
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function tt(t) {
|
|
487
487
|
return (e, r) => {
|
|
488
488
|
r == null ? e[t] = null : e[t] = r;
|
|
489
489
|
};
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function rt(t) {
|
|
492
492
|
return (e, r) => {
|
|
493
493
|
r == null ? e[t] = null : e[t] = String(r);
|
|
494
494
|
};
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function nt(t) {
|
|
497
497
|
return (e, r) => {
|
|
498
498
|
r == null ? e.removeAttribute(t) : e.setAttribute(t, r);
|
|
499
499
|
};
|
|
500
500
|
}
|
|
501
|
-
function
|
|
502
|
-
return ge.has(t) ? $(t,
|
|
501
|
+
function ve(t) {
|
|
502
|
+
return ge.has(t) ? $(t, Qe) : we.has(t) ? $(t, et) : be.has(t) ? $(t, tt) : Se.has(t) ? $(t, rt) : $(t, nt);
|
|
503
503
|
}
|
|
504
|
-
function
|
|
505
|
-
return (e) => ge.has(t) ? !!e[t] : we.has(t) ? Number(e[t]) :
|
|
504
|
+
function Ae(t) {
|
|
505
|
+
return (e) => ge.has(t) ? !!e[t] : we.has(t) ? Number(e[t]) : be.has(t) ? e[t] : Se.has(t) ? String(e[t]) : e.getAttribute(t);
|
|
506
506
|
}
|
|
507
|
-
class
|
|
507
|
+
class v {
|
|
508
508
|
/**
|
|
509
509
|
* Constructs a new `DOMContext` instance.
|
|
510
510
|
*
|
|
@@ -552,7 +552,7 @@ class b {
|
|
|
552
552
|
* @param document - The `Document` to use for the `DOMContext`.
|
|
553
553
|
* @returns A new `DOMContext` instance.
|
|
554
554
|
*/
|
|
555
|
-
a(this, "withDocument", (e) => new
|
|
555
|
+
a(this, "withDocument", (e) => new v(
|
|
556
556
|
e,
|
|
557
557
|
this.element,
|
|
558
558
|
this.reference,
|
|
@@ -564,12 +564,12 @@ class b {
|
|
|
564
564
|
* @param element - The DOM element to use in the new `DOMContext` instance.
|
|
565
565
|
* @returns A new `DOMContext` instance with the provided `element`.
|
|
566
566
|
*/
|
|
567
|
-
a(this, "withElement", (e) => new
|
|
567
|
+
a(this, "withElement", (e) => new v(this.document, e, void 0, this.providers, !1));
|
|
568
568
|
/**
|
|
569
569
|
* Creates a new `DOMContext` instance with the `isFirstLevel` property set to `true`.
|
|
570
570
|
* @returns A new `DOMContext` instance with the `isFirstLevel` property set to `true`.
|
|
571
571
|
*/
|
|
572
|
-
a(this, "withFirstLevel", () => new
|
|
572
|
+
a(this, "withFirstLevel", () => new v(
|
|
573
573
|
this.document,
|
|
574
574
|
this.element,
|
|
575
575
|
this.reference,
|
|
@@ -582,7 +582,7 @@ class b {
|
|
|
582
582
|
* @param reference - The optional `Text` node to use as the reference for the new `DOMContext`.
|
|
583
583
|
* @returns A new `DOMContext` instance with the specified reference.
|
|
584
584
|
*/
|
|
585
|
-
a(this, "withReference", (e) => new
|
|
585
|
+
a(this, "withReference", (e) => new v(
|
|
586
586
|
this.document,
|
|
587
587
|
this.element,
|
|
588
588
|
e,
|
|
@@ -595,7 +595,7 @@ class b {
|
|
|
595
595
|
* @param value - The value to set for the provider.
|
|
596
596
|
* @returns A new DOMContext with the updated providers.
|
|
597
597
|
*/
|
|
598
|
-
a(this, "withProvider", (e, r) => new
|
|
598
|
+
a(this, "withProvider", (e, r) => new v(
|
|
599
599
|
this.document,
|
|
600
600
|
this.element,
|
|
601
601
|
this.reference,
|
|
@@ -612,7 +612,7 @@ class b {
|
|
|
612
612
|
* @param providers - An object containing the providers to be merged into the existing providers.
|
|
613
613
|
* @returns A new DOMContext instance with the merged providers.
|
|
614
614
|
*/
|
|
615
|
-
a(this, "withProviders", (e) => new
|
|
615
|
+
a(this, "withProviders", (e) => new v(
|
|
616
616
|
this.document,
|
|
617
617
|
this.element,
|
|
618
618
|
this.reference,
|
|
@@ -644,20 +644,20 @@ class b {
|
|
|
644
644
|
* @returns A new `DOMContext` instance.
|
|
645
645
|
*/
|
|
646
646
|
static of(e, r) {
|
|
647
|
-
return new
|
|
647
|
+
return new v(e.ownerDocument, e, r, {}, !0);
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function b(t) {
|
|
651
651
|
const e = t;
|
|
652
652
|
e && e.onblur && (e.onblur = null), !(!t || t.ownerDocument === void 0) && t.parentElement && t.parentElement.removeChild(t);
|
|
653
653
|
}
|
|
654
|
-
function
|
|
655
|
-
return
|
|
654
|
+
function st(t) {
|
|
655
|
+
return ye(t) ? t : t.parentElement;
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function ye(t) {
|
|
658
658
|
return t.nodeType === 1;
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function it(t, e, r) {
|
|
661
661
|
let n = t.target;
|
|
662
662
|
for (; n != null && !(n instanceof HTMLAnchorElement); )
|
|
663
663
|
n = n.parentElement;
|
|
@@ -666,55 +666,93 @@ function nt(t, e, r) {
|
|
|
666
666
|
if (t.button !== 0 || t.ctrlKey || t.metaKey || s.target !== "_self" && s.target !== "" || s.getAttribute("download") != null)
|
|
667
667
|
return !0;
|
|
668
668
|
if (r) {
|
|
669
|
-
const { pathname: i, search: o, hash:
|
|
670
|
-
if (s.getAttribute("href") !==
|
|
669
|
+
const { pathname: i, search: o, hash: l } = s, u = i + o + l;
|
|
670
|
+
if (s.getAttribute("href") !== u || e && !/\/[^/.]*$/.test(i))
|
|
671
671
|
return !0;
|
|
672
672
|
}
|
|
673
673
|
return !1;
|
|
674
674
|
}
|
|
675
|
-
const
|
|
675
|
+
const Bt = (t, e = {
|
|
676
676
|
checkExtension: !0,
|
|
677
677
|
checkExternalUrl: !0
|
|
678
678
|
}) => (r) => {
|
|
679
679
|
const { checkExtension: n, checkExternalUrl: s } = e;
|
|
680
|
-
|
|
680
|
+
it(
|
|
681
681
|
r,
|
|
682
682
|
n === !0,
|
|
683
683
|
s === !0
|
|
684
684
|
) || t() && r.preventDefault();
|
|
685
685
|
}, Ee = (t) => (e) => {
|
|
686
|
-
e.isFirstLevel &&
|
|
686
|
+
e.isFirstLevel && D.isSSR && e.element.setAttribute("data-tempo-text", "");
|
|
687
687
|
const r = e.createText(t);
|
|
688
688
|
return e.appendOrInsert(r), (n) => {
|
|
689
|
-
n &&
|
|
689
|
+
n && b(r);
|
|
690
690
|
};
|
|
691
|
-
},
|
|
692
|
-
e.isFirstLevel &&
|
|
691
|
+
}, _e = (t) => (e) => {
|
|
692
|
+
e.isFirstLevel && D.isSSR && e.element.setAttribute("data-tempo-text", "");
|
|
693
693
|
const r = e.createText(t.value);
|
|
694
694
|
e.appendOrInsert(r);
|
|
695
695
|
const n = t.on((s) => r.data = s);
|
|
696
696
|
return (s) => {
|
|
697
|
-
n(), s &&
|
|
697
|
+
n(), s && b(r);
|
|
698
698
|
};
|
|
699
699
|
};
|
|
700
|
-
function
|
|
701
|
-
return
|
|
700
|
+
function kt(t) {
|
|
701
|
+
return d.is(t) ? _e(t) : Ee(t);
|
|
702
702
|
}
|
|
703
|
-
const
|
|
703
|
+
const g = (...t) => (e) => {
|
|
704
704
|
const r = t.map((n) => f(n)(e));
|
|
705
705
|
return (n) => {
|
|
706
706
|
r.forEach((s) => s(n));
|
|
707
707
|
};
|
|
708
|
-
},
|
|
709
|
-
},
|
|
710
|
-
function
|
|
711
|
-
const r = t.getAttribute(
|
|
712
|
-
r
|
|
708
|
+
}, w = () => () => {
|
|
709
|
+
}, W = "data-tempo-attr", O = "data-tempo-class", Pe = "data-tempo-node", K = "data-tempo-text";
|
|
710
|
+
function ot(t, e) {
|
|
711
|
+
const r = t.getAttribute(W);
|
|
712
|
+
r != null && t.setAttribute(`${W}:${e}`, r);
|
|
713
|
+
}
|
|
714
|
+
function De(t, e) {
|
|
715
|
+
D.isSSR && t.isFirstLevel && ot(t.element, e);
|
|
716
|
+
}
|
|
717
|
+
function ut(t) {
|
|
718
|
+
t.querySelectorAll(`[^${W}:]`).forEach((e) => {
|
|
719
|
+
const r = e.getAttributeNames().filter((n) => n.startsWith(`${W}:`));
|
|
720
|
+
for (const n of r) {
|
|
721
|
+
const s = e.getAttribute(n), i = n.split("-").pop();
|
|
722
|
+
e.removeAttribute(n), e.setAttribute(i, s);
|
|
723
|
+
}
|
|
724
|
+
});
|
|
725
|
+
}
|
|
726
|
+
function at(t) {
|
|
727
|
+
const e = t.className.trim();
|
|
728
|
+
e.length > 0 && t.setAttribute(O, e);
|
|
729
|
+
}
|
|
730
|
+
function Te(t) {
|
|
731
|
+
D.isSSR && t.isFirstLevel && at(t.element);
|
|
732
|
+
}
|
|
733
|
+
function lt(t) {
|
|
734
|
+
t.querySelectorAll(`[${O}]`).forEach((e) => {
|
|
735
|
+
const r = e.getAttribute(O);
|
|
736
|
+
r !== null && (e.className = r, e.removeAttribute(O));
|
|
737
|
+
});
|
|
738
|
+
}
|
|
739
|
+
function ct(t) {
|
|
740
|
+
t.setAttribute(Pe, "");
|
|
741
|
+
}
|
|
742
|
+
function ft(t) {
|
|
743
|
+
t.querySelectorAll(`[${Pe}]`).forEach((e) => {
|
|
744
|
+
b(e);
|
|
745
|
+
});
|
|
746
|
+
}
|
|
747
|
+
function ht(t) {
|
|
748
|
+
t.querySelectorAll(`[${K}]`).forEach((e) => {
|
|
749
|
+
e.textContent = e.getAttribute(K), e.removeAttribute(K);
|
|
750
|
+
});
|
|
713
751
|
}
|
|
714
|
-
const
|
|
752
|
+
const dt = (t) => (e) => (Te(e), e.element.classList.add(...t), (r) => {
|
|
715
753
|
r && e.element.classList.remove(...t);
|
|
716
|
-
}),
|
|
717
|
-
|
|
754
|
+
}), pt = (t) => (e) => {
|
|
755
|
+
Te(e);
|
|
718
756
|
const r = e.element;
|
|
719
757
|
let n = [];
|
|
720
758
|
const s = t.on((i) => {
|
|
@@ -723,136 +761,121 @@ const st = (t) => (e) => (console.log("className.static", e.isFirstLevel, h.isSS
|
|
|
723
761
|
return (i) => {
|
|
724
762
|
s(), i && n.forEach((o) => r.classList.remove(o)), n.length = 0;
|
|
725
763
|
};
|
|
726
|
-
},
|
|
727
|
-
const r =
|
|
764
|
+
}, z = (t, e) => {
|
|
765
|
+
const r = ve(t), n = Ae(t);
|
|
728
766
|
return (s) => {
|
|
729
|
-
|
|
767
|
+
De(s, t);
|
|
730
768
|
const i = n(s.element);
|
|
731
769
|
return r(s.element, e), (o) => {
|
|
732
770
|
o && r(s.element, i);
|
|
733
771
|
};
|
|
734
772
|
};
|
|
735
|
-
},
|
|
736
|
-
const r =
|
|
773
|
+
}, V = (t, e) => {
|
|
774
|
+
const r = ve(t), n = Ae(t);
|
|
737
775
|
return (s) => {
|
|
738
|
-
|
|
776
|
+
De(s, t);
|
|
739
777
|
const i = n(s.element);
|
|
740
778
|
return e.on((o) => r(s.element, o)), (o) => {
|
|
741
779
|
o && r(s.element, i);
|
|
742
780
|
};
|
|
743
781
|
};
|
|
744
|
-
},
|
|
782
|
+
}, P = new Proxy(
|
|
745
783
|
{},
|
|
746
784
|
{
|
|
747
|
-
get: (t, e) => e === "class" ? (r) =>
|
|
785
|
+
get: (t, e) => e === "class" ? (r) => d.is(r) ? pt(r) : dt(
|
|
748
786
|
(r ?? "").split(" ").filter((n) => n.length > 0)
|
|
749
|
-
) : (r) =>
|
|
787
|
+
) : (r) => d.is(r) ? V(
|
|
750
788
|
e,
|
|
751
789
|
r
|
|
752
|
-
) :
|
|
790
|
+
) : z(
|
|
753
791
|
e,
|
|
754
792
|
r
|
|
755
793
|
)
|
|
756
794
|
}
|
|
757
|
-
),
|
|
795
|
+
), Gt = new Proxy(
|
|
758
796
|
{},
|
|
759
797
|
{
|
|
760
|
-
get: (t, e) => (r) =>
|
|
798
|
+
get: (t, e) => (r) => d.is(r) ? V(
|
|
761
799
|
`aria-${e}`,
|
|
762
800
|
r
|
|
763
|
-
) :
|
|
801
|
+
) : z(
|
|
764
802
|
`aria-${e}`,
|
|
765
803
|
r
|
|
766
804
|
)
|
|
767
805
|
}
|
|
768
|
-
),
|
|
806
|
+
), Jt = new Proxy(
|
|
769
807
|
{},
|
|
770
808
|
{
|
|
771
|
-
get: (t, e) => (r) =>
|
|
809
|
+
get: (t, e) => (r) => d.is(r) ? V(
|
|
772
810
|
e,
|
|
773
811
|
r
|
|
774
|
-
) :
|
|
812
|
+
) : z(
|
|
775
813
|
e,
|
|
776
814
|
r
|
|
777
815
|
)
|
|
778
816
|
}
|
|
779
|
-
),
|
|
817
|
+
), Qt = new Proxy(
|
|
780
818
|
{},
|
|
781
819
|
{
|
|
782
|
-
get: (t, e) => (r) =>
|
|
820
|
+
get: (t, e) => (r) => d.is(r) ? V(
|
|
783
821
|
e,
|
|
784
822
|
r
|
|
785
|
-
) :
|
|
823
|
+
) : z(
|
|
786
824
|
e,
|
|
787
825
|
r
|
|
788
826
|
)
|
|
789
827
|
}
|
|
790
828
|
);
|
|
791
829
|
function f(t) {
|
|
792
|
-
return t == null ?
|
|
830
|
+
return t == null ? w : Array.isArray(t) ? g(...t.map(f)) : typeof t == "string" ? Ee(t) : d.is(t) ? _e(t) : t;
|
|
793
831
|
}
|
|
794
|
-
function
|
|
832
|
+
function $e(t, ...e) {
|
|
795
833
|
return (r) => {
|
|
796
834
|
const n = r.createElement(t, void 0);
|
|
797
|
-
r.appendOrInsert(n),
|
|
835
|
+
r.appendOrInsert(n), r.isFirstLevel && D.isSSR && ct(n), r = r.withElement(n);
|
|
798
836
|
const s = e.map((i) => f(i)(r));
|
|
799
837
|
return (i) => {
|
|
800
|
-
s.forEach((o) => o(!1)), i &&
|
|
838
|
+
s.forEach((o) => o(!1)), i && b(n);
|
|
801
839
|
};
|
|
802
840
|
};
|
|
803
841
|
}
|
|
804
|
-
function
|
|
842
|
+
function Ce(t, e, ...r) {
|
|
805
843
|
return (n) => {
|
|
806
844
|
const s = n.createElement(t, e);
|
|
807
|
-
n.appendOrInsert(s), n.isFirstLevel &&
|
|
845
|
+
n.appendOrInsert(s), n.isFirstLevel && D.isSSR && s.setAttribute("data-tempo-node", ""), n = n.withElement(s);
|
|
808
846
|
const i = r.map((o) => f(o)(n));
|
|
809
847
|
return (o) => {
|
|
810
|
-
i.forEach((
|
|
848
|
+
i.forEach((l) => l(!1)), o && b(s);
|
|
811
849
|
};
|
|
812
850
|
};
|
|
813
851
|
}
|
|
814
|
-
const
|
|
852
|
+
const er = new Proxy(
|
|
815
853
|
{},
|
|
816
854
|
{
|
|
817
|
-
get: (t, e) => (...r) =>
|
|
855
|
+
get: (t, e) => (...r) => $e(e, r.flatMap(f))
|
|
818
856
|
}
|
|
819
|
-
),
|
|
857
|
+
), tr = new Proxy(
|
|
820
858
|
{},
|
|
821
859
|
{
|
|
822
|
-
get: (t, e) => (...r) =>
|
|
860
|
+
get: (t, e) => (...r) => $e("input", P.type(e), ...r)
|
|
823
861
|
}
|
|
824
|
-
),
|
|
862
|
+
), mt = "http://www.w3.org/2000/svg", rr = new Proxy(
|
|
825
863
|
{},
|
|
826
864
|
{
|
|
827
|
-
get: (t, e) => (...r) =>
|
|
865
|
+
get: (t, e) => (...r) => Ce(e, mt, r.flatMap(f))
|
|
828
866
|
}
|
|
829
|
-
),
|
|
867
|
+
), gt = "http://www.w3.org/1998/Math/MathML", nr = new Proxy(
|
|
830
868
|
{},
|
|
831
869
|
{
|
|
832
|
-
get: (t, e) => (...r) =>
|
|
870
|
+
get: (t, e) => (...r) => Ce(e, gt, r.flatMap(f))
|
|
833
871
|
}
|
|
834
872
|
);
|
|
835
873
|
let j = !1;
|
|
836
|
-
function
|
|
837
|
-
t
|
|
838
|
-
const r = e.getAttribute("data-tempo-attrs");
|
|
839
|
-
r !== null && (r.split(" ").forEach((n) => {
|
|
840
|
-
e.removeAttribute(n);
|
|
841
|
-
}), e.removeAttribute("data-tempo-attrs"));
|
|
842
|
-
}), t.querySelectorAll("[data-tempo-node]").forEach((e) => {
|
|
843
|
-
var r;
|
|
844
|
-
(r = e.parentElement) == null || r.removeChild(e), e.removeAttribute("data-tempo-node");
|
|
845
|
-
}), t.querySelectorAll("[data-tempo-text]").forEach((e) => {
|
|
846
|
-
e.textContent = "", e.removeAttribute("data-tempo-text");
|
|
847
|
-
}), t.querySelectorAll("[data-tempo-styles]").forEach((e) => {
|
|
848
|
-
const r = e.getAttribute("data-tempo-styles");
|
|
849
|
-
r !== null && (r.split(" ").forEach((n) => {
|
|
850
|
-
e == null || e.style.removeProperty(n);
|
|
851
|
-
}), e.removeAttribute("data-tempo-styles"));
|
|
852
|
-
});
|
|
874
|
+
function wt(t) {
|
|
875
|
+
ft(t), lt(t), ut(t), ht(t);
|
|
853
876
|
}
|
|
854
877
|
let U = 0;
|
|
855
|
-
const
|
|
878
|
+
const sr = (t = 30) => (j = !0, new Promise((e, r) => {
|
|
856
879
|
let n;
|
|
857
880
|
const s = setInterval(() => {
|
|
858
881
|
U <= 0 && (clearInterval(s), clearTimeout(n), j = !1, e());
|
|
@@ -860,14 +883,14 @@ const Bt = (t = 30) => (j = !0, new Promise((e, r) => {
|
|
|
860
883
|
n = setTimeout(() => {
|
|
861
884
|
clearInterval(s), r(new Error("SSR Timeout"));
|
|
862
885
|
}, t * 1e3);
|
|
863
|
-
})),
|
|
886
|
+
})), D = {
|
|
864
887
|
useDone(t) {
|
|
865
888
|
return U++, f(t(() => U--));
|
|
866
889
|
},
|
|
867
890
|
get isSSR() {
|
|
868
891
|
return j;
|
|
869
892
|
}
|
|
870
|
-
},
|
|
893
|
+
}, Me = (t, e) => (r) => {
|
|
871
894
|
const n = Object.values(t).reduce((s, i) => {
|
|
872
895
|
const o = r.getProvider(i);
|
|
873
896
|
if (o == null)
|
|
@@ -875,21 +898,21 @@ const Bt = (t = 30) => (j = !0, new Promise((e, r) => {
|
|
|
875
898
|
return s[i] = o, s;
|
|
876
899
|
}, {});
|
|
877
900
|
return f(e(n))(r);
|
|
878
|
-
},
|
|
901
|
+
}, ir = (t, e) => (r) => {
|
|
879
902
|
const n = [], s = Object.entries(t).reduce(
|
|
880
|
-
(i, [o,
|
|
881
|
-
|
|
903
|
+
(i, [o, l]) => (n.push(
|
|
904
|
+
l((u) => (Reflect.set(i, o, u), null))(r)
|
|
882
905
|
), i),
|
|
883
906
|
{}
|
|
884
907
|
);
|
|
885
908
|
return n.push(e(s)(r)), (i) => {
|
|
886
909
|
n.forEach((o) => o(i));
|
|
887
910
|
};
|
|
888
|
-
},
|
|
889
|
-
function
|
|
911
|
+
}, bt = (t, e) => Me([t], (r) => f(e(r[t]))), or = (t, e) => Me(t, (r) => f(e(r))), M = (t) => (e) => (r) => t(r, e);
|
|
912
|
+
function St(t) {
|
|
890
913
|
return Symbol(t);
|
|
891
914
|
}
|
|
892
|
-
const
|
|
915
|
+
const Ne = (t, e) => (r) => f(e)(r.withProviders(t)), ur = (...t) => t.length > 0 ? t.reduceRight((e, r) => (n) => e(r(n))) : f, vt = (t, e, r) => Ne({ [t]: e }, f(r)), ar = (t, e) => Ne(t, f(e)), oe = St("Appearance"), lr = {
|
|
893
916
|
/**
|
|
894
917
|
* Provides a child component with an appearance context, which can be used to
|
|
895
918
|
* determine the current appearance (light or dark) based on the user's system
|
|
@@ -902,12 +925,12 @@ const $e = (t, e) => (r) => f(e)(r.withProviders(t)), Qt = (...t) => t.length >
|
|
|
902
925
|
* @returns The child component with the appearance context.
|
|
903
926
|
*/
|
|
904
927
|
provide: (t) => {
|
|
905
|
-
const e = window.matchMedia != null && window.matchMedia("(prefers-color-scheme: dark)").matches, r =
|
|
928
|
+
const e = window.matchMedia != null && window.matchMedia("(prefers-color-scheme: dark)").matches, r = A(e ? "dark" : "light"), n = (i) => {
|
|
906
929
|
r.set(i.matches ? "dark" : "light");
|
|
907
930
|
}, s = window.matchMedia != null ? window.matchMedia("(prefers-color-scheme: dark)") : void 0;
|
|
908
|
-
return s == null || s.addEventListener("change", n),
|
|
909
|
-
|
|
910
|
-
|
|
931
|
+
return s == null || s.addEventListener("change", n), g(
|
|
932
|
+
vt(oe, r, t),
|
|
933
|
+
M(() => s == null ? void 0 : s.removeEventListener("change", n))
|
|
911
934
|
);
|
|
912
935
|
},
|
|
913
936
|
/**
|
|
@@ -917,34 +940,34 @@ const $e = (t, e) => (r) => f(e)(r.withProviders(t)), Qt = (...t) => t.length >
|
|
|
917
940
|
* @param fn - A function that accepts the `AppearanceType` signal and returns a `Child` element.
|
|
918
941
|
* @returns The `Child` element returned by the provided function.
|
|
919
942
|
*/
|
|
920
|
-
consume: (t) =>
|
|
921
|
-
},
|
|
943
|
+
consume: (t) => bt(oe, t)
|
|
944
|
+
}, Le = (t, e) => {
|
|
922
945
|
if (typeof e == "function")
|
|
923
|
-
return
|
|
924
|
-
const r = e.pending != null ? f(e.pending) :
|
|
946
|
+
return Le(t, { then: e });
|
|
947
|
+
const r = e.pending != null ? f(e.pending) : w, n = e.then, s = e.error != null ? (i) => f(e.error(i)) : () => w;
|
|
925
948
|
return (i) => {
|
|
926
949
|
let o = !0;
|
|
927
|
-
const
|
|
950
|
+
const l = t();
|
|
928
951
|
i = i.makeRef();
|
|
929
|
-
let
|
|
930
|
-
return
|
|
952
|
+
let u = f(r)(i);
|
|
953
|
+
return l.then(
|
|
931
954
|
(c) => {
|
|
932
|
-
o && (
|
|
955
|
+
o && (u(!0), u = f(n(c))(i));
|
|
933
956
|
},
|
|
934
957
|
(c) => {
|
|
935
|
-
o && (
|
|
958
|
+
o && (u(!0), u = f(s(c))(i));
|
|
936
959
|
}
|
|
937
960
|
), (c) => {
|
|
938
|
-
o = !1,
|
|
961
|
+
o = !1, u(c), c && i.reference && b(i.reference);
|
|
939
962
|
};
|
|
940
963
|
};
|
|
941
|
-
},
|
|
964
|
+
}, cr = (t, e) => Le(() => t, e), fr = (t = 10) => (e) => {
|
|
942
965
|
const r = setTimeout(() => {
|
|
943
966
|
var n;
|
|
944
967
|
(n = e.element) == null || n.focus();
|
|
945
968
|
}, t);
|
|
946
969
|
return (n) => clearTimeout(r);
|
|
947
|
-
},
|
|
970
|
+
}, hr = (t = 10) => (e) => {
|
|
948
971
|
const r = setTimeout(() => {
|
|
949
972
|
var n;
|
|
950
973
|
(n = e.element) == null || n.select();
|
|
@@ -952,21 +975,21 @@ const $e = (t, e) => (r) => f(e)(r.withProviders(t)), Qt = (...t) => t.length >
|
|
|
952
975
|
return (n) => {
|
|
953
976
|
clearTimeout(r);
|
|
954
977
|
};
|
|
955
|
-
},
|
|
978
|
+
}, Ie = (t, e) => (r) => (r.element.addEventListener(t, e), (n) => {
|
|
956
979
|
n && r.element.removeEventListener(t, e);
|
|
957
|
-
}),
|
|
980
|
+
}), At = (t) => Ie("click", (e) => {
|
|
958
981
|
e.preventDefault();
|
|
959
982
|
const r = e.target;
|
|
960
983
|
setTimeout(() => {
|
|
961
984
|
const n = r.ownerDocument != null ? r == null ? void 0 : r.checked : void 0;
|
|
962
985
|
n != null && t(!n);
|
|
963
986
|
}, 0);
|
|
964
|
-
}),
|
|
987
|
+
}), q = new Proxy(
|
|
965
988
|
{},
|
|
966
989
|
{
|
|
967
|
-
get: (t, e) => (r) =>
|
|
990
|
+
get: (t, e) => (r) => Ie(e, r)
|
|
968
991
|
}
|
|
969
|
-
),
|
|
992
|
+
), Z = {
|
|
970
993
|
value: (t) => (e) => {
|
|
971
994
|
const r = e.target;
|
|
972
995
|
t(r.value);
|
|
@@ -1011,74 +1034,74 @@ const $e = (t, e) => (r) => f(e)(r.withProviders(t)), Qt = (...t) => t.length >
|
|
|
1011
1034
|
e.stopImmediatePropagation(), t();
|
|
1012
1035
|
}
|
|
1013
1036
|
};
|
|
1014
|
-
function
|
|
1015
|
-
return
|
|
1016
|
-
|
|
1017
|
-
|
|
1037
|
+
function yt(t, e = "input") {
|
|
1038
|
+
return g(
|
|
1039
|
+
P.valueAsDate(t),
|
|
1040
|
+
q[e](Z.valueAsDate(t.set))
|
|
1018
1041
|
);
|
|
1019
1042
|
}
|
|
1020
|
-
function
|
|
1021
|
-
return
|
|
1022
|
-
|
|
1023
|
-
|
|
1043
|
+
function Et(t, e = "input") {
|
|
1044
|
+
return g(
|
|
1045
|
+
P.valueAsDate(t),
|
|
1046
|
+
q[e](Z.valueAsDateTime(t.set))
|
|
1024
1047
|
);
|
|
1025
1048
|
}
|
|
1026
|
-
function
|
|
1027
|
-
return
|
|
1028
|
-
|
|
1029
|
-
|
|
1049
|
+
function _t(t, e = "input") {
|
|
1050
|
+
return g(
|
|
1051
|
+
P.valueAsNumber(t),
|
|
1052
|
+
q[e](Z.valueAsNumber(t.set))
|
|
1030
1053
|
);
|
|
1031
1054
|
}
|
|
1032
|
-
function
|
|
1033
|
-
return
|
|
1055
|
+
function Pt(t, e = "input") {
|
|
1056
|
+
return g(P.value(t), q[e](Z.value(t.set)));
|
|
1034
1057
|
}
|
|
1035
|
-
function
|
|
1036
|
-
return
|
|
1037
|
-
}
|
|
1038
|
-
const
|
|
1039
|
-
date:
|
|
1040
|
-
dateTime:
|
|
1041
|
-
number:
|
|
1042
|
-
text:
|
|
1043
|
-
checked:
|
|
1044
|
-
},
|
|
1058
|
+
function Dt(t) {
|
|
1059
|
+
return g(P.checked(t), At(t.set));
|
|
1060
|
+
}
|
|
1061
|
+
const dr = {
|
|
1062
|
+
date: yt,
|
|
1063
|
+
dateTime: Et,
|
|
1064
|
+
number: _t,
|
|
1065
|
+
text: Pt,
|
|
1066
|
+
checked: Dt
|
|
1067
|
+
}, I = (t, e) => (r) => {
|
|
1045
1068
|
r = r.makeRef();
|
|
1046
1069
|
let n, s;
|
|
1047
|
-
const i = t.map((
|
|
1070
|
+
const i = t.map((u) => Object.keys(u)[0]);
|
|
1048
1071
|
let o;
|
|
1049
|
-
const
|
|
1050
|
-
if (
|
|
1051
|
-
s == null || s.dispose(), n == null || n(!0), s = t.map((
|
|
1052
|
-
const c = e[
|
|
1053
|
-
n = f(c)(r), o =
|
|
1072
|
+
const l = i.on((u) => {
|
|
1073
|
+
if (u !== o) {
|
|
1074
|
+
s == null || s.dispose(), n == null || n(!0), s = t.map((p) => p[u]);
|
|
1075
|
+
const c = e[u](s);
|
|
1076
|
+
n = f(c)(r), o = u;
|
|
1054
1077
|
}
|
|
1055
1078
|
});
|
|
1056
|
-
return (
|
|
1057
|
-
|
|
1079
|
+
return (u) => {
|
|
1080
|
+
l(), u && r.reference != null && b(r.reference), n == null || n(!0);
|
|
1058
1081
|
};
|
|
1059
|
-
},
|
|
1060
|
-
bool: (t, e) =>
|
|
1082
|
+
}, N = {
|
|
1083
|
+
bool: (t, e) => I(
|
|
1061
1084
|
t.map((r) => r ? { true: !0 } : { false: !0 }),
|
|
1062
1085
|
e
|
|
1063
1086
|
),
|
|
1064
|
-
field: (t, e, r) =>
|
|
1087
|
+
field: (t, e, r) => I(
|
|
1065
1088
|
t.map((n) => ({ [n[e]]: n })),
|
|
1066
1089
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1067
1090
|
r
|
|
1068
1091
|
),
|
|
1069
|
-
kind: (t, e) =>
|
|
1092
|
+
kind: (t, e) => N.field(t, "kind", e),
|
|
1070
1093
|
tuple: (t, e) => {
|
|
1071
1094
|
const r = t.map(([n, s]) => ({ [n]: s }));
|
|
1072
|
-
return
|
|
1095
|
+
return I(r, e);
|
|
1073
1096
|
},
|
|
1074
|
-
type: (t, e) =>
|
|
1075
|
-
value: (t, e) =>
|
|
1097
|
+
type: (t, e) => N.field(t, "type", e),
|
|
1098
|
+
value: (t, e) => I(
|
|
1076
1099
|
t.map((r) => ({ [r]: !0 })),
|
|
1077
1100
|
e
|
|
1078
1101
|
)
|
|
1079
|
-
},
|
|
1080
|
-
const n = (e == null ? void 0 : e.firstSeparator) ??
|
|
1081
|
-
return
|
|
1102
|
+
}, pr = (t, e) => (r) => {
|
|
1103
|
+
const n = (e == null ? void 0 : e.firstSeparator) ?? w, s = (e == null ? void 0 : e.lastSeparator) ?? w;
|
|
1104
|
+
return N.value(
|
|
1082
1105
|
r.map((i) => i.isFirst ? "first" : i.isLast ? "last" : "other"),
|
|
1083
1106
|
{
|
|
1084
1107
|
first: () => n,
|
|
@@ -1086,107 +1109,107 @@ const sr = {
|
|
|
1086
1109
|
other: () => t
|
|
1087
1110
|
}
|
|
1088
1111
|
);
|
|
1089
|
-
},
|
|
1090
|
-
r &&
|
|
1091
|
-
}),
|
|
1112
|
+
}, mr = (t) => (e) => t(e)(e), gr = (t) => (e) => (e.appendOrInsert(t), (r) => {
|
|
1113
|
+
r && b(t);
|
|
1114
|
+
}), Tt = (t, e, r) => (n) => {
|
|
1092
1115
|
n = n.makeRef();
|
|
1093
1116
|
let s = null, i = !1;
|
|
1094
|
-
const o =
|
|
1095
|
-
|
|
1117
|
+
const o = A(null), l = t.on((u) => {
|
|
1118
|
+
u == null ? (s == null || s(!0), s = f((r == null ? void 0 : r()) ?? w)(n), i = !1) : (o.value = u, i || (s == null || s(!0), s = f(e(o))(n), i = !0));
|
|
1096
1119
|
});
|
|
1097
|
-
return (
|
|
1098
|
-
|
|
1120
|
+
return (u) => {
|
|
1121
|
+
l(), s == null || s(u), u && n.reference && b(n.reference);
|
|
1099
1122
|
};
|
|
1100
|
-
},
|
|
1123
|
+
}, Re = (t, e, r) => r != null ? Re(t, (n) => {
|
|
1101
1124
|
const s = n.map((i) => i.isLast ? "last" : "other");
|
|
1102
|
-
return
|
|
1103
|
-
|
|
1125
|
+
return g(
|
|
1126
|
+
M(() => s.dispose()),
|
|
1104
1127
|
f(e(n)),
|
|
1105
|
-
|
|
1106
|
-
last: () =>
|
|
1128
|
+
N.value(s, {
|
|
1129
|
+
last: () => w,
|
|
1107
1130
|
other: () => r(n)
|
|
1108
1131
|
})
|
|
1109
1132
|
);
|
|
1110
1133
|
}) : (n) => {
|
|
1111
1134
|
n = n.makeRef();
|
|
1112
1135
|
const s = t.map(
|
|
1113
|
-
(
|
|
1114
|
-
(c) => new
|
|
1136
|
+
(u) => Array.from({ length: u }, (c, p) => p).map(
|
|
1137
|
+
(c) => new Ye(c, u)
|
|
1115
1138
|
)
|
|
1116
|
-
), i = [], o = [],
|
|
1117
|
-
var
|
|
1118
|
-
const c =
|
|
1139
|
+
), i = [], o = [], l = s.on((u) => {
|
|
1140
|
+
var p, m;
|
|
1141
|
+
const c = u.length;
|
|
1119
1142
|
for (; c < i.length; )
|
|
1120
|
-
(
|
|
1121
|
-
for (let
|
|
1122
|
-
if (o[
|
|
1123
|
-
o[
|
|
1124
|
-
const _ = f(e(o[
|
|
1125
|
-
i[
|
|
1143
|
+
(p = i.pop()) == null || p(!0), (m = o.pop()) == null || m.dispose();
|
|
1144
|
+
for (let h = 0; h < c; h++)
|
|
1145
|
+
if (o[h] == null) {
|
|
1146
|
+
o[h] = A(u[h]);
|
|
1147
|
+
const _ = f(e(o[h]));
|
|
1148
|
+
i[h] = _(n);
|
|
1126
1149
|
} else
|
|
1127
|
-
o[
|
|
1150
|
+
o[h].value = u[h];
|
|
1128
1151
|
});
|
|
1129
|
-
return (
|
|
1130
|
-
|
|
1152
|
+
return (u) => {
|
|
1153
|
+
l(), u && n.reference && b(n.reference);
|
|
1131
1154
|
};
|
|
1132
|
-
},
|
|
1155
|
+
}, $t = (t, e, r) => r != null ? $t(t, (n, s) => {
|
|
1133
1156
|
const i = s.map((o) => o.isLast ? "last" : "other");
|
|
1134
|
-
return
|
|
1135
|
-
|
|
1157
|
+
return g([
|
|
1158
|
+
M(() => i.dispose()),
|
|
1136
1159
|
f(e(n, s)),
|
|
1137
|
-
|
|
1138
|
-
last: () =>
|
|
1160
|
+
N.value(i, {
|
|
1161
|
+
last: () => w,
|
|
1139
1162
|
other: () => r(s)
|
|
1140
1163
|
})
|
|
1141
1164
|
]);
|
|
1142
1165
|
}) : (n) => {
|
|
1143
1166
|
const s = t.map((i) => i.length);
|
|
1144
|
-
return
|
|
1167
|
+
return Re(s, (i) => {
|
|
1145
1168
|
const o = B(
|
|
1146
1169
|
() => t.value[i.value.index],
|
|
1147
1170
|
[i, t]
|
|
1148
1171
|
);
|
|
1149
|
-
return
|
|
1150
|
-
|
|
1172
|
+
return g(
|
|
1173
|
+
M(() => o.dispose()),
|
|
1151
1174
|
f(e(o, i))
|
|
1152
1175
|
);
|
|
1153
1176
|
})(n);
|
|
1154
|
-
},
|
|
1177
|
+
}, wr = (t) => {
|
|
1155
1178
|
const e = t.element, r = e.style.getPropertyValue(":empty");
|
|
1156
1179
|
return e.style.setProperty(":empty", "display:none"), (n) => {
|
|
1157
1180
|
n && e.style.setProperty(":empty", r);
|
|
1158
1181
|
};
|
|
1159
1182
|
};
|
|
1160
|
-
function
|
|
1183
|
+
function Oe(t, e) {
|
|
1161
1184
|
const r = t(e);
|
|
1162
1185
|
return () => r(!0);
|
|
1163
1186
|
}
|
|
1164
|
-
function
|
|
1187
|
+
function br(t, e, { doc: r, clear: n } = {}) {
|
|
1165
1188
|
const s = typeof e == "string" ? (r ?? document).querySelector(e) : e;
|
|
1166
1189
|
if (s === null)
|
|
1167
1190
|
throw new Error(`Cannot find element by selector for render: ${e}`);
|
|
1168
|
-
n && (r ?? s.ownerDocument) != null &&
|
|
1169
|
-
const i =
|
|
1170
|
-
return
|
|
1191
|
+
n && (r ?? s.ownerDocument) != null && wt(r ?? s.ownerDocument);
|
|
1192
|
+
const i = st(s), o = ye(s) ? void 0 : s, l = v.of(i, o);
|
|
1193
|
+
return Oe(t, l);
|
|
1171
1194
|
}
|
|
1172
|
-
const
|
|
1195
|
+
const Ct = (t, e) => (r) => {
|
|
1173
1196
|
const n = r.document.querySelector(t);
|
|
1174
1197
|
if (n === null)
|
|
1175
1198
|
throw new Error(`Cannot find element by selector for portal: ${t}`);
|
|
1176
|
-
return
|
|
1199
|
+
return Oe(
|
|
1177
1200
|
f(e),
|
|
1178
1201
|
r.withElement(n).withFirstLevel()
|
|
1179
1202
|
);
|
|
1180
|
-
},
|
|
1181
|
-
}),
|
|
1203
|
+
}, Sr = (t) => Ct("head title", P.innerText(t)), Mt = (t) => (e) => t(e.element) ?? (() => {
|
|
1204
|
+
}), k = (t, e, r) => Tt(
|
|
1182
1205
|
t.map((n) => n ? !0 : null),
|
|
1183
1206
|
() => e,
|
|
1184
1207
|
r != null ? () => r : void 0
|
|
1185
|
-
),
|
|
1208
|
+
), vr = (t, e, r) => k(
|
|
1186
1209
|
t.map((n) => !n),
|
|
1187
1210
|
e,
|
|
1188
1211
|
r
|
|
1189
|
-
),
|
|
1212
|
+
), Nt = {
|
|
1190
1213
|
partial: {
|
|
1191
1214
|
root: null,
|
|
1192
1215
|
rootMargin: "0px",
|
|
@@ -1197,36 +1220,36 @@ const bt = (t, e) => (r) => {
|
|
|
1197
1220
|
rootMargin: "0px",
|
|
1198
1221
|
threshold: 1
|
|
1199
1222
|
}
|
|
1200
|
-
},
|
|
1223
|
+
}, x = {
|
|
1201
1224
|
partial: /* @__PURE__ */ new Map(),
|
|
1202
1225
|
full: /* @__PURE__ */ new Map()
|
|
1203
|
-
},
|
|
1226
|
+
}, C = {
|
|
1204
1227
|
partial: null,
|
|
1205
1228
|
full: null
|
|
1206
1229
|
};
|
|
1207
|
-
function
|
|
1208
|
-
return
|
|
1230
|
+
function Lt(t) {
|
|
1231
|
+
return C[t] == null && (C[t] = new IntersectionObserver((e) => {
|
|
1209
1232
|
e.forEach((r) => {
|
|
1210
|
-
const n =
|
|
1233
|
+
const n = x[t].get(r.target);
|
|
1211
1234
|
n == null || n.set(r.isIntersecting);
|
|
1212
1235
|
});
|
|
1213
|
-
},
|
|
1214
|
-
}
|
|
1215
|
-
function
|
|
1216
|
-
const r =
|
|
1217
|
-
return
|
|
1218
|
-
|
|
1219
|
-
const s = typeof IntersectionObserver < "u" ?
|
|
1220
|
-
return
|
|
1236
|
+
}, Nt[t])), C[t];
|
|
1237
|
+
}
|
|
1238
|
+
function It(t, e) {
|
|
1239
|
+
const r = A(D.isSSR);
|
|
1240
|
+
return g(
|
|
1241
|
+
Mt((n) => {
|
|
1242
|
+
const s = typeof IntersectionObserver < "u" ? Lt(t) : null;
|
|
1243
|
+
return x[t].set(n, r), s == null || s.observe(n), () => {
|
|
1221
1244
|
var i;
|
|
1222
|
-
s == null || s.unobserve(n),
|
|
1245
|
+
s == null || s.unobserve(n), x[t].delete(n), x[t].size === 0 && ((i = C[t]) == null || i.disconnect(), C[t] = null);
|
|
1223
1246
|
};
|
|
1224
1247
|
}),
|
|
1225
|
-
|
|
1248
|
+
M(r.dispose),
|
|
1226
1249
|
f(e(r))
|
|
1227
1250
|
);
|
|
1228
1251
|
}
|
|
1229
|
-
const
|
|
1252
|
+
const Ar = (t, e, r) => It(t, (n) => k(n, e, r ?? w)), yr = (t, e) => (r) => {
|
|
1230
1253
|
r = r.makeRef();
|
|
1231
1254
|
const n = t.map((o) => f(e(o)));
|
|
1232
1255
|
let s = () => {
|
|
@@ -1238,23 +1261,23 @@ const hr = (t, e, r) => Pt(t, (n) => G(n, e, r ?? S)), dr = (t, e) => (r) => {
|
|
|
1238
1261
|
i(), s(o);
|
|
1239
1262
|
};
|
|
1240
1263
|
};
|
|
1241
|
-
function
|
|
1242
|
-
return
|
|
1264
|
+
function Er(t, e, r = w) {
|
|
1265
|
+
return k(
|
|
1243
1266
|
t.map((n) => n.length > 0),
|
|
1244
1267
|
e,
|
|
1245
1268
|
r
|
|
1246
1269
|
);
|
|
1247
1270
|
}
|
|
1248
|
-
const
|
|
1249
|
-
const r = e.element, n =
|
|
1271
|
+
const Rt = (t) => (e) => {
|
|
1272
|
+
const r = e.element, n = A({ width: r.clientWidth, height: r.clientHeight }), s = f(t(n))(e), i = () => {
|
|
1250
1273
|
n.set({ width: r.clientWidth, height: r.clientHeight });
|
|
1251
1274
|
};
|
|
1252
1275
|
let o;
|
|
1253
|
-
return typeof ResizeObserver == "function" && (o = new ResizeObserver(i), o.observe(r)), (
|
|
1254
|
-
o == null || o.disconnect(), s(
|
|
1276
|
+
return typeof ResizeObserver == "function" && (o = new ResizeObserver(i), o.observe(r)), (l) => {
|
|
1277
|
+
o == null || o.disconnect(), s(l);
|
|
1255
1278
|
};
|
|
1256
|
-
},
|
|
1257
|
-
const r =
|
|
1279
|
+
}, Ot = (t) => (e) => {
|
|
1280
|
+
const r = A({
|
|
1258
1281
|
width: (window == null ? void 0 : window.innerWidth) ?? 0,
|
|
1259
1282
|
height: (window == null ? void 0 : window.innerHeight) ?? 0
|
|
1260
1283
|
}), n = f(t(r))(e), s = () => {
|
|
@@ -1266,132 +1289,124 @@ const _t = (t) => (e) => {
|
|
|
1266
1289
|
return window == null || window.addEventListener("resize", s), (i) => {
|
|
1267
1290
|
window == null || window.removeEventListener("resize", s), n(i);
|
|
1268
1291
|
};
|
|
1269
|
-
},
|
|
1270
|
-
element:
|
|
1271
|
-
window:
|
|
1272
|
-
},
|
|
1273
|
-
function Ne(t, e) {
|
|
1274
|
-
const r = t.getAttribute(K);
|
|
1275
|
-
r === null ? t.setAttribute(K, e) : t.setAttribute(K, `${r} ${e}`);
|
|
1276
|
-
}
|
|
1277
|
-
const Lt = (t, e) => (r) => {
|
|
1278
|
-
r.isFirstLevel && h.isSSR && Ne(r.element, t);
|
|
1292
|
+
}, _r = {
|
|
1293
|
+
element: Rt,
|
|
1294
|
+
window: Ot
|
|
1295
|
+
}, xt = (t, e) => (r) => {
|
|
1279
1296
|
const n = r.element, s = n.style.getPropertyValue(t);
|
|
1280
1297
|
return n.style.setProperty(t, e), (i) => {
|
|
1281
1298
|
i && n.style.setProperty(t, s);
|
|
1282
1299
|
};
|
|
1283
|
-
},
|
|
1284
|
-
r.isFirstLevel && h.isSSR && Ne(r.element, t);
|
|
1300
|
+
}, Wt = (t, e) => (r) => {
|
|
1285
1301
|
const n = r.element, s = n.style.getPropertyValue(t);
|
|
1286
1302
|
return e.on((i) => n.style.setProperty(t, i)), (i) => {
|
|
1287
1303
|
i && n.style.setProperty(t, s);
|
|
1288
1304
|
};
|
|
1289
|
-
},
|
|
1305
|
+
}, Pr = new Proxy(
|
|
1290
1306
|
{},
|
|
1291
1307
|
{
|
|
1292
|
-
get: (t, e) => (r) =>
|
|
1308
|
+
get: (t, e) => (r) => d.is(r) ? Wt(e, r) : xt(e, r)
|
|
1293
1309
|
}
|
|
1294
1310
|
);
|
|
1295
1311
|
export {
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1312
|
+
cr as Async,
|
|
1313
|
+
fr as AutoFocus,
|
|
1314
|
+
hr as AutoSelect,
|
|
1315
|
+
T as Computed,
|
|
1316
|
+
pr as Conjunction,
|
|
1317
|
+
mr as Ctx,
|
|
1318
|
+
v as DOMContext,
|
|
1319
|
+
gr as DOMEl,
|
|
1320
|
+
$e as El,
|
|
1321
|
+
Ce as ElNS,
|
|
1322
|
+
w as Empty,
|
|
1323
|
+
Tt as Ensure,
|
|
1324
|
+
$t as ForEach,
|
|
1325
|
+
g as Fragment,
|
|
1326
|
+
Sr as HTMLTitle,
|
|
1327
|
+
wr as HiddenWhenEmpty,
|
|
1328
|
+
It as InViewport,
|
|
1329
|
+
yr as MapSignal,
|
|
1314
1330
|
he as MemoryStore,
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
er as appearance,
|
|
1331
|
+
Er as NotEmpty,
|
|
1332
|
+
At as OnChecked,
|
|
1333
|
+
M as OnDispose,
|
|
1334
|
+
Mt as OnMount,
|
|
1335
|
+
Ct as Portal,
|
|
1336
|
+
Ye as Position,
|
|
1337
|
+
F as Prop,
|
|
1338
|
+
ur as Provide,
|
|
1339
|
+
Re as Repeat,
|
|
1340
|
+
d as Signal,
|
|
1341
|
+
Le as Task,
|
|
1342
|
+
kt as Text,
|
|
1343
|
+
vr as Unless,
|
|
1344
|
+
ir as Use,
|
|
1345
|
+
bt as UseProvider,
|
|
1346
|
+
or as UseProviders,
|
|
1347
|
+
k as When,
|
|
1348
|
+
Ar as WhenInViewport,
|
|
1349
|
+
vt as WithProvider,
|
|
1350
|
+
ar as WithProviders,
|
|
1351
|
+
Ke as animate,
|
|
1352
|
+
Xt as animateOne,
|
|
1353
|
+
lr as appearance,
|
|
1339
1354
|
oe as appearanceMarker,
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1355
|
+
Ut as applyAnimatable,
|
|
1356
|
+
R as applyAnimatableProp,
|
|
1357
|
+
jt as applyInterpolatedAnimatable,
|
|
1358
|
+
Je as applyInterpolatedAnimatableProp,
|
|
1359
|
+
Gt as aria,
|
|
1360
|
+
P as attr,
|
|
1361
|
+
dr as bind,
|
|
1347
1362
|
f as childToMountable,
|
|
1348
|
-
|
|
1349
|
-
|
|
1363
|
+
wt as clearSSR,
|
|
1364
|
+
Ue as colorChannelsToString,
|
|
1350
1365
|
B as computed,
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1366
|
+
Yt as computedRecord,
|
|
1367
|
+
qe as dateInterpolate,
|
|
1368
|
+
zt as effect,
|
|
1369
|
+
Z as emit,
|
|
1370
|
+
Ze as endInterpolate,
|
|
1371
|
+
Kt as getComputedAnimatable,
|
|
1372
|
+
ke as getComputedAnimatableProp,
|
|
1373
|
+
st as getSelfOrParentElement,
|
|
1374
|
+
Xe as guessInterpolate,
|
|
1375
|
+
Bt as handleAnchorClick,
|
|
1376
|
+
er as html,
|
|
1377
|
+
tr as input,
|
|
1378
|
+
Be as interpolateColor,
|
|
1379
|
+
Ht as interpolateShadow,
|
|
1380
|
+
ye as isElement,
|
|
1381
|
+
Ae as makeGetter,
|
|
1382
|
+
St as makeProviderMark,
|
|
1383
|
+
ve as makeSetter,
|
|
1384
|
+
nr as math,
|
|
1385
|
+
Qt as mathAttr,
|
|
1386
|
+
ze as numberInterpolate,
|
|
1387
|
+
q as on,
|
|
1388
|
+
N as oneof,
|
|
1374
1389
|
se as parseColorChannels,
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1390
|
+
A as prop,
|
|
1391
|
+
qt as propOfLocalStorage,
|
|
1392
|
+
Zt as propOfSessionStorage,
|
|
1378
1393
|
de as propOfStorage,
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1394
|
+
b as removeDOMNode,
|
|
1395
|
+
br as render,
|
|
1396
|
+
Oe as renderWithContext,
|
|
1397
|
+
nt as setAttribute,
|
|
1398
|
+
Qe as setBooleanProperty,
|
|
1399
|
+
tt as setDateProperty,
|
|
1400
|
+
et as setNumberProperty,
|
|
1401
|
+
rt as setStringProperty,
|
|
1402
|
+
Vt as signal,
|
|
1403
|
+
_e as signalText,
|
|
1404
|
+
_r as size,
|
|
1405
|
+
D as ssr,
|
|
1406
|
+
sr as startSSR,
|
|
1392
1407
|
Ee as staticText,
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1408
|
+
Ve as stringInterpolate,
|
|
1409
|
+
Pr as style,
|
|
1410
|
+
rr as svg,
|
|
1411
|
+
Jt as svgAttr
|
|
1397
1412
|
};
|