@ohbug/extension-feedback 0.1.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs ADDED
@@ -0,0 +1,1336 @@
1
+ const E = {};
2
+ function ze(e) {
3
+ E.context = e;
4
+ }
5
+ const Le = (e, t) => e === t, L = Symbol("solid-proxy"), De = Symbol("solid-track"), W = {
6
+ equals: Le
7
+ };
8
+ let be = me;
9
+ const D = {}, O = 1, X = 2, pe = {
10
+ owned: null,
11
+ cleanups: null,
12
+ context: null,
13
+ owner: null
14
+ };
15
+ var y = null;
16
+ let G = null, b = null, M = null, v = null, _ = null, le = 0;
17
+ function je(e, t) {
18
+ const n = b, o = y, l = e.length === 0, s = l ? pe : {
19
+ owned: null,
20
+ cleanups: null,
21
+ context: null,
22
+ owner: t || o
23
+ }, i = l ? e : () => e(() => ue(s));
24
+ y = s, b = null;
25
+ try {
26
+ return ce(i, !0);
27
+ } finally {
28
+ b = n, y = o;
29
+ }
30
+ }
31
+ function F(e, t) {
32
+ t = t ? Object.assign({}, W, t) : W;
33
+ const n = {
34
+ value: e,
35
+ observers: null,
36
+ observerSlots: null,
37
+ pending: D,
38
+ comparator: t.equals || void 0
39
+ }, o = (l) => (typeof l == "function" && (l = l(n.pending !== D ? n.pending : n.value)), ie(n, l));
40
+ return [$e.bind(n), o];
41
+ }
42
+ function j(e, t, n) {
43
+ const o = re(e, t, !1, O);
44
+ I(o);
45
+ }
46
+ function we(e, t, n) {
47
+ be = Fe;
48
+ const o = re(e, t, !1, O);
49
+ o.user = !0, _ ? _.push(o) : I(o);
50
+ }
51
+ function de(e, t, n) {
52
+ n = n ? Object.assign({}, W, n) : W;
53
+ const o = re(e, t, !0, 0);
54
+ return o.pending = D, o.observers = null, o.observerSlots = null, o.comparator = n.equals || void 0, I(o), $e.bind(o);
55
+ }
56
+ function ye(e) {
57
+ if (M)
58
+ return e();
59
+ let t;
60
+ const n = M = [];
61
+ try {
62
+ t = e();
63
+ } finally {
64
+ M = null;
65
+ }
66
+ return ce(() => {
67
+ for (let o = 0; o < n.length; o += 1) {
68
+ const l = n[o];
69
+ if (l.pending !== D) {
70
+ const s = l.pending;
71
+ l.pending = D, ie(l, s);
72
+ }
73
+ }
74
+ }, !1), t;
75
+ }
76
+ function se(e) {
77
+ let t, n = b;
78
+ return b = null, t = e(), b = n, t;
79
+ }
80
+ function He(e) {
81
+ return y === null || (y.cleanups === null ? y.cleanups = [e] : y.cleanups.push(e)), e;
82
+ }
83
+ function ve() {
84
+ return b;
85
+ }
86
+ function $e() {
87
+ const e = G;
88
+ if (this.sources && (this.state || e)) {
89
+ const t = v;
90
+ v = null, this.state === O || e ? I(this) : Y(this), v = t;
91
+ }
92
+ if (b) {
93
+ const t = this.observers ? this.observers.length : 0;
94
+ b.sources ? (b.sources.push(this), b.sourceSlots.push(t)) : (b.sources = [this], b.sourceSlots = [t]), this.observers ? (this.observers.push(b), this.observerSlots.push(b.sources.length - 1)) : (this.observers = [b], this.observerSlots = [b.sources.length - 1]);
95
+ }
96
+ return this.value;
97
+ }
98
+ function ie(e, t, n) {
99
+ if (M)
100
+ return e.pending === D && M.push(e), e.pending = t, t;
101
+ if (e.comparator && e.comparator(e.value, t))
102
+ return t;
103
+ let o = !1;
104
+ return e.value = t, e.observers && e.observers.length && ce(() => {
105
+ for (let l = 0; l < e.observers.length; l += 1) {
106
+ const s = e.observers[l];
107
+ o && G.disposed.has(s), (o && !s.tState || !o && !s.state) && (s.pure ? v.push(s) : _.push(s), s.observers && xe(s)), o || (s.state = O);
108
+ }
109
+ if (v.length > 1e6)
110
+ throw v = [], new Error();
111
+ }, !1), t;
112
+ }
113
+ function I(e) {
114
+ if (!e.fn)
115
+ return;
116
+ ue(e);
117
+ const t = y, n = b, o = le;
118
+ b = y = e, Be(e, e.value, o), b = n, y = t;
119
+ }
120
+ function Be(e, t, n) {
121
+ let o;
122
+ try {
123
+ o = e.fn(t);
124
+ } catch (l) {
125
+ Se(l);
126
+ }
127
+ (!e.updatedAt || e.updatedAt <= n) && (e.observers && e.observers.length ? ie(e, o) : e.value = o, e.updatedAt = n);
128
+ }
129
+ function re(e, t, n, o = O, l) {
130
+ const s = {
131
+ fn: e,
132
+ state: o,
133
+ updatedAt: null,
134
+ owned: null,
135
+ sources: null,
136
+ sourceSlots: null,
137
+ cleanups: null,
138
+ value: t,
139
+ owner: y,
140
+ context: null,
141
+ pure: n
142
+ };
143
+ return y === null || y !== pe && (y.owned ? y.owned.push(s) : y.owned = [s]), s;
144
+ }
145
+ function R(e) {
146
+ const t = G;
147
+ if (e.state === 0 || t)
148
+ return;
149
+ if (e.state === X || t)
150
+ return Y(e);
151
+ if (e.suspense && se(e.suspense.inFallback))
152
+ return e.suspense.effects.push(e);
153
+ const n = [e];
154
+ for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < le); )
155
+ (e.state || t) && n.push(e);
156
+ for (let o = n.length - 1; o >= 0; o--)
157
+ if (e = n[o], e.state === O || t)
158
+ I(e);
159
+ else if (e.state === X || t) {
160
+ const l = v;
161
+ v = null, Y(e, n[0]), v = l;
162
+ }
163
+ }
164
+ function ce(e, t) {
165
+ if (v)
166
+ return e();
167
+ let n = !1;
168
+ t || (v = []), _ ? n = !0 : _ = [], le++;
169
+ try {
170
+ const o = e();
171
+ return Me(n), o;
172
+ } catch (o) {
173
+ v || (_ = null), Se(o);
174
+ }
175
+ }
176
+ function Me(e) {
177
+ v && (me(v), v = null), !e && (_.length ? ye(() => {
178
+ be(_), _ = null;
179
+ }) : _ = null);
180
+ }
181
+ function me(e) {
182
+ for (let t = 0; t < e.length; t++)
183
+ R(e[t]);
184
+ }
185
+ function Fe(e) {
186
+ let t, n = 0;
187
+ for (t = 0; t < e.length; t++) {
188
+ const l = e[t];
189
+ l.user ? e[n++] = l : R(l);
190
+ }
191
+ E.context && ze();
192
+ const o = e.length;
193
+ for (t = 0; t < n; t++)
194
+ R(e[t]);
195
+ for (t = o; t < e.length; t++)
196
+ R(e[t]);
197
+ }
198
+ function Y(e, t) {
199
+ const n = G;
200
+ e.state = 0;
201
+ for (let o = 0; o < e.sources.length; o += 1) {
202
+ const l = e.sources[o];
203
+ l.sources && (l.state === O || n ? l !== t && R(l) : (l.state === X || n) && Y(l, t));
204
+ }
205
+ }
206
+ function xe(e) {
207
+ const t = G;
208
+ for (let n = 0; n < e.observers.length; n += 1) {
209
+ const o = e.observers[n];
210
+ (!o.state || t) && (o.state = X, o.pure ? v.push(o) : _.push(o), o.observers && xe(o));
211
+ }
212
+ }
213
+ function ue(e) {
214
+ let t;
215
+ if (e.sources)
216
+ for (; e.sources.length; ) {
217
+ const n = e.sources.pop(), o = e.sourceSlots.pop(), l = n.observers;
218
+ if (l && l.length) {
219
+ const s = l.pop(), i = n.observerSlots.pop();
220
+ o < l.length && (s.sourceSlots[i] = o, l[o] = s, n.observerSlots[o] = i);
221
+ }
222
+ }
223
+ if (e.owned) {
224
+ for (t = 0; t < e.owned.length; t++)
225
+ ue(e.owned[t]);
226
+ e.owned = null;
227
+ }
228
+ if (e.cleanups) {
229
+ for (t = 0; t < e.cleanups.length; t++)
230
+ e.cleanups[t]();
231
+ e.cleanups = null;
232
+ }
233
+ e.state = 0, e.context = null;
234
+ }
235
+ function Se(e) {
236
+ throw e;
237
+ }
238
+ function S(e, t) {
239
+ return se(() => e(t || {}));
240
+ }
241
+ function V(e) {
242
+ let t = !1;
243
+ const n = de(() => e.when, void 0, {
244
+ equals: (o, l) => t ? o === l : !o == !l
245
+ });
246
+ return de(() => {
247
+ const o = n();
248
+ if (o) {
249
+ const l = e.children;
250
+ return (t = typeof l == "function" && l.length > 0) ? se(() => l(o)) : l;
251
+ }
252
+ return e.fallback;
253
+ });
254
+ }
255
+ function Re(e, t, n) {
256
+ let o = n.length, l = t.length, s = o, i = 0, r = 0, c = t[l - 1].nextSibling, u = null;
257
+ for (; i < l || r < s; ) {
258
+ if (t[i] === n[r]) {
259
+ i++, r++;
260
+ continue;
261
+ }
262
+ for (; t[l - 1] === n[s - 1]; )
263
+ l--, s--;
264
+ if (l === i) {
265
+ const a = s < o ? r ? n[r - 1].nextSibling : n[s - r] : c;
266
+ for (; r < s; )
267
+ e.insertBefore(n[r++], a);
268
+ } else if (s === r)
269
+ for (; i < l; )
270
+ (!u || !u.has(t[i])) && t[i].remove(), i++;
271
+ else if (t[i] === n[s - 1] && n[r] === t[l - 1]) {
272
+ const a = t[--l].nextSibling;
273
+ e.insertBefore(n[r++], t[i++].nextSibling), e.insertBefore(n[--s], a), t[l] = n[s];
274
+ } else {
275
+ if (!u) {
276
+ u = /* @__PURE__ */ new Map();
277
+ let g = r;
278
+ for (; g < s; )
279
+ u.set(n[g], g++);
280
+ }
281
+ const a = u.get(t[i]);
282
+ if (a != null)
283
+ if (r < a && a < s) {
284
+ let g = i, $ = 1, x;
285
+ for (; ++g < l && g < s && !((x = u.get(t[g])) == null || x !== a + $); )
286
+ $++;
287
+ if ($ > a - r) {
288
+ const C = t[i];
289
+ for (; r < a; )
290
+ e.insertBefore(n[r++], C);
291
+ } else
292
+ e.replaceChild(n[r++], t[i++]);
293
+ } else
294
+ i++;
295
+ else
296
+ t[i++].remove();
297
+ }
298
+ }
299
+ }
300
+ const he = "_$DX_DELEGATE";
301
+ function Ve(e, t, n) {
302
+ let o;
303
+ return je((l) => {
304
+ o = l, t === document ? e() : m(t, e(), t.firstChild ? null : void 0, n);
305
+ }), () => {
306
+ o(), t.textContent = "";
307
+ };
308
+ }
309
+ function N(e, t, n) {
310
+ const o = document.createElement("template");
311
+ o.innerHTML = e;
312
+ let l = o.content.firstChild;
313
+ return n && (l = l.firstChild), l;
314
+ }
315
+ function _e(e, t = window.document) {
316
+ const n = t[he] || (t[he] = /* @__PURE__ */ new Set());
317
+ for (let o = 0, l = e.length; o < l; o++) {
318
+ const s = e[o];
319
+ n.has(s) || (n.add(s), t.addEventListener(s, Ge));
320
+ }
321
+ }
322
+ function Ue(e, t) {
323
+ t == null ? e.removeAttribute("class") : e.className = t;
324
+ }
325
+ function m(e, t, n, o) {
326
+ if (n !== void 0 && !o && (o = []), typeof t != "function")
327
+ return J(e, t, o, n);
328
+ j((l) => J(e, t(), l, n), o);
329
+ }
330
+ function Ge(e) {
331
+ const t = `$$${e.type}`;
332
+ let n = e.composedPath && e.composedPath()[0] || e.target;
333
+ for (e.target !== n && Object.defineProperty(e, "target", {
334
+ configurable: !0,
335
+ value: n
336
+ }), Object.defineProperty(e, "currentTarget", {
337
+ configurable: !0,
338
+ get() {
339
+ return n || document;
340
+ }
341
+ }), E.registry && !E.done && (E.done = !0, document.querySelectorAll("[id^=pl-]").forEach((o) => o.remove())); n !== null; ) {
342
+ const o = n[t];
343
+ if (o && !n.disabled) {
344
+ const l = n[`${t}Data`];
345
+ if (l !== void 0 ? o.call(n, l, e) : o.call(n, e), e.cancelBubble)
346
+ return;
347
+ }
348
+ n = n.host && n.host !== n && n.host instanceof Node ? n.host : n.parentNode;
349
+ }
350
+ }
351
+ function J(e, t, n, o, l) {
352
+ for (E.context && !n && (n = [...e.childNodes]); typeof n == "function"; )
353
+ n = n();
354
+ if (t === n)
355
+ return n;
356
+ const s = typeof t, i = o !== void 0;
357
+ if (e = i && n[0] && n[0].parentNode || e, s === "string" || s === "number") {
358
+ if (E.context)
359
+ return n;
360
+ if (s === "number" && (t = t.toString()), i) {
361
+ let r = n[0];
362
+ r && r.nodeType === 3 ? r.data = t : r = document.createTextNode(t), n = P(e, n, o, r);
363
+ } else
364
+ n !== "" && typeof n == "string" ? n = e.firstChild.data = t : n = e.textContent = t;
365
+ } else if (t == null || s === "boolean") {
366
+ if (E.context)
367
+ return n;
368
+ n = P(e, n, o);
369
+ } else {
370
+ if (s === "function")
371
+ return j(() => {
372
+ let r = t();
373
+ for (; typeof r == "function"; )
374
+ r = r();
375
+ n = J(e, r, n, o);
376
+ }), () => n;
377
+ if (Array.isArray(t)) {
378
+ const r = [], c = n && Array.isArray(n);
379
+ if (te(r, t, n, l))
380
+ return j(() => n = J(e, r, n, o, !0)), () => n;
381
+ if (E.context) {
382
+ for (let u = 0; u < r.length; u++)
383
+ if (r[u].parentNode)
384
+ return n = r;
385
+ }
386
+ if (r.length === 0) {
387
+ if (n = P(e, n, o), i)
388
+ return n;
389
+ } else
390
+ c ? n.length === 0 ? ge(e, r, o) : Re(e, n, r) : (n && P(e), ge(e, r));
391
+ n = r;
392
+ } else if (t instanceof Node) {
393
+ if (E.context && t.parentNode)
394
+ return n = i ? [t] : t;
395
+ if (Array.isArray(n)) {
396
+ if (i)
397
+ return n = P(e, n, o, t);
398
+ P(e, n, null, t);
399
+ } else
400
+ n == null || n === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild);
401
+ n = t;
402
+ }
403
+ }
404
+ return n;
405
+ }
406
+ function te(e, t, n, o) {
407
+ let l = !1;
408
+ for (let s = 0, i = t.length; s < i; s++) {
409
+ let r = t[s], c = n && n[s];
410
+ if (r instanceof Node)
411
+ e.push(r);
412
+ else if (!(r == null || r === !0 || r === !1))
413
+ if (Array.isArray(r))
414
+ l = te(e, r, c) || l;
415
+ else if (typeof r == "function")
416
+ if (o) {
417
+ for (; typeof r == "function"; )
418
+ r = r();
419
+ l = te(e, Array.isArray(r) ? r : [r], c) || l;
420
+ } else
421
+ e.push(r), l = !0;
422
+ else {
423
+ const u = String(r);
424
+ c && c.nodeType === 3 && c.data === u ? e.push(c) : e.push(document.createTextNode(u));
425
+ }
426
+ }
427
+ return l;
428
+ }
429
+ function ge(e, t, n) {
430
+ for (let o = 0, l = t.length; o < l; o++)
431
+ e.insertBefore(t[o], n);
432
+ }
433
+ function P(e, t, n, o) {
434
+ if (n === void 0)
435
+ return e.textContent = "";
436
+ const l = o || document.createTextNode("");
437
+ if (t.length) {
438
+ let s = !1;
439
+ for (let i = t.length - 1; i >= 0; i--) {
440
+ const r = t[i];
441
+ if (l !== r) {
442
+ const c = r.parentNode === e;
443
+ !s && !i ? c ? e.replaceChild(l, r) : e.insertBefore(l, n) : c && r.remove();
444
+ } else
445
+ s = !0;
446
+ }
447
+ } else
448
+ e.insertBefore(l, n);
449
+ return [l];
450
+ }
451
+ function Ie(e, t, ...n) {
452
+ if (t === void 0)
453
+ throw new Error("`Ohbug warning(condition, format, ...args)` requires a warning message argument");
454
+ if (!e) {
455
+ let o = 0, l = t.replace(/%s/g, () => n[o++]);
456
+ throw new Error(`Ohbug ${l}`);
457
+ }
458
+ }
459
+ var qe = {};
460
+ function Ke() {
461
+ return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : qe;
462
+ }
463
+ function We() {
464
+ let e = Ke();
465
+ return Ie(Boolean(e.__OHBUG__), "Failed to get `OhbugObject`, please confirm if `Ohbug.setup`"), e.__OHBUG__;
466
+ }
467
+ function Ee(e, t) {
468
+ e.parentNode && (t.push(e.parentNode), Ee(e.parentNode, t));
469
+ }
470
+ function Xe(e) {
471
+ let t = [];
472
+ return t.push(e), Ee(e, t), t;
473
+ }
474
+ var Ye = (e) => {
475
+ let t = e.target || e.srcElement, n = e.target || e.srcElement, o = [];
476
+ for (let i = 0; n && n.nodeType === Node.ELEMENT_NODE && n.nodeType !== Node.DOCUMENT_TYPE_NODE; n = n.previousSibling)
477
+ i && o.push(n), i += 1;
478
+ let l = typeof e.path > "u" ? Xe(e.target) : e.path, { outerHTML: s } = t;
479
+ return l.reverse().map((i) => (i.localName || "") + (i.id ? `#${i.id}` : "") + (i.className ? `.${i.className}` : "") + (i.outerHTML === s ? `:nth-child(${o.length})` : "")).filter((i) => Boolean(i)).join(" > ");
480
+ };
481
+ const Ae = Symbol("store-raw"), Q = Symbol("store-node"), Je = Symbol("store-name");
482
+ function Ne(e, t) {
483
+ let n = e[L];
484
+ if (!n) {
485
+ Object.defineProperty(e, L, {
486
+ value: n = new Proxy(e, et)
487
+ });
488
+ const o = Object.keys(e), l = Object.getOwnPropertyDescriptors(e);
489
+ for (let s = 0, i = o.length; s < i; s++) {
490
+ const r = o[s];
491
+ if (l[r].get) {
492
+ const c = l[r].get.bind(n);
493
+ Object.defineProperty(e, r, {
494
+ get: c
495
+ });
496
+ }
497
+ }
498
+ }
499
+ return n;
500
+ }
501
+ function Z(e) {
502
+ let t;
503
+ return e != null && typeof e == "object" && (e[L] || !(t = Object.getPrototypeOf(e)) || t === Object.prototype || Array.isArray(e));
504
+ }
505
+ function U(e, t = /* @__PURE__ */ new Set()) {
506
+ let n, o, l, s;
507
+ if (n = e != null && e[Ae])
508
+ return n;
509
+ if (!Z(e) || t.has(e))
510
+ return e;
511
+ if (Array.isArray(e)) {
512
+ Object.isFrozen(e) ? e = e.slice(0) : t.add(e);
513
+ for (let i = 0, r = e.length; i < r; i++)
514
+ l = e[i], (o = U(l, t)) !== l && (e[i] = o);
515
+ } else {
516
+ Object.isFrozen(e) ? e = Object.assign({}, e) : t.add(e);
517
+ const i = Object.keys(e), r = Object.getOwnPropertyDescriptors(e);
518
+ for (let c = 0, u = i.length; c < u; c++)
519
+ s = i[c], !r[s].get && (l = e[s], (o = U(l, t)) !== l && (e[s] = o));
520
+ }
521
+ return e;
522
+ }
523
+ function fe(e) {
524
+ let t = e[Q];
525
+ return t || Object.defineProperty(e, Q, {
526
+ value: t = {}
527
+ }), t;
528
+ }
529
+ function ne(e, t, n) {
530
+ return e[t] || (e[t] = Oe(n, !0));
531
+ }
532
+ function Qe(e, t) {
533
+ const n = Reflect.getOwnPropertyDescriptor(e, t);
534
+ return !n || n.get || !n.configurable || t === L || t === Q || t === Je || (delete n.value, delete n.writable, n.get = () => e[L][t]), n;
535
+ }
536
+ function ke(e) {
537
+ if (ve()) {
538
+ const t = fe(e);
539
+ (t._ || (t._ = Oe()))();
540
+ }
541
+ }
542
+ function Ze(e) {
543
+ return ke(e), Reflect.ownKeys(e);
544
+ }
545
+ function Oe(e, t) {
546
+ const [n, o] = F(e, t ? {
547
+ internal: !0
548
+ } : {
549
+ equals: !1,
550
+ internal: !0
551
+ });
552
+ return n.$ = o, n;
553
+ }
554
+ const et = {
555
+ get(e, t, n) {
556
+ if (t === Ae)
557
+ return e;
558
+ if (t === L)
559
+ return n;
560
+ if (t === De)
561
+ return ke(e);
562
+ const o = fe(e), l = o[t];
563
+ let s = l ? o[t]() : e[t];
564
+ if (t === Q || t === "__proto__")
565
+ return s;
566
+ if (!l) {
567
+ const i = Object.getOwnPropertyDescriptor(e, t);
568
+ ve() && (typeof s != "function" || e.hasOwnProperty(t)) && !(i && i.get) && (s = ne(o, t, s)());
569
+ }
570
+ return Z(s) ? Ne(s) : s;
571
+ },
572
+ set() {
573
+ return !0;
574
+ },
575
+ deleteProperty() {
576
+ return !0;
577
+ },
578
+ ownKeys: Ze,
579
+ getOwnPropertyDescriptor: Qe
580
+ };
581
+ function ee(e, t, n) {
582
+ if (e[t] === n)
583
+ return;
584
+ const o = e[t], l = e.length;
585
+ n === void 0 ? delete e[t] : e[t] = n;
586
+ let s = fe(e), i;
587
+ (i = ne(s, t, o)) && i.$(() => n), Array.isArray(e) && e.length !== l && (i = ne(s, "length", l)) && i.$(e.length), (i = s._) && i.$();
588
+ }
589
+ function Ce(e, t) {
590
+ const n = Object.keys(t);
591
+ for (let o = 0; o < n.length; o += 1) {
592
+ const l = n[o];
593
+ ee(e, l, t[l]);
594
+ }
595
+ }
596
+ function tt(e, t) {
597
+ if (typeof t == "function" && (t = t(e)), t = U(t), Array.isArray(t)) {
598
+ if (e === t)
599
+ return;
600
+ let n = 0, o = t.length;
601
+ for (; n < o; n++) {
602
+ const l = t[n];
603
+ e[n] !== l && ee(e, n, l);
604
+ }
605
+ ee(e, "length", o);
606
+ } else
607
+ Ce(e, t);
608
+ }
609
+ function B(e, t, n = []) {
610
+ let o, l = e;
611
+ if (t.length > 1) {
612
+ o = t.shift();
613
+ const i = typeof o, r = Array.isArray(e);
614
+ if (Array.isArray(o)) {
615
+ for (let c = 0; c < o.length; c++)
616
+ B(e, [o[c]].concat(t), n);
617
+ return;
618
+ } else if (r && i === "function") {
619
+ for (let c = 0; c < e.length; c++)
620
+ o(e[c], c) && B(e, [c].concat(t), n);
621
+ return;
622
+ } else if (r && i === "object") {
623
+ const {
624
+ from: c = 0,
625
+ to: u = e.length - 1,
626
+ by: a = 1
627
+ } = o;
628
+ for (let g = c; g <= u; g += a)
629
+ B(e, [g].concat(t), n);
630
+ return;
631
+ } else if (t.length > 1) {
632
+ B(e[o], t, [o].concat(n));
633
+ return;
634
+ }
635
+ l = e[o], n = [o].concat(n);
636
+ }
637
+ let s = t[0];
638
+ typeof s == "function" && (s = s(l, n), s === l) || o === void 0 && s == null || (s = U(s), o === void 0 || Z(l) && Z(s) && !Array.isArray(s) ? Ce(l, s) : ee(e, o, s));
639
+ }
640
+ function nt(...[e, t]) {
641
+ const n = U(e || {}), o = Array.isArray(n), l = Ne(n);
642
+ function s(...i) {
643
+ ye(() => {
644
+ o && i.length === 1 ? tt(n, i[0]) : B(n, i);
645
+ });
646
+ }
647
+ return [l, s];
648
+ }
649
+ const [p, z] = nt({ working: !1, selectedElement: null }), ot = /* @__PURE__ */ N('<svg data-ohbug-selector height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" data-ohbug-selector fill="none"></path><path 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" data-ohbug-selector fill="rgba(255,255,255,1)"></path></svg>'), lt = /* @__PURE__ */ N('<svg data-ohbug-selector height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" data-ohbug-selector fill="none"></path><path 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" data-ohbug-selector></path></svg>'), oe = () => ot.cloneNode(!0), st = () => (() => {
650
+ const e = lt.cloneNode(!0);
651
+ return e.firstChild.nextSibling.style.setProperty("fill", "var(--color)"), e;
652
+ })();
653
+ const it = /* @__PURE__ */ N('<div 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" data-ohbug-selector><div class="tips" data-ohbug-selector>Select element on the page<button class="stop-btn" type="button"></button></div></div>'), rt = /* @__PURE__ */ N('<button class="rounded-full cursor-pointer flex bg-red-500 h-6 -top-3 -right-3 w-6 z-10 items-center justify-center absolute pointer-events-auto" data-ohbug-selector type="button"></button>'), ct = /* @__PURE__ */ N('<button 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" data-ohbug-selector type="button">Change</button>'), ut = /* @__PURE__ */ N('<div class="-z-1 fixed" data-ohbug-selector><div class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none" data-ohbug-selector></div><div class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none" data-ohbug-selector></div><div class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none" data-ohbug-selector></div><div class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none" data-ohbug-selector></div><div data-ohbug-selector></div></div>'), ft = () => {
654
+ const [e, t] = F();
655
+ let n, o, l, s, i;
656
+ const r = 2;
657
+ function c(f) {
658
+ if (!f)
659
+ return;
660
+ const {
661
+ width: h,
662
+ height: w,
663
+ top: A,
664
+ right: T,
665
+ bottom: H,
666
+ left: d
667
+ } = f.getBoundingClientRect();
668
+ i == null || i.setAttribute("style", `
669
+ width: ${h + r * 2}px;
670
+ height: ${w + r * 2}px;
671
+ top: ${A - r}px;
672
+ left: ${d - r}px;
673
+ `), n == null || n.setAttribute("style", `
674
+ height: ${A}px;
675
+ top: 0;
676
+ right: 0;
677
+ left: 0;
678
+ `), o == null || o.setAttribute("style", `
679
+ top: ${A}px;
680
+ right: 0;
681
+ bottom: 0;
682
+ left: ${T}px;
683
+ `), l == null || l.setAttribute("style", `
684
+ width: ${h + d}px;
685
+ top: ${H}px;
686
+ bottom: 0;
687
+ left: 0;
688
+ `), s == null || s.setAttribute("style", `
689
+ width: ${d}px;
690
+ height: ${w}px;
691
+ top: ${A}px;
692
+ left: 0;
693
+ `);
694
+ }
695
+ function u(f) {
696
+ if (!f)
697
+ return;
698
+ const {
699
+ width: h,
700
+ height: w,
701
+ top: A,
702
+ left: T
703
+ } = f.getBoundingClientRect();
704
+ z({
705
+ selectedElement: f
706
+ }), i == null || i.setAttribute("style", `
707
+ width: ${h + r * 2}px;
708
+ height: ${w + r * 2}px;
709
+ top: ${A - r}px;
710
+ left: ${T - r}px;
711
+ `);
712
+ }
713
+ function a(f) {
714
+ var w;
715
+ z({
716
+ working: !0
717
+ });
718
+ const h = document.elementFromPoint(f.clientX, f.clientY);
719
+ if (((w = h == null ? void 0 : h.dataset) == null ? void 0 : w.ohbugSelector) !== void 0)
720
+ return !1;
721
+ c(h);
722
+ }
723
+ function g() {
724
+ document.addEventListener("mousemove", a);
725
+ }
726
+ function $() {
727
+ document.removeEventListener("mousemove", a);
728
+ }
729
+ function x(f) {
730
+ var w;
731
+ const h = document.elementFromPoint(f.clientX, f.clientY);
732
+ if (((w = h == null ? void 0 : h.dataset) == null ? void 0 : w.ohbugSelector) !== void 0 || p.selectedElement && p.working)
733
+ return !1;
734
+ t(h), u(e()), $();
735
+ }
736
+ function C() {
737
+ document.addEventListener("mousedown", x);
738
+ }
739
+ function q() {
740
+ document.removeEventListener("mousedown", x);
741
+ }
742
+ function k() {
743
+ t(null), $(), q(), z({
744
+ working: !1,
745
+ selectedElement: null
746
+ });
747
+ }
748
+ function K() {
749
+ z({
750
+ working: !0,
751
+ selectedElement: null
752
+ }), t(null), g();
753
+ }
754
+ return we(() => {
755
+ p.working ? (g(), C()) : ($(), q());
756
+ }), He(k), (() => {
757
+ const f = ut.cloneNode(!0), h = f.firstChild, w = h.nextSibling, A = w.nextSibling, T = A.nextSibling, H = T.nextSibling;
758
+ return m(f, S(V, {
759
+ get when() {
760
+ return !p.selectedElement && p.working;
761
+ },
762
+ get children() {
763
+ const d = it.cloneNode(!0), Te = d.firstChild, Pe = Te.firstChild, ae = Pe.nextSibling;
764
+ return ae.$$click = k, m(ae, S(oe, {})), d;
765
+ }
766
+ }), h), ((d) => {
767
+ n = d;
768
+ })(h), ((d) => {
769
+ o = d;
770
+ })(w), ((d) => {
771
+ l = d;
772
+ })(A), ((d) => {
773
+ s = d;
774
+ })(T), ((d) => {
775
+ i = d;
776
+ })(H), m(H, S(V, {
777
+ get when() {
778
+ return p.selectedElement && p.working;
779
+ },
780
+ get children() {
781
+ return [(() => {
782
+ const d = rt.cloneNode(!0);
783
+ return d.$$click = k, m(d, S(oe, {})), d;
784
+ })(), (() => {
785
+ const d = ct.cloneNode(!0);
786
+ return d.$$click = K, d.style.setProperty("transform", "translate(4px, -8px)"), d;
787
+ })()];
788
+ }
789
+ })), j(() => Ue(H, `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;
790
+ })();
791
+ };
792
+ _e(["click"]);
793
+ const at = /* @__PURE__ */ N('<button class="main-btn" data-ohbug-selector type="button"></button>'), dt = /* @__PURE__ */ N('<div class="bg-white flex flex-col h-60 shadow z-max right-8 bottom-20 w-80 fixed" data-ohbug-selector><div class="bg-gray-300 p-4" data-ohbug-selector><textarea autofocus class="bg-transparent outline-none w-full resize-none" data-ohbug-selector maxlength="1000" placeholder="Tell me how you feel..." rows="4"></textarea><button class="cursor-pointer" data-ohbug-selector type="button"></button></div><div class="flex flex-1 p-4 justify-between items-center" data-ohbug-selector><span class="text-sm" data-ohbug-selector>Try<a class="ml-2 underline" data-ohbug-selector href="https://ohbug.net" rel="noreferrer" target="_blank">Ohbug</a>?</span><button class="send-btn" data-ohbug-selector type="button"></button></div><button class="rounded-full cursor-pointer flex bg-blue-500 h-6 -top-2 -right-2 w-6 z-10 items-center justify-center absolute" data-ohbug-selector type="button"></button></div>'), ht = /* @__PURE__ */ N('<div class="z-max relative" data-ohbug-selector><div></div></div>'), gt = () => {
794
+ const [e, t] = F(!1), [n, o] = F("");
795
+ function l() {
796
+ z({
797
+ working: !0
798
+ });
799
+ }
800
+ const [s, i] = F(!1);
801
+ async function r() {
802
+ i(!0);
803
+ const c = {
804
+ target: p.selectedElement
805
+ };
806
+ let u, a;
807
+ p.selectedElement && (u = Ye(c), a = p.selectedElement.outerHTML);
808
+ const $ = We().client, x = $.createEvent({
809
+ category: "feedback",
810
+ type: "feedback",
811
+ detail: {
812
+ selector: u,
813
+ outerHTML: a,
814
+ feedback: n()
815
+ }
816
+ });
817
+ await $.notify(x), t(!1), o(""), z({
818
+ working: !1,
819
+ selectedElement: null
820
+ }), i(!1);
821
+ }
822
+ return we(() => {
823
+ p.working === !1 && p.selectedElement === null || p.working && !p.selectedElement ? t(!1) : t(!0);
824
+ }), (() => {
825
+ const c = ht.cloneNode(!0), u = c.firstChild;
826
+ return m(c, S(V, {
827
+ get when() {
828
+ return p.working;
829
+ },
830
+ get children() {
831
+ return S(ft, {});
832
+ }
833
+ }), u), m(u, S(V, {
834
+ get when() {
835
+ return !(p.working && !p.selectedElement);
836
+ },
837
+ get children() {
838
+ const a = at.cloneNode(!0);
839
+ return a.$$click = () => t((g) => !g), m(a, () => e() ? "\u{1F606}" : "\u{1F642}"), a;
840
+ }
841
+ }), null), m(u, S(V, {
842
+ get when() {
843
+ return e();
844
+ },
845
+ get children() {
846
+ const a = dt.cloneNode(!0), g = a.firstChild, $ = g.firstChild, x = $.nextSibling, C = g.nextSibling, q = C.firstChild, k = q.nextSibling, K = C.nextSibling;
847
+ return $.$$input = (f) => o(f.currentTarget.value), x.$$click = l, m(x, S(st, {})), k.$$click = r, m(k, () => s() ? "Sending..." : "Send"), K.$$click = () => t((f) => !f), m(K, S(oe, {})), j((f) => {
848
+ const h = p.selectedElement ? "blue" : "gray", w = !n() || s();
849
+ return h !== f._v$ && x.style.setProperty("--color", f._v$ = h), w !== f._v$2 && (k.disabled = f._v$2 = w), f;
850
+ }, {
851
+ _v$: void 0,
852
+ _v$2: void 0
853
+ }), j(() => $.value = n()), a;
854
+ }
855
+ }), null), c;
856
+ })();
857
+ };
858
+ _e(["click", "input"]);
859
+ const bt = {
860
+ name: "OhbugExtensionFeedback",
861
+ onSetup: () => {
862
+ const e = document.createElement("div");
863
+ e.id = "OhbugExtensionFeedback-ROOT", document.body.appendChild(e), Ve(() => S(gt, {}), e);
864
+ }
865
+ };
866
+ 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(`.send-btn {
867
+ --tw-bg-opacity: 1;
868
+ background-color: rgba(59, 130, 246, var(--tw-bg-opacity));
869
+ border-radius: 0.125rem;
870
+ font-size: 0.875rem;
871
+ line-height: 1.25rem;
872
+ padding-left: 0.75rem;
873
+ padding-right: 0.75rem;
874
+ padding-top: 0.25rem;
875
+ padding-bottom: 0.25rem;
876
+ --tw-text-opacity: 1;
877
+ color: rgba(255, 255, 255, var(--tw-text-opacity));
878
+ -webkit-transition-property: background-color, border-color, color, fill, stroke, opacity, -webkit-box-shadow, -webkit-transform, filter, backdrop-filter;
879
+ -o-transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
880
+ transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, -webkit-box-shadow, transform, -webkit-transform, filter, backdrop-filter;
881
+ -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
882
+ -o-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
883
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
884
+ -webkit-transition-duration: 150ms;
885
+ -o-transition-duration: 150ms;
886
+ transition-duration: 150ms;
887
+ }
888
+ .send-btn:disabled {
889
+ cursor: not-allowed;
890
+ opacity: 0.5;
891
+ }
892
+ .main-btn {
893
+ --tw-bg-opacity: 1;
894
+ background-color: rgba(59, 130, 246, var(--tw-bg-opacity));
895
+ border-radius: 0.25rem;
896
+ cursor: pointer;
897
+ display: -webkit-box;
898
+ display: -ms-flexbox;
899
+ display: -webkit-flex;
900
+ display: flex;
901
+ -webkit-box-align: center;
902
+ -ms-flex-align: center;
903
+ -webkit-align-items: center;
904
+ align-items: center;
905
+ -webkit-box-pack: center;
906
+ -ms-flex-pack: center;
907
+ -webkit-justify-content: center;
908
+ justify-content: center;
909
+ height: 2rem;
910
+ position: fixed;
911
+ right: 2rem;
912
+ bottom: 2rem;
913
+ --tw-shadow: 0 1px 3px 0 rgb(0 0 0/0.1),0 1px 2px -1px rgb(0 0 0/0.1);
914
+ --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);
915
+ -webkit-box-shadow: var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);
916
+ box-shadow: var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);
917
+ --tw-text-opacity: 1;
918
+ color: rgba(255, 255, 255, var(--tw-text-opacity));
919
+ -webkit-user-select: none;
920
+ -moz-user-select: none;
921
+ -ms-user-select: none;
922
+ user-select: none;
923
+ width: 2.5rem;
924
+ z-index: 9999999;
925
+ -webkit-transition-property: background-color, border-color, color, fill, stroke, opacity, -webkit-box-shadow, -webkit-transform, filter, backdrop-filter;
926
+ -o-transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
927
+ transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, -webkit-box-shadow, transform, -webkit-transform, filter, backdrop-filter;
928
+ -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
929
+ -o-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
930
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
931
+ -webkit-transition-duration: 150ms;
932
+ -o-transition-duration: 150ms;
933
+ transition-duration: 150ms;
934
+ }
935
+ .main-btn:hover {
936
+ --tw-bg-opacity: 1;
937
+ background-color: rgba(37, 99, 235, var(--tw-bg-opacity));
938
+ --tw-shadow: 0 20px 25px -5px rgb(0 0 0/0.1),0 8px 10px -6px rgb(0 0 0/0.1);
939
+ --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);
940
+ -webkit-box-shadow: var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);
941
+ box-shadow: var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);
942
+ }
943
+ /* windicss layer base */
944
+ *, ::before, ::after {
945
+ -webkit-box-sizing: border-box;
946
+ box-sizing: border-box;
947
+ border-width: 0;
948
+ border-style: solid;
949
+ border-color: #e5e7eb;
950
+ }
951
+ * {
952
+ --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
953
+ --tw-ring-offset-width: 0px;
954
+ --tw-ring-offset-color: #fff;
955
+ --tw-ring-color: rgba(59, 130, 246, 0.5);
956
+ --tw-ring-offset-shadow: 0 0 #0000;
957
+ --tw-ring-shadow: 0 0 #0000;
958
+ --tw-shadow: 0 0 #0000;
959
+ }
960
+ :root {
961
+ -moz-tab-size: 4;
962
+ -o-tab-size: 4;
963
+ tab-size: 4;
964
+ }
965
+ :-moz-focusring {
966
+ outline: 1px dotted ButtonText;
967
+ }
968
+ :-moz-ui-invalid {
969
+ box-shadow: none;
970
+ }
971
+ ::moz-focus-inner {
972
+ border-style: none;
973
+ padding: 0;
974
+ }
975
+ ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
976
+ height: auto;
977
+ }
978
+ ::-webkit-search-decoration {
979
+ -webkit-appearance: none;
980
+ }
981
+ ::-webkit-file-upload-button {
982
+ -webkit-appearance: button;
983
+ font: inherit;
984
+ }
985
+ [type='search'] {
986
+ -webkit-appearance: textfield;
987
+ outline-offset: -2px;
988
+ }
989
+ abbr[title] {
990
+ -webkit-text-decoration: underline dotted;
991
+ text-decoration: underline dotted;
992
+ }
993
+ a {
994
+ color: inherit;
995
+ text-decoration: inherit;
996
+ }
997
+ body {
998
+ margin: 0;
999
+ font-family: inherit;
1000
+ line-height: inherit;
1001
+ }
1002
+ button, textarea {
1003
+ font-family: inherit;
1004
+ font-size: 100%;
1005
+ line-height: 1.15;
1006
+ margin: 0;
1007
+ padding: 0;
1008
+ line-height: inherit;
1009
+ color: inherit;
1010
+ }
1011
+ button {
1012
+ text-transform: none;
1013
+ background-color: transparent;
1014
+ background-image: none;
1015
+ }
1016
+ button, [type='button'], [type='reset'], [type='submit'] {
1017
+ -webkit-appearance: button;
1018
+ }
1019
+ button, [role="button"] {
1020
+ cursor: pointer;
1021
+ }
1022
+ html {
1023
+ -webkit-text-size-adjust: 100%;
1024
+ font-family: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
1025
+ line-height: 1.5;
1026
+ }
1027
+ svg {
1028
+ display: block;
1029
+ vertical-align: middle;
1030
+ }
1031
+ textarea {
1032
+ resize: vertical;
1033
+ }
1034
+ textarea::placeholder {
1035
+ opacity: 1;
1036
+ color: #9ca3af;
1037
+ }
1038
+ textarea::webkit-input-placeholder {
1039
+ opacity: 1;
1040
+ color: #9ca3af;
1041
+ }
1042
+ textarea::-moz-placeholder {
1043
+ opacity: 1;
1044
+ color: #9ca3af;
1045
+ }
1046
+ textarea:-ms-input-placeholder {
1047
+ opacity: 1;
1048
+ color: #9ca3af;
1049
+ }
1050
+ textarea::-ms-input-placeholder {
1051
+ opacity: 1;
1052
+ color: #9ca3af;
1053
+ }
1054
+ /* windicss layer components */
1055
+
1056
+ /* windicss layer utilities */
1057
+ .bg-white {
1058
+ --tw-bg-opacity: 1;
1059
+ background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
1060
+ }
1061
+ .bg-gray-300 {
1062
+ --tw-bg-opacity: 1;
1063
+ background-color: rgba(209, 213, 219, var(--tw-bg-opacity));
1064
+ }
1065
+ .bg-transparent {
1066
+ background-color: transparent;
1067
+ }
1068
+ .bg-blue-500 {
1069
+ --tw-bg-opacity: 1;
1070
+ background-color: rgba(59, 130, 246, var(--tw-bg-opacity));
1071
+ }
1072
+ .bg-black {
1073
+ --tw-bg-opacity: 1;
1074
+ background-color: rgba(0, 0, 0, var(--tw-bg-opacity));
1075
+ }
1076
+ .bg-red-500 {
1077
+ --tw-bg-opacity: 1;
1078
+ background-color: rgba(239, 68, 68, var(--tw-bg-opacity));
1079
+ }
1080
+ .bg-none {
1081
+ background-image: none;
1082
+ }
1083
+ .bg-opacity-40 {
1084
+ --tw-bg-opacity: 0.4;
1085
+ }
1086
+ .bg-opacity-20 {
1087
+ --tw-bg-opacity: 0.2;
1088
+ }
1089
+ .border-blue-500 {
1090
+ --tw-border-opacity: 1;
1091
+ border-color: rgba(59, 130, 246, var(--tw-border-opacity));
1092
+ }
1093
+ .border-red-500 {
1094
+ --tw-border-opacity: 1;
1095
+ border-color: rgba(239, 68, 68, var(--tw-border-opacity));
1096
+ }
1097
+ .rounded-full {
1098
+ border-radius: 9999px;
1099
+ }
1100
+ .rounded-sm {
1101
+ border-radius: 0.125rem;
1102
+ }
1103
+ .border-solid {
1104
+ border-style: solid;
1105
+ }
1106
+ .border-dashed {
1107
+ border-style: dashed;
1108
+ }
1109
+ .border-4 {
1110
+ border-width: 4px;
1111
+ }
1112
+ .box-border {
1113
+ -webkit-box-sizing: border-box;
1114
+ box-sizing: border-box;
1115
+ }
1116
+ .cursor-pointer {
1117
+ cursor: pointer;
1118
+ }
1119
+ .flex {
1120
+ display: -webkit-box;
1121
+ display: -ms-flexbox;
1122
+ display: -webkit-flex;
1123
+ display: flex;
1124
+ }
1125
+ .flex-col {
1126
+ -webkit-box-orient: vertical;
1127
+ -webkit-box-direction: normal;
1128
+ -ms-flex-direction: column;
1129
+ -webkit-flex-direction: column;
1130
+ flex-direction: column;
1131
+ }
1132
+ .items-center {
1133
+ -webkit-box-align: center;
1134
+ -ms-flex-align: center;
1135
+ -webkit-align-items: center;
1136
+ align-items: center;
1137
+ }
1138
+ .justify-center {
1139
+ -webkit-box-pack: center;
1140
+ -ms-flex-pack: center;
1141
+ -webkit-justify-content: center;
1142
+ justify-content: center;
1143
+ }
1144
+ .justify-between {
1145
+ -webkit-box-pack: justify;
1146
+ -ms-flex-pack: justify;
1147
+ -webkit-justify-content: space-between;
1148
+ justify-content: space-between;
1149
+ }
1150
+ .flex-1 {
1151
+ -webkit-box-flex: 1;
1152
+ -ms-flex: 1 1 0%;
1153
+ -webkit-flex: 1 1 0%;
1154
+ flex: 1 1 0%;
1155
+ }
1156
+ .font-semibold {
1157
+ font-weight: 600;
1158
+ }
1159
+ .h-60 {
1160
+ height: 15rem;
1161
+ }
1162
+ .h-6 {
1163
+ height: 1.5rem;
1164
+ }
1165
+ .text-sm {
1166
+ font-size: 0.875rem;
1167
+ line-height: 1.25rem;
1168
+ }
1169
+ .ml-2 {
1170
+ margin-left: 0.5rem;
1171
+ }
1172
+ .outline-none {
1173
+ outline: 2px solid transparent;
1174
+ outline-offset: 2px;
1175
+ }
1176
+ .p-4 {
1177
+ padding: 1rem;
1178
+ }
1179
+ .pointer-events-none {
1180
+ pointer-events: none;
1181
+ }
1182
+ .pointer-events-auto {
1183
+ pointer-events: auto;
1184
+ }
1185
+ .fixed {
1186
+ position: fixed;
1187
+ }
1188
+ .absolute {
1189
+ position: absolute;
1190
+ }
1191
+ .relative {
1192
+ position: relative;
1193
+ }
1194
+ .right-8 {
1195
+ right: 2rem;
1196
+ }
1197
+ .bottom-20 {
1198
+ bottom: 5rem;
1199
+ }
1200
+ .-top-2 {
1201
+ top: -0.5rem;
1202
+ }
1203
+ .-right-2 {
1204
+ right: -0.5rem;
1205
+ }
1206
+ .top-0 {
1207
+ top: 0px;
1208
+ }
1209
+ .right-0 {
1210
+ right: 0px;
1211
+ }
1212
+ .bottom-0 {
1213
+ bottom: 0px;
1214
+ }
1215
+ .left-0 {
1216
+ left: 0px;
1217
+ }
1218
+ .-top-3 {
1219
+ top: -0.75rem;
1220
+ }
1221
+ .-right-3 {
1222
+ right: -0.75rem;
1223
+ }
1224
+ .-bottom-full {
1225
+ bottom: -100%;
1226
+ }
1227
+ .resize-none {
1228
+ resize: none;
1229
+ }
1230
+ .shadow {
1231
+ --tw-shadow: 0 1px 3px 0 rgb(0 0 0/0.1),0 1px 2px -1px rgb(0 0 0/0.1);
1232
+ --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);
1233
+ -webkit-box-shadow: var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);
1234
+ box-shadow: var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);
1235
+ }
1236
+ .text-white {
1237
+ --tw-text-opacity: 1;
1238
+ color: rgba(255, 255, 255, var(--tw-text-opacity));
1239
+ }
1240
+ .underline {
1241
+ -webkit-text-decoration-line: underline;
1242
+ text-decoration-line: underline;
1243
+ }
1244
+ .w-80 {
1245
+ width: 20rem;
1246
+ }
1247
+ .w-full {
1248
+ width: 100%;
1249
+ }
1250
+ .w-6 {
1251
+ width: 1.5rem;
1252
+ }
1253
+ .z-max {
1254
+ z-index: 9999999;
1255
+ }
1256
+ .z-10 {
1257
+ z-index: 10;
1258
+ }
1259
+ .-z-1 {
1260
+ z-index: -1;
1261
+ }
1262
+ .transition {
1263
+ -webkit-transition-property: background-color, border-color, color, fill, stroke, opacity, -webkit-box-shadow, -webkit-transform, filter, backdrop-filter;
1264
+ -o-transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
1265
+ transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, -webkit-box-shadow, transform, -webkit-transform, filter, backdrop-filter;
1266
+ -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1267
+ -o-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1268
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1269
+ -webkit-transition-duration: 150ms;
1270
+ -o-transition-duration: 150ms;
1271
+ transition-duration: 150ms;
1272
+ }
1273
+ .tips {
1274
+ --tw-bg-opacity: 1;
1275
+ background-color: rgba(59, 130, 246, var(--tw-bg-opacity));
1276
+ border-bottom-right-radius: 0.5rem;
1277
+ border-bottom-left-radius: 0.5rem;
1278
+ display: -webkit-box;
1279
+ display: -ms-flexbox;
1280
+ display: -webkit-flex;
1281
+ display: flex;
1282
+ -webkit-box-align: center;
1283
+ -ms-flex-align: center;
1284
+ -webkit-align-items: center;
1285
+ align-items: center;
1286
+ font-size: 0.875rem;
1287
+ line-height: 1.25rem;
1288
+ padding: 0.75rem;
1289
+ position: fixed;
1290
+ top: 0px;
1291
+ left: 50%;
1292
+ --tw-text-opacity: 1;
1293
+ color: rgba(255, 255, 255, var(--tw-text-opacity));
1294
+ -webkit-user-select: none;
1295
+ -moz-user-select: none;
1296
+ -ms-user-select: none;
1297
+ user-select: none;
1298
+ z-index: 9999999;
1299
+ --tw-translate-x: 0;
1300
+ --tw-translate-y: 0;
1301
+ --tw-translate-z: 0;
1302
+ --tw-rotate: 0;
1303
+ --tw-rotate-x: 0;
1304
+ --tw-rotate-y: 0;
1305
+ --tw-rotate-z: 0;
1306
+ --tw-skew-x: 0;
1307
+ --tw-skew-y: 0;
1308
+ --tw-scale-x: 1;
1309
+ --tw-scale-y: 1;
1310
+ --tw-scale-z: 1;
1311
+ -webkit-transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z)) rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotateZ(var(--tw-rotate-z)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z));
1312
+ -ms-transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z)) rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotateZ(var(--tw-rotate-z)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z));
1313
+ transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z)) rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotateZ(var(--tw-rotate-z)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z));
1314
+ --tw-translate-x: -50%;
1315
+ }
1316
+ .stop-btn:hover {
1317
+ --tw-bg-opacity: 1;
1318
+ background-color: rgba(107, 114, 128, var(--tw-bg-opacity));
1319
+ --tw-bg-opacity: 0.3;
1320
+ }
1321
+ .stop-btn {
1322
+ margin-left: 0.25rem;
1323
+ pointer-events: auto;
1324
+ -webkit-transition-property: background-color, border-color, color, fill, stroke, opacity, -webkit-box-shadow, -webkit-transform, filter, backdrop-filter;
1325
+ -o-transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
1326
+ transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, -webkit-box-shadow, transform, -webkit-transform, filter, backdrop-filter;
1327
+ -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1328
+ -o-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1329
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1330
+ -webkit-transition-duration: 150ms;
1331
+ -o-transition-duration: 150ms;
1332
+ transition-duration: 150ms;
1333
+ }`);
1334
+ export {
1335
+ bt as default
1336
+ };