icms-api 0.1.10 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,31 +1,31 @@
1
- import Xt from "pino";
2
- import Wt from "pino-pretty";
3
- import zt from "js-md5";
1
+ import Wt from "pino";
2
+ import zt from "pino-pretty";
3
+ import Vt from "js-md5";
4
4
  import ne from "crypto-js";
5
5
  import "h3";
6
- var Zt = {
6
+ var er = {
7
7
  TYPE_MGT: 0,
8
8
  TYPE_C: 1,
9
9
  TYPE_B: 2
10
- }, er = Wt({
10
+ }, tr = zt({
11
11
  colorize: !0,
12
12
  destination: process.stdout,
13
13
  translateTime: "SYS:yyyy-mm-dd HH:MM:ss",
14
14
  ignore: "pid,hostname",
15
15
  messageFormat: "{msg}",
16
16
  singleLine: !0
17
- }), U = Xt({
17
+ }), U = Wt({
18
18
  name: process.env.APP_NAME ?? "iBoot",
19
19
  level: process.env.APP_ENV === "production" ? "info" : "debug",
20
20
  nestedKey: "payload"
21
- }, er), tr = {}, Mt = (e) => {
21
+ }, tr), rr = {}, Mt = (e) => {
22
22
  let t = e || 32, n = "";
23
23
  for (let e = 0; e < t; e++) n += "ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678".charAt(Math.floor(Math.random() * 48));
24
24
  return n;
25
25
  };
26
- function rr() {
26
+ function nr() {
27
27
  try {
28
- let e = tr.networkInterfaces();
28
+ let e = rr.networkInterfaces();
29
29
  for (let t of Object.keys(e)) {
30
30
  let n = e[t];
31
31
  if (n) {
@@ -48,7 +48,7 @@ var k = {
48
48
  applicationJson: "application/json",
49
49
  multipartFormData: "multipart/form-data",
50
50
  applicationXwwwFormUrlencoded: "application/x-www-form-urlencoded"
51
- }, nr = "zh-CN", $ = {
51
+ }, ir = "zh-CN", $ = {
52
52
  DEVICE_ID: "Device-Id",
53
53
  LANG: "Lang",
54
54
  WEBSITE_ID: "Website-Id",
@@ -62,13 +62,13 @@ var k = {
62
62
  secure: process.env.APP_ENV === "production",
63
63
  httpOnly: !0,
64
64
  sameSite: "strict"
65
- }), ir = (e) => {
65
+ }), or = (e) => {
66
66
  if (e.get) {
67
67
  let t = e.get($.DEVICE_ID), n = e.get($.LANG), r = e.get($.WEBSITE_ID), i = e.get($.WEBSITE_NO), a = {};
68
68
  return t && t.length > 0 && (a.deviceId = t), n && n.length > 0 && (a.lang = n), r && r.length > 0 && (a.websiteId = r), i && i.length > 0 && (a.websiteNo = i), a;
69
69
  }
70
70
  throw Error("The get method of IStorage has not been implemented.");
71
- }, or = (e) => {
71
+ }, sr = (e) => {
72
72
  if (e.get) {
73
73
  let t = e.get(k.IBOOT_DEVICE_ID), n = e.get(k.IBOOT_LANG), r = e.get(k.IBOOT_WEBSITE_ID), i = e.get(k.IBOOT_WEBSITE_NO), a = {};
74
74
  return t && t.length > 0 && (a.deviceId = t), n && n.length > 0 && (a.lang = n), r && r.length > 0 && (a.websiteId = r), i && i.length > 0 && (a.websiteNo = i), a;
@@ -77,7 +77,7 @@ var k = {
77
77
  }, Gr = (e, t) => {
78
78
  if (e.set) t.deviceId && e.set(k.IBOOT_DEVICE_ID, t.deviceId), t.lang && e.set(k.IBOOT_LANG, t.lang), t.websiteId && e.set(k.IBOOT_WEBSITE_ID, t.websiteId), t.websiteNo && e.set(k.IBOOT_WEBSITE_NO, t.websiteNo);
79
79
  else throw Error("The set method of ICookies has not been implemented.");
80
- }, sr = (e) => {
80
+ }, ar = (e) => {
81
81
  if (e.get) {
82
82
  let t = e[k.IBOOT_USER];
83
83
  if (t && t.length > 0) {
@@ -89,7 +89,7 @@ var k = {
89
89
  };
90
90
  }
91
91
  }
92
- }, ar = (e, t) => {
92
+ }, ur = (e, t) => {
93
93
  let { id: n, name: r, username: i, nickname: a, headImg: o, token: s, lastLoginTime: c, deviceId: l, userType: d, mustChangePwd: f } = e, p = {
94
94
  id: n,
95
95
  name: r,
@@ -111,11 +111,11 @@ var k = {
111
111
  value: JSON.stringify(p),
112
112
  options: ut()
113
113
  };
114
- }, ur = (e) => {
114
+ }, cr = (e) => {
115
115
  if (!e.set) throw Error("cookies set function is undefined");
116
116
  if (e.set(k.IBOOT_TOKEN, "", Ee), e.set(k.IBOOT_USER, "", Ee), !e.delete) throw Error("cookies delete function is undefined");
117
117
  e.delete(k.IBOOT_TOKEN, Ee), e.delete(k.IBOOT_USER, Ee);
118
- }, cr = class {
118
+ }, lr = class {
119
119
  baseUrl;
120
120
  helloMethod;
121
121
  apiKey;
@@ -127,7 +127,7 @@ var k = {
127
127
  websiteId;
128
128
  websiteNo;
129
129
  constructor(e) {
130
- process.env.APP_ENV === "production" || U.warn("This is currently a development environment!"), this.baseUrl = process.env.APP_BASEURL, this.apiKey = process.env.APP_APIKEY, this.userFrom = process.env.APP_USERFROM ?? "1", this.helloMethod = e.helloURL ?? "", this.userType = e.userType ?? Zt.TYPE_MGT, this.deviceId = e.deviceId ?? rr(), this.lang = e.lang ?? nr, this.websiteId = e.websiteId, this.websiteNo = e.websiteNo;
130
+ process.env.APP_ENV === "production" || U.warn("This is currently a development environment!"), this.baseUrl = process.env.APP_BASEURL, this.apiKey = process.env.APP_APIKEY, this.userFrom = process.env.APP_USERFROM ?? "1", this.helloMethod = e.helloURL ?? "", this.userType = e.userType ?? er.TYPE_MGT, this.deviceId = e.deviceId ?? nr(), this.lang = e.lang ?? ir, this.websiteId = e.websiteId, this.websiteNo = e.websiteNo;
131
131
  }
132
132
  encrypt(e) {
133
133
  let t = ne.enc.Utf8.parse(this.apiKey);
@@ -155,7 +155,7 @@ var k = {
155
155
  let n = e.get(t);
156
156
  n && i.push(t + "=" + n);
157
157
  });
158
- let a = i.join("&"), s = zt.md5((a + t).toLocaleUpperCase()), c = {
158
+ let a = i.join("&"), s = Vt.md5((a + t).toLocaleUpperCase()), c = {
159
159
  params: a,
160
160
  md5: s
161
161
  };
@@ -331,7 +331,7 @@ function tt() {
331
331
  })(Ce)), Ce;
332
332
  }
333
333
  var ft;
334
- function qt() {
334
+ function Ht() {
335
335
  return ft || (ft = 1, (function(e) {
336
336
  Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "addPathPrefix", {
337
337
  enumerable: !0,
@@ -390,7 +390,7 @@ function mr() {
390
390
  return r;
391
391
  }
392
392
  });
393
- let t = qt(), n = rt();
393
+ let t = Ht(), n = rt();
394
394
  function r(e, r, i, a) {
395
395
  if (!r || r === i) return e;
396
396
  let o = e.toLowerCase();
@@ -407,7 +407,7 @@ function _r() {
407
407
  return a;
408
408
  }
409
409
  });
410
- let t = fr(), n = qt(), r = pr(), i = mr();
410
+ let t = fr(), n = Ht(), r = pr(), i = mr();
411
411
  function a(e) {
412
412
  let a = (0, i.addLocale)(e.pathname, e.locale, e.buildId ? void 0 : e.defaultLocale, e.ignorePrefix);
413
413
  return (e.buildId || !e.trailingSlash) && (a = (0, t.removeTrailingSlash)(a)), e.buildId && (a = (0, r.addPathSuffix)((0, n.addPathPrefix)(a, "/_next/data/" + e.buildId), e.pathname === "/" ? "index.json" : ".json")), a = (0, n.addPathPrefix)(a, e.basePath), !e.buildId && e.trailingSlash ? a.endsWith("/") ? a : (0, r.addPathSuffix)(a, "/") : (0, t.removeTrailingSlash)(a);
@@ -497,7 +497,7 @@ function Er() {
497
497
  })(Me)), Me;
498
498
  }
499
499
  var Rt;
500
- function Ht() {
500
+ function Ft() {
501
501
  return Rt || (Rt = 1, (function(e) {
502
502
  Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "NextURL", {
503
503
  enumerable: !0,
@@ -679,7 +679,7 @@ function vr() {
679
679
  return c;
680
680
  },
681
681
  APP_DIR_ALIAS: function() {
682
- return fn;
682
+ return dn;
683
683
  },
684
684
  CACHE_ONE_YEAR: function() {
685
685
  return b;
@@ -688,7 +688,7 @@ function vr() {
688
688
  return T;
689
689
  },
690
690
  ESLINT_DEFAULT_DIRS: function() {
691
- return _n;
691
+ return gn;
692
692
  },
693
693
  GSP_NO_RETURNED_VALUE: function() {
694
694
  return R;
@@ -697,7 +697,7 @@ function vr() {
697
697
  return B;
698
698
  },
699
699
  GSSP_NO_RETURNED_VALUE: function() {
700
- return hn;
700
+ return mn;
701
701
  },
702
702
  INSTRUMENTATION_HOOK_FILENAME: function() {
703
703
  return C;
@@ -769,7 +769,7 @@ function vr() {
769
769
  return j;
770
770
  },
771
771
  RSC_ACTION_ENCRYPTION_ALIAS: function() {
772
- return pn;
772
+ return fn;
773
773
  },
774
774
  RSC_ACTION_PROXY_ALIAS: function() {
775
775
  return A;
@@ -796,16 +796,16 @@ function vr() {
796
796
  return I;
797
797
  },
798
798
  SERVER_RUNTIME: function() {
799
- return vn;
799
+ return _n;
800
800
  },
801
801
  SSG_FALLBACK_EXPORT_ERROR: function() {
802
- return gn;
802
+ return hn;
803
803
  },
804
804
  SSG_GET_INITIAL_PROPS_CONFLICT: function() {
805
805
  return P;
806
806
  },
807
807
  STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR: function() {
808
- return mn;
808
+ return pn;
809
809
  },
810
810
  UNSTABLE_REVALIDATE_RENAME_ERROR: function() {
811
811
  return z;
@@ -817,13 +817,13 @@ function vr() {
817
817
  return G;
818
818
  }
819
819
  });
820
- let n = "nxtP", r = "nxtI", i = "x-prerender-revalidate", a = "x-prerender-revalidate-if-generated", o = ".prefetch.rsc", s = ".rsc", c = ".action", l = ".json", u = ".meta", d = ".body", f = "x-next-cache-tags", p = "x-next-cache-soft-tags", m = "x-next-revalidated-tags", h = "x-next-revalidate-tag-token", g = 128, _ = 256, v = 1024, y = "_N_T_", b = 31536e3, x = "middleware", S = `(?:src/)?${x}`, C = "instrumentation", w = "private-next-pages", T = "private-dot-next", E = "private-next-root-dir", fn = "private-next-app-dir", D = "private-next-rsc-mod-ref-proxy", O = "private-next-rsc-action-validate", A = "private-next-rsc-server-reference", pn = "private-next-rsc-action-encryption", j = "private-next-rsc-action-client-wrapper", N = "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", P = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", F = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", I = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", mn = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", L = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", R = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", hn = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", z = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", B = "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", V = "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", gn = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", _n = [
820
+ let n = "nxtP", r = "nxtI", i = "x-prerender-revalidate", a = "x-prerender-revalidate-if-generated", o = ".prefetch.rsc", s = ".rsc", c = ".action", l = ".json", u = ".meta", d = ".body", f = "x-next-cache-tags", p = "x-next-cache-soft-tags", m = "x-next-revalidated-tags", h = "x-next-revalidate-tag-token", g = 128, _ = 256, v = 1024, y = "_N_T_", b = 31536e3, x = "middleware", S = `(?:src/)?${x}`, C = "instrumentation", w = "private-next-pages", T = "private-dot-next", E = "private-next-root-dir", dn = "private-next-app-dir", D = "private-next-rsc-mod-ref-proxy", O = "private-next-rsc-action-validate", A = "private-next-rsc-server-reference", fn = "private-next-rsc-action-encryption", j = "private-next-rsc-action-client-wrapper", N = "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", P = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", F = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", I = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", pn = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", L = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", R = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", mn = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", z = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", B = "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", V = "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", hn = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", gn = [
821
821
  "app",
822
822
  "pages",
823
823
  "components",
824
824
  "lib",
825
825
  "src"
826
- ], vn = {
826
+ ], _n = {
827
827
  edge: "edge",
828
828
  experimentalEdge: "experimental-edge",
829
829
  nodejs: "nodejs"
@@ -871,7 +871,7 @@ function vr() {
871
871
  })(Fe)), Fe;
872
872
  }
873
873
  var yt;
874
- function Ft() {
874
+ function Bt() {
875
875
  return yt || (yt = 1, (function(e) {
876
876
  Object.defineProperty(e, "__esModule", { value: !0 });
877
877
  function t(e, t) {
@@ -1260,7 +1260,7 @@ function yr() {
1260
1260
  return s;
1261
1261
  }
1262
1262
  });
1263
- let n = Ht(), r = Ft(), i = Rr(), a = Ze(), o = /* @__PURE__ */ Symbol("internal request");
1263
+ let n = Ft(), r = Bt(), i = Rr(), a = Ze(), o = /* @__PURE__ */ Symbol("internal request");
1264
1264
  class s extends Request {
1265
1265
  constructor(e, t = {}) {
1266
1266
  let i = typeof e != "string" && "url" in e ? e.url : String(e);
@@ -1358,7 +1358,7 @@ function Tr() {
1358
1358
  return l;
1359
1359
  }
1360
1360
  });
1361
- let t = Ze(), n = Ht(), r = Ft(), i = Sr(), a = Ze(), o = /* @__PURE__ */ Symbol("internal response"), s = /* @__PURE__ */ new Set([
1361
+ let t = Ze(), n = Ft(), r = Bt(), i = Sr(), a = Ze(), o = /* @__PURE__ */ Symbol("internal response"), s = /* @__PURE__ */ new Set([
1362
1362
  301,
1363
1363
  302,
1364
1364
  303,
@@ -1462,7 +1462,7 @@ function Ar() {
1462
1462
  return Ct || (Ct = 1, (() => {
1463
1463
  var e = { 226: function(e, t) {
1464
1464
  (function(n, r) {
1465
- var i = "1.0.35", a = "", o = "?", s = "function", c = "undefined", l = "object", u = "string", d = "major", f = "model", p = "name", m = "type", h = "vendor", g = "version", _ = "architecture", v = "console", y = "mobile", b = "tablet", x = "smarttv", S = "wearable", C = "embedded", w = 350, T = "Amazon", E = "Apple", fn = "ASUS", D = "BlackBerry", O = "Browser", A = "Chrome", pn = "Edge", j = "Firefox", N = "Google", P = "Huawei", F = "LG", I = "Microsoft", mn = "Motorola", L = "Opera", R = "Samsung", hn = "Sharp", z = "Sony", B = "Xiaomi", V = "Zebra", gn = "Facebook", _n = "Chromium OS", vn = "Mac OS", H = function(e, t) {
1465
+ var i = "1.0.35", a = "", o = "?", s = "function", c = "undefined", l = "object", u = "string", d = "major", f = "model", p = "name", m = "type", h = "vendor", g = "version", _ = "architecture", v = "console", y = "mobile", b = "tablet", x = "smarttv", S = "wearable", C = "embedded", w = 350, T = "Amazon", E = "Apple", dn = "ASUS", D = "BlackBerry", O = "Browser", A = "Chrome", fn = "Edge", j = "Firefox", N = "Google", P = "Huawei", F = "LG", I = "Microsoft", pn = "Motorola", L = "Opera", R = "Samsung", mn = "Sharp", z = "Sony", B = "Xiaomi", V = "Zebra", hn = "Facebook", gn = "Chromium OS", _n = "Mac OS", H = function(e, t) {
1466
1466
  var n = {};
1467
1467
  for (var r in e) t[r] && t[r].length % 2 == 0 ? n[r] = t[r].concat(e[r]) : n[r] = e[r];
1468
1468
  return n;
@@ -1473,7 +1473,7 @@ function Ar() {
1473
1473
  return typeof e === u ? q(t).indexOf(q(e)) !== -1 : !1;
1474
1474
  }, q = function(e) {
1475
1475
  return e.toLowerCase();
1476
- }, yn = function(e) {
1476
+ }, vn = function(e) {
1477
1477
  return typeof e === u ? e.replace(/[^\d\.]/g, a).split(".")[0] : r;
1478
1478
  }, J = function(e, t) {
1479
1479
  if (typeof e === u) return e = e.replace(/^\s\s*/, a), typeof t === c ? e : e.substring(0, w);
@@ -1483,12 +1483,12 @@ function Ar() {
1483
1483
  for (i = a = 0; i < f.length && !u && f[i];) if (u = f[i++].exec(e), u) for (o = 0; o < p.length; o++) d = u[++a], c = p[o], typeof c === l && c.length > 0 ? c.length === 2 ? typeof c[1] == s ? this[c[0]] = c[1].call(this, d) : this[c[0]] = c[1] : c.length === 3 ? typeof c[1] === s && !(c[1].exec && c[1].test) ? this[c[0]] = d ? c[1].call(this, d, c[2]) : r : this[c[0]] = d ? d.replace(c[1], c[2]) : r : c.length === 4 && (this[c[0]] = d ? c[3].call(this, d.replace(c[1], c[2])) : r) : this[c] = d || r;
1484
1484
  n += 2;
1485
1485
  }
1486
- }, bn = function(e, t) {
1486
+ }, yn = function(e, t) {
1487
1487
  for (var n in t) if (typeof t[n] === l && t[n].length > 0) {
1488
1488
  for (var i = 0; i < t[n].length; i++) if (G(t[n][i], e)) return n === o ? r : n;
1489
1489
  } else if (G(t[n], e)) return n === o ? r : n;
1490
1490
  return e;
1491
- }, xn = {
1491
+ }, bn = {
1492
1492
  "1.0": "/8",
1493
1493
  1.2: "/1",
1494
1494
  1.3: "/3",
@@ -1497,7 +1497,7 @@ function Ar() {
1497
1497
  "2.0.3": "/417",
1498
1498
  "2.0.4": "/419",
1499
1499
  "?": "/"
1500
- }, Sn = {
1500
+ }, xn = {
1501
1501
  ME: "4.90",
1502
1502
  "NT 3.11": "NT3.51",
1503
1503
  "NT 4.0": "NT4.0",
@@ -1509,7 +1509,7 @@ function Ar() {
1509
1509
  8.1: "NT 6.3",
1510
1510
  10: ["NT 6.4", "NT 10.0"],
1511
1511
  RT: "ARM"
1512
- }, Cn = {
1512
+ }, Sn = {
1513
1513
  browser: [
1514
1514
  [/\b(?:crmo|crios)\/([\w\.]+)/i],
1515
1515
  [g, [p, "Chrome"]],
@@ -1595,7 +1595,7 @@ function Ar() {
1595
1595
  ],
1596
1596
  [p],
1597
1597
  [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],
1598
- [[p, gn], g],
1598
+ [[p, hn], g],
1599
1599
  [
1600
1600
  /(kakao(?:talk|story))[\/ ]([\w\.]+)/i,
1601
1601
  /(naver)\(.*?(\d+\.[\w\.]+).*\)/i,
@@ -1623,8 +1623,8 @@ function Ar() {
1623
1623
  [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],
1624
1624
  [p, [
1625
1625
  g,
1626
- bn,
1627
- xn
1626
+ yn,
1627
+ bn
1628
1628
  ]],
1629
1629
  [/(webkit|khtml)\/([\w\.]+)/i],
1630
1630
  [p, g],
@@ -1714,7 +1714,7 @@ function Ar() {
1714
1714
  [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],
1715
1715
  [
1716
1716
  f,
1717
- [h, hn],
1717
+ [h, mn],
1718
1718
  [m, y]
1719
1719
  ],
1720
1720
  [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],
@@ -1780,13 +1780,13 @@ function Ar() {
1780
1780
  ],
1781
1781
  [
1782
1782
  f,
1783
- [h, mn],
1783
+ [h, pn],
1784
1784
  [m, y]
1785
1785
  ],
1786
1786
  [/\b(mz60\d|xoom[2 ]{0,2}) build\//i],
1787
1787
  [
1788
1788
  f,
1789
- [h, mn],
1789
+ [h, pn],
1790
1790
  [m, b]
1791
1791
  ],
1792
1792
  [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],
@@ -1886,13 +1886,13 @@ function Ar() {
1886
1886
  [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],
1887
1887
  [
1888
1888
  f,
1889
- [h, fn],
1889
+ [h, dn],
1890
1890
  [m, b]
1891
1891
  ],
1892
1892
  [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],
1893
1893
  [
1894
1894
  f,
1895
- [h, fn],
1895
+ [h, dn],
1896
1896
  [m, y]
1897
1897
  ],
1898
1898
  [/(nexus 9)/i],
@@ -2165,7 +2165,7 @@ function Ar() {
2165
2165
  [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i],
2166
2166
  [
2167
2167
  f,
2168
- [h, hn],
2168
+ [h, mn],
2169
2169
  [m, x]
2170
2170
  ],
2171
2171
  [/(bravia[\w ]+)( bui|\))/i],
@@ -2245,7 +2245,7 @@ function Ar() {
2245
2245
  [/(quest( 2| pro)?)/i],
2246
2246
  [
2247
2247
  f,
2248
- [h, gn],
2248
+ [h, hn],
2249
2249
  [m, S]
2250
2250
  ],
2251
2251
  [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],
@@ -2269,7 +2269,7 @@ function Ar() {
2269
2269
  ],
2270
2270
  engine: [
2271
2271
  [/windows.+ edge\/([\w\.]+)/i],
2272
- [g, [p, pn + "HTML"]],
2272
+ [g, [p, fn + "HTML"]],
2273
2273
  [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],
2274
2274
  [g, [p, "Blink"]],
2275
2275
  [
@@ -2294,14 +2294,14 @@ function Ar() {
2294
2294
  ],
2295
2295
  [p, [
2296
2296
  g,
2297
- bn,
2298
- Sn
2297
+ yn,
2298
+ xn
2299
2299
  ]],
2300
2300
  [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],
2301
2301
  [[p, "Windows"], [
2302
2302
  g,
2303
- bn,
2304
- Sn
2303
+ yn,
2304
+ xn
2305
2305
  ]],
2306
2306
  [
2307
2307
  /ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,
@@ -2314,7 +2314,7 @@ function Ar() {
2314
2314
  "."
2315
2315
  ], [p, "iOS"]],
2316
2316
  [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i],
2317
- [[p, vn], [
2317
+ [[p, _n], [
2318
2318
  g,
2319
2319
  /_/g,
2320
2320
  "."
@@ -2341,7 +2341,7 @@ function Ar() {
2341
2341
  [/crkey\/([\d\.]+)/i],
2342
2342
  [g, [p, A + "cast"]],
2343
2343
  [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],
2344
- [[p, _n], g],
2344
+ [[p, gn], g],
2345
2345
  [
2346
2346
  /panasonic;(viera)/i,
2347
2347
  /(netrange)mmh/i,
@@ -2370,10 +2370,10 @@ function Ar() {
2370
2370
  ]
2371
2371
  }, X = function(e, t) {
2372
2372
  if (typeof e === l && (t = e, e = r), !(this instanceof X)) return new X(e, t).getResult();
2373
- var i = typeof n !== c && n.navigator ? n.navigator : r, o = e || (i && i.userAgent ? i.userAgent : a), v = i && i.userAgentData ? i.userAgentData : r, x = t ? H(Cn, t) : Cn, S = i && i.userAgent == o;
2373
+ var i = typeof n !== c && n.navigator ? n.navigator : r, o = e || (i && i.userAgent ? i.userAgent : a), v = i && i.userAgentData ? i.userAgentData : r, x = t ? H(Sn, t) : Sn, S = i && i.userAgent == o;
2374
2374
  return this.getBrowser = function() {
2375
2375
  var e = {};
2376
- return e[p] = r, e[g] = r, Y.call(e, o, x.browser), e[d] = yn(e[g]), S && i && i.brave && typeof i.brave.isBrave == s && (e[p] = "Brave"), e;
2376
+ return e[p] = r, e[g] = r, Y.call(e, o, x.browser), e[d] = vn(e[g]), S && i && i.brave && typeof i.brave.isBrave == s && (e[p] = "Brave"), e;
2377
2377
  }, this.getCPU = function() {
2378
2378
  var e = {};
2379
2379
  return e[_] = r, Y.call(e, o, x.cpu), e;
@@ -2385,7 +2385,7 @@ function Ar() {
2385
2385
  return e[p] = r, e[g] = r, Y.call(e, o, x.engine), e;
2386
2386
  }, this.getOS = function() {
2387
2387
  var e = {};
2388
- return e[p] = r, e[g] = r, Y.call(e, o, x.os), S && !e[p] && v && v.platform != "Unknown" && (e[p] = v.platform.replace(/chrome os/i, _n).replace(/macos/i, vn)), e;
2388
+ return e[p] = r, e[g] = r, Y.call(e, o, x.os), S && !e[p] && v && v.platform != "Unknown" && (e[p] = v.platform.replace(/chrome os/i, gn).replace(/macos/i, _n)), e;
2389
2389
  }, this.getResult = function() {
2390
2390
  return {
2391
2391
  ua: this.getUA(),
@@ -2519,8 +2519,8 @@ var et = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
2519
2519
  adapter;
2520
2520
  constructor({ config: e, adapter: t, storage: n }) {
2521
2521
  this.config = e;
2522
- let r = ir(n.headers), i = r.deviceId && r.deviceId.length > 0, a = r.websiteId && r.websiteId.length > 0, o = r.websiteNo && r.websiteNo.length > 0, s = r.lang && r.lang.length > 0;
2523
- (!i || !a || !o || !s) && (r = or(n.cookies)), this.http = new cr({
2522
+ let r = or(n.headers), i = r.deviceId && r.deviceId.length > 0, a = r.websiteId && r.websiteId.length > 0, o = r.websiteNo && r.websiteNo.length > 0, s = r.lang && r.lang.length > 0;
2523
+ (!i || !a || !o || !s) && (r = sr(n.cookies)), this.http = new lr({
2524
2524
  ...r,
2525
2525
  userType: e.userType,
2526
2526
  helloURL: e.helloURL
@@ -2543,7 +2543,7 @@ var et = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
2543
2543
  }[n], i = e.cookies;
2544
2544
  if (this.http.setHttpOptsToCookies(i), !r || r.length === 0) return this.createErrorResponse(404, "API not found", i);
2545
2545
  let a;
2546
- if ((r.startsWith("admin/") || r.startsWith("api/")) && (a = sr(i), U.debug(a, "token"), !a || a.username.length === 0 || a.token.length === 0)) return this.createErrorResponse(409, "Authentication required", i);
2546
+ if ((r.startsWith("admin/") || r.startsWith("api/")) && (a = ar(i), U.debug(a, "token"), !a || a.username.length === 0 || a.token.length === 0)) return this.createErrorResponse(409, "Authentication required", i);
2547
2547
  U.debug({ "content-type": e.contentType }, "Content-Type"), U.debug({
2548
2548
  hostUrl: r,
2549
2549
  token: a ? { ...a } : ""
@@ -2605,10 +2605,10 @@ var et = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
2605
2605
  switch (e) {
2606
2606
  case Je[et[0]]:
2607
2607
  let e = t.data;
2608
- ar(e, a);
2608
+ ur(e, a);
2609
2609
  break;
2610
2610
  case Je[et[1]]:
2611
- a.cleanCookies = (e) => ur(e);
2611
+ a.cleanCookies = (e) => cr(e);
2612
2612
  break;
2613
2613
  }
2614
2614
  n.onHandlerSuccess && n.onHandlerSuccess({
@@ -2655,9 +2655,9 @@ const helloURL = `${baseUrl.site}helloIBoot`;
2655
2655
  var ICMSServer = class {
2656
2656
  http;
2657
2657
  constructor(e) {
2658
- this.http = new cr({
2659
- ...or(e),
2660
- userType: Zt.TYPE_C,
2658
+ this.http = new lr({
2659
+ ...sr(e),
2660
+ userType: er.TYPE_C,
2661
2661
  helloURL
2662
2662
  });
2663
2663
  }
@@ -3061,7 +3061,7 @@ var ICMSServer = class {
3061
3061
  };
3062
3062
  const icmsRouter = async ({ request: e, routeAdapter: t, storage: n }) => await new Yr({
3063
3063
  config: {
3064
- userType: Zt.TYPE_C,
3064
+ userType: er.TYPE_C,
3065
3065
  APIMAP,
3066
3066
  helloURL
3067
3067
  },