minutool 1.0.9 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/minutool.js CHANGED
@@ -1,45 +1,49 @@
1
- const $t = (t, e) => {
1
+ const Bt = (t, e) => {
2
2
  let n = [];
3
3
  for (let i in t)
4
4
  n.push(t[i][e]);
5
5
  return n;
6
- }, Bt = (t, e) => {
6
+ }, qt = (t, e) => {
7
7
  for (let n in t)
8
8
  if (t[n] === e)
9
9
  return n;
10
10
  return null;
11
- }, qt = (t) => {
12
- let e = /* @__PURE__ */ new Map();
13
- return t.filter((n) => {
14
- if (!e.has(n))
15
- return e.set(n, !0), !0;
11
+ }, Yt = (t, e) => {
12
+ let n = /* @__PURE__ */ new Map();
13
+ return t.filter((i, r) => {
14
+ let a = e ? e(i, r) : i;
15
+ if (!n.has(a))
16
+ return n.set(a, !0), !0;
16
17
  });
17
- }, Yt = (t, e, n) => {
18
+ }, jt = (t, e, n) => {
18
19
  if (!t || !t.length)
19
20
  return t;
20
21
  let i = {};
21
- if (t.forEach((l) => {
22
- let p = l[e];
23
- i[p] || (i[p] = []), i[p].push(l);
22
+ if (t.forEach((a) => {
23
+ let p = a[e];
24
+ i[p] || (i[p] = []), i[p].push(a);
24
25
  }), !n)
25
26
  return i;
26
27
  let r = {};
27
- for (let l in i)
28
- r[l] = i[l][0];
28
+ for (let a in i)
29
+ r[a] = i[a][0];
29
30
  return r;
30
- }, jt = (t) => Object.keys(t).sort().reduce(function(e, n) {
31
- return e[n] = t[n], e;
32
- }, {}), Gt = (t, e) => {
31
+ }, Gt = (t) => Object.keys(t).sort().reduce(
32
+ function(e, n) {
33
+ return e[n] = t[n], e;
34
+ },
35
+ {}
36
+ ), zt = (t, e) => {
33
37
  let n = t.length;
34
38
  if (e < 1 || !n)
35
39
  return [];
36
40
  if (e > n)
37
41
  return [t];
38
- let i = [], r = Math.floor(n / e), l = n % e;
42
+ let i = [], r = Math.floor(n / e), a = n % e;
39
43
  for (let p = 1; p <= r; p++)
40
44
  i.push(t.splice(0, e));
41
- return l && i.push(t.splice(0, l)), i;
42
- }, zt = (t) => {
45
+ return a && i.push(t.splice(0, a)), i;
46
+ }, Wt = (t) => {
43
47
  let e = -1;
44
48
  for (let n = t.length - 1; n >= 0; n--)
45
49
  if (t[n]) {
@@ -48,15 +52,15 @@ const $t = (t, e) => {
48
52
  }
49
53
  return t.slice(0, e + 1);
50
54
  };
51
- function et(t) {
55
+ function nt(t) {
52
56
  return t && t.charAt(0).toUpperCase() + t.slice(1);
53
57
  }
54
- const Wt = (t, e = 0) => {
58
+ const Jt = (t, e = 0) => {
55
59
  if (!t || typeof t != "string")
56
60
  return e;
57
61
  const n = parseFloat(t);
58
62
  return isNaN(n) ? e : n;
59
- }, Jt = (t) => (t + "").replace(/\\(.?)/g, function(e, n) {
63
+ }, Kt = (t) => (t + "").replace(/\\(.?)/g, function(e, n) {
60
64
  switch (n) {
61
65
  case "\\":
62
66
  return "\\";
@@ -67,34 +71,34 @@ const Wt = (t, e = 0) => {
67
71
  default:
68
72
  return n;
69
73
  }
70
- }), Kt = (t, e, n = "...") => {
74
+ }), Vt = (t, e, n = "...") => {
71
75
  let i = /[^\x00-\xff]/g;
72
76
  if (t.replace(i, "mm").length <= e)
73
77
  return t;
74
78
  let r = Math.floor(e / 2);
75
- for (let l = r; l < t.length; l++)
76
- if (t.substr(0, l).replace(i, "mm").length >= e)
77
- return t.substr(0, l) + n;
79
+ for (let a = r; a < t.length; a++)
80
+ if (t.substr(0, a).replace(i, "mm").length >= e)
81
+ return t.substr(0, a) + n;
78
82
  return t;
79
- }, Vt = (t, e) => {
83
+ }, Qt = (t, e) => {
80
84
  const n = Object.keys(e), i = Object.values(e);
81
85
  return new Function(...n, `return \`${t}\`;`)(...i);
82
86
  };
83
- function Qt(t) {
87
+ function Zt(t) {
84
88
  return t.replace(/[-_](.)/g, (e, n) => n.toUpperCase());
85
89
  }
86
- function Zt(t) {
90
+ function Xt(t) {
87
91
  return t.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase();
88
92
  }
89
- function Xt(t, e, n = "...") {
93
+ function te(t, e, n = "...") {
90
94
  return t.length <= e ? t : t.slice(0, e) + n;
91
95
  }
92
- const _ = (t) => (t + "").replace(/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!\<\>\|\:])/g, "\\$1"), nt = (t) => {
93
- let e = "", n = 0, i = 0, r = 0, l = 0;
96
+ const _ = (t) => (t + "").replace(/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!\<\>\|\:])/g, "\\$1"), it = (t) => {
97
+ let e = "", n = 0, i = 0, r = 0, a = 0;
94
98
  for (; n < t.length; )
95
- i = t.charCodeAt(n), i < 128 ? (e += String.fromCharCode(i), n++) : i > 191 && i < 224 ? (r = t.charCodeAt(n + 1), e += String.fromCharCode((i & 31) << 6 | r & 63), n += 2) : (r = t.charCodeAt(n + 1), l = t.charCodeAt(n + 2), e += String.fromCharCode((i & 15) << 12 | (r & 63) << 6 | l & 63), n += 3);
99
+ i = t.charCodeAt(n), i < 128 ? (e += String.fromCharCode(i), n++) : i > 191 && i < 224 ? (r = t.charCodeAt(n + 1), e += String.fromCharCode((i & 31) << 6 | r & 63), n += 2) : (r = t.charCodeAt(n + 1), a = t.charCodeAt(n + 2), e += String.fromCharCode((i & 15) << 12 | (r & 63) << 6 | a & 63), n += 3);
96
100
  return e;
97
- }, $ = (t) => {
101
+ }, B = (t) => {
98
102
  t = t.replace(/\r\n/g, "n");
99
103
  let e = "";
100
104
  for (let n = 0; n < t.length; n++) {
@@ -102,78 +106,78 @@ const _ = (t) => (t + "").replace(/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!\<\>\|\:])/g,
102
106
  i < 128 ? e += String.fromCharCode(i) : i > 127 && i < 2048 ? (e += String.fromCharCode(i >> 6 | 192), e += String.fromCharCode(i & 63 | 128)) : (e += String.fromCharCode(i >> 12 | 224), e += String.fromCharCode(i >> 6 & 63 | 128), e += String.fromCharCode(i & 63 | 128));
103
107
  }
104
108
  return e;
105
- }, te = (t) => {
109
+ }, ee = (t) => {
106
110
  let e = 0, n = t.length, i = -1;
107
111
  for (let r = 0; r < n; r++)
108
112
  i = t.charCodeAt(r), i >= 0 && i <= 128 ? e += 1 : e += 3;
109
113
  return e;
110
- }, it = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890", rt = (t = 6, e = it) => {
114
+ }, rt = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890", ot = (t = 6, e = rt) => {
111
115
  let n = "";
112
116
  for (let i = 0; i < t; i++) {
113
117
  let r = Math.round(Math.random() * (e.length - 1));
114
118
  n += e.substring(r, r + 1);
115
119
  }
116
120
  return n;
117
- }, ee = (t = 1, e = 8) => {
121
+ }, ne = (t = 1, e = 8) => {
118
122
  let n = [];
119
123
  const i = "bcdfghjklmnpqrstvwxyz", r = "aeiou";
120
124
  for (; t-- > 0; ) {
121
- let l = "";
125
+ let a = "";
122
126
  for (let p = 0; p < e; p = p + 3)
123
- l += i[Math.floor(Math.random() * i.length)], l += r[Math.floor(Math.random() * r.length)], l += i[Math.floor(Math.random() * i.length)];
124
- n.push(l);
127
+ a += i[Math.floor(Math.random() * i.length)], a += r[Math.floor(Math.random() * r.length)], a += i[Math.floor(Math.random() * i.length)];
128
+ n.push(a);
125
129
  }
126
130
  return n;
127
- }, ne = (t, e = !1) => {
131
+ }, ie = (t, e = !1) => {
128
132
  let n = [];
129
133
  return t.replace(/[-_\s+]/g, " ").split(" ").forEach((i, r) => {
130
- n.push(r === 0 && !e ? i : et(i));
134
+ n.push(r === 0 && !e ? i : nt(i));
131
135
  }), n.join("");
132
- }, R = 0, k = 1, ot = 2, ie = (t, e = "", n = R) => {
136
+ }, k = 0, I = 1, at = 2, re = (t, e = "", n = k) => {
133
137
  if (e.length) {
134
138
  let i = new RegExp("^[" + _(e) + "]+"), r = new RegExp("[" + _(e) + "]+$");
135
- return n === k ? t.replace(i, "") : n === ot ? t.replace(r, "") : t.replace(i, "").replace(r, "");
139
+ return n === I ? t.replace(i, "") : n === at ? t.replace(r, "") : t.replace(i, "").replace(r, "");
136
140
  } else
137
- return n === R ? t.trim() : n === k ? t.trimStart() : t.trimEnd();
138
- }, re = (t, e) => {
141
+ return n === k ? t.trim() : n === I ? t.trimStart() : t.trimEnd();
142
+ }, oe = (t, e) => {
139
143
  let n = [];
140
144
  for (let i = 0; i < t.length; i += e)
141
145
  n.push(t.slice(i, i + e));
142
146
  return n;
143
- }, oe = (t) => /[\u4e00-\u9fa5]/.test(t), h = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", ae = (t) => {
144
- let e = "", n, i, r, l, p, o, s, a = 0;
145
- for (t = t.replace(/\+\+[++^A-Za-z0-9+/=]/g, ""); a < t.length; )
146
- l = h.indexOf(t.charAt(a++)), p = h.indexOf(t.charAt(a++)), o = h.indexOf(t.charAt(a++)), s = h.indexOf(t.charAt(a++)), n = l << 2 | p >> 4, i = (p & 15) << 4 | o >> 2, r = (o & 3) << 6 | s, e = e + String.fromCharCode(n), o !== 64 && (e = e + String.fromCharCode(i)), s !== 64 && (e = e + String.fromCharCode(r));
147
- return e = nt(e), e;
148
- }, le = (t) => $(t).replace("+", "-").replace("/", "_"), se = (t) => {
149
- let e = "", n, i, r, l, p, o, s, a = 0;
150
- for (t = $(t); a < t.length; )
151
- n = t.charCodeAt(a++), i = t.charCodeAt(a++), r = t.charCodeAt(a++), l = n >> 2, p = (n & 3) << 4 | i >> 4, o = (i & 15) << 2 | r >> 6, s = r & 63, isNaN(i) ? o = s = 64 : isNaN(r) && (s = 64), e = e + h.charAt(l) + h.charAt(p) + h.charAt(o) + h.charAt(s);
147
+ }, ae = (t) => /[\u4e00-\u9fa5]/.test(t), h = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", le = (t) => {
148
+ let e = "", n, i, r, a, p, o, s, l = 0;
149
+ for (t = t.replace(/\+\+[++^A-Za-z0-9+/=]/g, ""); l < t.length; )
150
+ a = h.indexOf(t.charAt(l++)), p = h.indexOf(t.charAt(l++)), o = h.indexOf(t.charAt(l++)), s = h.indexOf(t.charAt(l++)), n = a << 2 | p >> 4, i = (p & 15) << 4 | o >> 2, r = (o & 3) << 6 | s, e = e + String.fromCharCode(n), o !== 64 && (e = e + String.fromCharCode(i)), s !== 64 && (e = e + String.fromCharCode(r));
151
+ return e = it(e), e;
152
+ }, se = (t) => B(t).replace("+", "-").replace("/", "_"), ce = (t) => {
153
+ let e = "", n, i, r, a, p, o, s, l = 0;
154
+ for (t = B(t); l < t.length; )
155
+ n = t.charCodeAt(l++), i = t.charCodeAt(l++), r = t.charCodeAt(l++), a = n >> 2, p = (n & 3) << 4 | i >> 4, o = (i & 15) << 2 | r >> 6, s = r & 63, isNaN(i) ? o = s = 64 : isNaN(r) && (s = 64), e = e + h.charAt(a) + h.charAt(p) + h.charAt(o) + h.charAt(s);
152
156
  return e;
153
- }, at = async (t) => await lt(t), lt = (t) => new Promise((e, n) => {
157
+ }, lt = async (t) => await st(t), st = (t) => new Promise((e, n) => {
154
158
  const i = new FileReader();
155
159
  i.readAsDataURL(t), i.onload = () => e(i.result), i.onerror = (r) => n(r);
156
- }), st = (t) => {
160
+ }), ct = (t) => {
157
161
  if (t.requestFullscreen)
158
162
  return t.requestFullscreen();
159
163
  if (t.webkitRequestFullScreen)
160
164
  return t.webkitRequestFullScreen();
161
165
  throw t.mozRequestFullScreen && t.mozRequestFullScreen(), t.msRequestFullScreen && t.msRequestFullScreen(), "Browser no allow full screen";
162
- }, ct = () => document.exitFullscreen(), ce = (t) => new Promise((e, n) => {
163
- pt() ? ct().then(e).catch(n) : st(t).then(e).catch(n);
164
- }), pt = () => !!document.fullscreenElement, pe = (t) => {
166
+ }, pt = () => document.exitFullscreen(), pe = (t) => new Promise((e, n) => {
167
+ ut() ? pt().then(e).catch(n) : ct(t).then(e).catch(n);
168
+ }), ut = () => !!document.fullscreenElement, ue = (t) => {
165
169
  const e = navigator.language || navigator.userLanguage;
166
170
  if (t.includes(e))
167
171
  return e;
168
172
  const n = e.split("-")[0], i = t.find((r) => r.startsWith(n));
169
173
  return i || t[0];
170
- }, ue = () => navigator.userAgent.toLowerCase().indexOf("firefox") > -1, fe = (t, e, n, i = "/", r) => {
171
- let l = "";
174
+ }, fe = () => navigator.userAgent.toLowerCase().indexOf("firefox") > -1, de = (t, e, n, i = "/", r) => {
175
+ let a = "";
172
176
  if (n) {
173
177
  let o = /* @__PURE__ */ new Date();
174
- o.setTime(Date.now() + n * 24 * 60 * 60 * 1e3), l = "; expires=" + o.toUTCString();
178
+ o.setTime(Date.now() + n * 24 * 60 * 60 * 1e3), a = "; expires=" + o.toUTCString();
175
179
  }
176
- let p = t + "=" + (e || "") + l + "; path=" + i;
180
+ let p = t + "=" + (e || "") + a + "; path=" + i;
177
181
  r && (p += "; domain=" + r), document.cookie = p;
178
182
  }, me = (t) => {
179
183
  let e = t + "=", n = document.cookie.split(";");
@@ -186,32 +190,32 @@ const _ = (t) => (t + "").replace(/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!\<\>\|\:])/g,
186
190
  }, S = (t, e = "/", n) => {
187
191
  let i = t + "=; Path=" + e + "; Expires=Thu, 01 Jan 1970 00:00:01 GMT;";
188
192
  n && (i += " Domain=" + n + ";"), document.cookie = i;
189
- }, de = (t, e) => {
193
+ }, he = (t, e) => {
190
194
  const n = (e || (location == null ? void 0 : location.hostname)).split(".");
191
195
  for (; n.length > 1; )
192
196
  S(t, "/", n.join(".")), S(t, "/", "." + n.join(".")), n.shift();
193
197
  S(t);
194
198
  };
195
- let ut = 0;
196
- const ft = (t = "") => "guid_" + (t || rt(6)) + ++ut, he = (t, e) => {
199
+ let ft = 0;
200
+ const dt = (t = "") => "guid_" + (t || ot(6)) + ++ft, ge = (t, e) => {
197
201
  let n, i, r = 0;
198
202
  return function() {
199
- let l = +/* @__PURE__ */ new Date();
200
- n = this, i = arguments, l - r > e && (t.apply(n, i), r = l);
203
+ let a = +/* @__PURE__ */ new Date();
204
+ n = this, i = arguments, a - r > e && (t.apply(n, i), r = a);
201
205
  };
202
- }, ge = (t, e) => {
203
- let n, i, r = 0, l = !1;
206
+ }, xe = (t, e) => {
207
+ let n, i, r = 0, a = !1;
204
208
  return function() {
205
- if (l)
209
+ if (a)
206
210
  return;
207
211
  let p = +/* @__PURE__ */ new Date();
208
212
  n = this, i = arguments;
209
213
  let o = e - (p - r);
210
- o <= 0 ? (t.apply(n, i), r = p) : (l = !0, setTimeout(() => {
211
- t.apply(n, i), l = !1, r = p;
214
+ o <= 0 ? (t.apply(n, i), r = p) : (a = !0, setTimeout(() => {
215
+ t.apply(n, i), a = !1, r = p;
212
216
  }, o));
213
217
  };
214
- }, xe = (t, e) => {
218
+ }, we = (t, e) => {
215
219
  let n;
216
220
  return function() {
217
221
  let i = this, r = arguments;
@@ -219,14 +223,14 @@ const ft = (t = "") => "guid_" + (t || rt(6)) + ++ut, he = (t, e) => {
219
223
  t.apply(i, r);
220
224
  }, e);
221
225
  };
222
- }, we = (t) => t && typeof t == "object" && t.then && typeof t.then == "function", ve = (t) => {
226
+ }, ve = (t) => t && typeof t == "object" && t.then && typeof t.then == "function", ye = (t) => {
223
227
  let e = !1;
224
228
  try {
225
229
  JSON.parse(t), e = !0;
226
230
  } catch {
227
231
  }
228
232
  return e;
229
- }, ye = (t) => t && typeof t == "object" && !Array.isArray(t), be = (t) => t ? Object.prototype.toString.call(t) === "[object Function]" || typeof t == "function" || t instanceof Function : !1, mt = (t) => typeof t != "string" || t.trim() === "" ? !1 : /^(https?:\/\/|\/\/|\/|\.\.?\/*)/i.test(t), Ee = (t) => {
233
+ }, Ee = (t) => t && typeof t == "object" && !Array.isArray(t), be = (t) => t ? Object.prototype.toString.call(t) === "[object Function]" || typeof t == "function" || t instanceof Function : !1, mt = (t) => typeof t != "string" || t.trim() === "" ? !1 : /^(https?:\/\/|\/\/|\/|\.\.?\/*)/i.test(t), Te = (t) => {
230
234
  let e = !1;
231
235
  try {
232
236
  JSON.parse(t), e = !0;
@@ -236,10 +240,10 @@ const ft = (t = "") => "guid_" + (t || rt(6)) + ++ut, he = (t, e) => {
236
240
  }, Ae = () => {
237
241
  let t = new Error().stack;
238
242
  console.log(t);
239
- }, Te = (1 + Math.sqrt(5)) / 2 - 1, B = 96, Me = (t, e = B) => t / 25.4 * e, Se = (t) => Math.round(t * 56.6929), Ce = (t) => t * 2.83464566929, _e = (t) => t / 2.83464566929, Ne = (t, e = B) => 25.4 * t / e, Oe = (t, e, n) => Math.min(Math.max(t, e), n), g = (t, e, n, i = !0) => i ? t >= e && t <= n : t > e && t < n, De = (t, e) => Math.floor(Math.random() * (e + 1 - t)) + t, Re = (t, e = 2) => {
243
+ }, Me = (1 + Math.sqrt(5)) / 2 - 1, q = 96, Se = (t, e = q) => t / 25.4 * e, Ce = (t) => Math.round(t * 56.6929), _e = (t) => t * 2.83464566929, Ne = (t) => t / 2.83464566929, Oe = (t, e = q) => 25.4 * t / e, De = (t, e, n) => Math.min(Math.max(t, e), n), g = (t, e, n, i = !0) => i ? t >= e && t <= n : t > e && t < n, Re = (t, e) => Math.floor(Math.random() * (e + 1 - t)) + t, ke = (t, e = 2) => {
240
244
  let n = Math.pow(10, e);
241
245
  return Math.round(t * n) / n;
242
- }, ke = (...t) => {
246
+ }, Ie = (...t) => {
243
247
  let e = 0;
244
248
  return t.forEach((n) => {
245
249
  if (typeof n == "number" && !isNaN(n)) {
@@ -247,38 +251,38 @@ const ft = (t = "") => "guid_" + (t || rt(6)) + ++ut, he = (t, e) => {
247
251
  i && (e = Math.max(e, i.length));
248
252
  }
249
253
  }), e;
250
- }, Ie = (t) => (t = Math.abs(Number(t)), t === 0 ? 1 : Math.floor(Math.log10(t)) + 1), Le = (t) => {
251
- E(t).style.display = "none";
252
- }, He = (t) => {
253
- E(t).style.display = "";
254
+ }, Le = (t) => (t = Math.abs(Number(t)), t === 0 ? 1 : Math.floor(Math.log10(t)) + 1), He = (t) => {
255
+ b(t).style.display = "none";
254
256
  }, Fe = (t) => {
255
- let e = E(t);
257
+ b(t).style.display = "";
258
+ }, Pe = (t) => {
259
+ let e = b(t);
256
260
  return e && e.parentNode && e.parentNode.removeChild(e);
257
- }, C = "disabled", dt = (t, e = "") => q(t, e, !1), ht = (t, e = "") => q(t, e, !0), q = (t, e = "", n = null) => {
258
- let i = E(t), r = n === null ? !i.classList.contains(C) : !n;
259
- r && xt(`.${C} {pointer-event:none !important;}`, "__element_lock_style__"), i.classList.toggle(C, r), i[r ? "setAttribute" : "removeAttribute"]("disabled", "disabled"), i[r ? "setAttribute" : "removeAttribute"]("data-disabled", "disabled"), e && i.classList.toggle(e, r);
260
- }, Pe = (t, e, n) => {
261
- t = E(t);
261
+ }, C = "disabled", ht = (t, e = "") => Y(t, e, !1), gt = (t, e = "") => Y(t, e, !0), Y = (t, e = "", n = null) => {
262
+ let i = b(t), r = n === null ? !i.classList.contains(C) : !n;
263
+ r && wt(`.${C} {pointer-event:none !important;}`, "__element_lock_style__"), i.classList.toggle(C, r), i[r ? "setAttribute" : "removeAttribute"]("disabled", "disabled"), i[r ? "setAttribute" : "removeAttribute"]("data-disabled", "disabled"), e && i.classList.toggle(e, r);
264
+ }, Ue = (t, e, n) => {
265
+ t = b(t);
262
266
  let i = !1;
263
267
  t.addEventListener("mouseenter", () => {
264
268
  i || (i = !0, e && e());
265
269
  }), t.addEventListener("mouseleave", () => {
266
270
  i && (i = !1, n && n());
267
271
  });
268
- }, Ue = (t, e) => {
269
- dt(t), e(() => {
270
- ht(t);
272
+ }, $e = (t, e) => {
273
+ ht(t), e(() => {
274
+ gt(t);
271
275
  });
272
- }, $e = (t) => t.parentNode ? Array.prototype.indexOf.call(t.parentNode.children, t) : -1, Y = (t, e = document) => {
276
+ }, Be = (t) => t.parentNode ? Array.prototype.indexOf.call(t.parentNode.children, t) : -1, j = (t, e = document) => {
273
277
  if (typeof t == "string")
274
278
  return t = t.trim(), t.indexOf(":scope") !== 0 && (t = ":scope " + t), Array.from(e.querySelectorAll(t));
275
279
  if (Array.isArray(t)) {
276
280
  let n = [];
277
281
  return t.forEach((i) => {
278
- n.push(...Y(i));
282
+ n.push(...j(i));
279
283
  }), n;
280
284
  } else return NodeList.prototype.isPrototypeOf(t) || HTMLCollection.prototype.isPrototypeOf(t) ? Array.from(t) : t instanceof HTMLElement ? [t] : t;
281
- }, E = (t, e = document) => typeof t == "string" ? e.querySelector(t) : t, Be = (t) => {
285
+ }, b = (t, e = document) => typeof t == "string" ? e.querySelector(t) : t, qe = (t) => {
282
286
  let e = document.getElementsByTagName("*"), n = [];
283
287
  for (n = []; t && t.nodeType === 1; t = t.parentNode)
284
288
  if (t.hasAttribute("id")) {
@@ -297,14 +301,14 @@ const ft = (t = "") => "guid_" + (t || rt(6)) + ++ut, he = (t, e) => {
297
301
  n.unshift(t.localName.toLowerCase() + "[" + i + "]");
298
302
  }
299
303
  return n.length ? "/" + n.join("/") : null;
300
- }, qe = (t, e, n = !0) => {
301
- const i = "ON_DOM_TREE_CHANGE_BIND_" + ft();
304
+ }, Ye = (t, e, n = !0) => {
305
+ const i = "ON_DOM_TREE_CHANGE_BIND_" + dt();
302
306
  let r = () => {
303
- Y(`input:not([${i}]), textarea:not([${i}]), select:not([${i}])`, t).forEach((l) => {
304
- l.setAttribute(i, "1"), l.addEventListener("change", e);
307
+ j(`input:not([${i}]), textarea:not([${i}]), select:not([${i}])`, t).forEach((a) => {
308
+ a.setAttribute(i, "1"), a.addEventListener("change", e);
305
309
  });
306
310
  };
307
- gt(
311
+ xt(
308
312
  t,
309
313
  { attributes: !0, subtree: !0, childList: !0 },
310
314
  () => {
@@ -312,17 +316,17 @@ const ft = (t = "") => "guid_" + (t || rt(6)) + ++ut, he = (t, e) => {
312
316
  },
313
317
  10
314
318
  ), n && r();
315
- }, gt = (t, e, n, i = 10) => {
316
- let r = 0, l = !1, p = new MutationObserver(() => {
317
- if (l)
319
+ }, xt = (t, e, n, i = 10) => {
320
+ let r = 0, a = !1, p = new MutationObserver(() => {
321
+ if (a)
318
322
  return;
319
323
  let o = i - (Date.now() - r);
320
- o > 0 ? (l = !0, setTimeout(() => {
321
- l = !1, r = Date.now(), n(p);
324
+ o > 0 ? (a = !0, setTimeout(() => {
325
+ a = !1, r = Date.now(), n(p);
322
326
  }, o)) : (r = Date.now(), n(p));
323
327
  });
324
328
  p.observe(t, e);
325
- }, Ye = (t, e = {
329
+ }, je = (t, e = {
326
330
  left: 0,
327
331
  top: 0,
328
332
  width: window.innerWidth,
@@ -330,53 +334,53 @@ const ft = (t = "") => "guid_" + (t || rt(6)) + ++ut, he = (t, e) => {
330
334
  }) => {
331
335
  let n = { left: t.left, top: t.top };
332
336
  return t.width > e.width || t.height > e.height || (t.width + t.left > e.width + e.left && (n.left = t.left - (t.width + t.left - (e.width + e.left))), t.height + t.top > e.height + e.top && (n.top = t.top - (t.height + t.top - (e.height + e.top))), t.left < e.left && (n.left = e.left), t.top < e.top && (n.top = e.top)), n;
333
- }, je = (t, e) => t.left <= e.left ? t.left + t.width >= e.left && (g(e.top, t.top, t.top + t.height) || g(e.top + e.height, t.top, t.top + t.height) || e.top >= t.top && e.height >= t.height) : e.left + e.width >= t.left && (g(t.top, e.top, e.top + e.height) || g(t.top + t.height, e.top, e.top + e.height) || t.top >= e.top && t.height >= e.height), Ge = (t) => t ? !!(t.tabIndex >= 0 || t instanceof HTMLAnchorElement && t.href || t instanceof HTMLButtonElement && !t.disabled || t instanceof HTMLInputElement && !t.disabled || t instanceof HTMLTextAreaElement && !t.disabled) : !1;
337
+ }, Ge = (t, e) => t.left <= e.left ? t.left + t.width >= e.left && (g(e.top, t.top, t.top + t.height) || g(e.top + e.height, t.top, t.top + t.height) || e.top >= t.top && e.height >= t.height) : e.left + e.width >= t.left && (g(t.top, e.top, e.top + e.height) || g(t.top + t.height, e.top, e.top + e.height) || t.top >= e.top && t.height >= e.height), ze = (t) => t ? !!(t.tabIndex >= 0 || t instanceof HTMLAnchorElement && t.href || t instanceof HTMLButtonElement && !t.disabled || t instanceof HTMLInputElement && !t.disabled || t instanceof HTMLTextAreaElement && !t.disabled) : !1;
334
338
  let x = {};
335
- const ze = (t, e = !1) => (!e && t in x || (x[t] = new Promise((n, i) => {
339
+ const We = (t, e = !1) => (!e && t in x || (x[t] = new Promise((n, i) => {
336
340
  let r = document.createElement("link");
337
341
  r.rel = "stylesheet", r.href = t, r.onload = () => {
338
342
  n();
339
343
  }, r.onerror = () => {
340
344
  i();
341
345
  }, document.head.append(r);
342
- })), x[t]), We = (t, e = !1) => (!e && t in x || (x[t] = new Promise((n, i) => {
346
+ })), x[t]), Je = (t, e = !1) => (!e && t in x || (x[t] = new Promise((n, i) => {
343
347
  let r = document.createElement("script");
344
348
  r.src = t, r.onload = () => {
345
349
  n();
346
350
  }, r.onerror = () => {
347
351
  i();
348
352
  }, document.head.append(r);
349
- })), x[t]), Je = (t) => {
353
+ })), x[t]), Ke = (t) => {
350
354
  let e = t.style.visibility, n = t.style.display, i, r;
351
355
  return t.style.visibility = "hidden", t.style.display = "block", i = t.clientWidth, r = t.clientHeight, t.style.visibility = e, t.style.display = n, { width: i, height: r };
352
- }, xt = (t, e = "", n = document) => {
356
+ }, wt = (t, e = "", n = document) => {
353
357
  if (e && n.querySelector(`#${e}`))
354
358
  return n.querySelector(`#${e}`);
355
359
  let i = n.createElement("style");
356
360
  return n.head.appendChild(i), i.innerHTML = t, e && (i.id = e), i;
357
- }, Ke = (t, e) => g(t.top, e.top, e.top + e.height) && g(t.left, e.left, e.left + e.width) && //左上角
358
- g(t.top + t.height, e.top, e.top + e.height) && g(t.left + t.width, e.left, e.left + e.width), Ve = (t) => Math.pow(10, -t), Qe = (t, e) => {
361
+ }, Ve = (t, e) => g(t.top, e.top, e.top + e.height) && g(t.left, e.left, e.left + e.width) && //左上角
362
+ g(t.top + t.height, e.top, e.top + e.height) && g(t.left + t.width, e.left, e.left + e.width), Qe = (t) => Math.pow(10, -t), Ze = (t, e) => {
359
363
  try {
360
364
  return new URL(t, e).href;
361
365
  } catch {
362
366
  return t;
363
367
  }
364
- }, Ze = (t, e = null) => {
368
+ }, Xe = (t, e = null) => {
365
369
  let n = document.createElement("template");
366
370
  t = t.trim(), n.innerHTML = t;
367
371
  let i = [];
368
372
  return e ? n.content.childNodes.forEach((r) => {
369
373
  i.push(e.appendChild(r));
370
374
  }) : i = Array.from(n.content.childNodes), i.length === 1 ? i[0] : i;
371
- }, wt = (t, e = !1) => {
375
+ }, vt = (t, e = !1) => {
372
376
  if (!t)
373
377
  throw new Error("el is null");
374
378
  const n = t.getBoundingClientRect();
375
379
  if (e && !n.height) {
376
380
  const i = t.style.visibility, r = t.style.display;
377
381
  t.style.visibility = "hidden", t.style.display = "block";
378
- const l = wt(t);
379
- return t.style.visibility = i, t.style.display = r, l;
382
+ const a = vt(t);
383
+ return t.style.visibility = i, t.style.display = r, a;
380
384
  }
381
385
  return {
382
386
  top: n.top,
@@ -386,17 +390,23 @@ g(t.top + t.height, e.top, e.top + e.height) && g(t.left + t.width, e.left, e.le
386
390
  width: n.width,
387
391
  height: n.height
388
392
  };
389
- }, Xe = (t) => {
393
+ }, tn = (t) => {
390
394
  let e = {};
391
395
  for (let n in t) {
392
396
  const i = t[n];
393
397
  i != null && (e[`--${n}`] = `${i}`);
394
398
  }
395
399
  return e;
396
- }, tn = (t) => t.replace(/[\\/:*?"<>|]/g, "_").replace(/[\0-\x1F]/g, "_").replace(/\s+/g, " ").replace(/^\.+/, "").replace(/\.+$/, "").trim(), I = (t) => new Promise((e, n) => {
400
+ }, D = new EventTarget(), en = (t, e) => {
401
+ D.addEventListener(t, e);
402
+ }, nn = (t, e) => {
403
+ D.removeEventListener(t, e);
404
+ }, rn = (t, e = null) => {
405
+ D.dispatchEvent(new CustomEvent(t, { detail: e }));
406
+ }, on = (t) => t.replace(/[\\/:*?"<>|]/g, "_").replace(/[\0-\x1F]/g, "_").replace(/\s+/g, " ").replace(/^\.+/, "").replace(/\.+$/, "").trim(), L = (t) => new Promise((e, n) => {
397
407
  const i = new FileReader();
398
408
  i.onload = () => e(i.result), i.onerror = (r) => n(r), i.readAsDataURL(t);
399
- }), L = {}, H = (t, e = null) => e !== null ? (L[t] = e, null) : L[t] || null, en = async (t) => {
409
+ }), H = {}, F = (t, e = null) => e !== null ? (H[t] = e, null) : H[t] || null, an = async (t) => {
400
410
  if (!t)
401
411
  return null;
402
412
  if (typeof t == "string" && t.startsWith("data:"))
@@ -407,16 +417,16 @@ g(t.top + t.height, e.top, e.top + e.height) && g(t.left + t.width, e.left, e.le
407
417
  if (!e.ok)
408
418
  throw new Error(`Fetch failed: ${e.status}`);
409
419
  const n = await e.blob();
410
- return await I(n);
420
+ return await L(n);
411
421
  }
412
- return t instanceof Blob ? await I(t) : null;
422
+ return t instanceof Blob ? await L(t) : null;
413
423
  } catch (e) {
414
424
  return console.warn("file2Base64DataURL failed:", e), null;
415
425
  }
416
- }, nn = (t, e) => {
426
+ }, ln = (t, e) => {
417
427
  const n = document.createElement("a");
418
428
  n.rel = "noopener noreferrer", n.href = t, n.download = e, document.body.appendChild(n), n.click(), document.body.removeChild(n);
419
- }, j = [
429
+ }, G = [
420
430
  "ADDRESS",
421
431
  "ARTICLE",
422
432
  "ASIDE",
@@ -451,7 +461,7 @@ g(t.top + t.height, e.top, e.top + e.height) && g(t.left + t.width, e.left, e.le
451
461
  "TFOOT",
452
462
  "UL",
453
463
  "VIDEO"
454
- ], rn = [
464
+ ], sn = [
455
465
  "A",
456
466
  "ABBR",
457
467
  "ACRONYM",
@@ -484,10 +494,10 @@ g(t.top + t.height, e.top, e.top + e.height) && g(t.left + t.width, e.left, e.le
484
494
  "TT",
485
495
  "U",
486
496
  "VAR"
487
- ].concat(...j), on = ["AREA", "BASE", "BR", "COL", "EMBED", "HR", "IMG", "INPUT", "LINK", "META", "PARAM", "SOURCE", "TRACK", "WBR"], vt = ["STYLE", "COMMENT", "SELECT", "OPTION", "SCRIPT", "TITLE", "HEAD", "BUTTON", "META", "LINK", "PARAM", "SOURCE"], an = (t) => (vt.forEach((n) => {
497
+ ].concat(...G), cn = ["AREA", "BASE", "BR", "COL", "EMBED", "HR", "IMG", "INPUT", "LINK", "META", "PARAM", "SOURCE", "TRACK", "WBR"], yt = ["STYLE", "COMMENT", "SELECT", "OPTION", "SCRIPT", "TITLE", "HEAD", "BUTTON", "META", "LINK", "PARAM", "SOURCE"], pn = (t) => (yt.forEach((n) => {
488
498
  t = t.replace(new RegExp(n, "ig"), "");
489
499
  }), t = t.replace(/[\r|\n]/g, ""), t = t.replace(/<(\w+)([^>]*)>/g, function(n, i, r) {
490
- return j.includes(i.toUpperCase()) ? `
500
+ return G.includes(i.toUpperCase()) ? `
491
501
  ` : "";
492
502
  }), t = t.replace(/<\/(\w+)([^>]*)>/g, function(n, i, r) {
493
503
  return "";
@@ -501,23 +511,23 @@ g(t.top + t.height, e.top, e.top + e.height) && g(t.left + t.width, e.left, e.le
501
511
  t = t.replace(n, i);
502
512
  }), t = t.replace(/&#(\d+);/, function(n, i) {
503
513
  return String.fromCharCode(parseInt(i));
504
- }), t = t.replace(/&amp;/gi, "&"), t = t.trim(), t), ln = (t) => yt(t, 0, !1).replace(/\n/g, "<br/>"), sn = (t) => window.CSS && CSS.escape ? CSS.escape(t) : t.replace(/[!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~]/g, "\\$&"), cn = (t) => {
514
+ }), t = t.replace(/&amp;/gi, "&"), t = t.trim(), t), un = (t) => Et(t, 0, !1).replace(/\n/g, "<br/>"), fn = (t) => window.CSS && CSS.escape ? CSS.escape(t) : t.replace(/[!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~]/g, "\\$&"), dn = (t) => {
505
515
  let e = t.split(";");
506
516
  return e.pop(), e.map((n) => String.fromCharCode(n[2] === "x" ? parseInt(n.slice(3), 16) : parseInt(n.slice(2)))).join("");
507
517
  };
508
518
  let y;
509
- const pn = (t) => (y || (y = document.createElement("div")), t = t.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim, ""), t = t.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim, ""), y.innerHTML = t, t = y.textContent || "", y.textContent = "", t), un = (t) => {
519
+ const mn = (t) => (y || (y = document.createElement("div")), t = t.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim, ""), t = t.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim, ""), y.innerHTML = t, t = y.textContent || "", y.textContent = "", t), hn = (t) => {
510
520
  let e = "";
511
521
  for (let n in t) {
512
522
  let i = t[n] === null ? "" : t[n];
513
- e += `<input type="hidden" name="${F(n)}" value="${F(i)}"/>`;
523
+ e += `<input type="hidden" name="${P(n)}" value="${P(i)}"/>`;
514
524
  }
515
525
  return e;
516
- }, yt = (t, e = 2, n = !0) => {
526
+ }, Et = (t, e = 2, n = !0) => {
517
527
  let i = String(t).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
518
528
  return n && (i = i.replace(/[\r\n]/g, "<br/>")), e && (i = i.replace(/\t/g, "&nbsp;".repeat(e))), i = i.replace(/\s/g, "&nbsp;"), i;
519
- }, fn = (t) => String(t).replace(/&quot;/g, '"').replace(/&#39;/g, "'").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&nbsp;/g, " ").replace(/&amp;/g, "&").replace(/<br.*>/, `
520
- `), mn = (t) => {
529
+ }, gn = (t) => String(t).replace(/&quot;/g, '"').replace(/&#39;/g, "'").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&nbsp;/g, " ").replace(/&amp;/g, "&").replace(/<br.*>/, `
530
+ `), xn = (t) => {
521
531
  if (!t)
522
532
  return "";
523
533
  let e = t;
@@ -526,20 +536,20 @@ const pn = (t) => (y || (y = document.createElement("div")), t = t.replace(/<scr
526
536
  `);
527
537
  if (i.length < 2) return n;
528
538
  let r = "<table>";
529
- return i.forEach((l, p) => {
530
- const o = l.split("|").slice(1, -1);
539
+ return i.forEach((a, p) => {
540
+ const o = a.split("|").slice(1, -1);
531
541
  if (/^\s*-+\s*$/.test(o[0])) return;
532
542
  const s = p === 0 ? "th" : "td";
533
- r += "<tr>", o.forEach((a) => {
534
- r += `<${s}>${a.trim()}</${s}>`;
543
+ r += "<tr>", o.forEach((l) => {
544
+ r += `<${s}>${l.trim()}</${s}>`;
535
545
  }), r += "</tr>";
536
546
  }), r += "</table>", r;
537
547
  }), e = e.replace(/^\s*-\s+(.*)/gim, "<li>$1</li>"), e = e.replace(/(<li>.*<\/li>)/gims, "<ul>$1</ul>"), e = e.replace(/\n/g, "<br />"), e.trim();
538
- }, F = (t, e = "") => (e = e ? "&#13;" : `
539
- `, ("" + t).replace(/&/g, "&amp;").replace(/'/g, "&apos;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\r\n/g, e).replace(/[\r\n]/g, e)), dn = (t, e) => {
548
+ }, P = (t, e = "") => (e = e ? "&#13;" : `
549
+ `, ("" + t).replace(/&/g, "&amp;").replace(/'/g, "&apos;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\r\n/g, e).replace(/[\r\n]/g, e)), wn = (t, e) => {
540
550
  let n = t.split("");
541
551
  return e = e || 0, n.map((i) => `&#${e ? "x" + i.charCodeAt(0).toString(16) : i.charCodeAt(0)};`).join("");
542
- }, hn = (t, e, n = '<span class="matched">%s</span>') => e ? t.replace(new RegExp(_(e), "ig"), (i) => n.replace("%s", i)) : t, gn = (t) => {
552
+ }, vn = (t, e, n = '<span class="matched">%s</span>') => e ? t.replace(new RegExp(_(e), "ig"), (i) => n.replace("%s", i)) : t, yn = (t) => {
543
553
  if (!t.src)
544
554
  return null;
545
555
  if (t.src.indexOf("data:") === 0)
@@ -548,18 +558,18 @@ const pn = (t) => (y || (y = document.createElement("div")), t = t.replace(/<scr
548
558
  e.width = t.width, e.height = t.height;
549
559
  let n = e.getContext("2d");
550
560
  return n ? (n.drawImage(t, 0, 0, t.width, t.height), e.toDataURL("image/png")) : null;
551
- }, xn = (t, e = !1) => new Promise((n, i) => {
561
+ }, En = (t, e = !1) => new Promise((n, i) => {
552
562
  if (e) {
553
- const l = H(t);
554
- if (l)
555
- return n(l);
563
+ const a = F(t);
564
+ if (a)
565
+ return n(a);
556
566
  }
557
567
  let r = new XMLHttpRequest();
558
568
  r.open("GET", t, !0), r.responseType = "blob", r.onload = function() {
559
569
  if (this.status === 200) {
560
- let l = this.response;
561
- at(l).then((p) => {
562
- e && H(t, p), n(p);
570
+ let a = this.response;
571
+ lt(a).then((p) => {
572
+ e && F(t, p), n(p);
563
573
  }).catch((p) => {
564
574
  i(p);
565
575
  });
@@ -572,13 +582,13 @@ const pn = (t) => (y || (y = document.createElement("div")), t = t.replace(/<scr
572
582
  }), w = (t, e) => {
573
583
  let n = (t & 65535) + (e & 65535);
574
584
  return (t >> 16) + (e >> 16) + (n >> 16) << 16 | n & 65535;
575
- }, bt = (t, e) => t << e | t >>> 32 - e, M = (t, e, n, i, r, l) => w(bt(w(w(e, t), w(i, l)), r), n), u = (t, e, n, i, r, l, p) => M(e & n | ~e & i, t, e, r, l, p), f = (t, e, n, i, r, l, p) => M(e & i | n & ~i, t, e, r, l, p), m = (t, e, n, i, r, l, p) => M(e ^ n ^ i, t, e, r, l, p), d = (t, e, n, i, r, l, p) => M(n ^ (e | ~i), t, e, r, l, p), T = (t, e) => {
585
+ }, bt = (t, e) => t << e | t >>> 32 - e, M = (t, e, n, i, r, a) => w(bt(w(w(e, t), w(i, a)), r), n), u = (t, e, n, i, r, a, p) => M(e & n | ~e & i, t, e, r, a, p), f = (t, e, n, i, r, a, p) => M(e & i | n & ~i, t, e, r, a, p), d = (t, e, n, i, r, a, p) => M(e ^ n ^ i, t, e, r, a, p), m = (t, e, n, i, r, a, p) => M(n ^ (e | ~i), t, e, r, a, p), A = (t, e) => {
576
586
  t[e >> 5] |= 128 << e % 32, t[(e + 64 >>> 9 << 4) + 14] = e;
577
- let n, i, r, l, p, o = 1732584193, s = -271733879, a = -1732584194, c = 271733878;
587
+ let n, i, r, a, p, o = 1732584193, s = -271733879, l = -1732584194, c = 271733878;
578
588
  for (n = 0; n < t.length; n += 16)
579
- i = o, r = s, l = a, p = c, o = u(o, s, a, c, t[n], 7, -680876936), c = u(c, o, s, a, t[n + 1], 12, -389564586), a = u(a, c, o, s, t[n + 2], 17, 606105819), s = u(s, a, c, o, t[n + 3], 22, -1044525330), o = u(o, s, a, c, t[n + 4], 7, -176418897), c = u(c, o, s, a, t[n + 5], 12, 1200080426), a = u(a, c, o, s, t[n + 6], 17, -1473231341), s = u(s, a, c, o, t[n + 7], 22, -45705983), o = u(o, s, a, c, t[n + 8], 7, 1770035416), c = u(c, o, s, a, t[n + 9], 12, -1958414417), a = u(a, c, o, s, t[n + 10], 17, -42063), s = u(s, a, c, o, t[n + 11], 22, -1990404162), o = u(o, s, a, c, t[n + 12], 7, 1804603682), c = u(c, o, s, a, t[n + 13], 12, -40341101), a = u(a, c, o, s, t[n + 14], 17, -1502002290), s = u(s, a, c, o, t[n + 15], 22, 1236535329), o = f(o, s, a, c, t[n + 1], 5, -165796510), c = f(c, o, s, a, t[n + 6], 9, -1069501632), a = f(a, c, o, s, t[n + 11], 14, 643717713), s = f(s, a, c, o, t[n], 20, -373897302), o = f(o, s, a, c, t[n + 5], 5, -701558691), c = f(c, o, s, a, t[n + 10], 9, 38016083), a = f(a, c, o, s, t[n + 15], 14, -660478335), s = f(s, a, c, o, t[n + 4], 20, -405537848), o = f(o, s, a, c, t[n + 9], 5, 568446438), c = f(c, o, s, a, t[n + 14], 9, -1019803690), a = f(a, c, o, s, t[n + 3], 14, -187363961), s = f(s, a, c, o, t[n + 8], 20, 1163531501), o = f(o, s, a, c, t[n + 13], 5, -1444681467), c = f(c, o, s, a, t[n + 2], 9, -51403784), a = f(a, c, o, s, t[n + 7], 14, 1735328473), s = f(s, a, c, o, t[n + 12], 20, -1926607734), o = m(o, s, a, c, t[n + 5], 4, -378558), c = m(c, o, s, a, t[n + 8], 11, -2022574463), a = m(a, c, o, s, t[n + 11], 16, 1839030562), s = m(s, a, c, o, t[n + 14], 23, -35309556), o = m(o, s, a, c, t[n + 1], 4, -1530992060), c = m(c, o, s, a, t[n + 4], 11, 1272893353), a = m(a, c, o, s, t[n + 7], 16, -155497632), s = m(s, a, c, o, t[n + 10], 23, -1094730640), o = m(o, s, a, c, t[n + 13], 4, 681279174), c = m(c, o, s, a, t[n], 11, -358537222), a = m(a, c, o, s, t[n + 3], 16, -722521979), s = m(s, a, c, o, t[n + 6], 23, 76029189), o = m(o, s, a, c, t[n + 9], 4, -640364487), c = m(c, o, s, a, t[n + 12], 11, -421815835), a = m(a, c, o, s, t[n + 15], 16, 530742520), s = m(s, a, c, o, t[n + 2], 23, -995338651), o = d(o, s, a, c, t[n], 6, -198630844), c = d(c, o, s, a, t[n + 7], 10, 1126891415), a = d(a, c, o, s, t[n + 14], 15, -1416354905), s = d(s, a, c, o, t[n + 5], 21, -57434055), o = d(o, s, a, c, t[n + 12], 6, 1700485571), c = d(c, o, s, a, t[n + 3], 10, -1894986606), a = d(a, c, o, s, t[n + 10], 15, -1051523), s = d(s, a, c, o, t[n + 1], 21, -2054922799), o = d(o, s, a, c, t[n + 8], 6, 1873313359), c = d(c, o, s, a, t[n + 15], 10, -30611744), a = d(a, c, o, s, t[n + 6], 15, -1560198380), s = d(s, a, c, o, t[n + 13], 21, 1309151649), o = d(o, s, a, c, t[n + 4], 6, -145523070), c = d(c, o, s, a, t[n + 11], 10, -1120210379), a = d(a, c, o, s, t[n + 2], 15, 718787259), s = d(s, a, c, o, t[n + 9], 21, -343485551), o = w(o, i), s = w(s, r), a = w(a, l), c = w(c, p);
580
- return [o, s, a, c];
581
- }, G = (t) => {
589
+ i = o, r = s, a = l, p = c, o = u(o, s, l, c, t[n], 7, -680876936), c = u(c, o, s, l, t[n + 1], 12, -389564586), l = u(l, c, o, s, t[n + 2], 17, 606105819), s = u(s, l, c, o, t[n + 3], 22, -1044525330), o = u(o, s, l, c, t[n + 4], 7, -176418897), c = u(c, o, s, l, t[n + 5], 12, 1200080426), l = u(l, c, o, s, t[n + 6], 17, -1473231341), s = u(s, l, c, o, t[n + 7], 22, -45705983), o = u(o, s, l, c, t[n + 8], 7, 1770035416), c = u(c, o, s, l, t[n + 9], 12, -1958414417), l = u(l, c, o, s, t[n + 10], 17, -42063), s = u(s, l, c, o, t[n + 11], 22, -1990404162), o = u(o, s, l, c, t[n + 12], 7, 1804603682), c = u(c, o, s, l, t[n + 13], 12, -40341101), l = u(l, c, o, s, t[n + 14], 17, -1502002290), s = u(s, l, c, o, t[n + 15], 22, 1236535329), o = f(o, s, l, c, t[n + 1], 5, -165796510), c = f(c, o, s, l, t[n + 6], 9, -1069501632), l = f(l, c, o, s, t[n + 11], 14, 643717713), s = f(s, l, c, o, t[n], 20, -373897302), o = f(o, s, l, c, t[n + 5], 5, -701558691), c = f(c, o, s, l, t[n + 10], 9, 38016083), l = f(l, c, o, s, t[n + 15], 14, -660478335), s = f(s, l, c, o, t[n + 4], 20, -405537848), o = f(o, s, l, c, t[n + 9], 5, 568446438), c = f(c, o, s, l, t[n + 14], 9, -1019803690), l = f(l, c, o, s, t[n + 3], 14, -187363961), s = f(s, l, c, o, t[n + 8], 20, 1163531501), o = f(o, s, l, c, t[n + 13], 5, -1444681467), c = f(c, o, s, l, t[n + 2], 9, -51403784), l = f(l, c, o, s, t[n + 7], 14, 1735328473), s = f(s, l, c, o, t[n + 12], 20, -1926607734), o = d(o, s, l, c, t[n + 5], 4, -378558), c = d(c, o, s, l, t[n + 8], 11, -2022574463), l = d(l, c, o, s, t[n + 11], 16, 1839030562), s = d(s, l, c, o, t[n + 14], 23, -35309556), o = d(o, s, l, c, t[n + 1], 4, -1530992060), c = d(c, o, s, l, t[n + 4], 11, 1272893353), l = d(l, c, o, s, t[n + 7], 16, -155497632), s = d(s, l, c, o, t[n + 10], 23, -1094730640), o = d(o, s, l, c, t[n + 13], 4, 681279174), c = d(c, o, s, l, t[n], 11, -358537222), l = d(l, c, o, s, t[n + 3], 16, -722521979), s = d(s, l, c, o, t[n + 6], 23, 76029189), o = d(o, s, l, c, t[n + 9], 4, -640364487), c = d(c, o, s, l, t[n + 12], 11, -421815835), l = d(l, c, o, s, t[n + 15], 16, 530742520), s = d(s, l, c, o, t[n + 2], 23, -995338651), o = m(o, s, l, c, t[n], 6, -198630844), c = m(c, o, s, l, t[n + 7], 10, 1126891415), l = m(l, c, o, s, t[n + 14], 15, -1416354905), s = m(s, l, c, o, t[n + 5], 21, -57434055), o = m(o, s, l, c, t[n + 12], 6, 1700485571), c = m(c, o, s, l, t[n + 3], 10, -1894986606), l = m(l, c, o, s, t[n + 10], 15, -1051523), s = m(s, l, c, o, t[n + 1], 21, -2054922799), o = m(o, s, l, c, t[n + 8], 6, 1873313359), c = m(c, o, s, l, t[n + 15], 10, -30611744), l = m(l, c, o, s, t[n + 6], 15, -1560198380), s = m(s, l, c, o, t[n + 13], 21, 1309151649), o = m(o, s, l, c, t[n + 4], 6, -145523070), c = m(c, o, s, l, t[n + 11], 10, -1120210379), l = m(l, c, o, s, t[n + 2], 15, 718787259), s = m(s, l, c, o, t[n + 9], 21, -343485551), o = w(o, i), s = w(s, r), l = w(l, a), c = w(c, p);
590
+ return [o, s, l, c];
591
+ }, z = (t) => {
582
592
  let e, n = "", i = t.length * 32;
583
593
  for (e = 0; e < i; e += 8)
584
594
  n += String.fromCharCode(t[e >> 5] >>> e % 32 & 255);
@@ -591,17 +601,17 @@ const pn = (t) => (y || (y = document.createElement("div")), t = t.replace(/<scr
591
601
  for (e = 0; e < i; e += 8)
592
602
  n[e >> 5] |= (t.charCodeAt(e / 8) & 255) << e % 32;
593
603
  return n;
594
- }, Et = (t) => G(T(N(t), t.length * 8)), At = (t, e) => {
595
- let n, i = N(t), r = [], l = [], p;
596
- for (r[15] = l[15] = void 0, i.length > 16 && (i = T(i, t.length * 8)), n = 0; n < 16; n += 1)
597
- r[n] = i[n] ^ 909522486, l[n] = i[n] ^ 1549556828;
598
- return p = T(r.concat(N(e)), 512 + e.length * 8), G(T(l.concat(p), 640));
599
- }, z = (t) => {
604
+ }, Tt = (t) => z(A(N(t), t.length * 8)), At = (t, e) => {
605
+ let n, i = N(t), r = [], a = [], p;
606
+ for (r[15] = a[15] = void 0, i.length > 16 && (i = A(i, t.length * 8)), n = 0; n < 16; n += 1)
607
+ r[n] = i[n] ^ 909522486, a[n] = i[n] ^ 1549556828;
608
+ return p = A(r.concat(N(e)), 512 + e.length * 8), z(A(a.concat(p), 640));
609
+ }, W = (t) => {
600
610
  let e = "0123456789abcdef", n = "", i, r;
601
611
  for (r = 0; r < t.length; r += 1)
602
612
  i = t.charCodeAt(r), n += e.charAt(i >>> 4 & 15) + e.charAt(i & 15);
603
613
  return n;
604
- }, O = (t) => unescape(encodeURIComponent(t)), W = (t) => Et(O(t)), Tt = (t) => z(W(t)), J = (t, e) => At(O(t), O(e)), Mt = (t, e) => z(J(t, e)), wn = (t, e, n) => e ? n ? J(e, t) : Mt(e, t) : n ? W(t) : Tt(t), vn = "application/octet-stream", b = "application/json", St = "application/x-www-form-urlencoded", Ct = "multipart/form-data", yn = "text/plain", bn = "text/html", En = {
614
+ }, O = (t) => unescape(encodeURIComponent(t)), J = (t) => Tt(O(t)), Mt = (t) => W(J(t)), K = (t, e) => At(O(t), O(e)), St = (t, e) => W(K(t, e)), bn = (t, e, n) => e ? n ? K(e, t) : St(e, t) : n ? J(t) : Mt(t), Tn = "application/octet-stream", E = "application/json", Ct = "application/x-www-form-urlencoded", _t = "multipart/form-data", An = "text/plain", Mn = "text/html", Sn = {
605
615
  323: "text/h323",
606
616
  accdb: "application/msaccess",
607
617
  accde: "application/msaccess",
@@ -898,16 +908,16 @@ const pn = (t) => (y || (y = document.createElement("div")), t = t.replace(/<scr
898
908
  xwd: "image/x-xwindowdump",
899
909
  z: "application/x-compress",
900
910
  zip: "application/x-zip-compressed"
901
- }, K = (t) => {
911
+ }, V = (t) => {
902
912
  const e = {};
903
913
  return t.replace(/^\?/, "").split("&").forEach((n) => {
904
914
  const [i, r] = n.split("=");
905
915
  i && (e[decodeURIComponent(i)] = decodeURIComponent(r || ""));
906
916
  }), e;
907
- }, _t = (t, e) => {
908
- const [n, i] = t.split("?"), l = { ...i ? K(i) : {}, ...e }, p = V(l);
917
+ }, Nt = (t, e) => {
918
+ const [n, i] = t.split("?"), a = { ...i ? V(i) : {}, ...e }, p = Q(a);
909
919
  return `${n}?${p}`;
910
- }, V = (t) => {
920
+ }, Q = (t) => {
911
921
  if (typeof t > "u" || typeof t != "object")
912
922
  return t;
913
923
  let e = [];
@@ -920,35 +930,35 @@ const pn = (t) => (y || (y = document.createElement("div")), t = t.replace(/<scr
920
930
  }) : typeof t[n] == "object" || e.push(encodeURI(n + "=" + t[n]));
921
931
  }
922
932
  return e.join("&");
923
- }, Nt = (t, e = {}, n = 0) => {
933
+ }, Ot = (t, e = {}, n = 0) => {
924
934
  const i = new AbortController();
925
935
  let r = null;
926
936
  n && (r = setTimeout(() => i.abort(), n));
927
- const l = () => {
937
+ const a = () => {
928
938
  r !== null && (clearTimeout(r), r = null);
929
939
  }, p = (s) => {
930
- const a = s, c = a.then.bind(a), Z = a.catch.bind(a), X = a.finally.bind(a);
931
- return a.then = function(v, tt) {
932
- return p(c(v, tt));
933
- }, a.catch = function(v) {
934
- return p(Z(v));
935
- }, a.finally = function(v) {
940
+ const l = s, c = l.then.bind(l), X = l.catch.bind(l), tt = l.finally.bind(l);
941
+ return l.then = function(v, et) {
942
+ return p(c(v, et));
943
+ }, l.catch = function(v) {
936
944
  return p(X(v));
937
- }, a.abort = (v) => {
938
- l(), i.abort(v || "Request aborted by user");
939
- }, a;
945
+ }, l.finally = function(v) {
946
+ return p(tt(v));
947
+ }, l.abort = (v) => {
948
+ a(), i.abort(v || "Request aborted by user");
949
+ }, l;
940
950
  }, o = fetch(t, {
941
951
  ...e,
942
952
  signal: i.signal
943
- }).then((s) => (l(), s)).catch((s) => {
944
- throw l(), s;
953
+ }).then((s) => (a(), s)).catch((s) => {
954
+ throw a(), s;
945
955
  });
946
956
  return p(o);
947
- }, Ot = (t, e, n) => {
957
+ }, Dt = (t, e, n) => {
948
958
  if (e == null) return;
949
959
  const i = t.replace(/([A-Z])/g, "-$1").replace(/^-/, "").toLowerCase();
950
960
  n.set(i, String(e));
951
- }, Dt = (t) => [
961
+ }, Rt = (t) => [
952
962
  "method",
953
963
  "headers",
954
964
  "body",
@@ -962,17 +972,17 @@ const pn = (t) => (y || (y = document.createElement("div")), t = t.replace(/<scr
962
972
  "keepalive",
963
973
  "signal",
964
974
  "window"
965
- ].includes(t), D = (t, e = null, n) => {
975
+ ].includes(t), R = (t, e = null, n) => {
966
976
  let { timeout: i, ...r } = n;
967
977
  r = r || {}, r.method = r.method || "GET";
968
- const l = r.method.toUpperCase() === "GET", p = new Headers(r.headers || {});
978
+ const a = r.method.toUpperCase() === "GET", p = new Headers(r.headers || {});
969
979
  for (let o in r)
970
- Dt(o) || Ot(o, r[o], p);
971
- return l && e && (t = _t(t, typeof e == "string" ? K(e) : e), e = null), Nt(
980
+ Rt(o) || Dt(o, r[o], p);
981
+ return a && e && (t = Nt(t, typeof e == "string" ? V(e) : e), e = null), Ot(
972
982
  t,
973
983
  {
974
984
  headers: p,
975
- body: l ? void 0 : kt(e, p.get("content-type") || void 0),
985
+ body: a ? void 0 : It(e, p.get("content-type") || void 0),
976
986
  ...r
977
987
  },
978
988
  i
@@ -981,78 +991,78 @@ const pn = (t) => (y || (y = document.createElement("div")), t = t.replace(/<scr
981
991
  throw new Error(`HTTP error! status: ${o.status}`);
982
992
  return o;
983
993
  });
984
- }, Rt = (t) => typeof t == "string" || t instanceof FormData || t instanceof URLSearchParams || t instanceof Blob || t instanceof ArrayBuffer || ArrayBuffer.isView(t), kt = (t, e) => {
985
- if (Rt(t) || typeof t != "object")
994
+ }, kt = (t) => typeof t == "string" || t instanceof FormData || t instanceof URLSearchParams || t instanceof Blob || t instanceof ArrayBuffer || ArrayBuffer.isView(t), It = (t, e) => {
995
+ if (kt(t) || typeof t != "object")
986
996
  return t;
987
997
  switch (e == null ? void 0 : e.toLowerCase()) {
988
- case b:
998
+ case E:
989
999
  return JSON.stringify(t);
990
- case St:
991
1000
  case Ct:
1001
+ case _t:
992
1002
  default:
993
- return V(t);
1003
+ return Q(t);
994
1004
  }
995
- }, An = (t, e = null, n = {}) => D(t, e, { ...n, ContentType: b, Accept: b }).then((i) => i.json()), Tn = (t, e = null, n = {}) => D(t, e, { ...n, method: "POST", ContentType: b, Accept: b }).then((i) => i.json()), Mn = (t, e, n = null, i = {}) => {
1005
+ }, Cn = (t, e = null, n = {}) => R(t, e, { ...n, ContentType: E, Accept: E }).then((i) => i.json()), _n = (t, e = null, n = {}) => R(t, e, { ...n, method: "POST", ContentType: E, Accept: E }).then((i) => i.json()), Nn = (t, e, n = null, i = {}) => {
996
1006
  const r = new FormData();
997
- if (Object.keys(e).forEach((l) => {
998
- r.append(l, e[l], e[l].name);
1007
+ if (Object.keys(e).forEach((a) => {
1008
+ r.append(a, e[a], e[a].name);
999
1009
  }), n)
1000
- for (let l in n)
1001
- n.hasOwnProperty(l) && r.append(l, n[l]);
1002
- return D(t, r, { ...i, method: "POST" }).then((l) => l.json());
1010
+ for (let a in n)
1011
+ n.hasOwnProperty(a) && r.append(a, n[a]);
1012
+ return R(t, r, { ...i, method: "POST" }).then((a) => a.json());
1003
1013
  };
1004
- function P(t) {
1014
+ function U(t) {
1005
1015
  if (t === null || typeof t != "object") return t;
1006
1016
  if (t instanceof Date) return new Date(t.getTime());
1007
- if (t instanceof Array) return t.map((e) => P(e));
1017
+ if (t instanceof Array) return t.map((e) => U(e));
1008
1018
  if (t instanceof Object) {
1009
1019
  const e = {};
1010
1020
  for (const n in t)
1011
- t.hasOwnProperty(n) && (e[n] = P(t[n]));
1021
+ t.hasOwnProperty(n) && (e[n] = U(t[n]));
1012
1022
  return e;
1013
1023
  }
1014
1024
  return t;
1015
1025
  }
1016
- function Sn(t) {
1026
+ function On(t) {
1017
1027
  return Object.keys(t).length === 0;
1018
1028
  }
1019
- const Cn = (t, e) => {
1029
+ const Dn = (t, e) => {
1020
1030
  let n = {};
1021
1031
  for (let i in t)
1022
1032
  e[i] !== void 0 ? n[e[i]] = t[i] : n[i] = t[i];
1023
1033
  return n;
1024
1034
  };
1025
- function _n(t, e, n) {
1035
+ function Rn(t, e, n) {
1026
1036
  const i = e.split(".");
1027
1037
  let r = t;
1028
- for (const l of i) {
1038
+ for (const a of i) {
1029
1039
  if (r == null)
1030
1040
  return n;
1031
- r = r[l];
1041
+ r = r[a];
1032
1042
  }
1033
1043
  return r !== void 0 ? r : n;
1034
1044
  }
1035
- function Nn(t, e, n) {
1045
+ function kn(t, e, n) {
1036
1046
  const i = e.split("."), r = i.pop();
1037
- let l = t;
1047
+ let a = t;
1038
1048
  for (const p of i)
1039
- (!(p in l) || typeof l[p] != "object") && (l[p] = {}), l = l[p];
1040
- l[r] = n;
1049
+ (!(p in a) || typeof a[p] != "object") && (a[p] = {}), a = a[p];
1050
+ a[r] = n;
1041
1051
  }
1042
- function It(t, ...e) {
1052
+ function Lt(t, ...e) {
1043
1053
  for (const n of e)
1044
1054
  for (const i in n)
1045
1055
  if (n.hasOwnProperty(i)) {
1046
- const r = n[i], l = t[i];
1047
- r && typeof r == "object" && !Array.isArray(r) && l && typeof l == "object" && !Array.isArray(l) ? t[i] = It(l, r) : t[i] = r;
1056
+ const r = n[i], a = t[i];
1057
+ r && typeof r == "object" && !Array.isArray(r) && a && typeof a == "object" && !Array.isArray(a) ? t[i] = Lt(a, r) : t[i] = r;
1048
1058
  }
1049
1059
  return t;
1050
1060
  }
1051
- const Lt = (t, e = !1) => {
1061
+ const Ht = (t, e = !1) => {
1052
1062
  for (const n in t)
1053
- t[n] === null ? delete t[n] : e && typeof t[n] == "object" && Lt(t[n], !0);
1063
+ t[n] === null ? delete t[n] : e && typeof t[n] == "object" && Ht(t[n], !0);
1054
1064
  return t;
1055
- }, On = (/* @__PURE__ */ new Date()).getFullYear(), Dn = (/* @__PURE__ */ new Date()).getMonth() + 1, Rn = (/* @__PURE__ */ new Date()).getDate(), kn = 60 * 1e3, In = 60 * 60 * 1e3, A = 24 * 60 * 60 * 1e3, Ln = 7 * A, Hn = 30 * A, Fn = 31 * A, Pn = 365 * A, Un = 366 * A, $n = 0, Bn = 1, qn = 2, Yn = 3, jn = 4, Gn = 5, zn = 6, Ht = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], Ft = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], Pt = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], Ut = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], Wn = ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"], Jn = ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"], Kn = ["日", "一", "二", "三", "四", "五", "六"], Vn = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], Qn = (t, e, n) => {
1065
+ }, In = (/* @__PURE__ */ new Date()).getFullYear(), Ln = (/* @__PURE__ */ new Date()).getMonth() + 1, Hn = (/* @__PURE__ */ new Date()).getDate(), Fn = 60 * 1e3, Pn = 60 * 60 * 1e3, T = 24 * 60 * 60 * 1e3, Un = 7 * T, $n = 30 * T, Bn = 31 * T, qn = 365 * T, Yn = 366 * T, jn = 0, Gn = 1, zn = 2, Wn = 3, Jn = 4, Kn = 5, Vn = 6, Ft = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], Pt = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], Ut = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], $t = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], Qn = ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"], Zn = ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"], Xn = ["日", "一", "二", "三", "四", "五", "六"], ti = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], ei = (t, e, n) => {
1056
1066
  let i = () => {
1057
1067
  if (e && e(t), t-- > 0) {
1058
1068
  setTimeout(i, 1e3);
@@ -1061,21 +1071,21 @@ const Lt = (t, e = !1) => {
1061
1071
  n && n();
1062
1072
  };
1063
1073
  i();
1064
- }, Zn = (t) => {
1074
+ }, ni = (t) => {
1065
1075
  if (!t || t < 10)
1066
1076
  return "刚刚";
1067
1077
  t = Math.floor(t / 1e3);
1068
1078
  const e = Math.floor(t / 3600), n = Math.floor(t % 3600 / 60), i = t % 60;
1069
1079
  let r = "";
1070
1080
  return e > 0 && (r += e + "小时"), (n > 0 || e > 0) && (r += n + "分钟"), r += i + "秒前", r;
1071
- }, U = {
1081
+ }, $ = {
1072
1082
  d: (t) => {
1073
1083
  let e = t.getDate();
1074
1084
  return (e < 10 ? "0" : "") + e;
1075
1085
  },
1076
- D: (t) => Ft[t.getDay()],
1086
+ D: (t) => Pt[t.getDay()],
1077
1087
  j: (t) => t.getDate(),
1078
- l: (t) => Ht[t.getDay()],
1088
+ l: (t) => Ft[t.getDay()],
1079
1089
  N: (t) => {
1080
1090
  let e = t.getDay();
1081
1091
  return e === 0 ? 7 : e;
@@ -1099,12 +1109,12 @@ const Lt = (t, e = !1) => {
1099
1109
  return r < 10 ? "0" + r : r;
1100
1110
  },
1101
1111
  // Month
1102
- F: (t) => Pt[t.getMonth()],
1112
+ F: (t) => Ut[t.getMonth()],
1103
1113
  m: (t) => {
1104
1114
  let e = t.getMonth();
1105
1115
  return (e < 9 ? "0" : "") + (e + 1);
1106
1116
  },
1107
- M: (t) => Ut[t.getMonth()],
1117
+ M: (t) => $t[t.getMonth()],
1108
1118
  n: (t) => t.getMonth() + 1,
1109
1119
  t: (t) => {
1110
1120
  let e = t.getFullYear(), n = t.getMonth() + 1;
@@ -1175,185 +1185,188 @@ const Lt = (t, e = !1) => {
1175
1185
  },
1176
1186
  Z: (t) => -t.getTimezoneOffset() * 60,
1177
1187
  // Full Date/Time
1178
- c: (t) => Q("Y-m-d\\TH:i:sP", t),
1188
+ c: (t) => Z("Y-m-d\\TH:i:sP", t),
1179
1189
  r: (t) => t.toString(),
1180
1190
  U: (t) => Math.floor(t.getTime() / 1e3)
1181
- }, Q = function(t, e = null) {
1191
+ }, Z = function(t, e = null) {
1182
1192
  let n = null;
1183
- return typeof e == "object" && e !== null ? n = e : n = new Date(e || Date.now()), t.replace(/(\\?)(.)/g, function(i, r, l) {
1184
- return r === "" && U[l] ? String(U[l](n)) : l;
1193
+ return typeof e == "object" && e !== null ? n = e : n = new Date(e || Date.now()), t.replace(/(\\?)(.)/g, function(i, r, a) {
1194
+ return r === "" && $[a] ? String($[a](n)) : a;
1185
1195
  });
1186
- }, Xn = (t) => Q("W", t);
1196
+ }, ii = (t) => Z("W", t);
1187
1197
  export {
1188
- j as BLOCK_TAGS,
1189
- se as Base64Encode,
1190
- Rn as DATE_NOW,
1191
- Gn as DAY_FRIDAY,
1192
- Bn as DAY_MONDAY,
1193
- zn as DAY_SATURDAY,
1194
- $n as DAY_SUNDAY,
1195
- jn as DAY_THURSDAY,
1196
- qn as DAY_TUESDAY,
1197
- Yn as DAY_WEDNESDAY,
1198
- Te as GOLDEN_RATIO,
1199
- vn as MIME_BINARY_DEFAULT,
1200
- En as MIME_EXTENSION_MAP,
1201
- St as MIME_FORM,
1202
- bn as MIME_HTML,
1203
- b as MIME_JSON,
1204
- Ct as MIME_MULTIPART,
1205
- yn as MIME_TEXT,
1206
- Wn as MONTH_NAMES_CN,
1207
- Pt as MONTH_NAMES_EN,
1208
- Jn as MONTH_NAMES_SHORT_CN,
1209
- Ut as MONTH_NAMES_SHORT_EN,
1210
- Dn as MONTH_NOW,
1211
- A as ONE_DAY,
1212
- In as ONE_HOUR,
1213
- kn as ONE_MINUTE,
1214
- Hn as ONE_MONTH30,
1215
- Fn as ONE_MONTH31,
1216
- Ln as ONE_WEEK,
1217
- Pn as ONE_YEAR365,
1218
- Un as ONE_YEAR366,
1219
- rn as PAIR_TAGS,
1220
- vt as REMOVABLE_TAGS,
1221
- on as SELF_CLOSING_TAGS,
1222
- B as STAND_DPI,
1223
- R as TRIM_BOTH,
1224
- k as TRIM_LEFT,
1225
- ot as TRIM_RIGHT,
1226
- Vn as WEEK_DAY_NAMES_CN,
1227
- Ht as WEEK_DAY_NAMES_EN,
1228
- Kn as WEEK_DAY_NAMES_SHORT_CN,
1229
- Ft as WEEK_DAY_NAMES_SHORT_EN,
1230
- On as YEAR_NOW,
1231
- Nt as abortableFetch,
1232
- Gt as arrayChunk,
1233
- $t as arrayColumn,
1234
- qt as arrayDistinct,
1235
- Yt as arrayGroup,
1236
- Bt as arrayIndex,
1237
- jt as arraySortByKey,
1238
- zt as arrayTrimTail,
1239
- ae as base64Decode,
1240
- le as base64UrlSafeEncode,
1198
+ G as BLOCK_TAGS,
1199
+ ce as Base64Encode,
1200
+ Hn as DATE_NOW,
1201
+ Kn as DAY_FRIDAY,
1202
+ Gn as DAY_MONDAY,
1203
+ Vn as DAY_SATURDAY,
1204
+ jn as DAY_SUNDAY,
1205
+ Jn as DAY_THURSDAY,
1206
+ zn as DAY_TUESDAY,
1207
+ Wn as DAY_WEDNESDAY,
1208
+ Me as GOLDEN_RATIO,
1209
+ Tn as MIME_BINARY_DEFAULT,
1210
+ Sn as MIME_EXTENSION_MAP,
1211
+ Ct as MIME_FORM,
1212
+ Mn as MIME_HTML,
1213
+ E as MIME_JSON,
1214
+ _t as MIME_MULTIPART,
1215
+ An as MIME_TEXT,
1216
+ Qn as MONTH_NAMES_CN,
1217
+ Ut as MONTH_NAMES_EN,
1218
+ Zn as MONTH_NAMES_SHORT_CN,
1219
+ $t as MONTH_NAMES_SHORT_EN,
1220
+ Ln as MONTH_NOW,
1221
+ T as ONE_DAY,
1222
+ Pn as ONE_HOUR,
1223
+ Fn as ONE_MINUTE,
1224
+ $n as ONE_MONTH30,
1225
+ Bn as ONE_MONTH31,
1226
+ Un as ONE_WEEK,
1227
+ qn as ONE_YEAR365,
1228
+ Yn as ONE_YEAR366,
1229
+ sn as PAIR_TAGS,
1230
+ yt as REMOVABLE_TAGS,
1231
+ cn as SELF_CLOSING_TAGS,
1232
+ q as STAND_DPI,
1233
+ k as TRIM_BOTH,
1234
+ I as TRIM_LEFT,
1235
+ at as TRIM_RIGHT,
1236
+ ti as WEEK_DAY_NAMES_CN,
1237
+ Ft as WEEK_DAY_NAMES_EN,
1238
+ Xn as WEEK_DAY_NAMES_SHORT_CN,
1239
+ Pt as WEEK_DAY_NAMES_SHORT_EN,
1240
+ In as YEAR_NOW,
1241
+ Ot as abortableFetch,
1242
+ zt as arrayChunk,
1243
+ Bt as arrayColumn,
1244
+ Yt as arrayDistinct,
1245
+ jt as arrayGroup,
1246
+ qt as arrayIndex,
1247
+ Gt as arraySortByKey,
1248
+ Wt as arrayTrimTail,
1249
+ le as base64Decode,
1250
+ se as base64UrlSafeEncode,
1241
1251
  g as between,
1242
- at as blobToBase64,
1243
- I as blobToDataUri,
1244
- un as buildHtmlHidden,
1245
- Xe as buildStyleVars,
1246
- Qt as camelCase,
1247
- et as capitalize,
1248
- Lt as cleanNull,
1249
- Qn as countDown,
1250
- Ze as createDomByHtml,
1251
- sn as cssSelectorEscape,
1252
- Kt as cutString,
1253
- xe as debounce,
1254
- pn as decodeHTMLEntities,
1255
- P as deepClone,
1252
+ lt as blobToBase64,
1253
+ L as blobToDataUri,
1254
+ hn as buildHtmlHidden,
1255
+ tn as buildStyleVars,
1256
+ Zt as camelCase,
1257
+ nt as capitalize,
1258
+ Ht as cleanNull,
1259
+ ei as countDown,
1260
+ Xe as createDomByHtml,
1261
+ fn as cssSelectorEscape,
1262
+ Vt as cutString,
1263
+ we as debounce,
1264
+ mn as decodeHTMLEntities,
1265
+ U as deepClone,
1256
1266
  S as deleteCookie,
1257
- de as deleteCookieAllPaths,
1258
- pe as detectLanguage,
1259
- ke as detectedPrecision,
1260
- Ie as digitCount,
1261
- dt as disabled,
1262
- nn as downloadFile,
1263
- ht as enabled,
1264
- st as enterFullScreen,
1265
- cn as entityToString,
1266
- F as escapeAttr,
1267
- yt as escapeHtml,
1268
- ct as exitFullScreen,
1269
- Vt as extract,
1270
- en as fileToBase64DataUri,
1271
- Y as findAll,
1272
- E as findOne,
1273
- Qe as fixBaseUrl,
1274
- Wt as floatVal,
1275
- Q as formatDate,
1276
- wt as getBoundingClientRect,
1267
+ he as deleteCookieAllPaths,
1268
+ ue as detectLanguage,
1269
+ Ie as detectedPrecision,
1270
+ Le as digitCount,
1271
+ ht as disabled,
1272
+ rn as dispatchEvent,
1273
+ ln as downloadFile,
1274
+ gt as enabled,
1275
+ ct as enterFullScreen,
1276
+ dn as entityToString,
1277
+ P as escapeAttr,
1278
+ Et as escapeHtml,
1279
+ pt as exitFullScreen,
1280
+ Qt as extract,
1281
+ an as fileToBase64DataUri,
1282
+ j as findAll,
1283
+ b as findOne,
1284
+ Ze as fixBaseUrl,
1285
+ Jt as floatVal,
1286
+ Z as formatDate,
1287
+ vt as getBoundingClientRect,
1277
1288
  me as getCookie,
1278
- Je as getDomDimension,
1279
- An as getJson,
1280
- Be as getNodeXPath,
1281
- te as getUTF8StrLen,
1282
- Xn as getWeekNumber,
1283
- ft as guid,
1284
- Le as hide,
1285
- hn as highlightText,
1286
- an as html2Text,
1287
- gn as imgToBase64,
1288
- xt as insertStyleSheet,
1289
- Rt as isBodyInit,
1290
- oe as isChinese,
1291
- Sn as isEmptyObject,
1292
- ue as isFirefox,
1293
- Ge as isFocusable,
1289
+ Ke as getDomDimension,
1290
+ Cn as getJson,
1291
+ qe as getNodeXPath,
1292
+ ee as getUTF8StrLen,
1293
+ ii as getWeekNumber,
1294
+ dt as guid,
1295
+ He as hide,
1296
+ vn as highlightText,
1297
+ pn as html2Text,
1298
+ yn as imgToBase64,
1299
+ wt as insertStyleSheet,
1300
+ kt as isBodyInit,
1301
+ ae as isChinese,
1302
+ On as isEmptyObject,
1303
+ fe as isFirefox,
1304
+ ze as isFocusable,
1294
1305
  be as isFunction,
1295
- pt as isInFullScreen,
1296
- Ee as isJSON,
1297
- ve as isJson,
1298
- ye as isObject,
1299
- we as isPromise,
1306
+ ut as isInFullScreen,
1307
+ Te as isJSON,
1308
+ ye as isJson,
1309
+ Ee as isObject,
1310
+ ve as isPromise,
1300
1311
  mt as isUrl,
1301
- Zt as kebabCase,
1302
- Ye as keepRectInContainer,
1303
- Oe as limit,
1304
- ze as loadCss,
1305
- We as loadScript,
1306
- Ue as lockElementInteraction,
1307
- mn as markdown2Html,
1308
- wn as md5,
1309
- Ce as mmToPt,
1310
- Me as mmToPx,
1311
- Se as mmToTwip,
1312
- Zn as msToHMS,
1313
- gt as mutationEffective,
1314
- $e as nodeIndex,
1315
- V as objToQuery,
1316
- _n as objectGet,
1317
- Cn as objectKeyMapping,
1318
- It as objectMerge,
1319
- Nn as objectSet,
1320
- qe as onDomTreeChange,
1321
- Pe as onHover,
1322
- Mn as postFiles,
1323
- Tn as postJson,
1324
- Ve as precisionToStep,
1312
+ Xt as kebabCase,
1313
+ je as keepRectInContainer,
1314
+ De as limit,
1315
+ We as loadCss,
1316
+ Je as loadScript,
1317
+ $e as lockElementInteraction,
1318
+ xn as markdown2Html,
1319
+ bn as md5,
1320
+ _e as mmToPt,
1321
+ Se as mmToPx,
1322
+ Ce as mmToTwip,
1323
+ ni as msToHMS,
1324
+ xt as mutationEffective,
1325
+ Be as nodeIndex,
1326
+ Q as objToQuery,
1327
+ Rn as objectGet,
1328
+ Dn as objectKeyMapping,
1329
+ Lt as objectMerge,
1330
+ kn as objectSet,
1331
+ nn as offEvent,
1332
+ Ye as onDomTreeChange,
1333
+ en as onEvent,
1334
+ Ue as onHover,
1335
+ Nn as postFiles,
1336
+ _n as postJson,
1337
+ Qe as precisionToStep,
1325
1338
  Ae as printStack,
1326
- _e as ptToMm,
1327
- Ne as pxToMm,
1328
- _t as queryReplace,
1329
- K as queryToObj,
1330
- De as randomInt,
1331
- rt as randomString,
1332
- ee as randomWords,
1333
- je as rectAssoc,
1334
- Ke as rectInLayout,
1339
+ Ne as ptToMm,
1340
+ Oe as pxToMm,
1341
+ Nt as queryReplace,
1342
+ V as queryToObj,
1343
+ Re as randomInt,
1344
+ ot as randomString,
1345
+ ne as randomWords,
1346
+ Ge as rectAssoc,
1347
+ Ve as rectInLayout,
1335
1348
  _ as regQuote,
1336
- Fe as remove,
1337
- D as request,
1338
- Re as round,
1339
- tn as sanitizeFileName,
1340
- fe as setCookie,
1341
- He as show,
1342
- xn as srcToBase64,
1343
- re as strChunk,
1344
- ne as strToPascalCase,
1345
- dn as stringToEntity,
1346
- Jt as stripSlashes,
1347
- ln as text2Html,
1348
- he as throttle,
1349
- ge as throttleEffect,
1350
- q as toggleDisabled,
1351
- ce as toggleFullScreen,
1352
- ie as trim,
1353
- Xt as truncate,
1354
- fn as unescapeHtml,
1355
- H as urlB64DataCache,
1356
- nt as utf8Decode,
1357
- $ as utf8Encode
1349
+ Pe as remove,
1350
+ R as request,
1351
+ ke as round,
1352
+ on as sanitizeFileName,
1353
+ de as setCookie,
1354
+ Fe as show,
1355
+ En as srcToBase64,
1356
+ oe as strChunk,
1357
+ ie as strToPascalCase,
1358
+ wn as stringToEntity,
1359
+ Kt as stripSlashes,
1360
+ un as text2Html,
1361
+ ge as throttle,
1362
+ xe as throttleEffect,
1363
+ Y as toggleDisabled,
1364
+ pe as toggleFullScreen,
1365
+ re as trim,
1366
+ te as truncate,
1367
+ gn as unescapeHtml,
1368
+ F as urlB64DataCache,
1369
+ it as utf8Decode,
1370
+ B as utf8Encode
1358
1371
  };
1359
1372
  //# sourceMappingURL=minutool.js.map