icms-api 0.0.2 → 0.0.3
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.
- package/dist/icms-api.cjs.js +2 -2
- package/dist/icms-api.cjs.js.map +1 -1
- package/dist/icms-api.es.js +246 -231
- package/dist/icms-api.es.js.map +1 -1
- package/dist/icms-api.umd.js +2 -2
- package/dist/icms-api.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/icms-api.es.js
CHANGED
|
@@ -18,13 +18,28 @@ var tr = {
|
|
|
18
18
|
name: process.env.APP_NAME ?? "iBoot",
|
|
19
19
|
level: process.env.APP_ENV === "production" ? "info" : "debug",
|
|
20
20
|
nestedKey: "payload"
|
|
21
|
-
}, rr),
|
|
21
|
+
}, rr), nr = {}, 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
|
-
}
|
|
26
|
-
function
|
|
27
|
-
|
|
25
|
+
};
|
|
26
|
+
function ir() {
|
|
27
|
+
try {
|
|
28
|
+
let e = nr.networkInterfaces();
|
|
29
|
+
for (let t of Object.keys(e)) {
|
|
30
|
+
let n = e[t];
|
|
31
|
+
if (n) {
|
|
32
|
+
for (let e of n) if (e.mac && e.mac !== "00:00:00:00:00:00") return e.mac.replace(/:/g, "").toUpperCase();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return crypto.randomUUID().replace(/-/g, "").toUpperCase();
|
|
36
|
+
} catch {
|
|
37
|
+
return Dt(10);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
var we = { exports: {} }, Te = {}, Ie = {}, Se = {}, at;
|
|
41
|
+
function or() {
|
|
42
|
+
return at || (at = 1, (function(e) {
|
|
28
43
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "detectDomainLocale", {
|
|
29
44
|
enumerable: !0,
|
|
30
45
|
get: function() {
|
|
@@ -40,11 +55,11 @@ function nr() {
|
|
|
40
55
|
}
|
|
41
56
|
}
|
|
42
57
|
}
|
|
43
|
-
})(
|
|
58
|
+
})(Se)), Se;
|
|
44
59
|
}
|
|
45
|
-
var Ae = {}, Oe = {},
|
|
46
|
-
function
|
|
47
|
-
return
|
|
60
|
+
var Ae = {}, Oe = {}, ut;
|
|
61
|
+
function sr() {
|
|
62
|
+
return ut || (ut = 1, (function(e) {
|
|
48
63
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "removeTrailingSlash", {
|
|
49
64
|
enumerable: !0,
|
|
50
65
|
get: function() {
|
|
@@ -56,9 +71,9 @@ function ir() {
|
|
|
56
71
|
}
|
|
57
72
|
})(Oe)), Oe;
|
|
58
73
|
}
|
|
59
|
-
var xe = {}, Ne = {},
|
|
74
|
+
var xe = {}, Ne = {}, ct;
|
|
60
75
|
function et() {
|
|
61
|
-
return
|
|
76
|
+
return ct || (ct = 1, (function(e) {
|
|
62
77
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "parsePath", {
|
|
63
78
|
enumerable: !0,
|
|
64
79
|
get: function() {
|
|
@@ -79,9 +94,9 @@ function et() {
|
|
|
79
94
|
}
|
|
80
95
|
})(Ne)), Ne;
|
|
81
96
|
}
|
|
82
|
-
var
|
|
97
|
+
var lt;
|
|
83
98
|
function Mt() {
|
|
84
|
-
return
|
|
99
|
+
return lt || (lt = 1, (function(e) {
|
|
85
100
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "addPathPrefix", {
|
|
86
101
|
enumerable: !0,
|
|
87
102
|
get: function() {
|
|
@@ -96,9 +111,9 @@ function Mt() {
|
|
|
96
111
|
}
|
|
97
112
|
})(xe)), xe;
|
|
98
113
|
}
|
|
99
|
-
var Ce = {},
|
|
100
|
-
function
|
|
101
|
-
return
|
|
114
|
+
var Ce = {}, dt;
|
|
115
|
+
function ar() {
|
|
116
|
+
return dt || (dt = 1, (function(e) {
|
|
102
117
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "addPathSuffix", {
|
|
103
118
|
enumerable: !0,
|
|
104
119
|
get: function() {
|
|
@@ -113,9 +128,9 @@ function or() {
|
|
|
113
128
|
}
|
|
114
129
|
})(Ce)), Ce;
|
|
115
130
|
}
|
|
116
|
-
var Le = {}, ke = {},
|
|
131
|
+
var Le = {}, ke = {}, ht;
|
|
117
132
|
function tt() {
|
|
118
|
-
return
|
|
133
|
+
return ht || (ht = 1, (function(e) {
|
|
119
134
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "pathHasPrefix", {
|
|
120
135
|
enumerable: !0,
|
|
121
136
|
get: function() {
|
|
@@ -130,9 +145,9 @@ function tt() {
|
|
|
130
145
|
}
|
|
131
146
|
})(ke)), ke;
|
|
132
147
|
}
|
|
133
|
-
var
|
|
134
|
-
function
|
|
135
|
-
return
|
|
148
|
+
var ft;
|
|
149
|
+
function ur() {
|
|
150
|
+
return ft || (ft = 1, (function(e) {
|
|
136
151
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "addLocale", {
|
|
137
152
|
enumerable: !0,
|
|
138
153
|
get: function() {
|
|
@@ -147,25 +162,25 @@ function sr() {
|
|
|
147
162
|
}
|
|
148
163
|
})(Le)), Le;
|
|
149
164
|
}
|
|
150
|
-
var
|
|
151
|
-
function
|
|
152
|
-
return
|
|
165
|
+
var pt;
|
|
166
|
+
function cr() {
|
|
167
|
+
return pt || (pt = 1, (function(e) {
|
|
153
168
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "formatNextPathnameInfo", {
|
|
154
169
|
enumerable: !0,
|
|
155
170
|
get: function() {
|
|
156
171
|
return a;
|
|
157
172
|
}
|
|
158
173
|
});
|
|
159
|
-
let t =
|
|
174
|
+
let t = sr(), n = Mt(), r = ar(), i = ur();
|
|
160
175
|
function a(e) {
|
|
161
176
|
let a = (0, i.addLocale)(e.pathname, e.locale, e.buildId ? void 0 : e.defaultLocale, e.ignorePrefix);
|
|
162
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);
|
|
163
178
|
}
|
|
164
179
|
})(Ae)), Ae;
|
|
165
180
|
}
|
|
166
|
-
var Ue = {},
|
|
167
|
-
function
|
|
168
|
-
return
|
|
181
|
+
var Ue = {}, mt;
|
|
182
|
+
function lr() {
|
|
183
|
+
return mt || (mt = 1, (function(e) {
|
|
169
184
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "getHostname", {
|
|
170
185
|
enumerable: !0,
|
|
171
186
|
get: function() {
|
|
@@ -181,9 +196,9 @@ function ur() {
|
|
|
181
196
|
}
|
|
182
197
|
})(Ue)), Ue;
|
|
183
198
|
}
|
|
184
|
-
var De = {}, Me = {},
|
|
185
|
-
function
|
|
186
|
-
return
|
|
199
|
+
var De = {}, Me = {}, _t;
|
|
200
|
+
function dr() {
|
|
201
|
+
return _t || (_t = 1, (function(e) {
|
|
187
202
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "normalizeLocalePath", {
|
|
188
203
|
enumerable: !0,
|
|
189
204
|
get: function() {
|
|
@@ -199,9 +214,9 @@ function cr() {
|
|
|
199
214
|
}
|
|
200
215
|
})(Me)), Me;
|
|
201
216
|
}
|
|
202
|
-
var je = {},
|
|
203
|
-
function
|
|
204
|
-
return
|
|
217
|
+
var je = {}, bt;
|
|
218
|
+
function hr() {
|
|
219
|
+
return bt || (bt = 1, (function(e) {
|
|
205
220
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "removePathPrefix", {
|
|
206
221
|
enumerable: !0,
|
|
207
222
|
get: function() {
|
|
@@ -216,16 +231,16 @@ function lr() {
|
|
|
216
231
|
}
|
|
217
232
|
})(je)), je;
|
|
218
233
|
}
|
|
219
|
-
var
|
|
220
|
-
function
|
|
221
|
-
return
|
|
234
|
+
var gt;
|
|
235
|
+
function fr() {
|
|
236
|
+
return gt || (gt = 1, (function(e) {
|
|
222
237
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "getNextPathnameInfo", {
|
|
223
238
|
enumerable: !0,
|
|
224
239
|
get: function() {
|
|
225
240
|
return i;
|
|
226
241
|
}
|
|
227
242
|
});
|
|
228
|
-
let t =
|
|
243
|
+
let t = dr(), n = hr(), r = tt();
|
|
229
244
|
function i(e, i) {
|
|
230
245
|
let { basePath: a, i18n: o, trailingSlash: s } = i.nextConfig ?? {}, c = {
|
|
231
246
|
pathname: e,
|
|
@@ -245,16 +260,16 @@ function dr() {
|
|
|
245
260
|
}
|
|
246
261
|
})(De)), De;
|
|
247
262
|
}
|
|
248
|
-
var
|
|
263
|
+
var wt;
|
|
249
264
|
function jt() {
|
|
250
|
-
return
|
|
265
|
+
return wt || (wt = 1, (function(e) {
|
|
251
266
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "NextURL", {
|
|
252
267
|
enumerable: !0,
|
|
253
268
|
get: function() {
|
|
254
269
|
return c;
|
|
255
270
|
}
|
|
256
271
|
});
|
|
257
|
-
let t =
|
|
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)/;
|
|
258
273
|
function o(e, t) {
|
|
259
274
|
return new URL(String(e).replace(a, "localhost"), t && String(t).replace(a, "localhost"));
|
|
260
275
|
}
|
|
@@ -411,11 +426,11 @@ function jt() {
|
|
|
411
426
|
return new c(String(this), this[s].options);
|
|
412
427
|
}
|
|
413
428
|
}
|
|
414
|
-
})(
|
|
429
|
+
})(Ie)), Ie;
|
|
415
430
|
}
|
|
416
|
-
var qe = {}, He = {},
|
|
417
|
-
function
|
|
418
|
-
return
|
|
431
|
+
var qe = {}, He = {}, Et;
|
|
432
|
+
function pr() {
|
|
433
|
+
return Et || (Et = 1, (function(e) {
|
|
419
434
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
420
435
|
function t(e, t) {
|
|
421
436
|
for (var n in t) Object.defineProperty(e, n, {
|
|
@@ -428,7 +443,7 @@ function hr() {
|
|
|
428
443
|
return c;
|
|
429
444
|
},
|
|
430
445
|
APP_DIR_ALIAS: function() {
|
|
431
|
-
return
|
|
446
|
+
return D;
|
|
432
447
|
},
|
|
433
448
|
CACHE_ONE_YEAR: function() {
|
|
434
449
|
return b;
|
|
@@ -440,10 +455,10 @@ function hr() {
|
|
|
440
455
|
return hn;
|
|
441
456
|
},
|
|
442
457
|
GSP_NO_RETURNED_VALUE: function() {
|
|
443
|
-
return
|
|
458
|
+
return B;
|
|
444
459
|
},
|
|
445
460
|
GSSP_COMPONENT_MEMBER_ERROR: function() {
|
|
446
|
-
return
|
|
461
|
+
return H;
|
|
447
462
|
},
|
|
448
463
|
GSSP_NO_RETURNED_VALUE: function() {
|
|
449
464
|
return pn;
|
|
@@ -497,7 +512,7 @@ function hr() {
|
|
|
497
512
|
return n;
|
|
498
513
|
},
|
|
499
514
|
NON_STANDARD_NODE_ENV: function() {
|
|
500
|
-
return
|
|
515
|
+
return W;
|
|
501
516
|
},
|
|
502
517
|
PAGES_DIR_ALIAS: function() {
|
|
503
518
|
return w;
|
|
@@ -509,25 +524,25 @@ function hr() {
|
|
|
509
524
|
return a;
|
|
510
525
|
},
|
|
511
526
|
PUBLIC_DIR_MIDDLEWARE_CONFLICT: function() {
|
|
512
|
-
return
|
|
527
|
+
return N;
|
|
513
528
|
},
|
|
514
529
|
ROOT_DIR_ALIAS: function() {
|
|
515
530
|
return E;
|
|
516
531
|
},
|
|
517
532
|
RSC_ACTION_CLIENT_WRAPPER_ALIAS: function() {
|
|
518
|
-
return
|
|
533
|
+
return j;
|
|
519
534
|
},
|
|
520
535
|
RSC_ACTION_ENCRYPTION_ALIAS: function() {
|
|
521
|
-
return
|
|
536
|
+
return fn;
|
|
522
537
|
},
|
|
523
538
|
RSC_ACTION_PROXY_ALIAS: function() {
|
|
524
|
-
return
|
|
539
|
+
return A;
|
|
525
540
|
},
|
|
526
541
|
RSC_ACTION_VALIDATE_ALIAS: function() {
|
|
527
|
-
return
|
|
542
|
+
return k;
|
|
528
543
|
},
|
|
529
544
|
RSC_MOD_REF_PROXY_ALIAS: function() {
|
|
530
|
-
return
|
|
545
|
+
return O;
|
|
531
546
|
},
|
|
532
547
|
RSC_PREFETCH_SUFFIX: function() {
|
|
533
548
|
return o;
|
|
@@ -536,13 +551,13 @@ function hr() {
|
|
|
536
551
|
return s;
|
|
537
552
|
},
|
|
538
553
|
SERVER_PROPS_EXPORT_ERROR: function() {
|
|
539
|
-
return
|
|
554
|
+
return z;
|
|
540
555
|
},
|
|
541
556
|
SERVER_PROPS_GET_INIT_PROPS_CONFLICT: function() {
|
|
542
|
-
return
|
|
557
|
+
return F;
|
|
543
558
|
},
|
|
544
559
|
SERVER_PROPS_SSG_CONFLICT: function() {
|
|
545
|
-
return
|
|
560
|
+
return I;
|
|
546
561
|
},
|
|
547
562
|
SERVER_RUNTIME: function() {
|
|
548
563
|
return gn;
|
|
@@ -551,22 +566,22 @@ function hr() {
|
|
|
551
566
|
return mn;
|
|
552
567
|
},
|
|
553
568
|
SSG_GET_INITIAL_PROPS_CONFLICT: function() {
|
|
554
|
-
return
|
|
569
|
+
return P;
|
|
555
570
|
},
|
|
556
571
|
STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR: function() {
|
|
557
|
-
return
|
|
572
|
+
return R;
|
|
558
573
|
},
|
|
559
574
|
UNSTABLE_REVALIDATE_RENAME_ERROR: function() {
|
|
560
|
-
return
|
|
575
|
+
return V;
|
|
561
576
|
},
|
|
562
577
|
WEBPACK_LAYERS: function() {
|
|
563
|
-
return
|
|
578
|
+
return q;
|
|
564
579
|
},
|
|
565
580
|
WEBPACK_RESOURCE_QUERIES: function() {
|
|
566
|
-
return
|
|
581
|
+
return _n;
|
|
567
582
|
}
|
|
568
583
|
});
|
|
569
|
-
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",
|
|
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", D = "private-next-app-dir", O = "private-next-rsc-mod-ref-proxy", k = "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", R = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", z = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", B = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", pn = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", V = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", H = "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", W = "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", mn = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", hn = [
|
|
570
585
|
"app",
|
|
571
586
|
"pages",
|
|
572
587
|
"components",
|
|
@@ -576,7 +591,7 @@ function hr() {
|
|
|
576
591
|
edge: "edge",
|
|
577
592
|
experimentalEdge: "experimental-edge",
|
|
578
593
|
nodejs: "nodejs"
|
|
579
|
-
},
|
|
594
|
+
}, G = {
|
|
580
595
|
shared: "shared",
|
|
581
596
|
reactServerComponents: "rsc",
|
|
582
597
|
serverSideRendering: "ssr",
|
|
@@ -588,30 +603,30 @@ function hr() {
|
|
|
588
603
|
appPagesBrowser: "app-pages-browser",
|
|
589
604
|
appMetadataRoute: "app-metadata-route",
|
|
590
605
|
appRouteHandler: "app-route-handler"
|
|
591
|
-
},
|
|
592
|
-
...
|
|
606
|
+
}, q = {
|
|
607
|
+
...G,
|
|
593
608
|
GROUP: {
|
|
594
609
|
serverOnly: [
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
610
|
+
G.reactServerComponents,
|
|
611
|
+
G.actionBrowser,
|
|
612
|
+
G.appMetadataRoute,
|
|
613
|
+
G.appRouteHandler,
|
|
614
|
+
G.instrument
|
|
600
615
|
],
|
|
601
|
-
clientOnly: [
|
|
602
|
-
nonClientServerTarget: [
|
|
616
|
+
clientOnly: [G.serverSideRendering, G.appPagesBrowser],
|
|
617
|
+
nonClientServerTarget: [G.middleware, G.api],
|
|
603
618
|
app: [
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
619
|
+
G.reactServerComponents,
|
|
620
|
+
G.actionBrowser,
|
|
621
|
+
G.appMetadataRoute,
|
|
622
|
+
G.appRouteHandler,
|
|
623
|
+
G.serverSideRendering,
|
|
624
|
+
G.appPagesBrowser,
|
|
625
|
+
G.shared,
|
|
626
|
+
G.instrument
|
|
612
627
|
]
|
|
613
628
|
}
|
|
614
|
-
},
|
|
629
|
+
}, _n = {
|
|
615
630
|
edgeSSREntry: "__next_edge_ssr_entry__",
|
|
616
631
|
metadata: "__next_metadata__",
|
|
617
632
|
metadataRoute: "__next_metadata_route__",
|
|
@@ -619,9 +634,9 @@ function hr() {
|
|
|
619
634
|
};
|
|
620
635
|
})(He)), He;
|
|
621
636
|
}
|
|
622
|
-
var
|
|
637
|
+
var vt;
|
|
623
638
|
function qt() {
|
|
624
|
-
return
|
|
639
|
+
return vt || (vt = 1, (function(e) {
|
|
625
640
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
626
641
|
function t(e, t) {
|
|
627
642
|
for (var n in t) Object.defineProperty(e, n, {
|
|
@@ -646,7 +661,7 @@ function qt() {
|
|
|
646
661
|
return o;
|
|
647
662
|
}
|
|
648
663
|
});
|
|
649
|
-
let n =
|
|
664
|
+
let n = pr();
|
|
650
665
|
function r(e) {
|
|
651
666
|
let t = new Headers();
|
|
652
667
|
for (let [n, r] of Object.entries(e)) {
|
|
@@ -691,9 +706,9 @@ function qt() {
|
|
|
691
706
|
}
|
|
692
707
|
})(qe)), qe;
|
|
693
708
|
}
|
|
694
|
-
var Fe = {},
|
|
695
|
-
function
|
|
696
|
-
return
|
|
709
|
+
var Fe = {}, Rt;
|
|
710
|
+
function mr() {
|
|
711
|
+
return Rt || (Rt = 1, (function(e) {
|
|
697
712
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
698
713
|
function t(e, t) {
|
|
699
714
|
for (var n in t) Object.defineProperty(e, n, {
|
|
@@ -736,10 +751,10 @@ function fr() {
|
|
|
736
751
|
}
|
|
737
752
|
})(Fe)), Fe;
|
|
738
753
|
}
|
|
739
|
-
var Be = {}, Ge,
|
|
740
|
-
function
|
|
741
|
-
if (
|
|
742
|
-
|
|
754
|
+
var Be = {}, Ge, Pt;
|
|
755
|
+
function _r() {
|
|
756
|
+
if (Pt) return Ge;
|
|
757
|
+
Pt = 1;
|
|
743
758
|
var e = Object.defineProperty, t = Object.getOwnPropertyDescriptor, n = Object.getOwnPropertyNames, r = Object.prototype.hasOwnProperty, i = (t, n) => {
|
|
744
759
|
for (var r in n) e(t, r, {
|
|
745
760
|
get: n[r],
|
|
@@ -967,9 +982,9 @@ function pr() {
|
|
|
967
982
|
}
|
|
968
983
|
return Ge;
|
|
969
984
|
}
|
|
970
|
-
var
|
|
985
|
+
var yt;
|
|
971
986
|
function $e() {
|
|
972
|
-
return
|
|
987
|
+
return yt || (yt = 1, (function(e) {
|
|
973
988
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
974
989
|
function t(e, t) {
|
|
975
990
|
for (var n in t) Object.defineProperty(e, n, {
|
|
@@ -988,12 +1003,12 @@ function $e() {
|
|
|
988
1003
|
return n.stringifyCookie;
|
|
989
1004
|
}
|
|
990
1005
|
});
|
|
991
|
-
let n =
|
|
1006
|
+
let n = _r();
|
|
992
1007
|
})(Be)), Be;
|
|
993
1008
|
}
|
|
994
|
-
var
|
|
995
|
-
function
|
|
996
|
-
return
|
|
1009
|
+
var Tt;
|
|
1010
|
+
function br() {
|
|
1011
|
+
return Tt || (Tt = 1, (function(e) {
|
|
997
1012
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
998
1013
|
function t(e, t) {
|
|
999
1014
|
for (var n in t) Object.defineProperty(e, n, {
|
|
@@ -1009,7 +1024,7 @@ function mr() {
|
|
|
1009
1024
|
return s;
|
|
1010
1025
|
}
|
|
1011
1026
|
});
|
|
1012
|
-
let n = jt(), r = qt(), i =
|
|
1027
|
+
let n = jt(), r = qt(), i = mr(), a = $e(), o = /* @__PURE__ */ Symbol("internal request");
|
|
1013
1028
|
class s extends Request {
|
|
1014
1029
|
constructor(e, t = {}) {
|
|
1015
1030
|
let i = typeof e != "string" && "url" in e ? e.url : String(e);
|
|
@@ -1073,7 +1088,7 @@ function mr() {
|
|
|
1073
1088
|
})(Te)), Te;
|
|
1074
1089
|
}
|
|
1075
1090
|
var Xe = {}, We = {}, It;
|
|
1076
|
-
function
|
|
1091
|
+
function gr() {
|
|
1077
1092
|
return It || (It = 1, (function(e) {
|
|
1078
1093
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "ReflectAdapter", {
|
|
1079
1094
|
enumerable: !0,
|
|
@@ -1098,16 +1113,16 @@ function _r() {
|
|
|
1098
1113
|
}
|
|
1099
1114
|
})(We)), We;
|
|
1100
1115
|
}
|
|
1101
|
-
var
|
|
1102
|
-
function
|
|
1103
|
-
return
|
|
1116
|
+
var St;
|
|
1117
|
+
function wr() {
|
|
1118
|
+
return St || (St = 1, (function(e) {
|
|
1104
1119
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "NextResponse", {
|
|
1105
1120
|
enumerable: !0,
|
|
1106
1121
|
get: function() {
|
|
1107
1122
|
return l;
|
|
1108
1123
|
}
|
|
1109
1124
|
});
|
|
1110
|
-
let t = $e(), n = jt(), r = qt(), i =
|
|
1125
|
+
let t = $e(), n = jt(), r = qt(), i = gr(), a = $e(), o = /* @__PURE__ */ Symbol("internal response"), s = /* @__PURE__ */ new Set([
|
|
1111
1126
|
301,
|
|
1112
1127
|
302,
|
|
1113
1128
|
303,
|
|
@@ -1192,9 +1207,9 @@ function br() {
|
|
|
1192
1207
|
}
|
|
1193
1208
|
})(Xe)), Xe;
|
|
1194
1209
|
}
|
|
1195
|
-
var ze = {},
|
|
1196
|
-
function
|
|
1197
|
-
return
|
|
1210
|
+
var ze = {}, At;
|
|
1211
|
+
function Er() {
|
|
1212
|
+
return At || (At = 1, (function(e) {
|
|
1198
1213
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "ImageResponse", {
|
|
1199
1214
|
enumerable: !0,
|
|
1200
1215
|
get: function() {
|
|
@@ -1206,25 +1221,25 @@ function gr() {
|
|
|
1206
1221
|
}
|
|
1207
1222
|
})(ze)), ze;
|
|
1208
1223
|
}
|
|
1209
|
-
var Ve = {}, Ke = { exports: {} },
|
|
1210
|
-
function
|
|
1211
|
-
return
|
|
1224
|
+
var Ve = {}, Ke = { exports: {} }, Ot;
|
|
1225
|
+
function vr() {
|
|
1226
|
+
return Ot || (Ot = 1, (() => {
|
|
1212
1227
|
var e = { 226: function(e, t) {
|
|
1213
1228
|
(function(n, r) {
|
|
1214
|
-
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",
|
|
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", D = "ASUS", O = "BlackBerry", k = "Browser", A = "Chrome", fn = "Edge", j = "Firefox", N = "Google", P = "Huawei", F = "LG", I = "Microsoft", R = "Motorola", z = "Opera", B = "Samsung", pn = "Sharp", V = "Sony", H = "Xiaomi", W = "Zebra", mn = "Facebook", hn = "Chromium OS", gn = "Mac OS", G = function(e, t) {
|
|
1215
1230
|
var n = {};
|
|
1216
1231
|
for (var r in e) t[r] && t[r].length % 2 == 0 ? n[r] = t[r].concat(e[r]) : n[r] = e[r];
|
|
1217
1232
|
return n;
|
|
1218
|
-
},
|
|
1233
|
+
}, q = function(e) {
|
|
1219
1234
|
for (var t = {}, n = 0; n < e.length; n++) t[e[n].toUpperCase()] = e[n];
|
|
1220
1235
|
return t;
|
|
1221
|
-
},
|
|
1222
|
-
return typeof e === u ?
|
|
1223
|
-
},
|
|
1236
|
+
}, _n = function(e, t) {
|
|
1237
|
+
return typeof e === u ? J(t).indexOf(J(e)) !== -1 : !1;
|
|
1238
|
+
}, J = function(e) {
|
|
1224
1239
|
return e.toLowerCase();
|
|
1225
|
-
},
|
|
1240
|
+
}, vn = function(e) {
|
|
1226
1241
|
return typeof e === u ? e.replace(/[^\d\.]/g, a).split(".")[0] : r;
|
|
1227
|
-
},
|
|
1242
|
+
}, yn = function(e, t) {
|
|
1228
1243
|
if (typeof e === u) return e = e.replace(/^\s\s*/, a), typeof t === c ? e : e.substring(0, w);
|
|
1229
1244
|
}, X = function(e, t) {
|
|
1230
1245
|
for (var n = 0, i, a, o, c, u, d; n < t.length && !u;) {
|
|
@@ -1232,12 +1247,12 @@ function wr() {
|
|
|
1232
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;
|
|
1233
1248
|
n += 2;
|
|
1234
1249
|
}
|
|
1235
|
-
},
|
|
1250
|
+
}, bn = function(e, t) {
|
|
1236
1251
|
for (var n in t) if (typeof t[n] === l && t[n].length > 0) {
|
|
1237
|
-
for (var i = 0; i < t[n].length; i++) if (
|
|
1238
|
-
} else if (
|
|
1252
|
+
for (var i = 0; i < t[n].length; i++) if (_n(t[n][i], e)) return n === o ? r : n;
|
|
1253
|
+
} else if (_n(t[n], e)) return n === o ? r : n;
|
|
1239
1254
|
return e;
|
|
1240
|
-
},
|
|
1255
|
+
}, xn = {
|
|
1241
1256
|
"1.0": "/8",
|
|
1242
1257
|
1.2: "/1",
|
|
1243
1258
|
1.3: "/3",
|
|
@@ -1246,7 +1261,7 @@ function wr() {
|
|
|
1246
1261
|
"2.0.3": "/417",
|
|
1247
1262
|
"2.0.4": "/419",
|
|
1248
1263
|
"?": "/"
|
|
1249
|
-
},
|
|
1264
|
+
}, Sn = {
|
|
1250
1265
|
ME: "4.90",
|
|
1251
1266
|
"NT 3.11": "NT3.51",
|
|
1252
1267
|
"NT 4.0": "NT4.0",
|
|
@@ -1258,7 +1273,7 @@ function wr() {
|
|
|
1258
1273
|
8.1: "NT 6.3",
|
|
1259
1274
|
10: ["NT 6.4", "NT 10.0"],
|
|
1260
1275
|
RT: "ARM"
|
|
1261
|
-
},
|
|
1276
|
+
}, Cn = {
|
|
1262
1277
|
browser: [
|
|
1263
1278
|
[/\b(?:crmo|crios)\/([\w\.]+)/i],
|
|
1264
1279
|
[g, [p, "Chrome"]],
|
|
@@ -1271,9 +1286,9 @@ function wr() {
|
|
|
1271
1286
|
],
|
|
1272
1287
|
[p, g],
|
|
1273
1288
|
[/opios[\/ ]+([\w\.]+)/i],
|
|
1274
|
-
[g, [p,
|
|
1289
|
+
[g, [p, z + " Mini"]],
|
|
1275
1290
|
[/\bopr\/([\w\.]+)/i],
|
|
1276
|
-
[g, [p,
|
|
1291
|
+
[g, [p, z]],
|
|
1277
1292
|
[
|
|
1278
1293
|
/(kindle)\/([\w\.]+)/i,
|
|
1279
1294
|
/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,
|
|
@@ -1286,7 +1301,7 @@ function wr() {
|
|
|
1286
1301
|
],
|
|
1287
1302
|
[p, g],
|
|
1288
1303
|
[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],
|
|
1289
|
-
[g, [p, "UC" +
|
|
1304
|
+
[g, [p, "UC" + k]],
|
|
1290
1305
|
[/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i],
|
|
1291
1306
|
[g, [p, "WeChat(Win) Desktop"]],
|
|
1292
1307
|
[/micromessenger\/([\w\.]+)/i],
|
|
@@ -1301,29 +1316,29 @@ function wr() {
|
|
|
1301
1316
|
[[
|
|
1302
1317
|
p,
|
|
1303
1318
|
/(.+)/,
|
|
1304
|
-
"$1 Secure " +
|
|
1319
|
+
"$1 Secure " + k
|
|
1305
1320
|
], g],
|
|
1306
1321
|
[/\bfocus\/([\w\.]+)/i],
|
|
1307
|
-
[g, [p,
|
|
1322
|
+
[g, [p, j + " Focus"]],
|
|
1308
1323
|
[/\bopt\/([\w\.]+)/i],
|
|
1309
|
-
[g, [p,
|
|
1324
|
+
[g, [p, z + " Touch"]],
|
|
1310
1325
|
[/coc_coc\w+\/([\w\.]+)/i],
|
|
1311
1326
|
[g, [p, "Coc Coc"]],
|
|
1312
1327
|
[/dolfin\/([\w\.]+)/i],
|
|
1313
1328
|
[g, [p, "Dolphin"]],
|
|
1314
1329
|
[/coast\/([\w\.]+)/i],
|
|
1315
|
-
[g, [p,
|
|
1330
|
+
[g, [p, z + " Coast"]],
|
|
1316
1331
|
[/miuibrowser\/([\w\.]+)/i],
|
|
1317
|
-
[g, [p, "MIUI " +
|
|
1332
|
+
[g, [p, "MIUI " + k]],
|
|
1318
1333
|
[/fxios\/([-\w\.]+)/i],
|
|
1319
|
-
[g, [p,
|
|
1334
|
+
[g, [p, j]],
|
|
1320
1335
|
[/\bqihu|(qi?ho?o?|360)browser/i],
|
|
1321
|
-
[[p, "360 " +
|
|
1336
|
+
[[p, "360 " + k]],
|
|
1322
1337
|
[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],
|
|
1323
1338
|
[[
|
|
1324
1339
|
p,
|
|
1325
1340
|
/(.+)/,
|
|
1326
|
-
"$1 " +
|
|
1341
|
+
"$1 " + k
|
|
1327
1342
|
], g],
|
|
1328
1343
|
[/(comodo_dragon)\/([\w\.]+)/i],
|
|
1329
1344
|
[[
|
|
@@ -1358,11 +1373,11 @@ function wr() {
|
|
|
1358
1373
|
[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],
|
|
1359
1374
|
[g, [p, "TikTok"]],
|
|
1360
1375
|
[/headlesschrome(?:\/([\w\.]+)| )/i],
|
|
1361
|
-
[g, [p,
|
|
1376
|
+
[g, [p, A + " Headless"]],
|
|
1362
1377
|
[/ wv\).+(chrome)\/([\w\.]+)/i],
|
|
1363
|
-
[[p,
|
|
1378
|
+
[[p, A + " WebView"], g],
|
|
1364
1379
|
[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],
|
|
1365
|
-
[g, [p, "Android " +
|
|
1380
|
+
[g, [p, "Android " + k]],
|
|
1366
1381
|
[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],
|
|
1367
1382
|
[p, g],
|
|
1368
1383
|
[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],
|
|
@@ -1372,15 +1387,15 @@ function wr() {
|
|
|
1372
1387
|
[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],
|
|
1373
1388
|
[p, [
|
|
1374
1389
|
g,
|
|
1375
|
-
|
|
1376
|
-
|
|
1390
|
+
bn,
|
|
1391
|
+
xn
|
|
1377
1392
|
]],
|
|
1378
1393
|
[/(webkit|khtml)\/([\w\.]+)/i],
|
|
1379
1394
|
[p, g],
|
|
1380
1395
|
[/(navigator|netscape\d?)\/([-\w\.]+)/i],
|
|
1381
1396
|
[[p, "Netscape"], g],
|
|
1382
1397
|
[/mobile vr; rv:([\w\.]+)\).+firefox/i],
|
|
1383
|
-
[g, [p,
|
|
1398
|
+
[g, [p, j + " Reality"]],
|
|
1384
1399
|
[
|
|
1385
1400
|
/ekiohf.+(flow)\/([\w\.]+)/i,
|
|
1386
1401
|
/(swiftfox)/i,
|
|
@@ -1404,7 +1419,7 @@ function wr() {
|
|
|
1404
1419
|
[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],
|
|
1405
1420
|
[[_, "amd64"]],
|
|
1406
1421
|
[/(ia32(?=;))/i],
|
|
1407
|
-
[[_,
|
|
1422
|
+
[[_, J]],
|
|
1408
1423
|
[/((?:i[346]|x)86)[;\)]/i],
|
|
1409
1424
|
[[_, "ia32"]],
|
|
1410
1425
|
[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],
|
|
@@ -1418,18 +1433,18 @@ function wr() {
|
|
|
1418
1433
|
_,
|
|
1419
1434
|
/ower/,
|
|
1420
1435
|
a,
|
|
1421
|
-
|
|
1436
|
+
J
|
|
1422
1437
|
]],
|
|
1423
1438
|
[/(sun4\w)[;\)]/i],
|
|
1424
1439
|
[[_, "sparc"]],
|
|
1425
1440
|
[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],
|
|
1426
|
-
[[_,
|
|
1441
|
+
[[_, J]]
|
|
1427
1442
|
],
|
|
1428
1443
|
device: [
|
|
1429
1444
|
[/\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],
|
|
1430
1445
|
[
|
|
1431
1446
|
f,
|
|
1432
|
-
[h,
|
|
1447
|
+
[h, B],
|
|
1433
1448
|
[m, b]
|
|
1434
1449
|
],
|
|
1435
1450
|
[
|
|
@@ -1439,7 +1454,7 @@ function wr() {
|
|
|
1439
1454
|
],
|
|
1440
1455
|
[
|
|
1441
1456
|
f,
|
|
1442
|
-
[h,
|
|
1457
|
+
[h, B],
|
|
1443
1458
|
[m, y]
|
|
1444
1459
|
],
|
|
1445
1460
|
[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],
|
|
@@ -1469,13 +1484,13 @@ function wr() {
|
|
|
1469
1484
|
[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],
|
|
1470
1485
|
[
|
|
1471
1486
|
f,
|
|
1472
|
-
[h,
|
|
1487
|
+
[h, P],
|
|
1473
1488
|
[m, b]
|
|
1474
1489
|
],
|
|
1475
1490
|
[/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],
|
|
1476
1491
|
[
|
|
1477
1492
|
f,
|
|
1478
|
-
[h,
|
|
1493
|
+
[h, P],
|
|
1479
1494
|
[m, y]
|
|
1480
1495
|
],
|
|
1481
1496
|
[
|
|
@@ -1491,7 +1506,7 @@ function wr() {
|
|
|
1491
1506
|
/_/g,
|
|
1492
1507
|
" "
|
|
1493
1508
|
],
|
|
1494
|
-
[h,
|
|
1509
|
+
[h, H],
|
|
1495
1510
|
[m, y]
|
|
1496
1511
|
],
|
|
1497
1512
|
[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],
|
|
@@ -1501,7 +1516,7 @@ function wr() {
|
|
|
1501
1516
|
/_/g,
|
|
1502
1517
|
" "
|
|
1503
1518
|
],
|
|
1504
|
-
[h,
|
|
1519
|
+
[h, H],
|
|
1505
1520
|
[m, b]
|
|
1506
1521
|
],
|
|
1507
1522
|
[/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],
|
|
@@ -1529,19 +1544,19 @@ function wr() {
|
|
|
1529
1544
|
],
|
|
1530
1545
|
[
|
|
1531
1546
|
f,
|
|
1532
|
-
[h,
|
|
1547
|
+
[h, R],
|
|
1533
1548
|
[m, y]
|
|
1534
1549
|
],
|
|
1535
1550
|
[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],
|
|
1536
1551
|
[
|
|
1537
1552
|
f,
|
|
1538
|
-
[h,
|
|
1553
|
+
[h, R],
|
|
1539
1554
|
[m, b]
|
|
1540
1555
|
],
|
|
1541
1556
|
[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],
|
|
1542
1557
|
[
|
|
1543
1558
|
f,
|
|
1544
|
-
[h,
|
|
1559
|
+
[h, F],
|
|
1545
1560
|
[m, b]
|
|
1546
1561
|
],
|
|
1547
1562
|
[
|
|
@@ -1551,7 +1566,7 @@ function wr() {
|
|
|
1551
1566
|
],
|
|
1552
1567
|
[
|
|
1553
1568
|
f,
|
|
1554
|
-
[h,
|
|
1569
|
+
[h, F],
|
|
1555
1570
|
[m, y]
|
|
1556
1571
|
],
|
|
1557
1572
|
[/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],
|
|
@@ -1573,25 +1588,25 @@ function wr() {
|
|
|
1573
1588
|
[/(pixel c)\b/i],
|
|
1574
1589
|
[
|
|
1575
1590
|
f,
|
|
1576
|
-
[h,
|
|
1591
|
+
[h, N],
|
|
1577
1592
|
[m, b]
|
|
1578
1593
|
],
|
|
1579
1594
|
[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],
|
|
1580
1595
|
[
|
|
1581
1596
|
f,
|
|
1582
|
-
[h,
|
|
1597
|
+
[h, N],
|
|
1583
1598
|
[m, y]
|
|
1584
1599
|
],
|
|
1585
1600
|
[/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],
|
|
1586
1601
|
[
|
|
1587
1602
|
f,
|
|
1588
|
-
[h,
|
|
1603
|
+
[h, V],
|
|
1589
1604
|
[m, y]
|
|
1590
1605
|
],
|
|
1591
1606
|
[/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i],
|
|
1592
1607
|
[
|
|
1593
1608
|
[f, "Xperia Tablet"],
|
|
1594
|
-
[h,
|
|
1609
|
+
[h, V],
|
|
1595
1610
|
[m, b]
|
|
1596
1611
|
],
|
|
1597
1612
|
[/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],
|
|
@@ -1629,19 +1644,19 @@ function wr() {
|
|
|
1629
1644
|
[/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i],
|
|
1630
1645
|
[
|
|
1631
1646
|
f,
|
|
1632
|
-
[h,
|
|
1647
|
+
[h, O],
|
|
1633
1648
|
[m, y]
|
|
1634
1649
|
],
|
|
1635
1650
|
[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],
|
|
1636
1651
|
[
|
|
1637
1652
|
f,
|
|
1638
|
-
[h,
|
|
1653
|
+
[h, D],
|
|
1639
1654
|
[m, b]
|
|
1640
1655
|
],
|
|
1641
1656
|
[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],
|
|
1642
1657
|
[
|
|
1643
1658
|
f,
|
|
1644
|
-
[h,
|
|
1659
|
+
[h, D],
|
|
1645
1660
|
[m, y]
|
|
1646
1661
|
],
|
|
1647
1662
|
[/(nexus 9)/i],
|
|
@@ -1710,7 +1725,7 @@ function wr() {
|
|
|
1710
1725
|
[/(surface duo)/i],
|
|
1711
1726
|
[
|
|
1712
1727
|
f,
|
|
1713
|
-
[h,
|
|
1728
|
+
[h, I],
|
|
1714
1729
|
[m, b]
|
|
1715
1730
|
],
|
|
1716
1731
|
[/droid [\d\.]+; (fp\du?)(?: b|\))/i],
|
|
@@ -1864,19 +1879,19 @@ function wr() {
|
|
|
1864
1879
|
/\./g,
|
|
1865
1880
|
" "
|
|
1866
1881
|
],
|
|
1867
|
-
[h,
|
|
1882
|
+
[h, I],
|
|
1868
1883
|
[m, y]
|
|
1869
1884
|
],
|
|
1870
1885
|
[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],
|
|
1871
1886
|
[
|
|
1872
1887
|
f,
|
|
1873
|
-
[h,
|
|
1888
|
+
[h, W],
|
|
1874
1889
|
[m, b]
|
|
1875
1890
|
],
|
|
1876
1891
|
[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],
|
|
1877
1892
|
[
|
|
1878
1893
|
f,
|
|
1879
|
-
[h,
|
|
1894
|
+
[h, W],
|
|
1880
1895
|
[m, y]
|
|
1881
1896
|
],
|
|
1882
1897
|
[/smart-tv.+(samsung)/i],
|
|
@@ -1888,11 +1903,11 @@ function wr() {
|
|
|
1888
1903
|
/^/,
|
|
1889
1904
|
"SmartTV"
|
|
1890
1905
|
],
|
|
1891
|
-
[h,
|
|
1906
|
+
[h, B],
|
|
1892
1907
|
[m, x]
|
|
1893
1908
|
],
|
|
1894
1909
|
[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],
|
|
1895
|
-
[[h,
|
|
1910
|
+
[[h, F], [m, x]],
|
|
1896
1911
|
[/(apple) ?tv/i],
|
|
1897
1912
|
[
|
|
1898
1913
|
h,
|
|
@@ -1901,8 +1916,8 @@ function wr() {
|
|
|
1901
1916
|
],
|
|
1902
1917
|
[/crkey/i],
|
|
1903
1918
|
[
|
|
1904
|
-
[f,
|
|
1905
|
-
[h,
|
|
1919
|
+
[f, A + "cast"],
|
|
1920
|
+
[h, N],
|
|
1906
1921
|
[m, x]
|
|
1907
1922
|
],
|
|
1908
1923
|
[/droid.+aft(\w)( bui|\))/i],
|
|
@@ -1920,13 +1935,13 @@ function wr() {
|
|
|
1920
1935
|
[/(bravia[\w ]+)( bui|\))/i],
|
|
1921
1936
|
[
|
|
1922
1937
|
f,
|
|
1923
|
-
[h,
|
|
1938
|
+
[h, V],
|
|
1924
1939
|
[m, x]
|
|
1925
1940
|
],
|
|
1926
1941
|
[/(mitv-\w{5}) bui/i],
|
|
1927
1942
|
[
|
|
1928
1943
|
f,
|
|
1929
|
-
[h,
|
|
1944
|
+
[h, H],
|
|
1930
1945
|
[m, x]
|
|
1931
1946
|
],
|
|
1932
1947
|
[/Hbbtv.*(technisat) (.*);/i],
|
|
@@ -1937,8 +1952,8 @@ function wr() {
|
|
|
1937
1952
|
],
|
|
1938
1953
|
[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],
|
|
1939
1954
|
[
|
|
1940
|
-
[h,
|
|
1941
|
-
[f,
|
|
1955
|
+
[h, yn],
|
|
1956
|
+
[f, yn],
|
|
1942
1957
|
[m, x]
|
|
1943
1958
|
],
|
|
1944
1959
|
[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],
|
|
@@ -1958,13 +1973,13 @@ function wr() {
|
|
|
1958
1973
|
[/(playstation [345portablevi]+)/i],
|
|
1959
1974
|
[
|
|
1960
1975
|
f,
|
|
1961
|
-
[h,
|
|
1976
|
+
[h, V],
|
|
1962
1977
|
[m, v]
|
|
1963
1978
|
],
|
|
1964
1979
|
[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],
|
|
1965
1980
|
[
|
|
1966
1981
|
f,
|
|
1967
|
-
[h,
|
|
1982
|
+
[h, I],
|
|
1968
1983
|
[m, v]
|
|
1969
1984
|
],
|
|
1970
1985
|
[/((pebble))app/i],
|
|
@@ -1982,13 +1997,13 @@ function wr() {
|
|
|
1982
1997
|
[/droid.+; (glass) \d/i],
|
|
1983
1998
|
[
|
|
1984
1999
|
f,
|
|
1985
|
-
[h,
|
|
2000
|
+
[h, N],
|
|
1986
2001
|
[m, S]
|
|
1987
2002
|
],
|
|
1988
2003
|
[/droid.+; (wt63?0{2,3})\)/i],
|
|
1989
2004
|
[
|
|
1990
2005
|
f,
|
|
1991
|
-
[h,
|
|
2006
|
+
[h, W],
|
|
1992
2007
|
[m, S]
|
|
1993
2008
|
],
|
|
1994
2009
|
[/(quest( 2| pro)?)/i],
|
|
@@ -2018,7 +2033,7 @@ function wr() {
|
|
|
2018
2033
|
],
|
|
2019
2034
|
engine: [
|
|
2020
2035
|
[/windows.+ edge\/([\w\.]+)/i],
|
|
2021
|
-
[g, [p,
|
|
2036
|
+
[g, [p, fn + "HTML"]],
|
|
2022
2037
|
[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],
|
|
2023
2038
|
[g, [p, "Blink"]],
|
|
2024
2039
|
[
|
|
@@ -2043,14 +2058,14 @@ function wr() {
|
|
|
2043
2058
|
],
|
|
2044
2059
|
[p, [
|
|
2045
2060
|
g,
|
|
2046
|
-
|
|
2047
|
-
|
|
2061
|
+
bn,
|
|
2062
|
+
Sn
|
|
2048
2063
|
]],
|
|
2049
2064
|
[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],
|
|
2050
2065
|
[[p, "Windows"], [
|
|
2051
2066
|
g,
|
|
2052
|
-
|
|
2053
|
-
|
|
2067
|
+
bn,
|
|
2068
|
+
Sn
|
|
2054
2069
|
]],
|
|
2055
2070
|
[
|
|
2056
2071
|
/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,
|
|
@@ -2078,17 +2093,17 @@ function wr() {
|
|
|
2078
2093
|
],
|
|
2079
2094
|
[p, g],
|
|
2080
2095
|
[/\(bb(10);/i],
|
|
2081
|
-
[g, [p,
|
|
2096
|
+
[g, [p, O]],
|
|
2082
2097
|
[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],
|
|
2083
2098
|
[g, [p, "Symbian"]],
|
|
2084
2099
|
[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],
|
|
2085
|
-
[g, [p,
|
|
2100
|
+
[g, [p, j + " OS"]],
|
|
2086
2101
|
[/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],
|
|
2087
2102
|
[g, [p, "webOS"]],
|
|
2088
2103
|
[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],
|
|
2089
2104
|
[g, [p, "watchOS"]],
|
|
2090
2105
|
[/crkey\/([\d\.]+)/i],
|
|
2091
|
-
[g, [p,
|
|
2106
|
+
[g, [p, A + "cast"]],
|
|
2092
2107
|
[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],
|
|
2093
2108
|
[[p, hn], g],
|
|
2094
2109
|
[
|
|
@@ -2119,10 +2134,10 @@ function wr() {
|
|
|
2119
2134
|
]
|
|
2120
2135
|
}, Z = function(e, t) {
|
|
2121
2136
|
if (typeof e === l && (t = e, e = r), !(this instanceof Z)) return new Z(e, t).getResult();
|
|
2122
|
-
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 ?
|
|
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 ? G(Cn, t) : Cn, S = i && i.userAgent == o;
|
|
2123
2138
|
return this.getBrowser = function() {
|
|
2124
2139
|
var e = {};
|
|
2125
|
-
return e[p] = r, e[g] = r, X.call(e, o, x.browser), e[d] =
|
|
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;
|
|
2126
2141
|
}, this.getCPU = function() {
|
|
2127
2142
|
var e = {};
|
|
2128
2143
|
return e[_] = r, X.call(e, o, x.cpu), e;
|
|
@@ -2147,14 +2162,14 @@ function wr() {
|
|
|
2147
2162
|
}, this.getUA = function() {
|
|
2148
2163
|
return o;
|
|
2149
2164
|
}, this.setUA = function(e) {
|
|
2150
|
-
return o = typeof e === u && e.length > w ?
|
|
2165
|
+
return o = typeof e === u && e.length > w ? yn(e, w) : e, this;
|
|
2151
2166
|
}, this.setUA(o), this;
|
|
2152
2167
|
};
|
|
2153
|
-
Z.VERSION = i, Z.BROWSER =
|
|
2168
|
+
Z.VERSION = i, Z.BROWSER = q([
|
|
2154
2169
|
p,
|
|
2155
2170
|
g,
|
|
2156
2171
|
d
|
|
2157
|
-
]), Z.CPU =
|
|
2172
|
+
]), Z.CPU = q([_]), Z.DEVICE = q([
|
|
2158
2173
|
f,
|
|
2159
2174
|
h,
|
|
2160
2175
|
m,
|
|
@@ -2164,7 +2179,7 @@ function wr() {
|
|
|
2164
2179
|
b,
|
|
2165
2180
|
S,
|
|
2166
2181
|
C
|
|
2167
|
-
]), Z.ENGINE = Z.OS =
|
|
2182
|
+
]), Z.ENGINE = Z.OS = q([p, g]), typeof t === c ? typeof n !== c && (n.UAParser = Z) : (e.exports && (t = e.exports = Z), t.UAParser = Z);
|
|
2168
2183
|
var Q = typeof n !== c && (n.jQuery || n.Zepto);
|
|
2169
2184
|
if (Q && !Q.ua) {
|
|
2170
2185
|
var $ = new Z();
|
|
@@ -2192,9 +2207,9 @@ function wr() {
|
|
|
2192
2207
|
typeof n < "u" && (n.ab = {}.dirname + "/"), Ke.exports = n(226);
|
|
2193
2208
|
})()), Ke.exports;
|
|
2194
2209
|
}
|
|
2195
|
-
var
|
|
2196
|
-
function
|
|
2197
|
-
return
|
|
2210
|
+
var xt;
|
|
2211
|
+
function Nt() {
|
|
2212
|
+
return xt || (xt = 1, (function(e) {
|
|
2198
2213
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2199
2214
|
function t(e, t) {
|
|
2200
2215
|
for (var n in t) Object.defineProperty(e, n, {
|
|
@@ -2213,7 +2228,7 @@ function Ct() {
|
|
|
2213
2228
|
return a;
|
|
2214
2229
|
}
|
|
2215
2230
|
});
|
|
2216
|
-
let n = /* @__PURE__ */ r(
|
|
2231
|
+
let n = /* @__PURE__ */ r(vr());
|
|
2217
2232
|
function r(e) {
|
|
2218
2233
|
return e && e.__esModule ? e : { default: e };
|
|
2219
2234
|
}
|
|
@@ -2231,9 +2246,9 @@ function Ct() {
|
|
|
2231
2246
|
}
|
|
2232
2247
|
})(Ve)), Ve;
|
|
2233
2248
|
}
|
|
2234
|
-
var Ye = {},
|
|
2235
|
-
function
|
|
2236
|
-
return
|
|
2249
|
+
var Ye = {}, Ct;
|
|
2250
|
+
function Rr() {
|
|
2251
|
+
return Ct || (Ct = 1, (function(e) {
|
|
2237
2252
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "URLPattern", {
|
|
2238
2253
|
enumerable: !0,
|
|
2239
2254
|
get: function() {
|
|
@@ -2243,21 +2258,21 @@ function Er() {
|
|
|
2243
2258
|
let t = typeof URLPattern > "u" ? void 0 : URLPattern;
|
|
2244
2259
|
})(Ye)), Ye;
|
|
2245
2260
|
}
|
|
2246
|
-
var
|
|
2247
|
-
function
|
|
2248
|
-
return
|
|
2261
|
+
var Lt;
|
|
2262
|
+
function Pr() {
|
|
2263
|
+
return Lt || (Lt = 1, (function(e, t) {
|
|
2249
2264
|
let n = {
|
|
2250
|
-
NextRequest:
|
|
2251
|
-
NextResponse:
|
|
2252
|
-
ImageResponse:
|
|
2253
|
-
userAgentFromString:
|
|
2254
|
-
userAgent:
|
|
2255
|
-
URLPattern:
|
|
2265
|
+
NextRequest: br().NextRequest,
|
|
2266
|
+
NextResponse: wr().NextResponse,
|
|
2267
|
+
ImageResponse: Er().ImageResponse,
|
|
2268
|
+
userAgentFromString: Nt().userAgentFromString,
|
|
2269
|
+
userAgent: Nt().userAgent,
|
|
2270
|
+
URLPattern: Rr().URLPattern
|
|
2256
2271
|
};
|
|
2257
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;
|
|
2258
2273
|
})(we, we.exports)), we.exports;
|
|
2259
2274
|
}
|
|
2260
|
-
|
|
2275
|
+
Pr();
|
|
2261
2276
|
var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "logout", e))(Qe || {}), Je = {
|
|
2262
2277
|
login: "login",
|
|
2263
2278
|
logout: "logout",
|
|
@@ -2266,14 +2281,14 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2266
2281
|
applicationJson: "application/json",
|
|
2267
2282
|
multipartFormData: "multipart/form-data",
|
|
2268
2283
|
applicationXwwwFormUrlencoded: "application/x-www-form-urlencoded"
|
|
2269
|
-
},
|
|
2284
|
+
}, zr = class {
|
|
2270
2285
|
config;
|
|
2271
2286
|
http;
|
|
2272
2287
|
adapter;
|
|
2273
2288
|
constructor({ config: e, adapter: t, storage: n }) {
|
|
2274
2289
|
this.config = e;
|
|
2275
|
-
let r =
|
|
2276
|
-
(!r.deviceId || r.deviceId.trim().length === 0) && (r =
|
|
2290
|
+
let r = Ar(n.headers);
|
|
2291
|
+
(!r.deviceId || r.deviceId.trim().length === 0) && (r = Or(n.cookies)), this.http = new Lr({
|
|
2277
2292
|
...r,
|
|
2278
2293
|
userType: e.userType,
|
|
2279
2294
|
helloURL: e.helloURL
|
|
@@ -2296,7 +2311,7 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2296
2311
|
}[n], i = e.cookies;
|
|
2297
2312
|
if (this.http.setHttpOptsToCookies(i), !r || r.length === 0) return this.createErrorResponse(404, "API not found", i);
|
|
2298
2313
|
let a;
|
|
2299
|
-
if ((r.startsWith("admin/") || r.startsWith("api/")) && (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);
|
|
2300
2315
|
L.debug({ "content-type": e.contentType }, "Content-Type"), L.debug({
|
|
2301
2316
|
hostUrl: r,
|
|
2302
2317
|
token: a ? { ...a } : ""
|
|
@@ -2358,10 +2373,10 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2358
2373
|
switch (e) {
|
|
2359
2374
|
case Je[Qe[0]]:
|
|
2360
2375
|
let e = t.data;
|
|
2361
|
-
|
|
2376
|
+
Nr(e, a);
|
|
2362
2377
|
break;
|
|
2363
2378
|
case Je[Qe[1]]:
|
|
2364
|
-
a.cleanCookies = (e) =>
|
|
2379
|
+
a.cleanCookies = (e) => Cr(e);
|
|
2365
2380
|
break;
|
|
2366
2381
|
}
|
|
2367
2382
|
n.onHandlerSuccess && n.onHandlerSuccess({
|
|
@@ -2392,7 +2407,7 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2392
2407
|
t[e] = { value: n };
|
|
2393
2408
|
}), t;
|
|
2394
2409
|
}
|
|
2395
|
-
},
|
|
2410
|
+
}, Tr = "zh-CN", U = {
|
|
2396
2411
|
IBOOT_DEVICE_ID: "dvid",
|
|
2397
2412
|
IBOOT_LANG: "lang",
|
|
2398
2413
|
IBOOT_WEBSITE_ID: "wid",
|
|
@@ -2404,25 +2419,25 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2404
2419
|
LANG: "Lang",
|
|
2405
2420
|
WEBSITE_ID: "Website-Id",
|
|
2406
2421
|
WEBSITE_NO: "Website-No"
|
|
2407
|
-
},
|
|
2422
|
+
}, Ar = (e) => {
|
|
2408
2423
|
if (e.get) {
|
|
2409
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 = {};
|
|
2410
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;
|
|
2411
2426
|
}
|
|
2412
2427
|
throw Error("The get method of IStorage has not been implemented.");
|
|
2413
|
-
},
|
|
2428
|
+
}, $r = (e, t) => {
|
|
2414
2429
|
if (e.set) t.deviceId && e.set(K.DEVICE_ID, t.deviceId), t.lang && e.set(K.LANG, t.lang), t.websiteId && e.set(K.WEBSITE_ID, t.websiteId), t.websiteNo && e.set(K.WEBSITE_NO, t.websiteNo);
|
|
2415
2430
|
else throw Error("The set method of IStorage has not been implemented.");
|
|
2416
|
-
},
|
|
2431
|
+
}, Or = (e) => {
|
|
2417
2432
|
if (e.get) {
|
|
2418
2433
|
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 = {};
|
|
2419
2434
|
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;
|
|
2420
2435
|
}
|
|
2421
2436
|
throw Error("The get method of ICookies has not been implemented.");
|
|
2422
|
-
},
|
|
2437
|
+
}, Qr = (e, t) => {
|
|
2423
2438
|
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);
|
|
2424
2439
|
else throw Error("The set method of ICookies has not been implemented.");
|
|
2425
|
-
},
|
|
2440
|
+
}, xr = (e) => {
|
|
2426
2441
|
if (e.get) {
|
|
2427
2442
|
let t = e[U.IBOOT_USER];
|
|
2428
2443
|
if (t && t.length > 0) {
|
|
@@ -2434,7 +2449,7 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2434
2449
|
};
|
|
2435
2450
|
}
|
|
2436
2451
|
}
|
|
2437
|
-
},
|
|
2452
|
+
}, Ut = () => ({
|
|
2438
2453
|
path: "/",
|
|
2439
2454
|
secure: process.env.APP_ENV === "production",
|
|
2440
2455
|
httpOnly: !0,
|
|
@@ -2443,7 +2458,7 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2443
2458
|
maxAge: -1,
|
|
2444
2459
|
httpOnly: !0,
|
|
2445
2460
|
path: "/"
|
|
2446
|
-
},
|
|
2461
|
+
}, Nr = (e, t) => {
|
|
2447
2462
|
let { id: n, name: r, username: i, nickname: a, headImg: o, token: s, lastLoginTime: c, deviceId: l, userType: u, mustChangePwd: d } = e, f = {
|
|
2448
2463
|
id: n,
|
|
2449
2464
|
name: r,
|
|
@@ -2460,16 +2475,16 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2460
2475
|
};
|
|
2461
2476
|
t.cookies[U.IBOOT_TOKEN] = {
|
|
2462
2477
|
value: s,
|
|
2463
|
-
options:
|
|
2478
|
+
options: Ut()
|
|
2464
2479
|
}, t.cookies[U.IBOOT_USER] = {
|
|
2465
2480
|
value: JSON.stringify(f),
|
|
2466
|
-
options:
|
|
2481
|
+
options: Ut()
|
|
2467
2482
|
};
|
|
2468
|
-
},
|
|
2483
|
+
}, Cr = (e) => {
|
|
2469
2484
|
if (!e.set) throw Error("cookies set function is undefined");
|
|
2470
2485
|
if (e.set(U.IBOOT_TOKEN, "", Ee), e.set(U.IBOOT_USER, "", Ee), !e.delete) throw Error("cookies delete function is undefined");
|
|
2471
2486
|
e.delete(U.IBOOT_TOKEN, Ee), e.delete(U.IBOOT_USER, Ee);
|
|
2472
|
-
},
|
|
2487
|
+
}, Lr = class {
|
|
2473
2488
|
baseUrl;
|
|
2474
2489
|
helloMethod;
|
|
2475
2490
|
apiKey;
|
|
@@ -2481,7 +2496,7 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2481
2496
|
websiteId;
|
|
2482
2497
|
websiteNo;
|
|
2483
2498
|
constructor(e) {
|
|
2484
|
-
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 ??
|
|
2499
|
+
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;
|
|
2485
2500
|
}
|
|
2486
2501
|
encrypt(e) {
|
|
2487
2502
|
let t = ne.enc.Utf8.parse(this.apiKey);
|
|
@@ -2517,7 +2532,7 @@ var Qe = /* @__PURE__ */ ((e) => (e[e.login = 0] = "login", e[e.logout = 1] = "l
|
|
|
2517
2532
|
}
|
|
2518
2533
|
assemblyParameter(e, t) {
|
|
2519
2534
|
let n = e ?? new URLSearchParams(), r = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
2520
|
-
return n.set("timezone", r), n.set("timestamp", Date.now().toString()), n.set("echostr",
|
|
2535
|
+
return n.set("timezone", r), n.set("timestamp", Date.now().toString()), n.set("echostr", Dt(10)), n.set("version", this.version), n.set("deviceId", this.deviceId), n.set("webid", this.websiteId ?? ""), n.set("apiKey", this.apiKey), t && t.length > 0 && n.set("username", t), new URLSearchParams([...n].filter(([, e]) => e !== ""));
|
|
2521
2536
|
}
|
|
2522
2537
|
async assemblyHeader({ urlParams: e, token: t }) {
|
|
2523
2538
|
let n = {
|
|
@@ -2643,8 +2658,8 @@ const helloURL = `${baseUrl.site}helloIBoot`;
|
|
|
2643
2658
|
var ICMSServer = class {
|
|
2644
2659
|
http;
|
|
2645
2660
|
constructor(e) {
|
|
2646
|
-
this.http = new
|
|
2647
|
-
...
|
|
2661
|
+
this.http = new Lr({
|
|
2662
|
+
...Ar(e.headerStorage),
|
|
2648
2663
|
userType: tr.TYPE_C,
|
|
2649
2664
|
helloURL
|
|
2650
2665
|
});
|
|
@@ -2655,7 +2670,7 @@ var ICMSServer = class {
|
|
|
2655
2670
|
let n = r.headers;
|
|
2656
2671
|
if (n) {
|
|
2657
2672
|
let r = n["device-id"], i = n.lang, a = n["web-id"], o = n["web-no"], s = {};
|
|
2658
|
-
r && r.length > 0 && (s.deviceId = r), i && i.length > 0 && (s.lang = i), a && a.length > 0 && (s.websiteId = a), o && o.length > 0 && (s.websiteNo = o),
|
|
2673
|
+
r && r.length > 0 && (s.deviceId = r), i && i.length > 0 && (s.lang = i), a && a.length > 0 && (s.websiteId = a), o && o.length > 0 && (s.websiteNo = o), $r(e, s), Qr(t, s);
|
|
2659
2674
|
}
|
|
2660
2675
|
}
|
|
2661
2676
|
}
|
|
@@ -2809,7 +2824,7 @@ var ICMSServer = class {
|
|
|
2809
2824
|
throw Error(n.msg);
|
|
2810
2825
|
}
|
|
2811
2826
|
}, APIMAP = {};
|
|
2812
|
-
const icmsRouter = async ({ request: e, routeAdapter: t, storage: n }) => await new
|
|
2827
|
+
const icmsRouter = async ({ request: e, routeAdapter: t, storage: n }) => await new zr({
|
|
2813
2828
|
config: {
|
|
2814
2829
|
userType: tr.TYPE_B,
|
|
2815
2830
|
APIMAP,
|