hocmai-feedback-widget 0.1.13 → 0.1.14

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.
@@ -1,13 +1,13 @@
1
- import { jsxs as x, jsx as b, Fragment as ot } from "react/jsx-runtime";
2
- import St, { forwardRef as Yt, createElement as st, useState as T, useEffect as xi, createContext as vi, useContext as ki } from "react";
3
- var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
1
+ import { jsxs as x, jsx as g, Fragment as nt } from "react/jsx-runtime";
2
+ import St, { forwardRef as Yt, createElement as rt, useState as T, useEffect as xi, createContext as vi, useContext as ki } from "react";
3
+ var Si = "2.0.7", Ci = 500, Ct = "user-agent", pe = "", Et = "?", E = {
4
4
  FUNCTION: "function",
5
5
  OBJECT: "object",
6
6
  STRING: "string",
7
7
  UNDEFINED: "undefined"
8
- }, L = "browser", Y = "cpu", q = "device", V = "engine", H = "os", we = "result", c = "name", a = "type", d = "vendor", u = "version", F = "architecture", Re = "major", l = "model", Ue = "console", w = "mobile", v = "tablet", I = "smarttv", W = "wearable", _e = "xr", Te = "embedded", ue = "inapp", ht = "brands", ae = "formFactors", ft = "fullVersionList", me = "platform", pt = "platformVersion", qe = "bitness", te = "sec-ch-ua", Ei = te + "-full-version-list", Ii = te + "-arch", Ti = te + "-" + qe, Ri = te + "-form-factors", Ai = te + "-" + w, Oi = te + "-" + l, Kt = te + "-" + me, Mi = Kt + "-version", Qt = [ht, ft, w, l, me, pt, F, ae, qe], Le = "Amazon", he = "Apple", It = "ASUS", Tt = "BlackBerry", se = "Google", Rt = "Huawei", Ke = "Lenovo", At = "Honor", De = "LG", Qe = "Microsoft", Je = "Motorola", Ot = "Nvidia", Mt = "OnePlus", Ze = "OPPO", ve = "Samsung", Ft = "Sharp", ke = "Sony", et = "Xiaomi", tt = "Zebra", Pt = "Chrome", _t = "Chromium", Q = "Chromecast", He = "Edge", Se = "Firefox", Ce = "Opera", it = "Facebook", Lt = "Sogou", fe = "Mobile ", Ee = " Browser", at = "Windows", Fi = typeof window !== E.UNDEFINED, _ = Fi && window.navigator ? window.navigator : void 0, le = _ && _.userAgentData ? _.userAgentData : void 0, Pi = function(e, t) {
8
+ }, F = "browser", X = "cpu", j = "device", W = "engine", U = "os", ge = "result", c = "name", a = "type", d = "vendor", u = "version", P = "architecture", Ie = "major", l = "model", _e = "console", w = "mobile", v = "tablet", I = "smarttv", V = "wearable", Pe = "xr", Ee = "embedded", ce = "inapp", dt = "brands", oe = "formFactors", ut = "fullVersionList", be = "platform", ht = "platformVersion", We = "bitness", te = "sec-ch-ua", Ei = te + "-full-version-list", Ii = te + "-arch", Ti = te + "-" + We, Ri = te + "-form-factors", Mi = te + "-" + w, Oi = te + "-" + l, Qt = te + "-" + be, Ai = Qt + "-version", Zt = [dt, ut, w, l, be, ht, P, oe, We], Le = "Amazon", de = "Apple", It = "ASUS", Tt = "BlackBerry", re = "Google", Rt = "Huawei", Xe = "Lenovo", Mt = "Honor", De = "LG", Ye = "Microsoft", Qe = "Motorola", Ot = "Nvidia", At = "OnePlus", Ze = "OPPO", ye = "Samsung", Pt = "Sharp", xe = "Sony", Ke = "Xiaomi", Je = "Zebra", Lt = "Chrome", Dt = "Chromium", Z = "Chromecast", ze = "Edge", ve = "Firefox", ke = "Opera", et = "Facebook", Ft = "Sogou", ue = "Mobile ", Se = " Browser", ot = "Windows", Pi = typeof window !== E.UNDEFINED, D = Pi && window.navigator ? window.navigator : void 0, se = D && D.userAgentData ? D.userAgentData : void 0, Li = function(e, t) {
9
9
  var i = {}, n = t;
10
- if (!$e(t)) {
10
+ if (!He(t)) {
11
11
  n = {};
12
12
  for (var o in t)
13
13
  for (var s in t[o])
@@ -16,55 +16,55 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
16
16
  for (var r in e)
17
17
  i[r] = n[r] && n[r].length % 2 === 0 ? n[r].concat(e[r]) : e[r];
18
18
  return i;
19
- }, Ne = function(e) {
19
+ }, Ve = function(e) {
20
20
  for (var t = {}, i = 0; i < e.length; i++)
21
21
  t[e[i].toUpperCase()] = e[i];
22
22
  return t;
23
- }, lt = function(e, t) {
23
+ }, st = function(e, t) {
24
24
  if (typeof e === E.OBJECT && e.length > 0) {
25
25
  for (var i in e)
26
- if (J(t) == J(e[i])) return !0;
26
+ if (K(t) == K(e[i])) return !0;
27
27
  return !1;
28
28
  }
29
- return Ae(e) ? J(t) == J(e) : !1;
30
- }, $e = function(e, t) {
29
+ return Te(e) ? K(t) == K(e) : !1;
30
+ }, He = function(e, t) {
31
31
  for (var i in e)
32
- return /^(browser|cpu|device|engine|os)$/.test(i) || (t ? $e(e[i]) : !1);
33
- }, Ae = function(e) {
32
+ return /^(browser|cpu|device|engine|os)$/.test(i) || (t ? He(e[i]) : !1);
33
+ }, Te = function(e) {
34
34
  return typeof e === E.STRING;
35
- }, nt = function(e) {
35
+ }, tt = function(e) {
36
36
  if (e) {
37
- for (var t = [], i = ye(/\\?\"/g, e).split(","), n = 0; n < i.length; n++)
37
+ for (var t = [], i = we(/\\?\"/g, e).split(","), n = 0; n < i.length; n++)
38
38
  if (i[n].indexOf(";") > -1) {
39
- var o = Be(i[n]).split(";v=");
39
+ var o = Ue(i[n]).split(";v=");
40
40
  t[n] = { brand: o[0], version: o[1] };
41
41
  } else
42
- t[n] = Be(i[n]);
42
+ t[n] = Ue(i[n]);
43
43
  return t;
44
44
  }
45
- }, J = function(e) {
46
- return Ae(e) ? e.toLowerCase() : e;
47
- }, ct = function(e) {
48
- return Ae(e) ? ye(/[^\d\.]/g, e).split(".")[0] : void 0;
49
- }, X = function(e) {
45
+ }, K = function(e) {
46
+ return Te(e) ? e.toLowerCase() : e;
47
+ }, at = function(e) {
48
+ return Te(e) ? we(/[^\d\.]/g, e).split(".")[0] : void 0;
49
+ }, G = function(e) {
50
50
  for (var t in e)
51
51
  if (e.hasOwnProperty(t)) {
52
52
  var i = e[t];
53
53
  typeof i == E.OBJECT && i.length == 2 ? this[i[0]] = i[1] : this[i] = void 0;
54
54
  }
55
55
  return this;
56
- }, ye = function(e, t) {
57
- return Ae(t) ? t.replace(e, ge) : t;
58
- }, Ie = function(e) {
59
- return ye(/\\?\"/g, e);
60
- }, Be = function(e, t) {
61
- return e = ye(/^\s\s*/, String(e)), typeof t === E.UNDEFINED ? e : e.substring(0, t);
62
- }, dt = function(e, t) {
56
+ }, we = function(e, t) {
57
+ return Te(t) ? t.replace(e, pe) : t;
58
+ }, Ce = function(e) {
59
+ return we(/\\?\"/g, e);
60
+ }, Ue = function(e, t) {
61
+ return e = we(/^\s\s*/, String(e)), typeof t === E.UNDEFINED ? e : e.substring(0, t);
62
+ }, lt = function(e, t) {
63
63
  if (!(!e || !t))
64
64
  for (var i = 0, n, o, s, r, h, f; i < t.length && !h; ) {
65
- var g = t[i], m = t[i + 1];
66
- for (n = o = 0; n < g.length && !h && g[n]; )
67
- if (h = g[n++].exec(e), h)
65
+ var b = t[i], m = t[i + 1];
66
+ for (n = o = 0; n < b.length && !h && b[n]; )
67
+ if (h = b[n++].exec(e), h)
68
68
  for (s = 0; s < m.length; s++)
69
69
  f = h[++o], r = m[s], typeof r === E.OBJECT && r.length > 0 ? r.length === 2 ? typeof r[1] == E.FUNCTION ? this[r[0]] = r[1].call(this, f) : this[r[0]] = r[1] : r.length >= 3 && (typeof r[1] === E.FUNCTION && !(r[1].exec && r[1].test) ? r.length > 3 ? this[r[0]] = f ? r[1].apply(this, r.slice(2)) : void 0 : this[r[0]] = f ? r[1].call(this, f, r[2]) : void 0 : r.length == 3 ? this[r[0]] = f ? f.replace(r[1], r[2]) : void 0 : r.length == 4 ? this[r[0]] = f ? r[3].call(this, f.replace(r[1], r[2])) : void 0 : r.length > 4 && (this[r[0]] = f ? r[3].apply(this, [f.replace(r[1], r[2])].concat(r.slice(4))) : void 0)) : this[r] = f || void 0;
70
70
  i += 2;
@@ -73,12 +73,12 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
73
73
  for (var i in t)
74
74
  if (typeof t[i] === E.OBJECT && t[i].length > 0) {
75
75
  for (var n = 0; n < t[i].length; n++)
76
- if (lt(t[i][n], e))
76
+ if (st(t[i][n], e))
77
77
  return i === Et ? void 0 : i;
78
- } else if (lt(t[i], e))
78
+ } else if (st(t[i], e))
79
79
  return i === Et ? void 0 : i;
80
80
  return t.hasOwnProperty("*") ? t["*"] : e;
81
- }, Dt = {
81
+ }, _t = {
82
82
  ME: "4.90",
83
83
  "NT 3.51": "3.51",
84
84
  "NT 4.0": "4.0",
@@ -99,7 +99,7 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
99
99
  xr: ["VR", "XR"],
100
100
  "?": ["Desktop", "Unknown"],
101
101
  "*": void 0
102
- }, _i = {
102
+ }, Di = {
103
103
  Chrome: "Google Chrome",
104
104
  Edge: "Microsoft Edge",
105
105
  "Edge WebView2": "Microsoft Edge WebView2",
@@ -109,19 +109,19 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
109
109
  "MIUI Browser": "Miui Browser",
110
110
  "Opera Mobi": "OperaMobile",
111
111
  Yandex: "YaBrowser"
112
- }, Ut = {
112
+ }, Ht = {
113
113
  browser: [
114
114
  [
115
115
  // Most common regardless engine
116
116
  /\b(?:crmo|crios)\/([\w\.]+)/i
117
117
  // Chrome for Android/iOS
118
118
  ],
119
- [u, [c, fe + "Chrome"]],
119
+ [u, [c, ue + "Chrome"]],
120
120
  [
121
121
  /webview.+edge\/([\w\.]+)/i
122
122
  // Microsoft Edge
123
123
  ],
124
- [u, [c, He + " WebView"]],
124
+ [u, [c, ze + " WebView"]],
125
125
  [
126
126
  /edg(?:e|ios|a)?\/([\w\.]+)/i
127
127
  ],
@@ -140,17 +140,17 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
140
140
  /opios[\/ ]+([\w\.]+)/i
141
141
  // Opera mini on iphone >= 8.0
142
142
  ],
143
- [u, [c, Ce + " Mini"]],
143
+ [u, [c, ke + " Mini"]],
144
144
  [
145
145
  /\bop(?:rg)?x\/([\w\.]+)/i
146
146
  // Opera GX
147
147
  ],
148
- [u, [c, Ce + " GX"]],
148
+ [u, [c, ke + " GX"]],
149
149
  [
150
150
  /\bopr\/([\w\.]+)/i
151
151
  // Opera Webkit
152
152
  ],
153
- [u, [c, Ce]],
153
+ [u, [c, ke]],
154
154
  [
155
155
  // Mixed
156
156
  /\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i
@@ -225,22 +225,22 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
225
225
  /slbrowser\/([\w\.]+)/i
226
226
  // Smart Lenovo Browser
227
227
  ],
228
- [u, [c, "Smart " + Ke + Ee]],
228
+ [u, [c, "Smart " + Xe + Se]],
229
229
  [
230
230
  /(avast|avg)\/([\w\.]+)/i
231
231
  // Avast/AVG Secure Browser
232
232
  ],
233
- [[c, /(.+)/, "$1 Secure" + Ee], u],
233
+ [[c, /(.+)/, "$1 Secure" + Se], u],
234
234
  [
235
235
  /\bfocus\/([\w\.]+)/i
236
236
  // Firefox Focus
237
237
  ],
238
- [u, [c, Se + " Focus"]],
238
+ [u, [c, ve + " Focus"]],
239
239
  [
240
240
  /\bopt\/([\w\.]+)/i
241
241
  // Opera Touch
242
242
  ],
243
- [u, [c, Ce + " Touch"]],
243
+ [u, [c, ke + " Touch"]],
244
244
  [
245
245
  /coc_coc\w+\/([\w\.]+)/i
246
246
  // Coc Coc Browser
@@ -255,17 +255,17 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
255
255
  /coast\/([\w\.]+)/i
256
256
  // Opera Coast
257
257
  ],
258
- [u, [c, Ce + " Coast"]],
258
+ [u, [c, ke + " Coast"]],
259
259
  [
260
260
  /miuibrowser\/([\w\.]+)/i
261
261
  // MIUI Browser
262
262
  ],
263
- [u, [c, "MIUI" + Ee]],
263
+ [u, [c, "MIUI" + Se]],
264
264
  [
265
265
  /fxios\/([\w\.-]+)/i
266
266
  // Firefox for iOS
267
267
  ],
268
- [u, [c, fe + Se]],
268
+ [u, [c, ue + ve]],
269
269
  [
270
270
  /\bqihoobrowser\/?([\w\.]*)/i
271
271
  // 360
@@ -279,23 +279,23 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
279
279
  [
280
280
  /(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i
281
281
  ],
282
- [[c, /(.+)/, "$1" + Ee], u],
282
+ [[c, /(.+)/, "$1" + Se], u],
283
283
  [
284
284
  // Oculus/Sailfish/HuaweiBrowser/VivoBrowser/PicoBrowser
285
285
  /samsungbrowser\/([\w\.]+)/i
286
286
  // Samsung Internet
287
287
  ],
288
- [u, [c, ve + " Internet"]],
288
+ [u, [c, ye + " Internet"]],
289
289
  [
290
290
  /metasr[\/ ]?([\d\.]+)/i
291
291
  // Sogou Explorer
292
292
  ],
293
- [u, [c, Lt + " Explorer"]],
293
+ [u, [c, Ft + " Explorer"]],
294
294
  [
295
295
  /(sogou)mo\w+\/([\d\.]+)/i
296
296
  // Sogou Mobile
297
297
  ],
298
- [[c, Lt + " Mobile"], u],
298
+ [[c, Ft + " Mobile"], u],
299
299
  [
300
300
  /(electron)\/([\w\.]+) safari/i,
301
301
  // Electron-based App
@@ -322,7 +322,7 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
322
322
  /((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i
323
323
  // Facebook App for iOS & Android
324
324
  ],
325
- [[c, it], u, [a, ue]],
325
+ [[c, et], u, [a, ce]],
326
326
  [
327
327
  /(kakao(?:talk|story))[\/ ]([\w\.]+)/i,
328
328
  // Kakao App
@@ -343,27 +343,27 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
343
343
  /(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i
344
344
  // Instagram/Snapchat/Klarna
345
345
  ],
346
- [c, u, [a, ue]],
346
+ [c, u, [a, ce]],
347
347
  [
348
348
  /\bgsa\/([\w\.]+) .*safari\//i
349
349
  // Google Search Appliance on iOS
350
350
  ],
351
- [u, [c, "GSA"], [a, ue]],
351
+ [u, [c, "GSA"], [a, ce]],
352
352
  [
353
353
  /musical_ly(?:.+app_?version\/|_)([\w\.]+)/i
354
354
  // TikTok
355
355
  ],
356
- [u, [c, "TikTok"], [a, ue]],
356
+ [u, [c, "TikTok"], [a, ce]],
357
357
  [
358
358
  /\[(linkedin)app\]/i
359
359
  // LinkedIn App for iOS & Android
360
360
  ],
361
- [c, [a, ue]],
361
+ [c, [a, ce]],
362
362
  [
363
363
  /(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i
364
364
  // Zalo
365
365
  ],
366
- [[c, /(.+)/, "Zalo"], u, [a, ue]],
366
+ [[c, /(.+)/, "Zalo"], u, [a, ce]],
367
367
  [
368
368
  /(chromium)[\/ ]([-\w\.]+)/i
369
369
  // Chromium
@@ -373,27 +373,27 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
373
373
  /headlesschrome(?:\/([\w\.]+)| )/i
374
374
  // Chrome Headless
375
375
  ],
376
- [u, [c, Pt + " Headless"]],
376
+ [u, [c, Lt + " Headless"]],
377
377
  [
378
378
  /wv\).+chrome\/([\w\.]+).+edgw\//i
379
379
  // Edge WebView2
380
380
  ],
381
- [u, [c, He + " WebView2"]],
381
+ [u, [c, ze + " WebView2"]],
382
382
  [
383
383
  / wv\).+(chrome)\/([\w\.]+)/i
384
384
  // Chrome WebView
385
385
  ],
386
- [[c, Pt + " WebView"], u],
386
+ [[c, Lt + " WebView"], u],
387
387
  [
388
388
  /droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i
389
389
  // Android Browser
390
390
  ],
391
- [u, [c, "Android" + Ee]],
391
+ [u, [c, "Android" + Se]],
392
392
  [
393
393
  /chrome\/([\w\.]+) mobile/i
394
394
  // Chrome Mobile
395
395
  ],
396
- [u, [c, fe + "Chrome"]],
396
+ [u, [c, ue + "Chrome"]],
397
397
  [
398
398
  /(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i
399
399
  // Chrome/OmniWeb/Arora/Tizen/Nokia
@@ -403,11 +403,11 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
403
403
  /version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i
404
404
  // Safari Mobile
405
405
  ],
406
- [u, [c, fe + "Safari"]],
406
+ [u, [c, ue + "Safari"]],
407
407
  [
408
408
  /iphone .*mobile(?:\/\w+ | ?)safari/i
409
409
  ],
410
- [[c, fe + "Safari"]],
410
+ [[c, ue + "Safari"]],
411
411
  [
412
412
  /version\/([\w\.\,]+) .*(safari)/i
413
413
  // Safari
@@ -427,7 +427,7 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
427
427
  /(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i
428
428
  // Firefox Mobile
429
429
  ],
430
- [[c, fe + Se], u],
430
+ [[c, ue + ve], u],
431
431
  [
432
432
  /(navigator|netscape\d?)\/([-\w\.]+)/i
433
433
  // Netscape
@@ -442,7 +442,7 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
442
442
  /mobile vr; rv:([\w\.]+)\).+firefox/i
443
443
  // Firefox Reality
444
444
  ],
445
- [u, [c, Se + " Reality"]],
445
+ [u, [c, ve + " Reality"]],
446
446
  [
447
447
  /ekiohf.+(flow)\/([\w\.]+)/i,
448
448
  // Flow
@@ -467,41 +467,41 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
467
467
  /(cobalt)\/([\w\.]+)/i
468
468
  // Cobalt
469
469
  ],
470
- [c, [u, /[^\d\.]+./, ge]]
470
+ [c, [u, /[^\d\.]+./, pe]]
471
471
  ],
472
472
  cpu: [
473
473
  [
474
474
  /\b((amd|x|x86[-_]?|wow|win)64)\b/i
475
475
  // AMD64 (x64)
476
476
  ],
477
- [[F, "amd64"]],
477
+ [[P, "amd64"]],
478
478
  [
479
479
  /(ia32(?=;))/i,
480
480
  // IA32 (quicktime)
481
481
  /\b((i[346]|x)86)(pc)?\b/i
482
482
  // IA32 (x86)
483
483
  ],
484
- [[F, "ia32"]],
484
+ [[P, "ia32"]],
485
485
  [
486
486
  /\b(aarch64|arm(v?[89]e?l?|_?64))\b/i
487
487
  // ARM64
488
488
  ],
489
- [[F, "arm64"]],
489
+ [[P, "arm64"]],
490
490
  [
491
491
  /\b(arm(v[67])?ht?n?[fl]p?)\b/i
492
492
  // ARMHF
493
493
  ],
494
- [[F, "armhf"]],
494
+ [[P, "armhf"]],
495
495
  [
496
496
  // PocketPC mistakenly identified as PowerPC
497
497
  /( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i
498
498
  ],
499
- [[F, "arm"]],
499
+ [[P, "arm"]],
500
500
  [
501
501
  / sun4\w[;\)]/i
502
502
  // SPARC
503
503
  ],
504
- [[F, "sparc"]],
504
+ [[P, "sparc"]],
505
505
  [
506
506
  // IA64, 68K, ARM/64, AVR/32, IRIX/64, MIPS/64, SPARC/64, PA-RISC
507
507
  /\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,
@@ -510,15 +510,15 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
510
510
  /(?:osf1|[freopnt]{3,4}bsd) (alpha)/i
511
511
  // Alpha
512
512
  ],
513
- [[F, /ower/, ge, J]],
513
+ [[P, /ower/, pe, K]],
514
514
  [
515
515
  /mc680.0/i
516
516
  ],
517
- [[F, "68k"]],
517
+ [[P, "68k"]],
518
518
  [
519
519
  /winnt.+\[axp/i
520
520
  ],
521
- [[F, "alpha"]]
521
+ [[P, "alpha"]]
522
522
  ],
523
523
  device: [
524
524
  [
@@ -528,43 +528,43 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
528
528
  // Samsung
529
529
  /\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i
530
530
  ],
531
- [l, [d, ve], [a, v]],
531
+ [l, [d, ye], [a, v]],
532
532
  [
533
533
  /\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,
534
534
  /samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,
535
535
  /sec-(sgh\w+)/i
536
536
  ],
537
- [l, [d, ve], [a, w]],
537
+ [l, [d, ye], [a, w]],
538
538
  [
539
539
  // Apple
540
540
  /(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i
541
541
  // iPod/iPhone
542
542
  ],
543
- [l, [d, he], [a, w]],
543
+ [l, [d, de], [a, w]],
544
544
  [
545
545
  /\b(?:ios|apple\w+)\/.+[\(\/](ipad)/i,
546
546
  // iPad
547
547
  /\b(ipad)[\d,]*[;\] ].+(mac |i(pad)?)os/i
548
548
  ],
549
- [l, [d, he], [a, v]],
549
+ [l, [d, de], [a, v]],
550
550
  [
551
551
  /(macintosh);/i
552
552
  ],
553
- [l, [d, he]],
553
+ [l, [d, de]],
554
554
  [
555
555
  // Sharp
556
556
  /\b(sh-?[altvz]?\d\d[a-ekm]?)/i
557
557
  ],
558
- [l, [d, Ft], [a, w]],
558
+ [l, [d, Pt], [a, w]],
559
559
  [
560
560
  // Honor
561
561
  /\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i
562
562
  ],
563
- [l, [d, At], [a, v]],
563
+ [l, [d, Mt], [a, v]],
564
564
  [
565
565
  /honor([-\w ]+)[;\)]/i
566
566
  ],
567
- [l, [d, At], [a, w]],
567
+ [l, [d, Mt], [a, w]],
568
568
  [
569
569
  // Huawei
570
570
  /\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i
@@ -581,7 +581,7 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
581
581
  /\b(?:xiao)?((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i
582
582
  // Mi Pad tablets
583
583
  ],
584
- [[l, /_/g, " "], [d, et], [a, v]],
584
+ [[l, /_/g, " "], [d, Ke], [a, v]],
585
585
  [
586
586
  /\b; (\w+) build\/hm\1/i,
587
587
  // Xiaomi Hongmi 'numeric' models
@@ -593,13 +593,13 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
593
593
  /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note|max|cc)?[_ ]?(?:\d{0,2}\w?)[_ ]?(?:plus|se|lite|pro)?( 5g|lte)?)(?: bui|\))/i,
594
594
  / ([\w ]+) miui\/v?\d/i
595
595
  ],
596
- [[l, /_/g, " "], [d, et], [a, w]],
596
+ [[l, /_/g, " "], [d, Ke], [a, w]],
597
597
  [
598
598
  // OnePlus
599
599
  /droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-k]\w[1m]10)\b/i,
600
600
  /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i
601
601
  ],
602
- [l, [d, Mt], [a, w]],
602
+ [l, [d, At], [a, w]],
603
603
  [
604
604
  // OPPO
605
605
  /; (\w+) bui.+ oppo/i,
@@ -632,22 +632,22 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
632
632
  /(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,
633
633
  /lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i
634
634
  ],
635
- [l, [d, Ke], [a, v]],
635
+ [l, [d, Xe], [a, v]],
636
636
  [
637
637
  /lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i
638
638
  ],
639
- [l, [d, Ke], [a, w]],
639
+ [l, [d, Xe], [a, w]],
640
640
  [
641
641
  // Motorola
642
642
  /\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,
643
643
  /\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,
644
644
  /((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i
645
645
  ],
646
- [l, [d, Je], [a, w]],
646
+ [l, [d, Qe], [a, w]],
647
647
  [
648
648
  /\b(mz60\d|xoom[2 ]{0,2}) build\//i
649
649
  ],
650
- [l, [d, Je], [a, v]],
650
+ [l, [d, Qe], [a, v]],
651
651
  [
652
652
  // LG
653
653
  /((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i
@@ -674,12 +674,12 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
674
674
  /(pixel (c|tablet))\b/i
675
675
  // Google Pixel C/Tablet
676
676
  ],
677
- [l, [d, se], [a, v]],
677
+ [l, [d, re], [a, v]],
678
678
  [
679
679
  // Google Pixel
680
680
  /droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i
681
681
  ],
682
- [l, [d, se], [a, w]],
682
+ [l, [d, re], [a, w]],
683
683
  [
684
684
  /(google) (pixelbook( go)?)/i
685
685
  ],
@@ -688,12 +688,12 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
688
688
  // Sony
689
689
  /droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i
690
690
  ],
691
- [l, [d, ke], [a, w]],
691
+ [l, [d, xe], [a, w]],
692
692
  [
693
693
  /sony tablet [ps]/i,
694
694
  /\b(?:sony)?sgp\w+(?: bui|\))/i
695
695
  ],
696
- [[l, "Xperia Tablet"], [d, ke], [a, v]],
696
+ [[l, "Xperia Tablet"], [d, xe], [a, v]],
697
697
  [
698
698
  // Amazon
699
699
  /(alexa)webm/i,
@@ -757,7 +757,7 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
757
757
  // itel
758
758
  /(itel) ((\w+))/i
759
759
  ],
760
- [[d, J], l, [a, B, { tablet: ["p10001l", "w7001"], "*": "mobile" }]],
760
+ [[d, K], l, [a, B, { tablet: ["p10001l", "w7001"], "*": "mobile" }]],
761
761
  [
762
762
  // Acer
763
763
  /droid.+; ([ab][1-7]-?[0178a]\d\d?)/i
@@ -850,7 +850,7 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
850
850
  /(surface duo)/i
851
851
  // Surface Duo
852
852
  ],
853
- [l, [d, Qe], [a, v]],
853
+ [l, [d, Ye], [a, v]],
854
854
  [
855
855
  /droid [\d\.]+; (fp\du?)(?: b|\))/i
856
856
  // Fairphone
@@ -870,16 +870,16 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
870
870
  /(kin\.[onetw]{3})/i
871
871
  // Microsoft Kin
872
872
  ],
873
- [[l, /\./g, " "], [d, Qe], [a, w]],
873
+ [[l, /\./g, " "], [d, Ye], [a, w]],
874
874
  [
875
875
  /droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i
876
876
  // Zebra
877
877
  ],
878
- [l, [d, tt], [a, v]],
878
+ [l, [d, Je], [a, v]],
879
879
  [
880
880
  /droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i
881
881
  ],
882
- [l, [d, tt], [a, w]],
882
+ [l, [d, Je], [a, w]],
883
883
  [
884
884
  ///////////////////
885
885
  // SMARTTVS
@@ -893,7 +893,7 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
893
893
  [
894
894
  /hbbtv.+maple;(\d+)/i
895
895
  ],
896
- [[l, /^/, "SmartTV"], [d, ve], [a, I]],
896
+ [[l, /^/, "SmartTV"], [d, ye], [a, I]],
897
897
  [
898
898
  /(vizio)(?: |.+model\/)(\w+-\w+)/i,
899
899
  // Vizio
@@ -909,32 +909,32 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
909
909
  /(apple) ?tv/i
910
910
  // Apple TV
911
911
  ],
912
- [d, [l, he + " TV"], [a, I]],
912
+ [d, [l, de + " TV"], [a, I]],
913
913
  [
914
914
  /crkey.*devicetype\/chromecast/i
915
915
  // Google Chromecast Third Generation
916
916
  ],
917
- [[l, Q + " Third Generation"], [d, se], [a, I]],
917
+ [[l, Z + " Third Generation"], [d, re], [a, I]],
918
918
  [
919
919
  /crkey.*devicetype\/([^/]*)/i
920
920
  // Google Chromecast with specific device type
921
921
  ],
922
- [[l, /^/, "Chromecast "], [d, se], [a, I]],
922
+ [[l, /^/, "Chromecast "], [d, re], [a, I]],
923
923
  [
924
924
  /fuchsia.*crkey/i
925
925
  // Google Chromecast Nest Hub
926
926
  ],
927
- [[l, Q + " Nest Hub"], [d, se], [a, I]],
927
+ [[l, Z + " Nest Hub"], [d, re], [a, I]],
928
928
  [
929
929
  /crkey/i
930
930
  // Google Chromecast, Linux-based or unknown
931
931
  ],
932
- [[l, Q], [d, se], [a, I]],
932
+ [[l, Z], [d, re], [a, I]],
933
933
  [
934
934
  /(portaltv)/i
935
935
  // Facebook Portal TV
936
936
  ],
937
- [l, [d, it], [a, I]],
937
+ [l, [d, et], [a, I]],
938
938
  [
939
939
  /droid.+aft(\w+)( bui|\))/i
940
940
  // Fire TV
@@ -950,17 +950,17 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
950
950
  /(aquos-tv[\w ]+)\)/i
951
951
  // Sharp
952
952
  ],
953
- [l, [d, Ft], [a, I]],
953
+ [l, [d, Pt], [a, I]],
954
954
  [
955
955
  /(bravia[\w ]+)( bui|\))/i
956
956
  // Sony
957
957
  ],
958
- [l, [d, ke], [a, I]],
958
+ [l, [d, xe], [a, I]],
959
959
  [
960
960
  /(mi(tv|box)-?\w+) bui/i
961
961
  // Xiaomi
962
962
  ],
963
- [l, [d, et], [a, I]],
963
+ [l, [d, Ke], [a, I]],
964
964
  [
965
965
  /Hbbtv.*(technisat) (.*);/i
966
966
  // TechniSAT
@@ -972,7 +972,7 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
972
972
  /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i
973
973
  // HbbTV devices
974
974
  ],
975
- [[d, /.+\/(\w+)/, "$1", B, { LG: "lge" }], [l, Be], [a, I]],
975
+ [[d, /.+\/(\w+)/, "$1", B, { LG: "lge" }], [l, Ue], [a, I]],
976
976
  [
977
977
  ///////////////////
978
978
  // CONSOLES
@@ -980,12 +980,12 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
980
980
  /(playstation \w+)/i
981
981
  // Playstation
982
982
  ],
983
- [l, [d, ke], [a, Ue]],
983
+ [l, [d, xe], [a, _e]],
984
984
  [
985
985
  /\b(xbox(?: one)?(?!; xbox))[\); ]/i
986
986
  // Microsoft Xbox
987
987
  ],
988
- [l, [d, Qe], [a, Ue]],
988
+ [l, [d, Ye], [a, _e]],
989
989
  [
990
990
  /(ouya)/i,
991
991
  // Ouya
@@ -997,7 +997,7 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
997
997
  /droid.+; ((shield|rgcube|gr0006))( bui|\))/i
998
998
  // Nvidia Portable/Anbernic/Logitech
999
999
  ],
1000
- [[d, B, { Nvidia: "Shield", Anbernic: "RGCUBE", Logitech: "GR0006" }], l, [a, Ue]],
1000
+ [[d, B, { Nvidia: "Shield", Anbernic: "RGCUBE", Logitech: "GR0006" }], l, [a, _e]],
1001
1001
  [
1002
1002
  ///////////////////
1003
1003
  // WEARABLES
@@ -1005,48 +1005,48 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
1005
1005
  /\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i
1006
1006
  // Samsung Galaxy Watch
1007
1007
  ],
1008
- [l, [d, ve], [a, W]],
1008
+ [l, [d, ye], [a, V]],
1009
1009
  [
1010
1010
  /((pebble))app/i,
1011
1011
  // Pebble
1012
1012
  /(asus|google|lg|oppo|xiaomi) ((pixel |zen)?watch[\w ]*)( bui|\))/i
1013
1013
  // Asus ZenWatch / LG Watch / Pixel Watch / Xiaomi Watch
1014
1014
  ],
1015
- [d, l, [a, W]],
1015
+ [d, l, [a, V]],
1016
1016
  [
1017
1017
  /(ow(?:19|20)?we?[1-3]{1,3})/i
1018
1018
  // Oppo Watch
1019
1019
  ],
1020
- [l, [d, Ze], [a, W]],
1020
+ [l, [d, Ze], [a, V]],
1021
1021
  [
1022
1022
  /(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i
1023
1023
  // Apple Watch
1024
1024
  ],
1025
- [l, [d, he], [a, W]],
1025
+ [l, [d, de], [a, V]],
1026
1026
  [
1027
1027
  /(opwwe\d{3})/i
1028
1028
  // OnePlus Watch
1029
1029
  ],
1030
- [l, [d, Mt], [a, W]],
1030
+ [l, [d, At], [a, V]],
1031
1031
  [
1032
1032
  /(moto 360)/i
1033
1033
  // Motorola 360
1034
1034
  ],
1035
- [l, [d, Je], [a, W]],
1035
+ [l, [d, Qe], [a, V]],
1036
1036
  [
1037
1037
  /(smartwatch 3)/i
1038
1038
  // Sony SmartWatch
1039
1039
  ],
1040
- [l, [d, ke], [a, W]],
1040
+ [l, [d, xe], [a, V]],
1041
1041
  [
1042
1042
  /(g watch r)/i
1043
1043
  // LG G Watch R
1044
1044
  ],
1045
- [l, [d, De], [a, W]],
1045
+ [l, [d, De], [a, V]],
1046
1046
  [
1047
1047
  /droid.+; (wt63?0{2,3})\)/i
1048
1048
  ],
1049
- [l, [d, tt], [a, W]],
1049
+ [l, [d, Je], [a, V]],
1050
1050
  [
1051
1051
  ///////////////////
1052
1052
  // XR
@@ -1054,22 +1054,22 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
1054
1054
  /droid.+; (glass) \d/i
1055
1055
  // Google Glass
1056
1056
  ],
1057
- [l, [d, se], [a, _e]],
1057
+ [l, [d, re], [a, Pe]],
1058
1058
  [
1059
1059
  /(pico) ([\w ]+) os\d/i
1060
1060
  // Pico
1061
1061
  ],
1062
- [d, l, [a, _e]],
1062
+ [d, l, [a, Pe]],
1063
1063
  [
1064
1064
  /(quest( \d| pro)?s?).+vr/i
1065
1065
  // Meta Quest
1066
1066
  ],
1067
- [l, [d, it], [a, _e]],
1067
+ [l, [d, et], [a, Pe]],
1068
1068
  [
1069
1069
  /mobile vr; rv.+firefox/i
1070
1070
  // Unidentifiable VR device using Firefox Reality / Wolvic
1071
1071
  ],
1072
- [[a, _e]],
1072
+ [[a, Pe]],
1073
1073
  [
1074
1074
  ///////////////////
1075
1075
  // EMBEDDED
@@ -1077,22 +1077,22 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
1077
1077
  /(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i
1078
1078
  // Tesla
1079
1079
  ],
1080
- [d, [a, Te]],
1080
+ [d, [a, Ee]],
1081
1081
  [
1082
1082
  /(aeobc)\b/i
1083
1083
  // Echo Dot
1084
1084
  ],
1085
- [l, [d, Le], [a, Te]],
1085
+ [l, [d, Le], [a, Ee]],
1086
1086
  [
1087
1087
  /(homepod).+mac os/i
1088
1088
  // Apple HomePod
1089
1089
  ],
1090
- [l, [d, he], [a, Te]],
1090
+ [l, [d, de], [a, Ee]],
1091
1091
  [
1092
1092
  /windows iot/i
1093
1093
  // Unidentifiable embedded device using Windows IoT
1094
1094
  ],
1095
- [[a, Te]],
1095
+ [[a, Ee]],
1096
1096
  [
1097
1097
  ////////////////////
1098
1098
  // MIXED (GENERIC)
@@ -1130,7 +1130,7 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
1130
1130
  /windows.+ edge\/([\w\.]+)/i
1131
1131
  // EdgeHTML
1132
1132
  ],
1133
- [u, [c, He + "HTML"]],
1133
+ [u, [c, ze + "HTML"]],
1134
1134
  [
1135
1135
  /(arkweb)\/([\w\.]+)/i
1136
1136
  // ArkWeb
@@ -1172,7 +1172,7 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
1172
1172
  /(windows nt) (6\.[23]); arm/i
1173
1173
  // Windows RT
1174
1174
  ],
1175
- [[c, /N/, "R"], [u, B, Dt]],
1175
+ [[c, /N/, "R"], [u, B, _t]],
1176
1176
  [
1177
1177
  /(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,
1178
1178
  // Windows IoT/Mobile/Phone
@@ -1184,7 +1184,7 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
1184
1184
  /windows nt ?([\d\.\)]*)(?!.+xbox)/i,
1185
1185
  /\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i
1186
1186
  ],
1187
- [[u, /(;|\))/g, "", B, Dt], [c, at]],
1187
+ [[u, /(;|\))/g, "", B, _t], [c, ot]],
1188
1188
  [
1189
1189
  /(windows ce)\/?([\d\.]*)/i
1190
1190
  // Windows CE
@@ -1210,27 +1210,27 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
1210
1210
  /android ([\d\.]+).*crkey/i
1211
1211
  // Google Chromecast, Android-based
1212
1212
  ],
1213
- [u, [c, Q + " Android"]],
1213
+ [u, [c, Z + " Android"]],
1214
1214
  [
1215
1215
  /fuchsia.*crkey\/([\d\.]+)/i
1216
1216
  // Google Chromecast, Fuchsia-based
1217
1217
  ],
1218
- [u, [c, Q + " Fuchsia"]],
1218
+ [u, [c, Z + " Fuchsia"]],
1219
1219
  [
1220
1220
  /crkey\/([\d\.]+).*devicetype\/smartspeaker/i
1221
1221
  // Google Chromecast, Linux-based Smart Speaker
1222
1222
  ],
1223
- [u, [c, Q + " SmartSpeaker"]],
1223
+ [u, [c, Z + " SmartSpeaker"]],
1224
1224
  [
1225
1225
  /linux.*crkey\/([\d\.]+)/i
1226
1226
  // Google Chromecast, Legacy Linux-based
1227
1227
  ],
1228
- [u, [c, Q + " Linux"]],
1228
+ [u, [c, Z + " Linux"]],
1229
1229
  [
1230
1230
  /crkey\/([\d\.]+)/i
1231
1231
  // Google Chromecast, unknown
1232
1232
  ],
1233
- [u, [c, Q]],
1233
+ [u, [c, Z]],
1234
1234
  [
1235
1235
  // Mobile OSes
1236
1236
  /droid ([\w\.]+)\b.+(android[- ]x86)/i
@@ -1263,7 +1263,7 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
1263
1263
  /mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i
1264
1264
  // Firefox OS
1265
1265
  ],
1266
- [u, [c, Se + " OS"]],
1266
+ [u, [c, ve + " OS"]],
1267
1267
  [
1268
1268
  /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,
1269
1269
  // WebOS
@@ -1337,45 +1337,45 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
1337
1337
  ],
1338
1338
  [c, u]
1339
1339
  ]
1340
- }, ze = (function() {
1340
+ }, Fe = (function() {
1341
1341
  var e = { init: {}, isIgnore: {}, isIgnoreRgx: {}, toString: {} };
1342
- return X.call(e.init, [
1343
- [L, [c, u, Re, a]],
1344
- [Y, [F]],
1345
- [q, [a, l, d]],
1346
- [V, [c, u]],
1347
- [H, [c, u]]
1348
- ]), X.call(e.isIgnore, [
1349
- [L, [u, Re]],
1350
- [V, [u]],
1351
- [H, [u]]
1352
- ]), X.call(e.isIgnoreRgx, [
1353
- [L, / ?browser$/i],
1354
- [H, / ?os$/i]
1355
- ]), X.call(e.toString, [
1356
- [L, [c, u]],
1357
- [Y, [F]],
1358
- [q, [d, l]],
1359
- [V, [c, u]],
1360
- [H, [c, u]]
1342
+ return G.call(e.init, [
1343
+ [F, [c, u, Ie, a]],
1344
+ [X, [P]],
1345
+ [j, [a, l, d]],
1346
+ [W, [c, u]],
1347
+ [U, [c, u]]
1348
+ ]), G.call(e.isIgnore, [
1349
+ [F, [u, Ie]],
1350
+ [W, [u]],
1351
+ [U, [u]]
1352
+ ]), G.call(e.isIgnoreRgx, [
1353
+ [F, / ?browser$/i],
1354
+ [U, / ?os$/i]
1355
+ ]), G.call(e.toString, [
1356
+ [F, [c, u]],
1357
+ [X, [P]],
1358
+ [j, [d, l]],
1359
+ [W, [c, u]],
1360
+ [U, [c, u]]
1361
1361
  ]), e;
1362
- })(), Li = function(e, t) {
1363
- var i = ze.init[t], n = ze.isIgnore[t] || 0, o = ze.isIgnoreRgx[t] || 0, s = ze.toString[t] || 0;
1362
+ })(), Fi = function(e, t) {
1363
+ var i = Fe.init[t], n = Fe.isIgnore[t] || 0, o = Fe.isIgnoreRgx[t] || 0, s = Fe.toString[t] || 0;
1364
1364
  function r() {
1365
- X.call(this, i);
1365
+ G.call(this, i);
1366
1366
  }
1367
1367
  return r.prototype.getItem = function() {
1368
1368
  return e;
1369
1369
  }, r.prototype.withClientHints = function() {
1370
- return le ? le.getHighEntropyValues(Qt).then(function(h) {
1371
- return e.setCH(new Jt(h, !1)).parseCH().get();
1370
+ return se ? se.getHighEntropyValues(Zt).then(function(h) {
1371
+ return e.setCH(new Kt(h, !1)).parseCH().get();
1372
1372
  }) : e.parseCH().get();
1373
1373
  }, r.prototype.withFeatureCheck = function() {
1374
1374
  return e.detectFeature().get();
1375
- }, t != we && (r.prototype.is = function(h) {
1375
+ }, t != ge && (r.prototype.is = function(h) {
1376
1376
  var f = !1;
1377
- for (var g in this)
1378
- if (this.hasOwnProperty(g) && !lt(n, g) && J(o ? ye(o, this[g]) : this[g]) == J(o ? ye(o, h) : h)) {
1377
+ for (var b in this)
1378
+ if (this.hasOwnProperty(b) && !st(n, b) && K(o ? we(o, this[b]) : this[b]) == K(o ? we(o, h) : h)) {
1379
1379
  if (f = !0, h != E.UNDEFINED) break;
1380
1380
  } else if (h == E.UNDEFINED && f) {
1381
1381
  f = !f;
@@ -1383,49 +1383,49 @@ var Si = "2.0.7", Ci = 500, Ct = "user-agent", ge = "", Et = "?", E = {
1383
1383
  }
1384
1384
  return f;
1385
1385
  }, r.prototype.toString = function() {
1386
- var h = ge;
1386
+ var h = pe;
1387
1387
  for (var f in s)
1388
- typeof this[s[f]] !== E.UNDEFINED && (h += (h ? " " : ge) + this[s[f]]);
1388
+ typeof this[s[f]] !== E.UNDEFINED && (h += (h ? " " : pe) + this[s[f]]);
1389
1389
  return h || E.UNDEFINED;
1390
1390
  }), r.prototype.then = function(h) {
1391
- var f = this, g = function() {
1391
+ var f = this, b = function() {
1392
1392
  for (var k in f)
1393
1393
  f.hasOwnProperty(k) && (this[k] = f[k]);
1394
1394
  };
1395
- g.prototype = {
1395
+ b.prototype = {
1396
1396
  is: r.prototype.is,
1397
1397
  toString: r.prototype.toString,
1398
1398
  withClientHints: r.prototype.withClientHints,
1399
1399
  withFeatureCheck: r.prototype.withFeatureCheck
1400
1400
  };
1401
- var m = new g();
1401
+ var m = new b();
1402
1402
  return h(m), m;
1403
1403
  }, new r();
1404
1404
  };
1405
- function Jt(e, t) {
1406
- if (e = e || {}, X.call(this, Qt), t)
1407
- X.call(this, [
1408
- [ht, nt(e[te])],
1409
- [ft, nt(e[Ei])],
1410
- [w, /\?1/.test(e[Ai])],
1411
- [l, Ie(e[Oi])],
1412
- [me, Ie(e[Kt])],
1413
- [pt, Ie(e[Mi])],
1414
- [F, Ie(e[Ii])],
1415
- [ae, nt(e[Ri])],
1416
- [qe, Ie(e[Ti])]
1405
+ function Kt(e, t) {
1406
+ if (e = e || {}, G.call(this, Zt), t)
1407
+ G.call(this, [
1408
+ [dt, tt(e[te])],
1409
+ [ut, tt(e[Ei])],
1410
+ [w, /\?1/.test(e[Mi])],
1411
+ [l, Ce(e[Oi])],
1412
+ [be, Ce(e[Qt])],
1413
+ [ht, Ce(e[Ai])],
1414
+ [P, Ce(e[Ii])],
1415
+ [oe, tt(e[Ri])],
1416
+ [We, Ce(e[Ti])]
1417
1417
  ]);
1418
1418
  else
1419
1419
  for (var i in e)
1420
1420
  this.hasOwnProperty(i) && typeof e[i] !== E.UNDEFINED && (this[i] = e[i]);
1421
1421
  }
1422
1422
  function ee(e, t, i, n) {
1423
- return X.call(this, [
1423
+ return G.call(this, [
1424
1424
  ["itemType", e],
1425
1425
  ["ua", t],
1426
1426
  ["uaCH", n],
1427
1427
  ["rgxMap", i],
1428
- ["data", Li(this, e)]
1428
+ ["data", Fi(this, e)]
1429
1429
  ]), this;
1430
1430
  }
1431
1431
  ee.prototype.get = function(e) {
@@ -1438,31 +1438,31 @@ ee.prototype.setCH = function(e) {
1438
1438
  return this.uaCH = e, this;
1439
1439
  };
1440
1440
  ee.prototype.detectFeature = function() {
1441
- if (_ && _.userAgent == this.ua)
1441
+ if (D && D.userAgent == this.ua)
1442
1442
  switch (this.itemType) {
1443
- case L:
1444
- _.brave && typeof _.brave.isBrave == E.FUNCTION && this.set(c, "Brave");
1443
+ case F:
1444
+ D.brave && typeof D.brave.isBrave == E.FUNCTION && this.set(c, "Brave");
1445
1445
  break;
1446
- case q:
1447
- !this.get(a) && le && le[w] && this.set(a, w), this.get(l) == "Macintosh" && _ && typeof _.standalone !== E.UNDEFINED && _.maxTouchPoints && _.maxTouchPoints > 2 && this.set(l, "iPad").set(a, v);
1446
+ case j:
1447
+ !this.get(a) && se && se[w] && this.set(a, w), this.get(l) == "Macintosh" && D && typeof D.standalone !== E.UNDEFINED && D.maxTouchPoints && D.maxTouchPoints > 2 && this.set(l, "iPad").set(a, v);
1448
1448
  break;
1449
- case H:
1450
- !this.get(c) && le && le[me] && this.set(c, le[me]);
1449
+ case U:
1450
+ !this.get(c) && se && se[be] && this.set(c, se[be]);
1451
1451
  break;
1452
- case we:
1452
+ case ge:
1453
1453
  var e = this.data, t = function(i) {
1454
1454
  return e[i].getItem().detectFeature().get();
1455
1455
  };
1456
- this.set(L, t(L)).set(Y, t(Y)).set(q, t(q)).set(V, t(V)).set(H, t(H));
1456
+ this.set(F, t(F)).set(X, t(X)).set(j, t(j)).set(W, t(W)).set(U, t(U));
1457
1457
  }
1458
1458
  return this;
1459
1459
  };
1460
1460
  ee.prototype.parseUA = function() {
1461
- switch (this.itemType != we && dt.call(this.data, this.ua, this.rgxMap), this.itemType) {
1462
- case L:
1463
- this.set(Re, ct(this.get(u)));
1461
+ switch (this.itemType != ge && lt.call(this.data, this.ua, this.rgxMap), this.itemType) {
1462
+ case F:
1463
+ this.set(Ie, at(this.get(u)));
1464
1464
  break;
1465
- case H:
1465
+ case U:
1466
1466
  if (this.get(c) == "iOS" && this.get(u) == "18.6") {
1467
1467
  var e = /\) Version\/([\d\.]+)/.exec(this.ua);
1468
1468
  e && parseInt(e[1].substring(0, 2), 10) >= 26 && this.set(u, e[1]);
@@ -1474,52 +1474,52 @@ ee.prototype.parseUA = function() {
1474
1474
  ee.prototype.parseCH = function() {
1475
1475
  var e = this.uaCH, t = this.rgxMap;
1476
1476
  switch (this.itemType) {
1477
- case L:
1478
- case V:
1479
- var i = e[ft] || e[ht], n;
1477
+ case F:
1478
+ case W:
1479
+ var i = e[ut] || e[dt], n;
1480
1480
  if (i)
1481
1481
  for (var o = 0; o < i.length; o++) {
1482
1482
  var s = i[o].brand || i[o], r = i[o].version;
1483
- this.itemType == L && !/not.a.brand/i.test(s) && (!n || /Chrom/.test(n) && s != _t || n == He && /WebView2/.test(s)) && (s = B(s, _i), n = this.get(c), n && !/Chrom/.test(n) && /Chrom/.test(s) || this.set(c, s).set(u, r).set(Re, ct(r)), n = s), this.itemType == V && s == _t && this.set(u, r);
1483
+ this.itemType == F && !/not.a.brand/i.test(s) && (!n || /Chrom/.test(n) && s != Dt || n == ze && /WebView2/.test(s)) && (s = B(s, Di), n = this.get(c), n && !/Chrom/.test(n) && /Chrom/.test(s) || this.set(c, s).set(u, r).set(Ie, at(r)), n = s), this.itemType == W && s == Dt && this.set(u, r);
1484
1484
  }
1485
1485
  break;
1486
- case Y:
1487
- var h = e[F];
1488
- h && (h && e[qe] == "64" && (h += "64"), dt.call(this.data, h + ";", t));
1486
+ case X:
1487
+ var h = e[P];
1488
+ h && (h && e[We] == "64" && (h += "64"), lt.call(this.data, h + ";", t));
1489
1489
  break;
1490
- case q:
1490
+ case j:
1491
1491
  if (e[w] && this.set(a, w), e[l] && (this.set(l, e[l]), !this.get(a) || !this.get(d))) {
1492
1492
  var f = {};
1493
- dt.call(f, "droid 9; " + e[l] + ")", t), !this.get(a) && f.type && this.set(a, f.type), !this.get(d) && f.vendor && this.set(d, f.vendor);
1493
+ lt.call(f, "droid 9; " + e[l] + ")", t), !this.get(a) && f.type && this.set(a, f.type), !this.get(d) && f.vendor && this.set(d, f.vendor);
1494
1494
  }
1495
- if (e[ae]) {
1496
- var g;
1497
- if (typeof e[ae] != "string")
1498
- for (var m = 0; !g && m < e[ae].length; )
1499
- g = B(e[ae][m++], zt);
1495
+ if (e[oe]) {
1496
+ var b;
1497
+ if (typeof e[oe] != "string")
1498
+ for (var m = 0; !b && m < e[oe].length; )
1499
+ b = B(e[oe][m++], zt);
1500
1500
  else
1501
- g = B(e[ae], zt);
1502
- this.set(a, g);
1501
+ b = B(e[oe], zt);
1502
+ this.set(a, b);
1503
1503
  }
1504
1504
  break;
1505
- case H:
1506
- var k = e[me];
1505
+ case U:
1506
+ var k = e[be];
1507
1507
  if (k) {
1508
- var R = e[pt];
1509
- k == at && (R = parseInt(ct(R), 10) >= 13 ? "11" : "10"), this.set(c, k).set(u, R);
1508
+ var R = e[ht];
1509
+ k == ot && (R = parseInt(at(R), 10) >= 13 ? "11" : "10"), this.set(c, k).set(u, R);
1510
1510
  }
1511
- this.get(c) == at && e[l] == "Xbox" && this.set(c, "Xbox").set(u, void 0);
1511
+ this.get(c) == ot && e[l] == "Xbox" && this.set(c, "Xbox").set(u, void 0);
1512
1512
  break;
1513
- case we:
1513
+ case ge:
1514
1514
  var $ = this.data, O = function(y) {
1515
1515
  return $[y].getItem().setCH(e).parseCH().get();
1516
1516
  };
1517
- this.set(L, O(L)).set(Y, O(Y)).set(q, O(q)).set(V, O(V)).set(H, O(H));
1517
+ this.set(F, O(F)).set(X, O(X)).set(j, O(j)).set(W, O(W)).set(U, O(U));
1518
1518
  }
1519
1519
  return this;
1520
1520
  };
1521
- function K(e, t, i) {
1522
- if (typeof e === E.OBJECT ? ($e(e, !0) ? (typeof t === E.OBJECT && (i = t), t = e) : (i = e, t = void 0), e = void 0) : typeof e === E.STRING && !$e(t, !0) && (i = t, t = void 0), i)
1521
+ function Y(e, t, i) {
1522
+ if (typeof e === E.OBJECT ? (He(e, !0) ? (typeof t === E.OBJECT && (i = t), t = e) : (i = e, t = void 0), e = void 0) : typeof e === E.STRING && !He(t, !0) && (i = t, t = void 0), i)
1523
1523
  if (typeof i.append === E.FUNCTION) {
1524
1524
  var n = {};
1525
1525
  i.forEach(function(m, k) {
@@ -1531,46 +1531,46 @@ function K(e, t, i) {
1531
1531
  i.hasOwnProperty(s) && (o[String(s).toLowerCase()] = i[s]);
1532
1532
  i = o;
1533
1533
  }
1534
- if (!(this instanceof K))
1535
- return new K(e, t, i).getResult();
1534
+ if (!(this instanceof Y))
1535
+ return new Y(e, t, i).getResult();
1536
1536
  var r = typeof e === E.STRING ? e : (
1537
1537
  // Passed user-agent string
1538
1538
  i && i[Ct] ? i[Ct] : (
1539
1539
  // User-Agent from passed headers
1540
- _ && _.userAgent ? _.userAgent : (
1540
+ D && D.userAgent ? D.userAgent : (
1541
1541
  // navigator.userAgent
1542
- ge
1542
+ pe
1543
1543
  )
1544
1544
  )
1545
- ), h = new Jt(i, !0), f = t ? Pi(Ut, t) : Ut, g = function(m) {
1546
- return m == we ? function() {
1547
- return new ee(m, r, f, h).set("ua", r).set(L, this.getBrowser()).set(Y, this.getCPU()).set(q, this.getDevice()).set(V, this.getEngine()).set(H, this.getOS()).get();
1545
+ ), h = new Kt(i, !0), f = t ? Li(Ht, t) : Ht, b = function(m) {
1546
+ return m == ge ? function() {
1547
+ return new ee(m, r, f, h).set("ua", r).set(F, this.getBrowser()).set(X, this.getCPU()).set(j, this.getDevice()).set(W, this.getEngine()).set(U, this.getOS()).get();
1548
1548
  } : function() {
1549
1549
  return new ee(m, r, f[m], h).parseUA().get();
1550
1550
  };
1551
1551
  };
1552
- return X.call(this, [
1553
- ["getBrowser", g(L)],
1554
- ["getCPU", g(Y)],
1555
- ["getDevice", g(q)],
1556
- ["getEngine", g(V)],
1557
- ["getOS", g(H)],
1558
- ["getResult", g(we)],
1552
+ return G.call(this, [
1553
+ ["getBrowser", b(F)],
1554
+ ["getCPU", b(X)],
1555
+ ["getDevice", b(j)],
1556
+ ["getEngine", b(W)],
1557
+ ["getOS", b(U)],
1558
+ ["getResult", b(ge)],
1559
1559
  ["getUA", function() {
1560
1560
  return r;
1561
1561
  }],
1562
1562
  ["setUA", function(m) {
1563
- return Ae(m) && (r = Be(m, Ci)), this;
1563
+ return Te(m) && (r = Ue(m, Ci)), this;
1564
1564
  }]
1565
1565
  ]).setUA(r), this;
1566
1566
  }
1567
- K.VERSION = Si;
1568
- K.BROWSER = Ne([c, u, Re, a]);
1569
- K.CPU = Ne([F]);
1570
- K.DEVICE = Ne([l, d, a, Ue, w, I, v, W, Te]);
1571
- K.ENGINE = K.OS = Ne([c, u]);
1572
- const Zt = () => {
1573
- const t = new K().getResult();
1567
+ Y.VERSION = Si;
1568
+ Y.BROWSER = Ve([c, u, Ie, a]);
1569
+ Y.CPU = Ve([P]);
1570
+ Y.DEVICE = Ve([l, d, a, _e, w, I, v, V, Ee]);
1571
+ Y.ENGINE = Y.OS = Ve([c, u]);
1572
+ const Jt = () => {
1573
+ const t = new Y().getResult();
1574
1574
  return {
1575
1575
  os: t.os.name || "unknown",
1576
1576
  osVersion: t.os.version || "unknown",
@@ -1580,7 +1580,7 @@ const Zt = () => {
1580
1580
  // Default to desktop if empty (common for desktop browsers)
1581
1581
  };
1582
1582
  };
1583
- function Di(e, t) {
1583
+ function _i(e, t) {
1584
1584
  if (e.match(/^[a-z]+:\/\//i))
1585
1585
  return e;
1586
1586
  if (e.match(/^\/\//))
@@ -1598,30 +1598,30 @@ const zi = /* @__PURE__ */ (() => {
1598
1598
  );
1599
1599
  return () => (e += 1, `u${t()}${e}`);
1600
1600
  })();
1601
- function Z(e) {
1601
+ function J(e) {
1602
1602
  const t = [];
1603
1603
  for (let i = 0, n = e.length; i < n; i++)
1604
1604
  t.push(e[i]);
1605
1605
  return t;
1606
1606
  }
1607
- let pe = null;
1607
+ let he = null;
1608
1608
  function ei(e = {}) {
1609
- return pe || (e.includeStyleProperties ? (pe = e.includeStyleProperties, pe) : (pe = Z(window.getComputedStyle(document.documentElement)), pe));
1609
+ return he || (e.includeStyleProperties ? (he = e.includeStyleProperties, he) : (he = J(window.getComputedStyle(document.documentElement)), he));
1610
1610
  }
1611
- function Ve(e, t) {
1611
+ function $e(e, t) {
1612
1612
  const n = (e.ownerDocument.defaultView || window).getComputedStyle(e).getPropertyValue(t);
1613
1613
  return n ? parseFloat(n.replace("px", "")) : 0;
1614
1614
  }
1615
- function Ui(e) {
1616
- const t = Ve(e, "border-left-width"), i = Ve(e, "border-right-width");
1615
+ function Hi(e) {
1616
+ const t = $e(e, "border-left-width"), i = $e(e, "border-right-width");
1617
1617
  return e.clientWidth + t + i;
1618
1618
  }
1619
- function Hi(e) {
1620
- const t = Ve(e, "border-top-width"), i = Ve(e, "border-bottom-width");
1619
+ function Ui(e) {
1620
+ const t = $e(e, "border-top-width"), i = $e(e, "border-bottom-width");
1621
1621
  return e.clientHeight + t + i;
1622
1622
  }
1623
1623
  function ti(e, t = {}) {
1624
- const i = t.width || Ui(e), n = t.height || Hi(e);
1624
+ const i = t.width || Hi(e), n = t.height || Ui(e);
1625
1625
  return { width: i, height: n };
1626
1626
  }
1627
1627
  function $i() {
@@ -1633,11 +1633,11 @@ function $i() {
1633
1633
  const i = t && t.env ? t.env.devicePixelRatio : null;
1634
1634
  return i && (e = parseInt(i, 10), Number.isNaN(e) && (e = 1)), e || window.devicePixelRatio || 1;
1635
1635
  }
1636
- const U = 16384;
1636
+ const H = 16384;
1637
1637
  function Bi(e) {
1638
- (e.width > U || e.height > U) && (e.width > U && e.height > U ? e.width > e.height ? (e.height *= U / e.width, e.width = U) : (e.width *= U / e.height, e.height = U) : e.width > U ? (e.height *= U / e.width, e.width = U) : (e.width *= U / e.height, e.height = U));
1638
+ (e.width > H || e.height > H) && (e.width > H && e.height > H ? e.width > e.height ? (e.height *= H / e.width, e.width = H) : (e.width *= H / e.height, e.height = H) : e.width > H ? (e.height *= H / e.width, e.width = H) : (e.width *= H / e.height, e.height = H));
1639
1639
  }
1640
- function We(e) {
1640
+ function Be(e) {
1641
1641
  return new Promise((t, i) => {
1642
1642
  const n = new Image();
1643
1643
  n.onload = () => {
@@ -1647,20 +1647,20 @@ function We(e) {
1647
1647
  }, n.onerror = i, n.crossOrigin = "anonymous", n.decoding = "async", n.src = e;
1648
1648
  });
1649
1649
  }
1650
- async function Vi(e) {
1650
+ async function Wi(e) {
1651
1651
  return Promise.resolve().then(() => new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then((t) => `data:image/svg+xml;charset=utf-8,${t}`);
1652
1652
  }
1653
- async function Wi(e, t, i) {
1653
+ async function Vi(e, t, i) {
1654
1654
  const n = "http://www.w3.org/2000/svg", o = document.createElementNS(n, "svg"), s = document.createElementNS(n, "foreignObject");
1655
- return o.setAttribute("width", `${t}`), o.setAttribute("height", `${i}`), o.setAttribute("viewBox", `0 0 ${t} ${i}`), s.setAttribute("width", "100%"), s.setAttribute("height", "100%"), s.setAttribute("x", "0"), s.setAttribute("y", "0"), s.setAttribute("externalResourcesRequired", "true"), o.appendChild(s), s.appendChild(e), Vi(o);
1655
+ return o.setAttribute("width", `${t}`), o.setAttribute("height", `${i}`), o.setAttribute("viewBox", `0 0 ${t} ${i}`), s.setAttribute("width", "100%"), s.setAttribute("height", "100%"), s.setAttribute("x", "0"), s.setAttribute("y", "0"), s.setAttribute("externalResourcesRequired", "true"), o.appendChild(s), s.appendChild(e), Wi(o);
1656
1656
  }
1657
- const D = (e, t) => {
1657
+ const _ = (e, t) => {
1658
1658
  if (e instanceof t)
1659
1659
  return !0;
1660
1660
  const i = Object.getPrototypeOf(e);
1661
- return i === null ? !1 : i.constructor.name === t.name || D(i, t);
1661
+ return i === null ? !1 : i.constructor.name === t.name || _(i, t);
1662
1662
  };
1663
- function qi(e) {
1663
+ function ji(e) {
1664
1664
  const t = e.getPropertyValue("content");
1665
1665
  return `${e.cssText} content: '${t.replace(/'|"/g, "")}';`;
1666
1666
  }
@@ -1670,11 +1670,11 @@ function Ni(e, t) {
1670
1670
  return `${i}: ${n}${o ? " !important" : ""};`;
1671
1671
  }).join(" ");
1672
1672
  }
1673
- function ji(e, t, i, n) {
1674
- const o = `.${e}:${t}`, s = i.cssText ? qi(i) : Ni(i, n);
1673
+ function qi(e, t, i, n) {
1674
+ const o = `.${e}:${t}`, s = i.cssText ? ji(i) : Ni(i, n);
1675
1675
  return document.createTextNode(`${o}{${s}}`);
1676
1676
  }
1677
- function Ht(e, t, i, n) {
1677
+ function Ut(e, t, i, n) {
1678
1678
  const o = window.getComputedStyle(e, i), s = o.getPropertyValue("content");
1679
1679
  if (s === "" || s === "none")
1680
1680
  return;
@@ -1685,10 +1685,10 @@ function Ht(e, t, i, n) {
1685
1685
  return;
1686
1686
  }
1687
1687
  const h = document.createElement("style");
1688
- h.appendChild(ji(r, i, o, n)), t.appendChild(h);
1688
+ h.appendChild(qi(r, i, o, n)), t.appendChild(h);
1689
1689
  }
1690
1690
  function Gi(e, t, i) {
1691
- Ht(e, t, ":before", i), Ht(e, t, ":after", i);
1691
+ Ut(e, t, ":before", i), Ut(e, t, ":after", i);
1692
1692
  }
1693
1693
  const $t = "application/font-woff", Bt = "image/jpeg", Xi = {
1694
1694
  woff: $t,
@@ -1707,17 +1707,17 @@ function Yi(e) {
1707
1707
  const t = /\.([^./]*?)$/g.exec(e);
1708
1708
  return t ? t[1] : "";
1709
1709
  }
1710
- function bt(e) {
1710
+ function ft(e) {
1711
1711
  const t = Yi(e).toLowerCase();
1712
1712
  return Xi[t] || "";
1713
1713
  }
1714
- function Ki(e) {
1714
+ function Qi(e) {
1715
1715
  return e.split(/,/)[1];
1716
1716
  }
1717
- function ut(e) {
1717
+ function ct(e) {
1718
1718
  return e.search(/^(data:)/) !== -1;
1719
1719
  }
1720
- function Qi(e, t) {
1720
+ function Zi(e, t) {
1721
1721
  return `data:${t};base64,${e}`;
1722
1722
  }
1723
1723
  async function ii(e, t, i) {
@@ -1736,40 +1736,40 @@ async function ii(e, t, i) {
1736
1736
  }, h.readAsDataURL(o);
1737
1737
  });
1738
1738
  }
1739
- const rt = {};
1740
- function Ji(e, t, i) {
1739
+ const it = {};
1740
+ function Ki(e, t, i) {
1741
1741
  let n = e.replace(/\?.*/, "");
1742
1742
  return i && (n = e), /ttf|otf|eot|woff2?/i.test(n) && (n = n.replace(/.*\//, "")), t ? `[${t}]${n}` : n;
1743
1743
  }
1744
- async function gt(e, t, i) {
1745
- const n = Ji(e, t, i.includeQueryParams);
1746
- if (rt[n] != null)
1747
- return rt[n];
1744
+ async function pt(e, t, i) {
1745
+ const n = Ki(e, t, i.includeQueryParams);
1746
+ if (it[n] != null)
1747
+ return it[n];
1748
1748
  i.cacheBust && (e += (/\?/.test(e) ? "&" : "?") + (/* @__PURE__ */ new Date()).getTime());
1749
1749
  let o;
1750
1750
  try {
1751
- const s = await ii(e, i.fetchRequestInit, ({ res: r, result: h }) => (t || (t = r.headers.get("Content-Type") || ""), Ki(h)));
1752
- o = Qi(s, t);
1751
+ const s = await ii(e, i.fetchRequestInit, ({ res: r, result: h }) => (t || (t = r.headers.get("Content-Type") || ""), Qi(h)));
1752
+ o = Zi(s, t);
1753
1753
  } catch (s) {
1754
1754
  o = i.imagePlaceholder || "";
1755
1755
  let r = `Failed to fetch resource: ${e}`;
1756
1756
  s && (r = typeof s == "string" ? s : s.message), r && console.warn(r);
1757
1757
  }
1758
- return rt[n] = o, o;
1758
+ return it[n] = o, o;
1759
1759
  }
1760
- async function Zi(e) {
1760
+ async function Ji(e) {
1761
1761
  const t = e.toDataURL();
1762
- return t === "data:," ? e.cloneNode(!1) : We(t);
1762
+ return t === "data:," ? e.cloneNode(!1) : Be(t);
1763
1763
  }
1764
1764
  async function en(e, t) {
1765
1765
  if (e.currentSrc) {
1766
1766
  const s = document.createElement("canvas"), r = s.getContext("2d");
1767
1767
  s.width = e.clientWidth, s.height = e.clientHeight, r?.drawImage(e, 0, 0, s.width, s.height);
1768
1768
  const h = s.toDataURL();
1769
- return We(h);
1769
+ return Be(h);
1770
1770
  }
1771
- const i = e.poster, n = bt(i), o = await gt(i, n, t);
1772
- return We(o);
1771
+ const i = e.poster, n = ft(i), o = await pt(i, n, t);
1772
+ return Be(o);
1773
1773
  }
1774
1774
  async function tn(e, t) {
1775
1775
  var i;
@@ -1781,7 +1781,7 @@ async function tn(e, t) {
1781
1781
  return e.cloneNode(!1);
1782
1782
  }
1783
1783
  async function nn(e, t) {
1784
- return D(e, HTMLCanvasElement) ? Zi(e) : D(e, HTMLVideoElement) ? en(e, t) : D(e, HTMLIFrameElement) ? tn(e, t) : e.cloneNode(ni(e));
1784
+ return _(e, HTMLCanvasElement) ? Ji(e) : _(e, HTMLVideoElement) ? en(e, t) : _(e, HTMLIFrameElement) ? tn(e, t) : e.cloneNode(ni(e));
1785
1785
  }
1786
1786
  const rn = (e) => e.tagName != null && e.tagName.toUpperCase() === "SLOT", ni = (e) => e.tagName != null && e.tagName.toUpperCase() === "SVG";
1787
1787
  async function on(e, t, i) {
@@ -1789,7 +1789,7 @@ async function on(e, t, i) {
1789
1789
  if (ni(t))
1790
1790
  return t;
1791
1791
  let s = [];
1792
- return rn(e) && e.assignedNodes ? s = Z(e.assignedNodes()) : D(e, HTMLIFrameElement) && (!((n = e.contentDocument) === null || n === void 0) && n.body) ? s = Z(e.contentDocument.body.childNodes) : s = Z(((o = e.shadowRoot) !== null && o !== void 0 ? o : e).childNodes), s.length === 0 || D(e, HTMLVideoElement) || await s.reduce((r, h) => r.then(() => je(h, i)).then((f) => {
1792
+ return rn(e) && e.assignedNodes ? s = J(e.assignedNodes()) : _(e, HTMLIFrameElement) && (!((n = e.contentDocument) === null || n === void 0) && n.body) ? s = J(e.contentDocument.body.childNodes) : s = J(((o = e.shadowRoot) !== null && o !== void 0 ? o : e).childNodes), s.length === 0 || _(e, HTMLVideoElement) || await s.reduce((r, h) => r.then(() => je(h, i)).then((f) => {
1793
1793
  f && t.appendChild(f);
1794
1794
  }), Promise.resolve()), t;
1795
1795
  }
@@ -1800,20 +1800,20 @@ function sn(e, t, i) {
1800
1800
  const o = window.getComputedStyle(e);
1801
1801
  o.cssText ? (n.cssText = o.cssText, n.transformOrigin = o.transformOrigin) : ei(i).forEach((s) => {
1802
1802
  let r = o.getPropertyValue(s);
1803
- s === "font-size" && r.endsWith("px") && (r = `${Math.floor(parseFloat(r.substring(0, r.length - 2))) - 0.1}px`), D(e, HTMLIFrameElement) && s === "display" && r === "inline" && (r = "block"), s === "d" && t.getAttribute("d") && (r = `path(${t.getAttribute("d")})`), n.setProperty(s, r, o.getPropertyPriority(s));
1803
+ s === "font-size" && r.endsWith("px") && (r = `${Math.floor(parseFloat(r.substring(0, r.length - 2))) - 0.1}px`), _(e, HTMLIFrameElement) && s === "display" && r === "inline" && (r = "block"), s === "d" && t.getAttribute("d") && (r = `path(${t.getAttribute("d")})`), n.setProperty(s, r, o.getPropertyPriority(s));
1804
1804
  });
1805
1805
  }
1806
1806
  function an(e, t) {
1807
- D(e, HTMLTextAreaElement) && (t.innerHTML = e.value), D(e, HTMLInputElement) && t.setAttribute("value", e.value);
1807
+ _(e, HTMLTextAreaElement) && (t.innerHTML = e.value), _(e, HTMLInputElement) && t.setAttribute("value", e.value);
1808
1808
  }
1809
1809
  function ln(e, t) {
1810
- if (D(e, HTMLSelectElement)) {
1810
+ if (_(e, HTMLSelectElement)) {
1811
1811
  const n = Array.from(t.children).find((o) => e.value === o.getAttribute("value"));
1812
1812
  n && n.setAttribute("selected", "");
1813
1813
  }
1814
1814
  }
1815
1815
  function cn(e, t, i) {
1816
- return D(t, Element) && (sn(e, t, i), Gi(e, t, i), an(e, t), ln(e, t)), t;
1816
+ return _(t, Element) && (sn(e, t, i), Gi(e, t, i), an(e, t), ln(e, t)), t;
1817
1817
  }
1818
1818
  async function dn(e, t) {
1819
1819
  const i = e.querySelectorAll ? e.querySelectorAll("use") : [];
@@ -1823,8 +1823,8 @@ async function dn(e, t) {
1823
1823
  for (let s = 0; s < i.length; s++) {
1824
1824
  const h = i[s].getAttribute("xlink:href");
1825
1825
  if (h) {
1826
- const f = e.querySelector(h), g = document.querySelector(h);
1827
- !f && g && !n[h] && (n[h] = await je(g, t, !0));
1826
+ const f = e.querySelector(h), b = document.querySelector(h);
1827
+ !f && b && !n[h] && (n[h] = await je(b, t, !0));
1828
1828
  }
1829
1829
  }
1830
1830
  const o = Object.values(n);
@@ -1849,18 +1849,18 @@ function fn(e) {
1849
1849
  }
1850
1850
  function pn(e) {
1851
1851
  const t = [];
1852
- return e.replace(ri, (i, n, o) => (t.push(o), i)), t.filter((i) => !ut(i));
1852
+ return e.replace(ri, (i, n, o) => (t.push(o), i)), t.filter((i) => !ct(i));
1853
1853
  }
1854
- async function bn(e, t, i, n, o) {
1854
+ async function gn(e, t, i, n, o) {
1855
1855
  try {
1856
- const s = i ? Di(t, i) : t, r = bt(t);
1856
+ const s = i ? _i(t, i) : t, r = ft(t);
1857
1857
  let h;
1858
- return o || (h = await gt(s, r, n)), e.replace(fn(t), `$1${h}$3`);
1858
+ return o || (h = await pt(s, r, n)), e.replace(fn(t), `$1${h}$3`);
1859
1859
  } catch {
1860
1860
  }
1861
1861
  return e;
1862
1862
  }
1863
- function gn(e, { preferredFontFormat: t }) {
1863
+ function bn(e, { preferredFontFormat: t }) {
1864
1864
  return t ? e.replace(hn, (i) => {
1865
1865
  for (; ; ) {
1866
1866
  const [n, , o] = un.exec(i) || [];
@@ -1877,10 +1877,10 @@ function oi(e) {
1877
1877
  async function si(e, t, i) {
1878
1878
  if (!oi(e))
1879
1879
  return e;
1880
- const n = gn(e, i);
1881
- return pn(n).reduce((s, r) => s.then((h) => bn(h, r, t, i)), Promise.resolve(n));
1880
+ const n = bn(e, i);
1881
+ return pn(n).reduce((s, r) => s.then((h) => gn(h, r, t, i)), Promise.resolve(n));
1882
1882
  }
1883
- async function be(e, t, i) {
1883
+ async function fe(e, t, i) {
1884
1884
  var n;
1885
1885
  const o = (n = t.style) === null || n === void 0 ? void 0 : n.getPropertyValue(e);
1886
1886
  if (o) {
@@ -1890,13 +1890,13 @@ async function be(e, t, i) {
1890
1890
  return !1;
1891
1891
  }
1892
1892
  async function wn(e, t) {
1893
- await be("background", e, t) || await be("background-image", e, t), await be("mask", e, t) || await be("-webkit-mask", e, t) || await be("mask-image", e, t) || await be("-webkit-mask-image", e, t);
1893
+ await fe("background", e, t) || await fe("background-image", e, t), await fe("mask", e, t) || await fe("-webkit-mask", e, t) || await fe("mask-image", e, t) || await fe("-webkit-mask-image", e, t);
1894
1894
  }
1895
1895
  async function mn(e, t) {
1896
- const i = D(e, HTMLImageElement);
1897
- if (!(i && !ut(e.src)) && !(D(e, SVGImageElement) && !ut(e.href.baseVal)))
1896
+ const i = _(e, HTMLImageElement);
1897
+ if (!(i && !ct(e.src)) && !(_(e, SVGImageElement) && !ct(e.href.baseVal)))
1898
1898
  return;
1899
- const n = i ? e.src : e.href.baseVal, o = await gt(n, bt(n), t);
1899
+ const n = i ? e.src : e.href.baseVal, o = await pt(n, ft(n), t);
1900
1900
  await new Promise((s, r) => {
1901
1901
  const f = [new Promise((m) => {
1902
1902
  e.onload = m;
@@ -1908,16 +1908,16 @@ async function mn(e, t) {
1908
1908
  r(k);
1909
1909
  }
1910
1910
  } : r;
1911
- const g = e;
1912
- g.loading === "lazy" && (g.loading = "eager"), i ? (e.srcset = "", e.src = o) : e.href.baseVal = o, g.decode && f.push(g.decode().catch()), Promise.all(f).then(s);
1911
+ const b = e;
1912
+ b.loading === "lazy" && (b.loading = "eager"), i ? (e.srcset = "", e.src = o) : e.href.baseVal = o, b.decode && f.push(b.decode().catch()), Promise.all(f).then(s);
1913
1913
  });
1914
1914
  }
1915
1915
  async function yn(e, t) {
1916
- const n = Z(e.childNodes).map((o) => ai(o, t));
1916
+ const n = J(e.childNodes).map((o) => ai(o, t));
1917
1917
  await Promise.all(n).then(() => e);
1918
1918
  }
1919
1919
  async function ai(e, t) {
1920
- D(e, Element) && (await wn(e, t), await mn(e, t), await yn(e, t));
1920
+ _(e, Element) && (await wn(e, t), await mn(e, t), await yn(e, t));
1921
1921
  }
1922
1922
  function xn(e, t) {
1923
1923
  const { style: i } = e;
@@ -1927,15 +1927,15 @@ function xn(e, t) {
1927
1927
  i[o] = n[o];
1928
1928
  }), e;
1929
1929
  }
1930
- const Vt = {};
1931
- async function Wt(e) {
1932
- let t = Vt[e];
1930
+ const Wt = {};
1931
+ async function Vt(e) {
1932
+ let t = Wt[e];
1933
1933
  if (t != null)
1934
1934
  return t;
1935
1935
  const n = await (await fetch(e)).text();
1936
- return t = { url: e, cssText: n }, Vt[e] = t, t;
1936
+ return t = { url: e, cssText: n }, Wt[e] = t, t;
1937
1937
  }
1938
- async function qt(e, t) {
1938
+ async function jt(e, t) {
1939
1939
  let i = e.cssText;
1940
1940
  const n = /url\(["']?([^"')]+)["']?\)/g, s = (i.match(/url\([^)]+\)/g) || []).map(async (r) => {
1941
1941
  let h = r.replace(n, "$1");
@@ -1974,10 +1974,10 @@ async function vn(e, t) {
1974
1974
  return e.forEach((o) => {
1975
1975
  if ("cssRules" in o)
1976
1976
  try {
1977
- Z(o.cssRules || []).forEach((s, r) => {
1977
+ J(o.cssRules || []).forEach((s, r) => {
1978
1978
  if (s.type === CSSRule.IMPORT_RULE) {
1979
1979
  let h = r + 1;
1980
- const f = s.href, g = Wt(f).then((m) => qt(m, t)).then((m) => Nt(m).forEach((k) => {
1980
+ const f = s.href, b = Vt(f).then((m) => jt(m, t)).then((m) => Nt(m).forEach((k) => {
1981
1981
  try {
1982
1982
  o.insertRule(k, k.startsWith("@import") ? h += 1 : o.cssRules.length);
1983
1983
  } catch (R) {
@@ -1989,12 +1989,12 @@ async function vn(e, t) {
1989
1989
  })).catch((m) => {
1990
1990
  console.error("Error loading remote css", m.toString());
1991
1991
  });
1992
- n.push(g);
1992
+ n.push(b);
1993
1993
  }
1994
1994
  });
1995
1995
  } catch (s) {
1996
1996
  const r = e.find((h) => h.href == null) || document.styleSheets[0];
1997
- o.href != null && n.push(Wt(o.href).then((h) => qt(h, t)).then((h) => Nt(h).forEach((f) => {
1997
+ o.href != null && n.push(Vt(o.href).then((h) => jt(h, t)).then((h) => Nt(h).forEach((f) => {
1998
1998
  r.insertRule(f, r.cssRules.length);
1999
1999
  })).catch((h) => {
2000
2000
  console.error("Error loading remote stylesheet", h);
@@ -2003,7 +2003,7 @@ async function vn(e, t) {
2003
2003
  }), Promise.all(n).then(() => (e.forEach((o) => {
2004
2004
  if ("cssRules" in o)
2005
2005
  try {
2006
- Z(o.cssRules || []).forEach((s) => {
2006
+ J(o.cssRules || []).forEach((s) => {
2007
2007
  i.push(s);
2008
2008
  });
2009
2009
  } catch (s) {
@@ -2017,7 +2017,7 @@ function kn(e) {
2017
2017
  async function Sn(e, t) {
2018
2018
  if (e.ownerDocument == null)
2019
2019
  throw new Error("Provided element is not within a Document");
2020
- const i = Z(e.ownerDocument.styleSheets), n = await vn(i, t);
2020
+ const i = J(e.ownerDocument.styleSheets), n = await vn(i, t);
2021
2021
  return kn(n);
2022
2022
  }
2023
2023
  function li(e) {
@@ -2051,81 +2051,80 @@ async function In(e, t) {
2051
2051
  }
2052
2052
  async function Tn(e, t = {}) {
2053
2053
  const { width: i, height: n } = ti(e, t), o = await je(e, t, !0);
2054
- return await In(o, t), await ai(o, t), xn(o, t), await Wi(o, i, n);
2054
+ return await In(o, t), await ai(o, t), xn(o, t), await Vi(o, i, n);
2055
2055
  }
2056
2056
  async function Rn(e, t = {}) {
2057
- const { width: i, height: n } = ti(e, t), o = await Tn(e, t), s = await We(o), r = document.createElement("canvas"), h = r.getContext("2d"), f = t.pixelRatio || $i(), g = t.canvasWidth || i, m = t.canvasHeight || n;
2058
- return r.width = g * f, r.height = m * f, t.skipAutoScale || Bi(r), r.style.width = `${g}`, r.style.height = `${m}`, t.backgroundColor && (h.fillStyle = t.backgroundColor, h.fillRect(0, 0, r.width, r.height)), h.drawImage(s, 0, 0, r.width, r.height), r;
2057
+ const { width: i, height: n } = ti(e, t), o = await Tn(e, t), s = await Be(o), r = document.createElement("canvas"), h = r.getContext("2d"), f = t.pixelRatio || $i(), b = t.canvasWidth || i, m = t.canvasHeight || n;
2058
+ return r.width = b * f, r.height = m * f, t.skipAutoScale || Bi(r), r.style.width = `${b}`, r.style.height = `${m}`, t.backgroundColor && (h.fillStyle = t.backgroundColor, h.fillRect(0, 0, r.width, r.height)), h.drawImage(s, 0, 0, r.width, r.height), r;
2059
2059
  }
2060
- async function An(e, t = {}) {
2060
+ async function Mn(e, t = {}) {
2061
2061
  return (await Rn(e, t)).toDataURL();
2062
2062
  }
2063
2063
  const On = async (e) => {
2064
2064
  let i = 0;
2065
- const { os: n } = Zt(), o = n === "iOS";
2065
+ const { os: n } = Jt(), o = n === "iOS";
2066
2066
  for (; i < 1; )
2067
2067
  try {
2068
- const s = document.documentElement, r = e ? e.x : 0, h = e ? e.y : 0, f = e ? e.width : window.innerWidth, g = e ? e.height : window.innerHeight, m = window.scrollX, k = window.scrollY, R = m + r, $ = k + h;
2069
- return i > 0 && await new Promise((S) => setTimeout(S, 500 * i)), await An(s, {
2068
+ const s = document.documentElement, r = e ? e.x : 0, h = e ? e.y : 0, f = e ? e.width : window.innerWidth, b = e ? e.height : window.innerHeight, m = window.scrollX, k = window.scrollY, R = m + r, $ = k + h;
2069
+ return i > 0 && await new Promise((S) => setTimeout(S, 500 * i)), await Mn(s, {
2070
2070
  quality: 0.9,
2071
2071
  pixelRatio: 1,
2072
2072
  // Disable cacheBust always to prevent breaking signed URLs or static servers
2073
2073
  cacheBust: !1,
2074
2074
  skipAutoScale: !0,
2075
2075
  width: f,
2076
- height: g,
2076
+ height: b,
2077
2077
  canvasWidth: f,
2078
- canvasHeight: g,
2078
+ canvasHeight: b,
2079
2079
  // Disable font embedding on iOS to prevent Safari crashes
2080
2080
  fontEmbedCSS: o || i > 0 ? "" : void 0,
2081
2081
  style: {
2082
2082
  // translate the content to bring the desired area into view (0,0) of the canvas
2083
2083
  transform: `translate(${-R}px, ${-$}px)`
2084
2084
  },
2085
+ // Gray background with white user icon
2086
+ imagePlaceholder: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSIjNmI3MjgwIi8+PHBhdGggZmlsbD0iI2ZmZmZmZiIgZD0iTTEyIDEyYzIuMjEgMCA0LTEuNzkgNC00cy0xLjc5LTQtNC00LTQgMS43OS00IDQgMS43OSA0IDQgNHptMCAyYy0yLjY3IDAtOCAxLjM0LTggNHYyaDE2di0yYzAtMi42Ni01LjMzLTQtOC00eiIvPjwvc3ZnPg==",
2085
2087
  filter: (S) => {
2086
2088
  if (S.nodeName === "IMG") {
2087
- const M = S;
2088
- if (!M.complete || M.naturalWidth === 0)
2089
+ const A = S;
2090
+ if (!A.complete || A.naturalWidth === 0)
2089
2091
  return !1;
2090
2092
  try {
2091
- const A = window.getComputedStyle(M);
2092
- if (A.display === "none" || A.visibility === "hidden" || A.opacity === "0")
2093
+ const M = window.getComputedStyle(A);
2094
+ if (M.display === "none" || M.visibility === "hidden" || M.opacity === "0")
2093
2095
  return !1;
2094
2096
  } catch {
2095
2097
  }
2096
2098
  }
2097
2099
  return !0;
2098
2100
  },
2099
- fetchRequest: async (S, M) => {
2100
- const A = (z) => {
2101
+ fetchRequest: async (S, A) => {
2102
+ const M = (z) => {
2101
2103
  console.warn(`Screenshot: Failed to load/decode image ${S}, using placeholder.`, z);
2102
- const re = atob("iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="), xe = new Uint8Array(re.length);
2103
- for (let oe = 0; oe < re.length; oe++)
2104
- xe[oe] = re.charCodeAt(oe);
2105
- const N = new Blob([xe], { type: "image/png" });
2106
- return new Response(N, {
2104
+ const Q = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24"><rect width="24" height="24" fill="#6b7280"/><path fill="#ffffff" d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>', me = new Blob([Q], { type: "image/svg+xml" });
2105
+ return new Response(me, {
2107
2106
  status: 200,
2108
2107
  statusText: "OK",
2109
- headers: new Headers({ "Content-Type": "image/png" })
2108
+ headers: new Headers({ "Content-Type": "image/svg+xml" })
2110
2109
  });
2111
2110
  };
2112
2111
  try {
2113
- const z = await fetch(S, M);
2112
+ const z = await fetch(S, A);
2114
2113
  if (!z.ok)
2115
2114
  throw new Error(`Failed to fetch ${S}: ${z.status} ${z.statusText}`);
2116
- const ne = await z.blob();
2115
+ const Q = await z.blob();
2117
2116
  try {
2118
- (await createImageBitmap(ne)).close();
2117
+ (await createImageBitmap(Q)).close();
2119
2118
  } catch {
2120
2119
  throw new Error("Image data is invalid or cannot be decoded");
2121
2120
  }
2122
- return new Response(ne, {
2121
+ return new Response(Q, {
2123
2122
  status: 200,
2124
2123
  statusText: "OK",
2125
2124
  headers: z.headers
2126
2125
  });
2127
2126
  } catch (z) {
2128
- return A(z);
2127
+ return M(z);
2129
2128
  }
2130
2129
  }
2131
2130
  });
@@ -2135,18 +2134,18 @@ const On = async (e) => {
2135
2134
  }
2136
2135
  return null;
2137
2136
  };
2138
- const Mn = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Fn = (e) => e.replace(
2137
+ const An = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Pn = (e) => e.replace(
2139
2138
  /^([A-Z])|[\s-_]+(\w)/g,
2140
2139
  (t, i, n) => n ? n.toUpperCase() : i.toLowerCase()
2141
- ), jt = (e) => {
2142
- const t = Fn(e);
2140
+ ), qt = (e) => {
2141
+ const t = Pn(e);
2143
2142
  return t.charAt(0).toUpperCase() + t.slice(1);
2144
- }, ci = (...e) => e.filter((t, i, n) => !!t && t.trim() !== "" && n.indexOf(t) === i).join(" ").trim(), Pn = (e) => {
2143
+ }, ci = (...e) => e.filter((t, i, n) => !!t && t.trim() !== "" && n.indexOf(t) === i).join(" ").trim(), Ln = (e) => {
2145
2144
  for (const t in e)
2146
2145
  if (t.startsWith("aria-") || t === "role" || t === "title")
2147
2146
  return !0;
2148
2147
  };
2149
- var _n = {
2148
+ var Dn = {
2150
2149
  xmlns: "http://www.w3.org/2000/svg",
2151
2150
  width: 24,
2152
2151
  height: 24,
@@ -2157,7 +2156,7 @@ var _n = {
2157
2156
  strokeLinecap: "round",
2158
2157
  strokeLinejoin: "round"
2159
2158
  };
2160
- const Ln = Yt(
2159
+ const Fn = Yt(
2161
2160
  ({
2162
2161
  color: e = "currentColor",
2163
2162
  size: t = 24,
@@ -2167,57 +2166,57 @@ const Ln = Yt(
2167
2166
  children: s,
2168
2167
  iconNode: r,
2169
2168
  ...h
2170
- }, f) => st(
2169
+ }, f) => rt(
2171
2170
  "svg",
2172
2171
  {
2173
2172
  ref: f,
2174
- ..._n,
2173
+ ...Dn,
2175
2174
  width: t,
2176
2175
  height: t,
2177
2176
  stroke: e,
2178
2177
  strokeWidth: n ? Number(i) * 24 / Number(t) : i,
2179
2178
  className: ci("lucide", o),
2180
- ...!s && !Pn(h) && { "aria-hidden": "true" },
2179
+ ...!s && !Ln(h) && { "aria-hidden": "true" },
2181
2180
  ...h
2182
2181
  },
2183
2182
  [
2184
- ...r.map(([g, m]) => st(g, m)),
2183
+ ...r.map(([b, m]) => rt(b, m)),
2185
2184
  ...Array.isArray(s) ? s : [s]
2186
2185
  ]
2187
2186
  )
2188
2187
  );
2189
2188
  const ie = (e, t) => {
2190
2189
  const i = Yt(
2191
- ({ className: n, ...o }, s) => st(Ln, {
2190
+ ({ className: n, ...o }, s) => rt(Fn, {
2192
2191
  ref: s,
2193
2192
  iconNode: t,
2194
2193
  className: ci(
2195
- `lucide-${Mn(jt(e))}`,
2194
+ `lucide-${An(qt(e))}`,
2196
2195
  `lucide-${e}`,
2197
2196
  n
2198
2197
  ),
2199
2198
  ...o
2200
2199
  })
2201
2200
  );
2202
- return i.displayName = jt(e), i;
2201
+ return i.displayName = qt(e), i;
2203
2202
  };
2204
- const Dn = [
2203
+ const _n = [
2205
2204
  ["path", { d: "M6 2v14a2 2 0 0 0 2 2h14", key: "ron5a4" }],
2206
2205
  ["path", { d: "M18 22V8a2 2 0 0 0-2-2H2", key: "7s9ehn" }]
2207
- ], zn = ie("crop", Dn);
2208
- const Un = [
2206
+ ], zn = ie("crop", _n);
2207
+ const Hn = [
2209
2208
  ["line", { x1: "4", x2: "20", y1: "9", y2: "9", key: "4lhtct" }],
2210
2209
  ["line", { x1: "4", x2: "20", y1: "15", y2: "15", key: "vyu0kd" }],
2211
2210
  ["line", { x1: "10", x2: "8", y1: "3", y2: "21", key: "1ggp8o" }],
2212
2211
  ["line", { x1: "16", x2: "14", y1: "3", y2: "21", key: "weycgp" }]
2213
- ], Gt = ie("hash", Un);
2214
- const Hn = [
2212
+ ], Gt = ie("hash", Hn);
2213
+ const Un = [
2215
2214
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
2216
2215
  ["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
2217
2216
  ["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
2218
- ], $n = ie("image", Hn);
2219
- const Bn = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Vn = ie("loader-circle", Bn);
2220
- const Wn = [
2217
+ ], $n = ie("image", Un);
2218
+ const Bn = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Wn = ie("loader-circle", Bn);
2219
+ const Vn = [
2221
2220
  [
2222
2221
  "path",
2223
2222
  {
@@ -2227,12 +2226,12 @@ const Wn = [
2227
2226
  ],
2228
2227
  ["path", { d: "M12 8v6", key: "1ib9pf" }],
2229
2228
  ["path", { d: "M9 11h6", key: "1fldmi" }]
2230
- ], qn = ie("message-square-plus", Wn);
2229
+ ], jn = ie("message-square-plus", Vn);
2231
2230
  const Nn = [
2232
2231
  ["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
2233
2232
  ["line", { x1: "8", x2: "16", y1: "21", y2: "21", key: "1svkeh" }],
2234
2233
  ["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }]
2235
- ], jn = ie("monitor", Nn);
2234
+ ], qn = ie("monitor", Nn);
2236
2235
  const Gn = [
2237
2236
  ["path", { d: "M21 5H3", key: "1fi0y6" }],
2238
2237
  ["path", { d: "M15 12H3", key: "6jk70r" }],
@@ -2241,10 +2240,10 @@ const Gn = [
2241
2240
  const Yn = [
2242
2241
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
2243
2242
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
2244
- ], Xt = ie("x", Yn), Kn = ({ onConfirm: e, onCancel: t }) => {
2243
+ ], Xt = ie("x", Yn), Qn = ({ onConfirm: e, onCancel: t }) => {
2245
2244
  const [i, n] = T(!1), [o, s] = T({ x: 0, y: 0 }), [r, h] = T({ x: 0, y: 0 }), f = (y) => {
2246
2245
  n(!0), s({ x: y.clientX, y: y.clientY }), h({ x: y.clientX, y: y.clientY });
2247
- }, g = (y) => {
2246
+ }, b = (y) => {
2248
2247
  i && h({ x: y.clientX, y: y.clientY });
2249
2248
  }, m = () => {
2250
2249
  O();
@@ -2264,12 +2263,12 @@ const Yn = [
2264
2263
  }, O = () => {
2265
2264
  if (i) {
2266
2265
  n(!1);
2267
- const y = Math.min(o.x, r.x), S = Math.min(o.y, r.y), M = Math.abs(r.x - o.x), A = Math.abs(r.y - o.y);
2268
- M > 10 && A > 10 && e({
2266
+ const y = Math.min(o.x, r.x), S = Math.min(o.y, r.y), A = Math.abs(r.x - o.x), M = Math.abs(r.y - o.y);
2267
+ A > 10 && M > 10 && e({
2269
2268
  x: y,
2270
2269
  y: S,
2271
- width: M,
2272
- height: A
2270
+ width: A,
2271
+ height: M
2273
2272
  });
2274
2273
  }
2275
2274
  };
@@ -2290,18 +2289,18 @@ const Yn = [
2290
2289
  userSelect: "none"
2291
2290
  },
2292
2291
  onMouseDown: f,
2293
- onMouseMove: g,
2292
+ onMouseMove: b,
2294
2293
  onMouseUp: m,
2295
2294
  onTouchStart: k,
2296
2295
  onTouchMove: R,
2297
2296
  onTouchEnd: $,
2298
2297
  children: [
2299
- /* @__PURE__ */ b("div", { style: {
2298
+ /* @__PURE__ */ g("div", { style: {
2300
2299
  position: "absolute",
2301
2300
  inset: 0,
2302
2301
  backgroundColor: "rgba(0, 0, 0, 0.4)"
2303
2302
  } }),
2304
- !i && /* @__PURE__ */ b("div", { style: {
2303
+ !i && /* @__PURE__ */ g("div", { style: {
2305
2304
  position: "absolute",
2306
2305
  top: "20px",
2307
2306
  left: "50%",
@@ -2313,7 +2312,7 @@ const Yn = [
2313
2312
  pointerEvents: "none",
2314
2313
  fontSize: "14px"
2315
2314
  }, children: "Kéo chuột hoặc chạm để chọn vùng chụp ảnh (ESC để hủy)" }),
2316
- i && /* @__PURE__ */ b(
2315
+ i && /* @__PURE__ */ g(
2317
2316
  "div",
2318
2317
  {
2319
2318
  style: {
@@ -2332,7 +2331,7 @@ const Yn = [
2332
2331
  ]
2333
2332
  }
2334
2333
  );
2335
- }, Qn = ({
2334
+ }, Zn = ({
2336
2335
  questionId: e,
2337
2336
  questionIdChild: t,
2338
2337
  contextData: i,
@@ -2343,12 +2342,12 @@ const Yn = [
2343
2342
  onOpen: h,
2344
2343
  onClose: f
2345
2344
  }) => {
2346
- const [g, m] = T(!1), [k, R] = T(""), [$, O] = T(e), [y, S] = T(t || ""), [M, A] = T([]), [z, ne] = T(null), [re, xe] = T(!1), [N, oe] = T(!1), [wt, Oe] = T(!1), [j, ce] = T(null), [P, de] = T({}), [mt, Me] = T("incorrect_content"), [ui, Ge] = T(!1), yt = St.useRef(null), Xe = r !== void 0 ? r : g, hi = Xe && !ui;
2345
+ const [b, m] = T(!1), [k, R] = T(""), [$, O] = T(e), [y, S] = T(t || ""), [A, M] = T([]), [z, Q] = T(null), [me, gt] = T(!1), [ne, bt] = T(!1), [wt, Re] = T(!1), [N, ae] = T(null), [L, le] = T({}), [mt, Me] = T("incorrect_content"), [ui, Ne] = T(!1), yt = St.useRef(null), qe = r !== void 0 ? r : b, hi = qe && !ui;
2347
2346
  St.useEffect(() => {
2348
- Xe && (de({}), O(e), S(t || ""), A([]), R(""), Me("incorrect_content"));
2349
- }, [Xe, e, t]);
2347
+ qe && (le({}), O(e), S(t || ""), M([]), R(""), Me("incorrect_content"));
2348
+ }, [qe, e, t]);
2350
2349
  const fi = () => {
2351
- if (M.length >= 3) {
2350
+ if (A.length >= 3) {
2352
2351
  alert("Bạn chỉ có thể chụp tối đa 3 ảnh.");
2353
2352
  return;
2354
2353
  }
@@ -2364,59 +2363,59 @@ const Yn = [
2364
2363
  alert("Ảnh quá lớn. Vui lòng chọn ảnh dưới 5MB.");
2365
2364
  return;
2366
2365
  }
2367
- const G = new FileReader();
2368
- G.onload = (Fe) => {
2369
- const Pe = Fe.target?.result;
2370
- Pe && A((kt) => [...kt, Pe]);
2371
- }, G.readAsDataURL(C), p.target.value = "";
2372
- }, bi = () => {
2373
- A([]), R(""), O(e), S(t || ""), Me("incorrect_content"), de({}), r === void 0 && m(!0);
2366
+ const q = new FileReader();
2367
+ q.onload = (Oe) => {
2368
+ const Ae = Oe.target?.result;
2369
+ Ae && M((kt) => [...kt, Ae]);
2370
+ }, q.readAsDataURL(C), p.target.value = "";
2371
+ }, gi = () => {
2372
+ M([]), R(""), O(e), S(t || ""), Me("incorrect_content"), le({}), r === void 0 && m(!0);
2374
2373
  }, xt = async (p) => {
2375
- if (M.length >= 3) {
2374
+ if (A.length >= 3) {
2376
2375
  alert("Bạn chỉ có thể chụp tối đa 3 ảnh.");
2377
2376
  return;
2378
2377
  }
2379
- if (Ge(!0), p === "crop") {
2380
- setTimeout(() => Oe(!0), 150);
2378
+ if (Ne(!0), p === "crop") {
2379
+ setTimeout(() => Re(!0), 150);
2381
2380
  return;
2382
2381
  }
2383
2382
  setTimeout(async () => {
2384
2383
  await vt();
2385
2384
  }, 150);
2386
2385
  }, vt = async (p) => {
2387
- xe(!0);
2386
+ gt(!0);
2388
2387
  try {
2389
2388
  const C = await On(p);
2390
- C ? A((G) => [...G, C]) : alert("Không thể chụp ảnh màn hình. Vui lòng thử lại.");
2389
+ C ? M((q) => [...q, C]) : alert("Không thể chụp ảnh màn hình. Vui lòng thử lại.");
2391
2390
  } catch (C) {
2392
2391
  console.error(C);
2393
2392
  } finally {
2394
- xe(!1), Ge(!1);
2393
+ gt(!1), Ne(!1);
2395
2394
  }
2396
- }, gi = (p) => {
2397
- Oe(!1), vt(p);
2395
+ }, bi = (p) => {
2396
+ Re(!1), vt(p);
2398
2397
  }, wi = () => {
2399
- Oe(!1), Ge(!1);
2398
+ Re(!1), Ne(!1);
2400
2399
  }, mi = (p) => {
2401
- A((C) => C.filter((G, Fe) => Fe !== p));
2402
- }, Ye = () => {
2403
- f && f(), m(!1), A([]), Oe(!1), ne(null), R(""), de({}), Me("incorrect_content");
2400
+ M((C) => C.filter((q, Oe) => Oe !== p));
2401
+ }, Ge = () => {
2402
+ f && f(), m(!1), M([]), Re(!1), Q(null), R(""), le({}), Me("incorrect_content");
2404
2403
  }, yi = async () => {
2405
2404
  const p = {};
2406
2405
  if ($ ? isNaN(Number($)) && (p.questionId = "ID câu hỏi phải là số") : p.questionId = "Vui lòng nhập ID câu hỏi", y && isNaN(Number(y)) && (p.questionIdChild = "ID câu hỏi con phải là số"), k.trim() || (p.description = "Vui lòng nhập mô tả lỗi"), Object.keys(p).length > 0) {
2407
- de(p);
2406
+ le(p);
2408
2407
  return;
2409
2408
  }
2410
- oe(!0);
2409
+ bt(!0);
2411
2410
  try {
2412
- const C = Zt(), G = await Promise.all(
2413
- M.map(async (Pe) => (await (await fetch("https://lcms.icanwork.vn/api/upload-to-s3/upload-image-error-to-s3", {
2411
+ const C = Jt(), q = await Promise.all(
2412
+ A.map(async (Ae) => (await (await fetch("https://lcms.icanwork.vn/api/upload-to-s3/upload-image-error-to-s3", {
2414
2413
  method: "POST",
2415
2414
  headers: {
2416
2415
  "Content-Type": "application/json"
2417
2416
  },
2418
2417
  body: JSON.stringify({
2419
- base64: Pe
2418
+ base64: Ae
2420
2419
  })
2421
2420
  })).json()).file_url)
2422
2421
  );
@@ -2425,18 +2424,18 @@ const Yn = [
2425
2424
  idChildQuestion: y,
2426
2425
  errorType: mt,
2427
2426
  errorDescription: k,
2428
- listImage: G,
2427
+ listImage: q,
2429
2428
  deviceInfo: C,
2430
2429
  contextData: i
2431
- }), Ye();
2430
+ }), Ge();
2432
2431
  } catch (C) {
2433
2432
  console.error("Submit feedback failed", C);
2434
2433
  } finally {
2435
- oe(!1);
2434
+ bt(!1);
2436
2435
  }
2437
2436
  };
2438
- return /* @__PURE__ */ x(ot, { children: [
2439
- /* @__PURE__ */ b("style", { id: "feedback-widget-styles", children: `
2437
+ return /* @__PURE__ */ x(nt, { children: [
2438
+ /* @__PURE__ */ g("style", { id: "feedback-widget-styles", children: `
2440
2439
  @keyframes fb-fade-in {
2441
2440
  from { opacity: 0; transform: translateY(10px); }
2442
2441
  to { opacity: 1; transform: translateY(0); }
@@ -2499,8 +2498,8 @@ const Yn = [
2499
2498
  }
2500
2499
  }
2501
2500
  ` }),
2502
- wt && /* @__PURE__ */ b(Kn, { onConfirm: gi, onCancel: wi }),
2503
- z && /* @__PURE__ */ b(
2501
+ wt && /* @__PURE__ */ g(Qn, { onConfirm: bi, onCancel: wi }),
2502
+ z && /* @__PURE__ */ g(
2504
2503
  "div",
2505
2504
  {
2506
2505
  style: {
@@ -2515,8 +2514,8 @@ const Yn = [
2515
2514
  animation: "fb-fade-in 0.2s ease-out",
2516
2515
  backdropFilter: "blur(4px)"
2517
2516
  },
2518
- onClick: () => ne(null),
2519
- children: /* @__PURE__ */ b(
2517
+ onClick: () => Q(null),
2518
+ children: /* @__PURE__ */ g(
2520
2519
  "img",
2521
2520
  {
2522
2521
  src: z,
@@ -2537,9 +2536,9 @@ const Yn = [
2537
2536
  )
2538
2537
  }
2539
2538
  ),
2540
- /* @__PURE__ */ b("div", { onClick: () => {
2541
- r === void 0 ? bi() : h && h();
2542
- }, style: { cursor: "pointer", display: "inline-block" }, children: s || /* @__PURE__ */ b(
2539
+ /* @__PURE__ */ g("div", { onClick: () => {
2540
+ r === void 0 ? gi() : h && h();
2541
+ }, style: { cursor: "pointer", display: "inline-block" }, children: s || /* @__PURE__ */ g(
2543
2542
  "button",
2544
2543
  {
2545
2544
  className: "fb-widget-trigger",
@@ -2564,17 +2563,17 @@ const Yn = [
2564
2563
  title: "Báo lỗi",
2565
2564
  onMouseEnter: (p) => p.currentTarget.style.transform = "scale(1.1)",
2566
2565
  onMouseLeave: (p) => p.currentTarget.style.transform = "scale(1)",
2567
- children: /* @__PURE__ */ b(qn, { size: 24 })
2566
+ children: /* @__PURE__ */ g(jn, { size: 24 })
2568
2567
  }
2569
2568
  ) }),
2570
- re && /* @__PURE__ */ b("div", { style: { position: "fixed", top: 20, right: 20, background: "rgba(0,0,0,0.8)", color: "white", padding: "8px 12px", borderRadius: "8px", zIndex: 1e4, fontWeight: 500, backdropFilter: "blur(4px)", fontSize: "0.8rem" }, children: "Đang chụp..." }),
2569
+ me && /* @__PURE__ */ g("div", { style: { position: "fixed", top: 20, right: 20, background: "rgba(0,0,0,0.8)", color: "white", padding: "8px 12px", borderRadius: "8px", zIndex: 1e4, fontWeight: 500, backdropFilter: "blur(4px)", fontSize: "0.8rem" }, children: "Đang chụp..." }),
2571
2570
  hi && !wt && !z && /* @__PURE__ */ x("div", { className: "fb-widget-modal", children: [
2572
2571
  /* @__PURE__ */ x("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
2573
- /* @__PURE__ */ b("h2", { style: { margin: 0, fontSize: "1rem", fontWeight: 700, color: "#111827" }, children: "Báo lỗi" }),
2574
- /* @__PURE__ */ b(
2572
+ /* @__PURE__ */ g("h2", { style: { margin: 0, fontSize: "1rem", fontWeight: 700, color: "#111827" }, children: "Báo lỗi" }),
2573
+ /* @__PURE__ */ g(
2575
2574
  "button",
2576
2575
  {
2577
- onClick: Ye,
2576
+ onClick: Ge,
2578
2577
  style: {
2579
2578
  background: "transparent",
2580
2579
  border: "none",
@@ -2589,7 +2588,7 @@ const Yn = [
2589
2588
  },
2590
2589
  onMouseEnter: (p) => p.currentTarget.style.backgroundColor = "#f3f4f6",
2591
2590
  onMouseLeave: (p) => p.currentTarget.style.backgroundColor = "transparent",
2592
- children: /* @__PURE__ */ b(Xt, { size: 18 })
2591
+ children: /* @__PURE__ */ g(Xt, { size: 18 })
2593
2592
  }
2594
2593
  )
2595
2594
  ] }),
@@ -2599,7 +2598,7 @@ const Yn = [
2599
2598
  "ID Câu hỏi ",
2600
2599
  t ? "bài đọc" : "",
2601
2600
  " ",
2602
- /* @__PURE__ */ b("span", { style: { color: "#ef4444" }, children: "*" })
2601
+ /* @__PURE__ */ g("span", { style: { color: "#ef4444" }, children: "*" })
2603
2602
  ] }),
2604
2603
  /* @__PURE__ */ x("div", { style: {
2605
2604
  position: "relative",
@@ -2607,22 +2606,22 @@ const Yn = [
2607
2606
  alignItems: "center",
2608
2607
  transition: "all 0.2s"
2609
2608
  }, children: [
2610
- /* @__PURE__ */ b(Gt, { size: 12, style: {
2609
+ /* @__PURE__ */ g(Gt, { size: 12, style: {
2611
2610
  position: "absolute",
2612
2611
  left: "10px",
2613
- color: j === "id" ? o : P.questionId ? "#ef4444" : "#9ca3af",
2612
+ color: N === "id" ? o : L.questionId ? "#ef4444" : "#9ca3af",
2614
2613
  transition: "color 0.2s",
2615
2614
  pointerEvents: "none"
2616
2615
  } }),
2617
- /* @__PURE__ */ b(
2616
+ /* @__PURE__ */ g(
2618
2617
  "input",
2619
2618
  {
2620
2619
  type: "text",
2621
2620
  value: $,
2622
- onFocus: () => ce("id"),
2623
- onBlur: () => ce(null),
2621
+ onFocus: () => ae("id"),
2622
+ onBlur: () => ae(null),
2624
2623
  onChange: (p) => {
2625
- O(p.target.value), P.questionId && de((C) => ({ ...C, questionId: void 0 }));
2624
+ O(p.target.value), L.questionId && le((C) => ({ ...C, questionId: void 0 }));
2626
2625
  },
2627
2626
  disabled: !!e,
2628
2627
  placeholder: "Nhập ID (ví dụ: 101)",
@@ -2630,8 +2629,8 @@ const Yn = [
2630
2629
  width: "100%",
2631
2630
  padding: "6px 10px 6px 28px",
2632
2631
  borderRadius: "6px",
2633
- border: `1px solid ${P.questionId ? "#ef4444" : j === "id" ? o : "#e5e7eb"}`,
2634
- boxShadow: j === "id" ? `0 0 0 2px ${o}20` : "none",
2632
+ border: `1px solid ${L.questionId ? "#ef4444" : N === "id" ? o : "#e5e7eb"}`,
2633
+ boxShadow: N === "id" ? `0 0 0 2px ${o}20` : "none",
2635
2634
  outline: "none",
2636
2635
  fontSize: "0.85rem",
2637
2636
  color: "#1f2937",
@@ -2641,30 +2640,30 @@ const Yn = [
2641
2640
  }
2642
2641
  )
2643
2642
  ] }),
2644
- P.questionId && /* @__PURE__ */ b("span", { style: { display: "block", marginTop: "2px", fontSize: "0.7rem", color: "#ef4444" }, children: P.questionId })
2643
+ L.questionId && /* @__PURE__ */ g("span", { style: { display: "block", marginTop: "2px", fontSize: "0.7rem", color: "#ef4444" }, children: L.questionId })
2645
2644
  ] }),
2646
2645
  t ? /* @__PURE__ */ x("div", { children: [
2647
- /* @__PURE__ */ b("label", { style: { display: "block", marginBottom: "2px", fontSize: "0.8rem", fontWeight: 600, color: "#374151" }, children: "ID Câu hỏi" }),
2646
+ /* @__PURE__ */ g("label", { style: { display: "block", marginBottom: "2px", fontSize: "0.8rem", fontWeight: 600, color: "#374151" }, children: "ID Câu hỏi" }),
2648
2647
  /* @__PURE__ */ x("div", { style: {
2649
2648
  position: "relative",
2650
2649
  display: "flex",
2651
2650
  alignItems: "center",
2652
2651
  transition: "all 0.2s"
2653
2652
  }, children: [
2654
- /* @__PURE__ */ b(Gt, { size: 12, style: {
2653
+ /* @__PURE__ */ g(Gt, { size: 12, style: {
2655
2654
  position: "absolute",
2656
2655
  left: "10px",
2657
- color: j === "idChild" ? o : P.questionIdChild ? "#ef4444" : "#9ca3af",
2656
+ color: N === "idChild" ? o : L.questionIdChild ? "#ef4444" : "#9ca3af",
2658
2657
  transition: "color 0.2s",
2659
2658
  pointerEvents: "none"
2660
2659
  } }),
2661
- /* @__PURE__ */ b(
2660
+ /* @__PURE__ */ g(
2662
2661
  "input",
2663
2662
  {
2664
2663
  type: "text",
2665
2664
  value: y,
2666
- onFocus: () => ce("idChild"),
2667
- onBlur: () => ce(null),
2665
+ onFocus: () => ae("idChild"),
2666
+ onBlur: () => ae(null),
2668
2667
  onChange: (p) => {
2669
2668
  S(p.target.value);
2670
2669
  },
@@ -2674,8 +2673,8 @@ const Yn = [
2674
2673
  width: "100%",
2675
2674
  padding: "6px 10px 6px 28px",
2676
2675
  borderRadius: "6px",
2677
- border: `1px solid ${P.questionIdChild ? "#ef4444" : j === "idChild" ? o : "#e5e7eb"}`,
2678
- boxShadow: j === "idChild" ? `0 0 0 2px ${o}20` : "none",
2676
+ border: `1px solid ${L.questionIdChild ? "#ef4444" : N === "idChild" ? o : "#e5e7eb"}`,
2677
+ boxShadow: N === "idChild" ? `0 0 0 2px ${o}20` : "none",
2679
2678
  outline: "none",
2680
2679
  fontSize: "0.85rem",
2681
2680
  color: "#1f2937",
@@ -2685,12 +2684,12 @@ const Yn = [
2685
2684
  }
2686
2685
  )
2687
2686
  ] }),
2688
- P.questionIdChild && /* @__PURE__ */ b("span", { style: { display: "block", marginTop: "2px", fontSize: "0.7rem", color: "#ef4444" }, children: P.questionIdChild })
2689
- ] }) : /* @__PURE__ */ b(ot, {}),
2687
+ L.questionIdChild && /* @__PURE__ */ g("span", { style: { display: "block", marginTop: "2px", fontSize: "0.7rem", color: "#ef4444" }, children: L.questionIdChild })
2688
+ ] }) : /* @__PURE__ */ g(nt, {}),
2690
2689
  /* @__PURE__ */ x("div", { children: [
2691
2690
  /* @__PURE__ */ x("label", { style: { display: "block", marginBottom: "2px", fontSize: "0.8rem", fontWeight: 600, color: "#374151" }, children: [
2692
2691
  "Loại lỗi ",
2693
- /* @__PURE__ */ b("span", { style: { color: "#ef4444" }, children: "*" })
2692
+ /* @__PURE__ */ g("span", { style: { color: "#ef4444" }, children: "*" })
2694
2693
  ] }),
2695
2694
  /* @__PURE__ */ x(
2696
2695
  "select",
@@ -2714,11 +2713,11 @@ const Yn = [
2714
2713
  backgroundSize: "14px"
2715
2714
  },
2716
2715
  children: [
2717
- /* @__PURE__ */ b("option", { value: "incorrect_content", children: "Lỗi nội dung" }),
2718
- /* @__PURE__ */ b("option", { value: "display_error", children: "Lỗi hiển thị" }),
2719
- /* @__PURE__ */ b("option", { value: "missing_data", children: "Thiếu thông tin" }),
2720
- /* @__PURE__ */ b("option", { value: "technical_issue", children: "Lỗi kỹ thuật" }),
2721
- /* @__PURE__ */ b("option", { value: "other", children: "Khác" })
2716
+ /* @__PURE__ */ g("option", { value: "incorrect_content", children: "Lỗi nội dung" }),
2717
+ /* @__PURE__ */ g("option", { value: "display_error", children: "Lỗi hiển thị" }),
2718
+ /* @__PURE__ */ g("option", { value: "missing_data", children: "Thiếu thông tin" }),
2719
+ /* @__PURE__ */ g("option", { value: "technical_issue", children: "Lỗi kỹ thuật" }),
2720
+ /* @__PURE__ */ g("option", { value: "other", children: "Khác" })
2722
2721
  ]
2723
2722
  }
2724
2723
  )
@@ -2727,7 +2726,7 @@ const Yn = [
2727
2726
  /* @__PURE__ */ x("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center", marginBottom: "2px" }, children: [
2728
2727
  /* @__PURE__ */ x("label", { style: { fontSize: "0.8rem", fontWeight: 600, color: "#374151" }, children: [
2729
2728
  "Mô tả lỗi ",
2730
- /* @__PURE__ */ b("span", { style: { color: "#ef4444" }, children: "*" })
2729
+ /* @__PURE__ */ g("span", { style: { color: "#ef4444" }, children: "*" })
2731
2730
  ] }),
2732
2731
  /* @__PURE__ */ x("span", { style: { fontSize: "0.7rem", color: "#9ca3af" }, children: [
2733
2732
  k.length,
@@ -2735,23 +2734,23 @@ const Yn = [
2735
2734
  ] })
2736
2735
  ] }),
2737
2736
  /* @__PURE__ */ x("div", { style: { position: "relative" }, children: [
2738
- /* @__PURE__ */ b("div", { style: {
2737
+ /* @__PURE__ */ g("div", { style: {
2739
2738
  position: "absolute",
2740
2739
  left: "10px",
2741
2740
  top: "8px",
2742
2741
  pointerEvents: "none"
2743
- }, children: /* @__PURE__ */ b(Xn, { size: 12, style: {
2744
- color: j === "desc" ? o : P.description ? "#ef4444" : "#9ca3af",
2742
+ }, children: /* @__PURE__ */ g(Xn, { size: 12, style: {
2743
+ color: N === "desc" ? o : L.description ? "#ef4444" : "#9ca3af",
2745
2744
  transition: "color 0.2s"
2746
2745
  } }) }),
2747
- /* @__PURE__ */ b(
2746
+ /* @__PURE__ */ g(
2748
2747
  "textarea",
2749
2748
  {
2750
2749
  value: k,
2751
- onFocus: () => ce("desc"),
2752
- onBlur: () => ce(null),
2750
+ onFocus: () => ae("desc"),
2751
+ onBlur: () => ae(null),
2753
2752
  onChange: (p) => {
2754
- R(p.target.value), P.description && de((C) => ({ ...C, description: void 0 }));
2753
+ R(p.target.value), L.description && le((C) => ({ ...C, description: void 0 }));
2755
2754
  },
2756
2755
  maxLength: 1e3,
2757
2756
  placeholder: "Mô tả chi tiết...",
@@ -2760,8 +2759,8 @@ const Yn = [
2760
2759
  minHeight: "80px",
2761
2760
  padding: "6px 10px 6px 28px",
2762
2761
  borderRadius: "6px",
2763
- border: `1px solid ${P.description ? "#ef4444" : j === "desc" ? o : "#e5e7eb"}`,
2764
- boxShadow: j === "desc" ? `0 0 0 2px ${o}20` : "none",
2762
+ border: `1px solid ${L.description ? "#ef4444" : N === "desc" ? o : "#e5e7eb"}`,
2763
+ boxShadow: N === "desc" ? `0 0 0 2px ${o}20` : "none",
2765
2764
  outline: "none",
2766
2765
  fontSize: "0.85rem",
2767
2766
  color: "#1f2937",
@@ -2775,16 +2774,16 @@ const Yn = [
2775
2774
  }
2776
2775
  )
2777
2776
  ] }),
2778
- P.description && /* @__PURE__ */ b("span", { style: { display: "block", marginTop: "2px", fontSize: "0.7rem", color: "#ef4444" }, children: P.description })
2777
+ L.description && /* @__PURE__ */ g("span", { style: { display: "block", marginTop: "2px", fontSize: "0.7rem", color: "#ef4444" }, children: L.description })
2779
2778
  ] })
2780
2779
  ] }),
2781
2780
  /* @__PURE__ */ x("div", { style: { marginBottom: "2px" }, children: [
2782
- /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center", marginBottom: "6px" }, children: /* @__PURE__ */ x("label", { style: { fontWeight: 600, fontSize: "0.8rem", color: "#374151" }, children: [
2781
+ /* @__PURE__ */ g("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center", marginBottom: "6px" }, children: /* @__PURE__ */ x("label", { style: { fontWeight: 600, fontSize: "0.8rem", color: "#374151" }, children: [
2783
2782
  "Ảnh chụp (",
2784
- M.length,
2783
+ A.length,
2785
2784
  "/3)"
2786
2785
  ] }) }),
2787
- M.length > 0 && /* @__PURE__ */ b("div", { style: { display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: "6px", marginBottom: "8px" }, children: M.map((p, C) => /* @__PURE__ */ x("div", { style: {
2786
+ A.length > 0 && /* @__PURE__ */ g("div", { style: { display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: "6px", marginBottom: "8px" }, children: A.map((p, C) => /* @__PURE__ */ x("div", { style: {
2788
2787
  position: "relative",
2789
2788
  aspectRatio: "16/9",
2790
2789
  border: "1px solid #e5e7eb",
@@ -2792,13 +2791,13 @@ const Yn = [
2792
2791
  overflow: "hidden",
2793
2792
  boxShadow: "0 1px 2px rgba(0,0,0,0.05)"
2794
2793
  }, children: [
2795
- /* @__PURE__ */ b(
2794
+ /* @__PURE__ */ g(
2796
2795
  "img",
2797
2796
  {
2798
2797
  src: p,
2799
2798
  alt: `Screenshot ${C + 1}`,
2800
2799
  draggable: !1,
2801
- onContextMenu: (G) => G.preventDefault(),
2800
+ onContextMenu: (q) => q.preventDefault(),
2802
2801
  style: {
2803
2802
  width: "100%",
2804
2803
  height: "100%",
@@ -2808,10 +2807,10 @@ const Yn = [
2808
2807
  userSelect: "none",
2809
2808
  WebkitUserSelect: "none"
2810
2809
  },
2811
- onClick: () => ne(p)
2810
+ onClick: () => Q(p)
2812
2811
  }
2813
2812
  ),
2814
- /* @__PURE__ */ b(
2813
+ /* @__PURE__ */ g(
2815
2814
  "button",
2816
2815
  {
2817
2816
  onClick: () => mi(C),
@@ -2833,12 +2832,12 @@ const Yn = [
2833
2832
  padding: 0,
2834
2833
  boxShadow: "0 1px 2px rgba(0,0,0,0.2)"
2835
2834
  },
2836
- children: /* @__PURE__ */ b(Xt, { size: 10 })
2835
+ children: /* @__PURE__ */ g(Xt, { size: 10 })
2837
2836
  }
2838
2837
  )
2839
2838
  ] }, C)) }),
2840
2839
  /* @__PURE__ */ x("div", { style: { display: "flex", gap: "8px" }, children: [
2841
- /* @__PURE__ */ b(
2840
+ /* @__PURE__ */ g(
2842
2841
  "input",
2843
2842
  {
2844
2843
  type: "file",
@@ -2876,8 +2875,8 @@ const Yn = [
2876
2875
  p.currentTarget.style.borderColor = "#d1d5db", p.currentTarget.style.color = "#4b5563", p.currentTarget.style.backgroundColor = "white";
2877
2876
  },
2878
2877
  children: [
2879
- /* @__PURE__ */ b(jn, { size: 18 }),
2880
- /* @__PURE__ */ b("span", { style: { fontSize: "0.8rem", fontWeight: 500 }, children: "Toàn màn hình" })
2878
+ /* @__PURE__ */ g(qn, { size: 18 }),
2879
+ /* @__PURE__ */ g("span", { style: { fontSize: "0.8rem", fontWeight: 500 }, children: "Toàn màn hình" })
2881
2880
  ]
2882
2881
  }
2883
2882
  ),
@@ -2909,8 +2908,8 @@ const Yn = [
2909
2908
  p.currentTarget.style.borderColor = "#d1d5db", p.currentTarget.style.color = "#4b5563", p.currentTarget.style.backgroundColor = "white";
2910
2909
  },
2911
2910
  children: [
2912
- /* @__PURE__ */ b(zn, { size: 18 }),
2913
- /* @__PURE__ */ b("span", { style: { fontSize: "0.8rem", fontWeight: 500 }, children: "Chọn vùng" })
2911
+ /* @__PURE__ */ g(zn, { size: 18 }),
2912
+ /* @__PURE__ */ g("span", { style: { fontSize: "0.8rem", fontWeight: 500 }, children: "Chọn vùng" })
2914
2913
  ]
2915
2914
  }
2916
2915
  ),
@@ -2942,19 +2941,19 @@ const Yn = [
2942
2941
  p.currentTarget.style.borderColor = "#d1d5db", p.currentTarget.style.color = "#4b5563", p.currentTarget.style.backgroundColor = "white";
2943
2942
  },
2944
2943
  children: [
2945
- /* @__PURE__ */ b($n, { size: 18 }),
2946
- /* @__PURE__ */ b("span", { style: { fontSize: "0.8rem", fontWeight: 500 }, children: "Chọn ảnh" })
2944
+ /* @__PURE__ */ g($n, { size: 18 }),
2945
+ /* @__PURE__ */ g("span", { style: { fontSize: "0.8rem", fontWeight: 500 }, children: "Chọn ảnh" })
2947
2946
  ]
2948
2947
  }
2949
2948
  )
2950
2949
  ] })
2951
2950
  ] }),
2952
2951
  /* @__PURE__ */ x("div", { style: { display: "flex", justifyContent: "flex-end", gap: "8px", marginTop: "auto", paddingTop: "8px", borderTop: "1px solid #f3f4f6" }, children: [
2953
- /* @__PURE__ */ b(
2952
+ /* @__PURE__ */ g(
2954
2953
  "button",
2955
2954
  {
2956
- onClick: Ye,
2957
- disabled: N,
2955
+ onClick: Ge,
2956
+ disabled: ne,
2958
2957
  style: {
2959
2958
  padding: "8px 16px",
2960
2959
  borderRadius: "8px",
@@ -2971,29 +2970,29 @@ const Yn = [
2971
2970
  children: "Hủy bỏ"
2972
2971
  }
2973
2972
  ),
2974
- /* @__PURE__ */ b(
2973
+ /* @__PURE__ */ g(
2975
2974
  "button",
2976
2975
  {
2977
2976
  onClick: yi,
2978
- disabled: N,
2977
+ disabled: ne,
2979
2978
  style: {
2980
2979
  padding: "8px 16px",
2981
2980
  borderRadius: "8px",
2982
2981
  border: "none",
2983
2982
  background: o,
2984
2983
  color: "white",
2985
- cursor: N ? "not-allowed" : "pointer",
2984
+ cursor: ne ? "not-allowed" : "pointer",
2986
2985
  fontWeight: 600,
2987
2986
  fontSize: "0.85rem",
2988
- opacity: N ? 0.7 : 1,
2987
+ opacity: ne ? 0.7 : 1,
2989
2988
  boxShadow: "0 2px 4px -1px rgba(0, 0, 0, 0.1)",
2990
2989
  transition: "transform 0.1s, opacity 0.2s"
2991
2990
  },
2992
- onMouseDown: (p) => !N && (p.currentTarget.style.transform = "scale(0.98)"),
2993
- onMouseUp: (p) => !N && (p.currentTarget.style.transform = "scale(1)"),
2994
- children: N ? /* @__PURE__ */ x("div", { style: { display: "flex", alignItems: "center", gap: "6px" }, children: [
2995
- /* @__PURE__ */ b(Vn, { size: 16, style: { animation: "fb-spin 1s linear infinite" } }),
2996
- /* @__PURE__ */ b("span", { children: "Đang gửi..." })
2991
+ onMouseDown: (p) => !ne && (p.currentTarget.style.transform = "scale(0.98)"),
2992
+ onMouseUp: (p) => !ne && (p.currentTarget.style.transform = "scale(1)"),
2993
+ children: ne ? /* @__PURE__ */ x("div", { style: { display: "flex", alignItems: "center", gap: "6px" }, children: [
2994
+ /* @__PURE__ */ g(Wn, { size: 16, style: { animation: "fb-spin 1s linear infinite" } }),
2995
+ /* @__PURE__ */ g("span", { children: "Đang gửi..." })
2997
2996
  ] }) : "Gửi báo lỗi"
2998
2997
  }
2999
2998
  )
@@ -3010,30 +3009,30 @@ const Yn = [
3010
3009
  onSubmit: t,
3011
3010
  themeColor: i
3012
3011
  }) => {
3013
- const [n, o] = T(!1), [s, r] = T(null), [h, f] = T(""), [g, m] = T(void 0), k = ($, O, y) => {
3012
+ const [n, o] = T(!1), [s, r] = T(null), [h, f] = T(""), [b, m] = T(void 0), k = ($, O, y) => {
3014
3013
  r($), f(O || ""), m(y), o(!0);
3015
3014
  }, R = () => {
3016
3015
  o(!1);
3017
3016
  };
3018
3017
  return /* @__PURE__ */ x(di.Provider, { value: { openFeedback: k, closeFeedback: R, isOpen: n, activeQuestionId: s }, children: [
3019
3018
  e,
3020
- s && /* @__PURE__ */ b(
3021
- Qn,
3019
+ s && /* @__PURE__ */ g(
3020
+ Zn,
3022
3021
  {
3023
3022
  questionId: s,
3024
3023
  questionIdChild: h,
3025
- contextData: g,
3024
+ contextData: b,
3026
3025
  onSubmit: t,
3027
3026
  themeColor: i,
3028
3027
  isOpen: n,
3029
3028
  onClose: R,
3030
- triggerComponent: /* @__PURE__ */ b(ot, {})
3029
+ triggerComponent: /* @__PURE__ */ g(nt, {})
3031
3030
  }
3032
3031
  )
3033
3032
  ] });
3034
3033
  };
3035
3034
  export {
3036
3035
  nr as FeedbackProvider,
3037
- Qn as FeedbackWidget,
3036
+ Zn as FeedbackWidget,
3038
3037
  ir as useFeedback
3039
3038
  };