@ohbug/extension-feedback 0.7.3 → 0.7.4

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/index.mjs CHANGED
@@ -1,874 +1,915 @@
1
- const Pe = (e, t) => e === t, N = Symbol("solid-proxy"), he = Symbol("solid-track"), Y = {
2
- equals: Pe
1
+ import { getOhbugObject as e, getSelector as t } from "@ohbug/utils";
2
+ //#region ../../node_modules/.pnpm/solid-js@1.9.12/node_modules/solid-js/dist/solid.js
3
+ var n = {
4
+ context: void 0,
5
+ registry: void 0,
6
+ effects: void 0,
7
+ done: !1,
8
+ getContextId() {
9
+ return r(this.context.count);
10
+ },
11
+ getNextContextId() {
12
+ return r(this.context.count++);
13
+ }
3
14
  };
4
- let we = xe;
5
- const O = 1, J = 2, ye = {
6
- owned: null,
7
- cleanups: null,
8
- context: null,
9
- owner: null
10
- };
11
- var p = null;
12
- let ie = null, b = null, $ = null, A = null, oe = 0;
15
+ function r(e) {
16
+ let t = String(e), r = t.length - 1;
17
+ return n.context.id + (r ? String.fromCharCode(96 + r) : "") + t;
18
+ }
19
+ function i(e) {
20
+ n.context = e;
21
+ }
22
+ function a() {
23
+ return {
24
+ ...n.context,
25
+ id: n.getNextContextId(),
26
+ count: 0
27
+ };
28
+ }
29
+ var o = (e, t) => e === t, s = Symbol("solid-proxy"), c = Symbol("solid-track"), l = { equals: o }, u = null, d = pe, f = 1, p = 2, m = {
30
+ owned: null,
31
+ cleanups: null,
32
+ context: null,
33
+ owner: null
34
+ }, h = null, g = null, _ = null, v = null, y = null, b = null, x = null, S = 0;
35
+ function ee(e, t) {
36
+ let n = y, r = h, i = e.length === 0, a = t === void 0 ? r : t, o = i ? m : {
37
+ owned: null,
38
+ cleanups: null,
39
+ context: a ? a.context : null,
40
+ owner: a
41
+ }, s = i ? e : () => e(() => E(() => N(o)));
42
+ h = o, y = null;
43
+ try {
44
+ return j(s, !0);
45
+ } finally {
46
+ y = n, h = r;
47
+ }
48
+ }
49
+ function C(e, t) {
50
+ t = t ? Object.assign({}, l, t) : l;
51
+ let n = {
52
+ value: e,
53
+ observers: null,
54
+ observerSlots: null,
55
+ comparator: t.equals || void 0
56
+ };
57
+ return [le.bind(n), (e) => (typeof e == "function" && (e = g && g.running && g.sources.has(n) ? e(n.tValue) : e(n.value)), ue(n, e))];
58
+ }
59
+ function w(e, t, n) {
60
+ let r = k(e, t, !1, f);
61
+ _ && g && g.running ? b.push(r) : O(r);
62
+ }
63
+ function te(e, t, n) {
64
+ d = he;
65
+ let r = k(e, t, !1, f), i = D && ce(D);
66
+ i && (r.suspense = i), (!n || !n.render) && (r.user = !0), x ? x.push(r) : O(r);
67
+ }
68
+ function T(e, t, n) {
69
+ n = n ? Object.assign({}, l, n) : l;
70
+ let r = k(e, t, !0, 0);
71
+ return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, _ && g && g.running ? (r.tState = f, b.push(r)) : O(r), le.bind(r);
72
+ }
73
+ function ne(e) {
74
+ return j(e, !1);
75
+ }
76
+ function E(e) {
77
+ if (!v && y === null) return e();
78
+ let t = y;
79
+ y = null;
80
+ try {
81
+ return v ? v.untrack(e) : e();
82
+ } finally {
83
+ y = t;
84
+ }
85
+ }
86
+ function re(e) {
87
+ return h === null || (h.cleanups === null ? h.cleanups = [e] : h.cleanups.push(e)), e;
88
+ }
89
+ function ie() {
90
+ return y;
91
+ }
92
+ function ae(e) {
93
+ if (g && g.running) return e(), g.done;
94
+ let t = y, n = h;
95
+ return Promise.resolve().then(() => {
96
+ y = t, h = n;
97
+ let r;
98
+ return (_ || D) && (r = g ||= {
99
+ sources: /* @__PURE__ */ new Set(),
100
+ effects: [],
101
+ promises: /* @__PURE__ */ new Set(),
102
+ disposed: /* @__PURE__ */ new Set(),
103
+ queue: /* @__PURE__ */ new Set(),
104
+ running: !0
105
+ }, r.done ||= new Promise((e) => r.resolve = e), r.running = !0), j(e, !1), y = h = null, r ? r.done : void 0;
106
+ });
107
+ }
108
+ var [oe, se] = /* @__PURE__ */ C(!1);
109
+ function ce(e) {
110
+ let t;
111
+ return h && h.context && (t = h.context[e.id]) !== void 0 ? t : e.defaultValue;
112
+ }
113
+ var D;
114
+ function le() {
115
+ let e = g && g.running;
116
+ if (this.sources && (e ? this.tState : this.state)) if ((e ? this.tState : this.state) === f) O(this);
117
+ else {
118
+ let e = b;
119
+ b = null, j(() => M(this), !1), b = e;
120
+ }
121
+ if (y) {
122
+ let e = this.observers ? this.observers.length : 0;
123
+ y.sources ? (y.sources.push(this), y.sourceSlots.push(e)) : (y.sources = [this], y.sourceSlots = [e]), this.observers ? (this.observers.push(y), this.observerSlots.push(y.sources.length - 1)) : (this.observers = [y], this.observerSlots = [y.sources.length - 1]);
124
+ }
125
+ return e && g.sources.has(this) ? this.tValue : this.value;
126
+ }
127
+ function ue(e, t, n) {
128
+ let r = g && g.running && g.sources.has(e) ? e.tValue : e.value;
129
+ if (!e.comparator || !e.comparator(r, t)) {
130
+ if (g) {
131
+ let r = g.running;
132
+ (r || !n && g.sources.has(e)) && (g.sources.add(e), e.tValue = t), r || (e.value = t);
133
+ } else e.value = t;
134
+ e.observers && e.observers.length && j(() => {
135
+ for (let t = 0; t < e.observers.length; t += 1) {
136
+ let n = e.observers[t], r = g && g.running;
137
+ r && g.disposed.has(n) || ((r ? !n.tState : !n.state) && (n.pure ? b.push(n) : x.push(n), n.observers && ge(n)), r ? n.tState = f : n.state = f);
138
+ }
139
+ if (b.length > 1e6) throw b = [], Error();
140
+ }, !1);
141
+ }
142
+ return t;
143
+ }
144
+ function O(e) {
145
+ if (!e.fn) return;
146
+ N(e);
147
+ let t = S;
148
+ de(e, g && g.running && g.sources.has(e) ? e.tValue : e.value, t), g && !g.running && g.sources.has(e) && queueMicrotask(() => {
149
+ j(() => {
150
+ g && (g.running = !0), y = h = e, de(e, e.tValue, t), y = h = null;
151
+ }, !1);
152
+ });
153
+ }
154
+ function de(e, t, n) {
155
+ let r, i = h, a = y;
156
+ y = h = e;
157
+ try {
158
+ r = e.fn(t);
159
+ } catch (t) {
160
+ return e.pure && (g && g.running ? (e.tState = f, e.tOwned && e.tOwned.forEach(N), e.tOwned = void 0) : (e.state = f, e.owned && e.owned.forEach(N), e.owned = null)), e.updatedAt = n + 1, P(t);
161
+ } finally {
162
+ y = a, h = i;
163
+ }
164
+ (!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? ue(e, r, !0) : g && g.running && e.pure ? (g.sources.has(e) || (e.value = r), g.sources.add(e), e.tValue = r) : e.value = r, e.updatedAt = n);
165
+ }
166
+ function k(e, t, n, r = f, i) {
167
+ let a = {
168
+ fn: e,
169
+ state: r,
170
+ updatedAt: null,
171
+ owned: null,
172
+ sources: null,
173
+ sourceSlots: null,
174
+ cleanups: null,
175
+ value: t,
176
+ owner: h,
177
+ context: h ? h.context : null,
178
+ pure: n
179
+ };
180
+ if (g && g.running && (a.state = 0, a.tState = r), h === null || h !== m && (g && g.running && h.pure ? h.tOwned ? h.tOwned.push(a) : h.tOwned = [a] : h.owned ? h.owned.push(a) : h.owned = [a]), v && a.fn) {
181
+ let e = a.fn, [t, n] = C(void 0, { equals: !1 }), r = v.factory(e, n);
182
+ re(() => r.dispose());
183
+ let i, o = () => ae(n).then(() => {
184
+ i &&= (i.dispose(), void 0);
185
+ });
186
+ a.fn = (n) => (t(), g && g.running ? (i ||= v.factory(e, o), i.track(n)) : r.track(n));
187
+ }
188
+ return a;
189
+ }
190
+ function A(e) {
191
+ let t = g && g.running;
192
+ if ((t ? e.tState : e.state) === 0) return;
193
+ if ((t ? e.tState : e.state) === p) return M(e);
194
+ if (e.suspense && E(e.suspense.inFallback)) return e.suspense.effects.push(e);
195
+ let n = [e];
196
+ for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < S);) {
197
+ if (t && g.disposed.has(e)) return;
198
+ (t ? e.tState : e.state) && n.push(e);
199
+ }
200
+ for (let r = n.length - 1; r >= 0; r--) {
201
+ if (e = n[r], t) {
202
+ let t = e, i = n[r + 1];
203
+ for (; (t = t.owner) && t !== i;) if (g.disposed.has(t)) return;
204
+ }
205
+ if ((t ? e.tState : e.state) === f) O(e);
206
+ else if ((t ? e.tState : e.state) === p) {
207
+ let t = b;
208
+ b = null, j(() => M(e, n[0]), !1), b = t;
209
+ }
210
+ }
211
+ }
212
+ function j(e, t) {
213
+ if (b) return e();
214
+ let n = !1;
215
+ t || (b = []), x ? n = !0 : x = [], S++;
216
+ try {
217
+ let t = e();
218
+ return fe(n), t;
219
+ } catch (e) {
220
+ n || (x = null), b = null, P(e);
221
+ }
222
+ }
223
+ function fe(e) {
224
+ if (b &&= (_ && g && g.running ? me(b) : pe(b), null), e) return;
225
+ let t;
226
+ if (g) {
227
+ if (!g.promises.size && !g.queue.size) {
228
+ let e = g.sources, n = g.disposed;
229
+ x.push.apply(x, g.effects), t = g.resolve;
230
+ for (let e of x) "tState" in e && (e.state = e.tState), delete e.tState;
231
+ g = null, j(() => {
232
+ for (let e of n) N(e);
233
+ for (let t of e) {
234
+ if (t.value = t.tValue, t.owned) for (let e = 0, n = t.owned.length; e < n; e++) N(t.owned[e]);
235
+ t.tOwned && (t.owned = t.tOwned), delete t.tValue, delete t.tOwned, t.tState = 0;
236
+ }
237
+ se(!1);
238
+ }, !1);
239
+ } else if (g.running) {
240
+ g.running = !1, g.effects.push.apply(g.effects, x), x = null, se(!0);
241
+ return;
242
+ }
243
+ }
244
+ let n = x;
245
+ x = null, n.length && j(() => d(n), !1), t && t();
246
+ }
247
+ function pe(e) {
248
+ for (let t = 0; t < e.length; t++) A(e[t]);
249
+ }
250
+ function me(e) {
251
+ for (let t = 0; t < e.length; t++) {
252
+ let n = e[t], r = g.queue;
253
+ r.has(n) || (r.add(n), _(() => {
254
+ r.delete(n), j(() => {
255
+ g.running = !0, A(n);
256
+ }, !1), g && (g.running = !1);
257
+ }));
258
+ }
259
+ }
260
+ function he(e) {
261
+ let t, r = 0;
262
+ for (t = 0; t < e.length; t++) {
263
+ let n = e[t];
264
+ n.user ? e[r++] = n : A(n);
265
+ }
266
+ if (n.context) {
267
+ if (n.count) {
268
+ n.effects ||= [], n.effects.push(...e.slice(0, r));
269
+ return;
270
+ }
271
+ i();
272
+ }
273
+ for (n.effects && (n.done || !n.count) && (e = [...n.effects, ...e], r += n.effects.length, delete n.effects), t = 0; t < r; t++) A(e[t]);
274
+ }
275
+ function M(e, t) {
276
+ let n = g && g.running;
277
+ n ? e.tState = 0 : e.state = 0;
278
+ for (let r = 0; r < e.sources.length; r += 1) {
279
+ let i = e.sources[r];
280
+ if (i.sources) {
281
+ let e = n ? i.tState : i.state;
282
+ e === f ? i !== t && (!i.updatedAt || i.updatedAt < S) && A(i) : e === p && M(i, t);
283
+ }
284
+ }
285
+ }
286
+ function ge(e) {
287
+ let t = g && g.running;
288
+ for (let n = 0; n < e.observers.length; n += 1) {
289
+ let r = e.observers[n];
290
+ (t ? !r.tState : !r.state) && (t ? r.tState = p : r.state = p, r.pure ? b.push(r) : x.push(r), r.observers && ge(r));
291
+ }
292
+ }
293
+ function N(e) {
294
+ let t;
295
+ if (e.sources) for (; e.sources.length;) {
296
+ let t = e.sources.pop(), n = e.sourceSlots.pop(), r = t.observers;
297
+ if (r && r.length) {
298
+ let e = r.pop(), i = t.observerSlots.pop();
299
+ n < r.length && (e.sourceSlots[i] = n, r[n] = e, t.observerSlots[n] = i);
300
+ }
301
+ }
302
+ if (e.tOwned) {
303
+ for (t = e.tOwned.length - 1; t >= 0; t--) N(e.tOwned[t]);
304
+ delete e.tOwned;
305
+ }
306
+ if (g && g.running && e.pure) _e(e, !0);
307
+ else if (e.owned) {
308
+ for (t = e.owned.length - 1; t >= 0; t--) N(e.owned[t]);
309
+ e.owned = null;
310
+ }
311
+ if (e.cleanups) {
312
+ for (t = e.cleanups.length - 1; t >= 0; t--) e.cleanups[t]();
313
+ e.cleanups = null;
314
+ }
315
+ g && g.running ? e.tState = 0 : e.state = 0;
316
+ }
317
+ function _e(e, t) {
318
+ if (t || (e.tState = 0, g.disposed.add(e)), e.owned) for (let t = 0; t < e.owned.length; t++) _e(e.owned[t]);
319
+ }
320
+ function ve(e) {
321
+ return e instanceof Error ? e : Error(typeof e == "string" ? e : "Unknown error", { cause: e });
322
+ }
323
+ function ye(e, t, n) {
324
+ try {
325
+ for (let n of t) n(e);
326
+ } catch (e) {
327
+ P(e, n && n.owner || null);
328
+ }
329
+ }
330
+ function P(e, t = h) {
331
+ let n = u && t && t.context && t.context[u], r = ve(e);
332
+ if (!n) throw r;
333
+ x ? x.push({
334
+ fn() {
335
+ ye(r, n, t);
336
+ },
337
+ state: f
338
+ }) : ye(r, n, t);
339
+ }
340
+ var be = !1;
341
+ function F(e, t) {
342
+ if (be && n.context) {
343
+ let r = n.context;
344
+ i(a());
345
+ let o = E(() => e(t || {}));
346
+ return i(r), o;
347
+ }
348
+ return E(() => e(t || {}));
349
+ }
350
+ var xe = (e) => `Stale read from <${e}>.`;
351
+ function I(e) {
352
+ let t = e.keyed, n = T(() => e.when, void 0, void 0), r = t ? n : T(n, void 0, { equals: (e, t) => !e == !t });
353
+ return T(() => {
354
+ let i = r();
355
+ if (i) {
356
+ let a = e.children;
357
+ return typeof a == "function" && a.length > 0 ? E(() => a(t ? i : () => {
358
+ if (!E(r)) throw xe("Show");
359
+ return n();
360
+ })) : a;
361
+ }
362
+ return e.fallback;
363
+ }, void 0, void 0);
364
+ }
365
+ var Se = (e) => T(() => e());
366
+ function Ce(e, t, n) {
367
+ let r = n.length, i = t.length, a = r, o = 0, s = 0, c = t[i - 1].nextSibling, l = null;
368
+ for (; o < i || s < a;) {
369
+ if (t[o] === n[s]) {
370
+ o++, s++;
371
+ continue;
372
+ }
373
+ for (; t[i - 1] === n[a - 1];) i--, a--;
374
+ if (i === o) {
375
+ let t = a < r ? s ? n[s - 1].nextSibling : n[a - s] : c;
376
+ for (; s < a;) e.insertBefore(n[s++], t);
377
+ } else if (a === s) for (; o < i;) (!l || !l.has(t[o])) && t[o].remove(), o++;
378
+ else if (t[o] === n[a - 1] && n[s] === t[i - 1]) {
379
+ let r = t[--i].nextSibling;
380
+ e.insertBefore(n[s++], t[o++].nextSibling), e.insertBefore(n[--a], r), t[i] = n[a];
381
+ } else {
382
+ if (!l) {
383
+ l = /* @__PURE__ */ new Map();
384
+ let e = s;
385
+ for (; e < a;) l.set(n[e], e++);
386
+ }
387
+ let r = l.get(t[o]);
388
+ if (r != null) if (s < r && r < a) {
389
+ let c = o, u = 1, d;
390
+ for (; ++c < i && c < a && !((d = l.get(t[c])) == null || d !== r + u);) u++;
391
+ if (u > r - s) {
392
+ let i = t[o];
393
+ for (; s < r;) e.insertBefore(n[s++], i);
394
+ } else e.replaceChild(n[s++], t[o++]);
395
+ } else o++;
396
+ else t[o++].remove();
397
+ }
398
+ }
399
+ }
400
+ var we = "_$DX_DELEGATE";
401
+ function Te(e, t, n, r = {}) {
402
+ let i;
403
+ return ee((r) => {
404
+ i = r, t === document ? e() : z(t, e(), t.firstChild ? null : void 0, n);
405
+ }, r.owner), () => {
406
+ i(), t.textContent = "";
407
+ };
408
+ }
409
+ function L(e, t, n, r) {
410
+ let i, a = () => {
411
+ let t = r ? document.createElementNS("http://www.w3.org/1998/Math/MathML", "template") : document.createElement("template");
412
+ return t.innerHTML = e, n ? t.content.firstChild.firstChild : r ? t.firstChild : t.content.firstChild;
413
+ }, o = t ? () => E(() => document.importNode(i ||= a(), !0)) : () => (i ||= a()).cloneNode(!0);
414
+ return o.cloneNode = o, o;
415
+ }
416
+ function Ee(e, t = window.document) {
417
+ let n = t[we] || (t[we] = /* @__PURE__ */ new Set());
418
+ for (let r = 0, i = e.length; r < i; r++) {
419
+ let i = e[r];
420
+ n.has(i) || (n.add(i), t.addEventListener(i, Ae));
421
+ }
422
+ }
423
+ function De(e, t) {
424
+ ke(e) || (t == null ? e.removeAttribute("class") : e.className = t);
425
+ }
426
+ function Oe(e, t, n) {
427
+ n == null ? e.style.removeProperty(t) : e.style.setProperty(t, n);
428
+ }
429
+ function R(e, t, n) {
430
+ return E(() => e(t, n));
431
+ }
432
+ function z(e, t, n, r) {
433
+ if (n !== void 0 && !r && (r = []), typeof t != "function") return B(e, t, r, n);
434
+ w((r) => B(e, t(), r, n), r);
435
+ }
436
+ function ke(e) {
437
+ return !!n.context && !n.done && (!e || e.isConnected);
438
+ }
439
+ function Ae(e) {
440
+ if (n.registry && n.events && n.events.find(([t, n]) => n === e)) return;
441
+ let t = e.target, r = `$$${e.type}`, i = e.target, a = e.currentTarget, o = (t) => Object.defineProperty(e, "target", {
442
+ configurable: !0,
443
+ value: t
444
+ }), s = () => {
445
+ let n = t[r];
446
+ if (n && !t.disabled) {
447
+ let i = t[`${r}Data`];
448
+ if (i === void 0 ? n.call(t, e) : n.call(t, i, e), e.cancelBubble) return;
449
+ }
450
+ return t.host && typeof t.host != "string" && !t.host._$host && t.contains(e.target) && o(t.host), !0;
451
+ }, c = () => {
452
+ for (; s() && (t = t._$host || t.parentNode || t.host););
453
+ };
454
+ if (Object.defineProperty(e, "currentTarget", {
455
+ configurable: !0,
456
+ get() {
457
+ return t || document;
458
+ }
459
+ }), n.registry && !n.done && (n.done = _$HY.done = !0), e.composedPath) {
460
+ let n = e.composedPath();
461
+ o(n[0]);
462
+ for (let e = 0; e < n.length - 2 && (t = n[e], s()); e++) {
463
+ if (t._$host) {
464
+ t = t._$host, c();
465
+ break;
466
+ }
467
+ if (t.parentNode === a) break;
468
+ }
469
+ } else c();
470
+ o(i);
471
+ }
472
+ function B(e, t, n, r, i) {
473
+ let a = ke(e);
474
+ if (a) {
475
+ !n && (n = [...e.childNodes]);
476
+ let t = [];
477
+ for (let e = 0; e < n.length; e++) {
478
+ let r = n[e];
479
+ r.nodeType === 8 && r.data.slice(0, 2) === "!$" ? r.remove() : t.push(r);
480
+ }
481
+ n = t;
482
+ }
483
+ for (; typeof n == "function";) n = n();
484
+ if (t === n) return n;
485
+ let o = typeof t, s = r !== void 0;
486
+ if (e = s && n[0] && n[0].parentNode || e, o === "string" || o === "number") {
487
+ if (a || o === "number" && (t = t.toString(), t === n)) return n;
488
+ if (s) {
489
+ let i = n[0];
490
+ i && i.nodeType === 3 ? i.data !== t && (i.data = t) : i = document.createTextNode(t), n = H(e, n, r, i);
491
+ } else n = n !== "" && typeof n == "string" ? e.firstChild.data = t : e.textContent = t;
492
+ } else if (t == null || o === "boolean") {
493
+ if (a) return n;
494
+ n = H(e, n, r);
495
+ } else if (o === "function") return w(() => {
496
+ let i = t();
497
+ for (; typeof i == "function";) i = i();
498
+ n = B(e, i, n, r);
499
+ }), () => n;
500
+ else if (Array.isArray(t)) {
501
+ let o = [], c = n && Array.isArray(n);
502
+ if (V(o, t, n, i)) return w(() => n = B(e, o, n, r, !0)), () => n;
503
+ if (a) {
504
+ if (!o.length) return n;
505
+ if (r === void 0) return n = [...e.childNodes];
506
+ let t = o[0];
507
+ if (t.parentNode !== e) return n;
508
+ let i = [t];
509
+ for (; (t = t.nextSibling) !== r;) i.push(t);
510
+ return n = i;
511
+ }
512
+ if (o.length === 0) {
513
+ if (n = H(e, n, r), s) return n;
514
+ } else c ? n.length === 0 ? je(e, o, r) : Ce(e, n, o) : (n && H(e), je(e, o));
515
+ n = o;
516
+ } else if (t.nodeType) {
517
+ if (a && t.parentNode) return n = s ? [t] : t;
518
+ if (Array.isArray(n)) {
519
+ if (s) return n = H(e, n, r, t);
520
+ H(e, n, null, t);
521
+ } else n == null || n === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild);
522
+ n = t;
523
+ }
524
+ return n;
525
+ }
526
+ function V(e, t, n, r) {
527
+ let i = !1;
528
+ for (let a = 0, o = t.length; a < o; a++) {
529
+ let o = t[a], s = n && n[e.length], c;
530
+ if (!(o == null || o === !0 || o === !1)) if ((c = typeof o) == "object" && o.nodeType) e.push(o);
531
+ else if (Array.isArray(o)) i = V(e, o, s) || i;
532
+ else if (c === "function") if (r) {
533
+ for (; typeof o == "function";) o = o();
534
+ i = V(e, Array.isArray(o) ? o : [o], Array.isArray(s) ? s : [s]) || i;
535
+ } else e.push(o), i = !0;
536
+ else {
537
+ let t = String(o);
538
+ s && s.nodeType === 3 && s.data === t ? e.push(s) : e.push(document.createTextNode(t));
539
+ }
540
+ }
541
+ return i;
542
+ }
543
+ function je(e, t, n = null) {
544
+ for (let r = 0, i = t.length; r < i; r++) e.insertBefore(t[r], n);
545
+ }
546
+ function H(e, t, n, r) {
547
+ if (n === void 0) return e.textContent = "";
548
+ let i = r || document.createTextNode("");
549
+ if (t.length) {
550
+ let r = !1;
551
+ for (let a = t.length - 1; a >= 0; a--) {
552
+ let o = t[a];
553
+ if (i !== o) {
554
+ let t = o.parentNode === e;
555
+ !r && !a ? t ? e.replaceChild(i, o) : e.insertBefore(i, n) : t && o.remove();
556
+ } else r = !0;
557
+ }
558
+ } else e.insertBefore(i, n);
559
+ return [i];
560
+ }
561
+ //#endregion
562
+ //#region src/assets.tsx
563
+ var Me = /* @__PURE__ */ L("<svg data-ohbug-selector height=24 viewBox=\"0 0 24 24\"width=24 xmlns=http://www.w3.org/2000/svg><path data-ohbug-selector d=\"M0 0h24v24H0z\"fill=none></path><path data-ohbug-selector d=\"M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z\"fill=rgba(255,255,255,1)>"), Ne = /* @__PURE__ */ L("<svg data-ohbug-selector height=24 viewBox=\"0 0 24 24\"width=24 xmlns=http://www.w3.org/2000/svg><path data-ohbug-selector d=\"M0 0h24v24H0z\"fill=none></path><path data-ohbug-selector d=\"M3 3h2v2H3V3zm4 0h2v2H7V3zm4 0h2v2h-2V3zm4 0h2v2h-2V3zm4 0h2v2h-2V3zm0 4h2v2h-2V7zM3 19h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3V7zm7.667 4l1.036-1.555A1 1 0 0 1 12.535 9h2.93a1 1 0 0 1 .832.445L17.333 11H20a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1h2.667zM9 19h10v-6h-2.737l-1.333-2h-1.86l-1.333 2H9v6zm5-1a2 2 0 1 1 0-4 2 2 0 0 1 0 4z\"style=fill:var(--color)>"), Pe = () => Me(), Fe = () => (() => {
564
+ var e = Ne();
565
+ return e.firstChild.nextSibling, e;
566
+ })(), Ie = Symbol("store-raw"), U = Symbol("store-node"), W = Symbol("store-has"), Le = Symbol("store-self");
567
+ function Re(e) {
568
+ let t = e[s];
569
+ if (!t && (Object.defineProperty(e, s, { value: t = new Proxy(e, He) }), !Array.isArray(e))) {
570
+ let n = Object.keys(e), r = Object.getOwnPropertyDescriptors(e);
571
+ for (let i = 0, a = n.length; i < a; i++) {
572
+ let a = n[i];
573
+ r[a].get && Object.defineProperty(e, a, {
574
+ enumerable: r[a].enumerable,
575
+ get: r[a].get.bind(t)
576
+ });
577
+ }
578
+ }
579
+ return t;
580
+ }
581
+ function G(e) {
582
+ let t;
583
+ return typeof e == "object" && !!e && (e[s] || !(t = Object.getPrototypeOf(e)) || t === Object.prototype || Array.isArray(e));
584
+ }
585
+ function K(e, t = /* @__PURE__ */ new Set()) {
586
+ let n, r, i, a;
587
+ if (n = e != null && e[Ie]) return n;
588
+ if (!G(e) || t.has(e)) return e;
589
+ if (Array.isArray(e)) {
590
+ Object.isFrozen(e) ? e = e.slice(0) : t.add(e);
591
+ for (let n = 0, a = e.length; n < a; n++) i = e[n], (r = K(i, t)) !== i && (e[n] = r);
592
+ } else {
593
+ Object.isFrozen(e) ? e = Object.assign({}, e) : t.add(e);
594
+ let n = Object.keys(e), o = Object.getOwnPropertyDescriptors(e);
595
+ for (let s = 0, c = n.length; s < c; s++) a = n[s], !o[a].get && (i = e[a], (r = K(i, t)) !== i && (e[a] = r));
596
+ }
597
+ return e;
598
+ }
599
+ function q(e, t) {
600
+ let n = e[t];
601
+ return n || Object.defineProperty(e, t, { value: n = Object.create(null) }), n;
602
+ }
603
+ function J(e, t, n) {
604
+ if (e[t]) return e[t];
605
+ let [r, i] = C(n, {
606
+ equals: !1,
607
+ internal: !0
608
+ });
609
+ return r.$ = i, e[t] = r;
610
+ }
13
611
  function ze(e, t) {
14
- const n = b, l = p, o = e.length === 0, s = t === void 0 ? l : t, i = o ? ye : {
15
- owned: null,
16
- cleanups: null,
17
- context: s ? s.context : null,
18
- owner: s
19
- }, r = o ? e : () => e(() => T(() => se(i)));
20
- p = i, b = null;
21
- try {
22
- return B(r, !0);
23
- } finally {
24
- b = n, p = l;
25
- }
26
- }
27
- function V(e, t) {
28
- t = t ? Object.assign({}, Y, t) : Y;
29
- const n = {
30
- value: e,
31
- observers: null,
32
- observerSlots: null,
33
- comparator: t.equals || void 0
34
- }, l = (o) => (typeof o == "function" && (o = o(n.value)), ve(n, o));
35
- return [me.bind(n), l];
36
- }
37
- function D(e, t, n) {
38
- const l = ae(e, t, !1, O);
39
- K(l);
40
- }
41
- function $e(e, t, n) {
42
- we = Be;
43
- const l = ae(e, t, !1, O);
44
- (!n || !n.render) && (l.user = !0), A ? A.push(l) : K(l);
45
- }
46
- function ge(e, t, n) {
47
- n = n ? Object.assign({}, Y, n) : Y;
48
- const l = ae(e, t, !0, 0);
49
- return l.observers = null, l.observerSlots = null, l.comparator = n.equals || void 0, K(l), me.bind(l);
50
- }
51
- function je(e) {
52
- return B(e, !1);
53
- }
54
- function T(e) {
55
- if (b === null)
56
- return e();
57
- const t = b;
58
- b = null;
59
- try {
60
- return e();
61
- } finally {
62
- b = t;
63
- }
64
- }
65
- function He(e) {
66
- return p === null || (p.cleanups === null ? p.cleanups = [e] : p.cleanups.push(e)), e;
67
- }
68
- function re() {
69
- return b;
70
- }
71
- function me() {
72
- if (this.sources && this.state)
73
- if (this.state === O)
74
- K(this);
75
- else {
76
- const e = $;
77
- $ = null, B(() => Z(this), !1), $ = e;
78
- }
79
- if (b) {
80
- const e = this.observers ? this.observers.length : 0;
81
- b.sources ? (b.sources.push(this), b.sourceSlots.push(e)) : (b.sources = [this], b.sourceSlots = [e]), this.observers ? (this.observers.push(b), this.observerSlots.push(b.sources.length - 1)) : (this.observers = [b], this.observerSlots = [b.sources.length - 1]);
82
- }
83
- return this.value;
84
- }
85
- function ve(e, t, n) {
86
- let l = e.value;
87
- return (!e.comparator || !e.comparator(l, t)) && (e.value = t, e.observers && e.observers.length && B(() => {
88
- for (let o = 0; o < e.observers.length; o += 1) {
89
- const s = e.observers[o], i = ie && ie.running;
90
- i && ie.disposed.has(s), (i ? !s.tState : !s.state) && (s.pure ? $.push(s) : A.push(s), s.observers && Se(s)), i || (s.state = O);
91
- }
92
- if ($.length > 1e6)
93
- throw $ = [], new Error();
94
- }, !1)), t;
95
- }
96
- function K(e) {
97
- if (!e.fn)
98
- return;
99
- se(e);
100
- const t = p, n = b, l = oe;
101
- b = p = e, Me(e, e.value, l), b = n, p = t;
102
- }
103
- function Me(e, t, n) {
104
- let l;
105
- try {
106
- l = e.fn(t);
107
- } catch (o) {
108
- return e.pure && (e.state = O, e.owned && e.owned.forEach(se), e.owned = null), e.updatedAt = n + 1, Ee(o);
109
- }
110
- (!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? ve(e, l) : e.value = l, e.updatedAt = n);
111
- }
112
- function ae(e, t, n, l = O, o) {
113
- const s = {
114
- fn: e,
115
- state: l,
116
- updatedAt: null,
117
- owned: null,
118
- sources: null,
119
- sourceSlots: null,
120
- cleanups: null,
121
- value: t,
122
- owner: p,
123
- context: p ? p.context : null,
124
- pure: n
125
- };
126
- return p === null || p !== ye && (p.owned ? p.owned.push(s) : p.owned = [s]), s;
127
- }
128
- function Q(e) {
129
- if (e.state === 0)
130
- return;
131
- if (e.state === J)
132
- return Z(e);
133
- if (e.suspense && T(e.suspense.inFallback))
134
- return e.suspense.effects.push(e);
135
- const t = [e];
136
- for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < oe); )
137
- e.state && t.push(e);
138
- for (let n = t.length - 1; n >= 0; n--)
139
- if (e = t[n], e.state === O)
140
- K(e);
141
- else if (e.state === J) {
142
- const l = $;
143
- $ = null, B(() => Z(e, t[0]), !1), $ = l;
144
- }
145
- }
146
- function B(e, t) {
147
- if ($)
148
- return e();
149
- let n = !1;
150
- t || ($ = []), A ? n = !0 : A = [], oe++;
151
- try {
152
- const l = e();
153
- return De(n), l;
154
- } catch (l) {
155
- n || (A = null), $ = null, Ee(l);
156
- }
157
- }
158
- function De(e) {
159
- if ($ && (xe($), $ = null), e)
160
- return;
161
- const t = A;
162
- A = null, t.length && B(() => we(t), !1);
163
- }
164
- function xe(e) {
165
- for (let t = 0; t < e.length; t++)
166
- Q(e[t]);
612
+ let n = Reflect.getOwnPropertyDescriptor(e, t);
613
+ return !n || n.get || !n.configurable || t === s || t === U ? n : (delete n.value, delete n.writable, n.get = () => e[s][t], n);
167
614
  }
168
615
  function Be(e) {
169
- let t, n = 0;
170
- for (t = 0; t < e.length; t++) {
171
- const l = e[t];
172
- l.user ? e[n++] = l : Q(l);
173
- }
174
- for (t = 0; t < n; t++)
175
- Q(e[t]);
176
- }
177
- function Z(e, t) {
178
- e.state = 0;
179
- for (let n = 0; n < e.sources.length; n += 1) {
180
- const l = e.sources[n];
181
- if (l.sources) {
182
- const o = l.state;
183
- o === O ? l !== t && (!l.updatedAt || l.updatedAt < oe) && Q(l) : o === J && Z(l, t);
184
- }
185
- }
186
- }
187
- function Se(e) {
188
- for (let t = 0; t < e.observers.length; t += 1) {
189
- const n = e.observers[t];
190
- n.state || (n.state = J, n.pure ? $.push(n) : A.push(n), n.observers && Se(n));
191
- }
192
- }
193
- function se(e) {
194
- let t;
195
- if (e.sources)
196
- for (; e.sources.length; ) {
197
- const n = e.sources.pop(), l = e.sourceSlots.pop(), o = n.observers;
198
- if (o && o.length) {
199
- const s = o.pop(), i = n.observerSlots.pop();
200
- l < o.length && (s.sourceSlots[i] = l, o[l] = s, n.observerSlots[l] = i);
201
- }
202
- }
203
- if (e.owned) {
204
- for (t = e.owned.length - 1; t >= 0; t--)
205
- se(e.owned[t]);
206
- e.owned = null;
207
- }
208
- if (e.cleanups) {
209
- for (t = e.cleanups.length - 1; t >= 0; t--)
210
- e.cleanups[t]();
211
- e.cleanups = null;
212
- }
213
- e.state = 0;
214
- }
215
- function Fe(e) {
216
- return e instanceof Error ? e : new Error(typeof e == "string" ? e : "Unknown error", {
217
- cause: e
218
- });
219
- }
220
- function Ee(e, t = p) {
221
- throw Fe(e);
222
- }
223
- function x(e, t) {
224
- return T(() => e(t || {}));
225
- }
226
- const Ue = (e) => `Stale read from <${e}>.`;
227
- function G(e) {
228
- const t = e.keyed, n = ge(() => e.when, void 0, {
229
- equals: (l, o) => t ? l === o : !l == !o
230
- });
231
- return ge(() => {
232
- const l = n();
233
- if (l) {
234
- const o = e.children;
235
- return typeof o == "function" && o.length > 0 ? T(() => o(t ? l : () => {
236
- if (!T(n))
237
- throw Ue("Show");
238
- return e.when;
239
- })) : o;
240
- }
241
- return e.fallback;
242
- }, void 0, void 0);
243
- }
244
- function Re(e, t, n) {
245
- let l = n.length, o = t.length, s = l, i = 0, r = 0, c = t[o - 1].nextSibling, h = null;
246
- for (; i < o || r < s; ) {
247
- if (t[i] === n[r]) {
248
- i++, r++;
249
- continue;
250
- }
251
- for (; t[o - 1] === n[s - 1]; )
252
- o--, s--;
253
- if (o === i) {
254
- const u = s < l ? r ? n[r - 1].nextSibling : n[s - r] : c;
255
- for (; r < s; )
256
- e.insertBefore(n[r++], u);
257
- } else if (s === r)
258
- for (; i < o; )
259
- (!h || !h.has(t[i])) && t[i].remove(), i++;
260
- else if (t[i] === n[s - 1] && n[r] === t[o - 1]) {
261
- const u = t[--o].nextSibling;
262
- e.insertBefore(n[r++], t[i++].nextSibling), e.insertBefore(n[--s], u), t[o] = n[s];
263
- } else {
264
- if (!h) {
265
- h = /* @__PURE__ */ new Map();
266
- let g = r;
267
- for (; g < s; )
268
- h.set(n[g], g++);
269
- }
270
- const u = h.get(t[i]);
271
- if (u != null)
272
- if (r < u && u < s) {
273
- let g = i, m = 1, S;
274
- for (; ++g < o && g < s && !((S = h.get(t[g])) == null || S !== u + m); )
275
- m++;
276
- if (m > u - r) {
277
- const L = t[i];
278
- for (; r < u; )
279
- e.insertBefore(n[r++], L);
280
- } else
281
- e.replaceChild(n[r++], t[i++]);
282
- } else
283
- i++;
284
- else
285
- t[i++].remove();
286
- }
287
- }
288
- }
289
- const be = "_$DX_DELEGATE";
290
- function Ve(e, t, n, l = {}) {
291
- let o;
292
- return ze((s) => {
293
- o = s, t === document ? e() : v(t, e(), t.firstChild ? null : void 0, n);
294
- }, l.owner), () => {
295
- o(), t.textContent = "";
296
- };
297
- }
298
- function k(e, t, n) {
299
- let l;
300
- const o = () => {
301
- const i = document.createElement("template");
302
- return i.innerHTML = e, n ? i.content.firstChild.firstChild : i.content.firstChild;
303
- }, s = t ? () => T(() => document.importNode(l || (l = o()), !0)) : () => (l || (l = o())).cloneNode(!0);
304
- return s.cloneNode = s, s;
305
- }
306
- function _e(e, t = window.document) {
307
- const n = t[be] || (t[be] = /* @__PURE__ */ new Set());
308
- for (let l = 0, o = e.length; l < o; l++) {
309
- const s = e[l];
310
- n.has(s) || (n.add(s), t.addEventListener(s, Ie));
311
- }
312
- }
313
- function Ge(e, t) {
314
- t == null ? e.removeAttribute("class") : e.className = t;
315
- }
316
- function U(e, t, n) {
317
- return T(() => e(t, n));
318
- }
319
- function v(e, t, n, l) {
320
- if (n !== void 0 && !l && (l = []), typeof t != "function")
321
- return ee(e, t, l, n);
322
- D((o) => ee(e, t(), o, n), l);
323
- }
324
- function Ie(e) {
325
- const t = `$$${e.type}`;
326
- let n = e.composedPath && e.composedPath()[0] || e.target;
327
- for (e.target !== n && Object.defineProperty(e, "target", {
328
- configurable: !0,
329
- value: n
330
- }), Object.defineProperty(e, "currentTarget", {
331
- configurable: !0,
332
- get() {
333
- return n || document;
334
- }
335
- }); n; ) {
336
- const l = n[t];
337
- if (l && !n.disabled) {
338
- const o = n[`${t}Data`];
339
- if (o !== void 0 ? l.call(n, o, e) : l.call(n, e), e.cancelBubble)
340
- return;
341
- }
342
- n = n._$host || n.parentNode || n.host;
343
- }
344
- }
345
- function ee(e, t, n, l, o) {
346
- for (; typeof n == "function"; )
347
- n = n();
348
- if (t === n)
349
- return n;
350
- const s = typeof t, i = l !== void 0;
351
- if (e = i && n[0] && n[0].parentNode || e, s === "string" || s === "number")
352
- if (s === "number" && (t = t.toString()), i) {
353
- let r = n[0];
354
- r && r.nodeType === 3 ? r.data = t : r = document.createTextNode(t), n = z(e, n, l, r);
355
- } else
356
- n !== "" && typeof n == "string" ? n = e.firstChild.data = t : n = e.textContent = t;
357
- else if (t == null || s === "boolean")
358
- n = z(e, n, l);
359
- else {
360
- if (s === "function")
361
- return D(() => {
362
- let r = t();
363
- for (; typeof r == "function"; )
364
- r = r();
365
- n = ee(e, r, n, l);
366
- }), () => n;
367
- if (Array.isArray(t)) {
368
- const r = [], c = n && Array.isArray(n);
369
- if (ce(r, t, n, o))
370
- return D(() => n = ee(e, r, n, l, !0)), () => n;
371
- if (r.length === 0) {
372
- if (n = z(e, n, l), i)
373
- return n;
374
- } else
375
- c ? n.length === 0 ? pe(e, r, l) : Re(e, n, r) : (n && z(e), pe(e, r));
376
- n = r;
377
- } else if (t.nodeType) {
378
- if (Array.isArray(n)) {
379
- if (i)
380
- return n = z(e, n, l, t);
381
- z(e, n, null, t);
382
- } else
383
- n == null || n === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild);
384
- n = t;
385
- } else
386
- console.warn("Unrecognized value. Skipped inserting", t);
387
- }
388
- return n;
389
- }
390
- function ce(e, t, n, l) {
391
- let o = !1;
392
- for (let s = 0, i = t.length; s < i; s++) {
393
- let r = t[s], c = n && n[s], h;
394
- if (!(r == null || r === !0 || r === !1))
395
- if ((h = typeof r) == "object" && r.nodeType)
396
- e.push(r);
397
- else if (Array.isArray(r))
398
- o = ce(e, r, c) || o;
399
- else if (h === "function")
400
- if (l) {
401
- for (; typeof r == "function"; )
402
- r = r();
403
- o = ce(e, Array.isArray(r) ? r : [r], Array.isArray(c) ? c : [c]) || o;
404
- } else
405
- e.push(r), o = !0;
406
- else {
407
- const u = String(r);
408
- c && c.nodeType === 3 && c.data === u ? e.push(c) : e.push(document.createTextNode(u));
409
- }
410
- }
411
- return o;
412
- }
413
- function pe(e, t, n = null) {
414
- for (let l = 0, o = t.length; l < o; l++)
415
- e.insertBefore(t[l], n);
416
- }
417
- function z(e, t, n, l) {
418
- if (n === void 0)
419
- return e.textContent = "";
420
- const o = l || document.createTextNode("");
421
- if (t.length) {
422
- let s = !1;
423
- for (let i = t.length - 1; i >= 0; i--) {
424
- const r = t[i];
425
- if (o !== r) {
426
- const c = r.parentNode === e;
427
- !s && !i ? c ? e.replaceChild(o, r) : e.insertBefore(o, n) : c && r.remove();
428
- } else
429
- s = !0;
430
- }
431
- } else
432
- e.insertBefore(o, n);
433
- return [o];
434
- }
435
- function qe(e, t, ...n) {
436
- if (t === void 0)
437
- throw new Error("`Ohbug warning(condition, format, ...args)` requires a warning message argument");
438
- if (!e) {
439
- let l = 0;
440
- const o = t.replace(/%s/g, () => n[l++]);
441
- throw new Error(`Ohbug ${o}`);
442
- }
443
- }
444
- var Ke = {};
445
- function We() {
446
- return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : Ke;
447
- }
448
- function Xe() {
449
- const e = We();
450
- return qe(
451
- !!e.__OHBUG__,
452
- "Failed to get `OhbugObject`, please confirm if `Ohbug.setup`"
453
- ), e.__OHBUG__;
454
- }
455
- function Ae(e, t) {
456
- e.parentNode && (t.push(e.parentNode), Ae(e.parentNode, t));
457
- }
458
- function Ye(e) {
459
- const t = [];
460
- return t.push(e), Ae(e, t), t;
461
- }
462
- var Je = (e) => {
463
- const t = e.target || e.srcElement;
464
- let n = e.target || e.srcElement;
465
- const l = [];
466
- for (let i = 0; n && n.nodeType === Node.ELEMENT_NODE && n.nodeType !== Node.DOCUMENT_TYPE_NODE; n = n.previousSibling)
467
- i && l.push(n), i += 1;
468
- const o = typeof e.path > "u" ? Ye(e.target) : e.path, { outerHTML: s } = t;
469
- return o.reverse().map((i) => (i.localName || "") + (i.id ? `#${i.id}` : "") + (i.className ? `.${i.className}` : "") + (i.outerHTML === s ? `:nth-child(${l.length})` : "")).filter((i) => !!i).join(" > ");
470
- };
471
- const ue = Symbol("store-raw"), M = Symbol("store-node"), _ = Symbol("store-has"), ke = Symbol("store-self");
472
- function Oe(e) {
473
- let t = e[N];
474
- if (!t && (Object.defineProperty(e, N, {
475
- value: t = new Proxy(e, et)
476
- }), !Array.isArray(e))) {
477
- const n = Object.keys(e), l = Object.getOwnPropertyDescriptors(e);
478
- for (let o = 0, s = n.length; o < s; o++) {
479
- const i = n[o];
480
- l[i].get && Object.defineProperty(e, i, {
481
- enumerable: l[i].enumerable,
482
- get: l[i].get.bind(t)
483
- });
484
- }
485
- }
486
- return t;
487
- }
488
- function te(e) {
489
- let t;
490
- return e != null && typeof e == "object" && (e[N] || !(t = Object.getPrototypeOf(e)) || t === Object.prototype || Array.isArray(e));
491
- }
492
- function I(e, t = /* @__PURE__ */ new Set()) {
493
- let n, l, o, s;
494
- if (n = e != null && e[ue])
495
- return n;
496
- if (!te(e) || t.has(e))
497
- return e;
498
- if (Array.isArray(e)) {
499
- Object.isFrozen(e) ? e = e.slice(0) : t.add(e);
500
- for (let i = 0, r = e.length; i < r; i++)
501
- o = e[i], (l = I(o, t)) !== o && (e[i] = l);
502
- } else {
503
- Object.isFrozen(e) ? e = Object.assign({}, e) : t.add(e);
504
- const i = Object.keys(e), r = Object.getOwnPropertyDescriptors(e);
505
- for (let c = 0, h = i.length; c < h; c++)
506
- s = i[c], !r[s].get && (o = e[s], (l = I(o, t)) !== o && (e[s] = l));
507
- }
508
- return e;
509
- }
510
- function ne(e, t) {
511
- let n = e[t];
512
- return n || Object.defineProperty(e, t, {
513
- value: n = /* @__PURE__ */ Object.create(null)
514
- }), n;
515
- }
516
- function q(e, t, n) {
517
- if (e[t])
518
- return e[t];
519
- const [l, o] = V(n, {
520
- equals: !1,
521
- internal: !0
522
- });
523
- return l.$ = o, e[t] = l;
524
- }
525
- function Qe(e, t) {
526
- const n = Reflect.getOwnPropertyDescriptor(e, t);
527
- return !n || n.get || !n.configurable || t === N || t === M || (delete n.value, delete n.writable, n.get = () => e[N][t]), n;
528
- }
529
- function Ce(e) {
530
- re() && q(ne(e, M), ke)();
531
- }
532
- function Ze(e) {
533
- return Ce(e), Reflect.ownKeys(e);
534
- }
535
- const et = {
536
- get(e, t, n) {
537
- if (t === ue)
538
- return e;
539
- if (t === N)
540
- return n;
541
- if (t === he)
542
- return Ce(e), n;
543
- const l = ne(e, M), o = l[t];
544
- let s = o ? o() : e[t];
545
- if (t === M || t === _ || t === "__proto__")
546
- return s;
547
- if (!o) {
548
- const i = Object.getOwnPropertyDescriptor(e, t);
549
- re() && (typeof s != "function" || e.hasOwnProperty(t)) && !(i && i.get) && (s = q(l, t, s)());
550
- }
551
- return te(s) ? Oe(s) : s;
552
- },
553
- has(e, t) {
554
- return t === ue || t === N || t === he || t === M || t === _ || t === "__proto__" ? !0 : (re() && q(ne(e, _), t)(), t in e);
555
- },
556
- set() {
557
- return !0;
558
- },
559
- deleteProperty() {
560
- return !0;
561
- },
562
- ownKeys: Ze,
563
- getOwnPropertyDescriptor: Qe
616
+ ie() && J(q(e, U), Le)();
617
+ }
618
+ function Ve(e) {
619
+ return Be(e), Reflect.ownKeys(e);
620
+ }
621
+ var He = {
622
+ get(e, t, n) {
623
+ if (t === Ie) return e;
624
+ if (t === s) return n;
625
+ if (t === c) return Be(e), n;
626
+ let r = q(e, U), i = r[t], a = i ? i() : e[t];
627
+ if (t === U || t === W || t === "__proto__") return a;
628
+ if (!i) {
629
+ let n = Object.getOwnPropertyDescriptor(e, t);
630
+ ie() && (typeof a != "function" || e.hasOwnProperty(t)) && !(n && n.get) && (a = J(r, t, a)());
631
+ }
632
+ return G(a) ? Re(a) : a;
633
+ },
634
+ has(e, t) {
635
+ return t === Ie || t === s || t === c || t === U || t === W || t === "__proto__" ? !0 : (ie() && J(q(e, W), t)(), t in e);
636
+ },
637
+ set() {
638
+ return !0;
639
+ },
640
+ deleteProperty() {
641
+ return !0;
642
+ },
643
+ ownKeys: Ve,
644
+ getOwnPropertyDescriptor: ze
564
645
  };
565
- function le(e, t, n, l = !1) {
566
- if (!l && e[t] === n)
567
- return;
568
- const o = e[t], s = e.length;
569
- n === void 0 ? (delete e[t], e[_] && e[_][t] && o !== void 0 && e[_][t].$()) : (e[t] = n, e[_] && e[_][t] && o === void 0 && e[_][t].$());
570
- let i = ne(e, M), r;
571
- if ((r = q(i, t, o)) && r.$(() => n), Array.isArray(e) && e.length !== s) {
572
- for (let c = e.length; c < s; c++)
573
- (r = i[c]) && r.$();
574
- (r = q(i, "length", s)) && r.$(e.length);
575
- }
576
- (r = i[ke]) && r.$();
577
- }
578
- function Ne(e, t) {
579
- const n = Object.keys(t);
580
- for (let l = 0; l < n.length; l += 1) {
581
- const o = n[l];
582
- le(e, o, t[o]);
583
- }
584
- }
585
- function tt(e, t) {
586
- if (typeof t == "function" && (t = t(e)), t = I(t), Array.isArray(t)) {
587
- if (e === t)
588
- return;
589
- let n = 0, l = t.length;
590
- for (; n < l; n++) {
591
- const o = t[n];
592
- e[n] !== o && le(e, n, o);
593
- }
594
- le(e, "length", l);
595
- } else
596
- Ne(e, t);
597
- }
598
- function R(e, t, n = []) {
599
- let l, o = e;
600
- if (t.length > 1) {
601
- l = t.shift();
602
- const i = typeof l, r = Array.isArray(e);
603
- if (Array.isArray(l)) {
604
- for (let c = 0; c < l.length; c++)
605
- R(e, [l[c]].concat(t), n);
606
- return;
607
- } else if (r && i === "function") {
608
- for (let c = 0; c < e.length; c++)
609
- l(e[c], c) && R(e, [c].concat(t), n);
610
- return;
611
- } else if (r && i === "object") {
612
- const {
613
- from: c = 0,
614
- to: h = e.length - 1,
615
- by: u = 1
616
- } = l;
617
- for (let g = c; g <= h; g += u)
618
- R(e, [g].concat(t), n);
619
- return;
620
- } else if (t.length > 1) {
621
- R(e[l], t, [l].concat(n));
622
- return;
623
- }
624
- o = e[l], n = [l].concat(n);
625
- }
626
- let s = t[0];
627
- typeof s == "function" && (s = s(o, n), s === o) || l === void 0 && s == null || (s = I(s), l === void 0 || te(o) && te(s) && !Array.isArray(s) ? Ne(o, s) : le(e, l, s));
628
- }
629
- function nt(...[e, t]) {
630
- const n = I(e || {}), l = Array.isArray(n), o = Oe(n);
631
- function s(...i) {
632
- je(() => {
633
- l && i.length === 1 ? tt(n, i[0]) : R(n, i);
634
- });
635
- }
636
- return [o, s];
637
- }
638
- const [w, H] = nt({ working: !1, selectedElement: null }), lt = /* @__PURE__ */ k('<svg data-ohbug-selector height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path data-ohbug-selector d="M0 0h24v24H0z" fill="none"></path><path data-ohbug-selector d="M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z" fill="rgba(255,255,255,1)">'), ot = /* @__PURE__ */ k('<svg data-ohbug-selector height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path data-ohbug-selector d="M0 0h24v24H0z" fill="none"></path><path data-ohbug-selector d="M3 3h2v2H3V3zm4 0h2v2H7V3zm4 0h2v2h-2V3zm4 0h2v2h-2V3zm4 0h2v2h-2V3zm0 4h2v2h-2V7zM3 19h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3V7zm7.667 4l1.036-1.555A1 1 0 0 1 12.535 9h2.93a1 1 0 0 1 .832.445L17.333 11H20a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1h2.667zM9 19h10v-6h-2.737l-1.333-2h-1.86l-1.333 2H9v6zm5-1a2 2 0 1 1 0-4 2 2 0 0 1 0 4z">'), fe = () => lt(), st = () => (() => {
639
- const e = ot();
640
- return e.firstChild.nextSibling.style.setProperty("fill", "var(--color)"), e;
641
- })(), it = /* @__PURE__ */ k('<div data-ohbug-selector class="bg-none border-solid border-4 border-blue-500 transition top-0 right-0 bottom-0 left-0 z-10 fixed pointer-events-none"><div data-ohbug-selector class="tips">Select element on the page<button class="btn-stop" type="button">'), rt = /* @__PURE__ */ k('<button data-ohbug-selector class="rounded-full border-none cursor-pointer flex bg-red-500 h-6 -top-3 -right-3 w-6 z-10 items-center justify-center absolute pointer-events-auto" type="button">'), ct = /* @__PURE__ */ k('<button data-ohbug-selector class="border-solid cursor-pointer font-semibold bg-red-500 border-4 border-red-500 -bottom-full text-white right-0 absolute pointer-events-auto" type="button">Change'), ut = /* @__PURE__ */ k('<div data-ohbug-selector class="-z-1 fixed"><div data-ohbug-selector class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none"></div><div data-ohbug-selector class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none"></div><div data-ohbug-selector class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none"></div><div data-ohbug-selector class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none"></div><div data-ohbug-selector>'), ft = () => {
642
- const [e, t] = V();
643
- let n, l, o, s, i;
644
- const r = 2;
645
- function c(f) {
646
- if (!f || f.tagName === "HTML")
647
- return;
648
- const {
649
- width: a,
650
- height: y,
651
- top: E,
652
- right: P,
653
- bottom: F,
654
- left: d
655
- } = f.getBoundingClientRect();
656
- i == null || i.setAttribute("style", `
657
- width: ${a + r * 2}px;
658
- height: ${y + r * 2}px;
659
- top: ${E - r}px;
660
- left: ${d - r}px;
661
- `), n == null || n.setAttribute("style", `
662
- height: ${E}px;
646
+ function Y(e, t, n, r = !1) {
647
+ if (!r && e[t] === n) return;
648
+ let i = e[t], a = e.length;
649
+ n === void 0 ? (delete e[t], e[W] && e[W][t] && i !== void 0 && e[W][t].$()) : (e[t] = n, e[W] && e[W][t] && i === void 0 && e[W][t].$());
650
+ let o = q(e, U), s;
651
+ if ((s = J(o, t, i)) && s.$(() => n), Array.isArray(e) && e.length !== a) {
652
+ for (let t = e.length; t < a; t++) (s = o[t]) && s.$();
653
+ (s = J(o, "length", a)) && s.$(e.length);
654
+ }
655
+ (s = o[Le]) && s.$();
656
+ }
657
+ function Ue(e, t) {
658
+ let n = Object.keys(t);
659
+ for (let r = 0; r < n.length; r += 1) {
660
+ let i = n[r];
661
+ Y(e, i, t[i]);
662
+ }
663
+ }
664
+ function We(e, t) {
665
+ if (typeof t == "function" && (t = t(e)), t = K(t), Array.isArray(t)) {
666
+ if (e === t) return;
667
+ let n = 0, r = t.length;
668
+ for (; n < r; n++) {
669
+ let r = t[n];
670
+ e[n] !== r && Y(e, n, r);
671
+ }
672
+ Y(e, "length", r);
673
+ } else Ue(e, t);
674
+ }
675
+ function X(e, t, n = []) {
676
+ let r, i = e;
677
+ if (t.length > 1) {
678
+ r = t.shift();
679
+ let a = typeof r, o = Array.isArray(e);
680
+ if (Array.isArray(r)) {
681
+ for (let i = 0; i < r.length; i++) X(e, [r[i]].concat(t), n);
682
+ return;
683
+ } else if (o && a === "function") {
684
+ for (let i = 0; i < e.length; i++) r(e[i], i) && X(e, [i].concat(t), n);
685
+ return;
686
+ } else if (o && a === "object") {
687
+ let { from: i = 0, to: a = e.length - 1, by: o = 1 } = r;
688
+ for (let r = i; r <= a; r += o) X(e, [r].concat(t), n);
689
+ return;
690
+ } else if (t.length > 1) {
691
+ X(e[r], t, [r].concat(n));
692
+ return;
693
+ }
694
+ i = e[r], n = [r].concat(n);
695
+ }
696
+ let a = t[0];
697
+ typeof a == "function" && (a = a(i, n), a === i) || r === void 0 && a == null || (a = K(a), r === void 0 || G(i) && G(a) && !Array.isArray(a) ? Ue(i, a) : Y(e, r, a));
698
+ }
699
+ function Ge(...[e, t]) {
700
+ let n = K(e || {}), r = Array.isArray(n), i = Re(n);
701
+ function a(...e) {
702
+ ne(() => {
703
+ r && e.length === 1 ? We(n, e[0]) : X(n, e);
704
+ });
705
+ }
706
+ return [i, a];
707
+ }
708
+ //#endregion
709
+ //#region src/store.ts
710
+ var [Z, Q] = Ge({
711
+ working: !1,
712
+ selectedElement: null
713
+ }), Ke = /* @__PURE__ */ L("<div data-ohbug-selector class=\"pointer-events-none fixed top-0 right-0 bottom-0 left-0 z-10 border-4 border-solid border-blue-500 bg-none transition\"><div data-ohbug-selector class=tips>Select element on the page<button class=btn-stop type=button>"), qe = /* @__PURE__ */ L("<button data-ohbug-selector class=\"pointer-events-auto absolute -top-3 -right-3 z-10 flex h-6 w-6 cursor-pointer items-center justify-center rounded-full border-none bg-red-500\"type=button>"), Je = /* @__PURE__ */ L("<button data-ohbug-selector class=\"pointer-events-auto absolute right-0 -bottom-full cursor-pointer border-4 border-solid border-red-500 bg-red-500 font-semibold text-white\"type=button style=\"transform:translate(4px, -8px)\">Change"), Ye = /* @__PURE__ */ L("<div data-ohbug-selector class=\"fixed -z-1\"><div data-ohbug-selector class=\"pointer-events-none fixed -z-1 bg-black/40 transition\"></div><div data-ohbug-selector class=\"pointer-events-none fixed -z-1 bg-black/40 transition\"></div><div data-ohbug-selector class=\"pointer-events-none fixed -z-1 bg-black/40 transition\"></div><div data-ohbug-selector class=\"pointer-events-none fixed -z-1 bg-black/40 transition\"></div><div data-ohbug-selector>"), Xe = () => {
714
+ let [e, t] = C(), n, r, i, a, o;
715
+ function s(e) {
716
+ if (!e || e.tagName === "HTML") return;
717
+ let { width: t, height: s, top: c, right: l, bottom: u, left: d } = e.getBoundingClientRect();
718
+ o?.setAttribute("style", `
719
+ width: ${t + 4}px;
720
+ height: ${s + 4}px;
721
+ top: ${c - 2}px;
722
+ left: ${d - 2}px;
723
+ `), n?.setAttribute("style", `
724
+ height: ${c}px;
663
725
  top: 0;
664
726
  right: 0;
665
727
  left: 0;
666
- `), l == null || l.setAttribute("style", `
667
- top: ${E}px;
728
+ `), r?.setAttribute("style", `
729
+ top: ${c}px;
668
730
  right: 0;
669
731
  bottom: 0;
670
- left: ${P}px;
671
- `), o == null || o.setAttribute("style", `
672
- width: ${a + d}px;
673
- top: ${F}px;
732
+ left: ${l}px;
733
+ `), i?.setAttribute("style", `
734
+ width: ${t + d}px;
735
+ top: ${u}px;
674
736
  bottom: 0;
675
737
  left: 0;
676
- `), s == null || s.setAttribute("style", `
738
+ `), a?.setAttribute("style", `
677
739
  width: ${d}px;
678
- height: ${y}px;
679
- top: ${E}px;
740
+ height: ${s}px;
741
+ top: ${c}px;
680
742
  left: 0;
681
743
  `);
682
- }
683
- function h(f) {
684
- if (!f || f.tagName === "HTML")
685
- return;
686
- const {
687
- width: a,
688
- height: y,
689
- top: E,
690
- left: P
691
- } = f.getBoundingClientRect();
692
- H({
693
- selectedElement: f
694
- }), i == null || i.setAttribute("style", `
695
- width: ${a + r * 2}px;
696
- height: ${y + r * 2}px;
697
- top: ${E - r}px;
698
- left: ${P - r}px;
744
+ }
745
+ function c(e) {
746
+ if (!e || e.tagName === "HTML") return;
747
+ let { width: t, height: n, top: r, left: i } = e.getBoundingClientRect();
748
+ Q({ selectedElement: e }), o?.setAttribute("style", `
749
+ width: ${t + 4}px;
750
+ height: ${n + 4}px;
751
+ top: ${r - 2}px;
752
+ left: ${i - 2}px;
699
753
  `);
700
- }
701
- function u(f) {
702
- var y;
703
- H({
704
- working: !0
705
- });
706
- const a = document.elementFromPoint(f.clientX, f.clientY);
707
- if (((y = a == null ? void 0 : a.dataset) == null ? void 0 : y.ohbugSelector) !== void 0 || a.tagName === "HTML")
708
- return !1;
709
- c(a);
710
- }
711
- function g() {
712
- document.addEventListener("mousemove", u);
713
- }
714
- function m() {
715
- document.removeEventListener("mousemove", u);
716
- }
717
- function S(f) {
718
- var y;
719
- const a = document.elementFromPoint(f.clientX, f.clientY);
720
- if (((y = a == null ? void 0 : a.dataset) == null ? void 0 : y.ohbugSelector) !== void 0 || a.tagName === "HTML" || w.selectedElement && w.working)
721
- return !1;
722
- t(a), h(e()), m();
723
- }
724
- function L() {
725
- document.addEventListener("mousedown", S);
726
- }
727
- function W() {
728
- document.removeEventListener("mousedown", S);
729
- }
730
- function C() {
731
- t(null), m(), W(), H({
732
- working: !1,
733
- selectedElement: null
734
- });
735
- }
736
- function X() {
737
- H({
738
- working: !0,
739
- selectedElement: null
740
- }), t(null), g();
741
- }
742
- return $e(() => {
743
- w.working ? (g(), L()) : (m(), W());
744
- }), He(C), (() => {
745
- const f = ut(), a = f.firstChild, y = a.nextSibling, E = y.nextSibling, P = E.nextSibling, F = P.nextSibling;
746
- return v(f, x(G, {
747
- get when() {
748
- return !w.selectedElement && w.working;
749
- },
750
- get children() {
751
- const d = it(), Te = d.firstChild, Le = Te.firstChild, de = Le.nextSibling;
752
- return de.$$click = C, v(de, x(fe, {})), d;
753
- }
754
- }), a), U((d) => {
755
- n = d;
756
- }, a), U((d) => {
757
- l = d;
758
- }, y), U((d) => {
759
- o = d;
760
- }, E), U((d) => {
761
- s = d;
762
- }, P), U((d) => {
763
- i = d;
764
- }, F), v(F, x(G, {
765
- get when() {
766
- return w.selectedElement ? w.working : null;
767
- },
768
- get children() {
769
- return [(() => {
770
- const d = rt();
771
- return d.$$click = C, v(d, x(fe, {})), d;
772
- })(), (() => {
773
- const d = ct();
774
- return d.$$click = X, d.style.setProperty("transform", "translate(4px, -8px)"), d;
775
- })()];
776
- }
777
- })), D(() => Ge(F, `fixed -z-1 bg-black bg-opacity-20 border-4 rounded-sm transition cursor-pointer box-border pointer-events-none ${e() ? "border-red-500 border-solid" : "border-blue-500 border-dashed"}`)), f;
778
- })();
754
+ }
755
+ function l(e) {
756
+ Q({ working: !0 });
757
+ let t = document.elementFromPoint(e.clientX, e.clientY);
758
+ if (t?.dataset?.ohbugSelector !== void 0 || t.tagName === "HTML") return !1;
759
+ s(t);
760
+ }
761
+ function u() {
762
+ document.addEventListener("mousemove", l);
763
+ }
764
+ function d() {
765
+ document.removeEventListener("mousemove", l);
766
+ }
767
+ function f(n) {
768
+ let r = document.elementFromPoint(n.clientX, n.clientY);
769
+ if (r?.dataset?.ohbugSelector !== void 0 || r.tagName === "HTML" || Z.selectedElement && Z.working) return !1;
770
+ t(r), c(e()), d();
771
+ }
772
+ function p() {
773
+ document.addEventListener("mousedown", f);
774
+ }
775
+ function m() {
776
+ document.removeEventListener("mousedown", f);
777
+ }
778
+ function h() {
779
+ t(null), d(), m(), Q({
780
+ working: !1,
781
+ selectedElement: null
782
+ });
783
+ }
784
+ function g() {
785
+ Q({
786
+ working: !0,
787
+ selectedElement: null
788
+ }), t(null), u();
789
+ }
790
+ return te(() => {
791
+ Z.working ? (u(), p()) : (d(), m());
792
+ }), re(h), (() => {
793
+ var t = Ye(), s = t.firstChild, c = s.nextSibling, l = c.nextSibling, u = l.nextSibling, d = u.nextSibling;
794
+ return z(t, F(I, {
795
+ get when() {
796
+ return Se(() => !Z.selectedElement)() && Z.working;
797
+ },
798
+ get children() {
799
+ var e = Ke(), t = e.firstChild.firstChild.nextSibling;
800
+ return t.$$click = h, z(t, F(Pe, {})), e;
801
+ }
802
+ }), s), R((e) => {
803
+ n = e;
804
+ }, s), R((e) => {
805
+ r = e;
806
+ }, c), R((e) => {
807
+ i = e;
808
+ }, l), R((e) => {
809
+ a = e;
810
+ }, u), R((e) => {
811
+ o = e;
812
+ }, d), z(d, F(I, {
813
+ get when() {
814
+ return Se(() => !!Z.selectedElement)() ? Z.working : null;
815
+ },
816
+ get children() {
817
+ return [(() => {
818
+ var e = qe();
819
+ return e.$$click = h, z(e, F(Pe, {})), e;
820
+ })(), (() => {
821
+ var e = Je();
822
+ return e.$$click = g, e;
823
+ })()];
824
+ }
825
+ })), w(() => De(d, `pointer-events-none fixed -z-1 box-border cursor-pointer rounded-sm border-4 bg-black/20 transition ${e() ? "border-solid border-red-500" : "border-dashed border-blue-500"}`)), t;
826
+ })();
779
827
  };
780
- _e(["click"]);
781
- const at = /* @__PURE__ */ k('<button data-ohbug-selector class="btn-main" type="button">'), dt = /* @__PURE__ */ k('<div data-ohbug-selector class="bg-white flex flex-col h-60 shadow z-max right-8 bottom-20 w-80 fixed"><div data-ohbug-selector class="bg-gray-300 p-4"><textarea autofocus data-ohbug-selector class="bg-transparent outline-none border-none w-full resize-none" maxlength="1000" placeholder="Tell me how you feel..." rows="4"></textarea><button data-ohbug-selector class="cursor-pointer border-none bg-transparent" type="button"></button></div><div data-ohbug-selector class="flex flex-1 p-4 justify-between items-center"><span data-ohbug-selector class="text-sm">Try<a data-ohbug-selector class="ml-1 underline" href="https://ohbug.net" rel="noreferrer" target="_blank">Ohbug</a>?</span><button data-ohbug-selector class="btn-send" type="button"></button></div><button data-ohbug-selector class="border-none rounded-full cursor-pointer flex bg-blue-500 h-6 -top-2 -right-2 w-6 z-10 items-center justify-center absolute" type="button">'), ht = /* @__PURE__ */ k('<div data-ohbug-selector class="z-max relative"><div>'), gt = () => {
782
- const [e, t] = V(!1), [n, l] = V("");
783
- function o() {
784
- H({
785
- working: !0
786
- });
787
- }
788
- const [s, i] = V(!1);
789
- async function r() {
790
- i(!0);
791
- let c, h;
792
- const u = Xe().client;
793
- if (w.selectedElement) {
794
- const g = {
795
- target: w.selectedElement
796
- };
797
- c = Je(g), h = w.selectedElement.outerHTML;
798
- const m = u.createEvent({
799
- category: "feedback",
800
- type: "feedback",
801
- detail: {
802
- selector: c,
803
- outerHTML: h,
804
- feedback: n()
805
- }
806
- });
807
- await u.notify(m);
808
- } else {
809
- const g = u.createEvent({
810
- category: "feedback",
811
- type: "feedback",
812
- detail: {
813
- feedback: n()
814
- }
815
- });
816
- await u.notify(g);
817
- }
818
- t(!1), l(""), H({
819
- working: !1,
820
- selectedElement: null
821
- }), i(!1);
822
- }
823
- return $e(() => {
824
- w.working === !1 && w.selectedElement === null || w.working && !w.selectedElement ? t(!1) : t(!0);
825
- }), (() => {
826
- const c = ht(), h = c.firstChild;
827
- return v(c, x(G, {
828
- get when() {
829
- return w.working;
830
- },
831
- get children() {
832
- return x(ft, {});
833
- }
834
- }), h), v(h, x(G, {
835
- get when() {
836
- return !(w.working && !w.selectedElement);
837
- },
838
- get children() {
839
- const u = at();
840
- return u.$$click = () => t((g) => !g), v(u, () => e() ? "😆" : "🙂"), u;
841
- }
842
- }), null), v(h, x(G, {
843
- get when() {
844
- return e();
845
- },
846
- get children() {
847
- const u = dt(), g = u.firstChild, m = g.firstChild, S = m.nextSibling, L = g.nextSibling, W = L.firstChild, C = W.nextSibling, X = L.nextSibling;
848
- return m.$$input = (f) => l(f.currentTarget.value), S.$$click = o, v(S, x(st, {})), C.$$click = r, v(C, () => s() ? "Sending..." : "Send"), X.$$click = () => t((f) => !f), v(X, x(fe, {})), D((f) => {
849
- const a = w.selectedElement ? "blue" : "gray", y = !n() || s();
850
- return a !== f._v$ && ((f._v$ = a) != null ? S.style.setProperty("--color", a) : S.style.removeProperty("--color")), y !== f._v$2 && (C.disabled = f._v$2 = y), f;
851
- }, {
852
- _v$: void 0,
853
- _v$2: void 0
854
- }), D(() => m.value = n()), u;
855
- }
856
- }), null), c;
857
- })();
828
+ Ee(["click"]);
829
+ //#endregion
830
+ //#region src/Box.tsx
831
+ var Ze = /* @__PURE__ */ L("<button data-ohbug-selector class=btn-main type=button>"), Qe = /* @__PURE__ */ L("<div data-ohbug-selector class=\"z-max fixed right-8 bottom-20 flex h-60 w-80 flex-col bg-white shadow\"><div data-ohbug-selector class=\"bg-gray-300 p-4\"><textarea autofocus data-ohbug-selector class=\"w-full resize-none border-none bg-transparent outline-none\"maxlength=1000 placeholder=\"Tell me how you feel...\"rows=4></textarea><button data-ohbug-selector class=\"cursor-pointer border-none bg-transparent\"type=button></button></div><div data-ohbug-selector class=\"flex flex-1 items-center justify-between p-4\"><span data-ohbug-selector class=text-sm>Try<a data-ohbug-selector class=\"ml-1 underline\"href=https://ohbug.net rel=noreferrer target=_blank>Ohbug</a>?</span><button data-ohbug-selector class=btn-send type=button></button></div><button data-ohbug-selector class=\"absolute -top-2 -right-2 z-10 flex h-6 w-6 cursor-pointer items-center justify-center rounded-full border-none bg-blue-500\"type=button>"), $e = /* @__PURE__ */ L("<div data-ohbug-selector class=\"z-max relative\"><div>"), et = () => {
832
+ let [n, r] = C(!1), [i, a] = C("");
833
+ function o() {
834
+ Q({ working: !0 });
835
+ }
836
+ let [s, c] = C(!1);
837
+ async function l() {
838
+ c(!0);
839
+ let n, o, s = e().client;
840
+ if (Z.selectedElement) {
841
+ n = t({ target: Z.selectedElement }), o = Z.selectedElement.outerHTML;
842
+ let e = s.createEvent({
843
+ category: "feedback",
844
+ type: "feedback",
845
+ detail: {
846
+ selector: n,
847
+ outerHTML: o,
848
+ feedback: i()
849
+ }
850
+ });
851
+ await s.notify(e);
852
+ } else {
853
+ let e = s.createEvent({
854
+ category: "feedback",
855
+ type: "feedback",
856
+ detail: { feedback: i() }
857
+ });
858
+ await s.notify(e);
859
+ }
860
+ r(!1), a(""), Q({
861
+ working: !1,
862
+ selectedElement: null
863
+ }), c(!1);
864
+ }
865
+ return te(() => {
866
+ Z.working === !1 && Z.selectedElement === null || Z.working && !Z.selectedElement ? r(!1) : r(!0);
867
+ }), (() => {
868
+ var e = $e(), t = e.firstChild;
869
+ return z(e, F(I, {
870
+ get when() {
871
+ return Z.working;
872
+ },
873
+ get children() {
874
+ return F(Xe, {});
875
+ }
876
+ }), t), z(t, F(I, {
877
+ get when() {
878
+ return !(Z.working && !Z.selectedElement);
879
+ },
880
+ get children() {
881
+ var e = Ze();
882
+ return e.$$click = () => r((e) => !e), z(e, () => n() ? "😆" : "🙂"), e;
883
+ }
884
+ }), null), z(t, F(I, {
885
+ get when() {
886
+ return n();
887
+ },
888
+ get children() {
889
+ var e = Qe(), t = e.firstChild, n = t.firstChild, c = n.nextSibling, u = t.nextSibling, d = u.firstChild.nextSibling, f = u.nextSibling;
890
+ return n.$$input = (e) => a(e.currentTarget.value), c.$$click = o, z(c, F(Fe, {})), d.$$click = l, z(d, () => s() ? "Sending..." : "Send"), f.$$click = () => r((e) => !e), z(f, F(Pe, {})), w((e) => {
891
+ var t = Z.selectedElement ? "blue" : "gray", n = !i() || s();
892
+ return t !== e.e && Oe(c, "--color", e.e = t), n !== e.t && (d.disabled = e.t = n), e;
893
+ }, {
894
+ e: void 0,
895
+ t: void 0
896
+ }), w(() => n.value = i()), e;
897
+ }
898
+ }), null), e;
899
+ })();
858
900
  };
859
- _e(["click", "input"]);
860
- const bt = "OhbugExtensionFeedback-ROOT";
861
- let j = null;
862
- const pt = (e) => ({
863
- name: "OhbugExtensionFeedback",
864
- onSetup: () => {
865
- j = document.createElement("div"), j.id = bt, (e || document.body).append(j), Ve(() => x(gt, {}), j);
866
- },
867
- onDestroy: () => {
868
- j && j.remove();
869
- }
901
+ Ee(["click", "input"]);
902
+ //#endregion
903
+ //#region src/index.tsx
904
+ var tt = "OhbugExtensionFeedback-ROOT", $ = null, nt = (e) => ({
905
+ name: "OhbugExtensionFeedback",
906
+ onSetup: () => {
907
+ $ = document.createElement("div"), $.id = tt, (e || document.body).append($), Te(() => F(et, {}), $);
908
+ },
909
+ onDestroy: () => {
910
+ $ && $.remove();
911
+ }
870
912
  });
871
- function styleInject(css,ref){if(ref===void 0){ref={}}var insertAt=ref.insertAt;if(!css||typeof document==="undefined"){return}var head=document.head||document.getElementsByTagName("head")[0];var style=document.createElement("style");style.type="text/css";if(insertAt==="top"){if(head.firstChild){head.insertBefore(style,head.firstChild)}else{head.appendChild(style)}}else{head.appendChild(style)}if(style.styleSheet){style.styleSheet.cssText=css}else{style.appendChild(document.createTextNode(css))}};styleInject("*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: \n}\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: \n}\n.btn-main {\n z-index: 99999;\n position: fixed;\n right: 2rem;\n bottom: 2rem;\n display: flex;\n height: 2rem;\n width: 2.5rem;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n align-items: center;\n justify-content: center;\n border-radius: 0.25rem;\n border-style: none;\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms\n}\n.btn-main:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(37 99 235 / var(--tw-bg-opacity));\n --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n.btn-send {\n cursor: pointer;\n border-radius: 0.125rem;\n border-style: none;\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n font-size: 0.875rem;\n line-height: 1.25rem;\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms\n}\n.btn-send:disabled {\n cursor: not-allowed;\n opacity: 0.5\n}\n.btn-stop {\n pointer-events: auto;\n margin-left: 0.25rem;\n cursor: pointer;\n border-style: none;\n background-color: transparent;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms\n}\n.btn-stop:hover {\n background-color: rgb(107 114 128 / var(--tw-bg-opacity));\n --tw-bg-opacity: 0.3\n}\n.tips {\n z-index: 99999;\n position: fixed;\n top: 0px;\n left: 50%;\n display: flex;\n --tw-translate-x: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n align-items: center;\n border-bottom-right-radius: 0.5rem;\n border-bottom-left-radius: 0.5rem;\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n padding: 0.75rem;\n font-size: 0.875rem;\n line-height: 1.25rem;\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity))\n}\n.z-max {\n z-index: 99999\n}\n.pointer-events-none {\n pointer-events: none\n}\n.pointer-events-auto {\n pointer-events: auto\n}\n.visible {\n visibility: visible\n}\n.fixed {\n position: fixed\n}\n.absolute {\n position: absolute\n}\n.relative {\n position: relative\n}\n.-bottom-full {\n bottom: -100%\n}\n.-right-2 {\n right: -0.5rem\n}\n.-right-3 {\n right: -0.75rem\n}\n.-top-2 {\n top: -0.5rem\n}\n.-top-3 {\n top: -0.75rem\n}\n.bottom-0 {\n bottom: 0px\n}\n.bottom-20 {\n bottom: 5rem\n}\n.left-0 {\n left: 0px\n}\n.right-0 {\n right: 0px\n}\n.right-8 {\n right: 2rem\n}\n.top-0 {\n top: 0px\n}\n.z-10 {\n z-index: 10\n}\n.ml-1 {\n margin-left: 0.25rem\n}\n.box-border {\n box-sizing: border-box\n}\n.flex {\n display: flex\n}\n.h-6 {\n height: 1.5rem\n}\n.h-60 {\n height: 15rem\n}\n.w-6 {\n width: 1.5rem\n}\n.w-80 {\n width: 20rem\n}\n.w-full {\n width: 100%\n}\n.flex-1 {\n flex: 1 1 0%\n}\n.transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n.cursor-pointer {\n cursor: pointer\n}\n.resize-none {\n resize: none\n}\n.flex-col {\n flex-direction: column\n}\n.items-center {\n align-items: center\n}\n.justify-center {\n justify-content: center\n}\n.justify-between {\n justify-content: space-between\n}\n.rounded-full {\n border-radius: 9999px\n}\n.rounded-sm {\n border-radius: 0.125rem\n}\n.border-4 {\n border-width: 4px\n}\n.border-solid {\n border-style: solid\n}\n.border-dashed {\n border-style: dashed\n}\n.border-none {\n border-style: none\n}\n.border-blue-500 {\n --tw-border-opacity: 1;\n border-color: rgb(59 130 246 / var(--tw-border-opacity))\n}\n.border-red-500 {\n --tw-border-opacity: 1;\n border-color: rgb(239 68 68 / var(--tw-border-opacity))\n}\n.bg-black {\n --tw-bg-opacity: 1;\n background-color: rgb(0 0 0 / var(--tw-bg-opacity))\n}\n.bg-blue-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity))\n}\n.bg-gray-300 {\n --tw-bg-opacity: 1;\n background-color: rgb(209 213 219 / var(--tw-bg-opacity))\n}\n.bg-red-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(239 68 68 / var(--tw-bg-opacity))\n}\n.bg-transparent {\n background-color: transparent\n}\n.bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity))\n}\n.bg-opacity-20 {\n --tw-bg-opacity: 0.2\n}\n.bg-opacity-40 {\n --tw-bg-opacity: 0.4\n}\n.bg-none {\n background-image: none\n}\n.p-4 {\n padding: 1rem\n}\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem\n}\n.font-semibold {\n font-weight: 600\n}\n.text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity))\n}\n.underline {\n text-decoration-line: underline\n}\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n.outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px\n}\n.transition {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms\n}");
872
- export {
873
- pt as default
874
- };
913
+ function styleInject(css,ref){if(ref===void 0){ref={}}var insertAt=ref.insertAt;if(!css||typeof document==="undefined"){return}var head=document.head||document.getElementsByTagName("head")[0];var style=document.createElement("style");style.type="text/css";if(insertAt==="top"){if(head.firstChild){head.insertBefore(style,head.firstChild)}else{head.appendChild(style)}}else{head.appendChild(style)}if(style.styleSheet){style.styleSheet.cssText=css}else{style.appendChild(document.createTextNode(css))}};styleInject("/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--color-red-500:oklch(63.7% .237 25.331);--color-blue-500:oklch(62.3% .214 259.815);--color-gray-300:oklch(87.2% .01 258.338);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--font-weight-semibold:600;--radius-sm:.25rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1)}}@layer utilities{.btn-stop{cursor:pointer;pointer-events:auto;background-color:#0000;border:none;margin-left:.25rem;transition-property:all;transition-duration:.15s}.btn-stop:hover{background-color:#6b72804d}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.tips{color:#fff;z-index:99999;-webkit-user-select:none;user-select:none;background-color:oklch(62.3% .214 259.815);border-radius:0 0 .5rem .5rem;align-items:center;padding:.75rem;font-size:.875rem;display:flex;position:fixed;top:0;left:50%;transform:translate(-50%)}.btn-main{cursor:pointer;color:#fff;z-index:99999;-webkit-user-select:none;user-select:none;background-color:oklch(62.3% .214 259.815);border:none;border-radius:.25rem;justify-content:center;align-items:center;width:2.5rem;height:2rem;transition-property:all;transition-duration:.15s;display:flex;position:fixed;bottom:2rem;right:2rem;box-shadow:0 1px 3px #0000001a,0 1px 2px -1px #0000001a}.btn-main:hover{background-color:oklch(54.6% .245 262.881);box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.-top-2{top:calc(var(--spacing) * -2)}.-top-3{top:calc(var(--spacing) * -3)}.top-0{top:calc(var(--spacing) * 0)}.-right-2{right:calc(var(--spacing) * -2)}.-right-3{right:calc(var(--spacing) * -3)}.right-0{right:calc(var(--spacing) * 0)}.right-8{right:calc(var(--spacing) * 8)}.-bottom-full{bottom:-100%}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-20{bottom:calc(var(--spacing) * 20)}.left-0{left:calc(var(--spacing) * 0)}.-z-1{z-index:calc(1 * -1)}.z-10{z-index:10}.z-max{z-index:99999}.ml-1{margin-left:calc(var(--spacing) * 1)}.box-border{box-sizing:border-box}.flex{display:flex}.h-6{height:calc(var(--spacing) * 6)}.h-60{height:calc(var(--spacing) * 60)}.w-6{width:calc(var(--spacing) * 6)}.w-80{width:calc(var(--spacing) * 80)}.w-full{width:100%}.flex-1{flex:1}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.btn-send{cursor:pointer;color:#fff;background-color:oklch(62.3% .214 259.815);border:none;border-radius:.25rem;padding:.25rem .75rem;font-size:.875rem;transition-property:all;transition-duration:.15s}.btn-send:disabled{opacity:.5;cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.rounded-full{border-radius:3.40282e38px}.rounded-sm{border-radius:var(--radius-sm)}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-blue-500{border-color:var(--color-blue-500)}.border-red-500{border-color:var(--color-red-500)}.bg-black\\/20{background-color:#0003}@supports (color:color-mix(in lab, red, red)){.bg-black\\/20{background-color:color-mix(in oklab, var(--color-black) 20%, transparent)}}.bg-black\\/40{background-color:#0006}@supports (color:color-mix(in lab, red, red)){.bg-black\\/40{background-color:color-mix(in oklab, var(--color-black) 40%, transparent)}}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-red-500{background-color:var(--color-red-500)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-none{background-image:none}.p-4{padding:calc(var(--spacing) * 4)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-white{color:var(--color-white)}.underline{text-decoration-line:underline}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.outline-none{--tw-outline-style:none;outline-style:none}}@property --tw-rotate-x{syntax:\"*\";inherits:false}@property --tw-rotate-y{syntax:\"*\";inherits:false}@property --tw-rotate-z{syntax:\"*\";inherits:false}@property --tw-skew-x{syntax:\"*\";inherits:false}@property --tw-skew-y{syntax:\"*\";inherits:false}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}");
914
+ //#endregion
915
+ export { nt as default };