@huyooo/ui 2.2.0 → 2.2.2

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.
Files changed (45) hide show
  1. package/dist/{AuthkitAppSetting-CHVSyEY1.js → AuthkitAppSetting-BuaqfKEv.js} +8 -8
  2. package/dist/{Contact-BTQf8tEx.js → Contact-D-NTKkWc.js} +3 -3
  3. package/dist/{CustomTable-BY0oHLXc.js → CustomTable-D9j5dgOH.js} +1 -1
  4. package/dist/{FeedbackModal.vue_vue_type_script_setup_true_lang-FIZdBxIZ.js → FeedbackModal.vue_vue_type_script_setup_true_lang-CsgTdQQG.js} +5 -5
  5. package/dist/{LegalDocViewer-DiNoy_oj.js → LegalDocViewer-DLpvpTeA.js} +202 -200
  6. package/dist/{MessageHandle-DDGFSJMg.js → MessageHandle-BVqmtDDc.js} +3 -3
  7. package/dist/{MessageList-CE5E_5Uv.js → MessageList-CCUlHX_0.js} +1 -1
  8. package/dist/{PaySubscriptions-Du9QWvlH.js → PaySubscriptions-CwjgkL21.js} +7 -7
  9. package/dist/{PricingPlans-BEhWsV2D.js → PricingPlans-CjLXF7is.js} +4 -4
  10. package/dist/{ReferrerReferees-t5s4LzbY.js → ReferrerReferees-RKmCkAIi.js} +4 -4
  11. package/dist/{Upload.vue_vue_type_script_setup_true_lang-DsrqOACa.js → Upload.vue_vue_type_script_setup_true_lang-DX_PVh8A.js} +1 -1
  12. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BrauYUc_.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-RMTlKkD-.js} +10 -10
  13. package/dist/{WidthContainer-CiabzONI.js → WidthContainer-iRk3r61v.js} +10 -10
  14. package/dist/apiClients-cJElwYYN.js +275 -0
  15. package/dist/authkit.js +10 -10
  16. package/dist/common/globalConfig.d.ts +15 -0
  17. package/dist/common.js +2 -2
  18. package/dist/composables.js +13 -13
  19. package/dist/feedback.js +2 -2
  20. package/dist/fetchAuthPageAboutUs-D-JEoE8N.js +34 -0
  21. package/dist/{index-BYH7DaQf.js → index-CHWVBunT.js} +1 -1
  22. package/dist/main.js +31 -31
  23. package/dist/message.js +5 -5
  24. package/dist/pay.js +5 -5
  25. package/dist/privateCom.js +1 -1
  26. package/dist/referrer.js +1 -1
  27. package/dist/{runtime-DDJRAtkv.js → runtime-7yUdSOYv.js} +119 -116
  28. package/dist/style.css +1 -1
  29. package/dist/upload.js +2 -2
  30. package/dist/{useAuthkitAppsAuthPageInfo-2izIyMfu.js → useAuthkitAppsAuthPageInfo-2qQf2lJP.js} +17 -15
  31. package/dist/{useAuthkitAuth-CWHJs8zY.js → useAuthkitAuth-C6RUN1mU.js} +2 -2
  32. package/dist/{useAuthkitCreateAndUpdate-COI5KVPJ.js → useAuthkitCreateAndUpdate-piFGtY-A.js} +1 -1
  33. package/dist/{useAuthkitUsersProfile-D4H_Gxgd.js → useAuthkitUsersProfile-D_9ttX6H.js} +3 -3
  34. package/dist/{useBillingStatusOptions-C6edto7H.js → useBillingStatusOptions-Bo1wYzgB.js} +1 -1
  35. package/dist/{useBillingSubscriptionSummary-BC3G0N4t.js → useBillingSubscriptionSummary-BabqnJ7S.js} +1 -1
  36. package/dist/{useEnsureAuthenticated-RZ1DflLz.js → useEnsureAuthenticated-NADE0UVJ.js} +2 -2
  37. package/dist/{useLegalDocs-xXYvYpPC.js → useLegalDocs-CfIjSyik.js} +2 -2
  38. package/dist/{useMessageNotifications-pxa5LHjV.js → useMessageNotifications-SMRRA3Kl.js} +1 -1
  39. package/dist/{usePageSEO-B3stKP3n.js → usePageSEO-qRI2bful.js} +2 -2
  40. package/dist/{useRoutePermission-CGq_LIZM.js → useRoutePermission-CkCE6-C3.js} +3 -3
  41. package/dist/{useSubscriptionCheckout-CZZLk_1d.js → useSubscriptionCheckout-B1CyTY9V.js} +3 -3
  42. package/dist/user.js +1 -1
  43. package/package.json +1 -1
  44. package/dist/apiClients-CWSwNzGk.js +0 -272
  45. package/dist/fetchAuthPageAboutUs-CLQlGhQy.js +0 -25
@@ -1,16 +1,16 @@
1
1
  import { ref as Nt, inject as Mt } from "vue";
2
- import { i as Kt } from "./apiClients-CWSwNzGk.js";
2
+ import { i as Kt } from "./apiClients-cJElwYYN.js";
3
3
  import { c as _t, g as Ht } from "./_commonjsHelpers-DaMA6jEr.js";
4
4
  const zt = Nt(void 0);
5
- function Vt(Q) {
5
+ function Vt(W) {
6
6
  var Pe, _;
7
- return Q === "system" ? typeof window < "u" && ((_ = (Pe = window.matchMedia) == null ? void 0 : Pe.call(window, "(prefers-color-scheme: dark)")) != null && _.matches) ? "dark" : "light" : Q;
7
+ return W === "system" ? typeof window < "u" && ((_ = (Pe = window.matchMedia) == null ? void 0 : Pe.call(window, "(prefers-color-scheme: dark)")) != null && _.matches) ? "dark" : "light" : W;
8
8
  }
9
- function Dt(Q) {
10
- typeof document > "u" || (Q === "dark" ? (document.body.setAttribute("arco-theme", "dark"), document.body.classList.add("dark")) : (document.body.removeAttribute("arco-theme"), document.body.classList.remove("dark")));
9
+ function Dt(W) {
10
+ typeof document > "u" || (W === "dark" ? (document.body.setAttribute("arco-theme", "dark"), document.body.classList.add("dark")) : (document.body.removeAttribute("arco-theme"), document.body.classList.remove("dark")));
11
11
  }
12
- function qt(Q) {
13
- zt.value = Q, Dt(Vt(Q));
12
+ function qt(W) {
13
+ zt.value = W, Dt(Vt(W));
14
14
  }
15
15
  const it = {
16
16
  avatarBucketId: "68350c206888f565dc7d09e9",
@@ -19,24 +19,27 @@ const it = {
19
19
  region: "ap-beijing",
20
20
  web3formsAccessKey: "72604aac-d55e-4df0-9bcf-31b2206b3753"
21
21
  };
22
- function Gt(Q) {
23
- return Q.theme !== void 0 && qt(Q.theme), Object.freeze({
24
- appId: Q.appId,
25
- authPrefixUrl: Q.endpoints.auth,
26
- onesPrefixUrl: Q.endpoints.ones,
27
- billingPrefixUrl: Q.endpoints.billing,
28
- logPrefixUrl: Q.endpoints.log,
29
- aiPrefixUrl: Q.endpoints.ai,
30
- webhookPrefixUrl: Q.endpoints.webhook,
31
- pricingUrl: Q.pricingUrl || "/Pricing",
32
- openPricing: Q.openPricing,
33
- avatarBucketId: Q.avatarBucketId ?? it.avatarBucketId,
34
- feedbackBucketId: Q.feedbackBucketId ?? it.feedbackBucketId,
35
- bucket: Q.bucket ?? it.bucket,
36
- region: Q.region ?? it.region,
37
- web3formsAccessKey: Q.web3formsAccessKey ?? it.web3formsAccessKey,
38
- legalDocsMode: Q.legalDocsMode ?? "builtin",
39
- getAccessToken: Q.getAccessToken
22
+ function Gt(W) {
23
+ return W.theme !== void 0 && qt(W.theme), Object.freeze({
24
+ appId: W.appId,
25
+ clientKey: W.clientKey,
26
+ platform: W.platform,
27
+ appVersion: W.appVersion,
28
+ authPrefixUrl: W.endpoints.auth,
29
+ onesPrefixUrl: W.endpoints.ones,
30
+ billingPrefixUrl: W.endpoints.billing,
31
+ logPrefixUrl: W.endpoints.log,
32
+ aiPrefixUrl: W.endpoints.ai,
33
+ webhookPrefixUrl: W.endpoints.webhook,
34
+ pricingUrl: W.pricingUrl || "/Pricing",
35
+ openPricing: W.openPricing,
36
+ avatarBucketId: W.avatarBucketId ?? it.avatarBucketId,
37
+ feedbackBucketId: W.feedbackBucketId ?? it.feedbackBucketId,
38
+ bucket: W.bucket ?? it.bucket,
39
+ region: W.region ?? it.region,
40
+ web3formsAccessKey: W.web3formsAccessKey ?? it.web3formsAccessKey,
41
+ legalDocsMode: W.legalDocsMode ?? "builtin",
42
+ getAccessToken: W.getAccessToken
40
43
  });
41
44
  }
42
45
  const $t = {
@@ -165,18 +168,18 @@ const $t = {
165
168
  log: "text/plain",
166
169
  plist: "application/x-plist"
167
170
  };
168
- function Wt(Q, Pe) {
171
+ function Wt(W, Pe) {
169
172
  var J;
170
- const _ = (J = Q.split(".").pop()) == null ? void 0 : J.toLowerCase();
173
+ const _ = (J = W.split(".").pop()) == null ? void 0 : J.toLowerCase();
171
174
  return _ && $t[_] || "application/octet-stream";
172
175
  }
173
- function Qt(Q) {
174
- return Q.type && Q.type !== "application/octet-stream" && Q.type !== "" ? Q.type : Wt(Q.name);
176
+ function Qt(W) {
177
+ return W.type && W.type !== "application/octet-stream" && W.type !== "" ? W.type : Wt(W.name);
175
178
  }
176
179
  var wt = { exports: {} };
177
- (function(Q, Pe) {
180
+ (function(W, Pe) {
178
181
  (function(J, E) {
179
- Q.exports = E();
182
+ W.exports = E();
180
183
  })(_t, function() {
181
184
  return (
182
185
  /******/
@@ -5069,7 +5072,7 @@ var wt = { exports: {} };
5069
5072
  });
5070
5073
  });
5071
5074
  }
5072
- function W(e, c) {
5075
+ function Q(e, c) {
5073
5076
  var n = e.SelectType;
5074
5077
  if (!n) return c(s.error(new Error("missing param SelectType")));
5075
5078
  var u = e.SelectRequest || {}, p = s.json2xml({
@@ -5976,7 +5979,7 @@ var wt = { exports: {} };
5976
5979
  putObjectTagging: P,
5977
5980
  getObjectTagging: O,
5978
5981
  deleteObjectTagging: q,
5979
- selectObjectContent: W,
5982
+ selectObjectContent: Q,
5980
5983
  appendObject: ze,
5981
5984
  // 分块上传相关方法
5982
5985
  uploadPartCopy: Ne,
@@ -6792,7 +6795,7 @@ var wt = { exports: {} };
6792
6795
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
6793
6796
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
6794
6797
  }
6795
- var W, ie = !0, ge = !1;
6798
+ var Q, ie = !0, ge = !1;
6796
6799
  return {
6797
6800
  s: function() {
6798
6801
  P = P.call(V);
@@ -6802,13 +6805,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6802
6805
  return ie = Be.done, Be;
6803
6806
  },
6804
6807
  e: function(Be) {
6805
- ge = !0, W = Be;
6808
+ ge = !0, Q = Be;
6806
6809
  },
6807
6810
  f: function() {
6808
6811
  try {
6809
6812
  ie || P.return == null || P.return();
6810
6813
  } finally {
6811
- if (ge) throw W;
6814
+ if (ge) throw Q;
6812
6815
  }
6813
6816
  }
6814
6817
  };
@@ -6871,14 +6874,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6871
6874
  var P = [];
6872
6875
  for (var O in V)
6873
6876
  V.hasOwnProperty(O) && P.push(R ? l(O).toLowerCase() : O);
6874
- return P.sort(function(q, W) {
6875
- return q = q.toLowerCase(), W = W.toLowerCase(), q === W ? 0 : q > W ? 1 : -1;
6877
+ return P.sort(function(q, Q) {
6878
+ return q = q.toLowerCase(), Q = Q.toLowerCase(), q === Q ? 0 : q > Q ? 1 : -1;
6876
6879
  });
6877
6880
  }
6878
6881
  var i = function(R, P) {
6879
- var O, q, W, ie = [], ge = x(R);
6882
+ var O, q, Q, ie = [], ge = x(R);
6880
6883
  for (O = 0; O < ge.length; O++)
6881
- q = ge[O], W = R[q] === void 0 || R[q] === null ? "" : "" + R[q], q = P ? l(q).toLowerCase() : l(q), W = l(W) || "", ie.push(q + "=" + W);
6884
+ q = ge[O], Q = R[q] === void 0 || R[q] === null ? "" : "" + R[q], q = P ? l(q).toLowerCase() : l(q), Q = l(Q) || "", ie.push(q + "=" + Q);
6882
6885
  return ie.join("&");
6883
6886
  }, o = ["cache-control", "content-disposition", "content-encoding", "content-length", "content-md5", "expect", "expires", "host", "if-match", "if-modified-since", "if-none-match", "if-unmodified-since", "origin", "range", "transfer-encoding", "pic-operations"], t = function(R) {
6884
6887
  var P = {};
@@ -6889,34 +6892,34 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6889
6892
  return P;
6890
6893
  }, r = function(R) {
6891
6894
  R = R || {};
6892
- var P = R.SecretId, O = R.SecretKey, q = R.KeyTime, W = (R.method || R.Method || "get").toLowerCase(), ie = se(R.Query || R.params || {}), ge = t(se(R.Headers || R.headers || {})), Ce = R.Key || "", Be;
6895
+ var P = R.SecretId, O = R.SecretKey, q = R.KeyTime, Q = (R.method || R.Method || "get").toLowerCase(), ie = se(R.Query || R.params || {}), ge = t(se(R.Headers || R.headers || {})), Ce = R.Key || "", Be;
6893
6896
  R.UseRawKey ? Be = R.Pathname || R.pathname || "/" + Ce : (Be = R.Pathname || R.pathname || Ce, Be.indexOf("/") !== 0 && (Be = "/" + Be));
6894
6897
  var Oe = R.ForceSignHost !== !1;
6895
6898
  if (!ge.Host && !ge.host && R.Bucket && R.Region && Oe && (ge.Host = R.Bucket + ".cos." + R.Region + ".myqcloud.com"), !P) throw new Error("missing param SecretId");
6896
6899
  if (!O) throw new Error("missing param SecretKey");
6897
6900
  var Ue = Math.round(Ze(R.SystemClockOffset) / 1e3) - 1, we = Ue, ze = R.Expires || R.expires;
6898
6901
  ze === void 0 ? we += 900 : we += ze * 1 || 0;
6899
- var Ye = "sha1", De = P, Re = q || Ue + ";" + we, $e = q || Ue + ";" + we, Ve = x(ge, !0).join(";").toLowerCase(), nt = x(ie, !0).join(";").toLowerCase(), st = k.HmacSHA1($e, O).toString(), Ct = [W, Be, Ne.obj2str(ie, !0), Ne.obj2str(ge, !0), ""].join(`
6902
+ var Ye = "sha1", De = P, Re = q || Ue + ";" + we, $e = q || Ue + ";" + we, Ve = x(ge, !0).join(";").toLowerCase(), nt = x(ie, !0).join(";").toLowerCase(), st = k.HmacSHA1($e, O).toString(), Ct = [Q, Be, Ne.obj2str(ie, !0), Ne.obj2str(ge, !0), ""].join(`
6900
6903
  `), kt = ["sha1", Re, k.SHA1(Ct).toString(), ""].join(`
6901
6904
  `), Y = k.HmacSHA1(kt, st).toString(), St = ["q-sign-algorithm=" + Ye, "q-ak=" + De, "q-sign-time=" + Re, "q-key-time=" + $e, "q-header-list=" + Ve, "q-url-param-list=" + nt, "q-signature=" + Y].join("&");
6902
6905
  return St;
6903
6906
  }, a = function(R, P, O) {
6904
- var q = P / 8, W = R.slice(O, O + q);
6905
- return new Uint8Array(W).reverse(), new {
6907
+ var q = P / 8, Q = R.slice(O, O + q);
6908
+ return new Uint8Array(Q).reverse(), new {
6906
6909
  8: Uint8Array,
6907
6910
  16: Uint16Array,
6908
6911
  32: Uint32Array
6909
- }[P](W)[0];
6912
+ }[P](Q)[0];
6910
6913
  }, y = function(R, P, O, q) {
6911
- var W = R.slice(P, O), ie = "";
6912
- return new Uint8Array(W).forEach(function(ge) {
6914
+ var Q = R.slice(P, O), ie = "";
6915
+ return new Uint8Array(Q).forEach(function(ge) {
6913
6916
  ie += String.fromCharCode(ge);
6914
6917
  }), q && (ie = decodeURIComponent(escape(ie))), ie;
6915
6918
  }, I = function(R) {
6916
6919
  for (var P = {}, O = y(R), q = {
6917
6920
  records: []
6918
6921
  }; R.byteLength; ) {
6919
- var W = a(R, 32, 0), ie = a(R, 32, 4), ge = W - ie - 16, Ce = 0, Be;
6922
+ var Q = a(R, 32, 0), ie = a(R, 32, 4), ge = Q - ie - 16, Ce = 0, Be;
6920
6923
  for (R = R.slice(12); Ce < ie; ) {
6921
6924
  var Oe = a(R, 8, Ce), Ue = y(R, Ce + 1, Ce + 1 + Oe), we = a(R, 16, Ce + Oe + 2), ze = y(R, Ce + Oe + 4, Ce + Oe + 4 + we);
6922
6925
  P[Ue] = ze, Ce += Oe + 4 + we;
@@ -6965,31 +6968,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6965
6968
  }, X = function() {
6966
6969
  var V = function(O, q) {
6967
6970
  O = O.split("."), q = q.split(".");
6968
- for (var W = 0; W < q.length; W++)
6969
- if (O[W] !== q[W])
6970
- return parseInt(O[W]) > parseInt(q[W]) ? 1 : -1;
6971
+ for (var Q = 0; Q < q.length; Q++)
6972
+ if (O[Q] !== q[Q])
6973
+ return parseInt(O[Q]) > parseInt(q[Q]) ? 1 : -1;
6971
6974
  return 0;
6972
6975
  }, R = function(O) {
6973
6976
  if (!O) return !1;
6974
- var q = (O.match(/Chrome\/([.\d]+)/) || [])[1], W = (O.match(/QBCore\/([.\d]+)/) || [])[1], ie = (O.match(/QQBrowser\/([.\d]+)/) || [])[1], ge = q && V(q, "53.0.2785.116") < 0 && W && V(W, "3.53.991.400") < 0 && ie && V(ie, "9.0.2524.400") <= 0 || !1;
6977
+ var q = (O.match(/Chrome\/([.\d]+)/) || [])[1], Q = (O.match(/QBCore\/([.\d]+)/) || [])[1], ie = (O.match(/QQBrowser\/([.\d]+)/) || [])[1], ge = q && V(q, "53.0.2785.116") < 0 && Q && V(Q, "3.53.991.400") < 0 && ie && V(ie, "9.0.2524.400") <= 0 || !1;
6975
6978
  return ge;
6976
6979
  };
6977
6980
  return R(typeof navigator < "u" && navigator.userAgent);
6978
- }(), ne = function(R, P, O, q, W) {
6981
+ }(), ne = function(R, P, O, q, Q) {
6979
6982
  var ie;
6980
6983
  if (R.slice ? ie = R.slice(P, O) : R.mozSlice ? ie = R.mozSlice(P, O) : R.webkitSlice && (ie = R.webkitSlice(P, O)), q && X) {
6981
6984
  var ge = new FileReader();
6982
6985
  ge.onload = function(Ce) {
6983
- ie = null, W(new Blob([ge.result]));
6986
+ ie = null, Q(new Blob([ge.result]));
6984
6987
  }, ge.readAsArrayBuffer(ie);
6985
6988
  } else
6986
- W(ie);
6989
+ Q(ie);
6987
6990
  }, oe = function(R, P, O, q) {
6988
- O = O || M, R ? typeof P == "string" ? O(Ne.md5(P, !0)) : Blob && P instanceof Blob ? Ne.getFileMd5(P, function(W, ie) {
6991
+ O = O || M, R ? typeof P == "string" ? O(Ne.md5(P, !0)) : Blob && P instanceof Blob ? Ne.getFileMd5(P, function(Q, ie) {
6989
6992
  O(ie);
6990
6993
  }, q) : O() : O();
6991
6994
  }, ke = 1024 * 1024, le = function(R, P, O) {
6992
- var q = R.size, W = 0, ie = s.getCtx(), ge = function(Be) {
6995
+ var q = R.size, Q = 0, ie = s.getCtx(), ge = function(Be) {
6993
6996
  if (Be >= q) {
6994
6997
  var Oe = ie.digest("hex");
6995
6998
  P(null, Oe);
@@ -6998,10 +7001,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6998
7001
  var Ue = Math.min(q, Be + ke);
6999
7002
  Ne.fileSlice(R, Be, Ue, !1, function(we) {
7000
7003
  Z(we, function(ze) {
7001
- we = null, ie = ie.update(ze, !0), W += ze.length, ze = null, O && O({
7002
- loaded: W,
7004
+ we = null, ie = ie.update(ze, !0), Q += ze.length, ze = null, O && O({
7005
+ loaded: Q,
7003
7006
  total: q,
7004
- percent: Math.round(W / q * 1e4) / 1e4
7007
+ percent: Math.round(Q / q * 1e4) / 1e4
7005
7008
  }), ge(Be + ke);
7006
7009
  });
7007
7010
  });
@@ -7055,24 +7058,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7055
7058
  return O;
7056
7059
  }
7057
7060
  var ve = function(R) {
7058
- var P, O, q, W = "";
7061
+ var P, O, q, Q = "";
7059
7062
  for (P = 0, O = R.length / 2; P < O; P++)
7060
- q = parseInt(R[P * 2] + R[P * 2 + 1], 16), W += String.fromCharCode(q);
7061
- return btoa(W);
7063
+ q = parseInt(R[P * 2] + R[P * 2 + 1], 16), Q += String.fromCharCode(q);
7064
+ return btoa(Q);
7062
7065
  }, Ee = function() {
7063
7066
  var R = function() {
7064
7067
  return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
7065
7068
  };
7066
7069
  return R() + R() + "-" + R() + "-" + R() + "-" + R() + "-" + R() + R() + R();
7067
7070
  }, xe = function(R, P) {
7068
- var O = P.Bucket, q = P.Region, W = P.Key, ie = this.options.Domain, ge = !ie || typeof ie == "string" && ie.indexOf("{Bucket}") > -1, Ce = !ie || typeof ie == "string" && ie.indexOf("{Region}") > -1;
7071
+ var O = P.Bucket, q = P.Region, Q = P.Key, ie = this.options.Domain, ge = !ie || typeof ie == "string" && ie.indexOf("{Bucket}") > -1, Ce = !ie || typeof ie == "string" && ie.indexOf("{Region}") > -1;
7069
7072
  if (R.indexOf("Bucket") > -1 || R === "deleteMultipleObject" || R === "multipartList" || R === "listObjectVersions") {
7070
7073
  if (ge && !O) return "Bucket";
7071
7074
  if (Ce && !q) return "Region";
7072
7075
  } else if (R.indexOf("Object") > -1 || R.indexOf("multipart") > -1 || R === "sliceUploadFile" || R === "abortUploadTask" || R === "uploadFile") {
7073
7076
  if (ge && !O) return "Bucket";
7074
7077
  if (Ce && !q) return "Region";
7075
- if (!W) return "Key";
7078
+ if (!Q) return "Key";
7076
7079
  }
7077
7080
  return !1;
7078
7081
  }, Ie = function(R, P) {
@@ -7080,8 +7083,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7080
7083
  var O = P.Headers || {};
7081
7084
  if (P && A(P) === "object") {
7082
7085
  (function() {
7083
- for (var W in P)
7084
- P.hasOwnProperty(W) && W.indexOf("x-cos-") > -1 && (O[W] = P[W]);
7086
+ for (var Q in P)
7087
+ P.hasOwnProperty(Q) && Q.indexOf("x-cos-") > -1 && (O[Q] = P[Q]);
7085
7088
  })();
7086
7089
  var q = {
7087
7090
  // params headers
@@ -7129,18 +7132,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7129
7132
  "x-cos-callback-var": "CallbackVar",
7130
7133
  "x-cos-return-body": "ReturnBody"
7131
7134
  };
7132
- Ne.each(q, function(W, ie) {
7133
- P[W] !== void 0 && (O[ie] = P[W]);
7135
+ Ne.each(q, function(Q, ie) {
7136
+ P[Q] !== void 0 && (O[ie] = P[Q]);
7134
7137
  }), P.Headers = K(O);
7135
7138
  }
7136
7139
  }
7137
7140
  return P;
7138
7141
  }, Ge = function(R, P) {
7139
7142
  return function(O, q) {
7140
- var W = this;
7143
+ var Q = this;
7141
7144
  typeof O == "function" && (q = O, O = {}), O = Ie(R, O);
7142
7145
  var ie;
7143
- if (W.options.EnableReporter)
7146
+ if (Q.options.EnableReporter)
7144
7147
  if (O.calledBySdk === "sliceUploadFile" || O.calledBySdk === "sliceCopyFile")
7145
7148
  ie = O.tracker && O.tracker.generateSubTracker({
7146
7149
  apiName: R
@@ -7150,10 +7153,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7150
7153
  else {
7151
7154
  var ge = 0;
7152
7155
  O.Body && (ge = typeof O.Body == "string" ? O.Body.length : O.Body.size || O.Body.byteLength || 0);
7153
- var Ce = W.options.UseAccelerate || typeof W.options.Domain == "string" && W.options.Domain.includes("accelerate.");
7156
+ var Ce = Q.options.UseAccelerate || typeof Q.options.Domain == "string" && Q.options.Domain.includes("accelerate.");
7154
7157
  ie = new w({
7155
- Beacon: W.options.BeaconReporter,
7156
- clsReporter: W.options.ClsReporter,
7158
+ Beacon: Q.options.BeaconReporter,
7159
+ clsReporter: Q.options.ClsReporter,
7157
7160
  bucket: O.Bucket,
7158
7161
  region: O.Region,
7159
7162
  apiName: R,
@@ -7161,9 +7164,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7161
7164
  accelerate: Ce,
7162
7165
  fileKey: O.Key,
7163
7166
  fileSize: ge,
7164
- deepTracker: W.options.DeepTracker,
7165
- customId: W.options.CustomId,
7166
- delay: W.options.TrackerDelay
7167
+ deepTracker: Q.options.DeepTracker,
7168
+ customId: Q.options.CustomId,
7169
+ delay: Q.options.TrackerDelay
7167
7170
  });
7168
7171
  }
7169
7172
  O.tracker = ie;
@@ -7173,11 +7176,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7173
7176
  ie && ie.report(Re, $e), q && q(Be(Re), Be($e));
7174
7177
  }, Ue = function() {
7175
7178
  if (R !== "getService" && R !== "abortUploadTask") {
7176
- var Re = xe.call(W, R, O);
7179
+ var Re = xe.call(Q, R, O);
7177
7180
  if (Re)
7178
7181
  return "missing param " + Re;
7179
7182
  if (O.Region) {
7180
- if (W.options.CompatibilityMode) {
7183
+ if (Q.options.CompatibilityMode) {
7181
7184
  if (!/^([a-z\d-.]+)$/.test(O.Region))
7182
7185
  return "Region format error.";
7183
7186
  } else {
@@ -7186,19 +7189,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7186
7189
  if (!/^([a-z\d-]+)$/.test(O.Region))
7187
7190
  return "Region format error.";
7188
7191
  }
7189
- !W.options.CompatibilityMode && O.Region.indexOf("-") === -1 && O.Region !== "yfb" && O.Region !== "default" && O.Region !== "accelerate" && console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224");
7192
+ !Q.options.CompatibilityMode && O.Region.indexOf("-") === -1 && O.Region !== "yfb" && O.Region !== "default" && O.Region !== "accelerate" && console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224");
7190
7193
  }
7191
7194
  if (O.Bucket) {
7192
7195
  if (!/^([a-z\d-]+)-(\d+)$/.test(O.Bucket))
7193
7196
  if (O.AppId)
7194
7197
  O.Bucket = O.Bucket + "-" + O.AppId;
7195
- else if (W.options.AppId)
7196
- O.Bucket = O.Bucket + "-" + W.options.AppId;
7198
+ else if (Q.options.AppId)
7199
+ O.Bucket = O.Bucket + "-" + Q.options.AppId;
7197
7200
  else
7198
7201
  return 'Bucket should format as "test-1250000000".';
7199
7202
  O.AppId && (console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'), delete O.AppId);
7200
7203
  }
7201
- !W.options.UseRawKey && O.Key && O.Key.substr(0, 1) === "/" && (O.Key = O.Key.substr(1));
7204
+ !Q.options.UseRawKey && O.Key && O.Key.substr(0, 1) === "/" && (O.Key = O.Key.substr(1));
7202
7205
  }
7203
7206
  }, we = Ue(), ze = ["getAuth", "getObjectUrl"].includes(R);
7204
7207
  if (typeof Promise == "function" && !ze && !q)
@@ -7206,22 +7209,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7206
7209
  if (q = function(Ve, nt) {
7207
7210
  Ve ? Re(Ve) : De(nt);
7208
7211
  }, we) return Oe(Ne.error(new Error(we)));
7209
- P.call(W, O, Oe);
7212
+ P.call(Q, O, Oe);
7210
7213
  });
7211
7214
  if (we) return Oe(Ne.error(new Error(we)));
7212
- var Ye = P.call(W, O, Oe);
7215
+ var Ye = P.call(Q, O, Oe);
7213
7216
  if (ze) return Ye;
7214
7217
  };
7215
7218
  }, _e = function(R, P) {
7216
- var O = this, q = 0, W = 0, ie = Date.now(), ge, Ce;
7219
+ var O = this, q = 0, Q = 0, ie = Date.now(), ge, Ce;
7217
7220
  function Be() {
7218
7221
  if (Ce = 0, P && typeof P == "function") {
7219
7222
  ge = Date.now();
7220
- var Oe = Math.max(0, Math.round((W - q) / ((ge - ie) / 1e3) * 100) / 100) || 0, Ue;
7221
- W === 0 && R === 0 ? Ue = 1 : Ue = Math.floor(W / R * 100) / 100 || 0, ie = ge, q = W;
7223
+ var Oe = Math.max(0, Math.round((Q - q) / ((ge - ie) / 1e3) * 100) / 100) || 0, Ue;
7224
+ Q === 0 && R === 0 ? Ue = 1 : Ue = Math.floor(Q / R * 100) / 100 || 0, ie = ge, q = Q;
7222
7225
  try {
7223
7226
  P({
7224
- loaded: W,
7227
+ loaded: Q,
7225
7228
  total: R,
7226
7229
  speed: Oe,
7227
7230
  percent: Ue
@@ -7231,7 +7234,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7231
7234
  }
7232
7235
  }
7233
7236
  return function(Oe, Ue) {
7234
- if (Oe && (W = Oe.loaded, R = Oe.total), Ue)
7237
+ if (Oe && (Q = Oe.loaded, R = Oe.total), Ue)
7235
7238
  clearTimeout(Ce), Be();
7236
7239
  else {
7237
7240
  if (Ce) return;
@@ -7278,10 +7281,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7278
7281
  }, pt = function(R) {
7279
7282
  return R ? B.decode(R) : "";
7280
7283
  }, yt = function(R) {
7281
- var P = R.split("/"), O = [], q = j(P), W;
7284
+ var P = R.split("/"), O = [], q = j(P), Q;
7282
7285
  try {
7283
- for (q.s(); !(W = q.n()).done; ) {
7284
- var ie = W.value;
7286
+ for (q.s(); !(Q = q.n()).done; ) {
7287
+ var ie = Q.value;
7285
7288
  ie === ".." ? O.length && O.pop() : ie.length && ie !== "." && O.push(ie);
7286
7289
  }
7287
7290
  } catch (ge) {
@@ -7293,10 +7296,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7293
7296
  }, vt = function(R) {
7294
7297
  var P;
7295
7298
  if (R && typeof R == "string") {
7296
- var O = R.trim(), q = O.indexOf("<") === 0, W = O.indexOf("{") === 0;
7299
+ var O = R.trim(), q = O.indexOf("<") === 0, Q = O.indexOf("{") === 0;
7297
7300
  if (q)
7298
7301
  P = Ne.xml2json(R) || {};
7299
- else if (W)
7302
+ else if (Q)
7300
7303
  try {
7301
7304
  var ie = R.replace(/\n/g, " "), ge = JSON.parse(ie);
7302
7305
  Object.prototype.toString.call(ge) === "[object Object]" ? P = ge : P = R;
@@ -7364,7 +7367,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7364
7367
  var Jt = wt.exports;
7365
7368
  const Xt = /* @__PURE__ */ Ht(Jt), Zt = 5 * 1024 * 1024;
7366
7369
  function Yt() {
7367
- async function Q(Pe) {
7370
+ async function W(Pe) {
7368
7371
  var A, j;
7369
7372
  let _ = null;
7370
7373
  const J = () => {
@@ -7402,34 +7405,34 @@ function Yt() {
7402
7405
  }
7403
7406
  }
7404
7407
  return {
7405
- upload: Q
7408
+ upload: W
7406
7409
  };
7407
7410
  }
7408
- function en(Q) {
7409
- return !!Q && typeof Q == "object" && "Key" in Q && typeof Q.Key == "string" && "Bucket" in Q && typeof Q.Bucket == "string" && "Region" in Q && typeof Q.Region == "string" && "TmpSecretId" in Q && typeof Q.TmpSecretId == "string" && "TmpSecretKey" in Q && typeof Q.TmpSecretKey == "string" && "SessionToken" in Q && typeof Q.SessionToken == "string" && "StartTime" in Q && typeof Q.StartTime == "number" && "ExpiredTime" in Q && typeof Q.ExpiredTime == "number";
7411
+ function en(W) {
7412
+ return !!W && typeof W == "object" && "Key" in W && typeof W.Key == "string" && "Bucket" in W && typeof W.Bucket == "string" && "Region" in W && typeof W.Region == "string" && "TmpSecretId" in W && typeof W.TmpSecretId == "string" && "TmpSecretKey" in W && typeof W.TmpSecretKey == "string" && "SessionToken" in W && typeof W.SessionToken == "string" && "StartTime" in W && typeof W.StartTime == "number" && "ExpiredTime" in W && typeof W.ExpiredTime == "number";
7410
7413
  }
7411
- function tn(Q) {
7412
- return Q && typeof Q == "object" && "id" in Q ? String(Q.id) : "";
7414
+ function tn(W) {
7415
+ return W && typeof W == "object" && "id" in W ? String(W.id) : "";
7413
7416
  }
7414
- function Rt(Q, Pe) {
7415
- return Q && typeof Q == "object" && "message" in Q && typeof Q.message == "string" ? new Error(Q.message) : new Error(Pe);
7417
+ function Rt(W, Pe) {
7418
+ return W && typeof W == "object" && "message" in W && typeof W.message == "string" ? new Error(W.message) : new Error(Pe);
7416
7419
  }
7417
7420
  function It() {
7418
7421
  return new DOMException("上传已取消", "AbortError");
7419
7422
  }
7420
- function Bt(Q) {
7421
- if (Q != null && Q.aborted)
7423
+ function Bt(W) {
7424
+ if (W != null && W.aborted)
7422
7425
  throw It();
7423
7426
  }
7424
- function nn(Q) {
7425
- return Q instanceof Error ? Q : new Error("上传失败");
7427
+ function nn(W) {
7428
+ return W instanceof Error ? W : new Error("上传失败");
7426
7429
  }
7427
- function on(Q, Pe = Yt()) {
7430
+ function on(W, Pe = Yt()) {
7428
7431
  async function _(J) {
7429
7432
  var E;
7430
7433
  try {
7431
7434
  Bt(J.signal);
7432
- const U = Qt(J.file), A = await Q.ones.files.getKeyAndCredentials.post({
7435
+ const U = Qt(J.file), A = await W.ones.files.getKeyAndCredentials.post({
7433
7436
  filename: J.file.name,
7434
7437
  bucketId: J.bucketId,
7435
7438
  size: J.file.size,
@@ -7457,7 +7460,7 @@ function on(Q, Pe = Yt()) {
7457
7460
  },
7458
7461
  signal: J.signal
7459
7462
  }), Bt(J.signal);
7460
- const L = await Q.ones.files.create.post({
7463
+ const L = await W.ones.files.create.post({
7461
7464
  bucketId: J.bucketId,
7462
7465
  filename: j.Key,
7463
7466
  name: J.file.name,
@@ -7467,7 +7470,7 @@ function on(Q, Pe = Yt()) {
7467
7470
  }), N = tn(L.data);
7468
7471
  if (L.error || !N)
7469
7472
  throw Rt(L.error, "登记上传文件失败");
7470
- const s = await Q.ones.files.update.post({
7473
+ const s = await W.ones.files.update.post({
7471
7474
  id: N,
7472
7475
  status: "success"
7473
7476
  });
@@ -7493,10 +7496,10 @@ function on(Q, Pe = Yt()) {
7493
7496
  }
7494
7497
  const Ft = Symbol("huyooo-runtime");
7495
7498
  let lt = null;
7496
- function an(Q) {
7499
+ function an(W) {
7497
7500
  if (lt)
7498
7501
  throw new Error("Huyooo UI Runtime 已初始化,不能重复创建");
7499
- const Pe = Gt(Q), _ = Kt(Pe), J = on(_), E = {
7502
+ const Pe = Gt(W), _ = Kt(Pe), J = on(_), E = {
7500
7503
  config: Pe,
7501
7504
  api: _,
7502
7505
  upload: J
@@ -7514,10 +7517,10 @@ function cn() {
7514
7517
  return lt;
7515
7518
  }
7516
7519
  function ln() {
7517
- const Q = Mt(Ft);
7518
- if (!Q)
7520
+ const W = Mt(Ft);
7521
+ if (!W)
7519
7522
  throw new Error("当前 Vue 应用未安装 createHuyoooUI(config)");
7520
- return Q;
7523
+ return W;
7521
7524
  }
7522
7525
  export {
7523
7526
  Ft as H,