minutool 1.0.16 → 1.0.17

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