@mlightcad/cad-html-core 1.7.8-preview.5 → 1.7.8
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/LICENSE +21 -21
- package/README.md +21 -21
- package/dist/cad-html-core.js +1019 -984
- package/dist/cad-html-core.umd.cjs +35 -34
- package/lib/AcExHtmlShell.d.ts +20 -1
- package/lib/AcExHtmlShell.d.ts.map +1 -1
- package/lib/AcExHtmlShell.js +20 -1
- package/lib/AcExHtmlShell.js.map +1 -1
- package/lib/AcExLayerExtents.d.ts +23 -4
- package/lib/AcExLayerExtents.d.ts.map +1 -1
- package/lib/AcExLayerExtents.js +29 -4
- package/lib/AcExLayerExtents.js.map +1 -1
- package/lib/AcExPackageBuilder.d.ts.map +1 -1
- package/lib/AcExPackageBuilder.js +1 -1
- package/lib/AcExPackageBuilder.js.map +1 -1
- package/lib/AcExPackageLoader.d.ts.map +1 -1
- package/lib/AcExPackageLoader.js +1 -1
- package/lib/AcExPackageLoader.js.map +1 -1
- package/lib/AcExPackageTypes.d.ts +5 -0
- package/lib/AcExPackageTypes.d.ts.map +1 -1
- package/lib/AcExPackageTypes.js.map +1 -1
- package/lib/AcExSnapshotBinaryCodec.d.ts.map +1 -1
- package/lib/AcExSnapshotBinaryCodec.js +37 -23
- package/lib/AcExSnapshotBinaryCodec.js.map +1 -1
- package/lib/AcExSnapshotFromSceneData.js +16 -6
- package/lib/AcExSnapshotFromSceneData.js.map +1 -1
- package/lib/AcExSnapshotTypes.d.ts +28 -0
- package/lib/AcExSnapshotTypes.d.ts.map +1 -1
- package/lib/AcExSnapshotTypes.js +6 -0
- package/lib/AcExSnapshotTypes.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +5 -5
package/dist/cad-html-core.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AcTrLinePatternShaders as co, createHatchPatternShaderMaterial as uo, createGradientHatchShaderMaterialFromUniforms as mo, wrapPatternBaseToLocalFrame as po, isHighlightOverlayDescendant as fo, isHighlightCloneDrawable as ho, AcTrBatchedLine as On, AcTrBatchedLine2 as go, AcTrBatchedMesh as Rn, AcTrBatchedPoint as wo, getSceneDrawableUserData as
|
|
1
|
+
import { AcTrLinePatternShaders as co, createHatchPatternShaderMaterial as uo, createGradientHatchShaderMaterialFromUniforms as mo, wrapPatternBaseToLocalFrame as po, isHighlightOverlayDescendant as fo, isHighlightCloneDrawable as ho, AcTrBatchedLine as On, AcTrBatchedLine2 as go, AcTrBatchedMesh as Rn, AcTrBatchedPoint as wo, getSceneDrawableUserData as yr, getMaterialMetadata as br, isBatchGeometryActive as vo, isBatchGeometryVisible as xo, AcTrViewportView as yo } from "@mlightcad/three-renderer";
|
|
2
2
|
import * as L from "three";
|
|
3
3
|
import { LineMaterial as kr } from "three/examples/jsm/lines/LineMaterial.js";
|
|
4
4
|
import { LineSegments2 as bo } from "three/examples/jsm/lines/LineSegments2.js";
|
|
5
|
-
import { AcDbSysVarManager as ko, AcDbSystemVariables as
|
|
6
|
-
var
|
|
5
|
+
import { AcDbSysVarManager as ko, AcDbSystemVariables as xt, AcCmColor as Lo, AcCmColorMethod as Ao, AcGeCircArc2d as He, AcGePoint2d as nn, TAU as ze, AcGeEllipseArc2d as Lr, AcGeLine2d as Ar, AcGeNurbsCurve as Co, AcDbTable as Eo, AcDbAttribute as Mo, AcDbDimension as So, AcDbCircle as Io, AcDbArc as Po, AcDbEllipse as rn, AcDbSpline as zo, AcDbPolyline as Bo, AcDb2dPolyline as To, AcDb3dPolyline as Fo, AcDbHatch as _o, AcDbRay as Uo, AcDbXline as Oo, AcDbSolid as Ro, AcDbTrace as Ho, AcDbFace as Do, AcDbLeader as No, AcDbMLine as $o, AcDbMLeader as Vo, AcDbText as Xo, AcDbMText as Yo, AcDbOle2Frame as Zo, AcDbRasterImage as jo, AcDbPoint as Go, AcDbLine as Ko, AcGeTol as we, FLOAT_TOL as Cr, AcGePolyline2d as Wo, AcGeLoop2d as Jo, AcDbViewport as qo } from "@mlightcad/data-model";
|
|
6
|
+
var I = Uint8Array, Z = Uint16Array, an = Int32Array, it = new I([
|
|
7
7
|
0,
|
|
8
8
|
0,
|
|
9
9
|
0,
|
|
@@ -38,7 +38,7 @@ var P = Uint8Array, Z = Uint16Array, rn = Int32Array, it = new P([
|
|
|
38
38
|
0,
|
|
39
39
|
/* impossible */
|
|
40
40
|
0
|
|
41
|
-
]), st = new
|
|
41
|
+
]), st = new I([
|
|
42
42
|
0,
|
|
43
43
|
0,
|
|
44
44
|
0,
|
|
@@ -72,16 +72,16 @@ var P = Uint8Array, Z = Uint16Array, rn = Int32Array, it = new P([
|
|
|
72
72
|
/* unused */
|
|
73
73
|
0,
|
|
74
74
|
0
|
|
75
|
-
]),
|
|
75
|
+
]), St = new I([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), Er = function(e, t) {
|
|
76
76
|
for (var n = new Z(31), r = 0; r < 31; ++r)
|
|
77
77
|
n[r] = t += 1 << e[r - 1];
|
|
78
|
-
for (var a = new
|
|
78
|
+
for (var a = new an(n[30]), r = 1; r < 30; ++r)
|
|
79
79
|
for (var o = n[r]; o < n[r + 1]; ++o)
|
|
80
80
|
a[o] = o - n[r] << 5 | r;
|
|
81
81
|
return { b: n, r: a };
|
|
82
|
-
}, Mr = Er(it, 2), Sr = Mr.b,
|
|
83
|
-
Sr[28] = 258,
|
|
84
|
-
var
|
|
82
|
+
}, Mr = Er(it, 2), Sr = Mr.b, It = Mr.r;
|
|
83
|
+
Sr[28] = 258, It[258] = 28;
|
|
84
|
+
var Ir = Er(st, 0), Qo = Ir.b, Hn = Ir.r, Pt = new Z(32768);
|
|
85
85
|
for (var S = 0; S < 32768; ++S) {
|
|
86
86
|
var oe = (S & 43690) >> 1 | (S & 21845) << 1;
|
|
87
87
|
oe = (oe & 52428) >> 2 | (oe & 13107) << 2, oe = (oe & 61680) >> 4 | (oe & 3855) << 4, Pt[S] = ((oe & 65280) >> 8 | (oe & 255) << 8) >> 1;
|
|
@@ -98,13 +98,13 @@ var q = (function(e, t, n) {
|
|
|
98
98
|
var l = 15 - t;
|
|
99
99
|
for (a = 0; a < r; ++a)
|
|
100
100
|
if (e[a])
|
|
101
|
-
for (var
|
|
102
|
-
s[Pt[u] >> l] =
|
|
101
|
+
for (var c = a << 4 | e[a], d = t - e[a], u = i[e[a] - 1]++ << d, p = u | (1 << d) - 1; u <= p; ++u)
|
|
102
|
+
s[Pt[u] >> l] = c;
|
|
103
103
|
} else
|
|
104
104
|
for (s = new Z(r), a = 0; a < r; ++a)
|
|
105
105
|
e[a] && (s[a] = Pt[i[e[a] - 1]++] >> 15 - e[a]);
|
|
106
106
|
return s;
|
|
107
|
-
}), se = new
|
|
107
|
+
}), se = new I(288);
|
|
108
108
|
for (var S = 0; S < 144; ++S)
|
|
109
109
|
se[S] = 8;
|
|
110
110
|
for (var S = 144; S < 256; ++S)
|
|
@@ -113,7 +113,7 @@ for (var S = 256; S < 280; ++S)
|
|
|
113
113
|
se[S] = 7;
|
|
114
114
|
for (var S = 280; S < 288; ++S)
|
|
115
115
|
se[S] = 8;
|
|
116
|
-
var Fe = new
|
|
116
|
+
var Fe = new I(32);
|
|
117
117
|
for (var S = 0; S < 32; ++S)
|
|
118
118
|
Fe[S] = 5;
|
|
119
119
|
var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /* @__PURE__ */ q(Fe, 5, 0), ri = /* @__PURE__ */ q(Fe, 5, 1), yt = function(e) {
|
|
@@ -123,13 +123,13 @@ var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /*
|
|
|
123
123
|
}, G = function(e, t, n) {
|
|
124
124
|
var r = t / 8 | 0;
|
|
125
125
|
return (e[r] | e[r + 1] << 8) >> (t & 7) & n;
|
|
126
|
-
},
|
|
126
|
+
}, bt = function(e, t) {
|
|
127
127
|
var n = t / 8 | 0;
|
|
128
128
|
return (e[n] | e[n + 1] << 8 | e[n + 2] << 16) >> (t & 7);
|
|
129
|
-
},
|
|
129
|
+
}, on = function(e) {
|
|
130
130
|
return (e + 7) / 8 | 0;
|
|
131
131
|
}, De = function(e, t, n) {
|
|
132
|
-
return (t == null || t < 0) && (t = 0), (n == null || n > e.length) && (n = e.length), new
|
|
132
|
+
return (t == null || t < 0) && (t = 0), (n == null || n > e.length) && (n = e.length), new I(e.subarray(t, n));
|
|
133
133
|
}, ai = [
|
|
134
134
|
"unexpected EOF",
|
|
135
135
|
"invalid block type",
|
|
@@ -151,22 +151,22 @@ var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /*
|
|
|
151
151
|
if (r.code = e, Error.captureStackTrace && Error.captureStackTrace(r, R), !n)
|
|
152
152
|
throw r;
|
|
153
153
|
return r;
|
|
154
|
-
},
|
|
154
|
+
}, Pr = function(e, t, n, r) {
|
|
155
155
|
var a = e.length, o = r ? r.length : 0;
|
|
156
156
|
if (!a || t.f && !t.l)
|
|
157
|
-
return n || new
|
|
157
|
+
return n || new I(0);
|
|
158
158
|
var i = !n, s = i || t.i != 2, l = t.i;
|
|
159
|
-
i && (n = new
|
|
160
|
-
var
|
|
159
|
+
i && (n = new I(a * 3));
|
|
160
|
+
var c = function(Ae) {
|
|
161
161
|
var Ce = n.length;
|
|
162
162
|
if (Ae > Ce) {
|
|
163
|
-
var fe = new
|
|
163
|
+
var fe = new I(Math.max(Ce * 2, Ae));
|
|
164
164
|
fe.set(n), n = fe;
|
|
165
165
|
}
|
|
166
|
-
},
|
|
166
|
+
}, d = t.f || 0, u = t.p || 0, p = t.b || 0, m = t.l, f = t.d, h = t.m, w = t.n, v = a * 8;
|
|
167
167
|
do {
|
|
168
168
|
if (!m) {
|
|
169
|
-
|
|
169
|
+
d = G(e, u, 1);
|
|
170
170
|
var g = G(e, u + 1, 3);
|
|
171
171
|
if (u += 3, g)
|
|
172
172
|
if (g == 1)
|
|
@@ -174,32 +174,32 @@ var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /*
|
|
|
174
174
|
else if (g == 2) {
|
|
175
175
|
var A = G(e, u, 31) + 257, M = G(e, u + 10, 15) + 4, k = A + G(e, u + 5, 31) + 1;
|
|
176
176
|
u += 14;
|
|
177
|
-
for (var
|
|
178
|
-
|
|
177
|
+
for (var x = new I(k), _ = new I(19), T = 0; T < M; ++T)
|
|
178
|
+
_[St[T]] = G(e, u + T * 3, 7);
|
|
179
179
|
u += M * 3;
|
|
180
|
-
for (var H = yt(
|
|
180
|
+
for (var H = yt(_), ae = (1 << H) - 1, V = q(_, H, 1), T = 0; T < k; ) {
|
|
181
181
|
var N = V[G(e, u, ae)];
|
|
182
182
|
u += N & 15;
|
|
183
183
|
var b = N >> 4;
|
|
184
184
|
if (b < 16)
|
|
185
|
-
|
|
185
|
+
x[T++] = b;
|
|
186
186
|
else {
|
|
187
|
-
var
|
|
188
|
-
for (b == 16 ? (
|
|
189
|
-
|
|
187
|
+
var U = 0, P = 0;
|
|
188
|
+
for (b == 16 ? (P = 3 + G(e, u, 3), u += 2, U = x[T - 1]) : b == 17 ? (P = 3 + G(e, u, 7), u += 3) : b == 18 && (P = 11 + G(e, u, 127), u += 7); P--; )
|
|
189
|
+
x[T++] = U;
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
var $ =
|
|
192
|
+
var $ = x.subarray(0, A), O = x.subarray(A);
|
|
193
193
|
h = yt($), w = yt(O), m = q($, h, 1), f = q(O, w, 1);
|
|
194
194
|
} else
|
|
195
195
|
R(1);
|
|
196
196
|
else {
|
|
197
|
-
var b =
|
|
197
|
+
var b = on(u) + 4, y = e[b - 4] | e[b - 3] << 8, E = b + y;
|
|
198
198
|
if (E > a) {
|
|
199
199
|
l && R(0);
|
|
200
200
|
break;
|
|
201
201
|
}
|
|
202
|
-
s &&
|
|
202
|
+
s && c(p + y), n.set(e.subarray(b, E), p), t.b = p += y, t.p = u = E * 8, t.f = d;
|
|
203
203
|
continue;
|
|
204
204
|
}
|
|
205
205
|
if (u > v) {
|
|
@@ -207,14 +207,14 @@ var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /*
|
|
|
207
207
|
break;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
s &&
|
|
210
|
+
s && c(p + 131072);
|
|
211
211
|
for (var Le = (1 << h) - 1, j = (1 << w) - 1, Q = u; ; Q = u) {
|
|
212
|
-
var
|
|
213
|
-
if (u +=
|
|
212
|
+
var U = m[bt(e, u) & Le], X = U >> 4;
|
|
213
|
+
if (u += U & 15, u > v) {
|
|
214
214
|
l && R(0);
|
|
215
215
|
break;
|
|
216
216
|
}
|
|
217
|
-
if (
|
|
217
|
+
if (U || R(2), X < 256)
|
|
218
218
|
n[p++] = X;
|
|
219
219
|
else if (X == 256) {
|
|
220
220
|
Q = u, m = null;
|
|
@@ -225,18 +225,18 @@ var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /*
|
|
|
225
225
|
var T = X - 257, z = it[T];
|
|
226
226
|
Y = G(e, u, (1 << z) - 1) + Sr[T], u += z;
|
|
227
227
|
}
|
|
228
|
-
var W = f[
|
|
228
|
+
var W = f[bt(e, u) & j], me = W >> 4;
|
|
229
229
|
W || R(3), u += W & 15;
|
|
230
230
|
var O = Qo[me];
|
|
231
231
|
if (me > 3) {
|
|
232
232
|
var z = st[me];
|
|
233
|
-
O +=
|
|
233
|
+
O += bt(e, u) & (1 << z) - 1, u += z;
|
|
234
234
|
}
|
|
235
235
|
if (u > v) {
|
|
236
236
|
l && R(0);
|
|
237
237
|
break;
|
|
238
238
|
}
|
|
239
|
-
s &&
|
|
239
|
+
s && c(p + 131072);
|
|
240
240
|
var pe = p + Y;
|
|
241
241
|
if (p < O) {
|
|
242
242
|
var Ye = o - O, Ze = Math.min(O, pe);
|
|
@@ -247,8 +247,8 @@ var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /*
|
|
|
247
247
|
n[p] = n[p - O];
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
t.l = m, t.p = Q, t.b = p, t.f =
|
|
251
|
-
} while (!
|
|
250
|
+
t.l = m, t.p = Q, t.b = p, t.f = d, m && (d = 1, t.m = h, t.d = f, t.n = w);
|
|
251
|
+
} while (!d);
|
|
252
252
|
return p != n.length && i ? De(n, 0, p) : n.subarray(0, p);
|
|
253
253
|
}, ee = function(e, t, n) {
|
|
254
254
|
n <<= t & 7;
|
|
@@ -258,25 +258,25 @@ var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /*
|
|
|
258
258
|
n <<= t & 7;
|
|
259
259
|
var r = t / 8 | 0;
|
|
260
260
|
e[r] |= n, e[r + 1] |= n >> 8, e[r + 2] |= n >> 16;
|
|
261
|
-
},
|
|
261
|
+
}, kt = function(e, t) {
|
|
262
262
|
for (var n = [], r = 0; r < e.length; ++r)
|
|
263
263
|
e[r] && n.push({ s: r, f: e[r] });
|
|
264
264
|
var a = n.length, o = n.slice();
|
|
265
265
|
if (!a)
|
|
266
266
|
return { t: Br, l: 0 };
|
|
267
267
|
if (a == 1) {
|
|
268
|
-
var i = new
|
|
268
|
+
var i = new I(n[0].s + 1);
|
|
269
269
|
return i[n[0].s] = 1, { t: i, l: 1 };
|
|
270
270
|
}
|
|
271
271
|
n.sort(function(E, A) {
|
|
272
272
|
return E.f - A.f;
|
|
273
273
|
}), n.push({ s: -1, f: 25001 });
|
|
274
|
-
var s = n[0], l = n[1],
|
|
275
|
-
for (n[0] = { s: -1, f: s.f + l.f, l: s, r: l };
|
|
276
|
-
s = n[n[
|
|
274
|
+
var s = n[0], l = n[1], c = 0, d = 1, u = 2;
|
|
275
|
+
for (n[0] = { s: -1, f: s.f + l.f, l: s, r: l }; d != a - 1; )
|
|
276
|
+
s = n[n[c].f < n[u].f ? c++ : u++], l = n[c != d && n[c].f < n[u].f ? c++ : u++], n[d++] = { s: -1, f: s.f + l.f, l: s, r: l };
|
|
277
277
|
for (var p = o[0].s, r = 1; r < a; ++r)
|
|
278
278
|
o[r].s > p && (p = o[r].s);
|
|
279
|
-
var m = new Z(p + 1), f =
|
|
279
|
+
var m = new Z(p + 1), f = zt(n[d - 1], m, 0);
|
|
280
280
|
if (f > t) {
|
|
281
281
|
var r = 0, h = 0, w = f - t, v = 1 << w;
|
|
282
282
|
for (o.sort(function(A, M) {
|
|
@@ -293,14 +293,14 @@ var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /*
|
|
|
293
293
|
m[b] < t ? h -= 1 << t - m[b]++ - 1 : ++r;
|
|
294
294
|
}
|
|
295
295
|
for (; r >= 0 && h; --r) {
|
|
296
|
-
var
|
|
297
|
-
m[
|
|
296
|
+
var y = o[r].s;
|
|
297
|
+
m[y] == t && (--m[y], ++h);
|
|
298
298
|
}
|
|
299
299
|
f = t;
|
|
300
300
|
}
|
|
301
|
-
return { t: new
|
|
302
|
-
},
|
|
303
|
-
return e.s == -1 ? Math.max(
|
|
301
|
+
return { t: new I(m), l: f };
|
|
302
|
+
}, zt = function(e, t, n) {
|
|
303
|
+
return e.s == -1 ? Math.max(zt(e.l, t, n + 1), zt(e.r, t, n + 1)) : t[e.s] = n;
|
|
304
304
|
}, Dn = function(e) {
|
|
305
305
|
for (var t = e.length; t && !e[--t]; )
|
|
306
306
|
;
|
|
@@ -329,76 +329,76 @@ var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /*
|
|
|
329
329
|
n += e[r] * t[r];
|
|
330
330
|
return n;
|
|
331
331
|
}, zr = function(e, t, n) {
|
|
332
|
-
var r = n.length, a =
|
|
332
|
+
var r = n.length, a = on(t + 2);
|
|
333
333
|
e[a] = r & 255, e[a + 1] = r >> 8, e[a + 2] = e[a] ^ 255, e[a + 3] = e[a + 1] ^ 255;
|
|
334
334
|
for (var o = 0; o < r; ++o)
|
|
335
335
|
e[a + o + 4] = n[o];
|
|
336
336
|
return (a + 4 + r) * 8;
|
|
337
|
-
}, Nn = function(e, t, n, r, a, o, i, s, l,
|
|
338
|
-
ee(t,
|
|
339
|
-
for (var u =
|
|
337
|
+
}, Nn = function(e, t, n, r, a, o, i, s, l, c, d) {
|
|
338
|
+
ee(t, d++, n), ++a[256];
|
|
339
|
+
for (var u = kt(a, 15), p = u.t, m = u.l, f = kt(o, 15), h = f.t, w = f.l, v = Dn(p), g = v.c, b = v.n, y = Dn(h), E = y.c, A = y.n, M = new Z(19), k = 0; k < g.length; ++k)
|
|
340
340
|
++M[g[k] & 31];
|
|
341
341
|
for (var k = 0; k < E.length; ++k)
|
|
342
342
|
++M[E[k] & 31];
|
|
343
|
-
for (var
|
|
343
|
+
for (var x = kt(M, 7), _ = x.t, T = x.l, H = 19; H > 4 && !_[St[H - 1]]; --H)
|
|
344
344
|
;
|
|
345
|
-
var ae =
|
|
345
|
+
var ae = c + 5 << 3, V = Me(a, se) + Me(o, Fe) + i, N = Me(a, p) + Me(o, h) + i + 14 + 3 * H + Me(M, _) + 2 * M[16] + 3 * M[17] + 7 * M[18];
|
|
346
346
|
if (l >= 0 && ae <= V && ae <= N)
|
|
347
|
-
return zr(t,
|
|
348
|
-
var
|
|
349
|
-
if (ee(t,
|
|
350
|
-
|
|
351
|
-
var Le = q(
|
|
352
|
-
ee(t,
|
|
347
|
+
return zr(t, d, e.subarray(l, l + c));
|
|
348
|
+
var U, P, $, O;
|
|
349
|
+
if (ee(t, d, 1 + (N < V)), d += 2, N < V) {
|
|
350
|
+
U = q(p, m, 0), P = p, $ = q(h, w, 0), O = h;
|
|
351
|
+
var Le = q(_, T, 0);
|
|
352
|
+
ee(t, d, b - 257), ee(t, d + 5, A - 1), ee(t, d + 10, H - 4), d += 14;
|
|
353
353
|
for (var k = 0; k < H; ++k)
|
|
354
|
-
ee(t,
|
|
355
|
-
|
|
354
|
+
ee(t, d + 3 * k, _[St[k]]);
|
|
355
|
+
d += 3 * H;
|
|
356
356
|
for (var j = [g, E], Q = 0; Q < 2; ++Q)
|
|
357
357
|
for (var X = j[Q], k = 0; k < X.length; ++k) {
|
|
358
358
|
var Y = X[k] & 31;
|
|
359
|
-
ee(t,
|
|
359
|
+
ee(t, d, Le[Y]), d += _[Y], Y > 15 && (ee(t, d, X[k] >> 5 & 127), d += X[k] >> 12);
|
|
360
360
|
}
|
|
361
361
|
} else
|
|
362
|
-
|
|
362
|
+
U = ei, P = se, $ = ni, O = Fe;
|
|
363
363
|
for (var k = 0; k < s; ++k) {
|
|
364
364
|
var z = r[k];
|
|
365
365
|
if (z > 255) {
|
|
366
366
|
var Y = z >> 18 & 31;
|
|
367
|
-
Ee(t,
|
|
367
|
+
Ee(t, d, U[Y + 257]), d += P[Y + 257], Y > 7 && (ee(t, d, z >> 23 & 31), d += it[Y]);
|
|
368
368
|
var W = z & 31;
|
|
369
|
-
Ee(t,
|
|
369
|
+
Ee(t, d, $[W]), d += O[W], W > 3 && (Ee(t, d, z >> 5 & 8191), d += st[W]);
|
|
370
370
|
} else
|
|
371
|
-
Ee(t,
|
|
371
|
+
Ee(t, d, U[z]), d += P[z];
|
|
372
372
|
}
|
|
373
|
-
return Ee(t,
|
|
374
|
-
}, oi = /* @__PURE__ */ new
|
|
375
|
-
var i = o.z || e.length, s = new
|
|
373
|
+
return Ee(t, d, U[256]), d + P[256];
|
|
374
|
+
}, oi = /* @__PURE__ */ new an([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), Br = /* @__PURE__ */ new I(0), ii = function(e, t, n, r, a, o) {
|
|
375
|
+
var i = o.z || e.length, s = new I(r + i + 5 * (1 + Math.ceil(i / 7e3)) + a), l = s.subarray(r, s.length - a), c = o.l, d = (o.r || 0) & 7;
|
|
376
376
|
if (t) {
|
|
377
|
-
|
|
378
|
-
for (var u = oi[t - 1], p = u >> 13, m = u & 8191, f = (1 << n) - 1, h = o.p || new Z(32768), w = o.h || new Z(f + 1), v = Math.ceil(n / 3), g = 2 * v, b = function(
|
|
379
|
-
return (e[
|
|
380
|
-
},
|
|
381
|
-
var ae = b(
|
|
382
|
-
if (h[V] = N, w[ae] = V, T <=
|
|
383
|
-
var
|
|
384
|
-
if ((M > 7e3 ||
|
|
385
|
-
|
|
386
|
-
for (var
|
|
387
|
-
E[
|
|
388
|
-
for (var
|
|
389
|
-
A[
|
|
377
|
+
d && (l[0] = o.r >> 3);
|
|
378
|
+
for (var u = oi[t - 1], p = u >> 13, m = u & 8191, f = (1 << n) - 1, h = o.p || new Z(32768), w = o.h || new Z(f + 1), v = Math.ceil(n / 3), g = 2 * v, b = function(vt) {
|
|
379
|
+
return (e[vt] ^ e[vt + 1] << v ^ e[vt + 2] << g) & f;
|
|
380
|
+
}, y = new an(25e3), E = new Z(288), A = new Z(32), M = 0, k = 0, x = o.i || 0, _ = 0, T = o.w || 0, H = 0; x + 2 < i; ++x) {
|
|
381
|
+
var ae = b(x), V = x & 32767, N = w[ae];
|
|
382
|
+
if (h[V] = N, w[ae] = V, T <= x) {
|
|
383
|
+
var U = i - x;
|
|
384
|
+
if ((M > 7e3 || _ > 24576) && (U > 423 || !c)) {
|
|
385
|
+
d = Nn(e, l, 0, y, E, A, k, _, H, x - H, d), _ = M = k = 0, H = x;
|
|
386
|
+
for (var P = 0; P < 286; ++P)
|
|
387
|
+
E[P] = 0;
|
|
388
|
+
for (var P = 0; P < 30; ++P)
|
|
389
|
+
A[P] = 0;
|
|
390
390
|
}
|
|
391
391
|
var $ = 2, O = 0, Le = m, j = V - N & 32767;
|
|
392
|
-
if (
|
|
393
|
-
for (var Q = Math.min(p,
|
|
394
|
-
if (e[
|
|
395
|
-
for (var z = 0; z < Y && e[
|
|
392
|
+
if (U > 2 && ae == b(x - j))
|
|
393
|
+
for (var Q = Math.min(p, U) - 1, X = Math.min(32767, x), Y = Math.min(258, U); j <= X && --Le && V != N; ) {
|
|
394
|
+
if (e[x + $] == e[x + $ - j]) {
|
|
395
|
+
for (var z = 0; z < Y && e[x + z] == e[x + z - j]; ++z)
|
|
396
396
|
;
|
|
397
397
|
if (z > $) {
|
|
398
398
|
if ($ = z, O = j, z > Q)
|
|
399
399
|
break;
|
|
400
|
-
for (var W = Math.min(j, z - 2), me = 0,
|
|
401
|
-
var pe =
|
|
400
|
+
for (var W = Math.min(j, z - 2), me = 0, P = 0; P < W; ++P) {
|
|
401
|
+
var pe = x - j + P & 32767, Ye = h[pe], Ze = pe - Ye & 32767;
|
|
402
402
|
Ze > me && (me = Ze, N = pe);
|
|
403
403
|
}
|
|
404
404
|
}
|
|
@@ -406,24 +406,24 @@ var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /*
|
|
|
406
406
|
V = N, N = h[V], j += V - N & 32767;
|
|
407
407
|
}
|
|
408
408
|
if (O) {
|
|
409
|
-
|
|
410
|
-
var Ae =
|
|
411
|
-
k += it[Ae] + st[Ce], ++E[257 + Ae], ++A[Ce], T =
|
|
409
|
+
y[_++] = 268435456 | It[$] << 18 | Hn[O];
|
|
410
|
+
var Ae = It[$] & 31, Ce = Hn[O] & 31;
|
|
411
|
+
k += it[Ae] + st[Ce], ++E[257 + Ae], ++A[Ce], T = x + $, ++M;
|
|
412
412
|
} else
|
|
413
|
-
|
|
413
|
+
y[_++] = e[x], ++E[e[x]];
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
for (
|
|
417
|
-
|
|
418
|
-
|
|
416
|
+
for (x = Math.max(x, T); x < i; ++x)
|
|
417
|
+
y[_++] = e[x], ++E[e[x]];
|
|
418
|
+
d = Nn(e, l, c, y, E, A, k, _, H, x - H, d), c || (o.r = d & 7 | l[d / 8 | 0] << 3, d -= 7, o.h = w, o.p = h, o.i = x, o.w = T);
|
|
419
419
|
} else {
|
|
420
|
-
for (var
|
|
421
|
-
var fe =
|
|
422
|
-
fe >= i && (l[
|
|
420
|
+
for (var x = o.w || 0; x < i + c; x += 65535) {
|
|
421
|
+
var fe = x + 65535;
|
|
422
|
+
fe >= i && (l[d / 8 | 0] = c, fe = i), d = zr(l, d + 1, e.subarray(x, fe));
|
|
423
423
|
}
|
|
424
424
|
o.i = i;
|
|
425
425
|
}
|
|
426
|
-
return De(s, 0, r +
|
|
426
|
+
return De(s, 0, r + on(d) + a);
|
|
427
427
|
}, si = /* @__PURE__ */ (function() {
|
|
428
428
|
for (var e = new Int32Array(256), t = 0; t < 256; ++t) {
|
|
429
429
|
for (var n = t, r = 9; --r; )
|
|
@@ -445,11 +445,11 @@ var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /*
|
|
|
445
445
|
};
|
|
446
446
|
}, Fr = function(e, t, n, r, a) {
|
|
447
447
|
if (!a && (a = { l: 1 }, t.dictionary)) {
|
|
448
|
-
var o = t.dictionary.subarray(-32768), i = new
|
|
448
|
+
var o = t.dictionary.subarray(-32768), i = new I(o.length + e.length);
|
|
449
449
|
i.set(o), i.set(e, o.length), e = i, a.w = o.length;
|
|
450
450
|
}
|
|
451
451
|
return ii(e, t.level == null ? 6 : t.level, t.mem == null ? a.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(e.length))) * 1.5) : 20 : 12 + t.mem, n, r, a);
|
|
452
|
-
},
|
|
452
|
+
}, _r = function(e, t) {
|
|
453
453
|
var n = {};
|
|
454
454
|
for (var r in e)
|
|
455
455
|
n[r] = e[r];
|
|
@@ -460,7 +460,7 @@ var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /*
|
|
|
460
460
|
return e[t] | e[t + 1] << 8;
|
|
461
461
|
}, K = function(e, t) {
|
|
462
462
|
return (e[t] | e[t + 1] << 8 | e[t + 2] << 16 | e[t + 3] << 24) >>> 0;
|
|
463
|
-
},
|
|
463
|
+
}, Lt = function(e, t) {
|
|
464
464
|
return K(e, t) + K(e, t + 4) * 4294967296;
|
|
465
465
|
}, B = function(e, t, n) {
|
|
466
466
|
for (; n; ++t)
|
|
@@ -489,7 +489,7 @@ function mi(e, t) {
|
|
|
489
489
|
return Fr(e, t || {}, 0, 0);
|
|
490
490
|
}
|
|
491
491
|
function pi(e, t) {
|
|
492
|
-
return
|
|
492
|
+
return Pr(e, { i: 2 }, t && t.out, t && t.dictionary);
|
|
493
493
|
}
|
|
494
494
|
function fi(e, t) {
|
|
495
495
|
t || (t = {});
|
|
@@ -500,16 +500,16 @@ function fi(e, t) {
|
|
|
500
500
|
}
|
|
501
501
|
function hi(e, t) {
|
|
502
502
|
var n = ci(e);
|
|
503
|
-
return n + 8 > e.length && R(6, "invalid gzip data"),
|
|
503
|
+
return n + 8 > e.length && R(6, "invalid gzip data"), Pr(e.subarray(n, -8), { i: 2 }, new I(di(e)), t);
|
|
504
504
|
}
|
|
505
|
-
var
|
|
505
|
+
var Ur = function(e, t, n, r) {
|
|
506
506
|
for (var a in e) {
|
|
507
507
|
var o = e[a], i = t + a, s = r;
|
|
508
|
-
Array.isArray(o) && (s =
|
|
508
|
+
Array.isArray(o) && (s = _r(r, o[1]), o = o[0]), o instanceof I ? n[i] = [o, s] : (n[i += "/"] = [new I(0), s], Ur(o, i, n, r));
|
|
509
509
|
}
|
|
510
|
-
}, $n = typeof TextEncoder < "u" && /* @__PURE__ */ new TextEncoder(),
|
|
510
|
+
}, $n = typeof TextEncoder < "u" && /* @__PURE__ */ new TextEncoder(), Bt = typeof TextDecoder < "u" && /* @__PURE__ */ new TextDecoder(), gi = 0;
|
|
511
511
|
try {
|
|
512
|
-
|
|
512
|
+
Bt.decode(Br, { stream: !0 }), gi = 1;
|
|
513
513
|
} catch {
|
|
514
514
|
}
|
|
515
515
|
var wi = function(e) {
|
|
@@ -524,11 +524,11 @@ function ve(e, t) {
|
|
|
524
524
|
var n;
|
|
525
525
|
if ($n)
|
|
526
526
|
return $n.encode(e);
|
|
527
|
-
for (var r = e.length, a = new
|
|
528
|
-
a[o++] =
|
|
527
|
+
for (var r = e.length, a = new I(e.length + (e.length >> 1)), o = 0, i = function(c) {
|
|
528
|
+
a[o++] = c;
|
|
529
529
|
}, n = 0; n < r; ++n) {
|
|
530
530
|
if (o + 5 > a.length) {
|
|
531
|
-
var s = new
|
|
531
|
+
var s = new I(o + 8 + (r - n << 1));
|
|
532
532
|
s.set(a), a = s;
|
|
533
533
|
}
|
|
534
534
|
var l = e.charCodeAt(n);
|
|
@@ -536,28 +536,28 @@ function ve(e, t) {
|
|
|
536
536
|
}
|
|
537
537
|
return De(a, 0, o);
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function sn(e, t) {
|
|
540
540
|
if (t) {
|
|
541
541
|
for (var n = "", r = 0; r < e.length; r += 16384)
|
|
542
542
|
n += String.fromCharCode.apply(null, e.subarray(r, r + 16384));
|
|
543
543
|
return n;
|
|
544
544
|
} else {
|
|
545
|
-
if (
|
|
546
|
-
return
|
|
545
|
+
if (Bt)
|
|
546
|
+
return Bt.decode(e);
|
|
547
547
|
var a = wi(e), o = a.s, n = a.r;
|
|
548
548
|
return n.length && R(8), o;
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
551
|
var vi = function(e, t) {
|
|
552
552
|
return t + 30 + J(e, t + 26) + J(e, t + 28);
|
|
553
|
-
},
|
|
554
|
-
var r = J(e, t + 28), a =
|
|
555
|
-
return [J(e, t + 10), l,
|
|
556
|
-
},
|
|
553
|
+
}, xi = function(e, t, n) {
|
|
554
|
+
var r = J(e, t + 28), a = sn(e.subarray(t + 46, t + 46 + r), !(J(e, t + 8) & 2048)), o = t + 46 + r, i = K(e, t + 20), s = n && i == 4294967295 ? yi(e, o) : [i, K(e, t + 24), K(e, t + 42)], l = s[0], c = s[1], d = s[2];
|
|
555
|
+
return [J(e, t + 10), l, c, a, o + J(e, t + 30) + J(e, t + 32), d];
|
|
556
|
+
}, yi = function(e, t) {
|
|
557
557
|
for (; J(e, t) != 1; t += 4 + J(e, t + 2))
|
|
558
558
|
;
|
|
559
|
-
return [
|
|
560
|
-
},
|
|
559
|
+
return [Lt(e, t + 12), Lt(e, t + 4), Lt(e, t + 20)];
|
|
560
|
+
}, Tt = function(e) {
|
|
561
561
|
var t = 0;
|
|
562
562
|
if (e)
|
|
563
563
|
for (var n in e) {
|
|
@@ -566,28 +566,28 @@ var vi = function(e, t) {
|
|
|
566
566
|
}
|
|
567
567
|
return t;
|
|
568
568
|
}, Vn = function(e, t, n, r, a, o, i, s) {
|
|
569
|
-
var l = r.length,
|
|
569
|
+
var l = r.length, c = n.extra, d = s && s.length, u = Tt(c);
|
|
570
570
|
B(e, t, i != null ? 33639248 : 67324752), t += 4, i != null && (e[t++] = 20, e[t++] = n.os), e[t] = 20, t += 2, e[t++] = n.flag << 1 | (o < 0 && 8), e[t++] = a && 8, e[t++] = n.compression & 255, e[t++] = n.compression >> 8;
|
|
571
571
|
var p = new Date(n.mtime == null ? Date.now() : n.mtime), m = p.getFullYear() - 1980;
|
|
572
|
-
if ((m < 0 || m > 119) && R(10), B(e, t, m << 25 | p.getMonth() + 1 << 21 | p.getDate() << 16 | p.getHours() << 11 | p.getMinutes() << 5 | p.getSeconds() >> 1), t += 4, o != -1 && (B(e, t, n.crc), B(e, t + 4, o < 0 ? -o - 2 : o), B(e, t + 8, n.size)), B(e, t + 12, l), B(e, t + 14, u), t += 16, i != null && (B(e, t,
|
|
573
|
-
for (var f in
|
|
574
|
-
var h =
|
|
572
|
+
if ((m < 0 || m > 119) && R(10), B(e, t, m << 25 | p.getMonth() + 1 << 21 | p.getDate() << 16 | p.getHours() << 11 | p.getMinutes() << 5 | p.getSeconds() >> 1), t += 4, o != -1 && (B(e, t, n.crc), B(e, t + 4, o < 0 ? -o - 2 : o), B(e, t + 8, n.size)), B(e, t + 12, l), B(e, t + 14, u), t += 16, i != null && (B(e, t, d), B(e, t + 6, n.attrs), B(e, t + 10, i), t += 14), e.set(r, t), t += l, u)
|
|
573
|
+
for (var f in c) {
|
|
574
|
+
var h = c[f], w = h.length;
|
|
575
575
|
B(e, t, +f), B(e, t + 2, w), e.set(h, t + 4), t += 4 + w;
|
|
576
576
|
}
|
|
577
|
-
return
|
|
577
|
+
return d && (e.set(s, t), t += d), t;
|
|
578
578
|
}, bi = function(e, t, n, r, a) {
|
|
579
579
|
B(e, t, 101010256), B(e, t + 8, n), B(e, t + 10, n), B(e, t + 12, r), B(e, t + 16, a);
|
|
580
580
|
};
|
|
581
581
|
function ki(e, t) {
|
|
582
582
|
t || (t = {});
|
|
583
583
|
var n = {}, r = [];
|
|
584
|
-
|
|
584
|
+
Ur(e, "", n, t);
|
|
585
585
|
var a = 0, o = 0;
|
|
586
586
|
for (var i in n) {
|
|
587
|
-
var s = n[i], l = s[0],
|
|
587
|
+
var s = n[i], l = s[0], c = s[1], d = c.level == 0 ? 0 : 8, u = ve(i), p = u.length, m = c.comment, f = m && ve(m), h = f && f.length, w = Tt(c.extra);
|
|
588
588
|
p > 65535 && R(11);
|
|
589
|
-
var v =
|
|
590
|
-
b.p(l), r.push(
|
|
589
|
+
var v = d ? mi(l, c) : l, g = v.length, b = Tr();
|
|
590
|
+
b.p(l), r.push(_r(c, {
|
|
591
591
|
size: l.length,
|
|
592
592
|
crc: b.d(),
|
|
593
593
|
c: v,
|
|
@@ -595,16 +595,16 @@ function ki(e, t) {
|
|
|
595
595
|
m: f,
|
|
596
596
|
u: p != i.length || f && m.length != h,
|
|
597
597
|
o: a,
|
|
598
|
-
compression:
|
|
598
|
+
compression: d
|
|
599
599
|
})), a += 30 + p + w + g, o += 76 + 2 * (p + w) + (h || 0) + g;
|
|
600
600
|
}
|
|
601
|
-
for (var
|
|
601
|
+
for (var y = new I(o + 22), E = a, A = o - a, M = 0; M < r.length; ++M) {
|
|
602
602
|
var u = r[M];
|
|
603
|
-
Vn(
|
|
604
|
-
var k = 30 + u.f.length +
|
|
605
|
-
|
|
603
|
+
Vn(y, u.o, u, u.f, u.u, u.c.length);
|
|
604
|
+
var k = 30 + u.f.length + Tt(u.extra);
|
|
605
|
+
y.set(u.c, u.o + k), Vn(y, a, u, u.f, u.u, u.c.length, u.o, u.m), a += 16 + k + (u.m ? u.m.length : 0);
|
|
606
606
|
}
|
|
607
|
-
return bi(
|
|
607
|
+
return bi(y, a, r.length, A, E), y;
|
|
608
608
|
}
|
|
609
609
|
function Li(e, t) {
|
|
610
610
|
for (var n = {}, r = e.length - 22; K(e, r) != 101010256; --r)
|
|
@@ -618,13 +618,13 @@ function Li(e, t) {
|
|
|
618
618
|
i = K(e, s) == 101075792, i && (a = K(e, s + 32), o = K(e, s + 48));
|
|
619
619
|
}
|
|
620
620
|
for (var l = 0; l < a; ++l) {
|
|
621
|
-
var
|
|
622
|
-
o = f,
|
|
621
|
+
var c = xi(e, o, i), d = c[0], u = c[1], p = c[2], m = c[3], f = c[4], h = c[5], w = vi(e, h);
|
|
622
|
+
o = f, d ? d == 8 ? n[m] = pi(e.subarray(w, w + u), { out: new I(p) }) : R(14, "unknown compression type " + d) : n[m] = De(e, w, w + u);
|
|
623
623
|
}
|
|
624
624
|
return n;
|
|
625
625
|
}
|
|
626
626
|
const Ai = 512 * 1024 * 1024, Xn = 512 * 1024 * 1024;
|
|
627
|
-
class
|
|
627
|
+
class ln {
|
|
628
628
|
constructor() {
|
|
629
629
|
this.chunks = [], this.length = 0;
|
|
630
630
|
}
|
|
@@ -692,7 +692,7 @@ class sn {
|
|
|
692
692
|
return t;
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
|
-
class
|
|
695
|
+
class cn {
|
|
696
696
|
constructor(t) {
|
|
697
697
|
this.bytes = t, this.offset = 0;
|
|
698
698
|
}
|
|
@@ -752,7 +752,7 @@ class ln {
|
|
|
752
752
|
return "";
|
|
753
753
|
if (t > Ai)
|
|
754
754
|
throw new Error("Binary string exceeds size limit");
|
|
755
|
-
return
|
|
755
|
+
return sn(this.readBytes(t));
|
|
756
756
|
}
|
|
757
757
|
readJson() {
|
|
758
758
|
const t = this.readString();
|
|
@@ -798,42 +798,42 @@ class ln {
|
|
|
798
798
|
return new Uint8Array(r).set(n), new Uint32Array(r);
|
|
799
799
|
}
|
|
800
800
|
}
|
|
801
|
-
const D = 4,
|
|
802
|
-
let
|
|
803
|
-
function
|
|
804
|
-
|
|
801
|
+
const D = 4, Ft = "gzip", Ci = 512 * 1024 * 1024, _t = 256 * 1024 * 1024;
|
|
802
|
+
let _e = null;
|
|
803
|
+
function Gd(e) {
|
|
804
|
+
_e = e;
|
|
805
805
|
}
|
|
806
|
-
function
|
|
806
|
+
function Ue(e) {
|
|
807
807
|
return {
|
|
808
|
-
bytes:
|
|
809
|
-
compression:
|
|
808
|
+
bytes: _e ? _e.gzipSync(e) : fi(e),
|
|
809
|
+
compression: Ft
|
|
810
810
|
};
|
|
811
811
|
}
|
|
812
812
|
async function Or(e) {
|
|
813
|
-
if (
|
|
813
|
+
if (_e)
|
|
814
814
|
return {
|
|
815
|
-
bytes: await
|
|
816
|
-
compression:
|
|
815
|
+
bytes: await _e.gzip(e),
|
|
816
|
+
compression: Ft
|
|
817
817
|
};
|
|
818
818
|
if (typeof CompressionStream > "u")
|
|
819
|
-
return
|
|
819
|
+
return Ue(e);
|
|
820
820
|
try {
|
|
821
821
|
const t = new Uint8Array(e.byteLength);
|
|
822
822
|
t.set(e);
|
|
823
823
|
const n = new Blob([t]).stream().pipeThrough(new CompressionStream("gzip"));
|
|
824
824
|
return {
|
|
825
825
|
bytes: new Uint8Array(await new Response(n).arrayBuffer()),
|
|
826
|
-
compression:
|
|
826
|
+
compression: Ft
|
|
827
827
|
};
|
|
828
828
|
} catch {
|
|
829
|
-
return
|
|
829
|
+
return Ue(e);
|
|
830
830
|
}
|
|
831
831
|
}
|
|
832
832
|
function Rr(e) {
|
|
833
833
|
return e.byteLength >= 2 && e[0] === 31 && e[1] === 139;
|
|
834
834
|
}
|
|
835
|
-
function
|
|
836
|
-
if (e.byteLength >
|
|
835
|
+
function dn(e) {
|
|
836
|
+
if (e.byteLength > _t)
|
|
837
837
|
throw new Error("Compressed payload exceeds size limit");
|
|
838
838
|
const t = hi(e);
|
|
839
839
|
if (t.byteLength > Ci)
|
|
@@ -848,19 +848,19 @@ function Hr(e) {
|
|
|
848
848
|
return t.includes(";base85") || t.endsWith("base85") ? "base85" : "base64";
|
|
849
849
|
}
|
|
850
850
|
function Ne(e, t) {
|
|
851
|
-
return t === "base85" ? Ei(e) :
|
|
851
|
+
return t === "base85" ? Ei(e) : Ii(e);
|
|
852
852
|
}
|
|
853
853
|
function lt(e, t) {
|
|
854
854
|
const n = e.length > 0 && (e.charCodeAt(0) <= 32 || e.charCodeAt(e.length - 1) <= 32) ? e.trim() : e;
|
|
855
|
-
return t === "base85" ? Mi(n) :
|
|
855
|
+
return t === "base85" ? Mi(n) : Pi(n);
|
|
856
856
|
}
|
|
857
857
|
function Ei(e) {
|
|
858
858
|
const t = e.length;
|
|
859
859
|
if (t === 0) return "";
|
|
860
860
|
const n = (4 - t % 4) % 4, r = t + n, a = [];
|
|
861
861
|
for (let i = 0; i < r; i += 4) {
|
|
862
|
-
const s = e[i] ?? 0, l = i + 1 < t ? e[i + 1] : 0,
|
|
863
|
-
let u = (s << 24 >>> 0) + (l << 16) + (
|
|
862
|
+
const s = e[i] ?? 0, l = i + 1 < t ? e[i + 1] : 0, c = i + 2 < t ? e[i + 2] : 0, d = i + 3 < t ? e[i + 3] : 0;
|
|
863
|
+
let u = (s << 24 >>> 0) + (l << 16) + (c << 8) + d;
|
|
864
864
|
const p = new Array(5);
|
|
865
865
|
for (let m = 4; m >= 0; m--)
|
|
866
866
|
p[m] = u % 85, u = u / 85 | 0;
|
|
@@ -875,13 +875,13 @@ function Mi(e) {
|
|
|
875
875
|
if (n === 0) return new Uint8Array(0);
|
|
876
876
|
const r = Math.floor(n * 4 / 5), a = (5 - n % 5) % 5, o = n + a, i = new Uint8Array(o / 5 * 4), s = We.length - 1;
|
|
877
877
|
let l = 0;
|
|
878
|
-
for (let
|
|
879
|
-
let
|
|
878
|
+
for (let c = 0; c < o; c += 5) {
|
|
879
|
+
let d = 0;
|
|
880
880
|
for (let u = 0; u < 5; u++) {
|
|
881
|
-
const p =
|
|
882
|
-
|
|
881
|
+
const p = c + u < n ? Si(t.charCodeAt(c + u)) : s;
|
|
882
|
+
d = d * 85 + p;
|
|
883
883
|
}
|
|
884
|
-
i[l++] =
|
|
884
|
+
i[l++] = d >>> 24 & 255, i[l++] = d >>> 16 & 255, i[l++] = d >>> 8 & 255, i[l++] = d & 255;
|
|
885
885
|
}
|
|
886
886
|
return i.subarray(0, r);
|
|
887
887
|
}
|
|
@@ -893,31 +893,31 @@ function Si(e) {
|
|
|
893
893
|
throw new Error("Invalid base85 character");
|
|
894
894
|
return t;
|
|
895
895
|
}
|
|
896
|
-
function
|
|
896
|
+
function Ii(e) {
|
|
897
897
|
let t = "";
|
|
898
898
|
for (let n = 0; n < e.length; n++)
|
|
899
899
|
t += String.fromCharCode(e[n]);
|
|
900
900
|
return btoa(t);
|
|
901
901
|
}
|
|
902
|
-
function
|
|
902
|
+
function Pi(e) {
|
|
903
903
|
const t = atob(e), n = new Uint8Array(t.length);
|
|
904
904
|
for (let r = 0; r < t.length; r++)
|
|
905
905
|
n[r] = t.charCodeAt(r);
|
|
906
906
|
return n;
|
|
907
907
|
}
|
|
908
|
-
const
|
|
909
|
-
function
|
|
908
|
+
const Ot = 1, Rt = 2, Ht = 4, Dt = 8, Nt = 16, Dr = 32, $t = 1, Vt = 2, Xt = 4, Yt = 8, Zt = 16, Nr = 32, jt = 64, Gt = 128;
|
|
909
|
+
function un(e) {
|
|
910
910
|
let t = 256 + e.positions.byteLength;
|
|
911
911
|
return e.indices && (t += e.indices.byteLength), e.lineDistances && (t += e.lineDistances.byteLength), e.linePattern && (t += 64 + e.linePattern.pattern.length * 8), t;
|
|
912
912
|
}
|
|
913
|
-
function
|
|
913
|
+
function mn(e) {
|
|
914
914
|
let t = 256 + e.positions.byteLength;
|
|
915
915
|
return e.indices && (t += e.indices.byteLength), e.gradientPositions && (t += e.gradientPositions.byteLength), e.uvs && (t += e.uvs.byteLength), e.texture && (t += e.texture.bytes.byteLength + 64), e.hatchPattern && (t += 128), e.gradientFill && (t += 64), t;
|
|
916
916
|
}
|
|
917
917
|
function $r(e, t) {
|
|
918
918
|
e.writeString(t.layer), e.writeU32(t.color >>> 0), e.writeF64(t.offset[0]), e.writeF64(t.offset[1]), e.writeF64(t.offset[2]), e.writeFloat32Array(t.positions);
|
|
919
919
|
let n = 0;
|
|
920
|
-
t.indices && t.indices.length > 0 && (n |=
|
|
920
|
+
t.indices && t.indices.length > 0 && (n |= Ot), t.linePattern && (n |= Rt), t.lineDistances && t.lineDistances.length > 0 && (n |= Ht), t.lineWidth != null && t.lineWidth > 0 && (n |= Dt), t.renderOrder != null && t.renderOrder !== 0 && (n |= Nt), t.excludeFromOsnap && (n |= Dr), e.writeU8(n), n & Ot && e.writeUint32Array(t.indices), n & Rt && e.writeJson(t.linePattern), n & Ht && e.writeFloat32Array(t.lineDistances), n & Dt && e.writeF32(t.lineWidth), n & Nt && e.writeI32(t.renderOrder);
|
|
921
921
|
}
|
|
922
922
|
function Vr(e) {
|
|
923
923
|
const t = e.readString(), n = e.readU32(), r = [
|
|
@@ -925,12 +925,12 @@ function Vr(e) {
|
|
|
925
925
|
e.readF64(),
|
|
926
926
|
e.readF64()
|
|
927
927
|
], a = e.readFloat32Array(), o = e.readU8(), i = { layer: t, color: n, offset: r, positions: a };
|
|
928
|
-
return o &
|
|
928
|
+
return o & Ot && (i.indices = e.readUint32Array()), o & Rt && (i.linePattern = e.readJson()), o & Ht && (i.lineDistances = e.readFloat32Array()), o & Dt && (i.lineWidth = e.readF32()), o & Nt && (i.renderOrder = e.readI32()), o & Dr && (i.excludeFromOsnap = !0), i;
|
|
929
929
|
}
|
|
930
930
|
function Xr(e, t) {
|
|
931
931
|
e.writeString(t.layer), e.writeU32(t.color >>> 0), e.writeF64(t.offset[0]), e.writeF64(t.offset[1]), e.writeF64(t.offset[2]), e.writeFloat32Array(t.positions);
|
|
932
932
|
let n = 0;
|
|
933
|
-
t.indices && t.indices.length > 0 && (n |=
|
|
933
|
+
t.indices && t.indices.length > 0 && (n |= $t), t.hatchPattern && (n |= Vt), t.gradientFill && (n |= Xt), t.gradientPositions && t.gradientPositions.length > 0 && (n |= Yt), t.side != null && (n |= Zt), t.points && (n |= Nr), t.renderOrder != null && t.renderOrder !== 0 && (n |= jt), t.texture && t.texture.bytes.length > 0 && t.uvs && t.uvs.length >= 2 && (n |= Gt), e.writeU8(n), n & $t && e.writeUint32Array(t.indices), n & Vt && e.writeJson(t.hatchPattern), n & Xt && e.writeJson(t.gradientFill), n & Yt && e.writeFloat32Array(t.gradientPositions), n & Zt && e.writeU8(t.side), n & jt && e.writeI32(t.renderOrder), n & Gt && (e.writeFloat32Array(t.uvs), e.writeString(t.texture.mimeType || "image/png"), e.writeU32(t.texture.bytes.byteLength), e.writeBytes(t.texture.bytes));
|
|
934
934
|
}
|
|
935
935
|
function Yr(e) {
|
|
936
936
|
const t = e.readString(), n = e.readU32(), r = [
|
|
@@ -938,7 +938,7 @@ function Yr(e) {
|
|
|
938
938
|
e.readF64(),
|
|
939
939
|
e.readF64()
|
|
940
940
|
], a = e.readFloat32Array(), o = e.readU8(), i = { layer: t, color: n, offset: r, positions: a };
|
|
941
|
-
if (o &
|
|
941
|
+
if (o & $t && (i.indices = e.readUint32Array()), o & Vt && (i.hatchPattern = e.readJson()), o & Xt && (i.gradientFill = e.readJson()), o & Yt && (i.gradientPositions = e.readFloat32Array()), o & Zt && (i.side = e.readU8()), o & Nr && (i.points = !0), o & jt && (i.renderOrder = e.readI32()), o & Gt) {
|
|
942
942
|
i.uvs = e.readFloat32Array();
|
|
943
943
|
const s = e.readString() || "image/png", l = e.readU32();
|
|
944
944
|
i.texture = {
|
|
@@ -948,7 +948,7 @@ function Yr(e) {
|
|
|
948
948
|
}
|
|
949
949
|
return i;
|
|
950
950
|
}
|
|
951
|
-
const
|
|
951
|
+
const pn = 1329939265, Zr = 1, jr = 5e5, zi = 1e5, Gr = 1, Kr = 2, Wr = 3, Jr = 4, qr = 5, Qr = 6, ea = 7;
|
|
952
952
|
function ta(e) {
|
|
953
953
|
var t;
|
|
954
954
|
switch (e.kind) {
|
|
@@ -985,8 +985,8 @@ function Bi(e, t) {
|
|
|
985
985
|
return o(), n;
|
|
986
986
|
}
|
|
987
987
|
function $e(e) {
|
|
988
|
-
const t = new
|
|
989
|
-
t.writeU32(
|
|
988
|
+
const t = new ln();
|
|
989
|
+
t.writeU32(pn), t.writeU8(Zr), t.writeU8(0), t.writeU8(0), t.writeU8(0);
|
|
990
990
|
const n = [], r = /* @__PURE__ */ new Map(), a = (o) => {
|
|
991
991
|
const i = r.get(o);
|
|
992
992
|
if (i != null) return i;
|
|
@@ -1003,9 +1003,9 @@ function $e(e) {
|
|
|
1003
1003
|
Oi(t, o, a(o.layer));
|
|
1004
1004
|
return t.toUint8Array();
|
|
1005
1005
|
}
|
|
1006
|
-
function
|
|
1007
|
-
const t = new
|
|
1008
|
-
if (t.readU32() !==
|
|
1006
|
+
function fn(e) {
|
|
1007
|
+
const t = new cn(e);
|
|
1008
|
+
if (t.readU32() !== pn)
|
|
1009
1009
|
throw new Error("Invalid osnap catalog magic");
|
|
1010
1010
|
const r = t.readU8();
|
|
1011
1011
|
if (t.readU8(), t.readU8(), t.readU8(), r !== Zr)
|
|
@@ -1025,23 +1025,23 @@ function pn(e) {
|
|
|
1025
1025
|
return { primitives: s };
|
|
1026
1026
|
}
|
|
1027
1027
|
function Ti(e) {
|
|
1028
|
-
const t = $e(e), n =
|
|
1028
|
+
const t = $e(e), n = Ue(t).bytes;
|
|
1029
1029
|
return { uncompressed: t, compressed: n };
|
|
1030
1030
|
}
|
|
1031
1031
|
async function Fi(e) {
|
|
1032
1032
|
const t = $e(e), n = (await Or(t)).bytes;
|
|
1033
1033
|
return { uncompressed: t, compressed: n };
|
|
1034
1034
|
}
|
|
1035
|
-
function Ui(e) {
|
|
1036
|
-
return pn(cn(e));
|
|
1037
|
-
}
|
|
1038
1035
|
function _i(e) {
|
|
1039
|
-
return
|
|
1036
|
+
return fn(dn(e));
|
|
1037
|
+
}
|
|
1038
|
+
function Ui(e) {
|
|
1039
|
+
return Rr(e) ? _i(e) : fn(e);
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1041
|
+
function At(e, t) {
|
|
1042
1042
|
e.writeU8(t < 0 ? 0 : 1);
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1044
|
+
function Ct(e) {
|
|
1045
1045
|
return e.readU8() === 0 ? -1 : 1;
|
|
1046
1046
|
}
|
|
1047
1047
|
function Se(e, t) {
|
|
@@ -1049,7 +1049,7 @@ function Se(e, t) {
|
|
|
1049
1049
|
for (const n of t)
|
|
1050
1050
|
e.writeF64(n);
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1052
|
+
function Ie(e) {
|
|
1053
1053
|
const t = e.readU32();
|
|
1054
1054
|
if (t > jr)
|
|
1055
1055
|
throw new Error("Float64 array count exceeds limit");
|
|
@@ -1064,13 +1064,13 @@ function Oi(e, t, n) {
|
|
|
1064
1064
|
e.writeU8(Gr), e.writeU32(n), e.writeF64(t.x0), e.writeF64(t.y0), e.writeF64(t.x1), e.writeF64(t.y1);
|
|
1065
1065
|
return;
|
|
1066
1066
|
case "circle":
|
|
1067
|
-
e.writeU8(Kr), e.writeU32(n), e.writeF64(t.cx), e.writeF64(t.cy), e.writeF64(t.r),
|
|
1067
|
+
e.writeU8(Kr), e.writeU32(n), e.writeF64(t.cx), e.writeF64(t.cy), e.writeF64(t.r), At(e, t.normalSign);
|
|
1068
1068
|
return;
|
|
1069
1069
|
case "arc":
|
|
1070
|
-
e.writeU8(Wr), e.writeU32(n), e.writeF64(t.cx), e.writeF64(t.cy), e.writeF64(t.r), e.writeF64(t.startAngle), e.writeF64(t.endAngle),
|
|
1070
|
+
e.writeU8(Wr), e.writeU32(n), e.writeF64(t.cx), e.writeF64(t.cy), e.writeF64(t.r), e.writeF64(t.startAngle), e.writeF64(t.endAngle), At(e, t.normalSign);
|
|
1071
1071
|
return;
|
|
1072
1072
|
case "ellipse":
|
|
1073
|
-
e.writeU8(Jr), e.writeU32(n), e.writeF64(t.cx), e.writeF64(t.cy), e.writeF64(t.majorX), e.writeF64(t.majorY), e.writeF64(t.majorR), e.writeF64(t.minorR), e.writeF64(t.startAngle), e.writeF64(t.endAngle), e.writeU8(t.closed ? 1 : 0),
|
|
1073
|
+
e.writeU8(Jr), e.writeU32(n), e.writeF64(t.cx), e.writeF64(t.cy), e.writeF64(t.majorX), e.writeF64(t.majorY), e.writeF64(t.majorR), e.writeF64(t.minorR), e.writeF64(t.startAngle), e.writeF64(t.endAngle), e.writeU8(t.closed ? 1 : 0), At(e, t.normalSign ?? 1);
|
|
1074
1074
|
return;
|
|
1075
1075
|
case "spline":
|
|
1076
1076
|
e.writeU8(qr), e.writeU32(n), Se(e, t.controlPoints), e.writeU32(t.degree), Se(e, t.knots), Se(e, t.weights), e.writeU8(t.closed ? 1 : 0), Se(e, t.fitPoints ?? []);
|
|
@@ -1108,7 +1108,7 @@ function Ri(e, t) {
|
|
|
1108
1108
|
cx: e.readF64(),
|
|
1109
1109
|
cy: e.readF64(),
|
|
1110
1110
|
r: e.readF64(),
|
|
1111
|
-
normalSign:
|
|
1111
|
+
normalSign: Ct(e)
|
|
1112
1112
|
};
|
|
1113
1113
|
case Wr:
|
|
1114
1114
|
return {
|
|
@@ -1119,7 +1119,7 @@ function Ri(e, t) {
|
|
|
1119
1119
|
r: e.readF64(),
|
|
1120
1120
|
startAngle: e.readF64(),
|
|
1121
1121
|
endAngle: e.readF64(),
|
|
1122
|
-
normalSign:
|
|
1122
|
+
normalSign: Ct(e)
|
|
1123
1123
|
};
|
|
1124
1124
|
case Jr:
|
|
1125
1125
|
return {
|
|
@@ -1134,10 +1134,10 @@ function Ri(e, t) {
|
|
|
1134
1134
|
startAngle: e.readF64(),
|
|
1135
1135
|
endAngle: e.readF64(),
|
|
1136
1136
|
closed: e.readU8() !== 0,
|
|
1137
|
-
normalSign:
|
|
1137
|
+
normalSign: Ct(e)
|
|
1138
1138
|
};
|
|
1139
1139
|
case qr: {
|
|
1140
|
-
const o =
|
|
1140
|
+
const o = Ie(e), i = e.readU32(), s = Ie(e), l = Ie(e), c = e.readU8() !== 0, d = Ie(e);
|
|
1141
1141
|
return {
|
|
1142
1142
|
kind: "spline",
|
|
1143
1143
|
layer: a,
|
|
@@ -1145,8 +1145,8 @@ function Ri(e, t) {
|
|
|
1145
1145
|
degree: i,
|
|
1146
1146
|
knots: s,
|
|
1147
1147
|
weights: l,
|
|
1148
|
-
closed:
|
|
1149
|
-
...
|
|
1148
|
+
closed: c,
|
|
1149
|
+
...d.length > 0 ? { fitPoints: d } : {}
|
|
1150
1150
|
};
|
|
1151
1151
|
}
|
|
1152
1152
|
case Qr:
|
|
@@ -1157,7 +1157,7 @@ function Ri(e, t) {
|
|
|
1157
1157
|
y: e.readF64()
|
|
1158
1158
|
};
|
|
1159
1159
|
case ea: {
|
|
1160
|
-
const o = e.readU8() !== 0, i =
|
|
1160
|
+
const o = e.readU8() !== 0, i = Ie(e);
|
|
1161
1161
|
return {
|
|
1162
1162
|
kind: "path",
|
|
1163
1163
|
layer: a,
|
|
@@ -1173,23 +1173,23 @@ const na = 1480934209;
|
|
|
1173
1173
|
function Hi(e) {
|
|
1174
1174
|
if (e.version !== D)
|
|
1175
1175
|
throw new Error(`Unsupported snapshot version: ${e.version}`);
|
|
1176
|
-
const t = new
|
|
1176
|
+
const t = new ln();
|
|
1177
1177
|
t.writeU32(na), t.writeU8(D), t.writeU8(0), t.writeU8(0), t.writeU8(0), t.writeJson(Ni(e)), t.writeJson(e.layers), t.writeString(e.activeLayoutBtrId), t.writeU32(e.layouts.length);
|
|
1178
1178
|
for (const n of e.layouts)
|
|
1179
1179
|
Vi(t, n);
|
|
1180
1180
|
return t.toUint8Array();
|
|
1181
1181
|
}
|
|
1182
1182
|
function Di(e) {
|
|
1183
|
-
const t = new
|
|
1183
|
+
const t = new cn(e);
|
|
1184
1184
|
if (t.readU32() !== na)
|
|
1185
1185
|
throw new Error("Invalid snapshot magic");
|
|
1186
1186
|
const r = t.readU8();
|
|
1187
1187
|
if (t.readU8(), t.readU8(), t.readU8(), r !== D)
|
|
1188
1188
|
throw new Error(`Unsupported snapshot version: ${r}`);
|
|
1189
1189
|
const a = t.readJson(), o = t.readJson(), i = t.readString(), s = t.readU32(), l = [];
|
|
1190
|
-
for (let
|
|
1190
|
+
for (let c = 0; c < s; c++)
|
|
1191
1191
|
l.push(Yi(t));
|
|
1192
|
-
return $i(l, a.savedViews), {
|
|
1192
|
+
return $i(l, a.savedViews, a.fitExtents), {
|
|
1193
1193
|
version: D,
|
|
1194
1194
|
meta: a,
|
|
1195
1195
|
layers: o,
|
|
@@ -1200,23 +1200,40 @@ function Di(e) {
|
|
|
1200
1200
|
function Ni(e) {
|
|
1201
1201
|
const t = {
|
|
1202
1202
|
...e.meta.savedViews ?? {}
|
|
1203
|
+
}, n = {
|
|
1204
|
+
...e.meta.fitExtents ?? {}
|
|
1203
1205
|
};
|
|
1204
|
-
for (const
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1206
|
+
for (const l of e.layouts)
|
|
1207
|
+
l.savedView && (t[l.btrId] = l.savedView), l.fitExtents && (n[l.btrId] = l.fitExtents);
|
|
1208
|
+
const r = Object.keys(t).length > 0, a = Object.keys(n).length > 0;
|
|
1209
|
+
if (!r && !a) {
|
|
1210
|
+
if (e.meta.savedViews == null && e.meta.fitExtents == null)
|
|
1208
1211
|
return e.meta;
|
|
1209
|
-
const { savedViews:
|
|
1210
|
-
return
|
|
1212
|
+
const { savedViews: l, fitExtents: c, ...d } = e.meta;
|
|
1213
|
+
return d;
|
|
1211
1214
|
}
|
|
1212
|
-
|
|
1215
|
+
const {
|
|
1216
|
+
savedViews: o,
|
|
1217
|
+
fitExtents: i,
|
|
1218
|
+
...s
|
|
1219
|
+
} = e.meta;
|
|
1220
|
+
return {
|
|
1221
|
+
...s,
|
|
1222
|
+
...r ? { savedViews: t } : {},
|
|
1223
|
+
...a ? { fitExtents: n } : {}
|
|
1224
|
+
};
|
|
1213
1225
|
}
|
|
1214
|
-
function $i(e, t) {
|
|
1215
|
-
if (t)
|
|
1216
|
-
for (const
|
|
1217
|
-
if (
|
|
1218
|
-
|
|
1219
|
-
|
|
1226
|
+
function $i(e, t, n) {
|
|
1227
|
+
if (!(!t && !n))
|
|
1228
|
+
for (const r of e) {
|
|
1229
|
+
if (!r.savedView) {
|
|
1230
|
+
const a = t == null ? void 0 : t[r.btrId];
|
|
1231
|
+
a && (r.savedView = a);
|
|
1232
|
+
}
|
|
1233
|
+
if (!r.fitExtents) {
|
|
1234
|
+
const a = n == null ? void 0 : n[r.btrId];
|
|
1235
|
+
a && (r.fitExtents = a);
|
|
1236
|
+
}
|
|
1220
1237
|
}
|
|
1221
1238
|
}
|
|
1222
1239
|
function Vi(e, t) {
|
|
@@ -1237,17 +1254,17 @@ function Xi(e, t) {
|
|
|
1237
1254
|
}
|
|
1238
1255
|
function Yi(e) {
|
|
1239
1256
|
const t = e.readString(), n = e.readString(), r = e.readU8() !== 0, a = ji(e), o = Zi(e.readJson()), i = e.readU32(), s = [];
|
|
1240
|
-
for (let
|
|
1257
|
+
for (let d = 0; d < i; d++)
|
|
1241
1258
|
s.push(Vr(e));
|
|
1242
|
-
const l = e.readU32(),
|
|
1243
|
-
for (let
|
|
1244
|
-
|
|
1259
|
+
const l = e.readU32(), c = [];
|
|
1260
|
+
for (let d = 0; d < l; d++)
|
|
1261
|
+
c.push(Yr(e));
|
|
1245
1262
|
return {
|
|
1246
1263
|
btrId: t,
|
|
1247
1264
|
name: n,
|
|
1248
1265
|
isModelSpace: r,
|
|
1249
1266
|
lineBatches: s,
|
|
1250
|
-
meshBatches:
|
|
1267
|
+
meshBatches: c,
|
|
1251
1268
|
osnap: a,
|
|
1252
1269
|
viewports: o
|
|
1253
1270
|
};
|
|
@@ -1266,31 +1283,31 @@ function ji(e) {
|
|
|
1266
1283
|
return;
|
|
1267
1284
|
const n = e.readBytes(t);
|
|
1268
1285
|
if (Gi(n))
|
|
1269
|
-
return
|
|
1270
|
-
const r =
|
|
1286
|
+
return fn(n);
|
|
1287
|
+
const r = sn(n);
|
|
1271
1288
|
if (!(r.length === 0 || r === "null"))
|
|
1272
1289
|
return JSON.parse(r);
|
|
1273
1290
|
}
|
|
1274
1291
|
function Gi(e) {
|
|
1275
|
-
return e.length < 4 ? !1 : (e[0] | e[1] << 8 | e[2] << 16 | e[3] << 24) >>> 0 ===
|
|
1292
|
+
return e.length < 4 ? !1 : (e[0] | e[1] << 8 | e[2] << 16 | e[3] << 24) >>> 0 === pn;
|
|
1276
1293
|
}
|
|
1277
1294
|
const Ki = "application/vnd.mlightcad.acex-snapshot+binary";
|
|
1278
1295
|
function Wi(e) {
|
|
1279
1296
|
if (e.version !== D)
|
|
1280
1297
|
throw new Error(`Unsupported snapshot version: ${e.version}`);
|
|
1281
|
-
const t = Hi(e), n =
|
|
1298
|
+
const t = Hi(e), n = Ue(t);
|
|
1282
1299
|
return {
|
|
1283
1300
|
payload: Ne(n.bytes, "base85"),
|
|
1284
1301
|
compression: n.compression
|
|
1285
1302
|
};
|
|
1286
1303
|
}
|
|
1287
|
-
function
|
|
1304
|
+
function Kd(e, t = "base85") {
|
|
1288
1305
|
return Ji(
|
|
1289
1306
|
qi(e, t)
|
|
1290
1307
|
);
|
|
1291
1308
|
}
|
|
1292
1309
|
function Ji(e) {
|
|
1293
|
-
const t =
|
|
1310
|
+
const t = dn(e);
|
|
1294
1311
|
return Di(t);
|
|
1295
1312
|
}
|
|
1296
1313
|
function qi(e, t = "base85") {
|
|
@@ -1341,7 +1358,7 @@ function ts(e) {
|
|
|
1341
1358
|
const t = e.matrixWorld.elements;
|
|
1342
1359
|
return he.x = t[12], he.y = t[13], he.z = t[14], [he.x, he.y, he.z];
|
|
1343
1360
|
}
|
|
1344
|
-
function
|
|
1361
|
+
function hn(e, t) {
|
|
1345
1362
|
const n = t.elements, r = e.positions;
|
|
1346
1363
|
if (r.length === 0)
|
|
1347
1364
|
return { positions: new Float32Array(0), indices: e.indices };
|
|
@@ -1359,7 +1376,7 @@ function Yn(e, t) {
|
|
|
1359
1376
|
const n = t * 3;
|
|
1360
1377
|
return Number.isFinite(e[n]) && Number.isFinite(e[n + 1]) && Number.isFinite(e[n + 2]);
|
|
1361
1378
|
}
|
|
1362
|
-
function
|
|
1379
|
+
function xe(e, t) {
|
|
1363
1380
|
const n = e.positions, r = n.length / 3 | 0;
|
|
1364
1381
|
if (r === 0 || t <= 0)
|
|
1365
1382
|
return e;
|
|
@@ -1391,40 +1408,40 @@ function ye(e, t) {
|
|
|
1391
1408
|
return { positions: new Float32Array(0) };
|
|
1392
1409
|
const l = new Int32Array(r);
|
|
1393
1410
|
l.fill(-1);
|
|
1394
|
-
const
|
|
1411
|
+
const c = [], d = new Uint32Array(s.length);
|
|
1395
1412
|
for (let u = 0; u < s.length; u++) {
|
|
1396
1413
|
const p = s[u];
|
|
1397
1414
|
let m = l[p];
|
|
1398
1415
|
if (m < 0) {
|
|
1399
|
-
m =
|
|
1416
|
+
m = c.length / 3, l[p] = m;
|
|
1400
1417
|
const f = p * 3;
|
|
1401
|
-
|
|
1418
|
+
c.push(
|
|
1402
1419
|
n[f],
|
|
1403
1420
|
n[f + 1],
|
|
1404
1421
|
n[f + 2]
|
|
1405
1422
|
);
|
|
1406
1423
|
}
|
|
1407
|
-
|
|
1424
|
+
d[u] = m;
|
|
1408
1425
|
}
|
|
1409
|
-
return { positions: Float32Array.from(
|
|
1426
|
+
return { positions: Float32Array.from(c), indices: d };
|
|
1410
1427
|
}
|
|
1411
1428
|
const i = [];
|
|
1412
1429
|
for (let s = 0; s + t <= r; s += t) {
|
|
1413
1430
|
let l = !0;
|
|
1414
|
-
for (let
|
|
1415
|
-
if (!Yn(n, s +
|
|
1431
|
+
for (let c = 0; c < t; c++)
|
|
1432
|
+
if (!Yn(n, s + c)) {
|
|
1416
1433
|
l = !1;
|
|
1417
1434
|
break;
|
|
1418
1435
|
}
|
|
1419
1436
|
if (l)
|
|
1420
|
-
for (let
|
|
1421
|
-
const
|
|
1422
|
-
i.push(n[
|
|
1437
|
+
for (let c = 0; c < t; c++) {
|
|
1438
|
+
const d = (s + c) * 3;
|
|
1439
|
+
i.push(n[d], n[d + 1], n[d + 2]);
|
|
1423
1440
|
}
|
|
1424
1441
|
}
|
|
1425
1442
|
return i.length === 0 ? { positions: new Float32Array(0) } : { positions: Float32Array.from(i) };
|
|
1426
1443
|
}
|
|
1427
|
-
function
|
|
1444
|
+
function gn(e) {
|
|
1428
1445
|
const t = e.positions;
|
|
1429
1446
|
if (t.length < 3)
|
|
1430
1447
|
return { slice: e, offset: [0, 0, 0] };
|
|
@@ -1438,34 +1455,34 @@ function hn(e) {
|
|
|
1438
1455
|
slice: { positions: new Float32Array(0) },
|
|
1439
1456
|
offset: [0, 0, 0]
|
|
1440
1457
|
};
|
|
1441
|
-
const
|
|
1458
|
+
const c = [
|
|
1442
1459
|
(n + o) / 2,
|
|
1443
1460
|
(r + i) / 2,
|
|
1444
1461
|
(a + s) / 2
|
|
1445
|
-
],
|
|
1462
|
+
], d = new Float32Array(t.length);
|
|
1446
1463
|
for (let u = 0; u < t.length; u += 3) {
|
|
1447
1464
|
const p = t[u], m = t[u + 1], f = t[u + 2];
|
|
1448
1465
|
if (!Number.isFinite(p) || !Number.isFinite(m) || !Number.isFinite(f)) {
|
|
1449
|
-
|
|
1466
|
+
d[u] = 0, d[u + 1] = 0, d[u + 2] = 0;
|
|
1450
1467
|
continue;
|
|
1451
1468
|
}
|
|
1452
|
-
|
|
1469
|
+
d[u] = p - c[0], d[u + 1] = m - c[1], d[u + 2] = f - c[2];
|
|
1453
1470
|
}
|
|
1454
1471
|
return {
|
|
1455
1472
|
slice: {
|
|
1456
|
-
positions:
|
|
1473
|
+
positions: d,
|
|
1457
1474
|
indices: e.indices ? new Uint32Array(e.indices) : void 0
|
|
1458
1475
|
},
|
|
1459
|
-
offset:
|
|
1476
|
+
offset: c
|
|
1460
1477
|
};
|
|
1461
1478
|
}
|
|
1462
1479
|
function ns(e, t, n = {}) {
|
|
1463
1480
|
e.updateMatrixWorld(!0);
|
|
1464
|
-
const r =
|
|
1465
|
-
return
|
|
1481
|
+
const r = hn(t, e.matrixWorld);
|
|
1482
|
+
return gn(r);
|
|
1466
1483
|
}
|
|
1467
1484
|
let aa;
|
|
1468
|
-
function
|
|
1485
|
+
function Wd(e) {
|
|
1469
1486
|
aa = e;
|
|
1470
1487
|
}
|
|
1471
1488
|
function rs(e) {
|
|
@@ -1482,12 +1499,12 @@ function rs(e) {
|
|
|
1482
1499
|
n.width = t.width, n.height = t.height, r.putImageData(t, 0, 0);
|
|
1483
1500
|
else if (oa(t)) {
|
|
1484
1501
|
n.width = t.width, n.height = t.height;
|
|
1485
|
-
const l = ss(t.data, t.width * t.height),
|
|
1502
|
+
const l = ss(t.data, t.width * t.height), c = new ImageData(
|
|
1486
1503
|
new Uint8ClampedArray(l),
|
|
1487
1504
|
t.width,
|
|
1488
1505
|
t.height
|
|
1489
1506
|
);
|
|
1490
|
-
r.putImageData(
|
|
1507
|
+
r.putImageData(c, 0, 0);
|
|
1491
1508
|
} else if (os(t)) {
|
|
1492
1509
|
const l = is(t);
|
|
1493
1510
|
if (!l)
|
|
@@ -1580,14 +1597,14 @@ function ds(e) {
|
|
|
1580
1597
|
e && (e.bytes = new Uint8Array(0));
|
|
1581
1598
|
}
|
|
1582
1599
|
const sa = { value: 1 };
|
|
1583
|
-
function
|
|
1600
|
+
function wn(e) {
|
|
1584
1601
|
const t = e;
|
|
1585
1602
|
if (t.isShaderMaterial === !0 || e.type === "ShaderMaterial")
|
|
1586
1603
|
return t;
|
|
1587
1604
|
}
|
|
1588
1605
|
function us(e) {
|
|
1589
1606
|
var o;
|
|
1590
|
-
const t =
|
|
1607
|
+
const t = wn(e);
|
|
1591
1608
|
if (!t)
|
|
1592
1609
|
return;
|
|
1593
1610
|
const n = t.uniforms.pattern, r = t.uniforms.patternLength;
|
|
@@ -1603,7 +1620,7 @@ function us(e) {
|
|
|
1603
1620
|
}
|
|
1604
1621
|
function ms(e) {
|
|
1605
1622
|
var a;
|
|
1606
|
-
const t =
|
|
1623
|
+
const t = wn(e);
|
|
1607
1624
|
if (!t)
|
|
1608
1625
|
return;
|
|
1609
1626
|
const n = t.uniforms.u_patternLines;
|
|
@@ -1617,8 +1634,8 @@ function ms(e) {
|
|
|
1617
1634
|
};
|
|
1618
1635
|
}
|
|
1619
1636
|
function ps(e) {
|
|
1620
|
-
var o, i, s, l,
|
|
1621
|
-
const t =
|
|
1637
|
+
var o, i, s, l, c;
|
|
1638
|
+
const t = wn(e);
|
|
1622
1639
|
if (!t || t.uniforms.u_patternLines)
|
|
1623
1640
|
return;
|
|
1624
1641
|
const n = (o = t.uniforms.u_startColor) == null ? void 0 : o.value, r = (i = t.uniforms.u_endColor) == null ? void 0 : i.value, a = t.uniforms.u_gradientType;
|
|
@@ -1627,7 +1644,7 @@ function ps(e) {
|
|
|
1627
1644
|
startColor: n.getHex(),
|
|
1628
1645
|
endColor: ((s = r == null ? void 0 : r.getHex) == null ? void 0 : s.call(r)) ?? n.getHex(),
|
|
1629
1646
|
angle: Number(((l = t.uniforms.u_angle) == null ? void 0 : l.value) ?? 0),
|
|
1630
|
-
shift: Number(((
|
|
1647
|
+
shift: Number(((c = t.uniforms.u_shift) == null ? void 0 : c.value) ?? 0),
|
|
1631
1648
|
gradientType: Number(a.value)
|
|
1632
1649
|
};
|
|
1633
1650
|
}
|
|
@@ -1649,25 +1666,25 @@ function hs(e) {
|
|
|
1649
1666
|
patternLength: e.patternLength
|
|
1650
1667
|
};
|
|
1651
1668
|
}
|
|
1652
|
-
function
|
|
1669
|
+
function vn(e) {
|
|
1653
1670
|
const t = e.length / 3;
|
|
1654
1671
|
if (t < 2)
|
|
1655
1672
|
return new Float32Array(0);
|
|
1656
1673
|
const n = new Float32Array(t);
|
|
1657
1674
|
for (let r = 0; r < t; r += 2) {
|
|
1658
1675
|
r === 0 ? n[r] = 0 : n[r] = n[r - 1];
|
|
1659
|
-
const a = e[r * 3], o = e[r * 3 + 1], i = e[r * 3 + 2] ?? 0, s = e[(r + 1) * 3], l = e[(r + 1) * 3 + 1],
|
|
1660
|
-
n[r + 1] = n[r] + Math.sqrt(
|
|
1676
|
+
const a = e[r * 3], o = e[r * 3 + 1], i = e[r * 3 + 2] ?? 0, s = e[(r + 1) * 3], l = e[(r + 1) * 3 + 1], c = e[(r + 1) * 3 + 2] ?? 0, d = s - a, u = l - o, p = c - i;
|
|
1677
|
+
n[r + 1] = n[r] + Math.sqrt(d * d + u * u + p * p);
|
|
1661
1678
|
}
|
|
1662
1679
|
return n;
|
|
1663
1680
|
}
|
|
1664
|
-
function
|
|
1681
|
+
function Jd(e) {
|
|
1665
1682
|
const t = e.getAttribute("lineDistance");
|
|
1666
1683
|
if (!t || t.count === 0)
|
|
1667
1684
|
return;
|
|
1668
1685
|
if (e.getIndex()) {
|
|
1669
|
-
const
|
|
1670
|
-
return ne(
|
|
1686
|
+
const c = t.array;
|
|
1687
|
+
return ne(c, 0, t.count);
|
|
1671
1688
|
}
|
|
1672
1689
|
const r = e.drawRange, a = t.count, o = Math.max(0, Math.min(Math.floor(r.start), a)), i = Math.max(0, a - o), s = !Number.isFinite(r.count) || r.count <= 0 ? i : Math.min(Math.floor(r.count), i);
|
|
1673
1690
|
if (s <= 0)
|
|
@@ -1684,13 +1701,13 @@ function gs(e, t) {
|
|
|
1684
1701
|
const u = n.array;
|
|
1685
1702
|
return ne(u, 0, n.count * r);
|
|
1686
1703
|
}
|
|
1687
|
-
const o = e.drawRange, i = n.count, s = Math.max(0, Math.min(Math.floor(o.start), i)), l = Math.max(0, i - s),
|
|
1688
|
-
if (
|
|
1704
|
+
const o = e.drawRange, i = n.count, s = Math.max(0, Math.min(Math.floor(o.start), i)), l = Math.max(0, i - s), c = !Number.isFinite(o.count) || o.count <= 0 ? l : Math.min(Math.floor(o.count), l);
|
|
1705
|
+
if (c <= 0)
|
|
1689
1706
|
return;
|
|
1690
|
-
const
|
|
1691
|
-
return ne(
|
|
1707
|
+
const d = n.array;
|
|
1708
|
+
return ne(d, s * r, c * r);
|
|
1692
1709
|
}
|
|
1693
|
-
function
|
|
1710
|
+
function qd(e, t) {
|
|
1694
1711
|
if (e.lineWidth != null && e.lineWidth > 0) {
|
|
1695
1712
|
const n = new kr({
|
|
1696
1713
|
color: e.color,
|
|
@@ -1706,7 +1723,7 @@ function Jd(e, t) {
|
|
|
1706
1723
|
sa
|
|
1707
1724
|
) : new L.LineBasicMaterial({ color: e.color });
|
|
1708
1725
|
}
|
|
1709
|
-
function
|
|
1726
|
+
function Qd(e) {
|
|
1710
1727
|
return new L.PointsMaterial({
|
|
1711
1728
|
color: e.color,
|
|
1712
1729
|
size: 1,
|
|
@@ -1714,10 +1731,10 @@ function qd(e) {
|
|
|
1714
1731
|
});
|
|
1715
1732
|
}
|
|
1716
1733
|
function Zn(e, t) {
|
|
1717
|
-
const n = t[0], r = t[1], a = t[4], o = t[5], i = t[12], s = t[13], l = Math.atan2(r, n),
|
|
1734
|
+
const n = t[0], r = t[1], a = t[4], o = t[5], i = t[12], s = t[13], l = Math.atan2(r, n), c = (p, m) => [
|
|
1718
1735
|
n * p + a * m + i,
|
|
1719
1736
|
r * p + o * m + s
|
|
1720
|
-
],
|
|
1737
|
+
], d = (p, m) => [
|
|
1721
1738
|
n * p + a * m,
|
|
1722
1739
|
r * p + o * m
|
|
1723
1740
|
], u = (p, m, f) => {
|
|
@@ -1727,17 +1744,17 @@ function Zn(e, t) {
|
|
|
1727
1744
|
return {
|
|
1728
1745
|
patternAngle: e.patternAngle,
|
|
1729
1746
|
patternLines: e.patternLines.map((p) => {
|
|
1730
|
-
const m = p.angle + e.patternAngle, f = p.angle + l, h = f + e.patternAngle, [w, v] =
|
|
1747
|
+
const m = p.angle + e.patternAngle, f = p.angle + l, h = f + e.patternAngle, [w, v] = d(
|
|
1731
1748
|
Math.cos(m),
|
|
1732
1749
|
Math.sin(m)
|
|
1733
|
-
), g = Math.hypot(w, v), [b,
|
|
1750
|
+
), g = Math.hypot(w, v), [b, y] = u(
|
|
1734
1751
|
p.offset[0],
|
|
1735
1752
|
p.offset[1],
|
|
1736
1753
|
m
|
|
1737
|
-
), [E, A] =
|
|
1754
|
+
), [E, A] = d(b, y), M = u(E, A, -h);
|
|
1738
1755
|
return {
|
|
1739
1756
|
angle: f,
|
|
1740
|
-
base:
|
|
1757
|
+
base: c(p.base[0], p.base[1]),
|
|
1741
1758
|
offset: M,
|
|
1742
1759
|
dashLengths: p.dashLengths.map((k) => k * g),
|
|
1743
1760
|
patternLength: p.patternLength * g
|
|
@@ -1769,7 +1786,7 @@ function ws(e, t) {
|
|
|
1769
1786
|
})
|
|
1770
1787
|
};
|
|
1771
1788
|
}
|
|
1772
|
-
function
|
|
1789
|
+
function eu(e, t = {}) {
|
|
1773
1790
|
if (e.hatchPattern && e.hatchPattern.patternLines.length > 0)
|
|
1774
1791
|
try {
|
|
1775
1792
|
const n = e.hatchPattern.patternLines.map(
|
|
@@ -1813,10 +1830,10 @@ function Qd(e, t = {}) {
|
|
|
1813
1830
|
side: L.DoubleSide
|
|
1814
1831
|
});
|
|
1815
1832
|
}
|
|
1816
|
-
function
|
|
1833
|
+
function Kt(e, t) {
|
|
1817
1834
|
return !Number.isFinite(e) || e < 0 ? 0 : Math.min(Math.floor(e), t);
|
|
1818
1835
|
}
|
|
1819
|
-
function
|
|
1836
|
+
function Wt(e, t, n) {
|
|
1820
1837
|
const r = Math.max(0, t - n);
|
|
1821
1838
|
return !Number.isFinite(e) || e <= 0 ? r : Math.min(Math.floor(e), r);
|
|
1822
1839
|
}
|
|
@@ -1826,14 +1843,14 @@ function qe(e) {
|
|
|
1826
1843
|
return { positions: new Float32Array(0) };
|
|
1827
1844
|
const n = e.drawRange, r = t.array, a = t.itemSize, o = e.getIndex();
|
|
1828
1845
|
if (o) {
|
|
1829
|
-
const
|
|
1846
|
+
const c = ne(r, 0, t.count * a), d = o.array, u = Kt(n.start, o.count), p = Wt(
|
|
1830
1847
|
n.count,
|
|
1831
1848
|
o.count,
|
|
1832
1849
|
u
|
|
1833
|
-
), m = es(
|
|
1834
|
-
return ra(
|
|
1850
|
+
), m = es(d, u, p);
|
|
1851
|
+
return ra(c, m);
|
|
1835
1852
|
}
|
|
1836
|
-
const i =
|
|
1853
|
+
const i = Kt(n.start, t.count), s = Wt(
|
|
1837
1854
|
n.count,
|
|
1838
1855
|
t.count,
|
|
1839
1856
|
i
|
|
@@ -1845,7 +1862,7 @@ function qe(e) {
|
|
|
1845
1862
|
) };
|
|
1846
1863
|
}
|
|
1847
1864
|
function Qe(e) {
|
|
1848
|
-
return vo(e.flags) &&
|
|
1865
|
+
return vo(e.flags) && xo(e.flags);
|
|
1849
1866
|
}
|
|
1850
1867
|
function la(e) {
|
|
1851
1868
|
const { count: t } = e.mappingStats;
|
|
@@ -1861,10 +1878,10 @@ function la(e) {
|
|
|
1861
1878
|
}
|
|
1862
1879
|
return !1;
|
|
1863
1880
|
}
|
|
1864
|
-
function
|
|
1865
|
-
return
|
|
1881
|
+
function Jt(e) {
|
|
1882
|
+
return yr(e).bboxIntersectionCheck === !0;
|
|
1866
1883
|
}
|
|
1867
|
-
function
|
|
1884
|
+
function xn(e, t) {
|
|
1868
1885
|
const n = t.getAttribute("position");
|
|
1869
1886
|
if (!n)
|
|
1870
1887
|
return { positions: new Float32Array(0) };
|
|
@@ -1884,8 +1901,8 @@ function vn(e, t) {
|
|
|
1884
1901
|
} catch {
|
|
1885
1902
|
continue;
|
|
1886
1903
|
}
|
|
1887
|
-
const b = g.indexStart ?? 0,
|
|
1888
|
-
!Qe(g) ||
|
|
1904
|
+
const b = g.indexStart ?? 0, y = g.indexCount ?? 0;
|
|
1905
|
+
!Qe(g) || y <= 0 || (f.push({ start: b, count: y }), m += y);
|
|
1889
1906
|
}
|
|
1890
1907
|
if (m === 0)
|
|
1891
1908
|
return { positions: new Float32Array(0) };
|
|
@@ -1915,19 +1932,19 @@ function vn(e, t) {
|
|
|
1915
1932
|
}
|
|
1916
1933
|
if (s === 0)
|
|
1917
1934
|
return { positions: new Float32Array(0) };
|
|
1918
|
-
const
|
|
1919
|
-
let
|
|
1935
|
+
const c = new Float32Array(s);
|
|
1936
|
+
let d = 0;
|
|
1920
1937
|
if (a instanceof Float32Array)
|
|
1921
1938
|
for (const u of l)
|
|
1922
|
-
|
|
1939
|
+
c.set(
|
|
1923
1940
|
a.subarray(u.start, u.start + u.floatCount),
|
|
1924
|
-
|
|
1925
|
-
),
|
|
1941
|
+
d
|
|
1942
|
+
), d += u.floatCount;
|
|
1926
1943
|
else
|
|
1927
1944
|
for (const u of l)
|
|
1928
1945
|
for (let p = 0; p < u.floatCount; p++)
|
|
1929
|
-
d
|
|
1930
|
-
return { positions:
|
|
1946
|
+
c[d++] = a[u.start + p];
|
|
1947
|
+
return { positions: c };
|
|
1931
1948
|
}
|
|
1932
1949
|
function jn(e, t, n) {
|
|
1933
1950
|
e.push(
|
|
@@ -1950,24 +1967,24 @@ function vs(e, t) {
|
|
|
1950
1967
|
}
|
|
1951
1968
|
if (!Qe(s) || s.vertexCount <= 0)
|
|
1952
1969
|
continue;
|
|
1953
|
-
const l = s.vertexStart,
|
|
1954
|
-
for (let
|
|
1955
|
-
jn(o, n,
|
|
1970
|
+
const l = s.vertexStart, c = l + s.vertexCount;
|
|
1971
|
+
for (let d = l; d < c; d++)
|
|
1972
|
+
jn(o, n, d), jn(o, r, d);
|
|
1956
1973
|
}
|
|
1957
1974
|
return { positions: new Float32Array(o) };
|
|
1958
1975
|
}
|
|
1959
|
-
function
|
|
1976
|
+
function xs(e, t) {
|
|
1960
1977
|
const r = e.instanceCount;
|
|
1961
1978
|
if (Number.isFinite(r) && r >= 0)
|
|
1962
1979
|
return Math.min(Math.floor(r), t);
|
|
1963
|
-
const a = e.drawRange, o =
|
|
1964
|
-
return
|
|
1980
|
+
const a = e.drawRange, o = Kt(a.start, t);
|
|
1981
|
+
return Wt(a.count, t, o);
|
|
1965
1982
|
}
|
|
1966
|
-
function
|
|
1983
|
+
function ys(e) {
|
|
1967
1984
|
const t = e.getAttribute("instanceStart"), n = e.getAttribute("instanceEnd");
|
|
1968
1985
|
if (!t || !n || t.count === 0)
|
|
1969
1986
|
return { positions: new Float32Array(0) };
|
|
1970
|
-
const r =
|
|
1987
|
+
const r = xs(
|
|
1971
1988
|
e,
|
|
1972
1989
|
t.count
|
|
1973
1990
|
);
|
|
@@ -2008,12 +2025,12 @@ function Be(e) {
|
|
|
2008
2025
|
return e.material;
|
|
2009
2026
|
}
|
|
2010
2027
|
function de(e) {
|
|
2011
|
-
var
|
|
2028
|
+
var c;
|
|
2012
2029
|
const t = br(e), n = t.layer ?? "0", r = e;
|
|
2013
2030
|
let a = r.color != null ? r.color.getHex() : t.color ?? 16777215;
|
|
2014
2031
|
const o = us(e), i = ms(e), s = ps(e);
|
|
2015
2032
|
if (e instanceof L.ShaderMaterial || e.type === "ShaderMaterial") {
|
|
2016
|
-
const u = (
|
|
2033
|
+
const u = (c = e.uniforms.u_color) == null ? void 0 : c.value;
|
|
2017
2034
|
u != null && u.getHex ? a = u.getHex() : s && (a = s.startColor);
|
|
2018
2035
|
}
|
|
2019
2036
|
return {
|
|
@@ -2029,7 +2046,7 @@ function bs(e, t) {
|
|
|
2029
2046
|
const r = br(t).drawOrder ?? e.renderOrder;
|
|
2030
2047
|
return r === 0 ? void 0 : r;
|
|
2031
2048
|
}
|
|
2032
|
-
function
|
|
2049
|
+
function ye(e, t, n) {
|
|
2033
2050
|
const r = bs(t, n);
|
|
2034
2051
|
r != null && (e.renderOrder = r);
|
|
2035
2052
|
}
|
|
@@ -2045,7 +2062,7 @@ function ks(e, t) {
|
|
|
2045
2062
|
function ct(e) {
|
|
2046
2063
|
return ts(e);
|
|
2047
2064
|
}
|
|
2048
|
-
function
|
|
2065
|
+
function Et(e, t, n = {}) {
|
|
2049
2066
|
const r = ns(e, t, n);
|
|
2050
2067
|
return {
|
|
2051
2068
|
...r.slice,
|
|
@@ -2068,13 +2085,13 @@ function Oe(e, t, n, r, a, o = !1) {
|
|
|
2068
2085
|
const i = de(t), s = ks(
|
|
2069
2086
|
n,
|
|
2070
2087
|
i.hatchPattern
|
|
2071
|
-
), l = s ? ws(s, a) : void 0,
|
|
2088
|
+
), l = s ? ws(s, a) : void 0, c = i.gradientFill ? gs(e, "gradientPosition") : void 0, d = {
|
|
2072
2089
|
layer: i.layer,
|
|
2073
2090
|
color: i.color,
|
|
2074
2091
|
offset: a,
|
|
2075
2092
|
hatchPattern: l,
|
|
2076
2093
|
gradientFill: i.gradientFill,
|
|
2077
|
-
gradientPositions:
|
|
2094
|
+
gradientPositions: c,
|
|
2078
2095
|
side: i.side,
|
|
2079
2096
|
...r
|
|
2080
2097
|
}, u = t;
|
|
@@ -2082,9 +2099,9 @@ function Oe(e, t, n, r, a, o = !1) {
|
|
|
2082
2099
|
const p = rs(u.map), m = ls(e, r.positions);
|
|
2083
2100
|
if (!p || !m)
|
|
2084
2101
|
return;
|
|
2085
|
-
|
|
2102
|
+
d.texture = p, d.uvs = m, d.color = 16777215, d.side = L.DoubleSide;
|
|
2086
2103
|
}
|
|
2087
|
-
return
|
|
2104
|
+
return ye(d, n, t), d;
|
|
2088
2105
|
}
|
|
2089
2106
|
function As(e) {
|
|
2090
2107
|
const t = vs(e, e.geometry);
|
|
@@ -2097,15 +2114,15 @@ function As(e) {
|
|
|
2097
2114
|
lineWidth: a,
|
|
2098
2115
|
...t
|
|
2099
2116
|
};
|
|
2100
|
-
return la(e) && (o.excludeFromOsnap = !0),
|
|
2117
|
+
return la(e) && (o.excludeFromOsnap = !0), ye(o, e, e.material), o;
|
|
2101
2118
|
}
|
|
2102
2119
|
function Cs(e) {
|
|
2103
|
-
const t =
|
|
2120
|
+
const t = xn(e, e.geometry);
|
|
2104
2121
|
if (t.positions.length === 0)
|
|
2105
2122
|
return;
|
|
2106
2123
|
const { color: n, layer: r, linePattern: a } = de(
|
|
2107
2124
|
e.material
|
|
2108
|
-
), o = a ?
|
|
2125
|
+
), o = a ? vn(t.positions) : void 0, i = {
|
|
2109
2126
|
layer: r,
|
|
2110
2127
|
color: n,
|
|
2111
2128
|
offset: ct(e),
|
|
@@ -2113,10 +2130,10 @@ function Cs(e) {
|
|
|
2113
2130
|
lineDistances: o,
|
|
2114
2131
|
...t
|
|
2115
2132
|
};
|
|
2116
|
-
return la(e) && (i.excludeFromOsnap = !0),
|
|
2133
|
+
return la(e) && (i.excludeFromOsnap = !0), ye(i, e, e.material), i;
|
|
2117
2134
|
}
|
|
2118
2135
|
function Es(e) {
|
|
2119
|
-
const t =
|
|
2136
|
+
const t = xn(e, e.geometry);
|
|
2120
2137
|
if (t.positions.length !== 0)
|
|
2121
2138
|
return Oe(
|
|
2122
2139
|
e.geometry,
|
|
@@ -2128,7 +2145,7 @@ function Es(e) {
|
|
|
2128
2145
|
);
|
|
2129
2146
|
}
|
|
2130
2147
|
function Ms(e) {
|
|
2131
|
-
const t =
|
|
2148
|
+
const t = xn(e, e.geometry);
|
|
2132
2149
|
if (t.positions.length === 0)
|
|
2133
2150
|
return;
|
|
2134
2151
|
const n = Oe(
|
|
@@ -2144,16 +2161,16 @@ function Ms(e) {
|
|
|
2144
2161
|
...n
|
|
2145
2162
|
};
|
|
2146
2163
|
}
|
|
2147
|
-
const ie = /* @__PURE__ */ new L.Matrix4(), et = /* @__PURE__ */ new L.Matrix4(),
|
|
2148
|
-
|
|
2164
|
+
const ie = /* @__PURE__ */ new L.Matrix4(), et = /* @__PURE__ */ new L.Matrix4(), Pe = /* @__PURE__ */ new L.Object3D();
|
|
2165
|
+
Pe.matrixAutoUpdate = !1;
|
|
2149
2166
|
function Ss(e) {
|
|
2150
2167
|
const t = e;
|
|
2151
2168
|
return t.isInstancedMesh === !0 && t.instanceMatrix != null && typeof t.count == "number" && t.geometry != null;
|
|
2152
2169
|
}
|
|
2153
|
-
function
|
|
2154
|
-
return e.renderOrder < 1e4 || e.isInstancedMesh === !0 ? !1 :
|
|
2170
|
+
function Is(e) {
|
|
2171
|
+
return e.renderOrder < 1e4 || e.isInstancedMesh === !0 ? !1 : yr(e).sharesTemplateGeometry === !0;
|
|
2155
2172
|
}
|
|
2156
|
-
function
|
|
2173
|
+
function qt(e) {
|
|
2157
2174
|
const t = e.elements;
|
|
2158
2175
|
for (let o = 0; o < 16; o++)
|
|
2159
2176
|
if (!Number.isFinite(t[o])) return !1;
|
|
@@ -2162,7 +2179,7 @@ function Jt(e) {
|
|
|
2162
2179
|
}
|
|
2163
2180
|
function da(e, t) {
|
|
2164
2181
|
var p;
|
|
2165
|
-
const n =
|
|
2182
|
+
const n = xe(
|
|
2166
2183
|
qe(e.geometry),
|
|
2167
2184
|
t
|
|
2168
2185
|
), r = n.positions.length;
|
|
@@ -2171,23 +2188,23 @@ function da(e, t) {
|
|
|
2171
2188
|
const a = e.instanceMatrix.array, o = ((p = n.indices) == null ? void 0 : p.length) ?? 0;
|
|
2172
2189
|
let i = 0;
|
|
2173
2190
|
for (let m = 0; m < e.count; m++)
|
|
2174
|
-
ie.fromArray(a, m * 16),
|
|
2191
|
+
ie.fromArray(a, m * 16), qt(ie) && i++;
|
|
2175
2192
|
if (i === 0) return;
|
|
2176
|
-
const s = new Float32Array(i * r), l = n.indices != null ? new Uint32Array(i * o) : void 0,
|
|
2177
|
-
let
|
|
2193
|
+
const s = new Float32Array(i * r), l = n.indices != null ? new Uint32Array(i * o) : void 0, c = r / 3;
|
|
2194
|
+
let d = 0;
|
|
2178
2195
|
for (let m = 0; m < e.count; m++) {
|
|
2179
|
-
if (ie.fromArray(a, m * 16), !
|
|
2196
|
+
if (ie.fromArray(a, m * 16), !qt(ie)) continue;
|
|
2180
2197
|
et.multiplyMatrices(e.matrixWorld, ie);
|
|
2181
|
-
const f =
|
|
2182
|
-
if (s.set(f.positions,
|
|
2183
|
-
const h =
|
|
2198
|
+
const f = hn(n, et);
|
|
2199
|
+
if (s.set(f.positions, d * r), l && f.indices) {
|
|
2200
|
+
const h = d * c;
|
|
2184
2201
|
for (let w = 0; w < f.indices.length; w++)
|
|
2185
|
-
l[
|
|
2202
|
+
l[d * o + w] = f.indices[w] + h;
|
|
2186
2203
|
}
|
|
2187
|
-
|
|
2204
|
+
d++;
|
|
2188
2205
|
}
|
|
2189
|
-
const u =
|
|
2190
|
-
|
|
2206
|
+
const u = gn(
|
|
2207
|
+
xe(
|
|
2191
2208
|
{ positions: s, indices: l },
|
|
2192
2209
|
t
|
|
2193
2210
|
)
|
|
@@ -2195,7 +2212,7 @@ function da(e, t) {
|
|
|
2195
2212
|
if (u.slice.positions.length !== 0)
|
|
2196
2213
|
return { slice: u.slice, offset: u.offset };
|
|
2197
2214
|
}
|
|
2198
|
-
function
|
|
2215
|
+
function Ps(e) {
|
|
2199
2216
|
const t = de(e), n = e;
|
|
2200
2217
|
return !!(t.hatchPattern || t.gradientFill || n.map);
|
|
2201
2218
|
}
|
|
@@ -2203,12 +2220,12 @@ function zs(e, t) {
|
|
|
2203
2220
|
e.updateMatrixWorld(!0);
|
|
2204
2221
|
const n = e.instanceMatrix.array;
|
|
2205
2222
|
for (let r = 0; r < e.count; r++)
|
|
2206
|
-
ie.fromArray(n, r * 16),
|
|
2223
|
+
ie.fromArray(n, r * 16), qt(ie) && (et.multiplyMatrices(e.matrixWorld, ie), t(et));
|
|
2207
2224
|
}
|
|
2208
2225
|
function Bs(e, t) {
|
|
2209
2226
|
const n = da(e, 2);
|
|
2210
2227
|
if (!n) return;
|
|
2211
|
-
const r = Be(e), { color: a, layer: o, linePattern: i } = de(r), s = i ?
|
|
2228
|
+
const r = Be(e), { color: a, layer: o, linePattern: i } = de(r), s = i ? vn(n.slice.positions) : void 0, l = {
|
|
2212
2229
|
layer: o,
|
|
2213
2230
|
color: a,
|
|
2214
2231
|
offset: n.offset,
|
|
@@ -2216,34 +2233,34 @@ function Bs(e, t) {
|
|
|
2216
2233
|
lineDistances: s,
|
|
2217
2234
|
...n.slice
|
|
2218
2235
|
};
|
|
2219
|
-
|
|
2236
|
+
Jt(e) && (l.excludeFromOsnap = !0), ye(l, e, r), t.push(l);
|
|
2220
2237
|
}
|
|
2221
2238
|
function Gn(e, t, n) {
|
|
2222
2239
|
const r = Be(e);
|
|
2223
2240
|
if (!n && ia(r)) return;
|
|
2224
|
-
if (!n &&
|
|
2225
|
-
const i =
|
|
2241
|
+
if (!n && Ps(r)) {
|
|
2242
|
+
const i = xe(
|
|
2226
2243
|
qe(e.geometry),
|
|
2227
2244
|
3
|
|
2228
2245
|
);
|
|
2229
2246
|
if (i.positions.length === 0) return;
|
|
2230
2247
|
zs(e, (s) => {
|
|
2231
|
-
const l =
|
|
2232
|
-
|
|
2248
|
+
const l = xe(
|
|
2249
|
+
hn(i, s),
|
|
2233
2250
|
3
|
|
2234
2251
|
);
|
|
2235
2252
|
if (l.positions.length === 0) return;
|
|
2236
|
-
const
|
|
2237
|
-
|
|
2238
|
-
const
|
|
2253
|
+
const c = gn(l);
|
|
2254
|
+
Pe.matrix.copy(s), Pe.matrixWorld.copy(s), Pe.matrixWorldNeedsUpdate = !1;
|
|
2255
|
+
const d = Oe(
|
|
2239
2256
|
e.geometry,
|
|
2240
2257
|
r,
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2258
|
+
Pe,
|
|
2259
|
+
c.slice,
|
|
2260
|
+
c.offset,
|
|
2244
2261
|
!0
|
|
2245
2262
|
);
|
|
2246
|
-
|
|
2263
|
+
d && t.push(d);
|
|
2247
2264
|
});
|
|
2248
2265
|
return;
|
|
2249
2266
|
}
|
|
@@ -2274,7 +2291,7 @@ function Wn(e) {
|
|
|
2274
2291
|
function Ts(e) {
|
|
2275
2292
|
const t = [], n = [];
|
|
2276
2293
|
return e.traverse((r) => {
|
|
2277
|
-
if (!(fo(r) || ho(r) ||
|
|
2294
|
+
if (!(fo(r) || ho(r) || Is(r))) {
|
|
2278
2295
|
if (Ss(r)) {
|
|
2279
2296
|
if (!je(r, e)) return;
|
|
2280
2297
|
r.isPoints === !0 ? Gn(r, n, !0) : Kn(r) && !Ge(r) ? Bs(r, t) : Wn(r) && !Ge(r) && Gn(r, n, !1);
|
|
@@ -2302,42 +2319,42 @@ function Ts(e) {
|
|
|
2302
2319
|
}
|
|
2303
2320
|
if (Ge(r)) {
|
|
2304
2321
|
if (!je(r, e)) return;
|
|
2305
|
-
const a =
|
|
2322
|
+
const a = ys(r.geometry);
|
|
2306
2323
|
if (a.positions.length === 0) return;
|
|
2307
|
-
const o = Be(r), { color: i, layer: s } = de(o), { offset: l, ...
|
|
2324
|
+
const o = Be(r), { color: i, layer: s } = de(o), { offset: l, ...c } = Et(r, a), d = {
|
|
2308
2325
|
layer: s,
|
|
2309
2326
|
color: i,
|
|
2310
2327
|
offset: l,
|
|
2311
2328
|
lineWidth: ca(o),
|
|
2312
|
-
...
|
|
2329
|
+
...c
|
|
2313
2330
|
};
|
|
2314
|
-
|
|
2331
|
+
Jt(r) && (d.excludeFromOsnap = !0), ye(d, r, o), t.push(d);
|
|
2315
2332
|
} else if (Kn(r) && !(r instanceof On)) {
|
|
2316
2333
|
if (!je(r, e)) return;
|
|
2317
|
-
const a =
|
|
2334
|
+
const a = xe(
|
|
2318
2335
|
qe(r.geometry),
|
|
2319
2336
|
2
|
|
2320
2337
|
);
|
|
2321
2338
|
if (a.positions.length === 0) return;
|
|
2322
|
-
const o = Be(r), { color: i, layer: s, linePattern: l } = de(o), { offset:
|
|
2339
|
+
const o = Be(r), { color: i, layer: s, linePattern: l } = de(o), { offset: c, ...d } = Et(r, a), u = l ? vn(d.positions) : void 0, p = {
|
|
2323
2340
|
layer: s,
|
|
2324
2341
|
color: i,
|
|
2325
|
-
offset:
|
|
2342
|
+
offset: c,
|
|
2326
2343
|
linePattern: l,
|
|
2327
2344
|
lineDistances: u,
|
|
2328
|
-
...
|
|
2345
|
+
...d
|
|
2329
2346
|
};
|
|
2330
|
-
|
|
2347
|
+
Jt(r) && (p.excludeFromOsnap = !0), ye(p, r, o), t.push(p);
|
|
2331
2348
|
} else if (Wn(r) && !Ge(r) && !(r instanceof Rn)) {
|
|
2332
2349
|
if (!je(r, e)) return;
|
|
2333
2350
|
const a = Be(r);
|
|
2334
2351
|
if (ia(a)) return;
|
|
2335
|
-
const o =
|
|
2352
|
+
const o = xe(
|
|
2336
2353
|
qe(r.geometry),
|
|
2337
2354
|
3
|
|
2338
2355
|
);
|
|
2339
2356
|
if (o.positions.length === 0) return;
|
|
2340
|
-
const { offset: i, ...s } =
|
|
2357
|
+
const { offset: i, ...s } = Et(r, o), l = Oe(
|
|
2341
2358
|
r.geometry,
|
|
2342
2359
|
a,
|
|
2343
2360
|
r,
|
|
@@ -2362,13 +2379,13 @@ function qn(e) {
|
|
|
2362
2379
|
function Fs(e) {
|
|
2363
2380
|
try {
|
|
2364
2381
|
const t = ko.instance(), n = t.getVar(
|
|
2365
|
-
|
|
2382
|
+
xt.GRIPSIZE,
|
|
2366
2383
|
e
|
|
2367
2384
|
), r = t.getVar(
|
|
2368
|
-
|
|
2385
|
+
xt.GRIPCOLOR,
|
|
2369
2386
|
e
|
|
2370
2387
|
), a = t.getVar(
|
|
2371
|
-
|
|
2388
|
+
xt.GRIPHOT,
|
|
2372
2389
|
e
|
|
2373
2390
|
);
|
|
2374
2391
|
return !(n > 0) || !Number.isFinite(n) ? Jn : {
|
|
@@ -2405,7 +2422,7 @@ function ua(e, t) {
|
|
|
2405
2422
|
background: (t == null ? void 0 : t.background) ?? 0
|
|
2406
2423
|
};
|
|
2407
2424
|
}
|
|
2408
|
-
const
|
|
2425
|
+
const tu = [
|
|
2409
2426
|
"endpoint",
|
|
2410
2427
|
"midpoint",
|
|
2411
2428
|
"center",
|
|
@@ -2421,7 +2438,7 @@ function ma(e, t) {
|
|
|
2421
2438
|
}
|
|
2422
2439
|
function Qn(e, t, n, r, a) {
|
|
2423
2440
|
const o = a === -1 ? -1 : 1;
|
|
2424
|
-
return new
|
|
2441
|
+
return new nn(
|
|
2425
2442
|
e + o * n * Math.cos(r),
|
|
2426
2443
|
t + n * Math.sin(r)
|
|
2427
2444
|
);
|
|
@@ -2429,7 +2446,7 @@ function Qn(e, t, n, r, a) {
|
|
|
2429
2446
|
function er(e, t, n, r, a) {
|
|
2430
2447
|
return Math.atan2(r - t, a * (n - e));
|
|
2431
2448
|
}
|
|
2432
|
-
function
|
|
2449
|
+
function _s(e) {
|
|
2433
2450
|
const t = Qn(
|
|
2434
2451
|
e.cx,
|
|
2435
2452
|
e.cy,
|
|
@@ -2445,12 +2462,12 @@ function Us(e) {
|
|
|
2445
2462
|
), r = ma(e.startAngle, e.endAngle), a = e.normalSign * Math.tan(r / 4);
|
|
2446
2463
|
return new He(t, n, a);
|
|
2447
2464
|
}
|
|
2448
|
-
function
|
|
2465
|
+
function Us(e) {
|
|
2449
2466
|
return ma(e.startAngle, e.endAngle);
|
|
2450
2467
|
}
|
|
2451
|
-
function
|
|
2452
|
-
const n =
|
|
2453
|
-
return new
|
|
2468
|
+
function nu(e, t) {
|
|
2469
|
+
const n = Us(e), r = e.startAngle + t * n, a = e.normalSign ?? 1, o = e.majorR * Math.cos(r), i = a * e.minorR * Math.sin(r), s = e.majorX, l = e.majorY;
|
|
2470
|
+
return new nn(e.cx + o * s - i * l, e.cy + o * l + i * s);
|
|
2454
2471
|
}
|
|
2455
2472
|
function Os(e) {
|
|
2456
2473
|
return e.kind === "circle" ? new He(
|
|
@@ -2459,7 +2476,7 @@ function Os(e) {
|
|
|
2459
2476
|
0,
|
|
2460
2477
|
ze,
|
|
2461
2478
|
e.normalSign === -1
|
|
2462
|
-
) :
|
|
2479
|
+
) : _s(e);
|
|
2463
2480
|
}
|
|
2464
2481
|
function Rs(e) {
|
|
2465
2482
|
const t = Math.atan2(e.majorY, e.majorX);
|
|
@@ -2488,7 +2505,7 @@ function Hs(e) {
|
|
|
2488
2505
|
e.weights.length > 0 ? e.weights : void 0
|
|
2489
2506
|
);
|
|
2490
2507
|
}
|
|
2491
|
-
function
|
|
2508
|
+
function ru(e) {
|
|
2492
2509
|
switch (e.kind) {
|
|
2493
2510
|
case "line":
|
|
2494
2511
|
return {
|
|
@@ -2506,7 +2523,7 @@ function nu(e) {
|
|
|
2506
2523
|
case "spline":
|
|
2507
2524
|
return { kind: "spline", curve: Hs(e) };
|
|
2508
2525
|
case "point":
|
|
2509
|
-
return { kind: "point", point: new
|
|
2526
|
+
return { kind: "point", point: new nn(e.x, e.y) };
|
|
2510
2527
|
case "path":
|
|
2511
2528
|
throw new Error("path primitives must be expanded before curve conversion");
|
|
2512
2529
|
}
|
|
@@ -2575,7 +2592,7 @@ function fa(e, t) {
|
|
|
2575
2592
|
const n = new L.Vector3(t.x, t.y, t.z ?? 0).transformDirection(e).normalize();
|
|
2576
2593
|
return { x: n.x, y: n.y };
|
|
2577
2594
|
}
|
|
2578
|
-
function
|
|
2595
|
+
function Qt(e) {
|
|
2579
2596
|
const t = new L.Vector3(
|
|
2580
2597
|
e.elements[0],
|
|
2581
2598
|
e.elements[1],
|
|
@@ -2634,11 +2651,11 @@ function js(e) {
|
|
|
2634
2651
|
}
|
|
2635
2652
|
function le(e, t, n, r, a) {
|
|
2636
2653
|
if (r.length < 2) return;
|
|
2637
|
-
const o =
|
|
2638
|
-
for (const
|
|
2639
|
-
const
|
|
2640
|
-
let u =
|
|
2641
|
-
we.isPositive(Math.abs(u)) && (u = o ? u * s : 0), l.push(
|
|
2654
|
+
const o = Qt(n), s = n.elements[0] * n.elements[5] - n.elements[4] * n.elements[1] < 0 ? -1 : 1, l = [];
|
|
2655
|
+
for (const c of r) {
|
|
2656
|
+
const d = F(n, c);
|
|
2657
|
+
let u = c.bulge ?? 0;
|
|
2658
|
+
we.isPositive(Math.abs(u)) && (u = o ? u * s : 0), l.push(d.x, d.y, u);
|
|
2642
2659
|
}
|
|
2643
2660
|
e.push({ kind: "path", layer: t, closed: a, vertices: l });
|
|
2644
2661
|
}
|
|
@@ -2686,8 +2703,8 @@ function Js(e, t, n, r) {
|
|
|
2686
2703
|
var o, i;
|
|
2687
2704
|
for (const s of r.leaders)
|
|
2688
2705
|
for (const l of s.leaderLines) {
|
|
2689
|
-
const
|
|
2690
|
-
Te(e, t, n,
|
|
2706
|
+
const c = Ws(r, s, l);
|
|
2707
|
+
Te(e, t, n, c, !1);
|
|
2691
2708
|
}
|
|
2692
2709
|
const a = (s) => {
|
|
2693
2710
|
if (!s) return;
|
|
@@ -2701,10 +2718,10 @@ function qs(e, t, n, r) {
|
|
|
2701
2718
|
if (a < 2) return;
|
|
2702
2719
|
const o = r.elevation, i = r.closed ? a : a - 1;
|
|
2703
2720
|
for (let s = 0; s < i; s++) {
|
|
2704
|
-
const l = r.getPointAt(s),
|
|
2705
|
-
if (we.isPositive(Math.abs(
|
|
2721
|
+
const l = r.getPointAt(s), c = r.getPointAt((s + 1) % a), d = r.getBulgeAt(s), u = { x: l.x, y: l.y, z: o }, p = { x: c.x, y: c.y, z: o };
|
|
2722
|
+
if (we.isPositive(Math.abs(d))) {
|
|
2706
2723
|
const m = F(n, u), f = F(n, p);
|
|
2707
|
-
pa(e, t, new He(m, f,
|
|
2724
|
+
pa(e, t, new He(m, f, d));
|
|
2708
2725
|
}
|
|
2709
2726
|
}
|
|
2710
2727
|
}
|
|
@@ -2740,12 +2757,12 @@ function el(e, t, n, r) {
|
|
|
2740
2757
|
};
|
|
2741
2758
|
e.push(i);
|
|
2742
2759
|
}
|
|
2743
|
-
function
|
|
2744
|
-
const a = F(n, r.center), o = r._geo, i = (o == null ? void 0 : o.majorAxis) ?? { x: 1, y: 0, z: 0 }, s = fa(n, i), l = Math.hypot(s.x, s.y) || 1,
|
|
2760
|
+
function Mt(e, t, n, r) {
|
|
2761
|
+
const a = F(n, r.center), o = r._geo, i = (o == null ? void 0 : o.majorAxis) ?? { x: 1, y: 0, z: 0 }, s = fa(n, i), l = Math.hypot(s.x, s.y) || 1, c = new L.Vector3(
|
|
2745
2762
|
n.elements[0],
|
|
2746
2763
|
n.elements[1],
|
|
2747
2764
|
n.elements[2]
|
|
2748
|
-
).length(),
|
|
2765
|
+
).length(), d = new L.Vector3(
|
|
2749
2766
|
n.elements[4],
|
|
2750
2767
|
n.elements[5],
|
|
2751
2768
|
n.elements[6]
|
|
@@ -2756,8 +2773,8 @@ function Et(e, t, n, r) {
|
|
|
2756
2773
|
cy: a.y,
|
|
2757
2774
|
majorX: s.x / l,
|
|
2758
2775
|
majorY: s.y / l,
|
|
2759
|
-
majorR: r.majorAxisRadius *
|
|
2760
|
-
minorR: r.minorAxisRadius *
|
|
2776
|
+
majorR: r.majorAxisRadius * c,
|
|
2777
|
+
minorR: r.minorAxisRadius * d,
|
|
2761
2778
|
startAngle: r.startAngle,
|
|
2762
2779
|
endAngle: r.endAngle,
|
|
2763
2780
|
closed: r.closed,
|
|
@@ -2770,9 +2787,9 @@ function tl(e, t, n, r) {
|
|
|
2770
2787
|
const a = r._geo;
|
|
2771
2788
|
if (!((s = a == null ? void 0 : a.controlPoints) != null && s.length)) return;
|
|
2772
2789
|
const o = [];
|
|
2773
|
-
for (const
|
|
2774
|
-
const
|
|
2775
|
-
o.push(
|
|
2790
|
+
for (const c of a.controlPoints) {
|
|
2791
|
+
const d = F(n, c);
|
|
2792
|
+
o.push(d.x, d.y);
|
|
2776
2793
|
}
|
|
2777
2794
|
const i = {
|
|
2778
2795
|
kind: "spline",
|
|
@@ -2785,9 +2802,9 @@ function tl(e, t, n, r) {
|
|
|
2785
2802
|
};
|
|
2786
2803
|
if ((l = a.fitPoints) != null && l.length) {
|
|
2787
2804
|
i.fitPoints = [];
|
|
2788
|
-
for (const
|
|
2789
|
-
const
|
|
2790
|
-
i.fitPoints.push(
|
|
2805
|
+
for (const c of a.fitPoints) {
|
|
2806
|
+
const d = F(n, c);
|
|
2807
|
+
i.fitPoints.push(d.x, d.y);
|
|
2791
2808
|
}
|
|
2792
2809
|
}
|
|
2793
2810
|
e.push(i);
|
|
@@ -2823,10 +2840,10 @@ function al(e, t, n, r) {
|
|
|
2823
2840
|
}
|
|
2824
2841
|
const i = r.closed ? o : o - 1;
|
|
2825
2842
|
for (let s = 0; s < i; s++) {
|
|
2826
|
-
const l = a[s],
|
|
2827
|
-
if (we.isPositive(Math.abs(
|
|
2828
|
-
const u = F(n, l), p = F(n,
|
|
2829
|
-
pa(e, t, new He(u, p,
|
|
2843
|
+
const l = a[s], c = a[(s + 1) % o], d = l.bulge ?? 0;
|
|
2844
|
+
if (we.isPositive(Math.abs(d))) {
|
|
2845
|
+
const u = F(n, l), p = F(n, c);
|
|
2846
|
+
pa(e, t, new He(u, p, d));
|
|
2830
2847
|
}
|
|
2831
2848
|
}
|
|
2832
2849
|
}
|
|
@@ -2843,7 +2860,7 @@ function ol(e, t, n, r, a) {
|
|
|
2843
2860
|
n.elements[0],
|
|
2844
2861
|
n.elements[1],
|
|
2845
2862
|
n.elements[2]
|
|
2846
|
-
).length(),
|
|
2863
|
+
).length(), c = new L.Vector3(
|
|
2847
2864
|
n.elements[4],
|
|
2848
2865
|
n.elements[5],
|
|
2849
2866
|
n.elements[6]
|
|
@@ -2856,7 +2873,7 @@ function ol(e, t, n, r, a) {
|
|
|
2856
2873
|
majorX: i.x / s,
|
|
2857
2874
|
majorY: i.y / s,
|
|
2858
2875
|
majorR: r.majorAxisRadius * l,
|
|
2859
|
-
minorR: r.minorAxisRadius *
|
|
2876
|
+
minorR: r.minorAxisRadius * c,
|
|
2860
2877
|
startAngle: r.startAngle,
|
|
2861
2878
|
endAngle: r.endAngle,
|
|
2862
2879
|
closed: !1,
|
|
@@ -2869,10 +2886,10 @@ function il(e, t, n, r, a) {
|
|
|
2869
2886
|
if (o < 2) return;
|
|
2870
2887
|
const i = [];
|
|
2871
2888
|
for (let l = 0; l < o; l++) {
|
|
2872
|
-
const
|
|
2889
|
+
const c = r.getPointAt(l);
|
|
2873
2890
|
i.push({
|
|
2874
|
-
x:
|
|
2875
|
-
y:
|
|
2891
|
+
x: c.x,
|
|
2892
|
+
y: c.y,
|
|
2876
2893
|
z: a,
|
|
2877
2894
|
bulge: ((s = r.vertices[l]) == null ? void 0 : s.bulge) ?? 0
|
|
2878
2895
|
});
|
|
@@ -2888,37 +2905,37 @@ function sl(e, t, n, r, a) {
|
|
|
2888
2905
|
const o = [];
|
|
2889
2906
|
let i = !1;
|
|
2890
2907
|
const s = () => {
|
|
2891
|
-
const
|
|
2892
|
-
|
|
2908
|
+
const c = nr(o);
|
|
2909
|
+
c.length >= 2 && le(e, t, n, c, !1), o.length = 0;
|
|
2893
2910
|
};
|
|
2894
|
-
for (const
|
|
2895
|
-
|
|
2911
|
+
for (const c of r.curves)
|
|
2912
|
+
c instanceof Ar ? tr(
|
|
2896
2913
|
o,
|
|
2897
2914
|
{
|
|
2898
|
-
x:
|
|
2899
|
-
y:
|
|
2915
|
+
x: c.startPoint.x,
|
|
2916
|
+
y: c.startPoint.y,
|
|
2900
2917
|
z: a
|
|
2901
2918
|
},
|
|
2902
2919
|
{
|
|
2903
|
-
x:
|
|
2904
|
-
y:
|
|
2920
|
+
x: c.endPoint.x,
|
|
2921
|
+
y: c.endPoint.y,
|
|
2905
2922
|
z: a
|
|
2906
2923
|
},
|
|
2907
2924
|
0
|
|
2908
|
-
) :
|
|
2925
|
+
) : c instanceof He ? tr(
|
|
2909
2926
|
o,
|
|
2910
2927
|
{
|
|
2911
|
-
x:
|
|
2912
|
-
y:
|
|
2928
|
+
x: c.startPoint.x,
|
|
2929
|
+
y: c.startPoint.y,
|
|
2913
2930
|
z: a
|
|
2914
2931
|
},
|
|
2915
2932
|
{
|
|
2916
|
-
x:
|
|
2917
|
-
y:
|
|
2933
|
+
x: c.endPoint.x,
|
|
2934
|
+
y: c.endPoint.y,
|
|
2918
2935
|
z: a
|
|
2919
2936
|
},
|
|
2920
|
-
Gs(
|
|
2921
|
-
) :
|
|
2937
|
+
Gs(c)
|
|
2938
|
+
) : c instanceof Lr && (i = !0, s(), ol(e, t, n, c, a));
|
|
2922
2939
|
const l = nr(o);
|
|
2923
2940
|
l.length >= 2 && le(e, t, n, l, !i);
|
|
2924
2941
|
}
|
|
@@ -2945,15 +2962,15 @@ function cl(e, t, n, r) {
|
|
|
2945
2962
|
;
|
|
2946
2963
|
}
|
|
2947
2964
|
function dl(e, t, n, r, a, o, i, s = !0) {
|
|
2948
|
-
const l =
|
|
2965
|
+
const l = en(e.layer, n);
|
|
2949
2966
|
if (i && !i(l))
|
|
2950
2967
|
return;
|
|
2951
|
-
const
|
|
2952
|
-
if (
|
|
2953
|
-
a.add(
|
|
2968
|
+
const c = Ys(e, o);
|
|
2969
|
+
if (c && !a.has(c.objectId) && Zs(c)) {
|
|
2970
|
+
a.add(c.objectId);
|
|
2954
2971
|
const u = tt(t, ga(e));
|
|
2955
2972
|
nt(
|
|
2956
|
-
|
|
2973
|
+
c,
|
|
2957
2974
|
u,
|
|
2958
2975
|
l,
|
|
2959
2976
|
r,
|
|
@@ -2961,12 +2978,12 @@ function dl(e, t, n, r, a, o, i, s = !0) {
|
|
|
2961
2978
|
o,
|
|
2962
2979
|
i,
|
|
2963
2980
|
s
|
|
2964
|
-
), a.delete(
|
|
2981
|
+
), a.delete(c.objectId);
|
|
2965
2982
|
return;
|
|
2966
2983
|
}
|
|
2967
2984
|
cl(r, l, t, e);
|
|
2968
|
-
const
|
|
2969
|
-
r.push({ kind: "point", layer: l, x:
|
|
2985
|
+
const d = F(t, e.position);
|
|
2986
|
+
r.push({ kind: "point", layer: l, x: d.x, y: d.y });
|
|
2970
2987
|
}
|
|
2971
2988
|
function ul(e, t, n, r) {
|
|
2972
2989
|
let a = r.boundaryPath();
|
|
@@ -2995,12 +3012,12 @@ function pl(e) {
|
|
|
2995
3012
|
const t = (n = e.attributeIterator) == null ? void 0 : n.call(e);
|
|
2996
3013
|
return t ? typeof t.toArray == "function" ? t.toArray() : [...t] : [];
|
|
2997
3014
|
}
|
|
2998
|
-
function
|
|
3015
|
+
function en(e, t) {
|
|
2999
3016
|
return e === "0" ? t : e;
|
|
3000
3017
|
}
|
|
3001
3018
|
function va(e, t, n, r, a, o, i, s = !0) {
|
|
3002
3019
|
if (!e.visibility) return;
|
|
3003
|
-
const l =
|
|
3020
|
+
const l = en(e.layer, n);
|
|
3004
3021
|
if (!(i && !i(l))) {
|
|
3005
3022
|
if (e instanceof Eo) {
|
|
3006
3023
|
dl(
|
|
@@ -3016,13 +3033,13 @@ function va(e, t, n, r, a, o, i, s = !0) {
|
|
|
3016
3033
|
return;
|
|
3017
3034
|
}
|
|
3018
3035
|
if (js(e)) {
|
|
3019
|
-
const
|
|
3020
|
-
if (!
|
|
3021
|
-
a.add(
|
|
3022
|
-
const
|
|
3036
|
+
const c = ha(e, o);
|
|
3037
|
+
if (!c || a.has(c.objectId)) return;
|
|
3038
|
+
a.add(c.objectId);
|
|
3039
|
+
const d = e.getFullInsertionTransform(), u = Math.max(1, e.columnCount ?? 1), p = Math.max(1, e.rowCount ?? 1), m = e.columnSpacing ?? 0, f = e.rowSpacing ?? 0, h = en(e.layer, n);
|
|
3023
3040
|
for (let w = 0; w < p; w++)
|
|
3024
3041
|
for (let v = 0; v < u; v++) {
|
|
3025
|
-
const g = tt(t,
|
|
3042
|
+
const g = tt(t, d);
|
|
3026
3043
|
(v !== 0 || w !== 0) && g.multiply(
|
|
3027
3044
|
new L.Matrix4().makeTranslation(v * m, w * f, 0)
|
|
3028
3045
|
);
|
|
@@ -3033,7 +3050,7 @@ function va(e, t, n, r, a, o, i, s = !0) {
|
|
|
3033
3050
|
x: b.x,
|
|
3034
3051
|
y: b.y
|
|
3035
3052
|
}), nt(
|
|
3036
|
-
|
|
3053
|
+
c,
|
|
3037
3054
|
g,
|
|
3038
3055
|
h,
|
|
3039
3056
|
r,
|
|
@@ -3054,19 +3071,19 @@ function va(e, t, n, r, a, o, i, s = !0) {
|
|
|
3054
3071
|
i,
|
|
3055
3072
|
s
|
|
3056
3073
|
);
|
|
3057
|
-
a.delete(
|
|
3074
|
+
a.delete(c.objectId);
|
|
3058
3075
|
return;
|
|
3059
3076
|
}
|
|
3060
3077
|
if (e instanceof So) {
|
|
3061
|
-
const
|
|
3062
|
-
if (!
|
|
3063
|
-
a.add(
|
|
3078
|
+
const c = e, d = Xs(c, o);
|
|
3079
|
+
if (!d || a.has(d.objectId)) return;
|
|
3080
|
+
a.add(d.objectId);
|
|
3064
3081
|
const u = tt(
|
|
3065
3082
|
t,
|
|
3066
|
-
|
|
3083
|
+
c.getFullDimBlockTransform()
|
|
3067
3084
|
);
|
|
3068
3085
|
nt(
|
|
3069
|
-
|
|
3086
|
+
d,
|
|
3070
3087
|
u,
|
|
3071
3088
|
l,
|
|
3072
3089
|
r,
|
|
@@ -3074,30 +3091,30 @@ function va(e, t, n, r, a, o, i, s = !0) {
|
|
|
3074
3091
|
o,
|
|
3075
3092
|
i,
|
|
3076
3093
|
!0
|
|
3077
|
-
), a.delete(
|
|
3094
|
+
), a.delete(d.objectId);
|
|
3078
3095
|
return;
|
|
3079
3096
|
}
|
|
3080
3097
|
if ($s(e)) {
|
|
3081
3098
|
Vs(r, l, t, e);
|
|
3082
3099
|
return;
|
|
3083
3100
|
}
|
|
3084
|
-
if (e instanceof
|
|
3085
|
-
|
|
3101
|
+
if (e instanceof Io) {
|
|
3102
|
+
Qt(t) ? Qs(
|
|
3086
3103
|
r,
|
|
3087
3104
|
l,
|
|
3088
3105
|
t,
|
|
3089
3106
|
e.center,
|
|
3090
3107
|
e.radius,
|
|
3091
3108
|
e.normal
|
|
3092
|
-
) :
|
|
3109
|
+
) : Mt(r, l, t, fl(e));
|
|
3093
3110
|
return;
|
|
3094
3111
|
}
|
|
3095
|
-
if (e instanceof
|
|
3096
|
-
|
|
3112
|
+
if (e instanceof Po) {
|
|
3113
|
+
Qt(t) ? el(r, l, t, e) : Mt(r, l, t, hl(e));
|
|
3097
3114
|
return;
|
|
3098
3115
|
}
|
|
3099
|
-
if (e instanceof
|
|
3100
|
-
|
|
3116
|
+
if (e instanceof rn) {
|
|
3117
|
+
Mt(r, l, t, e);
|
|
3101
3118
|
return;
|
|
3102
3119
|
}
|
|
3103
3120
|
if (e instanceof zo) {
|
|
@@ -3113,17 +3130,17 @@ function va(e, t, n, r, a, o, i, s = !0) {
|
|
|
3113
3130
|
return;
|
|
3114
3131
|
}
|
|
3115
3132
|
if (e instanceof Fo) {
|
|
3116
|
-
const
|
|
3117
|
-
for (let
|
|
3118
|
-
|
|
3119
|
-
Te(r, l, t,
|
|
3133
|
+
const c = [];
|
|
3134
|
+
for (let d = 0; d < e.numberOfVertices; d++)
|
|
3135
|
+
c.push(e.getPointAt(d));
|
|
3136
|
+
Te(r, l, t, c, e.closed);
|
|
3120
3137
|
return;
|
|
3121
3138
|
}
|
|
3122
|
-
if (e instanceof
|
|
3139
|
+
if (e instanceof _o) {
|
|
3123
3140
|
s && ll(r, l, t, e);
|
|
3124
3141
|
return;
|
|
3125
3142
|
}
|
|
3126
|
-
if (e instanceof
|
|
3143
|
+
if (e instanceof Uo) {
|
|
3127
3144
|
e.basePoint, e.unitDir;
|
|
3128
3145
|
return;
|
|
3129
3146
|
}
|
|
@@ -3162,13 +3179,13 @@ function va(e, t, n, r, a, o, i, s = !0) {
|
|
|
3162
3179
|
return;
|
|
3163
3180
|
}
|
|
3164
3181
|
if (e instanceof Do) {
|
|
3165
|
-
const
|
|
3166
|
-
|
|
3182
|
+
const c = e.subGetGripPoints();
|
|
3183
|
+
c.length >= 2 && Te(r, l, t, c, c.length >= 3);
|
|
3167
3184
|
return;
|
|
3168
3185
|
}
|
|
3169
3186
|
if (e instanceof No) {
|
|
3170
|
-
const
|
|
3171
|
-
|
|
3187
|
+
const c = e.vertices;
|
|
3188
|
+
c.length >= 2 && Te(r, l, t, c, !1);
|
|
3172
3189
|
return;
|
|
3173
3190
|
}
|
|
3174
3191
|
if (e instanceof $o) {
|
|
@@ -3180,13 +3197,13 @@ function va(e, t, n, r, a, o, i, s = !0) {
|
|
|
3180
3197
|
return;
|
|
3181
3198
|
}
|
|
3182
3199
|
if (e instanceof Xo) {
|
|
3183
|
-
const
|
|
3184
|
-
r.push({ kind: "point", layer: l, x:
|
|
3200
|
+
const c = F(t, e.position);
|
|
3201
|
+
r.push({ kind: "point", layer: l, x: c.x, y: c.y });
|
|
3185
3202
|
return;
|
|
3186
3203
|
}
|
|
3187
3204
|
if (e instanceof Yo) {
|
|
3188
|
-
const
|
|
3189
|
-
r.push({ kind: "point", layer: l, x:
|
|
3205
|
+
const c = F(t, e.location);
|
|
3206
|
+
r.push({ kind: "point", layer: l, x: c.x, y: c.y });
|
|
3190
3207
|
return;
|
|
3191
3208
|
}
|
|
3192
3209
|
if (e instanceof Zo) {
|
|
@@ -3198,8 +3215,8 @@ function va(e, t, n, r, a, o, i, s = !0) {
|
|
|
3198
3215
|
return;
|
|
3199
3216
|
}
|
|
3200
3217
|
if (e instanceof Go) {
|
|
3201
|
-
const
|
|
3202
|
-
r.push({ kind: "point", layer: l, x:
|
|
3218
|
+
const c = F(t, e.position);
|
|
3219
|
+
r.push({ kind: "point", layer: l, x: c.x, y: c.y });
|
|
3203
3220
|
}
|
|
3204
3221
|
}
|
|
3205
3222
|
}
|
|
@@ -3217,7 +3234,7 @@ function nt(e, t, n, r, a, o, i, s = !0) {
|
|
|
3217
3234
|
);
|
|
3218
3235
|
}
|
|
3219
3236
|
function fl(e) {
|
|
3220
|
-
return new
|
|
3237
|
+
return new rn(
|
|
3221
3238
|
e.center,
|
|
3222
3239
|
e.normal,
|
|
3223
3240
|
{ x: 1, y: 0, z: 0 },
|
|
@@ -3228,7 +3245,7 @@ function fl(e) {
|
|
|
3228
3245
|
);
|
|
3229
3246
|
}
|
|
3230
3247
|
function hl(e) {
|
|
3231
|
-
return new
|
|
3248
|
+
return new rn(
|
|
3232
3249
|
e.center,
|
|
3233
3250
|
e.normal,
|
|
3234
3251
|
{ x: 1, y: 0, z: 0 },
|
|
@@ -3277,13 +3294,13 @@ function wl(e) {
|
|
|
3277
3294
|
return e;
|
|
3278
3295
|
}
|
|
3279
3296
|
}
|
|
3280
|
-
const ge = ["en", "zh", "cs", "tr", "ar"],
|
|
3297
|
+
const ge = ["en", "zh", "cs", "tr", "ar"], xa = {
|
|
3281
3298
|
en: "EN",
|
|
3282
3299
|
zh: "中",
|
|
3283
3300
|
cs: "CS",
|
|
3284
3301
|
tr: "TR",
|
|
3285
3302
|
ar: "AR"
|
|
3286
|
-
},
|
|
3303
|
+
}, ya = "mlcad-html-locale", vl = {
|
|
3287
3304
|
en: {
|
|
3288
3305
|
toolbar: {
|
|
3289
3306
|
viewerTools: "Viewer tools",
|
|
@@ -4273,7 +4290,7 @@ const ge = ["en", "zh", "cs", "tr", "ar"], ya = {
|
|
|
4273
4290
|
tooManyAttempts: "Çok fazla yanlış parola denemesi yapıldı. Tekrar denemek için sayfayı yenileyin."
|
|
4274
4291
|
}
|
|
4275
4292
|
}
|
|
4276
|
-
},
|
|
4293
|
+
}, xl = {
|
|
4277
4294
|
toolbar: {
|
|
4278
4295
|
viewerTools: "أدوات العارض",
|
|
4279
4296
|
select: "تحديد",
|
|
@@ -4511,9 +4528,9 @@ const ge = ["en", "zh", "cs", "tr", "ar"], ya = {
|
|
|
4511
4528
|
}
|
|
4512
4529
|
}, ar = {
|
|
4513
4530
|
...vl,
|
|
4514
|
-
ar:
|
|
4531
|
+
ar: xl
|
|
4515
4532
|
};
|
|
4516
|
-
function
|
|
4533
|
+
function au(e) {
|
|
4517
4534
|
return ge.includes(e);
|
|
4518
4535
|
}
|
|
4519
4536
|
function Ve(e) {
|
|
@@ -4524,7 +4541,7 @@ function Ve(e) {
|
|
|
4524
4541
|
return n;
|
|
4525
4542
|
return null;
|
|
4526
4543
|
}
|
|
4527
|
-
function
|
|
4544
|
+
function yl() {
|
|
4528
4545
|
if (typeof navigator > "u") return "en";
|
|
4529
4546
|
const e = [
|
|
4530
4547
|
...navigator.languages ?? [],
|
|
@@ -4539,11 +4556,11 @@ function xl() {
|
|
|
4539
4556
|
function bl() {
|
|
4540
4557
|
if (typeof localStorage < "u")
|
|
4541
4558
|
try {
|
|
4542
|
-
const e = localStorage.getItem(
|
|
4559
|
+
const e = localStorage.getItem(ya), t = Ve(e);
|
|
4543
4560
|
if (t) return t;
|
|
4544
4561
|
} catch {
|
|
4545
4562
|
}
|
|
4546
|
-
return
|
|
4563
|
+
return yl();
|
|
4547
4564
|
}
|
|
4548
4565
|
function or(e, t) {
|
|
4549
4566
|
const n = t.split(".");
|
|
@@ -4560,7 +4577,7 @@ function kl(e, t) {
|
|
|
4560
4577
|
return a != null ? String(a) : `{${r}}`;
|
|
4561
4578
|
}) : e;
|
|
4562
4579
|
}
|
|
4563
|
-
class
|
|
4580
|
+
class ou {
|
|
4564
4581
|
/**
|
|
4565
4582
|
* @param initialLocale - Starting locale; defaults to {@link detectAcExHtmlLocale} when omitted.
|
|
4566
4583
|
*/
|
|
@@ -4573,7 +4590,7 @@ class au {
|
|
|
4573
4590
|
}
|
|
4574
4591
|
/** Short badge text shown on the language parent button and locale strip. */
|
|
4575
4592
|
get localeBadge() {
|
|
4576
|
-
return
|
|
4593
|
+
return xa[this._locale];
|
|
4577
4594
|
}
|
|
4578
4595
|
/**
|
|
4579
4596
|
* Registers a callback invoked after {@link AcExHtmlI18n.setLocale} or
|
|
@@ -4615,7 +4632,7 @@ class au {
|
|
|
4615
4632
|
if (this._locale !== t) {
|
|
4616
4633
|
this._locale = t, typeof document < "u" && (document.documentElement.lang = t);
|
|
4617
4634
|
try {
|
|
4618
|
-
typeof localStorage < "u" && localStorage.setItem(
|
|
4635
|
+
typeof localStorage < "u" && localStorage.setItem(ya, t);
|
|
4619
4636
|
} catch {
|
|
4620
4637
|
}
|
|
4621
4638
|
this.applyToDocument(), (n = this._onChange) == null || n.call(this);
|
|
@@ -4638,8 +4655,8 @@ class au {
|
|
|
4638
4655
|
const o = a.dataset.i18nKey, i = ((l = a.dataset.i18nAttr) == null ? void 0 : l.split(/\s+/)) ?? [];
|
|
4639
4656
|
if (!o || i.length === 0) return;
|
|
4640
4657
|
const s = this.t(o);
|
|
4641
|
-
for (const
|
|
4642
|
-
a.setAttribute(
|
|
4658
|
+
for (const c of i)
|
|
4659
|
+
a.setAttribute(c, s);
|
|
4643
4660
|
});
|
|
4644
4661
|
const r = document.getElementById("mlcad-lang-badge");
|
|
4645
4662
|
r && (r.textContent = this.localeBadge);
|
|
@@ -4649,7 +4666,7 @@ const ba = 1128612673, ir = 1e5;
|
|
|
4649
4666
|
function dt(e) {
|
|
4650
4667
|
if (e.version !== D)
|
|
4651
4668
|
throw new Error(`Unsupported chunk version: ${e.version}`);
|
|
4652
|
-
const t = new
|
|
4669
|
+
const t = new ln();
|
|
4653
4670
|
t.writeU32(ba), t.writeU8(D), t.writeU8(0), t.writeU8(0), t.writeU8(0), t.writeString(e.layoutBtrId), t.writeU32(e.lineBatches.length);
|
|
4654
4671
|
for (const n of e.lineBatches)
|
|
4655
4672
|
$r(t, n);
|
|
@@ -4659,7 +4676,7 @@ function dt(e) {
|
|
|
4659
4676
|
return t.toUint8Array();
|
|
4660
4677
|
}
|
|
4661
4678
|
function ka(e) {
|
|
4662
|
-
const t = new
|
|
4679
|
+
const t = new cn(e);
|
|
4663
4680
|
if (t.readU32() !== ba)
|
|
4664
4681
|
throw new Error("Invalid chunk magic");
|
|
4665
4682
|
const r = t.readU8();
|
|
@@ -4669,13 +4686,13 @@ function ka(e) {
|
|
|
4669
4686
|
if (o > ir)
|
|
4670
4687
|
throw new Error("Chunk line batch count exceeds limit");
|
|
4671
4688
|
const i = [];
|
|
4672
|
-
for (let
|
|
4689
|
+
for (let c = 0; c < o; c++)
|
|
4673
4690
|
i.push(Vr(t));
|
|
4674
4691
|
const s = t.readU32();
|
|
4675
4692
|
if (s > ir)
|
|
4676
4693
|
throw new Error("Chunk mesh batch count exceeds limit");
|
|
4677
4694
|
const l = [];
|
|
4678
|
-
for (let
|
|
4695
|
+
for (let c = 0; c < s; c++)
|
|
4679
4696
|
l.push(Yr(t));
|
|
4680
4697
|
return {
|
|
4681
4698
|
version: D,
|
|
@@ -4685,7 +4702,7 @@ function ka(e) {
|
|
|
4685
4702
|
};
|
|
4686
4703
|
}
|
|
4687
4704
|
function Ll(e) {
|
|
4688
|
-
const t = dt(e), n =
|
|
4705
|
+
const t = dt(e), n = Ue(t).bytes;
|
|
4689
4706
|
return { uncompressed: t, compressed: n };
|
|
4690
4707
|
}
|
|
4691
4708
|
async function Al(e) {
|
|
@@ -4693,13 +4710,13 @@ async function Al(e) {
|
|
|
4693
4710
|
return { uncompressed: t, compressed: n };
|
|
4694
4711
|
}
|
|
4695
4712
|
function Cl(e) {
|
|
4696
|
-
return ka(
|
|
4713
|
+
return ka(dn(e));
|
|
4697
4714
|
}
|
|
4698
4715
|
function La(e) {
|
|
4699
4716
|
return Rr(e) ? Cl(e) : ka(e);
|
|
4700
4717
|
}
|
|
4701
|
-
const Aa = 1, El = 2 * 1024 * 1024, ut = 2 * 1024 * 1024,
|
|
4702
|
-
function
|
|
4718
|
+
const Aa = 1, El = 2 * 1024 * 1024, ut = 2 * 1024 * 1024, iu = 512 * 1024, Ml = 8 * 1024 * 1024, sr = 12 * 1024 * 1024, Sl = 2 * 1024 * 1024, bn = 6;
|
|
4719
|
+
function kn(e, t, n) {
|
|
4703
4720
|
const r = e.length, a = r > 0 ? Math.max(
|
|
4704
4721
|
1,
|
|
4705
4722
|
Math.min(
|
|
@@ -4708,12 +4725,12 @@ function bn(e, t, n) {
|
|
|
4708
4725
|
)
|
|
4709
4726
|
) : 0, o = new Array(r);
|
|
4710
4727
|
let i = 0, s = 0;
|
|
4711
|
-
const l = (
|
|
4712
|
-
const
|
|
4713
|
-
() => n(e[
|
|
4728
|
+
const l = (c) => {
|
|
4729
|
+
const d = Promise.resolve().then(
|
|
4730
|
+
() => n(e[c], c)
|
|
4714
4731
|
);
|
|
4715
|
-
|
|
4716
|
-
}), o[
|
|
4732
|
+
d.catch(() => {
|
|
4733
|
+
}), o[c] = d, i += 1;
|
|
4717
4734
|
};
|
|
4718
4735
|
for (; i < a; )
|
|
4719
4736
|
l(i);
|
|
@@ -4721,20 +4738,20 @@ function bn(e, t, n) {
|
|
|
4721
4738
|
async next() {
|
|
4722
4739
|
if (s >= r)
|
|
4723
4740
|
return null;
|
|
4724
|
-
const
|
|
4741
|
+
const c = s;
|
|
4725
4742
|
s += 1;
|
|
4726
|
-
const
|
|
4727
|
-
return i < r && l(i), { item: e[
|
|
4743
|
+
const d = await o[c];
|
|
4744
|
+
return i < r && l(i), { item: e[c], index: c, bytes: d };
|
|
4728
4745
|
}
|
|
4729
4746
|
};
|
|
4730
4747
|
}
|
|
4731
|
-
const
|
|
4732
|
-
function
|
|
4748
|
+
const Il = /^(?:\.[/\\])?[A-Za-z0-9._-]+(?:[/\\][A-Za-z0-9._-]+)*$/;
|
|
4749
|
+
function Pl(e) {
|
|
4733
4750
|
const t = e.trim();
|
|
4734
|
-
return !t || t !== e || t.startsWith("/") || t.startsWith("\\") || t.startsWith("//") || /^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(t) || t.includes("..") || t.includes("\\") ? !1 :
|
|
4751
|
+
return !t || t !== e || t.startsWith("/") || t.startsWith("\\") || t.startsWith("//") || /^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(t) || t.includes("..") || t.includes("\\") ? !1 : Il.test(t);
|
|
4735
4752
|
}
|
|
4736
4753
|
function rt(e, t) {
|
|
4737
|
-
if (!
|
|
4754
|
+
if (!Pl(e))
|
|
4738
4755
|
throw new Error(`Invalid ${t}: must be a relative package path`);
|
|
4739
4756
|
}
|
|
4740
4757
|
function mt(e) {
|
|
@@ -4778,11 +4795,12 @@ function zl(e) {
|
|
|
4778
4795
|
lineBatches: [],
|
|
4779
4796
|
meshBatches: [],
|
|
4780
4797
|
viewports: t.viewports,
|
|
4781
|
-
...t.savedView ? { savedView: t.savedView } : {}
|
|
4798
|
+
...t.savedView ? { savedView: t.savedView } : {},
|
|
4799
|
+
...t.fitExtents ? { fitExtents: t.fitExtents } : {}
|
|
4782
4800
|
}))
|
|
4783
4801
|
};
|
|
4784
4802
|
}
|
|
4785
|
-
function
|
|
4803
|
+
function Ln(e, t) {
|
|
4786
4804
|
rt(t, "chunk href");
|
|
4787
4805
|
let n, r;
|
|
4788
4806
|
try {
|
|
@@ -4811,44 +4829,44 @@ function Bl(e, t) {
|
|
|
4811
4829
|
throw new Error("manifestUrl must be same-origin");
|
|
4812
4830
|
return n.toString();
|
|
4813
4831
|
}
|
|
4814
|
-
async function
|
|
4832
|
+
async function An(e, t, n) {
|
|
4815
4833
|
const r = await e(t);
|
|
4816
4834
|
if (!r.ok)
|
|
4817
4835
|
throw new Error(`Failed to load ${n} (${r.status})`);
|
|
4818
4836
|
const a = r.headers.get("content-length");
|
|
4819
4837
|
if (a != null) {
|
|
4820
4838
|
const i = Number(a);
|
|
4821
|
-
if (Number.isFinite(i) && i >
|
|
4839
|
+
if (Number.isFinite(i) && i > _t)
|
|
4822
4840
|
throw new Error(`${n} exceeds size limit`);
|
|
4823
4841
|
}
|
|
4824
4842
|
const o = await r.arrayBuffer();
|
|
4825
|
-
if (o.byteLength >
|
|
4843
|
+
if (o.byteLength > _t)
|
|
4826
4844
|
throw new Error(`${n} exceeds size limit`);
|
|
4827
4845
|
return new Uint8Array(o);
|
|
4828
4846
|
}
|
|
4829
|
-
async function
|
|
4847
|
+
async function su(e) {
|
|
4830
4848
|
var p;
|
|
4831
|
-
const t = e.fetchImpl ?? pt, n = e.loadOsnap !== !1, r = e.fetchConcurrency ??
|
|
4849
|
+
const t = e.fetchImpl ?? pt, n = e.loadOsnap !== !1, r = e.fetchConcurrency ?? bn, a = await t(e.manifestUrl);
|
|
4832
4850
|
if (!a.ok)
|
|
4833
4851
|
throw new Error(
|
|
4834
4852
|
`Failed to load package manifest (${a.status})`
|
|
4835
4853
|
);
|
|
4836
4854
|
const o = mt(await a.json()), i = zl(o), s = new Map(
|
|
4837
4855
|
i.layouts.map((m) => [m.btrId, m])
|
|
4838
|
-
), l = e.layoutFilter == null ? null : e.layoutFilter instanceof Set ? e.layoutFilter : new Set(e.layoutFilter),
|
|
4856
|
+
), l = e.layoutFilter == null ? null : e.layoutFilter instanceof Set ? e.layoutFilter : new Set(e.layoutFilter), c = o.chunks.filter(
|
|
4839
4857
|
(m) => l == null || l.has(m.layoutBtrId)
|
|
4840
|
-
),
|
|
4841
|
-
|
|
4858
|
+
), d = kn(
|
|
4859
|
+
c,
|
|
4842
4860
|
r,
|
|
4843
|
-
(m) =>
|
|
4861
|
+
(m) => An(
|
|
4844
4862
|
t,
|
|
4845
|
-
|
|
4863
|
+
Ln(e.manifestUrl, m.href),
|
|
4846
4864
|
"geometry chunk"
|
|
4847
4865
|
)
|
|
4848
4866
|
);
|
|
4849
4867
|
let u = 0;
|
|
4850
4868
|
for (; ; ) {
|
|
4851
|
-
const m = await
|
|
4869
|
+
const m = await d.next();
|
|
4852
4870
|
if (!m)
|
|
4853
4871
|
break;
|
|
4854
4872
|
const f = m.item, h = s.get(f.layoutBtrId);
|
|
@@ -4859,7 +4877,7 @@ async function iu(e) {
|
|
|
4859
4877
|
throw new Error("Chunk layout mismatch");
|
|
4860
4878
|
Ca(h, w.lineBatches, w.meshBatches), u += 1, await ((p = e.onChunk) == null ? void 0 : p.call(e, h, f, {
|
|
4861
4879
|
loadedChunks: u,
|
|
4862
|
-
totalChunks:
|
|
4880
|
+
totalChunks: c.length,
|
|
4863
4881
|
layoutBtrId: f.layoutBtrId,
|
|
4864
4882
|
chunkId: f.id
|
|
4865
4883
|
}));
|
|
@@ -4879,29 +4897,29 @@ async function iu(e) {
|
|
|
4879
4897
|
}
|
|
4880
4898
|
return i;
|
|
4881
4899
|
}
|
|
4882
|
-
async function
|
|
4900
|
+
async function lu(e, t, n, r, a = {}) {
|
|
4883
4901
|
var p;
|
|
4884
|
-
const o = a.fetchImpl ?? pt, i = a.fetchConcurrency ??
|
|
4902
|
+
const o = a.fetchImpl ?? pt, i = a.fetchConcurrency ?? bn, s = e.layouts.find((m) => m.btrId === n);
|
|
4885
4903
|
if (!s)
|
|
4886
4904
|
throw new Error(`Layout not found: ${n}`);
|
|
4887
|
-
const l = new Map(e.chunks.map((m) => [m.id, m])),
|
|
4888
|
-
|
|
4905
|
+
const l = new Map(e.chunks.map((m) => [m.id, m])), c = s.chunkIds.map((m) => l.get(m)).filter((m) => m != null), d = kn(
|
|
4906
|
+
c,
|
|
4889
4907
|
i,
|
|
4890
|
-
(m) =>
|
|
4908
|
+
(m) => An(
|
|
4891
4909
|
o,
|
|
4892
|
-
|
|
4910
|
+
Ln(t, m.href),
|
|
4893
4911
|
"geometry chunk"
|
|
4894
4912
|
)
|
|
4895
4913
|
);
|
|
4896
4914
|
let u = 0;
|
|
4897
4915
|
for (; ; ) {
|
|
4898
|
-
const m = await
|
|
4916
|
+
const m = await d.next();
|
|
4899
4917
|
if (!m)
|
|
4900
4918
|
break;
|
|
4901
4919
|
const f = m.item, h = La(m.bytes);
|
|
4902
4920
|
Ca(r, h.lineBatches, h.meshBatches), u += 1, await ((p = a.onChunk) == null ? void 0 : p.call(a, r, f, {
|
|
4903
4921
|
loadedChunks: u,
|
|
4904
|
-
totalChunks:
|
|
4922
|
+
totalChunks: c.length,
|
|
4905
4923
|
layoutBtrId: n,
|
|
4906
4924
|
chunkId: f.id
|
|
4907
4925
|
}));
|
|
@@ -4922,16 +4940,16 @@ async function Tl(e, t, n, r, a = {}) {
|
|
|
4922
4940
|
), l = i.map((g) => s.get(g)).filter((g) => g != null);
|
|
4923
4941
|
if (l.length === 0)
|
|
4924
4942
|
return;
|
|
4925
|
-
const
|
|
4943
|
+
const c = a.fetchImpl ?? pt, d = a.fetchConcurrency ?? bn, u = a.yieldFn ?? (() => new Promise((g) => {
|
|
4926
4944
|
setTimeout(g, 0);
|
|
4927
4945
|
})), p = l.reduce((g, b) => g + b.primitiveCount, 0), m = p > 0 ? new Array(p) : [];
|
|
4928
4946
|
let f = 0;
|
|
4929
|
-
const h =
|
|
4947
|
+
const h = kn(
|
|
4930
4948
|
l,
|
|
4931
|
-
|
|
4932
|
-
(g) =>
|
|
4933
|
-
|
|
4934
|
-
|
|
4949
|
+
d,
|
|
4950
|
+
(g) => An(
|
|
4951
|
+
c,
|
|
4952
|
+
Ln(t, g.href),
|
|
4935
4953
|
"osnap chunk"
|
|
4936
4954
|
)
|
|
4937
4955
|
);
|
|
@@ -4940,7 +4958,7 @@ async function Tl(e, t, n, r, a = {}) {
|
|
|
4940
4958
|
const g = await h.next();
|
|
4941
4959
|
if (!g)
|
|
4942
4960
|
break;
|
|
4943
|
-
const b = g.item, E =
|
|
4961
|
+
const b = g.item, E = Ui(g.bytes).primitives;
|
|
4944
4962
|
if (p > 0)
|
|
4945
4963
|
for (let A = 0; A < E.length; A++)
|
|
4946
4964
|
m[f++] = E[A];
|
|
@@ -4960,10 +4978,10 @@ function Ca(e, t, n) {
|
|
|
4960
4978
|
e.lineBatches.push(...t), e.meshBatches.push(...n);
|
|
4961
4979
|
}
|
|
4962
4980
|
const re = "drawing.acex.json", Ea = `./${re}`, Fl = ["manifest", "acex"], at = "https://acex-package.invalid/", pt = (e, t) => globalThis.fetch(e, t);
|
|
4963
|
-
function
|
|
4981
|
+
function cu(e) {
|
|
4964
4982
|
return e.directoryPicker || e.webkitDirectory;
|
|
4965
4983
|
}
|
|
4966
|
-
function
|
|
4984
|
+
function du(e) {
|
|
4967
4985
|
const t = (e == null ? void 0 : e.hasDirectoryPicker) ?? typeof globalThis.showDirectoryPicker == "function", n = (e == null ? void 0 : e.isSecureContext) ?? (typeof globalThis.isSecureContext == "boolean" ? globalThis.isSecureContext : !0);
|
|
4968
4986
|
let r = e == null ? void 0 : e.supportsWebkitDirectoryAttribute;
|
|
4969
4987
|
if (r == null && (r = !1, typeof document < "u")) {
|
|
@@ -4977,7 +4995,7 @@ function cu(e) {
|
|
|
4977
4995
|
webkitDirectory: r
|
|
4978
4996
|
};
|
|
4979
4997
|
}
|
|
4980
|
-
function
|
|
4998
|
+
function _l(e) {
|
|
4981
4999
|
var r;
|
|
4982
5000
|
const t = e.startsWith("?") ? e.slice(1) : e;
|
|
4983
5001
|
if (!t) return null;
|
|
@@ -4993,22 +5011,22 @@ function Ul(e) {
|
|
|
4993
5011
|
}
|
|
4994
5012
|
return null;
|
|
4995
5013
|
}
|
|
4996
|
-
function
|
|
5014
|
+
function uu(e) {
|
|
4997
5015
|
var r;
|
|
4998
|
-
const t =
|
|
5016
|
+
const t = _l(e.search ?? "");
|
|
4999
5017
|
if (t)
|
|
5000
5018
|
return { href: t, fromQuery: !0 };
|
|
5001
5019
|
const n = (r = e.configManifestUrl) == null ? void 0 : r.trim();
|
|
5002
5020
|
return n ? { href: n, fromQuery: !1 } : { href: Ea, fromQuery: !1 };
|
|
5003
5021
|
}
|
|
5004
|
-
function
|
|
5022
|
+
function Ul(e) {
|
|
5005
5023
|
return /^https?:\/\//i.test(e.trim());
|
|
5006
5024
|
}
|
|
5007
|
-
function
|
|
5025
|
+
function mu(e, t) {
|
|
5008
5026
|
const n = e.trim();
|
|
5009
5027
|
if (!n)
|
|
5010
5028
|
throw new Error("Missing manifest URL");
|
|
5011
|
-
if (
|
|
5029
|
+
if (Ul(n))
|
|
5012
5030
|
try {
|
|
5013
5031
|
return new URL(n).toString();
|
|
5014
5032
|
} catch {
|
|
@@ -5016,7 +5034,7 @@ function uu(e, t) {
|
|
|
5016
5034
|
}
|
|
5017
5035
|
return Bl(n, t);
|
|
5018
5036
|
}
|
|
5019
|
-
async function
|
|
5037
|
+
async function pu(e, t = pt) {
|
|
5020
5038
|
let n;
|
|
5021
5039
|
try {
|
|
5022
5040
|
n = await t(e);
|
|
@@ -5077,7 +5095,7 @@ function Rl(e) {
|
|
|
5077
5095
|
const n = t[0].split("/")[0];
|
|
5078
5096
|
return !n || n === re || !t.every((o) => o.split("/")[0] === n) ? null : t.some((o) => o.includes("/")) ? n : null;
|
|
5079
5097
|
}
|
|
5080
|
-
function
|
|
5098
|
+
function fu(e) {
|
|
5081
5099
|
const t = [...e], n = Rl(t.map((a) => a.relativePath)), r = /* @__PURE__ */ new Map();
|
|
5082
5100
|
for (const a of t) {
|
|
5083
5101
|
const o = Ol(a.relativePath, n);
|
|
@@ -5085,7 +5103,7 @@ function pu(e) {
|
|
|
5085
5103
|
}
|
|
5086
5104
|
return r;
|
|
5087
5105
|
}
|
|
5088
|
-
function
|
|
5106
|
+
function hu(e, t) {
|
|
5089
5107
|
const n = (t == null ? void 0 : t.manifestFileName) ?? re;
|
|
5090
5108
|
if (!e.has(n))
|
|
5091
5109
|
throw new Error(`Missing ${n} in selected folder`);
|
|
@@ -5097,24 +5115,24 @@ function fu(e, t) {
|
|
|
5097
5115
|
const s = new URL(String(i));
|
|
5098
5116
|
if (s.origin !== a)
|
|
5099
5117
|
return new Response(null, { status: 404 });
|
|
5100
|
-
const l = decodeURIComponent(s.pathname.replace(/^\/+/, "")),
|
|
5101
|
-
if (!
|
|
5118
|
+
const l = decodeURIComponent(s.pathname.replace(/^\/+/, "")), c = e.get(l);
|
|
5119
|
+
if (!c)
|
|
5102
5120
|
return new Response(null, { status: 404 });
|
|
5103
5121
|
if (l.endsWith(".json")) {
|
|
5104
|
-
const u = new TextDecoder().decode(
|
|
5122
|
+
const u = new TextDecoder().decode(c);
|
|
5105
5123
|
return new Response(u, {
|
|
5106
5124
|
status: 200,
|
|
5107
5125
|
headers: { "Content-Type": "application/json" }
|
|
5108
5126
|
});
|
|
5109
5127
|
}
|
|
5110
|
-
const
|
|
5111
|
-
return
|
|
5128
|
+
const d = new Uint8Array(c.byteLength);
|
|
5129
|
+
return d.set(c), new Response(d, { status: 200 });
|
|
5112
5130
|
} };
|
|
5113
5131
|
}
|
|
5114
|
-
function
|
|
5132
|
+
function gu(e) {
|
|
5115
5133
|
return e.has(re) ? re : null;
|
|
5116
5134
|
}
|
|
5117
|
-
function
|
|
5135
|
+
function Cn(...e) {
|
|
5118
5136
|
return `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 1024 1024">${e.map((n) => `<path fill="currentColor" d="${n}"/>`).join("")}</svg>`;
|
|
5119
5137
|
}
|
|
5120
5138
|
const Hl = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M10.4379 15.2979h.002l4.86-4.86-9.722-4.86 4.86 9.72Zm7.562-5.298-3.434 3.434 3.2 3.2-1.132 1.132-3.2-3.2-3.434 3.434-7.6-15.6 15.6 7.6Z"/></svg>', Dl = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M15.08 12.8537l.002-.002V5.5897c0-.422-.652-.414-.652 0v3.466c0 .938-1.482.95-1.482 0v-4.83c0-.414-.6381-.414-.6381 0h-.014v4.83c.014.95-1.482.95-1.482 0V3.4437c0-.42-.638-.414-.638 0v5.612c0 .95-1.494.95-1.494 0V4.2317c0-.408-.64-.42-.64 0v6.756c0 .802-1.094 1.088-1.494.388-.26-.446-.518-.892-.776-1.338-.338-.482-1.1-.15-.794.38.326.566.652 1.132.978 1.698.006.012.014.026.02.04.552.946 1.106 1.89 1.658 2.834.19.3.422.578.666.802h-.006c.672.61 1.528.964 2.418 1.052.888.06 1.7921-.124 2.5601-.612.3-.19.572-.416.816-.68.326-.368.57-.776.734-1.204.176-.482.258-.97.258-1.494Zm-.91-8.608-.004-.002c.958-.38 2.058.244 2.058 1.346v7.266c0 .652-.108 1.29-.332 1.894-.216.564-.53 1.114-.964 1.576-.318.34-.666.632-1.046.884-.978.612-2.1461.862-3.2601.774-1.128-.102-2.228-.564-3.098-1.352-.326-.292-.612-.646-.87-1.034-.558-.96-1.114-1.92-1.672-2.88l-.012-.028c-.326-.568-.652-1.138-.978-1.706-.59-1.018.068-2.186 1.156-2.336.536-.074 1.126.116 1.562.72.026.028.04.062.054.096.04.074.082.146.122.218V4.2337c0-1.176 1.244-1.788 2.202-1.278.42-1.278 2.378-1.264 2.792-.014.9721-.51 2.2221.102 2.2221 1.284v.06c.022-.014.046-.026.068-.04Z"/></svg>', Ma = '<path fill="currentColor" d="M9.3333 14.125 5.875 10.6667V14.125H9.3333Zm4.7917-3.4583-3.4583 3.4583H14.125V10.6667ZM10.6667 5.875 14.125 9.3333V5.875H10.6667ZM5.875 9.3333 9.3333 5.875H5.875V9.3333Zm9.2083 5.475c1.2333-1.3 1.9083-3.0333 1.9083-4.825-.0083-3.325-2.35-6.1833-5.6083-6.8417C8.125 2.4833 4.85 4.2 3.55 7.2583c-1.3 3.0583-.275 6.6083 2.4583 8.5 2.725 1.8917 6.4167 1.6 8.8167-.6917.0917-.0833.175-.175.2583-.2583Zm1.2583.5917 2.575 2.575c-.3167.3167-.625.625-.9417.9417-.8583-.8583-1.7167-1.7167-2.575-2.575-3.4083 2.9-8.4917 2.5917-11.525-.6917S.9417 7.275 4.1083 4.1083C7.2667.9417 12.3667.8417 15.65 3.875s3.5917 8.1167.6917 11.525Z"/>', Nl = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20">${Ma}</svg>`, Sa = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M15.0833 14.8083c1.2333-1.3 1.9083-3.0333 1.9083-4.825-.0083-3.325-2.35-6.1833-5.6083-6.8417C8.125 2.4833 4.85 4.2 3.55 7.2583c-1.3 3.0583-.275 6.6083 2.4583 8.5 2.725 1.8917 6.4167 1.6 8.8167-.6917.0917-.0833.175-.175.2583-.2583Zm1.2583.5917 2.575 2.575c-.3167.3167-.625.625-.9417.9417-.8583-.8583-1.7167-1.7167-2.575-2.575-3.4083 2.9-8.4917 2.5917-11.525-.6917C.8417 12.3667.9417 7.275 4.1083 4.1083 7.2667.9417 12.3667.8417 15.65 3.875s3.5917 8.1167.6917 11.525Zm-3.55-2.6083V7.2083H7.2083v5.5833h5.5833ZM5.875 5.875h8.25v8.25H5.875V5.875Z"/></svg>', $l = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 512 512"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="m434.8 137.65l-149.36-68.1c-16.19-7.4-42.69-7.4-58.88 0L77.3 137.65c-17.6 8-17.6 21.09 0 29.09l148 67.5c16.89 7.7 44.69 7.7 61.58 0l148-67.5c17.52-8 17.52-21.1-.08-29.09M160 308.52l-82.7 37.11c-17.6 8-17.6 21.1 0 29.1l148 67.5c16.89 7.69 44.69 7.69 61.58 0l148-67.5c17.6-8 17.6-21.1 0-29.1l-79.94-38.47"/><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="m160 204.48l-82.8 37.16c-17.6 8-17.6 21.1 0 29.1l148 67.49c16.89 7.7 44.69 7.7 61.58 0l148-67.49c17.7-8 17.7-21.1.1-29.1L352 204.48"/></svg>', Vl = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><rect x="2" y="2" width="8.2" height="5" rx="1.2" fill="currentColor"/><rect x="2" y="8.5" width="8.2" height="9.5" rx="1.2" fill="currentColor"/><rect x="11.7" y="2" width="6.3" height="10" rx="1.2" fill="currentColor"/><rect x="11.7" y="13.5" width="6.3" height="4.5" rx="1.2" fill="currentColor"/></svg>', Xl = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" fill-rule="evenodd" d="M1.5 7h17v6h-17ZM4.25 7h1v2.5h-1ZM7.5 7h.75v1.5H7.5ZM10.25 7h1v2.5h-1ZM13.5 7h.75v1.5H13.5ZM16.25 7h1v2.5h-1Z"/></svg>', Yl = '<path fill="currentColor" fill-rule="evenodd" d="M2.25 15h15.5v3.4H2.25Zm1.5 0h.7v1.45h-.7Zm2.95 0h.7v1.45h-.7Zm2.95 0h.7v1.45h-.7Zm2.95 0h.7v1.45h-.7Zm2.95 0h.7v1.45h-.7Z"/>', C = "var(--el-color-primary, var(--ml-ui-accent, #409eff))";
|
|
@@ -5135,30 +5153,30 @@ const Zl = ue(
|
|
|
5135
5153
|
`<circle fill="none" stroke="${C}" stroke-width="1.4" cx="9.1" cy="7.3" r="4.7"/><circle fill="${C}" cx="9.1" cy="7.3" r="1.05"/><path fill="none" stroke="${C}" stroke-width="1.35" stroke-linecap="round" d="M9.1 7.3 13.35 3.7"/><path fill="${C}" d="M13.35 3.7 11.15 4.2 12.55 5.7Z"/>`
|
|
5136
5154
|
), ql = ue(
|
|
5137
5155
|
`<g fill="none" stroke="${C}" stroke-linecap="round" stroke-linejoin="round"><path stroke-width="1.4" d="M4 4.8v7.4h7.6"/><path stroke-width="1.2" stroke-dasharray="1.7 1.2" d="M4 6.9h7M11 12.2V6.9"/></g><path fill="${C}" d="M4 2.5 2.45 4.8h3.1ZM13.8 12.2 11.5 10.7v3Z"/><circle fill="${C}" cx="11" cy="6.9" r="1.3"/>`
|
|
5138
|
-
),
|
|
5156
|
+
), Ia = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 512 512" fill="currentColor" aria-hidden="true"><path d="M 459.5 0 L 475.5 0 L 476.5 1 L 479.5 1 L 485.5 3 Q 487.8 6.2 492.5 7 L 501 14.5 L 505 19.5 L 511 32.5 Q 510.2 35.8 512 36.5 L 512 52.5 L 511 53.5 L 511 56.5 L 509 62.5 L 506 68.5 L 493 89.5 L 483 108.5 L 478 115.5 L 472 127.5 L 467 134.5 L 457 153.5 L 452 160.5 L 442 179.5 L 437 186.5 L 431 198.5 L 440 213.5 L 440 215.5 L 443 220.5 L 447 232.5 L 448 240.5 L 449 241.5 L 449 245.5 L 450 246.5 L 450 254.5 L 451 255.5 L 451 274.5 L 450 275.5 L 450 283.5 L 449 284.5 L 449 289.5 L 448 290.5 L 448 294.5 L 447 295.5 L 446 302.5 L 442 314.5 L 438 322.5 L 438 324.5 L 428 345.5 L 428 347.5 L 425 352.5 L 422 361.5 L 418 368.5 L 418 370.5 L 415 375.5 L 412 384.5 L 408 391.5 L 408 393.5 L 405 398.5 L 402 407.5 L 398 414.5 L 395 423.5 L 391 430.5 L 391 432.5 L 381 453.5 L 381 455.5 L 378 460.5 L 375 469.5 L 371 476.5 L 368 485.5 L 361.5 497 L 353.5 501 L 348.5 501 L 347.5 500 L 344.5 500 L 329.5 495 L 326.5 493 L 321.5 492 L 318.5 490 L 303.5 485 L 289.5 478 L 287.5 478 L 282 473.5 L 279 467.5 L 279 459.5 L 280 458.5 L 280 455.5 L 281 454.5 L 281 451.5 L 282 450.5 L 283 442.5 L 284 441.5 L 286 431.5 L 285.5 431 L 281.5 435 L 259.5 455 L 255.5 457 L 246.5 457 L 223.5 444 L 189.5 421 L 155.5 394 L 133 373.5 L 130 367.5 L 130 359.5 L 134 352.5 L 223 233.5 L 242 206.5 L 254.5 192 L 271.5 177 L 285.5 168 L 299.5 161 L 314.5 156 L 317.5 156 L 318.5 155 L 330.5 154 L 331.5 153 L 352.5 153 L 354 151.5 L 356 146.5 L 372 120.5 L 374 115.5 L 387 94.5 L 397 75.5 L 402 68.5 L 408 56.5 L 413 49.5 L 423 30.5 L 431 17.5 L 439.5 9 L 449.5 3 L 455.5 1 L 458.5 1 L 459.5 0 Z M 466 30 L 459 33 L 454 39 L 448 51 L 443 58 L 433 77 L 428 84 L 414 110 L 409 117 L 407 122 L 405 124 L 403 129 L 401 131 L 399 136 L 384 161 L 386 162 L 388 162 L 396 166 L 409 175 L 422 153 L 424 148 L 429 141 L 431 136 L 433 134 L 435 129 L 437 127 L 439 122 L 444 115 L 454 96 L 459 89 L 469 70 L 474 63 L 482 47 L 482 43 L 480 38 L 475 32 L 469 30 L 466 30 Z M 333 183 L 332 184 L 328 184 L 327 185 L 324 185 L 323 186 L 320 186 L 314 188 L 300 195 L 286 205 L 271 220 L 267 225 L 266 228 L 410 310 L 412 307 L 412 305 L 416 296 L 418 285 L 419 284 L 419 279 L 420 278 L 420 252 L 419 251 L 419 246 L 417 241 L 417 238 L 411 224 L 402 211 L 389 198 L 371 188 L 362 185 L 352 184 L 351 183 L 333 183 Z M 248 252 L 195 322 L 193 326 L 172 353 L 167 361 L 194 384 L 228 409 L 249 422 L 256 417 L 303 372 L 310 368 L 318 368 L 322 370 L 328 378 Q 327 381 329 382 L 329 386 L 326 395 L 326 399 L 323 408 L 323 411 L 322 412 L 322 416 L 319 425 L 319 428 L 318 429 L 318 432 L 317 433 L 317 437 L 314 446 L 314 449 L 313 450 L 313 453 L 312 454 L 316 456 L 318 456 L 331 462 L 343 466 L 351 448 L 351 446 L 354 441 L 354 439 L 357 434 L 357 432 L 364 418 L 364 416 L 367 411 L 367 409 L 370 404 L 370 402 L 377 388 L 377 386 L 380 381 L 380 379 L 383 374 L 383 372 L 387 365 L 390 356 L 393 351 L 393 349 L 396 344 L 397 339 L 375 326 L 373 324 L 368 322 L 366 320 L 361 318 L 354 313 L 349 311 L 347 309 L 342 307 L 340 305 L 335 303 L 321 294 L 316 292 L 314 290 L 309 288 L 307 286 L 302 284 L 295 279 L 276 269 L 248 252 Z "/><path d="M 170.5 100 L 179.5 100 Q 185 102 188 106.5 L 190 110.5 L 190 134.5 L 184.5 142 L 177.5 145 L 171.5 145 L 166.5 143 L 162 138.5 L 159 129.5 L 159 115.5 L 160 114.5 Q 159.2 109.7 161 107.5 L 166.5 102 L 170.5 100 Z "/><path d="M 131.5 140 L 151.5 140 L 156.5 142 L 162 147.5 L 164 151.5 L 164 159.5 L 163 162.5 L 158.5 168 L 152.5 171 L 130.5 171 L 124.5 168 L 122 165.5 L 119 159.5 L 119 151.5 Q 121.3 145.3 126.5 142 L 131.5 140 Z "/><path d="M 197.5 140 L 218.5 140 L 223.5 142 L 228 146.5 L 231 152.5 L 231 158.5 L 229 163.5 L 223.5 169 L 218.5 171 L 197.5 171 L 192.5 169 L 188 164.5 L 186 160.5 L 185 153.5 L 188 146.5 L 191.5 143 L 197.5 140 Z "/><path d="M 171.5 166 L 177.5 166 L 180.5 167 L 187 171.5 L 190 176.5 L 190 200.5 Q 188 206 183.5 209 L 179.5 211 L 173.5 212 L 167.5 210 L 161 203.5 Q 159.2 201.3 160 196.5 L 159 195.5 L 159 181.5 L 162 172.5 L 165.5 169 L 171.5 166 Z "/><path d="M 50.5 223 L 60.5 223 L 68 228.5 L 71 234.5 L 71 256.5 Q 69.1 262.6 64.5 266 L 59.5 268 L 51.5 268 Q 45.3 265.7 42 260.5 L 40 255.5 L 40 235.5 L 42 230.5 L 48.5 224 L 50.5 223 Z "/><path d="M 13.5 263 L 30.5 263 Q 31.5 265 35.5 264 L 43 270.5 L 45 274.5 L 45 282.5 Q 43.1 288.6 38.5 292 L 33.5 294 L 10.5 294 Q 5 292 2 287.5 L 0 283.5 L 0 274.5 Q 2.3 268.3 7.5 265 L 13.5 263 Z "/><path d="M 80.5 263 L 97.5 263 L 103.5 265 L 108 268.5 L 111 273.5 L 112 279.5 L 109 287.5 L 104.5 292 L 100.5 294 L 77.5 294 Q 71.3 291.7 68 286.5 L 66 281.5 L 66 276.5 L 69 269.5 L 72.5 266 L 80.5 263 Z "/><path d="M 54.5 289 L 61.5 290 L 69 296.5 L 71 301.5 L 71 322.5 L 69 327.5 L 63.5 333 L 58.5 335 L 53.5 335 L 46.5 332 L 43 328.5 L 40 321.5 L 40 302.5 Q 41.8 301.8 41 298.5 L 46.5 292 L 54.5 289 Z "/><path d="M 98.5 400 L 107.5 402 L 113 407.5 L 115 411.5 L 115 434.5 Q 112.7 440.7 107.5 444 L 101.5 446 L 96.5 446 L 90.5 443 L 87 439.5 L 84 430.5 L 84 415.5 L 85 414.5 Q 84.3 410.3 86 408.5 L 92.5 402 L 98.5 400 Z "/><path d="M 55.5 441 L 77.5 441 L 80.5 442 L 86 446.5 L 89 451.5 L 89 460.5 Q 86.7 466.7 81.5 470 L 76.5 472 L 56.5 472 L 51.5 470 L 46 464.5 L 44 460.5 L 44 452.5 L 45 449.5 L 49.5 444 L 55.5 441 Z "/><path d="M 121.5 441 L 144.5 441 Q 150.7 443.3 154 448.5 L 156 453.5 L 156 458.5 L 154 464.5 L 148.5 470 L 146.5 470 L 143.5 472 L 122.5 472 L 116.5 469 L 113 465.5 L 111 461.5 L 110 455.5 Q 112 454.5 111 450.5 L 117.5 443 L 121.5 441 Z "/><path d="M 96.5 467 L 103.5 467 L 106.5 468 L 113 473.5 L 115 478.5 L 115 501.5 Q 113 507 108.5 510 L 104.5 512 L 95.5 512 Q 89.3 509.7 86 504.5 Q 84.3 502.7 85 498.5 L 84 497.5 L 84 482.5 L 87 473.5 L 91.5 469 L 96.5 467 Z "/></svg>', Ql = Ia, ec = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><rect x="3" y="3" width="7" height="7" fill="currentColor"/><rect x="14" y="14" width="7" height="7" fill="none" stroke="currentColor" stroke-width="1"/><path d="M12 4a8 8 0 0 1 7.25 7.25" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round"/><path d="M20.75 10 L17.25 10 L19 12.5 Z" fill="currentColor"/><path d="M12 20a8 8 0 0 1-8-8" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round"/><path d="M6 14 L2.5 14 L4 11 Z" fill="currentColor"/></svg>', tc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20" fill="none" style="fill:none"><g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12.4 3.25H5.5A2.25 2.25 0 0 0 3.25 5.5v9A2.25 2.25 0 0 0 5.5 16.75h9A2.25 2.25 0 0 0 16.75 14.5V8.6"/><g transform="rotate(45 13.2 6.7)"><rect x="11.7" y="1.55" width="3" height="7.45" rx="1.45"/><path d="M11.7 3.2h3"/><path d="M11.7 9 13.2 12.15 14.7 9"/><rect x="12.8" y="7.05" width="0.8" height="1.2" rx="0.4"/></g></g></svg>', nc = '<path fill="none" stroke="currentColor" stroke-width="1.35" stroke-linecap="butt" stroke-linejoin="miter" d="M2.6 6.8v8.5h5.2l2.2 2.4 2.2-2.4h5.2"/>', Pa = '<g fill="none" stroke="currentColor" stroke-width="1.2" stroke-linejoin="round" transform="rotate(46 14.8 9)"><rect x="13.65" y="4.7" width="2.3" height="5.6" rx="1.05"/><path d="M13.65 10.3 14.8 12.9 15.95 10.3"/></g>';
|
|
5139
5157
|
function ke(e) {
|
|
5140
5158
|
return `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20">${nc}${e}</svg>`;
|
|
5141
5159
|
}
|
|
5142
5160
|
const rc = ke(
|
|
5143
5161
|
'<path fill="currentColor" d="M6.4 12.2c-1.85 0-3.3-1.25-3.3-2.85 0-1.35.95-2.5 2.3-2.8.45-1.7 1.95-2.85 3.7-2.85 1.25 0 2.35.55 3.05 1.45.55-.7 1.45-1.15 2.5-1.15 1.85 0 3.25 1.3 3.25 2.95 0 .3-.05.55-.1.8 1.2.4 2.05 1.4 2.05 2.65 0 1.55-1.5 2.8-3.4 2.8H6.4Z"/>'
|
|
5144
5162
|
), ac = ke(
|
|
5145
|
-
`<rect fill="none" stroke="currentColor" stroke-width="1.35" x="5" y="2.8" width="8.2" height="7.2"/><rect fill="${C}" x="4.2" y="2" width="2" height="2"/><rect fill="${C}" x="12.2" y="9" width="2" height="2"/>${
|
|
5163
|
+
`<rect fill="none" stroke="currentColor" stroke-width="1.35" x="5" y="2.8" width="8.2" height="7.2"/><rect fill="${C}" x="4.2" y="2" width="2" height="2"/><rect fill="${C}" x="12.2" y="9" width="2" height="2"/>${Pa}`
|
|
5146
5164
|
), oc = ke(
|
|
5147
|
-
`<ellipse fill="none" stroke="currentColor" stroke-width="1.35" cx="9" cy="6.6" rx="4" ry="3.6"/><rect fill="${C}" x="8" y="2.1" width="2" height="2"/><rect fill="${C}" x="4" y="5.6" width="2" height="2"/>${
|
|
5165
|
+
`<ellipse fill="none" stroke="currentColor" stroke-width="1.35" cx="9" cy="6.6" rx="4" ry="3.6"/><rect fill="${C}" x="8" y="2.1" width="2" height="2"/><rect fill="${C}" x="4" y="5.6" width="2" height="2"/>${Pa}`
|
|
5148
5166
|
), ic = ke(
|
|
5149
5167
|
'<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" d="M4.4 12.6 10.2 7"/><rect fill="currentColor" x="10.2" y="1.2" width="7.8" height="5.8" rx=".35"/>'
|
|
5150
5168
|
), sc = ke(
|
|
5151
5169
|
'<path fill="currentColor" fill-rule="evenodd" d="M10 2.2 15.3 13.1h-2.2l-1.05-2.95H7.95L6.9 13.1H4.7L10 2.2Zm0 3.4-1.15 3.2h2.3L10 5.6Z"/>'
|
|
5152
5170
|
), lc = ke(
|
|
5153
5171
|
'<g transform="rotate(-40 10 7.6)" fill="currentColor"><path d="M3.5 6.75h9V5.15L16.7 7.6 12.5 10.05V8.45h-9Z"/></g>'
|
|
5154
|
-
), cc =
|
|
5172
|
+
), cc = Cn(
|
|
5155
5173
|
"M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0M128 896v-64h768v64z"
|
|
5156
|
-
), za = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><rect x="3.5" y="3" width="13" height="14" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.5"/><path fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" d="M3.5 6.5h13"/><path fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" d="M6.5 9.5h7M6.5 12h7M6.5 14.5h3.2"/><g fill="none" stroke="${C}" stroke-width="1.7" stroke-linecap="round"><circle cx="14.5" cy="14.7" r="4.2"/><path d="M17.5 17.7 19.5 19.7"/></g></svg>`, dc = za, uc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20" fill="none" aria-hidden="true"><path stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round" d="M4.5 2h6.4L15.5 6.6V16.5A1.5 1.5 0 0 1 14 18H4.5A1.5 1.5 0 0 1 3 16.5V3.5A1.5 1.5 0 0 1 4.5 2z"/><path stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round" d="M10.9 2v4.6h4.6"/><path stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" d="M10 5.8v6M7.2 9.6 10 12.5l2.8-2.9"/></svg>', mc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20" fill="none" aria-hidden="true"><path stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round" d="M15.5 2H9.1L4.5 6.6V16.5A1.5 1.5 0 0 0 6 18h9.5A1.5 1.5 0 0 0 17 16.5V3.5A1.5 1.5 0 0 0 15.5 2z"/><path stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round" d="M9.1 2v4.6H4.5"/><path stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" d="M10 14.2V8M7.2 10.4 10 7.5l2.8 2.9"/></svg>', pc =
|
|
5174
|
+
), za = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><rect x="3.5" y="3" width="13" height="14" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.5"/><path fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" d="M3.5 6.5h13"/><path fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" d="M6.5 9.5h7M6.5 12h7M6.5 14.5h3.2"/><g fill="none" stroke="${C}" stroke-width="1.7" stroke-linecap="round"><circle cx="14.5" cy="14.7" r="4.2"/><path d="M17.5 17.7 19.5 19.7"/></g></svg>`, dc = za, uc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20" fill="none" aria-hidden="true"><path stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round" d="M4.5 2h6.4L15.5 6.6V16.5A1.5 1.5 0 0 1 14 18H4.5A1.5 1.5 0 0 1 3 16.5V3.5A1.5 1.5 0 0 1 4.5 2z"/><path stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round" d="M10.9 2v4.6h4.6"/><path stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" d="M10 5.8v6M7.2 9.6 10 12.5l2.8-2.9"/></svg>', mc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20" fill="none" aria-hidden="true"><path stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round" d="M15.5 2H9.1L4.5 6.6V16.5A1.5 1.5 0 0 0 6 18h9.5A1.5 1.5 0 0 0 17 16.5V3.5A1.5 1.5 0 0 0 15.5 2z"/><path stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round" d="M9.1 2v4.6H4.5"/><path stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" d="M10 14.2V8M7.2 10.4 10 7.5l2.8 2.9"/></svg>', pc = Ia, fc = Cn(
|
|
5157
5175
|
"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"
|
|
5158
|
-
), hc =
|
|
5176
|
+
), hc = Cn(
|
|
5159
5177
|
"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176",
|
|
5160
5178
|
"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"
|
|
5161
|
-
), gc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="m18.5 10 4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16.5 10h2zM10 2v2h6v2h-1.968a18.222 18.222 0 0 1-3.62 6.301 14.864 14.864 0 0 0 2.336 1.707l-.751 1.878A17.015 17.015 0 0 1 9 13.725 16.676 16.676 0 0 1 3.524 17.273l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042A18.078 18.078 0 0 1 4.767 8h2.24A16.032 16.032 0 0 0 9 10.877 16.165 16.165 0 0 0 11.91 6.001L2 6V4h6V2h2zm7.5 10.885L16.253 16h2.492L17.5 12.885z"/></svg>', wc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><circle cx="10" cy="10" r="4" fill="currentColor"/><path fill="none" stroke="currentColor" stroke-width="1.5" d="M10 2v2M10 16v2M2 10h2M16 10h2M4.2 4.2l1.4 1.4M14.4 14.4l1.4 1.4M4.2 15.8l1.4-1.4M14.4 5.6l1.4-1.4"/></svg>', vc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M10 3a7 7 0 1 0 0 14 9 9 0 0 1 0-14Z"/></svg>',
|
|
5179
|
+
), gc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="m18.5 10 4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16.5 10h2zM10 2v2h6v2h-1.968a18.222 18.222 0 0 1-3.62 6.301 14.864 14.864 0 0 0 2.336 1.707l-.751 1.878A17.015 17.015 0 0 1 9 13.725 16.676 16.676 0 0 1 3.524 17.273l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042A18.078 18.078 0 0 1 4.767 8h2.24A16.032 16.032 0 0 0 9 10.877 16.165 16.165 0 0 0 11.91 6.001L2 6V4h6V2h2zm7.5 10.885L16.253 16h2.492L17.5 12.885z"/></svg>', wc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><circle cx="10" cy="10" r="4" fill="currentColor"/><path fill="none" stroke="currentColor" stroke-width="1.5" d="M10 2v2M10 16v2M2 10h2M16 10h2M4.2 4.2l1.4 1.4M14.4 14.4l1.4 1.4M4.2 15.8l1.4-1.4M14.4 5.6l1.4-1.4"/></svg>', vc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M10 3a7 7 0 1 0 0 14 9 9 0 0 1 0-14Z"/></svg>', xc = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" aria-hidden="true"><path fill="currentColor" d="M10 6.5 5.5 11h9L10 6.5Z"/></svg>', yc = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" aria-hidden="true"><path fill="currentColor" d="M10 13.5 14.5 9h-9L10 13.5Z"/></svg>', lr = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M10 2.6 18 9.8h-2.1V17h-4.4v-4.4H8.5V17H4.1V9.8H2L10 2.6Zm0 1.8L5.3 9.8V15.8h2V11.4h5.4v4.4h2V9.8L10 4.4Z"/></svg>', bc = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20">${Ma}<path fill="${C}" d="M14.85 0.85 15.95 4.05 19.15 5.15 15.95 6.25 14.85 9.45 13.75 6.25 10.55 5.15 13.75 4.05Z"/><path fill="${C}" d="M17.55 8.35 18.15 10.15 19.95 10.75 18.15 11.35 17.55 13.15 16.95 11.35 15.15 10.75 16.95 10.15Z"/></svg>`, kc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M8.08 2.1h3.84l.32 1.52a6.4 6.4 0 0 1 1.36.78l1.48-.64 1.92 1.92-.64 1.48c.3.42.54.88.78 1.36l1.52.32v3.84l-1.52.32a6.4 6.4 0 0 1-.78 1.36l.64 1.48-1.92 1.92-1.48-.64a6.4 6.4 0 0 1-1.36.78l-.32 1.52H8.08l-.32-1.52a6.4 6.4 0 0 1-1.36-.78l-1.48.64-1.92-1.92.64-1.48a6.4 6.4 0 0 1-.78-1.36L1.34 11.92V8.08l1.52-.32c.24-.48.48-.94.78-1.36l-.64-1.48 1.92-1.92 1.48.64c.42-.3.88-.54 1.36-.78L8.08 2.1ZM10 7.2A2.8 2.8 0 1 0 10 12.8 2.8 2.8 0 0 0 10 7.2Z"/></svg>', Lc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="none" stroke="currentColor" stroke-width="1.5" d="M10 2.5v6M7 5.5h6"/><circle cx="10" cy="14.5" r="3.2" fill="none" stroke="currentColor" stroke-width="1.5"/><circle cx="10" cy="14.5" r="1.1" fill="currentColor"/></svg>', Ac = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M10.09 3.53 16.09 6.97 10.09 10.29 4.18 7 10.09 3.56M10.09 2.4 2.17 7 3.31 7.65 10.09 11.45 17 7.62 18.17 7 10.08 2.37 10.09 2.4Z"/><path fill="currentColor" d="M10.25 14.83 18.17 10.22 17 9.57 10.22 13.57 3.32 9.59 2.17 10.22 10.25 14.83Z"/><path fill="currentColor" d="M10.25 17.63 18.17 13 17 12.37 10.22 16.37 3.32 12.38 2.17 13 10.25 17.63Z"/></svg>', Cc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M10.09 5.15 16.09 8.59 10.09 11.91 4.18 8.59 10.09 5.15ZM10.09 4 2.17 8.61 3.31 9.25 10.09 13.06 17 9.24 18.16 8.61 10.08 4 10.09 4Z"/><path fill="currentColor" d="M10.25 16.46 18.17 11.85 17 11.2 10.22 15.2 3.32 11.21 2.17 11.85 10.25 16.46Z"/><path fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" d="M3.5 3.5 16.5 16.5"/></svg>', Ec = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M2.25 2.25h4.878v4.878H2.25V2.25Zm.978.978v2.924h2.924V3.228H3.228Z"/><path fill="currentColor" d="M5.175 20.773V7.128H4.204V21.75H21.75V4.204H7.128v.971H20.773v15.598H5.175Z"/></svg>', Mc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" fill-rule="evenodd" d="M3 2H2v16h16v-1H8v-5H3V2zm0 11v4h4v-4H3z"/></svg>', Sc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" fill-rule="evenodd" d="M16.98 11L18.5 11L18.5 10L16.98 10C16.86 8.13 16.05 6.44 14.8 5.2L16.88 2.83L16.12 2.17L14.05 4.54C12.79 3.57 11.21 3 9.5 3C5.36 3 2 6.36 2 10.5C2 14.64 5.36 18 9.5 18C13.47 18 16.73 14.91 16.98 11ZM15.98 10C15.86 8.43 15.18 7.01 14.14 5.95L10.6 10L15.98 10ZM13.39 5.29L8.4 11L15.98 11C15.73 14.36 12.92 17 9.5 17C5.91 17 3 14.09 3 10.5C3 6.91 5.91 4 9.5 4C10.96 4 12.31 4.48 13.39 5.29Z"/></svg>', Ic = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="#e75958" d="M22 12H12l5 8.66A10 10 0 0 0 22 12Z"/><path fill="#814dff" d="M17 20.66 12 12 7 20.66A10 10 0 0 0 17 20.66Z"/><path fill="#13b0ce" d="M7 20.66 12 12H2A10 10 0 0 0 7 20.66Z"/><path fill="#4ecd83" d="M2 12H12L7 3.34A10 10 0 0 0 2 12Z"/><path fill="#ffc33f" d="M7 3.34 12 12l5-8.66A10 10 0 0 0 7 3.34Z"/><path fill="#ff9543" d="M17 3.34 12 12H22A10 10 0 0 0 17 3.34Z"/></svg>', Pc = Sa, zc = ql, Bc = rc, Tc = ac, Fc = oc, _c = fc, cr = hc, Re = {
|
|
5162
5180
|
/** Select tool toolbar icon. */
|
|
5163
5181
|
select: Hl,
|
|
5164
5182
|
/** Pan tool toolbar icon. */
|
|
@@ -5168,7 +5186,7 @@ const rc = ke(
|
|
|
5168
5186
|
/** Intelligent zoom-to-extents (dominant cluster) toolbar icon. */
|
|
5169
5187
|
zoomSmart: bc,
|
|
5170
5188
|
/** Zoom-window / per-layer zoom-to-box toolbar icon. */
|
|
5171
|
-
zoomBox:
|
|
5189
|
+
zoomBox: Pc,
|
|
5172
5190
|
/** Measure-distance toolbar icon. */
|
|
5173
5191
|
measureDistance: Zl,
|
|
5174
5192
|
/** Continuous (chained) distance toolbar icon. */
|
|
@@ -5208,11 +5226,11 @@ const rc = ke(
|
|
|
5208
5226
|
/** Polar tracking toggle icon. */
|
|
5209
5227
|
polarTracking: Sc,
|
|
5210
5228
|
/** Measure color picker icon. */
|
|
5211
|
-
color:
|
|
5229
|
+
color: Ic,
|
|
5212
5230
|
/** Collapse toolbar (chevron up). */
|
|
5213
|
-
chevronUp:
|
|
5231
|
+
chevronUp: xc,
|
|
5214
5232
|
/** Expand toolbar (chevron down). */
|
|
5215
|
-
chevronDown:
|
|
5233
|
+
chevronDown: yc,
|
|
5216
5234
|
/** Measure tools parent menu icon. */
|
|
5217
5235
|
measure: Xl,
|
|
5218
5236
|
/** Review / annotation tools parent menu icon. */
|
|
@@ -5240,7 +5258,7 @@ const rc = ke(
|
|
|
5240
5258
|
/** Export markup sidecar JSON. */
|
|
5241
5259
|
markupExport: mc,
|
|
5242
5260
|
/** Show markups (open eye). */
|
|
5243
|
-
markupShow:
|
|
5261
|
+
markupShow: _c,
|
|
5244
5262
|
/** Hide markups (slashed eye). */
|
|
5245
5263
|
markupHide: cr,
|
|
5246
5264
|
/** @deprecated Prefer {@link markupHide} / {@link markupShow}. */
|
|
@@ -5262,14 +5280,14 @@ function dr(e, t, n) {
|
|
|
5262
5280
|
const r = Object.entries(n).map(([i, s]) => `${i}="${te(s)}"`).join(" "), a = n["data-i18n-key"], o = a ? `<span class="mlcad-tool-btn-label" data-i18n-key="${te(a)}" data-i18n-text>${te(t)}</span>` : "";
|
|
5263
5281
|
return `<button type="button" class="mlcad-tool-btn" title="${te(t)}" aria-label="${te(t)}" ${r}><span class="mlcad-tool-btn-icon" aria-hidden="true">${e}</span>${o}</button>`;
|
|
5264
5282
|
}
|
|
5265
|
-
function
|
|
5283
|
+
function wu(e, t, n) {
|
|
5266
5284
|
const r = Object.entries(n).map(([i, s]) => `${i}="${te(s)}"`).join(" "), a = n["data-i18n-key"], o = a ? ` data-i18n-key="${te(a)}" data-i18n-text` : "";
|
|
5267
5285
|
return `<button type="button" class="mlcad-dropdown-item" role="menuitem" title="${te(t)}" ${r}><span class="mlcad-dropdown-icon" aria-hidden="true">${e}</span><span class="mlcad-dropdown-label"${o}>${te(t)}</span></button>`;
|
|
5268
5286
|
}
|
|
5269
5287
|
function te(e) {
|
|
5270
5288
|
return e.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<");
|
|
5271
5289
|
}
|
|
5272
|
-
const
|
|
5290
|
+
const Uc = [90, 45, 30, 23, 18, 10, 5], Oc = 90, vu = Oc, Rc = {
|
|
5273
5291
|
en: "toolbar.localeEn",
|
|
5274
5292
|
zh: "toolbar.localeZh",
|
|
5275
5293
|
cs: "toolbar.localeCs",
|
|
@@ -5282,11 +5300,11 @@ const _c = [90, 45, 30, 23, 18, 10, 5], Oc = 90, wu = Oc, Rc = {
|
|
|
5282
5300
|
tr: "Türkçe",
|
|
5283
5301
|
ar: "العربية"
|
|
5284
5302
|
};
|
|
5285
|
-
function
|
|
5303
|
+
function xu() {
|
|
5286
5304
|
return `<div id="mlcad-locale-strip-wrap" hidden>
|
|
5287
5305
|
<div id="mlcad-locale-strip" role="toolbar" data-i18n-attr="aria-label" data-i18n-key="toolbar.language" aria-label="Language">
|
|
5288
5306
|
${ge.map((t) => {
|
|
5289
|
-
const n = Hc[t], r = Rc[t], a =
|
|
5307
|
+
const n = Hc[t], r = Rc[t], a = xa[t];
|
|
5290
5308
|
return `<button type="button" class="mlcad-tool-btn mlcad-locale-option" data-locale="${t}" data-i18n-key="${r}" data-i18n-attr="title aria-label" title="${n}" aria-label="${n}"><span class="mlcad-tool-btn-icon" aria-hidden="true"><span class="mlcad-locale-option-badge">${a}</span></span><span class="mlcad-tool-btn-label" data-i18n-key="${r}" data-i18n-text>${n}</span></button>`;
|
|
5291
5309
|
}).join("")}
|
|
5292
5310
|
</div>
|
|
@@ -5294,7 +5312,7 @@ function vu() {
|
|
|
5294
5312
|
}
|
|
5295
5313
|
function Ba() {
|
|
5296
5314
|
return `<div id="mlcad-polar-angles" role="group" data-i18n-attr="aria-label" data-i18n-key="settings.polarAngles" aria-label="Polar tracking angles" hidden>
|
|
5297
|
-
${
|
|
5315
|
+
${Uc.map(
|
|
5298
5316
|
(t) => `<button type="button" class="mlcad-tool-btn mlcad-settings-option-btn mlcad-polar-angle-btn" data-polar-ang="${t}" title="${t}°" aria-label="${t}°"><span class="mlcad-settings-option-indicator" aria-hidden="true"></span><span class="mlcad-settings-option-text">${t}°</span></button>`
|
|
5299
5317
|
).join("")}
|
|
5300
5318
|
</div>`;
|
|
@@ -5318,7 +5336,7 @@ function yu() {
|
|
|
5318
5336
|
${Ba()}
|
|
5319
5337
|
</div>`;
|
|
5320
5338
|
}
|
|
5321
|
-
const Dc = 600, Nc = 960,
|
|
5339
|
+
const Dc = 600, Nc = 960, $c = 1.231, bu = 13, En = `
|
|
5322
5340
|
:root {
|
|
5323
5341
|
--mlcad-ui-bg: rgba(24, 26, 30, 0.94);
|
|
5324
5342
|
--mlcad-ui-bg-elevated: rgba(32, 35, 40, 0.98);
|
|
@@ -6168,7 +6186,8 @@ const Dc = 600, Nc = 960, Cn = `
|
|
|
6168
6186
|
pointer-events: none;
|
|
6169
6187
|
}
|
|
6170
6188
|
.mlcad-measure-badge--coordinate {
|
|
6171
|
-
|
|
6189
|
+
/* em so the lift tracks the capsule when text height changes. */
|
|
6190
|
+
transform: translate(-50%, calc(-50% - ${$c}em));
|
|
6172
6191
|
}
|
|
6173
6192
|
.mlcad-measure-badge.mlcad-measure-selected {
|
|
6174
6193
|
/* Hard ring at half original em thickness + soft glow */
|
|
@@ -6701,8 +6720,8 @@ const Dc = 600, Nc = 960, Cn = `
|
|
|
6701
6720
|
pointer-events: none !important;
|
|
6702
6721
|
}
|
|
6703
6722
|
`;
|
|
6704
|
-
function
|
|
6705
|
-
const r = t === "measure" ? `${Ba()}${
|
|
6723
|
+
function Mn(e, t = "measure", n = !0) {
|
|
6724
|
+
const r = t === "measure" ? `${Ba()}${Xc()}${Vc()}` : "";
|
|
6706
6725
|
return `
|
|
6707
6726
|
<div id="mlcad-loading" aria-hidden="true" style="background:${e}">
|
|
6708
6727
|
<div class="mlcad-loading-spinner"></div>
|
|
@@ -6737,7 +6756,7 @@ function En(e, t = "measure", n = !0) {
|
|
|
6737
6756
|
<nav id="mlcad-toolbar" data-i18n-attr="aria-label" data-i18n-key="toolbar.viewerTools" aria-label="Viewer tools"></nav>
|
|
6738
6757
|
${r}
|
|
6739
6758
|
<div id="mlcad-layer-drawer" role="dialog" data-i18n-attr="aria-label" data-i18n-key="layers.title" aria-label="Layers" hidden>
|
|
6740
|
-
${
|
|
6759
|
+
${Sn("mlcad-layer-sheet-close", "layers.close", "Close layers")}
|
|
6741
6760
|
<div class="mlcad-drawer-header">
|
|
6742
6761
|
<span data-i18n-key="layers.title" data-i18n-text>Layers</span>
|
|
6743
6762
|
<button type="button" class="mlcad-drawer-close" id="mlcad-layer-close" data-i18n-key="layers.close" data-i18n-attr="aria-label" aria-label="Close layers">×</button>
|
|
@@ -6756,15 +6775,15 @@ function En(e, t = "measure", n = !0) {
|
|
|
6756
6775
|
</div>
|
|
6757
6776
|
`;
|
|
6758
6777
|
}
|
|
6759
|
-
function
|
|
6778
|
+
function Sn(e, t, n) {
|
|
6760
6779
|
return `<div class="mlcad-drawer-sheet-chrome">
|
|
6761
6780
|
<div class="mlcad-drawer-grabber" role="separator" aria-orientation="horizontal"></div>
|
|
6762
6781
|
<button type="button" class="mlcad-drawer-sheet-close" id="${e}" data-i18n-key="${t}" data-i18n-attr="aria-label" aria-label="${n}">${Re.chevronDown}</button>
|
|
6763
6782
|
</div>`;
|
|
6764
6783
|
}
|
|
6765
|
-
function
|
|
6784
|
+
function Vc() {
|
|
6766
6785
|
return `<div id="mlcad-review-drawer" role="dialog" data-i18n-attr="aria-label" data-i18n-key="review.title" aria-label="Review" hidden>
|
|
6767
|
-
${
|
|
6786
|
+
${Sn("mlcad-review-sheet-close", "review.close", "Close review")}
|
|
6768
6787
|
<div class="mlcad-drawer-header">
|
|
6769
6788
|
<span data-i18n-key="review.title" data-i18n-text>Review</span>
|
|
6770
6789
|
<button type="button" class="mlcad-drawer-close" id="mlcad-review-close" data-i18n-key="review.close" data-i18n-attr="aria-label" aria-label="Close review">×</button>
|
|
@@ -6814,9 +6833,9 @@ function $c() {
|
|
|
6814
6833
|
</div>
|
|
6815
6834
|
</div>`;
|
|
6816
6835
|
}
|
|
6817
|
-
function
|
|
6836
|
+
function Xc() {
|
|
6818
6837
|
return `<div id="mlcad-measure-drawer" role="dialog" data-i18n-attr="aria-label" data-i18n-key="measurePanel.title" aria-label="Measurements" hidden>
|
|
6819
|
-
${
|
|
6838
|
+
${Sn("mlcad-measure-sheet-close", "measurePanel.close", "Close measurements")}
|
|
6820
6839
|
<div class="mlcad-drawer-header">
|
|
6821
6840
|
<span data-i18n-key="measurePanel.title" data-i18n-text>Measurements</span>
|
|
6822
6841
|
<button type="button" class="mlcad-drawer-close" id="mlcad-measure-close" data-i18n-key="measurePanel.close" data-i18n-attr="aria-label" aria-label="Close measurements">×</button>
|
|
@@ -6845,31 +6864,31 @@ function Vc() {
|
|
|
6845
6864
|
</div>
|
|
6846
6865
|
</div>`;
|
|
6847
6866
|
}
|
|
6848
|
-
function
|
|
6867
|
+
function ku(e, t) {
|
|
6849
6868
|
var f;
|
|
6850
|
-
const n = t.title ?? e.meta.title ?? "CAD Drawing", r = t.encoded ?? Wi(e), a = t.viewerRuntime, o = Qi(), i = r.compression, s = ((f = t.accessManifest) == null ? void 0 : f.encrypted) === !0, l = `#${e.meta.background.toString(16).padStart(6, "0")}`,
|
|
6869
|
+
const n = t.title ?? e.meta.title ?? "CAD Drawing", r = t.encoded ?? Wi(e), a = t.viewerRuntime, o = Qi(), i = r.compression, s = ((f = t.accessManifest) == null ? void 0 : f.encrypted) === !0, l = `#${e.meta.background.toString(16).padStart(6, "0")}`, c = Ve(e.meta.locale) ?? "en", d = e.meta.viewerMode ?? "measure", u = e.meta.exportLayouts !== !1, p = t.accessManifest ? ` <script id="mlcad-access" type="application/json">${Ua(
|
|
6851
6870
|
JSON.stringify(t.accessManifest)
|
|
6852
6871
|
)}<\/script>
|
|
6853
6872
|
` : "", m = s ? `${o}+aes-gcm;base85` : `${o}+${i};base85`;
|
|
6854
6873
|
return `<!DOCTYPE html>
|
|
6855
|
-
<html lang="${
|
|
6874
|
+
<html lang="${c}">
|
|
6856
6875
|
<head>
|
|
6857
6876
|
<meta charset="utf-8" />
|
|
6858
6877
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6859
6878
|
<meta name="generator" content="mlightcad-cad-html-plugin" />
|
|
6860
6879
|
<title>${Fa(n)}</title>
|
|
6861
|
-
<style>${
|
|
6880
|
+
<style>${En}</style>
|
|
6862
6881
|
</head>
|
|
6863
6882
|
<body>
|
|
6864
|
-
${
|
|
6883
|
+
${Mn(l, d, u)}
|
|
6865
6884
|
${p} <script id="mlcad-snapshot" type="${m}">${r.payload}<\/script>
|
|
6866
|
-
<script>${
|
|
6885
|
+
<script>${_a(a)}<\/script>
|
|
6867
6886
|
</body>
|
|
6868
6887
|
</html>`;
|
|
6869
6888
|
}
|
|
6870
6889
|
function Ta(e, t) {
|
|
6871
|
-
var
|
|
6872
|
-
const n = t.title ?? e.meta.title ?? "CAD Drawing", r = t.viewerRuntime, a = `#${e.meta.background.toString(16).padStart(6, "0")}`, o = Ve(e.meta.locale) ?? "en", i = e.meta.viewerMode ?? "measure", s = e.meta.exportLayouts !== !1, l = (
|
|
6890
|
+
var d;
|
|
6891
|
+
const n = t.title ?? e.meta.title ?? "CAD Drawing", r = t.viewerRuntime, a = `#${e.meta.background.toString(16).padStart(6, "0")}`, o = Ve(e.meta.locale) ?? "en", i = e.meta.viewerMode ?? "measure", s = e.meta.exportLayouts !== !1, l = (d = t.manifestUrl) == null ? void 0 : d.trim(), c = JSON.stringify(
|
|
6873
6892
|
l && l !== Ea ? { manifestUrl: l } : {}
|
|
6874
6893
|
);
|
|
6875
6894
|
return `<!DOCTYPE html>
|
|
@@ -6879,34 +6898,34 @@ function Ta(e, t) {
|
|
|
6879
6898
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6880
6899
|
<meta name="generator" content="mlightcad-cad-html-plugin" />
|
|
6881
6900
|
<title>${Fa(n)}</title>
|
|
6882
|
-
<style>${
|
|
6901
|
+
<style>${En}</style>
|
|
6883
6902
|
</head>
|
|
6884
6903
|
<body>
|
|
6885
|
-
${
|
|
6886
|
-
<script id="mlcad-package" type="application/json">${
|
|
6887
|
-
|
|
6904
|
+
${Mn(a, i, s)}
|
|
6905
|
+
<script id="mlcad-package" type="application/json">${Ua(
|
|
6906
|
+
c
|
|
6888
6907
|
)}<\/script>
|
|
6889
|
-
<script>${
|
|
6908
|
+
<script>${_a(r)}<\/script>
|
|
6890
6909
|
</body>
|
|
6891
6910
|
</html>`;
|
|
6892
6911
|
}
|
|
6893
6912
|
function Fa(e) {
|
|
6894
6913
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
6895
6914
|
}
|
|
6896
|
-
function
|
|
6915
|
+
function _a(e) {
|
|
6897
6916
|
return e.replace(/<\/script/gi, "<\\/script");
|
|
6898
6917
|
}
|
|
6899
|
-
function
|
|
6918
|
+
function Ua(e) {
|
|
6900
6919
|
return e.replace(/</g, "\\u003c");
|
|
6901
6920
|
}
|
|
6902
|
-
const Oa = 1,
|
|
6921
|
+
const Oa = 1, Yc = 600 * 1e3, Zc = 1e5, jc = 16, tn = 12, Gc = {
|
|
6903
6922
|
en: "en",
|
|
6904
6923
|
zh: "zh-CN",
|
|
6905
6924
|
cs: "cs",
|
|
6906
6925
|
tr: "tr",
|
|
6907
6926
|
ar: "ar"
|
|
6908
6927
|
};
|
|
6909
|
-
function
|
|
6928
|
+
function Lu(e, t = Date.now(), n) {
|
|
6910
6929
|
return e === "never" ? null : e === "custom" ? n ?? null : t + e * 24 * 60 * 60 * 1e3;
|
|
6911
6930
|
}
|
|
6912
6931
|
function Ra(e) {
|
|
@@ -6914,15 +6933,15 @@ function Ra(e) {
|
|
|
6914
6933
|
const t = !!((n = e.password) != null && n.trim());
|
|
6915
6934
|
return e.expiresAt != null || t;
|
|
6916
6935
|
}
|
|
6917
|
-
function
|
|
6936
|
+
function Au(e, t = Date.now()) {
|
|
6918
6937
|
return e.expiresAt != null && t > e.expiresAt;
|
|
6919
6938
|
}
|
|
6920
|
-
function
|
|
6939
|
+
function Cu(e, t = Date.now()) {
|
|
6921
6940
|
const n = e - t;
|
|
6922
|
-
return n > 0 && n <=
|
|
6941
|
+
return n > 0 && n <= Yc;
|
|
6923
6942
|
}
|
|
6924
|
-
function
|
|
6925
|
-
const n =
|
|
6943
|
+
function Eu(e, t = "en") {
|
|
6944
|
+
const n = Gc[t] ?? t;
|
|
6926
6945
|
try {
|
|
6927
6946
|
return new Date(e).toLocaleString(n, {
|
|
6928
6947
|
year: "numeric",
|
|
@@ -6937,11 +6956,11 @@ function Au(e, t = "en") {
|
|
|
6937
6956
|
return new Date(e).toISOString();
|
|
6938
6957
|
}
|
|
6939
6958
|
}
|
|
6940
|
-
function
|
|
6959
|
+
function Mu(e) {
|
|
6941
6960
|
const t = Math.max(0, Math.ceil(e / 1e3)), n = Math.floor(t / 3600), r = Math.floor(t % 3600 / 60), a = t % 60, o = String(r).padStart(2, "0"), i = String(a).padStart(2, "0");
|
|
6942
6961
|
return n > 0 ? `${n}:${o}:${i}` : `${r}:${i}`;
|
|
6943
6962
|
}
|
|
6944
|
-
function
|
|
6963
|
+
function Su(e) {
|
|
6945
6964
|
const t = e == null ? void 0 : e.trim();
|
|
6946
6965
|
if (!t)
|
|
6947
6966
|
return null;
|
|
@@ -6964,49 +6983,49 @@ function ot(e) {
|
|
|
6964
6983
|
...t && e.salt ? { salt: e.salt } : {}
|
|
6965
6984
|
};
|
|
6966
6985
|
}
|
|
6967
|
-
async function
|
|
6968
|
-
const n = t != null && t.trim() ? new Uint8Array(Da(t)) : crypto.getRandomValues(new Uint8Array(
|
|
6969
|
-
return { key: await
|
|
6986
|
+
async function In(e, t) {
|
|
6987
|
+
const n = t != null && t.trim() ? new Uint8Array(Da(t)) : crypto.getRandomValues(new Uint8Array(jc));
|
|
6988
|
+
return { key: await qc(e, n), salt: Ha(n) };
|
|
6970
6989
|
}
|
|
6971
6990
|
async function Pn(e, t) {
|
|
6972
|
-
const n = crypto.getRandomValues(new Uint8Array(
|
|
6991
|
+
const n = crypto.getRandomValues(new Uint8Array(tn)), r = new Uint8Array(t), a = new Uint8Array(
|
|
6973
6992
|
await crypto.subtle.encrypt({ name: "AES-GCM", iv: n }, e, r)
|
|
6974
6993
|
), o = new Uint8Array(n.length + a.length);
|
|
6975
6994
|
return o.set(n, 0), o.set(a, n.length), o;
|
|
6976
6995
|
}
|
|
6977
|
-
async function
|
|
6978
|
-
const n = new Uint8Array(t.subarray(0,
|
|
6996
|
+
async function zn(e, t) {
|
|
6997
|
+
const n = new Uint8Array(t.subarray(0, tn)), r = new Uint8Array(t.subarray(tn));
|
|
6979
6998
|
return new Uint8Array(
|
|
6980
6999
|
await crypto.subtle.decrypt({ name: "AES-GCM", iv: n }, e, r)
|
|
6981
7000
|
);
|
|
6982
7001
|
}
|
|
6983
|
-
async function
|
|
6984
|
-
const { key: r, salt: a } = await
|
|
7002
|
+
async function Kc(e, t, n = "base85") {
|
|
7003
|
+
const { key: r, salt: a } = await In(e), o = lt(t, n), i = await Pn(r, o);
|
|
6985
7004
|
return {
|
|
6986
7005
|
encryptedPayload: Ne(i, n),
|
|
6987
7006
|
salt: a
|
|
6988
7007
|
};
|
|
6989
7008
|
}
|
|
6990
|
-
async function
|
|
6991
|
-
const { key: a } = await
|
|
7009
|
+
async function Iu(e, t, n, r = "base85") {
|
|
7010
|
+
const { key: a } = await In(e, n), o = await zn(
|
|
6992
7011
|
a,
|
|
6993
7012
|
lt(t, r)
|
|
6994
7013
|
);
|
|
6995
7014
|
return Ne(o, r);
|
|
6996
7015
|
}
|
|
6997
|
-
function
|
|
7016
|
+
function Wc(e) {
|
|
6998
7017
|
return Ha(e);
|
|
6999
7018
|
}
|
|
7000
|
-
function
|
|
7019
|
+
function Jc(e) {
|
|
7001
7020
|
return Da(e);
|
|
7002
7021
|
}
|
|
7003
|
-
async function
|
|
7022
|
+
async function Pu(e, t) {
|
|
7004
7023
|
var r;
|
|
7005
7024
|
if (!Ra(t))
|
|
7006
7025
|
return { encoded: e };
|
|
7007
7026
|
const n = (r = t.password) == null ? void 0 : r.trim();
|
|
7008
7027
|
if (n) {
|
|
7009
|
-
const { encryptedPayload: a, salt: o } = await
|
|
7028
|
+
const { encryptedPayload: a, salt: o } = await Kc(
|
|
7010
7029
|
n,
|
|
7011
7030
|
e.payload
|
|
7012
7031
|
);
|
|
@@ -7029,7 +7048,7 @@ async function Su(e, t) {
|
|
|
7029
7048
|
})
|
|
7030
7049
|
};
|
|
7031
7050
|
}
|
|
7032
|
-
async function
|
|
7051
|
+
async function qc(e, t) {
|
|
7033
7052
|
const n = new TextEncoder(), r = await crypto.subtle.importKey(
|
|
7034
7053
|
"raw",
|
|
7035
7054
|
n.encode(e),
|
|
@@ -7041,7 +7060,7 @@ async function Jc(e, t) {
|
|
|
7041
7060
|
{
|
|
7042
7061
|
name: "PBKDF2",
|
|
7043
7062
|
salt: new Uint8Array(t),
|
|
7044
|
-
iterations:
|
|
7063
|
+
iterations: Zc,
|
|
7045
7064
|
hash: "SHA-256"
|
|
7046
7065
|
},
|
|
7047
7066
|
r,
|
|
@@ -7062,24 +7081,24 @@ function Da(e) {
|
|
|
7062
7081
|
n[r] = t.charCodeAt(r);
|
|
7063
7082
|
return n;
|
|
7064
7083
|
}
|
|
7065
|
-
const
|
|
7066
|
-
function Qc(e, t = ut) {
|
|
7067
|
-
return !(t > 0) || dn(e) <= t ? [e] : e.indices && e.indices.length >= 2 ? nd(e, t) : td(e, t);
|
|
7068
|
-
}
|
|
7084
|
+
const Qc = 256;
|
|
7069
7085
|
function ed(e, t = ut) {
|
|
7070
|
-
return
|
|
7086
|
+
return !(t > 0) || un(e) <= t ? [e] : e.indices && e.indices.length >= 2 ? rd(e, t) : nd(e, t);
|
|
7087
|
+
}
|
|
7088
|
+
function td(e, t = ut) {
|
|
7089
|
+
return e.texture ? [e] : !(t > 0) || mn(e) <= t ? [e] : e.points ? od(e, t) : !e.indices || e.indices.length < 3 ? $a(e, t) : sd(e, t);
|
|
7071
7090
|
}
|
|
7072
7091
|
function Na(e) {
|
|
7073
7092
|
return e.linePattern ? 64 + e.linePattern.pattern.length * 8 : 0;
|
|
7074
7093
|
}
|
|
7075
|
-
function
|
|
7094
|
+
function Bn(e) {
|
|
7076
7095
|
return (e.hatchPattern ? 128 : 0) + (e.gradientFill ? 64 : 0);
|
|
7077
7096
|
}
|
|
7078
7097
|
function Xe(e, t, n) {
|
|
7079
|
-
const r = e -
|
|
7098
|
+
const r = e - Qc - t;
|
|
7080
7099
|
return r < n ? 1 : Math.max(1, Math.floor(r / n));
|
|
7081
7100
|
}
|
|
7082
|
-
function
|
|
7101
|
+
function nd(e, t) {
|
|
7083
7102
|
var s;
|
|
7084
7103
|
const n = (((s = e.lineDistances) == null ? void 0 : s.length) ?? 0) >= 2, r = 24 + (n ? 8 : 0), a = Xe(
|
|
7085
7104
|
t,
|
|
@@ -7090,24 +7109,24 @@ function td(e, t) {
|
|
|
7090
7109
|
return [e];
|
|
7091
7110
|
const i = [];
|
|
7092
7111
|
for (let l = 0; l < o; l += a) {
|
|
7093
|
-
const
|
|
7112
|
+
const c = Math.min(a, o - l), d = l * 6, u = {
|
|
7094
7113
|
layer: e.layer,
|
|
7095
7114
|
color: e.color,
|
|
7096
7115
|
offset: e.offset,
|
|
7097
|
-
positions: e.positions.slice(
|
|
7116
|
+
positions: e.positions.slice(d, d + c * 6)
|
|
7098
7117
|
};
|
|
7099
7118
|
if (Ya(e, u), n && e.lineDistances) {
|
|
7100
7119
|
const p = l * 2;
|
|
7101
7120
|
u.lineDistances = e.lineDistances.slice(
|
|
7102
7121
|
p,
|
|
7103
|
-
p +
|
|
7122
|
+
p + c * 2
|
|
7104
7123
|
);
|
|
7105
7124
|
}
|
|
7106
7125
|
i.push(u);
|
|
7107
7126
|
}
|
|
7108
7127
|
return i.length > 0 ? i : [e];
|
|
7109
7128
|
}
|
|
7110
|
-
function
|
|
7129
|
+
function rd(e, t) {
|
|
7111
7130
|
var s;
|
|
7112
7131
|
const n = e.indices, a = 32 + ((((s = e.lineDistances) == null ? void 0 : s.length) ?? 0) > 0 ? 8 : 0), o = Xe(
|
|
7113
7132
|
t,
|
|
@@ -7115,13 +7134,13 @@ function nd(e, t) {
|
|
|
7115
7134
|
a
|
|
7116
7135
|
), i = [];
|
|
7117
7136
|
for (let l = 0; l + 1 < n.length; ) {
|
|
7118
|
-
const
|
|
7119
|
-
if (
|
|
7120
|
-
i.push(
|
|
7137
|
+
const c = Math.min(o * 2, n.length - l), d = c - c % 2;
|
|
7138
|
+
if (d < 2) break;
|
|
7139
|
+
i.push(ad(e, l, d)), l += d;
|
|
7121
7140
|
}
|
|
7122
7141
|
return i.length > 0 ? i : [e];
|
|
7123
7142
|
}
|
|
7124
|
-
function
|
|
7143
|
+
function ad(e, t, n) {
|
|
7125
7144
|
const r = Xa(
|
|
7126
7145
|
e.positions,
|
|
7127
7146
|
e.indices.subarray(t, t + n),
|
|
@@ -7136,13 +7155,13 @@ function rd(e, t, n) {
|
|
|
7136
7155
|
};
|
|
7137
7156
|
return Ya(e, a), r.attributes[0] && r.attributes[0].length > 0 && (a.lineDistances = r.attributes[0]), a;
|
|
7138
7157
|
}
|
|
7139
|
-
function ad(e, t) {
|
|
7140
|
-
return e.indices && e.indices.length > 0 ? od(e, t) : $a(e, t);
|
|
7141
|
-
}
|
|
7142
7158
|
function od(e, t) {
|
|
7159
|
+
return e.indices && e.indices.length > 0 ? id(e, t) : $a(e, t);
|
|
7160
|
+
}
|
|
7161
|
+
function id(e, t) {
|
|
7143
7162
|
const n = e.indices, r = 16 + (e.uvs ? 8 : 0) + (e.gradientPositions ? 8 : 0), a = Xe(
|
|
7144
7163
|
t,
|
|
7145
|
-
|
|
7164
|
+
Bn(e),
|
|
7146
7165
|
r
|
|
7147
7166
|
), o = [];
|
|
7148
7167
|
for (let i = 0; i < n.length; ) {
|
|
@@ -7158,20 +7177,20 @@ function $a(e, t) {
|
|
|
7158
7177
|
return [e];
|
|
7159
7178
|
const r = 12 + (e.uvs ? 8 : 0) + (e.gradientPositions ? 8 : 0), a = Xe(
|
|
7160
7179
|
t,
|
|
7161
|
-
|
|
7180
|
+
Bn(e),
|
|
7162
7181
|
r
|
|
7163
7182
|
), o = e.points ? 1 : 3, i = Math.max(o, a - a % o), s = [];
|
|
7164
7183
|
for (let l = 0; l < n; l += i) {
|
|
7165
|
-
const
|
|
7166
|
-
if (
|
|
7167
|
-
s.push(
|
|
7184
|
+
const c = Math.min(i, n - l), d = c - c % o;
|
|
7185
|
+
if (d < o) break;
|
|
7186
|
+
s.push(ld(e, l, d));
|
|
7168
7187
|
}
|
|
7169
7188
|
return s.length > 0 ? s : [e];
|
|
7170
7189
|
}
|
|
7171
|
-
function
|
|
7190
|
+
function sd(e, t) {
|
|
7172
7191
|
const n = e.indices, r = 48 + (e.uvs ? 24 : 0) + (e.gradientPositions ? 24 : 0), a = Xe(
|
|
7173
7192
|
t,
|
|
7174
|
-
|
|
7193
|
+
Bn(e),
|
|
7175
7194
|
r
|
|
7176
7195
|
), o = [];
|
|
7177
7196
|
for (let i = 0; i + 2 < n.length; ) {
|
|
@@ -7181,7 +7200,7 @@ function id(e, t) {
|
|
|
7181
7200
|
}
|
|
7182
7201
|
return o.length > 0 ? o : [e];
|
|
7183
7202
|
}
|
|
7184
|
-
function
|
|
7203
|
+
function ld(e, t, n) {
|
|
7185
7204
|
const r = t * 3, a = {
|
|
7186
7205
|
layer: e.layer,
|
|
7187
7206
|
color: e.color,
|
|
@@ -7215,23 +7234,23 @@ function Va(e, t, n) {
|
|
|
7215
7234
|
function Xa(e, t, n, r) {
|
|
7216
7235
|
const a = /* @__PURE__ */ new Map(), o = [], i = new Uint32Array(t.length), s = n.map(() => []);
|
|
7217
7236
|
for (let l = 0; l < t.length; l++) {
|
|
7218
|
-
const
|
|
7219
|
-
let
|
|
7220
|
-
if (
|
|
7221
|
-
|
|
7222
|
-
const u =
|
|
7237
|
+
const c = t[l];
|
|
7238
|
+
let d = a.get(c);
|
|
7239
|
+
if (d == null) {
|
|
7240
|
+
d = a.size, a.set(c, d);
|
|
7241
|
+
const u = c * 3;
|
|
7223
7242
|
o.push(
|
|
7224
7243
|
e[u] ?? 0,
|
|
7225
7244
|
e[u + 1] ?? 0,
|
|
7226
7245
|
e[u + 2] ?? 0
|
|
7227
7246
|
);
|
|
7228
7247
|
for (let p = 0; p < n.length; p++) {
|
|
7229
|
-
const m = r[p], f = n[p], h =
|
|
7248
|
+
const m = r[p], f = n[p], h = c * m;
|
|
7230
7249
|
for (let w = 0; w < m; w++)
|
|
7231
7250
|
s[p].push(f[h + w] ?? 0);
|
|
7232
7251
|
}
|
|
7233
7252
|
}
|
|
7234
|
-
i[l] =
|
|
7253
|
+
i[l] = d;
|
|
7235
7254
|
}
|
|
7236
7255
|
return {
|
|
7237
7256
|
positions: Float32Array.from(o),
|
|
@@ -7245,7 +7264,7 @@ function Ya(e, t) {
|
|
|
7245
7264
|
function Za(e, t) {
|
|
7246
7265
|
e.hatchPattern && (t.hatchPattern = e.hatchPattern), e.gradientFill && (t.gradientFill = e.gradientFill), e.side != null && (t.side = e.side), e.renderOrder != null && (t.renderOrder = e.renderOrder), e.points && (t.points = !0);
|
|
7247
7266
|
}
|
|
7248
|
-
function
|
|
7267
|
+
function cd(e, t, n = ut) {
|
|
7249
7268
|
const r = [];
|
|
7250
7269
|
let a = {
|
|
7251
7270
|
lineBatches: [],
|
|
@@ -7254,46 +7273,46 @@ function ld(e, t, n = ut) {
|
|
|
7254
7273
|
};
|
|
7255
7274
|
const o = () => {
|
|
7256
7275
|
a.lineBatches.length === 0 && a.meshBatches.length === 0 && r.length > 0 || (r.push(a), a = { lineBatches: [], meshBatches: [], estimatedBytes: 64 });
|
|
7257
|
-
}, i = (
|
|
7258
|
-
const
|
|
7259
|
-
a.estimatedBytes +
|
|
7260
|
-
}, s = (
|
|
7261
|
-
const
|
|
7262
|
-
a.estimatedBytes +
|
|
7276
|
+
}, i = (c) => {
|
|
7277
|
+
const d = un(c);
|
|
7278
|
+
a.estimatedBytes + d > t && (a.lineBatches.length > 0 || a.meshBatches.length > 0) && o(), a.lineBatches.push(c), a.estimatedBytes += d;
|
|
7279
|
+
}, s = (c) => {
|
|
7280
|
+
const d = mn(c);
|
|
7281
|
+
a.estimatedBytes + d > t && (a.lineBatches.length > 0 || a.meshBatches.length > 0) && o(), a.meshBatches.push(c), a.estimatedBytes += d;
|
|
7263
7282
|
}, l = Math.min(t, n);
|
|
7264
|
-
for (const
|
|
7265
|
-
for (const
|
|
7266
|
-
i(
|
|
7267
|
-
for (const
|
|
7268
|
-
for (const
|
|
7269
|
-
s(
|
|
7283
|
+
for (const c of e.lineBatches)
|
|
7284
|
+
for (const d of ed(c, l))
|
|
7285
|
+
i(d);
|
|
7286
|
+
for (const c of e.meshBatches)
|
|
7287
|
+
for (const d of td(c, l))
|
|
7288
|
+
s(d);
|
|
7270
7289
|
return (r.length === 0 || a.lineBatches.length > 0 || a.meshBatches.length > 0) && o(), r.length === 0 && r.push({ lineBatches: [], meshBatches: [], estimatedBytes: 64 }), r;
|
|
7271
7290
|
}
|
|
7272
7291
|
function ja(e, t) {
|
|
7273
7292
|
if (e.version !== D)
|
|
7274
7293
|
throw new Error(`Unsupported snapshot version: ${e.version}`);
|
|
7275
|
-
const n = t.maxChunkBytes ?? El, r = t.maxBatchBytes ?? ut, a = t.maxOsnapChunkBytes ?? n, o = t.compressChunks !== !1, i = o ? "acex.gz" : "acex", s = o ? "osnap.gz" : "osnap", l = re,
|
|
7294
|
+
const n = t.maxChunkBytes ?? El, r = t.maxBatchBytes ?? ut, a = t.maxOsnapChunkBytes ?? n, o = t.compressChunks !== !1, i = o ? "acex.gz" : "acex", s = o ? "osnap.gz" : "osnap", l = re, c = pd(
|
|
7276
7295
|
e.layouts,
|
|
7277
7296
|
e.activeLayoutBtrId
|
|
7278
|
-
),
|
|
7279
|
-
return
|
|
7297
|
+
), d = [], u = [], p = /* @__PURE__ */ new Map();
|
|
7298
|
+
return c.forEach((m, f) => {
|
|
7280
7299
|
var b;
|
|
7281
7300
|
p.set(m.btrId, f);
|
|
7282
|
-
const h =
|
|
7283
|
-
h.forEach((
|
|
7301
|
+
const h = cd(m, n, r), w = [];
|
|
7302
|
+
h.forEach((y, E) => {
|
|
7284
7303
|
const A = `L${f}-${String(E).padStart(3, "0")}`, M = `chunks/${A}.${i}`;
|
|
7285
|
-
w.push(A),
|
|
7304
|
+
w.push(A), d.push({
|
|
7286
7305
|
kind: "geometry",
|
|
7287
7306
|
id: A,
|
|
7288
7307
|
href: M,
|
|
7289
7308
|
layoutBtrId: m.btrId,
|
|
7290
|
-
lineBatchCount:
|
|
7291
|
-
meshBatchCount:
|
|
7309
|
+
lineBatchCount: y.lineBatches.length,
|
|
7310
|
+
meshBatchCount: y.meshBatches.length,
|
|
7292
7311
|
chunk: {
|
|
7293
7312
|
version: D,
|
|
7294
7313
|
layoutBtrId: m.btrId,
|
|
7295
|
-
lineBatches:
|
|
7296
|
-
meshBatches:
|
|
7314
|
+
lineBatches: y.lineBatches,
|
|
7315
|
+
meshBatches: y.meshBatches
|
|
7297
7316
|
}
|
|
7298
7317
|
});
|
|
7299
7318
|
});
|
|
@@ -7303,19 +7322,20 @@ function ja(e, t) {
|
|
|
7303
7322
|
isModelSpace: m.isModelSpace,
|
|
7304
7323
|
viewports: m.viewports,
|
|
7305
7324
|
...m.savedView ? { savedView: m.savedView } : {},
|
|
7325
|
+
...m.fitExtents ? { fitExtents: m.fitExtents } : {},
|
|
7306
7326
|
chunkIds: w
|
|
7307
7327
|
}, g = (b = m.osnap) == null ? void 0 : b.primitives;
|
|
7308
7328
|
if (g && g.length > 0) {
|
|
7309
|
-
const
|
|
7329
|
+
const y = Bi(
|
|
7310
7330
|
g,
|
|
7311
7331
|
a
|
|
7312
7332
|
), E = [];
|
|
7313
|
-
|
|
7314
|
-
const k = `L${f}-osnap-${String(M).padStart(3, "0")}`,
|
|
7315
|
-
E.push(k),
|
|
7333
|
+
y.forEach((A, M) => {
|
|
7334
|
+
const k = `L${f}-osnap-${String(M).padStart(3, "0")}`, x = `chunks/${k}.${s}`;
|
|
7335
|
+
E.push(k), d.push({
|
|
7316
7336
|
kind: "osnap",
|
|
7317
7337
|
id: k,
|
|
7318
|
-
href:
|
|
7338
|
+
href: x,
|
|
7319
7339
|
layoutBtrId: m.btrId,
|
|
7320
7340
|
primitiveCount: A.length,
|
|
7321
7341
|
primitives: A
|
|
@@ -7323,19 +7343,19 @@ function ja(e, t) {
|
|
|
7323
7343
|
}), v.osnapChunkIds = E;
|
|
7324
7344
|
}
|
|
7325
7345
|
u.push(v);
|
|
7326
|
-
}), { jobs:
|
|
7346
|
+
}), { jobs: d, layoutRefs: u, layoutIndexByBtrId: p, manifestFileName: l, compressChunks: o };
|
|
7327
7347
|
}
|
|
7328
7348
|
function Ga(e, t, n, r, a) {
|
|
7329
7349
|
var h, w;
|
|
7330
7350
|
const o = [], i = [], s = [];
|
|
7331
7351
|
for (const v of a) {
|
|
7332
|
-
const { job: g, uncompressedByteLength: b, compressed:
|
|
7333
|
-
s.push({ path: g.href, bytes:
|
|
7352
|
+
const { job: g, uncompressedByteLength: b, compressed: y } = v;
|
|
7353
|
+
s.push({ path: g.href, bytes: y }), g.kind === "geometry" ? o.push({
|
|
7334
7354
|
id: g.id,
|
|
7335
7355
|
href: g.href,
|
|
7336
7356
|
layoutBtrId: g.layoutBtrId,
|
|
7337
7357
|
byteLength: b,
|
|
7338
|
-
compressedByteLength:
|
|
7358
|
+
compressedByteLength: y.byteLength,
|
|
7339
7359
|
lineBatchCount: g.lineBatchCount,
|
|
7340
7360
|
meshBatchCount: g.meshBatchCount
|
|
7341
7361
|
}) : i.push({
|
|
@@ -7343,18 +7363,18 @@ function Ga(e, t, n, r, a) {
|
|
|
7343
7363
|
href: g.href,
|
|
7344
7364
|
layoutBtrId: g.layoutBtrId,
|
|
7345
7365
|
byteLength: b,
|
|
7346
|
-
compressedByteLength:
|
|
7366
|
+
compressedByteLength: y.byteLength,
|
|
7347
7367
|
primitiveCount: g.primitiveCount
|
|
7348
7368
|
});
|
|
7349
7369
|
}
|
|
7350
7370
|
const l = e.layouts.map((v) => {
|
|
7351
7371
|
const g = n.get(v.btrId);
|
|
7352
7372
|
return t[g];
|
|
7353
|
-
}),
|
|
7373
|
+
}), c = new Set(
|
|
7354
7374
|
((h = l.find((v) => v.btrId === e.activeLayoutBtrId)) == null ? void 0 : h.chunkIds) ?? []
|
|
7355
|
-
),
|
|
7356
|
-
...o.filter((v) =>
|
|
7357
|
-
...o.filter((v) => !
|
|
7375
|
+
), d = [
|
|
7376
|
+
...o.filter((v) => c.has(v.id)),
|
|
7377
|
+
...o.filter((v) => !c.has(v.id))
|
|
7358
7378
|
], u = new Set(
|
|
7359
7379
|
((w = l.find((v) => v.btrId === e.activeLayoutBtrId)) == null ? void 0 : w.osnapChunkIds) ?? []
|
|
7360
7380
|
), p = [
|
|
@@ -7368,7 +7388,7 @@ function Ga(e, t, n, r, a) {
|
|
|
7368
7388
|
layers: e.layers,
|
|
7369
7389
|
activeLayoutBtrId: e.activeLayoutBtrId,
|
|
7370
7390
|
layouts: l,
|
|
7371
|
-
chunks:
|
|
7391
|
+
chunks: d,
|
|
7372
7392
|
...p.length > 0 ? { osnapChunks: p } : {}
|
|
7373
7393
|
}, f = `${JSON.stringify(m)}
|
|
7374
7394
|
`;
|
|
@@ -7381,7 +7401,7 @@ function Ga(e, t, n, r, a) {
|
|
|
7381
7401
|
files: s
|
|
7382
7402
|
};
|
|
7383
7403
|
}
|
|
7384
|
-
function
|
|
7404
|
+
function dd(e, t) {
|
|
7385
7405
|
if (e.kind === "geometry") {
|
|
7386
7406
|
if (!t) {
|
|
7387
7407
|
const i = dt(e.chunk);
|
|
@@ -7417,7 +7437,7 @@ function cd(e, t) {
|
|
|
7417
7437
|
compressed: r
|
|
7418
7438
|
};
|
|
7419
7439
|
}
|
|
7420
|
-
async function
|
|
7440
|
+
async function ud(e, t) {
|
|
7421
7441
|
if (e.kind === "geometry") {
|
|
7422
7442
|
if (!t) {
|
|
7423
7443
|
const i = dt(e.chunk);
|
|
@@ -7453,14 +7473,14 @@ async function dd(e, t) {
|
|
|
7453
7473
|
compressed: r
|
|
7454
7474
|
};
|
|
7455
7475
|
}
|
|
7456
|
-
function
|
|
7476
|
+
function md(e, t = {}) {
|
|
7457
7477
|
const {
|
|
7458
7478
|
jobs: n,
|
|
7459
7479
|
layoutRefs: r,
|
|
7460
7480
|
layoutIndexByBtrId: a,
|
|
7461
7481
|
manifestFileName: o,
|
|
7462
7482
|
compressChunks: i
|
|
7463
|
-
} = ja(e, t), s = n.map((l) =>
|
|
7483
|
+
} = ja(e, t), s = n.map((l) => dd(l, i));
|
|
7464
7484
|
return Ga(
|
|
7465
7485
|
e,
|
|
7466
7486
|
r,
|
|
@@ -7477,7 +7497,7 @@ async function Ka(e, t = {}) {
|
|
|
7477
7497
|
manifestFileName: o,
|
|
7478
7498
|
compressChunks: i
|
|
7479
7499
|
} = ja(e, t), s = await Promise.all(
|
|
7480
|
-
n.map((l) =>
|
|
7500
|
+
n.map((l) => ud(l, i))
|
|
7481
7501
|
);
|
|
7482
7502
|
return Ga(
|
|
7483
7503
|
e,
|
|
@@ -7487,8 +7507,8 @@ async function Ka(e, t = {}) {
|
|
|
7487
7507
|
s
|
|
7488
7508
|
);
|
|
7489
7509
|
}
|
|
7490
|
-
function
|
|
7491
|
-
const n =
|
|
7510
|
+
function zu(e, t) {
|
|
7511
|
+
const n = md(e, t), r = Ta(e, {
|
|
7492
7512
|
title: e.meta.title,
|
|
7493
7513
|
viewerRuntime: t.viewerRuntime,
|
|
7494
7514
|
...t.manifestUrl ? { manifestUrl: t.manifestUrl } : {}
|
|
@@ -7500,7 +7520,7 @@ function Pu(e, t) {
|
|
|
7500
7520
|
files: [{ path: "viewer.html", bytes: ve(r) }, ...n.files]
|
|
7501
7521
|
};
|
|
7502
7522
|
}
|
|
7503
|
-
async function
|
|
7523
|
+
async function Bu(e, t) {
|
|
7504
7524
|
const n = await Ka(e, t), r = Ta(e, {
|
|
7505
7525
|
title: e.meta.title,
|
|
7506
7526
|
viewerRuntime: t.viewerRuntime,
|
|
@@ -7513,19 +7533,19 @@ async function Iu(e, t) {
|
|
|
7513
7533
|
files: [{ path: "viewer.html", bytes: ve(r) }, ...n.files]
|
|
7514
7534
|
};
|
|
7515
7535
|
}
|
|
7516
|
-
function
|
|
7536
|
+
function pd(e, t) {
|
|
7517
7537
|
const n = e.find((a) => a.btrId === t), r = e.filter((a) => a.btrId !== t);
|
|
7518
7538
|
return n ? [n, ...r] : [...e];
|
|
7519
7539
|
}
|
|
7520
|
-
const
|
|
7521
|
-
function
|
|
7540
|
+
const fd = "application/vnd.mlightcad.acex-chunk;base85", Tu = "application/vnd.mlightcad.acex-chunk;base64", hd = "application/vnd.mlightcad.acex-chunk+aes-gcm;base85", Fu = "application/vnd.mlightcad.acex-chunk+aes-gcm;base64", ce = "data-acex-href";
|
|
7541
|
+
function gd(e) {
|
|
7522
7542
|
var n;
|
|
7523
7543
|
let t = 0;
|
|
7524
7544
|
for (const r of e.layouts) {
|
|
7525
7545
|
for (const o of r.lineBatches)
|
|
7526
|
-
t += dn(o);
|
|
7527
|
-
for (const o of r.meshBatches)
|
|
7528
7546
|
t += un(o);
|
|
7547
|
+
for (const o of r.meshBatches)
|
|
7548
|
+
t += mn(o);
|
|
7529
7549
|
const a = (n = r.osnap) == null ? void 0 : n.primitives;
|
|
7530
7550
|
if (a)
|
|
7531
7551
|
for (const o of a)
|
|
@@ -7533,38 +7553,38 @@ function hd(e) {
|
|
|
7533
7553
|
}
|
|
7534
7554
|
return t;
|
|
7535
7555
|
}
|
|
7536
|
-
function
|
|
7537
|
-
return
|
|
7556
|
+
function _u(e, t = Ml) {
|
|
7557
|
+
return gd(e) >= t;
|
|
7538
7558
|
}
|
|
7539
|
-
async function
|
|
7559
|
+
async function Uu(e, t) {
|
|
7540
7560
|
var w;
|
|
7541
|
-
const n = t.title ?? e.meta.title ?? "CAD Drawing", r = t.viewerRuntime, a = `#${e.meta.background.toString(16).padStart(6, "0")}`, o = Ve(e.meta.locale) ?? "en", i = e.meta.viewerMode ?? "measure", s = e.meta.exportLayouts !== !1, l = t.expiresAt ?? null,
|
|
7561
|
+
const n = t.title ?? e.meta.title ?? "CAD Drawing", r = t.viewerRuntime, a = `#${e.meta.background.toString(16).padStart(6, "0")}`, o = Ve(e.meta.locale) ?? "en", i = e.meta.viewerMode ?? "measure", s = e.meta.exportLayouts !== !1, l = t.expiresAt ?? null, c = ((w = t.password) == null ? void 0 : w.trim()) || void 0, d = {
|
|
7542
7562
|
maxChunkBytes: t.maxChunkBytes ?? sr,
|
|
7543
7563
|
maxBatchBytes: t.maxBatchBytes ?? t.maxChunkBytes ?? sr,
|
|
7544
7564
|
maxOsnapChunkBytes: t.maxOsnapChunkBytes ?? Sl
|
|
7545
|
-
}, u = await Ka(e,
|
|
7565
|
+
}, u = await Ka(e, d);
|
|
7546
7566
|
let p, m, f;
|
|
7547
|
-
if (
|
|
7548
|
-
const { key: v, salt: g } = await
|
|
7567
|
+
if (c) {
|
|
7568
|
+
const { key: v, salt: g } = await In(c);
|
|
7549
7569
|
p = ot({
|
|
7550
7570
|
expiresAt: l,
|
|
7551
|
-
password:
|
|
7571
|
+
password: c,
|
|
7552
7572
|
salt: g
|
|
7553
7573
|
});
|
|
7554
7574
|
const b = new TextEncoder().encode(
|
|
7555
7575
|
`${JSON.stringify(u.manifest)}
|
|
7556
7576
|
`
|
|
7557
|
-
),
|
|
7577
|
+
), y = await Pn(v, b);
|
|
7558
7578
|
m = {
|
|
7559
7579
|
mode: "embedded",
|
|
7560
7580
|
encrypted: !0,
|
|
7561
|
-
encryptedManifest:
|
|
7562
|
-
}, f = await
|
|
7581
|
+
encryptedManifest: Wc(y)
|
|
7582
|
+
}, f = await vd(u.files, v);
|
|
7563
7583
|
} else
|
|
7564
7584
|
p = ot({ expiresAt: l }), m = {
|
|
7565
7585
|
mode: "embedded",
|
|
7566
7586
|
manifest: u.manifest
|
|
7567
|
-
}, f =
|
|
7587
|
+
}, f = wd(u.files);
|
|
7568
7588
|
const h = p ? ` <script id="mlcad-access" type="application/json">${ur(
|
|
7569
7589
|
JSON.stringify(p)
|
|
7570
7590
|
)}<\/script>
|
|
@@ -7576,35 +7596,35 @@ async function Fu(e, t) {
|
|
|
7576
7596
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7577
7597
|
<meta name="generator" content="mlightcad-cad-html-plugin" />
|
|
7578
7598
|
<title>${Wa(n)}</title>
|
|
7579
|
-
<style>${
|
|
7599
|
+
<style>${En}</style>
|
|
7580
7600
|
</head>
|
|
7581
7601
|
<body>
|
|
7582
|
-
${
|
|
7602
|
+
${Mn(a, i, s)}
|
|
7583
7603
|
${h} <script id="mlcad-package" type="application/json">${ur(
|
|
7584
7604
|
JSON.stringify(m)
|
|
7585
7605
|
)}<\/script>
|
|
7586
|
-
${f} <script>${
|
|
7606
|
+
${f} <script>${bd(r)}<\/script>
|
|
7587
7607
|
</body>
|
|
7588
7608
|
</html>`;
|
|
7589
7609
|
}
|
|
7590
|
-
function
|
|
7610
|
+
function wd(e) {
|
|
7591
7611
|
const t = [];
|
|
7592
7612
|
for (const n of e)
|
|
7593
7613
|
n.path !== re && t.push(
|
|
7594
|
-
` <script type="${
|
|
7614
|
+
` <script type="${fd}" ${ce}="${Ja(
|
|
7595
7615
|
n.path
|
|
7596
7616
|
)}">${Ne(n.bytes, "base85")}<\/script>
|
|
7597
7617
|
`
|
|
7598
7618
|
);
|
|
7599
7619
|
return t.join("");
|
|
7600
7620
|
}
|
|
7601
|
-
async function
|
|
7621
|
+
async function vd(e, t) {
|
|
7602
7622
|
const n = [];
|
|
7603
7623
|
for (const r of e) {
|
|
7604
7624
|
if (r.path === re) continue;
|
|
7605
7625
|
const a = await Pn(t, r.bytes);
|
|
7606
7626
|
n.push(
|
|
7607
|
-
` <script type="${
|
|
7627
|
+
` <script type="${hd}" ${ce}="${Ja(
|
|
7608
7628
|
r.path
|
|
7609
7629
|
)}">${Ne(a, "base85")}<\/script>
|
|
7610
7630
|
`
|
|
@@ -7612,7 +7632,7 @@ async function wd(e, t) {
|
|
|
7612
7632
|
}
|
|
7613
7633
|
return n.join("");
|
|
7614
7634
|
}
|
|
7615
|
-
function
|
|
7635
|
+
function Tn(e) {
|
|
7616
7636
|
const t = e.textContent ?? "";
|
|
7617
7637
|
if (t.length === 0) return;
|
|
7618
7638
|
const n = t.charCodeAt(0) <= 32 || t.charCodeAt(t.length - 1) <= 32 ? t.trim() : t;
|
|
@@ -7622,7 +7642,7 @@ function Bn(e) {
|
|
|
7622
7642
|
);
|
|
7623
7643
|
return lt(n, r);
|
|
7624
7644
|
}
|
|
7625
|
-
function
|
|
7645
|
+
function Ou(e) {
|
|
7626
7646
|
const t = e == null ? void 0 : e.trim();
|
|
7627
7647
|
if (!t) return null;
|
|
7628
7648
|
try {
|
|
@@ -7637,7 +7657,7 @@ function Uu(e) {
|
|
|
7637
7657
|
return null;
|
|
7638
7658
|
}
|
|
7639
7659
|
}
|
|
7640
|
-
function
|
|
7660
|
+
function Ru(e = document) {
|
|
7641
7661
|
const t = /* @__PURE__ */ new Map();
|
|
7642
7662
|
return e.querySelectorAll(
|
|
7643
7663
|
`script[${ce}]`
|
|
@@ -7645,11 +7665,11 @@ function _u(e = document) {
|
|
|
7645
7665
|
var i;
|
|
7646
7666
|
const a = (i = r.getAttribute(ce)) == null ? void 0 : i.trim();
|
|
7647
7667
|
if (!a) return;
|
|
7648
|
-
const o =
|
|
7668
|
+
const o = Tn(r);
|
|
7649
7669
|
o && t.set(a, o);
|
|
7650
7670
|
}), t;
|
|
7651
7671
|
}
|
|
7652
|
-
function
|
|
7672
|
+
function Hu(e, t = document) {
|
|
7653
7673
|
var r;
|
|
7654
7674
|
const n = t.querySelectorAll(
|
|
7655
7675
|
`script[${ce}]`
|
|
@@ -7657,10 +7677,10 @@ function Ou(e, t = document) {
|
|
|
7657
7677
|
for (let a = 0; a < n.length; a++) {
|
|
7658
7678
|
const o = n[a];
|
|
7659
7679
|
if (((r = o.getAttribute(ce)) == null ? void 0 : r.trim()) === e)
|
|
7660
|
-
return
|
|
7680
|
+
return Tn(o);
|
|
7661
7681
|
}
|
|
7662
7682
|
}
|
|
7663
|
-
function
|
|
7683
|
+
function xd(e, t = document) {
|
|
7664
7684
|
var r;
|
|
7665
7685
|
const n = t.querySelectorAll(
|
|
7666
7686
|
`script[${ce}]`
|
|
@@ -7668,11 +7688,11 @@ function vd(e, t = document) {
|
|
|
7668
7688
|
for (let a = 0; a < n.length; a++) {
|
|
7669
7689
|
const o = n[a];
|
|
7670
7690
|
if (((r = o.getAttribute(ce)) == null ? void 0 : r.trim()) !== e) continue;
|
|
7671
|
-
const s =
|
|
7691
|
+
const s = Tn(o);
|
|
7672
7692
|
return s ? (o.remove(), s) : void 0;
|
|
7673
7693
|
}
|
|
7674
7694
|
}
|
|
7675
|
-
function
|
|
7695
|
+
function Du(e) {
|
|
7676
7696
|
const t = e.root ?? document, n = /* @__PURE__ */ new Map();
|
|
7677
7697
|
return yd({
|
|
7678
7698
|
manifest: e.manifest,
|
|
@@ -7680,7 +7700,7 @@ function Ru(e) {
|
|
|
7680
7700
|
getChunk: async (r) => {
|
|
7681
7701
|
const a = n.get(r);
|
|
7682
7702
|
if (a) return a;
|
|
7683
|
-
const o =
|
|
7703
|
+
const o = xd(r, t);
|
|
7684
7704
|
return o && n.set(r, o), o;
|
|
7685
7705
|
}
|
|
7686
7706
|
});
|
|
@@ -7691,8 +7711,8 @@ function yd(e) {
|
|
|
7691
7711
|
at
|
|
7692
7712
|
).toString(), r = new URL(at).origin, a = `${JSON.stringify(e.manifest)}
|
|
7693
7713
|
`, o = e.decryptKey ?? null, i = e.consumeOnFetch !== !1, s = e.chunkBytes, l = e.getChunk;
|
|
7694
|
-
return { manifestUrl: n, fetchImpl: async (
|
|
7695
|
-
const u = new URL(String(
|
|
7714
|
+
return { manifestUrl: n, fetchImpl: async (d) => {
|
|
7715
|
+
const u = new URL(String(d));
|
|
7696
7716
|
if (u.origin !== r)
|
|
7697
7717
|
return new Response(null, { status: 404 });
|
|
7698
7718
|
const p = decodeURIComponent(u.pathname.replace(/^\/+/, ""));
|
|
@@ -7704,14 +7724,14 @@ function yd(e) {
|
|
|
7704
7724
|
let m;
|
|
7705
7725
|
if (l ? m = await l(p) : s && (m = s.get(p)), !m)
|
|
7706
7726
|
return new Response(null, { status: 404 });
|
|
7707
|
-
const f = o ? await
|
|
7727
|
+
const f = o ? await zn(o, m) : m;
|
|
7708
7728
|
return i && s && s.delete(p), new Response(f, { status: 200 });
|
|
7709
7729
|
} };
|
|
7710
7730
|
}
|
|
7711
|
-
async function
|
|
7712
|
-
const n = await
|
|
7731
|
+
async function Nu(e, t) {
|
|
7732
|
+
const n = await zn(
|
|
7713
7733
|
t,
|
|
7714
|
-
|
|
7734
|
+
Jc(e)
|
|
7715
7735
|
), r = new TextDecoder().decode(n);
|
|
7716
7736
|
return mt(JSON.parse(r));
|
|
7717
7737
|
}
|
|
@@ -7721,7 +7741,7 @@ function Wa(e) {
|
|
|
7721
7741
|
function Ja(e) {
|
|
7722
7742
|
return Wa(e).replace(/'/g, "'");
|
|
7723
7743
|
}
|
|
7724
|
-
function
|
|
7744
|
+
function bd(e) {
|
|
7725
7745
|
return e.replace(/<\/script/gi, "<\\/script");
|
|
7726
7746
|
}
|
|
7727
7747
|
function ur(e) {
|
|
@@ -7732,19 +7752,19 @@ function qa(e) {
|
|
|
7732
7752
|
(n) => n.length > 0 && n !== "." && n !== ".." && /^[A-Za-z0-9._-]+$/.test(n)
|
|
7733
7753
|
);
|
|
7734
7754
|
}
|
|
7735
|
-
function
|
|
7755
|
+
function kd(e) {
|
|
7736
7756
|
return e.endsWith(".gz");
|
|
7737
7757
|
}
|
|
7738
|
-
function
|
|
7758
|
+
function $u(e) {
|
|
7739
7759
|
const t = {};
|
|
7740
7760
|
for (const n of e.files) {
|
|
7741
7761
|
if (!qa(n.path))
|
|
7742
7762
|
throw new Error(`Unsafe package path: ${n.path}`);
|
|
7743
|
-
|
|
7763
|
+
kd(n.path) ? t[n.path] = [n.bytes, { level: 0 }] : t[n.path] = [n.bytes, { level: 6 }];
|
|
7744
7764
|
}
|
|
7745
7765
|
return ki(t);
|
|
7746
7766
|
}
|
|
7747
|
-
function
|
|
7767
|
+
function Vu(e) {
|
|
7748
7768
|
const t = Li(e), n = [];
|
|
7749
7769
|
for (const [r, a] of Object.entries(t)) {
|
|
7750
7770
|
if (!qa(r))
|
|
@@ -7753,26 +7773,26 @@ function Nu(e) {
|
|
|
7753
7773
|
}
|
|
7754
7774
|
return n;
|
|
7755
7775
|
}
|
|
7756
|
-
const ft = 0,
|
|
7757
|
-
function
|
|
7776
|
+
const ft = 0, Fn = 16777215;
|
|
7777
|
+
function Ld(e) {
|
|
7758
7778
|
return e === "white" || e === "space" ? e : "black";
|
|
7759
7779
|
}
|
|
7760
|
-
function
|
|
7761
|
-
return e === "white" ?
|
|
7780
|
+
function Ad(e) {
|
|
7781
|
+
return e === "white" ? Fn : ft;
|
|
7762
7782
|
}
|
|
7763
7783
|
function mr(e, t, n) {
|
|
7764
|
-
return e === "space" ? t ? ft :
|
|
7784
|
+
return e === "space" ? t ? ft : Fn : n >>> 0;
|
|
7765
7785
|
}
|
|
7766
7786
|
function pr(e) {
|
|
7767
7787
|
const t = e >>> 0, n = t >> 16 & 255, r = t >> 8 & 255, a = t & 255;
|
|
7768
7788
|
return (n * 299 + r * 587 + a * 114) / 1e3 >= 128;
|
|
7769
7789
|
}
|
|
7770
|
-
function
|
|
7790
|
+
function Cd(e) {
|
|
7771
7791
|
const t = e >>> 0, n = t >> 16 & 255, r = t >> 8 & 255, a = t & 255, o = Math.max(n, r, a), i = Math.min(n, r, a);
|
|
7772
|
-
return o - i > 16 ? null : o <= 40 ?
|
|
7792
|
+
return o - i > 16 ? null : o <= 40 ? Fn : i >= 215 ? ft : null;
|
|
7773
7793
|
}
|
|
7774
7794
|
function Ke(e) {
|
|
7775
|
-
return
|
|
7795
|
+
return Cd(e) ?? e;
|
|
7776
7796
|
}
|
|
7777
7797
|
function Qa(e, t, n) {
|
|
7778
7798
|
if (pr(t) !== pr(n)) {
|
|
@@ -7786,14 +7806,14 @@ function Qa(e, t, n) {
|
|
|
7786
7806
|
}
|
|
7787
7807
|
}
|
|
7788
7808
|
}
|
|
7789
|
-
function
|
|
7809
|
+
function Ed(e, t, n) {
|
|
7790
7810
|
const r = n >>> 0;
|
|
7791
7811
|
e.meta.background = r;
|
|
7792
7812
|
for (const a of e.layouts)
|
|
7793
7813
|
Qa(a, t, r);
|
|
7794
7814
|
}
|
|
7795
|
-
function
|
|
7796
|
-
const r =
|
|
7815
|
+
function Xu(e, t, n) {
|
|
7816
|
+
const r = Ld(n);
|
|
7797
7817
|
if (e.meta.backgroundMode = r, r === "space") {
|
|
7798
7818
|
for (const o of e.layouts)
|
|
7799
7819
|
Qa(
|
|
@@ -7811,23 +7831,23 @@ function $u(e, t, n) {
|
|
|
7811
7831
|
);
|
|
7812
7832
|
return;
|
|
7813
7833
|
}
|
|
7814
|
-
|
|
7834
|
+
Ed(
|
|
7815
7835
|
e,
|
|
7816
7836
|
t,
|
|
7817
|
-
|
|
7837
|
+
Ad(r)
|
|
7818
7838
|
), e.meta.backgroundMode = r;
|
|
7819
7839
|
}
|
|
7820
|
-
const
|
|
7821
|
-
let
|
|
7822
|
-
function
|
|
7823
|
-
return
|
|
7840
|
+
const Yu = "guide/magnifier.html", eo = "https://mlightcad.com/cad-viewer/docs/";
|
|
7841
|
+
let _n = to(eo);
|
|
7842
|
+
function Md() {
|
|
7843
|
+
return _n;
|
|
7824
7844
|
}
|
|
7825
|
-
function
|
|
7826
|
-
|
|
7845
|
+
function Zu(e) {
|
|
7846
|
+
_n = to(e);
|
|
7827
7847
|
}
|
|
7828
|
-
function
|
|
7848
|
+
function ju(e, t) {
|
|
7829
7849
|
const n = t.toLowerCase().split(/[-_]/)[0], r = !n || n === "en" ? "" : `/${n}`, a = e.replace(/^\/+/, "");
|
|
7830
|
-
return `${
|
|
7850
|
+
return `${_n}${r}/${a}`;
|
|
7831
7851
|
}
|
|
7832
7852
|
function to(e) {
|
|
7833
7853
|
const t = e.trim();
|
|
@@ -7849,18 +7869,18 @@ function fr(e, t) {
|
|
|
7849
7869
|
}
|
|
7850
7870
|
if (a < r * 0.2)
|
|
7851
7871
|
return e;
|
|
7852
|
-
const i = n.slice(0, o), s = n.slice(o), l = i.length >= s.length ? i : s,
|
|
7872
|
+
const i = n.slice(0, o), s = n.slice(o), l = i.length >= s.length ? i : s, c = e.map(
|
|
7853
7873
|
(f) => Math.max(f.maxX - f.minX, f.maxY - f.minY, 1e-9)
|
|
7854
7874
|
);
|
|
7855
|
-
|
|
7856
|
-
const
|
|
7875
|
+
c.sort((f, h) => f - h);
|
|
7876
|
+
const d = c[Math.floor(c.length / 2)] || 1, u = [];
|
|
7857
7877
|
for (let f = 1; f < l.length; f++)
|
|
7858
7878
|
u.push(l[f].value - l[f - 1].value);
|
|
7859
7879
|
u.sort((f, h) => f - h);
|
|
7860
|
-
const p = u.length > 0 && u[Math.floor(u.length / 2)] ||
|
|
7880
|
+
const p = u.length > 0 && u[Math.floor(u.length / 2)] || d, m = Math.max(p * 10, d * 20);
|
|
7861
7881
|
return a < m ? e : l.map((f) => f.box);
|
|
7862
7882
|
}
|
|
7863
|
-
function
|
|
7883
|
+
function Sd(e) {
|
|
7864
7884
|
if (e.length === 0)
|
|
7865
7885
|
return null;
|
|
7866
7886
|
const t = hr(e);
|
|
@@ -7888,7 +7908,7 @@ function ht() {
|
|
|
7888
7908
|
valid: !1
|
|
7889
7909
|
};
|
|
7890
7910
|
}
|
|
7891
|
-
function
|
|
7911
|
+
function Id(e, t, n) {
|
|
7892
7912
|
if (t.length < 3) return;
|
|
7893
7913
|
const r = n[0], a = n[1];
|
|
7894
7914
|
for (let o = 0; o + 2 < t.length; o += 3) {
|
|
@@ -7897,7 +7917,7 @@ function Sd(e, t, n) {
|
|
|
7897
7917
|
}
|
|
7898
7918
|
}
|
|
7899
7919
|
function be(e, t) {
|
|
7900
|
-
|
|
7920
|
+
Id(e, t.positions, t.offset);
|
|
7901
7921
|
}
|
|
7902
7922
|
function gt(e) {
|
|
7903
7923
|
return e.valid ? {
|
|
@@ -7923,28 +7943,31 @@ function no(e, t) {
|
|
|
7923
7943
|
maxY: Math.max(e.maxY, t.maxY)
|
|
7924
7944
|
} : e : t ?? null;
|
|
7925
7945
|
}
|
|
7926
|
-
function
|
|
7946
|
+
function zd(e) {
|
|
7927
7947
|
if (!e || e.length === 0) return null;
|
|
7928
7948
|
let t = null;
|
|
7929
7949
|
for (const n of e)
|
|
7930
7950
|
t = no(t, n.paper);
|
|
7931
7951
|
return t;
|
|
7932
7952
|
}
|
|
7933
|
-
function
|
|
7953
|
+
function wt(e) {
|
|
7934
7954
|
return no(
|
|
7935
7955
|
Pd(e.lineBatches, e.meshBatches),
|
|
7936
|
-
|
|
7956
|
+
zd(e.viewports)
|
|
7937
7957
|
);
|
|
7938
7958
|
}
|
|
7939
|
-
function
|
|
7940
|
-
return
|
|
7959
|
+
function Gu(e, t) {
|
|
7960
|
+
return e.fitExtents ?? wt(e) ?? t ?? {
|
|
7941
7961
|
minX: 0,
|
|
7942
7962
|
minY: 0,
|
|
7943
7963
|
maxX: 1,
|
|
7944
7964
|
maxY: 1
|
|
7945
7965
|
};
|
|
7946
7966
|
}
|
|
7947
|
-
function
|
|
7967
|
+
function Ku(e, t) {
|
|
7968
|
+
return e.btrId === t.activeLayoutBtrId ? t.meta.viewExtents ?? e.savedView ?? t.meta.extents : e.savedView ?? t.meta.extents;
|
|
7969
|
+
}
|
|
7970
|
+
function Bd(e) {
|
|
7948
7971
|
const t = [], n = (r) => {
|
|
7949
7972
|
if (r.positions.length < 3) return;
|
|
7950
7973
|
const a = ht();
|
|
@@ -7958,12 +7981,12 @@ function zd(e) {
|
|
|
7958
7981
|
n(r);
|
|
7959
7982
|
return t;
|
|
7960
7983
|
}
|
|
7961
|
-
function
|
|
7962
|
-
var
|
|
7984
|
+
function Td(e, t) {
|
|
7985
|
+
var d;
|
|
7963
7986
|
const n = t == null ? void 0 : t.isLayerVisible, r = e.filter(
|
|
7964
7987
|
(u) => !n || n(u.layer)
|
|
7965
7988
|
);
|
|
7966
|
-
if (r.length === 0 && !((
|
|
7989
|
+
if (r.length === 0 && !((d = t == null ? void 0 : t.viewports) != null && d.length))
|
|
7967
7990
|
return null;
|
|
7968
7991
|
const a = r.map(
|
|
7969
7992
|
(u) => Math.max(
|
|
@@ -8000,24 +8023,24 @@ function Bd(e, t) {
|
|
|
8000
8023
|
}
|
|
8001
8024
|
for (const u of (t == null ? void 0 : t.viewports) ?? [])
|
|
8002
8025
|
s.push(u.paper);
|
|
8003
|
-
const
|
|
8004
|
-
return
|
|
8026
|
+
const c = Fd(s);
|
|
8027
|
+
return Sd(c.length > 0 ? c : s);
|
|
8005
8028
|
}
|
|
8006
|
-
function
|
|
8029
|
+
function Fd(e) {
|
|
8007
8030
|
if (e.length < 2)
|
|
8008
8031
|
return e;
|
|
8009
|
-
const t = e.map((
|
|
8010
|
-
x: (
|
|
8011
|
-
y: (
|
|
8012
|
-
box:
|
|
8013
|
-
})), n = t.map((
|
|
8014
|
-
(
|
|
8032
|
+
const t = e.map((d) => ({
|
|
8033
|
+
x: (d.minX + d.maxX) / 2,
|
|
8034
|
+
y: (d.minY + d.maxY) / 2,
|
|
8035
|
+
box: d
|
|
8036
|
+
})), n = t.map((d) => d.x).sort((d, u) => d - u), r = t.map((d) => d.y).sort((d, u) => d - u), a = n[Math.floor(n.length / 2)], o = r[Math.floor(r.length / 2)], i = e.map(
|
|
8037
|
+
(d) => Math.max(d.maxX - d.minX, d.maxY - d.minY, 1e-9)
|
|
8015
8038
|
);
|
|
8016
|
-
i.sort((
|
|
8017
|
-
const s = i[Math.floor(i.length / 2)] || 1, l = Math.max(s * 50, 1e10),
|
|
8018
|
-
(
|
|
8039
|
+
i.sort((d, u) => d - u);
|
|
8040
|
+
const s = i[Math.floor(i.length / 2)] || 1, l = Math.max(s * 50, 1e10), c = t.filter(
|
|
8041
|
+
(d) => Math.hypot(d.x - a, d.y - o) <= l
|
|
8019
8042
|
);
|
|
8020
|
-
return
|
|
8043
|
+
return c.length > 0 ? c.map((d) => d.box) : e;
|
|
8021
8044
|
}
|
|
8022
8045
|
function gr(e, t) {
|
|
8023
8046
|
for (const n of e) {
|
|
@@ -8029,25 +8052,25 @@ function gr(e, t) {
|
|
|
8029
8052
|
return n;
|
|
8030
8053
|
}
|
|
8031
8054
|
}
|
|
8032
|
-
function
|
|
8033
|
-
const n =
|
|
8034
|
-
return
|
|
8055
|
+
function Wu(e, t) {
|
|
8056
|
+
const n = Bd(e);
|
|
8057
|
+
return Td(n, {
|
|
8035
8058
|
isLayerVisible: t,
|
|
8036
8059
|
viewports: e.viewports,
|
|
8037
8060
|
sampleFromLayout: e
|
|
8038
|
-
}) ??
|
|
8061
|
+
}) ?? wt(e);
|
|
8039
8062
|
}
|
|
8040
|
-
const
|
|
8063
|
+
const _d = 256;
|
|
8041
8064
|
function Ud(e, t) {
|
|
8042
8065
|
const n = e.positions, r = e.offset, a = Math.floor(n.length / 3);
|
|
8043
8066
|
if (a <= 0) return;
|
|
8044
|
-
const o = Math.max(1, Math.ceil(a /
|
|
8067
|
+
const o = Math.max(1, Math.ceil(a / _d));
|
|
8045
8068
|
for (let i = 0; i < a; i += o) {
|
|
8046
|
-
const s = i * 3, l = Je(n[s], r[0]),
|
|
8047
|
-
!Number.isFinite(l) || !Number.isFinite(
|
|
8069
|
+
const s = i * 3, l = Je(n[s], r[0]), c = Je(n[s + 1], r[1]);
|
|
8070
|
+
!Number.isFinite(l) || !Number.isFinite(c) || t.push({ minX: l, minY: c, maxX: l, maxY: c });
|
|
8048
8071
|
}
|
|
8049
8072
|
}
|
|
8050
|
-
function
|
|
8073
|
+
function Ju(e, t) {
|
|
8051
8074
|
const n = /* @__PURE__ */ new Map(), r = (o) => {
|
|
8052
8075
|
let i = n.get(o);
|
|
8053
8076
|
return i || (i = ht(), n.set(o, i)), i;
|
|
@@ -8061,24 +8084,24 @@ function Gu(e, t) {
|
|
|
8061
8084
|
a.set(o, gt(i));
|
|
8062
8085
|
return a;
|
|
8063
8086
|
}
|
|
8064
|
-
function
|
|
8087
|
+
function Od(e, t, n) {
|
|
8065
8088
|
if (n) return;
|
|
8066
|
-
const r =
|
|
8089
|
+
const r = Hd(e, t);
|
|
8067
8090
|
if (!(r != null && r.newIterator)) return;
|
|
8068
8091
|
const a = [];
|
|
8069
8092
|
for (const o of r.newIterator()) {
|
|
8070
|
-
if (!(o instanceof qo) ||
|
|
8071
|
-
const i = o.toGiViewport(), s = i.box, l = i.viewBox,
|
|
8072
|
-
if (!
|
|
8073
|
-
const u = Number.isFinite(i.viewTwistAngle) ? i.viewTwistAngle : o.viewTwistAngle, p =
|
|
8093
|
+
if (!(o instanceof qo) || yo.isDefaultPaperSpaceViewport(o) || typeof o.toGiViewport != "function") continue;
|
|
8094
|
+
const i = o.toGiViewport(), s = i.box, l = i.viewBox, c = wr(s), d = wr(l);
|
|
8095
|
+
if (!c || !d) continue;
|
|
8096
|
+
const u = Number.isFinite(i.viewTwistAngle) ? i.viewTwistAngle : o.viewTwistAngle, p = Rd(
|
|
8074
8097
|
i,
|
|
8075
8098
|
o
|
|
8076
|
-
), m = { paper:
|
|
8099
|
+
), m = { paper: c, model: d };
|
|
8077
8100
|
Number.isFinite(u) && Math.abs(u) > 1e-12 && (m.twist = u), p.length > 0 && (m.frozenLayers = p), a.push(m);
|
|
8078
8101
|
}
|
|
8079
8102
|
return a.length > 0 ? a : void 0;
|
|
8080
8103
|
}
|
|
8081
|
-
function
|
|
8104
|
+
function Rd(e, t) {
|
|
8082
8105
|
var i;
|
|
8083
8106
|
const n = e.frozenLayers;
|
|
8084
8107
|
if (n && n.length > 0)
|
|
@@ -8100,7 +8123,7 @@ function wr(e) {
|
|
|
8100
8123
|
if (!(!Number.isFinite(t) || !Number.isFinite(n) || !Number.isFinite(r) || !Number.isFinite(a) || r - t <= 0 || a - n <= 0))
|
|
8101
8124
|
return { minX: t, minY: n, maxX: r, maxY: a };
|
|
8102
8125
|
}
|
|
8103
|
-
function
|
|
8126
|
+
function Hd(e, t) {
|
|
8104
8127
|
var o;
|
|
8105
8128
|
const n = (o = e.tables) == null ? void 0 : o.blockTable;
|
|
8106
8129
|
if (!n) return;
|
|
@@ -8116,21 +8139,21 @@ function Rd(e, t) {
|
|
|
8116
8139
|
return a;
|
|
8117
8140
|
}
|
|
8118
8141
|
const vr = 16 / 9;
|
|
8119
|
-
function
|
|
8120
|
-
var i, s, l,
|
|
8142
|
+
function Dd(e, t, n, r = vr) {
|
|
8143
|
+
var i, s, l, c;
|
|
8121
8144
|
const a = Number.isFinite(r) && r > 0 ? r : vr;
|
|
8122
8145
|
if (n) {
|
|
8123
|
-
const
|
|
8124
|
-
return
|
|
8146
|
+
const d = (l = (s = (i = e.tables) == null ? void 0 : i.viewportTable) == null ? void 0 : s.getActiveVportBox) == null ? void 0 : l.call(s, a);
|
|
8147
|
+
return xr(d);
|
|
8125
8148
|
}
|
|
8126
|
-
const o = (
|
|
8149
|
+
const o = (c = e.objects) == null ? void 0 : c.layout;
|
|
8127
8150
|
if (o != null && o.newIterator) {
|
|
8128
|
-
for (const
|
|
8129
|
-
if (
|
|
8130
|
-
return
|
|
8151
|
+
for (const d of o.newIterator())
|
|
8152
|
+
if (d.blockTableRecordId === t)
|
|
8153
|
+
return xr(d.limits);
|
|
8131
8154
|
}
|
|
8132
8155
|
}
|
|
8133
|
-
function
|
|
8156
|
+
function xr(e) {
|
|
8134
8157
|
if (!e || typeof e.isEmpty == "function" && e.isEmpty()) return;
|
|
8135
8158
|
const t = e.min.x, n = e.min.y, r = e.max.x, a = e.max.y;
|
|
8136
8159
|
if (!(!Number.isFinite(t) || !Number.isFinite(n) || !Number.isFinite(r) || !Number.isFinite(a) || r - t <= 0 || a - n <= 0))
|
|
@@ -8151,25 +8174,25 @@ function ro(e) {
|
|
|
8151
8174
|
}
|
|
8152
8175
|
return n.sort((a, o) => a.tabOrder - o.tabOrder), n;
|
|
8153
8176
|
}
|
|
8154
|
-
function
|
|
8155
|
-
return
|
|
8177
|
+
function qu(e, t, n = {}) {
|
|
8178
|
+
return Nd(e, t, n);
|
|
8156
8179
|
}
|
|
8157
|
-
async function
|
|
8180
|
+
async function Qu(e, t, n = {}) {
|
|
8158
8181
|
const r = n.yieldBetweenLayouts;
|
|
8159
8182
|
r && await r();
|
|
8160
|
-
const a = n.exportInvisibleLayers !== !1, o = n.exportLayouts !== !1, i = a ? void 0 : (f) =>
|
|
8183
|
+
const a = n.exportInvisibleLayers !== !1, o = n.exportLayouts !== !1, i = a ? void 0 : (f) => Un(t, f, a), s = ua(e, {
|
|
8161
8184
|
title: n.title,
|
|
8162
8185
|
background: n.background
|
|
8163
|
-
}), l = ao(t, a),
|
|
8164
|
-
|
|
8165
|
-
), u = so(t, o), p = io(t,
|
|
8186
|
+
}), l = ao(t, a), c = ro(e), d = new Map(
|
|
8187
|
+
c.map((f) => [f.blockTableRecordId, f.name])
|
|
8188
|
+
), u = so(t, o), p = io(t, c, o), m = [];
|
|
8166
8189
|
for (const f of p)
|
|
8167
8190
|
m.push(
|
|
8168
8191
|
lo(
|
|
8169
8192
|
e,
|
|
8170
8193
|
t,
|
|
8171
8194
|
f,
|
|
8172
|
-
|
|
8195
|
+
d,
|
|
8173
8196
|
n,
|
|
8174
8197
|
i
|
|
8175
8198
|
)
|
|
@@ -8187,20 +8210,20 @@ async function Wu(e, t, n = {}) {
|
|
|
8187
8210
|
activeLayoutBtrId: u
|
|
8188
8211
|
};
|
|
8189
8212
|
}
|
|
8190
|
-
function
|
|
8191
|
-
const r = n.exportInvisibleLayers !== !1, a = n.exportLayouts !== !1, o = r ? void 0 : (m) =>
|
|
8213
|
+
function Nd(e, t, n) {
|
|
8214
|
+
const r = n.exportInvisibleLayers !== !1, a = n.exportLayouts !== !1, o = r ? void 0 : (m) => Un(t, m, r), i = ua(e, {
|
|
8192
8215
|
title: n.title,
|
|
8193
8216
|
background: n.background
|
|
8194
|
-
}), s = ao(t, r), l = ro(e),
|
|
8217
|
+
}), s = ao(t, r), l = ro(e), c = new Map(
|
|
8195
8218
|
l.map((m) => [m.blockTableRecordId, m.name])
|
|
8196
|
-
),
|
|
8219
|
+
), d = so(t, a), u = io(t, l, a), p = [];
|
|
8197
8220
|
for (const m of u)
|
|
8198
8221
|
p.push(
|
|
8199
8222
|
lo(
|
|
8200
8223
|
e,
|
|
8201
8224
|
t,
|
|
8202
8225
|
m,
|
|
8203
|
-
|
|
8226
|
+
c,
|
|
8204
8227
|
n,
|
|
8205
8228
|
o
|
|
8206
8229
|
)
|
|
@@ -8211,17 +8234,17 @@ function Dd(e, t, n) {
|
|
|
8211
8234
|
i,
|
|
8212
8235
|
n,
|
|
8213
8236
|
p,
|
|
8214
|
-
|
|
8237
|
+
d
|
|
8215
8238
|
),
|
|
8216
8239
|
layers: s,
|
|
8217
8240
|
layouts: p,
|
|
8218
|
-
activeLayoutBtrId:
|
|
8241
|
+
activeLayoutBtrId: d
|
|
8219
8242
|
};
|
|
8220
8243
|
}
|
|
8221
8244
|
function ao(e, t) {
|
|
8222
8245
|
const n = [];
|
|
8223
8246
|
for (const r of e.layers)
|
|
8224
|
-
|
|
8247
|
+
Un(e, r.name, t) && n.push({
|
|
8225
8248
|
name: r.name,
|
|
8226
8249
|
color: r.color,
|
|
8227
8250
|
visible: r.visible
|
|
@@ -8229,7 +8252,7 @@ function ao(e, t) {
|
|
|
8229
8252
|
return n;
|
|
8230
8253
|
}
|
|
8231
8254
|
function oo(e, t, n, r) {
|
|
8232
|
-
const a = n.find((s) => s.btrId === r) ?? n[0], o = a ?
|
|
8255
|
+
const a = n.find((s) => s.btrId === r) ?? n[0], o = a ? wt(a) : null, i = t.initialView ?? "fit";
|
|
8233
8256
|
return {
|
|
8234
8257
|
title: e.title,
|
|
8235
8258
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -8243,13 +8266,13 @@ function oo(e, t, n, r) {
|
|
|
8243
8266
|
viewState: i === "current" ? t.viewState : void 0,
|
|
8244
8267
|
viewerMode: t.viewerMode ?? "measure",
|
|
8245
8268
|
exportLayouts: t.exportLayouts !== !1,
|
|
8246
|
-
docsBaseUrl: t.docsBaseUrl ??
|
|
8269
|
+
docsBaseUrl: t.docsBaseUrl ?? Md()
|
|
8247
8270
|
};
|
|
8248
8271
|
}
|
|
8249
|
-
function
|
|
8272
|
+
function $d(e) {
|
|
8250
8273
|
return (e.viewerMode ?? "measure") === "measure";
|
|
8251
8274
|
}
|
|
8252
|
-
function
|
|
8275
|
+
function Un(e, t, n) {
|
|
8253
8276
|
if (n)
|
|
8254
8277
|
return !0;
|
|
8255
8278
|
const r = e.layers.find((a) => a.name === t);
|
|
@@ -8285,37 +8308,46 @@ function so(e, t) {
|
|
|
8285
8308
|
}
|
|
8286
8309
|
function lo(e, t, n, r, a, o) {
|
|
8287
8310
|
const i = [], s = [];
|
|
8288
|
-
for (const
|
|
8289
|
-
if (o && !o(
|
|
8311
|
+
for (const m of n.layers) {
|
|
8312
|
+
if (o && !o(m.name))
|
|
8290
8313
|
continue;
|
|
8291
|
-
const
|
|
8292
|
-
i.push(...
|
|
8314
|
+
const f = Ts(m.root);
|
|
8315
|
+
i.push(...f.lineBatches), s.push(...f.meshBatches);
|
|
8293
8316
|
}
|
|
8294
|
-
const l = n.isModelSpace || n.btrId === t.modelSpaceBtrId,
|
|
8317
|
+
const l = n.isModelSpace || n.btrId === t.modelSpaceBtrId, c = Dd(
|
|
8295
8318
|
e,
|
|
8296
8319
|
n.btrId,
|
|
8297
8320
|
l,
|
|
8298
8321
|
a.canvasAspectRatio
|
|
8299
|
-
)
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
|
|
8322
|
+
), d = Od(
|
|
8323
|
+
e,
|
|
8324
|
+
n.btrId,
|
|
8325
|
+
l
|
|
8326
|
+
), u = wt({
|
|
8327
|
+
lineBatches: i,
|
|
8328
|
+
meshBatches: s,
|
|
8329
|
+
viewports: d
|
|
8330
|
+
}) ?? void 0;
|
|
8331
|
+
let p;
|
|
8332
|
+
if ($d(a)) {
|
|
8333
|
+
const m = performance.now();
|
|
8334
|
+
p = gl(e, n.btrId, { includeLayer: o }), console.log(
|
|
8335
|
+
`[chtml] osnap catalog ${r.get(n.btrId) ?? n.name ?? n.btrId}: ${(performance.now() - m).toFixed(0)} ms (${(p == null ? void 0 : p.primitives.length) ?? 0} primitives)`
|
|
8305
8336
|
);
|
|
8306
8337
|
}
|
|
8307
8338
|
return {
|
|
8308
8339
|
btrId: n.btrId,
|
|
8309
|
-
name: r.get(n.btrId) ?? n.name ??
|
|
8340
|
+
name: r.get(n.btrId) ?? n.name ?? Vd(e, n.btrId),
|
|
8310
8341
|
isModelSpace: l,
|
|
8311
8342
|
lineBatches: i,
|
|
8312
8343
|
meshBatches: s,
|
|
8313
|
-
osnap:
|
|
8314
|
-
viewports:
|
|
8315
|
-
...
|
|
8344
|
+
osnap: p,
|
|
8345
|
+
viewports: d,
|
|
8346
|
+
...c ? { savedView: c } : {},
|
|
8347
|
+
...u ? { fitExtents: u } : {}
|
|
8316
8348
|
};
|
|
8317
8349
|
}
|
|
8318
|
-
function
|
|
8350
|
+
function Vd(e, t) {
|
|
8319
8351
|
var r;
|
|
8320
8352
|
const n = (r = e.tables) == null ? void 0 : r.blockTable;
|
|
8321
8353
|
if (n != null && n.newIterator) {
|
|
@@ -8327,147 +8359,149 @@ function $d(e, t) {
|
|
|
8327
8359
|
}
|
|
8328
8360
|
export {
|
|
8329
8361
|
ba as ACEC_CHUNK_MAGIC,
|
|
8330
|
-
|
|
8362
|
+
pn as ACEO_OSNAP_MAGIC,
|
|
8331
8363
|
Zr as ACEO_OSNAP_VERSION,
|
|
8364
|
+
$c as ACEX_COORDINATE_BADGE_LIFT_EM,
|
|
8365
|
+
bu as ACEX_COORDINATE_BADGE_REF_FONT_PX,
|
|
8332
8366
|
El as ACEX_DEFAULT_CHUNK_MAX_BYTES,
|
|
8333
8367
|
eo as ACEX_DEFAULT_DOCS_BASE_URL,
|
|
8334
8368
|
re as ACEX_DEFAULT_MANIFEST_FILE,
|
|
8335
8369
|
Ea as ACEX_DEFAULT_MANIFEST_HREF,
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8370
|
+
iu as ACEX_DEFAULT_OSNAP_CHUNK_MAX_BYTES,
|
|
8371
|
+
tu as ACEX_DEFAULT_OSNAP_MODES,
|
|
8372
|
+
vu as ACEX_DEFAULT_POLAR_ANGLE,
|
|
8373
|
+
Yu as ACEX_DOCS_PATH_MAGNIFIER,
|
|
8374
|
+
hd as ACEX_EMBEDDED_CHUNK_ENCRYPTED_MIME,
|
|
8375
|
+
Fu as ACEX_EMBEDDED_CHUNK_ENCRYPTED_MIME_BASE64,
|
|
8342
8376
|
ce as ACEX_EMBEDDED_CHUNK_HREF_ATTR,
|
|
8343
8377
|
sr as ACEX_EMBEDDED_CHUNK_MAX_BYTES,
|
|
8344
|
-
|
|
8345
|
-
|
|
8378
|
+
fd as ACEX_EMBEDDED_CHUNK_MIME,
|
|
8379
|
+
Tu as ACEX_EMBEDDED_CHUNK_MIME_BASE64,
|
|
8346
8380
|
Ml as ACEX_EMBEDDED_CHUNK_THRESHOLD_BYTES,
|
|
8347
8381
|
Sl as ACEX_EMBEDDED_OSNAP_CHUNK_MAX_BYTES,
|
|
8348
|
-
|
|
8382
|
+
bn as ACEX_GEOMETRY_CHUNK_FETCH_CONCURRENCY,
|
|
8349
8383
|
ft as ACEX_HTML_BACKGROUND_BLACK,
|
|
8350
|
-
|
|
8351
|
-
|
|
8384
|
+
Fn as ACEX_HTML_BACKGROUND_WHITE,
|
|
8385
|
+
Yc as ACEX_HTML_EXPIRY_COUNTDOWN_MS,
|
|
8352
8386
|
ge as ACEX_HTML_LOCALES,
|
|
8353
|
-
|
|
8354
|
-
|
|
8355
|
-
|
|
8387
|
+
xa as ACEX_HTML_LOCALE_BADGES,
|
|
8388
|
+
ya as ACEX_HTML_LOCALE_STORAGE_KEY,
|
|
8389
|
+
En as ACEX_HTML_SHELL_CSS,
|
|
8356
8390
|
Fl as ACEX_MANIFEST_QUERY_KEYS,
|
|
8357
8391
|
Xn as ACEX_MAX_BINARY_ARRAY_BYTES,
|
|
8358
8392
|
Ai as ACEX_MAX_BINARY_STRING_BYTES,
|
|
8359
|
-
|
|
8393
|
+
_t as ACEX_MAX_COMPRESSED_BYTES,
|
|
8360
8394
|
Ci as ACEX_MAX_DECOMPRESSED_BYTES,
|
|
8361
8395
|
ut as ACEX_MAX_GEOMETRY_BATCH_BYTES,
|
|
8362
8396
|
Oc as ACEX_ORTHO_POLAR_ANGLE,
|
|
8363
8397
|
at as ACEX_PACKAGE_DIRECTORY_ORIGIN,
|
|
8364
8398
|
Aa as ACEX_PACKAGE_VERSION,
|
|
8365
|
-
|
|
8366
|
-
|
|
8399
|
+
Uc as ACEX_POLAR_ANGLE_INCREMENTS,
|
|
8400
|
+
Ft as ACEX_SNAPSHOT_COMPRESSION,
|
|
8367
8401
|
D as ACEX_SNAPSHOT_VERSION,
|
|
8368
|
-
|
|
8369
|
-
|
|
8402
|
+
cn as AcExBinaryReader,
|
|
8403
|
+
ln as AcExBinaryWriter,
|
|
8370
8404
|
sa as AcExCameraZoomUniform,
|
|
8371
|
-
|
|
8405
|
+
ou as AcExHtmlI18n,
|
|
8372
8406
|
Re as AcExHtmlIcons,
|
|
8373
|
-
|
|
8407
|
+
Ht as F_LINE_DISTANCES,
|
|
8374
8408
|
Dr as F_LINE_EXCLUDE_OSNAP,
|
|
8375
|
-
|
|
8376
|
-
|
|
8377
|
-
|
|
8378
|
-
|
|
8379
|
-
|
|
8380
|
-
|
|
8381
|
-
|
|
8382
|
-
|
|
8409
|
+
Ot as F_LINE_INDICES,
|
|
8410
|
+
Rt as F_LINE_PATTERN,
|
|
8411
|
+
Nt as F_LINE_RENDER_ORDER,
|
|
8412
|
+
Dt as F_LINE_WIDTH,
|
|
8413
|
+
Xt as F_MESH_GRADIENT_FILL,
|
|
8414
|
+
Yt as F_MESH_GRADIENT_POS,
|
|
8415
|
+
Vt as F_MESH_HATCH,
|
|
8416
|
+
$t as F_MESH_INDICES,
|
|
8383
8417
|
Nr as F_MESH_POINTS,
|
|
8384
|
-
|
|
8385
|
-
|
|
8386
|
-
|
|
8418
|
+
jt as F_MESH_RENDER_ORDER,
|
|
8419
|
+
Zt as F_MESH_SIDE,
|
|
8420
|
+
Gt as F_MESH_TEXTURE,
|
|
8387
8421
|
Nc as ML_UI_COMPACT_MAX_WIDTH,
|
|
8388
8422
|
Dc as ML_UI_MOBILE_MAX_WIDTH,
|
|
8389
|
-
|
|
8390
|
-
|
|
8423
|
+
Ad as acExHtmlBackgroundRgb,
|
|
8424
|
+
Jc as acExHtmlBase64ToBytes,
|
|
8391
8425
|
Mi as acExHtmlBase85ToBytes,
|
|
8392
|
-
|
|
8426
|
+
Wc as acExHtmlBytesToBase64,
|
|
8393
8427
|
Ei as acExHtmlBytesToBase85,
|
|
8394
8428
|
Ne as acExHtmlBytesToText,
|
|
8395
8429
|
mr as acExHtmlLayoutBackground,
|
|
8396
8430
|
lt as acExHtmlTextToBytes,
|
|
8397
|
-
|
|
8398
|
-
|
|
8399
|
-
|
|
8431
|
+
ju as acexDocsUrl,
|
|
8432
|
+
wu as acexDropdownItem,
|
|
8433
|
+
Md as acexGetDocsBaseUrl,
|
|
8400
8434
|
pt as acexGlobalFetch,
|
|
8401
|
-
|
|
8435
|
+
Zu as acexSetDocsBaseUrl,
|
|
8402
8436
|
dr as acexToolbarButton,
|
|
8403
|
-
|
|
8404
|
-
|
|
8437
|
+
Xu as applyAcExHtmlBackground,
|
|
8438
|
+
_s as arcToAcGe,
|
|
8405
8439
|
Qn as arcWcsPoint,
|
|
8406
|
-
|
|
8440
|
+
hn as bakePlainDrawableSlice,
|
|
8407
8441
|
ot as buildAcExHtmlAccessManifest,
|
|
8408
|
-
|
|
8442
|
+
xu as buildAcExHtmlLocaleStrip,
|
|
8409
8443
|
Ba as buildAcExHtmlPolarAnglesPanel,
|
|
8410
|
-
|
|
8444
|
+
Mn as buildAcExHtmlShellBody,
|
|
8411
8445
|
yu as buildAcExHtmlSnapStrip,
|
|
8412
|
-
|
|
8413
|
-
|
|
8414
|
-
|
|
8446
|
+
zu as buildAcExPackage,
|
|
8447
|
+
Bu as buildAcExPackageAsync,
|
|
8448
|
+
md as buildAcExPackageData,
|
|
8415
8449
|
Ka as buildAcExPackageDataAsync,
|
|
8416
8450
|
gl as buildOsnapCatalog,
|
|
8417
|
-
|
|
8418
|
-
|
|
8419
|
-
|
|
8451
|
+
fu as buildPackageDirectoryFileMap,
|
|
8452
|
+
qu as buildSnapshotFromExportScene,
|
|
8453
|
+
Qu as buildSnapshotFromExportSceneAsync,
|
|
8420
8454
|
ua as buildViewerMetadata,
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
-
|
|
8455
|
+
cu as canOpenLocalPackageFolder,
|
|
8456
|
+
Dd as captureAcExSavedViewExtents,
|
|
8457
|
+
uu as chooseInitialManifestHref,
|
|
8424
8458
|
Os as circleOrArcToAcGe,
|
|
8425
|
-
|
|
8459
|
+
Ru as collectAcExEmbeddedChunkBytes,
|
|
8426
8460
|
Ts as collectBatchesFromObject3D,
|
|
8427
|
-
|
|
8428
|
-
|
|
8461
|
+
Bd as collectLayoutBatchExtentEntries,
|
|
8462
|
+
Od as collectLayoutViewports,
|
|
8429
8463
|
ra as compactIndexedSlice,
|
|
8430
|
-
|
|
8464
|
+
Ue as compressSnapshotBinary,
|
|
8431
8465
|
Or as compressSnapshotBinaryAsync,
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
|
|
8466
|
+
Td as computeIntelligentExtentsFromBatchEntries,
|
|
8467
|
+
Wu as computeIntelligentLayoutExtents,
|
|
8468
|
+
Ju as computeLayerExtentsMap,
|
|
8435
8469
|
Pd as computeLayoutExtents,
|
|
8436
|
-
|
|
8437
|
-
|
|
8438
|
-
|
|
8439
|
-
|
|
8470
|
+
wt as computeLayoutViewExtents,
|
|
8471
|
+
vn as computeLineDistancesForSegments,
|
|
8472
|
+
zd as computeViewportPaperExtents,
|
|
8473
|
+
xd as consumeAcExEmbeddedChunkFromDom,
|
|
8440
8474
|
ne as copyFloat32Range,
|
|
8441
8475
|
es as copyUint32Range,
|
|
8442
|
-
|
|
8476
|
+
Du as createAcExDomEmbeddedPackageFetch,
|
|
8443
8477
|
yd as createAcExEmbeddedPackageFetch,
|
|
8444
|
-
|
|
8445
|
-
|
|
8478
|
+
In as createAcExHtmlAccessKey,
|
|
8479
|
+
kn as createAcExOrderedBytePrefetcher,
|
|
8446
8480
|
ht as createEmptyExtents,
|
|
8447
|
-
|
|
8481
|
+
hu as createPackageDirectoryFetch,
|
|
8448
8482
|
cs as createTextureFromExportedBytes,
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8483
|
+
qd as createViewerLineMaterial,
|
|
8484
|
+
eu as createViewerMeshMaterial,
|
|
8485
|
+
Qd as createViewerPointsMaterial,
|
|
8452
8486
|
ka as decodeChunkBinary,
|
|
8453
8487
|
Cl as decodeChunkGzip,
|
|
8454
8488
|
La as decodeChunkPayload,
|
|
8455
|
-
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
|
|
8489
|
+
fn as decodeOsnapCatalogBinary,
|
|
8490
|
+
_i as decodeOsnapCatalogGzip,
|
|
8491
|
+
Ui as decodeOsnapCatalogPayload,
|
|
8492
|
+
Kd as decodeSnapshot,
|
|
8459
8493
|
Di as decodeSnapshotBinary,
|
|
8460
8494
|
Ji as decodeSnapshotFromCompressedBytes,
|
|
8461
|
-
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
8495
|
+
dn as decompressSnapshotBinary,
|
|
8496
|
+
Nu as decryptAcExEmbeddedManifest,
|
|
8497
|
+
zn as decryptAcExHtmlBytes,
|
|
8498
|
+
Iu as decryptAcExHtmlSnapshotPayload,
|
|
8465
8499
|
bl as detectAcExHtmlLocale,
|
|
8466
|
-
|
|
8467
|
-
|
|
8500
|
+
yl as detectBrowserAcExHtmlLocale,
|
|
8501
|
+
du as detectLocalFolderOpenSupport,
|
|
8468
8502
|
Rl as detectSharedDirectoryRoot,
|
|
8469
|
-
|
|
8470
|
-
|
|
8503
|
+
Us as ellipseArcDelta,
|
|
8504
|
+
nu as ellipsePointAtNormalized,
|
|
8471
8505
|
Rs as ellipseToAcGe,
|
|
8472
8506
|
dt as encodeChunkBinary,
|
|
8473
8507
|
Ll as encodeChunkGzip,
|
|
@@ -8477,89 +8511,90 @@ export {
|
|
|
8477
8511
|
Hi as encodeSnapshotBinary,
|
|
8478
8512
|
rs as encodeTextureForExport,
|
|
8479
8513
|
Pn as encryptAcExHtmlBytes,
|
|
8480
|
-
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
|
|
8514
|
+
Kc as encryptAcExHtmlSnapshotPayload,
|
|
8515
|
+
gd as estimateAcExSnapshotGeometryBytes,
|
|
8516
|
+
un as estimateLineBatchBytes,
|
|
8517
|
+
mn as estimateMeshBatchBytes,
|
|
8484
8518
|
ta as estimateOsnapPrimitiveBytes,
|
|
8485
8519
|
be as expandExtentsFromBatch,
|
|
8486
|
-
|
|
8520
|
+
Id as expandExtentsFromPositions,
|
|
8487
8521
|
vs as exportActiveBatchedLine2Slice,
|
|
8488
|
-
|
|
8522
|
+
xn as exportActiveBatchedSlice,
|
|
8489
8523
|
qe as exportBufferGeometrySlice,
|
|
8490
|
-
|
|
8524
|
+
Jd as exportLineDistanceSlice,
|
|
8491
8525
|
ns as exportPlainDrawableSlice,
|
|
8492
8526
|
ls as exportUvsForPositionSlice,
|
|
8493
8527
|
gs as exportVertexAttributeSlice,
|
|
8494
8528
|
ps as extractGradientFill,
|
|
8495
8529
|
ms as extractHatchPattern,
|
|
8496
8530
|
us as extractLinePattern,
|
|
8497
|
-
|
|
8498
|
-
|
|
8499
|
-
|
|
8531
|
+
gu as findDefaultManifestInDirectory,
|
|
8532
|
+
Mu as formatAcExHtmlCountdown,
|
|
8533
|
+
Eu as formatAcExHtmlExpiresAt,
|
|
8500
8534
|
kl as formatAcExHtmlMessage,
|
|
8501
|
-
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
|
|
8535
|
+
Ul as isAbsoluteHttpUrl,
|
|
8536
|
+
Au as isAcExHtmlAccessExpired,
|
|
8537
|
+
Cu as isAcExHtmlExpiryCountdownActive,
|
|
8538
|
+
au as isAcExHtmlLocale,
|
|
8505
8539
|
Rr as isGzipPayload,
|
|
8506
|
-
|
|
8540
|
+
Pl as isSafePackageHref,
|
|
8507
8541
|
ia as isTransparentImagePlaceholder,
|
|
8508
8542
|
ro as listDatabaseLayouts,
|
|
8509
|
-
|
|
8510
|
-
|
|
8543
|
+
su as loadAcExPackage,
|
|
8544
|
+
lu as loadAcExPackageLayout,
|
|
8511
8545
|
Tl as loadAcExPackageLayoutOsnap,
|
|
8512
8546
|
Ra as needsAcExHtmlAccessControl,
|
|
8513
8547
|
to as normalizeAcExDocsBaseUrl,
|
|
8514
8548
|
ma as normalizeArcDelta,
|
|
8515
8549
|
Ol as normalizePackageDirectoryPath,
|
|
8516
|
-
|
|
8517
|
-
|
|
8518
|
-
|
|
8550
|
+
xe as omitNonFinitePrimitives,
|
|
8551
|
+
ku as packHtml,
|
|
8552
|
+
Uu as packHtmlEmbeddedPackage,
|
|
8519
8553
|
Ta as packHtmlPackage,
|
|
8520
|
-
|
|
8521
|
-
|
|
8554
|
+
Ou as parseAcExEmbeddedPackageConfig,
|
|
8555
|
+
Su as parseAcExHtmlAccessManifest,
|
|
8522
8556
|
Hr as parseAcExHtmlBinaryEncoding,
|
|
8523
8557
|
mt as parseAcExPackageManifest,
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
|
|
8527
|
-
|
|
8558
|
+
ru as primitiveToAcGeCurve,
|
|
8559
|
+
pu as probePackageManifest,
|
|
8560
|
+
Pu as protectAcExHtmlEncodedSnapshot,
|
|
8561
|
+
Hu as readAcExEmbeddedChunkFromDom,
|
|
8528
8562
|
ts as readBatchWorldOffset,
|
|
8529
8563
|
Vr as readLineBatch,
|
|
8530
|
-
|
|
8564
|
+
_l as readManifestUrlFromSearchParams,
|
|
8531
8565
|
Yr as readMeshBatch,
|
|
8532
8566
|
ws as rebaseHatchPatternToLocalOffset,
|
|
8533
|
-
|
|
8567
|
+
gn as rebasePlainDrawableSliceAroundCentroid,
|
|
8534
8568
|
ds as releaseExportedTextureBytes,
|
|
8535
|
-
|
|
8536
|
-
|
|
8537
|
-
|
|
8569
|
+
Ed as remapAcExSnapshotForegroundForBackground,
|
|
8570
|
+
Lu as resolveAcApHtmlExpiresAt,
|
|
8571
|
+
Ld as resolveAcExHtmlBackground,
|
|
8538
8572
|
Ve as resolveAcExHtmlLocale,
|
|
8539
|
-
|
|
8540
|
-
|
|
8573
|
+
Ln as resolveChunkUrl,
|
|
8574
|
+
Ku as resolveLayoutFallbackExtents,
|
|
8575
|
+
Gu as resolveLayoutViewExtents,
|
|
8541
8576
|
Bl as resolvePackageManifestUrl,
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
|
|
8577
|
+
mu as resolveViewerManifestUrl,
|
|
8578
|
+
Gd as setAcExSnapshotCompressor,
|
|
8579
|
+
Wd as setHeadlessPngEncoder,
|
|
8580
|
+
_u as shouldEmbedAcExChunks,
|
|
8546
8581
|
Qi as snapshotMimeType,
|
|
8547
8582
|
qi as snapshotPayloadToCompressedBytes,
|
|
8548
8583
|
zl as snapshotSkeletonFromManifest,
|
|
8549
8584
|
Hs as splineToAcGe,
|
|
8550
8585
|
fr as splitDominantCluster,
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8586
|
+
cd as splitLayoutIntoSlices,
|
|
8587
|
+
ed as splitLineBatch,
|
|
8588
|
+
td as splitMeshBatch,
|
|
8554
8589
|
Bi as splitOsnapPrimitives,
|
|
8555
8590
|
gt as toExtents,
|
|
8556
8591
|
Je as toWcsCoord,
|
|
8557
8592
|
Zn as transformHatchPatternToWorldSpace,
|
|
8558
|
-
|
|
8593
|
+
Sd as unionDominantCluster,
|
|
8559
8594
|
no as unionExtents,
|
|
8560
|
-
|
|
8595
|
+
Vu as unzipAcExPackageFiles,
|
|
8561
8596
|
er as wcsPointToOcsArcAngle,
|
|
8562
8597
|
$r as writeLineBatch,
|
|
8563
8598
|
Xr as writeMeshBatch,
|
|
8564
|
-
|
|
8599
|
+
$u as zipAcExPackageFiles
|
|
8565
8600
|
};
|