presenter 0.9.2 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/export.js +1 -1
- package/dist/export.js.map +1 -1
- package/dist/export.mjs +18 -24
- package/dist/export.mjs.map +1 -1
- package/dist/presenter.js +5 -3
- package/dist/presenter.js.map +1 -1
- package/dist/presenter.mjs +877 -815
- package/dist/presenter.mjs.map +1 -1
- package/dist/renderer/browser-canvas/types/BrowserCanvasRendererState.d.ts +1 -0
- package/dist/renderer/browser-canvas/utils/accessibility/accessibleDescription.d.ts +5 -0
- package/dist/renderer/browser-canvas/utils/accessibility/accessibleDescription.test.d.ts +1 -0
- package/dist/renderer/browser-canvas/utils/text/getTextLayout.d.ts +4 -11
- package/dist/renderer/browser-canvas/utils/text/getTextUnitMeasurements.d.ts +9 -0
- package/dist/types/Slide.d.ts +2 -0
- package/dist/types/SlideObject.d.ts +2 -0
- package/package.json +2 -2
package/dist/presenter.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var I = (n, e, t) =>
|
|
1
|
+
var T0 = Object.defineProperty;
|
|
2
|
+
var L0 = (n, e, t) => e in n ? T0(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var I = (n, e, t) => L0(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
const dt = {
|
|
5
5
|
/** Represents an animated change in an object's properties. */
|
|
6
6
|
ANIMATE: "Animate",
|
|
@@ -9,13 +9,13 @@ const dt = {
|
|
|
9
9
|
/** Represents an immediate update to an object's properties without animation. */
|
|
10
10
|
UPDATE: "Update"
|
|
11
11
|
};
|
|
12
|
-
function
|
|
12
|
+
function M0(n) {
|
|
13
13
|
return n * n * n;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function C0(n) {
|
|
16
16
|
return --n * n * n + 1;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function S0(n) {
|
|
19
19
|
return ((n *= 2) <= 1 ? n * n * n : (n -= 2) * n * n + 2) / 2;
|
|
20
20
|
}
|
|
21
21
|
var le = 1.70158;
|
|
@@ -33,7 +33,7 @@ var le = 1.70158;
|
|
|
33
33
|
}
|
|
34
34
|
return t.overshoot = n, t;
|
|
35
35
|
})(le);
|
|
36
|
-
var
|
|
36
|
+
var P0 = (function n(e) {
|
|
37
37
|
e = +e;
|
|
38
38
|
function t(o) {
|
|
39
39
|
return ((o *= 2) < 1 ? o * o * ((e + 1) * o - e) : (o -= 2) * o * ((e + 1) * o + e) + 2) / 2;
|
|
@@ -42,11 +42,11 @@ var S0 = (function n(e) {
|
|
|
42
42
|
})(le);
|
|
43
43
|
const he = {
|
|
44
44
|
LINEAR: (n) => n,
|
|
45
|
-
CUBIC:
|
|
46
|
-
CUBIC_IN:
|
|
47
|
-
CUBIC_OUT:
|
|
48
|
-
BACK_IN_OUT:
|
|
49
|
-
},
|
|
45
|
+
CUBIC: S0,
|
|
46
|
+
CUBIC_IN: M0,
|
|
47
|
+
CUBIC_OUT: C0,
|
|
48
|
+
BACK_IN_OUT: P0.overshoot(0.8)
|
|
49
|
+
}, E0 = he.LINEAR;
|
|
50
50
|
function ce(n, e, t = {}) {
|
|
51
51
|
return {
|
|
52
52
|
type: dt.ANIMATE,
|
|
@@ -54,7 +54,7 @@ function ce(n, e, t = {}) {
|
|
|
54
54
|
props: e,
|
|
55
55
|
delay: 0,
|
|
56
56
|
duration: 1e3,
|
|
57
|
-
easing:
|
|
57
|
+
easing: E0,
|
|
58
58
|
block: !1,
|
|
59
59
|
interpolators: null,
|
|
60
60
|
isKey: !1,
|
|
@@ -63,21 +63,21 @@ function ce(n, e, t = {}) {
|
|
|
63
63
|
...typeof t == "number" ? { duration: t } : t
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Pi(n, e = {}) {
|
|
67
67
|
return ce(n, { opacity: 1 }, {
|
|
68
68
|
duration: 500,
|
|
69
69
|
easing: he.CUBIC,
|
|
70
70
|
...typeof e == "number" ? { duration: e } : e
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Ei(n, e = {}) {
|
|
74
74
|
return ce(n, { opacity: 0 }, {
|
|
75
75
|
duration: 500,
|
|
76
76
|
easing: he.CUBIC,
|
|
77
77
|
...typeof e == "number" ? { duration: e } : e
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Qe(n, e, t = {}) {
|
|
81
81
|
return {
|
|
82
82
|
type: dt.UPDATE,
|
|
83
83
|
isKey: !1,
|
|
@@ -88,11 +88,11 @@ function Ke(n, e, t = {}) {
|
|
|
88
88
|
...t
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
return
|
|
91
|
+
function Ii(n, e = {}) {
|
|
92
|
+
return Qe(n, { opacity: 0 }, e);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
return
|
|
94
|
+
function ki(n, e = {}) {
|
|
95
|
+
return Qe(n, { opacity: 1 }, e);
|
|
96
96
|
}
|
|
97
97
|
const st = {
|
|
98
98
|
TOP_LEFT: "TopLeft",
|
|
@@ -141,7 +141,7 @@ G.RED = G(255, 0, 0);
|
|
|
141
141
|
G.TRANSPARENT = G(0, 0, 0, 0);
|
|
142
142
|
G.WHITE = G(255, 255, 255);
|
|
143
143
|
const J = { red: 0, green: 0, blue: 0, alpha: 1 };
|
|
144
|
-
function
|
|
144
|
+
function t0(n = null) {
|
|
145
145
|
return {
|
|
146
146
|
content: null,
|
|
147
147
|
setup: null,
|
|
@@ -153,14 +153,14 @@ function Ze(n = null) {
|
|
|
153
153
|
...n
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function e0(n, e = null) {
|
|
157
157
|
return n.alpha * (e ?? 1);
|
|
158
158
|
}
|
|
159
159
|
function It(n, e = null) {
|
|
160
|
-
const { red: t, green: o, blue: i } = n, a = t << 16 | o << 8 | i, s = Math.round(
|
|
160
|
+
const { red: t, green: o, blue: i } = n, a = t << 16 | o << 8 | i, s = Math.round(e0(n, e) * 255);
|
|
161
161
|
return `#${a.toString(16).padStart(6, "0")}${s !== 255 ? s.toString(16).padStart(2, "0") : ""}`;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Oi(n = null) {
|
|
164
164
|
const {
|
|
165
165
|
url: e = "https://wikipedia.org/",
|
|
166
166
|
backgroundColor: t = G.TRANSPARENT,
|
|
@@ -172,28 +172,28 @@ function Mi(n = null) {
|
|
|
172
172
|
height: l = 1e3,
|
|
173
173
|
width: c = 1e3,
|
|
174
174
|
x: u = 0,
|
|
175
|
-
y:
|
|
175
|
+
y: p = 0
|
|
176
176
|
} = n || {}, h = document.createElement("iframe");
|
|
177
177
|
h.src = e, h.style.backgroundColor = It(t), h.style.border = i > 0 ? `${i}px solid ${It(o)}` : "none", h.style.pointerEvents = a;
|
|
178
178
|
const f = (100 / s).toFixed(3) + "%";
|
|
179
|
-
return h.style.height = i === 0 ? f : `calc(${f} - ${i * 2}px)`, h.style.width = i === 0 ? f : `calc(${f} - ${i * 2}px)`, h.style.transform = `scale(${s})`, h.style.transformOrigin = "top left",
|
|
179
|
+
return h.style.height = i === 0 ? f : `calc(${f} - ${i * 2}px)`, h.style.width = i === 0 ? f : `calc(${f} - ${i * 2}px)`, h.style.transform = `scale(${s})`, h.style.transformOrigin = "top left", t0({
|
|
180
180
|
content: h,
|
|
181
181
|
anchor: r,
|
|
182
182
|
height: l,
|
|
183
183
|
width: c,
|
|
184
184
|
x: u,
|
|
185
|
-
y:
|
|
185
|
+
y: p
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
const vt = {
|
|
189
189
|
LEFT: "left",
|
|
190
190
|
CENTER: "center",
|
|
191
191
|
RIGHT: "right"
|
|
192
|
-
},
|
|
192
|
+
}, I0 = vt.LEFT;
|
|
193
193
|
function at(n, e) {
|
|
194
194
|
throw new Error("Unexpected value: " + n);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function _i(n = null) {
|
|
197
197
|
const {
|
|
198
198
|
alignment: e = vt.LEFT,
|
|
199
199
|
scale: t = 1,
|
|
@@ -219,13 +219,13 @@ function Ci(n = null) {
|
|
|
219
219
|
at(e);
|
|
220
220
|
}
|
|
221
221
|
c.appendChild(u);
|
|
222
|
-
const
|
|
222
|
+
const p = {
|
|
223
223
|
video: {
|
|
224
224
|
displaySurface: "window"
|
|
225
225
|
},
|
|
226
226
|
audio: !1
|
|
227
227
|
};
|
|
228
|
-
return navigator.mediaDevices.getDisplayMedia(
|
|
228
|
+
return navigator.mediaDevices.getDisplayMedia(p).then((h) => {
|
|
229
229
|
const f = h.getVideoTracks()[0];
|
|
230
230
|
f !== void 0 && (f.onended = function() {
|
|
231
231
|
u.style.display = "none";
|
|
@@ -236,7 +236,7 @@ function Ci(n = null) {
|
|
|
236
236
|
u.srcObject.getTracks().forEach((f) => f.stop()), u.style.display = "none", u.srcObject = null;
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
|
-
return
|
|
239
|
+
return t0({
|
|
240
240
|
content: null,
|
|
241
241
|
setup: l,
|
|
242
242
|
anchor: o,
|
|
@@ -246,7 +246,7 @@ function Ci(n = null) {
|
|
|
246
246
|
y: r
|
|
247
247
|
});
|
|
248
248
|
}
|
|
249
|
-
const
|
|
249
|
+
const j = {
|
|
250
250
|
ARROW: "Arrow",
|
|
251
251
|
CIRCLE: "Circle",
|
|
252
252
|
GROUP: "Group",
|
|
@@ -263,15 +263,16 @@ const V = {
|
|
|
263
263
|
};
|
|
264
264
|
function nt(n) {
|
|
265
265
|
return {
|
|
266
|
-
|
|
266
|
+
description: null,
|
|
267
|
+
objectType: j.SLIDE_OBJECT,
|
|
267
268
|
opacity: 1,
|
|
268
269
|
...n
|
|
269
270
|
};
|
|
270
271
|
}
|
|
271
|
-
function
|
|
272
|
+
function Ni(n = null) {
|
|
272
273
|
const { arrowheadSize: e, width: t = 10, ...o } = n || {}, i = e ?? t * 4;
|
|
273
274
|
return nt({
|
|
274
|
-
objectType:
|
|
275
|
+
objectType: j.ARROW,
|
|
275
276
|
arrowheadSize: i,
|
|
276
277
|
color: J,
|
|
277
278
|
drawn: 1,
|
|
@@ -286,24 +287,24 @@ function Si(n = null) {
|
|
|
286
287
|
...o
|
|
287
288
|
});
|
|
288
289
|
}
|
|
289
|
-
const
|
|
290
|
-
function
|
|
290
|
+
const k0 = 50;
|
|
291
|
+
function Ri(n = null) {
|
|
291
292
|
return nt({
|
|
292
|
-
objectType:
|
|
293
|
+
objectType: j.CIRCLE,
|
|
293
294
|
anchor: et,
|
|
294
295
|
strokeColor: J,
|
|
295
296
|
strokeWidth: 0,
|
|
296
297
|
drawn: 1,
|
|
297
298
|
fillColor: J,
|
|
298
|
-
radius:
|
|
299
|
+
radius: k0,
|
|
299
300
|
x: 0,
|
|
300
301
|
y: 0,
|
|
301
302
|
...n
|
|
302
303
|
});
|
|
303
304
|
}
|
|
304
|
-
function
|
|
305
|
+
function be(n, e = null) {
|
|
305
306
|
return nt({
|
|
306
|
-
objectType:
|
|
307
|
+
objectType: j.GROUP,
|
|
307
308
|
anchor: et,
|
|
308
309
|
height: 0,
|
|
309
310
|
objects: n,
|
|
@@ -326,7 +327,7 @@ function we(n, e = null) {
|
|
|
326
327
|
...e
|
|
327
328
|
});
|
|
328
329
|
}
|
|
329
|
-
function
|
|
330
|
+
function Fi(n) {
|
|
330
331
|
const {
|
|
331
332
|
anchor: e = et,
|
|
332
333
|
cols: t = 1,
|
|
@@ -338,7 +339,7 @@ function Ei(n) {
|
|
|
338
339
|
height: l = 0,
|
|
339
340
|
x: c = 0,
|
|
340
341
|
y: u = 0,
|
|
341
|
-
objects:
|
|
342
|
+
objects: p = () => null
|
|
342
343
|
} = n, h = [], f = [];
|
|
343
344
|
let v = 0, y = 0;
|
|
344
345
|
for (let C = 0; C < o; C++) {
|
|
@@ -346,9 +347,9 @@ function Ei(n) {
|
|
|
346
347
|
v = 0;
|
|
347
348
|
let L = 0;
|
|
348
349
|
for (let E = 0; E < t; E++) {
|
|
349
|
-
const S =
|
|
350
|
+
const S = p(C, E), k = typeof r == "function" ? r(C, E) : r, F = typeof l == "function" ? l(C, E) : l;
|
|
350
351
|
M.push(S), S != null && f.push(
|
|
351
|
-
|
|
352
|
+
be([S], {
|
|
352
353
|
x: v,
|
|
353
354
|
y
|
|
354
355
|
})
|
|
@@ -357,7 +358,7 @@ function Ei(n) {
|
|
|
357
358
|
h.push(M), y += L + a;
|
|
358
359
|
}
|
|
359
360
|
return {
|
|
360
|
-
grid:
|
|
361
|
+
grid: be(f, {
|
|
361
362
|
x: c,
|
|
362
363
|
y: u,
|
|
363
364
|
height: y - a,
|
|
@@ -368,9 +369,9 @@ function Ei(n) {
|
|
|
368
369
|
objects: h
|
|
369
370
|
};
|
|
370
371
|
}
|
|
371
|
-
function
|
|
372
|
+
function Bi(n = null) {
|
|
372
373
|
return nt({
|
|
373
|
-
objectType:
|
|
374
|
+
objectType: j.IMAGE,
|
|
374
375
|
anchor: et,
|
|
375
376
|
cornerRadius: 0,
|
|
376
377
|
height: 100,
|
|
@@ -382,9 +383,9 @@ function Ii(n = null) {
|
|
|
382
383
|
...n
|
|
383
384
|
});
|
|
384
385
|
}
|
|
385
|
-
function
|
|
386
|
+
function Di(n = null) {
|
|
386
387
|
return nt({
|
|
387
|
-
objectType:
|
|
388
|
+
objectType: j.LINE,
|
|
388
389
|
color: J,
|
|
389
390
|
drawn: 1,
|
|
390
391
|
endX: 100,
|
|
@@ -397,9 +398,9 @@ function ki(n = null) {
|
|
|
397
398
|
...n
|
|
398
399
|
});
|
|
399
400
|
}
|
|
400
|
-
function
|
|
401
|
+
function qi(n, e = null) {
|
|
401
402
|
return nt({
|
|
402
|
-
objectType:
|
|
403
|
+
objectType: j.MASK,
|
|
403
404
|
anchor: et,
|
|
404
405
|
height: 100,
|
|
405
406
|
objects: n,
|
|
@@ -410,11 +411,11 @@ function Oi(n, e = null) {
|
|
|
410
411
|
...e
|
|
411
412
|
});
|
|
412
413
|
}
|
|
413
|
-
var
|
|
414
|
-
const e = (n && n.length > 0 ? n : "M0,0").match(
|
|
414
|
+
var O0 = Object.defineProperty, _ = (n, e) => O0(n, "name", { value: e, configurable: !0 }), Pt = { a: 7, c: 6, h: 1, l: 2, m: 2, q: 4, s: 4, t: 2, v: 1, z: 0 }, _0 = /([astvzqmhlc])([^astvzqmhlc]*)/gi, N0 = /-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi, R0 = _((n) => {
|
|
415
|
+
const e = (n && n.length > 0 ? n : "M0,0").match(_0);
|
|
415
416
|
if (!e) throw new Error(`No path elements found in string ${n}`);
|
|
416
417
|
return e.reduce((t, o) => {
|
|
417
|
-
let i = o.charAt(0), a = i.toLowerCase(), s =
|
|
418
|
+
let i = o.charAt(0), a = i.toLowerCase(), s = F0(o.substring(1));
|
|
418
419
|
if (a === "m" && s.length > 2 && (t.push([i, ...s.splice(0, 2)]), a = "l", i = i === "m" ? "l" : "L"), a.toLowerCase() === "a" && (s.length === 5 || s.length === 6)) {
|
|
419
420
|
const r = o.substring(1).trim().split(" ");
|
|
420
421
|
s = [Number(r[0]), Number(r[1]), Number(r[2]), Number(r[3].charAt(0)), Number(r[3].charAt(1)), Number(r[3].substring(2)), Number(r[4])];
|
|
@@ -429,8 +430,8 @@ var k0 = Object.defineProperty, _ = (n, e) => k0(n, "name", { value: e, configur
|
|
|
429
430
|
}
|
|
430
431
|
return t;
|
|
431
432
|
}, []);
|
|
432
|
-
}, "default"),
|
|
433
|
-
const e = n.match(
|
|
433
|
+
}, "default"), F0 = _((n) => {
|
|
434
|
+
const e = n.match(N0);
|
|
434
435
|
return e ? e.map(Number) : [];
|
|
435
436
|
}, "parseValues"), bt, tt = (bt = class {
|
|
436
437
|
constructor(e, t, o, i) {
|
|
@@ -455,7 +456,7 @@ var k0 = Object.defineProperty, _ = (n, e) => k0(n, "name", { value: e, configur
|
|
|
455
456
|
}, "getPropertiesAtLength"));
|
|
456
457
|
this.x0 = e, this.x1 = t, this.y0 = o, this.y1 = i;
|
|
457
458
|
}
|
|
458
|
-
}, _(bt, "LinearPosition"), bt), At,
|
|
459
|
+
}, _(bt, "LinearPosition"), bt), At, Ae = (At = class {
|
|
459
460
|
constructor(e, t, o, i, a, s, r, l, c) {
|
|
460
461
|
I(this, "x0");
|
|
461
462
|
I(this, "y0");
|
|
@@ -470,7 +471,7 @@ var k0 = Object.defineProperty, _ = (n, e) => k0(n, "name", { value: e, configur
|
|
|
470
471
|
I(this, "getTotalLength", _(() => this.length, "getTotalLength"));
|
|
471
472
|
I(this, "getPointAtLength", _((e) => {
|
|
472
473
|
e < 0 ? e = 0 : e > this.length && (e = this.length);
|
|
473
|
-
const t =
|
|
474
|
+
const t = Te({ x: this.x0, y: this.y0 }, this.rx, this.ry, this.xAxisRotate, this.LargeArcFlag, this.SweepFlag, { x: this.x1, y: this.y1 }, e / this.length);
|
|
474
475
|
return { x: t.x, y: t.y };
|
|
475
476
|
}, "getPointAtLength"));
|
|
476
477
|
I(this, "getTangentAtLength", _((e) => {
|
|
@@ -486,69 +487,69 @@ var k0 = Object.defineProperty, _ = (n, e) => k0(n, "name", { value: e, configur
|
|
|
486
487
|
return { x: o.x, y: o.y, tangentX: t.x, tangentY: t.y };
|
|
487
488
|
}, "getPropertiesAtLength"));
|
|
488
489
|
this.x0 = e, this.y0 = t, this.rx = o, this.ry = i, this.xAxisRotate = a, this.LargeArcFlag = s, this.SweepFlag = r, this.x1 = l, this.y1 = c;
|
|
489
|
-
const u =
|
|
490
|
-
return
|
|
490
|
+
const u = B0(300, function(p) {
|
|
491
|
+
return Te({ x: e, y: t }, o, i, a, s, r, { x: l, y: c }, p);
|
|
491
492
|
});
|
|
492
493
|
this.length = u.arcLength;
|
|
493
494
|
}
|
|
494
|
-
}, _(At, "Arc"), At),
|
|
495
|
-
e = Math.abs(e), t = Math.abs(t), o =
|
|
496
|
-
const l =
|
|
495
|
+
}, _(At, "Arc"), At), Te = _((n, e, t, o, i, a, s, r) => {
|
|
496
|
+
e = Math.abs(e), t = Math.abs(t), o = D0(o, 360);
|
|
497
|
+
const l = q0(o);
|
|
497
498
|
if (n.x === s.x && n.y === s.y) return { x: n.x, y: n.y, ellipticalArcAngle: 0 };
|
|
498
499
|
if (e === 0 || t === 0) return { x: 0, y: 0, ellipticalArcAngle: 0 };
|
|
499
|
-
const c = (n.x - s.x) / 2, u = (n.y - s.y) / 2,
|
|
500
|
+
const c = (n.x - s.x) / 2, u = (n.y - s.y) / 2, p = { x: Math.cos(l) * c + Math.sin(l) * u, y: -Math.sin(l) * c + Math.cos(l) * u }, h = Math.pow(p.x, 2) / Math.pow(e, 2) + Math.pow(p.y, 2) / Math.pow(t, 2);
|
|
500
501
|
h > 1 && (e = Math.sqrt(h) * e, t = Math.sqrt(h) * t);
|
|
501
|
-
let f = (Math.pow(e, 2) * Math.pow(t, 2) - Math.pow(e, 2) * Math.pow(
|
|
502
|
+
let f = (Math.pow(e, 2) * Math.pow(t, 2) - Math.pow(e, 2) * Math.pow(p.y, 2) - Math.pow(t, 2) * Math.pow(p.x, 2)) / (Math.pow(e, 2) * Math.pow(p.y, 2) + Math.pow(t, 2) * Math.pow(p.x, 2));
|
|
502
503
|
f = f < 0 ? 0 : f;
|
|
503
|
-
const v = (i !== a ? 1 : -1) * Math.sqrt(f), y = v * (e *
|
|
504
|
-
let E =
|
|
504
|
+
const v = (i !== a ? 1 : -1) * Math.sqrt(f), y = v * (e * p.y / t), T = v * (-t * p.x / e), C = { x: Math.cos(l) * y - Math.sin(l) * T + (n.x + s.x) / 2, y: Math.sin(l) * y + Math.cos(l) * T + (n.y + s.y) / 2 }, M = { x: (p.x - y) / e, y: (p.y - T) / t }, L = Me({ x: 1, y: 0 }, M);
|
|
505
|
+
let E = Me(M, { x: (-p.x - y) / e, y: (-p.y - T) / t });
|
|
505
506
|
!a && E > 0 ? E -= 2 * Math.PI : a && E < 0 && (E += 2 * Math.PI), E %= 2 * Math.PI;
|
|
506
507
|
const S = L + E * r, k = e * Math.cos(S), F = t * Math.sin(S);
|
|
507
508
|
return { x: Math.cos(l) * k - Math.sin(l) * F + C.x, y: Math.sin(l) * k + Math.cos(l) * F + C.y, ellipticalArcStartAngle: L, ellipticalArcEndAngle: L + E, ellipticalArcAngle: S, ellipticalArcCenter: C, resultantRx: e, resultantRy: t };
|
|
508
|
-
}, "pointOnEllipticalArc"),
|
|
509
|
+
}, "pointOnEllipticalArc"), B0 = _((n, e) => {
|
|
509
510
|
n = n ?? 500;
|
|
510
511
|
let t = 0;
|
|
511
512
|
const o = [], i = [];
|
|
512
513
|
let a, s = e(0);
|
|
513
514
|
for (let r = 0; r < n; r++) {
|
|
514
|
-
const l =
|
|
515
|
-
a = e(l), t +=
|
|
515
|
+
const l = z0(r * (1 / n), 0, 1);
|
|
516
|
+
a = e(l), t += Le(s, a), i.push([s, a]), o.push({ t: l, arcLength: t }), s = a;
|
|
516
517
|
}
|
|
517
|
-
return a = e(1), i.push([s, a]), t +=
|
|
518
|
-
}, "approximateArcLengthOfCurve"),
|
|
518
|
+
return a = e(1), i.push([s, a]), t += Le(s, a), o.push({ t: 1, arcLength: t }), { arcLength: t, arcLengthMap: o, approximationLines: i };
|
|
519
|
+
}, "approximateArcLengthOfCurve"), D0 = _((n, e) => (n % e + e) % e, "mod"), q0 = _((n) => n * (Math.PI / 180), "toRadians"), Le = _((n, e) => Math.sqrt(Math.pow(e.x - n.x, 2) + Math.pow(e.y - n.y, 2)), "distance"), z0 = _((n, e, t) => Math.min(Math.max(n, e), t), "clamp"), Me = _((n, e) => {
|
|
519
520
|
const t = n.x * e.x + n.y * e.y, o = Math.sqrt((Math.pow(n.x, 2) + Math.pow(n.y, 2)) * (Math.pow(e.x, 2) + Math.pow(e.y, 2)));
|
|
520
521
|
return (n.x * e.y - n.y * e.x < 0 ? -1 : 1) * Math.acos(t / o);
|
|
521
|
-
}, "angleBetween"), z0 = [[], [], [-0.5773502691896257, 0.5773502691896258], [0, -0.7745966692414833, 0.7745966692414833], [-0.33998104358485626, 0.33998104358485626, -0.8611363115940526, 0.8611363115940526], [0, -0.5384693101056831, 0.5384693101056831, -0.906179845938664, 0.906179845938664], [0.6612093864662645, -0.6612093864662645, -0.2386191860831969, 0.2386191860831969, -0.932469514203152, 0.932469514203152], [0, 0.4058451513773972, -0.4058451513773972, -0.7415311855993945, 0.7415311855993945, -0.9491079123427585, 0.9491079123427585], [-0.1834346424956498, 0.1834346424956498, -0.525532409916329, 0.525532409916329, -0.7966664774136267, 0.7966664774136267, -0.9602898564975363, 0.9602898564975363], [0, -0.8360311073266358, 0.8360311073266358, -0.9681602395076261, 0.9681602395076261, -0.3242534234038089, 0.3242534234038089, -0.6133714327005904, 0.6133714327005904], [-0.14887433898163122, 0.14887433898163122, -0.4333953941292472, 0.4333953941292472, -0.6794095682990244, 0.6794095682990244, -0.8650633666889845, 0.8650633666889845, -0.9739065285171717, 0.9739065285171717], [0, -0.26954315595234496, 0.26954315595234496, -0.5190961292068118, 0.5190961292068118, -0.7301520055740494, 0.7301520055740494, -0.8870625997680953, 0.8870625997680953, -0.978228658146057, 0.978228658146057], [-0.1252334085114689, 0.1252334085114689, -0.3678314989981802, 0.3678314989981802, -0.5873179542866175, 0.5873179542866175, -0.7699026741943047, 0.7699026741943047, -0.9041172563704749, 0.9041172563704749, -0.9815606342467192, 0.9815606342467192], [0, -0.2304583159551348, 0.2304583159551348, -0.44849275103644687, 0.44849275103644687, -0.6423493394403402, 0.6423493394403402, -0.8015780907333099, 0.8015780907333099, -0.9175983992229779, 0.9175983992229779, -0.9841830547185881, 0.9841830547185881], [-0.10805494870734367, 0.10805494870734367, -0.31911236892788974, 0.31911236892788974, -0.5152486363581541, 0.5152486363581541, -0.6872929048116855, 0.6872929048116855, -0.827201315069765, 0.827201315069765, -0.9284348836635735, 0.9284348836635735, -0.9862838086968123, 0.9862838086968123], [0, -0.20119409399743451, 0.20119409399743451, -0.3941513470775634, 0.3941513470775634, -0.5709721726085388, 0.5709721726085388, -0.7244177313601701, 0.7244177313601701, -0.8482065834104272, 0.8482065834104272, -0.937273392400706, 0.937273392400706, -0.9879925180204854, 0.9879925180204854], [-0.09501250983763744, 0.09501250983763744, -0.2816035507792589, 0.2816035507792589, -0.45801677765722737, 0.45801677765722737, -0.6178762444026438, 0.6178762444026438, -0.755404408355003, 0.755404408355003, -0.8656312023878318, 0.8656312023878318, -0.9445750230732326, 0.9445750230732326, -0.9894009349916499, 0.9894009349916499], [0, -0.17848418149584785, 0.17848418149584785, -0.3512317634538763, 0.3512317634538763, -0.5126905370864769, 0.5126905370864769, -0.6576711592166907, 0.6576711592166907, -0.7815140038968014, 0.7815140038968014, -0.8802391537269859, 0.8802391537269859, -0.9506755217687678, 0.9506755217687678, -0.9905754753144174, 0.9905754753144174], [-0.0847750130417353, 0.0847750130417353, -0.2518862256915055, 0.2518862256915055, -0.41175116146284263, 0.41175116146284263, -0.5597708310739475, 0.5597708310739475, -0.6916870430603532, 0.6916870430603532, -0.8037049589725231, 0.8037049589725231, -0.8926024664975557, 0.8926024664975557, -0.9558239495713977, 0.9558239495713977, -0.9915651684209309, 0.9915651684209309], [0, -0.16035864564022537, 0.16035864564022537, -0.31656409996362983, 0.31656409996362983, -0.46457074137596094, 0.46457074137596094, -0.600545304661681, 0.600545304661681, -0.7209661773352294, 0.7209661773352294, -0.8227146565371428, 0.8227146565371428, -0.9031559036148179, 0.9031559036148179, -0.96020815213483, 0.96020815213483, -0.9924068438435844, 0.9924068438435844], [-0.07652652113349734, 0.07652652113349734, -0.22778585114164507, 0.22778585114164507, -0.37370608871541955, 0.37370608871541955, -0.5108670019508271, 0.5108670019508271, -0.636053680726515, 0.636053680726515, -0.7463319064601508, 0.7463319064601508, -0.8391169718222188, 0.8391169718222188, -0.912234428251326, 0.912234428251326, -0.9639719272779138, 0.9639719272779138, -0.9931285991850949, 0.9931285991850949], [0, -0.1455618541608951, 0.1455618541608951, -0.2880213168024011, 0.2880213168024011, -0.4243421202074388, 0.4243421202074388, -0.5516188358872198, 0.5516188358872198, -0.6671388041974123, 0.6671388041974123, -0.7684399634756779, 0.7684399634756779, -0.8533633645833173, 0.8533633645833173, -0.9200993341504008, 0.9200993341504008, -0.9672268385663063, 0.9672268385663063, -0.9937521706203895, 0.9937521706203895], [-0.06973927331972223, 0.06973927331972223, -0.20786042668822127, 0.20786042668822127, -0.34193582089208424, 0.34193582089208424, -0.469355837986757, 0.469355837986757, -0.5876404035069116, 0.5876404035069116, -0.6944872631866827, 0.6944872631866827, -0.7878168059792081, 0.7878168059792081, -0.8658125777203002, 0.8658125777203002, -0.926956772187174, 0.926956772187174, -0.9700604978354287, 0.9700604978354287, -0.9942945854823992, 0.9942945854823992], [0, -0.1332568242984661, 0.1332568242984661, -0.26413568097034495, 0.26413568097034495, -0.3903010380302908, 0.3903010380302908, -0.5095014778460075, 0.5095014778460075, -0.6196098757636461, 0.6196098757636461, -0.7186613631319502, 0.7186613631319502, -0.8048884016188399, 0.8048884016188399, -0.8767523582704416, 0.8767523582704416, -0.9329710868260161, 0.9329710868260161, -0.9725424712181152, 0.9725424712181152, -0.9947693349975522, 0.9947693349975522], [-0.06405689286260563, 0.06405689286260563, -0.1911188674736163, 0.1911188674736163, -0.3150426796961634, 0.3150426796961634, -0.4337935076260451, 0.4337935076260451, -0.5454214713888396, 0.5454214713888396, -0.6480936519369755, 0.6480936519369755, -0.7401241915785544, 0.7401241915785544, -0.820001985973903, 0.820001985973903, -0.8864155270044011, 0.8864155270044011, -0.9382745520027328, 0.9382745520027328, -0.9747285559713095, 0.9747285559713095, -0.9951872199970213, 0.9951872199970213]], V0 = [[], [], [1, 1], [0.8888888888888888, 0.5555555555555556, 0.5555555555555556], [0.6521451548625461, 0.6521451548625461, 0.34785484513745385, 0.34785484513745385], [0.5688888888888889, 0.47862867049936647, 0.47862867049936647, 0.23692688505618908, 0.23692688505618908], [0.3607615730481386, 0.3607615730481386, 0.46791393457269104, 0.46791393457269104, 0.17132449237917036, 0.17132449237917036], [0.4179591836734694, 0.3818300505051189, 0.3818300505051189, 0.27970539148927664, 0.27970539148927664, 0.1294849661688697, 0.1294849661688697], [0.362683783378362, 0.362683783378362, 0.31370664587788727, 0.31370664587788727, 0.22238103445337448, 0.22238103445337448, 0.10122853629037626, 0.10122853629037626], [0.3302393550012598, 0.1806481606948574, 0.1806481606948574, 0.08127438836157441, 0.08127438836157441, 0.31234707704000286, 0.31234707704000286, 0.26061069640293544, 0.26061069640293544], [0.29552422471475287, 0.29552422471475287, 0.26926671930999635, 0.26926671930999635, 0.21908636251598204, 0.21908636251598204, 0.1494513491505806, 0.1494513491505806, 0.06667134430868814, 0.06667134430868814], [0.2729250867779006, 0.26280454451024665, 0.26280454451024665, 0.23319376459199048, 0.23319376459199048, 0.18629021092773426, 0.18629021092773426, 0.1255803694649046, 0.1255803694649046, 0.05566856711617366, 0.05566856711617366], [0.24914704581340277, 0.24914704581340277, 0.2334925365383548, 0.2334925365383548, 0.20316742672306592, 0.20316742672306592, 0.16007832854334622, 0.16007832854334622, 0.10693932599531843, 0.10693932599531843, 0.04717533638651183, 0.04717533638651183], [0.2325515532308739, 0.22628318026289723, 0.22628318026289723, 0.2078160475368885, 0.2078160475368885, 0.17814598076194574, 0.17814598076194574, 0.13887351021978725, 0.13887351021978725, 0.09212149983772845, 0.09212149983772845, 0.04048400476531588, 0.04048400476531588], [0.2152638534631578, 0.2152638534631578, 0.2051984637212956, 0.2051984637212956, 0.18553839747793782, 0.18553839747793782, 0.15720316715819355, 0.15720316715819355, 0.12151857068790319, 0.12151857068790319, 0.08015808715976021, 0.08015808715976021, 0.03511946033175186, 0.03511946033175186], [0.2025782419255613, 0.19843148532711158, 0.19843148532711158, 0.1861610000155622, 0.1861610000155622, 0.16626920581699392, 0.16626920581699392, 0.13957067792615432, 0.13957067792615432, 0.10715922046717194, 0.10715922046717194, 0.07036604748810812, 0.07036604748810812, 0.03075324199611727, 0.03075324199611727], [0.1894506104550685, 0.1894506104550685, 0.18260341504492358, 0.18260341504492358, 0.16915651939500254, 0.16915651939500254, 0.14959598881657674, 0.14959598881657674, 0.12462897125553388, 0.12462897125553388, 0.09515851168249279, 0.09515851168249279, 0.062253523938647894, 0.062253523938647894, 0.027152459411754096, 0.027152459411754096], [0.17944647035620653, 0.17656270536699264, 0.17656270536699264, 0.16800410215645004, 0.16800410215645004, 0.15404576107681028, 0.15404576107681028, 0.13513636846852548, 0.13513636846852548, 0.11188384719340397, 0.11188384719340397, 0.08503614831717918, 0.08503614831717918, 0.0554595293739872, 0.0554595293739872, 0.02414830286854793, 0.02414830286854793], [0.1691423829631436, 0.1691423829631436, 0.16427648374583273, 0.16427648374583273, 0.15468467512626524, 0.15468467512626524, 0.14064291467065065, 0.14064291467065065, 0.12255520671147846, 0.12255520671147846, 0.10094204410628717, 0.10094204410628717, 0.07642573025488905, 0.07642573025488905, 0.0497145488949698, 0.0497145488949698, 0.02161601352648331, 0.02161601352648331], [0.1610544498487837, 0.15896884339395434, 0.15896884339395434, 0.15276604206585967, 0.15276604206585967, 0.1426067021736066, 0.1426067021736066, 0.12875396253933621, 0.12875396253933621, 0.11156664554733399, 0.11156664554733399, 0.09149002162245, 0.09149002162245, 0.06904454273764123, 0.06904454273764123, 0.0448142267656996, 0.0448142267656996, 0.019461788229726478, 0.019461788229726478], [0.15275338713072584, 0.15275338713072584, 0.14917298647260374, 0.14917298647260374, 0.14209610931838204, 0.14209610931838204, 0.13168863844917664, 0.13168863844917664, 0.11819453196151841, 0.11819453196151841, 0.10193011981724044, 0.10193011981724044, 0.08327674157670475, 0.08327674157670475, 0.06267204833410907, 0.06267204833410907, 0.04060142980038694, 0.04060142980038694, 0.017614007139152118, 0.017614007139152118], [0.14608113364969041, 0.14452440398997005, 0.14452440398997005, 0.13988739479107315, 0.13988739479107315, 0.13226893863333747, 0.13226893863333747, 0.12183141605372853, 0.12183141605372853, 0.10879729916714838, 0.10879729916714838, 0.09344442345603386, 0.09344442345603386, 0.0761001136283793, 0.0761001136283793, 0.057134425426857205, 0.057134425426857205, 0.036953789770852494, 0.036953789770852494, 0.016017228257774335, 0.016017228257774335], [0.13925187285563198, 0.13925187285563198, 0.13654149834601517, 0.13654149834601517, 0.13117350478706238, 0.13117350478706238, 0.12325237681051242, 0.12325237681051242, 0.11293229608053922, 0.11293229608053922, 0.10041414444288096, 0.10041414444288096, 0.08594160621706773, 0.08594160621706773, 0.06979646842452049, 0.06979646842452049, 0.052293335152683286, 0.052293335152683286, 0.03377490158481415, 0.03377490158481415, 0.0146279952982722, 0.0146279952982722], [0.13365457218610619, 0.1324620394046966, 0.1324620394046966, 0.12890572218808216, 0.12890572218808216, 0.12304908430672953, 0.12304908430672953, 0.11499664022241136, 0.11499664022241136, 0.10489209146454141, 0.10489209146454141, 0.09291576606003515, 0.09291576606003515, 0.07928141177671895, 0.07928141177671895, 0.06423242140852585, 0.06423242140852585, 0.04803767173108467, 0.04803767173108467, 0.030988005856979445, 0.030988005856979445, 0.013411859487141771, 0.013411859487141771], [0.12793819534675216, 0.12793819534675216, 0.1258374563468283, 0.1258374563468283, 0.12167047292780339, 0.12167047292780339, 0.1155056680537256, 0.1155056680537256, 0.10744427011596563, 0.10744427011596563, 0.09761865210411388, 0.09761865210411388, 0.08619016153195327, 0.08619016153195327, 0.0733464814110803, 0.0733464814110803, 0.05929858491543678, 0.05929858491543678, 0.04427743881741981, 0.04427743881741981, 0.028531388628933663, 0.028531388628933663, 0.0123412297999872, 0.0123412297999872]], j0 = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]], H0 = _((n, e, t) => ({ x: (1 - t) * (1 - t) * (1 - t) * n[0] + 3 * (1 - t) * (1 - t) * t * n[1] + 3 * (1 - t) * t * t * n[2] + t * t * t * n[3], y: (1 - t) * (1 - t) * (1 - t) * e[0] + 3 * (1 - t) * (1 - t) * t * e[1] + 3 * (1 - t) * t * t * e[2] + t * t * t * e[3] }), "cubicPoint"), U0 = _((n, e, t) => Qe([3 * (n[1] - n[0]), 3 * (n[2] - n[1]), 3 * (n[3] - n[2])], [3 * (e[1] - e[0]), 3 * (e[2] - e[1]), 3 * (e[3] - e[2])], t), "cubicDerivative"), Y0 = _((n, e, t) => {
|
|
522
|
+
}, "angleBetween"), j0 = [[], [], [-0.5773502691896257, 0.5773502691896258], [0, -0.7745966692414833, 0.7745966692414833], [-0.33998104358485626, 0.33998104358485626, -0.8611363115940526, 0.8611363115940526], [0, -0.5384693101056831, 0.5384693101056831, -0.906179845938664, 0.906179845938664], [0.6612093864662645, -0.6612093864662645, -0.2386191860831969, 0.2386191860831969, -0.932469514203152, 0.932469514203152], [0, 0.4058451513773972, -0.4058451513773972, -0.7415311855993945, 0.7415311855993945, -0.9491079123427585, 0.9491079123427585], [-0.1834346424956498, 0.1834346424956498, -0.525532409916329, 0.525532409916329, -0.7966664774136267, 0.7966664774136267, -0.9602898564975363, 0.9602898564975363], [0, -0.8360311073266358, 0.8360311073266358, -0.9681602395076261, 0.9681602395076261, -0.3242534234038089, 0.3242534234038089, -0.6133714327005904, 0.6133714327005904], [-0.14887433898163122, 0.14887433898163122, -0.4333953941292472, 0.4333953941292472, -0.6794095682990244, 0.6794095682990244, -0.8650633666889845, 0.8650633666889845, -0.9739065285171717, 0.9739065285171717], [0, -0.26954315595234496, 0.26954315595234496, -0.5190961292068118, 0.5190961292068118, -0.7301520055740494, 0.7301520055740494, -0.8870625997680953, 0.8870625997680953, -0.978228658146057, 0.978228658146057], [-0.1252334085114689, 0.1252334085114689, -0.3678314989981802, 0.3678314989981802, -0.5873179542866175, 0.5873179542866175, -0.7699026741943047, 0.7699026741943047, -0.9041172563704749, 0.9041172563704749, -0.9815606342467192, 0.9815606342467192], [0, -0.2304583159551348, 0.2304583159551348, -0.44849275103644687, 0.44849275103644687, -0.6423493394403402, 0.6423493394403402, -0.8015780907333099, 0.8015780907333099, -0.9175983992229779, 0.9175983992229779, -0.9841830547185881, 0.9841830547185881], [-0.10805494870734367, 0.10805494870734367, -0.31911236892788974, 0.31911236892788974, -0.5152486363581541, 0.5152486363581541, -0.6872929048116855, 0.6872929048116855, -0.827201315069765, 0.827201315069765, -0.9284348836635735, 0.9284348836635735, -0.9862838086968123, 0.9862838086968123], [0, -0.20119409399743451, 0.20119409399743451, -0.3941513470775634, 0.3941513470775634, -0.5709721726085388, 0.5709721726085388, -0.7244177313601701, 0.7244177313601701, -0.8482065834104272, 0.8482065834104272, -0.937273392400706, 0.937273392400706, -0.9879925180204854, 0.9879925180204854], [-0.09501250983763744, 0.09501250983763744, -0.2816035507792589, 0.2816035507792589, -0.45801677765722737, 0.45801677765722737, -0.6178762444026438, 0.6178762444026438, -0.755404408355003, 0.755404408355003, -0.8656312023878318, 0.8656312023878318, -0.9445750230732326, 0.9445750230732326, -0.9894009349916499, 0.9894009349916499], [0, -0.17848418149584785, 0.17848418149584785, -0.3512317634538763, 0.3512317634538763, -0.5126905370864769, 0.5126905370864769, -0.6576711592166907, 0.6576711592166907, -0.7815140038968014, 0.7815140038968014, -0.8802391537269859, 0.8802391537269859, -0.9506755217687678, 0.9506755217687678, -0.9905754753144174, 0.9905754753144174], [-0.0847750130417353, 0.0847750130417353, -0.2518862256915055, 0.2518862256915055, -0.41175116146284263, 0.41175116146284263, -0.5597708310739475, 0.5597708310739475, -0.6916870430603532, 0.6916870430603532, -0.8037049589725231, 0.8037049589725231, -0.8926024664975557, 0.8926024664975557, -0.9558239495713977, 0.9558239495713977, -0.9915651684209309, 0.9915651684209309], [0, -0.16035864564022537, 0.16035864564022537, -0.31656409996362983, 0.31656409996362983, -0.46457074137596094, 0.46457074137596094, -0.600545304661681, 0.600545304661681, -0.7209661773352294, 0.7209661773352294, -0.8227146565371428, 0.8227146565371428, -0.9031559036148179, 0.9031559036148179, -0.96020815213483, 0.96020815213483, -0.9924068438435844, 0.9924068438435844], [-0.07652652113349734, 0.07652652113349734, -0.22778585114164507, 0.22778585114164507, -0.37370608871541955, 0.37370608871541955, -0.5108670019508271, 0.5108670019508271, -0.636053680726515, 0.636053680726515, -0.7463319064601508, 0.7463319064601508, -0.8391169718222188, 0.8391169718222188, -0.912234428251326, 0.912234428251326, -0.9639719272779138, 0.9639719272779138, -0.9931285991850949, 0.9931285991850949], [0, -0.1455618541608951, 0.1455618541608951, -0.2880213168024011, 0.2880213168024011, -0.4243421202074388, 0.4243421202074388, -0.5516188358872198, 0.5516188358872198, -0.6671388041974123, 0.6671388041974123, -0.7684399634756779, 0.7684399634756779, -0.8533633645833173, 0.8533633645833173, -0.9200993341504008, 0.9200993341504008, -0.9672268385663063, 0.9672268385663063, -0.9937521706203895, 0.9937521706203895], [-0.06973927331972223, 0.06973927331972223, -0.20786042668822127, 0.20786042668822127, -0.34193582089208424, 0.34193582089208424, -0.469355837986757, 0.469355837986757, -0.5876404035069116, 0.5876404035069116, -0.6944872631866827, 0.6944872631866827, -0.7878168059792081, 0.7878168059792081, -0.8658125777203002, 0.8658125777203002, -0.926956772187174, 0.926956772187174, -0.9700604978354287, 0.9700604978354287, -0.9942945854823992, 0.9942945854823992], [0, -0.1332568242984661, 0.1332568242984661, -0.26413568097034495, 0.26413568097034495, -0.3903010380302908, 0.3903010380302908, -0.5095014778460075, 0.5095014778460075, -0.6196098757636461, 0.6196098757636461, -0.7186613631319502, 0.7186613631319502, -0.8048884016188399, 0.8048884016188399, -0.8767523582704416, 0.8767523582704416, -0.9329710868260161, 0.9329710868260161, -0.9725424712181152, 0.9725424712181152, -0.9947693349975522, 0.9947693349975522], [-0.06405689286260563, 0.06405689286260563, -0.1911188674736163, 0.1911188674736163, -0.3150426796961634, 0.3150426796961634, -0.4337935076260451, 0.4337935076260451, -0.5454214713888396, 0.5454214713888396, -0.6480936519369755, 0.6480936519369755, -0.7401241915785544, 0.7401241915785544, -0.820001985973903, 0.820001985973903, -0.8864155270044011, 0.8864155270044011, -0.9382745520027328, 0.9382745520027328, -0.9747285559713095, 0.9747285559713095, -0.9951872199970213, 0.9951872199970213]], V0 = [[], [], [1, 1], [0.8888888888888888, 0.5555555555555556, 0.5555555555555556], [0.6521451548625461, 0.6521451548625461, 0.34785484513745385, 0.34785484513745385], [0.5688888888888889, 0.47862867049936647, 0.47862867049936647, 0.23692688505618908, 0.23692688505618908], [0.3607615730481386, 0.3607615730481386, 0.46791393457269104, 0.46791393457269104, 0.17132449237917036, 0.17132449237917036], [0.4179591836734694, 0.3818300505051189, 0.3818300505051189, 0.27970539148927664, 0.27970539148927664, 0.1294849661688697, 0.1294849661688697], [0.362683783378362, 0.362683783378362, 0.31370664587788727, 0.31370664587788727, 0.22238103445337448, 0.22238103445337448, 0.10122853629037626, 0.10122853629037626], [0.3302393550012598, 0.1806481606948574, 0.1806481606948574, 0.08127438836157441, 0.08127438836157441, 0.31234707704000286, 0.31234707704000286, 0.26061069640293544, 0.26061069640293544], [0.29552422471475287, 0.29552422471475287, 0.26926671930999635, 0.26926671930999635, 0.21908636251598204, 0.21908636251598204, 0.1494513491505806, 0.1494513491505806, 0.06667134430868814, 0.06667134430868814], [0.2729250867779006, 0.26280454451024665, 0.26280454451024665, 0.23319376459199048, 0.23319376459199048, 0.18629021092773426, 0.18629021092773426, 0.1255803694649046, 0.1255803694649046, 0.05566856711617366, 0.05566856711617366], [0.24914704581340277, 0.24914704581340277, 0.2334925365383548, 0.2334925365383548, 0.20316742672306592, 0.20316742672306592, 0.16007832854334622, 0.16007832854334622, 0.10693932599531843, 0.10693932599531843, 0.04717533638651183, 0.04717533638651183], [0.2325515532308739, 0.22628318026289723, 0.22628318026289723, 0.2078160475368885, 0.2078160475368885, 0.17814598076194574, 0.17814598076194574, 0.13887351021978725, 0.13887351021978725, 0.09212149983772845, 0.09212149983772845, 0.04048400476531588, 0.04048400476531588], [0.2152638534631578, 0.2152638534631578, 0.2051984637212956, 0.2051984637212956, 0.18553839747793782, 0.18553839747793782, 0.15720316715819355, 0.15720316715819355, 0.12151857068790319, 0.12151857068790319, 0.08015808715976021, 0.08015808715976021, 0.03511946033175186, 0.03511946033175186], [0.2025782419255613, 0.19843148532711158, 0.19843148532711158, 0.1861610000155622, 0.1861610000155622, 0.16626920581699392, 0.16626920581699392, 0.13957067792615432, 0.13957067792615432, 0.10715922046717194, 0.10715922046717194, 0.07036604748810812, 0.07036604748810812, 0.03075324199611727, 0.03075324199611727], [0.1894506104550685, 0.1894506104550685, 0.18260341504492358, 0.18260341504492358, 0.16915651939500254, 0.16915651939500254, 0.14959598881657674, 0.14959598881657674, 0.12462897125553388, 0.12462897125553388, 0.09515851168249279, 0.09515851168249279, 0.062253523938647894, 0.062253523938647894, 0.027152459411754096, 0.027152459411754096], [0.17944647035620653, 0.17656270536699264, 0.17656270536699264, 0.16800410215645004, 0.16800410215645004, 0.15404576107681028, 0.15404576107681028, 0.13513636846852548, 0.13513636846852548, 0.11188384719340397, 0.11188384719340397, 0.08503614831717918, 0.08503614831717918, 0.0554595293739872, 0.0554595293739872, 0.02414830286854793, 0.02414830286854793], [0.1691423829631436, 0.1691423829631436, 0.16427648374583273, 0.16427648374583273, 0.15468467512626524, 0.15468467512626524, 0.14064291467065065, 0.14064291467065065, 0.12255520671147846, 0.12255520671147846, 0.10094204410628717, 0.10094204410628717, 0.07642573025488905, 0.07642573025488905, 0.0497145488949698, 0.0497145488949698, 0.02161601352648331, 0.02161601352648331], [0.1610544498487837, 0.15896884339395434, 0.15896884339395434, 0.15276604206585967, 0.15276604206585967, 0.1426067021736066, 0.1426067021736066, 0.12875396253933621, 0.12875396253933621, 0.11156664554733399, 0.11156664554733399, 0.09149002162245, 0.09149002162245, 0.06904454273764123, 0.06904454273764123, 0.0448142267656996, 0.0448142267656996, 0.019461788229726478, 0.019461788229726478], [0.15275338713072584, 0.15275338713072584, 0.14917298647260374, 0.14917298647260374, 0.14209610931838204, 0.14209610931838204, 0.13168863844917664, 0.13168863844917664, 0.11819453196151841, 0.11819453196151841, 0.10193011981724044, 0.10193011981724044, 0.08327674157670475, 0.08327674157670475, 0.06267204833410907, 0.06267204833410907, 0.04060142980038694, 0.04060142980038694, 0.017614007139152118, 0.017614007139152118], [0.14608113364969041, 0.14452440398997005, 0.14452440398997005, 0.13988739479107315, 0.13988739479107315, 0.13226893863333747, 0.13226893863333747, 0.12183141605372853, 0.12183141605372853, 0.10879729916714838, 0.10879729916714838, 0.09344442345603386, 0.09344442345603386, 0.0761001136283793, 0.0761001136283793, 0.057134425426857205, 0.057134425426857205, 0.036953789770852494, 0.036953789770852494, 0.016017228257774335, 0.016017228257774335], [0.13925187285563198, 0.13925187285563198, 0.13654149834601517, 0.13654149834601517, 0.13117350478706238, 0.13117350478706238, 0.12325237681051242, 0.12325237681051242, 0.11293229608053922, 0.11293229608053922, 0.10041414444288096, 0.10041414444288096, 0.08594160621706773, 0.08594160621706773, 0.06979646842452049, 0.06979646842452049, 0.052293335152683286, 0.052293335152683286, 0.03377490158481415, 0.03377490158481415, 0.0146279952982722, 0.0146279952982722], [0.13365457218610619, 0.1324620394046966, 0.1324620394046966, 0.12890572218808216, 0.12890572218808216, 0.12304908430672953, 0.12304908430672953, 0.11499664022241136, 0.11499664022241136, 0.10489209146454141, 0.10489209146454141, 0.09291576606003515, 0.09291576606003515, 0.07928141177671895, 0.07928141177671895, 0.06423242140852585, 0.06423242140852585, 0.04803767173108467, 0.04803767173108467, 0.030988005856979445, 0.030988005856979445, 0.013411859487141771, 0.013411859487141771], [0.12793819534675216, 0.12793819534675216, 0.1258374563468283, 0.1258374563468283, 0.12167047292780339, 0.12167047292780339, 0.1155056680537256, 0.1155056680537256, 0.10744427011596563, 0.10744427011596563, 0.09761865210411388, 0.09761865210411388, 0.08619016153195327, 0.08619016153195327, 0.0733464814110803, 0.0733464814110803, 0.05929858491543678, 0.05929858491543678, 0.04427743881741981, 0.04427743881741981, 0.028531388628933663, 0.028531388628933663, 0.0123412297999872, 0.0123412297999872]], H0 = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]], U0 = _((n, e, t) => ({ x: (1 - t) * (1 - t) * (1 - t) * n[0] + 3 * (1 - t) * (1 - t) * t * n[1] + 3 * (1 - t) * t * t * n[2] + t * t * t * n[3], y: (1 - t) * (1 - t) * (1 - t) * e[0] + 3 * (1 - t) * (1 - t) * t * e[1] + 3 * (1 - t) * t * t * e[2] + t * t * t * e[3] }), "cubicPoint"), $0 = _((n, e, t) => n0([3 * (n[1] - n[0]), 3 * (n[2] - n[1]), 3 * (n[3] - n[2])], [3 * (e[1] - e[0]), 3 * (e[2] - e[1]), 3 * (e[3] - e[2])], t), "cubicDerivative"), Y0 = _((n, e, t) => {
|
|
522
523
|
let o, i;
|
|
523
524
|
const a = t / 2;
|
|
524
525
|
o = 0;
|
|
525
|
-
for (let s = 0; s < 20; s++) i = a *
|
|
526
|
+
for (let s = 0; s < 20; s++) i = a * j0[20][s] + a, o += V0[20][s] * i0(n, e, i);
|
|
526
527
|
return a * o;
|
|
527
|
-
}, "getCubicArcLength"),
|
|
528
|
+
}, "getCubicArcLength"), n0 = _((n, e, t) => ({ x: (1 - t) * (1 - t) * n[0] + 2 * (1 - t) * t * n[1] + t * t * n[2], y: (1 - t) * (1 - t) * e[0] + 2 * (1 - t) * t * e[1] + t * t * e[2] }), "quadraticPoint"), W0 = _((n, e, t) => {
|
|
528
529
|
t === void 0 && (t = 1);
|
|
529
530
|
const o = n[0] - 2 * n[1] + n[2], i = e[0] - 2 * e[1] + e[2], a = 2 * n[1] - 2 * n[0], s = 2 * e[1] - 2 * e[0], r = 4 * (o * o + i * i), l = 4 * (o * a + i * s), c = a * a + s * s;
|
|
530
531
|
if (r === 0) return t * Math.sqrt(Math.pow(n[2] - n[0], 2) + Math.pow(e[2] - e[0], 2));
|
|
531
|
-
const u = l / (2 * r),
|
|
532
|
-
return Math.sqrt(r) / 2 * (
|
|
533
|
-
}, "getQuadraticArcLength"),
|
|
534
|
-
function
|
|
532
|
+
const u = l / (2 * r), p = t + u, h = c / r - u * u, f = p * p + h > 0 ? Math.sqrt(p * p + h) : 0, v = u * u + h > 0 ? Math.sqrt(u * u + h) : 0, y = u + Math.sqrt(u * u + h) !== 0 && (p + f) / (u + v) !== 0 ? h * Math.log(Math.abs((p + f) / (u + v))) : 0;
|
|
533
|
+
return Math.sqrt(r) / 2 * (p * f - u * v + y);
|
|
534
|
+
}, "getQuadraticArcLength"), G0 = _((n, e, t) => ({ x: 2 * (1 - t) * (n[1] - n[0]) + 2 * t * (n[2] - n[1]), y: 2 * (1 - t) * (e[1] - e[0]) + 2 * t * (e[2] - e[1]) }), "quadraticDerivative");
|
|
535
|
+
function i0(n, e, t) {
|
|
535
536
|
const o = te(1, t, n), i = te(1, t, e), a = o * o + i * i;
|
|
536
537
|
return Math.sqrt(a);
|
|
537
538
|
}
|
|
538
|
-
_(
|
|
539
|
+
_(i0, "BFunc");
|
|
539
540
|
var te = _((n, e, t) => {
|
|
540
541
|
const o = t.length - 1;
|
|
541
542
|
let i, a;
|
|
542
543
|
if (o === 0) return 0;
|
|
543
544
|
if (n === 0) {
|
|
544
545
|
a = 0;
|
|
545
|
-
for (let s = 0; s <= o; s++) a +=
|
|
546
|
+
for (let s = 0; s <= o; s++) a += H0[o][s] * Math.pow(1 - e, o - s) * Math.pow(e, s) * t[s];
|
|
546
547
|
return a;
|
|
547
548
|
}
|
|
548
549
|
i = new Array(o);
|
|
549
550
|
for (let s = 0; s < o; s++) i[s] = o * (t[s + 1] - t[s]);
|
|
550
551
|
return te(n - 1, e, i);
|
|
551
|
-
}, "getDerivative"),
|
|
552
|
+
}, "getDerivative"), Vt = _((n, e, t) => {
|
|
552
553
|
let o = 1, i = n / e, a = (n - t(i)) / e, s = 0;
|
|
553
554
|
for (; o > 1e-3; ) {
|
|
554
555
|
const r = t(i + a), l = Math.abs(n - r) / e;
|
|
@@ -572,16 +573,16 @@ var te = _((n, e, t) => {
|
|
|
572
573
|
I(this, "getDerivative");
|
|
573
574
|
I(this, "getTotalLength", _(() => this.length, "getTotalLength"));
|
|
574
575
|
I(this, "getPointAtLength", _((e) => {
|
|
575
|
-
const t = [this.a.x, this.b.x, this.c.x, this.d.x], o = [this.a.y, this.b.y, this.c.y, this.d.y], i =
|
|
576
|
+
const t = [this.a.x, this.b.x, this.c.x, this.d.x], o = [this.a.y, this.b.y, this.c.y, this.d.y], i = Vt(e, this.length, (a) => this.getArcLength(t, o, a));
|
|
576
577
|
return this.getPoint(t, o, i);
|
|
577
578
|
}, "getPointAtLength"));
|
|
578
579
|
I(this, "getTangentAtLength", _((e) => {
|
|
579
|
-
const t = [this.a.x, this.b.x, this.c.x, this.d.x], o = [this.a.y, this.b.y, this.c.y, this.d.y], i =
|
|
580
|
+
const t = [this.a.x, this.b.x, this.c.x, this.d.x], o = [this.a.y, this.b.y, this.c.y, this.d.y], i = Vt(e, this.length, (l) => this.getArcLength(t, o, l)), a = this.getDerivative(t, o, i), s = Math.sqrt(a.x * a.x + a.y * a.y);
|
|
580
581
|
let r;
|
|
581
582
|
return r = s > 0 ? { x: a.x / s, y: a.y / s } : { x: 0, y: 0 }, r;
|
|
582
583
|
}, "getTangentAtLength"));
|
|
583
584
|
I(this, "getPropertiesAtLength", _((e) => {
|
|
584
|
-
const t = [this.a.x, this.b.x, this.c.x, this.d.x], o = [this.a.y, this.b.y, this.c.y, this.d.y], i =
|
|
585
|
+
const t = [this.a.x, this.b.x, this.c.x, this.d.x], o = [this.a.y, this.b.y, this.c.y, this.d.y], i = Vt(e, this.length, (c) => this.getArcLength(t, o, c)), a = this.getDerivative(t, o, i), s = Math.sqrt(a.x * a.x + a.y * a.y);
|
|
585
586
|
let r;
|
|
586
587
|
r = s > 0 ? { x: a.x / s, y: a.y / s } : { x: 0, y: 0 };
|
|
587
588
|
const l = this.getPoint(t, o, i);
|
|
@@ -589,9 +590,9 @@ var te = _((n, e, t) => {
|
|
|
589
590
|
}, "getPropertiesAtLength"));
|
|
590
591
|
I(this, "getC", _(() => this.c, "getC"));
|
|
591
592
|
I(this, "getD", _(() => this.d, "getD"));
|
|
592
|
-
this.a = { x: e, y: t }, this.b = { x: o, y: i }, this.c = { x: a, y: s }, r !== void 0 && l !== void 0 ? (this.getArcLength = Y0, this.getPoint =
|
|
593
|
+
this.a = { x: e, y: t }, this.b = { x: o, y: i }, this.c = { x: a, y: s }, r !== void 0 && l !== void 0 ? (this.getArcLength = Y0, this.getPoint = U0, this.getDerivative = $0, this.d = { x: r, y: l }) : (this.getArcLength = W0, this.getPoint = n0, this.getDerivative = G0, this.d = { x: 0, y: 0 }), this.length = this.getArcLength([this.a.x, this.b.x, this.c.x, this.d.x], [this.a.y, this.b.y, this.c.y, this.d.y], 1);
|
|
593
594
|
}
|
|
594
|
-
}, _(Tt, "Bezier"), Tt), Lt,
|
|
595
|
+
}, _(Tt, "Bezier"), Tt), Lt, X0 = (Lt = class {
|
|
595
596
|
constructor(e) {
|
|
596
597
|
I(this, "length", 0);
|
|
597
598
|
I(this, "partial_lengths", []);
|
|
@@ -631,7 +632,7 @@ var te = _((n, e, t) => {
|
|
|
631
632
|
}
|
|
632
633
|
return e;
|
|
633
634
|
}, "getParts"));
|
|
634
|
-
const t = Array.isArray(e) ? e :
|
|
635
|
+
const t = Array.isArray(e) ? e : R0(e);
|
|
635
636
|
let o, i = [0, 0], a = [0, 0], s = [0, 0];
|
|
636
637
|
for (let r = 0; r < t.length; r++) {
|
|
637
638
|
if (t[r][0] === "M") i = [t[r][1], t[r][2]], s = [i[0], i[1]], this.functions.push(null), r === 0 && (this.initial_point = { x: t[r][1], y: t[r][2] });
|
|
@@ -689,10 +690,10 @@ var te = _((n, e, t) => {
|
|
|
689
690
|
}
|
|
690
691
|
a = [2 * i[0] - a[0], 2 * i[1] - a[1]], i = [t[r][1] + i[0], t[r][2] + i[1]];
|
|
691
692
|
} else if (t[r][0] === "A") {
|
|
692
|
-
const l = new
|
|
693
|
+
const l = new Ae(i[0], i[1], t[r][1], t[r][2], t[r][3], t[r][4] === 1, t[r][5] === 1, t[r][6], t[r][7]);
|
|
693
694
|
this.length += l.getTotalLength(), i = [t[r][6], t[r][7]], this.functions.push(l);
|
|
694
695
|
} else if (t[r][0] === "a") {
|
|
695
|
-
const l = new
|
|
696
|
+
const l = new Ae(i[0], i[1], t[r][1], t[r][2], t[r][3], t[r][4] === 1, t[r][5] === 1, i[0] + t[r][6], i[1] + t[r][7]);
|
|
696
697
|
this.length += l.getTotalLength(), i = [i[0] + t[r][6], i[1] + t[r][7]], this.functions.push(l);
|
|
697
698
|
}
|
|
698
699
|
this.partial_lengths.push(this.length);
|
|
@@ -706,20 +707,20 @@ var te = _((n, e, t) => {
|
|
|
706
707
|
I(this, "getTangentAtLength", _((e) => this.inst.getTangentAtLength(e), "getTangentAtLength"));
|
|
707
708
|
I(this, "getPropertiesAtLength", _((e) => this.inst.getPropertiesAtLength(e), "getPropertiesAtLength"));
|
|
708
709
|
I(this, "getParts", _(() => this.inst.getParts(), "getParts"));
|
|
709
|
-
if (this.inst = new
|
|
710
|
+
if (this.inst = new X0(e), !(this instanceof ee)) return new ee(e);
|
|
710
711
|
}
|
|
711
712
|
}, _(Mt, "_svgPathProperties"), Mt);
|
|
712
|
-
function
|
|
713
|
+
function K0(n = G.BLACK) {
|
|
713
714
|
return { ...n, alpha: 0 };
|
|
714
715
|
}
|
|
715
|
-
function
|
|
716
|
+
function zi(n = null) {
|
|
716
717
|
const { path: e, height: t = 100, width: o = 100, viewboxHeight: i, viewboxWidth: a, ...s } = n ?? {}, r = e ?? "M 0 0 L 100 100", c = new ee(r).getTotalLength();
|
|
717
718
|
return nt({
|
|
718
|
-
objectType:
|
|
719
|
+
objectType: j.PATH,
|
|
719
720
|
anchor: et,
|
|
720
721
|
strokeColor: J,
|
|
721
722
|
drawn: 1,
|
|
722
|
-
fillColor:
|
|
723
|
+
fillColor: K0(),
|
|
723
724
|
isRounded: !1,
|
|
724
725
|
height: t,
|
|
725
726
|
path: r,
|
|
@@ -733,9 +734,9 @@ function _i(n = null) {
|
|
|
733
734
|
...s
|
|
734
735
|
});
|
|
735
736
|
}
|
|
736
|
-
function
|
|
737
|
+
function ji(n = null) {
|
|
737
738
|
return nt({
|
|
738
|
-
objectType:
|
|
739
|
+
objectType: j.POLYGON,
|
|
739
740
|
strokeColor: J,
|
|
740
741
|
strokeWidth: 0,
|
|
741
742
|
drawn: 1,
|
|
@@ -748,9 +749,9 @@ function Ni(n = null) {
|
|
|
748
749
|
...n
|
|
749
750
|
});
|
|
750
751
|
}
|
|
751
|
-
function
|
|
752
|
+
function Vi(n = null) {
|
|
752
753
|
return nt({
|
|
753
|
-
objectType:
|
|
754
|
+
objectType: j.RECTANGLE,
|
|
754
755
|
anchor: et,
|
|
755
756
|
strokeColor: J,
|
|
756
757
|
strokeWidth: 0,
|
|
@@ -764,9 +765,9 @@ function Ri(n = null) {
|
|
|
764
765
|
...n
|
|
765
766
|
});
|
|
766
767
|
}
|
|
767
|
-
function
|
|
768
|
+
function Hi(n = null) {
|
|
768
769
|
return nt({
|
|
769
|
-
objectType:
|
|
770
|
+
objectType: j.SPOTLIGHT,
|
|
770
771
|
anchor: et,
|
|
771
772
|
color: G(0, 0, 0, 0.8),
|
|
772
773
|
height: 200,
|
|
@@ -777,9 +778,9 @@ function Fi(n = null) {
|
|
|
777
778
|
...n
|
|
778
779
|
});
|
|
779
780
|
}
|
|
780
|
-
function
|
|
781
|
+
function Ui(n = null) {
|
|
781
782
|
return nt({
|
|
782
|
-
objectType:
|
|
783
|
+
objectType: j.SVG,
|
|
783
784
|
anchor: et,
|
|
784
785
|
height: 100,
|
|
785
786
|
svg: "",
|
|
@@ -789,11 +790,11 @@ function Bi(n = null) {
|
|
|
789
790
|
...n
|
|
790
791
|
});
|
|
791
792
|
}
|
|
792
|
-
const
|
|
793
|
+
const Z0 = {
|
|
793
794
|
NORMAL: "normal",
|
|
794
795
|
ITALIC: "italic",
|
|
795
796
|
OBLIQUE: "oblique"
|
|
796
|
-
},
|
|
797
|
+
}, J0 = Z0.NORMAL, Q0 = {
|
|
797
798
|
THIN: 100,
|
|
798
799
|
EXTRA_LIGHT: 200,
|
|
799
800
|
LIGHT: 300,
|
|
@@ -803,47 +804,47 @@ const K0 = {
|
|
|
803
804
|
BOLD: 700,
|
|
804
805
|
EXTRA_BOLD: 800,
|
|
805
806
|
BLACK: 900
|
|
806
|
-
},
|
|
807
|
+
}, tn = Q0.NORMAL, en = {
|
|
807
808
|
color: J,
|
|
808
809
|
fontFamily: "sans-serif",
|
|
809
810
|
fontSize: 100,
|
|
810
|
-
fontStyle:
|
|
811
|
-
fontWeight:
|
|
811
|
+
fontStyle: J0,
|
|
812
|
+
fontWeight: tn,
|
|
812
813
|
ligatures: !1,
|
|
813
814
|
subscript: !1,
|
|
814
815
|
superscript: !1
|
|
815
816
|
};
|
|
816
|
-
function
|
|
817
|
+
function ue(n) {
|
|
817
818
|
return typeof n == "string" ? [[{ text: n }]] : n.map((e) => e.map((t) => typeof t == "string" ? { text: t } : t));
|
|
818
819
|
}
|
|
819
|
-
function
|
|
820
|
-
return
|
|
820
|
+
function nn(n) {
|
|
821
|
+
return ue(n).reduce(
|
|
821
822
|
(t, o) => t + o.reduce((i, a) => i + a.text.length, 0),
|
|
822
823
|
0
|
|
823
824
|
);
|
|
824
825
|
}
|
|
825
|
-
function
|
|
826
|
+
function rn(n = "", e = null) {
|
|
826
827
|
return nt({
|
|
827
|
-
objectType:
|
|
828
|
-
alignment:
|
|
828
|
+
objectType: j.TEXT,
|
|
829
|
+
alignment: I0,
|
|
829
830
|
anchor: et,
|
|
830
831
|
length: null,
|
|
831
832
|
lineSpacing: 1,
|
|
832
833
|
text: n,
|
|
833
834
|
x: 0,
|
|
834
835
|
y: 0,
|
|
835
|
-
...
|
|
836
|
+
...en,
|
|
836
837
|
...e
|
|
837
838
|
});
|
|
838
839
|
}
|
|
839
|
-
|
|
840
|
+
rn.writeOn = (n, e = {}) => ce(
|
|
840
841
|
n,
|
|
841
842
|
{
|
|
842
|
-
length:
|
|
843
|
+
length: nn(n.text)
|
|
843
844
|
},
|
|
844
845
|
e
|
|
845
846
|
);
|
|
846
|
-
const
|
|
847
|
+
const fe = "presenter.navigator.state", xt = {
|
|
847
848
|
open: !1,
|
|
848
849
|
visibility: {
|
|
849
850
|
slides: !0,
|
|
@@ -852,28 +853,28 @@ const ue = "presenter.navigator.state", xt = {
|
|
|
852
853
|
notes: !1
|
|
853
854
|
}
|
|
854
855
|
};
|
|
855
|
-
function
|
|
856
|
+
function de() {
|
|
856
857
|
return typeof document > "u" ? !1 : Array.from(document.scripts).some((n) => n.src.includes("/@vite/client"));
|
|
857
858
|
}
|
|
858
|
-
function rn() {
|
|
859
|
-
return fe() ? de().open : !1;
|
|
860
|
-
}
|
|
861
859
|
function on() {
|
|
862
|
-
|
|
863
|
-
|
|
860
|
+
return de() ? pe().open : !1;
|
|
861
|
+
}
|
|
862
|
+
function sn() {
|
|
863
|
+
o0({
|
|
864
|
+
...pe(),
|
|
864
865
|
open: !0
|
|
865
866
|
});
|
|
866
867
|
}
|
|
867
|
-
function
|
|
868
|
+
function r0() {
|
|
868
869
|
var n;
|
|
869
|
-
(n = ge()) == null || n.removeItem(
|
|
870
|
+
(n = ge()) == null || n.removeItem(fe);
|
|
870
871
|
}
|
|
871
|
-
function
|
|
872
|
+
function pe() {
|
|
872
873
|
var n, e, t, o, i;
|
|
873
|
-
if (!
|
|
874
|
+
if (!de())
|
|
874
875
|
return xt;
|
|
875
876
|
try {
|
|
876
|
-
const a = (n = ge()) == null ? void 0 : n.getItem(
|
|
877
|
+
const a = (n = ge()) == null ? void 0 : n.getItem(fe);
|
|
877
878
|
if (a == null)
|
|
878
879
|
return xt;
|
|
879
880
|
const s = JSON.parse(a);
|
|
@@ -890,9 +891,9 @@ function de() {
|
|
|
890
891
|
return xt;
|
|
891
892
|
}
|
|
892
893
|
}
|
|
893
|
-
function
|
|
894
|
+
function o0(n) {
|
|
894
895
|
var e;
|
|
895
|
-
|
|
896
|
+
de() && ((e = ge()) == null || e.setItem(fe, JSON.stringify(n)));
|
|
896
897
|
}
|
|
897
898
|
function ge() {
|
|
898
899
|
try {
|
|
@@ -901,11 +902,12 @@ function ge() {
|
|
|
901
902
|
return null;
|
|
902
903
|
}
|
|
903
904
|
}
|
|
904
|
-
function
|
|
905
|
+
function an(n = null) {
|
|
905
906
|
return {
|
|
906
907
|
objects: [],
|
|
907
908
|
animations: [],
|
|
908
909
|
extras: [],
|
|
910
|
+
description: null,
|
|
909
911
|
isAllKey: !1,
|
|
910
912
|
isEndKey: !0,
|
|
911
913
|
isStartKey: !1,
|
|
@@ -915,17 +917,17 @@ function sn(n = null) {
|
|
|
915
917
|
...n
|
|
916
918
|
};
|
|
917
919
|
}
|
|
918
|
-
function
|
|
920
|
+
function s0(n) {
|
|
919
921
|
return n.altKey || n.ctrlKey || n.metaKey || n.shiftKey;
|
|
920
922
|
}
|
|
921
|
-
function
|
|
923
|
+
function Ce(n) {
|
|
922
924
|
var o, i;
|
|
923
925
|
if (n === null)
|
|
924
926
|
return !1;
|
|
925
927
|
const e = n, t = (o = e.tagName) == null ? void 0 : o.toLowerCase();
|
|
926
928
|
return t === "input" || t === "textarea" || t === "select" || t === "button" || e.isContentEditable ? !0 : (((i = e.closest) == null ? void 0 : i.call(e, "[contenteditable=''], [contenteditable='true']")) ?? null) !== null;
|
|
927
929
|
}
|
|
928
|
-
function
|
|
930
|
+
function ln(n) {
|
|
929
931
|
var o;
|
|
930
932
|
const { slides: e } = n, t = {
|
|
931
933
|
// First build of first slide
|
|
@@ -964,17 +966,17 @@ function Ht(n, e, t, o) {
|
|
|
964
966
|
else
|
|
965
967
|
n[e] = { slideIndex: t, buildIndex: o };
|
|
966
968
|
}
|
|
967
|
-
function
|
|
969
|
+
function Se(n, e) {
|
|
968
970
|
const t = n[e];
|
|
969
971
|
return t !== void 0 ? t : isNaN(Number(e)) ? null : { slideIndex: Number(e) - 1, buildIndex: 0 };
|
|
970
972
|
}
|
|
971
|
-
function
|
|
972
|
-
t.shortcuts =
|
|
973
|
+
function a0(n, e, t, { onNext: o, onPrevious: i, onRenderSlide: a, onShowNavigator: s }, { focusOnPointerDown: r = !1, keyEventTarget: l = e, signal: c } = {}) {
|
|
974
|
+
t.shortcuts = ln(n);
|
|
973
975
|
const u = c === void 0 ? void 0 : { signal: c };
|
|
974
976
|
r && (e.hasAttribute("tabindex") || (e.tabIndex = -1), e.addEventListener(
|
|
975
977
|
"pointerdown",
|
|
976
|
-
(
|
|
977
|
-
|
|
978
|
+
(p) => {
|
|
979
|
+
Ce(p.target) || e.focus({ preventScroll: !0 });
|
|
978
980
|
},
|
|
979
981
|
u
|
|
980
982
|
)), e.addEventListener(
|
|
@@ -985,9 +987,9 @@ function o0(n, e, t, { onNext: o, onPrevious: i, onRenderSlide: a, onShowNavigat
|
|
|
985
987
|
u
|
|
986
988
|
), l.addEventListener(
|
|
987
989
|
"keyup",
|
|
988
|
-
(
|
|
989
|
-
const h =
|
|
990
|
-
if (
|
|
990
|
+
(p) => {
|
|
991
|
+
const h = p;
|
|
992
|
+
if (Ce(h.target))
|
|
991
993
|
return;
|
|
992
994
|
if (h.code === "Escape") {
|
|
993
995
|
t.textCommand = null;
|
|
@@ -1001,9 +1003,9 @@ function o0(n, e, t, { onNext: o, onPrevious: i, onRenderSlide: a, onShowNavigat
|
|
|
1001
1003
|
i(h.shiftKey);
|
|
1002
1004
|
return;
|
|
1003
1005
|
}
|
|
1004
|
-
const f =
|
|
1006
|
+
const f = hn(h);
|
|
1005
1007
|
if (f !== null) {
|
|
1006
|
-
const v =
|
|
1008
|
+
const v = Se(
|
|
1007
1009
|
t.shortcuts,
|
|
1008
1010
|
f
|
|
1009
1011
|
);
|
|
@@ -1014,7 +1016,7 @@ function o0(n, e, t, { onNext: o, onPrevious: i, onRenderSlide: a, onShowNavigat
|
|
|
1014
1016
|
if (h.code === "Enter") {
|
|
1015
1017
|
const v = t.textCommand;
|
|
1016
1018
|
t.textCommand = null;
|
|
1017
|
-
const y =
|
|
1019
|
+
const y = Se(
|
|
1018
1020
|
t.shortcuts,
|
|
1019
1021
|
v
|
|
1020
1022
|
);
|
|
@@ -1027,7 +1029,7 @@ function o0(n, e, t, { onNext: o, onPrevious: i, onRenderSlide: a, onShowNavigat
|
|
|
1027
1029
|
t.textCommand = "";
|
|
1028
1030
|
return;
|
|
1029
1031
|
}
|
|
1030
|
-
if (h.key === "`" && !
|
|
1032
|
+
if (h.key === "`" && !s0(h)) {
|
|
1031
1033
|
s();
|
|
1032
1034
|
return;
|
|
1033
1035
|
}
|
|
@@ -1035,24 +1037,24 @@ function o0(n, e, t, { onNext: o, onPrevious: i, onRenderSlide: a, onShowNavigat
|
|
|
1035
1037
|
u
|
|
1036
1038
|
);
|
|
1037
1039
|
}
|
|
1038
|
-
function
|
|
1040
|
+
function hn(n) {
|
|
1039
1041
|
return !n.altKey || n.ctrlKey || n.metaKey || n.shiftKey ? null : n.code.startsWith("Key") && n.code.length === 4 ? n.code.slice(3).toLowerCase() : n.code.startsWith("Digit") && n.code.length === 6 ? n.code.slice(5) : n.code.startsWith("Numpad") && n.code.length === 7 ? n.code.slice(6) : null;
|
|
1040
1042
|
}
|
|
1041
|
-
function
|
|
1043
|
+
function cn(n, e) {
|
|
1042
1044
|
for (let t = Math.min(e, n.animations.length); t >= 0; t--) {
|
|
1043
|
-
const o =
|
|
1045
|
+
const o = un(n, t);
|
|
1044
1046
|
if (o !== null)
|
|
1045
1047
|
return o;
|
|
1046
1048
|
}
|
|
1047
1049
|
return null;
|
|
1048
1050
|
}
|
|
1049
|
-
function
|
|
1051
|
+
function un(n, e) {
|
|
1050
1052
|
if (e === 0)
|
|
1051
1053
|
return n.notes;
|
|
1052
1054
|
const t = n.animations[e - 1];
|
|
1053
|
-
return t === void 0 ? null :
|
|
1055
|
+
return t === void 0 ? null : fn(t);
|
|
1054
1056
|
}
|
|
1055
|
-
function
|
|
1057
|
+
function fn(n) {
|
|
1056
1058
|
if (!Array.isArray(n))
|
|
1057
1059
|
return n.notes;
|
|
1058
1060
|
const e = n.map(({ notes: t }) => t).filter((t) => t !== null);
|
|
@@ -1061,14 +1063,14 @@ function un(n) {
|
|
|
1061
1063
|
`) : null;
|
|
1062
1064
|
}
|
|
1063
1065
|
let N = null, Ft = null, wt = null;
|
|
1064
|
-
const
|
|
1065
|
-
let
|
|
1066
|
+
const Pe = "__presenterNavigatorInstanceId";
|
|
1067
|
+
let l0 = {
|
|
1066
1068
|
width: 700,
|
|
1067
1069
|
height: 680,
|
|
1068
1070
|
left: 20,
|
|
1069
1071
|
top: 50
|
|
1070
1072
|
};
|
|
1071
|
-
function
|
|
1073
|
+
function dn({
|
|
1072
1074
|
presentation: n,
|
|
1073
1075
|
shortcutState: e,
|
|
1074
1076
|
onNavigateToSlide: t,
|
|
@@ -1079,18 +1081,18 @@ function fn({
|
|
|
1079
1081
|
}) {
|
|
1080
1082
|
if (N !== null && !N.closed && (Bt(N), !s))
|
|
1081
1083
|
return N.focus(), Ft;
|
|
1082
|
-
if ((N === null || N.closed) && (N = window.open("", "Navigator",
|
|
1084
|
+
if ((N === null || N.closed) && (N = window.open("", "Navigator", vn())), N === null)
|
|
1083
1085
|
return console.error("Failed to open navigator window."), null;
|
|
1084
1086
|
wt == null || wt();
|
|
1085
|
-
const r =
|
|
1087
|
+
const r = wn(N), l = new AbortController();
|
|
1086
1088
|
wt = () => l.abort();
|
|
1087
|
-
const c =
|
|
1089
|
+
const c = pn(
|
|
1088
1090
|
n,
|
|
1089
1091
|
t,
|
|
1090
1092
|
i,
|
|
1091
1093
|
r.isActive
|
|
1092
1094
|
);
|
|
1093
|
-
return Ft = c,
|
|
1095
|
+
return Ft = c, sn(), N.document.title = n.title, N.document.body.replaceChildren(c.element), a0(
|
|
1094
1096
|
n,
|
|
1095
1097
|
c.element,
|
|
1096
1098
|
e,
|
|
@@ -1101,8 +1103,8 @@ function fn({
|
|
|
1101
1103
|
onPrevious: (u) => {
|
|
1102
1104
|
r.isActive() && a(u);
|
|
1103
1105
|
},
|
|
1104
|
-
onRenderSlide: (u,
|
|
1105
|
-
r.isActive() && o(u,
|
|
1106
|
+
onRenderSlide: (u, p) => {
|
|
1107
|
+
r.isActive() && o(u, p);
|
|
1106
1108
|
},
|
|
1107
1109
|
onShowNavigator: () => {
|
|
1108
1110
|
r.isActive() && ne();
|
|
@@ -1117,7 +1119,7 @@ function fn({
|
|
|
1117
1119
|
}), N.addEventListener(
|
|
1118
1120
|
"beforeunload",
|
|
1119
1121
|
() => {
|
|
1120
|
-
Bt(N),
|
|
1122
|
+
Bt(N), r0();
|
|
1121
1123
|
},
|
|
1122
1124
|
{
|
|
1123
1125
|
signal: l.signal
|
|
@@ -1125,14 +1127,14 @@ function fn({
|
|
|
1125
1127
|
), N.addEventListener(
|
|
1126
1128
|
"keyup",
|
|
1127
1129
|
(u) => {
|
|
1128
|
-
r.isActive() && (u.key === "Escape" || u.key === "`" && !
|
|
1130
|
+
r.isActive() && (u.key === "Escape" || u.key === "`" && !s0(u)) && ne();
|
|
1129
1131
|
},
|
|
1130
1132
|
{
|
|
1131
1133
|
signal: l.signal
|
|
1132
1134
|
}
|
|
1133
1135
|
), Ft;
|
|
1134
1136
|
}
|
|
1135
|
-
function
|
|
1137
|
+
function pn(n, e, t, o = () => !0) {
|
|
1136
1138
|
const i = (N == null ? void 0 : N.document) ?? document, a = i.createElement("div");
|
|
1137
1139
|
a.style.boxSizing = "border-box", a.style.display = "grid", a.style.gridTemplateColumns = "260px 1fr", a.style.gap = "18px", a.style.height = "100vh", a.style.overflow = "hidden", a.style.padding = "18px", a.style.fontFamily = '-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif', a.style.backgroundColor = "#f5f6f8", a.style.color = "#1f2937", i.body.style.margin = "0", i.body.style.overflow = "hidden";
|
|
1138
1140
|
const s = i.createElement("div");
|
|
@@ -1143,12 +1145,12 @@ function dn(n, e, t, o = () => !0) {
|
|
|
1143
1145
|
l.style.display = "flex", l.style.gap = "14px", l.style.alignItems = "center", l.style.flexWrap = "wrap", l.style.fontSize = "13px", l.style.color = "#4b5563";
|
|
1144
1146
|
const c = i.createElement("div");
|
|
1145
1147
|
c.style.display = "flex", c.style.gap = "14px", c.style.flex = "1 1 auto", c.style.minHeight = "0", c.style.minWidth = "0", c.style.overflow = "hidden";
|
|
1146
|
-
const u =
|
|
1147
|
-
|
|
1148
|
+
const u = Ee("Current", n), p = Ee("Next", n), h = gn(), f = pe();
|
|
1149
|
+
p.container.style.cursor = "pointer", p.container.addEventListener("click", () => {
|
|
1148
1150
|
o() && t();
|
|
1149
1151
|
});
|
|
1150
1152
|
const v = n.slides.map((k, F) => {
|
|
1151
|
-
const U =
|
|
1153
|
+
const U = xn(k, F);
|
|
1152
1154
|
return U.style.cursor = "pointer", U.addEventListener("click", (B) => {
|
|
1153
1155
|
o() && (B.shiftKey && ne(), e(F));
|
|
1154
1156
|
}), s.appendChild(U), U;
|
|
@@ -1158,7 +1160,7 @@ function dn(n, e, t, o = () => !0) {
|
|
|
1158
1160
|
f.visibility.current
|
|
1159
1161
|
), C = Nt(
|
|
1160
1162
|
"Next",
|
|
1161
|
-
|
|
1163
|
+
p.container,
|
|
1162
1164
|
f.visibility.next
|
|
1163
1165
|
), M = Nt(
|
|
1164
1166
|
"Notes",
|
|
@@ -1166,9 +1168,9 @@ function dn(n, e, t, o = () => !0) {
|
|
|
1166
1168
|
f.visibility.notes
|
|
1167
1169
|
), L = () => {
|
|
1168
1170
|
const k = T.input.checked && C.input.checked && S();
|
|
1169
|
-
a.style.gridTemplateColumns = y.input.checked ? "260px 1fr" : "1fr", c.style.flexDirection = k ? "column" : "row", u.container.style.flex = "1 1 0",
|
|
1170
|
-
u.resize(),
|
|
1171
|
-
}),
|
|
1171
|
+
a.style.gridTemplateColumns = y.input.checked ? "260px 1fr" : "1fr", c.style.flexDirection = k ? "column" : "row", u.container.style.flex = "1 1 0", p.container.style.flex = "1 1 0", requestAnimationFrame(() => {
|
|
1172
|
+
u.resize(), p.resize();
|
|
1173
|
+
}), o0({
|
|
1172
1174
|
...f,
|
|
1173
1175
|
open: !0,
|
|
1174
1176
|
visibility: {
|
|
@@ -1179,12 +1181,12 @@ function dn(n, e, t, o = () => !0) {
|
|
|
1179
1181
|
}
|
|
1180
1182
|
});
|
|
1181
1183
|
};
|
|
1182
|
-
y.input.addEventListener("change", L), T.input.addEventListener("change", L), C.input.addEventListener("change", L), M.input.addEventListener("change", L), N == null || N.addEventListener("resize", L), l.appendChild(y.element), l.appendChild(T.element), l.appendChild(C.element), l.appendChild(M.element), c.appendChild(u.container), c.appendChild(
|
|
1184
|
+
y.input.addEventListener("change", L), T.input.addEventListener("change", L), C.input.addEventListener("change", L), M.input.addEventListener("change", L), N == null || N.addEventListener("resize", L), l.appendChild(y.element), l.appendChild(T.element), l.appendChild(C.element), l.appendChild(M.element), c.appendChild(u.container), c.appendChild(p.container), r.appendChild(l), r.appendChild(c), r.appendChild(h.container), a.appendChild(s), a.appendChild(r);
|
|
1183
1185
|
function E(k, F, U, B) {
|
|
1184
|
-
o() && (v.forEach((
|
|
1186
|
+
o() && (v.forEach(($, lt) => {
|
|
1185
1187
|
const Q = lt === k;
|
|
1186
|
-
|
|
1187
|
-
}), u.label.textContent =
|
|
1188
|
+
$.style.backgroundColor = Q ? "#dbeafe" : "#ffffff", $.style.borderColor = Q ? "#60a5fa" : "#e5e7eb", $.style.color = Q ? "#1e3a8a" : "#1f2937";
|
|
1189
|
+
}), u.label.textContent = Ie(n, k, F), p.label.textContent = Ie(n, U, B), h.content.textContent = cn(n.slides[k] ?? an(), F) ?? "", yn(v[k], s), L());
|
|
1188
1190
|
}
|
|
1189
1191
|
function S() {
|
|
1190
1192
|
const k = N;
|
|
@@ -1196,9 +1198,9 @@ function dn(n, e, t, o = () => !0) {
|
|
|
1196
1198
|
return {
|
|
1197
1199
|
element: a,
|
|
1198
1200
|
currentCanvas: u.canvas,
|
|
1199
|
-
nextCanvas:
|
|
1201
|
+
nextCanvas: p.canvas,
|
|
1200
1202
|
currentLabel: u.label,
|
|
1201
|
-
nextLabel:
|
|
1203
|
+
nextLabel: p.label,
|
|
1202
1204
|
isOpen: () => N !== null && !N.closed,
|
|
1203
1205
|
update: E
|
|
1204
1206
|
};
|
|
@@ -1211,7 +1213,7 @@ function gn() {
|
|
|
1211
1213
|
const o = n.createElement("div");
|
|
1212
1214
|
return o.style.flex = "1 1 auto", o.style.minHeight = "0", o.style.overflowY = "auto", o.style.padding = "4px 12px 12px", o.style.fontSize = "16px", o.style.lineHeight = "1.5", o.style.whiteSpace = "pre-wrap", e.appendChild(t), e.appendChild(o), { container: e, content: o };
|
|
1213
1215
|
}
|
|
1214
|
-
function
|
|
1216
|
+
function xn(n, e) {
|
|
1215
1217
|
const t = (N == null ? void 0 : N.document) ?? document, o = t.createElement("div");
|
|
1216
1218
|
o.style.display = "flex", o.style.alignItems = "center", o.style.gap = "10px", o.style.padding = "8px 10px", o.style.backgroundColor = "#ffffff", o.style.border = "1px solid #e5e7eb", o.style.borderRadius = "6px", o.style.boxShadow = "0 1px 2px rgba(15, 23, 42, 0.06)", o.style.fontSize = "14px", o.style.lineHeight = "1", o.style.userSelect = "none";
|
|
1217
1219
|
const i = t.createElement("div");
|
|
@@ -1219,7 +1221,7 @@ function pn(n, e) {
|
|
|
1219
1221
|
const a = t.createElement("div");
|
|
1220
1222
|
return a.textContent = n.title.length > 0 ? n.title : `Slide ${e + 1}`, a.style.overflow = "hidden", a.style.textOverflow = "ellipsis", a.style.whiteSpace = "nowrap", o.appendChild(i), o.appendChild(a), o;
|
|
1221
1223
|
}
|
|
1222
|
-
function
|
|
1224
|
+
function Ee(n, e) {
|
|
1223
1225
|
var u;
|
|
1224
1226
|
const t = (N == null ? void 0 : N.document) ?? document, o = t.createElement("div");
|
|
1225
1227
|
o.style.display = "flex", o.style.alignItems = "center", o.style.flexDirection = "column", o.style.minHeight = "0", o.style.minWidth = "0";
|
|
@@ -1232,10 +1234,10 @@ function Se(n, e) {
|
|
|
1232
1234
|
const r = t.createElement("canvas");
|
|
1233
1235
|
r.style.display = "block", r.style.width = "0", r.style.height = "0";
|
|
1234
1236
|
function l() {
|
|
1235
|
-
const
|
|
1236
|
-
if (
|
|
1237
|
+
const p = s.clientWidth, h = s.clientHeight;
|
|
1238
|
+
if (p <= 0 || h <= 0)
|
|
1237
1239
|
return;
|
|
1238
|
-
const f = e.size.width / e.size.height, v = Math.min(
|
|
1240
|
+
const f = e.size.width / e.size.height, v = Math.min(p, h * f), y = v / f;
|
|
1239
1241
|
r.style.width = `${v}px`, r.style.height = `${y}px`;
|
|
1240
1242
|
}
|
|
1241
1243
|
const c = (u = t.defaultView) == null ? void 0 : u.ResizeObserver;
|
|
@@ -1249,38 +1251,38 @@ function Nt(n, e, t) {
|
|
|
1249
1251
|
e.style.display = s.checked ? i : "none";
|
|
1250
1252
|
}), a.appendChild(s), a.appendChild(o.createTextNode(n)), { element: a, input: s };
|
|
1251
1253
|
}
|
|
1252
|
-
function
|
|
1254
|
+
function Ie(n, e, t) {
|
|
1253
1255
|
if (e === null)
|
|
1254
1256
|
return "End of presentation";
|
|
1255
1257
|
const o = n.slides[e];
|
|
1256
1258
|
return o === void 0 ? "No slide" : `Slide ${e + 1} of ${n.slides.length}, Build ${t + 1} of ${o.animations.length + 1}`;
|
|
1257
1259
|
}
|
|
1258
|
-
function
|
|
1260
|
+
function yn(n, e) {
|
|
1259
1261
|
if (n === void 0)
|
|
1260
1262
|
return;
|
|
1261
1263
|
const t = n.offsetTop, o = t + n.offsetHeight, i = e.scrollTop, a = i + e.clientHeight;
|
|
1262
1264
|
(t < i || o > a) && n.scrollIntoView({ block: "nearest" });
|
|
1263
1265
|
}
|
|
1264
1266
|
function ne() {
|
|
1265
|
-
Bt(N),
|
|
1267
|
+
Bt(N), r0(), wt == null || wt(), N == null || N.close(), N = null, Ft = null, wt = null;
|
|
1266
1268
|
}
|
|
1267
|
-
function
|
|
1268
|
-
const { width: n, height: e, left: t, top: o } =
|
|
1269
|
+
function vn() {
|
|
1270
|
+
const { width: n, height: e, left: t, top: o } = l0;
|
|
1269
1271
|
return `width=${n},height=${e},left=${t},top=${o}`;
|
|
1270
1272
|
}
|
|
1271
1273
|
function Bt(n) {
|
|
1272
|
-
n === null || n.closed || (
|
|
1274
|
+
n === null || n.closed || (l0 = {
|
|
1273
1275
|
width: n.outerWidth,
|
|
1274
1276
|
height: n.outerHeight,
|
|
1275
1277
|
left: n.screenX,
|
|
1276
1278
|
top: n.screenY
|
|
1277
1279
|
});
|
|
1278
1280
|
}
|
|
1279
|
-
function
|
|
1281
|
+
function wn(n) {
|
|
1280
1282
|
var o;
|
|
1281
1283
|
const e = typeof ((o = globalThis.crypto) == null ? void 0 : o.randomUUID) == "function" ? globalThis.crypto.randomUUID() : `${Date.now()}-${Math.random()}`, t = n;
|
|
1282
|
-
return t[
|
|
1283
|
-
isActive: () => !n.closed && t[
|
|
1284
|
+
return t[Pe] = e, {
|
|
1285
|
+
isActive: () => !n.closed && t[Pe] === e
|
|
1284
1286
|
};
|
|
1285
1287
|
}
|
|
1286
1288
|
function K(n = null) {
|
|
@@ -1290,8 +1292,8 @@ function K(n = null) {
|
|
|
1290
1292
|
...n
|
|
1291
1293
|
};
|
|
1292
1294
|
}
|
|
1293
|
-
const
|
|
1294
|
-
function
|
|
1295
|
+
const mn = K({ width: 0, height: 0 });
|
|
1296
|
+
function bn(n = null) {
|
|
1295
1297
|
return {
|
|
1296
1298
|
backgroundColor: G.WHITE,
|
|
1297
1299
|
slides: [],
|
|
@@ -1303,7 +1305,7 @@ function mn(n = null) {
|
|
|
1303
1305
|
...n
|
|
1304
1306
|
};
|
|
1305
1307
|
}
|
|
1306
|
-
function
|
|
1308
|
+
function An(n) {
|
|
1307
1309
|
const e = Array.isArray(n) ? n : [n];
|
|
1308
1310
|
let t = 0, o = 0;
|
|
1309
1311
|
for (const i of e)
|
|
@@ -1321,26 +1323,26 @@ function bn(n) {
|
|
|
1321
1323
|
}
|
|
1322
1324
|
return o;
|
|
1323
1325
|
}
|
|
1324
|
-
function
|
|
1325
|
-
const { red: t, green: o, blue: i } = n, a =
|
|
1326
|
+
function xe(n, e = null) {
|
|
1327
|
+
const { red: t, green: o, blue: i } = n, a = e0(n, e);
|
|
1326
1328
|
return `rgba(${t}, ${o}, ${i}, ${a})`;
|
|
1327
1329
|
}
|
|
1328
|
-
function
|
|
1330
|
+
function h0(n) {
|
|
1329
1331
|
return n === document.body;
|
|
1330
1332
|
}
|
|
1331
|
-
function
|
|
1333
|
+
function Tn(n, e) {
|
|
1332
1334
|
const t = document.createElement("div");
|
|
1333
|
-
if (t.style.width = "100%", t.style.aspectRatio = `${n.size.width} / ${n.size.height}`, t.style.position = "relative",
|
|
1335
|
+
if (t.style.width = "100%", t.style.aspectRatio = `${n.size.width} / ${n.size.height}`, t.style.position = "relative", h0(e)) {
|
|
1334
1336
|
t.style.top = "50%", t.style.transform = "translateY(-50%)", t.style.marginLeft = "auto", t.style.marginRight = "auto", t.style.overflowY = "clip", document.title = n.title, document.documentElement.style.height = "100%", document.body.style.margin = "0", document.body.style.height = "100%", document.body.style.width = "100%", document.body.style.backgroundColor = "#000000";
|
|
1335
1337
|
const o = n.size.height / n.size.width;
|
|
1336
|
-
|
|
1338
|
+
ke(t, o), window.matchMedia(`(min-aspect-ratio: ${n.size.width} / ${n.size.height})`).addEventListener("change", () => ke(t, o));
|
|
1337
1339
|
}
|
|
1338
1340
|
return t;
|
|
1339
1341
|
}
|
|
1340
|
-
function
|
|
1342
|
+
function ke(n, e) {
|
|
1341
1343
|
window.innerHeight / window.innerWidth > e ? (n.style.width = "100%", n.style.height = "auto") : (n.style.width = "auto", n.style.height = "100%");
|
|
1342
1344
|
}
|
|
1343
|
-
const
|
|
1345
|
+
const Ln = {
|
|
1344
1346
|
check: (n) => typeof n == "object" && n !== null && typeof n.red == "number" && typeof n.green == "number" && typeof n.blue == "number" && typeof n.alpha == "number",
|
|
1345
1347
|
interpolate: (n, e, t) => ({
|
|
1346
1348
|
red: Math.round(n.red + (e.red - n.red) * t),
|
|
@@ -1348,23 +1350,23 @@ const Tn = {
|
|
|
1348
1350
|
blue: Math.round(n.blue + (e.blue - n.blue) * t),
|
|
1349
1351
|
alpha: n.alpha + (e.alpha - n.alpha) * t
|
|
1350
1352
|
})
|
|
1351
|
-
},
|
|
1353
|
+
}, Mn = {
|
|
1352
1354
|
check: (n) => !0,
|
|
1353
1355
|
interpolate: (n, e) => e
|
|
1354
|
-
},
|
|
1356
|
+
}, Cn = {
|
|
1355
1357
|
check: (n) => typeof n == "number",
|
|
1356
1358
|
interpolate: (n, e, t) => n + (e - n) * t
|
|
1357
|
-
},
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1359
|
+
}, Oe = [
|
|
1360
|
+
Cn,
|
|
1361
|
+
Ln,
|
|
1362
|
+
Mn
|
|
1361
1363
|
];
|
|
1362
|
-
function
|
|
1364
|
+
function Sn(n, e, t, o = null) {
|
|
1363
1365
|
if (t === 0)
|
|
1364
1366
|
return n;
|
|
1365
1367
|
if (t === 1)
|
|
1366
1368
|
return { ...n, ...e };
|
|
1367
|
-
const i = o != null ? [...o, ...
|
|
1369
|
+
const i = o != null ? [...o, ...Oe] : Oe, a = {};
|
|
1368
1370
|
for (const s in e) {
|
|
1369
1371
|
const r = n[s], l = e[s];
|
|
1370
1372
|
for (const c of i)
|
|
@@ -1379,7 +1381,7 @@ function Cn(n, e, t, o = null) {
|
|
|
1379
1381
|
}
|
|
1380
1382
|
return { ...n, ...a };
|
|
1381
1383
|
}
|
|
1382
|
-
function
|
|
1384
|
+
function _e(n, e, t = null) {
|
|
1383
1385
|
if (e === null)
|
|
1384
1386
|
return;
|
|
1385
1387
|
const o = Array.isArray(e) ? e : [e];
|
|
@@ -1401,7 +1403,7 @@ function ke(n, e, t = null) {
|
|
|
1401
1403
|
);
|
|
1402
1404
|
n.set(a.object, {
|
|
1403
1405
|
...s,
|
|
1404
|
-
...
|
|
1406
|
+
...Sn(
|
|
1405
1407
|
s,
|
|
1406
1408
|
a.props,
|
|
1407
1409
|
a.easing(l),
|
|
@@ -1428,10 +1430,10 @@ function ke(n, e, t = null) {
|
|
|
1428
1430
|
}
|
|
1429
1431
|
}
|
|
1430
1432
|
}
|
|
1431
|
-
function
|
|
1433
|
+
function ye(n) {
|
|
1432
1434
|
return "objects" in n ? n.objects.filter((e) => "objectType" in e) : [];
|
|
1433
1435
|
}
|
|
1434
|
-
function
|
|
1436
|
+
function Ne({
|
|
1435
1437
|
slide: n,
|
|
1436
1438
|
buildIndex: e,
|
|
1437
1439
|
buildTime: t
|
|
@@ -1439,7 +1441,7 @@ function Sn({
|
|
|
1439
1441
|
const o = /* @__PURE__ */ new Map();
|
|
1440
1442
|
function i(s) {
|
|
1441
1443
|
o.set(s, s);
|
|
1442
|
-
for (const r of
|
|
1444
|
+
for (const r of ye(s))
|
|
1443
1445
|
i(r);
|
|
1444
1446
|
}
|
|
1445
1447
|
for (const s of n.objects)
|
|
@@ -1447,22 +1449,22 @@ function Sn({
|
|
|
1447
1449
|
const a = t === null ? e : e - 1;
|
|
1448
1450
|
for (let s = 0; s < a; s++) {
|
|
1449
1451
|
const r = n.animations[s] ?? null;
|
|
1450
|
-
|
|
1452
|
+
_e(o, r);
|
|
1451
1453
|
}
|
|
1452
1454
|
if (t !== null && e > 0) {
|
|
1453
1455
|
const s = n.animations[e - 1] ?? null;
|
|
1454
|
-
|
|
1456
|
+
_e(o, s, t);
|
|
1455
1457
|
}
|
|
1456
1458
|
return o;
|
|
1457
1459
|
}
|
|
1458
1460
|
function Pn(n) {
|
|
1459
1461
|
const e = {};
|
|
1460
1462
|
function t(o) {
|
|
1461
|
-
if (o.objectType ===
|
|
1463
|
+
if (o.objectType === j.SVG) {
|
|
1462
1464
|
const a = o.svg;
|
|
1463
1465
|
a !== void 0 && a.length > 0 && (e[a] = a);
|
|
1464
1466
|
}
|
|
1465
|
-
const i =
|
|
1467
|
+
const i = ye(o);
|
|
1466
1468
|
for (const a of i)
|
|
1467
1469
|
t(a);
|
|
1468
1470
|
}
|
|
@@ -1496,13 +1498,14 @@ function En(n, e) {
|
|
|
1496
1498
|
buildIndex: r
|
|
1497
1499
|
});
|
|
1498
1500
|
}
|
|
1499
|
-
function
|
|
1501
|
+
function Re({ title: n, slideIndex: e, buildIndex: t }) {
|
|
1500
1502
|
localStorage.setItem(
|
|
1501
1503
|
yt,
|
|
1502
1504
|
JSON.stringify({ title: n, slideIndex: e, buildIndex: t, timestamp: Date.now() })
|
|
1503
1505
|
);
|
|
1504
1506
|
}
|
|
1505
|
-
const
|
|
1507
|
+
const Fe = Object.freeze({
|
|
1508
|
+
accessibleDescriptionElement: null,
|
|
1506
1509
|
canvas: null,
|
|
1507
1510
|
extrasContainer: null,
|
|
1508
1511
|
mountedExtrasCleanups: [],
|
|
@@ -1518,42 +1521,98 @@ const _e = Object.freeze({
|
|
|
1518
1521
|
Browser: "browser",
|
|
1519
1522
|
Node: "node"
|
|
1520
1523
|
};
|
|
1521
|
-
function In(n
|
|
1524
|
+
function In(n) {
|
|
1525
|
+
const e = document.createElement("div");
|
|
1526
|
+
return e.setAttribute("role", "status"), e.setAttribute("aria-label", n), e.setAttribute("aria-atomic", "true"), Object.assign(e.style, {
|
|
1527
|
+
position: "absolute",
|
|
1528
|
+
width: "1px",
|
|
1529
|
+
height: "1px",
|
|
1530
|
+
overflow: "hidden",
|
|
1531
|
+
clipPath: "inset(50%)",
|
|
1532
|
+
whiteSpace: "nowrap"
|
|
1533
|
+
}), e;
|
|
1534
|
+
}
|
|
1535
|
+
function kn(n, e) {
|
|
1536
|
+
const t = n.description ? [n.description] : [];
|
|
1537
|
+
function o(i, a) {
|
|
1538
|
+
const s = e.get(i);
|
|
1539
|
+
if (s === void 0)
|
|
1540
|
+
return;
|
|
1541
|
+
const r = a * s.opacity;
|
|
1542
|
+
if (!On(s, r))
|
|
1543
|
+
return;
|
|
1544
|
+
const l = _n(s);
|
|
1545
|
+
l && t.push(l);
|
|
1546
|
+
for (const c of ye(i))
|
|
1547
|
+
o(c, r);
|
|
1548
|
+
}
|
|
1549
|
+
for (const i of n.objects)
|
|
1550
|
+
o(i, 1);
|
|
1551
|
+
return t.join(`
|
|
1552
|
+
`);
|
|
1553
|
+
}
|
|
1554
|
+
function On(n, e) {
|
|
1555
|
+
return e !== 0 && (!("drawn" in n) || n.drawn !== 0);
|
|
1556
|
+
}
|
|
1557
|
+
function _n(n) {
|
|
1558
|
+
return n.description !== null ? n.description : Nn(n) ? Rn(n) : null;
|
|
1559
|
+
}
|
|
1560
|
+
function Nn(n) {
|
|
1561
|
+
return n.objectType === j.TEXT;
|
|
1562
|
+
}
|
|
1563
|
+
function Rn(n) {
|
|
1564
|
+
let e = n.length;
|
|
1565
|
+
return ue(n.text).map(
|
|
1566
|
+
(t) => t.map((o) => {
|
|
1567
|
+
if (e === null)
|
|
1568
|
+
return o.text;
|
|
1569
|
+
if (e <= 0)
|
|
1570
|
+
return "";
|
|
1571
|
+
const i = o.text.slice(0, e);
|
|
1572
|
+
return e -= i.length, i;
|
|
1573
|
+
}).join("")
|
|
1574
|
+
).join(`
|
|
1575
|
+
`);
|
|
1576
|
+
}
|
|
1577
|
+
function Fn(n, e) {
|
|
1578
|
+
n.textContent !== e && (n.textContent = e);
|
|
1579
|
+
}
|
|
1580
|
+
function Bn(n, e) {
|
|
1522
1581
|
e.context.clearRect(0, 0, n.width, n.height);
|
|
1523
1582
|
}
|
|
1524
|
-
function
|
|
1583
|
+
function Dn(n) {
|
|
1525
1584
|
const e = document.createElement("canvas");
|
|
1526
|
-
return e.setAttribute("width", n.width.toString()), e.setAttribute("height", n.height.toString()), e.style.position = "absolute", e.style.width = "100%", e;
|
|
1585
|
+
return e.setAttribute("width", n.width.toString()), e.setAttribute("height", n.height.toString()), e.setAttribute("aria-hidden", "true"), e.style.position = "absolute", e.style.width = "100%", e;
|
|
1527
1586
|
}
|
|
1528
|
-
const
|
|
1587
|
+
const pt = {
|
|
1529
1588
|
Browser: "browser",
|
|
1530
1589
|
Node: "node"
|
|
1531
1590
|
};
|
|
1532
|
-
function
|
|
1591
|
+
function qn(n) {
|
|
1533
1592
|
const e = new Path2D(n);
|
|
1534
1593
|
return {
|
|
1535
|
-
type:
|
|
1594
|
+
type: pt.Browser,
|
|
1536
1595
|
path: e
|
|
1537
1596
|
};
|
|
1538
1597
|
}
|
|
1539
|
-
function
|
|
1540
|
-
const { drawn: e, startX: t, startY: o, endX: i, endY: a, arrowheadSize: s, isArrowheadFilled: r, isDrawnFromCenter: l } = n, c = { x: t, y: o }, u = { x: i, y: a },
|
|
1541
|
-
x: E.x - k * Math.cos(
|
|
1542
|
-
y: E.y - k * Math.sin(
|
|
1598
|
+
function zn(n) {
|
|
1599
|
+
const { drawn: e, startX: t, startY: o, endX: i, endY: a, arrowheadSize: s, isArrowheadFilled: r, isDrawnFromCenter: l } = n, c = { x: t, y: o }, u = { x: i, y: a }, p = Math.atan2(u.y - c.y, u.x - c.x), h = { x: c.x + (u.x - c.x) / 2, y: c.y + (u.y - c.y) / 2 }, f = u.x - c.x, v = u.y - c.y, T = Math.hypot(f, v) * e, C = Math.cos(p), M = Math.sin(p), L = l ? { x: h.x - C * T / 2, y: h.y - M * T / 2 } : c, E = l ? { x: h.x + C * T / 2, y: h.y + M * T / 2 } : { x: c.x + C * T, y: c.y + M * T }, S = r ? Math.PI / 6 : Math.PI / 4.5, k = T < s * 2 ? T / 2 : s, F = {
|
|
1600
|
+
x: E.x - k * Math.cos(p - S),
|
|
1601
|
+
y: E.y - k * Math.sin(p - S)
|
|
1543
1602
|
}, U = {
|
|
1544
|
-
x: E.x - k * Math.cos(
|
|
1545
|
-
y: E.y - k * Math.sin(
|
|
1603
|
+
x: E.x - k * Math.cos(p + S),
|
|
1604
|
+
y: E.y - k * Math.sin(p + S)
|
|
1546
1605
|
}, B = {
|
|
1547
|
-
x: L.x + k * Math.cos(
|
|
1548
|
-
y: L.y + k * Math.sin(
|
|
1549
|
-
},
|
|
1550
|
-
x: L.x + k * Math.cos(
|
|
1551
|
-
y: L.y + k * Math.sin(
|
|
1606
|
+
x: L.x + k * Math.cos(p - S),
|
|
1607
|
+
y: L.y + k * Math.sin(p - S)
|
|
1608
|
+
}, $ = {
|
|
1609
|
+
x: L.x + k * Math.cos(p + S),
|
|
1610
|
+
y: L.y + k * Math.sin(p + S)
|
|
1552
1611
|
};
|
|
1553
1612
|
return {
|
|
1554
1613
|
arrowPoints: [L, E],
|
|
1555
1614
|
arrowheadPoints: [F, E, U],
|
|
1556
|
-
doubledArrowheadPoints: [B, L,
|
|
1615
|
+
doubledArrowheadPoints: [B, L, $]
|
|
1557
1616
|
};
|
|
1558
1617
|
}
|
|
1559
1618
|
function mt({
|
|
@@ -1573,8 +1632,8 @@ function mt({
|
|
|
1573
1632
|
if (!o)
|
|
1574
1633
|
n.context.setLineDash([u, c - u]), n.context.lineDashOffset = 0;
|
|
1575
1634
|
else {
|
|
1576
|
-
const
|
|
1577
|
-
n.context.setLineDash([u,
|
|
1635
|
+
const p = c - u;
|
|
1636
|
+
n.context.setLineDash([u, p]), n.context.lineDashOffset = -p / 2;
|
|
1578
1637
|
}
|
|
1579
1638
|
} else
|
|
1580
1639
|
n.context.setLineDash([]), n.context.lineDashOffset = 0;
|
|
@@ -1584,27 +1643,27 @@ function mt({
|
|
|
1584
1643
|
}
|
|
1585
1644
|
switch (n.type) {
|
|
1586
1645
|
case Z.Browser:
|
|
1587
|
-
s.type ===
|
|
1646
|
+
s.type === pt.Browser ? n.context.stroke(s.path) : console.warn("Attempted to use Node Path2D in Browser Canvas context");
|
|
1588
1647
|
break;
|
|
1589
1648
|
case Z.Node:
|
|
1590
|
-
s.type ===
|
|
1649
|
+
s.type === pt.Node ? n.context.stroke(s.path) : console.warn("Attempted to use Browser Path2D in Node Canvas context");
|
|
1591
1650
|
break;
|
|
1592
1651
|
default:
|
|
1593
1652
|
at(n);
|
|
1594
1653
|
}
|
|
1595
1654
|
}
|
|
1596
1655
|
}
|
|
1597
|
-
function
|
|
1598
|
-
if (n.context.fillStyle =
|
|
1656
|
+
function gt({ ctx: n, path: e, color: t, opacity: o = null }) {
|
|
1657
|
+
if (n.context.fillStyle = xe(t, o), e === void 0) {
|
|
1599
1658
|
n.context.fill();
|
|
1600
1659
|
return;
|
|
1601
1660
|
}
|
|
1602
1661
|
switch (n.type) {
|
|
1603
1662
|
case Z.Browser:
|
|
1604
|
-
e.type ===
|
|
1663
|
+
e.type === pt.Browser ? n.context.fill(e.path) : console.warn("Attempted to use Node Path2D in Browser Canvas context");
|
|
1605
1664
|
break;
|
|
1606
1665
|
case Z.Node:
|
|
1607
|
-
e.type ===
|
|
1666
|
+
e.type === pt.Node ? n.context.fill(e.path) : console.warn("Attempted to use Browser Path2D in Node Canvas context");
|
|
1608
1667
|
break;
|
|
1609
1668
|
default:
|
|
1610
1669
|
at(n);
|
|
@@ -1625,7 +1684,7 @@ function Ut(n, e) {
|
|
|
1625
1684
|
}
|
|
1626
1685
|
return { path: t, length: i };
|
|
1627
1686
|
}
|
|
1628
|
-
const
|
|
1687
|
+
const jn = ({
|
|
1629
1688
|
ctx: n,
|
|
1630
1689
|
object: e,
|
|
1631
1690
|
opacity: t,
|
|
@@ -1634,14 +1693,14 @@ const Nn = ({
|
|
|
1634
1693
|
const i = e.opacity * t;
|
|
1635
1694
|
if (i === 0 || e.drawn === 0)
|
|
1636
1695
|
return;
|
|
1637
|
-
const { arrowPoints: a, arrowheadPoints: s, doubledArrowheadPoints: r } =
|
|
1696
|
+
const { arrowPoints: a, arrowheadPoints: s, doubledArrowheadPoints: r } = zn(e), { path: l } = Ut(a, o), { path: c } = Ut(s, o);
|
|
1638
1697
|
if (mt({
|
|
1639
1698
|
color: e.color,
|
|
1640
1699
|
ctx: n,
|
|
1641
1700
|
path: l,
|
|
1642
1701
|
opacity: i,
|
|
1643
1702
|
width: e.width
|
|
1644
|
-
}), e.isArrowheadFilled && (c.path.closePath(),
|
|
1703
|
+
}), e.isArrowheadFilled && (c.path.closePath(), gt({
|
|
1645
1704
|
ctx: n,
|
|
1646
1705
|
path: c,
|
|
1647
1706
|
color: e.color,
|
|
@@ -1657,7 +1716,7 @@ const Nn = ({
|
|
|
1657
1716
|
r,
|
|
1658
1717
|
o
|
|
1659
1718
|
);
|
|
1660
|
-
e.isArrowheadFilled && (u.path.closePath(),
|
|
1719
|
+
e.isArrowheadFilled && (u.path.closePath(), gt({
|
|
1661
1720
|
ctx: n,
|
|
1662
1721
|
path: u,
|
|
1663
1722
|
color: e.color,
|
|
@@ -1671,32 +1730,32 @@ const Nn = ({
|
|
|
1671
1730
|
});
|
|
1672
1731
|
}
|
|
1673
1732
|
};
|
|
1674
|
-
function
|
|
1733
|
+
function Vn(n, e) {
|
|
1675
1734
|
const t = n.radius - n.strokeWidth / 2;
|
|
1676
1735
|
if (t <= 0)
|
|
1677
1736
|
return;
|
|
1678
1737
|
const o = e(), i = -Math.PI / 2;
|
|
1679
1738
|
return o.path.arc(n.x, n.y, t, i, i + 2 * Math.PI), o;
|
|
1680
1739
|
}
|
|
1681
|
-
function
|
|
1740
|
+
function Hn(n, e) {
|
|
1682
1741
|
const t = e(), o = -Math.PI / 2;
|
|
1683
1742
|
t.path.arc(n.x, n.y, n.radius, o, o + 2 * Math.PI);
|
|
1684
1743
|
const i = 2 * Math.PI * n.radius;
|
|
1685
1744
|
return { path: t, length: i };
|
|
1686
1745
|
}
|
|
1687
|
-
function
|
|
1746
|
+
function c0(n, e) {
|
|
1688
1747
|
switch (n.type) {
|
|
1689
1748
|
case Z.Browser:
|
|
1690
|
-
e.type ===
|
|
1749
|
+
e.type === pt.Browser ? n.context.clip(e.path) : console.warn("Attempted to use Node Path2D in Browser Canvas context");
|
|
1691
1750
|
break;
|
|
1692
1751
|
case Z.Node:
|
|
1693
|
-
e.type ===
|
|
1752
|
+
e.type === pt.Node ? n.context.clip(e.path) : console.warn("Attempted to use Browser Path2D in Node Canvas context");
|
|
1694
1753
|
break;
|
|
1695
1754
|
default:
|
|
1696
1755
|
at(n);
|
|
1697
1756
|
}
|
|
1698
1757
|
}
|
|
1699
|
-
const
|
|
1758
|
+
const Un = ({
|
|
1700
1759
|
ctx: n,
|
|
1701
1760
|
object: e,
|
|
1702
1761
|
opacity: t,
|
|
@@ -1705,12 +1764,12 @@ const Bn = ({
|
|
|
1705
1764
|
const i = e.opacity * t;
|
|
1706
1765
|
if (i === 0 || e.drawn === 0 && e.fillColor.alpha === 0)
|
|
1707
1766
|
return;
|
|
1708
|
-
const { path: a, length: s } =
|
|
1767
|
+
const { path: a, length: s } = Hn(e, o);
|
|
1709
1768
|
if (i < 1 && e.strokeWidth > 0) {
|
|
1710
|
-
const r =
|
|
1711
|
-
r !== void 0 && (n.context.save(),
|
|
1769
|
+
const r = Vn(e, o);
|
|
1770
|
+
r !== void 0 && (n.context.save(), c0(n, r), gt({ ctx: n, path: a, color: e.fillColor, opacity: i }), n.context.restore());
|
|
1712
1771
|
} else
|
|
1713
|
-
|
|
1772
|
+
gt({ ctx: n, path: a, color: e.fillColor, opacity: i });
|
|
1714
1773
|
mt({
|
|
1715
1774
|
color: e.strokeColor,
|
|
1716
1775
|
ctx: n,
|
|
@@ -1721,18 +1780,18 @@ const Bn = ({
|
|
|
1721
1780
|
width: e.strokeWidth
|
|
1722
1781
|
});
|
|
1723
1782
|
};
|
|
1724
|
-
function
|
|
1783
|
+
function Y(n = null) {
|
|
1725
1784
|
return {
|
|
1726
1785
|
x: 0,
|
|
1727
1786
|
y: 0,
|
|
1728
1787
|
...n
|
|
1729
1788
|
};
|
|
1730
1789
|
}
|
|
1731
|
-
const
|
|
1790
|
+
const $n = Y();
|
|
1732
1791
|
function ct(n = null) {
|
|
1733
1792
|
return {
|
|
1734
|
-
origin:
|
|
1735
|
-
size:
|
|
1793
|
+
origin: $n,
|
|
1794
|
+
size: mn,
|
|
1736
1795
|
...n
|
|
1737
1796
|
};
|
|
1738
1797
|
}
|
|
@@ -1742,82 +1801,82 @@ function ut(n, e, t) {
|
|
|
1742
1801
|
switch (e) {
|
|
1743
1802
|
case st.TOP_LEFT:
|
|
1744
1803
|
return ct({
|
|
1745
|
-
origin:
|
|
1804
|
+
origin: Y({ x: o, y: i }),
|
|
1746
1805
|
size: t
|
|
1747
1806
|
});
|
|
1748
1807
|
case st.TOP:
|
|
1749
1808
|
return ct({
|
|
1750
|
-
origin:
|
|
1809
|
+
origin: Y({ x: o - a / 2, y: i }),
|
|
1751
1810
|
size: t
|
|
1752
1811
|
});
|
|
1753
1812
|
case st.TOP_RIGHT:
|
|
1754
1813
|
return ct({
|
|
1755
|
-
origin:
|
|
1814
|
+
origin: Y({ x: o - a, y: i }),
|
|
1756
1815
|
size: t
|
|
1757
1816
|
});
|
|
1758
1817
|
case st.LEFT:
|
|
1759
1818
|
return ct({
|
|
1760
|
-
origin:
|
|
1819
|
+
origin: Y({ x: o, y: i - s / 2 }),
|
|
1761
1820
|
size: t
|
|
1762
1821
|
});
|
|
1763
1822
|
case st.CENTER:
|
|
1764
1823
|
return ct({
|
|
1765
|
-
origin:
|
|
1824
|
+
origin: Y({ x: o - a / 2, y: i - s / 2 }),
|
|
1766
1825
|
size: t
|
|
1767
1826
|
});
|
|
1768
1827
|
case st.RIGHT:
|
|
1769
1828
|
return ct({
|
|
1770
|
-
origin:
|
|
1829
|
+
origin: Y({ x: o - a, y: i - s / 2 }),
|
|
1771
1830
|
size: t
|
|
1772
1831
|
});
|
|
1773
1832
|
case st.BOTTOM_LEFT:
|
|
1774
1833
|
return ct({
|
|
1775
|
-
origin:
|
|
1834
|
+
origin: Y({ x: o, y: i - s }),
|
|
1776
1835
|
size: t
|
|
1777
1836
|
});
|
|
1778
1837
|
case st.BOTTOM:
|
|
1779
1838
|
return ct({
|
|
1780
|
-
origin:
|
|
1839
|
+
origin: Y({ x: o - a / 2, y: i - s }),
|
|
1781
1840
|
size: t
|
|
1782
1841
|
});
|
|
1783
1842
|
case st.BOTTOM_RIGHT:
|
|
1784
1843
|
return ct({
|
|
1785
|
-
origin:
|
|
1844
|
+
origin: Y({ x: o - a, y: i - s }),
|
|
1786
1845
|
size: t
|
|
1787
1846
|
});
|
|
1788
1847
|
default:
|
|
1789
1848
|
at(e);
|
|
1790
1849
|
}
|
|
1791
1850
|
}
|
|
1792
|
-
const
|
|
1851
|
+
const Yn = ({
|
|
1793
1852
|
ctx: n,
|
|
1794
1853
|
object: e,
|
|
1795
1854
|
renderObject: t,
|
|
1796
1855
|
opacity: o
|
|
1797
1856
|
}) => {
|
|
1798
1857
|
const i = e.scale * e.scaleX, a = e.scale * e.scaleY, s = ut(
|
|
1799
|
-
|
|
1858
|
+
Y({ x: e.x, y: e.y }),
|
|
1800
1859
|
e.anchor,
|
|
1801
1860
|
K({
|
|
1802
1861
|
width: e.width * Math.abs(i),
|
|
1803
1862
|
height: e.height * Math.abs(a)
|
|
1804
1863
|
})
|
|
1805
|
-
), { rotation: r, rotateOriginX: l, rotateOriginY: c, skewOriginX: u, skewOriginY:
|
|
1864
|
+
), { rotation: r, rotateOriginX: l, rotateOriginY: c, skewOriginX: u, skewOriginY: p, skewX: h, skewY: f } = e;
|
|
1806
1865
|
if (!(i === 0 || a === 0)) {
|
|
1807
|
-
n.context.save(), n.context.translate(s.origin.x, s.origin.y), n.context.scale(i, a), n.context.translate(l, c), n.context.rotate(r * Math.PI / 180), n.context.translate(-l, -c), n.context.translate(u,
|
|
1866
|
+
n.context.save(), n.context.translate(s.origin.x, s.origin.y), n.context.scale(i, a), n.context.translate(l, c), n.context.rotate(r * Math.PI / 180), n.context.translate(-l, -c), n.context.translate(u, p), n.context.transform(
|
|
1808
1867
|
1,
|
|
1809
1868
|
Math.tan(f * Math.PI / 180),
|
|
1810
1869
|
Math.tan(h * Math.PI / 180),
|
|
1811
1870
|
1,
|
|
1812
1871
|
0,
|
|
1813
1872
|
0
|
|
1814
|
-
), n.context.translate(-u, -
|
|
1873
|
+
), n.context.translate(-u, -p);
|
|
1815
1874
|
for (const v of e.objects)
|
|
1816
1875
|
t(v, o * e.opacity);
|
|
1817
|
-
e.previewColor !== null && (n.context.fillStyle = It(e.previewColor), n.context.fillRect(0, 0, e.width, e.height)), e.rotateOriginPreviewSize > 0 && (n.context.fillStyle = "red", n.context.beginPath(), n.context.arc(l, c, e.rotateOriginPreviewSize, 0, 2 * Math.PI), n.context.fill()), e.skewOriginPreviewSize > 0 && (n.context.fillStyle = "blue", n.context.beginPath(), n.context.arc(u,
|
|
1876
|
+
e.previewColor !== null && (n.context.fillStyle = It(e.previewColor), n.context.fillRect(0, 0, e.width, e.height)), e.rotateOriginPreviewSize > 0 && (n.context.fillStyle = "red", n.context.beginPath(), n.context.arc(l, c, e.rotateOriginPreviewSize, 0, 2 * Math.PI), n.context.fill()), e.skewOriginPreviewSize > 0 && (n.context.fillStyle = "blue", n.context.beginPath(), n.context.arc(u, p, e.skewOriginPreviewSize, 0, 2 * Math.PI), n.context.fill()), n.context.restore();
|
|
1818
1877
|
}
|
|
1819
1878
|
};
|
|
1820
|
-
function
|
|
1879
|
+
function ve(n, e, t, o, i = 0) {
|
|
1821
1880
|
const a = o();
|
|
1822
1881
|
a.path.moveTo(n.x + t, n.y), a.path.lineTo(n.x + e.width - t, n.y), a.path.arcTo(
|
|
1823
1882
|
n.x + e.width,
|
|
@@ -1844,7 +1903,7 @@ function xe(n, e, t, o, i = 0) {
|
|
|
1844
1903
|
const kt = {
|
|
1845
1904
|
Browser: "browser",
|
|
1846
1905
|
Node: "node"
|
|
1847
|
-
},
|
|
1906
|
+
}, Wn = ({
|
|
1848
1907
|
ctx: n,
|
|
1849
1908
|
imageById: e,
|
|
1850
1909
|
object: t,
|
|
@@ -1852,13 +1911,13 @@ const kt = {
|
|
|
1852
1911
|
createPath2D: i
|
|
1853
1912
|
}) => {
|
|
1854
1913
|
const a = ut(
|
|
1855
|
-
|
|
1914
|
+
Y({ x: t.x, y: t.y }),
|
|
1856
1915
|
t.anchor,
|
|
1857
1916
|
K({ width: t.width, height: t.height })
|
|
1858
1917
|
), s = e[t.imageId];
|
|
1859
1918
|
if (s !== void 0) {
|
|
1860
1919
|
if (n.context.save(), t.cornerRadius > 0) {
|
|
1861
|
-
const r =
|
|
1920
|
+
const r = ve(
|
|
1862
1921
|
a.origin,
|
|
1863
1922
|
a.size,
|
|
1864
1923
|
t.cornerRadius,
|
|
@@ -1866,10 +1925,10 @@ const kt = {
|
|
|
1866
1925
|
);
|
|
1867
1926
|
switch (n.type) {
|
|
1868
1927
|
case Z.Browser:
|
|
1869
|
-
r.path.type ===
|
|
1928
|
+
r.path.type === pt.Browser ? n.context.clip(r.path.path) : console.warn("Attempted to use Node Path2D in Browser Canvas context");
|
|
1870
1929
|
break;
|
|
1871
1930
|
case Z.Node:
|
|
1872
|
-
r.path.type ===
|
|
1931
|
+
r.path.type === pt.Node ? n.context.clip(r.path.path) : console.warn("Attempted to use Browser Path2D in Node Canvas context");
|
|
1873
1932
|
break;
|
|
1874
1933
|
default:
|
|
1875
1934
|
at(n);
|
|
@@ -1900,13 +1959,13 @@ const kt = {
|
|
|
1900
1959
|
n.context.restore();
|
|
1901
1960
|
}
|
|
1902
1961
|
};
|
|
1903
|
-
function
|
|
1962
|
+
function Gn(n, e) {
|
|
1904
1963
|
const t = e();
|
|
1905
1964
|
t.path.moveTo(n.startX, n.startY), t.path.lineTo(n.endX, n.endY);
|
|
1906
1965
|
const o = Math.hypot(n.endX - n.startX, n.endY - n.startY);
|
|
1907
1966
|
return { path: t, length: o };
|
|
1908
1967
|
}
|
|
1909
|
-
const
|
|
1968
|
+
const Xn = ({
|
|
1910
1969
|
ctx: n,
|
|
1911
1970
|
object: e,
|
|
1912
1971
|
opacity: t,
|
|
@@ -1915,7 +1974,7 @@ const jn = ({
|
|
|
1915
1974
|
const i = e.opacity * t;
|
|
1916
1975
|
if (i === 0 || e.drawn === 0)
|
|
1917
1976
|
return;
|
|
1918
|
-
const { path: a, length: s } =
|
|
1977
|
+
const { path: a, length: s } = Gn(e, o);
|
|
1919
1978
|
mt({
|
|
1920
1979
|
color: e.color,
|
|
1921
1980
|
ctx: n,
|
|
@@ -1927,7 +1986,7 @@ const jn = ({
|
|
|
1927
1986
|
opacity: i,
|
|
1928
1987
|
width: e.width
|
|
1929
1988
|
});
|
|
1930
|
-
},
|
|
1989
|
+
}, Kn = ({
|
|
1931
1990
|
ctx: n,
|
|
1932
1991
|
object: e,
|
|
1933
1992
|
opacity: t,
|
|
@@ -1935,7 +1994,7 @@ const jn = ({
|
|
|
1935
1994
|
}) => {
|
|
1936
1995
|
n.context.save();
|
|
1937
1996
|
const i = ut(
|
|
1938
|
-
|
|
1997
|
+
Y({ x: e.x, y: e.y }),
|
|
1939
1998
|
e.anchor,
|
|
1940
1999
|
K({ width: e.width, height: e.height })
|
|
1941
2000
|
);
|
|
@@ -1943,7 +2002,7 @@ const jn = ({
|
|
|
1943
2002
|
for (const a of e.objects)
|
|
1944
2003
|
o(a, t * e.opacity);
|
|
1945
2004
|
n.context.restore();
|
|
1946
|
-
},
|
|
2005
|
+
}, Zn = ({
|
|
1947
2006
|
ctx: n,
|
|
1948
2007
|
object: e,
|
|
1949
2008
|
opacity: t,
|
|
@@ -1953,11 +2012,11 @@ const jn = ({
|
|
|
1953
2012
|
if (i === 0 || e.drawn === 0 && e.fillColor.alpha === 0)
|
|
1954
2013
|
return;
|
|
1955
2014
|
const { origin: a } = ut(
|
|
1956
|
-
|
|
2015
|
+
Y({ x: e.x, y: e.y }),
|
|
1957
2016
|
e.anchor,
|
|
1958
2017
|
K({ width: e.width, height: e.height })
|
|
1959
2018
|
), s = o(e.path);
|
|
1960
|
-
n.context.save(), n.context.translate(a.x, a.y), n.context.scale(e.width / e.viewboxWidth, e.height / e.viewboxHeight),
|
|
2019
|
+
n.context.save(), n.context.translate(a.x, a.y), n.context.scale(e.width / e.viewboxWidth, e.height / e.viewboxHeight), gt({
|
|
1961
2020
|
ctx: n,
|
|
1962
2021
|
path: s,
|
|
1963
2022
|
color: e.fillColor,
|
|
@@ -1973,7 +2032,7 @@ const jn = ({
|
|
|
1973
2032
|
width: e.strokeWidth
|
|
1974
2033
|
}), n.context.restore();
|
|
1975
2034
|
};
|
|
1976
|
-
function
|
|
2035
|
+
function Jn(n, e) {
|
|
1977
2036
|
const t = e(), o = n.points, i = o[0];
|
|
1978
2037
|
if (i === void 0)
|
|
1979
2038
|
return { path: t, length: 0 };
|
|
@@ -1994,7 +2053,7 @@ function Yn(n, e) {
|
|
|
1994
2053
|
);
|
|
1995
2054
|
return a += r, { path: t, length: a };
|
|
1996
2055
|
}
|
|
1997
|
-
const
|
|
2056
|
+
const Qn = ({
|
|
1998
2057
|
ctx: n,
|
|
1999
2058
|
object: e,
|
|
2000
2059
|
opacity: t,
|
|
@@ -2003,8 +2062,8 @@ const $n = ({
|
|
|
2003
2062
|
const i = e.opacity * t;
|
|
2004
2063
|
if (i === 0 || e.drawn === 0 && e.fillColor.alpha === 0)
|
|
2005
2064
|
return;
|
|
2006
|
-
const { path: a, length: s } =
|
|
2007
|
-
|
|
2065
|
+
const { path: a, length: s } = Jn(e, o);
|
|
2066
|
+
gt({
|
|
2008
2067
|
ctx: n,
|
|
2009
2068
|
path: a,
|
|
2010
2069
|
color: e.fillColor,
|
|
@@ -2019,26 +2078,26 @@ const $n = ({
|
|
|
2019
2078
|
width: e.strokeWidth
|
|
2020
2079
|
});
|
|
2021
2080
|
};
|
|
2022
|
-
function
|
|
2081
|
+
function t1(n, e) {
|
|
2023
2082
|
const t = n.strokeWidth / 2, { origin: o, size: i } = ut(
|
|
2024
|
-
|
|
2083
|
+
Y({ x: n.x, y: n.y }),
|
|
2025
2084
|
n.anchor,
|
|
2026
2085
|
K({ width: n.width, height: n.height })
|
|
2027
2086
|
), a = i.width - n.strokeWidth, s = i.height - n.strokeWidth;
|
|
2028
2087
|
if (a <= 0 || s <= 0)
|
|
2029
2088
|
return;
|
|
2030
|
-
const r =
|
|
2089
|
+
const r = Y({ x: o.x + t, y: o.y + t }), l = K({ width: a, height: s }), c = Math.max(
|
|
2031
2090
|
0,
|
|
2032
2091
|
Math.min(n.cornerRadius - t, Math.min(a, s) / 2)
|
|
2033
2092
|
);
|
|
2034
2093
|
if (c > 0)
|
|
2035
|
-
return
|
|
2094
|
+
return ve(r, l, c, e).path;
|
|
2036
2095
|
const u = e();
|
|
2037
2096
|
return u.path.moveTo(r.x, r.y), u.path.lineTo(r.x + a, r.y), u.path.lineTo(r.x + a, r.y + s), u.path.lineTo(r.x, r.y + s), u.path.closePath(), u;
|
|
2038
2097
|
}
|
|
2039
|
-
function
|
|
2098
|
+
function e1(n, e) {
|
|
2040
2099
|
const { origin: t, size: o } = ut(
|
|
2041
|
-
|
|
2100
|
+
Y({ x: n.x, y: n.y }),
|
|
2042
2101
|
n.anchor,
|
|
2043
2102
|
K({ width: n.width, height: n.height })
|
|
2044
2103
|
), i = Math.max(
|
|
@@ -2046,7 +2105,7 @@ function Gn(n, e) {
|
|
|
2046
2105
|
Math.min(n.cornerRadius, Math.min(o.width, o.height) / 2)
|
|
2047
2106
|
), a = Math.min(n.strokeWidth * 2, o.width - i);
|
|
2048
2107
|
if (i > 0)
|
|
2049
|
-
return
|
|
2108
|
+
return ve(t, o, i, e, a);
|
|
2050
2109
|
{
|
|
2051
2110
|
const s = e();
|
|
2052
2111
|
s.path.moveTo(t.x, t.y), s.path.lineTo(t.x + o.width, t.y), s.path.lineTo(t.x + o.width, t.y + o.height), s.path.lineTo(t.x, t.y + o.height), s.path.lineTo(t.x, t.y), s.path.lineTo(t.x + a, t.y);
|
|
@@ -2054,7 +2113,7 @@ function Gn(n, e) {
|
|
|
2054
2113
|
return { path: s, length: r };
|
|
2055
2114
|
}
|
|
2056
2115
|
}
|
|
2057
|
-
const
|
|
2116
|
+
const n1 = ({
|
|
2058
2117
|
ctx: n,
|
|
2059
2118
|
object: e,
|
|
2060
2119
|
opacity: t,
|
|
@@ -2063,12 +2122,12 @@ const Xn = ({
|
|
|
2063
2122
|
const i = e.opacity * t;
|
|
2064
2123
|
if (i === 0 || e.drawn === 0 && e.fillColor.alpha === 0)
|
|
2065
2124
|
return;
|
|
2066
|
-
const { path: a, length: s } =
|
|
2125
|
+
const { path: a, length: s } = e1(e, o);
|
|
2067
2126
|
if (i < 1 && e.strokeWidth > 0) {
|
|
2068
|
-
const r =
|
|
2069
|
-
r !== void 0 && (n.context.save(),
|
|
2127
|
+
const r = t1(e, o);
|
|
2128
|
+
r !== void 0 && (n.context.save(), c0(n, r), gt({ ctx: n, path: a, color: e.fillColor, opacity: i }), n.context.restore());
|
|
2070
2129
|
} else
|
|
2071
|
-
|
|
2130
|
+
gt({ ctx: n, path: a, color: e.fillColor, opacity: i });
|
|
2072
2131
|
mt({
|
|
2073
2132
|
color: e.strokeColor,
|
|
2074
2133
|
ctx: n,
|
|
@@ -2079,9 +2138,9 @@ const Xn = ({
|
|
|
2079
2138
|
width: e.strokeWidth
|
|
2080
2139
|
});
|
|
2081
2140
|
};
|
|
2082
|
-
function
|
|
2141
|
+
function i1(n) {
|
|
2083
2142
|
const { origin: e, size: t } = ut(
|
|
2084
|
-
|
|
2143
|
+
Y({ x: n.x, y: n.y }),
|
|
2085
2144
|
n.anchor,
|
|
2086
2145
|
K({ width: n.width, height: n.height })
|
|
2087
2146
|
);
|
|
@@ -2094,11 +2153,11 @@ function Kn(n) {
|
|
|
2094
2153
|
)
|
|
2095
2154
|
};
|
|
2096
2155
|
}
|
|
2097
|
-
function
|
|
2098
|
-
origin:
|
|
2156
|
+
function r1(n, e, t, o = {
|
|
2157
|
+
origin: Y({ x: 0, y: 0 }),
|
|
2099
2158
|
size: e
|
|
2100
2159
|
}) {
|
|
2101
|
-
const i = t(), { origin: a, size: s, cornerRadius: r } =
|
|
2160
|
+
const i = t(), { origin: a, size: s, cornerRadius: r } = i1(n), { origin: l, size: c } = o;
|
|
2102
2161
|
return i.path.moveTo(l.x, l.y), i.path.lineTo(l.x + c.width, l.y), i.path.lineTo(l.x + c.width, l.y + c.height), i.path.lineTo(l.x, l.y + c.height), i.path.lineTo(l.x, l.y), r === 0 ? (i.path.moveTo(a.x, a.y), i.path.lineTo(a.x, a.y + s.height), i.path.lineTo(a.x + s.width, a.y + s.height), i.path.lineTo(a.x + s.width, a.y), i.path.lineTo(a.x, a.y), i) : (i.path.moveTo(a.x + r, a.y), i.path.arcTo(a.x, a.y, a.x, a.y + r, r), i.path.lineTo(a.x, a.y + s.height - r), i.path.arcTo(
|
|
2103
2162
|
a.x,
|
|
2104
2163
|
a.y + s.height,
|
|
@@ -2119,7 +2178,7 @@ function Zn(n, e, t, o = {
|
|
|
2119
2178
|
r
|
|
2120
2179
|
), i.path.lineTo(a.x + r, a.y), i);
|
|
2121
2180
|
}
|
|
2122
|
-
const
|
|
2181
|
+
const o1 = ({
|
|
2123
2182
|
createPath2D: n,
|
|
2124
2183
|
ctx: e,
|
|
2125
2184
|
object: t,
|
|
@@ -2133,15 +2192,15 @@ const Jn = ({
|
|
|
2133
2192
|
const r = K({
|
|
2134
2193
|
width: a.width / i,
|
|
2135
2194
|
height: a.height / i
|
|
2136
|
-
}), l =
|
|
2195
|
+
}), l = Y({
|
|
2137
2196
|
x: (a.width - r.width) / 2,
|
|
2138
2197
|
y: (a.height - r.height) / 2
|
|
2139
|
-
}), c =
|
|
2198
|
+
}), c = r1(t, a, n, {
|
|
2140
2199
|
origin: l,
|
|
2141
2200
|
size: r
|
|
2142
2201
|
});
|
|
2143
|
-
|
|
2144
|
-
},
|
|
2202
|
+
gt({ ctx: e, path: c, color: t.color, opacity: s });
|
|
2203
|
+
}, s1 = ({
|
|
2145
2204
|
ctx: n,
|
|
2146
2205
|
imageById: e,
|
|
2147
2206
|
object: t,
|
|
@@ -2154,7 +2213,7 @@ const Jn = ({
|
|
|
2154
2213
|
if (a === void 0)
|
|
2155
2214
|
return;
|
|
2156
2215
|
const s = ut(
|
|
2157
|
-
|
|
2216
|
+
Y({ x: t.x, y: t.y }),
|
|
2158
2217
|
t.anchor,
|
|
2159
2218
|
K({ width: t.width, height: t.height })
|
|
2160
2219
|
);
|
|
@@ -2182,7 +2241,7 @@ const Jn = ({
|
|
|
2182
2241
|
}
|
|
2183
2242
|
n.context.restore();
|
|
2184
2243
|
};
|
|
2185
|
-
function
|
|
2244
|
+
function a1(n) {
|
|
2186
2245
|
return {
|
|
2187
2246
|
color: n.color,
|
|
2188
2247
|
fontFamily: n.fontFamily,
|
|
@@ -2194,47 +2253,40 @@ function t1(n) {
|
|
|
2194
2253
|
superscript: n.superscript
|
|
2195
2254
|
};
|
|
2196
2255
|
}
|
|
2197
|
-
function
|
|
2256
|
+
function l1(n) {
|
|
2257
|
+
const e = Math.max(...n.map((o) => o.bottom), 0), t = Math.max(...n.map((o) => o.top), 0);
|
|
2198
2258
|
return {
|
|
2199
|
-
bottom:
|
|
2200
|
-
height:
|
|
2201
|
-
lineAdvance: Math.max(...n.map((
|
|
2202
|
-
top:
|
|
2203
|
-
width: n.reduce((
|
|
2259
|
+
bottom: e,
|
|
2260
|
+
height: t + e,
|
|
2261
|
+
lineAdvance: Math.max(...n.map((o) => o.lineAdvance), 0),
|
|
2262
|
+
top: t,
|
|
2263
|
+
width: n.reduce((o, i) => o + i.width, 0)
|
|
2204
2264
|
};
|
|
2205
2265
|
}
|
|
2206
|
-
function
|
|
2207
|
-
|
|
2208
|
-
const t = n.map(e1);
|
|
2266
|
+
function h1(n, e = 1) {
|
|
2267
|
+
const t = n.map(l1);
|
|
2209
2268
|
if (t.length === 0)
|
|
2210
2269
|
return {
|
|
2211
|
-
|
|
2270
|
+
baselines: [],
|
|
2212
2271
|
size: K()
|
|
2213
2272
|
};
|
|
2214
|
-
let o =
|
|
2215
|
-
const
|
|
2216
|
-
for (
|
|
2217
|
-
const
|
|
2218
|
-
|
|
2219
|
-
...g,
|
|
2220
|
-
baselineY: o
|
|
2221
|
-
}), i = g.lineAdvance);
|
|
2273
|
+
let o = 0, i, a = 0, s = 0;
|
|
2274
|
+
const r = [];
|
|
2275
|
+
for (const c of t) {
|
|
2276
|
+
const p = (c.lineAdvance * e - c.height) / 2, h = c.top + p;
|
|
2277
|
+
i === void 0 ? o = h : o += i + h, r.push(o), a = Math.min(a, o - c.top), s = Math.max(s, o + c.bottom), i = c.bottom + p;
|
|
2222
2278
|
}
|
|
2223
|
-
const
|
|
2279
|
+
const l = -a;
|
|
2224
2280
|
return {
|
|
2225
|
-
|
|
2226
|
-
...u,
|
|
2227
|
-
// Keep all returned baselines relative to the top edge of the final text block
|
|
2228
|
-
baselineY: u.baselineY + l
|
|
2229
|
-
})),
|
|
2281
|
+
baselines: r.map((c) => c + l),
|
|
2230
2282
|
size: K({
|
|
2231
|
-
height:
|
|
2232
|
-
width: Math.max(...
|
|
2283
|
+
height: s - a,
|
|
2284
|
+
width: Math.max(...t.map((c) => c.width), 0)
|
|
2233
2285
|
})
|
|
2234
2286
|
};
|
|
2235
2287
|
}
|
|
2236
|
-
const
|
|
2237
|
-
function
|
|
2288
|
+
const c1 = 0.7, u1 = 0.3;
|
|
2289
|
+
function u0(n) {
|
|
2238
2290
|
const e = n.superscript, t = n.subscript && !e;
|
|
2239
2291
|
return !e && !t ? {
|
|
2240
2292
|
baselineShift: 0,
|
|
@@ -2242,20 +2294,20 @@ function c0(n) {
|
|
|
2242
2294
|
isSubscript: !1,
|
|
2243
2295
|
isSuperscript: !1
|
|
2244
2296
|
} : {
|
|
2245
|
-
baselineShift: n.fontSize *
|
|
2246
|
-
fontSize: n.fontSize *
|
|
2297
|
+
baselineShift: n.fontSize * u1 * (e ? -1 : 1),
|
|
2298
|
+
fontSize: n.fontSize * c1,
|
|
2247
2299
|
isSubscript: t,
|
|
2248
2300
|
isSuperscript: e
|
|
2249
2301
|
};
|
|
2250
2302
|
}
|
|
2251
|
-
function
|
|
2303
|
+
function Be(n, e = 0) {
|
|
2252
2304
|
return n ?? e;
|
|
2253
2305
|
}
|
|
2254
|
-
function
|
|
2255
|
-
const e =
|
|
2306
|
+
function f1(n) {
|
|
2307
|
+
const e = Be(
|
|
2256
2308
|
n.fontBoundingBoxAscent,
|
|
2257
2309
|
n.actualBoundingBoxAscent
|
|
2258
|
-
), t =
|
|
2310
|
+
), t = Be(
|
|
2259
2311
|
n.fontBoundingBoxDescent,
|
|
2260
2312
|
n.actualBoundingBoxDescent
|
|
2261
2313
|
);
|
|
@@ -2266,18 +2318,18 @@ function o1(n) {
|
|
|
2266
2318
|
width: n.width
|
|
2267
2319
|
};
|
|
2268
2320
|
}
|
|
2269
|
-
function
|
|
2270
|
-
const o =
|
|
2271
|
-
n.context.fillStyle =
|
|
2321
|
+
function f0(n, e, t = 1) {
|
|
2322
|
+
const o = u0(e);
|
|
2323
|
+
n.context.fillStyle = xe(e.color, t), n.context.font = `${e.fontStyle} ${e.fontWeight} ${o.fontSize}px ${e.fontFamily}`, n.type === Z.Browser ? n.context.textRendering = e.ligatures ? "optimizeLegibility" : "optimizeSpeed" : n.context.fontVariant = e.ligatures ? "common-ligatures" : "no-common-ligatures";
|
|
2272
2324
|
}
|
|
2273
|
-
function
|
|
2325
|
+
function d1(n, e, t) {
|
|
2274
2326
|
const o = [];
|
|
2275
2327
|
for (const i of n) {
|
|
2276
2328
|
const a = [], s = i.length === 0 ? [{ text: "" }] : i;
|
|
2277
2329
|
for (const r of s) {
|
|
2278
2330
|
const { text: l, ...c } = r, u = { ...e, ...c };
|
|
2279
|
-
|
|
2280
|
-
const
|
|
2331
|
+
f0(t, u);
|
|
2332
|
+
const p = t.context.measureText(l), h = f1(p), { baselineShift: f } = u0(u), v = Math.max(0, h.top - f), y = Math.max(0, h.bottom + f);
|
|
2281
2333
|
a.push({
|
|
2282
2334
|
...h,
|
|
2283
2335
|
baselineShift: f,
|
|
@@ -2291,14 +2343,14 @@ function s1(n, e, t) {
|
|
|
2291
2343
|
}
|
|
2292
2344
|
return o;
|
|
2293
2345
|
}
|
|
2294
|
-
const
|
|
2346
|
+
const p1 = ({ ctx: n, object: e, opacity: t }) => {
|
|
2295
2347
|
const o = e.opacity * t;
|
|
2296
2348
|
if (o === 0)
|
|
2297
2349
|
return;
|
|
2298
|
-
const { length: i } = e, a =
|
|
2299
|
-
let u = c.origin.x,
|
|
2350
|
+
const { length: i } = e, a = ue(e.text), s = a1(e), r = d1(a, s, n), l = h1(r, e.lineSpacing), c = ut(Y({ x: e.x, y: e.y }), e.anchor, l.size);
|
|
2351
|
+
let u = c.origin.x, p = 0;
|
|
2300
2352
|
for (let h = 0; h < a.length; h++) {
|
|
2301
|
-
const f = a[h], v = r[h], y = l.
|
|
2353
|
+
const f = a[h], v = r[h], y = l.baselines[h];
|
|
2302
2354
|
if (f == null || v == null || y == null) {
|
|
2303
2355
|
console.error("Could not determine text units or sizes for line");
|
|
2304
2356
|
continue;
|
|
@@ -2318,8 +2370,8 @@ const a1 = ({ ctx: n, object: e, opacity: t }) => {
|
|
|
2318
2370
|
at(e.alignment);
|
|
2319
2371
|
break;
|
|
2320
2372
|
}
|
|
2321
|
-
const C = c.origin.y + y
|
|
2322
|
-
for (let M = 0; M < f.length && !(i !== null &&
|
|
2373
|
+
const C = c.origin.y + y;
|
|
2374
|
+
for (let M = 0; M < f.length && !(i !== null && p >= i); M++) {
|
|
2323
2375
|
const L = f[M], E = v[M];
|
|
2324
2376
|
if (L == null || E == null) {
|
|
2325
2377
|
console.error("Could not determine text unit or size for unit");
|
|
@@ -2327,41 +2379,41 @@ const a1 = ({ ctx: n, object: e, opacity: t }) => {
|
|
|
2327
2379
|
}
|
|
2328
2380
|
const { text: S, ...k } = L;
|
|
2329
2381
|
let F;
|
|
2330
|
-
if (i !== null &&
|
|
2331
|
-
const
|
|
2332
|
-
F = S.slice(0,
|
|
2382
|
+
if (i !== null && p + S.length > i) {
|
|
2383
|
+
const $ = i - p;
|
|
2384
|
+
F = S.slice(0, $);
|
|
2333
2385
|
}
|
|
2334
2386
|
const U = F ?? S;
|
|
2335
|
-
|
|
2387
|
+
p += U.length;
|
|
2336
2388
|
const B = { ...s, ...k };
|
|
2337
|
-
|
|
2389
|
+
f0(n, B, o), n.context.fillText(U, u, C + E.baselineShift), u += E.width;
|
|
2338
2390
|
}
|
|
2339
2391
|
}
|
|
2340
|
-
},
|
|
2341
|
-
[
|
|
2342
|
-
[
|
|
2343
|
-
[
|
|
2344
|
-
[
|
|
2345
|
-
[
|
|
2346
|
-
[
|
|
2347
|
-
[
|
|
2348
|
-
[
|
|
2349
|
-
[
|
|
2350
|
-
[
|
|
2392
|
+
}, g1 = {
|
|
2393
|
+
[j.ARROW]: jn,
|
|
2394
|
+
[j.CIRCLE]: Un,
|
|
2395
|
+
[j.GROUP]: Yn,
|
|
2396
|
+
[j.IMAGE]: Wn,
|
|
2397
|
+
[j.LINE]: Xn,
|
|
2398
|
+
[j.MASK]: Kn,
|
|
2399
|
+
[j.PATH]: Zn,
|
|
2400
|
+
[j.POLYGON]: Qn,
|
|
2401
|
+
[j.RECTANGLE]: n1,
|
|
2402
|
+
[j.SLIDE_OBJECT]: () => {
|
|
2351
2403
|
},
|
|
2352
|
-
[
|
|
2353
|
-
[
|
|
2354
|
-
[
|
|
2404
|
+
[j.SPOTLIGHT]: o1,
|
|
2405
|
+
[j.SVG]: s1,
|
|
2406
|
+
[j.TEXT]: p1
|
|
2355
2407
|
};
|
|
2356
|
-
function
|
|
2408
|
+
function x1(n) {
|
|
2357
2409
|
const e = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
2358
2410
|
return e.setAttribute("viewBox", `0 0 ${n.width} ${n.height}`), e.style.backgroundColor = "transparent", e.style.position = "absolute", e.style.width = "100%", e;
|
|
2359
2411
|
}
|
|
2360
|
-
function
|
|
2412
|
+
function y1(n, e) {
|
|
2361
2413
|
if (n === null)
|
|
2362
2414
|
return null;
|
|
2363
2415
|
const t = ut(
|
|
2364
|
-
|
|
2416
|
+
Y({ x: e.x, y: e.y }),
|
|
2365
2417
|
e.anchor,
|
|
2366
2418
|
K({ width: e.width, height: e.height })
|
|
2367
2419
|
), o = document.createElementNS("http://www.w3.org/2000/svg", "foreignObject");
|
|
@@ -2377,14 +2429,14 @@ function c1(n, e) {
|
|
|
2377
2429
|
a !== null && a(), n.removeChild(o);
|
|
2378
2430
|
};
|
|
2379
2431
|
}
|
|
2380
|
-
async function
|
|
2432
|
+
async function v1(n) {
|
|
2381
2433
|
if (Object.keys(n).length === 0)
|
|
2382
2434
|
return {};
|
|
2383
2435
|
const e = {}, t = (i) => new Promise((a, s) => {
|
|
2384
2436
|
const r = new Image();
|
|
2385
2437
|
if (r.onload = () => a(r), r.onerror = (c) => s(c), i.includes("</svg>")) {
|
|
2386
|
-
const c = i.replace(/<\?xml[^?]*\?>\s*/g, ""), u = new Blob([c], { type: "image/svg+xml;charset=utf-8" }),
|
|
2387
|
-
r.src =
|
|
2438
|
+
const c = i.replace(/<\?xml[^?]*\?>\s*/g, ""), u = new Blob([c], { type: "image/svg+xml;charset=utf-8" }), p = URL.createObjectURL(u);
|
|
2439
|
+
r.src = p;
|
|
2388
2440
|
} else
|
|
2389
2441
|
r.src = i;
|
|
2390
2442
|
}), o = Object.entries(n).map(async ([i, a]) => {
|
|
@@ -2401,9 +2453,9 @@ async function u1(n) {
|
|
|
2401
2453
|
}
|
|
2402
2454
|
return e;
|
|
2403
2455
|
}
|
|
2404
|
-
const
|
|
2405
|
-
function
|
|
2406
|
-
const n =
|
|
2456
|
+
const De = "presenterPendingVariables:";
|
|
2457
|
+
function w1() {
|
|
2458
|
+
const n = d0();
|
|
2407
2459
|
if (n === null)
|
|
2408
2460
|
return {};
|
|
2409
2461
|
try {
|
|
@@ -2421,27 +2473,27 @@ function f1() {
|
|
|
2421
2473
|
return console.error("Failed to parse pending presenter variable state from sessionStorage:", e), n.removeItem(ie()), {};
|
|
2422
2474
|
}
|
|
2423
2475
|
}
|
|
2424
|
-
function
|
|
2425
|
-
const e =
|
|
2476
|
+
function m1(n) {
|
|
2477
|
+
const e = d0();
|
|
2426
2478
|
e !== null && e.setItem(ie(), JSON.stringify({ values: n }));
|
|
2427
2479
|
}
|
|
2428
2480
|
function ie() {
|
|
2429
|
-
return typeof window > "u" ?
|
|
2481
|
+
return typeof window > "u" ? De : `${De}${window.location.origin}${window.location.pathname}`;
|
|
2430
2482
|
}
|
|
2431
|
-
function
|
|
2483
|
+
function d0() {
|
|
2432
2484
|
try {
|
|
2433
2485
|
return typeof sessionStorage > "u" ? null : sessionStorage;
|
|
2434
2486
|
} catch {
|
|
2435
2487
|
return null;
|
|
2436
2488
|
}
|
|
2437
2489
|
}
|
|
2438
|
-
const
|
|
2439
|
-
let Ot = /* @__PURE__ */ new Map(),
|
|
2440
|
-
function
|
|
2441
|
-
|
|
2442
|
-
const e = n ?? {}, t =
|
|
2490
|
+
const b1 = 0, A1 = 1, p0 = 0, T1 = 0.01, qt = /* @__PURE__ */ new Map();
|
|
2491
|
+
let Ot = /* @__PURE__ */ new Map(), qe = !1, ze = 1;
|
|
2492
|
+
function $i(n = null) {
|
|
2493
|
+
S1();
|
|
2494
|
+
const e = n ?? {}, t = C1(), o = M1(t, e), i = Ot.get(o.id);
|
|
2443
2495
|
if (i !== void 0) {
|
|
2444
|
-
const a =
|
|
2496
|
+
const a = y0(i, o);
|
|
2445
2497
|
return Ot.set(o.id, a), a;
|
|
2446
2498
|
}
|
|
2447
2499
|
return o.default;
|
|
@@ -2449,42 +2501,42 @@ function Di(n = null) {
|
|
|
2449
2501
|
function g0() {
|
|
2450
2502
|
return Array.from(qt.values());
|
|
2451
2503
|
}
|
|
2452
|
-
function
|
|
2504
|
+
function x0(n) {
|
|
2453
2505
|
const e = qt.get(n);
|
|
2454
|
-
return e === void 0 ?
|
|
2506
|
+
return e === void 0 ? p0 : Ot.get(e.id) ?? e.default;
|
|
2455
2507
|
}
|
|
2456
|
-
function
|
|
2508
|
+
function L1(n, e) {
|
|
2457
2509
|
const t = qt.get(n);
|
|
2458
2510
|
if (t === void 0)
|
|
2459
2511
|
return e;
|
|
2460
|
-
const o =
|
|
2512
|
+
const o = y0(e, t);
|
|
2461
2513
|
return Ot.set(t.id, o), o;
|
|
2462
2514
|
}
|
|
2463
|
-
function
|
|
2464
|
-
const t = e.min ??
|
|
2515
|
+
function M1(n, e) {
|
|
2516
|
+
const t = e.min ?? b1, o = e.max ?? A1, i = Math.min(t, o), a = Math.max(t, o), s = e.increment !== void 0 && e.increment > 0 ? e.increment : T1, r = {
|
|
2465
2517
|
id: n,
|
|
2466
2518
|
name: e.name ?? n,
|
|
2467
2519
|
min: i,
|
|
2468
2520
|
max: a,
|
|
2469
|
-
default:
|
|
2521
|
+
default: v0(e.default ?? p0, i, a),
|
|
2470
2522
|
increment: s
|
|
2471
2523
|
};
|
|
2472
2524
|
return qt.set(n, r), r;
|
|
2473
2525
|
}
|
|
2474
|
-
function
|
|
2475
|
-
const n = `var${
|
|
2476
|
-
return
|
|
2526
|
+
function C1() {
|
|
2527
|
+
const n = `var${ze}`;
|
|
2528
|
+
return ze += 1, n;
|
|
2477
2529
|
}
|
|
2478
|
-
function
|
|
2479
|
-
|
|
2530
|
+
function S1() {
|
|
2531
|
+
qe || (Ot = new Map(Object.entries(w1())), qe = !0);
|
|
2480
2532
|
}
|
|
2481
|
-
function
|
|
2482
|
-
return
|
|
2533
|
+
function y0(n, e) {
|
|
2534
|
+
return v0(n, e.min, e.max);
|
|
2483
2535
|
}
|
|
2484
|
-
function
|
|
2536
|
+
function v0(n, e, t) {
|
|
2485
2537
|
return Math.max(e, Math.min(t, n));
|
|
2486
2538
|
}
|
|
2487
|
-
function
|
|
2539
|
+
function P1({
|
|
2488
2540
|
onCommit: n,
|
|
2489
2541
|
onPreview: e
|
|
2490
2542
|
}) {
|
|
@@ -2515,10 +2567,10 @@ function b1({
|
|
|
2515
2567
|
backdropFilter: "blur(10px)"
|
|
2516
2568
|
});
|
|
2517
2569
|
for (const i of t)
|
|
2518
|
-
o.appendChild(
|
|
2570
|
+
o.appendChild(E1(i, e, n));
|
|
2519
2571
|
return o;
|
|
2520
2572
|
}
|
|
2521
|
-
function
|
|
2573
|
+
function E1(n, e, t) {
|
|
2522
2574
|
const o = document.createElement("div");
|
|
2523
2575
|
o.dataset.presenterVariableId = n.id, o.dataset.presenterVariableName = n.name, Object.assign(o.style, {
|
|
2524
2576
|
display: "grid",
|
|
@@ -2551,106 +2603,107 @@ function A1(n, e, t) {
|
|
|
2551
2603
|
color: "#ffffff",
|
|
2552
2604
|
font: "inherit"
|
|
2553
2605
|
});
|
|
2554
|
-
let r =
|
|
2555
|
-
const l = (
|
|
2556
|
-
const h =
|
|
2606
|
+
let r = x0(n.id);
|
|
2607
|
+
const l = (p) => {
|
|
2608
|
+
const h = I1(p);
|
|
2557
2609
|
a.value = h, s.value = h;
|
|
2558
|
-
}, c = (
|
|
2559
|
-
Number.isFinite(
|
|
2560
|
-
}, u = (
|
|
2561
|
-
Number.isFinite(
|
|
2610
|
+
}, c = (p) => {
|
|
2611
|
+
Number.isFinite(p) && (r = e(n.id, p), l(r));
|
|
2612
|
+
}, u = (p) => {
|
|
2613
|
+
Number.isFinite(p) && (p !== r && c(p), t());
|
|
2562
2614
|
};
|
|
2563
2615
|
return a.addEventListener("input", () => c(a.valueAsNumber)), a.addEventListener("change", () => u(a.valueAsNumber)), s.addEventListener("change", () => u(s.valueAsNumber)), l(r), o.appendChild(i), o.appendChild(a), o.appendChild(s), o;
|
|
2564
2616
|
}
|
|
2565
|
-
function
|
|
2617
|
+
function I1(n) {
|
|
2566
2618
|
return Number.isInteger(n) ? n.toString() : parseFloat(n.toFixed(6)).toString();
|
|
2567
2619
|
}
|
|
2568
|
-
function
|
|
2569
|
-
const t =
|
|
2620
|
+
function k1({ container: n, onCommit: e }) {
|
|
2621
|
+
const t = P1({
|
|
2570
2622
|
onPreview: (o, i) => {
|
|
2571
|
-
const a =
|
|
2572
|
-
return
|
|
2623
|
+
const a = L1(o, i);
|
|
2624
|
+
return m1(O1()), a;
|
|
2573
2625
|
},
|
|
2574
2626
|
onCommit: e
|
|
2575
2627
|
});
|
|
2576
2628
|
t !== null && n.appendChild(t);
|
|
2577
2629
|
}
|
|
2578
|
-
function
|
|
2630
|
+
function O1() {
|
|
2579
2631
|
const n = {};
|
|
2580
2632
|
for (const e of g0())
|
|
2581
|
-
n[e.id] =
|
|
2633
|
+
n[e.id] = x0(e.id);
|
|
2582
2634
|
return n;
|
|
2583
2635
|
}
|
|
2584
|
-
class
|
|
2636
|
+
class Yi {
|
|
2585
2637
|
constructor(e) {
|
|
2586
2638
|
this.navigator = null;
|
|
2587
2639
|
const { objectRenderers: t, scale: o = 1, ...i } = e;
|
|
2588
2640
|
this.props = {
|
|
2589
|
-
presentation:
|
|
2641
|
+
presentation: bn(),
|
|
2590
2642
|
element: document.body,
|
|
2591
2643
|
objectRenderers: {
|
|
2592
|
-
...
|
|
2644
|
+
...g1,
|
|
2593
2645
|
...t
|
|
2594
2646
|
},
|
|
2595
2647
|
cacheDurationMinutes: 15,
|
|
2596
|
-
scale:
|
|
2648
|
+
scale: _1(o),
|
|
2597
2649
|
...i
|
|
2598
|
-
}, this.state = { ...
|
|
2650
|
+
}, this.state = { ...Fe };
|
|
2599
2651
|
}
|
|
2600
2652
|
/** Starts the presentation. */
|
|
2601
2653
|
async present() {
|
|
2602
2654
|
const { presentation: e, element: t, scale: o } = this.props;
|
|
2603
2655
|
this.hideCursor();
|
|
2604
|
-
const i =
|
|
2605
|
-
|
|
2606
|
-
...
|
|
2607
|
-
|
|
2656
|
+
const i = In(e.title), a = Dn(e.size), s = x1(e.size);
|
|
2657
|
+
s.style.transformOrigin = "center center", s.style.transform = `scale(${o})`, this.state = {
|
|
2658
|
+
...Fe,
|
|
2659
|
+
accessibleDescriptionElement: i,
|
|
2660
|
+
imageById: await v1({
|
|
2608
2661
|
...e.resources.images,
|
|
2609
2662
|
...Pn(e)
|
|
2610
2663
|
}),
|
|
2611
|
-
canvas:
|
|
2612
|
-
extrasContainer:
|
|
2664
|
+
canvas: a,
|
|
2665
|
+
extrasContainer: s
|
|
2613
2666
|
};
|
|
2614
|
-
const
|
|
2667
|
+
const r = Tn(e, t), l = h0(t), c = (h, f) => {
|
|
2615
2668
|
this.state.shortcutState.shortcuts.b = {
|
|
2616
2669
|
slideIndex: this.state.slideIndex,
|
|
2617
2670
|
buildIndex: this.state.buildIndex
|
|
2618
|
-
}, this.renderSlide(
|
|
2619
|
-
},
|
|
2620
|
-
|
|
2671
|
+
}, this.renderSlide(h ?? this.state.slideIndex, f);
|
|
2672
|
+
}, u = (h = !1) => {
|
|
2673
|
+
l && (this.navigator = dn({
|
|
2621
2674
|
presentation: e,
|
|
2622
2675
|
shortcutState: this.state.shortcutState,
|
|
2623
|
-
onNavigateToSlide: (
|
|
2624
|
-
onRenderSlide:
|
|
2625
|
-
onNext: (
|
|
2626
|
-
onPrevious: (
|
|
2627
|
-
forceRefresh:
|
|
2676
|
+
onNavigateToSlide: (f) => this.renderSlide(f),
|
|
2677
|
+
onRenderSlide: c,
|
|
2678
|
+
onNext: (f) => this.next(f),
|
|
2679
|
+
onPrevious: (f) => this.previous(f),
|
|
2680
|
+
forceRefresh: h
|
|
2628
2681
|
}), this.updateNavigator());
|
|
2629
2682
|
};
|
|
2630
|
-
|
|
2683
|
+
a0(
|
|
2631
2684
|
e,
|
|
2632
|
-
|
|
2685
|
+
r,
|
|
2633
2686
|
this.state.shortcutState,
|
|
2634
2687
|
{
|
|
2635
|
-
onNext: (
|
|
2636
|
-
onPrevious: (
|
|
2637
|
-
onRenderSlide:
|
|
2638
|
-
onShowNavigator: () =>
|
|
2688
|
+
onNext: (h) => this.next(h),
|
|
2689
|
+
onPrevious: (h) => this.previous(h),
|
|
2690
|
+
onRenderSlide: c,
|
|
2691
|
+
onShowNavigator: () => u()
|
|
2639
2692
|
},
|
|
2640
2693
|
{
|
|
2641
|
-
focusOnPointerDown: !
|
|
2642
|
-
keyEventTarget:
|
|
2694
|
+
focusOnPointerDown: !l,
|
|
2695
|
+
keyEventTarget: l ? window : r
|
|
2643
2696
|
}
|
|
2644
|
-
), t.replaceChildren(),
|
|
2645
|
-
container:
|
|
2697
|
+
), t.replaceChildren(), r.appendChild(i), r.appendChild(a), r.appendChild(s), k1({
|
|
2698
|
+
container: r,
|
|
2646
2699
|
onCommit: () => this.reloadAfterVariableChange()
|
|
2647
|
-
}), t.appendChild(
|
|
2648
|
-
const
|
|
2649
|
-
|
|
2700
|
+
}), t.appendChild(r);
|
|
2701
|
+
const p = En(e, this.props.cacheDurationMinutes);
|
|
2702
|
+
p !== null ? this.renderSlide(p.slideIndex, p.buildIndex) : this.renderSlide(0), on() && u(!0);
|
|
2650
2703
|
}
|
|
2651
2704
|
reloadAfterVariableChange() {
|
|
2652
2705
|
const { presentation: e } = this.props;
|
|
2653
|
-
this.state.currentAnimationId !== null && (cancelAnimationFrame(this.state.currentAnimationId), this.state.currentAnimationId = null),
|
|
2706
|
+
this.state.currentAnimationId !== null && (cancelAnimationFrame(this.state.currentAnimationId), this.state.currentAnimationId = null), Re({
|
|
2654
2707
|
title: e.title,
|
|
2655
2708
|
slideIndex: this.state.slideIndex,
|
|
2656
2709
|
buildIndex: this.state.buildIndex
|
|
@@ -2658,7 +2711,7 @@ class qi {
|
|
|
2658
2711
|
}
|
|
2659
2712
|
renderSlide(e, t = 0, o = null) {
|
|
2660
2713
|
const { presentation: i } = this.props, { canvas: a } = this.state, s = this.state.slideIndex !== e;
|
|
2661
|
-
this.state.slideIndex = e, this.state.buildIndex = t, o === null &&
|
|
2714
|
+
this.state.slideIndex = e, this.state.buildIndex = t, o === null && Re({ title: i.title, slideIndex: e, buildIndex: t });
|
|
2662
2715
|
const r = i.slides[e];
|
|
2663
2716
|
if (!(r === void 0 || a === null)) {
|
|
2664
2717
|
if (s || this.state.mountedExtrasCleanups.length === 0 && r.extras.length > 0) {
|
|
@@ -2666,11 +2719,20 @@ class qi {
|
|
|
2666
2719
|
l();
|
|
2667
2720
|
this.state.mountedExtrasCleanups = [];
|
|
2668
2721
|
for (const l of r.extras) {
|
|
2669
|
-
const c =
|
|
2722
|
+
const c = y1(this.state.extrasContainer, l);
|
|
2670
2723
|
c !== null && this.state.mountedExtrasCleanups.push(c);
|
|
2671
2724
|
}
|
|
2672
2725
|
}
|
|
2673
|
-
this.renderCanvas(a, e, t, o, this.props.scale), o === null
|
|
2726
|
+
if (this.renderCanvas(a, e, t, o, this.props.scale), o === null) {
|
|
2727
|
+
if (this.state.accessibleDescriptionElement !== null) {
|
|
2728
|
+
const l = Ne({ slide: r, buildIndex: t, buildTime: o });
|
|
2729
|
+
Fn(
|
|
2730
|
+
this.state.accessibleDescriptionElement,
|
|
2731
|
+
kn(r, l)
|
|
2732
|
+
);
|
|
2733
|
+
}
|
|
2734
|
+
this.updateNavigator();
|
|
2735
|
+
}
|
|
2674
2736
|
}
|
|
2675
2737
|
}
|
|
2676
2738
|
renderCanvas(e, t, o = 0, i = null, a = 1) {
|
|
@@ -2683,16 +2745,16 @@ class qi {
|
|
|
2683
2745
|
type: Z.Browser,
|
|
2684
2746
|
context: c
|
|
2685
2747
|
};
|
|
2686
|
-
|
|
2687
|
-
const
|
|
2688
|
-
if (
|
|
2748
|
+
Bn(e, u);
|
|
2749
|
+
const p = r.slides[t];
|
|
2750
|
+
if (p === void 0)
|
|
2689
2751
|
return;
|
|
2690
|
-
const h =
|
|
2691
|
-
slide:
|
|
2752
|
+
const h = Ne({
|
|
2753
|
+
slide: p,
|
|
2692
2754
|
buildIndex: o,
|
|
2693
2755
|
buildTime: i
|
|
2694
2756
|
});
|
|
2695
|
-
u.context.fillStyle =
|
|
2757
|
+
u.context.fillStyle = xe(r.backgroundColor), u.context.fillRect(0, 0, e.width, e.height);
|
|
2696
2758
|
function f(y, T) {
|
|
2697
2759
|
const C = s[y.objectType], M = h.get(y);
|
|
2698
2760
|
C === void 0 || M === void 0 || C({
|
|
@@ -2702,7 +2764,7 @@ class qi {
|
|
|
2702
2764
|
opacity: T,
|
|
2703
2765
|
renderScale: a,
|
|
2704
2766
|
renderObject: f,
|
|
2705
|
-
createPath2D:
|
|
2767
|
+
createPath2D: qn,
|
|
2706
2768
|
slideSize: r.size
|
|
2707
2769
|
});
|
|
2708
2770
|
}
|
|
@@ -2711,7 +2773,7 @@ class qi {
|
|
|
2711
2773
|
e.width * (1 - a) / 2,
|
|
2712
2774
|
e.height * (1 - a) / 2
|
|
2713
2775
|
), u.context.scale(a, a));
|
|
2714
|
-
for (const y of
|
|
2776
|
+
for (const y of p.objects)
|
|
2715
2777
|
f(y, 1);
|
|
2716
2778
|
v && u.context.restore();
|
|
2717
2779
|
}
|
|
@@ -2744,8 +2806,8 @@ class qi {
|
|
|
2744
2806
|
return;
|
|
2745
2807
|
const r = s.animations[a];
|
|
2746
2808
|
if (r !== void 0 && !e) {
|
|
2747
|
-
const l = performance.now(), c =
|
|
2748
|
-
const h =
|
|
2809
|
+
const l = performance.now(), c = An(r), u = (p) => {
|
|
2810
|
+
const h = p - l;
|
|
2749
2811
|
h < c ? (this.renderSlide(i, a + 1, h), this.state.currentAnimationId = requestAnimationFrame(u)) : this.renderSlide(i, a + 1, null);
|
|
2750
2812
|
};
|
|
2751
2813
|
this.state.currentAnimationId = requestAnimationFrame(u);
|
|
@@ -2774,12 +2836,12 @@ class qi {
|
|
|
2774
2836
|
this.props.element.style.cursor = "none", (t = (e = this.state.canvas) == null ? void 0 : e.parentElement) == null || t.style.setProperty("cursor", "none");
|
|
2775
2837
|
}
|
|
2776
2838
|
}
|
|
2777
|
-
function
|
|
2839
|
+
function _1(n) {
|
|
2778
2840
|
return n <= 0 || n > 1 ? (console.warn(
|
|
2779
2841
|
`BrowserCanvasRenderer scale must be positive and no greater than 1. Received ${n}; using 1 instead.`
|
|
2780
2842
|
), 1) : n;
|
|
2781
2843
|
}
|
|
2782
|
-
function
|
|
2844
|
+
function Wi(n = 1e3, e = {}) {
|
|
2783
2845
|
return {
|
|
2784
2846
|
type: dt.PAUSE,
|
|
2785
2847
|
isKey: !1,
|
|
@@ -2789,32 +2851,32 @@ function zi(n = 1e3, e = {}) {
|
|
|
2789
2851
|
...e
|
|
2790
2852
|
};
|
|
2791
2853
|
}
|
|
2792
|
-
function
|
|
2854
|
+
function Gi(n, e = {}) {
|
|
2793
2855
|
return {
|
|
2794
2856
|
...e,
|
|
2795
2857
|
text: n
|
|
2796
2858
|
};
|
|
2797
2859
|
}
|
|
2798
|
-
function
|
|
2860
|
+
function Xi(n = G.BLACK) {
|
|
2799
2861
|
return { ...n, alpha: 1 };
|
|
2800
2862
|
}
|
|
2801
|
-
function
|
|
2863
|
+
function N1(n) {
|
|
2802
2864
|
for (var e = -1, t = n.length, o, i = n[t - 1], a = 0; ++e < t; )
|
|
2803
2865
|
o = i, i = n[e], a += o[1] * i[0] - o[0] * i[1];
|
|
2804
2866
|
return a / 2;
|
|
2805
2867
|
}
|
|
2806
|
-
function
|
|
2868
|
+
function R1(n) {
|
|
2807
2869
|
for (var e = -1, t = n.length, o = n[t - 1], i, a, s = o[0], r = o[1], l = 0; ++e < t; )
|
|
2808
2870
|
i = s, a = r, o = n[e], s = o[0], r = o[1], i -= s, a -= r, l += Math.sqrt(i * i + a * a);
|
|
2809
2871
|
return l;
|
|
2810
2872
|
}
|
|
2811
|
-
function
|
|
2873
|
+
function F1(n) {
|
|
2812
2874
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
2813
2875
|
}
|
|
2814
|
-
var
|
|
2815
|
-
function
|
|
2816
|
-
if (
|
|
2817
|
-
|
|
2876
|
+
var $t, je;
|
|
2877
|
+
function B1() {
|
|
2878
|
+
if (je) return $t;
|
|
2879
|
+
je = 1;
|
|
2818
2880
|
var n = { a: 7, c: 6, h: 1, l: 2, m: 2, r: 4, q: 4, s: 4, t: 2, v: 1, z: 0 }, e = [
|
|
2819
2881
|
5760,
|
|
2820
2882
|
6158,
|
|
@@ -2926,7 +2988,7 @@ function I1() {
|
|
|
2926
2988
|
}
|
|
2927
2989
|
f.index = y, f.param = parseFloat(f.path.slice(v, y)) + 0;
|
|
2928
2990
|
}
|
|
2929
|
-
function
|
|
2991
|
+
function p(f) {
|
|
2930
2992
|
var v, y;
|
|
2931
2993
|
v = f.path[f.segmentStart], y = v.toLowerCase();
|
|
2932
2994
|
var T = f.data;
|
|
@@ -2943,13 +3005,13 @@ function I1() {
|
|
|
2943
3005
|
return;
|
|
2944
3006
|
}
|
|
2945
3007
|
if (M = n[f.path[f.index].toLowerCase()], f.index++, l(f), f.data = [], !M) {
|
|
2946
|
-
|
|
3008
|
+
p(f);
|
|
2947
3009
|
return;
|
|
2948
3010
|
}
|
|
2949
3011
|
for (C = !1; ; ) {
|
|
2950
3012
|
for (L = M; L > 0; L--) {
|
|
2951
3013
|
if (T && (L === 3 || L === 4) ? c(f) : u(f), f.err.length) {
|
|
2952
|
-
|
|
3014
|
+
p(f);
|
|
2953
3015
|
return;
|
|
2954
3016
|
}
|
|
2955
3017
|
f.data.push(f.param), l(f), C = !1, f.index < v && f.path.charCodeAt(f.index) === 44 && (f.index++, l(f), C = !0);
|
|
@@ -2957,9 +3019,9 @@ function I1() {
|
|
|
2957
3019
|
if (!C && (f.index >= f.max || !s(f.path.charCodeAt(f.index))))
|
|
2958
3020
|
break;
|
|
2959
3021
|
}
|
|
2960
|
-
|
|
3022
|
+
p(f);
|
|
2961
3023
|
}
|
|
2962
|
-
return
|
|
3024
|
+
return $t = function(v) {
|
|
2963
3025
|
var y = new r(v), T = y.max;
|
|
2964
3026
|
for (l(y); y.index < T && !y.err.length; )
|
|
2965
3027
|
h(y);
|
|
@@ -2967,12 +3029,12 @@ function I1() {
|
|
|
2967
3029
|
err: y.err,
|
|
2968
3030
|
segments: y.result
|
|
2969
3031
|
};
|
|
2970
|
-
},
|
|
3032
|
+
}, $t;
|
|
2971
3033
|
}
|
|
2972
|
-
var
|
|
2973
|
-
function
|
|
2974
|
-
if (
|
|
2975
|
-
|
|
3034
|
+
var Yt, Ve;
|
|
3035
|
+
function w0() {
|
|
3036
|
+
if (Ve) return Yt;
|
|
3037
|
+
Ve = 1;
|
|
2976
3038
|
function n(t, o) {
|
|
2977
3039
|
return [
|
|
2978
3040
|
t[0] * o[0] + t[2] * o[1],
|
|
@@ -3017,13 +3079,13 @@ function v0() {
|
|
|
3017
3079
|
t * a[0] + o * a[2] + (i ? 0 : a[4]),
|
|
3018
3080
|
t * a[1] + o * a[3] + (i ? 0 : a[5])
|
|
3019
3081
|
]) : [t, o];
|
|
3020
|
-
},
|
|
3082
|
+
}, Yt = e, Yt;
|
|
3021
3083
|
}
|
|
3022
|
-
var Wt,
|
|
3023
|
-
function
|
|
3024
|
-
if (
|
|
3025
|
-
|
|
3026
|
-
var n =
|
|
3084
|
+
var Wt, He;
|
|
3085
|
+
function D1() {
|
|
3086
|
+
if (He) return Wt;
|
|
3087
|
+
He = 1;
|
|
3088
|
+
var n = w0(), e = {
|
|
3027
3089
|
matrix: !0,
|
|
3028
3090
|
scale: !0,
|
|
3029
3091
|
rotate: !0,
|
|
@@ -3065,53 +3127,53 @@ function k1() {
|
|
|
3065
3127
|
}), s;
|
|
3066
3128
|
}, Wt;
|
|
3067
3129
|
}
|
|
3068
|
-
var Gt,
|
|
3069
|
-
function
|
|
3070
|
-
if (
|
|
3071
|
-
|
|
3130
|
+
var Gt, Ue;
|
|
3131
|
+
function q1() {
|
|
3132
|
+
if (Ue) return Gt;
|
|
3133
|
+
Ue = 1;
|
|
3072
3134
|
var n = Math.PI * 2;
|
|
3073
3135
|
function e(i, a, s, r) {
|
|
3074
3136
|
var l = i * r - a * s < 0 ? -1 : 1, c = i * s + a * r;
|
|
3075
3137
|
return c > 1 && (c = 1), c < -1 && (c = -1), l * Math.acos(c);
|
|
3076
3138
|
}
|
|
3077
|
-
function t(i, a, s, r, l, c, u,
|
|
3078
|
-
var v = f * (i - s) / 2 + h * (a - r) / 2, y = -h * (i - s) / 2 + f * (a - r) / 2, T = u * u, C =
|
|
3139
|
+
function t(i, a, s, r, l, c, u, p, h, f) {
|
|
3140
|
+
var v = f * (i - s) / 2 + h * (a - r) / 2, y = -h * (i - s) / 2 + f * (a - r) / 2, T = u * u, C = p * p, M = v * v, L = y * y, E = T * C - T * L - C * M;
|
|
3079
3141
|
E < 0 && (E = 0), E /= T * L + C * M, E = Math.sqrt(E) * (l === c ? -1 : 1);
|
|
3080
|
-
var S = E * u /
|
|
3142
|
+
var S = E * u / p * y, k = E * -p / u * v, F = f * S - h * k + (i + s) / 2, U = h * S + f * k + (a + r) / 2, B = (v - S) / u, $ = (y - k) / p, lt = (-v - S) / u, Q = (-y - k) / p, ft = e(1, 0, B, $), it = e(B, $, lt, Q);
|
|
3081
3143
|
return c === 0 && it > 0 && (it -= n), c === 1 && it < 0 && (it += n), [F, U, ft, it];
|
|
3082
3144
|
}
|
|
3083
3145
|
function o(i, a) {
|
|
3084
3146
|
var s = 1.3333333333333333 * Math.tan(a / 4), r = Math.cos(i), l = Math.sin(i), c = Math.cos(i + a), u = Math.sin(i + a);
|
|
3085
3147
|
return [r, l, r - l * s, l + r * s, c + u * s, u - c * s, c, u];
|
|
3086
3148
|
}
|
|
3087
|
-
return Gt = function(a, s, r, l, c, u,
|
|
3149
|
+
return Gt = function(a, s, r, l, c, u, p, h, f) {
|
|
3088
3150
|
var v = Math.sin(f * n / 360), y = Math.cos(f * n / 360), T = y * (a - r) / 2 + v * (s - l) / 2, C = -v * (a - r) / 2 + y * (s - l) / 2;
|
|
3089
3151
|
if (T === 0 && C === 0)
|
|
3090
3152
|
return [];
|
|
3091
|
-
if (
|
|
3153
|
+
if (p === 0 || h === 0)
|
|
3092
3154
|
return [];
|
|
3093
|
-
|
|
3094
|
-
var M = T * T / (
|
|
3095
|
-
M > 1 && (
|
|
3096
|
-
var L = t(a, s, r, l, c, u,
|
|
3155
|
+
p = Math.abs(p), h = Math.abs(h);
|
|
3156
|
+
var M = T * T / (p * p) + C * C / (h * h);
|
|
3157
|
+
M > 1 && (p *= Math.sqrt(M), h *= Math.sqrt(M));
|
|
3158
|
+
var L = t(a, s, r, l, c, u, p, h, v, y), E = [], S = L[2], k = L[3], F = Math.max(Math.ceil(Math.abs(k) / (n / 4)), 1);
|
|
3097
3159
|
k /= F;
|
|
3098
3160
|
for (var U = 0; U < F; U++)
|
|
3099
3161
|
E.push(o(S, k)), S += k;
|
|
3100
3162
|
return E.map(function(B) {
|
|
3101
|
-
for (var
|
|
3102
|
-
var lt = B[
|
|
3103
|
-
lt *=
|
|
3163
|
+
for (var $ = 0; $ < B.length; $ += 2) {
|
|
3164
|
+
var lt = B[$ + 0], Q = B[$ + 1];
|
|
3165
|
+
lt *= p, Q *= h;
|
|
3104
3166
|
var ft = y * lt - v * Q, it = v * lt + y * Q;
|
|
3105
|
-
B[
|
|
3167
|
+
B[$ + 0] = ft + L[0], B[$ + 1] = it + L[1];
|
|
3106
3168
|
}
|
|
3107
3169
|
return B;
|
|
3108
3170
|
});
|
|
3109
3171
|
}, Gt;
|
|
3110
3172
|
}
|
|
3111
|
-
var Xt,
|
|
3112
|
-
function
|
|
3113
|
-
if (
|
|
3114
|
-
|
|
3173
|
+
var Xt, $e;
|
|
3174
|
+
function z1() {
|
|
3175
|
+
if ($e) return Xt;
|
|
3176
|
+
$e = 1;
|
|
3115
3177
|
var n = 1e-10, e = Math.PI / 180;
|
|
3116
3178
|
function t(o, i, a) {
|
|
3117
3179
|
if (!(this instanceof t))
|
|
@@ -3127,21 +3189,21 @@ function _1() {
|
|
|
3127
3189
|
], r = s[0] * s[0] + s[2] * s[2], l = s[1] * s[1] + s[3] * s[3], c = ((s[0] - s[3]) * (s[0] - s[3]) + (s[2] + s[1]) * (s[2] + s[1])) * ((s[0] + s[3]) * (s[0] + s[3]) + (s[2] - s[1]) * (s[2] - s[1])), u = (r + l) / 2;
|
|
3128
3190
|
if (c < n * u)
|
|
3129
3191
|
return this.rx = this.ry = Math.sqrt(u), this.ax = 0, this;
|
|
3130
|
-
var
|
|
3192
|
+
var p = s[0] * s[1] + s[2] * s[3];
|
|
3131
3193
|
c = Math.sqrt(c);
|
|
3132
3194
|
var h = u + c / 2, f = u - c / 2;
|
|
3133
|
-
return this.ax = Math.abs(
|
|
3134
|
-
Math.abs(
|
|
3195
|
+
return this.ax = Math.abs(p) < n && Math.abs(h - l) < n ? 90 : Math.atan(
|
|
3196
|
+
Math.abs(p) > Math.abs(h - l) ? (h - r) / p : p / (h - l)
|
|
3135
3197
|
) * 180 / Math.PI, this.ax >= 0 ? (this.rx = Math.sqrt(h), this.ry = Math.sqrt(f)) : (this.ax += 90, this.rx = Math.sqrt(f), this.ry = Math.sqrt(h)), this;
|
|
3136
3198
|
}, t.prototype.isDegenerate = function() {
|
|
3137
3199
|
return this.rx < n * this.ry || this.ry < n * this.rx;
|
|
3138
3200
|
}, Xt = t, Xt;
|
|
3139
3201
|
}
|
|
3140
|
-
var Kt,
|
|
3141
|
-
function
|
|
3142
|
-
if (
|
|
3143
|
-
|
|
3144
|
-
var n =
|
|
3202
|
+
var Kt, Ye;
|
|
3203
|
+
function j1() {
|
|
3204
|
+
if (Ye) return Kt;
|
|
3205
|
+
Ye = 1;
|
|
3206
|
+
var n = B1(), e = D1(), t = w0(), o = q1(), i = z1();
|
|
3145
3207
|
function a(s) {
|
|
3146
3208
|
if (!(this instanceof a))
|
|
3147
3209
|
return new a(s);
|
|
@@ -3161,7 +3223,7 @@ function N1() {
|
|
|
3161
3223
|
throw new Error("SvgPath.from: invalid param type " + s);
|
|
3162
3224
|
}, a.prototype.__matrix = function(s) {
|
|
3163
3225
|
var r = this, l;
|
|
3164
|
-
s.queue.length && this.iterate(function(c, u,
|
|
3226
|
+
s.queue.length && this.iterate(function(c, u, p, h) {
|
|
3165
3227
|
var f, v, y, T;
|
|
3166
3228
|
switch (c[0]) {
|
|
3167
3229
|
// Process 'assymetric' commands separately
|
|
@@ -3169,18 +3231,18 @@ function N1() {
|
|
|
3169
3231
|
f = s.calc(0, c[1], !0), v = f[0] === 0 ? ["v", f[1]] : ["l", f[0], f[1]];
|
|
3170
3232
|
break;
|
|
3171
3233
|
case "V":
|
|
3172
|
-
f = s.calc(
|
|
3234
|
+
f = s.calc(p, c[1], !1), v = f[0] === s.calc(p, h, !1)[0] ? ["V", f[1]] : ["L", f[0], f[1]];
|
|
3173
3235
|
break;
|
|
3174
3236
|
case "h":
|
|
3175
3237
|
f = s.calc(c[1], 0, !0), v = f[1] === 0 ? ["h", f[0]] : ["l", f[0], f[1]];
|
|
3176
3238
|
break;
|
|
3177
3239
|
case "H":
|
|
3178
|
-
f = s.calc(c[1], h, !1), v = f[1] === s.calc(
|
|
3240
|
+
f = s.calc(c[1], h, !1), v = f[1] === s.calc(p, h, !1)[1] ? ["H", f[0]] : ["L", f[0], f[1]];
|
|
3179
3241
|
break;
|
|
3180
3242
|
case "a":
|
|
3181
3243
|
case "A":
|
|
3182
3244
|
var C = s.toArray(), M = i(c[1], c[2], c[3]).transform(C);
|
|
3183
|
-
if (C[0] * C[3] - C[1] * C[2] < 0 && (c[5] = c[5] ? "0" : "1"), f = s.calc(c[6], c[7], c[0] === "a"), c[0] === "A" && c[6] ===
|
|
3245
|
+
if (C[0] * C[3] - C[1] * C[2] < 0 && (c[5] = c[5] ? "0" : "1"), f = s.calc(c[6], c[7], c[0] === "a"), c[0] === "A" && c[6] === p && c[7] === h || c[0] === "a" && c[6] === 0 && c[7] === 0) {
|
|
3184
3246
|
v = [c[0] === "a" ? "l" : "L", f[0], f[1]];
|
|
3185
3247
|
break;
|
|
3186
3248
|
}
|
|
@@ -3210,10 +3272,10 @@ function N1() {
|
|
|
3210
3272
|
var s = "", r = "", l = !1;
|
|
3211
3273
|
this.__evaluateStack();
|
|
3212
3274
|
for (var c = 0, u = this.segments.length; c < u; c++) {
|
|
3213
|
-
var
|
|
3275
|
+
var p = this.segments[c], h = p[0];
|
|
3214
3276
|
h !== r || h === "m" || h === "M" ? (h === "m" && r === "z" && (s += " "), s += h, l = !1) : l = !0;
|
|
3215
|
-
for (var f = 1; f <
|
|
3216
|
-
var v =
|
|
3277
|
+
for (var f = 1; f < p.length; f++) {
|
|
3278
|
+
var v = p[f];
|
|
3217
3279
|
f === 1 ? l && v >= 0 && (s += " ") : v >= 0 && (s += " "), s += v;
|
|
3218
3280
|
}
|
|
3219
3281
|
r = h;
|
|
@@ -3234,7 +3296,7 @@ function N1() {
|
|
|
3234
3296
|
}, a.prototype.transform = function(s) {
|
|
3235
3297
|
return s.trim() ? (this.__stack.push(e(s)), this) : this;
|
|
3236
3298
|
}, a.prototype.round = function(s) {
|
|
3237
|
-
var r = 0, l = 0, c = 0, u = 0,
|
|
3299
|
+
var r = 0, l = 0, c = 0, u = 0, p;
|
|
3238
3300
|
return s = s || 0, this.__evaluateStack(), this.segments.forEach(function(h) {
|
|
3239
3301
|
var f = h[0].toLowerCase() === h[0];
|
|
3240
3302
|
switch (h[0]) {
|
|
@@ -3259,26 +3321,26 @@ function N1() {
|
|
|
3259
3321
|
f && (h[6] += c, h[7] += u), c = h[6] - h[6].toFixed(s), u = h[7] - h[7].toFixed(s), h[1] = +h[1].toFixed(s), h[2] = +h[2].toFixed(s), h[3] = +h[3].toFixed(s + 2), h[6] = +h[6].toFixed(s), h[7] = +h[7].toFixed(s);
|
|
3260
3322
|
return;
|
|
3261
3323
|
default:
|
|
3262
|
-
|
|
3324
|
+
p = h.length, f && (h[p - 2] += c, h[p - 1] += u), c = h[p - 2] - h[p - 2].toFixed(s), u = h[p - 1] - h[p - 1].toFixed(s), h.forEach(function(v, y) {
|
|
3263
3325
|
y && (h[y] = +h[y].toFixed(s));
|
|
3264
3326
|
});
|
|
3265
3327
|
return;
|
|
3266
3328
|
}
|
|
3267
3329
|
}), this;
|
|
3268
3330
|
}, a.prototype.iterate = function(s, r) {
|
|
3269
|
-
var l = this.segments, c = {}, u = !1,
|
|
3331
|
+
var l = this.segments, c = {}, u = !1, p = 0, h = 0, f = 0, v = 0, y, T, C;
|
|
3270
3332
|
if (r || this.__evaluateStack(), l.forEach(function(M, L) {
|
|
3271
|
-
var E = s(M, L,
|
|
3333
|
+
var E = s(M, L, p, h);
|
|
3272
3334
|
Array.isArray(E) && (c[L] = E, u = !0);
|
|
3273
3335
|
var S = M[0] === M[0].toLowerCase();
|
|
3274
3336
|
switch (M[0]) {
|
|
3275
3337
|
case "m":
|
|
3276
3338
|
case "M":
|
|
3277
|
-
|
|
3339
|
+
p = M[1] + (S ? p : 0), h = M[2] + (S ? h : 0), f = p, v = h;
|
|
3278
3340
|
return;
|
|
3279
3341
|
case "h":
|
|
3280
3342
|
case "H":
|
|
3281
|
-
|
|
3343
|
+
p = M[1] + (S ? p : 0);
|
|
3282
3344
|
return;
|
|
3283
3345
|
case "v":
|
|
3284
3346
|
case "V":
|
|
@@ -3286,10 +3348,10 @@ function N1() {
|
|
|
3286
3348
|
return;
|
|
3287
3349
|
case "z":
|
|
3288
3350
|
case "Z":
|
|
3289
|
-
|
|
3351
|
+
p = f, h = v;
|
|
3290
3352
|
return;
|
|
3291
3353
|
default:
|
|
3292
|
-
|
|
3354
|
+
p = M[M.length - 2] + (S ? p : 0), h = M[M.length - 1] + (S ? h : 0);
|
|
3293
3355
|
}
|
|
3294
3356
|
}), !u)
|
|
3295
3357
|
return this;
|
|
@@ -3302,9 +3364,9 @@ function N1() {
|
|
|
3302
3364
|
return this.segments = C, this;
|
|
3303
3365
|
}, a.prototype.abs = function() {
|
|
3304
3366
|
return this.iterate(function(s, r, l, c) {
|
|
3305
|
-
var u = s[0],
|
|
3306
|
-
if (u !==
|
|
3307
|
-
switch (s[0] =
|
|
3367
|
+
var u = s[0], p = u.toUpperCase(), h;
|
|
3368
|
+
if (u !== p)
|
|
3369
|
+
switch (s[0] = p, u) {
|
|
3308
3370
|
case "v":
|
|
3309
3371
|
s[1] += c;
|
|
3310
3372
|
return;
|
|
@@ -3318,9 +3380,9 @@ function N1() {
|
|
|
3318
3380
|
}, !0), this;
|
|
3319
3381
|
}, a.prototype.rel = function() {
|
|
3320
3382
|
return this.iterate(function(s, r, l, c) {
|
|
3321
|
-
var u = s[0],
|
|
3322
|
-
if (u !==
|
|
3323
|
-
switch (s[0] =
|
|
3383
|
+
var u = s[0], p = u.toLowerCase(), h;
|
|
3384
|
+
if (u !== p && !(r === 0 && u === "M"))
|
|
3385
|
+
switch (s[0] = p, u) {
|
|
3324
3386
|
case "V":
|
|
3325
3387
|
s[1] -= c;
|
|
3326
3388
|
return;
|
|
@@ -3334,25 +3396,25 @@ function N1() {
|
|
|
3334
3396
|
}, !0), this;
|
|
3335
3397
|
}, a.prototype.unarc = function() {
|
|
3336
3398
|
return this.iterate(function(s, r, l, c) {
|
|
3337
|
-
var u,
|
|
3338
|
-
return v !== "A" && v !== "a" ? null : (v === "a" ? (
|
|
3399
|
+
var u, p, h, f = [], v = s[0];
|
|
3400
|
+
return v !== "A" && v !== "a" ? null : (v === "a" ? (p = l + s[6], h = c + s[7]) : (p = s[6], h = s[7]), u = o(l, c, p, h, s[4], s[5], s[1], s[2], s[3]), u.length === 0 ? [[s[0] === "a" ? "l" : "L", s[6], s[7]]] : (u.forEach(function(y) {
|
|
3339
3401
|
f.push(["C", y[2], y[3], y[4], y[5], y[6], y[7]]);
|
|
3340
3402
|
}), f));
|
|
3341
3403
|
}), this;
|
|
3342
3404
|
}, a.prototype.unshort = function() {
|
|
3343
|
-
var s = this.segments, r, l, c, u,
|
|
3405
|
+
var s = this.segments, r, l, c, u, p;
|
|
3344
3406
|
return this.iterate(function(h, f, v, y) {
|
|
3345
3407
|
var T = h[0], C = T.toUpperCase(), M;
|
|
3346
|
-
f && (C === "T" ? (M = T === "t", c = s[f - 1], c[0] === "Q" ? (r = c[1] - v, l = c[2] - y) : c[0] === "q" ? (r = c[1] - c[3], l = c[2] - c[4]) : (r = 0, l = 0), u = -r,
|
|
3408
|
+
f && (C === "T" ? (M = T === "t", c = s[f - 1], c[0] === "Q" ? (r = c[1] - v, l = c[2] - y) : c[0] === "q" ? (r = c[1] - c[3], l = c[2] - c[4]) : (r = 0, l = 0), u = -r, p = -l, M || (u += v, p += y), s[f] = [
|
|
3347
3409
|
M ? "q" : "Q",
|
|
3348
3410
|
u,
|
|
3349
|
-
|
|
3411
|
+
p,
|
|
3350
3412
|
h[1],
|
|
3351
3413
|
h[2]
|
|
3352
|
-
]) : C === "S" && (M = T === "s", c = s[f - 1], c[0] === "C" ? (r = c[3] - v, l = c[4] - y) : c[0] === "c" ? (r = c[3] - c[5], l = c[4] - c[6]) : (r = 0, l = 0), u = -r,
|
|
3414
|
+
]) : C === "S" && (M = T === "s", c = s[f - 1], c[0] === "C" ? (r = c[3] - v, l = c[4] - y) : c[0] === "c" ? (r = c[3] - c[5], l = c[4] - c[6]) : (r = 0, l = 0), u = -r, p = -l, M || (u += v, p += y), s[f] = [
|
|
3353
3415
|
M ? "c" : "C",
|
|
3354
3416
|
u,
|
|
3355
|
-
|
|
3417
|
+
p,
|
|
3356
3418
|
h[1],
|
|
3357
3419
|
h[2],
|
|
3358
3420
|
h[3],
|
|
@@ -3361,18 +3423,18 @@ function N1() {
|
|
|
3361
3423
|
}), this;
|
|
3362
3424
|
}, Kt = a, Kt;
|
|
3363
3425
|
}
|
|
3364
|
-
var Zt,
|
|
3365
|
-
function
|
|
3366
|
-
return
|
|
3426
|
+
var Zt, We;
|
|
3427
|
+
function V1() {
|
|
3428
|
+
return We || (We = 1, Zt = j1()), Zt;
|
|
3367
3429
|
}
|
|
3368
|
-
var
|
|
3369
|
-
const
|
|
3370
|
-
var Jt = { a: 7, c: 6, h: 1, l: 2, m: 2, q: 4, s: 4, t: 2, v: 1, z: 0 },
|
|
3371
|
-
function
|
|
3430
|
+
var H1 = V1();
|
|
3431
|
+
const U1 = /* @__PURE__ */ F1(H1);
|
|
3432
|
+
var Jt = { a: 7, c: 6, h: 1, l: 2, m: 2, q: 4, s: 4, t: 2, v: 1, z: 0 }, $1 = /([astvzqmhlc])([^astvzqmhlc]*)/ig;
|
|
3433
|
+
function Y1(n) {
|
|
3372
3434
|
var e = [];
|
|
3373
|
-
return n.replace(
|
|
3435
|
+
return n.replace($1, function(t, o, i) {
|
|
3374
3436
|
var a = o.toLowerCase();
|
|
3375
|
-
for (i =
|
|
3437
|
+
for (i = G1(i), a === "m" && i.length > 2 && (e.push([o].concat(i.splice(0, 2))), a = "l", o = o === "m" ? "l" : "L"); i.length >= 0; ) {
|
|
3376
3438
|
if (i.length === Jt[a])
|
|
3377
3439
|
return i.unshift(o), e.push(i);
|
|
3378
3440
|
if (i.length < Jt[a])
|
|
@@ -3381,16 +3443,16 @@ function q1(n) {
|
|
|
3381
3443
|
}
|
|
3382
3444
|
}), e;
|
|
3383
3445
|
}
|
|
3384
|
-
var
|
|
3385
|
-
function
|
|
3386
|
-
var e = n.match(
|
|
3446
|
+
var W1 = /-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;
|
|
3447
|
+
function G1(n) {
|
|
3448
|
+
var e = n.match(W1);
|
|
3387
3449
|
return e ? e.map(Number) : [];
|
|
3388
3450
|
}
|
|
3389
3451
|
function ot(n, e, t, o, i, a, s, r) {
|
|
3390
3452
|
return new re(n, e, t, o, i, a, s, r);
|
|
3391
3453
|
}
|
|
3392
3454
|
function re(n, e, t, o, i, a, s, r) {
|
|
3393
|
-
this.a = { x: n, y: e }, this.b = { x: t, y: o }, this.c = { x: i, y: a }, this.d = { x: s, y: r }, s != null && r !== null && r !== void 0 ? (this.getArcLength =
|
|
3455
|
+
this.a = { x: n, y: e }, this.b = { x: t, y: o }, this.c = { x: i, y: a }, this.d = { x: s, y: r }, s != null && r !== null && r !== void 0 ? (this.getArcLength = ri, this.getPoint = Z1, this.getDerivative = K1) : (this.getArcLength = J1, this.getPoint = m0, this.getDerivative = X1), this.init();
|
|
3394
3456
|
}
|
|
3395
3457
|
re.prototype = {
|
|
3396
3458
|
constructor: re,
|
|
@@ -3452,14 +3514,14 @@ re.prototype = {
|
|
|
3452
3514
|
return { x: a.x, y: a.y, tangentX: i.x, tangentY: i.y };
|
|
3453
3515
|
}
|
|
3454
3516
|
};
|
|
3455
|
-
function
|
|
3517
|
+
function X1(n, e, t) {
|
|
3456
3518
|
return {
|
|
3457
3519
|
x: (1 - t) * 2 * (n[1] - n[0]) + t * 2 * (n[2] - n[1]),
|
|
3458
3520
|
y: (1 - t) * 2 * (e[1] - e[0]) + t * 2 * (e[2] - e[1])
|
|
3459
3521
|
};
|
|
3460
3522
|
}
|
|
3461
|
-
function
|
|
3462
|
-
var o =
|
|
3523
|
+
function K1(n, e, t) {
|
|
3524
|
+
var o = m0(
|
|
3463
3525
|
[3 * (n[1] - n[0]), 3 * (n[2] - n[1]), 3 * (n[3] - n[2])],
|
|
3464
3526
|
[3 * (e[1] - e[0]), 3 * (e[2] - e[1]), 3 * (e[3] - e[2])],
|
|
3465
3527
|
t
|
|
@@ -3468,30 +3530,30 @@ function H1(n, e, t) {
|
|
|
3468
3530
|
}
|
|
3469
3531
|
function Qt(n, e, t, o, i) {
|
|
3470
3532
|
for (var a = 1, s = n / e, r = (n - t(o, i, s)) / e; a > 1e-3; ) {
|
|
3471
|
-
var l = t(o, i, s + r), c = t(o, i, s - r), u = Math.abs(n - l) / e,
|
|
3472
|
-
u < a ? (a = u, s += r) :
|
|
3533
|
+
var l = t(o, i, s + r), c = t(o, i, s - r), u = Math.abs(n - l) / e, p = Math.abs(n - c) / e;
|
|
3534
|
+
u < a ? (a = u, s += r) : p < a ? (a = p, s -= r) : r /= 2;
|
|
3473
3535
|
}
|
|
3474
3536
|
return s;
|
|
3475
3537
|
}
|
|
3476
|
-
function
|
|
3538
|
+
function m0(n, e, t) {
|
|
3477
3539
|
var o = (1 - t) * (1 - t) * n[0] + 2 * (1 - t) * t * n[1] + t * t * n[2], i = (1 - t) * (1 - t) * e[0] + 2 * (1 - t) * t * e[1] + t * t * e[2];
|
|
3478
3540
|
return { x: o, y: i };
|
|
3479
3541
|
}
|
|
3480
|
-
function
|
|
3542
|
+
function Z1(n, e, t) {
|
|
3481
3543
|
var o = (1 - t) * (1 - t) * (1 - t) * n[0] + 3 * (1 - t) * (1 - t) * t * n[1] + 3 * (1 - t) * t * t * n[2] + t * t * t * n[3], i = (1 - t) * (1 - t) * (1 - t) * e[0] + 3 * (1 - t) * (1 - t) * t * e[1] + 3 * (1 - t) * t * t * e[2] + t * t * t * e[3];
|
|
3482
3544
|
return { x: o, y: i };
|
|
3483
3545
|
}
|
|
3484
|
-
function
|
|
3546
|
+
function J1(n, e, t) {
|
|
3485
3547
|
t === void 0 && (t = 1);
|
|
3486
3548
|
var o = n[0] - 2 * n[1] + n[2], i = e[0] - 2 * e[1] + e[2], a = 2 * n[1] - 2 * n[0], s = 2 * e[1] - 2 * e[0], r = 4 * (o * o + i * i), l = 4 * (o * a + i * s), c = a * a + s * s;
|
|
3487
3549
|
if (r === 0)
|
|
3488
3550
|
return t * Math.sqrt(Math.pow(n[2] - n[0], 2) + Math.pow(e[2] - e[0], 2));
|
|
3489
|
-
var u = l / (2 * r),
|
|
3551
|
+
var u = l / (2 * r), p = c / r, h = t + u, f = p - u * u;
|
|
3490
3552
|
return Math.sqrt(r) / 2 * (h * Math.sqrt(h * h + f) - u * Math.sqrt(u * u + f) + f * Math.log(Math.abs(
|
|
3491
3553
|
(h + Math.sqrt(h * h + f)) / (u + Math.sqrt(u * u + f))
|
|
3492
3554
|
)));
|
|
3493
3555
|
}
|
|
3494
|
-
var
|
|
3556
|
+
var Q1 = [
|
|
3495
3557
|
[],
|
|
3496
3558
|
[],
|
|
3497
3559
|
[-0.5773502691896257, 0.5773502691896257],
|
|
@@ -3517,7 +3579,7 @@ var $1 = [
|
|
|
3517
3579
|
[-0.06973927331972223, 0.06973927331972223, -0.20786042668822127, 0.20786042668822127, -0.34193582089208424, 0.34193582089208424, -0.469355837986757, 0.469355837986757, -0.5876404035069116, 0.5876404035069116, -0.6944872631866827, 0.6944872631866827, -0.7878168059792081, 0.7878168059792081, -0.8658125777203002, 0.8658125777203002, -0.926956772187174, 0.926956772187174, -0.9700604978354287, 0.9700604978354287, -0.9942945854823992, 0.9942945854823992],
|
|
3518
3580
|
[0, -0.1332568242984661, 0.1332568242984661, -0.26413568097034495, 0.26413568097034495, -0.3903010380302908, 0.3903010380302908, -0.5095014778460075, 0.5095014778460075, -0.6196098757636461, 0.6196098757636461, -0.7186613631319502, 0.7186613631319502, -0.8048884016188399, 0.8048884016188399, -0.8767523582704416, 0.8767523582704416, -0.9329710868260161, 0.9329710868260161, -0.9725424712181152, 0.9725424712181152, -0.9947693349975522, 0.9947693349975522],
|
|
3519
3581
|
[-0.06405689286260563, 0.06405689286260563, -0.1911188674736163, 0.1911188674736163, -0.3150426796961634, 0.3150426796961634, -0.4337935076260451, 0.4337935076260451, -0.5454214713888396, 0.5454214713888396, -0.6480936519369755, 0.6480936519369755, -0.7401241915785544, 0.7401241915785544, -0.820001985973903, 0.820001985973903, -0.8864155270044011, 0.8864155270044011, -0.9382745520027328, 0.9382745520027328, -0.9747285559713095, 0.9747285559713095, -0.9951872199970213, 0.9951872199970213]
|
|
3520
|
-
],
|
|
3582
|
+
], ti = [
|
|
3521
3583
|
[],
|
|
3522
3584
|
[],
|
|
3523
3585
|
[1, 1],
|
|
@@ -3543,9 +3605,9 @@ var $1 = [
|
|
|
3543
3605
|
[0.13925187285563198, 0.13925187285563198, 0.13654149834601517, 0.13654149834601517, 0.13117350478706238, 0.13117350478706238, 0.12325237681051242, 0.12325237681051242, 0.11293229608053922, 0.11293229608053922, 0.10041414444288096, 0.10041414444288096, 0.08594160621706773, 0.08594160621706773, 0.06979646842452049, 0.06979646842452049, 0.052293335152683286, 0.052293335152683286, 0.03377490158481415, 0.03377490158481415, 0.0146279952982722, 0.0146279952982722],
|
|
3544
3606
|
[0.13365457218610619, 0.1324620394046966, 0.1324620394046966, 0.12890572218808216, 0.12890572218808216, 0.12304908430672953, 0.12304908430672953, 0.11499664022241136, 0.11499664022241136, 0.10489209146454141, 0.10489209146454141, 0.09291576606003515, 0.09291576606003515, 0.07928141177671895, 0.07928141177671895, 0.06423242140852585, 0.06423242140852585, 0.04803767173108467, 0.04803767173108467, 0.030988005856979445, 0.030988005856979445, 0.013411859487141771, 0.013411859487141771],
|
|
3545
3607
|
[0.12793819534675216, 0.12793819534675216, 0.1258374563468283, 0.1258374563468283, 0.12167047292780339, 0.12167047292780339, 0.1155056680537256, 0.1155056680537256, 0.10744427011596563, 0.10744427011596563, 0.09761865210411388, 0.09761865210411388, 0.08619016153195327, 0.08619016153195327, 0.0733464814110803, 0.0733464814110803, 0.05929858491543678, 0.05929858491543678, 0.04427743881741981, 0.04427743881741981, 0.028531388628933663, 0.028531388628933663, 0.0123412297999872, 0.0123412297999872]
|
|
3546
|
-
],
|
|
3547
|
-
function
|
|
3548
|
-
return
|
|
3608
|
+
], ei = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]];
|
|
3609
|
+
function ni(n, e) {
|
|
3610
|
+
return ei[n][e];
|
|
3549
3611
|
}
|
|
3550
3612
|
function oe(n, e, t) {
|
|
3551
3613
|
var o = t.length - 1, i, a, s;
|
|
@@ -3553,7 +3615,7 @@ function oe(n, e, t) {
|
|
|
3553
3615
|
return 0;
|
|
3554
3616
|
if (n === 0) {
|
|
3555
3617
|
for (a = 0, s = 0; s <= o; s++)
|
|
3556
|
-
a +=
|
|
3618
|
+
a += ni(o, s) * Math.pow(1 - e, o - s) * Math.pow(e, s) * t[s];
|
|
3557
3619
|
return a;
|
|
3558
3620
|
} else {
|
|
3559
3621
|
for (i = new Array(o), s = 0; s < o; s++)
|
|
@@ -3561,46 +3623,46 @@ function oe(n, e, t) {
|
|
|
3561
3623
|
return oe(n - 1, e, i);
|
|
3562
3624
|
}
|
|
3563
3625
|
}
|
|
3564
|
-
function
|
|
3626
|
+
function ii(n, e, t) {
|
|
3565
3627
|
var o = oe(1, t, n), i = oe(1, t, e), a = o * o + i * i;
|
|
3566
3628
|
return Math.sqrt(a);
|
|
3567
3629
|
}
|
|
3568
|
-
function
|
|
3630
|
+
function ri(n, e, t) {
|
|
3569
3631
|
var o, i, a, s;
|
|
3570
3632
|
t === void 0 && (t = 1);
|
|
3571
3633
|
var r = 20;
|
|
3572
3634
|
for (o = t / 2, i = 0, a = 0; a < r; a++)
|
|
3573
|
-
s = o *
|
|
3635
|
+
s = o * Q1[r][a] + o, i += ti[r][a] * ii(n, e, s);
|
|
3574
3636
|
return o * i;
|
|
3575
3637
|
}
|
|
3576
3638
|
var Et = Math.PI * 2;
|
|
3577
|
-
function
|
|
3639
|
+
function Ge(n, e, t, o) {
|
|
3578
3640
|
var i = n * o - e * t < 0 ? -1 : 1, a = n * t + e * o;
|
|
3579
3641
|
return a > 1 && (a = 1), a < -1 && (a = -1), i * Math.acos(a);
|
|
3580
3642
|
}
|
|
3581
|
-
function
|
|
3582
|
-
var u = c * (n - t) / 2 + l * (e - o) / 2,
|
|
3643
|
+
function oi(n, e, t, o, i, a, s, r, l, c) {
|
|
3644
|
+
var u = c * (n - t) / 2 + l * (e - o) / 2, p = -l * (n - t) / 2 + c * (e - o) / 2, h = s * s, f = r * r, v = u * u, y = p * p, T = h * f - h * y - f * v;
|
|
3583
3645
|
T < 0 && (T = 0), T /= h * y + f * v, T = Math.sqrt(T) * (i === a ? -1 : 1);
|
|
3584
|
-
var C = T * s / r *
|
|
3585
|
-
return a === 0 &&
|
|
3646
|
+
var C = T * s / r * p, M = T * -r / s * u, L = c * C - l * M + (n + t) / 2, E = l * C + c * M + (e + o) / 2, S = (u - C) / s, k = (p - M) / r, F = (-u - C) / s, U = (-p - M) / r, B = Ge(1, 0, S, k), $ = Ge(S, k, F, U);
|
|
3647
|
+
return a === 0 && $ > 0 && ($ -= Et), a === 1 && $ < 0 && ($ += Et), [L, E, B, $];
|
|
3586
3648
|
}
|
|
3587
|
-
function
|
|
3649
|
+
function si(n, e) {
|
|
3588
3650
|
var t = 1.3333333333333333 * Math.tan(e / 4), o = Math.cos(n), i = Math.sin(n), a = Math.cos(n + e), s = Math.sin(n + e);
|
|
3589
3651
|
return [o, i, o - i * t, i + o * t, a + s * t, s - a * t, a, s];
|
|
3590
3652
|
}
|
|
3591
|
-
function
|
|
3592
|
-
var c = Math.sin(i * Et / 360), u = Math.cos(i * Et / 360),
|
|
3593
|
-
if (
|
|
3653
|
+
function ai(n, e, t, o, i, a, s, r, l) {
|
|
3654
|
+
var c = Math.sin(i * Et / 360), u = Math.cos(i * Et / 360), p = u * (n - r) / 2 + c * (e - l) / 2, h = -c * (n - r) / 2 + u * (e - l) / 2;
|
|
3655
|
+
if (p === 0 && h === 0)
|
|
3594
3656
|
return [];
|
|
3595
3657
|
if (t === 0 || o === 0)
|
|
3596
3658
|
return [];
|
|
3597
3659
|
t = Math.abs(t), o = Math.abs(o);
|
|
3598
|
-
var f =
|
|
3660
|
+
var f = p * p / (t * t) + h * h / (o * o);
|
|
3599
3661
|
f > 1 && (t *= Math.sqrt(f), o *= Math.sqrt(f));
|
|
3600
|
-
var v =
|
|
3662
|
+
var v = oi(n, e, r, l, a, s, t, o, c, u), y = [], T = v[2], C = v[3], M = Math.max(Math.ceil(Math.abs(C) / (Et / 4)), 1);
|
|
3601
3663
|
C /= M;
|
|
3602
3664
|
for (var L = 0; L < M; L++)
|
|
3603
|
-
y.push(
|
|
3665
|
+
y.push(si(T, C)), T += C;
|
|
3604
3666
|
return y.map(function(E) {
|
|
3605
3667
|
for (var S = 0; S < E.length; S += 2) {
|
|
3606
3668
|
var k = E[S + 0], F = E[S + 1];
|
|
@@ -3611,15 +3673,15 @@ function ti(n, e, t, o, i, a, s, r, l) {
|
|
|
3611
3673
|
return E;
|
|
3612
3674
|
});
|
|
3613
3675
|
}
|
|
3614
|
-
function
|
|
3676
|
+
function Xe(n, e, t, o, i, a, s, r, l) {
|
|
3615
3677
|
return new se(n, e, t, o, i, a, s, r, l);
|
|
3616
3678
|
}
|
|
3617
3679
|
function se(n, e, t, o, i, a, s, r, l) {
|
|
3618
|
-
var c = 0, u = [],
|
|
3680
|
+
var c = 0, u = [], p = [], h = ai(n, e, t, o, i, a, s, r, l);
|
|
3619
3681
|
h.forEach(function(f) {
|
|
3620
3682
|
var v = new ot(f[0], f[1], f[2], f[3], f[4], f[5], f[6], f[7]), y = v.getTotalLength();
|
|
3621
|
-
c += y, u.push(y),
|
|
3622
|
-
}), this.length = c, this.partialLengths = u, this.curves =
|
|
3683
|
+
c += y, u.push(y), p.push(v);
|
|
3684
|
+
}), this.length = c, this.partialLengths = u, this.curves = p;
|
|
3623
3685
|
}
|
|
3624
3686
|
se.prototype = {
|
|
3625
3687
|
constructor: se,
|
|
@@ -3672,13 +3734,13 @@ _t.prototype.getPropertiesAtLength = function(n) {
|
|
|
3672
3734
|
var e = this.getPointAtLength(n), t = this.getTangentAtLength();
|
|
3673
3735
|
return { x: e.x, y: e.y, tangentX: t.x, tangentY: t.y };
|
|
3674
3736
|
};
|
|
3675
|
-
function
|
|
3737
|
+
function li(n) {
|
|
3676
3738
|
var e = 0, t = [], o = [];
|
|
3677
3739
|
function i(s) {
|
|
3678
3740
|
if (!s)
|
|
3679
3741
|
return null;
|
|
3680
|
-
for (var r =
|
|
3681
|
-
r[h][0] === "M" ? (l = [r[h][1], r[h][2]],
|
|
3742
|
+
for (var r = Y1(s), l = [0, 0], c = [0, 0], u, p, h = 0; h < r.length; h++)
|
|
3743
|
+
r[h][0] === "M" ? (l = [r[h][1], r[h][2]], p = [l[0], l[1]], o.push(null)) : r[h][0] === "m" ? (l = [r[h][1] + l[0], r[h][2] + l[1]], p = [l[0], l[1]], o.push(null)) : r[h][0] === "L" ? (e = e + Math.sqrt(Math.pow(l[0] - r[h][1], 2) + Math.pow(l[1] - r[h][2], 2)), o.push(new rt(l[0], r[h][1], l[1], r[h][2])), l = [r[h][1], r[h][2]]) : r[h][0] === "l" ? (e = e + Math.sqrt(Math.pow(r[h][1], 2) + Math.pow(r[h][2], 2)), o.push(new rt(l[0], r[h][1] + l[0], l[1], r[h][2] + l[1])), l = [r[h][1] + l[0], r[h][2] + l[1]]) : r[h][0] === "H" ? (e = e + Math.abs(l[0] - r[h][1]), o.push(new rt(l[0], r[h][1], l[1], l[1])), l[0] = r[h][1]) : r[h][0] === "h" ? (e = e + Math.abs(r[h][1]), o.push(new rt(l[0], l[0] + r[h][1], l[1], l[1])), l[0] = r[h][1] + l[0]) : r[h][0] === "V" ? (e = e + Math.abs(l[1] - r[h][1]), o.push(new rt(l[0], l[0], l[1], r[h][1])), l[1] = r[h][1]) : r[h][0] === "v" ? (e = e + Math.abs(r[h][1]), o.push(new rt(l[0], l[0], l[1], l[1] + r[h][1])), l[1] = r[h][1] + l[1]) : r[h][0] === "z" || r[h][0] === "Z" ? (e = e + Math.sqrt(Math.pow(p[0] - l[0], 2) + Math.pow(p[1] - l[1], 2)), o.push(new rt(l[0], p[0], l[1], p[1])), l = [p[0], p[1]]) : r[h][0] === "C" ? (u = new ot(l[0], l[1], r[h][1], r[h][2], r[h][3], r[h][4], r[h][5], r[h][6]), e = e + u.getTotalLength(), l = [r[h][5], r[h][6]], o.push(u)) : r[h][0] === "c" ? (u = new ot(l[0], l[1], l[0] + r[h][1], l[1] + r[h][2], l[0] + r[h][3], l[1] + r[h][4], l[0] + r[h][5], l[1] + r[h][6]), e = e + u.getTotalLength(), l = [r[h][5] + l[0], r[h][6] + l[1]], o.push(u)) : r[h][0] === "S" ? (h > 0 && ["C", "c", "S", "s"].indexOf(r[h - 1][0]) > -1 ? u = new ot(l[0], l[1], 2 * l[0] - r[h - 1][r[h - 1].length - 4], 2 * l[1] - r[h - 1][r[h - 1].length - 3], r[h][1], r[h][2], r[h][3], r[h][4]) : u = new ot(l[0], l[1], l[0], l[1], r[h][1], r[h][2], r[h][3], r[h][4]), e = e + u.getTotalLength(), l = [r[h][3], r[h][4]], o.push(u)) : r[h][0] === "s" ? (h > 0 && ["C", "c", "S", "s"].indexOf(r[h - 1][0]) > -1 ? u = new ot(l[0], l[1], l[0] + u.d.x - u.c.x, l[1] + u.d.y - u.c.y, l[0] + r[h][1], l[1] + r[h][2], l[0] + r[h][3], l[1] + r[h][4]) : u = new ot(l[0], l[1], l[0], l[1], l[0] + r[h][1], l[1] + r[h][2], l[0] + r[h][3], l[1] + r[h][4]), e = e + u.getTotalLength(), l = [r[h][3] + l[0], r[h][4] + l[1]], o.push(u)) : r[h][0] === "Q" ? (l[0] != r[h][1] && l[1] != r[h][2] ? u = new ot(l[0], l[1], r[h][1], r[h][2], r[h][3], r[h][4]) : u = new rt(r[h][1], r[h][3], r[h][2], r[h][4]), e = e + u.getTotalLength(), o.push(u), l = [r[h][3], r[h][4]], c = [r[h][1], r[h][2]]) : r[h][0] === "q" ? (r[h][1] == 0 && r[h][2] == 0 ? u = new rt(l[0] + r[h][1], l[0] + r[h][3], l[1] + r[h][2], l[1] + r[h][4]) : u = new ot(l[0], l[1], l[0] + r[h][1], l[1] + r[h][2], l[0] + r[h][3], l[1] + r[h][4]), e = e + u.getTotalLength(), c = [l[0] + r[h][1], l[1] + r[h][2]], l = [r[h][3] + l[0], r[h][4] + l[1]], o.push(u)) : r[h][0] === "T" ? (h > 0 && ["Q", "q", "T", "t"].indexOf(r[h - 1][0]) > -1 ? u = new ot(l[0], l[1], 2 * l[0] - c[0], 2 * l[1] - c[1], r[h][1], r[h][2]) : u = new rt(l[0], r[h][1], l[1], r[h][2]), o.push(u), e = e + u.getTotalLength(), c = [2 * l[0] - c[0], 2 * l[1] - c[1]], l = [r[h][1], r[h][2]]) : r[h][0] === "t" ? (h > 0 && ["Q", "q", "T", "t"].indexOf(r[h - 1][0]) > -1 ? u = new ot(l[0], l[1], 2 * l[0] - c[0], 2 * l[1] - c[1], l[0] + r[h][1], l[1] + r[h][2]) : u = new rt(l[0], l[0] + r[h][1], l[1], l[1] + r[h][2]), e = e + u.getTotalLength(), c = [2 * l[0] - c[0], 2 * l[1] - c[1]], l = [r[h][1] + l[0], r[h][2] + l[0]], o.push(u)) : r[h][0] === "A" ? (u = new Xe(l[0], l[1], r[h][1], r[h][2], r[h][3], r[h][4], r[h][5], r[h][6], r[h][7]), e = e + u.getTotalLength(), l = [r[h][6], r[h][7]], o.push(u)) : r[h][0] === "a" && (u = new Xe(l[0], l[1], r[h][1], r[h][2], r[h][3], r[h][4], r[h][5], l[0] + r[h][6], l[1] + r[h][7]), e = e + u.getTotalLength(), l = [l[0] + r[h][6], l[1] + r[h][7]], o.push(u)), t.push(e);
|
|
3682
3744
|
return i;
|
|
3683
3745
|
}
|
|
3684
3746
|
i.getTotalLength = function() {
|
|
@@ -3704,20 +3766,20 @@ function ei(n) {
|
|
|
3704
3766
|
function zt(n, e) {
|
|
3705
3767
|
return Math.sqrt((n[0] - e[0]) * (n[0] - e[0]) + (n[1] - e[1]) * (n[1] - e[1]));
|
|
3706
3768
|
}
|
|
3707
|
-
function
|
|
3769
|
+
function b0(n, e, t) {
|
|
3708
3770
|
return [n[0] + (e[0] - n[0]) * t, n[1] + (e[1] - n[1]) * t];
|
|
3709
3771
|
}
|
|
3710
|
-
function
|
|
3772
|
+
function hi(n, e) {
|
|
3711
3773
|
return zt(n, e) < 1e-9;
|
|
3712
3774
|
}
|
|
3713
|
-
function
|
|
3714
|
-
let o = n.map((i, a) =>
|
|
3775
|
+
function ci(n, e, t) {
|
|
3776
|
+
let o = n.map((i, a) => ui(i, e[a]));
|
|
3715
3777
|
return function(i) {
|
|
3716
3778
|
let a = o.map((s) => s(i));
|
|
3717
|
-
return t ?
|
|
3779
|
+
return t ? pi(a) : a;
|
|
3718
3780
|
};
|
|
3719
3781
|
}
|
|
3720
|
-
function
|
|
3782
|
+
function ui(n, e) {
|
|
3721
3783
|
return function(t) {
|
|
3722
3784
|
return n.map((o, i) => o + t * (e[i] - o));
|
|
3723
3785
|
};
|
|
@@ -3730,20 +3792,20 @@ Example valid ways of supplying a shape would be:
|
|
|
3730
3792
|
[[0, 0], [10, 0], [10, 10]]
|
|
3731
3793
|
"M0,0 L10,0 L10,10Z"
|
|
3732
3794
|
`;
|
|
3733
|
-
function
|
|
3734
|
-
return new
|
|
3795
|
+
function fi(n) {
|
|
3796
|
+
return new U1(n).abs();
|
|
3735
3797
|
}
|
|
3736
|
-
function
|
|
3798
|
+
function di(n) {
|
|
3737
3799
|
return n.toString().split("M").map((e, t) => (e = e.trim(), t && e ? "M" + e : e)).filter((e) => e);
|
|
3738
3800
|
}
|
|
3739
|
-
function
|
|
3801
|
+
function pi(n) {
|
|
3740
3802
|
return "M" + n.join("L") + "Z";
|
|
3741
3803
|
}
|
|
3742
|
-
function
|
|
3743
|
-
let t =
|
|
3744
|
-
return
|
|
3804
|
+
function gi(n, e) {
|
|
3805
|
+
let t = fi(n);
|
|
3806
|
+
return xi(t) || yi(t, e);
|
|
3745
3807
|
}
|
|
3746
|
-
function
|
|
3808
|
+
function xi(n) {
|
|
3747
3809
|
let e = n.segments || [], t = [];
|
|
3748
3810
|
if (!e.length || e[0][0] !== "M")
|
|
3749
3811
|
return !1;
|
|
@@ -3762,11 +3824,11 @@ function hi(n) {
|
|
|
3762
3824
|
}
|
|
3763
3825
|
return t.length ? { ring: t } : !1;
|
|
3764
3826
|
}
|
|
3765
|
-
function
|
|
3766
|
-
let t =
|
|
3827
|
+
function yi(n, e) {
|
|
3828
|
+
let t = di(n)[0], o = [], i, a, s = 3;
|
|
3767
3829
|
if (!t)
|
|
3768
3830
|
throw new TypeError(ae);
|
|
3769
|
-
a =
|
|
3831
|
+
a = vi(t), i = a.getTotalLength(), e && Dt(e) && e > 0 && (s = Math.max(s, Math.ceil(i / e)));
|
|
3770
3832
|
for (let r = 0; r < s; r++) {
|
|
3771
3833
|
let l = a.getPointAtLength(i * r / s);
|
|
3772
3834
|
o.push([l.x, l.y]);
|
|
@@ -3776,51 +3838,51 @@ function ci(n, e) {
|
|
|
3776
3838
|
skipBisect: !0
|
|
3777
3839
|
};
|
|
3778
3840
|
}
|
|
3779
|
-
function
|
|
3841
|
+
function vi(n) {
|
|
3780
3842
|
if (typeof window < "u" && window && window.document)
|
|
3781
3843
|
try {
|
|
3782
3844
|
let e = window.document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
3783
3845
|
return e.setAttributeNS(null, "d", n), e;
|
|
3784
3846
|
} catch {
|
|
3785
3847
|
}
|
|
3786
|
-
return
|
|
3848
|
+
return li(n);
|
|
3787
3849
|
}
|
|
3788
|
-
function
|
|
3789
|
-
const t = n.length + e, o =
|
|
3850
|
+
function Ke(n, e) {
|
|
3851
|
+
const t = n.length + e, o = R1(n) / e;
|
|
3790
3852
|
let i = 0, a = 0, s = o / 2;
|
|
3791
3853
|
for (; n.length < t; ) {
|
|
3792
3854
|
let r = n[i], l = n[(i + 1) % n.length], c = zt(r, l);
|
|
3793
3855
|
if (s <= a + c) {
|
|
3794
|
-
n.splice(i + 1, 0, c ?
|
|
3856
|
+
n.splice(i + 1, 0, c ? b0(r, l, (s - a) / c) : r.slice(0)), s += o;
|
|
3795
3857
|
continue;
|
|
3796
3858
|
}
|
|
3797
3859
|
a += c, i++;
|
|
3798
3860
|
}
|
|
3799
3861
|
}
|
|
3800
|
-
function
|
|
3862
|
+
function wi(n, e = 1 / 0) {
|
|
3801
3863
|
for (let t = 0; t < n.length; t++) {
|
|
3802
3864
|
let o = n[t], i = t === n.length - 1 ? n[0] : n[t + 1];
|
|
3803
3865
|
for (; zt(o, i) > e; )
|
|
3804
|
-
i =
|
|
3866
|
+
i = b0(o, i, 0.5), n.splice(t + 1, 0, i);
|
|
3805
3867
|
}
|
|
3806
3868
|
}
|
|
3807
|
-
function
|
|
3869
|
+
function Ze(n, e) {
|
|
3808
3870
|
let t, o, i;
|
|
3809
3871
|
if (typeof n == "string") {
|
|
3810
|
-
let a =
|
|
3872
|
+
let a = gi(n, e);
|
|
3811
3873
|
n = a.ring, i = a.skipBisect;
|
|
3812
3874
|
} else if (!Array.isArray(n))
|
|
3813
3875
|
throw new TypeError(ae);
|
|
3814
|
-
if (t = n.slice(0), !
|
|
3876
|
+
if (t = n.slice(0), !mi(t))
|
|
3815
3877
|
throw new TypeError(ae);
|
|
3816
|
-
return t.length > 1 &&
|
|
3878
|
+
return t.length > 1 && hi(t[0], t[t.length - 1]) && t.pop(), o = N1(t), o > 0 && t.reverse(), !i && e && Dt(e) && e > 0 && wi(t, e), t;
|
|
3817
3879
|
}
|
|
3818
|
-
function
|
|
3880
|
+
function mi(n) {
|
|
3819
3881
|
return n.every(function(e) {
|
|
3820
3882
|
return Array.isArray(e) && e.length >= 2 && Dt(e[0]) && Dt(e[1]);
|
|
3821
3883
|
});
|
|
3822
3884
|
}
|
|
3823
|
-
function
|
|
3885
|
+
function bi(n, e) {
|
|
3824
3886
|
let t = n.length, o = 1 / 0, i, a, s;
|
|
3825
3887
|
for (let r = 0; r < t; r++)
|
|
3826
3888
|
a = 0, e.forEach(function(l, c) {
|
|
@@ -3829,108 +3891,108 @@ function gi(n, e) {
|
|
|
3829
3891
|
}), a < o && (o = a, i = r);
|
|
3830
3892
|
i && (s = n.splice(0, i), n.splice(n.length, 0, ...s));
|
|
3831
3893
|
}
|
|
3832
|
-
function
|
|
3833
|
-
let i =
|
|
3894
|
+
function Ai(n, e, { maxSegmentLength: t = 10, string: o = !0 } = {}) {
|
|
3895
|
+
let i = Ze(n, t), a = Ze(e, t), s = Ti(i, a, o);
|
|
3834
3896
|
return !o || typeof n != "string" && typeof e != "string" ? s : (r) => r < 1e-4 && typeof n == "string" ? n : 1 - r < 1e-4 && typeof e == "string" ? e : s(r);
|
|
3835
3897
|
}
|
|
3836
|
-
function
|
|
3898
|
+
function Ti(n, e, t) {
|
|
3837
3899
|
let o;
|
|
3838
|
-
return o = n.length - e.length,
|
|
3839
|
-
}
|
|
3840
|
-
var Rt = { exports: {} },
|
|
3841
|
-
function
|
|
3842
|
-
if (
|
|
3843
|
-
|
|
3844
|
-
function n(d, x,
|
|
3845
|
-
|
|
3846
|
-
var w = x && x.length, m = w ? x[0] *
|
|
3900
|
+
return o = n.length - e.length, Ke(n, o < 0 ? o * -1 : 0), Ke(e, o > 0 ? o : 0), bi(n, e), ci(n, e, t);
|
|
3901
|
+
}
|
|
3902
|
+
var Rt = { exports: {} }, Je;
|
|
3903
|
+
function Li() {
|
|
3904
|
+
if (Je) return Rt.exports;
|
|
3905
|
+
Je = 1, Rt.exports = n, Rt.exports.default = n;
|
|
3906
|
+
function n(d, x, g) {
|
|
3907
|
+
g = g || 2;
|
|
3908
|
+
var w = x && x.length, m = w ? x[0] * g : d.length, b = e(d, 0, m, g, !0), A = [];
|
|
3847
3909
|
if (!b || b.next === b.prev) return A;
|
|
3848
|
-
var P, R, O, W,
|
|
3849
|
-
if (w && (b = l(d, x, b,
|
|
3910
|
+
var P, R, O, W, V, D, X;
|
|
3911
|
+
if (w && (b = l(d, x, b, g)), d.length > 80 * g) {
|
|
3850
3912
|
P = O = d[0], R = W = d[1];
|
|
3851
|
-
for (var H =
|
|
3852
|
-
|
|
3913
|
+
for (var H = g; H < m; H += g)
|
|
3914
|
+
V = d[H], D = d[H + 1], V < P && (P = V), D < R && (R = D), V > O && (O = V), D > W && (W = D);
|
|
3853
3915
|
X = Math.max(O - P, W - R), X = X !== 0 ? 32767 / X : 0;
|
|
3854
3916
|
}
|
|
3855
|
-
return o(b, A,
|
|
3917
|
+
return o(b, A, g, P, R, X, 0), A;
|
|
3856
3918
|
}
|
|
3857
|
-
function e(d, x,
|
|
3919
|
+
function e(d, x, g, w, m) {
|
|
3858
3920
|
var b, A;
|
|
3859
|
-
if (m ===
|
|
3860
|
-
for (b = x; b <
|
|
3921
|
+
if (m === jt(d, x, g, w) > 0)
|
|
3922
|
+
for (b = x; b < g; b += w) A = Q(b, d[b], d[b + 1], A);
|
|
3861
3923
|
else
|
|
3862
|
-
for (b =
|
|
3924
|
+
for (b = g - w; b >= x; b -= w) A = Q(b, d[b], d[b + 1], A);
|
|
3863
3925
|
return A && E(A, A.next) && (ft(A), A = A.next), A;
|
|
3864
3926
|
}
|
|
3865
3927
|
function t(d, x) {
|
|
3866
3928
|
if (!d) return d;
|
|
3867
3929
|
x || (x = d);
|
|
3868
|
-
var
|
|
3930
|
+
var g = d, w;
|
|
3869
3931
|
do
|
|
3870
|
-
if (w = !1, !
|
|
3871
|
-
if (ft(
|
|
3932
|
+
if (w = !1, !g.steiner && (E(g, g.next) || L(g.prev, g, g.next) === 0)) {
|
|
3933
|
+
if (ft(g), g = x = g.prev, g === g.next) break;
|
|
3872
3934
|
w = !0;
|
|
3873
3935
|
} else
|
|
3874
|
-
|
|
3875
|
-
while (w ||
|
|
3936
|
+
g = g.next;
|
|
3937
|
+
while (w || g !== x);
|
|
3876
3938
|
return x;
|
|
3877
3939
|
}
|
|
3878
|
-
function o(d, x,
|
|
3940
|
+
function o(d, x, g, w, m, b, A) {
|
|
3879
3941
|
if (d) {
|
|
3880
3942
|
!A && b && f(d, w, m, b);
|
|
3881
3943
|
for (var P = d, R, O; d.prev !== d.next; ) {
|
|
3882
3944
|
if (R = d.prev, O = d.next, b ? a(d, w, m, b) : i(d)) {
|
|
3883
|
-
x.push(R.i /
|
|
3945
|
+
x.push(R.i / g | 0), x.push(d.i / g | 0), x.push(O.i / g | 0), ft(d), d = O.next, P = O.next;
|
|
3884
3946
|
continue;
|
|
3885
3947
|
}
|
|
3886
3948
|
if (d = O, d === P) {
|
|
3887
|
-
A ? A === 1 ? (d = s(t(d), x,
|
|
3949
|
+
A ? A === 1 ? (d = s(t(d), x, g), o(d, x, g, w, m, b, 2)) : A === 2 && r(d, x, g, w, m, b) : o(t(d), x, g, w, m, b, 1);
|
|
3888
3950
|
break;
|
|
3889
3951
|
}
|
|
3890
3952
|
}
|
|
3891
3953
|
}
|
|
3892
3954
|
}
|
|
3893
3955
|
function i(d) {
|
|
3894
|
-
var x = d.prev,
|
|
3895
|
-
if (L(x,
|
|
3896
|
-
for (var m = x.x, b =
|
|
3897
|
-
if (H.x >= W && H.x <= D && H.y >=
|
|
3956
|
+
var x = d.prev, g = d, w = d.next;
|
|
3957
|
+
if (L(x, g, w) >= 0) return !1;
|
|
3958
|
+
for (var m = x.x, b = g.x, A = w.x, P = x.y, R = g.y, O = w.y, W = m < b ? m < A ? m : A : b < A ? b : A, V = P < R ? P < O ? P : O : R < O ? R : O, D = m > b ? m > A ? m : A : b > A ? b : A, X = P > R ? P > O ? P : O : R > O ? R : O, H = w.next; H !== x; ) {
|
|
3959
|
+
if (H.x >= W && H.x <= D && H.y >= V && H.y <= X && C(m, P, b, R, A, O, H.x, H.y) && L(H.prev, H, H.next) >= 0) return !1;
|
|
3898
3960
|
H = H.next;
|
|
3899
3961
|
}
|
|
3900
3962
|
return !0;
|
|
3901
3963
|
}
|
|
3902
|
-
function a(d, x,
|
|
3964
|
+
function a(d, x, g, w) {
|
|
3903
3965
|
var m = d.prev, b = d, A = d.next;
|
|
3904
3966
|
if (L(m, b, A) >= 0) return !1;
|
|
3905
|
-
for (var P = m.x, R = b.x, O = A.x, W = m.y,
|
|
3906
|
-
if (q.x >= X && q.x <= Ct && q.y >= H && q.y <= St && q !== m && q !== A && C(P, W, R,
|
|
3967
|
+
for (var P = m.x, R = b.x, O = A.x, W = m.y, V = b.y, D = A.y, X = P < R ? P < O ? P : O : R < O ? R : O, H = W < V ? W < D ? W : D : V < D ? V : D, Ct = P > R ? P > O ? P : O : R > O ? R : O, St = W > V ? W > D ? W : D : V > D ? V : D, we = y(X, H, x, g, w), me = y(Ct, St, x, g, w), q = d.prevZ, z = d.nextZ; q && q.z >= we && z && z.z <= me; ) {
|
|
3968
|
+
if (q.x >= X && q.x <= Ct && q.y >= H && q.y <= St && q !== m && q !== A && C(P, W, R, V, O, D, q.x, q.y) && L(q.prev, q, q.next) >= 0 || (q = q.prevZ, z.x >= X && z.x <= Ct && z.y >= H && z.y <= St && z !== m && z !== A && C(P, W, R, V, O, D, z.x, z.y) && L(z.prev, z, z.next) >= 0)) return !1;
|
|
3907
3969
|
z = z.nextZ;
|
|
3908
3970
|
}
|
|
3909
|
-
for (; q && q.z >=
|
|
3910
|
-
if (q.x >= X && q.x <= Ct && q.y >= H && q.y <= St && q !== m && q !== A && C(P, W, R,
|
|
3971
|
+
for (; q && q.z >= we; ) {
|
|
3972
|
+
if (q.x >= X && q.x <= Ct && q.y >= H && q.y <= St && q !== m && q !== A && C(P, W, R, V, O, D, q.x, q.y) && L(q.prev, q, q.next) >= 0) return !1;
|
|
3911
3973
|
q = q.prevZ;
|
|
3912
3974
|
}
|
|
3913
|
-
for (; z && z.z <=
|
|
3914
|
-
if (z.x >= X && z.x <= Ct && z.y >= H && z.y <= St && z !== m && z !== A && C(P, W, R,
|
|
3975
|
+
for (; z && z.z <= me; ) {
|
|
3976
|
+
if (z.x >= X && z.x <= Ct && z.y >= H && z.y <= St && z !== m && z !== A && C(P, W, R, V, O, D, z.x, z.y) && L(z.prev, z, z.next) >= 0) return !1;
|
|
3915
3977
|
z = z.nextZ;
|
|
3916
3978
|
}
|
|
3917
3979
|
return !0;
|
|
3918
3980
|
}
|
|
3919
|
-
function s(d, x,
|
|
3981
|
+
function s(d, x, g) {
|
|
3920
3982
|
var w = d;
|
|
3921
3983
|
do {
|
|
3922
3984
|
var m = w.prev, b = w.next.next;
|
|
3923
|
-
!E(m, b) && S(m, w, w.next, b) && B(m, b) && B(b, m) && (x.push(m.i /
|
|
3985
|
+
!E(m, b) && S(m, w, w.next, b) && B(m, b) && B(b, m) && (x.push(m.i / g | 0), x.push(w.i / g | 0), x.push(b.i / g | 0), ft(w), ft(w.next), w = d = b), w = w.next;
|
|
3924
3986
|
} while (w !== d);
|
|
3925
3987
|
return t(w);
|
|
3926
3988
|
}
|
|
3927
|
-
function r(d, x,
|
|
3989
|
+
function r(d, x, g, w, m, b) {
|
|
3928
3990
|
var A = d;
|
|
3929
3991
|
do {
|
|
3930
3992
|
for (var P = A.next.next; P !== A.prev; ) {
|
|
3931
3993
|
if (A.i !== P.i && M(A, P)) {
|
|
3932
3994
|
var R = lt(A, P);
|
|
3933
|
-
A = t(A, A.next), R = t(R, R.next), o(A, x,
|
|
3995
|
+
A = t(A, A.next), R = t(R, R.next), o(A, x, g, w, m, b, 0), o(R, x, g, w, m, b, 0);
|
|
3934
3996
|
return;
|
|
3935
3997
|
}
|
|
3936
3998
|
P = P.next;
|
|
@@ -3938,169 +4000,169 @@ function yi() {
|
|
|
3938
4000
|
A = A.next;
|
|
3939
4001
|
} while (A !== d);
|
|
3940
4002
|
}
|
|
3941
|
-
function l(d, x,
|
|
4003
|
+
function l(d, x, g, w) {
|
|
3942
4004
|
var m = [], b, A, P, R, O;
|
|
3943
4005
|
for (b = 0, A = x.length; b < A; b++)
|
|
3944
4006
|
P = x[b] * w, R = b < A - 1 ? x[b + 1] * w : d.length, O = e(d, P, R, w, !1), O === O.next && (O.steiner = !0), m.push(T(O));
|
|
3945
4007
|
for (m.sort(c), b = 0; b < m.length; b++)
|
|
3946
|
-
|
|
3947
|
-
return
|
|
4008
|
+
g = u(m[b], g);
|
|
4009
|
+
return g;
|
|
3948
4010
|
}
|
|
3949
4011
|
function c(d, x) {
|
|
3950
4012
|
return d.x - x.x;
|
|
3951
4013
|
}
|
|
3952
4014
|
function u(d, x) {
|
|
3953
|
-
var
|
|
3954
|
-
if (!
|
|
4015
|
+
var g = p(d, x);
|
|
4016
|
+
if (!g)
|
|
3955
4017
|
return x;
|
|
3956
|
-
var w = lt(
|
|
3957
|
-
return t(w, w.next), t(
|
|
4018
|
+
var w = lt(g, d);
|
|
4019
|
+
return t(w, w.next), t(g, g.next);
|
|
3958
4020
|
}
|
|
3959
|
-
function
|
|
3960
|
-
var
|
|
4021
|
+
function p(d, x) {
|
|
4022
|
+
var g = x, w = d.x, m = d.y, b = -1 / 0, A;
|
|
3961
4023
|
do {
|
|
3962
|
-
if (m <=
|
|
3963
|
-
var P =
|
|
3964
|
-
if (P <= w && P > b && (b = P, A =
|
|
4024
|
+
if (m <= g.y && m >= g.next.y && g.next.y !== g.y) {
|
|
4025
|
+
var P = g.x + (m - g.y) * (g.next.x - g.x) / (g.next.y - g.y);
|
|
4026
|
+
if (P <= w && P > b && (b = P, A = g.x < g.next.x ? g : g.next, P === w))
|
|
3965
4027
|
return A;
|
|
3966
4028
|
}
|
|
3967
|
-
|
|
3968
|
-
} while (
|
|
4029
|
+
g = g.next;
|
|
4030
|
+
} while (g !== x);
|
|
3969
4031
|
if (!A) return null;
|
|
3970
|
-
var R = A, O = A.x, W = A.y,
|
|
3971
|
-
|
|
4032
|
+
var R = A, O = A.x, W = A.y, V = 1 / 0, D;
|
|
4033
|
+
g = A;
|
|
3972
4034
|
do
|
|
3973
|
-
w >=
|
|
3974
|
-
while (
|
|
4035
|
+
w >= g.x && g.x >= O && w !== g.x && C(m < W ? w : b, m, O, W, m < W ? b : w, m, g.x, g.y) && (D = Math.abs(m - g.y) / (w - g.x), B(g, d) && (D < V || D === V && (g.x > A.x || g.x === A.x && h(A, g))) && (A = g, V = D)), g = g.next;
|
|
4036
|
+
while (g !== R);
|
|
3975
4037
|
return A;
|
|
3976
4038
|
}
|
|
3977
4039
|
function h(d, x) {
|
|
3978
4040
|
return L(d.prev, d, x.prev) < 0 && L(x.next, d, d.next) < 0;
|
|
3979
4041
|
}
|
|
3980
|
-
function f(d, x,
|
|
4042
|
+
function f(d, x, g, w) {
|
|
3981
4043
|
var m = d;
|
|
3982
4044
|
do
|
|
3983
|
-
m.z === 0 && (m.z = y(m.x, m.y, x,
|
|
4045
|
+
m.z === 0 && (m.z = y(m.x, m.y, x, g, w)), m.prevZ = m.prev, m.nextZ = m.next, m = m.next;
|
|
3984
4046
|
while (m !== d);
|
|
3985
4047
|
m.prevZ.nextZ = null, m.prevZ = null, v(m);
|
|
3986
4048
|
}
|
|
3987
4049
|
function v(d) {
|
|
3988
|
-
var x,
|
|
4050
|
+
var x, g, w, m, b, A, P, R, O = 1;
|
|
3989
4051
|
do {
|
|
3990
|
-
for (
|
|
3991
|
-
for (A++, w =
|
|
4052
|
+
for (g = d, d = null, b = null, A = 0; g; ) {
|
|
4053
|
+
for (A++, w = g, P = 0, x = 0; x < O && (P++, w = w.nextZ, !!w); x++)
|
|
3992
4054
|
;
|
|
3993
4055
|
for (R = O; P > 0 || R > 0 && w; )
|
|
3994
|
-
P !== 0 && (R === 0 || !w ||
|
|
3995
|
-
|
|
4056
|
+
P !== 0 && (R === 0 || !w || g.z <= w.z) ? (m = g, g = g.nextZ, P--) : (m = w, w = w.nextZ, R--), b ? b.nextZ = m : d = m, m.prevZ = b, b = m;
|
|
4057
|
+
g = w;
|
|
3996
4058
|
}
|
|
3997
4059
|
b.nextZ = null, O *= 2;
|
|
3998
4060
|
} while (A > 1);
|
|
3999
4061
|
return d;
|
|
4000
4062
|
}
|
|
4001
|
-
function y(d, x,
|
|
4002
|
-
return d = (d -
|
|
4063
|
+
function y(d, x, g, w, m) {
|
|
4064
|
+
return d = (d - g) * m | 0, x = (x - w) * m | 0, d = (d | d << 8) & 16711935, d = (d | d << 4) & 252645135, d = (d | d << 2) & 858993459, d = (d | d << 1) & 1431655765, x = (x | x << 8) & 16711935, x = (x | x << 4) & 252645135, x = (x | x << 2) & 858993459, x = (x | x << 1) & 1431655765, d | x << 1;
|
|
4003
4065
|
}
|
|
4004
4066
|
function T(d) {
|
|
4005
|
-
var x = d,
|
|
4067
|
+
var x = d, g = d;
|
|
4006
4068
|
do
|
|
4007
|
-
(x.x <
|
|
4069
|
+
(x.x < g.x || x.x === g.x && x.y < g.y) && (g = x), x = x.next;
|
|
4008
4070
|
while (x !== d);
|
|
4009
|
-
return
|
|
4071
|
+
return g;
|
|
4010
4072
|
}
|
|
4011
|
-
function C(d, x,
|
|
4012
|
-
return (m - A) * (x - P) >= (d - A) * (b - P) && (d - A) * (w - P) >= (
|
|
4073
|
+
function C(d, x, g, w, m, b, A, P) {
|
|
4074
|
+
return (m - A) * (x - P) >= (d - A) * (b - P) && (d - A) * (w - P) >= (g - A) * (x - P) && (g - A) * (b - P) >= (m - A) * (w - P);
|
|
4013
4075
|
}
|
|
4014
4076
|
function M(d, x) {
|
|
4015
4077
|
return d.next.i !== x.i && d.prev.i !== x.i && !U(d, x) && // dones't intersect other edges
|
|
4016
|
-
(B(d, x) && B(x, d) &&
|
|
4078
|
+
(B(d, x) && B(x, d) && $(d, x) && // locally visible
|
|
4017
4079
|
(L(d.prev, d, x.prev) || L(d, x.prev, x)) || // does not create opposite-facing sectors
|
|
4018
4080
|
E(d, x) && L(d.prev, d, d.next) > 0 && L(x.prev, x, x.next) > 0);
|
|
4019
4081
|
}
|
|
4020
|
-
function L(d, x,
|
|
4021
|
-
return (x.y - d.y) * (
|
|
4082
|
+
function L(d, x, g) {
|
|
4083
|
+
return (x.y - d.y) * (g.x - x.x) - (x.x - d.x) * (g.y - x.y);
|
|
4022
4084
|
}
|
|
4023
4085
|
function E(d, x) {
|
|
4024
4086
|
return d.x === x.x && d.y === x.y;
|
|
4025
4087
|
}
|
|
4026
|
-
function S(d, x,
|
|
4027
|
-
var m = F(L(d, x,
|
|
4028
|
-
return !!(m !== b && A !== P || m === 0 && k(d,
|
|
4088
|
+
function S(d, x, g, w) {
|
|
4089
|
+
var m = F(L(d, x, g)), b = F(L(d, x, w)), A = F(L(g, w, d)), P = F(L(g, w, x));
|
|
4090
|
+
return !!(m !== b && A !== P || m === 0 && k(d, g, x) || b === 0 && k(d, w, x) || A === 0 && k(g, d, w) || P === 0 && k(g, x, w));
|
|
4029
4091
|
}
|
|
4030
|
-
function k(d, x,
|
|
4031
|
-
return x.x <= Math.max(d.x,
|
|
4092
|
+
function k(d, x, g) {
|
|
4093
|
+
return x.x <= Math.max(d.x, g.x) && x.x >= Math.min(d.x, g.x) && x.y <= Math.max(d.y, g.y) && x.y >= Math.min(d.y, g.y);
|
|
4032
4094
|
}
|
|
4033
4095
|
function F(d) {
|
|
4034
4096
|
return d > 0 ? 1 : d < 0 ? -1 : 0;
|
|
4035
4097
|
}
|
|
4036
4098
|
function U(d, x) {
|
|
4037
|
-
var
|
|
4099
|
+
var g = d;
|
|
4038
4100
|
do {
|
|
4039
|
-
if (
|
|
4040
|
-
|
|
4041
|
-
} while (
|
|
4101
|
+
if (g.i !== d.i && g.next.i !== d.i && g.i !== x.i && g.next.i !== x.i && S(g, g.next, d, x)) return !0;
|
|
4102
|
+
g = g.next;
|
|
4103
|
+
} while (g !== d);
|
|
4042
4104
|
return !1;
|
|
4043
4105
|
}
|
|
4044
4106
|
function B(d, x) {
|
|
4045
4107
|
return L(d.prev, d, d.next) < 0 ? L(d, x, d.next) >= 0 && L(d, d.prev, x) >= 0 : L(d, x, d.prev) < 0 || L(d, d.next, x) < 0;
|
|
4046
4108
|
}
|
|
4047
|
-
function
|
|
4048
|
-
var
|
|
4109
|
+
function $(d, x) {
|
|
4110
|
+
var g = d, w = !1, m = (d.x + x.x) / 2, b = (d.y + x.y) / 2;
|
|
4049
4111
|
do
|
|
4050
|
-
|
|
4051
|
-
while (
|
|
4112
|
+
g.y > b != g.next.y > b && g.next.y !== g.y && m < (g.next.x - g.x) * (b - g.y) / (g.next.y - g.y) + g.x && (w = !w), g = g.next;
|
|
4113
|
+
while (g !== d);
|
|
4052
4114
|
return w;
|
|
4053
4115
|
}
|
|
4054
4116
|
function lt(d, x) {
|
|
4055
|
-
var
|
|
4056
|
-
return d.next = x, x.prev = d,
|
|
4117
|
+
var g = new it(d.i, d.x, d.y), w = new it(x.i, x.x, x.y), m = d.next, b = x.prev;
|
|
4118
|
+
return d.next = x, x.prev = d, g.next = m, m.prev = g, w.next = g, g.prev = w, b.next = w, w.prev = b, w;
|
|
4057
4119
|
}
|
|
4058
|
-
function Q(d, x,
|
|
4059
|
-
var m = new it(d, x,
|
|
4120
|
+
function Q(d, x, g, w) {
|
|
4121
|
+
var m = new it(d, x, g);
|
|
4060
4122
|
return w ? (m.next = w.next, m.prev = w, w.next.prev = m, w.next = m) : (m.prev = m, m.next = m), m;
|
|
4061
4123
|
}
|
|
4062
4124
|
function ft(d) {
|
|
4063
4125
|
d.next.prev = d.prev, d.prev.next = d.next, d.prevZ && (d.prevZ.nextZ = d.nextZ), d.nextZ && (d.nextZ.prevZ = d.prevZ);
|
|
4064
4126
|
}
|
|
4065
|
-
function it(d, x,
|
|
4066
|
-
this.i = d, this.x = x, this.y =
|
|
4127
|
+
function it(d, x, g) {
|
|
4128
|
+
this.i = d, this.x = x, this.y = g, this.prev = null, this.next = null, this.z = 0, this.prevZ = null, this.nextZ = null, this.steiner = !1;
|
|
4067
4129
|
}
|
|
4068
|
-
n.deviation = function(d, x,
|
|
4069
|
-
var m = x && x.length, b = m ? x[0] *
|
|
4130
|
+
n.deviation = function(d, x, g, w) {
|
|
4131
|
+
var m = x && x.length, b = m ? x[0] * g : d.length, A = Math.abs(jt(d, 0, b, g));
|
|
4070
4132
|
if (m)
|
|
4071
4133
|
for (var P = 0, R = x.length; P < R; P++) {
|
|
4072
|
-
var O = x[P] *
|
|
4073
|
-
A -= Math.abs(
|
|
4134
|
+
var O = x[P] * g, W = P < R - 1 ? x[P + 1] * g : d.length;
|
|
4135
|
+
A -= Math.abs(jt(d, O, W, g));
|
|
4074
4136
|
}
|
|
4075
|
-
var
|
|
4137
|
+
var V = 0;
|
|
4076
4138
|
for (P = 0; P < w.length; P += 3) {
|
|
4077
|
-
var D = w[P] *
|
|
4078
|
-
|
|
4139
|
+
var D = w[P] * g, X = w[P + 1] * g, H = w[P + 2] * g;
|
|
4140
|
+
V += Math.abs(
|
|
4079
4141
|
(d[D] - d[H]) * (d[X + 1] - d[D + 1]) - (d[D] - d[X]) * (d[H + 1] - d[D + 1])
|
|
4080
4142
|
);
|
|
4081
4143
|
}
|
|
4082
|
-
return A === 0 &&
|
|
4144
|
+
return A === 0 && V === 0 ? 0 : Math.abs((V - A) / A);
|
|
4083
4145
|
};
|
|
4084
|
-
function
|
|
4085
|
-
for (var m = 0, b = x, A =
|
|
4146
|
+
function jt(d, x, g, w) {
|
|
4147
|
+
for (var m = 0, b = x, A = g - w; b < g; b += w)
|
|
4086
4148
|
m += (d[A] - d[b]) * (d[b + 1] + d[A + 1]), A = b;
|
|
4087
4149
|
return m;
|
|
4088
4150
|
}
|
|
4089
4151
|
return n.flatten = function(d) {
|
|
4090
|
-
for (var x = d[0][0].length,
|
|
4152
|
+
for (var x = d[0][0].length, g = { vertices: [], holes: [], dimensions: x }, w = 0, m = 0; m < d.length; m++) {
|
|
4091
4153
|
for (var b = 0; b < d[m].length; b++)
|
|
4092
|
-
for (var A = 0; A < x; A++)
|
|
4093
|
-
m > 0 && (w += d[m - 1].length,
|
|
4154
|
+
for (var A = 0; A < x; A++) g.vertices.push(d[m][b][A]);
|
|
4155
|
+
m > 0 && (w += d[m - 1].length, g.holes.push(w));
|
|
4094
4156
|
}
|
|
4095
|
-
return
|
|
4157
|
+
return g;
|
|
4096
4158
|
}, Rt.exports;
|
|
4097
4159
|
}
|
|
4098
|
-
|
|
4099
|
-
function
|
|
4160
|
+
Li();
|
|
4161
|
+
function A0(n, e) {
|
|
4100
4162
|
return n < e ? -1 : n > e ? 1 : n >= e ? 0 : NaN;
|
|
4101
4163
|
}
|
|
4102
|
-
function
|
|
4103
|
-
return n.length === 1 && (n =
|
|
4164
|
+
function Mi(n) {
|
|
4165
|
+
return n.length === 1 && (n = Ci(n)), {
|
|
4104
4166
|
left: function(e, t, o, i) {
|
|
4105
4167
|
for (o == null && (o = 0), i == null && (i = e.length); o < i; ) {
|
|
4106
4168
|
var a = o + i >>> 1;
|
|
@@ -4117,31 +4179,31 @@ function vi(n) {
|
|
|
4117
4179
|
}
|
|
4118
4180
|
};
|
|
4119
4181
|
}
|
|
4120
|
-
function
|
|
4182
|
+
function Ci(n) {
|
|
4121
4183
|
return function(e, t) {
|
|
4122
|
-
return
|
|
4184
|
+
return A0(n(e), t);
|
|
4123
4185
|
};
|
|
4124
4186
|
}
|
|
4125
|
-
|
|
4126
|
-
function
|
|
4127
|
-
const o =
|
|
4187
|
+
Mi(A0);
|
|
4188
|
+
function Ki(n, e, t = 3) {
|
|
4189
|
+
const o = Ai(n, e, { maxSegmentLength: t });
|
|
4128
4190
|
return {
|
|
4129
4191
|
check: (i) => typeof i == "string",
|
|
4130
4192
|
interpolate: (i, a, s) => o(s)
|
|
4131
4193
|
};
|
|
4132
4194
|
}
|
|
4133
|
-
function
|
|
4195
|
+
function Zi(n) {
|
|
4134
4196
|
const e = (o) => n.width * o, t = (o) => n.height * o;
|
|
4135
4197
|
return {
|
|
4136
4198
|
scaleX: e,
|
|
4137
4199
|
scaleY: t,
|
|
4138
|
-
position: (o, i) =>
|
|
4200
|
+
position: (o, i) => Y({
|
|
4139
4201
|
x: e(o),
|
|
4140
4202
|
y: t(i)
|
|
4141
4203
|
})
|
|
4142
4204
|
};
|
|
4143
4205
|
}
|
|
4144
|
-
function
|
|
4206
|
+
function Ji(n) {
|
|
4145
4207
|
const e = [];
|
|
4146
4208
|
if (n.isAllKey) {
|
|
4147
4209
|
for (let t = 0; t <= n.animations.length; t++)
|
|
@@ -4156,48 +4218,48 @@ export {
|
|
|
4156
4218
|
vt as Alignment,
|
|
4157
4219
|
st as Anchor,
|
|
4158
4220
|
ce as Animate,
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4221
|
+
Ni as Arrow,
|
|
4222
|
+
Yi as BrowserCanvasRenderer,
|
|
4223
|
+
Ri as Circle,
|
|
4162
4224
|
G as Color,
|
|
4163
4225
|
he as Easing,
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4226
|
+
Pi as FadeIn,
|
|
4227
|
+
Ei as FadeOut,
|
|
4228
|
+
Z0 as FontStyle,
|
|
4229
|
+
Q0 as FontWeight,
|
|
4230
|
+
Fi as Grid,
|
|
4231
|
+
be as Group,
|
|
4232
|
+
Ii as Hide,
|
|
4233
|
+
Oi as IFrame,
|
|
4234
|
+
Bi as Image,
|
|
4235
|
+
Di as Line,
|
|
4236
|
+
qi as Mask,
|
|
4237
|
+
j as ObjectType,
|
|
4238
|
+
Xi as Opaque,
|
|
4239
|
+
zi as Path,
|
|
4240
|
+
Wi as Pause,
|
|
4241
|
+
ji as Polygon,
|
|
4242
|
+
Y as Position,
|
|
4243
|
+
bn as Presentation,
|
|
4244
|
+
Vi as Rectangle,
|
|
4245
|
+
Ui as SVG,
|
|
4246
|
+
_i as ScreenCapture,
|
|
4247
|
+
ki as Show,
|
|
4186
4248
|
K as Size,
|
|
4187
|
-
|
|
4249
|
+
an as Slide,
|
|
4188
4250
|
nt as SlideObject,
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4251
|
+
t0 as SlideWebExtra,
|
|
4252
|
+
Hi as Spotlight,
|
|
4253
|
+
rn as Text,
|
|
4254
|
+
Gi as TextUnit,
|
|
4255
|
+
K0 as Transparent,
|
|
4256
|
+
Qe as Update,
|
|
4257
|
+
$i as Variable,
|
|
4258
|
+
Ji as getKeySlideBuildIndices,
|
|
4259
|
+
Zi as getSizingFunctions,
|
|
4260
|
+
Ki as getSmoothPathInterpolator,
|
|
4261
|
+
nn as getTextContentLength,
|
|
4262
|
+
Ln as interpolateColor,
|
|
4263
|
+
Cn as interpolateNumber
|
|
4202
4264
|
};
|
|
4203
4265
|
//# sourceMappingURL=presenter.mjs.map
|