@ohbug/extension-feedback 0.6.1 → 0.6.2

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