@extend-ai/react-xlsx 0.18.1 → 0.19.0

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.
Files changed (61) hide show
  1. package/README.md +154 -6
  2. package/dist/chart-renderer-3K2VKB5I.js +5042 -0
  3. package/dist/chart-renderer-3K2VKB5I.js.map +1 -0
  4. package/dist/{chart-renderer-ZUWRNNZT.cjs → chart-renderer-HVOEAQXK.cjs} +5 -5
  5. package/dist/{chart-renderer-ZUWRNNZT.cjs.map → chart-renderer-HVOEAQXK.cjs.map} +1 -1
  6. package/dist/chart-renderer-LHXMRBGR.cjs +5043 -0
  7. package/dist/chart-renderer-LHXMRBGR.cjs.map +1 -0
  8. package/dist/{chart-renderer-HQSQHDCB.js → chart-renderer-R2B4I2HL.js} +2 -2
  9. package/dist/chunk-3O2QY6LA.js +50 -0
  10. package/dist/{chunk-OZLJPZUX.js.map → chunk-3O2QY6LA.js.map} +1 -1
  11. package/dist/chunk-4VX5HTCF.cjs +50 -0
  12. package/dist/chunk-4VX5HTCF.cjs.map +1 -0
  13. package/dist/chunk-CJBI5F6V.cjs +816 -0
  14. package/dist/chunk-CJBI5F6V.cjs.map +1 -0
  15. package/dist/chunk-NBH72POD.js +816 -0
  16. package/dist/chunk-NBH72POD.js.map +1 -0
  17. package/dist/{chunk-OZLJPZUX.js → chunk-O7S3Y6II.js} +10 -6
  18. package/dist/chunk-O7S3Y6II.js.map +1 -0
  19. package/dist/{chunk-FO6MIHX4.cjs → chunk-T5WZHPIN.cjs} +2 -2
  20. package/dist/{chunk-FO6MIHX4.cjs.map → chunk-T5WZHPIN.cjs.map} +1 -1
  21. package/dist/chunk-TYJLNPNE.cjs +26972 -0
  22. package/dist/chunk-TYJLNPNE.cjs.map +1 -0
  23. package/dist/chunk-Y737JKUG.js +26969 -0
  24. package/dist/chunk-Y737JKUG.js.map +1 -0
  25. package/dist/{chunk-WFQGZI2Z.cjs → chunk-ZIO47YMT.cjs} +12 -8
  26. package/dist/chunk-ZIO47YMT.cjs.map +1 -0
  27. package/dist/index.cjs +588 -11267
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.cts +3 -14
  30. package/dist/index.d.ts +3 -14
  31. package/dist/index.js +474 -11153
  32. package/dist/index.js.map +1 -1
  33. package/dist/internal-DSz8QMhK.d.cts +1496 -0
  34. package/dist/internal-DSz8QMhK.d.ts +1496 -0
  35. package/dist/internal.cjs +24 -0
  36. package/dist/internal.cjs.map +1 -0
  37. package/dist/internal.d.cts +3 -0
  38. package/dist/internal.d.ts +3 -0
  39. package/dist/internal.js +23 -0
  40. package/dist/internal.js.map +1 -0
  41. package/dist/{region-map-geography-5E5SVPGS.cjs → region-map-geography-6TGXBY3V.cjs} +2 -2
  42. package/dist/{region-map-geography-5E5SVPGS.cjs.map → region-map-geography-6TGXBY3V.cjs.map} +1 -1
  43. package/dist/{spreadsheet-font-assets-7QMV43XD.cjs → spreadsheet-font-assets-4AHYDTAQ.cjs} +2 -2
  44. package/dist/{spreadsheet-font-assets-7QMV43XD.cjs.map → spreadsheet-font-assets-4AHYDTAQ.cjs.map} +1 -1
  45. package/dist/surface-regl-KW4JL325.js +723 -0
  46. package/dist/surface-regl-KW4JL325.js.map +1 -0
  47. package/dist/surface-regl-MAPCPD7W.cjs +724 -0
  48. package/dist/surface-regl-MAPCPD7W.cjs.map +1 -0
  49. package/dist/{surface-regl-WVLW3SEA.cjs → surface-regl-PWTZWQQS.cjs} +2 -2
  50. package/dist/{surface-regl-WVLW3SEA.cjs.map → surface-regl-PWTZWQQS.cjs.map} +1 -1
  51. package/dist/vanilla.cjs +20 -0
  52. package/dist/vanilla.cjs.map +1 -0
  53. package/dist/vanilla.d.cts +9 -0
  54. package/dist/vanilla.d.ts +9 -0
  55. package/dist/vanilla.js +19 -0
  56. package/dist/vanilla.js.map +1 -0
  57. package/dist/xlsx-worker.js +2888 -34
  58. package/dist/xlsx-worker.js.map +1 -1
  59. package/package.json +23 -3
  60. package/dist/chunk-WFQGZI2Z.cjs.map +0 -1
  61. /package/dist/{chart-renderer-HQSQHDCB.js.map → chart-renderer-R2B4I2HL.js.map} +0 -0
@@ -0,0 +1,816 @@
1
+ // ../../node_modules/.pnpm/preact@10.29.8/node_modules/preact/dist/preact.mjs
2
+ var n;
3
+ var l;
4
+ var u;
5
+ var t;
6
+ var i;
7
+ var r;
8
+ var o;
9
+ var e;
10
+ var f;
11
+ var c;
12
+ var a;
13
+ var s;
14
+ var h;
15
+ var p;
16
+ var v;
17
+ var y;
18
+ var d = {};
19
+ var w = [];
20
+ var _ = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
21
+ var g = Array.isArray;
22
+ function m(n2, l3) {
23
+ for (var u4 in l3) n2[u4] = l3[u4];
24
+ return n2;
25
+ }
26
+ function b(n2) {
27
+ n2 && n2.parentNode && n2.parentNode.removeChild(n2);
28
+ }
29
+ function k(l3, u4, t3) {
30
+ var i3, r3, o3, e3 = {};
31
+ for (o3 in u4) "key" == o3 ? i3 = u4[o3] : "ref" == o3 ? r3 = u4[o3] : e3[o3] = u4[o3];
32
+ if (arguments.length > 2 && (e3.children = arguments.length > 3 ? n.call(arguments, 2) : t3), "function" == typeof l3 && null != l3.defaultProps) for (o3 in l3.defaultProps) void 0 === e3[o3] && (e3[o3] = l3.defaultProps[o3]);
33
+ return x(l3, e3, i3, r3, null);
34
+ }
35
+ function x(n2, t3, i3, r3, o3) {
36
+ var e3 = { type: n2, props: t3, key: i3, ref: r3, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: null == o3 ? ++u : o3, __i: -1, __u: 0 };
37
+ return null == o3 && null != l.vnode && l.vnode(e3), e3;
38
+ }
39
+ function S(n2) {
40
+ return n2.children;
41
+ }
42
+ function C(n2, l3) {
43
+ this.props = n2, this.context = l3;
44
+ }
45
+ function $(n2, l3) {
46
+ if (null == l3) return n2.__ ? $(n2.__, n2.__i + 1) : null;
47
+ for (var u4; l3 < n2.__k.length; l3++) if (null != (u4 = n2.__k[l3]) && null != u4.__e) return u4.__e;
48
+ return "function" == typeof n2.type ? $(n2) : null;
49
+ }
50
+ function I(n2) {
51
+ if (n2.__P && n2.__d) {
52
+ var u4 = n2.__v, t3 = u4.__e, i3 = [], r3 = [], o3 = m({}, u4);
53
+ o3.__v = u4.__v + 1, l.vnode && l.vnode(o3), q(n2.__P, o3, u4, n2.__n, n2.__P.namespaceURI, 32 & u4.__u ? [t3] : null, i3, null == t3 ? $(u4) : t3, !!(32 & u4.__u), r3), o3.__v = u4.__v, o3.__.__k[o3.__i] = o3, D(i3, o3, r3), u4.__e = u4.__ = null, o3.__e != t3 && P(o3);
54
+ }
55
+ }
56
+ function P(n2) {
57
+ if (null != (n2 = n2.__) && null != n2.__c) return n2.__e = n2.__c.base = null, n2.__k.some(function(l3) {
58
+ if (null != l3 && null != l3.__e) return n2.__e = n2.__c.base = l3.__e;
59
+ }), P(n2);
60
+ }
61
+ function A(n2) {
62
+ (!n2.__d && (n2.__d = true) && i.push(n2) && !H.__r++ || r != l.debounceRendering) && ((r = l.debounceRendering) || o)(H);
63
+ }
64
+ function H() {
65
+ try {
66
+ for (var n2, l3 = 1; i.length; ) i.length > l3 && i.sort(e), n2 = i.shift(), l3 = i.length, I(n2);
67
+ } finally {
68
+ i.length = H.__r = 0;
69
+ }
70
+ }
71
+ function L(n2, l3, u4, t3, i3, r3, o3, e3, f4, c3, a3) {
72
+ var s3, h3, p3, v3, y3, _3, g4 = t3 && t3.__k || w, m3 = l3.length;
73
+ for (f4 = T(u4, l3, g4, f4, m3), s3 = 0; s3 < m3; s3++) null != (p3 = u4.__k[s3]) && (h3 = -1 != p3.__i && g4[p3.__i] || d, p3.__i = s3, _3 = q(n2, p3, h3, i3, r3, o3, e3, f4, c3, a3), v3 = p3.__e, p3.ref && h3.ref != p3.ref && (h3.ref && J(h3.ref, null, p3), a3.push(p3.ref, p3.__c || v3, p3)), null == y3 && null != v3 && (y3 = v3), 4 & p3.__u ? (f4 = j(p3, f4, n2), h3.__e && (h3.__e = null)) : "function" == typeof p3.type && void 0 !== _3 ? f4 = _3 : v3 && (f4 = v3.nextSibling), p3.__u &= -7);
74
+ return u4.__e = y3, f4;
75
+ }
76
+ function T(n2, l3, u4, t3, i3) {
77
+ var r3, o3, e3, f4, c3, a3 = u4.length, s3 = a3, h3 = 0;
78
+ for (n2.__k = new Array(i3), r3 = 0; r3 < i3; r3++) null != (o3 = l3[r3]) && "boolean" != typeof o3 && "function" != typeof o3 ? ("string" == typeof o3 || "number" == typeof o3 || "bigint" == typeof o3 || o3.constructor == String ? o3 = n2.__k[r3] = x(null, o3, null, null, null) : g(o3) ? o3 = n2.__k[r3] = x(S, { children: o3 }, null, null, null) : void 0 === o3.constructor && o3.__b > 0 ? o3 = n2.__k[r3] = x(o3.type, o3.props, o3.key, o3.ref ? o3.ref : null, o3.__v) : n2.__k[r3] = o3, f4 = r3 + h3, o3.__ = n2, o3.__b = n2.__b + 1, e3 = null, -1 != (c3 = o3.__i = O(o3, u4, f4, s3)) && (s3--, (e3 = u4[c3]) && (e3.__u |= 2)), null == e3 || null == e3.__v ? (-1 == c3 && (i3 > a3 ? h3-- : i3 < a3 && h3++), "function" != typeof o3.type && (o3.__u |= 4)) : c3 != f4 && (c3 == f4 - 1 ? h3-- : c3 == f4 + 1 ? h3++ : (c3 > f4 ? h3-- : h3++, o3.__u |= 4))) : n2.__k[r3] = null;
79
+ if (s3) for (r3 = 0; r3 < a3; r3++) null != (e3 = u4[r3]) && 0 == (2 & e3.__u) && (e3.__e == t3 && (t3 = $(e3)), K(e3, e3));
80
+ return t3;
81
+ }
82
+ function j(n2, l3, u4) {
83
+ var t3, i3;
84
+ if ("function" == typeof n2.type) {
85
+ for (t3 = n2.__k, i3 = 0; t3 && i3 < t3.length; i3++) t3[i3] && (t3[i3].__ = n2, l3 = j(t3[i3], l3, u4));
86
+ return l3;
87
+ }
88
+ n2.__e != l3 && (l3 && n2.type && !l3.parentNode && (l3 = $(n2)), l3 = u4.insertBefore(n2.__e, l3 || null));
89
+ do {
90
+ l3 = l3 && l3.nextSibling;
91
+ } while (null != l3 && 8 == l3.nodeType);
92
+ return l3;
93
+ }
94
+ function F(n2, l3) {
95
+ return l3 = l3 || [], null == n2 || "boolean" == typeof n2 || (g(n2) ? n2.some(function(n3) {
96
+ F(n3, l3);
97
+ }) : l3.push(n2)), l3;
98
+ }
99
+ function O(n2, l3, u4, t3) {
100
+ var i3, r3, o3, e3 = n2.key, f4 = n2.type, c3 = l3[u4], a3 = null != c3 && 0 == (2 & c3.__u);
101
+ if (null === c3 && null == e3 || a3 && e3 == c3.key && f4 == c3.type) return u4;
102
+ if (t3 > (a3 ? 1 : 0)) {
103
+ for (i3 = u4 - 1, r3 = u4 + 1; i3 >= 0 || r3 < l3.length; ) if (null != (c3 = l3[o3 = i3 >= 0 ? i3-- : r3++]) && 0 == (2 & c3.__u) && e3 == c3.key && f4 == c3.type) return o3;
104
+ }
105
+ return -1;
106
+ }
107
+ function z(n2, l3, u4) {
108
+ "-" == l3[0] ? n2.setProperty(l3, null == u4 ? "" : u4) : n2[l3] = null == u4 ? "" : "number" != typeof u4 || _.test(l3) ? u4 : u4 + "px";
109
+ }
110
+ function N(n2, l3, u4, t3, i3) {
111
+ var r3, o3;
112
+ n: if ("style" == l3) if ("string" == typeof u4) n2.style.cssText = u4;
113
+ else {
114
+ if ("string" == typeof t3 && (n2.style.cssText = t3 = ""), t3) for (l3 in t3) u4 && l3 in u4 || z(n2.style, l3, "");
115
+ if (u4) for (l3 in u4) t3 && u4[l3] == t3[l3] || z(n2.style, l3, u4[l3]);
116
+ }
117
+ else if ("o" == l3[0] && "n" == l3[1]) r3 = l3 != (l3 = l3.replace(s, "$1")), o3 = l3.toLowerCase(), l3 = o3 in n2 || "onFocusOut" == l3 || "onFocusIn" == l3 ? o3.slice(2) : l3.slice(2), n2.l || (n2.l = {}), n2.l[l3 + r3] = u4, u4 ? t3 ? u4[a] = t3[a] : (u4[a] = h, n2.addEventListener(l3, r3 ? v : p, r3)) : n2.removeEventListener(l3, r3 ? v : p, r3);
118
+ else {
119
+ if ("http://www.w3.org/2000/svg" == i3) l3 = l3.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
120
+ else if ("width" != l3 && "height" != l3 && "href" != l3 && "list" != l3 && "form" != l3 && "tabIndex" != l3 && "download" != l3 && "rowSpan" != l3 && "colSpan" != l3 && "role" != l3 && "popover" != l3 && l3 in n2) try {
121
+ n2[l3] = null == u4 ? "" : u4;
122
+ break n;
123
+ } catch (n3) {
124
+ }
125
+ "function" == typeof u4 || (null == u4 || false === u4 && "-" != l3[4] ? n2.removeAttribute(l3) : n2.setAttribute(l3, "popover" == l3 && 1 == u4 ? "" : u4));
126
+ }
127
+ }
128
+ function V(n2) {
129
+ return function(u4) {
130
+ if (this.l) {
131
+ var t3 = this.l[u4.type + n2];
132
+ if (null == u4[c]) u4[c] = h++;
133
+ else if (u4[c] < t3[a]) return;
134
+ return t3(l.event ? l.event(u4) : u4);
135
+ }
136
+ };
137
+ }
138
+ function q(n2, u4, t3, i3, r3, o3, e3, f4, c3, a3) {
139
+ var s3, h3, p3, v3, y3, d3, _3, k4, x4, M3, I2, P4, A4, H3, T4, j4, F3 = u4.type;
140
+ if (void 0 !== u4.constructor) return null;
141
+ 128 & t3.__u && (c3 = !!(32 & t3.__u), o3 = [f4 = u4.__e = t3.__e]), (s3 = l.__b) && s3(u4);
142
+ n: if ("function" == typeof F3) {
143
+ h3 = e3.length;
144
+ try {
145
+ if (x4 = u4.props, M3 = F3.prototype && F3.prototype.render, I2 = (s3 = F3.contextType) && i3[s3.__c], P4 = s3 ? I2 ? I2.props.value : s3.__ : i3, t3.__c ? k4 = (p3 = u4.__c = t3.__c).__ = p3.__E : (M3 ? u4.__c = p3 = new F3(x4, P4) : (u4.__c = p3 = new C(x4, P4), p3.constructor = F3, p3.render = Q), I2 && I2.sub(p3), p3.state || (p3.state = {}), p3.__n = i3, v3 = p3.__d = true, p3.__h = [], p3._sb = []), M3 && null == p3.__s && (p3.__s = p3.state), M3 && null != F3.getDerivedStateFromProps && (p3.__s == p3.state && (p3.__s = m({}, p3.__s)), m(p3.__s, F3.getDerivedStateFromProps(x4, p3.__s))), y3 = p3.props, d3 = p3.state, p3.__v = u4, v3) M3 && null == F3.getDerivedStateFromProps && null != p3.componentWillMount && p3.componentWillMount(), M3 && null != p3.componentDidMount && p3.__h.push(p3.componentDidMount);
146
+ else {
147
+ if (M3 && null == F3.getDerivedStateFromProps && x4 !== y3 && null != p3.componentWillReceiveProps && p3.componentWillReceiveProps(x4, P4), u4.__v == t3.__v || !p3.__e && null != p3.shouldComponentUpdate && false === p3.shouldComponentUpdate(x4, p3.__s, P4)) {
148
+ u4.__v != t3.__v && (p3.props = x4, p3.state = p3.__s, p3.__d = false), u4.__e = t3.__e, u4.__k = t3.__k, u4.__k.some(function(n3) {
149
+ n3 && (n3.__ = u4);
150
+ }), w.push.apply(p3.__h, p3._sb), p3._sb = [], p3.__h.length && e3.push(p3), f4 = $(t3);
151
+ break n;
152
+ }
153
+ null != p3.componentWillUpdate && p3.componentWillUpdate(x4, p3.__s, P4), M3 && null != p3.componentDidUpdate && p3.__h.push(function() {
154
+ p3.componentDidUpdate(y3, d3, _3);
155
+ });
156
+ }
157
+ if (p3.context = P4, p3.props = x4, p3.__P = n2, p3.__e = false, A4 = l.__r, H3 = 0, M3) p3.state = p3.__s, p3.__d = false, A4 && A4(u4), s3 = p3.render(p3.props, p3.state, p3.context), w.push.apply(p3.__h, p3._sb), p3._sb = [];
158
+ else do {
159
+ p3.__d = false, A4 && A4(u4), s3 = p3.render(p3.props, p3.state, p3.context), p3.state = p3.__s;
160
+ } while (p3.__d && ++H3 < 25);
161
+ p3.state = p3.__s, null != p3.getChildContext && (i3 = m(m({}, i3), p3.getChildContext())), M3 && !v3 && null != p3.getSnapshotBeforeUpdate && (_3 = p3.getSnapshotBeforeUpdate(y3, d3)), T4 = null != s3 && s3.type === S && null == s3.key ? E(s3.props.children) : s3, f4 = L(n2, g(T4) ? T4 : [T4], u4, t3, i3, r3, o3, e3, f4, c3, a3), p3.base = u4.__e, u4.__u &= -161, p3.__h.length && e3.push(p3), k4 && (p3.__E = p3.__ = null);
162
+ } catch (n3) {
163
+ if (e3.length = h3, u4.__v = null, c3 || null != o3) {
164
+ if (n3.then) {
165
+ for (u4.__u |= c3 ? 160 : 128; f4 && 8 == f4.nodeType && f4.nextSibling; ) f4 = f4.nextSibling;
166
+ null != o3 && (o3[o3.indexOf(f4)] = null), u4.__e = f4;
167
+ } else if (null != o3) for (j4 = o3.length; j4--; ) b(o3[j4]);
168
+ } else u4.__e = t3.__e;
169
+ null == u4.__k && (u4.__k = t3.__k || []), n3.then || B(u4), l.__e(n3, u4, t3);
170
+ }
171
+ } else null == o3 && u4.__v == t3.__v ? (u4.__k = t3.__k, u4.__e = t3.__e) : f4 = u4.__e = G(t3.__e, u4, t3, i3, r3, o3, e3, c3, a3);
172
+ return (s3 = l.diffed) && s3(u4), 128 & u4.__u ? void 0 : f4;
173
+ }
174
+ function B(n2) {
175
+ n2 && (n2.__c && (n2.__c.__e = true), n2.__k && n2.__k.some(B));
176
+ }
177
+ function D(n2, u4, t3) {
178
+ for (var i3 = 0; i3 < t3.length; i3++) J(t3[i3], t3[++i3], t3[++i3]);
179
+ l.__c && l.__c(u4, n2), n2.some(function(u5) {
180
+ try {
181
+ n2 = u5.__h, u5.__h = [], n2.some(function(n3) {
182
+ n3.call(u5);
183
+ });
184
+ } catch (n3) {
185
+ l.__e(n3, u5.__v);
186
+ }
187
+ });
188
+ }
189
+ function E(n2) {
190
+ return "object" != typeof n2 || null == n2 || n2.__b > 0 ? n2 : g(n2) ? n2.map(E) : void 0 !== n2.constructor ? null : m({}, n2);
191
+ }
192
+ function G(u4, t3, i3, r3, o3, e3, f4, c3, a3) {
193
+ var s3, h3, p3, v3, y3, w4, _3, m3 = i3.props || d, k4 = t3.props, x4 = t3.type;
194
+ if ("svg" == x4 ? o3 = "http://www.w3.org/2000/svg" : "math" == x4 ? o3 = "http://www.w3.org/1998/Math/MathML" : o3 || (o3 = "http://www.w3.org/1999/xhtml"), null != e3) {
195
+ for (s3 = 0; s3 < e3.length; s3++) if ((y3 = e3[s3]) && "setAttribute" in y3 == !!x4 && (x4 ? y3.localName == x4 : 3 == y3.nodeType)) {
196
+ u4 = y3, e3[s3] = null;
197
+ break;
198
+ }
199
+ }
200
+ if (null == u4) {
201
+ if (null == x4) return document.createTextNode(k4);
202
+ u4 = document.createElementNS(o3, x4, k4.is && k4), c3 && (l.__m && l.__m(t3, e3), c3 = false), e3 = null;
203
+ }
204
+ if (null == x4) m3 === k4 || c3 && u4.data == k4 || (u4.data = k4);
205
+ else {
206
+ if (e3 = "textarea" == x4 && null != k4.defaultValue ? null : e3 && n.call(u4.childNodes), !c3 && null != e3) for (m3 = {}, s3 = 0; s3 < u4.attributes.length; s3++) m3[(y3 = u4.attributes[s3]).name] = y3.value;
207
+ for (s3 in m3) y3 = m3[s3], "dangerouslySetInnerHTML" == s3 ? p3 = y3 : "children" == s3 || s3 in k4 || "value" == s3 && "defaultValue" in k4 || "checked" == s3 && "defaultChecked" in k4 || N(u4, s3, null, y3, o3);
208
+ for (s3 in k4) y3 = k4[s3], "children" == s3 ? v3 = y3 : "dangerouslySetInnerHTML" == s3 ? h3 = y3 : "value" == s3 ? w4 = y3 : "checked" == s3 ? _3 = y3 : c3 && "function" != typeof y3 || m3[s3] === y3 || N(u4, s3, y3, m3[s3], o3);
209
+ if (h3) c3 || p3 && (h3.__html == p3.__html || h3.__html == u4.innerHTML) || (u4.innerHTML = h3.__html), t3.__k = [];
210
+ else if (p3 && (u4.innerHTML = ""), L("template" == t3.type ? u4.content : u4, g(v3) ? v3 : [v3], t3, i3, r3, "foreignObject" == x4 ? "http://www.w3.org/1999/xhtml" : o3, e3, f4, e3 ? e3[0] : i3.__k && $(i3, 0), c3, a3), null != e3) for (s3 = e3.length; s3--; ) b(e3[s3]);
211
+ c3 && "textarea" != x4 || (s3 = "value", "progress" == x4 && null == w4 ? u4.removeAttribute("value") : null != w4 && (w4 !== u4[s3] || "progress" == x4 && !w4 || "option" == x4 && w4 != m3[s3]) && N(u4, s3, w4, m3[s3], o3), s3 = "checked", null != _3 && _3 != u4[s3] && N(u4, s3, _3, m3[s3], o3));
212
+ }
213
+ return u4;
214
+ }
215
+ function J(n2, u4, t3) {
216
+ try {
217
+ if ("function" == typeof n2) {
218
+ var i3 = "function" == typeof n2.__u;
219
+ i3 && n2.__u(), i3 && null == u4 || (n2.__u = n2(u4));
220
+ } else n2.current = u4;
221
+ } catch (n3) {
222
+ l.__e(n3, t3);
223
+ }
224
+ }
225
+ function K(n2, u4, t3) {
226
+ var i3, r3;
227
+ if (l.unmount && l.unmount(n2), (i3 = n2.ref) && (i3.current && i3.current != n2.__e || J(i3, null, u4)), null != (i3 = n2.__c)) {
228
+ if (i3.componentWillUnmount) try {
229
+ i3.componentWillUnmount();
230
+ } catch (n3) {
231
+ l.__e(n3, u4);
232
+ }
233
+ i3.base = i3.__P = i3.__n = null;
234
+ }
235
+ if (i3 = n2.__k) for (r3 = 0; r3 < i3.length; r3++) i3[r3] && K(i3[r3], u4, t3 || "function" != typeof n2.type);
236
+ t3 || b(n2.__e), n2.__c = n2.__ = n2.__e = void 0;
237
+ }
238
+ function Q(n2, l3, u4) {
239
+ return this.constructor(n2, u4);
240
+ }
241
+ function R(u4, t3, i3) {
242
+ var r3, o3, e3, f4;
243
+ t3 == document && (t3 = document.documentElement), l.__ && l.__(u4, t3), o3 = (r3 = "function" == typeof i3) ? null : i3 && i3.__k || t3.__k, e3 = [], f4 = [], q(t3, u4 = (!r3 && i3 || t3).__k = k(S, null, [u4]), o3 || d, d, t3.namespaceURI, !r3 && i3 ? [i3] : o3 ? null : t3.firstChild ? n.call(t3.childNodes) : null, e3, !r3 && i3 ? i3 : o3 ? o3.__e : t3.firstChild, r3, f4), D(e3, u4, f4), u4.props.children = null;
244
+ }
245
+ function X(n2) {
246
+ function l3(n3) {
247
+ var u4, t3;
248
+ return this.getChildContext || (u4 = /* @__PURE__ */ new Set(), (t3 = {})[l3.__c] = this, this.getChildContext = function() {
249
+ return t3;
250
+ }, this.componentWillUnmount = function() {
251
+ u4 = null;
252
+ }, this.shouldComponentUpdate = function(n4) {
253
+ this.props.value != n4.value && u4.forEach(function(n5) {
254
+ n5.__e = true, A(n5);
255
+ });
256
+ }, this.sub = function(n4) {
257
+ u4.add(n4);
258
+ var l4 = n4.componentWillUnmount;
259
+ n4.componentWillUnmount = function() {
260
+ u4 && u4.delete(n4), l4 && l4.call(n4);
261
+ };
262
+ }), n3.children;
263
+ }
264
+ return l3.__c = "__cC" + y++, l3.__ = n2, l3.Provider = l3.__l = (l3.Consumer = function(n3, l4) {
265
+ return n3.children(l4);
266
+ }).contextType = l3, l3;
267
+ }
268
+ n = w.slice, l = { __e: function(n2, l3, u4, t3) {
269
+ for (var i3, r3, o3; l3 = l3.__; ) if ((i3 = l3.__c) && !i3.__) try {
270
+ if ((r3 = i3.constructor) && null != r3.getDerivedStateFromError && (i3.setState(r3.getDerivedStateFromError(n2)), o3 = i3.__d), null != i3.componentDidCatch && (i3.componentDidCatch(n2, t3 || {}), o3 = i3.__d), o3) return i3.__E = i3;
271
+ } catch (l4) {
272
+ n2 = l4;
273
+ }
274
+ throw n2;
275
+ } }, u = 0, t = function(n2) {
276
+ return null != n2 && void 0 === n2.constructor;
277
+ }, C.prototype.setState = function(n2, l3) {
278
+ var u4;
279
+ u4 = null != this.__s && this.__s != this.state ? this.__s : this.__s = m({}, this.state), "function" == typeof n2 && (n2 = n2(m({}, u4), this.props)), n2 && m(u4, n2), null != n2 && this.__v && (l3 && this._sb.push(l3), A(this));
280
+ }, C.prototype.forceUpdate = function(n2) {
281
+ this.__v && (this.__e = true, n2 && this.__h.push(n2), A(this));
282
+ }, C.prototype.render = S, i = [], o = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, e = function(n2, l3) {
283
+ return n2.__v.__b - l3.__v.__b;
284
+ }, H.__r = 0, f = Math.random().toString(8), c = "__d" + f, a = "__a" + f, s = /(PointerCapture)$|Capture$/i, h = 0, p = V(false), v = V(true), y = 0;
285
+
286
+ // ../../node_modules/.pnpm/preact@10.29.8/node_modules/preact/hooks/dist/hooks.mjs
287
+ var t2;
288
+ var r2;
289
+ var u2;
290
+ var i2;
291
+ var o2 = 0;
292
+ var f2 = [];
293
+ var c2 = l;
294
+ var e2 = c2.__b;
295
+ var a2 = c2.__r;
296
+ var v2 = c2.diffed;
297
+ var l2 = c2.__c;
298
+ var m2 = c2.unmount;
299
+ var p2 = c2.__;
300
+ function s2(n2, t3) {
301
+ c2.__h && c2.__h(r2, n2, o2 || t3), o2 = 0;
302
+ var u4 = r2.__H || (r2.__H = { __: [], __h: [] });
303
+ return n2 >= u4.__.length && u4.__.push({}), u4.__[n2];
304
+ }
305
+ function d2(n2) {
306
+ return o2 = 1, y2(D2, n2);
307
+ }
308
+ function y2(n2, u4, i3) {
309
+ var o3 = s2(t2++, 2);
310
+ if (o3.t = n2, !o3.__c && (o3.__ = [i3 ? i3(u4) : D2(void 0, u4), function(n3) {
311
+ var t3 = o3.__N ? o3.__N[0] : o3.__[0], r3 = o3.t(t3, n3);
312
+ t3 !== r3 && (o3.__N = [r3, o3.__[1]], o3.__c.setState({}));
313
+ }], o3.__c = r2, !r2.__f)) {
314
+ var f4 = function(n3, t3, r3) {
315
+ if (!o3.__c.__H) return true;
316
+ var u5 = false, i4 = o3.__c.props !== n3;
317
+ if (o3.__c.__H.__.some(function(n4) {
318
+ if (n4.__N) {
319
+ u5 = true;
320
+ var t4 = n4.__[0];
321
+ n4.__ = n4.__N, n4.__N = void 0, t4 !== n4.__[0] && (i4 = true);
322
+ }
323
+ }), c3) {
324
+ var f5 = c3.call(this, n3, t3, r3);
325
+ return u5 ? f5 || i4 : f5;
326
+ }
327
+ return !u5 || i4;
328
+ };
329
+ r2.__f = true;
330
+ var c3 = r2.shouldComponentUpdate, e3 = r2.componentWillUpdate;
331
+ r2.componentWillUpdate = function(n3, t3, r3) {
332
+ if (this.__e) {
333
+ var u5 = c3;
334
+ c3 = void 0, f4(n3, t3, r3), c3 = u5;
335
+ }
336
+ e3 && e3.call(this, n3, t3, r3);
337
+ }, r2.shouldComponentUpdate = f4;
338
+ }
339
+ return o3.__N || o3.__;
340
+ }
341
+ function h2(n2, u4) {
342
+ var i3 = s2(t2++, 3);
343
+ !c2.__s && C2(i3.__H, u4) && (i3.__ = n2, i3.u = u4, r2.__H.__h.push(i3));
344
+ }
345
+ function _2(n2, u4) {
346
+ var i3 = s2(t2++, 4);
347
+ !c2.__s && C2(i3.__H, u4) && (i3.__ = n2, i3.u = u4, r2.__h.push(i3));
348
+ }
349
+ function A2(n2) {
350
+ return o2 = 5, T2(function() {
351
+ return { current: n2 };
352
+ }, []);
353
+ }
354
+ function T2(n2, r3) {
355
+ var u4 = s2(t2++, 7);
356
+ return C2(u4.__H, r3) && (u4.__ = n2(), u4.__H = r3, u4.__h = n2), u4.__;
357
+ }
358
+ function q2(n2, t3) {
359
+ return o2 = 8, T2(function() {
360
+ return n2;
361
+ }, t3);
362
+ }
363
+ function x2(n2) {
364
+ var u4 = r2.context[n2.__c], i3 = s2(t2++, 9);
365
+ return i3.c = n2, u4 ? (null == i3.__ && (i3.__ = true, u4.sub(r2)), u4.props.value) : n2.__;
366
+ }
367
+ function j2() {
368
+ for (var n2; n2 = f2.shift(); ) {
369
+ var t3 = n2.__H;
370
+ if (n2.__P && t3) try {
371
+ t3.__h.some(z2), t3.__h.some(B2), t3.__h = [];
372
+ } catch (r3) {
373
+ t3.__h = [], c2.__e(r3, n2.__v);
374
+ }
375
+ }
376
+ }
377
+ c2.__b = function(n2) {
378
+ r2 = null, e2 && e2(n2);
379
+ }, c2.__ = function(n2, t3) {
380
+ n2 && t3.__k && t3.__k.__m && (n2.__m = t3.__k.__m), p2 && p2(n2, t3);
381
+ }, c2.__r = function(n2) {
382
+ a2 && a2(n2), t2 = 0;
383
+ var i3 = (r2 = n2.__c).__H;
384
+ i3 && (u2 === r2 ? (i3.__h = [], r2.__h = [], i3.__.some(function(n3) {
385
+ n3.__N && (n3.__ = n3.__N), n3.u = n3.__N = void 0;
386
+ })) : (i3.__h.some(z2), i3.__h.some(B2), i3.__h = [], t2 = 0)), u2 = r2;
387
+ }, c2.diffed = function(n2) {
388
+ v2 && v2(n2);
389
+ var t3 = n2.__c;
390
+ t3 && t3.__H && (t3.__H.__h.length && (1 !== f2.push(t3) && i2 === c2.requestAnimationFrame || ((i2 = c2.requestAnimationFrame) || w2)(j2)), t3.__H.__.some(function(n3) {
391
+ n3.u && (n3.__H = n3.u, n3.u = void 0);
392
+ })), u2 = r2 = null;
393
+ }, c2.__c = function(n2, t3) {
394
+ t3.some(function(n3) {
395
+ try {
396
+ n3.__h.some(z2), n3.__h = n3.__h.filter(function(n4) {
397
+ return !n4.__ || B2(n4);
398
+ });
399
+ } catch (r3) {
400
+ t3.some(function(n4) {
401
+ n4.__h && (n4.__h = []);
402
+ }), t3 = [], c2.__e(r3, n3.__v);
403
+ }
404
+ }), l2 && l2(n2, t3);
405
+ }, c2.unmount = function(n2) {
406
+ m2 && m2(n2);
407
+ var t3, r3 = n2.__c;
408
+ r3 && r3.__H && (r3.__H.__.some(function(n3) {
409
+ try {
410
+ z2(n3);
411
+ } catch (n4) {
412
+ t3 = n4;
413
+ }
414
+ }), r3.__H = void 0, t3 && c2.__e(t3, r3.__v));
415
+ };
416
+ var k2 = "function" == typeof requestAnimationFrame;
417
+ function w2(n2) {
418
+ var t3, r3 = function() {
419
+ clearTimeout(u4), k2 && cancelAnimationFrame(t3), setTimeout(n2);
420
+ }, u4 = setTimeout(r3, 35);
421
+ k2 && (t3 = requestAnimationFrame(r3));
422
+ }
423
+ function z2(n2) {
424
+ var t3 = r2, u4 = n2.__c;
425
+ "function" == typeof u4 && (n2.__c = void 0, u4()), r2 = t3;
426
+ }
427
+ function B2(n2) {
428
+ var t3 = r2;
429
+ n2.__c = n2.__(), r2 = t3;
430
+ }
431
+ function C2(n2, t3) {
432
+ return !n2 || n2.length !== t3.length || t3.some(function(t4, r3) {
433
+ return t4 !== n2[r3];
434
+ });
435
+ }
436
+ function D2(n2, t3) {
437
+ return "function" == typeof t3 ? t3(n2) : t3;
438
+ }
439
+
440
+ // ../../node_modules/.pnpm/preact@10.29.8/node_modules/preact/compat/dist/compat.mjs
441
+ function g3(n2, t3) {
442
+ for (var e3 in t3) n2[e3] = t3[e3];
443
+ return n2;
444
+ }
445
+ function E2(n2, t3) {
446
+ for (var e3 in n2) if ("__source" !== e3 && !(e3 in t3)) return true;
447
+ for (var r3 in t3) if ("__source" !== r3 && n2[r3] !== t3[r3]) return true;
448
+ return false;
449
+ }
450
+ function C3(n2, t3) {
451
+ var e3 = t3(), r3 = d2({ t: { __: e3, u: t3 } }), u4 = r3[0].t, o3 = r3[1];
452
+ return _2(function() {
453
+ u4.__ = e3, u4.u = t3, R2(u4) && o3({ t: u4 });
454
+ }, [n2, e3, t3]), h2(function() {
455
+ return R2(u4) && o3({ t: u4 }), n2(function() {
456
+ R2(u4) && o3({ t: u4 });
457
+ });
458
+ }, [n2]), e3;
459
+ }
460
+ function R2(n2) {
461
+ try {
462
+ return !((t3 = n2.__) === (e3 = n2.u()) && (0 !== t3 || 1 / t3 == 1 / e3) || t3 != t3 && e3 != e3);
463
+ } catch (n3) {
464
+ return true;
465
+ }
466
+ var t3, e3;
467
+ }
468
+ function x3(n2) {
469
+ n2();
470
+ }
471
+ function w3(n2) {
472
+ return n2;
473
+ }
474
+ function k3() {
475
+ return [false, x3];
476
+ }
477
+ function M2(n2, t3) {
478
+ this.props = n2, this.context = t3;
479
+ }
480
+ function N2(n2, e3) {
481
+ function r3(n3) {
482
+ var t3 = this.props.ref;
483
+ return t3 != n3.ref && t3 && ("function" == typeof t3 ? t3(null) : t3.current = null), e3 ? !e3(this.props, n3) || t3 != n3.ref : E2(this.props, n3);
484
+ }
485
+ function u4(e4) {
486
+ return this.shouldComponentUpdate = r3, k(n2, e4);
487
+ }
488
+ return u4.displayName = "Memo(" + (n2.displayName || n2.name) + ")", u4.__f = u4.prototype.isReactComponent = true, u4.type = n2, u4;
489
+ }
490
+ (M2.prototype = new C()).isPureReactComponent = true, M2.prototype.shouldComponentUpdate = function(n2, t3) {
491
+ return E2(this.props, n2) || E2(this.state, t3);
492
+ };
493
+ var T3 = l.__b;
494
+ l.__b = function(n2) {
495
+ n2.type && n2.type.__f && n2.ref && (n2.props.ref = n2.ref, n2.ref = null), T3 && T3(n2);
496
+ };
497
+ var A3 = "undefined" != typeof Symbol && Symbol.for && /* @__PURE__ */ Symbol.for("react.forward_ref") || 3911;
498
+ var O2 = l.__e;
499
+ l.__e = function(n2, t3, e3, r3) {
500
+ if (n2.then) {
501
+ for (var u4, o3 = t3; o3 = o3.__; ) if ((u4 = o3.__c) && u4.__c) return null == t3.__e && (t3.__e = e3.__e, t3.__k = e3.__k || []), u4.__c(n2, t3);
502
+ }
503
+ O2(n2, t3, e3, r3);
504
+ };
505
+ var U2 = l.unmount;
506
+ function V2(n2, t3, e3) {
507
+ return n2 && (n2.__c && n2.__c.__H && (n2.__c.__H.__.forEach(function(n3) {
508
+ "function" == typeof n3.__c && n3.__c();
509
+ }), n2.__c.__H = null), null != (n2 = g3({}, n2)).__c && (n2.__c.__P === e3 && (n2.__c.__P = t3), n2.__c.__e = true, n2.__c = null), n2.__k = n2.__k && n2.__k.map(function(n3) {
510
+ return V2(n3, t3, e3);
511
+ })), n2;
512
+ }
513
+ function W2(n2, t3, e3) {
514
+ return n2 && e3 && (n2.__v = null, n2.__k = n2.__k && n2.__k.map(function(n3) {
515
+ return W2(n3, t3, e3);
516
+ }), n2.__c && n2.__c.__P === t3 && (n2.__e && e3.appendChild(n2.__e), n2.__c.__e = true, n2.__c.__P = e3)), n2;
517
+ }
518
+ function P3() {
519
+ this.__u = 0, this.o = null, this.__b = null;
520
+ }
521
+ function j3(n2) {
522
+ var t3 = n2.__ && n2.__.__c;
523
+ return t3 && t3.__a && t3.__a(n2);
524
+ }
525
+ function B3() {
526
+ this.i = null, this.l = null;
527
+ }
528
+ l.unmount = function(n2) {
529
+ var t3 = n2.__c;
530
+ t3 && (t3.__z = true), t3 && t3.__R && t3.__R(), t3 && 32 & n2.__u && (n2.type = null), U2 && U2(n2);
531
+ }, (P3.prototype = new C()).__c = function(n2, t3) {
532
+ var e3 = t3.__c, r3 = this;
533
+ null == r3.o && (r3.o = []), r3.o.push(e3);
534
+ var u4 = j3(r3.__v), o3 = false, i3 = function() {
535
+ o3 || r3.__z || (o3 = true, e3.__R = null, u4 ? u4(f4) : f4());
536
+ };
537
+ e3.__R = i3;
538
+ var l3 = e3.__P;
539
+ e3.__P = null;
540
+ var f4 = function() {
541
+ if (!--r3.__u) {
542
+ if (r3.state.__a) {
543
+ var n3 = r3.state.__a;
544
+ r3.__v.__k[0] = W2(n3, n3.__c.__P, n3.__c.__O);
545
+ }
546
+ var t4;
547
+ for (r3.setState({ __a: r3.__b = null }); t4 = r3.o.pop(); ) t4.__P = l3, t4.forceUpdate();
548
+ }
549
+ };
550
+ r3.__u++ || 32 & t3.__u || r3.setState({ __a: r3.__b = r3.__v.__k[0] }), n2.then(i3, i3);
551
+ }, P3.prototype.componentWillUnmount = function() {
552
+ this.o = [];
553
+ }, P3.prototype.render = function(n2, e3) {
554
+ if (this.__b) {
555
+ if (this.__v.__k) {
556
+ var r3 = document.createElement("div"), o3 = this.__v.__k[0].__c;
557
+ this.__v.__k[0] = V2(this.__b, r3, o3.__O = o3.__P);
558
+ }
559
+ this.__b = null;
560
+ }
561
+ var i3 = e3.__a && k(S, null, n2.fallback);
562
+ return i3 && (i3.__u &= -33), [k(S, null, e3.__a ? null : n2.children), i3];
563
+ };
564
+ var H2 = function(n2, t3, e3) {
565
+ if (++e3[1] === e3[0] && n2.l.delete(t3), n2.props.revealOrder && ("t" !== n2.props.revealOrder[0] || !n2.l.size)) for (e3 = n2.i; e3; ) {
566
+ for (; e3.length > 3; ) e3.pop()();
567
+ if (e3[1] < e3[0]) break;
568
+ n2.i = e3 = e3[2];
569
+ }
570
+ };
571
+ function Z(n2) {
572
+ return this.getChildContext = function() {
573
+ return n2.context;
574
+ }, n2.children;
575
+ }
576
+ function Y(n2) {
577
+ var e3 = this, r3 = n2.h;
578
+ if (e3.componentWillUnmount = function() {
579
+ R(null, e3.v), e3.v = null, e3.h = null;
580
+ }, e3.h && e3.h !== r3 && e3.componentWillUnmount(), !e3.v) {
581
+ for (var u4 = e3.__v; null !== u4 && !u4.__m && null !== u4.__; ) u4 = u4.__;
582
+ e3.h = r3, e3.v = { nodeType: 1, parentNode: r3, childNodes: [], __k: { __m: u4.__m }, contains: function() {
583
+ return true;
584
+ }, namespaceURI: r3.namespaceURI, insertBefore: function(n3, t3) {
585
+ this.childNodes.push(n3), e3.h.insertBefore(n3, t3);
586
+ }, removeChild: function(n3) {
587
+ this.childNodes.splice(this.childNodes.indexOf(n3) >>> 1, 1), e3.h.removeChild(n3);
588
+ } };
589
+ }
590
+ R(k(Z, { context: e3.context }, n2.__v), e3.v);
591
+ }
592
+ function $2(n2, e3) {
593
+ var r3 = k(Y, { __v: n2, h: e3 });
594
+ return r3.containerInfo = e3, r3;
595
+ }
596
+ (B3.prototype = new C()).__a = function(n2) {
597
+ var t3 = this, e3 = j3(t3.__v), r3 = t3.l.get(n2);
598
+ return r3[0]++, function(u4) {
599
+ var o3 = function() {
600
+ t3.props.revealOrder ? (r3.push(u4), H2(t3, n2, r3)) : u4();
601
+ };
602
+ e3 ? e3(o3) : o3();
603
+ };
604
+ }, B3.prototype.render = function(n2) {
605
+ this.i = null, this.l = /* @__PURE__ */ new Map();
606
+ var t3 = F(n2.children);
607
+ n2.revealOrder && "b" === n2.revealOrder[0] && t3.reverse();
608
+ for (var e3 = t3.length; e3--; ) this.l.set(t3[e3], this.i = [1, 0, this.i]);
609
+ return n2.children;
610
+ }, B3.prototype.componentDidUpdate = B3.prototype.componentDidMount = function() {
611
+ var n2 = this;
612
+ this.l.forEach(function(t3, e3) {
613
+ H2(n2, e3, t3);
614
+ });
615
+ };
616
+ var q3 = "undefined" != typeof Symbol && Symbol.for && /* @__PURE__ */ Symbol.for("react.element") || 60103;
617
+ var G2 = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/;
618
+ var J2 = /^on(Ani|Tra|Tou|BeforeInp|Compo)/;
619
+ var K2 = /[A-Z0-9]/g;
620
+ var Q2 = "undefined" != typeof document;
621
+ var X2 = function(n2) {
622
+ return ("undefined" != typeof Symbol && "symbol" == typeof /* @__PURE__ */ Symbol() ? /fil|che|rad/ : /fil|che|ra/).test(n2);
623
+ };
624
+ function nn(n2, t3, e3) {
625
+ return null == t3.__k && (t3.textContent = ""), R(n2, t3), "function" == typeof e3 && e3(), n2 ? n2.__c : null;
626
+ }
627
+ C.prototype.isReactComponent = true, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t3) {
628
+ Object.defineProperty(C.prototype, t3, { configurable: true, get: function() {
629
+ return this["UNSAFE_" + t3];
630
+ }, set: function(n2) {
631
+ Object.defineProperty(this, t3, { configurable: true, writable: true, value: n2 });
632
+ } });
633
+ });
634
+ var en = l.event;
635
+ l.event = function(n2) {
636
+ return en && (n2 = en(n2)), n2.persist = function() {
637
+ }, n2.isPropagationStopped = function() {
638
+ return this.cancelBubble;
639
+ }, n2.isDefaultPrevented = function() {
640
+ return this.defaultPrevented;
641
+ }, n2.nativeEvent = n2;
642
+ };
643
+ var rn;
644
+ var un = { configurable: true, get: function() {
645
+ return this.class;
646
+ } };
647
+ var on = l.vnode;
648
+ l.vnode = function(n2) {
649
+ "string" == typeof n2.type && (function(n3) {
650
+ var t3 = n3.props, e3 = n3.type, u4 = {}, o3 = -1 == e3.indexOf("-");
651
+ for (var i3 in t3) {
652
+ var l3 = t3[i3];
653
+ if (!("value" === i3 && "defaultValue" in t3 && null == l3 || Q2 && "children" === i3 && "noscript" === e3 || "class" === i3 || "className" === i3)) {
654
+ var f4 = i3.toLowerCase();
655
+ "defaultValue" === i3 && "value" in t3 && null == t3.value ? i3 = "value" : "download" === i3 && true === l3 ? l3 = "" : "translate" === f4 && "no" === l3 ? l3 = false : "o" === f4[0] && "n" === f4[1] ? "ondoubleclick" === f4 ? i3 = "ondblclick" : "onchange" !== f4 || "input" !== e3 && "textarea" !== e3 || X2(t3.type) ? "onfocus" === f4 ? i3 = "onfocusin" : "onblur" === f4 ? i3 = "onfocusout" : J2.test(i3) && (i3 = f4) : f4 = i3 = "oninput" : o3 && G2.test(i3) ? i3 = i3.replace(K2, "-$&").toLowerCase() : null === l3 && (l3 = void 0), "oninput" === f4 && u4[i3 = f4] && (i3 = "oninputCapture"), u4[i3] = l3;
656
+ }
657
+ }
658
+ "select" == e3 && (u4.multiple && Array.isArray(u4.value) && (u4.value = F(t3.children).forEach(function(n4) {
659
+ n4.props.selected = -1 != u4.value.indexOf(n4.props.value);
660
+ })), null != u4.defaultValue && (u4.value = F(t3.children).forEach(function(n4) {
661
+ n4.props.selected = u4.multiple ? -1 != u4.defaultValue.indexOf(n4.props.value) : u4.defaultValue == n4.props.value;
662
+ }))), t3.class && !t3.className ? (u4.class = t3.class, Object.defineProperty(u4, "className", un)) : t3.className && (u4.class = u4.className = t3.className), n3.props = u4;
663
+ })(n2), n2.$$typeof = q3, on && on(n2);
664
+ };
665
+ var ln = l.__r;
666
+ l.__r = function(n2) {
667
+ ln && ln(n2), rn = n2.__c;
668
+ };
669
+ var fn = l.diffed;
670
+ l.diffed = function(n2) {
671
+ fn && fn(n2);
672
+ var t3 = n2.props, e3 = n2.__e;
673
+ null != e3 && "textarea" === n2.type && "value" in t3 && t3.value !== e3.value && (e3.value = null == t3.value ? "" : t3.value), rn = null;
674
+ };
675
+ function pn(n2) {
676
+ return !!n2.__k && (R(null, n2), true);
677
+ }
678
+ var bn = function(n2, t3) {
679
+ var r3, u4 = l.debounceRendering;
680
+ l.debounceRendering = function(n3) {
681
+ r3 = n3;
682
+ };
683
+ try {
684
+ var o3 = n2(t3);
685
+ return r3 && r3(), o3;
686
+ } finally {
687
+ l.debounceRendering = u4;
688
+ }
689
+ };
690
+
691
+ // src/builtin-chart-styles.ts
692
+ function decodeSrgb(channel) {
693
+ return channel <= 0.04045 ? channel / 12.92 : ((channel + 0.055) / 1.055) ** 2.4;
694
+ }
695
+ function encodeSrgb(channel) {
696
+ return channel <= 31308e-7 ? channel * 12.92 : 1.055 * channel ** (1 / 2.4) - 0.055;
697
+ }
698
+ function quantizeLinear(channel) {
699
+ return Math.round(channel * 1e5) / 1e5;
700
+ }
701
+ function resolveBuiltinChartColor(color, colorsByIndex) {
702
+ if (!color) return void 0;
703
+ const hex = colorsByIndex[color.themeIndex]?.replace(/^#/, "");
704
+ if (!hex || !/^[\da-f]{6}$/i.test(hex)) return void 0;
705
+ if (color.transforms.length === 0) return `#${hex.toLowerCase()}`;
706
+ const channels = [0, 2, 4].map((offset) => Math.fround(quantizeLinear(decodeSrgb(Number.parseInt(hex.slice(offset, offset + 2), 16) / 255))));
707
+ for (const transform of color.transforms) {
708
+ const amount = Math.fround(Math.max(0, Math.min(1, transform.value)));
709
+ for (let index = 0; index < channels.length; index += 1) {
710
+ const channel = channels[index];
711
+ channels[index] = transform.type === "tint" ? Math.fround(Math.fround(1 - amount) + Math.fround(amount * channel)) : Math.fround(amount * channel);
712
+ }
713
+ }
714
+ return `#${channels.map((channel) => Math.round(encodeSrgb(quantizeLinear(channel)) * 255).toString(16).padStart(2, "0")).join("")}`;
715
+ }
716
+ var GRAYSCALE_TINTS = [88, 55, 78, 92, 70, 30];
717
+ var DARK_GRAYSCALE_TINTS = [5, 55, 78, 15, 70, 30];
718
+ function normalizeClassicStyle(styleId) {
719
+ if (styleId === void 0 || !Number.isInteger(styleId)) return void 0;
720
+ if (styleId >= 1 && styleId <= 48) return styleId;
721
+ if (styleId >= 101 && styleId <= 148) return styleId - 100;
722
+ return void 0;
723
+ }
724
+ function themeColor(themeIndex, tint) {
725
+ return {
726
+ themeIndex,
727
+ transforms: tint === void 0 ? [] : [{ type: "tint", value: tint / 100 }]
728
+ };
729
+ }
730
+ function appendBrightness(color, percent) {
731
+ if (percent > 0) color.transforms.push({ type: "tint", value: (100 - percent) / 100 });
732
+ if (percent < 0) color.transforms.push({ type: "shade", value: (100 + percent) / 100 });
733
+ return color;
734
+ }
735
+ function getBuiltinChartColor(styleId, index, count) {
736
+ const style = normalizeClassicStyle(styleId);
737
+ if (style === void 0 || !Number.isInteger(index) || index < 0 || !Number.isInteger(count) || count < 1) {
738
+ return void 0;
739
+ }
740
+ const palette = style === 41 ? 9 : (style - 1) % 8 + 1;
741
+ const monochrome = palette >= 3 && palette <= 8;
742
+ const color = monochrome ? themeColor(palette + 1) : palette === 2 ? themeColor(4 + index % 6) : themeColor(1, (palette === 9 ? DARK_GRAYSCALE_TINTS : GRAYSCALE_TINTS)[index % 6]);
743
+ const numerator = 140 * (monochrome ? index + 1 : Math.floor(index / 6) + 1);
744
+ const denominator = monochrome ? count + 1 : Math.floor(count / 6) + 2;
745
+ const brightness = (Math.trunc(Math.fround(Math.fround(numerator) / Math.fround(denominator))) - 70) % 100;
746
+ return appendBrightness(color, brightness);
747
+ }
748
+ function getBuiltinChartSurfaceStyle(styleId) {
749
+ const style = normalizeClassicStyle(styleId);
750
+ if (style === void 0) return void 0;
751
+ let fill = null;
752
+ if (style === 33 || style === 34) fill = themeColor(1, 20);
753
+ if (style >= 35 && style <= 40) fill = themeColor(style - 31, (styleId ?? 0) >= 100 ? 20 : void 0);
754
+ if (style >= 41) fill = themeColor(1, 95);
755
+ return {
756
+ floor: { fill, line: style <= 40 ? themeColor(1, 75) : null },
757
+ wall: { fill, line: null },
758
+ majorGridline: themeColor(1, (styleId ?? 0) >= 100 ? 75 : void 0),
759
+ minorGridline: themeColor(1, style >= 41 ? 90 : 50)
760
+ };
761
+ }
762
+ function getBuiltinChartSurfaceLine(styleId, index, count) {
763
+ const style = normalizeClassicStyle(styleId);
764
+ if (style === void 0 || !Number.isInteger(index) || index < 0 || !Number.isInteger(count) || count < 1) {
765
+ return void 0;
766
+ }
767
+ if (style >= 9 && style <= 16) return themeColor(2);
768
+ if (styleId === 133) return themeColor(1, 92);
769
+ if (style === 33 || style >= 35 && style <= 40) {
770
+ return {
771
+ themeIndex: style === 33 ? 1 : style - 31,
772
+ transforms: [{ type: "shade", value: 0.5 }]
773
+ };
774
+ }
775
+ return void 0;
776
+ }
777
+
778
+ // ../../node_modules/.pnpm/preact@10.29.8/node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs
779
+ var f3 = 0;
780
+ function u3(e3, t3, n2, o3, i3, u4) {
781
+ t3 || (t3 = {});
782
+ var a3, c3, p3 = t3;
783
+ if ("ref" in p3) for (c3 in p3 = {}, t3) "ref" == c3 ? a3 = t3[c3] : p3[c3] = t3[c3];
784
+ var l3 = { type: e3, props: p3, key: n2, ref: a3, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --f3, __i: -1, __u: 0, __source: i3, __self: u4 };
785
+ if ("function" == typeof e3 && (a3 = e3.defaultProps)) for (c3 in a3) void 0 === p3[c3] && (p3[c3] = a3[c3]);
786
+ return l.vnode && l.vnode(l3), l3;
787
+ }
788
+
789
+ export {
790
+ k,
791
+ S,
792
+ C,
793
+ X,
794
+ d2 as d,
795
+ y2 as y,
796
+ h2 as h,
797
+ _2 as _,
798
+ A2 as A,
799
+ T2 as T,
800
+ q2 as q,
801
+ x2 as x,
802
+ C3 as C2,
803
+ w3 as w,
804
+ k3 as k2,
805
+ N2 as N,
806
+ $2 as $,
807
+ nn,
808
+ pn,
809
+ bn,
810
+ resolveBuiltinChartColor,
811
+ getBuiltinChartColor,
812
+ getBuiltinChartSurfaceStyle,
813
+ getBuiltinChartSurfaceLine,
814
+ u3 as u
815
+ };
816
+ //# sourceMappingURL=chunk-NBH72POD.js.map