tabby-rdp 0.6.2 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +16 -11
  3. package/bin/SHA256SUMS +8 -8
  4. package/bin/darwin-arm64/tabby-rdp-proxy +0 -0
  5. package/bin/darwin-x64/tabby-rdp-proxy +0 -0
  6. package/bin/linux-arm/tabby-rdp-proxy +0 -0
  7. package/bin/linux-arm64/tabby-rdp-proxy +0 -0
  8. package/bin/linux-x64/tabby-rdp-proxy +0 -0
  9. package/bin/win32-arm64/tabby-rdp-proxy.exe +0 -0
  10. package/bin/win32-x64/tabby-rdp-proxy.exe +0 -0
  11. package/dist/audio.js +26 -5
  12. package/dist/clipboard.js +8 -2
  13. package/dist/desktop.service.js +60 -14
  14. package/dist/desktopForm.js +1 -1
  15. package/dist/fileTransfer.js +41 -8
  16. package/dist/freerdp.js +36 -14
  17. package/dist/freerdpClipboard.js +39 -9
  18. package/dist/freerdpFiles.js +183 -0
  19. package/dist/freerdpWasm.js +183 -0
  20. package/dist/freerdpWasmSocket.js +28 -0
  21. package/dist/freerdpWasmWorker.js +174 -0
  22. package/dist/pduTrace.js +27 -5
  23. package/dist/rdpClient.js +2 -2
  24. package/dist/rdpProfile.js +2 -2
  25. package/dist/settingsPage.js +6 -6
  26. package/dist/ui.js +2 -2
  27. package/dist/zgfx.js +33 -18
  28. package/native/README.md +64 -32
  29. package/package.json +6 -18
  30. package/vendor/SHA256SUMS +16 -5
  31. package/vendor/iron-remote-desktop-rdp.js +301 -301
  32. package/vendor/iron-remote-desktop.js +770 -736
  33. package/vendor/ironrdp-factory.js +301 -301
  34. package/vendor/ironrdp_web_bg.wasm +0 -0
  35. package/wasm/freerdp/BUILD.json +63 -0
  36. package/wasm/freerdp/licenses/Emscripten-LICENSE +102 -0
  37. package/wasm/freerdp/licenses/FreeRDP-LICENSE +202 -0
  38. package/wasm/freerdp/licenses/FreeRDP-NOTICE +13 -0
  39. package/wasm/freerdp/licenses/LibreSSL-LICENSE +133 -0
  40. package/wasm/freerdp/licenses/Unicode-NOTICE +21 -0
  41. package/wasm/freerdp/licenses/zlib-LICENSE +22 -0
  42. package/wasm/freerdp/tabby-freerdp.js +2 -0
  43. package/wasm/freerdp/tabby-freerdp.wasm +0 -0
@@ -10,8 +10,8 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
10
10
  var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
11
11
  var _t2, _e2, _a, _b;
12
12
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add("5");
13
- const nr = 2, sr = "[", or = "]", Qe = {}, K = Symbol(), ii = false, Z = 2, vi = 4, kt = 8, Ht = 16, ye = 32, Ie = 64, bt = 128, G = 256, pt = 512, H = 1024, Ce = 2048, Ke = 4096, vt = 8192, St = 16384, ar = 32768, lr = 65536, ur = 1 << 19, mi = 1 << 20, dt = Symbol("$state"), dr = Symbol("legacy props");
14
- var wi = Array.isArray, cr = Array.prototype.indexOf, fr = Array.from, mt = Object.keys, wt = Object.defineProperty, ze = Object.getOwnPropertyDescriptor, hr = Object.getOwnPropertyDescriptors, br = Object.prototype, pr = Array.prototype, gi = Object.getPrototypeOf;
13
+ const sr = 2, nr = "[", or = "]", Qe = {}, K = Symbol(), ii = false, J = 2, vi = 4, kt = 8, Ht = 16, ye = 32, Ie = 64, pt = 128, Y = 256, bt = 512, j = 1024, Ce = 2048, Ke = 4096, vt = 8192, St = 16384, ar = 32768, lr = 65536, ur = 1 << 19, wi = 1 << 20, dt = Symbol("$state"), dr = Symbol("legacy props");
14
+ var mi = Array.isArray, cr = Array.prototype.indexOf, hr = Array.from, wt = Object.keys, mt = Object.defineProperty, ze = Object.getOwnPropertyDescriptor, fr = Object.getOwnPropertyDescriptors, pr = Object.prototype, br = Array.prototype, gi = Object.getPrototypeOf;
15
15
  function _i(t) {
16
16
  for (var e = 0; e < t.length; e++)
17
17
  t[e]();
@@ -34,11 +34,11 @@ function ri() {
34
34
  function yi(t) {
35
35
  return t === this.v;
36
36
  }
37
- function mr(t, e) {
37
+ function wr(t, e) {
38
38
  return t != t ? e == e : t !== e || t !== null && typeof t == "object" || typeof t == "function";
39
39
  }
40
- function wr(t) {
41
- return !mr(t, this.v);
40
+ function mr(t) {
41
+ return !wr(t, this.v);
42
42
  }
43
43
  function gr(t) {
44
44
  throw new Error("https://svelte.dev/e/effect_in_teardown");
@@ -68,7 +68,7 @@ function Dr() {
68
68
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
69
69
  }
70
70
  let Tr = false;
71
- function se(t, e) {
71
+ function ne(t, e) {
72
72
  var i = {
73
73
  f: 0,
74
74
  // TODO ideally we could skip this altogether, but it causes type errors
@@ -81,31 +81,31 @@ function se(t, e) {
81
81
  return i;
82
82
  }
83
83
  function Ft(t) {
84
- return /* @__PURE__ */ Rr(se(t));
84
+ return /* @__PURE__ */ Rr(ne(t));
85
85
  }
86
86
  // @__NO_SIDE_EFFECTS__
87
87
  function Ci(t, e = false) {
88
- const i = se(t);
89
- return e || (i.equals = wr), i;
88
+ const i = ne(t);
89
+ return e || (i.equals = mr), i;
90
90
  }
91
91
  // @__NO_SIDE_EFFECTS__
92
92
  function Rr(t) {
93
- return k !== null && !X && (k.f & Z) !== 0 && (oe === null ? Fr([t]) : oe.push(t)), t;
93
+ return k !== null && !Z && (k.f & J) !== 0 && (oe === null ? Fr([t]) : oe.push(t)), t;
94
94
  }
95
- function q(t, e) {
96
- return k !== null && !X && Hi() && (k.f & (Z | Ht)) !== 0 && // If the source was created locally within the current derived, then
95
+ function H(t, e) {
96
+ return k !== null && !Z && Hi() && (k.f & (J | Ht)) !== 0 && // If the source was created locally within the current derived, then
97
97
  // we allow the mutation.
98
98
  (oe === null || !oe.includes(t)) && Dr(), $r(t, e);
99
99
  }
100
100
  function $r(t, e) {
101
- return t.equals(e) || (t.v, t.v = e, t.wv = Fi(), Ei(t, Ce), D !== null && (D.f & H) !== 0 && (D.f & (ye | Ie)) === 0 && (de === null ? Mr([t]) : de.push(t))), e;
101
+ return t.equals(e) || (t.v, t.v = e, t.wv = Fi(), Ei(t, Ce), D !== null && (D.f & j) !== 0 && (D.f & (ye | Ie)) === 0 && (de === null ? Mr([t]) : de.push(t))), e;
102
102
  }
103
103
  function Ei(t, e) {
104
104
  var i = t.reactions;
105
105
  if (i !== null)
106
- for (var r = i.length, n = 0; n < r; n++) {
107
- var o = i[n], d = o.f;
108
- (d & Ce) === 0 && (fe(o, e), (d & (H | G)) !== 0 && ((d & Z) !== 0 ? Ei(
106
+ for (var r = i.length, s = 0; s < r; s++) {
107
+ var o = i[s], d = o.f;
108
+ (d & Ce) === 0 && (he(o, e), (d & (j | Y)) !== 0 && ((d & J) !== 0 ? Ei(
109
109
  /** @type {Derived} */
110
110
  o,
111
111
  Ke
@@ -117,11 +117,11 @@ function Ei(t, e) {
117
117
  }
118
118
  // @__NO_SIDE_EFFECTS__
119
119
  function ki(t) {
120
- var e = Z | Ce, i = k !== null && (k.f & Z) !== 0 ? (
120
+ var e = J | Ce, i = k !== null && (k.f & J) !== 0 ? (
121
121
  /** @type {Derived} */
122
122
  k
123
123
  ) : null;
124
- return D === null || i !== null && (i.f & G) !== 0 ? e |= G : D.f |= mi, {
124
+ return D === null || i !== null && (i.f & Y) !== 0 ? e |= Y : D.f |= wi, {
125
125
  ctx: B,
126
126
  deps: null,
127
127
  effects: null,
@@ -151,7 +151,7 @@ function Si(t) {
151
151
  }
152
152
  function Ar(t) {
153
153
  for (var e = t.parent; e !== null; ) {
154
- if ((e.f & Z) === 0)
154
+ if ((e.f & J) === 0)
155
155
  return (
156
156
  /** @type {Effect} */
157
157
  e
@@ -164,22 +164,22 @@ function Or(t) {
164
164
  var e, i = D;
165
165
  _e(Ar(t));
166
166
  try {
167
- Si(t), e = Ni(t);
167
+ Si(t), e = Pi(t);
168
168
  } finally {
169
169
  _e(i);
170
170
  }
171
171
  return e;
172
172
  }
173
173
  function Di(t) {
174
- var e = Or(t), i = (we || (t.f & G) !== 0) && t.deps !== null ? Ke : H;
175
- fe(t, i), t.equals(e) || (t.v = e, t.wv = Fi());
174
+ var e = Or(t), i = (me || (t.f & Y) !== 0) && t.deps !== null ? Ke : j;
175
+ he(t, i), t.equals(e) || (t.v = e, t.wv = Fi());
176
176
  }
177
177
  function Gt(t) {
178
178
  console.warn("https://svelte.dev/e/hydration_mismatch");
179
179
  }
180
- let J = false;
180
+ let Q = false;
181
181
  function at(t) {
182
- J = t;
182
+ Q = t;
183
183
  }
184
184
  let I;
185
185
  function gt(t) {
@@ -194,7 +194,7 @@ function Ti() {
194
194
  );
195
195
  }
196
196
  function Mt(t) {
197
- if (J) {
197
+ if (Q) {
198
198
  if (/* @__PURE__ */ Dt(I) !== null)
199
199
  throw Gt(), Qe;
200
200
  I = t;
@@ -204,58 +204,58 @@ function De(t, e = null, i) {
204
204
  if (typeof t != "object" || t === null || dt in t)
205
205
  return t;
206
206
  const r = gi(t);
207
- if (r !== br && r !== pr)
207
+ if (r !== pr && r !== br)
208
208
  return t;
209
- var n = /* @__PURE__ */ new Map(), o = wi(t), d = se(0);
210
- o && n.set("length", se(
209
+ var s = /* @__PURE__ */ new Map(), o = mi(t), d = ne(0);
210
+ o && s.set("length", ne(
211
211
  /** @type {any[]} */
212
212
  t.length
213
213
  ));
214
- var b;
214
+ var p;
215
215
  return new Proxy(
216
216
  /** @type {any} */
217
217
  t,
218
218
  {
219
- defineProperty(c, p, h) {
220
- (!("value" in h) || h.configurable === false || h.enumerable === false || h.writable === false) && Er();
221
- var m = n.get(p);
222
- return m === void 0 ? (m = se(h.value), n.set(p, m)) : q(m, De(h.value, b)), true;
219
+ defineProperty(c, b, f) {
220
+ (!("value" in f) || f.configurable === false || f.enumerable === false || f.writable === false) && Er();
221
+ var w = s.get(b);
222
+ return w === void 0 ? (w = ne(f.value), s.set(b, w)) : H(w, De(f.value, p)), true;
223
223
  },
224
- deleteProperty(c, p) {
225
- var h = n.get(p);
226
- if (h === void 0)
227
- p in c && n.set(p, se(K));
224
+ deleteProperty(c, b) {
225
+ var f = s.get(b);
226
+ if (f === void 0)
227
+ b in c && s.set(b, ne(K));
228
228
  else {
229
- if (o && typeof p == "string") {
230
- var m = (
229
+ if (o && typeof b == "string") {
230
+ var w = (
231
231
  /** @type {Source<number>} */
232
- n.get("length")
233
- ), s = Number(p);
234
- Number.isInteger(s) && s < m.v && q(m, s);
232
+ s.get("length")
233
+ ), n = Number(b);
234
+ Number.isInteger(n) && n < w.v && H(w, n);
235
235
  }
236
- q(h, K), ni(d);
236
+ H(f, K), si(d);
237
237
  }
238
238
  return true;
239
239
  },
240
- get(c, p, h) {
240
+ get(c, b, f) {
241
241
  var _a2;
242
- if (p === dt)
242
+ if (b === dt)
243
243
  return t;
244
- var m = n.get(p), s = p in c;
245
- if (m === void 0 && (!s || ((_a2 = ze(c, p)) == null ? void 0 : _a2.writable)) && (m = se(De(s ? c[p] : K, b)), n.set(p, m)), m !== void 0) {
246
- var l = U(m);
244
+ var w = s.get(b), n = b in c;
245
+ if (w === void 0 && (!n || ((_a2 = ze(c, b)) == null ? void 0 : _a2.writable)) && (w = ne(De(n ? c[b] : K, p)), s.set(b, w)), w !== void 0) {
246
+ var l = U(w);
247
247
  return l === K ? void 0 : l;
248
248
  }
249
- return Reflect.get(c, p, h);
249
+ return Reflect.get(c, b, f);
250
250
  },
251
- getOwnPropertyDescriptor(c, p) {
252
- var h = Reflect.getOwnPropertyDescriptor(c, p);
253
- if (h && "value" in h) {
254
- var m = n.get(p);
255
- m && (h.value = U(m));
256
- } else if (h === void 0) {
257
- var s = n.get(p), l = s == null ? void 0 : s.v;
258
- if (s !== void 0 && l !== K)
251
+ getOwnPropertyDescriptor(c, b) {
252
+ var f = Reflect.getOwnPropertyDescriptor(c, b);
253
+ if (f && "value" in f) {
254
+ var w = s.get(b);
255
+ w && (f.value = U(w));
256
+ } else if (f === void 0) {
257
+ var n = s.get(b), l = n == null ? void 0 : n.v;
258
+ if (n !== void 0 && l !== K)
259
259
  return {
260
260
  enumerable: true,
261
261
  configurable: true,
@@ -263,53 +263,53 @@ function De(t, e = null, i) {
263
263
  writable: true
264
264
  };
265
265
  }
266
- return h;
266
+ return f;
267
267
  },
268
- has(c, p) {
268
+ has(c, b) {
269
269
  var _a2;
270
- if (p === dt)
270
+ if (b === dt)
271
271
  return true;
272
- var h = n.get(p), m = h !== void 0 && h.v !== K || Reflect.has(c, p);
273
- if (h !== void 0 || D !== null && (!m || ((_a2 = ze(c, p)) == null ? void 0 : _a2.writable))) {
274
- h === void 0 && (h = se(m ? De(c[p], b) : K), n.set(p, h));
275
- var s = U(h);
276
- if (s === K)
272
+ var f = s.get(b), w = f !== void 0 && f.v !== K || Reflect.has(c, b);
273
+ if (f !== void 0 || D !== null && (!w || ((_a2 = ze(c, b)) == null ? void 0 : _a2.writable))) {
274
+ f === void 0 && (f = ne(w ? De(c[b], p) : K), s.set(b, f));
275
+ var n = U(f);
276
+ if (n === K)
277
277
  return false;
278
278
  }
279
- return m;
279
+ return w;
280
280
  },
281
- set(c, p, h, m) {
281
+ set(c, b, f, w) {
282
282
  var _a2;
283
- var s = n.get(p), l = p in c;
284
- if (o && p === "length")
285
- for (var a = h; a < /** @type {Source<number>} */
286
- s.v; a += 1) {
287
- var u = n.get(a + "");
288
- u !== void 0 ? q(u, K) : a in c && (u = se(K), n.set(a + "", u));
283
+ var n = s.get(b), l = b in c;
284
+ if (o && b === "length")
285
+ for (var a = f; a < /** @type {Source<number>} */
286
+ n.v; a += 1) {
287
+ var u = s.get(a + "");
288
+ u !== void 0 ? H(u, K) : a in c && (u = ne(K), s.set(a + "", u));
289
289
  }
290
- s === void 0 ? (!l || ((_a2 = ze(c, p)) == null ? void 0 : _a2.writable)) && (s = se(void 0), q(s, De(h, b)), n.set(p, s)) : (l = s.v !== K, q(s, De(h, b)));
291
- var f = Reflect.getOwnPropertyDescriptor(c, p);
292
- if ((f == null ? void 0 : f.set) && f.set.call(m, h), !l) {
293
- if (o && typeof p == "string") {
290
+ n === void 0 ? (!l || ((_a2 = ze(c, b)) == null ? void 0 : _a2.writable)) && (n = ne(void 0), H(n, De(f, p)), s.set(b, n)) : (l = n.v !== K, H(n, De(f, p)));
291
+ var h = Reflect.getOwnPropertyDescriptor(c, b);
292
+ if ((h == null ? void 0 : h.set) && h.set.call(w, f), !l) {
293
+ if (o && typeof b == "string") {
294
294
  var $ = (
295
295
  /** @type {Source<number>} */
296
- n.get("length")
297
- ), A = Number(p);
298
- Number.isInteger(A) && A >= $.v && q($, A + 1);
296
+ s.get("length")
297
+ ), A = Number(b);
298
+ Number.isInteger(A) && A >= $.v && H($, A + 1);
299
299
  }
300
- ni(d);
300
+ si(d);
301
301
  }
302
302
  return true;
303
303
  },
304
304
  ownKeys(c) {
305
305
  U(d);
306
- var p = Reflect.ownKeys(c).filter((s) => {
307
- var l = n.get(s);
306
+ var b = Reflect.ownKeys(c).filter((n) => {
307
+ var l = s.get(n);
308
308
  return l === void 0 || l.v !== K;
309
309
  });
310
- for (var [h, m] of n)
311
- m.v !== K && !(h in c) && p.push(h);
312
- return p;
310
+ for (var [f, w] of s)
311
+ w.v !== K && !(f in c) && b.push(f);
312
+ return b;
313
313
  },
314
314
  setPrototypeOf() {
315
315
  kr();
@@ -317,13 +317,13 @@ function De(t, e = null, i) {
317
317
  }
318
318
  );
319
319
  }
320
- function ni(t, e = 1) {
321
- q(t, t.v + e);
320
+ function si(t, e = 1) {
321
+ H(t, t.v + e);
322
322
  }
323
- var si, Ri, $i, Ai;
323
+ var ni, Ri, $i, Ai;
324
324
  function It() {
325
- if (si === void 0) {
326
- si = window, Ri = /Firefox/.test(navigator.userAgent);
325
+ if (ni === void 0) {
326
+ ni = window, Ri = /Firefox/.test(navigator.userAgent);
327
327
  var t = Element.prototype, e = Node.prototype;
328
328
  $i = ze(e, "firstChild").get, Ai = ze(e, "nextSibling").get, t.__click = void 0, t.__className = void 0, t.__attributes = null, t.__styles = null, t.__e = void 0, Text.prototype.__t = void 0;
329
329
  }
@@ -339,8 +339,8 @@ function _t(t) {
339
339
  function Dt(t) {
340
340
  return Ai.call(t);
341
341
  }
342
- function Nt(t, e) {
343
- if (!J)
342
+ function Pt(t, e) {
343
+ if (!Q)
344
344
  return /* @__PURE__ */ _t(t);
345
345
  var i = (
346
346
  /** @type {TemplateNode} */
@@ -351,12 +351,12 @@ function Nt(t, e) {
351
351
  function Lr(t) {
352
352
  t.textContent = "";
353
353
  }
354
- let ct = false, xt = false, yt = null, ft = false, Yt = false;
354
+ let ct = false, xt = false, yt = null, ht = false, Yt = false;
355
355
  function oi(t) {
356
356
  Yt = t;
357
357
  }
358
358
  let et = [];
359
- let k = null, X = false;
359
+ let k = null, Z = false;
360
360
  function ge(t) {
361
361
  k = t;
362
362
  }
@@ -368,11 +368,11 @@ let oe = null;
368
368
  function Fr(t) {
369
369
  oe = t;
370
370
  }
371
- let P = null, V = 0, de = null;
371
+ let N = null, q = 0, de = null;
372
372
  function Mr(t) {
373
373
  de = t;
374
374
  }
375
- let Li = 1, Ct = 0, we = false;
375
+ let Li = 1, Ct = 0, me = false;
376
376
  function Fi() {
377
377
  return ++Li;
378
378
  }
@@ -382,20 +382,20 @@ function Tt(t) {
382
382
  if ((e & Ce) !== 0)
383
383
  return true;
384
384
  if ((e & Ke) !== 0) {
385
- var i = t.deps, r = (e & G) !== 0;
385
+ var i = t.deps, r = (e & Y) !== 0;
386
386
  if (i !== null) {
387
- var n, o, d = (e & pt) !== 0, b = r && D !== null && !we, c = i.length;
388
- if (d || b) {
389
- var p = (
387
+ var s, o, d = (e & bt) !== 0, p = r && D !== null && !me, c = i.length;
388
+ if (d || p) {
389
+ var b = (
390
390
  /** @type {Derived} */
391
391
  t
392
- ), h = p.parent;
393
- for (n = 0; n < c; n++)
394
- o = i[n], (d || !((_a2 = o == null ? void 0 : o.reactions) == null ? void 0 : _a2.includes(p))) && (o.reactions ?? (o.reactions = [])).push(p);
395
- d && (p.f ^= pt), b && h !== null && (h.f & G) === 0 && (p.f ^= G);
392
+ ), f = b.parent;
393
+ for (s = 0; s < c; s++)
394
+ o = i[s], (d || !((_a2 = o == null ? void 0 : o.reactions) == null ? void 0 : _a2.includes(b))) && (o.reactions ?? (o.reactions = [])).push(b);
395
+ d && (b.f ^= bt), p && f !== null && (f.f & Y) === 0 && (b.f ^= Y);
396
396
  }
397
- for (n = 0; n < c; n++)
398
- if (o = i[n], Tt(
397
+ for (s = 0; s < c; s++)
398
+ if (o = i[s], Tt(
399
399
  /** @type {Derived} */
400
400
  o
401
401
  ) && Di(
@@ -404,86 +404,86 @@ function Tt(t) {
404
404
  ), o.wv > t.wv)
405
405
  return true;
406
406
  }
407
- (!r || D !== null && !we) && fe(t, H);
407
+ (!r || D !== null && !me) && he(t, j);
408
408
  }
409
409
  return false;
410
410
  }
411
- function Nr(t, e) {
411
+ function Pr(t, e) {
412
412
  for (var i = e; i !== null; ) {
413
- if ((i.f & bt) !== 0)
413
+ if ((i.f & pt) !== 0)
414
414
  try {
415
415
  i.fn(t);
416
416
  return;
417
417
  } catch {
418
- i.f ^= bt;
418
+ i.f ^= pt;
419
419
  }
420
420
  i = i.parent;
421
421
  }
422
422
  throw ct = false, t;
423
423
  }
424
- function Pr(t) {
425
- return (t.f & St) === 0 && (t.parent === null || (t.parent.f & bt) === 0);
424
+ function Nr(t) {
425
+ return (t.f & St) === 0 && (t.parent === null || (t.parent.f & pt) === 0);
426
426
  }
427
427
  function Rt(t, e, i, r) {
428
428
  if (ct) {
429
- if (i === null && (ct = false), Pr(e))
429
+ if (i === null && (ct = false), Nr(e))
430
430
  throw t;
431
431
  return;
432
432
  }
433
433
  i !== null && (ct = true);
434
434
  {
435
- Nr(t, e);
435
+ Pr(t, e);
436
436
  return;
437
437
  }
438
438
  }
439
439
  function Mi(t, e, i = true) {
440
440
  var r = t.reactions;
441
441
  if (r !== null)
442
- for (var n = 0; n < r.length; n++) {
443
- var o = r[n];
444
- (o.f & Z) !== 0 ? Mi(
442
+ for (var s = 0; s < r.length; s++) {
443
+ var o = r[s];
444
+ (o.f & J) !== 0 ? Mi(
445
445
  /** @type {Derived} */
446
446
  o,
447
447
  e,
448
448
  false
449
- ) : e === o && (i ? fe(o, Ce) : (o.f & H) !== 0 && fe(o, Ke), Zt(
449
+ ) : e === o && (i ? he(o, Ce) : (o.f & j) !== 0 && he(o, Ke), Zt(
450
450
  /** @type {Effect} */
451
451
  o
452
452
  ));
453
453
  }
454
454
  }
455
- function Ni(t) {
455
+ function Pi(t) {
456
456
  var _a2;
457
- var e = P, i = V, r = de, n = k, o = we, d = oe, b = B, c = X, p = t.f;
458
- P = /** @type {null | Value[]} */
459
- null, V = 0, de = null, we = (p & G) !== 0 && (X || !ft || k === null), k = (p & (ye | Ie)) === 0 ? t : null, oe = null, ai(t.ctx), X = false, Ct++;
457
+ var e = N, i = q, r = de, s = k, o = me, d = oe, p = B, c = Z, b = t.f;
458
+ N = /** @type {null | Value[]} */
459
+ null, q = 0, de = null, me = (b & Y) !== 0 && (Z || !ht || k === null), k = (b & (ye | Ie)) === 0 ? t : null, oe = null, ai(t.ctx), Z = false, Ct++;
460
460
  try {
461
- var h = (
461
+ var f = (
462
462
  /** @type {Function} */
463
463
  (0, t.fn)()
464
- ), m = t.deps;
465
- if (P !== null) {
466
- var s;
467
- if (Et(t, V), m !== null && V > 0)
468
- for (m.length = V + P.length, s = 0; s < P.length; s++)
469
- m[V + s] = P[s];
464
+ ), w = t.deps;
465
+ if (N !== null) {
466
+ var n;
467
+ if (Et(t, q), w !== null && q > 0)
468
+ for (w.length = q + N.length, n = 0; n < N.length; n++)
469
+ w[q + n] = N[n];
470
470
  else
471
- t.deps = m = P;
472
- if (!we)
473
- for (s = V; s < m.length; s++)
474
- ((_a2 = m[s]).reactions ?? (_a2.reactions = [])).push(t);
475
- } else m !== null && V < m.length && (Et(t, V), m.length = V);
476
- if (Hi() && de !== null && !X && m !== null && (t.f & (Z | Ke | Ce)) === 0)
477
- for (s = 0; s < /** @type {Source[]} */
478
- de.length; s++)
471
+ t.deps = w = N;
472
+ if (!me)
473
+ for (n = q; n < w.length; n++)
474
+ ((_a2 = w[n]).reactions ?? (_a2.reactions = [])).push(t);
475
+ } else w !== null && q < w.length && (Et(t, q), w.length = q);
476
+ if (Hi() && de !== null && !Z && w !== null && (t.f & (J | Ke | Ce)) === 0)
477
+ for (n = 0; n < /** @type {Source[]} */
478
+ de.length; n++)
479
479
  Mi(
480
- de[s],
480
+ de[n],
481
481
  /** @type {Effect} */
482
482
  t
483
483
  );
484
- return n !== null && Ct++, h;
484
+ return s !== null && Ct++, f;
485
485
  } finally {
486
- P = e, V = i, de = r, k = n, we = o, oe = d, ai(b), X = c;
486
+ N = e, q = i, de = r, k = s, me = o, oe = d, ai(p), Z = c;
487
487
  }
488
488
  }
489
489
  function Ur(t, e) {
@@ -491,14 +491,14 @@ function Ur(t, e) {
491
491
  if (i !== null) {
492
492
  var r = cr.call(i, t);
493
493
  if (r !== -1) {
494
- var n = i.length - 1;
495
- n === 0 ? i = e.reactions = null : (i[r] = i[n], i.pop());
494
+ var s = i.length - 1;
495
+ s === 0 ? i = e.reactions = null : (i[r] = i[s], i.pop());
496
496
  }
497
497
  }
498
- i === null && (e.f & Z) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
498
+ i === null && (e.f & J) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
499
499
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
500
500
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
501
- (P === null || !P.includes(e)) && (fe(e, Ke), (e.f & (G | pt)) === 0 && (e.f ^= pt), Si(
501
+ (N === null || !N.includes(e)) && (he(e, Ke), (e.f & (Y | bt)) === 0 && (e.f ^= bt), Si(
502
502
  /** @type {Derived} **/
503
503
  e
504
504
  ), Et(
@@ -516,19 +516,19 @@ function Et(t, e) {
516
516
  function Xt(t) {
517
517
  var e = t.f;
518
518
  if ((e & St) === 0) {
519
- fe(t, H);
520
- var i = D, r = B, n = ft;
521
- D = t, ft = true;
519
+ he(t, j);
520
+ var i = D, r = B, s = ht;
521
+ D = t, ht = true;
522
522
  try {
523
523
  (e & Ht) !== 0 ? Jr(t) : zi(t), Bi(t);
524
- var o = Ni(t);
524
+ var o = Pi(t);
525
525
  t.teardown = typeof o == "function" ? o : null, t.wv = Li;
526
- var d = t.deps, b;
526
+ var d = t.deps, p;
527
527
  ii && Tr && t.f & Ce;
528
528
  } catch (c) {
529
529
  Rt(c, t, i, r || t.ctx);
530
530
  } finally {
531
- ft = n, D = i;
531
+ ht = s, D = i;
532
532
  }
533
533
  }
534
534
  }
@@ -542,16 +542,16 @@ function Br() {
542
542
  throw t;
543
543
  }
544
544
  }
545
- function Pi() {
545
+ function Ni() {
546
546
  try {
547
547
  for (var t = 0; et.length > 0; ) {
548
548
  t++ > 1e3 && Br();
549
549
  var e = et, i = e.length;
550
550
  et = [];
551
551
  for (var r = 0; r < i; r++) {
552
- var n = e[r];
553
- (n.f & H) === 0 && (n.f ^= H);
554
- var o = Ir(n);
552
+ var s = e[r];
553
+ (s.f & j) === 0 && (s.f ^= j);
554
+ var o = Ir(s);
555
555
  zr(o);
556
556
  }
557
557
  }
@@ -567,44 +567,44 @@ function zr(t) {
567
567
  if ((r.f & (St | vt)) === 0)
568
568
  try {
569
569
  Tt(r) && (Xt(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null ? Ii(r) : r.fn = null));
570
- } catch (n) {
571
- Rt(n, r, null, r.ctx);
570
+ } catch (s) {
571
+ Rt(s, r, null, r.ctx);
572
572
  }
573
573
  }
574
574
  }
575
575
  function Zt(t) {
576
- xt || (xt = true, queueMicrotask(Pi));
576
+ xt || (xt = true, queueMicrotask(Ni));
577
577
  for (var e = yt = t; e.parent !== null; ) {
578
578
  e = e.parent;
579
579
  var i = e.f;
580
580
  if ((i & (Ie | ye)) !== 0) {
581
- if ((i & H) === 0) return;
582
- e.f ^= H;
581
+ if ((i & j) === 0) return;
582
+ e.f ^= j;
583
583
  }
584
584
  }
585
585
  et.push(e);
586
586
  }
587
587
  function Ir(t) {
588
588
  for (var e = [], i = t.first; i !== null; ) {
589
- var r = i.f, n = (r & ye) !== 0, o = n && (r & H) !== 0;
589
+ var r = i.f, s = (r & ye) !== 0, o = s && (r & j) !== 0;
590
590
  if (!o && (r & vt) === 0) {
591
591
  if ((r & vi) !== 0)
592
592
  e.push(i);
593
- else if (n)
594
- i.f ^= H;
593
+ else if (s)
594
+ i.f ^= j;
595
595
  else {
596
596
  var d = k;
597
597
  try {
598
598
  k = i, Tt(i) && Xt(i);
599
- } catch (p) {
600
- Rt(p, i, null, i.ctx);
599
+ } catch (b) {
600
+ Rt(b, i, null, i.ctx);
601
601
  } finally {
602
602
  k = d;
603
603
  }
604
604
  }
605
- var b = i.first;
606
- if (b !== null) {
607
- i = b;
605
+ var p = i.first;
606
+ if (p !== null) {
607
+ i = p;
608
608
  continue;
609
609
  }
610
610
  }
@@ -617,51 +617,51 @@ function Ir(t) {
617
617
  function Ye(t) {
618
618
  var e;
619
619
  for (ri(); et.length > 0; )
620
- xt = true, Pi(), ri();
620
+ xt = true, Ni(), ri();
621
621
  return (
622
622
  /** @type {T} */
623
623
  e
624
624
  );
625
625
  }
626
626
  function U(t) {
627
- var e = t.f, i = (e & Z) !== 0;
628
- if (k !== null && !X) {
627
+ var e = t.f, i = (e & J) !== 0;
628
+ if (k !== null && !Z) {
629
629
  oe !== null && oe.includes(t) && Sr();
630
630
  var r = k.deps;
631
- t.rv < Ct && (t.rv = Ct, P === null && r !== null && r[V] === t ? V++ : P === null ? P = [t] : (!we || !P.includes(t)) && P.push(t));
631
+ t.rv < Ct && (t.rv = Ct, N === null && r !== null && r[q] === t ? q++ : N === null ? N = [t] : (!me || !N.includes(t)) && N.push(t));
632
632
  } else if (i && /** @type {Derived} */
633
633
  t.deps === null && /** @type {Derived} */
634
634
  t.effects === null) {
635
- var n = (
635
+ var s = (
636
636
  /** @type {Derived} */
637
637
  t
638
- ), o = n.parent;
639
- o !== null && (o.f & G) === 0 && (n.f ^= G);
638
+ ), o = s.parent;
639
+ o !== null && (o.f & Y) === 0 && (s.f ^= Y);
640
640
  }
641
- return i && (n = /** @type {Derived} */
642
- t, Tt(n) && Di(n)), t.v;
641
+ return i && (s = /** @type {Derived} */
642
+ t, Tt(s) && Di(s)), t.v;
643
643
  }
644
644
  function $t(t) {
645
- var e = X;
645
+ var e = Z;
646
646
  try {
647
- return X = true, t();
647
+ return Z = true, t();
648
648
  } finally {
649
- X = e;
649
+ Z = e;
650
650
  }
651
651
  }
652
652
  const Kr = -7169;
653
- function fe(t, e) {
653
+ function he(t, e) {
654
654
  t.f = t.f & Kr | e;
655
655
  }
656
656
  function Wr(t) {
657
- D === null && k === null && xr(), k !== null && (k.f & G) !== 0 && D === null && _r(), Yt && gr();
657
+ D === null && k === null && xr(), k !== null && (k.f & Y) !== 0 && D === null && _r(), Yt && gr();
658
658
  }
659
659
  function Vr(t, e) {
660
660
  var i = e.last;
661
661
  i === null ? e.last = e.first = t : (i.next = t, t.prev = i, e.last = t);
662
662
  }
663
663
  function Te(t, e, i, r = true) {
664
- var n = (t & Ie) !== 0, o = D, d = {
664
+ var s = (t & Ie) !== 0, o = D, d = {
665
665
  ctx: B,
666
666
  deps: null,
667
667
  nodes_start: null,
@@ -671,7 +671,7 @@ function Te(t, e, i, r = true) {
671
671
  fn: e,
672
672
  last: null,
673
673
  next: null,
674
- parent: n ? null : o,
674
+ parent: s ? null : o,
675
675
  prev: null,
676
676
  teardown: null,
677
677
  transitions: null,
@@ -680,12 +680,12 @@ function Te(t, e, i, r = true) {
680
680
  if (i)
681
681
  try {
682
682
  Xt(d), d.f |= ar;
683
- } catch (p) {
684
- throw xe(d), p;
683
+ } catch (b) {
684
+ throw xe(d), b;
685
685
  }
686
686
  else e !== null && Zt(d);
687
- var b = i && d.deps === null && d.first === null && d.nodes_start === null && d.teardown === null && (d.f & (mi | bt)) === 0;
688
- if (!b && !n && r && (o !== null && Vr(d, o), k !== null && (k.f & Z) !== 0)) {
687
+ var p = i && d.deps === null && d.first === null && d.nodes_start === null && d.teardown === null && (d.f & (wi | pt)) === 0;
688
+ if (!p && !s && r && (o !== null && Vr(d, o), k !== null && (k.f & J) !== 0)) {
689
689
  var c = (
690
690
  /** @type {Derived} */
691
691
  k
@@ -696,7 +696,7 @@ function Te(t, e, i, r = true) {
696
696
  }
697
697
  function qr(t) {
698
698
  const e = Te(kt, null, false);
699
- return fe(e, H), e.teardown = t, e;
699
+ return he(e, j), e.teardown = t, e;
700
700
  }
701
701
  function Hr(t) {
702
702
  Wr();
@@ -774,8 +774,8 @@ function Jr(t) {
774
774
  function xe(t, e = true) {
775
775
  var i = false;
776
776
  if ((e || (t.f & ur) !== 0) && t.nodes_start !== null) {
777
- for (var r = t.nodes_start, n = t.nodes_end; r !== null; ) {
778
- var o = r === n ? null : (
777
+ for (var r = t.nodes_start, s = t.nodes_end; r !== null; ) {
778
+ var o = r === s ? null : (
779
779
  /** @type {TemplateNode} */
780
780
  /* @__PURE__ */ Dt(r)
781
781
  );
@@ -783,14 +783,14 @@ function xe(t, e = true) {
783
783
  }
784
784
  i = true;
785
785
  }
786
- zi(t, e && !i), Et(t, 0), fe(t, St);
786
+ zi(t, e && !i), Et(t, 0), he(t, St);
787
787
  var d = t.transitions;
788
788
  if (d !== null)
789
789
  for (const c of d)
790
790
  c.stop();
791
791
  Bi(t);
792
- var b = t.parent;
793
- b !== null && b.first !== null && Ii(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes_start = t.nodes_end = null;
792
+ var p = t.parent;
793
+ p !== null && p.first !== null && Ii(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes_start = t.nodes_end = null;
794
794
  }
795
795
  function Ii(t) {
796
796
  var e = t.parent, i = t.prev, r = t.next;
@@ -798,16 +798,16 @@ function Ii(t) {
798
798
  }
799
799
  function Qr(t, e) {
800
800
  var i = [];
801
- Ki(t, i, true), en(i, () => {
801
+ Ki(t, i, true), es(i, () => {
802
802
  xe(t), e && e();
803
803
  });
804
804
  }
805
- function en(t, e) {
805
+ function es(t, e) {
806
806
  var i = t.length;
807
807
  if (i > 0) {
808
808
  var r = () => --i || e();
809
- for (var n of t)
810
- n.out(r);
809
+ for (var s of t)
810
+ s.out(r);
811
811
  } else
812
812
  e();
813
813
  }
@@ -817,8 +817,8 @@ function Ki(t, e, i) {
817
817
  for (const d of t.transitions)
818
818
  (d.is_global || i) && e.push(d);
819
819
  for (var r = t.first; r !== null; ) {
820
- var n = r.next, o = (r.f & lr) !== 0 || (r.f & ye) !== 0;
821
- Ki(r, e, o ? i : false), r = n;
820
+ var s = r.next, o = (r.f & lr) !== 0 || (r.f & ye) !== 0;
821
+ Ki(r, e, o ? i : false), r = s;
822
822
  }
823
823
  }
824
824
  }
@@ -849,8 +849,8 @@ function qi(t) {
849
849
  var i = D, r = k;
850
850
  e.e = null;
851
851
  try {
852
- for (var n = 0; n < d.length; n++) {
853
- var o = d[n];
852
+ for (var s = 0; s < d.length; s++) {
853
+ var o = d[s];
854
854
  _e(o.effect), ge(o.reaction), Jt(o.fn);
855
855
  }
856
856
  } finally {
@@ -865,11 +865,11 @@ function qi(t) {
865
865
  function Hi() {
866
866
  return true;
867
867
  }
868
- const tn = ["touchstart", "touchmove"];
869
- function rn(t) {
870
- return tn.includes(t);
868
+ const ts = ["touchstart", "touchmove"];
869
+ function is(t) {
870
+ return ts.includes(t);
871
871
  }
872
- function nn(t) {
872
+ function rs(t) {
873
873
  var e = k, i = D;
874
874
  ge(null), _e(null);
875
875
  try {
@@ -879,22 +879,22 @@ function nn(t) {
879
879
  }
880
880
  }
881
881
  const ji = /* @__PURE__ */ new Set(), Kt = /* @__PURE__ */ new Set();
882
- function sn(t, e, i, r = {}) {
883
- function n(o) {
882
+ function ss(t, e, i, r = {}) {
883
+ function s(o) {
884
884
  if (r.capture || Xe.call(e, o), !o.cancelBubble)
885
- return nn(() => i == null ? void 0 : i.call(this, o));
885
+ return rs(() => i == null ? void 0 : i.call(this, o));
886
886
  }
887
887
  return t.startsWith("pointer") || t.startsWith("touch") || t === "wheel" ? jt(() => {
888
- e.addEventListener(t, n, r);
889
- }) : e.addEventListener(t, n, r), n;
888
+ e.addEventListener(t, s, r);
889
+ }) : e.addEventListener(t, s, r), s;
890
890
  }
891
- function lt(t, e, i, r, n) {
892
- var o = { capture: r, passive: n }, d = sn(t, e, i, o);
891
+ function lt(t, e, i, r, s) {
892
+ var o = { capture: r, passive: s }, d = ss(t, e, i, o);
893
893
  (e === document.body || e === window || e === document) && qr(() => {
894
894
  e.removeEventListener(t, d, o);
895
895
  });
896
896
  }
897
- function on(t) {
897
+ function ns(t) {
898
898
  for (var e = 0; e < t.length; e++)
899
899
  ji.add(t[e]);
900
900
  for (var i of Kt)
@@ -905,34 +905,34 @@ function Xe(t) {
905
905
  var e = this, i = (
906
906
  /** @type {Node} */
907
907
  e.ownerDocument
908
- ), r = t.type, n = ((_a2 = t.composedPath) == null ? void 0 : _a2.call(t)) || [], o = (
908
+ ), r = t.type, s = ((_a2 = t.composedPath) == null ? void 0 : _a2.call(t)) || [], o = (
909
909
  /** @type {null | Element} */
910
- n[0] || t.target
911
- ), d = 0, b = t.__root;
912
- if (b) {
913
- var c = n.indexOf(b);
910
+ s[0] || t.target
911
+ ), d = 0, p = t.__root;
912
+ if (p) {
913
+ var c = s.indexOf(p);
914
914
  if (c !== -1 && (e === document || e === /** @type {any} */
915
915
  window)) {
916
916
  t.__root = e;
917
917
  return;
918
918
  }
919
- var p = n.indexOf(e);
920
- if (p === -1)
919
+ var b = s.indexOf(e);
920
+ if (b === -1)
921
921
  return;
922
- c <= p && (d = c);
922
+ c <= b && (d = c);
923
923
  }
924
924
  if (o = /** @type {Element} */
925
- n[d] || t.target, o !== e) {
926
- wt(t, "currentTarget", {
925
+ s[d] || t.target, o !== e) {
926
+ mt(t, "currentTarget", {
927
927
  configurable: true,
928
928
  get() {
929
929
  return o || i;
930
930
  }
931
931
  });
932
- var h = k, m = D;
932
+ var f = k, w = D;
933
933
  ge(null), _e(null);
934
934
  try {
935
- for (var s, l = []; o !== null; ) {
935
+ for (var n, l = []; o !== null; ) {
936
936
  var a = o.assignedSlot || o.parentNode || /** @type {any} */
937
937
  o.host || null;
938
938
  try {
@@ -941,31 +941,31 @@ function Xe(t) {
941
941
  o.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
942
942
  // -> the target could not have been disabled because it emits the event in the first place
943
943
  t.target === o))
944
- if (wi(u)) {
945
- var [f, ...$] = u;
946
- f.apply(o, [t, ...$]);
944
+ if (mi(u)) {
945
+ var [h, ...$] = u;
946
+ h.apply(o, [t, ...$]);
947
947
  } else
948
948
  u.call(o, t);
949
949
  } catch (A) {
950
- s ? l.push(A) : s = A;
950
+ n ? l.push(A) : n = A;
951
951
  }
952
952
  if (t.cancelBubble || a === e || a === null)
953
953
  break;
954
954
  o = a;
955
955
  }
956
- if (s) {
956
+ if (n) {
957
957
  for (let A of l)
958
958
  queueMicrotask(() => {
959
959
  throw A;
960
960
  });
961
- throw s;
961
+ throw n;
962
962
  }
963
963
  } finally {
964
- t.__root = e, delete t.currentTarget, ge(h), _e(m);
964
+ t.__root = e, delete t.currentTarget, ge(f), _e(w);
965
965
  }
966
966
  }
967
967
  }
968
- function an(t) {
968
+ function os(t) {
969
969
  var e = document.createElement("template");
970
970
  return e.innerHTML = t, e.content;
971
971
  }
@@ -977,12 +977,12 @@ function Wt(t, e) {
977
977
  i.nodes_start === null && (i.nodes_start = t, i.nodes_end = e);
978
978
  }
979
979
  // @__NO_SIDE_EFFECTS__
980
- function ln(t, e) {
981
- var i = (e & nr) !== 0, r, n = !t.startsWith("<!>");
980
+ function as(t, e) {
981
+ var i = (e & sr) !== 0, r, s = !t.startsWith("<!>");
982
982
  return () => {
983
- if (J)
983
+ if (Q)
984
984
  return Wt(I, null), I;
985
- r === void 0 && (r = an(n ? t : "<!>" + t), r = /** @type {Node} */
985
+ r === void 0 && (r = os(s ? t : "<!>" + t), r = /** @type {Node} */
986
986
  /* @__PURE__ */ _t(r));
987
987
  var o = (
988
988
  /** @type {TemplateNode} */
@@ -992,7 +992,7 @@ function ln(t, e) {
992
992
  };
993
993
  }
994
994
  function Gi(t, e) {
995
- if (J) {
995
+ if (Q) {
996
996
  D.nodes_end = I, Ti();
997
997
  return;
998
998
  }
@@ -1004,15 +1004,15 @@ function Gi(t, e) {
1004
1004
  function Yi(t, e) {
1005
1005
  return Xi(t, e);
1006
1006
  }
1007
- function un(t, e) {
1007
+ function ls(t, e) {
1008
1008
  It(), e.intro = e.intro ?? false;
1009
- const i = e.target, r = J, n = I;
1009
+ const i = e.target, r = Q, s = I;
1010
1010
  try {
1011
1011
  for (var o = (
1012
1012
  /** @type {TemplateNode} */
1013
1013
  /* @__PURE__ */ _t(i)
1014
1014
  ); o && (o.nodeType !== 8 || /** @type {Comment} */
1015
- o.data !== sr); )
1015
+ o.data !== nr); )
1016
1016
  o = /** @type {TemplateNode} */
1017
1017
  /* @__PURE__ */ Dt(o);
1018
1018
  if (!o)
@@ -1032,62 +1032,62 @@ function un(t, e) {
1032
1032
  return e.recover === false && Cr(), It(), Lr(i), at(false), Yi(t, e);
1033
1033
  throw d;
1034
1034
  } finally {
1035
- at(r), gt(n);
1035
+ at(r), gt(s);
1036
1036
  }
1037
1037
  }
1038
1038
  const Ue = /* @__PURE__ */ new Map();
1039
- function Xi(t, { target: e, anchor: i, props: r = {}, events: n, context: o, intro: d = true }) {
1039
+ function Xi(t, { target: e, anchor: i, props: r = {}, events: s, context: o, intro: d = true }) {
1040
1040
  It();
1041
- var b = /* @__PURE__ */ new Set(), c = (m) => {
1042
- for (var s = 0; s < m.length; s++) {
1043
- var l = m[s];
1044
- if (!b.has(l)) {
1045
- b.add(l);
1046
- var a = rn(l);
1041
+ var p = /* @__PURE__ */ new Set(), c = (w) => {
1042
+ for (var n = 0; n < w.length; n++) {
1043
+ var l = w[n];
1044
+ if (!p.has(l)) {
1045
+ p.add(l);
1046
+ var a = is(l);
1047
1047
  e.addEventListener(l, Xe, { passive: a });
1048
1048
  var u = Ue.get(l);
1049
1049
  u === void 0 ? (document.addEventListener(l, Xe, { passive: a }), Ue.set(l, 1)) : Ue.set(l, u + 1);
1050
1050
  }
1051
1051
  }
1052
1052
  };
1053
- c(fr(ji)), Kt.add(c);
1054
- var p = void 0, h = Gr(() => {
1055
- var m = i ?? e.appendChild(Oi());
1053
+ c(hr(ji)), Kt.add(c);
1054
+ var b = void 0, f = Gr(() => {
1055
+ var w = i ?? e.appendChild(Oi());
1056
1056
  return Zr(() => {
1057
1057
  if (o) {
1058
1058
  Vi({});
1059
- var s = (
1059
+ var n = (
1060
1060
  /** @type {ComponentContext} */
1061
1061
  B
1062
1062
  );
1063
- s.c = o;
1063
+ n.c = o;
1064
1064
  }
1065
- n && (r.$$events = n), J && Wt(
1065
+ s && (r.$$events = s), Q && Wt(
1066
1066
  /** @type {TemplateNode} */
1067
- m,
1067
+ w,
1068
1068
  null
1069
- ), p = t(m, r) || {}, J && (D.nodes_end = I), o && qi();
1069
+ ), b = t(w, r) || {}, Q && (D.nodes_end = I), o && qi();
1070
1070
  }), () => {
1071
1071
  var _a2;
1072
- for (var s of b) {
1073
- e.removeEventListener(s, Xe);
1072
+ for (var n of p) {
1073
+ e.removeEventListener(n, Xe);
1074
1074
  var l = (
1075
1075
  /** @type {number} */
1076
- Ue.get(s)
1076
+ Ue.get(n)
1077
1077
  );
1078
- --l === 0 ? (document.removeEventListener(s, Xe), Ue.delete(s)) : Ue.set(s, l);
1078
+ --l === 0 ? (document.removeEventListener(n, Xe), Ue.delete(n)) : Ue.set(n, l);
1079
1079
  }
1080
- Kt.delete(c), m !== i && ((_a2 = m.parentNode) == null ? void 0 : _a2.removeChild(m));
1080
+ Kt.delete(c), w !== i && ((_a2 = w.parentNode) == null ? void 0 : _a2.removeChild(w));
1081
1081
  };
1082
1082
  });
1083
- return Vt.set(p, h), p;
1083
+ return Vt.set(b, f), b;
1084
1084
  }
1085
1085
  let Vt = /* @__PURE__ */ new WeakMap();
1086
- function dn(t, e) {
1086
+ function us(t, e) {
1087
1087
  const i = Vt.get(t);
1088
1088
  return i ? (Vt.delete(t), i(e)) : Promise.resolve();
1089
1089
  }
1090
- function cn(t, e) {
1090
+ function ds(t, e) {
1091
1091
  jt(() => {
1092
1092
  var i = t.getRootNode(), r = (
1093
1093
  /** @type {ShadowRoot} */
@@ -1101,50 +1101,50 @@ function cn(t, e) {
1101
1101
  )
1102
1102
  );
1103
1103
  if (!r.querySelector("#" + e.hash)) {
1104
- const n = document.createElement("style");
1105
- n.id = e.hash, n.textContent = e.code, r.appendChild(n);
1104
+ const s = document.createElement("style");
1105
+ s.id = e.hash, s.textContent = e.code, r.appendChild(s);
1106
1106
  }
1107
1107
  });
1108
1108
  }
1109
1109
  const li = [...`
1110
1110
  \r\f\xA0\v\uFEFF`];
1111
- function fn(t, e, i) {
1111
+ function cs(t, e, i) {
1112
1112
  var r = t == null ? "" : "" + t;
1113
1113
  if (r = r ? r + " " + e : e, i) {
1114
- for (var n in i)
1115
- if (i[n])
1116
- r = r ? r + " " + n : n;
1114
+ for (var s in i)
1115
+ if (i[s])
1116
+ r = r ? r + " " + s : s;
1117
1117
  else if (r.length)
1118
- for (var o = n.length, d = 0; (d = r.indexOf(n, d)) >= 0; ) {
1119
- var b = d + o;
1120
- (d === 0 || li.includes(r[d - 1])) && (b === r.length || li.includes(r[b])) ? r = (d === 0 ? "" : r.substring(0, d)) + r.substring(b + 1) : d = b;
1118
+ for (var o = s.length, d = 0; (d = r.indexOf(s, d)) >= 0; ) {
1119
+ var p = d + o;
1120
+ (d === 0 || li.includes(r[d - 1])) && (p === r.length || li.includes(r[p])) ? r = (d === 0 ? "" : r.substring(0, d)) + r.substring(p + 1) : d = p;
1121
1121
  }
1122
1122
  }
1123
1123
  return r === "" ? null : r;
1124
1124
  }
1125
- function hn(t, e, i, r, n, o) {
1125
+ function hs(t, e, i, r, s, o) {
1126
1126
  var d = t.__className;
1127
- if (J || d !== i) {
1128
- var b = fn(i, r, o);
1129
- (!J || b !== t.getAttribute("class")) && (b == null ? t.removeAttribute("class") : t.className = b), t.__className = i;
1127
+ if (Q || d !== i) {
1128
+ var p = cs(i, r, o);
1129
+ (!Q || p !== t.getAttribute("class")) && (p == null ? t.removeAttribute("class") : t.className = p), t.__className = i;
1130
1130
  } else if (o)
1131
1131
  for (var c in o) {
1132
- var p = !!o[c];
1133
- (n == null || p !== !!n[c]) && t.classList.toggle(c, p);
1132
+ var b = !!o[c];
1133
+ (s == null || b !== !!s[c]) && t.classList.toggle(c, b);
1134
1134
  }
1135
1135
  return o;
1136
1136
  }
1137
1137
  function ui(t, e, i, r) {
1138
- var n = t.__attributes ?? (t.__attributes = {});
1139
- J && (n[e] = t.getAttribute(e)), n[e] !== (n[e] = i) && ("__styles" in t && (t.__styles = {}), i == null ? t.removeAttribute(e) : typeof i != "string" && bn(t).includes(e) ? t[e] = i : t.setAttribute(e, i));
1138
+ var s = t.__attributes ?? (t.__attributes = {});
1139
+ Q && (s[e] = t.getAttribute(e)), s[e] !== (s[e] = i) && ("__styles" in t && (t.__styles = {}), i == null ? t.removeAttribute(e) : typeof i != "string" && fs(t).includes(e) ? t[e] = i : t.setAttribute(e, i));
1140
1140
  }
1141
1141
  var di = /* @__PURE__ */ new Map();
1142
- function bn(t) {
1142
+ function fs(t) {
1143
1143
  var e = di.get(t.nodeName);
1144
1144
  if (e) return e;
1145
1145
  di.set(t.nodeName, e = []);
1146
- for (var i, r = t, n = Element.prototype; n !== r; ) {
1147
- i = hr(r);
1146
+ for (var i, r = t, s = Element.prototype; s !== r; ) {
1147
+ i = fr(r);
1148
1148
  for (var o in i)
1149
1149
  i[o].set && e.push(o);
1150
1150
  r = gi(r);
@@ -1154,12 +1154,12 @@ function bn(t) {
1154
1154
  function ci(t, e) {
1155
1155
  return t === e || (t == null ? void 0 : t[dt]) === e;
1156
1156
  }
1157
- function Pt(t = {}, e, i, r) {
1157
+ function Nt(t = {}, e, i, r) {
1158
1158
  return Jt(() => {
1159
- var n, o;
1159
+ var s, o;
1160
1160
  return Ui(() => {
1161
- n = o, o = [], $t(() => {
1162
- t !== i(...o) && (e(t, ...o), n && ci(i(...n), t) && e(null, ...n));
1161
+ s = o, o = [], $t(() => {
1162
+ t !== i(...o) && (e(t, ...o), s && ci(i(...s), t) && e(null, ...s));
1163
1163
  });
1164
1164
  }), () => {
1165
1165
  jt(() => {
@@ -1177,41 +1177,41 @@ function Zi(t) {
1177
1177
  );
1178
1178
  });
1179
1179
  }
1180
- function pn(t) {
1180
+ function ps(t) {
1181
1181
  B === null && Wi(), Zi(() => () => $t(t));
1182
1182
  }
1183
1183
  function ut(t, e, i, r) {
1184
- var n;
1185
- n = /** @type {V} */
1184
+ var s;
1185
+ s = /** @type {V} */
1186
1186
  t[e];
1187
1187
  var o = (
1188
1188
  /** @type {V} */
1189
1189
  r
1190
- ), d = true, b = false, c = () => (b = true, d && (d = false, o = /** @type {V} */
1191
- r), o), p;
1192
- p = () => {
1190
+ ), d = true, p = false, c = () => (p = true, d && (d = false, o = /** @type {V} */
1191
+ r), o), b;
1192
+ b = () => {
1193
1193
  var l = (
1194
1194
  /** @type {V} */
1195
1195
  t[e]
1196
1196
  );
1197
- return l === void 0 ? c() : (d = true, b = false, l);
1197
+ return l === void 0 ? c() : (d = true, p = false, l);
1198
1198
  };
1199
- var h = false, m = /* @__PURE__ */ Ci(n), s = /* @__PURE__ */ ki(() => {
1200
- var l = p(), a = U(m);
1201
- return h ? (h = false, a) : m.v = l;
1199
+ var f = false, w = /* @__PURE__ */ Ci(s), n = /* @__PURE__ */ ki(() => {
1200
+ var l = b(), a = U(w);
1201
+ return f ? (f = false, a) : w.v = l;
1202
1202
  });
1203
1203
  return function(l, a) {
1204
1204
  if (arguments.length > 0) {
1205
- const u = a ? U(s) : l;
1206
- return s.equals(u) || (h = true, q(m, u), b && o !== void 0 && (o = u), $t(() => U(s))), l;
1205
+ const u = a ? U(n) : l;
1206
+ return n.equals(u) || (f = true, H(w, u), p && o !== void 0 && (o = u), $t(() => U(n))), l;
1207
1207
  }
1208
- return U(s);
1208
+ return U(n);
1209
1209
  };
1210
1210
  }
1211
- function vn(t) {
1212
- return new mn(t);
1211
+ function bs(t) {
1212
+ return new vs(t);
1213
1213
  }
1214
- class mn {
1214
+ class vs {
1215
1215
  /**
1216
1216
  * @param {ComponentConstructorOptions & {
1217
1217
  * component: any;
@@ -1224,10 +1224,10 @@ class mn {
1224
1224
  __privateAdd(this, _e2);
1225
1225
  var _a2;
1226
1226
  var i = /* @__PURE__ */ new Map(), r = (o, d) => {
1227
- var b = /* @__PURE__ */ Ci(d);
1228
- return i.set(o, b), b;
1227
+ var p = /* @__PURE__ */ Ci(d);
1228
+ return i.set(o, p), p;
1229
1229
  };
1230
- const n = new Proxy(
1230
+ const s = new Proxy(
1231
1231
  { ...e.props || {}, $$events: {} },
1232
1232
  {
1233
1233
  get(o, d) {
@@ -1236,21 +1236,21 @@ class mn {
1236
1236
  has(o, d) {
1237
1237
  return d === dr ? true : (U(i.get(d) ?? r(d, Reflect.get(o, d))), Reflect.has(o, d));
1238
1238
  },
1239
- set(o, d, b) {
1240
- return q(i.get(d) ?? r(d, b), b), Reflect.set(o, d, b);
1239
+ set(o, d, p) {
1240
+ return H(i.get(d) ?? r(d, p), p), Reflect.set(o, d, p);
1241
1241
  }
1242
1242
  }
1243
1243
  );
1244
- __privateSet(this, _e2, (e.hydrate ? un : Yi)(e.component, {
1244
+ __privateSet(this, _e2, (e.hydrate ? ls : Yi)(e.component, {
1245
1245
  target: e.target,
1246
1246
  anchor: e.anchor,
1247
- props: n,
1247
+ props: s,
1248
1248
  context: e.context,
1249
1249
  intro: e.intro ?? false,
1250
1250
  recover: e.recover
1251
- })), (!((_a2 = e == null ? void 0 : e.props) == null ? void 0 : _a2.$$host) || e.sync === false) && Ye(), __privateSet(this, _t2, n.$$events);
1251
+ })), (!((_a2 = e == null ? void 0 : e.props) == null ? void 0 : _a2.$$host) || e.sync === false) && Ye(), __privateSet(this, _t2, s.$$events);
1252
1252
  for (const o of Object.keys(__privateGet(this, _e2)))
1253
- o === "$set" || o === "$destroy" || o === "$on" || wt(this, o, {
1253
+ o === "$set" || o === "$destroy" || o === "$on" || mt(this, o, {
1254
1254
  get() {
1255
1255
  return __privateGet(this, _e2)[o];
1256
1256
  },
@@ -1262,9 +1262,9 @@ class mn {
1262
1262
  });
1263
1263
  __privateGet(this, _e2).$set = /** @param {Record<string, any>} next */
1264
1264
  (o) => {
1265
- Object.assign(n, o);
1265
+ Object.assign(s, o);
1266
1266
  }, __privateGet(this, _e2).$destroy = () => {
1267
- dn(__privateGet(this, _e2));
1267
+ us(__privateGet(this, _e2));
1268
1268
  };
1269
1269
  }
1270
1270
  /** @param {Record<string, any>} props */
@@ -1278,11 +1278,11 @@ class mn {
1278
1278
  */
1279
1279
  $on(e, i) {
1280
1280
  __privateGet(this, _t2)[e] = __privateGet(this, _t2)[e] || [];
1281
- const r = (...n) => i.call(this, ...n);
1281
+ const r = (...s) => i.call(this, ...s);
1282
1282
  return __privateGet(this, _t2)[e].push(r), () => {
1283
1283
  __privateGet(this, _t2)[e] = __privateGet(this, _t2)[e].filter(
1284
1284
  /** @param {any} fn */
1285
- (n) => n !== r
1285
+ (s) => s !== r
1286
1286
  );
1287
1287
  };
1288
1288
  }
@@ -1349,23 +1349,23 @@ typeof HTMLElement == "function" && (Ji = class extends HTMLElement {
1349
1349
  async connectedCallback() {
1350
1350
  if (this.$$cn = true, !this.$$c) {
1351
1351
  let t = function(r) {
1352
- return (n) => {
1352
+ return (s) => {
1353
1353
  const o = document.createElement("slot");
1354
- r !== "default" && (o.name = r), Gi(n, o);
1354
+ r !== "default" && (o.name = r), Gi(s, o);
1355
1355
  };
1356
1356
  };
1357
1357
  if (await Promise.resolve(), !this.$$cn || this.$$c)
1358
1358
  return;
1359
- const e = {}, i = wn(this);
1359
+ const e = {}, i = ws(this);
1360
1360
  for (const r of this.$$s)
1361
1361
  r in i && (r === "default" && !this.$$d.children ? (this.$$d.children = t(r), e.default = true) : e[r] = t(r));
1362
1362
  for (const r of this.attributes) {
1363
- const n = this.$$g_p(r.name);
1364
- n in this.$$d || (this.$$d[n] = ht(n, r.value, this.$$p_d, "toProp"));
1363
+ const s = this.$$g_p(r.name);
1364
+ s in this.$$d || (this.$$d[s] = ft(s, r.value, this.$$p_d, "toProp"));
1365
1365
  }
1366
1366
  for (const r in this.$$p_d)
1367
1367
  !(r in this.$$d) && this[r] !== void 0 && (this.$$d[r] = this[r], delete this[r]);
1368
- this.$$c = vn({
1368
+ this.$$c = bs({
1369
1369
  component: this.$$ctor,
1370
1370
  target: this.shadowRoot || this,
1371
1371
  props: {
@@ -1377,24 +1377,24 @@ typeof HTMLElement == "function" && (Ji = class extends HTMLElement {
1377
1377
  Ui(() => {
1378
1378
  var _a2;
1379
1379
  this.$$r = true;
1380
- for (const r of mt(this.$$c)) {
1380
+ for (const r of wt(this.$$c)) {
1381
1381
  if (!((_a2 = this.$$p_d[r]) == null ? void 0 : _a2.reflect)) continue;
1382
1382
  this.$$d[r] = this.$$c[r];
1383
- const n = ht(
1383
+ const s = ft(
1384
1384
  r,
1385
1385
  this.$$d[r],
1386
1386
  this.$$p_d,
1387
1387
  "toAttribute"
1388
1388
  );
1389
- n == null ? this.removeAttribute(this.$$p_d[r].attribute || r) : this.setAttribute(this.$$p_d[r].attribute || r, n);
1389
+ s == null ? this.removeAttribute(this.$$p_d[r].attribute || r) : this.setAttribute(this.$$p_d[r].attribute || r, s);
1390
1390
  }
1391
1391
  this.$$r = false;
1392
1392
  });
1393
1393
  });
1394
1394
  for (const r in this.$$l)
1395
- for (const n of this.$$l[r]) {
1396
- const o = this.$$c.$on(r, n);
1397
- this.$$l_u.set(n, o);
1395
+ for (const s of this.$$l[r]) {
1396
+ const o = this.$$c.$on(r, s);
1397
+ this.$$l_u.set(s, o);
1398
1398
  }
1399
1399
  this.$$l = {};
1400
1400
  }
@@ -1408,7 +1408,7 @@ typeof HTMLElement == "function" && (Ji = class extends HTMLElement {
1408
1408
  */
1409
1409
  attributeChangedCallback(t, e, i) {
1410
1410
  var _a2;
1411
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = ht(t, i, this.$$p_d, "toProp"), (_a2 = this.$$c) == null ? void 0 : _a2.$set({ [t]: this.$$d[t] }));
1411
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = ft(t, i, this.$$p_d, "toProp"), (_a2 = this.$$c) == null ? void 0 : _a2.$set({ [t]: this.$$d[t] }));
1412
1412
  }
1413
1413
  disconnectedCallback() {
1414
1414
  this.$$cn = false, Promise.resolve().then(() => {
@@ -1419,18 +1419,18 @@ typeof HTMLElement == "function" && (Ji = class extends HTMLElement {
1419
1419
  * @param {string} attribute_name
1420
1420
  */
1421
1421
  $$g_p(t) {
1422
- return mt(this.$$p_d).find(
1422
+ return wt(this.$$p_d).find(
1423
1423
  (e) => this.$$p_d[e].attribute === t || !this.$$p_d[e].attribute && e.toLowerCase() === t
1424
1424
  ) || t;
1425
1425
  }
1426
1426
  });
1427
- function ht(t, e, i, r) {
1427
+ function ft(t, e, i, r) {
1428
1428
  var _a2;
1429
- const n = (_a2 = i[t]) == null ? void 0 : _a2.type;
1430
- if (e = n === "Boolean" && typeof e != "boolean" ? e != null : e, !r || !i[t])
1429
+ const s = (_a2 = i[t]) == null ? void 0 : _a2.type;
1430
+ if (e = s === "Boolean" && typeof e != "boolean" ? e != null : e, !r || !i[t])
1431
1431
  return e;
1432
1432
  if (r === "toAttribute")
1433
- switch (n) {
1433
+ switch (s) {
1434
1434
  case "Object":
1435
1435
  case "Array":
1436
1436
  return e == null ? null : JSON.stringify(e);
@@ -1442,7 +1442,7 @@ function ht(t, e, i, r) {
1442
1442
  return e;
1443
1443
  }
1444
1444
  else
1445
- switch (n) {
1445
+ switch (s) {
1446
1446
  case "Object":
1447
1447
  case "Array":
1448
1448
  return e && JSON.parse(e);
@@ -1455,7 +1455,7 @@ function ht(t, e, i, r) {
1455
1455
  return e;
1456
1456
  }
1457
1457
  }
1458
- function wn(t) {
1458
+ function ws(t) {
1459
1459
  const e = {};
1460
1460
  return t.childNodes.forEach((i) => {
1461
1461
  e[
@@ -1464,43 +1464,43 @@ function wn(t) {
1464
1464
  ] = true;
1465
1465
  }), e;
1466
1466
  }
1467
- function gn(t, e, i, r, n, o) {
1467
+ function ms(t, e, i, r, s, o) {
1468
1468
  let d = class extends Ji {
1469
1469
  constructor() {
1470
- super(t, i, n), this.$$p_d = e;
1470
+ super(t, i, s), this.$$p_d = e;
1471
1471
  }
1472
1472
  static get observedAttributes() {
1473
- return mt(e).map(
1474
- (b) => (e[b].attribute || b).toLowerCase()
1473
+ return wt(e).map(
1474
+ (p) => (e[p].attribute || p).toLowerCase()
1475
1475
  );
1476
1476
  }
1477
1477
  };
1478
- return mt(e).forEach((b) => {
1479
- wt(d.prototype, b, {
1478
+ return wt(e).forEach((p) => {
1479
+ mt(d.prototype, p, {
1480
1480
  get() {
1481
- return this.$$c && b in this.$$c ? this.$$c[b] : this.$$d[b];
1481
+ return this.$$c && p in this.$$c ? this.$$c[p] : this.$$d[p];
1482
1482
  },
1483
1483
  set(c) {
1484
1484
  var _a2;
1485
- c = ht(b, c, e), this.$$d[b] = c;
1486
- var p = this.$$c;
1487
- if (p) {
1488
- var h = (_a2 = ze(p, b)) == null ? void 0 : _a2.get;
1489
- h ? p[b] = c : p.$set({ [b]: c });
1485
+ c = ft(p, c, e), this.$$d[p] = c;
1486
+ var b = this.$$c;
1487
+ if (b) {
1488
+ var f = (_a2 = ze(b, p)) == null ? void 0 : _a2.get;
1489
+ f ? b[p] = c : b.$set({ [p]: c });
1490
1490
  }
1491
1491
  }
1492
1492
  });
1493
- }), r.forEach((b) => {
1494
- wt(d.prototype, b, {
1493
+ }), r.forEach((p) => {
1494
+ mt(d.prototype, p, {
1495
1495
  get() {
1496
1496
  var _a2;
1497
- return (_a2 = this.$$c) == null ? void 0 : _a2[b];
1497
+ return (_a2 = this.$$c) == null ? void 0 : _a2[p];
1498
1498
  }
1499
1499
  });
1500
1500
  }), o && (d = o(d)), t.element = /** @type {any} */
1501
1501
  d, d;
1502
1502
  }
1503
- class _n {
1503
+ class gs {
1504
1504
  constructor() {
1505
1505
  __publicField(this, "verbose", false);
1506
1506
  }
@@ -1511,15 +1511,15 @@ class _n {
1511
1511
  this.verbose && console.error(e, i);
1512
1512
  }
1513
1513
  }
1514
- const L = new _n();
1515
- function xn(t) {
1514
+ const L = new gs();
1515
+ function _s(t) {
1516
1516
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1517
1517
  }
1518
- var Ze = { exports: {} }, yn = Ze.exports, fi;
1519
- function Cn() {
1520
- return fi || (fi = 1, (function(t, e) {
1518
+ var Ze = { exports: {} }, xs = Ze.exports, hi;
1519
+ function ys() {
1520
+ return hi || (hi = 1, (function(t, e) {
1521
1521
  (function(i, r) {
1522
- var n = "1.0.41", o = "", d = "?", b = "function", c = "undefined", p = "object", h = "string", m = "major", s = "model", l = "name", a = "type", u = "vendor", f = "version", $ = "architecture", A = "console", w = "mobile", _ = "tablet", O = "smarttv", F = "wearable", Q = "embedded", ae = 500, Ee = "Amazon", he = "Apple", it = "ASUS", rt = "BlackBerry", ee = "Browser", Re = "Chrome", At = "Edge", $e = "Firefox", Ae = "Google", We = "Honor", nt = "Huawei", Ot = "Lenovo", Oe = "LG", Ve = "Microsoft", qe = "Motorola", Le = "Nvidia", st = "OnePlus", ke = "Opera", be = "OPPO", pe = "Samsung", He = "Sharp", te = "Sony", le = "Xiaomi", Fe = "Zebra", Me = "Facebook", j = "Chromium OS", v = "Mac OS", T = " Browser", M = function(y, C) {
1522
+ var s = "1.0.41", o = "", d = "?", p = "function", c = "undefined", b = "object", f = "string", w = "major", n = "model", l = "name", a = "type", u = "vendor", h = "version", $ = "architecture", A = "console", m = "mobile", _ = "tablet", O = "smarttv", F = "wearable", ee = "embedded", ae = 500, Ee = "Amazon", fe = "Apple", it = "ASUS", rt = "BlackBerry", te = "Browser", Re = "Chrome", At = "Edge", $e = "Firefox", Ae = "Google", We = "Honor", st = "Huawei", Ot = "Lenovo", Oe = "LG", Ve = "Microsoft", qe = "Motorola", Le = "Nvidia", nt = "OnePlus", ke = "Opera", pe = "OPPO", be = "Samsung", He = "Sharp", ie = "Sony", le = "Xiaomi", Fe = "Zebra", Me = "Facebook", G = "Chromium OS", v = "Mac OS", T = " Browser", M = function(y, C) {
1523
1523
  var x = {};
1524
1524
  for (var S in y)
1525
1525
  C[S] && C[S].length % 2 === 0 ? x[S] = C[S].concat(y[S]) : x[S] = y[S];
@@ -1529,26 +1529,26 @@ function Cn() {
1529
1529
  C[y[x].toUpperCase()] = y[x];
1530
1530
  return C;
1531
1531
  }, z = function(y, C) {
1532
- return typeof y === h ? N(C).indexOf(N(y)) !== -1 : false;
1533
- }, N = function(y) {
1532
+ return typeof y === f ? P(C).indexOf(P(y)) !== -1 : false;
1533
+ }, P = function(y) {
1534
1534
  return y.toLowerCase();
1535
1535
  }, ve = function(y) {
1536
- return typeof y === h ? y.replace(/[^\d\.]/g, o).split(".")[0] : r;
1537
- }, Ne = function(y, C) {
1538
- if (typeof y === h)
1536
+ return typeof y === f ? y.replace(/[^\d\.]/g, o).split(".")[0] : r;
1537
+ }, Pe = function(y, C) {
1538
+ if (typeof y === f)
1539
1539
  return y = y.replace(/^\s\s*/, o), typeof C === c ? y : y.substring(0, ae);
1540
1540
  }, je = function(y, C) {
1541
- for (var x = 0, S, ue, ie, E, g, re; x < C.length && !g; ) {
1541
+ for (var x = 0, S, ue, re, E, g, se; x < C.length && !g; ) {
1542
1542
  var Lt = C[x], ti = C[x + 1];
1543
1543
  for (S = ue = 0; S < Lt.length && !g && Lt[S]; )
1544
1544
  if (g = Lt[S++].exec(y), g)
1545
- for (ie = 0; ie < ti.length; ie++)
1546
- re = g[++ue], E = ti[ie], typeof E === p && E.length > 0 ? E.length === 2 ? typeof E[1] == b ? this[E[0]] = E[1].call(this, re) : this[E[0]] = E[1] : E.length === 3 ? typeof E[1] === b && !(E[1].exec && E[1].test) ? this[E[0]] = re ? E[1].call(this, re, E[2]) : r : this[E[0]] = re ? re.replace(E[1], E[2]) : r : E.length === 4 && (this[E[0]] = re ? E[3].call(this, re.replace(E[1], E[2])) : r) : this[E] = re || r;
1545
+ for (re = 0; re < ti.length; re++)
1546
+ se = g[++ue], E = ti[re], typeof E === b && E.length > 0 ? E.length === 2 ? typeof E[1] == p ? this[E[0]] = E[1].call(this, se) : this[E[0]] = E[1] : E.length === 3 ? typeof E[1] === p && !(E[1].exec && E[1].test) ? this[E[0]] = se ? E[1].call(this, se, E[2]) : r : this[E[0]] = se ? se.replace(E[1], E[2]) : r : E.length === 4 && (this[E[0]] = se ? E[3].call(this, se.replace(E[1], E[2])) : r) : this[E] = se || r;
1547
1547
  x += 2;
1548
1548
  }
1549
1549
  }, Ge = function(y, C) {
1550
1550
  for (var x in C)
1551
- if (typeof C[x] === p && C[x].length > 0) {
1551
+ if (typeof C[x] === b && C[x].length > 0) {
1552
1552
  for (var S = 0; S < C[x].length; S++)
1553
1553
  if (z(C[x][S], y))
1554
1554
  return x === d ? r : x;
@@ -1582,12 +1582,12 @@ function Cn() {
1582
1582
  /\b(?:crmo|crios)\/([\w\.]+)/i
1583
1583
  // Chrome for Android/iOS
1584
1584
  ],
1585
- [f, [l, "Chrome"]],
1585
+ [h, [l, "Chrome"]],
1586
1586
  [
1587
1587
  /edg(?:e|ios|a)?\/([\w\.]+)/i
1588
1588
  // Microsoft Edge
1589
1589
  ],
1590
- [f, [l, "Edge"]],
1590
+ [h, [l, "Edge"]],
1591
1591
  [
1592
1592
  // Presto based
1593
1593
  /(opera mini)\/([-\w\.]+)/i,
@@ -1597,33 +1597,33 @@ function Cn() {
1597
1597
  /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i
1598
1598
  // Opera
1599
1599
  ],
1600
- [l, f],
1600
+ [l, h],
1601
1601
  [
1602
1602
  /opios[\/ ]+([\w\.]+)/i
1603
1603
  // Opera mini on iphone >= 8.0
1604
1604
  ],
1605
- [f, [l, ke + " Mini"]],
1605
+ [h, [l, ke + " Mini"]],
1606
1606
  [
1607
1607
  /\bop(?:rg)?x\/([\w\.]+)/i
1608
1608
  // Opera GX
1609
1609
  ],
1610
- [f, [l, ke + " GX"]],
1610
+ [h, [l, ke + " GX"]],
1611
1611
  [
1612
1612
  /\bopr\/([\w\.]+)/i
1613
1613
  // Opera Webkit
1614
1614
  ],
1615
- [f, [l, ke]],
1615
+ [h, [l, ke]],
1616
1616
  [
1617
1617
  // Mixed
1618
1618
  /\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i
1619
1619
  // Baidu
1620
1620
  ],
1621
- [f, [l, "Baidu"]],
1621
+ [h, [l, "Baidu"]],
1622
1622
  [
1623
1623
  /\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i
1624
1624
  // Maxthon
1625
1625
  ],
1626
- [f, [l, "Maxthon"]],
1626
+ [h, [l, "Maxthon"]],
1627
1627
  [
1628
1628
  /(kindle)\/([\w\.]+)/i,
1629
1629
  // Kindle
@@ -1642,22 +1642,22 @@ function Cn() {
1642
1642
  /(weibo)__([\d\.]+)/i
1643
1643
  // Weibo
1644
1644
  ],
1645
- [l, f],
1645
+ [l, h],
1646
1646
  [
1647
1647
  /quark(?:pc)?\/([-\w\.]+)/i
1648
1648
  // Quark
1649
1649
  ],
1650
- [f, [l, "Quark"]],
1650
+ [h, [l, "Quark"]],
1651
1651
  [
1652
1652
  /\bddg\/([\w\.]+)/i
1653
1653
  // DuckDuckGo
1654
1654
  ],
1655
- [f, [l, "DuckDuckGo"]],
1655
+ [h, [l, "DuckDuckGo"]],
1656
1656
  [
1657
1657
  /(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i
1658
1658
  // UCBrowser
1659
1659
  ],
1660
- [f, [l, "UC" + ee]],
1660
+ [h, [l, "UC" + te]],
1661
1661
  [
1662
1662
  /microm.+\bqbcore\/([\w\.]+)/i,
1663
1663
  // WeChat Desktop for Windows Built-in Browser
@@ -1665,97 +1665,97 @@ function Cn() {
1665
1665
  /micromessenger\/([\w\.]+)/i
1666
1666
  // WeChat
1667
1667
  ],
1668
- [f, [l, "WeChat"]],
1668
+ [h, [l, "WeChat"]],
1669
1669
  [
1670
1670
  /konqueror\/([\w\.]+)/i
1671
1671
  // Konqueror
1672
1672
  ],
1673
- [f, [l, "Konqueror"]],
1673
+ [h, [l, "Konqueror"]],
1674
1674
  [
1675
1675
  /trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i
1676
1676
  // IE11
1677
1677
  ],
1678
- [f, [l, "IE"]],
1678
+ [h, [l, "IE"]],
1679
1679
  [
1680
1680
  /ya(?:search)?browser\/([\w\.]+)/i
1681
1681
  // Yandex
1682
1682
  ],
1683
- [f, [l, "Yandex"]],
1683
+ [h, [l, "Yandex"]],
1684
1684
  [
1685
1685
  /slbrowser\/([\w\.]+)/i
1686
1686
  // Smart Lenovo Browser
1687
1687
  ],
1688
- [f, [l, "Smart Lenovo " + ee]],
1688
+ [h, [l, "Smart Lenovo " + te]],
1689
1689
  [
1690
1690
  /(avast|avg)\/([\w\.]+)/i
1691
1691
  // Avast/AVG Secure Browser
1692
1692
  ],
1693
- [[l, /(.+)/, "$1 Secure " + ee], f],
1693
+ [[l, /(.+)/, "$1 Secure " + te], h],
1694
1694
  [
1695
1695
  /\bfocus\/([\w\.]+)/i
1696
1696
  // Firefox Focus
1697
1697
  ],
1698
- [f, [l, $e + " Focus"]],
1698
+ [h, [l, $e + " Focus"]],
1699
1699
  [
1700
1700
  /\bopt\/([\w\.]+)/i
1701
1701
  // Opera Touch
1702
1702
  ],
1703
- [f, [l, ke + " Touch"]],
1703
+ [h, [l, ke + " Touch"]],
1704
1704
  [
1705
1705
  /coc_coc\w+\/([\w\.]+)/i
1706
1706
  // Coc Coc Browser
1707
1707
  ],
1708
- [f, [l, "Coc Coc"]],
1708
+ [h, [l, "Coc Coc"]],
1709
1709
  [
1710
1710
  /dolfin\/([\w\.]+)/i
1711
1711
  // Dolphin
1712
1712
  ],
1713
- [f, [l, "Dolphin"]],
1713
+ [h, [l, "Dolphin"]],
1714
1714
  [
1715
1715
  /coast\/([\w\.]+)/i
1716
1716
  // Opera Coast
1717
1717
  ],
1718
- [f, [l, ke + " Coast"]],
1718
+ [h, [l, ke + " Coast"]],
1719
1719
  [
1720
1720
  /miuibrowser\/([\w\.]+)/i
1721
1721
  // MIUI Browser
1722
1722
  ],
1723
- [f, [l, "MIUI" + T]],
1723
+ [h, [l, "MIUI" + T]],
1724
1724
  [
1725
1725
  /fxios\/([\w\.-]+)/i
1726
1726
  // Firefox for iOS
1727
1727
  ],
1728
- [f, [l, $e]],
1728
+ [h, [l, $e]],
1729
1729
  [
1730
1730
  /\bqihoobrowser\/?([\w\.]*)/i
1731
1731
  // 360
1732
1732
  ],
1733
- [f, [l, "360"]],
1733
+ [h, [l, "360"]],
1734
1734
  [
1735
1735
  /\b(qq)\/([\w\.]+)/i
1736
1736
  // QQ
1737
1737
  ],
1738
- [[l, /(.+)/, "$1Browser"], f],
1738
+ [[l, /(.+)/, "$1Browser"], h],
1739
1739
  [
1740
1740
  /(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i
1741
1741
  ],
1742
- [[l, /(.+)/, "$1" + T], f],
1742
+ [[l, /(.+)/, "$1" + T], h],
1743
1743
  [
1744
1744
  // Oculus/Sailfish/HuaweiBrowser/VivoBrowser/PicoBrowser
1745
1745
  /samsungbrowser\/([\w\.]+)/i
1746
1746
  // Samsung Internet
1747
1747
  ],
1748
- [f, [l, pe + " Internet"]],
1748
+ [h, [l, be + " Internet"]],
1749
1749
  [
1750
1750
  /metasr[\/ ]?([\d\.]+)/i
1751
1751
  // Sogou Explorer
1752
1752
  ],
1753
- [f, [l, "Sogou Explorer"]],
1753
+ [h, [l, "Sogou Explorer"]],
1754
1754
  [
1755
1755
  /(sogou)mo\w+\/([\d\.]+)/i
1756
1756
  // Sogou Mobile
1757
1757
  ],
1758
- [[l, "Sogou Mobile"], f],
1758
+ [[l, "Sogou Mobile"], h],
1759
1759
  [
1760
1760
  /(electron)\/([\w\.]+) safari/i,
1761
1761
  // Electron-based App
@@ -1764,7 +1764,7 @@ function Cn() {
1764
1764
  /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i
1765
1765
  // QQ/2345
1766
1766
  ],
1767
- [l, f],
1767
+ [l, h],
1768
1768
  [
1769
1769
  /(lbbrowser|rekonq)/i,
1770
1770
  // LieBao Browser/Rekonq
@@ -1778,13 +1778,13 @@ function Cn() {
1778
1778
  /ome\/([\w\.]+).+qihu (360)[es]e/i
1779
1779
  // 360
1780
1780
  ],
1781
- [f, l],
1781
+ [h, l],
1782
1782
  [
1783
1783
  // WebView
1784
1784
  /((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i
1785
1785
  // Facebook App for iOS & Android
1786
1786
  ],
1787
- [[l, Me], f],
1787
+ [[l, Me], h],
1788
1788
  [
1789
1789
  /(Klarna)\/([\w\.]+)/i,
1790
1790
  // Klarna Shopping Browser for iOS & Android
@@ -1805,72 +1805,72 @@ function Cn() {
1805
1805
  /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i
1806
1806
  // Chromium/Instagram/Snapchat
1807
1807
  ],
1808
- [l, f],
1808
+ [l, h],
1809
1809
  [
1810
1810
  /\bgsa\/([\w\.]+) .*safari\//i
1811
1811
  // Google Search Appliance on iOS
1812
1812
  ],
1813
- [f, [l, "GSA"]],
1813
+ [h, [l, "GSA"]],
1814
1814
  [
1815
1815
  /musical_ly(?:.+app_?version\/|_)([\w\.]+)/i
1816
1816
  // TikTok
1817
1817
  ],
1818
- [f, [l, "TikTok"]],
1818
+ [h, [l, "TikTok"]],
1819
1819
  [
1820
1820
  /headlesschrome(?:\/([\w\.]+)| )/i
1821
1821
  // Chrome Headless
1822
1822
  ],
1823
- [f, [l, Re + " Headless"]],
1823
+ [h, [l, Re + " Headless"]],
1824
1824
  [
1825
1825
  / wv\).+(chrome)\/([\w\.]+)/i
1826
1826
  // Chrome WebView
1827
1827
  ],
1828
- [[l, Re + " WebView"], f],
1828
+ [[l, Re + " WebView"], h],
1829
1829
  [
1830
1830
  /droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i
1831
1831
  // Android Browser
1832
1832
  ],
1833
- [f, [l, "Android " + ee]],
1833
+ [h, [l, "Android " + te]],
1834
1834
  [
1835
1835
  /(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i
1836
1836
  // Chrome/OmniWeb/Arora/Tizen/Nokia
1837
1837
  ],
1838
- [l, f],
1838
+ [l, h],
1839
1839
  [
1840
1840
  /version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i
1841
1841
  // Mobile Safari
1842
1842
  ],
1843
- [f, [l, "Mobile Safari"]],
1843
+ [h, [l, "Mobile Safari"]],
1844
1844
  [
1845
1845
  /version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i
1846
1846
  // Safari & Safari Mobile
1847
1847
  ],
1848
- [f, l],
1848
+ [h, l],
1849
1849
  [
1850
1850
  /webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i
1851
1851
  // Safari < 3.0
1852
1852
  ],
1853
- [l, [f, Ge, rr]],
1853
+ [l, [h, Ge, rr]],
1854
1854
  [
1855
1855
  /(webkit|khtml)\/([\w\.]+)/i
1856
1856
  ],
1857
- [l, f],
1857
+ [l, h],
1858
1858
  [
1859
1859
  // Gecko based
1860
1860
  /(navigator|netscape\d?)\/([-\w\.]+)/i
1861
1861
  // Netscape
1862
1862
  ],
1863
- [[l, "Netscape"], f],
1863
+ [[l, "Netscape"], h],
1864
1864
  [
1865
1865
  /(wolvic|librewolf)\/([\w\.]+)/i
1866
1866
  // Wolvic/LibreWolf
1867
1867
  ],
1868
- [l, f],
1868
+ [l, h],
1869
1869
  [
1870
1870
  /mobile vr; rv:([\w\.]+)\).+firefox/i
1871
1871
  // Firefox Reality
1872
1872
  ],
1873
- [f, [l, $e + " Reality"]],
1873
+ [h, [l, $e + " Reality"]],
1874
1874
  [
1875
1875
  /ekiohf.+(flow)\/([\w\.]+)/i,
1876
1876
  // Flow
@@ -1890,12 +1890,12 @@ function Cn() {
1890
1890
  /\b(links) \(([\w\.]+)/i
1891
1891
  // Links
1892
1892
  ],
1893
- [l, [f, /_/g, "."]],
1893
+ [l, [h, /_/g, "."]],
1894
1894
  [
1895
1895
  /(cobalt)\/([\w\.]+)/i
1896
1896
  // Cobalt
1897
1897
  ],
1898
- [l, [f, /master.|lts./, ""]]
1898
+ [l, [h, /master.|lts./, ""]]
1899
1899
  ],
1900
1900
  cpu: [
1901
1901
  [
@@ -1929,7 +1929,7 @@ function Cn() {
1929
1929
  /((ppc|powerpc)(64)?)( mac|;|\))/i
1930
1930
  // PowerPC
1931
1931
  ],
1932
- [[$, /ower/, o, N]],
1932
+ [[$, /ower/, o, P]],
1933
1933
  [
1934
1934
  / sun4\w[;\)]/i
1935
1935
  // SPARC
@@ -1939,7 +1939,7 @@ function Cn() {
1939
1939
  /\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i
1940
1940
  // IA64, 68K, ARM/64, AVR/32, IRIX/64, MIPS/64, SPARC/64, PA-RISC
1941
1941
  ],
1942
- [[$, N]]
1942
+ [[$, P]]
1943
1943
  ],
1944
1944
  device: [
1945
1945
  [
@@ -1949,61 +1949,61 @@ function Cn() {
1949
1949
  // Samsung
1950
1950
  /\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
1951
1951
  ],
1952
- [s, [u, pe], [a, _]],
1952
+ [n, [u, be], [a, _]],
1953
1953
  [
1954
1954
  /\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,
1955
1955
  /samsung[- ]((?!sm-[lr])[-\w]+)/i,
1956
1956
  /sec-(sgh\w+)/i
1957
1957
  ],
1958
- [s, [u, pe], [a, w]],
1958
+ [n, [u, be], [a, m]],
1959
1959
  [
1960
1960
  // Apple
1961
1961
  /(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i
1962
1962
  // iPod/iPhone
1963
1963
  ],
1964
- [s, [u, he], [a, w]],
1964
+ [n, [u, fe], [a, m]],
1965
1965
  [
1966
1966
  /\((ipad);[-\w\),; ]+apple/i,
1967
1967
  // iPad
1968
1968
  /applecoremedia\/[\w\.]+ \((ipad)/i,
1969
1969
  /\b(ipad)\d\d?,\d\d?[;\]].+ios/i
1970
1970
  ],
1971
- [s, [u, he], [a, _]],
1971
+ [n, [u, fe], [a, _]],
1972
1972
  [
1973
1973
  /(macintosh);/i
1974
1974
  ],
1975
- [s, [u, he]],
1975
+ [n, [u, fe]],
1976
1976
  [
1977
1977
  // Sharp
1978
1978
  /\b(sh-?[altvz]?\d\d[a-ekm]?)/i
1979
1979
  ],
1980
- [s, [u, He], [a, w]],
1980
+ [n, [u, He], [a, m]],
1981
1981
  [
1982
1982
  // Honor
1983
1983
  /\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i
1984
1984
  ],
1985
- [s, [u, We], [a, _]],
1985
+ [n, [u, We], [a, _]],
1986
1986
  [
1987
1987
  /honor([-\w ]+)[;\)]/i
1988
1988
  ],
1989
- [s, [u, We], [a, w]],
1989
+ [n, [u, We], [a, m]],
1990
1990
  [
1991
1991
  // Huawei
1992
1992
  /\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
1993
1993
  ],
1994
- [s, [u, nt], [a, _]],
1994
+ [n, [u, st], [a, _]],
1995
1995
  [
1996
1996
  /(?:huawei)([-\w ]+)[;\)]/i,
1997
1997
  /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i
1998
1998
  ],
1999
- [s, [u, nt], [a, w]],
1999
+ [n, [u, st], [a, m]],
2000
2000
  [
2001
2001
  // Xiaomi
2002
2002
  /oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,
2003
2003
  /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i
2004
2004
  // Mi Pad tablets
2005
2005
  ],
2006
- [[s, /_/g, " "], [u, le], [a, _]],
2006
+ [[n, /_/g, " "], [u, le], [a, _]],
2007
2007
  [
2008
2008
  /\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,
2009
2009
  // Xiaomi POCO
@@ -2019,93 +2019,93 @@ function Cn() {
2019
2019
  // Xiaomi Mi
2020
2020
  / ([\w ]+) miui\/v?\d/i
2021
2021
  ],
2022
- [[s, /_/g, " "], [u, le], [a, w]],
2022
+ [[n, /_/g, " "], [u, le], [a, m]],
2023
2023
  [
2024
2024
  // OPPO
2025
2025
  /; (\w+) bui.+ oppo/i,
2026
2026
  /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i
2027
2027
  ],
2028
- [s, [u, be], [a, w]],
2028
+ [n, [u, pe], [a, m]],
2029
2029
  [
2030
2030
  /\b(opd2(\d{3}a?))(?: bui|\))/i
2031
2031
  ],
2032
- [s, [u, Ge, { OnePlus: ["304", "403", "203"], "*": be }], [a, _]],
2032
+ [n, [u, Ge, { OnePlus: ["304", "403", "203"], "*": pe }], [a, _]],
2033
2033
  [
2034
2034
  // Vivo
2035
2035
  /vivo (\w+)(?: bui|\))/i,
2036
2036
  /\b(v[12]\d{3}\w?[at])(?: bui|;)/i
2037
2037
  ],
2038
- [s, [u, "Vivo"], [a, w]],
2038
+ [n, [u, "Vivo"], [a, m]],
2039
2039
  [
2040
2040
  // Realme
2041
2041
  /\b(rmx[1-3]\d{3})(?: bui|;|\))/i
2042
2042
  ],
2043
- [s, [u, "Realme"], [a, w]],
2043
+ [n, [u, "Realme"], [a, m]],
2044
2044
  [
2045
2045
  // Motorola
2046
2046
  /\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,
2047
2047
  /\bmot(?:orola)?[- ](\w*)/i,
2048
2048
  /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i
2049
2049
  ],
2050
- [s, [u, qe], [a, w]],
2050
+ [n, [u, qe], [a, m]],
2051
2051
  [
2052
2052
  /\b(mz60\d|xoom[2 ]{0,2}) build\//i
2053
2053
  ],
2054
- [s, [u, qe], [a, _]],
2054
+ [n, [u, qe], [a, _]],
2055
2055
  [
2056
2056
  // LG
2057
2057
  /((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i
2058
2058
  ],
2059
- [s, [u, Oe], [a, _]],
2059
+ [n, [u, Oe], [a, _]],
2060
2060
  [
2061
2061
  /(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,
2062
2062
  /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,
2063
2063
  /\blg-?([\d\w]+) bui/i
2064
2064
  ],
2065
- [s, [u, Oe], [a, w]],
2065
+ [n, [u, Oe], [a, m]],
2066
2066
  [
2067
2067
  // Lenovo
2068
2068
  /(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,
2069
2069
  /lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i
2070
2070
  ],
2071
- [s, [u, Ot], [a, _]],
2071
+ [n, [u, Ot], [a, _]],
2072
2072
  [
2073
2073
  // Nokia
2074
2074
  /(nokia) (t[12][01])/i
2075
2075
  ],
2076
- [u, s, [a, _]],
2076
+ [u, n, [a, _]],
2077
2077
  [
2078
2078
  /(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,
2079
2079
  /nokia[-_ ]?(([-\w\. ]*))/i
2080
2080
  ],
2081
- [[s, /_/g, " "], [a, w], [u, "Nokia"]],
2081
+ [[n, /_/g, " "], [a, m], [u, "Nokia"]],
2082
2082
  [
2083
2083
  // Google
2084
2084
  /(pixel (c|tablet))\b/i
2085
2085
  // Google Pixel C/Tablet
2086
2086
  ],
2087
- [s, [u, Ae], [a, _]],
2087
+ [n, [u, Ae], [a, _]],
2088
2088
  [
2089
2089
  /droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i
2090
2090
  // Google Pixel
2091
2091
  ],
2092
- [s, [u, Ae], [a, w]],
2092
+ [n, [u, Ae], [a, m]],
2093
2093
  [
2094
2094
  // Sony
2095
2095
  /droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i
2096
2096
  ],
2097
- [s, [u, te], [a, w]],
2097
+ [n, [u, ie], [a, m]],
2098
2098
  [
2099
2099
  /sony tablet [ps]/i,
2100
2100
  /\b(?:sony)?sgp\w+(?: bui|\))/i
2101
2101
  ],
2102
- [[s, "Xperia Tablet"], [u, te], [a, _]],
2102
+ [[n, "Xperia Tablet"], [u, ie], [a, _]],
2103
2103
  [
2104
2104
  // OnePlus
2105
2105
  / (kb2005|in20[12]5|be20[12][59])\b/i,
2106
2106
  /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i
2107
2107
  ],
2108
- [s, [u, st], [a, w]],
2108
+ [n, [u, nt], [a, m]],
2109
2109
  [
2110
2110
  // Amazon
2111
2111
  /(alexa)webm/i,
@@ -2114,39 +2114,39 @@ function Cn() {
2114
2114
  /(kf[a-z]+)( bui|\)).+silk\//i
2115
2115
  // Kindle Fire HD
2116
2116
  ],
2117
- [s, [u, Ee], [a, _]],
2117
+ [n, [u, Ee], [a, _]],
2118
2118
  [
2119
2119
  /((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i
2120
2120
  // Fire Phone
2121
2121
  ],
2122
- [[s, /(.+)/g, "Fire Phone $1"], [u, Ee], [a, w]],
2122
+ [[n, /(.+)/g, "Fire Phone $1"], [u, Ee], [a, m]],
2123
2123
  [
2124
2124
  // BlackBerry
2125
2125
  /(playbook);[-\w\),; ]+(rim)/i
2126
2126
  // BlackBerry PlayBook
2127
2127
  ],
2128
- [s, u, [a, _]],
2128
+ [n, u, [a, _]],
2129
2129
  [
2130
2130
  /\b((?:bb[a-f]|st[hv])100-\d)/i,
2131
2131
  /\(bb10; (\w+)/i
2132
2132
  // BlackBerry 10
2133
2133
  ],
2134
- [s, [u, rt], [a, w]],
2134
+ [n, [u, rt], [a, m]],
2135
2135
  [
2136
2136
  // Asus
2137
2137
  /(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i
2138
2138
  ],
2139
- [s, [u, it], [a, _]],
2139
+ [n, [u, it], [a, _]],
2140
2140
  [
2141
2141
  / (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i
2142
2142
  ],
2143
- [s, [u, it], [a, w]],
2143
+ [n, [u, it], [a, m]],
2144
2144
  [
2145
2145
  // HTC
2146
2146
  /(nexus 9)/i
2147
2147
  // HTC Nexus 9
2148
2148
  ],
2149
- [s, [u, "HTC"], [a, _]],
2149
+ [n, [u, "HTC"], [a, _]],
2150
2150
  [
2151
2151
  /(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,
2152
2152
  // HTC
@@ -2155,66 +2155,66 @@ function Cn() {
2155
2155
  /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i
2156
2156
  // Alcatel/GeeksPhone/Nexian/Panasonic/Sony
2157
2157
  ],
2158
- [u, [s, /_/g, " "], [a, w]],
2158
+ [u, [n, /_/g, " "], [a, m]],
2159
2159
  [
2160
2160
  // TCL
2161
2161
  /droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i
2162
2162
  ],
2163
- [s, [u, "TCL"], [a, _]],
2163
+ [n, [u, "TCL"], [a, _]],
2164
2164
  [
2165
2165
  // itel
2166
2166
  /(itel) ((\w+))/i
2167
2167
  ],
2168
- [[u, N], s, [a, Ge, { tablet: ["p10001l", "w7001"], "*": "mobile" }]],
2168
+ [[u, P], n, [a, Ge, { tablet: ["p10001l", "w7001"], "*": "mobile" }]],
2169
2169
  [
2170
2170
  // Acer
2171
2171
  /droid.+; ([ab][1-7]-?[0178a]\d\d?)/i
2172
2172
  ],
2173
- [s, [u, "Acer"], [a, _]],
2173
+ [n, [u, "Acer"], [a, _]],
2174
2174
  [
2175
2175
  // Meizu
2176
2176
  /droid.+; (m[1-5] note) bui/i,
2177
2177
  /\bmz-([-\w]{2,})/i
2178
2178
  ],
2179
- [s, [u, "Meizu"], [a, w]],
2179
+ [n, [u, "Meizu"], [a, m]],
2180
2180
  [
2181
2181
  // Ulefone
2182
2182
  /; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i
2183
2183
  ],
2184
- [s, [u, "Ulefone"], [a, w]],
2184
+ [n, [u, "Ulefone"], [a, m]],
2185
2185
  [
2186
2186
  // Energizer
2187
2187
  /; (energy ?\w+)(?: bui|\))/i,
2188
2188
  /; energizer ([\w ]+)(?: bui|\))/i
2189
2189
  ],
2190
- [s, [u, "Energizer"], [a, w]],
2190
+ [n, [u, "Energizer"], [a, m]],
2191
2191
  [
2192
2192
  // Cat
2193
2193
  /; cat (b35);/i,
2194
2194
  /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i
2195
2195
  ],
2196
- [s, [u, "Cat"], [a, w]],
2196
+ [n, [u, "Cat"], [a, m]],
2197
2197
  [
2198
2198
  // Smartfren
2199
2199
  /((?:new )?andromax[\w- ]+)(?: bui|\))/i
2200
2200
  ],
2201
- [s, [u, "Smartfren"], [a, w]],
2201
+ [n, [u, "Smartfren"], [a, m]],
2202
2202
  [
2203
2203
  // Nothing
2204
2204
  /droid.+; (a(?:015|06[35]|142p?))/i
2205
2205
  ],
2206
- [s, [u, "Nothing"], [a, w]],
2206
+ [n, [u, "Nothing"], [a, m]],
2207
2207
  [
2208
2208
  // Archos
2209
2209
  /; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,
2210
2210
  /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i
2211
2211
  ],
2212
- [s, [u, "Archos"], [a, _]],
2212
+ [n, [u, "Archos"], [a, _]],
2213
2213
  [
2214
2214
  /archos ([\w ]+)( b|\))/i,
2215
2215
  /; (ac[3-6]\d\w{2,8})( b|\))/i
2216
2216
  ],
2217
- [s, [u, "Archos"], [a, w]],
2217
+ [n, [u, "Archos"], [a, m]],
2218
2218
  [
2219
2219
  // MIXED
2220
2220
  /(imo) (tab \w+)/i,
@@ -2222,7 +2222,7 @@ function Cn() {
2222
2222
  /(infinix) (x1101b?)/i
2223
2223
  // Infinix XPad
2224
2224
  ],
2225
- [u, s, [a, _]],
2225
+ [u, n, [a, _]],
2226
2226
  [
2227
2227
  /(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,
2228
2228
  // BlackBerry/BenQ/Palm/Sony-Ericsson/Acer/Asus/Dell/Meizu/Motorola/Polytron/Infinix/Tecno/Micromax/Advan
@@ -2237,7 +2237,7 @@ function Cn() {
2237
2237
  /(oppo) ?([\w ]+) bui/i
2238
2238
  // OPPO
2239
2239
  ],
2240
- [u, s, [a, w]],
2240
+ [u, n, [a, m]],
2241
2241
  [
2242
2242
  /(kobo)\s(ereader|touch)/i,
2243
2243
  // Kobo
@@ -2258,146 +2258,146 @@ function Cn() {
2258
2258
  /(vodafone) ([\w ]+)(?:\)| bui)/i
2259
2259
  // Vodafone
2260
2260
  ],
2261
- [u, s, [a, _]],
2261
+ [u, n, [a, _]],
2262
2262
  [
2263
2263
  /(surface duo)/i
2264
2264
  // Surface Duo
2265
2265
  ],
2266
- [s, [u, Ve], [a, _]],
2266
+ [n, [u, Ve], [a, _]],
2267
2267
  [
2268
2268
  /droid [\d\.]+; (fp\du?)(?: b|\))/i
2269
2269
  // Fairphone
2270
2270
  ],
2271
- [s, [u, "Fairphone"], [a, w]],
2271
+ [n, [u, "Fairphone"], [a, m]],
2272
2272
  [
2273
2273
  /(u304aa)/i
2274
2274
  // AT&T
2275
2275
  ],
2276
- [s, [u, "AT&T"], [a, w]],
2276
+ [n, [u, "AT&T"], [a, m]],
2277
2277
  [
2278
2278
  /\bsie-(\w*)/i
2279
2279
  // Siemens
2280
2280
  ],
2281
- [s, [u, "Siemens"], [a, w]],
2281
+ [n, [u, "Siemens"], [a, m]],
2282
2282
  [
2283
2283
  /\b(rct\w+) b/i
2284
2284
  // RCA Tablets
2285
2285
  ],
2286
- [s, [u, "RCA"], [a, _]],
2286
+ [n, [u, "RCA"], [a, _]],
2287
2287
  [
2288
2288
  /\b(venue[\d ]{2,7}) b/i
2289
2289
  // Dell Venue Tablets
2290
2290
  ],
2291
- [s, [u, "Dell"], [a, _]],
2291
+ [n, [u, "Dell"], [a, _]],
2292
2292
  [
2293
2293
  /\b(q(?:mv|ta)\w+) b/i
2294
2294
  // Verizon Tablet
2295
2295
  ],
2296
- [s, [u, "Verizon"], [a, _]],
2296
+ [n, [u, "Verizon"], [a, _]],
2297
2297
  [
2298
2298
  /\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i
2299
2299
  // Barnes & Noble Tablet
2300
2300
  ],
2301
- [s, [u, "Barnes & Noble"], [a, _]],
2301
+ [n, [u, "Barnes & Noble"], [a, _]],
2302
2302
  [
2303
2303
  /\b(tm\d{3}\w+) b/i
2304
2304
  ],
2305
- [s, [u, "NuVision"], [a, _]],
2305
+ [n, [u, "NuVision"], [a, _]],
2306
2306
  [
2307
2307
  /\b(k88) b/i
2308
2308
  // ZTE K Series Tablet
2309
2309
  ],
2310
- [s, [u, "ZTE"], [a, _]],
2310
+ [n, [u, "ZTE"], [a, _]],
2311
2311
  [
2312
2312
  /\b(nx\d{3}j) b/i
2313
2313
  // ZTE Nubia
2314
2314
  ],
2315
- [s, [u, "ZTE"], [a, w]],
2315
+ [n, [u, "ZTE"], [a, m]],
2316
2316
  [
2317
2317
  /\b(gen\d{3}) b.+49h/i
2318
2318
  // Swiss GEN Mobile
2319
2319
  ],
2320
- [s, [u, "Swiss"], [a, w]],
2320
+ [n, [u, "Swiss"], [a, m]],
2321
2321
  [
2322
2322
  /\b(zur\d{3}) b/i
2323
2323
  // Swiss ZUR Tablet
2324
2324
  ],
2325
- [s, [u, "Swiss"], [a, _]],
2325
+ [n, [u, "Swiss"], [a, _]],
2326
2326
  [
2327
2327
  /\b((zeki)?tb.*\b) b/i
2328
2328
  // Zeki Tablets
2329
2329
  ],
2330
- [s, [u, "Zeki"], [a, _]],
2330
+ [n, [u, "Zeki"], [a, _]],
2331
2331
  [
2332
2332
  /\b([yr]\d{2}) b/i,
2333
2333
  /\b(dragon[- ]+touch |dt)(\w{5}) b/i
2334
2334
  // Dragon Touch Tablet
2335
2335
  ],
2336
- [[u, "Dragon Touch"], s, [a, _]],
2336
+ [[u, "Dragon Touch"], n, [a, _]],
2337
2337
  [
2338
2338
  /\b(ns-?\w{0,9}) b/i
2339
2339
  // Insignia Tablets
2340
2340
  ],
2341
- [s, [u, "Insignia"], [a, _]],
2341
+ [n, [u, "Insignia"], [a, _]],
2342
2342
  [
2343
2343
  /\b((nxa|next)-?\w{0,9}) b/i
2344
2344
  // NextBook Tablets
2345
2345
  ],
2346
- [s, [u, "NextBook"], [a, _]],
2346
+ [n, [u, "NextBook"], [a, _]],
2347
2347
  [
2348
2348
  /\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i
2349
2349
  // Voice Xtreme Phones
2350
2350
  ],
2351
- [[u, "Voice"], s, [a, w]],
2351
+ [[u, "Voice"], n, [a, m]],
2352
2352
  [
2353
2353
  /\b(lvtel\-)?(v1[12]) b/i
2354
2354
  // LvTel Phones
2355
2355
  ],
2356
- [[u, "LvTel"], s, [a, w]],
2356
+ [[u, "LvTel"], n, [a, m]],
2357
2357
  [
2358
2358
  /\b(ph-1) /i
2359
2359
  // Essential PH-1
2360
2360
  ],
2361
- [s, [u, "Essential"], [a, w]],
2361
+ [n, [u, "Essential"], [a, m]],
2362
2362
  [
2363
2363
  /\b(v(100md|700na|7011|917g).*\b) b/i
2364
2364
  // Envizen Tablets
2365
2365
  ],
2366
- [s, [u, "Envizen"], [a, _]],
2366
+ [n, [u, "Envizen"], [a, _]],
2367
2367
  [
2368
2368
  /\b(trio[-\w\. ]+) b/i
2369
2369
  // MachSpeed Tablets
2370
2370
  ],
2371
- [s, [u, "MachSpeed"], [a, _]],
2371
+ [n, [u, "MachSpeed"], [a, _]],
2372
2372
  [
2373
2373
  /\btu_(1491) b/i
2374
2374
  // Rotor Tablets
2375
2375
  ],
2376
- [s, [u, "Rotor"], [a, _]],
2376
+ [n, [u, "Rotor"], [a, _]],
2377
2377
  [
2378
2378
  /((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i
2379
2379
  // Nvidia Tablets
2380
2380
  ],
2381
- [s, [u, Le], [a, _]],
2381
+ [n, [u, Le], [a, _]],
2382
2382
  [
2383
2383
  /(sprint) (\w+)/i
2384
2384
  // Sprint Phones
2385
2385
  ],
2386
- [u, s, [a, w]],
2386
+ [u, n, [a, m]],
2387
2387
  [
2388
2388
  /(kin\.[onetw]{3})/i
2389
2389
  // Microsoft Kin
2390
2390
  ],
2391
- [[s, /\./g, " "], [u, Ve], [a, w]],
2391
+ [[n, /\./g, " "], [u, Ve], [a, m]],
2392
2392
  [
2393
2393
  /droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i
2394
2394
  // Zebra
2395
2395
  ],
2396
- [s, [u, Fe], [a, _]],
2396
+ [n, [u, Fe], [a, _]],
2397
2397
  [
2398
2398
  /droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i
2399
2399
  ],
2400
- [s, [u, Fe], [a, w]],
2400
+ [n, [u, Fe], [a, m]],
2401
2401
  [
2402
2402
  ///////////////////
2403
2403
  // SMARTTVS
@@ -2409,7 +2409,7 @@ function Cn() {
2409
2409
  [
2410
2410
  /hbbtv.+maple;(\d+)/i
2411
2411
  ],
2412
- [[s, /^/, "SmartTV"], [u, pe], [a, O]],
2412
+ [[n, /^/, "SmartTV"], [u, be], [a, O]],
2413
2413
  [
2414
2414
  /(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i
2415
2415
  // LG SmartTV
@@ -2419,55 +2419,55 @@ function Cn() {
2419
2419
  /(apple) ?tv/i
2420
2420
  // Apple TV
2421
2421
  ],
2422
- [u, [s, he + " TV"], [a, O]],
2422
+ [u, [n, fe + " TV"], [a, O]],
2423
2423
  [
2424
2424
  /crkey/i
2425
2425
  // Google Chromecast
2426
2426
  ],
2427
- [[s, Re + "cast"], [u, Ae], [a, O]],
2427
+ [[n, Re + "cast"], [u, Ae], [a, O]],
2428
2428
  [
2429
2429
  /droid.+aft(\w+)( bui|\))/i
2430
2430
  // Fire TV
2431
2431
  ],
2432
- [s, [u, Ee], [a, O]],
2432
+ [n, [u, Ee], [a, O]],
2433
2433
  [
2434
2434
  /(shield \w+ tv)/i
2435
2435
  // Nvidia Shield TV
2436
2436
  ],
2437
- [s, [u, Le], [a, O]],
2437
+ [n, [u, Le], [a, O]],
2438
2438
  [
2439
2439
  /\(dtv[\);].+(aquos)/i,
2440
2440
  /(aquos-tv[\w ]+)\)/i
2441
2441
  // Sharp
2442
2442
  ],
2443
- [s, [u, He], [a, O]],
2443
+ [n, [u, He], [a, O]],
2444
2444
  [
2445
2445
  /(bravia[\w ]+)( bui|\))/i
2446
2446
  // Sony
2447
2447
  ],
2448
- [s, [u, te], [a, O]],
2448
+ [n, [u, ie], [a, O]],
2449
2449
  [
2450
2450
  /(mi(tv|box)-?\w+) bui/i
2451
2451
  // Xiaomi
2452
2452
  ],
2453
- [s, [u, le], [a, O]],
2453
+ [n, [u, le], [a, O]],
2454
2454
  [
2455
2455
  /Hbbtv.*(technisat) (.*);/i
2456
2456
  // TechniSAT
2457
2457
  ],
2458
- [u, s, [a, O]],
2458
+ [u, n, [a, O]],
2459
2459
  [
2460
2460
  /\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,
2461
2461
  // Roku
2462
2462
  /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i
2463
2463
  // HbbTV devices
2464
2464
  ],
2465
- [[u, Ne], [s, Ne], [a, O]],
2465
+ [[u, Pe], [n, Pe], [a, O]],
2466
2466
  [
2467
2467
  // SmartTV from Unidentified Vendors
2468
2468
  /droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i
2469
2469
  ],
2470
- [s, [a, O]],
2470
+ [n, [a, O]],
2471
2471
  [
2472
2472
  /\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i
2473
2473
  ],
@@ -2481,22 +2481,22 @@ function Cn() {
2481
2481
  /(nintendo) ([wids3utch]+)/i
2482
2482
  // Nintendo
2483
2483
  ],
2484
- [u, s, [a, A]],
2484
+ [u, n, [a, A]],
2485
2485
  [
2486
2486
  /droid.+; (shield)( bui|\))/i
2487
2487
  // Nvidia Portable
2488
2488
  ],
2489
- [s, [u, Le], [a, A]],
2489
+ [n, [u, Le], [a, A]],
2490
2490
  [
2491
2491
  /(playstation \w+)/i
2492
2492
  // Playstation
2493
2493
  ],
2494
- [s, [u, te], [a, A]],
2494
+ [n, [u, ie], [a, A]],
2495
2495
  [
2496
2496
  /\b(xbox(?: one)?(?!; xbox))[\); ]/i
2497
2497
  // Microsoft Xbox
2498
2498
  ],
2499
- [s, [u, Ve], [a, A]],
2499
+ [n, [u, Ve], [a, A]],
2500
2500
  [
2501
2501
  ///////////////////
2502
2502
  // WEARABLES
@@ -2504,48 +2504,48 @@ function Cn() {
2504
2504
  /\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i
2505
2505
  // Samsung Galaxy Watch
2506
2506
  ],
2507
- [s, [u, pe], [a, F]],
2507
+ [n, [u, be], [a, F]],
2508
2508
  [
2509
2509
  /((pebble))app/i,
2510
2510
  // Pebble
2511
2511
  /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i
2512
2512
  // Asus ZenWatch / LG Watch / Pixel Watch
2513
2513
  ],
2514
- [u, s, [a, F]],
2514
+ [u, n, [a, F]],
2515
2515
  [
2516
2516
  /(ow(?:19|20)?we?[1-3]{1,3})/i
2517
2517
  // Oppo Watch
2518
2518
  ],
2519
- [s, [u, be], [a, F]],
2519
+ [n, [u, pe], [a, F]],
2520
2520
  [
2521
2521
  /(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i
2522
2522
  // Apple Watch
2523
2523
  ],
2524
- [s, [u, he], [a, F]],
2524
+ [n, [u, fe], [a, F]],
2525
2525
  [
2526
2526
  /(opwwe\d{3})/i
2527
2527
  // OnePlus Watch
2528
2528
  ],
2529
- [s, [u, st], [a, F]],
2529
+ [n, [u, nt], [a, F]],
2530
2530
  [
2531
2531
  /(moto 360)/i
2532
2532
  // Motorola 360
2533
2533
  ],
2534
- [s, [u, qe], [a, F]],
2534
+ [n, [u, qe], [a, F]],
2535
2535
  [
2536
2536
  /(smartwatch 3)/i
2537
2537
  // Sony SmartWatch
2538
2538
  ],
2539
- [s, [u, te], [a, F]],
2539
+ [n, [u, ie], [a, F]],
2540
2540
  [
2541
2541
  /(g watch r)/i
2542
2542
  // LG G Watch R
2543
2543
  ],
2544
- [s, [u, Oe], [a, F]],
2544
+ [n, [u, Oe], [a, F]],
2545
2545
  [
2546
2546
  /droid.+; (wt63?0{2,3})\)/i
2547
2547
  ],
2548
- [s, [u, Fe], [a, F]],
2548
+ [n, [u, Fe], [a, F]],
2549
2549
  [
2550
2550
  ///////////////////
2551
2551
  // XR
@@ -2553,17 +2553,17 @@ function Cn() {
2553
2553
  /droid.+; (glass) \d/i
2554
2554
  // Google Glass
2555
2555
  ],
2556
- [s, [u, Ae], [a, F]],
2556
+ [n, [u, Ae], [a, F]],
2557
2557
  [
2558
2558
  /(pico) (4|neo3(?: link|pro)?)/i
2559
2559
  // Pico
2560
2560
  ],
2561
- [u, s, [a, F]],
2561
+ [u, n, [a, F]],
2562
2562
  [
2563
2563
  /; (quest( \d| pro)?)/i
2564
2564
  // Oculus Quest
2565
2565
  ],
2566
- [s, [u, Me], [a, F]],
2566
+ [n, [u, Me], [a, F]],
2567
2567
  [
2568
2568
  ///////////////////
2569
2569
  // EMBEDDED
@@ -2571,21 +2571,21 @@ function Cn() {
2571
2571
  /(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i
2572
2572
  // Tesla
2573
2573
  ],
2574
- [u, [a, Q]],
2574
+ [u, [a, ee]],
2575
2575
  [
2576
2576
  /(aeobc)\b/i
2577
2577
  // Echo Dot
2578
2578
  ],
2579
- [s, [u, Ee], [a, Q]],
2579
+ [n, [u, Ee], [a, ee]],
2580
2580
  [
2581
2581
  /(homepod).+mac os/i
2582
2582
  // Apple HomePod
2583
2583
  ],
2584
- [s, [u, he], [a, Q]],
2584
+ [n, [u, fe], [a, ee]],
2585
2585
  [
2586
2586
  /windows iot/i
2587
2587
  ],
2588
- [[a, Q]],
2588
+ [[a, ee]],
2589
2589
  [
2590
2590
  ////////////////////
2591
2591
  // MIXED (GENERIC)
@@ -2593,12 +2593,12 @@ function Cn() {
2593
2593
  /droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i
2594
2594
  // Android Phones from Unidentified Vendors
2595
2595
  ],
2596
- [s, [a, w]],
2596
+ [n, [a, m]],
2597
2597
  [
2598
2598
  /droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i
2599
2599
  // Android Tablets from Unidentified Vendors
2600
2600
  ],
2601
- [s, [a, _]],
2601
+ [n, [a, _]],
2602
2602
  [
2603
2603
  /\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i
2604
2604
  // Unidentifiable Tablet
@@ -2608,29 +2608,29 @@ function Cn() {
2608
2608
  /(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i
2609
2609
  // Unidentifiable Mobile
2610
2610
  ],
2611
- [[a, w]],
2611
+ [[a, m]],
2612
2612
  [
2613
2613
  /droid .+?; ([\w\. -]+)( bui|\))/i
2614
2614
  // Generic Android Device
2615
2615
  ],
2616
- [s, [u, "Generic"]]
2616
+ [n, [u, "Generic"]]
2617
2617
  ],
2618
2618
  engine: [
2619
2619
  [
2620
2620
  /windows.+ edge\/([\w\.]+)/i
2621
2621
  // EdgeHTML
2622
2622
  ],
2623
- [f, [l, At + "HTML"]],
2623
+ [h, [l, At + "HTML"]],
2624
2624
  [
2625
2625
  /(arkweb)\/([\w\.]+)/i
2626
2626
  // ArkWeb
2627
2627
  ],
2628
- [l, f],
2628
+ [l, h],
2629
2629
  [
2630
2630
  /webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i
2631
2631
  // Blink
2632
2632
  ],
2633
- [f, [l, "Blink"]],
2633
+ [h, [l, "Blink"]],
2634
2634
  [
2635
2635
  /(presto)\/([\w\.]+)/i,
2636
2636
  // Presto
@@ -2645,7 +2645,7 @@ function Cn() {
2645
2645
  /\b(libweb)/i
2646
2646
  // LibWeb
2647
2647
  ],
2648
- [l, f],
2648
+ [l, h],
2649
2649
  [
2650
2650
  /ladybird\//i
2651
2651
  ],
@@ -2654,7 +2654,7 @@ function Cn() {
2654
2654
  /rv\:([\w\.]{1,9})\b.+(gecko)/i
2655
2655
  // Gecko
2656
2656
  ],
2657
- [f, l]
2657
+ [h, l]
2658
2658
  ],
2659
2659
  os: [
2660
2660
  [
@@ -2662,19 +2662,19 @@ function Cn() {
2662
2662
  /microsoft (windows) (vista|xp)/i
2663
2663
  // Windows (iTunes)
2664
2664
  ],
2665
- [l, f],
2665
+ [l, h],
2666
2666
  [
2667
2667
  /(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i
2668
2668
  // Windows Phone
2669
2669
  ],
2670
- [l, [f, Ge, Qt]],
2670
+ [l, [h, Ge, Qt]],
2671
2671
  [
2672
2672
  /windows nt 6\.2; (arm)/i,
2673
2673
  // Windows RT
2674
2674
  /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,
2675
2675
  /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i
2676
2676
  ],
2677
- [[f, Ge, Qt], [l, "Windows"]],
2677
+ [[h, Ge, Qt], [l, "Windows"]],
2678
2678
  [
2679
2679
  // iOS/macOS
2680
2680
  /[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,
@@ -2682,66 +2682,66 @@ function Cn() {
2682
2682
  /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,
2683
2683
  /cfnetwork\/.+darwin/i
2684
2684
  ],
2685
- [[f, /_/g, "."], [l, "iOS"]],
2685
+ [[h, /_/g, "."], [l, "iOS"]],
2686
2686
  [
2687
2687
  /(mac os x) ?([\w\. ]*)/i,
2688
2688
  /(macintosh|mac_powerpc\b)(?!.+haiku)/i
2689
2689
  // Mac OS
2690
2690
  ],
2691
- [[l, v], [f, /_/g, "."]],
2691
+ [[l, v], [h, /_/g, "."]],
2692
2692
  [
2693
2693
  // Mobile OSes
2694
2694
  /droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i
2695
2695
  // Android-x86/HarmonyOS
2696
2696
  ],
2697
- [f, l],
2697
+ [h, l],
2698
2698
  [
2699
2699
  /(ubuntu) ([\w\.]+) like android/i
2700
2700
  // Ubuntu Touch
2701
2701
  ],
2702
- [[l, /(.+)/, "$1 Touch"], f],
2702
+ [[l, /(.+)/, "$1 Touch"], h],
2703
2703
  [
2704
2704
  // Android/Blackberry/WebOS/QNX/Bada/RIM/KaiOS/Maemo/MeeGo/S40/Sailfish OS/OpenHarmony/Tizen
2705
2705
  /(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i
2706
2706
  ],
2707
- [l, f],
2707
+ [l, h],
2708
2708
  [
2709
2709
  /\(bb(10);/i
2710
2710
  // BlackBerry 10
2711
2711
  ],
2712
- [f, [l, rt]],
2712
+ [h, [l, rt]],
2713
2713
  [
2714
2714
  /(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i
2715
2715
  // Symbian
2716
2716
  ],
2717
- [f, [l, "Symbian"]],
2717
+ [h, [l, "Symbian"]],
2718
2718
  [
2719
2719
  /mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i
2720
2720
  // Firefox OS
2721
2721
  ],
2722
- [f, [l, $e + " OS"]],
2722
+ [h, [l, $e + " OS"]],
2723
2723
  [
2724
2724
  /web0s;.+rt(tv)/i,
2725
2725
  /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i
2726
2726
  // WebOS
2727
2727
  ],
2728
- [f, [l, "webOS"]],
2728
+ [h, [l, "webOS"]],
2729
2729
  [
2730
2730
  /watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i
2731
2731
  // watchOS
2732
2732
  ],
2733
- [f, [l, "watchOS"]],
2733
+ [h, [l, "watchOS"]],
2734
2734
  [
2735
2735
  // Google Chromecast
2736
2736
  /crkey\/([\d\.]+)/i
2737
2737
  // Google Chromecast
2738
2738
  ],
2739
- [f, [l, Re + "cast"]],
2739
+ [h, [l, Re + "cast"]],
2740
2740
  [
2741
2741
  /(cros) [\w]+(?:\)| ([\w\.]+)\b)/i
2742
2742
  // Chromium OS
2743
2743
  ],
2744
- [[l, j], f],
2744
+ [[l, G], h],
2745
2745
  [
2746
2746
  // Smart TVs
2747
2747
  /panasonic;(viera)/i,
@@ -2773,12 +2773,12 @@ function Cn() {
2773
2773
  /(haiku) (\w+)/i
2774
2774
  // Haiku
2775
2775
  ],
2776
- [l, f],
2776
+ [l, h],
2777
2777
  [
2778
2778
  /(sunos) ?([\w\.\d]*)/i
2779
2779
  // Solaris
2780
2780
  ],
2781
- [[l, "Solaris"], f],
2781
+ [[l, "Solaris"], h],
2782
2782
  [
2783
2783
  /((?:open)?solaris)[-\/ ]?([\w\.]*)/i,
2784
2784
  // Solaris
@@ -2789,27 +2789,27 @@ function Cn() {
2789
2789
  /(unix) ?([\w\.]*)/i
2790
2790
  // UNIX
2791
2791
  ],
2792
- [l, f]
2792
+ [l, h]
2793
2793
  ]
2794
- }, Y = function(y, C) {
2795
- if (typeof y === p && (C = y, y = r), !(this instanceof Y))
2796
- return new Y(y, C).getResult();
2797
- var x = typeof i !== c && i.navigator ? i.navigator : r, S = y || (x && x.userAgent ? x.userAgent : o), ue = x && x.userAgentData ? x.userAgentData : r, ie = C ? M(ei, C) : ei, E = x && x.userAgent == S;
2794
+ }, X = function(y, C) {
2795
+ if (typeof y === b && (C = y, y = r), !(this instanceof X))
2796
+ return new X(y, C).getResult();
2797
+ var x = typeof i !== c && i.navigator ? i.navigator : r, S = y || (x && x.userAgent ? x.userAgent : o), ue = x && x.userAgentData ? x.userAgentData : r, re = C ? M(ei, C) : ei, E = x && x.userAgent == S;
2798
2798
  return this.getBrowser = function() {
2799
2799
  var g = {};
2800
- return g[l] = r, g[f] = r, je.call(g, S, ie.browser), g[m] = ve(g[f]), E && x && x.brave && typeof x.brave.isBrave == b && (g[l] = "Brave"), g;
2800
+ return g[l] = r, g[h] = r, je.call(g, S, re.browser), g[w] = ve(g[h]), E && x && x.brave && typeof x.brave.isBrave == p && (g[l] = "Brave"), g;
2801
2801
  }, this.getCPU = function() {
2802
2802
  var g = {};
2803
- return g[$] = r, je.call(g, S, ie.cpu), g;
2803
+ return g[$] = r, je.call(g, S, re.cpu), g;
2804
2804
  }, this.getDevice = function() {
2805
2805
  var g = {};
2806
- return g[u] = r, g[s] = r, g[a] = r, je.call(g, S, ie.device), E && !g[a] && ue && ue.mobile && (g[a] = w), E && g[s] == "Macintosh" && x && typeof x.standalone !== c && x.maxTouchPoints && x.maxTouchPoints > 2 && (g[s] = "iPad", g[a] = _), g;
2806
+ return g[u] = r, g[n] = r, g[a] = r, je.call(g, S, re.device), E && !g[a] && ue && ue.mobile && (g[a] = m), E && g[n] == "Macintosh" && x && typeof x.standalone !== c && x.maxTouchPoints && x.maxTouchPoints > 2 && (g[n] = "iPad", g[a] = _), g;
2807
2807
  }, this.getEngine = function() {
2808
2808
  var g = {};
2809
- return g[l] = r, g[f] = r, je.call(g, S, ie.engine), g;
2809
+ return g[l] = r, g[h] = r, je.call(g, S, re.engine), g;
2810
2810
  }, this.getOS = function() {
2811
2811
  var g = {};
2812
- return g[l] = r, g[f] = r, je.call(g, S, ie.os), E && !g[l] && ue && ue.platform && ue.platform != "Unknown" && (g[l] = ue.platform.replace(/chrome os/i, j).replace(/macos/i, v)), g;
2812
+ return g[l] = r, g[h] = r, je.call(g, S, re.os), E && !g[l] && ue && ue.platform && ue.platform != "Unknown" && (g[l] = ue.platform.replace(/chrome os/i, G).replace(/macos/i, v)), g;
2813
2813
  }, this.getResult = function() {
2814
2814
  return {
2815
2815
  ua: this.getUA(),
@@ -2822,27 +2822,27 @@ function Cn() {
2822
2822
  }, this.getUA = function() {
2823
2823
  return S;
2824
2824
  }, this.setUA = function(g) {
2825
- return S = typeof g === h && g.length > ae ? Ne(g, ae) : g, this;
2825
+ return S = typeof g === f && g.length > ae ? Pe(g, ae) : g, this;
2826
2826
  }, this.setUA(S), this;
2827
2827
  };
2828
- Y.VERSION = n, Y.BROWSER = R([l, f, m]), Y.CPU = R([$]), Y.DEVICE = R([s, u, a, A, w, O, _, F, Q]), Y.ENGINE = Y.OS = R([l, f]), t.exports && (e = t.exports = Y), e.UAParser = Y;
2829
- var Pe = typeof i !== c && (i.jQuery || i.Zepto);
2830
- if (Pe && !Pe.ua) {
2831
- var ot = new Y();
2832
- Pe.ua = ot.getResult(), Pe.ua.get = function() {
2828
+ X.VERSION = s, X.BROWSER = R([l, h, w]), X.CPU = R([$]), X.DEVICE = R([n, u, a, A, m, O, _, F, ee]), X.ENGINE = X.OS = R([l, h]), t.exports && (e = t.exports = X), e.UAParser = X;
2829
+ var Ne = typeof i !== c && (i.jQuery || i.Zepto);
2830
+ if (Ne && !Ne.ua) {
2831
+ var ot = new X();
2832
+ Ne.ua = ot.getResult(), Ne.ua.get = function() {
2833
2833
  return ot.getUA();
2834
- }, Pe.ua.set = function(y) {
2834
+ }, Ne.ua.set = function(y) {
2835
2835
  ot.setUA(y);
2836
2836
  var C = ot.getResult();
2837
2837
  for (var x in C)
2838
- Pe.ua[x] = C[x];
2838
+ Ne.ua[x] = C[x];
2839
2839
  };
2840
2840
  }
2841
- })(typeof window == "object" ? window : yn);
2841
+ })(typeof window == "object" ? window : xs);
2842
2842
  })(Ze, Ze.exports)), Ze.exports;
2843
2843
  }
2844
- var En = Cn();
2845
- const kn = /* @__PURE__ */ xn(En), Sn = new kn(), Qi = Sn.getResult(), Dn = (_a = Qi.engine.name) == null ? void 0 : _a.toLowerCase(), hi = Number((_b = Qi.engine.version) == null ? void 0 : _b.split(".")[0]), Ut = {
2844
+ var Cs = ys();
2845
+ const Es = /* @__PURE__ */ _s(Cs), ks = new Es(), Qi = ks.getResult(), Ss = (_a = Qi.engine.name) == null ? void 0 : _a.toLowerCase(), fi = Number((_b = Qi.engine.version) == null ? void 0 : _b.split(".")[0]), Ut = {
2846
2846
  "0x0001": "Escape",
2847
2847
  "0x0002": "Digit1",
2848
2848
  "0x0003": "Digit2",
@@ -2984,7 +2984,7 @@ const kn = /* @__PURE__ */ xn(En), Sn = new kn(), Qi = Sn.getResult(), Dn = (_a
2984
2984
  "0xE06B": "LaunchApp1",
2985
2985
  "0xE06C": "LaunchMail",
2986
2986
  "0xE06D": "MediaSelect"
2987
- }, bi = {
2987
+ }, pi = {
2988
2988
  "0x0077": "Lang4",
2989
2989
  "0x0078": "Lang3",
2990
2990
  "0xE008": "Undo",
@@ -3000,18 +3000,18 @@ const kn = /* @__PURE__ */ xn(En), Sn = new kn(), Qi = Sn.getResult(), Dn = (_a
3000
3000
  "0xE05C": "MetaRight",
3001
3001
  "0xE05F": "Sleep",
3002
3002
  "0xE063": "WakeUp"
3003
- }, Tn = {
3003
+ }, Ds = {
3004
3004
  "0x0054": "PrintScreen",
3005
3005
  "0xE020": "VolumeMute",
3006
3006
  // The documentation says it's 'AudioVolumeMute', but the actual test shows that it's 'VolumeMute'.
3007
3007
  "0xE02E": "VolumeDown",
3008
3008
  "0xE030": "VolumeUp",
3009
- "0xE05B": hi > 117 ? "MetaLeft" : "OSLeft",
3010
- "0xE05C": hi > 117 ? "MetaRight" : "OSRight"
3011
- }, Rn = {
3012
- blink: Bt({ ...Ut, ...bi }),
3013
- gecko: Bt({ ...Ut, ...Tn }),
3014
- webkit: Bt({ ...Ut, ...bi })
3009
+ "0xE05B": fi > 117 ? "MetaLeft" : "OSLeft",
3010
+ "0xE05C": fi > 117 ? "MetaRight" : "OSRight"
3011
+ }, Ts = {
3012
+ blink: Bt({ ...Ut, ...pi }),
3013
+ gecko: Bt({ ...Ut, ...Ds }),
3014
+ webkit: Bt({ ...Ut, ...pi })
3015
3015
  };
3016
3016
  function Bt(t) {
3017
3017
  const e = {};
@@ -3019,12 +3019,12 @@ function Bt(t) {
3019
3019
  e[r] = i;
3020
3020
  return e;
3021
3021
  }
3022
- const pi = function(t) {
3023
- const e = Rn[Dn];
3022
+ const bi = function(t) {
3023
+ const e = Ts[Ss];
3024
3024
  return parseInt(e[t], 16);
3025
3025
  };
3026
- var qt = /* @__PURE__ */ ((t) => (t.CTRL_LEFT = "ControlLeft", t.SHIFT_LEFT = "ShiftLeft", t.SHIFT_RIGHT = "ShiftRight", t.ALT_LEFT = "AltLeft", t.CTRL_RIGHT = "ControlRight", t.ALT_RIGHT = "AltRight", t.ControlLeft = "ControlLeft", t.ShiftLeft = "ShiftLeft", t.ShiftRight = "ShiftRight", t.AltLeft = "AltLeft", t.ControlRight = "ControlRight", t.AltRight = "AltRight", t))(qt || {}), Be = /* @__PURE__ */ ((t) => (t.CAPS_LOCK = "CapsLock", t.NUM_LOCK = "NumLock", t.SCROLL_LOCK = "ScrollLock", t.KANA_MODE = "KanaMode", t.CapsLock = "CapsLock", t.ScrollLock = "ScrollLock", t.NumLock = "NumLock", t.KanaMode = "KanaMode", t))(Be || {}), ce = /* @__PURE__ */ ((t) => (t[t.CTRL_ALT_DEL = 0] = "CTRL_ALT_DEL", t[t.META = 1] = "META", t[t.CTRL_C = 2] = "CTRL_C", t[t.CTRL_V = 3] = "CTRL_V", t))(ce || {}), me = /* @__PURE__ */ ((t) => (t[t.Fit = 1] = "Fit", t[t.Full = 2] = "Full", t[t.Real = 3] = "Real", t))(me || {}), Je = /* @__PURE__ */ ((t) => (t[t.Pixel = 0] = "Pixel", t[t.Line = 1] = "Line", t[t.Page = 2] = "Page", t))(Je || {});
3027
- class $n {
3026
+ var qt = /* @__PURE__ */ ((t) => (t.CTRL_LEFT = "ControlLeft", t.SHIFT_LEFT = "ShiftLeft", t.SHIFT_RIGHT = "ShiftRight", t.ALT_LEFT = "AltLeft", t.CTRL_RIGHT = "ControlRight", t.ALT_RIGHT = "AltRight", t.ControlLeft = "ControlLeft", t.ShiftLeft = "ShiftLeft", t.ShiftRight = "ShiftRight", t.AltLeft = "AltLeft", t.ControlRight = "ControlRight", t.AltRight = "AltRight", t))(qt || {}), Be = /* @__PURE__ */ ((t) => (t.CAPS_LOCK = "CapsLock", t.NUM_LOCK = "NumLock", t.SCROLL_LOCK = "ScrollLock", t.KANA_MODE = "KanaMode", t.CapsLock = "CapsLock", t.ScrollLock = "ScrollLock", t.NumLock = "NumLock", t.KanaMode = "KanaMode", t))(Be || {}), ce = /* @__PURE__ */ ((t) => (t[t.CTRL_ALT_DEL = 0] = "CTRL_ALT_DEL", t[t.META = 1] = "META", t[t.CTRL_C = 2] = "CTRL_C", t[t.CTRL_V = 3] = "CTRL_V", t))(ce || {}), we = /* @__PURE__ */ ((t) => (t[t.Fit = 1] = "Fit", t[t.Full = 2] = "Full", t[t.Real = 3] = "Real", t))(we || {}), Je = /* @__PURE__ */ ((t) => (t[t.Pixel = 0] = "Pixel", t[t.Line = 1] = "Line", t[t.Page = 2] = "Page", t))(Je || {});
3027
+ class Rs {
3028
3028
  constructor(e, i, r) {
3029
3029
  __publicField(this, "username");
3030
3030
  __publicField(this, "password");
@@ -3037,7 +3037,7 @@ class $n {
3037
3037
  this.username = e.username, this.password = e.password, this.proxyAddress = i.address, this.authToken = i.authToken, this.destination = r.destination, this.serverDomain = r.serverDomain, this.extensions = r.extensions, this.desktopSize = r.desktopSize;
3038
3038
  }
3039
3039
  }
3040
- class An {
3040
+ class $s {
3041
3041
  /**
3042
3042
  * Creates a new ConfigBuilder instance.
3043
3043
  */
@@ -3142,7 +3142,7 @@ class An {
3142
3142
  extensions: this.extensions,
3143
3143
  desktopSize: this.desktopSize
3144
3144
  };
3145
- return new $n(e, i, r);
3145
+ return new Rs(e, i, r);
3146
3146
  }
3147
3147
  }
3148
3148
  class Se {
@@ -3158,7 +3158,7 @@ class Se {
3158
3158
  i(e);
3159
3159
  }
3160
3160
  }
3161
- class On {
3161
+ class As {
3162
3162
  constructor(e) {
3163
3163
  __publicField(this, "module");
3164
3164
  __publicField(this, "canvas");
@@ -3242,7 +3242,7 @@ class On {
3242
3242
  // right button
3243
3243
  [4, 1]
3244
3244
  // middle button
3245
- ].filter(([n]) => (e.buttons & n) === 0).map(([, n]) => this.module.DeviceEvent.mouseButtonReleased(n));
3245
+ ].filter(([s]) => (e.buttons & s) === 0).map(([, s]) => this.module.DeviceEvent.mouseButtonReleased(s));
3246
3246
  r.length > 0 && this.doTransactionFromDeviceEvents(r);
3247
3247
  }
3248
3248
  mouseOut(e) {
@@ -3261,14 +3261,14 @@ class On {
3261
3261
  }
3262
3262
  mouseButtonState(e, i, r) {
3263
3263
  r && e.preventDefault();
3264
- const n = i ? this.module.DeviceEvent.mouseButtonPressed : this.module.DeviceEvent.mouseButtonReleased;
3265
- this.doTransactionFromDeviceEvents([n(e.button)]);
3264
+ const s = i ? this.module.DeviceEvent.mouseButtonPressed : this.module.DeviceEvent.mouseButtonReleased;
3265
+ this.doTransactionFromDeviceEvents([s(e.button)]);
3266
3266
  }
3267
3267
  updateMousePosition(e) {
3268
3268
  this.doTransactionFromDeviceEvents([this.module.DeviceEvent.mouseMove(e.x, e.y)]), this.mousePositionObservable.publish(e);
3269
3269
  }
3270
3270
  configBuilder() {
3271
- return new An();
3271
+ return new $s();
3272
3272
  }
3273
3273
  async connect(e) {
3274
3274
  var _a2;
@@ -3286,7 +3286,7 @@ class On {
3286
3286
  desktopSize: r.desktopSize(),
3287
3287
  sessionId: 0
3288
3288
  }), this.sessionStartedObservable.publish(null);
3289
- const n = async () => {
3289
+ const s = async () => {
3290
3290
  try {
3291
3291
  return L.info("Starting the session."), await r.run();
3292
3292
  } finally {
@@ -3297,7 +3297,7 @@ class On {
3297
3297
  sessionId: 0,
3298
3298
  initialDesktopSize: r.desktopSize(),
3299
3299
  websocketPort: 0,
3300
- run: n
3300
+ run: s
3301
3301
  };
3302
3302
  }
3303
3303
  sendSpecialCombination(e) {
@@ -3329,9 +3329,9 @@ class On {
3329
3329
  }
3330
3330
  }
3331
3331
  mouseWheel(e) {
3332
- const i = e.deltaY !== 0, r = i ? e.deltaY : e.deltaX, n = this.rotation_unit_from_wheel_event(e);
3332
+ const i = e.deltaY !== 0, r = i ? e.deltaY : e.deltaX, s = this.rotation_unit_from_wheel_event(e);
3333
3333
  this.doTransactionFromDeviceEvents([
3334
- this.module.DeviceEvent.wheelRotations(i, -r, n)
3334
+ this.module.DeviceEvent.wheelRotations(i, -r, s)
3335
3335
  ]);
3336
3336
  }
3337
3337
  emitWarningEvent(e) {
@@ -3397,31 +3397,31 @@ class On {
3397
3397
  e.preventDefault();
3398
3398
  let i, r;
3399
3399
  e.type === "keydown" ? (i = this.module.DeviceEvent.keyPressed, r = this.module.DeviceEvent.unicodePressed) : e.type === "keyup" && (i = this.module.DeviceEvent.keyReleased, r = this.module.DeviceEvent.unicodeReleased);
3400
- let n = true;
3400
+ let s = true;
3401
3401
  if (!this.supportsUnicodeKeyboardShortcuts()) {
3402
- for (const b of ["Alt", "Control", "Meta", "AltGraph", "OS"])
3403
- if (e.getModifierState(b)) {
3404
- n = false;
3402
+ for (const p of ["Alt", "Control", "Meta", "AltGraph", "OS"])
3403
+ if (e.getModifierState(p)) {
3404
+ s = false;
3405
3405
  break;
3406
3406
  }
3407
3407
  }
3408
3408
  const o = e.code in qt, d = e.code in Be;
3409
3409
  if (o && this.updateModifierKeyState(e), d && this.syncModifier(e), !e.repeat || !o && !d) {
3410
- const b = pi(e.code), c = Number.isNaN(b);
3410
+ const p = bi(e.code), c = Number.isNaN(p);
3411
3411
  if (!this.keyboardUnicodeMode && i && !c) {
3412
- this.doTransactionFromDeviceEvents([i(b)]);
3412
+ this.doTransactionFromDeviceEvents([i(p)]);
3413
3413
  return;
3414
3414
  }
3415
3415
  if (this.keyboardUnicodeMode && r && i) {
3416
3416
  if (["Dead", "Unidentified"].indexOf(e.key) != -1)
3417
3417
  return;
3418
- const p = pi(e.key);
3419
- Number.isNaN(p) && e.key.length === 1 && !o && n ? this.doTransactionFromDeviceEvents([r(e.key)]) : c || this.doTransactionFromDeviceEvents([i(b)]);
3418
+ const b = bi(e.key);
3419
+ Number.isNaN(b) && e.key.length === 1 && !o && s ? this.doTransactionFromDeviceEvents([r(e.key)]) : c || this.doTransactionFromDeviceEvents([i(p)]);
3420
3420
  return;
3421
3421
  }
3422
3422
  }
3423
3423
  }
3424
- setCursorStyleCallback(e, i, r, n) {
3424
+ setCursorStyleCallback(e, i, r, s) {
3425
3425
  let o;
3426
3426
  switch (e) {
3427
3427
  case "hidden": {
@@ -3433,14 +3433,14 @@ class On {
3433
3433
  break;
3434
3434
  }
3435
3435
  case "url": {
3436
- if (i == null || r == null || n == null) {
3436
+ if (i == null || r == null || s == null) {
3437
3437
  console.error("Invalid custom cursor parameters.");
3438
3438
  return;
3439
3439
  }
3440
3440
  const d = new Image();
3441
3441
  d.src = i;
3442
- const b = Math.round(r), c = Math.round(n);
3443
- o = `url(${i}) ${b} ${c}, default`;
3442
+ const p = Math.round(r), c = Math.round(s);
3443
+ o = `url(${i}) ${p} ${c}, default`;
3444
3444
  break;
3445
3445
  }
3446
3446
  default: {
@@ -3452,9 +3452,9 @@ class On {
3452
3452
  }
3453
3453
  syncModifier(e) {
3454
3454
  var _a2;
3455
- const i = e.getModifierState(Be.CAPS_LOCK), r = e.getModifierState(Be.NUM_LOCK), n = e.getModifierState(Be.SCROLL_LOCK), o = e.getModifierState(Be.KANA_MODE);
3455
+ const i = e.getModifierState(Be.CAPS_LOCK), r = e.getModifierState(Be.NUM_LOCK), s = e.getModifierState(Be.SCROLL_LOCK), o = e.getModifierState(Be.KANA_MODE);
3456
3456
  (_a2 = this.session) == null ? void 0 : _a2.synchronizeLockKeys(
3457
- n,
3457
+ s,
3458
3458
  r,
3459
3459
  i,
3460
3460
  o
@@ -3506,7 +3506,7 @@ class On {
3506
3506
  ]);
3507
3507
  }
3508
3508
  }
3509
- class Ln {
3509
+ class Os {
3510
3510
  constructor(e, i) {
3511
3511
  __publicField(this, "remoteDesktopService");
3512
3512
  __publicField(this, "clipboardService");
@@ -3571,6 +3571,9 @@ class Ln {
3571
3571
  async sendClipboardData() {
3572
3572
  return await this.clipboardService.sendClipboardData();
3573
3573
  }
3574
+ async setClipboardPaused(e) {
3575
+ return await this.clipboardService.setPaused(e);
3576
+ }
3574
3577
  invokeExtension(e) {
3575
3578
  this.remoteDesktopService.invokeExtension(e);
3576
3579
  }
@@ -3603,24 +3606,25 @@ class Ln {
3603
3606
  setEnableAutoClipboard: this.setEnableAutoClipboard.bind(this),
3604
3607
  saveRemoteClipboardData: this.saveRemoteClipboardData.bind(this),
3605
3608
  sendClipboardData: this.sendClipboardData.bind(this),
3609
+ setClipboardPaused: this.setClipboardPaused.bind(this),
3606
3610
  invokeExtension: this.invokeExtension.bind(this),
3607
3611
  enableFileTransfer: this.enableFileTransfer.bind(this)
3608
3612
  };
3609
3613
  }
3610
3614
  }
3611
- var W = /* @__PURE__ */ ((t) => (t[t.Full = 0] = "Full", t[t.TextOnly = 1] = "TextOnly", t[t.TextOnlyServerOnly = 2] = "TextOnlyServerOnly", t[t.None = 3] = "None", t))(W || {}), er = /* @__PURE__ */ ((t) => (t[t.General = 0] = "General", t[t.WrongPassword = 1] = "WrongPassword", t[t.LogonFailure = 2] = "LogonFailure", t[t.AccessDenied = 3] = "AccessDenied", t[t.RDCleanPath = 4] = "RDCleanPath", t[t.ProxyConnect = 5] = "ProxyConnect", t[t.NegotiationFailure = 6] = "NegotiationFailure", t))(er || {});
3612
- const Fn = 100;
3613
- function ne(t) {
3615
+ var V = /* @__PURE__ */ ((t) => (t[t.Full = 0] = "Full", t[t.TextOnly = 1] = "TextOnly", t[t.TextOnlyServerOnly = 2] = "TextOnlyServerOnly", t[t.None = 3] = "None", t))(V || {}), er = /* @__PURE__ */ ((t) => (t[t.General = 0] = "General", t[t.WrongPassword = 1] = "WrongPassword", t[t.LogonFailure = 2] = "LogonFailure", t[t.AccessDenied = 3] = "AccessDenied", t[t.RDCleanPath = 4] = "RDCleanPath", t[t.ProxyConnect = 5] = "ProxyConnect", t[t.NegotiationFailure = 6] = "NegotiationFailure", t))(er || {});
3616
+ const Ls = 100;
3617
+ function W(t) {
3614
3618
  throw {
3615
3619
  kind: () => er.General,
3616
3620
  backtrace: () => t
3617
3621
  };
3618
3622
  }
3619
- class Mn {
3623
+ class Fs {
3620
3624
  constructor(e, i) {
3621
3625
  __publicField(this, "remoteDesktopService");
3622
3626
  __publicField(this, "module");
3623
- __publicField(this, "ClipboardApiSupported", W.None);
3627
+ __publicField(this, "ClipboardApiSupported", V.None);
3624
3628
  __publicField(this, "lastClientClipboardItems", {});
3625
3629
  __publicField(this, "lastReceivedClipboardData", {});
3626
3630
  __publicField(this, "lastSentClipboardData", null);
@@ -3637,6 +3641,13 @@ class Mn {
3637
3641
  __publicField(this, "monitorTimer");
3638
3642
  // Only the latest remote clipboard content is written once the window has the focus again.
3639
3643
  __publicField(this, "pendingFocus", null);
3644
+ // While paused (see setPaused), the clipboard goes neither way.
3645
+ __publicField(this, "paused", false);
3646
+ // Whether the latest clipboard announced to the server is the one this side sent, as far as this side knows: the
3647
+ // server's own copies are known only by the content the session fetches of them.
3648
+ __publicField(this, "offeredLatest", false);
3649
+ // Whether pausing withdrew what this side had offered, which resuming offers again.
3650
+ __publicField(this, "withdrawn", false);
3640
3651
  // Firefox v126 and below does not support `navigator.clipboard.read` and `navigator.clipboard.write`.
3641
3652
  // So, we need to define specific methods to handle text-only clipboard.
3642
3653
  //
@@ -3660,6 +3671,22 @@ class Mn {
3660
3671
  resumeMonitoring() {
3661
3672
  this.monitoringSuppressed = false;
3662
3673
  }
3674
+ /**
3675
+ * Pauses the clipboard both ways, or resumes it: for a session that is only watched, say. While paused, the local
3676
+ * clipboard is neither read nor sent, and what the server's clipboard gets is dropped, not kept for later. Pausing
3677
+ * withdraws what this side offered the server, if it is still the latest there (the server is sent an empty
3678
+ * clipboard), so that a paste there gets nothing from here; a copy of the server's own since then is left alone.
3679
+ * Resuming offers the local clipboard again if pausing withdrew it, else only once it changes, as usual.
3680
+ */
3681
+ async setPaused(e) {
3682
+ if (e !== this.paused) {
3683
+ if (this.paused = e, !e) {
3684
+ this.withdrawn && (this.withdrawn = false, this.lastClientClipboardItems = {});
3685
+ return;
3686
+ }
3687
+ this.pendingFocus = null, this.clipboardDataToSave = null, this.ffClipboardDataToSave = null, this.offeredLatest && (this.offeredLatest = false, this.withdrawn = true, this.lastSentClipboardData = null, await this.remoteDesktopService.onClipboardChangedEmpty());
3688
+ }
3689
+ }
3663
3690
  /**
3664
3691
  * Stops the monitoring loop and drops the clipboard write waiting for focus, until the next session starts.
3665
3692
  */
@@ -3677,29 +3704,29 @@ class Mn {
3677
3704
  this.remoteDesktopService.emitWarningEvent("Clipboard is available only in secure contexts (HTTPS).");
3678
3705
  return;
3679
3706
  }
3680
- if (navigator.clipboard != null && (navigator.clipboard.read != null && navigator.clipboard.write != null ? this.ClipboardApiSupported = W.Full : navigator.clipboard.readText != null ? (this.ClipboardApiSupported = W.TextOnly, this.remoteDesktopService.emitWarningEvent(
3707
+ if (navigator.clipboard != null && (navigator.clipboard.read != null && navigator.clipboard.write != null ? this.ClipboardApiSupported = V.Full : navigator.clipboard.readText != null ? (this.ClipboardApiSupported = V.TextOnly, this.remoteDesktopService.emitWarningEvent(
3681
3708
  "Clipboard is limited to text-only data types due to an outdated browser version!"
3682
- )) : navigator.clipboard.writeText != null && (this.ClipboardApiSupported = W.TextOnlyServerOnly, this.remoteDesktopService.emitWarningEvent(
3709
+ )) : navigator.clipboard.writeText != null && (this.ClipboardApiSupported = V.TextOnlyServerOnly, this.remoteDesktopService.emitWarningEvent(
3683
3710
  "Clipboard reading is not supported and writing is limited to text-only data types due to an outdated browser version!"
3684
- ))), this.ClipboardApiSupported === W.Full)
3711
+ ))), this.ClipboardApiSupported === V.Full)
3685
3712
  try {
3686
3713
  (await navigator.permissions.query({
3687
3714
  name: "clipboard-read"
3688
- })).state === "denied" && (this.ClipboardApiSupported = W.TextOnly);
3715
+ })).state === "denied" && (this.ClipboardApiSupported = V.TextOnly);
3689
3716
  } catch {
3690
3717
  try {
3691
3718
  await navigator.clipboard.read();
3692
3719
  } catch {
3693
- this.ClipboardApiSupported = W.TextOnly;
3720
+ this.ClipboardApiSupported = V.TextOnly;
3694
3721
  }
3695
3722
  }
3696
- if (this.ClipboardApiSupported === W.None) {
3723
+ if (this.ClipboardApiSupported === V.None) {
3697
3724
  this.remoteDesktopService.emitWarningEvent(
3698
3725
  "Clipboard is not supported due to an outdated browser version!"
3699
3726
  );
3700
3727
  return;
3701
3728
  }
3702
- this.disposed || (this.remoteDesktopService.sessionEndedObservable.subscribe(() => this.stopMonitoring()), this.remoteDesktopService.setOnForceClipboardUpdate(this.onForceClipboardUpdate.bind(this)), this.ClipboardApiSupported === W.Full ? this.remoteDesktopService.autoClipboard ? (this.remoteDesktopService.setOnRemoteClipboardChanged(this.onRemoteClipboardChangedAutoMode.bind(this)), this.remoteDesktopService.sessionStartedObservable.subscribe((e) => {
3729
+ this.disposed || (this.remoteDesktopService.sessionEndedObservable.subscribe(() => this.stopMonitoring()), this.remoteDesktopService.setOnForceClipboardUpdate(this.onForceClipboardUpdate.bind(this)), this.ClipboardApiSupported === V.Full ? this.remoteDesktopService.autoClipboard ? (this.remoteDesktopService.setOnRemoteClipboardChanged(this.onRemoteClipboardChangedAutoMode.bind(this)), this.remoteDesktopService.sessionStartedObservable.subscribe((e) => {
3703
3730
  this.monitoringActive = !this.disposed, this.scheduleOnMonitorClipboardUpdate();
3704
3731
  })) : this.remoteDesktopService.setOnRemoteClipboardChanged(
3705
3732
  this.onRemoteClipboardChangedManualMode.bind(this)
@@ -3708,38 +3735,38 @@ class Mn {
3708
3735
  // Copies clipboard content received from the server to the local clipboard.
3709
3736
  // Returns the result of the operation. On failure, it additionally raises an error session event.
3710
3737
  async saveRemoteClipboardData() {
3711
- if (this.ClipboardApiSupported !== W.Full)
3738
+ if (this.ClipboardApiSupported !== V.Full)
3712
3739
  return await this.ffSaveRemoteClipboardData();
3713
- this.clipboardDataToSave == null && ne("The server did not send the clipboard data.");
3740
+ this.clipboardDataToSave == null && W("The server did not send the clipboard data.");
3714
3741
  try {
3715
3742
  const e = this.clipboardDataToRecord(this.clipboardDataToSave), i = new ClipboardItem(e);
3716
3743
  await navigator.clipboard.write([i]), this.clipboardDataToSave = null;
3717
3744
  } catch (e) {
3718
- ne("Failed to write to the clipboard: " + e);
3745
+ W("Failed to write to the clipboard: " + e);
3719
3746
  }
3720
3747
  }
3721
3748
  // Sends local clipboard's content to the server.
3722
3749
  // Returns the result of the operation. On failure, it additionally raises an error session event.
3723
3750
  async sendClipboardData() {
3724
- if (this.ClipboardApiSupported !== W.Full)
3751
+ if (this.paused && W("The clipboard is paused."), this.ClipboardApiSupported !== V.Full)
3725
3752
  return await this.ffSendClipboardData();
3726
- const e = await navigator.clipboard.read().catch((n) => {
3727
- ne("Failed to read from the clipboard: " + n);
3753
+ const e = await navigator.clipboard.read().catch((s) => {
3754
+ W("Failed to read from the clipboard: " + s);
3728
3755
  });
3729
- e.length == 0 && ne("The clipboard has no data.");
3756
+ e.length == 0 && W("The clipboard has no data.");
3730
3757
  const i = e[0];
3731
- i.types.some((n) => n.startsWith("text/") || n.startsWith("image/png")) || ne("The clipboard has no data of supported type (text or image).");
3758
+ i.types.some((s) => s.startsWith("text/") || s.startsWith("image/png")) || W("The clipboard has no data of supported type (text or image).");
3732
3759
  const r = new this.module.ClipboardData();
3733
- for (const n of i.types) {
3734
- const o = n.startsWith("text/"), d = await i.getType(n);
3735
- o ? r.addText(n, await d.text()) : r.addBinary(n, new Uint8Array(await d.arrayBuffer()));
3760
+ for (const s of i.types) {
3761
+ const o = s.startsWith("text/"), d = await i.getType(s);
3762
+ o ? r.addText(s, await d.text()) : r.addBinary(s, new Uint8Array(await d.arrayBuffer()));
3736
3763
  }
3737
- r.isEmpty() || (this.lastSentClipboardData = r, await this.remoteDesktopService.onClipboardChanged(r));
3764
+ (this.paused || this.disposed) && W("The clipboard is paused or disposed."), r.isEmpty() || (this.lastSentClipboardData = r, this.offeredLatest = true, await this.remoteDesktopService.onClipboardChanged(r));
3738
3765
  }
3739
3766
  scheduleOnMonitorClipboardUpdate() {
3740
3767
  clearTimeout(this.monitorTimer), this.monitorTimer = this.monitoringActive && !this.disposed ? setTimeout(() => {
3741
3768
  this.monitorTimer = void 0, this.onMonitorClipboard();
3742
- }, Fn) : void 0;
3769
+ }, Ls) : void 0;
3743
3770
  }
3744
3771
  // With several sessions on a page, the automatic clipboard sync belongs to the one with the keyboard focus: the
3745
3772
  // others neither send the local clipboard nor overwrite it.
@@ -3771,16 +3798,16 @@ class Mn {
3771
3798
  clipboardDataToRecord(e) {
3772
3799
  const i = {};
3773
3800
  for (const r of e.items()) {
3774
- const n = r.mimeType();
3775
- i[n] = new Blob([r.value()], { type: n });
3801
+ const s = r.mimeType();
3802
+ i[s] = new Blob([r.value()], { type: s });
3776
3803
  }
3777
3804
  return i;
3778
3805
  }
3779
3806
  clipboardDataToClipboardItemsRecord(e) {
3780
3807
  const i = {};
3781
3808
  for (const r of e.items()) {
3782
- const n = r.mimeType();
3783
- i[n] = r.value();
3809
+ const s = r.mimeType();
3810
+ i[s] = r.value();
3784
3811
  }
3785
3812
  return i;
3786
3813
  }
@@ -3789,18 +3816,23 @@ class Mn {
3789
3816
  try {
3790
3817
  if (this.disposed)
3791
3818
  return;
3792
- this.lastSentClipboardData ? await this.remoteDesktopService.onClipboardChanged(this.lastSentClipboardData) : await this.remoteDesktopService.onClipboardChangedEmpty();
3819
+ this.lastSentClipboardData && !this.paused ? (this.offeredLatest = true, await this.remoteDesktopService.onClipboardChanged(this.lastSentClipboardData)) : (this.withdrawn || (this.withdrawn = this.paused && this.lastSentClipboardData !== null), this.offeredLatest = false, await this.remoteDesktopService.onClipboardChangedEmpty());
3793
3820
  } catch (e) {
3794
3821
  console.error("Failed to send initial clipboard state: " + e);
3795
3822
  }
3796
3823
  }
3824
+ // The server copied something of its own: the latest there is no longer this side's, and nothing of this side's is
3825
+ // to be offered again on resuming. True when the copy is to be dropped: while paused.
3826
+ serverCopied() {
3827
+ return this.offeredLatest = false, this.withdrawn = false, this.paused;
3828
+ }
3797
3829
  // This callback is required to update client clipboard state when remote side has changed.
3798
3830
  onRemoteClipboardChangedManualMode(e) {
3799
- this.clipboardDataToSave = e, this.remoteDesktopService.emitClipboardRemoteUpdateEvent();
3831
+ this.serverCopied() || (this.clipboardDataToSave = e, this.remoteDesktopService.emitClipboardRemoteUpdateEvent());
3800
3832
  }
3801
3833
  // This callback is required to update client clipboard state when remote side has changed.
3802
3834
  onRemoteClipboardChangedAutoMode(e) {
3803
- if (!this.disposed)
3835
+ if (!(this.serverCopied() || this.disposed))
3804
3836
  try {
3805
3837
  const i = this.clipboardDataToRecord(e), r = new ClipboardItem(i);
3806
3838
  this.runWhenWindowFocused(() => (this.lastReceivedClipboardData = this.clipboardDataToClipboardItemsRecord(e), navigator.clipboard.write([r])));
@@ -3812,7 +3844,7 @@ class Mn {
3812
3844
  async onMonitorClipboard() {
3813
3845
  let e = false;
3814
3846
  try {
3815
- if (this.disposed || !this.monitoringActive || this.monitoringSuppressed || !this.isFocused())
3847
+ if (this.disposed || !this.monitoringActive || this.monitoringSuppressed || this.paused || !this.isFocused())
3816
3848
  return;
3817
3849
  const i = await navigator.clipboard.read();
3818
3850
  if (i.length == 0)
@@ -3820,22 +3852,22 @@ class Mn {
3820
3852
  const r = i[0];
3821
3853
  if (!r.types.some((d) => d.startsWith("text/") || d.startsWith("image/png")))
3822
3854
  return;
3823
- const n = {};
3855
+ const s = {};
3824
3856
  let o = true;
3825
3857
  for (const d of r.types) {
3826
- const b = d.startsWith("text/"), c = await r.getType(d), p = b ? await c.text() : new Uint8Array(await c.arrayBuffer()), h = b ? function(s, l) {
3827
- return s === l;
3828
- } : function(s, l) {
3829
- return !(s instanceof Uint8Array) || !(l instanceof Uint8Array) ? false : s.length === l.length && s.every((a, u) => a === l[u]);
3830
- }, m = this.lastClientClipboardItems[d];
3831
- h(m, p) || (h(this.lastReceivedClipboardData[d], p) ? this.lastClientClipboardItems[d] = this.lastReceivedClipboardData[d] : o = false), n[d] = p;
3858
+ const p = d.startsWith("text/"), c = await r.getType(d), b = p ? await c.text() : new Uint8Array(await c.arrayBuffer()), f = p ? function(n, l) {
3859
+ return n === l;
3860
+ } : function(n, l) {
3861
+ return !(n instanceof Uint8Array) || !(l instanceof Uint8Array) ? false : n.length === l.length && n.every((a, u) => a === l[u]);
3862
+ }, w = this.lastClientClipboardItems[d];
3863
+ f(w, b) || (f(this.lastReceivedClipboardData[d], b) ? this.lastClientClipboardItems[d] = this.lastReceivedClipboardData[d] : o = false), s[d] = b;
3832
3864
  }
3833
- if (!o && !this.disposed && this.monitoringActive && !this.monitoringSuppressed && this.isFocused()) {
3834
- this.lastClientClipboardItems = n;
3865
+ if (!o && !this.disposed && this.monitoringActive && !this.monitoringSuppressed && !this.paused && this.isFocused()) {
3866
+ this.lastClientClipboardItems = s;
3835
3867
  const d = new this.module.ClipboardData();
3836
- Object.entries(n).forEach(([b, c]) => {
3837
- c != null && (b.startsWith("text/") && typeof c == "string" ? d.addText(b, c) : b.startsWith("image/") && c instanceof Uint8Array && d.addBinary(b, c));
3838
- }), d.isEmpty() || (this.lastSentClipboardData = d, await this.remoteDesktopService.onClipboardChanged(d));
3868
+ Object.entries(s).forEach(([p, c]) => {
3869
+ c != null && (p.startsWith("text/") && typeof c == "string" ? d.addText(p, c) : p.startsWith("image/") && c instanceof Uint8Array && d.addBinary(p, c));
3870
+ }), d.isEmpty() || (this.lastSentClipboardData = d, this.offeredLatest = true, await this.remoteDesktopService.onClipboardChanged(d));
3839
3871
  }
3840
3872
  } catch (i) {
3841
3873
  if (i instanceof DOMException && i.name === "NotAllowedError") {
@@ -3861,6 +3893,8 @@ class Mn {
3861
3893
  // Firefox specific function.
3862
3894
  // This callback is required to update client clipboard state when remote side has changed.
3863
3895
  ffOnRemoteClipboardChanged(e) {
3896
+ if (this.serverCopied())
3897
+ return;
3864
3898
  const i = this.ffRetrieveTextData(e);
3865
3899
  i !== "" && (this.ffClipboardDataToSave = i, this.remoteDesktopService.emitClipboardRemoteUpdateEvent());
3866
3900
  }
@@ -3869,11 +3903,11 @@ class Mn {
3869
3903
  // Copies clipboard content received from the server to the local clipboard.
3870
3904
  // Returns the result of the operation. On failure, it additionally raises an error session event.
3871
3905
  async ffSaveRemoteClipboardData() {
3872
- this.ffClipboardDataToSave == null && ne("The server did not send the clipboard data.");
3906
+ this.ffClipboardDataToSave == null && W("The server did not send the clipboard data.");
3873
3907
  try {
3874
3908
  await navigator.clipboard.writeText(this.ffClipboardDataToSave), this.ffClipboardDataToSave = null;
3875
3909
  } catch (e) {
3876
- ne("Failed to write to the clipboard: " + e);
3910
+ W("Failed to write to the clipboard: " + e);
3877
3911
  }
3878
3912
  }
3879
3913
  // Firefox specific function. We are using text-only clipboard API here.
@@ -3881,13 +3915,13 @@ class Mn {
3881
3915
  // Sends local clipboard's content to the server.
3882
3916
  // Returns the result of the operation. On failure, it additionally raises an error session event.
3883
3917
  async ffSendClipboardData() {
3884
- this.ClipboardApiSupported !== W.TextOnly && ne("The browser does not support clipboard read.");
3918
+ this.ClipboardApiSupported !== V.TextOnly && W("The browser does not support clipboard read.");
3885
3919
  const e = await navigator.clipboard.readText().catch((r) => {
3886
- ne("Failed to read from the clipboard: " + r);
3920
+ W("Failed to read from the clipboard: " + r);
3887
3921
  });
3888
- e.length == 0 && ne("The clipboard has no data.");
3922
+ e.length == 0 && W("The clipboard has no data.");
3889
3923
  const i = new this.module.ClipboardData();
3890
- i.addText("text/plain", e), i.isEmpty() || (this.lastSentClipboardData = i, await this.remoteDesktopService.onClipboardChanged(i));
3924
+ i.addText("text/plain", e), (this.paused || this.disposed) && W("The clipboard is paused or disposed."), i.isEmpty() || (this.lastSentClipboardData = i, this.offeredLatest = true, await this.remoteDesktopService.onClipboardChanged(i));
3891
3925
  }
3892
3926
  }
3893
3927
  function tr(t = window) {
@@ -3897,7 +3931,7 @@ function tr(t = window) {
3897
3931
  y: t.innerHeight ?? e.clientHeight ?? i.clientHeight
3898
3932
  };
3899
3933
  }
3900
- function Nn(t, e = window) {
3934
+ function Ms(t, e = window) {
3901
3935
  if (t) {
3902
3936
  const i = t.getBoundingClientRect();
3903
3937
  if (i.width > 0 && i.height > 0)
@@ -3905,97 +3939,97 @@ function Nn(t, e = window) {
3905
3939
  }
3906
3940
  return tr(e);
3907
3941
  }
3908
- var Pn = (t, e) => e(t, true), Un = (t, e) => e(t, false), Bn = (t) => t.preventDefault(), zn = /* @__PURE__ */ ln('<div class="svelte-1103xra"><div><div class="screen-viewer svelte-1103xra"><canvas id="renderer" tabindex="0" class="svelte-1103xra"></canvas></div></div></div>');
3909
- const In = {
3942
+ var Ps = (t, e) => e(t, true), Ns = (t, e) => e(t, false), Us = (t) => t.preventDefault(), Bs = /* @__PURE__ */ as('<div class="svelte-1103xra"><div><div class="screen-viewer svelte-1103xra"><canvas id="renderer" tabindex="0" class="svelte-1103xra"></canvas></div></div></div>');
3943
+ const zs = {
3910
3944
  hash: "svelte-1103xra",
3911
3945
  code: ".screen-wrapper.svelte-1103xra {position:relative;}.capturing-inputs.svelte-1103xra {outline:1px solid rgba(0, 97, 166, 0.7);outline-offset:-1px;}canvas.svelte-1103xra {width:100%;height:100%;}.svelte-1103xra::selection {background-color:transparent;}.screen-wrapper.hidden.svelte-1103xra {pointer-events:none !important;position:absolute !important;visibility:hidden;height:100%;width:100%;transform:translate(-100%, -100%);}"
3912
3946
  };
3913
3947
  function ir(t, e) {
3914
- Vi(e, true), cn(t, In);
3915
- let i = ut(e, "scale"), r = ut(e, "verbose"), n = ut(e, "flexcenter"), o = ut(e, "module"), d = Ft(false), b = () => {
3948
+ Vi(e, true), ds(t, zs);
3949
+ let i = ut(e, "scale"), r = ut(e, "verbose"), s = ut(e, "flexcenter"), o = ut(e, "module"), d = Ft(false), p = () => {
3916
3950
  var _a2, _b2;
3917
3951
  return L.info(`
3918
- capturingInputs: ${document.activeElement === h}
3952
+ capturingInputs: ${document.activeElement === f}
3919
3953
  current active element: ${document.activeElement}
3920
3954
  `), ((_b2 = (_a2 = document.activeElement) == null ? void 0 : _a2.shadowRoot) == null ? void 0 : _b2.firstElementChild) === c;
3921
- }, c, p, h, m = Ft(""), s = Ft(""), l = new On(o()), a = new Mn(l, o()), u = new Ln(l, a), f = me.Fit, $ = false, A;
3922
- function w(v) {
3923
- b() && Ve(v);
3955
+ }, c, b, f, w = Ft(""), n = Ft(""), l = new As(o()), a = new Fs(l, o()), u = new Os(l, a), h = we.Fit, $ = false, A;
3956
+ function m(v) {
3957
+ p() && Ve(v);
3924
3958
  }
3925
3959
  function _() {
3926
- he(), it(), window.addEventListener("keydown", w, false), window.addEventListener("keyup", w, false), window.addEventListener("focus", be), window.addEventListener("focusin", be), window.addEventListener("blur", pe), document.addEventListener("visibilitychange", He);
3960
+ fe(), it(), window.addEventListener("keydown", m, false), window.addEventListener("keyup", m, false), window.addEventListener("focus", pe), window.addEventListener("focusin", pe), window.addEventListener("blur", be), document.addEventListener("visibilitychange", He);
3927
3961
  }
3928
3962
  function O() {
3929
- n() === "true" && (c.style.flexGrow = "", c.style.display = "", c.style.justifyContent = "", c.style.alignItems = "");
3963
+ s() === "true" && (c.style.flexGrow = "", c.style.display = "", c.style.justifyContent = "", c.style.alignItems = "");
3930
3964
  }
3931
3965
  function F(v) {
3932
- n() === "true" && (c.style.flexGrow = "1", c.style.display = "flex", c.style.justifyContent = "center", c.style.alignItems = "center");
3966
+ s() === "true" && (c.style.flexGrow = "1", c.style.display = "flex", c.style.justifyContent = "center", c.style.alignItems = "center");
3933
3967
  }
3934
- function Q(v, T, M) {
3968
+ function ee(v, T, M) {
3935
3969
  let R = `height: ${v}; width: ${T}`;
3936
- R = `${R}; max-height: ${v}; max-width: ${T}; min-height: ${v}; min-width: ${T}`, q(m, De(R));
3970
+ R = `${R}; max-height: ${v}; max-width: ${T}; min-height: ${v}; min-width: ${T}`, H(w, De(R));
3937
3971
  }
3938
3972
  function ae(v, T, M) {
3939
- q(s, `height: ${v}; width: ${T}; overflow: ${M}`);
3973
+ H(n, `height: ${v}; width: ${T}; overflow: ${M}`);
3940
3974
  }
3941
3975
  const Ee = (v) => {
3942
- ee(i());
3976
+ te(i());
3943
3977
  };
3944
- function he() {
3978
+ function fe() {
3945
3979
  l.resizeObservable.subscribe((v) => {
3946
- L.info(`Resize canvas to: ${v.desktopSize.width}x${v.desktopSize.height}`), h.width = v.desktopSize.width, h.height = v.desktopSize.height, ee(i());
3980
+ L.info(`Resize canvas to: ${v.desktopSize.width}x${v.desktopSize.height}`), f.width = v.desktopSize.width, f.height = v.desktopSize.height, te(i());
3947
3981
  });
3948
3982
  }
3949
3983
  function it() {
3950
3984
  window.addEventListener("resize", Ee), l.scaleObservable.subscribe((v) => {
3951
- L.info("Change scale!"), ee(v);
3985
+ L.info("Change scale!"), te(v);
3952
3986
  }), l.dynamicResizeObservable.subscribe((v) => {
3953
- L.info(`Dynamic resize!, width: ${v.width}, height: ${v.height}`), Q(v.height.toString() + "px", v.width.toString() + "px");
3987
+ L.info(`Dynamic resize!, width: ${v.width}, height: ${v.height}`), ee(v.height.toString() + "px", v.width.toString() + "px");
3954
3988
  }), l.changeVisibilityObservable.subscribe((v) => {
3955
- q(d, De(v)), v && (ae("100%", "100%", "hidden"), clearTimeout(A), A = setTimeout(() => ee(i()), 150));
3989
+ H(d, De(v)), v && (ae("100%", "100%", "hidden"), clearTimeout(A), A = setTimeout(() => te(i()), 150));
3956
3990
  });
3957
3991
  }
3958
3992
  function rt() {
3959
- ee(f);
3993
+ te(h);
3960
3994
  }
3961
- function ee(v) {
3995
+ function te(v) {
3962
3996
  if (!$ && (O(), U(d)))
3963
3997
  switch (v) {
3964
3998
  case "fit":
3965
- case me.Fit:
3966
- L.info("Size to fit"), f = me.Fit, i("fit"), At();
3999
+ case we.Fit:
4000
+ L.info("Size to fit"), h = we.Fit, i("fit"), At();
3967
4001
  break;
3968
4002
  case "full":
3969
- case me.Full:
3970
- L.info("Size to full"), f = me.Full, Re(), i("full");
4003
+ case we.Full:
4004
+ L.info("Size to full"), h = we.Full, Re(), i("full");
3971
4005
  break;
3972
4006
  case "real":
3973
- case me.Real:
3974
- L.info("Size to real"), f = me.Real, $e(), i("real");
4007
+ case we.Real:
4008
+ L.info("Size to real"), h = we.Real, $e(), i("real");
3975
4009
  break;
3976
4010
  }
3977
4011
  }
3978
4012
  function Re() {
3979
4013
  const v = qe(), T = v.x, M = v.y;
3980
- let R = h.width, z = h.height;
3981
- const N = Math.min(T / h.width, M / h.height);
3982
- R = R * N, z = z * N, ae(`${M}px`, `${T}px`, "hidden"), R = R > 0 ? R : 0, z = z > 0 ? z : 0, Q(`${z}px`, `${R}px`);
4014
+ let R = f.width, z = f.height;
4015
+ const P = Math.min(T / f.width, M / f.height);
4016
+ R = R * P, z = z * P, ae(`${M}px`, `${T}px`, "hidden"), R = R > 0 ? R : 0, z = z > 0 ? z : 0, ee(`${z}px`, `${R}px`);
3983
4017
  }
3984
4018
  function At(v = false) {
3985
- const T = Le(), M = p.getBoundingClientRect(), R = T.x - M.x, z = T.y - M.y;
3986
- let N = h.width, ve = h.height;
3987
- if (!v || R < h.width || z < h.height) {
3988
- const Ne = Math.min(R / h.width, z / h.height);
3989
- N = N * Ne, ve = ve * Ne;
4019
+ const T = Le(), M = b.getBoundingClientRect(), R = T.x - M.x, z = T.y - M.y;
4020
+ let P = f.width, ve = f.height;
4021
+ if (!v || R < f.width || z < f.height) {
4022
+ const Pe = Math.min(R / f.width, z / f.height);
4023
+ P = P * Pe, ve = ve * Pe;
3990
4024
  }
3991
- N = N > 0 ? N : 0, ve = ve > 0 ? ve : 0, ae("initial", "initial", "hidden"), Q(`${ve}px`, `${N}px`), F();
4025
+ P = P > 0 ? P : 0, ve = ve > 0 ? ve : 0, ae("initial", "initial", "hidden"), ee(`${ve}px`, `${P}px`), F();
3992
4026
  }
3993
4027
  function $e() {
3994
- const v = Le(), T = p.getBoundingClientRect(), M = v.x - T.x, R = v.y - T.y;
3995
- M < h.width || R < h.height ? ae(`${Math.min(R, h.height)}px`, `${Math.min(M, h.width)}px`, "auto") : ae("initial", "initial", "initial"), Q(`${h.height}px`, `${h.width}px`), F();
4028
+ const v = Le(), T = b.getBoundingClientRect(), M = v.x - T.x, R = v.y - T.y;
4029
+ M < f.width || R < f.height ? ae(`${Math.min(R, f.height)}px`, `${Math.min(M, f.width)}px`, "auto") : ae("initial", "initial", "initial"), ee(`${f.height}px`, `${f.width}px`), F();
3996
4030
  }
3997
4031
  function Ae(v) {
3998
- const T = h == null ? void 0 : h.getBoundingClientRect(), M = (h == null ? void 0 : h.width) / T.width, R = (h == null ? void 0 : h.height) / T.height, z = {
4032
+ const T = f == null ? void 0 : f.getBoundingClientRect(), M = (f == null ? void 0 : f.width) / T.width, R = (f == null ? void 0 : f.height) / T.height, z = {
3999
4033
  x: Math.round((v.clientX - T.left) * M),
4000
4034
  y: Math.round((v.clientY - T.top) * R)
4001
4035
  };
@@ -4004,11 +4038,11 @@ function ir(t, e) {
4004
4038
  function We(v, T) {
4005
4039
  l.mouseButtonState(v, T, true);
4006
4040
  }
4007
- function nt(v) {
4041
+ function st(v) {
4008
4042
  l.mouseWheel(v);
4009
4043
  }
4010
4044
  function Ot(v) {
4011
- h.focus({ preventScroll: true }), l.mouseIn(v);
4045
+ f.focus({ preventScroll: true }), l.mouseIn(v);
4012
4046
  }
4013
4047
  function Oe(v) {
4014
4048
  l.mouseOut(v);
@@ -4020,10 +4054,10 @@ function ir(t, e) {
4020
4054
  return tr();
4021
4055
  }
4022
4056
  function Le() {
4023
- return Nn(e.$$host);
4057
+ return Ms(e.$$host);
4024
4058
  }
4025
- async function st() {
4026
- L.info("Start canvas initialization..."), h.width = 800, h.height = 600, l.setCanvas(h), l.setOnCanvasResized(rt), _();
4059
+ async function nt() {
4060
+ L.info("Start canvas initialization..."), f.width = 800, f.height = 600, l.setCanvas(f), l.setOnCanvasResized(rt), _();
4027
4061
  }
4028
4062
  function ke() {
4029
4063
  let v = {
@@ -4035,17 +4069,17 @@ function ir(t, e) {
4035
4069
  composed: true
4036
4070
  }));
4037
4071
  }
4038
- function be() {
4072
+ function pe() {
4039
4073
  a.flushFocused();
4040
4074
  }
4041
- function pe() {
4075
+ function be() {
4042
4076
  l.focusLost();
4043
4077
  }
4044
4078
  function He() {
4045
4079
  document.visibilityState === "hidden" && l.focusLost();
4046
4080
  }
4047
4081
  Zi(async () => {
4048
- if (L.verbose = r() === "true", L.info("Dom ready"), await st(), !$) {
4082
+ if (L.verbose = r() === "true", L.info("Dom ready"), await nt(), !$) {
4049
4083
  try {
4050
4084
  await a.initClipboard();
4051
4085
  } catch (v) {
@@ -4053,24 +4087,24 @@ function ir(t, e) {
4053
4087
  }
4054
4088
  $ || ke();
4055
4089
  }
4056
- }), pn(() => {
4057
- $ = true, clearTimeout(A), a.dispose(), window.removeEventListener("resize", Ee), window.removeEventListener("keydown", w, false), window.removeEventListener("keyup", w, false), window.removeEventListener("focus", be), window.removeEventListener("focusin", be), window.removeEventListener("blur", pe), document.removeEventListener("visibilitychange", He);
4090
+ }), ps(() => {
4091
+ $ = true, clearTimeout(A), a.dispose(), window.removeEventListener("resize", Ee), window.removeEventListener("keydown", m, false), window.removeEventListener("keyup", m, false), window.removeEventListener("focus", pe), window.removeEventListener("focusin", pe), window.removeEventListener("blur", be), document.removeEventListener("visibilitychange", He);
4058
4092
  });
4059
- var te = zn(), le = Nt(te);
4093
+ var ie = Bs(), le = Pt(ie);
4060
4094
  let Fe;
4061
- var Me = Nt(le), j = Nt(Me);
4062
- return j.__mousemove = Ae, j.__mousedown = [Pn, We], j.__mouseup = [Un, We], j.__contextmenu = [Bn], Pt(j, (v) => h = v, () => h), Mt(Me), Mt(le), Pt(le, (v) => p = v, () => p), Mt(te), Pt(te, (v) => c = v, () => c), Yr(() => {
4063
- Fe = hn(le, 1, `screen-wrapper scale-${i() ?? ""}`, "svelte-1103xra", Fe, {
4095
+ var Me = Pt(le), G = Pt(Me);
4096
+ return G.__mousemove = Ae, G.__mousedown = [Ps, We], G.__mouseup = [Ns, We], G.__contextmenu = [Us], Nt(G, (v) => f = v, () => f), Mt(Me), Mt(le), Nt(le, (v) => b = v, () => b), Mt(ie), Nt(ie, (v) => c = v, () => c), Yr(() => {
4097
+ Fe = hs(le, 1, `screen-wrapper scale-${i() ?? ""}`, "svelte-1103xra", Fe, {
4064
4098
  hidden: !U(d),
4065
- "capturing-inputs": b
4066
- }), ui(le, "style", U(s)), ui(Me, "style", U(m));
4067
- }), lt("mouseleave", j, (v) => {
4099
+ "capturing-inputs": p
4100
+ }), ui(le, "style", U(n)), ui(Me, "style", U(w));
4101
+ }), lt("mouseleave", G, (v) => {
4068
4102
  Oe(v);
4069
- }), lt("mouseenter", j, (v) => {
4103
+ }), lt("mouseenter", G, (v) => {
4070
4104
  Ot(v);
4071
- }), lt("wheel", j, nt), lt("selectstart", j, (v) => {
4105
+ }), lt("wheel", G, st), lt("selectstart", G, (v) => {
4072
4106
  v.preventDefault();
4073
- }), Gi(t, te), qi({
4107
+ }), Gi(t, ie), qi({
4074
4108
  get scale() {
4075
4109
  return i();
4076
4110
  },
@@ -4084,10 +4118,10 @@ function ir(t, e) {
4084
4118
  r(v), Ye();
4085
4119
  },
4086
4120
  get flexcenter() {
4087
- return n();
4121
+ return s();
4088
4122
  },
4089
4123
  set flexcenter(v) {
4090
- n(v), Ye();
4124
+ s(v), Ye();
4091
4125
  },
4092
4126
  get module() {
4093
4127
  return o();
@@ -4097,13 +4131,13 @@ function ir(t, e) {
4097
4131
  }
4098
4132
  });
4099
4133
  }
4100
- on([
4134
+ ns([
4101
4135
  "mousemove",
4102
4136
  "mousedown",
4103
4137
  "mouseup",
4104
4138
  "contextmenu"
4105
4139
  ]);
4106
- customElements.define("iron-remote-desktop", gn(
4140
+ customElements.define("iron-remote-desktop", ms(
4107
4141
  ir,
4108
4142
  {
4109
4143
  scale: {},
@@ -4120,12 +4154,12 @@ customElements.define("iron-remote-desktop", gn(
4120
4154
  }
4121
4155
  }
4122
4156
  ));
4123
- const Kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4157
+ const Is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4124
4158
  __proto__: null,
4125
4159
  default: ir
4126
4160
  }, Symbol.toStringTag, { value: "Module" }));
4127
4161
  export {
4128
- $n as Config,
4129
- An as ConfigBuilder,
4130
- Kn as default
4162
+ Rs as Config,
4163
+ $s as ConfigBuilder,
4164
+ Is as default
4131
4165
  };