@10yun/open-sdk 0.3.141 → 0.3.142
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/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{login-DF3BEUKH.js → login-BXM6gDsd.js} +1 -1
- package/dist/{login-B-P5ZeKk.cjs → login-aA7YVxQA.cjs} +1 -1
- package/dist/{opensdk-v3-DWIRr4gg.js → opensdk-v3-A9qaNoFG.js} +314 -311
- package/dist/opensdk-v3-DU83uuY0.cjs +6 -0
- package/package.json +1 -1
- package/dist/opensdk-v3-B5rqCXLc.cjs +0 -6
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { i as
|
|
1
|
+
import { i as kt, n as qr, o as cn, r as Yn, t as ae } from "./helper-_fZwiZH9.js";
|
|
2
2
|
import { t as F } from "./_plugin-vue_export-helper-Be64z-LZ.js";
|
|
3
|
-
import { Fragment as G, Transition as Kr, createBlock as k, createCommentVNode as U, createElementBlock as R, createElementVNode as v, createSlots as Wr, createTextVNode as N, createVNode as _, mergeProps as Yr, normalizeClass as rt, normalizeStyle as
|
|
3
|
+
import { Fragment as G, Transition as Kr, createBlock as k, createCommentVNode as U, createElementBlock as R, createElementVNode as v, createSlots as Wr, createTextVNode as N, createVNode as _, mergeProps as Yr, normalizeClass as rt, normalizeStyle as Pt, openBlock as E, readonly as fn, ref as Jr, renderList as X, renderSlot as Qr, resolveComponent as A, resolveDirective as zt, resolveDynamicComponent as Xr, toDisplayString as x, vShow as Jn, withCtx as g, withDirectives as Fe, withModifiers as Zr } from "vue";
|
|
4
4
|
import { cc_is_empty as Ee, parseNumber as ea } from "@10yun/cv-js-utils";
|
|
5
5
|
import { defineStore as te, mapState as ne } from "pinia";
|
|
6
|
-
import ta, { ElMessage as
|
|
6
|
+
import ta, { ElMessage as dn, ElMessageBox as na, ElNotification as ra } from "element-plus";
|
|
7
7
|
import { createI18n as aa } from "vue-i18n";
|
|
8
8
|
import * as oa from "@element-plus/icons-vue";
|
|
9
9
|
import ia from "@10yun/cv-pc-ui";
|
|
10
|
-
var sa = Object.create, at = Object.defineProperty, la = Object.getOwnPropertyDescriptor, ua = Object.getOwnPropertyNames, ca = Object.getPrototypeOf, fa = Object.prototype.hasOwnProperty,
|
|
10
|
+
var sa = Object.create, at = Object.defineProperty, la = Object.getOwnPropertyDescriptor, ua = Object.getOwnPropertyNames, ca = Object.getPrototypeOf, fa = Object.prototype.hasOwnProperty, qt = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), da = (e, t) => {
|
|
11
11
|
let n = {};
|
|
12
12
|
for (var a in e)
|
|
13
13
|
at(n, a, {
|
|
@@ -33,11 +33,11 @@ var Ye = Jr({});
|
|
|
33
33
|
function Re() {
|
|
34
34
|
const e = (a = {}) => {
|
|
35
35
|
Ye.value = JSON.parse(JSON.stringify(a));
|
|
36
|
-
}, t = () =>
|
|
36
|
+
}, t = () => fn(Ye.value), n = () => {
|
|
37
37
|
Ye.value = {};
|
|
38
38
|
};
|
|
39
39
|
return {
|
|
40
|
-
sdkConfigData:
|
|
40
|
+
sdkConfigData: fn(Ye.value),
|
|
41
41
|
sdkConfigSet: e,
|
|
42
42
|
sdkConfigGet: t,
|
|
43
43
|
sdkConfigReset: n
|
|
@@ -138,7 +138,7 @@ function ga() {
|
|
|
138
138
|
return !1;
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function Kt(e, t) {
|
|
142
142
|
e = e || [], t = t || {};
|
|
143
143
|
try {
|
|
144
144
|
return new Blob(e, t);
|
|
@@ -148,7 +148,7 @@ function zt(e, t) {
|
|
|
148
148
|
return n.getBlob(t.type);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
var va = /* @__PURE__ */
|
|
151
|
+
var va = /* @__PURE__ */ qt(((e, t) => {
|
|
152
152
|
var n = global.MutationObserver || global.WebKitMutationObserver, a;
|
|
153
153
|
if (n) {
|
|
154
154
|
var r = 0, o = new n(u), i = global.document.createTextNode("");
|
|
@@ -181,7 +181,7 @@ var va = /* @__PURE__ */ Ht(((e, t) => {
|
|
|
181
181
|
function f(h) {
|
|
182
182
|
l.push(h) === 1 && !c && a();
|
|
183
183
|
}
|
|
184
|
-
})), Sa = /* @__PURE__ */
|
|
184
|
+
})), Sa = /* @__PURE__ */ qt(((e, t) => {
|
|
185
185
|
var n = va();
|
|
186
186
|
function a() {
|
|
187
187
|
}
|
|
@@ -307,7 +307,7 @@ var va = /* @__PURE__ */ Ht(((e, t) => {
|
|
|
307
307
|
});
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
-
})), ba = /* @__PURE__ */
|
|
310
|
+
})), ba = /* @__PURE__ */ qt((() => {
|
|
311
311
|
typeof global.Promise != "function" && (global.Promise = Sa());
|
|
312
312
|
}));
|
|
313
313
|
typeof Promise > "u" && ba();
|
|
@@ -325,18 +325,18 @@ function Te(e, t, n) {
|
|
|
325
325
|
function oe(e) {
|
|
326
326
|
return typeof e != "string" && (e = String(e)), e;
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function Wt() {
|
|
329
329
|
if (arguments.length && typeof arguments[arguments.length - 1] == "function") return arguments[arguments.length - 1];
|
|
330
330
|
}
|
|
331
|
-
var
|
|
331
|
+
var xt = "local-forage-detect-blob-support", Je, J = {}, ya = Object.prototype.toString, Ve = "readonly", ut = "readwrite";
|
|
332
332
|
function wa(e) {
|
|
333
333
|
for (var t = e.length, n = new ArrayBuffer(t), a = new Uint8Array(n), r = 0; r < t; r++) a[r] = e.charCodeAt(r);
|
|
334
334
|
return n;
|
|
335
335
|
}
|
|
336
336
|
function Aa(e) {
|
|
337
337
|
return new O(function(t) {
|
|
338
|
-
var n = e.transaction(
|
|
339
|
-
n.objectStore(
|
|
338
|
+
var n = e.transaction(xt, ut), a = Kt([""]);
|
|
339
|
+
n.objectStore(xt).put(a, "key"), n.onabort = function(r) {
|
|
340
340
|
r.preventDefault(), r.stopPropagation(), t(!1);
|
|
341
341
|
}, n.oncomplete = function() {
|
|
342
342
|
var r = navigator.userAgent.match(/Chrome\/(\d+)/);
|
|
@@ -359,19 +359,19 @@ function ot(e) {
|
|
|
359
359
|
return n.promise;
|
|
360
360
|
}) : t.dbReady = n.promise;
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function Ut(e) {
|
|
363
363
|
var t = J[e.name].deferredOperations.pop();
|
|
364
364
|
if (t)
|
|
365
365
|
return t.resolve(), t.promise;
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function Bt(e, t) {
|
|
368
368
|
var n = J[e.name].deferredOperations.pop();
|
|
369
369
|
if (n)
|
|
370
370
|
return n.reject(t), n.promise;
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function Qn(e, t) {
|
|
373
373
|
return new O(function(n, a) {
|
|
374
|
-
if (J[e.name] = J[e.name] ||
|
|
374
|
+
if (J[e.name] = J[e.name] || tr(), e.db) if (t)
|
|
375
375
|
ot(e), e.db.close();
|
|
376
376
|
else return n(e.db);
|
|
377
377
|
var r = [e.name];
|
|
@@ -380,7 +380,7 @@ function Yn(e, t) {
|
|
|
380
380
|
t && (o.onupgradeneeded = function(i) {
|
|
381
381
|
var s = o.result;
|
|
382
382
|
try {
|
|
383
|
-
s.createObjectStore(e.storeName), i.oldVersion <= 1 && s.createObjectStore(
|
|
383
|
+
s.createObjectStore(e.storeName), i.oldVersion <= 1 && s.createObjectStore(xt);
|
|
384
384
|
} catch (c) {
|
|
385
385
|
if (c.name !== "ConstraintError") throw c;
|
|
386
386
|
}
|
|
@@ -390,17 +390,17 @@ function Yn(e, t) {
|
|
|
390
390
|
var i = o.result;
|
|
391
391
|
i.onversionchange = function(s) {
|
|
392
392
|
s.target.close();
|
|
393
|
-
}, n(i),
|
|
393
|
+
}, n(i), Ut(e);
|
|
394
394
|
};
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
return
|
|
397
|
+
function Yt(e) {
|
|
398
|
+
return Qn(e, !1);
|
|
399
399
|
}
|
|
400
|
-
function
|
|
401
|
-
return
|
|
400
|
+
function Jt(e) {
|
|
401
|
+
return Qn(e, !0);
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function Xn(e, t) {
|
|
404
404
|
if (!e.db) return !0;
|
|
405
405
|
var n = !e.db.objectStoreNames.contains(e.storeName), a = e.version < e.db.version, r = e.version > e.db.version;
|
|
406
406
|
if (a && (e.version, e.version = e.db.version), r || n) {
|
|
@@ -424,10 +424,10 @@ function Ta(e) {
|
|
|
424
424
|
}, a.readAsBinaryString(e);
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
|
-
function
|
|
428
|
-
return
|
|
427
|
+
function Zn(e) {
|
|
428
|
+
return Kt([wa(atob(e.data))], { type: e.type });
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function er(e) {
|
|
431
431
|
return e && e.__local_forage_encoded_blob;
|
|
432
432
|
}
|
|
433
433
|
function Ca(e) {
|
|
@@ -443,11 +443,11 @@ function Oa(e) {
|
|
|
443
443
|
const r = n[a];
|
|
444
444
|
r._dbInfo.db && (r._dbInfo.db.close(), r._dbInfo.db = null);
|
|
445
445
|
}
|
|
446
|
-
return e.db = null,
|
|
446
|
+
return e.db = null, Yt(e).then((r) => (e.db = r, Xn(e) ? Jt(e) : r)).then((r) => {
|
|
447
447
|
e.db = t.db = r;
|
|
448
448
|
for (var o = 0; o < n.length; o++) n[o]._dbInfo.db = r;
|
|
449
449
|
}).catch((r) => {
|
|
450
|
-
throw
|
|
450
|
+
throw Bt(e, r), r;
|
|
451
451
|
});
|
|
452
452
|
}
|
|
453
453
|
function ie(e, t, n, a) {
|
|
@@ -457,14 +457,14 @@ function ie(e, t, n, a) {
|
|
|
457
457
|
} catch (r) {
|
|
458
458
|
if (a > 0 && (!e.db || r.name === "InvalidStateError" || r.name === "NotFoundError")) return O.resolve().then(() => {
|
|
459
459
|
if (!e.db || r.name === "NotFoundError" && !e.db.objectStoreNames.contains(e.storeName) && e.version <= e.db.version)
|
|
460
|
-
return e.db && (e.version = e.db.version + 1),
|
|
460
|
+
return e.db && (e.version = e.db.version + 1), Jt(e);
|
|
461
461
|
}).then(() => Oa(e).then(function() {
|
|
462
462
|
ie(e, t, n, a - 1);
|
|
463
463
|
})).catch(n);
|
|
464
464
|
n(r);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function tr() {
|
|
468
468
|
return {
|
|
469
469
|
forages: [],
|
|
470
470
|
db: null,
|
|
@@ -476,7 +476,7 @@ function Ia(e) {
|
|
|
476
476
|
var t = this, n = { db: null };
|
|
477
477
|
if (e) for (var a in e) n[a] = e[a];
|
|
478
478
|
var r = J[n.name];
|
|
479
|
-
r || (r =
|
|
479
|
+
r || (r = tr(), J[n.name] = r), r.forages.push(t), t._initReady || (t._initReady = t.ready, t.ready = Ca);
|
|
480
480
|
var o = [];
|
|
481
481
|
function i() {
|
|
482
482
|
return O.resolve();
|
|
@@ -487,9 +487,9 @@ function Ia(e) {
|
|
|
487
487
|
}
|
|
488
488
|
var l = r.forages.slice(0);
|
|
489
489
|
return O.all(o).then(function() {
|
|
490
|
-
return n.db = r.db,
|
|
490
|
+
return n.db = r.db, Yt(n);
|
|
491
491
|
}).then(function(u) {
|
|
492
|
-
return n.db = u,
|
|
492
|
+
return n.db = u, Xn(n, t._defaultConfig.version) ? Jt(n) : u;
|
|
493
493
|
}).then(function(u) {
|
|
494
494
|
n.db = r.db = u, t._dbInfo = n;
|
|
495
495
|
for (var f = 0; f < l.length; f++) {
|
|
@@ -509,7 +509,7 @@ function Ra(e, t) {
|
|
|
509
509
|
var c = s.objectStore(n._dbInfo.storeName).get(e);
|
|
510
510
|
c.onsuccess = function() {
|
|
511
511
|
var l = c.result;
|
|
512
|
-
l === void 0 && (l = null),
|
|
512
|
+
l === void 0 && (l = null), er(l) && (l = Zn(l)), r(l);
|
|
513
513
|
}, c.onerror = function() {
|
|
514
514
|
o(c.error);
|
|
515
515
|
};
|
|
@@ -532,7 +532,7 @@ function Na(e, t) {
|
|
|
532
532
|
var u = c.result;
|
|
533
533
|
if (u) {
|
|
534
534
|
var f = u.value;
|
|
535
|
-
|
|
535
|
+
er(f) && (f = Zn(f));
|
|
536
536
|
var h = e(f, u.key, l++);
|
|
537
537
|
h !== void 0 ? r(h) : u.continue();
|
|
538
538
|
} else r();
|
|
@@ -695,13 +695,13 @@ function Ua(e) {
|
|
|
695
695
|
return P(n, e), n;
|
|
696
696
|
}
|
|
697
697
|
function Ba(e, t) {
|
|
698
|
-
t =
|
|
698
|
+
t = Wt.apply(this, arguments);
|
|
699
699
|
var n = this.config();
|
|
700
700
|
e = typeof e != "function" && e || {}, e.name || (e.name = e.name || n.name, e.storeName = e.storeName || n.storeName);
|
|
701
701
|
var a = this, r;
|
|
702
702
|
if (!e.name) r = O.reject("Invalid arguments");
|
|
703
703
|
else {
|
|
704
|
-
const o = e.name === n.name && a._dbInfo.db ? O.resolve(a._dbInfo.db) :
|
|
704
|
+
const o = e.name === n.name && a._dbInfo.db ? O.resolve(a._dbInfo.db) : Yt(e).then((i) => {
|
|
705
705
|
const s = J[e.name], c = s.forages;
|
|
706
706
|
s.db = i;
|
|
707
707
|
for (var l = 0; l < c.length; l++) c[l]._dbInfo.db = i;
|
|
@@ -731,10 +731,10 @@ function Ba(e, t) {
|
|
|
731
731
|
c.db = u;
|
|
732
732
|
for (let f = 0; f < l.length; f++) {
|
|
733
733
|
const h = l[f];
|
|
734
|
-
h._dbInfo.db = u,
|
|
734
|
+
h._dbInfo.db = u, Ut(h._dbInfo);
|
|
735
735
|
}
|
|
736
736
|
}).catch((u) => {
|
|
737
|
-
throw (
|
|
737
|
+
throw (Bt(e, u) || O.resolve()).catch(() => {
|
|
738
738
|
}), u;
|
|
739
739
|
});
|
|
740
740
|
}) : r = o.then((i) => {
|
|
@@ -759,10 +759,10 @@ function Ba(e, t) {
|
|
|
759
759
|
s.db = u;
|
|
760
760
|
for (var f = 0; f < c.length; f++) {
|
|
761
761
|
const h = c[f];
|
|
762
|
-
|
|
762
|
+
Ut(h._dbInfo);
|
|
763
763
|
}
|
|
764
764
|
}).catch((u) => {
|
|
765
|
-
throw (
|
|
765
|
+
throw (Bt(e, u) || O.resolve()).catch(() => {
|
|
766
766
|
}), u;
|
|
767
767
|
});
|
|
768
768
|
});
|
|
@@ -786,8 +786,8 @@ var Ma = {
|
|
|
786
786
|
function Fa() {
|
|
787
787
|
return typeof openDatabase == "function";
|
|
788
788
|
}
|
|
789
|
-
var fe = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Va = "~~local_forage_type~",
|
|
790
|
-
function
|
|
789
|
+
var fe = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Va = "~~local_forage_type~", hn = /^~~local_forage_type~([^~]+)~/, it = "__lfsc__:", Mt = it.length, Qt = "arbf", Ft = "blob", nr = "si08", rr = "ui08", ar = "uic8", or = "si16", ir = "si32", sr = "ur16", lr = "ui32", ur = "fl32", cr = "fl64", mn = Mt + Qt.length, _n = Object.prototype.toString;
|
|
790
|
+
function fr(e) {
|
|
791
791
|
var t = e.length * 0.75, n = e.length, a, r = 0, o, i, s, c;
|
|
792
792
|
e[e.length - 1] === "=" && (t--, e[e.length - 2] === "=" && t--);
|
|
793
793
|
var l = new ArrayBuffer(t), u = new Uint8Array(l);
|
|
@@ -795,7 +795,7 @@ function ur(e) {
|
|
|
795
795
|
o = fe.indexOf(e[a]), i = fe.indexOf(e[a + 1]), s = fe.indexOf(e[a + 2]), c = fe.indexOf(e[a + 3]), u[r++] = o << 2 | i >> 4, u[r++] = (i & 15) << 4 | s >> 2, u[r++] = (s & 3) << 6 | c & 63;
|
|
796
796
|
return l;
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function Vt(e) {
|
|
799
799
|
var t = new Uint8Array(e), n = "", a;
|
|
800
800
|
for (a = 0; a < t.length; a += 3)
|
|
801
801
|
n += fe[t[a] >> 2], n += fe[(t[a] & 3) << 4 | t[a + 1] >> 4], n += fe[(t[a + 1] & 15) << 2 | t[a + 2] >> 6], n += fe[t[a + 2] & 63];
|
|
@@ -803,14 +803,14 @@ function Mt(e) {
|
|
|
803
803
|
}
|
|
804
804
|
function Ga(e, t) {
|
|
805
805
|
var n = "";
|
|
806
|
-
if (e && (n =
|
|
806
|
+
if (e && (n = _n.call(e)), e && (n === "[object ArrayBuffer]" || e.buffer && _n.call(e.buffer) === "[object ArrayBuffer]")) {
|
|
807
807
|
var a, r = it;
|
|
808
|
-
e instanceof ArrayBuffer ? (a = e, r +=
|
|
808
|
+
e instanceof ArrayBuffer ? (a = e, r += Qt) : (a = e.buffer, n === "[object Int8Array]" ? r += nr : n === "[object Uint8Array]" ? r += rr : n === "[object Uint8ClampedArray]" ? r += ar : n === "[object Int16Array]" ? r += or : n === "[object Uint16Array]" ? r += sr : n === "[object Int32Array]" ? r += ir : n === "[object Uint32Array]" ? r += lr : n === "[object Float32Array]" ? r += ur : n === "[object Float64Array]" ? r += cr : t(/* @__PURE__ */ new Error("Failed to get type for BinaryArray"))), t(r + Vt(a));
|
|
809
809
|
} else if (n === "[object Blob]") {
|
|
810
810
|
var o = new FileReader();
|
|
811
811
|
o.onload = function() {
|
|
812
|
-
var i = Va + e.type + "~" +
|
|
813
|
-
t(it +
|
|
812
|
+
var i = Va + e.type + "~" + Vt(this.result);
|
|
813
|
+
t(it + Ft + i);
|
|
814
814
|
}, o.readAsArrayBuffer(e);
|
|
815
815
|
} else try {
|
|
816
816
|
t(JSON.stringify(e));
|
|
@@ -819,47 +819,47 @@ function Ga(e, t) {
|
|
|
819
819
|
}
|
|
820
820
|
}
|
|
821
821
|
function $a(e) {
|
|
822
|
-
if (e.substring(0,
|
|
823
|
-
var t = e.substring(
|
|
824
|
-
if (n ===
|
|
825
|
-
var r = t.match(
|
|
822
|
+
if (e.substring(0, Mt) !== it) return JSON.parse(e);
|
|
823
|
+
var t = e.substring(mn), n = e.substring(Mt, mn), a;
|
|
824
|
+
if (n === Ft && hn.test(t)) {
|
|
825
|
+
var r = t.match(hn);
|
|
826
826
|
a = r[1], t = t.substring(r[0].length);
|
|
827
827
|
}
|
|
828
|
-
var o =
|
|
828
|
+
var o = fr(t);
|
|
829
829
|
switch (n) {
|
|
830
|
-
case
|
|
830
|
+
case Qt:
|
|
831
831
|
return o;
|
|
832
|
-
case
|
|
833
|
-
return
|
|
834
|
-
case
|
|
832
|
+
case Ft:
|
|
833
|
+
return Kt([o], { type: a });
|
|
834
|
+
case nr:
|
|
835
835
|
return new Int8Array(o);
|
|
836
|
-
case
|
|
836
|
+
case rr:
|
|
837
837
|
return new Uint8Array(o);
|
|
838
|
-
case
|
|
838
|
+
case ar:
|
|
839
839
|
return new Uint8ClampedArray(o);
|
|
840
|
-
case rr:
|
|
841
|
-
return new Int16Array(o);
|
|
842
840
|
case or:
|
|
841
|
+
return new Int16Array(o);
|
|
842
|
+
case sr:
|
|
843
843
|
return new Uint16Array(o);
|
|
844
|
-
case ar:
|
|
845
|
-
return new Int32Array(o);
|
|
846
844
|
case ir:
|
|
845
|
+
return new Int32Array(o);
|
|
846
|
+
case lr:
|
|
847
847
|
return new Uint32Array(o);
|
|
848
|
-
case
|
|
848
|
+
case ur:
|
|
849
849
|
return new Float32Array(o);
|
|
850
|
-
case
|
|
850
|
+
case cr:
|
|
851
851
|
return new Float64Array(o);
|
|
852
852
|
default:
|
|
853
853
|
throw new Error("Unkown type: " + n);
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
|
-
var
|
|
856
|
+
var Xt = {
|
|
857
857
|
serialize: Ga,
|
|
858
858
|
deserialize: $a,
|
|
859
|
-
stringToBuffer:
|
|
860
|
-
bufferToString:
|
|
859
|
+
stringToBuffer: fr,
|
|
860
|
+
bufferToString: Vt
|
|
861
861
|
};
|
|
862
|
-
function
|
|
862
|
+
function dr(e, t, n, a) {
|
|
863
863
|
e.executeSql(`CREATE TABLE IF NOT EXISTS ${t.storeName} (id INTEGER PRIMARY KEY, key unique, value)`, [], n, a);
|
|
864
864
|
}
|
|
865
865
|
function ja(e) {
|
|
@@ -872,19 +872,19 @@ function ja(e) {
|
|
|
872
872
|
return i(s);
|
|
873
873
|
}
|
|
874
874
|
n.db.transaction(function(s) {
|
|
875
|
-
|
|
875
|
+
dr(s, n, function() {
|
|
876
876
|
t._dbInfo = n, o();
|
|
877
877
|
}, function(c, l) {
|
|
878
878
|
i(l);
|
|
879
879
|
});
|
|
880
880
|
}, i);
|
|
881
881
|
});
|
|
882
|
-
return n.serializer =
|
|
882
|
+
return n.serializer = Xt, r;
|
|
883
883
|
}
|
|
884
884
|
function he(e, t, n, a, r, o) {
|
|
885
885
|
e.executeSql(n, a, r, function(i, s) {
|
|
886
886
|
s.code === s.SYNTAX_ERR ? i.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [t.storeName], function(c, l) {
|
|
887
|
-
l.rows.length ? o(c, s) :
|
|
887
|
+
l.rows.length ? o(c, s) : dr(c, t, function() {
|
|
888
888
|
c.executeSql(n, a, r, o);
|
|
889
889
|
}, o);
|
|
890
890
|
}, o) : o(i, s);
|
|
@@ -930,7 +930,7 @@ function za(e, t) {
|
|
|
930
930
|
});
|
|
931
931
|
return P(a, t), a;
|
|
932
932
|
}
|
|
933
|
-
function
|
|
933
|
+
function hr(e, t, n, a) {
|
|
934
934
|
var r = this;
|
|
935
935
|
e = oe(e);
|
|
936
936
|
var o = new O(function(i, s) {
|
|
@@ -947,7 +947,7 @@ function fr(e, t, n, a) {
|
|
|
947
947
|
}, function(h) {
|
|
948
948
|
if (h.code === h.QUOTA_ERR) {
|
|
949
949
|
if (a > 0) {
|
|
950
|
-
i(
|
|
950
|
+
i(hr.apply(r, [
|
|
951
951
|
e,
|
|
952
952
|
c,
|
|
953
953
|
n,
|
|
@@ -964,7 +964,7 @@ function fr(e, t, n, a) {
|
|
|
964
964
|
return P(o, n), o;
|
|
965
965
|
}
|
|
966
966
|
function qa(e, t, n) {
|
|
967
|
-
return
|
|
967
|
+
return hr.apply(this, [
|
|
968
968
|
e,
|
|
969
969
|
t,
|
|
970
970
|
n,
|
|
@@ -1068,7 +1068,7 @@ function Xa(e) {
|
|
|
1068
1068
|
});
|
|
1069
1069
|
}
|
|
1070
1070
|
function Za(e, t) {
|
|
1071
|
-
t =
|
|
1071
|
+
t = Wt.apply(this, arguments);
|
|
1072
1072
|
var n = this.config();
|
|
1073
1073
|
e = typeof e != "function" && e || {}, e.name || (e.name = e.name || n.name, e.storeName = e.storeName || n.storeName);
|
|
1074
1074
|
var a = this, r;
|
|
@@ -1123,7 +1123,7 @@ function to() {
|
|
|
1123
1123
|
return !1;
|
|
1124
1124
|
}
|
|
1125
1125
|
}
|
|
1126
|
-
function
|
|
1126
|
+
function mr(e, t) {
|
|
1127
1127
|
var n = e.name + "/";
|
|
1128
1128
|
return e.storeName !== t.storeName && (n += e.storeName + "/"), n;
|
|
1129
1129
|
}
|
|
@@ -1141,7 +1141,7 @@ function ro() {
|
|
|
1141
1141
|
function ao(e) {
|
|
1142
1142
|
var t = this, n = {};
|
|
1143
1143
|
if (e) for (var a in e) n[a] = e[a];
|
|
1144
|
-
return n.keyPrefix =
|
|
1144
|
+
return n.keyPrefix = mr(e, t._defaultConfig), ro() ? (t._dbInfo = n, n.serializer = Xt, O.resolve()) : O.reject();
|
|
1145
1145
|
}
|
|
1146
1146
|
function oo(e) {
|
|
1147
1147
|
var t = this, n = t.ready().then(function() {
|
|
@@ -1231,13 +1231,13 @@ function ho(e, t, n) {
|
|
|
1231
1231
|
return P(r, n), r;
|
|
1232
1232
|
}
|
|
1233
1233
|
function mo(e, t) {
|
|
1234
|
-
if (t =
|
|
1234
|
+
if (t = Wt.apply(this, arguments), e = typeof e != "function" && e || {}, !e.name) {
|
|
1235
1235
|
var n = this.config();
|
|
1236
1236
|
e.name = e.name || n.name, e.storeName = e.storeName || n.storeName;
|
|
1237
1237
|
}
|
|
1238
1238
|
var a = this, r;
|
|
1239
1239
|
return e.name ? r = new O(function(o) {
|
|
1240
|
-
e.storeName ? o(
|
|
1240
|
+
e.storeName ? o(mr(e, a._defaultConfig)) : o(`${e.name}/`);
|
|
1241
1241
|
}).then(function(o) {
|
|
1242
1242
|
for (var i = localStorage.length - 1; i >= 0; i--) {
|
|
1243
1243
|
var s = localStorage.key(i);
|
|
@@ -1266,9 +1266,9 @@ var _o = {
|
|
|
1266
1266
|
a++;
|
|
1267
1267
|
}
|
|
1268
1268
|
return !1;
|
|
1269
|
-
},
|
|
1269
|
+
}, _r = Array.isArray || function(e) {
|
|
1270
1270
|
return Object.prototype.toString.call(e) === "[object Array]";
|
|
1271
|
-
}, De = {},
|
|
1271
|
+
}, De = {}, pn = {}, Ce = {
|
|
1272
1272
|
INDEXEDDB: Ma,
|
|
1273
1273
|
WEBSQL: eo,
|
|
1274
1274
|
LOCALSTORAGE: _o
|
|
@@ -1276,7 +1276,7 @@ var _o = {
|
|
|
1276
1276
|
Ce.INDEXEDDB._driver,
|
|
1277
1277
|
Ce.WEBSQL._driver,
|
|
1278
1278
|
Ce.LOCALSTORAGE._driver
|
|
1279
|
-
], Ze = ["dropInstance"],
|
|
1279
|
+
], Ze = ["dropInstance"], St = [
|
|
1280
1280
|
"clear",
|
|
1281
1281
|
"getItem",
|
|
1282
1282
|
"iterate",
|
|
@@ -1301,21 +1301,21 @@ function bo(e, t) {
|
|
|
1301
1301
|
});
|
|
1302
1302
|
};
|
|
1303
1303
|
}
|
|
1304
|
-
function
|
|
1304
|
+
function bt() {
|
|
1305
1305
|
for (let e = 1; e < arguments.length; e++) {
|
|
1306
1306
|
const t = arguments[e];
|
|
1307
1307
|
if (t)
|
|
1308
|
-
for (let n in t) t.hasOwnProperty(n) && (
|
|
1308
|
+
for (let n in t) t.hasOwnProperty(n) && (_r(t[n]) ? arguments[0][n] = t[n].slice() : arguments[0][n] = t[n]);
|
|
1309
1309
|
}
|
|
1310
1310
|
return arguments[0];
|
|
1311
1311
|
}
|
|
1312
|
-
var yo = class
|
|
1312
|
+
var yo = class pr {
|
|
1313
1313
|
constructor(t) {
|
|
1314
1314
|
for (let n in Ce) if (Ce.hasOwnProperty(n)) {
|
|
1315
1315
|
const a = Ce[n], r = a._driver;
|
|
1316
1316
|
this[n] = r, De[r] || this.defineDriver(a);
|
|
1317
1317
|
}
|
|
1318
|
-
this._defaultConfig =
|
|
1318
|
+
this._defaultConfig = bt({}, So), this._config = bt({}, this._defaultConfig, t), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(() => {
|
|
1319
1319
|
});
|
|
1320
1320
|
}
|
|
1321
1321
|
config(t) {
|
|
@@ -1336,7 +1336,7 @@ var yo = class mr {
|
|
|
1336
1336
|
i(c);
|
|
1337
1337
|
return;
|
|
1338
1338
|
}
|
|
1339
|
-
const l =
|
|
1339
|
+
const l = St.concat("_initStorage");
|
|
1340
1340
|
for (let h = 0, d = l.length; h < d; h++) {
|
|
1341
1341
|
const p = l[h];
|
|
1342
1342
|
if ((!go(Ze, p) || t[p]) && typeof t[p] != "function") {
|
|
@@ -1357,7 +1357,7 @@ var yo = class mr {
|
|
|
1357
1357
|
}
|
|
1358
1358
|
})();
|
|
1359
1359
|
const f = function(h) {
|
|
1360
|
-
De[s], De[s] = t,
|
|
1360
|
+
De[s], De[s] = t, pn[s] = h, o();
|
|
1361
1361
|
};
|
|
1362
1362
|
"_support" in t ? t._support && typeof t._support == "function" ? t._support().then(f, i) : f(!!t._support) : f(!0);
|
|
1363
1363
|
} catch (s) {
|
|
@@ -1374,7 +1374,7 @@ var yo = class mr {
|
|
|
1374
1374
|
return Te(r, n, a), r;
|
|
1375
1375
|
}
|
|
1376
1376
|
getSerializer(t) {
|
|
1377
|
-
const n = O.resolve(
|
|
1377
|
+
const n = O.resolve(Xt);
|
|
1378
1378
|
return Te(n, t), n;
|
|
1379
1379
|
}
|
|
1380
1380
|
ready(t) {
|
|
@@ -1383,7 +1383,7 @@ var yo = class mr {
|
|
|
1383
1383
|
}
|
|
1384
1384
|
setDriver(t, n, a) {
|
|
1385
1385
|
const r = this;
|
|
1386
|
-
|
|
1386
|
+
_r(t) || (t = [t]);
|
|
1387
1387
|
const o = this._getSupportedDrivers(t);
|
|
1388
1388
|
function i() {
|
|
1389
1389
|
r._config.driver = r.driver();
|
|
@@ -1418,10 +1418,10 @@ var yo = class mr {
|
|
|
1418
1418
|
}), Te(this._driverSet, n, a), this._driverSet;
|
|
1419
1419
|
}
|
|
1420
1420
|
supports(t) {
|
|
1421
|
-
return !!
|
|
1421
|
+
return !!pn[t];
|
|
1422
1422
|
}
|
|
1423
1423
|
_extend(t) {
|
|
1424
|
-
|
|
1424
|
+
bt(this, t);
|
|
1425
1425
|
}
|
|
1426
1426
|
_getSupportedDrivers(t) {
|
|
1427
1427
|
const n = [];
|
|
@@ -1432,10 +1432,10 @@ var yo = class mr {
|
|
|
1432
1432
|
return n;
|
|
1433
1433
|
}
|
|
1434
1434
|
_wrapLibraryMethodsWithReady() {
|
|
1435
|
-
for (let t = 0, n =
|
|
1435
|
+
for (let t = 0, n = St.length; t < n; t++) bo(this, St[t]);
|
|
1436
1436
|
}
|
|
1437
1437
|
createInstance(t) {
|
|
1438
|
-
return new
|
|
1438
|
+
return new pr(t);
|
|
1439
1439
|
}
|
|
1440
1440
|
}, _e = new yo(), wo = class {
|
|
1441
1441
|
constructor(e) {
|
|
@@ -1564,42 +1564,45 @@ var Co = [
|
|
|
1564
1564
|
"login",
|
|
1565
1565
|
"alone_run",
|
|
1566
1566
|
"none"
|
|
1567
|
-
];
|
|
1568
|
-
function
|
|
1569
|
-
const { sdkConfigData: t } = Re(), n = t.VITE_SY_PRODUCT_SIGN, a =
|
|
1567
|
+
], yt = () => b.localGet("syCacheAppRbac") || "";
|
|
1568
|
+
function ct(e) {
|
|
1569
|
+
const { sdkConfigData: t } = Re(), n = t.VITE_SY_PRODUCT_SIGN, a = yt(), r = (s, c) => {
|
|
1570
1570
|
if (t.MODE == "development" && t.VITE_APP_DEBUG === "on") return !0;
|
|
1571
|
-
if (
|
|
1572
|
-
|
|
1573
|
-
let
|
|
1574
|
-
return
|
|
1571
|
+
if (s = s || "", s = s.trim(), s == "") return !1;
|
|
1572
|
+
s.includes("@") || (s = `${n}@${s}`);
|
|
1573
|
+
let l = c || yt();
|
|
1574
|
+
return l = l.trim(), kt(l) ? l == '"all@all"' || l == "all@all" ? !0 : l.split(",").map((u) => u.trim()).includes(s) : !1;
|
|
1575
1575
|
};
|
|
1576
1576
|
return {
|
|
1577
1577
|
checkPermission: r,
|
|
1578
|
-
checkRoute: (
|
|
1579
|
-
let
|
|
1580
|
-
return !!(Co.includes(
|
|
1578
|
+
checkRoute: (s) => {
|
|
1579
|
+
let c = Yn(s).name;
|
|
1580
|
+
return !!(Co.includes(c) || r(c, a));
|
|
1581
|
+
},
|
|
1582
|
+
permission_auth: (s) => {
|
|
1583
|
+
let c = Object.prototype.toString.call(s);
|
|
1584
|
+
if (c != "[object String]" && c != "[object Array]") return !1;
|
|
1585
|
+
const l = yt();
|
|
1586
|
+
if (c == "[object String]") return r(s, l);
|
|
1587
|
+
if (c === "[object Array]") {
|
|
1588
|
+
for (const u of s) if (!r(u, l)) return !1;
|
|
1589
|
+
return !0;
|
|
1590
|
+
}
|
|
1591
|
+
return !1;
|
|
1581
1592
|
}
|
|
1582
1593
|
};
|
|
1583
1594
|
}
|
|
1584
|
-
function
|
|
1585
|
-
let t = Object.prototype.toString.call(e);
|
|
1586
|
-
if (t != "[object String]" && t != "[object Array]") return !1;
|
|
1587
|
-
let n = b.localGet("syCacheAppRbac") || "";
|
|
1588
|
-
if (t == "[object String]") return checkPermission(e, n);
|
|
1589
|
-
if (t === "[object Array]") {
|
|
1590
|
-
for (const a of e) if (!checkPermission(a, n)) return !1;
|
|
1591
|
-
return !0;
|
|
1592
|
-
}
|
|
1593
|
-
return !1;
|
|
1594
|
-
}
|
|
1595
|
-
function _n(e, t, n) {
|
|
1595
|
+
function gn(e, t, n) {
|
|
1596
1596
|
const a = t.value;
|
|
1597
|
-
if (a)
|
|
1598
|
-
|
|
1599
|
-
|
|
1597
|
+
if (a) {
|
|
1598
|
+
const { permission_auth: r } = ct();
|
|
1599
|
+
r(a) || e.parentNode && e.parentNode.removeChild(e);
|
|
1600
|
+
} else throw new Error(`需要指定权限标识! 如:v-auth="'xxxx_add'" 或 v-auth="['xxxx_xxx']"`);
|
|
1600
1601
|
}
|
|
1601
1602
|
function Oo(e, t, n) {
|
|
1602
|
-
n = n || "vue3"
|
|
1603
|
+
n = n || "vue3";
|
|
1604
|
+
const { permission_auth: a } = ct();
|
|
1605
|
+
n == "vue2" ? e.directive("auth", { inserted: gn }) : e.directive("auth", { mounted: gn }), t.$_auth = a;
|
|
1603
1606
|
}
|
|
1604
1607
|
var Io = {}, Ro = {
|
|
1605
1608
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1760,7 +1763,7 @@ function ri(e, t, n, a, r, o) {
|
|
|
1760
1763
|
type: "danger",
|
|
1761
1764
|
max: 999,
|
|
1762
1765
|
value: o.currBadge(f.meta.badge),
|
|
1763
|
-
style:
|
|
1766
|
+
style: Pt(o.badgeStyle)
|
|
1764
1767
|
}, null, 8, ["value", "style"])) : U("", !0)], 64)) : U("", !0)]),
|
|
1765
1768
|
_: 2
|
|
1766
1769
|
}, 1032, ["index", "onClick"]))], 64)) : U("", !0)], 64))), 256);
|
|
@@ -1971,10 +1974,10 @@ function gr(e, t) {
|
|
|
1971
1974
|
return e.apply(t, arguments);
|
|
1972
1975
|
};
|
|
1973
1976
|
}
|
|
1974
|
-
var { toString: Ai } = Object.prototype, { getPrototypeOf:
|
|
1977
|
+
var { toString: Ai } = Object.prototype, { getPrototypeOf: Zt } = Object, { iterator: ft, toStringTag: vr } = Symbol, dt = /* @__PURE__ */ ((e) => (t) => {
|
|
1975
1978
|
const n = Ai.call(t);
|
|
1976
1979
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
1977
|
-
})(/* @__PURE__ */ Object.create(null)), ee = (e) => (e = e.toLowerCase(), (t) =>
|
|
1980
|
+
})(/* @__PURE__ */ Object.create(null)), ee = (e) => (e = e.toLowerCase(), (t) => dt(t) === e), ht = (e) => (t) => typeof t === e, { isArray: Ne } = Array, Ie = ht("undefined");
|
|
1978
1981
|
function Ge(e) {
|
|
1979
1982
|
return e !== null && !Ie(e) && e.constructor !== null && !Ie(e.constructor) && q(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
1980
1983
|
}
|
|
@@ -1983,10 +1986,10 @@ function Ei(e) {
|
|
|
1983
1986
|
let t;
|
|
1984
1987
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Sr(e.buffer), t;
|
|
1985
1988
|
}
|
|
1986
|
-
var Ti =
|
|
1987
|
-
if (
|
|
1988
|
-
const t =
|
|
1989
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(vr in e) && !(
|
|
1989
|
+
var Ti = ht("string"), q = ht("function"), br = ht("number"), $e = (e) => e !== null && typeof e == "object", Ci = (e) => e === !0 || e === !1, et = (e) => {
|
|
1990
|
+
if (dt(e) !== "object") return !1;
|
|
1991
|
+
const t = Zt(e);
|
|
1992
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(vr in e) && !(ft in e);
|
|
1990
1993
|
}, Oi = (e) => {
|
|
1991
1994
|
if (!$e(e) || Ge(e)) return !1;
|
|
1992
1995
|
try {
|
|
@@ -1998,9 +2001,9 @@ var Ti = dt("string"), q = dt("function"), br = dt("number"), $e = (e) => e !==
|
|
|
1998
2001
|
function xi() {
|
|
1999
2002
|
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
2000
2003
|
}
|
|
2001
|
-
var
|
|
2004
|
+
var vn = xi(), Sn = typeof vn.FormData < "u" ? vn.FormData : void 0, Ui = (e) => {
|
|
2002
2005
|
let t;
|
|
2003
|
-
return e && (
|
|
2006
|
+
return e && (Sn && e instanceof Sn || q(e.append) && ((t = dt(e)) === "formdata" || t === "object" && q(e.toString) && e.toString() === "[object FormData]"));
|
|
2004
2007
|
}, Bi = ee("URLSearchParams"), [Mi, Fi, Vi, Gi] = [
|
|
2005
2008
|
"ReadableStream",
|
|
2006
2009
|
"Request",
|
|
@@ -2029,11 +2032,11 @@ function yr(e, t) {
|
|
|
2029
2032
|
return null;
|
|
2030
2033
|
}
|
|
2031
2034
|
var ve = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, wr = (e) => !Ie(e) && e !== ve;
|
|
2032
|
-
function
|
|
2035
|
+
function Gt() {
|
|
2033
2036
|
const { caseless: e, skipUndefined: t } = wr(this) && this || {}, n = {}, a = (r, o) => {
|
|
2034
2037
|
if (o === "__proto__" || o === "constructor" || o === "prototype") return;
|
|
2035
2038
|
const i = e && yr(n, o) || o;
|
|
2036
|
-
et(n[i]) && et(r) ? n[i] =
|
|
2039
|
+
et(n[i]) && et(r) ? n[i] = Gt(n[i], r) : et(r) ? n[i] = Gt({}, r) : Ne(r) ? n[i] = r.slice() : (!t || !Ie(r)) && (n[i] = r);
|
|
2037
2040
|
};
|
|
2038
2041
|
for (let r = 0, o = arguments.length; r < o; r++) arguments[r] && je(arguments[r], a);
|
|
2039
2042
|
return n;
|
|
@@ -2064,7 +2067,7 @@ var ji = (e, t, n, { allOwnKeys: a } = {}) => (je(t, (r, o) => {
|
|
|
2064
2067
|
do {
|
|
2065
2068
|
for (r = Object.getOwnPropertyNames(e), o = r.length; o-- > 0; )
|
|
2066
2069
|
i = r[o], (!a || a(i, e, t)) && !s[i] && (t[i] = e[i], s[i] = !0);
|
|
2067
|
-
e = n !== !1 &&
|
|
2070
|
+
e = n !== !1 && Zt(e);
|
|
2068
2071
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
2069
2072
|
return t;
|
|
2070
2073
|
}, Ki = (e, t, n) => {
|
|
@@ -2079,8 +2082,8 @@ var ji = (e, t, n, { allOwnKeys: a } = {}) => (je(t, (r, o) => {
|
|
|
2079
2082
|
const n = new Array(t);
|
|
2080
2083
|
for (; t-- > 0; ) n[t] = e[t];
|
|
2081
2084
|
return n;
|
|
2082
|
-
}, Yi = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" &&
|
|
2083
|
-
const n = (e && e[
|
|
2085
|
+
}, Yi = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Zt(Uint8Array)), Ji = (e, t) => {
|
|
2086
|
+
const n = (e && e[ft]).call(e);
|
|
2084
2087
|
let a;
|
|
2085
2088
|
for (; (a = n.next()) && !a.done; ) {
|
|
2086
2089
|
const r = a.value;
|
|
@@ -2093,7 +2096,7 @@ var ji = (e, t, n, { allOwnKeys: a } = {}) => (je(t, (r, o) => {
|
|
|
2093
2096
|
return a;
|
|
2094
2097
|
}, Xi = ee("HTMLFormElement"), Zi = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, a, r) {
|
|
2095
2098
|
return a.toUpperCase() + r;
|
|
2096
|
-
}),
|
|
2099
|
+
}), bn = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), es = ee("RegExp"), Ar = (e, t) => {
|
|
2097
2100
|
const n = Object.getOwnPropertyDescriptors(e), a = {};
|
|
2098
2101
|
je(n, (r, o) => {
|
|
2099
2102
|
let i;
|
|
@@ -2127,7 +2130,7 @@ var ji = (e, t, n, { allOwnKeys: a } = {}) => (je(t, (r, o) => {
|
|
|
2127
2130
|
}, rs = () => {
|
|
2128
2131
|
}, as = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
2129
2132
|
function os(e) {
|
|
2130
|
-
return !!(e && q(e.append) && e[vr] === "FormData" && e[
|
|
2133
|
+
return !!(e && q(e.append) && e[vr] === "FormData" && e[ft]);
|
|
2131
2134
|
}
|
|
2132
2135
|
var is = (e) => {
|
|
2133
2136
|
const t = new Array(10), n = (a, r) => {
|
|
@@ -2150,7 +2153,7 @@ var is = (e) => {
|
|
|
2150
2153
|
r === ve && o === n && a.length && a.shift()();
|
|
2151
2154
|
}, !1), (r) => {
|
|
2152
2155
|
a.push(r), ve.postMessage(n, "*");
|
|
2153
|
-
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", q(ve.postMessage)), us = typeof queueMicrotask < "u" ? queueMicrotask.bind(ve) : typeof process < "u" && process.nextTick || Er, cs = (e) => e != null && q(e[
|
|
2156
|
+
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", q(ve.postMessage)), us = typeof queueMicrotask < "u" ? queueMicrotask.bind(ve) : typeof process < "u" && process.nextTick || Er, cs = (e) => e != null && q(e[ft]), m = {
|
|
2154
2157
|
isArray: Ne,
|
|
2155
2158
|
isArrayBuffer: Sr,
|
|
2156
2159
|
isBuffer: Ge,
|
|
@@ -2179,21 +2182,21 @@ var is = (e) => {
|
|
|
2179
2182
|
isTypedArray: Yi,
|
|
2180
2183
|
isFileList: ki,
|
|
2181
2184
|
forEach: je,
|
|
2182
|
-
merge:
|
|
2185
|
+
merge: Gt,
|
|
2183
2186
|
extend: ji,
|
|
2184
2187
|
trim: $i,
|
|
2185
2188
|
stripBOM: Hi,
|
|
2186
2189
|
inherits: zi,
|
|
2187
2190
|
toFlatObject: qi,
|
|
2188
|
-
kindOf:
|
|
2191
|
+
kindOf: dt,
|
|
2189
2192
|
kindOfTest: ee,
|
|
2190
2193
|
endsWith: Ki,
|
|
2191
2194
|
toArray: Wi,
|
|
2192
2195
|
forEachEntry: Ji,
|
|
2193
2196
|
matchAll: Qi,
|
|
2194
2197
|
isHTMLForm: Xi,
|
|
2195
|
-
hasOwnProperty:
|
|
2196
|
-
hasOwnProp:
|
|
2198
|
+
hasOwnProperty: bn,
|
|
2199
|
+
hasOwnProp: bn,
|
|
2197
2200
|
reduceDescriptors: Ar,
|
|
2198
2201
|
freezeMethods: ts,
|
|
2199
2202
|
toObjectSet: ns,
|
|
@@ -2251,24 +2254,24 @@ I.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
|
2251
2254
|
I.ERR_CANCELED = "ERR_CANCELED";
|
|
2252
2255
|
I.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
2253
2256
|
I.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
2254
|
-
function
|
|
2257
|
+
function $t(e) {
|
|
2255
2258
|
return m.isPlainObject(e) || m.isArray(e);
|
|
2256
2259
|
}
|
|
2257
2260
|
function Cr(e) {
|
|
2258
2261
|
return m.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
2259
2262
|
}
|
|
2260
|
-
function
|
|
2263
|
+
function wt(e, t, n) {
|
|
2261
2264
|
return e ? e.concat(t).map(function(r, o) {
|
|
2262
2265
|
return r = Cr(r), !n && o ? "[" + r + "]" : r;
|
|
2263
2266
|
}).join(n ? "." : "") : t;
|
|
2264
2267
|
}
|
|
2265
2268
|
function fs(e) {
|
|
2266
|
-
return m.isArray(e) && !e.some(
|
|
2269
|
+
return m.isArray(e) && !e.some($t);
|
|
2267
2270
|
}
|
|
2268
2271
|
var ds = m.toFlatObject(m, {}, null, function(t) {
|
|
2269
2272
|
return /^is[A-Z]/.test(t);
|
|
2270
2273
|
});
|
|
2271
|
-
function
|
|
2274
|
+
function mt(e, t, n) {
|
|
2272
2275
|
if (!m.isObject(e)) throw new TypeError("target must be an object");
|
|
2273
2276
|
t = t || new FormData(), n = m.toFlatObject(n, {
|
|
2274
2277
|
metaTokens: !0,
|
|
@@ -2289,21 +2292,21 @@ function ht(e, t, n) {
|
|
|
2289
2292
|
function l(d, p, S) {
|
|
2290
2293
|
let y = d;
|
|
2291
2294
|
if (m.isReactNative(t) && m.isReactNativeBlob(d))
|
|
2292
|
-
return t.append(
|
|
2295
|
+
return t.append(wt(S, p, o), c(d)), !1;
|
|
2293
2296
|
if (d && !S && typeof d == "object") {
|
|
2294
2297
|
if (m.endsWith(p, "{}"))
|
|
2295
2298
|
p = a ? p : p.slice(0, -2), d = JSON.stringify(d);
|
|
2296
2299
|
else if (m.isArray(d) && fs(d) || (m.isFileList(d) || m.endsWith(p, "[]")) && (y = m.toArray(d)))
|
|
2297
2300
|
return p = Cr(p), y.forEach(function(w, T) {
|
|
2298
|
-
!(m.isUndefined(w) || w === null) && t.append(i === !0 ?
|
|
2301
|
+
!(m.isUndefined(w) || w === null) && t.append(i === !0 ? wt([p], T, o) : i === null ? p : p + "[]", c(w));
|
|
2299
2302
|
}), !1;
|
|
2300
2303
|
}
|
|
2301
|
-
return
|
|
2304
|
+
return $t(d) ? !0 : (t.append(wt(S, p, o), c(d)), !1);
|
|
2302
2305
|
}
|
|
2303
2306
|
const u = [], f = Object.assign(ds, {
|
|
2304
2307
|
defaultVisitor: l,
|
|
2305
2308
|
convertValue: c,
|
|
2306
|
-
isVisitable:
|
|
2309
|
+
isVisitable: $t
|
|
2307
2310
|
});
|
|
2308
2311
|
function h(d, p) {
|
|
2309
2312
|
if (!m.isUndefined(d)) {
|
|
@@ -2316,7 +2319,7 @@ function ht(e, t, n) {
|
|
|
2316
2319
|
if (!m.isObject(e)) throw new TypeError("data must be an object");
|
|
2317
2320
|
return h(e), t;
|
|
2318
2321
|
}
|
|
2319
|
-
function
|
|
2322
|
+
function yn(e) {
|
|
2320
2323
|
const t = {
|
|
2321
2324
|
"!": "%21",
|
|
2322
2325
|
"'": "%27",
|
|
@@ -2330,17 +2333,17 @@ function Sn(e) {
|
|
|
2330
2333
|
return t[a];
|
|
2331
2334
|
});
|
|
2332
2335
|
}
|
|
2333
|
-
function
|
|
2334
|
-
this._pairs = [], e &&
|
|
2336
|
+
function en(e, t) {
|
|
2337
|
+
this._pairs = [], e && mt(e, this, t);
|
|
2335
2338
|
}
|
|
2336
|
-
var Or =
|
|
2339
|
+
var Or = en.prototype;
|
|
2337
2340
|
Or.append = function(t, n) {
|
|
2338
2341
|
this._pairs.push([t, n]);
|
|
2339
2342
|
};
|
|
2340
2343
|
Or.toString = function(t) {
|
|
2341
2344
|
const n = t ? function(a) {
|
|
2342
|
-
return t.call(this, a,
|
|
2343
|
-
} :
|
|
2345
|
+
return t.call(this, a, yn);
|
|
2346
|
+
} : yn;
|
|
2344
2347
|
return this._pairs.map(function(r) {
|
|
2345
2348
|
return n(r[0]) + "=" + n(r[1]);
|
|
2346
2349
|
}, "").join("&");
|
|
@@ -2352,13 +2355,13 @@ function Ir(e, t, n) {
|
|
|
2352
2355
|
if (!t) return e;
|
|
2353
2356
|
const a = n && n.encode || hs, r = m.isFunction(n) ? { serialize: n } : n, o = r && r.serialize;
|
|
2354
2357
|
let i;
|
|
2355
|
-
if (o ? i = o(t, r) : i = m.isURLSearchParams(t) ? t.toString() : new
|
|
2358
|
+
if (o ? i = o(t, r) : i = m.isURLSearchParams(t) ? t.toString() : new en(t, r).toString(a), i) {
|
|
2356
2359
|
const s = e.indexOf("#");
|
|
2357
2360
|
s !== -1 && (e = e.slice(0, s)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
|
|
2358
2361
|
}
|
|
2359
2362
|
return e;
|
|
2360
2363
|
}
|
|
2361
|
-
var
|
|
2364
|
+
var wn = class {
|
|
2362
2365
|
constructor() {
|
|
2363
2366
|
this.handlers = [];
|
|
2364
2367
|
}
|
|
@@ -2381,12 +2384,12 @@ var bn = class {
|
|
|
2381
2384
|
n !== null && e(n);
|
|
2382
2385
|
});
|
|
2383
2386
|
}
|
|
2384
|
-
},
|
|
2387
|
+
}, tn = {
|
|
2385
2388
|
silentJSONParsing: !0,
|
|
2386
2389
|
forcedJSONParsing: !0,
|
|
2387
2390
|
clarifyTimeoutError: !1,
|
|
2388
2391
|
legacyInterceptorReqResOrdering: !0
|
|
2389
|
-
}, ms = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
2392
|
+
}, ms = typeof URLSearchParams < "u" ? URLSearchParams : en, _s = typeof FormData < "u" ? FormData : null, ps = typeof Blob < "u" ? Blob : null, gs = {
|
|
2390
2393
|
isBrowser: !0,
|
|
2391
2394
|
classes: {
|
|
2392
2395
|
URLSearchParams: ms,
|
|
@@ -2402,21 +2405,21 @@ var bn = class {
|
|
|
2402
2405
|
"data"
|
|
2403
2406
|
]
|
|
2404
2407
|
}, vs = /* @__PURE__ */ da({
|
|
2405
|
-
hasBrowserEnv: () =>
|
|
2408
|
+
hasBrowserEnv: () => nn,
|
|
2406
2409
|
hasStandardBrowserEnv: () => Ss,
|
|
2407
2410
|
hasStandardBrowserWebWorkerEnv: () => bs,
|
|
2408
|
-
navigator: () =>
|
|
2411
|
+
navigator: () => jt,
|
|
2409
2412
|
origin: () => ys
|
|
2410
|
-
}),
|
|
2413
|
+
}), nn = typeof window < "u" && typeof document < "u", jt = typeof navigator == "object" && navigator || void 0, Ss = nn && (!jt || [
|
|
2411
2414
|
"ReactNative",
|
|
2412
2415
|
"NativeScript",
|
|
2413
2416
|
"NS"
|
|
2414
|
-
].indexOf(
|
|
2417
|
+
].indexOf(jt.product) < 0), bs = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ys = nn && window.location.href || "http://localhost", $ = {
|
|
2415
2418
|
...vs,
|
|
2416
2419
|
...gs
|
|
2417
2420
|
};
|
|
2418
2421
|
function ws(e, t) {
|
|
2419
|
-
return
|
|
2422
|
+
return mt(e, new $.classes.URLSearchParams(), {
|
|
2420
2423
|
visitor: function(n, a, r, o) {
|
|
2421
2424
|
return $.isNode && m.isBuffer(n) ? (this.append(a, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
2422
2425
|
},
|
|
@@ -2459,7 +2462,7 @@ function Ts(e, t, n) {
|
|
|
2459
2462
|
return (n || JSON.stringify)(e);
|
|
2460
2463
|
}
|
|
2461
2464
|
var He = {
|
|
2462
|
-
transitional:
|
|
2465
|
+
transitional: tn,
|
|
2463
2466
|
adapter: [
|
|
2464
2467
|
"xhr",
|
|
2465
2468
|
"http",
|
|
@@ -2477,7 +2480,7 @@ var He = {
|
|
|
2477
2480
|
if (a.indexOf("application/x-www-form-urlencoded") > -1) return ws(t, this.formSerializer).toString();
|
|
2478
2481
|
if ((i = m.isFileList(t)) || a.indexOf("multipart/form-data") > -1) {
|
|
2479
2482
|
const s = this.env && this.env.FormData;
|
|
2480
|
-
return
|
|
2483
|
+
return mt(i ? { "files[]": t } : t, s && new s(), this.formSerializer);
|
|
2481
2484
|
}
|
|
2482
2485
|
}
|
|
2483
2486
|
return o || r ? (n.setContentType("application/json", !1), Ts(t)) : t;
|
|
@@ -2548,7 +2551,7 @@ var Cs = m.toObjectSet([
|
|
|
2548
2551
|
`).forEach(function(i) {
|
|
2549
2552
|
r = i.indexOf(":"), n = i.substring(0, r).trim().toLowerCase(), a = i.substring(r + 1).trim(), !(!n || t[n] && Cs[n]) && (n === "set-cookie" ? t[n] ? t[n].push(a) : t[n] = [a] : t[n] = t[n] ? t[n] + ", " + a : a);
|
|
2550
2553
|
}), t;
|
|
2551
|
-
},
|
|
2554
|
+
}, An = /* @__PURE__ */ Symbol("internals");
|
|
2552
2555
|
function ke(e) {
|
|
2553
2556
|
return e && String(e).trim().toLowerCase();
|
|
2554
2557
|
}
|
|
@@ -2562,7 +2565,7 @@ function Is(e) {
|
|
|
2562
2565
|
return t;
|
|
2563
2566
|
}
|
|
2564
2567
|
var Rs = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
2565
|
-
function
|
|
2568
|
+
function At(e, t, n, a, r) {
|
|
2566
2569
|
if (m.isFunction(a)) return a.call(this, t, n);
|
|
2567
2570
|
if (r && (t = n), !!m.isString(t)) {
|
|
2568
2571
|
if (m.isString(a)) return t.indexOf(a) !== -1;
|
|
@@ -2628,7 +2631,7 @@ var K = class {
|
|
|
2628
2631
|
has(e, t) {
|
|
2629
2632
|
if (e = ke(e), e) {
|
|
2630
2633
|
const n = m.findKey(this, e);
|
|
2631
|
-
return !!(n && this[n] !== void 0 && (!t ||
|
|
2634
|
+
return !!(n && this[n] !== void 0 && (!t || At(this, this[n], n, t)));
|
|
2632
2635
|
}
|
|
2633
2636
|
return !1;
|
|
2634
2637
|
}
|
|
@@ -2638,7 +2641,7 @@ var K = class {
|
|
|
2638
2641
|
function r(o) {
|
|
2639
2642
|
if (o = ke(o), o) {
|
|
2640
2643
|
const i = m.findKey(n, o);
|
|
2641
|
-
i && (!t ||
|
|
2644
|
+
i && (!t || At(n, n[i], i, t)) && (delete n[i], a = !0);
|
|
2642
2645
|
}
|
|
2643
2646
|
}
|
|
2644
2647
|
return m.isArray(e) ? e.forEach(r) : r(e), a;
|
|
@@ -2648,7 +2651,7 @@ var K = class {
|
|
|
2648
2651
|
let n = t.length, a = !1;
|
|
2649
2652
|
for (; n--; ) {
|
|
2650
2653
|
const r = t[n];
|
|
2651
|
-
(!e ||
|
|
2654
|
+
(!e || At(this, this[r], r, e, !0)) && (delete this[r], a = !0);
|
|
2652
2655
|
}
|
|
2653
2656
|
return a;
|
|
2654
2657
|
}
|
|
@@ -2694,7 +2697,7 @@ var K = class {
|
|
|
2694
2697
|
return t.forEach((a) => n.set(a)), n;
|
|
2695
2698
|
}
|
|
2696
2699
|
static accessor(e) {
|
|
2697
|
-
const t = (this[
|
|
2700
|
+
const t = (this[An] = this[An] = { accessors: {} }).accessors, n = this.prototype;
|
|
2698
2701
|
function a(r) {
|
|
2699
2702
|
const o = ke(r);
|
|
2700
2703
|
t[o] || (Ds(n, r), t[o] = !0);
|
|
@@ -2720,7 +2723,7 @@ m.reduceDescriptors(K.prototype, ({ value: e }, t) => {
|
|
|
2720
2723
|
};
|
|
2721
2724
|
});
|
|
2722
2725
|
m.freezeMethods(K);
|
|
2723
|
-
function
|
|
2726
|
+
function Et(e, t) {
|
|
2724
2727
|
const n = this || He, a = t || n, r = K.from(a.headers);
|
|
2725
2728
|
let o = a.data;
|
|
2726
2729
|
return m.forEach(e, function(s) {
|
|
@@ -2787,14 +2790,14 @@ var st = (e, t, n = 3) => {
|
|
|
2787
2790
|
[t ? "download" : "upload"]: !0
|
|
2788
2791
|
});
|
|
2789
2792
|
}, n);
|
|
2790
|
-
},
|
|
2793
|
+
}, En = (e, t) => {
|
|
2791
2794
|
const n = e != null;
|
|
2792
2795
|
return [(a) => t[0]({
|
|
2793
2796
|
lengthComputable: n,
|
|
2794
2797
|
total: e,
|
|
2795
2798
|
loaded: a
|
|
2796
2799
|
}), t[1]];
|
|
2797
|
-
},
|
|
2800
|
+
}, Tn = (e) => (...t) => m.asap(() => e(...t)), xs = $.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, $.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(new URL($.origin), $.navigator && /(msie|trident)/i.test($.navigator.userAgent)) : () => !0, Us = $.hasStandardBrowserEnv ? {
|
|
2798
2801
|
write(e, t, n, a, r, o, i) {
|
|
2799
2802
|
if (typeof document > "u") return;
|
|
2800
2803
|
const s = [`${e}=${encodeURIComponent(t)}`];
|
|
@@ -2827,7 +2830,7 @@ function Lr(e, t, n) {
|
|
|
2827
2830
|
let a = !Bs(t);
|
|
2828
2831
|
return e && (a || n == !1) ? Ms(e, t) : t;
|
|
2829
2832
|
}
|
|
2830
|
-
var
|
|
2833
|
+
var Cn = (e) => e instanceof K ? { ...e } : e;
|
|
2831
2834
|
function be(e, t) {
|
|
2832
2835
|
t = t || {};
|
|
2833
2836
|
const n = {};
|
|
@@ -2880,7 +2883,7 @@ function be(e, t) {
|
|
|
2880
2883
|
socketPath: i,
|
|
2881
2884
|
responseEncoding: i,
|
|
2882
2885
|
validateStatus: s,
|
|
2883
|
-
headers: (l, u, f) => r(
|
|
2886
|
+
headers: (l, u, f) => r(Cn(l), Cn(u), f, !0)
|
|
2884
2887
|
};
|
|
2885
2888
|
return m.forEach(Object.keys({
|
|
2886
2889
|
...e,
|
|
@@ -2944,7 +2947,7 @@ var kr = (e) => {
|
|
|
2944
2947
|
D.event = C || null, a(D), y = null;
|
|
2945
2948
|
}, y.ontimeout = function() {
|
|
2946
2949
|
let C = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
|
|
2947
|
-
const D = r.transitional ||
|
|
2950
|
+
const D = r.transitional || tn;
|
|
2948
2951
|
r.timeoutErrorMessage && (C = r.timeoutErrorMessage), a(new I(C, D.clarifyTimeoutError ? I.ETIMEDOUT : I.ECONNABORTED, e, y)), y = null;
|
|
2949
2952
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in y && m.forEach(i.toJSON(), function(C, D) {
|
|
2950
2953
|
y.setRequestHeader(D, C);
|
|
@@ -3007,7 +3010,7 @@ var kr = (e) => {
|
|
|
3007
3010
|
} finally {
|
|
3008
3011
|
await t.cancel();
|
|
3009
3012
|
}
|
|
3010
|
-
},
|
|
3013
|
+
}, On = (e, t, n, a) => {
|
|
3011
3014
|
const r = js(e, t);
|
|
3012
3015
|
let o = 0, i, s = (c) => {
|
|
3013
3016
|
i || (i = !0, a && a(c));
|
|
@@ -3030,10 +3033,10 @@ var kr = (e) => {
|
|
|
3030
3033
|
return s(c), r.return();
|
|
3031
3034
|
}
|
|
3032
3035
|
}, { highWaterMark: 2 });
|
|
3033
|
-
},
|
|
3036
|
+
}, In = 64 * 1024, { isFunction: Qe } = m, zs = (({ Request: e, Response: t }) => ({
|
|
3034
3037
|
Request: e,
|
|
3035
3038
|
Response: t
|
|
3036
|
-
}))(m.global), { ReadableStream:
|
|
3039
|
+
}))(m.global), { ReadableStream: Rn, TextEncoder: Nn } = m.global, Dn = (e, ...t) => {
|
|
3037
3040
|
try {
|
|
3038
3041
|
return !!e(...t);
|
|
3039
3042
|
} catch {
|
|
@@ -3043,17 +3046,17 @@ var kr = (e) => {
|
|
|
3043
3046
|
e = m.merge.call({ skipUndefined: !0 }, zs, e);
|
|
3044
3047
|
const { fetch: t, Request: n, Response: a } = e, r = t ? Qe(t) : typeof fetch == "function", o = Qe(n), i = Qe(a);
|
|
3045
3048
|
if (!r) return !1;
|
|
3046
|
-
const s = r && Qe(
|
|
3049
|
+
const s = r && Qe(Rn), c = r && (typeof Nn == "function" ? /* @__PURE__ */ ((p) => (S) => p.encode(S))(new Nn()) : async (p) => new Uint8Array(await new n(p).arrayBuffer())), l = o && s && Dn(() => {
|
|
3047
3050
|
let p = !1;
|
|
3048
3051
|
const S = new n($.origin, {
|
|
3049
|
-
body: new
|
|
3052
|
+
body: new Rn(),
|
|
3050
3053
|
method: "POST",
|
|
3051
3054
|
get duplex() {
|
|
3052
3055
|
return p = !0, "half";
|
|
3053
3056
|
}
|
|
3054
3057
|
}).headers.has("Content-Type");
|
|
3055
3058
|
return p && !S;
|
|
3056
|
-
}), u = i && s &&
|
|
3059
|
+
}), u = i && s && Dn(() => m.isReadableStream(new a("").body)), f = { stream: u && ((p) => p.body) };
|
|
3057
3060
|
r && [
|
|
3058
3061
|
"text",
|
|
3059
3062
|
"arrayBuffer",
|
|
@@ -3087,21 +3090,21 @@ var kr = (e) => {
|
|
|
3087
3090
|
const Q = ye && ye.unsubscribe && (() => {
|
|
3088
3091
|
ye.unsubscribe();
|
|
3089
3092
|
});
|
|
3090
|
-
let
|
|
3093
|
+
let on;
|
|
3091
3094
|
try {
|
|
3092
|
-
if (j && l && y !== "get" && y !== "head" && (
|
|
3095
|
+
if (j && l && y !== "get" && y !== "head" && (on = await d(W, L)) !== 0) {
|
|
3093
3096
|
let ue = new n(S, {
|
|
3094
3097
|
method: "POST",
|
|
3095
3098
|
body: L,
|
|
3096
3099
|
duplex: "half"
|
|
3097
3100
|
}), we;
|
|
3098
3101
|
if (m.isFormData(L) && (we = ue.headers.get("content-type")) && W.setContentType(we), ue.body) {
|
|
3099
|
-
const [
|
|
3100
|
-
L =
|
|
3102
|
+
const [vt, We] = En(on, st(Tn(j)));
|
|
3103
|
+
L = On(ue.body, In, vt, We);
|
|
3101
3104
|
}
|
|
3102
3105
|
}
|
|
3103
3106
|
m.isString(H) || (H = H ? "include" : "omit");
|
|
3104
|
-
const z = o && "credentials" in n.prototype,
|
|
3107
|
+
const z = o && "credentials" in n.prototype, sn = {
|
|
3105
3108
|
...se,
|
|
3106
3109
|
signal: ye,
|
|
3107
3110
|
method: y.toUpperCase(),
|
|
@@ -3110,26 +3113,26 @@ var kr = (e) => {
|
|
|
3110
3113
|
duplex: "half",
|
|
3111
3114
|
credentials: z ? H : void 0
|
|
3112
3115
|
};
|
|
3113
|
-
me = o && new n(S,
|
|
3114
|
-
let le = await (o ? Ke(me, se) : Ke(S,
|
|
3115
|
-
const
|
|
3116
|
-
if (u && (D ||
|
|
3116
|
+
me = o && new n(S, sn);
|
|
3117
|
+
let le = await (o ? Ke(me, se) : Ke(S, sn));
|
|
3118
|
+
const ln = u && (M === "stream" || M === "response");
|
|
3119
|
+
if (u && (D || ln && Q)) {
|
|
3117
3120
|
const ue = {};
|
|
3118
3121
|
[
|
|
3119
3122
|
"status",
|
|
3120
3123
|
"statusText",
|
|
3121
3124
|
"headers"
|
|
3122
|
-
].forEach((
|
|
3123
|
-
ue[
|
|
3125
|
+
].forEach((un) => {
|
|
3126
|
+
ue[un] = le[un];
|
|
3124
3127
|
});
|
|
3125
|
-
const we = m.toFiniteNumber(le.headers.get("content-length")), [
|
|
3126
|
-
le = new a(
|
|
3128
|
+
const we = m.toFiniteNumber(le.headers.get("content-length")), [vt, We] = D && En(we, st(Tn(D), !0)) || [];
|
|
3129
|
+
le = new a(On(le.body, In, vt, () => {
|
|
3127
3130
|
We && We(), Q && Q();
|
|
3128
3131
|
}), ue);
|
|
3129
3132
|
}
|
|
3130
3133
|
M = M || "text";
|
|
3131
3134
|
let zr = await f[m.findKey(f, M) || "text"](le, p);
|
|
3132
|
-
return !
|
|
3135
|
+
return !ln && Q && Q(), await new Promise((ue, we) => {
|
|
3133
3136
|
Dr(ue, we, {
|
|
3134
3137
|
data: zr,
|
|
3135
3138
|
headers: K.from(le.headers),
|
|
@@ -3154,12 +3157,12 @@ var kr = (e) => {
|
|
|
3154
3157
|
for (; i--; )
|
|
3155
3158
|
s = o[i], c = l.get(s), c === void 0 && l.set(s, c = i ? /* @__PURE__ */ new Map() : qs(t)), l = c;
|
|
3156
3159
|
return c;
|
|
3157
|
-
}, Cc = Pr(),
|
|
3160
|
+
}, Cc = Pr(), rn = {
|
|
3158
3161
|
http: null,
|
|
3159
3162
|
xhr: Vs,
|
|
3160
3163
|
fetch: { get: Pr }
|
|
3161
3164
|
};
|
|
3162
|
-
m.forEach(
|
|
3165
|
+
m.forEach(rn, (e, t) => {
|
|
3163
3166
|
if (e) {
|
|
3164
3167
|
try {
|
|
3165
3168
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -3168,7 +3171,7 @@ m.forEach(tn, (e, t) => {
|
|
|
3168
3171
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
3169
3172
|
}
|
|
3170
3173
|
});
|
|
3171
|
-
var
|
|
3174
|
+
var Ln = (e) => `- ${e}`, Ws = (e) => m.isFunction(e) || e === null || e === !1;
|
|
3172
3175
|
function Ys(e, t) {
|
|
3173
3176
|
e = m.isArray(e) ? e : [e];
|
|
3174
3177
|
const { length: n } = e;
|
|
@@ -3177,7 +3180,7 @@ function Ys(e, t) {
|
|
|
3177
3180
|
for (let i = 0; i < n; i++) {
|
|
3178
3181
|
a = e[i];
|
|
3179
3182
|
let s;
|
|
3180
|
-
if (r = a, !Ws(a) && (r =
|
|
3183
|
+
if (r = a, !Ws(a) && (r = rn[(s = String(a)).toLowerCase()], r === void 0))
|
|
3181
3184
|
throw new I(`Unknown adapter '${s}'`);
|
|
3182
3185
|
if (r && (m.isFunction(r) || (r = r.get(t)))) break;
|
|
3183
3186
|
o[s || "#" + i] = r;
|
|
@@ -3185,30 +3188,30 @@ function Ys(e, t) {
|
|
|
3185
3188
|
if (!r) {
|
|
3186
3189
|
const i = Object.entries(o).map(([s, c]) => `adapter ${s} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build"));
|
|
3187
3190
|
throw new I("There is no suitable adapter to dispatch the request " + (n ? i.length > 1 ? `since :
|
|
3188
|
-
` + i.map(
|
|
3189
|
-
`) : " " +
|
|
3191
|
+
` + i.map(Ln).join(`
|
|
3192
|
+
`) : " " + Ln(i[0]) : "as no adapter specified"), "ERR_NOT_SUPPORT");
|
|
3190
3193
|
}
|
|
3191
3194
|
return r;
|
|
3192
3195
|
}
|
|
3193
3196
|
var xr = {
|
|
3194
3197
|
getAdapter: Ys,
|
|
3195
|
-
adapters:
|
|
3198
|
+
adapters: rn
|
|
3196
3199
|
};
|
|
3197
|
-
function
|
|
3200
|
+
function Tt(e) {
|
|
3198
3201
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new ze(null, e);
|
|
3199
3202
|
}
|
|
3200
|
-
function
|
|
3201
|
-
return
|
|
3203
|
+
function kn(e) {
|
|
3204
|
+
return Tt(e), e.headers = K.from(e.headers), e.data = Et.call(e, e.transformRequest), [
|
|
3202
3205
|
"post",
|
|
3203
3206
|
"put",
|
|
3204
3207
|
"patch"
|
|
3205
3208
|
].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), xr.getAdapter(e.adapter || He.adapter, e)(e).then(function(n) {
|
|
3206
|
-
return
|
|
3209
|
+
return Tt(e), n.data = Et.call(e, e.transformResponse, n), n.headers = K.from(n.headers), n;
|
|
3207
3210
|
}, function(n) {
|
|
3208
|
-
return Nr(n) || (
|
|
3211
|
+
return Nr(n) || (Tt(e), n && n.response && (n.response.data = Et.call(e, e.transformResponse, n.response), n.response.headers = K.from(n.response.headers))), Promise.reject(n);
|
|
3209
3212
|
});
|
|
3210
3213
|
}
|
|
3211
|
-
var Ur = "1.13.6",
|
|
3214
|
+
var Ur = "1.13.6", _t = {};
|
|
3212
3215
|
[
|
|
3213
3216
|
"object",
|
|
3214
3217
|
"boolean",
|
|
@@ -3217,21 +3220,21 @@ var Ur = "1.13.6", mt = {};
|
|
|
3217
3220
|
"string",
|
|
3218
3221
|
"symbol"
|
|
3219
3222
|
].forEach((e, t) => {
|
|
3220
|
-
|
|
3223
|
+
_t[e] = function(a) {
|
|
3221
3224
|
return typeof a === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
3222
3225
|
};
|
|
3223
3226
|
});
|
|
3224
|
-
var
|
|
3225
|
-
|
|
3227
|
+
var Pn = {};
|
|
3228
|
+
_t.transitional = function(t, n, a) {
|
|
3226
3229
|
function r(o, i) {
|
|
3227
3230
|
return "[Axios v" + Ur + "] Transitional option '" + o + "'" + i + (a ? ". " + a : "");
|
|
3228
3231
|
}
|
|
3229
3232
|
return (o, i, s) => {
|
|
3230
3233
|
if (t === !1) throw new I(r(i, " has been removed" + (n ? " in " + n : "")), I.ERR_DEPRECATED);
|
|
3231
|
-
return n && !
|
|
3234
|
+
return n && !Pn[i] && (Pn[i] = !0), t ? t(o, i, s) : !0;
|
|
3232
3235
|
};
|
|
3233
3236
|
};
|
|
3234
|
-
|
|
3237
|
+
_t.spelling = function(t) {
|
|
3235
3238
|
return (n, a) => !0;
|
|
3236
3239
|
};
|
|
3237
3240
|
function Js(e, t, n) {
|
|
@@ -3250,12 +3253,12 @@ function Js(e, t, n) {
|
|
|
3250
3253
|
}
|
|
3251
3254
|
var nt = {
|
|
3252
3255
|
assertOptions: Js,
|
|
3253
|
-
validators:
|
|
3256
|
+
validators: _t
|
|
3254
3257
|
}, Y = nt.validators, Se = class {
|
|
3255
3258
|
constructor(e) {
|
|
3256
3259
|
this.defaults = e || {}, this.interceptors = {
|
|
3257
|
-
request: new
|
|
3258
|
-
response: new
|
|
3260
|
+
request: new wn(),
|
|
3261
|
+
response: new wn()
|
|
3259
3262
|
};
|
|
3260
3263
|
}
|
|
3261
3264
|
async request(e, t) {
|
|
@@ -3307,7 +3310,7 @@ var nt = {
|
|
|
3307
3310
|
this.interceptors.request.forEach(function(p) {
|
|
3308
3311
|
if (typeof p.runWhen == "function" && p.runWhen(t) === !1) return;
|
|
3309
3312
|
s = s && p.synchronous;
|
|
3310
|
-
const S = t.transitional ||
|
|
3313
|
+
const S = t.transitional || tn;
|
|
3311
3314
|
S && S.legacyInterceptorReqResOrdering ? i.unshift(p.fulfilled, p.rejected) : i.push(p.fulfilled, p.rejected);
|
|
3312
3315
|
});
|
|
3313
3316
|
const c = [];
|
|
@@ -3316,7 +3319,7 @@ var nt = {
|
|
|
3316
3319
|
});
|
|
3317
3320
|
let l, u = 0, f;
|
|
3318
3321
|
if (!s) {
|
|
3319
|
-
const d = [
|
|
3322
|
+
const d = [kn.bind(this), void 0];
|
|
3320
3323
|
for (d.unshift(...i), d.push(...c), f = d.length, l = Promise.resolve(t); u < f; ) l = l.then(d[u++], d[u++]);
|
|
3321
3324
|
return l;
|
|
3322
3325
|
}
|
|
@@ -3332,7 +3335,7 @@ var nt = {
|
|
|
3332
3335
|
}
|
|
3333
3336
|
}
|
|
3334
3337
|
try {
|
|
3335
|
-
l =
|
|
3338
|
+
l = kn.call(this, h);
|
|
3336
3339
|
} catch (d) {
|
|
3337
3340
|
return Promise.reject(d);
|
|
3338
3341
|
}
|
|
@@ -3438,7 +3441,7 @@ function Xs(e) {
|
|
|
3438
3441
|
function Zs(e) {
|
|
3439
3442
|
return m.isObject(e) && e.isAxiosError === !0;
|
|
3440
3443
|
}
|
|
3441
|
-
var
|
|
3444
|
+
var Ht = {
|
|
3442
3445
|
Continue: 100,
|
|
3443
3446
|
SwitchingProtocols: 101,
|
|
3444
3447
|
Processing: 102,
|
|
@@ -3509,8 +3512,8 @@ var $t = {
|
|
|
3509
3512
|
SslHandshakeFailed: 525,
|
|
3510
3513
|
InvalidSslCertificate: 526
|
|
3511
3514
|
};
|
|
3512
|
-
Object.entries(
|
|
3513
|
-
|
|
3515
|
+
Object.entries(Ht).forEach(([e, t]) => {
|
|
3516
|
+
Ht[t] = e;
|
|
3514
3517
|
});
|
|
3515
3518
|
function Mr(e) {
|
|
3516
3519
|
const t = new Se(e), n = gr(Se.prototype.request, t);
|
|
@@ -3524,7 +3527,7 @@ B.CanceledError = ze;
|
|
|
3524
3527
|
B.CancelToken = Qs;
|
|
3525
3528
|
B.isCancel = Nr;
|
|
3526
3529
|
B.VERSION = Ur;
|
|
3527
|
-
B.toFormData =
|
|
3530
|
+
B.toFormData = mt;
|
|
3528
3531
|
B.AxiosError = I;
|
|
3529
3532
|
B.Cancel = B.CanceledError;
|
|
3530
3533
|
B.all = function(t) {
|
|
@@ -3536,16 +3539,16 @@ B.mergeConfig = be;
|
|
|
3536
3539
|
B.AxiosHeaders = K;
|
|
3537
3540
|
B.formToJSON = (e) => Rr(m.isHTMLForm(e) ? new FormData(e) : e);
|
|
3538
3541
|
B.getAdapter = xr.getAdapter;
|
|
3539
|
-
B.HttpStatusCode =
|
|
3542
|
+
B.HttpStatusCode = Ht;
|
|
3540
3543
|
B.default = B;
|
|
3541
3544
|
function el(e, t, n = !1) {
|
|
3542
3545
|
return n ? !!t.find((a) => a && a.indexOf("*") && new RegExp("^" + a.replace(/[-\/\\^$+?.()|[\]{}]/g, "\\$&").replace(/\*/g, ".*") + "$", "g").test(e) ? !0 : a == e) : t.includes(e);
|
|
3543
3546
|
}
|
|
3544
|
-
function
|
|
3547
|
+
function xn(e, t) {
|
|
3545
3548
|
let n = "";
|
|
3546
3549
|
return e.includes("http://") || e.includes("https://") ? n = e : n = t + e, n = n.replace(/([^:]\/)\/+/g, "$1"), n;
|
|
3547
3550
|
}
|
|
3548
|
-
var
|
|
3551
|
+
var Un = {
|
|
3549
3552
|
400: "请求错误",
|
|
3550
3553
|
400: "无效请求",
|
|
3551
3554
|
401: "未经授权",
|
|
@@ -3560,7 +3563,7 @@ var Pn = {
|
|
|
3560
3563
|
503: "服务不可用",
|
|
3561
3564
|
504: "网络超时",
|
|
3562
3565
|
505: "HTTP版本不受支持"
|
|
3563
|
-
},
|
|
3566
|
+
}, Bn = {
|
|
3564
3567
|
400: "参数错误",
|
|
3565
3568
|
401: "没有权限,请变更请求",
|
|
3566
3569
|
402: "支付错误",
|
|
@@ -3574,7 +3577,7 @@ var Pn = {
|
|
|
3574
3577
|
function tl(e, t) {
|
|
3575
3578
|
e = parseInt(e);
|
|
3576
3579
|
let n = "提示", a = "请检查网络或联系管理员";
|
|
3577
|
-
return
|
|
3580
|
+
return Un[e] && (n = Un[e]), Bn[e] && (a = Bn[e]), {
|
|
3578
3581
|
title: n,
|
|
3579
3582
|
status: e,
|
|
3580
3583
|
message: a
|
|
@@ -3582,7 +3585,7 @@ function tl(e, t) {
|
|
|
3582
3585
|
}
|
|
3583
3586
|
var nl = class {
|
|
3584
3587
|
constructor(e = {}) {
|
|
3585
|
-
this.flagMap = e.flagMap || {}, this.flagAuth = e.flagAuth || {}, this.flagCurr = "", this.baseURL = e.baseURL || "", this.baseMock = e.baseMock || "", this.requests = Object.assign({}, e.requests || {}), this.requestTemp = {}, this.headers = Object.assign({}, e.headers || {}), this.headerTemp = {}, this.configs = Object.assign({}, e.configs || {}), this.configTemp = {}, this.customs = Object.assign({}, e.customs || {}), this.customTemp = {}, this.
|
|
3588
|
+
this.flagMap = e.flagMap || {}, this.flagAuth = e.flagAuth || {}, this.flagCurr = "", this.baseURL = e.baseURL || "", this.baseMock = e.baseMock || "", this.requests = Object.assign({}, e.requests || {}), this.requestTemp = {}, this.headers = Object.assign({}, e.headers || {}), this.headerTemp = {}, this.configs = Object.assign({}, e.configs || {}), this.configTemp = {}, this.customs = Object.assign({}, e.customs || {}), this.customTemp = {}, this.encryptFlag = !1, this.retries = 3, this.debugState = e.debug || !1, this.requestHandle = null, this._initReqHandle(e);
|
|
3586
3589
|
}
|
|
3587
3590
|
debugLog() {
|
|
3588
3591
|
this.debugState;
|
|
@@ -3660,7 +3663,7 @@ var nl = class {
|
|
|
3660
3663
|
return e;
|
|
3661
3664
|
}
|
|
3662
3665
|
async apiAll(e, t, n) {
|
|
3663
|
-
let a =
|
|
3666
|
+
let a = xn(t, this.baseURL);
|
|
3664
3667
|
this.__encryp_parse(t);
|
|
3665
3668
|
let r = this.__parse_method_type(e), o = this.flagAuth[this.flagCurr] || null, i = {};
|
|
3666
3669
|
o && (i = o.split(",").reduce((h, d) => {
|
|
@@ -3685,7 +3688,7 @@ var nl = class {
|
|
|
3685
3688
|
});
|
|
3686
3689
|
if (r != "DOWNLOAD")
|
|
3687
3690
|
if (r == "MOCK") try {
|
|
3688
|
-
let h =
|
|
3691
|
+
let h = xn(t.includes(".json") ? `${t}` : `${t}.json`, this.baseMock + "/");
|
|
3689
3692
|
return await this.requestHandle.get(h, { baseURL: "" });
|
|
3690
3693
|
} catch (h) {
|
|
3691
3694
|
let d = h.message;
|
|
@@ -3945,7 +3948,7 @@ function ll() {
|
|
|
3945
3948
|
var V = new Proxy({}, { get(e, t) {
|
|
3946
3949
|
const n = ll();
|
|
3947
3950
|
return typeof n[t] == "function" ? n[t].bind(n) : n[t];
|
|
3948
|
-
} }), ce = "syCacheAppInfo", pe = "syCacheAppToken", Pe = "syCacheAppJwt", Ae = "syCacheAppRbac",
|
|
3951
|
+
} }), ce = "syCacheAppInfo", pe = "syCacheAppToken", Pe = "syCacheAppJwt", Ae = "syCacheAppRbac", Mn = {
|
|
3949
3952
|
staff_nickname: "",
|
|
3950
3953
|
id: 0,
|
|
3951
3954
|
email: "",
|
|
@@ -3958,11 +3961,11 @@ var V = new Proxy({}, { get(e, t) {
|
|
|
3958
3961
|
okr_admin_owner: null,
|
|
3959
3962
|
account_nick: "十云",
|
|
3960
3963
|
account_mobile_show: "****",
|
|
3961
|
-
account_avatar:
|
|
3962
|
-
account_avatar_cdn:
|
|
3964
|
+
account_avatar: cn(),
|
|
3965
|
+
account_avatar_cdn: cn(),
|
|
3963
3966
|
business_name: ""
|
|
3964
3967
|
};
|
|
3965
|
-
function
|
|
3968
|
+
function Fn(e) {
|
|
3966
3969
|
return Math.floor(Date.now() / 1e3) >= e;
|
|
3967
3970
|
}
|
|
3968
3971
|
var Z = te("cloudSdkAccountStore", {
|
|
@@ -3979,7 +3982,7 @@ var Z = te("cloudSdkAccountStore", {
|
|
|
3979
3982
|
staffNick: (e) => e.accountInfo?.staff_nick || "",
|
|
3980
3983
|
accountIsLogin: (e) => {
|
|
3981
3984
|
const t = e?.accountInfo?.token_time || 0;
|
|
3982
|
-
return !!(
|
|
3985
|
+
return !!(kt(e.accountToken) && !Fn(t));
|
|
3983
3986
|
},
|
|
3984
3987
|
accountRole: (e) => e.accountInfo?.identity,
|
|
3985
3988
|
accountRules: (e) => e.accountInfo.acc_rules_arr || [],
|
|
@@ -3995,7 +3998,7 @@ var Z = te("cloudSdkAccountStore", {
|
|
|
3995
3998
|
b.localDel(Ae), this.ACCOUNT_SET_PREV();
|
|
3996
3999
|
},
|
|
3997
4000
|
SA_ACCOUNT_IS_LOGGED() {
|
|
3998
|
-
return this.accountToken = b.localGet(pe) || "", !!
|
|
4001
|
+
return this.accountToken = b.localGet(pe) || "", !!kt(this.accountToken);
|
|
3999
4002
|
},
|
|
4000
4003
|
SA_ACCOUNT_JWT_GET() {
|
|
4001
4004
|
return this.accountJwt || "";
|
|
@@ -4007,7 +4010,7 @@ var Z = te("cloudSdkAccountStore", {
|
|
|
4007
4010
|
this.accountToken = e, b.localSet(pe, this.accountToken);
|
|
4008
4011
|
},
|
|
4009
4012
|
SA_ACCOUNT_CHECK_EXPIRED(e) {
|
|
4010
|
-
return
|
|
4013
|
+
return Fn(this?.accountInfo?.token_time || 0);
|
|
4011
4014
|
},
|
|
4012
4015
|
SA_ACCOUNT_INFO_GET() {
|
|
4013
4016
|
return b.localGet(ce);
|
|
@@ -4022,7 +4025,7 @@ var Z = te("cloudSdkAccountStore", {
|
|
|
4022
4025
|
});
|
|
4023
4026
|
},
|
|
4024
4027
|
SA_ACCOUNT_INFO_PARSE(e) {
|
|
4025
|
-
return e = e ||
|
|
4028
|
+
return e = e || Mn, Ee(e.acc_pre_name) && (e.acc_pre_name = e.acc_pre_nick), e.account_id = ea(e.account_id), e.token_access = e.account_id > 0 ? e.token_access || this.accountToken : "", e.account_avatar_cdn = e.account_avatar_cdn || e.per_avatar_cdn, e.account_mobile_hide = e.account_mobile_hide || e.ucenter_mobile_hide || e.ucenter_mobile, this.accountInfo = e, e;
|
|
4026
4029
|
},
|
|
4027
4030
|
SA_ACCOUNT_INFO_SET(e) {
|
|
4028
4031
|
return new Promise(async (t) => {
|
|
@@ -4034,7 +4037,7 @@ var Z = te("cloudSdkAccountStore", {
|
|
|
4034
4037
|
return this.account_nick;
|
|
4035
4038
|
},
|
|
4036
4039
|
SA_ACCOUNT_REFRESH() {
|
|
4037
|
-
this.accountInfo = b.localGet(ce) ||
|
|
4040
|
+
this.accountInfo = b.localGet(ce) || Mn, this.accountToken = b.localGet(pe) || "", this.accountJwt = b.localGet(Pe) || "", V.setDefHeaders({
|
|
4038
4041
|
syOpenAppToken: this.accountToken || "",
|
|
4039
4042
|
Authorization: "Bearer " + this.accountJwt || ""
|
|
4040
4043
|
});
|
|
@@ -4055,7 +4058,7 @@ var Z = te("cloudSdkAccountStore", {
|
|
|
4055
4058
|
ACCOUNT_SET_PREV() {
|
|
4056
4059
|
}
|
|
4057
4060
|
}
|
|
4058
|
-
}),
|
|
4061
|
+
}), Ct = "__syCacheApiFlag__", Ot = "__syCacheApiAuth__", Vn = "__syCacheApiCode__", It = "__syCacheAppConfig__", Gn = "__syCacheAppTheme__", Rt = "__syCacheProjectConfig__";
|
|
4059
4062
|
async function ul(e) {
|
|
4060
4063
|
try {
|
|
4061
4064
|
let t = document.querySelector("link[rel*='icon']");
|
|
@@ -4109,45 +4112,45 @@ var lt = te("cloudSdkInstanceStore", {
|
|
|
4109
4112
|
await this.__load_api_flag(), await this.__load_api_auth(), await this.__load_api_code(), await this.__load_project_param(), await this.__load_inst_param();
|
|
4110
4113
|
},
|
|
4111
4114
|
async clear_cache() {
|
|
4112
|
-
await b.idbDelItem(
|
|
4115
|
+
await b.idbDelItem(Ct), await b.idbDelItem(Ot), await b.idbDelItem(Rt), await b.idbDelItem(It), await b.idbDelItem(Gn);
|
|
4113
4116
|
},
|
|
4114
4117
|
async __load_api_flag() {
|
|
4115
|
-
let e = await b.idbGetItem(
|
|
4118
|
+
let e = await b.idbGetItem(Ct);
|
|
4116
4119
|
Ee(e) && await V.flagPost("BASE_LOAD_COMMON_API_FLAG", {}).then((t) => {
|
|
4117
|
-
e = t.data || {}, b.idbSetItem(
|
|
4120
|
+
e = t.data || {}, b.idbSetItem(Ct, e);
|
|
4118
4121
|
}), window && (window._SY_OPEN_API_FLAG_ || (window._SY_OPEN_API_FLAG_ = {}), window._SY_OPEN_API_FLAG_ = Object.assign(window._SY_OPEN_API_FLAG_, e)), await V.appendApiFlag(e);
|
|
4119
4122
|
},
|
|
4120
4123
|
async __load_api_auth() {
|
|
4121
|
-
let e = await b.idbGetItem(
|
|
4124
|
+
let e = await b.idbGetItem(Ot);
|
|
4122
4125
|
Ee(e) && await V.flagPost("BASE_LOAD_COMMON_API_AUTH", {}).then((t) => {
|
|
4123
|
-
e = t.data || {}, b.idbSetItem(
|
|
4126
|
+
e = t.data || {}, b.idbSetItem(Ot, e);
|
|
4124
4127
|
}), window && (window._SY_OPEN_API_AUTH_ || (window._SY_OPEN_API_AUTH_ = {}), window._SY_OPEN_API_AUTH_ = Object.assign(window._SY_OPEN_API_AUTH_, e)), await V.appendApiAuth(e);
|
|
4125
4128
|
},
|
|
4126
4129
|
async __load_api_code() {
|
|
4127
|
-
let e = await b.idbGetItem(
|
|
4130
|
+
let e = await b.idbGetItem(Vn);
|
|
4128
4131
|
Ee(e) && await V.flagPost("BASE_LOAD_COMMON_API_CODE", {}).then((t) => {
|
|
4129
|
-
e = t.data || {}, b.idbSetItem(
|
|
4132
|
+
e = t.data || {}, b.idbSetItem(Vn, e);
|
|
4130
4133
|
});
|
|
4131
4134
|
},
|
|
4132
4135
|
async __load_project_param() {
|
|
4133
|
-
let e = await b.idbGetItem(
|
|
4136
|
+
let e = await b.idbGetItem(Rt);
|
|
4134
4137
|
Ee(e) ? await V.flagGet("BASE_SYS_COMMON_PLAT_SETTING", {}).then(({ data: t }) => {
|
|
4135
|
-
this.projectConfig = Object.assign({}, this.projectConfig, t), b.idbSetItem(
|
|
4138
|
+
this.projectConfig = Object.assign({}, this.projectConfig, t), b.idbSetItem(Rt, this.projectConfig);
|
|
4136
4139
|
}) : this.projectConfig = e;
|
|
4137
4140
|
},
|
|
4138
4141
|
async __load_inst_param() {
|
|
4139
|
-
let e = await b.idbGetItem(
|
|
4142
|
+
let e = await b.idbGetItem(It);
|
|
4140
4143
|
Ee(e) ? await V.flagPost("BASE_LOAD_COMMOM_IP_PARAM_PUBLICLY", {}).then(({ data: t }) => {
|
|
4141
|
-
this.instanceConfig = Object.assign({}, this.instanceConfig, t), b.idbSetItem(
|
|
4144
|
+
this.instanceConfig = Object.assign({}, this.instanceConfig, t), b.idbSetItem(It, this.instanceConfig);
|
|
4142
4145
|
}) : this.instanceConfig = e;
|
|
4143
4146
|
},
|
|
4144
4147
|
async __load_inst_decoration() {
|
|
4145
|
-
await b.idbGetItem(
|
|
4148
|
+
await b.idbGetItem(Gn);
|
|
4146
4149
|
},
|
|
4147
4150
|
async __load_license() {
|
|
4148
4151
|
}
|
|
4149
4152
|
}
|
|
4150
|
-
}), xe = "__system:keyboardConf",
|
|
4153
|
+
}), xe = "__system:keyboardConf", $n = "__system:clientVersion", jn = "__system:clientId", Hn = "__syCacheApiKey__", an = te("cloudSdkSystemStore", {
|
|
4151
4154
|
state: () => ({
|
|
4152
4155
|
sysServerUrl: "",
|
|
4153
4156
|
sysClientInfo: {},
|
|
@@ -4187,13 +4190,13 @@ var lt = te("cloudSdkInstanceStore", {
|
|
|
4187
4190
|
b.localSet(xe, e), await b.idbDelItem("clearCache");
|
|
4188
4191
|
},
|
|
4189
4192
|
async __check_version() {
|
|
4190
|
-
const e = b.localGet(
|
|
4191
|
-
t != e && (b.localSet(
|
|
4193
|
+
const e = b.localGet($n) || "", t = this.sysClientVersion || "";
|
|
4194
|
+
t != e && (b.localSet($n, t), await this.clear_cache(), await lt().clear_cache());
|
|
4192
4195
|
},
|
|
4193
4196
|
async __load_api_key() {
|
|
4194
|
-
let e = await b.idbGetString(
|
|
4195
|
-
e || (e = cvUtils.randomString(6), await b.idbSetItem(
|
|
4196
|
-
this.apiKeyData = t, b.idbSetItem(
|
|
4197
|
+
let e = await b.idbGetString(jn);
|
|
4198
|
+
e || (e = cvUtils.randomString(6), await b.idbSetItem(jn, e)), this.sysClientId = e, this.apiKeyData = await b.idbGetItem(Hn), this.apiKeyData || await V.setOptions({ encrypt: !1 }).flagGet("BASE_ACCSYS_COMMON_KEYCLIENT", { client_id: e }).then(({ data: t }) => {
|
|
4199
|
+
this.apiKeyData = t, b.idbSetItem(Hn, this.apiKeyData);
|
|
4197
4200
|
});
|
|
4198
4201
|
},
|
|
4199
4202
|
SA_KEYBOARD_SET(e) {
|
|
@@ -4227,7 +4230,7 @@ function Gr() {
|
|
|
4227
4230
|
function cl() {
|
|
4228
4231
|
return Vr() - Gr() > 50 ? "landscape" : "portrait";
|
|
4229
4232
|
}
|
|
4230
|
-
var Xe = Vr(), fl = Gr(),
|
|
4233
|
+
var Xe = Vr(), fl = Gr(), Nt = cl();
|
|
4231
4234
|
window && window.process && window.process?.type;
|
|
4232
4235
|
window && window.navigator && /eeui/i.test(window.navigator.userAgent);
|
|
4233
4236
|
var $r = te("cloudSdkSysWinStore", {
|
|
@@ -4237,9 +4240,9 @@ var $r = te("cloudSdkSysWinStore", {
|
|
|
4237
4240
|
windowTouch: "ontouchend" in document,
|
|
4238
4241
|
windowWidth: Xe,
|
|
4239
4242
|
windowHeight: fl,
|
|
4240
|
-
windowOrientation:
|
|
4241
|
-
windowLandscape:
|
|
4242
|
-
windowPortrait:
|
|
4243
|
+
windowOrientation: Nt,
|
|
4244
|
+
windowLandscape: Nt === "landscape",
|
|
4245
|
+
windowPortrait: Nt === "portrait",
|
|
4243
4246
|
formLabelPosition: Xe > 576 ? "right" : "top",
|
|
4244
4247
|
formLabelWidth: Xe > 576 ? "auto" : "",
|
|
4245
4248
|
windowMax768: Xe <= 768,
|
|
@@ -4290,7 +4293,7 @@ async function dl(e, t) {
|
|
|
4290
4293
|
const n = await t(e);
|
|
4291
4294
|
ge.setLocaleMessage(e, n), ge.locale && ge.locale.value !== void 0 ? ge.locale.value = e : ge.locale = e;
|
|
4292
4295
|
}
|
|
4293
|
-
var
|
|
4296
|
+
var Dt = "__system:language__";
|
|
4294
4297
|
function hl() {
|
|
4295
4298
|
return (window.navigator.language || navigator.browserLanguage || navigator.userLanguage || "").toLowerCase().trim();
|
|
4296
4299
|
}
|
|
@@ -4326,10 +4329,10 @@ var qe = te("cloudSdkLanguageStore", {
|
|
|
4326
4329
|
let e = hl() || "zh";
|
|
4327
4330
|
e = localStorage.getItem("__system:language__") || e;
|
|
4328
4331
|
const t = cvUtils.cc_url_get_params();
|
|
4329
|
-
t.language && (e = t.language), e = ml(e), Object.keys(this.languageList).includes(e) ? this.languageName = e === "zh-cn" ? "zh" : e : this.languageName = "zh", localStorage.setItem(
|
|
4332
|
+
t.language && (e = t.language), e = ml(e), Object.keys(this.languageList).includes(e) ? this.languageName = e === "zh-cn" ? "zh" : e : this.languageName = "zh", localStorage.setItem(Dt, this.languageName);
|
|
4330
4333
|
},
|
|
4331
4334
|
async clear_cache() {
|
|
4332
|
-
b.localSet(
|
|
4335
|
+
b.localSet(Dt, "zh");
|
|
4333
4336
|
},
|
|
4334
4337
|
SA_LANGUAGE_DEFAULT() {
|
|
4335
4338
|
return this.languageDefault;
|
|
@@ -4341,20 +4344,20 @@ var qe = te("cloudSdkLanguageStore", {
|
|
|
4341
4344
|
return this.languageName = localStorage.getItem("__system:language__") || "zh", this.languageName;
|
|
4342
4345
|
},
|
|
4343
4346
|
SA_LANGUAGE_SET(e) {
|
|
4344
|
-
this.languageName = e, b.localSet(
|
|
4347
|
+
this.languageName = e, b.localSet(Dt, e), ge.locale.value = e;
|
|
4345
4348
|
}
|
|
4346
4349
|
}
|
|
4347
|
-
}),
|
|
4348
|
-
function
|
|
4350
|
+
}), zn = "__system:themes__", _l = "light", Lt = "__system:layoutSidebarState__", pl = "on", qn = "__system:layoutNavTabs__", gl = "on", vl = "__system:layoutWatermark__", Sl = "on";
|
|
4351
|
+
function Kn() {
|
|
4349
4352
|
let e = typeof window < "u" && window.navigator.userAgent.toLowerCase();
|
|
4350
4353
|
return `${e.match(/Chrome/i)}` == "chrome" ? "chrome" : `${e.match(/Webkit/i)}` == "webkit" ? "webkit" : null;
|
|
4351
4354
|
}
|
|
4352
4355
|
var de = te("cloudSdkThemesStore", {
|
|
4353
4356
|
state: () => ({
|
|
4354
4357
|
layoutName: "",
|
|
4355
|
-
layoutNavTabs: b.localGet(
|
|
4356
|
-
layoutSidebarState: b.localGet(
|
|
4357
|
-
themesName: b.localGet(
|
|
4358
|
+
layoutNavTabs: b.localGet(qn) || gl,
|
|
4359
|
+
layoutSidebarState: b.localGet(Lt) || pl,
|
|
4360
|
+
themesName: b.localGet(zn) || _l,
|
|
4358
4361
|
themesList: [
|
|
4359
4362
|
{
|
|
4360
4363
|
name: "跟随系统",
|
|
@@ -4386,21 +4389,21 @@ var de = te("cloudSdkThemesStore", {
|
|
|
4386
4389
|
SA_LAYOUT_WATERMARK_SET(e) {
|
|
4387
4390
|
this.watermarkState = e;
|
|
4388
4391
|
const t = document.querySelector("html");
|
|
4389
|
-
t.classList.remove(e ? "hideWatermark" : "openWatermark"), t.classList.add(e ? "openWatermark" : "hideWatermark"), b.localSet(
|
|
4392
|
+
t.classList.remove(e ? "hideWatermark" : "openWatermark"), t.classList.add(e ? "openWatermark" : "hideWatermark"), b.localSet(Lt, e);
|
|
4390
4393
|
},
|
|
4391
4394
|
SA_LAYOUT_SLIDEBAR_SET(e) {
|
|
4392
4395
|
this.layoutSidebarState = e;
|
|
4393
4396
|
const t = document.querySelector("html");
|
|
4394
|
-
t.classList.remove(e == "off" ? "openSidebar" : "hideSidebar"), t.classList.add(e == "on" ? "openSidebar" : "hideSidebar"), b.localSet(
|
|
4397
|
+
t.classList.remove(e == "off" ? "openSidebar" : "hideSidebar"), t.classList.add(e == "on" ? "openSidebar" : "hideSidebar"), b.localSet(Lt, e);
|
|
4395
4398
|
},
|
|
4396
4399
|
SA_LAYOUT_NAVTABS_SET(e) {
|
|
4397
4400
|
ae.__POWERED_BY_QIANKUN__ && (e = "off"), this.layoutNavTabs = e;
|
|
4398
4401
|
const t = document.querySelector("html");
|
|
4399
|
-
t.classList.remove(e == "off" ? "openNavtabs" : "hideNavtabs"), t.classList.add(e == "on" ? "openNavtabs" : "hideNavtabs"), ae.__POWERED_BY_QIANKUN__ || b.localSet(
|
|
4402
|
+
t.classList.remove(e == "off" ? "openNavtabs" : "hideNavtabs"), t.classList.add(e == "on" ? "openNavtabs" : "hideNavtabs"), ae.__POWERED_BY_QIANKUN__ || b.localSet(qn, e);
|
|
4400
4403
|
},
|
|
4401
4404
|
SA_THEMES_SET(e) {
|
|
4402
|
-
if (this.themesName = e || "light", !
|
|
4403
|
-
__cc_isEEUiApp ?
|
|
4405
|
+
if (this.themesName = e || "light", !Kn()) {
|
|
4406
|
+
__cc_isEEUiApp ? dn.warning("仅Android设置支持主题功能") : dn.warning("仅客户端或Chrome浏览器支持主题功能");
|
|
4404
4407
|
return;
|
|
4405
4408
|
}
|
|
4406
4409
|
this.synchTheme(e);
|
|
@@ -4410,7 +4413,7 @@ var de = te("cloudSdkThemesStore", {
|
|
|
4410
4413
|
const t = document.body;
|
|
4411
4414
|
switch (e) {
|
|
4412
4415
|
case "dark":
|
|
4413
|
-
if (!
|
|
4416
|
+
if (!Kn()) return;
|
|
4414
4417
|
t.classList.add("sdk-theme-dark");
|
|
4415
4418
|
break;
|
|
4416
4419
|
case "light":
|
|
@@ -4422,10 +4425,10 @@ var de = te("cloudSdkThemesStore", {
|
|
|
4422
4425
|
break;
|
|
4423
4426
|
}
|
|
4424
4427
|
const n = document.querySelector("html");
|
|
4425
|
-
n.classList.remove(this.themesName == "dark" ? "light" : "dark"), n.classList.add(this.themesName), b.localSet(
|
|
4428
|
+
n.classList.remove(this.themesName == "dark" ? "light" : "dark"), n.classList.add(this.themesName), b.localSet(zn, this.themesName);
|
|
4426
4429
|
}
|
|
4427
4430
|
}
|
|
4428
|
-
}),
|
|
4431
|
+
}), pt = te("cloudSdkProductStore", {
|
|
4429
4432
|
state: () => ({
|
|
4430
4433
|
currMenuInfo: {},
|
|
4431
4434
|
menuBadge: {},
|
|
@@ -4453,12 +4456,12 @@ var de = te("cloudSdkThemesStore", {
|
|
|
4453
4456
|
},
|
|
4454
4457
|
SA_MENU_PARSE() {
|
|
4455
4458
|
var e = [];
|
|
4456
|
-
const { checkPermission: t } =
|
|
4459
|
+
const { checkPermission: t } = ct();
|
|
4457
4460
|
function n(r, o) {
|
|
4458
4461
|
let i = [];
|
|
4459
4462
|
for (let s in r) {
|
|
4460
4463
|
let c = r[s];
|
|
4461
|
-
c =
|
|
4464
|
+
c = Yn(c, s), c.isMenu === !0 && (c.isRbac && !c.path || (c.children && c.children.length > 0 && (c.children = n(c.children, o)), c.collapsable === !1 && e.push(c.name), t(c.name, o) && i.push(c)));
|
|
4462
4465
|
}
|
|
4463
4466
|
return i;
|
|
4464
4467
|
}
|
|
@@ -4477,7 +4480,7 @@ var de = te("cloudSdkThemesStore", {
|
|
|
4477
4480
|
isAlone: !0,
|
|
4478
4481
|
name: "login",
|
|
4479
4482
|
path: "/login",
|
|
4480
|
-
component: () => import("./login-
|
|
4483
|
+
component: () => import("./login-BXM6gDsd.js")
|
|
4481
4484
|
}], yl = [{
|
|
4482
4485
|
meta: {
|
|
4483
4486
|
title: "不建议单独运行",
|
|
@@ -4505,7 +4508,7 @@ var de = te("cloudSdkThemesStore", {
|
|
|
4505
4508
|
name: "none",
|
|
4506
4509
|
path: "/none",
|
|
4507
4510
|
component: () => import("./none-CyU32h-T.js")
|
|
4508
|
-
}],
|
|
4511
|
+
}], gt = te("cloudSdkPermissionStore", {
|
|
4509
4512
|
state: () => ({
|
|
4510
4513
|
originalRoutes: [],
|
|
4511
4514
|
addRoutes: [],
|
|
@@ -4532,7 +4535,7 @@ var de = te("cloudSdkThemesStore", {
|
|
|
4532
4535
|
});
|
|
4533
4536
|
function Al() {
|
|
4534
4537
|
return new Promise(async (e) => {
|
|
4535
|
-
qe().clear_cache(), de().clear_cache(),
|
|
4538
|
+
qe().clear_cache(), de().clear_cache(), an().clear_cache(), lt().clear_cache(), Z().clear_cache(), pt().clear_cache(), b.idbSetItem("cacheClearHandle", "handle").then((t) => {
|
|
4536
4539
|
e();
|
|
4537
4540
|
});
|
|
4538
4541
|
});
|
|
@@ -4562,7 +4565,7 @@ function El() {
|
|
|
4562
4565
|
"windowPortrait",
|
|
4563
4566
|
"formLabelPosition"
|
|
4564
4567
|
]),
|
|
4565
|
-
...ne(
|
|
4568
|
+
...ne(an, [
|
|
4566
4569
|
"sysServerUrl",
|
|
4567
4570
|
"sysIsElectron",
|
|
4568
4571
|
"sysIsEEUiApp",
|
|
@@ -4579,7 +4582,7 @@ function El() {
|
|
|
4579
4582
|
"staffId",
|
|
4580
4583
|
"staffNick"
|
|
4581
4584
|
]),
|
|
4582
|
-
...ne(
|
|
4585
|
+
...ne(pt, [
|
|
4583
4586
|
"menuBadge",
|
|
4584
4587
|
"menuCurrOpeneds",
|
|
4585
4588
|
"menuCurrOnly"
|
|
@@ -4778,7 +4781,7 @@ var Tl = { class: "cloud-sett-drawer-body" }, Cl = { class: "cloud-sett-drawer-s
|
|
|
4778
4781
|
routeRefreshNum: 0
|
|
4779
4782
|
};
|
|
4780
4783
|
},
|
|
4781
|
-
computed: { ...ne(
|
|
4784
|
+
computed: { ...ne(gt, ["routeAlive"]) },
|
|
4782
4785
|
watch: { routeAlive(e) {
|
|
4783
4786
|
this.routeRefreshAnimation = "subapp-slide-right", this.routeRefreshNum++, this.$nextTick(() => {
|
|
4784
4787
|
this.routeRefreshAnimation = "";
|
|
@@ -4803,7 +4806,7 @@ function Nl(e, t, n, a, r, o) {
|
|
|
4803
4806
|
_: 1
|
|
4804
4807
|
});
|
|
4805
4808
|
}
|
|
4806
|
-
var Dl = /* @__PURE__ */ F(Rl, [["render", Nl]]),
|
|
4809
|
+
var Dl = /* @__PURE__ */ F(Rl, [["render", Nl]]), Wn = (e) => Math.pow(e, 3), Ll = (e) => e < 0.5 ? Wn(e * 2) / 2 : 1 - Wn((1 - e) * 2) / 2, kl = {
|
|
4807
4810
|
name: "SameNavTabs",
|
|
4808
4811
|
data() {
|
|
4809
4812
|
return {
|
|
@@ -4951,8 +4954,8 @@ function Ml(e, t, n, a, r, o) {
|
|
|
4951
4954
|
}),
|
|
4952
4955
|
Fe(v("div", {
|
|
4953
4956
|
class: "cloud-navtabs__contextmenu",
|
|
4954
|
-
style:
|
|
4955
|
-
}, [v("ul", { style:
|
|
4957
|
+
style: Pt(r.contextMenuStyle)
|
|
4958
|
+
}, [v("ul", { style: Pt({
|
|
4956
4959
|
left: r.left + "px",
|
|
4957
4960
|
top: r.top + "px"
|
|
4958
4961
|
}) }, [
|
|
@@ -4982,7 +4985,7 @@ function Ml(e, t, n, a, r, o) {
|
|
|
4982
4985
|
default: g(() => [...t[10] || (t[10] = [N("关闭其他", -1)])]),
|
|
4983
4986
|
_: 1
|
|
4984
4987
|
})])
|
|
4985
|
-
], 4)], 4), [[
|
|
4988
|
+
], 4)], 4), [[Jn, r.contextMenuVisible]])
|
|
4986
4989
|
])]);
|
|
4987
4990
|
}
|
|
4988
4991
|
var Fl = /* @__PURE__ */ F(kl, [["render", Ml]]), Vl = {
|
|
@@ -5492,7 +5495,7 @@ var su = /* @__PURE__ */ F(au, [["render", iu]]), lu = { class: "cloud-layout__w
|
|
|
5492
5495
|
})])
|
|
5493
5496
|
]),
|
|
5494
5497
|
v("section", wu, [_(ui, { collapse: t.frameSidebarOpen == "off" }, null, 8, ["collapse"])]),
|
|
5495
|
-
v("section", Au, [Fe(_(Fl, null, null, 512), [[
|
|
5498
|
+
v("section", Au, [Fe(_(Fl, null, null, 512), [[Jn, t.layoutNavTabs == "on"]]), _(Dl, { className: "cloud-pages__box" })]),
|
|
5496
5499
|
_(Il, {
|
|
5497
5500
|
modelValue: t.frameHeadSysSettDia,
|
|
5498
5501
|
"onUpdate:modelValue": n[6] || (n[6] = (u) => t.frameHeadSysSettDia = u)
|
|
@@ -5669,7 +5672,7 @@ var Ic = /* @__PURE__ */ F(Eu, [["render", Tu]]), Cu = {
|
|
|
5669
5672
|
"box-sizing": "border-box"
|
|
5670
5673
|
} };
|
|
5671
5674
|
function Mu(e, t, n, a, r, o) {
|
|
5672
|
-
const i = A("el-input"), s = A("el-tree"), c = A("cv-btn-base"), l = A("el-upload"), u = A("cv-select-tree"), f = A("el-badge"), h = A("cv-icons"), d = A("el-pagination"), p =
|
|
5675
|
+
const i = A("el-input"), s = A("el-tree"), c = A("cv-btn-base"), l = A("el-upload"), u = A("cv-select-tree"), f = A("el-badge"), h = A("cv-icons"), d = A("el-pagination"), p = zt("loading");
|
|
5673
5676
|
return Fe((E(), R("div", Ou, [v("div", Iu, [v("section", Ru, [v("section", Nu, [
|
|
5674
5677
|
t[1] || (t[1] = v("div", { class: "cloud-dia-left-title" }, "类别", -1)),
|
|
5675
5678
|
_(i, {
|
|
@@ -6129,7 +6132,7 @@ var Hr = /* @__PURE__ */ F(Vu, [["render", $u]]), ju = { style: { "font-size": "
|
|
|
6129
6132
|
"box-sizing": "border-box"
|
|
6130
6133
|
} };
|
|
6131
6134
|
function tc(e, t, n, a, r, o) {
|
|
6132
|
-
const i = A("el-input"), s = A("el-tree"), c = A("cv-input-text"), l = A("cv-form-item"), u = A("cv-btn-base"), f = A("cv-form-inline"), h = A("cvTbColumnCheck"), d = A("cvTbColumnText"), p = A("cvTbColumnImg"), S = A("cv-btn-text"), y = A("cvTbColumnOpt"), L = A("cvTableBase"), w =
|
|
6135
|
+
const i = A("el-input"), s = A("el-tree"), c = A("cv-input-text"), l = A("cv-form-item"), u = A("cv-btn-base"), f = A("cv-form-inline"), h = A("cvTbColumnCheck"), d = A("cvTbColumnText"), p = A("cvTbColumnImg"), S = A("cv-btn-text"), y = A("cvTbColumnOpt"), L = A("cvTableBase"), w = zt("loading");
|
|
6133
6136
|
return Fe((E(), R("div", Yu, [v("div", Ju, [v("section", Qu, [v("section", Xu, [
|
|
6134
6137
|
t[4] || (t[4] = v("div", { class: "cloud-dia-left-title" }, "分类", -1)),
|
|
6135
6138
|
_(i, {
|
|
@@ -6310,7 +6313,7 @@ var Rc = /* @__PURE__ */ F(Wu, [["render", tc]]), nc = {
|
|
|
6310
6313
|
"box-sizing": "border-box"
|
|
6311
6314
|
} };
|
|
6312
6315
|
function uc(e, t, n, a, r, o) {
|
|
6313
|
-
const i = A("el-input"), s = A("el-tree"), c = A("cv-input-text"), l = A("cv-form-item"), u = A("cv-btn-base"), f = A("cv-form-inline"), h = A("cvTbColumnCheck"), d = A("cvTbColumnText"), p = A("cvTbColumnImg"), S = A("cv-btn-text"), y = A("cvTbColumnOpt"), L = A("cvTableBase"), w =
|
|
6316
|
+
const i = A("el-input"), s = A("el-tree"), c = A("cv-input-text"), l = A("cv-form-item"), u = A("cv-btn-base"), f = A("cv-form-inline"), h = A("cvTbColumnCheck"), d = A("cvTbColumnText"), p = A("cvTbColumnImg"), S = A("cv-btn-text"), y = A("cvTbColumnOpt"), L = A("cvTableBase"), w = zt("loading");
|
|
6314
6317
|
return Fe((E(), R("div", rc, [v("div", ac, [v("section", oc, [v("section", ic, [
|
|
6315
6318
|
t[4] || (t[4] = v("div", { class: "cloud-dia-left-title" }, "部门", -1)),
|
|
6316
6319
|
_(i, {
|
|
@@ -6440,7 +6443,7 @@ var cc = { methods: {
|
|
|
6440
6443
|
this.$router.go(-1);
|
|
6441
6444
|
},
|
|
6442
6445
|
jumpsReload() {
|
|
6443
|
-
|
|
6446
|
+
gt().SA_ROUTE_ALIVE_ADD();
|
|
6444
6447
|
},
|
|
6445
6448
|
jumpsMsgBack(e, t) {
|
|
6446
6449
|
this.$message({
|
|
@@ -6691,10 +6694,10 @@ async function _c(e) {
|
|
|
6691
6694
|
async function Dc(e, t) {
|
|
6692
6695
|
Be("sdkStartBefore");
|
|
6693
6696
|
const { sdkConfigSet: n } = Re();
|
|
6694
|
-
n({ ...t }), Fr(e), qe().init(), de().init(), await
|
|
6697
|
+
n({ ...t }), Fr(e), qe().init(), de().init(), await an().init(), await Z().init();
|
|
6695
6698
|
}
|
|
6696
6699
|
async function Lc(e, t, n, a, r = "", o = null) {
|
|
6697
|
-
Be("sdkStarup"),
|
|
6700
|
+
Be("sdkStarup"), pt().init(a), gt().init(n);
|
|
6698
6701
|
let i = e.config.globalProperties;
|
|
6699
6702
|
i.$onLaunched = new Promise((s) => {
|
|
6700
6703
|
i.$isResolve = s;
|
|
@@ -6702,7 +6705,7 @@ async function Lc(e, t, n, a, r = "", o = null) {
|
|
|
6702
6705
|
}
|
|
6703
6706
|
async function pc(e, t, n) {
|
|
6704
6707
|
Be("sdkBindRouter");
|
|
6705
|
-
const { sdkConfigData: a } = Re(), { checkRoute: r } =
|
|
6708
|
+
const { sdkConfigData: a } = Re(), { checkRoute: r } = ct(), o = Me(), i = Z(), s = pt(), c = gt();
|
|
6706
6709
|
o.QK_SEND_MSG_REG_SUBMENU(t);
|
|
6707
6710
|
let l = a.syProductSign || "";
|
|
6708
6711
|
c.SA_PERMS_ROUTER_ADD(e, l), s.SA_MENU_PARSE(), o.QK_SEND_MSG_ROUTER_BEFORE(n);
|
|
@@ -6738,14 +6741,14 @@ async function kc(e, t, n) {
|
|
|
6738
6741
|
export {
|
|
6739
6742
|
b as C,
|
|
6740
6743
|
Tc as E,
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
+
ct as S,
|
|
6745
|
+
qt as T,
|
|
6746
|
+
an as _,
|
|
6744
6747
|
Rc as a,
|
|
6745
6748
|
Fr as b,
|
|
6746
6749
|
Oc as c,
|
|
6747
6750
|
Al as d,
|
|
6748
|
-
|
|
6751
|
+
gt as f,
|
|
6749
6752
|
$r as g,
|
|
6750
6753
|
qe as h,
|
|
6751
6754
|
Nc as i,
|
|
@@ -6753,7 +6756,7 @@ export {
|
|
|
6753
6756
|
de as m,
|
|
6754
6757
|
Dc as n,
|
|
6755
6758
|
Fu as o,
|
|
6756
|
-
|
|
6759
|
+
pt as p,
|
|
6757
6760
|
Lc as r,
|
|
6758
6761
|
Ic as s,
|
|
6759
6762
|
kc as t,
|