@react-grab/visual-edit 0.0.89 → 0.0.91

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.cjs CHANGED
@@ -1,133 +1,133 @@
1
1
  'use strict';
2
2
 
3
- // ../react-grab/dist/chunk-S3JUQDK7.js
4
- var ra = (e, t) => e === t;
5
- var Nn = { equals: ra };
6
- var Ho = Ko;
7
- var ze = 1;
8
- var sn = 2;
9
- var re = null;
10
- var E = null;
11
- var Ht = null;
12
- var ue = null;
13
- var Ee = null;
14
- var Le = null;
15
- var Ln = 0;
16
- function N(e, t) {
17
- t = t ? Object.assign({}, Nn, t) : Nn;
18
- let n = { value: e, observers: null, observerSlots: null, comparator: t.equals || void 0 }, r = (i) => (typeof i == "function" && (i = i(n.value)), Go(n, i));
19
- return [Uo.bind(n), r];
3
+ // ../react-grab/dist/chunk-DN7NT3CO.js
4
+ var oa = (e, t) => e === t;
5
+ var Rn = { equals: oa };
6
+ var jo = Yo;
7
+ var We = 1;
8
+ var dn = 2;
9
+ var le = null;
10
+ var A = null;
11
+ var Kt = null;
12
+ var he = null;
13
+ var Ie = null;
14
+ var De = null;
15
+ var On = 0;
16
+ function k(e, t) {
17
+ t = t ? Object.assign({}, Rn, t) : Rn;
18
+ let n = { value: e, observers: null, observerSlots: null, comparator: t.equals || void 0 }, r = (i) => (typeof i == "function" && (i = i(n.value)), Xo(n, i));
19
+ return [Go.bind(n), r];
20
20
  }
21
- function Me(e) {
22
- if (ue === null) return e();
23
- let t = ue;
24
- ue = null;
21
+ function Fe(e) {
22
+ if (he === null) return e();
23
+ let t = he;
24
+ he = null;
25
25
  try {
26
- return Ht ? Ht.untrack(e) : e();
26
+ return Kt ? Kt.untrack(e) : e();
27
27
  } finally {
28
- ue = t;
28
+ he = t;
29
29
  }
30
30
  }
31
- N(false);
32
- function Uo() {
33
- let e = E;
34
- if (this.sources && this.state) if (this.state === ze) jt(this);
31
+ k(false);
32
+ function Go() {
33
+ let e = A;
34
+ if (this.sources && this.state) if (this.state === We) Xt(this);
35
35
  else {
36
- let t = Ee;
37
- Ee = null, He(() => In(this)), Ee = t;
36
+ let t = Ie;
37
+ Ie = null, Ye(() => Mn(this)), Ie = t;
38
38
  }
39
- if (ue) {
39
+ if (he) {
40
40
  let t = this.observers ? this.observers.length : 0;
41
- ue.sources ? (ue.sources.push(this), ue.sourceSlots.push(t)) : (ue.sources = [this], ue.sourceSlots = [t]), this.observers ? (this.observers.push(ue), this.observerSlots.push(ue.sources.length - 1)) : (this.observers = [ue], this.observerSlots = [ue.sources.length - 1]);
41
+ he.sources ? (he.sources.push(this), he.sourceSlots.push(t)) : (he.sources = [this], he.sourceSlots = [t]), this.observers ? (this.observers.push(he), this.observerSlots.push(he.sources.length - 1)) : (this.observers = [he], this.observerSlots = [he.sources.length - 1]);
42
42
  }
43
- return e && E.sources.has(this) ? this.tValue : this.value;
43
+ return e && A.sources.has(this) ? this.tValue : this.value;
44
44
  }
45
- function Go(e, t, n) {
45
+ function Xo(e, t, n) {
46
46
  let r = e.value;
47
47
  if (!e.comparator || !e.comparator(r, t)) {
48
48
  e.value = t;
49
- e.observers && e.observers.length && He(() => {
49
+ e.observers && e.observers.length && Ye(() => {
50
50
  for (let i = 0; i < e.observers.length; i += 1) {
51
- let o = e.observers[i], a = E && E.running;
52
- a && E.disposed.has(o) || ((a ? !o.tState : !o.state) && (o.pure ? Ee.push(o) : Le.push(o), o.observers && Xo(o)), a ? o.tState = ze : o.state = ze);
51
+ let o = e.observers[i], a = A && A.running;
52
+ a && A.disposed.has(o) || ((a ? !o.tState : !o.state) && (o.pure ? Ie.push(o) : De.push(o), o.observers && Wo(o)), a ? o.tState = We : o.state = We);
53
53
  }
54
- if (Ee.length > 1e6) throw Ee = [], new Error();
54
+ if (Ie.length > 1e6) throw Ie = [], new Error();
55
55
  });
56
56
  }
57
57
  return t;
58
58
  }
59
- function jt(e) {
59
+ function Xt(e) {
60
60
  if (!e.fn) return;
61
- bt(e);
62
- let t = Ln;
63
- Fo(e, e.value, t);
61
+ xt(e);
62
+ let t = On;
63
+ Bo(e, e.value, t);
64
64
  }
65
- function Fo(e, t, n) {
66
- let r, i = re, o = ue;
67
- ue = re = e;
65
+ function Bo(e, t, n) {
66
+ let r, i = le, o = he;
67
+ he = le = e;
68
68
  try {
69
69
  r = e.fn(t);
70
70
  } catch (a) {
71
- return e.pure && (e.state = ze, e.owned && e.owned.forEach(bt), e.owned = null), e.updatedAt = n + 1, Pn(a);
71
+ return e.pure && (e.state = We, e.owned && e.owned.forEach(xt), e.owned = null), e.updatedAt = n + 1, Fn(a);
72
72
  } finally {
73
- ue = o, re = i;
73
+ he = o, le = i;
74
74
  }
75
- (!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? Go(e, r) : e.value = r, e.updatedAt = n);
75
+ (!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? Xo(e, r) : e.value = r, e.updatedAt = n);
76
76
  }
77
- function ln(e) {
78
- let t = E;
77
+ function mn(e) {
78
+ let t = A;
79
79
  if (e.state === 0) return;
80
- if (e.state === sn) return In(e);
81
- if (e.suspense && Me(e.suspense.inFallback)) return e.suspense.effects.push(e);
80
+ if (e.state === dn) return Mn(e);
81
+ if (e.suspense && Fe(e.suspense.inFallback)) return e.suspense.effects.push(e);
82
82
  let n = [e];
83
- for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < Ln); ) {
83
+ for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < On); ) {
84
84
  e.state && n.push(e);
85
85
  }
86
86
  for (let r = n.length - 1; r >= 0; r--) {
87
87
  if (e = n[r], t) ;
88
- if (e.state === ze) jt(e);
89
- else if (e.state === sn) {
90
- let i = Ee;
91
- Ee = null, He(() => In(e, n[0])), Ee = i;
88
+ if (e.state === We) Xt(e);
89
+ else if (e.state === dn) {
90
+ let i = Ie;
91
+ Ie = null, Ye(() => Mn(e, n[0])), Ie = i;
92
92
  }
93
93
  }
94
94
  }
95
- function He(e, t) {
96
- if (Ee) return e();
95
+ function Ye(e, t) {
96
+ if (Ie) return e();
97
97
  let n = false;
98
- (Ee = []), Le ? n = true : Le = [], Ln++;
98
+ (Ie = []), De ? n = true : De = [], On++;
99
99
  try {
100
100
  let r = e();
101
- return sa(n), r;
101
+ return aa(n), r;
102
102
  } catch (r) {
103
- n || (Le = null), Ee = null, Pn(r);
103
+ n || (De = null), Ie = null, Fn(r);
104
104
  }
105
105
  }
106
- function sa(e) {
107
- if (Ee && (Ko(Ee), Ee = null), e) return;
108
- let n = Le;
109
- Le = null, n.length && He(() => Ho(n));
106
+ function aa(e) {
107
+ if (Ie && (Yo(Ie), Ie = null), e) return;
108
+ let n = De;
109
+ De = null, n.length && Ye(() => jo(n));
110
110
  }
111
- function Ko(e) {
112
- for (let t = 0; t < e.length; t++) ln(e[t]);
111
+ function Yo(e) {
112
+ for (let t = 0; t < e.length; t++) mn(e[t]);
113
113
  }
114
- function In(e, t) {
114
+ function Mn(e, t) {
115
115
  e.state = 0;
116
116
  for (let r = 0; r < e.sources.length; r += 1) {
117
117
  let i = e.sources[r];
118
118
  if (i.sources) {
119
119
  let o = i.state;
120
- o === ze ? i !== t && (!i.updatedAt || i.updatedAt < Ln) && ln(i) : o === sn && In(i, t);
120
+ o === We ? i !== t && (!i.updatedAt || i.updatedAt < On) && mn(i) : o === dn && Mn(i, t);
121
121
  }
122
122
  }
123
123
  }
124
- function Xo(e) {
124
+ function Wo(e) {
125
125
  for (let n = 0; n < e.observers.length; n += 1) {
126
126
  let r = e.observers[n];
127
- !r.state && (r.state = sn, r.pure ? Ee.push(r) : Le.push(r), r.observers && Xo(r));
127
+ !r.state && (r.state = dn, r.pure ? Ie.push(r) : De.push(r), r.observers && Wo(r));
128
128
  }
129
129
  }
130
- function bt(e) {
130
+ function xt(e) {
131
131
  let t;
132
132
  if (e.sources) for (; e.sources.length; ) {
133
133
  let n = e.sources.pop(), r = e.sourceSlots.pop(), i = n.observers;
@@ -137,11 +137,11 @@ function bt(e) {
137
137
  }
138
138
  }
139
139
  if (e.tOwned) {
140
- for (t = e.tOwned.length - 1; t >= 0; t--) bt(e.tOwned[t]);
140
+ for (t = e.tOwned.length - 1; t >= 0; t--) xt(e.tOwned[t]);
141
141
  delete e.tOwned;
142
142
  }
143
143
  if (e.owned) {
144
- for (t = e.owned.length - 1; t >= 0; t--) bt(e.owned[t]);
144
+ for (t = e.owned.length - 1; t >= 0; t--) xt(e.owned[t]);
145
145
  e.owned = null;
146
146
  }
147
147
  if (e.cleanups) {
@@ -150,29 +150,29 @@ function bt(e) {
150
150
  }
151
151
  e.state = 0;
152
152
  }
153
- function _n(e) {
153
+ function Ln(e) {
154
154
  return e instanceof Error ? e : new Error(typeof e == "string" ? e : "Unknown error", { cause: e });
155
155
  }
156
- function Pn(e, t = re) {
157
- let r = _n(e);
156
+ function Fn(e, t = le) {
157
+ let r = Ln(e);
158
158
  throw r;
159
159
  }
160
- var Yo = "_$DX_DELEGATE";
161
- function K(e, t, n, r) {
160
+ var Zo = "_$DX_DELEGATE";
161
+ function Q(e, t, n, r) {
162
162
  let i, o = () => {
163
163
  let l = document.createElement("template");
164
164
  return l.innerHTML = e, l.content.firstChild;
165
165
  }, a = () => (i || (i = o())).cloneNode(true);
166
166
  return a.cloneNode = a, a;
167
167
  }
168
- function Dn(e, t = window.document) {
169
- let n = t[Yo] || (t[Yo] = /* @__PURE__ */ new Set());
168
+ function Wt(e, t = window.document) {
169
+ let n = t[Zo] || (t[Zo] = /* @__PURE__ */ new Set());
170
170
  for (let r = 0, i = e.length; r < i; r++) {
171
171
  let o = e[r];
172
- n.has(o) || (n.add(o), t.addEventListener(o, ha));
172
+ n.has(o) || (n.add(o), t.addEventListener(o, ba));
173
173
  }
174
174
  }
175
- function ha(e) {
175
+ function ba(e) {
176
176
  let t = e.target, n = `$$${e.type}`, r = e.target, i = e.currentTarget, o = (c) => Object.defineProperty(e, "target", { configurable: true, value: c }), a = () => {
177
177
  let c = t[n];
178
178
  if (c && !t.disabled) {
@@ -198,71 +198,71 @@ function ha(e) {
198
198
  } else l();
199
199
  o(r);
200
200
  }
201
- var ri = "0.0.89";
202
- var Cr = "-";
201
+ var ii = "0.0.91";
202
+ var kr = "-";
203
203
  var Sa = (e) => {
204
- let t = Ea(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
204
+ let t = ka(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
205
205
  return { getClassGroupId: (a) => {
206
- let l = a.split(Cr);
207
- return l[0] === "" && l.length !== 1 && l.shift(), ci(l, t) || Ca(a);
206
+ let l = a.split(kr);
207
+ return l[0] === "" && l.length !== 1 && l.shift(), di(l, t) || Ea(a);
208
208
  }, getConflictingClassGroupIds: (a, l) => {
209
209
  let c = n[a] || [];
210
210
  return l && r[a] ? [...c, ...r[a]] : c;
211
211
  } };
212
212
  };
213
- var ci = (e, t) => {
213
+ var di = (e, t) => {
214
214
  if (e.length === 0) return t.classGroupId;
215
- let n = e[0], r = t.nextPart.get(n), i = r ? ci(e.slice(1), r) : void 0;
215
+ let n = e[0], r = t.nextPart.get(n), i = r ? di(e.slice(1), r) : void 0;
216
216
  if (i) return i;
217
217
  if (t.validators.length === 0) return;
218
- let o = e.join(Cr);
218
+ let o = e.join(kr);
219
219
  return t.validators.find(({ validator: a }) => a(o))?.classGroupId;
220
220
  };
221
- var ai = /^\[(.+)\]$/;
222
- var Ca = (e) => {
223
- if (ai.test(e)) {
224
- let t = ai.exec(e)[1], n = t?.substring(0, t.indexOf(":"));
221
+ var ci = /^\[(.+)\]$/;
222
+ var Ea = (e) => {
223
+ if (ci.test(e)) {
224
+ let t = ci.exec(e)[1], n = t?.substring(0, t.indexOf(":"));
225
225
  if (n) return "arbitrary.." + n;
226
226
  }
227
227
  };
228
- var Ea = (e) => {
228
+ var ka = (e) => {
229
229
  let { theme: t, prefix: n } = e, r = { nextPart: /* @__PURE__ */ new Map(), validators: [] };
230
- return Ta(Object.entries(e.classGroups), n).forEach(([o, a]) => {
231
- Sr(a, r, o, t);
230
+ return Aa(Object.entries(e.classGroups), n).forEach(([o, a]) => {
231
+ Er(a, r, o, t);
232
232
  }), r;
233
233
  };
234
- var Sr = (e, t, n, r) => {
234
+ var Er = (e, t, n, r) => {
235
235
  e.forEach((i) => {
236
236
  if (typeof i == "string") {
237
- let o = i === "" ? t : li(t, i);
237
+ let o = i === "" ? t : ui(t, i);
238
238
  o.classGroupId = n;
239
239
  return;
240
240
  }
241
241
  if (typeof i == "function") {
242
- if (ka(i)) {
243
- Sr(i(r), t, n, r);
242
+ if (Ta(i)) {
243
+ Er(i(r), t, n, r);
244
244
  return;
245
245
  }
246
246
  t.validators.push({ validator: i, classGroupId: n });
247
247
  return;
248
248
  }
249
249
  Object.entries(i).forEach(([o, a]) => {
250
- Sr(a, li(t, o), n, r);
250
+ Er(a, ui(t, o), n, r);
251
251
  });
252
252
  });
253
253
  };
254
- var li = (e, t) => {
254
+ var ui = (e, t) => {
255
255
  let n = e;
256
- return t.split(Cr).forEach((r) => {
256
+ return t.split(kr).forEach((r) => {
257
257
  n.nextPart.has(r) || n.nextPart.set(r, { nextPart: /* @__PURE__ */ new Map(), validators: [] }), n = n.nextPart.get(r);
258
258
  }), n;
259
259
  };
260
- var ka = (e) => e.isThemeGetter;
261
- var Ta = (e, t) => t ? e.map(([n, r]) => {
260
+ var Ta = (e) => e.isThemeGetter;
261
+ var Aa = (e, t) => t ? e.map(([n, r]) => {
262
262
  let i = r.map((o) => typeof o == "string" ? t + o : typeof o == "object" ? Object.fromEntries(Object.entries(o).map(([a, l]) => [t + a, l])) : o);
263
263
  return [n, i];
264
264
  }) : e;
265
- var Aa = (e) => {
265
+ var _a = (e) => {
266
266
  if (e < 1) return { get: () => {
267
267
  }, set: () => {
268
268
  } };
@@ -277,180 +277,174 @@ var Aa = (e) => {
277
277
  n.has(o) ? n.set(o, a) : i(o, a);
278
278
  } };
279
279
  };
280
- var ui = "!";
281
- var _a = (e) => {
280
+ var fi = "!";
281
+ var Na = (e) => {
282
282
  let { separator: t, experimentalParseClassName: n } = e, r = t.length === 1, i = t[0], o = t.length, a = (l) => {
283
283
  let c = [], u = 0, g = 0, p;
284
- for (let H = 0; H < l.length; H++) {
285
- let V = l[H];
284
+ for (let j = 0; j < l.length; j++) {
285
+ let K = l[j];
286
286
  if (u === 0) {
287
- if (V === i && (r || l.slice(H, H + o) === t)) {
288
- c.push(l.slice(g, H)), g = H + o;
287
+ if (K === i && (r || l.slice(j, j + o) === t)) {
288
+ c.push(l.slice(g, j)), g = j + o;
289
289
  continue;
290
290
  }
291
- if (V === "/") {
292
- p = H;
291
+ if (K === "/") {
292
+ p = j;
293
293
  continue;
294
294
  }
295
295
  }
296
- V === "[" ? u++ : V === "]" && u--;
296
+ K === "[" ? u++ : K === "]" && u--;
297
297
  }
298
- let k = c.length === 0 ? l : l.substring(g), y = k.startsWith(ui), x = y ? k.substring(1) : k, _ = p && p > g ? p - g : void 0;
299
- return { modifiers: c, hasImportantModifier: y, baseClassName: x, maybePostfixModifierPosition: _ };
298
+ let S = c.length === 0 ? l : l.substring(g), w = S.startsWith(fi), x = w ? S.substring(1) : S, I = p && p > g ? p - g : void 0;
299
+ return { modifiers: c, hasImportantModifier: w, baseClassName: x, maybePostfixModifierPosition: I };
300
300
  };
301
301
  return n ? (l) => n({ className: l, parseClassName: a }) : a;
302
302
  };
303
- var Na = (e) => {
303
+ var Ia = (e) => {
304
304
  if (e.length <= 1) return e;
305
305
  let t = [], n = [];
306
306
  return e.forEach((r) => {
307
307
  r[0] === "[" ? (t.push(...n.sort(), r), n = []) : n.push(r);
308
308
  }), t.push(...n.sort()), t;
309
309
  };
310
- var Ia = (e) => ({ cache: Aa(e.cacheSize), parseClassName: _a(e), ...Sa(e) });
310
+ var La = (e) => ({ cache: _a(e.cacheSize), parseClassName: Na(e), ...Sa(e) });
311
311
  var Ra = /\s+/;
312
- var La = (e, t) => {
312
+ var Ma = (e, t) => {
313
313
  let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i } = t, o = [], a = e.trim().split(Ra), l = "";
314
314
  for (let c = a.length - 1; c >= 0; c -= 1) {
315
- let u = a[c], { modifiers: g, hasImportantModifier: p, baseClassName: k, maybePostfixModifierPosition: y } = n(u), x = !!y, _ = r(x ? k.substring(0, y) : k);
316
- if (!_) {
315
+ let u = a[c], { modifiers: g, hasImportantModifier: p, baseClassName: S, maybePostfixModifierPosition: w } = n(u), x = !!w, I = r(x ? S.substring(0, w) : S);
316
+ if (!I) {
317
317
  if (!x) {
318
318
  l = u + (l.length > 0 ? " " + l : l);
319
319
  continue;
320
320
  }
321
- if (_ = r(k), !_) {
321
+ if (I = r(S), !I) {
322
322
  l = u + (l.length > 0 ? " " + l : l);
323
323
  continue;
324
324
  }
325
325
  x = false;
326
326
  }
327
- let H = Na(g).join(":"), V = p ? H + ui : H, C = V + _;
328
- if (o.includes(C)) continue;
329
- o.push(C);
330
- let $ = i(_, x);
331
- for (let Z = 0; Z < $.length; ++Z) {
332
- let v = $[Z];
333
- o.push(V + v);
327
+ let j = Ia(g).join(":"), K = p ? j + fi : j, _ = K + I;
328
+ if (o.includes(_)) continue;
329
+ o.push(_);
330
+ let F = i(I, x);
331
+ for (let ne = 0; ne < F.length; ++ne) {
332
+ let v = F[ne];
333
+ o.push(K + v);
334
334
  }
335
335
  l = u + (l.length > 0 ? " " + l : l);
336
336
  }
337
337
  return l;
338
338
  };
339
- function Ma() {
339
+ function Pa() {
340
340
  let e = 0, t, n, r = "";
341
- for (; e < arguments.length; ) (t = arguments[e++]) && (n = di(t)) && (r && (r += " "), r += n);
341
+ for (; e < arguments.length; ) (t = arguments[e++]) && (n = mi(t)) && (r && (r += " "), r += n);
342
342
  return r;
343
343
  }
344
- var di = (e) => {
344
+ var mi = (e) => {
345
345
  if (typeof e == "string") return e;
346
346
  let t, n = "";
347
- for (let r = 0; r < e.length; r++) e[r] && (t = di(e[r])) && (n && (n += " "), n += t);
347
+ for (let r = 0; r < e.length; r++) e[r] && (t = mi(e[r])) && (n && (n += " "), n += t);
348
348
  return n;
349
349
  };
350
350
  function Oa(e, ...t) {
351
351
  let n, r, i, o = a;
352
352
  function a(c) {
353
353
  let u = t.reduce((g, p) => p(g), e());
354
- return n = Ia(u), r = n.cache.get, i = n.cache.set, o = l, l(c);
354
+ return n = La(u), r = n.cache.get, i = n.cache.set, o = l, l(c);
355
355
  }
356
356
  function l(c) {
357
357
  let u = r(c);
358
358
  if (u) return u;
359
- let g = La(c, n);
359
+ let g = Ma(c, n);
360
360
  return i(c, g), g;
361
361
  }
362
362
  return function() {
363
- return o(Ma.apply(null, arguments));
363
+ return o(Pa.apply(null, arguments));
364
364
  };
365
365
  }
366
- var he = (e) => {
366
+ var ve = (e) => {
367
367
  let t = (n) => n[e] || [];
368
368
  return t.isThemeGetter = true, t;
369
369
  };
370
- var fi = /^\[(?:([a-z-]+):)?(.+)\]$/i;
371
- var Pa = /^\d+\/\d+$/;
372
- var $a = /* @__PURE__ */ new Set(["px", "full", "screen"]);
370
+ var pi = /^\[(?:([a-z-]+):)?(.+)\]$/i;
371
+ var $a = /^\d+\/\d+$/;
372
+ var Da = /* @__PURE__ */ new Set(["px", "full", "screen"]);
373
373
  var Fa = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
374
- var Da = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
375
- var Ba = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
376
- var Ha = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
377
- var za = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
378
- var ct = (e) => Kt(e) || $a.has(e) || Pa.test(e);
379
- var xt = (e) => Xt(e, "length", Ya);
380
- var Kt = (e) => !!e && !Number.isNaN(Number(e));
381
- var vr = (e) => Xt(e, "number", Kt);
382
- var un = (e) => !!e && Number.isInteger(Number(e));
383
- var ja = (e) => e.endsWith("%") && Kt(e.slice(0, -1));
384
- var J = (e) => fi.test(e);
385
- var vt = (e) => Fa.test(e);
386
- var Va = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
387
- var Ua = (e) => Xt(e, Va, mi);
388
- var Ga = (e) => Xt(e, "position", mi);
389
- var Ka = /* @__PURE__ */ new Set(["image", "url"]);
390
- var Xa = (e) => Xt(e, Ka, Za);
391
- var Wa = (e) => Xt(e, "", qa);
392
- var dn = () => true;
393
- var Xt = (e, t, n) => {
394
- let r = fi.exec(e);
374
+ var Ba = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
375
+ var Ha = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
376
+ var za = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
377
+ var ja = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
378
+ var pt = (e) => Zt(e) || Da.has(e) || $a.test(e);
379
+ var St = (e) => Jt(e, "length", qa);
380
+ var Zt = (e) => !!e && !Number.isNaN(Number(e));
381
+ var Sr = (e) => Jt(e, "number", Zt);
382
+ var pn = (e) => !!e && Number.isInteger(Number(e));
383
+ var Va = (e) => e.endsWith("%") && Zt(e.slice(0, -1));
384
+ var re = (e) => pi.test(e);
385
+ var Et = (e) => Fa.test(e);
386
+ var Ua = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
387
+ var Ka = (e) => Jt(e, Ua, gi);
388
+ var Ga = (e) => Jt(e, "position", gi);
389
+ var Xa = /* @__PURE__ */ new Set(["image", "url"]);
390
+ var Ya = (e) => Jt(e, Xa, Ja);
391
+ var Wa = (e) => Jt(e, "", Za);
392
+ var gn = () => true;
393
+ var Jt = (e, t, n) => {
394
+ let r = pi.exec(e);
395
395
  return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : false;
396
396
  };
397
- var Ya = (e) => Da.test(e) && !Ba.test(e);
398
- var mi = () => false;
399
- var qa = (e) => Ha.test(e);
397
+ var qa = (e) => Ba.test(e) && !Ha.test(e);
398
+ var gi = () => false;
400
399
  var Za = (e) => za.test(e);
401
- var Ja = () => {
402
- let e = he("colors"), t = he("spacing"), n = he("blur"), r = he("brightness"), i = he("borderColor"), o = he("borderRadius"), a = he("borderSpacing"), l = he("borderWidth"), c = he("contrast"), u = he("grayscale"), g = he("hueRotate"), p = he("invert"), k = he("gap"), y = he("gradientColorStops"), x = he("gradientColorStopPositions"), _ = he("inset"), H = he("margin"), V = he("opacity"), C = he("padding"), $ = he("saturate"), Z = he("scale"), v = he("sepia"), M = he("skew"), W = he("space"), z = he("translate"), q = () => ["auto", "contain", "none"], O = () => ["auto", "hidden", "clip", "visible", "scroll"], h = () => ["auto", J, t], m = () => [J, t], f = () => ["", ct, xt], b = () => ["auto", Kt, J], L = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], j = () => ["solid", "dashed", "dotted", "double", "none"], ne = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], te = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], se = () => ["", "0", J], S = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], F = () => [Kt, J];
403
- return { cacheSize: 500, separator: ":", theme: { colors: [dn], spacing: [ct, xt], blur: ["none", "", vt, J], brightness: F(), borderColor: [e], borderRadius: ["none", "", "full", vt, J], borderSpacing: m(), borderWidth: f(), contrast: F(), grayscale: se(), hueRotate: F(), invert: se(), gap: m(), gradientColorStops: [e], gradientColorStopPositions: [ja, xt], inset: h(), margin: h(), opacity: F(), padding: m(), saturate: F(), scale: F(), sepia: se(), skew: F(), space: m(), translate: m() }, classGroups: { aspect: [{ aspect: ["auto", "square", "video", J] }], container: ["container"], columns: [{ columns: [vt] }], "break-after": [{ "break-after": S() }], "break-before": [{ "break-before": S() }], "break-inside": [{ "break-inside": ["auto", "avoid", "avoid-page", "avoid-column"] }], "box-decoration": [{ "box-decoration": ["slice", "clone"] }], box: [{ box: ["border", "content"] }], display: ["block", "inline-block", "inline", "flex", "inline-flex", "table", "inline-table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row-group", "table-row", "flow-root", "grid", "inline-grid", "contents", "list-item", "hidden"], float: [{ float: ["right", "left", "none", "start", "end"] }], clear: [{ clear: ["left", "right", "both", "none", "start", "end"] }], isolation: ["isolate", "isolation-auto"], "object-fit": [{ object: ["contain", "cover", "fill", "none", "scale-down"] }], "object-position": [{ object: [...L(), J] }], overflow: [{ overflow: O() }], "overflow-x": [{ "overflow-x": O() }], "overflow-y": [{ "overflow-y": O() }], overscroll: [{ overscroll: q() }], "overscroll-x": [{ "overscroll-x": q() }], "overscroll-y": [{ "overscroll-y": q() }], position: ["static", "fixed", "absolute", "relative", "sticky"], inset: [{ inset: [_] }], "inset-x": [{ "inset-x": [_] }], "inset-y": [{ "inset-y": [_] }], start: [{ start: [_] }], end: [{ end: [_] }], top: [{ top: [_] }], right: [{ right: [_] }], bottom: [{ bottom: [_] }], left: [{ left: [_] }], visibility: ["visible", "invisible", "collapse"], z: [{ z: ["auto", un, J] }], basis: [{ basis: h() }], "flex-direction": [{ flex: ["row", "row-reverse", "col", "col-reverse"] }], "flex-wrap": [{ flex: ["wrap", "wrap-reverse", "nowrap"] }], flex: [{ flex: ["1", "auto", "initial", "none", J] }], grow: [{ grow: se() }], shrink: [{ shrink: se() }], order: [{ order: ["first", "last", "none", un, J] }], "grid-cols": [{ "grid-cols": [dn] }], "col-start-end": [{ col: ["auto", { span: ["full", un, J] }, J] }], "col-start": [{ "col-start": b() }], "col-end": [{ "col-end": b() }], "grid-rows": [{ "grid-rows": [dn] }], "row-start-end": [{ row: ["auto", { span: [un, J] }, J] }], "row-start": [{ "row-start": b() }], "row-end": [{ "row-end": b() }], "grid-flow": [{ "grid-flow": ["row", "col", "dense", "row-dense", "col-dense"] }], "auto-cols": [{ "auto-cols": ["auto", "min", "max", "fr", J] }], "auto-rows": [{ "auto-rows": ["auto", "min", "max", "fr", J] }], gap: [{ gap: [k] }], "gap-x": [{ "gap-x": [k] }], "gap-y": [{ "gap-y": [k] }], "justify-content": [{ justify: ["normal", ...te()] }], "justify-items": [{ "justify-items": ["start", "end", "center", "stretch"] }], "justify-self": [{ "justify-self": ["auto", "start", "end", "center", "stretch"] }], "align-content": [{ content: ["normal", ...te(), "baseline"] }], "align-items": [{ items: ["start", "end", "center", "baseline", "stretch"] }], "align-self": [{ self: ["auto", "start", "end", "center", "stretch", "baseline"] }], "place-content": [{ "place-content": [...te(), "baseline"] }], "place-items": [{ "place-items": ["start", "end", "center", "baseline", "stretch"] }], "place-self": [{ "place-self": ["auto", "start", "end", "center", "stretch"] }], p: [{ p: [C] }], px: [{ px: [C] }], py: [{ py: [C] }], ps: [{ ps: [C] }], pe: [{ pe: [C] }], pt: [{ pt: [C] }], pr: [{ pr: [C] }], pb: [{ pb: [C] }], pl: [{ pl: [C] }], m: [{ m: [H] }], mx: [{ mx: [H] }], my: [{ my: [H] }], ms: [{ ms: [H] }], me: [{ me: [H] }], mt: [{ mt: [H] }], mr: [{ mr: [H] }], mb: [{ mb: [H] }], ml: [{ ml: [H] }], "space-x": [{ "space-x": [W] }], "space-x-reverse": ["space-x-reverse"], "space-y": [{ "space-y": [W] }], "space-y-reverse": ["space-y-reverse"], w: [{ w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", J, t] }], "min-w": [{ "min-w": [J, t, "min", "max", "fit"] }], "max-w": [{ "max-w": [J, t, "none", "full", "min", "max", "fit", "prose", { screen: [vt] }, vt] }], h: [{ h: [J, t, "auto", "min", "max", "fit", "svh", "lvh", "dvh"] }], "min-h": [{ "min-h": [J, t, "min", "max", "fit", "svh", "lvh", "dvh"] }], "max-h": [{ "max-h": [J, t, "min", "max", "fit", "svh", "lvh", "dvh"] }], size: [{ size: [J, t, "auto", "min", "max", "fit"] }], "font-size": [{ text: ["base", vt, xt] }], "font-smoothing": ["antialiased", "subpixel-antialiased"], "font-style": ["italic", "not-italic"], "font-weight": [{ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", vr] }], "font-family": [{ font: [dn] }], "fvn-normal": ["normal-nums"], "fvn-ordinal": ["ordinal"], "fvn-slashed-zero": ["slashed-zero"], "fvn-figure": ["lining-nums", "oldstyle-nums"], "fvn-spacing": ["proportional-nums", "tabular-nums"], "fvn-fraction": ["diagonal-fractions", "stacked-fractions"], tracking: [{ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", J] }], "line-clamp": [{ "line-clamp": ["none", Kt, vr] }], leading: [{ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", ct, J] }], "list-image": [{ "list-image": ["none", J] }], "list-style-type": [{ list: ["none", "disc", "decimal", J] }], "list-style-position": [{ list: ["inside", "outside"] }], "placeholder-color": [{ placeholder: [e] }], "placeholder-opacity": [{ "placeholder-opacity": [V] }], "text-alignment": [{ text: ["left", "center", "right", "justify", "start", "end"] }], "text-color": [{ text: [e] }], "text-opacity": [{ "text-opacity": [V] }], "text-decoration": ["underline", "overline", "line-through", "no-underline"], "text-decoration-style": [{ decoration: [...j(), "wavy"] }], "text-decoration-thickness": [{ decoration: ["auto", "from-font", ct, xt] }], "underline-offset": [{ "underline-offset": ["auto", ct, J] }], "text-decoration-color": [{ decoration: [e] }], "text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"], "text-overflow": ["truncate", "text-ellipsis", "text-clip"], "text-wrap": [{ text: ["wrap", "nowrap", "balance", "pretty"] }], indent: [{ indent: m() }], "vertical-align": [{ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", J] }], whitespace: [{ whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"] }], break: [{ break: ["normal", "words", "all", "keep"] }], hyphens: [{ hyphens: ["none", "manual", "auto"] }], content: [{ content: ["none", J] }], "bg-attachment": [{ bg: ["fixed", "local", "scroll"] }], "bg-clip": [{ "bg-clip": ["border", "padding", "content", "text"] }], "bg-opacity": [{ "bg-opacity": [V] }], "bg-origin": [{ "bg-origin": ["border", "padding", "content"] }], "bg-position": [{ bg: [...L(), Ga] }], "bg-repeat": [{ bg: ["no-repeat", { repeat: ["", "x", "y", "round", "space"] }] }], "bg-size": [{ bg: ["auto", "cover", "contain", Ua] }], "bg-image": [{ bg: ["none", { "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"] }, Xa] }], "bg-color": [{ bg: [e] }], "gradient-from-pos": [{ from: [x] }], "gradient-via-pos": [{ via: [x] }], "gradient-to-pos": [{ to: [x] }], "gradient-from": [{ from: [y] }], "gradient-via": [{ via: [y] }], "gradient-to": [{ to: [y] }], rounded: [{ rounded: [o] }], "rounded-s": [{ "rounded-s": [o] }], "rounded-e": [{ "rounded-e": [o] }], "rounded-t": [{ "rounded-t": [o] }], "rounded-r": [{ "rounded-r": [o] }], "rounded-b": [{ "rounded-b": [o] }], "rounded-l": [{ "rounded-l": [o] }], "rounded-ss": [{ "rounded-ss": [o] }], "rounded-se": [{ "rounded-se": [o] }], "rounded-ee": [{ "rounded-ee": [o] }], "rounded-es": [{ "rounded-es": [o] }], "rounded-tl": [{ "rounded-tl": [o] }], "rounded-tr": [{ "rounded-tr": [o] }], "rounded-br": [{ "rounded-br": [o] }], "rounded-bl": [{ "rounded-bl": [o] }], "border-w": [{ border: [l] }], "border-w-x": [{ "border-x": [l] }], "border-w-y": [{ "border-y": [l] }], "border-w-s": [{ "border-s": [l] }], "border-w-e": [{ "border-e": [l] }], "border-w-t": [{ "border-t": [l] }], "border-w-r": [{ "border-r": [l] }], "border-w-b": [{ "border-b": [l] }], "border-w-l": [{ "border-l": [l] }], "border-opacity": [{ "border-opacity": [V] }], "border-style": [{ border: [...j(), "hidden"] }], "divide-x": [{ "divide-x": [l] }], "divide-x-reverse": ["divide-x-reverse"], "divide-y": [{ "divide-y": [l] }], "divide-y-reverse": ["divide-y-reverse"], "divide-opacity": [{ "divide-opacity": [V] }], "divide-style": [{ divide: j() }], "border-color": [{ border: [i] }], "border-color-x": [{ "border-x": [i] }], "border-color-y": [{ "border-y": [i] }], "border-color-s": [{ "border-s": [i] }], "border-color-e": [{ "border-e": [i] }], "border-color-t": [{ "border-t": [i] }], "border-color-r": [{ "border-r": [i] }], "border-color-b": [{ "border-b": [i] }], "border-color-l": [{ "border-l": [i] }], "divide-color": [{ divide: [i] }], "outline-style": [{ outline: ["", ...j()] }], "outline-offset": [{ "outline-offset": [ct, J] }], "outline-w": [{ outline: [ct, xt] }], "outline-color": [{ outline: [e] }], "ring-w": [{ ring: f() }], "ring-w-inset": ["ring-inset"], "ring-color": [{ ring: [e] }], "ring-opacity": [{ "ring-opacity": [V] }], "ring-offset-w": [{ "ring-offset": [ct, xt] }], "ring-offset-color": [{ "ring-offset": [e] }], shadow: [{ shadow: ["", "inner", "none", vt, Wa] }], "shadow-color": [{ shadow: [dn] }], opacity: [{ opacity: [V] }], "mix-blend": [{ "mix-blend": [...ne(), "plus-lighter", "plus-darker"] }], "bg-blend": [{ "bg-blend": ne() }], filter: [{ filter: ["", "none"] }], blur: [{ blur: [n] }], brightness: [{ brightness: [r] }], contrast: [{ contrast: [c] }], "drop-shadow": [{ "drop-shadow": ["", "none", vt, J] }], grayscale: [{ grayscale: [u] }], "hue-rotate": [{ "hue-rotate": [g] }], invert: [{ invert: [p] }], saturate: [{ saturate: [$] }], sepia: [{ sepia: [v] }], "backdrop-filter": [{ "backdrop-filter": ["", "none"] }], "backdrop-blur": [{ "backdrop-blur": [n] }], "backdrop-brightness": [{ "backdrop-brightness": [r] }], "backdrop-contrast": [{ "backdrop-contrast": [c] }], "backdrop-grayscale": [{ "backdrop-grayscale": [u] }], "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [g] }], "backdrop-invert": [{ "backdrop-invert": [p] }], "backdrop-opacity": [{ "backdrop-opacity": [V] }], "backdrop-saturate": [{ "backdrop-saturate": [$] }], "backdrop-sepia": [{ "backdrop-sepia": [v] }], "border-collapse": [{ border: ["collapse", "separate"] }], "border-spacing": [{ "border-spacing": [a] }], "border-spacing-x": [{ "border-spacing-x": [a] }], "border-spacing-y": [{ "border-spacing-y": [a] }], "table-layout": [{ table: ["auto", "fixed"] }], caption: [{ caption: ["top", "bottom"] }], transition: [{ transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", J] }], duration: [{ duration: F() }], ease: [{ ease: ["linear", "in", "out", "in-out", J] }], delay: [{ delay: F() }], animate: [{ animate: ["none", "spin", "ping", "pulse", "bounce", J] }], transform: [{ transform: ["", "gpu", "none"] }], scale: [{ scale: [Z] }], "scale-x": [{ "scale-x": [Z] }], "scale-y": [{ "scale-y": [Z] }], rotate: [{ rotate: [un, J] }], "translate-x": [{ "translate-x": [z] }], "translate-y": [{ "translate-y": [z] }], "skew-x": [{ "skew-x": [M] }], "skew-y": [{ "skew-y": [M] }], "transform-origin": [{ origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", J] }], accent: [{ accent: ["auto", e] }], appearance: [{ appearance: ["none", "auto"] }], cursor: [{ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", J] }], "caret-color": [{ caret: [e] }], "pointer-events": [{ "pointer-events": ["none", "auto"] }], resize: [{ resize: ["none", "y", "x", ""] }], "scroll-behavior": [{ scroll: ["auto", "smooth"] }], "scroll-m": [{ "scroll-m": m() }], "scroll-mx": [{ "scroll-mx": m() }], "scroll-my": [{ "scroll-my": m() }], "scroll-ms": [{ "scroll-ms": m() }], "scroll-me": [{ "scroll-me": m() }], "scroll-mt": [{ "scroll-mt": m() }], "scroll-mr": [{ "scroll-mr": m() }], "scroll-mb": [{ "scroll-mb": m() }], "scroll-ml": [{ "scroll-ml": m() }], "scroll-p": [{ "scroll-p": m() }], "scroll-px": [{ "scroll-px": m() }], "scroll-py": [{ "scroll-py": m() }], "scroll-ps": [{ "scroll-ps": m() }], "scroll-pe": [{ "scroll-pe": m() }], "scroll-pt": [{ "scroll-pt": m() }], "scroll-pr": [{ "scroll-pr": m() }], "scroll-pb": [{ "scroll-pb": m() }], "scroll-pl": [{ "scroll-pl": m() }], "snap-align": [{ snap: ["start", "end", "center", "align-none"] }], "snap-stop": [{ snap: ["normal", "always"] }], "snap-type": [{ snap: ["none", "x", "y", "both"] }], "snap-strictness": [{ snap: ["mandatory", "proximity"] }], touch: [{ touch: ["auto", "none", "manipulation"] }], "touch-x": [{ "touch-pan": ["x", "left", "right"] }], "touch-y": [{ "touch-pan": ["y", "up", "down"] }], "touch-pz": ["touch-pinch-zoom"], select: [{ select: ["none", "text", "all", "auto"] }], "will-change": [{ "will-change": ["auto", "scroll", "contents", "transform", J] }], fill: [{ fill: [e, "none"] }], "stroke-w": [{ stroke: [ct, xt, vr] }], stroke: [{ stroke: [e, "none"] }], sr: ["sr-only", "not-sr-only"], "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }] }, conflictingClassGroups: { overflow: ["overflow-x", "overflow-y"], overscroll: ["overscroll-x", "overscroll-y"], inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"], "inset-x": ["right", "left"], "inset-y": ["top", "bottom"], flex: ["basis", "grow", "shrink"], gap: ["gap-x", "gap-y"], p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"], px: ["pr", "pl"], py: ["pt", "pb"], m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"], mx: ["mr", "ml"], my: ["mt", "mb"], size: ["w", "h"], "font-size": ["leading"], "fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"], "fvn-ordinal": ["fvn-normal"], "fvn-slashed-zero": ["fvn-normal"], "fvn-figure": ["fvn-normal"], "fvn-spacing": ["fvn-normal"], "fvn-fraction": ["fvn-normal"], "line-clamp": ["display", "overflow"], rounded: ["rounded-s", "rounded-e", "rounded-t", "rounded-r", "rounded-b", "rounded-l", "rounded-ss", "rounded-se", "rounded-ee", "rounded-es", "rounded-tl", "rounded-tr", "rounded-br", "rounded-bl"], "rounded-s": ["rounded-ss", "rounded-es"], "rounded-e": ["rounded-se", "rounded-ee"], "rounded-t": ["rounded-tl", "rounded-tr"], "rounded-r": ["rounded-tr", "rounded-br"], "rounded-b": ["rounded-br", "rounded-bl"], "rounded-l": ["rounded-tl", "rounded-bl"], "border-spacing": ["border-spacing-x", "border-spacing-y"], "border-w": ["border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"], "border-w-x": ["border-w-r", "border-w-l"], "border-w-y": ["border-w-t", "border-w-b"], "border-color": ["border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"], "border-color-x": ["border-color-r", "border-color-l"], "border-color-y": ["border-color-t", "border-color-b"], "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"], "scroll-mx": ["scroll-mr", "scroll-ml"], "scroll-my": ["scroll-mt", "scroll-mb"], "scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"], "scroll-px": ["scroll-pr", "scroll-pl"], "scroll-py": ["scroll-pt", "scroll-pb"], touch: ["touch-x", "touch-y", "touch-pz"], "touch-x": ["touch"], "touch-y": ["touch"], "touch-pz": ["touch"] }, conflictingClassGroupModifiers: { "font-size": ["leading"] } };
400
+ var Ja = (e) => ja.test(e);
401
+ var Qa = () => {
402
+ let e = ve("colors"), t = ve("spacing"), n = ve("blur"), r = ve("brightness"), i = ve("borderColor"), o = ve("borderRadius"), a = ve("borderSpacing"), l = ve("borderWidth"), c = ve("contrast"), u = ve("grayscale"), g = ve("hueRotate"), p = ve("invert"), S = ve("gap"), w = ve("gradientColorStops"), x = ve("gradientColorStopPositions"), I = ve("inset"), j = ve("margin"), K = ve("opacity"), _ = ve("padding"), F = ve("saturate"), ne = ve("scale"), v = ve("sepia"), O = ve("skew"), Z = ve("space"), $ = ve("translate"), W = () => ["auto", "contain", "none"], D = () => ["auto", "hidden", "clip", "visible", "scroll"], h = () => ["auto", re, t], m = () => [re, t], f = () => ["", pt, St], b = () => ["auto", Zt, re], M = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], G = () => ["solid", "dashed", "dotted", "double", "none"], oe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ie = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], C = () => ["", "0", re], X = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Y = () => [Zt, re];
403
+ return { cacheSize: 500, separator: ":", theme: { colors: [gn], spacing: [pt, St], blur: ["none", "", Et, re], brightness: Y(), borderColor: [e], borderRadius: ["none", "", "full", Et, re], borderSpacing: m(), borderWidth: f(), contrast: Y(), grayscale: C(), hueRotate: Y(), invert: C(), gap: m(), gradientColorStops: [e], gradientColorStopPositions: [Va, St], inset: h(), margin: h(), opacity: Y(), padding: m(), saturate: Y(), scale: Y(), sepia: C(), skew: Y(), space: m(), translate: m() }, classGroups: { aspect: [{ aspect: ["auto", "square", "video", re] }], container: ["container"], columns: [{ columns: [Et] }], "break-after": [{ "break-after": X() }], "break-before": [{ "break-before": X() }], "break-inside": [{ "break-inside": ["auto", "avoid", "avoid-page", "avoid-column"] }], "box-decoration": [{ "box-decoration": ["slice", "clone"] }], box: [{ box: ["border", "content"] }], display: ["block", "inline-block", "inline", "flex", "inline-flex", "table", "inline-table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row-group", "table-row", "flow-root", "grid", "inline-grid", "contents", "list-item", "hidden"], float: [{ float: ["right", "left", "none", "start", "end"] }], clear: [{ clear: ["left", "right", "both", "none", "start", "end"] }], isolation: ["isolate", "isolation-auto"], "object-fit": [{ object: ["contain", "cover", "fill", "none", "scale-down"] }], "object-position": [{ object: [...M(), re] }], overflow: [{ overflow: D() }], "overflow-x": [{ "overflow-x": D() }], "overflow-y": [{ "overflow-y": D() }], overscroll: [{ overscroll: W() }], "overscroll-x": [{ "overscroll-x": W() }], "overscroll-y": [{ "overscroll-y": W() }], position: ["static", "fixed", "absolute", "relative", "sticky"], inset: [{ inset: [I] }], "inset-x": [{ "inset-x": [I] }], "inset-y": [{ "inset-y": [I] }], start: [{ start: [I] }], end: [{ end: [I] }], top: [{ top: [I] }], right: [{ right: [I] }], bottom: [{ bottom: [I] }], left: [{ left: [I] }], visibility: ["visible", "invisible", "collapse"], z: [{ z: ["auto", pn, re] }], basis: [{ basis: h() }], "flex-direction": [{ flex: ["row", "row-reverse", "col", "col-reverse"] }], "flex-wrap": [{ flex: ["wrap", "wrap-reverse", "nowrap"] }], flex: [{ flex: ["1", "auto", "initial", "none", re] }], grow: [{ grow: C() }], shrink: [{ shrink: C() }], order: [{ order: ["first", "last", "none", pn, re] }], "grid-cols": [{ "grid-cols": [gn] }], "col-start-end": [{ col: ["auto", { span: ["full", pn, re] }, re] }], "col-start": [{ "col-start": b() }], "col-end": [{ "col-end": b() }], "grid-rows": [{ "grid-rows": [gn] }], "row-start-end": [{ row: ["auto", { span: [pn, re] }, re] }], "row-start": [{ "row-start": b() }], "row-end": [{ "row-end": b() }], "grid-flow": [{ "grid-flow": ["row", "col", "dense", "row-dense", "col-dense"] }], "auto-cols": [{ "auto-cols": ["auto", "min", "max", "fr", re] }], "auto-rows": [{ "auto-rows": ["auto", "min", "max", "fr", re] }], gap: [{ gap: [S] }], "gap-x": [{ "gap-x": [S] }], "gap-y": [{ "gap-y": [S] }], "justify-content": [{ justify: ["normal", ...ie()] }], "justify-items": [{ "justify-items": ["start", "end", "center", "stretch"] }], "justify-self": [{ "justify-self": ["auto", "start", "end", "center", "stretch"] }], "align-content": [{ content: ["normal", ...ie(), "baseline"] }], "align-items": [{ items: ["start", "end", "center", "baseline", "stretch"] }], "align-self": [{ self: ["auto", "start", "end", "center", "stretch", "baseline"] }], "place-content": [{ "place-content": [...ie(), "baseline"] }], "place-items": [{ "place-items": ["start", "end", "center", "baseline", "stretch"] }], "place-self": [{ "place-self": ["auto", "start", "end", "center", "stretch"] }], p: [{ p: [_] }], px: [{ px: [_] }], py: [{ py: [_] }], ps: [{ ps: [_] }], pe: [{ pe: [_] }], pt: [{ pt: [_] }], pr: [{ pr: [_] }], pb: [{ pb: [_] }], pl: [{ pl: [_] }], m: [{ m: [j] }], mx: [{ mx: [j] }], my: [{ my: [j] }], ms: [{ ms: [j] }], me: [{ me: [j] }], mt: [{ mt: [j] }], mr: [{ mr: [j] }], mb: [{ mb: [j] }], ml: [{ ml: [j] }], "space-x": [{ "space-x": [Z] }], "space-x-reverse": ["space-x-reverse"], "space-y": [{ "space-y": [Z] }], "space-y-reverse": ["space-y-reverse"], w: [{ w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", re, t] }], "min-w": [{ "min-w": [re, t, "min", "max", "fit"] }], "max-w": [{ "max-w": [re, t, "none", "full", "min", "max", "fit", "prose", { screen: [Et] }, Et] }], h: [{ h: [re, t, "auto", "min", "max", "fit", "svh", "lvh", "dvh"] }], "min-h": [{ "min-h": [re, t, "min", "max", "fit", "svh", "lvh", "dvh"] }], "max-h": [{ "max-h": [re, t, "min", "max", "fit", "svh", "lvh", "dvh"] }], size: [{ size: [re, t, "auto", "min", "max", "fit"] }], "font-size": [{ text: ["base", Et, St] }], "font-smoothing": ["antialiased", "subpixel-antialiased"], "font-style": ["italic", "not-italic"], "font-weight": [{ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", Sr] }], "font-family": [{ font: [gn] }], "fvn-normal": ["normal-nums"], "fvn-ordinal": ["ordinal"], "fvn-slashed-zero": ["slashed-zero"], "fvn-figure": ["lining-nums", "oldstyle-nums"], "fvn-spacing": ["proportional-nums", "tabular-nums"], "fvn-fraction": ["diagonal-fractions", "stacked-fractions"], tracking: [{ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", re] }], "line-clamp": [{ "line-clamp": ["none", Zt, Sr] }], leading: [{ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", pt, re] }], "list-image": [{ "list-image": ["none", re] }], "list-style-type": [{ list: ["none", "disc", "decimal", re] }], "list-style-position": [{ list: ["inside", "outside"] }], "placeholder-color": [{ placeholder: [e] }], "placeholder-opacity": [{ "placeholder-opacity": [K] }], "text-alignment": [{ text: ["left", "center", "right", "justify", "start", "end"] }], "text-color": [{ text: [e] }], "text-opacity": [{ "text-opacity": [K] }], "text-decoration": ["underline", "overline", "line-through", "no-underline"], "text-decoration-style": [{ decoration: [...G(), "wavy"] }], "text-decoration-thickness": [{ decoration: ["auto", "from-font", pt, St] }], "underline-offset": [{ "underline-offset": ["auto", pt, re] }], "text-decoration-color": [{ decoration: [e] }], "text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"], "text-overflow": ["truncate", "text-ellipsis", "text-clip"], "text-wrap": [{ text: ["wrap", "nowrap", "balance", "pretty"] }], indent: [{ indent: m() }], "vertical-align": [{ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", re] }], whitespace: [{ whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"] }], break: [{ break: ["normal", "words", "all", "keep"] }], hyphens: [{ hyphens: ["none", "manual", "auto"] }], content: [{ content: ["none", re] }], "bg-attachment": [{ bg: ["fixed", "local", "scroll"] }], "bg-clip": [{ "bg-clip": ["border", "padding", "content", "text"] }], "bg-opacity": [{ "bg-opacity": [K] }], "bg-origin": [{ "bg-origin": ["border", "padding", "content"] }], "bg-position": [{ bg: [...M(), Ga] }], "bg-repeat": [{ bg: ["no-repeat", { repeat: ["", "x", "y", "round", "space"] }] }], "bg-size": [{ bg: ["auto", "cover", "contain", Ka] }], "bg-image": [{ bg: ["none", { "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"] }, Ya] }], "bg-color": [{ bg: [e] }], "gradient-from-pos": [{ from: [x] }], "gradient-via-pos": [{ via: [x] }], "gradient-to-pos": [{ to: [x] }], "gradient-from": [{ from: [w] }], "gradient-via": [{ via: [w] }], "gradient-to": [{ to: [w] }], rounded: [{ rounded: [o] }], "rounded-s": [{ "rounded-s": [o] }], "rounded-e": [{ "rounded-e": [o] }], "rounded-t": [{ "rounded-t": [o] }], "rounded-r": [{ "rounded-r": [o] }], "rounded-b": [{ "rounded-b": [o] }], "rounded-l": [{ "rounded-l": [o] }], "rounded-ss": [{ "rounded-ss": [o] }], "rounded-se": [{ "rounded-se": [o] }], "rounded-ee": [{ "rounded-ee": [o] }], "rounded-es": [{ "rounded-es": [o] }], "rounded-tl": [{ "rounded-tl": [o] }], "rounded-tr": [{ "rounded-tr": [o] }], "rounded-br": [{ "rounded-br": [o] }], "rounded-bl": [{ "rounded-bl": [o] }], "border-w": [{ border: [l] }], "border-w-x": [{ "border-x": [l] }], "border-w-y": [{ "border-y": [l] }], "border-w-s": [{ "border-s": [l] }], "border-w-e": [{ "border-e": [l] }], "border-w-t": [{ "border-t": [l] }], "border-w-r": [{ "border-r": [l] }], "border-w-b": [{ "border-b": [l] }], "border-w-l": [{ "border-l": [l] }], "border-opacity": [{ "border-opacity": [K] }], "border-style": [{ border: [...G(), "hidden"] }], "divide-x": [{ "divide-x": [l] }], "divide-x-reverse": ["divide-x-reverse"], "divide-y": [{ "divide-y": [l] }], "divide-y-reverse": ["divide-y-reverse"], "divide-opacity": [{ "divide-opacity": [K] }], "divide-style": [{ divide: G() }], "border-color": [{ border: [i] }], "border-color-x": [{ "border-x": [i] }], "border-color-y": [{ "border-y": [i] }], "border-color-s": [{ "border-s": [i] }], "border-color-e": [{ "border-e": [i] }], "border-color-t": [{ "border-t": [i] }], "border-color-r": [{ "border-r": [i] }], "border-color-b": [{ "border-b": [i] }], "border-color-l": [{ "border-l": [i] }], "divide-color": [{ divide: [i] }], "outline-style": [{ outline: ["", ...G()] }], "outline-offset": [{ "outline-offset": [pt, re] }], "outline-w": [{ outline: [pt, St] }], "outline-color": [{ outline: [e] }], "ring-w": [{ ring: f() }], "ring-w-inset": ["ring-inset"], "ring-color": [{ ring: [e] }], "ring-opacity": [{ "ring-opacity": [K] }], "ring-offset-w": [{ "ring-offset": [pt, St] }], "ring-offset-color": [{ "ring-offset": [e] }], shadow: [{ shadow: ["", "inner", "none", Et, Wa] }], "shadow-color": [{ shadow: [gn] }], opacity: [{ opacity: [K] }], "mix-blend": [{ "mix-blend": [...oe(), "plus-lighter", "plus-darker"] }], "bg-blend": [{ "bg-blend": oe() }], filter: [{ filter: ["", "none"] }], blur: [{ blur: [n] }], brightness: [{ brightness: [r] }], contrast: [{ contrast: [c] }], "drop-shadow": [{ "drop-shadow": ["", "none", Et, re] }], grayscale: [{ grayscale: [u] }], "hue-rotate": [{ "hue-rotate": [g] }], invert: [{ invert: [p] }], saturate: [{ saturate: [F] }], sepia: [{ sepia: [v] }], "backdrop-filter": [{ "backdrop-filter": ["", "none"] }], "backdrop-blur": [{ "backdrop-blur": [n] }], "backdrop-brightness": [{ "backdrop-brightness": [r] }], "backdrop-contrast": [{ "backdrop-contrast": [c] }], "backdrop-grayscale": [{ "backdrop-grayscale": [u] }], "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [g] }], "backdrop-invert": [{ "backdrop-invert": [p] }], "backdrop-opacity": [{ "backdrop-opacity": [K] }], "backdrop-saturate": [{ "backdrop-saturate": [F] }], "backdrop-sepia": [{ "backdrop-sepia": [v] }], "border-collapse": [{ border: ["collapse", "separate"] }], "border-spacing": [{ "border-spacing": [a] }], "border-spacing-x": [{ "border-spacing-x": [a] }], "border-spacing-y": [{ "border-spacing-y": [a] }], "table-layout": [{ table: ["auto", "fixed"] }], caption: [{ caption: ["top", "bottom"] }], transition: [{ transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", re] }], duration: [{ duration: Y() }], ease: [{ ease: ["linear", "in", "out", "in-out", re] }], delay: [{ delay: Y() }], animate: [{ animate: ["none", "spin", "ping", "pulse", "bounce", re] }], transform: [{ transform: ["", "gpu", "none"] }], scale: [{ scale: [ne] }], "scale-x": [{ "scale-x": [ne] }], "scale-y": [{ "scale-y": [ne] }], rotate: [{ rotate: [pn, re] }], "translate-x": [{ "translate-x": [$] }], "translate-y": [{ "translate-y": [$] }], "skew-x": [{ "skew-x": [O] }], "skew-y": [{ "skew-y": [O] }], "transform-origin": [{ origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", re] }], accent: [{ accent: ["auto", e] }], appearance: [{ appearance: ["none", "auto"] }], cursor: [{ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", re] }], "caret-color": [{ caret: [e] }], "pointer-events": [{ "pointer-events": ["none", "auto"] }], resize: [{ resize: ["none", "y", "x", ""] }], "scroll-behavior": [{ scroll: ["auto", "smooth"] }], "scroll-m": [{ "scroll-m": m() }], "scroll-mx": [{ "scroll-mx": m() }], "scroll-my": [{ "scroll-my": m() }], "scroll-ms": [{ "scroll-ms": m() }], "scroll-me": [{ "scroll-me": m() }], "scroll-mt": [{ "scroll-mt": m() }], "scroll-mr": [{ "scroll-mr": m() }], "scroll-mb": [{ "scroll-mb": m() }], "scroll-ml": [{ "scroll-ml": m() }], "scroll-p": [{ "scroll-p": m() }], "scroll-px": [{ "scroll-px": m() }], "scroll-py": [{ "scroll-py": m() }], "scroll-ps": [{ "scroll-ps": m() }], "scroll-pe": [{ "scroll-pe": m() }], "scroll-pt": [{ "scroll-pt": m() }], "scroll-pr": [{ "scroll-pr": m() }], "scroll-pb": [{ "scroll-pb": m() }], "scroll-pl": [{ "scroll-pl": m() }], "snap-align": [{ snap: ["start", "end", "center", "align-none"] }], "snap-stop": [{ snap: ["normal", "always"] }], "snap-type": [{ snap: ["none", "x", "y", "both"] }], "snap-strictness": [{ snap: ["mandatory", "proximity"] }], touch: [{ touch: ["auto", "none", "manipulation"] }], "touch-x": [{ "touch-pan": ["x", "left", "right"] }], "touch-y": [{ "touch-pan": ["y", "up", "down"] }], "touch-pz": ["touch-pinch-zoom"], select: [{ select: ["none", "text", "all", "auto"] }], "will-change": [{ "will-change": ["auto", "scroll", "contents", "transform", re] }], fill: [{ fill: [e, "none"] }], "stroke-w": [{ stroke: [pt, St, Sr] }], stroke: [{ stroke: [e, "none"] }], sr: ["sr-only", "not-sr-only"], "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }] }, conflictingClassGroups: { overflow: ["overflow-x", "overflow-y"], overscroll: ["overscroll-x", "overscroll-y"], inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"], "inset-x": ["right", "left"], "inset-y": ["top", "bottom"], flex: ["basis", "grow", "shrink"], gap: ["gap-x", "gap-y"], p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"], px: ["pr", "pl"], py: ["pt", "pb"], m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"], mx: ["mr", "ml"], my: ["mt", "mb"], size: ["w", "h"], "font-size": ["leading"], "fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"], "fvn-ordinal": ["fvn-normal"], "fvn-slashed-zero": ["fvn-normal"], "fvn-figure": ["fvn-normal"], "fvn-spacing": ["fvn-normal"], "fvn-fraction": ["fvn-normal"], "line-clamp": ["display", "overflow"], rounded: ["rounded-s", "rounded-e", "rounded-t", "rounded-r", "rounded-b", "rounded-l", "rounded-ss", "rounded-se", "rounded-ee", "rounded-es", "rounded-tl", "rounded-tr", "rounded-br", "rounded-bl"], "rounded-s": ["rounded-ss", "rounded-es"], "rounded-e": ["rounded-se", "rounded-ee"], "rounded-t": ["rounded-tl", "rounded-tr"], "rounded-r": ["rounded-tr", "rounded-br"], "rounded-b": ["rounded-br", "rounded-bl"], "rounded-l": ["rounded-tl", "rounded-bl"], "border-spacing": ["border-spacing-x", "border-spacing-y"], "border-w": ["border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"], "border-w-x": ["border-w-r", "border-w-l"], "border-w-y": ["border-w-t", "border-w-b"], "border-color": ["border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"], "border-color-x": ["border-color-r", "border-color-l"], "border-color-y": ["border-color-t", "border-color-b"], "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"], "scroll-mx": ["scroll-mr", "scroll-ml"], "scroll-my": ["scroll-mt", "scroll-mb"], "scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"], "scroll-px": ["scroll-pr", "scroll-pl"], "scroll-py": ["scroll-pt", "scroll-pb"], touch: ["touch-x", "touch-y", "touch-pz"], "touch-x": ["touch"], "touch-y": ["touch"], "touch-pz": ["touch"] }, conflictingClassGroupModifiers: { "font-size": ["leading"] } };
404
404
  };
405
- Oa(Ja);
406
- K("<div style=overflow:visible>");
407
- K('<canvas class="fixed top-0 left-0 pointer-events-none z-[2147483645]">');
408
- K('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2><path d="M12 6H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6"></path><path d="M11 13l9-9"></path><path d="M15 4h5v5">');
409
- K('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><line x1=12 x2=12 y1=19 y2=22>');
410
- K('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 22 19"fill=none><path d="M6.76263 18.6626C7.48251 18.6626 7.95474 18.1682 7.95474 17.4895C7.95474 17.1207 7.80474 16.8576 7.58683 16.6361L5.3018 14.4137L2.84621 12.3589L2.44374 13.0037L5.92137 13.1622H17.9232C20.4842 13.1622 21.593 12.021 21.593 9.47237V3.66983C21.593 1.10875 20.4842 0 17.9232 0H12.5414C11.8179 0 11.3018 0.545895 11.3018 1.21695C11.3018 1.888 11.8179 2.43389 12.5414 2.43389H17.8424C18.7937 2.43389 19.1897 2.83653 19.1897 3.78784V9.35747C19.1897 10.3257 18.7937 10.7314 17.8424 10.7314H5.92137L2.44374 10.8832L2.84621 11.5281L5.3018 9.47993L7.58683 7.2606C7.80474 7.03914 7.95474 6.7693 7.95474 6.40049C7.95474 5.72854 7.48251 5.22747 6.76263 5.22747C6.46129 5.22747 6.12975 5.36905 5.89231 5.6096L0.376815 11.0425C0.134921 11.2777 0 11.6141 0 11.9452C0 12.2728 0.134921 12.6158 0.376815 12.848L5.89231 18.2871C6.12975 18.5276 6.46129 18.6626 6.76263 18.6626Z"fill=currentColor>');
411
- K('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none><path d="M17.65 6.35C16.2 4.9 14.21 4 12 4C7.58 4 4.01 7.58 4.01 12C4.01 16.42 7.58 20 12 20C15.73 20 18.84 17.45 19.73 14H17.65C16.83 16.33 14.61 18 12 18C8.69 18 6 15.31 6 12C6 8.69 8.69 6 12 6C13.66 6 15.14 6.69 16.22 7.78L13 11H20V4L17.65 6.35Z"fill=currentColor>');
412
- K('<div style="background-image:linear-gradient(in oklab 180deg, oklab(88.7% 0.086 -0.058) 0%, oklab(83.2% 0.132 -0.089) 100%)"><span>');
413
- K('<div class="contain-layout shrink-0 flex items-center w-fit h-4 rounded-[1px] gap-1 px-[3px] [border-width:0.5px] border-solid border-[#B3B3B3] py-0 bg-[#F7F7F7]"><span class="text-[#0C0C0C] text-[11.5px] leading-3.5 shrink-0 font-medium w-fit h-fit">');
414
- K('<div class="contain-layout shrink-0 flex items-center w-fit h-4 rounded-[1px] gap-1 px-[3px] [border-width:0.5px] border-solid border-white py-0"><span class="text-[#0C0C0C] text-[11.5px] leading-3.5 shrink-0 font-medium w-fit h-fit">&gt;');
415
- K('<div class="absolute w-0 h-0"style="border-left:8px solid transparent;border-right:8px solid transparent">');
416
- K('<div role=button><div class="text-black text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">');
417
- K('<div class="[font-synthesis:none] contain-layout shrink-0 flex flex-col items-start px-2 py-[5px] w-auto h-fit self-stretch [border-top-width:0.5px] border-t-solid border-t-[#D9D9D9] antialiased rounded-t-none rounded-b-xs -mt-px"style="background-image:linear-gradient(in oklab 180deg, oklab(100% 0 0) 0%, oklab(96.1% 0 0) 5.92%)">');
418
- K('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit"><button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">No</span></button><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#7e0002] cursor-pointer transition-all hover:bg-[#FEF2F2] h-[17px]"><span class="text-[#B91C1C] text-[11px] leading-3.5 font-sans font-medium">Yes');
419
- K('<div class="contain-layout shrink-0 flex flex-col justify-center items-end gap-1 w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-full h-fit"><span class="text-black text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">Discard?');
420
- K('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit"><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">Retry</span></button><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">Ok');
421
- K('<div class="contain-layout shrink-0 flex flex-col justify-center items-end gap-1 w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-full h-fit"><span class="text-[#B91C1C] text-[12px] leading-4 font-sans font-medium">');
422
- K('<button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#7e0002] cursor-pointer transition-all hover:bg-[#FEF2F2] h-[17px]"><span class="text-[#B91C1C] text-[11px] leading-3.5 font-sans font-medium">Undo');
423
- K('<button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">Reply');
424
- K('<button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">');
425
- K('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit">');
426
- K('<div class="[font-synthesis:none] contain-layout shrink-0 flex flex-col justify-center items-end rounded-xs bg-white antialiased w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1.5 pb-1 px-1.5 w-full h-fit"><span class="text-black text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit tabular-nums">');
427
- K('<button data-react-grab-ignore-events class="contain-layout shrink-0 flex flex-col items-start rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] p-1 size-fit cursor-pointer ml-1 transition-none hover:scale-105"><div data-react-grab-ignore-events class="shrink-0 w-[7px] h-[7px] rounded-[1px] bg-black pointer-events-none">');
428
- K('<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea data-react-grab-ignore-events class="text-black text-[12px] leading-4 font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0 opacity-50 wrap-break-word overflow-y-auto"placeholder="type to edit"rows=1 disabled style=field-sizing:content;min-height:16px;max-height:95px;scrollbar-width:none>');
429
- K('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-auto h-fit"><div class="contain-layout flex items-center px-0 py-px w-auto h-fit rounded-[1.5px] gap-[3px]"><span class="text-[12px] leading-4 font-sans font-medium w-auto h-fit whitespace-normal text-[#71717a] animate-pulse tabular-nums">');
430
- K('<div class="contain-layout shrink-0 flex items-center gap-px w-fit h-fit">');
431
- K('<span class="text-label-muted text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">Double click to edit');
432
- K('<div class="contain-layout shrink-0 flex flex-col items-start px-[3px] py-[3px] rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] size-fit">');
433
- K('<span class="text-label-muted text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">Press');
434
- K('<div class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-[2px] rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] size-fit"><span class="text-[9px] leading-none font-medium text-black">Esc');
435
- K('<span class="text-label-muted text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">to dismiss');
436
- K('<div class="contain-layout shrink-0 flex items-center gap-1 w-fit h-fit">');
437
- K('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit"><div></div><div class="grid transition-[grid-template-rows] duration-30 ease-out self-stretch"><div>');
438
- K('<div class="shrink-0 flex items-center gap-0.5 w-full mb-0.5 overflow-hidden"><span class="text-[#a1a1aa] text-[9px] leading-3 shrink-0">>previously:</span><span class="text-[#a1a1aa] text-[9px] leading-3 italic truncate whitespace-nowrap">');
439
- K("<button>");
440
- K('<button class="contain-layout shrink-0 flex flex-col items-start px-[3px] py-[3px] rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] size-fit cursor-pointer transition-all hover:scale-105">');
441
- K('<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea data-react-grab-ignore-events class="text-black text-[12px] leading-4 font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0 wrap-break-word overflow-y-auto"rows=1 style=field-sizing:content;min-height:16px;max-height:95px;scrollbar-width:none></textarea><div class="flex items-center gap-0.5 ml-1 w-[17px] h-[17px] justify-end">');
442
- K('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit max-w-[280px]"><div>');
443
- K('<div data-react-grab-ignore-events class="fixed font-sans antialiased transition-opacity duration-300 ease-out filter-[drop-shadow(0px_0px_4px_#51515180)] select-none"style=z-index:2147483647><div class="[font-synthesis:none] contain-layout flex items-center gap-[5px] rounded-xs bg-white antialiased w-fit h-fit p-0">');
444
- Dn(["click", "pointerdown", "mousedown", "pointerup", "input", "keydown"]);
445
- K('<div class="fixed z-2147483647"><button data-react-grab-selection-cursor>');
446
- Dn(["click"]);
447
- var Mi = "0.5.26";
448
- var Un = `bippy-${Mi}`;
449
- var Ri = Object.defineProperty;
450
- var Vl = Object.prototype.hasOwnProperty;
451
- var mn = () => {
405
+ Oa(Qa);
406
+ Q("<div style=overflow:visible>");
407
+ Q('<canvas class="fixed top-0 left-0 pointer-events-none z-[2147483645]">');
408
+ Q('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2><path d="M12 6H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6"></path><path d="M11 13l9-9"></path><path d="M15 4h5v5">');
409
+ Q('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 22 19"fill=none><path d="M6.76263 18.6626C7.48251 18.6626 7.95474 18.1682 7.95474 17.4895C7.95474 17.1207 7.80474 16.8576 7.58683 16.6361L5.3018 14.4137L2.84621 12.3589L2.44374 13.0037L5.92137 13.1622H17.9232C20.4842 13.1622 21.593 12.021 21.593 9.47237V3.66983C21.593 1.10875 20.4842 0 17.9232 0H12.5414C11.8179 0 11.3018 0.545895 11.3018 1.21695C11.3018 1.888 11.8179 2.43389 12.5414 2.43389H17.8424C18.7937 2.43389 19.1897 2.83653 19.1897 3.78784V9.35747C19.1897 10.3257 18.7937 10.7314 17.8424 10.7314H5.92137L2.44374 10.8832L2.84621 11.5281L5.3018 9.47993L7.58683 7.2606C7.80474 7.03914 7.95474 6.7693 7.95474 6.40049C7.95474 5.72854 7.48251 5.22747 6.76263 5.22747C6.46129 5.22747 6.12975 5.36905 5.89231 5.6096L0.376815 11.0425C0.134921 11.2777 0 11.6141 0 11.9452C0 12.2728 0.134921 12.6158 0.376815 12.848L5.89231 18.2871C6.12975 18.5276 6.46129 18.6626 6.76263 18.6626Z"fill=currentColor>');
410
+ Q('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none><path d="M17.65 6.35C16.2 4.9 14.21 4 12 4C7.58 4 4.01 7.58 4.01 12C4.01 16.42 7.58 20 12 20C15.73 20 18.84 17.45 19.73 14H17.65C16.83 16.33 14.61 18 12 18C8.69 18 6 15.31 6 12C6 8.69 8.69 6 12 6C13.66 6 15.14 6.69 16.22 7.78L13 11H20V4L17.65 6.35Z"fill=currentColor>');
411
+ Q("<div><span>");
412
+ Q('<div class="absolute w-0 h-0"style="border-left:8px solid transparent;border-right:8px solid transparent">');
413
+ Q("<span class=text-black/50>");
414
+ Q('<div role=button><div class="text-[13px] leading-4 shrink-0 font-sans font-medium w-fit h-fit"><span class=text-black>');
415
+ Q('<div class="[font-synthesis:none] contain-layout shrink-0 flex flex-col items-start px-2 py-[5px] w-auto h-fit self-stretch [border-top-width:0.5px] border-t-solid border-t-[#D9D9D9] antialiased rounded-t-none rounded-b-sm -mt-px"style="background-image:linear-gradient(in oklab 180deg, oklab(100% 0 0) 0%, oklab(96.1% 0 0) 5.92%)">');
416
+ Q('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit"><button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-sm bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[13px] leading-3.5 font-sans font-medium">No</span></button><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-sm bg-white [border-width:0.5px] border-solid border-[#7e0002] cursor-pointer transition-all hover:bg-[#FEF2F2] h-[17px]"><span class="text-[#B91C1C] text-[13px] leading-3.5 font-sans font-medium">Yes');
417
+ Q('<div class="contain-layout shrink-0 flex flex-col justify-center items-end gap-1 w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-full h-fit"><span class="text-black text-[13px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">Discard?');
418
+ Q('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit"><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-sm bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[13px] leading-3.5 font-sans font-medium">Retry</span></button><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-sm bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[13px] leading-3.5 font-sans font-medium">Ok');
419
+ Q('<div class="contain-layout shrink-0 flex flex-col justify-center items-end gap-1 w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-full h-fit"><span class="text-[#B91C1C] text-[13px] leading-4 font-sans font-medium">');
420
+ Q('<button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-sm bg-white [border-width:0.5px] border-solid border-[#7e0002] cursor-pointer transition-all hover:bg-[#FEF2F2] h-[17px]"><span class="text-[#B91C1C] text-[13px] leading-3.5 font-sans font-medium">Undo');
421
+ Q('<button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-sm bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[13px] leading-3.5 font-sans font-medium">Reply');
422
+ Q('<button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-sm bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[13px] leading-3.5 font-sans font-medium">');
423
+ Q('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit">');
424
+ Q('<div class="[font-synthesis:none] contain-layout shrink-0 flex flex-col justify-center items-end rounded-sm bg-white antialiased w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1.5 pb-1 px-1.5 w-full h-fit"><span class="text-black text-[13px] leading-4 shrink-0 font-sans font-medium w-fit h-fit tabular-nums">');
425
+ Q('<button data-react-grab-ignore-events class="contain-layout shrink-0 flex flex-col items-start rounded-sm bg-white [border-width:0.5px] border-solid border-[#B3B3B3] p-1 size-fit cursor-pointer ml-1 transition-none hover:scale-105"><div data-react-grab-ignore-events class="shrink-0 w-[7px] h-[7px] rounded-[1px] bg-black pointer-events-none">');
426
+ Q('<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea data-react-grab-ignore-events class="text-black text-[13px] leading-4 font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0 opacity-50 wrap-break-word overflow-y-auto"placeholder="type to edit"rows=1 disabled style=field-sizing:content;min-height:16px;max-height:95px;scrollbar-width:none>');
427
+ Q('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-auto h-fit"><div class="contain-layout flex items-center px-0 py-px w-auto h-fit rounded-sm gap-[3px]"><span class="text-[13px] leading-4 font-sans font-medium w-auto h-fit whitespace-normal text-[#71717a] animate-pulse tabular-nums">');
428
+ Q('<div class="contain-layout shrink-0 flex items-center gap-1 w-fit h-fit"><span class="text-label-muted text-[13px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">Press</span><div class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-[2px] rounded-sm bg-white [border-width:0.5px] border-solid border-[#B3B3B3] size-fit"><span class="text-[10px] leading-none font-medium text-black">Esc</span></div><span class="text-label-muted text-[13px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">to dismiss');
429
+ Q('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 w-fit h-fit pl-1.5 pr-1"></div><div class="grid transition-[grid-template-rows] duration-30 ease-out self-stretch"><div>');
430
+ Q('<div class="shrink-0 flex items-center gap-0.5 w-full mb-0.5 overflow-hidden"><span class="text-[#a1a1aa] text-[10px] leading-3 shrink-0">>previously:</span><span class="text-[#a1a1aa] text-[10px] leading-3 italic truncate whitespace-nowrap">');
431
+ Q('<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea data-react-grab-ignore-events class="text-black text-[13px] leading-4 font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0 wrap-break-word overflow-y-auto"placeholder="type prompt"rows=1 style=field-sizing:content;min-height:16px;max-height:95px;scrollbar-width:none></textarea><button class="contain-layout shrink-0 flex flex-col items-start px-[3px] py-[3px] rounded-sm bg-white [border-width:0.5px] border-solid border-[#B3B3B3] size-fit cursor-pointer transition-all hover:scale-105 ml-1">');
432
+ Q('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 w-fit h-fit pl-1.5 pr-1">');
433
+ Q('<div data-react-grab-ignore-events class="fixed font-sans text-[13px] antialiased transition-opacity duration-300 ease-out filter-[drop-shadow(0px_0px_4px_#51515180)] select-none"style=z-index:2147483647><div class="[font-synthesis:none] contain-layout flex items-center gap-[5px] rounded-sm bg-white antialiased w-fit h-fit p-0">');
434
+ Wt(["click", "pointerdown", "mousedown", "pointerup", "input", "keydown"]);
435
+ Q('<div class="fixed z-2147483647"><button data-react-grab-selection-cursor>');
436
+ Wt(["click"]);
437
+ Q('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 18 18"fill=currentColor><path opacity=0.4 d="M7.65631 10.9565C7.31061 10.0014 7.54012 8.96635 8.25592 8.25195C8.74522 7.76615 9.38771 7.49951 10.0694 7.49951C10.3682 7.49951 10.6641 7.55171 10.9483 7.65381L16.0001 9.49902V4.75C16.0001 3.2334 14.7667 2 13.2501 2H4.75012C3.23352 2 2.00012 3.2334 2.00012 4.75V13.25C2.00012 14.7666 3.23352 16 4.75012 16H9.49962L7.65631 10.9565Z"></path><path d="M17.296 11.5694L10.4415 9.06545C10.0431 8.92235 9.61441 9.01658 9.31551 9.31338C9.01671 9.61168 8.92101 10.0429 9.06551 10.4413L11.5704 17.2948C11.7247 17.7191 12.128 18.0004 12.5772 18.0004C12.585 18.0004 12.5918 17.9999 12.5987 17.9999C13.0577 17.9906 13.4591 17.6913 13.5987 17.2543L14.4854 14.4857L17.2559 13.5985C17.6914 13.4589 17.9903 13.057 18 12.599C18.0097 12.141 17.7267 11.7276 17.296 11.5694Z">');
438
+ Q('<svg xmlns=http://www.w3.org/2000/svg width=12 height=12 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2.5 stroke-linecap=round stroke-linejoin=round><path d="m18 15-6-6-6 6">');
439
+ Q('<div data-react-grab-ignore-events style=z-index:2147483647><div><div><button data-react-grab-ignore-events class="contain-layout shrink-0 flex items-center justify-center cursor-pointer transition-all hover:scale-105"></button></div><button data-react-grab-ignore-events class="contain-layout shrink-0 flex items-center justify-center cursor-pointer transition-all hover:scale-105">');
440
+ Wt(["pointerdown", "pointermove", "pointerup", "click"]);
441
+ var Oi = "0.5.26";
442
+ var Gn = `bippy-${Oi}`;
443
+ var Mi = Object.defineProperty;
444
+ var Hl = Object.prototype.hasOwnProperty;
445
+ var hn = () => {
452
446
  };
453
- var Oi = (e) => {
447
+ var $i = (e) => {
454
448
  try {
455
449
  Function.prototype.toString.call(e).indexOf("^_^") > -1 && setTimeout(() => {
456
450
  throw Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://reactjs.org/link/perf-use-production-build");
@@ -458,30 +452,30 @@ var Oi = (e) => {
458
452
  } catch {
459
453
  }
460
454
  };
461
- var Gn = (e = ut()) => "getFiberRoots" in e;
462
- var Pi = false;
463
- var Li;
464
- var pn = (e = ut()) => Pi ? true : (typeof e.inject == "function" && (Li = e.inject.toString()), !!Li?.includes("(injected)"));
465
- var jn = /* @__PURE__ */ new Set();
466
- var Lt = /* @__PURE__ */ new Set();
467
- var $i = (e) => {
468
- let t = /* @__PURE__ */ new Map(), n = 0, r = { _instrumentationIsActive: false, _instrumentationSource: Un, checkDCE: Oi, hasUnsupportedRendererAttached: false, inject(i) {
455
+ var Xn = (e = gt()) => "getFiberRoots" in e;
456
+ var Di = false;
457
+ var Pi;
458
+ var bn = (e = gt()) => Di ? true : (typeof e.inject == "function" && (Pi = e.inject.toString()), !!Pi?.includes("(injected)"));
459
+ var Un = /* @__PURE__ */ new Set();
460
+ var $t = /* @__PURE__ */ new Set();
461
+ var Fi = (e) => {
462
+ let t = /* @__PURE__ */ new Map(), n = 0, r = { _instrumentationIsActive: false, _instrumentationSource: Gn, checkDCE: $i, hasUnsupportedRendererAttached: false, inject(i) {
469
463
  let o = ++n;
470
- return t.set(o, i), Lt.add(i), r._instrumentationIsActive || (r._instrumentationIsActive = true, jn.forEach((a) => a())), o;
471
- }, on: mn, onCommitFiberRoot: mn, onCommitFiberUnmount: mn, onPostCommitFiberRoot: mn, renderers: t, supportsFiber: true, supportsFlight: true };
464
+ return t.set(o, i), $t.add(i), r._instrumentationIsActive || (r._instrumentationIsActive = true, Un.forEach((a) => a())), o;
465
+ }, on: hn, onCommitFiberRoot: hn, onCommitFiberUnmount: hn, onPostCommitFiberRoot: hn, renderers: t, supportsFiber: true, supportsFlight: true };
472
466
  try {
473
- Ri(globalThis, "__REACT_DEVTOOLS_GLOBAL_HOOK__", { configurable: true, enumerable: true, get() {
467
+ Mi(globalThis, "__REACT_DEVTOOLS_GLOBAL_HOOK__", { configurable: true, enumerable: true, get() {
474
468
  return r;
475
469
  }, set(a) {
476
470
  if (a && typeof a == "object") {
477
471
  let l = r.renderers;
478
472
  r = a, l.size > 0 && (l.forEach((c, u) => {
479
- Lt.add(c), a.renderers.set(u, c);
480
- }), Vn(e));
473
+ $t.add(c), a.renderers.set(u, c);
474
+ }), Kn(e));
481
475
  }
482
476
  } });
483
477
  let i = window.hasOwnProperty, o = false;
484
- Ri(window, "hasOwnProperty", { configurable: true, value: function(...a) {
478
+ Mi(window, "hasOwnProperty", { configurable: true, value: function(...a) {
485
479
  try {
486
480
  if (!o && a[0] === "__REACT_DEVTOOLS_GLOBAL_HOOK__") return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__ = void 0, o = true, -0;
487
481
  } catch {
@@ -489,189 +483,54 @@ var $i = (e) => {
489
483
  return i.apply(this, a);
490
484
  }, writable: true });
491
485
  } catch {
492
- Vn(e);
486
+ Kn(e);
493
487
  }
494
488
  return r;
495
489
  };
496
- var Vn = (e) => {
490
+ var Kn = (e) => {
497
491
  try {
498
492
  let t = globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;
499
493
  if (!t) return;
500
494
  if (!t._instrumentationSource) {
501
- t.checkDCE = Oi, t.supportsFiber = true, t.supportsFlight = true, t.hasUnsupportedRendererAttached = false, t._instrumentationSource = Un, t._instrumentationIsActive = false;
502
- let n = Gn(t);
503
- if (n || (t.on = mn), t.renderers.size) {
504
- t._instrumentationIsActive = true, jn.forEach((o) => o());
495
+ t.checkDCE = $i, t.supportsFiber = true, t.supportsFlight = true, t.hasUnsupportedRendererAttached = false, t._instrumentationSource = Gn, t._instrumentationIsActive = false;
496
+ let n = Xn(t);
497
+ if (n || (t.on = hn), t.renderers.size) {
498
+ t._instrumentationIsActive = true, Un.forEach((o) => o());
505
499
  return;
506
500
  }
507
- let r = t.inject, i = pn(t);
508
- i && !n && (Pi = true, t.inject({ scheduleRefresh() {
501
+ let r = t.inject, i = bn(t);
502
+ i && !n && (Di = true, t.inject({ scheduleRefresh() {
509
503
  } }) && (t._instrumentationIsActive = true)), t.inject = (o) => {
510
504
  let a = r(o);
511
- return Lt.add(o), i && t.renderers.set(a, o), t._instrumentationIsActive = true, jn.forEach((l) => l()), a;
505
+ return $t.add(o), i && t.renderers.set(a, o), t._instrumentationIsActive = true, Un.forEach((l) => l()), a;
512
506
  };
513
507
  }
514
- (t.renderers.size || t._instrumentationIsActive || pn()) && e?.();
508
+ (t.renderers.size || t._instrumentationIsActive || bn()) && e?.();
515
509
  } catch {
516
510
  }
517
511
  };
518
- var Er = () => Vl.call(globalThis, "__REACT_DEVTOOLS_GLOBAL_HOOK__");
519
- var ut = (e) => Er() ? (Vn(e), globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__) : $i(e);
520
- var Fi = () => !!(typeof window < "u" && (window.document?.createElement || window.navigator?.product === "ReactNative"));
521
- var kr = () => {
512
+ var Ar = () => Hl.call(globalThis, "__REACT_DEVTOOLS_GLOBAL_HOOK__");
513
+ var gt = (e) => Ar() ? (Kn(e), globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__) : Fi(e);
514
+ var Bi = () => !!(typeof window < "u" && (window.document?.createElement || window.navigator?.product === "ReactNative"));
515
+ var _r = () => {
522
516
  try {
523
- Fi() && ut();
517
+ Bi() && gt();
524
518
  } catch {
525
519
  }
526
520
  };
527
- var Tr = 0;
528
- var Ar = 1;
529
- var _r = 5;
530
- var Nr = 11;
531
- var Ir = 13;
532
- var Rr = 15;
533
- var Lr = 16;
534
- var Mr = 19;
535
- var Or = 26;
536
- var Pr = 27;
537
- var $r = 28;
538
- var Fr = 30;
539
- function Dr(e, t, n = false) {
540
- if (!e) return null;
541
- let r = t(e);
542
- if (r instanceof Promise) return (async () => {
543
- if (await r === true) return e;
544
- let o = n ? e.return : e.child;
545
- for (; o; ) {
546
- let a = await Hr(o, t, n);
547
- if (a) return a;
548
- o = n ? null : o.sibling;
549
- }
550
- return null;
551
- })();
552
- if (r === true) return e;
553
- let i = n ? e.return : e.child;
554
- for (; i; ) {
555
- let o = Br(i, t, n);
556
- if (o) return o;
557
- i = n ? null : i.sibling;
558
- }
559
- return null;
560
- }
561
- var Br = (e, t, n = false) => {
562
- if (!e) return null;
563
- if (t(e) === true) return e;
564
- let r = n ? e.return : e.child;
565
- for (; r; ) {
566
- let i = Br(r, t, n);
567
- if (i) return i;
568
- r = n ? null : r.sibling;
569
- }
570
- return null;
571
- };
572
- var Hr = async (e, t, n = false) => {
573
- if (!e) return null;
574
- if (await t(e) === true) return e;
575
- let r = n ? e.return : e.child;
576
- for (; r; ) {
577
- let i = await Hr(r, t, n);
578
- if (i) return i;
579
- r = n ? null : r.sibling;
580
- }
581
- return null;
582
- };
583
- var zr = (e) => {
584
- let t = e;
585
- return typeof t == "function" ? t : typeof t == "object" && t ? zr(t.type || t.render) : null;
586
- };
587
- var gn = (e) => {
588
- let t = e;
589
- if (typeof t == "string") return t;
590
- if (typeof t != "function" && !(typeof t == "object" && t)) return null;
591
- let n = t.displayName || t.name || null;
592
- if (n) return n;
593
- let r = zr(t);
594
- return r && (r.displayName || r.name) || null;
595
- };
596
- var hn = () => !!ut()._instrumentationIsActive || Gn() || pn();
597
- var jr = (e) => {
598
- let t = ut();
599
- for (let n of t.renderers.values()) try {
600
- let r = n.findFiberByHostInstance?.(e);
601
- if (r) return r;
602
- } catch {
603
- }
604
- if (typeof e == "object" && e) {
605
- if ("_reactRootContainer" in e) return e._reactRootContainer?._internalRoot?.current?.child;
606
- for (let n in e) if (n.startsWith("__reactContainer$") || n.startsWith("__reactInternalInstance$") || n.startsWith("__reactFiber")) return e[n] || null;
607
- }
608
- return null;
609
- };
610
- var Jl = Object.create;
611
- var Gi = Object.defineProperty;
612
- var Ql = Object.getOwnPropertyDescriptor;
613
- var ec = Object.getOwnPropertyNames;
614
- var tc = Object.getPrototypeOf;
615
- var nc = Object.prototype.hasOwnProperty;
616
- var rc = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
617
- var oc = (e, t, n, r) => {
618
- if (t && typeof t == "object" || typeof t == "function") for (var i = ec(t), o = 0, a = i.length, l; o < a; o++) l = i[o], !nc.call(e, l) && l !== n && Gi(e, l, { get: ((c) => t[c]).bind(null, l), enumerable: !(r = Ql(t, l)) || r.enumerable });
521
+ var Wl = Object.create;
522
+ var Xi = Object.defineProperty;
523
+ var ql = Object.getOwnPropertyDescriptor;
524
+ var Zl = Object.getOwnPropertyNames;
525
+ var Jl = Object.getPrototypeOf;
526
+ var Ql = Object.prototype.hasOwnProperty;
527
+ var ec = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
528
+ var tc = (e, t, n, r) => {
529
+ if (t && typeof t == "object" || typeof t == "function") for (var i = Zl(t), o = 0, a = i.length, l; o < a; o++) l = i[o], !Ql.call(e, l) && l !== n && Xi(e, l, { get: ((c) => t[c]).bind(null, l), enumerable: !(r = ql(t, l)) || r.enumerable });
619
530
  return e;
620
531
  };
621
- var ic = (e, t, n) => (n = e == null ? {} : Jl(tc(e)), oc(Gi(n, "default", { value: e, enumerable: true }), e));
622
- var Di = /^[a-zA-Z][a-zA-Z\d+\-.]*:/;
623
- var sc = ["rsc://", "file:///", "webpack://", "webpack-internal://", "node:", "turbopack://", "metro://", "/app-pages-browser/"];
624
- var Bi = "about://React/";
625
- var ac = ["<anonymous>", "eval", ""];
626
- var lc = /\.(jsx|tsx|ts|js)$/;
627
- var cc = /(\.min|bundle|chunk|vendor|vendors|runtime|polyfill|polyfills)\.(js|mjs|cjs)$|(chunk|bundle|vendor|vendors|runtime|polyfill|polyfills|framework|app|main|index)[-_.][A-Za-z0-9_-]{4,}\.(js|mjs|cjs)$|[\da-f]{8,}\.(js|mjs|cjs)$|[-_.][\da-f]{20,}\.(js|mjs|cjs)$|\/dist\/|\/build\/|\/.next\/|\/out\/|\/node_modules\/|\.webpack\.|\.vite\.|\.turbopack\./i;
628
- var uc = /^\?[\w~.\-]+(?:=[^&#]*)?(?:&[\w~.\-]+(?:=[^&#]*)?)*$/;
629
- var Ki = "(at Server)";
630
- var dc = /(^|@)\S+:\d+/;
631
- var Xi = /^\s*at .*(\S+:\d+|\(native\))/m;
632
- var fc = /^(eval@)?(\[native code\])?$/;
633
- var Wi = (e, t) => {
634
- {
635
- let n = e.split(`
636
- `), r = [];
637
- for (let i of n) if (/^\s*at\s+/.test(i)) {
638
- let o = Hi(i, void 0)[0];
639
- o && r.push(o);
640
- } else if (/^\s*in\s+/.test(i)) {
641
- let o = i.replace(/^\s*in\s+/, "").replace(/\s*\(at .*\)$/, "");
642
- r.push({ functionName: o, source: i });
643
- } else if (i.match(dc)) {
644
- let o = zi(i, void 0)[0];
645
- o && r.push(o);
646
- }
647
- return Gr(r, t);
648
- }
649
- };
650
- var Yi = (e) => {
651
- if (!e.includes(":")) return [e, void 0, void 0];
652
- let t = /(.+?)(?::(\d+))?(?::(\d+))?$/, n = t.exec(e.replace(/[()]/g, ""));
653
- return [n[1], n[2] || void 0, n[3] || void 0];
654
- };
655
- var Gr = (e, t) => t && t.slice != null ? Array.isArray(t.slice) ? e.slice(t.slice[0], t.slice[1]) : e.slice(0, t.slice) : e;
656
- var Hi = (e, t) => Gr(e.split(`
657
- `).filter((r) => !!r.match(Xi)), t).map((r) => {
658
- let i = r;
659
- i.includes("(eval ") && (i = i.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(,.*$)/g, ""));
660
- let o = i.replace(/^\s+/, "").replace(/\(eval code/g, "(").replace(/^.*?\s+/, ""), a = o.match(/ (\(.+\)$)/);
661
- o = a ? o.replace(a[0], "") : o;
662
- let l = Yi(a ? a[1] : o), c = a && o || void 0, u = ["eval", "<anonymous>"].includes(l[0]) ? void 0 : l[0];
663
- return { functionName: c, fileName: u, lineNumber: l[1] ? +l[1] : void 0, columnNumber: l[2] ? +l[2] : void 0, source: i };
664
- });
665
- var zi = (e, t) => Gr(e.split(`
666
- `).filter((r) => !r.match(fc)), t).map((r) => {
667
- let i = r;
668
- if (i.includes(" > eval") && (i = i.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1")), !i.includes("@") && !i.includes(":")) return { functionName: i };
669
- {
670
- let o = /(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/, a = i.match(o), l = a && a[1] ? a[1] : void 0, c = Yi(i.replace(o, ""));
671
- return { functionName: l, fileName: c[0], lineNumber: c[1] ? +c[1] : void 0, columnNumber: c[2] ? +c[2] : void 0, source: i };
672
- }
673
- });
674
- var mc = rc((e, t) => {
532
+ var nc = (e, t, n) => (n = e == null ? {} : Wl(Jl(e)), tc(Xi(n, "default", { value: e, enumerable: true }), e));
533
+ var uc = ec((e, t) => {
675
534
  (function(n, r) {
676
535
  typeof e == "object" && t !== void 0 ? r(e) : typeof define == "function" && define.amd ? define(["exports"], r) : (n = typeof globalThis < "u" ? globalThis : n || self, r(n.sourcemapCodec = {}));
677
536
  })(void 0, function(n) {
@@ -681,44 +540,44 @@ var mc = rc((e, t) => {
681
540
  a[h] = m, l[m] = h;
682
541
  }
683
542
  function c(h, m) {
684
- let f = 0, b = 0, L = 0;
543
+ let f = 0, b = 0, M = 0;
685
544
  do {
686
- let ne = h.next();
687
- L = l[ne], f |= (L & 31) << b, b += 5;
688
- } while (L & 32);
689
- let j = f & 1;
690
- return f >>>= 1, j && (f = -2147483648 | -f), m + f;
545
+ let oe = h.next();
546
+ M = l[oe], f |= (M & 31) << b, b += 5;
547
+ } while (M & 32);
548
+ let G = f & 1;
549
+ return f >>>= 1, G && (f = -2147483648 | -f), m + f;
691
550
  }
692
551
  function u(h, m, f) {
693
552
  let b = m - f;
694
553
  b = b < 0 ? -b << 1 | 1 : b << 1;
695
554
  do {
696
- let L = b & 31;
697
- b >>>= 5, b > 0 && (L |= 32), h.write(a[L]);
555
+ let M = b & 31;
556
+ b >>>= 5, b > 0 && (M |= 32), h.write(a[M]);
698
557
  } while (b > 0);
699
558
  return m;
700
559
  }
701
560
  function g(h, m) {
702
561
  return h.pos >= m ? false : h.peek() !== r;
703
562
  }
704
- let p = 1024 * 16, k = typeof TextDecoder < "u" ? new TextDecoder() : typeof Buffer < "u" ? { decode(h) {
563
+ let p = 1024 * 16, S = typeof TextDecoder < "u" ? new TextDecoder() : typeof Buffer < "u" ? { decode(h) {
705
564
  return Buffer.from(h.buffer, h.byteOffset, h.byteLength).toString();
706
565
  } } : { decode(h) {
707
566
  let m = "";
708
567
  for (let f = 0; f < h.length; f++) m += String.fromCharCode(h[f]);
709
568
  return m;
710
569
  } };
711
- class y {
570
+ class w {
712
571
  constructor() {
713
572
  this.pos = 0, this.out = "", this.buffer = new Uint8Array(p);
714
573
  }
715
574
  write(m) {
716
575
  let { buffer: f } = this;
717
- f[this.pos++] = m, this.pos === p && (this.out += k.decode(f), this.pos = 0);
576
+ f[this.pos++] = m, this.pos === p && (this.out += S.decode(f), this.pos = 0);
718
577
  }
719
578
  flush() {
720
579
  let { buffer: m, out: f, pos: b } = this;
721
- return b > 0 ? f + k.decode(m.subarray(0, b)) : f;
580
+ return b > 0 ? f + S.decode(m.subarray(0, b)) : f;
722
581
  }
723
582
  }
724
583
  class x {
@@ -732,568 +591,175 @@ var mc = rc((e, t) => {
732
591
  return this.buffer.charCodeAt(this.pos);
733
592
  }
734
593
  indexOf(m) {
735
- let { buffer: f, pos: b } = this, L = f.indexOf(m, b);
736
- return L === -1 ? f.length : L;
594
+ let { buffer: f, pos: b } = this, M = f.indexOf(m, b);
595
+ return M === -1 ? f.length : M;
737
596
  }
738
597
  }
739
- let _ = [];
740
- function H(h) {
741
- let { length: m } = h, f = new x(h), b = [], L = [], j = 0;
598
+ let I = [];
599
+ function j(h) {
600
+ let { length: m } = h, f = new x(h), b = [], M = [], G = 0;
742
601
  for (; f.pos < m; f.pos++) {
743
- j = c(f, j);
744
- let ne = c(f, 0);
602
+ G = c(f, G);
603
+ let oe = c(f, 0);
745
604
  if (!g(f, m)) {
746
- let Y = L.pop();
747
- Y[2] = j, Y[3] = ne;
605
+ let se = M.pop();
606
+ se[2] = G, se[3] = oe;
748
607
  continue;
749
608
  }
750
- let te = c(f, 0), se = c(f, 0), S = se & 1, F = S ? [j, ne, 0, 0, te, c(f, 0)] : [j, ne, 0, 0, te], X = _;
609
+ let ie = c(f, 0), C = c(f, 0), X = C & 1, Y = X ? [G, oe, 0, 0, ie, c(f, 0)] : [G, oe, 0, 0, ie], P = I;
751
610
  if (g(f, m)) {
752
- X = [];
611
+ P = [];
753
612
  do {
754
- let Y = c(f, 0);
755
- X.push(Y);
613
+ let se = c(f, 0);
614
+ P.push(se);
756
615
  } while (g(f, m));
757
616
  }
758
- F.vars = X, b.push(F), L.push(F);
617
+ Y.vars = P, b.push(Y), M.push(Y);
759
618
  }
760
619
  return b;
761
620
  }
762
- function V(h) {
763
- let m = new y();
764
- for (let f = 0; f < h.length; ) f = C(h, f, m, [0]);
621
+ function K(h) {
622
+ let m = new w();
623
+ for (let f = 0; f < h.length; ) f = _(h, f, m, [0]);
765
624
  return m.flush();
766
625
  }
767
- function C(h, m, f, b) {
768
- let L = h[m], { 0: j, 1: ne, 2: te, 3: se, 4: S, vars: F } = L;
769
- m > 0 && f.write(r), b[0] = u(f, j, b[0]), u(f, ne, 0), u(f, S, 0);
770
- let X = L.length === 6 ? 1 : 0;
771
- u(f, X, 0), L.length === 6 && u(f, L[5], 0);
772
- for (let Y of F) u(f, Y, 0);
626
+ function _(h, m, f, b) {
627
+ let M = h[m], { 0: G, 1: oe, 2: ie, 3: C, 4: X, vars: Y } = M;
628
+ m > 0 && f.write(r), b[0] = u(f, G, b[0]), u(f, oe, 0), u(f, X, 0);
629
+ let P = M.length === 6 ? 1 : 0;
630
+ u(f, P, 0), M.length === 6 && u(f, M[5], 0);
631
+ for (let se of Y) u(f, se, 0);
773
632
  for (m++; m < h.length; ) {
774
- let Y = h[m], { 0: G, 1: U } = Y;
775
- if (G > te || G === te && U >= se) break;
776
- m = C(h, m, f, b);
633
+ let se = h[m], { 0: V, 1: U } = se;
634
+ if (V > ie || V === ie && U >= C) break;
635
+ m = _(h, m, f, b);
777
636
  }
778
- return f.write(r), b[0] = u(f, te, b[0]), u(f, se, 0), m;
637
+ return f.write(r), b[0] = u(f, ie, b[0]), u(f, C, 0), m;
779
638
  }
780
- function $(h) {
781
- let { length: m } = h, f = new x(h), b = [], L = [], j = 0, ne = 0, te = 0, se = 0, S = 0, F = 0, X = 0, Y = 0;
639
+ function F(h) {
640
+ let { length: m } = h, f = new x(h), b = [], M = [], G = 0, oe = 0, ie = 0, C = 0, X = 0, Y = 0, P = 0, se = 0;
782
641
  do {
783
- let G = f.indexOf(";"), U = 0;
784
- for (; f.pos < G; f.pos++) {
785
- if (U = c(f, U), !g(f, G)) {
786
- let Se = L.pop();
787
- Se[2] = j, Se[3] = U;
642
+ let V = f.indexOf(";"), U = 0;
643
+ for (; f.pos < V; f.pos++) {
644
+ if (U = c(f, U), !g(f, V)) {
645
+ let te = M.pop();
646
+ te[2] = G, te[3] = U;
788
647
  continue;
789
648
  }
790
- let ae = c(f, 0), ee = ae & 1, fe = ae & 2, me = ae & 4, we = null, pe = _, Te;
791
- if (ee) {
792
- let Se = c(f, ne);
793
- te = c(f, ne === Se ? te : 0), ne = Se, Te = [j, U, 0, 0, Se, te];
794
- } else Te = [j, U, 0, 0];
795
- if (Te.isScope = !!me, fe) {
796
- let Se = se, rt = S;
797
- se = c(f, se);
798
- let Fe = Se === se;
799
- S = c(f, Fe ? S : 0), F = c(f, Fe && rt === S ? F : 0), we = [se, S, F];
649
+ let ae = c(f, 0), E = ae & 1, B = ae & 2, ee = ae & 4, J = null, me = I, Se;
650
+ if (E) {
651
+ let te = c(f, oe);
652
+ ie = c(f, oe === te ? ie : 0), oe = te, Se = [G, U, 0, 0, te, ie];
653
+ } else Se = [G, U, 0, 0];
654
+ if (Se.isScope = !!ee, B) {
655
+ let te = C, we = X;
656
+ C = c(f, C);
657
+ let ye = te === C;
658
+ X = c(f, ye ? X : 0), Y = c(f, ye && we === X ? Y : 0), J = [C, X, Y];
800
659
  }
801
- if (Te.callsite = we, g(f, G)) {
802
- pe = [];
660
+ if (Se.callsite = J, g(f, V)) {
661
+ me = [];
803
662
  do {
804
- X = j, Y = U;
805
- let Se = c(f, 0), rt;
806
- if (Se < -1) {
807
- rt = [[c(f, 0)]];
808
- for (let Fe = -1; Fe > Se; Fe--) {
809
- let Ve = X;
810
- X = c(f, X), Y = c(f, X === Ve ? Y : 0);
811
- let Jt = c(f, 0);
812
- rt.push([Jt, X, Y]);
663
+ P = G, se = U;
664
+ let te = c(f, 0), we;
665
+ if (te < -1) {
666
+ we = [[c(f, 0)]];
667
+ for (let ye = -1; ye > te; ye--) {
668
+ let Le = P;
669
+ P = c(f, P), se = c(f, P === Le ? se : 0);
670
+ let He = c(f, 0);
671
+ we.push([He, P, se]);
813
672
  }
814
- } else rt = [[Se]];
815
- pe.push(rt);
816
- } while (g(f, G));
673
+ } else we = [[te]];
674
+ me.push(we);
675
+ } while (g(f, V));
817
676
  }
818
- Te.bindings = pe, b.push(Te), L.push(Te);
677
+ Se.bindings = me, b.push(Se), M.push(Se);
819
678
  }
820
- j++, f.pos = G + 1;
679
+ G++, f.pos = V + 1;
821
680
  } while (f.pos < m);
822
681
  return b;
823
682
  }
824
- function Z(h) {
683
+ function ne(h) {
825
684
  if (h.length === 0) return "";
826
- let m = new y();
685
+ let m = new w();
827
686
  for (let f = 0; f < h.length; ) f = v(h, f, m, [0, 0, 0, 0, 0, 0, 0]);
828
687
  return m.flush();
829
688
  }
830
689
  function v(h, m, f, b) {
831
- let L = h[m], { 0: j, 1: ne, 2: te, 3: se, isScope: S, callsite: F, bindings: X } = L;
832
- b[0] < j ? (M(f, b[0], j), b[0] = j, b[1] = 0) : m > 0 && f.write(r), b[1] = u(f, L[1], b[1]);
833
- let Y = (L.length === 6 ? 1 : 0) | (F ? 2 : 0) | (S ? 4 : 0);
834
- if (u(f, Y, 0), L.length === 6) {
835
- let { 4: G, 5: U } = L;
836
- G !== b[2] && (b[3] = 0), b[2] = u(f, G, b[2]), b[3] = u(f, U, b[3]);
690
+ let M = h[m], { 0: G, 1: oe, 2: ie, 3: C, isScope: X, callsite: Y, bindings: P } = M;
691
+ b[0] < G ? (O(f, b[0], G), b[0] = G, b[1] = 0) : m > 0 && f.write(r), b[1] = u(f, M[1], b[1]);
692
+ let se = (M.length === 6 ? 1 : 0) | (Y ? 2 : 0) | (X ? 4 : 0);
693
+ if (u(f, se, 0), M.length === 6) {
694
+ let { 4: V, 5: U } = M;
695
+ V !== b[2] && (b[3] = 0), b[2] = u(f, V, b[2]), b[3] = u(f, U, b[3]);
837
696
  }
838
- if (F) {
839
- let { 0: G, 1: U, 2: ae } = L.callsite;
840
- G === b[4] ? U !== b[5] && (b[6] = 0) : (b[5] = 0, b[6] = 0), b[4] = u(f, G, b[4]), b[5] = u(f, U, b[5]), b[6] = u(f, ae, b[6]);
697
+ if (Y) {
698
+ let { 0: V, 1: U, 2: ae } = M.callsite;
699
+ V === b[4] ? U !== b[5] && (b[6] = 0) : (b[5] = 0, b[6] = 0), b[4] = u(f, V, b[4]), b[5] = u(f, U, b[5]), b[6] = u(f, ae, b[6]);
841
700
  }
842
- if (X) for (let G of X) {
843
- G.length > 1 && u(f, -G.length, 0);
844
- let U = G[0][0];
701
+ if (P) for (let V of P) {
702
+ V.length > 1 && u(f, -V.length, 0);
703
+ let U = V[0][0];
845
704
  u(f, U, 0);
846
- let ae = j, ee = ne;
847
- for (let fe = 1; fe < G.length; fe++) {
848
- let me = G[fe];
849
- ae = u(f, me[1], ae), ee = u(f, me[2], ee), u(f, me[0], 0);
705
+ let ae = G, E = oe;
706
+ for (let B = 1; B < V.length; B++) {
707
+ let ee = V[B];
708
+ ae = u(f, ee[1], ae), E = u(f, ee[2], E), u(f, ee[0], 0);
850
709
  }
851
710
  }
852
711
  for (m++; m < h.length; ) {
853
- let G = h[m], { 0: U, 1: ae } = G;
854
- if (U > te || U === te && ae >= se) break;
712
+ let V = h[m], { 0: U, 1: ae } = V;
713
+ if (U > ie || U === ie && ae >= C) break;
855
714
  m = v(h, m, f, b);
856
715
  }
857
- return b[0] < te ? (M(f, b[0], te), b[0] = te, b[1] = 0) : f.write(r), b[1] = u(f, se, b[1]), m;
716
+ return b[0] < ie ? (O(f, b[0], ie), b[0] = ie, b[1] = 0) : f.write(r), b[1] = u(f, C, b[1]), m;
858
717
  }
859
- function M(h, m, f) {
718
+ function O(h, m, f) {
860
719
  do
861
720
  h.write(i);
862
721
  while (++m < f);
863
722
  }
864
- function W(h) {
865
- let { length: m } = h, f = new x(h), b = [], L = 0, j = 0, ne = 0, te = 0, se = 0;
723
+ function Z(h) {
724
+ let { length: m } = h, f = new x(h), b = [], M = 0, G = 0, oe = 0, ie = 0, C = 0;
866
725
  do {
867
- let S = f.indexOf(";"), F = [], X = true, Y = 0;
868
- for (L = 0; f.pos < S; ) {
869
- let G;
870
- L = c(f, L), L < Y && (X = false), Y = L, g(f, S) ? (j = c(f, j), ne = c(f, ne), te = c(f, te), g(f, S) ? (se = c(f, se), G = [L, j, ne, te, se]) : G = [L, j, ne, te]) : G = [L], F.push(G), f.pos++;
726
+ let X = f.indexOf(";"), Y = [], P = true, se = 0;
727
+ for (M = 0; f.pos < X; ) {
728
+ let V;
729
+ M = c(f, M), M < se && (P = false), se = M, g(f, X) ? (G = c(f, G), oe = c(f, oe), ie = c(f, ie), g(f, X) ? (C = c(f, C), V = [M, G, oe, ie, C]) : V = [M, G, oe, ie]) : V = [M], Y.push(V), f.pos++;
871
730
  }
872
- X || z(F), b.push(F), f.pos = S + 1;
731
+ P || $(Y), b.push(Y), f.pos = X + 1;
873
732
  } while (f.pos <= m);
874
733
  return b;
875
734
  }
876
- function z(h) {
877
- h.sort(q);
735
+ function $(h) {
736
+ h.sort(W);
878
737
  }
879
- function q(h, m) {
738
+ function W(h, m) {
880
739
  return h[0] - m[0];
881
740
  }
882
- function O(h) {
883
- let m = new y(), f = 0, b = 0, L = 0, j = 0;
884
- for (let ne = 0; ne < h.length; ne++) {
885
- let te = h[ne];
886
- if (ne > 0 && m.write(i), te.length === 0) continue;
887
- let se = 0;
888
- for (let S = 0; S < te.length; S++) {
889
- let F = te[S];
890
- S > 0 && m.write(r), se = u(m, F[0], se), F.length !== 1 && (f = u(m, F[1], f), b = u(m, F[2], b), L = u(m, F[3], L), F.length !== 4 && (j = u(m, F[4], j)));
741
+ function D(h) {
742
+ let m = new w(), f = 0, b = 0, M = 0, G = 0;
743
+ for (let oe = 0; oe < h.length; oe++) {
744
+ let ie = h[oe];
745
+ if (oe > 0 && m.write(i), ie.length === 0) continue;
746
+ let C = 0;
747
+ for (let X = 0; X < ie.length; X++) {
748
+ let Y = ie[X];
749
+ X > 0 && m.write(r), C = u(m, Y[0], C), Y.length !== 1 && (f = u(m, Y[1], f), b = u(m, Y[2], b), M = u(m, Y[3], M), Y.length !== 4 && (G = u(m, Y[4], G)));
891
750
  }
892
751
  }
893
752
  return m.flush();
894
753
  }
895
- n.decode = W, n.decodeGeneratedRanges = $, n.decodeOriginalScopes = H, n.encode = O, n.encodeGeneratedRanges = Z, n.encodeOriginalScopes = V, Object.defineProperty(n, "__esModule", { value: true });
754
+ n.decode = Z, n.decodeGeneratedRanges = F, n.decodeOriginalScopes = j, n.encode = D, n.encodeGeneratedRanges = ne, n.encodeOriginalScopes = K, Object.defineProperty(n, "__esModule", { value: true });
896
755
  });
897
756
  });
898
- var qi = ic(mc());
899
- var Zi = /^[a-zA-Z][a-zA-Z\d+\-.]*:/;
900
- var pc = /^data:application\/json[^,]+base64,/;
901
- var gc = /(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/;
902
- var Ji = typeof WeakRef < "u";
903
- var bn = /* @__PURE__ */ new Map();
904
- var Kn = /* @__PURE__ */ new Map();
905
- var hc = (e) => Ji && e instanceof WeakRef;
906
- var ji = (e, t, n, r) => {
907
- if (n < 0 || n >= e.length) return null;
908
- let i = e[n];
909
- if (!i || i.length === 0) return null;
910
- let o = null;
911
- for (let g of i) if (g[0] <= r) o = g;
912
- else break;
913
- if (!o || o.length < 4) return null;
914
- let [, a, l, c] = o;
915
- if (a === void 0 || l === void 0 || c === void 0) return null;
916
- let u = t[a];
917
- return u ? { columnNumber: c, fileName: u, lineNumber: l + 1 } : null;
918
- };
919
- var bc = (e, t, n) => {
920
- if (e.sections) {
921
- let r = null;
922
- for (let a of e.sections) if (t > a.offset.line || t === a.offset.line && n >= a.offset.column) r = a;
923
- else break;
924
- if (!r) return null;
925
- let i = t - r.offset.line, o = t === r.offset.line ? n - r.offset.column : n;
926
- return ji(r.map.mappings, r.map.sources, i, o);
927
- }
928
- return ji(e.mappings, e.sources, t - 1, n);
929
- };
930
- var yc = (e, t) => {
931
- let n = t.split(`
932
- `), r;
933
- for (let o = n.length - 1; o >= 0 && !r; o--) {
934
- let a = n[o].match(gc);
935
- a && (r = a[1] || a[2]);
936
- }
937
- if (!r) return null;
938
- let i = Zi.test(r);
939
- if (!(pc.test(r) || i || r.startsWith("/"))) {
940
- let o = e.split("/");
941
- o[o.length - 1] = r, r = o.join("/");
942
- }
943
- return r;
944
- };
945
- var wc = (e) => ({ file: e.file, mappings: (0, qi.decode)(e.mappings), names: e.names, sourceRoot: e.sourceRoot, sources: e.sources, sourcesContent: e.sourcesContent, version: 3 });
946
- var xc = (e) => {
947
- let t = e.sections.map(({ map: r, offset: i }) => ({ map: { ...r, mappings: (0, qi.decode)(r.mappings) }, offset: i })), n = /* @__PURE__ */ new Set();
948
- for (let r of t) for (let i of r.map.sources) n.add(i);
949
- return { file: e.file, mappings: [], names: [], sections: t, sourceRoot: void 0, sources: Array.from(n), sourcesContent: void 0, version: 3 };
950
- };
951
- var Vi = (e) => {
952
- if (!e) return false;
953
- let t = e.trim();
954
- if (!t) return false;
955
- let n = t.match(Zi);
956
- if (!n) return true;
957
- let r = n[0].toLowerCase();
958
- return r === "http:" || r === "https:";
959
- };
960
- var vc = async (e, t = fetch) => {
961
- if (!Vi(e)) return null;
962
- let n;
963
- try {
964
- n = await (await t(e)).text();
965
- } catch {
966
- return null;
967
- }
968
- if (!n) return null;
969
- let r = yc(e, n);
970
- if (!r || !Vi(r)) return null;
971
- try {
972
- let i = await t(r), o = await i.json();
973
- return "sections" in o ? xc(o) : wc(o);
974
- } catch {
975
- return null;
976
- }
977
- };
978
- var Sc = async (e, t = true, n) => {
979
- if (t && bn.has(e)) {
980
- let o = bn.get(e);
981
- if (o == null) return null;
982
- if (hc(o)) {
983
- let a = o.deref();
984
- if (a) return a;
985
- bn.delete(e);
986
- } else return o;
987
- }
988
- if (t && Kn.has(e)) return Kn.get(e);
989
- let r = vc(e, n);
990
- t && Kn.set(e, r);
991
- let i = await r;
992
- return t && Kn.delete(e), t && (i === null ? bn.set(e, null) : bn.set(e, Ji ? new WeakRef(i) : i)), i;
993
- };
994
- var Cc = async (e, t = true, n) => await Promise.all(e.map(async (r) => {
995
- if (!r.fileName) return r;
996
- let i = await Sc(r.fileName, t, n);
997
- if (!i || typeof r.lineNumber != "number" || typeof r.columnNumber != "number") return r;
998
- let o = bc(i, r.lineNumber, r.columnNumber);
999
- return o ? { ...r, source: o.fileName && r.source ? r.source.replace(r.fileName, o.fileName) : r.source, fileName: o.fileName, lineNumber: o.lineNumber, columnNumber: o.columnNumber, isSymbolicated: true } : r;
1000
- }));
1001
- var Ec = (e) => e._debugStack instanceof Error && typeof e._debugStack?.stack == "string";
1002
- var kc = () => {
1003
- let e = ut();
1004
- for (let t of [...Array.from(Lt), ...Array.from(e.renderers.values())]) {
1005
- let n = t.currentDispatcherRef;
1006
- if (n && typeof n == "object") return "H" in n ? n.H : n.current;
1007
- }
1008
- return null;
1009
- };
1010
- var Ui = (e) => {
1011
- for (let t of Lt) {
1012
- let n = t.currentDispatcherRef;
1013
- n && typeof n == "object" && ("H" in n ? n.H = e : n.current = e);
1014
- }
1015
- };
1016
- var dt = (e) => `
1017
- in ${e}`;
1018
- var Tc = (e, t) => {
1019
- let n = dt(e);
1020
- return t && (n += ` (at ${t})`), n;
1021
- };
1022
- var Vr = false;
1023
- var Ur = (e, t) => {
1024
- if (!e || Vr) return "";
1025
- let n = Error.prepareStackTrace;
1026
- Error.prepareStackTrace = void 0, Vr = true;
1027
- let r = kc();
1028
- Ui(null);
1029
- let i = console.error, o = console.warn;
1030
- console.error = () => {
1031
- }, console.warn = () => {
1032
- };
1033
- try {
1034
- let c = { DetermineComponentFrameRoot() {
1035
- let k;
1036
- try {
1037
- if (t) {
1038
- let y = function() {
1039
- throw Error();
1040
- };
1041
- if (Object.defineProperty(y.prototype, "props", { set: function() {
1042
- throw Error();
1043
- } }), typeof Reflect == "object" && Reflect.construct) {
1044
- try {
1045
- Reflect.construct(y, []);
1046
- } catch (x) {
1047
- k = x;
1048
- }
1049
- Reflect.construct(e, [], y);
1050
- } else {
1051
- try {
1052
- y.call();
1053
- } catch (x) {
1054
- k = x;
1055
- }
1056
- e.call(y.prototype);
1057
- }
1058
- } else {
1059
- try {
1060
- throw Error();
1061
- } catch (x) {
1062
- k = x;
1063
- }
1064
- let y = e();
1065
- y && typeof y.catch == "function" && y.catch(() => {
1066
- });
1067
- }
1068
- } catch (y) {
1069
- if (y instanceof Error && k instanceof Error && typeof y.stack == "string") return [y.stack, k.stack];
1070
- }
1071
- return [null, null];
1072
- } };
1073
- c.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot", Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot, "name")?.configurable && Object.defineProperty(c.DetermineComponentFrameRoot, "name", { value: "DetermineComponentFrameRoot" });
1074
- let [g, p] = c.DetermineComponentFrameRoot();
1075
- if (g && p) {
1076
- let k = g.split(`
1077
- `), y = p.split(`
1078
- `), x = 0, _ = 0;
1079
- for (; x < k.length && !k[x].includes("DetermineComponentFrameRoot"); ) x++;
1080
- for (; _ < y.length && !y[_].includes("DetermineComponentFrameRoot"); ) _++;
1081
- if (x === k.length || _ === y.length) for (x = k.length - 1, _ = y.length - 1; x >= 1 && _ >= 0 && k[x] !== y[_]; ) _--;
1082
- for (; x >= 1 && _ >= 0; x--, _--) if (k[x] !== y[_]) {
1083
- if (x !== 1 || _ !== 1) do
1084
- if (x--, _--, _ < 0 || k[x] !== y[_]) {
1085
- let H = `
1086
- ${k[x].replace(" at new ", " at ")}`, V = gn(e);
1087
- return V && H.includes("<anonymous>") && (H = H.replace("<anonymous>", V)), H;
1088
- }
1089
- while (x >= 1 && _ >= 0);
1090
- break;
1091
- }
1092
- }
1093
- } finally {
1094
- Vr = false, Error.prepareStackTrace = n, Ui(r), console.error = i, console.warn = o;
1095
- }
1096
- let a = e ? gn(e) : "";
1097
- return a ? dt(a) : "";
1098
- };
1099
- var Ac = (e, t) => {
1100
- let n = e.tag, r = "";
1101
- switch (n) {
1102
- case $r:
1103
- r = dt("Activity");
1104
- break;
1105
- case Ar:
1106
- r = Ur(e.type, true);
1107
- break;
1108
- case Nr:
1109
- r = Ur(e.type.render, false);
1110
- break;
1111
- case Tr:
1112
- case Rr:
1113
- r = Ur(e.type, false);
1114
- break;
1115
- case _r:
1116
- case Or:
1117
- case Pr:
1118
- r = dt(e.type);
1119
- break;
1120
- case Lr:
1121
- r = dt("Lazy");
1122
- break;
1123
- case Ir:
1124
- r = e.child !== t && t !== null ? dt("Suspense Fallback") : dt("Suspense");
1125
- break;
1126
- case Mr:
1127
- r = dt("SuspenseList");
1128
- break;
1129
- case Fr:
1130
- r = dt("ViewTransition");
1131
- break;
1132
- default:
1133
- return "";
1134
- }
1135
- return r;
1136
- };
1137
- var _c = (e) => {
1138
- try {
1139
- let t = "", n = e, r = null;
1140
- do {
1141
- t += Ac(n, r);
1142
- let i = n._debugInfo;
1143
- if (i && Array.isArray(i)) for (let o = i.length - 1; o >= 0; o--) {
1144
- let a = i[o];
1145
- typeof a.name == "string" && (t += Tc(a.name, a.env));
1146
- }
1147
- r = n, n = n.return;
1148
- } while (n);
1149
- return t;
1150
- } catch (t) {
1151
- return t instanceof Error ? `
1152
- Error generating stack: ${t.message}
1153
- ${t.stack}` : "";
1154
- }
1155
- };
1156
- var Nc = (e) => {
1157
- let t = Error.prepareStackTrace;
1158
- Error.prepareStackTrace = void 0;
1159
- let n = e;
1160
- if (!n) return "";
1161
- Error.prepareStackTrace = t, n.startsWith(`Error: react-stack-top-frame
1162
- `) && (n = n.slice(29));
1163
- let r = n.indexOf(`
1164
- `);
1165
- if (r !== -1 && (n = n.slice(r + 1)), r = Math.max(n.indexOf("react_stack_bottom_frame"), n.indexOf("react-stack-bottom-frame")), r !== -1 && (r = n.lastIndexOf(`
1166
- `, r)), r !== -1) n = n.slice(0, r);
1167
- else return "";
1168
- return n;
1169
- };
1170
- var Ic = (e) => !!(e.fileName?.startsWith("rsc://") && e.functionName);
1171
- var Rc = (e, t) => e.fileName === t.fileName && e.lineNumber === t.lineNumber && e.columnNumber === t.columnNumber;
1172
- var Lc = (e) => {
1173
- let t = /* @__PURE__ */ new Map();
1174
- for (let n of e) for (let r of n.stackFrames) {
1175
- if (!Ic(r)) continue;
1176
- let i = r.functionName, o = t.get(i) ?? [];
1177
- o.some((l) => Rc(l, r)) || (o.push(r), t.set(i, o));
1178
- }
1179
- return t;
1180
- };
1181
- var Mc = (e, t, n) => {
1182
- if (!e.functionName) return { ...e, isServer: true };
1183
- let r = t.get(e.functionName);
1184
- if (!r || r.length === 0) return { ...e, isServer: true };
1185
- let i = n.get(e.functionName) ?? 0, o = r[i % r.length];
1186
- return n.set(e.functionName, i + 1), { ...e, isServer: true, fileName: o.fileName, lineNumber: o.lineNumber, columnNumber: o.columnNumber, source: e.source?.replace(Ki, `(${o.fileName}:${o.lineNumber}:${o.columnNumber})`) };
1187
- };
1188
- var Oc = (e) => {
1189
- let t = [];
1190
- return Dr(e, (n) => {
1191
- if (!Ec(n)) return;
1192
- let r = typeof n.type == "string" ? n.type : gn(n.type) || "<anonymous>";
1193
- t.push({ componentName: r, stackFrames: Wi(Nc(n._debugStack?.stack)) });
1194
- }, true), t;
1195
- };
1196
- var Qi = async (e, t = true, n) => {
1197
- let r = Oc(e), i = Wi(_c(e)), o = Lc(r), a = /* @__PURE__ */ new Map(), l = i.map((u) => u.source?.includes(Ki) ?? false ? Mc(u, o, a) : u), c = l.filter((u, g, p) => {
1198
- if (g === 0) return true;
1199
- let k = p[g - 1];
1200
- return u.functionName !== k.functionName;
1201
- });
1202
- return Cc(c, t, n);
1203
- };
1204
- var yn = (e) => {
1205
- if (!e || ac.some((i) => i === e)) return "";
1206
- let t = e;
1207
- if (t.startsWith("http://") || t.startsWith("https://")) try {
1208
- t = new URL(t).pathname;
1209
- } catch {
1210
- }
1211
- if (t.startsWith(Bi)) {
1212
- let i = t.slice(Bi.length), o = i.indexOf("/"), a = i.indexOf(":");
1213
- t = o !== -1 && (a === -1 || o < a) ? i.slice(o + 1) : i;
1214
- }
1215
- let n = true;
1216
- for (; n; ) {
1217
- n = false;
1218
- for (let i of sc) if (t.startsWith(i)) {
1219
- t = t.slice(i.length), i === "file:///" && (t = `/${t.replace(/^\/+/, "")}`), n = true;
1220
- break;
1221
- }
1222
- }
1223
- if (Di.test(t)) {
1224
- let i = t.match(Di);
1225
- i && (t = t.slice(i[0].length));
1226
- }
1227
- if (t.startsWith("//")) {
1228
- let i = t.indexOf("/", 2);
1229
- t = i === -1 ? "" : t.slice(i);
1230
- }
1231
- let r = t.indexOf("?");
1232
- if (r !== -1) {
1233
- let i = t.slice(r);
1234
- uc.test(i) && (t = t.slice(0, r));
1235
- }
1236
- return t;
1237
- };
1238
- var Xn = (e) => {
1239
- let t = yn(e);
1240
- return !(!t || !lc.test(t) || cc.test(t));
1241
- };
1242
- var es = (e) => e.length > 0 && /^[A-Z]/.test(e);
1243
- kr();
1244
- var Pc = /* @__PURE__ */ new Set(["InnerLayoutRouter", "RedirectErrorBoundary", "RedirectBoundary", "HTTPAccessFallbackErrorBoundary", "HTTPAccessFallbackBoundary", "LoadingBoundary", "ErrorBoundary", "InnerScrollAndFocusHandler", "ScrollAndFocusHandler", "RenderFromTemplateContext", "OuterLayoutRouter", "body", "html", "DevRootHTTPAccessFallbackBoundary", "AppDevOverlayErrorBoundary", "AppDevOverlay", "HotReload", "Router", "ErrorBoundaryHandler", "AppRouter", "ServerRoot", "SegmentStateProvider", "RootErrorBoundary", "LoadableComponent", "MotionDOMComponent"]);
1245
- var $c = () => typeof document > "u" ? false : !!(document.getElementById("__NEXT_DATA__") || document.querySelector("nextjs-portal"));
1246
- var Fc = (e) => !!(e.startsWith("_") || Pc.has(e));
1247
- var Kr = (e) => !(Fc(e) || !es(e) || e.startsWith("Primitive.") || e.includes("Provider") && e.includes("Context"));
1248
- var wn = async (e) => {
1249
- if (!hn()) return [];
1250
- let t = jr(e);
1251
- return t ? await Qi(t) : null;
1252
- };
1253
- var Xr = async (e, t = {}) => {
1254
- let { maxLines: n = 3 } = t, r = Dc(e), i = await wn(e), o = $c(), a = [];
1255
- if (i) for (let l of i) {
1256
- if (a.length >= n) break;
1257
- if (l.isServer && (!l.functionName || Kr(l.functionName))) {
1258
- a.push(`
1259
- in ${l.functionName || "<anonymous>"} (at Server)`);
1260
- continue;
1261
- }
1262
- if (l.fileName && Xn(l.fileName)) {
1263
- let c = `
1264
- in `, u = l.functionName && Kr(l.functionName);
1265
- u && (c += `${l.functionName} (at `), c += yn(l.fileName), o && l.lineNumber && l.columnNumber && (c += `:${l.lineNumber}:${l.columnNumber}`), u && (c += ")"), a.push(c);
1266
- }
1267
- }
1268
- return `${r}${a.join("")}`;
1269
- };
1270
- var Dc = (e) => {
1271
- let t = e.tagName.toLowerCase();
1272
- if (!(e instanceof HTMLElement)) return `<${t} />`;
1273
- let n = e.innerText?.trim() ?? e.textContent?.trim() ?? "", r = "", i = Array.from(e.attributes);
1274
- for (let y of i) {
1275
- let x = y.name, _ = y.value;
1276
- _.length > 20 && (_ = `${_.slice(0, 20)}...`), r += ` ${x}="${_}"`;
1277
- }
1278
- let o = [], a = [], l = false, c = Array.from(e.childNodes);
1279
- for (let y of c) y.nodeType !== Node.COMMENT_NODE && (y.nodeType === Node.TEXT_NODE ? y.textContent && y.textContent.trim().length > 0 && (l = true) : y instanceof Element && (l ? a.push(y) : o.push(y)));
1280
- let u = (y) => y.length === 0 ? "" : y.length <= 2 ? y.map((x) => `<${x.tagName.toLowerCase()} ...>`).join(`
1281
- `) : `(${y.length} elements)`, g = "", p = u(o);
1282
- if (p && (g += `
1283
- ${p}`), n.length > 0) {
1284
- let y = n.length > 100 ? `${n.slice(0, 100)}...` : n;
1285
- g += `
1286
- ${y}`;
1287
- }
1288
- let k = u(a);
1289
- return k && (g += `
1290
- ${k}`), g.length > 0 ? `<${t}${r}>${g}
1291
- </${t}>` : `<${t}${r} />`;
1292
- };
1293
- var Bc = "application/x-react-grab";
1294
- var qt = (e, t) => {
1295
- let n = JSON.stringify({ version: ri, content: e, timestamp: Date.now(), ...t?.prompt }), r = (o) => {
1296
- o.preventDefault(), o.clipboardData?.setData("text/plain", e), o.clipboardData?.setData(Bc, n);
757
+ nc(uc());
758
+ _r();
759
+ var $c = "application/x-react-grab";
760
+ var tn = (e, t) => {
761
+ let n = JSON.stringify({ version: ii, content: e, timestamp: Date.now(), ...t?.prompt }), r = (o) => {
762
+ o.preventDefault(), o.clipboardData?.setData("text/plain", e), o.clipboardData?.setData($c, n);
1297
763
  };
1298
764
  document.addEventListener("copy", r);
1299
765
  let i = document.createElement("textarea");
@@ -1305,57 +771,12 @@ var qt = (e, t) => {
1305
771
  document.removeEventListener("copy", r), i.remove();
1306
772
  }
1307
773
  };
1308
- K('<span class="tabular-nums align-middle">');
1309
- K('<span class="font-mono tabular-nums align-middle">&lt;<!>>');
1310
- K('<span class="tabular-nums ml-1 align-middle"> in ');
1311
-
1312
- // src/client.ts
1313
- var REFERENCE_PREFIX = "Use this as reference to make the change, do not actually write this code:\n\n";
1314
- var parseAgentResponse = (response) => {
1315
- const trimmed = response.trim();
1316
- if (trimmed.startsWith("{") && trimmed.endsWith("}")) {
1317
- try {
1318
- const parsed = JSON.parse(trimmed);
1319
- if (typeof parsed === "object" && "code" in parsed) {
1320
- return parsed;
1321
- }
1322
- } catch {
1323
- }
1324
- }
1325
- return trimmed;
1326
- };
1327
- var buildUserMessage = (prompt, html, isFirstMessage) => {
1328
- if (isFirstMessage) {
1329
- return `Here is the HTML to modify:
1330
-
1331
- ${html}
774
+ Q('<span class="tabular-nums align-middle">');
775
+ Q('<span class="font-mono tabular-nums align-middle">&lt;<!>>');
776
+ Q('<span class="tabular-nums ml-1 align-middle"> in ');
1332
777
 
1333
- Modification request: ${prompt}
1334
-
1335
- You can either:
1336
- 1. Output ONLY the JavaScript code if you're confident in the change
1337
- 2. Output JSON to iterate: { "iterate": true, "code": "...", "reason": "why you need to see the result" }
1338
-
1339
- When iterating, the code will be executed and you'll see the updated HTML to refine further.`;
1340
- }
1341
- return `Follow-up modification request: ${prompt}
1342
-
1343
- Remember: Output ONLY the JavaScript code for this modification. The $el variable still references the same element.`;
1344
- };
1345
- var buildIterationMessage = (updatedHtml, executionResult) => {
1346
- let message = `Here is the updated HTML after executing your code:
1347
-
1348
- ${updatedHtml}`;
1349
- if (executionResult) {
1350
- message += `
1351
-
1352
- Execution result: ${executionResult}`;
1353
- }
1354
- message += `
1355
-
1356
- Continue modifying or output final JavaScript code (without JSON wrapper) when done.`;
1357
- return message;
1358
- };
778
+ // src/client/dom.ts
779
+ var ANCESTOR_LEVELS = 5;
1359
780
  var createUndoableProxy = (element) => {
1360
781
  const undoActions = [];
1361
782
  const record = (action) => undoActions.push(action);
@@ -1383,31 +804,37 @@ var createUndoableProxy = (element) => {
1383
804
  get(target, prop) {
1384
805
  if (prop === "add")
1385
806
  return (...classes) => {
1386
- const toUndo = classes.filter((c) => !target.contains(c));
807
+ const toUndo = classes.filter(
808
+ (classToAdd) => !target.contains(classToAdd)
809
+ );
1387
810
  record(() => target.remove(...toUndo));
1388
811
  return target.add(...classes);
1389
812
  };
1390
813
  if (prop === "remove")
1391
814
  return (...classes) => {
1392
- const toRestore = classes.filter((c) => target.contains(c));
815
+ const toRestore = classes.filter(
816
+ (classToRemove) => target.contains(classToRemove)
817
+ );
1393
818
  record(() => target.add(...toRestore));
1394
819
  return target.remove(...classes);
1395
820
  };
1396
821
  if (prop === "toggle")
1397
- return (cls, force) => {
1398
- const had = target.contains(cls);
1399
- const result = target.toggle(cls, force);
1400
- record(() => had ? target.add(cls) : target.remove(cls));
822
+ return (className, force) => {
823
+ const hadClass = target.contains(className);
824
+ const result = target.toggle(className, force);
825
+ record(
826
+ () => hadClass ? target.add(className) : target.remove(className)
827
+ );
1401
828
  return result;
1402
829
  };
1403
830
  if (prop === "replace")
1404
- return (oldCls, newCls) => {
1405
- const had = target.contains(oldCls);
1406
- const result = target.replace(oldCls, newCls);
1407
- if (had)
831
+ return (oldClassName, newClassName) => {
832
+ const hadOldClass = target.contains(oldClassName);
833
+ const result = target.replace(oldClassName, newClassName);
834
+ if (hadOldClass)
1408
835
  record(() => {
1409
- target.remove(newCls);
1410
- target.add(oldCls);
836
+ target.remove(newClassName);
837
+ target.add(oldClassName);
1411
838
  });
1412
839
  return result;
1413
840
  };
@@ -1419,8 +846,10 @@ var createUndoableProxy = (element) => {
1419
846
  set(target, prop, value) {
1420
847
  if (typeof prop === "string") {
1421
848
  const original = target[prop];
1422
- const had = prop in target;
1423
- record(() => had ? target[prop] = original : delete target[prop]);
849
+ const hadProperty = prop in target;
850
+ record(
851
+ () => hadProperty ? target[prop] = original : delete target[prop]
852
+ );
1424
853
  }
1425
854
  return Reflect.set(target, prop, value);
1426
855
  },
@@ -1438,10 +867,10 @@ var createUndoableProxy = (element) => {
1438
867
  switch (prop) {
1439
868
  case "setAttribute":
1440
869
  return (name, value) => {
1441
- const had = target.hasAttribute(name);
870
+ const hadAttribute = target.hasAttribute(name);
1442
871
  const original = target.getAttribute(name);
1443
872
  record(
1444
- () => had ? target.setAttribute(name, original) : target.removeAttribute(name)
873
+ () => hadAttribute ? target.setAttribute(name, original) : target.removeAttribute(name)
1445
874
  );
1446
875
  return target.setAttribute(name, value);
1447
876
  };
@@ -1467,8 +896,8 @@ var createUndoableProxy = (element) => {
1467
896
  return result;
1468
897
  };
1469
898
  case "insertBefore":
1470
- return (node, ref) => {
1471
- const result = target.insertBefore(node, ref);
899
+ return (node, referenceNode) => {
900
+ const result = target.insertBefore(node, referenceNode);
1472
901
  record(() => node.parentNode?.removeChild(node));
1473
902
  return result;
1474
903
  };
@@ -1486,10 +915,10 @@ var createUndoableProxy = (element) => {
1486
915
  };
1487
916
  case "remove":
1488
917
  return () => {
1489
- const parent = target.parentNode;
918
+ const parentNode = target.parentNode;
1490
919
  const nextSibling = target.nextSibling;
1491
920
  target.remove();
1492
- record(() => parent?.insertBefore(target, nextSibling));
921
+ record(() => parentNode?.insertBefore(target, nextSibling));
1493
922
  };
1494
923
  case "append":
1495
924
  return wrapNodeInsertion(target.append.bind(target));
@@ -1501,13 +930,15 @@ var createUndoableProxy = (element) => {
1501
930
  return wrapNodeInsertion(target.before.bind(target));
1502
931
  case "replaceWith":
1503
932
  return (...nodes) => {
1504
- const parent = target.parentNode;
933
+ const parentNode = target.parentNode;
1505
934
  const nextSibling = target.nextSibling;
1506
935
  target.replaceWith(...nodes);
1507
936
  record(() => {
1508
- const firstNode = nodes.find((n) => typeof n !== "string");
1509
- if (parent) {
1510
- parent.insertBefore(target, firstNode ?? nextSibling);
937
+ const firstNode = nodes.find(
938
+ (node) => typeof node !== "string"
939
+ );
940
+ if (parentNode) {
941
+ parentNode.insertBefore(target, firstNode ?? nextSibling);
1511
942
  removeNodes(nodes);
1512
943
  }
1513
944
  });
@@ -1518,21 +949,25 @@ var createUndoableProxy = (element) => {
1518
949
  const siblingsBefore = target.parentNode ? Array.from(target.parentNode.childNodes) : [];
1519
950
  target.insertAdjacentHTML(position, html);
1520
951
  const addedChildren = Array.from(target.childNodes).filter(
1521
- (n) => !childrenBefore.includes(n)
952
+ (node) => !childrenBefore.includes(node)
1522
953
  );
1523
954
  const addedSiblings = target.parentNode ? Array.from(target.parentNode.childNodes).filter(
1524
- (n) => !siblingsBefore.includes(n)
955
+ (node) => !siblingsBefore.includes(node)
1525
956
  ) : [];
1526
957
  record(
1527
958
  () => [...addedChildren, ...addedSiblings].forEach(
1528
- (n) => n.parentNode?.removeChild(n)
959
+ (node) => node.parentNode?.removeChild(node)
1529
960
  )
1530
961
  );
1531
962
  };
1532
963
  case "insertAdjacentElement":
1533
- return (position, el2) => {
1534
- const result = target.insertAdjacentElement(position, el2);
1535
- if (result) record(() => result.parentNode?.removeChild(result));
964
+ return (position, insertedElement) => {
965
+ const result = target.insertAdjacentElement(
966
+ position,
967
+ insertedElement
968
+ );
969
+ if (result)
970
+ record(() => result.parentNode?.removeChild(result));
1536
971
  return result;
1537
972
  };
1538
973
  default:
@@ -1577,12 +1012,84 @@ var createUndoableProxy = (element) => {
1577
1012
  }
1578
1013
  });
1579
1014
  const undo = () => {
1580
- for (let i = undoActions.length - 1; i >= 0; i--) undoActions[i]();
1015
+ for (let actionIndex = undoActions.length - 1; actionIndex >= 0; actionIndex--) {
1016
+ undoActions[actionIndex]();
1017
+ }
1581
1018
  };
1582
1019
  return { proxy, undo };
1583
1020
  };
1584
- var DEFAULT_API_ENDPOINT = "https://www.react-grab.com/api/visual-edit";
1585
- var ANCESTOR_LEVELS = 5;
1021
+ var getOpeningTag = (element) => {
1022
+ const shallowClone = element.cloneNode(false);
1023
+ const temporaryWrapper = document.createElement("div");
1024
+ temporaryWrapper.appendChild(shallowClone);
1025
+ const serializedHtml = temporaryWrapper.innerHTML;
1026
+ const closingTagMatch = serializedHtml.match(/<\/[^>]+>$/);
1027
+ if (closingTagMatch) {
1028
+ return serializedHtml.slice(0, -closingTagMatch[0].length);
1029
+ }
1030
+ return serializedHtml;
1031
+ };
1032
+ var getClosingTag = (element) => `</${element.tagName.toLowerCase()}>`;
1033
+ var stripSvgContent = (html) => {
1034
+ const container = document.createElement("div");
1035
+ container.innerHTML = html;
1036
+ const svgElements = container.querySelectorAll("svg");
1037
+ for (const svg of svgElements) {
1038
+ const strippedSvg = document.createElementNS(
1039
+ "http://www.w3.org/2000/svg",
1040
+ "svg"
1041
+ );
1042
+ if (svg.hasAttribute("class")) {
1043
+ strippedSvg.setAttribute("class", svg.getAttribute("class"));
1044
+ }
1045
+ if (svg.hasAttribute("id")) {
1046
+ strippedSvg.setAttribute("id", svg.getAttribute("id"));
1047
+ }
1048
+ strippedSvg.textContent = "...";
1049
+ svg.replaceWith(strippedSvg);
1050
+ }
1051
+ return container.innerHTML;
1052
+ };
1053
+ var buildAncestorContext = (element) => {
1054
+ const ancestors = [];
1055
+ let currentAncestor = element.parentElement;
1056
+ for (let level = 0; level < ANCESTOR_LEVELS && currentAncestor; level++) {
1057
+ if (currentAncestor === document.body || currentAncestor === document.documentElement) {
1058
+ break;
1059
+ }
1060
+ ancestors.push(currentAncestor);
1061
+ currentAncestor = currentAncestor.parentElement;
1062
+ }
1063
+ if (ancestors.length === 0) {
1064
+ return stripSvgContent(element.outerHTML);
1065
+ }
1066
+ ancestors.reverse();
1067
+ let result = "";
1068
+ let indentation = "";
1069
+ for (const ancestor of ancestors) {
1070
+ result += `${indentation}${getOpeningTag(ancestor)}
1071
+ `;
1072
+ indentation += " ";
1073
+ }
1074
+ result += `${indentation}<!-- START $el -->
1075
+ `;
1076
+ const strippedOuterHtml = stripSvgContent(element.outerHTML);
1077
+ const targetElementLines = strippedOuterHtml.split("\n");
1078
+ for (const line of targetElementLines) {
1079
+ result += `${indentation}${line}
1080
+ `;
1081
+ }
1082
+ result += `${indentation}<!-- END $el -->
1083
+ `;
1084
+ for (let ancestorIndex = ancestors.length - 1; ancestorIndex >= 0; ancestorIndex--) {
1085
+ indentation = " ".repeat(ancestorIndex);
1086
+ result += `${indentation}${getClosingTag(ancestors[ancestorIndex])}
1087
+ `;
1088
+ }
1089
+ return result.trim();
1090
+ };
1091
+
1092
+ // src/client/code-validation.ts
1586
1093
  var FORBIDDEN_PATTERNS = [
1587
1094
  /\beval\s*\(/,
1588
1095
  /\bFunction\s*\(/,
@@ -1613,57 +1120,55 @@ var validateCode = (code) => {
1613
1120
  }
1614
1121
  return { isValid: true, sanitizedCode };
1615
1122
  };
1616
- var getOpeningTag = (element) => {
1617
- const clone = element.cloneNode(false);
1618
- const wrapper = document.createElement("div");
1619
- wrapper.appendChild(clone);
1620
- const html = wrapper.innerHTML;
1621
- const closingTagMatch = html.match(/<\/[^>]+>$/);
1622
- if (closingTagMatch) {
1623
- return html.slice(0, -closingTagMatch[0].length);
1624
- }
1625
- return html;
1626
- };
1627
- var getClosingTag = (element) => {
1628
- return `</${element.tagName.toLowerCase()}>`;
1629
- };
1630
- var buildAncestorContext = (element) => {
1631
- const ancestors = [];
1632
- let current = element.parentElement;
1633
- for (let level = 0; level < ANCESTOR_LEVELS && current; level++) {
1634
- if (current === document.body || current === document.documentElement) {
1635
- break;
1123
+
1124
+ // src/client/index.ts
1125
+ var parseAgentResponse = (response) => {
1126
+ const trimmed = response.trim();
1127
+ if (trimmed.startsWith("{") && trimmed.endsWith("}")) {
1128
+ try {
1129
+ const parsed = JSON.parse(trimmed);
1130
+ if (typeof parsed === "object" && "code" in parsed) {
1131
+ return parsed;
1132
+ }
1133
+ } catch {
1636
1134
  }
1637
- ancestors.push(current);
1638
- current = current.parentElement;
1639
- }
1640
- if (ancestors.length === 0) {
1641
- return element.outerHTML;
1642
1135
  }
1643
- ancestors.reverse();
1644
- let result = "";
1645
- let indent = "";
1646
- for (const ancestor of ancestors) {
1647
- result += `${indent}${getOpeningTag(ancestor)}
1648
- `;
1649
- indent += " ";
1650
- }
1651
- result += `${indent}<!-- START $el -->
1652
- `;
1653
- const targetLines = element.outerHTML.split("\n");
1654
- for (const line of targetLines) {
1655
- result += `${indent}${line}
1656
- `;
1136
+ return trimmed;
1137
+ };
1138
+ var buildUserMessage = (prompt, html, isFirstMessage) => {
1139
+ if (isFirstMessage) {
1140
+ return `Here is the HTML to modify:
1141
+
1142
+ ${html}
1143
+
1144
+ Modification request: ${prompt}
1145
+
1146
+ You can either:
1147
+ 1. Output ONLY the JavaScript code if you're confident in the change
1148
+ 2. Output JSON to iterate: { "iterate": true, "code": "...", "reason": "why you need to see the result" }
1149
+
1150
+ When iterating, the code will be executed and you'll see the updated HTML to refine further.`;
1657
1151
  }
1658
- result += `${indent}<!-- END $el -->
1659
- `;
1660
- for (let ancestorIndex = ancestors.length - 1; ancestorIndex >= 0; ancestorIndex--) {
1661
- indent = " ".repeat(ancestorIndex);
1662
- result += `${indent}${getClosingTag(ancestors[ancestorIndex])}
1663
- `;
1152
+ return `Follow-up modification request: ${prompt}
1153
+
1154
+ Remember: Output ONLY the JavaScript code for this modification. The $el variable still references the same element.`;
1155
+ };
1156
+ var buildIterationMessage = (updatedHtml, executionResult) => {
1157
+ let message = `Here is the updated HTML after executing your code:
1158
+
1159
+ ${updatedHtml}`;
1160
+ if (executionResult) {
1161
+ message += `
1162
+
1163
+ Execution result: ${executionResult}`;
1664
1164
  }
1665
- return result.trim();
1165
+ message += `
1166
+
1167
+ Continue modifying or output final JavaScript code (without JSON wrapper) when done.`;
1168
+ return message;
1666
1169
  };
1170
+ var DEFAULT_API_ENDPOINT = "https://www.react-grab.com/api/visual-edit";
1171
+ var DEFAULT_HEALTHCHECK_ENDPOINT = "https://www.react-grab.com/api/check-visual-edit";
1667
1172
  var createVisualEditAgentProvider = (options = {}) => {
1668
1173
  const apiEndpoint = options.apiEndpoint ?? DEFAULT_API_ENDPOINT;
1669
1174
  const maxIterations = options.maxIterations ?? 3;
@@ -1739,11 +1244,12 @@ var createVisualEditAgentProvider = (options = {}) => {
1739
1244
  const { proxy, undo } = createUndoableProxy(element);
1740
1245
  try {
1741
1246
  const returnValue = new Function("$el", sanitizedCode).bind(null)(proxy);
1742
- const result = returnValue !== void 0 ? String(returnValue) : null;
1247
+ const executionResult = returnValue !== void 0 ? String(returnValue) : null;
1248
+ const isStillInDom = document.contains(element);
1743
1249
  return {
1744
1250
  success: true,
1745
- result,
1746
- updatedHtml: buildAncestorContext(element),
1251
+ result: executionResult,
1252
+ updatedHtml: isStillInDom ? buildAncestorContext(element) : "",
1747
1253
  undo
1748
1254
  };
1749
1255
  } catch (executionError) {
@@ -1871,27 +1377,27 @@ var createVisualEditAgentProvider = (options = {}) => {
1871
1377
  return { error: `Failed to edit: ${error ?? "invalid code"}` };
1872
1378
  }
1873
1379
  const { proxy, undo } = createUndoableProxy(element);
1874
- undoFnMap.set(requestId, undo);
1875
- lastRequestId = requestId;
1876
1380
  try {
1877
1381
  new Function("$el", sanitizedCode).bind(null)(proxy);
1878
1382
  } catch (executionError) {
1879
1383
  undo();
1880
- undoFnMap.delete(requestId);
1881
- lastRequestId = null;
1882
1384
  cleanup(requestId);
1883
- const message = executionError instanceof Error ? executionError.message : "unknown error";
1884
- return { error: `Failed to edit: ${message}` };
1385
+ const errorMessage = executionError instanceof Error ? executionError.message : "unknown error";
1386
+ return { error: `Failed to edit: ${errorMessage}` };
1885
1387
  }
1886
- try {
1887
- const elementContext = await Xr(element);
1888
- const reference = `${REFERENCE_PREFIX}${code}
1889
-
1890
- ---
1388
+ undoFnMap.set(requestId, undo);
1389
+ lastRequestId = requestId;
1390
+ const sessionId = session.id;
1391
+ const conversationHistory = conversationHistoryMap.get(sessionId);
1392
+ if (conversationHistory && conversationHistory.length > 0) {
1393
+ const formattedHistory = conversationHistory.map((message) => {
1394
+ const roleLabel = message.role === "user" ? "User" : "Assistant";
1395
+ return `## ${roleLabel}
1891
1396
 
1892
- ${elementContext}`;
1893
- qt(reference);
1894
- } catch {
1397
+ ${message.content}`;
1398
+ }).join("\n\n---\n\n");
1399
+ tn(`Apply changes based on the following conversation history:
1400
+ ${formattedHistory}`);
1895
1401
  }
1896
1402
  cleanup(requestId);
1897
1403
  };
@@ -1904,7 +1410,7 @@ var checkHealth = async () => {
1904
1410
  const controller = new AbortController();
1905
1411
  const timeoutId = setTimeout(() => controller.abort(), 1e3);
1906
1412
  try {
1907
- const response = await fetch(DEFAULT_API_ENDPOINT, {
1413
+ const response = await fetch(DEFAULT_HEALTHCHECK_ENDPOINT, {
1908
1414
  method: "GET",
1909
1415
  signal: controller.signal
1910
1416
  });