@zyzgroup/core-web 0.0.82 → 0.0.84

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.
@@ -802,40 +802,40 @@ class mi {
802
802
  var sn = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
803
803
  function Pa(n, t = {}) {
804
804
  var e = 1, s = 1;
805
- function i(k) {
806
- var _ = k.match(/\n/g);
805
+ function i(A) {
806
+ var _ = A.match(/\n/g);
807
807
  _ && (e += _.length);
808
- var R = k.lastIndexOf(`
808
+ var R = A.lastIndexOf(`
809
809
  `);
810
- s = ~R ? k.length - R : s + k.length;
810
+ s = ~R ? A.length - R : s + A.length;
811
811
  }
812
812
  function r() {
813
- var k = { line: e, column: s };
813
+ var A = { line: e, column: s };
814
814
  return function(_) {
815
- return _.position = new a(k), m(), _;
815
+ return _.position = new a(A), m(), _;
816
816
  };
817
817
  }
818
- function a(k) {
819
- this.start = k, this.end = { line: e, column: s }, this.source = t.source;
818
+ function a(A) {
819
+ this.start = A, this.end = { line: e, column: s }, this.source = t.source;
820
820
  }
821
821
  a.prototype.content = n;
822
822
  var o = [];
823
- function h(k) {
823
+ function h(A) {
824
824
  var _ = new Error(
825
- t.source + ":" + e + ":" + s + ": " + k
825
+ t.source + ":" + e + ":" + s + ": " + A
826
826
  );
827
- if (_.reason = k, _.filename = t.source, _.line = e, _.column = s, _.source = n, t.silent)
827
+ if (_.reason = A, _.filename = t.source, _.line = e, _.column = s, _.source = n, t.silent)
828
828
  o.push(_);
829
829
  else
830
830
  throw _;
831
831
  }
832
832
  function c() {
833
- var k = p();
833
+ var A = p();
834
834
  return {
835
835
  type: "stylesheet",
836
836
  stylesheet: {
837
837
  source: t.source,
838
- rules: k,
838
+ rules: A,
839
839
  parsingErrors: o
840
840
  }
841
841
  };
@@ -847,13 +847,13 @@ function Pa(n, t = {}) {
847
847
  return g(/^}/);
848
848
  }
849
849
  function p() {
850
- var k, _ = [];
851
- for (m(), x(_); n.length && n.charAt(0) != "}" && (k = se() || le()); )
852
- k !== !1 && (_.push(k), x(_));
850
+ var A, _ = [];
851
+ for (m(), x(_); n.length && n.charAt(0) != "}" && (A = se() || le()); )
852
+ A !== !1 && (_.push(A), x(_));
853
853
  return _;
854
854
  }
855
- function g(k) {
856
- var _ = k.exec(n);
855
+ function g(A) {
856
+ var _ = A.exec(n);
857
857
  if (_) {
858
858
  var R = _[0];
859
859
  return i(R), n = n.slice(R.length), _;
@@ -862,41 +862,41 @@ function Pa(n, t = {}) {
862
862
  function m() {
863
863
  g(/^\s*/);
864
864
  }
865
- function x(k) {
865
+ function x(A) {
866
866
  var _;
867
- for (k = k || []; _ = w(); )
868
- _ !== !1 && k.push(_);
869
- return k;
867
+ for (A = A || []; _ = w(); )
868
+ _ !== !1 && A.push(_);
869
+ return A;
870
870
  }
871
871
  function w() {
872
- var k = r();
872
+ var A = r();
873
873
  if (!(n.charAt(0) != "/" || n.charAt(1) != "*")) {
874
874
  for (var _ = 2; n.charAt(_) != "" && (n.charAt(_) != "*" || n.charAt(_ + 1) != "/"); )
875
875
  ++_;
876
876
  if (_ += 2, n.charAt(_ - 1) === "")
877
877
  return h("End of comment missing");
878
878
  var R = n.slice(2, _ - 2);
879
- return s += 2, i(R), n = n.slice(_), s += 2, k({
879
+ return s += 2, i(R), n = n.slice(_), s += 2, A({
880
880
  type: "comment",
881
881
  comment: R
882
882
  });
883
883
  }
884
884
  }
885
885
  function v() {
886
- var k = g(/^([^{]+)/);
887
- if (k)
888
- return Xt(k[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g, "").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g, function(_) {
886
+ var A = g(/^([^{]+)/);
887
+ if (A)
888
+ return Xt(A[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g, "").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g, function(_) {
889
889
  return _.replace(/,/g, "‌");
890
890
  }).split(/\s*(?![^(]*\)),\s*/).map(function(_) {
891
891
  return _.replace(/\u200C/g, ",");
892
892
  });
893
893
  }
894
894
  function S() {
895
- var k = r(), _ = g(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);
895
+ var A = r(), _ = g(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);
896
896
  if (_) {
897
897
  if (_ = Xt(_[0]), !g(/^:\s*/))
898
898
  return h("property missing ':'");
899
- var R = g(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/), B = k({
899
+ var R = g(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/), B = A({
900
900
  type: "declaration",
901
901
  property: _.replace(sn, ""),
902
902
  value: R ? Xt(R[0]).replace(sn, "") : ""
@@ -905,17 +905,17 @@ function Pa(n, t = {}) {
905
905
  }
906
906
  }
907
907
  function I() {
908
- var k = [];
908
+ var A = [];
909
909
  if (!l())
910
910
  return h("missing '{'");
911
- x(k);
911
+ x(A);
912
912
  for (var _; _ = S(); )
913
- _ !== !1 && (k.push(_), x(k));
914
- return d() ? k : h("missing '}'");
913
+ _ !== !1 && (A.push(_), x(A));
914
+ return d() ? A : h("missing '}'");
915
915
  }
916
916
  function L() {
917
- for (var k, _ = [], R = r(); k = g(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/); )
918
- _.push(k[1]), g(/^,\s*/);
917
+ for (var A, _ = [], R = r(); A = g(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/); )
918
+ _.push(A[1]), g(/^,\s*/);
919
919
  if (_.length)
920
920
  return R({
921
921
  type: "keyframe",
@@ -924,7 +924,7 @@ function Pa(n, t = {}) {
924
924
  });
925
925
  }
926
926
  function X() {
927
- var k = r(), _ = g(/^@([-\w]+)?keyframes\s*/);
927
+ var A = r(), _ = g(/^@([-\w]+)?keyframes\s*/);
928
928
  if (_) {
929
929
  var R = _[1];
930
930
  if (_ = g(/^([-\w]+)\s*/), !_)
@@ -934,7 +934,7 @@ function Pa(n, t = {}) {
934
934
  return h("@keyframes missing '{'");
935
935
  for (var nt, Et = x(); nt = L(); )
936
936
  Et.push(nt), Et = Et.concat(x());
937
- return d() ? k({
937
+ return d() ? A({
938
938
  type: "keyframes",
939
939
  name: B,
940
940
  vendor: R,
@@ -943,13 +943,13 @@ function Pa(n, t = {}) {
943
943
  }
944
944
  }
945
945
  function F() {
946
- var k = r(), _ = g(/^@supports *([^{]+)/);
946
+ var A = r(), _ = g(/^@supports *([^{]+)/);
947
947
  if (_) {
948
948
  var R = Xt(_[1]);
949
949
  if (!l())
950
950
  return h("@supports missing '{'");
951
951
  var B = x().concat(p());
952
- return d() ? k({
952
+ return d() ? A({
953
953
  type: "supports",
954
954
  supports: R,
955
955
  rules: B
@@ -957,25 +957,25 @@ function Pa(n, t = {}) {
957
957
  }
958
958
  }
959
959
  function q() {
960
- var k = r(), _ = g(/^@host\s*/);
960
+ var A = r(), _ = g(/^@host\s*/);
961
961
  if (_) {
962
962
  if (!l())
963
963
  return h("@host missing '{'");
964
964
  var R = x().concat(p());
965
- return d() ? k({
965
+ return d() ? A({
966
966
  type: "host",
967
967
  rules: R
968
968
  }) : h("@host missing '}'");
969
969
  }
970
970
  }
971
971
  function et() {
972
- var k = r(), _ = g(/^@media *([^{]+)/);
972
+ var A = r(), _ = g(/^@media *([^{]+)/);
973
973
  if (_) {
974
974
  var R = Xt(_[1]);
975
975
  if (!l())
976
976
  return h("@media missing '{'");
977
977
  var B = x().concat(p());
978
- return d() ? k({
978
+ return d() ? A({
979
979
  type: "media",
980
980
  media: R,
981
981
  rules: B
@@ -983,23 +983,23 @@ function Pa(n, t = {}) {
983
983
  }
984
984
  }
985
985
  function $() {
986
- var k = r(), _ = g(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);
986
+ var A = r(), _ = g(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);
987
987
  if (_)
988
- return k({
988
+ return A({
989
989
  type: "custom-media",
990
990
  name: Xt(_[1]),
991
991
  media: Xt(_[2])
992
992
  });
993
993
  }
994
994
  function W() {
995
- var k = r(), _ = g(/^@page */);
995
+ var A = r(), _ = g(/^@page */);
996
996
  if (_) {
997
997
  var R = v() || [];
998
998
  if (!l())
999
999
  return h("@page missing '{'");
1000
1000
  for (var B = x(), nt; nt = S(); )
1001
1001
  B.push(nt), B = B.concat(x());
1002
- return d() ? k({
1002
+ return d() ? A({
1003
1003
  type: "page",
1004
1004
  selectors: R,
1005
1005
  declarations: B
@@ -1007,13 +1007,13 @@ function Pa(n, t = {}) {
1007
1007
  }
1008
1008
  }
1009
1009
  function H() {
1010
- var k = r(), _ = g(/^@([-\w]+)?document *([^{]+)/);
1010
+ var A = r(), _ = g(/^@([-\w]+)?document *([^{]+)/);
1011
1011
  if (_) {
1012
1012
  var R = Xt(_[1]), B = Xt(_[2]);
1013
1013
  if (!l())
1014
1014
  return h("@document missing '{'");
1015
1015
  var nt = x().concat(p());
1016
- return d() ? k({
1016
+ return d() ? A({
1017
1017
  type: "document",
1018
1018
  document: B,
1019
1019
  vendor: R,
@@ -1022,26 +1022,26 @@ function Pa(n, t = {}) {
1022
1022
  }
1023
1023
  }
1024
1024
  function st() {
1025
- var k = r(), _ = g(/^@font-face\s*/);
1025
+ var A = r(), _ = g(/^@font-face\s*/);
1026
1026
  if (_) {
1027
1027
  if (!l())
1028
1028
  return h("@font-face missing '{'");
1029
1029
  for (var R = x(), B; B = S(); )
1030
1030
  R.push(B), R = R.concat(x());
1031
- return d() ? k({
1031
+ return d() ? A({
1032
1032
  type: "font-face",
1033
1033
  declarations: R
1034
1034
  }) : h("@font-face missing '}'");
1035
1035
  }
1036
1036
  }
1037
1037
  var wt = qt("import"), lt = qt("charset"), ce = qt("namespace");
1038
- function qt(k) {
1039
- var _ = new RegExp("^@" + k + "\\s*([^;]+);");
1038
+ function qt(A) {
1039
+ var _ = new RegExp("^@" + A + "\\s*([^;]+);");
1040
1040
  return function() {
1041
1041
  var R = r(), B = g(_);
1042
1042
  if (B) {
1043
- var nt = { type: k };
1044
- return nt[k] = B[1].trim(), R(nt);
1043
+ var nt = { type: A };
1044
+ return nt[A] = B[1].trim(), R(nt);
1045
1045
  }
1046
1046
  };
1047
1047
  }
@@ -1050,8 +1050,8 @@ function Pa(n, t = {}) {
1050
1050
  return X() || et() || $() || F() || wt() || lt() || ce() || H() || W() || q() || st();
1051
1051
  }
1052
1052
  function le() {
1053
- var k = r(), _ = v();
1054
- return _ ? (x(), k({
1053
+ var A = r(), _ = v();
1054
+ return _ ? (x(), A({
1055
1055
  type: "rule",
1056
1056
  selectors: _,
1057
1057
  declarations: I()
@@ -1129,7 +1129,7 @@ const _a = {
1129
1129
  }
1130
1130
  };
1131
1131
  Xn(_a);
1132
- function Aa(n, t = (e, s) => e <= s) {
1132
+ function ka(n, t = (e, s) => e <= s) {
1133
1133
  const e = n.length;
1134
1134
  let s = Math.floor(e / 2);
1135
1135
  for (; s > 0; ) {
@@ -1156,7 +1156,7 @@ const Bn = (n, t = "image/svg+xml", e = "utf-8") => e === "base64" ? new Blob([n
1156
1156
  const s = document.createElement("a");
1157
1157
  s.style.visibility = "hidden", document.body.appendChild(s), s.download = t, typeof n == "string" ? s.href = n : s.href = window.URL.createObjectURL(n), s.click(), document.body.removeChild(s), window.URL.revokeObjectURL(s.href), e();
1158
1158
  });
1159
- function ka(n = ["*"], t) {
1159
+ function Aa(n = ["*"], t) {
1160
1160
  return new Promise((e, s) => {
1161
1161
  if (!globalThis.document || !(globalThis.document instanceof Document))
1162
1162
  return s(new Error("This is not a browser environment"));
@@ -1455,7 +1455,7 @@ function _c() {
1455
1455
  height: document.body.clientHeight
1456
1456
  };
1457
1457
  }
1458
- function Ac() {
1458
+ function kc() {
1459
1459
  const { scrollWidth: n, scrollHeight: t } = ws();
1460
1460
  return {
1461
1461
  // width: Math.min(scrollWidth, contentWidth),
@@ -1486,7 +1486,7 @@ function Dc(n) {
1486
1486
  function Ra(n) {
1487
1487
  return n.getBoundingClientRect();
1488
1488
  }
1489
- function kc(n) {
1489
+ function Ac(n) {
1490
1490
  const t = n.getBoundingClientRect();
1491
1491
  return {
1492
1492
  x: n.offsetLeft,
@@ -1523,7 +1523,7 @@ function Oa(n) {
1523
1523
  y: n.clientY + e
1524
1524
  };
1525
1525
  }
1526
- function kt(n, t) {
1526
+ function At(n, t) {
1527
1527
  if (!t && "offsetX" in n)
1528
1528
  return {
1529
1529
  x: n.offsetX,
@@ -3229,7 +3229,7 @@ function ii(n, t, e, s, i, r) {
3229
3229
  r
3230
3230
  ];
3231
3231
  }
3232
- function ke(n, t, e, s) {
3232
+ function Ae(n, t, e, s) {
3233
3233
  return [n, t, e, s, e, s];
3234
3234
  }
3235
3235
  const es = {
@@ -3262,7 +3262,7 @@ class fe {
3262
3262
  "http://www.w3.org/2000/svg",
3263
3263
  t
3264
3264
  );
3265
- return e && A.attribute(s, e), s;
3265
+ return e && k.attribute(s, e), s;
3266
3266
  }
3267
3267
  static createSvgPath(t, e) {
3268
3268
  return this.createSVGElement("path", { d: t, id: e || di() });
@@ -3447,16 +3447,16 @@ class fe {
3447
3447
  o = m[1], h = m[2], m = ["C", ...ii(r, a, m[1], m[2], m[3], m[4])];
3448
3448
  break;
3449
3449
  case "L":
3450
- m = ["C", ...ke(r, a, m[1], m[2])];
3450
+ m = ["C", ...Ae(r, a, m[1], m[2])];
3451
3451
  break;
3452
3452
  case "H":
3453
- m = ["C", ...ke(r, a, m[1], a)];
3453
+ m = ["C", ...Ae(r, a, m[1], a)];
3454
3454
  break;
3455
3455
  case "V":
3456
- m = ["C", ...ke(r, a, r, m[1])];
3456
+ m = ["C", ...Ae(r, a, r, m[1])];
3457
3457
  break;
3458
3458
  case "Z":
3459
- m = ["C", ...ke(r, a, s, i)];
3459
+ m = ["C", ...Ae(r, a, s, i)];
3460
3460
  break;
3461
3461
  }
3462
3462
  d = x, r = m[m.length - 2], a = m[m.length - 1], m.length > 4 ? (c = m[m.length - 4], l = m[m.length - 3]) : (c = r, l = a), e.push(m);
@@ -3679,7 +3679,7 @@ class xt {
3679
3679
  t.cy,
3680
3680
  t.toX,
3681
3681
  t.toY
3682
- ) : [e, s, i, r, a, o] = ke(
3682
+ ) : [e, s, i, r, a, o] = Ae(
3683
3683
  this.prevPathX,
3684
3684
  this.prevPathY,
3685
3685
  t.toX,
@@ -4738,7 +4738,7 @@ class bi {
4738
4738
  this.tweens = [];
4739
4739
  }
4740
4740
  sort(t = !1) {
4741
- Aa(
4741
+ ka(
4742
4742
  this.tweens,
4743
4743
  (e, s) => t ? e.delay > s.delay : e.delay <= s.delay
4744
4744
  );
@@ -6065,7 +6065,7 @@ function ll(n) {
6065
6065
  t = xo(t, n[e]);
6066
6066
  return t;
6067
6067
  }
6068
- class A {
6068
+ class k {
6069
6069
  // eslint-disable-next-line no-debugger
6070
6070
  // debugger;
6071
6071
  static createElementNS(t) {
@@ -6094,10 +6094,10 @@ class A {
6094
6094
  return {
6095
6095
  vnode: i,
6096
6096
  immediate: () => {
6097
- this.updates.set(s, i), A.patchDom();
6097
+ this.updates.set(s, i), k.patchDom();
6098
6098
  },
6099
6099
  schedule: () => {
6100
- this.updates.set(s, i), jn("FLUSH_DOM_ACTIONS", A.patchDom, 50);
6100
+ this.updates.set(s, i), jn("FLUSH_DOM_ACTIONS", k.patchDom, 50);
6101
6101
  }
6102
6102
  };
6103
6103
  }
@@ -6126,14 +6126,14 @@ class A {
6126
6126
  /////////////////////////////////////////////////////////////////////////////
6127
6127
  static add3DSupport(t, e = "1000px") {
6128
6128
  if (t.parentElement) {
6129
- const s = A.getStyle(t.parentElement, "position");
6130
- A.setStyle(t.parentElement, {
6129
+ const s = k.getStyle(t.parentElement, "position");
6130
+ k.setStyle(t.parentElement, {
6131
6131
  position: s == "static" ? "relative" : s,
6132
6132
  perspective: e
6133
6133
  // "perspective-origin": "50% 50%"
6134
6134
  });
6135
6135
  }
6136
- A.setStyle(t, {
6136
+ k.setStyle(t, {
6137
6137
  "transform-style": "preserve-3d"
6138
6138
  // "backface-visibility": "hidden"
6139
6139
  // "transform-origin": "top left"
@@ -6230,7 +6230,7 @@ class A {
6230
6230
  /// convert css transform to matrix ogether
6231
6231
  static convertAttrs(t, e, s = {}) {
6232
6232
  Object.prototype.hasOwnProperty.call(s, "transform") || Object.assign(s, {
6233
- transform: A.getStyle(t, "transform") || ""
6233
+ transform: k.getStyle(t, "transform") || ""
6234
6234
  });
6235
6235
  const i = ir(s.transform), r = {};
6236
6236
  for (const a in e) {
@@ -6400,7 +6400,7 @@ class A {
6400
6400
  i.perspective(o || 0);
6401
6401
  break;
6402
6402
  default:
6403
- Object.prototype.hasOwnProperty.call(s, a) || (s[a] = A.getStyle(t, a)), Object.assign(r, {
6403
+ Object.prototype.hasOwnProperty.call(s, a) || (s[a] = k.getStyle(t, a)), Object.assign(r, {
6404
6404
  [a]: `${o}`
6405
6405
  });
6406
6406
  break;
@@ -6814,7 +6814,7 @@ class A {
6814
6814
  static Events = ["change"];
6815
6815
  static fakeEvent(t, e, s) {
6816
6816
  let i;
6817
- A.MouseEvents.includes(e) ? i = new MouseEvent(e, s) : A.KeyboardEvents.includes(e) ? i = new KeyboardEvent(e, s) : A.TouchEvents.includes(e) ? i = new TouchEvent(e, s) : A.DragEvents.includes(e) ? i = new DragEvent(e, s) : A.Events.includes(e) ? i = new Event(e, s) : i = new CustomEvent(e, s), (t || i.target)?.dispatchEvent(i);
6817
+ k.MouseEvents.includes(e) ? i = new MouseEvent(e, s) : k.KeyboardEvents.includes(e) ? i = new KeyboardEvent(e, s) : k.TouchEvents.includes(e) ? i = new TouchEvent(e, s) : k.DragEvents.includes(e) ? i = new DragEvent(e, s) : k.Events.includes(e) ? i = new Event(e, s) : i = new CustomEvent(e, s), (t || i.target)?.dispatchEvent(i);
6818
6818
  }
6819
6819
  // const event = new CustomEvent("awesome", { detail: { text: () => textarea.value } });
6820
6820
  // el.addEventListener("awesome", (e) => console.log(e.detail.text()));
@@ -7091,9 +7091,9 @@ class A {
7091
7091
  if (!t || e < s)
7092
7092
  return a;
7093
7093
  const o = t.split(""), h = "...";
7094
- let c = r ? A.measureText(h, s, i).width : 0;
7094
+ let c = r ? k.measureText(h, s, i).width : 0;
7095
7095
  for (let l = 0, d = o.length; l < d; l++)
7096
- if (c += A.measureText(o[l], s, i).width, c > e) {
7096
+ if (c += k.measureText(o[l], s, i).width, c > e) {
7097
7097
  r && (a += h);
7098
7098
  break;
7099
7099
  } else
@@ -7257,7 +7257,7 @@ var rr = { exports: {} };
7257
7257
  var f = u.ownerDocument || u;
7258
7258
  return f.defaultView || f.parentWindow || t;
7259
7259
  }
7260
- var le = /mobile|tablet|ip(ad|hone|od)|android/i, k = "ontouchstart" in t, _ = lt(t, "PointerEvent") !== i, R = k && le.test(navigator.userAgent), B = "touch", nt = "pen", Et = "mouse", Ge = "kinect", Ve = 25, Z = 1, Pt = 2, z = 4, E = 8, ze = 1, be = 2, ve = 4, Se = 8, Ce = 16, _t = be | ve, ie = Se | Ce, ki = _t | ie, Mi = ["x", "y"], qe = ["clientX", "clientY"];
7260
+ var le = /mobile|tablet|ip(ad|hone|od)|android/i, A = "ontouchstart" in t, _ = lt(t, "PointerEvent") !== i, R = A && le.test(navigator.userAgent), B = "touch", nt = "pen", Et = "mouse", Ge = "kinect", Ve = 25, Z = 1, Pt = 2, z = 4, E = 8, ze = 1, be = 2, ve = 4, Se = 8, Ce = 16, _t = be | ve, ie = Se | Ce, Ai = _t | ie, Mi = ["x", "y"], qe = ["clientX", "clientY"];
7261
7261
  function bt(u, f) {
7262
7262
  var y = this;
7263
7263
  this.manager = u, this.callback = f, this.element = u.element, this.target = u.options.inputTarget, this.domHandler = function(b) {
@@ -7286,7 +7286,7 @@ var rr = { exports: {} };
7286
7286
  };
7287
7287
  function Fr(u) {
7288
7288
  var f, y = u.options.inputClass;
7289
- return y ? f = y : _ ? f = Ds : R ? f = $e : k ? f = ks : f = je, new f(u, Yr);
7289
+ return y ? f = y : _ ? f = Ds : R ? f = $e : A ? f = As : f = je, new f(u, Yr);
7290
7290
  }
7291
7291
  function Yr(u, f, y) {
7292
7292
  var b = y.pointers.length, P = y.changedPointers.length, D = f & Z && b - P === 0, O = f & (z | E) && b - P === 0;
@@ -7296,7 +7296,7 @@ var rr = { exports: {} };
7296
7296
  var y = u.session, b = f.pointers, P = b.length;
7297
7297
  y.firstInput || (y.firstInput = Ii(f)), P > 1 && !y.firstMultiple ? y.firstMultiple = Ii(f) : P === 1 && (y.firstMultiple = !1);
7298
7298
  var D = y.firstInput, O = y.firstMultiple, K = O ? O.center : D.center, tt = f.center = Li(b);
7299
- f.timeStamp = l(), f.deltaTime = f.timeStamp - D.timeStamp, f.angle = As(K, tt), f.distance = He(K, tt), Br(y, f), f.offsetDirection = Oi(f.deltaX, f.deltaY);
7299
+ f.timeStamp = l(), f.deltaTime = f.timeStamp - D.timeStamp, f.angle = ks(K, tt), f.distance = He(K, tt), Br(y, f), f.offsetDirection = Oi(f.deltaX, f.deltaY);
7300
7300
  var rt = Ri(f.deltaTime, f.deltaX, f.deltaY);
7301
7301
  f.overallVelocityX = rt.x, f.overallVelocityY = rt.y, f.overallVelocity = c(rt.x) > c(rt.y) ? rt.x : rt.y, f.scale = O ? Vr(O.pointers, b) : 1, f.rotation = O ? Gr(O.pointers, b) : 0, f.maxPointers = y.prevInput ? f.pointers.length > y.prevInput.maxPointers ? f.pointers.length : y.prevInput.maxPointers : f.pointers.length, Ur(y, f);
7302
7302
  var Dt = u.element;
@@ -7363,13 +7363,13 @@ var rr = { exports: {} };
7363
7363
  var b = f[y[0]] - u[y[0]], P = f[y[1]] - u[y[1]];
7364
7364
  return Math.sqrt(b * b + P * P);
7365
7365
  }
7366
- function As(u, f, y) {
7366
+ function ks(u, f, y) {
7367
7367
  y || (y = Mi);
7368
7368
  var b = f[y[0]] - u[y[0]], P = f[y[1]] - u[y[1]];
7369
7369
  return Math.atan2(P, b) * 180 / Math.PI;
7370
7370
  }
7371
7371
  function Gr(u, f) {
7372
- return As(f[1], f[0], qe) + As(u[1], u[0], qe);
7372
+ return ks(f[1], f[0], qe) + ks(u[1], u[0], qe);
7373
7373
  }
7374
7374
  function Vr(u, f) {
7375
7375
  return He(f[0], f[1], qe) / He(u[0], u[1], qe);
@@ -7496,12 +7496,12 @@ var rr = { exports: {} };
7496
7496
  ];
7497
7497
  }
7498
7498
  var sa = 2500, Xi = 25;
7499
- function ks() {
7499
+ function As() {
7500
7500
  bt.apply(this, arguments);
7501
7501
  var u = I(this.handler, this);
7502
7502
  this.touch = new $e(this.manager, u), this.mouse = new je(this.manager, u), this.primaryTouch = null, this.lastTouches = [];
7503
7503
  }
7504
- S(ks, bt, {
7504
+ S(As, bt, {
7505
7505
  /**
7506
7506
  * handle mouse and touch events
7507
7507
  * @param {Hammer} manager
@@ -7617,7 +7617,7 @@ var rr = { exports: {} };
7617
7617
  u[y] = f ? t.CSS.supports("touch-action", y) : !0;
7618
7618
  }), u;
7619
7619
  }
7620
- var Je = 1, vt = 2, ue = 4, Ht = 8, Ot = Ht, Pe = 16, At = 32;
7620
+ var Je = 1, vt = 2, ue = 4, Ht = 8, Ot = Ht, Pe = 16, kt = 32;
7621
7621
  function Nt(u) {
7622
7622
  this.options = x({}, this.defaults, u || {}), this.id = qt(), this.manager = null, this.options.enable = X(this.options.enable, !0), this.state = Je, this.simultaneous = {}, this.requireFail = [];
7623
7623
  }
@@ -7713,7 +7713,7 @@ var rr = { exports: {} };
7713
7713
  tryEmit: function(u) {
7714
7714
  if (this.canEmit())
7715
7715
  return this.emit(u);
7716
- this.state = At;
7716
+ this.state = kt;
7717
7717
  },
7718
7718
  /**
7719
7719
  * can we emit?
@@ -7721,7 +7721,7 @@ var rr = { exports: {} };
7721
7721
  */
7722
7722
  canEmit: function() {
7723
7723
  for (var u = 0; u < this.requireFail.length; ) {
7724
- if (!(this.requireFail[u].state & (At | Je)))
7724
+ if (!(this.requireFail[u].state & (kt | Je)))
7725
7725
  return !1;
7726
7726
  u++;
7727
7727
  }
@@ -7734,10 +7734,10 @@ var rr = { exports: {} };
7734
7734
  recognize: function(u) {
7735
7735
  var f = x({}, u);
7736
7736
  if (!L(this.options.enable, [this, f])) {
7737
- this.reset(), this.state = At;
7737
+ this.reset(), this.state = kt;
7738
7738
  return;
7739
7739
  }
7740
- this.state & (Ot | Pe | At) && (this.state = Je), this.state = this.process(f), this.state & (vt | ue | Ht | Pe) && this.tryEmit(f);
7740
+ this.state & (Ot | Pe | kt) && (this.state = Je), this.state = this.process(f), this.state & (vt | ue | Ht | Pe) && this.tryEmit(f);
7741
7741
  },
7742
7742
  /**
7743
7743
  * return the state of the recognizer
@@ -7807,7 +7807,7 @@ var rr = { exports: {} };
7807
7807
  */
7808
7808
  process: function(u) {
7809
7809
  var f = this.state, y = u.eventType, b = f & (vt | ue), P = this.attrTest(u);
7810
- return b && (y & E || !P) ? f | Pe : b || P ? y & z ? f | Ht : f & vt ? f | ue : vt : At;
7810
+ return b && (y & E || !P) ? f | Pe : b || P ? y & z ? f | Ht : f & vt ? f | ue : vt : kt;
7811
7811
  }
7812
7812
  });
7813
7813
  function Ke() {
@@ -7822,7 +7822,7 @@ var rr = { exports: {} };
7822
7822
  event: "pan",
7823
7823
  threshold: 10,
7824
7824
  pointers: 1,
7825
- direction: ki
7825
+ direction: Ai
7826
7826
  },
7827
7827
  getTouchAction: function() {
7828
7828
  var u = this.options.direction, f = [];
@@ -7897,7 +7897,7 @@ var rr = { exports: {} };
7897
7897
  }, f.time, this);
7898
7898
  else if (u.eventType & z)
7899
7899
  return Ot;
7900
- return At;
7900
+ return kt;
7901
7901
  },
7902
7902
  reset: function() {
7903
7903
  clearTimeout(this._timer);
@@ -7992,12 +7992,12 @@ var rr = { exports: {} };
7992
7992
  this.state = Ot, this.tryEmit();
7993
7993
  }, f.interval, this), vt) : Ot;
7994
7994
  }
7995
- return At;
7995
+ return kt;
7996
7996
  },
7997
7997
  failTimeout: function() {
7998
7998
  return this._timer = d(function() {
7999
- this.state = At;
8000
- }, this.options.interval, this), At;
7999
+ this.state = kt;
8000
+ }, this.options.interval, this), kt;
8001
8001
  },
8002
8002
  reset: function() {
8003
8003
  clearTimeout(this._timer);
@@ -8263,7 +8263,7 @@ var rr = { exports: {} };
8263
8263
  STATE_ENDED: Ht,
8264
8264
  STATE_RECOGNIZED: Ot,
8265
8265
  STATE_CANCELLED: Pe,
8266
- STATE_FAILED: At,
8266
+ STATE_FAILED: kt,
8267
8267
  DIRECTION_NONE: ze,
8268
8268
  DIRECTION_LEFT: be,
8269
8269
  DIRECTION_RIGHT: ve,
@@ -8271,14 +8271,14 @@ var rr = { exports: {} };
8271
8271
  DIRECTION_DOWN: Ce,
8272
8272
  DIRECTION_HORIZONTAL: _t,
8273
8273
  DIRECTION_VERTICAL: ie,
8274
- DIRECTION_ALL: ki,
8274
+ DIRECTION_ALL: Ai,
8275
8275
  Manager: Fs,
8276
8276
  Input: bt,
8277
8277
  TouchAction: Is,
8278
8278
  TouchInput: $e,
8279
8279
  MouseInput: je,
8280
8280
  PointerEventInput: Ds,
8281
- TouchMouseInput: ks,
8281
+ TouchMouseInput: As,
8282
8282
  SingleTouchInput: Yi,
8283
8283
  Recognizer: Nt,
8284
8284
  AttrRecognizer: Tt,
@@ -8399,7 +8399,7 @@ class Co extends mi {
8399
8399
  this.registerMouseEventListeners(), this.registerTransitionEventListeners(), this.registerAnimationEventListeners(), this.registerResizeObserver(), this.registerElementDisplayInParent(), t && t.forEach((e) => {
8400
8400
  this.addRemoves(e());
8401
8401
  }), this.on("pointerMove", (e) => {
8402
- this.setMousePoint(kt(e, this.container));
8402
+ this.setMousePoint(At(e, this.container));
8403
8403
  });
8404
8404
  }
8405
8405
  destroy() {
@@ -8480,7 +8480,7 @@ class Co extends mi {
8480
8480
  this.emit("swipeLeft", E);
8481
8481
  }, le = (E) => {
8482
8482
  this.emit("swipeRight", E);
8483
- }, k = (E) => {
8483
+ }, A = (E) => {
8484
8484
  this.emit("swipeUp", E);
8485
8485
  }, _ = (E) => {
8486
8486
  this.emit("swipeDown", E);
@@ -8501,13 +8501,13 @@ class Co extends mi {
8501
8501
  }, Pt = (E) => {
8502
8502
  E.dataTransfer, this.emit("drop", E, E.dataTransfer?.files);
8503
8503
  };
8504
- this.container.addEventListener("mousedown", t, !1), this.container.addEventListener("mouseup", e, !1), this.container.addEventListener("mousemove", s, !1), this.container.addEventListener("mouseover", i, !1), this.container.addEventListener("mouseout", r, !1), this.container.addEventListener("mouseenter", a, !1), this.container.addEventListener("mouseleave", o, !1), this.container.addEventListener("click", h, !1), this.container.addEventListener("dblclick", c, !1), this.container.addEventListener("wheel", l, !1), this.container.addEventListener("contextmenu", d, !1), this.container.addEventListener("touchstart", p, !1), this.container.addEventListener("touchend", g, !1), this.container.addEventListener("touchcancel", m, !1), this.container.addEventListener("touchmove", x, !1), this.container.addEventListener("pointerdown", w, !1), this.container.addEventListener("pointerup", v, !1), this.container.addEventListener("pointercancel", S, !1), this.container.addEventListener("pointermove", I, !1), this.hammer.on("pan", L), this.hammer.on("panstart", X), this.hammer.on("panmove", F), this.hammer.on("panend", q), this.hammer.on("pancancel", et), this.hammer.on("panleft", $), this.hammer.on("panright", W), this.hammer.on("panup", H), this.hammer.on("pandown", st), this.hammer.on("pinch", wt), this.hammer.on("press", lt), this.hammer.on("rotate", ce), this.hammer.on("swipe", qt), this.hammer.on("swipeleft", se), this.hammer.on("swiperight", le), this.hammer.on("swipeup", k), this.hammer.on("swipedown", _), this.hammer.on("tap", R), document.addEventListener("pointerdown", B, !1), this.container instanceof HTMLInputElement && this.container.addEventListener("change", nt, !1), this.container.addEventListener("dragstart", Et, !1), this.container.addEventListener("dragover", Ge, !1), this.container.addEventListener("dragenter", Ve, !1), this.container.addEventListener("dragend", Z, !1), this.container.addEventListener("drop", Pt, !1);
8504
+ this.container.addEventListener("mousedown", t, !1), this.container.addEventListener("mouseup", e, !1), this.container.addEventListener("mousemove", s, !1), this.container.addEventListener("mouseover", i, !1), this.container.addEventListener("mouseout", r, !1), this.container.addEventListener("mouseenter", a, !1), this.container.addEventListener("mouseleave", o, !1), this.container.addEventListener("click", h, !1), this.container.addEventListener("dblclick", c, !1), this.container.addEventListener("wheel", l, !1), this.container.addEventListener("contextmenu", d, !1), this.container.addEventListener("touchstart", p, !1), this.container.addEventListener("touchend", g, !1), this.container.addEventListener("touchcancel", m, !1), this.container.addEventListener("touchmove", x, !1), this.container.addEventListener("pointerdown", w, !1), this.container.addEventListener("pointerup", v, !1), this.container.addEventListener("pointercancel", S, !1), this.container.addEventListener("pointermove", I, !1), this.hammer.on("pan", L), this.hammer.on("panstart", X), this.hammer.on("panmove", F), this.hammer.on("panend", q), this.hammer.on("pancancel", et), this.hammer.on("panleft", $), this.hammer.on("panright", W), this.hammer.on("panup", H), this.hammer.on("pandown", st), this.hammer.on("pinch", wt), this.hammer.on("press", lt), this.hammer.on("rotate", ce), this.hammer.on("swipe", qt), this.hammer.on("swipeleft", se), this.hammer.on("swiperight", le), this.hammer.on("swipeup", A), this.hammer.on("swipedown", _), this.hammer.on("tap", R), document.addEventListener("pointerdown", B, !1), this.container instanceof HTMLInputElement && this.container.addEventListener("change", nt, !1), this.container.addEventListener("dragstart", Et, !1), this.container.addEventListener("dragover", Ge, !1), this.container.addEventListener("dragenter", Ve, !1), this.container.addEventListener("dragend", Z, !1), this.container.addEventListener("drop", Pt, !1);
8505
8505
  const z = () => {
8506
8506
  this.container.removeEventListener("mousedown", t, !1), this.container.removeEventListener("mouseup", e, !1), this.container.removeEventListener("mousemove", s, !1), this.container.removeEventListener("mouseover", i, !1), this.container.removeEventListener("mouseout", r, !1), this.container.removeEventListener("mouseenter", a, !1), this.container.removeEventListener("mouseleave", o, !1), this.container.removeEventListener("click", h, !1), this.container.removeEventListener("dblclick", c, !1), this.container.removeEventListener("wheel", l, !1), this.container.removeEventListener(
8507
8507
  "contextmenu",
8508
8508
  d,
8509
8509
  !1
8510
- ), this.container.removeEventListener("touchstart", p, !1), this.container.removeEventListener("touchend", g, !1), this.container.removeEventListener("touchcancel", m, !1), this.container.removeEventListener("touchmove", x, !1), this.container.removeEventListener("pointerdown", w, !1), this.container.removeEventListener("pointerup", v, !1), this.container.removeEventListener("pointercancel", S), this.container.removeEventListener("pointermove", I, !1), this.hammer.off("pan", L), this.hammer.off("panstart", X), this.hammer.off("panmove", F), this.hammer.off("panend", q), this.hammer.off("pancancel", et), this.hammer.off("panleft", $), this.hammer.off("panright", W), this.hammer.off("panup", H), this.hammer.off("pandown", st), this.hammer.off("pinch", wt), this.hammer.off("press", lt), this.hammer.off("rotate", ce), this.hammer.off("swipe", qt), this.hammer.off("swipeleft", se), this.hammer.off("swiperight", le), this.hammer.off("swipeup", k), this.hammer.off("swipedown", _), this.hammer.off("tap", R), document.removeEventListener("pointerdown", B, !1), document.removeEventListener("touchstart", B, !1), document.removeEventListener("mousedown", B, !1), this.container instanceof HTMLInputElement && this.container.removeEventListener("change", nt, !1), this.container.removeEventListener("dragstart", Et, !1), this.container.removeEventListener("dragover", Ge, !1), this.container.removeEventListener("dragenter", Ve, !1), this.container.removeEventListener("dragend", Z, !1), this.container.removeEventListener("drop", Pt, !1);
8510
+ ), this.container.removeEventListener("touchstart", p, !1), this.container.removeEventListener("touchend", g, !1), this.container.removeEventListener("touchcancel", m, !1), this.container.removeEventListener("touchmove", x, !1), this.container.removeEventListener("pointerdown", w, !1), this.container.removeEventListener("pointerup", v, !1), this.container.removeEventListener("pointercancel", S), this.container.removeEventListener("pointermove", I, !1), this.hammer.off("pan", L), this.hammer.off("panstart", X), this.hammer.off("panmove", F), this.hammer.off("panend", q), this.hammer.off("pancancel", et), this.hammer.off("panleft", $), this.hammer.off("panright", W), this.hammer.off("panup", H), this.hammer.off("pandown", st), this.hammer.off("pinch", wt), this.hammer.off("press", lt), this.hammer.off("rotate", ce), this.hammer.off("swipe", qt), this.hammer.off("swipeleft", se), this.hammer.off("swiperight", le), this.hammer.off("swipeup", A), this.hammer.off("swipedown", _), this.hammer.off("tap", R), document.removeEventListener("pointerdown", B, !1), document.removeEventListener("touchstart", B, !1), document.removeEventListener("mousedown", B, !1), this.container instanceof HTMLInputElement && this.container.removeEventListener("change", nt, !1), this.container.removeEventListener("dragstart", Et, !1), this.container.removeEventListener("dragover", Ge, !1), this.container.removeEventListener("dragenter", Ve, !1), this.container.removeEventListener("dragend", Z, !1), this.container.removeEventListener("drop", Pt, !1);
8511
8511
  };
8512
8512
  return this.addRemoves(z), z;
8513
8513
  }
@@ -8632,11 +8632,11 @@ class Co extends mi {
8632
8632
  captureDragUsePointer(t) {
8633
8633
  let e, s;
8634
8634
  const i = (h) => {
8635
- h.preventDefault(), h.stopPropagation(), this.on("pointerMove", a), this.on("pointerUp", r), this.on("pointerCancel", r), s = kt(h, this.container);
8635
+ h.preventDefault(), h.stopPropagation(), this.on("pointerMove", a), this.on("pointerUp", r), this.on("pointerCancel", r), s = At(h, this.container);
8636
8636
  const c = { ...s };
8637
8637
  e = c, this.setMousePoint(c), t?.start?.(h, c);
8638
8638
  }, r = (h) => {
8639
- h.preventDefault(), h.stopPropagation(), this.off("pointerMove", a), this.off("pointerUp", r), this.off("pointerCancel", r), s = kt(h, this.container);
8639
+ h.preventDefault(), h.stopPropagation(), this.off("pointerMove", a), this.off("pointerUp", r), this.off("pointerCancel", r), s = At(h, this.container);
8640
8640
  const c = {
8641
8641
  ...s,
8642
8642
  dStartX: e ? s.x - e.x : 0,
@@ -8646,7 +8646,7 @@ class Co extends mi {
8646
8646
  }, a = (h) => {
8647
8647
  h.preventDefault(), h.stopPropagation();
8648
8648
  const c = { ...s };
8649
- s = kt(h, this.container);
8649
+ s = At(h, this.container);
8650
8650
  const l = {
8651
8651
  ...s,
8652
8652
  dx: s.x - (c.x || 0),
@@ -8665,11 +8665,11 @@ class Co extends mi {
8665
8665
  captureDragUseMouse(t) {
8666
8666
  let e, s;
8667
8667
  const i = (h) => {
8668
- h.preventDefault(), h.stopPropagation(), document.addEventListener("mousemove", a, !1), document.addEventListener("mouseup", r, !1), s = kt(h, this.container);
8668
+ h.preventDefault(), h.stopPropagation(), document.addEventListener("mousemove", a, !1), document.addEventListener("mouseup", r, !1), s = At(h, this.container);
8669
8669
  const c = { ...s };
8670
8670
  e = c, this.setMousePoint(c), t?.start?.(h, c);
8671
8671
  }, r = (h) => {
8672
- h.preventDefault(), h.stopPropagation(), document.removeEventListener("mousemove", a, !1), document.removeEventListener("mouseup", r, !1), s = kt(h, this.container);
8672
+ h.preventDefault(), h.stopPropagation(), document.removeEventListener("mousemove", a, !1), document.removeEventListener("mouseup", r, !1), s = At(h, this.container);
8673
8673
  const c = {
8674
8674
  ...s,
8675
8675
  dStartX: e ? s.x - e.x : 0,
@@ -8679,7 +8679,7 @@ class Co extends mi {
8679
8679
  }, a = (h) => {
8680
8680
  h.preventDefault(), h.stopPropagation();
8681
8681
  const c = { ...s };
8682
- s = kt(h, this.container);
8682
+ s = At(h, this.container);
8683
8683
  const l = {
8684
8684
  ...s,
8685
8685
  dx: s.x - (c.x || 0),
@@ -8700,13 +8700,13 @@ class Co extends mi {
8700
8700
  const i = (h) => {
8701
8701
  h.preventDefault(), h.stopPropagation(), this.on("touchMove", a), this.on("touchEnd", r), this.on("touchCancel", r);
8702
8702
  const c = h.changedTouches[0];
8703
- s = kt(c, this.container);
8703
+ s = At(c, this.container);
8704
8704
  const l = { ...s };
8705
8705
  e = l, this.setMousePoint(l), t?.start?.(c, l);
8706
8706
  }, r = (h) => {
8707
8707
  h.preventDefault(), h.stopPropagation(), this.off("touchMove", a), this.off("touchEnd", r), this.off("touchCancel", r);
8708
8708
  const c = h.changedTouches[0];
8709
- s = kt(c, this.container);
8709
+ s = At(c, this.container);
8710
8710
  const l = {
8711
8711
  ...s,
8712
8712
  dStartX: e ? s.x - e.x : 0,
@@ -8716,7 +8716,7 @@ class Co extends mi {
8716
8716
  }, a = (h) => {
8717
8717
  h.preventDefault(), h.stopPropagation();
8718
8718
  const c = h.changedTouches[0], l = { ...s };
8719
- s = kt(c, this.container);
8719
+ s = At(c, this.container);
8720
8720
  const d = {
8721
8721
  ...s,
8722
8722
  dx: s.x - (l.x || 0),
@@ -8747,7 +8747,7 @@ const ht = new Co(
8747
8747
  ht.registerKeyDown(
8748
8748
  { title: "打开", key: "o", ctrl: !0, exact: !0 },
8749
8749
  () => {
8750
- ka().then((n) => pi(n[0])).then((n) => {
8750
+ Aa().then((n) => pi(n[0])).then((n) => {
8751
8751
  ht.emit("openFile", n);
8752
8752
  }).catch((n) => {
8753
8753
  ht.emit("openFileError", n);
@@ -8882,7 +8882,7 @@ class ps {
8882
8882
  document.addEventListener("click", e), document.addEventListener("touchend", e);
8883
8883
  }
8884
8884
  }
8885
- class Ao extends mi {
8885
+ class ko extends mi {
8886
8886
  source;
8887
8887
  raw = "";
8888
8888
  mode = "text";
@@ -8927,7 +8927,7 @@ class Ao extends mi {
8927
8927
  }
8928
8928
  break;
8929
8929
  case "entity":
8930
- Yt("whitespace", t) ? (this.textchunk += A.entity2text(this.entity), this.mode = "text") : t == ";" ? (this.textchunk += A.entity2text(this.entity + t), this.mode = "text") : this.entity += t;
8930
+ Yt("whitespace", t) ? (this.textchunk += k.entity2text(this.entity), this.mode = "text") : t == ";" ? (this.textchunk += k.entity2text(this.entity + t), this.mode = "text") : this.entity += t;
8931
8931
  break;
8932
8932
  case "special":
8933
8933
  if (s == "!" && t == "-" && e == "-") {
@@ -9125,48 +9125,48 @@ function Do() {
9125
9125
  }
9126
9126
  }
9127
9127
  const mn = {
9128
- safeAreaTop: A.getCSSVar("--safe-area-inset-top"),
9129
- safeAreaRight: A.getCSSVar("--safe-area-inset-right"),
9130
- safeAreaBottom: A.getCSSVar("--safe-area-inset-bottom"),
9131
- safeAreaLeft: A.getCSSVar("--safe-area-inset-left"),
9132
- colorPrimary: A.getCSSVar("--color-primary") || "#5078f0",
9133
- colorRed: A.getCSSVar("--color-red") || "#ff5050",
9134
- colorOrange: A.getCSSVar("--color-orange") || "#fa8c00",
9135
- colorYellow: A.getCSSVar("--color-yellow") || "#fadc32",
9136
- colorGreen: A.getCSSVar("--color-green") || "#00c878",
9137
- colorBlue: A.getCSSVar("--color-blue") || "#00b4fa",
9138
- colorPurple: A.getCSSVar("--color-purple") || "#6464fa",
9139
- colorBlack: A.getCSSVar("--color-black") || "#001428",
9140
- colorGray00: A.getCSSVar("--color-gray-00") || "#000000",
9141
- colorGray33: A.getCSSVar("--color-gray-33") || "#333333",
9142
- colorGray66: A.getCSSVar("--color-gray-66") || "#666666",
9143
- colorGray99: A.getCSSVar("--color-gray-99") || "#999999",
9144
- colorGrayCC: A.getCSSVar("--color-gray-cc") || "#cccccc",
9145
- colorGrayDD: A.getCSSVar("--color-gray-dd") || "#dddddd",
9146
- colorGrayE6: A.getCSSVar("--color-gray-e6") || "#e6e6e6",
9147
- colorGrayEE: A.getCSSVar("--color-gray-ee") || "#eeeeee",
9148
- colorGrayEF: A.getCSSVar("--color-gray-ef") || "#efefef",
9149
- colorGrayF5: A.getCSSVar("--color-gray-f5") || "#f5f5f5",
9150
- colorGrayFF: A.getCSSVar("--color-gray-ff") || "#ffffff",
9151
- fontLineHeight: A.getCSSVar("--font-line-height") || "1.4",
9152
- fontSize32: A.getCSSVar("--font-size-32") || "32px",
9153
- fontSize24: A.getCSSVar("--font-size-24") || "24px",
9154
- fontSize22: A.getCSSVar("--font-size-22") || "22px",
9155
- fontSize20: A.getCSSVar("--font-size-20") || "20px",
9156
- fontSize18: A.getCSSVar("--font-size-18") || "18px",
9157
- fontSize16: A.getCSSVar("--font-size-16") || "16px",
9158
- fontSize14: A.getCSSVar("--font-size-14") || "14px",
9159
- fontSize12: A.getCSSVar("--font-size-12") || "12px",
9160
- fontSize10: A.getCSSVar("--font-size-10") || "10px",
9161
- d4: A.getCSSVar("--distance-4") || "4px",
9128
+ safeAreaTop: k.getCSSVar("--safe-area-inset-top"),
9129
+ safeAreaRight: k.getCSSVar("--safe-area-inset-right"),
9130
+ safeAreaBottom: k.getCSSVar("--safe-area-inset-bottom"),
9131
+ safeAreaLeft: k.getCSSVar("--safe-area-inset-left"),
9132
+ colorPrimary: k.getCSSVar("--color-primary") || "#5078f0",
9133
+ colorRed: k.getCSSVar("--color-red") || "#ff5050",
9134
+ colorOrange: k.getCSSVar("--color-orange") || "#fa8c00",
9135
+ colorYellow: k.getCSSVar("--color-yellow") || "#fadc32",
9136
+ colorGreen: k.getCSSVar("--color-green") || "#00c878",
9137
+ colorBlue: k.getCSSVar("--color-blue") || "#00b4fa",
9138
+ colorPurple: k.getCSSVar("--color-purple") || "#6464fa",
9139
+ colorBlack: k.getCSSVar("--color-black") || "#001428",
9140
+ colorGray00: k.getCSSVar("--color-gray-00") || "#000000",
9141
+ colorGray33: k.getCSSVar("--color-gray-33") || "#333333",
9142
+ colorGray66: k.getCSSVar("--color-gray-66") || "#666666",
9143
+ colorGray99: k.getCSSVar("--color-gray-99") || "#999999",
9144
+ colorGrayCC: k.getCSSVar("--color-gray-cc") || "#cccccc",
9145
+ colorGrayDD: k.getCSSVar("--color-gray-dd") || "#dddddd",
9146
+ colorGrayE6: k.getCSSVar("--color-gray-e6") || "#e6e6e6",
9147
+ colorGrayEE: k.getCSSVar("--color-gray-ee") || "#eeeeee",
9148
+ colorGrayEF: k.getCSSVar("--color-gray-ef") || "#efefef",
9149
+ colorGrayF5: k.getCSSVar("--color-gray-f5") || "#f5f5f5",
9150
+ colorGrayFF: k.getCSSVar("--color-gray-ff") || "#ffffff",
9151
+ fontLineHeight: k.getCSSVar("--font-line-height") || "1.4",
9152
+ fontSize32: k.getCSSVar("--font-size-32") || "32px",
9153
+ fontSize24: k.getCSSVar("--font-size-24") || "24px",
9154
+ fontSize22: k.getCSSVar("--font-size-22") || "22px",
9155
+ fontSize20: k.getCSSVar("--font-size-20") || "20px",
9156
+ fontSize18: k.getCSSVar("--font-size-18") || "18px",
9157
+ fontSize16: k.getCSSVar("--font-size-16") || "16px",
9158
+ fontSize14: k.getCSSVar("--font-size-14") || "14px",
9159
+ fontSize12: k.getCSSVar("--font-size-12") || "12px",
9160
+ fontSize10: k.getCSSVar("--font-size-10") || "10px",
9161
+ d4: k.getCSSVar("--distance-4") || "4px",
9162
9162
  /// borderRadius
9163
- d8: A.getCSSVar("--distance-8") || "8px",
9164
- d12: A.getCSSVar("--distance-12") || "12px",
9165
- d16: A.getCSSVar("--distance-16") || "16px",
9166
- d20: A.getCSSVar("--distance-20") || "20px",
9167
- d32: A.getCSSVar("--distance-32") || "32px",
9168
- d40: A.getCSSVar("--distance-40") || "40px",
9169
- d44: A.getCSSVar("--distance-44") || "44px"
9163
+ d8: k.getCSSVar("--distance-8") || "8px",
9164
+ d12: k.getCSSVar("--distance-12") || "12px",
9165
+ d16: k.getCSSVar("--distance-16") || "16px",
9166
+ d20: k.getCSSVar("--distance-20") || "20px",
9167
+ d32: k.getCSSVar("--distance-32") || "32px",
9168
+ d40: k.getCSSVar("--distance-40") || "40px",
9169
+ d44: k.getCSSVar("--distance-44") || "44px"
9170
9170
  /// button-height
9171
9171
  };
9172
9172
  class dt {
@@ -9359,7 +9359,7 @@ function Vs(n) {
9359
9359
  throw new Error("parseColor 不支持的颜色解析:" + n);
9360
9360
  return e.r = G(e.r, 0, 255), e.g = G(e.g, 0, 255), e.b = G(e.b, 0, 255), e.a = G(e.a, 0, 1), e;
9361
9361
  }
9362
- const ko = [
9362
+ const Ao = [
9363
9363
  "#0ac2d2",
9364
9364
  "#7bb7fa",
9365
9365
  "#60d7a9",
@@ -9600,90 +9600,86 @@ function Cl(n, t) {
9600
9600
  const {
9601
9601
  method: i = "GET",
9602
9602
  data: r = {},
9603
- segments: a = [],
9604
- headers: o = {},
9605
- withCredentials: h = !1,
9606
- responseType: c = "json",
9607
- timeout: l = 3e4
9608
- } = t || {}, d = Oo();
9609
- d.timeout = l, d.responseType = c, d.onreadystatechange = function(S) {
9610
- d.readyState === 4 && (d.status === 200 ? e(d.response) : s(d.statusText));
9611
- }, d.ontimeout = function() {
9612
- s(`${n} is timed out for ${l}ms.`);
9613
- }, d.addEventListener(
9603
+ multipartFormDataString: a = "",
9604
+ boundary: o = "",
9605
+ headers: h = {},
9606
+ withCredentials: c = !1,
9607
+ responseType: l = "json",
9608
+ timeout: d = 3e4
9609
+ } = t || {}, p = Oo();
9610
+ p.timeout = d, p.responseType = l, p.onreadystatechange = function(S) {
9611
+ p.readyState === 4 && (p.status === 200 ? e(p.response) : s(p.statusText));
9612
+ }, p.ontimeout = function() {
9613
+ s(`${n} is timed out for ${d}ms.`);
9614
+ }, p.addEventListener(
9614
9615
  "error",
9615
9616
  function(S) {
9616
9617
  s(S);
9617
9618
  },
9618
9619
  !1
9619
- ), d.addEventListener(
9620
+ ), p.addEventListener(
9620
9621
  "progress",
9621
9622
  function(S) {
9622
9623
  if (S.lengthComputable) {
9623
9624
  const I = Math.round(S.loaded * 100 / S.total);
9624
- t?.progress?.(I, d);
9625
+ t?.progress?.(I, p);
9625
9626
  }
9626
9627
  },
9627
9628
  !1
9628
- ), d.addEventListener(
9629
+ ), p.addEventListener(
9629
9630
  "load",
9630
9631
  function(S) {
9631
- t?.load?.(S, d);
9632
+ t?.load?.(S, p);
9632
9633
  },
9633
9634
  !1
9634
- ), d.addEventListener(
9635
+ ), p.addEventListener(
9635
9636
  "loadstart",
9636
9637
  function(S) {
9637
- t?.loadstart?.(S, d);
9638
+ t?.loadstart?.(S, p);
9638
9639
  },
9639
9640
  !1
9640
- ), d.addEventListener(
9641
+ ), p.addEventListener(
9641
9642
  "loadend",
9642
9643
  function(S) {
9643
- t?.loadend?.(S, d);
9644
+ t?.loadend?.(S, p);
9644
9645
  },
9645
9646
  !1
9646
- ), d.addEventListener(
9647
+ ), p.addEventListener(
9647
9648
  "abort",
9648
9649
  function(S) {
9649
- t?.abort?.(S, d);
9650
+ t?.abort?.(S, p);
9650
9651
  },
9651
9652
  !1
9652
9653
  );
9653
- const p = i.toUpperCase();
9654
- Object.assign(o, {
9654
+ const g = i.toUpperCase();
9655
+ Object.assign(h, {
9655
9656
  Accept: "*/*"
9656
9657
  // "Access-Control-Request-Headers": "authorization",
9657
9658
  // "Access-Control-Request-Method": "POST",
9658
9659
  // "Content-Type": "application/json;charset=utf-8",
9659
9660
  });
9660
- const g = "---------------------------" + Date.now().toString(16);
9661
9661
  let m = !1, x = !1, w = !1;
9662
9662
  function v() {
9663
- h && (d.withCredentials = !0);
9664
- for (const S in o)
9665
- mt(S).toLowerCase() == "content-type" && o[S].toLowerCase() == "multipart/form-data" ? (m = !0, d.setRequestHeader(
9663
+ c && (p.withCredentials = !0);
9664
+ for (const S in h)
9665
+ mt(S).toLowerCase() == "content-type" && h[S].toLowerCase() == "multipart/form-data" ? (m = !0, p.setRequestHeader(
9666
9666
  "Content-Type",
9667
- "multipart/form-data; boundary=" + g
9668
- )) : (mt(S).toLowerCase() == "content-type" && (o[S].toLowerCase().indexOf("text/plain") >= 0 ? x = !0 : o[S].toLowerCase().indexOf("application/json") >= 0 && (w = !0)), d.setRequestHeader(S, o[S]));
9667
+ "multipart/form-data; boundary=" + o
9668
+ )) : (mt(S).toLowerCase() == "content-type" && (h[S].toLowerCase().indexOf("text/plain") >= 0 ? x = !0 : h[S].toLowerCase().indexOf("application/json") >= 0 && (w = !0)), p.setRequestHeader(S, h[S]));
9669
9669
  }
9670
- switch (p) {
9670
+ switch (g) {
9671
9671
  case "GET":
9672
9672
  let S = "";
9673
- r instanceof FormData ? S = Lo(r) : S = Si(r), d.open("GET", or(n, S), !0), v(), d.send(null);
9673
+ r instanceof FormData ? S = Lo(r) : S = Si(r), p.open("GET", or(n, S), !0), v(), p.send(null);
9674
9674
  break;
9675
- case "POST":
9676
9675
  default:
9677
- d.open(p, n, !0), v(), m && a.length ? d.sendAsBinary(
9678
- "--" + g + `\r
9679
- ` + a.join("--" + g + `\r
9680
- `) + "--" + g + `--\r
9681
- `
9682
- ) : w ? d.send(JSON.stringify(r)) : d.send(
9676
+ p.open(g, n, !0), v(), m ? p.sendAsBinary(a) : w ? p.send(JSON.stringify(r)) : x ? p.send(
9677
+ Object.entries(r).map(([I, L]) => `${I}=${L}`).join(`\r
9678
+ `)
9679
+ ) : p.send(
9683
9680
  Object.entries(r).map(
9684
9681
  ([I, L]) => `${encodeURIComponent(I)}=${encodeURIComponent(L)}`
9685
- ).join(x ? `\r
9686
- ` : "&")
9682
+ ).join("&")
9687
9683
  );
9688
9684
  break;
9689
9685
  }
@@ -9691,52 +9687,57 @@ function Cl(n, t) {
9691
9687
  }
9692
9688
  async function El(n) {
9693
9689
  const t = {
9694
- url: "",
9690
+ url: n.action || "",
9695
9691
  data: {},
9696
- segments: [],
9697
- contentType: ""
9698
- };
9699
- if (!n.action)
9700
- return t;
9701
- t.url = n.action;
9702
- const e = n.method.toLowerCase() === "post";
9703
- t.contentType = e && n.enctype ? n.enctype : "application/x-www-form-urlencoded";
9704
- const s = t.contentType == "multipart/form-data";
9692
+ contentType: n.method.toLowerCase() === "post" && n.enctype ? n.enctype : "application/x-www-form-urlencoded",
9693
+ multipartFormDataString: "",
9694
+ boundary: "---------------------------" + Date.now().toString(16)
9695
+ }, e = [], s = t.contentType == "multipart/form-data";
9705
9696
  for (let i = 0; i < n.elements.length; i++) {
9706
9697
  const r = n.elements[i];
9707
9698
  if (!r.hasAttribute("name"))
9708
9699
  continue;
9709
- const a = r.nodeName.toUpperCase() === "INPUT" && r.getAttribute("type") ? r.getAttribute("type").toUpperCase() : "";
9710
- if (a === "FILE") {
9711
- const o = r.files ? r.files.length : 0;
9712
- if (o == 0)
9713
- continue;
9714
- if (s)
9715
- for (let h = 0; h < o; h++) {
9716
- const c = r.files[h], l = await pi(
9717
- c,
9718
- "binaryString"
9719
- );
9720
- t.segments.push(
9721
- 'Content-Disposition: form-data; name="' + r.name + '"; filename="' + c.name + `"\r
9722
- Content-Type: ` + c.type + `\r
9700
+ const a = r.getAttribute("type");
9701
+ switch (r.nodeName.toUpperCase() === "INPUT" && a ? a.toUpperCase() : "") {
9702
+ case "FILE":
9703
+ const h = r;
9704
+ if (s)
9705
+ for (let d = 0, p = h.files?.length || 0; d < p; d++) {
9706
+ const g = h.files?.[d];
9707
+ if (g) {
9708
+ const m = await pi(
9709
+ g,
9710
+ "binaryString"
9711
+ );
9712
+ e.push(
9713
+ 'Content-Disposition: form-data; name="' + h.name + '"; filename="' + g.name + `"\r
9714
+ Content-Type: ` + g.type + `\r
9723
9715
  \r
9724
- ` + l + `\r
9716
+ ` + m + `\r
9725
9717
  `
9726
- );
9727
- }
9728
- else
9729
- for (let h = 0; h < o; h++)
9730
- t.data[r.name] = r.files[h].name;
9731
- } else
9732
- (a !== "RADIO" && a !== "CHECKBOX" || (a == "RADIO" || a == "CHECKBOX") && r.checked) && (s ? t.segments.push(
9733
- 'Content-Disposition: form-data; name="' + r.name + `"\r
9718
+ );
9719
+ }
9720
+ }
9721
+ break;
9722
+ case "RADIO":
9723
+ case "CHECKBOX":
9724
+ if (!r.checked)
9725
+ break;
9726
+ default:
9727
+ const l = r;
9728
+ s ? e.push(
9729
+ 'Content-Disposition: form-data; name="' + l.name + `"\r
9734
9730
  \r
9735
- ` + r.value + `\r
9731
+ ` + l.value + `\r
9736
9732
  `
9737
- ) : t.data[r.name] = r.value);
9733
+ ) : t.data[l.name] = l.value;
9734
+ break;
9735
+ }
9738
9736
  }
9739
- return t;
9737
+ return t.multipartFormDataString = "--" + t.boundary + `\r
9738
+ ` + e.join("--" + t.boundary + `\r
9739
+ `) + "--" + t.boundary + `--\r
9740
+ `, t;
9740
9741
  }
9741
9742
  function hr(n, t) {
9742
9743
  return function() {
@@ -10219,7 +10220,7 @@ function Ph(n, t) {
10219
10220
  function _h(n) {
10220
10221
  return C.matchAll(/\w+|\[(\w*)]/g, n).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
10221
10222
  }
10222
- function Ah(n) {
10223
+ function kh(n) {
10223
10224
  const t = {}, e = Object.keys(n);
10224
10225
  let s;
10225
10226
  const i = e.length;
@@ -10232,7 +10233,7 @@ function Sr(n) {
10232
10233
  function t(e, s, i, r) {
10233
10234
  let a = e[r++];
10234
10235
  const o = Number.isFinite(+a), h = r >= e.length;
10235
- return a = !a && C.isArray(i) ? i.length : a, h ? (C.hasOwnProp(i, a) ? i[a] = [i[a], s] : i[a] = s, !o) : ((!i[a] || !C.isObject(i[a])) && (i[a] = []), t(e, s, i[a], r) && C.isArray(i[a]) && (i[a] = Ah(i[a])), !o);
10236
+ return a = !a && C.isArray(i) ? i.length : a, h ? (C.hasOwnProp(i, a) ? i[a] = [i[a], s] : i[a] = s, !o) : ((!i[a] || !C.isObject(i[a])) && (i[a] = []), t(e, s, i[a], r) && C.isArray(i[a]) && (i[a] = kh(i[a])), !o);
10236
10237
  }
10237
10238
  if (C.isFormData(n) && C.isFunction(n.entries)) {
10238
10239
  const e = {};
@@ -10319,7 +10320,7 @@ const Ti = {
10319
10320
  C.forEach(["delete", "get", "head", "post", "put", "patch"], (n) => {
10320
10321
  Ti.headers[n] = {};
10321
10322
  });
10322
- const Pi = Ti, kh = C.toObjectSet([
10323
+ const Pi = Ti, Ah = C.toObjectSet([
10323
10324
  "age",
10324
10325
  "authorization",
10325
10326
  "content-length",
@@ -10342,10 +10343,10 @@ const Pi = Ti, kh = C.toObjectSet([
10342
10343
  let e, s, i;
10343
10344
  return n && n.split(`
10344
10345
  `).forEach(function(a) {
10345
- i = a.indexOf(":"), e = a.substring(0, i).trim().toLowerCase(), s = a.substring(i + 1).trim(), !(!e || t[e] && kh[e]) && (e === "set-cookie" ? t[e] ? t[e].push(s) : t[e] = [s] : t[e] = t[e] ? t[e] + ", " + s : s);
10346
+ i = a.indexOf(":"), e = a.substring(0, i).trim().toLowerCase(), s = a.substring(i + 1).trim(), !(!e || t[e] && Ah[e]) && (e === "set-cookie" ? t[e] ? t[e].push(s) : t[e] = [s] : t[e] = t[e] ? t[e] + ", " + s : s);
10346
10347
  }), t;
10347
10348
  }, bn = Symbol("internals");
10348
- function Ae(n) {
10349
+ function ke(n) {
10349
10350
  return n && String(n).trim().toLowerCase();
10350
10351
  }
10351
10352
  function hs(n) {
@@ -10390,7 +10391,7 @@ class Ps {
10390
10391
  set(t, e, s) {
10391
10392
  const i = this;
10392
10393
  function r(o, h, c) {
10393
- const l = Ae(h);
10394
+ const l = ke(h);
10394
10395
  if (!l)
10395
10396
  throw new Error("header name must be a non-empty string");
10396
10397
  const d = C.findKey(i, l);
@@ -10400,7 +10401,7 @@ class Ps {
10400
10401
  return C.isPlainObject(t) || t instanceof this.constructor ? a(t, e) : C.isString(t) && (t = t.trim()) && !Lh(t) ? a(Mh(t), e) : t != null && r(e, t, s), this;
10401
10402
  }
10402
10403
  get(t, e) {
10403
- if (t = Ae(t), t) {
10404
+ if (t = ke(t), t) {
10404
10405
  const s = C.findKey(this, t);
10405
10406
  if (s) {
10406
10407
  const i = this[s];
@@ -10417,7 +10418,7 @@ class Ps {
10417
10418
  }
10418
10419
  }
10419
10420
  has(t, e) {
10420
- if (t = Ae(t), t) {
10421
+ if (t = ke(t), t) {
10421
10422
  const s = C.findKey(this, t);
10422
10423
  return !!(s && this[s] !== void 0 && (!e || qs(this, this[s], s, e)));
10423
10424
  }
@@ -10427,7 +10428,7 @@ class Ps {
10427
10428
  const s = this;
10428
10429
  let i = !1;
10429
10430
  function r(a) {
10430
- if (a = Ae(a), a) {
10431
+ if (a = ke(a), a) {
10431
10432
  const o = C.findKey(s, a);
10432
10433
  o && (!e || qs(s, s[o], o, e)) && (delete s[o], i = !0);
10433
10434
  }
@@ -10486,7 +10487,7 @@ class Ps {
10486
10487
  accessors: {}
10487
10488
  }).accessors, i = this.prototype;
10488
10489
  function r(a) {
10489
- const o = Ae(a);
10490
+ const o = ke(a);
10490
10491
  s[o] || (Oh(i, a), s[o] = !0);
10491
10492
  }
10492
10493
  return C.isArray(t) ? t.forEach(r) : r(t), this;
@@ -10990,7 +10991,7 @@ C.forEach(["post", "put", "patch"], function(t) {
10990
10991
  gs.prototype[t] = e(), gs.prototype[t + "Form"] = e(!0);
10991
10992
  });
10992
10993
  const cs = gs;
10993
- class Ai {
10994
+ class ki {
10994
10995
  constructor(t) {
10995
10996
  if (typeof t != "function")
10996
10997
  throw new TypeError("executor must be a function.");
@@ -11051,14 +11052,14 @@ class Ai {
11051
11052
  static source() {
11052
11053
  let t;
11053
11054
  return {
11054
- token: new Ai(function(i) {
11055
+ token: new ki(function(i) {
11055
11056
  t = i;
11056
11057
  }),
11057
11058
  cancel: t
11058
11059
  };
11059
11060
  }
11060
11061
  }
11061
- const jh = Ai;
11062
+ const jh = ki;
11062
11063
  function $h(n) {
11063
11064
  return function(e) {
11064
11065
  return n.apply(null, e);
@@ -11162,10 +11163,10 @@ j.formToJSON = (n) => Sr(C.isHTMLForm(n) ? new FormData(n) : n);
11162
11163
  j.getAdapter = Tr.getAdapter;
11163
11164
  j.HttpStatusCode = Jh;
11164
11165
  j.default = j;
11165
- const Zh = j, Ar = window.crypto.subtle;
11166
- Ar || console.warn("Crypto API not supported");
11166
+ const Zh = j, kr = window.crypto.subtle;
11167
+ kr || console.warn("Crypto API not supported");
11167
11168
  async function Kh(n, t = "SHA-256") {
11168
- const e = await Ar.digest(t, da(n));
11169
+ const e = await kr.digest(t, da(n));
11169
11170
  return fa(e);
11170
11171
  }
11171
11172
  async function Qh(n, t = "SHA-256") {
@@ -11174,65 +11175,57 @@ async function Qh(n, t = "SHA-256") {
11174
11175
  }
11175
11176
  class Tl {
11176
11177
  instance;
11177
- interceptors;
11178
- requestCanceler;
11178
+ // Alter defaults after instance has been created
11179
+ // axios.defaults.baseURL = "";
11180
+ // axios.defaults.timeout = 30000;
11181
+ // axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
11182
+ // axios.defaults.headers.post.Accept = 'application/json';
11183
+ // axios.defaults.responseType = 'json'; // json | stream
11184
+ // .then(function (response) {response.data.pipe(fs.createWriteStream('xxx.jpg'))});
11179
11185
  constructor(t) {
11180
- this.instance = Zh.create(t), this.interceptors = t?.interceptors, this.requestCanceler = new tc(), this.instance.interceptors.request.use(
11181
- (e) => (this.requestCanceler.pendingRequest(e), e),
11182
- (e) => (this.requestCanceler.cancelRequest(e.config), e)
11183
- ), this.instance.interceptors.request.use(
11184
- this.interceptors?.requestInterceptor,
11185
- this.interceptors?.requestInterceptorCatch
11186
- ), this.instance.interceptors.response.use(
11187
- this.interceptors?.responseInterceptor,
11188
- this.interceptors?.responseInterceptorCatch
11186
+ this.instance = Zh.create(t);
11187
+ const e = new tc();
11188
+ this.instance.interceptors.request.use(
11189
+ (s) => (e.pendingRequest(s), s),
11190
+ (s) => (e.cancelRequest(s.config), s)
11191
+ ), t?.interceptor && (this.instance.interceptors.request.use(
11192
+ t.interceptor.request,
11193
+ t.interceptor.requestError
11189
11194
  ), this.instance.interceptors.response.use(
11190
- (e) => new Promise((s, i) => {
11191
- this.requestCanceler.confirmRequest(e.config), e.status === 200 ? s(e.data) : i(e.data);
11192
- }),
11193
- async (e) => {
11194
- const { code: s = "", config: i } = e;
11195
- return !i || !i.retry || !i.retryStatus?.includes(s) || (i.retryCounted = i.retryCounted ?? 0, i.retryCounted >= i.retry) ? Promise.reject(e) : (i.retryCounted++, await new Promise((r) => {
11196
- setTimeout(() => {
11197
- r(void 0);
11198
- }, i.retryDelay);
11199
- }), await this.request(i));
11195
+ t.interceptor.response,
11196
+ t.interceptor.responseError
11197
+ )), this.instance.interceptors.response.use(
11198
+ async (s) => (await e.confirmRequest(s.config), s.data),
11199
+ async (s) => {
11200
+ const { code: i = "", config: r } = s;
11201
+ return !r || !r.retry || (r.retryCounted = r.retryCounted || 0, r.retryCounted >= r.retry) ? Promise.reject(s) : (r.retryCounted++, await new Promise((a) => {
11202
+ setTimeout(a, r.retryDelay);
11203
+ }), await this.request(r));
11200
11204
  }
11201
11205
  );
11202
11206
  }
11203
- /** 发出请求 */
11204
- request(t) {
11205
- return new Promise((e, s) => {
11206
- try {
11207
- t.interceptors?.requestInterceptor && (t = t.interceptors?.requestInterceptor(t)), this.instance.request(t).then((i) => {
11208
- t.interceptors?.responseInterceptor && (i = t.interceptors.responseInterceptor(i)), e(i);
11209
- }).catch((i) => {
11210
- t.interceptors?.responseInterceptorCatch && (i = t.interceptors?.responseInterceptorCatch(i)), s(i);
11211
- });
11212
- } catch (i) {
11213
- t.interceptors?.requestInterceptorCatch && t.interceptors.requestInterceptorCatch(i);
11214
- }
11215
- });
11207
+ async request(t) {
11208
+ return await this.instance.request(t);
11216
11209
  }
11217
- get(t, e) {
11210
+ async get(t, e) {
11218
11211
  return this.request({ ...e, method: "get", url: t });
11219
11212
  }
11220
- delete(t, e) {
11213
+ async delete(t, e) {
11221
11214
  return this.request({ ...e, method: "delete", url: t });
11222
11215
  }
11223
- head(t, e) {
11216
+ async head(t, e) {
11224
11217
  return this.request({ ...e, method: "head", url: t });
11225
11218
  }
11226
- options(t, e) {
11219
+ async options(t, e) {
11227
11220
  return this.request({ ...e, method: "options", url: t });
11228
11221
  }
11229
- post(t, e, s) {
11222
+ async post(t, e, s) {
11230
11223
  return this.request({ ...s, method: "post", url: t, data: e });
11231
11224
  }
11232
- put(t, e, s) {
11225
+ async put(t, e, s) {
11233
11226
  return this.request({ ...s, method: "put", url: t, data: e });
11234
11227
  }
11235
- patch(t, e, s) {
11228
+ async patch(t, e, s) {
11236
11229
  return this.request({ ...s, method: "patch", url: t, data: e });
11237
11230
  }
11238
11231
  getUri(t) {
@@ -11244,6 +11237,10 @@ class tc {
11244
11237
  constructor() {
11245
11238
  this.pendingRequestMap = /* @__PURE__ */ new Map();
11246
11239
  }
11240
+ async getRequestId(t) {
11241
+ const { url: e, method: s, params: i, data: r } = t;
11242
+ return await Qh({ url: e, method: s, params: i, data: r });
11243
+ }
11247
11244
  async pendingRequest(t) {
11248
11245
  const e = await this.getRequestId(t);
11249
11246
  if (this.pendingRequestMap.has(e))
@@ -11266,14 +11263,11 @@ class tc {
11266
11263
  this.pendingRequestMap.has(e) && (this.pendingRequestMap.get(e)?.abort(), this.pendingRequestMap.delete(e));
11267
11264
  }
11268
11265
  async cancelAllRequest() {
11269
- for (const t of this.pendingRequestMap.values())
11270
- t.abort();
11266
+ const t = this.pendingRequestMap.values();
11267
+ for (const e of t)
11268
+ e.abort();
11271
11269
  this.pendingRequestMap.clear();
11272
11270
  }
11273
- async getRequestId(t) {
11274
- const { url: e, method: s, params: i, data: r } = t;
11275
- return await Qh({ url: e, method: s, params: i, data: r });
11276
- }
11277
11271
  }
11278
11272
  function Pl(n, t, e, s, i) {
11279
11273
  const r = t / e;
@@ -11323,7 +11317,7 @@ const Di = (n, t) => {
11323
11317
  }, e.onerror = function(s) {
11324
11318
  t(s, null);
11325
11319
  }, e.src = n;
11326
- }, Al = (n, t) => {
11320
+ }, kl = (n, t) => {
11327
11321
  for (let e = 0, s = n.length; e < s; e++) {
11328
11322
  const i = n[e], { type: r } = i;
11329
11323
  if (r.split("/")[0] !== "image")
@@ -11375,7 +11369,7 @@ const Di = (n, t) => {
11375
11369
  }, Dl = (n, t = 0, e = 0) => {
11376
11370
  const s = document.createElement("canvas"), i = s.getContext("2d");
11377
11371
  return s.width = t, s.height = e, i.drawImage(n, 0, 0, t, e), i.getImageData(0, 0, t, e);
11378
- }, kl = (n, t = 0, e = 0) => {
11372
+ }, Al = (n, t = 0, e = 0) => {
11379
11373
  const s = document.createElement("canvas"), i = s.getContext("2d");
11380
11374
  return s.width = t, s.height = e, i.drawImage(n, 0, 0, t, e), i.getImageData(0, 0, t, e);
11381
11375
  }, Ml = (n) => {
@@ -11669,7 +11663,7 @@ const Nl = (n) => {
11669
11663
  i[h] = c, i[h + 1] = c, i[h + 2] = t[h + 2], i[h + 3] = t[h + 3];
11670
11664
  }
11671
11665
  return new ImageData(i, e, s);
11672
- }, Ql = (n) => kr(n, [-1, -1, -1, -1, 9, -1, -1, -1, -1]), tu = (n) => kr(n, [-1, -1, -1, -1, 8, -1, -1, -1, -1]), eu = (n) => {
11666
+ }, Ql = (n) => Ar(n, [-1, -1, -1, -1, 9, -1, -1, -1, -1]), tu = (n) => Ar(n, [-1, -1, -1, -1, 8, -1, -1, -1, -1]), eu = (n) => {
11673
11667
  const { data: t, width: e, height: s } = n, i = new Uint8ClampedArray(t.length);
11674
11668
  for (let a = 0; a < s; a++)
11675
11669
  for (let o = 0; o < e; o++) {
@@ -11836,7 +11830,7 @@ const Nl = (n) => {
11836
11830
  return new ImageData(o, i, r);
11837
11831
  }
11838
11832
  return n;
11839
- }, kr = (n, t) => {
11833
+ }, Ar = (n, t) => {
11840
11834
  const { data: e, width: s, height: i } = n, r = new Uint8ClampedArray(e.length);
11841
11835
  for (let o = 0; o < i; o++)
11842
11836
  for (let h = 0; h < s; h++) {
@@ -12755,7 +12749,7 @@ class oe {
12755
12749
  return c;
12756
12750
  }
12757
12751
  }
12758
- const _n = Math.ceil, Ne = Math.floor, An = Math.round;
12752
+ const _n = Math.ceil, Ne = Math.floor, kn = Math.round;
12759
12753
  function uu(n, t) {
12760
12754
  const e = Rn(n), s = t?.ecc || "H", i = t?.size || 256, r = -1, a = t?.padding || 0, o = t?.color || "#000000", h = t?.background || "#ffffff", c = new oe(r, s);
12761
12755
  c.addData(e), c.make();
@@ -12777,8 +12771,8 @@ function du(n, t) {
12777
12771
  for (let w = 0; w < g; w++) {
12778
12772
  const v = _n((w + 1) * m) - Ne(w * m), S = _n((x + 1) * m) - Ne(x * m);
12779
12773
  r.fillStyle = p.isDark(x, w) ? l : d, r.fillRect(
12780
- e + An(w * m) + h,
12781
- s + An(x * m) + h,
12774
+ e + kn(w * m) + h,
12775
+ s + kn(x * m) + h,
12782
12776
  v,
12783
12777
  S
12784
12778
  );
@@ -13034,7 +13028,7 @@ class fu extends U {
13034
13028
  );
13035
13029
  }
13036
13030
  }
13037
- class ac extends Ao {
13031
+ class ac extends ko {
13038
13032
  currentItem = {};
13039
13033
  items = [];
13040
13034
  groups = [];
@@ -13246,7 +13240,7 @@ class mu {
13246
13240
  constructor(t, e, s) {
13247
13241
  this.app = t, this.rootEl = gt.createSVGElement(
13248
13242
  "svg"
13249
- ), A.empty(this.app.container), A.insert(this.app.container, this.rootEl), e && s ? this.setSize(e, s) : (this.setSize(this.app.width, this.app.height), this.app.on("resize", () => {
13243
+ ), k.empty(this.app.container), k.insert(this.app.container, this.rootEl), e && s ? this.setSize(e, s) : (this.setSize(this.app.width, this.app.height), this.app.on("resize", () => {
13250
13244
  this.setSize(this.app.width, this.app.height);
13251
13245
  })), this.app.captureDrag({
13252
13246
  start: () => {
@@ -13273,7 +13267,7 @@ class mu {
13273
13267
  this.currentEnableDragMouseInShape ? (this.app.container.style.cursor = "grab", this.isMouseDown && (this.app.container.style.cursor = "grabbing")) : this.currentMouseInShape ? this.app.container.style.cursor = "pointer" : this.app.container.style.cursor = "default";
13274
13268
  }
13275
13269
  setSize(t, e) {
13276
- return A.attribute(this.rootEl, {
13270
+ return k.attribute(this.rootEl, {
13277
13271
  viewBox: `0 0 ${t} ${e}`,
13278
13272
  width: `${t}`,
13279
13273
  height: `${e}`
@@ -13293,7 +13287,7 @@ class mu {
13293
13287
  }), this.isMouseDown && this.currentEnableDragMouseInShape || (this.currentMouseInShape = void 0);
13294
13288
  for (let e of this.shapes) {
13295
13289
  if (!e.isShow) {
13296
- e.el && (A.remove(e.el), delete e.el);
13290
+ e.el && (k.remove(e.el), delete e.el);
13297
13291
  continue;
13298
13292
  }
13299
13293
  if (e.frameStart(this.app.mousePoint), e.el || (e instanceof ys ? e.el = this.text(
@@ -13301,7 +13295,7 @@ class mu {
13301
13295
  e.x,
13302
13296
  e.y,
13303
13297
  Qi(e.getAttrs(), (i, r) => typeof r == "string")
13304
- ) : (e.el = gt.createSvgPath(e.toSVGPathD(), e.id), A.insert(this.rootEl, e.el))), e.followMouse && (!us(e.x, this.app.mousePoint.x, 5) || !us(e.y, this.app.mousePoint.y, 5)) && e.followTo(this.app.mousePoint), e.targetToAfterDragFree && (this.isMouseDown || e.runEaseTo(
13298
+ ) : (e.el = gt.createSvgPath(e.toSVGPathD(), e.id), k.insert(this.rootEl, e.el))), e.followMouse && (!us(e.x, this.app.mousePoint.x, 5) || !us(e.y, this.app.mousePoint.y, 5)) && e.followTo(this.app.mousePoint), e.targetToAfterDragFree && (this.isMouseDown || e.runEaseTo(
13305
13299
  {
13306
13300
  x: e.targetToAfterDragFree.targetX,
13307
13301
  y: e.targetToAfterDragFree.targetY
@@ -13344,17 +13338,17 @@ class mu {
13344
13338
  }
13345
13339
  delete(t) {
13346
13340
  (Array.isArray(t) ? t : [t]).forEach((e) => {
13347
- e.el && A.remove(e.el), delete e.el, this.shapes = this.shapes.filter((s) => s.id !== e.id);
13341
+ e.el && k.remove(e.el), delete e.el, this.shapes = this.shapes.filter((s) => s.id !== e.id);
13348
13342
  });
13349
13343
  }
13350
13344
  clear() {
13351
13345
  this.shapes.forEach((t) => {
13352
- t.el && A.remove(t.el), delete t.el;
13353
- }), A.empty(this.rootEl), this.shapes = [];
13346
+ t.el && k.remove(t.el), delete t.el;
13347
+ }), k.empty(this.rootEl), this.shapes = [];
13354
13348
  }
13355
13349
  attr(t, e, s) {
13356
13350
  const i = t.el || t;
13357
- return i instanceof SVGElement ? e === void 0 && s === void 0 ? A.attribute(i) : typeof e == "string" && s === void 0 ? A.attribute(i, mt(e)) || "" : (typeof e == "object" ? A.attribute(i, e) : typeof e == "string" && s !== void 0 && A.attribute(i, mt(e), s), this) : this;
13351
+ return i instanceof SVGElement ? e === void 0 && s === void 0 ? k.attribute(i) : typeof e == "string" && s === void 0 ? k.attribute(i, mt(e)) || "" : (typeof e == "object" ? k.attribute(i, e) : typeof e == "string" && s !== void 0 && k.attribute(i, mt(e), s), this) : this;
13358
13352
  }
13359
13353
  circle(t, e, s) {
13360
13354
  return this.path(new Qt({ x: t, y: e, radius: s }));
@@ -13365,7 +13359,7 @@ class mu {
13365
13359
  cy: String(e),
13366
13360
  r: String(s)
13367
13361
  });
13368
- return A.insert(this.rootEl, i), i;
13362
+ return k.insert(this.rootEl, i), i;
13369
13363
  }
13370
13364
  ellipse(t, e, s, i) {
13371
13365
  return this.path(new hc({ x: t, y: e, rx: s, ry: i }));
@@ -13377,7 +13371,7 @@ class mu {
13377
13371
  rx: String(s),
13378
13372
  ry: String(i)
13379
13373
  });
13380
- return A.insert(this.rootEl, r), r;
13374
+ return k.insert(this.rootEl, r), r;
13381
13375
  }
13382
13376
  rect(t, e, s, i) {
13383
13377
  return this.path(new ee({ x: t, y: e, width: s, height: i }));
@@ -13389,7 +13383,7 @@ class mu {
13389
13383
  width: String(s),
13390
13384
  height: String(i)
13391
13385
  });
13392
- return A.insert(this.rootEl, r), r;
13386
+ return k.insert(this.rootEl, r), r;
13393
13387
  }
13394
13388
  image(t, e, s, i, r) {
13395
13389
  }
@@ -13398,7 +13392,7 @@ class mu {
13398
13392
  x: String(e),
13399
13393
  y: String(s)
13400
13394
  });
13401
- return A.html(r, t), this.attr(r, Object.assign({ "alignment-baseline": "middle" }, i)), A.insert(this.rootEl, r), r;
13395
+ return k.html(r, t), this.attr(r, Object.assign({ "alignment-baseline": "middle" }, i)), k.insert(this.rootEl, r), r;
13402
13396
  }
13403
13397
  textWithTspan(t, e, s, i) {
13404
13398
  const r = i?.["line-height"] || "1.2em", a = gt.createSVGElement("text", {
@@ -13412,12 +13406,12 @@ class mu {
13412
13406
  x: String(e),
13413
13407
  dy: h > 0 ? r : "0"
13414
13408
  });
13415
- A.html(c, o), A.insert(a, c), this.attr(
13409
+ k.html(c, o), k.insert(a, c), this.attr(
13416
13410
  c,
13417
13411
  Object.assign({ "alignment-baseline": "middle" }, i)
13418
13412
  );
13419
13413
  }
13420
- }), A.insert(this.rootEl, a), a;
13414
+ }), k.insert(this.rootEl, a), a;
13421
13415
  }
13422
13416
  }
13423
13417
  class pu extends ct {
@@ -13990,7 +13984,7 @@ class ys extends U {
13990
13984
  // start | end
13991
13985
  ...this.getAttrs()
13992
13986
  });
13993
- const e = Qs(this.getAttr("fontSize"), 10).number, s = Qs(this.getAttr("fontWeight"), 400).number, i = A.measureText(this.text, e, s);
13987
+ const e = Qs(this.getAttr("fontSize"), 10).number, s = Qs(this.getAttr("fontWeight"), 400).number, i = k.measureText(this.text, e, s);
13994
13988
  this.width = i.width, this.height = i.height;
13995
13989
  }
13996
13990
  getBoundingClientRect() {
@@ -14354,7 +14348,7 @@ class Dn extends U {
14354
14348
  );
14355
14349
  }
14356
14350
  }
14357
- class Au extends ct {
14351
+ class ku extends ct {
14358
14352
  percent = 0;
14359
14353
  ringBg;
14360
14354
  ring;
@@ -14544,7 +14538,7 @@ class Du extends U {
14544
14538
  return e.r *= s, e.g *= s, e.b *= s, e.toString();
14545
14539
  }
14546
14540
  }
14547
- class ku extends ct {
14541
+ class Au extends ct {
14548
14542
  fettis = [];
14549
14543
  constructor(t, e, s) {
14550
14544
  super();
@@ -14576,7 +14570,7 @@ class ku extends ct {
14576
14570
  gravity: 1,
14577
14571
  drift: 0,
14578
14572
  ticks: 200,
14579
- colors: ko,
14573
+ colors: Ao,
14580
14574
  scalar: 1,
14581
14575
  flat: !1
14582
14576
  },
@@ -14895,7 +14889,7 @@ class Lu {
14895
14889
  for (let e of this.shapes) {
14896
14890
  if (!e.isShow)
14897
14891
  continue;
14898
- if (this.ctx.save(), e.frameStart(this.app.mousePoint), A.attrsToCanvas(this.ctx, e.getAttrs()), e.followMouse && (!us(e.x, this.app.mousePoint.x, 5) || !us(e.y, this.app.mousePoint.y, 5)) && e.followTo(this.app.mousePoint), e.targetToAfterDragFree && (this.isMouseDown || e.runEaseTo(
14892
+ if (this.ctx.save(), e.frameStart(this.app.mousePoint), k.attrsToCanvas(this.ctx, e.getAttrs()), e.followMouse && (!us(e.x, this.app.mousePoint.x, 5) || !us(e.y, this.app.mousePoint.y, 5)) && e.followTo(this.app.mousePoint), e.targetToAfterDragFree && (this.isMouseDown || e.runEaseTo(
14899
14893
  {
14900
14894
  x: e.targetToAfterDragFree.targetX,
14901
14895
  y: e.targetToAfterDragFree.targetY
@@ -15121,13 +15115,13 @@ function Nu(n) {
15121
15115
  return t[e];
15122
15116
  return document.scrollingElement || document.documentElement;
15123
15117
  }
15124
- const Or = [], kn = {};
15118
+ const Or = [], An = {};
15125
15119
  function Nr(n) {
15126
15120
  Or.push(n);
15127
15121
  }
15128
15122
  function Fu(n, t = !1) {
15129
15123
  const e = Io();
15130
- if (kn[e])
15124
+ if (An[e])
15131
15125
  return;
15132
15126
  wx.error((r) => {
15133
15127
  console.log(r.errMsg ?? JSON.stringify(r));
@@ -15182,7 +15176,7 @@ function Fu(n, t = !1) {
15182
15176
  openTagList: i
15183
15177
  // 可选,需要使用的开放标签列表,例如['wx-open-launch-app']
15184
15178
  })
15185
- ), kn[e] = !0;
15179
+ ), An[e] = !0;
15186
15180
  }
15187
15181
  function Yu(n) {
15188
15182
  return new Promise((t, e) => {
@@ -15607,7 +15601,7 @@ class gd extends _s {
15607
15601
  return this.manager.itemStart(t), setTimeout(() => {
15608
15602
  e?.onLoad?.(s), this.manager.itemEnd(t);
15609
15603
  }, 0), s;
15610
- const i = A.createElementNS("img"), r = () => {
15604
+ const i = k.createElementNS("img"), r = () => {
15611
15605
  o(), te.add(t, i), e?.onLoad?.(i), this.manager.itemEnd(t);
15612
15606
  }, a = (h) => {
15613
15607
  o(), e?.onError?.(h), this.manager.itemError(t), this.manager.itemEnd(t);
@@ -15810,7 +15804,7 @@ export {
15810
15804
  un as Clock,
15811
15805
  dt as Color,
15812
15806
  ul as CommonKeyCode,
15813
- ku as Confetti,
15807
+ Au as Confetti,
15814
15808
  ge as ControlsColorPattern,
15815
15809
  Su as Cross,
15816
15810
  ds as CustomCanvasContext,
@@ -15818,11 +15812,11 @@ export {
15818
15812
  on as CustomCanvasPattern,
15819
15813
  Co as DOMEventBus,
15820
15814
  So as DOMKey,
15821
- Ao as DOMParse,
15815
+ ko as DOMParse,
15822
15816
  fe as DOMSVGUtil,
15823
15817
  Da as DOMToBlob,
15824
15818
  Un as DOMToString,
15825
- A as DOMUtil,
15819
+ k as DOMUtil,
15826
15820
  ps as DOMVideo,
15827
15821
  M as Easing,
15828
15822
  hc as Ellipse,
@@ -15840,7 +15834,7 @@ export {
15840
15834
  fu as LineQuadraticBezier,
15841
15835
  ft as Matrix,
15842
15836
  yt as Matrix3D,
15843
- ko as NormalColors,
15837
+ Ao as NormalColors,
15844
15838
  pd as Pagination,
15845
15839
  Qt as Point,
15846
15840
  is as Point3D,
@@ -15850,7 +15844,7 @@ export {
15850
15844
  vu as Rabbit,
15851
15845
  ee as Rect,
15852
15846
  Dn as Ring,
15853
- Au as RingIndicator,
15847
+ ku as RingIndicator,
15854
15848
  ac as SVGParse,
15855
15849
  es as SVGParsedPathArgsLength,
15856
15850
  Eu as Sector,
@@ -15932,23 +15926,23 @@ export {
15932
15926
  Ra as getElementPositionInViewport,
15933
15927
  Ma as getFileExtension,
15934
15928
  Cc as getFileTypeFromFile,
15935
- Al as getFilesImageInfo,
15929
+ kl as getFilesImageInfo,
15936
15930
  El as getFormSubmitData,
15937
15931
  _l as getImageAspectRatio,
15938
15932
  lu as getImageDataByAIData,
15939
- kl as getImageDataFromBitmap,
15933
+ Al as getImageDataFromBitmap,
15940
15934
  ec as getImageDataFromUrl,
15941
15935
  Dl as getImageDataFromVideo,
15942
15936
  Ol as getImageMainColor,
15943
15937
  Fa as getInternetExplorerVersion,
15944
- kt as getMousePositionInElement,
15938
+ At as getMousePositionInElement,
15945
15939
  Oa as getMousePositionInPage,
15946
15940
  Ic as getMousePositionInViewport,
15947
15941
  yi as getOperatingSystem,
15948
15942
  Lc as getOperatingSystemVersion,
15949
- Ac as getPageSize,
15943
+ kc as getPageSize,
15950
15944
  Di as getRawImageInfo,
15951
- kc as getRelativeBoundingClientRect,
15945
+ Ac as getRelativeBoundingClientRect,
15952
15946
  Tc as getScreenPosition,
15953
15947
  Nu as getScrollParent,
15954
15948
  Fc as getTimeZone,
@@ -16020,7 +16014,7 @@ export {
16020
16014
  Mt as rotatePoint,
16021
16015
  Za as scheduleIdle,
16022
16016
  jn as scheduleYZIdle,
16023
- ka as selectFileInBrowser,
16017
+ Aa as selectFileInBrowser,
16024
16018
  ri as setColorScheme,
16025
16019
  fl as setCookie,
16026
16020
  tl as setIntervalAccurate,