@netless/app-slide 0.0.48 → 0.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/main.cjs.js +140 -140
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +775 -743
- package/dist/main.es.js.map +1 -1
- package/dist/main.iife.js +208 -208
- package/dist/main.iife.js.map +1 -1
- package/dist/utils/freezer.d.ts +1 -0
- package/package.json +2 -2
- package/src/SlideController/index.ts +1 -4
- package/src/index.ts +4 -3
- package/src/utils/freezer.ts +2 -0
package/dist/main.es.js
CHANGED
|
@@ -17,6 +17,99 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
function clamp$1(value, min, max) {
|
|
21
|
+
return Math.min(Math.max(value, min), max);
|
|
22
|
+
}
|
|
23
|
+
function isObj(obj) {
|
|
24
|
+
return typeof obj === "object" && obj !== null;
|
|
25
|
+
}
|
|
26
|
+
function deepClone(obj) {
|
|
27
|
+
return JSON.parse(JSON.stringify(obj));
|
|
28
|
+
}
|
|
29
|
+
class Logger {
|
|
30
|
+
constructor(enable) {
|
|
31
|
+
this.enable = enable;
|
|
32
|
+
this.apps = {};
|
|
33
|
+
this.level = "debug";
|
|
34
|
+
this._onMessage = (ev) => {
|
|
35
|
+
if (isObj(ev.data)) {
|
|
36
|
+
if (typeof ev.data.slide === "boolean") {
|
|
37
|
+
this.enable = ev.data.slide;
|
|
38
|
+
} else if (ev.data.slide === "__instance") {
|
|
39
|
+
console.log(this);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
window.addEventListener("message", this._onMessage);
|
|
44
|
+
}
|
|
45
|
+
log(...args) {
|
|
46
|
+
if (this.enable) {
|
|
47
|
+
console.log(...args);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
verbose(...args) {
|
|
51
|
+
if (this.enable && this.level === "verbose") {
|
|
52
|
+
console.log(...args);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
dispose(appId) {
|
|
56
|
+
this.enable = false;
|
|
57
|
+
delete this.apps[appId];
|
|
58
|
+
window.removeEventListener("message", this._onMessage);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
const logger = new Logger(false);
|
|
62
|
+
const log = logger.log.bind(logger);
|
|
63
|
+
const verbose = logger.verbose.bind(logger);
|
|
64
|
+
let useFreezer = false;
|
|
65
|
+
const FreezerLength = 2;
|
|
66
|
+
const apps = {
|
|
67
|
+
map: new Map(),
|
|
68
|
+
queue: [],
|
|
69
|
+
validateQueue() {
|
|
70
|
+
log("[Slide] freezer: validate", this.queue);
|
|
71
|
+
while (this.queue.length > FreezerLength) {
|
|
72
|
+
const appId = this.queue.pop();
|
|
73
|
+
const slide = this.map.get(appId);
|
|
74
|
+
if (slide) {
|
|
75
|
+
log("[Slide] freezer: validate-freeze", appId, this.queue);
|
|
76
|
+
slide.freeze();
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
set(appId, slide) {
|
|
81
|
+
log("[Slide] freezer: add", appId, this.queue);
|
|
82
|
+
this.map.set(appId, slide);
|
|
83
|
+
if (!this.queue.includes(appId)) {
|
|
84
|
+
this.queue.unshift(appId);
|
|
85
|
+
}
|
|
86
|
+
this.validateQueue();
|
|
87
|
+
},
|
|
88
|
+
delete(appId) {
|
|
89
|
+
log("[Slide] freezer: delete", appId, this.queue);
|
|
90
|
+
this.map.delete(appId);
|
|
91
|
+
this.queue = this.queue.filter((id) => id !== appId);
|
|
92
|
+
},
|
|
93
|
+
focus(appId) {
|
|
94
|
+
const slide = this.map.get(appId);
|
|
95
|
+
const index = this.queue.indexOf(appId);
|
|
96
|
+
if (index > -1) {
|
|
97
|
+
this.queue.splice(index, 1);
|
|
98
|
+
}
|
|
99
|
+
this.queue.unshift(appId);
|
|
100
|
+
this.validateQueue();
|
|
101
|
+
log("[Slide] freezer: focus", appId, this.queue);
|
|
102
|
+
if (slide) {
|
|
103
|
+
slide.unfreeze();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
const addHooks = (emitter) => {
|
|
108
|
+
useFreezer = true;
|
|
109
|
+
emitter.on("focus", ({ appId }) => {
|
|
110
|
+
apps.focus(appId);
|
|
111
|
+
});
|
|
112
|
+
};
|
|
20
113
|
const e = "!#%()*+,-./:;=?@[]^_`{|}~ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", s = e.length, t = Array(20), r = () => {
|
|
21
114
|
for (let r2 = 0; r2 < 20; r2++)
|
|
22
115
|
t[r2] = e.charAt(Math.random() * s);
|
|
@@ -247,10 +340,10 @@ var Slide = function(t2) {
|
|
|
247
340
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
248
341
|
*/
|
|
249
342
|
(function() {
|
|
250
|
-
var o2 = "Expected a function", s2 = "__lodash_placeholder__", a = [["ary", 128], ["bind", 1], ["bindKey", 2], ["curry", 8], ["curryRight", 16], ["flip", 512], ["partial", 32], ["partialRight", 64], ["rearg", 256]], l = "[object Arguments]", u = "[object Array]", h = "[object Boolean]", c = "[object Date]", d = "[object Error]", p = "[object Function]", f = "[object GeneratorFunction]", m = "[object Map]", g = "[object Number]", v = "[object Object]", _ = "[object RegExp]", y = "[object Set]", x = "[object String]", b = "[object Symbol]", T = "[object WeakMap]", w = "[object ArrayBuffer]", S = "[object DataView]", E = "[object Float32Array]", M = "[object Float64Array]", A = "[object Int8Array]", R = "[object Int16Array]", P = "[object Int32Array]",
|
|
251
|
-
Gt[E] = Gt[M] = Gt[A] = Gt[R] = Gt[P] = Gt[
|
|
343
|
+
var o2 = "Expected a function", s2 = "__lodash_placeholder__", a = [["ary", 128], ["bind", 1], ["bindKey", 2], ["curry", 8], ["curryRight", 16], ["flip", 512], ["partial", 32], ["partialRight", 64], ["rearg", 256]], l = "[object Arguments]", u = "[object Array]", h = "[object Boolean]", c = "[object Date]", d = "[object Error]", p = "[object Function]", f = "[object GeneratorFunction]", m = "[object Map]", g = "[object Number]", v = "[object Object]", _ = "[object RegExp]", y = "[object Set]", x = "[object String]", b = "[object Symbol]", T = "[object WeakMap]", w = "[object ArrayBuffer]", S = "[object DataView]", E = "[object Float32Array]", M = "[object Float64Array]", A = "[object Int8Array]", R = "[object Int16Array]", P = "[object Int32Array]", C = "[object Uint8Array]", I = "[object Uint16Array]", O = "[object Uint32Array]", L = /\b__p \+= '';/g, N = /\b(__p \+=) '' \+/g, D = /(__e\(.*?\)|\b__t\)) \+\n'';/g, F = /&(?:amp|lt|gt|quot|#39);/g, B = /[&<>"']/g, U = RegExp(F.source), k = RegExp(B.source), G = /<%-([\s\S]+?)%>/g, H = /<%([\s\S]+?)%>/g, z = /<%=([\s\S]+?)%>/g, j = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, V = /^\w*$/, W = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, X = /[\\^$.*+?()[\]{}|]/g, q = RegExp(X.source), Y = /^\s+/, Z = /\s/, J = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, $ = /\{\n\/\* \[wrapped with (.+)\] \*/, K = /,? & /, Q = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, tt = /[()=,{}\[\]\/\s]/, et = /\\(\\)?/g, nt = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, it = /\w*$/, rt = /^[-+]0x[0-9a-f]+$/i, ot = /^0b[01]+$/i, st = /^\[object .+?Constructor\]$/, at = /^0o[0-7]+$/i, lt = /^(?:0|[1-9]\d*)$/, ut = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, ht = /($^)/, ct = /['\n\r\u2028\u2029\\]/g, dt = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff", pt = "\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", ft = "[\\ud800-\\udfff]", mt = "[" + pt + "]", gt = "[" + dt + "]", vt = "\\d+", _t = "[\\u2700-\\u27bf]", yt = "[a-z\\xdf-\\xf6\\xf8-\\xff]", xt = "[^\\ud800-\\udfff" + pt + vt + "\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]", bt = "\\ud83c[\\udffb-\\udfff]", Tt = "[^\\ud800-\\udfff]", wt = "(?:\\ud83c[\\udde6-\\uddff]){2}", St = "[\\ud800-\\udbff][\\udc00-\\udfff]", Et = "[A-Z\\xc0-\\xd6\\xd8-\\xde]", Mt = "(?:" + yt + "|" + xt + ")", At = "(?:" + Et + "|" + xt + ")", Rt = "(?:" + gt + "|" + bt + ")?", Pt = "[\\ufe0e\\ufe0f]?" + Rt + ("(?:\\u200d(?:" + [Tt, wt, St].join("|") + ")[\\ufe0e\\ufe0f]?" + Rt + ")*"), Ct = "(?:" + [_t, wt, St].join("|") + ")" + Pt, It = "(?:" + [Tt + gt + "?", gt, wt, St, ft].join("|") + ")", Ot = RegExp("['\u2019]", "g"), Lt = RegExp(gt, "g"), Nt = RegExp(bt + "(?=" + bt + ")|" + It + Pt, "g"), Dt = RegExp([Et + "?" + yt + "+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?=" + [mt, Et, "$"].join("|") + ")", At + "+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?=" + [mt, Et + Mt, "$"].join("|") + ")", Et + "?" + Mt + "+(?:['\u2019](?:d|ll|m|re|s|t|ve))?", Et + "+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?", "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", vt, Ct].join("|"), "g"), Ft = RegExp("[\\u200d\\ud800-\\udfff" + dt + "\\ufe0e\\ufe0f]"), Bt = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, Ut = ["Array", "Buffer", "DataView", "Date", "Error", "Float32Array", "Float64Array", "Function", "Int8Array", "Int16Array", "Int32Array", "Map", "Math", "Object", "Promise", "RegExp", "Set", "String", "Symbol", "TypeError", "Uint8Array", "Uint8ClampedArray", "Uint16Array", "Uint32Array", "WeakMap", "_", "clearTimeout", "isFinite", "parseInt", "setTimeout"], kt = -1, Gt = {};
|
|
344
|
+
Gt[E] = Gt[M] = Gt[A] = Gt[R] = Gt[P] = Gt[C] = Gt["[object Uint8ClampedArray]"] = Gt[I] = Gt[O] = true, Gt[l] = Gt[u] = Gt[w] = Gt[h] = Gt[S] = Gt[c] = Gt[d] = Gt[p] = Gt[m] = Gt[g] = Gt[v] = Gt[_] = Gt[y] = Gt[x] = Gt[T] = false;
|
|
252
345
|
var Ht = {};
|
|
253
|
-
Ht[l] = Ht[u] = Ht[w] = Ht[S] = Ht[h] = Ht[c] = Ht[E] = Ht[M] = Ht[A] = Ht[R] = Ht[P] = Ht[m] = Ht[g] = Ht[v] = Ht[_] = Ht[y] = Ht[x] = Ht[b] = Ht[
|
|
346
|
+
Ht[l] = Ht[u] = Ht[w] = Ht[S] = Ht[h] = Ht[c] = Ht[E] = Ht[M] = Ht[A] = Ht[R] = Ht[P] = Ht[m] = Ht[g] = Ht[v] = Ht[_] = Ht[y] = Ht[x] = Ht[b] = Ht[C] = Ht["[object Uint8ClampedArray]"] = Ht[I] = Ht[O] = true, Ht[d] = Ht[p] = Ht[T] = false;
|
|
254
347
|
var zt = { "\\": "\\", "'": "'", "\n": "n", "\r": "r", "\u2028": "u2028", "\u2029": "u2029" }, jt = parseFloat, Vt = parseInt, Wt = typeof t3 == "object" && t3 && t3.Object === Object && t3, Xt = typeof self == "object" && self && self.Object === Object && self, qt = Wt || Xt || Function("return this")(), Yt = e2 && !e2.nodeType && e2, Zt = Yt && typeof i == "object" && i && !i.nodeType && i, Jt = Zt && Zt.exports === Yt, $t = Jt && Wt.process, Kt = function() {
|
|
255
348
|
try {
|
|
256
349
|
var t4 = Zt && Zt.require && Zt.require("util").types;
|
|
@@ -401,10 +494,10 @@ var Slide = function(t2) {
|
|
|
401
494
|
i2[n2] = e3(n2);
|
|
402
495
|
return i2;
|
|
403
496
|
}
|
|
404
|
-
function
|
|
497
|
+
function Ce(t4) {
|
|
405
498
|
return t4 ? t4.slice(0, Ye(t4) + 1).replace(Y, "") : t4;
|
|
406
499
|
}
|
|
407
|
-
function
|
|
500
|
+
function Ie(t4) {
|
|
408
501
|
return function(e3) {
|
|
409
502
|
return t4(e3);
|
|
410
503
|
};
|
|
@@ -491,13 +584,13 @@ var Slide = function(t2) {
|
|
|
491
584
|
}
|
|
492
585
|
var Ze = Me({ "&": "&", "<": "<", ">": ">", """: '"', "'": "'" });
|
|
493
586
|
var Je = function t4(e3) {
|
|
494
|
-
var n2, i2 = (e3 = e3 == null ? qt : Je.defaults(qt.Object(), e3, Je.pick(qt, Ut))).Array, r3 = e3.Date, Z2 = e3.Error, dt2 = e3.Function, pt2 = e3.Math, ft2 = e3.Object, mt2 = e3.RegExp, gt2 = e3.String, vt2 = e3.TypeError, _t2 = i2.prototype, yt2 = dt2.prototype, xt2 = ft2.prototype, bt2 = e3["__core-js_shared__"], Tt2 = yt2.toString, wt2 = xt2.hasOwnProperty, St2 = 0, Et2 = (n2 = /[^.]+$/.exec(bt2 && bt2.keys && bt2.keys.IE_PROTO || "")) ? "Symbol(src)_1." + n2 : "", Mt2 = xt2.toString, At2 = Tt2.call(ft2), Rt2 = qt._, Pt2 = mt2("^" + Tt2.call(wt2).replace(X, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"),
|
|
587
|
+
var n2, i2 = (e3 = e3 == null ? qt : Je.defaults(qt.Object(), e3, Je.pick(qt, Ut))).Array, r3 = e3.Date, Z2 = e3.Error, dt2 = e3.Function, pt2 = e3.Math, ft2 = e3.Object, mt2 = e3.RegExp, gt2 = e3.String, vt2 = e3.TypeError, _t2 = i2.prototype, yt2 = dt2.prototype, xt2 = ft2.prototype, bt2 = e3["__core-js_shared__"], Tt2 = yt2.toString, wt2 = xt2.hasOwnProperty, St2 = 0, Et2 = (n2 = /[^.]+$/.exec(bt2 && bt2.keys && bt2.keys.IE_PROTO || "")) ? "Symbol(src)_1." + n2 : "", Mt2 = xt2.toString, At2 = Tt2.call(ft2), Rt2 = qt._, Pt2 = mt2("^" + Tt2.call(wt2).replace(X, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), Ct2 = Jt ? e3.Buffer : void 0, It2 = e3.Symbol, Nt2 = e3.Uint8Array, Ft2 = Ct2 ? Ct2.allocUnsafe : void 0, zt2 = ze(ft2.getPrototypeOf, ft2), Wt2 = ft2.create, Xt2 = xt2.propertyIsEnumerable, Yt2 = _t2.splice, Zt2 = It2 ? It2.isConcatSpreadable : void 0, $t2 = It2 ? It2.iterator : void 0, Kt2 = It2 ? It2.toStringTag : void 0, _e2 = function() {
|
|
495
588
|
try {
|
|
496
589
|
var t5 = to(ft2, "defineProperty");
|
|
497
590
|
return t5({}, "", {}), t5;
|
|
498
591
|
} catch (t6) {
|
|
499
592
|
}
|
|
500
|
-
}(), Me2 = e3.clearTimeout !== qt.clearTimeout && e3.clearTimeout, $e = r3 && r3.now !== qt.Date.now && r3.now, Ke = e3.setTimeout !== qt.setTimeout && e3.setTimeout, Qe = pt2.ceil, tn = pt2.floor, en = ft2.getOwnPropertySymbols, nn =
|
|
593
|
+
}(), Me2 = e3.clearTimeout !== qt.clearTimeout && e3.clearTimeout, $e = r3 && r3.now !== qt.Date.now && r3.now, Ke = e3.setTimeout !== qt.setTimeout && e3.setTimeout, Qe = pt2.ceil, tn = pt2.floor, en = ft2.getOwnPropertySymbols, nn = Ct2 ? Ct2.isBuffer : void 0, rn = e3.isFinite, on = _t2.join, sn = ze(ft2.keys, ft2), an = pt2.max, ln = pt2.min, un = r3.now, hn = e3.parseInt, cn = pt2.random, dn = _t2.reverse, pn = to(e3, "DataView"), fn = to(e3, "Map"), mn = to(e3, "Promise"), gn = to(e3, "Set"), vn = to(e3, "WeakMap"), _n = to(ft2, "create"), yn = vn && new vn(), xn = {}, bn = Ro(pn), Tn = Ro(fn), wn = Ro(mn), Sn = Ro(gn), En = Ro(vn), Mn = It2 ? It2.prototype : void 0, An = Mn ? Mn.valueOf : void 0, Rn = Mn ? Mn.toString : void 0;
|
|
501
594
|
function Pn(t5) {
|
|
502
595
|
if (Ws(t5) && !Ns(t5) && !(t5 instanceof Ln)) {
|
|
503
596
|
if (t5 instanceof On)
|
|
@@ -507,7 +600,7 @@ var Slide = function(t2) {
|
|
|
507
600
|
}
|
|
508
601
|
return new On(t5);
|
|
509
602
|
}
|
|
510
|
-
var
|
|
603
|
+
var Cn = function() {
|
|
511
604
|
function t5() {
|
|
512
605
|
}
|
|
513
606
|
return function(e4) {
|
|
@@ -520,7 +613,7 @@ var Slide = function(t2) {
|
|
|
520
613
|
return t5.prototype = void 0, n3;
|
|
521
614
|
};
|
|
522
615
|
}();
|
|
523
|
-
function
|
|
616
|
+
function In() {
|
|
524
617
|
}
|
|
525
618
|
function On(t5, e4) {
|
|
526
619
|
this.__wrapped__ = t5, this.__actions__ = [], this.__chain__ = !!e4, this.__index__ = 0, this.__values__ = void 0;
|
|
@@ -575,15 +668,15 @@ var Slide = function(t2) {
|
|
|
575
668
|
return Eo(_r(t5));
|
|
576
669
|
}
|
|
577
670
|
function jn(t5, e4, n3) {
|
|
578
|
-
(n3 !== void 0 && !
|
|
671
|
+
(n3 !== void 0 && !Cs(t5[e4], n3) || n3 === void 0 && !(e4 in t5)) && Yn(t5, e4, n3);
|
|
579
672
|
}
|
|
580
673
|
function Vn(t5, e4, n3) {
|
|
581
674
|
var i3 = t5[e4];
|
|
582
|
-
wt2.call(t5, e4) &&
|
|
675
|
+
wt2.call(t5, e4) && Cs(i3, n3) && (n3 !== void 0 || e4 in t5) || Yn(t5, e4, n3);
|
|
583
676
|
}
|
|
584
677
|
function Wn(t5, e4) {
|
|
585
678
|
for (var n3 = t5.length; n3--; )
|
|
586
|
-
if (
|
|
679
|
+
if (Cs(t5[n3][0], e4))
|
|
587
680
|
return n3;
|
|
588
681
|
return -1;
|
|
589
682
|
}
|
|
@@ -654,9 +747,9 @@ var Slide = function(t2) {
|
|
|
654
747
|
case A:
|
|
655
748
|
case R:
|
|
656
749
|
case P:
|
|
657
|
-
case I:
|
|
658
|
-
case "[object Uint8ClampedArray]":
|
|
659
750
|
case C:
|
|
751
|
+
case "[object Uint8ClampedArray]":
|
|
752
|
+
case I:
|
|
660
753
|
case O:
|
|
661
754
|
return fr(t6, n4);
|
|
662
755
|
case m:
|
|
@@ -714,7 +807,7 @@ var Slide = function(t2) {
|
|
|
714
807
|
var r4 = -1, o3 = ce, s3 = true, a2 = t5.length, l2 = [], u2 = e4.length;
|
|
715
808
|
if (!a2)
|
|
716
809
|
return l2;
|
|
717
|
-
n3 && (e4 = pe(e4,
|
|
810
|
+
n3 && (e4 = pe(e4, Ie(n3))), i3 ? (o3 = de, s3 = false) : e4.length >= 200 && (o3 = Le, s3 = false, e4 = new Bn(e4));
|
|
718
811
|
t:
|
|
719
812
|
for (; ++r4 < a2; ) {
|
|
720
813
|
var h2 = t5[r4], c2 = n3 == null ? h2 : n3(h2);
|
|
@@ -728,7 +821,7 @@ var Slide = function(t2) {
|
|
|
728
821
|
}
|
|
729
822
|
return l2;
|
|
730
823
|
}
|
|
731
|
-
Pn.templateSettings = { escape: G, evaluate: H, interpolate: z, variable: "", imports: { _: Pn } }, Pn.prototype =
|
|
824
|
+
Pn.templateSettings = { escape: G, evaluate: H, interpolate: z, variable: "", imports: { _: Pn } }, Pn.prototype = In.prototype, Pn.prototype.constructor = Pn, On.prototype = Cn(In.prototype), On.prototype.constructor = On, Ln.prototype = Cn(In.prototype), Ln.prototype.constructor = Ln, Nn.prototype.clear = function() {
|
|
732
825
|
this.__data__ = _n ? _n(null) : {}, this.size = 0;
|
|
733
826
|
}, Nn.prototype.delete = function(t5) {
|
|
734
827
|
var e4 = this.has(t5) && delete this.__data__[t5];
|
|
@@ -871,7 +964,7 @@ var Slide = function(t2) {
|
|
|
871
964
|
function _i(t5, e4, n3) {
|
|
872
965
|
for (var r4 = n3 ? de : ce, o3 = t5[0].length, s3 = t5.length, a2 = s3, l2 = i2(s3), u2 = 1 / 0, h2 = []; a2--; ) {
|
|
873
966
|
var c2 = t5[a2];
|
|
874
|
-
a2 && e4 && (c2 = pe(c2,
|
|
967
|
+
a2 && e4 && (c2 = pe(c2, Ie(e4))), u2 = ln(c2.length, u2), l2[a2] = !n3 && (e4 || o3 >= 120 && c2.length >= 120) ? new Bn(a2 && c2) : void 0;
|
|
875
968
|
}
|
|
876
969
|
c2 = t5[0];
|
|
877
970
|
var d2 = -1, p2 = l2[0];
|
|
@@ -916,7 +1009,7 @@ var Slide = function(t2) {
|
|
|
916
1009
|
case h:
|
|
917
1010
|
case c:
|
|
918
1011
|
case g:
|
|
919
|
-
return
|
|
1012
|
+
return Cs(+t7, +e6);
|
|
920
1013
|
case d:
|
|
921
1014
|
return t7.name == e6.name && t7.message == e6.message;
|
|
922
1015
|
case _:
|
|
@@ -943,8 +1036,8 @@ var Slide = function(t2) {
|
|
|
943
1036
|
if (!(1 & n4)) {
|
|
944
1037
|
var A2 = T2 && wt2.call(t6, "__wrapped__"), R2 = E2 && wt2.call(e5, "__wrapped__");
|
|
945
1038
|
if (A2 || R2) {
|
|
946
|
-
var P2 = A2 ? t6.value() : t6,
|
|
947
|
-
return o3 || (o3 = new Un()), r5(P2,
|
|
1039
|
+
var P2 = A2 ? t6.value() : t6, C2 = R2 ? e5.value() : e5;
|
|
1040
|
+
return o3 || (o3 = new Un()), r5(P2, C2, n4, i4, o3);
|
|
948
1041
|
}
|
|
949
1042
|
}
|
|
950
1043
|
if (!M2)
|
|
@@ -1013,7 +1106,7 @@ var Slide = function(t2) {
|
|
|
1013
1106
|
var e4;
|
|
1014
1107
|
}
|
|
1015
1108
|
function Si(t5) {
|
|
1016
|
-
return typeof t5 == "function" ? t5 : t5 == null ? qa : typeof t5 == "object" ? Ns(t5) ?
|
|
1109
|
+
return typeof t5 == "function" ? t5 : t5 == null ? qa : typeof t5 == "object" ? Ns(t5) ? Ci(t5[0], t5[1]) : Pi(t5) : nl(t5);
|
|
1017
1110
|
}
|
|
1018
1111
|
function Ei(t5) {
|
|
1019
1112
|
if (!po(t5))
|
|
@@ -1052,13 +1145,13 @@ var Slide = function(t2) {
|
|
|
1052
1145
|
return n3 === t5 || Ti(n3, t5, e4);
|
|
1053
1146
|
};
|
|
1054
1147
|
}
|
|
1055
|
-
function
|
|
1148
|
+
function Ci(t5, e4) {
|
|
1056
1149
|
return uo(t5) && fo(e4) ? mo(Ao(t5), e4) : function(n3) {
|
|
1057
1150
|
var i3 = ga(n3, t5);
|
|
1058
1151
|
return i3 === void 0 && i3 === e4 ? va(n3, t5) : bi(e4, i3, 3);
|
|
1059
1152
|
};
|
|
1060
1153
|
}
|
|
1061
|
-
function
|
|
1154
|
+
function Ii(t5, e4, n3, i3, r4) {
|
|
1062
1155
|
t5 !== e4 && ai(e4, function(o3, s3) {
|
|
1063
1156
|
if (r4 || (r4 = new Un()), Vs(o3))
|
|
1064
1157
|
!function(t6, e5, n4, i4, r5, o4, s4) {
|
|
@@ -1072,7 +1165,7 @@ var Slide = function(t2) {
|
|
|
1072
1165
|
}
|
|
1073
1166
|
c2 && (s4.set(l2, h2), r5(h2, l2, i4, o4, s4), s4.delete(l2));
|
|
1074
1167
|
jn(t6, n4, h2);
|
|
1075
|
-
}(t5, e4, s3, n3,
|
|
1168
|
+
}(t5, e4, s3, n3, Ii, i3, r4);
|
|
1076
1169
|
else {
|
|
1077
1170
|
var a2 = i3 ? i3(yo(t5, s3), o3, s3 + "", t5, e4, r4) : void 0;
|
|
1078
1171
|
a2 === void 0 && (a2 = o3), jn(t5, s3, a2);
|
|
@@ -1091,7 +1184,7 @@ var Slide = function(t2) {
|
|
|
1091
1184
|
} : t6;
|
|
1092
1185
|
}) : [qa];
|
|
1093
1186
|
var i3 = -1;
|
|
1094
|
-
return e4 = pe(e4,
|
|
1187
|
+
return e4 = pe(e4, Ie($r())), function(t6, e5) {
|
|
1095
1188
|
var n4 = t6.length;
|
|
1096
1189
|
for (t6.sort(e5); n4--; )
|
|
1097
1190
|
t6[n4] = t6[n4].value;
|
|
@@ -1125,7 +1218,7 @@ var Slide = function(t2) {
|
|
|
1125
1218
|
}
|
|
1126
1219
|
function Di(t5, e4, n3, i3) {
|
|
1127
1220
|
var r4 = i3 ? Te : be, o3 = -1, s3 = e4.length, a2 = t5;
|
|
1128
|
-
for (t5 === e4 && (e4 = _r(e4)), n3 && (a2 = pe(t5,
|
|
1221
|
+
for (t5 === e4 && (e4 = _r(e4)), n3 && (a2 = pe(t5, Ie(n3))); ++o3 < s3; )
|
|
1129
1222
|
for (var l2 = 0, u2 = e4[o3], h2 = n3 ? n3(u2) : u2; (l2 = r4(a2, h2, l2, i3)) > -1; )
|
|
1130
1223
|
a2 !== t5 && Yt2.call(a2, l2, 1), Yt2.call(t5, l2, 1);
|
|
1131
1224
|
return t5;
|
|
@@ -1156,10 +1249,10 @@ var Slide = function(t2) {
|
|
|
1156
1249
|
return To(go(t5, e4, qa), t5 + "");
|
|
1157
1250
|
}
|
|
1158
1251
|
function Gi(t5) {
|
|
1159
|
-
return Gn(
|
|
1252
|
+
return Gn(Ca(t5));
|
|
1160
1253
|
}
|
|
1161
1254
|
function Hi(t5, e4) {
|
|
1162
|
-
var n3 =
|
|
1255
|
+
var n3 = Ca(t5);
|
|
1163
1256
|
return Eo(n3, Jn(e4, 0, n3.length));
|
|
1164
1257
|
}
|
|
1165
1258
|
function zi(t5, e4, n3, i3) {
|
|
@@ -1183,7 +1276,7 @@ var Slide = function(t2) {
|
|
|
1183
1276
|
return _e2(t5, "toString", { configurable: true, enumerable: false, value: Va(e4), writable: true });
|
|
1184
1277
|
} : qa;
|
|
1185
1278
|
function Wi(t5) {
|
|
1186
|
-
return Eo(
|
|
1279
|
+
return Eo(Ca(t5));
|
|
1187
1280
|
}
|
|
1188
1281
|
function Xi(t5, e4, n3) {
|
|
1189
1282
|
var r4 = -1, o3 = t5.length;
|
|
@@ -1226,7 +1319,7 @@ var Slide = function(t2) {
|
|
|
1226
1319
|
function Ji(t5, e4) {
|
|
1227
1320
|
for (var n3 = -1, i3 = t5.length, r4 = 0, o3 = []; ++n3 < i3; ) {
|
|
1228
1321
|
var s3 = t5[n3], a2 = e4 ? e4(s3) : s3;
|
|
1229
|
-
if (!n3 || !
|
|
1322
|
+
if (!n3 || !Cs(a2, l2)) {
|
|
1230
1323
|
var l2 = a2;
|
|
1231
1324
|
o3[r4++] = s3 === 0 ? 0 : s3;
|
|
1232
1325
|
}
|
|
@@ -1446,7 +1539,7 @@ var Slide = function(t2) {
|
|
|
1446
1539
|
case 7:
|
|
1447
1540
|
return new t5(e4[0], e4[1], e4[2], e4[3], e4[4], e4[5], e4[6]);
|
|
1448
1541
|
}
|
|
1449
|
-
var n3 =
|
|
1542
|
+
var n3 = Cn(t5.prototype), i3 = t5.apply(n3, e4);
|
|
1450
1543
|
return Vs(i3) ? i3 : n3;
|
|
1451
1544
|
};
|
|
1452
1545
|
}
|
|
@@ -1502,7 +1595,7 @@ var Slide = function(t2) {
|
|
|
1502
1595
|
return _2 = y2.length, l2 ? y2 = _o(y2, l2) : m2 && _2 > 1 && y2.reverse(), c2 && u2 < _2 && (y2.length = u2), this && this !== qt && this instanceof v2 && (E2 = g2 || Mr(E2)), E2.apply(S2, y2);
|
|
1503
1596
|
};
|
|
1504
1597
|
}
|
|
1505
|
-
function
|
|
1598
|
+
function Cr(t5, e4) {
|
|
1506
1599
|
return function(n3, i3) {
|
|
1507
1600
|
return function(t6, e5, n4, i4) {
|
|
1508
1601
|
return ui(t6, function(t7, r4, o3) {
|
|
@@ -1511,7 +1604,7 @@ var Slide = function(t2) {
|
|
|
1511
1604
|
}(n3, t5, e4(i3), {});
|
|
1512
1605
|
};
|
|
1513
1606
|
}
|
|
1514
|
-
function
|
|
1607
|
+
function Ir(t5, e4) {
|
|
1515
1608
|
return function(n3, i3) {
|
|
1516
1609
|
var r4;
|
|
1517
1610
|
if (n3 === void 0 && i3 === void 0)
|
|
@@ -1526,7 +1619,7 @@ var Slide = function(t2) {
|
|
|
1526
1619
|
}
|
|
1527
1620
|
function Or(t5) {
|
|
1528
1621
|
return Wr(function(e4) {
|
|
1529
|
-
return e4 = pe(e4,
|
|
1622
|
+
return e4 = pe(e4, Ie($r())), ki(function(n3) {
|
|
1530
1623
|
var i3 = this;
|
|
1531
1624
|
return t5(e4, function(t6) {
|
|
1532
1625
|
return oe(t6, i3, n3);
|
|
@@ -1642,10 +1735,10 @@ var Slide = function(t2) {
|
|
|
1642
1735
|
return wo((m2 ? ji : xo)(v2, g2), t5, e4);
|
|
1643
1736
|
}
|
|
1644
1737
|
function Hr(t5, e4, n3, i3) {
|
|
1645
|
-
return t5 === void 0 ||
|
|
1738
|
+
return t5 === void 0 || Cs(t5, xt2[n3]) && !wt2.call(i3, n3) ? e4 : t5;
|
|
1646
1739
|
}
|
|
1647
1740
|
function zr(t5, e4, n3, i3, r4, o3) {
|
|
1648
|
-
return Vs(t5) && Vs(e4) && (o3.set(e4, t5),
|
|
1741
|
+
return Vs(t5) && Vs(e4) && (o3.set(e4, t5), Ii(t5, e4, void 0, zr, o3), o3.delete(e4)), t5;
|
|
1649
1742
|
}
|
|
1650
1743
|
function jr(t5) {
|
|
1651
1744
|
return Ys(t5) ? void 0 : t5;
|
|
@@ -1746,7 +1839,7 @@ var Slide = function(t2) {
|
|
|
1746
1839
|
return o3 || ++i3 != r4 ? o3 : !!(r4 = t5 == null ? 0 : t5.length) && js(r4) && ao(s3, r4) && (Ns(t5) || Ls(t5));
|
|
1747
1840
|
}
|
|
1748
1841
|
function oo(t5) {
|
|
1749
|
-
return typeof t5.constructor != "function" || po(t5) ? {} :
|
|
1842
|
+
return typeof t5.constructor != "function" || po(t5) ? {} : Cn(zt2(t5));
|
|
1750
1843
|
}
|
|
1751
1844
|
function so(t5) {
|
|
1752
1845
|
return Ns(t5) || Ls(t5) || !!(Zt2 && t5 && t5[Zt2]);
|
|
@@ -1759,7 +1852,7 @@ var Slide = function(t2) {
|
|
|
1759
1852
|
if (!Vs(n3))
|
|
1760
1853
|
return false;
|
|
1761
1854
|
var i3 = typeof e4;
|
|
1762
|
-
return !!(i3 == "number" ? Fs(n3) && ao(e4, n3.length) : i3 == "string" && e4 in n3) &&
|
|
1855
|
+
return !!(i3 == "number" ? Fs(n3) && ao(e4, n3.length) : i3 == "string" && e4 in n3) && Cs(n3[e4], t5);
|
|
1763
1856
|
}
|
|
1764
1857
|
function uo(t5, e4) {
|
|
1765
1858
|
if (Ns(t5))
|
|
@@ -1907,9 +2000,9 @@ var Slide = function(t2) {
|
|
|
1907
2000
|
var e4 = new On(t5.__wrapped__, t5.__chain__);
|
|
1908
2001
|
return e4.__actions__ = _r(t5.__actions__), e4.__index__ = t5.__index__, e4.__values__ = t5.__values__, e4;
|
|
1909
2002
|
}
|
|
1910
|
-
var
|
|
2003
|
+
var Co = ki(function(t5, e4) {
|
|
1911
2004
|
return Bs(t5) ? ti(t5, si(e4, 1, Bs, true)) : [];
|
|
1912
|
-
}),
|
|
2005
|
+
}), Io = ki(function(t5, e4) {
|
|
1913
2006
|
var n3 = Go(e4);
|
|
1914
2007
|
return Bs(n3) && (n3 = void 0), Bs(t5) ? ti(t5, si(e4, 1, Bs, true), $r(n3, 2)) : [];
|
|
1915
2008
|
}), Oo = ki(function(t5, e4) {
|
|
@@ -2164,7 +2257,7 @@ var Slide = function(t2) {
|
|
|
2164
2257
|
}
|
|
2165
2258
|
Ss.Cache = Fn;
|
|
2166
2259
|
var Ms = ur(function(t5, e4) {
|
|
2167
|
-
var n3 = (e4 = e4.length == 1 && Ns(e4[0]) ? pe(e4[0],
|
|
2260
|
+
var n3 = (e4 = e4.length == 1 && Ns(e4[0]) ? pe(e4[0], Ie($r())) : pe(si(e4, 1), Ie($r()))).length;
|
|
2168
2261
|
return ki(function(i3) {
|
|
2169
2262
|
for (var r4 = -1, o3 = ln(i3.length, n3); ++r4 < o3; )
|
|
2170
2263
|
i3[r4] = e4[r4].call(this, i3[r4]);
|
|
@@ -2177,16 +2270,16 @@ var Slide = function(t2) {
|
|
|
2177
2270
|
}), Ps = Wr(function(t5, e4) {
|
|
2178
2271
|
return Gr(t5, 256, void 0, void 0, void 0, e4);
|
|
2179
2272
|
});
|
|
2180
|
-
function
|
|
2273
|
+
function Cs(t5, e4) {
|
|
2181
2274
|
return t5 === e4 || t5 != t5 && e4 != e4;
|
|
2182
2275
|
}
|
|
2183
|
-
var
|
|
2276
|
+
var Is = Dr(mi), Os = Dr(function(t5, e4) {
|
|
2184
2277
|
return t5 >= e4;
|
|
2185
2278
|
}), Ls = xi(function() {
|
|
2186
2279
|
return arguments;
|
|
2187
2280
|
}()) ? xi : function(t5) {
|
|
2188
2281
|
return Ws(t5) && wt2.call(t5, "callee") && !Xt2.call(t5, "callee");
|
|
2189
|
-
}, Ns = i2.isArray, Ds = Qt ?
|
|
2282
|
+
}, Ns = i2.isArray, Ds = Qt ? Ie(Qt) : function(t5) {
|
|
2190
2283
|
return Ws(t5) && fi(t5) == w;
|
|
2191
2284
|
};
|
|
2192
2285
|
function Fs(t5) {
|
|
@@ -2195,7 +2288,7 @@ var Slide = function(t2) {
|
|
|
2195
2288
|
function Bs(t5) {
|
|
2196
2289
|
return Ws(t5) && Fs(t5);
|
|
2197
2290
|
}
|
|
2198
|
-
var Us = nn || sl, ks = te ?
|
|
2291
|
+
var Us = nn || sl, ks = te ? Ie(te) : function(t5) {
|
|
2199
2292
|
return Ws(t5) && fi(t5) == c;
|
|
2200
2293
|
};
|
|
2201
2294
|
function Gs(t5) {
|
|
@@ -2223,7 +2316,7 @@ var Slide = function(t2) {
|
|
|
2223
2316
|
function Ws(t5) {
|
|
2224
2317
|
return t5 != null && typeof t5 == "object";
|
|
2225
2318
|
}
|
|
2226
|
-
var Xs = ee ?
|
|
2319
|
+
var Xs = ee ? Ie(ee) : function(t5) {
|
|
2227
2320
|
return Ws(t5) && io(t5) == m;
|
|
2228
2321
|
};
|
|
2229
2322
|
function qs(t5) {
|
|
@@ -2238,10 +2331,10 @@ var Slide = function(t2) {
|
|
|
2238
2331
|
var n3 = wt2.call(e4, "constructor") && e4.constructor;
|
|
2239
2332
|
return typeof n3 == "function" && n3 instanceof n3 && Tt2.call(n3) == At2;
|
|
2240
2333
|
}
|
|
2241
|
-
var Zs = ne ?
|
|
2334
|
+
var Zs = ne ? Ie(ne) : function(t5) {
|
|
2242
2335
|
return Ws(t5) && fi(t5) == _;
|
|
2243
2336
|
};
|
|
2244
|
-
var Js = ie ?
|
|
2337
|
+
var Js = ie ? Ie(ie) : function(t5) {
|
|
2245
2338
|
return Ws(t5) && io(t5) == y;
|
|
2246
2339
|
};
|
|
2247
2340
|
function $s(t5) {
|
|
@@ -2250,7 +2343,7 @@ var Slide = function(t2) {
|
|
|
2250
2343
|
function Ks(t5) {
|
|
2251
2344
|
return typeof t5 == "symbol" || Ws(t5) && fi(t5) == b;
|
|
2252
2345
|
}
|
|
2253
|
-
var Qs = re ?
|
|
2346
|
+
var Qs = re ? Ie(re) : function(t5) {
|
|
2254
2347
|
return Ws(t5) && js(t5.length) && !!Gt[fi(t5)];
|
|
2255
2348
|
};
|
|
2256
2349
|
var ta = Dr(Ai), ea = Dr(function(t5, e4) {
|
|
@@ -2268,7 +2361,7 @@ var Slide = function(t2) {
|
|
|
2268
2361
|
return n3;
|
|
2269
2362
|
}(t5[$t2]());
|
|
2270
2363
|
var e4 = io(t5);
|
|
2271
|
-
return (e4 == m ? He : e4 == y ? Ve :
|
|
2364
|
+
return (e4 == m ? He : e4 == y ? Ve : Ca)(t5);
|
|
2272
2365
|
}
|
|
2273
2366
|
function ia(t5) {
|
|
2274
2367
|
return t5 ? (t5 = sa(t5)) === 1 / 0 || t5 === -1 / 0 ? 17976931348623157e292 * (t5 < 0 ? -1 : 1) : t5 == t5 ? t5 : 0 : t5 === 0 ? t5 : 0;
|
|
@@ -2291,7 +2384,7 @@ var Slide = function(t2) {
|
|
|
2291
2384
|
}
|
|
2292
2385
|
if (typeof t5 != "string")
|
|
2293
2386
|
return t5 === 0 ? t5 : +t5;
|
|
2294
|
-
t5 =
|
|
2387
|
+
t5 = Ce(t5);
|
|
2295
2388
|
var n3 = ot.test(t5);
|
|
2296
2389
|
return n3 || at.test(t5) ? Vt(t5.slice(2), n3 ? 2 : 8) : rt.test(t5) ? NaN : +t5;
|
|
2297
2390
|
}
|
|
@@ -2320,7 +2413,7 @@ var Slide = function(t2) {
|
|
|
2320
2413
|
for (r4 && lo(e4[0], e4[1], r4) && (i3 = 1); ++n3 < i3; )
|
|
2321
2414
|
for (var o3 = e4[n3], s3 = Ta(o3), a2 = -1, l2 = s3.length; ++a2 < l2; ) {
|
|
2322
2415
|
var u2 = s3[a2], h2 = t5[u2];
|
|
2323
|
-
(h2 === void 0 ||
|
|
2416
|
+
(h2 === void 0 || Cs(h2, xt2[u2]) && !wt2.call(t5, u2)) && (t5[u2] = o3[u2]);
|
|
2324
2417
|
}
|
|
2325
2418
|
return t5;
|
|
2326
2419
|
}), ma = ki(function(t5) {
|
|
@@ -2333,9 +2426,9 @@ var Slide = function(t2) {
|
|
|
2333
2426
|
function va(t5, e4) {
|
|
2334
2427
|
return t5 != null && ro(t5, e4, vi);
|
|
2335
2428
|
}
|
|
2336
|
-
var _a =
|
|
2429
|
+
var _a = Cr(function(t5, e4, n3) {
|
|
2337
2430
|
e4 != null && typeof e4.toString != "function" && (e4 = Mt2.call(e4)), t5[e4] = n3;
|
|
2338
|
-
}, Va(qa)), ya =
|
|
2431
|
+
}, Va(qa)), ya = Cr(function(t5, e4, n3) {
|
|
2339
2432
|
e4 != null && typeof e4.toString != "function" && (e4 = Mt2.call(e4)), wt2.call(t5, e4) ? t5[e4].push(n3) : t5[e4] = [n3];
|
|
2340
2433
|
}, $r), xa = ki(yi);
|
|
2341
2434
|
function ba(t5) {
|
|
@@ -2345,9 +2438,9 @@ var Slide = function(t2) {
|
|
|
2345
2438
|
return Fs(t5) ? kn(t5, true) : Mi(t5);
|
|
2346
2439
|
}
|
|
2347
2440
|
var wa = br(function(t5, e4, n3) {
|
|
2348
|
-
|
|
2441
|
+
Ii(t5, e4, n3);
|
|
2349
2442
|
}), Sa = br(function(t5, e4, n3, i3) {
|
|
2350
|
-
|
|
2443
|
+
Ii(t5, e4, n3, i3);
|
|
2351
2444
|
}), Ea = Wr(function(t5, e4) {
|
|
2352
2445
|
var n3 = {};
|
|
2353
2446
|
if (t5 == null)
|
|
@@ -2378,10 +2471,10 @@ var Slide = function(t2) {
|
|
|
2378
2471
|
});
|
|
2379
2472
|
}
|
|
2380
2473
|
var Ra = kr(ba), Pa = kr(Ta);
|
|
2381
|
-
function
|
|
2474
|
+
function Ca(t5) {
|
|
2382
2475
|
return t5 == null ? [] : Oe(t5, ba(t5));
|
|
2383
2476
|
}
|
|
2384
|
-
var
|
|
2477
|
+
var Ia = Er(function(t5, e4, n3) {
|
|
2385
2478
|
return e4 = e4.toLowerCase(), t5 + (n3 ? Oa(e4) : e4);
|
|
2386
2479
|
});
|
|
2387
2480
|
function Oa(t5) {
|
|
@@ -2478,14 +2571,14 @@ var Slide = function(t2) {
|
|
|
2478
2571
|
function sl() {
|
|
2479
2572
|
return false;
|
|
2480
2573
|
}
|
|
2481
|
-
var al =
|
|
2574
|
+
var al = Ir(function(t5, e4) {
|
|
2482
2575
|
return t5 + e4;
|
|
2483
|
-
}, 0), ll = Br("ceil"), ul =
|
|
2576
|
+
}, 0), ll = Br("ceil"), ul = Ir(function(t5, e4) {
|
|
2484
2577
|
return t5 / e4;
|
|
2485
2578
|
}, 1), hl = Br("floor");
|
|
2486
|
-
var cl, dl =
|
|
2579
|
+
var cl, dl = Ir(function(t5, e4) {
|
|
2487
2580
|
return t5 * e4;
|
|
2488
|
-
}, 1), pl = Br("round"), fl =
|
|
2581
|
+
}, 1), pl = Br("round"), fl = Ir(function(t5, e4) {
|
|
2489
2582
|
return t5 - e4;
|
|
2490
2583
|
}, 0);
|
|
2491
2584
|
return Pn.after = function(t5, e4) {
|
|
@@ -2542,7 +2635,7 @@ var Slide = function(t2) {
|
|
|
2542
2635
|
};
|
|
2543
2636
|
}($n(t5, 1));
|
|
2544
2637
|
}, Pn.constant = Va, Pn.countBy = os, Pn.create = function(t5, e4) {
|
|
2545
|
-
var n3 =
|
|
2638
|
+
var n3 = Cn(t5);
|
|
2546
2639
|
return e4 == null ? n3 : qn(n3, e4);
|
|
2547
2640
|
}, Pn.curry = function t5(e4, n3, i3) {
|
|
2548
2641
|
var r4 = Gr(e4, 8, void 0, void 0, void 0, void 0, void 0, n3 = i3 ? void 0 : n3);
|
|
@@ -2550,7 +2643,7 @@ var Slide = function(t2) {
|
|
|
2550
2643
|
}, Pn.curryRight = function t5(e4, n3, i3) {
|
|
2551
2644
|
var r4 = Gr(e4, 16, void 0, void 0, void 0, void 0, void 0, n3 = i3 ? void 0 : n3);
|
|
2552
2645
|
return r4.placeholder = t5.placeholder, r4;
|
|
2553
|
-
}, Pn.debounce = bs, Pn.defaults = fa, Pn.defaultsDeep = ma, Pn.defer = Ts, Pn.delay = ws, Pn.difference =
|
|
2646
|
+
}, Pn.debounce = bs, Pn.defaults = fa, Pn.defaultsDeep = ma, Pn.defer = Ts, Pn.delay = ws, Pn.difference = Co, Pn.differenceBy = Io, Pn.differenceWith = Oo, Pn.drop = function(t5, e4, n3) {
|
|
2554
2647
|
var i3 = t5 == null ? 0 : t5.length;
|
|
2555
2648
|
return i3 ? Xi(t5, (e4 = n3 || e4 === void 0 ? 1 : ra(e4)) < 0 ? 0 : e4, i3) : [];
|
|
2556
2649
|
}, Pn.dropRight = function(t5, e4, n3) {
|
|
@@ -2607,7 +2700,7 @@ var Slide = function(t2) {
|
|
|
2607
2700
|
}, Pn.matches = function(t5) {
|
|
2608
2701
|
return Pi($n(t5, 1));
|
|
2609
2702
|
}, Pn.matchesProperty = function(t5, e4) {
|
|
2610
|
-
return
|
|
2703
|
+
return Ci(t5, $n(e4, 1));
|
|
2611
2704
|
}, Pn.memoize = Ss, Pn.merge = wa, Pn.mergeWith = Sa, Pn.method = Za, Pn.methodOf = Ja, Pn.mixin = $a, Pn.negate = Es, Pn.nthArg = function(t5) {
|
|
2612
2705
|
return t5 = ra(t5), ki(function(e4) {
|
|
2613
2706
|
return Oi(e4, t5);
|
|
@@ -2691,7 +2784,7 @@ var Slide = function(t2) {
|
|
|
2691
2784
|
var i3 = Ns(t5), r4 = i3 || Us(t5) || Qs(t5);
|
|
2692
2785
|
if (e4 = $r(e4, 4), n3 == null) {
|
|
2693
2786
|
var o3 = t5 && t5.constructor;
|
|
2694
|
-
n3 = r4 ? i3 ? new o3() : [] : Vs(t5) && Hs(o3) ?
|
|
2787
|
+
n3 = r4 ? i3 ? new o3() : [] : Vs(t5) && Hs(o3) ? Cn(zt2(t5)) : {};
|
|
2695
2788
|
}
|
|
2696
2789
|
return (r4 ? ae : ui)(t5, function(t6, i4, r5) {
|
|
2697
2790
|
return e4(n3, t6, i4, r5);
|
|
@@ -2710,7 +2803,7 @@ var Slide = function(t2) {
|
|
|
2710
2803
|
return t5 == null ? t5 : er(t5, e4, ar(n3));
|
|
2711
2804
|
}, Pn.updateWith = function(t5, e4, n3, i3) {
|
|
2712
2805
|
return i3 = typeof i3 == "function" ? i3 : void 0, t5 == null ? t5 : er(t5, e4, ar(n3), i3);
|
|
2713
|
-
}, Pn.values =
|
|
2806
|
+
}, Pn.values = Ca, Pn.valuesIn = function(t5) {
|
|
2714
2807
|
return t5 == null ? [] : Oe(t5, Ta(t5));
|
|
2715
2808
|
}, Pn.without = Jo, Pn.words = Ha, Pn.wrap = function(t5, e4) {
|
|
2716
2809
|
return As(ar(e4), t5);
|
|
@@ -2718,7 +2811,7 @@ var Slide = function(t2) {
|
|
|
2718
2811
|
return or(t5 || [], e4 || [], Vn);
|
|
2719
2812
|
}, Pn.zipObjectDeep = function(t5, e4) {
|
|
2720
2813
|
return or(t5 || [], e4 || [], zi);
|
|
2721
|
-
}, Pn.zipWith = es, Pn.entries = Ra, Pn.entriesIn = Pa, Pn.extend = ha, Pn.extendWith = ca, $a(Pn, Pn), Pn.add = al, Pn.attempt = za, Pn.camelCase =
|
|
2814
|
+
}, Pn.zipWith = es, Pn.entries = Ra, Pn.entriesIn = Pa, Pn.extend = ha, Pn.extendWith = ca, $a(Pn, Pn), Pn.add = al, Pn.attempt = za, Pn.camelCase = Ia, Pn.capitalize = Oa, Pn.ceil = ll, Pn.clamp = function(t5, e4, n3) {
|
|
2722
2815
|
return n3 === void 0 && (n3 = e4, e4 = void 0), n3 !== void 0 && (n3 = (n3 = sa(n3)) == n3 ? n3 : 0), e4 !== void 0 && (e4 = (e4 = sa(e4)) == e4 ? e4 : 0), Jn(sa(t5), e4, n3);
|
|
2723
2816
|
}, Pn.clone = function(t5) {
|
|
2724
2817
|
return $n(t5, 4);
|
|
@@ -2736,7 +2829,7 @@ var Slide = function(t2) {
|
|
|
2736
2829
|
t5 = la(t5), e4 = Ki(e4);
|
|
2737
2830
|
var i3 = t5.length, r4 = n3 = n3 === void 0 ? i3 : Jn(ra(n3), 0, i3);
|
|
2738
2831
|
return (n3 -= e4.length) >= 0 && t5.slice(n3, r4) == e4;
|
|
2739
|
-
}, Pn.eq =
|
|
2832
|
+
}, Pn.eq = Cs, Pn.escape = function(t5) {
|
|
2740
2833
|
return (t5 = la(t5)) && k.test(t5) ? t5.replace(B, Ue) : t5;
|
|
2741
2834
|
}, Pn.escapeRegExp = function(t5) {
|
|
2742
2835
|
return (t5 = la(t5)) && q.test(t5) ? t5.replace(X, "\\$&") : t5;
|
|
@@ -2755,10 +2848,10 @@ var Slide = function(t2) {
|
|
|
2755
2848
|
return t5 && ui(t5, $r(e4, 3));
|
|
2756
2849
|
}, Pn.forOwnRight = function(t5, e4) {
|
|
2757
2850
|
return t5 && hi(t5, $r(e4, 3));
|
|
2758
|
-
}, Pn.get = ga, Pn.gt =
|
|
2851
|
+
}, Pn.get = ga, Pn.gt = Is, Pn.gte = Os, Pn.has = function(t5, e4) {
|
|
2759
2852
|
return t5 != null && ro(t5, e4, gi);
|
|
2760
2853
|
}, Pn.hasIn = va, Pn.head = Fo, Pn.identity = qa, Pn.includes = function(t5, e4, n3, i3) {
|
|
2761
|
-
t5 = Fs(t5) ? t5 :
|
|
2854
|
+
t5 = Fs(t5) ? t5 : Ca(t5), n3 = n3 && !i3 ? ra(n3) : 0;
|
|
2762
2855
|
var r4 = t5.length;
|
|
2763
2856
|
return n3 < 0 && (n3 = an(r4 + n3, 0)), $s(t5) ? n3 <= r4 && t5.indexOf(e4, n3) > -1 : !!r4 && be(t5, e4, n3) > -1;
|
|
2764
2857
|
}, Pn.indexOf = function(t5, e4, n3) {
|
|
@@ -2918,7 +3011,7 @@ var Slide = function(t2) {
|
|
|
2918
3011
|
var n3 = t5 == null ? 0 : t5.length;
|
|
2919
3012
|
if (n3) {
|
|
2920
3013
|
var i3 = Yi(t5, e4);
|
|
2921
|
-
if (i3 < n3 &&
|
|
3014
|
+
if (i3 < n3 && Cs(t5[i3], e4))
|
|
2922
3015
|
return i3;
|
|
2923
3016
|
}
|
|
2924
3017
|
return -1;
|
|
@@ -2929,7 +3022,7 @@ var Slide = function(t2) {
|
|
|
2929
3022
|
}, Pn.sortedLastIndexOf = function(t5, e4) {
|
|
2930
3023
|
if (t5 == null ? 0 : t5.length) {
|
|
2931
3024
|
var n3 = Yi(t5, e4, true) - 1;
|
|
2932
|
-
if (
|
|
3025
|
+
if (Cs(t5[n3], e4))
|
|
2933
3026
|
return n3;
|
|
2934
3027
|
}
|
|
2935
3028
|
return -1;
|
|
@@ -2975,7 +3068,7 @@ var Slide = function(t2) {
|
|
|
2975
3068
|
return la(t5).toUpperCase();
|
|
2976
3069
|
}, Pn.trim = function(t5, e4, n3) {
|
|
2977
3070
|
if ((t5 = la(t5)) && (n3 || e4 === void 0))
|
|
2978
|
-
return
|
|
3071
|
+
return Ce(t5);
|
|
2979
3072
|
if (!t5 || !(e4 = Ki(e4)))
|
|
2980
3073
|
return t5;
|
|
2981
3074
|
var i3 = qe(t5), r4 = qe(e4);
|
|
@@ -3170,7 +3263,7 @@ var Slide = function(t2) {
|
|
|
3170
3263
|
var t5 = this.__index__ >= this.__values__.length;
|
|
3171
3264
|
return { done: t5, value: t5 ? void 0 : this.__values__[this.__index__++] };
|
|
3172
3265
|
}, Pn.prototype.plant = function(t5) {
|
|
3173
|
-
for (var e4, n3 = this; n3 instanceof
|
|
3266
|
+
for (var e4, n3 = this; n3 instanceof In; ) {
|
|
3174
3267
|
var i3 = Po(n3);
|
|
3175
3268
|
i3.__index__ = 0, i3.__values__ = void 0, e4 ? r4.__wrapped__ = i3 : e4 = i3;
|
|
3176
3269
|
var r4 = i3;
|
|
@@ -3868,7 +3961,7 @@ var Slide = function(t2) {
|
|
|
3868
3961
|
} else
|
|
3869
3962
|
i2 = s2.reject("Invalid arguments");
|
|
3870
3963
|
return a(i2, e5), i2;
|
|
3871
|
-
} }, A = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", R = /^~~local_forage_type~([^~]+)~/, P = "__lfsc__:".length,
|
|
3964
|
+
} }, A = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", R = /^~~local_forage_type~([^~]+)~/, P = "__lfsc__:".length, C = P + "arbf".length, I = Object.prototype.toString;
|
|
3872
3965
|
function O(t4) {
|
|
3873
3966
|
var e5, n3, i2, r3, o3, s3 = 0.75 * t4.length, a2 = t4.length, l2 = 0;
|
|
3874
3967
|
t4[t4.length - 1] === "=" && (s3--, t4[t4.length - 2] === "=" && s3--);
|
|
@@ -3885,7 +3978,7 @@ var Slide = function(t2) {
|
|
|
3885
3978
|
}
|
|
3886
3979
|
var N = { serialize: function(t4, e5) {
|
|
3887
3980
|
var n3 = "";
|
|
3888
|
-
if (t4 && (n3 =
|
|
3981
|
+
if (t4 && (n3 = I.call(t4)), t4 && (n3 === "[object ArrayBuffer]" || t4.buffer && I.call(t4.buffer) === "[object ArrayBuffer]")) {
|
|
3889
3982
|
var i2, r3 = "__lfsc__:";
|
|
3890
3983
|
t4 instanceof ArrayBuffer ? (i2 = t4, r3 += "arbf") : (i2 = t4.buffer, n3 === "[object Int8Array]" ? r3 += "si08" : n3 === "[object Uint8Array]" ? r3 += "ui08" : n3 === "[object Uint8ClampedArray]" ? r3 += "uic8" : n3 === "[object Int16Array]" ? r3 += "si16" : n3 === "[object Uint16Array]" ? r3 += "ur16" : n3 === "[object Int32Array]" ? r3 += "si32" : n3 === "[object Uint32Array]" ? r3 += "ui32" : n3 === "[object Float32Array]" ? r3 += "fl32" : n3 === "[object Float64Array]" ? r3 += "fl64" : e5(new Error("Failed to get type for BinaryArray"))), e5(r3 + L(i2));
|
|
3891
3984
|
} else if (n3 === "[object Blob]") {
|
|
@@ -3903,7 +3996,7 @@ var Slide = function(t2) {
|
|
|
3903
3996
|
}, deserialize: function(t4) {
|
|
3904
3997
|
if (t4.substring(0, P) !== "__lfsc__:")
|
|
3905
3998
|
return JSON.parse(t4);
|
|
3906
|
-
var e5, n3 = t4.substring(
|
|
3999
|
+
var e5, n3 = t4.substring(C), i2 = t4.substring(P, C);
|
|
3907
4000
|
if (i2 === "blob" && R.test(n3)) {
|
|
3908
4001
|
var r3 = n3.match(R);
|
|
3909
4002
|
e5 = r3[1], n3 = n3.substring(r3[0].length);
|
|
@@ -4567,13 +4660,13 @@ var Slide = function(t2) {
|
|
|
4567
4660
|
M === -1 && (M = y2.length), this.host = y2.slice(0, M), y2 = y2.slice(M), this.parseHost(), this.hostname = this.hostname || "";
|
|
4568
4661
|
var P = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
4569
4662
|
if (!P)
|
|
4570
|
-
for (var
|
|
4571
|
-
var O =
|
|
4663
|
+
for (var C = this.hostname.split(/\./), I = (A = 0, C.length); A < I; A++) {
|
|
4664
|
+
var O = C[A];
|
|
4572
4665
|
if (O && !O.match(p)) {
|
|
4573
4666
|
for (var L = "", N = 0, D = O.length; N < D; N++)
|
|
4574
4667
|
O.charCodeAt(N) > 127 ? L += "x" : L += O[N];
|
|
4575
4668
|
if (!L.match(p)) {
|
|
4576
|
-
var F =
|
|
4669
|
+
var F = C.slice(0, A), B = C.slice(A + 1), U = O.match(f);
|
|
4577
4670
|
U && (F.push(U[1]), B.unshift(U[2])), B.length && (y2 = "/" + B.join(".") + y2), this.hostname = F.join(".");
|
|
4578
4671
|
break;
|
|
4579
4672
|
}
|
|
@@ -4584,7 +4677,7 @@ var Slide = function(t2) {
|
|
|
4584
4677
|
this.host = G + k, this.href += this.host, P && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), y2[0] !== "/" && (y2 = "/" + y2));
|
|
4585
4678
|
}
|
|
4586
4679
|
if (!m[T])
|
|
4587
|
-
for (A = 0,
|
|
4680
|
+
for (A = 0, I = h.length; A < I; A++) {
|
|
4588
4681
|
var H = h[A];
|
|
4589
4682
|
if (y2.indexOf(H) !== -1) {
|
|
4590
4683
|
var z = encodeURIComponent(H);
|
|
@@ -4668,9 +4761,9 @@ var Slide = function(t2) {
|
|
|
4668
4761
|
for (; A--; A)
|
|
4669
4762
|
w.unshift("..");
|
|
4670
4763
|
!b || w[0] === "" || w[0] && w[0].charAt(0) === "/" || w.unshift(""), M && w.join("/").substr(-1) !== "/" && w.push("");
|
|
4671
|
-
var P,
|
|
4672
|
-
S && (n2.hostname = n2.host =
|
|
4673
|
-
return (b = b || n2.host && w.length) && !
|
|
4764
|
+
var P, C = w[0] === "" || w[0] && w[0].charAt(0) === "/";
|
|
4765
|
+
S && (n2.hostname = n2.host = C ? "" : w.length ? w.shift() : "", (P = !!(n2.host && n2.host.indexOf("@") > 0) && n2.host.split("@")) && (n2.auth = P.shift(), n2.host = n2.hostname = P.shift()));
|
|
4766
|
+
return (b = b || n2.host && w.length) && !C && w.unshift(""), w.length ? n2.pathname = w.join("/") : (n2.pathname = null, n2.path = null), r2.isNull(n2.pathname) && r2.isNull(n2.search) || (n2.path = (n2.pathname ? n2.pathname : "") + (n2.search ? n2.search : "")), n2.auth = t3.auth || n2.auth, n2.slashes = n2.slashes || t3.slashes, n2.href = n2.format(), n2;
|
|
4674
4767
|
}, o2.prototype.parseHost = function() {
|
|
4675
4768
|
var t3 = this.host, e3 = a.exec(t3);
|
|
4676
4769
|
e3 && ((e3 = e3[0]) !== ":" && (this.port = e3.substr(1)), t3 = t3.substr(0, t3.length - e3.length)), t3 && (this.hostname = t3);
|
|
@@ -5353,7 +5446,7 @@ var Slide = function(t2) {
|
|
|
5353
5446
|
} else
|
|
5354
5447
|
i2 = s2.reject("Invalid arguments");
|
|
5355
5448
|
return a(i2, e5), i2;
|
|
5356
|
-
} }, A = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", R = /^~~local_forage_type~([^~]+)~/, P = "__lfsc__:".length,
|
|
5449
|
+
} }, A = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", R = /^~~local_forage_type~([^~]+)~/, P = "__lfsc__:".length, C = P + "arbf".length, I = Object.prototype.toString;
|
|
5357
5450
|
function O(t4) {
|
|
5358
5451
|
var e5, n3, i2, r3, o3, s3 = 0.75 * t4.length, a2 = t4.length, l2 = 0;
|
|
5359
5452
|
t4[t4.length - 1] === "=" && (s3--, t4[t4.length - 2] === "=" && s3--);
|
|
@@ -5370,7 +5463,7 @@ var Slide = function(t2) {
|
|
|
5370
5463
|
}
|
|
5371
5464
|
var N = { serialize: function(t4, e5) {
|
|
5372
5465
|
var n3 = "";
|
|
5373
|
-
if (t4 && (n3 =
|
|
5466
|
+
if (t4 && (n3 = I.call(t4)), t4 && (n3 === "[object ArrayBuffer]" || t4.buffer && I.call(t4.buffer) === "[object ArrayBuffer]")) {
|
|
5374
5467
|
var i2, r3 = "__lfsc__:";
|
|
5375
5468
|
t4 instanceof ArrayBuffer ? (i2 = t4, r3 += "arbf") : (i2 = t4.buffer, n3 === "[object Int8Array]" ? r3 += "si08" : n3 === "[object Uint8Array]" ? r3 += "ui08" : n3 === "[object Uint8ClampedArray]" ? r3 += "uic8" : n3 === "[object Int16Array]" ? r3 += "si16" : n3 === "[object Uint16Array]" ? r3 += "ur16" : n3 === "[object Int32Array]" ? r3 += "si32" : n3 === "[object Uint32Array]" ? r3 += "ui32" : n3 === "[object Float32Array]" ? r3 += "fl32" : n3 === "[object Float64Array]" ? r3 += "fl64" : e5(new Error("Failed to get type for BinaryArray"))), e5(r3 + L(i2));
|
|
5376
5469
|
} else if (n3 === "[object Blob]") {
|
|
@@ -5388,7 +5481,7 @@ var Slide = function(t2) {
|
|
|
5388
5481
|
}, deserialize: function(t4) {
|
|
5389
5482
|
if (t4.substring(0, P) !== "__lfsc__:")
|
|
5390
5483
|
return JSON.parse(t4);
|
|
5391
|
-
var e5, n3 = t4.substring(
|
|
5484
|
+
var e5, n3 = t4.substring(C), i2 = t4.substring(P, C);
|
|
5392
5485
|
if (i2 === "blob" && R.test(n3)) {
|
|
5393
5486
|
var r3 = n3.match(R);
|
|
5394
5487
|
e5 = r3[1], n3 = n3.substring(r3[0].length);
|
|
@@ -7799,19 +7892,19 @@ var Slide = function(t2) {
|
|
|
7799
7892
|
}).call(this, {});
|
|
7800
7893
|
}, function(t2, e2, n) {
|
|
7801
7894
|
n.r(e2), n.d(e2, "delay", function() {
|
|
7802
|
-
return
|
|
7895
|
+
return oI;
|
|
7803
7896
|
}), n.d(e2, "waitUntil", function() {
|
|
7804
|
-
return
|
|
7897
|
+
return sI;
|
|
7805
7898
|
}), n.d(e2, "SLIDE_EVENTS", function() {
|
|
7806
|
-
return
|
|
7899
|
+
return aI;
|
|
7807
7900
|
}), n.d(e2, "Slide", function() {
|
|
7808
|
-
return
|
|
7901
|
+
return hI;
|
|
7809
7902
|
});
|
|
7810
7903
|
var i = {};
|
|
7811
7904
|
n.r(i), n.d(i, "ACESFilmicToneMapping", function() {
|
|
7812
7905
|
return lt;
|
|
7813
7906
|
}), n.d(i, "AddEquation", function() {
|
|
7814
|
-
return
|
|
7907
|
+
return I;
|
|
7815
7908
|
}), n.d(i, "AddOperation", function() {
|
|
7816
7909
|
return it;
|
|
7817
7910
|
}), n.d(i, "AdditiveAnimationBlendMode", function() {
|
|
@@ -7823,7 +7916,7 @@ var Slide = function(t2) {
|
|
|
7823
7916
|
}), n.d(i, "AlwaysDepth", function() {
|
|
7824
7917
|
return Y;
|
|
7825
7918
|
}), n.d(i, "AlwaysStencilFunc", function() {
|
|
7826
|
-
return
|
|
7919
|
+
return Cn;
|
|
7827
7920
|
}), n.d(i, "AmbientLight", function() {
|
|
7828
7921
|
return Uc;
|
|
7829
7922
|
}), n.d(i, "AmbientLightProbe", function() {
|
|
@@ -7865,7 +7958,7 @@ var Slide = function(t2) {
|
|
|
7865
7958
|
}), n.d(i, "BasicShadowMap", function() {
|
|
7866
7959
|
return g;
|
|
7867
7960
|
}), n.d(i, "BinaryTextureLoader", function() {
|
|
7868
|
-
return
|
|
7961
|
+
return If;
|
|
7869
7962
|
}), n.d(i, "Bone", function() {
|
|
7870
7963
|
return Bl;
|
|
7871
7964
|
}), n.d(i, "BooleanKeyframeTrack", function() {
|
|
@@ -7891,7 +7984,7 @@ var Slide = function(t2) {
|
|
|
7891
7984
|
}), n.d(i, "BufferGeometryLoader", function() {
|
|
7892
7985
|
return Xc;
|
|
7893
7986
|
}), n.d(i, "ByteType", function() {
|
|
7894
|
-
return
|
|
7987
|
+
return It;
|
|
7895
7988
|
}), n.d(i, "Cache", function() {
|
|
7896
7989
|
return ac;
|
|
7897
7990
|
}), n.d(i, "Camera", function() {
|
|
@@ -7959,7 +8052,7 @@ var Slide = function(t2) {
|
|
|
7959
8052
|
}), n.d(i, "CurvePath", function() {
|
|
7960
8053
|
return yc;
|
|
7961
8054
|
}), n.d(i, "CustomBlending", function() {
|
|
7962
|
-
return
|
|
8055
|
+
return C;
|
|
7963
8056
|
}), n.d(i, "CustomToneMapping", function() {
|
|
7964
8057
|
return ut;
|
|
7965
8058
|
}), n.d(i, "CylinderBufferGeometry", function() {
|
|
@@ -8153,7 +8246,7 @@ var Slide = function(t2) {
|
|
|
8153
8246
|
}), n.d(i, "KeyframeTrack", function() {
|
|
8154
8247
|
return $h;
|
|
8155
8248
|
}), n.d(i, "LOD", function() {
|
|
8156
|
-
return
|
|
8249
|
+
return Cl;
|
|
8157
8250
|
}), n.d(i, "LatheBufferGeometry", function() {
|
|
8158
8251
|
return Th;
|
|
8159
8252
|
}), n.d(i, "LatheGeometry", function() {
|
|
@@ -8515,9 +8608,9 @@ var Slide = function(t2) {
|
|
|
8515
8608
|
}), n.d(i, "SRGB8_ALPHA8_ASTC_5x4_Format", function() {
|
|
8516
8609
|
return Pe;
|
|
8517
8610
|
}), n.d(i, "SRGB8_ALPHA8_ASTC_5x5_Format", function() {
|
|
8518
|
-
return Ie;
|
|
8519
|
-
}), n.d(i, "SRGB8_ALPHA8_ASTC_6x5_Format", function() {
|
|
8520
8611
|
return Ce;
|
|
8612
|
+
}), n.d(i, "SRGB8_ALPHA8_ASTC_6x5_Format", function() {
|
|
8613
|
+
return Ie;
|
|
8521
8614
|
}), n.d(i, "SRGB8_ALPHA8_ASTC_6x6_Format", function() {
|
|
8522
8615
|
return Oe;
|
|
8523
8616
|
}), n.d(i, "SRGB8_ALPHA8_ASTC_8x5_Format", function() {
|
|
@@ -8535,7 +8628,7 @@ var Slide = function(t2) {
|
|
|
8535
8628
|
}), n.d(i, "ShaderLib", function() {
|
|
8536
8629
|
return Zo;
|
|
8537
8630
|
}), n.d(i, "ShaderMaterial", function() {
|
|
8538
|
-
return
|
|
8631
|
+
return Io;
|
|
8539
8632
|
}), n.d(i, "ShadowMaterial", function() {
|
|
8540
8633
|
return Dh;
|
|
8541
8634
|
}), n.d(i, "Shape", function() {
|
|
@@ -8587,7 +8680,7 @@ var Slide = function(t2) {
|
|
|
8587
8680
|
}), n.d(i, "StaticCopyUsage", function() {
|
|
8588
8681
|
return Bn;
|
|
8589
8682
|
}), n.d(i, "StaticDrawUsage", function() {
|
|
8590
|
-
return
|
|
8683
|
+
return In;
|
|
8591
8684
|
}), n.d(i, "StaticReadUsage", function() {
|
|
8592
8685
|
return Nn;
|
|
8593
8686
|
}), n.d(i, "StereoCamera", function() {
|
|
@@ -8621,13 +8714,13 @@ var Slide = function(t2) {
|
|
|
8621
8714
|
}), n.d(i, "TextureLoader", function() {
|
|
8622
8715
|
return _c;
|
|
8623
8716
|
}), n.d(i, "TorusBufferGeometry", function() {
|
|
8624
|
-
return
|
|
8717
|
+
return Ch;
|
|
8625
8718
|
}), n.d(i, "TorusGeometry", function() {
|
|
8626
|
-
return Ih;
|
|
8627
|
-
}), n.d(i, "TorusKnotBufferGeometry", function() {
|
|
8628
8719
|
return Ch;
|
|
8720
|
+
}), n.d(i, "TorusKnotBufferGeometry", function() {
|
|
8721
|
+
return Ih;
|
|
8629
8722
|
}), n.d(i, "TorusKnotGeometry", function() {
|
|
8630
|
-
return
|
|
8723
|
+
return Ih;
|
|
8631
8724
|
}), n.d(i, "Triangle", function() {
|
|
8632
8725
|
return Mr;
|
|
8633
8726
|
}), n.d(i, "TriangleFanDrawMode", function() {
|
|
@@ -8663,9 +8756,9 @@ var Slide = function(t2) {
|
|
|
8663
8756
|
}), n.d(i, "UniformsLib", function() {
|
|
8664
8757
|
return Yo;
|
|
8665
8758
|
}), n.d(i, "UniformsUtils", function() {
|
|
8666
|
-
return
|
|
8759
|
+
return Co;
|
|
8667
8760
|
}), n.d(i, "UnsignedByteType", function() {
|
|
8668
|
-
return
|
|
8761
|
+
return Ct;
|
|
8669
8762
|
}), n.d(i, "UnsignedInt248Type", function() {
|
|
8670
8763
|
return Ht;
|
|
8671
8764
|
}), n.d(i, "UnsignedIntType", function() {
|
|
@@ -8717,7 +8810,7 @@ var Slide = function(t2) {
|
|
|
8717
8810
|
}), n.d(i, "WrapAroundEnding", function() {
|
|
8718
8811
|
return Je;
|
|
8719
8812
|
}), n.d(i, "XHRLoader", function() {
|
|
8720
|
-
return
|
|
8813
|
+
return Cf;
|
|
8721
8814
|
}), n.d(i, "ZeroCurvatureEnding", function() {
|
|
8722
8815
|
return Ye;
|
|
8723
8816
|
}), n.d(i, "ZeroFactor", function() {
|
|
@@ -8789,7 +8882,7 @@ var Slide = function(t2) {
|
|
|
8789
8882
|
}), n.d(r2, "removeItems", function() {
|
|
8790
8883
|
return Vv;
|
|
8791
8884
|
}), n.d(r2, "rgb2hex", function() {
|
|
8792
|
-
return
|
|
8885
|
+
return Iv;
|
|
8793
8886
|
}), n.d(r2, "sayHello", function() {
|
|
8794
8887
|
return Ev;
|
|
8795
8888
|
}), n.d(r2, "sign", function() {
|
|
@@ -8797,7 +8890,7 @@ var Slide = function(t2) {
|
|
|
8797
8890
|
}), n.d(r2, "skipHello", function() {
|
|
8798
8891
|
return Sv;
|
|
8799
8892
|
}), n.d(r2, "string2hex", function() {
|
|
8800
|
-
return
|
|
8893
|
+
return Cv;
|
|
8801
8894
|
}), n.d(r2, "trimCanvas", function() {
|
|
8802
8895
|
return n_;
|
|
8803
8896
|
}), n.d(r2, "uid", function() {
|
|
@@ -8811,7 +8904,7 @@ var Slide = function(t2) {
|
|
|
8811
8904
|
* Copyright 2010-2021 Three.js Authors
|
|
8812
8905
|
* SPDX-License-Identifier: MIT
|
|
8813
8906
|
*/
|
|
8814
|
-
const u = "130", h = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, c = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, d = 0, p = 1, f = 2, m = 3, g = 0, v = 1, _ = 2, y = 3, x = 0, b = 1, T = 2, w = 1, S = 2, E = 0, M = 1, A = 2, R = 3, P = 4,
|
|
8907
|
+
const u = "130", h = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, c = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, d = 0, p = 1, f = 2, m = 3, g = 0, v = 1, _ = 2, y = 3, x = 0, b = 1, T = 2, w = 1, S = 2, E = 0, M = 1, A = 2, R = 3, P = 4, C = 5, I = 100, O = 101, L = 102, N = 103, D = 104, F = 200, B = 201, U = 202, k = 203, G = 204, H = 205, z = 206, j = 207, V = 208, W = 209, X = 210, q = 0, Y = 1, Z = 2, J = 3, $ = 4, K = 5, Q = 6, tt = 7, et = 0, nt = 1, it = 2, rt = 0, ot = 1, st = 2, at = 3, lt = 4, ut = 5, ht = 300, ct = 301, dt = 302, pt = 303, ft = 304, mt = 306, gt = 307, vt = 1e3, _t = 1001, yt = 1002, xt = 1003, bt = 1004, Tt = 1004, wt = 1005, St = 1005, Et = 1006, Mt = 1007, At = 1007, Rt = 1008, Pt = 1008, Ct = 1009, It = 1010, Ot = 1011, Lt = 1012, Nt = 1013, Dt = 1014, Ft = 1015, Bt = 1016, Ut = 1017, kt = 1018, Gt = 1019, Ht = 1020, zt = 1021, jt = 1022, Vt = 1023, Wt = 1024, Xt = 1025, qt = Vt, Yt = 1026, Zt = 1027, Jt = 1028, $t = 1029, Kt = 1030, Qt = 1031, te = 1032, ee = 1033, ne = 33776, ie = 33777, re = 33778, oe = 33779, se = 35840, ae = 35841, le = 35842, ue = 35843, he = 36196, ce = 37492, de = 37496, pe = 37808, fe = 37809, me = 37810, ge = 37811, ve = 37812, _e = 37813, ye = 37814, xe = 37815, be = 37816, Te = 37817, we = 37818, Se = 37819, Ee = 37820, Me = 37821, Ae = 36492, Re = 37840, Pe = 37841, Ce = 37842, Ie = 37843, Oe = 37844, Le = 37845, Ne = 37846, De = 37847, Fe = 37848, Be = 37849, Ue = 37850, ke = 37851, Ge = 37852, He = 37853, ze = 2200, je = 2201, Ve = 2202, We = 2300, Xe = 2301, qe = 2302, Ye = 2400, Ze = 2401, Je = 2402, $e = 2500, Ke = 2501, Qe = 0, tn = 1, en = 2, nn = 3e3, rn = 3001, on = 3007, sn = 3002, an = 3003, ln = 3004, un = 3005, hn = 3006, cn = 3200, dn = 3201, pn = 0, fn = 1, mn = 0, gn = 7680, vn = 7681, _n = 7682, yn = 7683, xn = 34055, bn = 34056, Tn = 5386, wn = 512, Sn = 513, En = 514, Mn = 515, An = 516, Rn = 517, Pn = 518, Cn = 519, In = 35044, On = 35048, Ln = 35040, Nn = 35045, Dn = 35049, Fn = 35041, Bn = 35046, Un = 35050, kn = 35042, Gn = "100", Hn = "300 es";
|
|
8815
8908
|
class zn {
|
|
8816
8909
|
addEventListener(t3, e3) {
|
|
8817
8910
|
this._listeners === void 0 && (this._listeners = {});
|
|
@@ -9224,7 +9317,7 @@ var Slide = function(t2) {
|
|
|
9224
9317
|
}
|
|
9225
9318
|
let oi = 0;
|
|
9226
9319
|
class si extends zn {
|
|
9227
|
-
constructor(t3 = si.DEFAULT_IMAGE, e3 = si.DEFAULT_MAPPING, n2 = _t, i2 = _t, r3 = Et, o3 = Rt, s3 = Vt, a2 =
|
|
9320
|
+
constructor(t3 = si.DEFAULT_IMAGE, e3 = si.DEFAULT_MAPPING, n2 = _t, i2 = _t, r3 = Et, o3 = Rt, s3 = Vt, a2 = Ct, l2 = 1, u2 = nn) {
|
|
9228
9321
|
super(), Object.defineProperty(this, "id", { value: oi++ }), this.uuid = qn(), this.name = "", this.image = t3, this.mipmaps = [], this.mapping = e3, this.wrapS = n2, this.wrapT = i2, this.magFilter = r3, this.minFilter = o3, this.anisotropy = l2, this.format = s3, this.internalFormat = null, this.type = a2, this.offset = new ei(0, 0), this.repeat = new ei(1, 1), this.center = new ei(0, 0), this.rotation = 0, this.matrixAutoUpdate = true, this.matrix = new ni(), this.generateMipmaps = true, this.premultiplyAlpha = false, this.flipY = true, this.unpackAlignment = 4, this.encoding = u2, this.version = 0, this.onUpdate = null;
|
|
9229
9322
|
}
|
|
9230
9323
|
updateMatrix() {
|
|
@@ -10100,7 +10193,7 @@ var Slide = function(t2) {
|
|
|
10100
10193
|
return false;
|
|
10101
10194
|
this.getCenter(Mi), Ai.subVectors(this.max, Mi), xi.subVectors(t3.a, Mi), bi.subVectors(t3.b, Mi), Ti.subVectors(t3.c, Mi), wi.subVectors(bi, xi), Si.subVectors(Ti, bi), Ei.subVectors(xi, Ti);
|
|
10102
10195
|
let e3 = [0, -wi.z, wi.y, 0, -Si.z, Si.y, 0, -Ei.z, Ei.y, wi.z, 0, -wi.x, Si.z, 0, -Si.x, Ei.z, 0, -Ei.x, -wi.y, wi.x, 0, -Si.y, Si.x, 0, -Ei.y, Ei.x, 0];
|
|
10103
|
-
return !!
|
|
10196
|
+
return !!Ci(e3, xi, bi, Ti, Ai) && (e3 = [1, 0, 0, 0, 1, 0, 0, 0, 1], !!Ci(e3, xi, bi, Ti, Ai) && (Ri.crossVectors(wi, Si), e3 = [Ri.x, Ri.y, Ri.z], Ci(e3, xi, bi, Ti, Ai)));
|
|
10104
10197
|
}
|
|
10105
10198
|
clampPoint(t3, e3) {
|
|
10106
10199
|
return e3.copy(t3).clamp(this.min, this.max);
|
|
@@ -10129,7 +10222,7 @@ var Slide = function(t2) {
|
|
|
10129
10222
|
}
|
|
10130
10223
|
gi.prototype.isBox3 = true;
|
|
10131
10224
|
const vi = [new pi(), new pi(), new pi(), new pi(), new pi(), new pi(), new pi(), new pi()], _i = new pi(), yi = new gi(), xi = new pi(), bi = new pi(), Ti = new pi(), wi = new pi(), Si = new pi(), Ei = new pi(), Mi = new pi(), Ai = new pi(), Ri = new pi(), Pi = new pi();
|
|
10132
|
-
function
|
|
10225
|
+
function Ci(t3, e3, n2, i2, r3) {
|
|
10133
10226
|
for (let o3 = 0, s3 = t3.length - 3; o3 <= s3; o3 += 3) {
|
|
10134
10227
|
Pi.fromArray(t3, o3);
|
|
10135
10228
|
const s4 = r3.x * Math.abs(Pi.x) + r3.y * Math.abs(Pi.y) + r3.z * Math.abs(Pi.z), a2 = e3.dot(Pi), l2 = n2.dot(Pi), u2 = i2.dot(Pi);
|
|
@@ -10138,7 +10231,7 @@ var Slide = function(t2) {
|
|
|
10138
10231
|
}
|
|
10139
10232
|
return true;
|
|
10140
10233
|
}
|
|
10141
|
-
const
|
|
10234
|
+
const Ii = new gi(), Oi = new pi(), Li = new pi(), Ni = new pi();
|
|
10142
10235
|
class Di {
|
|
10143
10236
|
constructor(t3 = new pi(), e3 = -1) {
|
|
10144
10237
|
this.center = t3, this.radius = e3;
|
|
@@ -10148,7 +10241,7 @@ var Slide = function(t2) {
|
|
|
10148
10241
|
}
|
|
10149
10242
|
setFromPoints(t3, e3) {
|
|
10150
10243
|
const n2 = this.center;
|
|
10151
|
-
e3 !== void 0 ? n2.copy(e3) :
|
|
10244
|
+
e3 !== void 0 ? n2.copy(e3) : Ii.setFromPoints(t3).getCenter(n2);
|
|
10152
10245
|
let i2 = 0;
|
|
10153
10246
|
for (let e4 = 0, r3 = t3.length; e4 < r3; e4++)
|
|
10154
10247
|
i2 = Math.max(i2, n2.distanceToSquared(t3[e4]));
|
|
@@ -10407,8 +10500,8 @@ var Slide = function(t2) {
|
|
|
10407
10500
|
return this.multiplyMatrices(t3, this);
|
|
10408
10501
|
}
|
|
10409
10502
|
multiplyMatrices(t3, e3) {
|
|
10410
|
-
const n2 = t3.elements, i2 = e3.elements, r3 = this.elements, o3 = n2[0], s3 = n2[4], a2 = n2[8], l2 = n2[12], u2 = n2[1], h2 = n2[5], c2 = n2[9], d2 = n2[13], p2 = n2[2], f2 = n2[6], m2 = n2[10], g2 = n2[14], v2 = n2[3], _2 = n2[7], y2 = n2[11], x2 = n2[15], b2 = i2[0], T2 = i2[4], w2 = i2[8], S2 = i2[12], E2 = i2[1], M2 = i2[5], A2 = i2[9], R2 = i2[13], P2 = i2[2],
|
|
10411
|
-
return r3[0] = o3 * b2 + s3 * E2 + a2 * P2 + l2 * L2, r3[4] = o3 * T2 + s3 * M2 + a2 *
|
|
10503
|
+
const n2 = t3.elements, i2 = e3.elements, r3 = this.elements, o3 = n2[0], s3 = n2[4], a2 = n2[8], l2 = n2[12], u2 = n2[1], h2 = n2[5], c2 = n2[9], d2 = n2[13], p2 = n2[2], f2 = n2[6], m2 = n2[10], g2 = n2[14], v2 = n2[3], _2 = n2[7], y2 = n2[11], x2 = n2[15], b2 = i2[0], T2 = i2[4], w2 = i2[8], S2 = i2[12], E2 = i2[1], M2 = i2[5], A2 = i2[9], R2 = i2[13], P2 = i2[2], C2 = i2[6], I2 = i2[10], O2 = i2[14], L2 = i2[3], N2 = i2[7], D2 = i2[11], F2 = i2[15];
|
|
10504
|
+
return r3[0] = o3 * b2 + s3 * E2 + a2 * P2 + l2 * L2, r3[4] = o3 * T2 + s3 * M2 + a2 * C2 + l2 * N2, r3[8] = o3 * w2 + s3 * A2 + a2 * I2 + l2 * D2, r3[12] = o3 * S2 + s3 * R2 + a2 * O2 + l2 * F2, r3[1] = u2 * b2 + h2 * E2 + c2 * P2 + d2 * L2, r3[5] = u2 * T2 + h2 * M2 + c2 * C2 + d2 * N2, r3[9] = u2 * w2 + h2 * A2 + c2 * I2 + d2 * D2, r3[13] = u2 * S2 + h2 * R2 + c2 * O2 + d2 * F2, r3[2] = p2 * b2 + f2 * E2 + m2 * P2 + g2 * L2, r3[6] = p2 * T2 + f2 * M2 + m2 * C2 + g2 * N2, r3[10] = p2 * w2 + f2 * A2 + m2 * I2 + g2 * D2, r3[14] = p2 * S2 + f2 * R2 + m2 * O2 + g2 * F2, r3[3] = v2 * b2 + _2 * E2 + y2 * P2 + x2 * L2, r3[7] = v2 * T2 + _2 * M2 + y2 * C2 + x2 * N2, r3[11] = v2 * w2 + _2 * A2 + y2 * I2 + x2 * D2, r3[15] = v2 * S2 + _2 * R2 + y2 * O2 + x2 * F2, this;
|
|
10412
10505
|
}
|
|
10413
10506
|
multiplyScalar(t3) {
|
|
10414
10507
|
const e3 = this.elements;
|
|
@@ -10963,7 +11056,7 @@ var Slide = function(t2) {
|
|
|
10963
11056
|
let Ar = 0;
|
|
10964
11057
|
class Rr extends zn {
|
|
10965
11058
|
constructor() {
|
|
10966
|
-
super(), Object.defineProperty(this, "id", { value: Ar++ }), this.uuid = qn(), this.name = "", this.type = "Material", this.fog = true, this.blending = M, this.side = x, this.vertexColors = false, this.opacity = 1, this.transparent = false, this.blendSrc = G, this.blendDst = H, this.blendEquation =
|
|
11059
|
+
super(), Object.defineProperty(this, "id", { value: Ar++ }), this.uuid = qn(), this.name = "", this.type = "Material", this.fog = true, this.blending = M, this.side = x, this.vertexColors = false, this.opacity = 1, this.transparent = false, this.blendSrc = G, this.blendDst = H, this.blendEquation = I, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.depthFunc = J, this.depthTest = true, this.depthWrite = true, this.stencilWriteMask = 255, this.stencilFunc = Cn, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = gn, this.stencilZFail = gn, this.stencilZPass = gn, this.stencilWrite = false, this.clippingPlanes = null, this.clipIntersection = false, this.clipShadows = false, this.shadowSide = null, this.colorWrite = true, this.precision = null, this.polygonOffset = false, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = false, this.alphaTest = 0, this.alphaToCoverage = false, this.premultipliedAlpha = false, this.visible = true, this.toneMapped = true, this.userData = {}, this.version = 0;
|
|
10967
11060
|
}
|
|
10968
11061
|
onBuild() {
|
|
10969
11062
|
}
|
|
@@ -11029,7 +11122,7 @@ var Slide = function(t2) {
|
|
|
11029
11122
|
}
|
|
11030
11123
|
}
|
|
11031
11124
|
Rr.prototype.isMaterial = true;
|
|
11032
|
-
const Pr = { aliceblue: 15792383, antiquewhite: 16444375, aqua: 65535, aquamarine: 8388564, azure: 15794175, beige: 16119260, bisque: 16770244, black: 0, blanchedalmond: 16772045, blue: 255, blueviolet: 9055202, brown: 10824234, burlywood: 14596231, cadetblue: 6266528, chartreuse: 8388352, chocolate: 13789470, coral: 16744272, cornflowerblue: 6591981, cornsilk: 16775388, crimson: 14423100, cyan: 65535, darkblue: 139, darkcyan: 35723, darkgoldenrod: 12092939, darkgray: 11119017, darkgreen: 25600, darkgrey: 11119017, darkkhaki: 12433259, darkmagenta: 9109643, darkolivegreen: 5597999, darkorange: 16747520, darkorchid: 10040012, darkred: 9109504, darksalmon: 15308410, darkseagreen: 9419919, darkslateblue: 4734347, darkslategray: 3100495, darkslategrey: 3100495, darkturquoise: 52945, darkviolet: 9699539, deeppink: 16716947, deepskyblue: 49151, dimgray: 6908265, dimgrey: 6908265, dodgerblue: 2003199, firebrick: 11674146, floralwhite: 16775920, forestgreen: 2263842, fuchsia: 16711935, gainsboro: 14474460, ghostwhite: 16316671, gold: 16766720, goldenrod: 14329120, gray: 8421504, green: 32768, greenyellow: 11403055, grey: 8421504, honeydew: 15794160, hotpink: 16738740, indianred: 13458524, indigo: 4915330, ivory: 16777200, khaki: 15787660, lavender: 15132410, lavenderblush: 16773365, lawngreen: 8190976, lemonchiffon: 16775885, lightblue: 11393254, lightcoral: 15761536, lightcyan: 14745599, lightgoldenrodyellow: 16448210, lightgray: 13882323, lightgreen: 9498256, lightgrey: 13882323, lightpink: 16758465, lightsalmon: 16752762, lightseagreen: 2142890, lightskyblue: 8900346, lightslategray: 7833753, lightslategrey: 7833753, lightsteelblue: 11584734, lightyellow: 16777184, lime: 65280, limegreen: 3329330, linen: 16445670, magenta: 16711935, maroon: 8388608, mediumaquamarine: 6737322, mediumblue: 205, mediumorchid: 12211667, mediumpurple: 9662683, mediumseagreen: 3978097, mediumslateblue: 8087790, mediumspringgreen: 64154, mediumturquoise: 4772300, mediumvioletred: 13047173, midnightblue: 1644912, mintcream: 16121850, mistyrose: 16770273, moccasin: 16770229, navajowhite: 16768685, navy: 128, oldlace: 16643558, olive: 8421376, olivedrab: 7048739, orange: 16753920, orangered: 16729344, orchid: 14315734, palegoldenrod: 15657130, palegreen: 10025880, paleturquoise: 11529966, palevioletred: 14381203, papayawhip: 16773077, peachpuff: 16767673, peru: 13468991, pink: 16761035, plum: 14524637, powderblue: 11591910, purple: 8388736, rebeccapurple: 6697881, red: 16711680, rosybrown: 12357519, royalblue: 4286945, saddlebrown: 9127187, salmon: 16416882, sandybrown: 16032864, seagreen: 3050327, seashell: 16774638, sienna: 10506797, silver: 12632256, skyblue: 8900331, slateblue: 6970061, slategray: 7372944, slategrey: 7372944, snow: 16775930, springgreen: 65407, steelblue: 4620980, tan: 13808780, teal: 32896, thistle: 14204888, tomato: 16737095, turquoise: 4251856, violet: 15631086, wheat: 16113331, white: 16777215, whitesmoke: 16119285, yellow: 16776960, yellowgreen: 10145074 },
|
|
11125
|
+
const Pr = { aliceblue: 15792383, antiquewhite: 16444375, aqua: 65535, aquamarine: 8388564, azure: 15794175, beige: 16119260, bisque: 16770244, black: 0, blanchedalmond: 16772045, blue: 255, blueviolet: 9055202, brown: 10824234, burlywood: 14596231, cadetblue: 6266528, chartreuse: 8388352, chocolate: 13789470, coral: 16744272, cornflowerblue: 6591981, cornsilk: 16775388, crimson: 14423100, cyan: 65535, darkblue: 139, darkcyan: 35723, darkgoldenrod: 12092939, darkgray: 11119017, darkgreen: 25600, darkgrey: 11119017, darkkhaki: 12433259, darkmagenta: 9109643, darkolivegreen: 5597999, darkorange: 16747520, darkorchid: 10040012, darkred: 9109504, darksalmon: 15308410, darkseagreen: 9419919, darkslateblue: 4734347, darkslategray: 3100495, darkslategrey: 3100495, darkturquoise: 52945, darkviolet: 9699539, deeppink: 16716947, deepskyblue: 49151, dimgray: 6908265, dimgrey: 6908265, dodgerblue: 2003199, firebrick: 11674146, floralwhite: 16775920, forestgreen: 2263842, fuchsia: 16711935, gainsboro: 14474460, ghostwhite: 16316671, gold: 16766720, goldenrod: 14329120, gray: 8421504, green: 32768, greenyellow: 11403055, grey: 8421504, honeydew: 15794160, hotpink: 16738740, indianred: 13458524, indigo: 4915330, ivory: 16777200, khaki: 15787660, lavender: 15132410, lavenderblush: 16773365, lawngreen: 8190976, lemonchiffon: 16775885, lightblue: 11393254, lightcoral: 15761536, lightcyan: 14745599, lightgoldenrodyellow: 16448210, lightgray: 13882323, lightgreen: 9498256, lightgrey: 13882323, lightpink: 16758465, lightsalmon: 16752762, lightseagreen: 2142890, lightskyblue: 8900346, lightslategray: 7833753, lightslategrey: 7833753, lightsteelblue: 11584734, lightyellow: 16777184, lime: 65280, limegreen: 3329330, linen: 16445670, magenta: 16711935, maroon: 8388608, mediumaquamarine: 6737322, mediumblue: 205, mediumorchid: 12211667, mediumpurple: 9662683, mediumseagreen: 3978097, mediumslateblue: 8087790, mediumspringgreen: 64154, mediumturquoise: 4772300, mediumvioletred: 13047173, midnightblue: 1644912, mintcream: 16121850, mistyrose: 16770273, moccasin: 16770229, navajowhite: 16768685, navy: 128, oldlace: 16643558, olive: 8421376, olivedrab: 7048739, orange: 16753920, orangered: 16729344, orchid: 14315734, palegoldenrod: 15657130, palegreen: 10025880, paleturquoise: 11529966, palevioletred: 14381203, papayawhip: 16773077, peachpuff: 16767673, peru: 13468991, pink: 16761035, plum: 14524637, powderblue: 11591910, purple: 8388736, rebeccapurple: 6697881, red: 16711680, rosybrown: 12357519, royalblue: 4286945, saddlebrown: 9127187, salmon: 16416882, sandybrown: 16032864, seagreen: 3050327, seashell: 16774638, sienna: 10506797, silver: 12632256, skyblue: 8900331, slateblue: 6970061, slategray: 7372944, slategrey: 7372944, snow: 16775930, springgreen: 65407, steelblue: 4620980, tan: 13808780, teal: 32896, thistle: 14204888, tomato: 16737095, turquoise: 4251856, violet: 15631086, wheat: 16113331, white: 16777215, whitesmoke: 16119285, yellow: 16776960, yellowgreen: 10145074 }, Cr = { h: 0, s: 0, l: 0 }, Ir = { h: 0, s: 0, l: 0 };
|
|
11033
11126
|
function Or(t3, e3, n2) {
|
|
11034
11127
|
return n2 < 0 && (n2 += 1), n2 > 1 && (n2 -= 1), n2 < 1 / 6 ? t3 + 6 * (e3 - t3) * n2 : n2 < 0.5 ? e3 : n2 < 2 / 3 ? t3 + 6 * (e3 - t3) * (2 / 3 - n2) : t3;
|
|
11035
11128
|
}
|
|
@@ -11163,7 +11256,7 @@ var Slide = function(t2) {
|
|
|
11163
11256
|
return "rgb(" + (255 * this.r | 0) + "," + (255 * this.g | 0) + "," + (255 * this.b | 0) + ")";
|
|
11164
11257
|
}
|
|
11165
11258
|
offsetHSL(t3, e3, n2) {
|
|
11166
|
-
return this.getHSL(
|
|
11259
|
+
return this.getHSL(Cr), Cr.h += t3, Cr.s += e3, Cr.l += n2, this.setHSL(Cr.h, Cr.s, Cr.l), this;
|
|
11167
11260
|
}
|
|
11168
11261
|
add(t3) {
|
|
11169
11262
|
return this.r += t3.r, this.g += t3.g, this.b += t3.b, this;
|
|
@@ -11190,8 +11283,8 @@ var Slide = function(t2) {
|
|
|
11190
11283
|
return this.r = t3.r + (e3.r - t3.r) * n2, this.g = t3.g + (e3.g - t3.g) * n2, this.b = t3.b + (e3.b - t3.b) * n2, this;
|
|
11191
11284
|
}
|
|
11192
11285
|
lerpHSL(t3, e3) {
|
|
11193
|
-
this.getHSL(
|
|
11194
|
-
const n2 = Jn(
|
|
11286
|
+
this.getHSL(Cr), t3.getHSL(Ir);
|
|
11287
|
+
const n2 = Jn(Cr.h, Ir.h, e3), i2 = Jn(Cr.s, Ir.s, e3), r3 = Jn(Cr.l, Ir.l, e3);
|
|
11195
11288
|
return this.setHSL(n2, i2, r3), this;
|
|
11196
11289
|
}
|
|
11197
11290
|
equals(t3) {
|
|
@@ -11225,7 +11318,7 @@ var Slide = function(t2) {
|
|
|
11225
11318
|
constructor(t3, e3, n2) {
|
|
11226
11319
|
if (Array.isArray(t3))
|
|
11227
11320
|
throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");
|
|
11228
|
-
this.name = "", this.array = t3, this.itemSize = e3, this.count = t3 !== void 0 ? t3.length / e3 : 0, this.normalized = n2 === true, this.usage =
|
|
11321
|
+
this.name = "", this.array = t3, this.itemSize = e3, this.count = t3 !== void 0 ? t3.length / e3 : 0, this.normalized = n2 === true, this.usage = In, this.updateRange = { offset: 0, count: -1 }, this.version = 0;
|
|
11229
11322
|
}
|
|
11230
11323
|
onUploadCallback() {
|
|
11231
11324
|
}
|
|
@@ -11351,7 +11444,7 @@ var Slide = function(t2) {
|
|
|
11351
11444
|
}
|
|
11352
11445
|
toJSON() {
|
|
11353
11446
|
const t3 = { itemSize: this.itemSize, type: this.array.constructor.name, array: Array.prototype.slice.call(this.array), normalized: this.normalized };
|
|
11354
|
-
return this.name !== "" && (t3.name = this.name), this.usage !==
|
|
11447
|
+
return this.name !== "" && (t3.name = this.name), this.usage !== In && (t3.usage = this.usage), this.updateRange.offset === 0 && this.updateRange.count === -1 || (t3.updateRange = this.updateRange), t3;
|
|
11355
11448
|
}
|
|
11356
11449
|
}
|
|
11357
11450
|
kr.prototype.isBufferAttribute = true;
|
|
@@ -11865,8 +11958,8 @@ var Slide = function(t2) {
|
|
|
11865
11958
|
}
|
|
11866
11959
|
return e3;
|
|
11867
11960
|
}
|
|
11868
|
-
const
|
|
11869
|
-
class
|
|
11961
|
+
const Co = { clone: Ro, merge: Po };
|
|
11962
|
+
class Io extends Rr {
|
|
11870
11963
|
constructor(t3) {
|
|
11871
11964
|
super(), this.type = "ShaderMaterial", this.defines = {}, this.uniforms = {}, this.vertexShader = "void main() {\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}", this.fragmentShader = "void main() {\n gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}", this.linewidth = 1, this.wireframe = false, this.wireframeLinewidth = 1, this.fog = false, this.lights = false, this.clipping = false, this.morphTargets = false, this.morphNormals = false, this.extensions = { derivatives: false, fragDepth: false, drawBuffers: false, shaderTextureLOD: false }, this.defaultAttributeValues = { color: [1, 1, 1], uv: [0, 0], uv2: [0, 0] }, this.index0AttributeName = void 0, this.uniformsNeedUpdate = false, this.glslVersion = null, t3 !== void 0 && (t3.attributes !== void 0 && console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."), this.setValues(t3));
|
|
11872
11965
|
}
|
|
@@ -11887,7 +11980,7 @@ var Slide = function(t2) {
|
|
|
11887
11980
|
return Object.keys(n2).length > 0 && (e3.extensions = n2), e3;
|
|
11888
11981
|
}
|
|
11889
11982
|
}
|
|
11890
|
-
|
|
11983
|
+
Io.prototype.isShaderMaterial = true;
|
|
11891
11984
|
class Oo extends mr {
|
|
11892
11985
|
constructor() {
|
|
11893
11986
|
super(), this.type = "Camera", this.matrixWorldInverse = new Vi(), this.projectionMatrix = new Vi(), this.projectionMatrixInverse = new Vi();
|
|
@@ -12002,7 +12095,7 @@ var Slide = function(t2) {
|
|
|
12002
12095
|
}
|
|
12003
12096
|
fromEquirectangularTexture(t3, e3) {
|
|
12004
12097
|
this.texture.type = e3.type, this.texture.format = Vt, this.texture.encoding = e3.encoding, this.texture.generateMipmaps = e3.generateMipmaps, this.texture.minFilter = e3.minFilter, this.texture.magFilter = e3.magFilter;
|
|
12005
|
-
const n2 = { uniforms: { tEquirect: { value: null } }, vertexShader: "\n\n varying vec3 vWorldDirection;\n\n vec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n }\n\n void main() {\n\n vWorldDirection = transformDirection( position, modelMatrix );\n\n #include <begin_vertex>\n #include <project_vertex>\n\n }\n ", fragmentShader: "\n\n uniform sampler2D tEquirect;\n\n varying vec3 vWorldDirection;\n\n #include <common>\n\n void main() {\n\n vec3 direction = normalize( vWorldDirection );\n\n vec2 sampleUV = equirectUv( direction );\n\n gl_FragColor = texture2D( tEquirect, sampleUV );\n\n }\n " }, i2 = new Ao(5, 5, 5), r3 = new
|
|
12098
|
+
const n2 = { uniforms: { tEquirect: { value: null } }, vertexShader: "\n\n varying vec3 vWorldDirection;\n\n vec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n }\n\n void main() {\n\n vWorldDirection = transformDirection( position, modelMatrix );\n\n #include <begin_vertex>\n #include <project_vertex>\n\n }\n ", fragmentShader: "\n\n uniform sampler2D tEquirect;\n\n varying vec3 vWorldDirection;\n\n #include <common>\n\n void main() {\n\n vec3 direction = normalize( vWorldDirection );\n\n vec2 sampleUV = equirectUv( direction );\n\n gl_FragColor = texture2D( tEquirect, sampleUV );\n\n }\n " }, i2 = new Ao(5, 5, 5), r3 = new Io({ name: "CubemapFromEquirect", uniforms: Ro(n2.uniforms), vertexShader: n2.vertexShader, fragmentShader: n2.fragmentShader, side: b, blending: E });
|
|
12006
12099
|
r3.uniforms.tEquirect.value = e3;
|
|
12007
12100
|
const o3 = new Eo(i2, r3), s3 = e3.minFilter;
|
|
12008
12101
|
e3.minFilter === Rt && (e3.minFilter = Et);
|
|
@@ -12224,11 +12317,11 @@ var Slide = function(t2) {
|
|
|
12224
12317
|
let p2 = false, f2 = r4.isScene === true ? r4.background : null;
|
|
12225
12318
|
f2 && f2.isTexture && (f2 = e3.get(f2));
|
|
12226
12319
|
const m2 = t3.xr, g2 = m2.getSession && m2.getSession();
|
|
12227
|
-
g2 && g2.environmentBlendMode === "additive" && (f2 = null), f2 === null ? d2(o3, l2) : f2 && f2.isColor && (d2(f2, 1), p2 = true), (t3.autoClear || p2) && t3.clear(t3.autoClearColor, t3.autoClearDepth, t3.autoClearStencil), f2 && (f2.isCubeTexture || f2.mapping === mt) ? (a2 === void 0 && (a2 = new Eo(new Ao(1, 1, 1), new
|
|
12320
|
+
g2 && g2.environmentBlendMode === "additive" && (f2 = null), f2 === null ? d2(o3, l2) : f2 && f2.isColor && (d2(f2, 1), p2 = true), (t3.autoClear || p2) && t3.clear(t3.autoClearColor, t3.autoClearDepth, t3.autoClearStencil), f2 && (f2.isCubeTexture || f2.mapping === mt) ? (a2 === void 0 && (a2 = new Eo(new Ao(1, 1, 1), new Io({ name: "BackgroundCubeMaterial", uniforms: Ro(Zo.cube.uniforms), vertexShader: Zo.cube.vertexShader, fragmentShader: Zo.cube.fragmentShader, side: b, depthTest: false, depthWrite: false, fog: false })), a2.geometry.deleteAttribute("normal"), a2.geometry.deleteAttribute("uv"), a2.onBeforeRender = function(t4, e4, n4) {
|
|
12228
12321
|
this.matrixWorld.copyPosition(n4.matrixWorld);
|
|
12229
12322
|
}, Object.defineProperty(a2.material, "envMap", { get: function() {
|
|
12230
12323
|
return this.uniforms.envMap.value;
|
|
12231
|
-
} }), i2.update(a2)), a2.material.uniforms.envMap.value = f2, a2.material.uniforms.flipEnvMap.value = f2.isCubeTexture && f2._needsFlipEnvMap ? -1 : 1, u2 === f2 && h2 === f2.version && c2 === t3.toneMapping || (a2.material.needsUpdate = true, u2 = f2, h2 = f2.version, c2 = t3.toneMapping), n3.unshift(a2, a2.geometry, a2.material, 0, 0, null)) : f2 && f2.isTexture && (s3 === void 0 && (s3 = new Eo(new Xo(2, 2), new
|
|
12324
|
+
} }), i2.update(a2)), a2.material.uniforms.envMap.value = f2, a2.material.uniforms.flipEnvMap.value = f2.isCubeTexture && f2._needsFlipEnvMap ? -1 : 1, u2 === f2 && h2 === f2.version && c2 === t3.toneMapping || (a2.material.needsUpdate = true, u2 = f2, h2 = f2.version, c2 = t3.toneMapping), n3.unshift(a2, a2.geometry, a2.material, 0, 0, null)) : f2 && f2.isTexture && (s3 === void 0 && (s3 = new Eo(new Xo(2, 2), new Io({ name: "BackgroundMaterial", uniforms: Ro(Zo.background.uniforms), vertexShader: Zo.background.vertexShader, fragmentShader: Zo.background.fragmentShader, side: x, depthTest: false, depthWrite: false, fog: false })), s3.geometry.deleteAttribute("normal"), Object.defineProperty(s3.material, "map", { get: function() {
|
|
12232
12325
|
return this.uniforms.t2D.value;
|
|
12233
12326
|
} }), i2.update(s3)), s3.material.uniforms.t2D.value = f2, f2.matrixAutoUpdate === true && f2.updateMatrix(), s3.material.uniforms.uvTransform.value.copy(f2.matrix), u2 === f2 && h2 === f2.version && c2 === t3.toneMapping || (s3.material.needsUpdate = true, u2 = f2, h2 = f2.version, c2 = t3.toneMapping), n3.unshift(s3, s3.geometry, s3.material, 0, 0, null));
|
|
12234
12327
|
} };
|
|
@@ -12801,7 +12894,7 @@ var Slide = function(t2) {
|
|
|
12801
12894
|
xs.set(i2), t3.uniformMatrix2fv(this.addr, false, xs), ws(n2, i2);
|
|
12802
12895
|
}
|
|
12803
12896
|
}
|
|
12804
|
-
function
|
|
12897
|
+
function Cs(t3, e3) {
|
|
12805
12898
|
const n2 = this.cache, i2 = e3.elements;
|
|
12806
12899
|
if (i2 === void 0) {
|
|
12807
12900
|
if (Ts(n2, e3))
|
|
@@ -12813,7 +12906,7 @@ var Slide = function(t2) {
|
|
|
12813
12906
|
ys.set(i2), t3.uniformMatrix3fv(this.addr, false, ys), ws(n2, i2);
|
|
12814
12907
|
}
|
|
12815
12908
|
}
|
|
12816
|
-
function
|
|
12909
|
+
function Is(t3, e3) {
|
|
12817
12910
|
const n2 = this.cache, i2 = e3.elements;
|
|
12818
12911
|
if (i2 === void 0) {
|
|
12819
12912
|
if (Ts(n2, e3))
|
|
@@ -12950,9 +13043,9 @@ var Slide = function(t2) {
|
|
|
12950
13043
|
case 35674:
|
|
12951
13044
|
return Ps;
|
|
12952
13045
|
case 35675:
|
|
12953
|
-
return Is;
|
|
12954
|
-
case 35676:
|
|
12955
13046
|
return Cs;
|
|
13047
|
+
case 35676:
|
|
13048
|
+
return Is;
|
|
12956
13049
|
case 5124:
|
|
12957
13050
|
case 35670:
|
|
12958
13051
|
return Os;
|
|
@@ -13197,12 +13290,12 @@ var Slide = function(t2) {
|
|
|
13197
13290
|
}
|
|
13198
13291
|
const Aa = /#pragma unroll_loop[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g, Ra = /#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;
|
|
13199
13292
|
function Pa(t3) {
|
|
13200
|
-
return t3.replace(Ra,
|
|
13201
|
-
}
|
|
13202
|
-
function Ia(t3, e3, n2, i2) {
|
|
13203
|
-
return console.warn("WebGLProgram: #pragma unroll_loop shader syntax is deprecated. Please use #pragma unroll_loop_start syntax instead."), Ca(t3, e3, n2, i2);
|
|
13293
|
+
return t3.replace(Ra, Ia).replace(Aa, Ca);
|
|
13204
13294
|
}
|
|
13205
13295
|
function Ca(t3, e3, n2, i2) {
|
|
13296
|
+
return console.warn("WebGLProgram: #pragma unroll_loop shader syntax is deprecated. Please use #pragma unroll_loop_start syntax instead."), Ia(t3, e3, n2, i2);
|
|
13297
|
+
}
|
|
13298
|
+
function Ia(t3, e3, n2, i2) {
|
|
13206
13299
|
let r3 = "";
|
|
13207
13300
|
for (let t4 = parseInt(e3); t4 < parseInt(n2); t4++)
|
|
13208
13301
|
r3 += i2.replace(/\[\s*i\s*\]/g, "[ " + t4 + " ]").replace(/UNROLLED_LOOP_INDEX/g, t4);
|
|
@@ -13336,7 +13429,7 @@ var Slide = function(t2) {
|
|
|
13336
13429
|
let n3;
|
|
13337
13430
|
if (e4) {
|
|
13338
13431
|
const t5 = Zo[e4];
|
|
13339
|
-
n3 =
|
|
13432
|
+
n3 = Co.clone(t5.uniforms);
|
|
13340
13433
|
} else
|
|
13341
13434
|
n3 = t4.uniforms;
|
|
13342
13435
|
return n3;
|
|
@@ -13575,7 +13668,7 @@ var Slide = function(t2) {
|
|
|
13575
13668
|
qa.prototype.isMeshDistanceMaterial = true;
|
|
13576
13669
|
function Ya(t3, e3, n2) {
|
|
13577
13670
|
let i2 = new jo();
|
|
13578
|
-
const r3 = new ei(), o3 = new ei(), s3 = new li(), a2 = [], l2 = [], u2 = {}, h2 = n2.maxTextureSize, c2 = { 0: b, 1: x, 2: T }, d2 = new
|
|
13671
|
+
const r3 = new ei(), o3 = new ei(), s3 = new li(), a2 = [], l2 = [], u2 = {}, h2 = n2.maxTextureSize, c2 = { 0: b, 1: x, 2: T }, d2 = new Io({ defines: { SAMPLE_RATE: 2 / 8, HALF_SAMPLE_RATE: 1 / 8 }, uniforms: { shadow_pass: { value: null }, resolution: { value: new ei() }, radius: { value: 4 } }, vertexShader: "void main() {\n gl_Position = vec4( position, 1.0 );\n}", fragmentShader: "uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include <packing>\nvoid main() {\n float mean = 0.0;\n float squared_mean = 0.0;\n float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy ) / resolution ) );\n for ( float i = -1.0; i < 1.0 ; i += SAMPLE_RATE) {\n #ifdef HORIZONTAL_PASS\n vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( i, 0.0 ) * radius ) / resolution ) );\n mean += distribution.x;\n squared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n #else\n float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, i ) * radius ) / resolution ) );\n mean += depth;\n squared_mean += depth * depth;\n #endif\n }\n mean = mean * HALF_SAMPLE_RATE;\n squared_mean = squared_mean * HALF_SAMPLE_RATE;\n float std_dev = sqrt( squared_mean - mean * mean );\n gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}" }), p2 = d2.clone();
|
|
13579
13672
|
p2.defines.HORIZONTAL_PASS = 1;
|
|
13580
13673
|
const f2 = new so();
|
|
13581
13674
|
f2.setAttribute("position", new kr(new Float32Array([-1, -1, 0.5, 3, -1, 0.5, -1, 3, 0.5]), 3));
|
|
@@ -13776,7 +13869,7 @@ var Slide = function(t2) {
|
|
|
13776
13869
|
a2[e4] !== false && (t3.disable(e4), a2[e4] = false);
|
|
13777
13870
|
}
|
|
13778
13871
|
vt2[3553] = gt2(3553, 3553, 1), vt2[34067] = gt2(34067, 34069, 6), r3.setClear(0, 0, 0, 1), o3.setClear(1), s3.setClear(0), _t2(2929), o3.setFunc(J), wt2(false), St2(p), _t2(2884), Tt2(E);
|
|
13779
|
-
const xt2 = { [
|
|
13872
|
+
const xt2 = { [I]: 32774, [O]: 32778, [L]: 32779 };
|
|
13780
13873
|
if (i2)
|
|
13781
13874
|
xt2[N] = 32775, xt2[D] = 32776;
|
|
13782
13875
|
else {
|
|
@@ -13786,10 +13879,10 @@ var Slide = function(t2) {
|
|
|
13786
13879
|
const bt2 = { [F]: 0, [B]: 1, [U]: 768, [G]: 770, [X]: 776, [V]: 774, [z]: 772, [k]: 769, [H]: 771, [W]: 775, [j]: 773 };
|
|
13787
13880
|
function Tt2(e4, n3, i3, r4, o4, s4, a3, l3) {
|
|
13788
13881
|
if (e4 !== E) {
|
|
13789
|
-
if (c2 === false && (_t2(3042), c2 = true), e4 ===
|
|
13882
|
+
if (c2 === false && (_t2(3042), c2 = true), e4 === C)
|
|
13790
13883
|
o4 = o4 || n3, s4 = s4 || i3, a3 = a3 || r4, n3 === g2 && o4 === y2 || (t3.blendEquationSeparate(xt2[n3], xt2[o4]), g2 = n3, y2 = o4), i3 === v2 && r4 === _2 && s4 === x2 && a3 === w2 || (t3.blendFuncSeparate(bt2[i3], bt2[r4], bt2[s4], bt2[a3]), v2 = i3, _2 = r4, x2 = s4, w2 = a3), m2 = e4, S2 = null;
|
|
13791
13884
|
else if (e4 !== m2 || l3 !== S2) {
|
|
13792
|
-
if (g2 ===
|
|
13885
|
+
if (g2 === I && y2 === I || (t3.blendEquation(32774), g2 = I, y2 = I), l3)
|
|
13793
13886
|
switch (e4) {
|
|
13794
13887
|
case M:
|
|
13795
13888
|
t3.blendFuncSeparate(1, 771, 1, 771);
|
|
@@ -13979,7 +14072,7 @@ var Slide = function(t2) {
|
|
|
13979
14072
|
console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined");
|
|
13980
14073
|
else {
|
|
13981
14074
|
if (n3.complete !== false)
|
|
13982
|
-
return void
|
|
14075
|
+
return void I2(r4, t4, e4);
|
|
13983
14076
|
console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");
|
|
13984
14077
|
}
|
|
13985
14078
|
}
|
|
@@ -13990,7 +14083,7 @@ var Slide = function(t2) {
|
|
|
13990
14083
|
e4.version > 0 && s4.__version !== e4.version ? function(e5, i3, r5) {
|
|
13991
14084
|
if (i3.image.length !== 6)
|
|
13992
14085
|
return;
|
|
13993
|
-
|
|
14086
|
+
C2(e5, i3), n2.activeTexture(33984 + r5), n2.bindTexture(34067, e5.__webglTexture), t3.pixelStorei(37440, i3.flipY), t3.pixelStorei(37441, i3.premultiplyAlpha), t3.pixelStorei(3317, i3.unpackAlignment), t3.pixelStorei(37443, 0);
|
|
13994
14087
|
const s5 = i3 && (i3.isCompressedTexture || i3.image[0].isCompressedTexture), l3 = i3.image[0] && i3.image[0].isDataTexture, h3 = [];
|
|
13995
14088
|
for (let t4 = 0; t4 < 6; t4++)
|
|
13996
14089
|
h3[t4] = s5 || l3 ? l3 ? i3.image[t4].image : i3.image[t4] : g2(i3.image[t4], false, true, u2);
|
|
@@ -14038,12 +14131,12 @@ var Slide = function(t2) {
|
|
|
14038
14131
|
(o4.anisotropy > 1 || i2.get(o4).__currentAnisotropy) && (t3.texParameterf(n3, s5.TEXTURE_MAX_ANISOTROPY_EXT, Math.min(o4.anisotropy, r3.getMaxAnisotropy())), i2.get(o4).__currentAnisotropy = o4.anisotropy);
|
|
14039
14132
|
}
|
|
14040
14133
|
}
|
|
14041
|
-
function
|
|
14134
|
+
function C2(e4, n3) {
|
|
14042
14135
|
e4.__webglInit === void 0 && (e4.__webglInit = true, n3.addEventListener("dispose", T2), e4.__webglTexture = t3.createTexture(), s3.memory.textures++);
|
|
14043
14136
|
}
|
|
14044
|
-
function
|
|
14137
|
+
function I2(e4, i3, r4) {
|
|
14045
14138
|
let s4 = 3553;
|
|
14046
|
-
i3.isDataTexture2DArray && (s4 = 35866), i3.isDataTexture3D && (s4 = 32879),
|
|
14139
|
+
i3.isDataTexture2DArray && (s4 = 35866), i3.isDataTexture3D && (s4 = 32879), C2(e4, i3), n2.activeTexture(33984 + r4), n2.bindTexture(s4, e4.__webglTexture), t3.pixelStorei(37440, i3.flipY), t3.pixelStorei(37441, i3.premultiplyAlpha), t3.pixelStorei(3317, i3.unpackAlignment), t3.pixelStorei(37443, 0);
|
|
14047
14140
|
const l3 = function(t4) {
|
|
14048
14141
|
return !a2 && (t4.wrapS !== _t || t4.wrapT !== _t || t4.minFilter !== xt && t4.minFilter !== Et);
|
|
14049
14142
|
}(i3) && v2(i3.image) === false, u3 = g2(i3.image, l3, false, h2), c3 = v2(u3) || a2, d3 = o3.convert(i3.format);
|
|
@@ -14146,10 +14239,10 @@ var Slide = function(t2) {
|
|
|
14146
14239
|
S2 = 0;
|
|
14147
14240
|
}, this.setTexture2D = E2, this.setTexture2DArray = function(t4, e4) {
|
|
14148
14241
|
const r4 = i2.get(t4);
|
|
14149
|
-
t4.version > 0 && r4.__version !== t4.version ?
|
|
14242
|
+
t4.version > 0 && r4.__version !== t4.version ? I2(r4, t4, e4) : (n2.activeTexture(33984 + e4), n2.bindTexture(35866, r4.__webglTexture));
|
|
14150
14243
|
}, this.setTexture3D = function(t4, e4) {
|
|
14151
14244
|
const r4 = i2.get(t4);
|
|
14152
|
-
t4.version > 0 && r4.__version !== t4.version ?
|
|
14245
|
+
t4.version > 0 && r4.__version !== t4.version ? I2(r4, t4, e4) : (n2.activeTexture(33984 + e4), n2.bindTexture(32879, r4.__webglTexture));
|
|
14153
14246
|
}, this.setTextureCube = M2, this.setupRenderTarget = function(e4) {
|
|
14154
14247
|
const l3 = e4.texture, u3 = i2.get(e4), h3 = i2.get(l3);
|
|
14155
14248
|
e4.addEventListener("dispose", w2), e4.isWebGLMultipleRenderTargets !== true && (h3.__webglTexture = t3.createTexture(), h3.__version = l3.version, s3.memory.textures++);
|
|
@@ -14225,7 +14318,7 @@ var Slide = function(t2) {
|
|
|
14225
14318
|
const i2 = n2.isWebGL2;
|
|
14226
14319
|
return { convert: function(t4) {
|
|
14227
14320
|
let n3;
|
|
14228
|
-
if (t4 ===
|
|
14321
|
+
if (t4 === Ct)
|
|
14229
14322
|
return 5121;
|
|
14230
14323
|
if (t4 === Ut)
|
|
14231
14324
|
return 32819;
|
|
@@ -14233,7 +14326,7 @@ var Slide = function(t2) {
|
|
|
14233
14326
|
return 32820;
|
|
14234
14327
|
if (t4 === Gt)
|
|
14235
14328
|
return 33635;
|
|
14236
|
-
if (t4 ===
|
|
14329
|
+
if (t4 === It)
|
|
14237
14330
|
return 5120;
|
|
14238
14331
|
if (t4 === Ot)
|
|
14239
14332
|
return 5122;
|
|
@@ -14305,7 +14398,7 @@ var Slide = function(t2) {
|
|
|
14305
14398
|
if (t4 === de)
|
|
14306
14399
|
return n3.COMPRESSED_RGBA8_ETC2_EAC;
|
|
14307
14400
|
}
|
|
14308
|
-
return t4 === pe || t4 === fe || t4 === me || t4 === ge || t4 === ve || t4 === _e || t4 === ye || t4 === xe || t4 === be || t4 === Te || t4 === we || t4 === Se || t4 === Ee || t4 === Me || t4 === Re || t4 === Pe || t4 ===
|
|
14401
|
+
return t4 === pe || t4 === fe || t4 === me || t4 === ge || t4 === ve || t4 === _e || t4 === ye || t4 === xe || t4 === be || t4 === Te || t4 === we || t4 === Se || t4 === Ee || t4 === Me || t4 === Re || t4 === Pe || t4 === Ce || t4 === Ie || t4 === Oe || t4 === Le || t4 === Ne || t4 === De || t4 === Fe || t4 === Be || t4 === Ue || t4 === ke || t4 === Ge || t4 === He ? (n3 = e3.get("WEBGL_compressed_texture_astc"), n3 !== null ? t4 : null) : t4 === Ae ? (n3 = e3.get("EXT_texture_compression_bptc"), n3 !== null ? t4 : null) : t4 === Ht ? i2 ? 34042 : (n3 = e3.get("WEBGL_depth_texture"), n3 !== null ? n3.UNSIGNED_INT_24_8_WEBGL : null) : void 0;
|
|
14309
14402
|
} };
|
|
14310
14403
|
}
|
|
14311
14404
|
class Ka extends Lo {
|
|
@@ -14573,14 +14666,14 @@ var Slide = function(t2) {
|
|
|
14573
14666
|
const m2 = this;
|
|
14574
14667
|
let g2 = false, v2 = 0, _2 = 0, y2 = null, w2 = -1, S2 = null;
|
|
14575
14668
|
const E2 = new li(), M2 = new li();
|
|
14576
|
-
let A2 = null, R2 = e3.width, P2 = e3.height,
|
|
14669
|
+
let A2 = null, R2 = e3.width, P2 = e3.height, C2 = 1, I2 = null, O2 = null;
|
|
14577
14670
|
const L2 = new li(0, 0, R2, P2), N2 = new li(0, 0, R2, P2);
|
|
14578
14671
|
let D2 = false;
|
|
14579
14672
|
const F2 = [], B2 = new jo();
|
|
14580
14673
|
let U2 = false, k2 = false, G2 = null;
|
|
14581
14674
|
const H2 = new Vi(), z2 = new pi(), j2 = { background: null, fog: null, environment: null, overrideMaterial: null, isScene: true };
|
|
14582
14675
|
function V2() {
|
|
14583
|
-
return y2 === null ?
|
|
14676
|
+
return y2 === null ? C2 : 1;
|
|
14584
14677
|
}
|
|
14585
14678
|
let W2, X2, q2, Y2, Z2, J2, $2, K2, Q2, tt2, et2, nt2, it2, ot2, st2, at2, lt2, ut2, ht2, ct2, dt2, pt2, ft2 = n2;
|
|
14586
14679
|
function mt2(t4, n3) {
|
|
@@ -14639,33 +14732,33 @@ var Slide = function(t2) {
|
|
|
14639
14732
|
const t4 = W2.get("WEBGL_lose_context");
|
|
14640
14733
|
t4 && t4.restoreContext();
|
|
14641
14734
|
}, this.getPixelRatio = function() {
|
|
14642
|
-
return
|
|
14735
|
+
return C2;
|
|
14643
14736
|
}, this.setPixelRatio = function(t4) {
|
|
14644
|
-
t4 !== void 0 && (
|
|
14737
|
+
t4 !== void 0 && (C2 = t4, this.setSize(R2, P2, false));
|
|
14645
14738
|
}, this.getSize = function(t4) {
|
|
14646
14739
|
return t4.set(R2, P2);
|
|
14647
14740
|
}, this.setSize = function(t4, n3, i3) {
|
|
14648
|
-
vt2.isPresenting ? console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.") : (R2 = t4, P2 = n3, e3.width = Math.floor(t4 *
|
|
14741
|
+
vt2.isPresenting ? console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.") : (R2 = t4, P2 = n3, e3.width = Math.floor(t4 * C2), e3.height = Math.floor(n3 * C2), i3 !== false && (e3.style.width = t4 + "px", e3.style.height = n3 + "px"), this.setViewport(0, 0, t4, n3));
|
|
14649
14742
|
}, this.getDrawingBufferSize = function(t4) {
|
|
14650
|
-
return t4.set(R2 *
|
|
14743
|
+
return t4.set(R2 * C2, P2 * C2).floor();
|
|
14651
14744
|
}, this.setDrawingBufferSize = function(t4, n3, i3) {
|
|
14652
|
-
R2 = t4, P2 = n3,
|
|
14745
|
+
R2 = t4, P2 = n3, C2 = i3, e3.width = Math.floor(t4 * i3), e3.height = Math.floor(n3 * i3), this.setViewport(0, 0, t4, n3);
|
|
14653
14746
|
}, this.getCurrentViewport = function(t4) {
|
|
14654
14747
|
return t4.copy(E2);
|
|
14655
14748
|
}, this.getViewport = function(t4) {
|
|
14656
14749
|
return t4.copy(L2);
|
|
14657
14750
|
}, this.setViewport = function(t4, e4, n3, i3) {
|
|
14658
|
-
t4.isVector4 ? L2.set(t4.x, t4.y, t4.z, t4.w) : L2.set(t4, e4, n3, i3), q2.viewport(E2.copy(L2).multiplyScalar(
|
|
14751
|
+
t4.isVector4 ? L2.set(t4.x, t4.y, t4.z, t4.w) : L2.set(t4, e4, n3, i3), q2.viewport(E2.copy(L2).multiplyScalar(C2).floor());
|
|
14659
14752
|
}, this.getScissor = function(t4) {
|
|
14660
14753
|
return t4.copy(N2);
|
|
14661
14754
|
}, this.setScissor = function(t4, e4, n3, i3) {
|
|
14662
|
-
t4.isVector4 ? N2.set(t4.x, t4.y, t4.z, t4.w) : N2.set(t4, e4, n3, i3), q2.scissor(M2.copy(N2).multiplyScalar(
|
|
14755
|
+
t4.isVector4 ? N2.set(t4.x, t4.y, t4.z, t4.w) : N2.set(t4, e4, n3, i3), q2.scissor(M2.copy(N2).multiplyScalar(C2).floor());
|
|
14663
14756
|
}, this.getScissorTest = function() {
|
|
14664
14757
|
return D2;
|
|
14665
14758
|
}, this.setScissorTest = function(t4) {
|
|
14666
14759
|
q2.setScissorTest(D2 = t4);
|
|
14667
14760
|
}, this.setOpaqueSort = function(t4) {
|
|
14668
|
-
|
|
14761
|
+
I2 = t4;
|
|
14669
14762
|
}, this.setTransparentSort = function(t4) {
|
|
14670
14763
|
O2 = t4;
|
|
14671
14764
|
}, this.getClearColor = function(t4) {
|
|
@@ -14733,10 +14826,10 @@ var Slide = function(t2) {
|
|
|
14733
14826
|
if (n3)
|
|
14734
14827
|
if (Array.isArray(n3))
|
|
14735
14828
|
for (let i3 = 0; i3 < n3.length; i3++) {
|
|
14736
|
-
|
|
14829
|
+
It2(n3[i3], t4, e5);
|
|
14737
14830
|
}
|
|
14738
14831
|
else
|
|
14739
|
-
|
|
14832
|
+
It2(n3, t4, e5);
|
|
14740
14833
|
});
|
|
14741
14834
|
};
|
|
14742
14835
|
let wt2 = null;
|
|
@@ -14773,7 +14866,7 @@ var Slide = function(t2) {
|
|
|
14773
14866
|
r4.transparent === true && r4.side === T ? (r4.side = b, r4.needsUpdate = true, m2.renderBufferDirect(n3, e4, i3, r4, t4, o4), r4.side = x, r4.needsUpdate = true, m2.renderBufferDirect(n3, e4, i3, r4, t4, o4), r4.side = T) : m2.renderBufferDirect(n3, e4, i3, r4, t4, o4);
|
|
14774
14867
|
t4.onAfterRender(m2, e4, n3, i3, r4, o4);
|
|
14775
14868
|
}
|
|
14776
|
-
function
|
|
14869
|
+
function It2(t4, e4, n3) {
|
|
14777
14870
|
e4.isScene !== true && (e4 = j2);
|
|
14778
14871
|
const i3 = Z2.get(t4), r4 = d2.state.lights, o4 = d2.state.shadowsArray, s4 = r4.state.version, a3 = et2.getParameters(t4, r4.state, o4, e4, n3), l3 = et2.getProgramCacheKey(a3);
|
|
14779
14872
|
let u3 = i3.programs;
|
|
@@ -14805,7 +14898,7 @@ var Slide = function(t2) {
|
|
|
14805
14898
|
let c3 = false;
|
|
14806
14899
|
n3.version === u3.__version ? u3.needsLights && u3.lightsStateVersion !== h3.state.version || u3.outputEncoding !== s4 || i3.isInstancedMesh && u3.instancing === false ? c3 = true : i3.isInstancedMesh || u3.instancing !== true ? i3.isSkinnedMesh && u3.skinning === false ? c3 = true : i3.isSkinnedMesh || u3.skinning !== true ? u3.envMap !== a3 || n3.fog && u3.fog !== r4 ? c3 = true : u3.numClippingPlanes === void 0 || u3.numClippingPlanes === st2.numPlanes && u3.numIntersection === st2.numIntersection ? u3.vertexAlphas !== l3 && (c3 = true) : c3 = true : c3 = true : c3 = true : (c3 = true, u3.__version = n3.version);
|
|
14807
14900
|
let p3 = u3.currentProgram;
|
|
14808
|
-
c3 === true && (p3 =
|
|
14901
|
+
c3 === true && (p3 = It2(n3, e4, i3));
|
|
14809
14902
|
let f3 = false, g3 = false, v3 = false;
|
|
14810
14903
|
const _3 = p3.getUniforms(), x2 = u3.uniforms;
|
|
14811
14904
|
if (q2.useProgram(p3.program) && (f3 = true, g3 = true, v3 = true), n3.id !== w2 && (w2 = n3.id, g3 = true), f3 || S2 !== t4) {
|
|
@@ -14821,7 +14914,7 @@ var Slide = function(t2) {
|
|
|
14821
14914
|
t5 && (X2.floatVertexTextures ? (t5.boneTexture === null && t5.computeBoneTexture(), _3.setValue(ft2, "boneTexture", t5.boneTexture, J2), _3.setValue(ft2, "boneTextureSize", t5.boneTextureSize)) : _3.setOptional(ft2, t5, "boneMatrices"));
|
|
14822
14915
|
}
|
|
14823
14916
|
var b2, T2;
|
|
14824
|
-
return (g3 || u3.receiveShadow !== i3.receiveShadow) && (u3.receiveShadow = i3.receiveShadow, _3.setValue(ft2, "receiveShadow", i3.receiveShadow)), g3 && (_3.setValue(ft2, "toneMappingExposure", m2.toneMappingExposure), u3.needsLights && (T2 = v3, (b2 = x2).ambientLightColor.needsUpdate = T2, b2.lightProbe.needsUpdate = T2, b2.directionalLights.needsUpdate = T2, b2.directionalLightShadows.needsUpdate = T2, b2.pointLights.needsUpdate = T2, b2.pointLightShadows.needsUpdate = T2, b2.spotLights.needsUpdate = T2, b2.spotLightShadows.needsUpdate = T2, b2.rectAreaLights.needsUpdate = T2, b2.hemisphereLights.needsUpdate = T2), r4 && n3.fog && nt2.refreshFogUniforms(x2, r4), nt2.refreshMaterialUniforms(x2, n3,
|
|
14917
|
+
return (g3 || u3.receiveShadow !== i3.receiveShadow) && (u3.receiveShadow = i3.receiveShadow, _3.setValue(ft2, "receiveShadow", i3.receiveShadow)), g3 && (_3.setValue(ft2, "toneMappingExposure", m2.toneMappingExposure), u3.needsLights && (T2 = v3, (b2 = x2).ambientLightColor.needsUpdate = T2, b2.lightProbe.needsUpdate = T2, b2.directionalLights.needsUpdate = T2, b2.directionalLightShadows.needsUpdate = T2, b2.pointLights.needsUpdate = T2, b2.pointLightShadows.needsUpdate = T2, b2.spotLights.needsUpdate = T2, b2.spotLightShadows.needsUpdate = T2, b2.rectAreaLights.needsUpdate = T2, b2.hemisphereLights.needsUpdate = T2), r4 && n3.fog && nt2.refreshFogUniforms(x2, r4), nt2.refreshMaterialUniforms(x2, n3, C2, P2, G2), pa.upload(ft2, u3.uniformsList, x2, J2)), n3.isShaderMaterial && n3.uniformsNeedUpdate === true && (pa.upload(ft2, u3.uniformsList, x2, J2), n3.uniformsNeedUpdate = false), n3.isSpriteMaterial && _3.setValue(ft2, "center", i3.center), _3.setValue(ft2, "modelViewMatrix", i3.modelViewMatrix), _3.setValue(ft2, "normalMatrix", i3.normalMatrix), _3.setValue(ft2, "modelMatrix", i3.matrixWorld), p3;
|
|
14825
14918
|
}
|
|
14826
14919
|
Mt2.setAnimationLoop(function(t4) {
|
|
14827
14920
|
wt2 && wt2(t4);
|
|
@@ -14866,14 +14959,14 @@ var Slide = function(t2) {
|
|
|
14866
14959
|
const o5 = e5.children;
|
|
14867
14960
|
for (let e6 = 0, s4 = o5.length; e6 < s4; e6++)
|
|
14868
14961
|
t5(o5[e6], n4, i4, r5);
|
|
14869
|
-
}(t4, e4, 0, m2.sortObjects), c2.finish(), m2.sortObjects === true && c2.sort(
|
|
14962
|
+
}(t4, e4, 0, m2.sortObjects), c2.finish(), m2.sortObjects === true && c2.sort(I2, O2), U2 === true && st2.beginShadows();
|
|
14870
14963
|
const n3 = d2.state.shadowsArray;
|
|
14871
14964
|
at2.render(n3, t4, e4), d2.setupLights(), d2.setupLightsView(e4), U2 === true && st2.endShadows(), this.info.autoReset === true && this.info.reset(), lt2.render(c2, t4);
|
|
14872
14965
|
const i3 = c2.opaque, r4 = c2.transmissive, o4 = c2.transparent;
|
|
14873
14966
|
i3.length > 0 && At2(i3, t4, e4), r4.length > 0 && function(t5, e5, n4, i4) {
|
|
14874
14967
|
if (G2 === null) {
|
|
14875
14968
|
const t6 = s3 === true && X2.isWebGL2 === true;
|
|
14876
|
-
G2 = new (t6 ? ci : ui)(1024, 1024, { generateMipmaps: true, type: dt2.convert(Bt) !== null ? Bt :
|
|
14969
|
+
G2 = new (t6 ? ci : ui)(1024, 1024, { generateMipmaps: true, type: dt2.convert(Bt) !== null ? Bt : Ct, minFilter: Rt, magFilter: xt, wrapS: _t, wrapT: _t });
|
|
14877
14970
|
}
|
|
14878
14971
|
const r5 = m2.getRenderTarget();
|
|
14879
14972
|
m2.setRenderTarget(G2), m2.clear();
|
|
@@ -14895,7 +14988,7 @@ var Slide = function(t2) {
|
|
|
14895
14988
|
const s4 = Z2.get(t4).__webglFramebuffer;
|
|
14896
14989
|
t4.isWebGLCubeRenderTarget ? (i3 = s4[e4], r4 = true) : i3 = t4.isWebGLMultisampleRenderTarget ? Z2.get(t4).__webglMultisampledFramebuffer : s4, E2.copy(t4.viewport), M2.copy(t4.scissor), A2 = t4.scissorTest;
|
|
14897
14990
|
} else
|
|
14898
|
-
E2.copy(L2).multiplyScalar(
|
|
14991
|
+
E2.copy(L2).multiplyScalar(C2).floor(), M2.copy(N2).multiplyScalar(C2).floor(), A2 = D2;
|
|
14899
14992
|
if (q2.bindFramebuffer(36160, i3) && X2.drawBuffers) {
|
|
14900
14993
|
let e5 = false;
|
|
14901
14994
|
if (t4)
|
|
@@ -14930,7 +15023,7 @@ var Slide = function(t2) {
|
|
|
14930
15023
|
if (a4 !== Vt && dt2.convert(a4) !== ft2.getParameter(35739))
|
|
14931
15024
|
return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");
|
|
14932
15025
|
const u3 = l3 === Bt && (W2.has("EXT_color_buffer_half_float") || X2.isWebGL2 && W2.has("EXT_color_buffer_float"));
|
|
14933
|
-
if (!(l3 ===
|
|
15026
|
+
if (!(l3 === Ct || dt2.convert(l3) === ft2.getParameter(35738) || l3 === Ft && (X2.isWebGL2 || W2.has("OES_texture_float") || W2.has("WEBGL_color_buffer_float")) || u3))
|
|
14934
15027
|
return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");
|
|
14935
15028
|
ft2.checkFramebufferStatus(36160) === 36053 ? e4 >= 0 && e4 <= t4.width - i3 && n3 >= 0 && n3 <= t4.height - r4 && ft2.readPixels(e4, n3, i3, r4, dt2.convert(a4), dt2.convert(l3), o4) : console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete.");
|
|
14936
15029
|
} finally {
|
|
@@ -15008,7 +15101,7 @@ var Slide = function(t2) {
|
|
|
15008
15101
|
ll.prototype.isScene = true;
|
|
15009
15102
|
class ul {
|
|
15010
15103
|
constructor(t3, e3) {
|
|
15011
|
-
this.array = t3, this.stride = e3, this.count = t3 !== void 0 ? t3.length / e3 : 0, this.usage =
|
|
15104
|
+
this.array = t3, this.stride = e3, this.count = t3 !== void 0 ? t3.length / e3 : 0, this.usage = In, this.updateRange = { offset: 0, count: -1 }, this.version = 0, this.uuid = qn();
|
|
15012
15105
|
}
|
|
15013
15106
|
onUploadCallback() {
|
|
15014
15107
|
}
|
|
@@ -15175,7 +15268,7 @@ var Slide = function(t2) {
|
|
|
15175
15268
|
}
|
|
15176
15269
|
Ml.prototype.isSprite = true;
|
|
15177
15270
|
const Rl = new pi(), Pl = new pi();
|
|
15178
|
-
class
|
|
15271
|
+
class Cl extends mr {
|
|
15179
15272
|
constructor() {
|
|
15180
15273
|
super(), this._currentLevel = 0, this.type = "LOD", Object.defineProperties(this, { levels: { enumerable: true, value: [] }, isLOD: { value: true } }), this.autoUpdate = true;
|
|
15181
15274
|
}
|
|
@@ -15239,7 +15332,7 @@ var Slide = function(t2) {
|
|
|
15239
15332
|
return e3;
|
|
15240
15333
|
}
|
|
15241
15334
|
}
|
|
15242
|
-
const
|
|
15335
|
+
const Il = new pi(), Ol = new li(), Ll = new li(), Nl = new pi(), Dl = new Vi();
|
|
15243
15336
|
class Fl extends Eo {
|
|
15244
15337
|
constructor(t3, e3) {
|
|
15245
15338
|
super(t3, e3), this.type = "SkinnedMesh", this.bindMode = "attached", this.bindMatrix = new Vi(), this.bindMatrixInverse = new Vi();
|
|
@@ -15266,12 +15359,12 @@ var Slide = function(t2) {
|
|
|
15266
15359
|
}
|
|
15267
15360
|
boneTransform(t3, e3) {
|
|
15268
15361
|
const n2 = this.skeleton, i2 = this.geometry;
|
|
15269
|
-
Ol.fromBufferAttribute(i2.attributes.skinIndex, t3), Ll.fromBufferAttribute(i2.attributes.skinWeight, t3),
|
|
15362
|
+
Ol.fromBufferAttribute(i2.attributes.skinIndex, t3), Ll.fromBufferAttribute(i2.attributes.skinWeight, t3), Il.fromBufferAttribute(i2.attributes.position, t3).applyMatrix4(this.bindMatrix), e3.set(0, 0, 0);
|
|
15270
15363
|
for (let t4 = 0; t4 < 4; t4++) {
|
|
15271
15364
|
const i3 = Ll.getComponent(t4);
|
|
15272
15365
|
if (i3 !== 0) {
|
|
15273
15366
|
const r3 = Ol.getComponent(t4);
|
|
15274
|
-
Dl.multiplyMatrices(n2.bones[r3].matrixWorld, n2.boneInverses[r3]), e3.addScaledVector(Nl.copy(
|
|
15367
|
+
Dl.multiplyMatrices(n2.bones[r3].matrixWorld, n2.boneInverses[r3]), e3.addScaledVector(Nl.copy(Il).applyMatrix4(Dl), i3);
|
|
15275
15368
|
}
|
|
15276
15369
|
}
|
|
15277
15370
|
return e3.applyMatrix4(this.bindMatrixInverse);
|
|
@@ -15968,7 +16061,7 @@ var Slide = function(t2) {
|
|
|
15968
16061
|
} };
|
|
15969
16062
|
}
|
|
15970
16063
|
Au.prototype.isArcCurve = true;
|
|
15971
|
-
const Pu = new pi(),
|
|
16064
|
+
const Pu = new pi(), Cu = new Ru(), Iu = new Ru(), Ou = new Ru();
|
|
15972
16065
|
class Lu extends Eu {
|
|
15973
16066
|
constructor(t3 = [], e3 = false, n2 = "centripetal", i2 = 0.5) {
|
|
15974
16067
|
super(), this.type = "CatmullRomCurve3", this.points = t3, this.closed = e3, this.curveType = n2, this.tension = i2;
|
|
@@ -15981,10 +16074,10 @@ var Slide = function(t2) {
|
|
|
15981
16074
|
if (this.closed || l2 + 2 < r3 ? a2 = i2[(l2 + 2) % r3] : (Pu.subVectors(i2[r3 - 1], i2[r3 - 2]).add(i2[r3 - 1]), a2 = Pu), this.curveType === "centripetal" || this.curveType === "chordal") {
|
|
15982
16075
|
const t4 = this.curveType === "chordal" ? 0.5 : 0.25;
|
|
15983
16076
|
let e4 = Math.pow(s3.distanceToSquared(h2), t4), n3 = Math.pow(h2.distanceToSquared(c2), t4), i3 = Math.pow(c2.distanceToSquared(a2), t4);
|
|
15984
|
-
n3 < 1e-4 && (n3 = 1), e4 < 1e-4 && (e4 = n3), i3 < 1e-4 && (i3 = n3),
|
|
16077
|
+
n3 < 1e-4 && (n3 = 1), e4 < 1e-4 && (e4 = n3), i3 < 1e-4 && (i3 = n3), Cu.initNonuniformCatmullRom(s3.x, h2.x, c2.x, a2.x, e4, n3, i3), Iu.initNonuniformCatmullRom(s3.y, h2.y, c2.y, a2.y, e4, n3, i3), Ou.initNonuniformCatmullRom(s3.z, h2.z, c2.z, a2.z, e4, n3, i3);
|
|
15985
16078
|
} else
|
|
15986
|
-
this.curveType === "catmullrom" && (
|
|
15987
|
-
return n2.set(
|
|
16079
|
+
this.curveType === "catmullrom" && (Cu.initCatmullRom(s3.x, h2.x, c2.x, a2.x, this.tension), Iu.initCatmullRom(s3.y, h2.y, c2.y, a2.y, this.tension), Ou.initCatmullRom(s3.z, h2.z, c2.z, a2.z, this.tension));
|
|
16080
|
+
return n2.set(Cu.calc(u2), Iu.calc(u2), Ou.calc(u2)), n2;
|
|
15988
16081
|
}
|
|
15989
16082
|
copy(t3) {
|
|
15990
16083
|
super.copy(t3), this.points = [];
|
|
@@ -16520,7 +16613,7 @@ var Slide = function(t2) {
|
|
|
16520
16613
|
return e4 || console.error("THREE.ExtrudeGeometry: vec does not exist"), e4.clone().multiplyScalar(n3).add(t5);
|
|
16521
16614
|
}
|
|
16522
16615
|
const R2 = w2.length, P2 = E2.length;
|
|
16523
|
-
function
|
|
16616
|
+
function C2(t5, e4, n3) {
|
|
16524
16617
|
let i3, r4, o5;
|
|
16525
16618
|
const s4 = t5.x - e4.x, a3 = t5.y - e4.y, l3 = n3.x - t5.x, u3 = n3.y - t5.y, h3 = s4 * s4 + a3 * a3, c3 = s4 * u3 - a3 * l3;
|
|
16526
16619
|
if (Math.abs(c3) > Number.EPSILON) {
|
|
@@ -16536,22 +16629,22 @@ var Slide = function(t2) {
|
|
|
16536
16629
|
}
|
|
16537
16630
|
return new ei(i3 / o5, r4 / o5);
|
|
16538
16631
|
}
|
|
16539
|
-
const
|
|
16632
|
+
const I2 = [];
|
|
16540
16633
|
for (let t5 = 0, e4 = M2.length, n3 = e4 - 1, i3 = t5 + 1; t5 < e4; t5++, n3++, i3++)
|
|
16541
|
-
n3 === e4 && (n3 = 0), i3 === e4 && (i3 = 0),
|
|
16634
|
+
n3 === e4 && (n3 = 0), i3 === e4 && (i3 = 0), I2[t5] = C2(M2[t5], M2[n3], M2[i3]);
|
|
16542
16635
|
const O2 = [];
|
|
16543
|
-
let L2, N2 =
|
|
16636
|
+
let L2, N2 = I2.concat();
|
|
16544
16637
|
for (let t5 = 0, e4 = S2.length; t5 < e4; t5++) {
|
|
16545
16638
|
const e5 = S2[t5];
|
|
16546
16639
|
L2 = [];
|
|
16547
16640
|
for (let t6 = 0, n3 = e5.length, i3 = n3 - 1, r4 = t6 + 1; t6 < n3; t6++, i3++, r4++)
|
|
16548
|
-
i3 === n3 && (i3 = 0), r4 === n3 && (r4 = 0), L2[t6] =
|
|
16641
|
+
i3 === n3 && (i3 = 0), r4 === n3 && (r4 = 0), L2[t6] = C2(e5[t6], e5[i3], e5[r4]);
|
|
16549
16642
|
O2.push(L2), N2 = N2.concat(L2);
|
|
16550
16643
|
}
|
|
16551
16644
|
for (let t5 = 0; t5 < p2; t5++) {
|
|
16552
16645
|
const e4 = t5 / p2, n3 = h2 * Math.cos(e4 * Math.PI / 2), i3 = c2 * Math.sin(e4 * Math.PI / 2) + d2;
|
|
16553
16646
|
for (let t6 = 0, e5 = M2.length; t6 < e5; t6++) {
|
|
16554
|
-
const e6 = A2(M2[t6],
|
|
16647
|
+
const e6 = A2(M2[t6], I2[t6], i3);
|
|
16555
16648
|
B2(e6.x, e6.y, -n3);
|
|
16556
16649
|
}
|
|
16557
16650
|
for (let t6 = 0, e5 = S2.length; t6 < e5; t6++) {
|
|
@@ -16576,7 +16669,7 @@ var Slide = function(t2) {
|
|
|
16576
16669
|
for (let t5 = p2 - 1; t5 >= 0; t5--) {
|
|
16577
16670
|
const e4 = t5 / p2, n3 = h2 * Math.cos(e4 * Math.PI / 2), i3 = c2 * Math.sin(e4 * Math.PI / 2) + d2;
|
|
16578
16671
|
for (let t6 = 0, e5 = M2.length; t6 < e5; t6++) {
|
|
16579
|
-
const e6 = A2(M2[t6],
|
|
16672
|
+
const e6 = A2(M2[t6], I2[t6], i3);
|
|
16580
16673
|
B2(e6.x, e6.y, l2 + n3);
|
|
16581
16674
|
}
|
|
16582
16675
|
for (let t6 = 0, e5 = S2.length; t6 < e5; t6++) {
|
|
@@ -16876,7 +16969,7 @@ var Slide = function(t2) {
|
|
|
16876
16969
|
e3.depth = e3.height !== void 0 ? e3.height : 50, e3.bevelThickness === void 0 && (e3.bevelThickness = 10), e3.bevelSize === void 0 && (e3.bevelSize = 8), e3.bevelEnabled === void 0 && (e3.bevelEnabled = false), super(i2, e3), this.type = "TextGeometry";
|
|
16877
16970
|
}
|
|
16878
16971
|
}
|
|
16879
|
-
class
|
|
16972
|
+
class Ch extends so {
|
|
16880
16973
|
constructor(t3 = 1, e3 = 0.4, n2 = 8, i2 = 6, r3 = 2 * Math.PI) {
|
|
16881
16974
|
super(), this.type = "TorusGeometry", this.parameters = { radius: t3, tube: e3, radialSegments: n2, tubularSegments: i2, arc: r3 }, n2 = Math.floor(n2), i2 = Math.floor(i2);
|
|
16882
16975
|
const o3 = [], s3 = [], a2 = [], l2 = [], u2 = new pi(), h2 = new pi(), c2 = new pi();
|
|
@@ -16893,10 +16986,10 @@ var Slide = function(t2) {
|
|
|
16893
16986
|
this.setIndex(o3), this.setAttribute("position", new Yr(s3, 3)), this.setAttribute("normal", new Yr(a2, 3)), this.setAttribute("uv", new Yr(l2, 2));
|
|
16894
16987
|
}
|
|
16895
16988
|
static fromJSON(t3) {
|
|
16896
|
-
return new
|
|
16989
|
+
return new Ch(t3.radius, t3.tube, t3.radialSegments, t3.tubularSegments, t3.arc);
|
|
16897
16990
|
}
|
|
16898
16991
|
}
|
|
16899
|
-
class
|
|
16992
|
+
class Ih extends so {
|
|
16900
16993
|
constructor(t3 = 1, e3 = 0.4, n2 = 64, i2 = 8, r3 = 2, o3 = 3) {
|
|
16901
16994
|
super(), this.type = "TorusKnotGeometry", this.parameters = { radius: t3, tube: e3, tubularSegments: n2, radialSegments: i2, p: r3, q: o3 }, n2 = Math.floor(n2), i2 = Math.floor(i2);
|
|
16902
16995
|
const s3 = [], a2 = [], l2 = [], u2 = [], h2 = new pi(), c2 = new pi(), d2 = new pi(), p2 = new pi(), f2 = new pi(), m2 = new pi(), g2 = new pi();
|
|
@@ -16920,7 +17013,7 @@ var Slide = function(t2) {
|
|
|
16920
17013
|
this.setIndex(s3), this.setAttribute("position", new Yr(a2, 3)), this.setAttribute("normal", new Yr(l2, 3)), this.setAttribute("uv", new Yr(u2, 2));
|
|
16921
17014
|
}
|
|
16922
17015
|
static fromJSON(t3) {
|
|
16923
|
-
return new
|
|
17016
|
+
return new Ih(t3.radius, t3.tube, t3.tubularSegments, t3.radialSegments, t3.p, t3.q);
|
|
16924
17017
|
}
|
|
16925
17018
|
}
|
|
16926
17019
|
class Oh extends so {
|
|
@@ -16999,7 +17092,7 @@ var Slide = function(t2) {
|
|
|
16999
17092
|
this.setAttribute("position", new Yr(e3, 3));
|
|
17000
17093
|
}
|
|
17001
17094
|
}
|
|
17002
|
-
var Nh = Object.freeze({ __proto__: null, BoxGeometry: Ao, BoxBufferGeometry: Ao, CircleGeometry: mu, CircleBufferGeometry: mu, ConeGeometry: vu, ConeBufferGeometry: vu, CylinderGeometry: gu, CylinderBufferGeometry: gu, DodecahedronGeometry: yu, DodecahedronBufferGeometry: yu, EdgesGeometry: Su, ExtrudeGeometry: yh, ExtrudeBufferGeometry: yh, IcosahedronGeometry: bh, IcosahedronBufferGeometry: bh, LatheGeometry: Th, LatheBufferGeometry: Th, OctahedronGeometry: wh, OctahedronBufferGeometry: wh, ParametricGeometry: Sh, ParametricBufferGeometry: Sh, PlaneGeometry: Xo, PlaneBufferGeometry: Xo, PolyhedronGeometry: _u, PolyhedronBufferGeometry: _u, RingGeometry: Eh, RingBufferGeometry: Eh, ShapeGeometry: Mh, ShapeBufferGeometry: Mh, SphereGeometry: Ah, SphereBufferGeometry: Ah, TetrahedronGeometry: Rh, TetrahedronBufferGeometry: Rh, TextGeometry: Ph, TextBufferGeometry: Ph, TorusGeometry:
|
|
17095
|
+
var Nh = Object.freeze({ __proto__: null, BoxGeometry: Ao, BoxBufferGeometry: Ao, CircleGeometry: mu, CircleBufferGeometry: mu, ConeGeometry: vu, ConeBufferGeometry: vu, CylinderGeometry: gu, CylinderBufferGeometry: gu, DodecahedronGeometry: yu, DodecahedronBufferGeometry: yu, EdgesGeometry: Su, ExtrudeGeometry: yh, ExtrudeBufferGeometry: yh, IcosahedronGeometry: bh, IcosahedronBufferGeometry: bh, LatheGeometry: Th, LatheBufferGeometry: Th, OctahedronGeometry: wh, OctahedronBufferGeometry: wh, ParametricGeometry: Sh, ParametricBufferGeometry: Sh, PlaneGeometry: Xo, PlaneBufferGeometry: Xo, PolyhedronGeometry: _u, PolyhedronBufferGeometry: _u, RingGeometry: Eh, RingBufferGeometry: Eh, ShapeGeometry: Mh, ShapeBufferGeometry: Mh, SphereGeometry: Ah, SphereBufferGeometry: Ah, TetrahedronGeometry: Rh, TetrahedronBufferGeometry: Rh, TextGeometry: Ph, TextBufferGeometry: Ph, TorusGeometry: Ch, TorusBufferGeometry: Ch, TorusKnotGeometry: Ih, TorusKnotBufferGeometry: Ih, TubeGeometry: Oh, TubeBufferGeometry: Oh, WireframeGeometry: Lh });
|
|
17003
17096
|
class Dh extends Rr {
|
|
17004
17097
|
constructor(t3) {
|
|
17005
17098
|
super(), this.type = "ShadowMaterial", this.color = new Dr(0), this.transparent = true, this.setValues(t3);
|
|
@@ -17009,7 +17102,7 @@ var Slide = function(t2) {
|
|
|
17009
17102
|
}
|
|
17010
17103
|
}
|
|
17011
17104
|
Dh.prototype.isShadowMaterial = true;
|
|
17012
|
-
class Fh extends
|
|
17105
|
+
class Fh extends Io {
|
|
17013
17106
|
constructor(t3) {
|
|
17014
17107
|
super(t3), this.type = "RawShaderMaterial";
|
|
17015
17108
|
}
|
|
@@ -17091,7 +17184,7 @@ var Slide = function(t2) {
|
|
|
17091
17184
|
}
|
|
17092
17185
|
}
|
|
17093
17186
|
Vh.prototype.isLineDashedMaterial = true;
|
|
17094
|
-
var Wh = Object.freeze({ __proto__: null, ShadowMaterial: Dh, SpriteMaterial: dl, RawShaderMaterial: Fh, ShaderMaterial:
|
|
17187
|
+
var Wh = Object.freeze({ __proto__: null, ShadowMaterial: Dh, SpriteMaterial: dl, RawShaderMaterial: Fh, ShaderMaterial: Io, PointsMaterial: ru, MeshPhysicalMaterial: Uh, MeshStandardMaterial: Bh, MeshPhongMaterial: kh, MeshToonMaterial: Gh, MeshNormalMaterial: Hh, MeshLambertMaterial: zh, MeshDepthMaterial: Xa, MeshDistanceMaterial: qa, MeshBasicMaterial: Fr, MeshMatcapMaterial: jh, LineDashedMaterial: Vh, LineBasicMaterial: ql, Material: Rr });
|
|
17095
17188
|
const Xh = { arraySlice: function(t3, e3, n2) {
|
|
17096
17189
|
return Xh.isTypedArray(t3) ? new t3.constructor(t3.subarray(e3, n2 !== void 0 ? n2 : t3.length)) : t3.slice(e3, n2);
|
|
17097
17190
|
}, convertArray: function(t3, e3, n2) {
|
|
@@ -18261,14 +18354,14 @@ var Slide = function(t2) {
|
|
|
18261
18354
|
}
|
|
18262
18355
|
}
|
|
18263
18356
|
Pc.prototype.isSpotLight = true;
|
|
18264
|
-
const
|
|
18357
|
+
const Cc = new Vi(), Ic = new pi(), Oc = new pi();
|
|
18265
18358
|
class Lc extends Ac {
|
|
18266
18359
|
constructor() {
|
|
18267
18360
|
super(new Lo(90, 1, 0.5, 500)), this._frameExtents = new ei(4, 2), this._viewportCount = 6, this._viewports = [new li(2, 1, 1, 1), new li(0, 1, 1, 1), new li(3, 1, 1, 1), new li(1, 1, 1, 1), new li(3, 0, 1, 1), new li(1, 0, 1, 1)], this._cubeDirections = [new pi(1, 0, 0), new pi(-1, 0, 0), new pi(0, 0, 1), new pi(0, 0, -1), new pi(0, 1, 0), new pi(0, -1, 0)], this._cubeUps = [new pi(0, 1, 0), new pi(0, 1, 0), new pi(0, 1, 0), new pi(0, 1, 0), new pi(0, 0, 1), new pi(0, 0, -1)];
|
|
18268
18361
|
}
|
|
18269
18362
|
updateMatrices(t3, e3 = 0) {
|
|
18270
18363
|
const n2 = this.camera, i2 = this.matrix, r3 = t3.distance || n2.far;
|
|
18271
|
-
r3 !== n2.far && (n2.far = r3, n2.updateProjectionMatrix()),
|
|
18364
|
+
r3 !== n2.far && (n2.far = r3, n2.updateProjectionMatrix()), Ic.setFromMatrixPosition(t3.matrixWorld), n2.position.copy(Ic), Oc.copy(n2.position), Oc.add(this._cubeDirections[e3]), n2.up.copy(this._cubeUps[e3]), n2.lookAt(Oc), n2.updateMatrixWorld(), i2.makeTranslation(-Ic.x, -Ic.y, -Ic.z), Cc.multiplyMatrices(n2.projectionMatrix, n2.matrixWorldInverse), this._frustum.setFromProjectionMatrix(Cc);
|
|
18272
18365
|
}
|
|
18273
18366
|
}
|
|
18274
18367
|
Lc.prototype.isPointLightShadow = true;
|
|
@@ -18894,7 +18987,7 @@ var Slide = function(t2) {
|
|
|
18894
18987
|
o3 = new Xl(s3, a2, e4), o3.instanceMatrix = new kr(new Float32Array(n3.array), 16), i3 !== void 0 && (o3.instanceColor = new kr(new Float32Array(i3.array), i3.itemSize));
|
|
18895
18988
|
break;
|
|
18896
18989
|
case "LOD":
|
|
18897
|
-
o3 = new
|
|
18990
|
+
o3 = new Cl();
|
|
18898
18991
|
break;
|
|
18899
18992
|
case "Line":
|
|
18900
18993
|
o3 = new Ql(l2(t3.geometry), u2(t3.material));
|
|
@@ -19538,7 +19631,7 @@ var Slide = function(t2) {
|
|
|
19538
19631
|
}
|
|
19539
19632
|
}
|
|
19540
19633
|
}
|
|
19541
|
-
const Ed = new RegExp("[\\[\\]\\.:\\/]", "g"), Md = "[^" + "\\[\\]\\.:\\/".replace("\\.", "") + "]", Ad = /((?:WC+[\/:])*)/.source.replace("WC", "[^\\[\\]\\.:\\/]"), Rd = /(WCOD+)?/.source.replace("WCOD", Md), Pd = /(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC", "[^\\[\\]\\.:\\/]"),
|
|
19634
|
+
const Ed = new RegExp("[\\[\\]\\.:\\/]", "g"), Md = "[^" + "\\[\\]\\.:\\/".replace("\\.", "") + "]", Ad = /((?:WC+[\/:])*)/.source.replace("WC", "[^\\[\\]\\.:\\/]"), Rd = /(WCOD+)?/.source.replace("WCOD", Md), Pd = /(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC", "[^\\[\\]\\.:\\/]"), Cd = /\.(WC+)(?:\[(.+)\])?/.source.replace("WC", "[^\\[\\]\\.:\\/]"), Id = new RegExp("^" + Ad + Rd + Pd + Cd + "$"), Od = ["material", "materials", "bones"];
|
|
19542
19635
|
class Ld {
|
|
19543
19636
|
constructor(t3, e3, n2) {
|
|
19544
19637
|
this.path = e3, this.parsedPath = n2 || Ld.parseTrackName(e3), this.node = Ld.findNode(t3, this.parsedPath.nodeName) || t3, this.rootNode = t3, this.getValue = this._getValue_unbound, this.setValue = this._setValue_unbound;
|
|
@@ -19550,7 +19643,7 @@ var Slide = function(t2) {
|
|
|
19550
19643
|
return t3.replace(/\s/g, "_").replace(Ed, "");
|
|
19551
19644
|
}
|
|
19552
19645
|
static parseTrackName(t3) {
|
|
19553
|
-
const e3 =
|
|
19646
|
+
const e3 = Id.exec(t3);
|
|
19554
19647
|
if (!e3)
|
|
19555
19648
|
throw new Error("PropertyBinding: Cannot parse trackName: " + t3);
|
|
19556
19649
|
const n2 = { nodeName: e3[2], objectName: e3[3], objectIndex: e3[4], propertyName: e3[5], propertyIndex: e3[6] }, i2 = n2.nodeName && n2.nodeName.lastIndexOf(".");
|
|
@@ -20759,7 +20852,7 @@ var Slide = function(t2) {
|
|
|
20759
20852
|
return r3 < 103 ? n2 : r3 > 142 ? (n2 |= 31744, n2 |= (r3 == 255 ? 0 : 1) && 8388607 & e3, n2) : r3 < 113 ? (i2 |= 2048, n2 |= (i2 >> 114 - r3) + (i2 >> 113 - r3 & 1), n2) : (n2 |= r3 - 112 << 10 | i2 >> 1, n2 += 1 & i2, n2);
|
|
20760
20853
|
}
|
|
20761
20854
|
}
|
|
20762
|
-
const
|
|
20855
|
+
const Cp = Math.pow(2, 8), Ip = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], Op = 5 + Ip.length, Lp = { [nn]: 0, [rn]: 1, [sn]: 2, [ln]: 3, [un]: 4, [hn]: 5, [on]: 6 }, Np = new Fr({ side: b, depthWrite: false, depthTest: false }), Dp = new Eo(new Ao(), Np), Fp = new Dc(), { _lodPlanes: Bp, _sizeLods: Up, _sigmas: kp } = Yp(), Gp = new Dr();
|
|
20763
20856
|
let Hp = null;
|
|
20764
20857
|
const zp = (1 + Math.sqrt(5)) / 2, jp = 1 / zp, Vp = [new pi(1, 1, 1), new pi(-1, 1, 1), new pi(1, 1, -1), new pi(-1, 1, -1), new pi(0, zp, jp), new pi(0, zp, -jp), new pi(jp, 0, zp), new pi(-jp, 0, zp), new pi(zp, jp, 0), new pi(-zp, jp, 0)];
|
|
20765
20858
|
function Wp(t3) {
|
|
@@ -20869,7 +20962,7 @@ var Slide = function(t2) {
|
|
|
20869
20962
|
return this._textureToCubeUV(t3, e3), this._applyPMREM(e3), this._cleanup(e3), e3;
|
|
20870
20963
|
}
|
|
20871
20964
|
_allocateTargets(t3) {
|
|
20872
|
-
const e3 = { magFilter: xt, minFilter: xt, generateMipmaps: false, type:
|
|
20965
|
+
const e3 = { magFilter: xt, minFilter: xt, generateMipmaps: false, type: Ct, format: qt, encoding: qp(t3) ? t3.encoding : sn, depthBuffer: false }, n2 = Zp(e3);
|
|
20873
20966
|
return n2.depthBuffer = !t3, this._pingPongRenderTarget = Zp(e3), n2;
|
|
20874
20967
|
}
|
|
20875
20968
|
_compileMaterial(t3) {
|
|
@@ -20894,7 +20987,7 @@ var Slide = function(t2) {
|
|
|
20894
20987
|
}
|
|
20895
20988
|
for (let e4 = 0; e4 < 6; e4++) {
|
|
20896
20989
|
const n3 = e4 % 3;
|
|
20897
|
-
n3 == 0 ? (r3.up.set(0, o3[e4], 0), r3.lookAt(s3[e4], 0, 0)) : n3 == 1 ? (r3.up.set(0, 0, o3[e4]), r3.lookAt(0, s3[e4], 0)) : (r3.up.set(0, o3[e4], 0), r3.lookAt(0, 0, s3[e4])), Jp(i2, n3 *
|
|
20990
|
+
n3 == 0 ? (r3.up.set(0, o3[e4], 0), r3.lookAt(s3[e4], 0, 0)) : n3 == 1 ? (r3.up.set(0, 0, o3[e4]), r3.lookAt(0, s3[e4], 0)) : (r3.up.set(0, o3[e4], 0), r3.lookAt(0, 0, s3[e4])), Jp(i2, n3 * Cp, e4 > 2 ? Cp : 0, Cp, Cp), a2.setRenderTarget(i2), c2 && a2.render(Dp, r3), a2.render(t3, r3);
|
|
20898
20991
|
}
|
|
20899
20992
|
a2.toneMapping = h2, a2.outputEncoding = u2, a2.autoClear = l2;
|
|
20900
20993
|
}
|
|
@@ -20902,7 +20995,7 @@ var Slide = function(t2) {
|
|
|
20902
20995
|
const n2 = this._renderer;
|
|
20903
20996
|
t3.isCubeTexture ? this._cubemapShader == null && (this._cubemapShader = Kp()) : this._equirectShader == null && (this._equirectShader = $p());
|
|
20904
20997
|
const i2 = t3.isCubeTexture ? this._cubemapShader : this._equirectShader, r3 = new Eo(Bp[0], i2), o3 = i2.uniforms;
|
|
20905
|
-
o3.envMap.value = t3, t3.isCubeTexture || o3.texelSize.value.set(1 / t3.image.width, 1 / t3.image.height), o3.inputEncoding.value = Lp[t3.encoding], o3.outputEncoding.value = Lp[e3.texture.encoding], Jp(e3, 0, 0, 3 *
|
|
20998
|
+
o3.envMap.value = t3, t3.isCubeTexture || o3.texelSize.value.set(1 / t3.image.width, 1 / t3.image.height), o3.inputEncoding.value = Lp[t3.encoding], o3.outputEncoding.value = Lp[e3.texture.encoding], Jp(e3, 0, 0, 3 * Cp, 2 * Cp), n2.setRenderTarget(e3), n2.render(r3, Fp);
|
|
20906
20999
|
}
|
|
20907
21000
|
_applyPMREM(t3) {
|
|
20908
21001
|
const e3 = this._renderer, n2 = e3.autoClear;
|
|
@@ -20932,11 +21025,11 @@ var Slide = function(t2) {
|
|
|
20932
21025
|
m2[t4] = m2[t4] / g2;
|
|
20933
21026
|
h2.envMap.value = t3.texture, h2.samples.value = f2, h2.weights.value = m2, h2.latitudinal.value = o3 === "latitudinal", s3 && (h2.poleAxis.value = s3), h2.dTheta.value = d2, h2.mipInt.value = 8 - n2, h2.inputEncoding.value = Lp[t3.texture.encoding], h2.outputEncoding.value = Lp[t3.texture.encoding];
|
|
20934
21027
|
const v2 = Up[i2];
|
|
20935
|
-
Jp(e3, 3 * Math.max(0,
|
|
21028
|
+
Jp(e3, 3 * Math.max(0, Cp - 2 * v2), (i2 === 0 ? 0 : 2 * Cp) + 2 * v2 * (i2 > 4 ? i2 - 8 + 4 : 0), 3 * v2, 2 * v2), a2.setRenderTarget(e3), a2.render(u2, Fp);
|
|
20936
21029
|
}
|
|
20937
21030
|
}
|
|
20938
21031
|
function qp(t3) {
|
|
20939
|
-
return t3 !== void 0 && t3.type ===
|
|
21032
|
+
return t3 !== void 0 && t3.type === Ct && (t3.encoding === nn || t3.encoding === rn || t3.encoding === on);
|
|
20940
21033
|
}
|
|
20941
21034
|
function Yp() {
|
|
20942
21035
|
const t3 = [], e3 = [], n2 = [];
|
|
@@ -20945,7 +21038,7 @@ var Slide = function(t2) {
|
|
|
20945
21038
|
const o3 = Math.pow(2, i2);
|
|
20946
21039
|
e3.push(o3);
|
|
20947
21040
|
let s3 = 1 / o3;
|
|
20948
|
-
r3 > 4 ? s3 =
|
|
21041
|
+
r3 > 4 ? s3 = Ip[r3 - 8 + 4 - 1] : r3 == 0 && (s3 = 0), n2.push(s3);
|
|
20949
21042
|
const a2 = 1 / (o3 - 1), l2 = -a2 / 2, u2 = 1 + a2 / 2, h2 = [l2, l2, u2, l2, u2, u2, l2, l2, u2, u2, l2, u2], c2 = 6, d2 = 6, p2 = 3, f2 = 2, m2 = 1, g2 = new Float32Array(p2 * d2 * c2), v2 = new Float32Array(f2 * d2 * c2), _2 = new Float32Array(m2 * d2 * c2);
|
|
20950
21043
|
for (let t4 = 0; t4 < c2; t4++) {
|
|
20951
21044
|
const e4 = t4 % 3 * 2 / 3 - 1, n3 = t4 > 2 ? 0 : -1, i3 = [e4, n3, 0, e4 + 2 / 3, n3, 0, e4 + 2 / 3, n3 + 1, 0, e4, n3, 0, e4 + 2 / 3, n3 + 1, 0, e4, n3 + 1, 0];
|
|
@@ -20959,7 +21052,7 @@ var Slide = function(t2) {
|
|
|
20959
21052
|
return { _lodPlanes: t3, _sizeLods: e3, _sigmas: n2 };
|
|
20960
21053
|
}
|
|
20961
21054
|
function Zp(t3) {
|
|
20962
|
-
const e3 = new ui(3 *
|
|
21055
|
+
const e3 = new ui(3 * Cp, 3 * Cp, t3);
|
|
20963
21056
|
return e3.texture.mapping = mt, e3.texture.name = "PMREM.cubeUv", e3.scissorTest = true, e3;
|
|
20964
21057
|
}
|
|
20965
21058
|
function Jp(t3, e3, n2, i2, r3) {
|
|
@@ -21106,10 +21199,10 @@ var Slide = function(t2) {
|
|
|
21106
21199
|
function Pf(t3, e3) {
|
|
21107
21200
|
return console.warn("THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead."), new nu(new Lh(t3.geometry), new ql({ color: e3 !== void 0 ? e3 : 16777215 }));
|
|
21108
21201
|
}
|
|
21109
|
-
function
|
|
21202
|
+
function Cf(t3) {
|
|
21110
21203
|
return console.warn("THREE.XHRLoader has been renamed to THREE.FileLoader."), new dc(t3);
|
|
21111
21204
|
}
|
|
21112
|
-
function
|
|
21205
|
+
function If(t3) {
|
|
21113
21206
|
return console.warn("THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader."), new vc(t3);
|
|
21114
21207
|
}
|
|
21115
21208
|
function Of(t3, e3, n2) {
|
|
@@ -21330,7 +21423,7 @@ var Slide = function(t2) {
|
|
|
21330
21423
|
}, set: function() {
|
|
21331
21424
|
console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."), this.setUsage(On);
|
|
21332
21425
|
} } }), kr.prototype.setDynamic = function(t3) {
|
|
21333
|
-
return console.warn("THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead."), this.setUsage(t3 === true ? On :
|
|
21426
|
+
return console.warn("THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead."), this.setUsage(t3 === true ? On : In), this;
|
|
21334
21427
|
}, kr.prototype.copyIndicesArray = function() {
|
|
21335
21428
|
console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.");
|
|
21336
21429
|
}, kr.prototype.setArray = function() {
|
|
@@ -21354,7 +21447,7 @@ var Slide = function(t2) {
|
|
|
21354
21447
|
} }, offsets: { get: function() {
|
|
21355
21448
|
return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."), this.groups;
|
|
21356
21449
|
} } }), ul.prototype.setDynamic = function(t3) {
|
|
21357
|
-
return console.warn("THREE.InterleavedBuffer: .setDynamic() has been deprecated. Use .setUsage() instead."), this.setUsage(t3 === true ? On :
|
|
21450
|
+
return console.warn("THREE.InterleavedBuffer: .setDynamic() has been deprecated. Use .setUsage() instead."), this.setUsage(t3 === true ? On : In), this;
|
|
21358
21451
|
}, ul.prototype.setArray = function() {
|
|
21359
21452
|
console.error("THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers");
|
|
21360
21453
|
}, yh.prototype.getArrays = function() {
|
|
@@ -21385,7 +21478,7 @@ var Slide = function(t2) {
|
|
|
21385
21478
|
return console.warn("THREE." + this.type + ": .stencilMask has been removed. Use .stencilFuncMask instead."), this.stencilFuncMask;
|
|
21386
21479
|
}, set: function(t3) {
|
|
21387
21480
|
console.warn("THREE." + this.type + ": .stencilMask has been removed. Use .stencilFuncMask instead."), this.stencilFuncMask = t3;
|
|
21388
|
-
} } }), Object.defineProperties(
|
|
21481
|
+
} } }), Object.defineProperties(Io.prototype, { derivatives: { get: function() {
|
|
21389
21482
|
return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."), this.extensions.derivatives;
|
|
21390
21483
|
}, set: function(t3) {
|
|
21391
21484
|
console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."), this.extensions.derivatives = t3;
|
|
@@ -21578,7 +21671,7 @@ var Slide = function(t2) {
|
|
|
21578
21671
|
this.mesh.position.z = 50, t3.add(this.mesh);
|
|
21579
21672
|
}
|
|
21580
21673
|
setTexture(t3, e3, n2, i2) {
|
|
21581
|
-
this.camera.updateAspect(n2, i2), this.geometry = new Xo(n2, i2, 1, 1), this.material = new
|
|
21674
|
+
this.camera.updateAspect(n2, i2), this.geometry = new Xo(n2, i2, 1, 1), this.material = new Io({ fragmentShader: this.fragmentShader, vertexShader: "\nvarying vec2 vUv;\nvoid main(){\n vUv = uv;\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}\n" }), this.material.uniforms = { width: { value: n2 }, height: { value: i2 }, texturePrev: { value: t3 }, textureNext: { value: e3 }, timePercent: { value: 0 } }, this.mesh.geometry = this.geometry, this.mesh.material = this.material;
|
|
21582
21675
|
}
|
|
21583
21676
|
updateAnimation(t3) {
|
|
21584
21677
|
this.material.uniforms.timePercent.value = t3;
|
|
@@ -21638,7 +21731,7 @@ var Slide = function(t2) {
|
|
|
21638
21731
|
}), { verticalSegments: o3, horizontalSegments: s3, segmentWidth: u2, segmentHeight: h2 };
|
|
21639
21732
|
}
|
|
21640
21733
|
initObject() {
|
|
21641
|
-
this.material = new
|
|
21734
|
+
this.material = new Io({ fragmentShader: this.fragmentShader, vertexShader: this.vertexShader, side: T });
|
|
21642
21735
|
}
|
|
21643
21736
|
setTexture(t3, e3, n2, i2) {
|
|
21644
21737
|
this.textureHeight = i2, this.textureWidth = n2, this.prevTexture = t3, this.nextTexture = e3, this.initObject();
|
|
@@ -21659,8 +21752,8 @@ var Slide = function(t2) {
|
|
|
21659
21752
|
var mm = n(25), gm = n.n(mm), vm = n(26), _m = n.n(vm);
|
|
21660
21753
|
var ym = n(27), xm = n.n(ym), bm = n(28), Tm = n.n(bm);
|
|
21661
21754
|
var wm = n(29), Sm = n.n(wm), Em = n(30), Mm = n.n(Em);
|
|
21662
|
-
var Am = n(31), Rm = n.n(Am), Pm = n(32),
|
|
21663
|
-
var
|
|
21755
|
+
var Am = n(31), Rm = n.n(Am), Pm = n(32), Cm = n.n(Pm);
|
|
21756
|
+
var Im = n(33), Om = n.n(Im), Lm = n(34), Nm = n.n(Lm);
|
|
21664
21757
|
var Dm = n(35), Fm = n.n(Dm), Bm = n(36), Um = n.n(Bm);
|
|
21665
21758
|
class km extends fm {
|
|
21666
21759
|
constructor() {
|
|
@@ -21819,7 +21912,7 @@ var Slide = function(t2) {
|
|
|
21819
21912
|
}
|
|
21820
21913
|
}, Vortex: class {
|
|
21821
21914
|
constructor() {
|
|
21822
|
-
this.duration = 4e3, this.geometry = new so(), this.material = new
|
|
21915
|
+
this.duration = 4e3, this.geometry = new so(), this.material = new Io({ fragmentShader: Tm.a, vertexShader: xm.a, side: T }), this.camera = new pm(), this.mesh = new Eo();
|
|
21823
21916
|
}
|
|
21824
21917
|
initData(t3, e3) {
|
|
21825
21918
|
const n2 = [], i2 = [], r3 = [], o3 = [], s3 = [], a2 = [], l2 = Math.ceil(124 * t3 / e3), u2 = t3 / 2, h2 = e3 / 2, c2 = t3 / l2, d2 = e3 / 124;
|
|
@@ -21853,7 +21946,7 @@ var Slide = function(t2) {
|
|
|
21853
21946
|
}
|
|
21854
21947
|
}, WindowShades: class {
|
|
21855
21948
|
constructor() {
|
|
21856
|
-
this.duration = 1600, this.geometry = new so(), this.material = new
|
|
21949
|
+
this.duration = 1600, this.geometry = new so(), this.material = new Io({ fragmentShader: Mm.a, vertexShader: Sm.a, side: T }), this.horizontalSegments = 16, this.meshToCameraDistance = 0, this.camera = new pm(), this.mesh = new Eo();
|
|
21857
21950
|
}
|
|
21858
21951
|
initData(t3, e3) {
|
|
21859
21952
|
const n2 = [], i2 = [], r3 = [], o3 = [], s3 = [], a2 = [], l2 = t3 / 2, u2 = e3 / 2, h2 = t3 / this.horizontalSegments;
|
|
@@ -21882,7 +21975,7 @@ var Slide = function(t2) {
|
|
|
21882
21975
|
}
|
|
21883
21976
|
}, Curtain: class extends fm {
|
|
21884
21977
|
constructor() {
|
|
21885
|
-
super(...arguments), this.duration = 6e3, this.fragmentShader =
|
|
21978
|
+
super(...arguments), this.duration = 6e3, this.fragmentShader = Cm.a, this.vertexShader = Rm.a, this.verticalSegments = 100;
|
|
21886
21979
|
}
|
|
21887
21980
|
extraAttributes() {
|
|
21888
21981
|
return { isLeft: { itemSize: 1, generator: (t3, e3) => [e3 < this.horizontalSegments() / 2 ? 1 : 0] } };
|
|
@@ -22096,7 +22189,7 @@ var Slide = function(t2) {
|
|
|
22096
22189
|
* @pixi/settings is licensed under the MIT License.
|
|
22097
22190
|
* http://www.opensource.org/licenses/mit-license
|
|
22098
22191
|
*/
|
|
22099
|
-
var
|
|
22192
|
+
var Cg, Ig, Og, Lg, Ng, Dg, Fg, Bg, Ug, kg, Gg, Hg, zg, jg, Vg, Wg, Xg, qg, Yg, Zg = function(t3) {
|
|
22100
22193
|
var e3 = { userAgent: "", platform: "", maxTouchPoints: 0 };
|
|
22101
22194
|
t3 || typeof navigator == "undefined" ? typeof t3 == "string" ? e3.userAgent = t3 : t3 && t3.userAgent && (e3 = { userAgent: t3.userAgent, platform: t3.platform, maxTouchPoints: t3.maxTouchPoints || 0 }) : e3 = { userAgent: navigator.userAgent, platform: navigator.platform, maxTouchPoints: navigator.maxTouchPoints || 0 };
|
|
22102
22195
|
var n2 = e3.userAgent, i2 = n2.split("[FBAN");
|
|
@@ -22110,9 +22203,9 @@ var Slide = function(t2) {
|
|
|
22110
22203
|
}(self.navigator);
|
|
22111
22204
|
!function(t3) {
|
|
22112
22205
|
t3[t3.WEBGL_LEGACY = 0] = "WEBGL_LEGACY", t3[t3.WEBGL = 1] = "WEBGL", t3[t3.WEBGL2 = 2] = "WEBGL2";
|
|
22113
|
-
}(Ig || (Ig = {})), function(t3) {
|
|
22114
|
-
t3[t3.UNKNOWN = 0] = "UNKNOWN", t3[t3.WEBGL = 1] = "WEBGL", t3[t3.CANVAS = 2] = "CANVAS";
|
|
22115
22206
|
}(Cg || (Cg = {})), function(t3) {
|
|
22207
|
+
t3[t3.UNKNOWN = 0] = "UNKNOWN", t3[t3.WEBGL = 1] = "WEBGL", t3[t3.CANVAS = 2] = "CANVAS";
|
|
22208
|
+
}(Ig || (Ig = {})), function(t3) {
|
|
22116
22209
|
t3[t3.COLOR = 16384] = "COLOR", t3[t3.DEPTH = 256] = "DEPTH", t3[t3.STENCIL = 1024] = "STENCIL";
|
|
22117
22210
|
}(Og || (Og = {})), function(t3) {
|
|
22118
22211
|
t3[t3.NORMAL = 0] = "NORMAL", t3[t3.ADD = 1] = "ADD", t3[t3.MULTIPLY = 2] = "MULTIPLY", t3[t3.SCREEN = 3] = "SCREEN", t3[t3.OVERLAY = 4] = "OVERLAY", t3[t3.DARKEN = 5] = "DARKEN", t3[t3.LIGHTEN = 6] = "LIGHTEN", t3[t3.COLOR_DODGE = 7] = "COLOR_DODGE", t3[t3.COLOR_BURN = 8] = "COLOR_BURN", t3[t3.HARD_LIGHT = 9] = "HARD_LIGHT", t3[t3.SOFT_LIGHT = 10] = "SOFT_LIGHT", t3[t3.DIFFERENCE = 11] = "DIFFERENCE", t3[t3.EXCLUSION = 12] = "EXCLUSION", t3[t3.HUE = 13] = "HUE", t3[t3.SATURATION = 14] = "SATURATION", t3[t3.COLOR = 15] = "COLOR", t3[t3.LUMINOSITY = 16] = "LUMINOSITY", t3[t3.NORMAL_NPM = 17] = "NORMAL_NPM", t3[t3.ADD_NPM = 18] = "ADD_NPM", t3[t3.SCREEN_NPM = 19] = "SCREEN_NPM", t3[t3.NONE = 20] = "NONE", t3[t3.SRC_OVER = 0] = "SRC_OVER", t3[t3.SRC_IN = 21] = "SRC_IN", t3[t3.SRC_OUT = 22] = "SRC_OUT", t3[t3.SRC_ATOP = 23] = "SRC_ATOP", t3[t3.DST_OVER = 24] = "DST_OVER", t3[t3.DST_IN = 25] = "DST_IN", t3[t3.DST_OUT = 26] = "DST_OUT", t3[t3.DST_ATOP = 27] = "DST_ATOP", t3[t3.ERASE = 26] = "ERASE", t3[t3.SUBTRACT = 28] = "SUBTRACT", t3[t3.XOR = 29] = "XOR";
|
|
@@ -22250,10 +22343,10 @@ var Slide = function(t2) {
|
|
|
22250
22343
|
var e3 = t3.toString(16);
|
|
22251
22344
|
return "#" + (e3 = "000000".substr(0, 6 - e3.length) + e3);
|
|
22252
22345
|
}
|
|
22253
|
-
function
|
|
22346
|
+
function Cv(t3) {
|
|
22254
22347
|
return typeof t3 == "string" && (t3 = Av[t3.toLowerCase()] || t3)[0] === "#" && (t3 = t3.substr(1)), parseInt(t3, 16);
|
|
22255
22348
|
}
|
|
22256
|
-
function
|
|
22349
|
+
function Iv(t3) {
|
|
22257
22350
|
return (255 * t3[0] << 16) + (255 * t3[1] << 8) + (255 * t3[2] | 0);
|
|
22258
22351
|
}
|
|
22259
22352
|
var Ov = function() {
|
|
@@ -22776,8 +22869,8 @@ var Slide = function(t2) {
|
|
|
22776
22869
|
}, t3.prototype.addFramePad = function(t4, e3, n2, i2, r3, o3) {
|
|
22777
22870
|
t4 -= r3, e3 -= o3, n2 += r3, i2 += o3, this.minX = this.minX < t4 ? this.minX : t4, this.maxX = this.maxX > n2 ? this.maxX : n2, this.minY = this.minY < e3 ? this.minY : e3, this.maxY = this.maxY > i2 ? this.maxY : i2;
|
|
22778
22871
|
}, t3;
|
|
22779
|
-
}(),
|
|
22780
|
-
return (
|
|
22872
|
+
}(), C_ = function(t3, e3) {
|
|
22873
|
+
return (C_ = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, e4) {
|
|
22781
22874
|
t4.__proto__ = e4;
|
|
22782
22875
|
} || function(t4, e4) {
|
|
22783
22876
|
for (var n2 in e4)
|
|
@@ -22798,18 +22891,18 @@ var Slide = function(t2) {
|
|
|
22798
22891
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
22799
22892
|
and limitations under the License.
|
|
22800
22893
|
***************************************************************************** */
|
|
22801
|
-
function
|
|
22894
|
+
function I_(t3, e3) {
|
|
22802
22895
|
function n2() {
|
|
22803
22896
|
this.constructor = t3;
|
|
22804
22897
|
}
|
|
22805
|
-
|
|
22898
|
+
C_(t3, e3), t3.prototype = e3 === null ? Object.create(e3) : (n2.prototype = e3.prototype, new n2());
|
|
22806
22899
|
}
|
|
22807
22900
|
var O_, L_, N_, D_, F_, B_, U_, k_, G_, H_, z_, j_, V_, W_, X_, q_, Y_, Z_, J_, $_ = function(t3) {
|
|
22808
22901
|
function e3() {
|
|
22809
22902
|
var e4 = t3.call(this) || this;
|
|
22810
22903
|
return e4.tempDisplayObjectParent = null, e4.transform = new R_(), e4.alpha = 1, e4.visible = true, e4.renderable = true, e4.parent = null, e4.worldAlpha = 1, e4._lastSortedIndex = 0, e4._zIndex = 0, e4.filterArea = null, e4.filters = null, e4._enabledFilters = null, e4._bounds = new P_(), e4._localBounds = null, e4._boundsID = 0, e4._boundsRect = null, e4._localBoundsRect = null, e4._mask = null, e4._maskRefCount = 0, e4._destroyed = false, e4.isSprite = false, e4.isMask = false, e4;
|
|
22811
22904
|
}
|
|
22812
|
-
return
|
|
22905
|
+
return I_(e3, t3), e3.mixin = function(t4) {
|
|
22813
22906
|
for (var n2 = Object.keys(t4), i2 = 0; i2 < n2.length; ++i2) {
|
|
22814
22907
|
var r3 = n2[i2];
|
|
22815
22908
|
Object.defineProperty(e3.prototype, r3, Object.getOwnPropertyDescriptor(t4, r3));
|
|
@@ -22913,7 +23006,7 @@ var Slide = function(t2) {
|
|
|
22913
23006
|
var e4 = t3 !== null && t3.apply(this, arguments) || this;
|
|
22914
23007
|
return e4.sortDirty = null, e4;
|
|
22915
23008
|
}
|
|
22916
|
-
return
|
|
23009
|
+
return I_(e3, t3), e3;
|
|
22917
23010
|
}($_);
|
|
22918
23011
|
function Q_(t3, e3) {
|
|
22919
23012
|
return t3.zIndex === e3.zIndex ? t3._lastSortedIndex - e3._lastSortedIndex : t3.zIndex - e3.zIndex;
|
|
@@ -22962,7 +23055,7 @@ var Slide = function(t2) {
|
|
|
22962
23055
|
var e4 = t3.call(this) || this;
|
|
22963
23056
|
return e4.children = [], e4.sortableChildren = mv.SORTABLE_CHILDREN, e4.sortDirty = false, e4;
|
|
22964
23057
|
}
|
|
22965
|
-
return
|
|
23058
|
+
return I_(e3, t3), e3.prototype.onChildrenChange = function(t4) {
|
|
22966
23059
|
}, e3.prototype.addChild = function() {
|
|
22967
23060
|
for (var t4 = arguments, e4 = [], n2 = 0; n2 < arguments.length; n2++)
|
|
22968
23061
|
e4[n2] = t4[n2];
|
|
@@ -24001,7 +24094,7 @@ var Slide = function(t2) {
|
|
|
24001
24094
|
}, e3.test = function(t4) {
|
|
24002
24095
|
return typeof t4 == "string" || t4 instanceof HTMLImageElement;
|
|
24003
24096
|
}, e3;
|
|
24004
|
-
}(My),
|
|
24097
|
+
}(My), Cy = function(t3) {
|
|
24005
24098
|
function e3(e4, n2) {
|
|
24006
24099
|
var i2 = this;
|
|
24007
24100
|
return n2 = n2 || {}, (i2 = t3.call(this, document.createElement("canvas")) || this)._width = 0, i2._height = 0, i2.svg = e4, i2.scale = n2.scale || 1, i2._overrideWidth = n2.width, i2._overrideHeight = n2.height, i2._resolve = null, i2._crossorigin = n2.crossorigin, i2._load = null, n2.autoLoad !== false && i2.load(), i2;
|
|
@@ -24041,7 +24134,7 @@ var Slide = function(t2) {
|
|
|
24041
24134
|
}, e3.test = function(t4, n2) {
|
|
24042
24135
|
return n2 === "svg" || typeof t4 == "string" && /^data:image\/svg\+xml(;(charset=utf8|utf8))?;base64/.test(t4) || typeof t4 == "string" && e3.SVG_XML.test(t4);
|
|
24043
24136
|
}, e3.SVG_XML = /^(<\?xml[^?]+\?>)?\s*(<!--[^(-->)]*-->)?\s*\<svg/m, e3.SVG_SIZE = /<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i, e3;
|
|
24044
|
-
}(My),
|
|
24137
|
+
}(My), Iy = function(t3) {
|
|
24045
24138
|
function e3(n2, i2) {
|
|
24046
24139
|
var r3 = this;
|
|
24047
24140
|
if (i2 = i2 || {}, !(n2 instanceof HTMLVideoElement)) {
|
|
@@ -24110,8 +24203,8 @@ var Slide = function(t2) {
|
|
|
24110
24203
|
return !!self.createImageBitmap && t4 instanceof ImageBitmap;
|
|
24111
24204
|
}, e3;
|
|
24112
24205
|
}(My);
|
|
24113
|
-
my.push(Py, Oy, Ay,
|
|
24114
|
-
var Ly = { __proto__: null, Resource: xy, BaseImageResource: My, INSTALLED: my, autoDetectResource: gy, AbstractMultiResource: Sy, ArrayResource: Ey, BufferResource: by, CanvasResource: Ay, CubeResource: Ry, ImageResource: Py, SVGResource:
|
|
24206
|
+
my.push(Py, Oy, Ay, Iy, Cy, by, Ry, Ey);
|
|
24207
|
+
var Ly = { __proto__: null, Resource: xy, BaseImageResource: My, INSTALLED: my, autoDetectResource: gy, AbstractMultiResource: Sy, ArrayResource: Ey, BufferResource: by, CanvasResource: Ay, CubeResource: Ry, ImageResource: Py, SVGResource: Cy, VideoResource: Iy, ImageBitmapResource: Oy }, Ny = function(t3) {
|
|
24115
24208
|
function e3() {
|
|
24116
24209
|
return t3 !== null && t3.apply(this, arguments) || this;
|
|
24117
24210
|
}
|
|
@@ -25122,7 +25215,7 @@ var Slide = function(t2) {
|
|
|
25122
25215
|
return t3.type === "vec4" && t3.size === 1;
|
|
25123
25216
|
}, code: function(t3) {
|
|
25124
25217
|
return '\n cv = ud["' + t3 + '"].value;\n v = uv["' + t3 + '"];\n\n if(cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4f(ud["' + t3 + '"].location, v[0], v[1], v[2], v[3])\n }';
|
|
25125
|
-
} }],
|
|
25218
|
+
} }], Cx = { float: "\n if (cv !== v)\n {\n cu.value = v;\n gl.uniform1f(location, v);\n }", vec2: "\n if (cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2f(location, v[0], v[1])\n }", vec3: "\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3f(location, v[0], v[1], v[2])\n }", vec4: "\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4f(location, v[0], v[1], v[2], v[3]);\n }", int: "\n if (cv !== v)\n {\n cu.value = v;\n\n gl.uniform1i(location, v);\n }", ivec2: "\n if (cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2i(location, v[0], v[1]);\n }", ivec3: "\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3i(location, v[0], v[1], v[2]);\n }", ivec4: "\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4i(location, v[0], v[1], v[2], v[3]);\n }", uint: "\n if (cv !== v)\n {\n cu.value = v;\n\n gl.uniform1ui(location, v);\n }", uvec2: "\n if (cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2ui(location, v[0], v[1]);\n }", uvec3: "\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3ui(location, v[0], v[1], v[2]);\n }", uvec4: "\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4ui(location, v[0], v[1], v[2], v[3]);\n }", bool: "\n if (cv !== v)\n {\n cu.value = v;\n gl.uniform1i(location, v);\n }", bvec2: "\n if (cv[0] != v[0] || cv[1] != v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2i(location, v[0], v[1]);\n }", bvec3: "\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3i(location, v[0], v[1], v[2]);\n }", bvec4: "\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4i(location, v[0], v[1], v[2], v[3]);\n }", mat2: "gl.uniformMatrix2fv(location, false, v)", mat3: "gl.uniformMatrix3fv(location, false, v)", mat4: "gl.uniformMatrix4fv(location, false, v)", sampler2D: "gl.uniform1i(location, v)", samplerCube: "gl.uniform1i(location, v)", sampler2DArray: "gl.uniform1i(location, v)" }, Ix = { float: "gl.uniform1fv(location, v)", vec2: "gl.uniform2fv(location, v)", vec3: "gl.uniform3fv(location, v)", vec4: "gl.uniform4fv(location, v)", mat4: "gl.uniformMatrix4fv(location, false, v)", mat3: "gl.uniformMatrix3fv(location, false, v)", mat2: "gl.uniformMatrix2fv(location, false, v)", int: "gl.uniform1iv(location, v)", ivec2: "gl.uniform2iv(location, v)", ivec3: "gl.uniform3iv(location, v)", ivec4: "gl.uniform4iv(location, v)", uint: "gl.uniform1uiv(location, v)", uvec2: "gl.uniform2uiv(location, v)", uvec3: "gl.uniform3uiv(location, v)", uvec4: "gl.uniform4uiv(location, v)", bool: "gl.uniform1iv(location, v)", bvec2: "gl.uniform2iv(location, v)", bvec3: "gl.uniform3iv(location, v)", bvec4: "gl.uniform4iv(location, v)", sampler2D: "gl.uniform1iv(location, v)", samplerCube: "gl.uniform1iv(location, v)", sampler2DArray: "gl.uniform1iv(location, v)" };
|
|
25126
25219
|
var Ox, Lx = ["precision mediump float;", "void main(void){", "float test = 0.1;", "%forloop%", "gl_FragColor = vec4(0.0);", "}"].join("\n");
|
|
25127
25220
|
function Nx(t3) {
|
|
25128
25221
|
for (var e3 = "", n2 = 0; n2 < t3; ++n2)
|
|
@@ -25579,7 +25672,7 @@ var Slide = function(t2) {
|
|
|
25579
25672
|
break;
|
|
25580
25673
|
}
|
|
25581
25674
|
if (!a2) {
|
|
25582
|
-
var u2 = (o3.size === 1 ?
|
|
25675
|
+
var u2 = (o3.size === 1 ? Cx : Ix)[o3.type].replace("location", 'ud["' + r3 + '"].location');
|
|
25583
25676
|
i2.push('\n cu = ud["' + r3 + '"];\n cv = cu.value;\n v = uv["' + r3 + '"];\n ' + u2 + ";");
|
|
25584
25677
|
}
|
|
25585
25678
|
} else
|
|
@@ -26134,15 +26227,15 @@ var Slide = function(t2) {
|
|
|
26134
26227
|
return Zv("6.0.0", "PIXI.systems." + t3 + " has moved to PIXI." + t3), Ly[t3];
|
|
26135
26228
|
} });
|
|
26136
26229
|
};
|
|
26137
|
-
for (var
|
|
26138
|
-
Pb(
|
|
26139
|
-
var
|
|
26140
|
-
Object.defineProperty(
|
|
26230
|
+
for (var Cb in Ly)
|
|
26231
|
+
Pb(Cb);
|
|
26232
|
+
var Ib = {}, Ob = function(t3) {
|
|
26233
|
+
Object.defineProperty(Ib, t3, { get: function() {
|
|
26141
26234
|
return Zv("6.0.0", "PIXI.resources." + t3 + " has moved to PIXI." + t3), db[t3];
|
|
26142
26235
|
} });
|
|
26143
26236
|
};
|
|
26144
|
-
for (var
|
|
26145
|
-
Ob(
|
|
26237
|
+
for (var Cb in db)
|
|
26238
|
+
Ob(Cb);
|
|
26146
26239
|
/*!
|
|
26147
26240
|
* @pixi/app - v6.2.0
|
|
26148
26241
|
* Compiled Mon, 01 Nov 2021 16:52:10 UTC
|
|
@@ -27031,7 +27124,7 @@ var Slide = function(t2) {
|
|
|
27031
27124
|
}, t3;
|
|
27032
27125
|
}();
|
|
27033
27126
|
Xb.setExtensionXhrType("ktx", Xb.XHR_RESPONSE_TYPE.BUFFER);
|
|
27034
|
-
var
|
|
27127
|
+
var CT = [171, 75, 84, 88, 32, 49, 49, 187, 13, 10, 26, 10], IT = 12, OT = 16, LT = 24, NT = 28, DT = 36, FT = 40, BT = 44, UT = 48, kT = 52, GT = 56, HT = 60, zT = ((ST = {})[iv.UNSIGNED_BYTE] = 1, ST[iv.UNSIGNED_SHORT] = 2, ST[iv.FLOAT] = 4, ST[iv.HALF_FLOAT] = 8, ST), jT = ((ET = {})[ev.RGBA] = 4, ET[ev.RGB] = 3, ET[ev.LUMINANCE] = 1, ET[ev.LUMINANCE_ALPHA] = 2, ET[ev.ALPHA] = 1, ET), VT = ((MT = {})[iv.UNSIGNED_SHORT_4_4_4_4] = 2, MT[iv.UNSIGNED_SHORT_5_5_5_1] = 2, MT[iv.UNSIGNED_SHORT_5_6_5] = 2, MT), WT = function() {
|
|
27035
27128
|
function t3() {
|
|
27036
27129
|
}
|
|
27037
27130
|
return t3.use = function(e3, n2) {
|
|
@@ -27047,7 +27140,7 @@ var Slide = function(t2) {
|
|
|
27047
27140
|
var i2 = new DataView(n2);
|
|
27048
27141
|
if (!t3.validate(e3, i2))
|
|
27049
27142
|
return null;
|
|
27050
|
-
var r3 = i2.getUint32(
|
|
27143
|
+
var r3 = i2.getUint32(IT, true) === 67305985, o3 = i2.getUint32(OT, r3), s3 = i2.getUint32(LT, r3), a2 = i2.getUint32(NT, r3), l2 = i2.getUint32(DT, r3), u2 = i2.getUint32(FT, r3) || 1, h2 = i2.getUint32(BT, r3) || 1, c2 = i2.getUint32(UT, r3) || 1, d2 = i2.getUint32(kT, r3), p2 = i2.getUint32(GT, r3), f2 = i2.getUint32(HT, r3);
|
|
27051
27144
|
if (u2 === 0 || h2 !== 1)
|
|
27052
27145
|
throw new Error("Only 2D textures are supported");
|
|
27053
27146
|
if (d2 !== 1)
|
|
@@ -27059,8 +27152,8 @@ var Slide = function(t2) {
|
|
|
27059
27152
|
throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");
|
|
27060
27153
|
for (var x2 = y2 * m2, b2 = l2, T2 = u2, w2 = g2, S2 = v2, E2 = 64 + f2, M2 = 0; M2 < p2; M2++) {
|
|
27061
27154
|
for (var A2 = i2.getUint32(E2, r3), R2 = E2 + 4, P2 = 0; P2 < c2; P2++) {
|
|
27062
|
-
var
|
|
27063
|
-
|
|
27155
|
+
var C2 = _2[P2];
|
|
27156
|
+
C2 || (C2 = _2[P2] = new Array(p2)), C2[M2] = { levelID: M2, levelWidth: p2 > 1 ? b2 : w2, levelHeight: p2 > 1 ? T2 : S2, levelBuffer: new Uint8Array(n2, R2, x2) }, R2 += x2;
|
|
27064
27157
|
}
|
|
27065
27158
|
E2 = (E2 += A2 + 4) % 4 != 0 ? E2 + 4 - E2 % 4 : E2, x2 = (w2 = (b2 = b2 >> 1 || 1) + 4 - 1 & -4) * (S2 = (T2 = T2 >> 1 || 1) + 4 - 1 & -4) * m2;
|
|
27066
27159
|
}
|
|
@@ -27070,8 +27163,8 @@ var Slide = function(t2) {
|
|
|
27070
27163
|
return new hT(null, { format: a2, width: l2, height: u2, levels: p2, levelBuffers: t4 });
|
|
27071
27164
|
});
|
|
27072
27165
|
}, t3.validate = function(t4, e3) {
|
|
27073
|
-
for (var n2 = 0; n2 <
|
|
27074
|
-
if (e3.getUint8(n2) !==
|
|
27166
|
+
for (var n2 = 0; n2 < CT.length; n2++)
|
|
27167
|
+
if (e3.getUint8(n2) !== CT[n2])
|
|
27075
27168
|
return console.error(t4 + " is not a valid *.ktx file!"), false;
|
|
27076
27169
|
return true;
|
|
27077
27170
|
}, t3;
|
|
@@ -27371,19 +27464,19 @@ var Slide = function(t2) {
|
|
|
27371
27464
|
}
|
|
27372
27465
|
var d2 = e4.points, p2 = i2.length / 2, f2 = i2.length, m2 = d2.length / 2, g2 = o3.width / 2, v2 = g2 * g2, _2 = o3.miterLimit * o3.miterLimit, y2 = i2[0], x2 = i2[1], b2 = i2[2], T2 = i2[3], w2 = 0, S2 = 0, E2 = -(x2 - T2), M2 = y2 - b2, A2 = 0, R2 = 0, P2 = Math.sqrt(E2 * E2 + M2 * M2);
|
|
27373
27466
|
E2 /= P2, M2 /= P2, E2 *= g2, M2 *= g2;
|
|
27374
|
-
var
|
|
27375
|
-
l2 || (o3.cap === ZT.ROUND ? f2 += uw(y2 - E2 * (
|
|
27467
|
+
var C2 = o3.alignment, I2 = 2 * (1 - C2), O2 = 2 * C2;
|
|
27468
|
+
l2 || (o3.cap === ZT.ROUND ? f2 += uw(y2 - E2 * (I2 - O2) * 0.5, x2 - M2 * (I2 - O2) * 0.5, y2 - E2 * I2, x2 - M2 * I2, y2 + E2 * O2, x2 + M2 * O2, d2, true) + 2 : o3.cap === ZT.SQUARE && (f2 += lw(y2, x2, E2, M2, I2, O2, true, d2))), d2.push(y2 - E2 * I2, x2 - M2 * I2), d2.push(y2 + E2 * O2, x2 + M2 * O2);
|
|
27376
27469
|
for (var L2 = 1; L2 < p2 - 1; ++L2) {
|
|
27377
27470
|
y2 = i2[2 * (L2 - 1)], x2 = i2[2 * (L2 - 1) + 1], b2 = i2[2 * L2], T2 = i2[2 * L2 + 1], w2 = i2[2 * (L2 + 1)], S2 = i2[2 * (L2 + 1) + 1], E2 = -(x2 - T2), M2 = y2 - b2, E2 /= P2 = Math.sqrt(E2 * E2 + M2 * M2), M2 /= P2, E2 *= g2, M2 *= g2, A2 = -(T2 - S2), R2 = b2 - w2, A2 /= P2 = Math.sqrt(A2 * A2 + R2 * R2), R2 /= P2, A2 *= g2, R2 *= g2;
|
|
27378
27471
|
var N2 = b2 - y2, D2 = x2 - T2, F2 = b2 - w2, B2 = S2 - T2, U2 = D2 * F2 - B2 * N2, k2 = U2 < 0;
|
|
27379
27472
|
if (Math.abs(U2) < 0.1)
|
|
27380
|
-
d2.push(b2 - E2 *
|
|
27473
|
+
d2.push(b2 - E2 * I2, T2 - M2 * I2), d2.push(b2 + E2 * O2, T2 + M2 * O2);
|
|
27381
27474
|
else {
|
|
27382
|
-
var G2 = (-E2 + y2) * (-M2 + T2) - (-E2 + b2) * (-M2 + x2), H2 = (-A2 + w2) * (-R2 + T2) - (-A2 + b2) * (-R2 + S2), z2 = (N2 * H2 - F2 * G2) / U2, j2 = (B2 * G2 - D2 * H2) / U2, V2 = (z2 - b2) * (z2 - b2) + (j2 - T2) * (j2 - T2), W2 = b2 + (z2 - b2) *
|
|
27383
|
-
V2 <= Math.min(N2 * N2 + D2 * D2, F2 * F2 + B2 * B2) + Z2 * Z2 * v2 ? o3.join === YT.BEVEL || V2 / v2 > _2 ? (k2 ? (d2.push(W2, X2), d2.push(b2 + E2 * O2, T2 + M2 * O2), d2.push(W2, X2), d2.push(b2 + A2 * O2, T2 + R2 * O2)) : (d2.push(b2 - E2 *
|
|
27475
|
+
var G2 = (-E2 + y2) * (-M2 + T2) - (-E2 + b2) * (-M2 + x2), H2 = (-A2 + w2) * (-R2 + T2) - (-A2 + b2) * (-R2 + S2), z2 = (N2 * H2 - F2 * G2) / U2, j2 = (B2 * G2 - D2 * H2) / U2, V2 = (z2 - b2) * (z2 - b2) + (j2 - T2) * (j2 - T2), W2 = b2 + (z2 - b2) * I2, X2 = T2 + (j2 - T2) * I2, q2 = b2 - (z2 - b2) * O2, Y2 = T2 - (j2 - T2) * O2, Z2 = k2 ? I2 : O2;
|
|
27476
|
+
V2 <= Math.min(N2 * N2 + D2 * D2, F2 * F2 + B2 * B2) + Z2 * Z2 * v2 ? o3.join === YT.BEVEL || V2 / v2 > _2 ? (k2 ? (d2.push(W2, X2), d2.push(b2 + E2 * O2, T2 + M2 * O2), d2.push(W2, X2), d2.push(b2 + A2 * O2, T2 + R2 * O2)) : (d2.push(b2 - E2 * I2, T2 - M2 * I2), d2.push(q2, Y2), d2.push(b2 - A2 * I2, T2 - R2 * I2), d2.push(q2, Y2)), f2 += 2) : o3.join === YT.ROUND ? k2 ? (d2.push(W2, X2), d2.push(b2 + E2 * O2, T2 + M2 * O2), f2 += uw(b2, T2, b2 + E2 * O2, T2 + M2 * O2, b2 + A2 * O2, T2 + R2 * O2, d2, true) + 4, d2.push(W2, X2), d2.push(b2 + A2 * O2, T2 + R2 * O2)) : (d2.push(b2 - E2 * I2, T2 - M2 * I2), d2.push(q2, Y2), f2 += uw(b2, T2, b2 - E2 * I2, T2 - M2 * I2, b2 - A2 * I2, T2 - R2 * I2, d2, false) + 4, d2.push(b2 - A2 * I2, T2 - R2 * I2), d2.push(q2, Y2)) : (d2.push(W2, X2), d2.push(q2, Y2)) : (d2.push(b2 - E2 * I2, T2 - M2 * I2), d2.push(b2 + E2 * O2, T2 + M2 * O2), o3.join === YT.BEVEL || V2 / v2 > _2 || (o3.join === YT.ROUND ? f2 += k2 ? uw(b2, T2, b2 + E2 * O2, T2 + M2 * O2, b2 + A2 * O2, T2 + R2 * O2, d2, true) + 2 : uw(b2, T2, b2 - E2 * I2, T2 - M2 * I2, b2 - A2 * I2, T2 - R2 * I2, d2, false) + 2 : (k2 ? (d2.push(q2, Y2), d2.push(q2, Y2)) : (d2.push(W2, X2), d2.push(W2, X2)), f2 += 2)), d2.push(b2 - A2 * I2, T2 - R2 * I2), d2.push(b2 + A2 * O2, T2 + R2 * O2), f2 += 2);
|
|
27384
27477
|
}
|
|
27385
27478
|
}
|
|
27386
|
-
y2 = i2[2 * (p2 - 2)], x2 = i2[2 * (p2 - 2) + 1], b2 = i2[2 * (p2 - 1)], E2 = -(x2 - (T2 = i2[2 * (p2 - 1) + 1])), M2 = y2 - b2, E2 /= P2 = Math.sqrt(E2 * E2 + M2 * M2), M2 /= P2, E2 *= g2, M2 *= g2, d2.push(b2 - E2 *
|
|
27479
|
+
y2 = i2[2 * (p2 - 2)], x2 = i2[2 * (p2 - 2) + 1], b2 = i2[2 * (p2 - 1)], E2 = -(x2 - (T2 = i2[2 * (p2 - 1) + 1])), M2 = y2 - b2, E2 /= P2 = Math.sqrt(E2 * E2 + M2 * M2), M2 /= P2, E2 *= g2, M2 *= g2, d2.push(b2 - E2 * I2, T2 - M2 * I2), d2.push(b2 + E2 * O2, T2 + M2 * O2), l2 || (o3.cap === ZT.ROUND ? f2 += uw(b2 - E2 * (I2 - O2) * 0.5, T2 - M2 * (I2 - O2) * 0.5, b2 - E2 * I2, T2 - M2 * I2, b2 + E2 * O2, T2 + M2 * O2, d2, false) + 2 : o3.cap === ZT.SQUARE && (f2 += lw(b2, T2, E2, M2, I2, O2, false, d2)));
|
|
27387
27480
|
var J2 = e4.indices, $2 = KT.epsilon * KT.epsilon;
|
|
27388
27481
|
for (L2 = m2; L2 < f2 + m2 - 2; ++L2)
|
|
27389
27482
|
y2 = d2[2 * L2], x2 = d2[2 * L2 + 1], b2 = d2[2 * (L2 + 1)], T2 = d2[2 * (L2 + 1) + 1], w2 = d2[2 * (L2 + 2)], S2 = d2[2 * (L2 + 2) + 1], Math.abs(y2 * (T2 - S2) + b2 * (S2 - x2) + w2 * (x2 - T2)) < $2 || J2.push(L2, L2 + 1, L2 + 2);
|
|
@@ -27852,10 +27945,10 @@ var Slide = function(t2) {
|
|
|
27852
27945
|
e4.hasOwnProperty(n2) && (t4[n2] = e4[n2]);
|
|
27853
27946
|
})(t3, e3);
|
|
27854
27947
|
};
|
|
27855
|
-
var Pw,
|
|
27948
|
+
var Pw, Cw = new v_(), Iw = new Uint16Array([0, 1, 2, 0, 2, 3]), Ow = function(t3) {
|
|
27856
27949
|
function e3(e4) {
|
|
27857
27950
|
var n2 = t3.call(this) || this;
|
|
27858
|
-
return n2._anchor = new __(n2._onAnchorUpdate, n2, e4 ? e4.defaultAnchor.x : 0, e4 ? e4.defaultAnchor.y : 0), n2._texture = null, n2._width = 0, n2._height = 0, n2._tint = null, n2._tintRGB = null, n2.tint = 16777215, n2.blendMode = Qg.NORMAL, n2._cachedTint = 16777215, n2.uvs = null, n2.texture = e4 || ky.EMPTY, n2.vertexData = new Float32Array(8), n2.vertexTrimmedData = null, n2._transformID = -1, n2._textureID = -1, n2._transformTrimmedID = -1, n2._textureTrimmedID = -1, n2.indices =
|
|
27951
|
+
return n2._anchor = new __(n2._onAnchorUpdate, n2, e4 ? e4.defaultAnchor.x : 0, e4 ? e4.defaultAnchor.y : 0), n2._texture = null, n2._width = 0, n2._height = 0, n2._tint = null, n2._tintRGB = null, n2.tint = 16777215, n2.blendMode = Qg.NORMAL, n2._cachedTint = 16777215, n2.uvs = null, n2.texture = e4 || ky.EMPTY, n2.vertexData = new Float32Array(8), n2.vertexTrimmedData = null, n2._transformID = -1, n2._textureID = -1, n2._transformTrimmedID = -1, n2._textureTrimmedID = -1, n2.indices = Iw, n2.pluginName = "batch", n2.isSprite = true, n2._roundPixels = mv.ROUND_PIXELS, n2;
|
|
27859
27952
|
}
|
|
27860
27953
|
return function(t4, e4) {
|
|
27861
27954
|
function n2() {
|
|
@@ -27892,9 +27985,9 @@ var Slide = function(t2) {
|
|
|
27892
27985
|
}, e3.prototype.getLocalBounds = function(e4) {
|
|
27893
27986
|
return this.children.length === 0 ? (this._bounds.minX = this._texture.orig.width * -this._anchor._x, this._bounds.minY = this._texture.orig.height * -this._anchor._y, this._bounds.maxX = this._texture.orig.width * (1 - this._anchor._x), this._bounds.maxY = this._texture.orig.height * (1 - this._anchor._y), e4 || (this._localBoundsRect || (this._localBoundsRect = new d_()), e4 = this._localBoundsRect), this._bounds.getRectangle(e4)) : t3.prototype.getLocalBounds.call(this, e4);
|
|
27894
27987
|
}, e3.prototype.containsPoint = function(t4) {
|
|
27895
|
-
this.worldTransform.applyInverse(t4,
|
|
27988
|
+
this.worldTransform.applyInverse(t4, Cw);
|
|
27896
27989
|
var e4 = this._texture.orig.width, n2 = this._texture.orig.height, i2 = -e4 * this.anchor.x, r3 = 0;
|
|
27897
|
-
return
|
|
27990
|
+
return Cw.x >= i2 && Cw.x < i2 + e4 && (r3 = -n2 * this.anchor.y, Cw.y >= r3 && Cw.y < r3 + n2);
|
|
27898
27991
|
}, e3.prototype.destroy = function(e4) {
|
|
27899
27992
|
if (t3.prototype.destroy.call(this, e4), this._texture.off("update", this._onTextureUpdate, this), this._anchor = null, typeof e4 == "boolean" ? e4 : e4 && e4.texture) {
|
|
27900
27993
|
var n2 = typeof e4 == "boolean" ? e4 : e4 && e4.baseTexture;
|
|
@@ -28265,7 +28358,7 @@ var Slide = function(t2) {
|
|
|
28265
28358
|
var g2 = n2.dropShadow && m2 === 0, v2 = g2 ? Math.ceil(Math.max(1, l2) + 2 * n2.padding) : 0, _2 = v2 * this._resolution;
|
|
28266
28359
|
if (g2) {
|
|
28267
28360
|
o3.fillStyle = "black", o3.strokeStyle = "black";
|
|
28268
|
-
var y2 = n2.dropShadowColor, x2 = Rv(typeof y2 == "number" ? y2 :
|
|
28361
|
+
var y2 = n2.dropShadowColor, x2 = Rv(typeof y2 == "number" ? y2 : Cv(y2));
|
|
28269
28362
|
o3.shadowColor = "rgba(" + 255 * x2[0] + "," + 255 * x2[1] + "," + 255 * x2[2] + "," + n2.dropShadowAlpha + ")", o3.shadowBlur = n2.dropShadowBlur, o3.shadowOffsetX = Math.cos(n2.dropShadowAngle) * n2.dropShadowDistance, o3.shadowOffsetY = Math.sin(n2.dropShadowAngle) * n2.dropShadowDistance + _2;
|
|
28270
28363
|
} else
|
|
28271
28364
|
o3.fillStyle = this._generateFillStyle(n2, u2, s3), o3.strokeStyle = n2.stroke, o3.shadowColor = "black", o3.shadowBlur = 0, o3.shadowOffsetX = 0, o3.shadowOffsetY = 0;
|
|
@@ -28934,7 +29027,7 @@ var Slide = function(t2) {
|
|
|
28934
29027
|
}
|
|
28935
29028
|
return s4;
|
|
28936
29029
|
}(t3, e3, s3, o3, [a2], n2), e3.strokeStyle = s3.stroke;
|
|
28937
|
-
var c2 = s3.dropShadowColor, d2 = Rv(typeof c2 == "number" ? c2 :
|
|
29030
|
+
var c2 = s3.dropShadowColor, d2 = Rv(typeof c2 == "number" ? c2 : Cv(c2));
|
|
28938
29031
|
s3.dropShadow ? (e3.shadowColor = "rgba(" + 255 * d2[0] + "," + 255 * d2[1] + "," + 255 * d2[2] + "," + s3.dropShadowAlpha + ")", e3.shadowBlur = s3.dropShadowBlur, e3.shadowOffsetX = Math.cos(s3.dropShadowAngle) * s3.dropShadowDistance, e3.shadowOffsetY = Math.sin(s3.dropShadowAngle) * s3.dropShadowDistance) : (e3.shadowColor = "black", e3.shadowBlur = 0, e3.shadowOffsetX = 0, e3.shadowOffsetY = 0), s3.stroke && s3.strokeThickness && e3.strokeText(a2, u2, h2 + n2.lineHeight - l2.descent), s3.fill && e3.fillText(a2, u2, h2 + n2.lineHeight - l2.descent), e3.setTransform(1, 0, 0, 1, 0, 0), e3.fillStyle = "rgba(0, 0, 0, 0)";
|
|
28939
29032
|
}
|
|
28940
29033
|
function RS(t3) {
|
|
@@ -28943,7 +29036,7 @@ var Slide = function(t2) {
|
|
|
28943
29036
|
function PS(t3) {
|
|
28944
29037
|
return t3.codePointAt ? t3.codePointAt(0) : t3.charCodeAt(0);
|
|
28945
29038
|
}
|
|
28946
|
-
var
|
|
29039
|
+
var CS = function() {
|
|
28947
29040
|
function t3(t4, e3, n2) {
|
|
28948
29041
|
var i2, r3, o3 = t4.info[0], s3 = t4.common[0], a2 = t4.page[0], l2 = t4.distanceField[0], u2 = a_(a2.file), h2 = {};
|
|
28949
29042
|
this._ownsTextures = n2, this.font = o3.face, this.size = o3.size, this.lineHeight = s3.lineHeight / u2, this.chars = {}, this.pageTextures = h2;
|
|
@@ -29028,21 +29121,21 @@ var Slide = function(t2) {
|
|
|
29028
29121
|
b2 = 0;
|
|
29029
29122
|
for (var A2 = h2.length; b2 < A2; b2++)
|
|
29030
29123
|
for (var R2 = h2[b2], P2 = 0; P2 < A2; P2++) {
|
|
29031
|
-
var
|
|
29032
|
-
L2 && p2.kerning.push({ first: PS(R2), second: PS(
|
|
29124
|
+
var C2 = h2[P2], I2 = m2.measureText(R2).width, O2 = m2.measureText(C2).width, L2 = m2.measureText(R2 + C2).width - (I2 + O2);
|
|
29125
|
+
L2 && p2.kerning.push({ first: PS(R2), second: PS(C2), amount: L2 });
|
|
29033
29126
|
}
|
|
29034
29127
|
var N2 = new t3(p2, x2, true);
|
|
29035
29128
|
return t3.available[e3] !== void 0 && t3.uninstall(e3), t3.available[e3] = N2, N2;
|
|
29036
29129
|
}, t3.ALPHA = [["a", "z"], ["A", "Z"], " "], t3.NUMERIC = [["0", "9"]], t3.ALPHANUMERIC = [["a", "z"], ["A", "Z"], ["0", "9"], " "], t3.ASCII = [[" ", "~"]], t3.defaultOptions = { resolution: 1, textureWidth: 512, textureHeight: 512, padding: 4, chars: t3.ALPHANUMERIC }, t3.available = {}, t3;
|
|
29037
|
-
}(),
|
|
29130
|
+
}(), IS = [], OS = [], LS = [], NS = (function(t3) {
|
|
29038
29131
|
function e3(n2, i2) {
|
|
29039
29132
|
i2 === void 0 && (i2 = {});
|
|
29040
29133
|
var r3 = t3.call(this) || this;
|
|
29041
29134
|
r3._tint = 16777215;
|
|
29042
29135
|
var o3 = Object.assign({}, e3.styleDefaults, i2), s3 = o3.align, a2 = o3.tint, l2 = o3.maxWidth, u2 = o3.letterSpacing, h2 = o3.fontName, c2 = o3.fontSize;
|
|
29043
|
-
if (!
|
|
29136
|
+
if (!CS.available[h2])
|
|
29044
29137
|
throw new Error('Missing BitmapFont "' + h2 + '"');
|
|
29045
|
-
return r3._activePagesMeshData = [], r3._textWidth = 0, r3._textHeight = 0, r3._align = s3, r3._tint = a2, r3._fontName = h2, r3._fontSize = c2 ||
|
|
29138
|
+
return r3._activePagesMeshData = [], r3._textWidth = 0, r3._textHeight = 0, r3._align = s3, r3._tint = a2, r3._fontName = h2, r3._fontSize = c2 || CS.available[h2].size, r3._text = n2, r3._maxWidth = l2, r3._maxLineHeight = 0, r3._letterSpacing = u2, r3._anchor = new __(function() {
|
|
29046
29139
|
r3.dirty = true;
|
|
29047
29140
|
}, r3, 0, 0), r3._roundPixels = mv.ROUND_PIXELS, r3.dirty = true, r3._textureCache = {}, r3;
|
|
29048
29141
|
}
|
|
@@ -29052,7 +29145,7 @@ var Slide = function(t2) {
|
|
|
29052
29145
|
}
|
|
29053
29146
|
xS(t4, e4), t4.prototype = e4 === null ? Object.create(e4) : (n2.prototype = e4.prototype, new n2());
|
|
29054
29147
|
})(e3, t3), e3.prototype.updateText = function() {
|
|
29055
|
-
for (var t4, e4 =
|
|
29148
|
+
for (var t4, e4 = CS.available[this._fontName], n2 = this._fontSize / e4.size, i2 = new v_(), r3 = [], o3 = [], s3 = [], a2 = RS(this._text.replace(/(?:\r\n|\r)/g, "\n") || " "), l2 = this._maxWidth * e4.size / this._fontSize, u2 = e4.distanceFieldType === "none" ? IS : OS, h2 = null, c2 = 0, d2 = 0, p2 = 0, f2 = -1, m2 = 0, g2 = 0, v2 = 0, _2 = 0, y2 = 0; y2 < a2.length; y2++) {
|
|
29056
29149
|
var x2 = PS(G2 = a2[y2]);
|
|
29057
29150
|
if (/(?:\s)/.test(G2) && (f2 = y2, m2 = c2, _2++), G2 !== "\r" && G2 !== "\n") {
|
|
29058
29151
|
var b2 = e4.chars[x2];
|
|
@@ -29075,19 +29168,19 @@ var Slide = function(t2) {
|
|
|
29075
29168
|
for (y2 = 0; y2 < P2.length; y2++)
|
|
29076
29169
|
u2.push(P2[y2]);
|
|
29077
29170
|
for (y2 = 0; y2 < M2; y2++) {
|
|
29078
|
-
var
|
|
29079
|
-
if (!A2[
|
|
29171
|
+
var C2 = (z2 = r3[y2].texture).baseTexture.uid;
|
|
29172
|
+
if (!A2[C2]) {
|
|
29080
29173
|
if (!(Z2 = u2.pop())) {
|
|
29081
|
-
var
|
|
29174
|
+
var I2 = new yS(), O2 = void 0, L2 = void 0;
|
|
29082
29175
|
e4.distanceFieldType === "none" ? (O2 = new _S(ky.EMPTY), L2 = Qg.NORMAL) : (O2 = new _S(ky.EMPTY, { program: Bx.from("// Mesh material default fragment\r\nattribute vec2 aVertexPosition;\r\nattribute vec2 aTextureCoord;\r\n\r\nuniform mat3 projectionMatrix;\r\nuniform mat3 translationMatrix;\r\nuniform mat3 uTextureMatrix;\r\n\r\nvarying vec2 vTextureCoord;\r\n\r\nvoid main(void)\r\n{\r\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\r\n\r\n vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;\r\n}\r\n", "// Pixi texture info\r\nvarying vec2 vTextureCoord;\r\nuniform sampler2D uSampler;\r\n\r\n// Tint\r\nuniform vec4 uColor;\r\n\r\n// on 2D applications fwidth is screenScale / glyphAtlasScale * distanceFieldRange\r\nuniform float uFWidth;\r\n\r\nvoid main(void) {\r\n\r\n // To stack MSDF and SDF we need a non-pre-multiplied-alpha texture.\r\n vec4 texColor = texture2D(uSampler, vTextureCoord);\r\n\r\n // MSDF\r\n float median = texColor.r + texColor.g + texColor.b -\r\n min(texColor.r, min(texColor.g, texColor.b)) -\r\n max(texColor.r, max(texColor.g, texColor.b));\r\n // SDF\r\n median = min(median, texColor.a);\r\n\r\n float screenPxDistance = uFWidth * (median - 0.5);\r\n float alpha = clamp(screenPxDistance + 0.5, 0.0, 1.0);\r\n\r\n // NPM Textures, NPM outputs\r\n gl_FragColor = vec4(uColor.rgb, uColor.a * alpha);\r\n\r\n}\r\n"), uniforms: { uFWidth: 0 } }), L2 = Qg.NORMAL_NPM);
|
|
29083
|
-
var N2 = new vS(
|
|
29176
|
+
var N2 = new vS(I2, O2);
|
|
29084
29177
|
N2.blendMode = L2, Z2 = { index: 0, indexCount: 0, vertexCount: 0, uvsCount: 0, total: 0, mesh: N2, vertices: null, uvs: null, indices: null };
|
|
29085
29178
|
}
|
|
29086
29179
|
Z2.index = 0, Z2.indexCount = 0, Z2.vertexCount = 0, Z2.uvsCount = 0, Z2.total = 0;
|
|
29087
29180
|
var D2 = this._textureCache;
|
|
29088
|
-
D2[
|
|
29181
|
+
D2[C2] = D2[C2] || new ky(z2.baseTexture), Z2.mesh.texture = D2[C2], Z2.mesh.tint = this._tint, R2.push(Z2), A2[C2] = Z2;
|
|
29089
29182
|
}
|
|
29090
|
-
A2[
|
|
29183
|
+
A2[C2].total++;
|
|
29091
29184
|
}
|
|
29092
29185
|
for (y2 = 0; y2 < P2.length; y2++)
|
|
29093
29186
|
R2.indexOf(P2[y2]) === -1 && this.removeChild(P2[y2].mesh);
|
|
@@ -29122,7 +29215,7 @@ var Slide = function(t2) {
|
|
|
29122
29215
|
}, e3.prototype.updateTransform = function() {
|
|
29123
29216
|
this.validate(), this.containerUpdateTransform();
|
|
29124
29217
|
}, e3.prototype._render = function(e4) {
|
|
29125
|
-
var n2 =
|
|
29218
|
+
var n2 = CS.available[this._fontName], i2 = n2.distanceFieldRange, r3 = n2.distanceFieldType, o3 = n2.size;
|
|
29126
29219
|
if (r3 !== "none")
|
|
29127
29220
|
for (var s3 = this.worldTransform, a2 = s3.a, l2 = s3.b, u2 = s3.c, h2 = s3.d, c2 = Math.sqrt(a2 * a2 + l2 * l2), d2 = Math.sqrt(u2 * u2 + h2 * h2), p2 = (Math.abs(c2) + Math.abs(d2)) / 2, f2 = this._fontSize / o3, m2 = 0, g2 = this._activePagesMeshData; m2 < g2.length; m2++) {
|
|
29128
29221
|
g2[m2].mesh.shader.uniforms.uFWidth = p2 * i2 * f2 * e4.resolution;
|
|
@@ -29147,7 +29240,7 @@ var Slide = function(t2) {
|
|
|
29147
29240
|
}, enumerable: false, configurable: true }), Object.defineProperty(e3.prototype, "fontName", { get: function() {
|
|
29148
29241
|
return this._fontName;
|
|
29149
29242
|
}, set: function(t4) {
|
|
29150
|
-
if (!
|
|
29243
|
+
if (!CS.available[t4])
|
|
29151
29244
|
throw new Error('Missing BitmapFont "' + t4 + '"');
|
|
29152
29245
|
this._fontName !== t4 && (this._fontName = t4, this.dirty = true);
|
|
29153
29246
|
}, enumerable: false, configurable: true }), Object.defineProperty(e3.prototype, "fontSize", { get: function() {
|
|
@@ -29196,7 +29289,7 @@ var Slide = function(t2) {
|
|
|
29196
29289
|
var i2 = MS(e3.data);
|
|
29197
29290
|
if (i2)
|
|
29198
29291
|
for (var r3 = t3.getBaseUrl(this, e3), o3 = i2.parse(e3.data), s3 = {}, a2 = function(t4) {
|
|
29199
|
-
s3[t4.metadata.pageFile] = t4.texture, Object.keys(s3).length === o3.page.length && (e3.bitmapFont =
|
|
29292
|
+
s3[t4.metadata.pageFile] = t4.texture, Object.keys(s3).length === o3.page.length && (e3.bitmapFont = CS.install(o3, s3, true), n2());
|
|
29200
29293
|
}, l2 = 0; l2 < o3.page.length; ++l2) {
|
|
29201
29294
|
var u2 = o3.page[l2].file, h2 = r3 + u2, c2 = false;
|
|
29202
29295
|
for (var d2 in this.resources) {
|
|
@@ -29666,7 +29759,7 @@ void main() {
|
|
|
29666
29759
|
e4.hasOwnProperty(n2) && (t4[n2] = e4[n2]);
|
|
29667
29760
|
})(t3, e3);
|
|
29668
29761
|
};
|
|
29669
|
-
var mE, gE, vE, _E, yE, xE, bE, TE, wE, SE, EE, ME, AE, RE, PE,
|
|
29762
|
+
var mE, gE, vE, _E, yE, xE, bE, TE, wE, SE, EE, ME, AE, RE, PE, CE, IE, OE, LE, NE = function(t3) {
|
|
29670
29763
|
function e3(e4, n2) {
|
|
29671
29764
|
e4 === void 0 && (e4 = 0.5), n2 === void 0 && (n2 = Math.random());
|
|
29672
29765
|
var i2 = t3.call(this, _b, "precision highp float;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform float uNoise;\nuniform float uSeed;\nuniform sampler2D uSampler;\n\nfloat rand(vec2 co)\n{\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main()\n{\n vec4 color = texture2D(uSampler, vTextureCoord);\n float randomValue = rand(gl_FragCoord.xy * uSeed);\n float diff = (randomValue - 0.5) * uNoise;\n\n // Un-premultiply alpha before applying the color matrix. See issue #3539.\n if (color.a > 0.0) {\n color.rgb /= color.a;\n }\n\n color.r += diff;\n color.g += diff;\n color.b += diff;\n\n // Premultiply alpha again.\n color.rgb *= color.a;\n\n gl_FragColor = color;\n}\n", { uNoise: 0, uSeed: 0 }) || this;
|
|
@@ -29719,9 +29812,9 @@ void main() {
|
|
|
29719
29812
|
t3[t3.AUTO = 0] = "AUTO", t3[t3.MANUAL = 1] = "MANUAL";
|
|
29720
29813
|
}(PE || (PE = {})), function(t3) {
|
|
29721
29814
|
t3.LOW = "lowp", t3.MEDIUM = "mediump", t3.HIGH = "highp";
|
|
29722
|
-
}(IE || (IE = {})), function(t3) {
|
|
29723
|
-
t3[t3.NONE = 0] = "NONE", t3[t3.SCISSOR = 1] = "SCISSOR", t3[t3.STENCIL = 2] = "STENCIL", t3[t3.SPRITE = 3] = "SPRITE";
|
|
29724
29815
|
}(CE || (CE = {})), function(t3) {
|
|
29816
|
+
t3[t3.NONE = 0] = "NONE", t3[t3.SCISSOR = 1] = "SCISSOR", t3[t3.STENCIL = 2] = "STENCIL", t3[t3.SPRITE = 3] = "SPRITE";
|
|
29817
|
+
}(IE || (IE = {})), function(t3) {
|
|
29725
29818
|
t3[t3.NONE = 0] = "NONE", t3[t3.LOW = 2] = "LOW", t3[t3.MEDIUM = 4] = "MEDIUM", t3[t3.HIGH = 8] = "HIGH";
|
|
29726
29819
|
}(OE || (OE = {})), function(t3) {
|
|
29727
29820
|
t3[t3.ELEMENT_ARRAY_BUFFER = 34963] = "ELEMENT_ARRAY_BUFFER", t3[t3.ARRAY_BUFFER = 34962] = "ARRAY_BUFFER", t3[t3.UNIFORM_BUFFER = 35345] = "UNIFORM_BUFFER";
|
|
@@ -30414,7 +30507,7 @@ void main() {
|
|
|
30414
30507
|
});
|
|
30415
30508
|
}
|
|
30416
30509
|
destroy() {
|
|
30417
|
-
this.spriteSheets.forEach((t3) => t3.destroy(true));
|
|
30510
|
+
this.spriteSheets.forEach((t3) => t3.destroy(true)), this.spriteSheets = [], this.gifs = Object.create(null), this.textures = Object.create(null), this.frames = Object.create(null);
|
|
30418
30511
|
}
|
|
30419
30512
|
}
|
|
30420
30513
|
var uM = n(3), hM = n.n(uM);
|
|
@@ -30739,7 +30832,7 @@ void main() {
|
|
|
30739
30832
|
return new Float64Array(t3);
|
|
30740
30833
|
}
|
|
30741
30834
|
const EM = SM(4), MM = SM(8), AM = SM(12), RM = SM(16), PM = SM(4);
|
|
30742
|
-
function
|
|
30835
|
+
function CM(t3, e3, n2, i2, r3, o3) {
|
|
30743
30836
|
const s3 = (e3 - o3) * (n2 - r3), a2 = (t3 - r3) * (i2 - o3), l2 = s3 - a2;
|
|
30744
30837
|
if (s3 === 0 || a2 === 0 || s3 > 0 != a2 > 0)
|
|
30745
30838
|
return l2;
|
|
@@ -30748,23 +30841,23 @@ void main() {
|
|
|
30748
30841
|
let a3, l3, u3, h2, c2, d2, p2, f2, m2, g2, v2, _2, y2, x2, b2, T2, w2, S2;
|
|
30749
30842
|
const E2 = t4 - r4, M2 = n3 - r4, A2 = e4 - o4, R2 = i3 - o4;
|
|
30750
30843
|
x2 = E2 * R2, d2 = bM * E2, p2 = d2 - (d2 - E2), f2 = E2 - p2, d2 = bM * R2, m2 = d2 - (d2 - R2), g2 = R2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = A2 * M2, d2 = bM * A2, p2 = d2 - (d2 - A2), f2 = A2 - p2, d2 = bM * M2, m2 = d2 - (d2 - M2), g2 = M2 - m2, w2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - w2, c2 = b2 - v2, EM[0] = b2 - (v2 + c2) + (c2 - w2), _2 = x2 + v2, c2 = _2 - x2, y2 = x2 - (_2 - c2) + (v2 - c2), v2 = y2 - T2, c2 = y2 - v2, EM[1] = y2 - (v2 + c2) + (c2 - T2), S2 = _2 + v2, c2 = S2 - _2, EM[2] = _2 - (S2 - c2) + (v2 - c2), EM[3] = S2;
|
|
30751
|
-
let P2 = wM(4, EM),
|
|
30752
|
-
if (P2 >=
|
|
30844
|
+
let P2 = wM(4, EM), C2 = 22204460492503146e-32 * s4;
|
|
30845
|
+
if (P2 >= C2 || -P2 >= C2)
|
|
30753
30846
|
return P2;
|
|
30754
30847
|
if (c2 = t4 - E2, a3 = t4 - (E2 + c2) + (c2 - r4), c2 = n3 - M2, u3 = n3 - (M2 + c2) + (c2 - r4), c2 = e4 - A2, l3 = e4 - (A2 + c2) + (c2 - o4), c2 = i3 - R2, h2 = i3 - (R2 + c2) + (c2 - o4), a3 === 0 && l3 === 0 && u3 === 0 && h2 === 0)
|
|
30755
30848
|
return P2;
|
|
30756
|
-
if (
|
|
30849
|
+
if (C2 = 11093356479670487e-47 * s4 + 33306690738754706e-32 * Math.abs(P2), P2 += E2 * h2 + R2 * a3 - (A2 * u3 + M2 * l3), P2 >= C2 || -P2 >= C2)
|
|
30757
30850
|
return P2;
|
|
30758
30851
|
x2 = a3 * R2, d2 = bM * a3, p2 = d2 - (d2 - a3), f2 = a3 - p2, d2 = bM * R2, m2 = d2 - (d2 - R2), g2 = R2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = l3 * M2, d2 = bM * l3, p2 = d2 - (d2 - l3), f2 = l3 - p2, d2 = bM * M2, m2 = d2 - (d2 - M2), g2 = M2 - m2, w2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - w2, c2 = b2 - v2, PM[0] = b2 - (v2 + c2) + (c2 - w2), _2 = x2 + v2, c2 = _2 - x2, y2 = x2 - (_2 - c2) + (v2 - c2), v2 = y2 - T2, c2 = y2 - v2, PM[1] = y2 - (v2 + c2) + (c2 - T2), S2 = _2 + v2, c2 = S2 - _2, PM[2] = _2 - (S2 - c2) + (v2 - c2), PM[3] = S2;
|
|
30759
|
-
const
|
|
30852
|
+
const I2 = TM(4, EM, 4, PM, MM);
|
|
30760
30853
|
x2 = E2 * h2, d2 = bM * E2, p2 = d2 - (d2 - E2), f2 = E2 - p2, d2 = bM * h2, m2 = d2 - (d2 - h2), g2 = h2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = A2 * u3, d2 = bM * A2, p2 = d2 - (d2 - A2), f2 = A2 - p2, d2 = bM * u3, m2 = d2 - (d2 - u3), g2 = u3 - m2, w2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - w2, c2 = b2 - v2, PM[0] = b2 - (v2 + c2) + (c2 - w2), _2 = x2 + v2, c2 = _2 - x2, y2 = x2 - (_2 - c2) + (v2 - c2), v2 = y2 - T2, c2 = y2 - v2, PM[1] = y2 - (v2 + c2) + (c2 - T2), S2 = _2 + v2, c2 = S2 - _2, PM[2] = _2 - (S2 - c2) + (v2 - c2), PM[3] = S2;
|
|
30761
|
-
const O2 = TM(
|
|
30854
|
+
const O2 = TM(I2, MM, 4, PM, AM);
|
|
30762
30855
|
x2 = a3 * h2, d2 = bM * a3, p2 = d2 - (d2 - a3), f2 = a3 - p2, d2 = bM * h2, m2 = d2 - (d2 - h2), g2 = h2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = l3 * u3, d2 = bM * l3, p2 = d2 - (d2 - l3), f2 = l3 - p2, d2 = bM * u3, m2 = d2 - (d2 - u3), g2 = u3 - m2, w2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - w2, c2 = b2 - v2, PM[0] = b2 - (v2 + c2) + (c2 - w2), _2 = x2 + v2, c2 = _2 - x2, y2 = x2 - (_2 - c2) + (v2 - c2), v2 = y2 - T2, c2 = y2 - v2, PM[1] = y2 - (v2 + c2) + (c2 - T2), S2 = _2 + v2, c2 = S2 - _2, PM[2] = _2 - (S2 - c2) + (v2 - c2), PM[3] = S2;
|
|
30763
30856
|
const L2 = TM(O2, AM, 4, PM, RM);
|
|
30764
30857
|
return RM[L2 - 1];
|
|
30765
30858
|
}(t3, e3, n2, i2, r3, o3, u2);
|
|
30766
30859
|
}
|
|
30767
|
-
const
|
|
30860
|
+
const IM = Math.pow(2, -52), OM = new Uint32Array(512);
|
|
30768
30861
|
class LM {
|
|
30769
30862
|
static from(t3, e3 = kM, n2 = GM) {
|
|
30770
30863
|
const i2 = t3.length, r3 = new Float64Array(2 * i2);
|
|
@@ -30823,7 +30916,7 @@ void main() {
|
|
|
30823
30916
|
}
|
|
30824
30917
|
return this.hull = e4.subarray(0, n3), this.triangles = new Uint32Array(0), void (this.halfedges = new Uint32Array(0));
|
|
30825
30918
|
}
|
|
30826
|
-
if (
|
|
30919
|
+
if (CM(g2, v2, _2, y2, b2, T2) < 0) {
|
|
30827
30920
|
const t4 = p2, e4 = _2, n3 = y2;
|
|
30828
30921
|
p2 = f2, _2 = b2, y2 = T2, f2 = t4, b2 = e4, T2 = n3;
|
|
30829
30922
|
}
|
|
@@ -30839,7 +30932,7 @@ void main() {
|
|
|
30839
30932
|
n2[d2] = e3[f2] = p2, n2[p2] = e3[d2] = f2, n2[f2] = e3[p2] = d2, i2[d2] = 0, i2[p2] = 1, i2[f2] = 2, r3.fill(-1), r3[this._hashKey(g2, v2)] = d2, r3[this._hashKey(_2, y2)] = p2, r3[this._hashKey(b2, T2)] = f2, this.trianglesLen = 0, this._addTriangle(d2, p2, f2, -1, -1, -1);
|
|
30840
30933
|
for (let o4, s4, a3 = 0; a3 < this._ids.length; a3++) {
|
|
30841
30934
|
const l3 = this._ids[a3], u3 = t3[2 * l3], h3 = t3[2 * l3 + 1];
|
|
30842
|
-
if (a3 > 0 && Math.abs(u3 - o4) <=
|
|
30935
|
+
if (a3 > 0 && Math.abs(u3 - o4) <= IM && Math.abs(h3 - s4) <= IM)
|
|
30843
30936
|
continue;
|
|
30844
30937
|
if (o4 = u3, s4 = h3, l3 === d2 || l3 === p2 || l3 === f2)
|
|
30845
30938
|
continue;
|
|
@@ -30848,7 +30941,7 @@ void main() {
|
|
|
30848
30941
|
;
|
|
30849
30942
|
c3 = e3[c3];
|
|
30850
30943
|
let m3, g3 = c3;
|
|
30851
|
-
for (; m3 = n2[g3],
|
|
30944
|
+
for (; m3 = n2[g3], CM(u3, h3, t3[2 * g3], t3[2 * g3 + 1], t3[2 * m3], t3[2 * m3 + 1]) >= 0; )
|
|
30852
30945
|
if (g3 = m3, g3 === c3) {
|
|
30853
30946
|
g3 = -1;
|
|
30854
30947
|
break;
|
|
@@ -30858,10 +30951,10 @@ void main() {
|
|
|
30858
30951
|
let v3 = this._addTriangle(g3, l3, n2[g3], -1, -1, i2[g3]);
|
|
30859
30952
|
i2[l3] = this._legalize(v3 + 2), i2[g3] = v3, S2++;
|
|
30860
30953
|
let _3 = n2[g3];
|
|
30861
|
-
for (; m3 = n2[_3],
|
|
30954
|
+
for (; m3 = n2[_3], CM(u3, h3, t3[2 * _3], t3[2 * _3 + 1], t3[2 * m3], t3[2 * m3 + 1]) < 0; )
|
|
30862
30955
|
v3 = this._addTriangle(_3, l3, m3, i2[l3], -1, i2[_3]), i2[l3] = this._legalize(v3 + 2), n2[_3] = _3, S2--, _3 = m3;
|
|
30863
30956
|
if (g3 === c3)
|
|
30864
|
-
for (; m3 = e3[g3],
|
|
30957
|
+
for (; m3 = e3[g3], CM(u3, h3, t3[2 * m3], t3[2 * m3 + 1], t3[2 * g3], t3[2 * g3 + 1]) < 0; )
|
|
30865
30958
|
v3 = this._addTriangle(m3, l3, g3, -1, i2[g3], i2[m3]), this._legalize(v3 + 2), i2[m3] = v3, n2[g3] = g3, S2--, g3 = m3;
|
|
30866
30959
|
this._hullStart = e3[l3] = g3, n2[g3] = e3[_3] = l3, n2[l3] = _3, r3[this._hashKey(u3, h3)] = l3, r3[this._hashKey(t3[2 * g3], t3[2 * g3 + 1])] = g3;
|
|
30867
30960
|
}
|
|
@@ -31371,7 +31464,10 @@ void main(void){
|
|
|
31371
31464
|
return rM(t3);
|
|
31372
31465
|
}
|
|
31373
31466
|
destroy() {
|
|
31374
|
-
|
|
31467
|
+
Object.keys(this.textures).forEach((t3) => {
|
|
31468
|
+
var e3;
|
|
31469
|
+
(e3 = this.textures[t3].texture) === null || e3 === void 0 || e3.destroy();
|
|
31470
|
+
}), this.textures = Object.create(null), this.fillStyles = [], this.renderTextures.forEach((t3) => t3.destroy(true)), this.renderTextures = [], this.renderContainers.forEach((t3) => t3.destroy({ children: true })), this.renderContainers = [], this.spriteTextures.destroy(), this.idToHashMap = Object.create(null), this.hashToIdMap = Object.create(null);
|
|
31375
31471
|
}
|
|
31376
31472
|
}
|
|
31377
31473
|
class aA {
|
|
@@ -31702,10 +31798,10 @@ void main(void){
|
|
|
31702
31798
|
});
|
|
31703
31799
|
};
|
|
31704
31800
|
class SA extends bA {
|
|
31705
|
-
constructor(t3, e3, n2) {
|
|
31706
|
-
super(t3, e3, n2), this.fillMaskSprite = new Ow(), this.fillSprite = new Ow(), this.strokeMaskSprite = new Ow(), this.strokeSprite = new Ow(), this.textureContainer = new ty(), this.underline = null;
|
|
31707
|
-
const { shapeId:
|
|
31708
|
-
|
|
31801
|
+
constructor(t3, e3, n2, i2) {
|
|
31802
|
+
super(t3, e3, n2), this.fillMaskSprite = new Ow(), this.fillSprite = new Ow(), this.strokeMaskSprite = new Ow(), this.strokeSprite = new Ow(), this.textureContainer = new ty(), this.underline = null, this.cacheSprite = new Ow();
|
|
31803
|
+
const { shapeId: r3, paragraphIndex: o3, lineIndex: s3, unitIndex: a2 } = t3, { underLine: l2 } = this.json;
|
|
31804
|
+
l2 && (this.underline = new TA(e3, r3, o3, s3, a2)), this.shapeCacheAsBitMap = i2, this.fillTextureId = `${r3}-text-p${o3}-l${s3}-u${a2}-fill`, this.fillBgId = `${r3}-text-p${o3}-l${s3}-u${a2}-fill-bg`, this.strokeTextureId = `${r3}-text-p${o3}-l${s3}-u${a2}-stroke`, this.strokeBgId = `${r3}-text-p${o3}-l${s3}-u${a2}-stroke-bg`;
|
|
31709
31805
|
}
|
|
31710
31806
|
getIterateEntry() {
|
|
31711
31807
|
return null;
|
|
@@ -31736,13 +31832,13 @@ void main(void){
|
|
|
31736
31832
|
const t4 = this.ctx.fillTexture.getTexture(this.fillTextureId);
|
|
31737
31833
|
(t4 == null ? void 0 : t4.texture) && (this.fillMaskSprite.texture = t4.texture, this.fillMaskSprite.scale.x = 0.5, this.fillMaskSprite.scale.y = 0.5);
|
|
31738
31834
|
const e4 = this.ctx.fillTexture.getTexture(this.fillBgId);
|
|
31739
|
-
e4.texture && (this.fillSprite.texture = e4.texture, this.fillSprite.mask = this.fillMaskSprite, this.fillSprite.addChild(this.fillMaskSprite), r3 ? this.fillSprite.position.y = h2 : this.fillSprite.position.x = u2, this.textureContainer.addChild(this.fillSprite));
|
|
31835
|
+
e4.texture && (this.fillSprite.texture = e4.texture, this.fillSprite.mask = this.fillMaskSprite, this.fillSprite.addChild(this.fillMaskSprite), r3 ? this.fillSprite.position.y = h2 > 0 ? h2 : 0 : this.fillSprite.position.x = u2, this.textureContainer.addChild(this.fillSprite));
|
|
31740
31836
|
}
|
|
31741
31837
|
if (this.strokeBgId && this.strokeTextureId) {
|
|
31742
31838
|
const t4 = this.ctx.fillTexture.getTexture(this.strokeTextureId);
|
|
31743
31839
|
(t4 == null ? void 0 : t4.texture) && (this.strokeMaskSprite.texture = t4.texture, this.strokeMaskSprite.scale.x = 0.5, this.strokeMaskSprite.scale.y = 0.5);
|
|
31744
31840
|
const e4 = this.ctx.fillTexture.getTexture(this.strokeBgId);
|
|
31745
|
-
(e4 == null ? void 0 : e4.texture) && (this.strokeSprite.texture = e4.texture, this.strokeSprite.mask = this.strokeMaskSprite, this.strokeSprite.addChild(this.strokeMaskSprite), r3 ? this.strokeSprite.position.y = h2 : this.strokeSprite.position.x = u2, this.textureContainer.addChild(this.strokeSprite));
|
|
31841
|
+
(e4 == null ? void 0 : e4.texture) && (this.strokeSprite.texture = e4.texture, this.strokeSprite.mask = this.strokeMaskSprite, this.strokeSprite.addChild(this.strokeMaskSprite), r3 ? this.strokeSprite.position.y = h2 > 0 ? h2 : 0 : this.strokeSprite.position.x = u2, this.textureContainer.addChild(this.strokeSprite));
|
|
31746
31842
|
}
|
|
31747
31843
|
if (this.underline && (this.underline.render(), this.underline.sprite && this.fillMaskSprite)) {
|
|
31748
31844
|
let e4 = null;
|
|
@@ -31750,13 +31846,16 @@ void main(void){
|
|
|
31750
31846
|
const r4 = new Ow();
|
|
31751
31847
|
r4.texture = (t3 = e4 == null ? void 0 : e4.texture) !== null && t3 !== void 0 ? t3 : null, r4.mask = this.underline.sprite, r4.addChild(this.underline.sprite), this.textureContainer.addChild(r4);
|
|
31752
31848
|
}
|
|
31753
|
-
|
|
31754
|
-
|
|
31755
|
-
|
|
31756
|
-
|
|
31849
|
+
if (this.shapeCacheAsBitMap)
|
|
31850
|
+
this.container.addChild(this.textureContainer);
|
|
31851
|
+
else {
|
|
31852
|
+
const t4 = Hy.create({ width: r3 ? a2 : e3, height: r3 ? Math.max(d2, n2) : s3, resolution: 2 });
|
|
31853
|
+
KR.textureCacheSize += t4.width * t4.height * 2, this.ctx.renderer.render(this.textureContainer, { renderTexture: t4 }), this.cacheSprite.texture = t4, r3 && h2 < 0 && (this.cacheSprite.position.y = h2), this.container.addChild(this.cacheSprite);
|
|
31854
|
+
}
|
|
31855
|
+
this.container.name = c2;
|
|
31757
31856
|
}
|
|
31758
31857
|
destroy() {
|
|
31759
|
-
this.textureContainer.destroy({ texture: true }), this.container.destroy({ children: true, texture: true });
|
|
31858
|
+
this.cacheSprite.texture.destroy(true), this.cacheSprite.destroy({ texture: true, baseTexture: true }), this.textureContainer.destroy({ texture: true }), this.container.destroy({ children: true, texture: true });
|
|
31760
31859
|
}
|
|
31761
31860
|
}
|
|
31762
31861
|
var EA = function(t3, e3, n2, i2) {
|
|
@@ -31785,8 +31884,8 @@ void main(void){
|
|
|
31785
31884
|
});
|
|
31786
31885
|
};
|
|
31787
31886
|
class MA extends bA {
|
|
31788
|
-
constructor() {
|
|
31789
|
-
super(
|
|
31887
|
+
constructor(t3, e3, n2, i2) {
|
|
31888
|
+
super(t3, e3, n2), this.units = [], this.isHorz = true, this.shapeCacheAsBitMap = i2;
|
|
31790
31889
|
}
|
|
31791
31890
|
getIterateElements() {
|
|
31792
31891
|
return this.units;
|
|
@@ -31801,7 +31900,7 @@ void main(void){
|
|
|
31801
31900
|
const r4 = this.json.textUnits[i2];
|
|
31802
31901
|
if (!r4.content)
|
|
31803
31902
|
continue;
|
|
31804
|
-
const { height: o3, width: s3, fillHeight: a2, baseline: l2, y: u2, underline: h2 } = this.json, c2 = new SA(Object.assign(Object.assign({}, r4), { lineHeight: o3, lineWidth: s3, baseLine: l2 - u2, underline: h2, fillLineHeight: a2 || o3, isHorz: this.isHorz, shapeId: t3, paragraphIndex: e3, lineIndex: n2, unitIndex: i2 }), this.ctx, this.global);
|
|
31903
|
+
const { height: o3, width: s3, fillHeight: a2, baseline: l2, y: u2, underline: h2 } = this.json, c2 = new SA(Object.assign(Object.assign({}, r4), { lineHeight: o3, lineWidth: s3, baseLine: l2 - u2, underline: h2, fillLineHeight: a2 || o3, isHorz: this.isHorz, shapeId: t3, paragraphIndex: e3, lineIndex: n2, unitIndex: i2 }), this.ctx, this.global, this.shapeCacheAsBitMap);
|
|
31805
31904
|
c2.preRender(), this.units.push(c2);
|
|
31806
31905
|
}
|
|
31807
31906
|
}
|
|
@@ -31843,8 +31942,8 @@ void main(void){
|
|
|
31843
31942
|
});
|
|
31844
31943
|
};
|
|
31845
31944
|
class RA extends bA {
|
|
31846
|
-
constructor() {
|
|
31847
|
-
super(
|
|
31945
|
+
constructor(t3, e3, n2, i2) {
|
|
31946
|
+
super(t3, e3, n2), this.iterateElements = [], this.lines = [], this.isHorz = true, this.shapeCacheAsBitMap = i2;
|
|
31848
31947
|
}
|
|
31849
31948
|
getIterateElements() {
|
|
31850
31949
|
if (this.iterateElements.length > 0)
|
|
@@ -31860,7 +31959,7 @@ void main(void){
|
|
|
31860
31959
|
}
|
|
31861
31960
|
createLines(t3, e3) {
|
|
31862
31961
|
for (let n2 = 0, i2 = this.json.lines.length; n2 < i2; n2++) {
|
|
31863
|
-
const i3 = this.json.lines[n2], r3 = new MA(i3, this.ctx, this.global);
|
|
31962
|
+
const i3 = this.json.lines[n2], r3 = new MA(i3, this.ctx, this.global, this.shapeCacheAsBitMap);
|
|
31864
31963
|
r3.isHorz = this.isHorz, r3.container.name = "line-" + n2, r3.createUnits(t3, e3, n2), this.lines.push(r3);
|
|
31865
31964
|
}
|
|
31866
31965
|
}
|
|
@@ -31901,11 +32000,11 @@ void main(void){
|
|
|
31901
32000
|
l2((i2 = i2.apply(t3, e3 || [])).next());
|
|
31902
32001
|
});
|
|
31903
32002
|
};
|
|
31904
|
-
class
|
|
31905
|
-
constructor(t3, e3, n2, i2) {
|
|
31906
|
-
this.iterateElements = [], this.paragraphs = [], this.container = new ty(), this.json = t3, this.ctx = e3, this.parentGlobalPos = i2, this.iterateType = n2, this.container.name = "textBody", this.global = { x: this.parentGlobalPos.x + t3.position.x, y: this.parentGlobalPos.y + t3.position.y }, this.container.position.x = t3.position.x, this.container.position.y = t3.position.y, this.container.scale.x = t3.scale.x, this.container.scale.y = t3.scale.y;
|
|
31907
|
-
const
|
|
31908
|
-
|
|
32003
|
+
class CA {
|
|
32004
|
+
constructor(t3, e3, n2, i2, r3) {
|
|
32005
|
+
this.iterateElements = [], this.paragraphs = [], this.container = new ty(), this.json = t3, this.ctx = e3, this.parentGlobalPos = i2, this.shapeCacheAsBitMap = r3, this.iterateType = n2, this.container.name = "textBody", this.global = { x: this.parentGlobalPos.x + t3.position.x, y: this.parentGlobalPos.y + t3.position.y }, this.container.position.x = t3.position.x, this.container.position.y = t3.position.y, this.container.scale.x = t3.scale.x, this.container.scale.y = t3.scale.y;
|
|
32006
|
+
const o3 = new Aw();
|
|
32007
|
+
o3.drawRect(0, 0, t3.width, t3.height), this.container.addChild(o3);
|
|
31909
32008
|
}
|
|
31910
32009
|
get width() {
|
|
31911
32010
|
return this.json.width;
|
|
@@ -31933,7 +32032,7 @@ void main(void){
|
|
|
31933
32032
|
createParagraphs(t3) {
|
|
31934
32033
|
var e3;
|
|
31935
32034
|
for (let n2 = 0, i2 = this.json.paragraphs.length; n2 < i2; n2++) {
|
|
31936
|
-
const i3 = this.json.paragraphs[n2], r3 = new RA(i3, this.ctx, this.global);
|
|
32035
|
+
const i3 = this.json.paragraphs[n2], r3 = new RA(i3, this.ctx, this.global, this.shapeCacheAsBitMap);
|
|
31937
32036
|
r3.isHorz = (e3 = this.json.isHorz) === null || e3 === void 0 || e3, r3.createLines(t3, n2), this.iterateElements = this.iterateElements.concat(r3.getIterateElements()), r3.container.name = "\u6BB5\u843D-" + n2, this.paragraphs.push(r3);
|
|
31938
32037
|
}
|
|
31939
32038
|
}
|
|
@@ -31948,7 +32047,7 @@ void main(void){
|
|
|
31948
32047
|
}));
|
|
31949
32048
|
}
|
|
31950
32049
|
}
|
|
31951
|
-
var
|
|
32050
|
+
var IA = n(48), OA = n.n(IA), LA = n(49), NA = n.n(LA);
|
|
31952
32051
|
const DA = { Reflection: class extends Gx {
|
|
31953
32052
|
constructor(t3) {
|
|
31954
32053
|
super(OA.a, NA.a, { uShapeFilterArea: new Float32Array([0, 0, 0, 0]), uStartAlpha: t3.startAlpha, uEndAlpha: t3.endAlpha, uBlur: 0 }), this.json = t3;
|
|
@@ -32072,7 +32171,7 @@ void main(void){
|
|
|
32072
32171
|
this.renderContainer.filterArea = r4, (this.renderContainer.filters || []).forEach((t5) => {
|
|
32073
32172
|
t5.uniforms.uShapeFilterArea = new Float32Array(4), t5.uniforms.uShapeFilterArea[0] = r4.x, t5.uniforms.uShapeFilterArea[1] = r4.y, t5.uniforms.uShapeFilterArea[2] = r4.width, t5.uniforms.uShapeFilterArea[3] = r4.height;
|
|
32074
32173
|
});
|
|
32075
|
-
}, this.json = t3, this.id = t3.id, this.container.name = t3.id, this.renderContainer.name = t3.id + "-render-container", this.fillStyle = t3.fillStyle, this.lineStyle = t3.lineStyle, this.pathMaskTextureId = t3.id + "-path-graphics", this.backgroundMaskTextureId = t3.id + "-bg-graphics", this.geometry = t3.geometry, this.bgTextureId = t3.id + "-bg-fill", this.pathStrokeTextureId = t3.id + "-path-fill", this.ctx.timingTargets.addTarget(this.id, this), ((i2 = this.fillStyle) === null || i2 === void 0 ? void 0 : i2.fillType) === "solidFill" && (this.fillColorFilter.currentColor = this.fillStyle.color), ((o3 = (r3 = this.lineStyle) === null || r3 === void 0 ? void 0 : r3.fill) === null || o3 === void 0 ? void 0 : o3.fillType) === "solidFill" && (this.strokeColorFilter.currentColor = this.lineStyle.fill.color), this.pathSprite.name = "path-fill", this.pathMask.name = "path-mask", this.bgSprite.name = "bg-fill", this.backgroundMask.name = "bg-mask", this.updateTransform(this.json), t3.textBody && (this.text = new
|
|
32174
|
+
}, this.json = t3, this.id = t3.id, this.container.name = t3.id, this.renderContainer.name = t3.id + "-render-container", this.fillStyle = t3.fillStyle, this.lineStyle = t3.lineStyle, this.pathMaskTextureId = t3.id + "-path-graphics", this.backgroundMaskTextureId = t3.id + "-bg-graphics", this.geometry = t3.geometry, this.bgTextureId = t3.id + "-bg-fill", this.pathStrokeTextureId = t3.id + "-path-fill", this.ctx.timingTargets.addTarget(this.id, this), ((i2 = this.fillStyle) === null || i2 === void 0 ? void 0 : i2.fillType) === "solidFill" && (this.fillColorFilter.currentColor = this.fillStyle.color), ((o3 = (r3 = this.lineStyle) === null || r3 === void 0 ? void 0 : r3.fill) === null || o3 === void 0 ? void 0 : o3.fillType) === "solidFill" && (this.strokeColorFilter.currentColor = this.lineStyle.fill.color), this.pathSprite.name = "path-fill", this.pathMask.name = "path-mask", this.bgSprite.name = "bg-fill", this.backgroundMask.name = "bg-mask", this.updateTransform(this.json), t3.textBody && (this.text = new CA(t3.textBody, this.ctx, t3.textBody.iterateType, { x: this.designGlobalPosition.x, y: this.designGlobalPosition.y }, !!this.json.cacheAsBitMap)), this.container.hitArea = new g_(1, 1, this.json.width, this.json.height);
|
|
32076
32175
|
}
|
|
32077
32176
|
get interactiveContainer() {
|
|
32078
32177
|
return this.renderContainer;
|
|
@@ -32214,9 +32313,10 @@ void main(void){
|
|
|
32214
32313
|
clearOnSlideChange() {
|
|
32215
32314
|
}
|
|
32216
32315
|
destroy() {
|
|
32217
|
-
|
|
32316
|
+
var t3;
|
|
32317
|
+
(t3 = this.text) === null || t3 === void 0 || t3.destroy(), this.bgSprite.destroy(), this.backgroundMask.destroy({ texture: true, baseTexture: true }), this.pathSprite.destroy(), this.pathMask.destroy({ texture: true, baseTexture: true }), this.fillColorFilter.destroy(), this.strokeColorFilter.destroy(), this.renderContainer.destroy({ texture: true, baseTexture: true }), this.cacheSprite.destroy({ texture: true, baseTexture: true }), this.arrowList.forEach((t4) => {
|
|
32218
32318
|
var e3;
|
|
32219
|
-
(e3 =
|
|
32319
|
+
(e3 = t4.sprite) === null || e3 === void 0 || e3.destroy();
|
|
32220
32320
|
});
|
|
32221
32321
|
}
|
|
32222
32322
|
}
|
|
@@ -32258,9 +32358,7 @@ void main(void){
|
|
|
32258
32358
|
this.jumpToTime(e4), this.medianIsEnd = false, this.ctx.eventHub.emit($R.mediaSeek, { id: this.targetId, time: this.media.currentTime - this.start, isPlaying: this.media.isPlaying });
|
|
32259
32359
|
}, this.jumpToTime = (t4 = 0) => {
|
|
32260
32360
|
const e4 = Math.floor(t4) + this.start;
|
|
32261
|
-
this.media.currentTime !== e4 && (this.media.currentTime = e4
|
|
32262
|
-
this.media.play().then(() => this.media.pause());
|
|
32263
|
-
}, 16));
|
|
32361
|
+
this.media.currentTime !== e4 && (this.media.currentTime = e4);
|
|
32264
32362
|
}, this.showController = (t4) => {
|
|
32265
32363
|
t4.stopPropagation(), this.show();
|
|
32266
32364
|
}, this.getMediaDuration = () => {
|
|
@@ -32378,7 +32476,7 @@ void main(void){
|
|
|
32378
32476
|
class VA extends a.a {
|
|
32379
32477
|
constructor(t3) {
|
|
32380
32478
|
var e3, n2;
|
|
32381
|
-
super(), this.type = "video", this.sprite = new Ow(), this.isPlaying = false, this.id = t3.id, this.video = t3.video, this.start = (e3 = t3.video.cut) === null || e3 === void 0 ? void 0 : e3.start, this.end = (n2 = t3.video.cut) === null || n2 === void 0 ? void 0 : n2.end, this.container = t3.container, this.ctx = t3.ctx, this.ctx.medias[this.id] = this, this.videoResource = new
|
|
32479
|
+
super(), this.type = "video", this.sprite = new Ow(), this.isPlaying = false, this.id = t3.id, this.video = t3.video, this.start = (e3 = t3.video.cut) === null || e3 === void 0 ? void 0 : e3.start, this.end = (n2 = t3.video.cut) === null || n2 === void 0 ? void 0 : n2.end, this.container = t3.container, this.ctx = t3.ctx, this.ctx.medias[this.id] = this, this.videoResource = new Iy(this.video.src, { autoLoad: true, autoPlay: false, updateFPS: 30, crossorigin: true });
|
|
32382
32480
|
const { video: i2, width: r3, height: o3, sprite: s3 } = t3;
|
|
32383
32481
|
this.controller = new zA({ targetId: t3.id, ctx: t3.ctx, width: r3, height: o3, sprite: s3, media: this, info: i2, canvasElement: t3.canvasElement }), this.controller.addPlayCallBack(() => {
|
|
32384
32482
|
this.sprite.width = r3, this.sprite.height = o3, this.ctx.clock.setTimeout(() => {
|
|
@@ -32480,7 +32578,7 @@ void main(void){
|
|
|
32480
32578
|
};
|
|
32481
32579
|
class XA extends a.a {
|
|
32482
32580
|
constructor(t3) {
|
|
32483
|
-
super(), this.type = "audio", this.isPlaying = false, this.id = t3.id, this.audio = t3.audio, this.container = t3.container, this.
|
|
32581
|
+
super(), this.type = "audio", this.isPlaying = false, this.id = t3.id, this.audio = t3.audio, this.container = t3.container, this.audioEl = document.createElement("audio"), this.audioEl.src = this.audio.src, t3.audio.cut && (this.start = t3.audio.cut.start, this.end = t3.audio.cut.end), this.ctx = t3.ctx, this.ctx.medias[this.id] = this;
|
|
32484
32582
|
const { width: e3, height: n2, sprite: i2 } = t3;
|
|
32485
32583
|
this.controller = new zA({ targetId: t3.id, ctx: t3.ctx, height: n2, width: e3, sprite: i2, media: this, info: this.audio, canvasElement: t3.canvasElement }), ["durationchange", "timeupdate", "pause", "play"].forEach((t4) => {
|
|
32486
32584
|
this.audioEl.addEventListener(t4, () => {
|
|
@@ -32612,7 +32710,7 @@ void main(void){
|
|
|
32612
32710
|
class ZA extends fA {
|
|
32613
32711
|
constructor(t3, e3, n2) {
|
|
32614
32712
|
var i2, r3, o3, s3;
|
|
32615
|
-
super(t3, e3, n2), this.children = [], this.cacheSprite = new Ow(), this.cacheContainer = new ty(), this.json = t3, this.container.name = t3.id, this.fillTextureId = t3.id + "-bg-fill", this.ctx.timingTargets.addTarget(t3.id, this);
|
|
32713
|
+
super(t3, e3, n2), this.children = [], this.cacheSprite = new Ow(), this.cacheContainer = new ty(), this.json = t3, this.container.name = t3.id, this.fillTextureId = t3.id + "-bg-fill", this.cacheContainer.name = t3.id + "-cache-container", this.ctx.timingTargets.addTarget(t3.id, this);
|
|
32616
32714
|
const a2 = { x: (r3 = (i2 = t3.position) === null || i2 === void 0 ? void 0 : i2.x) !== null && r3 !== void 0 ? r3 : 0, y: (s3 = (o3 = t3.position) === null || o3 === void 0 ? void 0 : o3.y) !== null && s3 !== void 0 ? s3 : 0 };
|
|
32617
32715
|
t3.children.forEach((t4) => {
|
|
32618
32716
|
let e4 = null;
|
|
@@ -32659,7 +32757,7 @@ void main(void){
|
|
|
32659
32757
|
this.children.forEach((t3) => t3.clearOnSlideChange());
|
|
32660
32758
|
}
|
|
32661
32759
|
destroy() {
|
|
32662
|
-
this.cacheSprite && this.cacheSprite.destroy({ texture: true }), this.children.forEach((t3) => t3.destroy()), this.container.destroy(), this.cacheContainer.destroy();
|
|
32760
|
+
this.cacheSprite && this.cacheSprite.destroy({ texture: true }), this.children.forEach((t3) => t3.destroy()), this.container.destroy(), this.cacheContainer.destroy({ children: true, texture: true, baseTexture: true });
|
|
32663
32761
|
}
|
|
32664
32762
|
}
|
|
32665
32763
|
class JA extends a.a {
|
|
@@ -33639,7 +33737,7 @@ void main(void){
|
|
|
33639
33737
|
this.globalEventHub.emit(t3);
|
|
33640
33738
|
}
|
|
33641
33739
|
}
|
|
33642
|
-
var
|
|
33740
|
+
var CR = function(t3, e3, n2, i2) {
|
|
33643
33741
|
return new (n2 || (n2 = Promise))(function(r3, o3) {
|
|
33644
33742
|
function s3(t4) {
|
|
33645
33743
|
try {
|
|
@@ -33664,7 +33762,7 @@ void main(void){
|
|
|
33664
33762
|
l2((i2 = i2.apply(t3, e3 || [])).next());
|
|
33665
33763
|
});
|
|
33666
33764
|
};
|
|
33667
|
-
class
|
|
33765
|
+
class IR extends ZA {
|
|
33668
33766
|
constructor(t3, e3, n2) {
|
|
33669
33767
|
super({ id: "stage", width: t3.width, height: t3.height, type: "Container", children: t3.children }, e3, n2), this.isRendered = false, this.isTimingStartValueCollected = false, this.globalEventHub = new a.a(), this.json = t3, this.container.visible = false, this.ctx = e3;
|
|
33670
33768
|
const i2 = new Aw();
|
|
@@ -33681,7 +33779,7 @@ void main(void){
|
|
|
33681
33779
|
return this.container;
|
|
33682
33780
|
}
|
|
33683
33781
|
render(t3) {
|
|
33684
|
-
this.isRendered || (this.isRendered = true, super.render(t3), t3.push(() =>
|
|
33782
|
+
this.isRendered || (this.isRendered = true, super.render(t3), t3.push(() => CR(this, void 0, void 0, function* () {
|
|
33685
33783
|
this.ctx.eventHub.emit("StageRenderEnd");
|
|
33686
33784
|
})));
|
|
33687
33785
|
}
|
|
@@ -33755,7 +33853,7 @@ void main(void){
|
|
|
33755
33853
|
(i2 = this.timing) === null || i2 === void 0 || i2.setInteractiveSeqState(t3, e3, n2);
|
|
33756
33854
|
}
|
|
33757
33855
|
setMediaState(t3, e3) {
|
|
33758
|
-
return
|
|
33856
|
+
return CR(this, void 0, void 0, function* () {
|
|
33759
33857
|
const n2 = this.ctx.medias[t3];
|
|
33760
33858
|
n2 && (e3 ? yield n2.play() : yield n2.pause());
|
|
33761
33859
|
});
|
|
@@ -33862,6 +33960,25 @@ void main(void){
|
|
|
33862
33960
|
}, isAndroid() {
|
|
33863
33961
|
let t3 = false;
|
|
33864
33962
|
return window.__nativeTags && window.__nativeTags.platform && /^android/i.test(window.__nativeTags.platform) && (t3 = true), zR.name && /android/i.test(zR.name) && (t3 = true), t3;
|
|
33963
|
+
}, isSupportTransaction() {
|
|
33964
|
+
var t3, e3;
|
|
33965
|
+
const n2 = (e3 = (t3 = window.__nativeTags) === null || t3 === void 0 ? void 0 : t3.platform) !== null && e3 !== void 0 ? e3 : "";
|
|
33966
|
+
if (n2) {
|
|
33967
|
+
const t4 = n2.split(" ");
|
|
33968
|
+
if (t4[1]) {
|
|
33969
|
+
if (/^iPad/.test(t4[1])) {
|
|
33970
|
+
const e4 = t4[1].match(/^iPad(\d+)/);
|
|
33971
|
+
return !!(e4 && e4[1] && parseInt(e4[1], 10) >= 6);
|
|
33972
|
+
}
|
|
33973
|
+
if (/^iPhone/.test(t4[1])) {
|
|
33974
|
+
const e4 = t4[1].match(/^iPhone(\d+)/);
|
|
33975
|
+
return !!(e4 && e4[1] && parseInt(e4[1], 10) >= 9);
|
|
33976
|
+
}
|
|
33977
|
+
return true;
|
|
33978
|
+
}
|
|
33979
|
+
return true;
|
|
33980
|
+
}
|
|
33981
|
+
return true;
|
|
33865
33982
|
} };
|
|
33866
33983
|
var VR = function(t3, e3, n2, i2) {
|
|
33867
33984
|
return new (n2 || (n2 = Promise))(function(r3, o3) {
|
|
@@ -33916,7 +34033,7 @@ void main(void){
|
|
|
33916
34033
|
createCtx(t3) {
|
|
33917
34034
|
const { task: e3 } = this.stageStates[t3];
|
|
33918
34035
|
e3.addMTask(() => {
|
|
33919
|
-
const e4 = new lM(this.loader), n2 = new a.a(), i2 = { mode: this.mode, renderer: this.renderer, graphicsTexture: new xM(this.taskId, t3, this.microTaskManager, this.renderer, this.graphicsCache), fillTexture: new sA(this.taskId, t3, this.microTaskManager, this.renderer, e4, this.fillCache), stageWidth: 0, stageHeight: 0, ticker: this.ticker, timingTargets: new lA(n2), eventHub: n2, view: this.view, medias: Object.create(null), lastViewedIndex: 0, conflictTimeNodeManager: new aA(), clock: this.clock, spriteTexture: e4 };
|
|
34036
|
+
const e4 = new lM(this.loader), n2 = new a.a(), i2 = { mode: this.mode, renderer: this.renderer, graphicsTexture: new xM(this.taskId, t3, this.microTaskManager, this.renderer, this.graphicsCache), fillTexture: new sA(this.taskId, t3, this.microTaskManager, this.renderer, e4, this.fillCache), stageWidth: 0, stageHeight: 0, ticker: this.ticker, timingTargets: new lA(n2), eventHub: n2, view: this.view, medias: Object.create(null), lastViewedIndex: 0, conflictTimeNodeManager: new aA(), clock: this.clock, spriteTexture: e4, slideIndex: t3 };
|
|
33920
34037
|
return this.stageCtxs[t3] = i2, Promise.resolve();
|
|
33921
34038
|
});
|
|
33922
34039
|
}
|
|
@@ -33941,7 +34058,7 @@ void main(void){
|
|
|
33941
34058
|
createStage(t3) {
|
|
33942
34059
|
const { task: e3 } = this.stageStates[t3];
|
|
33943
34060
|
e3.addMTask(() => {
|
|
33944
|
-
const e4 = this.stageJsons[t3], n2 = this.stageCtxs[t3], i2 = new
|
|
34061
|
+
const e4 = this.stageJsons[t3], n2 = this.stageCtxs[t3], i2 = new IR(e4, n2, { x: 0, y: 0 });
|
|
33945
34062
|
return this.stageImpls[t3] = i2, i2.preRender(), Promise.resolve();
|
|
33946
34063
|
});
|
|
33947
34064
|
}
|
|
@@ -34030,7 +34147,7 @@ void main(void){
|
|
|
34030
34147
|
}
|
|
34031
34148
|
s3.push(() => VR(this, void 0, void 0, function* () {
|
|
34032
34149
|
var e4, r4;
|
|
34033
|
-
if (!(yield (e4 = this.snapshotCache) === null || e4 === void 0 ? void 0 : e4.getItem(t3.toString()))) {
|
|
34150
|
+
if (!(yield (e4 = this.snapshotCache) === null || e4 === void 0 ? void 0 : e4.getItem(t3.toString())) && KR.platform.isSupportTransaction()) {
|
|
34034
34151
|
n2.createTiming(), n2.container.visible = true, n2.collectMainSeqStartValue(), n2.setMainSeqStep(0, "start");
|
|
34035
34152
|
const e5 = Hy.create({ width: n2.json.width, height: n2.json.height, resolution: 1 });
|
|
34036
34153
|
KR.textureCacheSize += e5.width * e5.height, i2.renderer.render(n2.container, { renderTexture: e5 });
|
|
@@ -34107,7 +34224,7 @@ void main(void){
|
|
|
34107
34224
|
const JR = { randomBar: "RandomLines", circle: "Shape", ripple: "Ripples", wipe: "Erase", dissolve: "Dissolve", morph: "Smooth", fade: "FadeInOut", push: "Push", split: "Separation", reveal: "Display", pull: "Uncover", cover: "Cover", flash: "Flash", checker: "Checkerboard", blinds: "WindowShades", curtains: "Curtain", fallOver: "Fall", drape: "Suspension", wheel: "Clock", comb: "Combing", warp: "Scale", peelOff: "PeelOff", flip: "Flip" }, $R = { mainSeqStepChange: "mainSeqStepChange", mainSeqStateChange: "mainSeqStateChange", interactiveSeqStateChange: "interactiveSeqStateChange", interactiveSeqAction: "interactiveSeqAction", mainSeqStepStart: "mainSeqStepStart", mainSeqStepEnd: "mainSeqStepEnd", slideChange: "slideChange", renderStart: "renderStart", renderEnd: "renderEnd", hyperlinkTrigger: "hyperlinkTrigger", animateStart: "animateStart", animateEnd: "animateEnd", mediaSeek: "mediaSeek", mediaPlay: "mediaPlay", mediaPause: "mediaPause", requestNextSlide: "requestNextSlide", requestPrevSlide: "requestPrevSlide", requestGotoSlide: "requestGotoSlide" };
|
|
34108
34225
|
class KR extends a.a {
|
|
34109
34226
|
constructor(t3, e3 = {}) {
|
|
34110
|
-
super(), this.loader = new $E(true), this.transactionPlayer =
|
|
34227
|
+
super(), this.loader = new $E(true), this.transactionPlayer = null, this.transactionSprite = new Ow(), this.isForward = true, this.drawCall = 0, this.scale = 1, this.prevSlideBase64 = null, this.fps = new qE(), this.designWidth = 0, this.designHeight = 0, this.currentIndex = 0, this.slideCount = 0, this.runtime = { drawCall: 0, fps: 0 }, this.mode = t3;
|
|
34111
34228
|
let n2 = Math.max(window.devicePixelRatio, 2);
|
|
34112
34229
|
jR.isDesktop() || (n2 = 1), this.config = { minFPS: Object(l.isUndefined)(e3.minFPS) ? 30 : e3.minFPS, maxFPS: Object(l.isUndefined)(e3.maxFPS) ? 40 : e3.maxFPS, resolution: Object(l.isUndefined)(e3.resolution) ? n2 : e3.resolution, autoFPS: !Object(l.isUndefined)(e3.autoFPS) && e3.autoFPS, autoResolution: !Object(l.isUndefined)(e3.autoResolution) && e3.autoResolution, transactionBgColor: Object(l.isUndefined)(e3.transactionBgColor) ? 0 : e3.transactionBgColor }, this.app = new Lb({ antialias: true, autoDensity: false, backgroundColor: 16777215 }), this.updateConfig(this.config), this.app.view.style.zIndex = "1", this.app.stage.sortableChildren = true;
|
|
34113
34230
|
const i2 = this.app.renderer, { drawElements: r3 } = i2.gl;
|
|
@@ -34135,7 +34252,7 @@ void main(void){
|
|
|
34135
34252
|
}
|
|
34136
34253
|
}), this.app.ticker.add(() => {
|
|
34137
34254
|
this.runtime.drawCall = this.drawCall, this.runtime.fps = Math.floor(this.app.ticker.minFPS), this.drawCall = 0;
|
|
34138
|
-
}, null, ey.LOW), this.clock = new sM(this.app.ticker), this.objPoolGroup = iM(), this.stagePool = new YR(this.loader, this.mode, this.app.renderer, this.app.ticker, this.app.view, this.clock, this.objPoolGroup);
|
|
34255
|
+
}, null, ey.LOW), this.clock = new sM(this.app.ticker), this.objPoolGroup = iM(), this.stagePool = new YR(this.loader, this.mode, this.app.renderer, this.app.ticker, this.app.view, this.clock, this.objPoolGroup), jR.isSupportTransaction() && (this.transactionPlayer = new og());
|
|
34139
34256
|
}
|
|
34140
34257
|
get view() {
|
|
34141
34258
|
return this.app.renderer ? this.app.view : null;
|
|
@@ -34196,7 +34313,7 @@ void main(void){
|
|
|
34196
34313
|
const e3 = Hy.create({ width: this.designWidth, height: this.designHeight, resolution: 1 });
|
|
34197
34314
|
KR.textureCacheSize += e3.width * e3.height, this.app.renderer.render(t3.container, { renderTexture: e3 });
|
|
34198
34315
|
const n2 = this.app.renderer.plugins.extract.base64(e3, "image/jpeg");
|
|
34199
|
-
return e3.destroy(), n2;
|
|
34316
|
+
return e3.destroy(true), n2;
|
|
34200
34317
|
}
|
|
34201
34318
|
playTransaction(t3, e3, n2, i2, r3) {
|
|
34202
34319
|
return ZR(this, void 0, void 0, function* () {
|
|
@@ -34217,9 +34334,11 @@ void main(void){
|
|
|
34217
34334
|
});
|
|
34218
34335
|
}
|
|
34219
34336
|
scaleView(t3, e3 = false) {
|
|
34220
|
-
this.
|
|
34221
|
-
|
|
34222
|
-
|
|
34337
|
+
if (this.view && (this.view.style.width = Math.floor(this.designWidth * t3) + "px", this.view.style.height = Math.floor(this.designHeight * t3) + "px"), e3) {
|
|
34338
|
+
this.scale = t3;
|
|
34339
|
+
const e4 = this.scale * this.config.resolution;
|
|
34340
|
+
this.updateResolution(e4);
|
|
34341
|
+
}
|
|
34223
34342
|
}
|
|
34224
34343
|
updateResolution(t3) {
|
|
34225
34344
|
this.app.ticker.addOnce(() => {
|
|
@@ -34298,16 +34417,19 @@ void main(void){
|
|
|
34298
34417
|
createSnapshotForNextSlide() {
|
|
34299
34418
|
var t3;
|
|
34300
34419
|
const e3 = this.nextSlideIndex, n2 = this.stagePool.getStageJson(e3);
|
|
34301
|
-
n2 && n2.transition && n2.transition.type && this.currentStage && (this.prevSlideBase64 = this.getBase64(this.currentStage), this.currentStage.timing && !this.currentStage.timing.mainSeqHasNextStep() && ((t3 = this.snapshotCache) === null || t3 === void 0 || t3.setItem(this.currentStage.json.index + "-end", this.prevSlideBase64)));
|
|
34420
|
+
n2 && n2.transition && n2.transition.type && this.currentStage && this.transactionPlayer && (this.prevSlideBase64 = this.getBase64(this.currentStage), this.currentStage.timing && !this.currentStage.timing.mainSeqHasNextStep() && ((t3 = this.snapshotCache) === null || t3 === void 0 || t3.setItem(this.currentStage.json.index + "-end", this.prevSlideBase64)));
|
|
34302
34421
|
}
|
|
34303
34422
|
destroy() {
|
|
34304
34423
|
var t3;
|
|
34305
|
-
fM.collectObjectByGroup(this.objPoolGroup), mM.collectObjectByGroup(this.objPoolGroup), (t3 = this.transactionPlayer) === null || t3 === void 0 || t3.destroy(), this.loader.destroy(), this.fps.destroy(), this.stagePool.destroyAllStage();
|
|
34306
34424
|
try {
|
|
34307
|
-
this.app.renderer.
|
|
34425
|
+
this.app.renderer.filter.texturePool.clear(true), fM.collectObjectByGroup(this.objPoolGroup), mM.collectObjectByGroup(this.objPoolGroup), (t3 = this.transactionPlayer) === null || t3 === void 0 || t3.destroy(), this.loader.destroy(), this.fps.destroy(), this.stagePool.destroyAllStage();
|
|
34426
|
+
try {
|
|
34427
|
+
this.app.renderer.gl.getExtension("WEBGL_lose_context").loseContext();
|
|
34428
|
+
} catch (t4) {
|
|
34429
|
+
}
|
|
34430
|
+
this.app.destroy(true, { children: true, texture: true, baseTexture: true });
|
|
34308
34431
|
} catch (t4) {
|
|
34309
34432
|
}
|
|
34310
|
-
this.app.destroy(true, { children: false, texture: true, baseTexture: true });
|
|
34311
34433
|
}
|
|
34312
34434
|
}
|
|
34313
34435
|
KR.textureCacheSize = 0, KR.storeManager = ZE, KR.platform = jR;
|
|
@@ -34420,7 +34542,7 @@ void main(void){
|
|
|
34420
34542
|
SP.push(t3), nP();
|
|
34421
34543
|
}, MP = 0, AP = { attributes: true, characterData: true, childList: true, subtree: true }, RP = ["resize", "load", "transitionend", "animationend", "animationstart", "animationiteration", "keyup", "keydown", "mouseup", "mousedown", "mouseover", "mouseout", "blur", "focus"], PP = function(t3) {
|
|
34422
34544
|
return t3 === void 0 && (t3 = 0), Date.now() + t3;
|
|
34423
|
-
},
|
|
34545
|
+
}, CP = false, IP = new (function() {
|
|
34424
34546
|
function t3() {
|
|
34425
34547
|
var t4 = this;
|
|
34426
34548
|
this.stopped = true, this.listener = function() {
|
|
@@ -34429,15 +34551,15 @@ void main(void){
|
|
|
34429
34551
|
}
|
|
34430
34552
|
return t3.prototype.run = function(t4) {
|
|
34431
34553
|
var e3 = this;
|
|
34432
|
-
if (t4 === void 0 && (t4 = 250), !
|
|
34433
|
-
|
|
34554
|
+
if (t4 === void 0 && (t4 = 250), !CP) {
|
|
34555
|
+
CP = true;
|
|
34434
34556
|
var n2, i2 = PP(t4);
|
|
34435
34557
|
n2 = function() {
|
|
34436
34558
|
var n3 = false;
|
|
34437
34559
|
try {
|
|
34438
34560
|
n3 = wP();
|
|
34439
34561
|
} finally {
|
|
34440
|
-
if (
|
|
34562
|
+
if (CP = false, t4 = i2 - PP(), !MP)
|
|
34441
34563
|
return;
|
|
34442
34564
|
n3 ? e3.run(1e3) : t4 > 0 ? e3.run(t4) : e3.start();
|
|
34443
34565
|
}
|
|
@@ -34464,7 +34586,7 @@ void main(void){
|
|
|
34464
34586
|
}), this.stopped = true);
|
|
34465
34587
|
}, t3;
|
|
34466
34588
|
}())(), OP = function(t3) {
|
|
34467
|
-
!MP && t3 > 0 &&
|
|
34589
|
+
!MP && t3 > 0 && IP.start(), !(MP += t3) && IP.stop();
|
|
34468
34590
|
}, LP = function() {
|
|
34469
34591
|
function t3(t4, e3) {
|
|
34470
34592
|
this.target = t4, this.observedBox = e3 || QR.CONTENT_BOX, this.lastReportedSize = { inlineSize: 0, blockSize: 0 };
|
|
@@ -34503,7 +34625,7 @@ void main(void){
|
|
|
34503
34625
|
DP.set(t4, n2);
|
|
34504
34626
|
}, t3.observe = function(t4, e3, n2) {
|
|
34505
34627
|
var i2 = DP.get(t4), r3 = i2.observationTargets.length === 0;
|
|
34506
|
-
FP(i2.observationTargets, e3) < 0 && (r3 && tP.push(i2), i2.observationTargets.push(new LP(e3, n2 && n2.box)), OP(1),
|
|
34628
|
+
FP(i2.observationTargets, e3) < 0 && (r3 && tP.push(i2), i2.observationTargets.push(new LP(e3, n2 && n2.box)), OP(1), IP.schedule());
|
|
34507
34629
|
}, t3.unobserve = function(t4, e3) {
|
|
34508
34630
|
var n2 = DP.get(t4), i2 = FP(n2.observationTargets, e3), r3 = n2.observationTargets.length === 1;
|
|
34509
34631
|
i2 >= 0 && (r3 && tP.splice(tP.indexOf(n2), 1), n2.observationTargets.splice(i2, 1), OP(-1));
|
|
@@ -34828,10 +34950,10 @@ void main(void){
|
|
|
34828
34950
|
return typeof t3;
|
|
34829
34951
|
} : function(t3) {
|
|
34830
34952
|
return t3 && typeof Symbol == "function" && t3.constructor === Symbol && t3 !== Symbol.prototype ? "symbol" : typeof t3;
|
|
34831
|
-
},
|
|
34953
|
+
}, tC = function(t3, e3) {
|
|
34832
34954
|
if (!(t3 instanceof e3))
|
|
34833
34955
|
throw new TypeError("Cannot call a class as a function");
|
|
34834
|
-
},
|
|
34956
|
+
}, eC = function() {
|
|
34835
34957
|
function t3(t4, e3) {
|
|
34836
34958
|
for (var n2 = 0; n2 < e3.length; n2++) {
|
|
34837
34959
|
var i2 = e3[n2];
|
|
@@ -34841,7 +34963,7 @@ void main(void){
|
|
|
34841
34963
|
return function(e3, n2, i2) {
|
|
34842
34964
|
return n2 && t3(e3.prototype, n2), i2 && t3(e3, i2), e3;
|
|
34843
34965
|
};
|
|
34844
|
-
}(),
|
|
34966
|
+
}(), nC = function t3(e3, n2, i2) {
|
|
34845
34967
|
e3 === null && (e3 = Function.prototype);
|
|
34846
34968
|
var r3 = Object.getOwnPropertyDescriptor(e3, n2);
|
|
34847
34969
|
if (r3 === void 0) {
|
|
@@ -34852,21 +34974,21 @@ void main(void){
|
|
|
34852
34974
|
return r3.value;
|
|
34853
34975
|
var s3 = r3.get;
|
|
34854
34976
|
return s3 !== void 0 ? s3.call(i2) : void 0;
|
|
34855
|
-
},
|
|
34977
|
+
}, iC = function(t3, e3) {
|
|
34856
34978
|
if (typeof e3 != "function" && e3 !== null)
|
|
34857
34979
|
throw new TypeError("Super expression must either be null or a function, not " + typeof e3);
|
|
34858
34980
|
t3.prototype = Object.create(e3 && e3.prototype, { constructor: { value: t3, enumerable: false, writable: true, configurable: true } }), e3 && (Object.setPrototypeOf ? Object.setPrototypeOf(t3, e3) : t3.__proto__ = e3);
|
|
34859
|
-
},
|
|
34981
|
+
}, rC = function(t3, e3) {
|
|
34860
34982
|
if (!t3)
|
|
34861
34983
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
34862
34984
|
return !e3 || typeof e3 != "object" && typeof e3 != "function" ? t3 : e3;
|
|
34863
|
-
},
|
|
34985
|
+
}, oC = function() {
|
|
34864
34986
|
function t3() {
|
|
34865
|
-
if (
|
|
34987
|
+
if (tC(this, t3), this.__state = JP.apply(this, arguments), this.__state === false)
|
|
34866
34988
|
throw new Error("Failed to interpret color arguments");
|
|
34867
34989
|
this.__state.a = this.__state.a || 1;
|
|
34868
34990
|
}
|
|
34869
|
-
return
|
|
34991
|
+
return eC(t3, [{ key: "toString", value: function() {
|
|
34870
34992
|
return jP(this);
|
|
34871
34993
|
} }, { key: "toHexString", value: function() {
|
|
34872
34994
|
return jP(this, true);
|
|
@@ -34874,21 +34996,21 @@ void main(void){
|
|
|
34874
34996
|
return this.__state.conversion.write(this);
|
|
34875
34997
|
} }]), t3;
|
|
34876
34998
|
}();
|
|
34877
|
-
function
|
|
34999
|
+
function sC(t3, e3, n2) {
|
|
34878
35000
|
Object.defineProperty(t3, e3, { get: function() {
|
|
34879
|
-
return this.__state.space === "RGB" ||
|
|
35001
|
+
return this.__state.space === "RGB" || oC.recalculateRGB(this, e3, n2), this.__state[e3];
|
|
34880
35002
|
}, set: function(t4) {
|
|
34881
|
-
this.__state.space !== "RGB" && (
|
|
35003
|
+
this.__state.space !== "RGB" && (oC.recalculateRGB(this, e3, n2), this.__state.space = "RGB"), this.__state[e3] = t4;
|
|
34882
35004
|
} });
|
|
34883
35005
|
}
|
|
34884
|
-
function
|
|
35006
|
+
function aC(t3, e3) {
|
|
34885
35007
|
Object.defineProperty(t3, e3, { get: function() {
|
|
34886
|
-
return this.__state.space === "HSV" ||
|
|
35008
|
+
return this.__state.space === "HSV" || oC.recalculateHSV(this), this.__state[e3];
|
|
34887
35009
|
}, set: function(t4) {
|
|
34888
|
-
this.__state.space !== "HSV" && (
|
|
35010
|
+
this.__state.space !== "HSV" && (oC.recalculateHSV(this), this.__state.space = "HSV"), this.__state[e3] = t4;
|
|
34889
35011
|
} });
|
|
34890
35012
|
}
|
|
34891
|
-
|
|
35013
|
+
oC.recalculateRGB = function(t3, e3, n2) {
|
|
34892
35014
|
if (t3.__state.space === "HEX")
|
|
34893
35015
|
t3.__state[e3] = KP.component_from_hex(t3.__state.hex, n2);
|
|
34894
35016
|
else {
|
|
@@ -34896,23 +35018,23 @@ void main(void){
|
|
|
34896
35018
|
throw new Error("Corrupted color state");
|
|
34897
35019
|
XP.extend(t3.__state, KP.hsv_to_rgb(t3.__state.h, t3.__state.s, t3.__state.v));
|
|
34898
35020
|
}
|
|
34899
|
-
},
|
|
35021
|
+
}, oC.recalculateHSV = function(t3) {
|
|
34900
35022
|
var e3 = KP.rgb_to_hsv(t3.r, t3.g, t3.b);
|
|
34901
35023
|
XP.extend(t3.__state, { s: e3.s, v: e3.v }), XP.isNaN(e3.h) ? XP.isUndefined(t3.__state.h) && (t3.__state.h = 0) : t3.__state.h = e3.h;
|
|
34902
|
-
},
|
|
35024
|
+
}, oC.COMPONENTS = ["r", "g", "b", "h", "s", "v", "hex", "a"], sC(oC.prototype, "r", 2), sC(oC.prototype, "g", 1), sC(oC.prototype, "b", 0), aC(oC.prototype, "h"), aC(oC.prototype, "s"), aC(oC.prototype, "v"), Object.defineProperty(oC.prototype, "a", { get: function() {
|
|
34903
35025
|
return this.__state.a;
|
|
34904
35026
|
}, set: function(t3) {
|
|
34905
35027
|
this.__state.a = t3;
|
|
34906
|
-
} }), Object.defineProperty(
|
|
35028
|
+
} }), Object.defineProperty(oC.prototype, "hex", { get: function() {
|
|
34907
35029
|
return this.__state.space !== "HEX" && (this.__state.hex = KP.rgb_to_hex(this.r, this.g, this.b), this.__state.space = "HEX"), this.__state.hex;
|
|
34908
35030
|
}, set: function(t3) {
|
|
34909
35031
|
this.__state.space = "HEX", this.__state.hex = t3;
|
|
34910
35032
|
} });
|
|
34911
|
-
var
|
|
35033
|
+
var lC = function() {
|
|
34912
35034
|
function t3(e3, n2) {
|
|
34913
|
-
|
|
35035
|
+
tC(this, t3), this.initialValue = e3[n2], this.domElement = document.createElement("div"), this.object = e3, this.property = n2, this.__onChange = void 0, this.__onFinishChange = void 0;
|
|
34914
35036
|
}
|
|
34915
|
-
return
|
|
35037
|
+
return eC(t3, [{ key: "onChange", value: function(t4) {
|
|
34916
35038
|
return this.__onChange = t4, this;
|
|
34917
35039
|
} }, { key: "onFinishChange", value: function(t4) {
|
|
34918
35040
|
return this.__onFinishChange = t4, this;
|
|
@@ -34925,20 +35047,20 @@ void main(void){
|
|
|
34925
35047
|
} }, { key: "isModified", value: function() {
|
|
34926
35048
|
return this.initialValue !== this.getValue();
|
|
34927
35049
|
} }]), t3;
|
|
34928
|
-
}(),
|
|
35050
|
+
}(), uC = {};
|
|
34929
35051
|
XP.each({ HTMLEvents: ["change"], MouseEvents: ["click", "mousemove", "mousedown", "mouseup", "mouseover"], KeyboardEvents: ["keydown"] }, function(t3, e3) {
|
|
34930
35052
|
XP.each(t3, function(t4) {
|
|
34931
|
-
|
|
35053
|
+
uC[t4] = e3;
|
|
34932
35054
|
});
|
|
34933
35055
|
});
|
|
34934
|
-
var
|
|
34935
|
-
function
|
|
35056
|
+
var hC = /(\d+(\.\d+)?)px/;
|
|
35057
|
+
function cC(t3) {
|
|
34936
35058
|
if (t3 === "0" || XP.isUndefined(t3))
|
|
34937
35059
|
return 0;
|
|
34938
|
-
var e3 = t3.match(
|
|
35060
|
+
var e3 = t3.match(hC);
|
|
34939
35061
|
return XP.isNull(e3) ? 0 : parseFloat(e3[1]);
|
|
34940
35062
|
}
|
|
34941
|
-
var
|
|
35063
|
+
var dC = { makeSelectable: function(t3, e3) {
|
|
34942
35064
|
t3 !== void 0 && t3.style !== void 0 && (t3.onselectstart = e3 ? function() {
|
|
34943
35065
|
return false;
|
|
34944
35066
|
} : function() {
|
|
@@ -34947,7 +35069,7 @@ void main(void){
|
|
|
34947
35069
|
var i2 = n2, r3 = e3;
|
|
34948
35070
|
XP.isUndefined(r3) && (r3 = true), XP.isUndefined(i2) && (i2 = true), t3.style.position = "absolute", r3 && (t3.style.left = 0, t3.style.right = 0), i2 && (t3.style.top = 0, t3.style.bottom = 0);
|
|
34949
35071
|
}, fakeEvent: function(t3, e3, n2, i2) {
|
|
34950
|
-
var r3 = n2 || {}, o3 =
|
|
35072
|
+
var r3 = n2 || {}, o3 = uC[e3];
|
|
34951
35073
|
if (!o3)
|
|
34952
35074
|
throw new Error("Event type " + e3 + " not supported.");
|
|
34953
35075
|
var s3 = document.createEvent(o3);
|
|
@@ -34966,10 +35088,10 @@ void main(void){
|
|
|
34966
35088
|
XP.defaults(s3, i2), t3.dispatchEvent(s3);
|
|
34967
35089
|
}, bind: function(t3, e3, n2, i2) {
|
|
34968
35090
|
var r3 = i2 || false;
|
|
34969
|
-
return t3.addEventListener ? t3.addEventListener(e3, n2, r3) : t3.attachEvent && t3.attachEvent("on" + e3, n2),
|
|
35091
|
+
return t3.addEventListener ? t3.addEventListener(e3, n2, r3) : t3.attachEvent && t3.attachEvent("on" + e3, n2), dC;
|
|
34970
35092
|
}, unbind: function(t3, e3, n2, i2) {
|
|
34971
35093
|
var r3 = i2 || false;
|
|
34972
|
-
return t3.removeEventListener ? t3.removeEventListener(e3, n2, r3) : t3.detachEvent && t3.detachEvent("on" + e3, n2),
|
|
35094
|
+
return t3.removeEventListener ? t3.removeEventListener(e3, n2, r3) : t3.detachEvent && t3.detachEvent("on" + e3, n2), dC;
|
|
34973
35095
|
}, addClass: function(t3, e3) {
|
|
34974
35096
|
if (t3.className === void 0)
|
|
34975
35097
|
t3.className = e3;
|
|
@@ -34977,7 +35099,7 @@ void main(void){
|
|
|
34977
35099
|
var n2 = t3.className.split(/ +/);
|
|
34978
35100
|
n2.indexOf(e3) === -1 && (n2.push(e3), t3.className = n2.join(" ").replace(/^\s+/, "").replace(/\s+$/, ""));
|
|
34979
35101
|
}
|
|
34980
|
-
return
|
|
35102
|
+
return dC;
|
|
34981
35103
|
}, removeClass: function(t3, e3) {
|
|
34982
35104
|
if (e3)
|
|
34983
35105
|
if (t3.className === e3)
|
|
@@ -34988,15 +35110,15 @@ void main(void){
|
|
|
34988
35110
|
}
|
|
34989
35111
|
else
|
|
34990
35112
|
t3.className = void 0;
|
|
34991
|
-
return
|
|
35113
|
+
return dC;
|
|
34992
35114
|
}, hasClass: function(t3, e3) {
|
|
34993
35115
|
return new RegExp("(?:^|\\s+)" + e3 + "(?:\\s+|$)").test(t3.className) || false;
|
|
34994
35116
|
}, getWidth: function(t3) {
|
|
34995
35117
|
var e3 = getComputedStyle(t3);
|
|
34996
|
-
return
|
|
35118
|
+
return cC(e3["border-left-width"]) + cC(e3["border-right-width"]) + cC(e3["padding-left"]) + cC(e3["padding-right"]) + cC(e3.width);
|
|
34997
35119
|
}, getHeight: function(t3) {
|
|
34998
35120
|
var e3 = getComputedStyle(t3);
|
|
34999
|
-
return
|
|
35121
|
+
return cC(e3["border-top-width"]) + cC(e3["border-bottom-width"]) + cC(e3["padding-top"]) + cC(e3["padding-bottom"]) + cC(e3.height);
|
|
35000
35122
|
}, getOffset: function(t3) {
|
|
35001
35123
|
var e3 = t3, n2 = { left: 0, top: 0 };
|
|
35002
35124
|
if (e3.offsetParent)
|
|
@@ -35006,24 +35128,24 @@ void main(void){
|
|
|
35006
35128
|
return n2;
|
|
35007
35129
|
}, isActive: function(t3) {
|
|
35008
35130
|
return t3 === document.activeElement && (t3.type || t3.href);
|
|
35009
|
-
} },
|
|
35131
|
+
} }, pC = function(t3) {
|
|
35010
35132
|
function e3(t4, n2) {
|
|
35011
|
-
|
|
35012
|
-
var i2 =
|
|
35013
|
-
return i2.__prev = i2.getValue(), i2.__checkbox = document.createElement("input"), i2.__checkbox.setAttribute("type", "checkbox"),
|
|
35133
|
+
tC(this, e3);
|
|
35134
|
+
var i2 = rC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n2)), r3 = i2;
|
|
35135
|
+
return i2.__prev = i2.getValue(), i2.__checkbox = document.createElement("input"), i2.__checkbox.setAttribute("type", "checkbox"), dC.bind(i2.__checkbox, "change", function() {
|
|
35014
35136
|
r3.setValue(!r3.__prev);
|
|
35015
35137
|
}, false), i2.domElement.appendChild(i2.__checkbox), i2.updateDisplay(), i2;
|
|
35016
35138
|
}
|
|
35017
|
-
return
|
|
35018
|
-
var n2 =
|
|
35139
|
+
return iC(e3, t3), eC(e3, [{ key: "setValue", value: function(t4) {
|
|
35140
|
+
var n2 = nC(e3.prototype.__proto__ || Object.getPrototypeOf(e3.prototype), "setValue", this).call(this, t4);
|
|
35019
35141
|
return this.__onFinishChange && this.__onFinishChange.call(this, this.getValue()), this.__prev = this.getValue(), n2;
|
|
35020
35142
|
} }, { key: "updateDisplay", value: function() {
|
|
35021
|
-
return this.getValue() === true ? (this.__checkbox.setAttribute("checked", "checked"), this.__checkbox.checked = true, this.__prev = true) : (this.__checkbox.checked = false, this.__prev = false),
|
|
35143
|
+
return this.getValue() === true ? (this.__checkbox.setAttribute("checked", "checked"), this.__checkbox.checked = true, this.__prev = true) : (this.__checkbox.checked = false, this.__prev = false), nC(e3.prototype.__proto__ || Object.getPrototypeOf(e3.prototype), "updateDisplay", this).call(this);
|
|
35022
35144
|
} }]), e3;
|
|
35023
|
-
}(
|
|
35145
|
+
}(lC), fC = function(t3) {
|
|
35024
35146
|
function e3(t4, n2, i2) {
|
|
35025
|
-
|
|
35026
|
-
var r3 =
|
|
35147
|
+
tC(this, e3);
|
|
35148
|
+
var r3 = rC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n2)), o3 = i2, s3 = r3;
|
|
35027
35149
|
if (r3.__select = document.createElement("select"), XP.isArray(o3)) {
|
|
35028
35150
|
var a2 = {};
|
|
35029
35151
|
XP.each(o3, function(t5) {
|
|
@@ -35033,59 +35155,59 @@ void main(void){
|
|
|
35033
35155
|
return XP.each(o3, function(t5, e4) {
|
|
35034
35156
|
var n3 = document.createElement("option");
|
|
35035
35157
|
n3.innerHTML = e4, n3.setAttribute("value", t5), s3.__select.appendChild(n3);
|
|
35036
|
-
}), r3.updateDisplay(),
|
|
35158
|
+
}), r3.updateDisplay(), dC.bind(r3.__select, "change", function() {
|
|
35037
35159
|
var t5 = this.options[this.selectedIndex].value;
|
|
35038
35160
|
s3.setValue(t5);
|
|
35039
35161
|
}), r3.domElement.appendChild(r3.__select), r3;
|
|
35040
35162
|
}
|
|
35041
|
-
return
|
|
35042
|
-
var n2 =
|
|
35163
|
+
return iC(e3, t3), eC(e3, [{ key: "setValue", value: function(t4) {
|
|
35164
|
+
var n2 = nC(e3.prototype.__proto__ || Object.getPrototypeOf(e3.prototype), "setValue", this).call(this, t4);
|
|
35043
35165
|
return this.__onFinishChange && this.__onFinishChange.call(this, this.getValue()), n2;
|
|
35044
35166
|
} }, { key: "updateDisplay", value: function() {
|
|
35045
|
-
return
|
|
35167
|
+
return dC.isActive(this.__select) ? this : (this.__select.value = this.getValue(), nC(e3.prototype.__proto__ || Object.getPrototypeOf(e3.prototype), "updateDisplay", this).call(this));
|
|
35046
35168
|
} }]), e3;
|
|
35047
|
-
}(
|
|
35169
|
+
}(lC), mC = function(t3) {
|
|
35048
35170
|
function e3(t4, n2) {
|
|
35049
|
-
|
|
35050
|
-
var i2 =
|
|
35171
|
+
tC(this, e3);
|
|
35172
|
+
var i2 = rC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n2)), r3 = i2;
|
|
35051
35173
|
function o3() {
|
|
35052
35174
|
r3.setValue(r3.__input.value);
|
|
35053
35175
|
}
|
|
35054
|
-
return i2.__input = document.createElement("input"), i2.__input.setAttribute("type", "text"),
|
|
35176
|
+
return i2.__input = document.createElement("input"), i2.__input.setAttribute("type", "text"), dC.bind(i2.__input, "keyup", o3), dC.bind(i2.__input, "change", o3), dC.bind(i2.__input, "blur", function() {
|
|
35055
35177
|
r3.__onFinishChange && r3.__onFinishChange.call(r3, r3.getValue());
|
|
35056
|
-
}),
|
|
35178
|
+
}), dC.bind(i2.__input, "keydown", function(t5) {
|
|
35057
35179
|
t5.keyCode === 13 && this.blur();
|
|
35058
35180
|
}), i2.updateDisplay(), i2.domElement.appendChild(i2.__input), i2;
|
|
35059
35181
|
}
|
|
35060
|
-
return
|
|
35061
|
-
return
|
|
35182
|
+
return iC(e3, t3), eC(e3, [{ key: "updateDisplay", value: function() {
|
|
35183
|
+
return dC.isActive(this.__input) || (this.__input.value = this.getValue()), nC(e3.prototype.__proto__ || Object.getPrototypeOf(e3.prototype), "updateDisplay", this).call(this);
|
|
35062
35184
|
} }]), e3;
|
|
35063
|
-
}(
|
|
35064
|
-
function
|
|
35185
|
+
}(lC);
|
|
35186
|
+
function gC(t3) {
|
|
35065
35187
|
var e3 = t3.toString();
|
|
35066
35188
|
return e3.indexOf(".") > -1 ? e3.length - e3.indexOf(".") - 1 : 0;
|
|
35067
35189
|
}
|
|
35068
|
-
var
|
|
35190
|
+
var vC = function(t3) {
|
|
35069
35191
|
function e3(t4, n2, i2) {
|
|
35070
|
-
|
|
35071
|
-
var r3 =
|
|
35072
|
-
return r3.__min = o3.min, r3.__max = o3.max, r3.__step = o3.step, XP.isUndefined(r3.__step) ? r3.initialValue === 0 ? r3.__impliedStep = 1 : r3.__impliedStep = Math.pow(10, Math.floor(Math.log(Math.abs(r3.initialValue)) / Math.LN10)) / 10 : r3.__impliedStep = r3.__step, r3.__precision =
|
|
35192
|
+
tC(this, e3);
|
|
35193
|
+
var r3 = rC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n2)), o3 = i2 || {};
|
|
35194
|
+
return r3.__min = o3.min, r3.__max = o3.max, r3.__step = o3.step, XP.isUndefined(r3.__step) ? r3.initialValue === 0 ? r3.__impliedStep = 1 : r3.__impliedStep = Math.pow(10, Math.floor(Math.log(Math.abs(r3.initialValue)) / Math.LN10)) / 10 : r3.__impliedStep = r3.__step, r3.__precision = gC(r3.__impliedStep), r3;
|
|
35073
35195
|
}
|
|
35074
|
-
return
|
|
35196
|
+
return iC(e3, t3), eC(e3, [{ key: "setValue", value: function(t4) {
|
|
35075
35197
|
var n2 = t4;
|
|
35076
|
-
return this.__min !== void 0 && n2 < this.__min ? n2 = this.__min : this.__max !== void 0 && n2 > this.__max && (n2 = this.__max), this.__step !== void 0 && n2 % this.__step != 0 && (n2 = Math.round(n2 / this.__step) * this.__step),
|
|
35198
|
+
return this.__min !== void 0 && n2 < this.__min ? n2 = this.__min : this.__max !== void 0 && n2 > this.__max && (n2 = this.__max), this.__step !== void 0 && n2 % this.__step != 0 && (n2 = Math.round(n2 / this.__step) * this.__step), nC(e3.prototype.__proto__ || Object.getPrototypeOf(e3.prototype), "setValue", this).call(this, n2);
|
|
35077
35199
|
} }, { key: "min", value: function(t4) {
|
|
35078
35200
|
return this.__min = t4, this;
|
|
35079
35201
|
} }, { key: "max", value: function(t4) {
|
|
35080
35202
|
return this.__max = t4, this;
|
|
35081
35203
|
} }, { key: "step", value: function(t4) {
|
|
35082
|
-
return this.__step = t4, this.__impliedStep = t4, this.__precision =
|
|
35204
|
+
return this.__step = t4, this.__impliedStep = t4, this.__precision = gC(t4), this;
|
|
35083
35205
|
} }]), e3;
|
|
35084
|
-
}(
|
|
35085
|
-
var
|
|
35206
|
+
}(lC);
|
|
35207
|
+
var _C = function(t3) {
|
|
35086
35208
|
function e3(t4, n2, i2) {
|
|
35087
|
-
|
|
35088
|
-
var r3 =
|
|
35209
|
+
tC(this, e3);
|
|
35210
|
+
var r3 = rC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n2, i2));
|
|
35089
35211
|
r3.__truncationSuspended = false;
|
|
35090
35212
|
var o3 = r3, s3 = void 0;
|
|
35091
35213
|
function a2() {
|
|
@@ -35096,98 +35218,98 @@ void main(void){
|
|
|
35096
35218
|
o3.setValue(o3.getValue() + e4 * o3.__impliedStep), s3 = t5.clientY;
|
|
35097
35219
|
}
|
|
35098
35220
|
function u2() {
|
|
35099
|
-
|
|
35221
|
+
dC.unbind(window, "mousemove", l2), dC.unbind(window, "mouseup", u2), a2();
|
|
35100
35222
|
}
|
|
35101
|
-
return r3.__input = document.createElement("input"), r3.__input.setAttribute("type", "text"),
|
|
35223
|
+
return r3.__input = document.createElement("input"), r3.__input.setAttribute("type", "text"), dC.bind(r3.__input, "change", function() {
|
|
35102
35224
|
var t5 = parseFloat(o3.__input.value);
|
|
35103
35225
|
XP.isNaN(t5) || o3.setValue(t5);
|
|
35104
|
-
}),
|
|
35226
|
+
}), dC.bind(r3.__input, "blur", function() {
|
|
35105
35227
|
a2();
|
|
35106
|
-
}),
|
|
35107
|
-
|
|
35108
|
-
}),
|
|
35228
|
+
}), dC.bind(r3.__input, "mousedown", function(t5) {
|
|
35229
|
+
dC.bind(window, "mousemove", l2), dC.bind(window, "mouseup", u2), s3 = t5.clientY;
|
|
35230
|
+
}), dC.bind(r3.__input, "keydown", function(t5) {
|
|
35109
35231
|
t5.keyCode === 13 && (o3.__truncationSuspended = true, this.blur(), o3.__truncationSuspended = false, a2());
|
|
35110
35232
|
}), r3.updateDisplay(), r3.domElement.appendChild(r3.__input), r3;
|
|
35111
35233
|
}
|
|
35112
|
-
return
|
|
35234
|
+
return iC(e3, t3), eC(e3, [{ key: "updateDisplay", value: function() {
|
|
35113
35235
|
var t4, n2, i2;
|
|
35114
|
-
return this.__input.value = this.__truncationSuspended ? this.getValue() : (t4 = this.getValue(), n2 = this.__precision, i2 = Math.pow(10, n2), Math.round(t4 * i2) / i2),
|
|
35236
|
+
return this.__input.value = this.__truncationSuspended ? this.getValue() : (t4 = this.getValue(), n2 = this.__precision, i2 = Math.pow(10, n2), Math.round(t4 * i2) / i2), nC(e3.prototype.__proto__ || Object.getPrototypeOf(e3.prototype), "updateDisplay", this).call(this);
|
|
35115
35237
|
} }]), e3;
|
|
35116
|
-
}(
|
|
35117
|
-
function
|
|
35238
|
+
}(vC);
|
|
35239
|
+
function yC(t3, e3, n2, i2, r3) {
|
|
35118
35240
|
return i2 + (t3 - e3) / (n2 - e3) * (r3 - i2);
|
|
35119
35241
|
}
|
|
35120
|
-
var
|
|
35242
|
+
var xC = function(t3) {
|
|
35121
35243
|
function e3(t4, n2, i2, r3, o3) {
|
|
35122
|
-
|
|
35123
|
-
var s3 =
|
|
35244
|
+
tC(this, e3);
|
|
35245
|
+
var s3 = rC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n2, { min: i2, max: r3, step: o3 })), a2 = s3;
|
|
35124
35246
|
function l2(t5) {
|
|
35125
35247
|
t5.preventDefault();
|
|
35126
35248
|
var e4 = a2.__background.getBoundingClientRect();
|
|
35127
|
-
return a2.setValue(
|
|
35249
|
+
return a2.setValue(yC(t5.clientX, e4.left, e4.right, a2.__min, a2.__max)), false;
|
|
35128
35250
|
}
|
|
35129
35251
|
function u2() {
|
|
35130
|
-
|
|
35252
|
+
dC.unbind(window, "mousemove", l2), dC.unbind(window, "mouseup", u2), a2.__onFinishChange && a2.__onFinishChange.call(a2, a2.getValue());
|
|
35131
35253
|
}
|
|
35132
35254
|
function h2(t5) {
|
|
35133
35255
|
var e4 = t5.touches[0].clientX, n3 = a2.__background.getBoundingClientRect();
|
|
35134
|
-
a2.setValue(
|
|
35256
|
+
a2.setValue(yC(e4, n3.left, n3.right, a2.__min, a2.__max));
|
|
35135
35257
|
}
|
|
35136
35258
|
function c2() {
|
|
35137
|
-
|
|
35259
|
+
dC.unbind(window, "touchmove", h2), dC.unbind(window, "touchend", c2), a2.__onFinishChange && a2.__onFinishChange.call(a2, a2.getValue());
|
|
35138
35260
|
}
|
|
35139
|
-
return s3.__background = document.createElement("div"), s3.__foreground = document.createElement("div"),
|
|
35140
|
-
document.activeElement.blur(),
|
|
35141
|
-
}),
|
|
35261
|
+
return s3.__background = document.createElement("div"), s3.__foreground = document.createElement("div"), dC.bind(s3.__background, "mousedown", function(t5) {
|
|
35262
|
+
document.activeElement.blur(), dC.bind(window, "mousemove", l2), dC.bind(window, "mouseup", u2), l2(t5);
|
|
35263
|
+
}), dC.bind(s3.__background, "touchstart", function(t5) {
|
|
35142
35264
|
if (t5.touches.length !== 1)
|
|
35143
35265
|
return;
|
|
35144
|
-
|
|
35145
|
-
}),
|
|
35266
|
+
dC.bind(window, "touchmove", h2), dC.bind(window, "touchend", c2), h2(t5);
|
|
35267
|
+
}), dC.addClass(s3.__background, "slider"), dC.addClass(s3.__foreground, "slider-fg"), s3.updateDisplay(), s3.__background.appendChild(s3.__foreground), s3.domElement.appendChild(s3.__background), s3;
|
|
35146
35268
|
}
|
|
35147
|
-
return
|
|
35269
|
+
return iC(e3, t3), eC(e3, [{ key: "updateDisplay", value: function() {
|
|
35148
35270
|
var t4 = (this.getValue() - this.__min) / (this.__max - this.__min);
|
|
35149
|
-
return this.__foreground.style.width = 100 * t4 + "%",
|
|
35271
|
+
return this.__foreground.style.width = 100 * t4 + "%", nC(e3.prototype.__proto__ || Object.getPrototypeOf(e3.prototype), "updateDisplay", this).call(this);
|
|
35150
35272
|
} }]), e3;
|
|
35151
|
-
}(
|
|
35273
|
+
}(vC), bC = function(t3) {
|
|
35152
35274
|
function e3(t4, n2, i2) {
|
|
35153
|
-
|
|
35154
|
-
var r3 =
|
|
35155
|
-
return r3.__button = document.createElement("div"), r3.__button.innerHTML = i2 === void 0 ? "Fire" : i2,
|
|
35275
|
+
tC(this, e3);
|
|
35276
|
+
var r3 = rC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n2)), o3 = r3;
|
|
35277
|
+
return r3.__button = document.createElement("div"), r3.__button.innerHTML = i2 === void 0 ? "Fire" : i2, dC.bind(r3.__button, "click", function(t5) {
|
|
35156
35278
|
return t5.preventDefault(), o3.fire(), false;
|
|
35157
|
-
}),
|
|
35279
|
+
}), dC.addClass(r3.__button, "button"), r3.domElement.appendChild(r3.__button), r3;
|
|
35158
35280
|
}
|
|
35159
|
-
return
|
|
35281
|
+
return iC(e3, t3), eC(e3, [{ key: "fire", value: function() {
|
|
35160
35282
|
this.__onChange && this.__onChange.call(this), this.getValue().call(this.object), this.__onFinishChange && this.__onFinishChange.call(this, this.getValue());
|
|
35161
35283
|
} }]), e3;
|
|
35162
|
-
}(
|
|
35284
|
+
}(lC), TC = function(t3) {
|
|
35163
35285
|
function e3(t4, n2) {
|
|
35164
|
-
|
|
35165
|
-
var i2 =
|
|
35166
|
-
i2.__color = new
|
|
35286
|
+
tC(this, e3);
|
|
35287
|
+
var i2 = rC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n2));
|
|
35288
|
+
i2.__color = new oC(i2.getValue()), i2.__temp = new oC(0);
|
|
35167
35289
|
var r3 = i2;
|
|
35168
|
-
i2.domElement = document.createElement("div"),
|
|
35290
|
+
i2.domElement = document.createElement("div"), dC.makeSelectable(i2.domElement, false), i2.__selector = document.createElement("div"), i2.__selector.className = "selector", i2.__saturation_field = document.createElement("div"), i2.__saturation_field.className = "saturation-field", i2.__field_knob = document.createElement("div"), i2.__field_knob.className = "field-knob", i2.__field_knob_border = "2px solid ", i2.__hue_knob = document.createElement("div"), i2.__hue_knob.className = "hue-knob", i2.__hue_field = document.createElement("div"), i2.__hue_field.className = "hue-field", i2.__input = document.createElement("input"), i2.__input.type = "text", i2.__input_textShadow = "0 1px 1px ", dC.bind(i2.__input, "keydown", function(t5) {
|
|
35169
35291
|
t5.keyCode === 13 && c2.call(this);
|
|
35170
|
-
}),
|
|
35171
|
-
|
|
35172
|
-
|
|
35292
|
+
}), dC.bind(i2.__input, "blur", c2), dC.bind(i2.__selector, "mousedown", function() {
|
|
35293
|
+
dC.addClass(this, "drag").bind(window, "mouseup", function() {
|
|
35294
|
+
dC.removeClass(r3.__selector, "drag");
|
|
35173
35295
|
});
|
|
35174
|
-
}),
|
|
35175
|
-
|
|
35176
|
-
|
|
35296
|
+
}), dC.bind(i2.__selector, "touchstart", function() {
|
|
35297
|
+
dC.addClass(this, "drag").bind(window, "touchend", function() {
|
|
35298
|
+
dC.removeClass(r3.__selector, "drag");
|
|
35177
35299
|
});
|
|
35178
35300
|
});
|
|
35179
35301
|
var o3, s3 = document.createElement("div");
|
|
35180
35302
|
function a2(t5) {
|
|
35181
|
-
p2(t5),
|
|
35303
|
+
p2(t5), dC.bind(window, "mousemove", p2), dC.bind(window, "touchmove", p2), dC.bind(window, "mouseup", u2), dC.bind(window, "touchend", u2);
|
|
35182
35304
|
}
|
|
35183
35305
|
function l2(t5) {
|
|
35184
|
-
f2(t5),
|
|
35306
|
+
f2(t5), dC.bind(window, "mousemove", f2), dC.bind(window, "touchmove", f2), dC.bind(window, "mouseup", h2), dC.bind(window, "touchend", h2);
|
|
35185
35307
|
}
|
|
35186
35308
|
function u2() {
|
|
35187
|
-
|
|
35309
|
+
dC.unbind(window, "mousemove", p2), dC.unbind(window, "touchmove", p2), dC.unbind(window, "mouseup", u2), dC.unbind(window, "touchend", u2), d2();
|
|
35188
35310
|
}
|
|
35189
35311
|
function h2() {
|
|
35190
|
-
|
|
35312
|
+
dC.unbind(window, "mousemove", f2), dC.unbind(window, "touchmove", f2), dC.unbind(window, "mouseup", h2), dC.unbind(window, "touchend", h2), d2();
|
|
35191
35313
|
}
|
|
35192
35314
|
function c2() {
|
|
35193
35315
|
var t5 = JP(this.value);
|
|
@@ -35206,28 +35328,28 @@ void main(void){
|
|
|
35206
35328
|
var e4 = r3.__hue_field.getBoundingClientRect(), n3 = 1 - ((t5.touches && t5.touches[0] || t5).clientY - e4.top) / (e4.bottom - e4.top);
|
|
35207
35329
|
return n3 > 1 ? n3 = 1 : n3 < 0 && (n3 = 0), r3.__color.h = 360 * n3, r3.setValue(r3.__color.toOriginal()), false;
|
|
35208
35330
|
}
|
|
35209
|
-
return XP.extend(i2.__selector.style, { width: "122px", height: "102px", padding: "3px", backgroundColor: "#222", boxShadow: "0px 1px 3px rgba(0,0,0,0.3)" }), XP.extend(i2.__field_knob.style, { position: "absolute", width: "12px", height: "12px", border: i2.__field_knob_border + (i2.__color.v < 0.5 ? "#fff" : "#000"), boxShadow: "0px 1px 3px rgba(0,0,0,0.5)", borderRadius: "12px", zIndex: 1 }), XP.extend(i2.__hue_knob.style, { position: "absolute", width: "15px", height: "2px", borderRight: "4px solid #fff", zIndex: 1 }), XP.extend(i2.__saturation_field.style, { width: "100px", height: "100px", border: "1px solid #555", marginRight: "3px", display: "inline-block", cursor: "pointer" }), XP.extend(s3.style, { width: "100%", height: "100%", background: "none" }),
|
|
35331
|
+
return XP.extend(i2.__selector.style, { width: "122px", height: "102px", padding: "3px", backgroundColor: "#222", boxShadow: "0px 1px 3px rgba(0,0,0,0.3)" }), XP.extend(i2.__field_knob.style, { position: "absolute", width: "12px", height: "12px", border: i2.__field_knob_border + (i2.__color.v < 0.5 ? "#fff" : "#000"), boxShadow: "0px 1px 3px rgba(0,0,0,0.5)", borderRadius: "12px", zIndex: 1 }), XP.extend(i2.__hue_knob.style, { position: "absolute", width: "15px", height: "2px", borderRight: "4px solid #fff", zIndex: 1 }), XP.extend(i2.__saturation_field.style, { width: "100px", height: "100px", border: "1px solid #555", marginRight: "3px", display: "inline-block", cursor: "pointer" }), XP.extend(s3.style, { width: "100%", height: "100%", background: "none" }), SC(s3, "top", "rgba(0,0,0,0)", "#000"), XP.extend(i2.__hue_field.style, { width: "15px", height: "100px", border: "1px solid #555", cursor: "ns-resize", position: "absolute", top: "3px", right: "3px" }), (o3 = i2.__hue_field).style.background = "", o3.style.cssText += "background: -moz-linear-gradient(top, #ff0000 0%, #ff00ff 17%, #0000ff 34%, #00ffff 50%, #00ff00 67%, #ffff00 84%, #ff0000 100%);", o3.style.cssText += "background: -webkit-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);", o3.style.cssText += "background: -o-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);", o3.style.cssText += "background: -ms-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);", o3.style.cssText += "background: linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);", XP.extend(i2.__input.style, { outline: "none", textAlign: "center", color: "#fff", border: 0, fontWeight: "bold", textShadow: i2.__input_textShadow + "rgba(0,0,0,0.7)" }), dC.bind(i2.__saturation_field, "mousedown", a2), dC.bind(i2.__saturation_field, "touchstart", a2), dC.bind(i2.__field_knob, "mousedown", a2), dC.bind(i2.__field_knob, "touchstart", a2), dC.bind(i2.__hue_field, "mousedown", l2), dC.bind(i2.__hue_field, "touchstart", l2), i2.__saturation_field.appendChild(s3), i2.__selector.appendChild(i2.__field_knob), i2.__selector.appendChild(i2.__saturation_field), i2.__selector.appendChild(i2.__hue_field), i2.__hue_field.appendChild(i2.__hue_knob), i2.domElement.appendChild(i2.__input), i2.domElement.appendChild(i2.__selector), i2.updateDisplay(), i2;
|
|
35210
35332
|
}
|
|
35211
|
-
return
|
|
35333
|
+
return iC(e3, t3), eC(e3, [{ key: "updateDisplay", value: function() {
|
|
35212
35334
|
var t4 = JP(this.getValue());
|
|
35213
35335
|
if (t4 !== false) {
|
|
35214
35336
|
var e4 = false;
|
|
35215
|
-
XP.each(
|
|
35337
|
+
XP.each(oC.COMPONENTS, function(n3) {
|
|
35216
35338
|
if (!XP.isUndefined(t4[n3]) && !XP.isUndefined(this.__color.__state[n3]) && t4[n3] !== this.__color.__state[n3])
|
|
35217
35339
|
return e4 = true, {};
|
|
35218
35340
|
}, this), e4 && XP.extend(this.__color.__state, t4);
|
|
35219
35341
|
}
|
|
35220
35342
|
XP.extend(this.__temp.__state, this.__color.__state), this.__temp.a = 1;
|
|
35221
35343
|
var n2 = this.__color.v < 0.5 || this.__color.s > 0.5 ? 255 : 0, i2 = 255 - n2;
|
|
35222
|
-
XP.extend(this.__field_knob.style, { marginLeft: 100 * this.__color.s - 7 + "px", marginTop: 100 * (1 - this.__color.v) - 7 + "px", backgroundColor: this.__temp.toHexString(), border: this.__field_knob_border + "rgb(" + n2 + "," + n2 + "," + n2 + ")" }), this.__hue_knob.style.marginTop = 100 * (1 - this.__color.h / 360) + "px", this.__temp.s = 1, this.__temp.v = 1,
|
|
35344
|
+
XP.extend(this.__field_knob.style, { marginLeft: 100 * this.__color.s - 7 + "px", marginTop: 100 * (1 - this.__color.v) - 7 + "px", backgroundColor: this.__temp.toHexString(), border: this.__field_knob_border + "rgb(" + n2 + "," + n2 + "," + n2 + ")" }), this.__hue_knob.style.marginTop = 100 * (1 - this.__color.h / 360) + "px", this.__temp.s = 1, this.__temp.v = 1, SC(this.__saturation_field, "left", "#fff", this.__temp.toHexString()), this.__input.value = this.__color.toString(), XP.extend(this.__input.style, { backgroundColor: this.__color.toHexString(), color: "rgb(" + n2 + "," + n2 + "," + n2 + ")", textShadow: this.__input_textShadow + "rgba(" + i2 + "," + i2 + "," + i2 + ",.7)" });
|
|
35223
35345
|
} }]), e3;
|
|
35224
|
-
}(
|
|
35225
|
-
function
|
|
35226
|
-
t3.style.background = "", XP.each(
|
|
35346
|
+
}(lC), wC = ["-moz-", "-o-", "-webkit-", "-ms-", ""];
|
|
35347
|
+
function SC(t3, e3, n2, i2) {
|
|
35348
|
+
t3.style.background = "", XP.each(wC, function(r3) {
|
|
35227
35349
|
t3.style.cssText += "background: " + r3 + "linear-gradient(" + e3 + ", " + n2 + " 0%, " + i2 + " 100%); ";
|
|
35228
35350
|
});
|
|
35229
35351
|
}
|
|
35230
|
-
var
|
|
35352
|
+
var EC = function(t3, e3) {
|
|
35231
35353
|
var n2 = e3 || document, i2 = document.createElement("style");
|
|
35232
35354
|
i2.type = "text/css", i2.innerHTML = t3;
|
|
35233
35355
|
var r3 = n2.getElementsByTagName("head")[0];
|
|
@@ -35235,7 +35357,7 @@ void main(void){
|
|
|
35235
35357
|
r3.appendChild(i2);
|
|
35236
35358
|
} catch (t4) {
|
|
35237
35359
|
}
|
|
35238
|
-
},
|
|
35360
|
+
}, MC = `<div id="dg-save" class="dg dialogue">
|
|
35239
35361
|
|
|
35240
35362
|
Here's the new load parameter for your <code>GUI</code>'s constructor:
|
|
35241
35363
|
|
|
@@ -35255,50 +35377,50 @@ void main(void){
|
|
|
35255
35377
|
|
|
35256
35378
|
</div>
|
|
35257
35379
|
|
|
35258
|
-
</div>`,
|
|
35380
|
+
</div>`, AC = function(t3, e3) {
|
|
35259
35381
|
var n2 = t3[e3];
|
|
35260
|
-
return XP.isArray(arguments[2]) || XP.isObject(arguments[2]) ? new
|
|
35382
|
+
return XP.isArray(arguments[2]) || XP.isObject(arguments[2]) ? new fC(t3, e3, arguments[2]) : XP.isNumber(n2) ? XP.isNumber(arguments[2]) && XP.isNumber(arguments[3]) ? XP.isNumber(arguments[4]) ? new xC(t3, e3, arguments[2], arguments[3], arguments[4]) : new xC(t3, e3, arguments[2], arguments[3]) : XP.isNumber(arguments[4]) ? new _C(t3, e3, { min: arguments[2], max: arguments[3], step: arguments[4] }) : new _C(t3, e3, { min: arguments[2], max: arguments[3] }) : XP.isString(n2) ? new mC(t3, e3) : XP.isFunction(n2) ? new bC(t3, e3, "") : XP.isBoolean(n2) ? new pC(t3, e3) : null;
|
|
35261
35383
|
};
|
|
35262
|
-
var
|
|
35384
|
+
var RC = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(t3) {
|
|
35263
35385
|
setTimeout(t3, 1e3 / 60);
|
|
35264
|
-
},
|
|
35386
|
+
}, PC = function() {
|
|
35265
35387
|
function t3() {
|
|
35266
|
-
|
|
35388
|
+
tC(this, t3), this.backgroundElement = document.createElement("div"), XP.extend(this.backgroundElement.style, { backgroundColor: "rgba(0,0,0,0.8)", top: 0, left: 0, display: "none", zIndex: "1000", opacity: 0, WebkitTransition: "opacity 0.2s linear", transition: "opacity 0.2s linear" }), dC.makeFullscreen(this.backgroundElement), this.backgroundElement.style.position = "fixed", this.domElement = document.createElement("div"), XP.extend(this.domElement.style, { position: "fixed", display: "none", zIndex: "1001", opacity: 0, WebkitTransition: "-webkit-transform 0.2s ease-out, opacity 0.2s linear", transition: "transform 0.2s ease-out, opacity 0.2s linear" }), document.body.appendChild(this.backgroundElement), document.body.appendChild(this.domElement);
|
|
35267
35389
|
var e3 = this;
|
|
35268
|
-
|
|
35390
|
+
dC.bind(this.backgroundElement, "click", function() {
|
|
35269
35391
|
e3.hide();
|
|
35270
35392
|
});
|
|
35271
35393
|
}
|
|
35272
|
-
return
|
|
35394
|
+
return eC(t3, [{ key: "show", value: function() {
|
|
35273
35395
|
var t4 = this;
|
|
35274
35396
|
this.backgroundElement.style.display = "block", this.domElement.style.display = "block", this.domElement.style.opacity = 0, this.domElement.style.webkitTransform = "scale(1.1)", this.layout(), XP.defer(function() {
|
|
35275
35397
|
t4.backgroundElement.style.opacity = 1, t4.domElement.style.opacity = 1, t4.domElement.style.webkitTransform = "scale(1)";
|
|
35276
35398
|
});
|
|
35277
35399
|
} }, { key: "hide", value: function() {
|
|
35278
35400
|
var t4 = this, e3 = function e4() {
|
|
35279
|
-
t4.domElement.style.display = "none", t4.backgroundElement.style.display = "none",
|
|
35401
|
+
t4.domElement.style.display = "none", t4.backgroundElement.style.display = "none", dC.unbind(t4.domElement, "webkitTransitionEnd", e4), dC.unbind(t4.domElement, "transitionend", e4), dC.unbind(t4.domElement, "oTransitionEnd", e4);
|
|
35280
35402
|
};
|
|
35281
|
-
|
|
35403
|
+
dC.bind(this.domElement, "webkitTransitionEnd", e3), dC.bind(this.domElement, "transitionend", e3), dC.bind(this.domElement, "oTransitionEnd", e3), this.backgroundElement.style.opacity = 0, this.domElement.style.opacity = 0, this.domElement.style.webkitTransform = "scale(1.1)";
|
|
35282
35404
|
} }, { key: "layout", value: function() {
|
|
35283
|
-
this.domElement.style.left = window.innerWidth / 2 -
|
|
35405
|
+
this.domElement.style.left = window.innerWidth / 2 - dC.getWidth(this.domElement) / 2 + "px", this.domElement.style.top = window.innerHeight / 2 - dC.getHeight(this.domElement) / 2 + "px";
|
|
35284
35406
|
} }]), t3;
|
|
35285
35407
|
}();
|
|
35286
|
-
|
|
35408
|
+
EC(function(t3) {
|
|
35287
35409
|
if (t3 && typeof window != "undefined") {
|
|
35288
35410
|
var e3 = document.createElement("style");
|
|
35289
35411
|
return e3.setAttribute("type", "text/css"), e3.innerHTML = t3, document.head.appendChild(e3), t3;
|
|
35290
35412
|
}
|
|
35291
35413
|
}(".dg ul{list-style:none;margin:0;padding:0;width:100%;clear:both}.dg.ac{position:fixed;top:0;left:0;right:0;height:0;z-index:0}.dg:not(.ac) .main{overflow:hidden}.dg.main{-webkit-transition:opacity .1s linear;-o-transition:opacity .1s linear;-moz-transition:opacity .1s linear;transition:opacity .1s linear}.dg.main.taller-than-window{overflow-y:auto}.dg.main.taller-than-window .close-button{opacity:1;margin-top:-1px;border-top:1px solid #2c2c2c}.dg.main ul.closed .close-button{opacity:1 !important}.dg.main:hover .close-button,.dg.main .close-button.drag{opacity:1}.dg.main .close-button{-webkit-transition:opacity .1s linear;-o-transition:opacity .1s linear;-moz-transition:opacity .1s linear;transition:opacity .1s linear;border:0;line-height:19px;height:20px;cursor:pointer;text-align:center;background-color:#000}.dg.main .close-button.close-top{position:relative}.dg.main .close-button.close-bottom{position:absolute}.dg.main .close-button:hover{background-color:#111}.dg.a{float:right;margin-right:15px;overflow-y:visible}.dg.a.has-save>ul.close-top{margin-top:0}.dg.a.has-save>ul.close-bottom{margin-top:27px}.dg.a.has-save>ul.closed{margin-top:0}.dg.a .save-row{top:0;z-index:1002}.dg.a .save-row.close-top{position:relative}.dg.a .save-row.close-bottom{position:fixed}.dg li{-webkit-transition:height .1s ease-out;-o-transition:height .1s ease-out;-moz-transition:height .1s ease-out;transition:height .1s ease-out;-webkit-transition:overflow .1s linear;-o-transition:overflow .1s linear;-moz-transition:overflow .1s linear;transition:overflow .1s linear}.dg li:not(.folder){cursor:auto;height:27px;line-height:27px;padding:0 4px 0 5px}.dg li.folder{padding:0;border-left:4px solid rgba(0,0,0,0)}.dg li.title{cursor:pointer;margin-left:-4px}.dg .closed li:not(.title),.dg .closed ul li,.dg .closed ul li>*{height:0;overflow:hidden;border:0}.dg .cr{clear:both;padding-left:3px;height:27px;overflow:hidden}.dg .property-name{cursor:default;float:left;clear:left;width:40%;overflow:hidden;text-overflow:ellipsis}.dg .c{float:left;width:60%;position:relative}.dg .c input[type=text]{border:0;margin-top:4px;padding:3px;width:100%;float:right}.dg .has-slider input[type=text]{width:30%;margin-left:0}.dg .slider{float:left;width:66%;margin-left:-5px;margin-right:0;height:19px;margin-top:4px}.dg .slider-fg{height:100%}.dg .c input[type=checkbox]{margin-top:7px}.dg .c select{margin-top:5px}.dg .cr.function,.dg .cr.function .property-name,.dg .cr.function *,.dg .cr.boolean,.dg .cr.boolean *{cursor:pointer}.dg .cr.color{overflow:visible}.dg .selector{display:none;position:absolute;margin-left:-9px;margin-top:23px;z-index:10}.dg .c:hover .selector,.dg .selector.drag{display:block}.dg li.save-row{padding:0}.dg li.save-row .button{display:inline-block;padding:0px 6px}.dg.dialogue{background-color:#222;width:460px;padding:15px;font-size:13px;line-height:15px}#dg-new-constructor{padding:10px;color:#222;font-family:Monaco, monospace;font-size:10px;border:0;resize:none;box-shadow:inset 1px 1px 1px #888;word-wrap:break-word;margin:12px 0;display:block;width:440px;overflow-y:scroll;height:100px;position:relative}#dg-local-explain{display:none;font-size:11px;line-height:17px;border-radius:3px;background-color:#333;padding:8px;margin-top:10px}#dg-local-explain code{font-size:10px}#dat-gui-save-locally{display:none}.dg{color:#eee;font:11px 'Lucida Grande', sans-serif;text-shadow:0 -1px 0 #111}.dg.main::-webkit-scrollbar{width:5px;background:#1a1a1a}.dg.main::-webkit-scrollbar-corner{height:0;display:none}.dg.main::-webkit-scrollbar-thumb{border-radius:5px;background:#676767}.dg li:not(.folder){background:#1a1a1a;border-bottom:1px solid #2c2c2c}.dg li.save-row{line-height:25px;background:#dad5cb;border:0}.dg li.save-row select{margin-left:5px;width:108px}.dg li.save-row .button{margin-left:5px;margin-top:1px;border-radius:2px;font-size:9px;line-height:7px;padding:4px 4px 5px 4px;background:#c5bdad;color:#fff;text-shadow:0 1px 0 #b0a58f;box-shadow:0 -1px 0 #b0a58f;cursor:pointer}.dg li.save-row .button.gears{background:#c5bdad url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAANCAYAAAB/9ZQ7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQJJREFUeNpiYKAU/P//PwGIC/ApCABiBSAW+I8AClAcgKxQ4T9hoMAEUrxx2QSGN6+egDX+/vWT4e7N82AMYoPAx/evwWoYoSYbACX2s7KxCxzcsezDh3evFoDEBYTEEqycggWAzA9AuUSQQgeYPa9fPv6/YWm/Acx5IPb7ty/fw+QZblw67vDs8R0YHyQhgObx+yAJkBqmG5dPPDh1aPOGR/eugW0G4vlIoTIfyFcA+QekhhHJhPdQxbiAIguMBTQZrPD7108M6roWYDFQiIAAv6Aow/1bFwXgis+f2LUAynwoIaNcz8XNx3Dl7MEJUDGQpx9gtQ8YCueB+D26OECAAQDadt7e46D42QAAAABJRU5ErkJggg==) 2px 1px no-repeat;height:7px;width:8px}.dg li.save-row .button:hover{background-color:#bab19e;box-shadow:0 -1px 0 #b0a58f}.dg li.folder{border-bottom:0}.dg li.title{padding-left:16px;background:#000 url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlI+hKgFxoCgAOw==) 6px 10px no-repeat;cursor:pointer;border-bottom:1px solid rgba(255,255,255,0.2)}.dg .closed li.title{background-image:url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlGIWqMCbWAEAOw==)}.dg .cr.boolean{border-left:3px solid #806787}.dg .cr.color{border-left:3px solid}.dg .cr.function{border-left:3px solid #e61d5f}.dg .cr.number{border-left:3px solid #2FA1D6}.dg .cr.number input[type=text]{color:#2FA1D6}.dg .cr.string{border-left:3px solid #1ed36f}.dg .cr.string input[type=text]{color:#1ed36f}.dg .cr.function:hover,.dg .cr.boolean:hover{background:#111}.dg .c input[type=text]{background:#303030;outline:none}.dg .c input[type=text]:hover{background:#3c3c3c}.dg .c input[type=text]:focus{background:#494949;color:#fff}.dg .c .slider{background:#303030;cursor:ew-resize}.dg .c .slider-fg{background:#2FA1D6;max-width:100%}.dg .c .slider:hover{background:#3c3c3c}.dg .c .slider:hover .slider-fg{background:#44abda}\n"));
|
|
35292
|
-
var
|
|
35414
|
+
var CC = function() {
|
|
35293
35415
|
try {
|
|
35294
35416
|
return !!window.localStorage;
|
|
35295
35417
|
} catch (t3) {
|
|
35296
35418
|
return false;
|
|
35297
35419
|
}
|
|
35298
|
-
}(),
|
|
35420
|
+
}(), IC = void 0, OC = true, LC = void 0, NC = false, DC = [], FC = function t3(e3) {
|
|
35299
35421
|
var n2 = this, i2 = e3 || {};
|
|
35300
|
-
this.domElement = document.createElement("div"), this.__ul = document.createElement("ul"), this.domElement.appendChild(this.__ul),
|
|
35301
|
-
var r3, o3 =
|
|
35422
|
+
this.domElement = document.createElement("div"), this.__ul = document.createElement("ul"), this.domElement.appendChild(this.__ul), dC.addClass(this.domElement, "dg"), this.__folders = {}, this.__controllers = [], this.__rememberedObjects = [], this.__rememberedObjectIndecesToControllers = [], this.__listening = [], i2 = XP.defaults(i2, { closeOnTop: false, autoPlace: true, width: t3.DEFAULT_WIDTH }), i2 = XP.defaults(i2, { resizable: i2.autoPlace, hideable: i2.autoPlace }), XP.isUndefined(i2.load) ? i2.load = { preset: "Default" } : i2.preset && (i2.load.preset = i2.preset), XP.isUndefined(i2.parent) && i2.hideable && DC.push(this), i2.resizable = XP.isUndefined(i2.parent) && i2.resizable, i2.autoPlace && XP.isUndefined(i2.scrollable) && (i2.scrollable = true);
|
|
35423
|
+
var r3, o3 = CC && localStorage.getItem(zC(this, "isLocal")) === "true", s3 = void 0, a2 = void 0;
|
|
35302
35424
|
if (Object.defineProperties(this, { parent: { get: function() {
|
|
35303
35425
|
return i2.parent;
|
|
35304
35426
|
} }, scrollable: { get: function() {
|
|
@@ -35317,7 +35439,7 @@ void main(void){
|
|
|
35317
35439
|
} }, width: { get: function() {
|
|
35318
35440
|
return i2.width;
|
|
35319
35441
|
}, set: function(t4) {
|
|
35320
|
-
i2.width = t4,
|
|
35442
|
+
i2.width = t4, qC(n2, t4);
|
|
35321
35443
|
} }, name: { get: function() {
|
|
35322
35444
|
return i2.name;
|
|
35323
35445
|
}, set: function(t4) {
|
|
@@ -35325,50 +35447,50 @@ void main(void){
|
|
|
35325
35447
|
} }, closed: { get: function() {
|
|
35326
35448
|
return i2.closed;
|
|
35327
35449
|
}, set: function(e4) {
|
|
35328
|
-
i2.closed = e4, i2.closed ?
|
|
35450
|
+
i2.closed = e4, i2.closed ? dC.addClass(n2.__ul, t3.CLASS_CLOSED) : dC.removeClass(n2.__ul, t3.CLASS_CLOSED), this.onResize(), n2.__closeButton && (n2.__closeButton.innerHTML = e4 ? t3.TEXT_OPEN : t3.TEXT_CLOSED);
|
|
35329
35451
|
} }, load: { get: function() {
|
|
35330
35452
|
return i2.load;
|
|
35331
35453
|
} }, useLocalStorage: { get: function() {
|
|
35332
35454
|
return o3;
|
|
35333
35455
|
}, set: function(t4) {
|
|
35334
|
-
|
|
35456
|
+
CC && (o3 = t4, t4 ? dC.bind(window, "unload", s3) : dC.unbind(window, "unload", s3), localStorage.setItem(zC(n2, "isLocal"), t4));
|
|
35335
35457
|
} } }), XP.isUndefined(i2.parent)) {
|
|
35336
|
-
if (this.closed = i2.closed || false,
|
|
35458
|
+
if (this.closed = i2.closed || false, dC.addClass(this.domElement, t3.CLASS_MAIN), dC.makeSelectable(this.domElement, false), CC && o3) {
|
|
35337
35459
|
n2.useLocalStorage = true;
|
|
35338
|
-
var l2 = localStorage.getItem(
|
|
35460
|
+
var l2 = localStorage.getItem(zC(this, "gui"));
|
|
35339
35461
|
l2 && (i2.load = JSON.parse(l2));
|
|
35340
35462
|
}
|
|
35341
|
-
this.__closeButton = document.createElement("div"), this.__closeButton.innerHTML = t3.TEXT_CLOSED,
|
|
35463
|
+
this.__closeButton = document.createElement("div"), this.__closeButton.innerHTML = t3.TEXT_CLOSED, dC.addClass(this.__closeButton, t3.CLASS_CLOSE_BUTTON), i2.closeOnTop ? (dC.addClass(this.__closeButton, t3.CLASS_CLOSE_TOP), this.domElement.insertBefore(this.__closeButton, this.domElement.childNodes[0])) : (dC.addClass(this.__closeButton, t3.CLASS_CLOSE_BOTTOM), this.domElement.appendChild(this.__closeButton)), dC.bind(this.__closeButton, "click", function() {
|
|
35342
35464
|
n2.closed = !n2.closed;
|
|
35343
35465
|
});
|
|
35344
35466
|
} else {
|
|
35345
35467
|
i2.closed === void 0 && (i2.closed = true);
|
|
35346
35468
|
var u2 = document.createTextNode(i2.name);
|
|
35347
|
-
|
|
35348
|
-
|
|
35469
|
+
dC.addClass(u2, "controller-name"), a2 = BC(n2, u2);
|
|
35470
|
+
dC.addClass(this.__ul, t3.CLASS_CLOSED), dC.addClass(a2, "title"), dC.bind(a2, "click", function(t4) {
|
|
35349
35471
|
return t4.preventDefault(), n2.closed = !n2.closed, false;
|
|
35350
35472
|
}), i2.closed || (this.closed = false);
|
|
35351
35473
|
}
|
|
35352
|
-
i2.autoPlace && (XP.isUndefined(i2.parent) && (
|
|
35474
|
+
i2.autoPlace && (XP.isUndefined(i2.parent) && (OC && (LC = document.createElement("div"), dC.addClass(LC, "dg"), dC.addClass(LC, t3.CLASS_AUTO_PLACE_CONTAINER), document.body.appendChild(LC), OC = false), LC.appendChild(this.domElement), dC.addClass(this.domElement, t3.CLASS_AUTO_PLACE)), this.parent || qC(n2, i2.width)), this.__resizeHandler = function() {
|
|
35353
35475
|
n2.onResizeDebounced();
|
|
35354
|
-
},
|
|
35355
|
-
|
|
35476
|
+
}, dC.bind(window, "resize", this.__resizeHandler), dC.bind(this.__ul, "webkitTransitionEnd", this.__resizeHandler), dC.bind(this.__ul, "transitionend", this.__resizeHandler), dC.bind(this.__ul, "oTransitionEnd", this.__resizeHandler), this.onResize(), i2.resizable && XC(this), s3 = function() {
|
|
35477
|
+
CC && localStorage.getItem(zC(n2, "isLocal")) === "true" && localStorage.setItem(zC(n2, "gui"), JSON.stringify(n2.getSaveObject()));
|
|
35356
35478
|
}, this.saveToLocalStorageIfPossible = s3, i2.parent || ((r3 = n2.getRoot()).width += 1, XP.defer(function() {
|
|
35357
35479
|
r3.width -= 1;
|
|
35358
35480
|
}));
|
|
35359
35481
|
};
|
|
35360
|
-
function
|
|
35482
|
+
function BC(t3, e3, n2) {
|
|
35361
35483
|
var i2 = document.createElement("li");
|
|
35362
35484
|
return e3 && i2.appendChild(e3), n2 ? t3.__ul.insertBefore(i2, n2) : t3.__ul.appendChild(i2), t3.onResize(), i2;
|
|
35363
35485
|
}
|
|
35364
|
-
function
|
|
35365
|
-
|
|
35486
|
+
function UC(t3) {
|
|
35487
|
+
dC.unbind(window, "resize", t3.__resizeHandler), t3.saveToLocalStorageIfPossible && dC.unbind(window, "unload", t3.saveToLocalStorageIfPossible);
|
|
35366
35488
|
}
|
|
35367
|
-
function
|
|
35489
|
+
function kC(t3, e3) {
|
|
35368
35490
|
var n2 = t3.__preset_select[t3.__preset_select.selectedIndex];
|
|
35369
35491
|
n2.innerHTML = e3 ? n2.value + "*" : n2.value;
|
|
35370
35492
|
}
|
|
35371
|
-
function
|
|
35493
|
+
function GC(t3, e3) {
|
|
35372
35494
|
var n2 = t3.getRoot(), i2 = n2.__rememberedObjects.indexOf(e3.object);
|
|
35373
35495
|
if (i2 !== -1) {
|
|
35374
35496
|
var r3 = n2.__rememberedObjectIndecesToControllers[i2];
|
|
@@ -35388,31 +35510,31 @@ void main(void){
|
|
|
35388
35510
|
}
|
|
35389
35511
|
}
|
|
35390
35512
|
}
|
|
35391
|
-
function
|
|
35513
|
+
function HC(t3, e3, n2, i2) {
|
|
35392
35514
|
if (e3[n2] === void 0)
|
|
35393
35515
|
throw new Error('Object "' + e3 + '" has no property "' + n2 + '"');
|
|
35394
35516
|
var r3 = void 0;
|
|
35395
35517
|
if (i2.color)
|
|
35396
|
-
r3 = new
|
|
35518
|
+
r3 = new TC(e3, n2);
|
|
35397
35519
|
else {
|
|
35398
35520
|
var o3 = [e3, n2].concat(i2.factoryArgs);
|
|
35399
|
-
r3 =
|
|
35521
|
+
r3 = AC.apply(t3, o3);
|
|
35400
35522
|
}
|
|
35401
|
-
i2.before instanceof
|
|
35523
|
+
i2.before instanceof lC && (i2.before = i2.before.__li), GC(t3, r3), dC.addClass(r3.domElement, "c");
|
|
35402
35524
|
var s3 = document.createElement("span");
|
|
35403
|
-
|
|
35525
|
+
dC.addClass(s3, "property-name"), s3.innerHTML = r3.property;
|
|
35404
35526
|
var a2 = document.createElement("div");
|
|
35405
35527
|
a2.appendChild(s3), a2.appendChild(r3.domElement);
|
|
35406
|
-
var l2 =
|
|
35407
|
-
return
|
|
35528
|
+
var l2 = BC(t3, a2, i2.before);
|
|
35529
|
+
return dC.addClass(l2, FC.CLASS_CONTROLLER_ROW), r3 instanceof TC ? dC.addClass(l2, "color") : dC.addClass(l2, QP(r3.getValue())), function(t4, e4, n3) {
|
|
35408
35530
|
if (n3.__li = e4, n3.__gui = t4, XP.extend(n3, { options: function(e5) {
|
|
35409
35531
|
if (arguments.length > 1) {
|
|
35410
35532
|
var i4 = n3.__li.nextElementSibling;
|
|
35411
|
-
return n3.remove(),
|
|
35533
|
+
return n3.remove(), HC(t4, n3.object, n3.property, { before: i4, factoryArgs: [XP.toArray(arguments)] });
|
|
35412
35534
|
}
|
|
35413
35535
|
if (XP.isArray(e5) || XP.isObject(e5)) {
|
|
35414
35536
|
var r5 = n3.__li.nextElementSibling;
|
|
35415
|
-
return n3.remove(),
|
|
35537
|
+
return n3.remove(), HC(t4, n3.object, n3.property, { before: r5, factoryArgs: [e5] });
|
|
35416
35538
|
}
|
|
35417
35539
|
}, name: function(t5) {
|
|
35418
35540
|
return n3.__li.firstElementChild.firstElementChild.innerHTML = t5, n3;
|
|
@@ -35420,110 +35542,110 @@ void main(void){
|
|
|
35420
35542
|
return n3.__gui.listen(n3), n3;
|
|
35421
35543
|
}, remove: function() {
|
|
35422
35544
|
return n3.__gui.remove(n3), n3;
|
|
35423
|
-
} }), n3 instanceof
|
|
35424
|
-
var i3 = new
|
|
35545
|
+
} }), n3 instanceof xC) {
|
|
35546
|
+
var i3 = new _C(n3.object, n3.property, { min: n3.__min, max: n3.__max, step: n3.__step });
|
|
35425
35547
|
XP.each(["updateDisplay", "onChange", "onFinishChange", "step", "min", "max"], function(t5) {
|
|
35426
35548
|
var e5 = n3[t5], r5 = i3[t5];
|
|
35427
35549
|
n3[t5] = i3[t5] = function() {
|
|
35428
35550
|
var t6 = Array.prototype.slice.call(arguments);
|
|
35429
35551
|
return r5.apply(i3, t6), e5.apply(n3, t6);
|
|
35430
35552
|
};
|
|
35431
|
-
}),
|
|
35432
|
-
} else if (n3 instanceof
|
|
35553
|
+
}), dC.addClass(e4, "has-slider"), n3.domElement.insertBefore(i3.domElement, n3.domElement.firstElementChild);
|
|
35554
|
+
} else if (n3 instanceof _C) {
|
|
35433
35555
|
var r4 = function(e5) {
|
|
35434
35556
|
if (XP.isNumber(n3.__min) && XP.isNumber(n3.__max)) {
|
|
35435
35557
|
var i4 = n3.__li.firstElementChild.firstElementChild.innerHTML, r5 = n3.__gui.__listening.indexOf(n3) > -1;
|
|
35436
35558
|
n3.remove();
|
|
35437
|
-
var o4 =
|
|
35559
|
+
var o4 = HC(t4, n3.object, n3.property, { before: n3.__li.nextElementSibling, factoryArgs: [n3.__min, n3.__max, n3.__step] });
|
|
35438
35560
|
return o4.name(i4), r5 && o4.listen(), o4;
|
|
35439
35561
|
}
|
|
35440
35562
|
return e5;
|
|
35441
35563
|
};
|
|
35442
35564
|
n3.min = XP.compose(r4, n3.min), n3.max = XP.compose(r4, n3.max);
|
|
35443
35565
|
} else
|
|
35444
|
-
n3 instanceof
|
|
35445
|
-
|
|
35446
|
-
}),
|
|
35566
|
+
n3 instanceof pC ? (dC.bind(e4, "click", function() {
|
|
35567
|
+
dC.fakeEvent(n3.__checkbox, "click");
|
|
35568
|
+
}), dC.bind(n3.__checkbox, "click", function(t5) {
|
|
35447
35569
|
t5.stopPropagation();
|
|
35448
|
-
})) : n3 instanceof
|
|
35449
|
-
|
|
35450
|
-
}),
|
|
35451
|
-
|
|
35452
|
-
}),
|
|
35453
|
-
|
|
35454
|
-
})) : n3 instanceof
|
|
35570
|
+
})) : n3 instanceof bC ? (dC.bind(e4, "click", function() {
|
|
35571
|
+
dC.fakeEvent(n3.__button, "click");
|
|
35572
|
+
}), dC.bind(e4, "mouseover", function() {
|
|
35573
|
+
dC.addClass(n3.__button, "hover");
|
|
35574
|
+
}), dC.bind(e4, "mouseout", function() {
|
|
35575
|
+
dC.removeClass(n3.__button, "hover");
|
|
35576
|
+
})) : n3 instanceof TC && (dC.addClass(e4, "color"), n3.updateDisplay = XP.compose(function(t5) {
|
|
35455
35577
|
return e4.style.borderLeftColor = n3.__color.toString(), t5;
|
|
35456
35578
|
}, n3.updateDisplay), n3.updateDisplay());
|
|
35457
35579
|
n3.setValue = XP.compose(function(e5) {
|
|
35458
|
-
return t4.getRoot().__preset_select && n3.isModified() &&
|
|
35580
|
+
return t4.getRoot().__preset_select && n3.isModified() && kC(t4.getRoot(), true), e5;
|
|
35459
35581
|
}, n3.setValue);
|
|
35460
35582
|
}(t3, l2, r3), t3.__controllers.push(r3), r3;
|
|
35461
35583
|
}
|
|
35462
|
-
function
|
|
35584
|
+
function zC(t3, e3) {
|
|
35463
35585
|
return document.location.href + "." + e3;
|
|
35464
35586
|
}
|
|
35465
|
-
function
|
|
35587
|
+
function jC(t3, e3, n2) {
|
|
35466
35588
|
var i2 = document.createElement("option");
|
|
35467
35589
|
i2.innerHTML = e3, i2.value = e3, t3.__preset_select.appendChild(i2), n2 && (t3.__preset_select.selectedIndex = t3.__preset_select.length - 1);
|
|
35468
35590
|
}
|
|
35469
|
-
function
|
|
35591
|
+
function VC(t3, e3) {
|
|
35470
35592
|
e3.style.display = t3.useLocalStorage ? "block" : "none";
|
|
35471
35593
|
}
|
|
35472
|
-
function
|
|
35594
|
+
function WC(t3) {
|
|
35473
35595
|
var e3 = t3.__save_row = document.createElement("li");
|
|
35474
|
-
|
|
35596
|
+
dC.addClass(t3.domElement, "has-save"), t3.__ul.insertBefore(e3, t3.__ul.firstChild), dC.addClass(e3, "save-row");
|
|
35475
35597
|
var n2 = document.createElement("span");
|
|
35476
|
-
n2.innerHTML = " ",
|
|
35598
|
+
n2.innerHTML = " ", dC.addClass(n2, "button gears");
|
|
35477
35599
|
var i2 = document.createElement("span");
|
|
35478
|
-
i2.innerHTML = "Save",
|
|
35600
|
+
i2.innerHTML = "Save", dC.addClass(i2, "button"), dC.addClass(i2, "save");
|
|
35479
35601
|
var r3 = document.createElement("span");
|
|
35480
|
-
r3.innerHTML = "New",
|
|
35602
|
+
r3.innerHTML = "New", dC.addClass(r3, "button"), dC.addClass(r3, "save-as");
|
|
35481
35603
|
var o3 = document.createElement("span");
|
|
35482
|
-
o3.innerHTML = "Revert",
|
|
35604
|
+
o3.innerHTML = "Revert", dC.addClass(o3, "button"), dC.addClass(o3, "revert");
|
|
35483
35605
|
var s3 = t3.__preset_select = document.createElement("select");
|
|
35484
35606
|
if (t3.load && t3.load.remembered ? XP.each(t3.load.remembered, function(e4, n3) {
|
|
35485
|
-
|
|
35486
|
-
}) :
|
|
35607
|
+
jC(t3, n3, n3 === t3.preset);
|
|
35608
|
+
}) : jC(t3, "Default", false), dC.bind(s3, "change", function() {
|
|
35487
35609
|
for (var e4 = 0; e4 < t3.__preset_select.length; e4++)
|
|
35488
35610
|
t3.__preset_select[e4].innerHTML = t3.__preset_select[e4].value;
|
|
35489
35611
|
t3.preset = this.value;
|
|
35490
|
-
}), e3.appendChild(s3), e3.appendChild(n2), e3.appendChild(i2), e3.appendChild(r3), e3.appendChild(o3),
|
|
35612
|
+
}), e3.appendChild(s3), e3.appendChild(n2), e3.appendChild(i2), e3.appendChild(r3), e3.appendChild(o3), CC) {
|
|
35491
35613
|
var a2 = document.getElementById("dg-local-explain"), l2 = document.getElementById("dg-local-storage");
|
|
35492
|
-
document.getElementById("dg-save-locally").style.display = "block", localStorage.getItem(
|
|
35493
|
-
t3.useLocalStorage = !t3.useLocalStorage,
|
|
35614
|
+
document.getElementById("dg-save-locally").style.display = "block", localStorage.getItem(zC(0, "isLocal")) === "true" && l2.setAttribute("checked", "checked"), VC(t3, a2), dC.bind(l2, "change", function() {
|
|
35615
|
+
t3.useLocalStorage = !t3.useLocalStorage, VC(t3, a2);
|
|
35494
35616
|
});
|
|
35495
35617
|
}
|
|
35496
35618
|
var u2 = document.getElementById("dg-new-constructor");
|
|
35497
|
-
|
|
35498
|
-
!t4.metaKey || t4.which !== 67 && t4.keyCode !== 67 ||
|
|
35499
|
-
}),
|
|
35500
|
-
u2.innerHTML = JSON.stringify(t3.getSaveObject(), void 0, 2),
|
|
35501
|
-
}),
|
|
35619
|
+
dC.bind(u2, "keydown", function(t4) {
|
|
35620
|
+
!t4.metaKey || t4.which !== 67 && t4.keyCode !== 67 || IC.hide();
|
|
35621
|
+
}), dC.bind(n2, "click", function() {
|
|
35622
|
+
u2.innerHTML = JSON.stringify(t3.getSaveObject(), void 0, 2), IC.show(), u2.focus(), u2.select();
|
|
35623
|
+
}), dC.bind(i2, "click", function() {
|
|
35502
35624
|
t3.save();
|
|
35503
|
-
}),
|
|
35625
|
+
}), dC.bind(r3, "click", function() {
|
|
35504
35626
|
var e4 = prompt("Enter a new preset name.");
|
|
35505
35627
|
e4 && t3.saveAs(e4);
|
|
35506
|
-
}),
|
|
35628
|
+
}), dC.bind(o3, "click", function() {
|
|
35507
35629
|
t3.revert();
|
|
35508
35630
|
});
|
|
35509
35631
|
}
|
|
35510
|
-
function
|
|
35632
|
+
function XC(t3) {
|
|
35511
35633
|
var e3 = void 0;
|
|
35512
35634
|
function n2(n3) {
|
|
35513
35635
|
return n3.preventDefault(), t3.width += e3 - n3.clientX, t3.onResize(), e3 = n3.clientX, false;
|
|
35514
35636
|
}
|
|
35515
35637
|
function i2() {
|
|
35516
|
-
|
|
35638
|
+
dC.removeClass(t3.__closeButton, FC.CLASS_DRAG), dC.unbind(window, "mousemove", n2), dC.unbind(window, "mouseup", i2);
|
|
35517
35639
|
}
|
|
35518
35640
|
function r3(r4) {
|
|
35519
|
-
return r4.preventDefault(), e3 = r4.clientX,
|
|
35641
|
+
return r4.preventDefault(), e3 = r4.clientX, dC.addClass(t3.__closeButton, FC.CLASS_DRAG), dC.bind(window, "mousemove", n2), dC.bind(window, "mouseup", i2), false;
|
|
35520
35642
|
}
|
|
35521
|
-
t3.__resize_handle = document.createElement("div"), XP.extend(t3.__resize_handle.style, { width: "6px", marginLeft: "-3px", height: "200px", cursor: "ew-resize", position: "absolute" }),
|
|
35643
|
+
t3.__resize_handle = document.createElement("div"), XP.extend(t3.__resize_handle.style, { width: "6px", marginLeft: "-3px", height: "200px", cursor: "ew-resize", position: "absolute" }), dC.bind(t3.__resize_handle, "mousedown", r3), dC.bind(t3.__closeButton, "mousedown", r3), t3.domElement.insertBefore(t3.__resize_handle, t3.domElement.firstElementChild);
|
|
35522
35644
|
}
|
|
35523
|
-
function
|
|
35645
|
+
function qC(t3, e3) {
|
|
35524
35646
|
t3.domElement.style.width = e3 + "px", t3.__save_row && t3.autoPlace && (t3.__save_row.style.width = e3 + "px"), t3.__closeButton && (t3.__closeButton.style.width = e3 + "px");
|
|
35525
35647
|
}
|
|
35526
|
-
function
|
|
35648
|
+
function YC(t3, e3) {
|
|
35527
35649
|
var n2 = {};
|
|
35528
35650
|
return XP.each(t3.__rememberedObjects, function(i2, r3) {
|
|
35529
35651
|
var o3 = {}, s3 = t3.__rememberedObjectIndecesToControllers[r3];
|
|
@@ -35532,16 +35654,16 @@ void main(void){
|
|
|
35532
35654
|
}), n2[r3] = o3;
|
|
35533
35655
|
}), n2;
|
|
35534
35656
|
}
|
|
35535
|
-
|
|
35536
|
-
|
|
35537
|
-
t3.domElement.style.display =
|
|
35657
|
+
FC.toggleHide = function() {
|
|
35658
|
+
NC = !NC, XP.each(DC, function(t3) {
|
|
35659
|
+
t3.domElement.style.display = NC ? "none" : "";
|
|
35538
35660
|
});
|
|
35539
|
-
},
|
|
35540
|
-
document.activeElement.type === "text" || t3.which !== 72 && t3.keyCode !== 72 ||
|
|
35541
|
-
},
|
|
35542
|
-
return
|
|
35661
|
+
}, FC.CLASS_AUTO_PLACE = "a", FC.CLASS_AUTO_PLACE_CONTAINER = "ac", FC.CLASS_MAIN = "main", FC.CLASS_CONTROLLER_ROW = "cr", FC.CLASS_TOO_TALL = "taller-than-window", FC.CLASS_CLOSED = "closed", FC.CLASS_CLOSE_BUTTON = "close-button", FC.CLASS_CLOSE_TOP = "close-top", FC.CLASS_CLOSE_BOTTOM = "close-bottom", FC.CLASS_DRAG = "drag", FC.DEFAULT_WIDTH = 245, FC.TEXT_CLOSED = "Close Controls", FC.TEXT_OPEN = "Open Controls", FC._keydownHandler = function(t3) {
|
|
35662
|
+
document.activeElement.type === "text" || t3.which !== 72 && t3.keyCode !== 72 || FC.toggleHide();
|
|
35663
|
+
}, dC.bind(window, "keydown", FC._keydownHandler, false), XP.extend(FC.prototype, { add: function(t3, e3) {
|
|
35664
|
+
return HC(this, t3, e3, { factoryArgs: Array.prototype.slice.call(arguments, 2) });
|
|
35543
35665
|
}, addColor: function(t3, e3) {
|
|
35544
|
-
return
|
|
35666
|
+
return HC(this, t3, e3, { color: true });
|
|
35545
35667
|
}, remove: function(t3) {
|
|
35546
35668
|
this.__ul.removeChild(t3.__li), this.__controllers.splice(this.__controllers.indexOf(t3), 1);
|
|
35547
35669
|
var e3 = this;
|
|
@@ -35551,22 +35673,22 @@ void main(void){
|
|
|
35551
35673
|
}, destroy: function() {
|
|
35552
35674
|
if (this.parent)
|
|
35553
35675
|
throw new Error("Only the root GUI should be removed with .destroy(). For subfolders, use gui.removeFolder(folder) instead.");
|
|
35554
|
-
this.autoPlace &&
|
|
35676
|
+
this.autoPlace && LC.removeChild(this.domElement);
|
|
35555
35677
|
var t3 = this;
|
|
35556
35678
|
XP.each(this.__folders, function(e3) {
|
|
35557
35679
|
t3.removeFolder(e3);
|
|
35558
|
-
}),
|
|
35680
|
+
}), dC.unbind(window, "keydown", FC._keydownHandler, false), UC(this);
|
|
35559
35681
|
}, addFolder: function(t3) {
|
|
35560
35682
|
if (this.__folders[t3] !== void 0)
|
|
35561
35683
|
throw new Error('You already have a folder in this GUI by the name "' + t3 + '"');
|
|
35562
35684
|
var e3 = { name: t3, parent: this };
|
|
35563
35685
|
e3.autoPlace = this.autoPlace, this.load && this.load.folders && this.load.folders[t3] && (e3.closed = this.load.folders[t3].closed, e3.load = this.load.folders[t3]);
|
|
35564
|
-
var n2 = new
|
|
35686
|
+
var n2 = new FC(e3);
|
|
35565
35687
|
this.__folders[t3] = n2;
|
|
35566
|
-
var i2 =
|
|
35567
|
-
return
|
|
35688
|
+
var i2 = BC(this, n2.domElement);
|
|
35689
|
+
return dC.addClass(i2, "folder"), n2;
|
|
35568
35690
|
}, removeFolder: function(t3) {
|
|
35569
|
-
this.__ul.removeChild(t3.domElement.parentElement), delete this.__folders[t3.name], this.load && this.load.folders && this.load.folders[t3.name] && delete this.load.folders[t3.name],
|
|
35691
|
+
this.__ul.removeChild(t3.domElement.parentElement), delete this.__folders[t3.name], this.load && this.load.folders && this.load.folders[t3.name] && delete this.load.folders[t3.name], UC(t3);
|
|
35570
35692
|
var e3 = this;
|
|
35571
35693
|
XP.each(t3.__folders, function(e4) {
|
|
35572
35694
|
t3.removeFolder(e4);
|
|
@@ -35584,10 +35706,10 @@ void main(void){
|
|
|
35584
35706
|
}, onResize: function() {
|
|
35585
35707
|
var t3 = this.getRoot();
|
|
35586
35708
|
if (t3.scrollable) {
|
|
35587
|
-
var e3 =
|
|
35709
|
+
var e3 = dC.getOffset(t3.__ul).top, n2 = 0;
|
|
35588
35710
|
XP.each(t3.__ul.childNodes, function(e4) {
|
|
35589
|
-
t3.autoPlace && e4 === t3.__save_row || (n2 +=
|
|
35590
|
-
}), window.innerHeight - e3 - 20 < n2 ? (
|
|
35711
|
+
t3.autoPlace && e4 === t3.__save_row || (n2 += dC.getHeight(e4));
|
|
35712
|
+
}), window.innerHeight - e3 - 20 < n2 ? (dC.addClass(t3.domElement, FC.CLASS_TOO_TALL), t3.__ul.style.height = window.innerHeight - e3 - 20 + "px") : (dC.removeClass(t3.domElement, FC.CLASS_TOO_TALL), t3.__ul.style.height = "auto");
|
|
35591
35713
|
}
|
|
35592
35714
|
t3.__resize_handle && XP.defer(function() {
|
|
35593
35715
|
t3.__resize_handle.style.height = t3.__ul.offsetHeight + "px";
|
|
@@ -35595,35 +35717,35 @@ void main(void){
|
|
|
35595
35717
|
}, onResizeDebounced: XP.debounce(function() {
|
|
35596
35718
|
this.onResize();
|
|
35597
35719
|
}, 50), remember: function() {
|
|
35598
|
-
if (XP.isUndefined(
|
|
35720
|
+
if (XP.isUndefined(IC) && ((IC = new PC()).domElement.innerHTML = MC), this.parent)
|
|
35599
35721
|
throw new Error("You can only call remember on a top level GUI.");
|
|
35600
35722
|
var t3 = this;
|
|
35601
35723
|
XP.each(Array.prototype.slice.call(arguments), function(e3) {
|
|
35602
|
-
t3.__rememberedObjects.length === 0 &&
|
|
35603
|
-
}), this.autoPlace &&
|
|
35724
|
+
t3.__rememberedObjects.length === 0 && WC(t3), t3.__rememberedObjects.indexOf(e3) === -1 && t3.__rememberedObjects.push(e3);
|
|
35725
|
+
}), this.autoPlace && qC(this, this.width);
|
|
35604
35726
|
}, getRoot: function() {
|
|
35605
35727
|
for (var t3 = this; t3.parent; )
|
|
35606
35728
|
t3 = t3.parent;
|
|
35607
35729
|
return t3;
|
|
35608
35730
|
}, getSaveObject: function() {
|
|
35609
35731
|
var t3 = this.load;
|
|
35610
|
-
return t3.closed = this.closed, this.__rememberedObjects.length > 0 && (t3.preset = this.preset, t3.remembered || (t3.remembered = {}), t3.remembered[this.preset] =
|
|
35732
|
+
return t3.closed = this.closed, this.__rememberedObjects.length > 0 && (t3.preset = this.preset, t3.remembered || (t3.remembered = {}), t3.remembered[this.preset] = YC(this)), t3.folders = {}, XP.each(this.__folders, function(e3, n2) {
|
|
35611
35733
|
t3.folders[n2] = e3.getSaveObject();
|
|
35612
35734
|
}), t3;
|
|
35613
35735
|
}, save: function() {
|
|
35614
|
-
this.load.remembered || (this.load.remembered = {}), this.load.remembered[this.preset] =
|
|
35736
|
+
this.load.remembered || (this.load.remembered = {}), this.load.remembered[this.preset] = YC(this), kC(this, false), this.saveToLocalStorageIfPossible();
|
|
35615
35737
|
}, saveAs: function(t3) {
|
|
35616
|
-
this.load.remembered || (this.load.remembered = {}, this.load.remembered.Default =
|
|
35738
|
+
this.load.remembered || (this.load.remembered = {}, this.load.remembered.Default = YC(this, true)), this.load.remembered[t3] = YC(this), this.preset = t3, jC(this, t3, true), this.saveToLocalStorageIfPossible();
|
|
35617
35739
|
}, revert: function(t3) {
|
|
35618
35740
|
XP.each(this.__controllers, function(e3) {
|
|
35619
|
-
this.getRoot().load.remembered ?
|
|
35741
|
+
this.getRoot().load.remembered ? GC(t3 || this.getRoot(), e3) : e3.setValue(e3.initialValue), e3.__onFinishChange && e3.__onFinishChange.call(e3, e3.getValue());
|
|
35620
35742
|
}, this), XP.each(this.__folders, function(t4) {
|
|
35621
35743
|
t4.revert(t4);
|
|
35622
|
-
}), t3 ||
|
|
35744
|
+
}), t3 || kC(this.getRoot(), false);
|
|
35623
35745
|
}, listen: function(t3) {
|
|
35624
35746
|
var e3 = this.__listening.length === 0;
|
|
35625
35747
|
this.__listening.push(t3), e3 && function t4(e4) {
|
|
35626
|
-
e4.length !== 0 &&
|
|
35748
|
+
e4.length !== 0 && RC.call(window, function() {
|
|
35627
35749
|
t4(e4);
|
|
35628
35750
|
});
|
|
35629
35751
|
XP.each(e4, function(t5) {
|
|
@@ -35637,7 +35759,7 @@ void main(void){
|
|
|
35637
35759
|
t3.updateDisplay();
|
|
35638
35760
|
});
|
|
35639
35761
|
} });
|
|
35640
|
-
var
|
|
35762
|
+
var ZC = FC, JC = function() {
|
|
35641
35763
|
function t3(t4) {
|
|
35642
35764
|
this.runTime = { fps: 0, resolution: "" }, this.target = t4.target, this.data = t4.params, this.player = t4.player, this.gui = this.createControllerGUI(), this.createStats(), this.addEventListener();
|
|
35643
35765
|
}
|
|
@@ -35647,7 +35769,7 @@ void main(void){
|
|
|
35647
35769
|
t4.player.view && (t4.controller.runTimeFps.setValue(t4.player.runtime.fps), t4.controller.runTimeResolution.setValue(t4.player.view.width + "*" + t4.player.view.height));
|
|
35648
35770
|
}, 500);
|
|
35649
35771
|
}, t3.prototype.createControllerGUI = function() {
|
|
35650
|
-
var t4, e3, n2, i2, r3, o3 = new
|
|
35772
|
+
var t4, e3, n2, i2, r3, o3 = new ZC({ autoPlace: true, closed: true });
|
|
35651
35773
|
return o3.domElement.style.opacity = ".6", o3.domElement.style.transformOrigin = "100% 0", o3.domElement.style.transform = "scale(1.4)", this.target.appendChild(o3.domElement), o3.domElement.style.position = "absolute", o3.domElement.style.right = "0", o3.domElement.style.top = "0", o3.domElement.style.zIndex = "2", this.controller = { runTimeFps: o3.add({ FPS: 0 }, "FPS", 0), runTimeResolution: o3.add({ "\u5206\u8FA8\u7387": "" }, "\u5206\u8FA8\u7387", ""), autoResolution: o3.add({ "\u81EA\u52A8\u5206\u8FA8\u7387": (t4 = this.data.autoResolution) !== null && t4 !== void 0 && t4 }, "\u81EA\u52A8\u5206\u8FA8\u7387", true), autoFps: o3.add({ "\u81EA\u52A8fps": (e3 = this.data.autoFPS) === null || e3 === void 0 || e3 }, "\u81EA\u52A8fps", true), moreCalculation: o3.add({ "\u989D\u5916\u8BA1\u7B97": 0 }, "\u989D\u5916\u8BA1\u7B97", 0, 100), minFPS: o3.add({ "\u6700\u4F4Efps": (n2 = this.data.minFPS) !== null && n2 !== void 0 ? n2 : 40 }, "\u6700\u4F4Efps", 0, 60), maxFPS: o3.add({ "\u6700\u9AD8fps": (i2 = this.data.maxFPS) !== null && i2 !== void 0 ? i2 : 50 }, "\u6700\u9AD8fps", 0, 60), resolution: o3.add({ "\u76EE\u6807\u5206\u8FA8\u500D\u7387": (r3 = this.data.resolution) !== null && r3 !== void 0 ? r3 : window.devicePixelRatio }, "\u76EE\u6807\u5206\u8FA8\u500D\u7387", 0.5, 4) }, this.controller.runTimeFps.disabled = true, this.controller.runTimeResolution.disabled = true, o3;
|
|
35652
35774
|
}, t3.prototype.addEventListener = function() {
|
|
35653
35775
|
var t4, e3 = this;
|
|
@@ -35674,7 +35796,7 @@ void main(void){
|
|
|
35674
35796
|
} catch (t4) {
|
|
35675
35797
|
}
|
|
35676
35798
|
}, t3;
|
|
35677
|
-
}(), $
|
|
35799
|
+
}(), $C = function() {
|
|
35678
35800
|
function t3(t4) {
|
|
35679
35801
|
var e3 = this;
|
|
35680
35802
|
this.tasks = [], this.schedule = function() {
|
|
@@ -35687,7 +35809,7 @@ void main(void){
|
|
|
35687
35809
|
return t3.prototype.addTask = function(t4) {
|
|
35688
35810
|
this.tasks.push(t4);
|
|
35689
35811
|
}, t3;
|
|
35690
|
-
}(),
|
|
35812
|
+
}(), KC = function() {
|
|
35691
35813
|
function t3() {
|
|
35692
35814
|
this.autoUnlock = Object.create(null), this.locks = Object.create(null);
|
|
35693
35815
|
}
|
|
@@ -35701,7 +35823,7 @@ void main(void){
|
|
|
35701
35823
|
}, t3.prototype.isLocked = function(t4) {
|
|
35702
35824
|
return !!this.locks[t4];
|
|
35703
35825
|
}, t3;
|
|
35704
|
-
}(),
|
|
35826
|
+
}(), QC = function() {
|
|
35705
35827
|
var t3 = function(e3, n2) {
|
|
35706
35828
|
return (t3 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, e4) {
|
|
35707
35829
|
t4.__proto__ = e4;
|
|
@@ -35718,14 +35840,14 @@ void main(void){
|
|
|
35718
35840
|
}
|
|
35719
35841
|
t3(e3, n2), e3.prototype = n2 === null ? Object.create(n2) : (i2.prototype = n2.prototype, new i2());
|
|
35720
35842
|
};
|
|
35721
|
-
}(),
|
|
35722
|
-
return (
|
|
35843
|
+
}(), tI = function() {
|
|
35844
|
+
return (tI = Object.assign || function(t3) {
|
|
35723
35845
|
for (var e3, n2 = 1, i2 = arguments.length; n2 < i2; n2++)
|
|
35724
35846
|
for (var r3 in e3 = arguments[n2])
|
|
35725
35847
|
Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]);
|
|
35726
35848
|
return t3;
|
|
35727
35849
|
}).apply(this, arguments);
|
|
35728
|
-
},
|
|
35850
|
+
}, eI = function(t3, e3, n2, i2) {
|
|
35729
35851
|
return new (n2 || (n2 = Promise))(function(r3, o3) {
|
|
35730
35852
|
function s3(t4) {
|
|
35731
35853
|
try {
|
|
@@ -35749,7 +35871,7 @@ void main(void){
|
|
|
35749
35871
|
}
|
|
35750
35872
|
l2((i2 = i2.apply(t3, e3 || [])).next());
|
|
35751
35873
|
});
|
|
35752
|
-
},
|
|
35874
|
+
}, nI = function(t3, e3) {
|
|
35753
35875
|
var n2, i2, r3, o3, s3 = { label: 0, sent: function() {
|
|
35754
35876
|
if (1 & r3[0])
|
|
35755
35877
|
throw r3[1];
|
|
@@ -35814,20 +35936,20 @@ void main(void){
|
|
|
35814
35936
|
}
|
|
35815
35937
|
};
|
|
35816
35938
|
window.__slide_local_logger__ || (window.__slide_local_logger__ = o2.createInstance({ name: "_slide_local_log_", driver: o2.INDEXEDDB, version: 1 }));
|
|
35817
|
-
var
|
|
35939
|
+
var iI = window.__slide_local_logger__, rI = window.ResizeObserver || UP, oI = function(t3) {
|
|
35818
35940
|
return new Promise(function(e3) {
|
|
35819
35941
|
return setTimeout(e3, t3);
|
|
35820
35942
|
});
|
|
35821
35943
|
};
|
|
35822
|
-
function
|
|
35823
|
-
return
|
|
35944
|
+
function sI(t3, e3) {
|
|
35945
|
+
return eI(this, void 0, void 0, function() {
|
|
35824
35946
|
var n2;
|
|
35825
|
-
return
|
|
35947
|
+
return nI(this, function(i2) {
|
|
35826
35948
|
switch (i2.label) {
|
|
35827
35949
|
case 0:
|
|
35828
35950
|
n2 = Date.now(), i2.label = 1;
|
|
35829
35951
|
case 1:
|
|
35830
|
-
return !t3() && Date.now() - n2 < e3 ? [4,
|
|
35952
|
+
return !t3() && Date.now() - n2 < e3 ? [4, oI(50)] : [3, 3];
|
|
35831
35953
|
case 2:
|
|
35832
35954
|
return i2.sent(), [3, 1];
|
|
35833
35955
|
case 3:
|
|
@@ -35836,32 +35958,32 @@ void main(void){
|
|
|
35836
35958
|
});
|
|
35837
35959
|
});
|
|
35838
35960
|
}
|
|
35839
|
-
var
|
|
35961
|
+
var aI = { syncDispatch: "syncDispatch", syncReceive: "syncReceive", renderStart: "renderStart", renderEnd: "renderEnd", renderError: "renderError", slideChange: "slideChange", mainSeqStepStart: "mainSeqStepStart", mainSeqStepEnd: "mainSeqStepEnd", animateStart: "animateStart", animateEnd: "animateEnd", stateChange: "stateChange" }, lI = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: Object.create(null), interactiveSeqState: Object.create(null) }, uI = "";
|
|
35840
35962
|
try {
|
|
35841
|
-
|
|
35963
|
+
uI = "0.1.55";
|
|
35842
35964
|
} catch (t3) {
|
|
35843
|
-
|
|
35965
|
+
uI = "dev";
|
|
35844
35966
|
}
|
|
35845
|
-
var
|
|
35967
|
+
var hI = function(t3) {
|
|
35846
35968
|
function e3(e4) {
|
|
35847
35969
|
var n2 = t3.call(this) || this;
|
|
35848
|
-
return n2.iosResetCache = [], n2.needClearCacheImage = false, n2.version =
|
|
35970
|
+
return n2.iosResetCache = [], n2.needClearCacheImage = false, n2.version = uI, n2.__slideState = Object(l.cloneDeep)(lI), n2.resize = false, n2.isAnimating = false, n2.renderingTaskManager = new zP(), n2.isLoading = false, n2.interactive = true, n2.frameWidth = 1, n2.frameHeight = 1, n2.frame = document.createElement("div"), n2.medianController = document.createElement("div"), n2.frameResizeObserver = new rI(function() {
|
|
35849
35971
|
return n2.frameResizeHandler();
|
|
35850
35972
|
}), n2.timestamp = function() {
|
|
35851
35973
|
return Date.now();
|
|
35852
|
-
}, n2.mode = "local", n2.log = "", n2.logId = "", n2.lastEmitedState = null, n2.playerController = null, n2.lock = new
|
|
35853
|
-
return
|
|
35974
|
+
}, n2.mode = "local", n2.log = "", n2.logId = "", n2.lastEmitedState = null, n2.playerController = null, n2.lock = new KC(), n2.isInitResized = false, n2.cacheImage = document.createElement("img"), n2.isFrowning = false, n2.isReleasing = false, n2.designWidth = 0, n2.designHeight = 0, n2._slideCount = 0, n2.persistLog = function() {
|
|
35975
|
+
return eI(n2, void 0, void 0, function() {
|
|
35854
35976
|
var t4, e5;
|
|
35855
|
-
return
|
|
35977
|
+
return nI(this, function(n3) {
|
|
35856
35978
|
switch (n3.label) {
|
|
35857
35979
|
case 0:
|
|
35858
|
-
if (!
|
|
35980
|
+
if (!iI || !this.logId)
|
|
35859
35981
|
return [3, 5];
|
|
35860
35982
|
n3.label = 1;
|
|
35861
35983
|
case 1:
|
|
35862
|
-
return n3.trys.push([1, 4, , 5]), t4 = this.log, [4,
|
|
35984
|
+
return n3.trys.push([1, 4, , 5]), t4 = this.log, [4, iI.getItem(this.logId)];
|
|
35863
35985
|
case 2:
|
|
35864
|
-
return e5 = n3.sent() || "", [4,
|
|
35986
|
+
return e5 = n3.sent() || "", [4, iI.setItem(this.logId, e5 + t4)];
|
|
35865
35987
|
case 3:
|
|
35866
35988
|
return n3.sent(), this.log = "", [3, 5];
|
|
35867
35989
|
case 4:
|
|
@@ -35876,12 +35998,12 @@ void main(void){
|
|
|
35876
35998
|
}, n2.handleSlideStateLog = function() {
|
|
35877
35999
|
console.log(n2.logId), console.log(JSON.stringify(n2.slideState, null, 2));
|
|
35878
36000
|
}, n2.handleLogDownload = function() {
|
|
35879
|
-
return
|
|
36001
|
+
return eI(n2, void 0, void 0, function() {
|
|
35880
36002
|
var t4, e5, n3;
|
|
35881
|
-
return
|
|
36003
|
+
return nI(this, function(i2) {
|
|
35882
36004
|
switch (i2.label) {
|
|
35883
36005
|
case 0:
|
|
35884
|
-
return t4 = "",
|
|
36006
|
+
return t4 = "", iI ? (e5 = t4, [4, iI.getItem(this.logId)]) : [3, 2];
|
|
35885
36007
|
case 1:
|
|
35886
36008
|
t4 = e5 + (i2.sent() || ""), i2.label = 2;
|
|
35887
36009
|
case 2:
|
|
@@ -35890,9 +36012,9 @@ void main(void){
|
|
|
35890
36012
|
});
|
|
35891
36013
|
});
|
|
35892
36014
|
}, n2.receiveSyncHandler = function(t4) {
|
|
35893
|
-
return
|
|
36015
|
+
return eI(n2, void 0, void 0, function() {
|
|
35894
36016
|
var e5, n3, i2, r3, o3 = this;
|
|
35895
|
-
return
|
|
36017
|
+
return nI(this, function(s3) {
|
|
35896
36018
|
switch (s3.label) {
|
|
35897
36019
|
case 0:
|
|
35898
36020
|
return this.log += "=== sync receive [" + new Date().toISOString() + "] ===\n", this.log += JSON.stringify(t4, null, 2), this.log += "\n\n", t4.type !== "nextStep" ? [3, 1] : (this.mainSeqStep !== t4.next - 1 && this.mainSeqStep + 1 !== this.mainSeqLength && this.player ? (this.setMainSeqStep(t4.next, "start"), this.player.nextTick(function() {
|
|
@@ -35916,9 +36038,9 @@ void main(void){
|
|
|
35916
36038
|
});
|
|
35917
36039
|
});
|
|
35918
36040
|
}, n2.handlePrevSlide = function() {
|
|
35919
|
-
return
|
|
36041
|
+
return eI(n2, void 0, void 0, function() {
|
|
35920
36042
|
var t4, e5 = this;
|
|
35921
|
-
return
|
|
36043
|
+
return nI(this, function(n3) {
|
|
35922
36044
|
return this.player ? (setTimeout(function() {
|
|
35923
36045
|
var t5;
|
|
35924
36046
|
(t5 = e5.player) === null || t5 === void 0 || t5.createSnapshotForNextSlide();
|
|
@@ -35926,9 +36048,9 @@ void main(void){
|
|
|
35926
36048
|
});
|
|
35927
36049
|
});
|
|
35928
36050
|
}, n2.handleNextSlide = function() {
|
|
35929
|
-
return
|
|
36051
|
+
return eI(n2, void 0, void 0, function() {
|
|
35930
36052
|
var t4, e5 = this;
|
|
35931
|
-
return
|
|
36053
|
+
return nI(this, function(n3) {
|
|
35932
36054
|
return this.player ? (setTimeout(function() {
|
|
35933
36055
|
var t5;
|
|
35934
36056
|
(t5 = e5.player) === null || t5 === void 0 || t5.createSnapshotForNextSlide();
|
|
@@ -35941,21 +36063,21 @@ void main(void){
|
|
|
35941
36063
|
n2.renderSlide(t4, e5);
|
|
35942
36064
|
} else
|
|
35943
36065
|
t4 === -1 && n2.renderSlide(n2.slideCount, true);
|
|
35944
|
-
}, e4.timestamp && (n2.timestamp = e4.timestamp), n2.config = e4, n2.syncQueue = new $
|
|
36066
|
+
}, e4.timestamp && (n2.timestamp = e4.timestamp), n2.config = e4, n2.syncQueue = new $C(n2.receiveSyncHandler), n2.mode = e4.mode, n2.anchor = e4.anchor, n2.resize = e4.resize || false, n2.interactive = e4.interactive, n2.cacheImage.style.position = "absolute", n2.cacheImage.style.zIndex = "100", n2.frame.style.cssText = "width:100%;height:100%;display:flex;justify-content:center;align-items:center;visibility:hidden;position:relative;z-index:1;", n2.setMedianControllerAttribute(), n2.frame.appendChild(n2.medianController), n2.anchor.appendChild(n2.frame), n2.frameResizeObserver.observe(n2.frame), n2.on(aI.syncReceive, function(t4) {
|
|
35945
36067
|
n2.lock.unlock(t4.type, t4.uuid), n2.syncQueue.addTask(t4);
|
|
35946
36068
|
}), n2.renderingTaskManager.eventHub.on("task-error", function(t4) {
|
|
35947
36069
|
var e5 = t4.error, i2 = t4.task;
|
|
35948
|
-
n2.emit(
|
|
36070
|
+
n2.emit(aI.renderError, { error: e5, index: i2.slideIndex });
|
|
35949
36071
|
}), window.addEventListener("__slide_log__", n2.handleLogDownload), window.addEventListener("__slide_state__", n2.handleSlideStateLog), window.addEventListener("__slide_ref__", n2.handleSlideRef), n2.persistLogId = window.setInterval(n2.persistLog, 5e3), n2.resizeView = Object(l.debounce)(n2.resizeView.bind(n2), 50), n2.player = n2.initPlayer(e4), n2.player.view && n2.frame.appendChild(n2.player.view), n2;
|
|
35950
36072
|
}
|
|
35951
|
-
return
|
|
36073
|
+
return QC(e3, t3), e3.prototype.initPlayer = function(t4) {
|
|
35952
36074
|
var e4 = this, n2 = new KR(this.mode);
|
|
35953
36075
|
return n2.setInteractive(this.interactive), n2.updateConfig(t4.renderOptions || {}), n2.on($R.renderStart, function(t5) {
|
|
35954
|
-
e4.isLoading = true, e4.emit(
|
|
36076
|
+
e4.isLoading = true, e4.emit(aI.renderStart, t5);
|
|
35955
36077
|
}), n2.on($R.renderEnd, function(t5) {
|
|
35956
|
-
e4.isLoading = false, e4.player && (e4.designHeight = e4.player.designHeight, e4.designWidth = e4.player.designWidth, e4.cacheImage.style.width = e4.player.designWidth + "px", e4.cacheImage.style.height = e4.player.designHeight + "px", e4._slideCount = e4.player.slideCount), e4.emit(
|
|
36078
|
+
e4.isLoading = false, e4.player && (e4.designHeight = e4.player.designHeight, e4.designWidth = e4.player.designWidth, e4.cacheImage.style.width = e4.player.designWidth + "px", e4.cacheImage.style.height = e4.player.designHeight + "px", e4._slideCount = e4.player.slideCount), e4.emit(aI.renderEnd, t5);
|
|
35957
36079
|
}), n2.on($R.slideChange, function(t5) {
|
|
35958
|
-
e4.__slideState.currentSlideIndex = t5, e4.emit(
|
|
36080
|
+
e4.__slideState.currentSlideIndex = t5, e4.emit(aI.slideChange, t5);
|
|
35959
36081
|
}), n2.on($R.mainSeqStateChange, function(t5) {
|
|
35960
36082
|
e4.__slideState.mainSeqState = t5, e4.emitStateChange();
|
|
35961
36083
|
}), n2.on($R.mainSeqStepChange, function(t5) {
|
|
@@ -35964,16 +36086,16 @@ void main(void){
|
|
|
35964
36086
|
var n3 = t5.id, i2 = t5.state;
|
|
35965
36087
|
e4.__slideState.interactiveSeqState[n3] = i2, e4.emitStateChange();
|
|
35966
36088
|
}), n2.on($R.animateStart, function() {
|
|
35967
|
-
e4.isAnimating !== true && (e4.isAnimating = true, e4.emit(
|
|
36089
|
+
e4.isAnimating !== true && (e4.isAnimating = true, e4.emit(aI.animateStart));
|
|
35968
36090
|
}), n2.on($R.animateEnd, function() {
|
|
35969
|
-
e4.isAnimating !== false && (e4.isAnimating = false, e4.emit(
|
|
36091
|
+
e4.isAnimating !== false && (e4.isAnimating = false, e4.emit(aI.animateEnd));
|
|
35970
36092
|
}), n2.on($R.interactiveSeqAction, function(t5) {
|
|
35971
36093
|
var n3 = t5.action, i2 = t5.seqId;
|
|
35972
36094
|
e4.emitSyncDispatch({ slideIndex: e4.__slideState.currentSlideIndex, type: "interactiveAnim", action: n3, seqId: i2 }), e4.emitStateChange();
|
|
35973
36095
|
}), n2.on($R.mainSeqStepStart, function(t5) {
|
|
35974
|
-
e4.emit(
|
|
36096
|
+
e4.emit(aI.mainSeqStepStart, t5);
|
|
35975
36097
|
}), n2.on($R.mainSeqStepEnd, function(t5) {
|
|
35976
|
-
e4.emit(
|
|
36098
|
+
e4.emit(aI.mainSeqStepEnd, t5);
|
|
35977
36099
|
}), n2.on($R.mediaPlay, function(t5) {
|
|
35978
36100
|
var n3 = { type: "play", time: e4.timestamp() - 1e3 * t5.time };
|
|
35979
36101
|
e4.__slideState.mediaState[t5.id] = n3, e4.emitSyncDispatch({ slideIndex: e4.__slideState.currentSlideIndex, type: "mediaPlay", id: t5.id, state: n3 }), e4.emitStateChange();
|
|
@@ -35985,7 +36107,7 @@ void main(void){
|
|
|
35985
36107
|
t5.isPlaying ? (n3.type = "play", e4.__slideState.mediaState[t5.id] ? n3.time = e4.__slideState.mediaState[t5.id].time - 1e3 * t5.time : n3.time = e4.timestamp() - 1e3 * t5.time, e4.__slideState.mediaState[t5.id] = n3) : (n3.type = "pause", n3.time = t5.time, e4.__slideState.mediaState[t5.id] = n3), e4.emitSyncDispatch({ slideIndex: e4.__slideState.currentSlideIndex, type: "mediaSeek", id: t5.id, time: t5.time, state: n3 }), e4.emitStateChange();
|
|
35986
36108
|
}), n2.on($R.requestPrevSlide, this.handlePrevSlide), n2.on($R.requestNextSlide, this.handleNextSlide), n2.on($R.requestGotoSlide, this.handleGotoSlide), (t4 == null ? void 0 : t4.controller) && this.createController(), n2;
|
|
35987
36109
|
}, e3.prototype.createController = function() {
|
|
35988
|
-
this.player && (this.playerController = new
|
|
36110
|
+
this.player && (this.playerController = new JC({ player: this.player, params: this.player.config || {}, target: this.frame }));
|
|
35989
36111
|
}, e3.prototype.setMedianControllerAttribute = function() {
|
|
35990
36112
|
this.medianController.className = "median-container", this.medianController.style.position = "absolute", this.medianController.style.left = "0", this.medianController.style.top = "0", this.medianController.style.zIndex = "2";
|
|
35991
36113
|
}, e3.prototype.frameResizeHandler = function() {
|
|
@@ -36001,9 +36123,9 @@ void main(void){
|
|
|
36001
36123
|
}
|
|
36002
36124
|
}, e3.prototype.setSlideState = function(t4) {
|
|
36003
36125
|
var e4, n2, i2;
|
|
36004
|
-
return
|
|
36126
|
+
return eI(this, void 0, void 0, function() {
|
|
36005
36127
|
var r3, o3 = this;
|
|
36006
|
-
return
|
|
36128
|
+
return nI(this, function(s3) {
|
|
36007
36129
|
switch (s3.label) {
|
|
36008
36130
|
case 0:
|
|
36009
36131
|
return this.log += "=== stateChange receive [" + new Date().toISOString() + "] ===\n", this.log += JSON.stringify(t4, null, 2), this.log += "\n\n", t4.taskId && t4.taskId !== this.__slideState.taskId && (this.__slideState.taskId = t4.taskId, (e4 = this.player) === null || e4 === void 0 || e4.setResourceData(t4.taskId, this.__slideState.url)), t4.url && t4.url !== this.__slideState.url && (this.__slideState.url = t4.url, (n2 = this.player) === null || n2 === void 0 || n2.setResourceData(this.__slideState.taskId, t4.url)), Number.isInteger(t4.currentSlideIndex) && t4.currentSlideIndex !== this.__slideState.currentSlideIndex ? (this.__slideState.currentSlideIndex = t4.currentSlideIndex, [4, this.doRenderSlide(t4.currentSlideIndex)]) : [3, 2];
|
|
@@ -36079,9 +36201,9 @@ void main(void){
|
|
|
36079
36201
|
(n2 = this.player) === null || n2 === void 0 || n2.setResourceData(t4, e4), this.__slideState.taskId = t4, this.__slideState.url = e4, this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "setResource", taskId: t4, url: e4 }), this.logId = t4 + "-" + Math.random().toString(32).substr(2);
|
|
36080
36202
|
}, e3.prototype._renderSlide = function(t4) {
|
|
36081
36203
|
var e4;
|
|
36082
|
-
return
|
|
36204
|
+
return eI(this, void 0, void 0, function() {
|
|
36083
36205
|
var n2 = this;
|
|
36084
|
-
return
|
|
36206
|
+
return nI(this, function(i2) {
|
|
36085
36207
|
switch (i2.label) {
|
|
36086
36208
|
case 0:
|
|
36087
36209
|
return this.player && t4 === this.player.currentIndex ? [2] : ((KR.platform.isIOS() || KR.platform.isAndroid()) && this.iosResetCache.indexOf(t4) < 0 && this.iosResetCache.push(t4), this.isLoading = true, [4, (e4 = this.player) === null || e4 === void 0 ? void 0 : e4.renderSlide(t4)]);
|
|
@@ -36103,7 +36225,8 @@ void main(void){
|
|
|
36103
36225
|
(n2 !== this.player.currentIndex || this.renderingTaskManager.hasStartTask()) && (n2 > this.slideCount && this.slideCount > 0 || this.poseRenderSlide(n2, e4));
|
|
36104
36226
|
}
|
|
36105
36227
|
}, e3.prototype.needCreateNewPlayer = function() {
|
|
36106
|
-
|
|
36228
|
+
var t4 = KR.platform.isSupportTransaction(), e4 = t4 ? 15 : 7, n2 = t4 ? 600 : 300;
|
|
36229
|
+
return (KR.platform.isIOS() || KR.platform.isAndroid()) && (this.iosResetCache.length > e4 || 4 * KR.textureCacheSize / 1048576 > n2);
|
|
36107
36230
|
}, e3.prototype.poseRenderSlide = function(t4, e4) {
|
|
36108
36231
|
this.isLoading = true, this.mode === "interactive" ? this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "renderSlide", index: t4, isForward: e4 }) : this.mode === "sync" ? (this.doRenderSlide(t4, e4), this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "renderSlide", index: t4, isForward: e4 })) : this.doRenderSlide(t4, e4);
|
|
36109
36232
|
}, e3.prototype.doRenderSlide = function(t4, e4) {
|
|
@@ -36141,12 +36264,12 @@ void main(void){
|
|
|
36141
36264
|
}, e3.prototype.emitStateChange = function() {
|
|
36142
36265
|
if (this.mode !== "local") {
|
|
36143
36266
|
var t4 = this.slideState;
|
|
36144
|
-
!Object(l.isEqual)(this.lastEmitedState, t4) && this.isSlideStateReady(t4) && (this.lastEmitedState = t4, this.emit(
|
|
36267
|
+
!Object(l.isEqual)(this.lastEmitedState, t4) && this.isSlideStateReady(t4) && (this.lastEmitedState = t4, this.emit(aI.stateChange, t4), this.log += "=== stateChange dispatch [" + new Date().toISOString() + "] ===\n", this.log += JSON.stringify(this.slideState, null, 2), this.log += "\n\n");
|
|
36145
36268
|
}
|
|
36146
36269
|
}, e3.prototype.emitSyncDispatch = function(t4) {
|
|
36147
36270
|
if (!this.lock.isLocked(t4.type)) {
|
|
36148
36271
|
var e4 = Math.random().toString(32).substr(2);
|
|
36149
|
-
this.lock.addLock(t4.type, e4), this.emit(
|
|
36272
|
+
this.lock.addLock(t4.type, e4), this.emit(aI.syncDispatch, tI(tI({}, t4), { uuid: e4 })), this.log += "=== sync dispatch [" + new Date().toISOString() + "] ===\n", this.log += JSON.stringify(t4, null, 2), this.log += "\n\n";
|
|
36150
36273
|
}
|
|
36151
36274
|
}, e3.prototype.setMainSeqStep = function(t4, e4) {
|
|
36152
36275
|
var n2;
|
|
@@ -36162,19 +36285,19 @@ void main(void){
|
|
|
36162
36285
|
(t4 = this.player) === null || t4 === void 0 || t4.resume();
|
|
36163
36286
|
}, e3.prototype.frozen = function() {
|
|
36164
36287
|
var t4;
|
|
36165
|
-
return
|
|
36288
|
+
return eI(this, void 0, void 0, function() {
|
|
36166
36289
|
var e4, n2, i2, r3 = this;
|
|
36167
|
-
return
|
|
36290
|
+
return nI(this, function(o3) {
|
|
36168
36291
|
switch (o3.label) {
|
|
36169
36292
|
case 0:
|
|
36170
|
-
return this.isFrowning ? [2,
|
|
36293
|
+
return this.isFrowning ? [2, sI(function() {
|
|
36171
36294
|
return !r3.isFrowning;
|
|
36172
36295
|
}, 6e4)] : this.view && this.player ? (this.isFrowning = true, [4, this.player.clock.waitUntil(function() {
|
|
36173
36296
|
return !r3.isLoading;
|
|
36174
36297
|
}, 6e4)]) : [3, 2];
|
|
36175
36298
|
case 1:
|
|
36176
36299
|
for (n2 in o3.sent(), e4 = this.player.getSnapshot() || "", this.cacheImage.src = e4, this.frame.appendChild(this.cacheImage), this.player.destroy(), (t4 = this.playerController) === null || t4 === void 0 || t4.destroy(), this.player = void 0, this.__slideState.mediaState)
|
|
36177
|
-
i2 = this.__slideState.mediaState[n2], this.__slideState.mediaState[n2] =
|
|
36300
|
+
i2 = this.__slideState.mediaState[n2], this.__slideState.mediaState[n2] = tI(tI({}, i2), { frozenTime: this.timestamp() });
|
|
36178
36301
|
this.isFrowning = false, o3.label = 2;
|
|
36179
36302
|
case 2:
|
|
36180
36303
|
return [2];
|
|
@@ -36183,16 +36306,16 @@ void main(void){
|
|
|
36183
36306
|
});
|
|
36184
36307
|
}, e3.prototype.release = function() {
|
|
36185
36308
|
var t4;
|
|
36186
|
-
return
|
|
36309
|
+
return eI(this, void 0, void 0, function() {
|
|
36187
36310
|
var e4, n2, i2, r3, o3 = this;
|
|
36188
|
-
return
|
|
36311
|
+
return nI(this, function(s3) {
|
|
36189
36312
|
switch (s3.label) {
|
|
36190
36313
|
case 0:
|
|
36191
36314
|
if (this.isReleasing)
|
|
36192
|
-
return [2,
|
|
36315
|
+
return [2, sI(function() {
|
|
36193
36316
|
return !o3.isReleasing;
|
|
36194
36317
|
}, 6e4)];
|
|
36195
|
-
for (n2 in this.isReleasing = true, this.player = this.initPlayer(this.config), this.player.view && (this.frame.appendChild(this.player.view), this.player.view.style.visibility = "hidden"), e4 = this.__slideState, this.__slideState = Object(l.cloneDeep)(
|
|
36318
|
+
for (n2 in this.isReleasing = true, this.player = this.initPlayer(this.config), this.player.view && (this.frame.appendChild(this.player.view), this.player.view.style.visibility = "hidden"), e4 = this.__slideState, this.__slideState = Object(l.cloneDeep)(lI), e4.mediaState)
|
|
36196
36319
|
(i2 = e4.mediaState[n2]).type === "play" && (r3 = Math.max((t4 = i2.frozenTime) !== null && t4 !== void 0 ? t4 : 0, i2.time), i2.time = this.timestamp() - (r3 - i2.time), i2.frozenTime = void 0);
|
|
36197
36320
|
return [4, this.setSlideState(e4)];
|
|
36198
36321
|
case 1:
|
|
@@ -36209,7 +36332,7 @@ void main(void){
|
|
|
36209
36332
|
});
|
|
36210
36333
|
}, e3.prototype.destroy = function() {
|
|
36211
36334
|
var t4, e4, n2, i2;
|
|
36212
|
-
this.playerController && this.playerController.destroy(), this.frameResizeObserver.disconnect(), (t4 = this.player) === null || t4 === void 0 || t4.removeAllListeners(), (e4 = this.player) === null || e4 === void 0 || e4.destroy(), (n2 = this.player) === null || n2 === void 0 || n2.removeAllListeners(), window.removeEventListener("__slide_log__", this.handleLogDownload), window.removeEventListener("__slide_state__", this.handleSlideStateLog), window.removeEventListener("__slide_ref__", this.handleSlideRef), window.clearInterval(this.persistLogId),
|
|
36335
|
+
this.playerController && this.playerController.destroy(), this.frameResizeObserver.disconnect(), (t4 = this.player) === null || t4 === void 0 || t4.removeAllListeners(), (e4 = this.player) === null || e4 === void 0 || e4.destroy(), (n2 = this.player) === null || n2 === void 0 || n2.removeAllListeners(), window.removeEventListener("__slide_log__", this.handleLogDownload), window.removeEventListener("__slide_state__", this.handleSlideStateLog), window.removeEventListener("__slide_ref__", this.handleSlideRef), window.clearInterval(this.persistLogId), iI && iI.removeItem(this.logId).catch(function() {
|
|
36213
36336
|
});
|
|
36214
36337
|
try {
|
|
36215
36338
|
((i2 = this.player) === null || i2 === void 0 ? void 0 : i2.view) && this.anchor.removeChild(this.player.view);
|
|
@@ -36220,15 +36343,6 @@ void main(void){
|
|
|
36220
36343
|
}, e3;
|
|
36221
36344
|
}(a.a);
|
|
36222
36345
|
}]);
|
|
36223
|
-
function clamp$1(value, min, max) {
|
|
36224
|
-
return Math.min(Math.max(value, min), max);
|
|
36225
|
-
}
|
|
36226
|
-
function isObj(obj) {
|
|
36227
|
-
return typeof obj === "object" && obj !== null;
|
|
36228
|
-
}
|
|
36229
|
-
function deepClone(obj) {
|
|
36230
|
-
return JSON.parse(JSON.stringify(obj));
|
|
36231
|
-
}
|
|
36232
36346
|
var colorString = { exports: {} };
|
|
36233
36347
|
var colorName = {
|
|
36234
36348
|
"aliceblue": [240, 248, 255],
|
|
@@ -36586,41 +36700,6 @@ function hexDouble(num) {
|
|
|
36586
36700
|
return str.length < 2 ? "0" + str : str;
|
|
36587
36701
|
}
|
|
36588
36702
|
var ColorString = colorString.exports;
|
|
36589
|
-
class Logger {
|
|
36590
|
-
constructor(enable) {
|
|
36591
|
-
this.enable = enable;
|
|
36592
|
-
this.apps = {};
|
|
36593
|
-
this.level = "debug";
|
|
36594
|
-
this._onMessage = (ev) => {
|
|
36595
|
-
if (isObj(ev.data)) {
|
|
36596
|
-
if (typeof ev.data.slide === "boolean") {
|
|
36597
|
-
this.enable = ev.data.slide;
|
|
36598
|
-
} else if (ev.data.slide === "__instance") {
|
|
36599
|
-
console.log(this);
|
|
36600
|
-
}
|
|
36601
|
-
}
|
|
36602
|
-
};
|
|
36603
|
-
window.addEventListener("message", this._onMessage);
|
|
36604
|
-
}
|
|
36605
|
-
log(...args) {
|
|
36606
|
-
if (this.enable) {
|
|
36607
|
-
console.log(...args);
|
|
36608
|
-
}
|
|
36609
|
-
}
|
|
36610
|
-
verbose(...args) {
|
|
36611
|
-
if (this.enable && this.level === "verbose") {
|
|
36612
|
-
console.log(...args);
|
|
36613
|
-
}
|
|
36614
|
-
}
|
|
36615
|
-
dispose(appId) {
|
|
36616
|
-
this.enable = false;
|
|
36617
|
-
delete this.apps[appId];
|
|
36618
|
-
window.removeEventListener("message", this._onMessage);
|
|
36619
|
-
}
|
|
36620
|
-
}
|
|
36621
|
-
const logger = new Logger(false);
|
|
36622
|
-
const log = logger.log.bind(logger);
|
|
36623
|
-
const verbose = logger.verbose.bind(logger);
|
|
36624
36703
|
function guessBgColor(el) {
|
|
36625
36704
|
try {
|
|
36626
36705
|
const bg = window.getComputedStyle(el).backgroundColor;
|
|
@@ -36726,9 +36805,7 @@ class SlideController {
|
|
|
36726
36805
|
if (type === Slide.SLIDE_EVENTS.syncDispatch) {
|
|
36727
36806
|
this.syncStateOnce();
|
|
36728
36807
|
log("[Slide] receive", payload);
|
|
36729
|
-
|
|
36730
|
-
this.slide.emit(Slide.SLIDE_EVENTS.syncReceive, payload);
|
|
36731
|
-
}
|
|
36808
|
+
this.slide.emit(Slide.SLIDE_EVENTS.syncReceive, payload);
|
|
36732
36809
|
}
|
|
36733
36810
|
}
|
|
36734
36811
|
};
|
|
@@ -38027,53 +38104,6 @@ class SlideDocsViewer {
|
|
|
38027
38104
|
return `${this.namespace}-${className}`;
|
|
38028
38105
|
}
|
|
38029
38106
|
}
|
|
38030
|
-
const FreezerLength = 2;
|
|
38031
|
-
const apps = {
|
|
38032
|
-
map: new Map(),
|
|
38033
|
-
queue: [],
|
|
38034
|
-
validateQueue() {
|
|
38035
|
-
log("[Slide] freezer: validate", this.queue);
|
|
38036
|
-
while (this.queue.length > FreezerLength) {
|
|
38037
|
-
const appId = this.queue.pop();
|
|
38038
|
-
const slide = this.map.get(appId);
|
|
38039
|
-
if (slide) {
|
|
38040
|
-
log("[Slide] freezer: validate-freeze", appId, this.queue);
|
|
38041
|
-
slide.freeze();
|
|
38042
|
-
}
|
|
38043
|
-
}
|
|
38044
|
-
},
|
|
38045
|
-
set(appId, slide) {
|
|
38046
|
-
log("[Slide] freezer: add", appId, this.queue);
|
|
38047
|
-
this.map.set(appId, slide);
|
|
38048
|
-
if (!this.queue.includes(appId)) {
|
|
38049
|
-
this.queue.unshift(appId);
|
|
38050
|
-
}
|
|
38051
|
-
this.validateQueue();
|
|
38052
|
-
},
|
|
38053
|
-
delete(appId) {
|
|
38054
|
-
log("[Slide] freezer: delete", appId, this.queue);
|
|
38055
|
-
this.map.delete(appId);
|
|
38056
|
-
this.queue = this.queue.filter((id) => id !== appId);
|
|
38057
|
-
},
|
|
38058
|
-
focus(appId) {
|
|
38059
|
-
const slide = this.map.get(appId);
|
|
38060
|
-
const index = this.queue.indexOf(appId);
|
|
38061
|
-
if (index > -1) {
|
|
38062
|
-
this.queue.splice(index, 1);
|
|
38063
|
-
}
|
|
38064
|
-
this.queue.unshift(appId);
|
|
38065
|
-
this.validateQueue();
|
|
38066
|
-
log("[Slide] freezer: focus", appId, this.queue);
|
|
38067
|
-
if (slide) {
|
|
38068
|
-
slide.unfreeze();
|
|
38069
|
-
}
|
|
38070
|
-
}
|
|
38071
|
-
};
|
|
38072
|
-
const addHooks = (emitter) => {
|
|
38073
|
-
emitter.on("focus", ({ appId }) => {
|
|
38074
|
-
apps.focus(appId);
|
|
38075
|
-
});
|
|
38076
|
-
};
|
|
38077
38107
|
var styles = ".netless-app-slide-content{position:relative;height:100%;overflow:hidden}.netless-app-slide-preview-mask{display:none;position:absolute;z-index:200;top:0;left:0;width:100%;height:100%}.netless-app-slide-preview{display:flex;flex-direction:column;align-items:center;position:absolute;z-index:300;top:0;left:0;width:33%;max-width:200px;height:100%;padding-top:10px;transform:translate(-100%);background:rgba(237,237,240,.9);box-shadow:inset -1px 0 #0000001c;transition:transform .4s}.netless-app-slide-preview-active .netless-app-slide-preview-mask{display:block}.netless-app-slide-preview-active .netless-app-slide-preview{transform:translate(0)}.netless-app-slide-preview-page{position:relative;display:block;width:55%;margin-bottom:10px;font-size:0;color:transparent;outline:none;border:7px solid transparent;border-radius:4px;transition:border-color .3s;user-select:none}.netless-app-slide-preview-page:hover,.netless-app-slide-preview-page.netless-app-slide-preview-page-active{border-color:#444e601a}.netless-app-slide-preview-page>img{width:100%;height:auto;box-sizing:border-box;border:1px solid rgba(0,0,0,.5);border-radius:1px;background-color:#fff;box-shadow:0 2px 8px #0000004d}.netless-app-slide-preview-page-name{position:absolute;top:1px;left:-10px;transform:translate(-100%);text-align:right;font-size:12px;color:#5f5f5f;user-select:none}.netless-app-slide-footer{box-sizing:border-box;height:26px;display:flex;align-items:center;padding:0 16px;border-top:1px solid #eeeef7;color:#191919}.netless-app-slide-float-footer{width:100%;min-height:26px;position:absolute;left:0;bottom:0;z-index:2000;background:rgba(249,249,252,.9);transition:opacity .4s}.netless-app-slide-footer-btn{box-sizing:border-box;width:26px;height:26px;font-size:0;margin:0;padding:3px;border:none;border-radius:1px;outline:none;color:currentColor;background:transparent;transition:background .4s;cursor:pointer;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.netless-app-slide-footer-btn:hover{background:rgba(237,237,240,.9)}@media (hover: none){.netless-app-slide-footer-btn:hover{background:transparent!important}}.netless-app-slide-footer-btn>svg{width:100%;height:100%}.netless-app-slide-footer-btn>svg:nth-of-type(2){display:none}.netless-app-slide-footer-btn.netless-app-slide-footer-btn-playing>svg:nth-of-type(1){display:none}.netless-app-slide-footer-btn.netless-app-slide-footer-btn-playing>svg:nth-of-type(2){display:initial}.netless-app-slide-footer-btn~.netless-app-slide-footer-btn{margin-left:15px}.netless-app-slide-page-jumps{flex:1;display:flex;justify-content:center;align-items:center}.netless-app-slide-page-number{margin-left:auto;font-size:13px;user-select:none;white-space:nowrap;word-break:keep-all}.netless-app-slide-page-number-input{border:none;outline:none;width:1.5em;margin:0;padding:0 2px;text-align:right;font-size:13px;line-height:1;font-weight:400;font-family:inherit;border-radius:2px;color:currentColor;background:transparent;transition:background .4s;user-select:text;-webkit-tap-highlight-color:rgba(0,0,0,0)}.netless-app-slide-page-number-input:hover,.netless-app-slide-page-number-input:focus,.netless-app-slide-page-number-input:active{background:#fff;box-shadow:#63636333 0 2px 8px}.netless-app-slide-readonly.netless-app-slide-footer{display:none}.telebox-color-scheme-dark .netless-app-slide-page-number-input{color:#a6a6a8}.telebox-color-scheme-dark .netless-app-slide-page-number-input:active,.telebox-color-scheme-dark .netless-app-slide-page-number-input:focus,.telebox-color-scheme-dark .netless-app-slide-page-number-input:hover{color:#222}.telebox-color-scheme-dark .netless-app-slide-footer{color:#a6a6a8;background:#2d2d33;border-top:none}.telebox-color-scheme-dark .netless-app-slide-footer-btn:hover{background:#212126}.telebox-color-scheme-dark .netless-app-slide-preview{background:rgba(50,50,50,.9)}.netless-app-slide-wb-view{position:absolute;top:0;left:0;width:100%;height:100%;z-index:100;overflow:hidden}.netless-app-slide-slide{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.netless-app-slide-slide canvas{transform:scale(var(--netless-app-slide-scale, 1))}\n";
|
|
38078
38108
|
function previewSlide({
|
|
38079
38109
|
container,
|
|
@@ -38226,7 +38256,7 @@ class SlidePreviewer {
|
|
|
38226
38256
|
return `${this.namespace}-${className}`;
|
|
38227
38257
|
}
|
|
38228
38258
|
}
|
|
38229
|
-
const version = "0.0.
|
|
38259
|
+
const version = "0.0.52";
|
|
38230
38260
|
const SlideApp = {
|
|
38231
38261
|
kind: "Slide",
|
|
38232
38262
|
setup(context) {
|
|
@@ -38270,7 +38300,8 @@ const SlideApp = {
|
|
|
38270
38300
|
}, options), {
|
|
38271
38301
|
onPageChanged
|
|
38272
38302
|
}));
|
|
38273
|
-
|
|
38303
|
+
if (useFreezer)
|
|
38304
|
+
apps.set(context.appId, slideController);
|
|
38274
38305
|
((_a = logger.apps)[_b = context.appId] || (_a[_b] = {})).controller = slideController;
|
|
38275
38306
|
slideController.readyPromise.then(options.onReady);
|
|
38276
38307
|
return slideController;
|
|
@@ -38304,7 +38335,8 @@ const SlideApp = {
|
|
|
38304
38335
|
}
|
|
38305
38336
|
context.emitter.on("destroy", () => {
|
|
38306
38337
|
log("[Slide]: destroy");
|
|
38307
|
-
|
|
38338
|
+
if (useFreezer)
|
|
38339
|
+
apps.delete(context.appId);
|
|
38308
38340
|
sideEffect.flushAll();
|
|
38309
38341
|
if (docsViewer) {
|
|
38310
38342
|
docsViewer.destroy();
|