@netless/app-slide 0.0.51 → 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 +108 -108
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +630 -625
- package/dist/main.es.js.map +1 -1
- package/dist/main.iife.js +123 -123
- package/dist/main.iife.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -1
package/dist/main.es.js
CHANGED
|
@@ -340,10 +340,10 @@ var Slide = function(t2) {
|
|
|
340
340
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
341
341
|
*/
|
|
342
342
|
(function() {
|
|
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]",
|
|
344
|
-
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;
|
|
345
345
|
var 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[
|
|
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;
|
|
347
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() {
|
|
348
348
|
try {
|
|
349
349
|
var t4 = Zt && Zt.require && Zt.require("util").types;
|
|
@@ -494,10 +494,10 @@ var Slide = function(t2) {
|
|
|
494
494
|
i2[n2] = e3(n2);
|
|
495
495
|
return i2;
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function Ce(t4) {
|
|
498
498
|
return t4 ? t4.slice(0, Ye(t4) + 1).replace(Y, "") : t4;
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function Ie(t4) {
|
|
501
501
|
return function(e3) {
|
|
502
502
|
return t4(e3);
|
|
503
503
|
};
|
|
@@ -584,13 +584,13 @@ var Slide = function(t2) {
|
|
|
584
584
|
}
|
|
585
585
|
var Ze = Me({ "&": "&", "<": "<", ">": ">", """: '"', "'": "'" });
|
|
586
586
|
var Je = function t4(e3) {
|
|
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.*?") + "$"),
|
|
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() {
|
|
588
588
|
try {
|
|
589
589
|
var t5 = to(ft2, "defineProperty");
|
|
590
590
|
return t5({}, "", {}), t5;
|
|
591
591
|
} catch (t6) {
|
|
592
592
|
}
|
|
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 =
|
|
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;
|
|
594
594
|
function Pn(t5) {
|
|
595
595
|
if (Ws(t5) && !Ns(t5) && !(t5 instanceof Ln)) {
|
|
596
596
|
if (t5 instanceof On)
|
|
@@ -600,7 +600,7 @@ var Slide = function(t2) {
|
|
|
600
600
|
}
|
|
601
601
|
return new On(t5);
|
|
602
602
|
}
|
|
603
|
-
var
|
|
603
|
+
var Cn = function() {
|
|
604
604
|
function t5() {
|
|
605
605
|
}
|
|
606
606
|
return function(e4) {
|
|
@@ -613,7 +613,7 @@ var Slide = function(t2) {
|
|
|
613
613
|
return t5.prototype = void 0, n3;
|
|
614
614
|
};
|
|
615
615
|
}();
|
|
616
|
-
function
|
|
616
|
+
function In() {
|
|
617
617
|
}
|
|
618
618
|
function On(t5, e4) {
|
|
619
619
|
this.__wrapped__ = t5, this.__actions__ = [], this.__chain__ = !!e4, this.__index__ = 0, this.__values__ = void 0;
|
|
@@ -668,15 +668,15 @@ var Slide = function(t2) {
|
|
|
668
668
|
return Eo(_r(t5));
|
|
669
669
|
}
|
|
670
670
|
function jn(t5, e4, n3) {
|
|
671
|
-
(n3 !== void 0 && !
|
|
671
|
+
(n3 !== void 0 && !Cs(t5[e4], n3) || n3 === void 0 && !(e4 in t5)) && Yn(t5, e4, n3);
|
|
672
672
|
}
|
|
673
673
|
function Vn(t5, e4, n3) {
|
|
674
674
|
var i3 = t5[e4];
|
|
675
|
-
wt2.call(t5, e4) &&
|
|
675
|
+
wt2.call(t5, e4) && Cs(i3, n3) && (n3 !== void 0 || e4 in t5) || Yn(t5, e4, n3);
|
|
676
676
|
}
|
|
677
677
|
function Wn(t5, e4) {
|
|
678
678
|
for (var n3 = t5.length; n3--; )
|
|
679
|
-
if (
|
|
679
|
+
if (Cs(t5[n3][0], e4))
|
|
680
680
|
return n3;
|
|
681
681
|
return -1;
|
|
682
682
|
}
|
|
@@ -747,9 +747,9 @@ var Slide = function(t2) {
|
|
|
747
747
|
case A:
|
|
748
748
|
case R:
|
|
749
749
|
case P:
|
|
750
|
-
case I:
|
|
751
|
-
case "[object Uint8ClampedArray]":
|
|
752
750
|
case C:
|
|
751
|
+
case "[object Uint8ClampedArray]":
|
|
752
|
+
case I:
|
|
753
753
|
case O:
|
|
754
754
|
return fr(t6, n4);
|
|
755
755
|
case m:
|
|
@@ -807,7 +807,7 @@ var Slide = function(t2) {
|
|
|
807
807
|
var r4 = -1, o3 = ce, s3 = true, a2 = t5.length, l2 = [], u2 = e4.length;
|
|
808
808
|
if (!a2)
|
|
809
809
|
return l2;
|
|
810
|
-
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));
|
|
811
811
|
t:
|
|
812
812
|
for (; ++r4 < a2; ) {
|
|
813
813
|
var h2 = t5[r4], c2 = n3 == null ? h2 : n3(h2);
|
|
@@ -821,7 +821,7 @@ var Slide = function(t2) {
|
|
|
821
821
|
}
|
|
822
822
|
return l2;
|
|
823
823
|
}
|
|
824
|
-
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() {
|
|
825
825
|
this.__data__ = _n ? _n(null) : {}, this.size = 0;
|
|
826
826
|
}, Nn.prototype.delete = function(t5) {
|
|
827
827
|
var e4 = this.has(t5) && delete this.__data__[t5];
|
|
@@ -964,7 +964,7 @@ var Slide = function(t2) {
|
|
|
964
964
|
function _i(t5, e4, n3) {
|
|
965
965
|
for (var r4 = n3 ? de : ce, o3 = t5[0].length, s3 = t5.length, a2 = s3, l2 = i2(s3), u2 = 1 / 0, h2 = []; a2--; ) {
|
|
966
966
|
var c2 = t5[a2];
|
|
967
|
-
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;
|
|
968
968
|
}
|
|
969
969
|
c2 = t5[0];
|
|
970
970
|
var d2 = -1, p2 = l2[0];
|
|
@@ -1009,7 +1009,7 @@ var Slide = function(t2) {
|
|
|
1009
1009
|
case h:
|
|
1010
1010
|
case c:
|
|
1011
1011
|
case g:
|
|
1012
|
-
return
|
|
1012
|
+
return Cs(+t7, +e6);
|
|
1013
1013
|
case d:
|
|
1014
1014
|
return t7.name == e6.name && t7.message == e6.message;
|
|
1015
1015
|
case _:
|
|
@@ -1036,8 +1036,8 @@ var Slide = function(t2) {
|
|
|
1036
1036
|
if (!(1 & n4)) {
|
|
1037
1037
|
var A2 = T2 && wt2.call(t6, "__wrapped__"), R2 = E2 && wt2.call(e5, "__wrapped__");
|
|
1038
1038
|
if (A2 || R2) {
|
|
1039
|
-
var P2 = A2 ? t6.value() : t6,
|
|
1040
|
-
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);
|
|
1041
1041
|
}
|
|
1042
1042
|
}
|
|
1043
1043
|
if (!M2)
|
|
@@ -1106,7 +1106,7 @@ var Slide = function(t2) {
|
|
|
1106
1106
|
var e4;
|
|
1107
1107
|
}
|
|
1108
1108
|
function Si(t5) {
|
|
1109
|
-
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);
|
|
1110
1110
|
}
|
|
1111
1111
|
function Ei(t5) {
|
|
1112
1112
|
if (!po(t5))
|
|
@@ -1145,13 +1145,13 @@ var Slide = function(t2) {
|
|
|
1145
1145
|
return n3 === t5 || Ti(n3, t5, e4);
|
|
1146
1146
|
};
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1148
|
+
function Ci(t5, e4) {
|
|
1149
1149
|
return uo(t5) && fo(e4) ? mo(Ao(t5), e4) : function(n3) {
|
|
1150
1150
|
var i3 = ga(n3, t5);
|
|
1151
1151
|
return i3 === void 0 && i3 === e4 ? va(n3, t5) : bi(e4, i3, 3);
|
|
1152
1152
|
};
|
|
1153
1153
|
}
|
|
1154
|
-
function
|
|
1154
|
+
function Ii(t5, e4, n3, i3, r4) {
|
|
1155
1155
|
t5 !== e4 && ai(e4, function(o3, s3) {
|
|
1156
1156
|
if (r4 || (r4 = new Un()), Vs(o3))
|
|
1157
1157
|
!function(t6, e5, n4, i4, r5, o4, s4) {
|
|
@@ -1165,7 +1165,7 @@ var Slide = function(t2) {
|
|
|
1165
1165
|
}
|
|
1166
1166
|
c2 && (s4.set(l2, h2), r5(h2, l2, i4, o4, s4), s4.delete(l2));
|
|
1167
1167
|
jn(t6, n4, h2);
|
|
1168
|
-
}(t5, e4, s3, n3,
|
|
1168
|
+
}(t5, e4, s3, n3, Ii, i3, r4);
|
|
1169
1169
|
else {
|
|
1170
1170
|
var a2 = i3 ? i3(yo(t5, s3), o3, s3 + "", t5, e4, r4) : void 0;
|
|
1171
1171
|
a2 === void 0 && (a2 = o3), jn(t5, s3, a2);
|
|
@@ -1184,7 +1184,7 @@ var Slide = function(t2) {
|
|
|
1184
1184
|
} : t6;
|
|
1185
1185
|
}) : [qa];
|
|
1186
1186
|
var i3 = -1;
|
|
1187
|
-
return e4 = pe(e4,
|
|
1187
|
+
return e4 = pe(e4, Ie($r())), function(t6, e5) {
|
|
1188
1188
|
var n4 = t6.length;
|
|
1189
1189
|
for (t6.sort(e5); n4--; )
|
|
1190
1190
|
t6[n4] = t6[n4].value;
|
|
@@ -1218,7 +1218,7 @@ var Slide = function(t2) {
|
|
|
1218
1218
|
}
|
|
1219
1219
|
function Di(t5, e4, n3, i3) {
|
|
1220
1220
|
var r4 = i3 ? Te : be, o3 = -1, s3 = e4.length, a2 = t5;
|
|
1221
|
-
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; )
|
|
1222
1222
|
for (var l2 = 0, u2 = e4[o3], h2 = n3 ? n3(u2) : u2; (l2 = r4(a2, h2, l2, i3)) > -1; )
|
|
1223
1223
|
a2 !== t5 && Yt2.call(a2, l2, 1), Yt2.call(t5, l2, 1);
|
|
1224
1224
|
return t5;
|
|
@@ -1249,10 +1249,10 @@ var Slide = function(t2) {
|
|
|
1249
1249
|
return To(go(t5, e4, qa), t5 + "");
|
|
1250
1250
|
}
|
|
1251
1251
|
function Gi(t5) {
|
|
1252
|
-
return Gn(
|
|
1252
|
+
return Gn(Ca(t5));
|
|
1253
1253
|
}
|
|
1254
1254
|
function Hi(t5, e4) {
|
|
1255
|
-
var n3 =
|
|
1255
|
+
var n3 = Ca(t5);
|
|
1256
1256
|
return Eo(n3, Jn(e4, 0, n3.length));
|
|
1257
1257
|
}
|
|
1258
1258
|
function zi(t5, e4, n3, i3) {
|
|
@@ -1276,7 +1276,7 @@ var Slide = function(t2) {
|
|
|
1276
1276
|
return _e2(t5, "toString", { configurable: true, enumerable: false, value: Va(e4), writable: true });
|
|
1277
1277
|
} : qa;
|
|
1278
1278
|
function Wi(t5) {
|
|
1279
|
-
return Eo(
|
|
1279
|
+
return Eo(Ca(t5));
|
|
1280
1280
|
}
|
|
1281
1281
|
function Xi(t5, e4, n3) {
|
|
1282
1282
|
var r4 = -1, o3 = t5.length;
|
|
@@ -1319,7 +1319,7 @@ var Slide = function(t2) {
|
|
|
1319
1319
|
function Ji(t5, e4) {
|
|
1320
1320
|
for (var n3 = -1, i3 = t5.length, r4 = 0, o3 = []; ++n3 < i3; ) {
|
|
1321
1321
|
var s3 = t5[n3], a2 = e4 ? e4(s3) : s3;
|
|
1322
|
-
if (!n3 || !
|
|
1322
|
+
if (!n3 || !Cs(a2, l2)) {
|
|
1323
1323
|
var l2 = a2;
|
|
1324
1324
|
o3[r4++] = s3 === 0 ? 0 : s3;
|
|
1325
1325
|
}
|
|
@@ -1539,7 +1539,7 @@ var Slide = function(t2) {
|
|
|
1539
1539
|
case 7:
|
|
1540
1540
|
return new t5(e4[0], e4[1], e4[2], e4[3], e4[4], e4[5], e4[6]);
|
|
1541
1541
|
}
|
|
1542
|
-
var n3 =
|
|
1542
|
+
var n3 = Cn(t5.prototype), i3 = t5.apply(n3, e4);
|
|
1543
1543
|
return Vs(i3) ? i3 : n3;
|
|
1544
1544
|
};
|
|
1545
1545
|
}
|
|
@@ -1595,7 +1595,7 @@ var Slide = function(t2) {
|
|
|
1595
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);
|
|
1596
1596
|
};
|
|
1597
1597
|
}
|
|
1598
|
-
function
|
|
1598
|
+
function Cr(t5, e4) {
|
|
1599
1599
|
return function(n3, i3) {
|
|
1600
1600
|
return function(t6, e5, n4, i4) {
|
|
1601
1601
|
return ui(t6, function(t7, r4, o3) {
|
|
@@ -1604,7 +1604,7 @@ var Slide = function(t2) {
|
|
|
1604
1604
|
}(n3, t5, e4(i3), {});
|
|
1605
1605
|
};
|
|
1606
1606
|
}
|
|
1607
|
-
function
|
|
1607
|
+
function Ir(t5, e4) {
|
|
1608
1608
|
return function(n3, i3) {
|
|
1609
1609
|
var r4;
|
|
1610
1610
|
if (n3 === void 0 && i3 === void 0)
|
|
@@ -1619,7 +1619,7 @@ var Slide = function(t2) {
|
|
|
1619
1619
|
}
|
|
1620
1620
|
function Or(t5) {
|
|
1621
1621
|
return Wr(function(e4) {
|
|
1622
|
-
return e4 = pe(e4,
|
|
1622
|
+
return e4 = pe(e4, Ie($r())), ki(function(n3) {
|
|
1623
1623
|
var i3 = this;
|
|
1624
1624
|
return t5(e4, function(t6) {
|
|
1625
1625
|
return oe(t6, i3, n3);
|
|
@@ -1735,10 +1735,10 @@ var Slide = function(t2) {
|
|
|
1735
1735
|
return wo((m2 ? ji : xo)(v2, g2), t5, e4);
|
|
1736
1736
|
}
|
|
1737
1737
|
function Hr(t5, e4, n3, i3) {
|
|
1738
|
-
return t5 === void 0 ||
|
|
1738
|
+
return t5 === void 0 || Cs(t5, xt2[n3]) && !wt2.call(i3, n3) ? e4 : t5;
|
|
1739
1739
|
}
|
|
1740
1740
|
function zr(t5, e4, n3, i3, r4, o3) {
|
|
1741
|
-
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;
|
|
1742
1742
|
}
|
|
1743
1743
|
function jr(t5) {
|
|
1744
1744
|
return Ys(t5) ? void 0 : t5;
|
|
@@ -1839,7 +1839,7 @@ var Slide = function(t2) {
|
|
|
1839
1839
|
return o3 || ++i3 != r4 ? o3 : !!(r4 = t5 == null ? 0 : t5.length) && js(r4) && ao(s3, r4) && (Ns(t5) || Ls(t5));
|
|
1840
1840
|
}
|
|
1841
1841
|
function oo(t5) {
|
|
1842
|
-
return typeof t5.constructor != "function" || po(t5) ? {} :
|
|
1842
|
+
return typeof t5.constructor != "function" || po(t5) ? {} : Cn(zt2(t5));
|
|
1843
1843
|
}
|
|
1844
1844
|
function so(t5) {
|
|
1845
1845
|
return Ns(t5) || Ls(t5) || !!(Zt2 && t5 && t5[Zt2]);
|
|
@@ -1852,7 +1852,7 @@ var Slide = function(t2) {
|
|
|
1852
1852
|
if (!Vs(n3))
|
|
1853
1853
|
return false;
|
|
1854
1854
|
var i3 = typeof e4;
|
|
1855
|
-
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);
|
|
1856
1856
|
}
|
|
1857
1857
|
function uo(t5, e4) {
|
|
1858
1858
|
if (Ns(t5))
|
|
@@ -2000,9 +2000,9 @@ var Slide = function(t2) {
|
|
|
2000
2000
|
var e4 = new On(t5.__wrapped__, t5.__chain__);
|
|
2001
2001
|
return e4.__actions__ = _r(t5.__actions__), e4.__index__ = t5.__index__, e4.__values__ = t5.__values__, e4;
|
|
2002
2002
|
}
|
|
2003
|
-
var
|
|
2003
|
+
var Co = ki(function(t5, e4) {
|
|
2004
2004
|
return Bs(t5) ? ti(t5, si(e4, 1, Bs, true)) : [];
|
|
2005
|
-
}),
|
|
2005
|
+
}), Io = ki(function(t5, e4) {
|
|
2006
2006
|
var n3 = Go(e4);
|
|
2007
2007
|
return Bs(n3) && (n3 = void 0), Bs(t5) ? ti(t5, si(e4, 1, Bs, true), $r(n3, 2)) : [];
|
|
2008
2008
|
}), Oo = ki(function(t5, e4) {
|
|
@@ -2257,7 +2257,7 @@ var Slide = function(t2) {
|
|
|
2257
2257
|
}
|
|
2258
2258
|
Ss.Cache = Fn;
|
|
2259
2259
|
var Ms = ur(function(t5, e4) {
|
|
2260
|
-
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;
|
|
2261
2261
|
return ki(function(i3) {
|
|
2262
2262
|
for (var r4 = -1, o3 = ln(i3.length, n3); ++r4 < o3; )
|
|
2263
2263
|
i3[r4] = e4[r4].call(this, i3[r4]);
|
|
@@ -2270,16 +2270,16 @@ var Slide = function(t2) {
|
|
|
2270
2270
|
}), Ps = Wr(function(t5, e4) {
|
|
2271
2271
|
return Gr(t5, 256, void 0, void 0, void 0, e4);
|
|
2272
2272
|
});
|
|
2273
|
-
function
|
|
2273
|
+
function Cs(t5, e4) {
|
|
2274
2274
|
return t5 === e4 || t5 != t5 && e4 != e4;
|
|
2275
2275
|
}
|
|
2276
|
-
var
|
|
2276
|
+
var Is = Dr(mi), Os = Dr(function(t5, e4) {
|
|
2277
2277
|
return t5 >= e4;
|
|
2278
2278
|
}), Ls = xi(function() {
|
|
2279
2279
|
return arguments;
|
|
2280
2280
|
}()) ? xi : function(t5) {
|
|
2281
2281
|
return Ws(t5) && wt2.call(t5, "callee") && !Xt2.call(t5, "callee");
|
|
2282
|
-
}, Ns = i2.isArray, Ds = Qt ?
|
|
2282
|
+
}, Ns = i2.isArray, Ds = Qt ? Ie(Qt) : function(t5) {
|
|
2283
2283
|
return Ws(t5) && fi(t5) == w;
|
|
2284
2284
|
};
|
|
2285
2285
|
function Fs(t5) {
|
|
@@ -2288,7 +2288,7 @@ var Slide = function(t2) {
|
|
|
2288
2288
|
function Bs(t5) {
|
|
2289
2289
|
return Ws(t5) && Fs(t5);
|
|
2290
2290
|
}
|
|
2291
|
-
var Us = nn || sl, ks = te ?
|
|
2291
|
+
var Us = nn || sl, ks = te ? Ie(te) : function(t5) {
|
|
2292
2292
|
return Ws(t5) && fi(t5) == c;
|
|
2293
2293
|
};
|
|
2294
2294
|
function Gs(t5) {
|
|
@@ -2316,7 +2316,7 @@ var Slide = function(t2) {
|
|
|
2316
2316
|
function Ws(t5) {
|
|
2317
2317
|
return t5 != null && typeof t5 == "object";
|
|
2318
2318
|
}
|
|
2319
|
-
var Xs = ee ?
|
|
2319
|
+
var Xs = ee ? Ie(ee) : function(t5) {
|
|
2320
2320
|
return Ws(t5) && io(t5) == m;
|
|
2321
2321
|
};
|
|
2322
2322
|
function qs(t5) {
|
|
@@ -2331,10 +2331,10 @@ var Slide = function(t2) {
|
|
|
2331
2331
|
var n3 = wt2.call(e4, "constructor") && e4.constructor;
|
|
2332
2332
|
return typeof n3 == "function" && n3 instanceof n3 && Tt2.call(n3) == At2;
|
|
2333
2333
|
}
|
|
2334
|
-
var Zs = ne ?
|
|
2334
|
+
var Zs = ne ? Ie(ne) : function(t5) {
|
|
2335
2335
|
return Ws(t5) && fi(t5) == _;
|
|
2336
2336
|
};
|
|
2337
|
-
var Js = ie ?
|
|
2337
|
+
var Js = ie ? Ie(ie) : function(t5) {
|
|
2338
2338
|
return Ws(t5) && io(t5) == y;
|
|
2339
2339
|
};
|
|
2340
2340
|
function $s(t5) {
|
|
@@ -2343,7 +2343,7 @@ var Slide = function(t2) {
|
|
|
2343
2343
|
function Ks(t5) {
|
|
2344
2344
|
return typeof t5 == "symbol" || Ws(t5) && fi(t5) == b;
|
|
2345
2345
|
}
|
|
2346
|
-
var Qs = re ?
|
|
2346
|
+
var Qs = re ? Ie(re) : function(t5) {
|
|
2347
2347
|
return Ws(t5) && js(t5.length) && !!Gt[fi(t5)];
|
|
2348
2348
|
};
|
|
2349
2349
|
var ta = Dr(Ai), ea = Dr(function(t5, e4) {
|
|
@@ -2361,7 +2361,7 @@ var Slide = function(t2) {
|
|
|
2361
2361
|
return n3;
|
|
2362
2362
|
}(t5[$t2]());
|
|
2363
2363
|
var e4 = io(t5);
|
|
2364
|
-
return (e4 == m ? He : e4 == y ? Ve :
|
|
2364
|
+
return (e4 == m ? He : e4 == y ? Ve : Ca)(t5);
|
|
2365
2365
|
}
|
|
2366
2366
|
function ia(t5) {
|
|
2367
2367
|
return t5 ? (t5 = sa(t5)) === 1 / 0 || t5 === -1 / 0 ? 17976931348623157e292 * (t5 < 0 ? -1 : 1) : t5 == t5 ? t5 : 0 : t5 === 0 ? t5 : 0;
|
|
@@ -2384,7 +2384,7 @@ var Slide = function(t2) {
|
|
|
2384
2384
|
}
|
|
2385
2385
|
if (typeof t5 != "string")
|
|
2386
2386
|
return t5 === 0 ? t5 : +t5;
|
|
2387
|
-
t5 =
|
|
2387
|
+
t5 = Ce(t5);
|
|
2388
2388
|
var n3 = ot.test(t5);
|
|
2389
2389
|
return n3 || at.test(t5) ? Vt(t5.slice(2), n3 ? 2 : 8) : rt.test(t5) ? NaN : +t5;
|
|
2390
2390
|
}
|
|
@@ -2413,7 +2413,7 @@ var Slide = function(t2) {
|
|
|
2413
2413
|
for (r4 && lo(e4[0], e4[1], r4) && (i3 = 1); ++n3 < i3; )
|
|
2414
2414
|
for (var o3 = e4[n3], s3 = Ta(o3), a2 = -1, l2 = s3.length; ++a2 < l2; ) {
|
|
2415
2415
|
var u2 = s3[a2], h2 = t5[u2];
|
|
2416
|
-
(h2 === void 0 ||
|
|
2416
|
+
(h2 === void 0 || Cs(h2, xt2[u2]) && !wt2.call(t5, u2)) && (t5[u2] = o3[u2]);
|
|
2417
2417
|
}
|
|
2418
2418
|
return t5;
|
|
2419
2419
|
}), ma = ki(function(t5) {
|
|
@@ -2426,9 +2426,9 @@ var Slide = function(t2) {
|
|
|
2426
2426
|
function va(t5, e4) {
|
|
2427
2427
|
return t5 != null && ro(t5, e4, vi);
|
|
2428
2428
|
}
|
|
2429
|
-
var _a =
|
|
2429
|
+
var _a = Cr(function(t5, e4, n3) {
|
|
2430
2430
|
e4 != null && typeof e4.toString != "function" && (e4 = Mt2.call(e4)), t5[e4] = n3;
|
|
2431
|
-
}, Va(qa)), ya =
|
|
2431
|
+
}, Va(qa)), ya = Cr(function(t5, e4, n3) {
|
|
2432
2432
|
e4 != null && typeof e4.toString != "function" && (e4 = Mt2.call(e4)), wt2.call(t5, e4) ? t5[e4].push(n3) : t5[e4] = [n3];
|
|
2433
2433
|
}, $r), xa = ki(yi);
|
|
2434
2434
|
function ba(t5) {
|
|
@@ -2438,9 +2438,9 @@ var Slide = function(t2) {
|
|
|
2438
2438
|
return Fs(t5) ? kn(t5, true) : Mi(t5);
|
|
2439
2439
|
}
|
|
2440
2440
|
var wa = br(function(t5, e4, n3) {
|
|
2441
|
-
|
|
2441
|
+
Ii(t5, e4, n3);
|
|
2442
2442
|
}), Sa = br(function(t5, e4, n3, i3) {
|
|
2443
|
-
|
|
2443
|
+
Ii(t5, e4, n3, i3);
|
|
2444
2444
|
}), Ea = Wr(function(t5, e4) {
|
|
2445
2445
|
var n3 = {};
|
|
2446
2446
|
if (t5 == null)
|
|
@@ -2471,10 +2471,10 @@ var Slide = function(t2) {
|
|
|
2471
2471
|
});
|
|
2472
2472
|
}
|
|
2473
2473
|
var Ra = kr(ba), Pa = kr(Ta);
|
|
2474
|
-
function
|
|
2474
|
+
function Ca(t5) {
|
|
2475
2475
|
return t5 == null ? [] : Oe(t5, ba(t5));
|
|
2476
2476
|
}
|
|
2477
|
-
var
|
|
2477
|
+
var Ia = Er(function(t5, e4, n3) {
|
|
2478
2478
|
return e4 = e4.toLowerCase(), t5 + (n3 ? Oa(e4) : e4);
|
|
2479
2479
|
});
|
|
2480
2480
|
function Oa(t5) {
|
|
@@ -2571,14 +2571,14 @@ var Slide = function(t2) {
|
|
|
2571
2571
|
function sl() {
|
|
2572
2572
|
return false;
|
|
2573
2573
|
}
|
|
2574
|
-
var al =
|
|
2574
|
+
var al = Ir(function(t5, e4) {
|
|
2575
2575
|
return t5 + e4;
|
|
2576
|
-
}, 0), ll = Br("ceil"), ul =
|
|
2576
|
+
}, 0), ll = Br("ceil"), ul = Ir(function(t5, e4) {
|
|
2577
2577
|
return t5 / e4;
|
|
2578
2578
|
}, 1), hl = Br("floor");
|
|
2579
|
-
var cl, dl =
|
|
2579
|
+
var cl, dl = Ir(function(t5, e4) {
|
|
2580
2580
|
return t5 * e4;
|
|
2581
|
-
}, 1), pl = Br("round"), fl =
|
|
2581
|
+
}, 1), pl = Br("round"), fl = Ir(function(t5, e4) {
|
|
2582
2582
|
return t5 - e4;
|
|
2583
2583
|
}, 0);
|
|
2584
2584
|
return Pn.after = function(t5, e4) {
|
|
@@ -2635,7 +2635,7 @@ var Slide = function(t2) {
|
|
|
2635
2635
|
};
|
|
2636
2636
|
}($n(t5, 1));
|
|
2637
2637
|
}, Pn.constant = Va, Pn.countBy = os, Pn.create = function(t5, e4) {
|
|
2638
|
-
var n3 =
|
|
2638
|
+
var n3 = Cn(t5);
|
|
2639
2639
|
return e4 == null ? n3 : qn(n3, e4);
|
|
2640
2640
|
}, Pn.curry = function t5(e4, n3, i3) {
|
|
2641
2641
|
var r4 = Gr(e4, 8, void 0, void 0, void 0, void 0, void 0, n3 = i3 ? void 0 : n3);
|
|
@@ -2643,7 +2643,7 @@ var Slide = function(t2) {
|
|
|
2643
2643
|
}, Pn.curryRight = function t5(e4, n3, i3) {
|
|
2644
2644
|
var r4 = Gr(e4, 16, void 0, void 0, void 0, void 0, void 0, n3 = i3 ? void 0 : n3);
|
|
2645
2645
|
return r4.placeholder = t5.placeholder, r4;
|
|
2646
|
-
}, 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) {
|
|
2647
2647
|
var i3 = t5 == null ? 0 : t5.length;
|
|
2648
2648
|
return i3 ? Xi(t5, (e4 = n3 || e4 === void 0 ? 1 : ra(e4)) < 0 ? 0 : e4, i3) : [];
|
|
2649
2649
|
}, Pn.dropRight = function(t5, e4, n3) {
|
|
@@ -2700,7 +2700,7 @@ var Slide = function(t2) {
|
|
|
2700
2700
|
}, Pn.matches = function(t5) {
|
|
2701
2701
|
return Pi($n(t5, 1));
|
|
2702
2702
|
}, Pn.matchesProperty = function(t5, e4) {
|
|
2703
|
-
return
|
|
2703
|
+
return Ci(t5, $n(e4, 1));
|
|
2704
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) {
|
|
2705
2705
|
return t5 = ra(t5), ki(function(e4) {
|
|
2706
2706
|
return Oi(e4, t5);
|
|
@@ -2784,7 +2784,7 @@ var Slide = function(t2) {
|
|
|
2784
2784
|
var i3 = Ns(t5), r4 = i3 || Us(t5) || Qs(t5);
|
|
2785
2785
|
if (e4 = $r(e4, 4), n3 == null) {
|
|
2786
2786
|
var o3 = t5 && t5.constructor;
|
|
2787
|
-
n3 = r4 ? i3 ? new o3() : [] : Vs(t5) && Hs(o3) ?
|
|
2787
|
+
n3 = r4 ? i3 ? new o3() : [] : Vs(t5) && Hs(o3) ? Cn(zt2(t5)) : {};
|
|
2788
2788
|
}
|
|
2789
2789
|
return (r4 ? ae : ui)(t5, function(t6, i4, r5) {
|
|
2790
2790
|
return e4(n3, t6, i4, r5);
|
|
@@ -2803,7 +2803,7 @@ var Slide = function(t2) {
|
|
|
2803
2803
|
return t5 == null ? t5 : er(t5, e4, ar(n3));
|
|
2804
2804
|
}, Pn.updateWith = function(t5, e4, n3, i3) {
|
|
2805
2805
|
return i3 = typeof i3 == "function" ? i3 : void 0, t5 == null ? t5 : er(t5, e4, ar(n3), i3);
|
|
2806
|
-
}, Pn.values =
|
|
2806
|
+
}, Pn.values = Ca, Pn.valuesIn = function(t5) {
|
|
2807
2807
|
return t5 == null ? [] : Oe(t5, Ta(t5));
|
|
2808
2808
|
}, Pn.without = Jo, Pn.words = Ha, Pn.wrap = function(t5, e4) {
|
|
2809
2809
|
return As(ar(e4), t5);
|
|
@@ -2811,7 +2811,7 @@ var Slide = function(t2) {
|
|
|
2811
2811
|
return or(t5 || [], e4 || [], Vn);
|
|
2812
2812
|
}, Pn.zipObjectDeep = function(t5, e4) {
|
|
2813
2813
|
return or(t5 || [], e4 || [], zi);
|
|
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 =
|
|
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) {
|
|
2815
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);
|
|
2816
2816
|
}, Pn.clone = function(t5) {
|
|
2817
2817
|
return $n(t5, 4);
|
|
@@ -2829,7 +2829,7 @@ var Slide = function(t2) {
|
|
|
2829
2829
|
t5 = la(t5), e4 = Ki(e4);
|
|
2830
2830
|
var i3 = t5.length, r4 = n3 = n3 === void 0 ? i3 : Jn(ra(n3), 0, i3);
|
|
2831
2831
|
return (n3 -= e4.length) >= 0 && t5.slice(n3, r4) == e4;
|
|
2832
|
-
}, Pn.eq =
|
|
2832
|
+
}, Pn.eq = Cs, Pn.escape = function(t5) {
|
|
2833
2833
|
return (t5 = la(t5)) && k.test(t5) ? t5.replace(B, Ue) : t5;
|
|
2834
2834
|
}, Pn.escapeRegExp = function(t5) {
|
|
2835
2835
|
return (t5 = la(t5)) && q.test(t5) ? t5.replace(X, "\\$&") : t5;
|
|
@@ -2848,10 +2848,10 @@ var Slide = function(t2) {
|
|
|
2848
2848
|
return t5 && ui(t5, $r(e4, 3));
|
|
2849
2849
|
}, Pn.forOwnRight = function(t5, e4) {
|
|
2850
2850
|
return t5 && hi(t5, $r(e4, 3));
|
|
2851
|
-
}, Pn.get = ga, Pn.gt =
|
|
2851
|
+
}, Pn.get = ga, Pn.gt = Is, Pn.gte = Os, Pn.has = function(t5, e4) {
|
|
2852
2852
|
return t5 != null && ro(t5, e4, gi);
|
|
2853
2853
|
}, Pn.hasIn = va, Pn.head = Fo, Pn.identity = qa, Pn.includes = function(t5, e4, n3, i3) {
|
|
2854
|
-
t5 = Fs(t5) ? t5 :
|
|
2854
|
+
t5 = Fs(t5) ? t5 : Ca(t5), n3 = n3 && !i3 ? ra(n3) : 0;
|
|
2855
2855
|
var r4 = t5.length;
|
|
2856
2856
|
return n3 < 0 && (n3 = an(r4 + n3, 0)), $s(t5) ? n3 <= r4 && t5.indexOf(e4, n3) > -1 : !!r4 && be(t5, e4, n3) > -1;
|
|
2857
2857
|
}, Pn.indexOf = function(t5, e4, n3) {
|
|
@@ -3011,7 +3011,7 @@ var Slide = function(t2) {
|
|
|
3011
3011
|
var n3 = t5 == null ? 0 : t5.length;
|
|
3012
3012
|
if (n3) {
|
|
3013
3013
|
var i3 = Yi(t5, e4);
|
|
3014
|
-
if (i3 < n3 &&
|
|
3014
|
+
if (i3 < n3 && Cs(t5[i3], e4))
|
|
3015
3015
|
return i3;
|
|
3016
3016
|
}
|
|
3017
3017
|
return -1;
|
|
@@ -3022,7 +3022,7 @@ var Slide = function(t2) {
|
|
|
3022
3022
|
}, Pn.sortedLastIndexOf = function(t5, e4) {
|
|
3023
3023
|
if (t5 == null ? 0 : t5.length) {
|
|
3024
3024
|
var n3 = Yi(t5, e4, true) - 1;
|
|
3025
|
-
if (
|
|
3025
|
+
if (Cs(t5[n3], e4))
|
|
3026
3026
|
return n3;
|
|
3027
3027
|
}
|
|
3028
3028
|
return -1;
|
|
@@ -3068,7 +3068,7 @@ var Slide = function(t2) {
|
|
|
3068
3068
|
return la(t5).toUpperCase();
|
|
3069
3069
|
}, Pn.trim = function(t5, e4, n3) {
|
|
3070
3070
|
if ((t5 = la(t5)) && (n3 || e4 === void 0))
|
|
3071
|
-
return
|
|
3071
|
+
return Ce(t5);
|
|
3072
3072
|
if (!t5 || !(e4 = Ki(e4)))
|
|
3073
3073
|
return t5;
|
|
3074
3074
|
var i3 = qe(t5), r4 = qe(e4);
|
|
@@ -3263,7 +3263,7 @@ var Slide = function(t2) {
|
|
|
3263
3263
|
var t5 = this.__index__ >= this.__values__.length;
|
|
3264
3264
|
return { done: t5, value: t5 ? void 0 : this.__values__[this.__index__++] };
|
|
3265
3265
|
}, Pn.prototype.plant = function(t5) {
|
|
3266
|
-
for (var e4, n3 = this; n3 instanceof
|
|
3266
|
+
for (var e4, n3 = this; n3 instanceof In; ) {
|
|
3267
3267
|
var i3 = Po(n3);
|
|
3268
3268
|
i3.__index__ = 0, i3.__values__ = void 0, e4 ? r4.__wrapped__ = i3 : e4 = i3;
|
|
3269
3269
|
var r4 = i3;
|
|
@@ -3961,7 +3961,7 @@ var Slide = function(t2) {
|
|
|
3961
3961
|
} else
|
|
3962
3962
|
i2 = s2.reject("Invalid arguments");
|
|
3963
3963
|
return a(i2, e5), i2;
|
|
3964
|
-
} }, 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;
|
|
3965
3965
|
function O(t4) {
|
|
3966
3966
|
var e5, n3, i2, r3, o3, s3 = 0.75 * t4.length, a2 = t4.length, l2 = 0;
|
|
3967
3967
|
t4[t4.length - 1] === "=" && (s3--, t4[t4.length - 2] === "=" && s3--);
|
|
@@ -3978,7 +3978,7 @@ var Slide = function(t2) {
|
|
|
3978
3978
|
}
|
|
3979
3979
|
var N = { serialize: function(t4, e5) {
|
|
3980
3980
|
var n3 = "";
|
|
3981
|
-
if (t4 && (n3 =
|
|
3981
|
+
if (t4 && (n3 = I.call(t4)), t4 && (n3 === "[object ArrayBuffer]" || t4.buffer && I.call(t4.buffer) === "[object ArrayBuffer]")) {
|
|
3982
3982
|
var i2, r3 = "__lfsc__:";
|
|
3983
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));
|
|
3984
3984
|
} else if (n3 === "[object Blob]") {
|
|
@@ -3996,7 +3996,7 @@ var Slide = function(t2) {
|
|
|
3996
3996
|
}, deserialize: function(t4) {
|
|
3997
3997
|
if (t4.substring(0, P) !== "__lfsc__:")
|
|
3998
3998
|
return JSON.parse(t4);
|
|
3999
|
-
var e5, n3 = t4.substring(
|
|
3999
|
+
var e5, n3 = t4.substring(C), i2 = t4.substring(P, C);
|
|
4000
4000
|
if (i2 === "blob" && R.test(n3)) {
|
|
4001
4001
|
var r3 = n3.match(R);
|
|
4002
4002
|
e5 = r3[1], n3 = n3.substring(r3[0].length);
|
|
@@ -4660,13 +4660,13 @@ var Slide = function(t2) {
|
|
|
4660
4660
|
M === -1 && (M = y2.length), this.host = y2.slice(0, M), y2 = y2.slice(M), this.parseHost(), this.hostname = this.hostname || "";
|
|
4661
4661
|
var P = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
4662
4662
|
if (!P)
|
|
4663
|
-
for (var
|
|
4664
|
-
var O =
|
|
4663
|
+
for (var C = this.hostname.split(/\./), I = (A = 0, C.length); A < I; A++) {
|
|
4664
|
+
var O = C[A];
|
|
4665
4665
|
if (O && !O.match(p)) {
|
|
4666
4666
|
for (var L = "", N = 0, D = O.length; N < D; N++)
|
|
4667
4667
|
O.charCodeAt(N) > 127 ? L += "x" : L += O[N];
|
|
4668
4668
|
if (!L.match(p)) {
|
|
4669
|
-
var F =
|
|
4669
|
+
var F = C.slice(0, A), B = C.slice(A + 1), U = O.match(f);
|
|
4670
4670
|
U && (F.push(U[1]), B.unshift(U[2])), B.length && (y2 = "/" + B.join(".") + y2), this.hostname = F.join(".");
|
|
4671
4671
|
break;
|
|
4672
4672
|
}
|
|
@@ -4677,7 +4677,7 @@ var Slide = function(t2) {
|
|
|
4677
4677
|
this.host = G + k, this.href += this.host, P && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), y2[0] !== "/" && (y2 = "/" + y2));
|
|
4678
4678
|
}
|
|
4679
4679
|
if (!m[T])
|
|
4680
|
-
for (A = 0,
|
|
4680
|
+
for (A = 0, I = h.length; A < I; A++) {
|
|
4681
4681
|
var H = h[A];
|
|
4682
4682
|
if (y2.indexOf(H) !== -1) {
|
|
4683
4683
|
var z = encodeURIComponent(H);
|
|
@@ -4761,9 +4761,9 @@ var Slide = function(t2) {
|
|
|
4761
4761
|
for (; A--; A)
|
|
4762
4762
|
w.unshift("..");
|
|
4763
4763
|
!b || w[0] === "" || w[0] && w[0].charAt(0) === "/" || w.unshift(""), M && w.join("/").substr(-1) !== "/" && w.push("");
|
|
4764
|
-
var P,
|
|
4765
|
-
S && (n2.hostname = n2.host =
|
|
4766
|
-
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;
|
|
4767
4767
|
}, o2.prototype.parseHost = function() {
|
|
4768
4768
|
var t3 = this.host, e3 = a.exec(t3);
|
|
4769
4769
|
e3 && ((e3 = e3[0]) !== ":" && (this.port = e3.substr(1)), t3 = t3.substr(0, t3.length - e3.length)), t3 && (this.hostname = t3);
|
|
@@ -5446,7 +5446,7 @@ var Slide = function(t2) {
|
|
|
5446
5446
|
} else
|
|
5447
5447
|
i2 = s2.reject("Invalid arguments");
|
|
5448
5448
|
return a(i2, e5), i2;
|
|
5449
|
-
} }, 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;
|
|
5450
5450
|
function O(t4) {
|
|
5451
5451
|
var e5, n3, i2, r3, o3, s3 = 0.75 * t4.length, a2 = t4.length, l2 = 0;
|
|
5452
5452
|
t4[t4.length - 1] === "=" && (s3--, t4[t4.length - 2] === "=" && s3--);
|
|
@@ -5463,7 +5463,7 @@ var Slide = function(t2) {
|
|
|
5463
5463
|
}
|
|
5464
5464
|
var N = { serialize: function(t4, e5) {
|
|
5465
5465
|
var n3 = "";
|
|
5466
|
-
if (t4 && (n3 =
|
|
5466
|
+
if (t4 && (n3 = I.call(t4)), t4 && (n3 === "[object ArrayBuffer]" || t4.buffer && I.call(t4.buffer) === "[object ArrayBuffer]")) {
|
|
5467
5467
|
var i2, r3 = "__lfsc__:";
|
|
5468
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));
|
|
5469
5469
|
} else if (n3 === "[object Blob]") {
|
|
@@ -5481,7 +5481,7 @@ var Slide = function(t2) {
|
|
|
5481
5481
|
}, deserialize: function(t4) {
|
|
5482
5482
|
if (t4.substring(0, P) !== "__lfsc__:")
|
|
5483
5483
|
return JSON.parse(t4);
|
|
5484
|
-
var e5, n3 = t4.substring(
|
|
5484
|
+
var e5, n3 = t4.substring(C), i2 = t4.substring(P, C);
|
|
5485
5485
|
if (i2 === "blob" && R.test(n3)) {
|
|
5486
5486
|
var r3 = n3.match(R);
|
|
5487
5487
|
e5 = r3[1], n3 = n3.substring(r3[0].length);
|
|
@@ -7892,19 +7892,19 @@ var Slide = function(t2) {
|
|
|
7892
7892
|
}).call(this, {});
|
|
7893
7893
|
}, function(t2, e2, n) {
|
|
7894
7894
|
n.r(e2), n.d(e2, "delay", function() {
|
|
7895
|
-
return
|
|
7895
|
+
return oI;
|
|
7896
7896
|
}), n.d(e2, "waitUntil", function() {
|
|
7897
|
-
return
|
|
7897
|
+
return sI;
|
|
7898
7898
|
}), n.d(e2, "SLIDE_EVENTS", function() {
|
|
7899
|
-
return
|
|
7899
|
+
return aI;
|
|
7900
7900
|
}), n.d(e2, "Slide", function() {
|
|
7901
|
-
return
|
|
7901
|
+
return hI;
|
|
7902
7902
|
});
|
|
7903
7903
|
var i = {};
|
|
7904
7904
|
n.r(i), n.d(i, "ACESFilmicToneMapping", function() {
|
|
7905
7905
|
return lt;
|
|
7906
7906
|
}), n.d(i, "AddEquation", function() {
|
|
7907
|
-
return
|
|
7907
|
+
return I;
|
|
7908
7908
|
}), n.d(i, "AddOperation", function() {
|
|
7909
7909
|
return it;
|
|
7910
7910
|
}), n.d(i, "AdditiveAnimationBlendMode", function() {
|
|
@@ -7916,7 +7916,7 @@ var Slide = function(t2) {
|
|
|
7916
7916
|
}), n.d(i, "AlwaysDepth", function() {
|
|
7917
7917
|
return Y;
|
|
7918
7918
|
}), n.d(i, "AlwaysStencilFunc", function() {
|
|
7919
|
-
return
|
|
7919
|
+
return Cn;
|
|
7920
7920
|
}), n.d(i, "AmbientLight", function() {
|
|
7921
7921
|
return Uc;
|
|
7922
7922
|
}), n.d(i, "AmbientLightProbe", function() {
|
|
@@ -7958,7 +7958,7 @@ var Slide = function(t2) {
|
|
|
7958
7958
|
}), n.d(i, "BasicShadowMap", function() {
|
|
7959
7959
|
return g;
|
|
7960
7960
|
}), n.d(i, "BinaryTextureLoader", function() {
|
|
7961
|
-
return
|
|
7961
|
+
return If;
|
|
7962
7962
|
}), n.d(i, "Bone", function() {
|
|
7963
7963
|
return Bl;
|
|
7964
7964
|
}), n.d(i, "BooleanKeyframeTrack", function() {
|
|
@@ -7984,7 +7984,7 @@ var Slide = function(t2) {
|
|
|
7984
7984
|
}), n.d(i, "BufferGeometryLoader", function() {
|
|
7985
7985
|
return Xc;
|
|
7986
7986
|
}), n.d(i, "ByteType", function() {
|
|
7987
|
-
return
|
|
7987
|
+
return It;
|
|
7988
7988
|
}), n.d(i, "Cache", function() {
|
|
7989
7989
|
return ac;
|
|
7990
7990
|
}), n.d(i, "Camera", function() {
|
|
@@ -8052,7 +8052,7 @@ var Slide = function(t2) {
|
|
|
8052
8052
|
}), n.d(i, "CurvePath", function() {
|
|
8053
8053
|
return yc;
|
|
8054
8054
|
}), n.d(i, "CustomBlending", function() {
|
|
8055
|
-
return
|
|
8055
|
+
return C;
|
|
8056
8056
|
}), n.d(i, "CustomToneMapping", function() {
|
|
8057
8057
|
return ut;
|
|
8058
8058
|
}), n.d(i, "CylinderBufferGeometry", function() {
|
|
@@ -8246,7 +8246,7 @@ var Slide = function(t2) {
|
|
|
8246
8246
|
}), n.d(i, "KeyframeTrack", function() {
|
|
8247
8247
|
return $h;
|
|
8248
8248
|
}), n.d(i, "LOD", function() {
|
|
8249
|
-
return
|
|
8249
|
+
return Cl;
|
|
8250
8250
|
}), n.d(i, "LatheBufferGeometry", function() {
|
|
8251
8251
|
return Th;
|
|
8252
8252
|
}), n.d(i, "LatheGeometry", function() {
|
|
@@ -8608,9 +8608,9 @@ var Slide = function(t2) {
|
|
|
8608
8608
|
}), n.d(i, "SRGB8_ALPHA8_ASTC_5x4_Format", function() {
|
|
8609
8609
|
return Pe;
|
|
8610
8610
|
}), n.d(i, "SRGB8_ALPHA8_ASTC_5x5_Format", function() {
|
|
8611
|
-
return Ie;
|
|
8612
|
-
}), n.d(i, "SRGB8_ALPHA8_ASTC_6x5_Format", function() {
|
|
8613
8611
|
return Ce;
|
|
8612
|
+
}), n.d(i, "SRGB8_ALPHA8_ASTC_6x5_Format", function() {
|
|
8613
|
+
return Ie;
|
|
8614
8614
|
}), n.d(i, "SRGB8_ALPHA8_ASTC_6x6_Format", function() {
|
|
8615
8615
|
return Oe;
|
|
8616
8616
|
}), n.d(i, "SRGB8_ALPHA8_ASTC_8x5_Format", function() {
|
|
@@ -8628,7 +8628,7 @@ var Slide = function(t2) {
|
|
|
8628
8628
|
}), n.d(i, "ShaderLib", function() {
|
|
8629
8629
|
return Zo;
|
|
8630
8630
|
}), n.d(i, "ShaderMaterial", function() {
|
|
8631
|
-
return
|
|
8631
|
+
return Io;
|
|
8632
8632
|
}), n.d(i, "ShadowMaterial", function() {
|
|
8633
8633
|
return Dh;
|
|
8634
8634
|
}), n.d(i, "Shape", function() {
|
|
@@ -8680,7 +8680,7 @@ var Slide = function(t2) {
|
|
|
8680
8680
|
}), n.d(i, "StaticCopyUsage", function() {
|
|
8681
8681
|
return Bn;
|
|
8682
8682
|
}), n.d(i, "StaticDrawUsage", function() {
|
|
8683
|
-
return
|
|
8683
|
+
return In;
|
|
8684
8684
|
}), n.d(i, "StaticReadUsage", function() {
|
|
8685
8685
|
return Nn;
|
|
8686
8686
|
}), n.d(i, "StereoCamera", function() {
|
|
@@ -8714,13 +8714,13 @@ var Slide = function(t2) {
|
|
|
8714
8714
|
}), n.d(i, "TextureLoader", function() {
|
|
8715
8715
|
return _c;
|
|
8716
8716
|
}), n.d(i, "TorusBufferGeometry", function() {
|
|
8717
|
-
return
|
|
8717
|
+
return Ch;
|
|
8718
8718
|
}), n.d(i, "TorusGeometry", function() {
|
|
8719
|
-
return Ih;
|
|
8720
|
-
}), n.d(i, "TorusKnotBufferGeometry", function() {
|
|
8721
8719
|
return Ch;
|
|
8720
|
+
}), n.d(i, "TorusKnotBufferGeometry", function() {
|
|
8721
|
+
return Ih;
|
|
8722
8722
|
}), n.d(i, "TorusKnotGeometry", function() {
|
|
8723
|
-
return
|
|
8723
|
+
return Ih;
|
|
8724
8724
|
}), n.d(i, "Triangle", function() {
|
|
8725
8725
|
return Mr;
|
|
8726
8726
|
}), n.d(i, "TriangleFanDrawMode", function() {
|
|
@@ -8756,9 +8756,9 @@ var Slide = function(t2) {
|
|
|
8756
8756
|
}), n.d(i, "UniformsLib", function() {
|
|
8757
8757
|
return Yo;
|
|
8758
8758
|
}), n.d(i, "UniformsUtils", function() {
|
|
8759
|
-
return
|
|
8759
|
+
return Co;
|
|
8760
8760
|
}), n.d(i, "UnsignedByteType", function() {
|
|
8761
|
-
return
|
|
8761
|
+
return Ct;
|
|
8762
8762
|
}), n.d(i, "UnsignedInt248Type", function() {
|
|
8763
8763
|
return Ht;
|
|
8764
8764
|
}), n.d(i, "UnsignedIntType", function() {
|
|
@@ -8810,7 +8810,7 @@ var Slide = function(t2) {
|
|
|
8810
8810
|
}), n.d(i, "WrapAroundEnding", function() {
|
|
8811
8811
|
return Je;
|
|
8812
8812
|
}), n.d(i, "XHRLoader", function() {
|
|
8813
|
-
return
|
|
8813
|
+
return Cf;
|
|
8814
8814
|
}), n.d(i, "ZeroCurvatureEnding", function() {
|
|
8815
8815
|
return Ye;
|
|
8816
8816
|
}), n.d(i, "ZeroFactor", function() {
|
|
@@ -8882,7 +8882,7 @@ var Slide = function(t2) {
|
|
|
8882
8882
|
}), n.d(r2, "removeItems", function() {
|
|
8883
8883
|
return Vv;
|
|
8884
8884
|
}), n.d(r2, "rgb2hex", function() {
|
|
8885
|
-
return
|
|
8885
|
+
return Iv;
|
|
8886
8886
|
}), n.d(r2, "sayHello", function() {
|
|
8887
8887
|
return Ev;
|
|
8888
8888
|
}), n.d(r2, "sign", function() {
|
|
@@ -8890,7 +8890,7 @@ var Slide = function(t2) {
|
|
|
8890
8890
|
}), n.d(r2, "skipHello", function() {
|
|
8891
8891
|
return Sv;
|
|
8892
8892
|
}), n.d(r2, "string2hex", function() {
|
|
8893
|
-
return
|
|
8893
|
+
return Cv;
|
|
8894
8894
|
}), n.d(r2, "trimCanvas", function() {
|
|
8895
8895
|
return n_;
|
|
8896
8896
|
}), n.d(r2, "uid", function() {
|
|
@@ -8904,7 +8904,7 @@ var Slide = function(t2) {
|
|
|
8904
8904
|
* Copyright 2010-2021 Three.js Authors
|
|
8905
8905
|
* SPDX-License-Identifier: MIT
|
|
8906
8906
|
*/
|
|
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,
|
|
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";
|
|
8908
8908
|
class zn {
|
|
8909
8909
|
addEventListener(t3, e3) {
|
|
8910
8910
|
this._listeners === void 0 && (this._listeners = {});
|
|
@@ -9317,7 +9317,7 @@ var Slide = function(t2) {
|
|
|
9317
9317
|
}
|
|
9318
9318
|
let oi = 0;
|
|
9319
9319
|
class si extends zn {
|
|
9320
|
-
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) {
|
|
9321
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;
|
|
9322
9322
|
}
|
|
9323
9323
|
updateMatrix() {
|
|
@@ -10193,7 +10193,7 @@ var Slide = function(t2) {
|
|
|
10193
10193
|
return false;
|
|
10194
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);
|
|
10195
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];
|
|
10196
|
-
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)));
|
|
10197
10197
|
}
|
|
10198
10198
|
clampPoint(t3, e3) {
|
|
10199
10199
|
return e3.copy(t3).clamp(this.min, this.max);
|
|
@@ -10222,7 +10222,7 @@ var Slide = function(t2) {
|
|
|
10222
10222
|
}
|
|
10223
10223
|
gi.prototype.isBox3 = true;
|
|
10224
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();
|
|
10225
|
-
function
|
|
10225
|
+
function Ci(t3, e3, n2, i2, r3) {
|
|
10226
10226
|
for (let o3 = 0, s3 = t3.length - 3; o3 <= s3; o3 += 3) {
|
|
10227
10227
|
Pi.fromArray(t3, o3);
|
|
10228
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);
|
|
@@ -10231,7 +10231,7 @@ var Slide = function(t2) {
|
|
|
10231
10231
|
}
|
|
10232
10232
|
return true;
|
|
10233
10233
|
}
|
|
10234
|
-
const
|
|
10234
|
+
const Ii = new gi(), Oi = new pi(), Li = new pi(), Ni = new pi();
|
|
10235
10235
|
class Di {
|
|
10236
10236
|
constructor(t3 = new pi(), e3 = -1) {
|
|
10237
10237
|
this.center = t3, this.radius = e3;
|
|
@@ -10241,7 +10241,7 @@ var Slide = function(t2) {
|
|
|
10241
10241
|
}
|
|
10242
10242
|
setFromPoints(t3, e3) {
|
|
10243
10243
|
const n2 = this.center;
|
|
10244
|
-
e3 !== void 0 ? n2.copy(e3) :
|
|
10244
|
+
e3 !== void 0 ? n2.copy(e3) : Ii.setFromPoints(t3).getCenter(n2);
|
|
10245
10245
|
let i2 = 0;
|
|
10246
10246
|
for (let e4 = 0, r3 = t3.length; e4 < r3; e4++)
|
|
10247
10247
|
i2 = Math.max(i2, n2.distanceToSquared(t3[e4]));
|
|
@@ -10500,8 +10500,8 @@ var Slide = function(t2) {
|
|
|
10500
10500
|
return this.multiplyMatrices(t3, this);
|
|
10501
10501
|
}
|
|
10502
10502
|
multiplyMatrices(t3, e3) {
|
|
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],
|
|
10504
|
-
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;
|
|
10505
10505
|
}
|
|
10506
10506
|
multiplyScalar(t3) {
|
|
10507
10507
|
const e3 = this.elements;
|
|
@@ -11056,7 +11056,7 @@ var Slide = function(t2) {
|
|
|
11056
11056
|
let Ar = 0;
|
|
11057
11057
|
class Rr extends zn {
|
|
11058
11058
|
constructor() {
|
|
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 =
|
|
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;
|
|
11060
11060
|
}
|
|
11061
11061
|
onBuild() {
|
|
11062
11062
|
}
|
|
@@ -11122,7 +11122,7 @@ var Slide = function(t2) {
|
|
|
11122
11122
|
}
|
|
11123
11123
|
}
|
|
11124
11124
|
Rr.prototype.isMaterial = true;
|
|
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 },
|
|
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 };
|
|
11126
11126
|
function Or(t3, e3, n2) {
|
|
11127
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;
|
|
11128
11128
|
}
|
|
@@ -11256,7 +11256,7 @@ var Slide = function(t2) {
|
|
|
11256
11256
|
return "rgb(" + (255 * this.r | 0) + "," + (255 * this.g | 0) + "," + (255 * this.b | 0) + ")";
|
|
11257
11257
|
}
|
|
11258
11258
|
offsetHSL(t3, e3, n2) {
|
|
11259
|
-
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;
|
|
11260
11260
|
}
|
|
11261
11261
|
add(t3) {
|
|
11262
11262
|
return this.r += t3.r, this.g += t3.g, this.b += t3.b, this;
|
|
@@ -11283,8 +11283,8 @@ var Slide = function(t2) {
|
|
|
11283
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;
|
|
11284
11284
|
}
|
|
11285
11285
|
lerpHSL(t3, e3) {
|
|
11286
|
-
this.getHSL(
|
|
11287
|
-
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);
|
|
11288
11288
|
return this.setHSL(n2, i2, r3), this;
|
|
11289
11289
|
}
|
|
11290
11290
|
equals(t3) {
|
|
@@ -11318,7 +11318,7 @@ var Slide = function(t2) {
|
|
|
11318
11318
|
constructor(t3, e3, n2) {
|
|
11319
11319
|
if (Array.isArray(t3))
|
|
11320
11320
|
throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");
|
|
11321
|
-
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;
|
|
11322
11322
|
}
|
|
11323
11323
|
onUploadCallback() {
|
|
11324
11324
|
}
|
|
@@ -11444,7 +11444,7 @@ var Slide = function(t2) {
|
|
|
11444
11444
|
}
|
|
11445
11445
|
toJSON() {
|
|
11446
11446
|
const t3 = { itemSize: this.itemSize, type: this.array.constructor.name, array: Array.prototype.slice.call(this.array), normalized: this.normalized };
|
|
11447
|
-
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;
|
|
11448
11448
|
}
|
|
11449
11449
|
}
|
|
11450
11450
|
kr.prototype.isBufferAttribute = true;
|
|
@@ -11958,8 +11958,8 @@ var Slide = function(t2) {
|
|
|
11958
11958
|
}
|
|
11959
11959
|
return e3;
|
|
11960
11960
|
}
|
|
11961
|
-
const
|
|
11962
|
-
class
|
|
11961
|
+
const Co = { clone: Ro, merge: Po };
|
|
11962
|
+
class Io extends Rr {
|
|
11963
11963
|
constructor(t3) {
|
|
11964
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));
|
|
11965
11965
|
}
|
|
@@ -11980,7 +11980,7 @@ var Slide = function(t2) {
|
|
|
11980
11980
|
return Object.keys(n2).length > 0 && (e3.extensions = n2), e3;
|
|
11981
11981
|
}
|
|
11982
11982
|
}
|
|
11983
|
-
|
|
11983
|
+
Io.prototype.isShaderMaterial = true;
|
|
11984
11984
|
class Oo extends mr {
|
|
11985
11985
|
constructor() {
|
|
11986
11986
|
super(), this.type = "Camera", this.matrixWorldInverse = new Vi(), this.projectionMatrix = new Vi(), this.projectionMatrixInverse = new Vi();
|
|
@@ -12095,7 +12095,7 @@ var Slide = function(t2) {
|
|
|
12095
12095
|
}
|
|
12096
12096
|
fromEquirectangularTexture(t3, e3) {
|
|
12097
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;
|
|
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
|
|
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 });
|
|
12099
12099
|
r3.uniforms.tEquirect.value = e3;
|
|
12100
12100
|
const o3 = new Eo(i2, r3), s3 = e3.minFilter;
|
|
12101
12101
|
e3.minFilter === Rt && (e3.minFilter = Et);
|
|
@@ -12317,11 +12317,11 @@ var Slide = function(t2) {
|
|
|
12317
12317
|
let p2 = false, f2 = r4.isScene === true ? r4.background : null;
|
|
12318
12318
|
f2 && f2.isTexture && (f2 = e3.get(f2));
|
|
12319
12319
|
const m2 = t3.xr, g2 = m2.getSession && m2.getSession();
|
|
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
|
|
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) {
|
|
12321
12321
|
this.matrixWorld.copyPosition(n4.matrixWorld);
|
|
12322
12322
|
}, Object.defineProperty(a2.material, "envMap", { get: function() {
|
|
12323
12323
|
return this.uniforms.envMap.value;
|
|
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
|
|
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() {
|
|
12325
12325
|
return this.uniforms.t2D.value;
|
|
12326
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));
|
|
12327
12327
|
} };
|
|
@@ -12894,7 +12894,7 @@ var Slide = function(t2) {
|
|
|
12894
12894
|
xs.set(i2), t3.uniformMatrix2fv(this.addr, false, xs), ws(n2, i2);
|
|
12895
12895
|
}
|
|
12896
12896
|
}
|
|
12897
|
-
function
|
|
12897
|
+
function Cs(t3, e3) {
|
|
12898
12898
|
const n2 = this.cache, i2 = e3.elements;
|
|
12899
12899
|
if (i2 === void 0) {
|
|
12900
12900
|
if (Ts(n2, e3))
|
|
@@ -12906,7 +12906,7 @@ var Slide = function(t2) {
|
|
|
12906
12906
|
ys.set(i2), t3.uniformMatrix3fv(this.addr, false, ys), ws(n2, i2);
|
|
12907
12907
|
}
|
|
12908
12908
|
}
|
|
12909
|
-
function
|
|
12909
|
+
function Is(t3, e3) {
|
|
12910
12910
|
const n2 = this.cache, i2 = e3.elements;
|
|
12911
12911
|
if (i2 === void 0) {
|
|
12912
12912
|
if (Ts(n2, e3))
|
|
@@ -13043,9 +13043,9 @@ var Slide = function(t2) {
|
|
|
13043
13043
|
case 35674:
|
|
13044
13044
|
return Ps;
|
|
13045
13045
|
case 35675:
|
|
13046
|
-
return Is;
|
|
13047
|
-
case 35676:
|
|
13048
13046
|
return Cs;
|
|
13047
|
+
case 35676:
|
|
13048
|
+
return Is;
|
|
13049
13049
|
case 5124:
|
|
13050
13050
|
case 35670:
|
|
13051
13051
|
return Os;
|
|
@@ -13290,12 +13290,12 @@ var Slide = function(t2) {
|
|
|
13290
13290
|
}
|
|
13291
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;
|
|
13292
13292
|
function Pa(t3) {
|
|
13293
|
-
return t3.replace(Ra,
|
|
13294
|
-
}
|
|
13295
|
-
function Ia(t3, e3, n2, i2) {
|
|
13296
|
-
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);
|
|
13297
13294
|
}
|
|
13298
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) {
|
|
13299
13299
|
let r3 = "";
|
|
13300
13300
|
for (let t4 = parseInt(e3); t4 < parseInt(n2); t4++)
|
|
13301
13301
|
r3 += i2.replace(/\[\s*i\s*\]/g, "[ " + t4 + " ]").replace(/UNROLLED_LOOP_INDEX/g, t4);
|
|
@@ -13429,7 +13429,7 @@ var Slide = function(t2) {
|
|
|
13429
13429
|
let n3;
|
|
13430
13430
|
if (e4) {
|
|
13431
13431
|
const t5 = Zo[e4];
|
|
13432
|
-
n3 =
|
|
13432
|
+
n3 = Co.clone(t5.uniforms);
|
|
13433
13433
|
} else
|
|
13434
13434
|
n3 = t4.uniforms;
|
|
13435
13435
|
return n3;
|
|
@@ -13668,7 +13668,7 @@ var Slide = function(t2) {
|
|
|
13668
13668
|
qa.prototype.isMeshDistanceMaterial = true;
|
|
13669
13669
|
function Ya(t3, e3, n2) {
|
|
13670
13670
|
let i2 = new jo();
|
|
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
|
|
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();
|
|
13672
13672
|
p2.defines.HORIZONTAL_PASS = 1;
|
|
13673
13673
|
const f2 = new so();
|
|
13674
13674
|
f2.setAttribute("position", new kr(new Float32Array([-1, -1, 0.5, 3, -1, 0.5, -1, 3, 0.5]), 3));
|
|
@@ -13869,7 +13869,7 @@ var Slide = function(t2) {
|
|
|
13869
13869
|
a2[e4] !== false && (t3.disable(e4), a2[e4] = false);
|
|
13870
13870
|
}
|
|
13871
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);
|
|
13872
|
-
const xt2 = { [
|
|
13872
|
+
const xt2 = { [I]: 32774, [O]: 32778, [L]: 32779 };
|
|
13873
13873
|
if (i2)
|
|
13874
13874
|
xt2[N] = 32775, xt2[D] = 32776;
|
|
13875
13875
|
else {
|
|
@@ -13879,10 +13879,10 @@ var Slide = function(t2) {
|
|
|
13879
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 };
|
|
13880
13880
|
function Tt2(e4, n3, i3, r4, o4, s4, a3, l3) {
|
|
13881
13881
|
if (e4 !== E) {
|
|
13882
|
-
if (c2 === false && (_t2(3042), c2 = true), e4 ===
|
|
13882
|
+
if (c2 === false && (_t2(3042), c2 = true), e4 === C)
|
|
13883
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;
|
|
13884
13884
|
else if (e4 !== m2 || l3 !== S2) {
|
|
13885
|
-
if (g2 ===
|
|
13885
|
+
if (g2 === I && y2 === I || (t3.blendEquation(32774), g2 = I, y2 = I), l3)
|
|
13886
13886
|
switch (e4) {
|
|
13887
13887
|
case M:
|
|
13888
13888
|
t3.blendFuncSeparate(1, 771, 1, 771);
|
|
@@ -14072,7 +14072,7 @@ var Slide = function(t2) {
|
|
|
14072
14072
|
console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined");
|
|
14073
14073
|
else {
|
|
14074
14074
|
if (n3.complete !== false)
|
|
14075
|
-
return void
|
|
14075
|
+
return void I2(r4, t4, e4);
|
|
14076
14076
|
console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");
|
|
14077
14077
|
}
|
|
14078
14078
|
}
|
|
@@ -14083,7 +14083,7 @@ var Slide = function(t2) {
|
|
|
14083
14083
|
e4.version > 0 && s4.__version !== e4.version ? function(e5, i3, r5) {
|
|
14084
14084
|
if (i3.image.length !== 6)
|
|
14085
14085
|
return;
|
|
14086
|
-
|
|
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);
|
|
14087
14087
|
const s5 = i3 && (i3.isCompressedTexture || i3.image[0].isCompressedTexture), l3 = i3.image[0] && i3.image[0].isDataTexture, h3 = [];
|
|
14088
14088
|
for (let t4 = 0; t4 < 6; t4++)
|
|
14089
14089
|
h3[t4] = s5 || l3 ? l3 ? i3.image[t4].image : i3.image[t4] : g2(i3.image[t4], false, true, u2);
|
|
@@ -14131,12 +14131,12 @@ var Slide = function(t2) {
|
|
|
14131
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);
|
|
14132
14132
|
}
|
|
14133
14133
|
}
|
|
14134
|
-
function
|
|
14134
|
+
function C2(e4, n3) {
|
|
14135
14135
|
e4.__webglInit === void 0 && (e4.__webglInit = true, n3.addEventListener("dispose", T2), e4.__webglTexture = t3.createTexture(), s3.memory.textures++);
|
|
14136
14136
|
}
|
|
14137
|
-
function
|
|
14137
|
+
function I2(e4, i3, r4) {
|
|
14138
14138
|
let s4 = 3553;
|
|
14139
|
-
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);
|
|
14140
14140
|
const l3 = function(t4) {
|
|
14141
14141
|
return !a2 && (t4.wrapS !== _t || t4.wrapT !== _t || t4.minFilter !== xt && t4.minFilter !== Et);
|
|
14142
14142
|
}(i3) && v2(i3.image) === false, u3 = g2(i3.image, l3, false, h2), c3 = v2(u3) || a2, d3 = o3.convert(i3.format);
|
|
@@ -14239,10 +14239,10 @@ var Slide = function(t2) {
|
|
|
14239
14239
|
S2 = 0;
|
|
14240
14240
|
}, this.setTexture2D = E2, this.setTexture2DArray = function(t4, e4) {
|
|
14241
14241
|
const r4 = i2.get(t4);
|
|
14242
|
-
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));
|
|
14243
14243
|
}, this.setTexture3D = function(t4, e4) {
|
|
14244
14244
|
const r4 = i2.get(t4);
|
|
14245
|
-
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));
|
|
14246
14246
|
}, this.setTextureCube = M2, this.setupRenderTarget = function(e4) {
|
|
14247
14247
|
const l3 = e4.texture, u3 = i2.get(e4), h3 = i2.get(l3);
|
|
14248
14248
|
e4.addEventListener("dispose", w2), e4.isWebGLMultipleRenderTargets !== true && (h3.__webglTexture = t3.createTexture(), h3.__version = l3.version, s3.memory.textures++);
|
|
@@ -14318,7 +14318,7 @@ var Slide = function(t2) {
|
|
|
14318
14318
|
const i2 = n2.isWebGL2;
|
|
14319
14319
|
return { convert: function(t4) {
|
|
14320
14320
|
let n3;
|
|
14321
|
-
if (t4 ===
|
|
14321
|
+
if (t4 === Ct)
|
|
14322
14322
|
return 5121;
|
|
14323
14323
|
if (t4 === Ut)
|
|
14324
14324
|
return 32819;
|
|
@@ -14326,7 +14326,7 @@ var Slide = function(t2) {
|
|
|
14326
14326
|
return 32820;
|
|
14327
14327
|
if (t4 === Gt)
|
|
14328
14328
|
return 33635;
|
|
14329
|
-
if (t4 ===
|
|
14329
|
+
if (t4 === It)
|
|
14330
14330
|
return 5120;
|
|
14331
14331
|
if (t4 === Ot)
|
|
14332
14332
|
return 5122;
|
|
@@ -14398,7 +14398,7 @@ var Slide = function(t2) {
|
|
|
14398
14398
|
if (t4 === de)
|
|
14399
14399
|
return n3.COMPRESSED_RGBA8_ETC2_EAC;
|
|
14400
14400
|
}
|
|
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 ===
|
|
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;
|
|
14402
14402
|
} };
|
|
14403
14403
|
}
|
|
14404
14404
|
class Ka extends Lo {
|
|
@@ -14666,14 +14666,14 @@ var Slide = function(t2) {
|
|
|
14666
14666
|
const m2 = this;
|
|
14667
14667
|
let g2 = false, v2 = 0, _2 = 0, y2 = null, w2 = -1, S2 = null;
|
|
14668
14668
|
const E2 = new li(), M2 = new li();
|
|
14669
|
-
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;
|
|
14670
14670
|
const L2 = new li(0, 0, R2, P2), N2 = new li(0, 0, R2, P2);
|
|
14671
14671
|
let D2 = false;
|
|
14672
14672
|
const F2 = [], B2 = new jo();
|
|
14673
14673
|
let U2 = false, k2 = false, G2 = null;
|
|
14674
14674
|
const H2 = new Vi(), z2 = new pi(), j2 = { background: null, fog: null, environment: null, overrideMaterial: null, isScene: true };
|
|
14675
14675
|
function V2() {
|
|
14676
|
-
return y2 === null ?
|
|
14676
|
+
return y2 === null ? C2 : 1;
|
|
14677
14677
|
}
|
|
14678
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;
|
|
14679
14679
|
function mt2(t4, n3) {
|
|
@@ -14732,33 +14732,33 @@ var Slide = function(t2) {
|
|
|
14732
14732
|
const t4 = W2.get("WEBGL_lose_context");
|
|
14733
14733
|
t4 && t4.restoreContext();
|
|
14734
14734
|
}, this.getPixelRatio = function() {
|
|
14735
|
-
return
|
|
14735
|
+
return C2;
|
|
14736
14736
|
}, this.setPixelRatio = function(t4) {
|
|
14737
|
-
t4 !== void 0 && (
|
|
14737
|
+
t4 !== void 0 && (C2 = t4, this.setSize(R2, P2, false));
|
|
14738
14738
|
}, this.getSize = function(t4) {
|
|
14739
14739
|
return t4.set(R2, P2);
|
|
14740
14740
|
}, this.setSize = function(t4, n3, i3) {
|
|
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 *
|
|
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));
|
|
14742
14742
|
}, this.getDrawingBufferSize = function(t4) {
|
|
14743
|
-
return t4.set(R2 *
|
|
14743
|
+
return t4.set(R2 * C2, P2 * C2).floor();
|
|
14744
14744
|
}, this.setDrawingBufferSize = function(t4, n3, i3) {
|
|
14745
|
-
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);
|
|
14746
14746
|
}, this.getCurrentViewport = function(t4) {
|
|
14747
14747
|
return t4.copy(E2);
|
|
14748
14748
|
}, this.getViewport = function(t4) {
|
|
14749
14749
|
return t4.copy(L2);
|
|
14750
14750
|
}, this.setViewport = function(t4, e4, n3, i3) {
|
|
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(
|
|
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());
|
|
14752
14752
|
}, this.getScissor = function(t4) {
|
|
14753
14753
|
return t4.copy(N2);
|
|
14754
14754
|
}, this.setScissor = function(t4, e4, n3, i3) {
|
|
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(
|
|
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());
|
|
14756
14756
|
}, this.getScissorTest = function() {
|
|
14757
14757
|
return D2;
|
|
14758
14758
|
}, this.setScissorTest = function(t4) {
|
|
14759
14759
|
q2.setScissorTest(D2 = t4);
|
|
14760
14760
|
}, this.setOpaqueSort = function(t4) {
|
|
14761
|
-
|
|
14761
|
+
I2 = t4;
|
|
14762
14762
|
}, this.setTransparentSort = function(t4) {
|
|
14763
14763
|
O2 = t4;
|
|
14764
14764
|
}, this.getClearColor = function(t4) {
|
|
@@ -14826,10 +14826,10 @@ var Slide = function(t2) {
|
|
|
14826
14826
|
if (n3)
|
|
14827
14827
|
if (Array.isArray(n3))
|
|
14828
14828
|
for (let i3 = 0; i3 < n3.length; i3++) {
|
|
14829
|
-
|
|
14829
|
+
It2(n3[i3], t4, e5);
|
|
14830
14830
|
}
|
|
14831
14831
|
else
|
|
14832
|
-
|
|
14832
|
+
It2(n3, t4, e5);
|
|
14833
14833
|
});
|
|
14834
14834
|
};
|
|
14835
14835
|
let wt2 = null;
|
|
@@ -14866,7 +14866,7 @@ var Slide = function(t2) {
|
|
|
14866
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);
|
|
14867
14867
|
t4.onAfterRender(m2, e4, n3, i3, r4, o4);
|
|
14868
14868
|
}
|
|
14869
|
-
function
|
|
14869
|
+
function It2(t4, e4, n3) {
|
|
14870
14870
|
e4.isScene !== true && (e4 = j2);
|
|
14871
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);
|
|
14872
14872
|
let u3 = i3.programs;
|
|
@@ -14898,7 +14898,7 @@ var Slide = function(t2) {
|
|
|
14898
14898
|
let c3 = false;
|
|
14899
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);
|
|
14900
14900
|
let p3 = u3.currentProgram;
|
|
14901
|
-
c3 === true && (p3 =
|
|
14901
|
+
c3 === true && (p3 = It2(n3, e4, i3));
|
|
14902
14902
|
let f3 = false, g3 = false, v3 = false;
|
|
14903
14903
|
const _3 = p3.getUniforms(), x2 = u3.uniforms;
|
|
14904
14904
|
if (q2.useProgram(p3.program) && (f3 = true, g3 = true, v3 = true), n3.id !== w2 && (w2 = n3.id, g3 = true), f3 || S2 !== t4) {
|
|
@@ -14914,7 +14914,7 @@ var Slide = function(t2) {
|
|
|
14914
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"));
|
|
14915
14915
|
}
|
|
14916
14916
|
var b2, T2;
|
|
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,
|
|
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;
|
|
14918
14918
|
}
|
|
14919
14919
|
Mt2.setAnimationLoop(function(t4) {
|
|
14920
14920
|
wt2 && wt2(t4);
|
|
@@ -14959,14 +14959,14 @@ var Slide = function(t2) {
|
|
|
14959
14959
|
const o5 = e5.children;
|
|
14960
14960
|
for (let e6 = 0, s4 = o5.length; e6 < s4; e6++)
|
|
14961
14961
|
t5(o5[e6], n4, i4, r5);
|
|
14962
|
-
}(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();
|
|
14963
14963
|
const n3 = d2.state.shadowsArray;
|
|
14964
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);
|
|
14965
14965
|
const i3 = c2.opaque, r4 = c2.transmissive, o4 = c2.transparent;
|
|
14966
14966
|
i3.length > 0 && At2(i3, t4, e4), r4.length > 0 && function(t5, e5, n4, i4) {
|
|
14967
14967
|
if (G2 === null) {
|
|
14968
14968
|
const t6 = s3 === true && X2.isWebGL2 === true;
|
|
14969
|
-
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 });
|
|
14970
14970
|
}
|
|
14971
14971
|
const r5 = m2.getRenderTarget();
|
|
14972
14972
|
m2.setRenderTarget(G2), m2.clear();
|
|
@@ -14988,7 +14988,7 @@ var Slide = function(t2) {
|
|
|
14988
14988
|
const s4 = Z2.get(t4).__webglFramebuffer;
|
|
14989
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;
|
|
14990
14990
|
} else
|
|
14991
|
-
E2.copy(L2).multiplyScalar(
|
|
14991
|
+
E2.copy(L2).multiplyScalar(C2).floor(), M2.copy(N2).multiplyScalar(C2).floor(), A2 = D2;
|
|
14992
14992
|
if (q2.bindFramebuffer(36160, i3) && X2.drawBuffers) {
|
|
14993
14993
|
let e5 = false;
|
|
14994
14994
|
if (t4)
|
|
@@ -15023,7 +15023,7 @@ var Slide = function(t2) {
|
|
|
15023
15023
|
if (a4 !== Vt && dt2.convert(a4) !== ft2.getParameter(35739))
|
|
15024
15024
|
return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");
|
|
15025
15025
|
const u3 = l3 === Bt && (W2.has("EXT_color_buffer_half_float") || X2.isWebGL2 && W2.has("EXT_color_buffer_float"));
|
|
15026
|
-
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))
|
|
15027
15027
|
return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");
|
|
15028
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.");
|
|
15029
15029
|
} finally {
|
|
@@ -15101,7 +15101,7 @@ var Slide = function(t2) {
|
|
|
15101
15101
|
ll.prototype.isScene = true;
|
|
15102
15102
|
class ul {
|
|
15103
15103
|
constructor(t3, e3) {
|
|
15104
|
-
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();
|
|
15105
15105
|
}
|
|
15106
15106
|
onUploadCallback() {
|
|
15107
15107
|
}
|
|
@@ -15268,7 +15268,7 @@ var Slide = function(t2) {
|
|
|
15268
15268
|
}
|
|
15269
15269
|
Ml.prototype.isSprite = true;
|
|
15270
15270
|
const Rl = new pi(), Pl = new pi();
|
|
15271
|
-
class
|
|
15271
|
+
class Cl extends mr {
|
|
15272
15272
|
constructor() {
|
|
15273
15273
|
super(), this._currentLevel = 0, this.type = "LOD", Object.defineProperties(this, { levels: { enumerable: true, value: [] }, isLOD: { value: true } }), this.autoUpdate = true;
|
|
15274
15274
|
}
|
|
@@ -15332,7 +15332,7 @@ var Slide = function(t2) {
|
|
|
15332
15332
|
return e3;
|
|
15333
15333
|
}
|
|
15334
15334
|
}
|
|
15335
|
-
const
|
|
15335
|
+
const Il = new pi(), Ol = new li(), Ll = new li(), Nl = new pi(), Dl = new Vi();
|
|
15336
15336
|
class Fl extends Eo {
|
|
15337
15337
|
constructor(t3, e3) {
|
|
15338
15338
|
super(t3, e3), this.type = "SkinnedMesh", this.bindMode = "attached", this.bindMatrix = new Vi(), this.bindMatrixInverse = new Vi();
|
|
@@ -15359,12 +15359,12 @@ var Slide = function(t2) {
|
|
|
15359
15359
|
}
|
|
15360
15360
|
boneTransform(t3, e3) {
|
|
15361
15361
|
const n2 = this.skeleton, i2 = this.geometry;
|
|
15362
|
-
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);
|
|
15363
15363
|
for (let t4 = 0; t4 < 4; t4++) {
|
|
15364
15364
|
const i3 = Ll.getComponent(t4);
|
|
15365
15365
|
if (i3 !== 0) {
|
|
15366
15366
|
const r3 = Ol.getComponent(t4);
|
|
15367
|
-
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);
|
|
15368
15368
|
}
|
|
15369
15369
|
}
|
|
15370
15370
|
return e3.applyMatrix4(this.bindMatrixInverse);
|
|
@@ -16061,7 +16061,7 @@ var Slide = function(t2) {
|
|
|
16061
16061
|
} };
|
|
16062
16062
|
}
|
|
16063
16063
|
Au.prototype.isArcCurve = true;
|
|
16064
|
-
const Pu = new pi(),
|
|
16064
|
+
const Pu = new pi(), Cu = new Ru(), Iu = new Ru(), Ou = new Ru();
|
|
16065
16065
|
class Lu extends Eu {
|
|
16066
16066
|
constructor(t3 = [], e3 = false, n2 = "centripetal", i2 = 0.5) {
|
|
16067
16067
|
super(), this.type = "CatmullRomCurve3", this.points = t3, this.closed = e3, this.curveType = n2, this.tension = i2;
|
|
@@ -16074,10 +16074,10 @@ var Slide = function(t2) {
|
|
|
16074
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") {
|
|
16075
16075
|
const t4 = this.curveType === "chordal" ? 0.5 : 0.25;
|
|
16076
16076
|
let e4 = Math.pow(s3.distanceToSquared(h2), t4), n3 = Math.pow(h2.distanceToSquared(c2), t4), i3 = Math.pow(c2.distanceToSquared(a2), t4);
|
|
16077
|
-
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);
|
|
16078
16078
|
} else
|
|
16079
|
-
this.curveType === "catmullrom" && (
|
|
16080
|
-
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;
|
|
16081
16081
|
}
|
|
16082
16082
|
copy(t3) {
|
|
16083
16083
|
super.copy(t3), this.points = [];
|
|
@@ -16613,7 +16613,7 @@ var Slide = function(t2) {
|
|
|
16613
16613
|
return e4 || console.error("THREE.ExtrudeGeometry: vec does not exist"), e4.clone().multiplyScalar(n3).add(t5);
|
|
16614
16614
|
}
|
|
16615
16615
|
const R2 = w2.length, P2 = E2.length;
|
|
16616
|
-
function
|
|
16616
|
+
function C2(t5, e4, n3) {
|
|
16617
16617
|
let i3, r4, o5;
|
|
16618
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;
|
|
16619
16619
|
if (Math.abs(c3) > Number.EPSILON) {
|
|
@@ -16629,22 +16629,22 @@ var Slide = function(t2) {
|
|
|
16629
16629
|
}
|
|
16630
16630
|
return new ei(i3 / o5, r4 / o5);
|
|
16631
16631
|
}
|
|
16632
|
-
const
|
|
16632
|
+
const I2 = [];
|
|
16633
16633
|
for (let t5 = 0, e4 = M2.length, n3 = e4 - 1, i3 = t5 + 1; t5 < e4; t5++, n3++, i3++)
|
|
16634
|
-
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]);
|
|
16635
16635
|
const O2 = [];
|
|
16636
|
-
let L2, N2 =
|
|
16636
|
+
let L2, N2 = I2.concat();
|
|
16637
16637
|
for (let t5 = 0, e4 = S2.length; t5 < e4; t5++) {
|
|
16638
16638
|
const e5 = S2[t5];
|
|
16639
16639
|
L2 = [];
|
|
16640
16640
|
for (let t6 = 0, n3 = e5.length, i3 = n3 - 1, r4 = t6 + 1; t6 < n3; t6++, i3++, r4++)
|
|
16641
|
-
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]);
|
|
16642
16642
|
O2.push(L2), N2 = N2.concat(L2);
|
|
16643
16643
|
}
|
|
16644
16644
|
for (let t5 = 0; t5 < p2; t5++) {
|
|
16645
16645
|
const e4 = t5 / p2, n3 = h2 * Math.cos(e4 * Math.PI / 2), i3 = c2 * Math.sin(e4 * Math.PI / 2) + d2;
|
|
16646
16646
|
for (let t6 = 0, e5 = M2.length; t6 < e5; t6++) {
|
|
16647
|
-
const e6 = A2(M2[t6],
|
|
16647
|
+
const e6 = A2(M2[t6], I2[t6], i3);
|
|
16648
16648
|
B2(e6.x, e6.y, -n3);
|
|
16649
16649
|
}
|
|
16650
16650
|
for (let t6 = 0, e5 = S2.length; t6 < e5; t6++) {
|
|
@@ -16669,7 +16669,7 @@ var Slide = function(t2) {
|
|
|
16669
16669
|
for (let t5 = p2 - 1; t5 >= 0; t5--) {
|
|
16670
16670
|
const e4 = t5 / p2, n3 = h2 * Math.cos(e4 * Math.PI / 2), i3 = c2 * Math.sin(e4 * Math.PI / 2) + d2;
|
|
16671
16671
|
for (let t6 = 0, e5 = M2.length; t6 < e5; t6++) {
|
|
16672
|
-
const e6 = A2(M2[t6],
|
|
16672
|
+
const e6 = A2(M2[t6], I2[t6], i3);
|
|
16673
16673
|
B2(e6.x, e6.y, l2 + n3);
|
|
16674
16674
|
}
|
|
16675
16675
|
for (let t6 = 0, e5 = S2.length; t6 < e5; t6++) {
|
|
@@ -16969,7 +16969,7 @@ var Slide = function(t2) {
|
|
|
16969
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";
|
|
16970
16970
|
}
|
|
16971
16971
|
}
|
|
16972
|
-
class
|
|
16972
|
+
class Ch extends so {
|
|
16973
16973
|
constructor(t3 = 1, e3 = 0.4, n2 = 8, i2 = 6, r3 = 2 * Math.PI) {
|
|
16974
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);
|
|
16975
16975
|
const o3 = [], s3 = [], a2 = [], l2 = [], u2 = new pi(), h2 = new pi(), c2 = new pi();
|
|
@@ -16986,10 +16986,10 @@ var Slide = function(t2) {
|
|
|
16986
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));
|
|
16987
16987
|
}
|
|
16988
16988
|
static fromJSON(t3) {
|
|
16989
|
-
return new
|
|
16989
|
+
return new Ch(t3.radius, t3.tube, t3.radialSegments, t3.tubularSegments, t3.arc);
|
|
16990
16990
|
}
|
|
16991
16991
|
}
|
|
16992
|
-
class
|
|
16992
|
+
class Ih extends so {
|
|
16993
16993
|
constructor(t3 = 1, e3 = 0.4, n2 = 64, i2 = 8, r3 = 2, o3 = 3) {
|
|
16994
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);
|
|
16995
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();
|
|
@@ -17013,7 +17013,7 @@ var Slide = function(t2) {
|
|
|
17013
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));
|
|
17014
17014
|
}
|
|
17015
17015
|
static fromJSON(t3) {
|
|
17016
|
-
return new
|
|
17016
|
+
return new Ih(t3.radius, t3.tube, t3.tubularSegments, t3.radialSegments, t3.p, t3.q);
|
|
17017
17017
|
}
|
|
17018
17018
|
}
|
|
17019
17019
|
class Oh extends so {
|
|
@@ -17092,7 +17092,7 @@ var Slide = function(t2) {
|
|
|
17092
17092
|
this.setAttribute("position", new Yr(e3, 3));
|
|
17093
17093
|
}
|
|
17094
17094
|
}
|
|
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:
|
|
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 });
|
|
17096
17096
|
class Dh extends Rr {
|
|
17097
17097
|
constructor(t3) {
|
|
17098
17098
|
super(), this.type = "ShadowMaterial", this.color = new Dr(0), this.transparent = true, this.setValues(t3);
|
|
@@ -17102,7 +17102,7 @@ var Slide = function(t2) {
|
|
|
17102
17102
|
}
|
|
17103
17103
|
}
|
|
17104
17104
|
Dh.prototype.isShadowMaterial = true;
|
|
17105
|
-
class Fh extends
|
|
17105
|
+
class Fh extends Io {
|
|
17106
17106
|
constructor(t3) {
|
|
17107
17107
|
super(t3), this.type = "RawShaderMaterial";
|
|
17108
17108
|
}
|
|
@@ -17184,7 +17184,7 @@ var Slide = function(t2) {
|
|
|
17184
17184
|
}
|
|
17185
17185
|
}
|
|
17186
17186
|
Vh.prototype.isLineDashedMaterial = true;
|
|
17187
|
-
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 });
|
|
17188
17188
|
const Xh = { arraySlice: function(t3, e3, n2) {
|
|
17189
17189
|
return Xh.isTypedArray(t3) ? new t3.constructor(t3.subarray(e3, n2 !== void 0 ? n2 : t3.length)) : t3.slice(e3, n2);
|
|
17190
17190
|
}, convertArray: function(t3, e3, n2) {
|
|
@@ -18354,14 +18354,14 @@ var Slide = function(t2) {
|
|
|
18354
18354
|
}
|
|
18355
18355
|
}
|
|
18356
18356
|
Pc.prototype.isSpotLight = true;
|
|
18357
|
-
const
|
|
18357
|
+
const Cc = new Vi(), Ic = new pi(), Oc = new pi();
|
|
18358
18358
|
class Lc extends Ac {
|
|
18359
18359
|
constructor() {
|
|
18360
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)];
|
|
18361
18361
|
}
|
|
18362
18362
|
updateMatrices(t3, e3 = 0) {
|
|
18363
18363
|
const n2 = this.camera, i2 = this.matrix, r3 = t3.distance || n2.far;
|
|
18364
|
-
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);
|
|
18365
18365
|
}
|
|
18366
18366
|
}
|
|
18367
18367
|
Lc.prototype.isPointLightShadow = true;
|
|
@@ -18987,7 +18987,7 @@ var Slide = function(t2) {
|
|
|
18987
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));
|
|
18988
18988
|
break;
|
|
18989
18989
|
case "LOD":
|
|
18990
|
-
o3 = new
|
|
18990
|
+
o3 = new Cl();
|
|
18991
18991
|
break;
|
|
18992
18992
|
case "Line":
|
|
18993
18993
|
o3 = new Ql(l2(t3.geometry), u2(t3.material));
|
|
@@ -19631,7 +19631,7 @@ var Slide = function(t2) {
|
|
|
19631
19631
|
}
|
|
19632
19632
|
}
|
|
19633
19633
|
}
|
|
19634
|
-
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"];
|
|
19635
19635
|
class Ld {
|
|
19636
19636
|
constructor(t3, e3, n2) {
|
|
19637
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;
|
|
@@ -19643,7 +19643,7 @@ var Slide = function(t2) {
|
|
|
19643
19643
|
return t3.replace(/\s/g, "_").replace(Ed, "");
|
|
19644
19644
|
}
|
|
19645
19645
|
static parseTrackName(t3) {
|
|
19646
|
-
const e3 =
|
|
19646
|
+
const e3 = Id.exec(t3);
|
|
19647
19647
|
if (!e3)
|
|
19648
19648
|
throw new Error("PropertyBinding: Cannot parse trackName: " + t3);
|
|
19649
19649
|
const n2 = { nodeName: e3[2], objectName: e3[3], objectIndex: e3[4], propertyName: e3[5], propertyIndex: e3[6] }, i2 = n2.nodeName && n2.nodeName.lastIndexOf(".");
|
|
@@ -20852,7 +20852,7 @@ var Slide = function(t2) {
|
|
|
20852
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);
|
|
20853
20853
|
}
|
|
20854
20854
|
}
|
|
20855
|
-
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();
|
|
20856
20856
|
let Hp = null;
|
|
20857
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)];
|
|
20858
20858
|
function Wp(t3) {
|
|
@@ -20962,7 +20962,7 @@ var Slide = function(t2) {
|
|
|
20962
20962
|
return this._textureToCubeUV(t3, e3), this._applyPMREM(e3), this._cleanup(e3), e3;
|
|
20963
20963
|
}
|
|
20964
20964
|
_allocateTargets(t3) {
|
|
20965
|
-
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);
|
|
20966
20966
|
return n2.depthBuffer = !t3, this._pingPongRenderTarget = Zp(e3), n2;
|
|
20967
20967
|
}
|
|
20968
20968
|
_compileMaterial(t3) {
|
|
@@ -20987,7 +20987,7 @@ var Slide = function(t2) {
|
|
|
20987
20987
|
}
|
|
20988
20988
|
for (let e4 = 0; e4 < 6; e4++) {
|
|
20989
20989
|
const n3 = e4 % 3;
|
|
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 *
|
|
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);
|
|
20991
20991
|
}
|
|
20992
20992
|
a2.toneMapping = h2, a2.outputEncoding = u2, a2.autoClear = l2;
|
|
20993
20993
|
}
|
|
@@ -20995,7 +20995,7 @@ var Slide = function(t2) {
|
|
|
20995
20995
|
const n2 = this._renderer;
|
|
20996
20996
|
t3.isCubeTexture ? this._cubemapShader == null && (this._cubemapShader = Kp()) : this._equirectShader == null && (this._equirectShader = $p());
|
|
20997
20997
|
const i2 = t3.isCubeTexture ? this._cubemapShader : this._equirectShader, r3 = new Eo(Bp[0], i2), o3 = i2.uniforms;
|
|
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 *
|
|
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);
|
|
20999
20999
|
}
|
|
21000
21000
|
_applyPMREM(t3) {
|
|
21001
21001
|
const e3 = this._renderer, n2 = e3.autoClear;
|
|
@@ -21025,11 +21025,11 @@ var Slide = function(t2) {
|
|
|
21025
21025
|
m2[t4] = m2[t4] / g2;
|
|
21026
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];
|
|
21027
21027
|
const v2 = Up[i2];
|
|
21028
|
-
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);
|
|
21029
21029
|
}
|
|
21030
21030
|
}
|
|
21031
21031
|
function qp(t3) {
|
|
21032
|
-
return t3 !== void 0 && t3.type ===
|
|
21032
|
+
return t3 !== void 0 && t3.type === Ct && (t3.encoding === nn || t3.encoding === rn || t3.encoding === on);
|
|
21033
21033
|
}
|
|
21034
21034
|
function Yp() {
|
|
21035
21035
|
const t3 = [], e3 = [], n2 = [];
|
|
@@ -21038,7 +21038,7 @@ var Slide = function(t2) {
|
|
|
21038
21038
|
const o3 = Math.pow(2, i2);
|
|
21039
21039
|
e3.push(o3);
|
|
21040
21040
|
let s3 = 1 / o3;
|
|
21041
|
-
r3 > 4 ? s3 =
|
|
21041
|
+
r3 > 4 ? s3 = Ip[r3 - 8 + 4 - 1] : r3 == 0 && (s3 = 0), n2.push(s3);
|
|
21042
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);
|
|
21043
21043
|
for (let t4 = 0; t4 < c2; t4++) {
|
|
21044
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];
|
|
@@ -21052,7 +21052,7 @@ var Slide = function(t2) {
|
|
|
21052
21052
|
return { _lodPlanes: t3, _sizeLods: e3, _sigmas: n2 };
|
|
21053
21053
|
}
|
|
21054
21054
|
function Zp(t3) {
|
|
21055
|
-
const e3 = new ui(3 *
|
|
21055
|
+
const e3 = new ui(3 * Cp, 3 * Cp, t3);
|
|
21056
21056
|
return e3.texture.mapping = mt, e3.texture.name = "PMREM.cubeUv", e3.scissorTest = true, e3;
|
|
21057
21057
|
}
|
|
21058
21058
|
function Jp(t3, e3, n2, i2, r3) {
|
|
@@ -21199,10 +21199,10 @@ var Slide = function(t2) {
|
|
|
21199
21199
|
function Pf(t3, e3) {
|
|
21200
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 }));
|
|
21201
21201
|
}
|
|
21202
|
-
function
|
|
21202
|
+
function Cf(t3) {
|
|
21203
21203
|
return console.warn("THREE.XHRLoader has been renamed to THREE.FileLoader."), new dc(t3);
|
|
21204
21204
|
}
|
|
21205
|
-
function
|
|
21205
|
+
function If(t3) {
|
|
21206
21206
|
return console.warn("THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader."), new vc(t3);
|
|
21207
21207
|
}
|
|
21208
21208
|
function Of(t3, e3, n2) {
|
|
@@ -21423,7 +21423,7 @@ var Slide = function(t2) {
|
|
|
21423
21423
|
}, set: function() {
|
|
21424
21424
|
console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."), this.setUsage(On);
|
|
21425
21425
|
} } }), kr.prototype.setDynamic = function(t3) {
|
|
21426
|
-
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;
|
|
21427
21427
|
}, kr.prototype.copyIndicesArray = function() {
|
|
21428
21428
|
console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.");
|
|
21429
21429
|
}, kr.prototype.setArray = function() {
|
|
@@ -21447,7 +21447,7 @@ var Slide = function(t2) {
|
|
|
21447
21447
|
} }, offsets: { get: function() {
|
|
21448
21448
|
return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."), this.groups;
|
|
21449
21449
|
} } }), ul.prototype.setDynamic = function(t3) {
|
|
21450
|
-
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;
|
|
21451
21451
|
}, ul.prototype.setArray = function() {
|
|
21452
21452
|
console.error("THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers");
|
|
21453
21453
|
}, yh.prototype.getArrays = function() {
|
|
@@ -21478,7 +21478,7 @@ var Slide = function(t2) {
|
|
|
21478
21478
|
return console.warn("THREE." + this.type + ": .stencilMask has been removed. Use .stencilFuncMask instead."), this.stencilFuncMask;
|
|
21479
21479
|
}, set: function(t3) {
|
|
21480
21480
|
console.warn("THREE." + this.type + ": .stencilMask has been removed. Use .stencilFuncMask instead."), this.stencilFuncMask = t3;
|
|
21481
|
-
} } }), Object.defineProperties(
|
|
21481
|
+
} } }), Object.defineProperties(Io.prototype, { derivatives: { get: function() {
|
|
21482
21482
|
return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."), this.extensions.derivatives;
|
|
21483
21483
|
}, set: function(t3) {
|
|
21484
21484
|
console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."), this.extensions.derivatives = t3;
|
|
@@ -21671,7 +21671,7 @@ var Slide = function(t2) {
|
|
|
21671
21671
|
this.mesh.position.z = 50, t3.add(this.mesh);
|
|
21672
21672
|
}
|
|
21673
21673
|
setTexture(t3, e3, n2, i2) {
|
|
21674
|
-
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;
|
|
21675
21675
|
}
|
|
21676
21676
|
updateAnimation(t3) {
|
|
21677
21677
|
this.material.uniforms.timePercent.value = t3;
|
|
@@ -21731,7 +21731,7 @@ var Slide = function(t2) {
|
|
|
21731
21731
|
}), { verticalSegments: o3, horizontalSegments: s3, segmentWidth: u2, segmentHeight: h2 };
|
|
21732
21732
|
}
|
|
21733
21733
|
initObject() {
|
|
21734
|
-
this.material = new
|
|
21734
|
+
this.material = new Io({ fragmentShader: this.fragmentShader, vertexShader: this.vertexShader, side: T });
|
|
21735
21735
|
}
|
|
21736
21736
|
setTexture(t3, e3, n2, i2) {
|
|
21737
21737
|
this.textureHeight = i2, this.textureWidth = n2, this.prevTexture = t3, this.nextTexture = e3, this.initObject();
|
|
@@ -21752,8 +21752,8 @@ var Slide = function(t2) {
|
|
|
21752
21752
|
var mm = n(25), gm = n.n(mm), vm = n(26), _m = n.n(vm);
|
|
21753
21753
|
var ym = n(27), xm = n.n(ym), bm = n(28), Tm = n.n(bm);
|
|
21754
21754
|
var wm = n(29), Sm = n.n(wm), Em = n(30), Mm = n.n(Em);
|
|
21755
|
-
var Am = n(31), Rm = n.n(Am), Pm = n(32),
|
|
21756
|
-
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);
|
|
21757
21757
|
var Dm = n(35), Fm = n.n(Dm), Bm = n(36), Um = n.n(Bm);
|
|
21758
21758
|
class km extends fm {
|
|
21759
21759
|
constructor() {
|
|
@@ -21912,7 +21912,7 @@ var Slide = function(t2) {
|
|
|
21912
21912
|
}
|
|
21913
21913
|
}, Vortex: class {
|
|
21914
21914
|
constructor() {
|
|
21915
|
-
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();
|
|
21916
21916
|
}
|
|
21917
21917
|
initData(t3, e3) {
|
|
21918
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;
|
|
@@ -21946,7 +21946,7 @@ var Slide = function(t2) {
|
|
|
21946
21946
|
}
|
|
21947
21947
|
}, WindowShades: class {
|
|
21948
21948
|
constructor() {
|
|
21949
|
-
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();
|
|
21950
21950
|
}
|
|
21951
21951
|
initData(t3, e3) {
|
|
21952
21952
|
const n2 = [], i2 = [], r3 = [], o3 = [], s3 = [], a2 = [], l2 = t3 / 2, u2 = e3 / 2, h2 = t3 / this.horizontalSegments;
|
|
@@ -21975,7 +21975,7 @@ var Slide = function(t2) {
|
|
|
21975
21975
|
}
|
|
21976
21976
|
}, Curtain: class extends fm {
|
|
21977
21977
|
constructor() {
|
|
21978
|
-
super(...arguments), this.duration = 6e3, this.fragmentShader =
|
|
21978
|
+
super(...arguments), this.duration = 6e3, this.fragmentShader = Cm.a, this.vertexShader = Rm.a, this.verticalSegments = 100;
|
|
21979
21979
|
}
|
|
21980
21980
|
extraAttributes() {
|
|
21981
21981
|
return { isLeft: { itemSize: 1, generator: (t3, e3) => [e3 < this.horizontalSegments() / 2 ? 1 : 0] } };
|
|
@@ -22189,7 +22189,7 @@ var Slide = function(t2) {
|
|
|
22189
22189
|
* @pixi/settings is licensed under the MIT License.
|
|
22190
22190
|
* http://www.opensource.org/licenses/mit-license
|
|
22191
22191
|
*/
|
|
22192
|
-
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) {
|
|
22193
22193
|
var e3 = { userAgent: "", platform: "", maxTouchPoints: 0 };
|
|
22194
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 };
|
|
22195
22195
|
var n2 = e3.userAgent, i2 = n2.split("[FBAN");
|
|
@@ -22203,9 +22203,9 @@ var Slide = function(t2) {
|
|
|
22203
22203
|
}(self.navigator);
|
|
22204
22204
|
!function(t3) {
|
|
22205
22205
|
t3[t3.WEBGL_LEGACY = 0] = "WEBGL_LEGACY", t3[t3.WEBGL = 1] = "WEBGL", t3[t3.WEBGL2 = 2] = "WEBGL2";
|
|
22206
|
-
}(Ig || (Ig = {})), function(t3) {
|
|
22207
|
-
t3[t3.UNKNOWN = 0] = "UNKNOWN", t3[t3.WEBGL = 1] = "WEBGL", t3[t3.CANVAS = 2] = "CANVAS";
|
|
22208
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) {
|
|
22209
22209
|
t3[t3.COLOR = 16384] = "COLOR", t3[t3.DEPTH = 256] = "DEPTH", t3[t3.STENCIL = 1024] = "STENCIL";
|
|
22210
22210
|
}(Og || (Og = {})), function(t3) {
|
|
22211
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";
|
|
@@ -22343,10 +22343,10 @@ var Slide = function(t2) {
|
|
|
22343
22343
|
var e3 = t3.toString(16);
|
|
22344
22344
|
return "#" + (e3 = "000000".substr(0, 6 - e3.length) + e3);
|
|
22345
22345
|
}
|
|
22346
|
-
function
|
|
22346
|
+
function Cv(t3) {
|
|
22347
22347
|
return typeof t3 == "string" && (t3 = Av[t3.toLowerCase()] || t3)[0] === "#" && (t3 = t3.substr(1)), parseInt(t3, 16);
|
|
22348
22348
|
}
|
|
22349
|
-
function
|
|
22349
|
+
function Iv(t3) {
|
|
22350
22350
|
return (255 * t3[0] << 16) + (255 * t3[1] << 8) + (255 * t3[2] | 0);
|
|
22351
22351
|
}
|
|
22352
22352
|
var Ov = function() {
|
|
@@ -22869,8 +22869,8 @@ var Slide = function(t2) {
|
|
|
22869
22869
|
}, t3.prototype.addFramePad = function(t4, e3, n2, i2, r3, o3) {
|
|
22870
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;
|
|
22871
22871
|
}, t3;
|
|
22872
|
-
}(),
|
|
22873
|
-
return (
|
|
22872
|
+
}(), C_ = function(t3, e3) {
|
|
22873
|
+
return (C_ = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, e4) {
|
|
22874
22874
|
t4.__proto__ = e4;
|
|
22875
22875
|
} || function(t4, e4) {
|
|
22876
22876
|
for (var n2 in e4)
|
|
@@ -22891,18 +22891,18 @@ var Slide = function(t2) {
|
|
|
22891
22891
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
22892
22892
|
and limitations under the License.
|
|
22893
22893
|
***************************************************************************** */
|
|
22894
|
-
function
|
|
22894
|
+
function I_(t3, e3) {
|
|
22895
22895
|
function n2() {
|
|
22896
22896
|
this.constructor = t3;
|
|
22897
22897
|
}
|
|
22898
|
-
|
|
22898
|
+
C_(t3, e3), t3.prototype = e3 === null ? Object.create(e3) : (n2.prototype = e3.prototype, new n2());
|
|
22899
22899
|
}
|
|
22900
22900
|
var O_, L_, N_, D_, F_, B_, U_, k_, G_, H_, z_, j_, V_, W_, X_, q_, Y_, Z_, J_, $_ = function(t3) {
|
|
22901
22901
|
function e3() {
|
|
22902
22902
|
var e4 = t3.call(this) || this;
|
|
22903
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;
|
|
22904
22904
|
}
|
|
22905
|
-
return
|
|
22905
|
+
return I_(e3, t3), e3.mixin = function(t4) {
|
|
22906
22906
|
for (var n2 = Object.keys(t4), i2 = 0; i2 < n2.length; ++i2) {
|
|
22907
22907
|
var r3 = n2[i2];
|
|
22908
22908
|
Object.defineProperty(e3.prototype, r3, Object.getOwnPropertyDescriptor(t4, r3));
|
|
@@ -23006,7 +23006,7 @@ var Slide = function(t2) {
|
|
|
23006
23006
|
var e4 = t3 !== null && t3.apply(this, arguments) || this;
|
|
23007
23007
|
return e4.sortDirty = null, e4;
|
|
23008
23008
|
}
|
|
23009
|
-
return
|
|
23009
|
+
return I_(e3, t3), e3;
|
|
23010
23010
|
}($_);
|
|
23011
23011
|
function Q_(t3, e3) {
|
|
23012
23012
|
return t3.zIndex === e3.zIndex ? t3._lastSortedIndex - e3._lastSortedIndex : t3.zIndex - e3.zIndex;
|
|
@@ -23055,7 +23055,7 @@ var Slide = function(t2) {
|
|
|
23055
23055
|
var e4 = t3.call(this) || this;
|
|
23056
23056
|
return e4.children = [], e4.sortableChildren = mv.SORTABLE_CHILDREN, e4.sortDirty = false, e4;
|
|
23057
23057
|
}
|
|
23058
|
-
return
|
|
23058
|
+
return I_(e3, t3), e3.prototype.onChildrenChange = function(t4) {
|
|
23059
23059
|
}, e3.prototype.addChild = function() {
|
|
23060
23060
|
for (var t4 = arguments, e4 = [], n2 = 0; n2 < arguments.length; n2++)
|
|
23061
23061
|
e4[n2] = t4[n2];
|
|
@@ -24094,7 +24094,7 @@ var Slide = function(t2) {
|
|
|
24094
24094
|
}, e3.test = function(t4) {
|
|
24095
24095
|
return typeof t4 == "string" || t4 instanceof HTMLImageElement;
|
|
24096
24096
|
}, e3;
|
|
24097
|
-
}(My),
|
|
24097
|
+
}(My), Cy = function(t3) {
|
|
24098
24098
|
function e3(e4, n2) {
|
|
24099
24099
|
var i2 = this;
|
|
24100
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;
|
|
@@ -24134,7 +24134,7 @@ var Slide = function(t2) {
|
|
|
24134
24134
|
}, e3.test = function(t4, n2) {
|
|
24135
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);
|
|
24136
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;
|
|
24137
|
-
}(My),
|
|
24137
|
+
}(My), Iy = function(t3) {
|
|
24138
24138
|
function e3(n2, i2) {
|
|
24139
24139
|
var r3 = this;
|
|
24140
24140
|
if (i2 = i2 || {}, !(n2 instanceof HTMLVideoElement)) {
|
|
@@ -24203,8 +24203,8 @@ var Slide = function(t2) {
|
|
|
24203
24203
|
return !!self.createImageBitmap && t4 instanceof ImageBitmap;
|
|
24204
24204
|
}, e3;
|
|
24205
24205
|
}(My);
|
|
24206
|
-
my.push(Py, Oy, Ay,
|
|
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:
|
|
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) {
|
|
24208
24208
|
function e3() {
|
|
24209
24209
|
return t3 !== null && t3.apply(this, arguments) || this;
|
|
24210
24210
|
}
|
|
@@ -25215,7 +25215,7 @@ var Slide = function(t2) {
|
|
|
25215
25215
|
return t3.type === "vec4" && t3.size === 1;
|
|
25216
25216
|
}, code: function(t3) {
|
|
25217
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 }';
|
|
25218
|
-
} }],
|
|
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)" };
|
|
25219
25219
|
var Ox, Lx = ["precision mediump float;", "void main(void){", "float test = 0.1;", "%forloop%", "gl_FragColor = vec4(0.0);", "}"].join("\n");
|
|
25220
25220
|
function Nx(t3) {
|
|
25221
25221
|
for (var e3 = "", n2 = 0; n2 < t3; ++n2)
|
|
@@ -25672,7 +25672,7 @@ var Slide = function(t2) {
|
|
|
25672
25672
|
break;
|
|
25673
25673
|
}
|
|
25674
25674
|
if (!a2) {
|
|
25675
|
-
var u2 = (o3.size === 1 ?
|
|
25675
|
+
var u2 = (o3.size === 1 ? Cx : Ix)[o3.type].replace("location", 'ud["' + r3 + '"].location');
|
|
25676
25676
|
i2.push('\n cu = ud["' + r3 + '"];\n cv = cu.value;\n v = uv["' + r3 + '"];\n ' + u2 + ";");
|
|
25677
25677
|
}
|
|
25678
25678
|
} else
|
|
@@ -26227,15 +26227,15 @@ var Slide = function(t2) {
|
|
|
26227
26227
|
return Zv("6.0.0", "PIXI.systems." + t3 + " has moved to PIXI." + t3), Ly[t3];
|
|
26228
26228
|
} });
|
|
26229
26229
|
};
|
|
26230
|
-
for (var
|
|
26231
|
-
Pb(
|
|
26232
|
-
var
|
|
26233
|
-
Object.defineProperty(
|
|
26230
|
+
for (var Cb in Ly)
|
|
26231
|
+
Pb(Cb);
|
|
26232
|
+
var Ib = {}, Ob = function(t3) {
|
|
26233
|
+
Object.defineProperty(Ib, t3, { get: function() {
|
|
26234
26234
|
return Zv("6.0.0", "PIXI.resources." + t3 + " has moved to PIXI." + t3), db[t3];
|
|
26235
26235
|
} });
|
|
26236
26236
|
};
|
|
26237
|
-
for (var
|
|
26238
|
-
Ob(
|
|
26237
|
+
for (var Cb in db)
|
|
26238
|
+
Ob(Cb);
|
|
26239
26239
|
/*!
|
|
26240
26240
|
* @pixi/app - v6.2.0
|
|
26241
26241
|
* Compiled Mon, 01 Nov 2021 16:52:10 UTC
|
|
@@ -27124,7 +27124,7 @@ var Slide = function(t2) {
|
|
|
27124
27124
|
}, t3;
|
|
27125
27125
|
}();
|
|
27126
27126
|
Xb.setExtensionXhrType("ktx", Xb.XHR_RESPONSE_TYPE.BUFFER);
|
|
27127
|
-
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() {
|
|
27128
27128
|
function t3() {
|
|
27129
27129
|
}
|
|
27130
27130
|
return t3.use = function(e3, n2) {
|
|
@@ -27140,7 +27140,7 @@ var Slide = function(t2) {
|
|
|
27140
27140
|
var i2 = new DataView(n2);
|
|
27141
27141
|
if (!t3.validate(e3, i2))
|
|
27142
27142
|
return null;
|
|
27143
|
-
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);
|
|
27144
27144
|
if (u2 === 0 || h2 !== 1)
|
|
27145
27145
|
throw new Error("Only 2D textures are supported");
|
|
27146
27146
|
if (d2 !== 1)
|
|
@@ -27152,8 +27152,8 @@ var Slide = function(t2) {
|
|
|
27152
27152
|
throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");
|
|
27153
27153
|
for (var x2 = y2 * m2, b2 = l2, T2 = u2, w2 = g2, S2 = v2, E2 = 64 + f2, M2 = 0; M2 < p2; M2++) {
|
|
27154
27154
|
for (var A2 = i2.getUint32(E2, r3), R2 = E2 + 4, P2 = 0; P2 < c2; P2++) {
|
|
27155
|
-
var
|
|
27156
|
-
|
|
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;
|
|
27157
27157
|
}
|
|
27158
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;
|
|
27159
27159
|
}
|
|
@@ -27163,8 +27163,8 @@ var Slide = function(t2) {
|
|
|
27163
27163
|
return new hT(null, { format: a2, width: l2, height: u2, levels: p2, levelBuffers: t4 });
|
|
27164
27164
|
});
|
|
27165
27165
|
}, t3.validate = function(t4, e3) {
|
|
27166
|
-
for (var n2 = 0; n2 <
|
|
27167
|
-
if (e3.getUint8(n2) !==
|
|
27166
|
+
for (var n2 = 0; n2 < CT.length; n2++)
|
|
27167
|
+
if (e3.getUint8(n2) !== CT[n2])
|
|
27168
27168
|
return console.error(t4 + " is not a valid *.ktx file!"), false;
|
|
27169
27169
|
return true;
|
|
27170
27170
|
}, t3;
|
|
@@ -27464,19 +27464,19 @@ var Slide = function(t2) {
|
|
|
27464
27464
|
}
|
|
27465
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);
|
|
27466
27466
|
E2 /= P2, M2 /= P2, E2 *= g2, M2 *= g2;
|
|
27467
|
-
var
|
|
27468
|
-
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);
|
|
27469
27469
|
for (var L2 = 1; L2 < p2 - 1; ++L2) {
|
|
27470
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;
|
|
27471
27471
|
var N2 = b2 - y2, D2 = x2 - T2, F2 = b2 - w2, B2 = S2 - T2, U2 = D2 * F2 - B2 * N2, k2 = U2 < 0;
|
|
27472
27472
|
if (Math.abs(U2) < 0.1)
|
|
27473
|
-
d2.push(b2 - E2 *
|
|
27473
|
+
d2.push(b2 - E2 * I2, T2 - M2 * I2), d2.push(b2 + E2 * O2, T2 + M2 * O2);
|
|
27474
27474
|
else {
|
|
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) *
|
|
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 *
|
|
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);
|
|
27477
27477
|
}
|
|
27478
27478
|
}
|
|
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 *
|
|
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)));
|
|
27480
27480
|
var J2 = e4.indices, $2 = KT.epsilon * KT.epsilon;
|
|
27481
27481
|
for (L2 = m2; L2 < f2 + m2 - 2; ++L2)
|
|
27482
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);
|
|
@@ -27945,10 +27945,10 @@ var Slide = function(t2) {
|
|
|
27945
27945
|
e4.hasOwnProperty(n2) && (t4[n2] = e4[n2]);
|
|
27946
27946
|
})(t3, e3);
|
|
27947
27947
|
};
|
|
27948
|
-
var Pw,
|
|
27948
|
+
var Pw, Cw = new v_(), Iw = new Uint16Array([0, 1, 2, 0, 2, 3]), Ow = function(t3) {
|
|
27949
27949
|
function e3(e4) {
|
|
27950
27950
|
var n2 = t3.call(this) || this;
|
|
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 =
|
|
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;
|
|
27952
27952
|
}
|
|
27953
27953
|
return function(t4, e4) {
|
|
27954
27954
|
function n2() {
|
|
@@ -27985,9 +27985,9 @@ var Slide = function(t2) {
|
|
|
27985
27985
|
}, e3.prototype.getLocalBounds = function(e4) {
|
|
27986
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);
|
|
27987
27987
|
}, e3.prototype.containsPoint = function(t4) {
|
|
27988
|
-
this.worldTransform.applyInverse(t4,
|
|
27988
|
+
this.worldTransform.applyInverse(t4, Cw);
|
|
27989
27989
|
var e4 = this._texture.orig.width, n2 = this._texture.orig.height, i2 = -e4 * this.anchor.x, r3 = 0;
|
|
27990
|
-
return
|
|
27990
|
+
return Cw.x >= i2 && Cw.x < i2 + e4 && (r3 = -n2 * this.anchor.y, Cw.y >= r3 && Cw.y < r3 + n2);
|
|
27991
27991
|
}, e3.prototype.destroy = function(e4) {
|
|
27992
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) {
|
|
27993
27993
|
var n2 = typeof e4 == "boolean" ? e4 : e4 && e4.baseTexture;
|
|
@@ -28358,7 +28358,7 @@ var Slide = function(t2) {
|
|
|
28358
28358
|
var g2 = n2.dropShadow && m2 === 0, v2 = g2 ? Math.ceil(Math.max(1, l2) + 2 * n2.padding) : 0, _2 = v2 * this._resolution;
|
|
28359
28359
|
if (g2) {
|
|
28360
28360
|
o3.fillStyle = "black", o3.strokeStyle = "black";
|
|
28361
|
-
var y2 = n2.dropShadowColor, x2 = Rv(typeof y2 == "number" ? y2 :
|
|
28361
|
+
var y2 = n2.dropShadowColor, x2 = Rv(typeof y2 == "number" ? y2 : Cv(y2));
|
|
28362
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;
|
|
28363
28363
|
} else
|
|
28364
28364
|
o3.fillStyle = this._generateFillStyle(n2, u2, s3), o3.strokeStyle = n2.stroke, o3.shadowColor = "black", o3.shadowBlur = 0, o3.shadowOffsetX = 0, o3.shadowOffsetY = 0;
|
|
@@ -29027,7 +29027,7 @@ var Slide = function(t2) {
|
|
|
29027
29027
|
}
|
|
29028
29028
|
return s4;
|
|
29029
29029
|
}(t3, e3, s3, o3, [a2], n2), e3.strokeStyle = s3.stroke;
|
|
29030
|
-
var c2 = s3.dropShadowColor, d2 = Rv(typeof c2 == "number" ? c2 :
|
|
29030
|
+
var c2 = s3.dropShadowColor, d2 = Rv(typeof c2 == "number" ? c2 : Cv(c2));
|
|
29031
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)";
|
|
29032
29032
|
}
|
|
29033
29033
|
function RS(t3) {
|
|
@@ -29036,7 +29036,7 @@ var Slide = function(t2) {
|
|
|
29036
29036
|
function PS(t3) {
|
|
29037
29037
|
return t3.codePointAt ? t3.codePointAt(0) : t3.charCodeAt(0);
|
|
29038
29038
|
}
|
|
29039
|
-
var
|
|
29039
|
+
var CS = function() {
|
|
29040
29040
|
function t3(t4, e3, n2) {
|
|
29041
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 = {};
|
|
29042
29042
|
this._ownsTextures = n2, this.font = o3.face, this.size = o3.size, this.lineHeight = s3.lineHeight / u2, this.chars = {}, this.pageTextures = h2;
|
|
@@ -29121,21 +29121,21 @@ var Slide = function(t2) {
|
|
|
29121
29121
|
b2 = 0;
|
|
29122
29122
|
for (var A2 = h2.length; b2 < A2; b2++)
|
|
29123
29123
|
for (var R2 = h2[b2], P2 = 0; P2 < A2; P2++) {
|
|
29124
|
-
var
|
|
29125
|
-
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 });
|
|
29126
29126
|
}
|
|
29127
29127
|
var N2 = new t3(p2, x2, true);
|
|
29128
29128
|
return t3.available[e3] !== void 0 && t3.uninstall(e3), t3.available[e3] = N2, N2;
|
|
29129
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;
|
|
29130
|
-
}(),
|
|
29130
|
+
}(), IS = [], OS = [], LS = [], NS = (function(t3) {
|
|
29131
29131
|
function e3(n2, i2) {
|
|
29132
29132
|
i2 === void 0 && (i2 = {});
|
|
29133
29133
|
var r3 = t3.call(this) || this;
|
|
29134
29134
|
r3._tint = 16777215;
|
|
29135
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;
|
|
29136
|
-
if (!
|
|
29136
|
+
if (!CS.available[h2])
|
|
29137
29137
|
throw new Error('Missing BitmapFont "' + h2 + '"');
|
|
29138
|
-
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() {
|
|
29139
29139
|
r3.dirty = true;
|
|
29140
29140
|
}, r3, 0, 0), r3._roundPixels = mv.ROUND_PIXELS, r3.dirty = true, r3._textureCache = {}, r3;
|
|
29141
29141
|
}
|
|
@@ -29145,7 +29145,7 @@ var Slide = function(t2) {
|
|
|
29145
29145
|
}
|
|
29146
29146
|
xS(t4, e4), t4.prototype = e4 === null ? Object.create(e4) : (n2.prototype = e4.prototype, new n2());
|
|
29147
29147
|
})(e3, t3), e3.prototype.updateText = function() {
|
|
29148
|
-
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++) {
|
|
29149
29149
|
var x2 = PS(G2 = a2[y2]);
|
|
29150
29150
|
if (/(?:\s)/.test(G2) && (f2 = y2, m2 = c2, _2++), G2 !== "\r" && G2 !== "\n") {
|
|
29151
29151
|
var b2 = e4.chars[x2];
|
|
@@ -29168,19 +29168,19 @@ var Slide = function(t2) {
|
|
|
29168
29168
|
for (y2 = 0; y2 < P2.length; y2++)
|
|
29169
29169
|
u2.push(P2[y2]);
|
|
29170
29170
|
for (y2 = 0; y2 < M2; y2++) {
|
|
29171
|
-
var
|
|
29172
|
-
if (!A2[
|
|
29171
|
+
var C2 = (z2 = r3[y2].texture).baseTexture.uid;
|
|
29172
|
+
if (!A2[C2]) {
|
|
29173
29173
|
if (!(Z2 = u2.pop())) {
|
|
29174
|
-
var
|
|
29174
|
+
var I2 = new yS(), O2 = void 0, L2 = void 0;
|
|
29175
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);
|
|
29176
|
-
var N2 = new vS(
|
|
29176
|
+
var N2 = new vS(I2, O2);
|
|
29177
29177
|
N2.blendMode = L2, Z2 = { index: 0, indexCount: 0, vertexCount: 0, uvsCount: 0, total: 0, mesh: N2, vertices: null, uvs: null, indices: null };
|
|
29178
29178
|
}
|
|
29179
29179
|
Z2.index = 0, Z2.indexCount = 0, Z2.vertexCount = 0, Z2.uvsCount = 0, Z2.total = 0;
|
|
29180
29180
|
var D2 = this._textureCache;
|
|
29181
|
-
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;
|
|
29182
29182
|
}
|
|
29183
|
-
A2[
|
|
29183
|
+
A2[C2].total++;
|
|
29184
29184
|
}
|
|
29185
29185
|
for (y2 = 0; y2 < P2.length; y2++)
|
|
29186
29186
|
R2.indexOf(P2[y2]) === -1 && this.removeChild(P2[y2].mesh);
|
|
@@ -29215,7 +29215,7 @@ var Slide = function(t2) {
|
|
|
29215
29215
|
}, e3.prototype.updateTransform = function() {
|
|
29216
29216
|
this.validate(), this.containerUpdateTransform();
|
|
29217
29217
|
}, e3.prototype._render = function(e4) {
|
|
29218
|
-
var n2 =
|
|
29218
|
+
var n2 = CS.available[this._fontName], i2 = n2.distanceFieldRange, r3 = n2.distanceFieldType, o3 = n2.size;
|
|
29219
29219
|
if (r3 !== "none")
|
|
29220
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++) {
|
|
29221
29221
|
g2[m2].mesh.shader.uniforms.uFWidth = p2 * i2 * f2 * e4.resolution;
|
|
@@ -29240,7 +29240,7 @@ var Slide = function(t2) {
|
|
|
29240
29240
|
}, enumerable: false, configurable: true }), Object.defineProperty(e3.prototype, "fontName", { get: function() {
|
|
29241
29241
|
return this._fontName;
|
|
29242
29242
|
}, set: function(t4) {
|
|
29243
|
-
if (!
|
|
29243
|
+
if (!CS.available[t4])
|
|
29244
29244
|
throw new Error('Missing BitmapFont "' + t4 + '"');
|
|
29245
29245
|
this._fontName !== t4 && (this._fontName = t4, this.dirty = true);
|
|
29246
29246
|
}, enumerable: false, configurable: true }), Object.defineProperty(e3.prototype, "fontSize", { get: function() {
|
|
@@ -29289,7 +29289,7 @@ var Slide = function(t2) {
|
|
|
29289
29289
|
var i2 = MS(e3.data);
|
|
29290
29290
|
if (i2)
|
|
29291
29291
|
for (var r3 = t3.getBaseUrl(this, e3), o3 = i2.parse(e3.data), s3 = {}, a2 = function(t4) {
|
|
29292
|
-
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());
|
|
29293
29293
|
}, l2 = 0; l2 < o3.page.length; ++l2) {
|
|
29294
29294
|
var u2 = o3.page[l2].file, h2 = r3 + u2, c2 = false;
|
|
29295
29295
|
for (var d2 in this.resources) {
|
|
@@ -29759,7 +29759,7 @@ void main() {
|
|
|
29759
29759
|
e4.hasOwnProperty(n2) && (t4[n2] = e4[n2]);
|
|
29760
29760
|
})(t3, e3);
|
|
29761
29761
|
};
|
|
29762
|
-
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) {
|
|
29763
29763
|
function e3(e4, n2) {
|
|
29764
29764
|
e4 === void 0 && (e4 = 0.5), n2 === void 0 && (n2 = Math.random());
|
|
29765
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;
|
|
@@ -29812,9 +29812,9 @@ void main() {
|
|
|
29812
29812
|
t3[t3.AUTO = 0] = "AUTO", t3[t3.MANUAL = 1] = "MANUAL";
|
|
29813
29813
|
}(PE || (PE = {})), function(t3) {
|
|
29814
29814
|
t3.LOW = "lowp", t3.MEDIUM = "mediump", t3.HIGH = "highp";
|
|
29815
|
-
}(IE || (IE = {})), function(t3) {
|
|
29816
|
-
t3[t3.NONE = 0] = "NONE", t3[t3.SCISSOR = 1] = "SCISSOR", t3[t3.STENCIL = 2] = "STENCIL", t3[t3.SPRITE = 3] = "SPRITE";
|
|
29817
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) {
|
|
29818
29818
|
t3[t3.NONE = 0] = "NONE", t3[t3.LOW = 2] = "LOW", t3[t3.MEDIUM = 4] = "MEDIUM", t3[t3.HIGH = 8] = "HIGH";
|
|
29819
29819
|
}(OE || (OE = {})), function(t3) {
|
|
29820
29820
|
t3[t3.ELEMENT_ARRAY_BUFFER = 34963] = "ELEMENT_ARRAY_BUFFER", t3[t3.ARRAY_BUFFER = 34962] = "ARRAY_BUFFER", t3[t3.UNIFORM_BUFFER = 35345] = "UNIFORM_BUFFER";
|
|
@@ -30832,7 +30832,7 @@ void main() {
|
|
|
30832
30832
|
return new Float64Array(t3);
|
|
30833
30833
|
}
|
|
30834
30834
|
const EM = SM(4), MM = SM(8), AM = SM(12), RM = SM(16), PM = SM(4);
|
|
30835
|
-
function
|
|
30835
|
+
function CM(t3, e3, n2, i2, r3, o3) {
|
|
30836
30836
|
const s3 = (e3 - o3) * (n2 - r3), a2 = (t3 - r3) * (i2 - o3), l2 = s3 - a2;
|
|
30837
30837
|
if (s3 === 0 || a2 === 0 || s3 > 0 != a2 > 0)
|
|
30838
30838
|
return l2;
|
|
@@ -30841,23 +30841,23 @@ void main() {
|
|
|
30841
30841
|
let a3, l3, u3, h2, c2, d2, p2, f2, m2, g2, v2, _2, y2, x2, b2, T2, w2, S2;
|
|
30842
30842
|
const E2 = t4 - r4, M2 = n3 - r4, A2 = e4 - o4, R2 = i3 - o4;
|
|
30843
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;
|
|
30844
|
-
let P2 = wM(4, EM),
|
|
30845
|
-
if (P2 >=
|
|
30844
|
+
let P2 = wM(4, EM), C2 = 22204460492503146e-32 * s4;
|
|
30845
|
+
if (P2 >= C2 || -P2 >= C2)
|
|
30846
30846
|
return P2;
|
|
30847
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)
|
|
30848
30848
|
return P2;
|
|
30849
|
-
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)
|
|
30850
30850
|
return P2;
|
|
30851
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;
|
|
30852
|
-
const
|
|
30852
|
+
const I2 = TM(4, EM, 4, PM, MM);
|
|
30853
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;
|
|
30854
|
-
const O2 = TM(
|
|
30854
|
+
const O2 = TM(I2, MM, 4, PM, AM);
|
|
30855
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;
|
|
30856
30856
|
const L2 = TM(O2, AM, 4, PM, RM);
|
|
30857
30857
|
return RM[L2 - 1];
|
|
30858
30858
|
}(t3, e3, n2, i2, r3, o3, u2);
|
|
30859
30859
|
}
|
|
30860
|
-
const
|
|
30860
|
+
const IM = Math.pow(2, -52), OM = new Uint32Array(512);
|
|
30861
30861
|
class LM {
|
|
30862
30862
|
static from(t3, e3 = kM, n2 = GM) {
|
|
30863
30863
|
const i2 = t3.length, r3 = new Float64Array(2 * i2);
|
|
@@ -30916,7 +30916,7 @@ void main() {
|
|
|
30916
30916
|
}
|
|
30917
30917
|
return this.hull = e4.subarray(0, n3), this.triangles = new Uint32Array(0), void (this.halfedges = new Uint32Array(0));
|
|
30918
30918
|
}
|
|
30919
|
-
if (
|
|
30919
|
+
if (CM(g2, v2, _2, y2, b2, T2) < 0) {
|
|
30920
30920
|
const t4 = p2, e4 = _2, n3 = y2;
|
|
30921
30921
|
p2 = f2, _2 = b2, y2 = T2, f2 = t4, b2 = e4, T2 = n3;
|
|
30922
30922
|
}
|
|
@@ -30932,7 +30932,7 @@ void main() {
|
|
|
30932
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);
|
|
30933
30933
|
for (let o4, s4, a3 = 0; a3 < this._ids.length; a3++) {
|
|
30934
30934
|
const l3 = this._ids[a3], u3 = t3[2 * l3], h3 = t3[2 * l3 + 1];
|
|
30935
|
-
if (a3 > 0 && Math.abs(u3 - o4) <=
|
|
30935
|
+
if (a3 > 0 && Math.abs(u3 - o4) <= IM && Math.abs(h3 - s4) <= IM)
|
|
30936
30936
|
continue;
|
|
30937
30937
|
if (o4 = u3, s4 = h3, l3 === d2 || l3 === p2 || l3 === f2)
|
|
30938
30938
|
continue;
|
|
@@ -30941,7 +30941,7 @@ void main() {
|
|
|
30941
30941
|
;
|
|
30942
30942
|
c3 = e3[c3];
|
|
30943
30943
|
let m3, g3 = c3;
|
|
30944
|
-
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; )
|
|
30945
30945
|
if (g3 = m3, g3 === c3) {
|
|
30946
30946
|
g3 = -1;
|
|
30947
30947
|
break;
|
|
@@ -30951,10 +30951,10 @@ void main() {
|
|
|
30951
30951
|
let v3 = this._addTriangle(g3, l3, n2[g3], -1, -1, i2[g3]);
|
|
30952
30952
|
i2[l3] = this._legalize(v3 + 2), i2[g3] = v3, S2++;
|
|
30953
30953
|
let _3 = n2[g3];
|
|
30954
|
-
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; )
|
|
30955
30955
|
v3 = this._addTriangle(_3, l3, m3, i2[l3], -1, i2[_3]), i2[l3] = this._legalize(v3 + 2), n2[_3] = _3, S2--, _3 = m3;
|
|
30956
30956
|
if (g3 === c3)
|
|
30957
|
-
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; )
|
|
30958
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;
|
|
30959
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;
|
|
30960
30960
|
}
|
|
@@ -31798,10 +31798,10 @@ void main(void){
|
|
|
31798
31798
|
});
|
|
31799
31799
|
};
|
|
31800
31800
|
class SA extends bA {
|
|
31801
|
-
constructor(t3, e3, n2) {
|
|
31801
|
+
constructor(t3, e3, n2, i2) {
|
|
31802
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:
|
|
31804
|
-
|
|
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`;
|
|
31805
31805
|
}
|
|
31806
31806
|
getIterateEntry() {
|
|
31807
31807
|
return null;
|
|
@@ -31846,8 +31846,13 @@ void main(void){
|
|
|
31846
31846
|
const r4 = new Ow();
|
|
31847
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);
|
|
31848
31848
|
}
|
|
31849
|
-
|
|
31850
|
-
|
|
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;
|
|
31851
31856
|
}
|
|
31852
31857
|
destroy() {
|
|
31853
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 });
|
|
@@ -31879,8 +31884,8 @@ void main(void){
|
|
|
31879
31884
|
});
|
|
31880
31885
|
};
|
|
31881
31886
|
class MA extends bA {
|
|
31882
|
-
constructor() {
|
|
31883
|
-
super(
|
|
31887
|
+
constructor(t3, e3, n2, i2) {
|
|
31888
|
+
super(t3, e3, n2), this.units = [], this.isHorz = true, this.shapeCacheAsBitMap = i2;
|
|
31884
31889
|
}
|
|
31885
31890
|
getIterateElements() {
|
|
31886
31891
|
return this.units;
|
|
@@ -31895,7 +31900,7 @@ void main(void){
|
|
|
31895
31900
|
const r4 = this.json.textUnits[i2];
|
|
31896
31901
|
if (!r4.content)
|
|
31897
31902
|
continue;
|
|
31898
|
-
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);
|
|
31899
31904
|
c2.preRender(), this.units.push(c2);
|
|
31900
31905
|
}
|
|
31901
31906
|
}
|
|
@@ -31937,8 +31942,8 @@ void main(void){
|
|
|
31937
31942
|
});
|
|
31938
31943
|
};
|
|
31939
31944
|
class RA extends bA {
|
|
31940
|
-
constructor() {
|
|
31941
|
-
super(
|
|
31945
|
+
constructor(t3, e3, n2, i2) {
|
|
31946
|
+
super(t3, e3, n2), this.iterateElements = [], this.lines = [], this.isHorz = true, this.shapeCacheAsBitMap = i2;
|
|
31942
31947
|
}
|
|
31943
31948
|
getIterateElements() {
|
|
31944
31949
|
if (this.iterateElements.length > 0)
|
|
@@ -31954,7 +31959,7 @@ void main(void){
|
|
|
31954
31959
|
}
|
|
31955
31960
|
createLines(t3, e3) {
|
|
31956
31961
|
for (let n2 = 0, i2 = this.json.lines.length; n2 < i2; n2++) {
|
|
31957
|
-
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);
|
|
31958
31963
|
r3.isHorz = this.isHorz, r3.container.name = "line-" + n2, r3.createUnits(t3, e3, n2), this.lines.push(r3);
|
|
31959
31964
|
}
|
|
31960
31965
|
}
|
|
@@ -31995,11 +32000,11 @@ void main(void){
|
|
|
31995
32000
|
l2((i2 = i2.apply(t3, e3 || [])).next());
|
|
31996
32001
|
});
|
|
31997
32002
|
};
|
|
31998
|
-
class
|
|
31999
|
-
constructor(t3, e3, n2, i2) {
|
|
32000
|
-
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;
|
|
32001
|
-
const
|
|
32002
|
-
|
|
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);
|
|
32003
32008
|
}
|
|
32004
32009
|
get width() {
|
|
32005
32010
|
return this.json.width;
|
|
@@ -32027,7 +32032,7 @@ void main(void){
|
|
|
32027
32032
|
createParagraphs(t3) {
|
|
32028
32033
|
var e3;
|
|
32029
32034
|
for (let n2 = 0, i2 = this.json.paragraphs.length; n2 < i2; n2++) {
|
|
32030
|
-
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);
|
|
32031
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);
|
|
32032
32037
|
}
|
|
32033
32038
|
}
|
|
@@ -32042,7 +32047,7 @@ void main(void){
|
|
|
32042
32047
|
}));
|
|
32043
32048
|
}
|
|
32044
32049
|
}
|
|
32045
|
-
var
|
|
32050
|
+
var IA = n(48), OA = n.n(IA), LA = n(49), NA = n.n(LA);
|
|
32046
32051
|
const DA = { Reflection: class extends Gx {
|
|
32047
32052
|
constructor(t3) {
|
|
32048
32053
|
super(OA.a, NA.a, { uShapeFilterArea: new Float32Array([0, 0, 0, 0]), uStartAlpha: t3.startAlpha, uEndAlpha: t3.endAlpha, uBlur: 0 }), this.json = t3;
|
|
@@ -32166,7 +32171,7 @@ void main(void){
|
|
|
32166
32171
|
this.renderContainer.filterArea = r4, (this.renderContainer.filters || []).forEach((t5) => {
|
|
32167
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;
|
|
32168
32173
|
});
|
|
32169
|
-
}, 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);
|
|
32170
32175
|
}
|
|
32171
32176
|
get interactiveContainer() {
|
|
32172
32177
|
return this.renderContainer;
|
|
@@ -32353,9 +32358,7 @@ void main(void){
|
|
|
32353
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 });
|
|
32354
32359
|
}, this.jumpToTime = (t4 = 0) => {
|
|
32355
32360
|
const e4 = Math.floor(t4) + this.start;
|
|
32356
|
-
this.media.currentTime !== e4 && (this.media.currentTime = e4
|
|
32357
|
-
this.media.play().then(() => this.media.pause());
|
|
32358
|
-
}, 16));
|
|
32361
|
+
this.media.currentTime !== e4 && (this.media.currentTime = e4);
|
|
32359
32362
|
}, this.showController = (t4) => {
|
|
32360
32363
|
t4.stopPropagation(), this.show();
|
|
32361
32364
|
}, this.getMediaDuration = () => {
|
|
@@ -32473,7 +32476,7 @@ void main(void){
|
|
|
32473
32476
|
class VA extends a.a {
|
|
32474
32477
|
constructor(t3) {
|
|
32475
32478
|
var e3, n2;
|
|
32476
|
-
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 });
|
|
32477
32480
|
const { video: i2, width: r3, height: o3, sprite: s3 } = t3;
|
|
32478
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(() => {
|
|
32479
32482
|
this.sprite.width = r3, this.sprite.height = o3, this.ctx.clock.setTimeout(() => {
|
|
@@ -32575,7 +32578,7 @@ void main(void){
|
|
|
32575
32578
|
};
|
|
32576
32579
|
class XA extends a.a {
|
|
32577
32580
|
constructor(t3) {
|
|
32578
|
-
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;
|
|
32579
32582
|
const { width: e3, height: n2, sprite: i2 } = t3;
|
|
32580
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) => {
|
|
32581
32584
|
this.audioEl.addEventListener(t4, () => {
|
|
@@ -33734,7 +33737,7 @@ void main(void){
|
|
|
33734
33737
|
this.globalEventHub.emit(t3);
|
|
33735
33738
|
}
|
|
33736
33739
|
}
|
|
33737
|
-
var
|
|
33740
|
+
var CR = function(t3, e3, n2, i2) {
|
|
33738
33741
|
return new (n2 || (n2 = Promise))(function(r3, o3) {
|
|
33739
33742
|
function s3(t4) {
|
|
33740
33743
|
try {
|
|
@@ -33759,7 +33762,7 @@ void main(void){
|
|
|
33759
33762
|
l2((i2 = i2.apply(t3, e3 || [])).next());
|
|
33760
33763
|
});
|
|
33761
33764
|
};
|
|
33762
|
-
class
|
|
33765
|
+
class IR extends ZA {
|
|
33763
33766
|
constructor(t3, e3, n2) {
|
|
33764
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;
|
|
33765
33768
|
const i2 = new Aw();
|
|
@@ -33776,7 +33779,7 @@ void main(void){
|
|
|
33776
33779
|
return this.container;
|
|
33777
33780
|
}
|
|
33778
33781
|
render(t3) {
|
|
33779
|
-
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* () {
|
|
33780
33783
|
this.ctx.eventHub.emit("StageRenderEnd");
|
|
33781
33784
|
})));
|
|
33782
33785
|
}
|
|
@@ -33850,7 +33853,7 @@ void main(void){
|
|
|
33850
33853
|
(i2 = this.timing) === null || i2 === void 0 || i2.setInteractiveSeqState(t3, e3, n2);
|
|
33851
33854
|
}
|
|
33852
33855
|
setMediaState(t3, e3) {
|
|
33853
|
-
return
|
|
33856
|
+
return CR(this, void 0, void 0, function* () {
|
|
33854
33857
|
const n2 = this.ctx.medias[t3];
|
|
33855
33858
|
n2 && (e3 ? yield n2.play() : yield n2.pause());
|
|
33856
33859
|
});
|
|
@@ -34055,7 +34058,7 @@ void main(void){
|
|
|
34055
34058
|
createStage(t3) {
|
|
34056
34059
|
const { task: e3 } = this.stageStates[t3];
|
|
34057
34060
|
e3.addMTask(() => {
|
|
34058
|
-
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 });
|
|
34059
34062
|
return this.stageImpls[t3] = i2, i2.preRender(), Promise.resolve();
|
|
34060
34063
|
});
|
|
34061
34064
|
}
|
|
@@ -34331,9 +34334,11 @@ void main(void){
|
|
|
34331
34334
|
});
|
|
34332
34335
|
}
|
|
34333
34336
|
scaleView(t3, e3 = false) {
|
|
34334
|
-
this.
|
|
34335
|
-
|
|
34336
|
-
|
|
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
|
+
}
|
|
34337
34342
|
}
|
|
34338
34343
|
updateResolution(t3) {
|
|
34339
34344
|
this.app.ticker.addOnce(() => {
|
|
@@ -34537,7 +34542,7 @@ void main(void){
|
|
|
34537
34542
|
SP.push(t3), nP();
|
|
34538
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) {
|
|
34539
34544
|
return t3 === void 0 && (t3 = 0), Date.now() + t3;
|
|
34540
|
-
},
|
|
34545
|
+
}, CP = false, IP = new (function() {
|
|
34541
34546
|
function t3() {
|
|
34542
34547
|
var t4 = this;
|
|
34543
34548
|
this.stopped = true, this.listener = function() {
|
|
@@ -34546,15 +34551,15 @@ void main(void){
|
|
|
34546
34551
|
}
|
|
34547
34552
|
return t3.prototype.run = function(t4) {
|
|
34548
34553
|
var e3 = this;
|
|
34549
|
-
if (t4 === void 0 && (t4 = 250), !
|
|
34550
|
-
|
|
34554
|
+
if (t4 === void 0 && (t4 = 250), !CP) {
|
|
34555
|
+
CP = true;
|
|
34551
34556
|
var n2, i2 = PP(t4);
|
|
34552
34557
|
n2 = function() {
|
|
34553
34558
|
var n3 = false;
|
|
34554
34559
|
try {
|
|
34555
34560
|
n3 = wP();
|
|
34556
34561
|
} finally {
|
|
34557
|
-
if (
|
|
34562
|
+
if (CP = false, t4 = i2 - PP(), !MP)
|
|
34558
34563
|
return;
|
|
34559
34564
|
n3 ? e3.run(1e3) : t4 > 0 ? e3.run(t4) : e3.start();
|
|
34560
34565
|
}
|
|
@@ -34581,7 +34586,7 @@ void main(void){
|
|
|
34581
34586
|
}), this.stopped = true);
|
|
34582
34587
|
}, t3;
|
|
34583
34588
|
}())(), OP = function(t3) {
|
|
34584
|
-
!MP && t3 > 0 &&
|
|
34589
|
+
!MP && t3 > 0 && IP.start(), !(MP += t3) && IP.stop();
|
|
34585
34590
|
}, LP = function() {
|
|
34586
34591
|
function t3(t4, e3) {
|
|
34587
34592
|
this.target = t4, this.observedBox = e3 || QR.CONTENT_BOX, this.lastReportedSize = { inlineSize: 0, blockSize: 0 };
|
|
@@ -34620,7 +34625,7 @@ void main(void){
|
|
|
34620
34625
|
DP.set(t4, n2);
|
|
34621
34626
|
}, t3.observe = function(t4, e3, n2) {
|
|
34622
34627
|
var i2 = DP.get(t4), r3 = i2.observationTargets.length === 0;
|
|
34623
|
-
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());
|
|
34624
34629
|
}, t3.unobserve = function(t4, e3) {
|
|
34625
34630
|
var n2 = DP.get(t4), i2 = FP(n2.observationTargets, e3), r3 = n2.observationTargets.length === 1;
|
|
34626
34631
|
i2 >= 0 && (r3 && tP.splice(tP.indexOf(n2), 1), n2.observationTargets.splice(i2, 1), OP(-1));
|
|
@@ -34945,10 +34950,10 @@ void main(void){
|
|
|
34945
34950
|
return typeof t3;
|
|
34946
34951
|
} : function(t3) {
|
|
34947
34952
|
return t3 && typeof Symbol == "function" && t3.constructor === Symbol && t3 !== Symbol.prototype ? "symbol" : typeof t3;
|
|
34948
|
-
},
|
|
34953
|
+
}, tC = function(t3, e3) {
|
|
34949
34954
|
if (!(t3 instanceof e3))
|
|
34950
34955
|
throw new TypeError("Cannot call a class as a function");
|
|
34951
|
-
},
|
|
34956
|
+
}, eC = function() {
|
|
34952
34957
|
function t3(t4, e3) {
|
|
34953
34958
|
for (var n2 = 0; n2 < e3.length; n2++) {
|
|
34954
34959
|
var i2 = e3[n2];
|
|
@@ -34958,7 +34963,7 @@ void main(void){
|
|
|
34958
34963
|
return function(e3, n2, i2) {
|
|
34959
34964
|
return n2 && t3(e3.prototype, n2), i2 && t3(e3, i2), e3;
|
|
34960
34965
|
};
|
|
34961
|
-
}(),
|
|
34966
|
+
}(), nC = function t3(e3, n2, i2) {
|
|
34962
34967
|
e3 === null && (e3 = Function.prototype);
|
|
34963
34968
|
var r3 = Object.getOwnPropertyDescriptor(e3, n2);
|
|
34964
34969
|
if (r3 === void 0) {
|
|
@@ -34969,21 +34974,21 @@ void main(void){
|
|
|
34969
34974
|
return r3.value;
|
|
34970
34975
|
var s3 = r3.get;
|
|
34971
34976
|
return s3 !== void 0 ? s3.call(i2) : void 0;
|
|
34972
|
-
},
|
|
34977
|
+
}, iC = function(t3, e3) {
|
|
34973
34978
|
if (typeof e3 != "function" && e3 !== null)
|
|
34974
34979
|
throw new TypeError("Super expression must either be null or a function, not " + typeof e3);
|
|
34975
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);
|
|
34976
|
-
},
|
|
34981
|
+
}, rC = function(t3, e3) {
|
|
34977
34982
|
if (!t3)
|
|
34978
34983
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
34979
34984
|
return !e3 || typeof e3 != "object" && typeof e3 != "function" ? t3 : e3;
|
|
34980
|
-
},
|
|
34985
|
+
}, oC = function() {
|
|
34981
34986
|
function t3() {
|
|
34982
|
-
if (
|
|
34987
|
+
if (tC(this, t3), this.__state = JP.apply(this, arguments), this.__state === false)
|
|
34983
34988
|
throw new Error("Failed to interpret color arguments");
|
|
34984
34989
|
this.__state.a = this.__state.a || 1;
|
|
34985
34990
|
}
|
|
34986
|
-
return
|
|
34991
|
+
return eC(t3, [{ key: "toString", value: function() {
|
|
34987
34992
|
return jP(this);
|
|
34988
34993
|
} }, { key: "toHexString", value: function() {
|
|
34989
34994
|
return jP(this, true);
|
|
@@ -34991,21 +34996,21 @@ void main(void){
|
|
|
34991
34996
|
return this.__state.conversion.write(this);
|
|
34992
34997
|
} }]), t3;
|
|
34993
34998
|
}();
|
|
34994
|
-
function
|
|
34999
|
+
function sC(t3, e3, n2) {
|
|
34995
35000
|
Object.defineProperty(t3, e3, { get: function() {
|
|
34996
|
-
return this.__state.space === "RGB" ||
|
|
35001
|
+
return this.__state.space === "RGB" || oC.recalculateRGB(this, e3, n2), this.__state[e3];
|
|
34997
35002
|
}, set: function(t4) {
|
|
34998
|
-
this.__state.space !== "RGB" && (
|
|
35003
|
+
this.__state.space !== "RGB" && (oC.recalculateRGB(this, e3, n2), this.__state.space = "RGB"), this.__state[e3] = t4;
|
|
34999
35004
|
} });
|
|
35000
35005
|
}
|
|
35001
|
-
function
|
|
35006
|
+
function aC(t3, e3) {
|
|
35002
35007
|
Object.defineProperty(t3, e3, { get: function() {
|
|
35003
|
-
return this.__state.space === "HSV" ||
|
|
35008
|
+
return this.__state.space === "HSV" || oC.recalculateHSV(this), this.__state[e3];
|
|
35004
35009
|
}, set: function(t4) {
|
|
35005
|
-
this.__state.space !== "HSV" && (
|
|
35010
|
+
this.__state.space !== "HSV" && (oC.recalculateHSV(this), this.__state.space = "HSV"), this.__state[e3] = t4;
|
|
35006
35011
|
} });
|
|
35007
35012
|
}
|
|
35008
|
-
|
|
35013
|
+
oC.recalculateRGB = function(t3, e3, n2) {
|
|
35009
35014
|
if (t3.__state.space === "HEX")
|
|
35010
35015
|
t3.__state[e3] = KP.component_from_hex(t3.__state.hex, n2);
|
|
35011
35016
|
else {
|
|
@@ -35013,23 +35018,23 @@ void main(void){
|
|
|
35013
35018
|
throw new Error("Corrupted color state");
|
|
35014
35019
|
XP.extend(t3.__state, KP.hsv_to_rgb(t3.__state.h, t3.__state.s, t3.__state.v));
|
|
35015
35020
|
}
|
|
35016
|
-
},
|
|
35021
|
+
}, oC.recalculateHSV = function(t3) {
|
|
35017
35022
|
var e3 = KP.rgb_to_hsv(t3.r, t3.g, t3.b);
|
|
35018
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;
|
|
35019
|
-
},
|
|
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() {
|
|
35020
35025
|
return this.__state.a;
|
|
35021
35026
|
}, set: function(t3) {
|
|
35022
35027
|
this.__state.a = t3;
|
|
35023
|
-
} }), Object.defineProperty(
|
|
35028
|
+
} }), Object.defineProperty(oC.prototype, "hex", { get: function() {
|
|
35024
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;
|
|
35025
35030
|
}, set: function(t3) {
|
|
35026
35031
|
this.__state.space = "HEX", this.__state.hex = t3;
|
|
35027
35032
|
} });
|
|
35028
|
-
var
|
|
35033
|
+
var lC = function() {
|
|
35029
35034
|
function t3(e3, n2) {
|
|
35030
|
-
|
|
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;
|
|
35031
35036
|
}
|
|
35032
|
-
return
|
|
35037
|
+
return eC(t3, [{ key: "onChange", value: function(t4) {
|
|
35033
35038
|
return this.__onChange = t4, this;
|
|
35034
35039
|
} }, { key: "onFinishChange", value: function(t4) {
|
|
35035
35040
|
return this.__onFinishChange = t4, this;
|
|
@@ -35042,20 +35047,20 @@ void main(void){
|
|
|
35042
35047
|
} }, { key: "isModified", value: function() {
|
|
35043
35048
|
return this.initialValue !== this.getValue();
|
|
35044
35049
|
} }]), t3;
|
|
35045
|
-
}(),
|
|
35050
|
+
}(), uC = {};
|
|
35046
35051
|
XP.each({ HTMLEvents: ["change"], MouseEvents: ["click", "mousemove", "mousedown", "mouseup", "mouseover"], KeyboardEvents: ["keydown"] }, function(t3, e3) {
|
|
35047
35052
|
XP.each(t3, function(t4) {
|
|
35048
|
-
|
|
35053
|
+
uC[t4] = e3;
|
|
35049
35054
|
});
|
|
35050
35055
|
});
|
|
35051
|
-
var
|
|
35052
|
-
function
|
|
35056
|
+
var hC = /(\d+(\.\d+)?)px/;
|
|
35057
|
+
function cC(t3) {
|
|
35053
35058
|
if (t3 === "0" || XP.isUndefined(t3))
|
|
35054
35059
|
return 0;
|
|
35055
|
-
var e3 = t3.match(
|
|
35060
|
+
var e3 = t3.match(hC);
|
|
35056
35061
|
return XP.isNull(e3) ? 0 : parseFloat(e3[1]);
|
|
35057
35062
|
}
|
|
35058
|
-
var
|
|
35063
|
+
var dC = { makeSelectable: function(t3, e3) {
|
|
35059
35064
|
t3 !== void 0 && t3.style !== void 0 && (t3.onselectstart = e3 ? function() {
|
|
35060
35065
|
return false;
|
|
35061
35066
|
} : function() {
|
|
@@ -35064,7 +35069,7 @@ void main(void){
|
|
|
35064
35069
|
var i2 = n2, r3 = e3;
|
|
35065
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);
|
|
35066
35071
|
}, fakeEvent: function(t3, e3, n2, i2) {
|
|
35067
|
-
var r3 = n2 || {}, o3 =
|
|
35072
|
+
var r3 = n2 || {}, o3 = uC[e3];
|
|
35068
35073
|
if (!o3)
|
|
35069
35074
|
throw new Error("Event type " + e3 + " not supported.");
|
|
35070
35075
|
var s3 = document.createEvent(o3);
|
|
@@ -35083,10 +35088,10 @@ void main(void){
|
|
|
35083
35088
|
XP.defaults(s3, i2), t3.dispatchEvent(s3);
|
|
35084
35089
|
}, bind: function(t3, e3, n2, i2) {
|
|
35085
35090
|
var r3 = i2 || false;
|
|
35086
|
-
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;
|
|
35087
35092
|
}, unbind: function(t3, e3, n2, i2) {
|
|
35088
35093
|
var r3 = i2 || false;
|
|
35089
|
-
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;
|
|
35090
35095
|
}, addClass: function(t3, e3) {
|
|
35091
35096
|
if (t3.className === void 0)
|
|
35092
35097
|
t3.className = e3;
|
|
@@ -35094,7 +35099,7 @@ void main(void){
|
|
|
35094
35099
|
var n2 = t3.className.split(/ +/);
|
|
35095
35100
|
n2.indexOf(e3) === -1 && (n2.push(e3), t3.className = n2.join(" ").replace(/^\s+/, "").replace(/\s+$/, ""));
|
|
35096
35101
|
}
|
|
35097
|
-
return
|
|
35102
|
+
return dC;
|
|
35098
35103
|
}, removeClass: function(t3, e3) {
|
|
35099
35104
|
if (e3)
|
|
35100
35105
|
if (t3.className === e3)
|
|
@@ -35105,15 +35110,15 @@ void main(void){
|
|
|
35105
35110
|
}
|
|
35106
35111
|
else
|
|
35107
35112
|
t3.className = void 0;
|
|
35108
|
-
return
|
|
35113
|
+
return dC;
|
|
35109
35114
|
}, hasClass: function(t3, e3) {
|
|
35110
35115
|
return new RegExp("(?:^|\\s+)" + e3 + "(?:\\s+|$)").test(t3.className) || false;
|
|
35111
35116
|
}, getWidth: function(t3) {
|
|
35112
35117
|
var e3 = getComputedStyle(t3);
|
|
35113
|
-
return
|
|
35118
|
+
return cC(e3["border-left-width"]) + cC(e3["border-right-width"]) + cC(e3["padding-left"]) + cC(e3["padding-right"]) + cC(e3.width);
|
|
35114
35119
|
}, getHeight: function(t3) {
|
|
35115
35120
|
var e3 = getComputedStyle(t3);
|
|
35116
|
-
return
|
|
35121
|
+
return cC(e3["border-top-width"]) + cC(e3["border-bottom-width"]) + cC(e3["padding-top"]) + cC(e3["padding-bottom"]) + cC(e3.height);
|
|
35117
35122
|
}, getOffset: function(t3) {
|
|
35118
35123
|
var e3 = t3, n2 = { left: 0, top: 0 };
|
|
35119
35124
|
if (e3.offsetParent)
|
|
@@ -35123,24 +35128,24 @@ void main(void){
|
|
|
35123
35128
|
return n2;
|
|
35124
35129
|
}, isActive: function(t3) {
|
|
35125
35130
|
return t3 === document.activeElement && (t3.type || t3.href);
|
|
35126
|
-
} },
|
|
35131
|
+
} }, pC = function(t3) {
|
|
35127
35132
|
function e3(t4, n2) {
|
|
35128
|
-
|
|
35129
|
-
var i2 =
|
|
35130
|
-
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() {
|
|
35131
35136
|
r3.setValue(!r3.__prev);
|
|
35132
35137
|
}, false), i2.domElement.appendChild(i2.__checkbox), i2.updateDisplay(), i2;
|
|
35133
35138
|
}
|
|
35134
|
-
return
|
|
35135
|
-
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);
|
|
35136
35141
|
return this.__onFinishChange && this.__onFinishChange.call(this, this.getValue()), this.__prev = this.getValue(), n2;
|
|
35137
35142
|
} }, { key: "updateDisplay", value: function() {
|
|
35138
|
-
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);
|
|
35139
35144
|
} }]), e3;
|
|
35140
|
-
}(
|
|
35145
|
+
}(lC), fC = function(t3) {
|
|
35141
35146
|
function e3(t4, n2, i2) {
|
|
35142
|
-
|
|
35143
|
-
var r3 =
|
|
35147
|
+
tC(this, e3);
|
|
35148
|
+
var r3 = rC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n2)), o3 = i2, s3 = r3;
|
|
35144
35149
|
if (r3.__select = document.createElement("select"), XP.isArray(o3)) {
|
|
35145
35150
|
var a2 = {};
|
|
35146
35151
|
XP.each(o3, function(t5) {
|
|
@@ -35150,59 +35155,59 @@ void main(void){
|
|
|
35150
35155
|
return XP.each(o3, function(t5, e4) {
|
|
35151
35156
|
var n3 = document.createElement("option");
|
|
35152
35157
|
n3.innerHTML = e4, n3.setAttribute("value", t5), s3.__select.appendChild(n3);
|
|
35153
|
-
}), r3.updateDisplay(),
|
|
35158
|
+
}), r3.updateDisplay(), dC.bind(r3.__select, "change", function() {
|
|
35154
35159
|
var t5 = this.options[this.selectedIndex].value;
|
|
35155
35160
|
s3.setValue(t5);
|
|
35156
35161
|
}), r3.domElement.appendChild(r3.__select), r3;
|
|
35157
35162
|
}
|
|
35158
|
-
return
|
|
35159
|
-
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);
|
|
35160
35165
|
return this.__onFinishChange && this.__onFinishChange.call(this, this.getValue()), n2;
|
|
35161
35166
|
} }, { key: "updateDisplay", value: function() {
|
|
35162
|
-
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));
|
|
35163
35168
|
} }]), e3;
|
|
35164
|
-
}(
|
|
35169
|
+
}(lC), mC = function(t3) {
|
|
35165
35170
|
function e3(t4, n2) {
|
|
35166
|
-
|
|
35167
|
-
var i2 =
|
|
35171
|
+
tC(this, e3);
|
|
35172
|
+
var i2 = rC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n2)), r3 = i2;
|
|
35168
35173
|
function o3() {
|
|
35169
35174
|
r3.setValue(r3.__input.value);
|
|
35170
35175
|
}
|
|
35171
|
-
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() {
|
|
35172
35177
|
r3.__onFinishChange && r3.__onFinishChange.call(r3, r3.getValue());
|
|
35173
|
-
}),
|
|
35178
|
+
}), dC.bind(i2.__input, "keydown", function(t5) {
|
|
35174
35179
|
t5.keyCode === 13 && this.blur();
|
|
35175
35180
|
}), i2.updateDisplay(), i2.domElement.appendChild(i2.__input), i2;
|
|
35176
35181
|
}
|
|
35177
|
-
return
|
|
35178
|
-
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);
|
|
35179
35184
|
} }]), e3;
|
|
35180
|
-
}(
|
|
35181
|
-
function
|
|
35185
|
+
}(lC);
|
|
35186
|
+
function gC(t3) {
|
|
35182
35187
|
var e3 = t3.toString();
|
|
35183
35188
|
return e3.indexOf(".") > -1 ? e3.length - e3.indexOf(".") - 1 : 0;
|
|
35184
35189
|
}
|
|
35185
|
-
var
|
|
35190
|
+
var vC = function(t3) {
|
|
35186
35191
|
function e3(t4, n2, i2) {
|
|
35187
|
-
|
|
35188
|
-
var r3 =
|
|
35189
|
-
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;
|
|
35190
35195
|
}
|
|
35191
|
-
return
|
|
35196
|
+
return iC(e3, t3), eC(e3, [{ key: "setValue", value: function(t4) {
|
|
35192
35197
|
var n2 = t4;
|
|
35193
|
-
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);
|
|
35194
35199
|
} }, { key: "min", value: function(t4) {
|
|
35195
35200
|
return this.__min = t4, this;
|
|
35196
35201
|
} }, { key: "max", value: function(t4) {
|
|
35197
35202
|
return this.__max = t4, this;
|
|
35198
35203
|
} }, { key: "step", value: function(t4) {
|
|
35199
|
-
return this.__step = t4, this.__impliedStep = t4, this.__precision =
|
|
35204
|
+
return this.__step = t4, this.__impliedStep = t4, this.__precision = gC(t4), this;
|
|
35200
35205
|
} }]), e3;
|
|
35201
|
-
}(
|
|
35202
|
-
var
|
|
35206
|
+
}(lC);
|
|
35207
|
+
var _C = function(t3) {
|
|
35203
35208
|
function e3(t4, n2, i2) {
|
|
35204
|
-
|
|
35205
|
-
var r3 =
|
|
35209
|
+
tC(this, e3);
|
|
35210
|
+
var r3 = rC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n2, i2));
|
|
35206
35211
|
r3.__truncationSuspended = false;
|
|
35207
35212
|
var o3 = r3, s3 = void 0;
|
|
35208
35213
|
function a2() {
|
|
@@ -35213,98 +35218,98 @@ void main(void){
|
|
|
35213
35218
|
o3.setValue(o3.getValue() + e4 * o3.__impliedStep), s3 = t5.clientY;
|
|
35214
35219
|
}
|
|
35215
35220
|
function u2() {
|
|
35216
|
-
|
|
35221
|
+
dC.unbind(window, "mousemove", l2), dC.unbind(window, "mouseup", u2), a2();
|
|
35217
35222
|
}
|
|
35218
|
-
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() {
|
|
35219
35224
|
var t5 = parseFloat(o3.__input.value);
|
|
35220
35225
|
XP.isNaN(t5) || o3.setValue(t5);
|
|
35221
|
-
}),
|
|
35226
|
+
}), dC.bind(r3.__input, "blur", function() {
|
|
35222
35227
|
a2();
|
|
35223
|
-
}),
|
|
35224
|
-
|
|
35225
|
-
}),
|
|
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) {
|
|
35226
35231
|
t5.keyCode === 13 && (o3.__truncationSuspended = true, this.blur(), o3.__truncationSuspended = false, a2());
|
|
35227
35232
|
}), r3.updateDisplay(), r3.domElement.appendChild(r3.__input), r3;
|
|
35228
35233
|
}
|
|
35229
|
-
return
|
|
35234
|
+
return iC(e3, t3), eC(e3, [{ key: "updateDisplay", value: function() {
|
|
35230
35235
|
var t4, n2, i2;
|
|
35231
|
-
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);
|
|
35232
35237
|
} }]), e3;
|
|
35233
|
-
}(
|
|
35234
|
-
function
|
|
35238
|
+
}(vC);
|
|
35239
|
+
function yC(t3, e3, n2, i2, r3) {
|
|
35235
35240
|
return i2 + (t3 - e3) / (n2 - e3) * (r3 - i2);
|
|
35236
35241
|
}
|
|
35237
|
-
var
|
|
35242
|
+
var xC = function(t3) {
|
|
35238
35243
|
function e3(t4, n2, i2, r3, o3) {
|
|
35239
|
-
|
|
35240
|
-
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;
|
|
35241
35246
|
function l2(t5) {
|
|
35242
35247
|
t5.preventDefault();
|
|
35243
35248
|
var e4 = a2.__background.getBoundingClientRect();
|
|
35244
|
-
return a2.setValue(
|
|
35249
|
+
return a2.setValue(yC(t5.clientX, e4.left, e4.right, a2.__min, a2.__max)), false;
|
|
35245
35250
|
}
|
|
35246
35251
|
function u2() {
|
|
35247
|
-
|
|
35252
|
+
dC.unbind(window, "mousemove", l2), dC.unbind(window, "mouseup", u2), a2.__onFinishChange && a2.__onFinishChange.call(a2, a2.getValue());
|
|
35248
35253
|
}
|
|
35249
35254
|
function h2(t5) {
|
|
35250
35255
|
var e4 = t5.touches[0].clientX, n3 = a2.__background.getBoundingClientRect();
|
|
35251
|
-
a2.setValue(
|
|
35256
|
+
a2.setValue(yC(e4, n3.left, n3.right, a2.__min, a2.__max));
|
|
35252
35257
|
}
|
|
35253
35258
|
function c2() {
|
|
35254
|
-
|
|
35259
|
+
dC.unbind(window, "touchmove", h2), dC.unbind(window, "touchend", c2), a2.__onFinishChange && a2.__onFinishChange.call(a2, a2.getValue());
|
|
35255
35260
|
}
|
|
35256
|
-
return s3.__background = document.createElement("div"), s3.__foreground = document.createElement("div"),
|
|
35257
|
-
document.activeElement.blur(),
|
|
35258
|
-
}),
|
|
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) {
|
|
35259
35264
|
if (t5.touches.length !== 1)
|
|
35260
35265
|
return;
|
|
35261
|
-
|
|
35262
|
-
}),
|
|
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;
|
|
35263
35268
|
}
|
|
35264
|
-
return
|
|
35269
|
+
return iC(e3, t3), eC(e3, [{ key: "updateDisplay", value: function() {
|
|
35265
35270
|
var t4 = (this.getValue() - this.__min) / (this.__max - this.__min);
|
|
35266
|
-
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);
|
|
35267
35272
|
} }]), e3;
|
|
35268
|
-
}(
|
|
35273
|
+
}(vC), bC = function(t3) {
|
|
35269
35274
|
function e3(t4, n2, i2) {
|
|
35270
|
-
|
|
35271
|
-
var r3 =
|
|
35272
|
-
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) {
|
|
35273
35278
|
return t5.preventDefault(), o3.fire(), false;
|
|
35274
|
-
}),
|
|
35279
|
+
}), dC.addClass(r3.__button, "button"), r3.domElement.appendChild(r3.__button), r3;
|
|
35275
35280
|
}
|
|
35276
|
-
return
|
|
35281
|
+
return iC(e3, t3), eC(e3, [{ key: "fire", value: function() {
|
|
35277
35282
|
this.__onChange && this.__onChange.call(this), this.getValue().call(this.object), this.__onFinishChange && this.__onFinishChange.call(this, this.getValue());
|
|
35278
35283
|
} }]), e3;
|
|
35279
|
-
}(
|
|
35284
|
+
}(lC), TC = function(t3) {
|
|
35280
35285
|
function e3(t4, n2) {
|
|
35281
|
-
|
|
35282
|
-
var i2 =
|
|
35283
|
-
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);
|
|
35284
35289
|
var r3 = i2;
|
|
35285
|
-
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) {
|
|
35286
35291
|
t5.keyCode === 13 && c2.call(this);
|
|
35287
|
-
}),
|
|
35288
|
-
|
|
35289
|
-
|
|
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");
|
|
35290
35295
|
});
|
|
35291
|
-
}),
|
|
35292
|
-
|
|
35293
|
-
|
|
35296
|
+
}), dC.bind(i2.__selector, "touchstart", function() {
|
|
35297
|
+
dC.addClass(this, "drag").bind(window, "touchend", function() {
|
|
35298
|
+
dC.removeClass(r3.__selector, "drag");
|
|
35294
35299
|
});
|
|
35295
35300
|
});
|
|
35296
35301
|
var o3, s3 = document.createElement("div");
|
|
35297
35302
|
function a2(t5) {
|
|
35298
|
-
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);
|
|
35299
35304
|
}
|
|
35300
35305
|
function l2(t5) {
|
|
35301
|
-
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);
|
|
35302
35307
|
}
|
|
35303
35308
|
function u2() {
|
|
35304
|
-
|
|
35309
|
+
dC.unbind(window, "mousemove", p2), dC.unbind(window, "touchmove", p2), dC.unbind(window, "mouseup", u2), dC.unbind(window, "touchend", u2), d2();
|
|
35305
35310
|
}
|
|
35306
35311
|
function h2() {
|
|
35307
|
-
|
|
35312
|
+
dC.unbind(window, "mousemove", f2), dC.unbind(window, "touchmove", f2), dC.unbind(window, "mouseup", h2), dC.unbind(window, "touchend", h2), d2();
|
|
35308
35313
|
}
|
|
35309
35314
|
function c2() {
|
|
35310
35315
|
var t5 = JP(this.value);
|
|
@@ -35323,28 +35328,28 @@ void main(void){
|
|
|
35323
35328
|
var e4 = r3.__hue_field.getBoundingClientRect(), n3 = 1 - ((t5.touches && t5.touches[0] || t5).clientY - e4.top) / (e4.bottom - e4.top);
|
|
35324
35329
|
return n3 > 1 ? n3 = 1 : n3 < 0 && (n3 = 0), r3.__color.h = 360 * n3, r3.setValue(r3.__color.toOriginal()), false;
|
|
35325
35330
|
}
|
|
35326
|
-
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;
|
|
35327
35332
|
}
|
|
35328
|
-
return
|
|
35333
|
+
return iC(e3, t3), eC(e3, [{ key: "updateDisplay", value: function() {
|
|
35329
35334
|
var t4 = JP(this.getValue());
|
|
35330
35335
|
if (t4 !== false) {
|
|
35331
35336
|
var e4 = false;
|
|
35332
|
-
XP.each(
|
|
35337
|
+
XP.each(oC.COMPONENTS, function(n3) {
|
|
35333
35338
|
if (!XP.isUndefined(t4[n3]) && !XP.isUndefined(this.__color.__state[n3]) && t4[n3] !== this.__color.__state[n3])
|
|
35334
35339
|
return e4 = true, {};
|
|
35335
35340
|
}, this), e4 && XP.extend(this.__color.__state, t4);
|
|
35336
35341
|
}
|
|
35337
35342
|
XP.extend(this.__temp.__state, this.__color.__state), this.__temp.a = 1;
|
|
35338
35343
|
var n2 = this.__color.v < 0.5 || this.__color.s > 0.5 ? 255 : 0, i2 = 255 - n2;
|
|
35339
|
-
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)" });
|
|
35340
35345
|
} }]), e3;
|
|
35341
|
-
}(
|
|
35342
|
-
function
|
|
35343
|
-
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) {
|
|
35344
35349
|
t3.style.cssText += "background: " + r3 + "linear-gradient(" + e3 + ", " + n2 + " 0%, " + i2 + " 100%); ";
|
|
35345
35350
|
});
|
|
35346
35351
|
}
|
|
35347
|
-
var
|
|
35352
|
+
var EC = function(t3, e3) {
|
|
35348
35353
|
var n2 = e3 || document, i2 = document.createElement("style");
|
|
35349
35354
|
i2.type = "text/css", i2.innerHTML = t3;
|
|
35350
35355
|
var r3 = n2.getElementsByTagName("head")[0];
|
|
@@ -35352,7 +35357,7 @@ void main(void){
|
|
|
35352
35357
|
r3.appendChild(i2);
|
|
35353
35358
|
} catch (t4) {
|
|
35354
35359
|
}
|
|
35355
|
-
},
|
|
35360
|
+
}, MC = `<div id="dg-save" class="dg dialogue">
|
|
35356
35361
|
|
|
35357
35362
|
Here's the new load parameter for your <code>GUI</code>'s constructor:
|
|
35358
35363
|
|
|
@@ -35372,50 +35377,50 @@ void main(void){
|
|
|
35372
35377
|
|
|
35373
35378
|
</div>
|
|
35374
35379
|
|
|
35375
|
-
</div>`,
|
|
35380
|
+
</div>`, AC = function(t3, e3) {
|
|
35376
35381
|
var n2 = t3[e3];
|
|
35377
|
-
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;
|
|
35378
35383
|
};
|
|
35379
|
-
var
|
|
35384
|
+
var RC = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(t3) {
|
|
35380
35385
|
setTimeout(t3, 1e3 / 60);
|
|
35381
|
-
},
|
|
35386
|
+
}, PC = function() {
|
|
35382
35387
|
function t3() {
|
|
35383
|
-
|
|
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);
|
|
35384
35389
|
var e3 = this;
|
|
35385
|
-
|
|
35390
|
+
dC.bind(this.backgroundElement, "click", function() {
|
|
35386
35391
|
e3.hide();
|
|
35387
35392
|
});
|
|
35388
35393
|
}
|
|
35389
|
-
return
|
|
35394
|
+
return eC(t3, [{ key: "show", value: function() {
|
|
35390
35395
|
var t4 = this;
|
|
35391
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() {
|
|
35392
35397
|
t4.backgroundElement.style.opacity = 1, t4.domElement.style.opacity = 1, t4.domElement.style.webkitTransform = "scale(1)";
|
|
35393
35398
|
});
|
|
35394
35399
|
} }, { key: "hide", value: function() {
|
|
35395
35400
|
var t4 = this, e3 = function e4() {
|
|
35396
|
-
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);
|
|
35397
35402
|
};
|
|
35398
|
-
|
|
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)";
|
|
35399
35404
|
} }, { key: "layout", value: function() {
|
|
35400
|
-
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";
|
|
35401
35406
|
} }]), t3;
|
|
35402
35407
|
}();
|
|
35403
|
-
|
|
35408
|
+
EC(function(t3) {
|
|
35404
35409
|
if (t3 && typeof window != "undefined") {
|
|
35405
35410
|
var e3 = document.createElement("style");
|
|
35406
35411
|
return e3.setAttribute("type", "text/css"), e3.innerHTML = t3, document.head.appendChild(e3), t3;
|
|
35407
35412
|
}
|
|
35408
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"));
|
|
35409
|
-
var
|
|
35414
|
+
var CC = function() {
|
|
35410
35415
|
try {
|
|
35411
35416
|
return !!window.localStorage;
|
|
35412
35417
|
} catch (t3) {
|
|
35413
35418
|
return false;
|
|
35414
35419
|
}
|
|
35415
|
-
}(),
|
|
35420
|
+
}(), IC = void 0, OC = true, LC = void 0, NC = false, DC = [], FC = function t3(e3) {
|
|
35416
35421
|
var n2 = this, i2 = e3 || {};
|
|
35417
|
-
this.domElement = document.createElement("div"), this.__ul = document.createElement("ul"), this.domElement.appendChild(this.__ul),
|
|
35418
|
-
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;
|
|
35419
35424
|
if (Object.defineProperties(this, { parent: { get: function() {
|
|
35420
35425
|
return i2.parent;
|
|
35421
35426
|
} }, scrollable: { get: function() {
|
|
@@ -35434,7 +35439,7 @@ void main(void){
|
|
|
35434
35439
|
} }, width: { get: function() {
|
|
35435
35440
|
return i2.width;
|
|
35436
35441
|
}, set: function(t4) {
|
|
35437
|
-
i2.width = t4,
|
|
35442
|
+
i2.width = t4, qC(n2, t4);
|
|
35438
35443
|
} }, name: { get: function() {
|
|
35439
35444
|
return i2.name;
|
|
35440
35445
|
}, set: function(t4) {
|
|
@@ -35442,50 +35447,50 @@ void main(void){
|
|
|
35442
35447
|
} }, closed: { get: function() {
|
|
35443
35448
|
return i2.closed;
|
|
35444
35449
|
}, set: function(e4) {
|
|
35445
|
-
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);
|
|
35446
35451
|
} }, load: { get: function() {
|
|
35447
35452
|
return i2.load;
|
|
35448
35453
|
} }, useLocalStorage: { get: function() {
|
|
35449
35454
|
return o3;
|
|
35450
35455
|
}, set: function(t4) {
|
|
35451
|
-
|
|
35456
|
+
CC && (o3 = t4, t4 ? dC.bind(window, "unload", s3) : dC.unbind(window, "unload", s3), localStorage.setItem(zC(n2, "isLocal"), t4));
|
|
35452
35457
|
} } }), XP.isUndefined(i2.parent)) {
|
|
35453
|
-
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) {
|
|
35454
35459
|
n2.useLocalStorage = true;
|
|
35455
|
-
var l2 = localStorage.getItem(
|
|
35460
|
+
var l2 = localStorage.getItem(zC(this, "gui"));
|
|
35456
35461
|
l2 && (i2.load = JSON.parse(l2));
|
|
35457
35462
|
}
|
|
35458
|
-
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() {
|
|
35459
35464
|
n2.closed = !n2.closed;
|
|
35460
35465
|
});
|
|
35461
35466
|
} else {
|
|
35462
35467
|
i2.closed === void 0 && (i2.closed = true);
|
|
35463
35468
|
var u2 = document.createTextNode(i2.name);
|
|
35464
|
-
|
|
35465
|
-
|
|
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) {
|
|
35466
35471
|
return t4.preventDefault(), n2.closed = !n2.closed, false;
|
|
35467
35472
|
}), i2.closed || (this.closed = false);
|
|
35468
35473
|
}
|
|
35469
|
-
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() {
|
|
35470
35475
|
n2.onResizeDebounced();
|
|
35471
|
-
},
|
|
35472
|
-
|
|
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()));
|
|
35473
35478
|
}, this.saveToLocalStorageIfPossible = s3, i2.parent || ((r3 = n2.getRoot()).width += 1, XP.defer(function() {
|
|
35474
35479
|
r3.width -= 1;
|
|
35475
35480
|
}));
|
|
35476
35481
|
};
|
|
35477
|
-
function
|
|
35482
|
+
function BC(t3, e3, n2) {
|
|
35478
35483
|
var i2 = document.createElement("li");
|
|
35479
35484
|
return e3 && i2.appendChild(e3), n2 ? t3.__ul.insertBefore(i2, n2) : t3.__ul.appendChild(i2), t3.onResize(), i2;
|
|
35480
35485
|
}
|
|
35481
|
-
function
|
|
35482
|
-
|
|
35486
|
+
function UC(t3) {
|
|
35487
|
+
dC.unbind(window, "resize", t3.__resizeHandler), t3.saveToLocalStorageIfPossible && dC.unbind(window, "unload", t3.saveToLocalStorageIfPossible);
|
|
35483
35488
|
}
|
|
35484
|
-
function
|
|
35489
|
+
function kC(t3, e3) {
|
|
35485
35490
|
var n2 = t3.__preset_select[t3.__preset_select.selectedIndex];
|
|
35486
35491
|
n2.innerHTML = e3 ? n2.value + "*" : n2.value;
|
|
35487
35492
|
}
|
|
35488
|
-
function
|
|
35493
|
+
function GC(t3, e3) {
|
|
35489
35494
|
var n2 = t3.getRoot(), i2 = n2.__rememberedObjects.indexOf(e3.object);
|
|
35490
35495
|
if (i2 !== -1) {
|
|
35491
35496
|
var r3 = n2.__rememberedObjectIndecesToControllers[i2];
|
|
@@ -35505,31 +35510,31 @@ void main(void){
|
|
|
35505
35510
|
}
|
|
35506
35511
|
}
|
|
35507
35512
|
}
|
|
35508
|
-
function
|
|
35513
|
+
function HC(t3, e3, n2, i2) {
|
|
35509
35514
|
if (e3[n2] === void 0)
|
|
35510
35515
|
throw new Error('Object "' + e3 + '" has no property "' + n2 + '"');
|
|
35511
35516
|
var r3 = void 0;
|
|
35512
35517
|
if (i2.color)
|
|
35513
|
-
r3 = new
|
|
35518
|
+
r3 = new TC(e3, n2);
|
|
35514
35519
|
else {
|
|
35515
35520
|
var o3 = [e3, n2].concat(i2.factoryArgs);
|
|
35516
|
-
r3 =
|
|
35521
|
+
r3 = AC.apply(t3, o3);
|
|
35517
35522
|
}
|
|
35518
|
-
i2.before instanceof
|
|
35523
|
+
i2.before instanceof lC && (i2.before = i2.before.__li), GC(t3, r3), dC.addClass(r3.domElement, "c");
|
|
35519
35524
|
var s3 = document.createElement("span");
|
|
35520
|
-
|
|
35525
|
+
dC.addClass(s3, "property-name"), s3.innerHTML = r3.property;
|
|
35521
35526
|
var a2 = document.createElement("div");
|
|
35522
35527
|
a2.appendChild(s3), a2.appendChild(r3.domElement);
|
|
35523
|
-
var l2 =
|
|
35524
|
-
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) {
|
|
35525
35530
|
if (n3.__li = e4, n3.__gui = t4, XP.extend(n3, { options: function(e5) {
|
|
35526
35531
|
if (arguments.length > 1) {
|
|
35527
35532
|
var i4 = n3.__li.nextElementSibling;
|
|
35528
|
-
return n3.remove(),
|
|
35533
|
+
return n3.remove(), HC(t4, n3.object, n3.property, { before: i4, factoryArgs: [XP.toArray(arguments)] });
|
|
35529
35534
|
}
|
|
35530
35535
|
if (XP.isArray(e5) || XP.isObject(e5)) {
|
|
35531
35536
|
var r5 = n3.__li.nextElementSibling;
|
|
35532
|
-
return n3.remove(),
|
|
35537
|
+
return n3.remove(), HC(t4, n3.object, n3.property, { before: r5, factoryArgs: [e5] });
|
|
35533
35538
|
}
|
|
35534
35539
|
}, name: function(t5) {
|
|
35535
35540
|
return n3.__li.firstElementChild.firstElementChild.innerHTML = t5, n3;
|
|
@@ -35537,110 +35542,110 @@ void main(void){
|
|
|
35537
35542
|
return n3.__gui.listen(n3), n3;
|
|
35538
35543
|
}, remove: function() {
|
|
35539
35544
|
return n3.__gui.remove(n3), n3;
|
|
35540
|
-
} }), n3 instanceof
|
|
35541
|
-
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 });
|
|
35542
35547
|
XP.each(["updateDisplay", "onChange", "onFinishChange", "step", "min", "max"], function(t5) {
|
|
35543
35548
|
var e5 = n3[t5], r5 = i3[t5];
|
|
35544
35549
|
n3[t5] = i3[t5] = function() {
|
|
35545
35550
|
var t6 = Array.prototype.slice.call(arguments);
|
|
35546
35551
|
return r5.apply(i3, t6), e5.apply(n3, t6);
|
|
35547
35552
|
};
|
|
35548
|
-
}),
|
|
35549
|
-
} else if (n3 instanceof
|
|
35553
|
+
}), dC.addClass(e4, "has-slider"), n3.domElement.insertBefore(i3.domElement, n3.domElement.firstElementChild);
|
|
35554
|
+
} else if (n3 instanceof _C) {
|
|
35550
35555
|
var r4 = function(e5) {
|
|
35551
35556
|
if (XP.isNumber(n3.__min) && XP.isNumber(n3.__max)) {
|
|
35552
35557
|
var i4 = n3.__li.firstElementChild.firstElementChild.innerHTML, r5 = n3.__gui.__listening.indexOf(n3) > -1;
|
|
35553
35558
|
n3.remove();
|
|
35554
|
-
var o4 =
|
|
35559
|
+
var o4 = HC(t4, n3.object, n3.property, { before: n3.__li.nextElementSibling, factoryArgs: [n3.__min, n3.__max, n3.__step] });
|
|
35555
35560
|
return o4.name(i4), r5 && o4.listen(), o4;
|
|
35556
35561
|
}
|
|
35557
35562
|
return e5;
|
|
35558
35563
|
};
|
|
35559
35564
|
n3.min = XP.compose(r4, n3.min), n3.max = XP.compose(r4, n3.max);
|
|
35560
35565
|
} else
|
|
35561
|
-
n3 instanceof
|
|
35562
|
-
|
|
35563
|
-
}),
|
|
35566
|
+
n3 instanceof pC ? (dC.bind(e4, "click", function() {
|
|
35567
|
+
dC.fakeEvent(n3.__checkbox, "click");
|
|
35568
|
+
}), dC.bind(n3.__checkbox, "click", function(t5) {
|
|
35564
35569
|
t5.stopPropagation();
|
|
35565
|
-
})) : n3 instanceof
|
|
35566
|
-
|
|
35567
|
-
}),
|
|
35568
|
-
|
|
35569
|
-
}),
|
|
35570
|
-
|
|
35571
|
-
})) : 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) {
|
|
35572
35577
|
return e4.style.borderLeftColor = n3.__color.toString(), t5;
|
|
35573
35578
|
}, n3.updateDisplay), n3.updateDisplay());
|
|
35574
35579
|
n3.setValue = XP.compose(function(e5) {
|
|
35575
|
-
return t4.getRoot().__preset_select && n3.isModified() &&
|
|
35580
|
+
return t4.getRoot().__preset_select && n3.isModified() && kC(t4.getRoot(), true), e5;
|
|
35576
35581
|
}, n3.setValue);
|
|
35577
35582
|
}(t3, l2, r3), t3.__controllers.push(r3), r3;
|
|
35578
35583
|
}
|
|
35579
|
-
function
|
|
35584
|
+
function zC(t3, e3) {
|
|
35580
35585
|
return document.location.href + "." + e3;
|
|
35581
35586
|
}
|
|
35582
|
-
function
|
|
35587
|
+
function jC(t3, e3, n2) {
|
|
35583
35588
|
var i2 = document.createElement("option");
|
|
35584
35589
|
i2.innerHTML = e3, i2.value = e3, t3.__preset_select.appendChild(i2), n2 && (t3.__preset_select.selectedIndex = t3.__preset_select.length - 1);
|
|
35585
35590
|
}
|
|
35586
|
-
function
|
|
35591
|
+
function VC(t3, e3) {
|
|
35587
35592
|
e3.style.display = t3.useLocalStorage ? "block" : "none";
|
|
35588
35593
|
}
|
|
35589
|
-
function
|
|
35594
|
+
function WC(t3) {
|
|
35590
35595
|
var e3 = t3.__save_row = document.createElement("li");
|
|
35591
|
-
|
|
35596
|
+
dC.addClass(t3.domElement, "has-save"), t3.__ul.insertBefore(e3, t3.__ul.firstChild), dC.addClass(e3, "save-row");
|
|
35592
35597
|
var n2 = document.createElement("span");
|
|
35593
|
-
n2.innerHTML = " ",
|
|
35598
|
+
n2.innerHTML = " ", dC.addClass(n2, "button gears");
|
|
35594
35599
|
var i2 = document.createElement("span");
|
|
35595
|
-
i2.innerHTML = "Save",
|
|
35600
|
+
i2.innerHTML = "Save", dC.addClass(i2, "button"), dC.addClass(i2, "save");
|
|
35596
35601
|
var r3 = document.createElement("span");
|
|
35597
|
-
r3.innerHTML = "New",
|
|
35602
|
+
r3.innerHTML = "New", dC.addClass(r3, "button"), dC.addClass(r3, "save-as");
|
|
35598
35603
|
var o3 = document.createElement("span");
|
|
35599
|
-
o3.innerHTML = "Revert",
|
|
35604
|
+
o3.innerHTML = "Revert", dC.addClass(o3, "button"), dC.addClass(o3, "revert");
|
|
35600
35605
|
var s3 = t3.__preset_select = document.createElement("select");
|
|
35601
35606
|
if (t3.load && t3.load.remembered ? XP.each(t3.load.remembered, function(e4, n3) {
|
|
35602
|
-
|
|
35603
|
-
}) :
|
|
35607
|
+
jC(t3, n3, n3 === t3.preset);
|
|
35608
|
+
}) : jC(t3, "Default", false), dC.bind(s3, "change", function() {
|
|
35604
35609
|
for (var e4 = 0; e4 < t3.__preset_select.length; e4++)
|
|
35605
35610
|
t3.__preset_select[e4].innerHTML = t3.__preset_select[e4].value;
|
|
35606
35611
|
t3.preset = this.value;
|
|
35607
|
-
}), 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) {
|
|
35608
35613
|
var a2 = document.getElementById("dg-local-explain"), l2 = document.getElementById("dg-local-storage");
|
|
35609
|
-
document.getElementById("dg-save-locally").style.display = "block", localStorage.getItem(
|
|
35610
|
-
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);
|
|
35611
35616
|
});
|
|
35612
35617
|
}
|
|
35613
35618
|
var u2 = document.getElementById("dg-new-constructor");
|
|
35614
|
-
|
|
35615
|
-
!t4.metaKey || t4.which !== 67 && t4.keyCode !== 67 ||
|
|
35616
|
-
}),
|
|
35617
|
-
u2.innerHTML = JSON.stringify(t3.getSaveObject(), void 0, 2),
|
|
35618
|
-
}),
|
|
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() {
|
|
35619
35624
|
t3.save();
|
|
35620
|
-
}),
|
|
35625
|
+
}), dC.bind(r3, "click", function() {
|
|
35621
35626
|
var e4 = prompt("Enter a new preset name.");
|
|
35622
35627
|
e4 && t3.saveAs(e4);
|
|
35623
|
-
}),
|
|
35628
|
+
}), dC.bind(o3, "click", function() {
|
|
35624
35629
|
t3.revert();
|
|
35625
35630
|
});
|
|
35626
35631
|
}
|
|
35627
|
-
function
|
|
35632
|
+
function XC(t3) {
|
|
35628
35633
|
var e3 = void 0;
|
|
35629
35634
|
function n2(n3) {
|
|
35630
35635
|
return n3.preventDefault(), t3.width += e3 - n3.clientX, t3.onResize(), e3 = n3.clientX, false;
|
|
35631
35636
|
}
|
|
35632
35637
|
function i2() {
|
|
35633
|
-
|
|
35638
|
+
dC.removeClass(t3.__closeButton, FC.CLASS_DRAG), dC.unbind(window, "mousemove", n2), dC.unbind(window, "mouseup", i2);
|
|
35634
35639
|
}
|
|
35635
35640
|
function r3(r4) {
|
|
35636
|
-
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;
|
|
35637
35642
|
}
|
|
35638
|
-
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);
|
|
35639
35644
|
}
|
|
35640
|
-
function
|
|
35645
|
+
function qC(t3, e3) {
|
|
35641
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");
|
|
35642
35647
|
}
|
|
35643
|
-
function
|
|
35648
|
+
function YC(t3, e3) {
|
|
35644
35649
|
var n2 = {};
|
|
35645
35650
|
return XP.each(t3.__rememberedObjects, function(i2, r3) {
|
|
35646
35651
|
var o3 = {}, s3 = t3.__rememberedObjectIndecesToControllers[r3];
|
|
@@ -35649,16 +35654,16 @@ void main(void){
|
|
|
35649
35654
|
}), n2[r3] = o3;
|
|
35650
35655
|
}), n2;
|
|
35651
35656
|
}
|
|
35652
|
-
|
|
35653
|
-
|
|
35654
|
-
t3.domElement.style.display =
|
|
35657
|
+
FC.toggleHide = function() {
|
|
35658
|
+
NC = !NC, XP.each(DC, function(t3) {
|
|
35659
|
+
t3.domElement.style.display = NC ? "none" : "";
|
|
35655
35660
|
});
|
|
35656
|
-
},
|
|
35657
|
-
document.activeElement.type === "text" || t3.which !== 72 && t3.keyCode !== 72 ||
|
|
35658
|
-
},
|
|
35659
|
-
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) });
|
|
35660
35665
|
}, addColor: function(t3, e3) {
|
|
35661
|
-
return
|
|
35666
|
+
return HC(this, t3, e3, { color: true });
|
|
35662
35667
|
}, remove: function(t3) {
|
|
35663
35668
|
this.__ul.removeChild(t3.__li), this.__controllers.splice(this.__controllers.indexOf(t3), 1);
|
|
35664
35669
|
var e3 = this;
|
|
@@ -35668,22 +35673,22 @@ void main(void){
|
|
|
35668
35673
|
}, destroy: function() {
|
|
35669
35674
|
if (this.parent)
|
|
35670
35675
|
throw new Error("Only the root GUI should be removed with .destroy(). For subfolders, use gui.removeFolder(folder) instead.");
|
|
35671
|
-
this.autoPlace &&
|
|
35676
|
+
this.autoPlace && LC.removeChild(this.domElement);
|
|
35672
35677
|
var t3 = this;
|
|
35673
35678
|
XP.each(this.__folders, function(e3) {
|
|
35674
35679
|
t3.removeFolder(e3);
|
|
35675
|
-
}),
|
|
35680
|
+
}), dC.unbind(window, "keydown", FC._keydownHandler, false), UC(this);
|
|
35676
35681
|
}, addFolder: function(t3) {
|
|
35677
35682
|
if (this.__folders[t3] !== void 0)
|
|
35678
35683
|
throw new Error('You already have a folder in this GUI by the name "' + t3 + '"');
|
|
35679
35684
|
var e3 = { name: t3, parent: this };
|
|
35680
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]);
|
|
35681
|
-
var n2 = new
|
|
35686
|
+
var n2 = new FC(e3);
|
|
35682
35687
|
this.__folders[t3] = n2;
|
|
35683
|
-
var i2 =
|
|
35684
|
-
return
|
|
35688
|
+
var i2 = BC(this, n2.domElement);
|
|
35689
|
+
return dC.addClass(i2, "folder"), n2;
|
|
35685
35690
|
}, removeFolder: function(t3) {
|
|
35686
|
-
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);
|
|
35687
35692
|
var e3 = this;
|
|
35688
35693
|
XP.each(t3.__folders, function(e4) {
|
|
35689
35694
|
t3.removeFolder(e4);
|
|
@@ -35701,10 +35706,10 @@ void main(void){
|
|
|
35701
35706
|
}, onResize: function() {
|
|
35702
35707
|
var t3 = this.getRoot();
|
|
35703
35708
|
if (t3.scrollable) {
|
|
35704
|
-
var e3 =
|
|
35709
|
+
var e3 = dC.getOffset(t3.__ul).top, n2 = 0;
|
|
35705
35710
|
XP.each(t3.__ul.childNodes, function(e4) {
|
|
35706
|
-
t3.autoPlace && e4 === t3.__save_row || (n2 +=
|
|
35707
|
-
}), 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");
|
|
35708
35713
|
}
|
|
35709
35714
|
t3.__resize_handle && XP.defer(function() {
|
|
35710
35715
|
t3.__resize_handle.style.height = t3.__ul.offsetHeight + "px";
|
|
@@ -35712,35 +35717,35 @@ void main(void){
|
|
|
35712
35717
|
}, onResizeDebounced: XP.debounce(function() {
|
|
35713
35718
|
this.onResize();
|
|
35714
35719
|
}, 50), remember: function() {
|
|
35715
|
-
if (XP.isUndefined(
|
|
35720
|
+
if (XP.isUndefined(IC) && ((IC = new PC()).domElement.innerHTML = MC), this.parent)
|
|
35716
35721
|
throw new Error("You can only call remember on a top level GUI.");
|
|
35717
35722
|
var t3 = this;
|
|
35718
35723
|
XP.each(Array.prototype.slice.call(arguments), function(e3) {
|
|
35719
|
-
t3.__rememberedObjects.length === 0 &&
|
|
35720
|
-
}), 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);
|
|
35721
35726
|
}, getRoot: function() {
|
|
35722
35727
|
for (var t3 = this; t3.parent; )
|
|
35723
35728
|
t3 = t3.parent;
|
|
35724
35729
|
return t3;
|
|
35725
35730
|
}, getSaveObject: function() {
|
|
35726
35731
|
var t3 = this.load;
|
|
35727
|
-
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) {
|
|
35728
35733
|
t3.folders[n2] = e3.getSaveObject();
|
|
35729
35734
|
}), t3;
|
|
35730
35735
|
}, save: function() {
|
|
35731
|
-
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();
|
|
35732
35737
|
}, saveAs: function(t3) {
|
|
35733
|
-
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();
|
|
35734
35739
|
}, revert: function(t3) {
|
|
35735
35740
|
XP.each(this.__controllers, function(e3) {
|
|
35736
|
-
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());
|
|
35737
35742
|
}, this), XP.each(this.__folders, function(t4) {
|
|
35738
35743
|
t4.revert(t4);
|
|
35739
|
-
}), t3 ||
|
|
35744
|
+
}), t3 || kC(this.getRoot(), false);
|
|
35740
35745
|
}, listen: function(t3) {
|
|
35741
35746
|
var e3 = this.__listening.length === 0;
|
|
35742
35747
|
this.__listening.push(t3), e3 && function t4(e4) {
|
|
35743
|
-
e4.length !== 0 &&
|
|
35748
|
+
e4.length !== 0 && RC.call(window, function() {
|
|
35744
35749
|
t4(e4);
|
|
35745
35750
|
});
|
|
35746
35751
|
XP.each(e4, function(t5) {
|
|
@@ -35754,7 +35759,7 @@ void main(void){
|
|
|
35754
35759
|
t3.updateDisplay();
|
|
35755
35760
|
});
|
|
35756
35761
|
} });
|
|
35757
|
-
var
|
|
35762
|
+
var ZC = FC, JC = function() {
|
|
35758
35763
|
function t3(t4) {
|
|
35759
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();
|
|
35760
35765
|
}
|
|
@@ -35764,7 +35769,7 @@ void main(void){
|
|
|
35764
35769
|
t4.player.view && (t4.controller.runTimeFps.setValue(t4.player.runtime.fps), t4.controller.runTimeResolution.setValue(t4.player.view.width + "*" + t4.player.view.height));
|
|
35765
35770
|
}, 500);
|
|
35766
35771
|
}, t3.prototype.createControllerGUI = function() {
|
|
35767
|
-
var t4, e3, n2, i2, r3, o3 = new
|
|
35772
|
+
var t4, e3, n2, i2, r3, o3 = new ZC({ autoPlace: true, closed: true });
|
|
35768
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;
|
|
35769
35774
|
}, t3.prototype.addEventListener = function() {
|
|
35770
35775
|
var t4, e3 = this;
|
|
@@ -35791,7 +35796,7 @@ void main(void){
|
|
|
35791
35796
|
} catch (t4) {
|
|
35792
35797
|
}
|
|
35793
35798
|
}, t3;
|
|
35794
|
-
}(), $
|
|
35799
|
+
}(), $C = function() {
|
|
35795
35800
|
function t3(t4) {
|
|
35796
35801
|
var e3 = this;
|
|
35797
35802
|
this.tasks = [], this.schedule = function() {
|
|
@@ -35804,7 +35809,7 @@ void main(void){
|
|
|
35804
35809
|
return t3.prototype.addTask = function(t4) {
|
|
35805
35810
|
this.tasks.push(t4);
|
|
35806
35811
|
}, t3;
|
|
35807
|
-
}(),
|
|
35812
|
+
}(), KC = function() {
|
|
35808
35813
|
function t3() {
|
|
35809
35814
|
this.autoUnlock = Object.create(null), this.locks = Object.create(null);
|
|
35810
35815
|
}
|
|
@@ -35818,7 +35823,7 @@ void main(void){
|
|
|
35818
35823
|
}, t3.prototype.isLocked = function(t4) {
|
|
35819
35824
|
return !!this.locks[t4];
|
|
35820
35825
|
}, t3;
|
|
35821
|
-
}(),
|
|
35826
|
+
}(), QC = function() {
|
|
35822
35827
|
var t3 = function(e3, n2) {
|
|
35823
35828
|
return (t3 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, e4) {
|
|
35824
35829
|
t4.__proto__ = e4;
|
|
@@ -35835,14 +35840,14 @@ void main(void){
|
|
|
35835
35840
|
}
|
|
35836
35841
|
t3(e3, n2), e3.prototype = n2 === null ? Object.create(n2) : (i2.prototype = n2.prototype, new i2());
|
|
35837
35842
|
};
|
|
35838
|
-
}(),
|
|
35839
|
-
return (
|
|
35843
|
+
}(), tI = function() {
|
|
35844
|
+
return (tI = Object.assign || function(t3) {
|
|
35840
35845
|
for (var e3, n2 = 1, i2 = arguments.length; n2 < i2; n2++)
|
|
35841
35846
|
for (var r3 in e3 = arguments[n2])
|
|
35842
35847
|
Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]);
|
|
35843
35848
|
return t3;
|
|
35844
35849
|
}).apply(this, arguments);
|
|
35845
|
-
},
|
|
35850
|
+
}, eI = function(t3, e3, n2, i2) {
|
|
35846
35851
|
return new (n2 || (n2 = Promise))(function(r3, o3) {
|
|
35847
35852
|
function s3(t4) {
|
|
35848
35853
|
try {
|
|
@@ -35866,7 +35871,7 @@ void main(void){
|
|
|
35866
35871
|
}
|
|
35867
35872
|
l2((i2 = i2.apply(t3, e3 || [])).next());
|
|
35868
35873
|
});
|
|
35869
|
-
},
|
|
35874
|
+
}, nI = function(t3, e3) {
|
|
35870
35875
|
var n2, i2, r3, o3, s3 = { label: 0, sent: function() {
|
|
35871
35876
|
if (1 & r3[0])
|
|
35872
35877
|
throw r3[1];
|
|
@@ -35931,20 +35936,20 @@ void main(void){
|
|
|
35931
35936
|
}
|
|
35932
35937
|
};
|
|
35933
35938
|
window.__slide_local_logger__ || (window.__slide_local_logger__ = o2.createInstance({ name: "_slide_local_log_", driver: o2.INDEXEDDB, version: 1 }));
|
|
35934
|
-
var
|
|
35939
|
+
var iI = window.__slide_local_logger__, rI = window.ResizeObserver || UP, oI = function(t3) {
|
|
35935
35940
|
return new Promise(function(e3) {
|
|
35936
35941
|
return setTimeout(e3, t3);
|
|
35937
35942
|
});
|
|
35938
35943
|
};
|
|
35939
|
-
function
|
|
35940
|
-
return
|
|
35944
|
+
function sI(t3, e3) {
|
|
35945
|
+
return eI(this, void 0, void 0, function() {
|
|
35941
35946
|
var n2;
|
|
35942
|
-
return
|
|
35947
|
+
return nI(this, function(i2) {
|
|
35943
35948
|
switch (i2.label) {
|
|
35944
35949
|
case 0:
|
|
35945
35950
|
n2 = Date.now(), i2.label = 1;
|
|
35946
35951
|
case 1:
|
|
35947
|
-
return !t3() && Date.now() - n2 < e3 ? [4,
|
|
35952
|
+
return !t3() && Date.now() - n2 < e3 ? [4, oI(50)] : [3, 3];
|
|
35948
35953
|
case 2:
|
|
35949
35954
|
return i2.sent(), [3, 1];
|
|
35950
35955
|
case 3:
|
|
@@ -35953,32 +35958,32 @@ void main(void){
|
|
|
35953
35958
|
});
|
|
35954
35959
|
});
|
|
35955
35960
|
}
|
|
35956
|
-
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 = "";
|
|
35957
35962
|
try {
|
|
35958
|
-
|
|
35963
|
+
uI = "0.1.55";
|
|
35959
35964
|
} catch (t3) {
|
|
35960
|
-
|
|
35965
|
+
uI = "dev";
|
|
35961
35966
|
}
|
|
35962
|
-
var
|
|
35967
|
+
var hI = function(t3) {
|
|
35963
35968
|
function e3(e4) {
|
|
35964
35969
|
var n2 = t3.call(this) || this;
|
|
35965
|
-
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() {
|
|
35966
35971
|
return n2.frameResizeHandler();
|
|
35967
35972
|
}), n2.timestamp = function() {
|
|
35968
35973
|
return Date.now();
|
|
35969
|
-
}, n2.mode = "local", n2.log = "", n2.logId = "", n2.lastEmitedState = null, n2.playerController = null, n2.lock = new
|
|
35970
|
-
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() {
|
|
35971
35976
|
var t4, e5;
|
|
35972
|
-
return
|
|
35977
|
+
return nI(this, function(n3) {
|
|
35973
35978
|
switch (n3.label) {
|
|
35974
35979
|
case 0:
|
|
35975
|
-
if (!
|
|
35980
|
+
if (!iI || !this.logId)
|
|
35976
35981
|
return [3, 5];
|
|
35977
35982
|
n3.label = 1;
|
|
35978
35983
|
case 1:
|
|
35979
|
-
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)];
|
|
35980
35985
|
case 2:
|
|
35981
|
-
return e5 = n3.sent() || "", [4,
|
|
35986
|
+
return e5 = n3.sent() || "", [4, iI.setItem(this.logId, e5 + t4)];
|
|
35982
35987
|
case 3:
|
|
35983
35988
|
return n3.sent(), this.log = "", [3, 5];
|
|
35984
35989
|
case 4:
|
|
@@ -35993,12 +35998,12 @@ void main(void){
|
|
|
35993
35998
|
}, n2.handleSlideStateLog = function() {
|
|
35994
35999
|
console.log(n2.logId), console.log(JSON.stringify(n2.slideState, null, 2));
|
|
35995
36000
|
}, n2.handleLogDownload = function() {
|
|
35996
|
-
return
|
|
36001
|
+
return eI(n2, void 0, void 0, function() {
|
|
35997
36002
|
var t4, e5, n3;
|
|
35998
|
-
return
|
|
36003
|
+
return nI(this, function(i2) {
|
|
35999
36004
|
switch (i2.label) {
|
|
36000
36005
|
case 0:
|
|
36001
|
-
return t4 = "",
|
|
36006
|
+
return t4 = "", iI ? (e5 = t4, [4, iI.getItem(this.logId)]) : [3, 2];
|
|
36002
36007
|
case 1:
|
|
36003
36008
|
t4 = e5 + (i2.sent() || ""), i2.label = 2;
|
|
36004
36009
|
case 2:
|
|
@@ -36007,9 +36012,9 @@ void main(void){
|
|
|
36007
36012
|
});
|
|
36008
36013
|
});
|
|
36009
36014
|
}, n2.receiveSyncHandler = function(t4) {
|
|
36010
|
-
return
|
|
36015
|
+
return eI(n2, void 0, void 0, function() {
|
|
36011
36016
|
var e5, n3, i2, r3, o3 = this;
|
|
36012
|
-
return
|
|
36017
|
+
return nI(this, function(s3) {
|
|
36013
36018
|
switch (s3.label) {
|
|
36014
36019
|
case 0:
|
|
36015
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() {
|
|
@@ -36033,9 +36038,9 @@ void main(void){
|
|
|
36033
36038
|
});
|
|
36034
36039
|
});
|
|
36035
36040
|
}, n2.handlePrevSlide = function() {
|
|
36036
|
-
return
|
|
36041
|
+
return eI(n2, void 0, void 0, function() {
|
|
36037
36042
|
var t4, e5 = this;
|
|
36038
|
-
return
|
|
36043
|
+
return nI(this, function(n3) {
|
|
36039
36044
|
return this.player ? (setTimeout(function() {
|
|
36040
36045
|
var t5;
|
|
36041
36046
|
(t5 = e5.player) === null || t5 === void 0 || t5.createSnapshotForNextSlide();
|
|
@@ -36043,9 +36048,9 @@ void main(void){
|
|
|
36043
36048
|
});
|
|
36044
36049
|
});
|
|
36045
36050
|
}, n2.handleNextSlide = function() {
|
|
36046
|
-
return
|
|
36051
|
+
return eI(n2, void 0, void 0, function() {
|
|
36047
36052
|
var t4, e5 = this;
|
|
36048
|
-
return
|
|
36053
|
+
return nI(this, function(n3) {
|
|
36049
36054
|
return this.player ? (setTimeout(function() {
|
|
36050
36055
|
var t5;
|
|
36051
36056
|
(t5 = e5.player) === null || t5 === void 0 || t5.createSnapshotForNextSlide();
|
|
@@ -36058,21 +36063,21 @@ void main(void){
|
|
|
36058
36063
|
n2.renderSlide(t4, e5);
|
|
36059
36064
|
} else
|
|
36060
36065
|
t4 === -1 && n2.renderSlide(n2.slideCount, true);
|
|
36061
|
-
}, 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) {
|
|
36062
36067
|
n2.lock.unlock(t4.type, t4.uuid), n2.syncQueue.addTask(t4);
|
|
36063
36068
|
}), n2.renderingTaskManager.eventHub.on("task-error", function(t4) {
|
|
36064
36069
|
var e5 = t4.error, i2 = t4.task;
|
|
36065
|
-
n2.emit(
|
|
36070
|
+
n2.emit(aI.renderError, { error: e5, index: i2.slideIndex });
|
|
36066
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;
|
|
36067
36072
|
}
|
|
36068
|
-
return
|
|
36073
|
+
return QC(e3, t3), e3.prototype.initPlayer = function(t4) {
|
|
36069
36074
|
var e4 = this, n2 = new KR(this.mode);
|
|
36070
36075
|
return n2.setInteractive(this.interactive), n2.updateConfig(t4.renderOptions || {}), n2.on($R.renderStart, function(t5) {
|
|
36071
|
-
e4.isLoading = true, e4.emit(
|
|
36076
|
+
e4.isLoading = true, e4.emit(aI.renderStart, t5);
|
|
36072
36077
|
}), n2.on($R.renderEnd, function(t5) {
|
|
36073
|
-
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);
|
|
36074
36079
|
}), n2.on($R.slideChange, function(t5) {
|
|
36075
|
-
e4.__slideState.currentSlideIndex = t5, e4.emit(
|
|
36080
|
+
e4.__slideState.currentSlideIndex = t5, e4.emit(aI.slideChange, t5);
|
|
36076
36081
|
}), n2.on($R.mainSeqStateChange, function(t5) {
|
|
36077
36082
|
e4.__slideState.mainSeqState = t5, e4.emitStateChange();
|
|
36078
36083
|
}), n2.on($R.mainSeqStepChange, function(t5) {
|
|
@@ -36081,16 +36086,16 @@ void main(void){
|
|
|
36081
36086
|
var n3 = t5.id, i2 = t5.state;
|
|
36082
36087
|
e4.__slideState.interactiveSeqState[n3] = i2, e4.emitStateChange();
|
|
36083
36088
|
}), n2.on($R.animateStart, function() {
|
|
36084
|
-
e4.isAnimating !== true && (e4.isAnimating = true, e4.emit(
|
|
36089
|
+
e4.isAnimating !== true && (e4.isAnimating = true, e4.emit(aI.animateStart));
|
|
36085
36090
|
}), n2.on($R.animateEnd, function() {
|
|
36086
|
-
e4.isAnimating !== false && (e4.isAnimating = false, e4.emit(
|
|
36091
|
+
e4.isAnimating !== false && (e4.isAnimating = false, e4.emit(aI.animateEnd));
|
|
36087
36092
|
}), n2.on($R.interactiveSeqAction, function(t5) {
|
|
36088
36093
|
var n3 = t5.action, i2 = t5.seqId;
|
|
36089
36094
|
e4.emitSyncDispatch({ slideIndex: e4.__slideState.currentSlideIndex, type: "interactiveAnim", action: n3, seqId: i2 }), e4.emitStateChange();
|
|
36090
36095
|
}), n2.on($R.mainSeqStepStart, function(t5) {
|
|
36091
|
-
e4.emit(
|
|
36096
|
+
e4.emit(aI.mainSeqStepStart, t5);
|
|
36092
36097
|
}), n2.on($R.mainSeqStepEnd, function(t5) {
|
|
36093
|
-
e4.emit(
|
|
36098
|
+
e4.emit(aI.mainSeqStepEnd, t5);
|
|
36094
36099
|
}), n2.on($R.mediaPlay, function(t5) {
|
|
36095
36100
|
var n3 = { type: "play", time: e4.timestamp() - 1e3 * t5.time };
|
|
36096
36101
|
e4.__slideState.mediaState[t5.id] = n3, e4.emitSyncDispatch({ slideIndex: e4.__slideState.currentSlideIndex, type: "mediaPlay", id: t5.id, state: n3 }), e4.emitStateChange();
|
|
@@ -36102,7 +36107,7 @@ void main(void){
|
|
|
36102
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();
|
|
36103
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;
|
|
36104
36109
|
}, e3.prototype.createController = function() {
|
|
36105
|
-
this.player && (this.playerController = new
|
|
36110
|
+
this.player && (this.playerController = new JC({ player: this.player, params: this.player.config || {}, target: this.frame }));
|
|
36106
36111
|
}, e3.prototype.setMedianControllerAttribute = function() {
|
|
36107
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";
|
|
36108
36113
|
}, e3.prototype.frameResizeHandler = function() {
|
|
@@ -36118,9 +36123,9 @@ void main(void){
|
|
|
36118
36123
|
}
|
|
36119
36124
|
}, e3.prototype.setSlideState = function(t4) {
|
|
36120
36125
|
var e4, n2, i2;
|
|
36121
|
-
return
|
|
36126
|
+
return eI(this, void 0, void 0, function() {
|
|
36122
36127
|
var r3, o3 = this;
|
|
36123
|
-
return
|
|
36128
|
+
return nI(this, function(s3) {
|
|
36124
36129
|
switch (s3.label) {
|
|
36125
36130
|
case 0:
|
|
36126
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];
|
|
@@ -36196,9 +36201,9 @@ void main(void){
|
|
|
36196
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);
|
|
36197
36202
|
}, e3.prototype._renderSlide = function(t4) {
|
|
36198
36203
|
var e4;
|
|
36199
|
-
return
|
|
36204
|
+
return eI(this, void 0, void 0, function() {
|
|
36200
36205
|
var n2 = this;
|
|
36201
|
-
return
|
|
36206
|
+
return nI(this, function(i2) {
|
|
36202
36207
|
switch (i2.label) {
|
|
36203
36208
|
case 0:
|
|
36204
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)]);
|
|
@@ -36259,12 +36264,12 @@ void main(void){
|
|
|
36259
36264
|
}, e3.prototype.emitStateChange = function() {
|
|
36260
36265
|
if (this.mode !== "local") {
|
|
36261
36266
|
var t4 = this.slideState;
|
|
36262
|
-
!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");
|
|
36263
36268
|
}
|
|
36264
36269
|
}, e3.prototype.emitSyncDispatch = function(t4) {
|
|
36265
36270
|
if (!this.lock.isLocked(t4.type)) {
|
|
36266
36271
|
var e4 = Math.random().toString(32).substr(2);
|
|
36267
|
-
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";
|
|
36268
36273
|
}
|
|
36269
36274
|
}, e3.prototype.setMainSeqStep = function(t4, e4) {
|
|
36270
36275
|
var n2;
|
|
@@ -36280,19 +36285,19 @@ void main(void){
|
|
|
36280
36285
|
(t4 = this.player) === null || t4 === void 0 || t4.resume();
|
|
36281
36286
|
}, e3.prototype.frozen = function() {
|
|
36282
36287
|
var t4;
|
|
36283
|
-
return
|
|
36288
|
+
return eI(this, void 0, void 0, function() {
|
|
36284
36289
|
var e4, n2, i2, r3 = this;
|
|
36285
|
-
return
|
|
36290
|
+
return nI(this, function(o3) {
|
|
36286
36291
|
switch (o3.label) {
|
|
36287
36292
|
case 0:
|
|
36288
|
-
return this.isFrowning ? [2,
|
|
36293
|
+
return this.isFrowning ? [2, sI(function() {
|
|
36289
36294
|
return !r3.isFrowning;
|
|
36290
36295
|
}, 6e4)] : this.view && this.player ? (this.isFrowning = true, [4, this.player.clock.waitUntil(function() {
|
|
36291
36296
|
return !r3.isLoading;
|
|
36292
36297
|
}, 6e4)]) : [3, 2];
|
|
36293
36298
|
case 1:
|
|
36294
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)
|
|
36295
|
-
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() });
|
|
36296
36301
|
this.isFrowning = false, o3.label = 2;
|
|
36297
36302
|
case 2:
|
|
36298
36303
|
return [2];
|
|
@@ -36301,16 +36306,16 @@ void main(void){
|
|
|
36301
36306
|
});
|
|
36302
36307
|
}, e3.prototype.release = function() {
|
|
36303
36308
|
var t4;
|
|
36304
|
-
return
|
|
36309
|
+
return eI(this, void 0, void 0, function() {
|
|
36305
36310
|
var e4, n2, i2, r3, o3 = this;
|
|
36306
|
-
return
|
|
36311
|
+
return nI(this, function(s3) {
|
|
36307
36312
|
switch (s3.label) {
|
|
36308
36313
|
case 0:
|
|
36309
36314
|
if (this.isReleasing)
|
|
36310
|
-
return [2,
|
|
36315
|
+
return [2, sI(function() {
|
|
36311
36316
|
return !o3.isReleasing;
|
|
36312
36317
|
}, 6e4)];
|
|
36313
|
-
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)
|
|
36314
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);
|
|
36315
36320
|
return [4, this.setSlideState(e4)];
|
|
36316
36321
|
case 1:
|
|
@@ -36327,7 +36332,7 @@ void main(void){
|
|
|
36327
36332
|
});
|
|
36328
36333
|
}, e3.prototype.destroy = function() {
|
|
36329
36334
|
var t4, e4, n2, i2;
|
|
36330
|
-
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() {
|
|
36331
36336
|
});
|
|
36332
36337
|
try {
|
|
36333
36338
|
((i2 = this.player) === null || i2 === void 0 ? void 0 : i2.view) && this.anchor.removeChild(this.player.view);
|
|
@@ -38251,7 +38256,7 @@ class SlidePreviewer {
|
|
|
38251
38256
|
return `${this.namespace}-${className}`;
|
|
38252
38257
|
}
|
|
38253
38258
|
}
|
|
38254
|
-
const version = "0.0.
|
|
38259
|
+
const version = "0.0.52";
|
|
38255
38260
|
const SlideApp = {
|
|
38256
38261
|
kind: "Slide",
|
|
38257
38262
|
setup(context) {
|