minutool 1.0.13 → 1.0.15

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