fiboui 2.9.5 → 2.9.14
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/{client-Cc87LXic.js → client-CNrWulRU.js} +1742 -1638
- package/dist/content.d.ts +23 -1
- package/dist/content.js +10 -10
- package/dist/core.d.ts +41 -1
- package/dist/core.js +56 -54
- package/dist/{icons-By9BFp7V.js → icons-CUjbVN8n.js} +126 -112
- package/dist/{index-BJnYb_kw.js → index-BBa7p7cv.js} +6 -6
- package/dist/{index-T8F37_p4.js → index-Bcf-s8v0.js} +145 -138
- package/dist/{index-C-hvMzQd.js → index-COE2gXjP.js} +1 -1
- package/dist/{index-D5c1VXlN.js → index-CpUz5DNt.js} +39 -39
- package/dist/{index-BxYsYMal.js → index-Dm9qGQyL.js} +2 -2
- package/dist/index.d.ts +61 -2
- package/dist/index.js +1303 -1170
- package/dist/interactive.d.ts +11 -0
- package/dist/interactive.js +6 -6
- package/dist/layout.d.ts +11 -0
- package/dist/layout.js +3 -3
- package/dist/{metadata-BffL-8b9.js → metadata-CElV09j3.js} +20 -20
- package/dist/navigation.js +2 -2
- package/dist/{page-DbndR-7r.js → page-LLSMLaL2.js} +81 -82
- package/dist/server.d.ts +11 -0
- package/dist/server.js +840 -802
- package/dist/structure.d.ts +11 -0
- package/dist/structure.js +8 -8
- package/dist/style.css +1 -1
- package/dist/theme.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var c = (e, s, t) =>
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { F as
|
|
7
|
-
import { C as
|
|
8
|
-
import { C as
|
|
9
|
-
import u, { useRef as
|
|
10
|
-
import { A as
|
|
11
|
-
import { A as
|
|
12
|
-
import { B as
|
|
13
|
-
import { A as
|
|
14
|
-
import { L as
|
|
15
|
-
function
|
|
1
|
+
var Ee = Object.defineProperty;
|
|
2
|
+
var xe = (e, s, t) => s in e ? Ee(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t;
|
|
3
|
+
var c = (e, s, t) => xe(e, typeof s != "symbol" ? s + "" : s, t);
|
|
4
|
+
import { bE as Ne, H as Te, I as Be, b4 as y, b5 as _, bJ as Qt, b9 as G, b8 as R, bb as z, bK as $e, bf as I, bu as x, bL as _t, bM as Jt, by as te, bH as ee, bk as Pe, bN as Le, bO as Ae } from "./client-CNrWulRU.js";
|
|
5
|
+
import { df as ma, dl as pa, dq as ga, dJ as ya, dm as _a, dV as ba, aH as Sa, dA as va, dz as wa, dB as ka, dC as Ca, dy as Ea, d2 as xa, d7 as Na, aC as Ta, da as Ba, dr as $a, cv as Pa, aJ as La, dk as Aa, cP as Ra, aG as Ma, C as Fa, cA as Ia, cu as Da, cX as Oa, cw as ja, dN as Ha, af as Wa, cN as Va, c_ as Ga, aR as za, aQ as Ua, e1 as Xa, cG as Ya, cx as Ka, b_ as qa, dM as Za, E as Qa, cs as Ja, ct as to, de as eo, c3 as so, bS as ro, X as io, bQ as no, aY as ao, a6 as oo, a3 as lo, a4 as co, _ as uo, aS as ho, dD as fo, dE as mo, F as po, dL as go, dn as yo, be as _o, ao as bo, dY as So, ak as vo, c5 as wo, cy as ko, dH as Co, d4 as Eo, cm as xo, ad as No, cl as To, T as Bo, am as $o, cM as Po, dK as Lo, d$ as Ao, cJ as Ro, aj as Mo, ai as Fo, ah as Io, aI as Do, L as Oo, dG as jo, bZ as Ho, Q as Wo, c0 as Vo, b$ as Go, cB as zo, cW as Uo, dU as Xo, dd as Yo, Z as Ko, cL as qo, O as Zo, n as Qo, cI as Jo, d0 as tl, d6 as el, d5 as sl, dX as rl, bU as il, cK as nl, dT as al, cn as ol, B as ll, P as cl, aD as ul, dc as hl, dj as dl, cT as fl, R as ml, dR as pl, dF as gl, D as yl, c1 as _l, aK as bl, ab as Sl, ac as vl, e0 as wl, du as kl, cz as Cl, G as El, ag as xl, cV as Nl, d8 as Tl, cR as Bl, cQ as $l, aF as Pl, d1 as Ll, cH as Al, c4 as Rl, dS as Ml, d3 as Fl, c$ as Il, dW as Dl, ae as Ol, S as jl, c2 as Hl, dg as Wl, cS as Vl, dO as Gl, dP as zl, di as Ul, bY as Xl, ds as Yl, cU as Kl, d_ as ql, aB as Zl, db as Ql, dI as Jl, bX as tc, al as ec, dw as sc, dp as rc, an as ic, dv as nc, aE as ac, dt as oc, cO as lc, dQ as cc, cY as uc, dZ as hc, a8 as dc, ah as fc, ai as mc, dx as pc, cZ as gc, cE as yc, d9 as _c, cC as bc, t as Sc, q as vc, d as wc, c as kc, a_ as Cc, a9 as Ec, b as xc, a as Nc, aV as Tc, at as Bc, a2 as $c, Y as Pc, e as Lc, bR as Ac, aA as Rc, a$ as Mc, f as Fc, ap as Ic, a0 as Dc, g as Oc, $ as jc, a1 as Hc, dh as Wc, az as Vc, V as Gc, W as zc, i as Uc, bh as Xc, e2 as Yc, l as Kc, cj as qc, ck as Zc, aU as Qc, aw as Jc, as as tu, av as eu, ar as su, a5 as ru, aX as iu, U as nu, bP as au, o as ou, au as lu, aa as cu, cq as uu, aq as hu, h as du, N as fu, cD as mu, bW as pu, aZ as gu, ax as yu, r as _u, s as bu, e3 as Su, M as vu, bC as wu, bg as ku, K as Cu, J as Eu, b3 as xu, b2 as Nu, b0 as Tu, b1 as Bu, bc as $u, a7 as Pu, bd as Lu, bI as Au, ay as Ru, m as Mu, aT as Fu, aO as Iu, y as Du, aM as Ou, k as ju, aN as Hu, z as Wu, p as Vu, aP as Gu, j as zu, aL as Uu, cF as Xu, A as Yu, u as Ku, w as qu, x as Zu, v as Qu, bT as Ju, aW as th, ch as eh, c8 as sh, c7 as rh, cf as ih, cg as nh, c9 as ah, ca as oh, bV as lh, cc as ch, cb as uh, ce as hh, ci as dh, c6 as fh, cd as mh, cp as ph, co as gh, cr as yh } from "./client-CNrWulRU.js";
|
|
6
|
+
import { F as bh, P as Sh, T as vh, U as wh, a as kh, c as Ch, p as Eh, w as xh } from "./page-LLSMLaL2.js";
|
|
7
|
+
import { C as Th, a as Bh, L as $h, b as Ph, S as Lh, Z as Ah } from "./index-Bcf-s8v0.js";
|
|
8
|
+
import { C as Mh, S as Fh } from "./index-COE2gXjP.js";
|
|
9
|
+
import u, { useRef as E, useState as P, useLayoutEffect as Z, useEffect as V } from "react";
|
|
10
|
+
import { A as Dh, B as Oh, I as jh } from "./icons-CUjbVN8n.js";
|
|
11
|
+
import { A as Wh, I as Vh, L as Gh, P as zh, a as Uh, S as Xh } from "./index-Dm9qGQyL.js";
|
|
12
|
+
import { B as Kh } from "./index-BBa7p7cv.js";
|
|
13
|
+
import { A as Zh, B as Qh, C as Jh, c as td, d as ed, G as sd, b as rd, L as id, P as nd, T as ad, a as od } from "./index-CpUz5DNt.js";
|
|
14
|
+
import { L as cd, N as ud, O as hd, l as dd, p as fd, u as md } from "./metadata-CElV09j3.js";
|
|
15
|
+
function se() {
|
|
16
16
|
const e = globalThis.window;
|
|
17
17
|
return typeof e > "u" || e == null ? void 0 : e;
|
|
18
18
|
}
|
|
19
|
-
async function
|
|
19
|
+
async function Vi(e) {
|
|
20
20
|
var t;
|
|
21
21
|
const s = globalThis.navigator;
|
|
22
22
|
if (typeof s > "u" || !((t = s == null ? void 0 : s.clipboard) != null && t.writeText)) return !1;
|
|
@@ -26,80 +26,80 @@ async function ji(e) {
|
|
|
26
26
|
return !1;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
const t =
|
|
29
|
+
function Re(e, s) {
|
|
30
|
+
const t = se();
|
|
31
31
|
if (!t || typeof t.open != "function" || !Ne(e)) return;
|
|
32
32
|
const r = (s == null ? void 0 : s.target) ?? "_blank", i = (s == null ? void 0 : s.features) ?? (r === "_blank" ? "noopener,noreferrer" : void 0);
|
|
33
33
|
t.open(e, r, i);
|
|
34
34
|
}
|
|
35
|
-
const
|
|
36
|
-
function
|
|
37
|
-
|
|
35
|
+
const Gi = Re;
|
|
36
|
+
function zi(e, s) {
|
|
37
|
+
Te(e, {
|
|
38
38
|
behavior: (s == null ? void 0 : s.behavior) ?? "smooth",
|
|
39
39
|
block: (s == null ? void 0 : s.block) ?? "start",
|
|
40
40
|
hash: !0
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Me(e, s) {
|
|
44
44
|
if (e.key.toLowerCase() !== s.key.toLowerCase()) return !1;
|
|
45
45
|
if (s.metaOrCtrl) {
|
|
46
46
|
if (!(e.metaKey || e.ctrlKey)) return !1;
|
|
47
47
|
} else if (s.meta !== void 0 && e.metaKey !== s.meta || s.ctrl !== void 0 && e.ctrlKey !== s.ctrl) return !1;
|
|
48
48
|
return !(s.alt !== void 0 && e.altKey !== s.alt || s.shift !== void 0 && e.shiftKey !== s.shift);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
const s =
|
|
50
|
+
function Ui(e) {
|
|
51
|
+
const s = se();
|
|
52
52
|
if (!(s != null && s.addEventListener)) return () => {
|
|
53
53
|
};
|
|
54
54
|
const t = (r) => {
|
|
55
55
|
for (const i of e)
|
|
56
|
-
if (!(i.when && !i.when()) &&
|
|
56
|
+
if (!(i.when && !i.when()) && Me(r, i)) {
|
|
57
57
|
i.preventDefault !== !1 && r.preventDefault(), i.run();
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
return s.addEventListener("keydown", t), () => s.removeEventListener("keydown", t);
|
|
62
62
|
}
|
|
63
|
-
let
|
|
64
|
-
function
|
|
65
|
-
return
|
|
63
|
+
let J = null;
|
|
64
|
+
function Xi() {
|
|
65
|
+
return J;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
const t =
|
|
69
|
-
|
|
67
|
+
function Tt(e, s) {
|
|
68
|
+
const t = J;
|
|
69
|
+
J = e;
|
|
70
70
|
try {
|
|
71
71
|
if (e.animation === !1) return s();
|
|
72
72
|
let r;
|
|
73
|
-
return
|
|
73
|
+
return Be(() => {
|
|
74
74
|
r = s();
|
|
75
75
|
}), r;
|
|
76
76
|
} finally {
|
|
77
|
-
|
|
77
|
+
J = t;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
return typeof e == "function" ?
|
|
80
|
+
function Yi(e, s) {
|
|
81
|
+
return typeof e == "function" ? Tt({ animation: !0 }, e) : Tt({ animation: e }, s);
|
|
82
82
|
}
|
|
83
|
-
const
|
|
84
|
-
function
|
|
85
|
-
return Math.max(-
|
|
83
|
+
const Fe = [-8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8], re = 12, Bt = 8;
|
|
84
|
+
function ie(e) {
|
|
85
|
+
return Math.max(-Bt, Math.min(Bt, Math.round(e)));
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
const t =
|
|
87
|
+
function lt(e, s = 0) {
|
|
88
|
+
const t = ie(s);
|
|
89
89
|
if (t === 0 || !e) return e;
|
|
90
|
-
const r = 100 - Math.abs(t) *
|
|
90
|
+
const r = 100 - Math.abs(t) * re, i = t > 0 ? "#fff" : "#000";
|
|
91
91
|
return `color-mix(in srgb, ${e} ${r}%, ${i})`;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function ne(e) {
|
|
94
94
|
const s = {};
|
|
95
|
-
for (const t of
|
|
95
|
+
for (const t of Fe) s[t] = lt(e, t);
|
|
96
96
|
return s;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function L(e, s) {
|
|
99
99
|
const t = (s % 360 + 360) % 360;
|
|
100
100
|
return `hsl(from ${e} calc(h + ${t}) s l)`;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function ae(e) {
|
|
103
103
|
const s = e.trim(), t = /^#([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(s);
|
|
104
104
|
if (t) {
|
|
105
105
|
let i = t[1];
|
|
@@ -108,87 +108,87 @@ function ie(e) {
|
|
|
108
108
|
const r = /^rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)/i.exec(s);
|
|
109
109
|
return r ? [Number(r[1]), Number(r[2]), Number(r[3])] : null;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function ut(e) {
|
|
112
112
|
const s = e / 255;
|
|
113
113
|
return s <= 0.04045 ? s / 12.92 : ((s + 0.055) / 1.055) ** 2.4;
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
const s =
|
|
117
|
-
return s ? 0.2126 *
|
|
115
|
+
function bt(e) {
|
|
116
|
+
const s = ae(e);
|
|
117
|
+
return s ? 0.2126 * ut(s[0]) + 0.7152 * ut(s[1]) + 0.0722 * ut(s[2]) > 0.45 ? "#000000" : "#ffffff" : `contrast-color(${e})`;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Ie(e, s = 1) {
|
|
120
120
|
const t = Math.max(0, Math.min(1, s));
|
|
121
121
|
return t === 1 ? e : `color-mix(in srgb, ${e} ${Math.round(t * 100)}%, transparent)`;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function oe(e, s = 0.45) {
|
|
124
124
|
const t = Math.max(0, Math.min(1, s));
|
|
125
125
|
return t === 0 ? e : `color-mix(in srgb, ${e} ${Math.round((1 - t) * 100)}%, #8a8a8a)`;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
const t =
|
|
129
|
-
if (!t || r === 0) return
|
|
130
|
-
const i = Math.abs(r) *
|
|
127
|
+
function De(e, s) {
|
|
128
|
+
const t = ae(e), r = ie(s);
|
|
129
|
+
if (!t || r === 0) return lt(e, s);
|
|
130
|
+
const i = Math.abs(r) * re / 100, n = r > 0 ? 255 : 0, o = (l) => Math.round(l + (n - l) * i), a = (l) => l.toString(16).padStart(2, "0");
|
|
131
131
|
return `#${a(o(t[0]))}${a(o(t[1]))}${a(o(t[2]))}`;
|
|
132
132
|
}
|
|
133
|
-
const
|
|
134
|
-
function
|
|
135
|
-
const s =
|
|
133
|
+
const Y = /* @__PURE__ */ new Map(), Oe = 32;
|
|
134
|
+
function j(e) {
|
|
135
|
+
const s = Y.get(e);
|
|
136
136
|
if (s) return s;
|
|
137
|
-
const t =
|
|
137
|
+
const t = lt(e, 5), r = {
|
|
138
138
|
color: e,
|
|
139
|
-
on:
|
|
139
|
+
on: bt(e),
|
|
140
140
|
container: t,
|
|
141
|
-
onContainer:
|
|
142
|
-
secondary:
|
|
143
|
-
tertiary:
|
|
144
|
-
opposite:
|
|
145
|
-
near: [
|
|
146
|
-
sides: [
|
|
147
|
-
three: [e,
|
|
148
|
-
four: [e,
|
|
149
|
-
mute:
|
|
150
|
-
scale:
|
|
141
|
+
onContainer: bt(De(e, 5)),
|
|
142
|
+
secondary: L(e, 30),
|
|
143
|
+
tertiary: L(e, 330),
|
|
144
|
+
opposite: L(e, 180),
|
|
145
|
+
near: [L(e, 30), L(e, 330)],
|
|
146
|
+
sides: [L(e, 150), L(e, 210)],
|
|
147
|
+
three: [e, L(e, 120), L(e, 240)],
|
|
148
|
+
four: [e, L(e, 90), L(e, 180), L(e, 270)],
|
|
149
|
+
mute: oe(e),
|
|
150
|
+
scale: ne(e)
|
|
151
151
|
};
|
|
152
|
-
if (
|
|
153
|
-
const i =
|
|
154
|
-
i !== void 0 &&
|
|
155
|
-
}
|
|
156
|
-
return
|
|
157
|
-
}
|
|
158
|
-
const
|
|
159
|
-
sheet:
|
|
160
|
-
on:
|
|
161
|
-
fade:
|
|
162
|
-
mute:
|
|
163
|
-
scale:
|
|
164
|
-
near: (e) =>
|
|
165
|
-
opposite: (e) =>
|
|
166
|
-
sides: (e) =>
|
|
167
|
-
three: (e) =>
|
|
168
|
-
four: (e) =>
|
|
169
|
-
}),
|
|
170
|
-
function
|
|
152
|
+
if (Y.size >= Oe) {
|
|
153
|
+
const i = Y.keys().next().value;
|
|
154
|
+
i !== void 0 && Y.delete(i);
|
|
155
|
+
}
|
|
156
|
+
return Y.set(e, r), r;
|
|
157
|
+
}
|
|
158
|
+
const Ki = Object.assign(lt, {
|
|
159
|
+
sheet: j,
|
|
160
|
+
on: bt,
|
|
161
|
+
fade: Ie,
|
|
162
|
+
mute: oe,
|
|
163
|
+
scale: ne,
|
|
164
|
+
near: (e) => j(e).near,
|
|
165
|
+
opposite: (e) => j(e).opposite,
|
|
166
|
+
sides: (e) => j(e).sides,
|
|
167
|
+
three: (e) => j(e).three,
|
|
168
|
+
four: (e) => j(e).four
|
|
169
|
+
}), je = ["leading", "principal", "trailing"];
|
|
170
|
+
function He(e) {
|
|
171
171
|
return e === "leading" || e === "principal" || e === "trailing";
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function We(e) {
|
|
174
174
|
if (!u.isValidElement(e)) return "trailing";
|
|
175
175
|
const s = e.props;
|
|
176
|
-
return
|
|
176
|
+
return He(s["data-toolbar-place"]) ? s["data-toolbar-place"] : "trailing";
|
|
177
177
|
}
|
|
178
|
-
const
|
|
178
|
+
const Ve = {
|
|
179
179
|
leading: "flex-start",
|
|
180
180
|
principal: "center",
|
|
181
181
|
trailing: "flex-end"
|
|
182
182
|
};
|
|
183
|
-
function
|
|
183
|
+
function le(e, s) {
|
|
184
184
|
const t = {
|
|
185
185
|
leading: [],
|
|
186
186
|
principal: [],
|
|
187
187
|
trailing: []
|
|
188
188
|
};
|
|
189
189
|
for (const r of e)
|
|
190
|
-
t[
|
|
191
|
-
return
|
|
190
|
+
t[We(r)].push(r);
|
|
191
|
+
return je.map(
|
|
192
192
|
(r) => u.createElement(
|
|
193
193
|
"div",
|
|
194
194
|
{
|
|
@@ -201,7 +201,7 @@ function ae(e, s) {
|
|
|
201
201
|
minWidth: 0,
|
|
202
202
|
display: "flex",
|
|
203
203
|
alignItems: "center",
|
|
204
|
-
justifyContent:
|
|
204
|
+
justifyContent: Ve[r],
|
|
205
205
|
gap: 12
|
|
206
206
|
}
|
|
207
207
|
},
|
|
@@ -209,7 +209,7 @@ function ae(e, s) {
|
|
|
209
209
|
)
|
|
210
210
|
);
|
|
211
211
|
}
|
|
212
|
-
class
|
|
212
|
+
class Ge extends _ {
|
|
213
213
|
constructor() {
|
|
214
214
|
super(...arguments);
|
|
215
215
|
c(this, "_place", "trailing");
|
|
@@ -300,7 +300,7 @@ class Ve extends y {
|
|
|
300
300
|
);
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
|
-
class
|
|
303
|
+
class ze extends _ {
|
|
304
304
|
constructor() {
|
|
305
305
|
super(...arguments);
|
|
306
306
|
c(this, "_items", []);
|
|
@@ -310,7 +310,7 @@ class Ge extends y {
|
|
|
310
310
|
return this._items = t, this;
|
|
311
311
|
}
|
|
312
312
|
build() {
|
|
313
|
-
const t =
|
|
313
|
+
const t = Qt(this._items), { className: r, style: i, children: n, ...o } = this._props, a = ["fibo-app-bar", this.getClassName(), r].filter(Boolean).join(" "), l = {
|
|
314
314
|
display: "flex",
|
|
315
315
|
alignItems: "center",
|
|
316
316
|
width: "100%",
|
|
@@ -320,12 +320,12 @@ class Ge extends y {
|
|
|
320
320
|
return u.createElement(
|
|
321
321
|
"header",
|
|
322
322
|
{ ...o, className: a, style: l },
|
|
323
|
-
...
|
|
323
|
+
...le(t, "fibo-app-bar")
|
|
324
324
|
);
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
-
const
|
|
328
|
-
class
|
|
327
|
+
const qi = y(Ge), Zi = y(ze);
|
|
328
|
+
class Ue extends _ {
|
|
329
329
|
constructor() {
|
|
330
330
|
super(...arguments);
|
|
331
331
|
c(this, "_items", []);
|
|
@@ -343,7 +343,7 @@ class ze extends y {
|
|
|
343
343
|
return this._floating = t, this;
|
|
344
344
|
}
|
|
345
345
|
build() {
|
|
346
|
-
const t =
|
|
346
|
+
const t = Qt(this._items), { className: r, style: i, children: n, ...o } = this._props, a = ["fibo-bottom-app-bar", this.getClassName(), r].filter(Boolean).join(" "), l = {
|
|
347
347
|
display: "flex",
|
|
348
348
|
alignItems: "center",
|
|
349
349
|
width: this._floating ? void 0 : "100%",
|
|
@@ -360,67 +360,67 @@ class ze extends y {
|
|
|
360
360
|
"data-bottom-app-bar": "true",
|
|
361
361
|
"data-floating": this._floating ? "true" : void 0
|
|
362
362
|
},
|
|
363
|
-
...
|
|
363
|
+
...le(t, "fibo-bottom-app-bar")
|
|
364
364
|
);
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
const
|
|
367
|
+
const Qi = y(Ue), ce = ["top", "bottom", "left", "right"], Xe = {
|
|
368
368
|
top: "paddingTop",
|
|
369
369
|
bottom: "paddingBottom",
|
|
370
370
|
left: "paddingLeft",
|
|
371
371
|
right: "paddingRight"
|
|
372
372
|
};
|
|
373
|
-
function
|
|
374
|
-
if (!(typeof s != "string" || !
|
|
375
|
-
for (const t of
|
|
373
|
+
function Ye(e, s) {
|
|
374
|
+
if (!(typeof s != "string" || !R(s)))
|
|
375
|
+
for (const t of z(s))
|
|
376
376
|
e.bindSignal(t);
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function st(e, s) {
|
|
379
379
|
if (typeof s == "function") {
|
|
380
380
|
try {
|
|
381
|
-
|
|
381
|
+
st(e, s());
|
|
382
382
|
} catch {
|
|
383
383
|
}
|
|
384
384
|
return;
|
|
385
385
|
}
|
|
386
386
|
if (typeof s == "string") {
|
|
387
|
-
|
|
387
|
+
Ye(e, s);
|
|
388
388
|
return;
|
|
389
389
|
}
|
|
390
390
|
if (Array.isArray(s))
|
|
391
|
-
for (const t of s)
|
|
392
|
-
}
|
|
393
|
-
function Ye(e) {
|
|
394
|
-
return typeof e == "string" && L(e) ? H(e) : e;
|
|
391
|
+
for (const t of s) st(e, t);
|
|
395
392
|
}
|
|
396
393
|
function Ke(e) {
|
|
394
|
+
return typeof e == "string" && R(e) ? G(e) : e;
|
|
395
|
+
}
|
|
396
|
+
function qe(e) {
|
|
397
397
|
const s = Array.isArray(e) ? e : [e];
|
|
398
|
-
return s.includes("all") ?
|
|
398
|
+
return s.includes("all") ? ce : s.filter((t) => t !== "all");
|
|
399
399
|
}
|
|
400
|
-
class
|
|
400
|
+
class Ze extends _ {
|
|
401
401
|
constructor() {
|
|
402
402
|
super(...arguments);
|
|
403
|
-
c(this, "_edges",
|
|
403
|
+
c(this, "_edges", ce);
|
|
404
404
|
}
|
|
405
405
|
edges(t) {
|
|
406
|
-
return this._edges =
|
|
406
|
+
return this._edges = qe(t), this;
|
|
407
407
|
}
|
|
408
408
|
/** SwiftUI `ignoresSafeArea`. Drops every inset. */
|
|
409
409
|
ignoresSafeArea() {
|
|
410
410
|
return this._edges = [], this;
|
|
411
411
|
}
|
|
412
412
|
children(t) {
|
|
413
|
-
return
|
|
413
|
+
return st(this, t), super.children(t);
|
|
414
414
|
}
|
|
415
415
|
props(t) {
|
|
416
|
-
return t && "children" in t &&
|
|
416
|
+
return t && "children" in t && st(this, t.children), super.props(t);
|
|
417
417
|
}
|
|
418
418
|
build() {
|
|
419
419
|
const t = this.getStyle();
|
|
420
420
|
for (const h of this._edges)
|
|
421
|
-
t[
|
|
421
|
+
t[Xe[h]] = `env(safe-area-inset-${h})`;
|
|
422
422
|
const { children: r, className: i, ...n } = this._props, o = r !== void 0 ? r : this.processChildren(), a = (o == null ? [] : Array.isArray(o) ? o : [o]).map(
|
|
423
|
-
|
|
423
|
+
Ke
|
|
424
424
|
), l = ["fibo-safe-area", this.getClassName(), i].filter(Boolean).join(" ");
|
|
425
425
|
return u.createElement(
|
|
426
426
|
"div",
|
|
@@ -433,31 +433,31 @@ class qe extends y {
|
|
|
433
433
|
);
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
|
-
const
|
|
437
|
-
function
|
|
438
|
-
if (!(typeof s != "string" || !
|
|
439
|
-
for (const t of
|
|
436
|
+
const Ji = y(Ze);
|
|
437
|
+
function Qe(e, s) {
|
|
438
|
+
if (!(typeof s != "string" || !R(s)))
|
|
439
|
+
for (const t of z(s))
|
|
440
440
|
e.bindSignal(t);
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function rt(e, s) {
|
|
443
443
|
if (typeof s == "function") {
|
|
444
444
|
try {
|
|
445
|
-
|
|
445
|
+
rt(e, s());
|
|
446
446
|
} catch {
|
|
447
447
|
}
|
|
448
448
|
return;
|
|
449
449
|
}
|
|
450
450
|
if (typeof s == "string") {
|
|
451
|
-
|
|
451
|
+
Qe(e, s);
|
|
452
452
|
return;
|
|
453
453
|
}
|
|
454
454
|
if (Array.isArray(s))
|
|
455
|
-
for (const t of s)
|
|
455
|
+
for (const t of s) rt(e, t);
|
|
456
456
|
}
|
|
457
|
-
function
|
|
458
|
-
return typeof e == "string" &&
|
|
457
|
+
function Je(e) {
|
|
458
|
+
return typeof e == "string" && R(e) ? G(e) : e;
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function ts(e, s) {
|
|
461
461
|
const t = e.clientWidth, r = Math.max(0, s.length - 1);
|
|
462
462
|
for (let i = 0; i < s.length; i++) {
|
|
463
463
|
const n = s[i];
|
|
@@ -465,18 +465,18 @@ function Je(e, s) {
|
|
|
465
465
|
}
|
|
466
466
|
return r;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function es({
|
|
469
469
|
nodes: e,
|
|
470
470
|
style: s,
|
|
471
471
|
className: t,
|
|
472
472
|
...r
|
|
473
473
|
}) {
|
|
474
|
-
const i =
|
|
475
|
-
return
|
|
474
|
+
const i = E(null), n = E([]), [o, a] = P(() => Math.max(0, e.length - 1));
|
|
475
|
+
return Z(() => {
|
|
476
476
|
const l = i.current;
|
|
477
477
|
if (!l || e.length === 0) return;
|
|
478
478
|
const h = () => {
|
|
479
|
-
const m =
|
|
479
|
+
const m = ts(l, n.current);
|
|
480
480
|
a((f) => f === m ? f : m);
|
|
481
481
|
};
|
|
482
482
|
if (h(), typeof ResizeObserver > "u") return;
|
|
@@ -513,18 +513,18 @@ function ts({
|
|
|
513
513
|
)
|
|
514
514
|
);
|
|
515
515
|
}
|
|
516
|
-
class
|
|
516
|
+
class ss extends _ {
|
|
517
517
|
children(s) {
|
|
518
|
-
return
|
|
518
|
+
return rt(this, s), super.children(s);
|
|
519
519
|
}
|
|
520
520
|
props(s) {
|
|
521
|
-
return s && "children" in s &&
|
|
521
|
+
return s && "children" in s && rt(this, s.children), super.props(s);
|
|
522
522
|
}
|
|
523
523
|
build() {
|
|
524
524
|
const s = this.getStyle(), { children: t, className: r, ...i } = this._props, n = t !== void 0 ? t : this.processChildren(), o = (n == null ? [] : Array.isArray(n) ? n : [n]).map(
|
|
525
|
-
|
|
525
|
+
Je
|
|
526
526
|
), a = ["fibo-view-that-fits", this.getClassName(), r].filter(Boolean).join(" ");
|
|
527
|
-
return u.createElement(
|
|
527
|
+
return u.createElement(es, {
|
|
528
528
|
nodes: o,
|
|
529
529
|
style: s,
|
|
530
530
|
className: a,
|
|
@@ -532,31 +532,31 @@ class es extends y {
|
|
|
532
532
|
});
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
const
|
|
536
|
-
function
|
|
537
|
-
if (!(typeof s != "string" || !
|
|
538
|
-
for (const t of
|
|
535
|
+
const tn = y(ss);
|
|
536
|
+
function rs(e, s) {
|
|
537
|
+
if (!(typeof s != "string" || !R(s)))
|
|
538
|
+
for (const t of z(s))
|
|
539
539
|
e.bindSignal(t);
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function it(e, s) {
|
|
542
542
|
if (typeof s == "function") {
|
|
543
543
|
try {
|
|
544
|
-
|
|
544
|
+
it(e, s());
|
|
545
545
|
} catch {
|
|
546
546
|
}
|
|
547
547
|
return;
|
|
548
548
|
}
|
|
549
549
|
if (typeof s == "string") {
|
|
550
|
-
|
|
550
|
+
rs(e, s);
|
|
551
551
|
return;
|
|
552
552
|
}
|
|
553
553
|
if (Array.isArray(s))
|
|
554
|
-
for (const t of s)
|
|
554
|
+
for (const t of s) it(e, t);
|
|
555
555
|
}
|
|
556
|
-
function
|
|
557
|
-
return typeof e == "string" &&
|
|
556
|
+
function is(e) {
|
|
557
|
+
return typeof e == "string" && R(e) ? G(e) : e;
|
|
558
558
|
}
|
|
559
|
-
class
|
|
559
|
+
class ns extends _ {
|
|
560
560
|
constructor(t = 1) {
|
|
561
561
|
super();
|
|
562
562
|
c(this, "_ratio");
|
|
@@ -570,17 +570,32 @@ class is extends y {
|
|
|
570
570
|
return this._widthSet = !0, super.width(t);
|
|
571
571
|
}
|
|
572
572
|
children(t) {
|
|
573
|
-
return
|
|
573
|
+
return it(this, t), super.children(t);
|
|
574
574
|
}
|
|
575
575
|
props(t) {
|
|
576
|
-
return t && "children" in t &&
|
|
576
|
+
return t && "children" in t && it(this, t.children), super.props(t);
|
|
577
577
|
}
|
|
578
578
|
build() {
|
|
579
579
|
const t = this.getStyle();
|
|
580
|
-
t.aspectRatio = String(this._ratio), !this._widthSet && t.width == null && (t.width = "100%");
|
|
580
|
+
t.aspectRatio = String(this._ratio), t.position = t.position ?? "relative", t.overflow = t.overflow ?? "hidden", t.minHeight == null && (t.minHeight = 0), !this._widthSet && t.width == null && (t.width = "100%");
|
|
581
581
|
const { children: r, className: i, ...n } = this._props, o = r !== void 0 ? r : this.processChildren(), a = (o == null ? [] : Array.isArray(o) ? o : [o]).map(
|
|
582
|
-
|
|
583
|
-
), l = ["fibo-aspect-ratio", this.getClassName(), i].filter(Boolean).join(" ")
|
|
582
|
+
is
|
|
583
|
+
), l = ["fibo-aspect-ratio", this.getClassName(), i].filter(Boolean).join(" "), h = u.createElement(
|
|
584
|
+
"div",
|
|
585
|
+
{
|
|
586
|
+
className: "fibo-aspect-ratio-slot",
|
|
587
|
+
style: {
|
|
588
|
+
position: "absolute",
|
|
589
|
+
inset: 0,
|
|
590
|
+
width: "100%",
|
|
591
|
+
height: "100%",
|
|
592
|
+
minWidth: 0,
|
|
593
|
+
minHeight: 0,
|
|
594
|
+
overflow: "hidden"
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
...a
|
|
598
|
+
);
|
|
584
599
|
return u.createElement(
|
|
585
600
|
"div",
|
|
586
601
|
{
|
|
@@ -588,35 +603,35 @@ class is extends y {
|
|
|
588
603
|
...n,
|
|
589
604
|
className: l
|
|
590
605
|
},
|
|
591
|
-
|
|
606
|
+
h
|
|
592
607
|
);
|
|
593
608
|
}
|
|
594
609
|
}
|
|
595
|
-
const
|
|
596
|
-
function
|
|
597
|
-
if (!(typeof s != "string" || !
|
|
598
|
-
for (const t of
|
|
610
|
+
const en = y(ns);
|
|
611
|
+
function as(e, s) {
|
|
612
|
+
if (!(typeof s != "string" || !R(s)))
|
|
613
|
+
for (const t of z(s))
|
|
599
614
|
e.bindSignal(t);
|
|
600
615
|
}
|
|
601
|
-
function
|
|
616
|
+
function W(e, s) {
|
|
602
617
|
if (typeof s == "function") {
|
|
603
618
|
try {
|
|
604
|
-
|
|
619
|
+
W(e, s());
|
|
605
620
|
} catch {
|
|
606
621
|
}
|
|
607
622
|
return;
|
|
608
623
|
}
|
|
609
624
|
if (typeof s == "string") {
|
|
610
|
-
|
|
625
|
+
as(e, s);
|
|
611
626
|
return;
|
|
612
627
|
}
|
|
613
628
|
if (Array.isArray(s))
|
|
614
|
-
for (const t of s)
|
|
629
|
+
for (const t of s) W(e, t);
|
|
615
630
|
}
|
|
616
|
-
function
|
|
617
|
-
return typeof e == "string" &&
|
|
631
|
+
function os(e) {
|
|
632
|
+
return typeof e == "string" && R(e) ? G(e) : e;
|
|
618
633
|
}
|
|
619
|
-
class
|
|
634
|
+
class ls extends _ {
|
|
620
635
|
constructor() {
|
|
621
636
|
super(...arguments);
|
|
622
637
|
c(this, "_back");
|
|
@@ -624,16 +639,16 @@ class os extends y {
|
|
|
624
639
|
c(this, "_paired", !1);
|
|
625
640
|
}
|
|
626
641
|
child(t) {
|
|
627
|
-
return
|
|
642
|
+
return W(this, t), this._back = t, this._paired = !0, this;
|
|
628
643
|
}
|
|
629
644
|
overlay(t) {
|
|
630
|
-
return
|
|
645
|
+
return W(this, t), this._front = t, this._paired = !0, this;
|
|
631
646
|
}
|
|
632
647
|
children(t) {
|
|
633
|
-
return
|
|
648
|
+
return W(this, t), this._paired = !1, this._back = void 0, this._front = void 0, super.children(t);
|
|
634
649
|
}
|
|
635
650
|
props(t) {
|
|
636
|
-
return t && "children" in t &&
|
|
651
|
+
return t && "children" in t && W(this, t.children), super.props(t);
|
|
637
652
|
}
|
|
638
653
|
build() {
|
|
639
654
|
const t = this.getStyle();
|
|
@@ -646,7 +661,7 @@ class os extends y {
|
|
|
646
661
|
const h = r !== void 0 ? r : this.processChildren();
|
|
647
662
|
o = h == null ? [] : Array.isArray(h) ? h : [h];
|
|
648
663
|
}
|
|
649
|
-
o = o.map(
|
|
664
|
+
o = o.map(os);
|
|
650
665
|
const a = ["fibo-overlay", this.getClassName(), i].filter(Boolean).join(" "), l = o.map((h, d) => d !== 1 ? h : u.createElement(
|
|
651
666
|
"div",
|
|
652
667
|
{
|
|
@@ -677,34 +692,34 @@ class os extends y {
|
|
|
677
692
|
);
|
|
678
693
|
}
|
|
679
694
|
}
|
|
680
|
-
const
|
|
681
|
-
function
|
|
695
|
+
const sn = y(ls);
|
|
696
|
+
function $t(e) {
|
|
682
697
|
return typeof e == "number" ? `${e}px` : e;
|
|
683
698
|
}
|
|
684
|
-
function
|
|
685
|
-
if (!(typeof s != "string" || !
|
|
686
|
-
for (const t of
|
|
699
|
+
function cs(e, s) {
|
|
700
|
+
if (!(typeof s != "string" || !R(s)))
|
|
701
|
+
for (const t of z(s))
|
|
687
702
|
e.bindSignal(t);
|
|
688
703
|
}
|
|
689
|
-
function
|
|
704
|
+
function nt(e, s) {
|
|
690
705
|
if (typeof s == "function") {
|
|
691
706
|
try {
|
|
692
|
-
|
|
707
|
+
nt(e, s());
|
|
693
708
|
} catch {
|
|
694
709
|
}
|
|
695
710
|
return;
|
|
696
711
|
}
|
|
697
712
|
if (typeof s == "string") {
|
|
698
|
-
|
|
713
|
+
cs(e, s);
|
|
699
714
|
return;
|
|
700
715
|
}
|
|
701
716
|
if (Array.isArray(s))
|
|
702
|
-
for (const t of s)
|
|
717
|
+
for (const t of s) nt(e, t);
|
|
703
718
|
}
|
|
704
|
-
function
|
|
705
|
-
return typeof e == "string" &&
|
|
719
|
+
function us(e) {
|
|
720
|
+
return typeof e == "string" && R(e) ? G(e) : e;
|
|
706
721
|
}
|
|
707
|
-
class
|
|
722
|
+
class hs extends _ {
|
|
708
723
|
constructor() {
|
|
709
724
|
super(...arguments);
|
|
710
725
|
c(this, "_direction", "horizontal");
|
|
@@ -721,16 +736,16 @@ class us extends y {
|
|
|
721
736
|
return this._runSpacing = t, this;
|
|
722
737
|
}
|
|
723
738
|
children(t) {
|
|
724
|
-
return
|
|
739
|
+
return nt(this, t), super.children(t);
|
|
725
740
|
}
|
|
726
741
|
props(t) {
|
|
727
|
-
return t && "children" in t &&
|
|
742
|
+
return t && "children" in t && nt(this, t.children), super.props(t);
|
|
728
743
|
}
|
|
729
744
|
build() {
|
|
730
745
|
const t = this.getStyle();
|
|
731
|
-
t.display = "flex", t.flexWrap = "wrap", t.flexDirection = this._direction === "vertical" ? "column" : "row", this._spacing != null && (t.gap =
|
|
746
|
+
t.display = "flex", t.flexWrap = "wrap", t.flexDirection = this._direction === "vertical" ? "column" : "row", this._spacing != null && (t.gap = $t(this._spacing)), this._runSpacing != null && (t.rowGap = $t(this._runSpacing));
|
|
732
747
|
const { children: r, className: i, ...n } = this._props, o = r !== void 0 ? r : this.processChildren(), a = (o == null ? [] : Array.isArray(o) ? o : [o]).map(
|
|
733
|
-
|
|
748
|
+
us
|
|
734
749
|
), l = ["fibo-wrap", this.getClassName(), i].filter(Boolean).join(" ");
|
|
735
750
|
return u.createElement(
|
|
736
751
|
"div",
|
|
@@ -743,42 +758,42 @@ class us extends y {
|
|
|
743
758
|
);
|
|
744
759
|
}
|
|
745
760
|
}
|
|
746
|
-
const
|
|
747
|
-
function
|
|
748
|
-
if (!(typeof s != "string" || !
|
|
749
|
-
for (const t of
|
|
761
|
+
const rn = y(hs);
|
|
762
|
+
function ds(e, s) {
|
|
763
|
+
if (!(typeof s != "string" || !R(s)))
|
|
764
|
+
for (const t of z(s))
|
|
750
765
|
e.bindSignal(t);
|
|
751
766
|
}
|
|
752
|
-
function
|
|
767
|
+
function at(e, s) {
|
|
753
768
|
if (typeof s == "function") {
|
|
754
769
|
try {
|
|
755
|
-
|
|
770
|
+
at(e, s());
|
|
756
771
|
} catch {
|
|
757
772
|
}
|
|
758
773
|
return;
|
|
759
774
|
}
|
|
760
775
|
if (typeof s == "string") {
|
|
761
|
-
|
|
776
|
+
ds(e, s);
|
|
762
777
|
return;
|
|
763
778
|
}
|
|
764
779
|
if (Array.isArray(s))
|
|
765
|
-
for (const t of s)
|
|
780
|
+
for (const t of s) at(e, t);
|
|
766
781
|
}
|
|
767
|
-
function
|
|
768
|
-
return typeof e == "string" &&
|
|
782
|
+
function fs(e) {
|
|
783
|
+
return typeof e == "string" && R(e) ? G(e) : e;
|
|
769
784
|
}
|
|
770
|
-
class
|
|
785
|
+
class ms extends _ {
|
|
771
786
|
children(s) {
|
|
772
|
-
return
|
|
787
|
+
return at(this, s), super.children(s);
|
|
773
788
|
}
|
|
774
789
|
props(s) {
|
|
775
|
-
return s && "children" in s &&
|
|
790
|
+
return s && "children" in s && at(this, s.children), super.props(s);
|
|
776
791
|
}
|
|
777
792
|
build() {
|
|
778
793
|
const s = this.getStyle();
|
|
779
794
|
s.display = "flex", s.alignItems = "baseline";
|
|
780
795
|
const { children: t, className: r, ...i } = this._props, n = t !== void 0 ? t : this.processChildren(), o = (n == null ? [] : Array.isArray(n) ? n : [n]).map(
|
|
781
|
-
|
|
796
|
+
fs
|
|
782
797
|
), a = ["fibo-baseline", this.getClassName(), r].filter(Boolean).join(" ");
|
|
783
798
|
return u.createElement(
|
|
784
799
|
"div",
|
|
@@ -791,8 +806,8 @@ class fs extends y {
|
|
|
791
806
|
);
|
|
792
807
|
}
|
|
793
808
|
}
|
|
794
|
-
const
|
|
795
|
-
class
|
|
809
|
+
const nn = y(ms);
|
|
810
|
+
class ps extends _ {
|
|
796
811
|
constructor() {
|
|
797
812
|
super(...arguments);
|
|
798
813
|
c(this, "_title", "");
|
|
@@ -822,8 +837,8 @@ class ms extends y {
|
|
|
822
837
|
);
|
|
823
838
|
}
|
|
824
839
|
}
|
|
825
|
-
const
|
|
826
|
-
class
|
|
840
|
+
const an = y(ps);
|
|
841
|
+
class gs extends _ {
|
|
827
842
|
build() {
|
|
828
843
|
const { className: s, style: t, ...r } = this._props, i = {
|
|
829
844
|
display: "flex",
|
|
@@ -842,8 +857,8 @@ class ps extends y {
|
|
|
842
857
|
);
|
|
843
858
|
}
|
|
844
859
|
}
|
|
845
|
-
const
|
|
846
|
-
class
|
|
860
|
+
const on = y(gs);
|
|
861
|
+
class ys extends _ {
|
|
847
862
|
constructor() {
|
|
848
863
|
super(...arguments);
|
|
849
864
|
c(this, "_slivers", []);
|
|
@@ -859,7 +874,7 @@ class gs extends y {
|
|
|
859
874
|
...this.getStyle(),
|
|
860
875
|
...r && typeof r == "object" ? r : {}
|
|
861
876
|
}, o = ["fibo-custom-scroll-view", this.getClassName(), t].filter(Boolean).join(" "), a = this._slivers.map((l, h) => {
|
|
862
|
-
const d =
|
|
877
|
+
const d = $e(l) ? l.build() : l;
|
|
863
878
|
return u.isValidElement(d) && (d.key == null || d.key === "") ? u.cloneElement(d, { key: h }) : d;
|
|
864
879
|
});
|
|
865
880
|
return u.createElement(
|
|
@@ -873,12 +888,12 @@ class gs extends y {
|
|
|
873
888
|
);
|
|
874
889
|
}
|
|
875
890
|
}
|
|
876
|
-
const
|
|
877
|
-
function
|
|
891
|
+
const ln = y(ys);
|
|
892
|
+
function Pt(e, s, t) {
|
|
878
893
|
return Math.min(t, Math.max(s, e));
|
|
879
894
|
}
|
|
880
895
|
const _s = u.memo((e) => {
|
|
881
|
-
const { value: s, min: t, max: r, label: i, color: n, className: o, style: a } = e, l = 100, h = 100, d = 80, m = Math.PI * d, f = r - t, b = (f === 0 ? 0 : (
|
|
896
|
+
const { value: s, min: t, max: r, label: i, color: n, className: o, style: a } = e, l = 100, h = 100, d = 80, m = Math.PI * d, f = r - t, b = (f === 0 ? 0 : (Pt(s, t, r) - t) / f) * m, g = `M ${l - d} ${h} A ${d} ${d} 0 0 1 ${l + d} ${h}`;
|
|
882
897
|
return u.createElement(
|
|
883
898
|
"div",
|
|
884
899
|
{
|
|
@@ -895,7 +910,7 @@ const _s = u.memo((e) => {
|
|
|
895
910
|
role: "meter",
|
|
896
911
|
"aria-valuemin": t,
|
|
897
912
|
"aria-valuemax": r,
|
|
898
|
-
"aria-valuenow":
|
|
913
|
+
"aria-valuenow": Pt(s, t, r),
|
|
899
914
|
"aria-label": i || "Gauge"
|
|
900
915
|
},
|
|
901
916
|
u.createElement("path", {
|
|
@@ -919,7 +934,7 @@ const _s = u.memo((e) => {
|
|
|
919
934
|
i ? u.createElement("span", { className: "fibo-gauge-label text-sm font-medium" }, i) : null
|
|
920
935
|
);
|
|
921
936
|
});
|
|
922
|
-
class
|
|
937
|
+
class bs extends _ {
|
|
923
938
|
constructor() {
|
|
924
939
|
super(...arguments);
|
|
925
940
|
c(this, "_value", 0);
|
|
@@ -957,12 +972,12 @@ class ys extends y {
|
|
|
957
972
|
});
|
|
958
973
|
}
|
|
959
974
|
}
|
|
960
|
-
const
|
|
961
|
-
function
|
|
975
|
+
const cn = y(bs);
|
|
976
|
+
function Ss(e) {
|
|
962
977
|
const s = {};
|
|
963
978
|
return e.bold && (s.fontWeight = 700), e.italic && (s.fontStyle = "italic"), e.color && (s.color = e.color), s;
|
|
964
979
|
}
|
|
965
|
-
class
|
|
980
|
+
class vs extends _ {
|
|
966
981
|
constructor() {
|
|
967
982
|
super(...arguments);
|
|
968
983
|
c(this, "_spans", []);
|
|
@@ -974,7 +989,7 @@ class Ss extends y {
|
|
|
974
989
|
const t = this._spans.map(
|
|
975
990
|
(r, i) => u.createElement(
|
|
976
991
|
"span",
|
|
977
|
-
{ key: i, style:
|
|
992
|
+
{ key: i, style: Ss(r) },
|
|
978
993
|
typeof r.text == "string" ? r.text : ""
|
|
979
994
|
)
|
|
980
995
|
);
|
|
@@ -988,8 +1003,8 @@ class Ss extends y {
|
|
|
988
1003
|
);
|
|
989
1004
|
}
|
|
990
1005
|
}
|
|
991
|
-
const
|
|
992
|
-
class
|
|
1006
|
+
const un = y(vs);
|
|
1007
|
+
class ws extends _ {
|
|
993
1008
|
constructor(t = "") {
|
|
994
1009
|
super();
|
|
995
1010
|
c(this, "_text", "");
|
|
@@ -1013,7 +1028,7 @@ class vs extends y {
|
|
|
1013
1028
|
);
|
|
1014
1029
|
}
|
|
1015
1030
|
}
|
|
1016
|
-
const
|
|
1031
|
+
const hn = y(ws), ht = /* @__PURE__ */ new Map();
|
|
1017
1032
|
function ks({
|
|
1018
1033
|
src: e,
|
|
1019
1034
|
alt: s,
|
|
@@ -1022,7 +1037,7 @@ function ks({
|
|
|
1022
1037
|
className: i,
|
|
1023
1038
|
style: n
|
|
1024
1039
|
}) {
|
|
1025
|
-
const o = e && !
|
|
1040
|
+
const o = e && !I(e) ? e : void 0, a = r && o ? ht.get(o) : void 0, [l, h] = P(a === "error"), [d, m] = P(a === "ok");
|
|
1026
1041
|
return l ? u.createElement(u.Fragment, null, t ?? null) : u.createElement(
|
|
1027
1042
|
u.Fragment,
|
|
1028
1043
|
null,
|
|
@@ -1033,15 +1048,15 @@ function ks({
|
|
|
1033
1048
|
className: i,
|
|
1034
1049
|
style: n,
|
|
1035
1050
|
onLoad: () => {
|
|
1036
|
-
r && o &&
|
|
1051
|
+
r && o && ht.set(o, "ok"), m(!0);
|
|
1037
1052
|
},
|
|
1038
1053
|
onError: () => {
|
|
1039
|
-
r && o &&
|
|
1054
|
+
r && o && ht.set(o, "error"), h(!0);
|
|
1040
1055
|
}
|
|
1041
1056
|
})
|
|
1042
1057
|
);
|
|
1043
1058
|
}
|
|
1044
|
-
class Cs extends
|
|
1059
|
+
class Cs extends _ {
|
|
1045
1060
|
constructor(t = "") {
|
|
1046
1061
|
super();
|
|
1047
1062
|
c(this, "_src", "");
|
|
@@ -1073,8 +1088,8 @@ class Cs extends y {
|
|
|
1073
1088
|
});
|
|
1074
1089
|
}
|
|
1075
1090
|
}
|
|
1076
|
-
const
|
|
1077
|
-
class
|
|
1091
|
+
const dn = y(Cs);
|
|
1092
|
+
class Es extends _ {
|
|
1078
1093
|
constructor() {
|
|
1079
1094
|
super(...arguments);
|
|
1080
1095
|
c(this, "_src", "");
|
|
@@ -1091,7 +1106,7 @@ class ws extends y {
|
|
|
1091
1106
|
return this._controls = !!t, this;
|
|
1092
1107
|
}
|
|
1093
1108
|
build() {
|
|
1094
|
-
const t = this._src && !
|
|
1109
|
+
const t = this._src && !I(this._src) ? this._src : void 0, r = I(this._poster) ? void 0 : this._poster;
|
|
1095
1110
|
return u.createElement("video", {
|
|
1096
1111
|
className: `fibo-video ${this.getClassName()}`.trim(),
|
|
1097
1112
|
style: this.getStyle(),
|
|
@@ -1101,8 +1116,8 @@ class ws extends y {
|
|
|
1101
1116
|
});
|
|
1102
1117
|
}
|
|
1103
1118
|
}
|
|
1104
|
-
const
|
|
1105
|
-
class Ns extends
|
|
1119
|
+
const fn = y(Es), xs = "allow-scripts allow-same-origin allow-popups";
|
|
1120
|
+
class Ns extends _ {
|
|
1106
1121
|
constructor() {
|
|
1107
1122
|
super(...arguments);
|
|
1108
1123
|
c(this, "_src", "");
|
|
@@ -1115,18 +1130,18 @@ class Ns extends y {
|
|
|
1115
1130
|
return this._title = typeof t == "string" ? t : "", this;
|
|
1116
1131
|
}
|
|
1117
1132
|
build() {
|
|
1118
|
-
const t = this._src && !
|
|
1133
|
+
const t = this._src && !I(this._src) ? this._src : void 0, r = typeof t == "string" && /^https:/i.test(t.trim());
|
|
1119
1134
|
return u.createElement("iframe", {
|
|
1120
1135
|
className: `fibo-webview ${this.getClassName()}`.trim(),
|
|
1121
1136
|
style: this.getStyle(),
|
|
1122
1137
|
src: t,
|
|
1123
1138
|
title: this._title || void 0,
|
|
1124
|
-
sandbox: r ?
|
|
1139
|
+
sandbox: r ? xs : void 0
|
|
1125
1140
|
});
|
|
1126
1141
|
}
|
|
1127
1142
|
}
|
|
1128
|
-
const
|
|
1129
|
-
function
|
|
1143
|
+
const mn = y(Ns), Ts = /^(#{1,6})[ \t]+(.*)$/;
|
|
1144
|
+
function Bs(e) {
|
|
1130
1145
|
const s = e.trim();
|
|
1131
1146
|
if (!s || /[\u0000-\u001F\s]/.test(s)) return null;
|
|
1132
1147
|
try {
|
|
@@ -1137,7 +1152,7 @@ function Ts(e) {
|
|
|
1137
1152
|
}
|
|
1138
1153
|
return null;
|
|
1139
1154
|
}
|
|
1140
|
-
function
|
|
1155
|
+
function Lt(e, s) {
|
|
1141
1156
|
const t = [];
|
|
1142
1157
|
let r = 0, i = 0, n = 0;
|
|
1143
1158
|
const o = (a) => {
|
|
@@ -1176,7 +1191,7 @@ function $t(e, s) {
|
|
|
1176
1191
|
if (a !== -1 && e[a + 1] === "(") {
|
|
1177
1192
|
const l = e.indexOf(")", a + 2);
|
|
1178
1193
|
if (l !== -1) {
|
|
1179
|
-
const h = e.slice(r + 1, a), d =
|
|
1194
|
+
const h = e.slice(r + 1, a), d = Bs(e.slice(a + 2, l));
|
|
1180
1195
|
o(r), d ? t.push(
|
|
1181
1196
|
u.createElement(
|
|
1182
1197
|
"a",
|
|
@@ -1196,25 +1211,25 @@ function $t(e, s) {
|
|
|
1196
1211
|
}
|
|
1197
1212
|
return o(e.length), t;
|
|
1198
1213
|
}
|
|
1199
|
-
function
|
|
1214
|
+
function $s(e) {
|
|
1200
1215
|
const s = e.replace(/\r\n/g, `
|
|
1201
1216
|
`).split(`
|
|
1202
1217
|
`), t = [];
|
|
1203
1218
|
return s.forEach((r, i) => {
|
|
1204
|
-
const n =
|
|
1219
|
+
const n = Ts.exec(r);
|
|
1205
1220
|
if (n) {
|
|
1206
1221
|
const a = `h${n[1].length}`;
|
|
1207
1222
|
t.push(
|
|
1208
|
-
u.createElement(a, { key: `md-${i}` },
|
|
1223
|
+
u.createElement(a, { key: `md-${i}` }, Lt(n[2], `md-${i}`))
|
|
1209
1224
|
);
|
|
1210
1225
|
return;
|
|
1211
1226
|
}
|
|
1212
1227
|
r.trim() !== "" && t.push(
|
|
1213
|
-
u.createElement("p", { key: `md-${i}` },
|
|
1228
|
+
u.createElement("p", { key: `md-${i}` }, Lt(r, `md-${i}`))
|
|
1214
1229
|
);
|
|
1215
1230
|
}), t;
|
|
1216
1231
|
}
|
|
1217
|
-
class
|
|
1232
|
+
class Ps extends _ {
|
|
1218
1233
|
constructor() {
|
|
1219
1234
|
super(...arguments);
|
|
1220
1235
|
c(this, "_text", "");
|
|
@@ -1229,12 +1244,12 @@ class $s extends y {
|
|
|
1229
1244
|
className: `fibo-markdown ${this.getClassName()}`.trim(),
|
|
1230
1245
|
style: this.getStyle()
|
|
1231
1246
|
},
|
|
1232
|
-
|
|
1247
|
+
$s(this._text)
|
|
1233
1248
|
);
|
|
1234
1249
|
}
|
|
1235
1250
|
}
|
|
1236
|
-
const
|
|
1237
|
-
function
|
|
1251
|
+
const pn = y(Ps);
|
|
1252
|
+
function Ls(e, s) {
|
|
1238
1253
|
const t = typeof e == "number" && Number.isFinite(e) ? e : 0;
|
|
1239
1254
|
if (typeof s == "function") {
|
|
1240
1255
|
const r = s(t);
|
|
@@ -1242,7 +1257,7 @@ function Ps(e, s) {
|
|
|
1242
1257
|
}
|
|
1243
1258
|
return String(t);
|
|
1244
1259
|
}
|
|
1245
|
-
const
|
|
1260
|
+
const As = (e) => {
|
|
1246
1261
|
const { value: s, format: t, className: r, style: i } = e;
|
|
1247
1262
|
return u.createElement(
|
|
1248
1263
|
"span",
|
|
@@ -1250,10 +1265,10 @@ const Ls = (e) => {
|
|
|
1250
1265
|
className: ["fibo-numeric-text", r].filter(Boolean).join(" "),
|
|
1251
1266
|
style: i
|
|
1252
1267
|
},
|
|
1253
|
-
|
|
1268
|
+
Ls(s, t)
|
|
1254
1269
|
);
|
|
1255
1270
|
};
|
|
1256
|
-
class
|
|
1271
|
+
class Rs extends _ {
|
|
1257
1272
|
constructor() {
|
|
1258
1273
|
super(...arguments);
|
|
1259
1274
|
c(this, "_value", 0);
|
|
@@ -1268,7 +1283,7 @@ class As extends y {
|
|
|
1268
1283
|
}
|
|
1269
1284
|
build() {
|
|
1270
1285
|
const { className: t, style: r, ...i } = this._props;
|
|
1271
|
-
return u.createElement(
|
|
1286
|
+
return u.createElement(As, {
|
|
1272
1287
|
value: this._value,
|
|
1273
1288
|
format: this._format,
|
|
1274
1289
|
className: [this.getClassName(), t].filter(Boolean).join(" ") || void 0,
|
|
@@ -1277,8 +1292,8 @@ class As extends y {
|
|
|
1277
1292
|
});
|
|
1278
1293
|
}
|
|
1279
1294
|
}
|
|
1280
|
-
const
|
|
1281
|
-
class
|
|
1295
|
+
const gn = y(Rs);
|
|
1296
|
+
class Ms extends _ {
|
|
1282
1297
|
constructor() {
|
|
1283
1298
|
super(...arguments);
|
|
1284
1299
|
c(this, "_src", "");
|
|
@@ -1291,7 +1306,7 @@ class Rs extends y {
|
|
|
1291
1306
|
return this._title = typeof t == "string" ? t : "", this;
|
|
1292
1307
|
}
|
|
1293
1308
|
build() {
|
|
1294
|
-
const t = this._src && !
|
|
1309
|
+
const t = this._src && !I(this._src) ? this._src : void 0;
|
|
1295
1310
|
return u.createElement("embed", {
|
|
1296
1311
|
className: `fibo-pdf ${this.getClassName()}`.trim(),
|
|
1297
1312
|
style: this.getStyle(),
|
|
@@ -1301,30 +1316,30 @@ class Rs extends y {
|
|
|
1301
1316
|
});
|
|
1302
1317
|
}
|
|
1303
1318
|
}
|
|
1304
|
-
const
|
|
1305
|
-
function
|
|
1319
|
+
const yn = y(Ms);
|
|
1320
|
+
function St(e) {
|
|
1306
1321
|
return typeof e != "string" || e.length === 0 ? "" : e.replace(/<script\b[^>]*>[\s\S]*?<\/script\s*>/gi, "").replace(/<script\b[^>]*>/gi, "");
|
|
1307
1322
|
}
|
|
1308
|
-
function
|
|
1323
|
+
function Fs(e) {
|
|
1309
1324
|
const s = document.execCommand;
|
|
1310
1325
|
typeof s == "function" && s.call(document, e);
|
|
1311
1326
|
}
|
|
1312
|
-
function
|
|
1313
|
-
const i =
|
|
1314
|
-
|
|
1327
|
+
function Is({ html: e, onChange: s, className: t, style: r }) {
|
|
1328
|
+
const i = E(null);
|
|
1329
|
+
Z(() => {
|
|
1315
1330
|
const a = i.current;
|
|
1316
1331
|
if (!a) return;
|
|
1317
|
-
const l =
|
|
1332
|
+
const l = St(e);
|
|
1318
1333
|
a.innerHTML !== l && (a.innerHTML = l);
|
|
1319
1334
|
}, [e]);
|
|
1320
1335
|
const n = () => {
|
|
1321
1336
|
const a = i.current;
|
|
1322
1337
|
if (!a) return;
|
|
1323
|
-
const l =
|
|
1338
|
+
const l = St(a.innerHTML);
|
|
1324
1339
|
a.innerHTML !== l && (a.innerHTML = l), s == null || s(l);
|
|
1325
1340
|
}, o = (a) => {
|
|
1326
1341
|
var l;
|
|
1327
|
-
(l = i.current) == null || l.focus(),
|
|
1342
|
+
(l = i.current) == null || l.focus(), Fs(a), n();
|
|
1328
1343
|
};
|
|
1329
1344
|
return u.createElement(
|
|
1330
1345
|
"div",
|
|
@@ -1354,7 +1369,7 @@ function Fs({ html: e, onChange: s, className: t, style: r }) {
|
|
|
1354
1369
|
})
|
|
1355
1370
|
);
|
|
1356
1371
|
}
|
|
1357
|
-
class
|
|
1372
|
+
class Ds extends _ {
|
|
1358
1373
|
constructor() {
|
|
1359
1374
|
super(...arguments);
|
|
1360
1375
|
c(this, "_html", "");
|
|
@@ -1362,14 +1377,14 @@ class Is extends y {
|
|
|
1362
1377
|
}
|
|
1363
1378
|
/** HTML shown in the editor. Script tags are removed before they are stored. */
|
|
1364
1379
|
value(t) {
|
|
1365
|
-
return this._html =
|
|
1380
|
+
return this._html = St(t), this;
|
|
1366
1381
|
}
|
|
1367
1382
|
/** Called with the editor HTML after each edit. The argument never contains script tags. */
|
|
1368
1383
|
onChange(t) {
|
|
1369
1384
|
return this._onChange = t, this;
|
|
1370
1385
|
}
|
|
1371
1386
|
build() {
|
|
1372
|
-
return u.createElement(
|
|
1387
|
+
return u.createElement(Is, {
|
|
1373
1388
|
html: this._html,
|
|
1374
1389
|
onChange: this._onChange,
|
|
1375
1390
|
className: `fibo-rich-editor ${this.getClassName()}`.trim(),
|
|
@@ -1377,7 +1392,7 @@ class Is extends y {
|
|
|
1377
1392
|
});
|
|
1378
1393
|
}
|
|
1379
1394
|
}
|
|
1380
|
-
const
|
|
1395
|
+
const _n = y(Ds), Os = u.memo((e) => {
|
|
1381
1396
|
const { title: s, message: t, actionLabel: r, onAction: i, className: n, style: o, ...a } = e, l = [
|
|
1382
1397
|
u.createElement(
|
|
1383
1398
|
"h2",
|
|
@@ -1413,7 +1428,7 @@ const pn = _(Is), Ds = u.memo((e) => {
|
|
|
1413
1428
|
l
|
|
1414
1429
|
);
|
|
1415
1430
|
});
|
|
1416
|
-
class
|
|
1431
|
+
class js extends _ {
|
|
1417
1432
|
constructor() {
|
|
1418
1433
|
super(...arguments);
|
|
1419
1434
|
c(this, "_title", "");
|
|
@@ -1432,7 +1447,7 @@ class Os extends y {
|
|
|
1432
1447
|
}
|
|
1433
1448
|
build() {
|
|
1434
1449
|
const { className: t, style: r, ...i } = this._props;
|
|
1435
|
-
return u.createElement(
|
|
1450
|
+
return u.createElement(Os, {
|
|
1436
1451
|
title: this._title,
|
|
1437
1452
|
message: this._message,
|
|
1438
1453
|
actionLabel: this._actionLabel,
|
|
@@ -1443,7 +1458,7 @@ class Os extends y {
|
|
|
1443
1458
|
});
|
|
1444
1459
|
}
|
|
1445
1460
|
}
|
|
1446
|
-
const
|
|
1461
|
+
const bn = y(js), At = [
|
|
1447
1462
|
"#3B82F6",
|
|
1448
1463
|
"#22C55E",
|
|
1449
1464
|
"#F59E0B",
|
|
@@ -1453,19 +1468,19 @@ const gn = _(Os), Pt = [
|
|
|
1453
1468
|
"#F97316",
|
|
1454
1469
|
"#84CC16"
|
|
1455
1470
|
];
|
|
1456
|
-
function
|
|
1471
|
+
function D(e, s) {
|
|
1457
1472
|
var r;
|
|
1458
1473
|
const t = (r = e.colors) == null ? void 0 : r[s];
|
|
1459
|
-
return t || (e.color ? e.color :
|
|
1474
|
+
return t || (e.color ? e.color : At[s % At.length]);
|
|
1460
1475
|
}
|
|
1461
|
-
function
|
|
1476
|
+
function vt(e) {
|
|
1462
1477
|
let s = 0;
|
|
1463
1478
|
for (const t of e)
|
|
1464
1479
|
for (const r of t.data)
|
|
1465
1480
|
Number.isFinite(r) && r > s && (s = r);
|
|
1466
1481
|
return s || 1;
|
|
1467
1482
|
}
|
|
1468
|
-
function
|
|
1483
|
+
function Hs(e) {
|
|
1469
1484
|
const s = e.map((i) => Number.isFinite(i) && i > 0 ? i : 0), t = s.reduce((i, n) => i + n, 0) || 1;
|
|
1470
1485
|
let r = -Math.PI / 2;
|
|
1471
1486
|
return s.map((i) => {
|
|
@@ -1473,7 +1488,7 @@ function js(e) {
|
|
|
1473
1488
|
return r += n, o;
|
|
1474
1489
|
});
|
|
1475
1490
|
}
|
|
1476
|
-
function
|
|
1491
|
+
function Ws(e) {
|
|
1477
1492
|
const s = e.map((n) => ({
|
|
1478
1493
|
color: n.color,
|
|
1479
1494
|
value: Number.isFinite(n.value) && n.value > 0 ? n.value : 0
|
|
@@ -1484,17 +1499,17 @@ function Hs(e) {
|
|
|
1484
1499
|
return r += n.value / t * 100, `${n.color} ${o}% ${r}%`;
|
|
1485
1500
|
}).join(", ")})`;
|
|
1486
1501
|
}
|
|
1487
|
-
function
|
|
1502
|
+
function Vs(e, s) {
|
|
1488
1503
|
return !Number.isFinite(e) || e <= 0 || s <= 0 ? 0 : Math.min(100, e / s * 100);
|
|
1489
1504
|
}
|
|
1490
|
-
function
|
|
1505
|
+
function Gs(e, s, t) {
|
|
1491
1506
|
const r = t.maxLat - t.minLat || 1, i = t.maxLng - t.minLng || 1;
|
|
1492
1507
|
return {
|
|
1493
1508
|
x: (s - t.minLng) / i,
|
|
1494
1509
|
y: (t.maxLat - e) / r
|
|
1495
1510
|
};
|
|
1496
1511
|
}
|
|
1497
|
-
function
|
|
1512
|
+
function ue(e, s, t) {
|
|
1498
1513
|
const r = Math.max(t, 0.01) / 2;
|
|
1499
1514
|
return {
|
|
1500
1515
|
minLat: e - r,
|
|
@@ -1503,8 +1518,8 @@ function le(e, s, t) {
|
|
|
1503
1518
|
maxLng: s + r
|
|
1504
1519
|
};
|
|
1505
1520
|
}
|
|
1506
|
-
function
|
|
1507
|
-
if (e.length === 0) return
|
|
1521
|
+
function zs(e, s = 0.15) {
|
|
1522
|
+
if (e.length === 0) return ue(0, 0, 40);
|
|
1508
1523
|
let t = e[0].lat, r = e[0].lat, i = e[0].lng, n = e[0].lng;
|
|
1509
1524
|
for (const l of e)
|
|
1510
1525
|
l.lat < t && (t = l.lat), l.lat > r && (r = l.lat), l.lng < i && (i = l.lng), l.lng > n && (n = l.lng);
|
|
@@ -1516,19 +1531,19 @@ function Gs(e, s = 0.15) {
|
|
|
1516
1531
|
maxLng: n + a
|
|
1517
1532
|
};
|
|
1518
1533
|
}
|
|
1519
|
-
const
|
|
1520
|
-
function
|
|
1534
|
+
const H = { left: 36, right: 12, top: 12, bottom: 28 };
|
|
1535
|
+
function Us(e, s) {
|
|
1521
1536
|
return {
|
|
1522
|
-
x:
|
|
1523
|
-
y:
|
|
1524
|
-
w: Math.max(1, e -
|
|
1525
|
-
h: Math.max(1, s -
|
|
1537
|
+
x: H.left,
|
|
1538
|
+
y: H.top,
|
|
1539
|
+
w: Math.max(1, e - H.left - H.right),
|
|
1540
|
+
h: Math.max(1, s - H.top - H.bottom)
|
|
1526
1541
|
};
|
|
1527
1542
|
}
|
|
1528
|
-
function
|
|
1543
|
+
function he(e) {
|
|
1529
1544
|
return e.reduce((s, t) => Math.max(s, t.data.length), 0);
|
|
1530
1545
|
}
|
|
1531
|
-
function
|
|
1546
|
+
function Xs(e, s, t) {
|
|
1532
1547
|
e.save(), e.strokeStyle = "#334155", e.fillStyle = "#94A3B8", e.font = "11px sans-serif", e.lineWidth = 1;
|
|
1533
1548
|
for (let r = 0; r <= 4; r += 1) {
|
|
1534
1549
|
const i = s.y + s.h * r / 4;
|
|
@@ -1538,41 +1553,41 @@ function Us(e, s, t) {
|
|
|
1538
1553
|
}
|
|
1539
1554
|
e.restore();
|
|
1540
1555
|
}
|
|
1541
|
-
function
|
|
1556
|
+
function tt(e, s, t, r, i) {
|
|
1542
1557
|
const n = t <= 1 ? i.x + i.w / 2 : i.x + e / (t - 1) * i.w, o = i.y + i.h - Math.max(0, s) / r * i.h;
|
|
1543
1558
|
return { x: n, y: o };
|
|
1544
1559
|
}
|
|
1545
|
-
function
|
|
1546
|
-
const a =
|
|
1560
|
+
function Ys(e, s, t, r, i, n, o) {
|
|
1561
|
+
const a = D(s, t);
|
|
1547
1562
|
if (e.beginPath(), s.data.forEach((l, h) => {
|
|
1548
1563
|
if (!Number.isFinite(l)) return;
|
|
1549
|
-
const d =
|
|
1564
|
+
const d = tt(h, l, r, i, n);
|
|
1550
1565
|
h === 0 ? e.moveTo(d.x, d.y) : e.lineTo(d.x, d.y);
|
|
1551
1566
|
}), o && s.data.length > 0) {
|
|
1552
|
-
const l =
|
|
1567
|
+
const l = tt(s.data.length - 1, 0, r, i, n), h = tt(0, 0, r, i, n);
|
|
1553
1568
|
e.lineTo(l.x, n.y + n.h), e.lineTo(h.x, n.y + n.h), e.closePath(), e.fillStyle = a, e.globalAlpha = 0.25, e.fill(), e.globalAlpha = 1;
|
|
1554
1569
|
}
|
|
1555
1570
|
e.strokeStyle = a, e.lineWidth = 2, e.stroke();
|
|
1556
1571
|
}
|
|
1557
|
-
function
|
|
1572
|
+
function Ks(e, s, t, r, i) {
|
|
1558
1573
|
const n = i.w / Math.max(t, 1), o = Math.max(2, n * 0.7 / Math.max(s.length, 1));
|
|
1559
1574
|
s.forEach((a, l) => {
|
|
1560
|
-
e.fillStyle =
|
|
1575
|
+
e.fillStyle = D(a, l), a.data.forEach((h, d) => {
|
|
1561
1576
|
if (!Number.isFinite(h) || h <= 0) return;
|
|
1562
1577
|
const m = h / r * i.h, f = i.x + d * n + (n - o * s.length) / 2 + l * o;
|
|
1563
1578
|
e.fillRect(f, i.y + i.h - m, o - 1, m);
|
|
1564
1579
|
});
|
|
1565
1580
|
});
|
|
1566
1581
|
}
|
|
1567
|
-
function
|
|
1582
|
+
function qs(e, s, t, r, i) {
|
|
1568
1583
|
var d;
|
|
1569
|
-
const n = ((d = s[0]) == null ? void 0 : d.data) ?? [], o =
|
|
1584
|
+
const n = ((d = s[0]) == null ? void 0 : d.data) ?? [], o = Hs(n), a = t / 2, l = r / 2, h = Math.min(t, r) / 2 - 8;
|
|
1570
1585
|
o.forEach((m, f) => {
|
|
1571
|
-
e.beginPath(), e.moveTo(a, l), e.fillStyle =
|
|
1586
|
+
e.beginPath(), e.moveTo(a, l), e.fillStyle = D({}, f), e.arc(a, l, h, m.start, m.end), e.closePath(), e.fill();
|
|
1572
1587
|
}), i && (e.beginPath(), e.fillStyle = "#0F172A", e.arc(a, l, h * 0.58, 0, Math.PI * 2), e.fill());
|
|
1573
1588
|
}
|
|
1574
|
-
function
|
|
1575
|
-
const n =
|
|
1589
|
+
function Zs(e, s, t, r, i) {
|
|
1590
|
+
const n = he(s), o = t / 2, a = r / 2, l = Math.min(t, r) / 2 - 16;
|
|
1576
1591
|
e.strokeStyle = "#334155";
|
|
1577
1592
|
for (let h = 1; h <= 4; h += 1) {
|
|
1578
1593
|
e.beginPath();
|
|
@@ -1586,44 +1601,44 @@ function qs(e, s, t, r, i) {
|
|
|
1586
1601
|
e.beginPath(), h.data.forEach((m, f) => {
|
|
1587
1602
|
const p = -Math.PI / 2 + f / Math.max(n, 1) * Math.PI * 2, b = Math.max(0, m) / i * l, g = o + Math.cos(p) * b, S = a + Math.sin(p) * b;
|
|
1588
1603
|
f === 0 ? e.moveTo(g, S) : e.lineTo(g, S);
|
|
1589
|
-
}), e.closePath(), e.strokeStyle =
|
|
1604
|
+
}), e.closePath(), e.strokeStyle = D(h, d), e.lineWidth = 2, e.stroke();
|
|
1590
1605
|
});
|
|
1591
1606
|
}
|
|
1592
|
-
function
|
|
1607
|
+
function Qs(e, s) {
|
|
1593
1608
|
const { type: t, series: r, width: i, height: n } = s;
|
|
1594
1609
|
if (e.clearRect(0, 0, i, n), e.fillStyle = "#0F172A", e.fillRect(0, 0, i, n), t === "pie" || t === "donut") {
|
|
1595
|
-
|
|
1610
|
+
qs(e, r, i, n, t === "donut");
|
|
1596
1611
|
return;
|
|
1597
1612
|
}
|
|
1598
1613
|
if (t === "radar") {
|
|
1599
|
-
|
|
1614
|
+
Zs(e, r, i, n, vt(r));
|
|
1600
1615
|
return;
|
|
1601
1616
|
}
|
|
1602
|
-
const o =
|
|
1603
|
-
if (
|
|
1604
|
-
|
|
1617
|
+
const o = Us(i, n), a = vt(r), l = he(r);
|
|
1618
|
+
if (Xs(e, o, a), t === "bar") {
|
|
1619
|
+
Ks(e, r, l, a, o);
|
|
1605
1620
|
return;
|
|
1606
1621
|
}
|
|
1607
1622
|
r.forEach((h, d) => {
|
|
1608
1623
|
if (t === "scatter") {
|
|
1609
|
-
e.fillStyle =
|
|
1624
|
+
e.fillStyle = D(h, d), h.data.forEach((m, f) => {
|
|
1610
1625
|
if (!Number.isFinite(m)) return;
|
|
1611
|
-
const p =
|
|
1626
|
+
const p = tt(f, m, l, a, o);
|
|
1612
1627
|
e.beginPath(), e.arc(p.x, p.y, 3.5, 0, Math.PI * 2), e.fill();
|
|
1613
1628
|
});
|
|
1614
1629
|
return;
|
|
1615
1630
|
}
|
|
1616
|
-
|
|
1631
|
+
Ys(e, h, d, l, a, o, t === "area");
|
|
1617
1632
|
});
|
|
1618
1633
|
}
|
|
1619
|
-
const
|
|
1620
|
-
function
|
|
1621
|
-
const s =
|
|
1622
|
-
return
|
|
1634
|
+
const Js = /* @__PURE__ */ new Set(["bar", "pie", "donut"]);
|
|
1635
|
+
function tr(e) {
|
|
1636
|
+
const s = E(null);
|
|
1637
|
+
return Z(() => {
|
|
1623
1638
|
const t = s.current, r = t == null ? void 0 : t.getContext("2d");
|
|
1624
1639
|
if (!t || !r) return;
|
|
1625
1640
|
const i = window.devicePixelRatio || 1;
|
|
1626
|
-
t.width = Math.round(e.width * i), t.height = Math.round(e.height * i), r.setTransform(i, 0, 0, i, 0, 0),
|
|
1641
|
+
t.width = Math.round(e.width * i), t.height = Math.round(e.height * i), r.setTransform(i, 0, 0, i, 0, 0), Qs(r, e);
|
|
1627
1642
|
}, [e]), u.createElement("canvas", {
|
|
1628
1643
|
ref: s,
|
|
1629
1644
|
className: "fibo-chart-canvas",
|
|
@@ -1632,8 +1647,8 @@ function Js(e) {
|
|
|
1632
1647
|
style: { width: e.width, height: e.height, display: "block" }
|
|
1633
1648
|
});
|
|
1634
1649
|
}
|
|
1635
|
-
function
|
|
1636
|
-
const s =
|
|
1650
|
+
function er(e) {
|
|
1651
|
+
const s = vt(e.series), t = e.series.reduce((i, n) => Math.max(i, n.data.length), 0), r = [];
|
|
1637
1652
|
for (let i = 0; i < t; i += 1) {
|
|
1638
1653
|
const n = e.series.map(
|
|
1639
1654
|
(o, a) => u.createElement("div", {
|
|
@@ -1641,8 +1656,8 @@ function tr(e) {
|
|
|
1641
1656
|
className: "fibo-css-bar",
|
|
1642
1657
|
style: {
|
|
1643
1658
|
flex: 1,
|
|
1644
|
-
height: `${
|
|
1645
|
-
background:
|
|
1659
|
+
height: `${Vs(o.data[i] ?? 0, s)}%`,
|
|
1660
|
+
background: D(o, i),
|
|
1646
1661
|
borderRadius: 0,
|
|
1647
1662
|
minHeight: 0
|
|
1648
1663
|
}
|
|
@@ -1679,10 +1694,10 @@ function tr(e) {
|
|
|
1679
1694
|
...r
|
|
1680
1695
|
);
|
|
1681
1696
|
}
|
|
1682
|
-
function
|
|
1697
|
+
function sr(e) {
|
|
1683
1698
|
var i;
|
|
1684
|
-
const s = ((i = e.series[0]) == null ? void 0 : i.data) ?? [], t =
|
|
1685
|
-
s.map((n, o) => ({ value: n, color:
|
|
1699
|
+
const s = ((i = e.series[0]) == null ? void 0 : i.data) ?? [], t = Ws(
|
|
1700
|
+
s.map((n, o) => ({ value: n, color: D(e.series[0] ?? {}, o) }))
|
|
1686
1701
|
), r = e.type === "donut";
|
|
1687
1702
|
return u.createElement("div", {
|
|
1688
1703
|
className: r ? "fibo-css-donut" : "fibo-css-pie",
|
|
@@ -1698,8 +1713,8 @@ function er(e) {
|
|
|
1698
1713
|
}
|
|
1699
1714
|
});
|
|
1700
1715
|
}
|
|
1701
|
-
const
|
|
1702
|
-
const r = s.renderer === "css" &&
|
|
1716
|
+
const rr = u.memo(function(s) {
|
|
1717
|
+
const r = s.renderer === "css" && Js.has(s.type) ? s.type === "bar" ? u.createElement(er, s) : u.createElement(sr, s) : u.createElement(tr, s);
|
|
1703
1718
|
return u.createElement(
|
|
1704
1719
|
"figure",
|
|
1705
1720
|
{
|
|
@@ -1709,7 +1724,7 @@ const sr = u.memo(function(s) {
|
|
|
1709
1724
|
r
|
|
1710
1725
|
);
|
|
1711
1726
|
});
|
|
1712
|
-
class
|
|
1727
|
+
class ir extends _ {
|
|
1713
1728
|
constructor() {
|
|
1714
1729
|
super(...arguments);
|
|
1715
1730
|
c(this, "_type", "line");
|
|
@@ -1740,7 +1755,7 @@ class rr extends y {
|
|
|
1740
1755
|
}
|
|
1741
1756
|
build() {
|
|
1742
1757
|
const { className: t, style: r, ...i } = this._props;
|
|
1743
|
-
return u.createElement(
|
|
1758
|
+
return u.createElement(rr, {
|
|
1744
1759
|
type: this._type,
|
|
1745
1760
|
renderer: this._renderer,
|
|
1746
1761
|
series: this._series,
|
|
@@ -1753,24 +1768,24 @@ class rr extends y {
|
|
|
1753
1768
|
});
|
|
1754
1769
|
}
|
|
1755
1770
|
}
|
|
1756
|
-
const
|
|
1757
|
-
function
|
|
1771
|
+
const Sn = y(ir);
|
|
1772
|
+
function wt(e) {
|
|
1758
1773
|
return {
|
|
1759
1774
|
background: e.colors.background,
|
|
1760
1775
|
onBackground: e.colors.onBackground,
|
|
1761
1776
|
primary: e.colors.primary,
|
|
1762
1777
|
secondary: e.colors.secondary,
|
|
1763
1778
|
surface: e.colors.surface,
|
|
1764
|
-
dark:
|
|
1779
|
+
dark: nr(e.colors.background)
|
|
1765
1780
|
};
|
|
1766
1781
|
}
|
|
1767
|
-
function
|
|
1782
|
+
function nr(e) {
|
|
1768
1783
|
const s = e.trim().match(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i);
|
|
1769
1784
|
if (!s) return !1;
|
|
1770
1785
|
const t = s[1].length === 3 ? s[1].split("").map((o) => o + o).join("") : s[1], r = parseInt(t.slice(0, 2), 16), i = parseInt(t.slice(2, 4), 16), n = parseInt(t.slice(4, 6), 16);
|
|
1771
1786
|
return (r * 299 + i * 587 + n * 114) / 1e3 < 150;
|
|
1772
1787
|
}
|
|
1773
|
-
function
|
|
1788
|
+
function ar(e) {
|
|
1774
1789
|
const s = e.trim().match(/^#([0-9a-f]{6})$/i);
|
|
1775
1790
|
if (!s) return 0;
|
|
1776
1791
|
const t = parseInt(s[1].slice(0, 2), 16) / 255, r = parseInt(s[1].slice(2, 4), 16) / 255, i = parseInt(s[1].slice(4, 6), 16) / 255, n = Math.max(t, r, i), o = Math.min(t, r, i), a = n - o;
|
|
@@ -1778,29 +1793,29 @@ function nr(e) {
|
|
|
1778
1793
|
let l = 0;
|
|
1779
1794
|
return n === t ? l = (r - i) / a % 6 : n === r ? l = (i - t) / a + 2 : l = (t - r) / a + 4, Math.round(l * 60);
|
|
1780
1795
|
}
|
|
1781
|
-
function
|
|
1782
|
-
const s = `sepia(0.7) saturate(2.6) hue-rotate(${
|
|
1796
|
+
function or(e) {
|
|
1797
|
+
const s = `sepia(0.7) saturate(2.6) hue-rotate(${ar(e.primary)}deg)`;
|
|
1783
1798
|
return e.dark ? `invert(1) hue-rotate(180deg) ${s}` : s;
|
|
1784
1799
|
}
|
|
1785
|
-
const
|
|
1800
|
+
const et = "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", K = "© OpenStreetMap contributors", lr = "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}", cr = {
|
|
1786
1801
|
light: {
|
|
1787
|
-
url:
|
|
1788
|
-
attribution:
|
|
1802
|
+
url: et,
|
|
1803
|
+
attribution: K,
|
|
1789
1804
|
filter: "grayscale(0.85) brightness(1.12)"
|
|
1790
1805
|
},
|
|
1791
1806
|
dark: {
|
|
1792
|
-
url:
|
|
1793
|
-
attribution:
|
|
1807
|
+
url: et,
|
|
1808
|
+
attribution: K,
|
|
1794
1809
|
filter: "invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.9)"
|
|
1795
1810
|
},
|
|
1796
|
-
streets: { url:
|
|
1811
|
+
streets: { url: et, attribution: K, filter: "" },
|
|
1797
1812
|
satellite: {
|
|
1798
|
-
url:
|
|
1813
|
+
url: lr,
|
|
1799
1814
|
attribution: "Tiles © Esri",
|
|
1800
1815
|
filter: ""
|
|
1801
1816
|
}
|
|
1802
1817
|
};
|
|
1803
|
-
function
|
|
1818
|
+
function ur(e) {
|
|
1804
1819
|
let s = e;
|
|
1805
1820
|
for (; s; ) {
|
|
1806
1821
|
const t = s.getAttribute("data-fibo-theme"), r = typeof s.className == "string" ? s.className : "";
|
|
@@ -1810,7 +1825,7 @@ function cr(e) {
|
|
|
1810
1825
|
}
|
|
1811
1826
|
return "streets";
|
|
1812
1827
|
}
|
|
1813
|
-
function
|
|
1828
|
+
function hr(e, s, t, r) {
|
|
1814
1829
|
e.clearRect(0, 0, s, t);
|
|
1815
1830
|
const i = e.createLinearGradient(0, 0, 0, t);
|
|
1816
1831
|
r === "light" ? (i.addColorStop(0, "#E8EEF6"), i.addColorStop(1, "#F8FAFC")) : (i.addColorStop(0, "#0B1D36"), i.addColorStop(1, "#12304F")), e.fillStyle = i, e.fillRect(0, 0, s, t), e.strokeStyle = "rgba(148, 163, 184, 0.25)", e.lineWidth = 1;
|
|
@@ -1819,14 +1834,14 @@ function ur(e, s, t, r) {
|
|
|
1819
1834
|
e.beginPath(), e.moveTo(o, 0), e.lineTo(o, t), e.stroke(), e.beginPath(), e.moveTo(0, a), e.lineTo(s, a), e.stroke();
|
|
1820
1835
|
}
|
|
1821
1836
|
}
|
|
1822
|
-
function
|
|
1837
|
+
function de(e) {
|
|
1823
1838
|
return [(e.minLat + e.maxLat) / 2, (e.minLng + e.maxLng) / 2];
|
|
1824
1839
|
}
|
|
1825
|
-
function
|
|
1840
|
+
function fe(e) {
|
|
1826
1841
|
const s = Math.max(e.maxLat - e.minLat, e.maxLng - e.minLng, 0.01);
|
|
1827
1842
|
return Math.max(1, Math.min(18, Math.round(Math.log2(360 / s))));
|
|
1828
1843
|
}
|
|
1829
|
-
const
|
|
1844
|
+
const dr = {
|
|
1830
1845
|
name: "canvas",
|
|
1831
1846
|
mount(e) {
|
|
1832
1847
|
const s = document.createElement("canvas");
|
|
@@ -1837,11 +1852,11 @@ const hr = {
|
|
|
1837
1852
|
const l = s.getContext("2d");
|
|
1838
1853
|
if (!l || n <= 0 || o <= 0) return;
|
|
1839
1854
|
const h = window.devicePixelRatio || 1;
|
|
1840
|
-
s.width = Math.round(n * h), s.height = Math.round(o * h), l.setTransform(h, 0, 0, h, 0, 0),
|
|
1855
|
+
s.width = Math.round(n * h), s.height = Math.round(o * h), l.setTransform(h, 0, 0, h, 0, 0), hr(l, n, o, a);
|
|
1841
1856
|
}, i = (n) => {
|
|
1842
1857
|
r(n.width, n.height, n.basemap), t.replaceChildren();
|
|
1843
1858
|
for (const [o, a] of n.markers.entries()) {
|
|
1844
|
-
const l =
|
|
1859
|
+
const l = Gs(a.lat, a.lng, n.bounds), h = document.createElement("button");
|
|
1845
1860
|
h.type = "button", h.className = "fibo-map-pin", h.setAttribute("aria-label", a.label || `${a.lat}, ${a.lng}`), h.style.cssText = [
|
|
1846
1861
|
"position:absolute",
|
|
1847
1862
|
`left:${l.x * 100}%`,
|
|
@@ -1869,39 +1884,39 @@ const hr = {
|
|
|
1869
1884
|
};
|
|
1870
1885
|
}
|
|
1871
1886
|
};
|
|
1872
|
-
let
|
|
1873
|
-
function
|
|
1874
|
-
return
|
|
1887
|
+
let dt = null;
|
|
1888
|
+
function fr() {
|
|
1889
|
+
return dt || (dt = import("leaflet").then((e) => e.default ?? e).catch(() => null)), dt;
|
|
1875
1890
|
}
|
|
1876
|
-
function
|
|
1891
|
+
function vn(e = {}) {
|
|
1877
1892
|
return {
|
|
1878
1893
|
name: "leaflet",
|
|
1879
1894
|
mount(s) {
|
|
1880
1895
|
const t = e.leaflet ?? globalThis.L;
|
|
1881
|
-
return t ?
|
|
1896
|
+
return t ? Rt(t, e, s) : typeof window > "u" ? { update() {
|
|
1882
1897
|
}, destroy() {
|
|
1883
|
-
} } :
|
|
1898
|
+
} } : fr().then((r) => r ? Rt(r, e, s) : (s.host.dataset.mapEngine = "leaflet", s.host.textContent = "Leaflet is not loaded.", { update() {
|
|
1884
1899
|
}, destroy() {
|
|
1885
1900
|
} }));
|
|
1886
1901
|
}
|
|
1887
1902
|
};
|
|
1888
1903
|
}
|
|
1889
|
-
function
|
|
1904
|
+
function Rt(e, s, t) {
|
|
1890
1905
|
const r = e.map(t.host, { zoomControl: !0 });
|
|
1891
1906
|
let i = null, n = "";
|
|
1892
1907
|
const o = (g, S) => {
|
|
1893
|
-
var
|
|
1894
|
-
const v = s.tiles ? { url: s.tiles, attribution: s.attribution ??
|
|
1908
|
+
var $, T;
|
|
1909
|
+
const v = s.tiles ? { url: s.tiles, attribution: s.attribution ?? K, filter: "" } : S ? { url: et, attribution: K, filter: or(S) } : cr[g];
|
|
1895
1910
|
if (t.host.dataset.basemap = S ? S.dark ? "dark" : "light" : g, S && (t.host.dataset.mapPrimary = S.primary), v.url !== n) {
|
|
1896
|
-
(
|
|
1911
|
+
($ = i == null ? void 0 : i.remove) == null || $.call(i), n = v.url;
|
|
1897
1912
|
const C = e.tileLayer(v.url, {
|
|
1898
1913
|
attribution: v.attribution,
|
|
1899
1914
|
maxZoom: 19
|
|
1900
1915
|
});
|
|
1901
1916
|
C.addTo(r), i = C;
|
|
1902
1917
|
}
|
|
1903
|
-
const
|
|
1904
|
-
|
|
1918
|
+
const B = (T = r.getPane) == null ? void 0 : T.call(r, "tilePane");
|
|
1919
|
+
B && (B.style.filter = v.filter);
|
|
1905
1920
|
};
|
|
1906
1921
|
o(t.basemap, t.palette);
|
|
1907
1922
|
let a = "";
|
|
@@ -1909,38 +1924,38 @@ function Lt(e, s, t) {
|
|
|
1909
1924
|
let d = () => {
|
|
1910
1925
|
}, m = null;
|
|
1911
1926
|
const f = (g) => {
|
|
1912
|
-
var
|
|
1927
|
+
var B, $, T;
|
|
1913
1928
|
if (!g) return;
|
|
1914
1929
|
const S = h.get(g);
|
|
1915
1930
|
if (!S) return;
|
|
1916
|
-
const v = (
|
|
1917
|
-
v && ((
|
|
1931
|
+
const v = (B = S.getLatLng) == null ? void 0 : B.call(S);
|
|
1932
|
+
v && (($ = r.panTo) == null || $.call(r, [v.lat, v.lng])), (T = S.openPopup) == null || T.call(S);
|
|
1918
1933
|
}, p = (g) => {
|
|
1919
1934
|
const S = g ?? null;
|
|
1920
1935
|
S !== m && (d(), m = S, d = S ? S.subscribe((v) => f(v)) : () => {
|
|
1921
1936
|
});
|
|
1922
1937
|
}, b = (g) => {
|
|
1923
|
-
var v,
|
|
1938
|
+
var v, B, $, T;
|
|
1924
1939
|
o(g.basemap, g.palette);
|
|
1925
1940
|
for (const C of l) C.remove();
|
|
1926
1941
|
l.length = 0, h.clear();
|
|
1927
1942
|
for (const C of g.markers) {
|
|
1928
|
-
const
|
|
1943
|
+
const O = ((v = g.palette) == null ? void 0 : v.primary) || "#F59E0B", ct = /^#[0-9A-Fa-f]{3,8}$/.test(C.color ?? "") ? C.color : O, U = (B = e.divIcon) == null ? void 0 : B.call(e, {
|
|
1929
1944
|
className: "",
|
|
1930
1945
|
iconSize: [16, 16],
|
|
1931
1946
|
iconAnchor: [8, 16],
|
|
1932
|
-
html: `<span style="display:block;width:14px;height:14px;background:${
|
|
1933
|
-
}),
|
|
1934
|
-
|
|
1935
|
-
var
|
|
1936
|
-
return (
|
|
1937
|
-
})), l.push(
|
|
1947
|
+
html: `<span style="display:block;width:14px;height:14px;background:${ct};border:2px solid #fff;border-radius:50% 50% 50% 0;transform:rotate(-45deg)"></span>`
|
|
1948
|
+
}), w = e.marker([C.lat, C.lng], U ? { icon: U } : void 0).addTo(r), X = C.popup || C.label;
|
|
1949
|
+
X && (($ = w.bindPopup) == null || $.call(w, X, { maxWidth: 280, minWidth: 220, autoPan: !0 })), C.id && h.set(C.id, w), g.onSelect && ((T = w.on) == null || T.call(w, "click", () => {
|
|
1950
|
+
var F;
|
|
1951
|
+
return (F = g.onSelect) == null ? void 0 : F.call(g, C);
|
|
1952
|
+
})), l.push(w);
|
|
1938
1953
|
}
|
|
1939
1954
|
const S = `${g.bounds.minLat}:${g.bounds.maxLat}:${g.bounds.minLng}:${g.bounds.maxLng}:${g.markers.length}`;
|
|
1940
1955
|
S !== a && (a = S, r.fitBounds ? r.fitBounds([
|
|
1941
1956
|
[g.bounds.minLat, g.bounds.minLng],
|
|
1942
1957
|
[g.bounds.maxLat, g.bounds.maxLng]
|
|
1943
|
-
]) : r.setView(
|
|
1958
|
+
]) : r.setView(de(g.bounds), fe(g.bounds))), p(g.opened), f((m == null ? void 0 : m.value) ?? null);
|
|
1944
1959
|
};
|
|
1945
1960
|
return b(t), {
|
|
1946
1961
|
update: b,
|
|
@@ -1951,20 +1966,20 @@ function Lt(e, s, t) {
|
|
|
1951
1966
|
}
|
|
1952
1967
|
};
|
|
1953
1968
|
}
|
|
1954
|
-
let
|
|
1955
|
-
function
|
|
1969
|
+
let Q = null;
|
|
1970
|
+
function mr(e) {
|
|
1956
1971
|
var t;
|
|
1957
1972
|
const s = (t = globalThis.google) == null ? void 0 : t.maps;
|
|
1958
|
-
return s ? Promise.resolve(s) :
|
|
1973
|
+
return s ? Promise.resolve(s) : Q || (Q = new Promise((r, i) => {
|
|
1959
1974
|
const n = document.createElement("script");
|
|
1960
1975
|
n.src = `https://maps.googleapis.com/maps/api/js?key=${encodeURIComponent(e)}&v=weekly`, n.async = !0, n.onload = () => {
|
|
1961
1976
|
var a;
|
|
1962
1977
|
const o = (a = globalThis.google) == null ? void 0 : a.maps;
|
|
1963
1978
|
o ? r(o) : i(new Error("Google Maps did not load."));
|
|
1964
1979
|
}, n.onerror = () => i(new Error("Google Maps failed to load.")), document.head.append(n);
|
|
1965
|
-
}),
|
|
1980
|
+
}), Q);
|
|
1966
1981
|
}
|
|
1967
|
-
function
|
|
1982
|
+
function pr(e) {
|
|
1968
1983
|
return [
|
|
1969
1984
|
{ elementType: "geometry", stylers: [{ color: e.background }] },
|
|
1970
1985
|
{ elementType: "labels.text.fill", stylers: [{ color: e.onBackground }] },
|
|
@@ -1973,21 +1988,21 @@ function mr(e) {
|
|
|
1973
1988
|
{ featureType: "poi", elementType: "geometry", stylers: [{ color: e.surface }] }
|
|
1974
1989
|
];
|
|
1975
1990
|
}
|
|
1976
|
-
const
|
|
1991
|
+
const Mt = [
|
|
1977
1992
|
{ elementType: "geometry", stylers: [{ color: "#1d2c4d" }] },
|
|
1978
1993
|
{ elementType: "labels.text.fill", stylers: [{ color: "#8ec3b9" }] },
|
|
1979
1994
|
{ elementType: "labels.text.stroke", stylers: [{ color: "#1a3646" }] },
|
|
1980
1995
|
{ featureType: "water", elementType: "geometry", stylers: [{ color: "#0e1626" }] },
|
|
1981
1996
|
{ featureType: "road", elementType: "geometry", stylers: [{ color: "#304a7d" }] }
|
|
1982
1997
|
];
|
|
1983
|
-
function
|
|
1984
|
-
const [t, r] =
|
|
1998
|
+
function Ft(e, s) {
|
|
1999
|
+
const [t, r] = de(e.bounds), i = new s.Map(e.host, {
|
|
1985
2000
|
center: { lat: t, lng: r },
|
|
1986
|
-
zoom:
|
|
2001
|
+
zoom: fe(e.bounds),
|
|
1987
2002
|
mapTypeControl: !1,
|
|
1988
2003
|
streetViewControl: !1,
|
|
1989
2004
|
mapTypeId: e.basemap === "satellite" ? "satellite" : "roadmap",
|
|
1990
|
-
styles: e.basemap === "dark" ?
|
|
2005
|
+
styles: e.basemap === "dark" ? Mt : void 0
|
|
1991
2006
|
}), n = [], o = (a) => {
|
|
1992
2007
|
var h, d, m;
|
|
1993
2008
|
for (const f of n) f.setMap(null);
|
|
@@ -2001,7 +2016,7 @@ function Rt(e, s) {
|
|
|
2001
2016
|
})), n.push(b), l.extend(p);
|
|
2002
2017
|
}
|
|
2003
2018
|
a.markers.length > 0 && i.fitBounds(l), (d = i.setMapTypeId) == null || d.call(i, a.basemap === "satellite" ? "satellite" : "roadmap"), (m = i.setOptions) == null || m.call(i, {
|
|
2004
|
-
styles: a.palette ?
|
|
2019
|
+
styles: a.palette ? pr(a.palette) : a.basemap === "dark" ? Mt : []
|
|
2005
2020
|
});
|
|
2006
2021
|
};
|
|
2007
2022
|
return o(e), {
|
|
@@ -2011,45 +2026,45 @@ function Rt(e, s) {
|
|
|
2011
2026
|
}
|
|
2012
2027
|
};
|
|
2013
2028
|
}
|
|
2014
|
-
function
|
|
2029
|
+
function wn(e = {}) {
|
|
2015
2030
|
return {
|
|
2016
2031
|
name: "google",
|
|
2017
2032
|
mount(s) {
|
|
2018
|
-
return e.maps ?
|
|
2033
|
+
return e.maps ? Ft(s, e.maps) : e.apiKey ? mr(e.apiKey).then((t) => Ft(s, t)) : (s.host.dataset.mapEngine = "google", s.host.textContent = "Google Maps needs an apiKey or a loaded maps namespace.", { update() {
|
|
2019
2034
|
}, destroy() {
|
|
2020
2035
|
} });
|
|
2021
2036
|
}
|
|
2022
2037
|
};
|
|
2023
2038
|
}
|
|
2024
|
-
function
|
|
2039
|
+
function ot(e) {
|
|
2025
2040
|
return e === "light" || e === "dark" || e === "streets" || e === "satellite";
|
|
2026
2041
|
}
|
|
2027
|
-
function
|
|
2042
|
+
function gr(e) {
|
|
2028
2043
|
if (!e || typeof e != "object") return !1;
|
|
2029
2044
|
const s = e;
|
|
2030
2045
|
return typeof s.subscribe == "function" && !!s.value && typeof s.value == "object" && "colors" in s.value;
|
|
2031
2046
|
}
|
|
2032
|
-
function
|
|
2047
|
+
function me(e) {
|
|
2033
2048
|
return !!e && typeof e == "object" && typeof e.subscribe == "function" && "value" in e;
|
|
2034
2049
|
}
|
|
2035
|
-
function
|
|
2036
|
-
return
|
|
2050
|
+
function It(e, s) {
|
|
2051
|
+
return ot(e) ? e : me(e) && ot(e.value) ? e.value : s ? ur(s) : "streets";
|
|
2037
2052
|
}
|
|
2038
|
-
const
|
|
2039
|
-
const t =
|
|
2053
|
+
const yr = u.memo(function(s) {
|
|
2054
|
+
const t = E(null), r = E(null), i = E(s);
|
|
2040
2055
|
i.current = s;
|
|
2041
|
-
const [n, o] =
|
|
2042
|
-
return
|
|
2043
|
-
if (!
|
|
2056
|
+
const [n, o] = P(null), [a, l] = P(s.palette);
|
|
2057
|
+
return V(() => {
|
|
2058
|
+
if (!me(s.basemap)) return;
|
|
2044
2059
|
const h = s.basemap;
|
|
2045
|
-
return
|
|
2046
|
-
|
|
2060
|
+
return ot(h.value) && o(h.value), h.subscribe((d) => {
|
|
2061
|
+
ot(d) && o(d);
|
|
2047
2062
|
});
|
|
2048
|
-
}, [s.basemap]),
|
|
2063
|
+
}, [s.basemap]), V(() => {
|
|
2049
2064
|
if (!s.themeSignal) return;
|
|
2050
2065
|
const h = s.themeSignal;
|
|
2051
|
-
return l(
|
|
2052
|
-
}, [s.themeSignal]),
|
|
2066
|
+
return l(wt(h.value)), h.subscribe((d) => l(wt(d)));
|
|
2067
|
+
}, [s.themeSignal]), Z(() => {
|
|
2053
2068
|
const h = t.current;
|
|
2054
2069
|
if (!h) return;
|
|
2055
2070
|
let d = !1, m = null;
|
|
@@ -2058,7 +2073,7 @@ const gr = u.memo(function(s) {
|
|
|
2058
2073
|
bounds: i.current.bounds,
|
|
2059
2074
|
width: i.current.width,
|
|
2060
2075
|
height: i.current.height,
|
|
2061
|
-
basemap: n ??
|
|
2076
|
+
basemap: n ?? It(i.current.basemap, h),
|
|
2062
2077
|
palette: a,
|
|
2063
2078
|
onSelect: i.current.onSelect,
|
|
2064
2079
|
opened: i.current.opened ?? null
|
|
@@ -2074,14 +2089,14 @@ const gr = u.memo(function(s) {
|
|
|
2074
2089
|
}) : b(p), () => {
|
|
2075
2090
|
d = !0, m == null || m.destroy(), r.current = null;
|
|
2076
2091
|
};
|
|
2077
|
-
}, [s.engine]),
|
|
2092
|
+
}, [s.engine]), Z(() => {
|
|
2078
2093
|
var h;
|
|
2079
2094
|
(h = r.current) == null || h.update({
|
|
2080
2095
|
markers: s.markers,
|
|
2081
2096
|
bounds: s.bounds,
|
|
2082
2097
|
width: s.width,
|
|
2083
2098
|
height: s.height,
|
|
2084
|
-
basemap: n ??
|
|
2099
|
+
basemap: n ?? It(s.basemap, t.current),
|
|
2085
2100
|
palette: a,
|
|
2086
2101
|
onSelect: s.onSelect,
|
|
2087
2102
|
opened: s.opened ?? null
|
|
@@ -2101,7 +2116,7 @@ const gr = u.memo(function(s) {
|
|
|
2101
2116
|
}
|
|
2102
2117
|
});
|
|
2103
2118
|
});
|
|
2104
|
-
class _r extends
|
|
2119
|
+
class _r extends _ {
|
|
2105
2120
|
constructor() {
|
|
2106
2121
|
super(...arguments);
|
|
2107
2122
|
c(this, "_markers", []);
|
|
@@ -2112,7 +2127,7 @@ class _r extends y {
|
|
|
2112
2127
|
c(this, "_height", 240);
|
|
2113
2128
|
c(this, "_onSelect");
|
|
2114
2129
|
c(this, "_opened", null);
|
|
2115
|
-
c(this, "_engine",
|
|
2130
|
+
c(this, "_engine", dr);
|
|
2116
2131
|
c(this, "_basemap", null);
|
|
2117
2132
|
c(this, "_themeSignal", null);
|
|
2118
2133
|
}
|
|
@@ -2122,7 +2137,7 @@ class _r extends y {
|
|
|
2122
2137
|
* Leaflet tints the free OpenStreetMap tiles. Google Maps uses the same colors.
|
|
2123
2138
|
*/
|
|
2124
2139
|
theme(t) {
|
|
2125
|
-
return
|
|
2140
|
+
return gr(t) ? (this._themeSignal = t, super.theme(t.value), this) : (this._themeSignal = null, super.theme(t));
|
|
2126
2141
|
}
|
|
2127
2142
|
markers(t) {
|
|
2128
2143
|
return this._markers = t, this;
|
|
@@ -2163,15 +2178,15 @@ class _r extends y {
|
|
|
2163
2178
|
return this._engine = t, this;
|
|
2164
2179
|
}
|
|
2165
2180
|
build() {
|
|
2166
|
-
const t = this._bounds ?? (this._center ?
|
|
2167
|
-
return u.createElement(
|
|
2181
|
+
const t = this._bounds ?? (this._center ? ue(this._center.lat, this._center.lng, this._span) : zs(this._markers)), { className: r, style: i, ...n } = this._props;
|
|
2182
|
+
return u.createElement(yr, {
|
|
2168
2183
|
engine: this._engine,
|
|
2169
2184
|
markers: this._markers,
|
|
2170
2185
|
bounds: t,
|
|
2171
2186
|
width: this._width,
|
|
2172
2187
|
height: this._height,
|
|
2173
2188
|
basemap: this._basemap,
|
|
2174
|
-
palette: this._theme ?
|
|
2189
|
+
palette: this._theme ? wt(this._theme) : null,
|
|
2175
2190
|
themeSignal: this._themeSignal,
|
|
2176
2191
|
onSelect: this._onSelect,
|
|
2177
2192
|
opened: this._opened,
|
|
@@ -2181,14 +2196,14 @@ class _r extends y {
|
|
|
2181
2196
|
});
|
|
2182
2197
|
}
|
|
2183
2198
|
}
|
|
2184
|
-
const
|
|
2185
|
-
function
|
|
2199
|
+
const kn = y(_r);
|
|
2200
|
+
function br(e) {
|
|
2186
2201
|
if (e && typeof e == "object" && "id" in e) {
|
|
2187
2202
|
const s = e.id;
|
|
2188
2203
|
if (s != null && s !== "") return String(s);
|
|
2189
2204
|
}
|
|
2190
2205
|
}
|
|
2191
|
-
class
|
|
2206
|
+
class Sr extends _ {
|
|
2192
2207
|
constructor() {
|
|
2193
2208
|
super(...arguments);
|
|
2194
2209
|
c(this, "_data");
|
|
@@ -2204,7 +2219,7 @@ class br extends y {
|
|
|
2204
2219
|
return this._onDragStart = t, this;
|
|
2205
2220
|
}
|
|
2206
2221
|
build() {
|
|
2207
|
-
const { className: t, ...r } = this._props, i = ["fibo-draggable", this.getClassName(), t].filter(Boolean).join(" "), n =
|
|
2222
|
+
const { className: t, ...r } = this._props, i = ["fibo-draggable", this.getClassName(), t].filter(Boolean).join(" "), n = br(this._data), o = this._data, a = this._onDragStart;
|
|
2208
2223
|
return u.createElement(
|
|
2209
2224
|
"div",
|
|
2210
2225
|
{
|
|
@@ -2221,12 +2236,12 @@ class br extends y {
|
|
|
2221
2236
|
a == null || a();
|
|
2222
2237
|
}
|
|
2223
2238
|
},
|
|
2224
|
-
...this._children.map((l) =>
|
|
2239
|
+
...this._children.map((l) => x(l))
|
|
2225
2240
|
);
|
|
2226
2241
|
}
|
|
2227
2242
|
}
|
|
2228
|
-
const
|
|
2229
|
-
function
|
|
2243
|
+
const Cn = y(Sr);
|
|
2244
|
+
function vr(e) {
|
|
2230
2245
|
const s = e.dataTransfer;
|
|
2231
2246
|
if (!s) return;
|
|
2232
2247
|
const t = s.getData("text") || s.getData("text/plain");
|
|
@@ -2237,7 +2252,7 @@ function Sr(e) {
|
|
|
2237
2252
|
return t;
|
|
2238
2253
|
}
|
|
2239
2254
|
}
|
|
2240
|
-
class
|
|
2255
|
+
class wr extends _ {
|
|
2241
2256
|
constructor() {
|
|
2242
2257
|
super(...arguments);
|
|
2243
2258
|
c(this, "_onAccept");
|
|
@@ -2261,19 +2276,19 @@ class vr extends y {
|
|
|
2261
2276
|
o.preventDefault();
|
|
2262
2277
|
},
|
|
2263
2278
|
onDrop: (o) => {
|
|
2264
|
-
o.preventDefault(), n && n(
|
|
2279
|
+
o.preventDefault(), n && n(vr(o));
|
|
2265
2280
|
}
|
|
2266
2281
|
},
|
|
2267
|
-
...this._children.map((o) =>
|
|
2282
|
+
...this._children.map((o) => x(o))
|
|
2268
2283
|
);
|
|
2269
2284
|
}
|
|
2270
2285
|
}
|
|
2271
|
-
const
|
|
2286
|
+
const En = y(wr);
|
|
2272
2287
|
function kr(e) {
|
|
2273
2288
|
const t = e.trim().replace(/[^a-zA-Z0-9_-]+/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "") || "hero";
|
|
2274
2289
|
return /^[0-9-]/.test(t) ? `h-${t.replace(/^-/, "")}` : t;
|
|
2275
2290
|
}
|
|
2276
|
-
class Cr extends
|
|
2291
|
+
class Cr extends _ {
|
|
2277
2292
|
constructor() {
|
|
2278
2293
|
super(...arguments);
|
|
2279
2294
|
c(this, "_tag", "hero");
|
|
@@ -2317,17 +2332,17 @@ class Cr extends y {
|
|
|
2317
2332
|
typeof n == "function" && n(d);
|
|
2318
2333
|
}
|
|
2319
2334
|
},
|
|
2320
|
-
...this._children.map((d) =>
|
|
2335
|
+
...this._children.map((d) => x(d))
|
|
2321
2336
|
);
|
|
2322
2337
|
}
|
|
2323
2338
|
}
|
|
2324
|
-
const
|
|
2325
|
-
function
|
|
2339
|
+
const xn = y(Cr);
|
|
2340
|
+
function Dt(e, s, t) {
|
|
2326
2341
|
return Math.min(t, Math.max(s, e));
|
|
2327
2342
|
}
|
|
2328
|
-
function
|
|
2329
|
-
const { minScale: s, maxScale: t, className: r, style: i, children: n } = e, [o, a] =
|
|
2330
|
-
a((d) =>
|
|
2343
|
+
function Er(e) {
|
|
2344
|
+
const { minScale: s, maxScale: t, className: r, style: i, children: n } = e, [o, a] = P(() => Dt(1, s, t)), l = (h) => {
|
|
2345
|
+
a((d) => Dt(d + h, s, t));
|
|
2331
2346
|
};
|
|
2332
2347
|
return u.createElement(
|
|
2333
2348
|
"div",
|
|
@@ -2362,7 +2377,7 @@ function wr(e) {
|
|
|
2362
2377
|
)
|
|
2363
2378
|
);
|
|
2364
2379
|
}
|
|
2365
|
-
class
|
|
2380
|
+
class xr extends _ {
|
|
2366
2381
|
constructor() {
|
|
2367
2382
|
super(...arguments);
|
|
2368
2383
|
c(this, "_minScale", 1);
|
|
@@ -2379,19 +2394,19 @@ class Er extends y {
|
|
|
2379
2394
|
}
|
|
2380
2395
|
build() {
|
|
2381
2396
|
const { className: t, ...r } = this._props, i = ["fibo-interactive-viewer", this.getClassName(), t].filter(Boolean).join(" "), n = Number.isFinite(this._minScale) ? this._minScale : 1, o = Number.isFinite(this._maxScale) ? this._maxScale : 4;
|
|
2382
|
-
return u.createElement(
|
|
2397
|
+
return u.createElement(Er, {
|
|
2383
2398
|
...r,
|
|
2384
2399
|
className: i,
|
|
2385
2400
|
style: this.getStyle(),
|
|
2386
2401
|
minScale: Math.min(n, o),
|
|
2387
2402
|
maxScale: Math.max(n, o),
|
|
2388
|
-
children: this._children.map((a) =>
|
|
2403
|
+
children: this._children.map((a) => x(a))
|
|
2389
2404
|
});
|
|
2390
2405
|
}
|
|
2391
2406
|
}
|
|
2392
|
-
const
|
|
2393
|
-
const t =
|
|
2394
|
-
|
|
2407
|
+
const Nn = y(xr), Nr = u.memo(function(s) {
|
|
2408
|
+
const t = E(null), [r, i] = P([]);
|
|
2409
|
+
V(() => () => {
|
|
2395
2410
|
for (const o of r)
|
|
2396
2411
|
typeof URL.revokeObjectURL == "function" && URL.revokeObjectURL(o.url);
|
|
2397
2412
|
}, [r]);
|
|
@@ -2462,7 +2477,7 @@ const wn = _(Er), Nr = u.memo(function(s) {
|
|
|
2462
2477
|
) : null
|
|
2463
2478
|
);
|
|
2464
2479
|
});
|
|
2465
|
-
class
|
|
2480
|
+
class Tr extends _ {
|
|
2466
2481
|
constructor() {
|
|
2467
2482
|
super(...arguments);
|
|
2468
2483
|
c(this, "_label", "Choose photos");
|
|
@@ -2495,8 +2510,8 @@ class xr extends y {
|
|
|
2495
2510
|
});
|
|
2496
2511
|
}
|
|
2497
2512
|
}
|
|
2498
|
-
const
|
|
2499
|
-
const t =
|
|
2513
|
+
const Tn = y(Tr), Br = u.memo(function(s) {
|
|
2514
|
+
const t = E(null);
|
|
2500
2515
|
function r(i) {
|
|
2501
2516
|
var n;
|
|
2502
2517
|
(n = s.onChange) == null || n.call(s, Array.from(i ?? []));
|
|
@@ -2539,7 +2554,7 @@ const En = _(xr), Tr = u.memo(function(s) {
|
|
|
2539
2554
|
)
|
|
2540
2555
|
);
|
|
2541
2556
|
});
|
|
2542
|
-
class
|
|
2557
|
+
class $r extends _ {
|
|
2543
2558
|
constructor() {
|
|
2544
2559
|
super(...arguments);
|
|
2545
2560
|
c(this, "_label", "Choose files");
|
|
@@ -2561,7 +2576,7 @@ class Br extends y {
|
|
|
2561
2576
|
}
|
|
2562
2577
|
build() {
|
|
2563
2578
|
const { className: t, style: r, ...i } = this._props;
|
|
2564
|
-
return u.createElement(
|
|
2579
|
+
return u.createElement(Br, {
|
|
2565
2580
|
label: this._label,
|
|
2566
2581
|
accept: this._accept,
|
|
2567
2582
|
multiple: this._multiple,
|
|
@@ -2572,30 +2587,30 @@ class Br extends y {
|
|
|
2572
2587
|
});
|
|
2573
2588
|
}
|
|
2574
2589
|
}
|
|
2575
|
-
const
|
|
2576
|
-
function
|
|
2590
|
+
const Bn = y($r), Pr = ["qr_code", "ean_13", "ean_8", "code_128", "code_39", "upc_a", "upc_e"];
|
|
2591
|
+
function Lr() {
|
|
2577
2592
|
const e = globalThis.BarcodeDetector;
|
|
2578
2593
|
return typeof e == "function" ? e : void 0;
|
|
2579
2594
|
}
|
|
2580
|
-
function
|
|
2595
|
+
function Ot() {
|
|
2581
2596
|
if (typeof navigator > "u") return;
|
|
2582
2597
|
const e = navigator.mediaDevices, s = e == null ? void 0 : e.getUserMedia;
|
|
2583
2598
|
return typeof s == "function" ? s.bind(e) : void 0;
|
|
2584
2599
|
}
|
|
2585
|
-
const
|
|
2586
|
-
const t =
|
|
2600
|
+
const Ar = u.memo(function(s) {
|
|
2601
|
+
const t = E(null), r = E(null), i = E(!1), n = E(s.onScan);
|
|
2587
2602
|
n.current = s.onScan;
|
|
2588
|
-
const [o, a] =
|
|
2603
|
+
const [o, a] = P(null);
|
|
2589
2604
|
function l() {
|
|
2590
2605
|
i.current = !0;
|
|
2591
2606
|
const d = r.current;
|
|
2592
2607
|
if (r.current = null, !!d)
|
|
2593
2608
|
for (const m of d.getTracks()) m.stop();
|
|
2594
2609
|
}
|
|
2595
|
-
|
|
2610
|
+
V(() => () => l(), []);
|
|
2596
2611
|
async function h() {
|
|
2597
2612
|
var S;
|
|
2598
|
-
const d =
|
|
2613
|
+
const d = Ot();
|
|
2599
2614
|
if (!d) {
|
|
2600
2615
|
a("Camera unavailable");
|
|
2601
2616
|
return;
|
|
@@ -2605,7 +2620,7 @@ const Lr = u.memo(function(s) {
|
|
|
2605
2620
|
try {
|
|
2606
2621
|
m = await d({ video: { facingMode: "environment" } });
|
|
2607
2622
|
} catch {
|
|
2608
|
-
|
|
2623
|
+
Ot() || a("Camera unavailable");
|
|
2609
2624
|
return;
|
|
2610
2625
|
}
|
|
2611
2626
|
if (i.current) {
|
|
@@ -2623,15 +2638,15 @@ const Lr = u.memo(function(s) {
|
|
|
2623
2638
|
} catch {
|
|
2624
2639
|
}
|
|
2625
2640
|
if (i.current || !f) return;
|
|
2626
|
-
const p =
|
|
2641
|
+
const p = Lr();
|
|
2627
2642
|
if (!p) return;
|
|
2628
|
-
const b = new p({ formats:
|
|
2629
|
-
var v,
|
|
2643
|
+
const b = new p({ formats: Pr }), g = async () => {
|
|
2644
|
+
var v, B;
|
|
2630
2645
|
if (!i.current) {
|
|
2631
2646
|
try {
|
|
2632
|
-
const
|
|
2633
|
-
if (
|
|
2634
|
-
(
|
|
2647
|
+
const T = (v = (await b.detect(f)).find((C) => !!C.rawValue)) == null ? void 0 : v.rawValue;
|
|
2648
|
+
if (T) {
|
|
2649
|
+
(B = n.current) == null || B.call(n, T), l();
|
|
2635
2650
|
return;
|
|
2636
2651
|
}
|
|
2637
2652
|
} catch {
|
|
@@ -2670,7 +2685,7 @@ const Lr = u.memo(function(s) {
|
|
|
2670
2685
|
o ? u.createElement("p", { className: "fibo-code-scanner-status" }, o) : null
|
|
2671
2686
|
);
|
|
2672
2687
|
});
|
|
2673
|
-
class
|
|
2688
|
+
class Rr extends _ {
|
|
2674
2689
|
constructor() {
|
|
2675
2690
|
super(...arguments);
|
|
2676
2691
|
c(this, "_label", "Scan");
|
|
@@ -2684,7 +2699,7 @@ class Ar extends y {
|
|
|
2684
2699
|
}
|
|
2685
2700
|
build() {
|
|
2686
2701
|
const { className: t, style: r, ...i } = this._props;
|
|
2687
|
-
return u.createElement(
|
|
2702
|
+
return u.createElement(Ar, {
|
|
2688
2703
|
label: this._label,
|
|
2689
2704
|
onScan: this._onScan,
|
|
2690
2705
|
className: [this.getClassName(), t].filter(Boolean).join(" ") || void 0,
|
|
@@ -2693,11 +2708,11 @@ class Ar extends y {
|
|
|
2693
2708
|
});
|
|
2694
2709
|
}
|
|
2695
2710
|
}
|
|
2696
|
-
const
|
|
2697
|
-
function
|
|
2698
|
-
return
|
|
2711
|
+
const $n = y(Rr);
|
|
2712
|
+
function pe(e) {
|
|
2713
|
+
return I(e);
|
|
2699
2714
|
}
|
|
2700
|
-
async function
|
|
2715
|
+
async function Mr(e, s) {
|
|
2701
2716
|
const t = navigator.share;
|
|
2702
2717
|
if (typeof t == "function") {
|
|
2703
2718
|
await t.call(navigator, { url: e, title: s });
|
|
@@ -2705,7 +2720,7 @@ async function Rr(e, s) {
|
|
|
2705
2720
|
}
|
|
2706
2721
|
await navigator.clipboard.writeText(e);
|
|
2707
2722
|
}
|
|
2708
|
-
function
|
|
2723
|
+
function Fr(e) {
|
|
2709
2724
|
return u.createElement(
|
|
2710
2725
|
"button",
|
|
2711
2726
|
{
|
|
@@ -2714,13 +2729,13 @@ function Mr(e) {
|
|
|
2714
2729
|
style: e.style,
|
|
2715
2730
|
disabled: e.disabled,
|
|
2716
2731
|
onClick: () => {
|
|
2717
|
-
e.disabled ||
|
|
2732
|
+
e.disabled || pe(e.url) || Mr(e.url, e.title);
|
|
2718
2733
|
}
|
|
2719
2734
|
},
|
|
2720
2735
|
e.label
|
|
2721
2736
|
);
|
|
2722
2737
|
}
|
|
2723
|
-
class
|
|
2738
|
+
class Ir extends _ {
|
|
2724
2739
|
constructor() {
|
|
2725
2740
|
super(...arguments);
|
|
2726
2741
|
c(this, "_url", "");
|
|
@@ -2738,18 +2753,18 @@ class Fr extends y {
|
|
|
2738
2753
|
}
|
|
2739
2754
|
build() {
|
|
2740
2755
|
const { className: t, style: r } = this._props;
|
|
2741
|
-
return u.createElement(
|
|
2756
|
+
return u.createElement(Fr, {
|
|
2742
2757
|
url: this._url,
|
|
2743
2758
|
title: this._title,
|
|
2744
2759
|
label: this._label,
|
|
2745
|
-
disabled:
|
|
2760
|
+
disabled: pe(this._url),
|
|
2746
2761
|
className: [this.getClassName(), t].filter(Boolean).join(" ") || void 0,
|
|
2747
2762
|
style: { ...this.getStyle(), ...r }
|
|
2748
2763
|
});
|
|
2749
2764
|
}
|
|
2750
2765
|
}
|
|
2751
|
-
const
|
|
2752
|
-
class
|
|
2766
|
+
const Pn = y(Ir);
|
|
2767
|
+
class Dr extends _ {
|
|
2753
2768
|
constructor() {
|
|
2754
2769
|
super(...arguments);
|
|
2755
2770
|
c(this, "_header");
|
|
@@ -2769,54 +2784,54 @@ class Ir extends y {
|
|
|
2769
2784
|
this._header != null ? u.createElement(
|
|
2770
2785
|
"header",
|
|
2771
2786
|
{ key: "header", className: "fibo-section-header" },
|
|
2772
|
-
u.createElement("h2", { key: "heading" },
|
|
2773
|
-
this._footer != null ? u.createElement("footer", { key: "footer" },
|
|
2787
|
+
u.createElement("h2", { key: "heading" }, x(this._header)),
|
|
2788
|
+
this._footer != null ? u.createElement("footer", { key: "footer" }, x(this._footer)) : null
|
|
2774
2789
|
) : null,
|
|
2775
2790
|
o.length > 0 ? u.createElement("div", { key: "body", className: "fibo-section-body" }, ...o) : null
|
|
2776
2791
|
);
|
|
2777
2792
|
}
|
|
2778
2793
|
}
|
|
2779
|
-
const
|
|
2780
|
-
function
|
|
2794
|
+
const Ln = y(Dr), Or = -48;
|
|
2795
|
+
function jt(e) {
|
|
2781
2796
|
return Math.min(0, e);
|
|
2782
2797
|
}
|
|
2783
|
-
function
|
|
2798
|
+
function ft(e) {
|
|
2784
2799
|
return typeof e.clientX == "number" && Number.isFinite(e.clientX) ? e.clientX : null;
|
|
2785
2800
|
}
|
|
2786
|
-
function
|
|
2801
|
+
function jr({
|
|
2787
2802
|
rowChild: e,
|
|
2788
2803
|
actions: s,
|
|
2789
2804
|
className: t,
|
|
2790
2805
|
style: r,
|
|
2791
2806
|
...i
|
|
2792
2807
|
}) {
|
|
2793
|
-
const [n, o] =
|
|
2794
|
-
|
|
2808
|
+
const [n, o] = P(0), a = E(null), l = E(null);
|
|
2809
|
+
V(() => () => {
|
|
2795
2810
|
var d;
|
|
2796
2811
|
return (d = l.current) == null ? void 0 : d.call(l);
|
|
2797
2812
|
}, []);
|
|
2798
2813
|
const h = (d) => {
|
|
2799
|
-
var v,
|
|
2800
|
-
if ((
|
|
2801
|
-
const m =
|
|
2814
|
+
var v, B, $;
|
|
2815
|
+
if ((B = (v = d.target).closest) != null && B.call(v, "button") || d.button != null && d.button !== 0) return;
|
|
2816
|
+
const m = ft(d);
|
|
2802
2817
|
if (m == null) return;
|
|
2803
2818
|
const f = { startX: m, startOffset: n };
|
|
2804
|
-
a.current = f, (
|
|
2805
|
-
const p = (
|
|
2819
|
+
a.current = f, ($ = l.current) == null || $.call(l);
|
|
2820
|
+
const p = (T) => {
|
|
2806
2821
|
if (a.current !== f) return;
|
|
2807
|
-
const C =
|
|
2808
|
-
C != null && o(
|
|
2822
|
+
const C = ft(T);
|
|
2823
|
+
C != null && o(jt(f.startOffset + (C - f.startX)));
|
|
2809
2824
|
}, b = () => {
|
|
2810
2825
|
window.removeEventListener("pointermove", p), window.removeEventListener("pointerup", g), window.removeEventListener("pointercancel", S), l.current === b && (l.current = null);
|
|
2811
|
-
}, g = (
|
|
2826
|
+
}, g = (T) => {
|
|
2812
2827
|
if (a.current !== f) return;
|
|
2813
|
-
const C =
|
|
2828
|
+
const C = ft(T);
|
|
2814
2829
|
if (b(), a.current = null, C == null) {
|
|
2815
2830
|
o(0);
|
|
2816
2831
|
return;
|
|
2817
2832
|
}
|
|
2818
|
-
const
|
|
2819
|
-
o(
|
|
2833
|
+
const O = jt(f.startOffset + (C - f.startX));
|
|
2834
|
+
o(O <= Or ? O : 0);
|
|
2820
2835
|
}, S = () => {
|
|
2821
2836
|
a.current === f && (b(), a.current = null, o(0));
|
|
2822
2837
|
};
|
|
@@ -2852,11 +2867,11 @@ function Or({
|
|
|
2852
2867
|
className: "fibo-swipe-row-child",
|
|
2853
2868
|
style: { transform: `translateX(${n}px)` }
|
|
2854
2869
|
},
|
|
2855
|
-
|
|
2870
|
+
x(e)
|
|
2856
2871
|
)
|
|
2857
2872
|
);
|
|
2858
2873
|
}
|
|
2859
|
-
class
|
|
2874
|
+
class Hr extends _ {
|
|
2860
2875
|
constructor() {
|
|
2861
2876
|
super(...arguments);
|
|
2862
2877
|
c(this, "_child", null);
|
|
@@ -2870,7 +2885,7 @@ class jr extends y {
|
|
|
2870
2885
|
}
|
|
2871
2886
|
build() {
|
|
2872
2887
|
const { className: t, children: r, ...i } = this._props, n = ["fibo-swipe-row", this.getClassName(), t].filter(Boolean).join(" ");
|
|
2873
|
-
return u.createElement(
|
|
2888
|
+
return u.createElement(jr, {
|
|
2874
2889
|
...i,
|
|
2875
2890
|
role: "group",
|
|
2876
2891
|
className: n,
|
|
@@ -2880,8 +2895,8 @@ class jr extends y {
|
|
|
2880
2895
|
});
|
|
2881
2896
|
}
|
|
2882
2897
|
}
|
|
2883
|
-
const
|
|
2884
|
-
function
|
|
2898
|
+
const An = y(Hr), Ht = 48;
|
|
2899
|
+
function Wr({
|
|
2885
2900
|
className: e,
|
|
2886
2901
|
style: s,
|
|
2887
2902
|
refreshing: t,
|
|
@@ -2901,12 +2916,12 @@ function Hr({
|
|
|
2901
2916
|
l.current = null, a("Pull");
|
|
2902
2917
|
return;
|
|
2903
2918
|
}
|
|
2904
|
-
a(f.clientY - l.current >
|
|
2919
|
+
a(f.clientY - l.current > Ht ? "Release" : "Pull");
|
|
2905
2920
|
}
|
|
2906
2921
|
}, m = (f) => {
|
|
2907
2922
|
if (l.current == null) return;
|
|
2908
2923
|
const p = f.clientY - l.current, b = f.currentTarget.scrollTop === 0;
|
|
2909
|
-
l.current = null, a("Pull"), b && p >
|
|
2924
|
+
l.current = null, a("Pull"), b && p > Ht && (r == null || r());
|
|
2910
2925
|
};
|
|
2911
2926
|
return u.createElement(
|
|
2912
2927
|
"div",
|
|
@@ -2935,7 +2950,7 @@ function Hr({
|
|
|
2935
2950
|
u.createElement("div", { key: "child" }, i)
|
|
2936
2951
|
);
|
|
2937
2952
|
}
|
|
2938
|
-
class
|
|
2953
|
+
class Vr extends _ {
|
|
2939
2954
|
constructor() {
|
|
2940
2955
|
super(...arguments);
|
|
2941
2956
|
c(this, "_refreshing", !1);
|
|
@@ -2953,29 +2968,29 @@ class Wr extends y {
|
|
|
2953
2968
|
}
|
|
2954
2969
|
build() {
|
|
2955
2970
|
const { className: t, children: r, ...i } = this._props, n = ["fibo-refresh", this.getClassName(), t].filter(Boolean).join(" ");
|
|
2956
|
-
return u.createElement(
|
|
2971
|
+
return u.createElement(Wr, {
|
|
2957
2972
|
className: n,
|
|
2958
2973
|
style: this.getStyle(),
|
|
2959
2974
|
refreshing: this._refreshing,
|
|
2960
2975
|
onRefresh: this._onRefresh,
|
|
2961
|
-
child:
|
|
2976
|
+
child: x(this._child),
|
|
2962
2977
|
domProps: i
|
|
2963
2978
|
});
|
|
2964
2979
|
}
|
|
2965
2980
|
}
|
|
2966
|
-
const
|
|
2967
|
-
function
|
|
2981
|
+
const Rn = y(Vr);
|
|
2982
|
+
function Gr(e, s, t) {
|
|
2968
2983
|
const r = s + t;
|
|
2969
2984
|
if (r < 0 || r >= e.length) return null;
|
|
2970
2985
|
const i = e.slice(), [n] = i.splice(s, 1);
|
|
2971
2986
|
return i.splice(r, 0, n), i;
|
|
2972
2987
|
}
|
|
2973
|
-
function
|
|
2988
|
+
function zr(e, s, t) {
|
|
2974
2989
|
if (s === t || s < 0 || t < 0 || s >= e.length || t >= e.length) return null;
|
|
2975
2990
|
const r = e.slice(), [i] = r.splice(s, 1);
|
|
2976
2991
|
return r.splice(t, 0, i), r;
|
|
2977
2992
|
}
|
|
2978
|
-
class
|
|
2993
|
+
class Ur extends _ {
|
|
2979
2994
|
constructor() {
|
|
2980
2995
|
super(...arguments);
|
|
2981
2996
|
c(this, "_items", []);
|
|
@@ -2991,14 +3006,14 @@ class zr extends y {
|
|
|
2991
3006
|
const { className: t, children: r, ...i } = this._props, n = ["fibo-reorderable-list", this.getClassName(), t].filter(Boolean).join(" "), o = this._items.map((m) => m.id), a = this._onReorder;
|
|
2992
3007
|
let l = null;
|
|
2993
3008
|
const h = (m, f) => {
|
|
2994
|
-
const p =
|
|
3009
|
+
const p = Gr(o, m, f);
|
|
2995
3010
|
p && a && a(p);
|
|
2996
3011
|
}, d = (m, f) => {
|
|
2997
3012
|
var S;
|
|
2998
3013
|
f.preventDefault();
|
|
2999
3014
|
const p = (S = f.dataTransfer) == null ? void 0 : S.getData("text/plain"), b = l ?? (p === "" || p == null ? NaN : Number(p));
|
|
3000
3015
|
l = null;
|
|
3001
|
-
const g =
|
|
3016
|
+
const g = zr(o, b, m);
|
|
3002
3017
|
g && a && a(g);
|
|
3003
3018
|
};
|
|
3004
3019
|
return u.createElement(
|
|
@@ -3039,20 +3054,20 @@ class zr extends y {
|
|
|
3039
3054
|
);
|
|
3040
3055
|
}
|
|
3041
3056
|
}
|
|
3042
|
-
const
|
|
3043
|
-
function
|
|
3057
|
+
const Mn = y(Ur), Xr = 80;
|
|
3058
|
+
function Yr({
|
|
3044
3059
|
child: e,
|
|
3045
3060
|
onDismiss: s,
|
|
3046
3061
|
className: t,
|
|
3047
3062
|
style: r,
|
|
3048
3063
|
domProps: i
|
|
3049
3064
|
}) {
|
|
3050
|
-
const [n, o] =
|
|
3065
|
+
const [n, o] = P(0), [a, l] = P(!1), h = E(null), d = E(!1);
|
|
3051
3066
|
if (a) return null;
|
|
3052
3067
|
const m = (f) => {
|
|
3053
3068
|
if (h.current == null) return;
|
|
3054
3069
|
const p = f - h.current;
|
|
3055
|
-
if (h.current = null, Math.abs(p) >
|
|
3070
|
+
if (h.current = null, Math.abs(p) > Xr) {
|
|
3056
3071
|
d.current || (d.current = !0, s == null || s()), l(!0);
|
|
3057
3072
|
return;
|
|
3058
3073
|
}
|
|
@@ -3097,7 +3112,7 @@ function Xr({
|
|
|
3097
3112
|
)
|
|
3098
3113
|
);
|
|
3099
3114
|
}
|
|
3100
|
-
class
|
|
3115
|
+
class Kr extends _ {
|
|
3101
3116
|
constructor() {
|
|
3102
3117
|
super(...arguments);
|
|
3103
3118
|
c(this, "_child", null);
|
|
@@ -3111,8 +3126,8 @@ class Yr extends y {
|
|
|
3111
3126
|
}
|
|
3112
3127
|
build() {
|
|
3113
3128
|
const { className: t, children: r, ...i } = this._props, n = ["fibo-dismissible", this.getClassName(), t].filter(Boolean).join(" ");
|
|
3114
|
-
return u.createElement(
|
|
3115
|
-
child:
|
|
3129
|
+
return u.createElement(Yr, {
|
|
3130
|
+
child: x(this._child),
|
|
3116
3131
|
onDismiss: this._onDismiss,
|
|
3117
3132
|
className: n,
|
|
3118
3133
|
style: this.getStyle(),
|
|
@@ -3120,11 +3135,11 @@ class Yr extends y {
|
|
|
3120
3135
|
});
|
|
3121
3136
|
}
|
|
3122
3137
|
}
|
|
3123
|
-
const
|
|
3124
|
-
function
|
|
3138
|
+
const Fn = y(Kr);
|
|
3139
|
+
function qr(e) {
|
|
3125
3140
|
return `repeat(${e}, minmax(0, 1fr))`;
|
|
3126
3141
|
}
|
|
3127
|
-
class
|
|
3142
|
+
class Zr extends _ {
|
|
3128
3143
|
constructor() {
|
|
3129
3144
|
super(...arguments);
|
|
3130
3145
|
c(this, "_direction", "vertical");
|
|
@@ -3142,7 +3157,7 @@ class qr extends y {
|
|
|
3142
3157
|
return this._spacing = t, this;
|
|
3143
3158
|
}
|
|
3144
3159
|
build() {
|
|
3145
|
-
const { className: t, children: r, style: i, ...n } = this._props, o =
|
|
3160
|
+
const { className: t, children: r, style: i, ...n } = this._props, o = qr(this._columns), a = `${this._spacing}px`, l = this._direction === "horizontal" ? {
|
|
3146
3161
|
gridAutoFlow: "column",
|
|
3147
3162
|
gridTemplateRows: o,
|
|
3148
3163
|
overflowX: "auto"
|
|
@@ -3167,11 +3182,11 @@ class qr extends y {
|
|
|
3167
3182
|
);
|
|
3168
3183
|
}
|
|
3169
3184
|
}
|
|
3170
|
-
const
|
|
3171
|
-
function
|
|
3185
|
+
const In = y(Zr);
|
|
3186
|
+
function Wt(e, s) {
|
|
3172
3187
|
return typeof e == "number" && Number.isFinite(e) ? e : s;
|
|
3173
3188
|
}
|
|
3174
|
-
const
|
|
3189
|
+
const Qr = u.memo((e) => {
|
|
3175
3190
|
const {
|
|
3176
3191
|
width: s,
|
|
3177
3192
|
height: t,
|
|
@@ -3181,7 +3196,7 @@ const Zr = u.memo((e) => {
|
|
|
3181
3196
|
style: o,
|
|
3182
3197
|
dangerouslySetInnerHTML: a,
|
|
3183
3198
|
...l
|
|
3184
|
-
} = e, { key: h, ...d } = l, m =
|
|
3199
|
+
} = e, { key: h, ...d } = l, m = Wt(s, 100), f = Wt(t, 100), p = typeof r == "string" && r.trim() && !/NaN|Infinity/i.test(r) ? r : `0 0 ${m} ${f}`;
|
|
3185
3200
|
return u.createElement(
|
|
3186
3201
|
"svg",
|
|
3187
3202
|
{
|
|
@@ -3197,7 +3212,7 @@ const Zr = u.memo((e) => {
|
|
|
3197
3212
|
...Array.isArray(i) ? i : i != null ? [i] : []
|
|
3198
3213
|
);
|
|
3199
3214
|
});
|
|
3200
|
-
class
|
|
3215
|
+
class Jr extends _ {
|
|
3201
3216
|
constructor() {
|
|
3202
3217
|
super(...arguments);
|
|
3203
3218
|
c(this, "_width", 100);
|
|
@@ -3236,10 +3251,10 @@ class Qr extends y {
|
|
|
3236
3251
|
overflow: this._overflow ?? "visible",
|
|
3237
3252
|
...n
|
|
3238
3253
|
};
|
|
3239
|
-
return u.createElement(
|
|
3254
|
+
return u.createElement(Qr, o);
|
|
3240
3255
|
}
|
|
3241
3256
|
}
|
|
3242
|
-
const
|
|
3257
|
+
const ti = y(Jr), ei = /* @__PURE__ */ new Set([
|
|
3243
3258
|
"$$typeof",
|
|
3244
3259
|
"type",
|
|
3245
3260
|
"props",
|
|
@@ -3250,7 +3265,7 @@ const Jr = _(Qr), ti = /* @__PURE__ */ new Set([
|
|
|
3250
3265
|
"_self",
|
|
3251
3266
|
"_source"
|
|
3252
3267
|
]);
|
|
3253
|
-
class
|
|
3268
|
+
class Ct {
|
|
3254
3269
|
constructor() {
|
|
3255
3270
|
c(this, "_className");
|
|
3256
3271
|
c(this, "_style");
|
|
@@ -3275,8 +3290,8 @@ class bt {
|
|
|
3275
3290
|
return this._className = s, this;
|
|
3276
3291
|
}
|
|
3277
3292
|
style(s) {
|
|
3278
|
-
if (this._style =
|
|
3279
|
-
const t = Object.keys(s).map((r) => r.includes("-") ?
|
|
3293
|
+
if (this._style = si(this._style, s), s && typeof s == "object") {
|
|
3294
|
+
const t = Object.keys(s).map((r) => r.includes("-") ? _t(r) : r);
|
|
3280
3295
|
this.lastWritePresentation(t);
|
|
3281
3296
|
}
|
|
3282
3297
|
return this;
|
|
@@ -3285,9 +3300,9 @@ class bt {
|
|
|
3285
3300
|
css(s, t) {
|
|
3286
3301
|
if (s !== null && typeof s == "object")
|
|
3287
3302
|
return this.style(s);
|
|
3288
|
-
const r = String(s), i = r.includes("-") ?
|
|
3303
|
+
const r = String(s), i = r.includes("-") ? _t(r) : r, n = Jt(i) ?? [i], o = { ...this._style };
|
|
3289
3304
|
for (const a of n)
|
|
3290
|
-
o[a] =
|
|
3305
|
+
o[a] = ye(a, t);
|
|
3291
3306
|
return this._style = o, this.lastWritePresentation(n), this;
|
|
3292
3307
|
}
|
|
3293
3308
|
/** CSS `transform`/`filter` win over the SVG presentation attribute (same last-write as rotateX). */
|
|
@@ -3304,7 +3319,7 @@ class bt {
|
|
|
3304
3319
|
fill(s) {
|
|
3305
3320
|
if (typeof s == "string")
|
|
3306
3321
|
return this._fill = s, this;
|
|
3307
|
-
const t =
|
|
3322
|
+
const t = ni(s);
|
|
3308
3323
|
return t ? (this._fill = t.fill, t.def != null && this._paintDefs.push(t.def), this) : this;
|
|
3309
3324
|
}
|
|
3310
3325
|
fillColor(s) {
|
|
@@ -3425,7 +3440,7 @@ class bt {
|
|
|
3425
3440
|
return this.setCssTransform(`perspective(${s}px)`);
|
|
3426
3441
|
}
|
|
3427
3442
|
filter(s) {
|
|
3428
|
-
return this._filter = typeof s == "string" ?
|
|
3443
|
+
return this._filter = typeof s == "string" ? _e(s) : s, this.clearStyleProp("filter");
|
|
3429
3444
|
}
|
|
3430
3445
|
/** SVG 1.1 transform list. Clears a prior CSS 3D `style.transform`. */
|
|
3431
3446
|
setSvgTransform(s) {
|
|
@@ -3449,10 +3464,10 @@ class bt {
|
|
|
3449
3464
|
return this.applyDropShadow(s, t, r, i);
|
|
3450
3465
|
}
|
|
3451
3466
|
applyDropShadow(s, t, r, i) {
|
|
3452
|
-
return
|
|
3467
|
+
return ri(s, t, r, i) ? (this._filter = void 0, this.clearStyleProp("filter")) : (this._filter = ii(s, t ?? 0, r ?? 0, i), this.clearStyleProp("filter"));
|
|
3453
3468
|
}
|
|
3454
3469
|
glow(s, t = 10) {
|
|
3455
|
-
return this._filter = `drop-shadow(0 0 ${t}px ${
|
|
3470
|
+
return this._filter = `drop-shadow(0 0 ${t}px ${ge(s)})`, this.clearStyleProp("filter");
|
|
3456
3471
|
}
|
|
3457
3472
|
brightness(s) {
|
|
3458
3473
|
return this._filter = `brightness(${s})`, this.clearStyleProp("filter");
|
|
@@ -3526,18 +3541,18 @@ class bt {
|
|
|
3526
3541
|
throw new Error("build() must be implemented by subclass");
|
|
3527
3542
|
}
|
|
3528
3543
|
}
|
|
3529
|
-
function
|
|
3544
|
+
function si(e, s) {
|
|
3530
3545
|
const t = { ...e };
|
|
3531
3546
|
if (!s || typeof s != "object") return t;
|
|
3532
3547
|
for (const [r, i] of Object.entries(s)) {
|
|
3533
3548
|
if (i == null) continue;
|
|
3534
|
-
const n = r.includes("-") ?
|
|
3549
|
+
const n = r.includes("-") ? _t(r) : r, o = Jt(n);
|
|
3535
3550
|
if (o) {
|
|
3536
|
-
const l =
|
|
3551
|
+
const l = te(o[0], i);
|
|
3537
3552
|
for (const h of o) t[h] = l;
|
|
3538
3553
|
continue;
|
|
3539
3554
|
}
|
|
3540
|
-
const a =
|
|
3555
|
+
const a = ye(n, i);
|
|
3541
3556
|
if (a === "none" || n === "filter" || n === "backdropFilter") {
|
|
3542
3557
|
t[n] = a;
|
|
3543
3558
|
continue;
|
|
@@ -3546,26 +3561,26 @@ function ei(e, s) {
|
|
|
3546
3561
|
}
|
|
3547
3562
|
return t;
|
|
3548
3563
|
}
|
|
3549
|
-
function
|
|
3564
|
+
function ge(e) {
|
|
3550
3565
|
return typeof e != "string" ? "" : e.replace(/\binset\b/gi, " ").replace(/\s+/g, " ").trim();
|
|
3551
3566
|
}
|
|
3552
|
-
function
|
|
3567
|
+
function ri(e, s, t, r) {
|
|
3553
3568
|
return s !== void 0 || t !== void 0 || r !== void 0 ? !1 : e === 0 || e === "0" || e === "none" || e == null || e === !1;
|
|
3554
3569
|
}
|
|
3555
|
-
function
|
|
3556
|
-
const t =
|
|
3557
|
-
return e === "filter" || e === "backdropFilter" ?
|
|
3570
|
+
function ye(e, s) {
|
|
3571
|
+
const t = te(e, s);
|
|
3572
|
+
return e === "filter" || e === "backdropFilter" ? _e(t) : t;
|
|
3558
3573
|
}
|
|
3559
|
-
function
|
|
3574
|
+
function _e(e) {
|
|
3560
3575
|
return /drop-shadow\s*\(/i.test(e) ? e.replace(/\binset\b/gi, (s, t, r) => {
|
|
3561
3576
|
const i = r.slice(0, t);
|
|
3562
3577
|
return /url\s*\([^)]*$/i.test(i) ? s : " ";
|
|
3563
3578
|
}).replace(/[ \t]{2,}/g, " ").replace(/\(\s+/g, "(").replace(/\s+\)/g, ")").trim() : e;
|
|
3564
3579
|
}
|
|
3565
|
-
function
|
|
3566
|
-
return `drop-shadow(${e}px ${s}px ${t}px ${
|
|
3580
|
+
function ii(e, s, t, r) {
|
|
3581
|
+
return `drop-shadow(${e}px ${s}px ${t}px ${ge(r)})`;
|
|
3567
3582
|
}
|
|
3568
|
-
function
|
|
3583
|
+
function ni(e) {
|
|
3569
3584
|
var i;
|
|
3570
3585
|
if (!e || typeof e != "object") return;
|
|
3571
3586
|
const s = e;
|
|
@@ -3575,14 +3590,14 @@ function ii(e) {
|
|
|
3575
3590
|
typeof n == "string" && n && (t = n);
|
|
3576
3591
|
}
|
|
3577
3592
|
if (!t && typeof s.id == "string" && s.id && (t = s.id), !t && typeof ((i = s.props) == null ? void 0 : i.id) == "string" && s.props.id && (t = s.props.id), !t) return;
|
|
3578
|
-
let r =
|
|
3579
|
-
return r == null && typeof s.build == "function" && (r =
|
|
3593
|
+
let r = Vt(s.element);
|
|
3594
|
+
return r == null && typeof s.build == "function" && (r = Vt(s.build())), { fill: `url(#${t})`, def: r };
|
|
3580
3595
|
}
|
|
3581
|
-
function
|
|
3596
|
+
function Vt(e) {
|
|
3582
3597
|
if (!(e == null || typeof e == "function" || typeof e == "boolean") && u.isValidElement(e))
|
|
3583
3598
|
return e;
|
|
3584
3599
|
}
|
|
3585
|
-
function
|
|
3600
|
+
function Et(e) {
|
|
3586
3601
|
return () => {
|
|
3587
3602
|
const s = new e(), t = () => s.build(), r = e.name.replace(/Builder$/, "") || "Shape", i = function() {
|
|
3588
3603
|
return t();
|
|
@@ -3601,7 +3616,7 @@ function St(e) {
|
|
|
3601
3616
|
}), s.props = n.props ?? {}, s.ref = n.ref ?? null, s._store = { validated: 1 };
|
|
3602
3617
|
const o = new Proxy(s, {
|
|
3603
3618
|
get(a, l, h) {
|
|
3604
|
-
if (typeof l != "string" || l === "constructor" || l === "then" ||
|
|
3619
|
+
if (typeof l != "string" || l === "constructor" || l === "then" || ei.has(l))
|
|
3605
3620
|
return Reflect.get(a, l, h);
|
|
3606
3621
|
if (l in a) {
|
|
3607
3622
|
const d = Reflect.get(a, l, h);
|
|
@@ -3616,10 +3631,10 @@ function St(e) {
|
|
|
3616
3631
|
return o;
|
|
3617
3632
|
};
|
|
3618
3633
|
}
|
|
3619
|
-
function
|
|
3634
|
+
function N(e) {
|
|
3620
3635
|
return typeof e == "number" && Number.isFinite(e);
|
|
3621
3636
|
}
|
|
3622
|
-
class
|
|
3637
|
+
class ai extends Ct {
|
|
3623
3638
|
constructor() {
|
|
3624
3639
|
super(...arguments);
|
|
3625
3640
|
c(this, "_cx", 0);
|
|
@@ -3627,54 +3642,54 @@ class ni extends bt {
|
|
|
3627
3642
|
c(this, "_r", 10);
|
|
3628
3643
|
}
|
|
3629
3644
|
center(t, r) {
|
|
3630
|
-
return !
|
|
3645
|
+
return !N(t) || !N(r) ? this : (this._cx = t, this._cy = r, this);
|
|
3631
3646
|
}
|
|
3632
3647
|
cx(t) {
|
|
3633
|
-
return
|
|
3648
|
+
return N(t) ? (this._cx = t, this) : this;
|
|
3634
3649
|
}
|
|
3635
3650
|
cy(t) {
|
|
3636
|
-
return
|
|
3651
|
+
return N(t) ? (this._cy = t, this) : this;
|
|
3637
3652
|
}
|
|
3638
3653
|
left(t) {
|
|
3639
|
-
return
|
|
3654
|
+
return N(t) ? (this._cx = t + this._r, this) : this;
|
|
3640
3655
|
}
|
|
3641
3656
|
top(t) {
|
|
3642
|
-
return
|
|
3657
|
+
return N(t) ? (this._cy = t + this._r, this) : this;
|
|
3643
3658
|
}
|
|
3644
3659
|
right(t) {
|
|
3645
|
-
return
|
|
3660
|
+
return N(t) ? (this._cx = t - this._r, this) : this;
|
|
3646
3661
|
}
|
|
3647
3662
|
bottom(t) {
|
|
3648
|
-
return
|
|
3663
|
+
return N(t) ? (this._cy = t - this._r, this) : this;
|
|
3649
3664
|
}
|
|
3650
3665
|
centerX(t) {
|
|
3651
|
-
return
|
|
3666
|
+
return N(t) ? (this._cx = t, this) : this;
|
|
3652
3667
|
}
|
|
3653
3668
|
centerY(t) {
|
|
3654
|
-
return
|
|
3669
|
+
return N(t) ? (this._cy = t, this) : this;
|
|
3655
3670
|
}
|
|
3656
3671
|
position(t, r) {
|
|
3657
|
-
return !
|
|
3672
|
+
return !N(t) || !N(r) ? this : (this._cx = t + this._r, this._cy = r + this._r, this);
|
|
3658
3673
|
}
|
|
3659
3674
|
size(t, r) {
|
|
3660
|
-
if (!
|
|
3675
|
+
if (!N(t) || !N(r)) return this;
|
|
3661
3676
|
const i = (t + r) / 2;
|
|
3662
3677
|
return this._r = i / 2, this;
|
|
3663
3678
|
}
|
|
3664
3679
|
radius(t) {
|
|
3665
|
-
return
|
|
3680
|
+
return N(t) ? (this._r = t, this) : this;
|
|
3666
3681
|
}
|
|
3667
3682
|
r(t) {
|
|
3668
3683
|
return this.radius(t);
|
|
3669
3684
|
}
|
|
3670
3685
|
diameter(t) {
|
|
3671
|
-
return
|
|
3686
|
+
return N(t) ? (this._r = t / 2, this) : this;
|
|
3672
3687
|
}
|
|
3673
3688
|
circumference(t) {
|
|
3674
|
-
return
|
|
3689
|
+
return N(t) ? (this._r = t / (2 * Math.PI), this) : this;
|
|
3675
3690
|
}
|
|
3676
3691
|
area(t) {
|
|
3677
|
-
return !
|
|
3692
|
+
return !N(t) || t < 0 ? this : (this._r = Math.sqrt(t / Math.PI), this);
|
|
3678
3693
|
}
|
|
3679
3694
|
rotateSelf(t) {
|
|
3680
3695
|
return this.rotate(t, this._cx, this._cy);
|
|
@@ -3692,11 +3707,11 @@ class ni extends bt {
|
|
|
3692
3707
|
return this.wrapShape(t, "circle-group");
|
|
3693
3708
|
}
|
|
3694
3709
|
}
|
|
3695
|
-
const
|
|
3710
|
+
const M = Et(ai);
|
|
3696
3711
|
function k(e) {
|
|
3697
3712
|
return typeof e == "number" && Number.isFinite(e);
|
|
3698
3713
|
}
|
|
3699
|
-
class
|
|
3714
|
+
class oi extends Ct {
|
|
3700
3715
|
constructor() {
|
|
3701
3716
|
super(...arguments);
|
|
3702
3717
|
c(this, "_x", 0);
|
|
@@ -3814,11 +3829,11 @@ class ai extends bt {
|
|
|
3814
3829
|
return this.wrapShape(i, "rect-group");
|
|
3815
3830
|
}
|
|
3816
3831
|
}
|
|
3817
|
-
const
|
|
3818
|
-
function
|
|
3832
|
+
const Gt = Et(oi);
|
|
3833
|
+
function zt(e) {
|
|
3819
3834
|
return typeof e == "string" ? e : "";
|
|
3820
3835
|
}
|
|
3821
|
-
class
|
|
3836
|
+
class li extends Ct {
|
|
3822
3837
|
constructor() {
|
|
3823
3838
|
super(...arguments);
|
|
3824
3839
|
c(this, "_d", "");
|
|
@@ -3826,7 +3841,7 @@ class oi extends bt {
|
|
|
3826
3841
|
c(this, "_pullY");
|
|
3827
3842
|
}
|
|
3828
3843
|
d(t) {
|
|
3829
|
-
return this._d =
|
|
3844
|
+
return this._d = zt(t), this;
|
|
3830
3845
|
}
|
|
3831
3846
|
/** Append a command; skip if any coordinate is non-finite (invalid SVG). */
|
|
3832
3847
|
push(t, r) {
|
|
@@ -3884,28 +3899,28 @@ class oi extends bt {
|
|
|
3884
3899
|
return this.close();
|
|
3885
3900
|
}
|
|
3886
3901
|
build() {
|
|
3887
|
-
const t =
|
|
3902
|
+
const t = zt(this._d).trim() || void 0, r = u.createElement("path", {
|
|
3888
3903
|
d: t,
|
|
3889
3904
|
...this.shapePaintProps()
|
|
3890
3905
|
});
|
|
3891
3906
|
return this.wrapShape(r, "path-group");
|
|
3892
3907
|
}
|
|
3893
3908
|
}
|
|
3894
|
-
const
|
|
3895
|
-
let
|
|
3896
|
-
function
|
|
3897
|
-
return
|
|
3909
|
+
const A = Et(li);
|
|
3910
|
+
let kt = 0;
|
|
3911
|
+
function ci(e) {
|
|
3912
|
+
return kt += 1, `${e}-${kt}`;
|
|
3898
3913
|
}
|
|
3899
|
-
const
|
|
3900
|
-
|
|
3901
|
-
return (typeof globalThis.window > "u" || globalThis.window == null) && (
|
|
3914
|
+
const ui = ee.prototype.reset;
|
|
3915
|
+
ee.prototype.reset = function() {
|
|
3916
|
+
return (typeof globalThis.window > "u" || globalThis.window == null) && (kt = 0), ui.call(this);
|
|
3902
3917
|
};
|
|
3903
|
-
class
|
|
3918
|
+
class hi extends _ {
|
|
3904
3919
|
constructor() {
|
|
3905
3920
|
super(...arguments);
|
|
3906
3921
|
c(this, "_id");
|
|
3907
3922
|
/** Per-instance auto id — content hashes collided for identical paints (invalid SVG). */
|
|
3908
|
-
c(this, "_uid",
|
|
3923
|
+
c(this, "_uid", ci("gradient"));
|
|
3909
3924
|
c(this, "_colors", ["#000", "#fff"]);
|
|
3910
3925
|
c(this, "_stops");
|
|
3911
3926
|
c(this, "_angle", 0);
|
|
@@ -3969,27 +3984,27 @@ class ui extends y {
|
|
|
3969
3984
|
return u.createElement("defs", { key: i }, n);
|
|
3970
3985
|
}
|
|
3971
3986
|
}
|
|
3972
|
-
const
|
|
3973
|
-
function
|
|
3987
|
+
const Dn = y(hi), Ut = ["12% 18%", "88% 16%", "78% 82%", "18% 78%", "50% 46%", "36% 62%"];
|
|
3988
|
+
function be(e) {
|
|
3974
3989
|
const s = Array.isArray(e) ? e.filter((r) => typeof r == "string" && r.length > 0) : [];
|
|
3975
3990
|
if (s.length >= 2) return s;
|
|
3976
3991
|
const t = s[0];
|
|
3977
3992
|
return [t ?? "#000000", t ?? "#ffffff"];
|
|
3978
3993
|
}
|
|
3979
|
-
function
|
|
3980
|
-
const s =
|
|
3981
|
-
return { image: s.map((r, i) => `radial-gradient(circle at ${
|
|
3994
|
+
function di(e) {
|
|
3995
|
+
const s = be(e);
|
|
3996
|
+
return { image: s.map((r, i) => `radial-gradient(circle at ${Ut[i % Ut.length]}, ${r} 0%, transparent 62%)`).join(", "), color: s[s.length - 1] };
|
|
3982
3997
|
}
|
|
3983
|
-
class
|
|
3998
|
+
class fi extends _ {
|
|
3984
3999
|
constructor() {
|
|
3985
4000
|
super(...arguments);
|
|
3986
4001
|
c(this, "_colors", ["#ff6a2a", "#0b6e99"]);
|
|
3987
4002
|
}
|
|
3988
4003
|
colors(t) {
|
|
3989
|
-
return this._colors =
|
|
4004
|
+
return this._colors = be(t), this;
|
|
3990
4005
|
}
|
|
3991
4006
|
build() {
|
|
3992
|
-
const t =
|
|
4007
|
+
const t = di(this._colors), { className: r, style: i, dangerouslySetInnerHTML: n, ...o } = this._props, a = i && typeof i == "object" && !Array.isArray(i) ? i : {}, l = {
|
|
3993
4008
|
...this.getStyle(),
|
|
3994
4009
|
backgroundColor: t.color,
|
|
3995
4010
|
backgroundImage: t.image,
|
|
@@ -4006,8 +4021,8 @@ class di extends y {
|
|
|
4006
4021
|
});
|
|
4007
4022
|
}
|
|
4008
4023
|
}
|
|
4009
|
-
const
|
|
4010
|
-
class
|
|
4024
|
+
const On = y(fi);
|
|
4025
|
+
class mi extends _ {
|
|
4011
4026
|
constructor() {
|
|
4012
4027
|
super(...arguments);
|
|
4013
4028
|
c(this, "_iconSize", 100);
|
|
@@ -4017,41 +4032,41 @@ class fi extends y {
|
|
|
4017
4032
|
}
|
|
4018
4033
|
build() {
|
|
4019
4034
|
const t = this._iconSize;
|
|
4020
|
-
return
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4035
|
+
return ti().width(t).height(t).viewBox("0 0 100 100").children([
|
|
4036
|
+
M().center(50, 92).radius(35).fillHex("#000000").opacity(0.15).blur(4).scale(1, 0.2).build(),
|
|
4037
|
+
A().startAt(15, 80).pull(15, 92).to(30, 92).to(70, 92).pull(85, 92).to(85, 80).to(85, 75).to(15, 75).done().fillHex("#E6A15C").strokeHex("#CC8E51").strokeWidth(0.5).shadow(0, 2, 3, "rgba(0,0,0,0.1)").build(),
|
|
4038
|
+
A().startAt(25, 88).pull(50, 90).to(75, 88).strokeHex("#F5CBA7").strokeWidth(2).opacity(0.4).fill("none").build(),
|
|
4039
|
+
Gt().position(12, 65).size(76, 12).cornerRadius(4).fillHex("#5D4037").strokeHex("#3E2723").strokeWidth(0.5).children([
|
|
4040
|
+
A().startAt(20, 65).to(20, 77).strokeHex("#3E2723").strokeWidth(1).opacity(0.3).build(),
|
|
4041
|
+
A().startAt(35, 65).to(35, 77).strokeHex("#3E2723").strokeWidth(1).opacity(0.3).build(),
|
|
4042
|
+
A().startAt(50, 65).to(50, 77).strokeHex("#3E2723").strokeWidth(1).opacity(0.3).build(),
|
|
4043
|
+
A().startAt(65, 65).to(65, 77).strokeHex("#3E2723").strokeWidth(1).opacity(0.3).build()
|
|
4029
4044
|
]).shadow(0, 2, 2, "rgba(0,0,0,0.2)").build(),
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4045
|
+
A().startAt(12, 66).to(88, 66).to(88, 70).pull(82, 70).to(78, 74).pull(74, 78).to(70, 72).pull(65, 70).to(60, 75).pull(55, 80).to(50, 72).pull(45, 70).to(40, 76).pull(35, 82).to(30, 72).pull(25, 70).to(20, 74).to(12, 70).done().fillHex("#FFC107").strokeHex("#FFA000").strokeWidth(0.5).opacity(0.95).shadow(0, 1, 1, "rgba(0,0,0,0.1)").build(),
|
|
4046
|
+
Gt().position(14, 58).size(72, 8).cornerRadius(3).fillHex("#F44336").strokeHex("#D32F2F").strokeWidth(0.5).children([
|
|
4047
|
+
A().startAt(18, 60).to(84, 60).strokeHex("#FFCDD2").strokeWidth(2).opacity(0.6).build()
|
|
4033
4048
|
]).build(),
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4049
|
+
A().startAt(10, 52).pull(17.5, 58).to(25, 52).pull(32.5, 58).to(40, 52).pull(47.5, 58).to(55, 52).pull(62.5, 58).to(70, 52).pull(77.5, 58).to(85, 52).pull(92, 55).to(90, 58).to(12, 58).pull(8, 55).to(10, 52).done().fillHex("#7CB342").strokeHex("#558B2F").strokeWidth(0.5).shadow(0, 1, 2, "rgba(0,0,0,0.15)").build(),
|
|
4050
|
+
A().startAt(10, 50).pull(10, 20).to(50, 20).pull(90, 20).to(90, 50).to(90, 52).pull(90, 55).to(85, 56).to(15, 56).pull(10, 55).to(10, 52).done().fillHex("#E6A15C").strokeHex("#CC8E51").strokeWidth(0.5).children([
|
|
4051
|
+
M().center(30, 35).radius(10).fillHex("#FFFFFF").opacity(0.15).blur(5).scale(1.5, 0.8).build()
|
|
4037
4052
|
]).shadow(0, -2, 4, "rgba(0,0,0,0.05) inset").build(),
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4053
|
+
M().center(30, 32).radius(1.5).fillHex("#FFE0B2").build(),
|
|
4054
|
+
M().center(45, 28).radius(1.5).fillHex("#FFE0B2").build(),
|
|
4055
|
+
M().center(60, 30).radius(1.5).fillHex("#FFE0B2").build(),
|
|
4056
|
+
M().center(75, 35).radius(1.5).fillHex("#FFE0B2").build(),
|
|
4057
|
+
M().center(40, 42).radius(1.5).fillHex("#FFE0B2").build(),
|
|
4058
|
+
M().center(55, 40).radius(1.5).fillHex("#FFE0B2").build(),
|
|
4059
|
+
M().center(20, 40).radius(1.5).fillHex("#FFE0B2").build(),
|
|
4060
|
+
A().startAt(68, 24).pull(70, 24).to(70, 26).pull(70, 28).to(68, 28).pull(66, 28).to(66, 26).pull(66, 24).to(68, 24).done().fillHex("#FFE0B2").rotate(45, 68, 26).build(),
|
|
4061
|
+
A().startAt(52, 22).pull(54, 22).to(54, 24).pull(54, 26).to(52, 26).pull(50, 26).to(50, 24).pull(50, 22).to(52, 22).done().fillHex("#FFE0B2").rotate(-30, 52, 24).build()
|
|
4047
4062
|
]).build();
|
|
4048
4063
|
}
|
|
4049
4064
|
}
|
|
4050
|
-
const
|
|
4051
|
-
function
|
|
4052
|
-
return e == null || e === !1 ? null :
|
|
4065
|
+
const jn = y(mi);
|
|
4066
|
+
function pi(e) {
|
|
4067
|
+
return e == null || e === !1 ? null : x(e);
|
|
4053
4068
|
}
|
|
4054
|
-
class
|
|
4069
|
+
class gi extends _ {
|
|
4055
4070
|
constructor() {
|
|
4056
4071
|
super(...arguments);
|
|
4057
4072
|
c(this, "_open", !1);
|
|
@@ -4111,19 +4126,156 @@ class pi extends y {
|
|
|
4111
4126
|
}
|
|
4112
4127
|
},
|
|
4113
4128
|
this._title ? u.createElement("h2", { key: "title" }, this._title) : null,
|
|
4114
|
-
|
|
4129
|
+
pi(this._child)
|
|
4115
4130
|
)
|
|
4116
4131
|
);
|
|
4117
4132
|
}
|
|
4118
4133
|
}
|
|
4119
|
-
const
|
|
4134
|
+
const Hn = y(gi), Xt = {
|
|
4120
4135
|
medium: "50vh",
|
|
4121
|
-
large: "
|
|
4122
|
-
};
|
|
4123
|
-
function
|
|
4124
|
-
return e == null || e === !1 ? null :
|
|
4136
|
+
large: "92vh"
|
|
4137
|
+
}, yi = 96;
|
|
4138
|
+
function _i(e) {
|
|
4139
|
+
return e == null || e === !1 ? null : x(e);
|
|
4140
|
+
}
|
|
4141
|
+
function mt(e, s, t) {
|
|
4142
|
+
const r = e.indexOf(s);
|
|
4143
|
+
if (r < 0) return e[0] ?? null;
|
|
4144
|
+
const i = r + t;
|
|
4145
|
+
return i < 0 || i >= e.length ? null : e[i];
|
|
4146
|
+
}
|
|
4147
|
+
function bi({
|
|
4148
|
+
title: e,
|
|
4149
|
+
child: s,
|
|
4150
|
+
onClose: t,
|
|
4151
|
+
detents: r,
|
|
4152
|
+
detent: i,
|
|
4153
|
+
className: n,
|
|
4154
|
+
style: o,
|
|
4155
|
+
rest: a
|
|
4156
|
+
}) {
|
|
4157
|
+
const l = r.includes(i) ? i : r[0] ?? "medium", [h, d] = P(l), [m, f] = P(0), [p, b] = P(!1), g = E(0), S = E(h), v = E(null);
|
|
4158
|
+
V(() => {
|
|
4159
|
+
d(l), f(0);
|
|
4160
|
+
}, [l]);
|
|
4161
|
+
const $ = (p && m <= -56 ? mt(r, S.current, 1) : null) ?? h, T = Xt[$] ?? Xt.medium, C = (w) => {
|
|
4162
|
+
const X = w - g.current;
|
|
4163
|
+
if (b(!1), f(0), v.current = null, X <= -56) {
|
|
4164
|
+
const F = mt(r, S.current, 1);
|
|
4165
|
+
if (F) {
|
|
4166
|
+
d(F);
|
|
4167
|
+
return;
|
|
4168
|
+
}
|
|
4169
|
+
}
|
|
4170
|
+
if (X >= yi) {
|
|
4171
|
+
const F = mt(r, S.current, -1);
|
|
4172
|
+
if (F) {
|
|
4173
|
+
d(F);
|
|
4174
|
+
return;
|
|
4175
|
+
}
|
|
4176
|
+
t == null || t();
|
|
4177
|
+
}
|
|
4178
|
+
}, O = (w) => {
|
|
4179
|
+
w.button !== 0 && w.pointerType === "mouse" || (v.current = w.pointerId, g.current = w.clientY, S.current = h, b(!0), w.currentTarget.setPointerCapture(w.pointerId));
|
|
4180
|
+
}, ct = (w) => {
|
|
4181
|
+
v.current === w.pointerId && f(w.clientY - g.current);
|
|
4182
|
+
}, U = (w) => {
|
|
4183
|
+
if (v.current === w.pointerId) {
|
|
4184
|
+
try {
|
|
4185
|
+
w.currentTarget.releasePointerCapture(w.pointerId);
|
|
4186
|
+
} catch {
|
|
4187
|
+
}
|
|
4188
|
+
C(w.clientY);
|
|
4189
|
+
}
|
|
4190
|
+
};
|
|
4191
|
+
return u.createElement(
|
|
4192
|
+
"div",
|
|
4193
|
+
{ className: "fibo-bottom-sheet-root", style: { position: "fixed", inset: 0, zIndex: 80 } },
|
|
4194
|
+
u.createElement("div", {
|
|
4195
|
+
key: "backdrop",
|
|
4196
|
+
className: "fibo-bottom-sheet-backdrop",
|
|
4197
|
+
style: { position: "fixed", inset: 0, background: "rgba(0,0,0,0.45)" },
|
|
4198
|
+
onClick: () => t == null ? void 0 : t()
|
|
4199
|
+
}),
|
|
4200
|
+
u.createElement(
|
|
4201
|
+
"div",
|
|
4202
|
+
{
|
|
4203
|
+
...a,
|
|
4204
|
+
key: "panel",
|
|
4205
|
+
role: "dialog",
|
|
4206
|
+
"aria-modal": !0,
|
|
4207
|
+
className: n,
|
|
4208
|
+
style: {
|
|
4209
|
+
...o,
|
|
4210
|
+
position: "fixed",
|
|
4211
|
+
left: 0,
|
|
4212
|
+
right: 0,
|
|
4213
|
+
bottom: 0,
|
|
4214
|
+
maxHeight: T,
|
|
4215
|
+
height: "auto",
|
|
4216
|
+
display: "flex",
|
|
4217
|
+
flexDirection: "column",
|
|
4218
|
+
overflow: "hidden",
|
|
4219
|
+
background: o.background ?? "var(--fibo-surface, #fff)",
|
|
4220
|
+
transform: m ? `translateY(${Math.max(0, m)}px)` : void 0,
|
|
4221
|
+
transition: p ? "none" : "max-height 220ms ease, transform 220ms ease",
|
|
4222
|
+
touchAction: "pan-y"
|
|
4223
|
+
}
|
|
4224
|
+
},
|
|
4225
|
+
u.createElement(
|
|
4226
|
+
"div",
|
|
4227
|
+
{
|
|
4228
|
+
key: "handle",
|
|
4229
|
+
className: "fibo-bottom-sheet-handle",
|
|
4230
|
+
role: "separator",
|
|
4231
|
+
"aria-orientation": "horizontal",
|
|
4232
|
+
"aria-label": "Arrastar folha",
|
|
4233
|
+
onPointerDown: O,
|
|
4234
|
+
onPointerMove: ct,
|
|
4235
|
+
onPointerUp: U,
|
|
4236
|
+
onPointerCancel: U,
|
|
4237
|
+
style: {
|
|
4238
|
+
flex: "none",
|
|
4239
|
+
display: "flex",
|
|
4240
|
+
justifyContent: "center",
|
|
4241
|
+
alignItems: "center",
|
|
4242
|
+
padding: "10px 0 6px",
|
|
4243
|
+
cursor: "grab",
|
|
4244
|
+
touchAction: "none",
|
|
4245
|
+
userSelect: "none"
|
|
4246
|
+
}
|
|
4247
|
+
},
|
|
4248
|
+
u.createElement("div", {
|
|
4249
|
+
style: {
|
|
4250
|
+
width: 40,
|
|
4251
|
+
height: 5,
|
|
4252
|
+
borderRadius: 999,
|
|
4253
|
+
background: "rgba(128,128,128,0.45)"
|
|
4254
|
+
}
|
|
4255
|
+
})
|
|
4256
|
+
),
|
|
4257
|
+
e ? u.createElement("h2", { key: "title", style: { margin: "0 16px 8px", flex: "none" } }, e) : null,
|
|
4258
|
+
u.createElement(
|
|
4259
|
+
"div",
|
|
4260
|
+
{
|
|
4261
|
+
key: "body",
|
|
4262
|
+
className: "fibo-bottom-sheet-body",
|
|
4263
|
+
style: {
|
|
4264
|
+
flex: "1 1 auto",
|
|
4265
|
+
minHeight: 0,
|
|
4266
|
+
overflowY: "auto",
|
|
4267
|
+
overflowX: "hidden",
|
|
4268
|
+
WebkitOverflowScrolling: "touch",
|
|
4269
|
+
overscrollBehavior: "contain",
|
|
4270
|
+
touchAction: "pan-y"
|
|
4271
|
+
}
|
|
4272
|
+
},
|
|
4273
|
+
_i(s)
|
|
4274
|
+
)
|
|
4275
|
+
)
|
|
4276
|
+
);
|
|
4125
4277
|
}
|
|
4126
|
-
class
|
|
4278
|
+
class Si extends _ {
|
|
4127
4279
|
constructor() {
|
|
4128
4280
|
super(...arguments);
|
|
4129
4281
|
c(this, "_open", !1);
|
|
@@ -4153,46 +4305,24 @@ class _i extends y {
|
|
|
4153
4305
|
}
|
|
4154
4306
|
build() {
|
|
4155
4307
|
if (!this._open) return null;
|
|
4156
|
-
const
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
"
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
"div",
|
|
4171
|
-
{
|
|
4172
|
-
...a,
|
|
4173
|
-
key: "panel",
|
|
4174
|
-
role: "dialog",
|
|
4175
|
-
"aria-modal": !0,
|
|
4176
|
-
className: l,
|
|
4177
|
-
style: {
|
|
4178
|
-
...this.getStyle(),
|
|
4179
|
-
...n,
|
|
4180
|
-
position: "fixed",
|
|
4181
|
-
left: 0,
|
|
4182
|
-
right: 0,
|
|
4183
|
-
bottom: 0,
|
|
4184
|
-
maxHeight: r,
|
|
4185
|
-
background: "var(--fibo-surface, #fff)"
|
|
4186
|
-
}
|
|
4187
|
-
},
|
|
4188
|
-
this._title ? u.createElement("h2", { key: "title" }, this._title) : null,
|
|
4189
|
-
gi(this._child)
|
|
4190
|
-
)
|
|
4191
|
-
);
|
|
4308
|
+
const { className: t, style: r, children: i, ...n } = this._props, o = ["fibo-bottom-sheet", this.getClassName(), t].filter(Boolean).join(" ");
|
|
4309
|
+
return u.createElement(bi, {
|
|
4310
|
+
title: this._title,
|
|
4311
|
+
child: this._child,
|
|
4312
|
+
onClose: this._onClose,
|
|
4313
|
+
detents: this._detents.length ? this._detents : ["medium", "large"],
|
|
4314
|
+
detent: this._detent,
|
|
4315
|
+
className: o,
|
|
4316
|
+
style: {
|
|
4317
|
+
...this.getStyle(),
|
|
4318
|
+
...r
|
|
4319
|
+
},
|
|
4320
|
+
rest: n
|
|
4321
|
+
});
|
|
4192
4322
|
}
|
|
4193
4323
|
}
|
|
4194
|
-
const
|
|
4195
|
-
class
|
|
4324
|
+
const Wn = y(Si);
|
|
4325
|
+
class vi extends _ {
|
|
4196
4326
|
constructor() {
|
|
4197
4327
|
super(...arguments);
|
|
4198
4328
|
c(this, "_open", !1);
|
|
@@ -4271,11 +4401,11 @@ class yi extends y {
|
|
|
4271
4401
|
);
|
|
4272
4402
|
}
|
|
4273
4403
|
}
|
|
4274
|
-
const
|
|
4275
|
-
function
|
|
4276
|
-
return e == null || e === !1 ? null :
|
|
4404
|
+
const Vn = y(vi);
|
|
4405
|
+
function wi(e) {
|
|
4406
|
+
return e == null || e === !1 ? null : x(e);
|
|
4277
4407
|
}
|
|
4278
|
-
class
|
|
4408
|
+
class ki extends _ {
|
|
4279
4409
|
constructor() {
|
|
4280
4410
|
super(...arguments);
|
|
4281
4411
|
c(this, "_open", !1);
|
|
@@ -4311,13 +4441,13 @@ class Si extends y {
|
|
|
4311
4441
|
return u.createElement(
|
|
4312
4442
|
u.Fragment,
|
|
4313
4443
|
null,
|
|
4314
|
-
|
|
4444
|
+
wi(this._anchor),
|
|
4315
4445
|
a
|
|
4316
4446
|
);
|
|
4317
4447
|
}
|
|
4318
4448
|
}
|
|
4319
|
-
const
|
|
4320
|
-
class
|
|
4449
|
+
const Gn = y(ki);
|
|
4450
|
+
class Ci extends _ {
|
|
4321
4451
|
constructor() {
|
|
4322
4452
|
super(...arguments);
|
|
4323
4453
|
c(this, "_open", !1);
|
|
@@ -4381,11 +4511,11 @@ class vi extends y {
|
|
|
4381
4511
|
);
|
|
4382
4512
|
}
|
|
4383
4513
|
}
|
|
4384
|
-
const
|
|
4385
|
-
function
|
|
4386
|
-
return e == null || e === !1 ? null :
|
|
4514
|
+
const zn = y(Ci);
|
|
4515
|
+
function Ei(e) {
|
|
4516
|
+
return e == null || e === !1 ? null : x(e);
|
|
4387
4517
|
}
|
|
4388
|
-
class
|
|
4518
|
+
class xi extends _ {
|
|
4389
4519
|
constructor() {
|
|
4390
4520
|
super(...arguments);
|
|
4391
4521
|
c(this, "_open", !1);
|
|
@@ -4437,15 +4567,15 @@ class Ci extends y {
|
|
|
4437
4567
|
},
|
|
4438
4568
|
"×"
|
|
4439
4569
|
) : null,
|
|
4440
|
-
|
|
4570
|
+
Ei(this._child)
|
|
4441
4571
|
);
|
|
4442
4572
|
}
|
|
4443
4573
|
}
|
|
4444
|
-
const
|
|
4445
|
-
function
|
|
4446
|
-
return e == null || e === !1 ? null :
|
|
4574
|
+
const Un = y(xi);
|
|
4575
|
+
function Ni(e) {
|
|
4576
|
+
return e == null || e === !1 ? null : x(e);
|
|
4447
4577
|
}
|
|
4448
|
-
class
|
|
4578
|
+
class Ti extends _ {
|
|
4449
4579
|
constructor(t = null) {
|
|
4450
4580
|
super();
|
|
4451
4581
|
c(this, "_href");
|
|
@@ -4463,7 +4593,7 @@ class Ei extends y {
|
|
|
4463
4593
|
return this._rel = t, this;
|
|
4464
4594
|
}
|
|
4465
4595
|
build() {
|
|
4466
|
-
const { className: t, style: r, key: i, children: n, rel: o, href: a, target: l, ...h } = this._props, d = ["fibo-anchor", this.getClassName(), t].filter(Boolean).join(" "), m = r ? { ...this.getStyle(), ...r } : this.getStyle(), f = this._href != null &&
|
|
4596
|
+
const { className: t, style: r, key: i, children: n, rel: o, href: a, target: l, ...h } = this._props, d = ["fibo-anchor", this.getClassName(), t].filter(Boolean).join(" "), m = r ? { ...this.getStyle(), ...r } : this.getStyle(), f = this._href != null && I(this._href) ? void 0 : this._href, p = this._target, g = p != null && String(p).toLowerCase() === "_blank" ? Pe(this._rel ?? o, "noopener noreferrer") : this._rel ?? o;
|
|
4467
4597
|
return u.createElement(
|
|
4468
4598
|
"a",
|
|
4469
4599
|
{
|
|
@@ -4474,12 +4604,12 @@ class Ei extends y {
|
|
|
4474
4604
|
target: p,
|
|
4475
4605
|
rel: g
|
|
4476
4606
|
},
|
|
4477
|
-
|
|
4607
|
+
Ni(this._label)
|
|
4478
4608
|
);
|
|
4479
4609
|
}
|
|
4480
4610
|
}
|
|
4481
|
-
const
|
|
4482
|
-
class
|
|
4611
|
+
const Xn = y(Ti);
|
|
4612
|
+
class Bi extends _ {
|
|
4483
4613
|
constructor() {
|
|
4484
4614
|
super(...arguments);
|
|
4485
4615
|
c(this, "_tabs", []);
|
|
@@ -4518,7 +4648,7 @@ class Ni extends y {
|
|
|
4518
4648
|
}
|
|
4519
4649
|
build() {
|
|
4520
4650
|
const { className: t, style: r, key: i, children: n, ...o } = this._props, a = [this.getClassName(), t].filter(Boolean).join(" ") || void 0, l = r ? { ...this.getStyle(), ...r } : this.getStyle();
|
|
4521
|
-
return u.createElement(
|
|
4651
|
+
return u.createElement(Le, {
|
|
4522
4652
|
...o,
|
|
4523
4653
|
tabs: this._tabs,
|
|
4524
4654
|
value: this._value,
|
|
@@ -4531,11 +4661,11 @@ class Ni extends y {
|
|
|
4531
4661
|
});
|
|
4532
4662
|
}
|
|
4533
4663
|
}
|
|
4534
|
-
const
|
|
4535
|
-
function
|
|
4536
|
-
return e == null || e === !1 ? null :
|
|
4664
|
+
const Yn = y(Bi);
|
|
4665
|
+
function $i(e) {
|
|
4666
|
+
return e == null || e === !1 ? null : x(e);
|
|
4537
4667
|
}
|
|
4538
|
-
class
|
|
4668
|
+
class Pi extends _ {
|
|
4539
4669
|
constructor() {
|
|
4540
4670
|
super(...arguments);
|
|
4541
4671
|
c(this, "_items", []);
|
|
@@ -4571,17 +4701,17 @@ class Ti extends y {
|
|
|
4571
4701
|
"aria-current": h.value === this._value ? "page" : void 0,
|
|
4572
4702
|
onClick: h.onPress
|
|
4573
4703
|
},
|
|
4574
|
-
|
|
4704
|
+
$i(h.label)
|
|
4575
4705
|
)
|
|
4576
4706
|
)
|
|
4577
4707
|
);
|
|
4578
4708
|
}
|
|
4579
4709
|
}
|
|
4580
|
-
const
|
|
4581
|
-
function
|
|
4582
|
-
return e == null || e === !1 ? null :
|
|
4710
|
+
const Kn = y(Pi);
|
|
4711
|
+
function pt(e) {
|
|
4712
|
+
return e == null || e === !1 ? null : x(e);
|
|
4583
4713
|
}
|
|
4584
|
-
class
|
|
4714
|
+
class Li extends _ {
|
|
4585
4715
|
constructor() {
|
|
4586
4716
|
super(...arguments);
|
|
4587
4717
|
c(this, "_title");
|
|
@@ -4607,17 +4737,17 @@ class Bi extends y {
|
|
|
4607
4737
|
return u.createElement(
|
|
4608
4738
|
"header",
|
|
4609
4739
|
{ ...o, role: "banner", className: a, style: l },
|
|
4610
|
-
|
|
4611
|
-
this._title != null ? u.createElement("div", { className: "fibo-navigation-bar-title" },
|
|
4612
|
-
|
|
4740
|
+
pt(this._leading),
|
|
4741
|
+
this._title != null ? u.createElement("div", { className: "fibo-navigation-bar-title" }, pt(this._title)) : null,
|
|
4742
|
+
pt(this._trailing)
|
|
4613
4743
|
);
|
|
4614
4744
|
}
|
|
4615
4745
|
}
|
|
4616
|
-
const
|
|
4617
|
-
function
|
|
4618
|
-
return e == null || e === !1 ? null :
|
|
4746
|
+
const qn = y(Li);
|
|
4747
|
+
function Ai(e) {
|
|
4748
|
+
return e == null || e === !1 ? null : x(e);
|
|
4619
4749
|
}
|
|
4620
|
-
class
|
|
4750
|
+
class Ri extends _ {
|
|
4621
4751
|
constructor() {
|
|
4622
4752
|
super(...arguments);
|
|
4623
4753
|
c(this, "_items", []);
|
|
@@ -4653,17 +4783,17 @@ class Pi extends y {
|
|
|
4653
4783
|
"aria-current": h.value === this._value ? "page" : void 0,
|
|
4654
4784
|
onClick: h.onPress
|
|
4655
4785
|
},
|
|
4656
|
-
|
|
4786
|
+
Ai(h.label)
|
|
4657
4787
|
)
|
|
4658
4788
|
)
|
|
4659
4789
|
);
|
|
4660
4790
|
}
|
|
4661
4791
|
}
|
|
4662
|
-
const
|
|
4663
|
-
function
|
|
4664
|
-
return e == null || e === !1 ? null :
|
|
4792
|
+
const Zn = y(Ri);
|
|
4793
|
+
function Yt(e) {
|
|
4794
|
+
return e == null || e === !1 ? null : x(e);
|
|
4665
4795
|
}
|
|
4666
|
-
class
|
|
4796
|
+
class Mi extends _ {
|
|
4667
4797
|
constructor() {
|
|
4668
4798
|
super(...arguments);
|
|
4669
4799
|
c(this, "_items", []);
|
|
@@ -4676,7 +4806,7 @@ class Li extends y {
|
|
|
4676
4806
|
"ol",
|
|
4677
4807
|
null,
|
|
4678
4808
|
...this._items.map((m, f) => {
|
|
4679
|
-
const p = f === h, b = !p && m.href && !
|
|
4809
|
+
const p = f === h, b = !p && m.href && !I(m.href) ? m.href : void 0, g = b ? u.createElement("a", { href: b }, Yt(m.label)) : Yt(m.label);
|
|
4680
4810
|
return u.createElement(
|
|
4681
4811
|
"li",
|
|
4682
4812
|
{
|
|
@@ -4694,11 +4824,11 @@ class Li extends y {
|
|
|
4694
4824
|
);
|
|
4695
4825
|
}
|
|
4696
4826
|
}
|
|
4697
|
-
const
|
|
4698
|
-
function
|
|
4699
|
-
return e == null || e === !1 ? null :
|
|
4827
|
+
const Qn = y(Mi);
|
|
4828
|
+
function gt(e) {
|
|
4829
|
+
return e == null || e === !1 ? null : x(e);
|
|
4700
4830
|
}
|
|
4701
|
-
class
|
|
4831
|
+
class Fi extends _ {
|
|
4702
4832
|
constructor() {
|
|
4703
4833
|
super(...arguments);
|
|
4704
4834
|
c(this, "_title");
|
|
@@ -4724,88 +4854,88 @@ class Ai extends y {
|
|
|
4724
4854
|
return u.createElement(
|
|
4725
4855
|
"div",
|
|
4726
4856
|
{ ...o, role: "toolbar", className: a, style: l },
|
|
4727
|
-
|
|
4728
|
-
this._title != null ? u.createElement("div", { className: "fibo-toolbar-title" },
|
|
4729
|
-
|
|
4857
|
+
gt(this._leading),
|
|
4858
|
+
this._title != null ? u.createElement("div", { className: "fibo-toolbar-title" }, gt(this._title)) : null,
|
|
4859
|
+
gt(this._trailing)
|
|
4730
4860
|
);
|
|
4731
4861
|
}
|
|
4732
4862
|
}
|
|
4733
|
-
const
|
|
4734
|
-
function
|
|
4863
|
+
const Jn = y(Fi);
|
|
4864
|
+
function Kt(e, s) {
|
|
4735
4865
|
if (typeof Reflect.getOwnMetadataKeys == "function")
|
|
4736
4866
|
for (const t of Reflect.getOwnMetadataKeys(e))
|
|
4737
4867
|
Reflect.defineMetadata(t, Reflect.getOwnMetadata(t, e), s);
|
|
4738
4868
|
}
|
|
4739
|
-
function
|
|
4869
|
+
function ta(e = {}) {
|
|
4740
4870
|
return function(s) {
|
|
4741
|
-
const t = e.memo === !1 ? !1 : typeof e.memo == "function" ? e.memo : void 0, r =
|
|
4871
|
+
const t = e.memo === !1 ? !1 : typeof e.memo == "function" ? e.memo : void 0, r = Ae(s, t), i = e.displayName || s.name;
|
|
4742
4872
|
Object.defineProperty(r, "name", {
|
|
4743
4873
|
value: i,
|
|
4744
4874
|
writable: !1,
|
|
4745
4875
|
configurable: !0
|
|
4746
|
-
}), r.displayName = i, Object.setPrototypeOf(r, s),
|
|
4876
|
+
}), r.displayName = i, Object.setPrototypeOf(r, s), Kt(s, r);
|
|
4747
4877
|
const n = s.prototype;
|
|
4748
|
-
return Object.prototype.hasOwnProperty.call(r, "prototype") && r.prototype && n && (Object.setPrototypeOf(r.prototype, n),
|
|
4878
|
+
return Object.prototype.hasOwnProperty.call(r, "prototype") && r.prototype && n && (Object.setPrototypeOf(r.prototype, n), Kt(n, r.prototype)), r;
|
|
4749
4879
|
};
|
|
4750
4880
|
}
|
|
4751
|
-
const
|
|
4752
|
-
function
|
|
4881
|
+
const xt = [];
|
|
4882
|
+
function Se(e) {
|
|
4753
4883
|
if (typeof e != "string" || e.length === 0)
|
|
4754
4884
|
throw new Error('Page(path) requires a non-empty path string — use @Page("/route")');
|
|
4755
4885
|
}
|
|
4756
|
-
function
|
|
4886
|
+
function ve(e) {
|
|
4757
4887
|
if (typeof e != "function")
|
|
4758
4888
|
throw new Error("@Page() must decorate a component function or class");
|
|
4759
4889
|
}
|
|
4760
|
-
function
|
|
4761
|
-
|
|
4890
|
+
function we(e, s, t) {
|
|
4891
|
+
xt.push({
|
|
4762
4892
|
path: e,
|
|
4763
4893
|
component: s,
|
|
4764
4894
|
exact: t.exact,
|
|
4765
4895
|
meta: t.meta
|
|
4766
4896
|
});
|
|
4767
4897
|
}
|
|
4768
|
-
function
|
|
4769
|
-
|
|
4898
|
+
function ea(e, s = {}) {
|
|
4899
|
+
Se(e);
|
|
4770
4900
|
const t = s ?? {};
|
|
4771
4901
|
return function(r) {
|
|
4772
|
-
return
|
|
4902
|
+
return ve(r), we(e, r, t), r;
|
|
4773
4903
|
};
|
|
4774
4904
|
}
|
|
4775
|
-
function
|
|
4776
|
-
return [...
|
|
4905
|
+
function sa() {
|
|
4906
|
+
return [...xt];
|
|
4777
4907
|
}
|
|
4778
|
-
function
|
|
4779
|
-
|
|
4908
|
+
function ra() {
|
|
4909
|
+
xt.length = 0;
|
|
4780
4910
|
}
|
|
4781
|
-
function
|
|
4782
|
-
|
|
4911
|
+
function ia(e, s, t = {}) {
|
|
4912
|
+
Se(e), ve(s), we(e, s, t ?? {});
|
|
4783
4913
|
}
|
|
4784
|
-
const
|
|
4785
|
-
function
|
|
4914
|
+
const q = /* @__PURE__ */ new Map(), ke = Symbol("store");
|
|
4915
|
+
function na() {
|
|
4786
4916
|
return function(e) {
|
|
4787
|
-
Reflect.defineMetadata(
|
|
4917
|
+
Reflect.defineMetadata(ke, !0, e);
|
|
4788
4918
|
const s = new e();
|
|
4789
|
-
return
|
|
4919
|
+
return q.set(e, s), e;
|
|
4790
4920
|
};
|
|
4791
4921
|
}
|
|
4792
|
-
function
|
|
4793
|
-
if (!
|
|
4922
|
+
function Ii(e) {
|
|
4923
|
+
if (!q.has(e)) {
|
|
4794
4924
|
const s = new e();
|
|
4795
|
-
|
|
4925
|
+
q.set(e, s);
|
|
4796
4926
|
}
|
|
4797
|
-
return
|
|
4927
|
+
return q.get(e);
|
|
4798
4928
|
}
|
|
4799
|
-
function
|
|
4800
|
-
return
|
|
4929
|
+
function aa(e) {
|
|
4930
|
+
return Ii(e);
|
|
4801
4931
|
}
|
|
4802
|
-
function
|
|
4803
|
-
|
|
4932
|
+
function oa() {
|
|
4933
|
+
q.clear();
|
|
4804
4934
|
}
|
|
4805
|
-
function
|
|
4806
|
-
return Reflect.getMetadata(
|
|
4935
|
+
function la(e) {
|
|
4936
|
+
return Reflect.getMetadata(ke, e) === !0;
|
|
4807
4937
|
}
|
|
4808
|
-
function
|
|
4938
|
+
function yt(e = "localStorage") {
|
|
4809
4939
|
var s;
|
|
4810
4940
|
try {
|
|
4811
4941
|
const t = globalThis, r = t[e] ?? ((s = t.window) == null ? void 0 : s[e]);
|
|
@@ -4814,53 +4944,53 @@ function dt(e = "localStorage") {
|
|
|
4814
4944
|
return null;
|
|
4815
4945
|
}
|
|
4816
4946
|
}
|
|
4817
|
-
function
|
|
4947
|
+
function qt(e) {
|
|
4818
4948
|
return {
|
|
4819
4949
|
getItem(s) {
|
|
4820
4950
|
var t;
|
|
4821
4951
|
try {
|
|
4822
|
-
return ((t =
|
|
4952
|
+
return ((t = yt(e)) == null ? void 0 : t.getItem(s)) ?? null;
|
|
4823
4953
|
} catch {
|
|
4824
4954
|
return null;
|
|
4825
4955
|
}
|
|
4826
4956
|
},
|
|
4827
4957
|
setItem(s, t) {
|
|
4828
4958
|
var r;
|
|
4829
|
-
(r =
|
|
4959
|
+
(r = yt(e)) == null || r.setItem(s, t);
|
|
4830
4960
|
},
|
|
4831
4961
|
removeItem(s) {
|
|
4832
4962
|
var t;
|
|
4833
4963
|
try {
|
|
4834
|
-
(t =
|
|
4964
|
+
(t = yt(e)) == null || t.removeItem(s);
|
|
4835
4965
|
} catch {
|
|
4836
4966
|
}
|
|
4837
4967
|
}
|
|
4838
4968
|
};
|
|
4839
4969
|
}
|
|
4840
|
-
const
|
|
4841
|
-
localStorage:
|
|
4842
|
-
sessionStorage:
|
|
4970
|
+
const Nt = {
|
|
4971
|
+
localStorage: qt("localStorage"),
|
|
4972
|
+
sessionStorage: qt("sessionStorage")
|
|
4843
4973
|
};
|
|
4844
|
-
function
|
|
4974
|
+
function Zt(e) {
|
|
4845
4975
|
return e != null && typeof e == "object" && !Array.isArray(e);
|
|
4846
4976
|
}
|
|
4847
|
-
function
|
|
4977
|
+
function Di(e, s, t) {
|
|
4848
4978
|
const r = JSON.parse(e);
|
|
4849
4979
|
if (r == null || typeof r != "object" || Array.isArray(r))
|
|
4850
4980
|
throw new Error("invalid persisted payload");
|
|
4851
4981
|
const i = r, n = typeof i._version == "number" ? i._version : 0;
|
|
4852
4982
|
return n !== s ? t ? { ok: !0, data: t(i.data, n) } : { ok: !1 } : Object.prototype.hasOwnProperty.call(i, "data") ? { ok: !0, data: i.data } : { ok: !1 };
|
|
4853
4983
|
}
|
|
4854
|
-
function
|
|
4855
|
-
if (!(t || r) || !
|
|
4984
|
+
function Oi(e, s, t, r) {
|
|
4985
|
+
if (!(t || r) || !Zt(s))
|
|
4856
4986
|
return s;
|
|
4857
|
-
const i =
|
|
4858
|
-
return
|
|
4987
|
+
const i = Ce(s, t, r);
|
|
4988
|
+
return Zt(e) ? { ...e, ...i } : i;
|
|
4859
4989
|
}
|
|
4860
|
-
function
|
|
4990
|
+
function ca(e, s) {
|
|
4861
4991
|
const {
|
|
4862
4992
|
key: t,
|
|
4863
|
-
storage: r =
|
|
4993
|
+
storage: r = Nt.localStorage,
|
|
4864
4994
|
include: i,
|
|
4865
4995
|
exclude: n,
|
|
4866
4996
|
debounce: o = 300,
|
|
@@ -4870,8 +5000,8 @@ function aa(e, s) {
|
|
|
4870
5000
|
try {
|
|
4871
5001
|
const p = r.getItem(t);
|
|
4872
5002
|
if (p) {
|
|
4873
|
-
const b =
|
|
4874
|
-
b.ok && (e.value =
|
|
5003
|
+
const b = Di(p, a, l);
|
|
5004
|
+
b.ok && (e.value = Oi(e.value, b.data, i, n));
|
|
4875
5005
|
}
|
|
4876
5006
|
} catch (p) {
|
|
4877
5007
|
console.error(`Failed to load persisted state for key "${t}":`, p);
|
|
@@ -4880,7 +5010,7 @@ function aa(e, s) {
|
|
|
4880
5010
|
const d = () => {
|
|
4881
5011
|
try {
|
|
4882
5012
|
let p = e.value;
|
|
4883
|
-
(i || n) && (p =
|
|
5013
|
+
(i || n) && (p = Ce(e.value, i, n));
|
|
4884
5014
|
const b = {
|
|
4885
5015
|
_version: a,
|
|
4886
5016
|
data: p
|
|
@@ -4898,7 +5028,7 @@ function aa(e, s) {
|
|
|
4898
5028
|
f(), h && (clearTimeout(h), h = null, d());
|
|
4899
5029
|
};
|
|
4900
5030
|
}
|
|
4901
|
-
function
|
|
5031
|
+
function Ce(e, s, t) {
|
|
4902
5032
|
if (!e || typeof e != "object")
|
|
4903
5033
|
return e;
|
|
4904
5034
|
const r = {}, i = Object.keys(e), n = s, o = t;
|
|
@@ -4906,14 +5036,14 @@ function ke(e, s, t) {
|
|
|
4906
5036
|
n && !n.includes(a) || o && o.includes(a) || (r[a] = e[a]);
|
|
4907
5037
|
return r;
|
|
4908
5038
|
}
|
|
4909
|
-
function
|
|
5039
|
+
function ua(e, s = Nt.localStorage) {
|
|
4910
5040
|
try {
|
|
4911
5041
|
s.removeItem(e);
|
|
4912
5042
|
} catch (t) {
|
|
4913
5043
|
console.error(`Failed to clear persisted state for key "${e}":`, t);
|
|
4914
5044
|
}
|
|
4915
5045
|
}
|
|
4916
|
-
function
|
|
5046
|
+
function ha(e, s = Nt.localStorage) {
|
|
4917
5047
|
try {
|
|
4918
5048
|
const t = s.getItem(e);
|
|
4919
5049
|
if (!t)
|
|
@@ -4925,406 +5055,409 @@ function la(e, s = kt.localStorage) {
|
|
|
4925
5055
|
}
|
|
4926
5056
|
}
|
|
4927
5057
|
export {
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5058
|
+
Wh as Alert,
|
|
5059
|
+
ma as Align,
|
|
5060
|
+
Xn as Anchor,
|
|
5061
|
+
Zi as AppBar,
|
|
5062
|
+
en as AspectRatio,
|
|
5063
|
+
Zh as AssetCard,
|
|
5064
|
+
dn as AsyncImage,
|
|
5065
|
+
Dh as Avatar,
|
|
5066
|
+
pa as Axis,
|
|
5067
|
+
ga as AxisSize,
|
|
5068
|
+
Oh as Badge,
|
|
5069
|
+
ya as BadgeVariant,
|
|
5070
|
+
Qh as Banner,
|
|
5071
|
+
_a as Bar,
|
|
5072
|
+
nn as Baseline,
|
|
5073
|
+
ba as Behavior,
|
|
5074
|
+
Qi as BottomAppBar,
|
|
5075
|
+
Kn as BottomBar,
|
|
5076
|
+
Wn as BottomSheet,
|
|
5077
|
+
Sa as Box,
|
|
5078
|
+
Qn as Breadcrumbs,
|
|
5079
|
+
jn as BurgerIcon,
|
|
5080
|
+
Kh as Button,
|
|
5081
|
+
va as ButtonShape,
|
|
5082
|
+
wa as ButtonSize,
|
|
5083
|
+
ka as ButtonTone,
|
|
5084
|
+
Ca as ButtonType,
|
|
5085
|
+
Ea as ButtonVariant,
|
|
5086
|
+
xa as Calendar,
|
|
5087
|
+
ti as Canvas,
|
|
5088
|
+
Jh as Card,
|
|
5089
|
+
Na as Carousel,
|
|
5090
|
+
Th as Center,
|
|
5091
|
+
Sn as Chart,
|
|
5092
|
+
Ta as Checkbox,
|
|
5093
|
+
Ba as CheckboxTile,
|
|
5094
|
+
M as Circle,
|
|
5095
|
+
$a as Clip,
|
|
5096
|
+
Pa as ClipShape,
|
|
5097
|
+
$n as CodeScanner,
|
|
5098
|
+
La as Collapse,
|
|
5099
|
+
td as CollectionCard,
|
|
5100
|
+
Aa as Color,
|
|
5101
|
+
Ra as ColorPicker,
|
|
5102
|
+
Mh as Column,
|
|
5103
|
+
Ma as Combobox,
|
|
5104
|
+
ta as Component,
|
|
5105
|
+
Fa as ComputedSignal,
|
|
5106
|
+
Bh as Container,
|
|
5107
|
+
Ia as ContainerRelativeAxis,
|
|
5108
|
+
ed as ContentCard,
|
|
5109
|
+
Da as ContentShape,
|
|
5110
|
+
bn as ContentUnavailable,
|
|
5111
|
+
Oa as ContextMenu,
|
|
5112
|
+
ja as CoordinateSpace,
|
|
5113
|
+
Ha as Curve,
|
|
5114
|
+
ln as CustomScrollView,
|
|
5115
|
+
Wa as DashboardLayout,
|
|
5116
|
+
Va as DatePicker,
|
|
5117
|
+
Ga as DateRangePicker,
|
|
5118
|
+
za as DefaultErrorPage,
|
|
5119
|
+
Ua as DefaultLoader,
|
|
5120
|
+
Xa as Density,
|
|
5121
|
+
Vn as Dialog,
|
|
5122
|
+
Fn as Dismissible,
|
|
5123
|
+
Ya as Divider,
|
|
5124
|
+
Ka as DragAxisEnum,
|
|
5125
|
+
qa as DragGesture,
|
|
5126
|
+
En as DragTarget,
|
|
5127
|
+
Cn as Draggable,
|
|
5128
|
+
Za as Ease,
|
|
5129
|
+
Qa as Easing,
|
|
5130
|
+
Ja as Edge,
|
|
5131
|
+
to as EdgeSet,
|
|
5132
|
+
eo as Effect,
|
|
5133
|
+
so as ExclusiveGesture,
|
|
5134
|
+
ro as FIBO_BREAKPOINTS,
|
|
5135
|
+
io as FIBO_INTERACTION_FX_CSS,
|
|
5136
|
+
no as FIBO_MOTION_CSS,
|
|
5137
|
+
ao as FIBO_THEMES,
|
|
5138
|
+
oo as Fibo,
|
|
5139
|
+
lo as FiboApp,
|
|
5140
|
+
co as FiboAppBuilder,
|
|
5141
|
+
uo as FiboStyles,
|
|
5142
|
+
ho as FiboThemeProvider,
|
|
5143
|
+
fo as FieldType,
|
|
5144
|
+
mo as FieldVariant,
|
|
5145
|
+
Bn as FilePicker,
|
|
5146
|
+
po as FineGrainText,
|
|
5147
|
+
go as Fit,
|
|
5148
|
+
yo as FlexDirection,
|
|
5149
|
+
_o as ForEach,
|
|
5150
|
+
bo as Form,
|
|
5151
|
+
So as FormMethod,
|
|
5152
|
+
bh as Format,
|
|
5153
|
+
Un as FullScreenCover,
|
|
5154
|
+
cn as Gauge,
|
|
5155
|
+
vo as GeometryReader,
|
|
5156
|
+
wo as GestureBuilder,
|
|
5157
|
+
ko as GestureMaskEnum,
|
|
5158
|
+
sd as Grid,
|
|
5159
|
+
rd as GridItem,
|
|
5160
|
+
Co as GridVariant,
|
|
5161
|
+
Eo as Group,
|
|
5162
|
+
xo as HIT_FILM_STYLE,
|
|
5163
|
+
No as Header,
|
|
5164
|
+
xn as Hero,
|
|
5165
|
+
To as HitFilm,
|
|
5166
|
+
Bo as INTERACTION_EFFECTS,
|
|
5167
|
+
$o as Icon,
|
|
5168
|
+
jh as Image,
|
|
5169
|
+
Po as Inspector,
|
|
5170
|
+
Vh as Integration,
|
|
5171
|
+
Lo as Intent,
|
|
5172
|
+
Nn as InteractiveViewer,
|
|
5173
|
+
Ao as Join,
|
|
5174
|
+
Ro as KeyboardInset,
|
|
5175
|
+
Gh as Label,
|
|
5176
|
+
Mo as LayoutBuilder,
|
|
5177
|
+
In as LazyGrid,
|
|
5178
|
+
Fo as LazyHStack,
|
|
5179
|
+
Io as LazyVStack,
|
|
5180
|
+
$h as Line,
|
|
5181
|
+
Dn as LinearGradient,
|
|
5182
|
+
cd as Link,
|
|
5183
|
+
Do as List,
|
|
5184
|
+
Oo as ListSignal,
|
|
5185
|
+
id as ListTile,
|
|
5186
|
+
jo as ListVariant,
|
|
5187
|
+
Ho as LongPressGesture,
|
|
5188
|
+
Wo as MOTION_PRESETS,
|
|
5189
|
+
Vo as MagnificationGesture,
|
|
5190
|
+
Go as MagnifyGesture,
|
|
5191
|
+
kn as MapView,
|
|
5192
|
+
pn as Markdown,
|
|
5193
|
+
zo as Material,
|
|
5194
|
+
Uo as Menu,
|
|
5195
|
+
On as MeshGradient,
|
|
5196
|
+
Xo as Mode,
|
|
5197
|
+
Yo as Motion,
|
|
5198
|
+
Ko as MotionStyles,
|
|
5199
|
+
ud as NavLink,
|
|
5200
|
+
qn as NavigationBar,
|
|
5201
|
+
Zn as NavigationRail,
|
|
5202
|
+
qo as NavigationSplitView,
|
|
5203
|
+
gn as NumericText,
|
|
5204
|
+
Zo as Observable,
|
|
5205
|
+
Qo as Observer,
|
|
5206
|
+
Jo as OrientationBuilder,
|
|
5207
|
+
tl as OtpField,
|
|
5208
|
+
hd as Outlet,
|
|
5209
|
+
el as OutlineGroup,
|
|
5210
|
+
sn as Overlay,
|
|
5211
|
+
ea as Page,
|
|
5212
|
+
sl as PageView,
|
|
5213
|
+
A as Path,
|
|
5214
|
+
yn as PdfView,
|
|
5215
|
+
Tn as PhotosPicker,
|
|
5216
|
+
rl as Place,
|
|
5217
|
+
il as PluginManager,
|
|
5218
|
+
Sh as Plural,
|
|
5219
|
+
nl as PopScope,
|
|
5220
|
+
Gn as Popover,
|
|
5221
|
+
al as Position,
|
|
5222
|
+
ol as PreferenceKey,
|
|
5223
|
+
ll as Presence,
|
|
5224
|
+
nd as ProfileCard,
|
|
5225
|
+
zh as Progress,
|
|
5226
|
+
cl as ProviderWrapper,
|
|
5227
|
+
ul as RadioGroup,
|
|
5228
|
+
hl as RadioTile,
|
|
5229
|
+
dl as Radius,
|
|
5230
|
+
fl as RangeSlider,
|
|
5231
|
+
ml as ReactivityRoot,
|
|
5232
|
+
Gt as Rect,
|
|
5233
|
+
pl as ReducedMotion,
|
|
5234
|
+
Rn as RefreshIndicator,
|
|
5235
|
+
Mn as ReorderableList,
|
|
5236
|
+
gl as Resize,
|
|
5237
|
+
yl as Reveal,
|
|
5238
|
+
_n as RichEditor,
|
|
5239
|
+
un as RichText,
|
|
5240
|
+
_l as RotateGesture,
|
|
5241
|
+
bl as Router,
|
|
5242
|
+
Sl as Row,
|
|
5243
|
+
Ji as SafeArea,
|
|
5244
|
+
vl as Scaffold,
|
|
5245
|
+
wl as Scale,
|
|
5246
|
+
kl as Scheme,
|
|
5247
|
+
Cl as ScrollAnchor,
|
|
5248
|
+
Ph as ScrollController,
|
|
5249
|
+
El as ScrollProgress,
|
|
5250
|
+
Lh as ScrollView,
|
|
5251
|
+
xl as ScrollViewReader,
|
|
5252
|
+
Nl as SearchBar,
|
|
5253
|
+
Tl as Searchable,
|
|
5254
|
+
Ln as Section,
|
|
5255
|
+
Bl as SecureField,
|
|
5256
|
+
$l as SegmentedButton,
|
|
5257
|
+
Pl as Select,
|
|
5258
|
+
hn as SelectableText,
|
|
5259
|
+
Ll as SensoryFeedback,
|
|
5260
|
+
Al as Separator,
|
|
5261
|
+
Rl as SequenceGesture,
|
|
5262
|
+
Ml as Shadow,
|
|
5263
|
+
Fl as Shake,
|
|
5264
|
+
Pn as ShareLink,
|
|
5265
|
+
Hn as Sheet,
|
|
5266
|
+
Il as Shortcuts,
|
|
5267
|
+
Dl as Side,
|
|
5268
|
+
Ol as Sidebar,
|
|
5269
|
+
jl as Signal,
|
|
5270
|
+
Hl as SimultaneousGesture,
|
|
5271
|
+
Wl as Size,
|
|
5272
|
+
Uh as Skeleton,
|
|
5273
|
+
Vl as Slider,
|
|
5274
|
+
an as SliverAppBar,
|
|
5275
|
+
on as SliverList,
|
|
5276
|
+
zn as SnackBar,
|
|
5277
|
+
Gl as Snap,
|
|
5278
|
+
zl as SnapAxis,
|
|
5279
|
+
Ul as Space,
|
|
5280
|
+
Fh as Spacer,
|
|
5281
|
+
Xl as SpatialTapGesture,
|
|
5282
|
+
Xh as Spinner,
|
|
5283
|
+
Yl as StackAlign,
|
|
5284
|
+
Kl as Stepper,
|
|
5285
|
+
na as Store,
|
|
5286
|
+
ql as Stroke,
|
|
5287
|
+
An as SwipeRow,
|
|
5288
|
+
Zl as Switch,
|
|
5289
|
+
Ql as SwitchTile,
|
|
5290
|
+
Fe as TONE_LEVELS,
|
|
5291
|
+
Yn as TabView,
|
|
5292
|
+
ad as Table,
|
|
5293
|
+
Jl as TableVariant,
|
|
5294
|
+
od as Tags,
|
|
5295
|
+
tc as TapGesture,
|
|
5296
|
+
ec as Text,
|
|
5297
|
+
sc as TextAlign,
|
|
5298
|
+
rc as TextDirection,
|
|
5299
|
+
ic as TextField,
|
|
5300
|
+
nc as TextRole,
|
|
5301
|
+
ac as Textarea,
|
|
5302
|
+
oc as Theme,
|
|
5303
|
+
lc as TimePicker,
|
|
5304
|
+
cc as Timeline,
|
|
5305
|
+
Jn as Toolbar,
|
|
5306
|
+
qi as ToolbarItem,
|
|
5307
|
+
uc as Tooltip,
|
|
5308
|
+
vh as Transform,
|
|
5309
|
+
hc as Trend,
|
|
5310
|
+
wh as Unit,
|
|
5311
|
+
dc as ValueBuilder,
|
|
5312
|
+
fn as VideoPlayer,
|
|
5313
|
+
tn as ViewThatFits,
|
|
5314
|
+
fc as VirtualColumn,
|
|
5315
|
+
mc as VirtualRow,
|
|
5316
|
+
mn as WebView,
|
|
5317
|
+
pc as Weight,
|
|
5318
|
+
gc as WheelPicker,
|
|
5319
|
+
yc as When,
|
|
5320
|
+
_c as Wizard,
|
|
5321
|
+
rn as Wrap,
|
|
5322
|
+
Ah as ZStack,
|
|
5323
|
+
bc as applyEdgeSet,
|
|
5324
|
+
Sc as applyResponsiveStyles,
|
|
5325
|
+
Ui as bindHotkeys,
|
|
5326
|
+
vc as bindText,
|
|
5327
|
+
dr as canvasEngine,
|
|
5328
|
+
ua as clearPersistedState,
|
|
5329
|
+
ra as clearRoutes,
|
|
5330
|
+
oa as clearStores,
|
|
5331
|
+
wc as collection,
|
|
5332
|
+
kc as computed,
|
|
5333
|
+
Cc as copyWithTheme,
|
|
5334
|
+
Ec as createComponent,
|
|
5335
|
+
kh as createPage,
|
|
5336
|
+
xc as createReactivityRoot,
|
|
5337
|
+
Nc as createStore,
|
|
5338
|
+
Ch as cssCurve,
|
|
5339
|
+
Tc as cupertinoTheme,
|
|
5340
|
+
Bc as email,
|
|
5341
|
+
$c as endSsrRequest,
|
|
5342
|
+
Pc as ensureInteractionFxCss,
|
|
5343
|
+
Lc as ensureListId,
|
|
5344
|
+
Ac as ensureMotionCss,
|
|
5345
|
+
Rc as equalTo,
|
|
5346
|
+
Mc as extendTheme,
|
|
5347
|
+
Fc as fiboDevStats,
|
|
5348
|
+
Ic as formDataToValues,
|
|
5349
|
+
Dc as getCss,
|
|
5350
|
+
Oc as getCurrentScope,
|
|
5351
|
+
jc as getMotionCss,
|
|
5352
|
+
ha as getPersistedState,
|
|
5353
|
+
sa as getRegisteredRoutes,
|
|
5354
|
+
aa as getStore,
|
|
5355
|
+
Hc as getStyleTag,
|
|
5356
|
+
zi as goHash,
|
|
5357
|
+
wn as googleEngine,
|
|
5358
|
+
Wc as infinity,
|
|
5359
|
+
Vc as integer,
|
|
5360
|
+
Gc as interactionEffectClass,
|
|
5361
|
+
zc as interactionEffectKebab,
|
|
5362
|
+
Uc as interp,
|
|
5363
|
+
Xc as isFixedNumericFrame,
|
|
5364
|
+
Yc as isSizeWord,
|
|
5365
|
+
la as isStore,
|
|
5366
|
+
dd as lazyRoute,
|
|
5367
|
+
vn as leafletEngine,
|
|
5368
|
+
Kc as listSignal,
|
|
5369
|
+
qc as matchedGeometryKeys,
|
|
5370
|
+
Zc as matchedGeometryRect,
|
|
5371
|
+
Qc as materialTheme,
|
|
5372
|
+
Jc as max,
|
|
5373
|
+
tu as maxLength,
|
|
5374
|
+
eu as min,
|
|
5375
|
+
su as minLength,
|
|
5376
|
+
ru as mount,
|
|
5377
|
+
iu as noirTheme,
|
|
5378
|
+
nu as normalizeInteractionEffect,
|
|
5379
|
+
au as normalizePreset,
|
|
5380
|
+
ou as observable,
|
|
5381
|
+
Re as open,
|
|
5382
|
+
Gi as openExternal,
|
|
5383
|
+
Eh as page,
|
|
5384
|
+
lu as pattern,
|
|
5385
|
+
ca as persist,
|
|
5386
|
+
fd as preloadRoute,
|
|
5387
|
+
cu as preset,
|
|
5388
|
+
uu as reducePreferences,
|
|
5389
|
+
ia as registerRoute,
|
|
5390
|
+
hu as required,
|
|
5391
|
+
du as resetFiboDevStats,
|
|
5392
|
+
fu as resolveCssEase,
|
|
5393
|
+
mu as resolveEdgeInsets,
|
|
5394
|
+
pu as resolveFrameSize,
|
|
5395
|
+
gu as resolveTheme,
|
|
5396
|
+
yu as rule,
|
|
5397
|
+
_u as runInScope,
|
|
5398
|
+
Te as scrollTo,
|
|
5399
|
+
bu as signal,
|
|
5400
|
+
Su as sizeWordCss,
|
|
5401
|
+
vu as springEase,
|
|
5402
|
+
wu as stackAlignFlex,
|
|
5403
|
+
ku as stackAlignObjectPosition,
|
|
5404
|
+
Be as startViewTransition,
|
|
5405
|
+
Nt as storageAdapters,
|
|
5406
|
+
Cu as supportsScrollTimeline,
|
|
5407
|
+
Eu as supportsViewTimeline,
|
|
5408
|
+
xu as themeClassName,
|
|
5409
|
+
Nu as themeToCssRule,
|
|
5410
|
+
Tu as themeToCssVars,
|
|
5411
|
+
Bu as themeToInlineStyle,
|
|
5412
|
+
$u as toCrossAxis,
|
|
5413
|
+
Pu as toElement,
|
|
5414
|
+
Lu as toMainAxis,
|
|
5415
|
+
Au as toMediaQuery,
|
|
5416
|
+
Ki as tone,
|
|
5417
|
+
ne as toneScale,
|
|
5418
|
+
Xi as transaction,
|
|
5419
|
+
Ru as url,
|
|
5420
|
+
Mu as useBuilderState,
|
|
5421
|
+
Fu as useFiboTheme,
|
|
5422
|
+
Iu as useLocation,
|
|
5423
|
+
Du as useMountTransition,
|
|
5424
|
+
Ou as useNavigate,
|
|
5425
|
+
ju as useObservable,
|
|
5426
|
+
Hu as useParams,
|
|
5427
|
+
Wu as usePrefersReducedMotion,
|
|
5428
|
+
Vu as useProvider,
|
|
5429
|
+
Gu as useQuery,
|
|
5430
|
+
zu as useReactiveStore,
|
|
5431
|
+
md as useRouteMeta,
|
|
5432
|
+
Uu as useRouter,
|
|
5433
|
+
Xu as useScaffold,
|
|
5434
|
+
Yu as useScrollProgress,
|
|
5435
|
+
Ku as useSignal,
|
|
5436
|
+
qu as useSpring,
|
|
5437
|
+
Zu as useStagger,
|
|
5438
|
+
Ii as useStore,
|
|
5439
|
+
Qu as useTransition,
|
|
5440
|
+
Ju as useViewportWidth,
|
|
5441
|
+
th as webTheme,
|
|
5442
|
+
Yi as withAnimation,
|
|
5443
|
+
xh as withFiboStyles,
|
|
5444
|
+
Tt as withTransaction,
|
|
5445
|
+
eh as wrapAlignmentGuide,
|
|
5446
|
+
sh as wrapClipShape,
|
|
5447
|
+
rh as wrapClipped,
|
|
5448
|
+
ih as wrapCompositingGroup,
|
|
5449
|
+
nh as wrapContainerRelativeFrame,
|
|
5450
|
+
ah as wrapContentShape,
|
|
5451
|
+
oh as wrapFixedSize,
|
|
5452
|
+
lh as wrapFrame,
|
|
5453
|
+
ch as wrapLayer,
|
|
5454
|
+
uh as wrapLayoutPriority,
|
|
5455
|
+
hh as wrapMask,
|
|
5456
|
+
dh as wrapMatchedGeometry,
|
|
5457
|
+
fh as wrapOffset,
|
|
5458
|
+
mh as wrapOnGeometryChange,
|
|
5459
|
+
ph as wrapOnPreferenceChange,
|
|
5460
|
+
gh as wrapPreference,
|
|
5461
|
+
yh as wrapSafeAreaInset,
|
|
5462
|
+
Vi as writeClipboard
|
|
5330
5463
|
};
|