useblocks 1.1.45 → 1.1.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/iframe/js/amp.BP7EklKo.js +1 -0
  2. package/iframe/js/iframe-eblock.js +1 -1
  3. package/iframe/js/iframe.js +1 -1
  4. package/iframe/js/rules.4N5s3OV-.js +1 -1
  5. package/monacoeditorwork/css.worker.bundle.js +40524 -40442
  6. package/monacoeditorwork/editor.worker.bundle.js +9740 -9697
  7. package/monacoeditorwork/html.worker.bundle.js +50513 -50431
  8. package/monacoeditorwork/json.worker.bundle.js +14570 -14527
  9. package/monacoeditorwork/ts.worker.bundle.js +119593 -119455
  10. package/npm-publish.manifest.json +7 -7
  11. package/package.json +1 -1
  12. package/runtime/@ant-design/cssinjs/index.js +1 -1
  13. package/runtime/@ant-design/icons/index.js +2 -2
  14. package/runtime/README.md +1 -1
  15. package/runtime/THIRD_PARTY_LICENSES.txt +70 -42
  16. package/runtime/antd/index.js +1 -1
  17. package/runtime/react/index.js +3 -3
  18. package/runtime/react/jsx-runtime/index.js +1 -1
  19. package/runtime/react-dom/client/index.js +4 -4
  20. package/runtime/react-dom/index.js +3 -3
  21. package/runtime/react-router-dom/index.js +2 -2
  22. package/singlepage_headless_plugin.html +1 -1
  23. package/static/core/{cb72ea5e.js → 11296a18.js} +51 -51
  24. package/static/core/{7d884291.js → 13d197af.js} +20 -20
  25. package/static/core/13f581cc.js +924 -0
  26. package/static/core/{6450546e2.js → 1ca5f3772.js} +184 -155
  27. package/static/core/{af153381.js → 339377b8.js} +15657 -15202
  28. package/static/core/{94f2c0df.js → 386cf7b3.js} +9673 -9544
  29. package/static/core/{b7a9d262.js → 3b4845f7.js} +353 -334
  30. package/static/core/{d14cb6e2.js → 3dea3b87.js} +7 -7
  31. package/static/core/59023866.js +2090 -0
  32. package/static/core/{bc098620.js → 7a229b90.js} +3 -3
  33. package/static/core/{48b80eec.js → 8c81db36.js} +3 -3
  34. package/static/core/{8c84cc76.js → 8e110c69.js} +24 -24
  35. package/static/core/{2f2019c1.js → a11c28c2.js} +258 -240
  36. package/static/core/{fd4fa049.js → aacf134d.js} +745 -664
  37. package/static/core/{5e0828e3.js → acb049cb.js} +1349 -1297
  38. package/static/core/{bb774fb9.js → c59f9731.js} +7724 -6646
  39. package/static/core/{ed0ecf0a.js → de79e0c5.js} +3947 -3705
  40. package/static/core/e7c24fe9.js +649 -0
  41. package/static/esm/{dab4cdfd.js → 448d4bb0.js} +70 -70
  42. package/static/esm/{7c5227f0.js → d180c108.js} +50 -47
  43. package/static/runtime/{DownloadOutlined-CgJ8OpH_.js → DownloadOutlined-Dg_G2xO7.js} +4 -4
  44. package/static/runtime/client-CfXgU5Vo.js +7580 -0
  45. package/static/runtime/{defineProperty-B-FyVNQF.js → defineProperty-C_9hhJHt.js} +1 -1
  46. package/static/runtime/dom-export-CHgQ7Ws9.js +8069 -0
  47. package/static/runtime/{es-DnZp8dh1.js → es-BPfImJ0x.js} +5 -5
  48. package/static/runtime/{es-B2DS-PLP.js → es-DcH6fwd6.js} +2 -2
  49. package/static/runtime/{es-deqzngIL.js → es-_OY-D9g1.js} +2 -2
  50. package/static/runtime/{jsx-dev-runtime-Wj1_6O79.js → jsx-dev-runtime-DDukXY54.js} +2 -2
  51. package/static/runtime/jsx-runtime-BodCQYDg.js +22 -0
  52. package/static/runtime/react-BHNx_xzv.js +290 -0
  53. package/static/runtime/react-dom-CyByzibb.js +127 -0
  54. package/two_step_headless_plugin.html +1 -1
  55. package/{useblocks-core.ecd1a3b0.js → useblocks-core.15a9129c.js} +82 -76
  56. package/useblocks-esm.js +628 -3197
  57. package/useblocks.d.ts +190 -52
  58. package/useblocks.js +818 -12587
  59. package/vite/index.cjs +46 -21
  60. package/vite/index.d.ts +0 -1
  61. package/vite/index.js +46 -21
  62. package/vite/pluginDev/index.d.ts +0 -1
  63. package/webpack/index.cjs +46 -21
  64. package/webpack/index.d.ts +0 -1
  65. package/webpack/index.js +46 -21
  66. package/webpack/pluginDev/index.d.ts +0 -1
  67. package/iframe/js/amp.CVC2Iq48.js +0 -1
  68. package/static/core/632d894f.js +0 -869
  69. package/static/core/c28bc42e.js +0 -46
  70. package/static/core/ff830d19.js +0 -2046
  71. package/static/esm/2fb07398.js +0 -3480
  72. package/static/esm/352121c5.js +0 -55
  73. package/static/esm/64966e1c.js +0 -18
  74. package/static/runtime/client-CM3WFcip.js +0 -7
  75. package/static/runtime/dist-DUS42Hru.js +0 -3421
  76. package/static/runtime/jsx-runtime-DmPQfqtr.js +0 -28
  77. package/static/runtime/react-DIf5CLST.js +0 -258
  78. package/static/runtime/react-dom-Cc3IcUkg.js +0 -5604
  79. /package/iframe/{iframe-eblock.ecd1a3b0.html → iframe-eblock.15a9129c.html} +0 -0
  80. /package/iframe/{iframe.ecd1a3b0.html → iframe.15a9129c.html} +0 -0
@@ -1,59 +1,68 @@
1
- __useblocks__.define("static/core/b7a9d262.js", [
1
+ __useblocks__.define("static/core/3b4845f7.js", [
2
2
  "require",
3
3
  "exports",
4
4
  "module",
5
5
  "static/core/bd36b180.js",
6
- "static/core/bb774fb9.js",
7
- "static/core/5e0828e3.js",
8
- "static/core/94f2c0df.js",
9
- "static/core/6450546e2.js",
6
+ "static/core/c59f9731.js",
7
+ "static/core/acb049cb.js",
8
+ "static/core/386cf7b3.js",
9
+ "static/core/1ca5f3772.js",
10
10
  "react",
11
11
  "react-router-dom"
12
- ], function(Be, be, An) {
13
- const bt = Be("./bd36b180.js"), Ee = Be("./bb774fb9.js"), Ot = Be("./5e0828e3.js"), st = Be("./94f2c0df.js"), wt = Be("./6450546e2.js");
14
- let Lt = Be("react"), kt = Be("react-router-dom");
15
- var Bt = () => Ee.di.useInstance(Ee.COOKIE_MANAGER_ID);
16
- function ft(_, R) {
12
+ ], function(Be, ge, Un) {
13
+ const bt = Be("./bd36b180.js"), Ee = Be("./c59f9731.js"), Lt = Be("./acb049cb.js"), st = Be("./386cf7b3.js"), wt = Be("./1ca5f3772.js");
14
+ let kt = Be("react"), Bt = Be("react-router-dom");
15
+ var Dt = () => Ee.di.useInstance(Ee.COOKIE_MANAGER_ID);
16
+ function yt({ limitsInPlugin: _, hostedAiActive: S }) {
17
+ return _ && !S;
18
+ }
19
+ function Ht({ limitsInPlugin: _, hostedAiActive: S, counter: N, limit: G }) {
20
+ return yt({
21
+ limitsInPlugin: _,
22
+ hostedAiActive: S
23
+ }) ? G > 0 && N >= G : !1;
24
+ }
25
+ function ft(_, S) {
17
26
  if (_) {
18
- if (R === "preview") {
27
+ if (S === "preview") {
19
28
  const N = _;
20
29
  return N.preview ?? N.test_sends;
21
30
  }
22
- return _[R];
31
+ return _[S];
23
32
  }
24
33
  }
25
- function ct(_, R) {
34
+ function ct(_, S) {
26
35
  if (_?.flags) {
27
- if (R === "preview") {
36
+ if (S === "preview") {
28
37
  const N = _.flags;
29
38
  return N.preview ?? N.test_sends;
30
39
  }
31
- return _.flags[R];
40
+ return _.flags[S];
32
41
  }
33
42
  }
34
- var Dt = [
43
+ var jt = [
35
44
  10,
36
45
  30,
37
46
  300
38
- ], yt = [
47
+ ], At = [
39
48
  10,
40
49
  50,
41
50
  150
42
51
  ];
43
- function lt(_, R) {
44
- for (const N of R) if (N > _) return N;
52
+ function lt(_, S) {
53
+ for (const N of S) if (N > _) return N;
45
54
  return "infinity";
46
55
  }
47
- function Ht(_) {
56
+ function Nt(_) {
48
57
  return _ <= 10 ? "email_10_30" : _ <= 30 ? "email_30_300" : "email_300_inf";
49
58
  }
50
- function At(_) {
59
+ function _t(_) {
51
60
  return _ <= 10 ? "ai_10_50" : _ <= 50 ? "ai_30_150" : "ai_150_inf";
52
61
  }
53
- function ut(_, R) {
54
- return R?.limit_exceeded ? !0 : _.is_unlimited || _.total_limit <= 0 ? !1 : _.remaining <= 0 || _.used >= _.total_limit;
62
+ function ut(_, S) {
63
+ return S?.limit_exceeded ? !0 : _.is_unlimited || _.total_limit <= 0 ? !1 : _.remaining <= 0 || _.used >= _.total_limit;
55
64
  }
56
- var jt = [
65
+ var zt = [
57
66
  "optimization",
58
67
  "image_generate",
59
68
  "preview",
@@ -61,10 +70,10 @@ __useblocks__.define("static/core/b7a9d262.js", [
61
70
  "image_check",
62
71
  "spam_check"
63
72
  ];
64
- function Nt(_) {
65
- return jt.includes(_);
73
+ function Wt(_) {
74
+ return zt.includes(_);
66
75
  }
67
- var zt = {
76
+ var Qt = {
68
77
  optimization: "optimization_exceeded",
69
78
  image_generate: "image_generate_exceeded",
70
79
  preview: "preview_exceeded",
@@ -72,83 +81,83 @@ __useblocks__.define("static/core/b7a9d262.js", [
72
81
  image_check: "image_check_exceeded",
73
82
  spam_check: "spam_check_exceeded"
74
83
  };
75
- function Ge(_, R, N) {
76
- if (Nt(_)) return null;
77
- const G = ft(R, _), K = ct(N, _);
84
+ function Ge(_, S, N) {
85
+ if (Wt(_)) return null;
86
+ const G = ft(S, _), K = ct(N, _);
78
87
  if (!G || !ut(G, K)) return null;
79
88
  const $ = G.total_limit;
80
89
  return {
81
90
  kind: _,
82
- presetId: zt[_],
91
+ presetId: Qt[_],
83
92
  previousLimit: $,
84
93
  nextLimit: "infinity"
85
94
  };
86
95
  }
87
- function Wt(_, R) {
96
+ function Gt(_, S) {
88
97
  if (!_) return null;
89
- const N = ft(_, "ai"), G = ct(R, "ai");
98
+ const N = ft(_, "ai"), G = ct(S, "ai");
90
99
  if (N && ut(N, G)) {
91
100
  const ee = N.total_limit;
92
101
  return {
93
102
  kind: "ai",
94
- presetId: At(ee),
103
+ presetId: _t(ee),
95
104
  previousLimit: ee,
96
- nextLimit: lt(ee, yt)
105
+ nextLimit: lt(ee, At)
97
106
  };
98
107
  }
99
- const K = ft(_, "email_generate"), $ = ct(R, "email_generate");
108
+ const K = ft(_, "email_generate"), $ = ct(S, "email_generate");
100
109
  if (K && ut(K, $)) {
101
110
  const ee = K.total_limit;
102
111
  return {
103
112
  kind: "email_generate",
104
- presetId: Ht(ee),
113
+ presetId: Nt(ee),
105
114
  previousLimit: ee,
106
- nextLimit: lt(ee, Dt)
115
+ nextLimit: lt(ee, jt)
107
116
  };
108
117
  }
109
- const V = Ge("image_generate", _, R);
118
+ const V = Ge("image_generate", _, S);
110
119
  if (V) return V;
111
- const Z = Ge("optimization", _, R);
120
+ const Z = Ge("optimization", _, S);
112
121
  if (Z) return Z;
113
- const Y = Ge("preview", _, R);
122
+ const Y = Ge("preview", _, S);
114
123
  if (Y) return Y;
115
- const W = Ge("link_check", _, R);
124
+ const W = Ge("link_check", _, S);
116
125
  if (W) return W;
117
- return Ge("image_check", _, R) || Ge("spam_check", _, R);
126
+ return Ge("image_check", _, S) || Ge("spam_check", _, S);
118
127
  }
119
- function Qt(_) {
128
+ function $t(_) {
120
129
  return {
121
- presetId: At(_),
130
+ presetId: _t(_),
122
131
  previousLimit: _,
123
- nextLimit: lt(_, yt)
132
+ nextLimit: lt(_, At)
124
133
  };
125
134
  }
126
- function Gt(_) {
127
- const R = String(_ ?? "").split(";")[0].trim();
128
- if (!R) return "";
129
- const N = R.toLowerCase(), G = N.indexOf("/");
135
+ function Xt(_) {
136
+ const S = String(_ ?? "").split(";")[0].trim();
137
+ if (!S) return "";
138
+ const N = S.toLowerCase(), G = N.indexOf("/");
130
139
  if (G === -1) return N;
131
140
  const K = N.slice(G + 1);
132
141
  return K === "svg+xml" ? "svg" : K;
133
142
  }
134
- async function $t(_) {
143
+ async function Kt(_) {
135
144
  if (typeof createImageBitmap == "function") try {
136
- const R = await createImageBitmap(_);
145
+ const S = await createImageBitmap(_);
137
146
  try {
138
147
  return {
139
- width: R.width,
140
- height: R.height
148
+ width: S.width,
149
+ height: S.height
141
150
  };
142
151
  } finally {
143
- R.close?.();
152
+ S.close?.();
144
153
  }
145
154
  } catch {}
146
- return new Promise((R, N) => {
155
+ return new Promise((S, N) => {
147
156
  const G = URL.createObjectURL(_), K = new Image();
148
157
  K.onload = () => {
149
158
  URL.revokeObjectURL(G);
150
159
  const $ = K.naturalWidth || K.width, V = K.naturalHeight || K.height;
151
- $ > 0 && V > 0 ? R({
160
+ $ > 0 && V > 0 ? S({
152
161
  width: $,
153
162
  height: V
154
163
  }) : N(new Error("Could not read image dimensions"));
@@ -160,51 +169,51 @@ __useblocks__.define("static/core/b7a9d262.js", [
160
169
  function dt(_) {
161
170
  return _.trim();
162
171
  }
163
- function Xt() {
164
- const _ = new Map(), R = new Map();
172
+ function Zt() {
173
+ const _ = new Map(), S = new Map();
165
174
  function N(V, Z) {
166
175
  return Z ? new Promise((Y, W) => {
167
176
  if (Z.aborted) {
168
177
  W(new DOMException("Aborted", "AbortError"));
169
178
  return;
170
179
  }
171
- const ge = () => {
180
+ const me = () => {
172
181
  W(new DOMException("Aborted", "AbortError"));
173
182
  };
174
- Z.addEventListener("abort", ge, { once: !0 }), V.then((ee) => {
175
- Z.removeEventListener("abort", ge), Y(ee);
183
+ Z.addEventListener("abort", me, { once: !0 }), V.then((ee) => {
184
+ Z.removeEventListener("abort", me), Y(ee);
176
185
  }, (ee) => {
177
- Z.removeEventListener("abort", ge), W(ee);
186
+ Z.removeEventListener("abort", me), W(ee);
178
187
  });
179
188
  }) : V;
180
189
  }
181
190
  async function G(V, Z, Y) {
182
191
  const W = dt(V);
183
192
  if (!W) throw new Error("Empty image URL");
184
- const ge = _.get(W);
185
- if (ge) {
193
+ const me = _.get(W);
194
+ if (me) {
186
195
  if (Z?.aborted) throw new DOMException("Aborted", "AbortError");
187
- return ge;
196
+ return me;
188
197
  }
189
- const ee = R.get(W);
198
+ const ee = S.get(W);
190
199
  if (ee) return N(ee.promise, Z);
191
- const Se = new AbortController(), Ae = Y(W, Se.signal).then((Te) => (R.delete(W), _.set(W, Te), Te)).catch((Te) => {
192
- throw R.delete(W), Te;
200
+ const Ce = new AbortController(), Ae = Y(W, Ce.signal).then((Te) => (S.delete(W), _.set(W, Te), Te)).catch((Te) => {
201
+ throw S.delete(W), Te;
193
202
  });
194
- return R.set(W, {
203
+ return S.set(W, {
195
204
  promise: Ae,
196
- controller: Se
205
+ controller: Ce
197
206
  }), N(Ae, Z);
198
207
  }
199
208
  function K(V) {
200
209
  const Z = dt(V);
201
210
  if (!Z) return;
202
- const Y = R.get(Z);
203
- Y && (Y.controller.abort(), R.delete(Z)), _.delete(Z);
211
+ const Y = S.get(Z);
212
+ Y && (Y.controller.abort(), S.delete(Z)), _.delete(Z);
204
213
  }
205
214
  function $() {
206
- for (const [, V] of R) V.controller.abort();
207
- R.clear(), _.clear();
215
+ for (const [, V] of S) V.controller.abort();
216
+ S.clear(), _.clear();
208
217
  }
209
218
  return {
210
219
  resolve: G,
@@ -212,9 +221,9 @@ __useblocks__.define("static/core/b7a9d262.js", [
212
221
  invalidateAll: $
213
222
  };
214
223
  }
215
- var Kt = bt.__commonJSMin(((_, R) => {
224
+ var qt = bt.__commonJSMin(((_, S) => {
216
225
  (function(N, G) {
217
- typeof _ == "object" && typeof R < "u" ? R.exports = G() : typeof define == "function" && define.amd ? define(G) : (N = typeof globalThis < "u" ? globalThis : N || self).imageCompression = G();
226
+ typeof _ == "object" && typeof S < "u" ? S.exports = G() : typeof define == "function" && define.amd ? define(G) : (N = typeof globalThis < "u" ? globalThis : N || self).imageCompression = G();
218
227
  })(_, (function() {
219
228
  "use strict";
220
229
  function N(P, T) {
@@ -525,9 +534,9 @@ __useblocks__.define("static/core/b7a9d262.js", [
525
534
  for (; n < E;) i(t, s, n + (y = Math.min(65535, E - n)) == E ? 1 : 0), s = d.F._copyExact(e, n, y, t, s + 8), n += y;
526
535
  return s >>> 3;
527
536
  }
528
- var x = A.lits, b = A.strt, D = A.prev, O = 0, M = 0, B = 0, g = 0, C = 0, c = 0;
537
+ var x = A.lits, b = A.strt, D = A.prev, O = 0, M = 0, B = 0, g = 0, R = 0, c = 0;
529
538
  for (E > 2 && (b[c = d.F._hash(e, 0)] = 0), n = 0; n < E; n++) {
530
- if (C = c, n + 1 < E - 2) {
539
+ if (R = c, n + 1 < E - 2) {
531
540
  c = d.F._hash(e, n + 1);
532
541
  var f = n + 1 & 32767;
533
542
  D[f] = b[c], b[c] = f;
@@ -535,7 +544,7 @@ __useblocks__.define("static/core/b7a9d262.js", [
535
544
  if (h <= n) {
536
545
  (O > 14e3 || M > 26697) && E - n > 100 && (h < n && (x[O] = n - h, O += 2, h = n), s = d.F._writeBlock(n == E - 1 || h == E ? 1 : 0, x, O, g, e, B, n - B, t, s), O = M = g = 0, B = n);
537
546
  var v = 0;
538
- n < E - 2 && (v = d.F._bestMatch(e, n, D, C, Math.min(m[2], E - n), m[3]));
547
+ n < E - 2 && (v = d.F._bestMatch(e, n, D, R, Math.min(m[2], E - n), m[3]));
539
548
  var y = v >>> 16, w = 65535 & v;
540
549
  if (v != 0) {
541
550
  w = 65535 & v;
@@ -575,7 +584,7 @@ __useblocks__.define("static/core/b7a9d262.js", [
575
584
  }, d.F._hash = function(e, t) {
576
585
  return (e[t] << 8 | e[t + 1]) + (e[t + 2] << 4) & 65535;
577
586
  }, d.saved = 0, d.F._writeBlock = function(e, t, u, a, m, A, r, i, n) {
578
- var s, h, E, x, b, D, O, M, B, g = d.F.U, C = d.F._putsF, c = d.F._putsE;
587
+ var s, h, E, x, b, D, O, M, B, g = d.F.U, R = d.F._putsF, c = d.F._putsE;
579
588
  g.lhst[256]++, h = (s = d.F.getTrees())[0], E = s[1], x = s[2], b = s[3], D = s[4], O = s[5], M = s[6], B = s[7];
580
589
  var f = 32 + ((n + 3 & 7) == 0 ? 0 : 8 - (n + 3 & 7)) + (r << 3), v = a + d.F.contSize(g.fltree, g.lhst) + d.F.contSize(g.fdtree, g.dhst), y = a + d.F.contSize(g.ltree, g.lhst) + d.F.contSize(g.dtree, g.dhst);
581
590
  y += 14 + 3 * O + d.F.contSize(g.itree, g.ihst) + (2 * g.ihst[16] + 3 * g.ihst[17] + 7 * g.ihst[18]);
@@ -583,7 +592,7 @@ __useblocks__.define("static/core/b7a9d262.js", [
583
592
  for (w = 0; w < 30; w++) g.dhst[w] = 0;
584
593
  for (w = 0; w < 19; w++) g.ihst[w] = 0;
585
594
  var U = f < v && f < y ? 0 : v < y ? 1 : 2;
586
- if (C(i, n, e), C(i, n + 1, U), n += 3, U == 0) {
595
+ if (R(i, n, e), R(i, n + 1, U), n += 3, U == 0) {
587
596
  for (; (7 & n) != 0;) n++;
588
597
  n = d.F._copyExact(m, A, r, i, n);
589
598
  } else {
@@ -596,8 +605,8 @@ __useblocks__.define("static/core/b7a9d262.js", [
596
605
  for (var o = A, L = 0; L < u; L += 2) {
597
606
  for (var F = t[L], k = F >>> 23, X = o + (8388607 & F); o < X;) n = d.F._writeLit(m[o++], p, i, n);
598
607
  if (k != 0) {
599
- var z = t[L + 1], Q = z >> 16, j = z >> 8 & 255, S = 255 & z;
600
- c(i, n = d.F._writeLit(257 + j, p, i, n), k - g.of0[j]), n += g.exb[j], C(i, n = d.F._writeLit(S, I, i, n), Q - g.df0[S]), n += g.dxb[S], o += k;
608
+ var z = t[L + 1], Q = z >> 16, j = z >> 8 & 255, C = 255 & z;
609
+ c(i, n = d.F._writeLit(257 + j, p, i, n), k - g.of0[j]), n += g.exb[j], R(i, n = d.F._writeLit(C, I, i, n), Q - g.df0[C]), n += g.dxb[C], o += k;
601
610
  }
602
611
  }
603
612
  n = d.F._writeLit(256, p, i, n);
@@ -705,8 +714,8 @@ __useblocks__.define("static/core/b7a9d262.js", [
705
714
  if (e[0] == 3 && e[1] == 0) return t || new u(0);
706
715
  var a = d.F, m = a._bitsF, A = a._bitsE, r = a._decodeTiny, i = a.makeCodes, n = a.codes2map, s = a._get17, h = a.U, E = t == null;
707
716
  E && (t = new u(e.length >>> 2 << 3));
708
- for (var x, b, D = 0, O = 0, M = 0, B = 0, g = 0, C = 0, c = 0, f = 0, v = 0; D == 0;) if (D = m(e, v, 1), O = m(e, v + 1, 2), v += 3, O != 0) {
709
- if (E && (t = d.F._check(t, f + (1 << 17))), O == 1 && (x = h.flmap, b = h.fdmap, C = 511, c = 31), O == 2) {
717
+ for (var x, b, D = 0, O = 0, M = 0, B = 0, g = 0, R = 0, c = 0, f = 0, v = 0; D == 0;) if (D = m(e, v, 1), O = m(e, v + 1, 2), v += 3, O != 0) {
718
+ if (E && (t = d.F._check(t, f + (1 << 17))), O == 1 && (x = h.flmap, b = h.fdmap, R = 511, c = 31), O == 2) {
710
719
  M = A(e, v, 5) + 257, B = A(e, v + 5, 5) + 1, g = A(e, v + 10, 4) + 4, v += 14;
711
720
  for (var y = 0; y < 38; y += 2) h.itree[y] = 0, h.itree[y + 1] = 0;
712
721
  var w = 1;
@@ -716,12 +725,12 @@ __useblocks__.define("static/core/b7a9d262.js", [
716
725
  }
717
726
  v += 3 * g, i(h.itree, w), n(h.itree, w, h.imap), x = h.lmap, b = h.dmap, v = r(h.imap, (1 << w) - 1, M + B, e, v, h.ttree);
718
727
  var p = a._copyOut(h.ttree, 0, M, h.ltree);
719
- C = (1 << p) - 1;
728
+ R = (1 << p) - 1;
720
729
  var I = a._copyOut(h.ttree, M, B, h.dtree);
721
730
  c = (1 << I) - 1, i(h.ltree, p), n(h.ltree, p, x), i(h.dtree, I), n(h.dtree, I, b);
722
731
  }
723
732
  for (;;) {
724
- var l = x[s(e, v) & C];
733
+ var l = x[s(e, v) & R];
725
734
  v += 15 & l;
726
735
  var o = l >>> 4;
727
736
  if (!(o >>> 8)) t[f++] = o;
@@ -741,8 +750,8 @@ __useblocks__.define("static/core/b7a9d262.js", [
741
750
  }
742
751
  } else {
743
752
  7 & v && (v += 8 - (7 & v));
744
- var j = 4 + (v >>> 3), S = e[j - 4] | e[j - 3] << 8;
745
- E && (t = d.F._check(t, f + S)), t.set(new u(e.buffer, e.byteOffset + j, S), f), v = j + S << 3, f += S;
753
+ var j = 4 + (v >>> 3), C = e[j - 4] | e[j - 3] << 8;
754
+ E && (t = d.F._check(t, f + C)), t.set(new u(e.buffer, e.byteOffset + j, C), f), v = j + C << 3, f += C;
746
755
  }
747
756
  return t.length == f ? t : t.slice(0, f);
748
757
  }, d.F._check = function(e, t) {
@@ -1048,18 +1057,18 @@ __useblocks__.define("static/core/b7a9d262.js", [
1048
1057
  const F = s.tabs.tRNS;
1049
1058
  if (F == null) {
1050
1059
  if (M == 8) for (g = 0; g < h; g++) {
1051
- var C = 3 * g;
1052
- D[g] = 255 << 24 | r[C + 2] << 16 | r[C + 1] << 8 | r[C];
1060
+ var R = 3 * g;
1061
+ D[g] = 255 << 24 | r[R + 2] << 16 | r[R + 1] << 8 | r[R];
1053
1062
  }
1054
- if (M == 16) for (g = 0; g < h; g++) C = 6 * g, D[g] = 255 << 24 | r[C + 4] << 16 | r[C + 2] << 8 | r[C];
1063
+ if (M == 16) for (g = 0; g < h; g++) R = 6 * g, D[g] = 255 << 24 | r[R + 4] << 16 | r[R + 2] << 8 | r[R];
1055
1064
  } else {
1056
1065
  var c = F[0];
1057
1066
  const k = F[1], X = F[2];
1058
1067
  if (M == 8) for (g = 0; g < h; g++) {
1059
1068
  var f = g << 2;
1060
- C = 3 * g, D[g] = 255 << 24 | r[C + 2] << 16 | r[C + 1] << 8 | r[C], r[C] == c && r[C + 1] == k && r[C + 2] == X && (b[f + 3] = 0);
1069
+ R = 3 * g, D[g] = 255 << 24 | r[R + 2] << 16 | r[R + 1] << 8 | r[R], r[R] == c && r[R + 1] == k && r[R + 2] == X && (b[f + 3] = 0);
1061
1070
  }
1062
- if (M == 16) for (g = 0; g < h; g++) f = g << 2, C = 6 * g, D[g] = 255 << 24 | r[C + 4] << 16 | r[C + 2] << 8 | r[C], B(r, C) == c && B(r, C + 2) == k && B(r, C + 4) == X && (b[f + 3] = 0);
1071
+ if (M == 16) for (g = 0; g < h; g++) f = g << 2, R = 6 * g, D[g] = 255 << 24 | r[R + 4] << 16 | r[R + 2] << 8 | r[R], B(r, R) == c && B(r, R + 2) == k && B(r, R + 4) == X && (b[f + 3] = 0);
1063
1072
  }
1064
1073
  } else if (O == 3) {
1065
1074
  const F = s.tabs.PLTE, k = s.tabs.tRNS, X = k ? k.length : 0;
@@ -1103,7 +1112,7 @@ __useblocks__.define("static/core/b7a9d262.js", [
1103
1112
  function H(r, i, n, s) {
1104
1113
  const h = t(r), E = Math.ceil(n * h / 8), x = new Uint8Array((E + 1 + r.interlace) * s);
1105
1114
  return i = r.tabs.CgBI ? e(i, x) : d(i, x), r.interlace == 0 ? i = u(i, r, 0, n, s) : r.interlace == 1 && (i = (function(D, O) {
1106
- const M = O.width, B = O.height, g = t(O), C = g >> 3, c = Math.ceil(M * g / 8), f = new Uint8Array(B * c);
1115
+ const M = O.width, B = O.height, g = t(O), R = g >> 3, c = Math.ceil(M * g / 8), f = new Uint8Array(B * c);
1107
1116
  let v = 0;
1108
1117
  const y = [
1109
1118
  0,
@@ -1147,18 +1156,18 @@ __useblocks__.define("static/core/b7a9d262.js", [
1147
1156
  for (; z < M;) z += L, F++;
1148
1157
  const Q = Math.ceil(F * g / 8);
1149
1158
  u(D, O, v, F, k);
1150
- let j = 0, S = y[I];
1151
- for (; S < B;) {
1159
+ let j = 0, C = y[I];
1160
+ for (; C < B;) {
1152
1161
  let q = w[I], oe = v + j * Q << 3;
1153
1162
  for (; q < M;) {
1154
1163
  var l;
1155
- if (g == 1 && (l = (l = D[oe >> 3]) >> 7 - (7 & oe) & 1, f[S * c + (q >> 3)] |= l << 7 - ((7 & q) << 0)), g == 2 && (l = (l = D[oe >> 3]) >> 6 - (7 & oe) & 3, f[S * c + (q >> 2)] |= l << 6 - ((3 & q) << 1)), g == 4 && (l = (l = D[oe >> 3]) >> 4 - (7 & oe) & 15, f[S * c + (q >> 1)] |= l << 4 - ((1 & q) << 2)), g >= 8) {
1156
- const te = S * c + q * C;
1157
- for (let J = 0; J < C; J++) f[te + J] = D[(oe >> 3) + J];
1164
+ if (g == 1 && (l = (l = D[oe >> 3]) >> 7 - (7 & oe) & 1, f[C * c + (q >> 3)] |= l << 7 - ((7 & q) << 0)), g == 2 && (l = (l = D[oe >> 3]) >> 6 - (7 & oe) & 3, f[C * c + (q >> 2)] |= l << 6 - ((3 & q) << 1)), g == 4 && (l = (l = D[oe >> 3]) >> 4 - (7 & oe) & 15, f[C * c + (q >> 1)] |= l << 4 - ((1 & q) << 2)), g >= 8) {
1165
+ const te = C * c + q * R;
1166
+ for (let J = 0; J < R; J++) f[te + J] = D[(oe >> 3) + J];
1158
1167
  }
1159
1168
  oe += g, q += L;
1160
1169
  }
1161
- j++, S += o;
1170
+ j++, C += o;
1162
1171
  }
1163
1172
  F * k != 0 && (v += k * (1 + Q)), I += 1;
1164
1173
  }
@@ -1172,11 +1181,11 @@ __useblocks__.define("static/core/b7a9d262.js", [
1172
1181
  const r = { H: {} };
1173
1182
  return r.H.N = function(i, n) {
1174
1183
  const s = Uint8Array;
1175
- let h, E, x = 0, b = 0, D = 0, O = 0, M = 0, B = 0, g = 0, C = 0, c = 0;
1184
+ let h, E, x = 0, b = 0, D = 0, O = 0, M = 0, B = 0, g = 0, R = 0, c = 0;
1176
1185
  if (i[0] == 3 && i[1] == 0) return n || new s(0);
1177
1186
  const f = r.H, v = f.b, y = f.e, w = f.R, U = f.n, p = f.A, I = f.Z, l = f.m, o = n == null;
1178
1187
  for (o && (n = new s(i.length >>> 2 << 5)); x == 0;) if (x = v(i, c, 1), b = v(i, c + 1, 2), c += 3, b != 0) {
1179
- if (o && (n = r.H.W(n, C + (1 << 17))), b == 1 && (h = l.J, E = l.h, B = 511, g = 31), b == 2) {
1188
+ if (o && (n = r.H.W(n, R + (1 << 17))), b == 1 && (h = l.J, E = l.h, B = 511, g = 31), b == 2) {
1180
1189
  D = y(i, c, 5) + 257, O = y(i, c + 5, 5) + 1, M = y(i, c + 10, 4) + 4, c += 14;
1181
1190
  let F = 1;
1182
1191
  for (var L = 0; L < 38; L += 2) l.Q[L] = 0, l.Q[L + 1] = 0;
@@ -1194,29 +1203,29 @@ __useblocks__.define("static/core/b7a9d262.js", [
1194
1203
  const F = h[I(i, c) & B];
1195
1204
  c += 15 & F;
1196
1205
  const k = F >>> 4;
1197
- if (!(k >>> 8)) n[C++] = k;
1206
+ if (!(k >>> 8)) n[R++] = k;
1198
1207
  else {
1199
1208
  if (k == 256) break;
1200
1209
  {
1201
- let X = C + k - 254;
1210
+ let X = R + k - 254;
1202
1211
  if (k > 264) {
1203
1212
  const q = l.q[k - 257];
1204
- X = C + (q >>> 3) + y(i, c, 7 & q), c += 7 & q;
1213
+ X = R + (q >>> 3) + y(i, c, 7 & q), c += 7 & q;
1205
1214
  }
1206
1215
  const z = E[I(i, c) & g];
1207
1216
  c += 15 & z;
1208
- const Q = z >>> 4, j = l.c[Q], S = (j >>> 4) + v(i, c, 15 & j);
1209
- for (c += 15 & j; C < X;) n[C] = n[C++ - S], n[C] = n[C++ - S], n[C] = n[C++ - S], n[C] = n[C++ - S];
1210
- C = X;
1217
+ const Q = z >>> 4, j = l.c[Q], C = (j >>> 4) + v(i, c, 15 & j);
1218
+ for (c += 15 & j; R < X;) n[R] = n[R++ - C], n[R] = n[R++ - C], n[R] = n[R++ - C], n[R] = n[R++ - C];
1219
+ R = X;
1211
1220
  }
1212
1221
  }
1213
1222
  }
1214
1223
  } else {
1215
1224
  7 & c && (c += 8 - (7 & c));
1216
1225
  const F = 4 + (c >>> 3), k = i[F - 4] | i[F - 3] << 8;
1217
- o && (n = r.H.W(n, C + k)), n.set(new s(i.buffer, i.byteOffset + F, k), C), c = F + k << 3, C += k;
1226
+ o && (n = r.H.W(n, R + k)), n.set(new s(i.buffer, i.byteOffset + F, k), R), c = F + k << 3, R += k;
1218
1227
  }
1219
- return n.length == C ? n : n.slice(0, C);
1228
+ return n.length == R ? n : n.slice(0, R);
1220
1229
  }, r.H.W = function(i, n) {
1221
1230
  const s = i.length;
1222
1231
  if (n <= s) return i;
@@ -1231,9 +1240,9 @@ __useblocks__.define("static/core/b7a9d262.js", [
1231
1240
  const B = M >>> 4;
1232
1241
  if (B <= 15) x[O] = B, O++;
1233
1242
  else {
1234
- let g = 0, C = 0;
1235
- B == 16 ? (C = 3 + b(h, E, 2), E += 2, g = x[O - 1]) : B == 17 ? (C = 3 + b(h, E, 3), E += 3) : B == 18 && (C = 11 + b(h, E, 7), E += 7);
1236
- const c = O + C;
1243
+ let g = 0, R = 0;
1244
+ B == 16 ? (R = 3 + b(h, E, 2), E += 2, g = x[O - 1]) : B == 17 ? (R = 3 + b(h, E, 3), E += 3) : B == 18 && (R = 11 + b(h, E, 7), E += 7);
1245
+ const c = O + R;
1237
1246
  for (; O < c;) x[O] = g, O++;
1238
1247
  }
1239
1248
  }
@@ -1527,13 +1536,13 @@ __useblocks__.define("static/core/b7a9d262.js", [
1527
1536
  let B = 0, g = 0;
1528
1537
  for (let I = 0; I < M; I++) for (let l = 0; l < O; l++) if (x >= 0 && b >= 0 ? (B = I * i + l << 2, g = (b + I) * h + x + l << 2) : (B = (-b + I) * i - x + l << 2, g = I * h + l << 2), D == 0) s[g] = r[B], s[g + 1] = r[B + 1], s[g + 2] = r[B + 2], s[g + 3] = r[B + 3];
1529
1538
  else if (D == 1) {
1530
- var C = r[B + 3] * .00392156862745098, c = r[B] * C, f = r[B + 1] * C, v = r[B + 2] * C, y = s[g + 3] * (1 / 255), w = s[g] * y, U = s[g + 1] * y, p = s[g + 2] * y;
1531
- const o = 1 - C, L = C + y * o, F = L == 0 ? 0 : 1 / L;
1539
+ var R = r[B + 3] * .00392156862745098, c = r[B] * R, f = r[B + 1] * R, v = r[B + 2] * R, y = s[g + 3] * (1 / 255), w = s[g] * y, U = s[g + 1] * y, p = s[g + 2] * y;
1540
+ const o = 1 - R, L = R + y * o, F = L == 0 ? 0 : 1 / L;
1532
1541
  s[g + 3] = 255 * L, s[g + 0] = (c + w * o) * F, s[g + 1] = (f + U * o) * F, s[g + 2] = (v + p * o) * F;
1533
- } else if (D == 2) C = r[B + 3], c = r[B], f = r[B + 1], v = r[B + 2], y = s[g + 3], w = s[g], U = s[g + 1], p = s[g + 2], C == y && c == w && f == U && v == p ? (s[g] = 0, s[g + 1] = 0, s[g + 2] = 0, s[g + 3] = 0) : (s[g] = c, s[g + 1] = f, s[g + 2] = v, s[g + 3] = C);
1542
+ } else if (D == 2) R = r[B + 3], c = r[B], f = r[B + 1], v = r[B + 2], y = s[g + 3], w = s[g], U = s[g + 1], p = s[g + 2], R == y && c == w && f == U && v == p ? (s[g] = 0, s[g + 1] = 0, s[g + 2] = 0, s[g + 3] = 0) : (s[g] = c, s[g + 1] = f, s[g + 2] = v, s[g + 3] = R);
1534
1543
  else if (D == 3) {
1535
- if (C = r[B + 3], c = r[B], f = r[B + 1], v = r[B + 2], y = s[g + 3], w = s[g], U = s[g + 1], p = s[g + 2], C == y && c == w && f == U && v == p) continue;
1536
- if (C < 220 && y > 20) return !1;
1544
+ if (R = r[B + 3], c = r[B], f = r[B + 1], v = r[B + 2], y = s[g + 3], w = s[g], U = s[g + 1], p = s[g + 2], R == y && c == w && f == U && v == p) continue;
1545
+ if (R < 220 && y > 20) return !1;
1537
1546
  }
1538
1547
  return !0;
1539
1548
  }
@@ -1556,7 +1565,7 @@ __useblocks__.define("static/core/b7a9d262.js", [
1556
1565
  26,
1557
1566
  10
1558
1567
  ];
1559
- for (var C = 0; C < 8; C++) if (n[C] != g[C]) throw "The input is not a PNG file!";
1568
+ for (var R = 0; R < 8; R++) if (n[R] != g[R]) throw "The input is not a PNG file!";
1560
1569
  for (; s < n.length;) {
1561
1570
  const I = h.readUint(n, s);
1562
1571
  s += 4;
@@ -1575,7 +1584,7 @@ __useblocks__.define("static/core/b7a9d262.js", [
1575
1584
  b.tabs[l] = L;
1576
1585
  } else if (l == "CgBI") b.tabs[l] = n.slice(s, s + 4);
1577
1586
  else if (l == "IDAT") {
1578
- for (C = 0; C < I; C++) D[M + C] = n[s + C];
1587
+ for (R = 0; R < I; R++) D[M + R] = n[s + R];
1579
1588
  M += I;
1580
1589
  } else if (l == "acTL") b.tabs[l] = {
1581
1590
  num_frames: x(n, s),
@@ -1599,14 +1608,14 @@ __useblocks__.define("static/core/b7a9d262.js", [
1599
1608
  };
1600
1609
  b.frames.push(F);
1601
1610
  } else if (l == "fdAT") {
1602
- for (C = 0; C < I - 4; C++) O[B + C] = n[s + C + 4];
1611
+ for (R = 0; R < I - 4; R++) O[B + R] = n[s + R + 4];
1603
1612
  B += I - 4;
1604
1613
  } else if (l == "pHYs") b.tabs[l] = [
1605
1614
  h.readUint(n, s),
1606
1615
  h.readUint(n, s + 4),
1607
1616
  n[s + 8]
1608
1617
  ];
1609
- else if (l == "cHRM") for (b.tabs[l] = [], C = 0; C < 8; C++) b.tabs[l].push(h.readUint(n, s + 4 * C));
1618
+ else if (l == "cHRM") for (b.tabs[l] = [], R = 0; R < 8; R++) b.tabs[l].push(h.readUint(n, s + 4 * R));
1610
1619
  else if (l == "tEXt" || l == "zTXt") {
1611
1620
  b.tabs[l] ?? (b.tabs[l] = {});
1612
1621
  var f = h.nextZero(n, s), v = h.readASCII(n, s, f - s), y = s + I - f - 1;
@@ -1624,7 +1633,7 @@ __useblocks__.define("static/core/b7a9d262.js", [
1624
1633
  } else if (l == "PLTE") b.tabs[l] = h.readBytes(n, s, I);
1625
1634
  else if (l == "hIST") {
1626
1635
  const o = b.tabs.PLTE.length / 3;
1627
- for (b.tabs[l] = [], C = 0; C < o; C++) b.tabs[l].push(E(n, s + 2 * C));
1636
+ for (b.tabs[l] = [], R = 0; R < o; R++) b.tabs[l].push(E(n, s + 2 * R));
1628
1637
  } else if (l == "tRNS") b.ctype == 3 ? b.tabs[l] = h.readBytes(n, s, I) : b.ctype == 0 ? b.tabs[l] = E(n, s) : b.ctype == 2 && (b.tabs[l] = [
1629
1638
  E(n, s),
1630
1639
  E(n, s + 2),
@@ -1650,10 +1659,10 @@ __useblocks__.define("static/core/b7a9d262.js", [
1650
1659
  i.frames[0].data ?? (i.frames[0].data = i.data);
1651
1660
  const E = n * s * 4, x = new Uint8Array(E), b = new Uint8Array(E), D = new Uint8Array(E);
1652
1661
  for (let M = 0; M < i.frames.length; M++) {
1653
- const B = i.frames[M], g = B.rect.x, C = B.rect.y, c = B.rect.width, f = B.rect.height, v = T(B.data, c, f, i);
1662
+ const B = i.frames[M], g = B.rect.x, R = B.rect.y, c = B.rect.width, f = B.rect.height, v = T(B.data, c, f, i);
1654
1663
  if (M != 0) for (var O = 0; O < E; O++) D[O] = x[O];
1655
- if (B.blend == 0 ? A(v, c, f, x, n, s, g, C, 0) : B.blend == 1 && A(v, c, f, x, n, s, g, C, 1), h.push(x.buffer.slice(0)), B.dispose != 0) {
1656
- if (B.dispose == 1) A(b, c, f, x, n, s, g, C, 0);
1664
+ if (B.blend == 0 ? A(v, c, f, x, n, s, g, R, 0) : B.blend == 1 && A(v, c, f, x, n, s, g, R, 1), h.push(x.buffer.slice(0)), B.dispose != 0) {
1665
+ if (B.dispose == 1) A(b, c, f, x, n, s, g, R, 0);
1657
1666
  else if (B.dispose == 2) for (O = 0; O < E; O++) x[O] = D[O];
1658
1667
  }
1659
1668
  }
@@ -1696,19 +1705,19 @@ __useblocks__.define("static/core/b7a9d262.js", [
1696
1705
  p ??= 1;
1697
1706
  const I = y.length, l = [];
1698
1707
  for (var o = 0; o < I; o++) {
1699
- const S = y[o];
1708
+ const C = y[o];
1700
1709
  l.push([
1701
- S >>> 0 & 255,
1702
- S >>> 8 & 255,
1703
- S >>> 16 & 255,
1704
- S >>> 24 & 255
1710
+ C >>> 0 & 255,
1711
+ C >>> 8 & 255,
1712
+ C >>> 16 & 255,
1713
+ C >>> 24 & 255
1705
1714
  ]);
1706
1715
  }
1707
1716
  for (o = 0; o < I; o++) {
1708
- let S = 4294967295;
1717
+ let C = 4294967295;
1709
1718
  for (var L = 0, F = 0; F < I; F++) {
1710
1719
  var k = u(l[o], l[F]);
1711
- F != o && k < S && (S = k, L = F);
1720
+ F != o && k < C && (C = k, L = F);
1712
1721
  }
1713
1722
  }
1714
1723
  const X = new Uint32Array(w.buffer), z = new Int16Array(f * v * 4), Q = [
@@ -1730,14 +1739,14 @@ __useblocks__.define("static/core/b7a9d262.js", [
1730
1739
  5
1731
1740
  ];
1732
1741
  for (o = 0; o < Q.length; o++) Q[o] = 255 * ((Q[o] + .5) / 16 - .5);
1733
- for (let S = 0; S < v; S++) for (let q = 0; q < f; q++) {
1742
+ for (let C = 0; C < v; C++) for (let q = 0; q < f; q++) {
1734
1743
  var j;
1735
- o = 4 * (S * f + q), p != 2 ? j = [
1744
+ o = 4 * (C * f + q), p != 2 ? j = [
1736
1745
  t(c[o] + z[o]),
1737
1746
  t(c[o + 1] + z[o + 1]),
1738
1747
  t(c[o + 2] + z[o + 2]),
1739
1748
  t(c[o + 3] + z[o + 3])
1740
- ] : (k = Q[4 * (3 & S) + (3 & q)], j = [
1749
+ ] : (k = Q[4 * (3 & C) + (3 & q)], j = [
1741
1750
  t(c[o] + k),
1742
1751
  t(c[o + 1] + k),
1743
1752
  t(c[o + 2] + k),
@@ -1754,7 +1763,7 @@ __useblocks__.define("static/core/b7a9d262.js", [
1754
1763
  j[2] - te[2],
1755
1764
  j[3] - te[3]
1756
1765
  ];
1757
- p == 1 && (q != f - 1 && e(J, z, o + 4, 7), S != v - 1 && (q != 0 && e(J, z, o + 4 * f - 4, 3), e(J, z, o + 4 * f, 5), q != f - 1 && e(J, z, o + 4 * f + 4, 1))), U[o >> 2] = L, X[o >> 2] = y[L];
1766
+ p == 1 && (q != f - 1 && e(J, z, o + 4, 7), C != v - 1 && (q != 0 && e(J, z, o + 4 * f - 4, 3), e(J, z, o + 4 * f, 5), q != f - 1 && e(J, z, o + 4 * f + 4, 1))), U[o >> 2] = L, X[o >> 2] = y[L];
1758
1767
  }
1759
1768
  }
1760
1769
  function m(c, f, v, y, w) {
@@ -1769,7 +1778,7 @@ __useblocks__.define("static/core/b7a9d262.js", [
1769
1778
  }
1770
1779
  for (var j = 0; j < c.frames.length; j++) L && (X += 38), X += (te = c.frames[j]).cimg.length + 12, j != 0 && (X += 4);
1771
1780
  X += 12;
1772
- const S = new Uint8Array(X), q = [
1781
+ const C = new Uint8Array(X), q = [
1773
1782
  137,
1774
1783
  80,
1775
1784
  78,
@@ -1779,31 +1788,31 @@ __useblocks__.define("static/core/b7a9d262.js", [
1779
1788
  26,
1780
1789
  10
1781
1790
  ];
1782
- for (Q = 0; Q < 8; Q++) S[Q] = q[Q];
1783
- if (p(S, o, 13), o += 4, l(S, o, "IHDR"), o += 4, p(S, o, f), o += 4, p(S, o, v), o += 4, S[o] = c.depth, o++, S[o] = c.ctype, o++, S[o] = 0, o++, S[o] = 0, o++, S[o] = 0, o++, p(S, o, U(S, o - 17, 17)), o += 4, w.sRGB != null && (p(S, o, 1), o += 4, l(S, o, "sRGB"), o += 4, S[o] = w.sRGB, o++, p(S, o, U(S, o - 5, 5)), o += 4), w.iCCP != null) {
1791
+ for (Q = 0; Q < 8; Q++) C[Q] = q[Q];
1792
+ if (p(C, o, 13), o += 4, l(C, o, "IHDR"), o += 4, p(C, o, f), o += 4, p(C, o, v), o += 4, C[o] = c.depth, o++, C[o] = c.ctype, o++, C[o] = 0, o++, C[o] = 0, o++, C[o] = 0, o++, p(C, o, U(C, o - 17, 17)), o += 4, w.sRGB != null && (p(C, o, 1), o += 4, l(C, o, "sRGB"), o += 4, C[o] = w.sRGB, o++, p(C, o, U(C, o - 5, 5)), o += 4), w.iCCP != null) {
1784
1793
  const J = 13 + F.length;
1785
- p(S, o, J), o += 4, l(S, o, "iCCP"), o += 4, l(S, o, "ICC profile"), o += 11, o += 2, S.set(F, o), o += F.length, p(S, o, U(S, o - (J + 4), J + 4)), o += 4;
1794
+ p(C, o, J), o += 4, l(C, o, "iCCP"), o += 4, l(C, o, "ICC profile"), o += 11, o += 2, C.set(F, o), o += F.length, p(C, o, U(C, o - (J + 4), J + 4)), o += 4;
1786
1795
  }
1787
- if (w.pHYs != null && (p(S, o, 9), o += 4, l(S, o, "pHYs"), o += 4, p(S, o, w.pHYs[0]), o += 4, p(S, o, w.pHYs[1]), o += 4, S[o] = w.pHYs[2], o++, p(S, o, U(S, o - 13, 13)), o += 4), L && (p(S, o, 8), o += 4, l(S, o, "acTL"), o += 4, p(S, o, c.frames.length), o += 4, p(S, o, w.loop != null ? w.loop : 0), o += 4, p(S, o, U(S, o - 12, 12)), o += 4), c.ctype == 3) {
1788
- for (p(S, o, 3 * (z = c.plte.length)), o += 4, l(S, o, "PLTE"), o += 4, Q = 0; Q < z; Q++) {
1796
+ if (w.pHYs != null && (p(C, o, 9), o += 4, l(C, o, "pHYs"), o += 4, p(C, o, w.pHYs[0]), o += 4, p(C, o, w.pHYs[1]), o += 4, C[o] = w.pHYs[2], o++, p(C, o, U(C, o - 13, 13)), o += 4), L && (p(C, o, 8), o += 4, l(C, o, "acTL"), o += 4, p(C, o, c.frames.length), o += 4, p(C, o, w.loop != null ? w.loop : 0), o += 4, p(C, o, U(C, o - 12, 12)), o += 4), c.ctype == 3) {
1797
+ for (p(C, o, 3 * (z = c.plte.length)), o += 4, l(C, o, "PLTE"), o += 4, Q = 0; Q < z; Q++) {
1789
1798
  const J = 3 * Q, re = c.plte[Q], fe = 255 & re, ce = re >>> 8 & 255, je = re >>> 16 & 255;
1790
- S[o + J + 0] = fe, S[o + J + 1] = ce, S[o + J + 2] = je;
1799
+ C[o + J + 0] = fe, C[o + J + 1] = ce, C[o + J + 2] = je;
1791
1800
  }
1792
- if (o += 3 * z, p(S, o, U(S, o - 3 * z - 4, 3 * z + 4)), o += 4, k) {
1793
- for (p(S, o, z), o += 4, l(S, o, "tRNS"), o += 4, Q = 0; Q < z; Q++) S[o + Q] = c.plte[Q] >>> 24 & 255;
1794
- o += z, p(S, o, U(S, o - z - 4, z + 4)), o += 4;
1801
+ if (o += 3 * z, p(C, o, U(C, o - 3 * z - 4, 3 * z + 4)), o += 4, k) {
1802
+ for (p(C, o, z), o += 4, l(C, o, "tRNS"), o += 4, Q = 0; Q < z; Q++) C[o + Q] = c.plte[Q] >>> 24 & 255;
1803
+ o += z, p(C, o, U(C, o - z - 4, z + 4)), o += 4;
1795
1804
  }
1796
1805
  }
1797
1806
  let oe = 0;
1798
1807
  for (j = 0; j < c.frames.length; j++) {
1799
1808
  var te = c.frames[j];
1800
- L && (p(S, o, 26), o += 4, l(S, o, "fcTL"), o += 4, p(S, o, oe++), o += 4, p(S, o, te.rect.width), o += 4, p(S, o, te.rect.height), o += 4, p(S, o, te.rect.x), o += 4, p(S, o, te.rect.y), o += 4, I(S, o, y[j]), o += 2, I(S, o, 1e3), o += 2, S[o] = te.dispose, o++, S[o] = te.blend, o++, p(S, o, U(S, o - 30, 30)), o += 4);
1809
+ L && (p(C, o, 26), o += 4, l(C, o, "fcTL"), o += 4, p(C, o, oe++), o += 4, p(C, o, te.rect.width), o += 4, p(C, o, te.rect.height), o += 4, p(C, o, te.rect.x), o += 4, p(C, o, te.rect.y), o += 4, I(C, o, y[j]), o += 2, I(C, o, 1e3), o += 2, C[o] = te.dispose, o++, C[o] = te.blend, o++, p(C, o, U(C, o - 30, 30)), o += 4);
1801
1810
  const J = te.cimg;
1802
- p(S, o, (z = J.length) + (j == 0 ? 0 : 4)), o += 4;
1811
+ p(C, o, (z = J.length) + (j == 0 ? 0 : 4)), o += 4;
1803
1812
  const re = o;
1804
- l(S, o, j == 0 ? "IDAT" : "fdAT"), o += 4, j != 0 && (p(S, o, oe++), o += 4), S.set(J, o), o += z, p(S, o, U(S, re, o - re)), o += 4;
1813
+ l(C, o, j == 0 ? "IDAT" : "fdAT"), o += 4, j != 0 && (p(C, o, oe++), o += 4), C.set(J, o), o += z, p(C, o, U(C, re, o - re)), o += 4;
1805
1814
  }
1806
- return p(S, o, 0), o += 4, l(S, o, "IEND"), o += 4, p(S, o, U(S, o - 4, 4)), o += 4, S.buffer;
1815
+ return p(C, o, 0), o += 4, l(C, o, "IEND"), o += 4, p(C, o, U(C, o - 4, 4)), o += 4, C.buffer;
1807
1816
  }
1808
1817
  function A(c, f, v) {
1809
1818
  for (let y = 0; y < c.frames.length; y++) {
@@ -1817,26 +1826,26 @@ __useblocks__.define("static/core/b7a9d262.js", [
1817
1826
  const U = w[0], p = w[1], I = w[2], l = w[3], o = w[4], L = w[5];
1818
1827
  let F = 6, k = 8, X = 255;
1819
1828
  for (var z = 0; z < c.length; z++) {
1820
- const ve = new Uint8Array(c[z]);
1821
- for (var Q = ve.length, j = 0; j < Q; j += 4) X &= ve[j + 3];
1829
+ const be = new Uint8Array(c[z]);
1830
+ for (var Q = be.length, j = 0; j < Q; j += 4) X &= be[j + 3];
1822
1831
  }
1823
- const S = X != 255, q = (function(ne, ae, le, ue, we, de) {
1832
+ const C = X != 255, q = (function(ne, ae, le, ue, we, de) {
1824
1833
  const he = [];
1825
1834
  for (var ie = 0; ie < ne.length; ie++) {
1826
1835
  const ye = new Uint8Array(ne[ie]), Fe = new Uint32Array(ye.buffer);
1827
1836
  var _e;
1828
1837
  let Re = 0, Pe = 0, xe = ae, ze = le, pt = ue ? 1 : 0;
1829
1838
  if (ie != 0) {
1830
- const wn = de || ue || ie == 1 || he[ie - 2].dispose != 0 ? 1 : 2;
1831
- let vt = 0, Pt = 1e9;
1832
- for (let Je = 0; Je < wn; Je++) {
1839
+ const An = de || ue || ie == 1 || he[ie - 2].dispose != 0 ? 1 : 2;
1840
+ let vt = 0, Tt = 1e9;
1841
+ for (let Je = 0; Je < An; Je++) {
1833
1842
  var Ye = new Uint8Array(ne[ie - 1 - Je]);
1834
- const yn = new Uint32Array(ne[ie - 1 - Je]);
1843
+ const _n = new Uint32Array(ne[ie - 1 - Je]);
1835
1844
  let Le = ae, ke = le, Ze = -1, et = -1;
1836
- for (let We = 0; We < le; We++) for (let Qe = 0; Qe < ae; Qe++) Fe[Oe = We * ae + Qe] != yn[Oe] && (Qe < Le && (Le = Qe), Qe > Ze && (Ze = Qe), We < ke && (ke = We), We > et && (et = We));
1845
+ for (let We = 0; We < le; We++) for (let Qe = 0; Qe < ae; Qe++) Fe[Oe = We * ae + Qe] != _n[Oe] && (Qe < Le && (Le = Qe), Qe > Ze && (Ze = Qe), We < ke && (ke = We), We > et && (et = We));
1837
1846
  Ze == -1 && (Le = ke = Ze = et = 0), we && ((1 & Le) == 1 && Le--, (1 & ke) == 1 && ke--);
1838
- const Tt = (Ze - Le + 1) * (et - ke + 1);
1839
- Tt < Pt && (Pt = Tt, vt = Je, Re = Le, Pe = ke, xe = Ze - Le + 1, ze = et - ke + 1);
1847
+ const Ot = (Ze - Le + 1) * (et - ke + 1);
1848
+ Ot < Tt && (Tt = Ot, vt = Je, Re = Le, Pe = ke, xe = Ze - Le + 1, ze = et - ke + 1);
1840
1849
  }
1841
1850
  Ye = new Uint8Array(ne[ie - 1 - vt]), vt == 1 && (he[ie - 1].dispose = 2), _e = new Uint8Array(xe * ze * 4), P(Ye, ae, le, _e, xe, ze, -Re, -Pe, 0), pt = P(ye, ae, le, _e, xe, ze, -Re, -Pe, 3) ? 1 : 0, pt == 1 ? n(ye, ae, le, _e, {
1842
1851
  x: Re,
@@ -1875,8 +1884,8 @@ __useblocks__.define("static/core/b7a9d262.js", [
1875
1884
  return he;
1876
1885
  })(c, f, v, U, p, I), oe = {}, te = [], J = [];
1877
1886
  if (y != 0) {
1878
- const ve = [];
1879
- for (j = 0; j < q.length; j++) ve.push(q[j].img.buffer);
1887
+ const be = [];
1888
+ for (j = 0; j < q.length; j++) be.push(q[j].img.buffer);
1880
1889
  const ne = E((function(ue) {
1881
1890
  let we = 0;
1882
1891
  for (var de = 0; de < ue.length; de++) we += ue[de].byteLength;
@@ -1892,7 +1901,7 @@ __useblocks__.define("static/core/b7a9d262.js", [
1892
1901
  ie += Ye;
1893
1902
  }
1894
1903
  return he.buffer;
1895
- })(ve), y);
1904
+ })(be), y);
1896
1905
  for (j = 0; j < ne.plte.length; j++) te.push(ne.plte[j].est.rgba);
1897
1906
  let ae = 0;
1898
1907
  for (j = 0; j < q.length; j++) {
@@ -1904,12 +1913,12 @@ __useblocks__.define("static/core/b7a9d262.js", [
1904
1913
  }
1905
1914
  } else for (z = 0; z < q.length; z++) {
1906
1915
  var fe = q[z];
1907
- const ve = new Uint32Array(fe.img.buffer);
1916
+ const be = new Uint32Array(fe.img.buffer);
1908
1917
  var ce = fe.rect.width;
1909
- for (Q = ve.length, re = new Uint8Array(Q), J.push(re), j = 0; j < Q; j++) {
1910
- const ne = ve[j];
1911
- if (j != 0 && ne == ve[j - 1]) re[j] = re[j - 1];
1912
- else if (j > ce && ne == ve[j - ce]) re[j] = re[j - ce];
1918
+ for (Q = be.length, re = new Uint8Array(Q), J.push(re), j = 0; j < Q; j++) {
1919
+ const ne = be[j];
1920
+ if (j != 0 && ne == be[j - 1]) re[j] = re[j - 1];
1921
+ else if (j > ce && ne == be[j - ce]) re[j] = re[j - ce];
1913
1922
  else {
1914
1923
  let ae = oe[ne];
1915
1924
  if (ae == null && (oe[ne] = ae = te.length, te.push(ne), te.length >= 300)) break;
@@ -1920,15 +1929,15 @@ __useblocks__.define("static/core/b7a9d262.js", [
1920
1929
  const je = te.length;
1921
1930
  for (je <= 256 && o == 0 && (k = je <= 2 ? 1 : je <= 4 ? 2 : je <= 16 ? 4 : 8, k = Math.max(k, l)), z = 0; z < q.length; z++) {
1922
1931
  (fe = q[z]).rect.x, fe.rect.y, ce = fe.rect.width;
1923
- const ve = fe.rect.height;
1932
+ const be = fe.rect.height;
1924
1933
  let ne = fe.img;
1925
1934
  new Uint32Array(ne.buffer);
1926
1935
  let ae = 4 * ce, le = 4;
1927
1936
  if (je <= 256 && o == 0) {
1928
1937
  ae = Math.ceil(k * ce / 8);
1929
- var Me = new Uint8Array(ae * ve);
1938
+ var Me = new Uint8Array(ae * be);
1930
1939
  const ue = J[z];
1931
- for (let we = 0; we < ve; we++) {
1940
+ for (let we = 0; we < be; we++) {
1932
1941
  j = we * ae;
1933
1942
  const de = we * ce;
1934
1943
  if (k == 8) for (var se = 0; se < ce; se++) Me[j + se] = ue[de + se];
@@ -1937,9 +1946,9 @@ __useblocks__.define("static/core/b7a9d262.js", [
1937
1946
  else if (k == 1) for (se = 0; se < ce; se++) Me[j + (se >> 3)] |= ue[de + se] << 7 - 1 * (7 & se);
1938
1947
  }
1939
1948
  ne = Me, F = 3, le = 1;
1940
- } else if (S == 0 && q.length == 1) {
1941
- Me = new Uint8Array(ce * ve * 3);
1942
- const ue = ce * ve;
1949
+ } else if (C == 0 && q.length == 1) {
1950
+ Me = new Uint8Array(ce * be * 3);
1951
+ const ue = ce * be;
1943
1952
  for (j = 0; j < ue; j++) {
1944
1953
  const we = 3 * j, de = 4 * j;
1945
1954
  Me[we] = ne[de], Me[we + 1] = ne[de + 1], Me[we + 2] = ne[de + 2];
@@ -1957,16 +1966,16 @@ __useblocks__.define("static/core/b7a9d262.js", [
1957
1966
  }
1958
1967
  function i(c, f, v, y, w, U, p) {
1959
1968
  const I = Uint8Array, l = Uint32Array, o = new I(c[w - 1]), L = new l(c[w - 1]), F = w + 1 < c.length ? new I(c[w + 1]) : null, k = new I(c[w]), X = new l(k.buffer);
1960
- let z = f, Q = v, j = -1, S = -1;
1969
+ let z = f, Q = v, j = -1, C = -1;
1961
1970
  for (let oe = 0; oe < U.height; oe++) for (let te = 0; te < U.width; te++) {
1962
1971
  const J = U.x + te, re = U.y + oe, fe = re * f + J, ce = X[fe];
1963
- ce == 0 || y[w - 1].dispose == 0 && L[fe] == ce && (F == null || F[4 * fe + 3] != 0) || (J < z && (z = J), J > j && (j = J), re < Q && (Q = re), re > S && (S = re));
1972
+ ce == 0 || y[w - 1].dispose == 0 && L[fe] == ce && (F == null || F[4 * fe + 3] != 0) || (J < z && (z = J), J > j && (j = J), re < Q && (Q = re), re > C && (C = re));
1964
1973
  }
1965
- j == -1 && (z = Q = j = S = 0), p && ((1 & z) == 1 && z--, (1 & Q) == 1 && Q--), U = {
1974
+ j == -1 && (z = Q = j = C = 0), p && ((1 & z) == 1 && z--, (1 & Q) == 1 && Q--), U = {
1966
1975
  x: z,
1967
1976
  y: Q,
1968
1977
  width: j - z + 1,
1969
- height: S - Q + 1
1978
+ height: C - Q + 1
1970
1979
  };
1971
1980
  const q = y[w];
1972
1981
  q.rect = U, q.blend = 1, q.img = new Uint8Array(U.width * U.height * 4), y[w - 1].dispose == 0 ? (P(o, f, v, q.img, U.width, U.height, -U.x, -U.y, 0), n(k, f, v, q.img, U)) : P(k, f, v, q.img, U.width, U.height, -U.x, -U.y, 0);
@@ -2087,8 +2096,8 @@ __useblocks__.define("static/core/b7a9d262.js", [
2087
2096
  }
2088
2097
  function b(c, f, v, y, w) {
2089
2098
  if (c.left == null) return c.tdst = (function(F, k, X, z, Q) {
2090
- const j = k - F[0], S = X - F[1], q = z - F[2], oe = Q - F[3];
2091
- return j * j + S * S + q * q + oe * oe;
2099
+ const j = k - F[0], C = X - F[1], q = z - F[2], oe = Q - F[3];
2100
+ return j * j + C * C + q * q + oe * oe;
2092
2101
  })(c.est.q, f, v, y, w), c;
2093
2102
  const U = D(c.est, f, v, y, w);
2094
2103
  let p = c.left, I = c.right;
@@ -2168,7 +2177,7 @@ __useblocks__.define("static/core/b7a9d262.js", [
2168
2177
  f[13] - I * U * l,
2169
2178
  f[14] - I * p * l,
2170
2179
  f[15] - I * I * l
2171
- ], L = o, F = C;
2180
+ ], L = o, F = R;
2172
2181
  let k = [
2173
2182
  Math.random(),
2174
2183
  Math.random(),
@@ -2192,7 +2201,7 @@ __useblocks__.define("static/core/b7a9d262.js", [
2192
2201
  rgba: (Math.round(255 * Q[3]) << 24 | Math.round(255 * Q[2]) << 16 | Math.round(255 * Q[1]) << 8 | Math.round(255 * Q[0]) << 0) >>> 0
2193
2202
  };
2194
2203
  }
2195
- var C = {
2204
+ var R = {
2196
2205
  multVec: (c, f) => [
2197
2206
  c[0] * f[0] + c[1] * f[1] + c[2] * f[2] + c[3] * f[3],
2198
2207
  c[4] * f[0] + c[5] * f[1] + c[6] * f[2] + c[7] * f[3],
@@ -2250,10 +2259,10 @@ __useblocks__.define("static/core/b7a9d262.js", [
2250
2259
  function g(c) {
2251
2260
  i.setUint32(O, c, !0), O += 4;
2252
2261
  }
2253
- function C(c) {
2262
+ function R(c) {
2254
2263
  O += c;
2255
2264
  }
2256
- B(19778), g(A), C(4), g(122), g(108), g(H), g(-d >>> 0), B(1), B(32), g(3), g(m), g(2835), g(2835), C(8), g(16711680), g(65280), g(255), g(4278190080), g(1466527264), (function c() {
2265
+ B(19778), g(A), R(4), g(122), g(108), g(H), g(-d >>> 0), B(1), B(32), g(3), g(m), g(2835), g(2835), R(8), g(16711680), g(65280), g(255), g(4278190080), g(1466527264), (function c() {
2257
2266
  for (; D < d && b > 0;) {
2258
2267
  for (x = 122 + D * a, s = 0; s < e;) b--, h = u[M++], E = h >>> 24, i.setUint32(x + s, h << 8 | E), s += 4;
2259
2268
  D++;
@@ -2275,7 +2284,7 @@ __useblocks__.define("static/core/b7a9d262.js", [
2275
2284
  IE: "IE",
2276
2285
  IOS: "IOS",
2277
2286
  ETC: "ETC"
2278
- }, ge = {
2287
+ }, me = {
2279
2288
  [W.CHROME]: 16384,
2280
2289
  [W.FIREFOX]: 11180,
2281
2290
  [W.DESKTOP_SAFARI]: 16384,
@@ -2283,7 +2292,7 @@ __useblocks__.define("static/core/b7a9d262.js", [
2283
2292
  [W.IOS]: 4096,
2284
2293
  [W.ETC]: 8192
2285
2294
  };
2286
- const ee = typeof window < "u", Se = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope, Ae = ee && window.cordova && window.cordova.require && window.cordova.require("cordova/modulemapper"), Te = (ee || Se) && (Ae && Ae.getOriginalSymbol(window, "File") || typeof File < "u" && File), it = (ee || Se) && (Ae && Ae.getOriginalSymbol(window, "FileReader") || typeof FileReader < "u" && FileReader);
2295
+ const ee = typeof window < "u", Ce = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope, Ae = ee && window.cordova && window.cordova.require && window.cordova.require("cordova/modulemapper"), Te = (ee || Ce) && (Ae && Ae.getOriginalSymbol(window, "File") || typeof File < "u" && File), it = (ee || Ce) && (Ae && Ae.getOriginalSymbol(window, "FileReader") || typeof FileReader < "u" && FileReader);
2287
2296
  function De(P, T, H = Date.now()) {
2288
2297
  return new Promise(((d) => {
2289
2298
  const e = P.split(","), t = e[0].match(/:(.*?);/)[1], u = globalThis.atob(e[1]);
@@ -2306,14 +2315,14 @@ __useblocks__.define("static/core/b7a9d262.js", [
2306
2315
  d.onload = () => T(d), d.onerror = (e) => H(e), d.src = P;
2307
2316
  }));
2308
2317
  }
2309
- function me() {
2310
- if (me.cachedResult !== void 0) return me.cachedResult;
2318
+ function pe() {
2319
+ if (pe.cachedResult !== void 0) return pe.cachedResult;
2311
2320
  let P = W.ETC;
2312
2321
  const { userAgent: T } = navigator;
2313
- return /Chrom(e|ium)/i.test(T) ? P = W.CHROME : /iP(ad|od|hone)/i.test(T) && /WebKit/i.test(T) ? P = W.IOS : /Safari/i.test(T) ? P = W.DESKTOP_SAFARI : /Firefox/i.test(T) ? P = W.FIREFOX : (/MSIE/i.test(T) || document.documentMode) && (P = W.IE), me.cachedResult = P, me.cachedResult;
2322
+ return /Chrom(e|ium)/i.test(T) ? P = W.CHROME : /iP(ad|od|hone)/i.test(T) && /WebKit/i.test(T) ? P = W.IOS : /Safari/i.test(T) ? P = W.DESKTOP_SAFARI : /Firefox/i.test(T) ? P = W.FIREFOX : (/MSIE/i.test(T) || document.documentMode) && (P = W.IE), pe.cachedResult = P, pe.cachedResult;
2314
2323
  }
2315
- function Ce(P, T) {
2316
- const H = ge[me()];
2324
+ function Se(P, T) {
2325
+ const H = me[pe()];
2317
2326
  let d = P, e = T, t = d * e;
2318
2327
  const u = d > e ? e / d : d / e;
2319
2328
  for (; t > H * H;) {
@@ -2335,7 +2344,7 @@ __useblocks__.define("static/core/b7a9d262.js", [
2335
2344
  return H.width = P, H.height = T, [H, d];
2336
2345
  }
2337
2346
  function Xe(P, T) {
2338
- const { width: H, height: d } = Ce(P.width, P.height), [e, t] = He(H, d);
2347
+ const { width: H, height: d } = Se(P.width, P.height), [e, t] = He(H, d);
2339
2348
  return T && /jpe?g/.test(T) && (t.fillStyle = "white", t.fillRect(0, 0, e.width, e.height)), t.drawImage(P, 0, 0, e.width, e.height), e;
2340
2349
  }
2341
2350
  function Ve() {
@@ -2395,7 +2404,7 @@ __useblocks__.define("static/core/b7a9d262.js", [
2395
2404
  }
2396
2405
  };
2397
2406
  try {
2398
- if (Ve() || [W.DESKTOP_SAFARI, W.MOBILE_SAFARI].includes(me())) throw new Error("Skip createImageBitmap on IOS and Safari");
2407
+ if (Ve() || [W.DESKTOP_SAFARI, W.MOBILE_SAFARI].includes(pe())) throw new Error("Skip createImageBitmap on IOS and Safari");
2399
2408
  return createImageBitmap(P).then((function(m) {
2400
2409
  try {
2401
2410
  return e = m, u();
@@ -2490,7 +2499,7 @@ __useblocks__.define("static/core/b7a9d262.js", [
2490
2499
  }), T);
2491
2500
  }));
2492
2501
  }
2493
- function xt(P) {
2502
+ function Ct(P) {
2494
2503
  return new Promise(((T, H) => {
2495
2504
  const d = new it();
2496
2505
  d.onload = (e) => {
@@ -2522,7 +2531,7 @@ __useblocks__.define("static/core/b7a9d262.js", [
2522
2531
  let t, u = P;
2523
2532
  return isFinite(e) && (H > e || d > e) && ([u, t] = He(H, d), H > d ? (u.width = e, u.height = d / H * e) : (u.width = H / d * e, u.height = e), t.drawImage(P, 0, 0, u.width, u.height), Ie(P)), u;
2524
2533
  }
2525
- function Ct(P, T) {
2534
+ function Rt(P, T) {
2526
2535
  const { width: H } = P, { height: d } = P, [e, t] = He(H, d);
2527
2536
  switch (T > 4 && T < 9 ? (e.width = d, e.height = H) : (e.width = H, e.height = d), T) {
2528
2537
  case 2:
@@ -2547,9 +2556,9 @@ __useblocks__.define("static/core/b7a9d262.js", [
2547
2556
  }
2548
2557
  return t.drawImage(P, 0, 0, H, d), Ie(P), e;
2549
2558
  }
2550
- function Rt(P, T, H = 0) {
2559
+ function Pt(P, T, H = 0) {
2551
2560
  return new Promise((function(d, e) {
2552
- let t, u, a, m, A, r, i, n, s, h, E, x, b, D, O, M, B, g, C, c;
2561
+ let t, u, a, m, A, r, i, n, s, h, E, x, b, D, O, M, B, g, R, c;
2553
2562
  function f(y = 5) {
2554
2563
  if (T.signal && T.signal.aborted) throw T.signal.reason;
2555
2564
  t += y, T.onProgress(Math.min(t, 100));
@@ -2562,7 +2571,7 @@ __useblocks__.define("static/core/b7a9d262.js", [
2562
2571
  try {
2563
2572
  return [, m] = y, f(), A = St(m, T), f(), new Promise((function(w, U) {
2564
2573
  var p;
2565
- if (!(p = T.exifOrientation)) return xt(P).then(function(l) {
2574
+ if (!(p = T.exifOrientation)) return Ct(P).then(function(l) {
2566
2575
  try {
2567
2576
  return p = l, I.call(this);
2568
2577
  } catch (o) {
@@ -2577,15 +2586,15 @@ __useblocks__.define("static/core/b7a9d262.js", [
2577
2586
  try {
2578
2587
  return r = w, f(), Ke().then(function(U) {
2579
2588
  try {
2580
- return i = U ? A : Ct(A, r), f(), n = T.initialQuality || 1, s = T.fileType || P.type, at(i, s, P.name, P.lastModified, n).then(function(p) {
2589
+ return i = U ? A : Rt(A, r), f(), n = T.initialQuality || 1, s = T.fileType || P.type, at(i, s, P.name, P.lastModified, n).then(function(p) {
2581
2590
  try {
2582
2591
  {
2583
2592
  let l = function() {
2584
2593
  if (u-- && (O > a || O > b)) {
2585
2594
  let L, F;
2586
- return L = c ? .95 * C.width : C.width, F = c ? .95 * C.height : C.height, [B, g] = He(L, F), g.drawImage(C, 0, 0, L, F), n *= s === "image/png" ? .85 : .95, at(B, s, P.name, P.lastModified, n).then((function(k) {
2595
+ return L = c ? .95 * R.width : R.width, F = c ? .95 * R.height : R.height, [B, g] = He(L, F), g.drawImage(R, 0, 0, L, F), n *= s === "image/png" ? .85 : .95, at(B, s, P.name, P.lastModified, n).then((function(k) {
2587
2596
  try {
2588
- return M = k, Ie(C), C = B, O = M.size, v(Math.min(99, Math.floor((D - O) / (D - a) * 100))), l;
2597
+ return M = k, Ie(R), R = B, O = M.size, v(Math.min(99, Math.floor((D - O) / (D - a) * 100))), l;
2589
2598
  } catch (X) {
2590
2599
  return e(X);
2591
2600
  }
@@ -2593,11 +2602,11 @@ __useblocks__.define("static/core/b7a9d262.js", [
2593
2602
  }
2594
2603
  return [1];
2595
2604
  }, o = function() {
2596
- return Ie(C), Ie(B), Ie(A), Ie(i), Ie(m), v(100), d(M);
2605
+ return Ie(R), Ie(B), Ie(A), Ie(i), Ie(m), v(100), d(M);
2597
2606
  };
2598
2607
  if (h = p, f(), E = h.size > a, x = h.size > P.size, !E && !x) return v(100), d(h);
2599
2608
  var I;
2600
- return b = P.size, D = h.size, O = D, C = i, c = !T.alwaysKeepResolution && E, (I = function(L) {
2609
+ return b = P.size, D = h.size, O = D, R = i, c = !T.alwaysKeepResolution && E, (I = function(L) {
2601
2610
  for (; L;) {
2602
2611
  if (L.then) return void L.then(I, e);
2603
2612
  try {
@@ -2629,7 +2638,7 @@ __useblocks__.define("static/core/b7a9d262.js", [
2629
2638
  }.bind(this), e);
2630
2639
  }));
2631
2640
  }
2632
- const vn = `
2641
+ const wn = `
2633
2642
  let scriptImported = false
2634
2643
  self.addEventListener('message', async (e) => {
2635
2644
  const { file, id, imageCompressionLibUrl, options } = e.data
@@ -2650,12 +2659,12 @@ self.addEventListener('message', async (e) => {
2650
2659
  })
2651
2660
  `;
2652
2661
  let mt;
2653
- function bn(P, T) {
2662
+ function yn(P, T) {
2654
2663
  return new Promise(((H, d) => {
2655
2664
  mt || (mt = (function(u) {
2656
2665
  const a = [];
2657
2666
  return typeof u == "function" ? a.push(`(${u})()`) : a.push(u), URL.createObjectURL(new Blob(a));
2658
- })(vn));
2667
+ })(wn));
2659
2668
  const e = new Worker(mt);
2660
2669
  e.addEventListener("message", (function(u) {
2661
2670
  if (T.signal && T.signal.aborted) e.terminate();
@@ -2676,14 +2685,14 @@ self.addEventListener('message', async (e) => {
2676
2685
  });
2677
2686
  }));
2678
2687
  }
2679
- function pe(P, T) {
2688
+ function ve(P, T) {
2680
2689
  return new Promise((function(H, d) {
2681
2690
  let e, t, u, a, m, A;
2682
2691
  if (e = { ...T }, u = 0, {onProgress: a} = e, e.maxSizeMB = e.maxSizeMB || Number.POSITIVE_INFINITY, m = typeof e.useWebWorker != "boolean" || e.useWebWorker, delete e.useWebWorker, e.onProgress = (s) => {
2683
2692
  u = s, typeof a == "function" && a(u);
2684
2693
  }, !(P instanceof Blob || P instanceof Te)) return d(new Error("The file given is not an instance of Blob or File"));
2685
2694
  if (!/^image/.test(P.type)) return d(new Error("The file given is not an image"));
2686
- if (A = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope, !m || typeof Worker != "function" || A) return Rt(P, e).then(function(s) {
2695
+ if (A = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope, !m || typeof Worker != "function" || A) return Pt(P, e).then(function(s) {
2687
2696
  try {
2688
2697
  return t = s, n.call(this);
2689
2698
  } catch (h) {
@@ -2698,7 +2707,7 @@ self.addEventListener('message', async (e) => {
2698
2707
  }
2699
2708
  }.bind(this), i = function(s) {
2700
2709
  try {
2701
- return Rt(P, e).then((function(h) {
2710
+ return Pt(P, e).then((function(h) {
2702
2711
  try {
2703
2712
  return t = h, r();
2704
2713
  } catch (E) {
@@ -2710,7 +2719,7 @@ self.addEventListener('message', async (e) => {
2710
2719
  }
2711
2720
  };
2712
2721
  try {
2713
- return e.libURL = e.libURL || "https://cdn.jsdelivr.net/npm/browser-image-compression@2.0.2/dist/browser-image-compression.js", bn(P, e).then((function(s) {
2722
+ return e.libURL = e.libURL || "https://cdn.jsdelivr.net/npm/browser-image-compression@2.0.2/dist/browser-image-compression.js", yn(P, e).then((function(s) {
2714
2723
  try {
2715
2724
  return t = s, r();
2716
2725
  } catch {
@@ -2731,15 +2740,15 @@ self.addEventListener('message', async (e) => {
2731
2740
  }
2732
2741
  }));
2733
2742
  }
2734
- return pe.getDataUrlFromFile = qe, pe.getFilefromDataUrl = De, pe.loadImage = $e, pe.drawImageInCanvas = Xe, pe.drawFileInCanvas = ot, pe.canvasToFile = at, pe.getExifOrientation = xt, pe.handleMaxWidthOrHeight = St, pe.followExifOrientation = Ct, pe.cleanupCanvasMemory = Ie, pe.isAutoOrientationInBrowser = Ke, pe.approximateBelowMaximumCanvasSizeOfBrowser = Ce, pe.copyExifWithoutOrientation = G, pe.getBrowserName = me, pe.version = "2.0.2", pe;
2743
+ return ve.getDataUrlFromFile = qe, ve.getFilefromDataUrl = De, ve.loadImage = $e, ve.drawImageInCanvas = Xe, ve.drawFileInCanvas = ot, ve.canvasToFile = at, ve.getExifOrientation = Ct, ve.handleMaxWidthOrHeight = St, ve.followExifOrientation = Rt, ve.cleanupCanvasMemory = Ie, ve.isAutoOrientationInBrowser = Ke, ve.approximateBelowMaximumCanvasSizeOfBrowser = Se, ve.copyExifWithoutOrientation = G, ve.getBrowserName = pe, ve.version = "2.0.2", ve;
2735
2744
  }));
2736
- })), Zt = bt.__toESM(Kt()), ht = (_) => {
2745
+ })), Vt = bt.__toESM(qt()), ht = (_) => {
2737
2746
  if (!_) return "image/png";
2738
- const R = _.toLowerCase();
2739
- return R.includes("jpeg") || R.includes("jpg") || R.includes("pjpeg") ? "image/jpeg" : R.includes("png") ? "image/png" : R.includes("gif") ? "image/gif" : R.includes("webp") ? "image/webp" : R.includes("svg") ? "image/svg+xml" : "image/png";
2740
- }, _t = (_) => {
2741
- const R = ht(_).split("/")[1];
2742
- return R === "svg+xml" ? "svg" : R || "png";
2747
+ const S = _.toLowerCase();
2748
+ return S.includes("jpeg") || S.includes("jpg") || S.includes("pjpeg") ? "image/jpeg" : S.includes("png") ? "image/png" : S.includes("gif") ? "image/gif" : S.includes("webp") ? "image/webp" : S.includes("svg") ? "image/svg+xml" : "image/png";
2749
+ }, Ut = (_) => {
2750
+ const S = ht(_).split("/")[1];
2751
+ return S === "svg+xml" ? "svg" : S || "png";
2743
2752
  };
2744
2753
  function tt(_) {
2745
2754
  switch (_.trim().split(".").pop()?.toLowerCase()) {
@@ -2752,36 +2761,36 @@ self.addEventListener('message', async (e) => {
2752
2761
  default: return;
2753
2762
  }
2754
2763
  }
2755
- function Ut(_) {
2764
+ function Et(_) {
2756
2765
  if (_.type?.startsWith?.("image/")) return !0;
2757
- const R = (_.name ?? "").trim();
2758
- if (tt(R)) return !0;
2766
+ const S = (_.name ?? "").trim();
2767
+ if (tt(S)) return !0;
2759
2768
  const N = (_.type ?? "").toLowerCase();
2760
- return N.includes("svg") ? !0 : N === "text/xml" || N === "application/xml" || N === "text/plain" ? R.toLowerCase().endsWith(".svg") : !1;
2769
+ return N.includes("svg") ? !0 : N === "text/xml" || N === "application/xml" || N === "text/plain" ? S.toLowerCase().endsWith(".svg") : !1;
2761
2770
  }
2762
2771
  var nt = {
2763
2772
  MAX_SIZE_MB: .48,
2764
2773
  MAX_WIDTH_OR_HEIGHT: 2e3,
2765
2774
  QUALITY: .8
2766
- }, qt = ["gif", "svg"];
2767
- function Vt(_) {
2768
- return !qt.includes(_);
2775
+ }, Yt = ["gif", "svg"];
2776
+ function Jt(_) {
2777
+ return !Yt.includes(_);
2769
2778
  }
2770
- function Et(_) {
2779
+ function Ft(_) {
2771
2780
  return {
2772
2781
  maxSizeMB: _?.compressMaxSize ?? nt.MAX_SIZE_MB,
2773
2782
  maxWidthOrHeight: _?.compressMaxWidthOrHeight ?? nt.MAX_WIDTH_OR_HEIGHT
2774
2783
  };
2775
2784
  }
2776
- function Ft(_) {
2785
+ function It(_) {
2777
2786
  if (!_) return null;
2778
- const R = _.trim();
2779
- if (R.endsWith("%")) return null;
2780
- const N = parseFloat(R.replace(/px$/i, ""));
2787
+ const S = _.trim();
2788
+ if (S.endsWith("%")) return null;
2789
+ const N = parseFloat(S.replace(/px$/i, ""));
2781
2790
  return Number.isFinite(N) && N > 0 ? N : null;
2782
2791
  }
2783
- function Yt(_) {
2784
- const R = _.match(/<\s*svg\b[\s\S]*?>/i)?.[0] ?? "", N = R.match(/\bwidth\s*=\s*["']([^"']*)["']/i)?.[1], G = R.match(/\bheight\s*=\s*["']([^"']*)["']/i)?.[1], K = Ft(N), $ = Ft(G);
2792
+ function en(_) {
2793
+ const S = _.match(/<\s*svg\b[\s\S]*?>/i)?.[0] ?? "", N = S.match(/\bwidth\s*=\s*["']([^"']*)["']/i)?.[1], G = S.match(/\bheight\s*=\s*["']([^"']*)["']/i)?.[1], K = It(N), $ = It(G);
2785
2794
  if (K != null && $ != null) return {
2786
2795
  width: K,
2787
2796
  height: $
@@ -2808,9 +2817,9 @@ self.addEventListener('message', async (e) => {
2808
2817
  height: 300
2809
2818
  };
2810
2819
  }
2811
- function Jt(_, R = 2, N = 4096) {
2812
- const { width: G, height: K } = Yt(_);
2813
- let $ = Math.max(1, Math.round(G * R)), V = Math.max(1, Math.round(K * R));
2820
+ function tn(_, S = 2, N = 4096) {
2821
+ const { width: G, height: K } = en(_);
2822
+ let $ = Math.max(1, Math.round(G * S)), V = Math.max(1, Math.round(K * S));
2814
2823
  const Z = Math.max(64, N), Y = Math.max($, V);
2815
2824
  if (Y > Z) {
2816
2825
  const W = Z / Y;
@@ -2821,100 +2830,100 @@ self.addEventListener('message', async (e) => {
2821
2830
  height: V
2822
2831
  };
2823
2832
  }
2824
- function en(_) {
2825
- return new Promise((R, N) => {
2833
+ function nn(_) {
2834
+ return new Promise((S, N) => {
2826
2835
  _.toBlob((G) => {
2827
- G ? R(G) : N(new Error("canvas.toBlob returned null"));
2836
+ G ? S(G) : N(new Error("canvas.toBlob returned null"));
2828
2837
  }, "image/png");
2829
2838
  });
2830
2839
  }
2831
- async function tn(_, R, N) {
2840
+ async function rn(_, S, N) {
2832
2841
  const G = new Blob([_], { type: "image/svg+xml;charset=utf-8" }), K = URL.createObjectURL(G);
2833
2842
  try {
2834
2843
  const $ = new Image();
2835
- await new Promise((ge, ee) => {
2836
- $.onload = () => ge(), $.onerror = () => ee(new Error("Failed to load SVG image")), $.src = K;
2844
+ await new Promise((me, ee) => {
2845
+ $.onload = () => me(), $.onerror = () => ee(new Error("Failed to load SVG image")), $.src = K;
2837
2846
  });
2838
- const V = document.createElement("canvas"), Z = Math.max(1, Math.round(R)), Y = Math.max(1, Math.round(N));
2847
+ const V = document.createElement("canvas"), Z = Math.max(1, Math.round(S)), Y = Math.max(1, Math.round(N));
2839
2848
  V.width = Z, V.height = Y;
2840
2849
  const W = V.getContext("2d");
2841
2850
  if (!W) throw new Error("Canvas 2D context is not available");
2842
- return W.clearRect(0, 0, Z, Y), W.drawImage($, 0, 0, Z, Y), en(V);
2851
+ return W.clearRect(0, 0, Z, Y), W.drawImage($, 0, 0, Z, Y), nn(V);
2843
2852
  } finally {
2844
2853
  URL.revokeObjectURL(K);
2845
2854
  }
2846
2855
  }
2847
- var nn = 24e3;
2848
- async function rn(_, R = nn) {
2849
- const N = Math.min(R, Math.max(0, _.size));
2856
+ var on = 24e3;
2857
+ async function an(_, S = on) {
2858
+ const N = Math.min(S, Math.max(0, _.size));
2850
2859
  return _.slice(0, N).text();
2851
2860
  }
2852
- function on(_) {
2853
- const R = _.trimStart().replace(/^\uFEFF/, "");
2854
- return R.startsWith("<") ? /<\s*svg[\s>/]/i.test(R) : !1;
2861
+ function sn(_) {
2862
+ const S = _.trimStart().replace(/^\uFEFF/, "");
2863
+ return S.startsWith("<") ? /<\s*svg[\s>/]/i.test(S) : !1;
2855
2864
  }
2856
- async function an(_, R = {}) {
2857
- const N = R.pixelScale ?? 2, G = R.maxLongEdge ?? 4096, K = await _.text(), { width: $, height: V } = Jt(K, N, G), Z = await tn(K, $, V), Y = R.outputFileName ?? _.name, W = /\.svg$/i.test(Y) ? Y.replace(/\.svg$/i, ".png") : `${Y}.png`;
2865
+ async function fn(_, S = {}) {
2866
+ const N = S.pixelScale ?? 2, G = S.maxLongEdge ?? 4096, K = await _.text(), { width: $, height: V } = tn(K, N, G), Z = await rn(K, $, V), Y = S.outputFileName ?? _.name, W = /\.svg$/i.test(Y) ? Y.replace(/\.svg$/i, ".png") : `${Y}.png`;
2858
2867
  return new File([Z], W, {
2859
2868
  type: "image/png",
2860
2869
  lastModified: _.lastModified
2861
2870
  });
2862
2871
  }
2863
- function rt(_, R, N, G) {
2864
- return new File([_], R, {
2872
+ function rt(_, S, N, G) {
2873
+ return new File([_], S, {
2865
2874
  type: N,
2866
2875
  lastModified: G
2867
2876
  });
2868
2877
  }
2869
- function gt(_, R) {
2870
- return !R || R === _.name ? _ : rt(_, R, _.type, _.lastModified);
2878
+ function gt(_, S) {
2879
+ return !S || S === _.name ? _ : rt(_, S, _.type, _.lastModified);
2871
2880
  }
2872
- function sn(_, R, N, G) {
2873
- const K = G ?? R.name;
2874
- return _ instanceof File ? _.type !== N || _.lastModified !== R.lastModified || _.name !== K ? rt(_, K, N, R.lastModified) : _ : rt(_, K, N, R.lastModified);
2881
+ function cn(_, S, N, G) {
2882
+ const K = G ?? S.name;
2883
+ return _ instanceof File ? _.type !== N || _.lastModified !== S.lastModified || _.name !== K ? rt(_, K, N, S.lastModified) : _ : rt(_, K, N, S.lastModified);
2875
2884
  }
2876
- function fn(_, R) {
2877
- const N = R.startsWith(".") ? R.slice(1) : R, G = _.lastIndexOf(".");
2885
+ function ln(_, S) {
2886
+ const N = S.startsWith(".") ? S.slice(1) : S, G = _.lastIndexOf(".");
2878
2887
  return G > 0 ? `${_.substring(0, G)}.${N}` : `${_}.${N}`;
2879
2888
  }
2880
- function cn(_) {
2889
+ function un(_) {
2881
2890
  return _ === "image/webp" ? "image/jpeg" : _;
2882
2891
  }
2883
- async function It(_, R = {}) {
2884
- const { maxSizeMB: N = nt.MAX_SIZE_MB, maxWidthOrHeight: G = nt.MAX_WIDTH_OR_HEIGHT, mimeType: K, fileName: $, libURL: V, enableCompression: Z = !0, convertSvgToPng: Y = !1 } = R;
2892
+ async function Mt(_, S = {}) {
2893
+ const { maxSizeMB: N = nt.MAX_SIZE_MB, maxWidthOrHeight: G = nt.MAX_WIDTH_OR_HEIGHT, mimeType: K, fileName: $, libURL: V, enableCompression: Z = !0, convertSvgToPng: Y = !1 } = S;
2885
2894
  if (!_ || !(_ instanceof File)) return _;
2886
- let W = _, ge = !1;
2895
+ let W = _, me = !1;
2887
2896
  if (Y) {
2888
- const me = (W.type || "").toLowerCase(), Ce = /\.svg$/i.test(W.name.trim()), He = me.includes("svg");
2897
+ const pe = (W.type || "").toLowerCase(), Se = /\.svg$/i.test(W.name.trim()), He = pe.includes("svg");
2889
2898
  let Xe = !1;
2890
- if (!He && !Ce) try {
2891
- Xe = on(await rn(W));
2899
+ if (!He && !Se) try {
2900
+ Xe = sn(await an(W));
2892
2901
  } catch {
2893
2902
  Xe = !1;
2894
2903
  }
2895
- if (He || Ce || Xe) try {
2896
- W = await an(W, {
2904
+ if (He || Se || Xe) try {
2905
+ W = await fn(W, {
2897
2906
  maxLongEdge: G,
2898
2907
  outputFileName: $ ?? W.name
2899
- }), ge = !0;
2908
+ }), me = !0;
2900
2909
  } catch {
2901
2910
  W = _;
2902
2911
  }
2903
2912
  }
2904
- const ee = ht((W.type && W.type.trim() !== "" ? W.type : tt(W.name)) || (ge ? "image/png" : K) || "image/jpeg"), Se = ge ? W.name : $ ?? W.name;
2905
- if (!ee.startsWith("image/")) return gt(W, Se);
2906
- const Ae = cn(ee), Te = _t(ee), it = _t(Ae), De = Ae !== ee ? fn(Se, it) : Se, qe = Z && Vt(Te);
2913
+ const ee = ht((W.type && W.type.trim() !== "" ? W.type : tt(W.name)) || (me ? "image/png" : K) || "image/jpeg"), Ce = me ? W.name : $ ?? W.name;
2914
+ if (!ee.startsWith("image/")) return gt(W, Ce);
2915
+ const Ae = un(ee), Te = Ut(ee), it = Ut(Ae), De = Ae !== ee ? ln(Ce, it) : Ce, qe = Z && Jt(Te);
2907
2916
  if (!qe && Ae === ee) return gt(W, De);
2908
2917
  const $e = W.type === ee ? W : rt(W, W.name, ee, W.lastModified);
2909
2918
  try {
2910
- const me = {
2919
+ const pe = {
2911
2920
  libURL: V,
2912
2921
  useWebWorker: !0,
2913
2922
  fileType: Ae
2914
2923
  };
2915
- qe ? (me.maxSizeMB = N, me.maxWidthOrHeight = G) : (me.maxSizeMB = Math.max($e.size / (1024 * 1024) + 1, 1), me.initialQuality = 1, me.alwaysKeepResolution = !0);
2916
- const Ce = await (0, Zt.default)($e, me);
2917
- return sn(Ce, $e, ht(Ce.type || Ae), De);
2924
+ qe ? (pe.maxSizeMB = N, pe.maxWidthOrHeight = G) : (pe.maxSizeMB = Math.max($e.size / (1024 * 1024) + 1, 1), pe.initialQuality = 1, pe.alwaysKeepResolution = !0);
2925
+ const Se = await (0, Vt.default)($e, pe);
2926
+ return cn(Se, $e, ht(Se.type || Ae), De);
2918
2927
  } catch {
2919
2928
  try {
2920
2929
  return gt(W, De);
@@ -2923,14 +2932,14 @@ self.addEventListener('message', async (e) => {
2923
2932
  }
2924
2933
  }
2925
2934
  }
2926
- var ln = "js/browser-image-compression.js";
2927
- function Mt() {
2928
- return Ot.getBundledHostAssetUrl(ln);
2935
+ var dn = "js/browser-image-compression.js";
2936
+ function xt() {
2937
+ return Lt.getBundledHostAssetUrl(dn);
2929
2938
  }
2930
- async function un(_, R, N = Mt()) {
2931
- if (!Ut(_)) return _;
2932
- const { maxSizeMB: G, maxWidthOrHeight: K } = Et(R), $ = _.type?.trim() || tt(_.name) || _.type || "";
2933
- return It(_, {
2939
+ async function hn(_, S, N = xt()) {
2940
+ if (!Et(_)) return _;
2941
+ const { maxSizeMB: G, maxWidthOrHeight: K } = Ft(S), $ = _.type?.trim() || tt(_.name) || _.type || "";
2942
+ return Mt(_, {
2934
2943
  maxSizeMB: G,
2935
2944
  maxWidthOrHeight: K,
2936
2945
  mimeType: $ || void 0,
@@ -2940,49 +2949,49 @@ self.addEventListener('message', async (e) => {
2940
2949
  convertSvgToPng: !0
2941
2950
  });
2942
2951
  }
2943
- async function dn(_, R) {
2952
+ async function gn(_, S) {
2944
2953
  if (!_ || typeof _.findFileByUrl != "function") return null;
2945
- const N = await _.findFileByUrl(R);
2954
+ const N = await _.findFileByUrl(S);
2946
2955
  if (!N) return null;
2947
- const G = typeof _.getFileById == "function" && N.id && await _.getFileById(N.id) || N, K = G.url || R, $ = G.thumbnailUrl || G.thumbnail || K || (typeof _.getThumbnailUrl == "function" ? await _.getThumbnailUrl(G) : "") || "";
2956
+ const G = typeof _.getFileById == "function" && N.id && await _.getFileById(N.id) || N, K = G.url || S, $ = G.thumbnailUrl || G.thumbnail || K || (typeof _.getThumbnailUrl == "function" ? await _.getThumbnailUrl(G) : "") || "";
2948
2957
  return $ ? {
2949
2958
  file: G,
2950
2959
  previewUrl: $
2951
2960
  } : null;
2952
2961
  }
2953
- function hn(_) {
2962
+ function mn(_) {
2954
2963
  if (!(_ instanceof Blob) || _.size === 0) throw new st.Jn("Failed to download file from the URL.", "UploadUrlDownloadFailed");
2955
- const R = _.type?.split(";")[0]?.trim() || "image/png";
2956
- if (!R.startsWith("image/")) throw new st.Jn("Content type at the URL is not allowed.", "UploadUrlContentTypeNotAllowed");
2964
+ const S = _.type?.split(";")[0]?.trim() || "image/png";
2965
+ if (!S.startsWith("image/")) throw new st.Jn("Content type at the URL is not allowed.", "UploadUrlContentTypeNotAllowed");
2957
2966
  return {
2958
2967
  blob: _,
2959
- mimeType: R
2968
+ mimeType: S
2960
2969
  };
2961
2970
  }
2962
- async function gn(_, R) {
2963
- const N = await fetch(_, R);
2971
+ async function pn(_, S) {
2972
+ const N = await fetch(_, S);
2964
2973
  if (!N.ok) throw new Error(`Server returned ${N.status}`);
2965
2974
  return N.blob();
2966
2975
  }
2967
- async function mn(_, R, N) {
2976
+ async function vn(_, S, N) {
2968
2977
  const G = N ? { signal: N } : void 0, { blob: K } = await st.gi(_, {
2969
- handleFileProxy: async ($) => wt.pickFileProxyBlobFromFireResults(await R.fireFileProxy($)) ?? null,
2970
- handleProxyUrl: async ($) => wt.pickProxyUrlOverrideFromFireResults(await R.fireProxyUrl($), $),
2978
+ handleFileProxy: async ($) => wt.pickFileProxyBlobFromFireResults(await S.fireFileProxy($)) ?? null,
2979
+ handleProxyUrl: async ($) => wt.pickProxyUrlOverrideFromFireResults(await S.fireProxyUrl($), $),
2971
2980
  fetchWithProxy: ($, V, Z) => Ee.fetchWithResourceProxy($, {
2972
- config: R.appConfig,
2973
- standalone: R.isStandalone,
2981
+ config: S.appConfig,
2982
+ standalone: S.isStandalone,
2974
2983
  intent: Z?.intent || "downloadBlob",
2975
2984
  validateBlob: async (Y) => !Y.type || Y.type.startsWith("image/"),
2976
2985
  init: V
2977
2986
  })
2978
- }, ($) => gn($, G), hn, { fetchInit: G });
2987
+ }, ($) => pn($, G), mn, { fetchInit: G });
2979
2988
  return K;
2980
2989
  }
2981
- function pn() {
2982
- const _ = Ee.useAppConfig(), R = Ee.useIsStandalone(), N = Ee.useSelector(Ee.selectProject), { projectId: G } = (0, kt.useParams)(), K = N?.id !== void 0 ? String(N.id) : G || "", $ = Ee.useEventEmitter(Ee.events.FILE_PROXY_EVENT_ID), V = Ee.useEventEmitter(Ee.events.PROXY_URL_EVENT_ID);
2983
- return (0, Lt.useCallback)(async (Z, Y) => mn(Z, {
2990
+ function bn() {
2991
+ const _ = Ee.useAppConfig(), S = Ee.useIsStandalone(), N = Ee.useSelector(Ee.selectProject), { projectId: G } = (0, Bt.useParams)(), K = N?.id !== void 0 ? String(N.id) : G || "", $ = Ee.useEventEmitter(Ee.events.FILE_PROXY_EVENT_ID), V = Ee.useEventEmitter(Ee.events.PROXY_URL_EVENT_ID);
2992
+ return (0, kt.useCallback)(async (Z, Y) => vn(Z, {
2984
2993
  appConfig: _,
2985
- isStandalone: R,
2994
+ isStandalone: S,
2986
2995
  fireFileProxy: (W) => $.fire({
2987
2996
  url: W,
2988
2997
  project: K
@@ -2994,85 +3003,95 @@ self.addEventListener('message', async (e) => {
2994
3003
  }, Y), [
2995
3004
  _,
2996
3005
  K,
2997
- R,
3006
+ S,
2998
3007
  $,
2999
3008
  V
3000
3009
  ]);
3001
3010
  }
3002
- Object.defineProperty(be, "canonicalImageUrlKey", {
3011
+ Object.defineProperty(ge, "canonicalImageUrlKey", {
3003
3012
  enumerable: !0,
3004
3013
  get: function() {
3005
3014
  return dt;
3006
3015
  }
3007
- }), Object.defineProperty(be, "createImageUrlBlobResolver", {
3016
+ }), Object.defineProperty(ge, "createImageUrlBlobResolver", {
3008
3017
  enumerable: !0,
3009
3018
  get: function() {
3010
- return Xt;
3019
+ return Zt;
3011
3020
  }
3012
- }), Object.defineProperty(be, "getAiTariffUpgradeStep", {
3021
+ }), Object.defineProperty(ge, "getAiTariffUpgradeStep", {
3013
3022
  enumerable: !0,
3014
3023
  get: function() {
3015
- return Qt;
3024
+ return $t;
3016
3025
  }
3017
- }), Object.defineProperty(be, "getBrowserImageCompressionLibUrl", {
3026
+ }), Object.defineProperty(ge, "getBrowserImageCompressionLibUrl", {
3018
3027
  enumerable: !0,
3019
3028
  get: function() {
3020
- return Mt;
3029
+ return xt;
3021
3030
  }
3022
- }), Object.defineProperty(be, "getImageDimensionsFromBlob", {
3031
+ }), Object.defineProperty(ge, "getImageDimensionsFromBlob", {
3023
3032
  enumerable: !0,
3024
3033
  get: function() {
3025
- return $t;
3034
+ return Kt;
3026
3035
  }
3027
- }), Object.defineProperty(be, "inferImageMimeFromFileName", {
3036
+ }), Object.defineProperty(ge, "inferImageMimeFromFileName", {
3028
3037
  enumerable: !0,
3029
3038
  get: function() {
3030
3039
  return tt;
3031
3040
  }
3032
- }), Object.defineProperty(be, "isAllowedImageUploadFile", {
3041
+ }), Object.defineProperty(ge, "isAiLimitReached", {
3033
3042
  enumerable: !0,
3034
3043
  get: function() {
3035
- return Ut;
3044
+ return Ht;
3036
3045
  }
3037
- }), Object.defineProperty(be, "normalizeImageFormatForDisplay", {
3046
+ }), Object.defineProperty(ge, "isAllowedImageUploadFile", {
3038
3047
  enumerable: !0,
3039
3048
  get: function() {
3040
- return Gt;
3049
+ return Et;
3050
+ }
3051
+ }), Object.defineProperty(ge, "normalizeImageFormatForDisplay", {
3052
+ enumerable: !0,
3053
+ get: function() {
3054
+ return Xt;
3041
3055
  }
3042
- }), Object.defineProperty(be, "prepareImageForEditorUpload", {
3056
+ }), Object.defineProperty(ge, "prepareImageForEditorUpload", {
3043
3057
  enumerable: !0,
3044
3058
  get: function() {
3045
- return un;
3059
+ return hn;
3046
3060
  }
3047
- }), Object.defineProperty(be, "prepareImageForUpload", {
3061
+ }), Object.defineProperty(ge, "prepareImageForUpload", {
3048
3062
  enumerable: !0,
3049
3063
  get: function() {
3050
- return It;
3064
+ return Mt;
3051
3065
  }
3052
- }), Object.defineProperty(be, "resolveAutoLimitUpgrade", {
3066
+ }), Object.defineProperty(ge, "resolveAutoLimitUpgrade", {
3053
3067
  enumerable: !0,
3054
3068
  get: function() {
3055
- return Wt;
3069
+ return Gt;
3056
3070
  }
3057
- }), Object.defineProperty(be, "resolveDataProviderPreview", {
3071
+ }), Object.defineProperty(ge, "resolveDataProviderPreview", {
3058
3072
  enumerable: !0,
3059
3073
  get: function() {
3060
- return dn;
3074
+ return gn;
3061
3075
  }
3062
- }), Object.defineProperty(be, "resolveImageCompressionLimits", {
3076
+ }), Object.defineProperty(ge, "resolveImageCompressionLimits", {
3063
3077
  enumerable: !0,
3064
3078
  get: function() {
3065
- return Et;
3079
+ return Ft;
3080
+ }
3081
+ }), Object.defineProperty(ge, "shouldCountAiUsage", {
3082
+ enumerable: !0,
3083
+ get: function() {
3084
+ return yt;
3066
3085
  }
3067
- }), Object.defineProperty(be, "useCookieManager", {
3086
+ }), Object.defineProperty(ge, "useCookieManager", {
3068
3087
  enumerable: !0,
3069
3088
  get: function() {
3070
- return Bt;
3089
+ return Dt;
3071
3090
  }
3072
- }), Object.defineProperty(be, "useImageBlobFetch", {
3091
+ }), Object.defineProperty(ge, "useImageBlobFetch", {
3073
3092
  enumerable: !0,
3074
3093
  get: function() {
3075
- return pn;
3094
+ return bn;
3076
3095
  }
3077
3096
  });
3078
3097
  });