iboot-http-client 1.2.7 → 1.2.8

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.
@@ -70,9 +70,9 @@ const Ir = {
70
70
  for (const o in t) {
71
71
  const n = "(" + o + ")", a = new RegExp(n);
72
72
  if (a.test(e)) {
73
- const u = a.exec(e);
73
+ const c = a.exec(e);
74
74
  let r = 0;
75
- u && u.length > 0 && (r = u[0].length), e = e.replace(a, r == 1 ? t[o].toString() : ("00" + t[o]).substring(t[o].toString().length));
75
+ c && c.length > 0 && (r = c[0].length), e = e.replace(a, r == 1 ? t[o].toString() : ("00" + t[o]).substring(t[o].toString().length));
76
76
  }
77
77
  }
78
78
  return e;
@@ -92,9 +92,9 @@ function $t() {
92
92
  if (t) {
93
93
  n && (n = n.toLowerCase());
94
94
  for (const r of t) {
95
- var a, u;
95
+ var a, c;
96
96
  const d = (a = r.domain) == null ? void 0 : a.split(":", 1)[0].toLowerCase();
97
- if (o === d || n === r.defaultLocale.toLowerCase() || (u = r.locales) != null && u.some((_) => _.toLowerCase() === n))
97
+ if (o === d || n === r.defaultLocale.toLowerCase() || (c = r.locales) != null && c.some((g) => g.toLowerCase() === n))
98
98
  return r;
99
99
  }
100
100
  }
@@ -157,8 +157,8 @@ function Mt() {
157
157
  function t(o, n) {
158
158
  if (!o.startsWith("/") || !n)
159
159
  return o;
160
- const { pathname: a, query: u, hash: r } = (0, e.parsePath)(o);
161
- return "" + n + a + u + r;
160
+ const { pathname: a, query: c, hash: r } = (0, e.parsePath)(o);
161
+ return "" + n + a + c + r;
162
162
  }
163
163
  })(Oe)), Oe;
164
164
  }
@@ -177,8 +177,8 @@ function Qt() {
177
177
  function t(o, n) {
178
178
  if (!o.startsWith("/") || !n)
179
179
  return o;
180
- const { pathname: a, query: u, hash: r } = (0, e.parsePath)(o);
181
- return "" + a + n + u + r;
180
+ const { pathname: a, query: c, hash: r } = (0, e.parsePath)(o);
181
+ return "" + a + n + c + r;
182
182
  }
183
183
  })(Ne)), Ne;
184
184
  }
@@ -214,8 +214,8 @@ function Zt() {
214
214
  }
215
215
  });
216
216
  const e = Mt(), t = tt();
217
- function o(n, a, u, r) {
218
- if (!a || a === u) return n;
217
+ function o(n, a, c, r) {
218
+ if (!a || a === c) return n;
219
219
  const d = n.toLowerCase();
220
220
  return !r && ((0, t.pathHasPrefix)(d, "/api") || (0, t.pathHasPrefix)(d, "/" + a.toLowerCase())) ? n : (0, e.addPathPrefix)(n, "/" + a);
221
221
  }
@@ -233,9 +233,9 @@ function er() {
233
233
  }
234
234
  });
235
235
  const e = Jt(), t = Mt(), o = Qt(), n = Zt();
236
- function a(u) {
237
- let r = (0, n.addLocale)(u.pathname, u.locale, u.buildId ? void 0 : u.defaultLocale, u.ignorePrefix);
238
- return (u.buildId || !u.trailingSlash) && (r = (0, e.removeTrailingSlash)(r)), u.buildId && (r = (0, o.addPathSuffix)((0, t.addPathPrefix)(r, "/_next/data/" + u.buildId), u.pathname === "/" ? "index.json" : ".json")), r = (0, t.addPathPrefix)(r, u.basePath), !u.buildId && u.trailingSlash ? r.endsWith("/") ? r : (0, o.addPathSuffix)(r, "/") : (0, e.removeTrailingSlash)(r);
236
+ function a(c) {
237
+ let r = (0, n.addLocale)(c.pathname, c.locale, c.buildId ? void 0 : c.defaultLocale, c.ignorePrefix);
238
+ return (c.buildId || !c.trailingSlash) && (r = (0, e.removeTrailingSlash)(r)), c.buildId && (r = (0, o.addPathSuffix)((0, t.addPathPrefix)(r, "/_next/data/" + c.buildId), c.pathname === "/" ? "index.json" : ".json")), r = (0, t.addPathPrefix)(r, c.basePath), !c.buildId && c.trailingSlash ? r.endsWith("/") ? r : (0, o.addPathSuffix)(r, "/") : (0, e.removeTrailingSlash)(r);
239
239
  }
240
240
  })(Te)), Te;
241
241
  }
@@ -275,7 +275,7 @@ function rr() {
275
275
  function e(t, o) {
276
276
  let n;
277
277
  const a = t.split("/");
278
- return (o || []).some((u) => a[1] && a[1].toLowerCase() === u.toLowerCase() ? (n = u, a.splice(1, 1), t = a.join("/") || "/", !0) : !1), {
278
+ return (o || []).some((c) => a[1] && a[1].toLowerCase() === c.toLowerCase() ? (n = c, a.splice(1, 1), t = a.join("/") || "/", !0) : !1), {
279
279
  pathname: t,
280
280
  detectedLocale: n
281
281
  };
@@ -314,25 +314,25 @@ function ir() {
314
314
  }
315
315
  });
316
316
  const e = rr(), t = nr(), o = tt();
317
- function n(a, u) {
317
+ function n(a, c) {
318
318
  var r;
319
- const { basePath: d, i18n: _, trailingSlash: c } = (r = u.nextConfig) != null ? r : {}, f = {
319
+ const { basePath: d, i18n: g, trailingSlash: u } = (r = c.nextConfig) != null ? r : {}, _ = {
320
320
  pathname: a,
321
- trailingSlash: a !== "/" ? a.endsWith("/") : c
321
+ trailingSlash: a !== "/" ? a.endsWith("/") : u
322
322
  };
323
- d && (0, o.pathHasPrefix)(f.pathname, d) && (f.pathname = (0, t.removePathPrefix)(f.pathname, d), f.basePath = d);
324
- let g = f.pathname;
325
- if (f.pathname.startsWith("/_next/data/") && f.pathname.endsWith(".json")) {
326
- const S = f.pathname.replace(/^\/_next\/data\//, "").replace(/\.json$/, "").split("/"), x = S[0];
327
- f.buildId = x, g = S[1] !== "index" ? "/" + S.slice(1).join("/") : "/", u.parseData === !0 && (f.pathname = g);
328
- }
329
- if (_) {
330
- let S = u.i18nProvider ? u.i18nProvider.analyze(f.pathname) : (0, e.normalizeLocalePath)(f.pathname, _.locales);
331
- f.locale = S.detectedLocale;
323
+ d && (0, o.pathHasPrefix)(_.pathname, d) && (_.pathname = (0, t.removePathPrefix)(_.pathname, d), _.basePath = d);
324
+ let p = _.pathname;
325
+ if (_.pathname.startsWith("/_next/data/") && _.pathname.endsWith(".json")) {
326
+ const S = _.pathname.replace(/^\/_next\/data\//, "").replace(/\.json$/, "").split("/"), x = S[0];
327
+ _.buildId = x, p = S[1] !== "index" ? "/" + S.slice(1).join("/") : "/", c.parseData === !0 && (_.pathname = p);
328
+ }
329
+ if (g) {
330
+ let S = c.i18nProvider ? c.i18nProvider.analyze(_.pathname) : (0, e.normalizeLocalePath)(_.pathname, g.locales);
331
+ _.locale = S.detectedLocale;
332
332
  var R;
333
- f.pathname = (R = S.pathname) != null ? R : f.pathname, !S.detectedLocale && f.buildId && (S = u.i18nProvider ? u.i18nProvider.analyze(g) : (0, e.normalizeLocalePath)(g, _.locales), S.detectedLocale && (f.locale = S.detectedLocale));
333
+ _.pathname = (R = S.pathname) != null ? R : _.pathname, !S.detectedLocale && _.buildId && (S = c.i18nProvider ? c.i18nProvider.analyze(p) : (0, e.normalizeLocalePath)(p, g.locales), S.detectedLocale && (_.locale = S.detectedLocale));
334
334
  }
335
- return f;
335
+ return _;
336
336
  }
337
337
  })(Ue)), Ue;
338
338
  }
@@ -348,28 +348,28 @@ function jt() {
348
348
  }
349
349
  });
350
350
  const e = $t(), t = er(), o = tr(), n = ir(), a = /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;
351
- function u(_, c) {
352
- return new URL(String(_).replace(a, "localhost"), c && String(c).replace(a, "localhost"));
351
+ function c(g, u) {
352
+ return new URL(String(g).replace(a, "localhost"), u && String(u).replace(a, "localhost"));
353
353
  }
354
354
  const r = /* @__PURE__ */ Symbol("NextURLInternal");
355
355
  class d {
356
- constructor(c, f, g) {
356
+ constructor(u, _, p) {
357
357
  let R, S;
358
- typeof f == "object" && "pathname" in f || typeof f == "string" ? (R = f, S = g || {}) : S = g || f || {}, this[r] = {
359
- url: u(c, R ?? S.base),
358
+ typeof _ == "object" && "pathname" in _ || typeof _ == "string" ? (R = _, S = p || {}) : S = p || _ || {}, this[r] = {
359
+ url: c(u, R ?? S.base),
360
360
  options: S,
361
361
  basePath: ""
362
362
  }, this.analyze();
363
363
  }
364
364
  analyze() {
365
- var c, f, g, R, S;
365
+ var u, _, p, R, S;
366
366
  const x = (0, n.getNextPathnameInfo)(this[r].url.pathname, {
367
367
  nextConfig: this[r].options.nextConfig,
368
368
  parseData: !process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE,
369
369
  i18nProvider: this[r].options.i18nProvider
370
370
  }), l = (0, o.getHostname)(this[r].url, this[r].options.headers);
371
- this[r].domainLocale = this[r].options.i18nProvider ? this[r].options.i18nProvider.detectDomainLocale(l) : (0, e.detectDomainLocale)((f = this[r].options.nextConfig) == null || (c = f.i18n) == null ? void 0 : c.domains, l);
372
- const b = ((g = this[r].domainLocale) == null ? void 0 : g.defaultLocale) || ((S = this[r].options.nextConfig) == null || (R = S.i18n) == null ? void 0 : R.defaultLocale);
371
+ this[r].domainLocale = this[r].options.i18nProvider ? this[r].options.i18nProvider.detectDomainLocale(l) : (0, e.detectDomainLocale)((_ = this[r].options.nextConfig) == null || (u = _.i18n) == null ? void 0 : u.domains, l);
372
+ const b = ((p = this[r].domainLocale) == null ? void 0 : p.defaultLocale) || ((S = this[r].options.nextConfig) == null || (R = S.i18n) == null ? void 0 : R.defaultLocale);
373
373
  this[r].url.pathname = x.pathname, this[r].defaultLocale = b, this[r].basePath = x.basePath ?? "", this[r].buildId = x.buildId, this[r].locale = x.locale ?? b, this[r].trailingSlash = x.trailingSlash;
374
374
  }
375
375
  formatPathname() {
@@ -388,17 +388,17 @@ function jt() {
388
388
  get buildId() {
389
389
  return this[r].buildId;
390
390
  }
391
- set buildId(c) {
392
- this[r].buildId = c;
391
+ set buildId(u) {
392
+ this[r].buildId = u;
393
393
  }
394
394
  get locale() {
395
395
  return this[r].locale ?? "";
396
396
  }
397
- set locale(c) {
398
- var f, g;
399
- if (!this[r].locale || !(!((g = this[r].options.nextConfig) == null || (f = g.i18n) == null) && f.locales.includes(c)))
400
- throw new TypeError(`The NextURL configuration includes no locale "${c}"`);
401
- this[r].locale = c;
397
+ set locale(u) {
398
+ var _, p;
399
+ if (!this[r].locale || !(!((p = this[r].options.nextConfig) == null || (_ = p.i18n) == null) && _.locales.includes(u)))
400
+ throw new TypeError(`The NextURL configuration includes no locale "${u}"`);
401
+ this[r].locale = u;
402
402
  }
403
403
  get defaultLocale() {
404
404
  return this[r].defaultLocale;
@@ -412,33 +412,33 @@ function jt() {
412
412
  get host() {
413
413
  return this[r].url.host;
414
414
  }
415
- set host(c) {
416
- this[r].url.host = c;
415
+ set host(u) {
416
+ this[r].url.host = u;
417
417
  }
418
418
  get hostname() {
419
419
  return this[r].url.hostname;
420
420
  }
421
- set hostname(c) {
422
- this[r].url.hostname = c;
421
+ set hostname(u) {
422
+ this[r].url.hostname = u;
423
423
  }
424
424
  get port() {
425
425
  return this[r].url.port;
426
426
  }
427
- set port(c) {
428
- this[r].url.port = c;
427
+ set port(u) {
428
+ this[r].url.port = u;
429
429
  }
430
430
  get protocol() {
431
431
  return this[r].url.protocol;
432
432
  }
433
- set protocol(c) {
434
- this[r].url.protocol = c;
433
+ set protocol(u) {
434
+ this[r].url.protocol = u;
435
435
  }
436
436
  get href() {
437
- const c = this.formatPathname(), f = this.formatSearch();
438
- return `${this.protocol}//${this.host}${c}${f}${this.hash}`;
437
+ const u = this.formatPathname(), _ = this.formatSearch();
438
+ return `${this.protocol}//${this.host}${u}${_}${this.hash}`;
439
439
  }
440
- set href(c) {
441
- this[r].url = u(c), this.analyze();
440
+ set href(u) {
441
+ this[r].url = c(u), this.analyze();
442
442
  }
443
443
  get origin() {
444
444
  return this[r].url.origin;
@@ -446,38 +446,38 @@ function jt() {
446
446
  get pathname() {
447
447
  return this[r].url.pathname;
448
448
  }
449
- set pathname(c) {
450
- this[r].url.pathname = c;
449
+ set pathname(u) {
450
+ this[r].url.pathname = u;
451
451
  }
452
452
  get hash() {
453
453
  return this[r].url.hash;
454
454
  }
455
- set hash(c) {
456
- this[r].url.hash = c;
455
+ set hash(u) {
456
+ this[r].url.hash = u;
457
457
  }
458
458
  get search() {
459
459
  return this[r].url.search;
460
460
  }
461
- set search(c) {
462
- this[r].url.search = c;
461
+ set search(u) {
462
+ this[r].url.search = u;
463
463
  }
464
464
  get password() {
465
465
  return this[r].url.password;
466
466
  }
467
- set password(c) {
468
- this[r].url.password = c;
467
+ set password(u) {
468
+ this[r].url.password = u;
469
469
  }
470
470
  get username() {
471
471
  return this[r].url.username;
472
472
  }
473
- set username(c) {
474
- this[r].url.username = c;
473
+ set username(u) {
474
+ this[r].url.username = u;
475
475
  }
476
476
  get basePath() {
477
477
  return this[r].basePath;
478
478
  }
479
- set basePath(c) {
480
- this[r].basePath = c.startsWith("/") ? c : `/${c}`;
479
+ set basePath(u) {
480
+ this[r].basePath = u.startsWith("/") ? u : `/${u}`;
481
481
  }
482
482
  toString() {
483
483
  return this.href;
@@ -545,7 +545,7 @@ function or() {
545
545
  return se;
546
546
  },
547
547
  INSTRUMENTATION_HOOK_FILENAME: function() {
548
- return p;
548
+ return f;
549
549
  },
550
550
  MIDDLEWARE_FILENAME: function() {
551
551
  return s;
@@ -554,7 +554,7 @@ function or() {
554
554
  return v;
555
555
  },
556
556
  NEXT_BODY_SUFFIX: function() {
557
- return f;
557
+ return _;
558
558
  },
559
559
  NEXT_CACHE_IMPLICIT_TAG_ID: function() {
560
560
  return m;
@@ -572,7 +572,7 @@ function or() {
572
572
  return h;
573
573
  },
574
574
  NEXT_CACHE_TAGS_HEADER: function() {
575
- return g;
575
+ return p;
576
576
  },
577
577
  NEXT_CACHE_TAG_MAX_ITEMS: function() {
578
578
  return l;
@@ -581,13 +581,13 @@ function or() {
581
581
  return b;
582
582
  },
583
583
  NEXT_DATA_SUFFIX: function() {
584
- return _;
584
+ return g;
585
585
  },
586
586
  NEXT_INTERCEPTION_MARKER_PREFIX: function() {
587
587
  return o;
588
588
  },
589
589
  NEXT_META_SUFFIX: function() {
590
- return c;
590
+ return u;
591
591
  },
592
592
  NEXT_QUERY_PARAM_PREFIX: function() {
593
593
  return t;
@@ -626,7 +626,7 @@ function or() {
626
626
  return D;
627
627
  },
628
628
  RSC_PREFETCH_SUFFIX: function() {
629
- return u;
629
+ return c;
630
630
  },
631
631
  RSC_SUFFIX: function() {
632
632
  return r;
@@ -662,7 +662,7 @@ function or() {
662
662
  return me;
663
663
  }
664
664
  });
665
- const t = "nxtP", o = "nxtI", n = "x-prerender-revalidate", a = "x-prerender-revalidate-if-generated", u = ".prefetch.rsc", r = ".rsc", d = ".action", _ = ".json", c = ".meta", f = ".body", g = "x-next-cache-tags", R = "x-next-cache-soft-tags", S = "x-next-revalidated-tags", x = "x-next-revalidate-tag-token", l = 128, b = 256, h = 1024, m = "_N_T_", E = 31536e3, s = "middleware", v = `(?:src/)?${s}`, p = "instrumentation", w = "private-next-pages", P = "private-dot-next", N = "private-next-root-dir", M = "private-next-app-dir", D = "private-next-rsc-mod-ref-proxy", H = "private-next-rsc-action-validate", j = "private-next-rsc-server-reference", J = "private-next-rsc-action-encryption", Q = "private-next-rsc-action-client-wrapper", F = "You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict", W = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", ie = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", z = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", Z = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", de = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", oe = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", se = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", he = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", ee = "can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member", ae = 'You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env', fe = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", te = [
665
+ const t = "nxtP", o = "nxtI", n = "x-prerender-revalidate", a = "x-prerender-revalidate-if-generated", c = ".prefetch.rsc", r = ".rsc", d = ".action", g = ".json", u = ".meta", _ = ".body", p = "x-next-cache-tags", R = "x-next-cache-soft-tags", S = "x-next-revalidated-tags", x = "x-next-revalidate-tag-token", l = 128, b = 256, h = 1024, m = "_N_T_", E = 31536e3, s = "middleware", v = `(?:src/)?${s}`, f = "instrumentation", w = "private-next-pages", P = "private-dot-next", N = "private-next-root-dir", M = "private-next-app-dir", D = "private-next-rsc-mod-ref-proxy", H = "private-next-rsc-action-validate", j = "private-next-rsc-server-reference", J = "private-next-rsc-action-encryption", Q = "private-next-rsc-action-client-wrapper", F = "You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict", W = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", ie = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", z = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", Z = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", de = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", oe = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", se = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", he = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", ee = "can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member", ae = 'You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env', fe = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", te = [
666
666
  "app",
667
667
  "pages",
668
668
  "components",
@@ -761,10 +761,10 @@ function qt() {
761
761
  Object.defineProperty(i, "__esModule", {
762
762
  value: !0
763
763
  });
764
- function e(d, _) {
765
- for (var c in _) Object.defineProperty(d, c, {
764
+ function e(d, g) {
765
+ for (var u in g) Object.defineProperty(d, u, {
766
766
  enumerable: !0,
767
- get: _[c]
767
+ get: g[u]
768
768
  });
769
769
  }
770
770
  e(i, {
@@ -781,68 +781,68 @@ function qt() {
781
781
  return a;
782
782
  },
783
783
  validateURL: function() {
784
- return u;
784
+ return c;
785
785
  }
786
786
  });
787
787
  const t = or();
788
788
  function o(d) {
789
- const _ = new Headers();
790
- for (let [c, f] of Object.entries(d)) {
791
- const g = Array.isArray(f) ? f : [
792
- f
789
+ const g = new Headers();
790
+ for (let [u, _] of Object.entries(d)) {
791
+ const p = Array.isArray(_) ? _ : [
792
+ _
793
793
  ];
794
- for (let R of g)
795
- typeof R > "u" || (typeof R == "number" && (R = R.toString()), _.append(c, R));
794
+ for (let R of p)
795
+ typeof R > "u" || (typeof R == "number" && (R = R.toString()), g.append(u, R));
796
796
  }
797
- return _;
797
+ return g;
798
798
  }
799
799
  function n(d) {
800
- var _ = [], c = 0, f, g, R, S, x;
800
+ var g = [], u = 0, _, p, R, S, x;
801
801
  function l() {
802
- for (; c < d.length && /\s/.test(d.charAt(c)); )
803
- c += 1;
804
- return c < d.length;
802
+ for (; u < d.length && /\s/.test(d.charAt(u)); )
803
+ u += 1;
804
+ return u < d.length;
805
805
  }
806
806
  function b() {
807
- return g = d.charAt(c), g !== "=" && g !== ";" && g !== ",";
808
- }
809
- for (; c < d.length; ) {
810
- for (f = c, x = !1; l(); )
811
- if (g = d.charAt(c), g === ",") {
812
- for (R = c, c += 1, l(), S = c; c < d.length && b(); )
813
- c += 1;
814
- c < d.length && d.charAt(c) === "=" ? (x = !0, c = S, _.push(d.substring(f, R)), f = c) : c = R + 1;
807
+ return p = d.charAt(u), p !== "=" && p !== ";" && p !== ",";
808
+ }
809
+ for (; u < d.length; ) {
810
+ for (_ = u, x = !1; l(); )
811
+ if (p = d.charAt(u), p === ",") {
812
+ for (R = u, u += 1, l(), S = u; u < d.length && b(); )
813
+ u += 1;
814
+ u < d.length && d.charAt(u) === "=" ? (x = !0, u = S, g.push(d.substring(_, R)), _ = u) : u = R + 1;
815
815
  } else
816
- c += 1;
817
- (!x || c >= d.length) && _.push(d.substring(f, d.length));
816
+ u += 1;
817
+ (!x || u >= d.length) && g.push(d.substring(_, d.length));
818
818
  }
819
- return _;
819
+ return g;
820
820
  }
821
821
  function a(d) {
822
- const _ = {}, c = [];
822
+ const g = {}, u = [];
823
823
  if (d)
824
- for (const [f, g] of d.entries())
825
- f.toLowerCase() === "set-cookie" ? (c.push(...n(g)), _[f] = c.length === 1 ? c[0] : c) : _[f] = g;
826
- return _;
824
+ for (const [_, p] of d.entries())
825
+ _.toLowerCase() === "set-cookie" ? (u.push(...n(p)), g[_] = u.length === 1 ? u[0] : u) : g[_] = p;
826
+ return g;
827
827
  }
828
- function u(d) {
828
+ function c(d) {
829
829
  try {
830
830
  return String(new URL(String(d)));
831
- } catch (_) {
831
+ } catch (g) {
832
832
  throw new Error(`URL is malformed "${String(d)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`, {
833
- cause: _
833
+ cause: g
834
834
  });
835
835
  }
836
836
  }
837
- function r(d, _) {
838
- const c = [
837
+ function r(d, g) {
838
+ const u = [
839
839
  t.NEXT_QUERY_PARAM_PREFIX,
840
840
  t.NEXT_INTERCEPTION_MARKER_PREFIX
841
841
  ];
842
- for (const f of c)
843
- if (d !== f && d.startsWith(f)) {
844
- const g = d.substring(f.length);
845
- _(g);
842
+ for (const _ of u)
843
+ if (d !== _ && d.startsWith(_)) {
844
+ const p = d.substring(_.length);
845
+ g(p);
846
846
  }
847
847
  }
848
848
  })(je)), je;
@@ -853,10 +853,10 @@ function sr() {
853
853
  Object.defineProperty(i, "__esModule", {
854
854
  value: !0
855
855
  });
856
- function e(a, u) {
857
- for (var r in u) Object.defineProperty(a, r, {
856
+ function e(a, c) {
857
+ for (var r in c) Object.defineProperty(a, r, {
858
858
  enumerable: !0,
859
- get: u[r]
859
+ get: c[r]
860
860
  });
861
861
  }
862
862
  e(i, {
@@ -871,8 +871,8 @@ function sr() {
871
871
  }
872
872
  });
873
873
  class t extends Error {
874
- constructor({ page: u }) {
875
- super(`The middleware "${u}" accepts an async API directly with the form:
874
+ constructor({ page: c }) {
875
+ super(`The middleware "${c}" accepts an async API directly with the form:
876
876
 
877
877
  export function middleware(request, event) {
878
878
  return NextResponse.redirect('/new-location')
@@ -894,29 +894,29 @@ function sr() {
894
894
  }
895
895
  })(He)), He;
896
896
  }
897
- var Fe = {}, Be, yt;
897
+ var Fe = {}, Ge, yt;
898
898
  function ar() {
899
- if (yt) return Be;
899
+ if (yt) return Ge;
900
900
  yt = 1;
901
901
  var i = Object.defineProperty, e = Object.getOwnPropertyDescriptor, t = Object.getOwnPropertyNames, o = Object.prototype.hasOwnProperty, n = (s, v) => {
902
- for (var p in v)
903
- i(s, p, { get: v[p], enumerable: !0 });
904
- }, a = (s, v, p, w) => {
902
+ for (var f in v)
903
+ i(s, f, { get: v[f], enumerable: !0 });
904
+ }, a = (s, v, f, w) => {
905
905
  if (v && typeof v == "object" || typeof v == "function")
906
906
  for (let P of t(v))
907
- !o.call(s, P) && P !== p && i(s, P, { get: () => v[P], enumerable: !(w = e(v, P)) || w.enumerable });
907
+ !o.call(s, P) && P !== f && i(s, P, { get: () => v[P], enumerable: !(w = e(v, P)) || w.enumerable });
908
908
  return s;
909
- }, u = (s) => a(i({}, "__esModule", { value: !0 }), s), r = {};
909
+ }, c = (s) => a(i({}, "__esModule", { value: !0 }), s), r = {};
910
910
  n(r, {
911
911
  RequestCookies: () => b,
912
912
  ResponseCookies: () => h,
913
- parseCookie: () => _,
914
- parseSetCookie: () => c,
913
+ parseCookie: () => g,
914
+ parseSetCookie: () => u,
915
915
  stringifyCookie: () => d
916
- }), Be = u(r);
916
+ }), Ge = c(r);
917
917
  function d(s) {
918
918
  var v;
919
- const p = [
919
+ const f = [
920
920
  "path" in s && s.path && `Path=${s.path}`,
921
921
  "expires" in s && (s.expires || s.expires === 0) && `Expires=${(typeof s.expires == "number" ? new Date(s.expires) : s.expires).toUTCString()}`,
922
922
  "maxAge" in s && typeof s.maxAge == "number" && `Max-Age=${s.maxAge}`,
@@ -927,19 +927,19 @@ function ar() {
927
927
  "partitioned" in s && s.partitioned && "Partitioned",
928
928
  "priority" in s && s.priority && `Priority=${s.priority}`
929
929
  ].filter(Boolean), w = `${s.name}=${encodeURIComponent((v = s.value) != null ? v : "")}`;
930
- return p.length === 0 ? w : `${w}; ${p.join("; ")}`;
930
+ return f.length === 0 ? w : `${w}; ${f.join("; ")}`;
931
931
  }
932
- function _(s) {
932
+ function g(s) {
933
933
  const v = /* @__PURE__ */ new Map();
934
- for (const p of s.split(/; */)) {
935
- if (!p)
934
+ for (const f of s.split(/; */)) {
935
+ if (!f)
936
936
  continue;
937
- const w = p.indexOf("=");
937
+ const w = f.indexOf("=");
938
938
  if (w === -1) {
939
- v.set(p, "true");
939
+ v.set(f, "true");
940
940
  continue;
941
941
  }
942
- const [P, N] = [p.slice(0, w), p.slice(w + 1)];
942
+ const [P, N] = [f.slice(0, w), f.slice(w + 1)];
943
943
  try {
944
944
  v.set(P, decodeURIComponent(N ?? "true"));
945
945
  } catch {
@@ -947,10 +947,10 @@ function ar() {
947
947
  }
948
948
  return v;
949
949
  }
950
- function c(s) {
950
+ function u(s) {
951
951
  if (!s)
952
952
  return;
953
- const [[v, p], ...w] = _(s), {
953
+ const [[v, f], ...w] = g(s), {
954
954
  domain: P,
955
955
  expires: N,
956
956
  httponly: M,
@@ -964,7 +964,7 @@ function ar() {
964
964
  w.map(([ie, z]) => [ie.toLowerCase(), z])
965
965
  ), W = {
966
966
  name: v,
967
- value: decodeURIComponent(p),
967
+ value: decodeURIComponent(f),
968
968
  domain: P,
969
969
  ...N && { expires: new Date(N) },
970
970
  ...M && { httpOnly: !0 },
@@ -975,17 +975,17 @@ function ar() {
975
975
  ...F && { priority: x(F) },
976
976
  ...Q && { partitioned: !0 }
977
977
  };
978
- return f(W);
978
+ return _(W);
979
979
  }
980
- function f(s) {
980
+ function _(s) {
981
981
  const v = {};
982
- for (const p in s)
983
- s[p] && (v[p] = s[p]);
982
+ for (const f in s)
983
+ s[f] && (v[f] = s[f]);
984
984
  return v;
985
985
  }
986
- var g = ["strict", "lax", "none"];
986
+ var p = ["strict", "lax", "none"];
987
987
  function R(s) {
988
- return s = s.toLowerCase(), g.includes(s) ? s : void 0;
988
+ return s = s.toLowerCase(), p.includes(s) ? s : void 0;
989
989
  }
990
990
  var S = ["low", "medium", "high"];
991
991
  function x(s) {
@@ -994,24 +994,24 @@ function ar() {
994
994
  function l(s) {
995
995
  if (!s)
996
996
  return [];
997
- var v = [], p = 0, w, P, N, M, D;
997
+ var v = [], f = 0, w, P, N, M, D;
998
998
  function H() {
999
- for (; p < s.length && /\s/.test(s.charAt(p)); )
1000
- p += 1;
1001
- return p < s.length;
999
+ for (; f < s.length && /\s/.test(s.charAt(f)); )
1000
+ f += 1;
1001
+ return f < s.length;
1002
1002
  }
1003
1003
  function j() {
1004
- return P = s.charAt(p), P !== "=" && P !== ";" && P !== ",";
1005
- }
1006
- for (; p < s.length; ) {
1007
- for (w = p, D = !1; H(); )
1008
- if (P = s.charAt(p), P === ",") {
1009
- for (N = p, p += 1, H(), M = p; p < s.length && j(); )
1010
- p += 1;
1011
- p < s.length && s.charAt(p) === "=" ? (D = !0, p = M, v.push(s.substring(w, N)), w = p) : p = N + 1;
1004
+ return P = s.charAt(f), P !== "=" && P !== ";" && P !== ",";
1005
+ }
1006
+ for (; f < s.length; ) {
1007
+ for (w = f, D = !1; H(); )
1008
+ if (P = s.charAt(f), P === ",") {
1009
+ for (N = f, f += 1, H(), M = f; f < s.length && j(); )
1010
+ f += 1;
1011
+ f < s.length && s.charAt(f) === "=" ? (D = !0, f = M, v.push(s.substring(w, N)), w = f) : f = N + 1;
1012
1012
  } else
1013
- p += 1;
1014
- (!D || p >= s.length) && v.push(s.substring(w, s.length));
1013
+ f += 1;
1014
+ (!D || f >= s.length) && v.push(s.substring(w, s.length));
1015
1015
  }
1016
1016
  return v;
1017
1017
  }
@@ -1020,8 +1020,8 @@ function ar() {
1020
1020
  this._parsed = /* @__PURE__ */ new Map(), this._headers = s;
1021
1021
  const v = s.get("cookie");
1022
1022
  if (v) {
1023
- const p = _(v);
1024
- for (const [w, P] of p)
1023
+ const f = g(v);
1024
+ for (const [w, P] of f)
1025
1025
  this._parsed.set(w, { name: w, value: P });
1026
1026
  }
1027
1027
  }
@@ -1040,18 +1040,18 @@ function ar() {
1040
1040
  }
1041
1041
  getAll(...s) {
1042
1042
  var v;
1043
- const p = Array.from(this._parsed);
1043
+ const f = Array.from(this._parsed);
1044
1044
  if (!s.length)
1045
- return p.map(([P, N]) => N);
1045
+ return f.map(([P, N]) => N);
1046
1046
  const w = typeof s[0] == "string" ? s[0] : (v = s[0]) == null ? void 0 : v.name;
1047
- return p.filter(([P]) => P === w).map(([P, N]) => N);
1047
+ return f.filter(([P]) => P === w).map(([P, N]) => N);
1048
1048
  }
1049
1049
  has(s) {
1050
1050
  return this._parsed.has(s);
1051
1051
  }
1052
1052
  set(...s) {
1053
- const [v, p] = s.length === 1 ? [s[0].name, s[0].value] : s, w = this._parsed;
1054
- return w.set(v, { name: v, value: p }), this._headers.set(
1053
+ const [v, f] = s.length === 1 ? [s[0].name, s[0].value] : s, w = this._parsed;
1054
+ return w.set(v, { name: v, value: f }), this._headers.set(
1055
1055
  "cookie",
1056
1056
  Array.from(w).map(([P, N]) => d(N)).join("; ")
1057
1057
  ), this;
@@ -1060,11 +1060,11 @@ function ar() {
1060
1060
  * Delete the cookies matching the passed name or names in the request.
1061
1061
  */
1062
1062
  delete(s) {
1063
- const v = this._parsed, p = Array.isArray(s) ? s.map((w) => v.delete(w)) : v.delete(s);
1063
+ const v = this._parsed, f = Array.isArray(s) ? s.map((w) => v.delete(w)) : v.delete(s);
1064
1064
  return this._headers.set(
1065
1065
  "cookie",
1066
1066
  Array.from(v).map(([w, P]) => d(P)).join("; ")
1067
- ), p;
1067
+ ), f;
1068
1068
  }
1069
1069
  /**
1070
1070
  * Delete all the cookies in the cookies in the request.
@@ -1084,11 +1084,11 @@ function ar() {
1084
1084
  }, h = class {
1085
1085
  constructor(s) {
1086
1086
  this._parsed = /* @__PURE__ */ new Map();
1087
- var v, p, w;
1087
+ var v, f, w;
1088
1088
  this._headers = s;
1089
- const P = (w = (p = (v = s.getSetCookie) == null ? void 0 : v.call(s)) != null ? p : s.get("set-cookie")) != null ? w : [], N = Array.isArray(P) ? P : l(P);
1089
+ const P = (w = (f = (v = s.getSetCookie) == null ? void 0 : v.call(s)) != null ? f : s.get("set-cookie")) != null ? w : [], N = Array.isArray(P) ? P : l(P);
1090
1090
  for (const M of N) {
1091
- const D = c(M);
1091
+ const D = u(M);
1092
1092
  D && this._parsed.set(D.name, D);
1093
1093
  }
1094
1094
  }
@@ -1104,11 +1104,11 @@ function ar() {
1104
1104
  */
1105
1105
  getAll(...s) {
1106
1106
  var v;
1107
- const p = Array.from(this._parsed.values());
1107
+ const f = Array.from(this._parsed.values());
1108
1108
  if (!s.length)
1109
- return p;
1109
+ return f;
1110
1110
  const w = typeof s[0] == "string" ? s[0] : (v = s[0]) == null ? void 0 : v.name;
1111
- return p.filter((P) => P.name === w);
1111
+ return f.filter((P) => P.name === w);
1112
1112
  }
1113
1113
  has(s) {
1114
1114
  return this._parsed.has(s);
@@ -1117,15 +1117,15 @@ function ar() {
1117
1117
  * {@link https://wicg.github.io/cookie-store/#CookieStore-set CookieStore#set} without the Promise.
1118
1118
  */
1119
1119
  set(...s) {
1120
- const [v, p, w] = s.length === 1 ? [s[0].name, s[0].value, s[0]] : s, P = this._parsed;
1121
- return P.set(v, E({ name: v, value: p, ...w })), m(P, this._headers), this;
1120
+ const [v, f, w] = s.length === 1 ? [s[0].name, s[0].value, s[0]] : s, P = this._parsed;
1121
+ return P.set(v, E({ name: v, value: f, ...w })), m(P, this._headers), this;
1122
1122
  }
1123
1123
  /**
1124
1124
  * {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
1125
1125
  */
1126
1126
  delete(...s) {
1127
- const [v, p, w] = typeof s[0] == "string" ? [s[0]] : [s[0].name, s[0].path, s[0].domain];
1128
- return this.set({ name: v, path: p, domain: w, value: "", expires: /* @__PURE__ */ new Date(0) });
1127
+ const [v, f, w] = typeof s[0] == "string" ? [s[0]] : [s[0].name, s[0].path, s[0].domain];
1128
+ return this.set({ name: v, path: f, domain: w, value: "", expires: /* @__PURE__ */ new Date(0) });
1129
1129
  }
1130
1130
  [/* @__PURE__ */ Symbol.for("edge-runtime.inspect.custom")]() {
1131
1131
  return `ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
@@ -1136,15 +1136,15 @@ function ar() {
1136
1136
  };
1137
1137
  function m(s, v) {
1138
1138
  v.delete("set-cookie");
1139
- for (const [, p] of s) {
1140
- const w = d(p);
1139
+ for (const [, f] of s) {
1140
+ const w = d(f);
1141
1141
  v.append("set-cookie", w);
1142
1142
  }
1143
1143
  }
1144
1144
  function E(s = { name: "", value: "" }) {
1145
1145
  return typeof s.expires == "number" && (s.expires = new Date(s.expires)), s.maxAge && (s.expires = new Date(Date.now() + s.maxAge * 1e3)), (s.path === null || s.path === void 0) && (s.path = "/"), s;
1146
1146
  }
1147
- return Be;
1147
+ return Ge;
1148
1148
  }
1149
1149
  var St;
1150
1150
  function $e() {
@@ -1178,35 +1178,35 @@ function ur() {
1178
1178
  Object.defineProperty(i, "__esModule", {
1179
1179
  value: !0
1180
1180
  });
1181
- function e(d, _) {
1182
- for (var c in _) Object.defineProperty(d, c, {
1181
+ function e(d, g) {
1182
+ for (var u in g) Object.defineProperty(d, u, {
1183
1183
  enumerable: !0,
1184
- get: _[c]
1184
+ get: g[u]
1185
1185
  });
1186
1186
  }
1187
1187
  e(i, {
1188
1188
  INTERNALS: function() {
1189
- return u;
1189
+ return c;
1190
1190
  },
1191
1191
  NextRequest: function() {
1192
1192
  return r;
1193
1193
  }
1194
1194
  });
1195
- const t = jt(), o = qt(), n = sr(), a = $e(), u = /* @__PURE__ */ Symbol("internal request");
1195
+ const t = jt(), o = qt(), n = sr(), a = $e(), c = /* @__PURE__ */ Symbol("internal request");
1196
1196
  class r extends Request {
1197
- constructor(_, c = {}) {
1198
- const f = typeof _ != "string" && "url" in _ ? _.url : String(_);
1199
- (0, o.validateURL)(f), _ instanceof Request ? super(_, c) : super(f, c);
1200
- const g = new t.NextURL(f, {
1197
+ constructor(g, u = {}) {
1198
+ const _ = typeof g != "string" && "url" in g ? g.url : String(g);
1199
+ (0, o.validateURL)(_), g instanceof Request ? super(g, u) : super(_, u);
1200
+ const p = new t.NextURL(_, {
1201
1201
  headers: (0, o.toNodeOutgoingHttpHeaders)(this.headers),
1202
- nextConfig: c.nextConfig
1202
+ nextConfig: u.nextConfig
1203
1203
  });
1204
- this[u] = {
1204
+ this[c] = {
1205
1205
  cookies: new a.RequestCookies(this.headers),
1206
- geo: c.geo || {},
1207
- ip: c.ip,
1208
- nextUrl: g,
1209
- url: process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE ? f : g.toString()
1206
+ geo: u.geo || {},
1207
+ ip: u.ip,
1208
+ nextUrl: p,
1209
+ url: process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE ? _ : p.toString()
1210
1210
  };
1211
1211
  }
1212
1212
  [/* @__PURE__ */ Symbol.for("edge-runtime.inspect.custom")]() {
@@ -1233,16 +1233,16 @@ function ur() {
1233
1233
  };
1234
1234
  }
1235
1235
  get cookies() {
1236
- return this[u].cookies;
1236
+ return this[c].cookies;
1237
1237
  }
1238
1238
  get geo() {
1239
- return this[u].geo;
1239
+ return this[c].geo;
1240
1240
  }
1241
1241
  get ip() {
1242
- return this[u].ip;
1242
+ return this[c].ip;
1243
1243
  }
1244
1244
  get nextUrl() {
1245
- return this[u].nextUrl;
1245
+ return this[c].nextUrl;
1246
1246
  }
1247
1247
  /**
1248
1248
  * @deprecated
@@ -1261,12 +1261,12 @@ function ur() {
1261
1261
  throw new n.RemovedUAError();
1262
1262
  }
1263
1263
  get url() {
1264
- return this[u].url;
1264
+ return this[c].url;
1265
1265
  }
1266
1266
  }
1267
1267
  })(ye)), ye;
1268
1268
  }
1269
- var Ge = {}, Xe = {}, Tt;
1269
+ var Be = {}, Xe = {}, Tt;
1270
1270
  function cr() {
1271
1271
  return Tt || (Tt = 1, (function(i) {
1272
1272
  Object.defineProperty(i, "__esModule", {
@@ -1279,11 +1279,11 @@ function cr() {
1279
1279
  });
1280
1280
  class e {
1281
1281
  static get(o, n, a) {
1282
- const u = Reflect.get(o, n, a);
1283
- return typeof u == "function" ? u.bind(o) : u;
1282
+ const c = Reflect.get(o, n, a);
1283
+ return typeof c == "function" ? c.bind(o) : c;
1284
1284
  }
1285
- static set(o, n, a, u) {
1286
- return Reflect.set(o, n, a, u);
1285
+ static set(o, n, a, c) {
1286
+ return Reflect.set(o, n, a, c);
1287
1287
  }
1288
1288
  static has(o, n) {
1289
1289
  return Reflect.has(o, n);
@@ -1302,30 +1302,30 @@ function lr() {
1302
1302
  }), Object.defineProperty(i, "NextResponse", {
1303
1303
  enumerable: !0,
1304
1304
  get: function() {
1305
- return _;
1305
+ return g;
1306
1306
  }
1307
1307
  });
1308
- const e = $e(), t = jt(), o = qt(), n = cr(), a = $e(), u = /* @__PURE__ */ Symbol("internal response"), r = /* @__PURE__ */ new Set([
1308
+ const e = $e(), t = jt(), o = qt(), n = cr(), a = $e(), c = /* @__PURE__ */ Symbol("internal response"), r = /* @__PURE__ */ new Set([
1309
1309
  301,
1310
1310
  302,
1311
1311
  303,
1312
1312
  307,
1313
1313
  308
1314
1314
  ]);
1315
- function d(c, f) {
1316
- var g;
1317
- if (!(c == null || (g = c.request) == null) && g.headers) {
1318
- if (!(c.request.headers instanceof Headers))
1315
+ function d(u, _) {
1316
+ var p;
1317
+ if (!(u == null || (p = u.request) == null) && p.headers) {
1318
+ if (!(u.request.headers instanceof Headers))
1319
1319
  throw new Error("request.headers must be an instance of Headers");
1320
1320
  const R = [];
1321
- for (const [S, x] of c.request.headers)
1322
- f.set("x-middleware-request-" + S, x), R.push(S);
1323
- f.set("x-middleware-override-headers", R.join(","));
1321
+ for (const [S, x] of u.request.headers)
1322
+ _.set("x-middleware-request-" + S, x), R.push(S);
1323
+ _.set("x-middleware-override-headers", R.join(","));
1324
1324
  }
1325
1325
  }
1326
- class _ extends Response {
1327
- constructor(f, g = {}) {
1328
- super(f, g);
1326
+ class g extends Response {
1327
+ constructor(_, p = {}) {
1328
+ super(_, p);
1329
1329
  const R = this.headers, S = new a.ResponseCookies(R), x = new Proxy(S, {
1330
1330
  get(l, b, h) {
1331
1331
  switch (b) {
@@ -1333,18 +1333,18 @@ function lr() {
1333
1333
  case "set":
1334
1334
  return (...m) => {
1335
1335
  const E = Reflect.apply(l[b], l, m), s = new Headers(R);
1336
- return E instanceof a.ResponseCookies && R.set("x-middleware-set-cookie", E.getAll().map((v) => (0, e.stringifyCookie)(v)).join(",")), d(g, s), E;
1336
+ return E instanceof a.ResponseCookies && R.set("x-middleware-set-cookie", E.getAll().map((v) => (0, e.stringifyCookie)(v)).join(",")), d(p, s), E;
1337
1337
  };
1338
1338
  default:
1339
1339
  return n.ReflectAdapter.get(l, b, h);
1340
1340
  }
1341
1341
  }
1342
1342
  });
1343
- this[u] = {
1343
+ this[c] = {
1344
1344
  cookies: x,
1345
- url: g.url ? new t.NextURL(g.url, {
1345
+ url: p.url ? new t.NextURL(p.url, {
1346
1346
  headers: (0, o.toNodeOutgoingHttpHeaders)(R),
1347
- nextConfig: g.nextConfig
1347
+ nextConfig: p.nextConfig
1348
1348
  }) : void 0
1349
1349
  };
1350
1350
  }
@@ -1364,39 +1364,39 @@ function lr() {
1364
1364
  };
1365
1365
  }
1366
1366
  get cookies() {
1367
- return this[u].cookies;
1367
+ return this[c].cookies;
1368
1368
  }
1369
- static json(f, g) {
1370
- const R = Response.json(f, g);
1371
- return new _(R.body, R);
1369
+ static json(_, p) {
1370
+ const R = Response.json(_, p);
1371
+ return new g(R.body, R);
1372
1372
  }
1373
- static redirect(f, g) {
1374
- const R = typeof g == "number" ? g : g?.status ?? 307;
1373
+ static redirect(_, p) {
1374
+ const R = typeof p == "number" ? p : p?.status ?? 307;
1375
1375
  if (!r.has(R))
1376
1376
  throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');
1377
- const S = typeof g == "object" ? g : {}, x = new Headers(S?.headers);
1378
- return x.set("Location", (0, o.validateURL)(f)), new _(null, {
1377
+ const S = typeof p == "object" ? p : {}, x = new Headers(S?.headers);
1378
+ return x.set("Location", (0, o.validateURL)(_)), new g(null, {
1379
1379
  ...S,
1380
1380
  headers: x,
1381
1381
  status: R
1382
1382
  });
1383
1383
  }
1384
- static rewrite(f, g) {
1385
- const R = new Headers(g?.headers);
1386
- return R.set("x-middleware-rewrite", (0, o.validateURL)(f)), d(g, R), new _(null, {
1387
- ...g,
1384
+ static rewrite(_, p) {
1385
+ const R = new Headers(p?.headers);
1386
+ return R.set("x-middleware-rewrite", (0, o.validateURL)(_)), d(p, R), new g(null, {
1387
+ ...p,
1388
1388
  headers: R
1389
1389
  });
1390
1390
  }
1391
- static next(f) {
1392
- const g = new Headers(f?.headers);
1393
- return g.set("x-middleware-next", "1"), d(f, g), new _(null, {
1394
- ...f,
1395
- headers: g
1391
+ static next(_) {
1392
+ const p = new Headers(_?.headers);
1393
+ return p.set("x-middleware-next", "1"), d(_, p), new g(null, {
1394
+ ..._,
1395
+ headers: p
1396
1396
  });
1397
1397
  }
1398
1398
  }
1399
- })(Ge)), Ge;
1399
+ })(Be)), Be;
1400
1400
  }
1401
1401
  var We = {}, Ot;
1402
1402
  function dr() {
@@ -1418,8 +1418,8 @@ var ze = {}, Ve = { exports: {} }, xt;
1418
1418
  function hr() {
1419
1419
  return xt || (xt = 1, (() => {
1420
1420
  var i = { 226: function(n, a) {
1421
- (function(u, r) {
1422
- var d = "1.0.35", _ = "", c = "?", f = "function", g = "undefined", R = "object", S = "string", x = "major", l = "model", b = "name", h = "type", m = "vendor", E = "version", s = "architecture", v = "console", p = "mobile", w = "tablet", P = "smarttv", N = "wearable", M = "embedded", D = 350, H = "Amazon", j = "Apple", J = "ASUS", Q = "BlackBerry", F = "Browser", W = "Chrome", ie = "Edge", z = "Firefox", Z = "Google", de = "Huawei", oe = "LG", se = "Microsoft", he = "Motorola", ee = "Opera", ae = "Samsung", fe = "Sharp", te = "Sony", ue = "Xiaomi", L = "Zebra", pe = "Facebook", me = "Chromium OS", _e = "Mac OS", ge = function(T, O) {
1421
+ (function(c, r) {
1422
+ var d = "1.0.35", g = "", u = "?", _ = "function", p = "undefined", R = "object", S = "string", x = "major", l = "model", b = "name", h = "type", m = "vendor", E = "version", s = "architecture", v = "console", f = "mobile", w = "tablet", P = "smarttv", N = "wearable", M = "embedded", D = 350, H = "Amazon", j = "Apple", J = "ASUS", Q = "BlackBerry", F = "Browser", W = "Chrome", ie = "Edge", z = "Firefox", Z = "Google", de = "Huawei", oe = "LG", se = "Microsoft", he = "Motorola", ee = "Opera", ae = "Samsung", fe = "Sharp", te = "Sony", ue = "Xiaomi", L = "Zebra", pe = "Facebook", me = "Chromium OS", _e = "Mac OS", ge = function(T, O) {
1423
1423
  var A = {};
1424
1424
  for (var C in T)
1425
1425
  O[C] && O[C].length % 2 === 0 ? A[C] = O[C].concat(T[C]) : A[C] = T[C];
@@ -1433,17 +1433,17 @@ function hr() {
1433
1433
  }, ce = function(T) {
1434
1434
  return T.toLowerCase();
1435
1435
  }, Xt = function(T) {
1436
- return typeof T === S ? T.replace(/[^\d\.]/g, _).split(".")[0] : r;
1436
+ return typeof T === S ? T.replace(/[^\d\.]/g, g).split(".")[0] : r;
1437
1437
  }, ve = function(T, O) {
1438
1438
  if (typeof T === S)
1439
- return T = T.replace(/^\s\s*/, _), typeof O === g ? T : T.substring(0, D);
1439
+ return T = T.replace(/^\s\s*/, g), typeof O === p ? T : T.substring(0, D);
1440
1440
  }, le = function(T, O) {
1441
- for (var A = 0, C, V, B, I, y, G; A < O.length && !y; ) {
1441
+ for (var A = 0, C, V, G, I, y, B; A < O.length && !y; ) {
1442
1442
  var Pe = O[A], ot = O[A + 1];
1443
1443
  for (C = V = 0; C < Pe.length && !y && Pe[C]; )
1444
1444
  if (y = Pe[C++].exec(T), y)
1445
- for (B = 0; B < ot.length; B++)
1446
- G = y[++V], I = ot[B], typeof I === R && I.length > 0 ? I.length === 2 ? typeof I[1] == f ? this[I[0]] = I[1].call(this, G) : this[I[0]] = I[1] : I.length === 3 ? typeof I[1] === f && !(I[1].exec && I[1].test) ? this[I[0]] = G ? I[1].call(this, G, I[2]) : r : this[I[0]] = G ? G.replace(I[1], I[2]) : r : I.length === 4 && (this[I[0]] = G ? I[3].call(this, G.replace(I[1], I[2])) : r) : this[I] = G || r;
1445
+ for (G = 0; G < ot.length; G++)
1446
+ B = y[++V], I = ot[G], typeof I === R && I.length > 0 ? I.length === 2 ? typeof I[1] == _ ? this[I[0]] = I[1].call(this, B) : this[I[0]] = I[1] : I.length === 3 ? typeof I[1] === _ && !(I[1].exec && I[1].test) ? this[I[0]] = B ? I[1].call(this, B, I[2]) : r : this[I[0]] = B ? B.replace(I[1], I[2]) : r : I.length === 4 && (this[I[0]] = B ? I[3].call(this, B.replace(I[1], I[2])) : r) : this[I] = B || r;
1447
1447
  A += 2;
1448
1448
  }
1449
1449
  }, Re = function(T, O) {
@@ -1451,29 +1451,29 @@ function hr() {
1451
1451
  if (typeof O[A] === R && O[A].length > 0) {
1452
1452
  for (var C = 0; C < O[A].length; C++)
1453
1453
  if (rt(O[A][C], T))
1454
- return A === c ? r : A;
1454
+ return A === u ? r : A;
1455
1455
  } else if (rt(O[A], T))
1456
- return A === c ? r : A;
1456
+ return A === u ? r : A;
1457
1457
  return T;
1458
- }, Wt = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, nt = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, it = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [E, [b, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [E, [b, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [b, E], [/opios[\/ ]+([\w\.]+)/i], [E, [b, ee + " Mini"]], [/\bopr\/([\w\.]+)/i], [E, [b, ee]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [b, E], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [E, [b, "UC" + F]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [E, [b, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [E, [b, "WeChat"]], [/konqueror\/([\w\.]+)/i], [E, [b, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [E, [b, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [E, [b, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[b, /(.+)/, "$1 Secure " + F], E], [/\bfocus\/([\w\.]+)/i], [E, [b, z + " Focus"]], [/\bopt\/([\w\.]+)/i], [E, [b, ee + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [E, [b, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [E, [b, "Dolphin"]], [/coast\/([\w\.]+)/i], [E, [b, ee + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [E, [b, "MIUI " + F]], [/fxios\/([-\w\.]+)/i], [E, [b, z]], [/\bqihu|(qi?ho?o?|360)browser/i], [[b, "360 " + F]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[b, /(.+)/, "$1 " + F], E], [/(comodo_dragon)\/([\w\.]+)/i], [[b, /_/g, " "], E], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [b, E], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [b], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[b, pe], E], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [b, E], [/\bgsa\/([\w\.]+) .*safari\//i], [E, [b, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [E, [b, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [E, [b, W + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[b, W + " WebView"], E], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [E, [b, "Android " + F]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [b, E], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [E, [b, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [E, b], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [b, [E, Re, Wt]], [/(webkit|khtml)\/([\w\.]+)/i], [b, E], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[b, "Netscape"], E], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [E, [b, z + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [b, E], [/(cobalt)\/([\w\.]+)/i], [b, [E, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[s, "amd64"]], [/(ia32(?=;))/i], [[s, ce]], [/((?:i[346]|x)86)[;\)]/i], [[s, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[s, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[s, "armhf"]], [/windows (ce|mobile); ppc;/i], [[s, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[s, /ower/, _, ce]], [/(sun4\w)[;\)]/i], [[s, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[s, ce]]], device: [[/\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], [l, [m, ae], [h, w]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [l, [m, ae], [h, p]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [l, [m, j], [h, p]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [l, [m, j], [h, w]], [/(macintosh);/i], [l, [m, j]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [l, [m, fe], [h, p]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [l, [m, de], [h, w]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [l, [m, de], [h, p]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[l, /_/g, " "], [m, ue], [h, p]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[l, /_/g, " "], [m, ue], [h, w]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [l, [m, "OPPO"], [h, p]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [l, [m, "Vivo"], [h, p]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [l, [m, "Realme"], [h, p]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [l, [m, he], [h, p]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [l, [m, he], [h, w]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [l, [m, oe], [h, w]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [l, [m, oe], [h, p]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [l, [m, "Lenovo"], [h, w]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[l, /_/g, " "], [m, "Nokia"], [h, p]], [/(pixel c)\b/i], [l, [m, Z], [h, w]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [l, [m, Z], [h, p]], [/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], [l, [m, te], [h, p]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[l, "Xperia Tablet"], [m, te], [h, w]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [l, [m, "OnePlus"], [h, p]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [l, [m, H], [h, w]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[l, /(.+)/g, "Fire Phone $1"], [m, H], [h, p]], [/(playbook);[-\w\),; ]+(rim)/i], [l, m, [h, w]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [l, [m, Q], [h, p]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [l, [m, J], [h, w]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [l, [m, J], [h, p]], [/(nexus 9)/i], [l, [m, "HTC"], [h, w]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [m, [l, /_/g, " "], [h, p]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [l, [m, "Acer"], [h, w]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [l, [m, "Meizu"], [h, p]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [m, l, [h, p]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [m, l, [h, w]], [/(surface duo)/i], [l, [m, se], [h, w]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [l, [m, "Fairphone"], [h, p]], [/(u304aa)/i], [l, [m, "AT&T"], [h, p]], [/\bsie-(\w*)/i], [l, [m, "Siemens"], [h, p]], [/\b(rct\w+) b/i], [l, [m, "RCA"], [h, w]], [/\b(venue[\d ]{2,7}) b/i], [l, [m, "Dell"], [h, w]], [/\b(q(?:mv|ta)\w+) b/i], [l, [m, "Verizon"], [h, w]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [l, [m, "Barnes & Noble"], [h, w]], [/\b(tm\d{3}\w+) b/i], [l, [m, "NuVision"], [h, w]], [/\b(k88) b/i], [l, [m, "ZTE"], [h, w]], [/\b(nx\d{3}j) b/i], [l, [m, "ZTE"], [h, p]], [/\b(gen\d{3}) b.+49h/i], [l, [m, "Swiss"], [h, p]], [/\b(zur\d{3}) b/i], [l, [m, "Swiss"], [h, w]], [/\b((zeki)?tb.*\b) b/i], [l, [m, "Zeki"], [h, w]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[m, "Dragon Touch"], l, [h, w]], [/\b(ns-?\w{0,9}) b/i], [l, [m, "Insignia"], [h, w]], [/\b((nxa|next)-?\w{0,9}) b/i], [l, [m, "NextBook"], [h, w]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[m, "Voice"], l, [h, p]], [/\b(lvtel\-)?(v1[12]) b/i], [[m, "LvTel"], l, [h, p]], [/\b(ph-1) /i], [l, [m, "Essential"], [h, p]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [l, [m, "Envizen"], [h, w]], [/\b(trio[-\w\. ]+) b/i], [l, [m, "MachSpeed"], [h, w]], [/\btu_(1491) b/i], [l, [m, "Rotor"], [h, w]], [/(shield[\w ]+) b/i], [l, [m, "Nvidia"], [h, w]], [/(sprint) (\w+)/i], [m, l, [h, p]], [/(kin\.[onetw]{3})/i], [[l, /\./g, " "], [m, se], [h, p]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [l, [m, L], [h, w]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [l, [m, L], [h, p]], [/smart-tv.+(samsung)/i], [m, [h, P]], [/hbbtv.+maple;(\d+)/i], [[l, /^/, "SmartTV"], [m, ae], [h, P]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[m, oe], [h, P]], [/(apple) ?tv/i], [m, [l, j + " TV"], [h, P]], [/crkey/i], [[l, W + "cast"], [m, Z], [h, P]], [/droid.+aft(\w)( bui|\))/i], [l, [m, H], [h, P]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [l, [m, fe], [h, P]], [/(bravia[\w ]+)( bui|\))/i], [l, [m, te], [h, P]], [/(mitv-\w{5}) bui/i], [l, [m, ue], [h, P]], [/Hbbtv.*(technisat) (.*);/i], [m, l, [h, P]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[m, ve], [l, ve], [h, P]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[h, P]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [m, l, [h, v]], [/droid.+; (shield) bui/i], [l, [m, "Nvidia"], [h, v]], [/(playstation [345portablevi]+)/i], [l, [m, te], [h, v]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [l, [m, se], [h, v]], [/((pebble))app/i], [m, l, [h, N]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [l, [m, j], [h, N]], [/droid.+; (glass) \d/i], [l, [m, Z], [h, N]], [/droid.+; (wt63?0{2,3})\)/i], [l, [m, L], [h, N]], [/(quest( 2| pro)?)/i], [l, [m, pe], [h, N]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [m, [h, M]], [/(aeobc)\b/i], [l, [m, H], [h, M]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [l, [h, p]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [l, [h, w]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[h, w]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[h, p]], [/(android[-\w\. ]{0,9});.+buil/i], [l, [m, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [E, [b, ie + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [E, [b, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [b, E], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [E, b]], os: [[/microsoft (windows) (vista|xp)/i], [b, E], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [b, [E, Re, nt]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[b, "Windows"], [E, Re, nt]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[E, /_/g, "."], [b, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[b, _e], [E, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [E, b], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [b, E], [/\(bb(10);/i], [E, [b, Q]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [E, [b, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [E, [b, z + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [E, [b, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [E, [b, "watchOS"]], [/crkey\/([\d\.]+)/i], [E, [b, W + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[b, me], E], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [b, E], [/(sunos) ?([\w\.\d]*)/i], [[b, "Solaris"], E], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [b, E]] }, q = function(T, O) {
1458
+ }, Wt = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, nt = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, it = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [E, [b, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [E, [b, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [b, E], [/opios[\/ ]+([\w\.]+)/i], [E, [b, ee + " Mini"]], [/\bopr\/([\w\.]+)/i], [E, [b, ee]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [b, E], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [E, [b, "UC" + F]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [E, [b, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [E, [b, "WeChat"]], [/konqueror\/([\w\.]+)/i], [E, [b, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [E, [b, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [E, [b, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[b, /(.+)/, "$1 Secure " + F], E], [/\bfocus\/([\w\.]+)/i], [E, [b, z + " Focus"]], [/\bopt\/([\w\.]+)/i], [E, [b, ee + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [E, [b, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [E, [b, "Dolphin"]], [/coast\/([\w\.]+)/i], [E, [b, ee + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [E, [b, "MIUI " + F]], [/fxios\/([-\w\.]+)/i], [E, [b, z]], [/\bqihu|(qi?ho?o?|360)browser/i], [[b, "360 " + F]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[b, /(.+)/, "$1 " + F], E], [/(comodo_dragon)\/([\w\.]+)/i], [[b, /_/g, " "], E], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [b, E], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [b], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[b, pe], E], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [b, E], [/\bgsa\/([\w\.]+) .*safari\//i], [E, [b, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [E, [b, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [E, [b, W + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[b, W + " WebView"], E], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [E, [b, "Android " + F]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [b, E], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [E, [b, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [E, b], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [b, [E, Re, Wt]], [/(webkit|khtml)\/([\w\.]+)/i], [b, E], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[b, "Netscape"], E], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [E, [b, z + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [b, E], [/(cobalt)\/([\w\.]+)/i], [b, [E, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[s, "amd64"]], [/(ia32(?=;))/i], [[s, ce]], [/((?:i[346]|x)86)[;\)]/i], [[s, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[s, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[s, "armhf"]], [/windows (ce|mobile); ppc;/i], [[s, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[s, /ower/, g, ce]], [/(sun4\w)[;\)]/i], [[s, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[s, ce]]], device: [[/\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], [l, [m, ae], [h, w]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [l, [m, ae], [h, f]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [l, [m, j], [h, f]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [l, [m, j], [h, w]], [/(macintosh);/i], [l, [m, j]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [l, [m, fe], [h, f]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [l, [m, de], [h, w]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [l, [m, de], [h, f]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[l, /_/g, " "], [m, ue], [h, f]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[l, /_/g, " "], [m, ue], [h, w]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [l, [m, "OPPO"], [h, f]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [l, [m, "Vivo"], [h, f]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [l, [m, "Realme"], [h, f]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [l, [m, he], [h, f]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [l, [m, he], [h, w]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [l, [m, oe], [h, w]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [l, [m, oe], [h, f]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [l, [m, "Lenovo"], [h, w]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[l, /_/g, " "], [m, "Nokia"], [h, f]], [/(pixel c)\b/i], [l, [m, Z], [h, w]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [l, [m, Z], [h, f]], [/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], [l, [m, te], [h, f]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[l, "Xperia Tablet"], [m, te], [h, w]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [l, [m, "OnePlus"], [h, f]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [l, [m, H], [h, w]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[l, /(.+)/g, "Fire Phone $1"], [m, H], [h, f]], [/(playbook);[-\w\),; ]+(rim)/i], [l, m, [h, w]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [l, [m, Q], [h, f]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [l, [m, J], [h, w]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [l, [m, J], [h, f]], [/(nexus 9)/i], [l, [m, "HTC"], [h, w]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [m, [l, /_/g, " "], [h, f]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [l, [m, "Acer"], [h, w]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [l, [m, "Meizu"], [h, f]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [m, l, [h, f]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [m, l, [h, w]], [/(surface duo)/i], [l, [m, se], [h, w]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [l, [m, "Fairphone"], [h, f]], [/(u304aa)/i], [l, [m, "AT&T"], [h, f]], [/\bsie-(\w*)/i], [l, [m, "Siemens"], [h, f]], [/\b(rct\w+) b/i], [l, [m, "RCA"], [h, w]], [/\b(venue[\d ]{2,7}) b/i], [l, [m, "Dell"], [h, w]], [/\b(q(?:mv|ta)\w+) b/i], [l, [m, "Verizon"], [h, w]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [l, [m, "Barnes & Noble"], [h, w]], [/\b(tm\d{3}\w+) b/i], [l, [m, "NuVision"], [h, w]], [/\b(k88) b/i], [l, [m, "ZTE"], [h, w]], [/\b(nx\d{3}j) b/i], [l, [m, "ZTE"], [h, f]], [/\b(gen\d{3}) b.+49h/i], [l, [m, "Swiss"], [h, f]], [/\b(zur\d{3}) b/i], [l, [m, "Swiss"], [h, w]], [/\b((zeki)?tb.*\b) b/i], [l, [m, "Zeki"], [h, w]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[m, "Dragon Touch"], l, [h, w]], [/\b(ns-?\w{0,9}) b/i], [l, [m, "Insignia"], [h, w]], [/\b((nxa|next)-?\w{0,9}) b/i], [l, [m, "NextBook"], [h, w]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[m, "Voice"], l, [h, f]], [/\b(lvtel\-)?(v1[12]) b/i], [[m, "LvTel"], l, [h, f]], [/\b(ph-1) /i], [l, [m, "Essential"], [h, f]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [l, [m, "Envizen"], [h, w]], [/\b(trio[-\w\. ]+) b/i], [l, [m, "MachSpeed"], [h, w]], [/\btu_(1491) b/i], [l, [m, "Rotor"], [h, w]], [/(shield[\w ]+) b/i], [l, [m, "Nvidia"], [h, w]], [/(sprint) (\w+)/i], [m, l, [h, f]], [/(kin\.[onetw]{3})/i], [[l, /\./g, " "], [m, se], [h, f]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [l, [m, L], [h, w]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [l, [m, L], [h, f]], [/smart-tv.+(samsung)/i], [m, [h, P]], [/hbbtv.+maple;(\d+)/i], [[l, /^/, "SmartTV"], [m, ae], [h, P]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[m, oe], [h, P]], [/(apple) ?tv/i], [m, [l, j + " TV"], [h, P]], [/crkey/i], [[l, W + "cast"], [m, Z], [h, P]], [/droid.+aft(\w)( bui|\))/i], [l, [m, H], [h, P]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [l, [m, fe], [h, P]], [/(bravia[\w ]+)( bui|\))/i], [l, [m, te], [h, P]], [/(mitv-\w{5}) bui/i], [l, [m, ue], [h, P]], [/Hbbtv.*(technisat) (.*);/i], [m, l, [h, P]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[m, ve], [l, ve], [h, P]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[h, P]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [m, l, [h, v]], [/droid.+; (shield) bui/i], [l, [m, "Nvidia"], [h, v]], [/(playstation [345portablevi]+)/i], [l, [m, te], [h, v]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [l, [m, se], [h, v]], [/((pebble))app/i], [m, l, [h, N]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [l, [m, j], [h, N]], [/droid.+; (glass) \d/i], [l, [m, Z], [h, N]], [/droid.+; (wt63?0{2,3})\)/i], [l, [m, L], [h, N]], [/(quest( 2| pro)?)/i], [l, [m, pe], [h, N]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [m, [h, M]], [/(aeobc)\b/i], [l, [m, H], [h, M]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [l, [h, f]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [l, [h, w]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[h, w]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[h, f]], [/(android[-\w\. ]{0,9});.+buil/i], [l, [m, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [E, [b, ie + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [E, [b, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [b, E], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [E, b]], os: [[/microsoft (windows) (vista|xp)/i], [b, E], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [b, [E, Re, nt]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[b, "Windows"], [E, Re, nt]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[E, /_/g, "."], [b, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[b, _e], [E, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [E, b], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [b, E], [/\(bb(10);/i], [E, [b, Q]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [E, [b, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [E, [b, z + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [E, [b, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [E, [b, "watchOS"]], [/crkey\/([\d\.]+)/i], [E, [b, W + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[b, me], E], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [b, E], [/(sunos) ?([\w\.\d]*)/i], [[b, "Solaris"], E], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [b, E]] }, q = function(T, O) {
1459
1459
  if (typeof T === R && (O = T, T = r), !(this instanceof q))
1460
1460
  return new q(T, O).getResult();
1461
- var A = typeof u !== g && u.navigator ? u.navigator : r, C = T || (A && A.userAgent ? A.userAgent : _), V = A && A.userAgentData ? A.userAgentData : r, B = O ? ge(it, O) : it, I = A && A.userAgent == C;
1461
+ var A = typeof c !== p && c.navigator ? c.navigator : r, C = T || (A && A.userAgent ? A.userAgent : g), V = A && A.userAgentData ? A.userAgentData : r, G = O ? ge(it, O) : it, I = A && A.userAgent == C;
1462
1462
  return this.getBrowser = function() {
1463
1463
  var y = {};
1464
- return y[b] = r, y[E] = r, le.call(y, C, B.browser), y[x] = Xt(y[E]), I && A && A.brave && typeof A.brave.isBrave == f && (y[b] = "Brave"), y;
1464
+ return y[b] = r, y[E] = r, le.call(y, C, G.browser), y[x] = Xt(y[E]), I && A && A.brave && typeof A.brave.isBrave == _ && (y[b] = "Brave"), y;
1465
1465
  }, this.getCPU = function() {
1466
1466
  var y = {};
1467
- return y[s] = r, le.call(y, C, B.cpu), y;
1467
+ return y[s] = r, le.call(y, C, G.cpu), y;
1468
1468
  }, this.getDevice = function() {
1469
1469
  var y = {};
1470
- return y[m] = r, y[l] = r, y[h] = r, le.call(y, C, B.device), I && !y[h] && V && V.mobile && (y[h] = p), I && y[l] == "Macintosh" && A && typeof A.standalone !== g && A.maxTouchPoints && A.maxTouchPoints > 2 && (y[l] = "iPad", y[h] = w), y;
1470
+ return y[m] = r, y[l] = r, y[h] = r, le.call(y, C, G.device), I && !y[h] && V && V.mobile && (y[h] = f), I && y[l] == "Macintosh" && A && typeof A.standalone !== p && A.maxTouchPoints && A.maxTouchPoints > 2 && (y[l] = "iPad", y[h] = w), y;
1471
1471
  }, this.getEngine = function() {
1472
1472
  var y = {};
1473
- return y[b] = r, y[E] = r, le.call(y, C, B.engine), y;
1473
+ return y[b] = r, y[E] = r, le.call(y, C, G.engine), y;
1474
1474
  }, this.getOS = function() {
1475
1475
  var y = {};
1476
- return y[b] = r, y[E] = r, le.call(y, C, B.os), I && !y[b] && V && V.platform != "Unknown" && (y[b] = V.platform.replace(/chrome os/i, me).replace(/macos/i, _e)), y;
1476
+ return y[b] = r, y[E] = r, le.call(y, C, G.os), I && !y[b] && V && V.platform != "Unknown" && (y[b] = V.platform.replace(/chrome os/i, me).replace(/macos/i, _e)), y;
1477
1477
  }, this.getResult = function() {
1478
1478
  return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
1479
1479
  }, this.getUA = function() {
@@ -1482,8 +1482,8 @@ function hr() {
1482
1482
  return C = typeof y === S && y.length > D ? ve(y, D) : y, this;
1483
1483
  }, this.setUA(C), this;
1484
1484
  };
1485
- q.VERSION = d, q.BROWSER = $([b, E, x]), q.CPU = $([s]), q.DEVICE = $([l, m, h, v, p, P, w, N, M]), q.ENGINE = q.OS = $([b, E]), typeof a !== g ? (n.exports && (a = n.exports = q), a.UAParser = q) : typeof u !== g && (u.UAParser = q);
1486
- var re = typeof u !== g && (u.jQuery || u.Zepto);
1485
+ q.VERSION = d, q.BROWSER = $([b, E, x]), q.CPU = $([s]), q.DEVICE = $([l, m, h, v, f, P, w, N, M]), q.ENGINE = q.OS = $([b, E]), typeof a !== p ? (n.exports && (a = n.exports = q), a.UAParser = q) : typeof c !== p && (c.UAParser = q);
1486
+ var re = typeof c !== p && (c.jQuery || c.Zepto);
1487
1487
  if (re && !re.ua) {
1488
1488
  var be = new q();
1489
1489
  re.ua = be.getResult(), re.ua.get = function() {
@@ -1501,13 +1501,13 @@ function hr() {
1501
1501
  var a = e[n];
1502
1502
  if (a !== void 0)
1503
1503
  return a.exports;
1504
- var u = e[n] = { exports: {} }, r = !0;
1504
+ var c = e[n] = { exports: {} }, r = !0;
1505
1505
  try {
1506
- i[n].call(u.exports, u, u.exports, t), r = !1;
1506
+ i[n].call(c.exports, c, c.exports, t), r = !1;
1507
1507
  } finally {
1508
1508
  r && delete e[n];
1509
1509
  }
1510
- return u.exports;
1510
+ return c.exports;
1511
1511
  }
1512
1512
  typeof t < "u" && (t.ab = __dirname + "/");
1513
1513
  var o = t(226);
@@ -1521,9 +1521,9 @@ function Ct() {
1521
1521
  value: !0
1522
1522
  });
1523
1523
  function e(r, d) {
1524
- for (var _ in d) Object.defineProperty(r, _, {
1524
+ for (var g in d) Object.defineProperty(r, g, {
1525
1525
  enumerable: !0,
1526
- get: d[_]
1526
+ get: d[g]
1527
1527
  });
1528
1528
  }
1529
1529
  e(i, {
@@ -1531,7 +1531,7 @@ function Ct() {
1531
1531
  return n;
1532
1532
  },
1533
1533
  userAgent: function() {
1534
- return u;
1534
+ return c;
1535
1535
  },
1536
1536
  userAgentFromString: function() {
1537
1537
  return a;
@@ -1552,7 +1552,7 @@ function Ct() {
1552
1552
  isBot: r === void 0 ? !1 : n(r)
1553
1553
  };
1554
1554
  }
1555
- function u({ headers: r }) {
1555
+ function c({ headers: r }) {
1556
1556
  return a(r.get("user-agent") || void 0);
1557
1557
  }
1558
1558
  })(ze)), ze;
@@ -1608,15 +1608,15 @@ class Cr {
1608
1608
  o = Ze(d);
1609
1609
  }
1610
1610
  }
1611
- const a = e.headers, u = {};
1611
+ const a = e.headers, c = {};
1612
1612
  return e.cookies.getAll().forEach((r) => {
1613
- u[r.name] = r.value;
1613
+ c[r.name] = r.value;
1614
1614
  }), {
1615
1615
  url: t,
1616
1616
  headers: a,
1617
1617
  body: o,
1618
1618
  formData: n,
1619
- cookies: u,
1619
+ cookies: c,
1620
1620
  raw: e,
1621
1621
  clone() {
1622
1622
  return e.clone();
@@ -1651,7 +1651,12 @@ class Lr {
1651
1651
  http;
1652
1652
  cookies;
1653
1653
  adapter;
1654
- constructor(e, t, o, n) {
1654
+ constructor({
1655
+ config: e,
1656
+ adapter: t,
1657
+ storage: o,
1658
+ cookies: n
1659
+ }) {
1655
1660
  this.config = e;
1656
1661
  const a = wr(o);
1657
1662
  this.http = new Pr({ ...a, userType: Dt.TYPE_C }), this.cookies = n, this.adapter = t;
@@ -1681,51 +1686,51 @@ class Lr {
1681
1686
  const t = e.url.searchParams, o = t.get("m") ?? "unknown", a = { ...Ye, ...this.config.APIMAP }[o];
1682
1687
  if (!a || a.length === 0)
1683
1688
  return this.createErrorResponse(404, "API not found");
1684
- let u;
1685
- if ((a.startsWith("admin/") || a.startsWith("api/")) && (u = Er(this.cookies), !u || u.username.length === 0 || u.token.length === 0))
1689
+ let c;
1690
+ if ((a.startsWith("admin/") || a.startsWith("api/")) && (c = Er(this.cookies), !c || c.username.length === 0 || c.token.length === 0))
1686
1691
  return this.createErrorResponse(409, "Authentication required");
1687
1692
  let r;
1688
- const d = e.method, _ = e.headers.get(K) || "";
1693
+ const d = e.clone(), g = d.method, u = e.headers.get(K) || "";
1689
1694
  try {
1690
- if (d === "GET") {
1691
- const f = Ze(t.toString(), ["m"]);
1695
+ if (g === "GET") {
1696
+ const p = Ze(t.toString(), ["m"]);
1692
1697
  r = await this.http.get({
1693
1698
  url: a,
1694
- data: f,
1695
- token: u
1699
+ data: p,
1700
+ token: c
1696
1701
  });
1697
- } else if (d === "POST") {
1698
- let f;
1699
- if (_.includes(X.applicationJson) || _.includes(X.applicationXwwwFormUrlencoded))
1700
- f = e.body;
1701
- else if (_.includes(X.multipartFormData)) {
1702
- const g = _.match(/boundary=([^\s;]+)/);
1703
- if (!g)
1702
+ } else if (g === "POST") {
1703
+ let p;
1704
+ if (u.includes(X.applicationJson) || u.includes(X.applicationXwwwFormUrlencoded))
1705
+ p = e.body;
1706
+ else if (u.includes(X.multipartFormData)) {
1707
+ const R = u.match(/boundary=([^\s;]+)/);
1708
+ if (!R)
1704
1709
  return this.createErrorResponse(411, "Missing boundary in form data");
1705
- const S = await e.clone().arrayBuffer();
1706
- f = {
1707
- boundary: g[1],
1710
+ const S = await d.arrayBuffer();
1711
+ p = {
1712
+ boundary: R[1],
1708
1713
  buffer: Buffer.from(S)
1709
1714
  };
1710
1715
  const l = e.formData;
1711
1716
  if (l)
1712
1717
  for (const [b, h] of Object.entries(l))
1713
- b !== "file" && (f[b] = h);
1718
+ b !== "file" && (p[b] = h);
1714
1719
  } else
1715
1720
  return this.createErrorResponse(410, "Unsupported content type");
1716
1721
  r = await this.http.post({
1717
1722
  url: a,
1718
- data: f,
1719
- token: u
1723
+ data: p,
1724
+ token: c
1720
1725
  });
1721
1726
  } else
1722
- return this.createErrorResponse(405, "Method not allowed");
1723
- } catch (f) {
1724
- return k.error({ "error:": f }, "API request error"), this.createErrorResponse(500, "API request failed");
1727
+ return this.createErrorResponse(405, "Method not allowed, only supported GET or POST");
1728
+ } catch (p) {
1729
+ return k.error({ "error:": p }, "API request error"), this.createErrorResponse(500, "API request failed");
1725
1730
  }
1726
- const c = {
1731
+ const _ = {
1727
1732
  status: r.success ? 200 : r.code,
1728
- headers: { CONTENT_TYPE_KEY: _ },
1733
+ headers: { CONTENT_TYPE_KEY: u },
1729
1734
  cookies: {},
1730
1735
  body: r
1731
1736
  };
@@ -1735,8 +1740,8 @@ class Lr {
1735
1740
  0
1736
1741
  /* login */
1737
1742
  ]]:
1738
- const f = r.data;
1739
- vr(f, this.cookies);
1743
+ const p = r.data;
1744
+ vr(p, this.cookies);
1740
1745
  break;
1741
1746
  case Ye[Je[
1742
1747
  1
@@ -1745,7 +1750,7 @@ class Lr {
1745
1750
  Rr(this.cookies);
1746
1751
  break;
1747
1752
  }
1748
- return c;
1753
+ return _;
1749
1754
  }
1750
1755
  createErrorResponse(e, t) {
1751
1756
  return {
@@ -1772,7 +1777,7 @@ const _r = "zh-CN", Ht = "_device_id_key", Ft = "_current_website_key", Ut = "Ge
1772
1777
  LANG: "Lang",
1773
1778
  WEBSITE_ID: "Website-Id",
1774
1779
  WEBSITE_NO: "Website-No"
1775
- }, Bt = (i) => {
1780
+ }, Gt = (i) => {
1776
1781
  if (!i.get)
1777
1782
  throw new Error("The get method of IStorage has not been implemented.");
1778
1783
  const e = i.get(Ht) ?? "", t = i.get(Ft), o = t != null ? JSON.parse(t) : null, n = {};
@@ -1787,7 +1792,7 @@ const _r = "zh-CN", Ht = "_device_id_key", Ft = "_current_website_key", Ut = "Ge
1787
1792
  const r = new URLSearchParams(e.data);
1788
1793
  t += `&${r}`;
1789
1794
  }
1790
- const o = e && e.storage && e.storage.get ? Bt(e.storage) : {}, n = e?.headers;
1795
+ const o = e && e.storage && e.storage.get ? Gt(e.storage) : {}, n = e?.headers;
1791
1796
  if (n)
1792
1797
  for (const r in n) {
1793
1798
  const d = n[r];
@@ -1806,33 +1811,33 @@ const _r = "zh-CN", Ht = "_device_id_key", Ft = "_current_website_key", Ut = "Ge
1806
1811
  const r = Object.fromEntries(a.headers.entries()), d = { ...await a.json(), headers: r };
1807
1812
  return k.debug(d, "GET_RESULT"), d;
1808
1813
  }
1809
- const u = {
1814
+ const c = {
1810
1815
  code: a.status,
1811
1816
  success: !1,
1812
1817
  msg: a.statusText
1813
1818
  };
1814
- return k.error(u), u;
1815
- }, Gt = async (i, e) => {
1819
+ return k.error(c), c;
1820
+ }, Bt = async (i, e) => {
1816
1821
  const t = e?.data ?? {}, o = e?.headers;
1817
1822
  let n;
1818
- const a = e && e.storage && e.storage.get ? Bt(e.storage) : {}, u = new Headers(a);
1819
- if (t instanceof FormData ? n = t : (n = JSON.stringify(t), u.set(K, X.applicationJson)), o)
1820
- for (let _ in o) {
1821
- const c = o[_];
1822
- c && u.set(_, c);
1823
+ const a = e && e.storage && e.storage.get ? Gt(e.storage) : {}, c = new Headers(a);
1824
+ if (t instanceof FormData ? n = t : (n = JSON.stringify(t), c.set(K, X.applicationJson)), o)
1825
+ for (let g in o) {
1826
+ const u = o[g];
1827
+ u && c.set(g, u);
1823
1828
  }
1824
1829
  k.info({
1825
1830
  url: i,
1826
- headers: u
1831
+ headers: c
1827
1832
  }, "POST");
1828
1833
  const r = await fetch(i, {
1829
1834
  method: "POST",
1830
- headers: u,
1835
+ headers: c,
1831
1836
  body: n
1832
1837
  });
1833
1838
  if (r.ok) {
1834
- const _ = Object.fromEntries(r.headers.entries()), c = { ...await r.json(), headers: _ };
1835
- return k.debug(c, "POST_RESULT"), c;
1839
+ const g = Object.fromEntries(r.headers.entries()), u = { ...await r.json(), headers: g };
1840
+ return k.debug(u, "POST_RESULT"), u;
1836
1841
  }
1837
1842
  const d = {
1838
1843
  code: r.status,
@@ -1850,7 +1855,7 @@ const _r = "zh-CN", Ht = "_device_id_key", Ft = "_current_website_key", Ut = "Ge
1850
1855
  }
1851
1856
  throw Error(t.msg ?? Ut);
1852
1857
  }, Dr = async (i, e) => {
1853
- const t = await Gt(i, e);
1858
+ const t = await Bt(i, e);
1854
1859
  if (t.success)
1855
1860
  return t.data;
1856
1861
  if (e?.showError) {
@@ -1859,7 +1864,7 @@ const _r = "zh-CN", Ht = "_device_id_key", Ft = "_current_website_key", Ut = "Ge
1859
1864
  }
1860
1865
  throw Error(t.msg ?? Qe);
1861
1866
  }, Mr = async (i, e) => {
1862
- const t = await Gt(i, e);
1867
+ const t = await Bt(i, e);
1863
1868
  return t.success ? (e?.showSuccess && e.showSuccess(t.msg ?? "SUCCESS"), !0) : (e?.showError && e.showError(t.msg ?? Qe), !1);
1864
1869
  }, wr = (i) => {
1865
1870
  if (i.get) {
@@ -1903,19 +1908,19 @@ const _r = "zh-CN", Ht = "_device_id_key", Ft = "_current_website_key", Ut = "Ge
1903
1908
  }
1904
1909
  }
1905
1910
  }, vr = (i, e) => {
1906
- const { id: t, name: o, username: n, nickname: a, headImg: u, token: r, lastLoginTime: d, deviceId: _, userType: c, mustChangePwd: f } = i, g = {
1911
+ const { id: t, name: o, username: n, nickname: a, headImg: c, token: r, lastLoginTime: d, deviceId: g, userType: u, mustChangePwd: _ } = i, p = {
1907
1912
  id: t,
1908
1913
  name: o,
1909
1914
  username: n,
1910
1915
  nickname: a || o,
1911
- headImg: u,
1916
+ headImg: c,
1912
1917
  lastLoginTime: d,
1913
- deviceId: _,
1914
- userType: c,
1918
+ deviceId: g,
1919
+ userType: u,
1915
1920
  accountType: 0,
1916
1921
  needToReview: !1,
1917
1922
  socketOnline: !1,
1918
- mustChangePwd: f
1923
+ mustChangePwd: _
1919
1924
  };
1920
1925
  if (!e.set)
1921
1926
  throw new Error("cookies set function is undefined");
@@ -1924,7 +1929,7 @@ const _r = "zh-CN", Ht = "_device_id_key", Ft = "_current_website_key", Ut = "Ge
1924
1929
  secure: process.env.APP_ENV === "production",
1925
1930
  httpOnly: !0,
1926
1931
  sameSite: "strict"
1927
- }), e.set(U.IBOOT_USER, JSON.stringify(g));
1932
+ }), e.set(U.IBOOT_USER, JSON.stringify(p));
1928
1933
  }, Rr = (i) => {
1929
1934
  if (!i.set)
1930
1935
  throw new Error("cookies set function is undefined");
@@ -1978,33 +1983,33 @@ class Pr {
1978
1983
  if (n.length === 0)
1979
1984
  continue;
1980
1985
  for (let a = 0; a < n.length; a++) {
1981
- const u = n[a];
1982
- for (const r in u) {
1983
- const d = u[r] ?? void 0;
1986
+ const c = n[a];
1987
+ for (const r in c) {
1988
+ const d = c[r] ?? void 0;
1984
1989
  if (d) {
1985
1990
  if (typeof d == "object")
1986
- st(d) && d.forEach((_, c) => {
1987
- if (_)
1988
- for (const f in _) {
1989
- const g = _[f];
1990
- if (g && g.toString().length > 0) {
1991
- const R = `[${a.toString()}].${r + `[${c.toString()}].${f}`}=${we(g)}`;
1991
+ st(d) && d.forEach((g, u) => {
1992
+ if (g)
1993
+ for (const _ in g) {
1994
+ const p = g[_];
1995
+ if (p && p.toString().length > 0) {
1996
+ const R = `[${a.toString()}].${r + `[${u.toString()}].${_}`}=${we(p)}`;
1992
1997
  t.push(o + R);
1993
1998
  }
1994
1999
  }
1995
2000
  });
1996
2001
  else if (d.toString().length > 0) {
1997
- const _ = `[${a.toString()}].${r}=${we(d.toString())}`;
1998
- t.push(o + _);
2002
+ const g = `[${a.toString()}].${r}=${we(d.toString())}`;
2003
+ t.push(o + g);
1999
2004
  }
2000
2005
  }
2001
2006
  }
2002
2007
  }
2003
2008
  } else
2004
2009
  for (const a in n) {
2005
- const u = n[a];
2006
- if (u != null && u != "" && u.length != 0) {
2007
- const r = `.${a}=${we(u)}`;
2010
+ const c = n[a];
2011
+ if (c != null && c != "" && c.length != 0) {
2012
+ const r = `.${a}=${we(c)}`;
2008
2013
  t.push(o + r);
2009
2014
  }
2010
2015
  }
@@ -2018,17 +2023,17 @@ class Pr {
2018
2023
  const t = "&key=" + await this.helloIboot(), o = [];
2019
2024
  for (const d in e)
2020
2025
  o.push(d);
2021
- o.sort((d, _) => d.toLowerCase().localeCompare(_.toLowerCase()));
2026
+ o.sort((d, g) => d.toLowerCase().localeCompare(g.toLowerCase()));
2022
2027
  const n = [];
2023
2028
  o.forEach((d) => {
2024
- let _ = e[d];
2025
- typeof _ == "object" && (_ = JSON.stringify(_)), n.push(d + "=" + _);
2029
+ let g = e[d];
2030
+ typeof g == "object" && (g = JSON.stringify(g)), n.push(d + "=" + g);
2026
2031
  });
2027
- const a = n.join("&"), u = Kt.md5((a + t).toLocaleUpperCase()), r = {
2032
+ const a = n.join("&"), c = Kt.md5((a + t).toLocaleUpperCase()), r = {
2028
2033
  params: a,
2029
- md5: u
2034
+ md5: c
2030
2035
  };
2031
- return k.debug(r, "API_SIGN"), u;
2036
+ return k.debug(r, "API_SIGN"), c;
2032
2037
  }
2033
2038
  //eslint-disable-next-line @typescript-eslint/no-explicit-any
2034
2039
  assemblyParameter(e, t) {
@@ -2087,44 +2092,44 @@ class Pr {
2087
2092
  }
2088
2093
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2089
2094
  async get({ url: e, data: t, token: o, cache: n = "default" }) {
2090
- const a = this.assemblyParameter(t), u = this.convertUrlParameter(a), r = await this.assemblyHeader({ urlParams: u, token: o }), d = `${this.getApiUrl(e)}?${u.toString()}`, _ = {
2095
+ const a = this.assemblyParameter(t), c = this.convertUrlParameter(a), r = await this.assemblyHeader({ urlParams: c, token: o }), d = `${this.getApiUrl(e)}?${c.toString()}`, g = {
2091
2096
  url: d,
2092
2097
  headers: r
2093
2098
  };
2094
- k.info(_, "GET");
2095
- const c = await fetch(d, {
2099
+ k.info(g, "GET");
2100
+ const u = await fetch(d, {
2096
2101
  method: "GET",
2097
2102
  headers: r,
2098
2103
  credentials: "include",
2099
2104
  cache: n
2100
2105
  });
2101
- if (c.ok) {
2102
- const g = Object.fromEntries(c.headers.entries()), R = { ...await c.json(), headers: g };
2106
+ if (u.ok) {
2107
+ const p = Object.fromEntries(u.headers.entries()), R = { ...await u.json(), headers: p };
2103
2108
  return k.debug(R, "GET_RESULT"), R;
2104
2109
  }
2105
- const f = {
2106
- code: c.status,
2110
+ const _ = {
2111
+ code: u.status,
2107
2112
  success: !1,
2108
- msg: c.statusText
2113
+ msg: u.statusText
2109
2114
  };
2110
- return k.error(f), f;
2115
+ return k.error(_), _;
2111
2116
  }
2112
2117
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2113
2118
  async post({ url: e, data: t, token: o, cache: n = "default" }) {
2114
2119
  t = t ? { ...t } : {};
2115
- const a = t.buffer ?? void 0, u = t.boundary ?? void 0;
2116
- a && delete t.buffer, u && delete t.boundary;
2117
- const r = this.assemblyParameter(t), d = this.convertUrlParameter(r), _ = await this.assemblyHeader({ urlParams: d, token: o });
2118
- a && u && (_[K] = `multipart/form-data; boundary=${u}`);
2119
- const c = this.getApiUrl(e), f = {
2120
- url: c,
2121
- headers: _,
2120
+ const a = t.buffer ?? void 0, c = t.boundary ?? void 0;
2121
+ a && delete t.buffer, c && delete t.boundary;
2122
+ const r = this.assemblyParameter(t), d = this.convertUrlParameter(r), g = await this.assemblyHeader({ urlParams: d, token: o });
2123
+ a && c && (g[K] = `multipart/form-data; boundary=${c}`);
2124
+ const u = this.getApiUrl(e), _ = {
2125
+ url: u,
2126
+ headers: g,
2122
2127
  params: r
2123
2128
  };
2124
- k.info(f, "POST");
2125
- const g = a ? `${c}?${d}` : c, R = await fetch(g, {
2129
+ k.info(_, "POST");
2130
+ const p = a ? `${u}?${d}` : u, R = await fetch(p, {
2126
2131
  method: "POST",
2127
- headers: _,
2132
+ headers: g,
2128
2133
  body: a || d.toString(),
2129
2134
  credentials: "include",
2130
2135
  cache: n
@@ -2145,32 +2150,32 @@ class Pr {
2145
2150
  t = t ? { ...t } : {};
2146
2151
  const n = t.buffer ?? void 0, a = t.boundary ?? void 0;
2147
2152
  n && delete t.buffer, a && delete t.boundary;
2148
- const u = this.assemblyParameter(t), r = this.convertUrlParameter(u), d = await this.assemblyHeader({ urlParams: r, token: o });
2153
+ const c = this.assemblyParameter(t), r = this.convertUrlParameter(c), d = await this.assemblyHeader({ urlParams: r, token: o });
2149
2154
  n && a && (d[K] = `multipart/form-data; boundary=${a}`), d.Connection = "keep-alive", d["X-Accel-Buffering"] = "no", d["Cache-Control"] = "no-cache";
2150
- const _ = this.getApiUrl(e);
2155
+ const g = this.getApiUrl(e);
2151
2156
  try {
2152
- const c = n ? `${_}?${r}` : _, f = {
2153
- url: _,
2157
+ const u = n ? `${g}?${r}` : g, _ = {
2158
+ url: g,
2154
2159
  headers: d,
2155
- params: u
2160
+ params: c
2156
2161
  };
2157
- k.info(f, "STREAM");
2158
- const g = await fetch(c, {
2162
+ k.info(_, "STREAM");
2163
+ const p = await fetch(u, {
2159
2164
  method: "POST",
2160
2165
  headers: d,
2161
2166
  body: n || r.toString(),
2162
2167
  credentials: "include"
2163
2168
  });
2164
- if (!g.ok)
2165
- throw new Error(`HTTP error! status: ${g.status}`);
2166
- if (!g.body)
2169
+ if (!p.ok)
2170
+ throw new Error(`HTTP error! status: ${p.status}`);
2171
+ if (!p.body)
2167
2172
  throw new Error("No response body");
2168
- const R = Object.fromEntries(g.headers.entries());
2169
- return new Response(g.body, {
2173
+ const R = Object.fromEntries(p.headers.entries());
2174
+ return new Response(p.body, {
2170
2175
  headers: R
2171
2176
  });
2172
- } catch (c) {
2173
- throw c;
2177
+ } catch (u) {
2178
+ throw u;
2174
2179
  }
2175
2180
  }
2176
2181
  }
@@ -2196,7 +2201,7 @@ export {
2196
2201
  Mr as iPostSuccess,
2197
2202
  st as isArray,
2198
2203
  k as logger,
2199
- Gt as post,
2204
+ Bt as post,
2200
2205
  at as randomString,
2201
2206
  kr as setClientRequestHeader,
2202
2207
  Hr as setServerHttpCookies,