@prefecthq/graphs 1.0.6 → 1.0.7
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/graphs.mjs +1 -1
- package/dist/graphs.umd.js +10 -10
- package/dist/graphs.umd.js.map +1 -1
- package/dist/{index-9b903be3.mjs → index-0669fb1d.mjs} +818 -814
- package/dist/{index-9b903be3.mjs.map → index-0669fb1d.mjs.map} +1 -1
- package/dist/{viewport.es-87938ebd.mjs → viewport.es-a4ca92c6.mjs} +2 -2
- package/dist/{viewport.es-87938ebd.mjs.map → viewport.es-a4ca92c6.mjs.map} +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var yf = Object.defineProperty;
|
|
2
2
|
var bf = (r, e, t) => e in r ? yf(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var P = (r, e, t) => (bf(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
-
import { watch as Wt, ref as Zi, defineComponent as
|
|
5
|
-
var Gn = Math.PI * 2,
|
|
4
|
+
import { nextTick as xf, watch as Wt, ref as Zi, defineComponent as Tf, computed as ge, onMounted as Ef, onBeforeUnmount as Sf, openBlock as wf, createElementBlock as Rf } from "vue";
|
|
5
|
+
var Gn = Math.PI * 2, Pf = 180 / Math.PI, Cf = Math.PI / 180, Lt;
|
|
6
6
|
(function(r) {
|
|
7
7
|
r[r.POLY = 0] = "POLY", r[r.RECT = 1] = "RECT", r[r.CIRC = 2] = "CIRC", r[r.ELIP = 3] = "ELIP", r[r.RREC = 4] = "RREC";
|
|
8
8
|
})(Lt || (Lt = {}));
|
|
@@ -102,7 +102,7 @@ var ft = function() {
|
|
|
102
102
|
}, r.prototype.toString = function() {
|
|
103
103
|
return "[@pixi/math:Rectangle x=" + this.x + " y=" + this.y + " width=" + this.width + " height=" + this.height + "]";
|
|
104
104
|
}, r;
|
|
105
|
-
}(),
|
|
105
|
+
}(), Of = function() {
|
|
106
106
|
function r(e, t, i) {
|
|
107
107
|
e === void 0 && (e = 0), t === void 0 && (t = 0), i === void 0 && (i = 0), this.x = e, this.y = t, this.radius = i, this.type = Lt.CIRC;
|
|
108
108
|
}
|
|
@@ -118,7 +118,7 @@ var ft = function() {
|
|
|
118
118
|
}, r.prototype.toString = function() {
|
|
119
119
|
return "[@pixi/math:Circle x=" + this.x + " y=" + this.y + " radius=" + this.radius + "]";
|
|
120
120
|
}, r;
|
|
121
|
-
}(),
|
|
121
|
+
}(), Af = function() {
|
|
122
122
|
function r(e, t, i, n) {
|
|
123
123
|
e === void 0 && (e = 0), t === void 0 && (t = 0), i === void 0 && (i = 0), n === void 0 && (n = 0), this.x = e, this.y = t, this.width = i, this.height = n, this.type = Lt.ELIP;
|
|
124
124
|
}
|
|
@@ -160,7 +160,7 @@ var ft = function() {
|
|
|
160
160
|
return e + ", " + t;
|
|
161
161
|
}, "") + "]");
|
|
162
162
|
}, r;
|
|
163
|
-
}(),
|
|
163
|
+
}(), If = function() {
|
|
164
164
|
function r(e, t, i, n, s) {
|
|
165
165
|
e === void 0 && (e = 0), t === void 0 && (t = 0), i === void 0 && (i = 0), n === void 0 && (n = 0), s === void 0 && (s = 20), this.x = e, this.y = t, this.width = i, this.height = n, this.radius = s, this.type = Lt.RREC;
|
|
166
166
|
}
|
|
@@ -286,7 +286,7 @@ var ft = function() {
|
|
|
286
286
|
configurable: !0
|
|
287
287
|
}), r;
|
|
288
288
|
}(), wi = [1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1, 0, 1], Ri = [0, 1, 1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1], Pi = [0, -1, -1, -1, 0, 1, 1, 1, 0, 1, 1, 1, 0, -1, -1, -1], Ci = [1, 1, 0, -1, -1, -1, 0, 1, -1, -1, 0, 1, 1, 1, 0, -1], na = [], _u = [], sn = Math.sign;
|
|
289
|
-
function
|
|
289
|
+
function Nf() {
|
|
290
290
|
for (var r = 0; r < 16; r++) {
|
|
291
291
|
var e = [];
|
|
292
292
|
na.push(e);
|
|
@@ -302,7 +302,7 @@ function If() {
|
|
|
302
302
|
h.set(wi[r], Ri[r], Pi[r], Ci[r], 0, 0), _u.push(h);
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
|
-
|
|
305
|
+
Nf();
|
|
306
306
|
var _t = {
|
|
307
307
|
E: 0,
|
|
308
308
|
SE: 1,
|
|
@@ -384,7 +384,7 @@ var _t = {
|
|
|
384
384
|
}), r.IDENTITY = new r(), r;
|
|
385
385
|
}();
|
|
386
386
|
const gi = new $();
|
|
387
|
-
class
|
|
387
|
+
class Mf {
|
|
388
388
|
constructor(e = {}) {
|
|
389
389
|
this._recursive = typeof e.recursive == "boolean" ? e.recursive : !0, this._toggle = e.toggle || "visible", this._targetList = /* @__PURE__ */ new Set();
|
|
390
390
|
}
|
|
@@ -434,32 +434,32 @@ class Nf {
|
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
const {
|
|
437
|
-
abs:
|
|
438
|
-
atan2:
|
|
439
|
-
cos:
|
|
440
|
-
max:
|
|
437
|
+
abs: Nb,
|
|
438
|
+
atan2: Mb,
|
|
439
|
+
cos: Db,
|
|
440
|
+
max: Df,
|
|
441
441
|
min: Fo,
|
|
442
|
-
sin:
|
|
443
|
-
tan:
|
|
444
|
-
sqrt:
|
|
445
|
-
pow:
|
|
446
|
-
floor:
|
|
447
|
-
ceil:
|
|
448
|
-
random:
|
|
449
|
-
round:
|
|
442
|
+
sin: Fb,
|
|
443
|
+
tan: Bb,
|
|
444
|
+
sqrt: Lb,
|
|
445
|
+
pow: Gb,
|
|
446
|
+
floor: Ub,
|
|
447
|
+
ceil: kb,
|
|
448
|
+
random: Xb,
|
|
449
|
+
round: Ff
|
|
450
450
|
} = Math;
|
|
451
|
-
function
|
|
451
|
+
function Bf(r) {
|
|
452
452
|
return r.toLocaleTimeString();
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function Lf(r) {
|
|
455
455
|
const e = navigator.language;
|
|
456
456
|
return new Intl.DateTimeFormat(e, { timeStyle: "short" }).format(r);
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function Gf(r) {
|
|
459
459
|
const e = navigator.language;
|
|
460
460
|
return new Intl.DateTimeFormat(e, { dateStyle: "short" }).format(r);
|
|
461
461
|
}
|
|
462
|
-
function
|
|
462
|
+
function Uf(r, e) {
|
|
463
463
|
let t, i;
|
|
464
464
|
r.forEach((s) => {
|
|
465
465
|
(t === void 0 || t > s.start || isNaN(s.start.getDate())) && (t = s.start), s.end !== null && (i === void 0 || i < s.end || isNaN(s.end.getDate())) && (i = s.end);
|
|
@@ -471,10 +471,10 @@ function Gf(r, e) {
|
|
|
471
471
|
span: e && n < e ? e : n
|
|
472
472
|
};
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function kf(r) {
|
|
475
475
|
return new Date(r.getFullYear(), r.getMonth(), r.getDate());
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function Xf(r) {
|
|
478
478
|
return new Date(
|
|
479
479
|
r.getFullYear(),
|
|
480
480
|
r.getMonth(),
|
|
@@ -579,7 +579,7 @@ const q = {
|
|
|
579
579
|
labelFormat: Nt.date
|
|
580
580
|
}
|
|
581
581
|
];
|
|
582
|
-
function
|
|
582
|
+
function Hf(r) {
|
|
583
583
|
return {
|
|
584
584
|
colorTextDefault: te((r == null ? void 0 : r.colorTextDefault) ?? "#374151"),
|
|
585
585
|
colorTextInverse: te((r == null ? void 0 : r.colorTextInverse) ?? "#f8fafc"),
|
|
@@ -622,22 +622,22 @@ function te(r) {
|
|
|
622
622
|
const e = r.trim();
|
|
623
623
|
if (e.startsWith("rgb")) {
|
|
624
624
|
const [t, i, n] = e.replace(/[^\d,]/g, "").split(",").map((s) => parseInt(s, 10));
|
|
625
|
-
return
|
|
625
|
+
return Wf([t, i, n]);
|
|
626
626
|
}
|
|
627
627
|
if (e.startsWith("hsl")) {
|
|
628
628
|
const [t, i, n] = e.replace(/[^\d,.%]/g, "").split(",").map((a) => parseInt(a, 10));
|
|
629
|
-
return Lo(
|
|
629
|
+
return Lo(Vf(t, i, n));
|
|
630
630
|
}
|
|
631
631
|
return Lo(e);
|
|
632
632
|
}
|
|
633
|
-
function
|
|
633
|
+
function Wf(r) {
|
|
634
634
|
return parseInt((1 << 24 | r[0] << 16 | r[1] << 8 | r[2]).toString(16).slice(1), 16);
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function Vf(r, e, t) {
|
|
637
637
|
t /= 100;
|
|
638
638
|
const i = e * Fo(t, 1 - t) / 100, n = (s) => {
|
|
639
|
-
const a = (s + r / 30) % 12, o = t - i *
|
|
640
|
-
return
|
|
639
|
+
const a = (s + r / 30) % 12, o = t - i * Df(Fo(a - 3, 9 - a, 1), -1);
|
|
640
|
+
return Ff(255 * o).toString(16).padStart(2, "0");
|
|
641
641
|
};
|
|
642
642
|
return `#${n(0)}${n(8)}${n(4)}`;
|
|
643
643
|
}
|
|
@@ -649,7 +649,7 @@ function Lo(r) {
|
|
|
649
649
|
return parseInt(r, 16);
|
|
650
650
|
}
|
|
651
651
|
function bt(r) {
|
|
652
|
-
return typeof r != "string" ? (Go(r), 0) : r.endsWith("em") || r.endsWith("rem") ?
|
|
652
|
+
return typeof r != "string" ? (Go(r), 0) : r.endsWith("em") || r.endsWith("rem") ? zf(r) : r.endsWith("px") ? parseFloat(r) : (Go(r), 0);
|
|
653
653
|
}
|
|
654
654
|
function Go(r) {
|
|
655
655
|
console.error(`
|
|
@@ -658,18 +658,18 @@ function Go(r) {
|
|
|
658
658
|
Defaulting to zero.
|
|
659
659
|
`);
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function zf(r) {
|
|
662
662
|
const e = getComputedStyle(document.documentElement).fontSize;
|
|
663
663
|
return parseFloat(r) * parseFloat(e);
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function Yf(r) {
|
|
666
666
|
return !!r.start && !!r.end;
|
|
667
667
|
}
|
|
668
|
-
const
|
|
669
|
-
timeBySeconds:
|
|
670
|
-
timeByMinutes:
|
|
671
|
-
date:
|
|
672
|
-
},
|
|
668
|
+
const jf = {
|
|
669
|
+
timeBySeconds: Bf,
|
|
670
|
+
timeByMinutes: Lf,
|
|
671
|
+
date: Gf
|
|
672
|
+
}, Zf = () => ({
|
|
673
673
|
fill: "black",
|
|
674
674
|
inverseTextOnFill: !0,
|
|
675
675
|
onFillSubNodeToggleHoverBg: "black",
|
|
@@ -774,8 +774,8 @@ var ps = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
774
774
|
}, r.exports = o;
|
|
775
775
|
})();
|
|
776
776
|
})(mu);
|
|
777
|
-
const
|
|
778
|
-
function
|
|
777
|
+
const Kf = mu.exports;
|
|
778
|
+
function qf(r) {
|
|
779
779
|
var e = this.constructor;
|
|
780
780
|
return this.then(
|
|
781
781
|
function(t) {
|
|
@@ -790,7 +790,7 @@ function Kf(r) {
|
|
|
790
790
|
}
|
|
791
791
|
);
|
|
792
792
|
}
|
|
793
|
-
function
|
|
793
|
+
function $f(r) {
|
|
794
794
|
var e = this;
|
|
795
795
|
return new e(function(t, i) {
|
|
796
796
|
if (!(r && typeof r.length < "u"))
|
|
@@ -825,13 +825,13 @@ function qf(r) {
|
|
|
825
825
|
a(o, n[o]);
|
|
826
826
|
});
|
|
827
827
|
}
|
|
828
|
-
var
|
|
828
|
+
var Jf = setTimeout;
|
|
829
829
|
function yu(r) {
|
|
830
830
|
return Boolean(r && typeof r.length < "u");
|
|
831
831
|
}
|
|
832
|
-
function
|
|
832
|
+
function Qf() {
|
|
833
833
|
}
|
|
834
|
-
function
|
|
834
|
+
function tc(r, e) {
|
|
835
835
|
return function() {
|
|
836
836
|
r.apply(e, arguments);
|
|
837
837
|
};
|
|
@@ -876,7 +876,7 @@ function sa(r, e) {
|
|
|
876
876
|
r._state = 3, r._value = e, aa(r);
|
|
877
877
|
return;
|
|
878
878
|
} else if (typeof t == "function") {
|
|
879
|
-
xu(
|
|
879
|
+
xu(tc(t, e), r);
|
|
880
880
|
return;
|
|
881
881
|
}
|
|
882
882
|
}
|
|
@@ -896,7 +896,7 @@ function aa(r) {
|
|
|
896
896
|
bu(r, r._deferreds[e]);
|
|
897
897
|
r._deferreds = null;
|
|
898
898
|
}
|
|
899
|
-
function
|
|
899
|
+
function ec(r, e, t) {
|
|
900
900
|
this.onFulfilled = typeof r == "function" ? r : null, this.onRejected = typeof e == "function" ? e : null, this.promise = t;
|
|
901
901
|
}
|
|
902
902
|
function xu(r, e) {
|
|
@@ -920,10 +920,10 @@ wt.prototype.catch = function(r) {
|
|
|
920
920
|
return this.then(null, r);
|
|
921
921
|
};
|
|
922
922
|
wt.prototype.then = function(r, e) {
|
|
923
|
-
var t = new this.constructor(
|
|
924
|
-
return bu(this, new
|
|
923
|
+
var t = new this.constructor(Qf);
|
|
924
|
+
return bu(this, new ec(r, e, t)), t;
|
|
925
925
|
};
|
|
926
|
-
wt.prototype.finally =
|
|
926
|
+
wt.prototype.finally = qf;
|
|
927
927
|
wt.all = function(r) {
|
|
928
928
|
return new wt(function(e, t) {
|
|
929
929
|
if (!yu(r))
|
|
@@ -956,7 +956,7 @@ wt.all = function(r) {
|
|
|
956
956
|
s(a, i[a]);
|
|
957
957
|
});
|
|
958
958
|
};
|
|
959
|
-
wt.allSettled =
|
|
959
|
+
wt.allSettled = $f;
|
|
960
960
|
wt.resolve = function(r) {
|
|
961
961
|
return r && typeof r == "object" && r.constructor === wt ? r : new wt(function(e) {
|
|
962
962
|
e(r);
|
|
@@ -978,18 +978,18 @@ wt.race = function(r) {
|
|
|
978
978
|
wt._immediateFn = typeof setImmediate == "function" && function(r) {
|
|
979
979
|
setImmediate(r);
|
|
980
980
|
} || function(r) {
|
|
981
|
-
|
|
981
|
+
Jf(r, 0);
|
|
982
982
|
};
|
|
983
983
|
wt._unhandledRejectionFn = function(e) {
|
|
984
984
|
typeof console < "u" && console && console.warn("Possible Unhandled Promise Rejection:", e);
|
|
985
985
|
};
|
|
986
|
-
var Uo = Object.getOwnPropertySymbols,
|
|
987
|
-
function
|
|
986
|
+
var Uo = Object.getOwnPropertySymbols, ic = Object.prototype.hasOwnProperty, rc = Object.prototype.propertyIsEnumerable;
|
|
987
|
+
function nc(r) {
|
|
988
988
|
if (r == null)
|
|
989
989
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
990
990
|
return Object(r);
|
|
991
991
|
}
|
|
992
|
-
function
|
|
992
|
+
function sc() {
|
|
993
993
|
try {
|
|
994
994
|
if (!Object.assign)
|
|
995
995
|
return !1;
|
|
@@ -1011,30 +1011,30 @@ function nc() {
|
|
|
1011
1011
|
return !1;
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
1014
|
-
var
|
|
1015
|
-
for (var t, i =
|
|
1014
|
+
var ac = sc() ? Object.assign : function(r, e) {
|
|
1015
|
+
for (var t, i = nc(r), n, s = 1; s < arguments.length; s++) {
|
|
1016
1016
|
t = Object(arguments[s]);
|
|
1017
1017
|
for (var a in t)
|
|
1018
|
-
|
|
1018
|
+
ic.call(t, a) && (i[a] = t[a]);
|
|
1019
1019
|
if (Uo) {
|
|
1020
1020
|
n = Uo(t);
|
|
1021
1021
|
for (var o = 0; o < n.length; o++)
|
|
1022
|
-
|
|
1022
|
+
rc.call(t, n[o]) && (i[n[o]] = t[n[o]]);
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
1025
|
return i;
|
|
1026
1026
|
};
|
|
1027
1027
|
typeof globalThis > "u" && (typeof self < "u" ? self.globalThis = self : typeof global < "u" && (global.globalThis = global));
|
|
1028
1028
|
globalThis.Promise || (globalThis.Promise = wt);
|
|
1029
|
-
Object.assign || (Object.assign =
|
|
1030
|
-
var
|
|
1029
|
+
Object.assign || (Object.assign = ac);
|
|
1030
|
+
var oc = 16;
|
|
1031
1031
|
Date.now && Date.prototype.getTime || (Date.now = function() {
|
|
1032
1032
|
return new Date().getTime();
|
|
1033
1033
|
});
|
|
1034
1034
|
if (!(globalThis.performance && globalThis.performance.now)) {
|
|
1035
|
-
var
|
|
1035
|
+
var hc = Date.now();
|
|
1036
1036
|
globalThis.performance || (globalThis.performance = {}), globalThis.performance.now = function() {
|
|
1037
|
-
return Date.now() -
|
|
1037
|
+
return Date.now() - hc;
|
|
1038
1038
|
};
|
|
1039
1039
|
}
|
|
1040
1040
|
var vs = Date.now(), ko = ["ms", "moz", "webkit", "o"];
|
|
@@ -1045,7 +1045,7 @@ for (var _s = 0; _s < ko.length && !globalThis.requestAnimationFrame; ++_s) {
|
|
|
1045
1045
|
globalThis.requestAnimationFrame || (globalThis.requestAnimationFrame = function(r) {
|
|
1046
1046
|
if (typeof r != "function")
|
|
1047
1047
|
throw new TypeError(r + "is not a function");
|
|
1048
|
-
var e = Date.now(), t =
|
|
1048
|
+
var e = Date.now(), t = oc + vs - e;
|
|
1049
1049
|
return t < 0 && (t = 0), vs = e, globalThis.self.setTimeout(function() {
|
|
1050
1050
|
vs = Date.now(), r(performance.now());
|
|
1051
1051
|
}, t);
|
|
@@ -1145,7 +1145,7 @@ var Ue;
|
|
|
1145
1145
|
(function(r) {
|
|
1146
1146
|
r[r.ELEMENT_ARRAY_BUFFER = 34963] = "ELEMENT_ARRAY_BUFFER", r[r.ARRAY_BUFFER = 34962] = "ARRAY_BUFFER", r[r.UNIFORM_BUFFER = 35345] = "UNIFORM_BUFFER";
|
|
1147
1147
|
})(Ue || (Ue = {}));
|
|
1148
|
-
var
|
|
1148
|
+
var uc = {
|
|
1149
1149
|
createCanvas: function(r, e) {
|
|
1150
1150
|
var t = document.createElement("canvas");
|
|
1151
1151
|
return t.width = r, t.height = e, t;
|
|
@@ -1166,12 +1166,12 @@ var hc = {
|
|
|
1166
1166
|
}, ms = /iPhone/i, Ho = /iPod/i, Wo = /iPad/i, Vo = /\biOS-universal(?:.+)Mac\b/i, ys = /\bAndroid(?:.+)Mobile\b/i, zo = /Android/i, Vi = /(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i, an = /Silk/i, Ve = /Windows Phone/i, Yo = /\bWindows(?:.+)ARM\b/i, jo = /BlackBerry/i, Zo = /BB10/i, Ko = /Opera Mini/i, qo = /\b(CriOS|Chrome)(?:.+)Mobile/i, $o = /Mobile(?:.+)Firefox\b/i, Jo = function(r) {
|
|
1167
1167
|
return typeof r < "u" && r.platform === "MacIntel" && typeof r.maxTouchPoints == "number" && r.maxTouchPoints > 1 && typeof MSStream > "u";
|
|
1168
1168
|
};
|
|
1169
|
-
function
|
|
1169
|
+
function lc(r) {
|
|
1170
1170
|
return function(e) {
|
|
1171
1171
|
return e.test(r);
|
|
1172
1172
|
};
|
|
1173
1173
|
}
|
|
1174
|
-
function
|
|
1174
|
+
function fc(r) {
|
|
1175
1175
|
var e = {
|
|
1176
1176
|
userAgent: "",
|
|
1177
1177
|
platform: "",
|
|
@@ -1188,7 +1188,7 @@ function lc(r) {
|
|
|
1188
1188
|
});
|
|
1189
1189
|
var t = e.userAgent, i = t.split("[FBAN");
|
|
1190
1190
|
typeof i[1] < "u" && (t = i[0]), i = t.split("Twitter"), typeof i[1] < "u" && (t = i[0]);
|
|
1191
|
-
var n =
|
|
1191
|
+
var n = lc(t), s = {
|
|
1192
1192
|
apple: {
|
|
1193
1193
|
phone: n(ms) && !n(Ve),
|
|
1194
1194
|
ipod: n(Ho),
|
|
@@ -1225,11 +1225,11 @@ function lc(r) {
|
|
|
1225
1225
|
};
|
|
1226
1226
|
return s.any = s.apple.device || s.android.device || s.windows.device || s.other.device, s.phone = s.apple.phone || s.android.phone || s.windows.phone, s.tablet = s.apple.tablet || s.android.tablet || s.windows.tablet, s;
|
|
1227
1227
|
}
|
|
1228
|
-
var Le =
|
|
1229
|
-
function
|
|
1228
|
+
var Le = fc(globalThis.navigator);
|
|
1229
|
+
function cc() {
|
|
1230
1230
|
return !Le.apple.device;
|
|
1231
1231
|
}
|
|
1232
|
-
function
|
|
1232
|
+
function dc(r) {
|
|
1233
1233
|
var e = !0;
|
|
1234
1234
|
if (Le.tablet || Le.phone) {
|
|
1235
1235
|
if (Le.apple.device) {
|
|
@@ -1250,13 +1250,13 @@ function cc(r) {
|
|
|
1250
1250
|
return e ? r : 4;
|
|
1251
1251
|
}
|
|
1252
1252
|
var G = {
|
|
1253
|
-
ADAPTER:
|
|
1253
|
+
ADAPTER: uc,
|
|
1254
1254
|
MIPMAP_TEXTURES: Ae.POW2,
|
|
1255
1255
|
ANISOTROPIC_LEVEL: 0,
|
|
1256
1256
|
RESOLUTION: 1,
|
|
1257
1257
|
FILTER_RESOLUTION: 1,
|
|
1258
1258
|
FILTER_MULTISAMPLE: Tt.NONE,
|
|
1259
|
-
SPRITE_MAX_TEXTURES:
|
|
1259
|
+
SPRITE_MAX_TEXTURES: dc(32),
|
|
1260
1260
|
SPRITE_BATCH_SIZE: 4096,
|
|
1261
1261
|
RENDER_OPTIONS: {
|
|
1262
1262
|
view: null,
|
|
@@ -1278,7 +1278,7 @@ var G = {
|
|
|
1278
1278
|
SCALE_MODE: Be.LINEAR,
|
|
1279
1279
|
PRECISION_VERTEX: se.HIGH,
|
|
1280
1280
|
PRECISION_FRAGMENT: Le.apple.device ? se.HIGH : se.MEDIUM,
|
|
1281
|
-
CAN_UPLOAD_SAME_BUFFER:
|
|
1281
|
+
CAN_UPLOAD_SAME_BUFFER: cc(),
|
|
1282
1282
|
CREATE_IMAGE_BITMAP: !1,
|
|
1283
1283
|
ROUND_PIXELS: !1
|
|
1284
1284
|
}, Tu = { exports: {} };
|
|
@@ -1402,7 +1402,7 @@ function ss(r, e, t) {
|
|
|
1402
1402
|
if (!s || s.next === s.prev)
|
|
1403
1403
|
return a;
|
|
1404
1404
|
var o, h, u, l, f, c, d;
|
|
1405
|
-
if (i && (s =
|
|
1405
|
+
if (i && (s = mc(r, e, s, t)), r.length > 80 * t) {
|
|
1406
1406
|
o = u = r[0], h = l = r[1];
|
|
1407
1407
|
for (var v = t; v < n; v += t)
|
|
1408
1408
|
f = r[v], c = r[v + 1], f < o && (o = f), c < h && (h = c), f > u && (u = f), c > l && (l = c);
|
|
@@ -1437,20 +1437,20 @@ function Li(r, e) {
|
|
|
1437
1437
|
}
|
|
1438
1438
|
function Fr(r, e, t, i, n, s, a) {
|
|
1439
1439
|
if (r) {
|
|
1440
|
-
!a && s &&
|
|
1440
|
+
!a && s && Ec(r, i, n, s);
|
|
1441
1441
|
for (var o = r, h, u; r.prev !== r.next; ) {
|
|
1442
|
-
if (h = r.prev, u = r.next, s ?
|
|
1442
|
+
if (h = r.prev, u = r.next, s ? vc(r, i, n, s) : pc(r)) {
|
|
1443
1443
|
e.push(h.i / t | 0), e.push(r.i / t | 0), e.push(u.i / t | 0), Lr(r), r = u.next, o = u.next;
|
|
1444
1444
|
continue;
|
|
1445
1445
|
}
|
|
1446
1446
|
if (r = u, r === o) {
|
|
1447
|
-
a ? a === 1 ? (r =
|
|
1447
|
+
a ? a === 1 ? (r = _c(Li(r), e, t), Fr(r, e, t, i, n, s, 2)) : a === 2 && gc(r, e, t, i, n, s) : Fr(Li(r), e, t, i, n, s, 1);
|
|
1448
1448
|
break;
|
|
1449
1449
|
}
|
|
1450
1450
|
}
|
|
1451
1451
|
}
|
|
1452
1452
|
}
|
|
1453
|
-
function
|
|
1453
|
+
function pc(r) {
|
|
1454
1454
|
var e = r.prev, t = r, i = r.next;
|
|
1455
1455
|
if (mt(e, t, i) >= 0)
|
|
1456
1456
|
return !1;
|
|
@@ -1461,7 +1461,7 @@ function dc(r) {
|
|
|
1461
1461
|
}
|
|
1462
1462
|
return !0;
|
|
1463
1463
|
}
|
|
1464
|
-
function
|
|
1464
|
+
function vc(r, e, t, i) {
|
|
1465
1465
|
var n = r.prev, s = r, a = r.next;
|
|
1466
1466
|
if (mt(n, s, a) >= 0)
|
|
1467
1467
|
return !1;
|
|
@@ -1482,7 +1482,7 @@ function pc(r, e, t, i) {
|
|
|
1482
1482
|
}
|
|
1483
1483
|
return !0;
|
|
1484
1484
|
}
|
|
1485
|
-
function
|
|
1485
|
+
function _c(r, e, t) {
|
|
1486
1486
|
var i = r;
|
|
1487
1487
|
do {
|
|
1488
1488
|
var n = i.prev, s = i.next.next;
|
|
@@ -1490,11 +1490,11 @@ function vc(r, e, t) {
|
|
|
1490
1490
|
} while (i !== r);
|
|
1491
1491
|
return Li(i);
|
|
1492
1492
|
}
|
|
1493
|
-
function
|
|
1493
|
+
function gc(r, e, t, i, n, s) {
|
|
1494
1494
|
var a = r;
|
|
1495
1495
|
do {
|
|
1496
1496
|
for (var o = a.next.next; o !== a.prev; ) {
|
|
1497
|
-
if (a.i !== o.i &&
|
|
1497
|
+
if (a.i !== o.i && Rc(a, o)) {
|
|
1498
1498
|
var h = wu(a, o);
|
|
1499
1499
|
a = Li(a, a.next), h = Li(h, h.next), Fr(a, e, t, i, n, s, 0), Fr(h, e, t, i, n, s, 0);
|
|
1500
1500
|
return;
|
|
@@ -1504,25 +1504,25 @@ function _c(r, e, t, i, n, s) {
|
|
|
1504
1504
|
a = a.next;
|
|
1505
1505
|
} while (a !== r);
|
|
1506
1506
|
}
|
|
1507
|
-
function
|
|
1507
|
+
function mc(r, e, t, i) {
|
|
1508
1508
|
var n = [], s, a, o, h, u;
|
|
1509
1509
|
for (s = 0, a = e.length; s < a; s++)
|
|
1510
|
-
o = e[s] * i, h = s < a - 1 ? e[s + 1] * i : r.length, u = Eu(r, o, h, i, !1), u === u.next && (u.steiner = !0), n.push(
|
|
1511
|
-
for (n.sort(
|
|
1512
|
-
t =
|
|
1510
|
+
o = e[s] * i, h = s < a - 1 ? e[s + 1] * i : r.length, u = Eu(r, o, h, i, !1), u === u.next && (u.steiner = !0), n.push(wc(u));
|
|
1511
|
+
for (n.sort(yc), s = 0; s < n.length; s++)
|
|
1512
|
+
t = bc(n[s], t);
|
|
1513
1513
|
return t;
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1515
|
+
function yc(r, e) {
|
|
1516
1516
|
return r.x - e.x;
|
|
1517
1517
|
}
|
|
1518
|
-
function
|
|
1519
|
-
var t =
|
|
1518
|
+
function bc(r, e) {
|
|
1519
|
+
var t = xc(r, e);
|
|
1520
1520
|
if (!t)
|
|
1521
1521
|
return e;
|
|
1522
1522
|
var i = wu(t, r);
|
|
1523
1523
|
return Li(i, i.next), Li(t, t.next);
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1525
|
+
function xc(r, e) {
|
|
1526
1526
|
var t = e, i = r.x, n = r.y, s = -1 / 0, a;
|
|
1527
1527
|
do {
|
|
1528
1528
|
if (n <= t.y && n >= t.next.y && t.next.y !== t.y) {
|
|
@@ -1537,21 +1537,21 @@ function bc(r, e) {
|
|
|
1537
1537
|
var h = a, u = a.x, l = a.y, f = 1 / 0, c;
|
|
1538
1538
|
t = a;
|
|
1539
1539
|
do
|
|
1540
|
-
i >= t.x && t.x >= u && i !== t.x && qi(n < l ? i : s, n, u, l, n < l ? s : i, n, t.x, t.y) && (c = Math.abs(n - t.y) / (i - t.x), Br(t, r) && (c < f || c === f && (t.x > a.x || t.x === a.x &&
|
|
1540
|
+
i >= t.x && t.x >= u && i !== t.x && qi(n < l ? i : s, n, u, l, n < l ? s : i, n, t.x, t.y) && (c = Math.abs(n - t.y) / (i - t.x), Br(t, r) && (c < f || c === f && (t.x > a.x || t.x === a.x && Tc(a, t))) && (a = t, f = c)), t = t.next;
|
|
1541
1541
|
while (t !== h);
|
|
1542
1542
|
return a;
|
|
1543
1543
|
}
|
|
1544
|
-
function
|
|
1544
|
+
function Tc(r, e) {
|
|
1545
1545
|
return mt(r.prev, r, e.prev) < 0 && mt(e.next, r, r.next) < 0;
|
|
1546
1546
|
}
|
|
1547
|
-
function
|
|
1547
|
+
function Ec(r, e, t, i) {
|
|
1548
1548
|
var n = r;
|
|
1549
1549
|
do
|
|
1550
1550
|
n.z === 0 && (n.z = oa(n.x, n.y, e, t, i)), n.prevZ = n.prev, n.nextZ = n.next, n = n.next;
|
|
1551
1551
|
while (n !== r);
|
|
1552
|
-
n.prevZ.nextZ = null, n.prevZ = null,
|
|
1552
|
+
n.prevZ.nextZ = null, n.prevZ = null, Sc(n);
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1554
|
+
function Sc(r) {
|
|
1555
1555
|
var e, t, i, n, s, a, o, h, u = 1;
|
|
1556
1556
|
do {
|
|
1557
1557
|
for (t = r, r = null, s = null, a = 0; t; ) {
|
|
@@ -1568,7 +1568,7 @@ function Ec(r) {
|
|
|
1568
1568
|
function oa(r, e, t, i, n) {
|
|
1569
1569
|
return r = (r - t) * n | 0, e = (e - i) * n | 0, r = (r | r << 8) & 16711935, r = (r | r << 4) & 252645135, r = (r | r << 2) & 858993459, r = (r | r << 1) & 1431655765, e = (e | e << 8) & 16711935, e = (e | e << 4) & 252645135, e = (e | e << 2) & 858993459, e = (e | e << 1) & 1431655765, r | e << 1;
|
|
1570
1570
|
}
|
|
1571
|
-
function
|
|
1571
|
+
function wc(r) {
|
|
1572
1572
|
var e = r, t = r;
|
|
1573
1573
|
do
|
|
1574
1574
|
(e.x < t.x || e.x === t.x && e.y < t.y) && (t = e), e = e.next;
|
|
@@ -1578,8 +1578,8 @@ function Sc(r) {
|
|
|
1578
1578
|
function qi(r, e, t, i, n, s, a, o) {
|
|
1579
1579
|
return (n - a) * (e - o) >= (r - a) * (s - o) && (r - a) * (i - o) >= (t - a) * (e - o) && (t - a) * (s - o) >= (n - a) * (i - o);
|
|
1580
1580
|
}
|
|
1581
|
-
function
|
|
1582
|
-
return r.next.i !== e.i && r.prev.i !== e.i && !
|
|
1581
|
+
function Rc(r, e) {
|
|
1582
|
+
return r.next.i !== e.i && r.prev.i !== e.i && !Pc(r, e) && (Br(r, e) && Br(e, r) && Cc(r, e) && (mt(r.prev, r, e.prev) || mt(r, e.prev, e)) || as(r, e) && mt(r.prev, r, r.next) > 0 && mt(e.prev, e, e.next) > 0);
|
|
1583
1583
|
}
|
|
1584
1584
|
function mt(r, e, t) {
|
|
1585
1585
|
return (e.y - r.y) * (t.x - e.x) - (e.x - r.x) * (t.y - e.y);
|
|
@@ -1597,7 +1597,7 @@ function on(r, e, t) {
|
|
|
1597
1597
|
function hn(r) {
|
|
1598
1598
|
return r > 0 ? 1 : r < 0 ? -1 : 0;
|
|
1599
1599
|
}
|
|
1600
|
-
function
|
|
1600
|
+
function Pc(r, e) {
|
|
1601
1601
|
var t = r;
|
|
1602
1602
|
do {
|
|
1603
1603
|
if (t.i !== r.i && t.next.i !== r.i && t.i !== e.i && t.next.i !== e.i && Su(t, t.next, r, e))
|
|
@@ -1609,7 +1609,7 @@ function Rc(r, e) {
|
|
|
1609
1609
|
function Br(r, e) {
|
|
1610
1610
|
return mt(r.prev, r, r.next) < 0 ? mt(r, e, r.next) >= 0 && mt(r, r.prev, e) >= 0 : mt(r, e, r.prev) < 0 || mt(r, r.next, e) < 0;
|
|
1611
1611
|
}
|
|
1612
|
-
function
|
|
1612
|
+
function Cc(r, e) {
|
|
1613
1613
|
var t = r, i = !1, n = (r.x + e.x) / 2, s = (r.y + e.y) / 2;
|
|
1614
1614
|
do
|
|
1615
1615
|
t.y > s != t.next.y > s && t.next.y !== t.y && n < (t.next.x - t.x) * (s - t.y) / (t.next.y - t.y) + t.x && (i = !i), t = t.next;
|
|
@@ -1767,7 +1767,7 @@ var la = { exports: {} };
|
|
|
1767
1767
|
t.punycode = a;
|
|
1768
1768
|
})(ps);
|
|
1769
1769
|
})(la, la.exports);
|
|
1770
|
-
var
|
|
1770
|
+
var Oc = {
|
|
1771
1771
|
isString: function(r) {
|
|
1772
1772
|
return typeof r == "string";
|
|
1773
1773
|
},
|
|
@@ -1781,10 +1781,10 @@ var Cc = {
|
|
|
1781
1781
|
return r == null;
|
|
1782
1782
|
}
|
|
1783
1783
|
}, Gr = {};
|
|
1784
|
-
function
|
|
1784
|
+
function Ac(r, e) {
|
|
1785
1785
|
return Object.prototype.hasOwnProperty.call(r, e);
|
|
1786
1786
|
}
|
|
1787
|
-
var
|
|
1787
|
+
var Ic = function(r, e, t, i) {
|
|
1788
1788
|
e = e || "&", t = t || "=";
|
|
1789
1789
|
var n = {};
|
|
1790
1790
|
if (typeof r != "string" || r.length === 0)
|
|
@@ -1797,7 +1797,7 @@ var Ac = function(r, e, t, i) {
|
|
|
1797
1797
|
a > 0 && o > a && (o = a);
|
|
1798
1798
|
for (var h = 0; h < o; ++h) {
|
|
1799
1799
|
var u = r[h].replace(s, "%20"), l = u.indexOf(t), f, c, d, v;
|
|
1800
|
-
l >= 0 ? (f = u.substr(0, l), c = u.substr(l + 1)) : (f = u, c = ""), d = decodeURIComponent(f), v = decodeURIComponent(c),
|
|
1800
|
+
l >= 0 ? (f = u.substr(0, l), c = u.substr(l + 1)) : (f = u, c = ""), d = decodeURIComponent(f), v = decodeURIComponent(c), Ac(n, d) ? Array.isArray(n[d]) ? n[d].push(v) : n[d] = [n[d], v] : n[d] = v;
|
|
1801
1801
|
}
|
|
1802
1802
|
return n;
|
|
1803
1803
|
}, gr = function(r) {
|
|
@@ -1811,7 +1811,7 @@ var Ac = function(r, e, t, i) {
|
|
|
1811
1811
|
default:
|
|
1812
1812
|
return "";
|
|
1813
1813
|
}
|
|
1814
|
-
},
|
|
1814
|
+
}, Nc = function(r, e, t, i) {
|
|
1815
1815
|
return e = e || "&", t = t || "=", r === null && (r = void 0), typeof r == "object" ? Object.keys(r).map(function(n) {
|
|
1816
1816
|
var s = encodeURIComponent(gr(n)) + t;
|
|
1817
1817
|
return Array.isArray(r[n]) ? r[n].map(function(a) {
|
|
@@ -1819,14 +1819,14 @@ var Ac = function(r, e, t, i) {
|
|
|
1819
1819
|
}).join(e) : s + encodeURIComponent(gr(r[n]));
|
|
1820
1820
|
}).join(e) : i ? encodeURIComponent(gr(i)) + t + encodeURIComponent(gr(r)) : "";
|
|
1821
1821
|
};
|
|
1822
|
-
Gr.decode = Gr.parse =
|
|
1823
|
-
Gr.encode = Gr.stringify =
|
|
1824
|
-
var
|
|
1822
|
+
Gr.decode = Gr.parse = Ic;
|
|
1823
|
+
Gr.encode = Gr.stringify = Nc;
|
|
1824
|
+
var Mc = la.exports, De = Oc, Dc = os, Fc = Yc, Bc = zc;
|
|
1825
1825
|
function Pe() {
|
|
1826
1826
|
this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
|
|
1827
1827
|
}
|
|
1828
|
-
var
|
|
1829
|
-
`, " "],
|
|
1828
|
+
var Lc = /^([a-z0-9.+-]+:)/i, Gc = /:[0-9]*$/, Uc = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, kc = ["<", ">", '"', "`", " ", "\r", `
|
|
1829
|
+
`, " "], Xc = ["{", "}", "|", "\\", "^", "`"].concat(kc), fa = ["'"].concat(Xc), th = ["%", "/", "?", ";", "#"].concat(fa), eh = ["/", "?", "#"], Hc = 255, ih = /^[+a-z0-9A-Z_-]{0,63}$/, Wc = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, Vc = {
|
|
1830
1830
|
javascript: !0,
|
|
1831
1831
|
"javascript:": !0
|
|
1832
1832
|
}, ca = {
|
|
@@ -1857,11 +1857,11 @@ Pe.prototype.parse = function(r, e, t) {
|
|
|
1857
1857
|
s[0] = s[0].replace(a, "/"), r = s.join(n);
|
|
1858
1858
|
var o = r;
|
|
1859
1859
|
if (o = o.trim(), !t && r.split("#").length === 1) {
|
|
1860
|
-
var h =
|
|
1860
|
+
var h = Uc.exec(o);
|
|
1861
1861
|
if (h)
|
|
1862
1862
|
return this.path = o, this.href = o, this.pathname = h[1], h[2] ? (this.search = h[2], e ? this.query = da.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : e && (this.search = "", this.query = {}), this;
|
|
1863
1863
|
}
|
|
1864
|
-
var u =
|
|
1864
|
+
var u = Lc.exec(o);
|
|
1865
1865
|
if (u) {
|
|
1866
1866
|
u = u[0];
|
|
1867
1867
|
var l = u.toLowerCase();
|
|
@@ -1891,17 +1891,17 @@ Pe.prototype.parse = function(r, e, t) {
|
|
|
1891
1891
|
for (var b = "", T = 0, E = x.length; T < E; T++)
|
|
1892
1892
|
x.charCodeAt(T) > 127 ? b += "x" : b += x[T];
|
|
1893
1893
|
if (!b.match(ih)) {
|
|
1894
|
-
var w = m.slice(0, d), S = m.slice(d + 1), R = x.match(
|
|
1894
|
+
var w = m.slice(0, d), S = m.slice(d + 1), R = x.match(Wc);
|
|
1895
1895
|
R && (w.push(R[1]), S.unshift(R[2])), S.length && (o = "/" + S.join(".") + o), this.hostname = w.join(".");
|
|
1896
1896
|
break;
|
|
1897
1897
|
}
|
|
1898
1898
|
}
|
|
1899
1899
|
}
|
|
1900
|
-
this.hostname.length >
|
|
1900
|
+
this.hostname.length > Hc ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), g || (this.hostname = Mc.toASCII(this.hostname));
|
|
1901
1901
|
var O = this.port ? ":" + this.port : "", N = this.hostname || "";
|
|
1902
1902
|
this.host = N + O, this.href += this.host, g && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), o[0] !== "/" && (o = "/" + o));
|
|
1903
1903
|
}
|
|
1904
|
-
if (!
|
|
1904
|
+
if (!Vc[l])
|
|
1905
1905
|
for (var d = 0, y = fa.length; d < y; d++) {
|
|
1906
1906
|
var B = fa[d];
|
|
1907
1907
|
if (o.indexOf(B) !== -1) {
|
|
@@ -1918,7 +1918,7 @@ Pe.prototype.parse = function(r, e, t) {
|
|
|
1918
1918
|
}
|
|
1919
1919
|
return this.href = this.format(), this;
|
|
1920
1920
|
};
|
|
1921
|
-
function
|
|
1921
|
+
function zc(r) {
|
|
1922
1922
|
return De.isString(r) && (r = os(r)), r instanceof Pe ? r.format() : Pe.prototype.format.call(r);
|
|
1923
1923
|
}
|
|
1924
1924
|
Pe.prototype.format = function() {
|
|
@@ -1931,7 +1931,7 @@ Pe.prototype.format = function() {
|
|
|
1931
1931
|
return encodeURIComponent(o);
|
|
1932
1932
|
}), a = a.replace("#", "%23"), e + n + t + a + i;
|
|
1933
1933
|
};
|
|
1934
|
-
function
|
|
1934
|
+
function Yc(r, e) {
|
|
1935
1935
|
return os(r, !1, !0).resolve(e);
|
|
1936
1936
|
}
|
|
1937
1937
|
Pe.prototype.resolve = function(r) {
|
|
@@ -2005,21 +2005,21 @@ Pe.prototype.resolveObject = function(r) {
|
|
|
2005
2005
|
return _ = _ || t.host && m.length, _ && !R && m.unshift(""), m.length ? t.pathname = m.join("/") : (t.pathname = null, t.path = null), (!De.isNull(t.pathname) || !De.isNull(t.search)) && (t.path = (t.pathname ? t.pathname : "") + (t.search ? t.search : "")), t.auth = r.auth || t.auth, t.slashes = t.slashes || r.slashes, t.href = t.format(), t;
|
|
2006
2006
|
};
|
|
2007
2007
|
Pe.prototype.parseHost = function() {
|
|
2008
|
-
var r = this.host, e =
|
|
2008
|
+
var r = this.host, e = Gc.exec(r);
|
|
2009
2009
|
e && (e = e[0], e !== ":" && (this.port = e.substr(1)), r = r.substr(0, r.length - e.length)), r && (this.hostname = r);
|
|
2010
2010
|
};
|
|
2011
2011
|
var $i = {
|
|
2012
|
-
parse:
|
|
2013
|
-
format:
|
|
2014
|
-
resolve:
|
|
2012
|
+
parse: Dc,
|
|
2013
|
+
format: Bc,
|
|
2014
|
+
resolve: Fc
|
|
2015
2015
|
};
|
|
2016
2016
|
G.RETINA_PREFIX = /@([0-9\.]+)x/;
|
|
2017
2017
|
G.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = !1;
|
|
2018
2018
|
var pa = !1, rh = "6.5.8";
|
|
2019
|
-
function
|
|
2019
|
+
function jc() {
|
|
2020
2020
|
pa = !0;
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2022
|
+
function Zc(r) {
|
|
2023
2023
|
var e;
|
|
2024
2024
|
if (!pa) {
|
|
2025
2025
|
if (G.ADAPTER.getNavigator().userAgent.toLowerCase().indexOf("chrome") > -1) {
|
|
@@ -2045,7 +2045,7 @@ function jc(r) {
|
|
|
2045
2045
|
}
|
|
2046
2046
|
}
|
|
2047
2047
|
var bs;
|
|
2048
|
-
function
|
|
2048
|
+
function Kc() {
|
|
2049
2049
|
return typeof bs > "u" && (bs = function() {
|
|
2050
2050
|
var e = {
|
|
2051
2051
|
stencil: !0,
|
|
@@ -2065,155 +2065,155 @@ function Zc() {
|
|
|
2065
2065
|
}
|
|
2066
2066
|
}()), bs;
|
|
2067
2067
|
}
|
|
2068
|
-
var
|
|
2069
|
-
aliceblue:
|
|
2070
|
-
antiquewhite:
|
|
2071
|
-
aqua:
|
|
2072
|
-
aquamarine:
|
|
2073
|
-
azure:
|
|
2074
|
-
beige:
|
|
2075
|
-
bisque:
|
|
2076
|
-
black:
|
|
2077
|
-
blanchedalmond:
|
|
2078
|
-
blue:
|
|
2079
|
-
blueviolet:
|
|
2080
|
-
brown:
|
|
2081
|
-
burlywood:
|
|
2082
|
-
cadetblue:
|
|
2083
|
-
chartreuse:
|
|
2084
|
-
chocolate:
|
|
2085
|
-
coral:
|
|
2086
|
-
cornflowerblue:
|
|
2087
|
-
cornsilk:
|
|
2088
|
-
crimson:
|
|
2089
|
-
cyan:
|
|
2090
|
-
darkblue:
|
|
2091
|
-
darkcyan:
|
|
2092
|
-
darkgoldenrod:
|
|
2093
|
-
darkgray:
|
|
2094
|
-
darkgreen:
|
|
2095
|
-
darkgrey:
|
|
2096
|
-
darkkhaki:
|
|
2097
|
-
darkmagenta:
|
|
2098
|
-
darkolivegreen:
|
|
2099
|
-
darkorange:
|
|
2100
|
-
darkorchid:
|
|
2101
|
-
darkred:
|
|
2102
|
-
darksalmon:
|
|
2103
|
-
darkseagreen:
|
|
2104
|
-
darkslateblue:
|
|
2105
|
-
darkslategray:
|
|
2106
|
-
darkslategrey:
|
|
2107
|
-
darkturquoise:
|
|
2108
|
-
darkviolet:
|
|
2109
|
-
deeppink:
|
|
2110
|
-
deepskyblue:
|
|
2111
|
-
dimgray:
|
|
2112
|
-
dimgrey:
|
|
2113
|
-
dodgerblue:
|
|
2114
|
-
firebrick:
|
|
2115
|
-
floralwhite:
|
|
2116
|
-
forestgreen:
|
|
2117
|
-
fuchsia:
|
|
2118
|
-
gainsboro:
|
|
2119
|
-
ghostwhite:
|
|
2120
|
-
goldenrod:
|
|
2121
|
-
gold:
|
|
2122
|
-
gray:
|
|
2123
|
-
green:
|
|
2124
|
-
greenyellow:
|
|
2125
|
-
grey:
|
|
2126
|
-
honeydew:
|
|
2127
|
-
hotpink:
|
|
2128
|
-
indianred:
|
|
2129
|
-
indigo:
|
|
2130
|
-
ivory:
|
|
2131
|
-
khaki:
|
|
2132
|
-
lavenderblush:
|
|
2133
|
-
lavender:
|
|
2134
|
-
lawngreen:
|
|
2135
|
-
lemonchiffon:
|
|
2136
|
-
lightblue:
|
|
2137
|
-
lightcoral:
|
|
2138
|
-
lightcyan:
|
|
2139
|
-
lightgoldenrodyellow:
|
|
2140
|
-
lightgray:
|
|
2141
|
-
lightgreen:
|
|
2142
|
-
lightgrey:
|
|
2143
|
-
lightpink:
|
|
2144
|
-
lightsalmon:
|
|
2145
|
-
lightseagreen:
|
|
2146
|
-
lightskyblue:
|
|
2147
|
-
lightslategray:
|
|
2148
|
-
lightslategrey:
|
|
2149
|
-
lightsteelblue:
|
|
2150
|
-
lightyellow:
|
|
2151
|
-
lime:
|
|
2152
|
-
limegreen:
|
|
2153
|
-
linen:
|
|
2154
|
-
magenta:
|
|
2155
|
-
maroon:
|
|
2156
|
-
mediumaquamarine:
|
|
2157
|
-
mediumblue:
|
|
2158
|
-
mediumorchid:
|
|
2159
|
-
mediumpurple:
|
|
2160
|
-
mediumseagreen:
|
|
2161
|
-
mediumslateblue:
|
|
2162
|
-
mediumspringgreen:
|
|
2163
|
-
mediumturquoise:
|
|
2164
|
-
mediumvioletred:
|
|
2165
|
-
midnightblue:
|
|
2166
|
-
mintcream:
|
|
2167
|
-
mistyrose:
|
|
2168
|
-
moccasin:
|
|
2169
|
-
navajowhite:
|
|
2170
|
-
navy:
|
|
2171
|
-
oldlace:
|
|
2172
|
-
olive:
|
|
2173
|
-
olivedrab:
|
|
2174
|
-
orange:
|
|
2175
|
-
orangered:
|
|
2176
|
-
orchid:
|
|
2177
|
-
palegoldenrod:
|
|
2178
|
-
palegreen:
|
|
2179
|
-
paleturquoise:
|
|
2180
|
-
palevioletred:
|
|
2181
|
-
papayawhip:
|
|
2182
|
-
peachpuff:
|
|
2183
|
-
peru:
|
|
2184
|
-
pink:
|
|
2185
|
-
plum:
|
|
2186
|
-
powderblue:
|
|
2187
|
-
purple:
|
|
2188
|
-
rebeccapurple:
|
|
2189
|
-
red:
|
|
2190
|
-
rosybrown:
|
|
2191
|
-
royalblue:
|
|
2192
|
-
saddlebrown:
|
|
2193
|
-
salmon:
|
|
2194
|
-
sandybrown:
|
|
2195
|
-
seagreen:
|
|
2196
|
-
seashell:
|
|
2197
|
-
sienna:
|
|
2198
|
-
silver:
|
|
2199
|
-
skyblue:
|
|
2200
|
-
slateblue:
|
|
2201
|
-
slategray:
|
|
2202
|
-
slategrey:
|
|
2203
|
-
snow:
|
|
2204
|
-
springgreen:
|
|
2205
|
-
steelblue:
|
|
2206
|
-
tan:
|
|
2207
|
-
teal:
|
|
2208
|
-
thistle:
|
|
2209
|
-
tomato:
|
|
2210
|
-
turquoise:
|
|
2211
|
-
violet:
|
|
2212
|
-
wheat:
|
|
2213
|
-
white:
|
|
2214
|
-
whitesmoke:
|
|
2215
|
-
yellow:
|
|
2216
|
-
yellowgreen:
|
|
2068
|
+
var qc = "#f0f8ff", $c = "#faebd7", Jc = "#00ffff", Qc = "#7fffd4", td = "#f0ffff", ed = "#f5f5dc", id = "#ffe4c4", rd = "#000000", nd = "#ffebcd", sd = "#0000ff", ad = "#8a2be2", od = "#a52a2a", hd = "#deb887", ud = "#5f9ea0", ld = "#7fff00", fd = "#d2691e", cd = "#ff7f50", dd = "#6495ed", pd = "#fff8dc", vd = "#dc143c", _d = "#00ffff", gd = "#00008b", md = "#008b8b", yd = "#b8860b", bd = "#a9a9a9", xd = "#006400", Td = "#a9a9a9", Ed = "#bdb76b", Sd = "#8b008b", wd = "#556b2f", Rd = "#ff8c00", Pd = "#9932cc", Cd = "#8b0000", Od = "#e9967a", Ad = "#8fbc8f", Id = "#483d8b", Nd = "#2f4f4f", Md = "#2f4f4f", Dd = "#00ced1", Fd = "#9400d3", Bd = "#ff1493", Ld = "#00bfff", Gd = "#696969", Ud = "#696969", kd = "#1e90ff", Xd = "#b22222", Hd = "#fffaf0", Wd = "#228b22", Vd = "#ff00ff", zd = "#dcdcdc", Yd = "#f8f8ff", jd = "#daa520", Zd = "#ffd700", Kd = "#808080", qd = "#008000", $d = "#adff2f", Jd = "#808080", Qd = "#f0fff0", tp = "#ff69b4", ep = "#cd5c5c", ip = "#4b0082", rp = "#fffff0", np = "#f0e68c", sp = "#fff0f5", ap = "#e6e6fa", op = "#7cfc00", hp = "#fffacd", up = "#add8e6", lp = "#f08080", fp = "#e0ffff", cp = "#fafad2", dp = "#d3d3d3", pp = "#90ee90", vp = "#d3d3d3", _p = "#ffb6c1", gp = "#ffa07a", mp = "#20b2aa", yp = "#87cefa", bp = "#778899", xp = "#778899", Tp = "#b0c4de", Ep = "#ffffe0", Sp = "#00ff00", wp = "#32cd32", Rp = "#faf0e6", Pp = "#ff00ff", Cp = "#800000", Op = "#66cdaa", Ap = "#0000cd", Ip = "#ba55d3", Np = "#9370db", Mp = "#3cb371", Dp = "#7b68ee", Fp = "#00fa9a", Bp = "#48d1cc", Lp = "#c71585", Gp = "#191970", Up = "#f5fffa", kp = "#ffe4e1", Xp = "#ffe4b5", Hp = "#ffdead", Wp = "#000080", Vp = "#fdf5e6", zp = "#808000", Yp = "#6b8e23", jp = "#ffa500", Zp = "#ff4500", Kp = "#da70d6", qp = "#eee8aa", $p = "#98fb98", Jp = "#afeeee", Qp = "#db7093", tv = "#ffefd5", ev = "#ffdab9", iv = "#cd853f", rv = "#ffc0cb", nv = "#dda0dd", sv = "#b0e0e6", av = "#800080", ov = "#663399", hv = "#ff0000", uv = "#bc8f8f", lv = "#4169e1", fv = "#8b4513", cv = "#fa8072", dv = "#f4a460", pv = "#2e8b57", vv = "#fff5ee", _v = "#a0522d", gv = "#c0c0c0", mv = "#87ceeb", yv = "#6a5acd", bv = "#708090", xv = "#708090", Tv = "#fffafa", Ev = "#00ff7f", Sv = "#4682b4", wv = "#d2b48c", Rv = "#008080", Pv = "#d8bfd8", Cv = "#ff6347", Ov = "#40e0d0", Av = "#ee82ee", Iv = "#f5deb3", Nv = "#ffffff", Mv = "#f5f5f5", Dv = "#ffff00", Fv = "#9acd32", Bv = {
|
|
2069
|
+
aliceblue: qc,
|
|
2070
|
+
antiquewhite: $c,
|
|
2071
|
+
aqua: Jc,
|
|
2072
|
+
aquamarine: Qc,
|
|
2073
|
+
azure: td,
|
|
2074
|
+
beige: ed,
|
|
2075
|
+
bisque: id,
|
|
2076
|
+
black: rd,
|
|
2077
|
+
blanchedalmond: nd,
|
|
2078
|
+
blue: sd,
|
|
2079
|
+
blueviolet: ad,
|
|
2080
|
+
brown: od,
|
|
2081
|
+
burlywood: hd,
|
|
2082
|
+
cadetblue: ud,
|
|
2083
|
+
chartreuse: ld,
|
|
2084
|
+
chocolate: fd,
|
|
2085
|
+
coral: cd,
|
|
2086
|
+
cornflowerblue: dd,
|
|
2087
|
+
cornsilk: pd,
|
|
2088
|
+
crimson: vd,
|
|
2089
|
+
cyan: _d,
|
|
2090
|
+
darkblue: gd,
|
|
2091
|
+
darkcyan: md,
|
|
2092
|
+
darkgoldenrod: yd,
|
|
2093
|
+
darkgray: bd,
|
|
2094
|
+
darkgreen: xd,
|
|
2095
|
+
darkgrey: Td,
|
|
2096
|
+
darkkhaki: Ed,
|
|
2097
|
+
darkmagenta: Sd,
|
|
2098
|
+
darkolivegreen: wd,
|
|
2099
|
+
darkorange: Rd,
|
|
2100
|
+
darkorchid: Pd,
|
|
2101
|
+
darkred: Cd,
|
|
2102
|
+
darksalmon: Od,
|
|
2103
|
+
darkseagreen: Ad,
|
|
2104
|
+
darkslateblue: Id,
|
|
2105
|
+
darkslategray: Nd,
|
|
2106
|
+
darkslategrey: Md,
|
|
2107
|
+
darkturquoise: Dd,
|
|
2108
|
+
darkviolet: Fd,
|
|
2109
|
+
deeppink: Bd,
|
|
2110
|
+
deepskyblue: Ld,
|
|
2111
|
+
dimgray: Gd,
|
|
2112
|
+
dimgrey: Ud,
|
|
2113
|
+
dodgerblue: kd,
|
|
2114
|
+
firebrick: Xd,
|
|
2115
|
+
floralwhite: Hd,
|
|
2116
|
+
forestgreen: Wd,
|
|
2117
|
+
fuchsia: Vd,
|
|
2118
|
+
gainsboro: zd,
|
|
2119
|
+
ghostwhite: Yd,
|
|
2120
|
+
goldenrod: jd,
|
|
2121
|
+
gold: Zd,
|
|
2122
|
+
gray: Kd,
|
|
2123
|
+
green: qd,
|
|
2124
|
+
greenyellow: $d,
|
|
2125
|
+
grey: Jd,
|
|
2126
|
+
honeydew: Qd,
|
|
2127
|
+
hotpink: tp,
|
|
2128
|
+
indianred: ep,
|
|
2129
|
+
indigo: ip,
|
|
2130
|
+
ivory: rp,
|
|
2131
|
+
khaki: np,
|
|
2132
|
+
lavenderblush: sp,
|
|
2133
|
+
lavender: ap,
|
|
2134
|
+
lawngreen: op,
|
|
2135
|
+
lemonchiffon: hp,
|
|
2136
|
+
lightblue: up,
|
|
2137
|
+
lightcoral: lp,
|
|
2138
|
+
lightcyan: fp,
|
|
2139
|
+
lightgoldenrodyellow: cp,
|
|
2140
|
+
lightgray: dp,
|
|
2141
|
+
lightgreen: pp,
|
|
2142
|
+
lightgrey: vp,
|
|
2143
|
+
lightpink: _p,
|
|
2144
|
+
lightsalmon: gp,
|
|
2145
|
+
lightseagreen: mp,
|
|
2146
|
+
lightskyblue: yp,
|
|
2147
|
+
lightslategray: bp,
|
|
2148
|
+
lightslategrey: xp,
|
|
2149
|
+
lightsteelblue: Tp,
|
|
2150
|
+
lightyellow: Ep,
|
|
2151
|
+
lime: Sp,
|
|
2152
|
+
limegreen: wp,
|
|
2153
|
+
linen: Rp,
|
|
2154
|
+
magenta: Pp,
|
|
2155
|
+
maroon: Cp,
|
|
2156
|
+
mediumaquamarine: Op,
|
|
2157
|
+
mediumblue: Ap,
|
|
2158
|
+
mediumorchid: Ip,
|
|
2159
|
+
mediumpurple: Np,
|
|
2160
|
+
mediumseagreen: Mp,
|
|
2161
|
+
mediumslateblue: Dp,
|
|
2162
|
+
mediumspringgreen: Fp,
|
|
2163
|
+
mediumturquoise: Bp,
|
|
2164
|
+
mediumvioletred: Lp,
|
|
2165
|
+
midnightblue: Gp,
|
|
2166
|
+
mintcream: Up,
|
|
2167
|
+
mistyrose: kp,
|
|
2168
|
+
moccasin: Xp,
|
|
2169
|
+
navajowhite: Hp,
|
|
2170
|
+
navy: Wp,
|
|
2171
|
+
oldlace: Vp,
|
|
2172
|
+
olive: zp,
|
|
2173
|
+
olivedrab: Yp,
|
|
2174
|
+
orange: jp,
|
|
2175
|
+
orangered: Zp,
|
|
2176
|
+
orchid: Kp,
|
|
2177
|
+
palegoldenrod: qp,
|
|
2178
|
+
palegreen: $p,
|
|
2179
|
+
paleturquoise: Jp,
|
|
2180
|
+
palevioletred: Qp,
|
|
2181
|
+
papayawhip: tv,
|
|
2182
|
+
peachpuff: ev,
|
|
2183
|
+
peru: iv,
|
|
2184
|
+
pink: rv,
|
|
2185
|
+
plum: nv,
|
|
2186
|
+
powderblue: sv,
|
|
2187
|
+
purple: av,
|
|
2188
|
+
rebeccapurple: ov,
|
|
2189
|
+
red: hv,
|
|
2190
|
+
rosybrown: uv,
|
|
2191
|
+
royalblue: lv,
|
|
2192
|
+
saddlebrown: fv,
|
|
2193
|
+
salmon: cv,
|
|
2194
|
+
sandybrown: dv,
|
|
2195
|
+
seagreen: pv,
|
|
2196
|
+
seashell: vv,
|
|
2197
|
+
sienna: _v,
|
|
2198
|
+
silver: gv,
|
|
2199
|
+
skyblue: mv,
|
|
2200
|
+
slateblue: yv,
|
|
2201
|
+
slategray: bv,
|
|
2202
|
+
slategrey: xv,
|
|
2203
|
+
snow: Tv,
|
|
2204
|
+
springgreen: Ev,
|
|
2205
|
+
steelblue: Sv,
|
|
2206
|
+
tan: wv,
|
|
2207
|
+
teal: Rv,
|
|
2208
|
+
thistle: Pv,
|
|
2209
|
+
tomato: Cv,
|
|
2210
|
+
turquoise: Ov,
|
|
2211
|
+
violet: Av,
|
|
2212
|
+
wheat: Iv,
|
|
2213
|
+
white: Nv,
|
|
2214
|
+
whitesmoke: Mv,
|
|
2215
|
+
yellow: Dv,
|
|
2216
|
+
yellowgreen: Fv
|
|
2217
2217
|
};
|
|
2218
2218
|
function hr(r, e) {
|
|
2219
2219
|
return e === void 0 && (e = []), e[0] = (r >> 16 & 255) / 255, e[1] = (r >> 8 & 255) / 255, e[2] = (r & 255) / 255, e;
|
|
@@ -2223,20 +2223,20 @@ function Ru(r) {
|
|
|
2223
2223
|
return e = "000000".substring(0, 6 - e.length) + e, "#" + e;
|
|
2224
2224
|
}
|
|
2225
2225
|
function Pu(r) {
|
|
2226
|
-
return typeof r == "string" && (r =
|
|
2226
|
+
return typeof r == "string" && (r = Bv[r.toLowerCase()] || r, r[0] === "#" && (r = r.slice(1))), parseInt(r, 16);
|
|
2227
2227
|
}
|
|
2228
|
-
function
|
|
2228
|
+
function Lv() {
|
|
2229
2229
|
for (var r = [], e = [], t = 0; t < 32; t++)
|
|
2230
2230
|
r[t] = t, e[t] = t;
|
|
2231
2231
|
r[H.NORMAL_NPM] = H.NORMAL, r[H.ADD_NPM] = H.ADD, r[H.SCREEN_NPM] = H.SCREEN, e[H.NORMAL] = H.NORMAL_NPM, e[H.ADD] = H.ADD_NPM, e[H.SCREEN] = H.SCREEN_NPM;
|
|
2232
2232
|
var i = [];
|
|
2233
2233
|
return i.push(e), i.push(r), i;
|
|
2234
2234
|
}
|
|
2235
|
-
var Cu =
|
|
2235
|
+
var Cu = Lv();
|
|
2236
2236
|
function Ou(r, e) {
|
|
2237
2237
|
return Cu[e ? 1 : 0][r];
|
|
2238
2238
|
}
|
|
2239
|
-
function
|
|
2239
|
+
function Gv(r, e, t, i) {
|
|
2240
2240
|
return t = t || new Float32Array(4), i || i === void 0 ? (t[0] = r[0] * e, t[1] = r[1] * e, t[2] = r[2] * e) : (t[0] = r[0], t[1] = r[1], t[2] = r[2]), t[3] = e, t;
|
|
2241
2241
|
}
|
|
2242
2242
|
function co(r, e) {
|
|
@@ -2250,7 +2250,7 @@ function co(r, e) {
|
|
|
2250
2250
|
function Au(r, e, t, i) {
|
|
2251
2251
|
return t = t || new Float32Array(4), t[0] = (r >> 16 & 255) / 255, t[1] = (r >> 8 & 255) / 255, t[2] = (r & 255) / 255, (i || i === void 0) && (t[0] *= e, t[1] *= e, t[2] *= e), t[3] = e, t;
|
|
2252
2252
|
}
|
|
2253
|
-
function
|
|
2253
|
+
function Uv(r, e) {
|
|
2254
2254
|
e === void 0 && (e = null);
|
|
2255
2255
|
var t = r * 6;
|
|
2256
2256
|
if (e = e || new Uint16Array(t), e.length !== t)
|
|
@@ -2294,9 +2294,9 @@ function rr(r, e, t) {
|
|
|
2294
2294
|
function Ji(r) {
|
|
2295
2295
|
return r === 0 ? 0 : r < 0 ? -1 : 1;
|
|
2296
2296
|
}
|
|
2297
|
-
var
|
|
2297
|
+
var kv = 0;
|
|
2298
2298
|
function Gi() {
|
|
2299
|
-
return ++
|
|
2299
|
+
return ++kv;
|
|
2300
2300
|
}
|
|
2301
2301
|
var ah = {};
|
|
2302
2302
|
function Ce(r, e, t) {
|
|
@@ -2340,7 +2340,7 @@ var oh = {}, Ye = /* @__PURE__ */ Object.create(null), mi = /* @__PURE__ */ Obje
|
|
|
2340
2340
|
configurable: !0
|
|
2341
2341
|
}), r;
|
|
2342
2342
|
}();
|
|
2343
|
-
function
|
|
2343
|
+
function Xv(r) {
|
|
2344
2344
|
var e = r.width, t = r.height, i = r.getContext("2d", {
|
|
2345
2345
|
willReadFrequently: !0
|
|
2346
2346
|
}), n = i.getImageData(0, 0, e, t), s = n.data, a = s.length, o = {
|
|
@@ -2358,7 +2358,7 @@ function kv(r) {
|
|
|
2358
2358
|
};
|
|
2359
2359
|
}
|
|
2360
2360
|
var un;
|
|
2361
|
-
function
|
|
2361
|
+
function Hv(r, e) {
|
|
2362
2362
|
if (e === void 0 && (e = globalThis.location), r.indexOf("data:") === 0)
|
|
2363
2363
|
return "";
|
|
2364
2364
|
e = e || globalThis.location, un || (un = document.createElement("a")), un.href = r;
|
|
@@ -2577,10 +2577,10 @@ var Pt = function(r) {
|
|
|
2577
2577
|
configurable: !0
|
|
2578
2578
|
}), Object.defineProperty(e.prototype, "angle", {
|
|
2579
2579
|
get: function() {
|
|
2580
|
-
return this.transform.rotation *
|
|
2580
|
+
return this.transform.rotation * Pf;
|
|
2581
2581
|
},
|
|
2582
2582
|
set: function(t) {
|
|
2583
|
-
this.transform.rotation = t *
|
|
2583
|
+
this.transform.rotation = t * Cf;
|
|
2584
2584
|
},
|
|
2585
2585
|
enumerable: !1,
|
|
2586
2586
|
configurable: !0
|
|
@@ -2633,7 +2633,7 @@ var Pt = function(r) {
|
|
|
2633
2633
|
return e;
|
|
2634
2634
|
}(Pt);
|
|
2635
2635
|
Pt.prototype.displayObjectUpdateTransform = Pt.prototype.updateTransform;
|
|
2636
|
-
function
|
|
2636
|
+
function Wv(r, e) {
|
|
2637
2637
|
return r.zIndex === e.zIndex ? r._lastSortedIndex - e._lastSortedIndex : r.zIndex - e.zIndex;
|
|
2638
2638
|
}
|
|
2639
2639
|
var ct = function(r) {
|
|
@@ -2712,7 +2712,7 @@ var ct = function(r) {
|
|
|
2712
2712
|
var s = this.children[i];
|
|
2713
2713
|
s._lastSortedIndex = i, !t && s.zIndex !== 0 && (t = !0);
|
|
2714
2714
|
}
|
|
2715
|
-
t && this.children.length > 1 && this.children.sort(
|
|
2715
|
+
t && this.children.length > 1 && this.children.sort(Wv), this.sortDirty = !1;
|
|
2716
2716
|
}, e.prototype.updateTransform = function() {
|
|
2717
2717
|
this.sortableChildren && this.sortDirty && this.sortChildren(), this._boundsID++, this.transform.updateTransform(this.parent.transform), this.worldAlpha = this.alpha * this.parent.worldAlpha;
|
|
2718
2718
|
for (var t = 0, i = this.children.length; t < i; ++t) {
|
|
@@ -3077,7 +3077,7 @@ var xs = function() {
|
|
|
3077
3077
|
enumerable: !1,
|
|
3078
3078
|
configurable: !0
|
|
3079
3079
|
}), r;
|
|
3080
|
-
}(),
|
|
3080
|
+
}(), Vv = function() {
|
|
3081
3081
|
function r() {
|
|
3082
3082
|
}
|
|
3083
3083
|
return r.init = function(e) {
|
|
@@ -3147,7 +3147,7 @@ var ma = function() {
|
|
|
3147
3147
|
return e;
|
|
3148
3148
|
}, ma.apply(this, arguments);
|
|
3149
3149
|
};
|
|
3150
|
-
function
|
|
3150
|
+
function zv(r, e) {
|
|
3151
3151
|
var t = {};
|
|
3152
3152
|
for (var i in r)
|
|
3153
3153
|
Object.prototype.hasOwnProperty.call(r, i) && e.indexOf(i) < 0 && (t[i] = r[i]);
|
|
@@ -3214,7 +3214,7 @@ var Ur = function() {
|
|
|
3214
3214
|
}, e.test = function(t) {
|
|
3215
3215
|
return t instanceof Float32Array || t instanceof Uint8Array || t instanceof Uint32Array;
|
|
3216
3216
|
}, e;
|
|
3217
|
-
}(Ur),
|
|
3217
|
+
}(Ur), Yv = {
|
|
3218
3218
|
scaleMode: Be.NEAREST,
|
|
3219
3219
|
format: D.RGBA,
|
|
3220
3220
|
alphaMode: Ie.NPM
|
|
@@ -3313,7 +3313,7 @@ var Ur = function() {
|
|
|
3313
3313
|
}, e.fromBuffer = function(t, i, n, s) {
|
|
3314
3314
|
t = t || new Float32Array(i * n * 4);
|
|
3315
3315
|
var a = new Jr(t, { width: i, height: n }), o = t instanceof Float32Array ? X.FLOAT : X.UNSIGNED_BYTE;
|
|
3316
|
-
return new e(a, Object.assign({},
|
|
3316
|
+
return new e(a, Object.assign({}, Yv, s || { width: i, height: n, type: o }));
|
|
3317
3317
|
}, e.addToCache = function(t, i) {
|
|
3318
3318
|
i && (t.textureCacheIds.indexOf(i) === -1 && t.textureCacheIds.push(i), mi[i] && console.warn("BaseTexture added to the cache with an id [" + i + "] that already had an entry"), mi[i] = t);
|
|
3319
3319
|
}, e.removeFromCache = function(t) {
|
|
@@ -3378,7 +3378,7 @@ var Ur = function() {
|
|
|
3378
3378
|
return t.resize(a, o), Promise.resolve(t);
|
|
3379
3379
|
}), this._load;
|
|
3380
3380
|
}, e;
|
|
3381
|
-
}(Ur),
|
|
3381
|
+
}(Ur), jv = function(r) {
|
|
3382
3382
|
pt(e, r);
|
|
3383
3383
|
function e(t, i) {
|
|
3384
3384
|
var n = this, s = i || {}, a = s.width, o = s.height, h, u;
|
|
@@ -3420,7 +3420,7 @@ var Ur = function() {
|
|
|
3420
3420
|
return i = r.call(this, s, a) || this, i.source = t, i.noSubImage = !1, i;
|
|
3421
3421
|
}
|
|
3422
3422
|
return e.crossOrigin = function(t, i, n) {
|
|
3423
|
-
n === void 0 && i.indexOf("data:") !== 0 ? t.crossOrigin =
|
|
3423
|
+
n === void 0 && i.indexOf("data:") !== 0 ? t.crossOrigin = Hv(i) : n !== !1 && (t.crossOrigin = typeof n == "string" ? n : "anonymous");
|
|
3424
3424
|
}, e.prototype.upload = function(t, i, n, s) {
|
|
3425
3425
|
var a = t.gl, o = i.realWidth, h = i.realHeight;
|
|
3426
3426
|
if (s = s || this.source, s instanceof HTMLImageElement) {
|
|
@@ -3437,7 +3437,7 @@ var Ur = function() {
|
|
|
3437
3437
|
}, e.prototype.dispose = function() {
|
|
3438
3438
|
this.source = null;
|
|
3439
3439
|
}, e;
|
|
3440
|
-
}(Ur),
|
|
3440
|
+
}(Ur), Zv = function(r) {
|
|
3441
3441
|
pt(e, r);
|
|
3442
3442
|
function e(t) {
|
|
3443
3443
|
return r.call(this, t) || this;
|
|
@@ -3446,7 +3446,7 @@ var Ur = function() {
|
|
|
3446
3446
|
var i = globalThis.OffscreenCanvas;
|
|
3447
3447
|
return i && t instanceof i ? !0 : globalThis.HTMLCanvasElement && t instanceof HTMLCanvasElement;
|
|
3448
3448
|
}, e;
|
|
3449
|
-
}(fi),
|
|
3449
|
+
}(fi), Kv = function(r) {
|
|
3450
3450
|
pt(e, r);
|
|
3451
3451
|
function e(t, i) {
|
|
3452
3452
|
var n = this, s = i || {}, a = s.width, o = s.height, h = s.autoLoad, u = s.linkBaseTexture;
|
|
@@ -3541,7 +3541,7 @@ var Ur = function() {
|
|
|
3541
3541
|
}, e.test = function(t) {
|
|
3542
3542
|
return typeof t == "string" || t instanceof HTMLImageElement;
|
|
3543
3543
|
}, e;
|
|
3544
|
-
}(fi),
|
|
3544
|
+
}(fi), qv = function(r) {
|
|
3545
3545
|
pt(e, r);
|
|
3546
3546
|
function e(t, i) {
|
|
3547
3547
|
var n = this;
|
|
@@ -3582,7 +3582,7 @@ var Ur = function() {
|
|
|
3582
3582
|
}, e.test = function(t, i) {
|
|
3583
3583
|
return i === "svg" || typeof t == "string" && t.startsWith("data:image/svg+xml") || typeof t == "string" && e.SVG_XML.test(t);
|
|
3584
3584
|
}, e.SVG_XML = /^(<\?xml[^?]+\?>)?\s*(<!--[^(-->)]*-->)?\s*\<svg/m, e.SVG_SIZE = /<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i, e;
|
|
3585
|
-
}(fi),
|
|
3585
|
+
}(fi), $v = function(r) {
|
|
3586
3586
|
pt(e, r);
|
|
3587
3587
|
function e(t, i) {
|
|
3588
3588
|
var n = this;
|
|
@@ -3660,7 +3660,7 @@ var Ur = function() {
|
|
|
3660
3660
|
mov: "video/quicktime",
|
|
3661
3661
|
m4v: "video/mp4"
|
|
3662
3662
|
}, e;
|
|
3663
|
-
}(fi),
|
|
3663
|
+
}(fi), Jv = function(r) {
|
|
3664
3664
|
pt(e, r);
|
|
3665
3665
|
function e(t) {
|
|
3666
3666
|
return r.call(this, t) || this;
|
|
@@ -3669,8 +3669,8 @@ var Ur = function() {
|
|
|
3669
3669
|
return !!globalThis.createImageBitmap && typeof ImageBitmap < "u" && t instanceof ImageBitmap;
|
|
3670
3670
|
}, e;
|
|
3671
3671
|
}(fi);
|
|
3672
|
-
_a.push(Fu,
|
|
3673
|
-
var
|
|
3672
|
+
_a.push(Fu, Jv, Zv, $v, qv, Jr, Kv, jv);
|
|
3673
|
+
var Qv = function(r) {
|
|
3674
3674
|
pt(e, r);
|
|
3675
3675
|
function e() {
|
|
3676
3676
|
return r !== null && r.apply(this, arguments) || this;
|
|
@@ -3700,7 +3700,7 @@ var Jv = function(r) {
|
|
|
3700
3700
|
height: this.height
|
|
3701
3701
|
}), this.dirtyId++, this.dirtyFormat++, this;
|
|
3702
3702
|
}, r.prototype.addDepthTexture = function(e) {
|
|
3703
|
-
return this.depthTexture = e || new Q(new
|
|
3703
|
+
return this.depthTexture = e || new Q(new Qv(null, { width: this.width, height: this.height }), {
|
|
3704
3704
|
scaleMode: Be.NEAREST,
|
|
3705
3705
|
resolution: 1,
|
|
3706
3706
|
width: this.width,
|
|
@@ -3960,7 +3960,7 @@ var Y = function(r) {
|
|
|
3960
3960
|
resolution: n[2]
|
|
3961
3961
|
}), new e(new Bu(t));
|
|
3962
3962
|
}, e;
|
|
3963
|
-
}(Y),
|
|
3963
|
+
}(Y), t_ = function() {
|
|
3964
3964
|
function r(e) {
|
|
3965
3965
|
this.texturePool = {}, this.textureOptions = e || {}, this.enableFullScreen = !1, this._pixelsWidth = 0, this._pixelsHeight = 0;
|
|
3966
3966
|
}
|
|
@@ -4019,9 +4019,9 @@ var Y = function(r) {
|
|
|
4019
4019
|
}, r.from = function(e, t, i, n, s) {
|
|
4020
4020
|
return new r(e, t, i, n, s);
|
|
4021
4021
|
}, r;
|
|
4022
|
-
}(),
|
|
4022
|
+
}(), e_ = 0, Dt = function() {
|
|
4023
4023
|
function r(e, t, i) {
|
|
4024
|
-
t === void 0 && (t = !0), i === void 0 && (i = !1), this.data = e || new Float32Array(1), this._glBuffers = {}, this._updateID = 0, this.index = i, this.static = t, this.id =
|
|
4024
|
+
t === void 0 && (t = !0), i === void 0 && (i = !1), this.data = e || new Float32Array(1), this._glBuffers = {}, this._updateID = 0, this.index = i, this.static = t, this.id = e_++, this.disposeRunner = new kt("disposeBuffer");
|
|
4025
4025
|
}
|
|
4026
4026
|
return r.prototype.update = function(e) {
|
|
4027
4027
|
e instanceof Array && (e = new Float32Array(e)), this.data = e || this.data, this._updateID++;
|
|
@@ -4041,18 +4041,18 @@ var Y = function(r) {
|
|
|
4041
4041
|
}), r.from = function(e) {
|
|
4042
4042
|
return e instanceof Array && (e = new Float32Array(e)), new r(e);
|
|
4043
4043
|
}, r;
|
|
4044
|
-
}(),
|
|
4044
|
+
}(), i_ = {
|
|
4045
4045
|
Float32Array,
|
|
4046
4046
|
Uint32Array,
|
|
4047
4047
|
Int32Array,
|
|
4048
4048
|
Uint8Array
|
|
4049
4049
|
};
|
|
4050
|
-
function
|
|
4050
|
+
function r_(r, e) {
|
|
4051
4051
|
for (var t = 0, i = 0, n = {}, s = 0; s < r.length; s++)
|
|
4052
4052
|
i += e[s], t += r[s].length;
|
|
4053
4053
|
for (var a = new ArrayBuffer(t * 4), o = null, h = 0, s = 0; s < r.length; s++) {
|
|
4054
4054
|
var u = e[s], l = r[s], f = Iu(l);
|
|
4055
|
-
n[f] || (n[f] = new
|
|
4055
|
+
n[f] || (n[f] = new i_[f](a)), o = n[f];
|
|
4056
4056
|
for (var c = 0; c < l.length; c++) {
|
|
4057
4057
|
var d = (c / u | 0) * i + h, v = c % u;
|
|
4058
4058
|
o[d + v] = l[c];
|
|
@@ -4061,7 +4061,7 @@ function i_(r, e) {
|
|
|
4061
4061
|
}
|
|
4062
4062
|
return new Float32Array(a);
|
|
4063
4063
|
}
|
|
4064
|
-
var ch = { 5126: 4, 5123: 2, 5121: 1 },
|
|
4064
|
+
var ch = { 5126: 4, 5123: 2, 5121: 1 }, n_ = 0, s_ = {
|
|
4065
4065
|
Float32Array,
|
|
4066
4066
|
Uint32Array,
|
|
4067
4067
|
Int32Array,
|
|
@@ -4069,7 +4069,7 @@ var ch = { 5126: 4, 5123: 2, 5121: 1 }, r_ = 0, n_ = {
|
|
|
4069
4069
|
Uint16Array
|
|
4070
4070
|
}, Qr = function() {
|
|
4071
4071
|
function r(e, t) {
|
|
4072
|
-
e === void 0 && (e = []), t === void 0 && (t = {}), this.buffers = e, this.indexBuffer = null, this.attributes = t, this.glVertexArrayObjects = {}, this.id =
|
|
4072
|
+
e === void 0 && (e = []), t === void 0 && (t = {}), this.buffers = e, this.indexBuffer = null, this.attributes = t, this.glVertexArrayObjects = {}, this.id = n_++, this.instanced = !1, this.instanceCount = 1, this.disposeRunner = new kt("disposeGeometry"), this.refCount = 0;
|
|
4073
4073
|
}
|
|
4074
4074
|
return r.prototype.addAttribute = function(e, t, i, n, s, a, o, h) {
|
|
4075
4075
|
if (i === void 0 && (i = 0), n === void 0 && (n = !1), h === void 0 && (h = !1), !t)
|
|
@@ -4099,7 +4099,7 @@ var ch = { 5126: 4, 5123: 2, 5121: 1 }, r_ = 0, n_ = {
|
|
|
4099
4099
|
var s = this.attributes[n], a = this.buffers[s.buffer];
|
|
4100
4100
|
e.push(a.data), t.push(s.size * ch[s.type] / 4), s.buffer = 0;
|
|
4101
4101
|
}
|
|
4102
|
-
for (i.data =
|
|
4102
|
+
for (i.data = r_(e, t), n = 0; n < this.buffers.length; n++)
|
|
4103
4103
|
this.buffers[n] !== this.indexBuffer && this.buffers[n].destroy();
|
|
4104
4104
|
return this.buffers = [i], this.indexBuffer && this.buffers.push(this.indexBuffer), this;
|
|
4105
4105
|
}, r.prototype.getSize = function() {
|
|
@@ -4127,7 +4127,7 @@ var ch = { 5126: 4, 5123: 2, 5121: 1 }, r_ = 0, n_ = {
|
|
|
4127
4127
|
n[h] = n[h] || 0, n[h] += a.buffers[h].data.length, s[h] = 0;
|
|
4128
4128
|
}
|
|
4129
4129
|
for (var o = 0; o < a.buffers.length; o++)
|
|
4130
|
-
i[o] = new
|
|
4130
|
+
i[o] = new s_[Iu(a.buffers[o].data)](n[o]), t.buffers[o] = new Dt(i[o]);
|
|
4131
4131
|
for (var o = 0; o < e.length; o++) {
|
|
4132
4132
|
a = e[o];
|
|
4133
4133
|
for (var h = 0; h < a.buffers.length; h++)
|
|
@@ -4152,7 +4152,7 @@ var ch = { 5126: 4, 5123: 2, 5121: 1 }, r_ = 0, n_ = {
|
|
|
4152
4152
|
}
|
|
4153
4153
|
return t;
|
|
4154
4154
|
}, r;
|
|
4155
|
-
}(),
|
|
4155
|
+
}(), a_ = function(r) {
|
|
4156
4156
|
pt(e, r);
|
|
4157
4157
|
function e() {
|
|
4158
4158
|
var t = r.call(this) || this;
|
|
@@ -4198,9 +4198,9 @@ var ch = { 5126: 4, 5123: 2, 5121: 1 }, r_ = 0, n_ = {
|
|
|
4198
4198
|
}, e.prototype.invalidate = function() {
|
|
4199
4199
|
return this.vertexBuffer._updateID++, this.uvBuffer._updateID++, this;
|
|
4200
4200
|
}, e;
|
|
4201
|
-
}(Qr),
|
|
4201
|
+
}(Qr), o_ = 0, Ni = function() {
|
|
4202
4202
|
function r(e, t, i) {
|
|
4203
|
-
this.group = !0, this.syncUniforms = {}, this.dirtyId = 0, this.id =
|
|
4203
|
+
this.group = !0, this.syncUniforms = {}, this.dirtyId = 0, this.id = o_++, this.static = !!t, this.ubo = !!i, e instanceof Dt ? (this.buffer = e, this.buffer.type = Ue.UNIFORM_BUFFER, this.autoManage = !1, this.ubo = !0) : (this.uniforms = e, this.ubo && (this.buffer = new Dt(new Float32Array(1)), this.buffer.type = Ue.UNIFORM_BUFFER, this.autoManage = !0));
|
|
4204
4204
|
}
|
|
4205
4205
|
return r.prototype.update = function() {
|
|
4206
4206
|
this.dirtyId++, !this.autoManage && this.buffer && this.buffer.update();
|
|
@@ -4214,16 +4214,16 @@ var ch = { 5126: 4, 5123: 2, 5121: 1 }, r_ = 0, n_ = {
|
|
|
4214
4214
|
}, r.uboFrom = function(e, t) {
|
|
4215
4215
|
return new r(e, t ?? !0, !0);
|
|
4216
4216
|
}, r;
|
|
4217
|
-
}(),
|
|
4217
|
+
}(), h_ = function() {
|
|
4218
4218
|
function r() {
|
|
4219
4219
|
this.renderTexture = null, this.target = null, this.legacy = !1, this.resolution = 1, this.multisample = Tt.NONE, this.sourceFrame = new $(), this.destinationFrame = new $(), this.bindingSourceFrame = new $(), this.bindingDestinationFrame = new $(), this.filters = [], this.transform = null;
|
|
4220
4220
|
}
|
|
4221
4221
|
return r.prototype.clear = function() {
|
|
4222
4222
|
this.target = null, this.filters = null, this.renderTexture = null;
|
|
4223
4223
|
}, r;
|
|
4224
|
-
}(), fn = [new ft(), new ft(), new ft(), new ft()], Ts = new Ft(),
|
|
4224
|
+
}(), fn = [new ft(), new ft(), new ft(), new ft()], Ts = new Ft(), u_ = function() {
|
|
4225
4225
|
function r(e) {
|
|
4226
|
-
this.renderer = e, this.defaultFilterStack = [{}], this.texturePool = new
|
|
4226
|
+
this.renderer = e, this.defaultFilterStack = [{}], this.texturePool = new t_(), this.texturePool.setScreenSize(e.view), this.statePool = [], this.quad = new a_(), this.quadUv = new Gu(), this.tempRect = new $(), this.activeState = {}, this.globalUniforms = new Ni({
|
|
4227
4227
|
outputFrame: new $(),
|
|
4228
4228
|
inputSize: new Float32Array(4),
|
|
4229
4229
|
inputPixel: new Float32Array(4),
|
|
@@ -4234,7 +4234,7 @@ var ch = { 5126: 4, 5123: 2, 5121: 1 }, r_ = 0, n_ = {
|
|
|
4234
4234
|
}, !0), this.forceClear = !1, this.useMaxPadding = !1;
|
|
4235
4235
|
}
|
|
4236
4236
|
return r.prototype.push = function(e, t) {
|
|
4237
|
-
for (var i, n, s = this.renderer, a = this.defaultFilterStack, o = this.statePool.pop() || new
|
|
4237
|
+
for (var i, n, s = this.renderer, a = this.defaultFilterStack, o = this.statePool.pop() || new h_(), h = this.renderer.renderTexture, u = t[0].resolution, l = t[0].multisample, f = t[0].padding, c = t[0].autoFit, d = (i = t[0].legacy) !== null && i !== void 0 ? i : !0, v = 1; v < t.length; v++) {
|
|
4238
4238
|
var p = t[v];
|
|
4239
4239
|
u = Math.min(u, p.resolution), l = Math.min(l, p.multisample), f = this.useMaxPadding ? Math.max(f, p.padding) : f + p.padding, c = c && p.autoFit, d = d || ((n = p.legacy) !== null && n !== void 0 ? n : !0);
|
|
4240
4240
|
}
|
|
@@ -4330,7 +4330,7 @@ var ch = { 5126: 4, 5123: 2, 5121: 1 }, r_ = 0, n_ = {
|
|
|
4330
4330
|
this.flush();
|
|
4331
4331
|
}, r.prototype.render = function(e) {
|
|
4332
4332
|
}, r;
|
|
4333
|
-
}(),
|
|
4333
|
+
}(), l_ = function() {
|
|
4334
4334
|
function r(e) {
|
|
4335
4335
|
this.renderer = e, this.emptyRenderer = new hs(e), this.currentRenderer = this.emptyRenderer;
|
|
4336
4336
|
}
|
|
@@ -4363,7 +4363,7 @@ var ch = { 5126: 4, 5123: 2, 5121: 1 }, r_ = 0, n_ = {
|
|
|
4363
4363
|
}, r.prototype.destroy = function() {
|
|
4364
4364
|
this.renderer = null;
|
|
4365
4365
|
}, r;
|
|
4366
|
-
}(), dh = 0,
|
|
4366
|
+
}(), dh = 0, f_ = function() {
|
|
4367
4367
|
function r(e) {
|
|
4368
4368
|
this.renderer = e, this.webGLVersion = 1, this.extensions = {}, this.supports = {
|
|
4369
4369
|
uint32Indices: !1
|
|
@@ -4429,12 +4429,12 @@ var ch = { 5126: 4, 5123: 2, 5121: 1 }, r_ = 0, n_ = {
|
|
|
4429
4429
|
var n = i || !!e.getExtension("OES_element_index_uint");
|
|
4430
4430
|
this.supports.uint32Indices = n, n || console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly");
|
|
4431
4431
|
}, r;
|
|
4432
|
-
}(),
|
|
4432
|
+
}(), c_ = function() {
|
|
4433
4433
|
function r(e) {
|
|
4434
4434
|
this.framebuffer = e, this.stencil = null, this.dirtyId = -1, this.dirtyFormat = -1, this.dirtySize = -1, this.multisample = Tt.NONE, this.msaaBuffer = null, this.blitFramebuffer = null, this.mipLevel = 0;
|
|
4435
4435
|
}
|
|
4436
4436
|
return r;
|
|
4437
|
-
}(),
|
|
4437
|
+
}(), d_ = new $(), p_ = function() {
|
|
4438
4438
|
function r(e) {
|
|
4439
4439
|
this.renderer = e, this.managedFramebuffers = [], this.unknownFramebuffer = new ya(10, 10), this.msaaSamples = null;
|
|
4440
4440
|
}
|
|
@@ -4481,7 +4481,7 @@ var ch = { 5126: 4, 5123: 2, 5121: 1 }, r_ = 0, n_ = {
|
|
|
4481
4481
|
var a = this.gl;
|
|
4482
4482
|
a.clearColor(e, t, i, n), a.clear(s);
|
|
4483
4483
|
}, r.prototype.initFramebuffer = function(e) {
|
|
4484
|
-
var t = this.gl, i = new
|
|
4484
|
+
var t = this.gl, i = new c_(t.createFramebuffer());
|
|
4485
4485
|
return i.multisample = this.detectSamples(e.multisample), e.glFramebuffers[this.CONTEXT_UID] = i, this.managedFramebuffers.push(e), e.disposeRunner.add(this), i;
|
|
4486
4486
|
}, r.prototype.resizeFramebuffer = function(e) {
|
|
4487
4487
|
var t = this.gl, i = e.glFramebuffers[this.CONTEXT_UID];
|
|
@@ -4533,7 +4533,7 @@ var ch = { 5126: 4, 5123: 2, 5121: 1 }, r_ = 0, n_ = {
|
|
|
4533
4533
|
return;
|
|
4534
4534
|
u.blitFramebuffer || (u.blitFramebuffer = new ya(s.width, s.height), u.blitFramebuffer.addColorTexture(0, l)), e = u.blitFramebuffer, e.colorTextures[0] !== l && (e.colorTextures[0] = l, e.dirtyId++, e.dirtyFormat++), (e.width !== s.width || e.height !== s.height) && (e.width = s.width, e.height = s.height, e.dirtyId++, e.dirtySize++);
|
|
4535
4535
|
}
|
|
4536
|
-
t || (t =
|
|
4536
|
+
t || (t = d_, t.width = s.width, t.height = s.height), i || (i = t);
|
|
4537
4537
|
var f = t.width === i.width && t.height === i.height;
|
|
4538
4538
|
this.bind(e), o.bindFramebuffer(o.READ_FRAMEBUFFER, u.framebuffer), o.blitFramebuffer(t.left, t.top, t.right, t.bottom, i.left, i.top, i.right, i.bottom, o.COLOR_BUFFER_BIT, f ? o.NEAREST : o.LINEAR);
|
|
4539
4539
|
}
|
|
@@ -4565,7 +4565,7 @@ var ch = { 5126: 4, 5123: 2, 5121: 1 }, r_ = 0, n_ = {
|
|
|
4565
4565
|
}, r.prototype.destroy = function() {
|
|
4566
4566
|
this.renderer = null;
|
|
4567
4567
|
}, r;
|
|
4568
|
-
}(), Es = { 5126: 4, 5123: 2, 5121: 1 },
|
|
4568
|
+
}(), Es = { 5126: 4, 5123: 2, 5121: 1 }, v_ = function() {
|
|
4569
4569
|
function r(e) {
|
|
4570
4570
|
this.renderer = e, this._activeGeometry = null, this._activeVao = null, this.hasVao = !0, this.hasInstance = !0, this.canUseUInt32ElementIndex = !1, this.managedGeometries = {};
|
|
4571
4571
|
}
|
|
@@ -4697,7 +4697,7 @@ var ch = { 5126: 4, 5123: 2, 5121: 1 }, r_ = 0, n_ = {
|
|
|
4697
4697
|
}, r.prototype.destroy = function() {
|
|
4698
4698
|
this.renderer = null;
|
|
4699
4699
|
}, r;
|
|
4700
|
-
}(),
|
|
4700
|
+
}(), __ = function() {
|
|
4701
4701
|
function r(e) {
|
|
4702
4702
|
e === void 0 && (e = null), this.type = Ot.NONE, this.autoDetect = !0, this.maskObject = e || null, this.pooled = !1, this.isMaskData = !0, this.resolution = null, this.multisample = G.FILTER_MULTISAMPLE, this.enabled = !0, this.colorMask = 15, this._filters = null, this._stencilCounter = 0, this._scissorCounter = 0, this._scissorRect = null, this._scissorRectLocal = null, this._colorMask = 15, this._target = null;
|
|
4703
4703
|
}
|
|
@@ -4737,7 +4737,7 @@ function vh(r, e) {
|
|
|
4737
4737
|
`);
|
|
4738
4738
|
o[0] = h, console.error(i), console.groupCollapsed("click to view full shader code"), console.warn.apply(console, o), console.groupEnd();
|
|
4739
4739
|
}
|
|
4740
|
-
function
|
|
4740
|
+
function g_(r, e, t, i) {
|
|
4741
4741
|
r.getProgramParameter(e, r.LINK_STATUS) || (r.getShaderParameter(t, r.COMPILE_STATUS) || vh(r, t), r.getShaderParameter(i, r.COMPILE_STATUS) || vh(r, i), console.error("PixiJS Error: Could not initialize shader."), r.getProgramInfoLog(e) !== "" && console.warn("PixiJS Warning: gl.getProgramInfoLog()", r.getProgramInfoLog(e)));
|
|
4742
4742
|
}
|
|
4743
4743
|
function Ss(r) {
|
|
@@ -4822,7 +4822,7 @@ function Uu(r, e) {
|
|
|
4822
4822
|
return null;
|
|
4823
4823
|
}
|
|
4824
4824
|
var ku = {}, mr = ku;
|
|
4825
|
-
function
|
|
4825
|
+
function m_() {
|
|
4826
4826
|
if (mr === ku || mr && mr.isContextLost()) {
|
|
4827
4827
|
var r = G.ADAPTER.createCanvas(), e = void 0;
|
|
4828
4828
|
G.PREFER_ENV >= Qe.WEBGL2 && (e = r.getContext("webgl2", {})), e || (e = r.getContext("webgl", {}) || r.getContext("experimental-webgl", {}), e ? e.getExtension("WEBGL_draw_buffers") : e = null), mr = e;
|
|
@@ -4830,10 +4830,10 @@ function g_() {
|
|
|
4830
4830
|
return mr;
|
|
4831
4831
|
}
|
|
4832
4832
|
var cn;
|
|
4833
|
-
function
|
|
4833
|
+
function y_() {
|
|
4834
4834
|
if (!cn) {
|
|
4835
4835
|
cn = se.MEDIUM;
|
|
4836
|
-
var r =
|
|
4836
|
+
var r = m_();
|
|
4837
4837
|
if (r && r.getShaderPrecisionFormat) {
|
|
4838
4838
|
var e = r.getShaderPrecisionFormat(r.FRAGMENT_SHADER, r.HIGH_FLOAT);
|
|
4839
4839
|
cn = e.precision ? se.HIGH : se.MEDIUM;
|
|
@@ -4850,7 +4850,7 @@ function _h(r, e, t) {
|
|
|
4850
4850
|
return r.replace("precision highp", "precision mediump");
|
|
4851
4851
|
return r;
|
|
4852
4852
|
}
|
|
4853
|
-
var
|
|
4853
|
+
var b_ = {
|
|
4854
4854
|
float: 1,
|
|
4855
4855
|
vec2: 2,
|
|
4856
4856
|
vec3: 3,
|
|
@@ -4873,7 +4873,7 @@ var y_ = {
|
|
|
4873
4873
|
sampler2D: 1
|
|
4874
4874
|
};
|
|
4875
4875
|
function Xu(r) {
|
|
4876
|
-
return
|
|
4876
|
+
return b_[r];
|
|
4877
4877
|
}
|
|
4878
4878
|
var dn = null, gh = {
|
|
4879
4879
|
FLOAT: "float",
|
|
@@ -5067,7 +5067,7 @@ var nr = [
|
|
|
5067
5067
|
}`;
|
|
5068
5068
|
}
|
|
5069
5069
|
}
|
|
5070
|
-
],
|
|
5070
|
+
], x_ = {
|
|
5071
5071
|
float: `
|
|
5072
5072
|
if (cv !== v)
|
|
5073
5073
|
{
|
|
@@ -5226,7 +5226,7 @@ var nr = [
|
|
|
5226
5226
|
|
|
5227
5227
|
gl.uniform1i(location, v);
|
|
5228
5228
|
}`
|
|
5229
|
-
},
|
|
5229
|
+
}, T_ = {
|
|
5230
5230
|
float: "gl.uniform1fv(location, v)",
|
|
5231
5231
|
vec2: "gl.uniform2fv(location, v)",
|
|
5232
5232
|
vec3: "gl.uniform3fv(location, v)",
|
|
@@ -5250,7 +5250,7 @@ var nr = [
|
|
|
5250
5250
|
samplerCube: "gl.uniform1iv(location, v)",
|
|
5251
5251
|
sampler2DArray: "gl.uniform1iv(location, v)"
|
|
5252
5252
|
};
|
|
5253
|
-
function
|
|
5253
|
+
function E_(r, e) {
|
|
5254
5254
|
var t, i = [`
|
|
5255
5255
|
var v = null;
|
|
5256
5256
|
var cv = null;
|
|
@@ -5274,7 +5274,7 @@ function T_(r, e) {
|
|
|
5274
5274
|
break;
|
|
5275
5275
|
}
|
|
5276
5276
|
if (!o) {
|
|
5277
|
-
var u = s.size === 1 && !s.isArray ?
|
|
5277
|
+
var u = s.size === 1 && !s.isArray ? x_ : T_, l = u[s.type].replace("location", 'ud["' + n + '"].location');
|
|
5278
5278
|
i.push(`
|
|
5279
5279
|
cu = ud["` + n + `"];
|
|
5280
5280
|
cv = cu.value;
|
|
@@ -5285,7 +5285,7 @@ function T_(r, e) {
|
|
|
5285
5285
|
return new Function("ud", "uv", "renderer", "syncData", i.join(`
|
|
5286
5286
|
`));
|
|
5287
5287
|
}
|
|
5288
|
-
var
|
|
5288
|
+
var S_ = [
|
|
5289
5289
|
"precision mediump float;",
|
|
5290
5290
|
"void main(void){",
|
|
5291
5291
|
"float test = 0.1;",
|
|
@@ -5294,17 +5294,17 @@ var E_ = [
|
|
|
5294
5294
|
"}"
|
|
5295
5295
|
].join(`
|
|
5296
5296
|
`);
|
|
5297
|
-
function
|
|
5297
|
+
function w_(r) {
|
|
5298
5298
|
for (var e = "", t = 0; t < r; ++t)
|
|
5299
5299
|
t > 0 && (e += `
|
|
5300
5300
|
else `), t < r - 1 && (e += "if(test == " + t + ".0){}");
|
|
5301
5301
|
return e;
|
|
5302
5302
|
}
|
|
5303
|
-
function
|
|
5303
|
+
function R_(r, e) {
|
|
5304
5304
|
if (r === 0)
|
|
5305
5305
|
throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");
|
|
5306
5306
|
for (var t = e.createShader(e.FRAGMENT_SHADER); ; ) {
|
|
5307
|
-
var i =
|
|
5307
|
+
var i = S_.replace(/%forloop%/gi, w_(r));
|
|
5308
5308
|
if (e.shaderSource(t, i), e.compileShader(t), !e.getShaderParameter(t, e.COMPILE_STATUS))
|
|
5309
5309
|
r = r / 2 | 0;
|
|
5310
5310
|
else
|
|
@@ -5313,7 +5313,7 @@ function w_(r, e) {
|
|
|
5313
5313
|
return r;
|
|
5314
5314
|
}
|
|
5315
5315
|
var yr;
|
|
5316
|
-
function
|
|
5316
|
+
function P_() {
|
|
5317
5317
|
if (typeof yr == "boolean")
|
|
5318
5318
|
return yr;
|
|
5319
5319
|
try {
|
|
@@ -5324,13 +5324,13 @@ function R_() {
|
|
|
5324
5324
|
}
|
|
5325
5325
|
return yr;
|
|
5326
5326
|
}
|
|
5327
|
-
var
|
|
5327
|
+
var C_ = `varying vec2 vTextureCoord;
|
|
5328
5328
|
|
|
5329
5329
|
uniform sampler2D uSampler;
|
|
5330
5330
|
|
|
5331
5331
|
void main(void){
|
|
5332
5332
|
gl_FragColor *= texture2D(uSampler, vTextureCoord);
|
|
5333
|
-
}`,
|
|
5333
|
+
}`, O_ = `attribute vec2 aVertexPosition;
|
|
5334
5334
|
attribute vec2 aTextureCoord;
|
|
5335
5335
|
|
|
5336
5336
|
uniform mat3 projectionMatrix;
|
|
@@ -5341,21 +5341,21 @@ void main(void){
|
|
|
5341
5341
|
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
|
5342
5342
|
vTextureCoord = aTextureCoord;
|
|
5343
5343
|
}
|
|
5344
|
-
`,
|
|
5344
|
+
`, A_ = 0, pn = {}, tn = function() {
|
|
5345
5345
|
function r(e, t, i) {
|
|
5346
|
-
i === void 0 && (i = "pixi-shader"), this.id =
|
|
5346
|
+
i === void 0 && (i = "pixi-shader"), this.id = A_++, this.vertexSrc = e || r.defaultVertexSrc, this.fragmentSrc = t || r.defaultFragmentSrc, this.vertexSrc = this.vertexSrc.trim(), this.fragmentSrc = this.fragmentSrc.trim(), this.vertexSrc.substring(0, 8) !== "#version" && (i = i.replace(/\s+/g, "-"), pn[i] ? (pn[i]++, i += "-" + pn[i]) : pn[i] = 1, this.vertexSrc = "#define SHADER_NAME " + i + `
|
|
5347
5347
|
` + this.vertexSrc, this.fragmentSrc = "#define SHADER_NAME " + i + `
|
|
5348
|
-
` + this.fragmentSrc, this.vertexSrc = _h(this.vertexSrc, G.PRECISION_VERTEX, se.HIGH), this.fragmentSrc = _h(this.fragmentSrc, G.PRECISION_FRAGMENT,
|
|
5348
|
+
` + this.fragmentSrc, this.vertexSrc = _h(this.vertexSrc, G.PRECISION_VERTEX, se.HIGH), this.fragmentSrc = _h(this.fragmentSrc, G.PRECISION_FRAGMENT, y_())), this.glPrograms = {}, this.syncUniforms = null;
|
|
5349
5349
|
}
|
|
5350
5350
|
return Object.defineProperty(r, "defaultVertexSrc", {
|
|
5351
5351
|
get: function() {
|
|
5352
|
-
return
|
|
5352
|
+
return O_;
|
|
5353
5353
|
},
|
|
5354
5354
|
enumerable: !1,
|
|
5355
5355
|
configurable: !0
|
|
5356
5356
|
}), Object.defineProperty(r, "defaultFragmentSrc", {
|
|
5357
5357
|
get: function() {
|
|
5358
|
-
return
|
|
5358
|
+
return C_;
|
|
5359
5359
|
},
|
|
5360
5360
|
enumerable: !1,
|
|
5361
5361
|
configurable: !0
|
|
@@ -5470,14 +5470,14 @@ void main(void){
|
|
|
5470
5470
|
var e = new r();
|
|
5471
5471
|
return e.depthTest = !1, e.blend = !0, e;
|
|
5472
5472
|
}, r;
|
|
5473
|
-
}(),
|
|
5473
|
+
}(), I_ = `varying vec2 vTextureCoord;
|
|
5474
5474
|
|
|
5475
5475
|
uniform sampler2D uSampler;
|
|
5476
5476
|
|
|
5477
5477
|
void main(void){
|
|
5478
5478
|
gl_FragColor = texture2D(uSampler, vTextureCoord);
|
|
5479
5479
|
}
|
|
5480
|
-
`,
|
|
5480
|
+
`, N_ = `attribute vec2 aVertexPosition;
|
|
5481
5481
|
|
|
5482
5482
|
uniform mat3 projectionMatrix;
|
|
5483
5483
|
|
|
@@ -5531,18 +5531,18 @@ void main(void)
|
|
|
5531
5531
|
configurable: !0
|
|
5532
5532
|
}), Object.defineProperty(e, "defaultVertexSrc", {
|
|
5533
5533
|
get: function() {
|
|
5534
|
-
return
|
|
5534
|
+
return N_;
|
|
5535
5535
|
},
|
|
5536
5536
|
enumerable: !1,
|
|
5537
5537
|
configurable: !0
|
|
5538
5538
|
}), Object.defineProperty(e, "defaultFragmentSrc", {
|
|
5539
5539
|
get: function() {
|
|
5540
|
-
return
|
|
5540
|
+
return I_;
|
|
5541
5541
|
},
|
|
5542
5542
|
enumerable: !1,
|
|
5543
5543
|
configurable: !0
|
|
5544
5544
|
}), e;
|
|
5545
|
-
}(hi),
|
|
5545
|
+
}(hi), M_ = `attribute vec2 aVertexPosition;
|
|
5546
5546
|
attribute vec2 aTextureCoord;
|
|
5547
5547
|
|
|
5548
5548
|
uniform mat3 projectionMatrix;
|
|
@@ -5558,7 +5558,7 @@ void main(void)
|
|
|
5558
5558
|
vTextureCoord = aTextureCoord;
|
|
5559
5559
|
vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;
|
|
5560
5560
|
}
|
|
5561
|
-
`,
|
|
5561
|
+
`, D_ = `varying vec2 vMaskCoord;
|
|
5562
5562
|
varying vec2 vTextureCoord;
|
|
5563
5563
|
|
|
5564
5564
|
uniform sampler2D uSampler;
|
|
@@ -5615,11 +5615,11 @@ void main(void)
|
|
|
5615
5615
|
var a = t.baseTexture, o = this.uClampFrame, h = this.clampMargin / a.resolution, u = this.clampOffset;
|
|
5616
5616
|
return o[0] = (t._frame.x + h + u) / a.width, o[1] = (t._frame.y + h + u) / a.height, o[2] = (t._frame.x + t._frame.width - h + u) / a.width, o[3] = (t._frame.y + t._frame.height - h + u) / a.height, this.uClampOffset[0] = u / a.realWidth, this.uClampOffset[1] = u / a.realHeight, this.isSimple = t._frame.width === a.width && t._frame.height === a.height && t.rotate === 0, !0;
|
|
5617
5617
|
}, r;
|
|
5618
|
-
}(),
|
|
5618
|
+
}(), F_ = function(r) {
|
|
5619
5619
|
pt(e, r);
|
|
5620
5620
|
function e(t, i, n) {
|
|
5621
5621
|
var s = this, a = null;
|
|
5622
|
-
return typeof t != "string" && i === void 0 && n === void 0 && (a = t, t = void 0, i = void 0, n = void 0), s = r.call(this, t ||
|
|
5622
|
+
return typeof t != "string" && i === void 0 && n === void 0 && (a = t, t = void 0, i = void 0, n = void 0), s = r.call(this, t || M_, i || D_, n) || this, s.maskSprite = a, s.maskMatrix = new Ft(), s;
|
|
5623
5623
|
}
|
|
5624
5624
|
return Object.defineProperty(e.prototype, "maskSprite", {
|
|
5625
5625
|
get: function() {
|
|
@@ -5634,7 +5634,7 @@ void main(void)
|
|
|
5634
5634
|
var a = this._maskSprite, o = a._texture;
|
|
5635
5635
|
o.valid && (o.uvMatrix || (o.uvMatrix = new vo(o, 0)), o.uvMatrix.update(), this.uniforms.npmAlpha = o.baseTexture.alphaMode ? 0 : 1, this.uniforms.mask = o, this.uniforms.otherMatrix = t.calculateSpriteMatrix(this.maskMatrix, a).prepend(o.uvMatrix.mapCoord), this.uniforms.alpha = a.worldAlpha, this.uniforms.maskClamp = o.uvMatrix.uClampFrame, t.applyFilter(this, i, n, s));
|
|
5636
5636
|
}, e;
|
|
5637
|
-
}(vi),
|
|
5637
|
+
}(vi), B_ = function() {
|
|
5638
5638
|
function r(e) {
|
|
5639
5639
|
this.renderer = e, this.enableScissor = !0, this.alphaMaskPool = [], this.maskDataPool = [], this.maskStack = [], this.alphaMaskIndex = 0;
|
|
5640
5640
|
}
|
|
@@ -5643,7 +5643,7 @@ void main(void)
|
|
|
5643
5643
|
}, r.prototype.push = function(e, t) {
|
|
5644
5644
|
var i = t;
|
|
5645
5645
|
if (!i.isMaskData) {
|
|
5646
|
-
var n = this.maskDataPool.pop() || new
|
|
5646
|
+
var n = this.maskDataPool.pop() || new __();
|
|
5647
5647
|
n.pooled = !0, n.maskObject = t, i = n;
|
|
5648
5648
|
}
|
|
5649
5649
|
var s = this.maskStack.length !== 0 ? this.maskStack[this.maskStack.length - 1] : null;
|
|
@@ -5691,7 +5691,7 @@ void main(void)
|
|
|
5691
5691
|
t ? t.isSprite ? e.type = Ot.SPRITE : this.enableScissor && this.renderer.scissor.testScissor(e) ? e.type = Ot.SCISSOR : e.type = Ot.STENCIL : e.type = Ot.COLOR;
|
|
5692
5692
|
}, r.prototype.pushSpriteMask = function(e) {
|
|
5693
5693
|
var t, i, n = e.maskObject, s = e._target, a = e._filters;
|
|
5694
|
-
a || (a = this.alphaMaskPool[this.alphaMaskIndex], a || (a = this.alphaMaskPool[this.alphaMaskIndex] = [new
|
|
5694
|
+
a || (a = this.alphaMaskPool[this.alphaMaskIndex], a || (a = this.alphaMaskPool[this.alphaMaskIndex] = [new F_()]));
|
|
5695
5695
|
var o = this.renderer, h = o.renderTexture, u, l;
|
|
5696
5696
|
if (h.current) {
|
|
5697
5697
|
var f = h.current;
|
|
@@ -5727,7 +5727,7 @@ void main(void)
|
|
|
5727
5727
|
}, r.prototype.destroy = function() {
|
|
5728
5728
|
this.renderer = null, this.maskStack = null;
|
|
5729
5729
|
}, r;
|
|
5730
|
-
}(), yh = new Ft(), bh = [],
|
|
5730
|
+
}(), yh = new Ft(), bh = [], L_ = function(r) {
|
|
5731
5731
|
pt(e, r);
|
|
5732
5732
|
function e(t) {
|
|
5733
5733
|
var i = r.call(this, t) || this;
|
|
@@ -5767,7 +5767,7 @@ void main(void)
|
|
|
5767
5767
|
var t = this.maskStack[this.maskStack.length - 1]._scissorRect, i;
|
|
5768
5768
|
this.renderer.renderTexture.current ? i = t.y : i = this.renderer.height - t.height - t.y, this.renderer.gl.scissor(t.x, i, t.width, t.height);
|
|
5769
5769
|
}, e;
|
|
5770
|
-
}(Wu),
|
|
5770
|
+
}(Wu), G_ = function(r) {
|
|
5771
5771
|
pt(e, r);
|
|
5772
5772
|
function e(t) {
|
|
5773
5773
|
var i = r.call(this, t) || this;
|
|
@@ -5793,7 +5793,7 @@ void main(void)
|
|
|
5793
5793
|
var t = this.renderer.gl;
|
|
5794
5794
|
t.stencilFunc(t.EQUAL, this.getStackLength(), 4294967295), t.stencilOp(t.KEEP, t.KEEP, t.KEEP);
|
|
5795
5795
|
}, e;
|
|
5796
|
-
}(Wu),
|
|
5796
|
+
}(Wu), U_ = function() {
|
|
5797
5797
|
function r(e) {
|
|
5798
5798
|
this.renderer = e, this.destinationFrame = null, this.sourceFrame = null, this.defaultFrame = null, this.projectionMatrix = new Ft(), this.transform = null;
|
|
5799
5799
|
}
|
|
@@ -5808,7 +5808,7 @@ void main(void)
|
|
|
5808
5808
|
}, r.prototype.destroy = function() {
|
|
5809
5809
|
this.renderer = null;
|
|
5810
5810
|
}, r;
|
|
5811
|
-
}(), yi = new $(), br = new $(),
|
|
5811
|
+
}(), yi = new $(), br = new $(), k_ = function() {
|
|
5812
5812
|
function r(e) {
|
|
5813
5813
|
this.renderer = e, this.clearColor = e._backgroundColorRgba, this.defaultMaskStack = [], this.current = null, this.sourceFrame = new $(), this.destinationFrame = new $(), this.viewportFrame = new $();
|
|
5814
5814
|
}
|
|
@@ -5836,10 +5836,10 @@ void main(void)
|
|
|
5836
5836
|
this.renderer = null;
|
|
5837
5837
|
}, r;
|
|
5838
5838
|
}();
|
|
5839
|
-
function
|
|
5839
|
+
function X_(r, e, t, i, n) {
|
|
5840
5840
|
t.buffer.update(n);
|
|
5841
5841
|
}
|
|
5842
|
-
var
|
|
5842
|
+
var H_ = {
|
|
5843
5843
|
float: `
|
|
5844
5844
|
data[offset] = v;
|
|
5845
5845
|
`,
|
|
@@ -5906,7 +5906,7 @@ var X_ = {
|
|
|
5906
5906
|
mat3: 16 * 3,
|
|
5907
5907
|
mat4: 16 * 4
|
|
5908
5908
|
};
|
|
5909
|
-
function
|
|
5909
|
+
function W_(r) {
|
|
5910
5910
|
for (var e = r.map(function(h) {
|
|
5911
5911
|
return {
|
|
5912
5912
|
data: h,
|
|
@@ -5924,7 +5924,7 @@ function H_(r) {
|
|
|
5924
5924
|
}
|
|
5925
5925
|
return n = Math.ceil(n / 16) * 16, { uboElements: e, size: n };
|
|
5926
5926
|
}
|
|
5927
|
-
function
|
|
5927
|
+
function V_(r, e) {
|
|
5928
5928
|
var t = [];
|
|
5929
5929
|
for (var i in r)
|
|
5930
5930
|
e[i] && t.push(e[i]);
|
|
@@ -5932,10 +5932,10 @@ function W_(r, e) {
|
|
|
5932
5932
|
return n.index - s.index;
|
|
5933
5933
|
}), t;
|
|
5934
5934
|
}
|
|
5935
|
-
function
|
|
5935
|
+
function z_(r, e) {
|
|
5936
5936
|
if (!r.autoManage)
|
|
5937
|
-
return { size: 0, syncFunc:
|
|
5938
|
-
for (var t =
|
|
5937
|
+
return { size: 0, syncFunc: X_ };
|
|
5938
|
+
for (var t = V_(r.uniforms, e), i = W_(t), n = i.uboElements, s = i.size, a = [`
|
|
5939
5939
|
var v = null;
|
|
5940
5940
|
var v2 = null;
|
|
5941
5941
|
var cv = null;
|
|
@@ -5972,7 +5972,7 @@ function V_(r, e) {
|
|
|
5972
5972
|
|
|
5973
5973
|
`);
|
|
5974
5974
|
} else {
|
|
5975
|
-
var m =
|
|
5975
|
+
var m = H_[h.data.type];
|
|
5976
5976
|
a.push(`
|
|
5977
5977
|
cv = ud.` + l + `.value;
|
|
5978
5978
|
v = uv.` + l + `;
|
|
@@ -5989,7 +5989,7 @@ function V_(r, e) {
|
|
|
5989
5989
|
`))
|
|
5990
5990
|
};
|
|
5991
5991
|
}
|
|
5992
|
-
var
|
|
5992
|
+
var Y_ = function() {
|
|
5993
5993
|
function r(e, t) {
|
|
5994
5994
|
this.program = e, this.uniformData = t, this.uniformGroups = {}, this.uniformDirtyGroups = {}, this.uniformBufferBindings = {};
|
|
5995
5995
|
}
|
|
@@ -5997,7 +5997,7 @@ var z_ = function() {
|
|
|
5997
5997
|
this.uniformData = null, this.uniformGroups = null, this.uniformDirtyGroups = null, this.uniformBufferBindings = null, this.program = null;
|
|
5998
5998
|
}, r;
|
|
5999
5999
|
}();
|
|
6000
|
-
function
|
|
6000
|
+
function j_(r, e) {
|
|
6001
6001
|
for (var t = {}, i = e.getProgramParameter(r, e.ACTIVE_ATTRIBUTES), n = 0; n < i; n++) {
|
|
6002
6002
|
var s = e.getActiveAttrib(r, n);
|
|
6003
6003
|
if (s.name.indexOf("gl_") !== 0) {
|
|
@@ -6012,7 +6012,7 @@ function Y_(r, e) {
|
|
|
6012
6012
|
}
|
|
6013
6013
|
return t;
|
|
6014
6014
|
}
|
|
6015
|
-
function
|
|
6015
|
+
function Z_(r, e) {
|
|
6016
6016
|
for (var t = {}, i = e.getProgramParameter(r, e.ACTIVE_UNIFORMS), n = 0; n < i; n++) {
|
|
6017
6017
|
var s = e.getActiveUniform(r, n), a = s.name.replace(/\[.*?\]$/, ""), o = !!s.name.match(/\[.*?\]$/), h = Hu(e, s.type);
|
|
6018
6018
|
t[a] = {
|
|
@@ -6026,9 +6026,9 @@ function j_(r, e) {
|
|
|
6026
6026
|
}
|
|
6027
6027
|
return t;
|
|
6028
6028
|
}
|
|
6029
|
-
function
|
|
6029
|
+
function K_(r, e) {
|
|
6030
6030
|
var t = ph(r, r.VERTEX_SHADER, e.vertexSrc), i = ph(r, r.FRAGMENT_SHADER, e.fragmentSrc), n = r.createProgram();
|
|
6031
|
-
if (r.attachShader(n, t), r.attachShader(n, i), r.linkProgram(n), r.getProgramParameter(n, r.LINK_STATUS) ||
|
|
6031
|
+
if (r.attachShader(n, t), r.attachShader(n, i), r.linkProgram(n), r.getProgramParameter(n, r.LINK_STATUS) || g_(r, n, t, i), e.attributeData = j_(n, r), e.uniformData = Z_(n, r), !/^[ \t]*#[ \t]*version[ \t]+300[ \t]+es[ \t]*$/m.test(e.vertexSrc)) {
|
|
6032
6032
|
var s = Object.keys(e.attributeData);
|
|
6033
6033
|
s.sort(function(l, f) {
|
|
6034
6034
|
return l > f ? 1 : -1;
|
|
@@ -6046,15 +6046,15 @@ function Z_(r, e) {
|
|
|
6046
6046
|
value: Uu(h.type, h.size)
|
|
6047
6047
|
};
|
|
6048
6048
|
}
|
|
6049
|
-
var u = new
|
|
6049
|
+
var u = new Y_(n, o);
|
|
6050
6050
|
return u;
|
|
6051
6051
|
}
|
|
6052
|
-
var
|
|
6052
|
+
var q_ = 0, vn = { textureCount: 0, uboCount: 0 }, $_ = function() {
|
|
6053
6053
|
function r(e) {
|
|
6054
|
-
this.destroyed = !1, this.renderer = e, this.systemCheck(), this.gl = null, this.shader = null, this.program = null, this.cache = {}, this._uboCache = {}, this.id =
|
|
6054
|
+
this.destroyed = !1, this.renderer = e, this.systemCheck(), this.gl = null, this.shader = null, this.program = null, this.cache = {}, this._uboCache = {}, this.id = q_++;
|
|
6055
6055
|
}
|
|
6056
6056
|
return r.prototype.systemCheck = function() {
|
|
6057
|
-
if (!
|
|
6057
|
+
if (!P_())
|
|
6058
6058
|
throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.");
|
|
6059
6059
|
}, r.prototype.contextChange = function(e) {
|
|
6060
6060
|
this.gl = e, this.reset();
|
|
@@ -6073,7 +6073,7 @@ var K_ = 0, vn = { textureCount: 0, uboCount: 0 }, q_ = function() {
|
|
|
6073
6073
|
n(t.uniformData, e.uniforms, this.renderer, i);
|
|
6074
6074
|
}, r.prototype.createSyncGroups = function(e) {
|
|
6075
6075
|
var t = this.getSignature(e, this.shader.program.uniformData, "u");
|
|
6076
|
-
return this.cache[t] || (this.cache[t] =
|
|
6076
|
+
return this.cache[t] || (this.cache[t] = E_(e, this.shader.program.uniformData)), e.syncUniforms[this.shader.program.id] = this.cache[t], e.syncUniforms[this.shader.program.id];
|
|
6077
6077
|
}, r.prototype.syncUniformBufferGroup = function(e, t) {
|
|
6078
6078
|
var i = this.getGlProgram();
|
|
6079
6079
|
if (!e.static || e.dirtyId !== 0 || !i.uniformGroups[e.id]) {
|
|
@@ -6088,7 +6088,7 @@ var K_ = 0, vn = { textureCount: 0, uboCount: 0 }, q_ = function() {
|
|
|
6088
6088
|
var s = this.gl.getUniformBlockIndex(t.program, i);
|
|
6089
6089
|
t.uniformBufferBindings[i] = this.shader.uniformBindCount, n.uniformBlockBinding(t.program, s, this.shader.uniformBindCount), this.shader.uniformBindCount++;
|
|
6090
6090
|
var a = this.getSignature(e, this.shader.program.uniformData, "ubo"), o = this._uboCache[a];
|
|
6091
|
-
if (o || (o = this._uboCache[a] =
|
|
6091
|
+
if (o || (o = this._uboCache[a] = z_(e, this.shader.program.uniformData)), e.autoManage) {
|
|
6092
6092
|
var h = new Float32Array(o.size / 4);
|
|
6093
6093
|
e.buffer.update(h);
|
|
6094
6094
|
}
|
|
@@ -6101,7 +6101,7 @@ var K_ = 0, vn = { textureCount: 0, uboCount: 0 }, q_ = function() {
|
|
|
6101
6101
|
}, r.prototype.getGlProgram = function() {
|
|
6102
6102
|
return this.shader ? this.shader.program.glPrograms[this.renderer.CONTEXT_UID] : null;
|
|
6103
6103
|
}, r.prototype.generateProgram = function(e) {
|
|
6104
|
-
var t = this.gl, i = e.program, n =
|
|
6104
|
+
var t = this.gl, i = e.program, n = K_(t, i);
|
|
6105
6105
|
return i.glPrograms[this.renderer.CONTEXT_UID] = n, n;
|
|
6106
6106
|
}, r.prototype.reset = function() {
|
|
6107
6107
|
this.program = null, this.shader = null;
|
|
@@ -6111,15 +6111,15 @@ var K_ = 0, vn = { textureCount: 0, uboCount: 0 }, q_ = function() {
|
|
|
6111
6111
|
this.renderer = null, this.destroyed = !0;
|
|
6112
6112
|
}, r;
|
|
6113
6113
|
}();
|
|
6114
|
-
function
|
|
6114
|
+
function J_(r, e) {
|
|
6115
6115
|
return e === void 0 && (e = []), e[H.NORMAL] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[H.ADD] = [r.ONE, r.ONE], e[H.MULTIPLY] = [r.DST_COLOR, r.ONE_MINUS_SRC_ALPHA, r.ONE, r.ONE_MINUS_SRC_ALPHA], e[H.SCREEN] = [r.ONE, r.ONE_MINUS_SRC_COLOR, r.ONE, r.ONE_MINUS_SRC_ALPHA], e[H.OVERLAY] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[H.DARKEN] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[H.LIGHTEN] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[H.COLOR_DODGE] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[H.COLOR_BURN] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[H.HARD_LIGHT] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[H.SOFT_LIGHT] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[H.DIFFERENCE] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[H.EXCLUSION] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[H.HUE] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[H.SATURATION] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[H.COLOR] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[H.LUMINOSITY] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[H.NONE] = [0, 0], e[H.NORMAL_NPM] = [r.SRC_ALPHA, r.ONE_MINUS_SRC_ALPHA, r.ONE, r.ONE_MINUS_SRC_ALPHA], e[H.ADD_NPM] = [r.SRC_ALPHA, r.ONE, r.ONE, r.ONE], e[H.SCREEN_NPM] = [r.SRC_ALPHA, r.ONE_MINUS_SRC_COLOR, r.ONE, r.ONE_MINUS_SRC_ALPHA], e[H.SRC_IN] = [r.DST_ALPHA, r.ZERO], e[H.SRC_OUT] = [r.ONE_MINUS_DST_ALPHA, r.ZERO], e[H.SRC_ATOP] = [r.DST_ALPHA, r.ONE_MINUS_SRC_ALPHA], e[H.DST_OVER] = [r.ONE_MINUS_DST_ALPHA, r.ONE], e[H.DST_IN] = [r.ZERO, r.SRC_ALPHA], e[H.DST_OUT] = [r.ZERO, r.ONE_MINUS_SRC_ALPHA], e[H.DST_ATOP] = [r.ONE_MINUS_DST_ALPHA, r.SRC_ALPHA], e[H.XOR] = [r.ONE_MINUS_DST_ALPHA, r.ONE_MINUS_SRC_ALPHA], e[H.SUBTRACT] = [r.ONE, r.ONE, r.ONE, r.ONE, r.FUNC_REVERSE_SUBTRACT, r.FUNC_ADD], e;
|
|
6116
6116
|
}
|
|
6117
|
-
var
|
|
6117
|
+
var Q_ = 0, tg = 1, eg = 2, ig = 3, rg = 4, ng = 5, sg = function() {
|
|
6118
6118
|
function r() {
|
|
6119
|
-
this.gl = null, this.stateId = 0, this.polygonOffset = 0, this.blendMode = H.NONE, this._blendEq = !1, this.map = [], this.map[
|
|
6119
|
+
this.gl = null, this.stateId = 0, this.polygonOffset = 0, this.blendMode = H.NONE, this._blendEq = !1, this.map = [], this.map[Q_] = this.setBlend, this.map[tg] = this.setOffset, this.map[eg] = this.setCullFace, this.map[ig] = this.setDepthTest, this.map[rg] = this.setFrontFace, this.map[ng] = this.setDepthMask, this.checks = [], this.defaultState = new Xi(), this.defaultState.blend = !0;
|
|
6120
6120
|
}
|
|
6121
6121
|
return r.prototype.contextChange = function(e) {
|
|
6122
|
-
this.gl = e, this.blendModes =
|
|
6122
|
+
this.gl = e, this.blendModes = J_(e), this.set(this.defaultState), this.reset();
|
|
6123
6123
|
}, r.prototype.set = function(e) {
|
|
6124
6124
|
if (e = e || this.defaultState, this.stateId !== e.data) {
|
|
6125
6125
|
for (var t = this.stateId ^ e.data, i = 0; t; )
|
|
@@ -6167,7 +6167,7 @@ var J_ = 0, Q_ = 1, tg = 2, eg = 3, ig = 4, rg = 5, ng = function() {
|
|
|
6167
6167
|
}, r.prototype.destroy = function() {
|
|
6168
6168
|
this.gl = null;
|
|
6169
6169
|
}, r;
|
|
6170
|
-
}(),
|
|
6170
|
+
}(), ag = function() {
|
|
6171
6171
|
function r(e) {
|
|
6172
6172
|
this.renderer = e, this.count = 0, this.checkCount = 0, this.maxIdle = G.GC_MAX_IDLE, this.checkCountMax = G.GC_MAX_CHECK_COUNT, this.mode = G.GC_MODE;
|
|
6173
6173
|
}
|
|
@@ -6192,7 +6192,7 @@ var J_ = 0, Q_ = 1, tg = 2, eg = 3, ig = 4, rg = 5, ng = function() {
|
|
|
6192
6192
|
this.renderer = null;
|
|
6193
6193
|
}, r;
|
|
6194
6194
|
}();
|
|
6195
|
-
function
|
|
6195
|
+
function og(r) {
|
|
6196
6196
|
var e, t, i, n, s, a, o, h, u, l, f, c, d, v, p, _, g, m, y, x, b, T, E;
|
|
6197
6197
|
return "WebGL2RenderingContext" in globalThis && r instanceof globalThis.WebGL2RenderingContext ? E = (e = {}, e[X.UNSIGNED_BYTE] = (t = {}, t[D.RGBA] = r.RGBA8, t[D.RGB] = r.RGB8, t[D.RG] = r.RG8, t[D.RED] = r.R8, t[D.RGBA_INTEGER] = r.RGBA8UI, t[D.RGB_INTEGER] = r.RGB8UI, t[D.RG_INTEGER] = r.RG8UI, t[D.RED_INTEGER] = r.R8UI, t[D.ALPHA] = r.ALPHA, t[D.LUMINANCE] = r.LUMINANCE, t[D.LUMINANCE_ALPHA] = r.LUMINANCE_ALPHA, t), e[X.BYTE] = (i = {}, i[D.RGBA] = r.RGBA8_SNORM, i[D.RGB] = r.RGB8_SNORM, i[D.RG] = r.RG8_SNORM, i[D.RED] = r.R8_SNORM, i[D.RGBA_INTEGER] = r.RGBA8I, i[D.RGB_INTEGER] = r.RGB8I, i[D.RG_INTEGER] = r.RG8I, i[D.RED_INTEGER] = r.R8I, i), e[X.UNSIGNED_SHORT] = (n = {}, n[D.RGBA_INTEGER] = r.RGBA16UI, n[D.RGB_INTEGER] = r.RGB16UI, n[D.RG_INTEGER] = r.RG16UI, n[D.RED_INTEGER] = r.R16UI, n[D.DEPTH_COMPONENT] = r.DEPTH_COMPONENT16, n), e[X.SHORT] = (s = {}, s[D.RGBA_INTEGER] = r.RGBA16I, s[D.RGB_INTEGER] = r.RGB16I, s[D.RG_INTEGER] = r.RG16I, s[D.RED_INTEGER] = r.R16I, s), e[X.UNSIGNED_INT] = (a = {}, a[D.RGBA_INTEGER] = r.RGBA32UI, a[D.RGB_INTEGER] = r.RGB32UI, a[D.RG_INTEGER] = r.RG32UI, a[D.RED_INTEGER] = r.R32UI, a[D.DEPTH_COMPONENT] = r.DEPTH_COMPONENT24, a), e[X.INT] = (o = {}, o[D.RGBA_INTEGER] = r.RGBA32I, o[D.RGB_INTEGER] = r.RGB32I, o[D.RG_INTEGER] = r.RG32I, o[D.RED_INTEGER] = r.R32I, o), e[X.FLOAT] = (h = {}, h[D.RGBA] = r.RGBA32F, h[D.RGB] = r.RGB32F, h[D.RG] = r.RG32F, h[D.RED] = r.R32F, h[D.DEPTH_COMPONENT] = r.DEPTH_COMPONENT32F, h), e[X.HALF_FLOAT] = (u = {}, u[D.RGBA] = r.RGBA16F, u[D.RGB] = r.RGB16F, u[D.RG] = r.RG16F, u[D.RED] = r.R16F, u), e[X.UNSIGNED_SHORT_5_6_5] = (l = {}, l[D.RGB] = r.RGB565, l), e[X.UNSIGNED_SHORT_4_4_4_4] = (f = {}, f[D.RGBA] = r.RGBA4, f), e[X.UNSIGNED_SHORT_5_5_5_1] = (c = {}, c[D.RGBA] = r.RGB5_A1, c), e[X.UNSIGNED_INT_2_10_10_10_REV] = (d = {}, d[D.RGBA] = r.RGB10_A2, d[D.RGBA_INTEGER] = r.RGB10_A2UI, d), e[X.UNSIGNED_INT_10F_11F_11F_REV] = (v = {}, v[D.RGB] = r.R11F_G11F_B10F, v), e[X.UNSIGNED_INT_5_9_9_9_REV] = (p = {}, p[D.RGB] = r.RGB9_E5, p), e[X.UNSIGNED_INT_24_8] = (_ = {}, _[D.DEPTH_STENCIL] = r.DEPTH24_STENCIL8, _), e[X.FLOAT_32_UNSIGNED_INT_24_8_REV] = (g = {}, g[D.DEPTH_STENCIL] = r.DEPTH32F_STENCIL8, g), e) : E = (m = {}, m[X.UNSIGNED_BYTE] = (y = {}, y[D.RGBA] = r.RGBA, y[D.RGB] = r.RGB, y[D.ALPHA] = r.ALPHA, y[D.LUMINANCE] = r.LUMINANCE, y[D.LUMINANCE_ALPHA] = r.LUMINANCE_ALPHA, y), m[X.UNSIGNED_SHORT_5_6_5] = (x = {}, x[D.RGB] = r.RGB, x), m[X.UNSIGNED_SHORT_4_4_4_4] = (b = {}, b[D.RGBA] = r.RGBA, b), m[X.UNSIGNED_SHORT_5_5_5_1] = (T = {}, T[D.RGBA] = r.RGBA, T), m), E;
|
|
6198
6198
|
}
|
|
@@ -6201,13 +6201,13 @@ var Is = function() {
|
|
|
6201
6201
|
this.texture = e, this.width = -1, this.height = -1, this.dirtyId = -1, this.dirtyStyleId = -1, this.mipmap = !1, this.wrapMode = 33071, this.type = X.UNSIGNED_BYTE, this.internalFormat = D.RGBA, this.samplerType = 0;
|
|
6202
6202
|
}
|
|
6203
6203
|
return r;
|
|
6204
|
-
}(),
|
|
6204
|
+
}(), hg = function() {
|
|
6205
6205
|
function r(e) {
|
|
6206
6206
|
this.renderer = e, this.boundTextures = [], this.currentLocation = -1, this.managedTextures = [], this._unknownBoundTextures = !1, this.unknownTexture = new Q(), this.hasIntegerTextures = !1;
|
|
6207
6207
|
}
|
|
6208
6208
|
return r.prototype.contextChange = function() {
|
|
6209
6209
|
var e = this.gl = this.renderer.gl;
|
|
6210
|
-
this.CONTEXT_UID = this.renderer.CONTEXT_UID, this.webGLVersion = this.renderer.context.webGLVersion, this.internalFormats =
|
|
6210
|
+
this.CONTEXT_UID = this.renderer.CONTEXT_UID, this.webGLVersion = this.renderer.context.webGLVersion, this.internalFormats = og(e);
|
|
6211
6211
|
var t = e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS);
|
|
6212
6212
|
this.boundTextures.length = t;
|
|
6213
6213
|
for (var i = 0; i < t; i++)
|
|
@@ -6294,7 +6294,7 @@ var Is = function() {
|
|
|
6294
6294
|
}, r.prototype.destroy = function() {
|
|
6295
6295
|
this.renderer = null;
|
|
6296
6296
|
}, r;
|
|
6297
|
-
}(), Ns = new Ft(),
|
|
6297
|
+
}(), Ns = new Ft(), ug = function(r) {
|
|
6298
6298
|
pt(e, r);
|
|
6299
6299
|
function e(t, i) {
|
|
6300
6300
|
t === void 0 && (t = Dr.UNKNOWN);
|
|
@@ -6322,7 +6322,7 @@ var Is = function() {
|
|
|
6322
6322
|
this.screen.width = n, this.screen.height = s, this.autoDensity && (this.view.style.width = n + "px", this.view.style.height = s + "px"), this.emit("resize", n, s);
|
|
6323
6323
|
}, e.prototype.generateTexture = function(t, i, n, s) {
|
|
6324
6324
|
i === void 0 && (i = {}), typeof i == "number" && (Ce("6.1.0", "generateTexture options (scaleMode, resolution, region) are now object options."), i = { scaleMode: i, resolution: n, region: s });
|
|
6325
|
-
var a = i.region, o =
|
|
6325
|
+
var a = i.region, o = zv(i, ["region"]);
|
|
6326
6326
|
s = a || t.getLocalBounds(null, !0), s.width === 0 && (s.width = 1), s.height === 0 && (s.height = 1);
|
|
6327
6327
|
var h = Ui.create(ma({ width: s.width, height: s.height }, o));
|
|
6328
6328
|
return Ns.tx = -s.x, Ns.ty = -s.y, this.render(t, {
|
|
@@ -6356,12 +6356,12 @@ var Is = function() {
|
|
|
6356
6356
|
enumerable: !1,
|
|
6357
6357
|
configurable: !0
|
|
6358
6358
|
}), e;
|
|
6359
|
-
}($r),
|
|
6359
|
+
}($r), lg = function() {
|
|
6360
6360
|
function r(e) {
|
|
6361
6361
|
this.buffer = e || null, this.updateID = -1, this.byteLength = -1, this.refCount = 0;
|
|
6362
6362
|
}
|
|
6363
6363
|
return r;
|
|
6364
|
-
}(),
|
|
6364
|
+
}(), fg = function() {
|
|
6365
6365
|
function r(e) {
|
|
6366
6366
|
this.renderer = e, this.managedBuffers = {}, this.boundBufferBases = {};
|
|
6367
6367
|
}
|
|
@@ -6403,7 +6403,7 @@ var Is = function() {
|
|
|
6403
6403
|
this.dispose(this.managedBuffers[t[i]], e);
|
|
6404
6404
|
}, r.prototype.createGLBuffer = function(e) {
|
|
6405
6405
|
var t = this, i = t.CONTEXT_UID, n = t.gl;
|
|
6406
|
-
return e._glBuffers[i] = new
|
|
6406
|
+
return e._glBuffers[i] = new lg(n.createBuffer()), this.managedBuffers[e.id] = e, e.disposeRunner.add(this), e._glBuffers[i];
|
|
6407
6407
|
}, r;
|
|
6408
6408
|
}(), zu = function(r) {
|
|
6409
6409
|
pt(e, r);
|
|
@@ -6419,17 +6419,17 @@ var Is = function() {
|
|
|
6419
6419
|
resize: new kt("resize")
|
|
6420
6420
|
}, i.runners.contextChange.add(i), i.globalUniforms = new Ni({
|
|
6421
6421
|
projectionMatrix: new Ft()
|
|
6422
|
-
}, !0), i.addSystem(
|
|
6422
|
+
}, !0), i.addSystem(B_, "mask").addSystem(f_, "context").addSystem(sg, "state").addSystem($_, "shader").addSystem(hg, "texture").addSystem(fg, "buffer").addSystem(v_, "geometry").addSystem(p_, "framebuffer").addSystem(L_, "scissor").addSystem(G_, "stencil").addSystem(U_, "projection").addSystem(ag, "textureGC").addSystem(u_, "filter").addSystem(k_, "renderTexture").addSystem(l_, "batch"), i.initPlugins(e.__plugins), i.multisample = void 0, t.context ? i.context.initFromContext(t.context) : i.context.initFromOptions({
|
|
6423
6423
|
alpha: !!i.useContextAlpha,
|
|
6424
6424
|
antialias: t.antialias,
|
|
6425
6425
|
premultipliedAlpha: i.useContextAlpha && i.useContextAlpha !== "notMultiplied",
|
|
6426
6426
|
stencil: !0,
|
|
6427
6427
|
preserveDrawingBuffer: t.preserveDrawingBuffer,
|
|
6428
6428
|
powerPreference: i.options.powerPreference
|
|
6429
|
-
}), i.renderingToScreen = !0,
|
|
6429
|
+
}), i.renderingToScreen = !0, Zc(i.context.webGLVersion === 2 ? "WebGL 2" : "WebGL 1"), i.resize(i.options.width, i.options.height), i;
|
|
6430
6430
|
}
|
|
6431
6431
|
return e.create = function(t) {
|
|
6432
|
-
if (
|
|
6432
|
+
if (Kc())
|
|
6433
6433
|
return new e(t);
|
|
6434
6434
|
throw new Error('WebGL unsupported in this browser, use "pixi.js-legacy" for fallback canvas2d support.');
|
|
6435
6435
|
}, e.prototype.contextChange = function() {
|
|
@@ -6487,12 +6487,12 @@ var Is = function() {
|
|
|
6487
6487
|
ref: i
|
|
6488
6488
|
});
|
|
6489
6489
|
}, e.__plugins = {}, e;
|
|
6490
|
-
}(
|
|
6490
|
+
}(ug);
|
|
6491
6491
|
ii.handleByMap(nt.RendererPlugin, zu.__plugins);
|
|
6492
|
-
function
|
|
6492
|
+
function cg(r) {
|
|
6493
6493
|
return zu.create(r);
|
|
6494
6494
|
}
|
|
6495
|
-
var
|
|
6495
|
+
var dg = `attribute vec2 aVertexPosition;
|
|
6496
6496
|
attribute vec2 aTextureCoord;
|
|
6497
6497
|
|
|
6498
6498
|
uniform mat3 projectionMatrix;
|
|
@@ -6503,7 +6503,7 @@ void main(void)
|
|
|
6503
6503
|
{
|
|
6504
6504
|
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
|
6505
6505
|
vTextureCoord = aTextureCoord;
|
|
6506
|
-
}`,
|
|
6506
|
+
}`, pg = `attribute vec2 aVertexPosition;
|
|
6507
6507
|
|
|
6508
6508
|
uniform mat3 projectionMatrix;
|
|
6509
6509
|
|
|
@@ -6529,7 +6529,7 @@ void main(void)
|
|
|
6529
6529
|
gl_Position = filterVertexPosition();
|
|
6530
6530
|
vTextureCoord = filterTextureCoord();
|
|
6531
6531
|
}
|
|
6532
|
-
`,
|
|
6532
|
+
`, vg = dg, Yu = pg, ba = function() {
|
|
6533
6533
|
function r() {
|
|
6534
6534
|
this.texArray = null, this.blend = 0, this.type = Re.TRIANGLES, this.start = 0, this.size = 0, this.data = null;
|
|
6535
6535
|
}
|
|
@@ -6597,7 +6597,7 @@ void main(void)
|
|
|
6597
6597
|
throw new Error(e + " isn't a valid view type");
|
|
6598
6598
|
}
|
|
6599
6599
|
}, r;
|
|
6600
|
-
}(),
|
|
6600
|
+
}(), _g = function(r) {
|
|
6601
6601
|
pt(e, r);
|
|
6602
6602
|
function e(t) {
|
|
6603
6603
|
var i = r.call(this, t) || this;
|
|
@@ -6605,7 +6605,7 @@ void main(void)
|
|
|
6605
6605
|
}
|
|
6606
6606
|
return e.prototype.contextChange = function() {
|
|
6607
6607
|
var t = this.renderer.gl;
|
|
6608
|
-
G.PREFER_ENV === Qe.WEBGL_LEGACY ? this.MAX_TEXTURES = 1 : (this.MAX_TEXTURES = Math.min(t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS), G.SPRITE_MAX_TEXTURES), this.MAX_TEXTURES =
|
|
6608
|
+
G.PREFER_ENV === Qe.WEBGL_LEGACY ? this.MAX_TEXTURES = 1 : (this.MAX_TEXTURES = Math.min(t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS), G.SPRITE_MAX_TEXTURES), this.MAX_TEXTURES = R_(this.MAX_TEXTURES, t)), this._shader = this.shaderGenerator.generateShader(this.MAX_TEXTURES);
|
|
6609
6609
|
for (var i = 0; i < this._packedGeometryPoolSize; i++)
|
|
6610
6610
|
this._packedGeometries[i] = new this.geometryClass();
|
|
6611
6611
|
this.initFlushBuffers();
|
|
@@ -6677,7 +6677,7 @@ void main(void)
|
|
|
6677
6677
|
for (var _ = 0; _ < f.length; _++)
|
|
6678
6678
|
n[a++] = u + f[_];
|
|
6679
6679
|
}, e._drawCallPool = [], e._textureArrayPool = [], e;
|
|
6680
|
-
}(hs),
|
|
6680
|
+
}(hs), gg = function() {
|
|
6681
6681
|
function r(e, t) {
|
|
6682
6682
|
if (this.vertexSrc = e, this.fragTemplate = t, this.programCache = {}, this.defaultGroupCache = {}, t.indexOf("%count%") < 0)
|
|
6683
6683
|
throw new Error('Fragment template must contain "%count%".');
|
|
@@ -6752,7 +6752,7 @@ void main(void){
|
|
|
6752
6752
|
%forloop%
|
|
6753
6753
|
gl_FragColor = color * vColor;
|
|
6754
6754
|
}
|
|
6755
|
-
`,
|
|
6755
|
+
`, mg = function() {
|
|
6756
6756
|
function r() {
|
|
6757
6757
|
}
|
|
6758
6758
|
return r.create = function(e) {
|
|
@@ -6766,10 +6766,10 @@ void main(void){
|
|
|
6766
6766
|
pt(h, o);
|
|
6767
6767
|
function h(u) {
|
|
6768
6768
|
var l = o.call(this, u) || this;
|
|
6769
|
-
return l.shaderGenerator = new
|
|
6769
|
+
return l.shaderGenerator = new gg(i, n), l.geometryClass = a, l.vertexSize = s, l;
|
|
6770
6770
|
}
|
|
6771
6771
|
return h;
|
|
6772
|
-
}(
|
|
6772
|
+
}(_g);
|
|
6773
6773
|
}, Object.defineProperty(r, "defaultVertexSrc", {
|
|
6774
6774
|
get: function() {
|
|
6775
6775
|
return xh;
|
|
@@ -6783,14 +6783,14 @@ void main(void){
|
|
|
6783
6783
|
enumerable: !1,
|
|
6784
6784
|
configurable: !0
|
|
6785
6785
|
}), r;
|
|
6786
|
-
}(), Zu =
|
|
6786
|
+
}(), Zu = mg.create();
|
|
6787
6787
|
Object.assign(Zu, {
|
|
6788
6788
|
extension: {
|
|
6789
6789
|
name: "batch",
|
|
6790
6790
|
type: nt.RendererPlugin
|
|
6791
6791
|
}
|
|
6792
6792
|
});
|
|
6793
|
-
var
|
|
6793
|
+
var yg = {
|
|
6794
6794
|
accessible: !1,
|
|
6795
6795
|
accessibleTitle: null,
|
|
6796
6796
|
accessibleHint: null,
|
|
@@ -6802,12 +6802,12 @@ var mg = {
|
|
|
6802
6802
|
accessibleChildren: !0,
|
|
6803
6803
|
renderId: -1
|
|
6804
6804
|
};
|
|
6805
|
-
Pt.mixin(
|
|
6806
|
-
var
|
|
6805
|
+
Pt.mixin(yg);
|
|
6806
|
+
var bg = 9, _n = 100, xg = 0, Tg = 0, Eh = 2, Sh = 1, Eg = -1e3, Sg = -1e3, wg = 2, Rg = function() {
|
|
6807
6807
|
function r(e) {
|
|
6808
6808
|
this.debug = !1, this._isActive = !1, this._isMobileAccessibility = !1, this.pool = [], this.renderId = 0, this.children = [], this.androidUpdateCount = 0, this.androidUpdateFrequency = 500, this._hookDiv = null, (Le.tablet || Le.phone) && this.createTouchHook();
|
|
6809
6809
|
var t = document.createElement("div");
|
|
6810
|
-
t.style.width = _n + "px", t.style.height = _n + "px", t.style.position = "absolute", t.style.top =
|
|
6810
|
+
t.style.width = _n + "px", t.style.height = _n + "px", t.style.position = "absolute", t.style.top = xg + "px", t.style.left = Tg + "px", t.style.zIndex = Eh.toString(), this.div = t, this.renderer = e, this._onKeyDown = this._onKeyDown.bind(this), this._onMouseMove = this._onMouseMove.bind(this), globalThis.addEventListener("keydown", this._onKeyDown, !1);
|
|
6811
6811
|
}
|
|
6812
6812
|
return Object.defineProperty(r.prototype, "isActive", {
|
|
6813
6813
|
get: function() {
|
|
@@ -6823,7 +6823,7 @@ var yg = 9, _n = 100, bg = 0, xg = 0, Eh = 2, Sh = 1, Tg = -1e3, Eg = -1e3, Sg =
|
|
|
6823
6823
|
configurable: !0
|
|
6824
6824
|
}), r.prototype.createTouchHook = function() {
|
|
6825
6825
|
var e = this, t = document.createElement("button");
|
|
6826
|
-
t.style.width = Sh + "px", t.style.height = Sh + "px", t.style.position = "absolute", t.style.top =
|
|
6826
|
+
t.style.width = Sh + "px", t.style.height = Sh + "px", t.style.position = "absolute", t.style.top = Eg + "px", t.style.left = Sg + "px", t.style.zIndex = wg.toString(), t.style.backgroundColor = "#FF0000", t.title = "select to enable accessibility for this content", t.addEventListener("focus", function() {
|
|
6827
6827
|
e._isMobileAccessibility = !0, e.activate(), e.destroyTouchHook();
|
|
6828
6828
|
}), document.body.appendChild(t), this._hookDiv = t;
|
|
6829
6829
|
}, r.prototype.destroyTouchHook = function() {
|
|
@@ -6881,7 +6881,7 @@ var yg = 9, _n = 100, bg = 0, xg = 0, Eh = 2, Sh = 1, Tg = -1e3, Eg = -1e3, Sg =
|
|
|
6881
6881
|
var t = this.renderer.plugins.interaction, i = e.target.displayObject, n = t.eventData;
|
|
6882
6882
|
t.dispatchEvent(i, "mouseout", n);
|
|
6883
6883
|
}, r.prototype._onKeyDown = function(e) {
|
|
6884
|
-
e.keyCode ===
|
|
6884
|
+
e.keyCode === bg && this.activate();
|
|
6885
6885
|
}, r.prototype._onMouseMove = function(e) {
|
|
6886
6886
|
e.movementX === 0 && e.movementY === 0 || this.deactivate();
|
|
6887
6887
|
}, r.prototype.destroy = function() {
|
|
@@ -6922,14 +6922,14 @@ var Ea = function(r, e) {
|
|
|
6922
6922
|
i.hasOwnProperty(n) && (t[n] = i[n]);
|
|
6923
6923
|
}, Ea(r, e);
|
|
6924
6924
|
};
|
|
6925
|
-
function
|
|
6925
|
+
function Pg(r, e) {
|
|
6926
6926
|
Ea(r, e);
|
|
6927
6927
|
function t() {
|
|
6928
6928
|
this.constructor = r;
|
|
6929
6929
|
}
|
|
6930
6930
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
6931
6931
|
}
|
|
6932
|
-
var
|
|
6932
|
+
var Cg = function() {
|
|
6933
6933
|
function r() {
|
|
6934
6934
|
this.stopped = !1, this.stopsPropagatingAt = null, this.stopPropagationHint = !1, this.target = null, this.currentTarget = null, this.type = null, this.data = null;
|
|
6935
6935
|
}
|
|
@@ -6998,7 +6998,7 @@ var Pg = function() {
|
|
|
6998
6998
|
LEFT_DOWN: 1 << 1,
|
|
6999
6999
|
RIGHT_DOWN: 1 << 2
|
|
7000
7000
|
}), r;
|
|
7001
|
-
}(),
|
|
7001
|
+
}(), Og = function() {
|
|
7002
7002
|
function r() {
|
|
7003
7003
|
this._tempPoint = new ft();
|
|
7004
7004
|
}
|
|
@@ -7028,7 +7028,7 @@ var Pg = function() {
|
|
|
7028
7028
|
}, r.prototype.findHit = function(e, t, i, n) {
|
|
7029
7029
|
this.recursiveFindHit(e, t, i, n, !1);
|
|
7030
7030
|
}, r;
|
|
7031
|
-
}(),
|
|
7031
|
+
}(), Ag = {
|
|
7032
7032
|
interactive: !1,
|
|
7033
7033
|
interactiveChildren: !0,
|
|
7034
7034
|
hitArea: null,
|
|
@@ -7044,20 +7044,20 @@ var Pg = function() {
|
|
|
7044
7044
|
},
|
|
7045
7045
|
_trackedPointers: void 0
|
|
7046
7046
|
};
|
|
7047
|
-
Pt.mixin(
|
|
7047
|
+
Pt.mixin(Ag);
|
|
7048
7048
|
var gn = 1, mn = {
|
|
7049
7049
|
target: null,
|
|
7050
7050
|
data: {
|
|
7051
7051
|
global: null
|
|
7052
7052
|
}
|
|
7053
|
-
},
|
|
7054
|
-
|
|
7053
|
+
}, Ig = function(r) {
|
|
7054
|
+
Pg(e, r);
|
|
7055
7055
|
function e(t, i) {
|
|
7056
7056
|
var n = r.call(this) || this;
|
|
7057
|
-
return i = i || {}, n.renderer = t, n.autoPreventDefault = i.autoPreventDefault !== void 0 ? i.autoPreventDefault : !0, n.interactionFrequency = i.interactionFrequency || 10, n.mouse = new wh(), n.mouse.identifier = gn, n.mouse.global.set(-999999), n.activeInteractionData = {}, n.activeInteractionData[gn] = n.mouse, n.interactionDataPool = [], n.eventData = new
|
|
7057
|
+
return i = i || {}, n.renderer = t, n.autoPreventDefault = i.autoPreventDefault !== void 0 ? i.autoPreventDefault : !0, n.interactionFrequency = i.interactionFrequency || 10, n.mouse = new wh(), n.mouse.identifier = gn, n.mouse.global.set(-999999), n.activeInteractionData = {}, n.activeInteractionData[gn] = n.mouse, n.interactionDataPool = [], n.eventData = new Cg(), n.interactionDOMElement = null, n.moveWhenInside = !1, n.eventsAdded = !1, n.tickerAdded = !1, n.mouseOverRenderer = !("PointerEvent" in globalThis), n.supportsTouchEvents = "ontouchstart" in globalThis, n.supportsPointerEvents = !!globalThis.PointerEvent, n.onPointerUp = n.onPointerUp.bind(n), n.processPointerUp = n.processPointerUp.bind(n), n.onPointerCancel = n.onPointerCancel.bind(n), n.processPointerCancel = n.processPointerCancel.bind(n), n.onPointerDown = n.onPointerDown.bind(n), n.processPointerDown = n.processPointerDown.bind(n), n.onPointerMove = n.onPointerMove.bind(n), n.processPointerMove = n.processPointerMove.bind(n), n.onPointerOut = n.onPointerOut.bind(n), n.processPointerOverOut = n.processPointerOverOut.bind(n), n.onPointerOver = n.onPointerOver.bind(n), n.cursorStyles = {
|
|
7058
7058
|
default: "inherit",
|
|
7059
7059
|
pointer: "pointer"
|
|
7060
|
-
}, n.currentCursorMode = null, n.cursor = null, n.resolution = 1, n.delayedEvents = [], n.search = new
|
|
7060
|
+
}, n.currentCursorMode = null, n.cursor = null, n.resolution = 1, n.delayedEvents = [], n.search = new Og(), n._tempDisplayObject = new Nu(), n._eventListenerOptions = { capture: !0, passive: !1 }, n._useSystemTicker = i.useSystemTicker !== void 0 ? i.useSystemTicker : !0, n.setTargetElement(n.renderer.view, n.renderer.resolution), n;
|
|
7061
7061
|
}
|
|
7062
7062
|
return Object.defineProperty(e.prototype, "useSystemTicker", {
|
|
7063
7063
|
get: function() {
|
|
@@ -7271,7 +7271,7 @@ var gn = 1, mn = {
|
|
|
7271
7271
|
]
|
|
7272
7272
|
}, e;
|
|
7273
7273
|
}($r);
|
|
7274
|
-
var Rh = new $(), Ph = 4,
|
|
7274
|
+
var Rh = new $(), Ph = 4, Ng = function() {
|
|
7275
7275
|
function r(e) {
|
|
7276
7276
|
this.renderer = e;
|
|
7277
7277
|
}
|
|
@@ -7383,7 +7383,7 @@ function Ku(r, e) {
|
|
|
7383
7383
|
o && (n[t.q.name][o] = h);
|
|
7384
7384
|
}), n;
|
|
7385
7385
|
}
|
|
7386
|
-
var Ds, bn = null,
|
|
7386
|
+
var Ds, bn = null, Mg = 0, Oh = 200, Dg = 204, Fg = 1223, Bg = 2;
|
|
7387
7387
|
function Ah() {
|
|
7388
7388
|
}
|
|
7389
7389
|
function Ih(r, e, t) {
|
|
@@ -7521,9 +7521,9 @@ var Et = function() {
|
|
|
7521
7521
|
this.abort(Fs(e) + " Request was aborted by the user.");
|
|
7522
7522
|
}, r.prototype._xhrOnLoad = function() {
|
|
7523
7523
|
var e = this.xhr, t = "", i = typeof e.status > "u" ? Oh : e.status;
|
|
7524
|
-
(e.responseType === "" || e.responseType === "text" || typeof e.responseType > "u") && (t = e.responseText), i ===
|
|
7524
|
+
(e.responseType === "" || e.responseType === "text" || typeof e.responseType > "u") && (t = e.responseText), i === Mg && (t.length > 0 || e.responseType === r.XHR_RESPONSE_TYPE.BUFFER) ? i = Oh : i === Fg && (i = Dg);
|
|
7525
7525
|
var n = i / 100 | 0;
|
|
7526
|
-
if (n ===
|
|
7526
|
+
if (n === Bg)
|
|
7527
7527
|
if (this.xhrType === r.XHR_RESPONSE_TYPE.TEXT)
|
|
7528
7528
|
this.data = t, this.type = r.TYPE.TEXT;
|
|
7529
7529
|
else if (this.xhrType === r.XHR_RESPONSE_TYPE.JSON)
|
|
@@ -7648,7 +7648,7 @@ var Et = function() {
|
|
|
7648
7648
|
})(Et || (Et = {}));
|
|
7649
7649
|
function bi() {
|
|
7650
7650
|
}
|
|
7651
|
-
function
|
|
7651
|
+
function Lg(r) {
|
|
7652
7652
|
return function() {
|
|
7653
7653
|
for (var t = arguments, i = [], n = 0; n < arguments.length; n++)
|
|
7654
7654
|
i[n] = t[n];
|
|
@@ -7658,7 +7658,7 @@ function Bg(r) {
|
|
|
7658
7658
|
r = null, s.apply(this, i);
|
|
7659
7659
|
};
|
|
7660
7660
|
}
|
|
7661
|
-
var
|
|
7661
|
+
var Gg = function() {
|
|
7662
7662
|
function r(e, t) {
|
|
7663
7663
|
this.data = e, this.callback = t;
|
|
7664
7664
|
}
|
|
@@ -7675,12 +7675,12 @@ var Lg = function() {
|
|
|
7675
7675
|
}, 1);
|
|
7676
7676
|
return;
|
|
7677
7677
|
}
|
|
7678
|
-
var o = new
|
|
7678
|
+
var o = new Gg(n, typeof a == "function" ? a : bi);
|
|
7679
7679
|
s ? i._tasks.unshift(o) : i._tasks.push(o), setTimeout(i.process, 1);
|
|
7680
7680
|
}, this.process = function() {
|
|
7681
7681
|
for (; !i.paused && i.workers < i.concurrency && i._tasks.length; ) {
|
|
7682
7682
|
var n = i._tasks.shift();
|
|
7683
|
-
i._tasks.length === 0 && i.empty(), i.workers += 1, i.workers === i.concurrency && i.saturated(), i._worker(n.data,
|
|
7683
|
+
i._tasks.length === 0 && i.empty(), i.workers += 1, i.workers === i.concurrency && i.saturated(), i._worker(n.data, Lg(i._next(n)));
|
|
7684
7684
|
}
|
|
7685
7685
|
}, this._worker = e, t === 0)
|
|
7686
7686
|
throw new Error("Concurrency must not be zero");
|
|
@@ -7728,7 +7728,7 @@ var Lg = function() {
|
|
|
7728
7728
|
}, r.queue = function(e, t) {
|
|
7729
7729
|
return new r(e, t);
|
|
7730
7730
|
}, r;
|
|
7731
|
-
}(), Ls = 100,
|
|
7731
|
+
}(), Ls = 100, Ug = /(#[\w-]+)?$/, zn = function() {
|
|
7732
7732
|
function r(e, t) {
|
|
7733
7733
|
var i = this;
|
|
7734
7734
|
e === void 0 && (e = ""), t === void 0 && (t = 10), this.progress = 0, this.loading = !1, this.defaultQueryString = "", this._beforeMiddleware = [], this._afterMiddleware = [], this._resourcesParsing = [], this._boundLoadResource = function(h, u) {
|
|
@@ -7791,7 +7791,7 @@ var Lg = function() {
|
|
|
7791
7791
|
}), r.prototype._prepareUrl = function(e) {
|
|
7792
7792
|
var t = Ku(e, { strictMode: !0 }), i;
|
|
7793
7793
|
if (t.protocol || !t.path || e.indexOf("//") === 0 ? i = e : this.baseUrl.length && this.baseUrl.lastIndexOf("/") !== this.baseUrl.length - 1 && e.charAt(0) !== "/" ? i = this.baseUrl + "/" + e : i = this.baseUrl + e, this.defaultQueryString) {
|
|
7794
|
-
var n =
|
|
7794
|
+
var n = Ug.exec(i)[0];
|
|
7795
7795
|
i = i.slice(0, i.length - n.length), i.indexOf("?") !== -1 ? i += "&" + this.defaultQueryString : i += "?" + this.defaultQueryString, i += n;
|
|
7796
7796
|
}
|
|
7797
7797
|
return i;
|
|
@@ -7842,7 +7842,7 @@ zn.prototype.add = function(e, t, i, n) {
|
|
|
7842
7842
|
throw new Error("No url passed to add resource to loader.");
|
|
7843
7843
|
return typeof i == "function" && (n = i, i = null), this._add(e, t, i, n);
|
|
7844
7844
|
};
|
|
7845
|
-
var
|
|
7845
|
+
var kg = function() {
|
|
7846
7846
|
function r() {
|
|
7847
7847
|
}
|
|
7848
7848
|
return r.init = function(e) {
|
|
@@ -7852,7 +7852,7 @@ var Ug = function() {
|
|
|
7852
7852
|
}, r.destroy = function() {
|
|
7853
7853
|
this.loader && (this.loader.destroy(), this.loader = null);
|
|
7854
7854
|
}, r.extension = nt.Application, r;
|
|
7855
|
-
}(),
|
|
7855
|
+
}(), Xg = function() {
|
|
7856
7856
|
function r() {
|
|
7857
7857
|
}
|
|
7858
7858
|
return r.add = function() {
|
|
@@ -7866,8 +7866,8 @@ var Ug = function() {
|
|
|
7866
7866
|
} else
|
|
7867
7867
|
t();
|
|
7868
7868
|
}, r.extension = nt.Loader, r;
|
|
7869
|
-
}(),
|
|
7870
|
-
function
|
|
7869
|
+
}(), Hg = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
7870
|
+
function Wg(r) {
|
|
7871
7871
|
for (var e = "", t = 0; t < r.length; ) {
|
|
7872
7872
|
for (var i = [0, 0, 0], n = [0, 0, 0, 0], s = 0; s < i.length; ++s)
|
|
7873
7873
|
t < r.length ? i[s] = r.charCodeAt(t++) & 255 : i[s] = 0;
|
|
@@ -7882,11 +7882,11 @@ function Hg(r) {
|
|
|
7882
7882
|
break;
|
|
7883
7883
|
}
|
|
7884
7884
|
for (var s = 0; s < n.length; ++s)
|
|
7885
|
-
e +=
|
|
7885
|
+
e += Hg.charAt(n[s]);
|
|
7886
7886
|
}
|
|
7887
7887
|
return e;
|
|
7888
7888
|
}
|
|
7889
|
-
function
|
|
7889
|
+
function Vg(r, e) {
|
|
7890
7890
|
if (!r.data) {
|
|
7891
7891
|
e();
|
|
7892
7892
|
return;
|
|
@@ -7895,7 +7895,7 @@ function Wg(r, e) {
|
|
|
7895
7895
|
if (!self.Blob || typeof r.data == "string") {
|
|
7896
7896
|
var t = r.xhr.getResponseHeader("content-type");
|
|
7897
7897
|
if (t && t.indexOf("image") === 0) {
|
|
7898
|
-
r.data = new Image(), r.data.src = "data:" + t + ";base64," +
|
|
7898
|
+
r.data = new Image(), r.data.src = "data:" + t + ";base64," + Wg(r.xhr.responseText), r.type = Et.TYPE.IMAGE, r.data.onload = function() {
|
|
7899
7899
|
r.data.onload = null, e();
|
|
7900
7900
|
};
|
|
7901
7901
|
return;
|
|
@@ -7910,12 +7910,12 @@ function Wg(r, e) {
|
|
|
7910
7910
|
}
|
|
7911
7911
|
e();
|
|
7912
7912
|
}
|
|
7913
|
-
var
|
|
7913
|
+
var zg = function() {
|
|
7914
7914
|
function r() {
|
|
7915
7915
|
}
|
|
7916
|
-
return r.extension = nt.Loader, r.use =
|
|
7916
|
+
return r.extension = nt.Loader, r.use = Vg, r;
|
|
7917
7917
|
}();
|
|
7918
|
-
ii.add(
|
|
7918
|
+
ii.add(Xg, zg);
|
|
7919
7919
|
var it, j;
|
|
7920
7920
|
(function(r) {
|
|
7921
7921
|
r[r.COMPRESSED_RGB_S3TC_DXT1_EXT = 33776] = "COMPRESSED_RGB_S3TC_DXT1_EXT", r[r.COMPRESSED_RGBA_S3TC_DXT1_EXT = 33777] = "COMPRESSED_RGBA_S3TC_DXT1_EXT", r[r.COMPRESSED_RGBA_S3TC_DXT3_EXT = 33778] = "COMPRESSED_RGBA_S3TC_DXT3_EXT", r[r.COMPRESSED_RGBA_S3TC_DXT5_EXT = 33779] = "COMPRESSED_RGBA_S3TC_DXT5_EXT", r[r.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT = 35917] = "COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT", r[r.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT = 35918] = "COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT", r[r.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT = 35919] = "COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT", r[r.COMPRESSED_SRGB_S3TC_DXT1_EXT = 35916] = "COMPRESSED_SRGB_S3TC_DXT1_EXT", r[r.COMPRESSED_R11_EAC = 37488] = "COMPRESSED_R11_EAC", r[r.COMPRESSED_SIGNED_R11_EAC = 37489] = "COMPRESSED_SIGNED_R11_EAC", r[r.COMPRESSED_RG11_EAC = 37490] = "COMPRESSED_RG11_EAC", r[r.COMPRESSED_SIGNED_RG11_EAC = 37491] = "COMPRESSED_SIGNED_RG11_EAC", r[r.COMPRESSED_RGB8_ETC2 = 37492] = "COMPRESSED_RGB8_ETC2", r[r.COMPRESSED_RGBA8_ETC2_EAC = 37496] = "COMPRESSED_RGBA8_ETC2_EAC", r[r.COMPRESSED_SRGB8_ETC2 = 37493] = "COMPRESSED_SRGB8_ETC2", r[r.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC = 37497] = "COMPRESSED_SRGB8_ALPHA8_ETC2_EAC", r[r.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 37494] = "COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2", r[r.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 37495] = "COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2", r[r.COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 35840] = "COMPRESSED_RGB_PVRTC_4BPPV1_IMG", r[r.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 35842] = "COMPRESSED_RGBA_PVRTC_4BPPV1_IMG", r[r.COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 35841] = "COMPRESSED_RGB_PVRTC_2BPPV1_IMG", r[r.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 35843] = "COMPRESSED_RGBA_PVRTC_2BPPV1_IMG", r[r.COMPRESSED_RGB_ETC1_WEBGL = 36196] = "COMPRESSED_RGB_ETC1_WEBGL", r[r.COMPRESSED_RGB_ATC_WEBGL = 35986] = "COMPRESSED_RGB_ATC_WEBGL", r[r.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 35986] = "COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL", r[r.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 34798] = "COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL", r[r.COMPRESSED_RGBA_ASTC_4x4_KHR = 37808] = "COMPRESSED_RGBA_ASTC_4x4_KHR";
|
|
@@ -7936,7 +7936,7 @@ function qu(r, e) {
|
|
|
7936
7936
|
}
|
|
7937
7937
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
7938
7938
|
}
|
|
7939
|
-
function
|
|
7939
|
+
function Yg(r, e, t, i) {
|
|
7940
7940
|
function n(s) {
|
|
7941
7941
|
return s instanceof t ? s : new t(function(a) {
|
|
7942
7942
|
a(s);
|
|
@@ -7963,7 +7963,7 @@ function zg(r, e, t, i) {
|
|
|
7963
7963
|
u((i = i.apply(r, e || [])).next());
|
|
7964
7964
|
});
|
|
7965
7965
|
}
|
|
7966
|
-
function
|
|
7966
|
+
function jg(r, e) {
|
|
7967
7967
|
var t = { label: 0, sent: function() {
|
|
7968
7968
|
if (s[0] & 1)
|
|
7969
7969
|
throw s[1];
|
|
@@ -8028,7 +8028,7 @@ function Yg(r, e) {
|
|
|
8028
8028
|
return { value: u[0] ? u[1] : void 0, done: !0 };
|
|
8029
8029
|
}
|
|
8030
8030
|
}
|
|
8031
|
-
var
|
|
8031
|
+
var Zg = function(r) {
|
|
8032
8032
|
qu(e, r);
|
|
8033
8033
|
function e(t, i) {
|
|
8034
8034
|
i === void 0 && (i = { width: 1, height: 1, autoLoad: !0 });
|
|
@@ -8037,9 +8037,9 @@ var jg = function(r) {
|
|
|
8037
8037
|
}
|
|
8038
8038
|
return e.prototype.onBlobLoaded = function(t) {
|
|
8039
8039
|
}, e.prototype.load = function() {
|
|
8040
|
-
return
|
|
8040
|
+
return Yg(this, void 0, Promise, function() {
|
|
8041
8041
|
var t, i, n;
|
|
8042
|
-
return
|
|
8042
|
+
return jg(this, function(s) {
|
|
8043
8043
|
switch (s.label) {
|
|
8044
8044
|
case 0:
|
|
8045
8045
|
return [4, fetch(this.origin)];
|
|
@@ -8110,7 +8110,7 @@ var jg = function(r) {
|
|
|
8110
8110
|
}, l += p, f = f >> 1 || 1, c = c >> 1 || 1, d = f + s - 1 & ~(s - 1), v = c + a - 1 & ~(a - 1), p = d * v * Yn[i];
|
|
8111
8111
|
return u;
|
|
8112
8112
|
}, e;
|
|
8113
|
-
}(
|
|
8113
|
+
}(Zg), Kg = function() {
|
|
8114
8114
|
function r() {
|
|
8115
8115
|
}
|
|
8116
8116
|
return r.use = function(e, t) {
|
|
@@ -8201,14 +8201,14 @@ function $u(r, e, t) {
|
|
|
8201
8201
|
Q.addToCache(o, h), Y.addToCache(s, h), a === 0 && (Q.addToCache(o, r), Y.addToCache(s, r), i.texture = s), i.textures[h] = s;
|
|
8202
8202
|
}), i;
|
|
8203
8203
|
}
|
|
8204
|
-
var xr, me, Gs = 4, xn = 124,
|
|
8204
|
+
var xr, me, Gs = 4, xn = 124, qg = 32, Nh = 20, $g = 542327876, Tn = {
|
|
8205
8205
|
SIZE: 1,
|
|
8206
8206
|
FLAGS: 2,
|
|
8207
8207
|
HEIGHT: 3,
|
|
8208
8208
|
WIDTH: 4,
|
|
8209
8209
|
MIPMAP_COUNT: 7,
|
|
8210
8210
|
PIXEL_FORMAT: 19
|
|
8211
|
-
},
|
|
8211
|
+
}, Jg = {
|
|
8212
8212
|
SIZE: 0,
|
|
8213
8213
|
FLAGS: 1,
|
|
8214
8214
|
FOURCC: 2,
|
|
@@ -8231,16 +8231,16 @@ var Ra;
|
|
|
8231
8231
|
(function(r) {
|
|
8232
8232
|
r[r.DDS_DIMENSION_TEXTURE1D = 2] = "DDS_DIMENSION_TEXTURE1D", r[r.DDS_DIMENSION_TEXTURE2D = 3] = "DDS_DIMENSION_TEXTURE2D", r[r.DDS_DIMENSION_TEXTURE3D = 6] = "DDS_DIMENSION_TEXTURE3D";
|
|
8233
8233
|
})(Ra || (Ra = {}));
|
|
8234
|
-
var
|
|
8235
|
-
function
|
|
8234
|
+
var Qg = 1, tm = 2, em = 4, im = 64, rm = 512, nm = 131072, sm = 827611204, am = 861165636, om = 894720068, hm = 808540228, um = 4, lm = (xr = {}, xr[sm] = j.COMPRESSED_RGBA_S3TC_DXT1_EXT, xr[am] = j.COMPRESSED_RGBA_S3TC_DXT3_EXT, xr[om] = j.COMPRESSED_RGBA_S3TC_DXT5_EXT, xr), fm = (me = {}, me[be.DXGI_FORMAT_BC1_TYPELESS] = j.COMPRESSED_RGBA_S3TC_DXT1_EXT, me[be.DXGI_FORMAT_BC1_UNORM] = j.COMPRESSED_RGBA_S3TC_DXT1_EXT, me[be.DXGI_FORMAT_BC2_TYPELESS] = j.COMPRESSED_RGBA_S3TC_DXT3_EXT, me[be.DXGI_FORMAT_BC2_UNORM] = j.COMPRESSED_RGBA_S3TC_DXT3_EXT, me[be.DXGI_FORMAT_BC3_TYPELESS] = j.COMPRESSED_RGBA_S3TC_DXT5_EXT, me[be.DXGI_FORMAT_BC3_UNORM] = j.COMPRESSED_RGBA_S3TC_DXT5_EXT, me[be.DXGI_FORMAT_BC1_UNORM_SRGB] = j.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT, me[be.DXGI_FORMAT_BC2_UNORM_SRGB] = j.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT, me[be.DXGI_FORMAT_BC3_UNORM_SRGB] = j.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT, me);
|
|
8235
|
+
function cm(r) {
|
|
8236
8236
|
var e = new Uint32Array(r), t = e[0];
|
|
8237
|
-
if (t !==
|
|
8237
|
+
if (t !== $g)
|
|
8238
8238
|
throw new Error("Invalid DDS file magic word");
|
|
8239
|
-
var i = new Uint32Array(r, 0, xn / Uint32Array.BYTES_PER_ELEMENT), n = i[Tn.HEIGHT], s = i[Tn.WIDTH], a = i[Tn.MIPMAP_COUNT], o = new Uint32Array(r, Tn.PIXEL_FORMAT * Uint32Array.BYTES_PER_ELEMENT,
|
|
8240
|
-
if (h &
|
|
8241
|
-
var u = o[
|
|
8242
|
-
if (u !==
|
|
8243
|
-
var l =
|
|
8239
|
+
var i = new Uint32Array(r, 0, xn / Uint32Array.BYTES_PER_ELEMENT), n = i[Tn.HEIGHT], s = i[Tn.WIDTH], a = i[Tn.MIPMAP_COUNT], o = new Uint32Array(r, Tn.PIXEL_FORMAT * Uint32Array.BYTES_PER_ELEMENT, qg / Uint32Array.BYTES_PER_ELEMENT), h = o[Qg];
|
|
8240
|
+
if (h & em) {
|
|
8241
|
+
var u = o[Jg.FOURCC];
|
|
8242
|
+
if (u !== hm) {
|
|
8243
|
+
var l = lm[u], f = Gs + xn, c = new Uint8Array(r, f), d = new wa(c, {
|
|
8244
8244
|
format: l,
|
|
8245
8245
|
width: s,
|
|
8246
8246
|
height: n,
|
|
@@ -8248,10 +8248,10 @@ function fm(r) {
|
|
|
8248
8248
|
});
|
|
8249
8249
|
return [d];
|
|
8250
8250
|
}
|
|
8251
|
-
var v = Gs + xn, p = new Uint32Array(e.buffer, v, Nh / Uint32Array.BYTES_PER_ELEMENT), _ = p[En.DXGI_FORMAT], g = p[En.RESOURCE_DIMENSION], m = p[En.MISC_FLAG], y = p[En.ARRAY_SIZE], x =
|
|
8251
|
+
var v = Gs + xn, p = new Uint32Array(e.buffer, v, Nh / Uint32Array.BYTES_PER_ELEMENT), _ = p[En.DXGI_FORMAT], g = p[En.RESOURCE_DIMENSION], m = p[En.MISC_FLAG], y = p[En.ARRAY_SIZE], x = fm[_];
|
|
8252
8252
|
if (x === void 0)
|
|
8253
8253
|
throw new Error("DDSParser cannot parse texture data with DXGI format " + _);
|
|
8254
|
-
if (m ===
|
|
8254
|
+
if (m === um)
|
|
8255
8255
|
throw new Error("DDSParser does not support cubemap textures");
|
|
8256
8256
|
if (g === Ra.DDS_DIMENSION_TEXTURE3D)
|
|
8257
8257
|
throw new Error("DDSParser does not supported 3D texture data");
|
|
@@ -8275,9 +8275,9 @@ function fm(r) {
|
|
|
8275
8275
|
});
|
|
8276
8276
|
});
|
|
8277
8277
|
}
|
|
8278
|
-
throw h &
|
|
8278
|
+
throw h & im ? new Error("DDSParser does not support uncompressed texture data.") : h & rm ? new Error("DDSParser does not supported YUV uncompressed texture data.") : h & nm ? new Error("DDSParser does not support single-channel (lumninance) texture data!") : h & tm ? new Error("DDSParser does not support single-channel (alpha) texture data!") : new Error("DDSParser failed to load a texture file due to an unknown reason!");
|
|
8279
8279
|
}
|
|
8280
|
-
var ri, ze, Tr, Mh = [171, 75, 84, 88, 32, 49, 49, 187, 13, 10, 26, 10],
|
|
8280
|
+
var ri, ze, Tr, Mh = [171, 75, 84, 88, 32, 49, 49, 187, 13, 10, 26, 10], dm = 67305985, ye = {
|
|
8281
8281
|
FILE_IDENTIFIER: 0,
|
|
8282
8282
|
ENDIANNESS: 12,
|
|
8283
8283
|
GL_TYPE: 16,
|
|
@@ -8292,13 +8292,13 @@ var ri, ze, Tr, Mh = [171, 75, 84, 88, 32, 49, 49, 187, 13, 10, 26, 10], cm = 67
|
|
|
8292
8292
|
NUMBER_OF_FACES: 52,
|
|
8293
8293
|
NUMBER_OF_MIPMAP_LEVELS: 56,
|
|
8294
8294
|
BYTES_OF_KEY_VALUE_DATA: 60
|
|
8295
|
-
}, Pa = 64, Dh = (ri = {}, ri[X.UNSIGNED_BYTE] = 1, ri[X.UNSIGNED_SHORT] = 2, ri[X.INT] = 4, ri[X.UNSIGNED_INT] = 4, ri[X.FLOAT] = 4, ri[X.HALF_FLOAT] = 8, ri),
|
|
8296
|
-
function
|
|
8295
|
+
}, Pa = 64, Dh = (ri = {}, ri[X.UNSIGNED_BYTE] = 1, ri[X.UNSIGNED_SHORT] = 2, ri[X.INT] = 4, ri[X.UNSIGNED_INT] = 4, ri[X.FLOAT] = 4, ri[X.HALF_FLOAT] = 8, ri), pm = (ze = {}, ze[D.RGBA] = 4, ze[D.RGB] = 3, ze[D.RG] = 2, ze[D.RED] = 1, ze[D.LUMINANCE] = 1, ze[D.LUMINANCE_ALPHA] = 2, ze[D.ALPHA] = 1, ze), vm = (Tr = {}, Tr[X.UNSIGNED_SHORT_4_4_4_4] = 2, Tr[X.UNSIGNED_SHORT_5_5_5_1] = 2, Tr[X.UNSIGNED_SHORT_5_6_5] = 2, Tr);
|
|
8296
|
+
function _m(r, e, t) {
|
|
8297
8297
|
t === void 0 && (t = !1);
|
|
8298
8298
|
var i = new DataView(e);
|
|
8299
|
-
if (!
|
|
8299
|
+
if (!gm(r, i))
|
|
8300
8300
|
return null;
|
|
8301
|
-
var n = i.getUint32(ye.ENDIANNESS, !0) ===
|
|
8301
|
+
var n = i.getUint32(ye.ENDIANNESS, !0) === dm, s = i.getUint32(ye.GL_TYPE, n), a = i.getUint32(ye.GL_FORMAT, n), o = i.getUint32(ye.GL_INTERNAL_FORMAT, n), h = i.getUint32(ye.PIXEL_WIDTH, n), u = i.getUint32(ye.PIXEL_HEIGHT, n) || 1, l = i.getUint32(ye.PIXEL_DEPTH, n) || 1, f = i.getUint32(ye.NUMBER_OF_ARRAY_ELEMENTS, n) || 1, c = i.getUint32(ye.NUMBER_OF_FACES, n), d = i.getUint32(ye.NUMBER_OF_MIPMAP_LEVELS, n), v = i.getUint32(ye.BYTES_OF_KEY_VALUE_DATA, n);
|
|
8302
8302
|
if (u === 0 || l !== 1)
|
|
8303
8303
|
throw new Error("Only 2D textures are supported");
|
|
8304
8304
|
if (c !== 1)
|
|
@@ -8308,9 +8308,9 @@ function vm(r, e, t) {
|
|
|
8308
8308
|
var p = 4, _ = 4, g = h + 3 & -4, m = u + 3 & -4, y = new Array(f), x = h * u;
|
|
8309
8309
|
s === 0 && (x = g * m);
|
|
8310
8310
|
var b;
|
|
8311
|
-
if (s !== 0 ? Dh[s] ? b = Dh[s] *
|
|
8311
|
+
if (s !== 0 ? Dh[s] ? b = Dh[s] * pm[a] : b = vm[s] : b = Yn[o], b === void 0)
|
|
8312
8312
|
throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");
|
|
8313
|
-
for (var T = t ?
|
|
8313
|
+
for (var T = t ? ym(i, v, n) : null, E = x * b, w = E, S = h, R = u, O = g, N = m, B = Pa + v, L = 0; L < d; L++) {
|
|
8314
8314
|
for (var A = i.getUint32(B, n), I = B + 4, F = 0; F < f; F++) {
|
|
8315
8315
|
var V = y[F];
|
|
8316
8316
|
V || (V = y[F] = new Array(d)), V[L] = {
|
|
@@ -8331,7 +8331,7 @@ function vm(r, e, t) {
|
|
|
8331
8331
|
height: W[0].levelHeight
|
|
8332
8332
|
}),
|
|
8333
8333
|
type: s,
|
|
8334
|
-
format: C ?
|
|
8334
|
+
format: C ? mm(a) : a
|
|
8335
8335
|
};
|
|
8336
8336
|
}),
|
|
8337
8337
|
kvData: T
|
|
@@ -8348,13 +8348,13 @@ function vm(r, e, t) {
|
|
|
8348
8348
|
kvData: T
|
|
8349
8349
|
};
|
|
8350
8350
|
}
|
|
8351
|
-
function
|
|
8351
|
+
function gm(r, e) {
|
|
8352
8352
|
for (var t = 0; t < Mh.length; t++)
|
|
8353
8353
|
if (e.getUint8(t) !== Mh[t])
|
|
8354
8354
|
return console.error(r + " is not a valid *.ktx file!"), !1;
|
|
8355
8355
|
return !0;
|
|
8356
8356
|
}
|
|
8357
|
-
function
|
|
8357
|
+
function mm(r) {
|
|
8358
8358
|
switch (r) {
|
|
8359
8359
|
case D.RGBA:
|
|
8360
8360
|
return D.RGBA_INTEGER;
|
|
@@ -8368,7 +8368,7 @@ function gm(r) {
|
|
|
8368
8368
|
return r;
|
|
8369
8369
|
}
|
|
8370
8370
|
}
|
|
8371
|
-
function
|
|
8371
|
+
function ym(r, e, t) {
|
|
8372
8372
|
for (var i = /* @__PURE__ */ new Map(), n = 0; n < e; ) {
|
|
8373
8373
|
var s = r.getUint32(Pa + n, t), a = Pa + n + 4, o = 3 - (s + 3) % 4;
|
|
8374
8374
|
if (s === 0 || s > e - n) {
|
|
@@ -8387,13 +8387,13 @@ function mm(r, e, t) {
|
|
|
8387
8387
|
return i;
|
|
8388
8388
|
}
|
|
8389
8389
|
Et.setExtensionXhrType("dds", Et.XHR_RESPONSE_TYPE.BUFFER);
|
|
8390
|
-
var
|
|
8390
|
+
var bm = function() {
|
|
8391
8391
|
function r() {
|
|
8392
8392
|
}
|
|
8393
8393
|
return r.use = function(e, t) {
|
|
8394
8394
|
if (e.extension === "dds" && e.data)
|
|
8395
8395
|
try {
|
|
8396
|
-
Object.assign(e, $u(e.name || e.url,
|
|
8396
|
+
Object.assign(e, $u(e.name || e.url, cm(e.data), e.metadata));
|
|
8397
8397
|
} catch (i) {
|
|
8398
8398
|
t(i);
|
|
8399
8399
|
return;
|
|
@@ -8402,13 +8402,13 @@ var ym = function() {
|
|
|
8402
8402
|
}, r.extension = nt.Loader, r;
|
|
8403
8403
|
}();
|
|
8404
8404
|
Et.setExtensionXhrType("ktx", Et.XHR_RESPONSE_TYPE.BUFFER);
|
|
8405
|
-
var
|
|
8405
|
+
var xm = function() {
|
|
8406
8406
|
function r() {
|
|
8407
8407
|
}
|
|
8408
8408
|
return r.use = function(e, t) {
|
|
8409
8409
|
if (e.extension === "ktx" && e.data)
|
|
8410
8410
|
try {
|
|
8411
|
-
var i = e.name || e.url, n =
|
|
8411
|
+
var i = e.name || e.url, n = _m(i, e.data, this.loadKeyValueData), s = n.compressed, a = n.uncompressed, o = n.kvData;
|
|
8412
8412
|
if (s) {
|
|
8413
8413
|
var h = $u(i, s, e.metadata);
|
|
8414
8414
|
if (o && h.textures)
|
|
@@ -8505,7 +8505,7 @@ var Fh = function() {
|
|
|
8505
8505
|
}
|
|
8506
8506
|
return r.prototype.initBuffers = function() {
|
|
8507
8507
|
var e = this.geometry, t = 0;
|
|
8508
|
-
this.indexBuffer = new Dt(
|
|
8508
|
+
this.indexBuffer = new Dt(Uv(this.size), !0, !0), e.addIndex(this.indexBuffer), this.dynamicStride = 0;
|
|
8509
8509
|
for (var i = 0; i < this.dynamicProperties.length; ++i) {
|
|
8510
8510
|
var n = this.dynamicProperties[i];
|
|
8511
8511
|
n.offset = t, t += n.size, this.dynamicStride += n.size;
|
|
@@ -8543,7 +8543,7 @@ var Fh = function() {
|
|
|
8543
8543
|
}, r.prototype.destroy = function() {
|
|
8544
8544
|
this.indexBuffer = null, this.dynamicProperties = null, this.dynamicBuffer = null, this.dynamicData = null, this.dynamicDataUint32 = null, this.staticProperties = null, this.staticBuffer = null, this.staticData = null, this.staticDataUint32 = null, this.geometry.destroy();
|
|
8545
8545
|
}, r;
|
|
8546
|
-
}(),
|
|
8546
|
+
}(), Tm = `varying vec2 vTextureCoord;
|
|
8547
8547
|
varying vec4 vColor;
|
|
8548
8548
|
|
|
8549
8549
|
uniform sampler2D uSampler;
|
|
@@ -8551,7 +8551,7 @@ uniform sampler2D uSampler;
|
|
|
8551
8551
|
void main(void){
|
|
8552
8552
|
vec4 color = texture2D(uSampler, vTextureCoord) * vColor;
|
|
8553
8553
|
gl_FragColor = color;
|
|
8554
|
-
}`,
|
|
8554
|
+
}`, Em = `attribute vec2 aVertexPosition;
|
|
8555
8555
|
attribute vec2 aTextureCoord;
|
|
8556
8556
|
attribute vec4 aColor;
|
|
8557
8557
|
|
|
@@ -8576,7 +8576,7 @@ void main(void){
|
|
|
8576
8576
|
vTextureCoord = aTextureCoord;
|
|
8577
8577
|
vColor = aColor * uColor;
|
|
8578
8578
|
}
|
|
8579
|
-
`,
|
|
8579
|
+
`, Sm = function(r) {
|
|
8580
8580
|
Ju(e, r);
|
|
8581
8581
|
function e(t) {
|
|
8582
8582
|
var i = r.call(this, t) || this;
|
|
@@ -8612,7 +8612,7 @@ void main(void){
|
|
|
8612
8612
|
uploadFunction: i.uploadTint,
|
|
8613
8613
|
offset: 0
|
|
8614
8614
|
}
|
|
8615
|
-
], i.shader = hi.from(
|
|
8615
|
+
], i.shader = hi.from(Em, Tm, {}), i.state = Xi.for2d(), i;
|
|
8616
8616
|
}
|
|
8617
8617
|
return e.prototype.render = function(t) {
|
|
8618
8618
|
var i = t.children, n = t._maxSize, s = t._batchSize, a = this.renderer, o = i.length;
|
|
@@ -8623,7 +8623,7 @@ void main(void){
|
|
|
8623
8623
|
var u = i[0]._texture.baseTexture, l = u.alphaMode > 0;
|
|
8624
8624
|
this.state.blendMode = Ou(t.blendMode, l), a.state.set(this.state);
|
|
8625
8625
|
var f = a.gl, c = t.worldTransform.copyTo(this.tempMatrix);
|
|
8626
|
-
c.prepend(a.globalUniforms.uniforms.projectionMatrix), this.shader.uniforms.translationMatrix = c.toArray(!0), this.shader.uniforms.uColor =
|
|
8626
|
+
c.prepend(a.globalUniforms.uniforms.projectionMatrix), this.shader.uniforms.translationMatrix = c.toArray(!0), this.shader.uniforms.uColor = Gv(t.tintRgb, t.worldAlpha, this.shader.uniforms.uColor, l), this.shader.uniforms.uSampler = u, this.renderer.shader.bind(this.shader);
|
|
8627
8627
|
for (var d = !1, v = 0, p = 0; v < o; v += s, p += 1) {
|
|
8628
8628
|
var _ = o - v;
|
|
8629
8629
|
_ > s && (_ = s), p >= h.length && h.push(this._generateOneMoreBuffer(t));
|
|
@@ -8816,7 +8816,7 @@ var tl = {
|
|
|
8816
8816
|
n.push(a + 1, a, s);
|
|
8817
8817
|
}
|
|
8818
8818
|
}
|
|
8819
|
-
},
|
|
8819
|
+
}, wm = {
|
|
8820
8820
|
build: function(r) {
|
|
8821
8821
|
var e = r.shape, t = e.x, i = e.y, n = e.width, s = e.height, a = r.points;
|
|
8822
8822
|
a.length = 0, a.push(t, i, t + n, i, t + n, i + s, t, i + s);
|
|
@@ -8836,7 +8836,7 @@ function Sn(r, e, t, i, n, s, a) {
|
|
|
8836
8836
|
_ = p / o, u = zi(r, t, _), l = zi(e, i, _), f = zi(t, n, _), c = zi(i, s, _), d = zi(u, f, _), v = zi(l, c, _), !(p === 0 && h[h.length - 2] === d && h[h.length - 1] === v) && h.push(d, v);
|
|
8837
8837
|
return h;
|
|
8838
8838
|
}
|
|
8839
|
-
var
|
|
8839
|
+
var Rm = {
|
|
8840
8840
|
build: function(r) {
|
|
8841
8841
|
if (Ne.nextRoundedRectBehavior) {
|
|
8842
8842
|
jn.build(r);
|
|
@@ -8879,7 +8879,7 @@ function xi(r, e, t, i, n, s, a, o) {
|
|
|
8879
8879
|
}
|
|
8880
8880
|
return _ * 2;
|
|
8881
8881
|
}
|
|
8882
|
-
function
|
|
8882
|
+
function Pm(r, e) {
|
|
8883
8883
|
var t = r.shape, i = r.points || t.points.slice(), n = e.closePointEps;
|
|
8884
8884
|
if (i.length !== 0) {
|
|
8885
8885
|
var s = r.lineStyle, a = new ft(i[0], i[1]), o = new ft(i[i.length - 2], i[i.length - 1]), h = t.type !== Lt.POLY || t.closeStroke, u = Math.abs(a.x - o.x) < n && Math.abs(a.y - o.y) < n;
|
|
@@ -8907,7 +8907,7 @@ function Rm(r, e) {
|
|
|
8907
8907
|
y = c[F * 2], x = c[F * 2 + 1], b = c[(F + 1) * 2], T = c[(F + 1) * 2 + 1], E = c[(F + 2) * 2], w = c[(F + 2) * 2 + 1], !(Math.abs(y * (T - w) + b * (w - x) + E * (x - T)) < Ut) && ot.push(F, F + 1, F + 2);
|
|
8908
8908
|
}
|
|
8909
8909
|
}
|
|
8910
|
-
function
|
|
8910
|
+
function Cm(r, e) {
|
|
8911
8911
|
var t = 0, i = r.shape, n = r.points || i.points, s = i.type !== Lt.POLY || i.closeStroke;
|
|
8912
8912
|
if (n.length !== 0) {
|
|
8913
8913
|
var a = e.points, o = e.indices, h = n.length / 2, u = a.length / 2, l = u;
|
|
@@ -8917,7 +8917,7 @@ function Pm(r, e) {
|
|
|
8917
8917
|
}
|
|
8918
8918
|
}
|
|
8919
8919
|
function Gh(r, e) {
|
|
8920
|
-
r.lineStyle.native ?
|
|
8920
|
+
r.lineStyle.native ? Cm(r, e) : Pm(r, e);
|
|
8921
8921
|
}
|
|
8922
8922
|
var Uh = function() {
|
|
8923
8923
|
function r() {
|
|
@@ -8941,7 +8941,7 @@ var Uh = function() {
|
|
|
8941
8941
|
u.push((v * b + p * T) * s + i, (v * -T + p * b) * s + n);
|
|
8942
8942
|
}
|
|
8943
8943
|
}, r;
|
|
8944
|
-
}(),
|
|
8944
|
+
}(), Om = function() {
|
|
8945
8945
|
function r() {
|
|
8946
8946
|
}
|
|
8947
8947
|
return r.curveLength = function(e, t, i, n, s, a, o, h) {
|
|
@@ -8956,7 +8956,7 @@ var Uh = function() {
|
|
|
8956
8956
|
for (var _ = 1, g = 0; _ <= l; ++_)
|
|
8957
8957
|
g = _ / l, f = 1 - g, c = f * f, d = c * f, v = g * g, p = v * g, o.push(d * h + 3 * c * g * e + 3 * f * v * i + p * s, d * u + 3 * c * g * t + 3 * f * v * n + p * a);
|
|
8958
8958
|
}, r;
|
|
8959
|
-
}(),
|
|
8959
|
+
}(), Am = function() {
|
|
8960
8960
|
function r() {
|
|
8961
8961
|
}
|
|
8962
8962
|
return r.curveLength = function(e, t, i, n, s, a) {
|
|
@@ -8968,7 +8968,7 @@ var Uh = function() {
|
|
|
8968
8968
|
u = a + (e - a) * c, l = o + (t - o) * c, s.push(u + (e + (i - e) * c - u) * c, l + (t + (n - t) * c - l) * c);
|
|
8969
8969
|
}
|
|
8970
8970
|
}, r;
|
|
8971
|
-
}(),
|
|
8971
|
+
}(), Im = function() {
|
|
8972
8972
|
function r() {
|
|
8973
8973
|
this.reset();
|
|
8974
8974
|
}
|
|
@@ -8979,7 +8979,7 @@ var Uh = function() {
|
|
|
8979
8979
|
}, r.prototype.reset = function() {
|
|
8980
8980
|
this.style = null, this.size = 0, this.start = 0, this.attribStart = 0, this.attribSize = 0;
|
|
8981
8981
|
}, r;
|
|
8982
|
-
}(), Ti, Us = (Ti = {}, Ti[Lt.POLY] = tl, Ti[Lt.CIRC] = jn, Ti[Lt.ELIP] = jn, Ti[Lt.RECT] =
|
|
8982
|
+
}(), Ti, Us = (Ti = {}, Ti[Lt.POLY] = tl, Ti[Lt.CIRC] = jn, Ti[Lt.ELIP] = jn, Ti[Lt.RECT] = wm, Ti[Lt.RREC] = Rm, Ti), kh = [], wn = [], Xh = function() {
|
|
8983
8983
|
function r(e, t, i, n) {
|
|
8984
8984
|
t === void 0 && (t = null), i === void 0 && (i = null), n === void 0 && (n = null), this.points = [], this.holes = [], this.shape = e, this.lineStyle = i, this.fillStyle = t, this.matrix = n, this.type = e.type;
|
|
8985
8985
|
}
|
|
@@ -8988,7 +8988,7 @@ var Uh = function() {
|
|
|
8988
8988
|
}, r.prototype.destroy = function() {
|
|
8989
8989
|
this.shape = null, this.holes.length = 0, this.holes = null, this.points.length = 0, this.points = null, this.lineStyle = null, this.fillStyle = null;
|
|
8990
8990
|
}, r;
|
|
8991
|
-
}(), Yi = new ft(),
|
|
8991
|
+
}(), Yi = new ft(), Nm = function(r) {
|
|
8992
8992
|
_o(e, r);
|
|
8993
8993
|
function e() {
|
|
8994
8994
|
var t = r.call(this) || this;
|
|
@@ -9063,7 +9063,7 @@ var Uh = function() {
|
|
|
9063
9063
|
var d = c.texture.baseTexture, v = this.indices.length, p = this.points.length / 2;
|
|
9064
9064
|
d.wrapMode = Ge.REPEAT, f === 0 ? this.processFill(o) : this.processLine(o);
|
|
9065
9065
|
var _ = this.points.length / 2 - p;
|
|
9066
|
-
_ !== 0 && (n && !this._compareStyles(s, c) && (n.end(v, p), n = null), n || (n = kh.pop() || new
|
|
9066
|
+
_ !== 0 && (n && !this._compareStyles(s, c) && (n.end(v, p), n = null), n || (n = kh.pop() || new Im(), n.begin(c, v, p), this.batches.push(n), s = c), this.addUvs(this.points, t, c.texture, p, _, c.matrix));
|
|
9067
9067
|
}
|
|
9068
9068
|
}
|
|
9069
9069
|
}
|
|
@@ -9170,7 +9170,7 @@ var Uh = function() {
|
|
|
9170
9170
|
for (var _ = n; _ < h; _ += 2)
|
|
9171
9171
|
t[_] = (t[_] + c) * l, t[_ + 1] = (t[_ + 1] + d) * f;
|
|
9172
9172
|
}, e.BATCHABLE_SIZE = 100, e;
|
|
9173
|
-
}(ju),
|
|
9173
|
+
}(ju), Mm = function(r) {
|
|
9174
9174
|
_o(e, r);
|
|
9175
9175
|
function e() {
|
|
9176
9176
|
var t = r !== null && r.apply(this, arguments) || this;
|
|
@@ -9182,12 +9182,12 @@ var Uh = function() {
|
|
|
9182
9182
|
}, e.prototype.reset = function() {
|
|
9183
9183
|
r.prototype.reset.call(this), this.color = 0, this.alignment = 0.5, this.width = 0, this.native = !1;
|
|
9184
9184
|
}, e;
|
|
9185
|
-
}(Qu),
|
|
9185
|
+
}(Qu), Dm = new Float32Array(3), ks = {}, Ne = function(r) {
|
|
9186
9186
|
_o(e, r);
|
|
9187
9187
|
function e(t) {
|
|
9188
9188
|
t === void 0 && (t = null);
|
|
9189
9189
|
var i = r.call(this) || this;
|
|
9190
|
-
return i.shader = null, i.pluginName = "batch", i.currentPath = null, i.batches = [], i.batchTint = -1, i.batchDirty = -1, i.vertexData = null, i._fillStyle = new Qu(), i._lineStyle = new
|
|
9190
|
+
return i.shader = null, i.pluginName = "batch", i.currentPath = null, i.batches = [], i.batchTint = -1, i.batchDirty = -1, i.vertexData = null, i._fillStyle = new Qu(), i._lineStyle = new Mm(), i._matrix = null, i._holeMode = !1, i.state = Xi.for2d(), i._geometry = t || new Nm(), i._geometry.refCount++, i._transformID = -1, i.tint = 16777215, i.blendMode = H.NORMAL, i;
|
|
9191
9191
|
}
|
|
9192
9192
|
return Object.defineProperty(e.prototype, "geometry", {
|
|
9193
9193
|
get: function() {
|
|
@@ -9263,9 +9263,9 @@ var Uh = function() {
|
|
|
9263
9263
|
}, e.prototype.quadraticCurveTo = function(t, i, n, s) {
|
|
9264
9264
|
this._initCurve();
|
|
9265
9265
|
var a = this.currentPath.points;
|
|
9266
|
-
return a.length === 0 && this.moveTo(0, 0),
|
|
9266
|
+
return a.length === 0 && this.moveTo(0, 0), Am.curveTo(t, i, n, s, a), this;
|
|
9267
9267
|
}, e.prototype.bezierCurveTo = function(t, i, n, s, a, o) {
|
|
9268
|
-
return this._initCurve(),
|
|
9268
|
+
return this._initCurve(), Om.curveTo(t, i, n, s, a, o, this.currentPath.points), this;
|
|
9269
9269
|
}, e.prototype.arcTo = function(t, i, n, s, a) {
|
|
9270
9270
|
this._initCurve(t, i);
|
|
9271
9271
|
var o = this.currentPath.points, h = Uh.curveTo(t, i, n, s, a, o);
|
|
@@ -9304,11 +9304,11 @@ var Uh = function() {
|
|
|
9304
9304
|
}, e.prototype.drawRect = function(t, i, n, s) {
|
|
9305
9305
|
return this.drawShape(new $(t, i, n, s));
|
|
9306
9306
|
}, e.prototype.drawRoundedRect = function(t, i, n, s, a) {
|
|
9307
|
-
return this.drawShape(new
|
|
9307
|
+
return this.drawShape(new If(t, i, n, s, a));
|
|
9308
9308
|
}, e.prototype.drawCircle = function(t, i, n) {
|
|
9309
|
-
return this.drawShape(new
|
|
9309
|
+
return this.drawShape(new Of(t, i, n));
|
|
9310
9310
|
}, e.prototype.drawEllipse = function(t, i, n, s) {
|
|
9311
|
-
return this.drawShape(new
|
|
9311
|
+
return this.drawShape(new Af(t, i, n, s));
|
|
9312
9312
|
}, e.prototype.drawPolygon = function() {
|
|
9313
9313
|
for (var t = arguments, i = [], n = 0; n < arguments.length; n++)
|
|
9314
9314
|
i[n] = t[n];
|
|
@@ -9389,7 +9389,7 @@ var Uh = function() {
|
|
|
9389
9389
|
}, e.prototype.calculateTints = function() {
|
|
9390
9390
|
if (this.batchTint !== this.tint) {
|
|
9391
9391
|
this.batchTint = this.tint;
|
|
9392
|
-
for (var t = hr(this.tint,
|
|
9392
|
+
for (var t = hr(this.tint, Dm), i = 0; i < this.batches.length; i++) {
|
|
9393
9393
|
var n = this.batches[i], s = n._batchRGB, a = t[0] * s[0] * 255, o = t[1] * s[1] * 255, h = t[2] * s[2] * 255, u = (a << 16) + (o << 8) + (h | 0);
|
|
9394
9394
|
n._tintRGB = (u >> 16) + (u & 65280) + ((u & 255) << 16);
|
|
9395
9395
|
}
|
|
@@ -9424,18 +9424,18 @@ var Aa = function(r, e) {
|
|
|
9424
9424
|
i.hasOwnProperty(n) && (t[n] = i[n]);
|
|
9425
9425
|
}, Aa(r, e);
|
|
9426
9426
|
};
|
|
9427
|
-
function
|
|
9427
|
+
function Fm(r, e) {
|
|
9428
9428
|
Aa(r, e);
|
|
9429
9429
|
function t() {
|
|
9430
9430
|
this.constructor = r;
|
|
9431
9431
|
}
|
|
9432
9432
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
9433
9433
|
}
|
|
9434
|
-
var Er = new ft(),
|
|
9435
|
-
|
|
9434
|
+
var Er = new ft(), Bm = new Uint16Array([0, 1, 2, 0, 2, 3]), ut = function(r) {
|
|
9435
|
+
Fm(e, r);
|
|
9436
9436
|
function e(t) {
|
|
9437
9437
|
var i = r.call(this) || this;
|
|
9438
|
-
return i._anchor = new Ki(i._onAnchorUpdate, i, t ? t.defaultAnchor.x : 0, t ? t.defaultAnchor.y : 0), i._texture = null, i._width = 0, i._height = 0, i._tint = null, i._tintRGB = null, i.tint = 16777215, i.blendMode = H.NORMAL, i._cachedTint = 16777215, i.uvs = null, i.texture = t || Y.EMPTY, i.vertexData = new Float32Array(8), i.vertexTrimmedData = null, i._transformID = -1, i._textureID = -1, i._transformTrimmedID = -1, i._textureTrimmedID = -1, i.indices =
|
|
9438
|
+
return i._anchor = new Ki(i._onAnchorUpdate, i, t ? t.defaultAnchor.x : 0, t ? t.defaultAnchor.y : 0), i._texture = null, i._width = 0, i._height = 0, i._tint = null, i._tintRGB = null, i.tint = 16777215, i.blendMode = H.NORMAL, i._cachedTint = 16777215, i.uvs = null, i.texture = t || Y.EMPTY, i.vertexData = new Float32Array(8), i.vertexTrimmedData = null, i._transformID = -1, i._textureID = -1, i._transformTrimmedID = -1, i._textureTrimmedID = -1, i.indices = Bm, i.pluginName = "batch", i.isSprite = !0, i._roundPixels = G.ROUND_PIXELS, i;
|
|
9439
9439
|
}
|
|
9440
9440
|
return e.prototype._onTextureUpdate = function() {
|
|
9441
9441
|
this._textureID = -1, this._textureTrimmedID = -1, this._cachedTint = 16777215, this._width && (this.scale.x = Ji(this.scale.x) * this._width / this._texture.orig.width), this._height && (this.scale.y = Ji(this.scale.y) * this._height / this._texture.orig.height);
|
|
@@ -9546,7 +9546,7 @@ var Ia = function(r, e) {
|
|
|
9546
9546
|
i.hasOwnProperty(n) && (t[n] = i[n]);
|
|
9547
9547
|
}, Ia(r, e);
|
|
9548
9548
|
};
|
|
9549
|
-
function
|
|
9549
|
+
function Lm(r, e) {
|
|
9550
9550
|
Ia(r, e);
|
|
9551
9551
|
function t() {
|
|
9552
9552
|
this.constructor = r;
|
|
@@ -9587,7 +9587,7 @@ var Xs = {
|
|
|
9587
9587
|
wordWrap: !1,
|
|
9588
9588
|
wordWrapWidth: 100,
|
|
9589
9589
|
leading: 0
|
|
9590
|
-
},
|
|
9590
|
+
}, Gm = [
|
|
9591
9591
|
"serif",
|
|
9592
9592
|
"sans-serif",
|
|
9593
9593
|
"monospace",
|
|
@@ -9700,7 +9700,7 @@ var Xs = {
|
|
|
9700
9700
|
return this._fillGradientStops;
|
|
9701
9701
|
},
|
|
9702
9702
|
set: function(e) {
|
|
9703
|
-
|
|
9703
|
+
Um(this._fillGradientStops, e) || (this._fillGradientStops = e, this.styleID++);
|
|
9704
9704
|
},
|
|
9705
9705
|
enumerable: !1,
|
|
9706
9706
|
configurable: !0
|
|
@@ -9872,7 +9872,7 @@ var Xs = {
|
|
|
9872
9872
|
Array.isArray(this.fontFamily) || (t = this.fontFamily.split(","));
|
|
9873
9873
|
for (var i = t.length - 1; i >= 0; i--) {
|
|
9874
9874
|
var n = t[i].trim();
|
|
9875
|
-
!/([\"\'])[^\'\"]+\1/.test(n) &&
|
|
9875
|
+
!/([\"\'])[^\'\"]+\1/.test(n) && Gm.indexOf(n) < 0 && (n = '"' + n + '"'), t[i] = n;
|
|
9876
9876
|
}
|
|
9877
9877
|
return this.fontStyle + " " + this.fontVariant + " " + this.fontWeight + " " + e + " " + t.join(",");
|
|
9878
9878
|
}, r;
|
|
@@ -9888,7 +9888,7 @@ function Hs(r) {
|
|
|
9888
9888
|
} else
|
|
9889
9889
|
return Hh(r);
|
|
9890
9890
|
}
|
|
9891
|
-
function
|
|
9891
|
+
function Um(r, e) {
|
|
9892
9892
|
if (!Array.isArray(r) || !Array.isArray(e) || r.length !== e.length)
|
|
9893
9893
|
return !1;
|
|
9894
9894
|
for (var t = 0; t < r.length; ++t)
|
|
@@ -10096,12 +10096,12 @@ _e._breakingSpaces = [
|
|
|
10096
10096
|
8287,
|
|
10097
10097
|
12288
|
|
10098
10098
|
];
|
|
10099
|
-
var
|
|
10099
|
+
var km = {
|
|
10100
10100
|
texture: !0,
|
|
10101
10101
|
children: !1,
|
|
10102
10102
|
baseTexture: !0
|
|
10103
10103
|
}, el = function(r) {
|
|
10104
|
-
|
|
10104
|
+
Lm(e, r);
|
|
10105
10105
|
function e(t, i, n) {
|
|
10106
10106
|
var s = this, a = !1;
|
|
10107
10107
|
n || (n = G.ADAPTER.createCanvas(), a = !0), n.width = 3, n.height = 3;
|
|
@@ -10148,7 +10148,7 @@ var Um = {
|
|
|
10148
10148
|
}, e.prototype.updateTexture = function() {
|
|
10149
10149
|
var t = this.canvas;
|
|
10150
10150
|
if (this._style.trim) {
|
|
10151
|
-
var i =
|
|
10151
|
+
var i = Xv(t);
|
|
10152
10152
|
i.data && (t.width = i.width, t.height = i.height, this.context.putImageData(i.data, 0, 0));
|
|
10153
10153
|
}
|
|
10154
10154
|
var n = this._texture, s = this._style, a = s.trim ? 0 : s.padding, o = n.baseTexture;
|
|
@@ -10197,7 +10197,7 @@ var Um = {
|
|
|
10197
10197
|
}
|
|
10198
10198
|
return a;
|
|
10199
10199
|
}, e.prototype.destroy = function(t) {
|
|
10200
|
-
typeof t == "boolean" && (t = { children: t }), t = Object.assign({},
|
|
10200
|
+
typeof t == "boolean" && (t = { children: t }), t = Object.assign({}, km, t), r.prototype.destroy.call(this, t), this._ownCanvas && (this.canvas.height = this.canvas.width = 0), this.context = null, this.canvas = null, this._style = null;
|
|
10201
10201
|
}, Object.defineProperty(e.prototype, "width", {
|
|
10202
10202
|
get: function() {
|
|
10203
10203
|
return this.updateText(!0), Math.abs(this.scale.x) * this._texture.orig.width;
|
|
@@ -10258,14 +10258,14 @@ var Na = function(r, e) {
|
|
|
10258
10258
|
i.hasOwnProperty(n) && (t[n] = i[n]);
|
|
10259
10259
|
}, Na(r, e);
|
|
10260
10260
|
};
|
|
10261
|
-
function
|
|
10261
|
+
function Xm(r, e) {
|
|
10262
10262
|
Na(r, e);
|
|
10263
10263
|
function t() {
|
|
10264
10264
|
this.constructor = r;
|
|
10265
10265
|
}
|
|
10266
10266
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
10267
10267
|
}
|
|
10268
|
-
var
|
|
10268
|
+
var Hm = function() {
|
|
10269
10269
|
function r(e) {
|
|
10270
10270
|
this.maxItemsPerFrame = e, this.itemsLeft = 0;
|
|
10271
10271
|
}
|
|
@@ -10275,7 +10275,7 @@ var Xm = function() {
|
|
|
10275
10275
|
return this.itemsLeft-- > 0;
|
|
10276
10276
|
}, r;
|
|
10277
10277
|
}();
|
|
10278
|
-
function
|
|
10278
|
+
function Wm(r, e) {
|
|
10279
10279
|
var t = !1;
|
|
10280
10280
|
if (r && r._textures && r._textures.length) {
|
|
10281
10281
|
for (var i = 0; i < r._textures.length; i++)
|
|
@@ -10286,31 +10286,31 @@ function Hm(r, e) {
|
|
|
10286
10286
|
}
|
|
10287
10287
|
return t;
|
|
10288
10288
|
}
|
|
10289
|
-
function
|
|
10289
|
+
function Vm(r, e) {
|
|
10290
10290
|
if (r.baseTexture instanceof Q) {
|
|
10291
10291
|
var t = r.baseTexture;
|
|
10292
10292
|
return e.indexOf(t) === -1 && e.push(t), !0;
|
|
10293
10293
|
}
|
|
10294
10294
|
return !1;
|
|
10295
10295
|
}
|
|
10296
|
-
function
|
|
10296
|
+
function zm(r, e) {
|
|
10297
10297
|
if (r._texture && r._texture instanceof Y) {
|
|
10298
10298
|
var t = r._texture.baseTexture;
|
|
10299
10299
|
return e.indexOf(t) === -1 && e.push(t), !0;
|
|
10300
10300
|
}
|
|
10301
10301
|
return !1;
|
|
10302
10302
|
}
|
|
10303
|
-
function
|
|
10303
|
+
function Ym(r, e) {
|
|
10304
10304
|
return e instanceof el ? (e.updateText(!0), !0) : !1;
|
|
10305
10305
|
}
|
|
10306
|
-
function
|
|
10306
|
+
function jm(r, e) {
|
|
10307
10307
|
if (e instanceof ci) {
|
|
10308
10308
|
var t = e.toFontString();
|
|
10309
10309
|
return _e.measureFont(t), !0;
|
|
10310
10310
|
}
|
|
10311
10311
|
return !1;
|
|
10312
10312
|
}
|
|
10313
|
-
function
|
|
10313
|
+
function Zm(r, e) {
|
|
10314
10314
|
if (r instanceof el) {
|
|
10315
10315
|
e.indexOf(r.style) === -1 && e.push(r.style), e.indexOf(r) === -1 && e.push(r);
|
|
10316
10316
|
var t = r._texture.baseTexture;
|
|
@@ -10318,15 +10318,15 @@ function jm(r, e) {
|
|
|
10318
10318
|
}
|
|
10319
10319
|
return !1;
|
|
10320
10320
|
}
|
|
10321
|
-
function
|
|
10321
|
+
function Km(r, e) {
|
|
10322
10322
|
return r instanceof ci ? (e.indexOf(r) === -1 && e.push(r), !0) : !1;
|
|
10323
10323
|
}
|
|
10324
|
-
var
|
|
10324
|
+
var qm = function() {
|
|
10325
10325
|
function r(e) {
|
|
10326
10326
|
var t = this;
|
|
10327
|
-
this.limiter = new
|
|
10327
|
+
this.limiter = new Hm(G.UPLOADS_PER_FRAME), this.renderer = e, this.uploadHookHelper = null, this.queue = [], this.addHooks = [], this.uploadHooks = [], this.completes = [], this.ticking = !1, this.delayedTick = function() {
|
|
10328
10328
|
t.queue && t.prepareItems();
|
|
10329
|
-
}, this.registerFindHook(
|
|
10329
|
+
}, this.registerFindHook(Zm), this.registerFindHook(Km), this.registerFindHook(Wm), this.registerFindHook(Vm), this.registerFindHook(zm), this.registerUploadHook(Ym), this.registerUploadHook(jm);
|
|
10330
10330
|
}
|
|
10331
10331
|
return r.prototype.upload = function(e, t) {
|
|
10332
10332
|
var i = this;
|
|
@@ -10378,7 +10378,7 @@ var Km = function() {
|
|
|
10378
10378
|
function il(r, e) {
|
|
10379
10379
|
return e instanceof Q ? (e._glTextures[r.CONTEXT_UID] || r.texture.bind(e), !0) : !1;
|
|
10380
10380
|
}
|
|
10381
|
-
function
|
|
10381
|
+
function $m(r, e) {
|
|
10382
10382
|
if (!(e instanceof Ne))
|
|
10383
10383
|
return !1;
|
|
10384
10384
|
var t = e.geometry;
|
|
@@ -10389,21 +10389,21 @@ function qm(r, e) {
|
|
|
10389
10389
|
}
|
|
10390
10390
|
return t.batchable || r.geometry.bind(t, e._resolveDirectShader(r)), !0;
|
|
10391
10391
|
}
|
|
10392
|
-
function
|
|
10392
|
+
function Jm(r, e) {
|
|
10393
10393
|
return r instanceof Ne ? (e.push(r), !0) : !1;
|
|
10394
10394
|
}
|
|
10395
|
-
var
|
|
10396
|
-
|
|
10395
|
+
var Qm = function(r) {
|
|
10396
|
+
Xm(e, r);
|
|
10397
10397
|
function e(t) {
|
|
10398
10398
|
var i = r.call(this, t) || this;
|
|
10399
|
-
return i.uploadHookHelper = i.renderer, i.registerFindHook(
|
|
10399
|
+
return i.uploadHookHelper = i.renderer, i.registerFindHook(Jm), i.registerUploadHook(il), i.registerUploadHook($m), i;
|
|
10400
10400
|
}
|
|
10401
10401
|
return e.extension = {
|
|
10402
10402
|
name: "prepare",
|
|
10403
10403
|
type: nt.RendererPlugin
|
|
10404
10404
|
}, e;
|
|
10405
|
-
}(
|
|
10406
|
-
var
|
|
10405
|
+
}(qm);
|
|
10406
|
+
var t0 = function() {
|
|
10407
10407
|
function r(e, t, i) {
|
|
10408
10408
|
i === void 0 && (i = null), this.linkedSheets = [], this._texture = e instanceof Y ? e : null, this.baseTexture = e instanceof Q ? e : this._texture.baseTexture, this.textures = {}, this.animations = {}, this.data = t;
|
|
10409
10409
|
var n = this.baseTexture.resource;
|
|
@@ -10453,7 +10453,7 @@ var Qm = function() {
|
|
|
10453
10453
|
this.textures[i].destroy();
|
|
10454
10454
|
this._frames = null, this._frameKeys = null, this.data = null, this.textures = null, e && ((t = this._texture) === null || t === void 0 || t.destroy(), this.baseTexture.destroy()), this._texture = null, this.baseTexture = null, this.linkedSheets = [];
|
|
10455
10455
|
}, r.BATCH_SIZE = 1e3, r;
|
|
10456
|
-
}(),
|
|
10456
|
+
}(), e0 = function() {
|
|
10457
10457
|
function r() {
|
|
10458
10458
|
}
|
|
10459
10459
|
return r.use = function(e, t) {
|
|
@@ -10494,7 +10494,7 @@ var Qm = function() {
|
|
|
10494
10494
|
t(p.error);
|
|
10495
10495
|
return;
|
|
10496
10496
|
}
|
|
10497
|
-
var _ = new
|
|
10497
|
+
var _ = new t0(p.texture, e.data, e.url);
|
|
10498
10498
|
_.parse().then(function() {
|
|
10499
10499
|
e.spritesheet = _, e.textures = _.textures, t();
|
|
10500
10500
|
});
|
|
@@ -10597,7 +10597,7 @@ var Sr = new ft();
|
|
|
10597
10597
|
configurable: !0
|
|
10598
10598
|
}), e;
|
|
10599
10599
|
})(ut);
|
|
10600
|
-
var
|
|
10600
|
+
var i0 = `#version 100
|
|
10601
10601
|
#define SHADER_NAME Tiling-Sprite-Simple-100
|
|
10602
10602
|
|
|
10603
10603
|
precision lowp float;
|
|
@@ -10632,7 +10632,7 @@ void main(void)
|
|
|
10632
10632
|
|
|
10633
10633
|
vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;
|
|
10634
10634
|
}
|
|
10635
|
-
`,
|
|
10635
|
+
`, r0 = `#version 100
|
|
10636
10636
|
#ifdef GL_EXT_shader_texture_lod
|
|
10637
10637
|
#extension GL_EXT_shader_texture_lod : enable
|
|
10638
10638
|
#endif
|
|
@@ -10665,7 +10665,7 @@ void main(void)
|
|
|
10665
10665
|
|
|
10666
10666
|
gl_FragColor = texSample * uColor;
|
|
10667
10667
|
}
|
|
10668
|
-
`,
|
|
10668
|
+
`, n0 = `#version 300 es
|
|
10669
10669
|
#define SHADER_NAME Tiling-Sprite-300
|
|
10670
10670
|
|
|
10671
10671
|
precision lowp float;
|
|
@@ -10685,7 +10685,7 @@ void main(void)
|
|
|
10685
10685
|
|
|
10686
10686
|
vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;
|
|
10687
10687
|
}
|
|
10688
|
-
`,
|
|
10688
|
+
`, s0 = `#version 300 es
|
|
10689
10689
|
#define SHADER_NAME Tiling-Sprite-100
|
|
10690
10690
|
|
|
10691
10691
|
precision lowp float;
|
|
@@ -10711,7 +10711,7 @@ void main(void)
|
|
|
10711
10711
|
|
|
10712
10712
|
fragmentColor = texSample * uColor;
|
|
10713
10713
|
}
|
|
10714
|
-
`, Pn = new Ft(),
|
|
10714
|
+
`, Pn = new Ft(), a0 = function(r) {
|
|
10715
10715
|
rl(e, r);
|
|
10716
10716
|
function e(t) {
|
|
10717
10717
|
var i = r.call(this, t) || this;
|
|
@@ -10719,7 +10719,7 @@ void main(void)
|
|
|
10719
10719
|
}
|
|
10720
10720
|
return e.prototype.contextChange = function() {
|
|
10721
10721
|
var t = this.renderer, i = { globals: t.globalUniforms };
|
|
10722
|
-
this.simpleShader = hi.from(Wh,
|
|
10722
|
+
this.simpleShader = hi.from(Wh, i0, i), this.shader = t.context.webGLVersion > 1 ? hi.from(n0, s0, i) : hi.from(Wh, r0, i);
|
|
10723
10723
|
}, e.prototype.render = function(t) {
|
|
10724
10724
|
var i = this.renderer, n = this.quad, s = n.vertices;
|
|
10725
10725
|
s[0] = s[6] = t._width * -t.anchor.x, s[1] = s[3] = t._height * -t.anchor.y, s[2] = s[4] = t._width * (1 - t.anchor.x), s[5] = s[7] = t._height * (1 - t.anchor.y);
|
|
@@ -10749,7 +10749,7 @@ function go(r, e) {
|
|
|
10749
10749
|
}
|
|
10750
10750
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
10751
10751
|
}
|
|
10752
|
-
var
|
|
10752
|
+
var o0 = function() {
|
|
10753
10753
|
function r(e, t) {
|
|
10754
10754
|
this.uvBuffer = e, this.uvMatrix = t, this.data = null, this._bufferUpdateId = -1, this._textureUpdateId = -1, this._updateID = 0;
|
|
10755
10755
|
}
|
|
@@ -10859,7 +10859,7 @@ var a0 = function() {
|
|
|
10859
10859
|
}
|
|
10860
10860
|
}, e.prototype.calculateUvs = function() {
|
|
10861
10861
|
var t = this.geometry.buffers[1], i = this.shader;
|
|
10862
|
-
i.uvMatrix.isSimple ? this.uvs = t.data : (this.batchUvs || (this.batchUvs = new
|
|
10862
|
+
i.uvMatrix.isSimple ? this.uvs = t.data : (this.batchUvs || (this.batchUvs = new o0(t, i.uvMatrix)), this.batchUvs.update(), this.uvs = this.batchUvs.data);
|
|
10863
10863
|
}, e.prototype._calculateBounds = function() {
|
|
10864
10864
|
this.calculateVertices(), this._bounds.addVertexData(this.vertexData, 0, this.vertexData.length);
|
|
10865
10865
|
}, e.prototype.containsPoint = function(t) {
|
|
@@ -10875,7 +10875,7 @@ var a0 = function() {
|
|
|
10875
10875
|
}, e.prototype.destroy = function(t) {
|
|
10876
10876
|
r.prototype.destroy.call(this, t), this._cachedTexture && (this._cachedTexture.destroy(), this._cachedTexture = null), this.geometry = null, this.shader = null, this.state = null, this.uvs = null, this.indices = null, this.vertexData = null;
|
|
10877
10877
|
}, e.BATCHABLE_SIZE = 100, e;
|
|
10878
|
-
}(ct),
|
|
10878
|
+
}(ct), h0 = `varying vec2 vTextureCoord;
|
|
10879
10879
|
uniform vec4 uColor;
|
|
10880
10880
|
|
|
10881
10881
|
uniform sampler2D uSampler;
|
|
@@ -10884,7 +10884,7 @@ void main(void)
|
|
|
10884
10884
|
{
|
|
10885
10885
|
gl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;
|
|
10886
10886
|
}
|
|
10887
|
-
`,
|
|
10887
|
+
`, u0 = `attribute vec2 aVertexPosition;
|
|
10888
10888
|
attribute vec2 aTextureCoord;
|
|
10889
10889
|
|
|
10890
10890
|
uniform mat3 projectionMatrix;
|
|
@@ -10912,7 +10912,7 @@ void main(void)
|
|
|
10912
10912
|
tint: 16777215,
|
|
10913
10913
|
alpha: 1,
|
|
10914
10914
|
pluginName: "batch"
|
|
10915
|
-
}, i), i.uniforms && Object.assign(s, i.uniforms), n = r.call(this, i.program || tn.from(
|
|
10915
|
+
}, i), i.uniforms && Object.assign(s, i.uniforms), n = r.call(this, i.program || tn.from(u0, h0), s) || this, n._colorDirty = !1, n.uvMatrix = new vo(t), n.batchable = i.program === void 0, n.pluginName = i.pluginName, n.tint = i.tint, n.alpha = i.alpha, n;
|
|
10916
10916
|
}
|
|
10917
10917
|
return Object.defineProperty(e.prototype, "texture", {
|
|
10918
10918
|
get: function() {
|
|
@@ -10971,7 +10971,7 @@ var Fa = function(r, e) {
|
|
|
10971
10971
|
i.hasOwnProperty(n) && (t[n] = i[n]);
|
|
10972
10972
|
}, Fa(r, e);
|
|
10973
10973
|
};
|
|
10974
|
-
function
|
|
10974
|
+
function l0(r, e) {
|
|
10975
10975
|
Fa(r, e);
|
|
10976
10976
|
function t() {
|
|
10977
10977
|
this.constructor = r;
|
|
@@ -10983,7 +10983,7 @@ var Zn = function() {
|
|
|
10983
10983
|
this.info = [], this.common = [], this.page = [], this.char = [], this.kerning = [], this.distanceField = [];
|
|
10984
10984
|
}
|
|
10985
10985
|
return r;
|
|
10986
|
-
}(),
|
|
10986
|
+
}(), f0 = function() {
|
|
10987
10987
|
function r() {
|
|
10988
10988
|
}
|
|
10989
10989
|
return r.test = function(e) {
|
|
@@ -11094,7 +11094,7 @@ var Zn = function() {
|
|
|
11094
11094
|
});
|
|
11095
11095
|
return t;
|
|
11096
11096
|
}, r;
|
|
11097
|
-
}(),
|
|
11097
|
+
}(), c0 = function() {
|
|
11098
11098
|
function r() {
|
|
11099
11099
|
}
|
|
11100
11100
|
return r.test = function(e) {
|
|
@@ -11108,9 +11108,9 @@ var Zn = function() {
|
|
|
11108
11108
|
return Ba.parse(t);
|
|
11109
11109
|
}, r;
|
|
11110
11110
|
}(), zs = [
|
|
11111
|
-
|
|
11111
|
+
f0,
|
|
11112
11112
|
Ba,
|
|
11113
|
-
|
|
11113
|
+
c0
|
|
11114
11114
|
];
|
|
11115
11115
|
function nl(r) {
|
|
11116
11116
|
for (var e = 0; e < zs.length; e++)
|
|
@@ -11118,7 +11118,7 @@ function nl(r) {
|
|
|
11118
11118
|
return zs[e];
|
|
11119
11119
|
return null;
|
|
11120
11120
|
}
|
|
11121
|
-
function
|
|
11121
|
+
function d0(r, e, t, i, n, s) {
|
|
11122
11122
|
var a = t.fill;
|
|
11123
11123
|
if (Array.isArray(a)) {
|
|
11124
11124
|
if (a.length === 1)
|
|
@@ -11147,11 +11147,11 @@ function c0(r, e, t, i, n, s) {
|
|
|
11147
11147
|
}
|
|
11148
11148
|
return o;
|
|
11149
11149
|
}
|
|
11150
|
-
function
|
|
11150
|
+
function p0(r, e, t, i, n, s, a) {
|
|
11151
11151
|
var o = t.text, h = t.fontProperties;
|
|
11152
11152
|
e.translate(i, n), e.scale(s, s);
|
|
11153
11153
|
var u = a.strokeThickness / 2, l = -(a.strokeThickness / 2);
|
|
11154
|
-
if (e.font = a.toFontString(), e.lineWidth = a.strokeThickness, e.textBaseline = a.textBaseline, e.lineJoin = a.lineJoin, e.miterLimit = a.miterLimit, e.fillStyle =
|
|
11154
|
+
if (e.font = a.toFontString(), e.lineWidth = a.strokeThickness, e.textBaseline = a.textBaseline, e.lineJoin = a.lineJoin, e.miterLimit = a.miterLimit, e.fillStyle = d0(r, e, a, s, [o], t), e.strokeStyle = a.stroke, a.dropShadow) {
|
|
11155
11155
|
var f = a.dropShadowColor, c = hr(typeof f == "number" ? f : Pu(f)), d = a.dropShadowBlur * s, v = a.dropShadowDistance * s;
|
|
11156
11156
|
e.shadowColor = "rgba(" + c[0] * 255 + "," + c[1] * 255 + "," + c[2] * 255 + "," + a.dropShadowAlpha + ")", e.shadowBlur = d, e.shadowOffsetX = Math.cos(a.dropShadowAngle) * v, e.shadowOffsetY = Math.sin(a.dropShadowAngle) * v;
|
|
11157
11157
|
} else
|
|
@@ -11161,7 +11161,7 @@ function d0(r, e, t, i, n, s, a) {
|
|
|
11161
11161
|
function sl(r) {
|
|
11162
11162
|
return Array.from ? Array.from(r) : r.split("");
|
|
11163
11163
|
}
|
|
11164
|
-
function
|
|
11164
|
+
function v0(r) {
|
|
11165
11165
|
typeof r == "string" && (r = [r]);
|
|
11166
11166
|
for (var e = [], t = 0, i = r.length; t < i; t++) {
|
|
11167
11167
|
var n = r[t];
|
|
@@ -11237,7 +11237,7 @@ var xt = function() {
|
|
|
11237
11237
|
}, r.from = function(e, t, i) {
|
|
11238
11238
|
if (!e)
|
|
11239
11239
|
throw new Error("[BitmapFont] Property `name` is required.");
|
|
11240
|
-
var n = Object.assign({}, r.defaultOptions, i), s = n.chars, a = n.padding, o = n.resolution, h = n.textureWidth, u = n.textureHeight, l =
|
|
11240
|
+
var n = Object.assign({}, r.defaultOptions, i), s = n.chars, a = n.padding, o = n.resolution, h = n.textureWidth, u = n.textureHeight, l = v0(s), f = t instanceof ci ? t : new ci(t), c = h, d = new Zn();
|
|
11241
11241
|
d.info[0] = {
|
|
11242
11242
|
face: f.fontFamily,
|
|
11243
11243
|
size: f.fontSize
|
|
@@ -11262,7 +11262,7 @@ var xt = function() {
|
|
|
11262
11262
|
--b, p += y * o, p = Math.ceil(p), v = 0, y = 0;
|
|
11263
11263
|
continue;
|
|
11264
11264
|
}
|
|
11265
|
-
|
|
11265
|
+
p0(_, g, E, v, p, o, f);
|
|
11266
11266
|
var O = Mn(E.text);
|
|
11267
11267
|
d.char.push({
|
|
11268
11268
|
id: O,
|
|
@@ -11294,7 +11294,7 @@ var xt = function() {
|
|
|
11294
11294
|
padding: 4,
|
|
11295
11295
|
chars: r.ALPHANUMERIC
|
|
11296
11296
|
}, r.available = {}, r;
|
|
11297
|
-
}(),
|
|
11297
|
+
}(), _0 = `// Pixi texture info\r
|
|
11298
11298
|
varying vec2 vTextureCoord;\r
|
|
11299
11299
|
uniform sampler2D uSampler;\r
|
|
11300
11300
|
\r
|
|
@@ -11328,7 +11328,7 @@ void main(void) {\r
|
|
|
11328
11328
|
gl_FragColor = vec4(uColor.rgb, uColor.a * alpha);\r
|
|
11329
11329
|
\r
|
|
11330
11330
|
}\r
|
|
11331
|
-
`,
|
|
11331
|
+
`, g0 = `// Mesh material default fragment\r
|
|
11332
11332
|
attribute vec2 aVertexPosition;\r
|
|
11333
11333
|
attribute vec2 aTextureCoord;\r
|
|
11334
11334
|
\r
|
|
@@ -11345,7 +11345,7 @@ void main(void)\r
|
|
|
11345
11345
|
vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;\r
|
|
11346
11346
|
}\r
|
|
11347
11347
|
`, zh = [], Yh = [], jh = [], Kn = function(r) {
|
|
11348
|
-
|
|
11348
|
+
l0(e, r);
|
|
11349
11349
|
function e(t, i) {
|
|
11350
11350
|
i === void 0 && (i = {});
|
|
11351
11351
|
var n = r.call(this) || this;
|
|
@@ -11394,7 +11394,7 @@ void main(void)\r
|
|
|
11394
11394
|
var C = d.pop();
|
|
11395
11395
|
if (!C) {
|
|
11396
11396
|
var U = new us(), Z = void 0, z = void 0;
|
|
11397
|
-
i.distanceFieldType === "none" ? (Z = new Wr(Y.EMPTY), z = H.NORMAL) : (Z = new Wr(Y.EMPTY, { program: tn.from(
|
|
11397
|
+
i.distanceFieldType === "none" ? (Z = new Wr(Y.EMPTY), z = H.NORMAL) : (Z = new Wr(Y.EMPTY, { program: tn.from(g0, _0), uniforms: { uFWidth: 0 } }), z = H.NORMAL_NPM);
|
|
11398
11398
|
var tt = new Hr(U, Z);
|
|
11399
11399
|
tt.blendMode = z, C = {
|
|
11400
11400
|
index: 0,
|
|
@@ -11603,7 +11603,7 @@ void main(void)\r
|
|
|
11603
11603
|
maxWidth: 0,
|
|
11604
11604
|
letterSpacing: 0
|
|
11605
11605
|
}, e;
|
|
11606
|
-
}(ct),
|
|
11606
|
+
}(ct), m0 = function() {
|
|
11607
11607
|
function r() {
|
|
11608
11608
|
}
|
|
11609
11609
|
return r.add = function() {
|
|
@@ -11651,14 +11651,14 @@ var La = function(r, e) {
|
|
|
11651
11651
|
i.hasOwnProperty(n) && (t[n] = i[n]);
|
|
11652
11652
|
}, La(r, e);
|
|
11653
11653
|
};
|
|
11654
|
-
function
|
|
11654
|
+
function y0(r, e) {
|
|
11655
11655
|
La(r, e);
|
|
11656
11656
|
function t() {
|
|
11657
11657
|
this.constructor = r;
|
|
11658
11658
|
}
|
|
11659
11659
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
11660
11660
|
}
|
|
11661
|
-
var
|
|
11661
|
+
var b0 = `varying vec2 vTextureCoord;
|
|
11662
11662
|
|
|
11663
11663
|
uniform sampler2D uSampler;
|
|
11664
11664
|
uniform float uAlpha;
|
|
@@ -11669,10 +11669,10 @@ void main(void)
|
|
|
11669
11669
|
}
|
|
11670
11670
|
`;
|
|
11671
11671
|
(function(r) {
|
|
11672
|
-
|
|
11672
|
+
y0(e, r);
|
|
11673
11673
|
function e(t) {
|
|
11674
11674
|
t === void 0 && (t = 1);
|
|
11675
|
-
var i = r.call(this,
|
|
11675
|
+
var i = r.call(this, vg, b0, { uAlpha: 1 }) || this;
|
|
11676
11676
|
return i.alpha = t, i;
|
|
11677
11677
|
}
|
|
11678
11678
|
return Object.defineProperty(e.prototype, "alpha", {
|
|
@@ -11701,7 +11701,7 @@ function al(r, e) {
|
|
|
11701
11701
|
}
|
|
11702
11702
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
11703
11703
|
}
|
|
11704
|
-
var
|
|
11704
|
+
var x0 = `
|
|
11705
11705
|
attribute vec2 aVertexPosition;
|
|
11706
11706
|
|
|
11707
11707
|
uniform mat3 projectionMatrix;
|
|
@@ -11732,8 +11732,8 @@ var b0 = `
|
|
|
11732
11732
|
vec2 textureCoord = filterTextureCoord();
|
|
11733
11733
|
%blur%
|
|
11734
11734
|
}`;
|
|
11735
|
-
function
|
|
11736
|
-
var t = Math.ceil(r / 2), i =
|
|
11735
|
+
function T0(r, e) {
|
|
11736
|
+
var t = Math.ceil(r / 2), i = x0, n = "", s;
|
|
11737
11737
|
e ? s = "vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * strength, 0.0);" : s = "vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * strength);";
|
|
11738
11738
|
for (var a = 0; a < r; a++) {
|
|
11739
11739
|
var o = s.replace("%index%", a.toString());
|
|
@@ -11742,14 +11742,14 @@ function x0(r, e) {
|
|
|
11742
11742
|
}
|
|
11743
11743
|
return i = i.replace("%blur%", n), i = i.replace("%size%", r.toString()), i;
|
|
11744
11744
|
}
|
|
11745
|
-
var
|
|
11745
|
+
var E0 = {
|
|
11746
11746
|
5: [0.153388, 0.221461, 0.250301],
|
|
11747
11747
|
7: [0.071303, 0.131514, 0.189879, 0.214607],
|
|
11748
11748
|
9: [0.028532, 0.067234, 0.124009, 0.179044, 0.20236],
|
|
11749
11749
|
11: [93e-4, 0.028002, 0.065984, 0.121703, 0.175713, 0.198596],
|
|
11750
11750
|
13: [2406e-6, 9255e-6, 0.027867, 0.065666, 0.121117, 0.174868, 0.197641],
|
|
11751
11751
|
15: [489e-6, 2403e-6, 9246e-6, 0.02784, 0.065602, 0.120999, 0.174697, 0.197448]
|
|
11752
|
-
},
|
|
11752
|
+
}, S0 = [
|
|
11753
11753
|
"varying vec2 vBlurTexCoords[%size%];",
|
|
11754
11754
|
"uniform sampler2D uSampler;",
|
|
11755
11755
|
"void main(void)",
|
|
@@ -11759,8 +11759,8 @@ var T0 = {
|
|
|
11759
11759
|
"}"
|
|
11760
11760
|
].join(`
|
|
11761
11761
|
`);
|
|
11762
|
-
function
|
|
11763
|
-
for (var e =
|
|
11762
|
+
function w0(r) {
|
|
11763
|
+
for (var e = E0[r], t = e.length, i = S0, n = "", s = "gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;", a, o = 0; o < r; o++) {
|
|
11764
11764
|
var h = s.replace("%index%", o.toString());
|
|
11765
11765
|
a = o, o >= t && (a = r - o - 1), h = h.replace("%value%", e[a].toString()), n += h, n += `
|
|
11766
11766
|
`;
|
|
@@ -11771,7 +11771,7 @@ var Zh = function(r) {
|
|
|
11771
11771
|
al(e, r);
|
|
11772
11772
|
function e(t, i, n, s, a) {
|
|
11773
11773
|
i === void 0 && (i = 8), n === void 0 && (n = 4), s === void 0 && (s = G.FILTER_RESOLUTION), a === void 0 && (a = 5);
|
|
11774
|
-
var o = this, h =
|
|
11774
|
+
var o = this, h = T0(a, t), u = w0(a);
|
|
11775
11775
|
return o = r.call(
|
|
11776
11776
|
this,
|
|
11777
11777
|
h,
|
|
@@ -11891,14 +11891,14 @@ var Ua = function(r, e) {
|
|
|
11891
11891
|
i.hasOwnProperty(n) && (t[n] = i[n]);
|
|
11892
11892
|
}, Ua(r, e);
|
|
11893
11893
|
};
|
|
11894
|
-
function
|
|
11894
|
+
function R0(r, e) {
|
|
11895
11895
|
Ua(r, e);
|
|
11896
11896
|
function t() {
|
|
11897
11897
|
this.constructor = r;
|
|
11898
11898
|
}
|
|
11899
11899
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
11900
11900
|
}
|
|
11901
|
-
var
|
|
11901
|
+
var P0 = `varying vec2 vTextureCoord;
|
|
11902
11902
|
uniform sampler2D uSampler;
|
|
11903
11903
|
uniform float m[20];
|
|
11904
11904
|
uniform float uAlpha;
|
|
@@ -11951,7 +11951,7 @@ void main(void)
|
|
|
11951
11951
|
gl_FragColor = vec4(rgb, result.a);
|
|
11952
11952
|
}
|
|
11953
11953
|
`, Kh = function(r) {
|
|
11954
|
-
|
|
11954
|
+
R0(e, r);
|
|
11955
11955
|
function e() {
|
|
11956
11956
|
var t = this, i = {
|
|
11957
11957
|
m: new Float32Array([
|
|
@@ -11978,7 +11978,7 @@ void main(void)
|
|
|
11978
11978
|
]),
|
|
11979
11979
|
uAlpha: 1
|
|
11980
11980
|
};
|
|
11981
|
-
return t = r.call(this, Yu,
|
|
11981
|
+
return t = r.call(this, Yu, P0, i) || this, t.alpha = 1, t;
|
|
11982
11982
|
}
|
|
11983
11983
|
return e.prototype._loadMatrix = function(t, i) {
|
|
11984
11984
|
i === void 0 && (i = !1);
|
|
@@ -12504,14 +12504,14 @@ var ka = function(r, e) {
|
|
|
12504
12504
|
i.hasOwnProperty(n) && (t[n] = i[n]);
|
|
12505
12505
|
}, ka(r, e);
|
|
12506
12506
|
};
|
|
12507
|
-
function
|
|
12507
|
+
function C0(r, e) {
|
|
12508
12508
|
ka(r, e);
|
|
12509
12509
|
function t() {
|
|
12510
12510
|
this.constructor = r;
|
|
12511
12511
|
}
|
|
12512
12512
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
12513
12513
|
}
|
|
12514
|
-
var
|
|
12514
|
+
var O0 = `varying vec2 vFilterCoord;
|
|
12515
12515
|
varying vec2 vTextureCoord;
|
|
12516
12516
|
|
|
12517
12517
|
uniform vec2 scale;
|
|
@@ -12531,7 +12531,7 @@ void main(void)
|
|
|
12531
12531
|
|
|
12532
12532
|
gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw));
|
|
12533
12533
|
}
|
|
12534
|
-
`,
|
|
12534
|
+
`, A0 = `attribute vec2 aVertexPosition;
|
|
12535
12535
|
|
|
12536
12536
|
uniform mat3 projectionMatrix;
|
|
12537
12537
|
uniform mat3 filterMatrix;
|
|
@@ -12562,10 +12562,10 @@ void main(void)
|
|
|
12562
12562
|
}
|
|
12563
12563
|
`;
|
|
12564
12564
|
(function(r) {
|
|
12565
|
-
|
|
12565
|
+
C0(e, r);
|
|
12566
12566
|
function e(t, i) {
|
|
12567
12567
|
var n = this, s = new Ft();
|
|
12568
|
-
return t.renderable = !1, n = r.call(this,
|
|
12568
|
+
return t.renderable = !1, n = r.call(this, A0, O0, {
|
|
12569
12569
|
mapSampler: t._texture,
|
|
12570
12570
|
filterMatrix: s,
|
|
12571
12571
|
scale: { x: 1, y: 1 },
|
|
@@ -12595,14 +12595,14 @@ var Xa = function(r, e) {
|
|
|
12595
12595
|
i.hasOwnProperty(n) && (t[n] = i[n]);
|
|
12596
12596
|
}, Xa(r, e);
|
|
12597
12597
|
};
|
|
12598
|
-
function
|
|
12598
|
+
function I0(r, e) {
|
|
12599
12599
|
Xa(r, e);
|
|
12600
12600
|
function t() {
|
|
12601
12601
|
this.constructor = r;
|
|
12602
12602
|
}
|
|
12603
12603
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
12604
12604
|
}
|
|
12605
|
-
var
|
|
12605
|
+
var N0 = `
|
|
12606
12606
|
attribute vec2 aVertexPosition;
|
|
12607
12607
|
|
|
12608
12608
|
uniform mat3 projectionMatrix;
|
|
@@ -12644,7 +12644,7 @@ void main(void) {
|
|
|
12644
12644
|
|
|
12645
12645
|
texcoords(vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);
|
|
12646
12646
|
}
|
|
12647
|
-
`,
|
|
12647
|
+
`, M0 = `varying vec2 v_rgbNW;
|
|
12648
12648
|
varying vec2 v_rgbNE;
|
|
12649
12649
|
varying vec2 v_rgbSW;
|
|
12650
12650
|
varying vec2 v_rgbSE;
|
|
@@ -12767,9 +12767,9 @@ void main() {
|
|
|
12767
12767
|
}
|
|
12768
12768
|
`;
|
|
12769
12769
|
(function(r) {
|
|
12770
|
-
|
|
12770
|
+
I0(e, r);
|
|
12771
12771
|
function e() {
|
|
12772
|
-
return r.call(this,
|
|
12772
|
+
return r.call(this, N0, M0) || this;
|
|
12773
12773
|
}
|
|
12774
12774
|
return e;
|
|
12775
12775
|
})(vi);
|
|
@@ -12781,14 +12781,14 @@ var Ha = function(r, e) {
|
|
|
12781
12781
|
i.hasOwnProperty(n) && (t[n] = i[n]);
|
|
12782
12782
|
}, Ha(r, e);
|
|
12783
12783
|
};
|
|
12784
|
-
function
|
|
12784
|
+
function D0(r, e) {
|
|
12785
12785
|
Ha(r, e);
|
|
12786
12786
|
function t() {
|
|
12787
12787
|
this.constructor = r;
|
|
12788
12788
|
}
|
|
12789
12789
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
12790
12790
|
}
|
|
12791
|
-
var
|
|
12791
|
+
var F0 = `precision highp float;
|
|
12792
12792
|
|
|
12793
12793
|
varying vec2 vTextureCoord;
|
|
12794
12794
|
varying vec4 vColor;
|
|
@@ -12824,10 +12824,10 @@ void main()
|
|
|
12824
12824
|
}
|
|
12825
12825
|
`;
|
|
12826
12826
|
(function(r) {
|
|
12827
|
-
|
|
12827
|
+
D0(e, r);
|
|
12828
12828
|
function e(t, i) {
|
|
12829
12829
|
t === void 0 && (t = 0.5), i === void 0 && (i = Math.random());
|
|
12830
|
-
var n = r.call(this, Yu,
|
|
12830
|
+
var n = r.call(this, Yu, F0, {
|
|
12831
12831
|
uNoise: 0,
|
|
12832
12832
|
uSeed: 0
|
|
12833
12833
|
}) || this;
|
|
@@ -12858,7 +12858,7 @@ Pt.prototype._cacheAsBitmap = !1;
|
|
|
12858
12858
|
Pt.prototype._cacheData = null;
|
|
12859
12859
|
Pt.prototype._cacheAsBitmapResolution = null;
|
|
12860
12860
|
Pt.prototype._cacheAsBitmapMultisample = Tt.NONE;
|
|
12861
|
-
var
|
|
12861
|
+
var B0 = function() {
|
|
12862
12862
|
function r() {
|
|
12863
12863
|
this.textureCacheId = null, this.originalRender = null, this.originalRenderCanvas = null, this.originalCalculateBounds = null, this.originalGetLocalBounds = null, this.originalUpdateTransform = null, this.originalDestroy = null, this.originalMask = null, this.originalFilterArea = null, this.originalContainsPoint = null, this.sprite = null;
|
|
12864
12864
|
}
|
|
@@ -12889,7 +12889,7 @@ Object.defineProperties(Pt.prototype, {
|
|
|
12889
12889
|
if (this._cacheAsBitmap !== r) {
|
|
12890
12890
|
this._cacheAsBitmap = r;
|
|
12891
12891
|
var e;
|
|
12892
|
-
r ? (this._cacheData || (this._cacheData = new
|
|
12892
|
+
r ? (this._cacheData || (this._cacheData = new B0()), e = this._cacheData, e.originalRender = this.render, e.originalRenderCanvas = this.renderCanvas, e.originalUpdateTransform = this.updateTransform, e.originalCalculateBounds = this.calculateBounds, e.originalGetLocalBounds = this.getLocalBounds, e.originalDestroy = this.destroy, e.originalContainsPoint = this.containsPoint, e.originalMask = this._mask, e.originalFilterArea = this.filterArea, this.render = this._renderCached, this.renderCanvas = this._renderCachedCanvas, this.destroy = this._cacheAsBitmapDestroy) : (e = this._cacheData, e.sprite && this._destroyCachedDisplayObject(), this.render = e.originalRender, this.renderCanvas = e.originalRenderCanvas, this.calculateBounds = e.originalCalculateBounds, this.getLocalBounds = e.originalGetLocalBounds, this.destroy = e.originalDestroy, this.updateTransform = e.originalUpdateTransform, this.containsPoint = e.originalContainsPoint, this._mask = e.originalMask, this.filterArea = e.originalFilterArea);
|
|
12893
12893
|
}
|
|
12894
12894
|
}
|
|
12895
12895
|
}
|
|
@@ -12969,7 +12969,7 @@ ct.prototype.getChildByName = function(e, t) {
|
|
|
12969
12969
|
Pt.prototype.getGlobalPosition = function(e, t) {
|
|
12970
12970
|
return e === void 0 && (e = new ft()), t === void 0 && (t = !1), this.parent ? this.parent.toGlobal(this.position, e, t) : (e.x = this.position.x, e.y = this.position.y), e;
|
|
12971
12971
|
};
|
|
12972
|
-
var
|
|
12972
|
+
var L0 = function() {
|
|
12973
12973
|
function r() {
|
|
12974
12974
|
}
|
|
12975
12975
|
return r.init = function(e) {
|
|
@@ -13012,7 +13012,7 @@ var B0 = function() {
|
|
|
13012
13012
|
var t = this;
|
|
13013
13013
|
this.stage = new ct(), e = Object.assign({
|
|
13014
13014
|
forceCanvas: !1
|
|
13015
|
-
}, e), this.renderer =
|
|
13015
|
+
}, e), this.renderer = cg(e), r._plugins.forEach(function(i) {
|
|
13016
13016
|
i.init.call(t, e);
|
|
13017
13017
|
});
|
|
13018
13018
|
}
|
|
@@ -13043,7 +13043,7 @@ var B0 = function() {
|
|
|
13043
13043
|
}, r._plugins = [], r;
|
|
13044
13044
|
}();
|
|
13045
13045
|
ii.handleByList(nt.Application, hl._plugins);
|
|
13046
|
-
ii.add(
|
|
13046
|
+
ii.add(L0);
|
|
13047
13047
|
var Wa = function(r, e) {
|
|
13048
13048
|
return Wa = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
|
|
13049
13049
|
t.__proto__ = i;
|
|
@@ -13059,7 +13059,7 @@ function _r(r, e) {
|
|
|
13059
13059
|
}
|
|
13060
13060
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
13061
13061
|
}
|
|
13062
|
-
var
|
|
13062
|
+
var G0 = function(r) {
|
|
13063
13063
|
_r(e, r);
|
|
13064
13064
|
function e(t, i, n, s) {
|
|
13065
13065
|
t === void 0 && (t = 100), i === void 0 && (i = 100), n === void 0 && (n = 10), s === void 0 && (s = 10);
|
|
@@ -13077,7 +13077,7 @@ var L0 = function(r) {
|
|
|
13077
13077
|
}
|
|
13078
13078
|
this.buffers[0].data = new Float32Array(i), this.buffers[1].data = new Float32Array(n), this.indexBuffer.data = new Uint16Array(s), this.buffers[0].update(), this.buffers[1].update(), this.indexBuffer.update();
|
|
13079
13079
|
}, e;
|
|
13080
|
-
}(us),
|
|
13080
|
+
}(us), U0 = function(r) {
|
|
13081
13081
|
_r(e, r);
|
|
13082
13082
|
function e(t, i, n) {
|
|
13083
13083
|
t === void 0 && (t = 200), n === void 0 && (n = 0);
|
|
@@ -13128,21 +13128,21 @@ var L0 = function(r) {
|
|
|
13128
13128
|
}, e.prototype.update = function() {
|
|
13129
13129
|
this.textureScale > 0 ? this.build() : this.updateVertices();
|
|
13130
13130
|
}, e;
|
|
13131
|
-
}(us),
|
|
13131
|
+
}(us), k0 = function(r) {
|
|
13132
13132
|
_r(e, r);
|
|
13133
13133
|
function e(t, i, n) {
|
|
13134
13134
|
n === void 0 && (n = 0);
|
|
13135
|
-
var s = this, a = new
|
|
13135
|
+
var s = this, a = new U0(t.height, i, n), o = new Wr(t);
|
|
13136
13136
|
return n > 0 && (t.baseTexture.wrapMode = Ge.REPEAT), s = r.call(this, a, o) || this, s.autoUpdate = !0, s;
|
|
13137
13137
|
}
|
|
13138
13138
|
return e.prototype._render = function(t) {
|
|
13139
13139
|
var i = this.geometry;
|
|
13140
13140
|
(this.autoUpdate || i._width !== this.shader.texture.height) && (i._width = this.shader.texture.height, i.update()), r.prototype._render.call(this, t);
|
|
13141
13141
|
}, e;
|
|
13142
|
-
}(Hr),
|
|
13142
|
+
}(Hr), X0 = function(r) {
|
|
13143
13143
|
_r(e, r);
|
|
13144
13144
|
function e(t, i, n) {
|
|
13145
|
-
var s = this, a = new
|
|
13145
|
+
var s = this, a = new G0(t.width, t.height, i, n), o = new Wr(Y.WHITE);
|
|
13146
13146
|
return s = r.call(this, a, o) || this, s.texture = t, s.autoResize = !0, s;
|
|
13147
13147
|
}
|
|
13148
13148
|
return e.prototype.textureUpdated = function() {
|
|
@@ -13274,7 +13274,7 @@ var Cn = 10;
|
|
|
13274
13274
|
var n = 1 / this._origWidth, s = 1 / this._origHeight;
|
|
13275
13275
|
i[0] = i[8] = i[16] = i[24] = 0, i[1] = i[3] = i[5] = i[7] = 0, i[6] = i[14] = i[22] = i[30] = 1, i[25] = i[27] = i[29] = i[31] = 1, i[2] = i[10] = i[18] = i[26] = n * this._leftWidth, i[4] = i[12] = i[20] = i[28] = 1 - n * this._rightWidth, i[9] = i[11] = i[13] = i[15] = s * this._topHeight, i[17] = i[19] = i[21] = i[23] = 1 - s * this._bottomHeight, this.updateHorizontalVertices(), this.updateVerticalVertices(), this.geometry.buffers[0].update(), this.geometry.buffers[1].update();
|
|
13276
13276
|
}, e;
|
|
13277
|
-
})(
|
|
13277
|
+
})(X0);
|
|
13278
13278
|
var Va = function(r, e) {
|
|
13279
13279
|
return Va = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
|
|
13280
13280
|
t.__proto__ = i;
|
|
@@ -13283,7 +13283,7 @@ var Va = function(r, e) {
|
|
|
13283
13283
|
i.hasOwnProperty(n) && (t[n] = i[n]);
|
|
13284
13284
|
}, Va(r, e);
|
|
13285
13285
|
};
|
|
13286
|
-
function
|
|
13286
|
+
function H0(r, e) {
|
|
13287
13287
|
Va(r, e);
|
|
13288
13288
|
function t() {
|
|
13289
13289
|
this.constructor = r;
|
|
@@ -13291,7 +13291,7 @@ function X0(r, e) {
|
|
|
13291
13291
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
13292
13292
|
}
|
|
13293
13293
|
(function(r) {
|
|
13294
|
-
|
|
13294
|
+
H0(e, r);
|
|
13295
13295
|
function e(t, i) {
|
|
13296
13296
|
i === void 0 && (i = !0);
|
|
13297
13297
|
var n = r.call(this, t[0] instanceof Y ? t[0] : t[0].texture) || this;
|
|
@@ -13383,27 +13383,27 @@ function X0(r, e) {
|
|
|
13383
13383
|
}), e;
|
|
13384
13384
|
})(ut);
|
|
13385
13385
|
ii.add(
|
|
13386
|
-
|
|
13386
|
+
Rg,
|
|
13387
|
+
Ng,
|
|
13387
13388
|
Ig,
|
|
13388
|
-
|
|
13389
|
-
|
|
13390
|
-
Jm,
|
|
13389
|
+
Sm,
|
|
13390
|
+
Qm,
|
|
13391
13391
|
Zu,
|
|
13392
|
-
|
|
13393
|
-
|
|
13394
|
-
|
|
13395
|
-
ym,
|
|
13392
|
+
a0,
|
|
13393
|
+
m0,
|
|
13394
|
+
Kg,
|
|
13396
13395
|
bm,
|
|
13397
|
-
|
|
13398
|
-
|
|
13399
|
-
|
|
13396
|
+
xm,
|
|
13397
|
+
e0,
|
|
13398
|
+
Vv,
|
|
13399
|
+
kg
|
|
13400
13400
|
);
|
|
13401
13401
|
let Qi = "sans-serif", Dn = null;
|
|
13402
13402
|
const $e = new ci(), ul = {
|
|
13403
13403
|
chars: xt.ASCII
|
|
13404
13404
|
}, Mi = new ci();
|
|
13405
13405
|
async function ll(r) {
|
|
13406
|
-
const e = new
|
|
13406
|
+
const e = new Kf(r.textFontFamilyDefault);
|
|
13407
13407
|
try {
|
|
13408
13408
|
await e.load();
|
|
13409
13409
|
} catch (t) {
|
|
@@ -13489,7 +13489,7 @@ function qh(r, e) {
|
|
|
13489
13489
|
playheadTimerLabel: o
|
|
13490
13490
|
};
|
|
13491
13491
|
}
|
|
13492
|
-
function
|
|
13492
|
+
function W0(r) {
|
|
13493
13493
|
fl(r);
|
|
13494
13494
|
const e = {
|
|
13495
13495
|
resolution: window.devicePixelRatio || 2,
|
|
@@ -13527,10 +13527,10 @@ function H0(r) {
|
|
|
13527
13527
|
);
|
|
13528
13528
|
}, 0);
|
|
13529
13529
|
}
|
|
13530
|
-
const Vr = (r) => (Dn || (Dn = ll(r)), Dn),
|
|
13530
|
+
const Vr = (r) => (Dn || (Dn = ll(r)), Dn), V0 = (r) => {
|
|
13531
13531
|
Dn = ll(r);
|
|
13532
13532
|
};
|
|
13533
|
-
class
|
|
13533
|
+
class z0 extends ct {
|
|
13534
13534
|
constructor(t, i) {
|
|
13535
13535
|
super();
|
|
13536
13536
|
P(this, "appRef");
|
|
@@ -13560,8 +13560,8 @@ class V0 extends ct {
|
|
|
13560
13560
|
this.x = t, this.y = i, this.width = n, this.height = s;
|
|
13561
13561
|
}
|
|
13562
13562
|
}
|
|
13563
|
-
function
|
|
13564
|
-
|
|
13563
|
+
function Y0(r) {
|
|
13564
|
+
jc();
|
|
13565
13565
|
const e = new hl({
|
|
13566
13566
|
backgroundAlpha: 0,
|
|
13567
13567
|
width: r.clientWidth,
|
|
@@ -13571,19 +13571,19 @@ function z0(r) {
|
|
|
13571
13571
|
antialias: !0,
|
|
13572
13572
|
resizeTo: r
|
|
13573
13573
|
});
|
|
13574
|
-
return process.env.NODE_ENV === "development" &&
|
|
13574
|
+
return process.env.NODE_ENV === "development" && j0(e), r.appendChild(e.view), e.ticker.add(() => {
|
|
13575
13575
|
(r.clientWidth !== e.screen.width || r.clientHeight !== e.screen.height) && (e.resizeTo = r);
|
|
13576
13576
|
}, null, oe.LOW), e;
|
|
13577
13577
|
}
|
|
13578
|
-
function
|
|
13578
|
+
function j0(r) {
|
|
13579
13579
|
globalThis.__PIXI_APP__ = r;
|
|
13580
13580
|
}
|
|
13581
|
-
async function
|
|
13582
|
-
const { Viewport: r } = await import("./viewport.es-
|
|
13581
|
+
async function Z0() {
|
|
13582
|
+
const { Viewport: r } = await import("./viewport.es-a4ca92c6.mjs");
|
|
13583
13583
|
return r;
|
|
13584
13584
|
}
|
|
13585
|
-
async function
|
|
13586
|
-
const t = await
|
|
13585
|
+
async function K0(r, e) {
|
|
13586
|
+
const t = await Z0(), { width: i, height: n } = e.screen, s = new t({
|
|
13587
13587
|
screenWidth: i,
|
|
13588
13588
|
screenHeight: n,
|
|
13589
13589
|
passiveWheel: !1,
|
|
@@ -13602,7 +13602,9 @@ async function Z0(r, e) {
|
|
|
13602
13602
|
}).decelerate({
|
|
13603
13603
|
friction: 0.9
|
|
13604
13604
|
}), e.stage.addChild(s), e.ticker.add(() => {
|
|
13605
|
-
(s.screenWidth !== e.screen.width || s.screenHeight !== e.screen.height) && s.resize(e.screen.width, e.screen.height)
|
|
13605
|
+
(s.screenWidth !== e.screen.width || s.screenHeight !== e.screen.height) && (s.resize(e.screen.width, e.screen.height), xf(() => {
|
|
13606
|
+
s.emit("resize");
|
|
13607
|
+
}));
|
|
13606
13608
|
}, null, oe.LOW), s;
|
|
13607
13609
|
}
|
|
13608
13610
|
function je(r) {
|
|
@@ -13624,7 +13626,7 @@ var ae = {
|
|
|
13624
13626
|
duration: 0.5,
|
|
13625
13627
|
overwrite: !1,
|
|
13626
13628
|
delay: 0
|
|
13627
|
-
}, mo, jt, At, ce = 1e8, lt = 1 / ce, za = Math.PI * 2,
|
|
13629
|
+
}, mo, jt, At, ce = 1e8, lt = 1 / ce, za = Math.PI * 2, q0 = za / 4, $0 = 0, dl = Math.sqrt, J0 = Math.cos, Q0 = Math.sin, Gt = function(e) {
|
|
13628
13630
|
return typeof e == "string";
|
|
13629
13631
|
}, St = function(e) {
|
|
13630
13632
|
return typeof e == "function";
|
|
@@ -13641,7 +13643,7 @@ var ae = {
|
|
|
13641
13643
|
}, On = function(e) {
|
|
13642
13644
|
return St(e) || Gt(e);
|
|
13643
13645
|
}, vl = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
|
|
13644
|
-
}, Zt = Array.isArray, Ya = /(?:-?\.?\d|\.)+/gi, _l = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, tr = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Ys = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, gl = /[+-]=-?[.\d]+/, ml = /[^,'"\[\]\s]+/gi,
|
|
13646
|
+
}, Zt = Array.isArray, Ya = /(?:-?\.?\d|\.)+/gi, _l = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, tr = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Ys = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, gl = /[+-]=-?[.\d]+/, ml = /[^,'"\[\]\s]+/gi, ty = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, gt, fe, ja, bo, he = {}, qn = {}, yl, bl = function(e) {
|
|
13645
13647
|
return (qn = ki(e, he)) && ue;
|
|
13646
13648
|
}, xo = function(e, t) {
|
|
13647
13649
|
return console.warn("Invalid property", e, "set to", t, "Missing plugin? gsap.registerPlugin()");
|
|
@@ -13651,14 +13653,14 @@ var ae = {
|
|
|
13651
13653
|
return e && (he[e] = t) && qn && (qn[e] = t) || he;
|
|
13652
13654
|
}, zr = function() {
|
|
13653
13655
|
return 0;
|
|
13654
|
-
},
|
|
13656
|
+
}, ey = {
|
|
13655
13657
|
suppressEvents: !0,
|
|
13656
13658
|
isStart: !0,
|
|
13657
13659
|
kill: !1
|
|
13658
13660
|
}, Fn = {
|
|
13659
13661
|
suppressEvents: !0,
|
|
13660
13662
|
kill: !1
|
|
13661
|
-
},
|
|
13663
|
+
}, iy = {
|
|
13662
13664
|
suppressEvents: !0
|
|
13663
13665
|
}, To = {}, ui = [], Za = {}, Tl, ee = {}, js = {}, $h = 30, Bn = [], Eo = "", So = function(e) {
|
|
13664
13666
|
var t = e[0], i, n;
|
|
@@ -13683,7 +13685,7 @@ var ae = {
|
|
|
13683
13685
|
}, sr = function(e, t) {
|
|
13684
13686
|
var i = t.charAt(0), n = parseFloat(t.substr(2));
|
|
13685
13687
|
return e = parseFloat(e), i === "+" ? e + n : i === "-" ? e - n : i === "*" ? e * n : e / n;
|
|
13686
|
-
},
|
|
13688
|
+
}, ry = function(e, t) {
|
|
13687
13689
|
for (var i = t.length, n = 0; e.indexOf(t[n]) < 0 && ++n < i; )
|
|
13688
13690
|
;
|
|
13689
13691
|
return n < i;
|
|
@@ -13702,7 +13704,7 @@ var ae = {
|
|
|
13702
13704
|
for (var i in t)
|
|
13703
13705
|
i in e || (e[i] = t[i]);
|
|
13704
13706
|
return e;
|
|
13705
|
-
},
|
|
13707
|
+
}, ny = function(e) {
|
|
13706
13708
|
return function(t, i) {
|
|
13707
13709
|
for (var n in i)
|
|
13708
13710
|
n in t || n === "duration" && e || n === "ease" || (t[n] = i[n]);
|
|
@@ -13721,12 +13723,12 @@ var ae = {
|
|
|
13721
13723
|
n in t || (i[n] = e[n]);
|
|
13722
13724
|
return i;
|
|
13723
13725
|
}, Ar = function(e) {
|
|
13724
|
-
var t = e.parent || gt, i = e.keyframes ?
|
|
13726
|
+
var t = e.parent || gt, i = e.keyframes ? ny(Zt(e.keyframes)) : ve;
|
|
13725
13727
|
if ($t(e.inherit))
|
|
13726
13728
|
for (; t; )
|
|
13727
13729
|
i(e, t.vars.defaults), t = t.parent || t._dp;
|
|
13728
13730
|
return e;
|
|
13729
|
-
},
|
|
13731
|
+
}, sy = function(e, t) {
|
|
13730
13732
|
for (var i = e.length, n = i === t.length; n && i-- && e[i] === t[i]; )
|
|
13731
13733
|
;
|
|
13732
13734
|
return i < 0;
|
|
@@ -13748,13 +13750,13 @@ var ae = {
|
|
|
13748
13750
|
for (var i = e; i; )
|
|
13749
13751
|
i._dirty = 1, i = i.parent;
|
|
13750
13752
|
return e;
|
|
13751
|
-
},
|
|
13753
|
+
}, ay = function(e) {
|
|
13752
13754
|
for (var t = e.parent; t && t.parent; )
|
|
13753
13755
|
t._dirty = 1, t.totalDuration(), t = t.parent;
|
|
13754
13756
|
return e;
|
|
13755
13757
|
}, Ka = function(e, t, i, n) {
|
|
13756
13758
|
return e._startAt && (jt ? e._startAt.revert(Fn) : e.vars.immediateRender && !e.vars.autoRevert || e._startAt.render(t, !0, n));
|
|
13757
|
-
},
|
|
13759
|
+
}, oy = function r(e) {
|
|
13758
13760
|
return !e || e._ts && r(e.parent);
|
|
13759
13761
|
}, Qh = function(e) {
|
|
13760
13762
|
return e._repeat ? lr(e._tTime, e = e.duration() + e._rDelay) * e : 0;
|
|
@@ -13785,14 +13787,14 @@ var ae = {
|
|
|
13785
13787
|
return 1;
|
|
13786
13788
|
if (!i && e._pt && !jt && (e._dur && e.vars.lazy !== !1 || !e._dur && e.vars.lazy) && Tl !== ne.frame)
|
|
13787
13789
|
return ui.push(e), e._lazy = [s, n], 1;
|
|
13788
|
-
},
|
|
13790
|
+
}, hy = function r(e) {
|
|
13789
13791
|
var t = e.parent;
|
|
13790
13792
|
return t && t._ts && t._initted && !t._lock && (t.rawTime() < 0 || r(t));
|
|
13791
13793
|
}, qa = function(e) {
|
|
13792
13794
|
var t = e.data;
|
|
13793
13795
|
return t === "isFromStart" || t === "isStart";
|
|
13794
|
-
},
|
|
13795
|
-
var s = e.ratio, a = t < 0 || !t && (!e._start &&
|
|
13796
|
+
}, uy = function(e, t, i, n) {
|
|
13797
|
+
var s = e.ratio, a = t < 0 || !t && (!e._start && hy(e) && !(!e._initted && qa(e)) || (e._ts < 0 || e._dp._ts < 0) && !qa(e)) ? 0 : 1, o = e._rDelay, h = 0, u, l, f;
|
|
13796
13798
|
if (o && e._repeat && (h = en(0, e._tDur, t), l = lr(h, o), e._yoyo && l & 1 && (a = 1 - a), l !== lr(e._tTime, o) && (s = 1 - a, e.vars.repeatRefresh && e._initted && e.invalidate())), a !== s || jt || n || e._zTime === lt || !t && e._zTime) {
|
|
13797
13799
|
if (!e._initted && Al(e, t, n, i, h))
|
|
13798
13800
|
return;
|
|
@@ -13801,7 +13803,7 @@ var ae = {
|
|
|
13801
13803
|
t < 0 && Ka(e, t, i, !0), e._onUpdate && !i && pe(e, "onUpdate"), h && e._repeat && !i && e.parent && pe(e, "onRepeat"), (t >= e._tDur || t < 0) && e.ratio === a && (a && di(e, 1), !i && !jt && (pe(e, a ? "onComplete" : "onReverseComplete", !0), e._prom && e._prom()));
|
|
13802
13804
|
} else
|
|
13803
13805
|
e._zTime || (e._zTime = t);
|
|
13804
|
-
},
|
|
13806
|
+
}, ly = function(e, t, i) {
|
|
13805
13807
|
var n;
|
|
13806
13808
|
if (i > t)
|
|
13807
13809
|
for (n = e._first; n && n._start <= i; ) {
|
|
@@ -13820,12 +13822,12 @@ var ae = {
|
|
|
13820
13822
|
return o && !n && (e._time *= a / e._dur), e._dur = a, e._tDur = s ? s < 0 ? 1e10 : Ht(a * (s + 1) + e._rDelay * s) : a, o > 0 && !n && cs(e, e._tTime = e._tDur * o), e.parent && fs(e), i || Fi(e.parent, e), e;
|
|
13821
13823
|
}, tu = function(e) {
|
|
13822
13824
|
return e instanceof qt ? Fi(e) : fr(e, e._dur);
|
|
13823
|
-
},
|
|
13825
|
+
}, fy = {
|
|
13824
13826
|
_start: 0,
|
|
13825
13827
|
endTime: zr,
|
|
13826
13828
|
totalDuration: zr
|
|
13827
13829
|
}, le = function r(e, t, i) {
|
|
13828
|
-
var n = e.labels, s = e._recent ||
|
|
13830
|
+
var n = e.labels, s = e._recent || fy, a = e.duration() >= ce ? s.endTime(!1) : e._dur, o, h, u;
|
|
13829
13831
|
return Gt(t) && (isNaN(t) || t in n) ? (h = t.charAt(0), u = t.substr(-1) === "%", o = t.indexOf("="), h === "<" || h === ">" ? (o >= 0 && (t = t.replace(/=/, "")), (h === "<" ? s._start : s.endTime(s._repeat >= 0)) + (parseFloat(t.substr(1)) || 0) * (u ? (o < 0 ? s : i).totalDuration() / 100 : 1)) : o < 0 ? (t in n || (n[t] = a), n[t]) : (h = parseFloat(t.charAt(o - 1) + t.substr(o + 1)), u && i && (h = h / 100 * (Zt(i) ? i[0] : i).totalDuration()), o > 1 ? r(e, t.substr(0, o - 1), i) + h : a + h)) : t == null ? a : +t;
|
|
13830
13832
|
}, Ir = function(e, t, i) {
|
|
13831
13833
|
var n = ti(t[1]), s = (n ? 2 : 1) + (e < 2 ? 0 : 1), a = t[s], o, h;
|
|
@@ -13840,20 +13842,20 @@ var ae = {
|
|
|
13840
13842
|
}, en = function(e, t, i) {
|
|
13841
13843
|
return i < e ? e : i > t ? t : i;
|
|
13842
13844
|
}, Yt = function(e, t) {
|
|
13843
|
-
return !Gt(e) || !(t =
|
|
13844
|
-
},
|
|
13845
|
+
return !Gt(e) || !(t = ty.exec(e)) ? "" : t[1];
|
|
13846
|
+
}, cy = function(e, t, i) {
|
|
13845
13847
|
return _i(i, function(n) {
|
|
13846
13848
|
return en(e, t, n);
|
|
13847
13849
|
});
|
|
13848
13850
|
}, $a = [].slice, Il = function(e, t) {
|
|
13849
13851
|
return e && Xe(e) && "length" in e && (!t && !e.length || e.length - 1 in e && Xe(e[0])) && !e.nodeType && e !== fe;
|
|
13850
|
-
},
|
|
13852
|
+
}, dy = function(e, t, i) {
|
|
13851
13853
|
return i === void 0 && (i = []), e.forEach(function(n) {
|
|
13852
13854
|
var s;
|
|
13853
13855
|
return Gt(n) && !t || Il(n, 1) ? (s = i).push.apply(s, de(n)) : i.push(n);
|
|
13854
13856
|
}) || i;
|
|
13855
13857
|
}, de = function(e, t, i) {
|
|
13856
|
-
return At && !t && At.selector ? At.selector(e) : Gt(e) && !i && (ja || !cr()) ? $a.call((t || bo).querySelectorAll(e), 0) : Zt(e) ?
|
|
13858
|
+
return At && !t && At.selector ? At.selector(e) : Gt(e) && !i && (ja || !cr()) ? $a.call((t || bo).querySelectorAll(e), 0) : Zt(e) ? dy(e, i) : Il(e) ? $a.call(e, 0) : e ? [e] : [];
|
|
13857
13859
|
}, Ja = function(e) {
|
|
13858
13860
|
return e = de(e)[0] || $n("Invalid scope") || {}, function(t) {
|
|
13859
13861
|
var i = e.current || e.nativeElement || e;
|
|
@@ -13906,7 +13908,7 @@ var ae = {
|
|
|
13906
13908
|
return _i(Zt(e) ? !t : i === !0 ? !!(i = 0) : !n, function() {
|
|
13907
13909
|
return Zt(e) ? e[~~(Math.random() * e.length)] : (i = i || 1e-5) && (n = i < 1 ? Math.pow(10, (i + "").length - 2) : 1) && Math.floor(Math.round((e - i / 2 + Math.random() * (t - e + i * 0.99)) / i) * i * n) / n;
|
|
13908
13910
|
});
|
|
13909
|
-
},
|
|
13911
|
+
}, py = function() {
|
|
13910
13912
|
for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
|
|
13911
13913
|
t[i] = arguments[i];
|
|
13912
13914
|
return function(n) {
|
|
@@ -13914,22 +13916,22 @@ var ae = {
|
|
|
13914
13916
|
return a(s);
|
|
13915
13917
|
}, n);
|
|
13916
13918
|
};
|
|
13917
|
-
},
|
|
13919
|
+
}, vy = function(e, t) {
|
|
13918
13920
|
return function(i) {
|
|
13919
13921
|
return e(parseFloat(i)) + (t || Yt(i));
|
|
13920
13922
|
};
|
|
13921
|
-
},
|
|
13923
|
+
}, _y = function(e, t, i) {
|
|
13922
13924
|
return Ll(e, t, 0, 1, i);
|
|
13923
13925
|
}, Bl = function(e, t, i) {
|
|
13924
13926
|
return _i(i, function(n) {
|
|
13925
13927
|
return e[~~t(n)];
|
|
13926
13928
|
});
|
|
13927
|
-
},
|
|
13929
|
+
}, gy = function r(e, t, i) {
|
|
13928
13930
|
var n = t - e;
|
|
13929
13931
|
return Zt(e) ? Bl(e, r(0, e.length), t) : _i(i, function(s) {
|
|
13930
13932
|
return (n + (s - e) % n) % n + e;
|
|
13931
13933
|
});
|
|
13932
|
-
},
|
|
13934
|
+
}, my = function r(e, t, i) {
|
|
13933
13935
|
var n = t - e, s = n * 2;
|
|
13934
13936
|
return Zt(e) ? Bl(e, r(0, e.length - 1), t) : _i(i, function(a) {
|
|
13935
13937
|
return a = (s + (a - e) % s) % s || 0, e + (a > n ? s - a : a);
|
|
@@ -13943,7 +13945,7 @@ var ae = {
|
|
|
13943
13945
|
return _i(s, function(h) {
|
|
13944
13946
|
return i + ((h - e) / a * o || 0);
|
|
13945
13947
|
});
|
|
13946
|
-
},
|
|
13948
|
+
}, yy = function r(e, t, i, n) {
|
|
13947
13949
|
var s = isNaN(e + t) ? 0 : function(d) {
|
|
13948
13950
|
return (1 - d) * e + d * t;
|
|
13949
13951
|
};
|
|
@@ -13985,7 +13987,7 @@ var ae = {
|
|
|
13985
13987
|
return h = n[t + "Params"], u = n.callbackScope || e, i && ui.length && Jn(), o && (At = o), l = h ? s.apply(u, h) : s.call(u), At = a, l;
|
|
13986
13988
|
}, Pr = function(e) {
|
|
13987
13989
|
return di(e), e.scrollTrigger && e.scrollTrigger.kill(!!jt), e.progress() < 1 && pe(e, "onInterrupt"), e;
|
|
13988
|
-
}, er,
|
|
13990
|
+
}, er, by = function(e) {
|
|
13989
13991
|
e = !e.name && e.default || e;
|
|
13990
13992
|
var t = e.name, i = St(e), n = t && !i && e.init ? function() {
|
|
13991
13993
|
this._props = [];
|
|
@@ -13993,8 +13995,8 @@ var ae = {
|
|
|
13993
13995
|
init: zr,
|
|
13994
13996
|
render: Oo,
|
|
13995
13997
|
add: wo,
|
|
13996
|
-
kill:
|
|
13997
|
-
modifier:
|
|
13998
|
+
kill: By,
|
|
13999
|
+
modifier: Fy,
|
|
13998
14000
|
rawVars: 0
|
|
13999
14001
|
}, a = {
|
|
14000
14002
|
targetTest: 0,
|
|
@@ -14074,10 +14076,10 @@ var ae = {
|
|
|
14074
14076
|
for (e in Cr)
|
|
14075
14077
|
r += "|" + e + "\\b";
|
|
14076
14078
|
return new RegExp(r + ")", "gi");
|
|
14077
|
-
}(),
|
|
14079
|
+
}(), xy = /hsl[a]?\(/, kl = function(e) {
|
|
14078
14080
|
var t = e.join(" "), i;
|
|
14079
14081
|
if (li.lastIndex = 0, li.test(t))
|
|
14080
|
-
return i =
|
|
14082
|
+
return i = xy.test(t), e[1] = iu(e[1], i), e[0] = iu(e[0], i, Ul(e[1])), !0;
|
|
14081
14083
|
}, jr, ne = function() {
|
|
14082
14084
|
var r = Date.now, e = 500, t = 33, i = r(), n = i, s = 1e3 / 240, a = s, o = [], h, u, l, f, c, d, v = function p(_) {
|
|
14083
14085
|
var g = r() - n, m = _ === !0, y, x, b, T;
|
|
@@ -14121,16 +14123,16 @@ var ae = {
|
|
|
14121
14123
|
}, f;
|
|
14122
14124
|
}(), cr = function() {
|
|
14123
14125
|
return !jr && ne.wake();
|
|
14124
|
-
}, J = {},
|
|
14126
|
+
}, J = {}, Ty = /^[\d.\-M][\d.\-,\s]/, Ey = /["']/g, Sy = function(e) {
|
|
14125
14127
|
for (var t = {}, i = e.substr(1, e.length - 3).split(":"), n = i[0], s = 1, a = i.length, o, h, u; s < a; s++)
|
|
14126
|
-
h = i[s], o = s !== a - 1 ? h.lastIndexOf(",") : h.length, u = h.substr(0, o), t[n] = isNaN(u) ? u.replace(
|
|
14128
|
+
h = i[s], o = s !== a - 1 ? h.lastIndexOf(",") : h.length, u = h.substr(0, o), t[n] = isNaN(u) ? u.replace(Ey, "").trim() : +u, n = h.substr(o + 1).trim();
|
|
14127
14129
|
return t;
|
|
14128
|
-
},
|
|
14130
|
+
}, wy = function(e) {
|
|
14129
14131
|
var t = e.indexOf("(") + 1, i = e.indexOf(")"), n = e.indexOf("(", t);
|
|
14130
14132
|
return e.substring(t, ~n && n < i ? e.indexOf(")", i + 1) : i);
|
|
14131
|
-
},
|
|
14133
|
+
}, Ry = function(e) {
|
|
14132
14134
|
var t = (e + "").split("("), i = J[t[0]];
|
|
14133
|
-
return i && t.length > 1 && i.config ? i.config.apply(null, ~e.indexOf("{") ? [
|
|
14135
|
+
return i && t.length > 1 && i.config ? i.config.apply(null, ~e.indexOf("{") ? [Sy(t[1])] : wy(e).split(",").map(wl)) : J._CE && Ty.test(e) ? J._CE("", e) : i;
|
|
14134
14136
|
}, Xl = function(e) {
|
|
14135
14137
|
return function(t) {
|
|
14136
14138
|
return 1 - e(1 - t);
|
|
@@ -14139,7 +14141,7 @@ var ae = {
|
|
|
14139
14141
|
for (var i = e._first, n; i; )
|
|
14140
14142
|
i instanceof qt ? r(i, t) : i.vars.yoyoEase && (!i._yoyo || !i._repeat) && i._yoyo !== t && (i.timeline ? r(i.timeline, t) : (n = i._ease, i._ease = i._yEase, i._yEase = n, i._yoyo = t)), i = i._next;
|
|
14141
14143
|
}, Bi = function(e, t) {
|
|
14142
|
-
return e && (St(e) ? e : J[e] ||
|
|
14144
|
+
return e && (St(e) ? e : J[e] || Ry(e)) || t;
|
|
14143
14145
|
}, Hi = function(e, t, i, n) {
|
|
14144
14146
|
i === void 0 && (i = function(h) {
|
|
14145
14147
|
return 1 - t(1 - h);
|
|
@@ -14162,7 +14164,7 @@ var ae = {
|
|
|
14162
14164
|
};
|
|
14163
14165
|
}, Ks = function r(e, t, i) {
|
|
14164
14166
|
var n = t >= 1 ? t : 1, s = (i || (e ? 0.3 : 0.45)) / (t < 1 ? t : 1), a = s / za * (Math.asin(1 / n) || 0), o = function(l) {
|
|
14165
|
-
return l === 1 ? 1 : n * Math.pow(2, -10 * l) *
|
|
14167
|
+
return l === 1 ? 1 : n * Math.pow(2, -10 * l) * Q0((l - a) * s) + 1;
|
|
14166
14168
|
}, h = e === "out" ? o : e === "in" ? function(u) {
|
|
14167
14169
|
return 1 - o(1 - u);
|
|
14168
14170
|
} : Wl(o);
|
|
@@ -14209,7 +14211,7 @@ Hi("Circ", function(r) {
|
|
|
14209
14211
|
return -(dl(1 - r * r) - 1);
|
|
14210
14212
|
});
|
|
14211
14213
|
Hi("Sine", function(r) {
|
|
14212
|
-
return r === 1 ? 1 :
|
|
14214
|
+
return r === 1 ? 1 : -J0(r * q0) + 1;
|
|
14213
14215
|
});
|
|
14214
14216
|
Hi("Back", qs("in"), qs("out"), qs());
|
|
14215
14217
|
J.SteppedEase = J.steps = he.SteppedEase = {
|
|
@@ -14226,7 +14228,7 @@ Jt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", functio
|
|
|
14226
14228
|
return Eo += r + "," + r + "Params,";
|
|
14227
14229
|
});
|
|
14228
14230
|
var Vl = function(e, t) {
|
|
14229
|
-
this.id =
|
|
14231
|
+
this.id = $0++, e._gsap = this, this.target = e, this.harness = t, this.get = t ? t.get : El, this.set = t ? t.getSetter : Co;
|
|
14230
14232
|
}, dr = /* @__PURE__ */ function() {
|
|
14231
14233
|
function r(t) {
|
|
14232
14234
|
this.vars = t, this._delay = +t.delay || 0, (this._repeat = t.repeat === 1 / 0 ? -2 : t.repeat || 0) && (this._rDelay = t.repeatDelay || 0, this._yoyo = !!t.yoyo || !!t.yoyoEase), this._ts = 1, fr(this, +t.duration, 1, 1), this.data = t.data, At && (this._ctx = At, At.data.push(this)), jr || ne.wake();
|
|
@@ -14263,7 +14265,7 @@ var Vl = function(e, t) {
|
|
|
14263
14265
|
if (this._rts === i)
|
|
14264
14266
|
return this;
|
|
14265
14267
|
var n = this.parent && this._ts ? ts(this.parent._time, this) : this._tTime;
|
|
14266
|
-
return this._rts = +i || 0, this._ts = this._ps || i === -lt ? 0 : this._rts, this.totalTime(en(-this._delay, this._tDur, n), !0), fs(this),
|
|
14268
|
+
return this._rts = +i || 0, this._ts = this._ps || i === -lt ? 0 : this._rts, this.totalTime(en(-this._delay, this._tDur, n), !0), fs(this), ay(this);
|
|
14267
14269
|
}, e.paused = function(i) {
|
|
14268
14270
|
return arguments.length ? (this._ps !== i && (this._ps = i, i ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (cr(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== lt && (this._tTime -= lt)))), this) : this._ps;
|
|
14269
14271
|
}, e.startTime = function(i) {
|
|
@@ -14279,7 +14281,7 @@ var Vl = function(e, t) {
|
|
|
14279
14281
|
var n = this.parent || this._dp;
|
|
14280
14282
|
return n ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? ts(n.rawTime(i), this) : this._tTime : this._tTime;
|
|
14281
14283
|
}, e.revert = function(i) {
|
|
14282
|
-
i === void 0 && (i =
|
|
14284
|
+
i === void 0 && (i = iy);
|
|
14283
14285
|
var n = jt;
|
|
14284
14286
|
return jt = i, (this._initted || this._startAt) && (this.timeline && this.timeline.revert(i), this.totalTime(-0.01, i.suppressEvents)), this.data !== "nested" && i.kill !== !1 && this.kill(), jt = n, this;
|
|
14285
14287
|
}, e.globalTime = function(i) {
|
|
@@ -14389,7 +14391,7 @@ var qt = /* @__PURE__ */ function(r) {
|
|
|
14389
14391
|
Hl(this, E);
|
|
14390
14392
|
}
|
|
14391
14393
|
}
|
|
14392
|
-
if (this._hasPause && !this._forcing && this._lock < 2 && (m =
|
|
14394
|
+
if (this._hasPause && !this._forcing && this._lock < 2 && (m = ly(this, Ht(o), Ht(c)), m && (l -= c - (c = m._start))), this._tTime = l, this._time = c, this._act = !y, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = n, o = 0), !o && c && !s && (pe(this, "onStart"), this._tTime !== l))
|
|
14393
14395
|
return this;
|
|
14394
14396
|
if (c >= o && n >= 0)
|
|
14395
14397
|
for (d = this._first; d; ) {
|
|
@@ -14467,7 +14469,7 @@ var qt = /* @__PURE__ */ function(r) {
|
|
|
14467
14469
|
return this;
|
|
14468
14470
|
}, t.getTweensOf = function(n, s) {
|
|
14469
14471
|
for (var a = [], o = de(n), h = this._first, u = ti(s), l; h; )
|
|
14470
|
-
h instanceof Mt ?
|
|
14472
|
+
h instanceof Mt ? ry(h._targets, o) && (u ? (!si || h._initted && h._ts) && h.globalTime(0) <= s && h.globalTime(h.totalDuration()) > s : !s || h.isActive()) && a.push(h) : (l = h.getTweensOf(o, s)).length && a.push.apply(a, l), h = h._next;
|
|
14471
14473
|
return a;
|
|
14472
14474
|
}, t.tweenTo = function(n, s) {
|
|
14473
14475
|
s = s || {};
|
|
@@ -14546,7 +14548,7 @@ ve(qt.prototype, {
|
|
|
14546
14548
|
_hasPause: 0,
|
|
14547
14549
|
_forcing: 0
|
|
14548
14550
|
});
|
|
14549
|
-
var
|
|
14551
|
+
var Py = function(e, t, i, n, s, a, o) {
|
|
14550
14552
|
var h = new Qt(this._pt, e, t, 0, 1, ql, null, s), u = 0, l = 0, f, c, d, v, p, _, g, m;
|
|
14551
14553
|
for (h.b = i, h.e = n, i += "", n += "", (g = ~n.indexOf("random(")) && (n = Yr(n)), a && (m = [i, n], a(m, e, t), i = m[0], n = m[1]), c = i.match(Ys) || []; f = Ys.exec(n); )
|
|
14552
14554
|
v = f[0], p = n.substring(u, f.index), d ? d = (d + 1) % 5 : p.substr(-5) === "rgba(" && (d = 1), v !== c[l++] && (_ = parseFloat(c[l - 1]) || 0, h._pt = {
|
|
@@ -14559,10 +14561,10 @@ var Ry = function(e, t, i, n, s, a, o) {
|
|
|
14559
14561
|
return h.c = u < n.length ? n.substring(u, n.length) : "", h.fp = o, (gl.test(n) || g) && (h.e = 0), this._pt = h, h;
|
|
14560
14562
|
}, wo = function(e, t, i, n, s, a, o, h, u, l) {
|
|
14561
14563
|
St(n) && (n = n(s || 0, e, a));
|
|
14562
|
-
var f = e[t], c = i !== "get" ? i : St(f) ? u ? e[t.indexOf("set") || !St(e["get" + t.substr(3)]) ? t : "get" + t.substr(3)](u) : e[t]() : f, d = St(f) ? u ?
|
|
14564
|
+
var f = e[t], c = i !== "get" ? i : St(f) ? u ? e[t.indexOf("set") || !St(e["get" + t.substr(3)]) ? t : "get" + t.substr(3)](u) : e[t]() : f, d = St(f) ? u ? Ny : Zl : Po, v;
|
|
14563
14565
|
if (Gt(n) && (~n.indexOf("random(") && (n = Yr(n)), n.charAt(1) === "=" && (v = sr(c, n) + (Yt(c) || 0), (v || v === 0) && (n = v))), !l || c !== n || to)
|
|
14564
|
-
return !isNaN(c * n) && n !== "" ? (v = new Qt(this._pt, e, t, +c || 0, n - (c || 0), typeof f == "boolean" ?
|
|
14565
|
-
},
|
|
14566
|
+
return !isNaN(c * n) && n !== "" ? (v = new Qt(this._pt, e, t, +c || 0, n - (c || 0), typeof f == "boolean" ? Dy : Kl, 0, d), u && (v.fp = u), o && v.modifier(o, this, e), this._pt = v) : (!f && !(t in e) && xo(t, n), Py.call(this, e, t, c, n, d, h || ae.stringFilter, u));
|
|
14567
|
+
}, Cy = function(e, t, i, n, s) {
|
|
14566
14568
|
if (St(e) && (e = Nr(e, s, t, i, n)), !Xe(e) || e.style && e.nodeType || Zt(e) || vl(e))
|
|
14567
14569
|
return Gt(e) ? Nr(e, s, t, i, n) : e;
|
|
14568
14570
|
var a = {}, o;
|
|
@@ -14571,14 +14573,14 @@ var Ry = function(e, t, i, n, s, a, o) {
|
|
|
14571
14573
|
return a;
|
|
14572
14574
|
}, zl = function(e, t, i, n, s, a) {
|
|
14573
14575
|
var o, h, u, l;
|
|
14574
|
-
if (ee[e] && (o = new ee[e]()).init(s, o.rawVars ? t[e] :
|
|
14576
|
+
if (ee[e] && (o = new ee[e]()).init(s, o.rawVars ? t[e] : Cy(t[e], n, s, a, i), i, n, a) !== !1 && (i._pt = h = new Qt(i._pt, s, e, 0, 1, o.render, o, 0, o.priority), i !== er))
|
|
14575
14577
|
for (u = i._ptLookup[i._targets.indexOf(s)], l = o._props.length; l--; )
|
|
14576
14578
|
u[o._props[l]] = h;
|
|
14577
14579
|
return o;
|
|
14578
14580
|
}, si, to, Ro = function r(e, t, i) {
|
|
14579
14581
|
var n = e.vars, s = n.ease, a = n.startAt, o = n.immediateRender, h = n.lazy, u = n.onUpdate, l = n.onUpdateParams, f = n.callbackScope, c = n.runBackwards, d = n.yoyoEase, v = n.keyframes, p = n.autoRevert, _ = e._dur, g = e._startAt, m = e._targets, y = e.parent, x = y && y.data === "nested" ? y.vars.targets : m, b = e._overwrite === "auto" && !mo, T = e.timeline, E, w, S, R, O, N, B, L, A, I, F, V, W;
|
|
14580
14582
|
if (T && (!v || !s) && (s = "none"), e._ease = Bi(s, ur.ease), e._yEase = d ? Xl(Bi(d === !0 ? s : d, ur.ease)) : 0, d && e._yoyo && !e._repeat && (d = e._yEase, e._yEase = e._ease, e._ease = d), e._from = !T && !!n.runBackwards, !T || v && !n.stagger) {
|
|
14581
|
-
if (L = m[0] ? Di(m[0]).harness : 0, V = L && n[L.prop], E = Qn(n, To), g && (g._zTime < 0 && g.progress(1), t < 0 && c && o && !p ? g.render(-1, !0) : g.revert(c && _ ? Fn :
|
|
14583
|
+
if (L = m[0] ? Di(m[0]).harness : 0, V = L && n[L.prop], E = Qn(n, To), g && (g._zTime < 0 && g.progress(1), t < 0 && c && o && !p ? g.render(-1, !0) : g.revert(c && _ ? Fn : ey), g._lazy = 0), a) {
|
|
14582
14584
|
if (di(e._startAt = Mt.set(m, ve({
|
|
14583
14585
|
data: "isStart",
|
|
14584
14586
|
overwrite: !1,
|
|
@@ -14619,7 +14621,7 @@ var Ry = function(e, t, i, n, s, a, o) {
|
|
|
14619
14621
|
N && $l(e), e._onInit && e._onInit(e);
|
|
14620
14622
|
}
|
|
14621
14623
|
e._onUpdate = u, e._initted = (!e._op || e._pt) && !W, v && t <= 0 && T.render(ce, !0, !0);
|
|
14622
|
-
},
|
|
14624
|
+
}, Oy = function(e, t, i, n, s, a, o) {
|
|
14623
14625
|
var h = (e._pt && e._ptCache || (e._ptCache = {}))[t], u, l, f, c;
|
|
14624
14626
|
if (!h)
|
|
14625
14627
|
for (h = e._ptCache[t] = [], f = e._ptLookup, c = e._targets.length; c--; ) {
|
|
@@ -14632,7 +14634,7 @@ var Ry = function(e, t, i, n, s, a, o) {
|
|
|
14632
14634
|
}
|
|
14633
14635
|
for (c = h.length; c--; )
|
|
14634
14636
|
l = h[c], u = l._pt || l, u.s = (n || n === 0) && !s ? n : u.s + (n || 0) + a * u.c, u.c = i - u.s, l.e && (l.e = Rt(i) + Yt(l.e)), l.b && (l.b = u.s + Yt(l.b));
|
|
14635
|
-
},
|
|
14637
|
+
}, Ay = function(e, t) {
|
|
14636
14638
|
var i = e[0] ? Di(e[0]).harness : 0, n = i && i.aliases, s, a, o, h;
|
|
14637
14639
|
if (!n)
|
|
14638
14640
|
return t;
|
|
@@ -14642,7 +14644,7 @@ var Ry = function(e, t, i, n, s, a, o) {
|
|
|
14642
14644
|
for (h = n[a].split(","), o = h.length; o--; )
|
|
14643
14645
|
s[h[o]] = s[a];
|
|
14644
14646
|
return s;
|
|
14645
|
-
},
|
|
14647
|
+
}, Iy = function(e, t, i, n) {
|
|
14646
14648
|
var s = t.ease || n || "power1.inOut", a, o;
|
|
14647
14649
|
if (Zt(t))
|
|
14648
14650
|
o = i[e] || (i[e] = []), t.forEach(function(h, u) {
|
|
@@ -14695,7 +14697,7 @@ var Mt = /* @__PURE__ */ function(r) {
|
|
|
14695
14697
|
else {
|
|
14696
14698
|
T = {};
|
|
14697
14699
|
for (w in v)
|
|
14698
|
-
w === "ease" || w === "easeEach" ||
|
|
14700
|
+
w === "ease" || w === "easeEach" || Iy(w, v[w], T, v.easeEach);
|
|
14699
14701
|
for (w in T)
|
|
14700
14702
|
for (B = T[w].sort(function(I, F) {
|
|
14701
14703
|
return I.t - F.t;
|
|
@@ -14712,13 +14714,13 @@ var Mt = /* @__PURE__ */ function(r) {
|
|
|
14712
14714
|
u || o.duration(u = x.duration());
|
|
14713
14715
|
} else
|
|
14714
14716
|
o.timeline = 0;
|
|
14715
|
-
return d === !0 && !mo && (si = je(o), gt.killTweensOf(y), si = 0), Fe(m, je(o), s), n.reversed && o.reverse(), n.paused && o.paused(!0), (f || !u && !v && o._start === Ht(m._time) && $t(f) &&
|
|
14717
|
+
return d === !0 && !mo && (si = je(o), gt.killTweensOf(y), si = 0), Fe(m, je(o), s), n.reversed && o.reverse(), n.paused && o.paused(!0), (f || !u && !v && o._start === Ht(m._time) && $t(f) && oy(je(o)) && m.data !== "nested") && (o._tTime = -lt, o.render(Math.max(0, -l) || 0)), _ && Ol(je(o), _), o;
|
|
14716
14718
|
}
|
|
14717
14719
|
var t = e.prototype;
|
|
14718
14720
|
return t.render = function(n, s, a) {
|
|
14719
14721
|
var o = this._time, h = this._tDur, u = this._dur, l = n < 0, f = n > h - lt && !l ? h : n < lt ? 0 : n, c, d, v, p, _, g, m, y, x;
|
|
14720
14722
|
if (!u)
|
|
14721
|
-
|
|
14723
|
+
uy(this, n, s, a);
|
|
14722
14724
|
else if (f !== this._tTime || !n || a || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== l) {
|
|
14723
14725
|
if (c = f, y = this.timeline, this._repeat) {
|
|
14724
14726
|
if (p = u + this._rDelay, this._repeat < -1 && l)
|
|
@@ -14749,7 +14751,7 @@ var Mt = /* @__PURE__ */ function(r) {
|
|
|
14749
14751
|
}, t.resetTo = function(n, s, a, o) {
|
|
14750
14752
|
jr || ne.wake(), this._ts || this.play();
|
|
14751
14753
|
var h = Math.min(this._dur, (this._dp._time - this._start) * this._ts), u;
|
|
14752
|
-
return this._initted || Ro(this, h), u = this._ease(h / this._dur),
|
|
14754
|
+
return this._initted || Ro(this, h), u = this._ease(h / this._dur), Oy(this, n, s, a, o, u, h) ? this.resetTo(n, s, a, o) : (cs(this, 0), this.parent || Pl(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
|
|
14753
14755
|
}, t.kill = function(n, s) {
|
|
14754
14756
|
if (s === void 0 && (s = "all"), !n && (!s || s === "all"))
|
|
14755
14757
|
return this._lazy = this._pt = 0, this.parent ? Pr(this) : this;
|
|
@@ -14758,11 +14760,11 @@ var Mt = /* @__PURE__ */ function(r) {
|
|
|
14758
14760
|
return this.timeline.killTweensOf(n, s, si && si.vars.overwrite !== !0)._first || Pr(this), this.parent && a !== this.timeline.totalDuration() && fr(this, this._dur * this.timeline._tDur / a, 0, 1), this;
|
|
14759
14761
|
}
|
|
14760
14762
|
var o = this._targets, h = n ? de(n) : o, u = this._ptLookup, l = this._pt, f, c, d, v, p, _, g;
|
|
14761
|
-
if ((!s || s === "all") &&
|
|
14763
|
+
if ((!s || s === "all") && sy(o, h))
|
|
14762
14764
|
return s === "all" && (this._pt = 0), Pr(this);
|
|
14763
14765
|
for (f = this._op = this._op || [], s !== "all" && (Gt(s) && (p = {}, Jt(s, function(m) {
|
|
14764
14766
|
return p[m] = 1;
|
|
14765
|
-
}), s = p), s =
|
|
14767
|
+
}), s = p), s = Ay(o, s)), g = o.length; g--; )
|
|
14766
14768
|
if (~h.indexOf(o[g])) {
|
|
14767
14769
|
c = u[g], s === "all" ? (f[g] = s, v = c, d = {}) : (d = f[g] = f[g] || {}, v = s);
|
|
14768
14770
|
for (p in v)
|
|
@@ -14810,15 +14812,15 @@ var Po = function(e, t, i) {
|
|
|
14810
14812
|
return e[t] = i;
|
|
14811
14813
|
}, Zl = function(e, t, i) {
|
|
14812
14814
|
return e[t](i);
|
|
14813
|
-
},
|
|
14815
|
+
}, Ny = function(e, t, i, n) {
|
|
14814
14816
|
return e[t](n.fp, i);
|
|
14815
|
-
},
|
|
14817
|
+
}, My = function(e, t, i) {
|
|
14816
14818
|
return e.setAttribute(t, i);
|
|
14817
14819
|
}, Co = function(e, t) {
|
|
14818
|
-
return St(e[t]) ? Zl : yo(e[t]) && e.setAttribute ?
|
|
14820
|
+
return St(e[t]) ? Zl : yo(e[t]) && e.setAttribute ? My : Po;
|
|
14819
14821
|
}, Kl = function(e, t) {
|
|
14820
14822
|
return t.set(t.t, t.p, Math.round((t.s + t.c * e) * 1e6) / 1e6, t);
|
|
14821
|
-
},
|
|
14823
|
+
}, Dy = function(e, t) {
|
|
14822
14824
|
return t.set(t.t, t.p, !!(t.s + t.c * e), t);
|
|
14823
14825
|
}, ql = function(e, t) {
|
|
14824
14826
|
var i = t._pt, n = "";
|
|
@@ -14835,14 +14837,14 @@ var Po = function(e, t, i) {
|
|
|
14835
14837
|
}, Oo = function(e, t) {
|
|
14836
14838
|
for (var i = t._pt; i; )
|
|
14837
14839
|
i.r(e, i.d), i = i._next;
|
|
14838
|
-
},
|
|
14840
|
+
}, Fy = function(e, t, i, n) {
|
|
14839
14841
|
for (var s = this._pt, a; s; )
|
|
14840
14842
|
a = s._next, s.p === n && s.modifier(e, t, i), s = a;
|
|
14841
|
-
},
|
|
14843
|
+
}, By = function(e) {
|
|
14842
14844
|
for (var t = this._pt, i, n; t; )
|
|
14843
14845
|
n = t._next, t.p === e && !t.op || t.op === e ? ls(this, t, "_pt") : t.dep || (i = 1), t = n;
|
|
14844
14846
|
return !i;
|
|
14845
|
-
},
|
|
14847
|
+
}, Ly = function(e, t, i, n) {
|
|
14846
14848
|
n.mSet(e, t, n.m.call(n.tween, i, n.mt), n);
|
|
14847
14849
|
}, $l = function(e) {
|
|
14848
14850
|
for (var t = e._pt, i, n, s, a; t; ) {
|
|
@@ -14857,7 +14859,7 @@ var Po = function(e, t, i) {
|
|
|
14857
14859
|
}
|
|
14858
14860
|
var e = r.prototype;
|
|
14859
14861
|
return e.modifier = function(i, n, s) {
|
|
14860
|
-
this.mSet = this.mSet || this.set, this.set =
|
|
14862
|
+
this.mSet = this.mSet || this.set, this.set = Ly, this.m = i, this.mt = s, this.tween = n;
|
|
14861
14863
|
}, r;
|
|
14862
14864
|
}();
|
|
14863
14865
|
Jt(Eo + "parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger", function(r) {
|
|
@@ -14873,8 +14875,8 @@ gt = new qt({
|
|
|
14873
14875
|
smoothChildTiming: !0
|
|
14874
14876
|
});
|
|
14875
14877
|
ae.stringFilter = kl;
|
|
14876
|
-
var pr = [], Ln = {},
|
|
14877
|
-
return (Ln[e] ||
|
|
14878
|
+
var pr = [], Ln = {}, Gy = [], ru = 0, $s = function(e) {
|
|
14879
|
+
return (Ln[e] || Gy).map(function(t) {
|
|
14878
14880
|
return t();
|
|
14879
14881
|
});
|
|
14880
14882
|
}, eo = function() {
|
|
@@ -14942,7 +14944,7 @@ var pr = [], Ln = {}, Ly = [], ru = 0, $s = function(e) {
|
|
|
14942
14944
|
}, e.revert = function(i) {
|
|
14943
14945
|
this.kill(i || {});
|
|
14944
14946
|
}, r;
|
|
14945
|
-
}(),
|
|
14947
|
+
}(), Uy = /* @__PURE__ */ function() {
|
|
14946
14948
|
function r(t) {
|
|
14947
14949
|
this.contexts = [], this.scope = t;
|
|
14948
14950
|
}
|
|
@@ -14968,7 +14970,7 @@ var pr = [], Ln = {}, Ly = [], ru = 0, $s = function(e) {
|
|
|
14968
14970
|
for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
|
|
14969
14971
|
t[i] = arguments[i];
|
|
14970
14972
|
t.forEach(function(n) {
|
|
14971
|
-
return
|
|
14973
|
+
return by(n);
|
|
14972
14974
|
});
|
|
14973
14975
|
},
|
|
14974
14976
|
timeline: function(e) {
|
|
@@ -15048,7 +15050,7 @@ var pr = [], Ln = {}, Ly = [], ru = 0, $s = function(e) {
|
|
|
15048
15050
|
return e ? new Jl(e, t) : At;
|
|
15049
15051
|
},
|
|
15050
15052
|
matchMedia: function(e) {
|
|
15051
|
-
return new
|
|
15053
|
+
return new Uy(e);
|
|
15052
15054
|
},
|
|
15053
15055
|
matchMediaRefresh: function() {
|
|
15054
15056
|
return pr.forEach(function(e) {
|
|
@@ -15067,21 +15069,21 @@ var pr = [], Ln = {}, Ly = [], ru = 0, $s = function(e) {
|
|
|
15067
15069
|
n >= 0 && i.splice(n, 1);
|
|
15068
15070
|
},
|
|
15069
15071
|
utils: {
|
|
15070
|
-
wrap:
|
|
15071
|
-
wrapYoyo:
|
|
15072
|
+
wrap: gy,
|
|
15073
|
+
wrapYoyo: my,
|
|
15072
15074
|
distribute: Ml,
|
|
15073
15075
|
random: Fl,
|
|
15074
15076
|
snap: Dl,
|
|
15075
|
-
normalize:
|
|
15077
|
+
normalize: _y,
|
|
15076
15078
|
getUnit: Yt,
|
|
15077
|
-
clamp:
|
|
15079
|
+
clamp: cy,
|
|
15078
15080
|
splitColor: Gl,
|
|
15079
15081
|
toArray: de,
|
|
15080
15082
|
selector: Ja,
|
|
15081
15083
|
mapRange: Ll,
|
|
15082
|
-
pipe:
|
|
15083
|
-
unitize:
|
|
15084
|
-
interpolate:
|
|
15084
|
+
pipe: py,
|
|
15085
|
+
unitize: vy,
|
|
15086
|
+
interpolate: yy,
|
|
15085
15087
|
shuffle: Nl
|
|
15086
15088
|
},
|
|
15087
15089
|
install: bl,
|
|
@@ -15116,15 +15118,15 @@ ne.add(qt.updateRoot);
|
|
|
15116
15118
|
er = es.to({}, {
|
|
15117
15119
|
duration: 0
|
|
15118
15120
|
});
|
|
15119
|
-
var
|
|
15121
|
+
var ky = function(e, t) {
|
|
15120
15122
|
for (var i = e._pt; i && i.p !== t && i.op !== t && i.fp !== t; )
|
|
15121
15123
|
i = i._next;
|
|
15122
15124
|
return i;
|
|
15123
|
-
},
|
|
15125
|
+
}, Xy = function(e, t) {
|
|
15124
15126
|
var i = e._targets, n, s, a;
|
|
15125
15127
|
for (n in t)
|
|
15126
15128
|
for (s = i.length; s--; )
|
|
15127
|
-
a = e._ptLookup[s][n], a && (a = a.d) && (a._pt && (a =
|
|
15129
|
+
a = e._ptLookup[s][n], a && (a = a.d) && (a._pt && (a = ky(a, n)), a && a.modifier && a.modifier(t[n], e, i[s], n));
|
|
15128
15130
|
}, Js = function(e, t) {
|
|
15129
15131
|
return {
|
|
15130
15132
|
name: e,
|
|
@@ -15140,7 +15142,7 @@ var Uy = function(e, t) {
|
|
|
15140
15142
|
h[u] = t(s[u]);
|
|
15141
15143
|
s = h;
|
|
15142
15144
|
}
|
|
15143
|
-
|
|
15145
|
+
Xy(o, s);
|
|
15144
15146
|
};
|
|
15145
15147
|
}
|
|
15146
15148
|
};
|
|
@@ -15184,40 +15186,40 @@ J.Bounce;
|
|
|
15184
15186
|
J.Sine;
|
|
15185
15187
|
J.Expo;
|
|
15186
15188
|
J.Circ;
|
|
15187
|
-
var nu, ai, ar, Ao, Ai, su, Io,
|
|
15189
|
+
var nu, ai, ar, Ao, Ai, su, Io, Hy = function() {
|
|
15188
15190
|
return typeof window < "u";
|
|
15189
|
-
}, ei = {}, Oi = 180 / Math.PI, or = Math.PI / 180, ji = Math.atan2, au = 1e8, No = /([A-Z])/g,
|
|
15191
|
+
}, ei = {}, Oi = 180 / Math.PI, or = Math.PI / 180, ji = Math.atan2, au = 1e8, No = /([A-Z])/g, Wy = /(left|right|width|margin|padding|x)/i, Vy = /[\s,\(]\S/, Je = {
|
|
15190
15192
|
autoAlpha: "opacity,visibility",
|
|
15191
15193
|
scale: "scaleX,scaleY",
|
|
15192
15194
|
alpha: "opacity"
|
|
15193
15195
|
}, io = function(e, t) {
|
|
15194
15196
|
return t.set(t.t, t.p, Math.round((t.s + t.c * e) * 1e4) / 1e4 + t.u, t);
|
|
15195
|
-
}, Vy = function(e, t) {
|
|
15196
|
-
return t.set(t.t, t.p, e === 1 ? t.e : Math.round((t.s + t.c * e) * 1e4) / 1e4 + t.u, t);
|
|
15197
15197
|
}, zy = function(e, t) {
|
|
15198
|
-
return t.set(t.t, t.p, e ? Math.round((t.s + t.c * e) * 1e4) / 1e4 + t.u
|
|
15198
|
+
return t.set(t.t, t.p, e === 1 ? t.e : Math.round((t.s + t.c * e) * 1e4) / 1e4 + t.u, t);
|
|
15199
15199
|
}, Yy = function(e, t) {
|
|
15200
|
+
return t.set(t.t, t.p, e ? Math.round((t.s + t.c * e) * 1e4) / 1e4 + t.u : t.b, t);
|
|
15201
|
+
}, jy = function(e, t) {
|
|
15200
15202
|
var i = t.s + t.c * e;
|
|
15201
15203
|
t.set(t.t, t.p, ~~(i + (i < 0 ? -0.5 : 0.5)) + t.u, t);
|
|
15202
15204
|
}, Ql = function(e, t) {
|
|
15203
15205
|
return t.set(t.t, t.p, e ? t.e : t.b, t);
|
|
15204
15206
|
}, tf = function(e, t) {
|
|
15205
15207
|
return t.set(t.t, t.p, e !== 1 ? t.b : t.e, t);
|
|
15206
|
-
}, jy = function(e, t, i) {
|
|
15207
|
-
return e.style[t] = i;
|
|
15208
15208
|
}, Zy = function(e, t, i) {
|
|
15209
|
-
return e.style
|
|
15209
|
+
return e.style[t] = i;
|
|
15210
15210
|
}, Ky = function(e, t, i) {
|
|
15211
|
-
return e.
|
|
15211
|
+
return e.style.setProperty(t, i);
|
|
15212
15212
|
}, qy = function(e, t, i) {
|
|
15213
|
+
return e._gsap[t] = i;
|
|
15214
|
+
}, $y = function(e, t, i) {
|
|
15213
15215
|
return e._gsap.scaleX = e._gsap.scaleY = i;
|
|
15214
|
-
},
|
|
15216
|
+
}, Jy = function(e, t, i, n, s) {
|
|
15215
15217
|
var a = e._gsap;
|
|
15216
15218
|
a.scaleX = a.scaleY = i, a.renderTransform(s, a);
|
|
15217
|
-
},
|
|
15219
|
+
}, Qy = function(e, t, i, n, s) {
|
|
15218
15220
|
var a = e._gsap;
|
|
15219
15221
|
a[t] = i, a.renderTransform(s, a);
|
|
15220
|
-
}, yt = "transform", Oe = yt + "Origin",
|
|
15222
|
+
}, yt = "transform", Oe = yt + "Origin", tb = function(e, t) {
|
|
15221
15223
|
var i = this, n = this.target, s = n.style;
|
|
15222
15224
|
if (e in ei) {
|
|
15223
15225
|
if (this.tfm = this.tfm || {}, e !== "transform" && (e = Je[e] || e, ~e.indexOf(",") ? e.split(",").forEach(function(a) {
|
|
@@ -15229,7 +15231,7 @@ var nu, ai, ar, Ao, Ai, su, Io, Xy = function() {
|
|
|
15229
15231
|
(s || t) && this.props.push(e, t, s[e]);
|
|
15230
15232
|
}, ef = function(e) {
|
|
15231
15233
|
e.translate && (e.removeProperty("translate"), e.removeProperty("scale"), e.removeProperty("rotate"));
|
|
15232
|
-
},
|
|
15234
|
+
}, eb = function() {
|
|
15233
15235
|
var e = this.props, t = this.target, i = t.style, n = t._gsap, s, a;
|
|
15234
15236
|
for (s = 0; s < e.length; s += 3)
|
|
15235
15237
|
e[s + 1] ? t[e[s]] = e[s + 2] : e[s + 2] ? i[e[s]] = e[s + 2] : i.removeProperty(e[s].replace(No, "-$1").toLowerCase());
|
|
@@ -15242,8 +15244,8 @@ var nu, ai, ar, Ao, Ai, su, Io, Xy = function() {
|
|
|
15242
15244
|
var i = {
|
|
15243
15245
|
target: e,
|
|
15244
15246
|
props: [],
|
|
15245
|
-
revert:
|
|
15246
|
-
save:
|
|
15247
|
+
revert: eb,
|
|
15248
|
+
save: tb
|
|
15247
15249
|
};
|
|
15248
15250
|
return t && t.split(",").forEach(function(n) {
|
|
15249
15251
|
return i.save(n);
|
|
@@ -15262,7 +15264,7 @@ var nu, ai, ar, Ao, Ai, su, Io, Xy = function() {
|
|
|
15262
15264
|
;
|
|
15263
15265
|
return a < 0 ? null : (a === 3 ? "ms" : a >= 0 ? ou[a] : "") + e;
|
|
15264
15266
|
}, no = function() {
|
|
15265
|
-
|
|
15267
|
+
Hy() && window.document && (nu = window, ai = nu.document, ar = ai.documentElement, Ai = ro("div") || {
|
|
15266
15268
|
style: {}
|
|
15267
15269
|
}, ro("div"), yt = vr(yt), Oe = yt + "Origin", Ai.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", nf = !!vr("perspective"), Io = ue.core.reverting, Ao = 1);
|
|
15268
15270
|
}, Qs = function r(e) {
|
|
@@ -15306,16 +15308,16 @@ var nu, ai, ar, Ao, Ai, su, Io, Xy = function() {
|
|
|
15306
15308
|
deg: 1,
|
|
15307
15309
|
rad: 1,
|
|
15308
15310
|
turn: 1
|
|
15309
|
-
},
|
|
15311
|
+
}, ib = {
|
|
15310
15312
|
grid: 1,
|
|
15311
15313
|
flex: 1
|
|
15312
15314
|
}, pi = function r(e, t, i, n) {
|
|
15313
|
-
var s = parseFloat(i) || 0, a = (i + "").trim().substr((s + "").length) || "px", o = Ai.style, h =
|
|
15314
|
-
return n === a || !s || uu[n] || uu[a] ? s : (a !== "px" && !c && (s = r(e, t, i, "px")), g = e.getCTM && af(e), (d || a === "%") && (ei[t] || ~t.indexOf("adius")) ? (v = g ? e.getBBox()[h ? "width" : "height"] : e[l], Rt(d ? s / v * f : s / 100 * v)) : (o[h ? "width" : "height"] = f + (c ? a : n), p = ~t.indexOf("adius") || n === "em" && e.appendChild && !u ? e : e.parentNode, g && (p = (e.ownerSVGElement || {}).parentNode), (!p || p === ai || !p.appendChild) && (p = ai.body), _ = p._gsap, _ && d && _.width && h && _.time === ne.time && !_.uncache ? Rt(s / _.width * f) : ((d || a === "%") && !
|
|
15315
|
+
var s = parseFloat(i) || 0, a = (i + "").trim().substr((s + "").length) || "px", o = Ai.style, h = Wy.test(t), u = e.tagName.toLowerCase() === "svg", l = (u ? "client" : "offset") + (h ? "Width" : "Height"), f = 100, c = n === "px", d = n === "%", v, p, _, g;
|
|
15316
|
+
return n === a || !s || uu[n] || uu[a] ? s : (a !== "px" && !c && (s = r(e, t, i, "px")), g = e.getCTM && af(e), (d || a === "%") && (ei[t] || ~t.indexOf("adius")) ? (v = g ? e.getBBox()[h ? "width" : "height"] : e[l], Rt(d ? s / v * f : s / 100 * v)) : (o[h ? "width" : "height"] = f + (c ? a : n), p = ~t.indexOf("adius") || n === "em" && e.appendChild && !u ? e : e.parentNode, g && (p = (e.ownerSVGElement || {}).parentNode), (!p || p === ai || !p.appendChild) && (p = ai.body), _ = p._gsap, _ && d && _.width && h && _.time === ne.time && !_.uncache ? Rt(s / _.width * f) : ((d || a === "%") && !ib[ke(p, "display")] && (o.position = ke(e, "position")), p === e && (o.position = "static"), p.appendChild(Ai), v = Ai[l], p.removeChild(Ai), o.position = "absolute", h && d && (_ = Di(p), _.time = ne.time, _.width = p[l]), Rt(c ? v * s / f : v && s ? f / v * s : 0))));
|
|
15315
15317
|
}, Ze = function(e, t, i, n) {
|
|
15316
15318
|
var s;
|
|
15317
15319
|
return Ao || no(), t in Je && t !== "transform" && (t = Je[t], ~t.indexOf(",") && (t = t.split(",")[0])), ei[t] && t !== "transform" ? (s = qr(e, n), s = t !== "transformOrigin" ? s[t] : s.svg ? s.origin : rs(ke(e, Oe)) + " " + s.zOrigin + "px") : (s = e.style[t], (!s || s === "auto" || n || ~(s + "").indexOf("calc(")) && (s = is[t] && is[t](e, t, i) || ke(e, t) || El(e, t) || (t === "opacity" ? 1 : 0))), i && !~(s + "").trim().indexOf(" ") ? pi(e, t, s, i) + i : s;
|
|
15318
|
-
},
|
|
15320
|
+
}, rb = function(e, t, i, n) {
|
|
15319
15321
|
if (!i || i === "none") {
|
|
15320
15322
|
var s = vr(t, e, 1), a = s && ke(e, s, 1);
|
|
15321
15323
|
a && a !== i ? (t = s, i = a) : t === "borderColor" && (i = ke(e, "borderTopColor"));
|
|
@@ -15340,10 +15342,10 @@ var nu, ai, ar, Ao, Ai, su, Io, Xy = function() {
|
|
|
15340
15342
|
left: "0%",
|
|
15341
15343
|
right: "100%",
|
|
15342
15344
|
center: "50%"
|
|
15343
|
-
},
|
|
15345
|
+
}, nb = function(e) {
|
|
15344
15346
|
var t = e.split(" "), i = t[0], n = t[1] || "50%";
|
|
15345
15347
|
return (i === "top" || i === "bottom" || n === "left" || n === "right") && (e = i, i = n, n = e), t[0] = lu[i] || i, t[1] = lu[n] || n, t.join(" ");
|
|
15346
|
-
},
|
|
15348
|
+
}, sb = function(e, t) {
|
|
15347
15349
|
if (t.tween && t.tween._time === t.tween._dur) {
|
|
15348
15350
|
var i = t.t, n = i.style, s = t.u, a = i._gsap, o, h, u;
|
|
15349
15351
|
if (s === "all" || s === !0)
|
|
@@ -15356,7 +15358,7 @@ var nu, ai, ar, Ao, Ai, su, Io, Xy = function() {
|
|
|
15356
15358
|
}, is = {
|
|
15357
15359
|
clearProps: function(e, t, i, n, s) {
|
|
15358
15360
|
if (s.data !== "isFromStart") {
|
|
15359
|
-
var a = e._pt = new Qt(e._pt, t, i, 0, 0,
|
|
15361
|
+
var a = e._pt = new Qt(e._pt, t, i, 0, 0, sb);
|
|
15360
15362
|
return a.u = n, a.pr = -10, a.tween = s, e._props.push(i), 1;
|
|
15361
15363
|
}
|
|
15362
15364
|
}
|
|
@@ -15376,13 +15378,13 @@ var nu, ai, ar, Ao, Ai, su, Io, Xy = function() {
|
|
|
15376
15378
|
if ("x" in i && !t && !i.uncache)
|
|
15377
15379
|
return i;
|
|
15378
15380
|
var n = e.style, s = i.scaleX < 0, a = "px", o = "deg", h = getComputedStyle(e), u = ke(e, Oe) || "0", l, f, c, d, v, p, _, g, m, y, x, b, T, E, w, S, R, O, N, B, L, A, I, F, V, W, M, C, U, Z, z, tt;
|
|
15379
|
-
return l = f = c = p = _ = g = m = y = x = 0, d = v = 1, i.svg = !!(e.getCTM && af(e)), h.translate && ((h.translate !== "none" || h.scale !== "none" || h.rotate !== "none") && (n[yt] = (h.translate !== "none" ? "translate3d(" + (h.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (h.rotate !== "none" ? "rotate(" + h.rotate + ") " : "") + (h.scale !== "none" ? "scale(" + h.scale.split(" ").join(",") + ") " : "") + (h[yt] !== "none" ? h[yt] : "")), n.scale = n.rotate = n.translate = "none"), E = Mo(e, i.svg), i.svg && (i.uncache ? (V = e.getBBox(), u = i.xOrigin - V.x + "px " + (i.yOrigin - V.y) + "px", F = "") : F = !t && e.getAttribute("data-svg-origin"), so(e, F || u, !!F || i.originIsAbsolute, i.smooth !== !1, E)), b = i.xOrigin || 0, T = i.yOrigin || 0, E !== Kr && (O = E[0], N = E[1], B = E[2], L = E[3], l = A = E[4], f = I = E[5], E.length === 6 ? (d = Math.sqrt(O * O + N * N), v = Math.sqrt(L * L + B * B), p = O || N ? ji(N, O) * Oi : 0, m = B || L ? ji(B, L) * Oi + p : 0, m && (v *= Math.abs(Math.cos(m * or))), i.svg && (l -= b - (b * O + T * B), f -= T - (b * N + T * L))) : (tt = E[6], Z = E[7], M = E[8], C = E[9], U = E[10], z = E[11], l = E[12], f = E[13], c = E[14], w = ji(tt, U), _ = w * Oi, w && (S = Math.cos(-w), R = Math.sin(-w), F = A * S + M * R, V = I * S + C * R, W = tt * S + U * R, M = A * -R + M * S, C = I * -R + C * S, U = tt * -R + U * S, z = Z * -R + z * S, A = F, I = V, tt = W), w = ji(-B, U), g = w * Oi, w && (S = Math.cos(-w), R = Math.sin(-w), F = O * S - M * R, V = N * S - C * R, W = B * S - U * R, z = L * R + z * S, O = F, N = V, B = W), w = ji(N, O), p = w * Oi, w && (S = Math.cos(w), R = Math.sin(w), F = O * S + N * R, V = A * S + I * R, N = N * S - O * R, I = I * S - A * R, O = F, A = V), _ && Math.abs(_) + Math.abs(p) > 359.9 && (_ = p = 0, g = 180 - g), d = Rt(Math.sqrt(O * O + N * N + B * B)), v = Rt(Math.sqrt(I * I + tt * tt)), w = ji(A, I), m = Math.abs(w) > 2e-4 ? w * Oi : 0, x = z ? 1 / (z < 0 ? -z : z) : 0), i.svg && (F = e.getAttribute("transform"), i.forceCSS = e.setAttribute("transform", "") || !hf(ke(e, yt)), F && e.setAttribute("transform", F))), Math.abs(m) > 90 && Math.abs(m) < 270 && (s ? (d *= -1, m += p <= 0 ? 180 : -180, p += p <= 0 ? 180 : -180) : (v *= -1, m += m <= 0 ? 180 : -180)), t = t || i.uncache, i.x = l - ((i.xPercent = l && (!t && i.xPercent || (Math.round(e.offsetWidth / 2) === Math.round(-l) ? -50 : 0))) ? e.offsetWidth * i.xPercent / 100 : 0) + a, i.y = f - ((i.yPercent = f && (!t && i.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-f) ? -50 : 0))) ? e.offsetHeight * i.yPercent / 100 : 0) + a, i.z = c + a, i.scaleX = Rt(d), i.scaleY = Rt(v), i.rotation = Rt(p) + o, i.rotationX = Rt(_) + o, i.rotationY = Rt(g) + o, i.skewX = m + o, i.skewY = y + o, i.transformPerspective = x + a, (i.zOrigin = parseFloat(u.split(" ")[2]) || 0) && (n[Oe] = rs(u)), i.xOffset = i.yOffset = 0, i.force3D = ae.force3D, i.renderTransform = i.svg ?
|
|
15381
|
+
return l = f = c = p = _ = g = m = y = x = 0, d = v = 1, i.svg = !!(e.getCTM && af(e)), h.translate && ((h.translate !== "none" || h.scale !== "none" || h.rotate !== "none") && (n[yt] = (h.translate !== "none" ? "translate3d(" + (h.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (h.rotate !== "none" ? "rotate(" + h.rotate + ") " : "") + (h.scale !== "none" ? "scale(" + h.scale.split(" ").join(",") + ") " : "") + (h[yt] !== "none" ? h[yt] : "")), n.scale = n.rotate = n.translate = "none"), E = Mo(e, i.svg), i.svg && (i.uncache ? (V = e.getBBox(), u = i.xOrigin - V.x + "px " + (i.yOrigin - V.y) + "px", F = "") : F = !t && e.getAttribute("data-svg-origin"), so(e, F || u, !!F || i.originIsAbsolute, i.smooth !== !1, E)), b = i.xOrigin || 0, T = i.yOrigin || 0, E !== Kr && (O = E[0], N = E[1], B = E[2], L = E[3], l = A = E[4], f = I = E[5], E.length === 6 ? (d = Math.sqrt(O * O + N * N), v = Math.sqrt(L * L + B * B), p = O || N ? ji(N, O) * Oi : 0, m = B || L ? ji(B, L) * Oi + p : 0, m && (v *= Math.abs(Math.cos(m * or))), i.svg && (l -= b - (b * O + T * B), f -= T - (b * N + T * L))) : (tt = E[6], Z = E[7], M = E[8], C = E[9], U = E[10], z = E[11], l = E[12], f = E[13], c = E[14], w = ji(tt, U), _ = w * Oi, w && (S = Math.cos(-w), R = Math.sin(-w), F = A * S + M * R, V = I * S + C * R, W = tt * S + U * R, M = A * -R + M * S, C = I * -R + C * S, U = tt * -R + U * S, z = Z * -R + z * S, A = F, I = V, tt = W), w = ji(-B, U), g = w * Oi, w && (S = Math.cos(-w), R = Math.sin(-w), F = O * S - M * R, V = N * S - C * R, W = B * S - U * R, z = L * R + z * S, O = F, N = V, B = W), w = ji(N, O), p = w * Oi, w && (S = Math.cos(w), R = Math.sin(w), F = O * S + N * R, V = A * S + I * R, N = N * S - O * R, I = I * S - A * R, O = F, A = V), _ && Math.abs(_) + Math.abs(p) > 359.9 && (_ = p = 0, g = 180 - g), d = Rt(Math.sqrt(O * O + N * N + B * B)), v = Rt(Math.sqrt(I * I + tt * tt)), w = ji(A, I), m = Math.abs(w) > 2e-4 ? w * Oi : 0, x = z ? 1 / (z < 0 ? -z : z) : 0), i.svg && (F = e.getAttribute("transform"), i.forceCSS = e.setAttribute("transform", "") || !hf(ke(e, yt)), F && e.setAttribute("transform", F))), Math.abs(m) > 90 && Math.abs(m) < 270 && (s ? (d *= -1, m += p <= 0 ? 180 : -180, p += p <= 0 ? 180 : -180) : (v *= -1, m += m <= 0 ? 180 : -180)), t = t || i.uncache, i.x = l - ((i.xPercent = l && (!t && i.xPercent || (Math.round(e.offsetWidth / 2) === Math.round(-l) ? -50 : 0))) ? e.offsetWidth * i.xPercent / 100 : 0) + a, i.y = f - ((i.yPercent = f && (!t && i.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-f) ? -50 : 0))) ? e.offsetHeight * i.yPercent / 100 : 0) + a, i.z = c + a, i.scaleX = Rt(d), i.scaleY = Rt(v), i.rotation = Rt(p) + o, i.rotationX = Rt(_) + o, i.rotationY = Rt(g) + o, i.skewX = m + o, i.skewY = y + o, i.transformPerspective = x + a, (i.zOrigin = parseFloat(u.split(" ")[2]) || 0) && (n[Oe] = rs(u)), i.xOffset = i.yOffset = 0, i.force3D = ae.force3D, i.renderTransform = i.svg ? ob : nf ? uf : ab, i.uncache = 0, i;
|
|
15380
15382
|
}, rs = function(e) {
|
|
15381
15383
|
return (e = e.split(" "))[0] + " " + e[1];
|
|
15382
15384
|
}, ta = function(e, t, i) {
|
|
15383
15385
|
var n = Yt(t);
|
|
15384
15386
|
return Rt(parseFloat(t) + parseFloat(pi(e, "x", i + "px", n))) + n;
|
|
15385
|
-
},
|
|
15387
|
+
}, ab = function(e, t) {
|
|
15386
15388
|
t.z = "0px", t.rotationY = t.rotationX = "0deg", t.force3D = 0, uf(e, t);
|
|
15387
15389
|
}, Ei = "0deg", wr = "0px", Si = ") ", uf = function(e, t) {
|
|
15388
15390
|
var i = t || this, n = i.xPercent, s = i.yPercent, a = i.x, o = i.y, h = i.z, u = i.rotation, l = i.rotationY, f = i.rotationX, c = i.skewX, d = i.skewY, v = i.scaleX, p = i.scaleY, _ = i.transformPerspective, g = i.force3D, m = i.target, y = i.zOrigin, x = "", b = g === "auto" && e && e !== 1 || g === !0;
|
|
@@ -15391,17 +15393,17 @@ var nu, ai, ar, Ao, Ai, su, Io, Xy = function() {
|
|
|
15391
15393
|
T = parseFloat(f) * or, S = Math.cos(T), a = ta(m, a, E * S * -y), o = ta(m, o, -Math.sin(T) * -y), h = ta(m, h, w * S * -y + y);
|
|
15392
15394
|
}
|
|
15393
15395
|
_ !== wr && (x += "perspective(" + _ + Si), (n || s) && (x += "translate(" + n + "%, " + s + "%) "), (b || a !== wr || o !== wr || h !== wr) && (x += h !== wr || b ? "translate3d(" + a + ", " + o + ", " + h + ") " : "translate(" + a + ", " + o + Si), u !== Ei && (x += "rotate(" + u + Si), l !== Ei && (x += "rotateY(" + l + Si), f !== Ei && (x += "rotateX(" + f + Si), (c !== Ei || d !== Ei) && (x += "skew(" + c + ", " + d + Si), (v !== 1 || p !== 1) && (x += "scale(" + v + ", " + p + Si), m.style[yt] = x || "translate(0, 0)";
|
|
15394
|
-
},
|
|
15396
|
+
}, ob = function(e, t) {
|
|
15395
15397
|
var i = t || this, n = i.xPercent, s = i.yPercent, a = i.x, o = i.y, h = i.rotation, u = i.skewX, l = i.skewY, f = i.scaleX, c = i.scaleY, d = i.target, v = i.xOrigin, p = i.yOrigin, _ = i.xOffset, g = i.yOffset, m = i.forceCSS, y = parseFloat(a), x = parseFloat(o), b, T, E, w, S;
|
|
15396
15398
|
h = parseFloat(h), u = parseFloat(u), l = parseFloat(l), l && (l = parseFloat(l), u += l, h += l), h || u ? (h *= or, u *= or, b = Math.cos(h) * f, T = Math.sin(h) * f, E = Math.sin(h - u) * -c, w = Math.cos(h - u) * c, u && (l *= or, S = Math.tan(u - l), S = Math.sqrt(1 + S * S), E *= S, w *= S, l && (S = Math.tan(l), S = Math.sqrt(1 + S * S), b *= S, T *= S)), b = Rt(b), T = Rt(T), E = Rt(E), w = Rt(w)) : (b = f, w = c, T = E = 0), (y && !~(a + "").indexOf("px") || x && !~(o + "").indexOf("px")) && (y = pi(d, "x", a, "px"), x = pi(d, "y", o, "px")), (v || p || _ || g) && (y = Rt(y + v - (v * b + p * E) + _), x = Rt(x + p - (v * T + p * w) + g)), (n || s) && (S = d.getBBox(), y = Rt(y + n / 100 * S.width), x = Rt(x + s / 100 * S.height)), S = "matrix(" + b + "," + T + "," + E + "," + w + "," + y + "," + x + ")", d.setAttribute("transform", S), m && (d.style[yt] = S);
|
|
15397
|
-
},
|
|
15399
|
+
}, hb = function(e, t, i, n, s) {
|
|
15398
15400
|
var a = 360, o = Gt(s), h = parseFloat(s) * (o && ~s.indexOf("rad") ? Oi : 1), u = h - n, l = n + u + "deg", f, c;
|
|
15399
|
-
return o && (f = s.split("_")[1], f === "short" && (u %= a, u !== u % (a / 2) && (u += u < 0 ? a : -a)), f === "cw" && u < 0 ? u = (u + a * au) % a - ~~(u / a) * a : f === "ccw" && u > 0 && (u = (u - a * au) % a - ~~(u / a) * a)), e._pt = c = new Qt(e._pt, t, i, n, u,
|
|
15401
|
+
return o && (f = s.split("_")[1], f === "short" && (u %= a, u !== u % (a / 2) && (u += u < 0 ? a : -a)), f === "cw" && u < 0 ? u = (u + a * au) % a - ~~(u / a) * a : f === "ccw" && u > 0 && (u = (u - a * au) % a - ~~(u / a) * a)), e._pt = c = new Qt(e._pt, t, i, n, u, zy), c.e = l, c.u = "deg", e._props.push(i), c;
|
|
15400
15402
|
}, cu = function(e, t) {
|
|
15401
15403
|
for (var i in t)
|
|
15402
15404
|
e[i] = t[i];
|
|
15403
15405
|
return e;
|
|
15404
|
-
},
|
|
15406
|
+
}, ub = function(e, t, i) {
|
|
15405
15407
|
var n = cu({}, i._gsap), s = "perspective,force3D,transformOrigin,svgOrigin", a = i.style, o, h, u, l, f, c, d, v;
|
|
15406
15408
|
n.svg ? (u = i.getAttribute("transform"), i.setAttribute("transform", ""), a[yt] = t, o = qr(i, 1), Zr(i, yt), i.setAttribute("transform", u)) : (u = getComputedStyle(i)[yt], a[yt] = t, o = qr(i, 1), a[yt] = u);
|
|
15407
15409
|
for (h in ei)
|
|
@@ -15443,13 +15445,13 @@ var lf = {
|
|
|
15443
15445
|
if (this.styles.save(p), x || (b = e._gsap, b.renderTransform && !t.parseTransform || qr(e, t.parseTransform), T = t.smoothOrigin !== !1 && b.smooth, x = this._pt = new Qt(this._pt, o, yt, 0, 1, b.renderTransform, b, 0, -1), x.dep = 1), p === "scale")
|
|
15444
15446
|
this._pt = new Qt(this._pt, b, "scaleY", b.scaleY, (m ? sr(b.scaleY, m + f) : f) - b.scaleY || 0, io), this._pt.u = 0, a.push("scaleY", p), p += "X";
|
|
15445
15447
|
else if (p === "transformOrigin") {
|
|
15446
|
-
w.push(Oe, 0, o[Oe]), l =
|
|
15448
|
+
w.push(Oe, 0, o[Oe]), l = nb(l), b.svg ? so(e, l, 0, T, 0, this) : (g = parseFloat(l.split(" ")[2]) || 0, g !== b.zOrigin && oi(this, b, "zOrigin", b.zOrigin, g), oi(this, o, p, rs(u), rs(l)));
|
|
15447
15449
|
continue;
|
|
15448
15450
|
} else if (p === "svgOrigin") {
|
|
15449
15451
|
so(e, l, 1, T, 0, this);
|
|
15450
15452
|
continue;
|
|
15451
15453
|
} else if (p in of) {
|
|
15452
|
-
|
|
15454
|
+
hb(this, b, p, c, m ? sr(c, m + l) : l);
|
|
15453
15455
|
continue;
|
|
15454
15456
|
} else if (p === "smoothOrigin") {
|
|
15455
15457
|
oi(this, b, "smooth", b.smooth, l);
|
|
@@ -15458,15 +15460,15 @@ var lf = {
|
|
|
15458
15460
|
b[p] = l;
|
|
15459
15461
|
continue;
|
|
15460
15462
|
} else if (p === "transform") {
|
|
15461
|
-
|
|
15463
|
+
ub(this, l, e);
|
|
15462
15464
|
continue;
|
|
15463
15465
|
}
|
|
15464
15466
|
} else
|
|
15465
15467
|
p in o || (p = vr(p) || p);
|
|
15466
|
-
if (y || (f || f === 0) && (c || c === 0) && !
|
|
15467
|
-
_ = (u + "").substr((c + "").length), f || (f = 0), g = Yt(l) || (p in ae.units ? ae.units[p] : _), _ !== g && (c = pi(e, p, u, g)), this._pt = new Qt(this._pt, y ? b : o, p, c, (m ? sr(c, m + f) : f) - c, !y && (g === "px" || p === "zIndex") && t.autoRound !== !1 ?
|
|
15468
|
+
if (y || (f || f === 0) && (c || c === 0) && !Vy.test(l) && p in o)
|
|
15469
|
+
_ = (u + "").substr((c + "").length), f || (f = 0), g = Yt(l) || (p in ae.units ? ae.units[p] : _), _ !== g && (c = pi(e, p, u, g)), this._pt = new Qt(this._pt, y ? b : o, p, c, (m ? sr(c, m + f) : f) - c, !y && (g === "px" || p === "zIndex") && t.autoRound !== !1 ? jy : io), this._pt.u = g || 0, _ !== g && g !== "%" && (this._pt.b = u, this._pt.r = Yy);
|
|
15468
15470
|
else if (p in o)
|
|
15469
|
-
|
|
15471
|
+
rb.call(this, e, p, u, m ? m + l : l);
|
|
15470
15472
|
else if (p in e)
|
|
15471
15473
|
this.add(e, p, u || e[p], m ? m + l : l, n, s);
|
|
15472
15474
|
else if (p !== "parseTransform") {
|
|
@@ -15489,7 +15491,7 @@ var lf = {
|
|
|
15489
15491
|
aliases: Je,
|
|
15490
15492
|
getSetter: function(e, t, i) {
|
|
15491
15493
|
var n = Je[t];
|
|
15492
|
-
return n && n.indexOf(",") < 0 && (t = n), t in ei && t !== Oe && (e._gsap.x || Ze(e, "x")) ? i && su === i ? t === "scale" ?
|
|
15494
|
+
return n && n.indexOf(",") < 0 && (t = n), t in ei && t !== Oe && (e._gsap.x || Ze(e, "x")) ? i && su === i ? t === "scale" ? $y : qy : (su = i || {}) && (t === "scale" ? Jy : Qy) : e.style && !yo(e.style[t]) ? Zy : ~t.indexOf("-") ? Ky : Co(e, t);
|
|
15493
15495
|
},
|
|
15494
15496
|
core: {
|
|
15495
15497
|
_removeProperty: Zr,
|
|
@@ -15515,8 +15517,8 @@ Jt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective
|
|
|
15515
15517
|
ue.registerPlugin(lf);
|
|
15516
15518
|
var zt = ue.registerPlugin(lf) || ue;
|
|
15517
15519
|
zt.core.Tween;
|
|
15518
|
-
const An = 16, Rr = 8, ea = 4, du = 0.7,
|
|
15519
|
-
class
|
|
15520
|
+
const An = 16, Rr = 8, ea = 4, du = 0.7, lb = 0.25;
|
|
15521
|
+
class fb extends ct {
|
|
15520
15522
|
constructor({
|
|
15521
15523
|
graphState: t
|
|
15522
15524
|
}) {
|
|
@@ -15561,7 +15563,7 @@ class lb extends ct {
|
|
|
15561
15563
|
});
|
|
15562
15564
|
};
|
|
15563
15565
|
this.dots.forEach((i, n) => {
|
|
15564
|
-
t(i, n *
|
|
15566
|
+
t(i, n * lb);
|
|
15565
15567
|
});
|
|
15566
15568
|
}
|
|
15567
15569
|
destroyDots() {
|
|
@@ -15582,7 +15584,7 @@ const Do = {
|
|
|
15582
15584
|
function ds() {
|
|
15583
15585
|
Te = /* @__PURE__ */ new Map(), Ee = /* @__PURE__ */ new Map(), Se = /* @__PURE__ */ new Map(), we = /* @__PURE__ */ new Map();
|
|
15584
15586
|
}
|
|
15585
|
-
function
|
|
15587
|
+
function cb() {
|
|
15586
15588
|
Te && (Te.forEach((r) => {
|
|
15587
15589
|
r.destroy();
|
|
15588
15590
|
}), Te.clear(), Te = void 0), Ee && (Ee.forEach(({ cap: r, body: e }) => {
|
|
@@ -15659,7 +15661,7 @@ function ff({
|
|
|
15659
15661
|
}
|
|
15660
15662
|
return Se.get(e);
|
|
15661
15663
|
}
|
|
15662
|
-
function
|
|
15664
|
+
function db({
|
|
15663
15665
|
pixiApp: r,
|
|
15664
15666
|
borderRadius: e,
|
|
15665
15667
|
borderColor: t,
|
|
@@ -15716,7 +15718,7 @@ class ho extends ct {
|
|
|
15716
15718
|
this.graphState = t, this.rectWidth = i, this.rectHeight = n, this.borderRadius = s, this.borderColor = a, this.borderWidth = o, this.initRect();
|
|
15717
15719
|
}
|
|
15718
15720
|
initRect() {
|
|
15719
|
-
const { borderRadius: t, borderColor: i, borderWidth: n } = this, { pixiApp: s } = this.graphState, { corner: a, edge: o } =
|
|
15721
|
+
const { borderRadius: t, borderColor: i, borderWidth: n } = this, { pixiApp: s } = this.graphState, { corner: a, edge: o } = db({
|
|
15720
15722
|
pixiApp: s,
|
|
15721
15723
|
borderRadius: t,
|
|
15722
15724
|
borderColor: i,
|
|
@@ -15783,7 +15785,7 @@ class ho extends ct {
|
|
|
15783
15785
|
}
|
|
15784
15786
|
}
|
|
15785
15787
|
const pu = 64, In = 20;
|
|
15786
|
-
class
|
|
15788
|
+
class pb extends ct {
|
|
15787
15789
|
constructor({
|
|
15788
15790
|
sourceNode: t,
|
|
15789
15791
|
targetNode: i,
|
|
@@ -15843,7 +15845,7 @@ class db extends ct {
|
|
|
15843
15845
|
}
|
|
15844
15846
|
initEdge() {
|
|
15845
15847
|
const { spacingEdgeWidth: t } = this.graphState.styleOptions.value, i = this.getEdgeTexture();
|
|
15846
|
-
return new
|
|
15848
|
+
return new k0(i, this.edgePoints, t / ao);
|
|
15847
15849
|
}
|
|
15848
15850
|
initEdgePoints() {
|
|
15849
15851
|
const t = [];
|
|
@@ -15897,7 +15899,7 @@ class db extends ct {
|
|
|
15897
15899
|
t.remove(this.arrow), this.unWatchers.forEach((i) => i()), super.destroy.call(this);
|
|
15898
15900
|
}
|
|
15899
15901
|
}
|
|
15900
|
-
class
|
|
15902
|
+
class vb extends ct {
|
|
15901
15903
|
constructor({
|
|
15902
15904
|
pixiApp: t,
|
|
15903
15905
|
labelText: i,
|
|
@@ -15933,42 +15935,42 @@ class pb extends ct {
|
|
|
15933
15935
|
}
|
|
15934
15936
|
}
|
|
15935
15937
|
let ie;
|
|
15936
|
-
const
|
|
15938
|
+
const _b = ({
|
|
15937
15939
|
minimumStartTime: r,
|
|
15938
15940
|
graphXDomain: e,
|
|
15939
15941
|
initialOverallTimeSpan: t
|
|
15940
15942
|
}) => ({
|
|
15941
|
-
dateToX:
|
|
15943
|
+
dateToX: mb(
|
|
15942
15944
|
r,
|
|
15943
15945
|
e,
|
|
15944
15946
|
t
|
|
15945
15947
|
),
|
|
15946
|
-
xToDate:
|
|
15948
|
+
xToDate: yb(
|
|
15947
15949
|
r,
|
|
15948
15950
|
e,
|
|
15949
15951
|
t
|
|
15950
15952
|
)
|
|
15951
|
-
}),
|
|
15953
|
+
}), gb = ({
|
|
15952
15954
|
minimumStartTime: r,
|
|
15953
15955
|
graphXDomain: e,
|
|
15954
15956
|
initialOverallTimeSpan: t
|
|
15955
|
-
}) => (ie =
|
|
15957
|
+
}) => (ie = _b({
|
|
15956
15958
|
minimumStartTime: r,
|
|
15957
15959
|
graphXDomain: e,
|
|
15958
15960
|
initialOverallTimeSpan: t
|
|
15959
15961
|
}), ie);
|
|
15960
|
-
function
|
|
15962
|
+
function mb(r, e, t) {
|
|
15961
15963
|
return function(i) {
|
|
15962
15964
|
return Math.ceil((i.getTime() - r) * (e / t));
|
|
15963
15965
|
};
|
|
15964
15966
|
}
|
|
15965
|
-
function
|
|
15967
|
+
function yb(r, e, t) {
|
|
15966
15968
|
return function(i) {
|
|
15967
15969
|
return new Date(Math.ceil(r + i * (t / e)));
|
|
15968
15970
|
};
|
|
15969
15971
|
}
|
|
15970
|
-
const
|
|
15971
|
-
class
|
|
15972
|
+
const bb = 260, ia = 4e3;
|
|
15973
|
+
class xb extends ct {
|
|
15972
15974
|
constructor({
|
|
15973
15975
|
graphState: t,
|
|
15974
15976
|
maximumEndDate: i,
|
|
@@ -15999,7 +16001,7 @@ class bb extends ct {
|
|
|
15999
16001
|
}
|
|
16000
16002
|
updateIdealGuideCount() {
|
|
16001
16003
|
const { pixiApp: t } = this.graphState;
|
|
16002
|
-
this.idealGuideCount = Math.ceil(t.screen.width /
|
|
16004
|
+
this.idealGuideCount = Math.ceil(t.screen.width / bb);
|
|
16003
16005
|
}
|
|
16004
16006
|
updateCurrentTimeGap() {
|
|
16005
16007
|
const { viewport: t } = this.graphState, { minimumStartTime: i } = this.graphState.timeScaleProps, n = Math.ceil((t.right - t.left) / this.idealGuideCount), s = ie.xToDate(n).getTime() - i, a = Bo.find((o) => o.ceiling > s) ?? Bo[0];
|
|
@@ -16010,8 +16012,8 @@ class bb extends ct {
|
|
|
16010
16012
|
let n;
|
|
16011
16013
|
const s = ie.xToDate(ie.dateToX(this.maximumEndDate.value ?? new Date()) + ia);
|
|
16012
16014
|
let a = new Date(Math.ceil(ie.xToDate(-ia).getTime() / this.currentTimeGap) * this.currentTimeGap);
|
|
16013
|
-
for (this.currentTimeGap > q.hour * 6 ? a =
|
|
16014
|
-
const o = new
|
|
16015
|
+
for (this.currentTimeGap > q.hour * 6 ? a = kf(a) : this.currentTimeGap > q.hour && (a = Xf(a)), n = a; n.getTime() < s.getTime(); ) {
|
|
16016
|
+
const o = new vb({
|
|
16015
16017
|
pixiApp: t,
|
|
16016
16018
|
labelText: this.labelFormatter(n),
|
|
16017
16019
|
styleOptions: i
|
|
@@ -16072,8 +16074,8 @@ const re = {
|
|
|
16072
16074
|
}, uo = "nodeResize", pf = {
|
|
16073
16075
|
fadeIn: 0.25,
|
|
16074
16076
|
move: 0.5
|
|
16075
|
-
}, lo = "box",
|
|
16076
|
-
class
|
|
16077
|
+
}, lo = "box", Tb = "None", Eb = 0.2;
|
|
16078
|
+
class Sb extends ct {
|
|
16077
16079
|
constructor({
|
|
16078
16080
|
nodeData: t,
|
|
16079
16081
|
graphState: i,
|
|
@@ -16192,7 +16194,7 @@ class Eb extends ct {
|
|
|
16192
16194
|
), s && (this.runningNodeTicker = () => {
|
|
16193
16195
|
this.update();
|
|
16194
16196
|
}, a.ticker.add(this.runningNodeTicker)), c.on("frame-end", () => {
|
|
16195
|
-
if (c.scale.x <
|
|
16197
|
+
if (c.scale.x < Eb) {
|
|
16196
16198
|
this.label && (this.label.visible = !1), this.subNodesOutline && !this.isSubNodesExpanded && (this.subNodesOutline.visible = !1);
|
|
16197
16199
|
return;
|
|
16198
16200
|
}
|
|
@@ -16245,7 +16247,7 @@ class Eb extends ct {
|
|
|
16245
16247
|
if (!this.hasSubNodes)
|
|
16246
16248
|
return;
|
|
16247
16249
|
const { graphState: t, nodeWidth: i, nodeHeight: n, nodeData: s } = this, { spacingNodeLabelMargin: a, borderRadiusNode: o } = this.graphState.styleOptions.value;
|
|
16248
|
-
this.subNodesToggleWidth = n, this.isSubNodesToggleFloating = this.subNodesToggleWidth + o > i, this.subNodesToggle = new
|
|
16250
|
+
this.subNodesToggleWidth = n, this.isSubNodesToggleFloating = this.subNodesToggleWidth + o > i, this.subNodesToggle = new Ob({
|
|
16249
16251
|
graphState: t,
|
|
16250
16252
|
nodeData: s,
|
|
16251
16253
|
floating: this.isSubNodesToggleFloating,
|
|
@@ -16322,14 +16324,14 @@ class Eb extends ct {
|
|
|
16322
16324
|
}
|
|
16323
16325
|
drawLoadingSubNodes() {
|
|
16324
16326
|
const { graphState: t, box: i } = this, { spacingNodeMargin: n } = t.styleOptions.value;
|
|
16325
|
-
this.destroySubNodesLoadingIndicator(), this.subNodesLoadingIndicator = new
|
|
16327
|
+
this.destroySubNodesLoadingIndicator(), this.subNodesLoadingIndicator = new fb({ graphState: t }), this.subNodesLoadingIndicator.position.set(
|
|
16326
16328
|
i.width / 2 - this.subNodesLoadingIndicator.width / 2,
|
|
16327
16329
|
i.y + i.height + n
|
|
16328
16330
|
), this.addChild(this.subNodesLoadingIndicator), this.initSubNodesTicker();
|
|
16329
16331
|
}
|
|
16330
16332
|
async drawNoSubNodesMessage() {
|
|
16331
16333
|
const { box: t } = this, { styleOptions: i } = this.graphState, n = await Vr(i.value);
|
|
16332
|
-
this.destroyNoSubNodesMessage(), this.noSubNodesMessage = new Kn(
|
|
16334
|
+
this.destroyNoSubNodesMessage(), this.noSubNodesMessage = new Kn(Tb, n.nodeTextSubdued), this.noSubNodesMessage.anchor.set(0.5, 0), this.noSubNodesMessage.position.set(
|
|
16333
16335
|
t.width / 2,
|
|
16334
16336
|
t.y + t.height + i.value.spacingNodeMargin
|
|
16335
16337
|
), this.addChild(this.noSubNodesMessage), this.initSubNodesTicker();
|
|
@@ -16542,7 +16544,7 @@ class Eb extends ct {
|
|
|
16542
16544
|
}
|
|
16543
16545
|
}
|
|
16544
16546
|
const vf = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2NvbnN0IGI9KHttaW5pbXVtU3RhcnRUaW1lOmUsZ3JhcGhYRG9tYWluOm4saW5pdGlhbE92ZXJhbGxUaW1lU3Bhbjp0fSk9Pih7ZGF0ZVRvWDpQKGUsbix0KSx4VG9EYXRlOkkoZSxuLHQpfSk7ZnVuY3Rpb24gUChlLG4sdCl7cmV0dXJuIGZ1bmN0aW9uKG8pe3JldHVybiBNYXRoLmNlaWwoKG8uZ2V0VGltZSgpLWUpKihuL3QpKX19ZnVuY3Rpb24gSShlLG4sdCl7cmV0dXJuIGZ1bmN0aW9uKG8pe3JldHVybiBuZXcgRGF0ZShNYXRoLmNlaWwoZStvKih0L24pKSl9fWNvbnN0IGc9MDtsZXQgeSxEPTE0LHY9MCxoPSJ3YXRlcmZhbGwiLGQ9W107Y29uc3QgYT17fTtvbm1lc3NhZ2U9YXN5bmMoe2RhdGE6e2xheW91dFNldHRpbmc6ZSxncmFwaERhdGE6bixhcHhDaGFyYWN0ZXJXaWR0aDp0LHNwYWNpbmdNaW5pbXVtTm9kZUVkZ2VHYXA6byx0aW1lU2NhbGVQcm9wczppLGNlbnRlclZpZXdwb3J0QWZ0ZXI6c319KT0+e2Zvcihjb25zdCByIGluIGEpZGVsZXRlIGFbcl07aWYobyYmKHY9byksZSYmKGg9ZSksdCYmKEQ9dCksaSl7Y29uc3R7bWluaW11bVN0YXJ0VGltZTpyLGdyYXBoWERvbWFpbjpjLGluaXRpYWxPdmVyYWxsVGltZVNwYW46dX09aTt5PWIoe21pbmltdW1TdGFydFRpbWU6cixncmFwaFhEb21haW46Yyxpbml0aWFsT3ZlcmFsbFRpbWVTcGFuOnV9KX1pZihuKXtjb25zdCByPUpTT04ucGFyc2Uobik7eSYmKGV8fGQhPT1yKSYmKGQ9TChyKSxhd2FpdCBTKCkscG9zdE1lc3NhZ2Uoe2xheW91dDphLGNlbnRlclZpZXdwb3J0QWZ0ZXI6c30pKX19O2Z1bmN0aW9uIEwoZSl7cmV0dXJuIGUuZmlsdGVyKE8pLm1hcChuPT4obi5zdGFydD1uZXcgRGF0ZShuLnN0YXJ0KSxuLmVuZCYmKG4uZW5kPW5ldyBEYXRlKG4uZW5kKSksbikpLnNvcnQoKG4sdCk9Pm4uc3RhcnQuZ2V0VGltZSgpLXQuc3RhcnQuZ2V0VGltZSgpKX1mdW5jdGlvbiBPKGUpe3JldHVybiB0eXBlb2YgZT09Im9iamVjdCImJiJzdGFydCJpbiBlfWFzeW5jIGZ1bmN0aW9uIFMoKXtoPT09IndhdGVyZmFsbCImJlgoKSxoPT09Im5lYXJlc3RQYXJlbnQiJiZhd2FpdCBDKCksQigpfWZ1bmN0aW9uIFgoKXtkLmZvckVhY2goKGUsbik9PnthW2UuaWRdPXtwb3NpdGlvbjpuLHN0YXJ0WDowLGVuZFg6MH19KX1hc3luYyBmdW5jdGlvbiBDKCl7Zm9yIGF3YWl0KGNvbnN0IGUgb2YgZCl7aWYoIWUuc3RhcnQpY29udGludWU7Y29uc3Qgbj15LmRhdGVUb1goZS5lbmQ/bmV3IERhdGUoZS5lbmQpOm5ldyBEYXRlKSx0PWUubGFiZWwubGVuZ3RoKkQsbz1uK3QsaT1lLmlkIGluIGE/YVtlLmlkXS5zdGFydFg6eS5kYXRlVG9YKG5ldyBEYXRlKGUuc3RhcnQpKSxzPWF3YWl0IEEoZSxpKTthW2UuaWRdPXtwb3NpdGlvbjpzLHN0YXJ0WDppLGVuZFg6b319fWFzeW5jIGZ1bmN0aW9uIEEoZSxuKXtpZihlLnVwc3RyZWFtRGVwZW5kZW5jaWVzJiZlLnVwc3RyZWFtRGVwZW5kZW5jaWVzLmxlbmd0aD09PTEpe2lmKGUudXBzdHJlYW1EZXBlbmRlbmNpZXNbMF1pbiBhKXtjb25zdCB0PWFbZS51cHN0cmVhbURlcGVuZGVuY2llc1swXV07cmV0dXJuIGF3YWl0IHcodCxuKX1yZXR1cm4gY29uc29sZS53YXJuKCJ0aW1lbGluZU5vZGVzIGxheW91dCB3b3JrZXI6IFBhcmVudCBub2RlIG5vdCBmb3VuZCBpbiBsYXlvdXQiLGUudXBzdHJlYW1EZXBlbmRlbmNpZXNbMF0pLGd9aWYoZS51cHN0cmVhbURlcGVuZGVuY2llcyYmZS51cHN0cmVhbURlcGVuZGVuY2llcy5sZW5ndGg+MCl7Y29uc3Qgbz1lLnVwc3RyZWFtRGVwZW5kZW5jaWVzLm1hcChjPT5hW2NdKS5maWx0ZXIoYz0+ISFjKS5tYXAoYz0+Yy5wb3NpdGlvbikscz1vLnJlZHVjZSgoYyx1KT0+Yyt1LDApL28ubGVuZ3RoLHI9TWF0aC5yb3VuZChzKTtpZihtKG4scikpe2NvbnN0IGM9VChuLHIpLHU9Yy5maWx0ZXIocD0+e3ZhciBsO3JldHVybihsPWUudXBzdHJlYW1EZXBlbmRlbmNpZXMpPT1udWxsP3ZvaWQgMDpsLmluY2x1ZGVzKHApfSk7aWYodS5sZW5ndGg+MHx8Yy5sZW5ndGg+MSl7Y29uc3RbcF09dS5sZW5ndGg+MD91OmMsbD1hW3BdO3JldHVybiBsLm5leHREZXBlbmRlbmN5U2hvdmU9aihvLHIsbC5uZXh0RGVwZW5kZW5jeVNob3ZlKSxhd2FpdCB3KGwsbil9cmV0dXJuIGF3YWl0IGsoe2NvbXBldGluZ0xheW91dEl0ZW1JZDpjWzBdLHVwc3RyZWFtUG9zaXRpb25zOm8sbm9kZVN0YXJ0WDpuLGRlc2lyZWRQb3NpdGlvbjpyfSl9fXJldHVybiBOKG4sZyl9ZnVuY3Rpb24gTihlLG4pe3JldHVybiBtKGUsbik/TihlLG4rMSk6bn1hc3luYyBmdW5jdGlvbiB3KGUsbil7ZS5uZXh0RGVwZW5kZW5jeVNob3ZlIT09MSYmZS5uZXh0RGVwZW5kZW5jeVNob3ZlIT09LTEmJihlLm5leHREZXBlbmRlbmN5U2hvdmU9MSk7Y29uc3R7cG9zaXRpb246dCxuZXh0RGVwZW5kZW5jeVNob3ZlOm99PWU7cmV0dXJuIG0obix0KT9vPT09MSYmIW0obix0KzEpPyhlLm5leHREZXBlbmRlbmN5U2hvdmU9LTEsdCsxKTptKG4sdC0xKT8oYXdhaXQgZih7ZGlyZWN0aW9uOm8sbm9kZVN0YXJ0WDpuLGRlc2lyZWRQb3NpdGlvbjp0K299KSxlLm5leHREZXBlbmRlbmN5U2hvdmU9bz09PTE/LTE6MSx0K28pOihlLm5leHREZXBlbmRlbmN5U2hvdmU9MSx0LTEpOnR9ZnVuY3Rpb24gbShlLG4pe2NvbnN0IHQ9T2JqZWN0LmtleXMoYSk7cmV0dXJuIHQubGVuZ3RoPjAmJnQuc29tZShvPT57Y29uc3QgaT1hW29dO3JldHVybiB4KHtmaXJzdE5vZGVFbmRYOmkuZW5kWCxmaXJzdE5vZGVQb3NpdGlvbjppLnBvc2l0aW9uLGxhc3ROb2RlU3RhcnRYOmUsbGFzdE5vZGVQb3NpdGlvbjpufSl9KX1hc3luYyBmdW5jdGlvbiBmKHtkaXJlY3Rpb246ZSxub2RlU3RhcnRYOm4sZGVzaXJlZFBvc2l0aW9uOnR9KXtjb25zdCBvPVQobix0KTtpZihvKWZvciBhd2FpdChjb25zdCBpIG9mIG8pe2NvbnN0IHM9YVtpXSxyPXMucG9zaXRpb24rZTthd2FpdCBmKHtkaXJlY3Rpb246ZSxub2RlU3RhcnRYOnMuc3RhcnRYLGRlc2lyZWRQb3NpdGlvbjpyfSkscy5wb3NpdGlvbj1yfX1mdW5jdGlvbiB4KHtmaXJzdE5vZGVFbmRYOmUsZmlyc3ROb2RlUG9zaXRpb246bixsYXN0Tm9kZVN0YXJ0WDp0LGxhc3ROb2RlUG9zaXRpb246b30pe3JldHVybiBuPT09byYmZSt2Pj10fWZ1bmN0aW9uIFQoZSxuKXtjb25zdCB0PVtdO2lmKE9iamVjdC5rZXlzKGEpLmZvckVhY2gobz0+e2NvbnN0IGk9YVtvXTt4KHtmaXJzdE5vZGVFbmRYOmkuZW5kWCxmaXJzdE5vZGVQb3NpdGlvbjppLnBvc2l0aW9uLGxhc3ROb2RlU3RhcnRYOmUsbGFzdE5vZGVQb3NpdGlvbjpufSkmJnQucHVzaChvKX0pLHQubGVuZ3RoIT09MClyZXR1cm4gdC5zb3J0KChvLGkpPT57Y29uc3Qgcz1hW29dLHI9YVtpXTtyZXR1cm4gcy5lbmRYPHIuZW5kWD8xOnMuZW5kWD5yLmVuZFg/LTE6MH0pLHR9ZnVuY3Rpb24gaihlLG4sdCl7Y29uc3Qgbz1lLmZpbHRlcihzPT5zPG4pLmxlbmd0aCxpPWUuZmlsdGVyKHM9PnM+bikubGVuZ3RoO3JldHVybiBvPmk/LTE6dD8/MX1hc3luYyBmdW5jdGlvbiBrKHtkZXNpcmVkUG9zaXRpb246ZSxub2RlU3RhcnRYOm4sdXBzdHJlYW1Qb3NpdGlvbnM6dCxjb21wZXRpbmdMYXlvdXRJdGVtSWQ6b30pe2NvbnN0IGk9YVtvXSxbcyxyXT1FKG8pLGM9dC5maWx0ZXIocD0+cDxlKS5sZW5ndGgsdT10LmZpbHRlcihwPT5wPmUpLmxlbmd0aDtpZihjPnUpe2lmKHM+ciYmcz5jKXJldHVybiBhd2FpdCBmKHtkaXJlY3Rpb246LTEsbm9kZVN0YXJ0WDpuLGRlc2lyZWRQb3NpdGlvbjplfSksZTtpZihyPnMpcmV0dXJuIGF3YWl0IGYoe2RpcmVjdGlvbjoxLG5vZGVTdGFydFg6bixkZXNpcmVkUG9zaXRpb246ZX0pLGU7aS5uZXh0RGVwZW5kZW5jeVNob3ZlPS0xfWlmKHU+Yyl7aWYocj5zJiZyPnUpcmV0dXJuIGF3YWl0IGYoe2RpcmVjdGlvbjoxLG5vZGVTdGFydFg6bixkZXNpcmVkUG9zaXRpb246ZX0pLGU7aWYocz5yKXJldHVybiBhd2FpdCBmKHtkaXJlY3Rpb246LTEsbm9kZVN0YXJ0WDpuLGRlc2lyZWRQb3NpdGlvbjplfSksZTtpLm5leHREZXBlbmRlbmN5U2hvdmU9MX1yZXR1cm4gYXdhaXQgdyhpLG4pfWZ1bmN0aW9uIEUoZSl7dmFyIG87Y29uc3Qgbj1kLmZpbmQoaT0+aS5pZD09PWUpLHQ9YVtlXTtyZXR1cm4oKG89bi51cHN0cmVhbURlcGVuZGVuY2llcyk9PW51bGw/dm9pZCAwOm8ucmVkdWNlKChpLHMpPT57aWYoZSBpbiBhKXtjb25zdCByPWFbc107cmV0dXJuIHIucG9zaXRpb248dC5wb3NpdGlvbiYmKGlbMF0rPTEpLHIucG9zaXRpb24+dC5wb3NpdGlvbiYmKGlbMV0rPTEpLGl9cmV0dXJuIGNvbnNvbGUud2Fybigibm9kZUxheW91dC53b3JrZXIudHM6IFBhcmVudCBub2RlIG5vdCBmb3VuZCBvbiBsYXlvdXQgZGF0YSIsZSksaX0sWzAsMF0pKT8/WzAsMF19ZnVuY3Rpb24gQigpe2NvbnN0IGU9T2JqZWN0LnZhbHVlcyhhKS5yZWR1Y2UoKG4sdCk9PnQucG9zaXRpb248bj90LnBvc2l0aW9uOm4sMCk7ZTwwJiZPYmplY3QudmFsdWVzKGEpLmZvckVhY2gobj0+e24ucG9zaXRpb24rPU1hdGguYWJzKGUpfSl9fSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9bm9kZUxheW91dC53b3JrZXItMzBjMmM3MTUuanMubWFwCi8vIyBzb3VyY2VNYXBwaW5nVVJMPWFzc2V0cy9ub2RlTGF5b3V0Lndvcmtlci0zMGMyYzcxNS5qcy5tYXA=", vu = typeof window < "u" && window.Blob && new Blob([atob(vf)], { type: "text/javascript;charset=utf-8" });
|
|
16545
|
-
function
|
|
16547
|
+
function wb() {
|
|
16546
16548
|
const r = vu && (window.URL || window.webkitURL).createObjectURL(vu);
|
|
16547
16549
|
try {
|
|
16548
16550
|
return r ? new Worker(r) : new Worker("data:application/javascript;base64," + vf);
|
|
@@ -16559,7 +16561,7 @@ class _f extends ct {
|
|
|
16559
16561
|
graphState: s
|
|
16560
16562
|
}) {
|
|
16561
16563
|
super();
|
|
16562
|
-
P(this, "layoutWorker", new
|
|
16564
|
+
P(this, "layoutWorker", new wb());
|
|
16563
16565
|
P(this, "isSubNodes");
|
|
16564
16566
|
P(this, "graphData");
|
|
16565
16567
|
P(this, "graphDataLookup", /* @__PURE__ */ new Map());
|
|
@@ -16621,7 +16623,7 @@ class _f extends ct {
|
|
|
16621
16623
|
initDeselectLayer() {
|
|
16622
16624
|
if (this.isSubNodes)
|
|
16623
16625
|
return;
|
|
16624
|
-
const { pixiApp: t, viewport: i } = this.graphState, n = new
|
|
16626
|
+
const { pixiApp: t, viewport: i } = this.graphState, n = new z0(t, i);
|
|
16625
16627
|
this.addChild(n), n.on("click", () => {
|
|
16626
16628
|
this.emitNullSelection();
|
|
16627
16629
|
});
|
|
@@ -16636,7 +16638,7 @@ class _f extends ct {
|
|
|
16636
16638
|
}), i && (this.addChild(this.edgeContainer), this.addChild(this.nodeContainer), this.isSubNodes || this.graphState.centerViewport({ skipAnimation: !0 }));
|
|
16637
16639
|
}
|
|
16638
16640
|
createNode(t) {
|
|
16639
|
-
const { graphState: i, layout: n, layoutRows: s } = this, a = new
|
|
16641
|
+
const { graphState: i, layout: n, layoutRows: s } = this, a = new Sb({
|
|
16640
16642
|
nodeData: t,
|
|
16641
16643
|
graphState: i,
|
|
16642
16644
|
layout: n,
|
|
@@ -16653,7 +16655,7 @@ class _f extends ct {
|
|
|
16653
16655
|
console.warn("timelineNodes: could not find source or target node for edge, skipping");
|
|
16654
16656
|
return;
|
|
16655
16657
|
}
|
|
16656
|
-
const a = new
|
|
16658
|
+
const a = new pb({
|
|
16657
16659
|
sourceNode: n,
|
|
16658
16660
|
targetNode: s,
|
|
16659
16661
|
graphState: this.graphState
|
|
@@ -16788,10 +16790,10 @@ class _f extends ct {
|
|
|
16788
16790
|
return this.graphData.length < 1 ? null : this.graphData.reduce((i, n) => n.start && n.start.getTime() < i.getTime() ? n.start : i, new Date());
|
|
16789
16791
|
}
|
|
16790
16792
|
destroy() {
|
|
16791
|
-
this.nodeRecords.forEach((t) => t.destroy()), this.nodeRecords.clear(), this.edgeRecords.forEach((t) => t.edge.destroy()), this.removeChildren(), this.unWatchers.forEach((t) => t()), this.layoutWorker.terminate(), this.layoutWorker.onmessage = null, this.isSubNodes ||
|
|
16793
|
+
this.nodeRecords.forEach((t) => t.destroy()), this.nodeRecords.clear(), this.edgeRecords.forEach((t) => t.edge.destroy()), this.removeChildren(), this.unWatchers.forEach((t) => t()), this.layoutWorker.terminate(), this.layoutWorker.onmessage = null, this.isSubNodes || cb(), super.destroy.call(this);
|
|
16792
16794
|
}
|
|
16793
16795
|
}
|
|
16794
|
-
class
|
|
16796
|
+
class Rb extends ct {
|
|
16795
16797
|
constructor({
|
|
16796
16798
|
viewportRef: t,
|
|
16797
16799
|
appRef: i,
|
|
@@ -16859,8 +16861,8 @@ const ra = {
|
|
|
16859
16861
|
leftCap: "leftCap",
|
|
16860
16862
|
body: "body",
|
|
16861
16863
|
rightCap: "rightCap"
|
|
16862
|
-
},
|
|
16863
|
-
class
|
|
16864
|
+
}, Pb = 0.2, Cb = 0.2;
|
|
16865
|
+
class Ob extends ct {
|
|
16864
16866
|
constructor({
|
|
16865
16867
|
graphState: t,
|
|
16866
16868
|
nodeData: i,
|
|
@@ -16893,7 +16895,7 @@ class Cb extends ct {
|
|
|
16893
16895
|
this.redraw();
|
|
16894
16896
|
}, { deep: !0 })
|
|
16895
16897
|
), t.on("frame-end", () => {
|
|
16896
|
-
t.scale.x <
|
|
16898
|
+
t.scale.x < Cb ? this.visible = !1 : this.visible = !0;
|
|
16897
16899
|
});
|
|
16898
16900
|
}
|
|
16899
16901
|
initShapes() {
|
|
@@ -16982,7 +16984,7 @@ class Cb extends ct {
|
|
|
16982
16984
|
const { suppressMotion: i } = this.graphState;
|
|
16983
16985
|
this.toggleArrow && zt.to(this.toggleArrow, {
|
|
16984
16986
|
rotation: t,
|
|
16985
|
-
duration: i.value ? 0 :
|
|
16987
|
+
duration: i.value ? 0 : Pb,
|
|
16986
16988
|
ease: "power2.inOut"
|
|
16987
16989
|
});
|
|
16988
16990
|
}
|
|
@@ -17012,7 +17014,7 @@ class Cb extends ct {
|
|
|
17012
17014
|
this.graphState.cull.remove(this), super.destroy.call(this);
|
|
17013
17015
|
}
|
|
17014
17016
|
}
|
|
17015
|
-
const
|
|
17017
|
+
const Hb = /* @__PURE__ */ Tf({
|
|
17016
17018
|
__name: "FlowRunTimeline",
|
|
17017
17019
|
props: {
|
|
17018
17020
|
graphData: null,
|
|
@@ -17042,15 +17044,15 @@ const Xb = /* @__PURE__ */ xf({
|
|
|
17042
17044
|
}
|
|
17043
17045
|
}), a = Zi(), o = ge(() => {
|
|
17044
17046
|
var k;
|
|
17045
|
-
return ((k = i.theme) == null ? void 0 : k.node) ??
|
|
17047
|
+
return ((k = i.theme) == null ? void 0 : k.node) ?? Zf;
|
|
17046
17048
|
}), h = ge(() => {
|
|
17047
17049
|
var k;
|
|
17048
|
-
return
|
|
17050
|
+
return Hf((k = i.theme) == null ? void 0 : k.defaults);
|
|
17049
17051
|
}), u = ge(() => i.selectedNodeId ?? null), l = ge(() => i.layout ?? "nearestParent"), f = ge(() => i.isRunning ?? !1), c = ge(() => i.hideEdges ?? !1), d = ge(() => i.subNodeLabels ?? /* @__PURE__ */ new Map()), v = ge(() => i.expandedSubNodes ?? /* @__PURE__ */ new Map()), p = ge(() => {
|
|
17050
17052
|
const k = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
17051
17053
|
return i.graphData.length > n || k;
|
|
17052
17054
|
}), _ = Zi(!1), g = ge(() => ({
|
|
17053
|
-
...
|
|
17055
|
+
...jf,
|
|
17054
17056
|
...i.formatDateFns
|
|
17055
17057
|
})), m = {
|
|
17056
17058
|
timelineGuides: 0,
|
|
@@ -17058,19 +17060,19 @@ const Xb = /* @__PURE__ */ xf({
|
|
|
17058
17060
|
playhead: 20
|
|
17059
17061
|
}, y = Zi(!0);
|
|
17060
17062
|
let x, b;
|
|
17061
|
-
const T = new
|
|
17063
|
+
const T = new Mf();
|
|
17062
17064
|
let E, w;
|
|
17063
17065
|
const S = Zi();
|
|
17064
17066
|
let R, O, N, B, L, A = null;
|
|
17065
17067
|
const I = "rootNodesContainer";
|
|
17066
17068
|
let F, V = null;
|
|
17067
|
-
|
|
17069
|
+
Ef(async () => {
|
|
17068
17070
|
if (!a.value) {
|
|
17069
17071
|
console.error("Stage reference not found in initPixiApp");
|
|
17070
17072
|
return;
|
|
17071
17073
|
}
|
|
17072
|
-
Z(), N =
|
|
17073
|
-
}),
|
|
17074
|
+
Z(), N = gb(E), x = Y0(a.value), x.stage.sortableChildren = !0, b = await K0(a.value, x), b.zIndex = m.viewport, M(), U(), tt(), dt(), It(), K(), st(), vt(), y.value = !1;
|
|
17075
|
+
}), Sf(() => {
|
|
17074
17076
|
W();
|
|
17075
17077
|
});
|
|
17076
17078
|
function W() {
|
|
@@ -17093,6 +17095,8 @@ const Xb = /* @__PURE__ */ xf({
|
|
|
17093
17095
|
function U() {
|
|
17094
17096
|
b.on("moved", () => {
|
|
17095
17097
|
C();
|
|
17098
|
+
}), b.on("resize", () => {
|
|
17099
|
+
C();
|
|
17096
17100
|
});
|
|
17097
17101
|
}
|
|
17098
17102
|
Wt(() => i.visibleDateRange, (k) => {
|
|
@@ -17102,12 +17106,12 @@ const Xb = /* @__PURE__ */ xf({
|
|
|
17102
17106
|
}
|
|
17103
17107
|
});
|
|
17104
17108
|
function Z() {
|
|
17105
|
-
const ot = i.graphData.filter(
|
|
17109
|
+
const ot = i.graphData.filter(Yf).map(({ start: He, end: We }) => ({ start: He, end: We }));
|
|
17106
17110
|
f.value && ot.push({
|
|
17107
17111
|
start: new Date(),
|
|
17108
17112
|
end: new Date()
|
|
17109
17113
|
});
|
|
17110
|
-
const { min: Ut, max: Kt, span: Me } =
|
|
17114
|
+
const { min: Ut, max: Kt, span: Me } = Uf(ot, 6e4);
|
|
17111
17115
|
w = Ut, S.value = Kt, R = Me, O = z(), E = {
|
|
17112
17116
|
minimumStartTime: w.getTime(),
|
|
17113
17117
|
graphXDomain: O,
|
|
@@ -17124,8 +17128,8 @@ const Xb = /* @__PURE__ */ xf({
|
|
|
17124
17128
|
return gf * mf;
|
|
17125
17129
|
}
|
|
17126
17130
|
function tt() {
|
|
17127
|
-
|
|
17128
|
-
|
|
17131
|
+
V0(h.value), Wt(h, (k) => {
|
|
17132
|
+
W0(k);
|
|
17129
17133
|
});
|
|
17130
17134
|
}
|
|
17131
17135
|
function dt() {
|
|
@@ -17148,7 +17152,7 @@ const Xb = /* @__PURE__ */ xf({
|
|
|
17148
17152
|
};
|
|
17149
17153
|
}
|
|
17150
17154
|
function st() {
|
|
17151
|
-
f.value && (L = new
|
|
17155
|
+
f.value && (L = new Rb({
|
|
17152
17156
|
viewportRef: b,
|
|
17153
17157
|
appRef: x,
|
|
17154
17158
|
cull: T,
|
|
@@ -17171,7 +17175,7 @@ const Xb = /* @__PURE__ */ xf({
|
|
|
17171
17175
|
y.value || (k && (!L || L.destroyed) && st(), !k && L && A && (L.destroy(), x.ticker.remove(A), A = null));
|
|
17172
17176
|
});
|
|
17173
17177
|
function It() {
|
|
17174
|
-
V && (B = new
|
|
17178
|
+
V && (B = new xb({
|
|
17175
17179
|
graphState: V,
|
|
17176
17180
|
maximumEndDate: S,
|
|
17177
17181
|
formatDateFns: g
|
|
@@ -17243,7 +17247,7 @@ const Xb = /* @__PURE__ */ xf({
|
|
|
17243
17247
|
b.transform.scale.y
|
|
17244
17248
|
);
|
|
17245
17249
|
}
|
|
17246
|
-
return (k, ot) => (
|
|
17250
|
+
return (k, ot) => (wf(), Rf("div", {
|
|
17247
17251
|
ref_key: "stage",
|
|
17248
17252
|
ref: a,
|
|
17249
17253
|
class: "g-flow-run-timeline"
|
|
@@ -17255,9 +17259,9 @@ export {
|
|
|
17255
17259
|
ft as P,
|
|
17256
17260
|
$ as R,
|
|
17257
17261
|
Xt as T,
|
|
17258
|
-
|
|
17259
|
-
|
|
17260
|
-
|
|
17261
|
-
|
|
17262
|
+
Hb as _,
|
|
17263
|
+
jf as f,
|
|
17264
|
+
Yf as h,
|
|
17265
|
+
Zf as n
|
|
17262
17266
|
};
|
|
17263
|
-
//# sourceMappingURL=index-
|
|
17267
|
+
//# sourceMappingURL=index-0669fb1d.mjs.map
|