icms-api 0.0.4 → 0.0.5

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 zt from "pino";
2
- import Vt from "pino-pretty";
3
- import Kt from "js-md5";
1
+ import Gt from "pino";
2
+ import Xt from "pino-pretty";
3
+ import Wt from "js-md5";
4
4
  import ne from "crypto-js";
5
5
  import "h3";
6
- var tr = {
6
+ var Qt = {
7
7
  TYPE_MGT: 0,
8
8
  TYPE_C: 1,
9
9
  TYPE_B: 2
10
- }, rr = Vt({
10
+ }, Zt = Xt({
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
- }), L = zt({
17
+ }), L = Gt({
18
18
  name: process.env.APP_NAME ?? "iBoot",
19
19
  level: process.env.APP_ENV === "production" ? "info" : "debug",
20
20
  nestedKey: "payload"
21
- }, rr), nr = {}, Dt = (e) => {
21
+ }, Zt), er = {}, Dt = (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 ir() {
26
+ function tr() {
27
27
  try {
28
- let e = nr.networkInterfaces();
28
+ let e = er.networkInterfaces();
29
29
  for (let t of Object.keys(e)) {
30
30
  let n = e[t];
31
31
  if (n) {
@@ -37,8 +37,8 @@ function ir() {
37
37
  return Dt(10);
38
38
  }
39
39
  }
40
- var we = { exports: {} }, Te = {}, Ie = {}, Se = {}, at;
41
- function or() {
40
+ var we = { exports: {} }, Te = {}, Se = {}, Ie = {}, at;
41
+ function rr() {
42
42
  return at || (at = 1, (function(e) {
43
43
  Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "detectDomainLocale", {
44
44
  enumerable: !0,
@@ -55,10 +55,10 @@ function or() {
55
55
  }
56
56
  }
57
57
  }
58
- })(Se)), Se;
58
+ })(Ie)), Ie;
59
59
  }
60
60
  var Ae = {}, Oe = {}, ut;
61
- function sr() {
61
+ function nr() {
62
62
  return ut || (ut = 1, (function(e) {
63
63
  Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "removeTrailingSlash", {
64
64
  enumerable: !0,
@@ -112,7 +112,7 @@ function Mt() {
112
112
  })(xe)), xe;
113
113
  }
114
114
  var Ce = {}, dt;
115
- function ar() {
115
+ function ir() {
116
116
  return dt || (dt = 1, (function(e) {
117
117
  Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "addPathSuffix", {
118
118
  enumerable: !0,
@@ -146,7 +146,7 @@ function tt() {
146
146
  })(ke)), ke;
147
147
  }
148
148
  var ft;
149
- function ur() {
149
+ function or() {
150
150
  return ft || (ft = 1, (function(e) {
151
151
  Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "addLocale", {
152
152
  enumerable: !0,
@@ -163,7 +163,7 @@ function ur() {
163
163
  })(Le)), Le;
164
164
  }
165
165
  var pt;
166
- function cr() {
166
+ function sr() {
167
167
  return pt || (pt = 1, (function(e) {
168
168
  Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "formatNextPathnameInfo", {
169
169
  enumerable: !0,
@@ -171,7 +171,7 @@ function cr() {
171
171
  return a;
172
172
  }
173
173
  });
174
- let t = sr(), n = Mt(), r = ar(), i = ur();
174
+ let t = nr(), n = Mt(), r = ir(), i = or();
175
175
  function a(e) {
176
176
  let a = (0, i.addLocale)(e.pathname, e.locale, e.buildId ? void 0 : e.defaultLocale, e.ignorePrefix);
177
177
  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);
@@ -179,7 +179,7 @@ function cr() {
179
179
  })(Ae)), Ae;
180
180
  }
181
181
  var Ue = {}, mt;
182
- function lr() {
182
+ function ar() {
183
183
  return mt || (mt = 1, (function(e) {
184
184
  Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "getHostname", {
185
185
  enumerable: !0,
@@ -197,7 +197,7 @@ function lr() {
197
197
  })(Ue)), Ue;
198
198
  }
199
199
  var De = {}, Me = {}, _t;
200
- function dr() {
200
+ function ur() {
201
201
  return _t || (_t = 1, (function(e) {
202
202
  Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "normalizeLocalePath", {
203
203
  enumerable: !0,
@@ -215,7 +215,7 @@ function dr() {
215
215
  })(Me)), Me;
216
216
  }
217
217
  var je = {}, bt;
218
- function hr() {
218
+ function cr() {
219
219
  return bt || (bt = 1, (function(e) {
220
220
  Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "removePathPrefix", {
221
221
  enumerable: !0,
@@ -232,7 +232,7 @@ function hr() {
232
232
  })(je)), je;
233
233
  }
234
234
  var gt;
235
- function fr() {
235
+ function lr() {
236
236
  return gt || (gt = 1, (function(e) {
237
237
  Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "getNextPathnameInfo", {
238
238
  enumerable: !0,
@@ -240,7 +240,7 @@ function fr() {
240
240
  return i;
241
241
  }
242
242
  });
243
- let t = dr(), n = hr(), r = tt();
243
+ let t = ur(), n = cr(), r = tt();
244
244
  function i(e, i) {
245
245
  let { basePath: a, i18n: o, trailingSlash: s } = i.nextConfig ?? {}, c = {
246
246
  pathname: e,
@@ -269,7 +269,7 @@ function jt() {
269
269
  return c;
270
270
  }
271
271
  });
272
- let t = or(), n = cr(), r = lr(), i = fr(), a = /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;
272
+ let t = rr(), n = sr(), r = ar(), i = lr(), a = /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;
273
273
  function o(e, t) {
274
274
  return new URL(String(e).replace(a, "localhost"), t && String(t).replace(a, "localhost"));
275
275
  }
@@ -426,10 +426,10 @@ function jt() {
426
426
  return new c(String(this), this[s].options);
427
427
  }
428
428
  }
429
- })(Ie)), Ie;
429
+ })(Se)), Se;
430
430
  }
431
431
  var qe = {}, He = {}, Et;
432
- function pr() {
432
+ function dr() {
433
433
  return Et || (Et = 1, (function(e) {
434
434
  Object.defineProperty(e, "__esModule", { value: !0 });
435
435
  function t(e, t) {
@@ -443,7 +443,7 @@ function pr() {
443
443
  return c;
444
444
  },
445
445
  APP_DIR_ALIAS: function() {
446
- return dn;
446
+ return pn;
447
447
  },
448
448
  CACHE_ONE_YEAR: function() {
449
449
  return b;
@@ -452,7 +452,7 @@ function pr() {
452
452
  return T;
453
453
  },
454
454
  ESLINT_DEFAULT_DIRS: function() {
455
- return gn;
455
+ return vn;
456
456
  },
457
457
  GSP_NO_RETURNED_VALUE: function() {
458
458
  return R;
@@ -461,7 +461,7 @@ function pr() {
461
461
  return B;
462
462
  },
463
463
  GSSP_NO_RETURNED_VALUE: function() {
464
- return mn;
464
+ return gn;
465
465
  },
466
466
  INSTRUMENTATION_HOOK_FILENAME: function() {
467
467
  return C;
@@ -533,7 +533,7 @@ function pr() {
533
533
  return A;
534
534
  },
535
535
  RSC_ACTION_ENCRYPTION_ALIAS: function() {
536
- return fn;
536
+ return mn;
537
537
  },
538
538
  RSC_ACTION_PROXY_ALIAS: function() {
539
539
  return k;
@@ -560,16 +560,16 @@ function pr() {
560
560
  return F;
561
561
  },
562
562
  SERVER_RUNTIME: function() {
563
- return _n;
563
+ return yn;
564
564
  },
565
565
  SSG_FALLBACK_EXPORT_ERROR: function() {
566
- return hn;
566
+ return _n;
567
567
  },
568
568
  SSG_GET_INITIAL_PROPS_CONFLICT: function() {
569
569
  return N;
570
570
  },
571
571
  STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR: function() {
572
- return pn;
572
+ return hn;
573
573
  },
574
574
  UNSTABLE_REVALIDATE_RENAME_ERROR: function() {
575
575
  return z;
@@ -581,13 +581,13 @@ function pr() {
581
581
  return G;
582
582
  }
583
583
  });
584
- 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", k = "private-next-rsc-server-reference", fn = "private-next-rsc-action-encryption", A = "private-next-rsc-action-client-wrapper", j = "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", N = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", P = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", F = "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", I = "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 = [
584
+ 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", pn = "private-next-app-dir", D = "private-next-rsc-mod-ref-proxy", O = "private-next-rsc-action-validate", k = "private-next-rsc-server-reference", mn = "private-next-rsc-action-encryption", A = "private-next-rsc-action-client-wrapper", j = "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", N = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", P = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", F = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", hn = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", I = "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`?", gn = "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", _n = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", vn = [
585
585
  "app",
586
586
  "pages",
587
587
  "components",
588
588
  "lib",
589
589
  "src"
590
- ], _n = {
590
+ ], yn = {
591
591
  edge: "edge",
592
592
  experimentalEdge: "experimental-edge",
593
593
  nodejs: "nodejs"
@@ -661,7 +661,7 @@ function qt() {
661
661
  return o;
662
662
  }
663
663
  });
664
- let n = pr();
664
+ let n = dr();
665
665
  function r(e) {
666
666
  let t = new Headers();
667
667
  for (let [n, r] of Object.entries(e)) {
@@ -707,7 +707,7 @@ function qt() {
707
707
  })(qe)), qe;
708
708
  }
709
709
  var Fe = {}, Rt;
710
- function mr() {
710
+ function hr() {
711
711
  return Rt || (Rt = 1, (function(e) {
712
712
  Object.defineProperty(e, "__esModule", { value: !0 });
713
713
  function t(e, t) {
@@ -752,7 +752,7 @@ function mr() {
752
752
  })(Fe)), Fe;
753
753
  }
754
754
  var Be = {}, Ge, Pt;
755
- function _r() {
755
+ function fr() {
756
756
  if (Pt) return Ge;
757
757
  Pt = 1;
758
758
  var e = Object.defineProperty, t = Object.getOwnPropertyDescriptor, n = Object.getOwnPropertyNames, r = Object.prototype.hasOwnProperty, i = (t, n) => {
@@ -1003,11 +1003,11 @@ function $e() {
1003
1003
  return n.stringifyCookie;
1004
1004
  }
1005
1005
  });
1006
- let n = _r();
1006
+ let n = fr();
1007
1007
  })(Be)), Be;
1008
1008
  }
1009
1009
  var Tt;
1010
- function br() {
1010
+ function pr() {
1011
1011
  return Tt || (Tt = 1, (function(e) {
1012
1012
  Object.defineProperty(e, "__esModule", { value: !0 });
1013
1013
  function t(e, t) {
@@ -1024,7 +1024,7 @@ function br() {
1024
1024
  return s;
1025
1025
  }
1026
1026
  });
1027
- let n = jt(), r = qt(), i = mr(), a = $e(), o = /* @__PURE__ */ Symbol("internal request");
1027
+ let n = jt(), r = qt(), i = hr(), a = $e(), o = /* @__PURE__ */ Symbol("internal request");
1028
1028
  class s extends Request {
1029
1029
  constructor(e, t = {}) {
1030
1030
  let i = typeof e != "string" && "url" in e ? e.url : String(e);
@@ -1087,9 +1087,9 @@ function br() {
1087
1087
  }
1088
1088
  })(Te)), Te;
1089
1089
  }
1090
- var Xe = {}, We = {}, It;
1091
- function gr() {
1092
- return It || (It = 1, (function(e) {
1090
+ var Xe = {}, We = {}, St;
1091
+ function mr() {
1092
+ return St || (St = 1, (function(e) {
1093
1093
  Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "ReflectAdapter", {
1094
1094
  enumerable: !0,
1095
1095
  get: function() {
@@ -1113,16 +1113,16 @@ function gr() {
1113
1113
  }
1114
1114
  })(We)), We;
1115
1115
  }
1116
- var St;
1117
- function wr() {
1118
- return St || (St = 1, (function(e) {
1116
+ var It;
1117
+ function _r() {
1118
+ return It || (It = 1, (function(e) {
1119
1119
  Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "NextResponse", {
1120
1120
  enumerable: !0,
1121
1121
  get: function() {
1122
1122
  return l;
1123
1123
  }
1124
1124
  });
1125
- let t = $e(), n = jt(), r = qt(), i = gr(), a = $e(), o = /* @__PURE__ */ Symbol("internal response"), s = /* @__PURE__ */ new Set([
1125
+ let t = $e(), n = jt(), r = qt(), i = mr(), a = $e(), o = /* @__PURE__ */ Symbol("internal response"), s = /* @__PURE__ */ new Set([
1126
1126
  301,
1127
1127
  302,
1128
1128
  303,
@@ -1208,7 +1208,7 @@ function wr() {
1208
1208
  })(Xe)), Xe;
1209
1209
  }
1210
1210
  var ze = {}, At;
1211
- function Er() {
1211
+ function br() {
1212
1212
  return At || (At = 1, (function(e) {
1213
1213
  Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "ImageResponse", {
1214
1214
  enumerable: !0,
@@ -1222,11 +1222,11 @@ function Er() {
1222
1222
  })(ze)), ze;
1223
1223
  }
1224
1224
  var Ve = {}, Ke = { exports: {} }, Ot;
1225
- function vr() {
1225
+ function gr() {
1226
1226
  return Ot || (Ot = 1, (() => {
1227
1227
  var e = { 226: function(e, t) {
1228
1228
  (function(n, r) {
1229
- 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", k = "Chrome", fn = "Edge", A = "Firefox", j = "Google", N = "Huawei", P = "LG", F = "Microsoft", pn = "Motorola", I = "Opera", R = "Samsung", mn = "Sharp", z = "Sony", B = "Xiaomi", V = "Zebra", hn = "Facebook", gn = "Chromium OS", _n = "Mac OS", H = function(e, t) {
1229
+ 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", pn = "ASUS", D = "BlackBerry", O = "Browser", k = "Chrome", mn = "Edge", A = "Firefox", j = "Google", N = "Huawei", P = "LG", F = "Microsoft", hn = "Motorola", I = "Opera", R = "Samsung", gn = "Sharp", z = "Sony", B = "Xiaomi", V = "Zebra", _n = "Facebook", vn = "Chromium OS", yn = "Mac OS", H = function(e, t) {
1230
1230
  var n = {};
1231
1231
  for (var r in e) t[r] && t[r].length % 2 == 0 ? n[r] = t[r].concat(e[r]) : n[r] = e[r];
1232
1232
  return n;
@@ -1237,7 +1237,7 @@ function vr() {
1237
1237
  return typeof e === u ? q(t).indexOf(q(e)) !== -1 : !1;
1238
1238
  }, q = function(e) {
1239
1239
  return e.toLowerCase();
1240
- }, vn = function(e) {
1240
+ }, bn = function(e) {
1241
1241
  return typeof e === u ? e.replace(/[^\d\.]/g, a).split(".")[0] : r;
1242
1242
  }, J = function(e, t) {
1243
1243
  if (typeof e === u) return e = e.replace(/^\s\s*/, a), typeof t === c ? e : e.substring(0, w);
@@ -1247,12 +1247,12 @@ function vr() {
1247
1247
  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;
1248
1248
  n += 2;
1249
1249
  }
1250
- }, yn = function(e, t) {
1250
+ }, xn = function(e, t) {
1251
1251
  for (var n in t) if (typeof t[n] === l && t[n].length > 0) {
1252
1252
  for (var i = 0; i < t[n].length; i++) if (G(t[n][i], e)) return n === o ? r : n;
1253
1253
  } else if (G(t[n], e)) return n === o ? r : n;
1254
1254
  return e;
1255
- }, bn = {
1255
+ }, Sn = {
1256
1256
  "1.0": "/8",
1257
1257
  1.2: "/1",
1258
1258
  1.3: "/3",
@@ -1261,7 +1261,7 @@ function vr() {
1261
1261
  "2.0.3": "/417",
1262
1262
  "2.0.4": "/419",
1263
1263
  "?": "/"
1264
- }, xn = {
1264
+ }, Cn = {
1265
1265
  ME: "4.90",
1266
1266
  "NT 3.11": "NT3.51",
1267
1267
  "NT 4.0": "NT4.0",
@@ -1273,7 +1273,7 @@ function vr() {
1273
1273
  8.1: "NT 6.3",
1274
1274
  10: ["NT 6.4", "NT 10.0"],
1275
1275
  RT: "ARM"
1276
- }, Sn = {
1276
+ }, wn = {
1277
1277
  browser: [
1278
1278
  [/\b(?:crmo|crios)\/([\w\.]+)/i],
1279
1279
  [g, [p, "Chrome"]],
@@ -1359,7 +1359,7 @@ function vr() {
1359
1359
  ],
1360
1360
  [p],
1361
1361
  [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],
1362
- [[p, hn], g],
1362
+ [[p, _n], g],
1363
1363
  [
1364
1364
  /(kakao(?:talk|story))[\/ ]([\w\.]+)/i,
1365
1365
  /(naver)\(.*?(\d+\.[\w\.]+).*\)/i,
@@ -1387,8 +1387,8 @@ function vr() {
1387
1387
  [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],
1388
1388
  [p, [
1389
1389
  g,
1390
- yn,
1391
- bn
1390
+ xn,
1391
+ Sn
1392
1392
  ]],
1393
1393
  [/(webkit|khtml)\/([\w\.]+)/i],
1394
1394
  [p, g],
@@ -1478,7 +1478,7 @@ function vr() {
1478
1478
  [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],
1479
1479
  [
1480
1480
  f,
1481
- [h, mn],
1481
+ [h, gn],
1482
1482
  [m, y]
1483
1483
  ],
1484
1484
  [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],
@@ -1544,13 +1544,13 @@ function vr() {
1544
1544
  ],
1545
1545
  [
1546
1546
  f,
1547
- [h, pn],
1547
+ [h, hn],
1548
1548
  [m, y]
1549
1549
  ],
1550
1550
  [/\b(mz60\d|xoom[2 ]{0,2}) build\//i],
1551
1551
  [
1552
1552
  f,
1553
- [h, pn],
1553
+ [h, hn],
1554
1554
  [m, b]
1555
1555
  ],
1556
1556
  [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],
@@ -1650,13 +1650,13 @@ function vr() {
1650
1650
  [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],
1651
1651
  [
1652
1652
  f,
1653
- [h, dn],
1653
+ [h, pn],
1654
1654
  [m, b]
1655
1655
  ],
1656
1656
  [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],
1657
1657
  [
1658
1658
  f,
1659
- [h, dn],
1659
+ [h, pn],
1660
1660
  [m, y]
1661
1661
  ],
1662
1662
  [/(nexus 9)/i],
@@ -1929,7 +1929,7 @@ function vr() {
1929
1929
  [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i],
1930
1930
  [
1931
1931
  f,
1932
- [h, mn],
1932
+ [h, gn],
1933
1933
  [m, x]
1934
1934
  ],
1935
1935
  [/(bravia[\w ]+)( bui|\))/i],
@@ -2009,7 +2009,7 @@ function vr() {
2009
2009
  [/(quest( 2| pro)?)/i],
2010
2010
  [
2011
2011
  f,
2012
- [h, hn],
2012
+ [h, _n],
2013
2013
  [m, S]
2014
2014
  ],
2015
2015
  [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],
@@ -2033,7 +2033,7 @@ function vr() {
2033
2033
  ],
2034
2034
  engine: [
2035
2035
  [/windows.+ edge\/([\w\.]+)/i],
2036
- [g, [p, fn + "HTML"]],
2036
+ [g, [p, mn + "HTML"]],
2037
2037
  [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],
2038
2038
  [g, [p, "Blink"]],
2039
2039
  [
@@ -2058,14 +2058,14 @@ function vr() {
2058
2058
  ],
2059
2059
  [p, [
2060
2060
  g,
2061
- yn,
2062
- xn
2061
+ xn,
2062
+ Cn
2063
2063
  ]],
2064
2064
  [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],
2065
2065
  [[p, "Windows"], [
2066
2066
  g,
2067
- yn,
2068
- xn
2067
+ xn,
2068
+ Cn
2069
2069
  ]],
2070
2070
  [
2071
2071
  /ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,
@@ -2078,7 +2078,7 @@ function vr() {
2078
2078
  "."
2079
2079
  ], [p, "iOS"]],
2080
2080
  [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i],
2081
- [[p, _n], [
2081
+ [[p, yn], [
2082
2082
  g,
2083
2083
  /_/g,
2084
2084
  "."
@@ -2105,7 +2105,7 @@ function vr() {
2105
2105
  [/crkey\/([\d\.]+)/i],
2106
2106
  [g, [p, k + "cast"]],
2107
2107
  [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],
2108
- [[p, gn], g],
2108
+ [[p, vn], g],
2109
2109
  [
2110
2110
  /panasonic;(viera)/i,
2111
2111
  /(netrange)mmh/i,
@@ -2134,10 +2134,10 @@ function vr() {
2134
2134
  ]
2135
2135
  }, Z = function(e, t) {
2136
2136
  if (typeof e === l && (t = e, e = r), !(this instanceof Z)) return new Z(e, t).getResult();
2137
- 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;
2137
+ 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(wn, t) : wn, S = i && i.userAgent == o;
2138
2138
  return this.getBrowser = function() {
2139
2139
  var e = {};
2140
- return e[p] = r, e[g] = r, X.call(e, o, x.browser), e[d] = vn(e[g]), S && i && i.brave && typeof i.brave.isBrave == s && (e[p] = "Brave"), e;
2140
+ return e[p] = r, e[g] = r, X.call(e, o, x.browser), e[d] = bn(e[g]), S && i && i.brave && typeof i.brave.isBrave == s && (e[p] = "Brave"), e;
2141
2141
  }, this.getCPU = function() {
2142
2142
  var e = {};
2143
2143
  return e[_] = r, X.call(e, o, x.cpu), e;
@@ -2149,7 +2149,7 @@ function vr() {
2149
2149
  return e[p] = r, e[g] = r, X.call(e, o, x.engine), e;
2150
2150
  }, this.getOS = function() {
2151
2151
  var e = {};
2152
- return e[p] = r, e[g] = r, X.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;
2152
+ return e[p] = r, e[g] = r, X.call(e, o, x.os), S && !e[p] && v && v.platform != "Unknown" && (e[p] = v.platform.replace(/chrome os/i, vn).replace(/macos/i, yn)), e;
2153
2153
  }, this.getResult = function() {
2154
2154
  return {
2155
2155
  ua: this.getUA(),
@@ -2228,7 +2228,7 @@ function Nt() {
2228
2228
  return a;
2229
2229
  }
2230
2230
  });
2231
- let n = /* @__PURE__ */ r(vr());
2231
+ let n = /* @__PURE__ */ r(gr());
2232
2232
  function r(e) {
2233
2233
  return e && e.__esModule ? e : { default: e };
2234
2234
  }
@@ -2247,7 +2247,7 @@ function Nt() {
2247
2247
  })(Ve)), Ve;
2248
2248
  }
2249
2249
  var Ye = {}, Ct;
2250
- function Rr() {
2250
+ function wr() {
2251
2251
  return Ct || (Ct = 1, (function(e) {
2252
2252
  Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "URLPattern", {
2253
2253
  enumerable: !0,
@@ -2259,20 +2259,20 @@ function Rr() {
2259
2259
  })(Ye)), Ye;
2260
2260
  }
2261
2261
  var Lt;
2262
- function Pr() {
2262
+ function Er() {
2263
2263
  return Lt || (Lt = 1, (function(e, t) {
2264
2264
  let n = {
2265
- NextRequest: br().NextRequest,
2266
- NextResponse: wr().NextResponse,
2267
- ImageResponse: Er().ImageResponse,
2265
+ NextRequest: pr().NextRequest,
2266
+ NextResponse: _r().NextResponse,
2267
+ ImageResponse: br().ImageResponse,
2268
2268
  userAgentFromString: Nt().userAgentFromString,
2269
2269
  userAgent: Nt().userAgent,
2270
- URLPattern: Rr().URLPattern
2270
+ URLPattern: wr().URLPattern
2271
2271
  };
2272
2272
  e.exports = n, t.NextRequest = n.NextRequest, t.NextResponse = n.NextResponse, t.ImageResponse = n.ImageResponse, t.userAgentFromString = n.userAgentFromString, t.userAgent = n.userAgent, t.URLPattern = n.URLPattern;
2273
2273
  })(we, we.exports)), we.exports;
2274
2274
  }
2275
- Pr();
2275
+ Er();
2276
2276
  var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "logout", e))(Qe || {}), Je = {
2277
2277
  login: "login",
2278
2278
  logout: "logout",
@@ -2281,14 +2281,14 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
2281
2281
  applicationJson: "application/json",
2282
2282
  multipartFormData: "multipart/form-data",
2283
2283
  applicationXwwwFormUrlencoded: "application/x-www-form-urlencoded"
2284
- }, zr = class {
2284
+ }, Gr = class {
2285
2285
  config;
2286
2286
  http;
2287
2287
  adapter;
2288
2288
  constructor({ config: e, adapter: t, storage: n }) {
2289
2289
  this.config = e;
2290
- let r = Ar(n.headers);
2291
- (!r.deviceId || r.deviceId.trim().length === 0) && (r = Or(n.cookies)), this.http = new Lr({
2290
+ let r = Tr(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;
2291
+ (!i || !a || !o || !s) && (r = Sr(n.cookies)), this.http = new xr({
2292
2292
  ...r,
2293
2293
  userType: e.userType,
2294
2294
  helloURL: e.helloURL
@@ -2311,7 +2311,7 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
2311
2311
  }[n], i = e.cookies;
2312
2312
  if (this.http.setHttpOptsToCookies(i), !r || r.length === 0) return this.createErrorResponse(404, "API not found", i);
2313
2313
  let a;
2314
- if ((r.startsWith("admin/") || r.startsWith("api/")) && (a = xr(i), L.debug(a, "token"), !a || a.username.length === 0 || a.token.length === 0)) return this.createErrorResponse(409, "Authentication required", i);
2314
+ if ((r.startsWith("admin/") || r.startsWith("api/")) && (a = Ir(i), L.debug(a, "token"), !a || a.username.length === 0 || a.token.length === 0)) return this.createErrorResponse(409, "Authentication required", i);
2315
2315
  L.debug({ "content-type": e.contentType }, "Content-Type"), L.debug({
2316
2316
  hostUrl: r,
2317
2317
  token: a ? { ...a } : ""
@@ -2373,10 +2373,10 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
2373
2373
  switch (e) {
2374
2374
  case Je[Qe[0]]:
2375
2375
  let e = t.data;
2376
- Nr(e, a);
2376
+ Ar(e, a);
2377
2377
  break;
2378
2378
  case Je[Qe[1]]:
2379
- a.cleanCookies = (e) => Cr(e);
2379
+ a.cleanCookies = (e) => Or(e);
2380
2380
  break;
2381
2381
  }
2382
2382
  n.onHandlerSuccess && n.onHandlerSuccess({
@@ -2407,7 +2407,7 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
2407
2407
  t[e] = { value: n };
2408
2408
  }), t;
2409
2409
  }
2410
- }, Tr = "zh-CN", U = {
2410
+ }, Rr = "zh-CN", U = {
2411
2411
  IBOOT_DEVICE_ID: "dvid",
2412
2412
  IBOOT_LANG: "lang",
2413
2413
  IBOOT_WEBSITE_ID: "wid",
@@ -2419,22 +2419,22 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
2419
2419
  LANG: "Lang",
2420
2420
  WEBSITE_ID: "Website-Id",
2421
2421
  WEBSITE_NO: "Website-No"
2422
- }, Ar = (e) => {
2422
+ }, Tr = (e) => {
2423
2423
  if (e.get) {
2424
2424
  let t = e.get(K.DEVICE_ID), n = e.get(K.LANG), r = e.get(K.WEBSITE_ID), i = e.get(K.WEBSITE_NO), a = {};
2425
2425
  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;
2426
2426
  }
2427
2427
  throw Error("The get method of IStorage has not been implemented.");
2428
- }, Or = (e) => {
2428
+ }, Sr = (e) => {
2429
2429
  if (e.get) {
2430
2430
  let t = e.get(U.IBOOT_DEVICE_ID), n = e.get(U.IBOOT_LANG), r = e.get(U.IBOOT_WEBSITE_ID), i = e.get(U.IBOOT_WEBSITE_NO), a = {};
2431
2431
  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;
2432
2432
  }
2433
2433
  throw Error("The get method of ICookies has not been implemented.");
2434
- }, Qr = (e, t) => {
2434
+ }, Kr = (e, t) => {
2435
2435
  if (e.set) t.deviceId && e.set(U.IBOOT_DEVICE_ID, t.deviceId), t.lang && e.set(U.IBOOT_LANG, t.lang), t.websiteId && e.set(U.IBOOT_WEBSITE_ID, t.websiteId), t.websiteNo && e.set(U.IBOOT_WEBSITE_NO, t.websiteNo);
2436
2436
  else throw Error("The set method of ICookies has not been implemented.");
2437
- }, xr = (e) => {
2437
+ }, Ir = (e) => {
2438
2438
  if (e.get) {
2439
2439
  let t = e[U.IBOOT_USER];
2440
2440
  if (t && t.length > 0) {
@@ -2455,7 +2455,7 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
2455
2455
  maxAge: -1,
2456
2456
  httpOnly: !0,
2457
2457
  path: "/"
2458
- }, Nr = (e, t) => {
2458
+ }, Ar = (e, t) => {
2459
2459
  let { id: n, name: r, username: i, nickname: a, headImg: o, token: s, lastLoginTime: c, deviceId: l, userType: u, mustChangePwd: d } = e, f = {
2460
2460
  id: n,
2461
2461
  name: r,
@@ -2477,11 +2477,11 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
2477
2477
  value: JSON.stringify(f),
2478
2478
  options: Ut()
2479
2479
  };
2480
- }, Cr = (e) => {
2480
+ }, Or = (e) => {
2481
2481
  if (!e.set) throw Error("cookies set function is undefined");
2482
2482
  if (e.set(U.IBOOT_TOKEN, "", Ee), e.set(U.IBOOT_USER, "", Ee), !e.delete) throw Error("cookies delete function is undefined");
2483
2483
  e.delete(U.IBOOT_TOKEN, Ee), e.delete(U.IBOOT_USER, Ee);
2484
- }, Lr = class {
2484
+ }, xr = class {
2485
2485
  baseUrl;
2486
2486
  helloMethod;
2487
2487
  apiKey;
@@ -2493,7 +2493,7 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
2493
2493
  websiteId;
2494
2494
  websiteNo;
2495
2495
  constructor(e) {
2496
- process.env.APP_ENV === "production" || L.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 ?? tr.TYPE_MGT, this.deviceId = e.deviceId ?? ir(), this.lang = e.lang ?? Tr, this.websiteId = e.websiteId, this.websiteNo = e.websiteNo;
2496
+ process.env.APP_ENV === "production" || L.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 ?? Qt.TYPE_MGT, this.deviceId = e.deviceId ?? tr(), this.lang = e.lang ?? Rr, this.websiteId = e.websiteId, this.websiteNo = e.websiteNo;
2497
2497
  }
2498
2498
  encrypt(e) {
2499
2499
  let t = ne.enc.Utf8.parse(this.apiKey);
@@ -2521,7 +2521,7 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
2521
2521
  let n = e.get(t);
2522
2522
  n && i.push(t + "=" + n);
2523
2523
  });
2524
- let a = i.join("&"), s = Kt.md5((a + t).toLocaleUpperCase()), c = {
2524
+ let a = i.join("&"), s = Wt.md5((a + t).toLocaleUpperCase()), c = {
2525
2525
  params: a,
2526
2526
  md5: s
2527
2527
  };
@@ -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 Lr({
2659
- ...Or(e),
2660
- userType: tr.TYPE_C,
2658
+ this.http = new xr({
2659
+ ...Sr(e),
2660
+ userType: Qt.TYPE_C,
2661
2661
  helloURL
2662
2662
  });
2663
2663
  }
@@ -2667,7 +2667,7 @@ var ICMSServer = class {
2667
2667
  let t = n.headers;
2668
2668
  if (t) {
2669
2669
  let n = t["device-id"], r = t.lang, i = t["web-id"], a = t["web-no"], o = {};
2670
- n && n.length > 0 && (o.deviceId = n), r && r.length > 0 && (o.lang = r), i && i.length > 0 && (o.websiteId = i), a && a.length > 0 && (o.websiteNo = a), Qr(e, o);
2670
+ n && n.length > 0 && (o.deviceId = n), r && r.length > 0 && (o.lang = r), i && i.length > 0 && (o.websiteId = i), a && a.length > 0 && (o.websiteNo = a), Kr(e, o);
2671
2671
  }
2672
2672
  }
2673
2673
  }
@@ -2821,9 +2821,9 @@ var ICMSServer = class {
2821
2821
  throw Error(n.msg);
2822
2822
  }
2823
2823
  }, APIMAP = {};
2824
- const icmsRouter = async ({ request: e, routeAdapter: t, storage: n }) => await new zr({
2824
+ const icmsRouter = async ({ request: e, routeAdapter: t, storage: n }) => await new Gr({
2825
2825
  config: {
2826
- userType: tr.TYPE_B,
2826
+ userType: Qt.TYPE_C,
2827
2827
  APIMAP,
2828
2828
  helloURL
2829
2829
  },