@imagemagick/magick-wasm 0.0.20 → 0.0.21
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/README.md +1 -1
- package/dist/index.d.ts +10 -4
- package/dist/index.mjs +262 -261
- package/dist/index.umd.js +6 -6
- package/dist/magick.wasm +0 -0
- package/package.json +7 -6
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
gn = r;
|
|
7
|
-
}
|
|
8
|
-
};
|
|
1
|
+
var wr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate = 1] = "Activate", r[r.Associate = 2] = "Associate", r[r.Background = 3] = "Background", r[r.Copy = 4] = "Copy", r[r.Deactivate = 5] = "Deactivate", r[r.Discrete = 6] = "Discrete", r[r.Disassociate = 7] = "Disassociate", r[r.Extract = 8] = "Extract", r[r.Off = 9] = "Off", r[r.On = 10] = "On", r[r.Opaque = 11] = "Opaque", r[r.Remove = 12] = "Remove", r[r.Set = 13] = "Set", r[r.Shape = 14] = "Shape", r[r.Transparent = 15] = "Transparent", r))(wr || {}), Os = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Kapur = 1] = "Kapur", r[r.OTSU = 2] = "OTSU", r[r.Triangle = 3] = "Triangle", r))(Os || {});
|
|
2
|
+
function eu(r) {
|
|
3
|
+
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
4
|
+
}
|
|
5
|
+
var kr = { exports: {} };
|
|
9
6
|
(function(r, i) {
|
|
10
7
|
var o = (() => {
|
|
11
8
|
var f = typeof document < "u" && document.currentScript ? document.currentScript.src : void 0;
|
|
@@ -63,40 +60,40 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
63
60
|
t || ke(n);
|
|
64
61
|
}
|
|
65
62
|
var V, O, ee, Fe, k, R, yt, wt;
|
|
66
|
-
function
|
|
63
|
+
function dn() {
|
|
67
64
|
var t = pt.buffer;
|
|
68
65
|
e.HEAP8 = V = new Int8Array(t), e.HEAP16 = ee = new Int16Array(t), e.HEAP32 = k = new Int32Array(t), e.HEAPU8 = O = new Uint8Array(t), e.HEAPU16 = Fe = new Uint16Array(t), e.HEAPU32 = R = new Uint32Array(t), e.HEAPF32 = yt = new Float32Array(t), e.HEAPF64 = wt = new Float64Array(t);
|
|
69
66
|
}
|
|
70
|
-
var
|
|
71
|
-
function
|
|
67
|
+
var hn, yn = [], wn = [], kn = [], Pr = 0;
|
|
68
|
+
function vn() {
|
|
72
69
|
return Cr || Pr > 0;
|
|
73
70
|
}
|
|
74
71
|
function Gr() {
|
|
75
72
|
if (e.preRun)
|
|
76
73
|
for (typeof e.preRun == "function" && (e.preRun = [e.preRun]); e.preRun.length; )
|
|
77
74
|
Rr(e.preRun.shift());
|
|
78
|
-
Xt(
|
|
75
|
+
Xt(yn);
|
|
79
76
|
}
|
|
80
77
|
function br() {
|
|
81
|
-
!e.noFSInit && !l.init.initialized && l.init(), l.ignorePermissions = !1, J.root = l.mount(J, {}, null), Xt(
|
|
78
|
+
!e.noFSInit && !l.init.initialized && l.init(), l.ignorePermissions = !1, J.root = l.mount(J, {}, null), Xt(wn);
|
|
82
79
|
}
|
|
83
80
|
function Er() {
|
|
84
81
|
if (e.postRun)
|
|
85
82
|
for (typeof e.postRun == "function" && (e.postRun = [e.postRun]); e.postRun.length; )
|
|
86
83
|
Tr(e.postRun.shift());
|
|
87
|
-
Xt(
|
|
84
|
+
Xt(kn);
|
|
88
85
|
}
|
|
89
86
|
function Rr(t) {
|
|
90
|
-
|
|
87
|
+
yn.unshift(t);
|
|
91
88
|
}
|
|
92
89
|
function Ar(t) {
|
|
93
|
-
|
|
90
|
+
wn.unshift(t);
|
|
94
91
|
}
|
|
95
92
|
function Tr(t) {
|
|
96
|
-
|
|
93
|
+
kn.unshift(t);
|
|
97
94
|
}
|
|
98
95
|
var Le = 0, Oe = null;
|
|
99
|
-
function
|
|
96
|
+
function Pu(t) {
|
|
100
97
|
return t;
|
|
101
98
|
}
|
|
102
99
|
function kt(t) {
|
|
@@ -114,15 +111,15 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
114
111
|
throw S(n), n;
|
|
115
112
|
}
|
|
116
113
|
var Lr = "data:application/octet-stream;base64,";
|
|
117
|
-
function
|
|
114
|
+
function Sn(t) {
|
|
118
115
|
return t.startsWith(Lr);
|
|
119
116
|
}
|
|
120
117
|
function vt(t) {
|
|
121
118
|
return t.startsWith("file://");
|
|
122
119
|
}
|
|
123
120
|
var Ue;
|
|
124
|
-
Ue = "magick.wasm",
|
|
125
|
-
function
|
|
121
|
+
Ue = "magick.wasm", Sn(Ue) || (Ue = Dr(Ue));
|
|
122
|
+
function In(t) {
|
|
126
123
|
try {
|
|
127
124
|
if (t == Ue && Je)
|
|
128
125
|
return new Uint8Array(Je);
|
|
@@ -141,7 +138,7 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
141
138
|
throw "failed to load wasm binary file at '" + t + "'";
|
|
142
139
|
return n.arrayBuffer();
|
|
143
140
|
}).catch(function() {
|
|
144
|
-
return
|
|
141
|
+
return In(t);
|
|
145
142
|
});
|
|
146
143
|
if (Qe)
|
|
147
144
|
return new Promise(function(n, a) {
|
|
@@ -151,10 +148,10 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
151
148
|
});
|
|
152
149
|
}
|
|
153
150
|
return Promise.resolve().then(function() {
|
|
154
|
-
return
|
|
151
|
+
return In(t);
|
|
155
152
|
});
|
|
156
153
|
}
|
|
157
|
-
function
|
|
154
|
+
function Mn(t, n, a) {
|
|
158
155
|
return Wr(t).then(function(s) {
|
|
159
156
|
return WebAssembly.instantiate(s, n);
|
|
160
157
|
}).then(function(s) {
|
|
@@ -164,18 +161,18 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
164
161
|
});
|
|
165
162
|
}
|
|
166
163
|
function Br(t, n, a, s) {
|
|
167
|
-
return !t && typeof WebAssembly.instantiateStreaming == "function" && !
|
|
164
|
+
return !t && typeof WebAssembly.instantiateStreaming == "function" && !Sn(n) && !vt(n) && !_e && typeof fetch == "function" ? fetch(n, { credentials: "same-origin" }).then(function(u) {
|
|
168
165
|
var _ = WebAssembly.instantiateStreaming(u, a);
|
|
169
166
|
return _.then(s, function(c) {
|
|
170
|
-
return be("wasm streaming compile failed: " + c), be("falling back to ArrayBuffer instantiation"),
|
|
167
|
+
return be("wasm streaming compile failed: " + c), be("falling back to ArrayBuffer instantiation"), Mn(n, a, s);
|
|
171
168
|
});
|
|
172
|
-
}) :
|
|
169
|
+
}) : Mn(n, a, s);
|
|
173
170
|
}
|
|
174
171
|
function xr() {
|
|
175
172
|
var t = { a: Is };
|
|
176
173
|
function n(s, u) {
|
|
177
174
|
var _ = s.exports;
|
|
178
|
-
return e.asm = _, pt = e.asm.gb,
|
|
175
|
+
return e.asm = _, pt = e.asm.gb, dn(), hn = e.asm.Ab, Ar(e.asm.hb), et(), _;
|
|
179
176
|
}
|
|
180
177
|
kt();
|
|
181
178
|
function a(s) {
|
|
@@ -190,7 +187,7 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
190
187
|
return Br(Je, Ue, t, a).catch(S), {};
|
|
191
188
|
}
|
|
192
189
|
var b, x;
|
|
193
|
-
function
|
|
190
|
+
function Dn(t) {
|
|
194
191
|
this.name = "ExitStatus", this.message = "Program terminated with exit(" + t + ")", this.status = t;
|
|
195
192
|
}
|
|
196
193
|
function Xt(t) {
|
|
@@ -252,13 +249,13 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
252
249
|
var St = [];
|
|
253
250
|
function K(t) {
|
|
254
251
|
var n = St[t];
|
|
255
|
-
return n || (t >= St.length && (St.length = t + 1), St[t] = n =
|
|
252
|
+
return n || (t >= St.length && (St.length = t + 1), St[t] = n = hn.get(t)), n;
|
|
256
253
|
}
|
|
257
254
|
function Hr(t, n) {
|
|
258
255
|
K(t)(n);
|
|
259
256
|
}
|
|
260
257
|
var je = 0;
|
|
261
|
-
function
|
|
258
|
+
function Cn(t) {
|
|
262
259
|
this.excPtr = t, this.ptr = t - 24, this.set_type = function(n) {
|
|
263
260
|
R[this.ptr + 4 >> 2] = n;
|
|
264
261
|
}, this.get_type = function() {
|
|
@@ -282,7 +279,7 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
282
279
|
}, this.get_adjusted_ptr = function() {
|
|
283
280
|
return R[this.ptr + 16 >> 2];
|
|
284
281
|
}, this.get_exception_ptr = function() {
|
|
285
|
-
var n =
|
|
282
|
+
var n = _r(this.get_type());
|
|
286
283
|
if (n)
|
|
287
284
|
return R[this.excPtr >> 2];
|
|
288
285
|
var a = this.get_adjusted_ptr();
|
|
@@ -296,7 +293,7 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
296
293
|
var t = je;
|
|
297
294
|
if (!t)
|
|
298
295
|
return gt(0), 0;
|
|
299
|
-
var n = new
|
|
296
|
+
var n = new Cn(t);
|
|
300
297
|
n.set_adjusted_ptr(t);
|
|
301
298
|
var a = n.get_type();
|
|
302
299
|
if (!a)
|
|
@@ -306,14 +303,14 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
306
303
|
if (u === 0 || u === a)
|
|
307
304
|
break;
|
|
308
305
|
var _ = n.ptr + 16;
|
|
309
|
-
if (
|
|
306
|
+
if (lr(u, a, _))
|
|
310
307
|
return gt(u), t;
|
|
311
308
|
}
|
|
312
309
|
return gt(a), t;
|
|
313
310
|
}
|
|
314
311
|
var jr = Ur;
|
|
315
312
|
function Yr(t, n, a) {
|
|
316
|
-
var s = new
|
|
313
|
+
var s = new Cn(t);
|
|
317
314
|
throw s.init(n, a), je = t, je;
|
|
318
315
|
}
|
|
319
316
|
var U = { isAbs: (t) => t.charAt(0) === "/", splitPath: (t) => {
|
|
@@ -507,9 +504,9 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
507
504
|
function Xr(t, n) {
|
|
508
505
|
return Math.ceil(t / n) * n;
|
|
509
506
|
}
|
|
510
|
-
function
|
|
507
|
+
function Pn(t) {
|
|
511
508
|
t = Xr(t, 65536);
|
|
512
|
-
var n =
|
|
509
|
+
var n = ur(65536, t);
|
|
513
510
|
return n ? Kt(n, t) : 0;
|
|
514
511
|
}
|
|
515
512
|
var L = { ops_table: null, mount: function(t) {
|
|
@@ -621,7 +618,7 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
621
618
|
if (!(u & 2) && g.buffer === V.buffer)
|
|
622
619
|
c = !1, _ = g.byteOffset;
|
|
623
620
|
else {
|
|
624
|
-
if ((a > 0 || a + n < g.length) && (g.subarray ? g = g.subarray(a, a + n) : g = Array.prototype.slice.call(g, a, a + n)), c = !0, _ =
|
|
621
|
+
if ((a > 0 || a + n < g.length) && (g.subarray ? g = g.subarray(a, a + n) : g = Array.prototype.slice.call(g, a, a + n)), c = !0, _ = Pn(n), !_)
|
|
625
622
|
throw new l.ErrnoError(48);
|
|
626
623
|
V.set(g, _);
|
|
627
624
|
}
|
|
@@ -1345,7 +1342,7 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
1345
1342
|
}
|
|
1346
1343
|
return h.read = (D, P, A, N, X) => (l.forceLoadFile(d), C(D, P, A, N, X)), h.mmap = (D, P, A, N, X) => {
|
|
1347
1344
|
l.forceLoadFile(d);
|
|
1348
|
-
var q =
|
|
1345
|
+
var q = Pn(P);
|
|
1349
1346
|
if (!q)
|
|
1350
1347
|
throw new l.ErrnoError(48);
|
|
1351
1348
|
return C(D, V, q, P, A), { ptr: q, allocated: !0 };
|
|
@@ -1361,12 +1358,12 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
1361
1358
|
}) || P(D);
|
|
1362
1359
|
}
|
|
1363
1360
|
kt(), typeof a == "string" ? qr(a, (D) => C(D), c) : C(a);
|
|
1364
|
-
} },
|
|
1361
|
+
} }, Gn = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0;
|
|
1365
1362
|
function Ye(t, n, a) {
|
|
1366
1363
|
for (var s = n + a, u = n; t[u] && !(u >= s); )
|
|
1367
1364
|
++u;
|
|
1368
|
-
if (u - n > 16 && t.buffer &&
|
|
1369
|
-
return
|
|
1365
|
+
if (u - n > 16 && t.buffer && Gn)
|
|
1366
|
+
return Gn.decode(t.subarray(n, u));
|
|
1370
1367
|
for (var _ = ""; n < u; ) {
|
|
1371
1368
|
var c = t[n++];
|
|
1372
1369
|
if (!(c & 128)) {
|
|
@@ -1690,13 +1687,13 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
1690
1687
|
throw new l.ErrnoError(8);
|
|
1691
1688
|
return n;
|
|
1692
1689
|
}
|
|
1693
|
-
function
|
|
1694
|
-
return k[
|
|
1690
|
+
function bn(t) {
|
|
1691
|
+
return k[ir() >> 2] = t, t;
|
|
1695
1692
|
}
|
|
1696
1693
|
function Qt(t) {
|
|
1697
1694
|
return (t & 255) + "." + (t >> 8 & 255) + "." + (t >> 16 & 255) + "." + (t >> 24 & 255);
|
|
1698
1695
|
}
|
|
1699
|
-
function
|
|
1696
|
+
function En(t) {
|
|
1700
1697
|
var n = "", a = 0, s = 0, u = 0, _ = 0, c = 0, g = 0, d = [t[0] & 65535, t[0] >> 16, t[1] & 65535, t[1] >> 16, t[2] & 65535, t[2] >> 16, t[3] & 65535, t[3] >> 16], h = !0, v = "";
|
|
1701
1698
|
for (g = 0; g < 5; g++)
|
|
1702
1699
|
if (d[g] !== 0) {
|
|
@@ -1731,7 +1728,7 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
1731
1728
|
case 10:
|
|
1732
1729
|
if (n !== 28)
|
|
1733
1730
|
return { errno: 28 };
|
|
1734
|
-
u = [k[t + 8 >> 2], k[t + 12 >> 2], k[t + 16 >> 2], k[t + 20 >> 2]], u =
|
|
1731
|
+
u = [k[t + 8 >> 2], k[t + 12 >> 2], k[t + 16 >> 2], k[t + 20 >> 2]], u = En(u);
|
|
1735
1732
|
break;
|
|
1736
1733
|
default:
|
|
1737
1734
|
return { errno: 5 };
|
|
@@ -1783,7 +1780,7 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
1783
1780
|
}, lookup_addr: function(t) {
|
|
1784
1781
|
return ce.address_map.names[t] ? ce.address_map.names[t] : null;
|
|
1785
1782
|
} };
|
|
1786
|
-
function
|
|
1783
|
+
function Rn(t, n, a) {
|
|
1787
1784
|
if (a && t === 0)
|
|
1788
1785
|
return null;
|
|
1789
1786
|
var s = Kr(t, n);
|
|
@@ -1793,7 +1790,7 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
1793
1790
|
}
|
|
1794
1791
|
function Qr(t, n, a, s, u, _) {
|
|
1795
1792
|
try {
|
|
1796
|
-
var c = Mt(t), g =
|
|
1793
|
+
var c = Mt(t), g = Rn(n, a);
|
|
1797
1794
|
return c.sock_ops.connect(c, g.addr, g.port), 0;
|
|
1798
1795
|
} catch (d) {
|
|
1799
1796
|
if (typeof l > "u" || d.name !== "ErrnoError")
|
|
@@ -1886,7 +1883,7 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
1886
1883
|
case 8:
|
|
1887
1884
|
return -28;
|
|
1888
1885
|
case 9:
|
|
1889
|
-
return
|
|
1886
|
+
return bn(28), -1;
|
|
1890
1887
|
default:
|
|
1891
1888
|
return -28;
|
|
1892
1889
|
}
|
|
@@ -2052,7 +2049,7 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
2052
2049
|
return -g.errno;
|
|
2053
2050
|
}
|
|
2054
2051
|
}
|
|
2055
|
-
function
|
|
2052
|
+
function An(t, n, a, s, u) {
|
|
2056
2053
|
switch (n) {
|
|
2057
2054
|
case 2:
|
|
2058
2055
|
a = tt(a), Kt(t, 16), u && (k[u >> 2] = 16), ee[t >> 1] = n, k[t + 4 >> 2] = a, ee[t + 2 >> 1] = Wt(s);
|
|
@@ -2071,7 +2068,7 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
2071
2068
|
if (!g)
|
|
2072
2069
|
return 0;
|
|
2073
2070
|
if (u)
|
|
2074
|
-
var d =
|
|
2071
|
+
var d = An(u, c.family, ce.lookup_name(g.addr), g.port, _);
|
|
2075
2072
|
return O.set(g.buffer, n), g.buffer.byteLength;
|
|
2076
2073
|
} catch (h) {
|
|
2077
2074
|
if (typeof l > "u" || h.name !== "ErrnoError")
|
|
@@ -2090,7 +2087,7 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
2090
2087
|
}
|
|
2091
2088
|
function ma(t, n, a, s, u, _) {
|
|
2092
2089
|
try {
|
|
2093
|
-
var c = Mt(t), g =
|
|
2090
|
+
var c = Mt(t), g = Rn(u, _, !0);
|
|
2094
2091
|
return g ? c.sock_ops.sendmsg(c, V, n, a, g.addr, g.port) : l.write(c.stream, V, n, a);
|
|
2095
2092
|
} catch (d) {
|
|
2096
2093
|
if (typeof l > "u" || d.name !== "ErrnoError")
|
|
@@ -2136,7 +2133,7 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
2136
2133
|
}
|
|
2137
2134
|
}
|
|
2138
2135
|
var Ct = {};
|
|
2139
|
-
function
|
|
2136
|
+
function Tn(t) {
|
|
2140
2137
|
for (; t.length; ) {
|
|
2141
2138
|
var n = t.pop(), a = t.pop();
|
|
2142
2139
|
a(n);
|
|
@@ -2169,9 +2166,9 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
2169
2166
|
return this.message === void 0 ? this.name : this.name + ": " + this.message;
|
|
2170
2167
|
}, a;
|
|
2171
2168
|
}
|
|
2172
|
-
var
|
|
2169
|
+
var Ln = void 0;
|
|
2173
2170
|
function bt(t) {
|
|
2174
|
-
throw new
|
|
2171
|
+
throw new Ln(t);
|
|
2175
2172
|
}
|
|
2176
2173
|
function en(t, n, a) {
|
|
2177
2174
|
t.forEach(function(g) {
|
|
@@ -2200,7 +2197,7 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
2200
2197
|
var v = d.fieldName, C = c[h], D = d.getter, P = d.getterContext, A = c[h + u.length], N = d.setter, X = d.setterContext;
|
|
2201
2198
|
g[v] = { read: (q) => C.fromWireType(D(P, q)), write: (q, I) => {
|
|
2202
2199
|
var G = [];
|
|
2203
|
-
N(X, q, A.toWireType(G, I)),
|
|
2200
|
+
N(X, q, A.toWireType(G, I)), Tn(G);
|
|
2204
2201
|
} };
|
|
2205
2202
|
}), [{ name: n.name, fromWireType: function(d) {
|
|
2206
2203
|
var h = {};
|
|
@@ -2237,12 +2234,12 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
2237
2234
|
function Ia() {
|
|
2238
2235
|
for (var t = new Array(256), n = 0; n < 256; ++n)
|
|
2239
2236
|
t[n] = String.fromCharCode(n);
|
|
2240
|
-
|
|
2237
|
+
Wn = t;
|
|
2241
2238
|
}
|
|
2242
|
-
var
|
|
2239
|
+
var Wn = void 0;
|
|
2243
2240
|
function te(t) {
|
|
2244
2241
|
for (var n = "", a = t; O[a]; )
|
|
2245
|
-
n +=
|
|
2242
|
+
n += Wn[O[a++]];
|
|
2246
2243
|
return n;
|
|
2247
2244
|
}
|
|
2248
2245
|
var at = void 0;
|
|
@@ -2301,25 +2298,25 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
2301
2298
|
z(n(t) + " instance already deleted");
|
|
2302
2299
|
}
|
|
2303
2300
|
var nn = !1;
|
|
2304
|
-
function
|
|
2301
|
+
function Bn(t) {
|
|
2305
2302
|
}
|
|
2306
2303
|
function Pa(t) {
|
|
2307
2304
|
t.smartPtr ? t.smartPtrType.rawDestructor(t.smartPtr) : t.ptrType.registeredClass.rawDestructor(t.ptr);
|
|
2308
2305
|
}
|
|
2309
|
-
function
|
|
2306
|
+
function xn(t) {
|
|
2310
2307
|
t.count.value -= 1;
|
|
2311
2308
|
var n = t.count.value === 0;
|
|
2312
2309
|
n && Pa(t);
|
|
2313
2310
|
}
|
|
2314
|
-
function
|
|
2311
|
+
function Nn(t, n, a) {
|
|
2315
2312
|
if (n === a)
|
|
2316
2313
|
return t;
|
|
2317
2314
|
if (a.baseClass === void 0)
|
|
2318
2315
|
return null;
|
|
2319
|
-
var s =
|
|
2316
|
+
var s = Nn(t, n, a.baseClass);
|
|
2320
2317
|
return s === null ? null : a.downcast(s);
|
|
2321
2318
|
}
|
|
2322
|
-
var
|
|
2319
|
+
var zn = {};
|
|
2323
2320
|
function Ga() {
|
|
2324
2321
|
return Object.keys(ut).length;
|
|
2325
2322
|
}
|
|
@@ -2371,17 +2368,17 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
2371
2368
|
function u() {
|
|
2372
2369
|
return this.isSmartPointer ? Rt(this.registeredClass.instancePrototype, { ptrType: this.pointeeType, ptr: n, smartPtrType: this, smartPtr: t }) : Rt(this.registeredClass.instancePrototype, { ptrType: this, ptr: t });
|
|
2373
2370
|
}
|
|
2374
|
-
var _ = this.registeredClass.getActualType(n), c =
|
|
2371
|
+
var _ = this.registeredClass.getActualType(n), c = zn[_];
|
|
2375
2372
|
if (!c)
|
|
2376
2373
|
return u.call(this);
|
|
2377
2374
|
var g;
|
|
2378
2375
|
this.isConst ? g = c.constPointerType : g = c.pointerType;
|
|
2379
|
-
var d =
|
|
2376
|
+
var d = Nn(n, this.registeredClass, g.registeredClass);
|
|
2380
2377
|
return d === null ? u.call(this) : this.isSmartPointer ? Rt(g.registeredClass.instancePrototype, { ptrType: g, ptr: d, smartPtrType: this, smartPtr: t }) : Rt(g.registeredClass.instancePrototype, { ptrType: g, ptr: d });
|
|
2381
2378
|
}
|
|
2382
2379
|
function ot(t) {
|
|
2383
2380
|
return typeof FinalizationRegistry > "u" ? (ot = (n) => n, t) : (nn = new FinalizationRegistry((n) => {
|
|
2384
|
-
|
|
2381
|
+
xn(n.$$);
|
|
2385
2382
|
}), ot = (n) => {
|
|
2386
2383
|
var a = n.$$, s = !!a.smartPtr;
|
|
2387
2384
|
if (s) {
|
|
@@ -2389,7 +2386,7 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
2389
2386
|
nn.register(n, u, n);
|
|
2390
2387
|
}
|
|
2391
2388
|
return n;
|
|
2392
|
-
},
|
|
2389
|
+
}, Bn = (n) => nn.unregister(n), ot(t));
|
|
2393
2390
|
}
|
|
2394
2391
|
function Wa() {
|
|
2395
2392
|
if (this.$$.ptr || tn(this), this.$$.preservePointerOnDelete)
|
|
@@ -2398,7 +2395,7 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
2398
2395
|
return t.$$.count.value += 1, t.$$.deleteScheduled = !1, t;
|
|
2399
2396
|
}
|
|
2400
2397
|
function Ba() {
|
|
2401
|
-
this.$$.ptr || tn(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && z("Object already scheduled for deletion"),
|
|
2398
|
+
this.$$.ptr || tn(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && z("Object already scheduled for deletion"), Bn(this), xn(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
|
|
2402
2399
|
}
|
|
2403
2400
|
function xa() {
|
|
2404
2401
|
return !this.$$.ptr;
|
|
@@ -2488,7 +2485,7 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
2488
2485
|
function Se(t, n, a, s, u, _, c, g, d, h, v) {
|
|
2489
2486
|
this.name = t, this.registeredClass = n, this.isReference = a, this.isConst = s, this.isSmartPointer = u, this.pointeeType = _, this.sharingPolicy = c, this.rawGetPointee = g, this.rawConstructor = d, this.rawShare = h, this.rawDestructor = v, !u && n.baseClass === void 0 ? s ? (this.toWireType = Ua, this.destructorFunction = null) : (this.toWireType = Ya, this.destructorFunction = null) : this.toWireType = ja;
|
|
2490
2487
|
}
|
|
2491
|
-
function
|
|
2488
|
+
function Hn(t, n, a) {
|
|
2492
2489
|
e.hasOwnProperty(t) || bt("Replacing nonexistant public symbol"), e[t].overloadTable !== void 0 && a !== void 0 ? e[t].overloadTable[a] = n : (e[t] = n, e[t].argCount = a);
|
|
2493
2490
|
}
|
|
2494
2491
|
function Ka(t, n, a) {
|
|
@@ -2515,12 +2512,12 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
2515
2512
|
var s = a();
|
|
2516
2513
|
return typeof s != "function" && z("unknown function pointer with signature " + t + ": " + n), s;
|
|
2517
2514
|
}
|
|
2518
|
-
var
|
|
2519
|
-
function
|
|
2520
|
-
var n =
|
|
2515
|
+
var Fn = void 0;
|
|
2516
|
+
function Un(t) {
|
|
2517
|
+
var n = sr(t), a = te(n);
|
|
2521
2518
|
return De(n), a;
|
|
2522
2519
|
}
|
|
2523
|
-
function
|
|
2520
|
+
function jn(t, n) {
|
|
2524
2521
|
var a = [], s = {};
|
|
2525
2522
|
function u(_) {
|
|
2526
2523
|
if (!s[_] && !xe[_]) {
|
|
@@ -2531,13 +2528,13 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
2531
2528
|
a.push(_), s[_] = !0;
|
|
2532
2529
|
}
|
|
2533
2530
|
}
|
|
2534
|
-
throw n.forEach(u), new
|
|
2531
|
+
throw n.forEach(u), new Fn(t + ": " + a.map(Un).join([", "]));
|
|
2535
2532
|
}
|
|
2536
2533
|
function Za(t, n, a, s, u, _, c, g, d, h, v, C, D) {
|
|
2537
2534
|
v = te(v), _ = Ie(u, _), g && (g = Ie(c, g)), h && (h = Ie(d, h)), D = Ie(C, D);
|
|
2538
2535
|
var P = Zt(v);
|
|
2539
2536
|
an(P, function() {
|
|
2540
|
-
|
|
2537
|
+
jn("Cannot construct " + v + " due to unbound types", [s]);
|
|
2541
2538
|
}), en([t, n, a], s ? [s] : [], function(A) {
|
|
2542
2539
|
A = A[0];
|
|
2543
2540
|
var N, X;
|
|
@@ -2554,7 +2551,7 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
2554
2551
|
}), I = Object.create(X, { constructor: { value: q } });
|
|
2555
2552
|
q.prototype = I;
|
|
2556
2553
|
var G = new Fa(v, q, I, D, N, _, g, h), H = new Se(v, G, !0, !1, !1), F = new Se(v + "*", G, !1, !1, !1), ae = new Se(v + " const*", G, !1, !0, !1);
|
|
2557
|
-
return
|
|
2554
|
+
return zn[t] = { pointerType: F, constPointerType: ae }, Hn(P, q), [H, F, ae];
|
|
2558
2555
|
});
|
|
2559
2556
|
}
|
|
2560
2557
|
function Oa() {
|
|
@@ -2568,7 +2565,7 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
2568
2565
|
};
|
|
2569
2566
|
}
|
|
2570
2567
|
var oe = new Oa();
|
|
2571
|
-
function
|
|
2568
|
+
function Yn(t) {
|
|
2572
2569
|
t >= oe.reserved && --oe.get(t).refcount === 0 && oe.free(t);
|
|
2573
2570
|
}
|
|
2574
2571
|
function ei() {
|
|
@@ -2596,7 +2593,7 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
2596
2593
|
function ni(t, n) {
|
|
2597
2594
|
n = te(n), pe(t, { name: n, fromWireType: function(a) {
|
|
2598
2595
|
var s = de.toValue(a);
|
|
2599
|
-
return
|
|
2596
|
+
return Yn(a), s;
|
|
2600
2597
|
}, toWireType: function(a, s) {
|
|
2601
2598
|
return de.toHandle(s);
|
|
2602
2599
|
}, argPackAdvance: 8, readValueFromPointer: rt, destructorFunction: null });
|
|
@@ -2633,12 +2630,12 @@ var kr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Activate
|
|
|
2633
2630
|
return g.value;
|
|
2634
2631
|
}, argPackAdvance: 8, readValueFromPointer: ri(n, u, s), destructorFunction: null }), an(n, _);
|
|
2635
2632
|
}
|
|
2636
|
-
function
|
|
2633
|
+
function $n(t, n) {
|
|
2637
2634
|
var a = xe[t];
|
|
2638
|
-
return a === void 0 && z(n + " has unknown type " +
|
|
2635
|
+
return a === void 0 && z(n + " has unknown type " + Un(t)), a;
|
|
2639
2636
|
}
|
|
2640
2637
|
function ii(t, n, a) {
|
|
2641
|
-
var s =
|
|
2638
|
+
var s = $n(t, "enum");
|
|
2642
2639
|
n = te(n);
|
|
2643
2640
|
var u = s.constructor, _ = Object.create(s.constructor.prototype, { value: { value: a }, constructor: { value: Gt(s.name + "_" + n, function() {
|
|
2644
2641
|
}) } });
|
|
@@ -2698,7 +2695,7 @@ throwBindingError('function ` + t + " called with ' + arguments.length + ' argum
|
|
|
2698
2695
|
`;
|
|
2699
2696
|
d && (P += `var destructors = [];
|
|
2700
2697
|
`);
|
|
2701
|
-
var A = d ? "destructors" : "null", N = ["throwBindingError", "invoker", "fn", "runDestructors", "retType", "classParam"], X = [z, s, u,
|
|
2698
|
+
var A = d ? "destructors" : "null", N = ["throwBindingError", "invoker", "fn", "runDestructors", "retType", "classParam"], X = [z, s, u, Tn, n[0], n[1]];
|
|
2702
2699
|
g && (P += "var thisWired = classParam.toWireType(" + A + `, this);
|
|
2703
2700
|
`);
|
|
2704
2701
|
for (var h = 0; h < c - 2; ++h)
|
|
@@ -2727,10 +2724,10 @@ return ret;
|
|
|
2727
2724
|
function ci(t, n, a, s, u, _, c) {
|
|
2728
2725
|
var g = _i(n, a);
|
|
2729
2726
|
t = te(t), u = Ie(s, u), an(t, function() {
|
|
2730
|
-
|
|
2727
|
+
jn("Cannot call " + t + " due to unbound types", g);
|
|
2731
2728
|
}, n - 1), en([], g, function(d) {
|
|
2732
2729
|
var h = [d[0], null].concat(d.slice(1));
|
|
2733
|
-
return
|
|
2730
|
+
return Hn(t, li(t, h, null, u, _, c), n - 1), [];
|
|
2734
2731
|
});
|
|
2735
2732
|
}
|
|
2736
2733
|
function gi(t, n, a) {
|
|
@@ -2820,12 +2817,12 @@ return ret;
|
|
|
2820
2817
|
De(s);
|
|
2821
2818
|
} });
|
|
2822
2819
|
}
|
|
2823
|
-
var
|
|
2820
|
+
var Xn = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0;
|
|
2824
2821
|
function di(t, n) {
|
|
2825
2822
|
for (var a = t, s = a >> 1, u = s + n / 2; !(s >= u) && Fe[s]; )
|
|
2826
2823
|
++s;
|
|
2827
|
-
if (a = s << 1, a - t > 32 &&
|
|
2828
|
-
return
|
|
2824
|
+
if (a = s << 1, a - t > 32 && Xn)
|
|
2825
|
+
return Xn.decode(O.subarray(t, a));
|
|
2829
2826
|
for (var _ = "", c = 0; !(c >= n / 2); ++c) {
|
|
2830
2827
|
var g = ee[t + c * 2 >> 1];
|
|
2831
2828
|
if (g == 0)
|
|
@@ -2952,15 +2949,15 @@ return ret;
|
|
|
2952
2949
|
t = de.toValue(t), n = de.toValue(n), a = de.toValue(a), t[n] = a;
|
|
2953
2950
|
}
|
|
2954
2951
|
function xi(t, n) {
|
|
2955
|
-
t =
|
|
2952
|
+
t = $n(t, "_emval_take_value");
|
|
2956
2953
|
var a = t.readValueFromPointer(n);
|
|
2957
2954
|
return de.toHandle(a);
|
|
2958
2955
|
}
|
|
2959
|
-
function
|
|
2956
|
+
function qn(t) {
|
|
2960
2957
|
return R[t >> 2] + k[t + 4 >> 2] * 4294967296;
|
|
2961
2958
|
}
|
|
2962
2959
|
function Ni(t, n) {
|
|
2963
|
-
var a = new Date(
|
|
2960
|
+
var a = new Date(qn(t) * 1e3);
|
|
2964
2961
|
k[n >> 2] = a.getUTCSeconds(), k[n + 4 >> 2] = a.getUTCMinutes(), k[n + 8 >> 2] = a.getUTCHours(), k[n + 12 >> 2] = a.getUTCDate(), k[n + 16 >> 2] = a.getUTCMonth(), k[n + 20 >> 2] = a.getUTCFullYear() - 1900, k[n + 24 >> 2] = a.getUTCDay();
|
|
2965
2962
|
var s = Date.UTC(a.getUTCFullYear(), 0, 1, 0, 0, 0, 0), u = (a.getTime() - s) / (1e3 * 60 * 60 * 24) | 0;
|
|
2966
2963
|
k[n + 28 >> 2] = u;
|
|
@@ -2969,14 +2966,14 @@ return ret;
|
|
|
2969
2966
|
return t % 4 === 0 && (t % 100 !== 0 || t % 400 === 0);
|
|
2970
2967
|
}
|
|
2971
2968
|
var zi = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335], Hi = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334];
|
|
2972
|
-
function
|
|
2969
|
+
function Vn(t) {
|
|
2973
2970
|
var n = lt(t.getFullYear()), a = n ? zi : Hi, s = a[t.getMonth()] + t.getDate() - 1;
|
|
2974
2971
|
return s;
|
|
2975
2972
|
}
|
|
2976
2973
|
function Fi(t, n) {
|
|
2977
|
-
var a = new Date(
|
|
2974
|
+
var a = new Date(qn(t) * 1e3);
|
|
2978
2975
|
k[n >> 2] = a.getSeconds(), k[n + 4 >> 2] = a.getMinutes(), k[n + 8 >> 2] = a.getHours(), k[n + 12 >> 2] = a.getDate(), k[n + 16 >> 2] = a.getMonth(), k[n + 20 >> 2] = a.getFullYear() - 1900, k[n + 24 >> 2] = a.getDay();
|
|
2979
|
-
var s =
|
|
2976
|
+
var s = Vn(a) | 0;
|
|
2980
2977
|
k[n + 28 >> 2] = s, k[n + 36 >> 2] = -(a.getTimezoneOffset() * 60);
|
|
2981
2978
|
var u = new Date(a.getFullYear(), 0, 1), _ = new Date(a.getFullYear(), 6, 1).getTimezoneOffset(), c = u.getTimezoneOffset(), g = (_ != c && a.getTimezoneOffset() == Math.min(c, _)) | 0;
|
|
2982
2979
|
k[n + 32 >> 2] = g;
|
|
@@ -2990,7 +2987,7 @@ return ret;
|
|
|
2990
2987
|
n.setTime(n.getTime() + (h - s) * 6e4);
|
|
2991
2988
|
}
|
|
2992
2989
|
k[t + 24 >> 2] = n.getDay();
|
|
2993
|
-
var v =
|
|
2990
|
+
var v = Vn(n) | 0;
|
|
2994
2991
|
return k[t + 28 >> 2] = v, k[t >> 2] = n.getSeconds(), k[t + 4 >> 2] = n.getMinutes(), k[t + 8 >> 2] = n.getHours(), k[t + 12 >> 2] = n.getDate(), k[t + 16 >> 2] = n.getMonth(), k[t + 20 >> 2] = n.getYear(), n.getTime() / 1e3 | 0;
|
|
2995
2992
|
}
|
|
2996
2993
|
function ji(t, n, a, s, u, _, c) {
|
|
@@ -3014,24 +3011,24 @@ return ret;
|
|
|
3014
3011
|
}
|
|
3015
3012
|
}
|
|
3016
3013
|
var _t = {};
|
|
3017
|
-
function
|
|
3018
|
-
if (t instanceof
|
|
3014
|
+
function Kn(t) {
|
|
3015
|
+
if (t instanceof Dn || t == "unwind")
|
|
3019
3016
|
return Ze;
|
|
3020
3017
|
Q(1, t);
|
|
3021
3018
|
}
|
|
3022
|
-
function
|
|
3023
|
-
Ze = t,
|
|
3019
|
+
function Qn(t) {
|
|
3020
|
+
Ze = t, vn() || (e.onExit && e.onExit(t), dt = !0), Q(t, new Dn(t));
|
|
3024
3021
|
}
|
|
3025
3022
|
function $i(t, n) {
|
|
3026
|
-
Ze = t,
|
|
3023
|
+
Ze = t, Qn(t);
|
|
3027
3024
|
}
|
|
3028
|
-
var
|
|
3025
|
+
var Jn = $i;
|
|
3029
3026
|
function Xi() {
|
|
3030
|
-
if (!
|
|
3027
|
+
if (!vn())
|
|
3031
3028
|
try {
|
|
3032
|
-
|
|
3029
|
+
Jn(Ze);
|
|
3033
3030
|
} catch (t) {
|
|
3034
|
-
|
|
3031
|
+
Kn(t);
|
|
3035
3032
|
}
|
|
3036
3033
|
}
|
|
3037
3034
|
function qi(t) {
|
|
@@ -3039,7 +3036,7 @@ return ret;
|
|
|
3039
3036
|
try {
|
|
3040
3037
|
t(), Xi();
|
|
3041
3038
|
} catch (n) {
|
|
3042
|
-
|
|
3039
|
+
Kn(n);
|
|
3043
3040
|
}
|
|
3044
3041
|
}
|
|
3045
3042
|
var At;
|
|
@@ -3051,7 +3048,7 @@ return ret;
|
|
|
3051
3048
|
if (_t[t] && (clearTimeout(_t[t].id), delete _t[t]), !n)
|
|
3052
3049
|
return 0;
|
|
3053
3050
|
var a = setTimeout(() => {
|
|
3054
|
-
delete _t[t], qi(() =>
|
|
3051
|
+
delete _t[t], qi(() => or(t, At()));
|
|
3055
3052
|
}, n);
|
|
3056
3053
|
return _t[t] = { id: a, timeout_ms: n }, 0;
|
|
3057
3054
|
}
|
|
@@ -3075,11 +3072,11 @@ return ret;
|
|
|
3075
3072
|
function Ji() {
|
|
3076
3073
|
return Date.now();
|
|
3077
3074
|
}
|
|
3078
|
-
function
|
|
3075
|
+
function Zn() {
|
|
3079
3076
|
return 2147483648;
|
|
3080
3077
|
}
|
|
3081
3078
|
function Zi() {
|
|
3082
|
-
return
|
|
3079
|
+
return Zn();
|
|
3083
3080
|
}
|
|
3084
3081
|
function Oi(t, n, a) {
|
|
3085
3082
|
O.copyWithin(t, n, n + a);
|
|
@@ -3087,14 +3084,14 @@ return ret;
|
|
|
3087
3084
|
function es(t) {
|
|
3088
3085
|
var n = pt.buffer;
|
|
3089
3086
|
try {
|
|
3090
|
-
return pt.grow(t - n.byteLength + 65535 >>> 16),
|
|
3087
|
+
return pt.grow(t - n.byteLength + 65535 >>> 16), dn(), 1;
|
|
3091
3088
|
} catch {
|
|
3092
3089
|
}
|
|
3093
3090
|
}
|
|
3094
3091
|
function ts(t) {
|
|
3095
3092
|
var n = O.length;
|
|
3096
3093
|
t = t >>> 0;
|
|
3097
|
-
var a =
|
|
3094
|
+
var a = Zn();
|
|
3098
3095
|
if (t > a)
|
|
3099
3096
|
return !1;
|
|
3100
3097
|
let s = (d, h) => d + (h - d % h) % h;
|
|
@@ -3163,7 +3160,7 @@ return ret;
|
|
|
3163
3160
|
return g.errno;
|
|
3164
3161
|
}
|
|
3165
3162
|
}
|
|
3166
|
-
function
|
|
3163
|
+
function On(t, n, a, s) {
|
|
3167
3164
|
for (var u = 0, _ = 0; _ < a; _++) {
|
|
3168
3165
|
var c = R[n >> 2], g = R[n + 4 >> 2];
|
|
3169
3166
|
n += 8;
|
|
@@ -3181,7 +3178,7 @@ return ret;
|
|
|
3181
3178
|
var c = nt(s, u);
|
|
3182
3179
|
if (isNaN(c))
|
|
3183
3180
|
return 61;
|
|
3184
|
-
var g = T.getStreamFromFD(t), d =
|
|
3181
|
+
var g = T.getStreamFromFD(t), d = On(g, n, a, c);
|
|
3185
3182
|
return R[_ >> 2] = d, 0;
|
|
3186
3183
|
} catch (h) {
|
|
3187
3184
|
if (typeof l > "u" || h.name !== "ErrnoError")
|
|
@@ -3189,7 +3186,7 @@ return ret;
|
|
|
3189
3186
|
return h.errno;
|
|
3190
3187
|
}
|
|
3191
3188
|
}
|
|
3192
|
-
function
|
|
3189
|
+
function er(t, n, a, s) {
|
|
3193
3190
|
for (var u = 0, _ = 0; _ < a; _++) {
|
|
3194
3191
|
var c = R[n >> 2], g = R[n + 4 >> 2];
|
|
3195
3192
|
n += 8;
|
|
@@ -3205,7 +3202,7 @@ return ret;
|
|
|
3205
3202
|
var c = nt(s, u);
|
|
3206
3203
|
if (isNaN(c))
|
|
3207
3204
|
return 61;
|
|
3208
|
-
var g = T.getStreamFromFD(t), d =
|
|
3205
|
+
var g = T.getStreamFromFD(t), d = er(g, n, a, c);
|
|
3209
3206
|
return R[_ >> 2] = d, 0;
|
|
3210
3207
|
} catch (h) {
|
|
3211
3208
|
if (typeof l > "u" || h.name !== "ErrnoError")
|
|
@@ -3215,7 +3212,7 @@ return ret;
|
|
|
3215
3212
|
}
|
|
3216
3213
|
function _s(t, n, a, s) {
|
|
3217
3214
|
try {
|
|
3218
|
-
var u = T.getStreamFromFD(t), _ =
|
|
3215
|
+
var u = T.getStreamFromFD(t), _ = On(u, n, a);
|
|
3219
3216
|
return R[s >> 2] = _, 0;
|
|
3220
3217
|
} catch (c) {
|
|
3221
3218
|
if (typeof l > "u" || c.name !== "ErrnoError")
|
|
@@ -3248,7 +3245,7 @@ return ret;
|
|
|
3248
3245
|
}
|
|
3249
3246
|
function fs(t, n, a, s) {
|
|
3250
3247
|
try {
|
|
3251
|
-
var u = T.getStreamFromFD(t), _ =
|
|
3248
|
+
var u = T.getStreamFromFD(t), _ = er(u, n, a);
|
|
3252
3249
|
return R[s >> 2] = _, 0;
|
|
3253
3250
|
} catch (c) {
|
|
3254
3251
|
if (typeof l > "u" || c.name !== "ErrnoError")
|
|
@@ -3260,7 +3257,7 @@ return ret;
|
|
|
3260
3257
|
var u = 0, _ = 0, c = 0, g = 0, d = 0, h = 0, v;
|
|
3261
3258
|
function C(D, P, A, N, X, q) {
|
|
3262
3259
|
var I, G, H, F;
|
|
3263
|
-
return G = D === 10 ? 28 : 16, X = D === 10 ?
|
|
3260
|
+
return G = D === 10 ? 28 : 16, X = D === 10 ? En(X) : Qt(X), I = Me(G), F = An(I, D, X, q), ht(!F), H = Me(32), k[H + 4 >> 2] = D, k[H + 8 >> 2] = P, k[H + 12 >> 2] = A, k[H + 24 >> 2] = N, R[H + 20 >> 2] = I, D === 10 ? k[H + 16 >> 2] = 28 : k[H + 16 >> 2] = 16, k[H + 28 >> 2] = 0, H;
|
|
3264
3261
|
}
|
|
3265
3262
|
if (a && (c = k[a >> 2], g = k[a + 4 >> 2], d = k[a + 8 >> 2], h = k[a + 12 >> 2]), d && !h && (h = d === 2 ? 17 : 6), !d && h && (d = h === 17 ? 2 : 1), h === 0 && (h = 6), d === 0 && (d = 1), !t && !n)
|
|
3266
3263
|
return -2;
|
|
@@ -3311,10 +3308,10 @@ return ret;
|
|
|
3311
3308
|
;
|
|
3312
3309
|
return a;
|
|
3313
3310
|
}
|
|
3314
|
-
var
|
|
3311
|
+
var tr = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], nr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
3315
3312
|
function ws(t, n) {
|
|
3316
3313
|
for (var a = new Date(t.getTime()); n > 0; ) {
|
|
3317
|
-
var s = lt(a.getFullYear()), u = a.getMonth(), _ = (s ?
|
|
3314
|
+
var s = lt(a.getFullYear()), u = a.getMonth(), _ = (s ? tr : nr)[u];
|
|
3318
3315
|
if (n > _ - a.getDate())
|
|
3319
3316
|
n -= _ - a.getDate() + 1, a.setDate(1), u < 11 ? a.setMonth(u + 1) : (a.setMonth(0), a.setFullYear(a.getFullYear() + 1));
|
|
3320
3317
|
else
|
|
@@ -3325,7 +3322,7 @@ return ret;
|
|
|
3325
3322
|
function ks(t, n) {
|
|
3326
3323
|
V.set(t, n);
|
|
3327
3324
|
}
|
|
3328
|
-
function
|
|
3325
|
+
function rr(t, n, a, s) {
|
|
3329
3326
|
var u = k[s + 40 >> 2], _ = { tm_sec: k[s >> 2], tm_min: k[s + 4 >> 2], tm_hour: k[s + 8 >> 2], tm_mday: k[s + 12 >> 2], tm_mon: k[s + 16 >> 2], tm_year: k[s + 20 >> 2], tm_wday: k[s + 24 >> 2], tm_yday: k[s + 28 >> 2], tm_isdst: k[s + 32 >> 2], tm_gmtoff: k[s + 36 >> 2], tm_zone: u ? me(u) : "" }, c = me(a), g = { "%c": "%a %b %d %H:%M:%S %Y", "%D": "%m/%d/%y", "%F": "%Y-%m-%d", "%h": "%b", "%r": "%I:%M:%S %p", "%R": "%H:%M", "%T": "%H:%M:%S", "%x": "%m/%d/%y", "%X": "%H:%M:%S", "%Ec": "%c", "%EC": "%C", "%Ex": "%m/%d/%y", "%EX": "%H:%M:%S", "%Ey": "%y", "%EY": "%Y", "%Od": "%d", "%Oe": "%e", "%OH": "%H", "%OI": "%I", "%Om": "%m", "%OM": "%M", "%OS": "%S", "%Ou": "%u", "%OU": "%U", "%OV": "%V", "%Ow": "%w", "%OW": "%W", "%Oy": "%y" };
|
|
3330
3327
|
for (var d in g)
|
|
3331
3328
|
c = c.replace(new RegExp(d, "g"), g[d]);
|
|
@@ -3392,7 +3389,7 @@ return ret;
|
|
|
3392
3389
|
var G = I.tm_hour;
|
|
3393
3390
|
return G == 0 ? G = 12 : G > 12 && (G -= 12), D(G, 2);
|
|
3394
3391
|
}, "%j": function(I) {
|
|
3395
|
-
return D(I.tm_mday + ys(lt(I.tm_year + 1900) ?
|
|
3392
|
+
return D(I.tm_mday + ys(lt(I.tm_year + 1900) ? tr : nr, I.tm_mon - 1), 3);
|
|
3396
3393
|
}, "%m": function(I) {
|
|
3397
3394
|
return D(I.tm_mon + 1, 2);
|
|
3398
3395
|
}, "%M": function(I) {
|
|
@@ -3449,7 +3446,7 @@ return ret;
|
|
|
3449
3446
|
return q.length > n ? 0 : (ks(q, t), q.length - 1);
|
|
3450
3447
|
}
|
|
3451
3448
|
function vs(t, n, a, s, u) {
|
|
3452
|
-
return
|
|
3449
|
+
return rr(t, n, a, s);
|
|
3453
3450
|
}
|
|
3454
3451
|
function Ss(t) {
|
|
3455
3452
|
if (_e) {
|
|
@@ -3483,12 +3480,12 @@ return ret;
|
|
|
3483
3480
|
}
|
|
3484
3481
|
return u(s.status, 0);
|
|
3485
3482
|
}
|
|
3486
|
-
return t ? (
|
|
3483
|
+
return t ? (bn(52), -1) : 0;
|
|
3487
3484
|
}
|
|
3488
|
-
var
|
|
3485
|
+
var ar = function(t, n, a, s) {
|
|
3489
3486
|
t || (t = this), this.parent = t, this.mount = t.mount, this.mounted = null, this.id = l.nextInode++, this.name = n, this.mode = a, this.node_ops = {}, this.stream_ops = {}, this.rdev = s;
|
|
3490
3487
|
}, Tt = 365, Lt = 146;
|
|
3491
|
-
Object.defineProperties(
|
|
3488
|
+
Object.defineProperties(ar.prototype, { read: { get: function() {
|
|
3492
3489
|
return (this.mode & Tt) === Tt;
|
|
3493
3490
|
}, set: function(t) {
|
|
3494
3491
|
t ? this.mode |= Tt : this.mode &= ~Tt;
|
|
@@ -3500,8 +3497,8 @@ return ret;
|
|
|
3500
3497
|
return l.isDir(this.mode);
|
|
3501
3498
|
} }, isDevice: { get: function() {
|
|
3502
3499
|
return l.isChrdev(this.mode);
|
|
3503
|
-
} } }), l.FSNode =
|
|
3504
|
-
var Is = {
|
|
3500
|
+
} } }), l.FSNode = ar, l.staticInit(), e.FS_createPath = l.createPath, e.FS_createDataFile = l.createDataFile, e.FS_createPreloadedFile = l.createPreloadedFile, e.FS_unlink = l.unlink, e.FS_createLazyFile = l.createLazyFile, e.FS_createDevice = l.createDevice, Ln = e.InternalError = Ot(Error, "InternalError"), Ia(), at = e.BindingError = Ot(Error, "BindingError"), za(), Ra(), Va(), Fn = e.UnboundTypeError = Ot(Error, "UnboundTypeError"), ti();
|
|
3501
|
+
var Is = { ja: Hr, E: jr, a: Yr, D: Fr, za: Vr, $: Qr, ya: Jr, Aa: Zr, Va: Or, va: ea, q: ta, O: na, qa: ra, ia: aa, _: ia, Ca: sa, sa: ua, ta: oa, F: la, ka: _a, ha: ca, Z: ga, ga: fa, eb: ma, db: pa, ua: da, fa: ha, M: ya, Ma: va, Xa: Sa, Ga: Ma, J: Za, Fa: ni, x: ai, f: ii, R: ui, r: ci, s: fi, o: mi, Q: pi, H: Si, Na: Ii, T: Mi, Ha: Di, Ia: Ci, wa: Gi, ba: bi, n: Yn, I: Ei, La: Ri, v: Li, S: Wi, u: Bi, p: xi, na: Ni, oa: Fi, pa: Ui, la: ji, ma: Yi, cb: Vi, da: Ki, c: Qi, A: Ji, ea: Zi, z: At, xa: Oi, ca: ts, Da: as, Ea: is, y: Jn, w: ss, N: us, Ua: os, Ta: ls, P: _s, Wa: cs, ra: gs, G: fs, Pa: ms, fb: ps, Oa: hs, Sa: Bs, B: Rs, e: Ps, d: Cs, h: Ds, g: Ts, Y: Ws, b: As, X: zs, m: Ls, W: Hs, Ja: Xs, Za: Js, ab: Vs, $a: Ks, Ya: Zs, bb: qs, K: xs, l: Gs, j: bs, V: Fs, U: Us, i: Ms, k: Es, t: Ns, Qa: Ys, Ka: $s, Ra: js, _a: Qs, Ba: Qn, L: rr, aa: vs, C: Ss };
|
|
3505
3502
|
xr(), e._MagickColor_Create = function() {
|
|
3506
3503
|
return (e._MagickColor_Create = e.asm.ib).apply(null, arguments);
|
|
3507
3504
|
}, e._MagickColor_Dispose = function() {
|
|
@@ -4895,42 +4892,42 @@ return ret;
|
|
|
4895
4892
|
}, e._TypeMetric_UnderlineThickness_Get = function() {
|
|
4896
4893
|
return (e._TypeMetric_UnderlineThickness_Get = e.asm.eo).apply(null, arguments);
|
|
4897
4894
|
};
|
|
4898
|
-
var
|
|
4899
|
-
return (
|
|
4895
|
+
var ir = function() {
|
|
4896
|
+
return (ir = e.asm.fo).apply(null, arguments);
|
|
4900
4897
|
}, Wt = function() {
|
|
4901
4898
|
return (Wt = e.asm.go).apply(null, arguments);
|
|
4902
4899
|
}, _n = function() {
|
|
4903
4900
|
return (_n = e.asm.ho).apply(null, arguments);
|
|
4904
4901
|
}, Bt = function() {
|
|
4905
4902
|
return (Bt = e.asm.io).apply(null, arguments);
|
|
4906
|
-
},
|
|
4907
|
-
return (
|
|
4903
|
+
}, sr = e.___getTypeName = function() {
|
|
4904
|
+
return (sr = e.___getTypeName = e.asm.jo).apply(null, arguments);
|
|
4908
4905
|
};
|
|
4909
4906
|
e.__embind_initialize_bindings = function() {
|
|
4910
4907
|
return (e.__embind_initialize_bindings = e.asm.ko).apply(null, arguments);
|
|
4911
4908
|
};
|
|
4912
|
-
var
|
|
4913
|
-
return (
|
|
4914
|
-
},
|
|
4915
|
-
return (
|
|
4909
|
+
var ur = function() {
|
|
4910
|
+
return (ur = e.asm.lo).apply(null, arguments);
|
|
4911
|
+
}, or = function() {
|
|
4912
|
+
return (or = e.asm.mo).apply(null, arguments);
|
|
4916
4913
|
}, j = function() {
|
|
4917
4914
|
return (j = e.asm.no).apply(null, arguments);
|
|
4918
4915
|
}, Y = function() {
|
|
4919
4916
|
return (Y = e.asm.oo).apply(null, arguments);
|
|
4920
4917
|
}, $ = function() {
|
|
4921
4918
|
return ($ = e.asm.po).apply(null, arguments);
|
|
4919
|
+
}, lr = function() {
|
|
4920
|
+
return (lr = e.asm.qo).apply(null, arguments);
|
|
4922
4921
|
}, _r = function() {
|
|
4923
|
-
return (_r = e.asm.
|
|
4924
|
-
}, cr = function() {
|
|
4925
|
-
return (cr = e.asm.
|
|
4926
|
-
}, gr = e.
|
|
4927
|
-
return (gr = e.
|
|
4928
|
-
}, fr = e.
|
|
4929
|
-
return (fr = e.
|
|
4930
|
-
}, mr = e.
|
|
4931
|
-
return (mr = e.
|
|
4932
|
-
}, pr = e.dynCall_vij = function() {
|
|
4933
|
-
return (pr = e.dynCall_vij = e.asm.vo).apply(null, arguments);
|
|
4922
|
+
return (_r = e.asm.ro).apply(null, arguments);
|
|
4923
|
+
}, cr = e.dynCall_ji = function() {
|
|
4924
|
+
return (cr = e.dynCall_ji = e.asm.so).apply(null, arguments);
|
|
4925
|
+
}, gr = e.dynCall_iiijj = function() {
|
|
4926
|
+
return (gr = e.dynCall_iiijj = e.asm.to).apply(null, arguments);
|
|
4927
|
+
}, fr = e.dynCall_iij = function() {
|
|
4928
|
+
return (fr = e.dynCall_iij = e.asm.uo).apply(null, arguments);
|
|
4929
|
+
}, mr = e.dynCall_vij = function() {
|
|
4930
|
+
return (mr = e.dynCall_vij = e.asm.vo).apply(null, arguments);
|
|
4934
4931
|
};
|
|
4935
4932
|
e.dynCall_iji = function() {
|
|
4936
4933
|
return (e.dynCall_iji = e.asm.wo).apply(null, arguments);
|
|
@@ -4947,10 +4944,10 @@ return ret;
|
|
|
4947
4944
|
}, e.dynCall_jiiiii = function() {
|
|
4948
4945
|
return (e.dynCall_jiiiii = e.asm.Co).apply(null, arguments);
|
|
4949
4946
|
};
|
|
4950
|
-
var
|
|
4951
|
-
return (
|
|
4952
|
-
},
|
|
4953
|
-
return (
|
|
4947
|
+
var pr = e.dynCall_iiiijj = function() {
|
|
4948
|
+
return (pr = e.dynCall_iiiijj = e.asm.Do).apply(null, arguments);
|
|
4949
|
+
}, dr = e.dynCall_ij = function() {
|
|
4950
|
+
return (dr = e.dynCall_ij = e.asm.Eo).apply(null, arguments);
|
|
4954
4951
|
};
|
|
4955
4952
|
e.dynCall_iiijii = function() {
|
|
4956
4953
|
return (e.dynCall_iiijii = e.asm.Fo).apply(null, arguments);
|
|
@@ -4968,7 +4965,7 @@ return ret;
|
|
|
4968
4965
|
return (e.dynCall_iiiiijj = e.asm.Lo).apply(null, arguments);
|
|
4969
4966
|
}, e.dynCall_iiiiiijj = function() {
|
|
4970
4967
|
return (e.dynCall_iiiiiijj = e.asm.Mo).apply(null, arguments);
|
|
4971
|
-
}, e.___emscripten_embedded_file_data =
|
|
4968
|
+
}, e.___emscripten_embedded_file_data = 4501376;
|
|
4972
4969
|
function Ms(t, n, a, s) {
|
|
4973
4970
|
var u = Y();
|
|
4974
4971
|
try {
|
|
@@ -5202,7 +5199,7 @@ return ret;
|
|
|
5202
5199
|
function qs(t, n) {
|
|
5203
5200
|
var a = Y();
|
|
5204
5201
|
try {
|
|
5205
|
-
return
|
|
5202
|
+
return cr(t, n);
|
|
5206
5203
|
} catch (s) {
|
|
5207
5204
|
if ($(a), s !== s + 0)
|
|
5208
5205
|
throw s;
|
|
@@ -5212,7 +5209,7 @@ return ret;
|
|
|
5212
5209
|
function Vs(t, n, a, s, u, _, c) {
|
|
5213
5210
|
var g = Y();
|
|
5214
5211
|
try {
|
|
5215
|
-
return
|
|
5212
|
+
return gr(t, n, a, s, u, _, c);
|
|
5216
5213
|
} catch (d) {
|
|
5217
5214
|
if ($(g), d !== d + 0)
|
|
5218
5215
|
throw d;
|
|
@@ -5222,7 +5219,7 @@ return ret;
|
|
|
5222
5219
|
function Ks(t, n, a, s) {
|
|
5223
5220
|
var u = Y();
|
|
5224
5221
|
try {
|
|
5225
|
-
return
|
|
5222
|
+
return fr(t, n, a, s);
|
|
5226
5223
|
} catch (_) {
|
|
5227
5224
|
if ($(u), _ !== _ + 0)
|
|
5228
5225
|
throw _;
|
|
@@ -5232,7 +5229,7 @@ return ret;
|
|
|
5232
5229
|
function Qs(t, n, a, s) {
|
|
5233
5230
|
var u = Y();
|
|
5234
5231
|
try {
|
|
5235
|
-
|
|
5232
|
+
mr(t, n, a, s);
|
|
5236
5233
|
} catch (_) {
|
|
5237
5234
|
if ($(u), _ !== _ + 0)
|
|
5238
5235
|
throw _;
|
|
@@ -5242,7 +5239,7 @@ return ret;
|
|
|
5242
5239
|
function Js(t, n, a, s, u, _, c, g) {
|
|
5243
5240
|
var d = Y();
|
|
5244
5241
|
try {
|
|
5245
|
-
return
|
|
5242
|
+
return pr(t, n, a, s, u, _, c, g);
|
|
5246
5243
|
} catch (h) {
|
|
5247
5244
|
if ($(d), h !== h + 0)
|
|
5248
5245
|
throw h;
|
|
@@ -5252,7 +5249,7 @@ return ret;
|
|
|
5252
5249
|
function Zs(t, n, a) {
|
|
5253
5250
|
var s = Y();
|
|
5254
5251
|
try {
|
|
5255
|
-
return
|
|
5252
|
+
return dr(t, n, a);
|
|
5256
5253
|
} catch (u) {
|
|
5257
5254
|
if ($(s), u !== u + 0)
|
|
5258
5255
|
throw u;
|
|
@@ -5262,9 +5259,9 @@ return ret;
|
|
|
5262
5259
|
e.addRunDependency = kt, e.removeRunDependency = et, e.FS_createPath = l.createPath, e.FS_createDataFile = l.createDataFile, e.FS_createPreloadedFile = l.createPreloadedFile, e.FS_createLazyFile = l.createLazyFile, e.FS_createDevice = l.createDevice, e.FS_unlink = l.unlink, e.setValue = zr, e.getValue = Nr, e.UTF8ToString = me, e.stringToUTF8 = $e, e.lengthBytesUTF8 = We, e.FS = l;
|
|
5263
5260
|
var xt;
|
|
5264
5261
|
Oe = function t() {
|
|
5265
|
-
xt ||
|
|
5262
|
+
xt || hr(), xt || (Oe = t);
|
|
5266
5263
|
};
|
|
5267
|
-
function
|
|
5264
|
+
function hr() {
|
|
5268
5265
|
if (Le > 0 || (Gr(), Le > 0))
|
|
5269
5266
|
return;
|
|
5270
5267
|
function t() {
|
|
@@ -5279,16 +5276,18 @@ return ret;
|
|
|
5279
5276
|
if (e.preInit)
|
|
5280
5277
|
for (typeof e.preInit == "function" && (e.preInit = [e.preInit]); e.preInit.length > 0; )
|
|
5281
5278
|
e.preInit.pop()();
|
|
5282
|
-
return
|
|
5279
|
+
return hr(), p.ready;
|
|
5283
5280
|
};
|
|
5284
5281
|
})();
|
|
5285
5282
|
r.exports = o;
|
|
5286
|
-
})(
|
|
5283
|
+
})(kr);
|
|
5284
|
+
var tu = kr.exports;
|
|
5285
|
+
const nu = /* @__PURE__ */ eu(tu);
|
|
5287
5286
|
var ie = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Red = 1] = "Red", r[r.Gray = 1] = "Gray", r[r.Cyan = 1] = "Cyan", r[r.Green = 2] = "Green", r[r.Magenta = 2] = "Magenta", r[r.Blue = 4] = "Blue", r[r.Yellow = 4] = "Yellow", r[r.Black = 8] = "Black", r[r.Alpha = 16] = "Alpha", r[r.Opacity = 16] = "Opacity", r[r.Index = 32] = "Index", r[r.Composite = 31] = "Composite", r[r.All = 134217727] = "All", r[r.TrueAlpha = 256] = "TrueAlpha", r[r.RGB = 7] = "RGB", r[r.CMYK = 15] = "CMYK", r[r.Grays = 1024] = "Grays", r[r.Sync = 131072] = "Sync", r[
|
|
5288
5287
|
r.Default = 134217727
|
|
5289
5288
|
/* All */
|
|
5290
5289
|
] = "Default", r))(ie || {});
|
|
5291
|
-
class
|
|
5290
|
+
class ru {
|
|
5292
5291
|
red;
|
|
5293
5292
|
green;
|
|
5294
5293
|
blue;
|
|
@@ -5298,7 +5297,7 @@ class tu {
|
|
|
5298
5297
|
}
|
|
5299
5298
|
}
|
|
5300
5299
|
var vr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.CMY = 1] = "CMY", r[r.CMYK = 2] = "CMYK", r[r.Gray = 3] = "Gray", r[r.HCL = 4] = "HCL", r[r.HCLp = 5] = "HCLp", r[r.HSB = 6] = "HSB", r[r.HSI = 7] = "HSI", r[r.HSL = 8] = "HSL", r[r.HSV = 9] = "HSV", r[r.HWB = 10] = "HWB", r[r.Lab = 11] = "Lab", r[r.LCH = 12] = "LCH", r[r.LCHab = 13] = "LCHab", r[r.LCHuv = 14] = "LCHuv", r[r.Log = 15] = "Log", r[r.LMS = 16] = "LMS", r[r.Luv = 17] = "Luv", r[r.OHTA = 18] = "OHTA", r[r.Rec601YCbCr = 19] = "Rec601YCbCr", r[r.Rec709YCbCr = 20] = "Rec709YCbCr", r[r.RGB = 21] = "RGB", r[r.scRGB = 22] = "scRGB", r[r.sRGB = 23] = "sRGB", r[r.Transparent = 24] = "Transparent", r[r.XyY = 25] = "XyY", r[r.XYZ = 26] = "XYZ", r[r.YCbCr = 27] = "YCbCr", r[r.YCC = 28] = "YCC", r[r.YDbDr = 29] = "YDbDr", r[r.YIQ = 30] = "YIQ", r[r.YPbPr = 31] = "YPbPr", r[r.YUV = 32] = "YUV", r[r.LinearGray = 33] = "LinearGray", r))(vr || {}), Nt = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Alpha = 1] = "Alpha", r[r.Atop = 2] = "Atop", r[r.Blend = 3] = "Blend", r[r.Blur = 4] = "Blur", r[r.Bumpmap = 5] = "Bumpmap", r[r.ChangeMask = 6] = "ChangeMask", r[r.Clear = 7] = "Clear", r[r.ColorBurn = 8] = "ColorBurn", r[r.ColorDodge = 9] = "ColorDodge", r[r.Colorize = 10] = "Colorize", r[r.CopyBlack = 11] = "CopyBlack", r[r.CopyBlue = 12] = "CopyBlue", r[r.Copy = 13] = "Copy", r[r.CopyCyan = 14] = "CopyCyan", r[r.CopyGreen = 15] = "CopyGreen", r[r.CopyMagenta = 16] = "CopyMagenta", r[r.CopyAlpha = 17] = "CopyAlpha", r[r.CopyRed = 18] = "CopyRed", r[r.CopyYellow = 19] = "CopyYellow", r[r.Darken = 20] = "Darken", r[r.DarkenIntensity = 21] = "DarkenIntensity", r[r.Difference = 22] = "Difference", r[r.Displace = 23] = "Displace", r[r.Dissolve = 24] = "Dissolve", r[r.Distort = 25] = "Distort", r[r.DivideDst = 26] = "DivideDst", r[r.DivideSrc = 27] = "DivideSrc", r[r.DstAtop = 28] = "DstAtop", r[r.Dst = 29] = "Dst", r[r.DstIn = 30] = "DstIn", r[r.DstOut = 31] = "DstOut", r[r.DstOver = 32] = "DstOver", r[r.Exclusion = 33] = "Exclusion", r[r.HardLight = 34] = "HardLight", r[r.HardMix = 35] = "HardMix", r[r.Hue = 36] = "Hue", r[r.In = 37] = "In", r[r.Intensity = 38] = "Intensity", r[r.Lighten = 39] = "Lighten", r[r.LightenIntensity = 40] = "LightenIntensity", r[r.LinearBurn = 41] = "LinearBurn", r[r.LinearDodge = 42] = "LinearDodge", r[r.LinearLight = 43] = "LinearLight", r[r.Luminize = 44] = "Luminize", r[r.Mathematics = 45] = "Mathematics", r[r.MinusDst = 46] = "MinusDst", r[r.MinusSrc = 47] = "MinusSrc", r[r.Modulate = 48] = "Modulate", r[r.ModulusAdd = 49] = "ModulusAdd", r[r.ModulusSubtract = 50] = "ModulusSubtract", r[r.Multiply = 51] = "Multiply", r[r.No = 52] = "No", r[r.Out = 53] = "Out", r[r.Over = 54] = "Over", r[r.Overlay = 55] = "Overlay", r[r.PegtopLight = 56] = "PegtopLight", r[r.PinLight = 57] = "PinLight", r[r.Plus = 58] = "Plus", r[r.Replace = 59] = "Replace", r[r.Saturate = 60] = "Saturate", r[r.Screen = 61] = "Screen", r[r.SoftLight = 62] = "SoftLight", r[r.SrcAtop = 63] = "SrcAtop", r[r.Src = 64] = "Src", r[r.SrcIn = 65] = "SrcIn", r[r.SrcOut = 66] = "SrcOut", r[r.SrcOver = 67] = "SrcOver", r[r.Threshold = 68] = "Threshold", r[r.VividLight = 69] = "VividLight", r[r.Xor = 70] = "Xor", r[r.Stereo = 71] = "Stereo", r))(Nt || {}), Sr = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.PixelsPerInch = 1] = "PixelsPerInch", r[r.PixelsPerCentimeter = 2] = "PixelsPerCentimeter", r))(Sr || {});
|
|
5301
|
-
class
|
|
5300
|
+
class au {
|
|
5302
5301
|
constructor(i, o, f) {
|
|
5303
5302
|
o === void 0 ? (this.x = i, this.y = i, this.units = Sr.PixelsPerInch) : f !== void 0 ? (this.x = i, this.y = o, this.units = f) : (this.x = i, this.y = i, this.units = o);
|
|
5304
5303
|
}
|
|
@@ -5371,7 +5370,7 @@ class Te {
|
|
|
5371
5370
|
function we(r) {
|
|
5372
5371
|
return r === 0 ? null : m._api.UTF8ToString(r);
|
|
5373
5372
|
}
|
|
5374
|
-
function
|
|
5373
|
+
function gn(r, i, o) {
|
|
5375
5374
|
const f = r.lengthBytesUTF8(i) + 1, p = r._malloc(f);
|
|
5376
5375
|
try {
|
|
5377
5376
|
return r.stringToUTF8(i, p, f), o(p);
|
|
@@ -5380,7 +5379,7 @@ function fn(r, i, o) {
|
|
|
5380
5379
|
}
|
|
5381
5380
|
}
|
|
5382
5381
|
function B(r, i) {
|
|
5383
|
-
return
|
|
5382
|
+
return gn(m._api, r, i);
|
|
5384
5383
|
}
|
|
5385
5384
|
class M {
|
|
5386
5385
|
pointer;
|
|
@@ -5562,7 +5561,7 @@ class Ve {
|
|
|
5562
5561
|
return i > 0 && this.disposeMethod(i), 0;
|
|
5563
5562
|
}
|
|
5564
5563
|
}
|
|
5565
|
-
class
|
|
5564
|
+
class iu extends Ve {
|
|
5566
5565
|
constructor(i) {
|
|
5567
5566
|
const o = m._api._DrawingSettings_Create(), f = m._api._DrawingSettings_Dispose;
|
|
5568
5567
|
if (super(o, f), i.fillColor !== void 0 && i.fillColor._use((p) => {
|
|
@@ -5578,7 +5577,7 @@ class ru extends Ve {
|
|
|
5578
5577
|
}), i.strokeWidth !== void 0 && m._api._DrawingSettings_StrokeWidth_Set(this._instance, i.strokeWidth);
|
|
5579
5578
|
}
|
|
5580
5579
|
}
|
|
5581
|
-
class
|
|
5580
|
+
class fn {
|
|
5582
5581
|
backgroundColor;
|
|
5583
5582
|
fillColor;
|
|
5584
5583
|
font;
|
|
@@ -5587,18 +5586,18 @@ class mn {
|
|
|
5587
5586
|
strokeWidth;
|
|
5588
5587
|
/** @internal */
|
|
5589
5588
|
static _create(i) {
|
|
5590
|
-
const o = new
|
|
5589
|
+
const o = new fn();
|
|
5591
5590
|
return o.fillColor = i.fillColor, o.font = i.font, o.fontPointsize = i.fontPointsize, o.strokeColor = i.strokeColor, o.strokeWidth = i.strokeWidth, o;
|
|
5592
5591
|
}
|
|
5593
5592
|
/** @internal */
|
|
5594
5593
|
_use(i) {
|
|
5595
|
-
const o = new
|
|
5594
|
+
const o = new iu(this);
|
|
5596
5595
|
return Ge._disposeAfterExecution(o, i);
|
|
5597
5596
|
}
|
|
5598
5597
|
}
|
|
5599
|
-
class
|
|
5598
|
+
class mn extends Ve {
|
|
5600
5599
|
constructor(i, o) {
|
|
5601
|
-
const p =
|
|
5600
|
+
const p = fn._create(o)._use((w) => m._api._DrawingWand_Create(i._instance, w._instance)), e = m._api._DrawingWand_Dispose;
|
|
5602
5601
|
super(p, e);
|
|
5603
5602
|
}
|
|
5604
5603
|
color(i, o, f) {
|
|
@@ -5661,11 +5660,11 @@ class pn extends Ve {
|
|
|
5661
5660
|
}
|
|
5662
5661
|
/** @internal */
|
|
5663
5662
|
static _create(i, o) {
|
|
5664
|
-
return new
|
|
5663
|
+
return new mn(i, o);
|
|
5665
5664
|
}
|
|
5666
5665
|
}
|
|
5667
5666
|
var zt = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Forget = 0] = "Forget", r[r.Northwest = 1] = "Northwest", r[r.North = 2] = "North", r[r.Northeast = 3] = "Northeast", r[r.West = 4] = "West", r[r.Center = 5] = "Center", r[r.East = 6] = "East", r[r.Southwest = 7] = "Southwest", r[r.South = 8] = "South", r[r.Southeast = 9] = "Southeast", r))(zt || {});
|
|
5668
|
-
function*
|
|
5667
|
+
function* su(r) {
|
|
5669
5668
|
for (const i of r)
|
|
5670
5669
|
switch (i) {
|
|
5671
5670
|
case 2:
|
|
@@ -5693,7 +5692,7 @@ function* au(r) {
|
|
|
5693
5692
|
yield "south", yield "west";
|
|
5694
5693
|
}
|
|
5695
5694
|
}
|
|
5696
|
-
class
|
|
5695
|
+
class uu {
|
|
5697
5696
|
_data;
|
|
5698
5697
|
constructor(i, o) {
|
|
5699
5698
|
this.name = i, this._data = o;
|
|
@@ -5957,7 +5956,7 @@ class Mr extends Ve {
|
|
|
5957
5956
|
}
|
|
5958
5957
|
i.fontPointsize !== void 0 && m._api._MagickSettings_FontPointsize_Set(this._instance, i.fontPointsize), i.format !== void 0 && B(i.format, (p) => {
|
|
5959
5958
|
m._api._MagickSettings_Format_Set(this._instance, p);
|
|
5960
|
-
}), i.strokeColor !== void 0 && this.setOption("stroke", i.strokeColor.toString()), i.strokeWidth !== void 0 && this.setOption("strokeWidth", i.strokeWidth.toString());
|
|
5959
|
+
}), i.strokeColor !== void 0 && this.setOption("stroke", i.strokeColor.toString()), i.strokeWidth !== void 0 && this.setOption("strokeWidth", i.strokeWidth.toString()), i.textInterlineSpacing !== void 0 && this.setOption("interline-spacing", i.textInterlineSpacing.toString()), i.textKerning !== void 0 && this.setOption("kerning", i.textKerning.toString());
|
|
5961
5960
|
for (const p in i._options)
|
|
5962
5961
|
this.setOption(p, i._options[p]);
|
|
5963
5962
|
}
|
|
@@ -5986,6 +5985,8 @@ class qe {
|
|
|
5986
5985
|
format;
|
|
5987
5986
|
strokeColor;
|
|
5988
5987
|
strokeWidth;
|
|
5988
|
+
textInterlineSpacing;
|
|
5989
|
+
textKerning;
|
|
5989
5990
|
getDefine(i, o) {
|
|
5990
5991
|
return o !== void 0 ? this._options[`${i}:${o}`] ?? null : this._options[i] ?? null;
|
|
5991
5992
|
}
|
|
@@ -6197,7 +6198,7 @@ class ge {
|
|
|
6197
6198
|
return He.max * (this._value / 100);
|
|
6198
6199
|
}
|
|
6199
6200
|
}
|
|
6200
|
-
class
|
|
6201
|
+
class yr {
|
|
6201
6202
|
static use(i, o, f) {
|
|
6202
6203
|
const p = m._api._MagickRectangle_Create();
|
|
6203
6204
|
try {
|
|
@@ -6210,7 +6211,7 @@ class wr {
|
|
|
6210
6211
|
}
|
|
6211
6212
|
}
|
|
6212
6213
|
var Re = /* @__PURE__ */ ((r) => (r[r.Red = 0] = "Red", r[r.Cyan = 0] = "Cyan", r[r.Gray = 0] = "Gray", r[r.Green = 1] = "Green", r[r.Magenta = 1] = "Magenta", r[r.Blue = 2] = "Blue", r[r.Yellow = 2] = "Yellow", r[r.Black = 3] = "Black", r[r.Alpha = 4] = "Alpha", r[r.Index = 5] = "Index", r[r.Composite = 64] = "Composite", r))(Re || {});
|
|
6213
|
-
function
|
|
6214
|
+
function ou(r, i) {
|
|
6214
6215
|
const o = r.length * 8;
|
|
6215
6216
|
if (o === 0)
|
|
6216
6217
|
return i(0);
|
|
@@ -6224,7 +6225,7 @@ function su(r, i) {
|
|
|
6224
6225
|
m._api._free(f);
|
|
6225
6226
|
}
|
|
6226
6227
|
}
|
|
6227
|
-
function
|
|
6228
|
+
function lu(r, i) {
|
|
6228
6229
|
const o = r.length * 8;
|
|
6229
6230
|
if (o === 0)
|
|
6230
6231
|
return i(0);
|
|
@@ -6272,7 +6273,7 @@ class Ne extends Ve {
|
|
|
6272
6273
|
setArea(i, o, f, p, e) {
|
|
6273
6274
|
M.usePointer((w) => {
|
|
6274
6275
|
const S = e instanceof Uint8Array ? e : new Uint8Array(e);
|
|
6275
|
-
|
|
6276
|
+
lu(S, (E) => {
|
|
6276
6277
|
m._api._PixelCollection_SetArea(this._instance, i, o, f, p, E, S.length, w);
|
|
6277
6278
|
});
|
|
6278
6279
|
});
|
|
@@ -6356,7 +6357,7 @@ class ze {
|
|
|
6356
6357
|
}
|
|
6357
6358
|
}
|
|
6358
6359
|
}
|
|
6359
|
-
class
|
|
6360
|
+
class pn {
|
|
6360
6361
|
_channels = {};
|
|
6361
6362
|
get channels() {
|
|
6362
6363
|
const i = [];
|
|
@@ -6372,17 +6373,17 @@ class dn {
|
|
|
6372
6373
|
return o !== void 0 ? o : null;
|
|
6373
6374
|
}
|
|
6374
6375
|
static _create(i, o, f) {
|
|
6375
|
-
const p = new
|
|
6376
|
+
const p = new pn();
|
|
6376
6377
|
return i.channels.forEach((e) => {
|
|
6377
6378
|
f >> e & 1 && p.addChannel(o, e);
|
|
6378
6379
|
}), p.addChannel(o, Re.Composite), p;
|
|
6379
6380
|
}
|
|
6380
6381
|
addChannel(i, o) {
|
|
6381
6382
|
const f = m._api._Statistics_GetInstance(i, o);
|
|
6382
|
-
f !== 0 && (this._channels[o] = new
|
|
6383
|
+
f !== 0 && (this._channels[o] = new gu(o, f));
|
|
6383
6384
|
}
|
|
6384
6385
|
}
|
|
6385
|
-
class
|
|
6386
|
+
class _u {
|
|
6386
6387
|
static toArray(i) {
|
|
6387
6388
|
if (i === 0)
|
|
6388
6389
|
return null;
|
|
@@ -6475,7 +6476,7 @@ class se extends Ve {
|
|
|
6475
6476
|
}), i;
|
|
6476
6477
|
}
|
|
6477
6478
|
get chromaticity() {
|
|
6478
|
-
return new
|
|
6479
|
+
return new ru(
|
|
6479
6480
|
ze._create(m._api._MagickImage_ChromaRedPrimary_Get(this._instance)),
|
|
6480
6481
|
ze._create(m._api._MagickImage_ChromaGreenPrimary_Get(this._instance)),
|
|
6481
6482
|
ze._create(m._api._MagickImage_ChromaBluePrimary_Get(this._instance)),
|
|
@@ -6539,7 +6540,7 @@ class se extends Ve {
|
|
|
6539
6540
|
return m._api._MagickImage_Compression_Get(this._instance);
|
|
6540
6541
|
}
|
|
6541
6542
|
get density() {
|
|
6542
|
-
return new
|
|
6543
|
+
return new au(
|
|
6543
6544
|
m._api._MagickImage_ResolutionX_Get(this._instance),
|
|
6544
6545
|
m._api._MagickImage_ResolutionY_Get(this._instance),
|
|
6545
6546
|
m._api._MagickImage_ResolutionUnits_Get(this._instance)
|
|
@@ -6571,7 +6572,7 @@ class se extends Ve {
|
|
|
6571
6572
|
}
|
|
6572
6573
|
set hasAlpha(i) {
|
|
6573
6574
|
M.usePointer((o) => {
|
|
6574
|
-
i && this.alpha(
|
|
6575
|
+
i && this.alpha(wr.Opaque), m._api._MagickImage_HasAlpha_Set(this._instance, this.fromBool(i), o);
|
|
6575
6576
|
});
|
|
6576
6577
|
}
|
|
6577
6578
|
get height() {
|
|
@@ -6748,14 +6749,14 @@ class se extends Ve {
|
|
|
6748
6749
|
distort(i, o, f) {
|
|
6749
6750
|
let p, e = 0, w = null;
|
|
6750
6751
|
o instanceof Array ? p = o : f instanceof Array ? (p = f, w = o, e = w.bestFit ? 1 : 0, w._setArtifacts(this)) : p = [], M.use((S) => {
|
|
6751
|
-
|
|
6752
|
+
ou(p, (E) => {
|
|
6752
6753
|
const W = m._api._MagickImage_Distort(this._instance, i, e, E, p.length, S.ptr);
|
|
6753
6754
|
this._setInstance(W, S);
|
|
6754
6755
|
});
|
|
6755
6756
|
}), w !== null && w._removeArtifacts(this);
|
|
6756
6757
|
}
|
|
6757
6758
|
draw(...i) {
|
|
6758
|
-
const o =
|
|
6759
|
+
const o = mn._create(this, this._settings);
|
|
6759
6760
|
try {
|
|
6760
6761
|
o.draw(i.flat());
|
|
6761
6762
|
} finally {
|
|
@@ -6775,7 +6776,7 @@ class se extends Ve {
|
|
|
6775
6776
|
if (e.isPercentage)
|
|
6776
6777
|
throw new ne("percentage is not supported");
|
|
6777
6778
|
M.usePointer((E) => {
|
|
6778
|
-
|
|
6779
|
+
yr.use(this, e, (W) => {
|
|
6779
6780
|
m._api._MagickImage_EvaluateGeometry(this._instance, i, W, w, S, E);
|
|
6780
6781
|
});
|
|
6781
6782
|
});
|
|
@@ -6816,8 +6817,8 @@ class se extends Ve {
|
|
|
6816
6817
|
}
|
|
6817
6818
|
getProfile(i) {
|
|
6818
6819
|
return B(i, (o) => {
|
|
6819
|
-
const f = m._api._MagickImage_GetProfile(this._instance, o), p =
|
|
6820
|
-
return p === null ? null : new
|
|
6820
|
+
const f = m._api._MagickImage_GetProfile(this._instance, o), p = _u.toArray(f);
|
|
6821
|
+
return p === null ? null : new uu(i, p);
|
|
6821
6822
|
});
|
|
6822
6823
|
}
|
|
6823
6824
|
getWriteMask(i) {
|
|
@@ -6998,7 +6999,7 @@ class se extends Ve {
|
|
|
6998
6999
|
this._sigmoidalContrast(!0, i, o, f);
|
|
6999
7000
|
}
|
|
7000
7001
|
splice(i) {
|
|
7001
|
-
|
|
7002
|
+
yr.use(this, i, (o) => {
|
|
7002
7003
|
M.use((f) => {
|
|
7003
7004
|
const p = m._api._MagickImage_Splice(this._instance, o, f.ptr);
|
|
7004
7005
|
this._setInstance(p, f);
|
|
@@ -7008,7 +7009,7 @@ class se extends Ve {
|
|
|
7008
7009
|
statistics(i) {
|
|
7009
7010
|
const o = this.valueOrDefault(i, ie.Default);
|
|
7010
7011
|
return M.usePointer((f) => {
|
|
7011
|
-
const p = m._api._MagickImage_Statistics(this._instance, o, f), e =
|
|
7012
|
+
const p = m._api._MagickImage_Statistics(this._instance, o, f), e = pn._create(this, p, o);
|
|
7012
7013
|
return m._api._Statistics_DisposeList(p), e;
|
|
7013
7014
|
});
|
|
7014
7015
|
}
|
|
@@ -7031,7 +7032,7 @@ class se extends Ve {
|
|
|
7031
7032
|
const o = i[0];
|
|
7032
7033
|
this.setArtifact("trim:percent-background", o.toDouble().toString());
|
|
7033
7034
|
} else {
|
|
7034
|
-
const o = i, f = [...new Set(
|
|
7035
|
+
const o = i, f = [...new Set(su(o))].join(",");
|
|
7035
7036
|
this.setArtifact("trim:edges", f);
|
|
7036
7037
|
}
|
|
7037
7038
|
M.use((o) => {
|
|
@@ -7055,9 +7056,9 @@ class se extends Ve {
|
|
|
7055
7056
|
}
|
|
7056
7057
|
write(i, o) {
|
|
7057
7058
|
let f = 0, p = 0;
|
|
7058
|
-
M.use((w) => {
|
|
7059
|
+
o !== void 0 ? this._settings.format = i : o = i, M.use((w) => {
|
|
7059
7060
|
Te.use((S) => {
|
|
7060
|
-
|
|
7061
|
+
this._settings._use((E) => {
|
|
7061
7062
|
try {
|
|
7062
7063
|
f = m._api._MagickImage_WriteBlob(this._instance, E._instance, S.ptr, w.ptr), p = S.value;
|
|
7063
7064
|
} catch {
|
|
@@ -7066,7 +7067,7 @@ class se extends Ve {
|
|
|
7066
7067
|
});
|
|
7067
7068
|
});
|
|
7068
7069
|
});
|
|
7069
|
-
const e = new Ir(f, p,
|
|
7070
|
+
const e = new Ir(f, p, o);
|
|
7070
7071
|
return Ge._disposeAfterExecution(e, e.func);
|
|
7071
7072
|
}
|
|
7072
7073
|
writeToCanvas(i) {
|
|
@@ -7172,7 +7173,7 @@ class se extends Ve {
|
|
|
7172
7173
|
return i === void 0 ? o : i;
|
|
7173
7174
|
}
|
|
7174
7175
|
}
|
|
7175
|
-
class
|
|
7176
|
+
class cu {
|
|
7176
7177
|
_wasmLocation;
|
|
7177
7178
|
constructor(i) {
|
|
7178
7179
|
this._wasmLocation = i;
|
|
@@ -7191,11 +7192,11 @@ class m {
|
|
|
7191
7192
|
o();
|
|
7192
7193
|
return;
|
|
7193
7194
|
}
|
|
7194
|
-
const p = new
|
|
7195
|
-
|
|
7195
|
+
const p = new cu(i);
|
|
7196
|
+
nu(p).then((e) => {
|
|
7196
7197
|
try {
|
|
7197
|
-
|
|
7198
|
-
|
|
7198
|
+
gn(e, "MAGICK_CONFIGURE_PATH", (w) => {
|
|
7199
|
+
gn(e, "/xml", (S) => {
|
|
7199
7200
|
e._Environment_SetEnv(w, S), this.api = e, o();
|
|
7200
7201
|
});
|
|
7201
7202
|
});
|
|
@@ -7244,10 +7245,10 @@ class m {
|
|
|
7244
7245
|
}
|
|
7245
7246
|
}
|
|
7246
7247
|
const Ht = m._create();
|
|
7247
|
-
async function
|
|
7248
|
+
async function Gu(r) {
|
|
7248
7249
|
await Ht._initialize(r);
|
|
7249
7250
|
}
|
|
7250
|
-
class
|
|
7251
|
+
class gu {
|
|
7251
7252
|
channel;
|
|
7252
7253
|
depth;
|
|
7253
7254
|
entropy;
|
|
@@ -7261,7 +7262,7 @@ class _u {
|
|
|
7261
7262
|
this.channel = i, this.depth = m._api._ChannelStatistics_Depth_Get(o), this.entropy = m._api._ChannelStatistics_Entropy_Get(o), this.kurtosis = m._api._ChannelStatistics_Kurtosis_Get(o), this.maximum = m._api._ChannelStatistics_Maximum_Get(o), this.mean = m._api._ChannelStatistics_Mean_Get(o), this.minimum = m._api._ChannelStatistics_Minimum_Get(o), this.skewness = m._api._ChannelStatistics_Skewness_Get(o), this.standardDeviation = m._api._ChannelStatistics_StandardDeviation_Get(o);
|
|
7262
7263
|
}
|
|
7263
7264
|
}
|
|
7264
|
-
var
|
|
7265
|
+
var fu = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Direct = 1] = "Direct", r[r.Pseudo = 2] = "Pseudo", r))(fu || {}), mu = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Bilevel = 1] = "Bilevel", r[r.Grayscale = 2] = "Grayscale", r[r.GrayscaleAlpha = 3] = "GrayscaleAlpha", r[r.Palette = 4] = "Palette", r[r.PaletteAlpha = 5] = "PaletteAlpha", r[r.TrueColor = 6] = "TrueColor", r[r.TrueColorAlpha = 7] = "TrueColorAlpha", r[r.ColorSeparation = 8] = "ColorSeparation", r[r.ColorSeparationAlpha = 9] = "ColorSeparationAlpha", r[r.Optimize = 10] = "Optimize", r[r.PaletteBilevelAlpha = 11] = "PaletteBilevelAlpha", r))(mu || {}), pu = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.B44A = 1] = "B44A", r[r.B44 = 2] = "B44", r[r.BZip = 3] = "BZip", r[r.DXT1 = 4] = "DXT1", r[r.DXT3 = 5] = "DXT3", r[r.DXT5 = 6] = "DXT5", r[r.Fax = 7] = "Fax", r[r.Group4 = 8] = "Group4", r[r.JBIG1 = 9] = "JBIG1", r[r.JBIG2 = 10] = "JBIG2", r[r.JPEG2000 = 11] = "JPEG2000", r[r.JPEG = 12] = "JPEG", r[r.LosslessJPEG = 13] = "LosslessJPEG", r[r.LZMA = 14] = "LZMA", r[r.LZW = 15] = "LZW", r[r.NoCompression = 16] = "NoCompression", r[r.Piz = 17] = "Piz", r[r.Pxr24 = 18] = "Pxr24", r[r.RLE = 19] = "RLE", r[r.Zip = 20] = "Zip", r[r.ZipS = 21] = "ZipS", r[r.Zstd = 22] = "Zstd", r[r.WebP = 23] = "WebP", r[r.DWAA = 24] = "DWAA", r[r.DWAB = 25] = "DWAB", r[r.BC7 = 26] = "BC7", r[r.BC5 = 27] = "BC5", r))(pu || {});
|
|
7265
7266
|
class cn {
|
|
7266
7267
|
constructor(i, o, f) {
|
|
7267
7268
|
this.format = i, this.name = o, this.value = f;
|
|
@@ -7270,7 +7271,7 @@ class cn {
|
|
|
7270
7271
|
name;
|
|
7271
7272
|
value;
|
|
7272
7273
|
}
|
|
7273
|
-
class
|
|
7274
|
+
class du {
|
|
7274
7275
|
format;
|
|
7275
7276
|
constructor(i) {
|
|
7276
7277
|
this.format = i;
|
|
@@ -7279,8 +7280,8 @@ class mu {
|
|
|
7279
7280
|
return typeof o == "boolean" ? new cn(this.format, i, o ? "true" : "false") : typeof o == "string" ? new cn(this.format, i, o) : new cn(this.format, i, o.toString());
|
|
7280
7281
|
}
|
|
7281
7282
|
}
|
|
7282
|
-
var
|
|
7283
|
-
class
|
|
7283
|
+
var hu = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Affine = 1] = "Affine", r[r.AffineProjection = 2] = "AffineProjection", r[r.ScaleRotateTranslate = 3] = "ScaleRotateTranslate", r[r.Perspective = 4] = "Perspective", r[r.PerspectiveProjection = 5] = "PerspectiveProjection", r[r.BilinearForward = 6] = "BilinearForward", r[r.BilinearReverse = 7] = "BilinearReverse", r[r.Polynomial = 8] = "Polynomial", r[r.Arc = 9] = "Arc", r[r.Polar = 10] = "Polar", r[r.DePolar = 11] = "DePolar", r[r.Cylinder2Plane = 12] = "Cylinder2Plane", r[r.Plane2Cylinder = 13] = "Plane2Cylinder", r[r.Barrel = 14] = "Barrel", r[r.BarrelInverse = 15] = "BarrelInverse", r[r.Shepards = 16] = "Shepards", r[r.Resize = 17] = "Resize", r[r.Sentinel = 18] = "Sentinel", r[r.RigidAffine = 19] = "RigidAffine", r))(hu || {});
|
|
7284
|
+
class bu {
|
|
7284
7285
|
_x;
|
|
7285
7286
|
_y;
|
|
7286
7287
|
_paintMethod;
|
|
@@ -7291,7 +7292,7 @@ class Pu {
|
|
|
7291
7292
|
i.color(this._x, this._y, this._paintMethod);
|
|
7292
7293
|
}
|
|
7293
7294
|
}
|
|
7294
|
-
class
|
|
7295
|
+
class Eu {
|
|
7295
7296
|
_color;
|
|
7296
7297
|
constructor(i) {
|
|
7297
7298
|
this._color = i;
|
|
@@ -7300,7 +7301,7 @@ class Gu {
|
|
|
7300
7301
|
i.fillColor(this._color);
|
|
7301
7302
|
}
|
|
7302
7303
|
}
|
|
7303
|
-
class
|
|
7304
|
+
class Ru {
|
|
7304
7305
|
_opacity;
|
|
7305
7306
|
constructor(i) {
|
|
7306
7307
|
this._opacity = i;
|
|
@@ -7309,7 +7310,7 @@ class bu {
|
|
|
7309
7310
|
i.fillOpacity(this._opacity.toDouble() / 100);
|
|
7310
7311
|
}
|
|
7311
7312
|
}
|
|
7312
|
-
class
|
|
7313
|
+
class Au {
|
|
7313
7314
|
_pointSize;
|
|
7314
7315
|
constructor(i) {
|
|
7315
7316
|
this._pointSize = i;
|
|
@@ -7318,7 +7319,7 @@ class Eu {
|
|
|
7318
7319
|
i.fontPointSize(this._pointSize);
|
|
7319
7320
|
}
|
|
7320
7321
|
}
|
|
7321
|
-
class
|
|
7322
|
+
class Tu {
|
|
7322
7323
|
_font;
|
|
7323
7324
|
constructor(i) {
|
|
7324
7325
|
this._font = i;
|
|
@@ -7328,7 +7329,7 @@ class Ru {
|
|
|
7328
7329
|
i.font(o);
|
|
7329
7330
|
}
|
|
7330
7331
|
}
|
|
7331
|
-
class
|
|
7332
|
+
class Lu {
|
|
7332
7333
|
_gravity;
|
|
7333
7334
|
constructor(i) {
|
|
7334
7335
|
this._gravity = i;
|
|
@@ -7337,7 +7338,7 @@ class Au {
|
|
|
7337
7338
|
i.gravity(this._gravity);
|
|
7338
7339
|
}
|
|
7339
7340
|
}
|
|
7340
|
-
class
|
|
7341
|
+
class Wu {
|
|
7341
7342
|
_upperLeftX;
|
|
7342
7343
|
_upperLeftY;
|
|
7343
7344
|
_lowerRightX;
|
|
@@ -7349,7 +7350,7 @@ class Tu {
|
|
|
7349
7350
|
i.rectangle(this._upperLeftX, this._upperLeftY, this._lowerRightX, this._lowerRightY);
|
|
7350
7351
|
}
|
|
7351
7352
|
}
|
|
7352
|
-
class
|
|
7353
|
+
class Bu {
|
|
7353
7354
|
_upperLeftX;
|
|
7354
7355
|
_upperLeftY;
|
|
7355
7356
|
_lowerRightX;
|
|
@@ -7363,7 +7364,7 @@ class Lu {
|
|
|
7363
7364
|
i.roundRectangle(this._upperLeftX, this._upperLeftY, this._lowerRightX, this._lowerRightY, this._cornerWidth, this._cornerHeight);
|
|
7364
7365
|
}
|
|
7365
7366
|
}
|
|
7366
|
-
class
|
|
7367
|
+
class xu {
|
|
7367
7368
|
_x;
|
|
7368
7369
|
_y;
|
|
7369
7370
|
_value;
|
|
@@ -7374,8 +7375,8 @@ class Wu {
|
|
|
7374
7375
|
i.text(this._x, this._y, this._value);
|
|
7375
7376
|
}
|
|
7376
7377
|
}
|
|
7377
|
-
var
|
|
7378
|
-
class
|
|
7378
|
+
var yu = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Absolute = 1] = "Absolute", r[r.Fuzz = 2] = "Fuzz", r[r.MeanAbsolute = 3] = "MeanAbsolute", r[r.MeanErrorPerPixel = 4] = "MeanErrorPerPixel", r[r.MeanSquared = 5] = "MeanSquared", r[r.NormalizedCrossCorrelation = 6] = "NormalizedCrossCorrelation", r[r.PeakAbsolute = 7] = "PeakAbsolute", r[r.PeakSignalToNoiseRatio = 8] = "PeakSignalToNoiseRatio", r[r.PerceptualHash = 9] = "PerceptualHash", r[r.RootMeanSquared = 10] = "RootMeanSquared", r[r.StructuralSimilarity = 11] = "StructuralSimilarity", r[r.StructuralDissimilarity = 12] = "StructuralDissimilarity", r))(yu || {}), wu = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Abs = 1] = "Abs", r[r.Add = 2] = "Add", r[r.AddModulus = 3] = "AddModulus", r[r.And = 4] = "And", r[r.Cosine = 5] = "Cosine", r[r.Divide = 6] = "Divide", r[r.Exponential = 7] = "Exponential", r[r.GaussianNoise = 8] = "GaussianNoise", r[r.ImpulseNoise = 9] = "ImpulseNoise", r[r.LaplacianNoise = 10] = "LaplacianNoise", r[r.LeftShift = 11] = "LeftShift", r[r.Log = 12] = "Log", r[r.Max = 13] = "Max", r[r.Mean = 14] = "Mean", r[r.Median = 15] = "Median", r[r.Min = 16] = "Min", r[r.MultiplicativeNoise = 17] = "MultiplicativeNoise", r[r.Multiply = 18] = "Multiply", r[r.Or = 19] = "Or", r[r.PoissonNoise = 20] = "PoissonNoise", r[r.Pow = 21] = "Pow", r[r.RightShift = 22] = "RightShift", r[r.RootMeanSquare = 23] = "RootMeanSquare", r[r.Set = 24] = "Set", r[r.Sine = 25] = "Sine", r[r.Subtract = 26] = "Subtract", r[r.Sum = 27] = "Sum", r[r.ThresholdBlack = 28] = "ThresholdBlack", r[r.Threshold = 29] = "Threshold", r[r.ThresholdWhite = 30] = "ThresholdWhite", r[r.UniformNoise = 31] = "UniformNoise", r[r.Xor = 32] = "Xor", r[r.InverseLog = 33] = "InverseLog", r))(wu || {}), ku = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Point = 1] = "Point", r[r.Box = 2] = "Box", r[r.Triangle = 3] = "Triangle", r[r.Hermite = 4] = "Hermite", r[r.Hann = 5] = "Hann", r[r.Hamming = 6] = "Hamming", r[r.Blackman = 7] = "Blackman", r[r.Gaussian = 8] = "Gaussian", r[r.Quadratic = 9] = "Quadratic", r[r.Cubic = 10] = "Cubic", r[r.Catrom = 11] = "Catrom", r[r.Mitchell = 12] = "Mitchell", r[r.Jinc = 13] = "Jinc", r[r.Sinc = 14] = "Sinc", r[r.SincFast = 15] = "SincFast", r[r.Kaiser = 16] = "Kaiser", r[r.Welch = 17] = "Welch", r[r.Parzen = 18] = "Parzen", r[r.Bohman = 19] = "Bohman", r[r.Bartlett = 20] = "Bartlett", r[r.Lagrange = 21] = "Lagrange", r[r.Lanczos = 22] = "Lanczos", r[r.LanczosSharp = 23] = "LanczosSharp", r[r.Lanczos2 = 24] = "Lanczos2", r[r.Lanczos2Sharp = 25] = "Lanczos2Sharp", r[r.Robidoux = 26] = "Robidoux", r[r.RobidouxSharp = 27] = "RobidouxSharp", r[r.Cosine = 28] = "Cosine", r[r.Spline = 29] = "Spline", r[r.LanczosRadius = 30] = "LanczosRadius", r[r.CubicSpline = 31] = "CubicSpline", r))(ku || {}), vu = /* @__PURE__ */ ((r) => (r[r.Raw = 0] = "Raw", r[r.SRGB = 1] = "SRGB", r[r.AdobeRGB = 2] = "AdobeRGB", r[r.WideGamutRGB = 3] = "WideGamutRGB", r[r.KodakProPhotoRGB = 4] = "KodakProPhotoRGB", r[r.XYZ = 5] = "XYZ", r[r.ACES = 6] = "ACES", r))(vu || {});
|
|
7379
|
+
class Nu extends du {
|
|
7379
7380
|
constructor() {
|
|
7380
7381
|
super(Ae.Dng);
|
|
7381
7382
|
}
|
|
@@ -7391,7 +7392,7 @@ class Bu extends mu {
|
|
|
7391
7392
|
return i != null;
|
|
7392
7393
|
}
|
|
7393
7394
|
}
|
|
7394
|
-
class
|
|
7395
|
+
class zu {
|
|
7395
7396
|
static get None() {
|
|
7396
7397
|
return new y(255, 255, 255, 0);
|
|
7397
7398
|
}
|
|
@@ -7819,8 +7820,8 @@ class xu {
|
|
|
7819
7820
|
return new y(154, 205, 50, 255);
|
|
7820
7821
|
}
|
|
7821
7822
|
}
|
|
7822
|
-
var
|
|
7823
|
-
class
|
|
7823
|
+
var Su = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.TopLeft = 1] = "TopLeft", r[r.TopRight = 2] = "TopRight", r[r.BottomRight = 3] = "BottomRight", r[r.BottomLeft = 4] = "BottomLeft", r[r.LeftTop = 5] = "LeftTop", r[r.RightTop = 6] = "RightTop", r[r.RightBottom = 7] = "RightBottom", r[r.LeftBotom = 8] = "LeftBotom", r))(Su || {}), Iu = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Point = 1] = "Point", r[r.Replace = 2] = "Replace", r[r.Floodfill = 3] = "Floodfill", r[r.FillToBorder = 4] = "FillToBorder", r[r.Reset = 5] = "Reset", r))(Iu || {}), Mu = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Average = 1] = "Average", r[r.Average9 = 2] = "Average9", r[r.Average16 = 3] = "Average16", r[r.Background = 4] = "Background", r[r.Bilinear = 5] = "Bilinear", r[r.Blend = 6] = "Blend", r[r.Catrom = 7] = "Catrom", r[r.Integer = 8] = "Integer", r[r.Mesh = 9] = "Mesh", r[r.Nearest = 10] = "Nearest", r[r.Spline = 11] = "Spline", r))(Mu || {});
|
|
7824
|
+
class Hu {
|
|
7824
7825
|
bestFit = !1;
|
|
7825
7826
|
scale;
|
|
7826
7827
|
viewport;
|
|
@@ -7833,7 +7834,7 @@ class Nu {
|
|
|
7833
7834
|
this.scale !== void 0 && i.setArtifact("distort:scale", this.scale.toString()), this.viewport !== void 0 && i.setArtifact("distort:viewport", this.viewport.toString());
|
|
7834
7835
|
}
|
|
7835
7836
|
}
|
|
7836
|
-
class
|
|
7837
|
+
class Du extends Ve {
|
|
7837
7838
|
constructor(i) {
|
|
7838
7839
|
const o = m._api._MontageSettings_Create(), f = m._api._MontageSettings_Dispose;
|
|
7839
7840
|
if (super(o, f), i.backgroundColor !== void 0 && i.backgroundColor._use((p) => {
|
|
@@ -7863,7 +7864,7 @@ class Iu extends Ve {
|
|
|
7863
7864
|
});
|
|
7864
7865
|
}
|
|
7865
7866
|
}
|
|
7866
|
-
class
|
|
7867
|
+
class Fu {
|
|
7867
7868
|
backgroundColor;
|
|
7868
7869
|
borderColor;
|
|
7869
7870
|
borderWidth;
|
|
@@ -7881,49 +7882,49 @@ class zu {
|
|
|
7881
7882
|
title;
|
|
7882
7883
|
transparentColor;
|
|
7883
7884
|
_use(i) {
|
|
7884
|
-
const o = new
|
|
7885
|
+
const o = new Du(this);
|
|
7885
7886
|
return Ge._disposeAfterExecution(o, i);
|
|
7886
7887
|
}
|
|
7887
7888
|
}
|
|
7888
|
-
var
|
|
7889
|
+
var Cu = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Background = 1] = "Background", r[r.Dither = 2] = "Dither", r[r.Edge = 3] = "Edge", r[r.Mirror = 4] = "Mirror", r[r.Random = 5] = "Random", r[r.Tile = 6] = "Tile", r[r.Transparent = 7] = "Transparent", r[r.Mask = 8] = "Mask", r[r.Black = 9] = "Black", r[r.Gray = 10] = "Gray", r[r.White = 11] = "White", r[r.HorizontalTile = 12] = "HorizontalTile", r[r.VerticalTile = 13] = "VerticalTile", r[r.HorizontalTileEdge = 14] = "HorizontalTileEdge", r[r.VerticalTileEdge = 15] = "VerticalTileEdge", r[r.CheckerTile = 16] = "CheckerTile", r))(Cu || {});
|
|
7889
7890
|
export {
|
|
7890
|
-
|
|
7891
|
+
wr as AlphaOption,
|
|
7891
7892
|
Os as AutoThresholdMethod,
|
|
7892
|
-
|
|
7893
|
+
gu as ChannelStatistics,
|
|
7893
7894
|
ie as Channels,
|
|
7894
|
-
|
|
7895
|
-
|
|
7895
|
+
ru as ChromaticityInfo,
|
|
7896
|
+
fu as ClassType,
|
|
7896
7897
|
vr as ColorSpace,
|
|
7897
|
-
|
|
7898
|
+
mu as ColorType,
|
|
7898
7899
|
Nt as CompositeOperator,
|
|
7899
|
-
|
|
7900
|
-
|
|
7901
|
-
|
|
7900
|
+
pu as CompressionMethod,
|
|
7901
|
+
du as DefinesCreator,
|
|
7902
|
+
au as Density,
|
|
7902
7903
|
Sr as DensityUnit,
|
|
7903
|
-
|
|
7904
|
-
|
|
7905
|
-
|
|
7906
|
-
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
|
|
7915
|
-
|
|
7916
|
-
|
|
7917
|
-
|
|
7918
|
-
|
|
7919
|
-
|
|
7920
|
-
|
|
7904
|
+
hu as DistortMethod,
|
|
7905
|
+
Hu as DistortSettings,
|
|
7906
|
+
vu as DngOutputColor,
|
|
7907
|
+
Nu as DngReadDefines,
|
|
7908
|
+
bu as DrawableColor,
|
|
7909
|
+
Eu as DrawableFillColor,
|
|
7910
|
+
Ru as DrawableFillOpacity,
|
|
7911
|
+
Tu as DrawableFont,
|
|
7912
|
+
Au as DrawableFontPointSize,
|
|
7913
|
+
Lu as DrawableGravity,
|
|
7914
|
+
Wu as DrawableRectangle,
|
|
7915
|
+
Bu as DrawableRoundRectangle,
|
|
7916
|
+
xu as DrawableText,
|
|
7917
|
+
fn as DrawingSettings,
|
|
7918
|
+
mn as DrawingWand,
|
|
7919
|
+
yu as ErrorMetric,
|
|
7920
|
+
wu as EvaluateOperator,
|
|
7921
|
+
ku as FilterType,
|
|
7921
7922
|
zt as Gravity,
|
|
7922
7923
|
m as ImageMagick,
|
|
7923
|
-
|
|
7924
|
+
uu as ImageProfile,
|
|
7924
7925
|
Ut as Magick,
|
|
7925
7926
|
y as MagickColor,
|
|
7926
|
-
|
|
7927
|
+
zu as MagickColors,
|
|
7927
7928
|
cn as MagickDefine,
|
|
7928
7929
|
ne as MagickError,
|
|
7929
7930
|
Ft as MagickErrorSeverity,
|
|
@@ -7934,19 +7935,19 @@ export {
|
|
|
7934
7935
|
he as MagickImageCollection,
|
|
7935
7936
|
ye as MagickReadSettings,
|
|
7936
7937
|
qe as MagickSettings,
|
|
7937
|
-
|
|
7938
|
+
Fu as MontageSettings,
|
|
7938
7939
|
Ve as NativeInstance,
|
|
7939
|
-
|
|
7940
|
-
|
|
7940
|
+
Su as OrientationType,
|
|
7941
|
+
Iu as PaintMethod,
|
|
7941
7942
|
ge as Percentage,
|
|
7942
7943
|
Re as PixelChannel,
|
|
7943
7944
|
Ne as PixelCollection,
|
|
7944
|
-
|
|
7945
|
+
Mu as PixelInterpolateMethod,
|
|
7945
7946
|
ft as Point,
|
|
7946
7947
|
ze as PrimaryInfo,
|
|
7947
7948
|
He as Quantum,
|
|
7948
|
-
|
|
7949
|
-
|
|
7950
|
-
|
|
7951
|
-
|
|
7949
|
+
pn as Statistics,
|
|
7950
|
+
Cu as VirtualPixelMethod,
|
|
7951
|
+
su as _getEdges,
|
|
7952
|
+
Gu as initializeImageMagick
|
|
7952
7953
|
};
|