@mlightcad/cad-simple-viewer 1.3.2 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +481 -463
- package/dist/index.umd.cjs +16 -16
- package/dist/libredwg-parser-worker.js +176 -176
- package/dist/mtext-renderer-worker.js +468 -466
- package/lib/editor/input/prompt/AcEdPromptAngleOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptAngleOptions.js +2 -2
- package/lib/editor/input/prompt/AcEdPromptAngleOptions.js.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptDistanceOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptDistanceOptions.js +3 -3
- package/lib/editor/input/prompt/AcEdPromptDistanceOptions.js.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts +4 -0
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInput.js +13 -3
- package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts +9 -0
- package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.js +16 -15
- package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
- package/lib/view/AcTrLayout.d.ts +14 -5
- package/lib/view/AcTrLayout.d.ts.map +1 -1
- package/lib/view/AcTrLayout.js +33 -25
- package/lib/view/AcTrLayout.js.map +1 -1
- package/lib/view/AcTrView2d.d.ts.map +1 -1
- package/lib/view/AcTrView2d.js +6 -0
- package/lib/view/AcTrView2d.js.map +1 -1
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var Zh = (n, e) => () => (e || n((e = { exports: {} }).exports, e), e.exports);
|
|
2
|
-
var
|
|
2
|
+
var $d = Zh((O) => {
|
|
3
3
|
/**
|
|
4
4
|
* @license
|
|
5
5
|
* Copyright 2010-2024 Three.js Authors
|
|
@@ -71,7 +71,7 @@ var Jd = Zh((O) => {
|
|
|
71
71
|
throw new Error("Invalid component type.");
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function Se(n, e) {
|
|
75
75
|
switch (e.constructor) {
|
|
76
76
|
case Float32Array:
|
|
77
77
|
return n;
|
|
@@ -344,8 +344,8 @@ var Jd = Zh((O) => {
|
|
|
344
344
|
return this.multiplyMatrices(e, this);
|
|
345
345
|
}
|
|
346
346
|
multiplyMatrices(e, t) {
|
|
347
|
-
const r = e.elements, i = t.elements, s = this.elements, a = r[0], o = r[3], h = r[6], c = r[1], u = r[4], f = r[7], l = r[2], p = r[5], g = r[8], m = i[0], x = i[3], v = i[6], w = i[1], b = i[4], F = i[7],
|
|
348
|
-
return s[0] = a * m + o * w + h *
|
|
347
|
+
const r = e.elements, i = t.elements, s = this.elements, a = r[0], o = r[3], h = r[6], c = r[1], u = r[4], f = r[7], l = r[2], p = r[5], g = r[8], m = i[0], x = i[3], v = i[6], w = i[1], b = i[4], F = i[7], k = i[2], _ = i[5], E = i[8];
|
|
348
|
+
return s[0] = a * m + o * w + h * k, s[3] = a * x + o * b + h * _, s[6] = a * v + o * F + h * E, s[1] = c * m + u * w + f * k, s[4] = c * x + u * b + f * _, s[7] = c * v + u * F + f * E, s[2] = l * m + p * w + g * k, s[5] = l * x + p * b + g * _, s[8] = l * v + p * F + g * E, this;
|
|
349
349
|
}
|
|
350
350
|
multiplyScalar(e) {
|
|
351
351
|
const t = this.elements;
|
|
@@ -874,8 +874,8 @@ var Jd = Zh((O) => {
|
|
|
874
874
|
if (Math.abs(u + l) < 0.1 && Math.abs(f + m) < 0.1 && Math.abs(g + x) < 0.1 && Math.abs(c + p + v - 3) < 0.1)
|
|
875
875
|
return this.set(1, 0, 0, 0), this;
|
|
876
876
|
t = Math.PI;
|
|
877
|
-
const b = (c + 1) / 2, F = (p + 1) / 2,
|
|
878
|
-
return b > F && b >
|
|
877
|
+
const b = (c + 1) / 2, F = (p + 1) / 2, k = (v + 1) / 2, _ = (u + l) / 4, E = (f + m) / 4, B = (g + x) / 4;
|
|
878
|
+
return b > F && b > k ? b < 0.01 ? (r = 0, i = 0.707106781, s = 0.707106781) : (r = Math.sqrt(b), i = _ / r, s = E / r) : F > k ? F < 0.01 ? (r = 0.707106781, i = 0, s = 0.707106781) : (i = Math.sqrt(F), r = _ / i, s = B / i) : k < 0.01 ? (r = 0.707106781, i = 0.707106781, s = 0) : (s = Math.sqrt(k), r = E / s, i = B / s), this.set(r, i, s, t), this;
|
|
879
879
|
}
|
|
880
880
|
let w = Math.sqrt((x - g) * (x - g) + (f - m) * (f - m) + (l - u) * (l - u));
|
|
881
881
|
return Math.abs(w) < 1e-3 && (w = 1), this.x = (x - g) / w, this.y = (f - m) / w, this.z = (l - u) / w, this.w = Math.acos((c + p + v - 1) / 2), this;
|
|
@@ -977,13 +977,13 @@ var Jd = Zh((O) => {
|
|
|
977
977
|
let x = 1 - o;
|
|
978
978
|
const v = h * l + c * p + u * g + f * m, w = v >= 0 ? 1 : -1, b = 1 - v * v;
|
|
979
979
|
if (b > Number.EPSILON) {
|
|
980
|
-
const
|
|
981
|
-
x = Math.sin(x * _) /
|
|
980
|
+
const k = Math.sqrt(b), _ = Math.atan2(k, v * w);
|
|
981
|
+
x = Math.sin(x * _) / k, o = Math.sin(o * _) / k;
|
|
982
982
|
}
|
|
983
983
|
const F = o * w;
|
|
984
984
|
if (h = h * x + l * F, c = c * x + p * F, u = u * x + g * F, f = f * x + m * F, x === 1 - o) {
|
|
985
|
-
const
|
|
986
|
-
h *=
|
|
985
|
+
const k = 1 / Math.sqrt(h * h + c * c + u * u + f * f);
|
|
986
|
+
h *= k, c *= k, u *= k, f *= k;
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
989
|
e[t] = h, e[t + 1] = c, e[t + 2] = u, e[t + 3] = f;
|
|
@@ -1944,8 +1944,8 @@ var Jd = Zh((O) => {
|
|
|
1944
1944
|
return this.multiplyMatrices(e, this);
|
|
1945
1945
|
}
|
|
1946
1946
|
multiplyMatrices(e, t) {
|
|
1947
|
-
const r = e.elements, i = t.elements, s = this.elements, a = r[0], o = r[4], h = r[8], c = r[12], u = r[1], f = r[5], l = r[9], p = r[13], g = r[2], m = r[6], x = r[10], v = r[14], w = r[3], b = r[7], F = r[11],
|
|
1948
|
-
return s[0] = a * _ + o * N + h * Z + c * ie, s[4] = a * E + o * q + h * j + c * ne, s[8] = a * B + o * re + h * Q + c * ae, s[12] = a * I + o * Y + h * te + c * H, s[1] = u * _ + f * N + l * Z + p * ie, s[5] = u * E + f * q + l * j + p * ne, s[9] = u * B + f * re + l * Q + p * ae, s[13] = u * I + f * Y + l * te + p * H, s[2] = g * _ + m * N + x * Z + v * ie, s[6] = g * E + m * q + x * j + v * ne, s[10] = g * B + m * re + x * Q + v * ae, s[14] = g * I + m * Y + x * te + v * H, s[3] = w * _ + b * N + F * Z +
|
|
1947
|
+
const r = e.elements, i = t.elements, s = this.elements, a = r[0], o = r[4], h = r[8], c = r[12], u = r[1], f = r[5], l = r[9], p = r[13], g = r[2], m = r[6], x = r[10], v = r[14], w = r[3], b = r[7], F = r[11], k = r[15], _ = i[0], E = i[4], B = i[8], I = i[12], N = i[1], q = i[5], re = i[9], Y = i[13], Z = i[2], j = i[6], Q = i[10], te = i[14], ie = i[3], ne = i[7], ae = i[11], H = i[15];
|
|
1948
|
+
return s[0] = a * _ + o * N + h * Z + c * ie, s[4] = a * E + o * q + h * j + c * ne, s[8] = a * B + o * re + h * Q + c * ae, s[12] = a * I + o * Y + h * te + c * H, s[1] = u * _ + f * N + l * Z + p * ie, s[5] = u * E + f * q + l * j + p * ne, s[9] = u * B + f * re + l * Q + p * ae, s[13] = u * I + f * Y + l * te + p * H, s[2] = g * _ + m * N + x * Z + v * ie, s[6] = g * E + m * q + x * j + v * ne, s[10] = g * B + m * re + x * Q + v * ae, s[14] = g * I + m * Y + x * te + v * H, s[3] = w * _ + b * N + F * Z + k * ie, s[7] = w * E + b * q + F * j + k * ne, s[11] = w * B + b * re + F * Q + k * ae, s[15] = w * I + b * Y + F * te + k * H, this;
|
|
1949
1949
|
}
|
|
1950
1950
|
multiplyScalar(e) {
|
|
1951
1951
|
const t = this.elements;
|
|
@@ -1965,10 +1965,10 @@ var Jd = Zh((O) => {
|
|
|
1965
1965
|
return e.isVector3 ? (i[12] = e.x, i[13] = e.y, i[14] = e.z) : (i[12] = e, i[13] = t, i[14] = r), this;
|
|
1966
1966
|
}
|
|
1967
1967
|
invert() {
|
|
1968
|
-
const e = this.elements, t = e[0], r = e[1], i = e[2], s = e[3], a = e[4], o = e[5], h = e[6], c = e[7], u = e[8], f = e[9], l = e[10], p = e[11], g = e[12], m = e[13], x = e[14], v = e[15], w = f * x * c - m * l * c + m * h * p - o * x * p - f * h * v + o * l * v, b = g * l * c - u * x * c - g * h * p + a * x * p + u * h * v - a * l * v, F = u * m * c - g * f * c + g * o * p - a * m * p - u * o * v + a * f * v,
|
|
1968
|
+
const e = this.elements, t = e[0], r = e[1], i = e[2], s = e[3], a = e[4], o = e[5], h = e[6], c = e[7], u = e[8], f = e[9], l = e[10], p = e[11], g = e[12], m = e[13], x = e[14], v = e[15], w = f * x * c - m * l * c + m * h * p - o * x * p - f * h * v + o * l * v, b = g * l * c - u * x * c - g * h * p + a * x * p + u * h * v - a * l * v, F = u * m * c - g * f * c + g * o * p - a * m * p - u * o * v + a * f * v, k = g * f * h - u * m * h - g * o * l + a * m * l + u * o * x - a * f * x, _ = t * w + r * b + i * F + s * k;
|
|
1969
1969
|
if (_ === 0) return this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
|
1970
1970
|
const E = 1 / _;
|
|
1971
|
-
return e[0] = w * E, e[1] = (m * l * s - f * x * s - m * i * p + r * x * p + f * i * v - r * l * v) * E, e[2] = (o * x * s - m * h * s + m * i * c - r * x * c - o * i * v + r * h * v) * E, e[3] = (f * h * s - o * l * s - f * i * c + r * l * c + o * i * p - r * h * p) * E, e[4] = b * E, e[5] = (u * x * s - g * l * s + g * i * p - t * x * p - u * i * v + t * l * v) * E, e[6] = (g * h * s - a * x * s - g * i * c + t * x * c + a * i * v - t * h * v) * E, e[7] = (a * l * s - u * h * s + u * i * c - t * l * c - a * i * p + t * h * p) * E, e[8] = F * E, e[9] = (g * f * s - u * m * s - g * r * p + t * m * p + u * r * v - t * f * v) * E, e[10] = (a * m * s - g * o * s + g * r * c - t * m * c - a * r * v + t * o * v) * E, e[11] = (u * o * s - a * f * s - u * r * c + t * f * c + a * r * p - t * o * p) * E, e[12] =
|
|
1971
|
+
return e[0] = w * E, e[1] = (m * l * s - f * x * s - m * i * p + r * x * p + f * i * v - r * l * v) * E, e[2] = (o * x * s - m * h * s + m * i * c - r * x * c - o * i * v + r * h * v) * E, e[3] = (f * h * s - o * l * s - f * i * c + r * l * c + o * i * p - r * h * p) * E, e[4] = b * E, e[5] = (u * x * s - g * l * s + g * i * p - t * x * p - u * i * v + t * l * v) * E, e[6] = (g * h * s - a * x * s - g * i * c + t * x * c + a * i * v - t * h * v) * E, e[7] = (a * l * s - u * h * s + u * i * c - t * l * c - a * i * p + t * h * p) * E, e[8] = F * E, e[9] = (g * f * s - u * m * s - g * r * p + t * m * p + u * r * v - t * f * v) * E, e[10] = (a * m * s - g * o * s + g * r * c - t * m * c - a * r * v + t * o * v) * E, e[11] = (u * o * s - a * f * s - u * r * c + t * f * c + a * r * p - t * o * p) * E, e[12] = k * E, e[13] = (u * m * i - g * f * i + g * r * l - t * m * l - u * r * x + t * f * x) * E, e[14] = (g * o * i - a * m * i - g * r * h + t * m * h + a * r * x - t * o * x) * E, e[15] = (a * f * i - u * o * i + u * r * h - t * f * h - a * r * l + t * o * l) * E, this;
|
|
1972
1972
|
}
|
|
1973
1973
|
scale(e) {
|
|
1974
1974
|
const t = this.elements, r = e.x, i = e.y, s = e.z;
|
|
@@ -2140,8 +2140,8 @@ var Jd = Zh((O) => {
|
|
|
2140
2140
|
), this;
|
|
2141
2141
|
}
|
|
2142
2142
|
compose(e, t, r) {
|
|
2143
|
-
const i = this.elements, s = t._x, a = t._y, o = t._z, h = t._w, c = s + s, u = a + a, f = o + o, l = s * c, p = s * u, g = s * f, m = a * u, x = a * f, v = o * f, w = h * c, b = h * u, F = h * f,
|
|
2144
|
-
return i[0] = (1 - (m + v)) *
|
|
2143
|
+
const i = this.elements, s = t._x, a = t._y, o = t._z, h = t._w, c = s + s, u = a + a, f = o + o, l = s * c, p = s * u, g = s * f, m = a * u, x = a * f, v = o * f, w = h * c, b = h * u, F = h * f, k = r.x, _ = r.y, E = r.z;
|
|
2144
|
+
return i[0] = (1 - (m + v)) * k, i[1] = (p + F) * k, i[2] = (g - b) * k, i[3] = 0, i[4] = (p - F) * _, i[5] = (1 - (l + v)) * _, i[6] = (x + w) * _, i[7] = 0, i[8] = (g + b) * E, i[9] = (x - w) * E, i[10] = (1 - (l + m)) * E, i[11] = 0, i[12] = e.x, i[13] = e.y, i[14] = e.z, i[15] = 1, this;
|
|
2145
2145
|
}
|
|
2146
2146
|
decompose(e, t, r) {
|
|
2147
2147
|
const i = this.elements;
|
|
@@ -3236,44 +3236,44 @@ var Jd = Zh((O) => {
|
|
|
3236
3236
|
return this.normalized && (r = mr(r, this.array)), r;
|
|
3237
3237
|
}
|
|
3238
3238
|
setComponent(e, t, r) {
|
|
3239
|
-
return this.normalized && (r =
|
|
3239
|
+
return this.normalized && (r = Se(r, this.array)), this.array[e * this.itemSize + t] = r, this;
|
|
3240
3240
|
}
|
|
3241
3241
|
getX(e) {
|
|
3242
3242
|
let t = this.array[e * this.itemSize];
|
|
3243
3243
|
return this.normalized && (t = mr(t, this.array)), t;
|
|
3244
3244
|
}
|
|
3245
3245
|
setX(e, t) {
|
|
3246
|
-
return this.normalized && (t =
|
|
3246
|
+
return this.normalized && (t = Se(t, this.array)), this.array[e * this.itemSize] = t, this;
|
|
3247
3247
|
}
|
|
3248
3248
|
getY(e) {
|
|
3249
3249
|
let t = this.array[e * this.itemSize + 1];
|
|
3250
3250
|
return this.normalized && (t = mr(t, this.array)), t;
|
|
3251
3251
|
}
|
|
3252
3252
|
setY(e, t) {
|
|
3253
|
-
return this.normalized && (t =
|
|
3253
|
+
return this.normalized && (t = Se(t, this.array)), this.array[e * this.itemSize + 1] = t, this;
|
|
3254
3254
|
}
|
|
3255
3255
|
getZ(e) {
|
|
3256
3256
|
let t = this.array[e * this.itemSize + 2];
|
|
3257
3257
|
return this.normalized && (t = mr(t, this.array)), t;
|
|
3258
3258
|
}
|
|
3259
3259
|
setZ(e, t) {
|
|
3260
|
-
return this.normalized && (t =
|
|
3260
|
+
return this.normalized && (t = Se(t, this.array)), this.array[e * this.itemSize + 2] = t, this;
|
|
3261
3261
|
}
|
|
3262
3262
|
getW(e) {
|
|
3263
3263
|
let t = this.array[e * this.itemSize + 3];
|
|
3264
3264
|
return this.normalized && (t = mr(t, this.array)), t;
|
|
3265
3265
|
}
|
|
3266
3266
|
setW(e, t) {
|
|
3267
|
-
return this.normalized && (t =
|
|
3267
|
+
return this.normalized && (t = Se(t, this.array)), this.array[e * this.itemSize + 3] = t, this;
|
|
3268
3268
|
}
|
|
3269
3269
|
setXY(e, t, r) {
|
|
3270
|
-
return e *= this.itemSize, this.normalized && (t =
|
|
3270
|
+
return e *= this.itemSize, this.normalized && (t = Se(t, this.array), r = Se(r, this.array)), this.array[e + 0] = t, this.array[e + 1] = r, this;
|
|
3271
3271
|
}
|
|
3272
3272
|
setXYZ(e, t, r, i) {
|
|
3273
|
-
return e *= this.itemSize, this.normalized && (t =
|
|
3273
|
+
return e *= this.itemSize, this.normalized && (t = Se(t, this.array), r = Se(r, this.array), i = Se(i, this.array)), this.array[e + 0] = t, this.array[e + 1] = r, this.array[e + 2] = i, this;
|
|
3274
3274
|
}
|
|
3275
3275
|
setXYZW(e, t, r, i, s) {
|
|
3276
|
-
return e *= this.itemSize, this.normalized && (t =
|
|
3276
|
+
return e *= this.itemSize, this.normalized && (t = Se(t, this.array), r = Se(r, this.array), i = Se(i, this.array), s = Se(s, this.array)), this.array[e + 0] = t, this.array[e + 1] = r, this.array[e + 2] = i, this.array[e + 3] = s, this;
|
|
3277
3277
|
}
|
|
3278
3278
|
onUpload(e) {
|
|
3279
3279
|
return this.onUploadCallback = e, this;
|
|
@@ -3481,11 +3481,11 @@ var Jd = Zh((O) => {
|
|
|
3481
3481
|
e.getX(Y + 2)
|
|
3482
3482
|
);
|
|
3483
3483
|
}
|
|
3484
|
-
const b = new A(), F = new A(),
|
|
3484
|
+
const b = new A(), F = new A(), k = new A(), _ = new A();
|
|
3485
3485
|
function E(B) {
|
|
3486
|
-
|
|
3486
|
+
k.fromBufferAttribute(i, B), _.copy(k);
|
|
3487
3487
|
const I = o[B];
|
|
3488
|
-
b.copy(I), b.sub(
|
|
3488
|
+
b.copy(I), b.sub(k.multiplyScalar(k.dot(I))).normalize(), F.crossVectors(_, I);
|
|
3489
3489
|
const q = F.dot(h[B]) < 0 ? -1 : 1;
|
|
3490
3490
|
a.setXYZW(B, b.x, b.y, b.z, q);
|
|
3491
3491
|
}
|
|
@@ -3682,7 +3682,7 @@ var Jd = Zh((O) => {
|
|
|
3682
3682
|
if (Array.isArray(a))
|
|
3683
3683
|
for (let g = 0, m = l.length; g < m; g++) {
|
|
3684
3684
|
const x = l[g], v = a[x.materialIndex], w = Math.max(x.start, p.start), b = Math.min(o.count, Math.min(x.start + x.count, p.start + p.count));
|
|
3685
|
-
for (let F = w,
|
|
3685
|
+
for (let F = w, k = b; F < k; F += 3) {
|
|
3686
3686
|
const _ = o.getX(F), E = o.getX(F + 1), B = o.getX(F + 2);
|
|
3687
3687
|
i = vn(this, v, e, r, c, u, f, _, E, B), i && (i.faceIndex = Math.floor(F / 3), i.face.materialIndex = x.materialIndex, t.push(i));
|
|
3688
3688
|
}
|
|
@@ -3698,7 +3698,7 @@ var Jd = Zh((O) => {
|
|
|
3698
3698
|
if (Array.isArray(a))
|
|
3699
3699
|
for (let g = 0, m = l.length; g < m; g++) {
|
|
3700
3700
|
const x = l[g], v = a[x.materialIndex], w = Math.max(x.start, p.start), b = Math.min(h.count, Math.min(x.start + x.count, p.start + p.count));
|
|
3701
|
-
for (let F = w,
|
|
3701
|
+
for (let F = w, k = b; F < k; F += 3) {
|
|
3702
3702
|
const _ = F, E = F + 1, B = F + 2;
|
|
3703
3703
|
i = vn(this, v, e, r, c, u, f, _, E, B), i && (i.faceIndex = Math.floor(F / 3), i.face.materialIndex = x.materialIndex, t.push(i));
|
|
3704
3704
|
}
|
|
@@ -4100,7 +4100,7 @@ var Jd = Zh((O) => {
|
|
|
4100
4100
|
function bc(n, e) {
|
|
4101
4101
|
return n * n * e;
|
|
4102
4102
|
}
|
|
4103
|
-
function
|
|
4103
|
+
function Cr(n, e, t, r) {
|
|
4104
4104
|
return vc(n, e) + xc(n, t) + bc(n, r);
|
|
4105
4105
|
}
|
|
4106
4106
|
function wc(n, e) {
|
|
@@ -4142,7 +4142,7 @@ var Jd = Zh((O) => {
|
|
|
4142
4142
|
return super.fromJSON(e), this.v0.fromArray(e.v0), this.v1.fromArray(e.v1), this.v2.fromArray(e.v2), this.v3.fromArray(e.v3), this;
|
|
4143
4143
|
}
|
|
4144
4144
|
}
|
|
4145
|
-
class
|
|
4145
|
+
class kc extends tt {
|
|
4146
4146
|
constructor(e = new A(), t = new A(), r = new A(), i = new A()) {
|
|
4147
4147
|
super(), this.isCubicBezierCurve3 = !0, this.type = "CubicBezierCurve3", this.v0 = e, this.v1 = t, this.v2 = r, this.v3 = i;
|
|
4148
4148
|
}
|
|
@@ -4194,7 +4194,7 @@ var Jd = Zh((O) => {
|
|
|
4194
4194
|
return super.fromJSON(e), this.v1.fromArray(e.v1), this.v2.fromArray(e.v2), this;
|
|
4195
4195
|
}
|
|
4196
4196
|
}
|
|
4197
|
-
class
|
|
4197
|
+
class Cc extends tt {
|
|
4198
4198
|
constructor(e = new A(), t = new A()) {
|
|
4199
4199
|
super(), this.isLineCurve3 = !0, this.type = "LineCurve3", this.v1 = e, this.v2 = t;
|
|
4200
4200
|
}
|
|
@@ -4230,8 +4230,8 @@ var Jd = Zh((O) => {
|
|
|
4230
4230
|
getPoint(e, t = new V()) {
|
|
4231
4231
|
const r = t, i = this.v0, s = this.v1, a = this.v2;
|
|
4232
4232
|
return r.set(
|
|
4233
|
-
|
|
4234
|
-
|
|
4233
|
+
Cr(e, i.x, s.x, a.x),
|
|
4234
|
+
Cr(e, i.y, s.y, a.y)
|
|
4235
4235
|
), r;
|
|
4236
4236
|
}
|
|
4237
4237
|
copy(e) {
|
|
@@ -4252,9 +4252,9 @@ var Jd = Zh((O) => {
|
|
|
4252
4252
|
getPoint(e, t = new A()) {
|
|
4253
4253
|
const r = t, i = this.v0, s = this.v1, a = this.v2;
|
|
4254
4254
|
return r.set(
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4255
|
+
Cr(e, i.x, s.x, a.x),
|
|
4256
|
+
Cr(e, i.y, s.y, a.y),
|
|
4257
|
+
Cr(e, i.z, s.z, a.z)
|
|
4258
4258
|
), r;
|
|
4259
4259
|
}
|
|
4260
4260
|
copy(e) {
|
|
@@ -4310,10 +4310,10 @@ var Jd = Zh((O) => {
|
|
|
4310
4310
|
ArcCurve: yc,
|
|
4311
4311
|
CatmullRomCurve3: mc,
|
|
4312
4312
|
CubicBezierCurve: In,
|
|
4313
|
-
CubicBezierCurve3:
|
|
4313
|
+
CubicBezierCurve3: kc,
|
|
4314
4314
|
EllipseCurve: Or,
|
|
4315
4315
|
LineCurve: Ar,
|
|
4316
|
-
LineCurve3:
|
|
4316
|
+
LineCurve3: Cc,
|
|
4317
4317
|
QuadraticBezierCurve: Pn,
|
|
4318
4318
|
QuadraticBezierCurve3: Mc,
|
|
4319
4319
|
SplineCurve: Po
|
|
@@ -4846,8 +4846,8 @@ var Jd = Zh((O) => {
|
|
|
4846
4846
|
i.push(w.x, w.y, 0), s.push(0, 0, 1), a.push(w.x, w.y);
|
|
4847
4847
|
}
|
|
4848
4848
|
for (let x = 0, v = m.length; x < v; x++) {
|
|
4849
|
-
const w = m[x], b = w[0] + f, F = w[1] + f,
|
|
4850
|
-
r.push(b, F,
|
|
4849
|
+
const w = m[x], b = w[0] + f, F = w[1] + f, k = w[2] + f;
|
|
4850
|
+
r.push(b, F, k), h += 3;
|
|
4851
4851
|
}
|
|
4852
4852
|
}
|
|
4853
4853
|
}
|
|
@@ -5006,10 +5006,10 @@ var Jd = Zh((O) => {
|
|
|
5006
5006
|
v.close();
|
|
5007
5007
|
else {
|
|
5008
5008
|
m += F.byteLength;
|
|
5009
|
-
const
|
|
5009
|
+
const k = new ProgressEvent("progress", { lengthComputable: g, loaded: m, total: p });
|
|
5010
5010
|
for (let _ = 0, E = u.length; _ < E; _++) {
|
|
5011
5011
|
const B = u[_];
|
|
5012
|
-
B.onProgress && B.onProgress(
|
|
5012
|
+
B.onProgress && B.onProgress(k);
|
|
5013
5013
|
}
|
|
5014
5014
|
v.enqueue(F), w();
|
|
5015
5015
|
}
|
|
@@ -5092,18 +5092,18 @@ var Jd = Zh((O) => {
|
|
|
5092
5092
|
function t(v) {
|
|
5093
5093
|
const w = [];
|
|
5094
5094
|
for (let b = 0, F = v.length; b < F; b++) {
|
|
5095
|
-
const
|
|
5096
|
-
_.curves =
|
|
5095
|
+
const k = v[b], _ = new or();
|
|
5096
|
+
_.curves = k.curves, w.push(_);
|
|
5097
5097
|
}
|
|
5098
5098
|
return w;
|
|
5099
5099
|
}
|
|
5100
5100
|
function r(v, w) {
|
|
5101
5101
|
const b = w.length;
|
|
5102
5102
|
let F = !1;
|
|
5103
|
-
for (let
|
|
5104
|
-
let E = w[
|
|
5103
|
+
for (let k = b - 1, _ = 0; _ < b; k = _++) {
|
|
5104
|
+
let E = w[k], B = w[_], I = B.x - E.x, N = B.y - E.y;
|
|
5105
5105
|
if (Math.abs(N) > Number.EPSILON) {
|
|
5106
|
-
if (N < 0 && (E = w[_], I = -I, B = w[
|
|
5106
|
+
if (N < 0 && (E = w[_], I = -I, B = w[k], N = -N), v.y < E.y || v.y > B.y) continue;
|
|
5107
5107
|
if (v.y === E.y) {
|
|
5108
5108
|
if (v.x === E.x) return !0;
|
|
5109
5109
|
} else {
|
|
@@ -5138,9 +5138,9 @@ var Jd = Zh((O) => {
|
|
|
5138
5138
|
for (let b = 0, F = l.length; b < F; b++)
|
|
5139
5139
|
f[b] = [];
|
|
5140
5140
|
for (let b = 0, F = l.length; b < F; b++) {
|
|
5141
|
-
const
|
|
5142
|
-
for (let _ = 0; _ <
|
|
5143
|
-
const E =
|
|
5141
|
+
const k = p[b];
|
|
5142
|
+
for (let _ = 0; _ < k.length; _++) {
|
|
5143
|
+
const E = k[_];
|
|
5144
5144
|
let B = !0;
|
|
5145
5145
|
for (let I = 0; I < l.length; I++)
|
|
5146
5146
|
r(E.p, l[I].p) && (b !== I && w++, B ? (B = !1, f[I].push(E)) : v = !0);
|
|
@@ -5396,7 +5396,7 @@ var Jd = Zh((O) => {
|
|
|
5396
5396
|
}));
|
|
5397
5397
|
const Dt = {
|
|
5398
5398
|
fonts: "fonts"
|
|
5399
|
-
},
|
|
5399
|
+
}, ki = [
|
|
5400
5400
|
{
|
|
5401
5401
|
version: 1,
|
|
5402
5402
|
stores: [
|
|
@@ -5415,7 +5415,7 @@ var Jd = Zh((O) => {
|
|
|
5415
5415
|
}
|
|
5416
5416
|
]
|
|
5417
5417
|
}
|
|
5418
|
-
],
|
|
5418
|
+
], ke = class ke {
|
|
5419
5419
|
constructor() {
|
|
5420
5420
|
this.isClosing = !1, typeof window < "u" && window.addEventListener("unload", () => {
|
|
5421
5421
|
this.close();
|
|
@@ -5425,7 +5425,7 @@ var Jd = Zh((O) => {
|
|
|
5425
5425
|
* Returns the singleton instance of the FontCacheManager
|
|
5426
5426
|
*/
|
|
5427
5427
|
static get instance() {
|
|
5428
|
-
return
|
|
5428
|
+
return ke._instance || (ke._instance = new ke()), ke._instance;
|
|
5429
5429
|
}
|
|
5430
5430
|
/**
|
|
5431
5431
|
* Sets a font in the cache
|
|
@@ -5489,15 +5489,15 @@ var Jd = Zh((O) => {
|
|
|
5489
5489
|
* Use with caution as this operation cannot be undone.
|
|
5490
5490
|
*/
|
|
5491
5491
|
async destroy() {
|
|
5492
|
-
this.close(), await indexedDB.deleteDatabase(
|
|
5492
|
+
this.close(), await indexedDB.deleteDatabase(ke.DATABASE_NAME), ke._instance = void 0;
|
|
5493
5493
|
}
|
|
5494
5494
|
// Private methods for database management
|
|
5495
5495
|
async getDatabase() {
|
|
5496
5496
|
if (this.isClosing)
|
|
5497
5497
|
throw new Error("Cannot perform operation while database is closing");
|
|
5498
5498
|
return this.db ? this.db : (this.db = await iu(
|
|
5499
|
-
|
|
5500
|
-
|
|
5499
|
+
ke.DATABASE_NAME,
|
|
5500
|
+
ke.DATABASE_VERSION,
|
|
5501
5501
|
{
|
|
5502
5502
|
upgrade: (e, t, r) => this.handleUpgrade(e, t, r),
|
|
5503
5503
|
blocked() {
|
|
@@ -5506,7 +5506,7 @@ var Jd = Zh((O) => {
|
|
|
5506
5506
|
);
|
|
5507
5507
|
},
|
|
5508
5508
|
blocking() {
|
|
5509
|
-
console.warn("Database blocking newer version - closing connection"),
|
|
5509
|
+
console.warn("Database blocking newer version - closing connection"), ke.instance.close();
|
|
5510
5510
|
}
|
|
5511
5511
|
}
|
|
5512
5512
|
), this.db);
|
|
@@ -5518,7 +5518,7 @@ var Jd = Zh((O) => {
|
|
|
5518
5518
|
* @param newVersion The new version of the database
|
|
5519
5519
|
*/
|
|
5520
5520
|
handleUpgrade(e, t, r) {
|
|
5521
|
-
const i =
|
|
5521
|
+
const i = ki.filter(
|
|
5522
5522
|
(s) => s.version > t && (!r || s.version <= r)
|
|
5523
5523
|
);
|
|
5524
5524
|
for (const s of i)
|
|
@@ -5534,8 +5534,8 @@ var Jd = Zh((O) => {
|
|
|
5534
5534
|
e.objectStoreNames.contains(r.name) || e.createObjectStore(r.name, { keyPath: r.keyPath });
|
|
5535
5535
|
}
|
|
5536
5536
|
};
|
|
5537
|
-
|
|
5538
|
-
let Er =
|
|
5537
|
+
ke.DATABASE_NAME = "mlightcad", ke.DATABASE_VERSION = ki[ki.length - 1].version;
|
|
5538
|
+
let Er = ke;
|
|
5539
5539
|
class wa {
|
|
5540
5540
|
constructor() {
|
|
5541
5541
|
this.listeners = [];
|
|
@@ -5918,7 +5918,7 @@ var Jd = Zh((O) => {
|
|
|
5918
5918
|
e.trans[t] = t;
|
|
5919
5919
|
}
|
|
5920
5920
|
var Ta = new Uint16Array(16);
|
|
5921
|
-
function
|
|
5921
|
+
function Ci(n, e, t, r) {
|
|
5922
5922
|
var i, s;
|
|
5923
5923
|
for (i = 0; i < 16; ++i)
|
|
5924
5924
|
n.table[i] = 0;
|
|
@@ -5959,7 +5959,7 @@ var Jd = Zh((O) => {
|
|
|
5959
5959
|
var c = je(n, 3, 0);
|
|
5960
5960
|
$e[pu[a]] = c;
|
|
5961
5961
|
}
|
|
5962
|
-
for (
|
|
5962
|
+
for (Ci(Fa, $e, 0, 19), o = 0; o < r + i; ) {
|
|
5963
5963
|
var u = os(n, Fa);
|
|
5964
5964
|
switch (u) {
|
|
5965
5965
|
case 16:
|
|
@@ -5980,9 +5980,9 @@ var Jd = Zh((O) => {
|
|
|
5980
5980
|
break;
|
|
5981
5981
|
}
|
|
5982
5982
|
}
|
|
5983
|
-
|
|
5983
|
+
Ci(e, $e, 0, r), Ci(t, $e, r, i);
|
|
5984
5984
|
}
|
|
5985
|
-
function
|
|
5985
|
+
function ka(n, e, t) {
|
|
5986
5986
|
for (; ; ) {
|
|
5987
5987
|
var r = os(n, e);
|
|
5988
5988
|
if (r === 256)
|
|
@@ -6013,10 +6013,10 @@ var Jd = Zh((O) => {
|
|
|
6013
6013
|
s = mu(t);
|
|
6014
6014
|
break;
|
|
6015
6015
|
case 1:
|
|
6016
|
-
s =
|
|
6016
|
+
s = ka(t, $o, jo);
|
|
6017
6017
|
break;
|
|
6018
6018
|
case 2:
|
|
6019
|
-
yu(t, t.ltree, t.dtree), s =
|
|
6019
|
+
yu(t, t.ltree, t.dtree), s = ka(t, t.ltree, t.dtree);
|
|
6020
6020
|
break;
|
|
6021
6021
|
default:
|
|
6022
6022
|
s = Jo;
|
|
@@ -6189,10 +6189,10 @@ var Jd = Zh((O) => {
|
|
|
6189
6189
|
function th(n) {
|
|
6190
6190
|
throw new Error(n);
|
|
6191
6191
|
}
|
|
6192
|
-
function
|
|
6192
|
+
function Ca(n, e) {
|
|
6193
6193
|
n || th(e);
|
|
6194
6194
|
}
|
|
6195
|
-
var G = { fail: th, argument:
|
|
6195
|
+
var G = { fail: th, argument: Ca, assert: Ca }, Ma = 32768, Aa = 2147483648, lr = {}, R = {}, W = {};
|
|
6196
6196
|
function Ye(n) {
|
|
6197
6197
|
return function() {
|
|
6198
6198
|
return n;
|
|
@@ -6370,13 +6370,13 @@ var Jd = Zh((O) => {
|
|
|
6370
6370
|
return s;
|
|
6371
6371
|
}
|
|
6372
6372
|
};
|
|
6373
|
-
var Tn = typeof WeakMap == "function" && /* @__PURE__ */ new WeakMap(),
|
|
6374
|
-
if (!
|
|
6375
|
-
|
|
6373
|
+
var Tn = typeof WeakMap == "function" && /* @__PURE__ */ new WeakMap(), kn, bu = function(n) {
|
|
6374
|
+
if (!kn) {
|
|
6375
|
+
kn = {};
|
|
6376
6376
|
for (var e in hs)
|
|
6377
|
-
|
|
6377
|
+
kn[e] = new String(e);
|
|
6378
6378
|
}
|
|
6379
|
-
var t =
|
|
6379
|
+
var t = kn[n];
|
|
6380
6380
|
if (t !== void 0) {
|
|
6381
6381
|
if (Tn) {
|
|
6382
6382
|
var r = Tn.get(t);
|
|
@@ -6501,10 +6501,10 @@ var Jd = Zh((O) => {
|
|
|
6501
6501
|
};
|
|
6502
6502
|
R.OP = R.BYTE;
|
|
6503
6503
|
W.OP = W.BYTE;
|
|
6504
|
-
var
|
|
6504
|
+
var Cn = typeof WeakMap == "function" && /* @__PURE__ */ new WeakMap();
|
|
6505
6505
|
R.CHARSTRING = function(n) {
|
|
6506
|
-
if (
|
|
6507
|
-
var e =
|
|
6506
|
+
if (Cn) {
|
|
6507
|
+
var e = Cn.get(n);
|
|
6508
6508
|
if (e !== void 0)
|
|
6509
6509
|
return e;
|
|
6510
6510
|
}
|
|
@@ -6512,7 +6512,7 @@ var Jd = Zh((O) => {
|
|
|
6512
6512
|
var s = n[i];
|
|
6513
6513
|
t = t.concat(R[s.type](s.value));
|
|
6514
6514
|
}
|
|
6515
|
-
return
|
|
6515
|
+
return Cn && Cn.set(n, t), t;
|
|
6516
6516
|
};
|
|
6517
6517
|
W.CHARSTRING = function(n) {
|
|
6518
6518
|
return R.CHARSTRING(n).length;
|
|
@@ -6700,12 +6700,12 @@ var Jd = Zh((O) => {
|
|
|
6700
6700
|
var t = n.getInt16(e, !1), r = n.getUint16(e + 2, !1);
|
|
6701
6701
|
return t + r / 65535;
|
|
6702
6702
|
}
|
|
6703
|
-
function
|
|
6703
|
+
function ku(n, e) {
|
|
6704
6704
|
for (var t = "", r = e; r < e + 4; r += 1)
|
|
6705
6705
|
t += String.fromCharCode(n.getInt8(r));
|
|
6706
6706
|
return t;
|
|
6707
6707
|
}
|
|
6708
|
-
function
|
|
6708
|
+
function Cu(n, e, t) {
|
|
6709
6709
|
for (var r = 0, i = 0; i < t; i += 1)
|
|
6710
6710
|
r <<= 8, r += n.getUint8(e + i);
|
|
6711
6711
|
return r;
|
|
@@ -7025,8 +7025,8 @@ var Jd = Zh((O) => {
|
|
|
7025
7025
|
getShort: Tu,
|
|
7026
7026
|
getULong: Ss,
|
|
7027
7027
|
getFixed: rh,
|
|
7028
|
-
getTag:
|
|
7029
|
-
getOffset:
|
|
7028
|
+
getTag: ku,
|
|
7029
|
+
getOffset: Cu,
|
|
7030
7030
|
getBytes: Mu,
|
|
7031
7031
|
bytesToString: Au,
|
|
7032
7032
|
Parser: M
|
|
@@ -8775,7 +8775,7 @@ var Jd = Zh((O) => {
|
|
|
8775
8775
|
} else
|
|
8776
8776
|
g = n.tables.cff.topDict._subrs, m = n.tables.cff.topDict._subrsBias, x = n.tables.cff.topDict._defaultWidthX, v = n.tables.cff.topDict._nominalWidthX;
|
|
8777
8777
|
var F = x;
|
|
8778
|
-
function
|
|
8778
|
+
function k(B, I) {
|
|
8779
8779
|
f && o.closePath(), o.moveTo(B, I), f = !0;
|
|
8780
8780
|
}
|
|
8781
8781
|
function _() {
|
|
@@ -8793,7 +8793,7 @@ var Jd = Zh((O) => {
|
|
|
8793
8793
|
_();
|
|
8794
8794
|
break;
|
|
8795
8795
|
case 4:
|
|
8796
|
-
h.length > 1 && !u && (F = h.shift() + v, u = !0), p += h.pop(),
|
|
8796
|
+
h.length > 1 && !u && (F = h.shift() + v, u = !0), p += h.pop(), k(l, p);
|
|
8797
8797
|
break;
|
|
8798
8798
|
case 5:
|
|
8799
8799
|
for (; h.length > 0; )
|
|
@@ -8845,10 +8845,10 @@ var Jd = Zh((O) => {
|
|
|
8845
8845
|
_(), H += c + 7 >> 3;
|
|
8846
8846
|
break;
|
|
8847
8847
|
case 21:
|
|
8848
|
-
h.length > 2 && !u && (F = h.shift() + v, u = !0), p += h.pop(), l += h.pop(),
|
|
8848
|
+
h.length > 2 && !u && (F = h.shift() + v, u = !0), p += h.pop(), l += h.pop(), k(l, p);
|
|
8849
8849
|
break;
|
|
8850
8850
|
case 22:
|
|
8851
|
-
h.length > 1 && !u && (F = h.shift() + v, u = !0), l += h.pop(),
|
|
8851
|
+
h.length > 1 && !u && (F = h.shift() + v, u = !0), l += h.pop(), k(l, p);
|
|
8852
8852
|
break;
|
|
8853
8853
|
case 23:
|
|
8854
8854
|
_();
|
|
@@ -8950,9 +8950,9 @@ var Jd = Zh((O) => {
|
|
|
8950
8950
|
t.glyphs.push(E, et.cffGlyphLoader(t, E, Oa, B));
|
|
8951
8951
|
};
|
|
8952
8952
|
else
|
|
8953
|
-
for (var
|
|
8954
|
-
var _ = b.objects[
|
|
8955
|
-
t.glyphs.push(
|
|
8953
|
+
for (var k = 0; k < t.nGlyphs; k += 1) {
|
|
8954
|
+
var _ = b.objects[k];
|
|
8955
|
+
t.glyphs.push(k, et.cffGlyphLoader(t, k, Oa, _));
|
|
8956
8956
|
}
|
|
8957
8957
|
}
|
|
8958
8958
|
function fh(n, e) {
|
|
@@ -9823,7 +9823,7 @@ var Jd = Zh((O) => {
|
|
|
9823
9823
|
1144: "ii",
|
|
9824
9824
|
1130: "yo"
|
|
9825
9825
|
};
|
|
9826
|
-
function
|
|
9826
|
+
function kl(n, e, t) {
|
|
9827
9827
|
switch (n) {
|
|
9828
9828
|
case 0:
|
|
9829
9829
|
if (e === 65535)
|
|
@@ -9837,7 +9837,7 @@ var Jd = Zh((O) => {
|
|
|
9837
9837
|
return Sh[e];
|
|
9838
9838
|
}
|
|
9839
9839
|
}
|
|
9840
|
-
var fs = "utf-16",
|
|
9840
|
+
var fs = "utf-16", Cl = {
|
|
9841
9841
|
0: "macintosh",
|
|
9842
9842
|
// smRoman
|
|
9843
9843
|
1: "x-mac-japanese",
|
|
@@ -9933,7 +9933,7 @@ var Jd = Zh((O) => {
|
|
|
9933
9933
|
case 0:
|
|
9934
9934
|
return fs;
|
|
9935
9935
|
case 1:
|
|
9936
|
-
return Ml[t] ||
|
|
9936
|
+
return Ml[t] || Cl[e];
|
|
9937
9937
|
case 3:
|
|
9938
9938
|
if (e === 1 || e === 10)
|
|
9939
9939
|
return fs;
|
|
@@ -9942,7 +9942,7 @@ var Jd = Zh((O) => {
|
|
|
9942
9942
|
}
|
|
9943
9943
|
function Al(n, e, t) {
|
|
9944
9944
|
for (var r = {}, i = new z.Parser(n, e), s = i.parseUShort(), a = i.parseUShort(), o = i.offset + i.parseUShort(), h = 0; h < a; h++) {
|
|
9945
|
-
var c = i.parseUShort(), u = i.parseUShort(), f = i.parseUShort(), l = i.parseUShort(), p = bh[l] || l, g = i.parseUShort(), m = i.parseUShort(), x =
|
|
9945
|
+
var c = i.parseUShort(), u = i.parseUShort(), f = i.parseUShort(), l = i.parseUShort(), p = bh[l] || l, g = i.parseUShort(), m = i.parseUShort(), x = kl(c, f, t), v = Fh(c, u, f);
|
|
9946
9946
|
if (v !== void 0 && x !== void 0) {
|
|
9947
9947
|
var w = void 0;
|
|
9948
9948
|
if (v === fs ? w = lr.UTF16(n, o + m, g) : w = lr.MACSTRING(n, o + m, g, v), w) {
|
|
@@ -10004,14 +10004,14 @@ var Jd = Zh((O) => {
|
|
|
10004
10004
|
for (var g in p) {
|
|
10005
10005
|
var m = p[g], x = 1, v = h[g], w = Tl[v], b = Fh(x, w, v), F = R.MACSTRING(m, b);
|
|
10006
10006
|
F === void 0 && (x = 0, v = e.indexOf(g), v < 0 && (v = e.length, e.push(g)), w = 4, F = R.UTF16(m));
|
|
10007
|
-
var
|
|
10007
|
+
var k = Da(F, f);
|
|
10008
10008
|
u.push(Ra(
|
|
10009
10009
|
x,
|
|
10010
10010
|
w,
|
|
10011
10011
|
v,
|
|
10012
10012
|
t,
|
|
10013
10013
|
F.length,
|
|
10014
|
-
|
|
10014
|
+
k
|
|
10015
10015
|
));
|
|
10016
10016
|
var _ = c[g];
|
|
10017
10017
|
if (_ !== void 0) {
|
|
@@ -10390,7 +10390,7 @@ var Jd = Zh((O) => {
|
|
|
10390
10390
|
{ name: "maxMemType1", type: "ULONG", value: 0 }
|
|
10391
10391
|
]);
|
|
10392
10392
|
}
|
|
10393
|
-
var
|
|
10393
|
+
var kh = { parse: Ul, make: Rl }, qe = new Array(9);
|
|
10394
10394
|
qe[1] = function() {
|
|
10395
10395
|
var e = this.offset + this.relativeOffset, t = this.parseUShort();
|
|
10396
10396
|
if (t === 1)
|
|
@@ -10636,7 +10636,7 @@ var Jd = Zh((O) => {
|
|
|
10636
10636
|
{ name: "lookups", type: "TABLE", value: new D.LookupList(n.lookups, dr) }
|
|
10637
10637
|
]);
|
|
10638
10638
|
}
|
|
10639
|
-
var
|
|
10639
|
+
var Ch = { parse: Dl, make: Il };
|
|
10640
10640
|
function Pl(n, e) {
|
|
10641
10641
|
var t = new z.Parser(n, e), r = t.parseULong();
|
|
10642
10642
|
G.argument(r === 1, "Unsupported META table version."), t.parseULong(), t.parseULong();
|
|
@@ -10663,7 +10663,7 @@ var Jd = Zh((O) => {
|
|
|
10663
10663
|
function Ia(n) {
|
|
10664
10664
|
return Math.log(n) / Math.log(2) | 0;
|
|
10665
10665
|
}
|
|
10666
|
-
function
|
|
10666
|
+
function ks(n) {
|
|
10667
10667
|
for (; n.length % 4 !== 0; )
|
|
10668
10668
|
n.push(0);
|
|
10669
10669
|
for (var e = 0, t = 0; t < n.length; t += 4)
|
|
@@ -10694,7 +10694,7 @@ var Jd = Zh((O) => {
|
|
|
10694
10694
|
for (var a = 0; a < n.length; a += 1) {
|
|
10695
10695
|
var o = n[a];
|
|
10696
10696
|
G.argument(o.tableName.length === 4, "Table name" + o.tableName + " is invalid.");
|
|
10697
|
-
var h = o.sizeOf(), c = Pa(o.tableName,
|
|
10697
|
+
var h = o.sizeOf(), c = Pa(o.tableName, ks(o.encode()), s, h);
|
|
10698
10698
|
for (r.push({ name: c.tag + " Table Record", type: "RECORD", value: c }), i.push({ name: o.tableName + " table", type: "RECORD", value: o }), s += h, G.argument(!isNaN(s), "Something went wrong calculating the offset."); s % 4 !== 0; )
|
|
10699
10699
|
s += 1, i.push({ name: "padding", type: "BYTE", value: 0 });
|
|
10700
10700
|
}
|
|
@@ -10761,7 +10761,7 @@ var Jd = Zh((O) => {
|
|
|
10761
10761
|
yMax: b.yMax,
|
|
10762
10762
|
lowestRecPPEM: 3,
|
|
10763
10763
|
createdTimestamp: n.createdTimestamp
|
|
10764
|
-
}),
|
|
10764
|
+
}), k = yh.make({
|
|
10765
10765
|
ascender: b.ascender,
|
|
10766
10766
|
descender: b.descender,
|
|
10767
10767
|
advanceWidthMax: b.advanceWidthMax,
|
|
@@ -10800,7 +10800,7 @@ var Jd = Zh((O) => {
|
|
|
10800
10800
|
for (var j in n.names)
|
|
10801
10801
|
Z[j] = n.names[j];
|
|
10802
10802
|
Z.uniqueID || (Z.uniqueID = { en: n.getEnglishName("manufacturer") + ":" + re }), Z.postScriptName || (Z.postScriptName = { en: Y }), Z.preferredFamily || (Z.preferredFamily = n.names.fontFamily), Z.preferredSubfamily || (Z.preferredSubfamily = n.names.fontSubfamily);
|
|
10803
|
-
var Q = [], te = Th.make(Z, Q), ie = Q.length > 0 ? vh.make(Q) : void 0, ne =
|
|
10803
|
+
var Q = [], te = Th.make(Z, Q), ie = Q.length > 0 ? vh.make(Q) : void 0, ne = kh.make(), ae = dh.make(n.glyphs, {
|
|
10804
10804
|
version: n.getEnglishName("version"),
|
|
10805
10805
|
fullName: re,
|
|
10806
10806
|
familyName: N,
|
|
@@ -10808,9 +10808,9 @@ var Jd = Zh((O) => {
|
|
|
10808
10808
|
postScriptName: Y,
|
|
10809
10809
|
unitsPerEm: n.unitsPerEm,
|
|
10810
10810
|
fontBBox: [0, b.yMin, b.ascender, b.advanceWidthMax]
|
|
10811
|
-
}), H = n.metas && Object.keys(n.metas).length > 0 ? Mh.make(n.metas) : void 0, $ = [F,
|
|
10812
|
-
ie && $.push(ie), n.tables.gsub && $.push(
|
|
10813
|
-
for (var Vt = Ah($), jr = Vt.encode(), Qr =
|
|
10811
|
+
}), H = n.metas && Object.keys(n.metas).length > 0 ? Mh.make(n.metas) : void 0, $ = [F, k, _, E, te, I, ne, ae, B];
|
|
10812
|
+
ie && $.push(ie), n.tables.gsub && $.push(Ch.make(n.tables.gsub)), H && $.push(H);
|
|
10813
|
+
for (var Vt = Ah($), jr = Vt.encode(), Qr = ks(jr), yr = Vt.fields, Kr = !1, pt = 0; pt < yr.length; pt += 1)
|
|
10814
10814
|
if (yr[pt].name === "head table") {
|
|
10815
10815
|
yr[pt].value.checkSumAdjustment = 2981146554 - Qr, Kr = !0;
|
|
10816
10816
|
break;
|
|
@@ -10819,7 +10819,7 @@ var Jd = Zh((O) => {
|
|
|
10819
10819
|
throw new Error("Could not find head table with checkSum to adjust.");
|
|
10820
10820
|
return Vt;
|
|
10821
10821
|
}
|
|
10822
|
-
var Hl = { make: Ah, fontToTable: Gl, computeCheckSum:
|
|
10822
|
+
var Hl = { make: Ah, fontToTable: Gl, computeCheckSum: ks };
|
|
10823
10823
|
function Ai(n, e) {
|
|
10824
10824
|
for (var t = 0, r = n.length - 1; t <= r; ) {
|
|
10825
10825
|
var i = t + r >>> 1, s = n[i].tag;
|
|
@@ -11098,7 +11098,7 @@ var Jd = Zh((O) => {
|
|
|
11098
11098
|
if (this.font.tables.gpos)
|
|
11099
11099
|
return this.getLookupTables(n, e, "kern", 2);
|
|
11100
11100
|
};
|
|
11101
|
-
function
|
|
11101
|
+
function Ce(n) {
|
|
11102
11102
|
Vr.call(this, n, "gsub");
|
|
11103
11103
|
}
|
|
11104
11104
|
function Wl(n, e) {
|
|
@@ -11110,7 +11110,7 @@ var Jd = Zh((O) => {
|
|
|
11110
11110
|
return !1;
|
|
11111
11111
|
return !0;
|
|
11112
11112
|
}
|
|
11113
|
-
function
|
|
11113
|
+
function Cs(n, e, t) {
|
|
11114
11114
|
for (var r = n.subtables, i = 0; i < r.length; i++) {
|
|
11115
11115
|
var s = r[i];
|
|
11116
11116
|
if (s.substFormat === e)
|
|
@@ -11119,8 +11119,8 @@ var Jd = Zh((O) => {
|
|
|
11119
11119
|
if (t)
|
|
11120
11120
|
return r.push(t), t;
|
|
11121
11121
|
}
|
|
11122
|
-
|
|
11123
|
-
|
|
11122
|
+
Ce.prototype = Vr.prototype;
|
|
11123
|
+
Ce.prototype.createDefaultTable = function() {
|
|
11124
11124
|
return {
|
|
11125
11125
|
version: 1,
|
|
11126
11126
|
scripts: [{
|
|
@@ -11134,7 +11134,7 @@ var Jd = Zh((O) => {
|
|
|
11134
11134
|
lookups: []
|
|
11135
11135
|
};
|
|
11136
11136
|
};
|
|
11137
|
-
|
|
11137
|
+
Ce.prototype.getSingle = function(n, e, t) {
|
|
11138
11138
|
for (var r = [], i = this.getLookupTables(e, t, n, 1), s = 0; s < i.length; s++)
|
|
11139
11139
|
for (var a = i[s].subtables, o = 0; o < a.length; o++) {
|
|
11140
11140
|
var h = a[o], c = this.expandCoverage(h.coverage), u = void 0;
|
|
@@ -11152,7 +11152,7 @@ var Jd = Zh((O) => {
|
|
|
11152
11152
|
}
|
|
11153
11153
|
return r;
|
|
11154
11154
|
};
|
|
11155
|
-
|
|
11155
|
+
Ce.prototype.getMultiple = function(n, e, t) {
|
|
11156
11156
|
for (var r = [], i = this.getLookupTables(e, t, n, 2), s = 0; s < i.length; s++)
|
|
11157
11157
|
for (var a = i[s].subtables, o = 0; o < a.length; o++) {
|
|
11158
11158
|
var h = a[o], c = this.expandCoverage(h.coverage), u = void 0;
|
|
@@ -11163,14 +11163,14 @@ var Jd = Zh((O) => {
|
|
|
11163
11163
|
}
|
|
11164
11164
|
return r;
|
|
11165
11165
|
};
|
|
11166
|
-
|
|
11166
|
+
Ce.prototype.getAlternates = function(n, e, t) {
|
|
11167
11167
|
for (var r = [], i = this.getLookupTables(e, t, n, 3), s = 0; s < i.length; s++)
|
|
11168
11168
|
for (var a = i[s].subtables, o = 0; o < a.length; o++)
|
|
11169
11169
|
for (var h = a[o], c = this.expandCoverage(h.coverage), u = h.alternateSets, f = 0; f < c.length; f++)
|
|
11170
11170
|
r.push({ sub: c[f], by: u[f] });
|
|
11171
11171
|
return r;
|
|
11172
11172
|
};
|
|
11173
|
-
|
|
11173
|
+
Ce.prototype.getLigatures = function(n, e, t) {
|
|
11174
11174
|
for (var r = [], i = this.getLookupTables(e, t, n, 4), s = 0; s < i.length; s++)
|
|
11175
11175
|
for (var a = i[s].subtables, o = 0; o < a.length; o++)
|
|
11176
11176
|
for (var h = a[o], c = this.expandCoverage(h.coverage), u = h.ligatureSets, f = 0; f < c.length; f++)
|
|
@@ -11183,8 +11183,8 @@ var Jd = Zh((O) => {
|
|
|
11183
11183
|
}
|
|
11184
11184
|
return r;
|
|
11185
11185
|
};
|
|
11186
|
-
|
|
11187
|
-
var i = this.getLookupTables(t, r, n, 1, !0)[0], s =
|
|
11186
|
+
Ce.prototype.addSingle = function(n, e, t, r) {
|
|
11187
|
+
var i = this.getLookupTables(t, r, n, 1, !0)[0], s = Cs(i, 2, {
|
|
11188
11188
|
// lookup type 1 subtable, format 2, coverage format 1
|
|
11189
11189
|
substFormat: 2,
|
|
11190
11190
|
coverage: { format: 1, glyphs: [] },
|
|
@@ -11194,9 +11194,9 @@ var Jd = Zh((O) => {
|
|
|
11194
11194
|
var a = e.sub, o = this.binSearch(s.coverage.glyphs, a);
|
|
11195
11195
|
o < 0 && (o = -1 - o, s.coverage.glyphs.splice(o, 0, a), s.substitute.splice(o, 0, 0)), s.substitute[o] = e.by;
|
|
11196
11196
|
};
|
|
11197
|
-
|
|
11197
|
+
Ce.prototype.addMultiple = function(n, e, t, r) {
|
|
11198
11198
|
G.assert(e.by instanceof Array && e.by.length > 1, 'Multiple: "by" must be an array of two or more ids');
|
|
11199
|
-
var i = this.getLookupTables(t, r, n, 2, !0)[0], s =
|
|
11199
|
+
var i = this.getLookupTables(t, r, n, 2, !0)[0], s = Cs(i, 1, {
|
|
11200
11200
|
// lookup type 2 subtable, format 1, coverage format 1
|
|
11201
11201
|
substFormat: 1,
|
|
11202
11202
|
coverage: { format: 1, glyphs: [] },
|
|
@@ -11206,8 +11206,8 @@ var Jd = Zh((O) => {
|
|
|
11206
11206
|
var a = e.sub, o = this.binSearch(s.coverage.glyphs, a);
|
|
11207
11207
|
o < 0 && (o = -1 - o, s.coverage.glyphs.splice(o, 0, a), s.sequences.splice(o, 0, 0)), s.sequences[o] = e.by;
|
|
11208
11208
|
};
|
|
11209
|
-
|
|
11210
|
-
var i = this.getLookupTables(t, r, n, 3, !0)[0], s =
|
|
11209
|
+
Ce.prototype.addAlternate = function(n, e, t, r) {
|
|
11210
|
+
var i = this.getLookupTables(t, r, n, 3, !0)[0], s = Cs(i, 1, {
|
|
11211
11211
|
// lookup type 3 subtable, format 1, coverage format 1
|
|
11212
11212
|
substFormat: 1,
|
|
11213
11213
|
coverage: { format: 1, glyphs: [] },
|
|
@@ -11217,7 +11217,7 @@ var Jd = Zh((O) => {
|
|
|
11217
11217
|
var a = e.sub, o = this.binSearch(s.coverage.glyphs, a);
|
|
11218
11218
|
o < 0 && (o = -1 - o, s.coverage.glyphs.splice(o, 0, a), s.alternateSets.splice(o, 0, 0)), s.alternateSets[o] = e.by;
|
|
11219
11219
|
};
|
|
11220
|
-
|
|
11220
|
+
Ce.prototype.addLigature = function(n, e, t, r) {
|
|
11221
11221
|
var i = this.getLookupTables(t, r, n, 4, !0)[0], s = i.subtables[0];
|
|
11222
11222
|
s || (s = {
|
|
11223
11223
|
// lookup type 4 subtable, format 1, coverage format 1
|
|
@@ -11237,7 +11237,7 @@ var Jd = Zh((O) => {
|
|
|
11237
11237
|
} else
|
|
11238
11238
|
c = -1 - c, s.coverage.glyphs.splice(c, 0, a), s.ligatureSets.splice(c, 0, [h]);
|
|
11239
11239
|
};
|
|
11240
|
-
|
|
11240
|
+
Ce.prototype.getFeature = function(n, e, t) {
|
|
11241
11241
|
if (/ss\d\d/.test(n))
|
|
11242
11242
|
return this.getSingle(n, e, t);
|
|
11243
11243
|
switch (n) {
|
|
@@ -11254,7 +11254,7 @@ var Jd = Zh((O) => {
|
|
|
11254
11254
|
return this.getMultiple(n, e, t);
|
|
11255
11255
|
}
|
|
11256
11256
|
};
|
|
11257
|
-
|
|
11257
|
+
Ce.prototype.add = function(n, e, t, r) {
|
|
11258
11258
|
if (/ss\d\d/.test(n))
|
|
11259
11259
|
return this.addSingle(n, e, t, r);
|
|
11260
11260
|
switch (n) {
|
|
@@ -11320,7 +11320,7 @@ var Jd = Zh((O) => {
|
|
|
11320
11320
|
n.isComposite = !0, n.points = [], n.components = [];
|
|
11321
11321
|
for (var F = !0; F; ) {
|
|
11322
11322
|
i = r.parseUShort();
|
|
11323
|
-
var
|
|
11323
|
+
var k = {
|
|
11324
11324
|
glyphIndex: r.parseUShort(),
|
|
11325
11325
|
xScale: 1,
|
|
11326
11326
|
scale01: 0,
|
|
@@ -11329,7 +11329,7 @@ var Jd = Zh((O) => {
|
|
|
11329
11329
|
dx: 0,
|
|
11330
11330
|
dy: 0
|
|
11331
11331
|
};
|
|
11332
|
-
(i & 1) > 0 ? (i & 2) > 0 ? (
|
|
11332
|
+
(i & 1) > 0 ? (i & 2) > 0 ? (k.dx = r.parseShort(), k.dy = r.parseShort()) : k.matchedPoints = [r.parseUShort(), r.parseUShort()] : (i & 2) > 0 ? (k.dx = r.parseChar(), k.dy = r.parseChar()) : k.matchedPoints = [r.parseByte(), r.parseByte()], (i & 8) > 0 ? k.xScale = k.yScale = r.parseF2Dot14() : (i & 64) > 0 ? (k.xScale = r.parseF2Dot14(), k.yScale = r.parseF2Dot14()) : (i & 128) > 0 && (k.xScale = r.parseF2Dot14(), k.scale01 = r.parseF2Dot14(), k.scale10 = r.parseF2Dot14(), k.yScale = r.parseF2Dot14()), n.components.push(k), F = !!(i & 32);
|
|
11333
11333
|
}
|
|
11334
11334
|
if (i & 256) {
|
|
11335
11335
|
n.instructionLength = r.parseUShort(), n.instructions = [];
|
|
@@ -11812,8 +11812,8 @@ var Jd = Zh((O) => {
|
|
|
11812
11812
|
function hf(n) {
|
|
11813
11813
|
var e = n.stack, t = e.pop(), r = e.pop(), i = e.pop(), s = e.pop(), a = e.pop(), o = n.z0, h = n.z1, c = o[t], u = o[r], f = h[i], l = h[s], p = n.z2[a];
|
|
11814
11814
|
O.DEBUG && console.log("ISECT[], ", t, r, i, s, a);
|
|
11815
|
-
var g = c.x, m = c.y, x = u.x, v = u.y, w = f.x, b = f.y, F = l.x,
|
|
11816
|
-
p.x = (E * (w - F) - B * (g - x)) / _, p.y = (E * (b -
|
|
11815
|
+
var g = c.x, m = c.y, x = u.x, v = u.y, w = f.x, b = f.y, F = l.x, k = l.y, _ = (g - x) * (b - k) - (m - v) * (w - F), E = g * v - m * x, B = w * k - b * F;
|
|
11816
|
+
p.x = (E * (w - F) - B * (g - x)) / _, p.y = (E * (b - k) - B * (m - v)) / _;
|
|
11817
11817
|
}
|
|
11818
11818
|
function cf(n) {
|
|
11819
11819
|
n.rp0 = n.stack.pop(), O.DEBUG && console.log(n.step, "SRP0[]", n.rp0);
|
|
@@ -11910,11 +11910,11 @@ var Jd = Zh((O) => {
|
|
|
11910
11910
|
function Tf(n) {
|
|
11911
11911
|
O.DEBUG && console.log(n.step, "CLEAR[]"), n.stack.length = 0;
|
|
11912
11912
|
}
|
|
11913
|
-
function
|
|
11913
|
+
function kf(n) {
|
|
11914
11914
|
var e = n.stack, t = e.pop(), r = e.pop();
|
|
11915
11915
|
O.DEBUG && console.log(n.step, "SWAP[]"), e.push(t), e.push(r);
|
|
11916
11916
|
}
|
|
11917
|
-
function
|
|
11917
|
+
function Cf(n) {
|
|
11918
11918
|
var e = n.stack;
|
|
11919
11919
|
O.DEBUG && console.log(n.step, "DEPTH[]"), e.push(e.length);
|
|
11920
11920
|
}
|
|
@@ -12343,7 +12343,7 @@ var Jd = Zh((O) => {
|
|
|
12343
12343
|
var e = n.stack.pop();
|
|
12344
12344
|
O.DEBUG && console.log(n.step, "SCANTYPE[]", e);
|
|
12345
12345
|
}
|
|
12346
|
-
function
|
|
12346
|
+
function k0(n) {
|
|
12347
12347
|
var e = n.stack.pop(), t = n.stack.pop();
|
|
12348
12348
|
switch (O.DEBUG && console.log(n.step, "INSTCTRL[]", e, t), e) {
|
|
12349
12349
|
case 1:
|
|
@@ -12460,9 +12460,9 @@ var Jd = Zh((O) => {
|
|
|
12460
12460
|
/* 0x22 */
|
|
12461
12461
|
Tf,
|
|
12462
12462
|
/* 0x23 */
|
|
12463
|
-
Cf,
|
|
12464
|
-
/* 0x24 */
|
|
12465
12463
|
kf,
|
|
12464
|
+
/* 0x24 */
|
|
12465
|
+
Cf,
|
|
12466
12466
|
/* 0x25 */
|
|
12467
12467
|
Ef,
|
|
12468
12468
|
/* 0x26 */
|
|
@@ -12693,7 +12693,7 @@ var Jd = Zh((O) => {
|
|
|
12693
12693
|
/* 0x8D */
|
|
12694
12694
|
T0,
|
|
12695
12695
|
/* 0x8E */
|
|
12696
|
-
|
|
12696
|
+
k0,
|
|
12697
12697
|
/* 0x8F */
|
|
12698
12698
|
void 0,
|
|
12699
12699
|
/* 0x90 */
|
|
@@ -12927,7 +12927,7 @@ var Jd = Zh((O) => {
|
|
|
12927
12927
|
function Ms(n, e, t) {
|
|
12928
12928
|
this.contextName = t, this.startIndex = n, this.endOffset = e;
|
|
12929
12929
|
}
|
|
12930
|
-
function
|
|
12930
|
+
function C0(n, e, t) {
|
|
12931
12931
|
this.contextName = n, this.openRange = null, this.ranges = [], this.checkStart = e, this.checkEnd = t;
|
|
12932
12932
|
}
|
|
12933
12933
|
function Ve(n, e) {
|
|
@@ -13113,7 +13113,7 @@ var Jd = Zh((O) => {
|
|
|
13113
13113
|
return {
|
|
13114
13114
|
FAIL: "missing context end check."
|
|
13115
13115
|
};
|
|
13116
|
-
var r = new
|
|
13116
|
+
var r = new C0(
|
|
13117
13117
|
n,
|
|
13118
13118
|
e,
|
|
13119
13119
|
t
|
|
@@ -13174,13 +13174,13 @@ var Jd = Zh((O) => {
|
|
|
13174
13174
|
}
|
|
13175
13175
|
return this.dispatch("end", [this.tokens]), this.tokens;
|
|
13176
13176
|
};
|
|
13177
|
-
function
|
|
13177
|
+
function kt(n) {
|
|
13178
13178
|
return /[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(n);
|
|
13179
13179
|
}
|
|
13180
13180
|
function zh(n) {
|
|
13181
13181
|
return /[\u0630\u0690\u0621\u0631\u0661\u0671\u0622\u0632\u0672\u0692\u06C2\u0623\u0673\u0693\u06C3\u0624\u0694\u06C4\u0625\u0675\u0695\u06C5\u06E5\u0676\u0696\u06C6\u0627\u0677\u0697\u06C7\u0648\u0688\u0698\u06C8\u0689\u0699\u06C9\u068A\u06CA\u066B\u068B\u06CB\u068C\u068D\u06CD\u06FD\u068E\u06EE\u06FE\u062F\u068F\u06CF\u06EF]/.test(n);
|
|
13182
13182
|
}
|
|
13183
|
-
function
|
|
13183
|
+
function Ct(n) {
|
|
13184
13184
|
return /[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(n);
|
|
13185
13185
|
}
|
|
13186
13186
|
function On(n) {
|
|
@@ -13245,13 +13245,13 @@ var Jd = Zh((O) => {
|
|
|
13245
13245
|
var i = e.inputCoverage.length - 1;
|
|
13246
13246
|
if (n.lookahead.length < e.lookaheadCoverage.length)
|
|
13247
13247
|
return [];
|
|
13248
|
-
for (var s = n.lookahead.slice(i); s.length &&
|
|
13248
|
+
for (var s = n.lookahead.slice(i); s.length && Ct(s[0].char); )
|
|
13249
13249
|
s.shift();
|
|
13250
13250
|
var a = new Ve(s, 0), o = Li(
|
|
13251
13251
|
e.lookaheadCoverage,
|
|
13252
13252
|
a
|
|
13253
13253
|
), h = [].concat(n.backtrack);
|
|
13254
|
-
for (h.reverse(); h.length &&
|
|
13254
|
+
for (h.reverse(); h.length && Ct(h[0].char); )
|
|
13255
13255
|
h.shift();
|
|
13256
13256
|
if (h.length < e.backtrackCoverage.length)
|
|
13257
13257
|
return [];
|
|
@@ -13264,8 +13264,8 @@ var Jd = Zh((O) => {
|
|
|
13264
13264
|
for (var g = e.lookupRecords[p], m = g.lookupListIndex, x = this.getLookupByIndex(m), v = 0; v < x.subtables.length; v++) {
|
|
13265
13265
|
var w = x.subtables[v], b = this.getLookupMethod(x, w), F = this.getSubstitutionType(x, w);
|
|
13266
13266
|
if (F === "12")
|
|
13267
|
-
for (var
|
|
13268
|
-
var _ = n.get(
|
|
13267
|
+
for (var k = 0; k < r.length; k++) {
|
|
13268
|
+
var _ = n.get(k), E = b(_);
|
|
13269
13269
|
E && l.push(E);
|
|
13270
13270
|
}
|
|
13271
13271
|
}
|
|
@@ -13474,8 +13474,8 @@ var Jd = Zh((O) => {
|
|
|
13474
13474
|
var e = n.current, t = n.get(-1);
|
|
13475
13475
|
return (
|
|
13476
13476
|
// ? arabic first char
|
|
13477
|
-
t === null &&
|
|
13478
|
-
!
|
|
13477
|
+
t === null && kt(e) || // ? arabic char preceded with a non arabic char
|
|
13478
|
+
!kt(t) && kt(e)
|
|
13479
13479
|
);
|
|
13480
13480
|
}
|
|
13481
13481
|
function R0(n) {
|
|
@@ -13483,7 +13483,7 @@ var Jd = Zh((O) => {
|
|
|
13483
13483
|
return (
|
|
13484
13484
|
// ? last arabic char
|
|
13485
13485
|
e === null || // ? next char is not arabic
|
|
13486
|
-
!
|
|
13486
|
+
!kt(e)
|
|
13487
13487
|
);
|
|
13488
13488
|
}
|
|
13489
13489
|
var D0 = {
|
|
@@ -13494,7 +13494,7 @@ var Jd = Zh((O) => {
|
|
|
13494
13494
|
var e = n.current, t = n.get(-1);
|
|
13495
13495
|
return (
|
|
13496
13496
|
// ? an arabic char preceded with a non arabic char
|
|
13497
|
-
(
|
|
13497
|
+
(kt(e) || Ct(e)) && !kt(t)
|
|
13498
13498
|
);
|
|
13499
13499
|
}
|
|
13500
13500
|
function P0(n) {
|
|
@@ -13502,7 +13502,7 @@ var Jd = Zh((O) => {
|
|
|
13502
13502
|
switch (!0) {
|
|
13503
13503
|
case e === null:
|
|
13504
13504
|
return !0;
|
|
13505
|
-
case (!
|
|
13505
|
+
case (!kt(e) && !Ct(e)):
|
|
13506
13506
|
var t = A0(e);
|
|
13507
13507
|
if (!t)
|
|
13508
13508
|
return !0;
|
|
@@ -13510,7 +13510,7 @@ var Jd = Zh((O) => {
|
|
|
13510
13510
|
var r = !1;
|
|
13511
13511
|
if (r = n.lookahead.some(
|
|
13512
13512
|
function(i) {
|
|
13513
|
-
return
|
|
13513
|
+
return kt(i) || Ct(i);
|
|
13514
13514
|
}
|
|
13515
13515
|
), !r)
|
|
13516
13516
|
return !0;
|
|
@@ -13553,7 +13553,7 @@ var Jd = Zh((O) => {
|
|
|
13553
13553
|
}
|
|
13554
13554
|
function q0(n) {
|
|
13555
13555
|
for (var e = [].concat(n.backtrack), t = e.length - 1; t >= 0; t--) {
|
|
13556
|
-
var r = e[t], i = zh(r), s =
|
|
13556
|
+
var r = e[t], i = zh(r), s = Ct(r);
|
|
13557
13557
|
if (!i && !s)
|
|
13558
13558
|
return !0;
|
|
13559
13559
|
if (i)
|
|
@@ -13565,7 +13565,7 @@ var Jd = Zh((O) => {
|
|
|
13565
13565
|
if (zh(n.current))
|
|
13566
13566
|
return !1;
|
|
13567
13567
|
for (var e = 0; e < n.lookahead.length; e++) {
|
|
13568
|
-
var t = n.lookahead[e], r =
|
|
13568
|
+
var t = n.lookahead[e], r = Ct(t);
|
|
13569
13569
|
if (!r)
|
|
13570
13570
|
return !0;
|
|
13571
13571
|
}
|
|
@@ -13590,7 +13590,7 @@ var Jd = Zh((O) => {
|
|
|
13590
13590
|
0
|
|
13591
13591
|
);
|
|
13592
13592
|
i.forEach(function(o, h) {
|
|
13593
|
-
if (!
|
|
13593
|
+
if (!Ct(o.char)) {
|
|
13594
13594
|
s.setCurrentIndex(h), a.setCurrentIndex(h);
|
|
13595
13595
|
var c = 0;
|
|
13596
13596
|
q0(a) && (c |= 1), V0(a) && (c |= 2);
|
|
@@ -13829,7 +13829,7 @@ var Jd = Zh((O) => {
|
|
|
13829
13829
|
usWidthClass: n.widthClass || this.usWidthClasses.MEDIUM,
|
|
13830
13830
|
fsSelection: n.fsSelection || this.fsSelectionValues.REGULAR
|
|
13831
13831
|
}, n.tables.os2)
|
|
13832
|
-
})), this.supported = !0, this.glyphs = new et.GlyphSet(this, n.glyphs || []), this.encoding = new ih(this), this.position = new Xr(this), this.substitution = new
|
|
13832
|
+
})), this.supported = !0, this.glyphs = new et.GlyphSet(this, n.glyphs || []), this.encoding = new ih(this), this.position = new Xr(this), this.substitution = new Ce(this), this.tables = this.tables || {}, this._push = null, this._hmtxTableData = {}, Object.defineProperty(this, "hinting", {
|
|
13833
13833
|
get: function() {
|
|
13834
13834
|
if (this._hinting)
|
|
13835
13835
|
return this._hinting;
|
|
@@ -14290,14 +14290,14 @@ var Jd = Zh((O) => {
|
|
|
14290
14290
|
throw new Error("Unsupported kern table version (" + r + ").");
|
|
14291
14291
|
}
|
|
14292
14292
|
var Tp = { parse: Fp };
|
|
14293
|
-
function
|
|
14293
|
+
function kp(n, e, t, r) {
|
|
14294
14294
|
for (var i = new z.Parser(n, e), s = r ? i.parseUShort : i.parseULong, a = [], o = 0; o < t + 1; o += 1) {
|
|
14295
14295
|
var h = s.call(i);
|
|
14296
14296
|
r && (h *= 2), a.push(h);
|
|
14297
14297
|
}
|
|
14298
14298
|
return a;
|
|
14299
14299
|
}
|
|
14300
|
-
var
|
|
14300
|
+
var Cp = { parse: kp };
|
|
14301
14301
|
function oo(n, e) {
|
|
14302
14302
|
for (var t = [], r = 12, i = 0; i < e; i += 1) {
|
|
14303
14303
|
var s = z.getTag(n, r), a = z.getULong(n, r + 4), o = z.getULong(n, r + 8), h = z.getULong(n, r + 12);
|
|
@@ -14346,20 +14346,20 @@ var Jd = Zh((O) => {
|
|
|
14346
14346
|
a = z.getUShort(s, 12), o = Mp(s, a);
|
|
14347
14347
|
} else
|
|
14348
14348
|
throw new Error("Unsupported OpenType signature " + h);
|
|
14349
|
-
for (var u, f, l, p, g, m, x, v, w, b, F,
|
|
14349
|
+
for (var u, f, l, p, g, m, x, v, w, b, F, k, _ = 0; _ < a; _ += 1) {
|
|
14350
14350
|
var E = o[_], B = void 0;
|
|
14351
14351
|
switch (E.tag) {
|
|
14352
14352
|
case "cmap":
|
|
14353
14353
|
B = le(s, E), i.tables.cmap = nh.parse(B.data, B.offset), i.encoding = new sh(i.tables.cmap);
|
|
14354
14354
|
break;
|
|
14355
14355
|
case "cvt ":
|
|
14356
|
-
B = le(s, E),
|
|
14356
|
+
B = le(s, E), k = new z.Parser(B.data, B.offset), i.tables.cvt = k.parseShortList(E.length / 2);
|
|
14357
14357
|
break;
|
|
14358
14358
|
case "fvar":
|
|
14359
14359
|
f = E;
|
|
14360
14360
|
break;
|
|
14361
14361
|
case "fpgm":
|
|
14362
|
-
B = le(s, E),
|
|
14362
|
+
B = le(s, E), k = new z.Parser(B.data, B.offset), i.tables.fpgm = k.parseByteList(E.length);
|
|
14363
14363
|
break;
|
|
14364
14364
|
case "head":
|
|
14365
14365
|
B = le(s, E), i.tables.head = gh.parse(B.data, B.offset), i.unitsPerEm = i.tables.head.unitsPerEm, t = i.tables.head.indexToLocFormat;
|
|
@@ -14383,10 +14383,10 @@ var Jd = Zh((O) => {
|
|
|
14383
14383
|
B = le(s, E), i.tables.os2 = ds.parse(B.data, B.offset);
|
|
14384
14384
|
break;
|
|
14385
14385
|
case "post":
|
|
14386
|
-
B = le(s, E), i.tables.post =
|
|
14386
|
+
B = le(s, E), i.tables.post = kh.parse(B.data, B.offset), i.glyphNames = new Fs(i.tables.post);
|
|
14387
14387
|
break;
|
|
14388
14388
|
case "prep":
|
|
14389
|
-
B = le(s, E),
|
|
14389
|
+
B = le(s, E), k = new z.Parser(B.data, B.offset), i.tables.prep = k.parseByteList(E.length);
|
|
14390
14390
|
break;
|
|
14391
14391
|
case "glyf":
|
|
14392
14392
|
l = E;
|
|
@@ -14416,7 +14416,7 @@ var Jd = Zh((O) => {
|
|
|
14416
14416
|
}
|
|
14417
14417
|
var I = le(s, b);
|
|
14418
14418
|
if (i.tables.name = Th.parse(I.data, I.offset, r), i.names = i.tables.name, l && w) {
|
|
14419
|
-
var N = t === 0, q = le(s, w), re =
|
|
14419
|
+
var N = t === 0, q = le(s, w), re = Cp.parse(q.data, q.offset, i.numGlyphs, N), Y = le(s, l);
|
|
14420
14420
|
i.glyphs = Oh.parse(Y.data, Y.offset, re, i, e);
|
|
14421
14421
|
} else if (u) {
|
|
14422
14422
|
var Z = le(s, u);
|
|
@@ -14439,7 +14439,7 @@ var Jd = Zh((O) => {
|
|
|
14439
14439
|
}
|
|
14440
14440
|
if (m) {
|
|
14441
14441
|
var ne = le(s, m);
|
|
14442
|
-
i.tables.gsub =
|
|
14442
|
+
i.tables.gsub = Ch.parse(ne.data, ne.offset);
|
|
14443
14443
|
}
|
|
14444
14444
|
if (f) {
|
|
14445
14445
|
var ae = le(s, f);
|
|
@@ -14554,11 +14554,11 @@ var Jd = Zh((O) => {
|
|
|
14554
14554
|
let a = 0;
|
|
14555
14555
|
const o = Object.keys(n.attributes), h = {}, c = {}, u = [], f = ["getX", "getY", "getZ", "getW"], l = ["setX", "setY", "setZ", "setW"];
|
|
14556
14556
|
for (let w = 0, b = o.length; w < b; w++) {
|
|
14557
|
-
const F = o[w],
|
|
14558
|
-
h[F] = new
|
|
14559
|
-
new
|
|
14560
|
-
|
|
14561
|
-
|
|
14557
|
+
const F = o[w], k = n.attributes[F];
|
|
14558
|
+
h[F] = new k.constructor(
|
|
14559
|
+
new k.array.constructor(k.count * k.itemSize),
|
|
14560
|
+
k.itemSize,
|
|
14561
|
+
k.normalized
|
|
14562
14562
|
);
|
|
14563
14563
|
const _ = n.morphAttributes[F];
|
|
14564
14564
|
_ && (c[F] || (c[F] = []), _.forEach((E, B) => {
|
|
@@ -14570,16 +14570,16 @@ var Jd = Zh((O) => {
|
|
|
14570
14570
|
for (let w = 0; w < s; w++) {
|
|
14571
14571
|
const b = r ? r.getX(w) : w;
|
|
14572
14572
|
let F = "";
|
|
14573
|
-
for (let
|
|
14574
|
-
const E = o[
|
|
14573
|
+
for (let k = 0, _ = o.length; k < _; k++) {
|
|
14574
|
+
const E = o[k], B = n.getAttribute(E), I = B.itemSize;
|
|
14575
14575
|
for (let N = 0; N < I; N++)
|
|
14576
14576
|
F += `${~~(B[f[N]](b) * m + x)},`;
|
|
14577
14577
|
}
|
|
14578
14578
|
if (F in t)
|
|
14579
14579
|
u.push(t[F]);
|
|
14580
14580
|
else {
|
|
14581
|
-
for (let
|
|
14582
|
-
const E = o[
|
|
14581
|
+
for (let k = 0, _ = o.length; k < _; k++) {
|
|
14582
|
+
const E = o[k], B = n.getAttribute(E), I = n.morphAttributes[E], N = B.itemSize, q = h[E], re = c[E];
|
|
14583
14583
|
for (let Y = 0; Y < N; Y++) {
|
|
14584
14584
|
const Z = f[Y], j = l[Y];
|
|
14585
14585
|
if (q[j](a, B[Z](b)), I)
|
|
@@ -14599,11 +14599,11 @@ var Jd = Zh((O) => {
|
|
|
14599
14599
|
b.normalized
|
|
14600
14600
|
)), w in c)
|
|
14601
14601
|
for (let F = 0; F < c[w].length; F++) {
|
|
14602
|
-
const
|
|
14603
|
-
v.morphAttributes[w][F] = new
|
|
14604
|
-
|
|
14605
|
-
|
|
14606
|
-
|
|
14602
|
+
const k = c[w][F];
|
|
14603
|
+
v.morphAttributes[w][F] = new k.constructor(
|
|
14604
|
+
k.array.slice(0, a * k.itemSize),
|
|
14605
|
+
k.itemSize,
|
|
14606
|
+
k.normalized
|
|
14607
14607
|
);
|
|
14608
14608
|
}
|
|
14609
14609
|
}
|
|
@@ -15058,7 +15058,7 @@ var Jd = Zh((O) => {
|
|
|
15058
15058
|
return new uo("?", e, this);
|
|
15059
15059
|
}
|
|
15060
15060
|
}
|
|
15061
|
-
|
|
15061
|
+
class be {
|
|
15062
15062
|
/**
|
|
15063
15063
|
* Converts an unsigned byte to a signed byte as used in SHX format.
|
|
15064
15064
|
* Values > 127 are converted to their signed equivalent (-128 to -1).
|
|
@@ -15213,12 +15213,12 @@ var Jd = Zh((O) => {
|
|
|
15213
15213
|
`Position ${e} is out of range for the data length ${this.data.byteLength}!`
|
|
15214
15214
|
);
|
|
15215
15215
|
}
|
|
15216
|
-
}
|
|
15217
|
-
var
|
|
15216
|
+
}
|
|
15217
|
+
var we = /* @__PURE__ */ ((n) => (n.SHAPES = "shapes", n.BIGFONT = "bigfont", n.UNIFONT = "unifont", n))(we || {});
|
|
15218
15218
|
class qp {
|
|
15219
15219
|
parse(e) {
|
|
15220
15220
|
const t = this.parseHeader(e).split(" "), r = t[1].toLocaleLowerCase();
|
|
15221
|
-
if (!Object.values(
|
|
15221
|
+
if (!Object.values(we).includes(r))
|
|
15222
15222
|
throw new Error(`Invalid font type: ${r}`);
|
|
15223
15223
|
return {
|
|
15224
15224
|
fileHeader: t[0],
|
|
@@ -15242,8 +15242,8 @@ var Jd = Zh((O) => {
|
|
|
15242
15242
|
return t.trim();
|
|
15243
15243
|
}
|
|
15244
15244
|
}
|
|
15245
|
-
const Le = 10;
|
|
15246
|
-
class
|
|
15245
|
+
const Le = 10, Vp = [13, 10, 0];
|
|
15246
|
+
class Xp {
|
|
15247
15247
|
parse(e) {
|
|
15248
15248
|
try {
|
|
15249
15249
|
e.readBytes(4);
|
|
@@ -15259,11 +15259,7 @@ var Jd = Zh((O) => {
|
|
|
15259
15259
|
for (const a of r)
|
|
15260
15260
|
try {
|
|
15261
15261
|
const o = e.readBytes(a.length);
|
|
15262
|
-
|
|
15263
|
-
const h = o.indexOf(0);
|
|
15264
|
-
let c = 0;
|
|
15265
|
-
h >= 0 && h < o.length && (c = h + 1), c < o.length && (i[a.code] = o.subarray(c));
|
|
15266
|
-
}
|
|
15262
|
+
o.length === a.length && (i[a.code] = o);
|
|
15267
15263
|
} catch {
|
|
15268
15264
|
console.warn(`Failed to read shape data for code ${a.code}`);
|
|
15269
15265
|
}
|
|
@@ -15281,7 +15277,7 @@ var Jd = Zh((O) => {
|
|
|
15281
15277
|
const a = i[0];
|
|
15282
15278
|
try {
|
|
15283
15279
|
const o = new TextDecoder().decode(a);
|
|
15284
|
-
let h =
|
|
15280
|
+
let h = a.findIndex((c) => Vp.includes(c));
|
|
15285
15281
|
h >= 0 && (s.info = o.substring(0, h), h + 3 < a.length && (s.baseUp = a[h + 1], s.baseDown = a[h + 2], s.height = s.baseDown + s.baseUp, s.width = s.height, s.orientation = a[h + 3] === 0 ? "horizontal" : "vertical"));
|
|
15286
15282
|
} catch {
|
|
15287
15283
|
console.warn("Failed to parse font info block");
|
|
@@ -15302,7 +15298,7 @@ var Jd = Zh((O) => {
|
|
|
15302
15298
|
}
|
|
15303
15299
|
}
|
|
15304
15300
|
}
|
|
15305
|
-
class
|
|
15301
|
+
class Yp {
|
|
15306
15302
|
parse(e) {
|
|
15307
15303
|
try {
|
|
15308
15304
|
e.readInt16();
|
|
@@ -15393,7 +15389,7 @@ var Jd = Zh((O) => {
|
|
|
15393
15389
|
return { text: t, pos: r };
|
|
15394
15390
|
}
|
|
15395
15391
|
}
|
|
15396
|
-
class
|
|
15392
|
+
let Zp = class {
|
|
15397
15393
|
parse(e) {
|
|
15398
15394
|
try {
|
|
15399
15395
|
const t = e.readInt32();
|
|
@@ -15446,16 +15442,15 @@ var Jd = Zh((O) => {
|
|
|
15446
15442
|
};
|
|
15447
15443
|
}
|
|
15448
15444
|
}
|
|
15449
|
-
}
|
|
15450
|
-
let Zp = class {
|
|
15445
|
+
}, Jp = class {
|
|
15451
15446
|
static createParser(e) {
|
|
15452
15447
|
switch (e) {
|
|
15453
|
-
case
|
|
15454
|
-
return new Vp();
|
|
15455
|
-
case Se.BIGFONT:
|
|
15448
|
+
case we.SHAPES:
|
|
15456
15449
|
return new Xp();
|
|
15457
|
-
case
|
|
15450
|
+
case we.BIGFONT:
|
|
15458
15451
|
return new Yp();
|
|
15452
|
+
case we.UNIFONT:
|
|
15453
|
+
return new Zp();
|
|
15459
15454
|
default:
|
|
15460
15455
|
throw new Error(`Unsupported font type: ${e}`);
|
|
15461
15456
|
}
|
|
@@ -15699,8 +15694,8 @@ var Jd = Zh((O) => {
|
|
|
15699
15694
|
a = this.polylines.map((v) => {
|
|
15700
15695
|
let w = "";
|
|
15701
15696
|
return v.forEach((b, F) => {
|
|
15702
|
-
const
|
|
15703
|
-
w += F === 0 ? `M ${
|
|
15697
|
+
const k = b.x, _ = -b.y;
|
|
15698
|
+
w += F === 0 ? `M ${k} ${_} ` : `L ${k} ${_} `;
|
|
15704
15699
|
}), `<path d="${w}" stroke="${r}" stroke-width="${t}" fill="none"/>`;
|
|
15705
15700
|
}).join(""), s = `${p} ${-x} ${g - p} ${x - m}`;
|
|
15706
15701
|
} else
|
|
@@ -15714,8 +15709,8 @@ var Jd = Zh((O) => {
|
|
|
15714
15709
|
return `<svg width="100%" height="100%" viewBox="${s}" preserveAspectRatio="xMidYMid meet">${a}</svg>`;
|
|
15715
15710
|
}
|
|
15716
15711
|
}
|
|
15717
|
-
const
|
|
15718
|
-
class
|
|
15712
|
+
const $p = Math.PI / 18;
|
|
15713
|
+
class jp {
|
|
15719
15714
|
constructor(e) {
|
|
15720
15715
|
this.shapeCache = /* @__PURE__ */ new Map(), this.shapeData = /* @__PURE__ */ new Map(), this.fontData = e;
|
|
15721
15716
|
}
|
|
@@ -15946,13 +15941,13 @@ var Jd = Zh((O) => {
|
|
|
15946
15941
|
let i = t, s = 0, a, o = r.scale * this.fontData.content.height, h = o;
|
|
15947
15942
|
const c = r.currentPoint.clone();
|
|
15948
15943
|
switch (r.currentPolyline.length > 1 && (r.polylines.push(r.currentPolyline.slice()), r.currentPolyline = []), this.fontData.header.fontType) {
|
|
15949
|
-
case
|
|
15944
|
+
case we.SHAPES:
|
|
15950
15945
|
i++, s = e[i];
|
|
15951
15946
|
break;
|
|
15952
|
-
case
|
|
15947
|
+
case we.BIGFONT:
|
|
15953
15948
|
i++, s = e[i], s === 0 && (i++, s = e[i++] << 8 | e[i++], c.x = be.byteToSByte(e[i++]) * r.scale, c.y = be.byteToSByte(e[i++]) * r.scale, this.fontData.content.isExtended && (h = e[i++] * r.scale), o = e[i] * r.scale);
|
|
15954
15949
|
break;
|
|
15955
|
-
case
|
|
15950
|
+
case we.UNIFONT:
|
|
15956
15951
|
i++, s = e[i++] << 8 | e[i++];
|
|
15957
15952
|
break;
|
|
15958
15953
|
}
|
|
@@ -15991,27 +15986,27 @@ var Jd = Zh((O) => {
|
|
|
15991
15986
|
let l = u & 7;
|
|
15992
15987
|
l === 0 && (l = 8), a !== 0 && l--;
|
|
15993
15988
|
const p = Math.PI / 4;
|
|
15994
|
-
let g = p * l, m =
|
|
15989
|
+
let g = p * l, m = $p, x = 1;
|
|
15995
15990
|
u < 0 && (m = -m, g = -g, x = -1);
|
|
15996
15991
|
let v = p * f, w = v + g;
|
|
15997
15992
|
v += p * s / 256 * x, w += p * a / 256 * x;
|
|
15998
15993
|
const b = r.currentPoint.clone().subtract(new ce(c * Math.cos(v), c * Math.sin(v)));
|
|
15999
15994
|
if (r.currentPoint = b.clone().add(new ce(c * Math.cos(w), c * Math.sin(w))), r.isPenDown) {
|
|
16000
15995
|
let F = v;
|
|
16001
|
-
const
|
|
16002
|
-
if (
|
|
15996
|
+
const k = [];
|
|
15997
|
+
if (k.push(
|
|
16003
15998
|
b.clone().add(new ce(c * Math.cos(F), c * Math.sin(F)))
|
|
16004
15999
|
), m > 0)
|
|
16005
16000
|
for (; F + m < w; )
|
|
16006
|
-
F += m,
|
|
16001
|
+
F += m, k.push(
|
|
16007
16002
|
b.clone().add(new ce(c * Math.cos(F), c * Math.sin(F)))
|
|
16008
16003
|
);
|
|
16009
16004
|
else
|
|
16010
16005
|
for (; F + m > w; )
|
|
16011
|
-
F += m,
|
|
16006
|
+
F += m, k.push(
|
|
16012
16007
|
b.clone().add(new ce(c * Math.cos(F), c * Math.sin(F)))
|
|
16013
16008
|
);
|
|
16014
|
-
|
|
16009
|
+
k.push(b.clone().add(new ce(c * Math.cos(w), c * Math.sin(w)))), r.currentPolyline.push(...k);
|
|
16015
16010
|
}
|
|
16016
16011
|
return i;
|
|
16017
16012
|
}
|
|
@@ -16065,13 +16060,13 @@ var Jd = Zh((O) => {
|
|
|
16065
16060
|
break;
|
|
16066
16061
|
case 7:
|
|
16067
16062
|
switch (this.fontData.header.fontType) {
|
|
16068
|
-
case
|
|
16063
|
+
case we.SHAPES:
|
|
16069
16064
|
t++;
|
|
16070
16065
|
break;
|
|
16071
|
-
case
|
|
16066
|
+
case we.BIGFONT:
|
|
16072
16067
|
t++, e[t] === 0 && (t += this.fontData.content.isExtended ? 6 : 5);
|
|
16073
16068
|
break;
|
|
16074
|
-
case
|
|
16069
|
+
case we.UNIFONT:
|
|
16075
16070
|
t += 2;
|
|
16076
16071
|
break;
|
|
16077
16072
|
}
|
|
@@ -16140,7 +16135,7 @@ var Jd = Zh((O) => {
|
|
|
16140
16135
|
return o.add(t), o;
|
|
16141
16136
|
}
|
|
16142
16137
|
}
|
|
16143
|
-
class
|
|
16138
|
+
let Qp = class {
|
|
16144
16139
|
/**
|
|
16145
16140
|
* Creates a new ShxFont instance.
|
|
16146
16141
|
* @param data - Either raw binary data of the SHX font file (ArrayBuffer) or pre-parsed font data (ShxFontData)
|
|
@@ -16148,14 +16143,14 @@ var Jd = Zh((O) => {
|
|
|
16148
16143
|
*/
|
|
16149
16144
|
constructor(e) {
|
|
16150
16145
|
if (e instanceof ArrayBuffer) {
|
|
16151
|
-
const t = new be(e), r = new qp().parse(t), i =
|
|
16146
|
+
const t = new be(e), r = new qp().parse(t), i = Jp.createParser(r.fontType).parse(t);
|
|
16152
16147
|
this.fontData = {
|
|
16153
16148
|
header: r,
|
|
16154
16149
|
content: i
|
|
16155
16150
|
};
|
|
16156
16151
|
} else
|
|
16157
16152
|
this.fontData = e;
|
|
16158
|
-
this.shapeParser = new
|
|
16153
|
+
this.shapeParser = new jp(this.fontData);
|
|
16159
16154
|
}
|
|
16160
16155
|
/**
|
|
16161
16156
|
* Return true if this font contains glyph of the specified character. Otherwise, return false.
|
|
@@ -16173,7 +16168,7 @@ var Jd = Zh((O) => {
|
|
|
16173
16168
|
*/
|
|
16174
16169
|
getCharShape(e, t) {
|
|
16175
16170
|
let r = this.shapeParser.getCharShape(e, t);
|
|
16176
|
-
return r && this.fontData.header.fontType ===
|
|
16171
|
+
return r && this.fontData.header.fontType === we.BIGFONT && (r = r.normalizeToOrigin()), r;
|
|
16177
16172
|
}
|
|
16178
16173
|
/**
|
|
16179
16174
|
* Releases resources used by the font.
|
|
@@ -16182,11 +16177,11 @@ var Jd = Zh((O) => {
|
|
|
16182
16177
|
release() {
|
|
16183
16178
|
this.shapeParser.release();
|
|
16184
16179
|
}
|
|
16185
|
-
}
|
|
16186
|
-
function
|
|
16180
|
+
};
|
|
16181
|
+
function Kp(n) {
|
|
16187
16182
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
16188
16183
|
}
|
|
16189
|
-
function
|
|
16184
|
+
function ed(n) {
|
|
16190
16185
|
if (n.__esModule) return n;
|
|
16191
16186
|
var e = n.default;
|
|
16192
16187
|
if (typeof e == "function") {
|
|
@@ -16206,11 +16201,11 @@ var Jd = Zh((O) => {
|
|
|
16206
16201
|
}), t;
|
|
16207
16202
|
}
|
|
16208
16203
|
var Gh = { exports: {} }, Bs = {}, $n = {};
|
|
16209
|
-
$n.byteLength =
|
|
16210
|
-
$n.toByteArray =
|
|
16211
|
-
$n.fromByteArray =
|
|
16212
|
-
var Qe = [], Ee = [],
|
|
16213
|
-
for (var nr = 0,
|
|
16204
|
+
$n.byteLength = nd;
|
|
16205
|
+
$n.toByteArray = sd;
|
|
16206
|
+
$n.fromByteArray = hd;
|
|
16207
|
+
var Qe = [], Ee = [], td = typeof Uint8Array < "u" ? Uint8Array : Array, Ri = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
16208
|
+
for (var nr = 0, rd = Ri.length; nr < rd; ++nr)
|
|
16214
16209
|
Qe[nr] = Ri[nr], Ee[Ri.charCodeAt(nr)] = nr;
|
|
16215
16210
|
Ee[45] = 62;
|
|
16216
16211
|
Ee[95] = 63;
|
|
@@ -16223,30 +16218,30 @@ var Jd = Zh((O) => {
|
|
|
16223
16218
|
var r = t === e ? 0 : 4 - t % 4;
|
|
16224
16219
|
return [t, r];
|
|
16225
16220
|
}
|
|
16226
|
-
function
|
|
16221
|
+
function nd(n) {
|
|
16227
16222
|
var e = Hh(n), t = e[0], r = e[1];
|
|
16228
16223
|
return (t + r) * 3 / 4 - r;
|
|
16229
16224
|
}
|
|
16230
|
-
function
|
|
16225
|
+
function id(n, e, t) {
|
|
16231
16226
|
return (e + t) * 3 / 4 - t;
|
|
16232
16227
|
}
|
|
16233
|
-
function
|
|
16234
|
-
var e, t = Hh(n), r = t[0], i = t[1], s = new
|
|
16228
|
+
function sd(n) {
|
|
16229
|
+
var e, t = Hh(n), r = t[0], i = t[1], s = new td(id(n, r, i)), a = 0, o = i > 0 ? r - 4 : r, h;
|
|
16235
16230
|
for (h = 0; h < o; h += 4)
|
|
16236
16231
|
e = Ee[n.charCodeAt(h)] << 18 | Ee[n.charCodeAt(h + 1)] << 12 | Ee[n.charCodeAt(h + 2)] << 6 | Ee[n.charCodeAt(h + 3)], s[a++] = e >> 16 & 255, s[a++] = e >> 8 & 255, s[a++] = e & 255;
|
|
16237
16232
|
return i === 2 && (e = Ee[n.charCodeAt(h)] << 2 | Ee[n.charCodeAt(h + 1)] >> 4, s[a++] = e & 255), i === 1 && (e = Ee[n.charCodeAt(h)] << 10 | Ee[n.charCodeAt(h + 1)] << 4 | Ee[n.charCodeAt(h + 2)] >> 2, s[a++] = e >> 8 & 255, s[a++] = e & 255), s;
|
|
16238
16233
|
}
|
|
16239
|
-
function
|
|
16234
|
+
function ad(n) {
|
|
16240
16235
|
return Qe[n >> 18 & 63] + Qe[n >> 12 & 63] + Qe[n >> 6 & 63] + Qe[n & 63];
|
|
16241
16236
|
}
|
|
16242
|
-
function
|
|
16237
|
+
function od(n, e, t) {
|
|
16243
16238
|
for (var r, i = [], s = e; s < t; s += 3)
|
|
16244
|
-
r = (n[s] << 16 & 16711680) + (n[s + 1] << 8 & 65280) + (n[s + 2] & 255), i.push(
|
|
16239
|
+
r = (n[s] << 16 & 16711680) + (n[s + 1] << 8 & 65280) + (n[s + 2] & 255), i.push(ad(r));
|
|
16245
16240
|
return i.join("");
|
|
16246
16241
|
}
|
|
16247
|
-
function
|
|
16242
|
+
function hd(n) {
|
|
16248
16243
|
for (var e, t = n.length, r = t % 3, i = [], s = 16383, a = 0, o = t - r; a < o; a += s)
|
|
16249
|
-
i.push(
|
|
16244
|
+
i.push(od(n, a, a + s > o ? o : a + s));
|
|
16250
16245
|
return r === 1 ? (e = n[t - 1], i.push(
|
|
16251
16246
|
Qe[e >> 2] + Qe[e << 4 & 63] + "=="
|
|
16252
16247
|
)) : r === 2 && (e = (n[t - 2] << 8) + n[t - 1], i.push(
|
|
@@ -16349,8 +16344,8 @@ var Jd = Zh((O) => {
|
|
|
16349
16344
|
var T = S.valueOf && S.valueOf();
|
|
16350
16345
|
if (T != null && T !== S)
|
|
16351
16346
|
return o.from(T, d, y);
|
|
16352
|
-
var
|
|
16353
|
-
if (
|
|
16347
|
+
var C = x(S);
|
|
16348
|
+
if (C) return C;
|
|
16354
16349
|
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof S[Symbol.toPrimitive] == "function")
|
|
16355
16350
|
return o.from(
|
|
16356
16351
|
S[Symbol.toPrimitive]("string"),
|
|
@@ -16387,8 +16382,8 @@ var Jd = Zh((O) => {
|
|
|
16387
16382
|
function l(S, d) {
|
|
16388
16383
|
if ((typeof d != "string" || d === "") && (d = "utf8"), !o.isEncoding(d))
|
|
16389
16384
|
throw new TypeError("Unknown encoding: " + d);
|
|
16390
|
-
var y = b(S, d) | 0, T = a(y),
|
|
16391
|
-
return
|
|
16385
|
+
var y = b(S, d) | 0, T = a(y), C = T.write(S, d);
|
|
16386
|
+
return C !== y && (T = T.slice(0, C)), T;
|
|
16392
16387
|
}
|
|
16393
16388
|
function p(S) {
|
|
16394
16389
|
for (var d = S.length < 0 ? 0 : v(S.length) | 0, y = a(d), T = 0; T < d; T += 1)
|
|
@@ -16436,12 +16431,12 @@ var Jd = Zh((O) => {
|
|
|
16436
16431
|
'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
|
|
16437
16432
|
);
|
|
16438
16433
|
if (d === y) return 0;
|
|
16439
|
-
for (var T = d.length,
|
|
16434
|
+
for (var T = d.length, C = y.length, L = 0, U = Math.min(T, C); L < U; ++L)
|
|
16440
16435
|
if (d[L] !== y[L]) {
|
|
16441
|
-
T = d[L],
|
|
16436
|
+
T = d[L], C = y[L];
|
|
16442
16437
|
break;
|
|
16443
16438
|
}
|
|
16444
|
-
return T <
|
|
16439
|
+
return T < C ? -1 : C < T ? 1 : 0;
|
|
16445
16440
|
}, o.isEncoding = function(d) {
|
|
16446
16441
|
switch (String(d).toLowerCase()) {
|
|
16447
16442
|
case "hex":
|
|
@@ -16468,22 +16463,22 @@ var Jd = Zh((O) => {
|
|
|
16468
16463
|
if (y === void 0)
|
|
16469
16464
|
for (y = 0, T = 0; T < d.length; ++T)
|
|
16470
16465
|
y += d[T].length;
|
|
16471
|
-
var
|
|
16466
|
+
var C = o.allocUnsafe(y), L = 0;
|
|
16472
16467
|
for (T = 0; T < d.length; ++T) {
|
|
16473
16468
|
var U = d[T];
|
|
16474
16469
|
if (Je(U, Uint8Array))
|
|
16475
|
-
L + U.length >
|
|
16476
|
-
|
|
16470
|
+
L + U.length > C.length ? o.from(U).copy(C, L) : Uint8Array.prototype.set.call(
|
|
16471
|
+
C,
|
|
16477
16472
|
U,
|
|
16478
16473
|
L
|
|
16479
16474
|
);
|
|
16480
16475
|
else if (o.isBuffer(U))
|
|
16481
|
-
U.copy(
|
|
16476
|
+
U.copy(C, L);
|
|
16482
16477
|
else
|
|
16483
16478
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
16484
16479
|
L += U.length;
|
|
16485
16480
|
}
|
|
16486
|
-
return
|
|
16481
|
+
return C;
|
|
16487
16482
|
};
|
|
16488
16483
|
function b(S, d) {
|
|
16489
16484
|
if (o.isBuffer(S))
|
|
@@ -16496,7 +16491,7 @@ var Jd = Zh((O) => {
|
|
|
16496
16491
|
);
|
|
16497
16492
|
var y = S.length, T = arguments.length > 2 && arguments[2] === !0;
|
|
16498
16493
|
if (!T && y === 0) return 0;
|
|
16499
|
-
for (var
|
|
16494
|
+
for (var C = !1; ; )
|
|
16500
16495
|
switch (d) {
|
|
16501
16496
|
case "ascii":
|
|
16502
16497
|
case "latin1":
|
|
@@ -16515,9 +16510,9 @@ var Jd = Zh((O) => {
|
|
|
16515
16510
|
case "base64":
|
|
16516
16511
|
return zs(S).length;
|
|
16517
16512
|
default:
|
|
16518
|
-
if (
|
|
16513
|
+
if (C)
|
|
16519
16514
|
return T ? -1 : pt(S).length;
|
|
16520
|
-
d = ("" + d).toLowerCase(),
|
|
16515
|
+
d = ("" + d).toLowerCase(), C = !0;
|
|
16521
16516
|
}
|
|
16522
16517
|
}
|
|
16523
16518
|
o.byteLength = b;
|
|
@@ -16550,7 +16545,7 @@ var Jd = Zh((O) => {
|
|
|
16550
16545
|
}
|
|
16551
16546
|
}
|
|
16552
16547
|
o.prototype._isBuffer = !0;
|
|
16553
|
-
function
|
|
16548
|
+
function k(S, d, y) {
|
|
16554
16549
|
var T = S[d];
|
|
16555
16550
|
S[d] = S[y], S[y] = T;
|
|
16556
16551
|
}
|
|
@@ -16559,21 +16554,21 @@ var Jd = Zh((O) => {
|
|
|
16559
16554
|
if (d % 2 !== 0)
|
|
16560
16555
|
throw new RangeError("Buffer size must be a multiple of 16-bits");
|
|
16561
16556
|
for (var y = 0; y < d; y += 2)
|
|
16562
|
-
|
|
16557
|
+
k(this, y, y + 1);
|
|
16563
16558
|
return this;
|
|
16564
16559
|
}, o.prototype.swap32 = function() {
|
|
16565
16560
|
var d = this.length;
|
|
16566
16561
|
if (d % 4 !== 0)
|
|
16567
16562
|
throw new RangeError("Buffer size must be a multiple of 32-bits");
|
|
16568
16563
|
for (var y = 0; y < d; y += 4)
|
|
16569
|
-
|
|
16564
|
+
k(this, y, y + 3), k(this, y + 1, y + 2);
|
|
16570
16565
|
return this;
|
|
16571
16566
|
}, o.prototype.swap64 = function() {
|
|
16572
16567
|
var d = this.length;
|
|
16573
16568
|
if (d % 8 !== 0)
|
|
16574
16569
|
throw new RangeError("Buffer size must be a multiple of 64-bits");
|
|
16575
16570
|
for (var y = 0; y < d; y += 8)
|
|
16576
|
-
|
|
16571
|
+
k(this, y, y + 7), k(this, y + 1, y + 6), k(this, y + 2, y + 5), k(this, y + 3, y + 4);
|
|
16577
16572
|
return this;
|
|
16578
16573
|
}, o.prototype.toString = function() {
|
|
16579
16574
|
var d = this.length;
|
|
@@ -16584,42 +16579,42 @@ var Jd = Zh((O) => {
|
|
|
16584
16579
|
}, o.prototype.inspect = function() {
|
|
16585
16580
|
var d = "", y = n.INSPECT_MAX_BYTES;
|
|
16586
16581
|
return d = this.toString("hex", 0, y).replace(/(.{2})/g, "$1 ").trim(), this.length > y && (d += " ... "), "<Buffer " + d + ">";
|
|
16587
|
-
}, r && (o.prototype[r] = o.prototype.inspect), o.prototype.compare = function(d, y, T,
|
|
16582
|
+
}, r && (o.prototype[r] = o.prototype.inspect), o.prototype.compare = function(d, y, T, C, L) {
|
|
16588
16583
|
if (Je(d, Uint8Array) && (d = o.from(d, d.offset, d.byteLength)), !o.isBuffer(d))
|
|
16589
16584
|
throw new TypeError(
|
|
16590
16585
|
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof d
|
|
16591
16586
|
);
|
|
16592
|
-
if (y === void 0 && (y = 0), T === void 0 && (T = d ? d.length : 0),
|
|
16587
|
+
if (y === void 0 && (y = 0), T === void 0 && (T = d ? d.length : 0), C === void 0 && (C = 0), L === void 0 && (L = this.length), y < 0 || T > d.length || C < 0 || L > this.length)
|
|
16593
16588
|
throw new RangeError("out of range index");
|
|
16594
|
-
if (
|
|
16589
|
+
if (C >= L && y >= T)
|
|
16595
16590
|
return 0;
|
|
16596
|
-
if (
|
|
16591
|
+
if (C >= L)
|
|
16597
16592
|
return -1;
|
|
16598
16593
|
if (y >= T)
|
|
16599
16594
|
return 1;
|
|
16600
|
-
if (y >>>= 0, T >>>= 0,
|
|
16601
|
-
for (var U = L -
|
|
16595
|
+
if (y >>>= 0, T >>>= 0, C >>>= 0, L >>>= 0, this === d) return 0;
|
|
16596
|
+
for (var U = L - C, J = T - y, K = Math.min(U, J), se = this.slice(C, L), ye = d.slice(y, T), he = 0; he < K; ++he)
|
|
16602
16597
|
if (se[he] !== ye[he]) {
|
|
16603
16598
|
U = se[he], J = ye[he];
|
|
16604
16599
|
break;
|
|
16605
16600
|
}
|
|
16606
16601
|
return U < J ? -1 : J < U ? 1 : 0;
|
|
16607
16602
|
};
|
|
16608
|
-
function _(S, d, y, T,
|
|
16603
|
+
function _(S, d, y, T, C) {
|
|
16609
16604
|
if (S.length === 0) return -1;
|
|
16610
|
-
if (typeof y == "string" ? (T = y, y = 0) : y > 2147483647 ? y = 2147483647 : y < -2147483648 && (y = -2147483648), y = +y, jn(y) && (y =
|
|
16611
|
-
if (
|
|
16605
|
+
if (typeof y == "string" ? (T = y, y = 0) : y > 2147483647 ? y = 2147483647 : y < -2147483648 && (y = -2147483648), y = +y, jn(y) && (y = C ? 0 : S.length - 1), y < 0 && (y = S.length + y), y >= S.length) {
|
|
16606
|
+
if (C) return -1;
|
|
16612
16607
|
y = S.length - 1;
|
|
16613
16608
|
} else if (y < 0)
|
|
16614
|
-
if (
|
|
16609
|
+
if (C) y = 0;
|
|
16615
16610
|
else return -1;
|
|
16616
16611
|
if (typeof d == "string" && (d = o.from(d, T)), o.isBuffer(d))
|
|
16617
|
-
return d.length === 0 ? -1 : E(S, d, y, T,
|
|
16612
|
+
return d.length === 0 ? -1 : E(S, d, y, T, C);
|
|
16618
16613
|
if (typeof d == "number")
|
|
16619
|
-
return d = d & 255, typeof Uint8Array.prototype.indexOf == "function" ?
|
|
16614
|
+
return d = d & 255, typeof Uint8Array.prototype.indexOf == "function" ? C ? Uint8Array.prototype.indexOf.call(S, d, y) : Uint8Array.prototype.lastIndexOf.call(S, d, y) : E(S, [d], y, T, C);
|
|
16620
16615
|
throw new TypeError("val must be string, number or Buffer");
|
|
16621
16616
|
}
|
|
16622
|
-
function E(S, d, y, T,
|
|
16617
|
+
function E(S, d, y, T, C) {
|
|
16623
16618
|
var L = 1, U = S.length, J = d.length;
|
|
16624
16619
|
if (T !== void 0 && (T = String(T).toLowerCase(), T === "ucs2" || T === "ucs-2" || T === "utf16le" || T === "utf-16le")) {
|
|
16625
16620
|
if (S.length < 2 || d.length < 2)
|
|
@@ -16630,7 +16625,7 @@ var Jd = Zh((O) => {
|
|
|
16630
16625
|
return L === 1 ? Ns[Gs] : Ns.readUInt16BE(Gs * L);
|
|
16631
16626
|
}
|
|
16632
16627
|
var se;
|
|
16633
|
-
if (
|
|
16628
|
+
if (C) {
|
|
16634
16629
|
var ye = -1;
|
|
16635
16630
|
for (se = y; se < U; se++)
|
|
16636
16631
|
if (K(S, se) === K(d, ye === -1 ? 0 : se - ye)) {
|
|
@@ -16657,8 +16652,8 @@ var Jd = Zh((O) => {
|
|
|
16657
16652
|
};
|
|
16658
16653
|
function B(S, d, y, T) {
|
|
16659
16654
|
y = Number(y) || 0;
|
|
16660
|
-
var
|
|
16661
|
-
T ? (T = Number(T), T >
|
|
16655
|
+
var C = S.length - y;
|
|
16656
|
+
T ? (T = Number(T), T > C && (T = C)) : T = C;
|
|
16662
16657
|
var L = d.length;
|
|
16663
16658
|
T > L / 2 && (T = L / 2);
|
|
16664
16659
|
for (var U = 0; U < T; ++U) {
|
|
@@ -16680,13 +16675,13 @@ var Jd = Zh((O) => {
|
|
|
16680
16675
|
function re(S, d, y, T) {
|
|
16681
16676
|
return en(Xh(d, S.length - y), S, y, T);
|
|
16682
16677
|
}
|
|
16683
|
-
o.prototype.write = function(d, y, T,
|
|
16678
|
+
o.prototype.write = function(d, y, T, C) {
|
|
16684
16679
|
if (y === void 0)
|
|
16685
|
-
|
|
16680
|
+
C = "utf8", T = this.length, y = 0;
|
|
16686
16681
|
else if (T === void 0 && typeof y == "string")
|
|
16687
|
-
|
|
16682
|
+
C = y, T = this.length, y = 0;
|
|
16688
16683
|
else if (isFinite(y))
|
|
16689
|
-
y = y >>> 0, isFinite(T) ? (T = T >>> 0,
|
|
16684
|
+
y = y >>> 0, isFinite(T) ? (T = T >>> 0, C === void 0 && (C = "utf8")) : (C = T, T = void 0);
|
|
16690
16685
|
else
|
|
16691
16686
|
throw new Error(
|
|
16692
16687
|
"Buffer.write(string, encoding, offset[, length]) is no longer supported"
|
|
@@ -16694,9 +16689,9 @@ var Jd = Zh((O) => {
|
|
|
16694
16689
|
var L = this.length - y;
|
|
16695
16690
|
if ((T === void 0 || T > L) && (T = L), d.length > 0 && (T < 0 || y < 0) || y > this.length)
|
|
16696
16691
|
throw new RangeError("Attempt to write outside buffer bounds");
|
|
16697
|
-
|
|
16692
|
+
C || (C = "utf8");
|
|
16698
16693
|
for (var U = !1; ; )
|
|
16699
|
-
switch (
|
|
16694
|
+
switch (C) {
|
|
16700
16695
|
case "hex":
|
|
16701
16696
|
return B(this, d, y, T);
|
|
16702
16697
|
case "utf8":
|
|
@@ -16714,8 +16709,8 @@ var Jd = Zh((O) => {
|
|
|
16714
16709
|
case "utf-16le":
|
|
16715
16710
|
return re(this, d, y, T);
|
|
16716
16711
|
default:
|
|
16717
|
-
if (U) throw new TypeError("Unknown encoding: " +
|
|
16718
|
-
|
|
16712
|
+
if (U) throw new TypeError("Unknown encoding: " + C);
|
|
16713
|
+
C = ("" + C).toLowerCase(), U = !0;
|
|
16719
16714
|
}
|
|
16720
16715
|
}, o.prototype.toJSON = function() {
|
|
16721
16716
|
return {
|
|
@@ -16728,25 +16723,25 @@ var Jd = Zh((O) => {
|
|
|
16728
16723
|
}
|
|
16729
16724
|
function Z(S, d, y) {
|
|
16730
16725
|
y = Math.min(S.length, y);
|
|
16731
|
-
for (var T = [],
|
|
16732
|
-
var L = S[
|
|
16733
|
-
if (
|
|
16726
|
+
for (var T = [], C = d; C < y; ) {
|
|
16727
|
+
var L = S[C], U = null, J = L > 239 ? 4 : L > 223 ? 3 : L > 191 ? 2 : 1;
|
|
16728
|
+
if (C + J <= y) {
|
|
16734
16729
|
var K, se, ye, he;
|
|
16735
16730
|
switch (J) {
|
|
16736
16731
|
case 1:
|
|
16737
16732
|
L < 128 && (U = L);
|
|
16738
16733
|
break;
|
|
16739
16734
|
case 2:
|
|
16740
|
-
K = S[
|
|
16735
|
+
K = S[C + 1], (K & 192) === 128 && (he = (L & 31) << 6 | K & 63, he > 127 && (U = he));
|
|
16741
16736
|
break;
|
|
16742
16737
|
case 3:
|
|
16743
|
-
K = S[
|
|
16738
|
+
K = S[C + 1], se = S[C + 2], (K & 192) === 128 && (se & 192) === 128 && (he = (L & 15) << 12 | (K & 63) << 6 | se & 63, he > 2047 && (he < 55296 || he > 57343) && (U = he));
|
|
16744
16739
|
break;
|
|
16745
16740
|
case 4:
|
|
16746
|
-
K = S[
|
|
16741
|
+
K = S[C + 1], se = S[C + 2], ye = S[C + 3], (K & 192) === 128 && (se & 192) === 128 && (ye & 192) === 128 && (he = (L & 15) << 18 | (K & 63) << 12 | (se & 63) << 6 | ye & 63, he > 65535 && he < 1114112 && (U = he));
|
|
16747
16742
|
}
|
|
16748
16743
|
}
|
|
16749
|
-
U === null ? (U = 65533, J = 1) : U > 65535 && (U -= 65536, T.push(U >>> 10 & 1023 | 55296), U = 56320 | U & 1023), T.push(U),
|
|
16744
|
+
U === null ? (U = 65533, J = 1) : U > 65535 && (U -= 65536, T.push(U >>> 10 & 1023 | 55296), U = 56320 | U & 1023), T.push(U), C += J;
|
|
16750
16745
|
}
|
|
16751
16746
|
return Q(T);
|
|
16752
16747
|
}
|
|
@@ -16765,34 +16760,34 @@ var Jd = Zh((O) => {
|
|
|
16765
16760
|
function te(S, d, y) {
|
|
16766
16761
|
var T = "";
|
|
16767
16762
|
y = Math.min(S.length, y);
|
|
16768
|
-
for (var
|
|
16769
|
-
T += String.fromCharCode(S[
|
|
16763
|
+
for (var C = d; C < y; ++C)
|
|
16764
|
+
T += String.fromCharCode(S[C] & 127);
|
|
16770
16765
|
return T;
|
|
16771
16766
|
}
|
|
16772
16767
|
function ie(S, d, y) {
|
|
16773
16768
|
var T = "";
|
|
16774
16769
|
y = Math.min(S.length, y);
|
|
16775
|
-
for (var
|
|
16776
|
-
T += String.fromCharCode(S[
|
|
16770
|
+
for (var C = d; C < y; ++C)
|
|
16771
|
+
T += String.fromCharCode(S[C]);
|
|
16777
16772
|
return T;
|
|
16778
16773
|
}
|
|
16779
16774
|
function ne(S, d, y) {
|
|
16780
16775
|
var T = S.length;
|
|
16781
16776
|
(!d || d < 0) && (d = 0), (!y || y < 0 || y > T) && (y = T);
|
|
16782
|
-
for (var
|
|
16783
|
-
|
|
16784
|
-
return
|
|
16777
|
+
for (var C = "", L = d; L < y; ++L)
|
|
16778
|
+
C += Yh[S[L]];
|
|
16779
|
+
return C;
|
|
16785
16780
|
}
|
|
16786
16781
|
function ae(S, d, y) {
|
|
16787
|
-
for (var T = S.slice(d, y),
|
|
16788
|
-
|
|
16789
|
-
return
|
|
16782
|
+
for (var T = S.slice(d, y), C = "", L = 0; L < T.length - 1; L += 2)
|
|
16783
|
+
C += String.fromCharCode(T[L] + T[L + 1] * 256);
|
|
16784
|
+
return C;
|
|
16790
16785
|
}
|
|
16791
16786
|
o.prototype.slice = function(d, y) {
|
|
16792
16787
|
var T = this.length;
|
|
16793
16788
|
d = ~~d, y = y === void 0 ? T : ~~y, d < 0 ? (d += T, d < 0 && (d = 0)) : d > T && (d = T), y < 0 ? (y += T, y < 0 && (y = 0)) : y > T && (y = T), y < d && (y = d);
|
|
16794
|
-
var
|
|
16795
|
-
return Object.setPrototypeOf(
|
|
16789
|
+
var C = this.subarray(d, y);
|
|
16790
|
+
return Object.setPrototypeOf(C, o.prototype), C;
|
|
16796
16791
|
};
|
|
16797
16792
|
function H(S, d, y) {
|
|
16798
16793
|
if (S % 1 !== 0 || S < 0) throw new RangeError("offset is not uint");
|
|
@@ -16800,14 +16795,14 @@ var Jd = Zh((O) => {
|
|
|
16800
16795
|
}
|
|
16801
16796
|
o.prototype.readUintLE = o.prototype.readUIntLE = function(d, y, T) {
|
|
16802
16797
|
d = d >>> 0, y = y >>> 0, T || H(d, y, this.length);
|
|
16803
|
-
for (var
|
|
16804
|
-
|
|
16805
|
-
return
|
|
16798
|
+
for (var C = this[d], L = 1, U = 0; ++U < y && (L *= 256); )
|
|
16799
|
+
C += this[d + U] * L;
|
|
16800
|
+
return C;
|
|
16806
16801
|
}, o.prototype.readUintBE = o.prototype.readUIntBE = function(d, y, T) {
|
|
16807
16802
|
d = d >>> 0, y = y >>> 0, T || H(d, y, this.length);
|
|
16808
|
-
for (var
|
|
16809
|
-
|
|
16810
|
-
return
|
|
16803
|
+
for (var C = this[d + --y], L = 1; y > 0 && (L *= 256); )
|
|
16804
|
+
C += this[d + --y] * L;
|
|
16805
|
+
return C;
|
|
16811
16806
|
}, o.prototype.readUint8 = o.prototype.readUInt8 = function(d, y) {
|
|
16812
16807
|
return d = d >>> 0, y || H(d, 1, this.length), this[d];
|
|
16813
16808
|
}, o.prototype.readUint16LE = o.prototype.readUInt16LE = function(d, y) {
|
|
@@ -16820,13 +16815,13 @@ var Jd = Zh((O) => {
|
|
|
16820
16815
|
return d = d >>> 0, y || H(d, 4, this.length), this[d] * 16777216 + (this[d + 1] << 16 | this[d + 2] << 8 | this[d + 3]);
|
|
16821
16816
|
}, o.prototype.readIntLE = function(d, y, T) {
|
|
16822
16817
|
d = d >>> 0, y = y >>> 0, T || H(d, y, this.length);
|
|
16823
|
-
for (var
|
|
16824
|
-
|
|
16825
|
-
return L *= 128,
|
|
16818
|
+
for (var C = this[d], L = 1, U = 0; ++U < y && (L *= 256); )
|
|
16819
|
+
C += this[d + U] * L;
|
|
16820
|
+
return L *= 128, C >= L && (C -= Math.pow(2, 8 * y)), C;
|
|
16826
16821
|
}, o.prototype.readIntBE = function(d, y, T) {
|
|
16827
16822
|
d = d >>> 0, y = y >>> 0, T || H(d, y, this.length);
|
|
16828
|
-
for (var
|
|
16829
|
-
U += this[d + --
|
|
16823
|
+
for (var C = y, L = 1, U = this[d + --C]; C > 0 && (L *= 256); )
|
|
16824
|
+
U += this[d + --C] * L;
|
|
16830
16825
|
return L *= 128, U >= L && (U -= Math.pow(2, 8 * y)), U;
|
|
16831
16826
|
}, o.prototype.readInt8 = function(d, y) {
|
|
16832
16827
|
return d = d >>> 0, y || H(d, 1, this.length), this[d] & 128 ? (255 - this[d] + 1) * -1 : this[d];
|
|
@@ -16851,13 +16846,13 @@ var Jd = Zh((O) => {
|
|
|
16851
16846
|
}, o.prototype.readDoubleBE = function(d, y) {
|
|
16852
16847
|
return d = d >>> 0, y || H(d, 8, this.length), t.read(this, d, !1, 52, 8);
|
|
16853
16848
|
};
|
|
16854
|
-
function $(S, d, y, T,
|
|
16849
|
+
function $(S, d, y, T, C, L) {
|
|
16855
16850
|
if (!o.isBuffer(S)) throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
16856
|
-
if (d >
|
|
16851
|
+
if (d > C || d < L) throw new RangeError('"value" argument is out of bounds');
|
|
16857
16852
|
if (y + T > S.length) throw new RangeError("Index out of range");
|
|
16858
16853
|
}
|
|
16859
|
-
o.prototype.writeUintLE = o.prototype.writeUIntLE = function(d, y, T,
|
|
16860
|
-
if (d = +d, y = y >>> 0, T = T >>> 0, !
|
|
16854
|
+
o.prototype.writeUintLE = o.prototype.writeUIntLE = function(d, y, T, C) {
|
|
16855
|
+
if (d = +d, y = y >>> 0, T = T >>> 0, !C) {
|
|
16861
16856
|
var L = Math.pow(2, 8 * T) - 1;
|
|
16862
16857
|
$(this, d, y, T, L, 0);
|
|
16863
16858
|
}
|
|
@@ -16865,8 +16860,8 @@ var Jd = Zh((O) => {
|
|
|
16865
16860
|
for (this[y] = d & 255; ++J < T && (U *= 256); )
|
|
16866
16861
|
this[y + J] = d / U & 255;
|
|
16867
16862
|
return y + T;
|
|
16868
|
-
}, o.prototype.writeUintBE = o.prototype.writeUIntBE = function(d, y, T,
|
|
16869
|
-
if (d = +d, y = y >>> 0, T = T >>> 0, !
|
|
16863
|
+
}, o.prototype.writeUintBE = o.prototype.writeUIntBE = function(d, y, T, C) {
|
|
16864
|
+
if (d = +d, y = y >>> 0, T = T >>> 0, !C) {
|
|
16870
16865
|
var L = Math.pow(2, 8 * T) - 1;
|
|
16871
16866
|
$(this, d, y, T, L, 0);
|
|
16872
16867
|
}
|
|
@@ -16884,8 +16879,8 @@ var Jd = Zh((O) => {
|
|
|
16884
16879
|
return d = +d, y = y >>> 0, T || $(this, d, y, 4, 4294967295, 0), this[y + 3] = d >>> 24, this[y + 2] = d >>> 16, this[y + 1] = d >>> 8, this[y] = d & 255, y + 4;
|
|
16885
16880
|
}, o.prototype.writeUint32BE = o.prototype.writeUInt32BE = function(d, y, T) {
|
|
16886
16881
|
return d = +d, y = y >>> 0, T || $(this, d, y, 4, 4294967295, 0), this[y] = d >>> 24, this[y + 1] = d >>> 16, this[y + 2] = d >>> 8, this[y + 3] = d & 255, y + 4;
|
|
16887
|
-
}, o.prototype.writeIntLE = function(d, y, T,
|
|
16888
|
-
if (d = +d, y = y >>> 0, !
|
|
16882
|
+
}, o.prototype.writeIntLE = function(d, y, T, C) {
|
|
16883
|
+
if (d = +d, y = y >>> 0, !C) {
|
|
16889
16884
|
var L = Math.pow(2, 8 * T - 1);
|
|
16890
16885
|
$(this, d, y, T, L - 1, -L);
|
|
16891
16886
|
}
|
|
@@ -16893,8 +16888,8 @@ var Jd = Zh((O) => {
|
|
|
16893
16888
|
for (this[y] = d & 255; ++U < T && (J *= 256); )
|
|
16894
16889
|
d < 0 && K === 0 && this[y + U - 1] !== 0 && (K = 1), this[y + U] = (d / J >> 0) - K & 255;
|
|
16895
16890
|
return y + T;
|
|
16896
|
-
}, o.prototype.writeIntBE = function(d, y, T,
|
|
16897
|
-
if (d = +d, y = y >>> 0, !
|
|
16891
|
+
}, o.prototype.writeIntBE = function(d, y, T, C) {
|
|
16892
|
+
if (d = +d, y = y >>> 0, !C) {
|
|
16898
16893
|
var L = Math.pow(2, 8 * T - 1);
|
|
16899
16894
|
$(this, d, y, T, L - 1, -L);
|
|
16900
16895
|
}
|
|
@@ -16913,48 +16908,48 @@ var Jd = Zh((O) => {
|
|
|
16913
16908
|
}, o.prototype.writeInt32BE = function(d, y, T) {
|
|
16914
16909
|
return d = +d, y = y >>> 0, T || $(this, d, y, 4, 2147483647, -2147483648), d < 0 && (d = 4294967295 + d + 1), this[y] = d >>> 24, this[y + 1] = d >>> 16, this[y + 2] = d >>> 8, this[y + 3] = d & 255, y + 4;
|
|
16915
16910
|
};
|
|
16916
|
-
function Vt(S, d, y, T,
|
|
16911
|
+
function Vt(S, d, y, T, C, L) {
|
|
16917
16912
|
if (y + T > S.length) throw new RangeError("Index out of range");
|
|
16918
16913
|
if (y < 0) throw new RangeError("Index out of range");
|
|
16919
16914
|
}
|
|
16920
|
-
function jr(S, d, y, T,
|
|
16921
|
-
return d = +d, y = y >>> 0,
|
|
16915
|
+
function jr(S, d, y, T, C) {
|
|
16916
|
+
return d = +d, y = y >>> 0, C || Vt(S, d, y, 4), t.write(S, d, y, T, 23, 4), y + 4;
|
|
16922
16917
|
}
|
|
16923
16918
|
o.prototype.writeFloatLE = function(d, y, T) {
|
|
16924
16919
|
return jr(this, d, y, !0, T);
|
|
16925
16920
|
}, o.prototype.writeFloatBE = function(d, y, T) {
|
|
16926
16921
|
return jr(this, d, y, !1, T);
|
|
16927
16922
|
};
|
|
16928
|
-
function Qr(S, d, y, T,
|
|
16929
|
-
return d = +d, y = y >>> 0,
|
|
16923
|
+
function Qr(S, d, y, T, C) {
|
|
16924
|
+
return d = +d, y = y >>> 0, C || Vt(S, d, y, 8), t.write(S, d, y, T, 52, 8), y + 8;
|
|
16930
16925
|
}
|
|
16931
16926
|
o.prototype.writeDoubleLE = function(d, y, T) {
|
|
16932
16927
|
return Qr(this, d, y, !0, T);
|
|
16933
16928
|
}, o.prototype.writeDoubleBE = function(d, y, T) {
|
|
16934
16929
|
return Qr(this, d, y, !1, T);
|
|
16935
|
-
}, o.prototype.copy = function(d, y, T,
|
|
16930
|
+
}, o.prototype.copy = function(d, y, T, C) {
|
|
16936
16931
|
if (!o.isBuffer(d)) throw new TypeError("argument should be a Buffer");
|
|
16937
|
-
if (T || (T = 0), !
|
|
16932
|
+
if (T || (T = 0), !C && C !== 0 && (C = this.length), y >= d.length && (y = d.length), y || (y = 0), C > 0 && C < T && (C = T), C === T || d.length === 0 || this.length === 0) return 0;
|
|
16938
16933
|
if (y < 0)
|
|
16939
16934
|
throw new RangeError("targetStart out of bounds");
|
|
16940
16935
|
if (T < 0 || T >= this.length) throw new RangeError("Index out of range");
|
|
16941
|
-
if (
|
|
16942
|
-
|
|
16943
|
-
var L =
|
|
16944
|
-
return this === d && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(y, T,
|
|
16936
|
+
if (C < 0) throw new RangeError("sourceEnd out of bounds");
|
|
16937
|
+
C > this.length && (C = this.length), d.length - y < C - T && (C = d.length - y + T);
|
|
16938
|
+
var L = C - T;
|
|
16939
|
+
return this === d && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(y, T, C) : Uint8Array.prototype.set.call(
|
|
16945
16940
|
d,
|
|
16946
|
-
this.subarray(T,
|
|
16941
|
+
this.subarray(T, C),
|
|
16947
16942
|
y
|
|
16948
16943
|
), L;
|
|
16949
|
-
}, o.prototype.fill = function(d, y, T,
|
|
16944
|
+
}, o.prototype.fill = function(d, y, T, C) {
|
|
16950
16945
|
if (typeof d == "string") {
|
|
16951
|
-
if (typeof y == "string" ? (
|
|
16946
|
+
if (typeof y == "string" ? (C = y, y = 0, T = this.length) : typeof T == "string" && (C = T, T = this.length), C !== void 0 && typeof C != "string")
|
|
16952
16947
|
throw new TypeError("encoding must be a string");
|
|
16953
|
-
if (typeof
|
|
16954
|
-
throw new TypeError("Unknown encoding: " +
|
|
16948
|
+
if (typeof C == "string" && !o.isEncoding(C))
|
|
16949
|
+
throw new TypeError("Unknown encoding: " + C);
|
|
16955
16950
|
if (d.length === 1) {
|
|
16956
16951
|
var L = d.charCodeAt(0);
|
|
16957
|
-
(
|
|
16952
|
+
(C === "utf8" && L < 128 || C === "latin1") && (d = L);
|
|
16958
16953
|
}
|
|
16959
16954
|
} else typeof d == "number" ? d = d & 255 : typeof d == "boolean" && (d = Number(d));
|
|
16960
16955
|
if (y < 0 || this.length < y || this.length < T)
|
|
@@ -16967,7 +16962,7 @@ var Jd = Zh((O) => {
|
|
|
16967
16962
|
for (U = y; U < T; ++U)
|
|
16968
16963
|
this[U] = d;
|
|
16969
16964
|
else {
|
|
16970
|
-
var J = o.isBuffer(d) ? d : o.from(d,
|
|
16965
|
+
var J = o.isBuffer(d) ? d : o.from(d, C), K = J.length;
|
|
16971
16966
|
if (K === 0)
|
|
16972
16967
|
throw new TypeError('The value "' + d + '" is invalid for argument "value"');
|
|
16973
16968
|
for (U = 0; U < T - y; ++U)
|
|
@@ -16984,9 +16979,9 @@ var Jd = Zh((O) => {
|
|
|
16984
16979
|
}
|
|
16985
16980
|
function pt(S, d) {
|
|
16986
16981
|
d = d || 1 / 0;
|
|
16987
|
-
for (var y, T = S.length,
|
|
16982
|
+
for (var y, T = S.length, C = null, L = [], U = 0; U < T; ++U) {
|
|
16988
16983
|
if (y = S.charCodeAt(U), y > 55295 && y < 57344) {
|
|
16989
|
-
if (!
|
|
16984
|
+
if (!C) {
|
|
16990
16985
|
if (y > 56319) {
|
|
16991
16986
|
(d -= 3) > -1 && L.push(239, 191, 189);
|
|
16992
16987
|
continue;
|
|
@@ -16994,16 +16989,16 @@ var Jd = Zh((O) => {
|
|
|
16994
16989
|
(d -= 3) > -1 && L.push(239, 191, 189);
|
|
16995
16990
|
continue;
|
|
16996
16991
|
}
|
|
16997
|
-
|
|
16992
|
+
C = y;
|
|
16998
16993
|
continue;
|
|
16999
16994
|
}
|
|
17000
16995
|
if (y < 56320) {
|
|
17001
|
-
(d -= 3) > -1 && L.push(239, 191, 189),
|
|
16996
|
+
(d -= 3) > -1 && L.push(239, 191, 189), C = y;
|
|
17002
16997
|
continue;
|
|
17003
16998
|
}
|
|
17004
|
-
y = (
|
|
17005
|
-
} else
|
|
17006
|
-
if (
|
|
16999
|
+
y = (C - 55296 << 10 | y - 56320) + 65536;
|
|
17000
|
+
} else C && (d -= 3) > -1 && L.push(239, 191, 189);
|
|
17001
|
+
if (C = null, y < 128) {
|
|
17007
17002
|
if ((d -= 1) < 0) break;
|
|
17008
17003
|
L.push(y);
|
|
17009
17004
|
} else if (y < 2048) {
|
|
@@ -17038,17 +17033,17 @@ var Jd = Zh((O) => {
|
|
|
17038
17033
|
return d;
|
|
17039
17034
|
}
|
|
17040
17035
|
function Xh(S, d) {
|
|
17041
|
-
for (var y, T,
|
|
17042
|
-
y = S.charCodeAt(U), T = y >> 8,
|
|
17036
|
+
for (var y, T, C, L = [], U = 0; U < S.length && !((d -= 2) < 0); ++U)
|
|
17037
|
+
y = S.charCodeAt(U), T = y >> 8, C = y % 256, L.push(C), L.push(T);
|
|
17043
17038
|
return L;
|
|
17044
17039
|
}
|
|
17045
17040
|
function zs(S) {
|
|
17046
17041
|
return e.toByteArray(Kr(S));
|
|
17047
17042
|
}
|
|
17048
17043
|
function en(S, d, y, T) {
|
|
17049
|
-
for (var
|
|
17050
|
-
d[
|
|
17051
|
-
return
|
|
17044
|
+
for (var C = 0; C < T && !(C + y >= d.length || C >= S.length); ++C)
|
|
17045
|
+
d[C + y] = S[C];
|
|
17046
|
+
return C;
|
|
17052
17047
|
}
|
|
17053
17048
|
function Je(S, d) {
|
|
17054
17049
|
return S instanceof d || S != null && S.constructor != null && S.constructor.name != null && S.constructor.name === d.name;
|
|
@@ -17058,8 +17053,8 @@ var Jd = Zh((O) => {
|
|
|
17058
17053
|
}
|
|
17059
17054
|
var Yh = function() {
|
|
17060
17055
|
for (var S = "0123456789abcdef", d = new Array(256), y = 0; y < 16; ++y)
|
|
17061
|
-
for (var T = y * 16,
|
|
17062
|
-
d[T +
|
|
17056
|
+
for (var T = y * 16, C = 0; C < 16; ++C)
|
|
17057
|
+
d[T + C] = S[y] + S[C];
|
|
17063
17058
|
return d;
|
|
17064
17059
|
}();
|
|
17065
17060
|
})(Bs);
|
|
@@ -17115,15 +17110,15 @@ var Jd = Zh((O) => {
|
|
|
17115
17110
|
Us.prototype.end = function() {
|
|
17116
17111
|
return this.decoder.end();
|
|
17117
17112
|
};
|
|
17118
|
-
var
|
|
17119
|
-
function
|
|
17113
|
+
var cd = typeof Object.hasOwn > "u" ? Function.call.bind(Object.prototype.hasOwnProperty) : Object.hasOwn;
|
|
17114
|
+
function ud(n, e) {
|
|
17120
17115
|
for (var t in e)
|
|
17121
|
-
|
|
17116
|
+
cd(e, t) && (n[t] = e[t]);
|
|
17122
17117
|
}
|
|
17123
|
-
var qh =
|
|
17118
|
+
var qh = ud, Di = {}, Ii = {}, En = { exports: {} };
|
|
17124
17119
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
17125
17120
|
var po;
|
|
17126
|
-
function
|
|
17121
|
+
function ld() {
|
|
17127
17122
|
return po || (po = 1, function(n, e) {
|
|
17128
17123
|
var t = Bs, r = t.Buffer;
|
|
17129
17124
|
function i(a, o) {
|
|
@@ -17155,10 +17150,10 @@ var Jd = Zh((O) => {
|
|
|
17155
17150
|
}(En, En.exports)), En.exports;
|
|
17156
17151
|
}
|
|
17157
17152
|
var go;
|
|
17158
|
-
function
|
|
17153
|
+
function fd() {
|
|
17159
17154
|
if (go) return Ii;
|
|
17160
17155
|
go = 1;
|
|
17161
|
-
var n =
|
|
17156
|
+
var n = ld().Buffer, e = n.isEncoding || function(v) {
|
|
17162
17157
|
switch (v = "" + v, v && v.toLowerCase()) {
|
|
17163
17158
|
case "hex":
|
|
17164
17159
|
case "utf8":
|
|
@@ -17245,8 +17240,8 @@ var Jd = Zh((O) => {
|
|
|
17245
17240
|
function a(v, w, b) {
|
|
17246
17241
|
var F = w.length - 1;
|
|
17247
17242
|
if (F < b) return 0;
|
|
17248
|
-
var
|
|
17249
|
-
return
|
|
17243
|
+
var k = s(w[F]);
|
|
17244
|
+
return k >= 0 ? (k > 0 && (v.lastNeed = k - 1), k) : --F < b || k === -2 ? 0 : (k = s(w[F]), k >= 0 ? (k > 0 && (v.lastNeed = k - 2), k) : --F < b || k === -2 ? 0 : (k = s(w[F]), k >= 0 ? (k > 0 && (k === 2 ? k = 0 : v.lastNeed = k - 3), k) : 0));
|
|
17250
17245
|
}
|
|
17251
17246
|
function o(v, w, b) {
|
|
17252
17247
|
if ((w[0] & 192) !== 128)
|
|
@@ -17313,7 +17308,7 @@ var Jd = Zh((O) => {
|
|
|
17313
17308
|
return Ii;
|
|
17314
17309
|
}
|
|
17315
17310
|
var Pi, yo;
|
|
17316
|
-
function
|
|
17311
|
+
function pd() {
|
|
17317
17312
|
if (yo) return Pi;
|
|
17318
17313
|
yo = 1;
|
|
17319
17314
|
var n = Bt.Buffer;
|
|
@@ -17334,7 +17329,7 @@ var Jd = Zh((O) => {
|
|
|
17334
17329
|
this.enc = c.encodingName, this.bomAware = c.bomAware, this.enc === "base64" ? this.encoder = s : this.enc === "utf8" ? this.encoder = h : this.enc === "cesu8" && (this.enc = "utf8", this.encoder = a, n.from("eda0bdedb2a9", "hex").toString() !== "💩" && (this.decoder = o, this.defaultCharUnicode = u.defaultCharUnicode));
|
|
17335
17330
|
}
|
|
17336
17331
|
e.prototype.encoder = i, e.prototype.decoder = r;
|
|
17337
|
-
var t =
|
|
17332
|
+
var t = fd().StringDecoder;
|
|
17338
17333
|
function r(c, u) {
|
|
17339
17334
|
this.decoder = new t(u.enc);
|
|
17340
17335
|
}
|
|
@@ -17400,7 +17395,7 @@ var Jd = Zh((O) => {
|
|
|
17400
17395
|
}, Pi;
|
|
17401
17396
|
}
|
|
17402
17397
|
var ht = {}, mo;
|
|
17403
|
-
function
|
|
17398
|
+
function dd() {
|
|
17404
17399
|
if (mo) return ht;
|
|
17405
17400
|
mo = 1;
|
|
17406
17401
|
var n = Bt.Buffer;
|
|
@@ -17519,7 +17514,7 @@ var Jd = Zh((O) => {
|
|
|
17519
17514
|
return ht;
|
|
17520
17515
|
}
|
|
17521
17516
|
var Bn = {}, vo;
|
|
17522
|
-
function
|
|
17517
|
+
function gd() {
|
|
17523
17518
|
if (vo) return Bn;
|
|
17524
17519
|
vo = 1;
|
|
17525
17520
|
var n = Bt.Buffer;
|
|
@@ -17605,7 +17600,7 @@ var Jd = Zh((O) => {
|
|
|
17605
17600
|
return Bn;
|
|
17606
17601
|
}
|
|
17607
17602
|
var Tr = {}, xo;
|
|
17608
|
-
function
|
|
17603
|
+
function yd() {
|
|
17609
17604
|
if (xo) return Tr;
|
|
17610
17605
|
xo = 1;
|
|
17611
17606
|
var n = Bt.Buffer;
|
|
@@ -17638,16 +17633,16 @@ var Jd = Zh((O) => {
|
|
|
17638
17633
|
if (F == v && m[F] == c)
|
|
17639
17634
|
x += "+";
|
|
17640
17635
|
else {
|
|
17641
|
-
var
|
|
17642
|
-
x += this.iconv.decode(n.from(
|
|
17636
|
+
var k = b + this.iconv.decode(m.slice(v, F), "ascii");
|
|
17637
|
+
x += this.iconv.decode(n.from(k, "base64"), "utf16-be");
|
|
17643
17638
|
}
|
|
17644
17639
|
m[F] != c && F--, v = F + 1, w = !1, b = "";
|
|
17645
17640
|
}
|
|
17646
17641
|
if (!w)
|
|
17647
17642
|
x += this.iconv.decode(m.slice(v), "ascii");
|
|
17648
17643
|
else {
|
|
17649
|
-
var
|
|
17650
|
-
b =
|
|
17644
|
+
var k = b + this.iconv.decode(m.slice(v), "ascii"), _ = k.length - k.length % 8;
|
|
17645
|
+
b = k.slice(_), k = k.slice(0, _), x += this.iconv.decode(n.from(k, "base64"), "utf16-be");
|
|
17651
17646
|
}
|
|
17652
17647
|
return this.inBase64 = w, this.base64Accum = b, x;
|
|
17653
17648
|
}, i.prototype.end = function() {
|
|
@@ -17662,8 +17657,8 @@ var Jd = Zh((O) => {
|
|
|
17662
17657
|
this.iconv = x.iconv, this.inBase64 = !1, this.base64Accum = n.alloc(6), this.base64AccumIdx = 0;
|
|
17663
17658
|
}
|
|
17664
17659
|
l.prototype.write = function(m) {
|
|
17665
|
-
for (var x = this.inBase64, v = this.base64Accum, w = this.base64AccumIdx, b = n.alloc(m.length * 5 + 10), F = 0,
|
|
17666
|
-
var _ = m.charCodeAt(
|
|
17660
|
+
for (var x = this.inBase64, v = this.base64Accum, w = this.base64AccumIdx, b = n.alloc(m.length * 5 + 10), F = 0, k = 0; k < m.length; k++) {
|
|
17661
|
+
var _ = m.charCodeAt(k);
|
|
17667
17662
|
_ >= 32 && _ <= 126 ? (x && (w > 0 && (F += b.write(v.slice(0, w).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), F), w = 0), b[F++] = c, x = !1), x || (b[F++] = _, _ === u && (b[F++] = c))) : (x || (b[F++] = u, x = !0), x && (v[w++] = _ >> 8, v[w++] = _ & 255, w == v.length && (F += b.write(v.toString("base64").replace(/\//g, ","), F), w = 0)));
|
|
17668
17663
|
}
|
|
17669
17664
|
return this.inBase64 = x, this.base64AccumIdx = w, b.slice(0, F);
|
|
@@ -17683,16 +17678,16 @@ var Jd = Zh((O) => {
|
|
|
17683
17678
|
if (F == v && m[F] == c)
|
|
17684
17679
|
x += "&";
|
|
17685
17680
|
else {
|
|
17686
|
-
var
|
|
17687
|
-
x += this.iconv.decode(n.from(
|
|
17681
|
+
var k = b + this.iconv.decode(m.slice(v, F), "ascii").replace(/,/g, "/");
|
|
17682
|
+
x += this.iconv.decode(n.from(k, "base64"), "utf16-be");
|
|
17688
17683
|
}
|
|
17689
17684
|
m[F] != c && F--, v = F + 1, w = !1, b = "";
|
|
17690
17685
|
}
|
|
17691
17686
|
if (!w)
|
|
17692
17687
|
x += this.iconv.decode(m.slice(v), "ascii");
|
|
17693
17688
|
else {
|
|
17694
|
-
var
|
|
17695
|
-
b =
|
|
17689
|
+
var k = b + this.iconv.decode(m.slice(v), "ascii").replace(/,/g, "/"), _ = k.length - k.length % 8;
|
|
17690
|
+
b = k.slice(_), k = k.slice(0, _), x += this.iconv.decode(n.from(k, "base64"), "utf16-be");
|
|
17696
17691
|
}
|
|
17697
17692
|
return this.inBase64 = w, this.base64Accum = b, x;
|
|
17698
17693
|
}, p.prototype.end = function() {
|
|
@@ -17701,7 +17696,7 @@ var Jd = Zh((O) => {
|
|
|
17701
17696
|
}, Tr;
|
|
17702
17697
|
}
|
|
17703
17698
|
var zi = {}, bo;
|
|
17704
|
-
function
|
|
17699
|
+
function md() {
|
|
17705
17700
|
if (bo) return zi;
|
|
17706
17701
|
bo = 1;
|
|
17707
17702
|
var n = Bt.Buffer;
|
|
@@ -17742,7 +17737,7 @@ var Jd = Zh((O) => {
|
|
|
17742
17737
|
}, zi;
|
|
17743
17738
|
}
|
|
17744
17739
|
var Ni, wo;
|
|
17745
|
-
function
|
|
17740
|
+
function vd() {
|
|
17746
17741
|
return wo || (wo = 1, Ni = {
|
|
17747
17742
|
// Not supported by iconv, not sure why.
|
|
17748
17743
|
10029: "maccenteuro",
|
|
@@ -17891,7 +17886,7 @@ var Jd = Zh((O) => {
|
|
|
17891
17886
|
}), Ni;
|
|
17892
17887
|
}
|
|
17893
17888
|
var Gi, So;
|
|
17894
|
-
function
|
|
17889
|
+
function xd() {
|
|
17895
17890
|
return So || (So = 1, Gi = {
|
|
17896
17891
|
437: "cp437",
|
|
17897
17892
|
737: "cp737",
|
|
@@ -18347,7 +18342,7 @@ var Jd = Zh((O) => {
|
|
|
18347
18342
|
}), Gi;
|
|
18348
18343
|
}
|
|
18349
18344
|
var Hi = {}, Fo;
|
|
18350
|
-
function
|
|
18345
|
+
function bd() {
|
|
18351
18346
|
if (Fo) return Hi;
|
|
18352
18347
|
Fo = 1;
|
|
18353
18348
|
var n = Bt.Buffer;
|
|
@@ -18375,16 +18370,16 @@ var Jd = Zh((O) => {
|
|
|
18375
18370
|
b[F] = i - x;
|
|
18376
18371
|
else if (b[F] > i)
|
|
18377
18372
|
throw new Error("gb18030 decode tables conflict at byte 2");
|
|
18378
|
-
for (var
|
|
18379
|
-
if (
|
|
18380
|
-
|
|
18373
|
+
for (var k = this.decodeTables[i - b[F]], _ = 129; _ <= 254; _++) {
|
|
18374
|
+
if (k[_] === e)
|
|
18375
|
+
k[_] = i - v;
|
|
18381
18376
|
else {
|
|
18382
|
-
if (
|
|
18377
|
+
if (k[_] === i - v)
|
|
18383
18378
|
continue;
|
|
18384
|
-
if (
|
|
18379
|
+
if (k[_] > i)
|
|
18385
18380
|
throw new Error("gb18030 decode tables conflict at byte 3");
|
|
18386
18381
|
}
|
|
18387
|
-
for (var E = this.decodeTables[i -
|
|
18382
|
+
for (var E = this.decodeTables[i - k[_]], B = 48; B <= 57; B++)
|
|
18388
18383
|
E[B] === e && (E[B] = t);
|
|
18389
18384
|
}
|
|
18390
18385
|
}
|
|
@@ -18434,9 +18429,9 @@ var Jd = Zh((O) => {
|
|
|
18434
18429
|
else
|
|
18435
18430
|
throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + l[0]);
|
|
18436
18431
|
} else if (w > 4080 && w <= 4095) {
|
|
18437
|
-
for (var F = 4095 - w + 2,
|
|
18438
|
-
|
|
18439
|
-
g[p++] = r - this.decodeTableSeq.length, this.decodeTableSeq.push(
|
|
18432
|
+
for (var F = 4095 - w + 2, k = [], _ = 0; _ < F; _++)
|
|
18433
|
+
k.push(x.charCodeAt(v++));
|
|
18434
|
+
g[p++] = r - this.decodeTableSeq.length, this.decodeTableSeq.push(k);
|
|
18440
18435
|
} else
|
|
18441
18436
|
g[p++] = w;
|
|
18442
18437
|
}
|
|
@@ -18469,10 +18464,10 @@ var Jd = Zh((O) => {
|
|
|
18469
18464
|
if (b >= 0)
|
|
18470
18465
|
this._setEncodeChar(b, F), x = !0;
|
|
18471
18466
|
else if (b <= i) {
|
|
18472
|
-
var
|
|
18473
|
-
if (!v[
|
|
18467
|
+
var k = i - b;
|
|
18468
|
+
if (!v[k]) {
|
|
18474
18469
|
var _ = F << 8 >>> 0;
|
|
18475
|
-
this._fillEncodeTable(
|
|
18470
|
+
this._fillEncodeTable(k, _, g) ? x = !0 : v[k] = !0;
|
|
18476
18471
|
}
|
|
18477
18472
|
} else b <= r && (this._setEncodeSequence(this.decodeTableSeq[r - b], F), x = !0);
|
|
18478
18473
|
}
|
|
@@ -18502,11 +18497,11 @@ var Jd = Zh((O) => {
|
|
|
18502
18497
|
else g !== -1 && (x = b, b = e, g = -1);
|
|
18503
18498
|
var F = e;
|
|
18504
18499
|
if (m !== void 0 && b != e) {
|
|
18505
|
-
var
|
|
18506
|
-
if (typeof
|
|
18507
|
-
m =
|
|
18500
|
+
var k = m[b];
|
|
18501
|
+
if (typeof k == "object") {
|
|
18502
|
+
m = k;
|
|
18508
18503
|
continue;
|
|
18509
|
-
} else typeof
|
|
18504
|
+
} else typeof k == "number" ? F = k : k == null && (k = m[a], k !== void 0 && (F = k, x = b));
|
|
18510
18505
|
m = void 0;
|
|
18511
18506
|
} else if (b >= 0) {
|
|
18512
18507
|
var _ = this.encodeTable[b >> 8];
|
|
@@ -18541,14 +18536,14 @@ var Jd = Zh((O) => {
|
|
|
18541
18536
|
}
|
|
18542
18537
|
u.prototype.write = function(l) {
|
|
18543
18538
|
for (var p = n.alloc(l.length * 2), g = this.nodeIdx, m = this.prevBytes, x = this.prevBytes.length, v = -this.prevBytes.length, w, b = 0, F = 0; b < l.length; b++) {
|
|
18544
|
-
var
|
|
18539
|
+
var k = b >= 0 ? l[b] : m[b + x], w = this.decodeTables[g][k];
|
|
18545
18540
|
if (!(w >= 0)) if (w === e)
|
|
18546
18541
|
w = this.defaultCharUnicode.charCodeAt(0), b = v;
|
|
18547
18542
|
else if (w === t) {
|
|
18548
18543
|
if (b >= 3)
|
|
18549
|
-
var _ = (l[b - 3] - 129) * 12600 + (l[b - 2] - 48) * 1260 + (l[b - 1] - 129) * 10 + (
|
|
18544
|
+
var _ = (l[b - 3] - 129) * 12600 + (l[b - 2] - 48) * 1260 + (l[b - 1] - 129) * 10 + (k - 48);
|
|
18550
18545
|
else
|
|
18551
|
-
var _ = (m[b - 3 + x] - 129) * 12600 + ((b - 2 >= 0 ? l[b - 2] : m[b - 2 + x]) - 48) * 1260 + ((b - 1 >= 0 ? l[b - 1] : m[b - 1 + x]) - 129) * 10 + (
|
|
18546
|
+
var _ = (m[b - 3 + x] - 129) * 12600 + ((b - 2 >= 0 ? l[b - 2] : m[b - 2 + x]) - 48) * 1260 + ((b - 1 >= 0 ? l[b - 1] : m[b - 1 + x]) - 129) * 10 + (k - 48);
|
|
18552
18547
|
var E = f(this.gb18030.gbChars, _);
|
|
18553
18548
|
w = this.gb18030.uChars[E] + _ - this.gb18030.gbChars[E];
|
|
18554
18549
|
} else if (w <= i) {
|
|
@@ -18559,7 +18554,7 @@ var Jd = Zh((O) => {
|
|
|
18559
18554
|
w = B[I], p[F++] = w & 255, p[F++] = w >> 8;
|
|
18560
18555
|
w = B[B.length - 1];
|
|
18561
18556
|
} else
|
|
18562
|
-
throw new Error("iconv-lite internal error: invalid decoding table value " + w + " at " + g + "/" +
|
|
18557
|
+
throw new Error("iconv-lite internal error: invalid decoding table value " + w + " at " + g + "/" + k);
|
|
18563
18558
|
if (w >= 65536) {
|
|
18564
18559
|
w -= 65536;
|
|
18565
18560
|
var N = 55296 | w >> 10;
|
|
@@ -18587,7 +18582,7 @@ var Jd = Zh((O) => {
|
|
|
18587
18582
|
}
|
|
18588
18583
|
return Hi;
|
|
18589
18584
|
}
|
|
18590
|
-
const
|
|
18585
|
+
const wd = [
|
|
18591
18586
|
[
|
|
18592
18587
|
"0",
|
|
18593
18588
|
"\0",
|
|
@@ -19132,7 +19127,7 @@ var Jd = Zh((O) => {
|
|
|
19132
19127
|
"fc40",
|
|
19133
19128
|
"髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"
|
|
19134
19129
|
]
|
|
19135
|
-
],
|
|
19130
|
+
], Sd = [
|
|
19136
19131
|
[
|
|
19137
19132
|
"0",
|
|
19138
19133
|
"\0",
|
|
@@ -22830,7 +22825,7 @@ var Jd = Zh((O) => {
|
|
|
22830
22825
|
"8135f437",
|
|
22831
22826
|
""
|
|
22832
22827
|
]
|
|
22833
|
-
],
|
|
22828
|
+
], Fd = [
|
|
22834
22829
|
128,
|
|
22835
22830
|
165,
|
|
22836
22831
|
169,
|
|
@@ -23038,7 +23033,7 @@ var Jd = Zh((O) => {
|
|
|
23038
23033
|
65375,
|
|
23039
23034
|
65510,
|
|
23040
23035
|
65536
|
|
23041
|
-
],
|
|
23036
|
+
], Td = [
|
|
23042
23037
|
0,
|
|
23043
23038
|
36,
|
|
23044
23039
|
38,
|
|
@@ -23246,9 +23241,9 @@ var Jd = Zh((O) => {
|
|
|
23246
23241
|
39265,
|
|
23247
23242
|
39394,
|
|
23248
23243
|
189e3
|
|
23249
|
-
],
|
|
23250
|
-
uChars:
|
|
23251
|
-
gbChars:
|
|
23244
|
+
], kd = {
|
|
23245
|
+
uChars: Fd,
|
|
23246
|
+
gbChars: Td
|
|
23252
23247
|
}, Cd = [
|
|
23253
23248
|
[
|
|
23254
23249
|
"0",
|
|
@@ -25626,7 +25621,7 @@ var Jd = Zh((O) => {
|
|
|
25626
25621
|
"fda1",
|
|
25627
25622
|
"爻肴酵驍侯候厚后吼喉嗅帿後朽煦珝逅勛勳塤壎焄熏燻薰訓暈薨喧暄煊萱卉喙毁彙徽揮暉煇諱輝麾休携烋畦虧恤譎鷸兇凶匈洶胸黑昕欣炘痕吃屹紇訖欠欽歆吸恰洽翕興僖凞喜噫囍姬嬉希憙憘戱晞曦熙熹熺犧禧稀羲詰"
|
|
25628
25623
|
]
|
|
25629
|
-
],
|
|
25624
|
+
], ko = [
|
|
25630
25625
|
[
|
|
25631
25626
|
"0",
|
|
25632
25627
|
"\0",
|
|
@@ -26352,7 +26347,7 @@ var Jd = Zh((O) => {
|
|
|
26352
26347
|
"f9a1",
|
|
26353
26348
|
"龤灨灥糷虪蠾蠽蠿讞貜躩軉靋顳顴飌饡馫驤驦驧鬤鸕鸗齈戇欞爧虌躨钂钀钁驩驨鬮鸙爩虋讟钃鱹麷癵驫鱺鸝灩灪麤齾齉龘碁銹裏墻恒粧嫺╔╦╗╠╬╣╚╩╝╒╤╕╞╪╡╘╧╛╓╥╖╟╫╢╙╨╜║═╭╮╰╯▓"
|
|
26354
26349
|
]
|
|
26355
|
-
],
|
|
26350
|
+
], Md = [
|
|
26356
26351
|
[
|
|
26357
26352
|
"8740",
|
|
26358
26353
|
"䏰䰲䘃䖦䕸𧉧䵷䖳𧲱䳢𧳅㮕䜶䝄䱇䱀𤊿𣘗𧍒𦺋𧃒䱗𪍑䝏䗚䲅𧱬䴇䪤䚡𦬣爥𥩔𡩣𣸆𣽡晍囻"
|
|
@@ -26856,9 +26851,9 @@ var Jd = Zh((O) => {
|
|
|
26856
26851
|
"𤅟𤩹𨮏孆𨰃𡢞瓈𡦈甎瓩甞𨻙𡩋寗𨺬鎅畍畊畧畮𤾂㼄𤴓疎瑝疞疴瘂瘬癑癏癯癶𦏵皐臯㟸𦤑𦤎皡皥皷盌𦾟葢𥂝𥅽𡸜眞眦着撯𥈠睘𣊬瞯𨥤𨥨𡛁矴砉𡍶𤨒棊碯磇磓隥礮𥗠磗礴碱𧘌辸袄𨬫𦂃𢘜禆褀椂禀𥡗禝𧬹礼禩渪𧄦㺨秆𩄍秔"
|
|
26857
26852
|
]
|
|
26858
26853
|
];
|
|
26859
|
-
var qi,
|
|
26860
|
-
function
|
|
26861
|
-
return
|
|
26854
|
+
var qi, Co;
|
|
26855
|
+
function Ad() {
|
|
26856
|
+
return Co || (Co = 1, qi = {
|
|
26862
26857
|
// == Japanese/ShiftJIS ====================================================
|
|
26863
26858
|
// All japanese encodings are based on JIS X set of standards:
|
|
26864
26859
|
// JIS X 0201 - Single-byte encoding of ASCII + ¥ + Kana chars at 0xA1-0xDF.
|
|
@@ -26892,7 +26887,7 @@ var Jd = Zh((O) => {
|
|
|
26892
26887
|
shiftjis: {
|
|
26893
26888
|
type: "_dbcs",
|
|
26894
26889
|
table: function() {
|
|
26895
|
-
return
|
|
26890
|
+
return wd;
|
|
26896
26891
|
},
|
|
26897
26892
|
encodeAdd: { "¥": 92, "‾": 126 },
|
|
26898
26893
|
encodeSkipVals: [{ from: 60736, to: 63808 }]
|
|
@@ -26910,7 +26905,7 @@ var Jd = Zh((O) => {
|
|
|
26910
26905
|
eucjp: {
|
|
26911
26906
|
type: "_dbcs",
|
|
26912
26907
|
table: function() {
|
|
26913
|
-
return
|
|
26908
|
+
return Sd;
|
|
26914
26909
|
},
|
|
26915
26910
|
encodeAdd: { "¥": 92, "‾": 126 }
|
|
26916
26911
|
},
|
|
@@ -26957,7 +26952,7 @@ var Jd = Zh((O) => {
|
|
|
26957
26952
|
return Wi.concat(To);
|
|
26958
26953
|
},
|
|
26959
26954
|
gb18030: function() {
|
|
26960
|
-
return
|
|
26955
|
+
return kd;
|
|
26961
26956
|
},
|
|
26962
26957
|
encodeSkipVals: [128],
|
|
26963
26958
|
encodeAdd: { "€": 41699 }
|
|
@@ -27010,7 +27005,7 @@ var Jd = Zh((O) => {
|
|
|
27010
27005
|
cp950: {
|
|
27011
27006
|
type: "_dbcs",
|
|
27012
27007
|
table: function() {
|
|
27013
|
-
return
|
|
27008
|
+
return ko;
|
|
27014
27009
|
}
|
|
27015
27010
|
},
|
|
27016
27011
|
// Big5 has many variations and is an extension of cp950. We use Encoding Standard's as a consensus.
|
|
@@ -27018,7 +27013,7 @@ var Jd = Zh((O) => {
|
|
|
27018
27013
|
big5hkscs: {
|
|
27019
27014
|
type: "_dbcs",
|
|
27020
27015
|
table: function() {
|
|
27021
|
-
return
|
|
27016
|
+
return ko.concat(Md);
|
|
27022
27017
|
},
|
|
27023
27018
|
encodeSkipVals: [
|
|
27024
27019
|
// Although Encoding Standard says we should avoid encoding to HKSCS area (See Step 1 of
|
|
@@ -27100,10 +27095,9 @@ var Jd = Zh((O) => {
|
|
|
27100
27095
|
}), qi;
|
|
27101
27096
|
}
|
|
27102
27097
|
var Mo;
|
|
27103
|
-
function
|
|
27098
|
+
function Ed() {
|
|
27104
27099
|
return Mo || (Mo = 1, function(n) {
|
|
27105
27100
|
for (var e = qh, t = [
|
|
27106
|
-
fd(),
|
|
27107
27101
|
pd(),
|
|
27108
27102
|
dd(),
|
|
27109
27103
|
gd(),
|
|
@@ -27111,7 +27105,8 @@ var Jd = Zh((O) => {
|
|
|
27111
27105
|
md(),
|
|
27112
27106
|
vd(),
|
|
27113
27107
|
xd(),
|
|
27114
|
-
|
|
27108
|
+
bd(),
|
|
27109
|
+
Ad()
|
|
27115
27110
|
], r = 0; r < t.length; r++) {
|
|
27116
27111
|
var i = t[r];
|
|
27117
27112
|
e(n, i);
|
|
@@ -27119,7 +27114,7 @@ var Jd = Zh((O) => {
|
|
|
27119
27114
|
}(Di)), Di;
|
|
27120
27115
|
}
|
|
27121
27116
|
var Vi, Ao;
|
|
27122
|
-
function
|
|
27117
|
+
function Bd() {
|
|
27123
27118
|
if (Ao) return Vi;
|
|
27124
27119
|
Ao = 1;
|
|
27125
27120
|
var n = Bt.Buffer;
|
|
@@ -27188,10 +27183,10 @@ var Jd = Zh((O) => {
|
|
|
27188
27183
|
};
|
|
27189
27184
|
}, Vi;
|
|
27190
27185
|
}
|
|
27191
|
-
const
|
|
27186
|
+
const _d = {}, Od = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
27192
27187
|
__proto__: null,
|
|
27193
|
-
default:
|
|
27194
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
27188
|
+
default: _d
|
|
27189
|
+
}, Symbol.toStringTag, { value: "Module" })), Ld = /* @__PURE__ */ ed(Od);
|
|
27195
27190
|
(function(n) {
|
|
27196
27191
|
var e = Bt.Buffer, t = Os, r = qh, i = n.exports;
|
|
27197
27192
|
i.encodings = null, i.defaultCharUnicode = "�", i.defaultCharSingleByte = "?", i.encode = function(o, h, c) {
|
|
@@ -27210,7 +27205,7 @@ var Jd = Zh((O) => {
|
|
|
27210
27205
|
}
|
|
27211
27206
|
}, i.toEncoding = i.encode, i.fromEncoding = i.decode, i._codecDataCache = { __proto__: null }, i.getCodec = function(o) {
|
|
27212
27207
|
if (!i.encodings) {
|
|
27213
|
-
var h =
|
|
27208
|
+
var h = Ed();
|
|
27214
27209
|
i.encodings = { __proto__: null }, r(i.encodings, h);
|
|
27215
27210
|
}
|
|
27216
27211
|
for (var c = i._canonicalizeEncoding(o), u = {}; ; ) {
|
|
@@ -27243,7 +27238,7 @@ var Jd = Zh((O) => {
|
|
|
27243
27238
|
return c.bomAware && !(h && h.stripBOM === !1) && (u = new t.StripBOM(u, h)), u;
|
|
27244
27239
|
}, i.enableStreamingAPI = function(o) {
|
|
27245
27240
|
if (!i.supportsStreams) {
|
|
27246
|
-
var h =
|
|
27241
|
+
var h = Bd()(o);
|
|
27247
27242
|
i.IconvLiteEncoderStream = h.IconvLiteEncoderStream, i.IconvLiteDecoderStream = h.IconvLiteDecoderStream, i.encodeStream = function(u, f) {
|
|
27248
27243
|
return new i.IconvLiteEncoderStream(i.getEncoder(u, f), f);
|
|
27249
27244
|
}, i.decodeStream = function(u, f) {
|
|
@@ -27253,15 +27248,15 @@ var Jd = Zh((O) => {
|
|
|
27253
27248
|
};
|
|
27254
27249
|
var s;
|
|
27255
27250
|
try {
|
|
27256
|
-
s =
|
|
27251
|
+
s = Ld;
|
|
27257
27252
|
} catch {
|
|
27258
27253
|
}
|
|
27259
27254
|
s && s.Transform ? i.enableStreamingAPI(s) : i.encodeStream = i.decodeStream = function() {
|
|
27260
27255
|
throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.");
|
|
27261
27256
|
};
|
|
27262
27257
|
})(Gh);
|
|
27263
|
-
var
|
|
27264
|
-
const
|
|
27258
|
+
var Ud = Gh.exports;
|
|
27259
|
+
const Rd = /* @__PURE__ */ Kp(Ud);
|
|
27265
27260
|
class Rs extends Vo {
|
|
27266
27261
|
/**
|
|
27267
27262
|
* Creates a new instance of ShxTextShape
|
|
@@ -27269,7 +27264,8 @@ var Jd = Zh((O) => {
|
|
|
27269
27264
|
* @param shape - The shape data for this character
|
|
27270
27265
|
*/
|
|
27271
27266
|
constructor(e, t, r, i) {
|
|
27272
|
-
|
|
27267
|
+
var s;
|
|
27268
|
+
super(), this.fontSize = t, this.shape = r, this.font = i, this.code = e, i.data.header.fontType === we.BIGFONT ? this.width = this.calcWidth() : this.width = ((s = r.lastPoint) == null ? void 0 : s.x) ?? this.calcWidth();
|
|
27273
27269
|
}
|
|
27274
27270
|
calcWidth() {
|
|
27275
27271
|
const e = this.shape.bbox;
|
|
@@ -27308,9 +27304,9 @@ var Jd = Zh((O) => {
|
|
|
27308
27304
|
return e;
|
|
27309
27305
|
}
|
|
27310
27306
|
}
|
|
27311
|
-
class
|
|
27307
|
+
class Dd extends qo {
|
|
27312
27308
|
constructor(e) {
|
|
27313
|
-
super(e), this.type = "shx", this.font = new
|
|
27309
|
+
super(e), this.type = "shx", this.font = new Qp(e.data), this.data = this.font.fontData;
|
|
27314
27310
|
}
|
|
27315
27311
|
/**
|
|
27316
27312
|
* Return true if this font contains glyph of the specified character. Otherwise, return false.
|
|
@@ -27382,7 +27378,7 @@ var Jd = Zh((O) => {
|
|
|
27382
27378
|
* For an unsupported char, use "?" as a replacement.
|
|
27383
27379
|
*/
|
|
27384
27380
|
getNotFoundTextShape(e) {
|
|
27385
|
-
const t = this.font.fontData.header.fontType ===
|
|
27381
|
+
const t = this.font.fontData.header.fontType === we.BIGFONT ? "?" : "?";
|
|
27386
27382
|
return this.getCharShape(t, e);
|
|
27387
27383
|
}
|
|
27388
27384
|
/**
|
|
@@ -27391,8 +27387,8 @@ var Jd = Zh((O) => {
|
|
|
27391
27387
|
* @returns Returns encoded code of the specified character
|
|
27392
27388
|
*/
|
|
27393
27389
|
getCode(e) {
|
|
27394
|
-
if (this.font.fontData.header.fontType ===
|
|
27395
|
-
const r =
|
|
27390
|
+
if (this.font.fontData.header.fontType === we.BIGFONT && this.encoding) {
|
|
27391
|
+
const r = Rd.encode(e[0], this.encoding);
|
|
27396
27392
|
return r.length === 1 ? r[0] : r[0] << 8 | r[1];
|
|
27397
27393
|
} else
|
|
27398
27394
|
return e.charCodeAt(0);
|
|
@@ -27418,7 +27414,7 @@ var Jd = Zh((O) => {
|
|
|
27418
27414
|
*/
|
|
27419
27415
|
createFont(e) {
|
|
27420
27416
|
if (e.type === "shx")
|
|
27421
|
-
return new
|
|
27417
|
+
return new Dd(e);
|
|
27422
27418
|
if (e.type === "mesh")
|
|
27423
27419
|
return new Wp(e);
|
|
27424
27420
|
throw new Error("Unsupported font data type");
|
|
@@ -27431,7 +27427,7 @@ var Jd = Zh((O) => {
|
|
|
27431
27427
|
fontNotFound: new wa(),
|
|
27432
27428
|
/** Event triggered when a font is successfully loaded */
|
|
27433
27429
|
fontLoaded: new wa()
|
|
27434
|
-
}, this.loader = new $c(), this.loader.setResponseType("arraybuffer"), this.fileNames = [], this.fontLoader = new
|
|
27430
|
+
}, this.loader = new $c(), this.loader.setResponseType("arraybuffer"), this.fileNames = [], this.fontLoader = new Id();
|
|
27435
27431
|
}
|
|
27436
27432
|
/**
|
|
27437
27433
|
* Gets the singleton instance of the FontManager
|
|
@@ -27691,7 +27687,7 @@ var Jd = Zh((O) => {
|
|
|
27691
27687
|
return e == null ? (this.loadedFontMap.clear(), !0) : this.loadedFontMap.delete(e);
|
|
27692
27688
|
}
|
|
27693
27689
|
}
|
|
27694
|
-
class
|
|
27690
|
+
class Id {
|
|
27695
27691
|
/**
|
|
27696
27692
|
* Creates a new instance of DefaultFontLoader
|
|
27697
27693
|
*/
|
|
@@ -27787,7 +27783,7 @@ var Jd = Zh((O) => {
|
|
|
27787
27783
|
});
|
|
27788
27784
|
}
|
|
27789
27785
|
}
|
|
27790
|
-
class
|
|
27786
|
+
class Pd {
|
|
27791
27787
|
constructor() {
|
|
27792
27788
|
this.lineBasicMaterials = {}, this.meshBasicMaterials = {}, this.unsupportedTextStyles = {};
|
|
27793
27789
|
}
|
|
@@ -27811,12 +27807,13 @@ var Jd = Zh((O) => {
|
|
|
27811
27807
|
return e.isByLayer && e.layer ? `layer_${e.layer}_${e.color}` : `entity_${e.color}`;
|
|
27812
27808
|
}
|
|
27813
27809
|
}
|
|
27814
|
-
var ir = /* @__PURE__ */ ((n) => (n[n.NONE = 0] = "NONE", n[n.WORD = 1] = "WORD", n[n.STACK = 2] = "STACK", n[n.SPACE = 3] = "SPACE", n[n.NBSP = 4] = "NBSP", n[n.TABULATOR = 5] = "TABULATOR", n[n.NEW_PARAGRAPH = 6] = "NEW_PARAGRAPH", n[n.NEW_COLUMN = 7] = "NEW_COLUMN", n[n.WRAP_AT_DIMLINE = 8] = "WRAP_AT_DIMLINE", n[n.PROPERTIES_CHANGED = 9] = "PROPERTIES_CHANGED", n))(ir || {}),
|
|
27815
|
-
const
|
|
27810
|
+
var ir = /* @__PURE__ */ ((n) => (n[n.NONE = 0] = "NONE", n[n.WORD = 1] = "WORD", n[n.STACK = 2] = "STACK", n[n.SPACE = 3] = "SPACE", n[n.NBSP = 4] = "NBSP", n[n.TABULATOR = 5] = "TABULATOR", n[n.NEW_PARAGRAPH = 6] = "NEW_PARAGRAPH", n[n.NEW_COLUMN = 7] = "NEW_COLUMN", n[n.WRAP_AT_DIMLINE = 8] = "WRAP_AT_DIMLINE", n[n.PROPERTIES_CHANGED = 9] = "PROPERTIES_CHANGED", n))(ir || {}), kr = /* @__PURE__ */ ((n) => (n[n.BOTTOM = 0] = "BOTTOM", n[n.MIDDLE = 1] = "MIDDLE", n[n.TOP = 2] = "TOP", n))(kr || {}), Ge = /* @__PURE__ */ ((n) => (n[n.DEFAULT = 0] = "DEFAULT", n[n.LEFT = 1] = "LEFT", n[n.RIGHT = 2] = "RIGHT", n[n.CENTER = 3] = "CENTER", n[n.JUSTIFIED = 4] = "JUSTIFIED", n[n.DISTRIBUTED = 5] = "DISTRIBUTED", n))(Ge || {});
|
|
27811
|
+
const zd = {
|
|
27816
27812
|
c: "Ø",
|
|
27817
27813
|
d: "°",
|
|
27818
|
-
p: "±"
|
|
27819
|
-
|
|
27814
|
+
p: "±",
|
|
27815
|
+
"%": "%"
|
|
27816
|
+
}, Nd = {
|
|
27820
27817
|
l: 1,
|
|
27821
27818
|
r: 2,
|
|
27822
27819
|
c: 3,
|
|
@@ -27824,14 +27821,14 @@ var Jd = Zh((O) => {
|
|
|
27824
27821
|
d: 5
|
|
27825
27822
|
/* DISTRIBUTED */
|
|
27826
27823
|
};
|
|
27827
|
-
function
|
|
27824
|
+
function Gd(n, e = !1) {
|
|
27828
27825
|
const t = /* @__PURE__ */ new Set(), r = /\\[fF](.*?)[;|]/g;
|
|
27829
27826
|
return [...n.matchAll(r)].forEach((i) => {
|
|
27830
27827
|
let s = i[1].toLowerCase();
|
|
27831
27828
|
e && (s = s.replace(/\.(ttf|otf|woff|shx)$/, "")), t.add(s);
|
|
27832
27829
|
}), t;
|
|
27833
27830
|
}
|
|
27834
|
-
class
|
|
27831
|
+
class Hd {
|
|
27835
27832
|
/**
|
|
27836
27833
|
* Creates a new ContextStack with an initial context.
|
|
27837
27834
|
* @param initial The initial MTextContext to use as the base of the stack.
|
|
@@ -27883,7 +27880,7 @@ var Jd = Zh((O) => {
|
|
|
27883
27880
|
this.stack[this.stack.length - 1] = e;
|
|
27884
27881
|
}
|
|
27885
27882
|
}
|
|
27886
|
-
class
|
|
27883
|
+
class Wd {
|
|
27887
27884
|
/**
|
|
27888
27885
|
* Creates a new MTextParser instance
|
|
27889
27886
|
* @param content - The MText content to parse
|
|
@@ -27893,7 +27890,7 @@ var Jd = Zh((O) => {
|
|
|
27893
27890
|
constructor(e, t, r = {}) {
|
|
27894
27891
|
this.continueStroke = !1, this.inStackContext = !1, this.scanner = new Xi(e);
|
|
27895
27892
|
const i = t ?? new $r();
|
|
27896
|
-
this.ctxStack = new
|
|
27893
|
+
this.ctxStack = new Hd(i), this.yieldPropertyCommands = r.yieldPropertyCommands ?? !1, this.resetParagraphParameters = r.resetParagraphParameters ?? !1, this.mifDecoder = r.mifDecoder ?? this.decodeMultiByteChar.bind(this), this.mifCodeLength = r.mifCodeLength ?? "auto";
|
|
27897
27894
|
}
|
|
27898
27895
|
/**
|
|
27899
27896
|
* Decode multi-byte character from hex code
|
|
@@ -28274,7 +28271,7 @@ var Jd = Zh((O) => {
|
|
|
28274
28271
|
break;
|
|
28275
28272
|
case "q": {
|
|
28276
28273
|
const c = t.get();
|
|
28277
|
-
for (a =
|
|
28274
|
+
for (a = Nd[c] || 0; t.peek() === ","; )
|
|
28278
28275
|
t.consume(1);
|
|
28279
28276
|
break;
|
|
28280
28277
|
}
|
|
@@ -28411,12 +28408,17 @@ var Jd = Zh((O) => {
|
|
|
28411
28408
|
continue;
|
|
28412
28409
|
}
|
|
28413
28410
|
if (a === "%" && this.scanner.peek(1) === "%") {
|
|
28414
|
-
const h = this.scanner.peek(2).toLowerCase(), c =
|
|
28411
|
+
const h = this.scanner.peek(2).toLowerCase(), c = zd[h];
|
|
28415
28412
|
if (c) {
|
|
28416
28413
|
this.scanner.consume(3), i += c;
|
|
28417
28414
|
continue;
|
|
28418
28415
|
} else {
|
|
28419
|
-
this.scanner.
|
|
28416
|
+
const u = [h, this.scanner.peek(3), this.scanner.peek(4)];
|
|
28417
|
+
if (u.every((f) => f >= "0" && f <= "9")) {
|
|
28418
|
+
const f = Number.parseInt(u.join(""), 10);
|
|
28419
|
+
this.scanner.consume(5), i += String.fromCharCode(f);
|
|
28420
|
+
} else
|
|
28421
|
+
this.scanner.consume(3);
|
|
28420
28422
|
continue;
|
|
28421
28423
|
}
|
|
28422
28424
|
}
|
|
@@ -28867,7 +28869,7 @@ var Jd = Zh((O) => {
|
|
|
28867
28869
|
}
|
|
28868
28870
|
}
|
|
28869
28871
|
var Hr = /* @__PURE__ */ ((n) => (n[n.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", n[n.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", n[n.TOP_TO_BOTTOM = 3] = "TOP_TO_BOTTOM", n[n.BOTTOM_TO_TOP = 4] = "BOTTOM_TO_TOP", n[n.BY_STYLE = 5] = "BY_STYLE", n))(Hr || {});
|
|
28870
|
-
const
|
|
28872
|
+
const qd = /* @__PURE__ */ new A(), Vd = 1.666666;
|
|
28871
28873
|
class Is extends $r {
|
|
28872
28874
|
/**
|
|
28873
28875
|
* Creates a new RenderContext instance with optional initial values.
|
|
@@ -28901,7 +28903,7 @@ var Jd = Zh((O) => {
|
|
|
28901
28903
|
this.color.rgb = [t, r, i];
|
|
28902
28904
|
}
|
|
28903
28905
|
}
|
|
28904
|
-
class
|
|
28906
|
+
class Xd {
|
|
28905
28907
|
/**
|
|
28906
28908
|
* Construct one instance of this class and initialize some properties with default values.
|
|
28907
28909
|
* @param style Input text style
|
|
@@ -29000,7 +29002,7 @@ var Jd = Zh((O) => {
|
|
|
29000
29002
|
* The height of current line of texts
|
|
29001
29003
|
*/
|
|
29002
29004
|
get currentLineHeight() {
|
|
29003
|
-
return this.defaultLineSpaceFactor * this.currentFontSize *
|
|
29005
|
+
return this.defaultLineSpaceFactor * this.currentFontSize * Vd + this.currentMaxFontSize;
|
|
29004
29006
|
}
|
|
29005
29007
|
/**
|
|
29006
29008
|
* The maximum font size in current line. Characters in one line may have different font and font
|
|
@@ -29220,23 +29222,23 @@ var Jd = Zh((O) => {
|
|
|
29220
29222
|
} else {
|
|
29221
29223
|
const v = [], w = [];
|
|
29222
29224
|
this._hOffset = o + m, this._vOffset = h + this.currentFontSize * 0.3;
|
|
29223
|
-
for (let
|
|
29225
|
+
for (let k = 0; k < i.length; k++)
|
|
29224
29226
|
this.processChar(
|
|
29225
|
-
i[
|
|
29227
|
+
i[k],
|
|
29226
29228
|
v,
|
|
29227
29229
|
w
|
|
29228
29230
|
);
|
|
29229
29231
|
t.push(...v), r.push(...w);
|
|
29230
29232
|
const b = [], F = [];
|
|
29231
29233
|
this._hOffset = o + x, this._vOffset = h - this.currentFontSize * 0.6;
|
|
29232
|
-
for (let
|
|
29234
|
+
for (let k = 0; k < s.length; k++)
|
|
29233
29235
|
this.processChar(
|
|
29234
|
-
s[
|
|
29236
|
+
s[k],
|
|
29235
29237
|
b,
|
|
29236
29238
|
F
|
|
29237
29239
|
);
|
|
29238
29240
|
if (t.push(...b), r.push(...F), a === "/" || a === "#") {
|
|
29239
|
-
const
|
|
29241
|
+
const k = new Oe(), _ = new Float32Array([
|
|
29240
29242
|
o,
|
|
29241
29243
|
h - this.currentFontSize * 0.8,
|
|
29242
29244
|
0,
|
|
@@ -29244,10 +29246,10 @@ var Jd = Zh((O) => {
|
|
|
29244
29246
|
h - this.currentFontSize * 0.8,
|
|
29245
29247
|
0
|
|
29246
29248
|
]);
|
|
29247
|
-
|
|
29249
|
+
k.setAttribute(
|
|
29248
29250
|
"position",
|
|
29249
29251
|
new We(_, 3)
|
|
29250
|
-
),
|
|
29252
|
+
), k.setIndex(null), r.push(k);
|
|
29251
29253
|
}
|
|
29252
29254
|
this._hOffset = o + g;
|
|
29253
29255
|
}
|
|
@@ -29403,7 +29405,7 @@ var Jd = Zh((O) => {
|
|
|
29403
29405
|
if (e.forEach((r, i) => {
|
|
29404
29406
|
r.boundingBox || r.computeBoundingBox(), i === 0 ? t = r.boundingBox : t.union(r.boundingBox);
|
|
29405
29407
|
}), t) {
|
|
29406
|
-
const r = t.getSize(
|
|
29408
|
+
const r = t.getSize(qd);
|
|
29407
29409
|
switch (this.currentHorizontalAlignment) {
|
|
29408
29410
|
case Ge.LEFT:
|
|
29409
29411
|
e.forEach(
|
|
@@ -29508,7 +29510,7 @@ var Jd = Zh((O) => {
|
|
|
29508
29510
|
* ```
|
|
29509
29511
|
*/
|
|
29510
29512
|
static getFonts(e, t = !1) {
|
|
29511
|
-
return
|
|
29513
|
+
return Gd(e, t);
|
|
29512
29514
|
}
|
|
29513
29515
|
/**
|
|
29514
29516
|
* Creates a new instance of MText.
|
|
@@ -29659,8 +29661,8 @@ var Jd = Zh((O) => {
|
|
|
29659
29661
|
const r = e.width || 0;
|
|
29660
29662
|
let i = Ge.LEFT;
|
|
29661
29663
|
e.width && e.attachmentPoint && ([1, 4, 7].includes(e.attachmentPoint) ? i = Ge.LEFT : [2, 5, 8].includes(e.attachmentPoint) ? i = Ge.CENTER : [3, 6, 9].includes(e.attachmentPoint) && (i = Ge.RIGHT));
|
|
29662
|
-
let s =
|
|
29663
|
-
e.attachmentPoint && ([1, 2, 3].includes(e.attachmentPoint) ? s =
|
|
29664
|
+
let s = kr.BOTTOM;
|
|
29665
|
+
e.attachmentPoint && ([1, 2, 3].includes(e.attachmentPoint) ? s = kr.TOP : [4, 5, 6].includes(e.attachmentPoint) ? s = kr.MIDDLE : [7, 8, 9].includes(e.attachmentPoint) && (s = kr.BOTTOM));
|
|
29664
29666
|
const a = e.height || 0, o = e.lineSpaceFactor || 0.3, h = e.drawingDirection ?? Hr.LEFT_TO_RIGHT, c = {
|
|
29665
29667
|
fontSize: a,
|
|
29666
29668
|
widthFactor: e.widthFactor ?? 1,
|
|
@@ -29676,12 +29678,12 @@ var Jd = Zh((O) => {
|
|
|
29676
29678
|
value: e.widthFactor ?? 1,
|
|
29677
29679
|
isRelative: !0
|
|
29678
29680
|
}, u.align = s, u.paragraph.align = i;
|
|
29679
|
-
const f = new
|
|
29681
|
+
const f = new Xd(
|
|
29680
29682
|
t,
|
|
29681
29683
|
this.styleManager,
|
|
29682
29684
|
this.fontManager,
|
|
29683
29685
|
c
|
|
29684
|
-
), p = new
|
|
29686
|
+
), p = new Wd(e.text, u, {
|
|
29685
29687
|
resetParagraphParameters: !0,
|
|
29686
29688
|
yieldPropertyCommands: !0
|
|
29687
29689
|
}).parse();
|
|
@@ -29779,7 +29781,7 @@ var Jd = Zh((O) => {
|
|
|
29779
29781
|
}
|
|
29780
29782
|
}
|
|
29781
29783
|
}
|
|
29782
|
-
const Qi = ut.instance,
|
|
29784
|
+
const Qi = ut.instance, Yd = new Pd();
|
|
29783
29785
|
self.addEventListener("message", async (n) => {
|
|
29784
29786
|
const { type: e, id: t, data: r } = n.data;
|
|
29785
29787
|
try {
|
|
@@ -29790,12 +29792,12 @@ var Jd = Zh((O) => {
|
|
|
29790
29792
|
let o = new Ps(
|
|
29791
29793
|
i,
|
|
29792
29794
|
s,
|
|
29793
|
-
|
|
29795
|
+
Yd,
|
|
29794
29796
|
Qi,
|
|
29795
29797
|
a
|
|
29796
29798
|
);
|
|
29797
29799
|
await o.asyncDraw(), o.updateMatrixWorld(!0);
|
|
29798
|
-
const { data: h, transferableObjects: c } =
|
|
29800
|
+
const { data: h, transferableObjects: c } = Zd(o);
|
|
29799
29801
|
self.postMessage(
|
|
29800
29802
|
{
|
|
29801
29803
|
type: "render",
|
|
@@ -29851,12 +29853,12 @@ var Jd = Zh((O) => {
|
|
|
29851
29853
|
});
|
|
29852
29854
|
}
|
|
29853
29855
|
});
|
|
29854
|
-
function
|
|
29856
|
+
function Zd(n) {
|
|
29855
29857
|
const e = n.matrixWorld.clone(), t = new A(), r = new At(), i = new A();
|
|
29856
29858
|
e.decompose(t, r, i);
|
|
29857
29859
|
const s = n.box.clone();
|
|
29858
29860
|
s.applyMatrix4(e);
|
|
29859
|
-
const { children: a, transferableObjects: o } =
|
|
29861
|
+
const { children: a, transferableObjects: o } = Jd(n);
|
|
29860
29862
|
return { data: {
|
|
29861
29863
|
// Basic properties
|
|
29862
29864
|
type: "MText",
|
|
@@ -29892,7 +29894,7 @@ var Jd = Zh((O) => {
|
|
|
29892
29894
|
children: a
|
|
29893
29895
|
}, transferableObjects: o };
|
|
29894
29896
|
}
|
|
29895
|
-
function
|
|
29897
|
+
function Jd(n) {
|
|
29896
29898
|
const e = [], t = [];
|
|
29897
29899
|
return n.traverse((r) => {
|
|
29898
29900
|
if (r instanceof Un || r instanceof ms) {
|
|
@@ -29967,4 +29969,4 @@ var Jd = Zh((O) => {
|
|
|
29967
29969
|
}), { children: e, transferableObjects: t };
|
|
29968
29970
|
}
|
|
29969
29971
|
});
|
|
29970
|
-
export default
|
|
29972
|
+
export default $d();
|